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…
smart_arb · revrsly1// fn_3f8b8 · 784 instructions · 1 caller · 55 gotos
2// panic locations in this function: src/algorithms/div/knuth.rs:93, src/algorithms/div/knuth.rs:98, src/algorithms/div/knuth.rs:104, src/algorithms/div/knuth.rs:184, src/algorithms/div/knuth.rs:185, src/algorithms/div/knuth.rs:187, src/algorithms/div/knuth.rs:117, src/algorithms/div/knuth.rs:118, src/algorithms/div/knuth.rs:119, src/algorithms/div/knuth.rs:125, src/algorithms/div/knuth.rs:171, src/algorithms/div/knuth.rs:153
3fn
fn_3f8b8(
mut
r1:
u64
,
mut
r2:
u64
,
mut
r3:
u64
,
mut
r4:
u64
) ->
u64
{
4 let mut local_1000: u64 = 0;
5 let mut local_ff8: u64 = 0;
6 let mut local_248: u64 = 0;
7 let mut local_240: u64 = 0;
8 let mut local_238: u64 = 0;
9 let mut local_230: u64 = 0;
10 let mut local_228: u64 = 0;
11 let mut local_220: u64 = 0;
12 let mut local_218: u64 = 0;
13 let mut local_210: u64 = 0;
14 let mut local_208: u64 = 0;
15 let mut local_200: u64 = 0;
16 let mut local_1f8: u64 = 0;
17 let mut local_1f0: u64 = 0;
18 let mut local_1e8: u64 = 0;
19 let mut local_1e0: u64 = 0;
20 let mut local_1d8: u64 = 0;
21 let mut local_1d0: u64 = 0;
22 let mut local_1c8: u64 = 0;
23 let mut local_1c0: u64 = 0;
24 let mut local_1b8: u64 = 0;
25 let mut local_1b0: u64 = 0;
26 let mut local_1a8: u64 = 0;
27 let mut local_1a0: u64 = 0;
28 let mut local_198: u64 = 0;
29 let mut local_190: u64 = 0;
30 let mut local_188: u64 = 0;
31 let mut local_180: u64 = 0;
32 let mut local_178: u64 = 0;
33 let mut local_170: u64 = 0;
34 let mut local_168: u64 = 0;
35 let mut local_160: u64 = 0;
36 let mut local_158: u64 = 0;
37 let mut local_150: u64 = 0;
38 let mut local_148: u64 = 0;
39 let mut local_140: u64 = 0;
40 let mut local_138: u64 = 0;
41 let mut local_130: u64 = 0;
42 let mut local_128: u64 = 0;
43 let mut local_120: u64 = 0;
44 let mut local_118: u64 = 0;
45 let mut local_110: u64 = 0;
46 let mut local_108: u64 = 0;
47 let mut local_100: u64 = 0;
48 let mut local_f8: u64 = 0;
49 let mut local_f0: u64 = 0;
50 let mut local_e8: u64 = 0;
51 let mut local_e0: u64 = 0;
52 let mut local_d8: u64 = 0;
53 let mut local_d0: u64 = 0;
54 let mut local_c8: u64 = 0;
55 let mut local_c0: u64 = 0;
56 let mut local_b8: u64 = 0;
57 let mut local_b0: u64 = 0;
58 let mut local_a8: u64 = 0;
59 let mut local_a0: u64 = 0;
60 let mut local_98: u64 = 0;
61 let mut local_90: u64 = 0;
62 let mut local_88: u64 = 0;
63 let mut local_80: u64 = 0;
64 let mut local_78: u64 = 0;
65 let mut local_70: u64 = 0;
66 let mut local_68: u64 = 0;
67 let mut local_60: u64 = 0;
68 let mut local_58: u64 = 0;
69 let mut local_50: u64 = 0;
70 let mut local_48: u64 = 0;
71 let mut local_40: u8 = 0;
72 let mut local_38: u64 = 0;
73 let mut local_30: u64 = 0;
74 let mut local_28: u64 = 0;
75 let mut local_20: u64 = 0;
76 let mut local_18: u64 = 0;
77 let mut local_10: u64 = 0;
78 let mut local_8: u64 = 0;
84 r0 = fn_53478(&Location("src/algorithms/div/knuth.rs:93:13"), r2, r3, r4, r5);■ string · 33 B
87 r0 = fn_53478(&Location("src/algorithms/div/knuth.rs:98:36"), r2, r3, r4, r5);■ string · 33 B
90 r0 = fn_53478(&Location("src/algorithms/div/knuth.rs:98:52"), r2, r3, r4, r5);■ string · 33 B
98 r1 = *((r1 - 8) as *const u64);
108 r1 = (r1 | r1 >> 0x20) ^ -1;
109 r1 -= (r1 >> 1 & 0x5555555555555555); // text "UUUUUUUU"
110 r2 = 0x3333333333333333;
111 r3 = (r1 & r2) + (r1 >> 2 & r2);
112 r3 = (r3 + (r3 >> 4) & 0xf0f0f0f0f0f0f0f) * 0x101010101010101 >> 0x38;
114 local_190 = *((local_238) as *const u64);
121 if (r9 as i64) >= 0 {
122 r0 = fn_53478(&Location("src/algorithms/div/reciprocal.rs:86:53"), r2, r3, r4, r5);■ string · 38 B
124 r1 = *((0x5a788 + (r9 >> 0x36 & 0x3fe) - 0x200) as *const u16); // .rodata+0x1400
125 r2 = (r9 >> 0x18) + 1;
126 r1 = (r1 << 0xb) + (r2 * r1 * r1 >> 0x28 ^ -1);
127 r6 = ((0x1000000000000000 - r1 * r2) * r1 >> 0x2f) + (r1 << 0xd);
128 r0 = fn_54df0(&local_70, (neg64(r9 & 1) & r6 >> 1) - r6 * (r9 + 1 >> 1), 0, r6, 0);
129 r6 = (r6 << 0x1f) + (local_68 >> 1);
137 r0 = fn_54df0(r1, r2, r3, r9, 0);
138 r6 -= (r9 + local_78);
158 r0 = fn_54df0(&local_90, local_190, 0, r7, 0);
165 local_240 = r6 - local_1a8;
169 if local_90 >= local_190 {
181 /* continues at L_3ff08; not expressible as structured Rust */● an edge Rust can't hold
187 /* continues at L_41080; not expressible as structured Rust */● an edge Rust can't hold
189 /* continues at L_3ff00; not expressible as structured Rust */● an edge Rust can't hold
199 local_208 = local_1e0 + (r8 << 3);
200 local_48 = local_240;
202 local_218 = neg64(local_1c0) & 0x3f;
207 r0 = fn_3f830(&local_a0, &local_50);
216 r2 = local_188 + (r0 << 3);
229 r6 = *((r8) as *const u64);
233 r9 = *((r2) as *const u64);
250 local_ff8 = &Location("src/algorithms/div/knuth.rs:171:51");■ string · 34 B
251 local_1000 = local_1a0;
252 r0 = fn_3f530(&local_c0, local_1d0, r0, local_188, fp);
260 local_20 = local_208;
261 local_28 = local_1e0;
264 local_30 = r3 + (r1 << 3);
269 r0 = fn_3f480(&local_d0, &local_38);
274 r0 = fn_54df0(&local_e0, local_c8, 0, -1, 0);
285 r4 = *((r7) as *const u64);
288 *((r7) as *mut u64) = r4 - r3;
294 /* continues at L_40950; not expressible as structured Rust */● an edge Rust can't hold
297 /* continues at L_40938; not expressible as structured Rust */● an edge Rust can't hold
300 /* continues at L_40910; not expressible as structured Rust */● an edge Rust can't hold
315 *((r1) as *mut u64) = r7;
321 r0 = fn_53420(&Location("src/algorithms/mul.rs:278:5"), r2, r3, r4, r5);■ string · 27 B
324 /* continues at L_409a8; not expressible as structured Rust */● an edge Rust can't hold
327 /* continues at L_407f8; not expressible as structured Rust */● an edge Rust can't hold
329 r0 = fn_54df0(&local_f0, r7, 0, local_228, 0);
347 r0 = fn_54df0(&local_100, r2, 0, r4, 0);
359 r6 = r6 - local_1d8 * r9 - (r1 + r3);
389 /* continues at L_40ed0; not expressible as structured Rust */● an edge Rust can't hold
393 local_ff8 = &Location("src/algorithms/div/knuth.rs:144:59");■ string · 34 B
394 local_1000 = local_1a0;
395 r0 = fn_3f530(&local_140, local_1d0, local_1f0, local_188, fp);
400 local_1d8 = r8 - local_220 - local_200;
401 local_1c8 = local_1c8 - r9;
404 local_20 = local_238;
405 local_28 = local_1e0;
408 local_30 = r3 + (r1 << 3);
412 r0 = fn_3f480(&local_150, &local_38);
417 r0 = fn_54df0(&local_160, local_148, 0, r6, 0);
428 r4 = *((r8) as *const u64);
431 *((r8) as *mut u64) = r4 - r3;
437 /* continues at L_40c78; not expressible as structured Rust */● an edge Rust can't hold
440 /* continues at L_40c60; not expressible as structured Rust */● an edge Rust can't hold
443 /* continues at L_40c38; not expressible as structured Rust */● an edge Rust can't hold
455 *((local_1f8) as *mut u64) = r5 - r1;
460 *((r4) as *mut u64) = r8 - r2;
471 local_ff8 = &Location("src/algorithms/div/knuth.rs:162:53");■ string · 34 B
472 local_1000 = local_1a0;
473 r0 = fn_3f530(&local_170, local_1d0, r0, local_188, fp);
484 /* continues at L_40ed0; not expressible as structured Rust */● an edge Rust can't hold
487 r7 = *((r2) as *const u64);
493 r7 = r0 + *((r3) as *const u64);
496 *((r2) as *mut u64) = r7;
507 /* continues at L_40e88; not expressible as structured Rust */● an edge Rust can't hold
510 /* continues at L_40e60; not expressible as structured Rust */● an edge Rust can't hold
512 /* continues at L_40eb8; not expressible as structured Rust */● an edge Rust can't hold
515 /* continues at L_40e08; not expressible as structured Rust */● an edge Rust can't hold
517 /* continues at L_40ed0; not expressible as structured Rust */● an edge Rust can't hold
520 /* continues at L_40d80; not expressible as structured Rust */● an edge Rust can't hold
523 /* continues at L_40d70; not expressible as structured Rust */● an edge Rust can't hold
526 /* continues at L_40d40; not expressible as structured Rust */● an edge Rust can't hold
528 r0 = fn_53420(&Location("src/algorithms/mul.rs:278:5"), r2, r3, r4, r5);■ string · 27 B
531 /* continues at L_40cd0; not expressible as structured Rust */● an edge Rust can't hold
534 /* continues at L_40ae8; not expressible as structured Rust */● an edge Rust can't hold
536 local_ff8 = &Location("src/algorithms/div/knuth.rs:153:59");■ string · 34 B
537 local_1000 = local_1a0;
538 r0 = fn_3f530(&local_110, local_1d0, r0, local_188, fp);
546 local_20 = local_208;
547 local_28 = local_1e0;
550 local_30 = r3 + (r1 << 3);
554 r0 = fn_3f480(&local_120, &local_38);
559 r0 = fn_54df0(&local_130, local_118, 0, r6, 0);
570 r4 = *((r8) as *const u64);
573 *((r8) as *mut u64) = r4 - r3;
579 /* continues at L_40718; not expressible as structured Rust */● an edge Rust can't hold
582 /* continues at L_40700; not expressible as structured Rust */● an edge Rust can't hold
585 /* continues at L_406d8; not expressible as structured Rust */● an edge Rust can't hold
599 /* continues at L_40d90; not expressible as structured Rust */● an edge Rust can't hold
601 /* continues at L_40a48; not expressible as structured Rust */● an edge Rust can't hold
603 /* continues at L_40ed0; not expressible as structured Rust */● an edge Rust can't hold
605 r2 = *((local_1b0) as *const u64);
606 /* continues at L_40a40; not expressible as structured Rust */● an edge Rust can't hold
608 r0 = fn_53420(&Location("src/algorithms/mul.rs:278:5"), r2, r3, r4, r5);■ string · 27 B
611 /* continues at L_409f8; not expressible as structured Rust */● an edge Rust can't hold
614 /* continues at L_405c8; not expressible as structured Rust */● an edge Rust can't hold
617 /* continues at L_40518; not expressible as structured Rust */● an edge Rust can't hold
620 /* continues at L_40500; not expressible as structured Rust */● an edge Rust can't hold
623 /* continues at L_404e8; not expressible as structured Rust */● an edge Rust can't hold
626 /* continues at L_404c0; not expressible as structured Rust */● an edge Rust can't hold
629 /* continues at L_404a8; not expressible as structured Rust */● an edge Rust can't hold
632 /* continues at L_40498; not expressible as structured Rust */● an edge Rust can't hold
635 /* continues at L_40478; not expressible as structured Rust */● an edge Rust can't hold
638 /* continues at L_40460; not expressible as structured Rust */● an edge Rust can't hold
641 /* continues at L_40440; not expressible as structured Rust */● an edge Rust can't hold
644 /* continues at L_403d0; not expressible as structured Rust */● an edge Rust can't hold
647 /* continues at L_40398; not expressible as structured Rust */● an edge Rust can't hold
649 r0 = fn_53420(&Location("src/algorithms/div/small.rs:263:13"), r2, r3, r4, r5);■ string · 34 B
652 /* continues at L_40318; not expressible as structured Rust */● an edge Rust can't hold
655 /* continues at L_40308; not expressible as structured Rust */● an edge Rust can't hold
658 /* continues at L_402d8; not expressible as structured Rust */● an edge Rust can't hold
666 /* continues at L_40248; not expressible as structured Rust */● an edge Rust can't hold
672 /* continues at L_40758; not expressible as structured Rust */● an edge Rust can't hold
674 /* continues at L_40240; not expressible as structured Rust */● an edge Rust can't hold
677 /* continues at L_40250; not expressible as structured Rust */● an edge Rust can't hold
679 r0 = fn_54c20(&local_b0, r6, r7, r4);
684 r6 = local_b0 | r9 >> r3;
686 r8 = *(((r0 << 3) + local_188 - 0x18) as *const u64) >> r3 | r9 << local_1c0;
687 /* continues at L_40210; not expressible as structured Rust */● an edge Rust can't hold
691 r0 = fn_53580(&Location("src/algorithms/div/knuth.rs:125:21"), r2, r3, r4, r5);■ string · 34 B
693 r0 = fn_4e6b8(r3, local_1a0, &Location("src/algorithms/div/knuth.rs:119:22"), r4, r5);■ string · 34 B
695 r0 = fn_53478(&Location("src/algorithms/div/knuth.rs:119:32"), r2, r3, r4, r5);■ string · 34 B
697 r0 = fn_4e6b8(r1, r6, &Location("src/algorithms/div/knuth.rs:118:38"), r4, r5);■ string · 34 B
699 r0 = fn_53478(&Location("src/algorithms/div/knuth.rs:118:48"), r2, r3, r4, r5);■ string · 34 B
701 r7 = *((r2) as *const u64);
702 /* continues at L_40088; not expressible as structured Rust */● an edge Rust can't hold
704 r0 = fn_53420(&Location("src/algorithms/div/knuth.rs:117:36"), r2, r3, r4, r5);■ string · 34 B
707 /* continues at L_40040; not expressible as structured Rust */● an edge Rust can't hold
710 r0 = fn_3f7a0(local_1e0, r8, r7, r8, &Location("src/algorithms/div/knuth.rs:184:13"));■ string · 34 B
711 r0 = fn_3f688(r7, r6, r8, 0, &Location("src/algorithms/div/knuth.rs:185:15"));■ string · 34 B
713 *((r7 + (r2 << 3)) as *mut u64) = local_248;
720 r0 = fn_53420(&Location("src/algorithms/div/knuth.rs:187:15"), r2, r3, r4, r5);■ string · 34 B
722 r0 = fn_3f5c0(&local_180, r2, local_188, r6, &Location("src/algorithms/div/knuth.rs:187:14"));■ string · 34 B
728 *((r1) as *mut u64) = 0;
738 r0 = fn_53478(&Location("src/algorithms/div/knuth.rs:125:48"), r2, r3, r4, r5);■ string · 34 B
740 /* continues at L_3ff40; not expressible as structured Rust */● an edge Rust can't hold
743 r0 = fn_53478(&Location("src/algorithms/div/knuth.rs:104:51"), r2, r3, r4, r5);■ string · 34 B
746 r0 = fn_54c20(&local_60, local_190, local_210, r8);
747 r2 = local_60 | *(((r7 << 3) + local_1e0 - 0x18) as *const u64) >> (neg64(r8) & 0x3f);
750 /* continues at L_3fb90; not expressible as structured Rust */● an edge Rust can't hold