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 second_leg_arb_handler · .text+0x35fa8 · 181 ins · 31 blocks · 139 lines · structured where the control flow allows↓ .c download pseudocode.c 1// second_leg_arb_handler · 181 instructions · 1 caller
2// panic locations in this function: programs/smart_arb/src/lib.rs:22
3u64 second_leg_arb_handler(u64 r1, u64 r2, u64 r3,
u64
r4,
u64
r5) {
52 sol_log_("Instruction: SecondLegArb", 0x19); // log a string■ string · 25 B
53 r7 = *(u64 *)(r8 - 0xff8);
55 r8 = *(u64 *)(r8 - 0x1000);
57 r0 = fn_3a108(&local_228, &local_5e8);
59 if (r6 == -0x8000000000000000) {
60 local_408 = local_220_u64;
61 r0 = fn_2968(&local_408, r2, r3, r4, r5);
62 r0 = anchor_error_new(r9, 0x66); // Anchor error 102 InstructionDidNotDeserialize?
67 r0 = memcpy(&local_6b4, &local_21c, 0x8c);
74 local_5f0 = local_6d8;
75 local_5f8 = local_6d0;
76 local_ff0 = &local_610;
77 local_ff8 = &local_628;
80 r0 = second_leg_arb_try_accounts(&local_228, r9, &local_5f8, r8, fp);
84 r0 = memcpy(r6, &local_228, 0xa0);
85 r0 = memcpy(local_6e0, r6, 0xa0);
86 r0 = fn_cfb0(&local_610);
87 r0 = fn_d058(&local_628);
88 r0 = fn_3018(&local_6c0);
92 r0 = memcpy(r6, &local_228, 0x1da);
96 r0 = memcpy(r8, r6, 0x1da);
101 local_20 = local_5f0;
102 local_28 = local_5f8;
106 r0 = memcpy(r6, &local_6c0, 0x98);
107 r0 = second_leg_arb(&local_228, &local_38, r6);
113 r0 = memcpy(r9 + 0x18, &local_210, 0x88);
114 *(u64 *)(r9 + 0x10) = r7;
115 *(u64 *)(r9 + 8) = r6;
117 r0 = fn_2b58(&local_5e8);
118 r0 = fn_cfb0(&local_610);
123 r0 = fn_6de8(&local_228, &local_48);
124 if (local_228 == -0x8000000000000000) {
125 local_408 = local_220_u64;
126 r0 = fn_4e780("called `Result::unwrap()` on an `Err` value", 0x2b, &local_408, 0x5d638, &Location("programs/smart_arb/src/lib.rs:22:1")); // .data.rel.ro+0x200■ string · 43 B
128 local_408 = local_228;
133 r0 = fn_49818(r1, r2);
134 r0 = fn_29d0(&local_408);
136 r0 = fn_2b58(&local_5e8);
137 r0 = fn_cfb0(&local_610);