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_42198 · 487 instructions · 1 caller · 51 gotos
2// panic locations in this function: src/dex/raydium_cpmm.rs:327, src/dex/raydium_cpmm.rs:325, src/dex/raydium_cpmm.rs:345
3fn fn_42198(mut r1: u64, mut r2: u64, mut r3: u64, mut
r4:
u64
,
mut
r5:
u64
) ->
u64
{
4 let mut local_550: u64 = 0;
5 let mut local_548: u64 = 0;
6 let mut local_540: u64 = 0;
7 let mut local_538: u64 = 0;
8 let mut local_530: u64 = 0;
9 let mut local_528: u64 = 0;
10 let mut local_520: u64 = 0;
11 let mut local_518: u64 = 0;
12 let mut local_510: u64 = 0;
13 let mut local_508: u64 = 0;
14 let mut local_500: u64 = 0;
15 let mut local_4f8: u64 = 0;
16 let mut local_4f0: u64 = 0;
17 let mut local_4e8: u64 = 0;
18 let mut local_4e0: u64 = 0;
19 let mut local_4d8: u64 = 0;
20 let mut local_4d0: u64 = 0;
21 let mut local_4c8: u64 = 0;
22 let mut local_4c0: u64 = 0;
23 let mut local_4b8: u64 = 0;
24 let mut local_4b0: u64 = 0;
25 let mut local_4a8: u64 = 0;
26 let mut local_4a0: u64 = 0;
27 let mut local_498: u64 = 0;
28 let mut local_490: u64 = 0;
29 let mut local_488: u64 = 0;
30 let mut local_480: u64 = 0;
31 let mut local_478: u64 = 0;
32 let mut local_470: u64 = 0;
33 let mut local_468: u64 = 0;
34 let mut local_460: u64 = 0;
35 let mut local_458: u64 = 0;
36 let mut local_450: u64 = 0;
37 let mut local_448: u64 = 0;
38 let mut local_440: u64 = 0;
39 let mut local_438: u64 = 0;
40 let mut local_430: u64 = 0;
41 let mut local_428: u64 = 0;
42 let mut local_420: u64 = 0;
43 let mut local_418: u64 = 0;
44 let mut local_410: u64 = 0;
45 let mut local_408: u64 = 0;
46 let mut local_400: u64 = 0;
47 let mut local_3f8: u64 = 0;
48 let mut local_3f0: u64 = 0;
49 let mut local_3e8: u64 = 0;
50 let mut local_3e0: u64 = 0;
51 let mut local_3d8: u64 = 0;
52 let mut local_3d0: u64 = 0;
53 let mut local_3c8: u8 = 0;
54 let mut local_3c7: u8 = 0;
55 let mut local_3c0: u64 = 0;
56 let mut local_3b8: u8 = 0;
57 let mut local_3b7: u8 = 0;
58 let mut local_3b0: u64 = 0;
59 let mut local_3a8: u8 = 0;
60 let mut local_3a7: u8 = 0;
61 let mut local_3a0: u64 = 0;
62 let mut local_398: u8 = 0;
63 let mut local_397: u8 = 0;
64 let mut local_390: u64 = 0;
65 let mut local_388: u8 = 0;
66 let mut local_387: u8 = 0;
67 let mut local_380: u64 = 0;
68 let mut local_378: u8 = 0;
69 let mut local_377: u8 = 0;
70 let mut local_370: u64 = 0;
71 let mut local_368: u8 = 0;
72 let mut local_367: u8 = 0;
73 let mut local_360: u64 = 0;
74 let mut local_358: u8 = 0;
75 let mut local_357: u8 = 0;
76 let mut local_350: u64 = 0;
77 let mut local_348: u8 = 0;
78 let mut local_347: u8 = 0;
79 let mut local_340: u64 = 0;
80 let mut local_338: u8 = 0;
81 let mut local_337: u8 = 0;
82 let mut local_330: u64 = 0;
83 let mut local_328: u8 = 0;
84 let mut local_327: u8 = 0;
85 let mut local_320: u64 = 0;
86 let mut local_318: u8 = 0;
87 let mut local_317: u8 = 0;
88 let mut local_310: u64 = 0;
89 let mut local_308: u8 = 0;
90 let mut local_307: u8 = 0;
91 let mut local_300: u64 = 0;
92 let mut local_28: u64 = 0;
93 let mut local_20: u64 = 0;
94 let mut local_18: u64 = 0;
95 let mut local_10: u64 = 0;
96 let mut local_8: u64 = 0;
98 if *((r5 - 0x1000) as *const u64) != *((r5 - 0xff8) as *const u64) {
100 r0 = fn_7cab0(5, r2, &Location("src/dex/raydium_cpmm.rs:327:11"));■ string · 30 B
107 local_450 = -0x21cce13b25a54171;
110 r0 = fn_7cab0(6, r2, &Location("src/dex/raydium_cpmm.rs:345:10"));■ string · 30 B
112 local_468 = *((r3) as *const u64);
113 local_470 = *((r3 + 8) as *const u64);
114 r8 = *((r3 + 0x10) as *const u64);
115 r7 = *((r3 + 0x28) as *const u64);
116 r0 = *((r3 + 0x30) as *const u64);
118 r6 = *((r3 + 0x18) as *const u64);
119 r5 = *((r3 + 0x20) as *const u64);
121 local_3d8 = r1 + 0x30;
122 local_420 = r1 + 0x18;
123 local_428 = r1 + 0x10;
138 r9 = *((r4) as *const u64);
139 r2 = *((r2) as *const u64);
140 local_460 = *((r3) as *const u64);
141 local_550 = *((r8) as *const u64);
142 r3 = *((r5) as *const u64);
143 r4 = *((r6) as *const u64);
144 r5 = *((local_478) as *const u64);
145 r6 = *((r7) as *const u64);
146 local_470 = *((r0) as *const u64);
147 r7 = *((r1 + 0x30) as *const u64);
148 local_520 = *((r7 + 2) as *const u8);
149 local_530 = *((r7 + 1) as *const u8);
150 r0 = *((r1 + 0x18) as *const u64);
151 r8 = *((r1 + 0x10) as *const u64);
152 local_468 = *((r1 + 8) as *const u64);
154 local_4c8 = *((r2 + 2) as *const u8);
155 local_4d8 = *((r2 + 1) as *const u8);
156 local_4e8 = *((r9 + 2) as *const u8);
157 local_4f0 = *((r9 + 1) as *const u8);
159 local_478 = *((r2 + 2) as *const u8);
160 local_480 = *((r2 + 1) as *const u8);
162 local_488 = *((r2 + 2) as *const u8);
163 local_490 = *((r2 + 1) as *const u8);
164 local_498 = *((r8 + 2) as *const u8);
165 local_4a0 = *((r8 + 1) as *const u8);
166 local_4a8 = *((r0 + 2) as *const u8);
167 local_4b0 = *((r0 + 1) as *const u8);
169 local_4b8 = *((r2 + 2) as *const u8);
170 local_4c0 = *((r2 + 1) as *const u8);
172 local_4d0 = *((r2 + 2) as *const u8);
173 local_4e0 = *((r2 + 1) as *const u8);
174 local_4f8 = *((r6 + 2) as *const u8);
175 local_500 = *((r6 + 1) as *const u8);
176 local_508 = *((r5 + 2) as *const u8);
177 local_510 = *((r5 + 1) as *const u8);
178 local_518 = *((r4 + 2) as *const u8);
179 local_528 = *((r4 + 1) as *const u8);
180 local_538 = *((r3 + 2) as *const u8);
181 local_540 = *((r3 + 1) as *const u8);
188 local_370 = local_548 + 8;
190 local_390 = local_470 + 8;
193 local_3c0 = local_468 + 8;
194 local_3d0 = local_460 + 8;
305 /* continues at L_429f0; not expressible as structured Rust */● an edge Rust can't hold
313 /* continues at L_429d8; not expressible as structured Rust */● an edge Rust can't hold
315 /* continues at L_42fc8; not expressible as structured Rust */● an edge Rust can't hold
323 /* continues at L_42fa0; not expressible as structured Rust */● an edge Rust can't hold
325 /* continues at L_429b8; not expressible as structured Rust */● an edge Rust can't hold
333 /* continues at L_42998; not expressible as structured Rust */● an edge Rust can't hold
335 /* continues at L_42f78; not expressible as structured Rust */● an edge Rust can't hold
343 /* continues at L_42f50; not expressible as structured Rust */● an edge Rust can't hold
345 /* continues at L_42978; not expressible as structured Rust */● an edge Rust can't hold
353 /* continues at L_42958; not expressible as structured Rust */● an edge Rust can't hold
355 /* continues at L_42f28; not expressible as structured Rust */● an edge Rust can't hold
363 /* continues at L_42f00; not expressible as structured Rust */● an edge Rust can't hold
365 /* continues at L_42938; not expressible as structured Rust */● an edge Rust can't hold
373 /* continues at L_42918; not expressible as structured Rust */● an edge Rust can't hold
375 /* continues at L_42ed8; not expressible as structured Rust */● an edge Rust can't hold
383 /* continues at L_42eb0; not expressible as structured Rust */● an edge Rust can't hold
385 /* continues at L_428f8; not expressible as structured Rust */● an edge Rust can't hold
393 /* continues at L_428d8; not expressible as structured Rust */● an edge Rust can't hold
395 /* continues at L_42e88; not expressible as structured Rust */● an edge Rust can't hold
403 /* continues at L_42e60; not expressible as structured Rust */● an edge Rust can't hold
405 /* continues at L_428b8; not expressible as structured Rust */● an edge Rust can't hold
413 /* continues at L_42898; not expressible as structured Rust */● an edge Rust can't hold
415 /* continues at L_42e38; not expressible as structured Rust */● an edge Rust can't hold
423 /* continues at L_42e10; not expressible as structured Rust */● an edge Rust can't hold
425 /* continues at L_42878; not expressible as structured Rust */● an edge Rust can't hold
433 /* continues at L_42858; not expressible as structured Rust */● an edge Rust can't hold
435 /* continues at L_42de8; not expressible as structured Rust */● an edge Rust can't hold
443 /* continues at L_42dc0; not expressible as structured Rust */● an edge Rust can't hold
445 /* continues at L_42838; not expressible as structured Rust */● an edge Rust can't hold
453 /* continues at L_42818; not expressible as structured Rust */● an edge Rust can't hold
455 /* continues at L_42d98; not expressible as structured Rust */● an edge Rust can't hold
463 /* continues at L_42d70; not expressible as structured Rust */● an edge Rust can't hold
465 /* continues at L_427f8; not expressible as structured Rust */● an edge Rust can't hold
473 /* continues at L_427d8; not expressible as structured Rust */● an edge Rust can't hold
475 /* continues at L_42d48; not expressible as structured Rust */● an edge Rust can't hold
483 /* continues at L_42d20; not expressible as structured Rust */● an edge Rust can't hold
485 /* continues at L_427b8; not expressible as structured Rust */● an edge Rust can't hold
493 /* continues at L_42798; not expressible as structured Rust */● an edge Rust can't hold
495 /* continues at L_42cf8; not expressible as structured Rust */● an edge Rust can't hold
503 /* continues at L_42cd0; not expressible as structured Rust */● an edge Rust can't hold
505 /* continues at L_42778; not expressible as structured Rust */● an edge Rust can't hold
513 /* continues at L_42758; not expressible as structured Rust */● an edge Rust can't hold
515 /* continues at L_42ca8; not expressible as structured Rust */● an edge Rust can't hold
523 /* continues at L_42c80; not expressible as structured Rust */● an edge Rust can't hold
525 /* continues at L_42738; not expressible as structured Rust */● an edge Rust can't hold
533 /* continues at L_42718; not expressible as structured Rust */● an edge Rust can't hold
535 /* continues at L_42c58; not expressible as structured Rust */● an edge Rust can't hold
542 /* continues at L_42c30; not expressible as structured Rust */● an edge Rust can't hold
544 /* continues at L_426f8; not expressible as structured Rust */● an edge Rust can't hold
550 r1 = *((local_458) as *const u64) + 8;
554 r0 = *((*((r3) as *const u64)) as *const u64);
555 r7 = *((r5 - 8) as *const u64);
556 if *((r0 + 8) as *const u64) == *((r7) as *const u64) {
557 if *((r0 + 0x10) as *const u64) == *((r7 + 8) as *const u64) {
558 if *((r0 + 0x18) as *const u64) == *((r7 + 0x10) as *const u64) {
559 if *((r0 + 0x20) as *const u64) == *((r7 + 0x18) as *const u64) {
560 if *((r5) as *const u8) != 1 {
562 *((r6 + r2) as *mut u64) = r0 + 8;
563 r4 = &local_300 + r2;
564 *((r4 + 8) as *mut u64) = r0 + 0x48;
565 r6 = *((r0 + 0x50) as *const u64);
566 *((r4 + 0x20) as *mut u64) = r0 + 0x28;
567 *((r4 + 0x18) as *mut u64) = r0 + 0x58;
568 *((r4 + 0x10) as *mut u64) = r6;
569 *((r4 + 0x28) as *mut u64) = 0;
570 *((r4 + 0x30) as *mut u32) = *((r0 + 1) as *const u32);
577 local_10 = &local_450;
578 local_20 = &local_3d0;
582 r0 = sol_invoke_signed_c(&local_28, &local_300, 0xd, 8, 0); // cross-program invocation■ syscall
585 if *((r0) as *const u8) == 0xff {
586 /* continues at L_42a40; not expressible as structured Rust */● an edge Rust can't hold
589 r0 = fn_44ba8("raydium-cpmm", 0xc, 0, r4);■ string · 12 B
597 r0 = fn_44ba8("raydium-cpmm", 0xc, 0, r4);■ string · 12 B
604 r0 = fn_7cab0(4, r2, &Location("src/dex/raydium_cpmm.rs:325:11"));■ string · 30 B
607 r0 = fn_7cab0(5, 5, &Location("src/dex/raydium_cpmm.rs:325:23"));■ string · 30 B
611 /* continues at L_421f8; not expressible as structured Rust */● an edge Rust can't hold