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_2ff40 · 1002 instructions · 1 caller · 110 gotos
2// panic locations in this function: src/dex/orca_whirlpool.rs:843, src/dex/orca_whirlpool.rs:908, src/dex/orca_whirlpool.rs:910, src/dex/orca_whirlpool.rs:912, src/dex/orca_whirlpool.rs:913, src/dex/orca_whirlpool.rs:914, src/dex/orca_whirlpool.rs:915, src/dex/orca_whirlpool.rs:916
3fn fn_2ff40(mut r1: u64, mut r2: u64, mut
r3:
u64
,
mut
r4:
u64
,
mut
r5:
u64
) ->
u64
{
4 let mut local_628: u64 = 0;
5 let mut local_620: u64 = 0;
6 let mut local_618: u64 = 0;
7 let mut local_610: u64 = 0;
8 let mut local_608: u64 = 0;
9 let mut local_600: u64 = 0;
10 let mut local_5f8: u64 = 0;
11 let mut local_5f0: u64 = 0;
12 let mut local_5e8: u64 = 0;
13 let mut local_5e0: u64 = 0;
14 let mut local_5d8: u64 = 0;
15 let mut local_5d0: u64 = 0;
16 let mut local_5c8: u64 = 0;
17 let mut local_5c0: u64 = 0;
18 let mut local_5b8: u64 = 0;
19 let mut local_5b0: u64 = 0;
20 let mut local_5a8: u64 = 0;
21 let mut local_5a0: u64 = 0;
22 let mut local_598: u64 = 0;
23 let mut local_590: u64 = 0;
24 let mut local_588: u64 = 0;
25 let mut local_580: u64 = 0;
26 let mut local_578: u64 = 0;
27 let mut local_570: u64 = 0;
28 let mut local_568: u64 = 0;
29 let mut local_560: u64 = 0;
30 let mut local_558: u64 = 0;
31 let mut local_550: u64 = 0;
32 let mut local_548: u64 = 0;
33 let mut local_540: u64 = 0;
34 let mut local_538: u64 = 0;
35 let mut local_530: u64 = 0;
36 let mut local_528: u64 = 0;
37 let mut local_520: u64 = 0;
38 let mut local_518: u64 = 0;
39 let mut local_510: u64 = 0;
40 let mut local_508: u64 = 0;
41 let mut local_500: u64 = 0;
42 let mut local_4f8: u64 = 0;
43 let mut local_4f0: u64 = 0;
44 let mut local_4e8: u64 = 0;
45 let mut local_4e0: u8 = 0;
46 let mut local_4df: u8 = 0;
47 let mut local_4de: u8 = 0;
48 let mut local_4d8: u64 = 0;
49 let mut local_4d0: u64 = 0;
50 let mut local_4c8: u64 = 0;
51 let mut local_4c0: u64 = 0;
52 let mut local_4b8: u64 = 0;
53 let mut local_4b0: u64 = 0;
54 let mut local_4a8: u64 = 0;
55 let mut local_4a0: u64 = 0;
56 let mut local_498: u64 = 0;
57 let mut local_490: u64 = 0;
58 let mut local_488: u64 = 0;
59 let mut local_480: u64 = 0;
60 let mut local_478: u64 = 0;
61 let mut local_470: u64 = 0;
62 let mut local_468: u64 = 0;
63 let mut local_460: u64 = 0;
64 let mut local_458: u8 = 0;
65 let mut local_457: u8 = 0;
66 let mut local_450: u64 = 0;
67 let mut local_448: u8 = 0;
68 let mut local_447: u8 = 0;
69 let mut local_440: u64 = 0;
70 let mut local_438: u8 = 0;
71 let mut local_437: u8 = 0;
72 let mut local_430: u64 = 0;
73 let mut local_428: u8 = 0;
74 let mut local_427: u8 = 0;
75 let mut local_420: u64 = 0;
76 let mut local_418: u8 = 0;
77 let mut local_417: u8 = 0;
78 let mut local_410: u64 = 0;
79 let mut local_408: u8 = 0;
80 let mut local_407: u8 = 0;
81 let mut local_400: u64 = 0;
82 let mut local_3f8: u8 = 0;
83 let mut local_3f7: u8 = 0;
84 let mut local_3f0: u64 = 0;
85 let mut local_3e8: u8 = 0;
86 let mut local_3e7: u8 = 0;
87 let mut local_3e0: u64 = 0;
88 let mut local_3d8: u8 = 0;
89 let mut local_3d7: u8 = 0;
90 let mut local_3d0: u64 = 0;
91 let mut local_3c8: u8 = 0;
92 let mut local_3c7: u8 = 0;
93 let mut local_3c0: u64 = 0;
94 let mut local_3b8: u8 = 0;
95 let mut local_3b7: u8 = 0;
96 let mut local_3b0: u64 = 0;
97 let mut local_3a8: u8 = 0;
98 let mut local_3a7: u8 = 0;
99 let mut local_3a0: u64 = 0;
100 let mut local_398: u8 = 0;
101 let mut local_397: u8 = 0;
102 let mut local_390: u64 = 0;
103 let mut local_388: u8 = 0;
104 let mut local_387: u8 = 0;
105 let mut local_380: u64 = 0;
106 let mut local_378: u8 = 0;
107 let mut local_377: u8 = 0;
108 let mut local_370: u64 = 0;
109 let mut local_28: u64 = 0;
110 let mut local_20: u64 = 0;
111 let mut local_18: u64 = 0;
112 let mut local_10: u64 = 0;
113 let mut local_8: u64 = 0;
115 r7 = *((r5 - 0xfd8) as *const u64);
116 r8 = *((r5 - 0xfe0) as *const u64);
117 r1 = *((r5 - 0xff0) as *const u64);
118 r6 = *((r5 - 0x1000) as *const u64) ^ *((r5 - 0xff8) as *const u64) ^ 1;
119 r0 = *((r5 - 0xfe8) as *const u64) & 1;
126 r9 = *((r3 + 0x10) as *const u64);
127 r5 = *((r3 + 8) as *const u64);
133 local_508 = -0x37788a1e6e613908;
138 r0 = fn_7cab0(1, r2, &Location("src/dex/orca_whirlpool.rs:908:14"));■ string · 32 B
141 r0 = fn_7cab0(2, 2, &Location("src/dex/orca_whirlpool.rs:910:14"));■ string · 32 B
144 r0 = fn_7cab0(3, 3, &Location("src/dex/orca_whirlpool.rs:912:14"));■ string · 32 B
147 r0 = fn_7cab0(4, 4, &Location("src/dex/orca_whirlpool.rs:913:14"));■ string · 32 B
150 r0 = fn_7cab0(5, 5, &Location("src/dex/orca_whirlpool.rs:914:14"));■ string · 32 B
153 r0 = fn_7cab0(6, 6, &Location("src/dex/orca_whirlpool.rs:915:14"));■ string · 32 B
157 r0 = fn_7cab0(7, 7, &Location("src/dex/orca_whirlpool.rs:916:14"));■ string · 32 B
159 r2 = *((r3) as *const u64);
160 r1 = *((r3 + 0x28) as *const u64);
162 local_498 = r4 + 0x28;
163 local_4a0 = r4 + 0x20;
164 local_4a8 = r4 + 0x18;
165 local_4b8 = r4 + 0x10;
167 local_488 = r4 + 0x38;
168 local_490 = r4 + 0x30;
173 r3 = *((r9) as *const u64);
174 r7 = *((r8) as *const u64);
175 local_518 = *((r2) as *const u64);
176 r0 = *((r1) as *const u64);
178 r6 = *((r4 + 0x38) as *const u64);
179 local_5a8 = *((r6 + 2) as *const u8);
180 local_5b8 = *((r6 + 1) as *const u8);
181 r5 = *((r4 + 8) as *const u64);
182 r8 = *((r4 + 0x20) as *const u64);
183 r9 = *((r4 + 0x18) as *const u64);
184 r2 = *((r4 + 0x10) as *const u64);
185 local_520 = *((r0 + 2) as *const u8);
186 local_528 = *((r0 + 1) as *const u8);
188 local_530 = *((r0 + 2) as *const u8);
189 local_538 = *((r0 + 1) as *const u8);
190 local_540 = *((r5 + 2) as *const u8);
191 local_548 = *((r5 + 1) as *const u8);
192 local_550 = *((r7 + 2) as *const u8);
193 local_558 = *((r7 + 1) as *const u8);
194 local_560 = *((r2 + 2) as *const u8);
195 local_568 = *((r2 + 1) as *const u8);
196 local_570 = *((r3 + 2) as *const u8);
197 local_578 = *((r3 + 1) as *const u8);
198 local_580 = *((r9 + 2) as *const u8);
199 local_588 = *((r9 + 1) as *const u8);
200 local_590 = *((r8 + 2) as *const u8);
201 local_598 = *((r8 + 1) as *const u8);
202 r0 = *((r4 + 0x28) as *const u64);
203 local_5a0 = *((r0 + 2) as *const u8);
204 local_5b0 = *((r0 + 1) as *const u8);
205 r1 = *((r4 + 0x30) as *const u64);
206 local_5c0 = *((r1 + 2) as *const u8);
207 local_5d0 = *((r1 + 1) as *const u8);
217 local_450 = local_518 + 8;
218 local_460 = local_5c8 + 8;
313 /* continues at L_31308; not expressible as structured Rust */● an edge Rust can't hold
321 /* continues at L_312f0; not expressible as structured Rust */● an edge Rust can't hold
323 /* continues at L_31cc0; not expressible as structured Rust */● an edge Rust can't hold
331 /* continues at L_31c98; not expressible as structured Rust */● an edge Rust can't hold
333 /* continues at L_312d0; not expressible as structured Rust */● an edge Rust can't hold
341 /* continues at L_312b0; not expressible as structured Rust */● an edge Rust can't hold
343 /* continues at L_31c70; not expressible as structured Rust */● an edge Rust can't hold
351 /* continues at L_31c48; not expressible as structured Rust */● an edge Rust can't hold
353 /* continues at L_31290; not expressible as structured Rust */● an edge Rust can't hold
361 /* continues at L_31270; not expressible as structured Rust */● an edge Rust can't hold
363 /* continues at L_31c20; not expressible as structured Rust */● an edge Rust can't hold
371 /* continues at L_31bf8; not expressible as structured Rust */● an edge Rust can't hold
373 /* continues at L_31250; not expressible as structured Rust */● an edge Rust can't hold
381 /* continues at L_31230; not expressible as structured Rust */● an edge Rust can't hold
383 /* continues at L_31bd0; not expressible as structured Rust */● an edge Rust can't hold
391 /* continues at L_31ba8; not expressible as structured Rust */● an edge Rust can't hold
393 /* continues at L_31210; not expressible as structured Rust */● an edge Rust can't hold
401 /* continues at L_311f0; not expressible as structured Rust */● an edge Rust can't hold
403 /* continues at L_31b80; not expressible as structured Rust */● an edge Rust can't hold
411 /* continues at L_31b58; not expressible as structured Rust */● an edge Rust can't hold
413 /* continues at L_311d0; not expressible as structured Rust */● an edge Rust can't hold
421 /* continues at L_311b0; not expressible as structured Rust */● an edge Rust can't hold
423 /* continues at L_31b30; not expressible as structured Rust */● an edge Rust can't hold
431 /* continues at L_31b08; not expressible as structured Rust */● an edge Rust can't hold
433 /* continues at L_31190; not expressible as structured Rust */● an edge Rust can't hold
441 /* continues at L_31170; not expressible as structured Rust */● an edge Rust can't hold
443 /* continues at L_31ae0; not expressible as structured Rust */● an edge Rust can't hold
451 /* continues at L_31ab8; not expressible as structured Rust */● an edge Rust can't hold
453 /* continues at L_31150; not expressible as structured Rust */● an edge Rust can't hold
461 /* continues at L_31130; not expressible as structured Rust */● an edge Rust can't hold
463 /* continues at L_31a90; not expressible as structured Rust */● an edge Rust can't hold
471 /* continues at L_31a68; not expressible as structured Rust */● an edge Rust can't hold
473 /* continues at L_31110; not expressible as structured Rust */● an edge Rust can't hold
481 /* continues at L_310f0; not expressible as structured Rust */● an edge Rust can't hold
483 /* continues at L_31a40; not expressible as structured Rust */● an edge Rust can't hold
491 /* continues at L_31a18; not expressible as structured Rust */● an edge Rust can't hold
493 /* continues at L_310d0; not expressible as structured Rust */● an edge Rust can't hold
501 /* continues at L_310b0; not expressible as structured Rust */● an edge Rust can't hold
503 /* continues at L_319f0; not expressible as structured Rust */● an edge Rust can't hold
510 /* continues at L_319c8; not expressible as structured Rust */● an edge Rust can't hold
512 /* continues at L_31090; not expressible as structured Rust */● an edge Rust can't hold
518 r1 = *((local_510) as *const u64) + 8;
522 r0 = *((*((r3) as *const u64)) as *const u64);
523 r7 = *((r5 - 8) as *const u64);
524 if *((r0 + 8) as *const u64) == *((r7) as *const u64) {
525 if *((r0 + 0x10) as *const u64) == *((r7 + 8) as *const u64) {
526 if *((r0 + 0x18) as *const u64) == *((r7 + 0x10) as *const u64) {
527 if *((r0 + 0x20) as *const u64) == *((r7 + 0x18) as *const u64) {
528 if *((r5) as *const u8) != 1 {
530 *((r6 + r2) as *mut u64) = r0 + 8;
531 r4 = &local_370 + r2;
532 *((r4 + 8) as *mut u64) = r0 + 0x48;
533 r6 = *((r0 + 0x50) as *const u64);
534 *((r4 + 0x20) as *mut u64) = r0 + 0x28;
535 *((r4 + 0x18) as *mut u64) = r0 + 0x58;
536 *((r4 + 0x10) as *mut u64) = r6;
537 *((r4 + 0x28) as *mut u64) = 0;
538 *((r4 + 0x30) as *mut u32) = *((r0 + 1) as *const u32);
545 local_10 = &local_508;
546 local_20 = &local_460;
553 r0 = sol_invoke_signed_c(r1, r2, r3, 8, 0); // cross-program invocation■ syscall
556 if *((r0) as *const u8) == 0xff {
557 /* continues at L_31358; not expressible as structured Rust */● an edge Rust can't hold
560 r1 = "orca";■ string · 4 B
563 r0 = fn_44ba8(r1, r2, r3, r4);
571 r1 = "orca";■ string · 4 B
574 r0 = fn_44ba8(r1, r2, r3, r4);
585 r0 = fn_7cab0(8, r2, &Location("src/dex/orca_whirlpool.rs:843:21"));■ string · 32 B
592 r2 = *((r3 + r2) as *const u64);
593 r0 = *((r3 + r0) as *const u64);
594 r7 = *((r3 + r1) as *const u64);
595 r5 = *((r3 + r5) as *const u64);
596 local_4e8 = local_518;
600 local_508 = 0x621ec91a0bed042b;
604 r3 = *((r3) as *const u64);
606 local_468 = r1 + 0x38;
607 local_470 = r1 + 0x30;
608 local_478 = r1 + 0x28;
609 local_480 = r1 + 0x20;
610 local_488 = r1 + 0x18;
611 local_498 = r1 + 0x10;
613 local_4c8 = r1 + 0x40;
623 local_538 = *((r5) as *const u64);
624 local_528 = *((r7) as *const u64);
625 local_518 = *((r0) as *const u64);
626 r9 = *((r2) as *const u64);
628 r6 = *((r4) as *const u64);
629 r7 = *((r8) as *const u64);
630 local_530 = *((r3) as *const u64);
631 r3 = *((r1 + 0x38) as *const u64);
632 local_600 = *((r3 + 2) as *const u8);
633 local_610 = *((r3 + 1) as *const u8);
634 r8 = *((r1 + 8) as *const u64);
635 local_520 = *((r1 + 0x40) as *const u64);
636 r4 = *((r1 + 0x20) as *const u64);
637 r5 = *((r1 + 0x18) as *const u64);
638 r0 = *((r1 + 0x10) as *const u64);
639 local_540 = *((r9 + 2) as *const u8);
640 local_548 = *((r9 + 1) as *const u8);
642 local_550 = *((r9 + 2) as *const u8);
643 local_558 = *((r9 + 1) as *const u8);
645 local_588 = *((r9 + 2) as *const u8);
646 local_598 = *((r9 + 1) as *const u8);
648 local_5a0 = *((r9 + 2) as *const u8);
649 local_5a8 = *((r9 + 1) as *const u8);
651 local_560 = *((r9 + 2) as *const u8);
652 local_568 = *((r9 + 1) as *const u8);
654 local_570 = *((r9 + 2) as *const u8);
655 local_578 = *((r9 + 1) as *const u8);
656 local_580 = *((r8 + 2) as *const u8);
657 local_590 = *((r8 + 1) as *const u8);
658 local_5b0 = *((r7 + 2) as *const u8);
659 local_5b8 = *((r7 + 1) as *const u8);
660 local_5c0 = *((r0 + 2) as *const u8);
661 local_5c8 = *((r0 + 1) as *const u8);
662 local_5d0 = *((r6 + 2) as *const u8);
663 local_5d8 = *((r6 + 1) as *const u8);
664 local_5e0 = *((r5 + 2) as *const u8);
665 local_5e8 = *((r5 + 1) as *const u8);
666 local_5f0 = *((r4 + 2) as *const u8);
667 local_5f8 = *((r4 + 1) as *const u8);
668 r2 = *((r1 + 0x28) as *const u64);
669 local_608 = *((r2 + 2) as *const u8);
670 local_628 = *((r2 + 1) as *const u8);
671 r1 = *((r1 + 0x30) as *const u64);
672 local_620 = *((r1 + 2) as *const u8);
673 r9 = *((r1 + 1) as *const u8);
682 local_400 = local_538 + 8;
683 local_410 = local_528 + 8;
685 local_430 = local_530 + 8;
686 local_440 = local_520 + 8;
687 local_450 = local_518 + 8;
688 local_460 = local_618 + 8;
815 /* continues at L_30a48; not expressible as structured Rust */● an edge Rust can't hold
823 /* continues at L_30a30; not expressible as structured Rust */● an edge Rust can't hold
825 /* continues at L_31978; not expressible as structured Rust */● an edge Rust can't hold
833 /* continues at L_31950; not expressible as structured Rust */● an edge Rust can't hold
835 /* continues at L_30a10; not expressible as structured Rust */● an edge Rust can't hold
843 /* continues at L_309f0; not expressible as structured Rust */● an edge Rust can't hold
845 /* continues at L_31928; not expressible as structured Rust */● an edge Rust can't hold
853 /* continues at L_31900; not expressible as structured Rust */● an edge Rust can't hold
855 /* continues at L_309d0; not expressible as structured Rust */● an edge Rust can't hold
863 /* continues at L_309b0; not expressible as structured Rust */● an edge Rust can't hold
865 /* continues at L_318d8; not expressible as structured Rust */● an edge Rust can't hold
873 /* continues at L_318b0; not expressible as structured Rust */● an edge Rust can't hold
875 /* continues at L_30990; not expressible as structured Rust */● an edge Rust can't hold
883 /* continues at L_30970; not expressible as structured Rust */● an edge Rust can't hold
885 /* continues at L_31888; not expressible as structured Rust */● an edge Rust can't hold
893 /* continues at L_31860; not expressible as structured Rust */● an edge Rust can't hold
895 /* continues at L_30950; not expressible as structured Rust */● an edge Rust can't hold
903 /* continues at L_30930; not expressible as structured Rust */● an edge Rust can't hold
905 /* continues at L_31838; not expressible as structured Rust */● an edge Rust can't hold
913 /* continues at L_31810; not expressible as structured Rust */● an edge Rust can't hold
915 /* continues at L_30910; not expressible as structured Rust */● an edge Rust can't hold
923 /* continues at L_308f0; not expressible as structured Rust */● an edge Rust can't hold
925 /* continues at L_317e8; not expressible as structured Rust */● an edge Rust can't hold
933 /* continues at L_317c0; not expressible as structured Rust */● an edge Rust can't hold
935 /* continues at L_308d0; not expressible as structured Rust */● an edge Rust can't hold
943 /* continues at L_308b0; not expressible as structured Rust */● an edge Rust can't hold
945 /* continues at L_31798; not expressible as structured Rust */● an edge Rust can't hold
953 /* continues at L_31770; not expressible as structured Rust */● an edge Rust can't hold
955 /* continues at L_30890; not expressible as structured Rust */● an edge Rust can't hold
963 /* continues at L_30870; not expressible as structured Rust */● an edge Rust can't hold
965 /* continues at L_31748; not expressible as structured Rust */● an edge Rust can't hold
973 /* continues at L_31720; not expressible as structured Rust */● an edge Rust can't hold
975 /* continues at L_30850; not expressible as structured Rust */● an edge Rust can't hold
983 /* continues at L_30830; not expressible as structured Rust */● an edge Rust can't hold
985 /* continues at L_316f8; not expressible as structured Rust */● an edge Rust can't hold
993 /* continues at L_316d0; not expressible as structured Rust */● an edge Rust can't hold
995 /* continues at L_30810; not expressible as structured Rust */● an edge Rust can't hold
⋯⋯ 212 more lines in this function. Download reconstructed.rs for all of it.