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
buy_try_accounts ▾
pseudocode.c fn buy_try_accounts · .text+0x1e1a0 · 1,808 ins · 371 blocks · 1,991 lines · structured where the control flow allows copy ↓ .c download pseudocode.c 1 // buy_try_accounts · 1808 instructions · 1 caller · 69 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 buy_try_accounts ( u64 r1, u64 r2, u64
Evidence why revrsly believes it ×
Function ◇ Inferred
buy_try_accounts
◇ Anchor's account loader for buy: the first call after its "Instruction: Buy" that can raise AccountNotEnoughKeys (3005).
● .text+0x1e1a0 · 1,808 instructions · 371 blocks
● 1 caller
◇ takes 5 arguments (from register use)
r3,
u64
r4,
u64
r5) {
293 r0 = fn_a368(&local_398, r2, r3);
294 local_7c8 = local_390;
298 r2 = *( u64 *)( 0x300000000 );
317 if (r1 <= 0x300000007 ) {
318 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
319 r0 = fn_67b18( 1 , 5 , r3);
321 *( u64 *)( 0x300000000 ) = r1;
322 *( u8 *)(r1 + 4 ) = 0x72 ;
323 *( u32 *)(r1) = 0x65797562 ;
325 *( u64 *)(r3 + 0x10 ) = r1;
326 *( u64 *)(r3 + 0x18 ) = 5 ;
327 *( u64 *)(r3 + 8 ) = 5 ;
330 *( u64 *)(r1 + 0x10 ) = r3;
331 *( u64 *)(r1 + 8 ) = r6;
340 goto L_1e478; ● kept as goto
342 goto L_1e3b8; ● kept as goto
347 if (r1 <= 0x300000007 ) {
348 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
349 r0 = fn_67b18( 1 , 5 , r3);
351 *( u64 *)( 0x300000000 ) = r1;
352 *( u8 *)(r1 + 4 ) = 0x72 ;
353 *( u32 *)(r1) = 0x65797562 ;
355 *( u64 *)(r3 + 0x10 ) = r1;
356 *( u64 *)(r3 + 0x18 ) = 5 ;
357 *( u64 *)(r3 + 8 ) = 5 ;
360 *( u64 *)(r1 + 0x10 ) = r3;
361 *( u64 *)(r1 + 8 ) = r6;
365 local_7e0 = *( u64 *)(r9 - 0xff0 );
366 local_7d8 = *( u64 *)(r9 - 0xff8 );
367 r6 = *( u64 *)(r9 - 0x1000 );
369 r0 = fn_a568(&pda, r2, r8);
374 r2 = *( u64 *)( 0x300000000 );
387 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
388 r0 = fn_67b18( 1 , 6 , r3);
390 *( u64 *)( 0x300000000 ) = r1;
391 *( u16 *)(r1 + 4 ) = 0x6769 ;
392 *( u32 *)(r1) = 0x666e6f63 ;
394 *( u64 *)(r7 + 0x10 ) = r1;
395 *( u64 *)(r7 + 0x18 ) = 6 ;
396 *( u64 *)(r7 + 8 ) = 6 ;
399 *( u64 *)(r1 + 0x10 ) = r7;
400 *( 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);
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;
427 *( u64 *)( 0x300000000 ) = r1;
428 *( u16 *)(r1 + 4 ) = 0x6769 ;
429 *( u32 *)(r1) = 0x666e6f63 ;
431 *( u64 *)(r7 + 0x10 ) = r1;
432 *( u64 *)(r7 + 0x18 ) = 6 ;
433 *( u64 *)(r7 + 8 ) = 6 ;
436 *( u64 *)(r1 + 0x10 ) = r7;
437 *( u64 *)(r1 + 8 ) = r6;
441 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
442 r0 = fn_67b18( 1 , 6 , r3);
446 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
447 r0 = fn_67b18( 1 , 6 , r3);
449 *( u64 *)( 0x300000000 ) = r1;
450 *( u16 *)(r1 + 4 ) = 0x6769 ;
451 *( u32 *)(r1) = 0x666e6f63 ;
453 *( u64 *)(r7 + 0x10 ) = r1;
454 *( u64 *)(r7 + 0x18 ) = 6 ;
455 *( u64 *)(r7 + 8 ) = 6 ;
458 *( u64 *)(r1 + 0x10 ) = r7;
459 *( u64 *)(r1 + 8 ) = r6;
468 goto L_1e2e8; ● kept as goto
470 goto L_1e578; ● kept as goto
473 goto L_1e558; ● kept as goto
475 goto L_1e2d0; ● kept as goto
478 r5 = *( u64 *)( 0x300000000 );
488 if (r1 <= 0x300000007 ) {
489 r0 = fn_67b38( 8 , 0xb0 );
495 r0 = memcpy (r1, &pda, 0xb0 );
497 r0 = fn_a6c8(&pda, r2, r8);
519 if (r1 <= 0x300000007 ) {
520 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
521 r0 = fn_67b18( 1 , 4 , r3);
523 *( u64 *)( 0x300000000 ) = r1;
524 *( u32 *)(r1) = 0x6c6c6163 ;
526 *( u64 *)(r7 + 0x10 ) = r1;
527 *( u64 *)(r7 + 0x18 ) = 4 ;
528 *( u64 *)(r7 + 8 ) = 4 ;
531 *( u64 *)(r1 + 0x10 ) = r7;
532 *( u64 *)(r1 + 8 ) = r6;
540 goto L_1e7e8; ● kept as goto
542 goto L_1e6d0; ● kept as goto
545 if (r1 <= 0x300000007 ) {
546 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
547 r0 = fn_67b18( 1 , 4 , r3);
549 *( u64 *)( 0x300000000 ) = r1;
550 *( u32 *)(r1) = 0x6c6c6163 ;
552 *( u64 *)(r7 + 0x10 ) = r1;
553 *( u64 *)(r7 + 0x18 ) = 4 ;
554 *( u64 *)(r7 + 8 ) = 4 ;
557 *( u64 *)(r1 + 0x10 ) = r7;
558 *( u64 *)(r1 + 8 ) = r6;
573 if (r1 > 0x300000007 ) {
577 r0 = memcpy (r1, &pda, 0xd8 );
578 r0 = fn_628(&pda, r2, r8, r4, fp);
592 if (r1 <= 0x300000007 ) {
593 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
594 r0 = fn_67b18( 1 , 5 , r3);
596 *( u64 *)( 0x300000000 ) = r1;
597 *( u8 *)(r1 + 4 ) = 0x74 ;
598 *( u32 *)(r1) = 0x6c756176 ;
600 *( u64 *)(r7 + 0x10 ) = r1;
601 *( u64 *)(r7 + 0x18 ) = 5 ;
602 *( u64 *)(r7 + 8 ) = 5 ;
605 *( u64 *)(r1 + 0x10 ) = r7;
606 *( u64 *)(r1 + 8 ) = r6;
611 if (r1 <= 0x300000007 ) {
612 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
613 r0 = fn_67b18( 1 , 5 , r3);
615 *( u64 *)( 0x300000000 ) = r1;
616 *( u8 *)(r1 + 4 ) = 0x74 ;
617 *( u32 *)(r1) = 0x6c756176 ;
619 *( u64 *)(r7 + 0x10 ) = r1;
620 *( u64 *)(r7 + 0x18 ) = 5 ;
621 *( u64 *)(r7 + 8 ) = 5 ;
624 *( u64 *)(r1 + 0x10 ) = r7;
625 *( u64 *)(r1 + 8 ) = r6;
634 if (r1 > 0x300000007 ) {
635 *( u64 *)( 0x300000000 ) = r1;
636 *( u8 *)(r1 + 4 ) = 0x74 ;
637 *( u32 *)(r1) = 0x6c756176 ;
639 *( u64 *)(r7 + 0x10 ) = r1;
640 *( u64 *)(r7 + 0x18 ) = 5 ;
641 *( u64 *)(r7 + 8 ) = 5 ;
644 *( u64 *)(r1 + 0x10 ) = r7;
645 *( 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 , 5 , r3);
653 if (r1 <= 0x300000007 ) {
654 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
655 r0 = fn_67b18( 1 , 5 , r3);
657 *( u64 *)( 0x300000000 ) = r1;
658 *( u8 *)(r1 + 4 ) = 0x74 ;
659 *( u32 *)(r1) = 0x6c756176 ;
661 *( u64 *)(r7 + 0x10 ) = r1;
662 *( u64 *)(r7 + 0x18 ) = 5 ;
663 *( u64 *)(r7 + 8 ) = 5 ;
666 *( u64 *)(r1 + 0x10 ) = r7;
667 *( u64 *)(r1 + 8 ) = r6;
673 goto L_1ea18; ● kept as goto
675 goto L_1e910; ● kept as goto
688 if (r1 <= 0x300000007 ) {
689 r0 = fn_67b38( 8 , 0xd8 );
694 r0 = memcpy (r1, &pda, 0xd8 );
696 r0 = fn_578(&pda, r2, r8);
714 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
715 r0 = fn_67b18( 1 , 4 , r3);
717 *( u64 *)( 0x300000000 ) = r1;
718 *( u32 *)(r1) = 0x746e696d ;
720 *( u64 *)(r7 + 0x10 ) = r1;
721 *( u64 *)(r7 + 0x18 ) = 4 ;
722 *( u64 *)(r7 + 8 ) = 4 ;
725 *( u64 *)(r1 + 0x10 ) = r7;
726 *( u64 *)(r1 + 8 ) = r6;
731 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
732 r0 = fn_67b18( 1 , 4 , r3);
734 *( u64 *)( 0x300000000 ) = r1;
735 *( u32 *)(r1) = 0x746e696d ;
737 *( u64 *)(r7 + 0x10 ) = r1;
738 *( u64 *)(r7 + 0x18 ) = 4 ;
739 *( u64 *)(r7 + 8 ) = 4 ;
742 *( u64 *)(r1 + 0x10 ) = r7;
743 *( u64 *)(r1 + 8 ) = r6;
752 *( u64 *)( 0x300000000 ) = r1;
753 *( u32 *)(r1) = 0x746e696d ;
755 *( u64 *)(r7 + 0x10 ) = r1;
756 *( u64 *)(r7 + 0x18 ) = 4 ;
757 *( u64 *)(r7 + 8 ) = 4 ;
760 *( u64 *)(r1 + 0x10 ) = r7;
761 *( u64 *)(r1 + 8 ) = r6;
765 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
766 r0 = fn_67b18( 1 , 4 , r3);
770 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/slice.rs:449:29" ); ■ string · 90 B
771 r0 = fn_67b18( 1 , 4 , r3);
773 *( u64 *)( 0x300000000 ) = r1;
774 *( u32 *)(r1) = 0x746e696d ;
776 *( u64 *)(r7 + 0x10 ) = r1;
777 *( u64 *)(r7 + 0x18 ) = 4 ;
778 *( u64 *)(r7 + 8 ) = 4 ;
781 *( u64 *)(r1 + 0x10 ) = r7;
782 *( u64 *)(r1 + 8 ) = r6;
791 goto L_1ebe0; ● kept as goto
793 goto L_1ecf8; ● kept as goto
796 goto L_1ecd8; ● kept as goto
798 goto L_1ebc8; ● kept as goto
811 if (r9 <= 0x300000007 ) {
812 r0 = fn_67b38( 8 , 0x80 );
815 *( u64 *)( 0x300000000 ) = r9;
816 r0 = memcpy (r9, &pda, 0x80 );
818 r0 = fn_0(&local_388, r2, r8);
822 r0 = fn_5598(&local_3a8, r2, r3, "token_program" , 0xd ); ■ string · 13 B
828 local_ff0 = local_7e0;
829 local_ff8 = local_7d8;
833 r0 = fn_1af0(&local_378, local_7d0, r8);
837 r0 = fn_5598(&local_3b8, r2, r3, "usdc_mint" , 9 ); ■ string · 9 B
844 r0 = fn_0(&local_368, r2, r8);
848 r0 = fn_5598(&local_3c8, r2, r3, "usdc_token_program" , 0x12 ); ■ string · 18 B
854 local_ff0 = local_7e0;
855 local_ff8 = local_7d8;
858 r0 = fn_1948(&local_358, local_7d0, r8, r7);
862 r0 = fn_5598(&local_3d8, r2, r3, "payment_source" , 0xe ); ■ string · 14 B
868 local_ff0 = local_7e0;
869 local_ff8 = local_7d8;
872 r0 = fn_1948(&local_348, local_7d0, r8, r7);
876 r0 = fn_5598(&local_3e8, r2, r6, "payment_destination" , 0x13 ); ■ string · 19 B
881 *( u64 *)(r2 + 0x10 ) = r6;
882 *( u64 *)(r2 + 8 ) = r1;
887 r1 = *( u64 *)(r8 + 8 );
890 *( u64 *)(r8) = r7 + 0x30 ;
892 *( u64 *)(r8 + 8 ) = r1;
896 *( u64 *)(r8 + 8 ) = r1 + - 1 ;
899 *( u64 *)(r8) = r1 + 0x30 ;
901 r1 = 0x7e148 ; // .data.rel.ro+0x248
902 local_c0 = *( u64 *)(r1 + 0x18 );
903 local_c8 = *( u64 *)(r1 + 0x10 );
904 local_d0 = *( u64 *)(r1 + 8 );
909 r0 = memcpy (r7, &pda, 0x30 );
910 r1 = *( u64 *)(*( u64 *)(local_7f0));
911 local_2f0 = *( u64 *)(r1 + 0x18 );
912 local_2f8 = *( u64 *)(r1 + 0x10 );
913 local_300 = *( u64 *)(r1 + 8 );
914 local_308 = *( u64 *)(r1);
915 r0 = fn_b2c8(r7, &local_308);
917 r0 = anchor_error_new (&local_7a8, 0x7f8 ); // Anchor error 2040 ConstraintDuplicateMutableAccount?
918 r0 = fn_5598(&local_7b8, local_7a8, local_7a0, "call" , 4 ); ■ string · 4 B
922 *( u64 *)(r3 + 8 ) = r2;
923 *( u64 *)(r3 + 0x10 ) = r1;
927 r1 = *( u64 *)(*( u64 *)(local_7f8 + 0x20 ));
928 local_2d0 = *( u64 *)(r1 + 0x18 );
929 local_2d8 = *( u64 *)(r1 + 0x10 );
930 local_2e0 = *( u64 *)(r1 + 8 );
931 local_2e8 = *( u64 *)(r1);
932 r0 = fn_b2c8(&pda_2, &local_2e8);
934 r0 = anchor_error_new (&local_788, 0x7f8 ); // Anchor error 2040 ConstraintDuplicateMutableAccount?
935 r0 = fn_5598(&local_798, local_788, local_780, "vault" , 5 ); ■ string · 5 B
939 *( u64 *)(r3 + 8 ) = r2;
940 *( u64 *)(r3 + 0x10 ) = r1;
944 r1 = *( u64 *)(*( u64 *)(local_818 + 0x20 ));
945 local_2b0 = *( u64 *)(r1 + 0x18 );
946 local_2b8 = *( u64 *)(r1 + 0x10 );
947 local_2c0 = *( u64 *)(r1 + 8 );
948 local_2c8 = *( u64 *)(r1);
949 r0 = fn_b2c8(&pda_2, &local_2c8);
951 r0 = anchor_error_new (&local_768, 0x7f8 ); // Anchor error 2040 ConstraintDuplicateMutableAccount?
952 r0 = fn_5598(&local_778, local_768, local_760, "payment_source" , 0xe ); ■ string · 14 B
956 *( u64 *)(r3 + 8 ) = r2;
957 *( u64 *)(r3 + 0x10 ) = r1;
961 r1 = *( u64 *)(*( u64 *)(r6 + 0x20 ));
962 local_290 = *( u64 *)(r1 + 0x18 );
963 local_298 = *( u64 *)(r1 + 0x10 );
964 local_2a0 = *( u64 *)(r1 + 8 );
965 local_2a8 = *( u64 *)(r1);
966 r0 = fn_b2c8(&pda_2, &local_2a8);
968 r0 = anchor_error_new (&local_748, 0x7f8 ); // Anchor error 2040 ConstraintDuplicateMutableAccount?
969 r0 = fn_5598(&local_758, local_748, local_740, "payment_destination" , 0x13 ); ■ string · 19 B
973 *( u64 *)(r3 + 0x10 ) = r2;
974 *( u64 *)(r3 + 8 ) = r1;
980 r1 = *( u8 *)(r9 + 0x68 );
981 local_328 = &pda_bump;
982 pda_2 = 0x79e5e ; // .rodata+0xa5e
986 r0 = sol_create_program_address (&pda_2, 2 , local_7d0, &pda); // derive a PDA ■ syscall
989 r0 = anchor_error_new (&local_438, 0x7d6 ); // Anchor error 2006 ConstraintSeeds?
990 r0 = fn_5598(&local_448, local_438, local_430, "config" , 6 ); ■ string · 6 B
994 *( u64 *)(r3 + 0x10 ) = r2;
995 *( u64 *)(r3 + 8 ) = r1;
⋯ ⋯ 991 more lines in this function. Download pseudocode.c for all of it.