smart_arb
Reconstructed93.7% of control flow structuredAnchor ◇5aMAKxzyqesf1dn7cDLPdGxwshZf1aVNavYzAQQU32Fgdecompiled 14 Oct 2026
- Loader
- ■v3 · upgradeable
- sBPF
- ■v0
- Size
- ■424,472 bytes
- Instructions
- ●43,919
- Functions
- ●655
- SHA-256
- ●6a840638…44e19500
- Upgrade authority
- ■8tZL…1LQR
- Last deploy slot
- ■449,218,614
❝ Published by the authors · nothing, so everything here is revrsly outputVerified build · noneIDL · none publishedsecurity.txt · none
Loading the reconstruction…
pseudocode.cfn fn_21420 · .text+0x21420 · 248 ins · 53 blocks · 214 lines · structured where the control flow allows↓ .c download pseudocode.c 1// fn_21420 · 248 instructions · 3 callers · 2 gotos
2// panic locations in this function: programs/smart_arb/src/utils.rs:27, programs/smart_arb/src/utils.rs:48, programs/smart_arb/src/utils.rs:53, programs/smart_arb/src/utils.rs:54, programs/smart_arb/src/utils.rs:55, programs/smart_arb/src/utils.rs:64, programs/smart_arb/src/utils.rs:100
3u64 fn_21420(u64 r1, u64 r2,
u64
r3,
u64
r4,
u64
r5) {
34 r8 = *(u64 *)(r5 - 0xfe0);
35 r2 = *(u64 *)(r5 - 0xff8);
38 r0 = fn_4e6b8(r0, r2, &Location("programs/smart_arb/src/utils.rs:48:9"), r4, r5);■ string · 36 B
41 r1 = *(u64 *)(r8 + 8);
43 r0 = fn_4e6b8(r1, r2, &Location("programs/smart_arb/src/utils.rs:48:44"), r4, r5);■ string · 37 B
45 r9 = *(u64 *)(r5 - 0x1000);
48 if (*(u64 *)(r7 + 8) != *(u64 *)(r9 + 8)) {
49 r0 = fn_31b30(&local_a0, 0x5a0fc); // .rodata+0xd74
50 r0 = fn_20f8(r6 + 0x38, 0x5a0fc, r3, r4, r5); // .rodata+0xd74
54 *(u64 *)(r6 + 8) = 0x5a246; // .rodata+0xebe
55 *(u32 *)(r6 + 0x18) = 0x2f;
56 *(u64 *)(r6 + 0x10) = 0x1f;
58 *(u64 *)(r6 + 0x1c) = local_bc;
59 *(u64 *)(r6 + 0x24) = local_b4;
60 *(u64 *)(r6 + 0x2c) = local_ac;
61 *(u32 *)(r6 + 0x34) = local_a4;
62 *(u32 *)(r6 + 0x98) = 0x1775; // custom Anchor error 6005 (#5)?
63 *(u8 *)(r6 + 0x50) = 2;
66 r2 = *(u64 *)(r5 - 0xfe8);
67 r1 = *(u64 *)(r8 + 0x10);
69 r0 = fn_4e6b8(r1, r2, &Location("programs/smart_arb/src/utils.rs:53:18"), r4, r5);■ string · 37 B
71 r2 = *(u64 *)(r5 - 0xff0) + (r1 << 5);
74 r0 = fn_4e6b8(r1, r4, &Location("programs/smart_arb/src/utils.rs:54:30"), r4, r5);■ string · 37 B
76 r2 = *(u64 *)(r2 + 8);
79 r0 = fn_4e6b8(local_100, r4, &Location("programs/smart_arb/src/utils.rs:55:34"), r4, r5);■ string · 37 B
81 r2 = *(u64 *)(r5 - 0xfd8);
82 r5 = *(u8 *)(r7 + 0x34);
88 if (*(u8 *)(r9 + 0x34) == 1) {
90 r5 = *(u64 *)(r2 + 0x40) & 1;
93 r1 = *(u64 *)(r2 + 0x70);
96 r0 = fn_4e6b8(r1, local_108, &Location("programs/smart_arb/src/utils.rs:64:14"), r4, r5);■ string · 37 B
98 r0 = fn_3218(&local_d0, *(u64 *)(r3 + r1 * 0x30 + 0x10) + 0x10, &Location("programs/smart_arb/src/utils.rs:27:29"));■ string · 37 B
102 if (*(u64 *)(r2 + 8) >= 0x48) {
103 r5 = *(u64 *)(*(u64 *)(r2) + 0x40);
105 *(u64 *)(r1) = *(u64 *)(r1) + -1;
115 r6 = r3 + local_100 * 0x30;
116 r1 = *(u64 *)(r8 + 0x20);
126 r0 = fn_21c40(&local_a0, local_e8, r3, r4, fp);
132 r0 = memcpy(r6 + 0x10, &local_90, 0x90);
133 *(u64 *)(r6 + 8) = r7;
137 local_fd8 = local_f0;
140 local_ff8 = local_100;
146 r0 = fn_21c40(&local_a0, local_e8, r3, r7, fp);
151 r0 = memcpy(r8 + 0x10, &local_90, 0x90);
152 *(u64 *)(r8 + 8) = r7;
159 if (local_110 != 0) {
161 if ((*(u64 *)(r2 + 0x40) & 1) == 0) {
162 r0 = fn_31cb0(r6, 8);
165 r1 = *(u64 *)(r2 + 0x70);
168 r0 = fn_4e6b8(r1, r2, &Location("programs/smart_arb/src/utils.rs:100:14"), r4, r5);■ string · 38 B
170 r0 = fn_3218(&local_e0, *(u64 *)(r9 + r1 * 0x30 + 0x10) + 0x10, &Location("programs/smart_arb/src/utils.rs:27:29"));■ string · 37 B
174 if (*(u64 *)(r3 + 8) >= 0x48) {
175 r2 = *(u64 *)(*(u64 *)(r3) + 0x40);
177 *(u64 *)(r1) = *(u64 *)(r1) + -1;
203 *(u64 *)(r6 + 8) = r2 - r3;
204 *(u64 *)(r6 + 0x10) = neg64(r1);
208 r0 = fn_31cb0(r6, 8);
211 goto L_21658;● kept as goto
213 goto L_21550;● kept as goto