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
return_lock_try_accounts ▾
pseudocode.c fn return_lock_try_accounts · .text+0x39918 · 1,542 ins · 325 blocks · 1,810 lines · structured where the control flow allows copy ↓ .c download pseudocode.c 1 // return_lock_try_accounts · 1542 instructions · 1 caller · 61 gotos
2 // panic locations in this function: src/syscalls.rs:279, /home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449
3 u64 return_lock_try_accounts ( u64 r1, u64
Evidence why revrsly believes it ×
Function ◇ Inferred
return_lock_try_accounts
◇ Anchor's account loader for return_lock: the first call after its "Instruction: ReturnLock" that can raise AccountNotEnoughKeys (3005).
● .text+0x39918 · 1,542 instructions · 325 blocks
● 1 caller
◇ takes 5 arguments (from register use)
r2,
u64
r3,
u64
r4,
u64
r5) {
239 r0 = fn_a368(&local_2b0, r2, r3);
240 local_610 = local_2a8;
244 r2 = *( u64 *)( 0x300000000 );
256 if (r1 <= 0x300000007 ) {
257 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
258 r0 = fn_67b18( 1 , 6 , r3);
260 *( u64 *)( 0x300000000 ) = r1;
261 *( u16 *)(r1 + 4 ) = 0x7265 ;
262 *( u32 *)(r1) = 0x6b636f6c ;
264 *( u64 *)(r5 + 0x10 ) = r1;
265 *( u64 *)(r5 + 0x18 ) = 6 ;
266 *( u64 *)(r5 + 8 ) = 6 ;
269 *( u64 *)(r1 + 0x10 ) = r5;
270 *( u64 *)(r1 + 8 ) = r6;
275 if (r1 <= 0x300000007 ) {
276 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
277 r0 = fn_67b18( 1 , 6 , r3);
279 *( u64 *)( 0x300000000 ) = r1;
280 *( u16 *)(r1 + 4 ) = 0x7265 ;
281 *( u32 *)(r1) = 0x6b636f6c ;
283 *( u64 *)(r5 + 0x10 ) = r1;
284 *( u64 *)(r5 + 0x18 ) = 6 ;
285 *( u64 *)(r5 + 8 ) = 6 ;
288 *( u64 *)(r1 + 0x10 ) = r5;
289 *( u64 *)(r1 + 8 ) = r6;
299 if (r1 <= 0x300000007 ) {
300 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
301 r0 = fn_67b18( 1 , 6 , r3);
303 *( u64 *)( 0x300000000 ) = r1;
304 *( u16 *)(r1 + 4 ) = 0x7265 ;
305 *( u32 *)(r1) = 0x6b636f6c ;
307 *( u64 *)(r5 + 0x10 ) = r1;
308 *( u64 *)(r5 + 0x18 ) = 6 ;
309 *( u64 *)(r5 + 8 ) = 6 ;
312 *( u64 *)(r1 + 0x10 ) = r5;
313 *( u64 *)(r1 + 8 ) = r6;
319 if (r1 > 0x300000007 ) {
320 *( u64 *)( 0x300000000 ) = r1;
321 *( u16 *)(r1 + 4 ) = 0x7265 ;
322 *( u32 *)(r1) = 0x6b636f6c ;
324 *( u64 *)(r5 + 0x10 ) = r1;
325 *( u64 *)(r5 + 0x18 ) = 6 ;
326 *( u64 *)(r5 + 8 ) = 6 ;
329 *( u64 *)(r1 + 0x10 ) = r5;
330 *( u64 *)(r1 + 8 ) = r6;
334 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
335 r0 = fn_67b18( 1 , 6 , r3);
340 goto L_39db0; ● kept as goto
342 goto L_39ad0; ● kept as goto
344 local_628 = *( u64 *)(r9 - 0xff0 );
345 local_620 = *( u64 *)(r9 - 0xff8 );
346 r6 = *( u64 *)(r9 - 0x1000 );
348 r0 = fn_a568(&pda, r2, r8);
353 r2 = *( u64 *)( 0x300000000 );
363 if (r1 <= 0x300000007 ) {
364 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
365 r0 = fn_67b18( 1 , 6 , r3);
367 *( u64 *)( 0x300000000 ) = r1;
368 *( u16 *)(r1 + 4 ) = 0x6769 ;
369 *( u32 *)(r1) = 0x666e6f63 ;
371 *( u64 *)(r7 + 0x10 ) = r1;
372 *( u64 *)(r7 + 0x18 ) = 6 ;
373 *( u64 *)(r7 + 8 ) = 6 ;
376 *( u64 *)(r1 + 0x10 ) = r7;
377 *( u64 *)(r1 + 8 ) = r6;
381 if (r1 <= 0x300000007 ) {
382 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
383 r0 = fn_67b18( 1 , 6 , r3);
385 *( u64 *)( 0x300000000 ) = r1;
386 *( u16 *)(r1 + 4 ) = 0x6769 ;
387 *( u32 *)(r1) = 0x666e6f63 ;
389 *( u64 *)(r7 + 0x10 ) = r1;
390 *( u64 *)(r7 + 0x18 ) = 6 ;
391 *( u64 *)(r7 + 8 ) = 6 ;
394 *( u64 *)(r1 + 0x10 ) = r7;
395 *( u64 *)(r1 + 8 ) = r6;
404 if (r1 <= 0x300000007 ) {
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);
408 *( u64 *)( 0x300000000 ) = r1;
409 *( u16 *)(r1 + 4 ) = 0x6769 ;
410 *( u32 *)(r1) = 0x666e6f63 ;
412 *( u64 *)(r7 + 0x10 ) = r1;
413 *( u64 *)(r7 + 0x18 ) = 6 ;
414 *( u64 *)(r7 + 8 ) = 6 ;
417 *( u64 *)(r1 + 0x10 ) = r7;
418 *( u64 *)(r1 + 8 ) = r6;
423 if (r1 > 0x300000007 ) {
424 *( u64 *)( 0x300000000 ) = r1;
425 *( u16 *)(r1 + 4 ) = 0x6769 ;
426 *( u32 *)(r1) = 0x666e6f63 ;
428 *( u64 *)(r7 + 0x10 ) = r1;
429 *( u64 *)(r7 + 0x18 ) = 6 ;
430 *( u64 *)(r7 + 8 ) = 6 ;
433 *( u64 *)(r1 + 0x10 ) = r7;
434 *( u64 *)(r1 + 8 ) = r6;
438 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
439 r0 = fn_67b18( 1 , 6 , r3);
443 goto L_39e78; ● kept as goto
445 goto L_39a40; ● kept as goto
448 r5 = *( u64 *)( 0x300000000 );
459 if (r1 <= 0x300000007 ) {
460 r0 = fn_67b38( 8 , 0xb0 );
466 r0 = memcpy (r1, &pda, 0xb0 );
468 r0 = fn_a828(&pda, r2, r8);
487 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
488 r0 = fn_67b18( 1 , 4 , r3);
490 *( u64 *)( 0x300000000 ) = r1;
491 *( u32 *)(r1) = 0x6b636f6c ;
493 *( u64 *)(r7 + 0x10 ) = r1;
494 *( u64 *)(r7 + 0x18 ) = 4 ;
495 *( u64 *)(r7 + 8 ) = 4 ;
498 *( u64 *)(r1 + 0x10 ) = r7;
499 *( u64 *)(r1 + 8 ) = r6;
504 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
505 r0 = fn_67b18( 1 , 4 , r3);
507 *( u64 *)( 0x300000000 ) = r1;
508 *( u32 *)(r1) = 0x6b636f6c ;
510 *( u64 *)(r7 + 0x10 ) = r1;
511 *( u64 *)(r7 + 0x18 ) = 4 ;
512 *( u64 *)(r7 + 8 ) = 4 ;
515 *( u64 *)(r1 + 0x10 ) = r7;
516 *( u64 *)(r1 + 8 ) = r6;
524 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
525 r0 = fn_67b18( 1 , 4 , r3);
527 *( u64 *)( 0x300000000 ) = r1;
528 *( u32 *)(r1) = 0x6b636f6c ;
530 *( u64 *)(r7 + 0x10 ) = r1;
531 *( u64 *)(r7 + 0x18 ) = 4 ;
532 *( u64 *)(r7 + 8 ) = 4 ;
535 *( u64 *)(r1 + 0x10 ) = r7;
536 *( u64 *)(r1 + 8 ) = r6;
542 *( u64 *)( 0x300000000 ) = r1;
543 *( u32 *)(r1) = 0x6b636f6c ;
545 *( u64 *)(r7 + 0x10 ) = r1;
546 *( u64 *)(r7 + 0x18 ) = 4 ;
547 *( u64 *)(r7 + 8 ) = 4 ;
550 *( u64 *)(r1 + 0x10 ) = r7;
551 *( u64 *)(r1 + 8 ) = r6;
555 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
556 r0 = fn_67b18( 1 , 4 , r3);
563 goto L_39fe0; ● kept as goto
565 goto L_3a250; ● kept as goto
568 goto L_3a230; ● kept as goto
570 goto L_39fc8; ● kept as goto
584 if (r1 <= 0x300000007 ) {
585 r0 = fn_67b38( 8 , 0x60 );
590 r0 = memcpy (r1, &pda, 0x60 );
591 r0 = fn_628(&pda, r2, r8, r4, fp);
610 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
611 r0 = fn_67b18( 1 , 0xa , r3);
613 *( u64 *)( 0x300000000 ) = r1;
614 *( u64 *)(r1) = 0x7561765f6b636f6c ; // text "lock_vau"
615 *( u16 *)(r1 + 8 ) = 0x746c ;
617 *( u64 *)(r7 + 0x10 ) = r1;
618 *( u64 *)(r7 + 0x18 ) = 0xa ;
619 *( u64 *)(r7 + 8 ) = 0xa ;
622 *( u64 *)(r1 + 0x10 ) = r7;
623 *( u64 *)(r1 + 8 ) = r6;
628 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
629 r0 = fn_67b18( 1 , 0xa , r3);
631 *( u64 *)( 0x300000000 ) = r1;
632 *( u64 *)(r1) = 0x7561765f6b636f6c ; // text "lock_vau"
633 *( u16 *)(r1 + 8 ) = 0x746c ;
635 *( u64 *)(r7 + 0x10 ) = r1;
636 *( u64 *)(r7 + 0x18 ) = 0xa ;
637 *( u64 *)(r7 + 8 ) = 0xa ;
640 *( u64 *)(r1 + 0x10 ) = r7;
641 *( u64 *)(r1 + 8 ) = r6;
649 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
650 r0 = fn_67b18( 1 , 0xa , r3);
652 *( u64 *)( 0x300000000 ) = r1;
653 *( u64 *)(r1) = 0x7561765f6b636f6c ; // text "lock_vau"
654 *( u16 *)(r1 + 8 ) = 0x746c ;
656 *( u64 *)(r7 + 0x10 ) = r1;
657 *( u64 *)(r7 + 0x18 ) = 0xa ;
658 *( u64 *)(r7 + 8 ) = 0xa ;
661 *( u64 *)(r1 + 0x10 ) = r7;
662 *( u64 *)(r1 + 8 ) = r6;
668 *( u64 *)( 0x300000000 ) = r1;
669 *( u64 *)(r1) = 0x7561765f6b636f6c ; // text "lock_vau"
670 *( u16 *)(r1 + 8 ) = 0x746c ;
672 *( u64 *)(r7 + 0x10 ) = r1;
673 *( u64 *)(r7 + 0x18 ) = 0xa ;
674 *( u64 *)(r7 + 8 ) = 0xa ;
677 *( u64 *)(r1 + 0x10 ) = r7;
678 *( u64 *)(r1 + 8 ) = r6;
682 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
683 r0 = fn_67b18( 1 , 0xa , r3);
690 goto L_39d50; ● kept as goto
692 goto L_3a2f0; ● kept as goto
695 goto L_3a2d0; ● kept as goto
697 goto L_39d38; ● kept as goto
711 if (r1 <= 0x300000007 ) {
712 r0 = fn_67b38( 8 , 0xd8 );
717 r0 = memcpy (r1, &pda, 0xd8 );
719 r0 = fn_578(&pda, r2, r8);
738 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
739 r0 = fn_67b18( 1 , 9 , r3);
741 *( u64 *)( 0x300000000 ) = r1;
742 *( u64 *)(r1) = 0x6e696d5f65636e6f ; // text "once_min"
743 *( u8 *)(r1 + 8 ) = 0x74 ;
745 *( u64 *)(r7 + 0x10 ) = r1;
746 *( u64 *)(r7 + 0x18 ) = 9 ;
747 *( u64 *)(r7 + 8 ) = 9 ;
750 *( u64 *)(r1 + 0x10 ) = r7;
751 *( u64 *)(r1 + 8 ) = r6;
756 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
757 r0 = fn_67b18( 1 , 9 , r3);
759 *( u64 *)( 0x300000000 ) = r1;
760 *( u64 *)(r1) = 0x6e696d5f65636e6f ; // text "once_min"
761 *( u8 *)(r1 + 8 ) = 0x74 ;
763 *( u64 *)(r7 + 0x10 ) = r1;
764 *( u64 *)(r7 + 0x18 ) = 9 ;
765 *( u64 *)(r7 + 8 ) = 9 ;
768 *( u64 *)(r1 + 0x10 ) = r7;
769 *( u64 *)(r1 + 8 ) = r6;
777 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
778 r0 = fn_67b18( 1 , 9 , r3);
780 *( u64 *)( 0x300000000 ) = r1;
781 *( u64 *)(r1) = 0x6e696d5f65636e6f ; // text "once_min"
782 *( u8 *)(r1 + 8 ) = 0x74 ;
784 *( u64 *)(r7 + 0x10 ) = r1;
785 *( u64 *)(r7 + 0x18 ) = 9 ;
786 *( u64 *)(r7 + 8 ) = 9 ;
789 *( u64 *)(r1 + 0x10 ) = r7;
790 *( u64 *)(r1 + 8 ) = r6;
796 *( u64 *)( 0x300000000 ) = r1;
797 *( u64 *)(r1) = 0x6e696d5f65636e6f ; // text "once_min"
798 *( u8 *)(r1 + 8 ) = 0x74 ;
800 *( u64 *)(r7 + 0x10 ) = r1;
801 *( u64 *)(r7 + 0x18 ) = 9 ;
802 *( u64 *)(r7 + 8 ) = 9 ;
805 *( u64 *)(r1 + 0x10 ) = r7;
806 *( u64 *)(r1 + 8 ) = r6;
810 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
811 r0 = fn_67b18( 1 , 9 , r3);
818 goto L_3a1d8; ● kept as goto
820 goto L_3a6a8; ● kept as goto
823 goto L_3a688; ● kept as goto
825 goto L_3a1c0; ● kept as goto
839 if (r9 <= 0x300000007 ) {
840 r0 = fn_67b38( 8 , 0x80 );
843 *( u64 *)( 0x300000000 ) = r9;
844 r0 = memcpy (r9, &pda, 0x80 );
846 r0 = fn_0(&local_2a0, r2, r8);
850 r0 = fn_5598(&local_2c0, r2, r3, "once_token_program" , 0x12 ); ■ string · 18 B
856 local_ff0 = local_628;
857 local_ff8 = local_620;
860 r0 = fn_1948(&local_290, local_618, r8, r7);
864 r0 = fn_5598(&local_2d0, r2, r6, "destination" , 0xb ); ■ string · 11 B
869 *( u64 *)(r2 + 0x10 ) = r6;
870 *( u64 *)(r2 + 8 ) = r1;
875 r1 = *( u64 *)(r8 + 8 );
878 *( u64 *)(r8) = r7 + 0x30 ;
880 *( u64 *)(r8 + 8 ) = r1;
884 *( u64 *)(r8 + 8 ) = r1 + - 1 ;
887 *( u64 *)(r8) = r1 + 0x30 ;
889 r1 = 0x7e148 ; // .data.rel.ro+0x248
890 local_c0 = *( u64 *)(r1 + 0x18 );
891 local_c8 = *( u64 *)(r1 + 0x10 );
892 local_d0 = *( u64 *)(r1 + 8 );
897 r0 = memcpy (r7, &pda, 0x30 );
898 r1 = *( u64 *)(*( u64 *)(local_638));
899 local_238 = *( u64 *)(r1 + 0x18 );
900 local_240 = *( u64 *)(r1 + 0x10 );
901 local_248 = *( u64 *)(r1 + 8 );
902 local_250 = *( u64 *)(r1);
903 r0 = fn_b2c8(r7, &local_250);
905 r0 = anchor_error_new (&local_5f0, 0x7f8 ); // Anchor error 2040 ConstraintDuplicateMutableAccount?
906 r0 = fn_5598(&local_600, local_5f0, local_5e8, "lock" , 4 ); ■ string · 4 B
910 *( u64 *)(r3 + 8 ) = r2;
911 *( u64 *)(r3 + 0x10 ) = r1;
915 r1 = *( u64 *)(*( u64 *)(local_640 + 0x20 ));
916 local_218 = *( u64 *)(r1 + 0x18 );
917 local_220 = *( u64 *)(r1 + 0x10 );
918 local_228 = *( u64 *)(r1 + 8 );
919 local_230 = *( u64 *)(r1);
920 r0 = fn_b2c8(&pda_2, &local_230);
922 r0 = anchor_error_new (&local_5d0, 0x7f8 ); // Anchor error 2040 ConstraintDuplicateMutableAccount?
923 r0 = fn_5598(&local_5e0, local_5d0, local_5c8, "lock_vault" , 0xa ); ■ string · 10 B
927 *( u64 *)(r3 + 8 ) = r2;
928 *( u64 *)(r3 + 0x10 ) = r1;
932 r1 = *( u64 *)(*( u64 *)(r6 + 0x20 ));
933 local_1f8 = *( u64 *)(r1 + 0x18 );
934 local_200 = *( u64 *)(r1 + 0x10 );
935 local_208 = *( u64 *)(r1 + 8 );
936 local_210 = *( u64 *)(r1);
937 r0 = fn_b2c8(&pda_2, &local_210);
939 r0 = anchor_error_new (&local_5b0, 0x7f8 ); // Anchor error 2040 ConstraintDuplicateMutableAccount?
940 r0 = fn_5598(&local_5c0, local_5b0, local_5a8, "destination" , 0xb ); ■ string · 11 B
944 *( u64 *)(r3 + 0x10 ) = r2;
945 *( u64 *)(r3 + 8 ) = r1;
949 if (*( u8 *)(local_610 + 0x29 ) == 0 ) {
950 r0 = anchor_error_new (&local_320, 0x7d0 ); // Anchor error 2000 ConstraintMut?
951 r0 = fn_5598(&local_330, local_320, local_318, "locker" , 6 ); ■ string · 6 B
955 *( u64 *)(r3 + 0x10 ) = r2;
956 *( u64 *)(r3 + 8 ) = r1;
962 r1 = *( u8 *)(r9 + 0x68 );
963 local_270 = &local_198_u64;
964 pda_2 = 0x79e5e ; // .rodata+0xa5e
968 r0 = sol_create_program_address (&pda_2, 2 , local_618, &pda); // derive a PDA ■ syscall
971 r0 = anchor_error_new (&local_340, 0x7d6 ); // Anchor error 2006 ConstraintSeeds?
972 r0 = fn_5598(&local_350, local_340, local_338, "config" , 6 ); ■ string · 6 B
976 *( u64 *)(r3 + 0x10 ) = r2;
977 *( u64 *)(r3 + 8 ) = r1;
1000 local_1d1 = local_180;
⋯ ⋯ 810 more lines in this function. Download pseudocode.c for all of it.