Program HiP3…iRvH
Disassembled84.5% of control flow structuredNative ◇HiP3dRdEbzPETVLrwu7Mht6G3XQkPVF6dUgXtDFeiRvHdecompiled 14 Oct 2026
- Loader
- ■v3 · upgradeable
- sBPF
- ■v0
- Size
- ■568,688 bytes
- Instructions
- ●63,667
- Functions
- ●175
- SHA-256
- ●c9076fed…6fdde9c2
- Upgrade authority
- ■HiPQ…vA2h
- Last deploy slot
- ■456,776,642
❝ Published by the authors · nothing, so everything here is revrsly outputVerified build · noneIDL · none publishedsecurity.txt · none
Loading the reconstruction…
1// fn_cec0 · 1212 instructions · 3 callers · 81 gotos
2// panic locations in this function: src/dex/concentrated_liquidity.rs:687, src/dex/concentrated_liquidity.rs:772, src/math.rs:16, src/math.rs:49, src/math.rs:53
3fn fn_cec0(mut r1: u64, mut r2: u64, mut r3: u64, mut
r4:
u64
,
mut
r5:
u64
) ->
u64
{
4 let mut local_1000: u64 = 0;
5 let mut local_ff8: u64 = 0;
6 let mut local_ff0: u64 = 0;
7 let mut local_fe8: u64 = 0;
8 let mut local_148: u64 = 0;
9 let mut local_140: u64 = 0;
10 let mut local_138: u64 = 0;
11 let mut local_130: u64 = 0;
12 let mut local_128: u64 = 0;
13 let mut local_120: u64 = 0;
14 let mut local_118: u64 = 0;
15 let mut local_110: u64 = 0;
16 let mut local_108: u64 = 0;
17 let mut local_100: u64 = 0;
18 let mut local_f8: u64 = 0;
19 let mut local_f0: u64 = 0;
20 let mut local_e8: u64 = 0;
21 let mut local_e0: u64 = 0;
22 let mut local_d8: u64 = 0;
23 let mut local_d0: u64 = 0;
24 let mut local_c8: u64 = 0;
25 let mut local_c0: u64 = 0;
26 let mut local_b8: u64 = 0;
27 let mut local_b0: u64 = 0;
28 let mut local_a8: u64 = 0;
29 let mut local_a0: u64 = 0;
30 let mut local_98: u64 = 0;
31 let mut local_90: u64 = 0;
32 let mut local_88: u64 = 0;
33 let mut local_80: u64 = 0;
34 let mut local_78: u64 = 0;
35 let mut local_70: u64 = 0;
36 let mut local_68: u64 = 0;
37 let mut local_60: u32 = 0;
38 let mut local_5c: u32 = 0;
39 let mut local_58: u64 = 0;
40 let mut local_50: u64 = 0;
41 let mut local_48_u32: u32 = 0;
42 let mut local_48_u64: u64 = 0;
43 let mut local_44: u32 = 0;
44 let mut local_40: u64 = 0;
45 let mut local_38: u64 = 0;
46 let mut local_30: u64 = 0;
47 let mut local_28: u64 = 0;
48 let mut local_20: u64 = 0;
49 let mut local_18: u64 = 0;
50 let mut local_10: u64 = 0;
51 let mut local_8: u64 = 0;
54 r7 = *((r0 + 8) as *const u64);
55 r2 = *((r0) as *const u64);
57 r6 = *((r5 - 0xff0) as *const u64);
58 r3 = *((r5 - 0xff8) as *const u64);
60 r2 = *((r0 + 0x20) as *const u32);
61 *((r1 + 0x18) as *mut u64) = r4;
62 *((r1 + 0x10) as *mut u64) = r9;
63 *((r1 + 0x30) as *mut u64) = r6;
64 *((r1 + 0x28) as *mut u64) = r3;
65 *((r1 + 0x20) as *mut u32) = r2;
66 *((r1 + 8) as *mut u64) = 0;
67 *((r1) as *mut u64) = 0;
68 *((r1 + 0x38) as *mut u8) = 1;
74 local_b0 = *((r0 + 0x18) as *const u64);
76 r6 = *((r0 + 0x10) as *const u64);
95 if local_b0 < local_b8 {
101 if local_b0 == local_b8 {
104 if local_b0 > local_b8 {
110 if local_b0 != local_b8 {
117 if local_b0 != local_b8 {
118 /* continues at L_d098; not expressible as structured Rust */● an edge Rust can't hold
128 /* continues at L_d240; not expressible as structured Rust */● an edge Rust can't hold
130 /* continues at L_d080; not expressible as structured Rust */● an edge Rust can't hold
137 if local_b0 <= local_b8 {
138 /* continues at L_d058; not expressible as structured Rust */● an edge Rust can't hold
140 /* continues at L_d220; not expressible as structured Rust */● an edge Rust can't hold
146 if local_b0 != local_b8 {
147 /* continues at L_d1f8; not expressible as structured Rust */● an edge Rust can't hold
149 /* continues at L_d038; not expressible as structured Rust */● an edge Rust can't hold
158 /* continues at L_d018; not expressible as structured Rust */● an edge Rust can't hold
160 /* continues at L_d1e0; not expressible as structured Rust */● an edge Rust can't hold
167 if local_b0 >= local_b8 {
168 /* continues at L_d1c0; not expressible as structured Rust */● an edge Rust can't hold
170 /* continues at L_d000; not expressible as structured Rust */● an edge Rust can't hold
177 /* continues at L_cfd8; not expressible as structured Rust */● an edge Rust can't hold
179 /* continues at L_d1a0; not expressible as structured Rust */● an edge Rust can't hold
186 /* continues at L_d188; not expressible as structured Rust */● an edge Rust can't hold
188 /* continues at L_cfc8; not expressible as structured Rust */● an edge Rust can't hold
219 /* continues at L_d2b8; not expressible as structured Rust */● an edge Rust can't hold
229 /* continues at L_d148; not expressible as structured Rust */● an edge Rust can't hold
231 /* continues at L_d2a0; not expressible as structured Rust */● an edge Rust can't hold
239 /* continues at L_d280; not expressible as structured Rust */● an edge Rust can't hold
241 /* continues at L_d130; not expressible as structured Rust */● an edge Rust can't hold
245 local_e0 = *((r5 - 0x1000) as *const u64);
246 local_128 = *((r5 - 0xfe8) as *const u64);
257 r0 = fn_805f0(r1, 0, r6, 0);
260 r0 = fn_805f0(r8, 0, r9, 0);
265 r0 = fn_805f0(r6, 0, r3, 0);
290 if ((r5 & r0 | r4 | r3 | r2) & 1) != 0 {
293 r0 = fn_805f0(r9, r8, local_c0, 0);
296 r0 = fn_805f0(r9, r8, local_d0, 0);
309 r0 = fn_805f0(r8, 0, r9, 0);
313 r0 = fn_805f0(r6, 0, r9, 0);
318 r0 = fn_805f0(r6, 0, local_c0, 0);
336 r0 = fn_805f0(local_130, 0, local_c0, 0);
347 r4 = r8 + r3 + r5 + r1;
359 /* continues at L_d5c0; not expressible as structured Rust */● an edge Rust can't hold
363 r0 = fn_805f0(local_d0, 0, r9, 0);
370 r0 = fn_805f0(r9, r2, local_d0, local_c0);
381 local_70 = local_108;
382 local_80 = local_110;
394 r0 = fn_f4f8(&local_48_u64, &local_a8, 1);
396 if (local_48_u32 & 1) != 0 {
406 if (r5 << 0x20 >> 0x20) <= 0xf4240 {
411 r6 = 0xf4240 - r5 << 0x20 >> 0x20;
412 r0 = fn_805f0(r8 - r2, 0, r6, 0);
419 r1 = r7 + r0 / 0xf4240;
433 local_fe8 = &local_48_u64;
437 r0 = fn_108e0(&local_60, local_c8, local_b0, local_d0, fp);
439 *((r6) as *mut u32) = local_5c;
440 *((r6 + 0x38) as *mut u8) = 2;
455 *((r6) as *mut u32) = 0xfa1;
456 *((r6 + 0x38) as *mut u8) = 2;
481 /* continues at L_de60; not expressible as structured Rust */● an edge Rust can't hold
489 /* continues at L_e1a8; not expressible as structured Rust */● an edge Rust can't hold
491 /* continues at L_de50; not expressible as structured Rust */● an edge Rust can't hold
515 r0 = fn_805f0(local_c0, 0, r9, 0);
522 r0 = fn_805f0(r7, 0, local_d0, 0);
529 r0 = fn_805f0(local_d0, 0, r9, 0);
540 if ((r6 | r2) & 1) != 0 {
543 *((r2) as *mut u32) = r1;
544 *((r2 + 0x38) as *mut u8) = 2;
550 if (r5 & 0x10000000000) == 0 {
553 if (r5 << 0x20 >> 0x20) > 0xf4240 {
554 r0 = fn_7caf0(&Location("src/dex/concentrated_liquidity.rs:687:9"));■ string · 39 B
560 r7 = 0xf4240 - r5 << 0x20 >> 0x20;
561 r0 = fn_805f0(r9 - r1, 0, r7, 0);
567 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
570 r9 = r8 + r0 / 0xf4240;
579 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
597 *((r2) as *mut u32) = 0xfa1;
598 *((r2 + 0x38) as *mut u8) = 2;
601 r1 = *((local_120 + 0x20) as *const u32);
603 *((r2 + 0x18) as *mut u64) = local_b8;
604 *((r2 + 0x10) as *mut u64) = r3;
605 *((r2 + 8) as *mut u64) = r7;
606 *((r2) as *mut u64) = local_d0;
607 *((r2 + 0x38) as *mut u8) = r6;
608 *((r2 + 0x30) as *mut u64) = r9 + r4;
609 *((r2 + 0x28) as *mut u64) = r8 + r0;
610 *((r2 + 0x20) as *mut u32) = r1;
615 *((r2) as *mut u32) = 0xfa1;
616 *((r2 + 0x38) as *mut u8) = 2;
619 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
621 /* continues at L_ed08; not expressible as structured Rust */● an edge Rust can't hold
625 *((r6) as *mut u32) = 0xfa1;
626 *((r6 + 0x38) as *mut u8) = 2;
629 /* continues at L_ddd8; not expressible as structured Rust */● an edge Rust can't hold
634 /* continues at L_ddc8; not expressible as structured Rust */● an edge Rust can't hold
636 /* continues at L_dad0; not expressible as structured Rust */● an edge Rust can't hold
640 /* continues at L_ddb8; not expressible as structured Rust */● an edge Rust can't hold
642 /* continues at L_dac8; not expressible as structured Rust */● an edge Rust can't hold
652 *((r6) as *mut u32) = 0xfa1;
653 *((r6 + 0x38) as *mut u8) = 2;
675 if local_b0 < local_b8 {
677 if local_b0 == local_b8 {
685 if local_b0 > local_b8 {
687 if local_b0 == local_b8 {
707 /* continues at L_dcb0; not expressible as structured Rust */● an edge Rust can't hold
716 /* continues at L_e178; not expressible as structured Rust */● an edge Rust can't hold
718 /* continues at L_dca8; not expressible as structured Rust */● an edge Rust can't hold
726 /* continues at L_dc88; not expressible as structured Rust */● an edge Rust can't hold
728 /* continues at L_e168; not expressible as structured Rust */● an edge Rust can't hold
736 /* continues at L_e148; not expressible as structured Rust */● an edge Rust can't hold
738 /* continues at L_dc70; not expressible as structured Rust */● an edge Rust can't hold
744 if local_b0 != local_b8 {
745 /* continues at L_dc58; not expressible as structured Rust */● an edge Rust can't hold
747 /* continues at L_e138; not expressible as structured Rust */● an edge Rust can't hold
754 if local_b0 <= local_b8 {
755 /* continues at L_e118; not expressible as structured Rust */● an edge Rust can't hold
757 /* continues at L_dc40; not expressible as structured Rust */● an edge Rust can't hold
767 /* continues at L_dc18; not expressible as structured Rust */● an edge Rust can't hold
769 /* continues at L_e0f8; not expressible as structured Rust */● an edge Rust can't hold
775 if local_b0 != local_b8 {
776 /* continues at L_e0d0; not expressible as structured Rust */● an edge Rust can't hold
778 /* continues at L_dbf8; not expressible as structured Rust */● an edge Rust can't hold
785 if local_b0 >= local_b8 {
786 /* continues at L_dbd8; not expressible as structured Rust */● an edge Rust can't hold
788 /* continues at L_e0b8; not expressible as structured Rust */● an edge Rust can't hold
794 /* continues at L_e090; not expressible as structured Rust */● an edge Rust can't hold
796 /* continues at L_dbb8; not expressible as structured Rust */● an edge Rust can't hold
806 r6 = (r6 ^ r3) + r2 - r1;
811 r0 = fn_805f0(r6, 0, r8, 0);
814 r0 = fn_805f0(r9, 0, r7, 0);
817 r0 = fn_805f0(r8, 0, r7, 0);
837 /* continues at L_e8b8; not expressible as structured Rust */● an edge Rust can't hold
845 /* continues at L_ea20; not expressible as structured Rust */● an edge Rust can't hold
847 /* continues at L_e898; not expressible as structured Rust */● an edge Rust can't hold
859 if ((r5 & r2 | r4 | r3 | r0) & 1) != 0 {
862 r0 = fn_805f0(r7, r6, local_c0, 0);
865 r0 = fn_805f0(r7, r6, local_d0, 0);
875 r0 = fn_805f0(r6, 0, r9, 0);
878 r0 = fn_805f0(r7, 0, r9, 0);
883 r0 = fn_805f0(r7, 0, local_c0, 0);
901 local_128 = local_128 + r2;
902 r0 = fn_805f0(r6, 0, local_c0, 0);
914 r9 = r9 + r3 + r5 + r1;
926 r0 = fn_805f0(local_d0, 0, r7, 0);
934 r0 = fn_805f0(r7, r6, local_d0, local_c0);
955 r0 = fn_f4f8(&local_60, &local_48_u64, 0);
956 if (local_60 & 1) != 0 {
959 *((r2) as *mut u32) = r1;
960 *((r2 + 0x38) as *mut u8) = 2;
970 /* continues at L_eb90; not expressible as structured Rust */● an edge Rust can't hold
974 *((r6) as *mut u32) = 0xfa1;
975 *((r6 + 0x38) as *mut u8) = 2;
978 /* continues at L_db18; not expressible as structured Rust */● an edge Rust can't hold
983 /* continues at L_db08; not expressible as structured Rust */● an edge Rust can't hold
985 /* continues at L_da78; not expressible as structured Rust */● an edge Rust can't hold
989 /* continues at L_daf8; not expressible as structured Rust */● an edge Rust can't hold
991 /* continues at L_da70; not expressible as structured Rust */● an edge Rust can't hold
993 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
996 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
998 r0 = fn_7caf0(&Location("src/dex/concentrated_liquidity.rs:687:9"));■ string · 39 B
1000 /* continues at L_d8a0; not expressible as structured Rust */● an edge Rust can't hold
⋯⋯ 289 more lines in this function. Download reconstructed.rs for all of it.