once ❝ published name Reconstructed 91.5% of control flow structured Anchor ◇ GRzKU9i3Cs7A5Euf9gGZjbRnpypw7DzaU3hWRfUgpYTa copy decompiled 22 Oct 2026
Identity · published metadata ▾
Loader ■ v3 · upgradeable
sBPF ■ v0
Size ■ 556,728 bytes
Instructions ● 58,814
Functions ● 412
SHA-256 ● 23200e76…1d4a7b42
Upgrade authority ■ 8gop…M677
Last deploy slot ■ 459,519,774 ❝ Published by the authors · their claims, not revrsly output Verified build github.com/call-once/once-program @ 1ee2ebf · ✓ hash matches this bytecode IDL · none publishedsecurity.txt · embedded ■ read from the bytes view Loading the reconstruction…
Functions
Other functions 354
+ 294 more · type to filter
set_params_try_accounts ▾
pseudocode.c fn set_params_try_accounts · .text+0x15808 · 585 ins · 124 blocks · 807 lines · structured where the control flow allows copy ↓ .c download pseudocode.c 1 // set_params_try_accounts · 585 instructions · 1 caller · 22 gotos
2 // panic locations in this function: /home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449
3 u64 set_params_try_accounts ( u64 r1, u64 r2,
Evidence why revrsly believes it ×
Function ◇ Inferred
set_params_try_accounts
◇ Anchor's account loader for set_params: the first call after its "Instruction: SetParams" that can raise AccountNotEnoughKeys (3005).
● .text+0x15808 · 585 instructions · 124 blocks
● 1 caller
◇ takes 3 arguments (from register use)
u64
r3) {
111 r0 = fn_a410(&local_1f0, r2, r3);
116 r2 = *( u64 *)( 0x300000000 );
127 if (r1 <= 0x300000007 ) {
128 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
129 r0 = fn_67b18( 1 , 5 , r3);
131 *( u64 *)( 0x300000000 ) = r1;
132 *( u8 *)(r1 + 4 ) = 0x6e ;
133 *( u32 *)(r1) = 0x696d6461 ;
135 *( u64 *)(r6 + 0x10 ) = r1;
136 *( u64 *)(r6 + 0x18 ) = 5 ;
137 *( u64 *)(r6 + 8 ) = 5 ;
140 *( u64 *)(r1 + 0x10 ) = r6;
141 *( u64 *)(r1 + 8 ) = r7;
146 if (r1 <= 0x300000007 ) {
147 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
148 r0 = fn_67b18( 1 , 5 , r3);
150 *( u64 *)( 0x300000000 ) = r1;
151 *( u8 *)(r1 + 4 ) = 0x6e ;
152 *( u32 *)(r1) = 0x696d6461 ;
154 *( u64 *)(r6 + 0x10 ) = r1;
155 *( u64 *)(r6 + 0x18 ) = 5 ;
156 *( u64 *)(r6 + 8 ) = 5 ;
159 *( u64 *)(r1 + 0x10 ) = r6;
160 *( u64 *)(r1 + 8 ) = r7;
169 if (r1 <= 0x300000007 ) {
170 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
171 r0 = fn_67b18( 1 , 5 , r3);
173 *( u64 *)( 0x300000000 ) = r1;
174 *( u8 *)(r1 + 4 ) = 0x6e ;
175 *( u32 *)(r1) = 0x696d6461 ;
177 *( u64 *)(r6 + 0x10 ) = r1;
178 *( u64 *)(r6 + 0x18 ) = 5 ;
179 *( u64 *)(r6 + 8 ) = 5 ;
182 *( u64 *)(r1 + 0x10 ) = r6;
183 *( u64 *)(r1 + 8 ) = r7;
190 if (r1 > 0x300000007 ) {
191 *( u64 *)( 0x300000000 ) = r1;
192 *( u8 *)(r1 + 4 ) = 0x6e ;
193 *( u32 *)(r1) = 0x696d6461 ;
195 *( u64 *)(r6 + 0x10 ) = r1;
196 *( u64 *)(r6 + 0x18 ) = 5 ;
197 *( u64 *)(r6 + 8 ) = 5 ;
200 *( u64 *)(r1 + 0x10 ) = r6;
201 *( u64 *)(r1 + 8 ) = r7;
205 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
206 r0 = fn_67b18( 1 , 5 , r3);
210 goto L_15bb8; ● kept as goto
212 goto L_159a0; ● kept as goto
215 r0 = fn_a4b8(&pda, r2, r9);
220 r2 = *( u64 *)( 0x300000000 );
234 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
235 r0 = fn_67b18( 1 , 6 , r3);
237 *( u64 *)( 0x300000000 ) = r1;
238 *( u16 *)(r1 + 4 ) = 0x6769 ;
239 *( u32 *)(r1) = 0x666e6f63 ;
241 *( u64 *)(r7 + 0x10 ) = r1;
242 *( u64 *)(r7 + 0x18 ) = 6 ;
243 *( u64 *)(r7 + 8 ) = 6 ;
246 *( u64 *)(r1 + 0x10 ) = r7;
247 *( u64 *)(r1 + 8 ) = r6;
252 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
253 r0 = fn_67b18( 1 , 6 , r3);
255 *( u64 *)( 0x300000000 ) = r1;
256 *( u16 *)(r1 + 4 ) = 0x6769 ;
257 *( u32 *)(r1) = 0x666e6f63 ;
259 *( u64 *)(r7 + 0x10 ) = r1;
260 *( u64 *)(r7 + 0x18 ) = 6 ;
261 *( u64 *)(r7 + 8 ) = 6 ;
264 *( u64 *)(r1 + 0x10 ) = r7;
265 *( u64 *)(r1 + 8 ) = r6;
273 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
274 r0 = fn_67b18( 1 , 6 , r3);
276 *( u64 *)( 0x300000000 ) = r1;
277 *( u16 *)(r1 + 4 ) = 0x6769 ;
278 *( u32 *)(r1) = 0x666e6f63 ;
280 *( u64 *)(r7 + 0x10 ) = r1;
281 *( u64 *)(r7 + 0x18 ) = 6 ;
282 *( u64 *)(r7 + 8 ) = 6 ;
285 *( u64 *)(r1 + 0x10 ) = r7;
286 *( u64 *)(r1 + 8 ) = r6;
292 *( u64 *)( 0x300000000 ) = r1;
293 *( u16 *)(r1 + 4 ) = 0x6769 ;
294 *( u32 *)(r1) = 0x666e6f63 ;
296 *( u64 *)(r7 + 0x10 ) = r1;
297 *( u64 *)(r7 + 0x18 ) = 6 ;
298 *( u64 *)(r7 + 8 ) = 6 ;
301 *( u64 *)(r1 + 0x10 ) = r7;
302 *( u64 *)(r1 + 8 ) = r6;
306 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
307 r0 = fn_67b18( 1 , 6 , r3);
314 goto L_15908; ● kept as goto
316 goto L_15c60; ● kept as goto
319 goto L_15c40; ● kept as goto
321 goto L_158f0; ● kept as goto
324 r1 = *( u64 *)( 0x300000000 );
335 if (r7 <= 0x300000007 ) {
336 r0 = fn_67b38( 8 , 0xb0 );
339 *( u64 *)( 0x300000000 ) = r7;
340 r0 = memcpy (r7, &pda, 0xb0 );
341 r1 = *( u64 *)(r9 + 8 );
344 *( u64 *)(r9) = r3 + 0x30 ;
346 *( u64 *)(r9 + 8 ) = r2;
349 *( u64 *)(r9 + 8 ) = r1 + - 2 ;
352 *( u64 *)(r9) = r1 + 0x30 ;
354 r1 = 0x7e148 ; // .data.rel.ro+0x248
355 local_c8 = *( u64 *)(r1 + 0x18 );
356 local_d0 = *( u64 *)(r1 + 0x10 );
357 local_d8 = *( u64 *)(r1 + 8 );
358 local_e0 = *( u64 *)(r1);
361 r1 = *( u64 *)(*( u64 *)(r7));
362 local_1c8 = *( u64 *)(r1 + 0x18 );
363 local_1d0 = *( u64 *)(r1 + 0x10 );
364 local_1d8 = *( u64 *)(r1 + 8 );
365 local_1e0 = *( u64 *)(r1);
366 r0 = fn_b2c8(&local_e0, &local_1e0);
368 r0 = anchor_error_new (&local_2f0, 0x7f8 ); // Anchor error 2040 ConstraintDuplicateMutableAccount?
372 r2 = *( u64 *)( 0x300000000 );
390 if (r1 > 0x300000007 ) {
391 *( u64 *)( 0x300000000 ) = r1;
392 *( u16 *)(r1 + 4 ) = 0x6769 ;
393 *( u32 *)(r1) = 0x666e6f63 ;
395 *( u64 *)(r7 + 0x10 ) = r1;
396 *( u64 *)(r7 + 0x18 ) = 6 ;
397 *( u64 *)(r7 + 8 ) = 6 ;
400 *( u64 *)(r1 + 0x10 ) = r7;
401 *( u64 *)(r1 + 8 ) = r6;
405 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
406 r0 = fn_67b18( 1 , 6 , r3);
413 goto L_16300; ● kept as goto
415 goto L_15f50; ● kept as goto
419 if (r1 > 0x300000007 ) {
420 *( u64 *)( 0x300000000 ) = r1;
421 *( u16 *)(r1 + 4 ) = 0x6769 ;
422 *( u32 *)(r1) = 0x666e6f63 ;
424 *( u64 *)(r7 + 0x10 ) = r1;
425 *( u64 *)(r7 + 0x18 ) = 6 ;
426 *( u64 *)(r7 + 8 ) = 6 ;
429 *( u64 *)(r1 + 0x10 ) = r7;
430 *( u64 *)(r1 + 8 ) = r6;
434 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
435 r0 = fn_67b18( 1 , 6 , r3);
437 r1 = *( u8 *)(r7 + 0x68 );
438 local_170 = &local_159;
439 local_180 = 0x79e5e ; // .rodata+0xa5e
443 r0 = sol_create_program_address (&local_180, 2 , r8, &pda); // derive a PDA ■ syscall
463 local_1a1 = local_198;
464 local_1a9 = local_1a0;
467 local_98 = *( u64 *)(r2 + 0x18 );
468 local_a0 = *( u64 *)(r2 + 0x10 );
469 local_a8 = *( u64 *)(r2 + 8 );
472 if (r2 == local_1c0_u64) {
473 if (local_a8 == local_1b8) {
474 if (local_a0 == local_1b0) {
476 if (local_98 != local_1a8) {
481 if (*( u8 *)(r1 + 0x29 ) == 0 ) {
482 r0 = anchor_error_new (&local_270, 0x7d0 ); // Anchor error 2000 ConstraintMut?
483 r0 = fn_5598(&local_280, local_270, local_268, "config" , 6 ); ■ string · 6 B
487 *( u64 *)(r3 + 0x10 ) = r2;
488 *( u64 *)(r3 + 8 ) = r1;
491 local_128 = *( u64 *)(r7 + 0x20 );
492 local_130 = *( u64 *)(r7 + 0x18 );
493 local_138 = *( u64 *)(r7 + 0x10 );
494 r1 = *( u64 *)(r7 + 8 );
497 local_118 = *( u64 *)(r2 + 8 );
498 local_110 = *( u64 *)(r2 + 0x10 );
499 local_108 = *( u64 *)(r2 + 0x18 );
503 if (local_138 == local_118) {
504 if (local_130 == local_110) {
506 if (local_128 != local_108) {
511 r1 = *( u64 *)(local_300);
512 local_e8 = *( u64 *)(r1 + 0x18 );
513 local_f0 = *( u64 *)(r1 + 0x10 );
514 local_f8 = *( u64 *)(r1 + 8 );
517 if (r1 == - 0x2949a086a7498caa ) {
518 if (local_f8 == - 0x5250281bbc0f0c18 ) {
519 if (local_f0 == 0x29a1bbb18c96e668 ) {
521 if (local_e8 != - 0x240e9c5b3e828f17 ) {
527 *( u64 *)(r1 + 0x18 ) = local_308;
528 *( u64 *)(r1 + 0x10 ) = local_300;
529 *( u64 *)(r1 + 8 ) = r7;
532 r0 = anchor_error_new (&local_2c0, 0x7dc ); // Anchor error 2012 ConstraintAddress?
533 r0 = fn_5598(&local_2d0, local_2c0, local_2b8, "event_authority" , 0xf ); ■ string · 15 B
540 local_90_u64 = - 0x2949a086a7498caa ;
541 local_88 = - 0x5250281bbc0f0c18 ;
542 local_80 = 0x29a1bbb18c96e668 ;
543 local_78 = - 0x240e9c5b3e828f17 ;
544 r0 = fn_5fca0(&local_2e0, r2, r3, &pda);
548 *( u64 *)(r3 + 0x10 ) = r2;
549 *( u64 *)(r3 + 8 ) = r1;
557 goto L_16a08; ● kept as goto
559 r0 = custom_error_new (&local_290, 1 ); // raises error 6001 NotAdmin: "Only the admin may update configuration"
560 r0 = fn_5598(&local_2a0, local_290, local_288, "config" , 6 ); ■ string · 6 B
563 local_98 = local_128;
564 local_a0 = local_130;
565 local_a8 = local_138;
567 local_90_u64 = local_120;
568 local_88 = local_118;
569 local_80 = local_110;
570 local_78 = local_108;
571 r0 = fn_5fca0(&local_2b0, r2, r3, &pda);
575 *( u64 *)(r3 + 0x10 ) = r2;
576 *( u64 *)(r3 + 8 ) = r1;
584 goto L_16760; ● kept as goto
588 r0 = anchor_error_new (&local_240, 0x7d6 ); // Anchor error 2006 ConstraintSeeds?
589 r0 = fn_5598(&local_250, local_240, local_238, "config" , 6 ); ■ string · 6 B
592 r1 = *( u64 *)(*( u64 *)(r7));
594 r5 = *( u64 *)(r1 + 8 );
595 r0 = *( u64 *)(r1 + 0x10 );
596 r1 = *( u64 *)(r1 + 0x18 );
598 local_8f = local_148;
599 local_8b = local_144;
600 local_89 = local_300;
606 local_79 = local_158;
607 local_71 = local_150;
608 r0 = fn_5fca0(&local_260, r2, r3, &pda);
612 *( u64 *)(r3 + 0x10 ) = r2;
613 *( u64 *)(r3 + 8 ) = r1;
621 goto L_16488; ● kept as goto
624 r0 = anchor_error_new (&local_220, 0x7d6 ); // Anchor error 2006 ConstraintSeeds?
625 r0 = fn_5598(&local_230, local_220, local_218, "config" , 6 ); ■ string · 6 B
629 *( u64 *)(r3 + 0x10 ) = r2;
630 *( u64 *)(r3 + 8 ) = r1;
637 r0 = anchor_error_new (&local_210, 0xbbd ); // Anchor error 3005 AccountNotEnoughKeys?
643 r2 = *( u64 *)( 0x300000000 );
662 if (r1 <= 0x300000007 ) {
663 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
664 r0 = fn_67b18( 1 , 7 , r3);
666 *( u64 *)( 0x300000000 ) = r1;
667 *( u32 *)(r1 + 3 ) = 0x6d617267 ;
668 *( u32 *)(r1) = 0x676f7270 ;
670 *( u64 *)(r3 + 0x10 ) = r1;
671 *( u64 *)(r3 + 0x18 ) = 7 ;
672 *( u64 *)(r3 + 8 ) = 7 ;
675 *( u64 *)(r1 + 0x10 ) = r3;
676 *( u64 *)(r1 + 8 ) = r9;
685 goto L_16610; ● kept as goto
687 goto L_16110; ● kept as goto
692 if (r1 <= 0x300000007 ) {
693 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
694 r0 = fn_67b18( 1 , 7 , r3);
696 *( u64 *)( 0x300000000 ) = r1;
697 *( u32 *)(r1 + 3 ) = 0x6d617267 ;
698 *( u32 *)(r1) = 0x676f7270 ;
700 *( u64 *)(r3 + 0x10 ) = r1;
701 *( u64 *)(r3 + 0x18 ) = 7 ;
702 *( u64 *)(r3 + 8 ) = 7 ;
705 *( u64 *)(r1 + 0x10 ) = r3;
706 *( u64 *)(r1 + 8 ) = r9;
711 goto L_15df0; ● kept as goto
713 r0 = anchor_error_new (&local_200, 0xbbd ); // Anchor error 3005 AccountNotEnoughKeys?
719 r2 = *( u64 *)( 0x300000000 );
738 if (r1 <= 0x300000007 ) {
739 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
740 r0 = fn_67b18( 1 , 0xf , r3);
742 *( u64 *)( 0x300000000 ) = r1;
743 *( u64 *)(r1 + 7 ) = 0x797469726f687475 ; // text "uthority"
744 *( u64 *)(r1) = 0x75615f746e657665 ; // text "event_au"
746 *( u64 *)(r3 + 0x10 ) = r1;
747 *( u64 *)(r3 + 0x18 ) = 0xf ;
748 *( u64 *)(r3 + 8 ) = 0xf ;
751 *( u64 *)(r1 + 0x10 ) = r3;
752 *( u64 *)(r1 + 8 ) = r9;
761 goto L_16648; ● kept as goto
763 goto L_16208; ● kept as goto
768 if (r1 <= 0x300000007 ) {
769 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
770 r0 = fn_67b18( 1 , 0xf , r3);
772 *( u64 *)( 0x300000000 ) = r1;
773 *( u64 *)(r1 + 7 ) = 0x797469726f687475 ; // text "uthority"
774 *( u64 *)(r1) = 0x75615f746e657665 ; // text "event_au"
776 *( u64 *)(r3 + 0x10 ) = r1;
777 *( u64 *)(r3 + 0x18 ) = 0xf ;
778 *( u64 *)(r3 + 8 ) = 0xf ;
781 *( u64 *)(r1 + 0x10 ) = r3;
782 *( u64 *)(r1 + 8 ) = r9;
787 goto L_15db0; ● kept as goto
790 if (r7 <= 0x300000007 ) {
791 r0 = fn_67b38( 8 , 0xb0 );
793 goto L_15ad8; ● kept as goto
799 goto L_15ac0; ● kept as goto
801 goto L_15d30; ● kept as goto
804 goto L_15d10; ● kept as goto
806 goto L_15aa8; ● kept as goto