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 set_dbc_config_try_accounts · .text+0x9d958 · 665 ins · 160 blocks · 871 lines · structured where the control flow allows↓ .c download pseudocode.c 1// set_dbc_config_try_accounts · 665 instructions · 1 caller · 26 gotos
2// panic locations in this function: src/lib.rs:95
3u64 set_dbc_config_try_accounts(u64 r1, u64 r2, u64
r3) {
67 r0 = fn_b3020(&local_e90, r2, r3);
72 r2 = *(u64 *)(0x300000000);
85 r0 = fn_e2de8(1, 5, r3, r4, r5);
87 *(u64 *)(0x300000000) = r1;
88 *(u8 *)(r1 + 4) = 0x6e;
89 *(u32 *)(r1) = 0x696d6461;
90 *(u64 *)(r7 + 0x10) = r1;
91 *(u64 *)(r7 + 0x18) = 5;
94 *(u64 *)(r6 + 0x10) = r7;
95 *(u64 *)(r6 + 8) = r8;
100 r0 = fn_e2de8(1, 5, r3, r4, r5);
102 *(u64 *)(0x300000000) = r1;
103 *(u8 *)(r1 + 4) = 0x6e;
104 *(u32 *)(r1) = 0x696d6461;
105 *(u64 *)(r7 + 0x10) = r1;
106 *(u64 *)(r7 + 0x18) = 5;
107 *(u64 *)(r7 + 8) = 5;
109 *(u64 *)(r6 + 0x10) = r7;
110 *(u64 *)(r6 + 8) = r8;
119 *(u64 *)(0x300000000) = r1;
120 *(u8 *)(r1 + 4) = 0x6e;
121 *(u32 *)(r1) = 0x696d6461;
122 *(u64 *)(r7 + 0x10) = r1;
123 *(u64 *)(r7 + 0x18) = 5;
124 *(u64 *)(r7 + 8) = 5;
126 *(u64 *)(r6 + 0x10) = r7;
127 *(u64 *)(r6 + 8) = r8;
131 r0 = fn_e2de8(1, 5, r3, r4, r5);
135 r0 = fn_e2de8(1, 5, r3, r4, r5);
137 *(u64 *)(0x300000000) = r1;
138 *(u8 *)(r1 + 4) = 0x6e;
139 *(u32 *)(r1) = 0x696d6461;
140 *(u64 *)(r7 + 0x10) = r1;
141 *(u64 *)(r7 + 0x18) = 5;
142 *(u64 *)(r7 + 8) = 5;
144 *(u64 *)(r6 + 0x10) = r7;
145 *(u64 *)(r6 + 8) = r8;
154 goto L_9db00;● kept as goto
156 goto L_9db98;● kept as goto
160 goto L_9db78;● kept as goto
162 goto L_9dae8;● kept as goto
166 r0 = fn_8ea60(&local_ff0_u64, r2, r9);
167 if (local_ff0_u64 == 0) {
171 r2 = *(u64 *)(0x300000000);
184 r0 = fn_e2de8(1, 6, r3, r4, r5);
186 *(u64 *)(0x300000000) = r1;
187 *(u16 *)(r1 + 4) = 0x6769;
188 *(u32 *)(r1) = 0x666e6f63;
189 *(u64 *)(r8 + 0x10) = r1;
190 *(u64 *)(r8 + 0x18) = 6;
191 *(u64 *)(r8 + 8) = 6;
193 *(u64 *)(r6 + 0x10) = r8;
194 *(u64 *)(r6 + 8) = r7;
199 r0 = fn_e2de8(1, 6, r3, r4, r5);
201 *(u64 *)(0x300000000) = r1;
202 *(u16 *)(r1 + 4) = 0x6769;
203 *(u32 *)(r1) = 0x666e6f63;
204 *(u64 *)(r8 + 0x10) = r1;
205 *(u64 *)(r8 + 0x18) = 6;
206 *(u64 *)(r8 + 8) = 6;
208 *(u64 *)(r6 + 0x10) = r8;
209 *(u64 *)(r6 + 8) = r7;
218 *(u64 *)(0x300000000) = r1;
219 *(u16 *)(r1 + 4) = 0x6769;
220 *(u32 *)(r1) = 0x666e6f63;
221 *(u64 *)(r8 + 0x10) = r1;
222 *(u64 *)(r8 + 0x18) = 6;
223 *(u64 *)(r8 + 8) = 6;
225 *(u64 *)(r6 + 0x10) = r8;
226 *(u64 *)(r6 + 8) = r7;
230 r0 = fn_e2de8(1, 6, r3, r4, r5);
234 r0 = fn_e2de8(1, 6, r3, r4, r5);
236 *(u64 *)(0x300000000) = r1;
237 *(u16 *)(r1 + 4) = 0x6769;
238 *(u32 *)(r1) = 0x666e6f63;
239 *(u64 *)(r8 + 0x10) = r1;
240 *(u64 *)(r8 + 0x18) = 6;
241 *(u64 *)(r8 + 8) = 6;
243 *(u64 *)(r6 + 0x10) = r8;
244 *(u64 *)(r6 + 8) = r7;
253 goto L_9dd20;● kept as goto
255 goto L_9ddd0;● kept as goto
259 goto L_9ddb0;● kept as goto
261 goto L_9dd08;● kept as goto
264 r5 = *(u64 *)(0x300000000);
274 if (r1 <= 0x300000007) {
275 r0 = fn_e2dc8(8, 0xc0);
279 *(u64 *)(0x300000000) = r1;
281 r0 = fn_f4c90(r1, &local_ff0_u64, 0xc0);
282 r1 = *(u64 *)(r9 + 8);
284 *(u64 *)(r9 + 8) = r1 + -1;
287 *(u64 *)(r9) = r1 + 0x30;
289 local_e58 = local_e78;
290 r0 = fn_70b10(&local_ea0, r2, r9);
296 r2 = *(u64 *)(0x300000000);
309 r0 = fn_e2de8(1, 0xa, r3, r4, r5);
311 *(u64 *)(0x300000000) = r1;
312 *(u64 *)(r1) = 0x666e6f635f636264; // text "dbc_conf"
313 *(u16 *)(r1 + 8) = 0x6769;
314 *(u64 *)(r7 + 0x10) = r1;
315 *(u64 *)(r7 + 0x18) = 0xa;
316 *(u64 *)(r7 + 8) = 0xa;
318 *(u64 *)(r6 + 0x10) = r7;
319 *(u64 *)(r6 + 8) = r8;
324 r0 = fn_e2de8(1, 0xa, r3, r4, r5);
326 *(u64 *)(0x300000000) = r1;
327 *(u64 *)(r1) = 0x666e6f635f636264; // text "dbc_conf"
328 *(u16 *)(r1 + 8) = 0x6769;
329 *(u64 *)(r7 + 0x10) = r1;
330 *(u64 *)(r7 + 0x18) = 0xa;
331 *(u64 *)(r7 + 8) = 0xa;
333 *(u64 *)(r6 + 0x10) = r7;
334 *(u64 *)(r6 + 8) = r8;
343 *(u64 *)(0x300000000) = r1;
344 *(u64 *)(r1) = 0x666e6f635f636264; // text "dbc_conf"
345 *(u16 *)(r1 + 8) = 0x6769;
346 *(u64 *)(r7 + 0x10) = r1;
347 *(u64 *)(r7 + 0x18) = 0xa;
348 *(u64 *)(r7 + 8) = 0xa;
350 *(u64 *)(r6 + 0x10) = r7;
351 *(u64 *)(r6 + 8) = r8;
355 r0 = fn_e2de8(1, 0xa, r3, r4, r5);
359 r0 = fn_e2de8(1, 0xa, r3, r4, r5);
361 *(u64 *)(0x300000000) = r1;
362 *(u64 *)(r1) = 0x666e6f635f636264; // text "dbc_conf"
363 *(u16 *)(r1 + 8) = 0x6769;
364 *(u64 *)(r7 + 0x10) = r1;
365 *(u64 *)(r7 + 0x18) = 0xa;
366 *(u64 *)(r7 + 8) = 0xa;
368 *(u64 *)(r6 + 0x10) = r7;
369 *(u64 *)(r6 + 8) = r8;
378 goto L_9dff8;● kept as goto
380 goto L_9e0c0;● kept as goto
384 goto L_9e0a0;● kept as goto
386 goto L_9dfe0;● kept as goto
388 r1 = *(u64 *)(r9 + 8);
390 r0 = fn_d6d20(0xbbd); // Anchor error 3005 AccountNotEnoughKeys?
391 *(u64 *)(r6 + 0x10) = r1;
392 *(u64 *)(r6 + 8) = r0;
399 *(u64 *)(r9 + 8) = r1 + -1;
400 *(u64 *)(r9) = r8 + 0x30;
401 r0 = fn_7a908(&local_ec0, r2, r9);
406 r3 = "system_program";■ string · 14 B
408 r0 = fn_800(r1, r2, r3, r4);
409 *(u64 *)(r6 + 0x10) = r1;
410 *(u64 *)(r6 + 8) = r0;
415 r0 = fn_d92e0(&local_ff0_u64);
419 if (local_ff0_u64 == 1) {
423 r0 = fn_d54c8(&local_ff0_u64);
424 *(u64 *)(r6 + 0x10) = r1;
425 *(u64 *)(r6 + 8) = r0;
435 r0 = fn_e0da8(&local_ff0_u64, 0xc838, 1, local_e58); // &"dbc"
442 *(u8 *)(local_e68 + 1) = r1;
444 local_e58 = *(u64 *)(r1 + 0x18);
445 r2 = *(u64 *)(r1 + 0x10);
446 r9 = *(u64 *)(r1 + 8);
451 if (local_e58 != r0) {
458 r0 = fn_d6d20(0x7d6); // Anchor error 2006 ConstraintSeeds?
459 r0 = fn_800(r0, r1, "dbc_settings", 0xc);■ string · 12 B
462 local_fc0 = local_e50;
463 local_fc8 = local_e60;
464 local_fd0_u64 = local_e68;
465 local_fd8_u64 = local_e58;
466 local_fe0 = local_e70;
469 r0 = fn_d09f0(r0, r2, &local_ff0_u64);
470 *(u64 *)(r6 + 0x10) = r1;
471 *(u64 *)(r6 + 8) = r0;
475 local_fc8 = &local_e78;
476 local_fd0_u64 = &local_ee0;
477 local_fd8_u64 = &local_eb0;
478 local_fe0 = &local_e80;
479 local_fe8 = &local_ed8;
480 local_ff0_u64 = &local_ea8;
481 r0 = fn_15ef0(&local_f10, &local_ff0_u64);
485 *(u64 *)(r6 + 0x10) = r9;
486 *(u64 *)(r6 + 8) = r1;
491 if (*(u8 *)(r2 + 0x29) == 0) {
492 r1 = 0x7d0; // Anchor error 2000 ConstraintMut?
496 r3 = "dbc_settings";■ string · 12 B
498 r0 = fn_800(r1, r2, r3, r4);
499 *(u64 *)(r6 + 0x10) = r1;
500 *(u64 *)(r6 + 8) = r0;
505 r0 = fn_a7810(r8, r2);
506 r0 = fn_dd2f8(r8, r2, r3, r4, r5);
509 r0 = fn_a7810(r8, *(u64 *)(r9));
510 r0 = fn_dd028(&local_f30_u64, r8);
513 r3 = -0x7fffffffffffffe6;
515 local_f20 = local_f20;
518 r0 = fn_d54c8(&local_f30_u64);
519 *(u64 *)(r6 + 0x10) = r1;
520 *(u64 *)(r6 + 8) = r0;
522 r0 = fn_15c0(&local_ff0_u64);
523 r0 = fn_15c0(&local_f10);
527 r0 = fn_ea738(&Location("src/lib.rs:95:11"), r2, r3, r4, r5);■ string · 16 B
529 r0 = fn_f4cd8(r1 + 0x80, 0, local_e48, 0);
538 r0 = fn_ea760(&Location("src/lib.rs:95:10"), r2, r3, r4, r5);■ string · 16 B
540 r0 = fn_15c0(&local_ff0_u64);
541 r0 = fn_15c0(&local_f10);
543 r0 = fn_f74d8(local_e40, r0);
548 r0 = fn_f74e8(r8, 0);
549 if ((i64)sar64(r0 << 0x20, 0x20) >= 0) {
552 r0 = fn_f4e30(r8, 0x43efffffffffffff);
554 if ((i64)sar64(r0 << 0x20, 0x20) <= 0) {
557 if (local_e58 >= r1) {
558 if (*(u8 *)(r7 + 0x29) == 0) {
559 r0 = fn_d6d20(0x7d0); // Anchor error 2000 ConstraintMut?
562 r3 = "admin";■ string · 5 B
564 r0 = fn_800(r1, r2, r3, r4);
565 *(u64 *)(r6 + 0x10) = r1;
566 *(u64 *)(r6 + 8) = r0;
571 r1 = *(u8 *)(r9 + 0xbe);
572 local_f00 = &local_f11;
573 local_f10 = 0xc78; // .rodata+0xc78
577 r0 = fn_e0eb0(&local_ff0_u64, &local_f10, 2, local_e78);
578 if (local_ff0_u8 != 1) {
579 local_f15 = local_fec;
580 local_f18 = local_fef;
581 local_f2d = local_f15;
582 local_f30_u32 = local_f18;
592 r1 = *(u64 *)(*(u64 *)(r9));
593 if (*(u64 *)(r1) == local_f30_u64) {
594 if (*(u64 *)(r1 + 8) == local_f28) {
595 if (*(u64 *)(r1 + 0x10) == local_f20) {
596 if (*(u64 *)(r1 + 0x18) != r4) {
599 r0 = fn_d6d20(0x7d6); // Anchor error 2006 ConstraintSeeds?
600 r0 = fn_800(r0, r1, "config", 6);■ string · 6 B
602 r1 = *(u64 *)(*(u64 *)(r9));
604 r4 = *(u64 *)(r1 + 8);
605 r5 = *(u64 *)(r1 + 0x10);
606 r1 = *(u64 *)(r1 + 0x18);
607 local_fd0_u32 = local_f18;
608 local_fcd = local_f15;
609 local_fb9 = local_e48;
611 local_fc1 = local_e58;
612 local_fb8 = local_e70;
617 r0 = fn_d09f0(r0, r2, &local_ff0_u64);
618 *(u64 *)(r6 + 0x10) = r1;
619 *(u64 *)(r6 + 8) = r0;
623 r4 = *(u64 *)(r9 + 0x20);
624 r3 = *(u64 *)(r9 + 0x18);
625 r2 = *(u64 *)(r9 + 0x10);
627 local_e58 = *(u64 *)(r1 + 0x18);
628 r0 = *(u64 *)(r1 + 0x10);
629 r8 = *(u64 *)(r1 + 8);
630 r5 = *(u64 *)(r9 + 8);
636 if (r4 != local_e58) {
642 r0 = fn_d6d20(0x7d1); // Anchor error 2001 ConstraintHasOne?
643 r0 = fn_800(r0, r1, "config", 6);■ string · 6 B
645 local_fb8 = local_e58;
649 local_fd8_u64 = local_e60;
650 local_fe0 = local_e68;
651 local_fe8 = local_e70;
652 local_ff0_u64 = local_e48;
653 r0 = fn_d09f0(r0, r2, &local_ff0_u64);
654 *(u64 *)(r6 + 0x10) = r1;
655 *(u64 *)(r6 + 8) = r0;
659 r0 = fn_e0da8(&local_ff0_u64, 0xc758, 1, local_e78); // &"authority"
660 local_e40 = local_fd8_u64;
661 local_e48 = local_fe0;
662 local_e58 = local_fe8;
664 *(u8 *)(local_e68) = local_fd0_u8;
665 r1 = *(u64 *)(local_e70);
666 local_e28 = *(u64 *)(r1 + 0x18);
667 local_e68 = *(u64 *)(r1 + 0x10);
668 r8 = *(u64 *)(r1 + 8);
672 if (r8 == local_e58) {
673 if (local_e68 == local_e48) {
674 if (local_e28 != local_e40) {
676 r0 = fn_d6d20(0x7d6); // Anchor error 2006 ConstraintSeeds?
677 r0 = fn_800(r0, r1, "authority", 9);■ string · 9 B
679 local_fb8 = local_e40;
680 local_fc0 = local_e48;
681 local_fc8 = local_e58;
682 local_fd0_u64 = local_e20;
683 local_fd8_u64 = local_e28;
684 local_fe0 = local_e68;
687 r0 = fn_d09f0(r0, r2, &local_ff0_u64);
688 *(u64 *)(r6 + 0x10) = r1;
689 *(u64 *)(r6 + 8) = r0;
693 *(u64 *)(r6 + 0x28) = local_e38;
694 *(u64 *)(r6 + 0x20) = local_e30;
695 *(u64 *)(r6 + 0x18) = local_e50;
696 *(u64 *)(r6 + 0x10) = local_e70;
697 *(u64 *)(r6 + 8) = local_e60;
704 goto L_9eea8;● kept as goto
710 goto L_9edd0;● kept as goto
716 goto L_9ecd0;● kept as goto
718 r0 = fn_d6d20(0x7d6); // Anchor error 2006 ConstraintSeeds?
721 r3 = "config";■ string · 6 B
723 r0 = fn_800(r1, r2, r3, r4);
724 *(u64 *)(r6 + 0x10) = r1;
725 *(u64 *)(r6 + 8) = r0;
731 r1 = 0x7d5; // Anchor error 2005 ConstraintRentExempt?
735 r3 = "dbc_settings";■ string · 12 B
737 r0 = fn_800(r1, r2, r3, r4);
738 *(u64 *)(r6 + 0x10) = r1;
739 *(u64 *)(r6 + 8) = r0;
747 goto L_9e6d8;● kept as goto
749 r0 = fn_d6d20(0xbbd); // Anchor error 3005 AccountNotEnoughKeys?
754 r2 = *(u64 *)(0x300000000);
767 r0 = fn_e2de8(1, 9, r3, r4, r5);
769 *(u64 *)(0x300000000) = r1;
770 *(u64 *)(r1) = 0x7469726f68747561; // text "authorit"
771 *(u8 *)(r1 + 8) = 0x79;
773 *(u64 *)(r2 + 0x10) = r1;
774 *(u64 *)(r2 + 0x18) = 9;
775 *(u64 *)(r2 + 8) = 9;
777 *(u64 *)(r6 + 0x10) = r2;
778 *(u64 *)(r6 + 8) = r8;
783 r0 = fn_e2de8(1, 9, r3, r4, r5);
785 *(u64 *)(0x300000000) = r1;
786 *(u64 *)(r1) = 0x7469726f68747561; // text "authorit"
787 *(u8 *)(r1 + 8) = 0x79;
789 *(u64 *)(r2 + 0x10) = r1;
790 *(u64 *)(r2 + 0x18) = 9;
791 *(u64 *)(r2 + 8) = 9;
793 *(u64 *)(r6 + 0x10) = r2;
794 *(u64 *)(r6 + 8) = r8;
803 *(u64 *)(0x300000000) = r1;
804 *(u64 *)(r1) = 0x7469726f68747561; // text "authorit"
805 *(u8 *)(r1 + 8) = 0x79;
807 *(u64 *)(r2 + 0x10) = r1;
808 *(u64 *)(r2 + 0x18) = 9;
809 *(u64 *)(r2 + 8) = 9;
811 *(u64 *)(r6 + 0x10) = r2;
812 *(u64 *)(r6 + 8) = r8;
816 r0 = fn_e2de8(1, 9, r3, r4, r5);
820 r0 = fn_e2de8(1, 9, r3, r4, r5);
822 *(u64 *)(0x300000000) = r1;
823 *(u64 *)(r1) = 0x7469726f68747561; // text "authorit"
824 *(u8 *)(r1 + 8) = 0x79;
826 *(u64 *)(r2 + 0x10) = r1;
827 *(u64 *)(r2 + 0x18) = 9;
828 *(u64 *)(r2 + 8) = 9;
830 *(u64 *)(r6 + 0x10) = r2;
831 *(u64 *)(r6 + 8) = r8;
840 goto L_9e168;● kept as goto
842 goto L_9e228;● kept as goto
846 goto L_9e208;● kept as goto
848 goto L_9e150;● kept as goto
850 goto L_9de30;● kept as goto
854 if (r1 <= 0x300000007) {
855 r0 = fn_e2dc8(8, 0xc0);
857 goto L_9dc10;● kept as goto
863 goto L_9da50;● kept as goto
865 goto L_9dbf8;● kept as goto
868 goto L_9dbd8;● kept as goto
870 goto L_9da38;● kept as goto