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…
pseudocode.cfn fn_41310 · .text+0x41310 · 439 ins · 132 blocks · 485 lines · structured where the control flow allows↓ .c download pseudocode.c 1// fn_41310 · 439 instructions · 1 caller · 27 gotos
2// panic locations in this function: src/dex/raydium_cpmm.rs:153, src/dex/raydium_cpmm.rs:189, src/dex/raydium_cpmm.rs:194, src/math.rs:16, src/math.rs:49, src/math.rs:646, src/math.rs:647, src/math.rs:650, src/math.rs:654, src/math.rs:655, src/math.rs:661, src/math.rs:665
3u64 fn_41310(u64 r1, u64 r2, u64 r3, u64 r4) {
4
u64 local_70;
19 r3 = (r3 ^ *(u8 *)(r2 + 0x21)) & 1;
21 r4 = *(u64 *)(r2 + 8);
27 r7 = *(u64 *)(r2 + 0x10);
28 r5 = *(u64 *)(r2 + 0x18);
30 r0 = fn_7caf0(&Location("src/dex/raydium_cpmm.rs:153:27"));■ string · 30 B
37 r2 = *(u8 *)(r2 + 0x20) & r4;
47 goto L_41418;● kept as goto
59 r7 = r7 << 0x20 >> 0x20;
60 r0 = fn_805f0(r6 - r2, 0, r7, 0);
67 r0 = fn_805f0(r8, 0, r7, 0);
77 if (r9 == (r3 * 0xf4240)) {
85 r0 = fn_7caf0(&Location("src/dex/raydium_cpmm.rs:189:27"));■ string · 30 B
89 *(u32 *)(r2 + 4) = 0xfa3;
97 r0 = fn_805f0(r6, 0, r0, 0);
116 r0 = fn_47db0(&local_40, &local_20, 0);
119 r0 = fn_80748(r6, r7, local_58, r9 | 1);
128 r0 = fn_7caf0(&Location("src/dex/raydium_cpmm.rs:194:12"));■ string · 30 B
131 *(u64 *)(r2 + 8) = r8 - r0;
140 r9 = r9 << 0x20 >> 0x20;
141 r0 = fn_805f0(r8 - r2, 0, r9, 0);
148 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
150 r0 = fn_805f0(r7, 0, r9, 0);
160 if (r6 == (r3 * 0xf4240)) {
164 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
167 r0 = fn_7caf0(&Location("src/dex/raydium_cpmm.rs:194:12"));■ string · 30 B
170 *(u64 *)(r2 + 8) = r8 - r0;
176 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
179 r0 = fn_7caf0(&Location("src/dex/raydium_cpmm.rs:194:12"));■ string · 30 B
182 *(u64 *)(r2 + 8) = r8 - r0;
192 r0 = fn_7caf0(&Location("src/dex/raydium_cpmm.rs:194:12"));■ string · 30 B
195 *(u64 *)(r2 + 8) = r8 - r0;
201 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
205 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
208 r0 = fn_7caf0(&Location("src/dex/raydium_cpmm.rs:194:12"));■ string · 30 B
211 *(u64 *)(r2 + 8) = r8 - r0;
218 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
220 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
231 *(u64 *)(r2 + 8) = r8 - r0;
236 r0 = fn_7caf0(&Location("src/dex/raydium_cpmm.rs:194:12"));■ string · 30 B
239 goto L_41d88;● kept as goto
246 r1 = (r1 | r1 >> 0x20) ^ -1;
247 r1 -= (r1 >> 1 & 0x5555555555555555); // text "UUUUUUUU"
248 r3 = 0x3333333333333333;
249 r2 = (r1 & r3) + (r1 >> 2 & r3);
250 r2 = (r2 + (r2 >> 4) & 0xf0f0f0f0f0f0f0f) * 0x101010101010101 >> 0x38;
253 r3 = r0 >> (neg64(r2) & 0x3f) | r5 << r2;
259 r0 = fn_7caf0(&Location("src/math.rs:646:29"));■ string · 18 B
265 r0 = fn_805f0(r9, 0, r8, 0);
271 r0 = fn_7caf0(&Location("src/math.rs:647:37"));■ string · 18 B
276 r0 = fn_7caf0(&Location("src/math.rs:647:29"));■ string · 18 B
279 r6 = r3 << 0x20 >> 0x20;
281 local_68 = r1 >> 0x20;
299 r0 = fn_805f0(r9, 0, r3, 0);
301 r4 = r7 << 0x20 | local_70;
312 r0 = fn_7caf0(&Location("src/math.rs:661:19"));■ string · 18 B
318 r0 = fn_805f0(r7, 0, r8, 0);
325 r0 = fn_7caf0(&Location("src/math.rs:665:31"));■ string · 18 B
329 r0 = fn_7caf0(&Location("src/math.rs:665:21"));■ string · 18 B
349 r0 = fn_805f0(r7, 0, r3, 0);
353 if ((r5 << 0x20 | r6) < r0) {
361 r0 = fn_7caf0(&Location("src/math.rs:679:22"));■ string · 18 B
371 r0 = fn_7caf0(&Location("src/math.rs:683:11"));■ string · 18 B
373 goto L_41d78;● kept as goto
377 r0 = fn_7caf0(&Location("src/math.rs:679:22"));■ string · 18 B
379 goto L_41d38;● kept as goto
384 goto L_41d28;● kept as goto
386 goto L_42018;● kept as goto
390 goto L_42008;● kept as goto
392 goto L_41d20;● kept as goto
394 r0 = fn_7caf0(&Location("src/math.rs:673:9"));■ string · 17 B
397 goto L_41c88;● kept as goto
400 if ((r7 * r6) > (r2 << 0x20 | r0)) {
402 goto L_41c60;● kept as goto
406 goto L_41cb0;● kept as goto
408 r0 = fn_7caf0(&Location("src/math.rs:668:46"));■ string · 18 B
410 r0 = fn_7caf0(&Location("src/math.rs:672:9"));■ string · 17 B
414 r0 = fn_7caf0(&Location("src/math.rs:661:19"));■ string · 18 B
416 goto L_41b70;● kept as goto
421 goto L_41b60;● kept as goto
423 goto L_41fc0;● kept as goto
426 goto L_41fb0;● kept as goto
428 goto L_41b58;● kept as goto
430 r0 = fn_7caf0(&Location("src/math.rs:655:9"));■ string · 17 B
433 goto L_41ab8;● kept as goto
436 if ((r9 * r6) > (r2 << 0x20 | r7)) {
438 goto L_41a90;● kept as goto
442 goto L_41ae0;● kept as goto
444 r0 = fn_7caf0(&Location("src/math.rs:650:47"));■ string · 18 B
446 r0 = fn_7caf0(&Location("src/math.rs:654:9"));■ string · 17 B
448 goto L_41d80;● kept as goto
450 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
455 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
457 goto L_415e8;● kept as goto
461 goto L_415c8;● kept as goto
463 goto L_41588;● kept as goto
465 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
468 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
470 goto L_41628;● kept as goto
474 r7 = *(u64 *)(r2 + 0x10);
475 r5 = *(u64 *)(r2 + 0x18);
477 r0 = fn_7caf0(&Location("src/dex/raydium_cpmm.rs:153:27"));■ string · 30 B
479 goto L_41370;● kept as goto
482 goto L_413c8;● kept as goto
484 goto L_41358;● kept as goto