pvp
Reconstructed91.4% of control flow structuredAnchor ◇A8eZ1qbbSJvw9UiBKY76PtCJNM9P18SbtTBWDCDYTzX3decompiled 13 Oct 2026
- Loader
- ■v3 · upgradeable
- sBPF
- ■v3
- Size
- ■1,069,976 bytes
- Instructions
- ●119,369
- Functions
- ●746
- SHA-256
- ●a3d96e72…8288d17d
- Upgrade authority
- ■BmeF…7ZYs
- Last deploy slot
- ■456,472,960
❝ Published by the authors · nothing, so everything here is revrsly outputVerified build · noneIDL · none publishedsecurity.txt · none
Loading the reconstruction…
pseudocode.cfn sweep_fee_buffer_try_accounts · .text+0x9aad8 · 650 ins · 161 blocks · 944 lines · structured where the control flow allows↓ .c download pseudocode.c 1// sweep_fee_buffer_try_accounts · 650 instructions · 1 caller · 35 gotos
2u64 sweep_fee_buffer_try_accounts(u64 r1, u64 r2, u64 r3) {
3 u64
local_1000;
62 r0 = fn_b3020(&local_ea0, r2, r3);
67 r2 = *(u64 *)(0x300000000);
80 r0 = fn_e2de8(1, 5, r3, r4, r5);
82 *(u64 *)(0x300000000) = r1;
83 *(u8 *)(r1 + 4) = 0x6e;
84 *(u32 *)(r1) = 0x696d6461;
85 *(u64 *)(r7 + 0x10) = r1;
86 *(u64 *)(r7 + 0x18) = 5;
89 *(u64 *)(r6 + 0x10) = r7;
90 *(u64 *)(r6 + 8) = r9;
95 r0 = fn_e2de8(1, 5, r3, r4, r5);
97 *(u64 *)(0x300000000) = r1;
98 *(u8 *)(r1 + 4) = 0x6e;
99 *(u32 *)(r1) = 0x696d6461;
100 *(u64 *)(r7 + 0x10) = r1;
101 *(u64 *)(r7 + 0x18) = 5;
102 *(u64 *)(r7 + 8) = 5;
104 *(u64 *)(r6 + 0x10) = r7;
105 *(u64 *)(r6 + 8) = r9;
114 *(u64 *)(0x300000000) = r1;
115 *(u8 *)(r1 + 4) = 0x6e;
116 *(u32 *)(r1) = 0x696d6461;
117 *(u64 *)(r7 + 0x10) = r1;
118 *(u64 *)(r7 + 0x18) = 5;
119 *(u64 *)(r7 + 8) = 5;
121 *(u64 *)(r6 + 0x10) = r7;
122 *(u64 *)(r6 + 8) = r9;
126 r0 = fn_e2de8(1, 5, r3, r4, r5);
130 r0 = fn_e2de8(1, 5, r3, r4, r5);
132 *(u64 *)(0x300000000) = r1;
133 *(u8 *)(r1 + 4) = 0x6e;
134 *(u32 *)(r1) = 0x696d6461;
135 *(u64 *)(r7 + 0x10) = r1;
136 *(u64 *)(r7 + 0x18) = 5;
137 *(u64 *)(r7 + 8) = 5;
139 *(u64 *)(r6 + 0x10) = r7;
140 *(u64 *)(r6 + 8) = r9;
149 goto L_9ac78;● kept as goto
151 goto L_9ad28;● kept as goto
155 goto L_9ad08;● kept as goto
157 goto L_9ac60;● kept as goto
160 r0 = fn_8ea60(&local_ff0_u64, r2, r8);
161 if (local_ff0_u64 == 0) {
165 r2 = *(u64 *)(0x300000000);
178 r0 = fn_e2de8(1, 6, r3, r4, r5);
180 *(u64 *)(0x300000000) = r1;
181 *(u16 *)(r1 + 4) = 0x6769;
182 *(u32 *)(r1) = 0x666e6f63;
183 *(u64 *)(r8 + 0x10) = r1;
184 *(u64 *)(r8 + 0x18) = 6;
185 *(u64 *)(r8 + 8) = 6;
187 *(u64 *)(r6 + 0x10) = r8;
188 *(u64 *)(r6 + 8) = r7;
193 r0 = fn_e2de8(1, 6, r3, r4, r5);
195 *(u64 *)(0x300000000) = r1;
196 *(u16 *)(r1 + 4) = 0x6769;
197 *(u32 *)(r1) = 0x666e6f63;
198 *(u64 *)(r8 + 0x10) = r1;
199 *(u64 *)(r8 + 0x18) = 6;
200 *(u64 *)(r8 + 8) = 6;
202 *(u64 *)(r6 + 0x10) = r8;
203 *(u64 *)(r6 + 8) = r7;
212 *(u64 *)(0x300000000) = r1;
213 *(u16 *)(r1 + 4) = 0x6769;
214 *(u32 *)(r1) = 0x666e6f63;
215 *(u64 *)(r8 + 0x10) = r1;
216 *(u64 *)(r8 + 0x18) = 6;
217 *(u64 *)(r8 + 8) = 6;
219 *(u64 *)(r6 + 0x10) = r8;
220 *(u64 *)(r6 + 8) = r7;
224 r0 = fn_e2de8(1, 6, r3, r4, r5);
228 r0 = fn_e2de8(1, 6, r3, r4, r5);
230 *(u64 *)(0x300000000) = r1;
231 *(u16 *)(r1 + 4) = 0x6769;
232 *(u32 *)(r1) = 0x666e6f63;
233 *(u64 *)(r8 + 0x10) = r1;
234 *(u64 *)(r8 + 0x18) = 6;
235 *(u64 *)(r8 + 8) = 6;
237 *(u64 *)(r6 + 0x10) = r8;
238 *(u64 *)(r6 + 8) = r7;
247 goto L_9aeb0;● kept as goto
249 goto L_9af48;● kept as goto
253 goto L_9af28;● kept as goto
255 goto L_9ae98;● kept as goto
258 r5 = *(u64 *)(0x300000000);
268 if (r1 <= 0x300000007) {
269 r0 = fn_e2dc8(8, 0xc0);
273 *(u64 *)(0x300000000) = r1;
275 r0 = fn_f4c90(r1, &local_ff0_u64, 0xc0);
276 r1 = *(u64 *)(r8 + 8);
278 *(u64 *)(r8 + 8) = r1 + -1;
280 *(u64 *)(r8) = r9 + 0x30;
282 r0 = fn_8ee38(&local_ff0_u64, r2, r8, r4, r5);
283 if (local_f60 == 2) {
287 r2 = *(u64 *)(0x300000000);
300 r0 = fn_e2de8(1, 0xa, r3, r4, r5);
302 *(u64 *)(0x300000000) = r1;
303 *(u64 *)(r1) = 0x666675625f656566; // text "fee_buff"
304 *(u16 *)(r1 + 8) = 0x7265;
305 *(u64 *)(r8 + 0x10) = r1;
306 *(u64 *)(r8 + 0x18) = 0xa;
307 *(u64 *)(r8 + 8) = 0xa;
309 *(u64 *)(r6 + 0x10) = r8;
310 *(u64 *)(r6 + 8) = r7;
315 r0 = fn_e2de8(1, 0xa, r3, r4, r5);
317 *(u64 *)(0x300000000) = r1;
318 *(u64 *)(r1) = 0x666675625f656566; // text "fee_buff"
319 *(u16 *)(r1 + 8) = 0x7265;
320 *(u64 *)(r8 + 0x10) = r1;
321 *(u64 *)(r8 + 0x18) = 0xa;
322 *(u64 *)(r8 + 8) = 0xa;
324 *(u64 *)(r6 + 0x10) = r8;
325 *(u64 *)(r6 + 8) = r7;
334 *(u64 *)(0x300000000) = r1;
335 *(u64 *)(r1) = 0x666675625f656566; // text "fee_buff"
336 *(u16 *)(r1 + 8) = 0x7265;
337 *(u64 *)(r8 + 0x10) = r1;
338 *(u64 *)(r8 + 0x18) = 0xa;
339 *(u64 *)(r8 + 8) = 0xa;
341 *(u64 *)(r6 + 0x10) = r8;
342 *(u64 *)(r6 + 8) = r7;
346 r0 = fn_e2de8(1, 0xa, r3, r4, r5);
350 r0 = fn_e2de8(1, 0xa, r3, r4, r5);
352 *(u64 *)(0x300000000) = r1;
353 *(u64 *)(r1) = 0x666675625f656566; // text "fee_buff"
354 *(u16 *)(r1 + 8) = 0x7265;
355 *(u64 *)(r8 + 0x10) = r1;
356 *(u64 *)(r8 + 0x18) = 0xa;
357 *(u64 *)(r8 + 8) = 0xa;
359 *(u64 *)(r6 + 0x10) = r8;
360 *(u64 *)(r6 + 8) = r7;
369 goto L_9b060;● kept as goto
371 goto L_9b1b0;● kept as goto
375 goto L_9b190;● kept as goto
377 goto L_9b048;● kept as goto
380 r5 = *(u64 *)(0x300000000);
391 if (r1 > 0x300000007) {
396 r0 = fn_f4c90(r1, &local_ff0_u64, 0xb8);
397 r0 = fn_8ee38(&local_ff0_u64, r2, r8, r4, r5);
398 if (local_f60 == 2) {
411 if (r1 <= 0x300000007) {
412 r0 = fn_e2de8(1, 9, r3, r4, r5);
414 *(u64 *)(0x300000000) = r1;
415 *(u64 *)(r1) = 0x6f73775f6d616574; // text "team_wso"
416 *(u8 *)(r1 + 8) = 0x6c;
417 *(u64 *)(r8 + 0x10) = r1;
418 *(u64 *)(r8 + 0x18) = 9;
419 *(u64 *)(r8 + 8) = 9;
421 *(u64 *)(r6 + 0x10) = r8;
422 *(u64 *)(r6 + 8) = r7;
427 if (r1 <= 0x300000007) {
428 r0 = fn_e2de8(1, 9, r3, r4, r5);
430 *(u64 *)(0x300000000) = r1;
431 *(u64 *)(r1) = 0x6f73775f6d616574; // text "team_wso"
432 *(u8 *)(r1 + 8) = 0x6c;
433 *(u64 *)(r8 + 0x10) = r1;
434 *(u64 *)(r8 + 0x18) = 9;
435 *(u64 *)(r8 + 8) = 9;
437 *(u64 *)(r6 + 0x10) = r8;
438 *(u64 *)(r6 + 8) = r7;
446 if (r1 <= 0x300000007) {
447 r0 = fn_e2de8(1, 9, r3, r4, r5);
449 *(u64 *)(0x300000000) = r1;
450 *(u64 *)(r1) = 0x6f73775f6d616574; // text "team_wso"
451 *(u8 *)(r1 + 8) = 0x6c;
452 *(u64 *)(r8 + 0x10) = r1;
453 *(u64 *)(r8 + 0x18) = 9;
454 *(u64 *)(r8 + 8) = 9;
456 *(u64 *)(r6 + 0x10) = r8;
457 *(u64 *)(r6 + 8) = r7;
463 if (r1 > 0x300000007) {
464 *(u64 *)(0x300000000) = r1;
465 *(u64 *)(r1) = 0x6f73775f6d616574; // text "team_wso"
466 *(u8 *)(r1 + 8) = 0x6c;
467 *(u64 *)(r8 + 0x10) = r1;
468 *(u64 *)(r8 + 0x18) = 9;
469 *(u64 *)(r8 + 8) = 9;
471 *(u64 *)(r6 + 0x10) = r8;
472 *(u64 *)(r6 + 8) = r7;
476 r0 = fn_e2de8(1, 9, r3, r4, r5);
481 goto L_9b3e0;● kept as goto
483 goto L_9b2f8;● kept as goto
496 if (r9 <= 0x300000007) {
497 r0 = fn_e2dc8(8, 0xb8);
500 *(u64 *)(0x300000000) = r9;
501 r0 = fn_f4c90(r9, &local_ff0_u64, 0xb8);
502 r0 = fn_7b428(&local_eb0, r2, r8);
507 r3 = "token_program";■ string · 13 B
509 r0 = fn_800(r1, r2, r3, r4);
510 *(u64 *)(r6 + 0x10) = r1;
511 *(u64 *)(r6 + 8) = r0;
517 r1 = *(u8 *)(r9 + 0xbe);
518 local_ed8 = &local_ee9;
519 local_ee8 = 0xc78; // .rodata+0xc78
523 r0 = fn_e0eb0(&local_ff0_u64, &local_ee8, 2, local_e90);
524 if (local_ff0_u8 != 1) {
526 local_eed = local_fec;
527 local_ef0 = local_fef;
528 local_ec5 = local_eed;
529 local_ec8_u32 = local_ef0;
537 r1 = *(u64 *)(*(u64 *)(r9));
538 if (*(u64 *)(r1) == local_ec8_u64) {
539 if (*(u64 *)(r1 + 8) == local_ec0) {
540 if (*(u64 *)(r1 + 0x10) == local_eb8) {
541 if (*(u64 *)(r1 + 0x18) != r4) {
546 r0 = fn_d6d20(0x7d6); // Anchor error 2006 ConstraintSeeds?
547 r0 = fn_800(r0, r1, "config", 6);■ string · 6 B
549 r1 = *(u64 *)(*(u64 *)(r9));
551 r4 = *(u64 *)(r1 + 8);
552 r5 = *(u64 *)(r1 + 0x10);
553 r1 = *(u64 *)(r1 + 0x18);
554 local_fd0_u32 = local_ef0;
555 local_fcd = local_eed;
556 local_fb9 = local_e78;
558 local_fc1 = local_e88;
559 local_fb8 = local_e90;
564 r0 = fn_d09f0(r0, r2, &local_ff0_u64);
565 *(u64 *)(r6 + 0x10) = r1;
566 *(u64 *)(r6 + 8) = r0;
570 r4 = *(u64 *)(r9 + 0x20);
571 r3 = *(u64 *)(r9 + 0x18);
572 r2 = *(u64 *)(r9 + 0x10);
574 local_e60 = *(u64 *)(r1 + 0x18);
575 r0 = *(u64 *)(r1 + 0x10);
576 r8 = *(u64 *)(r1 + 8);
577 r5 = *(u64 *)(r9 + 8);
582 if (r4 != local_e60) {
589 r0 = fn_d6d20(0x7d1); // Anchor error 2001 ConstraintHasOne?
590 r0 = fn_800(r0, r1, "config", 6);■ string · 6 B
592 local_fb8 = local_e60;
596 local_fd8_u64 = local_e78;
597 local_fe0 = local_e80;
598 local_fe8 = local_e90;
599 local_ff0_u64 = local_e88;
600 r0 = fn_d09f0(r0, r2, &local_ff0_u64);
601 *(u64 *)(r6 + 0x10) = r1;
602 *(u64 *)(r6 + 8) = r0;
606 r0 = fn_e0da8(&local_ff0_u64, 0xc758, 1, local_e90); // &"authority"
611 *(u8 *)(local_e78) = local_fd0_u8;
612 r1 = *(u64 *)(local_e88);
613 local_e90 = *(u64 *)(r1 + 0x18);
614 r2 = *(u64 *)(r1 + 0x10);
615 r9 = *(u64 *)(r1 + 8);
620 if (local_e90 != r0) {
627 r0 = fn_d6d20(0x7d6); // Anchor error 2006 ConstraintSeeds?
628 r0 = fn_800(r0, r1, "authority", 9);■ string · 9 B
631 local_fc0 = local_e70;
632 local_fc8 = local_e78;
633 local_fd0_u64 = local_e80;
634 local_fd8_u64 = local_e90;
635 local_fe0 = local_e88;
638 r0 = fn_d09f0(r0, r2, &local_ff0_u64);
639 *(u64 *)(r6 + 0x10) = r1;
640 *(u64 *)(r6 + 8) = r0;
644 r1 = *(u64 *)(local_e70);
645 if (*(u8 *)(r1 + 0x29) == 0) {
646 r0 = fn_d6d20(0x7d0); // Anchor error 2000 ConstraintMut?
649 r3 = "fee_buffer";■ string · 10 B
651 r0 = fn_800(r1, r2, r3, r4);
652 *(u64 *)(r6 + 0x10) = r1;
653 *(u64 *)(r6 + 8) = r0;
658 local_e78 = *(u64 *)(r1 + 0x18);
659 local_e90 = *(u64 *)(r1 + 0x10);
660 r9 = *(u64 *)(r1 + 8);
666 r0 = fn_cee80(&local_f10, &local_ff0_u64, 0x10d0); // .rodata+0x10d0
667 if (r8 == local_f10) {
668 if (r9 == local_f08) {
669 if (local_e90 == local_f00) {
670 if (local_e78 != local_ef8) {
671 r0 = fn_d6d20(0x7dc); // Anchor error 2012 ConstraintAddress?
672 r0 = fn_800(r0, r1, "fee_buffer", 0xa);■ string · 10 B
674 local_fd8_u64 = local_e78;
675 local_fe0 = local_e90;
678 local_fd0_u64 = local_f10;
679 local_fc8 = local_f08;
680 local_fc0 = local_f00;
683 r0 = fn_d09f0(r0, r2, &local_ff0_u64);
684 *(u64 *)(r6 + 0x10) = r1;
685 *(u64 *)(r6 + 8) = r0;
689 r1 = *(u64 *)(local_e68);
690 if (*(u8 *)(r1 + 0x29) == 0) {
691 r0 = fn_d6d20(0x7d0); // Anchor error 2000 ConstraintMut?
694 r3 = "team_wsol";■ string · 9 B
696 r0 = fn_800(r1, r2, r3, r4);
697 *(u64 *)(r6 + 0x10) = r1;
698 *(u64 *)(r6 + 8) = r0;
703 local_e78 = *(u64 *)(r1 + 0x18);
704 local_e90 = *(u64 *)(r1 + 0x10);
705 r9 = *(u64 *)(r1 + 8);
707 r0 = fn_cee80(&local_f30, local_e80 + 0x28, 0x10d0); // .rodata+0x10d0
708 if (r8 == local_f30) {
709 if (r9 == local_f28) {
710 if (local_e90 == local_f20) {
711 if (local_e78 != local_f18) {
712 r0 = fn_d6d20(0x7dc); // Anchor error 2012 ConstraintAddress?
713 r0 = fn_800(r0, r1, "team_wsol", 9);■ string · 9 B
715 local_fd8_u64 = local_e78;
716 local_fe0 = local_e90;
719 local_fd0_u64 = local_f30;
720 local_fc8 = local_f28;
721 local_fc0 = local_f20;
724 r0 = fn_d09f0(r0, r2, &local_ff0_u64);
725 *(u64 *)(r6 + 0x10) = r1;
726 *(u64 *)(r6 + 8) = r0;
730 *(u64 *)(r6 + 0x28) = local_e58;
731 *(u64 *)(r6 + 0x20) = local_e68;
732 *(u64 *)(r6 + 0x18) = local_e70;
733 *(u64 *)(r6 + 0x10) = local_e88;
734 *(u64 *)(r6 + 8) = local_e80;
741 r0 = fn_d6d20(0x7dc); // Anchor error 2012 ConstraintAddress?
742 r0 = fn_800(r0, r1, "team_wsol", 9);■ string · 9 B
744 local_fd8_u64 = local_e78;
745 local_fe0 = local_e90;
748 local_fd0_u64 = local_f30;
749 local_fc8 = local_f28;
750 local_fc0 = local_f20;
753 r0 = fn_d09f0(r0, r2, &local_ff0_u64);
754 *(u64 *)(r6 + 0x10) = r1;
755 *(u64 *)(r6 + 8) = r0;
764 r0 = fn_d6d20(0x7dc); // Anchor error 2012 ConstraintAddress?
765 r0 = fn_800(r0, r1, "fee_buffer", 0xa);■ string · 10 B
767 local_fd8_u64 = local_e78;
768 local_fe0 = local_e90;
771 local_fd0_u64 = local_f10;
772 local_fc8 = local_f08;
773 local_fc0 = local_f00;
776 r0 = fn_d09f0(r0, r2, &local_ff0_u64);
777 *(u64 *)(r6 + 0x10) = r1;
778 *(u64 *)(r6 + 8) = r0;
787 goto L_9bdf0;● kept as goto
793 goto L_9bd10;● kept as goto
799 goto L_9bc00;● kept as goto
801 r0 = fn_d6d20(0x7d6); // Anchor error 2006 ConstraintSeeds?
804 r3 = "config";■ string · 6 B
806 r0 = fn_800(r1, r2, r3, r4);
807 *(u64 *)(r6 + 0x10) = r1;
808 *(u64 *)(r6 + 8) = r0;
817 if (r9 <= 0x300000007) {
818 r0 = fn_e2dc8(8, 0xb8);
820 goto L_9b4d0;● kept as goto
826 goto L_9b398;● kept as goto
828 goto L_9b4b8;● kept as goto
831 goto L_9b498;● kept as goto
833 goto L_9b380;● kept as goto
835 r0 = fn_e2dc8(8, 0xb8);
840 if (r1 <= 0x300000007) {
841 r0 = fn_e2dc8(8, 0xb8);
843 goto L_9b230;● kept as goto
849 goto L_9b210;● kept as goto
851 goto L_9b150;● kept as goto
854 goto L_9b1f0;● kept as goto
856 goto L_9b138;● kept as goto
858 r0 = fn_d6d20(0xbbd); // Anchor error 3005 AccountNotEnoughKeys?
863 r2 = *(u64 *)(0x300000000);
880 if (r1 <= 0x300000007) {
881 r0 = fn_e2de8(1, 9, r3, r4, r5);
883 *(u64 *)(0x300000000) = r1;
884 *(u64 *)(r1) = 0x7469726f68747561; // text "authorit"
885 *(u8 *)(r1 + 8) = 0x79;
887 *(u64 *)(r2 + 0x10) = r1;
888 *(u64 *)(r2 + 0x18) = 9;
889 *(u64 *)(r2 + 8) = 9;
891 *(u64 *)(r6 + 0x10) = r2;
892 *(u64 *)(r6 + 8) = r9;
901 goto L_9b738;● kept as goto
903 goto L_9b688;● kept as goto
906 if (r1 <= 0x300000007) {
907 r0 = fn_e2de8(1, 9, r3, r4, r5);
909 *(u64 *)(0x300000000) = r1;
910 *(u64 *)(r1) = 0x7469726f68747561; // text "authorit"
911 *(u8 *)(r1 + 8) = 0x79;
913 *(u64 *)(r2 + 0x10) = r1;
914 *(u64 *)(r2 + 0x18) = 9;
915 *(u64 *)(r2 + 8) = 9;
917 *(u64 *)(r6 + 0x10) = r2;
918 *(u64 *)(r6 + 8) = r9;
923 goto L_9afb0;● kept as goto
927 if (r1 <= 0x300000007) {
928 r0 = fn_e2dc8(8, 0xc0);
930 goto L_9ada0;● kept as goto
936 goto L_9abc8;● kept as goto
938 goto L_9ad88;● kept as goto
941 goto L_9ad68;● kept as goto
943 goto L_9abb0;● kept as goto