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_12b30 · .text+0x12b30 · 5,087 ins · 1,447 blocks · 6,550 lines · structured where the control flow allows↓ .c download pseudocode.c 1// fn_12b30 · 5087 instructions · 1 caller · 437 gotos
2// panic locations in this function: src/dex/meteora_damm_v2.rs:927, src/dex/meteora_damm_v2.rs:690, src/dex/meteora_damm_v2.rs:820, src/math.rs:16, src/math.rs:49, src/math.rs:429, src/math.rs:444, src/math.rs:646, src/math.rs:647, src/math.rs:650, src/math.rs:654, src/math.rs:655
3u64 fn_12b30(u64 r1, u64 r2, u64 r3) {
4
u64 local_1000;
166 r1 = *(u64 *)(r9 + 8);
167 if (r1 > 0x3b9aca00) {
168 r0 = fn_7caf0(&Location("src/dex/meteora_damm_v2.rs:927:9"));■ string · 32 B
170 r7 = r3 / 0x3b9aca00;
171 r2 = r7 * 0x3b9aca00;
173 r6 = 0x3b9aca00 - r1;
174 r0 = fn_805f0(r3 - r2, 0, r6, 0);
180 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
190 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
193 *(u64 *)(r8) = 0xfa300000001;
196 r2 = *(u64 *)(r9 + 0x10);
204 *(u32 *)(r8 + 4) = r1;
208 r0 = fn_805f0(*(u64 *)(r9 + 0x18), 0, r3, 0);
213 *(u32 *)(r8 + 4) = r1;
219 *(u64 *)(r8 + 8) = r7;
228 r1 = (r1 | r1 >> 0x20) ^ -1;
229 r1 -= (r1 >> 1 & 0x5555555555555555); // text "UUUUUUUU"
230 r3 = 0x3333333333333333;
231 r2 = (r1 & r3) + (r1 >> 2 & r3);
232 r2 = (r2 + (r2 >> 4) & 0xf0f0f0f0f0f0f0f) * 0x101010101010101 >> 0x38;
235 r9 = r9 << r2 | r7 >> (neg64(r2) & 0x3f);
240 r0 = fn_7caf0(&Location("src/math.rs:646:29"));■ string · 18 B
245 r0 = fn_805f0(r8, 0, r6, 0);
251 r0 = fn_7caf0(&Location("src/math.rs:647:37"));■ string · 18 B
254 r0 = fn_7caf0(&Location("src/math.rs:647:29"));■ string · 18 B
257 r5 = local_408 << 0x20 >> 0x20;
259 local_420 = r1 >> 0x20;
277 r0 = fn_805f0(r8, 0, local_408, 0);
278 r4 = r9 << 0x20 | r7;
288 r0 = fn_7caf0(&Location("src/math.rs:661:19"));■ string · 18 B
295 r0 = fn_805f0(r9, 0, r6, 0);
301 r0 = fn_7caf0(&Location("src/math.rs:665:31"));■ string · 18 B
305 r0 = fn_7caf0(&Location("src/math.rs:665:21"));■ string · 18 B
324 r0 = fn_805f0(r9, 0, local_408, 0);
327 if ((local_418 << 0x20 | r7) >= r0) {
328 r4 = local_418 >> 0x20;
333 r0 = fn_7caf0(&Location("src/math.rs:679:22"));■ string · 18 B
342 r0 = fn_7caf0(&Location("src/math.rs:683:11"));■ string · 18 B
345 *(u64 *)(r8 + 8) = r7;
350 r0 = fn_7caf0(&Location("src/math.rs:679:22"));■ string · 18 B
357 r0 = fn_7caf0(&Location("src/math.rs:683:11"));■ string · 18 B
360 *(u64 *)(r8 + 8) = r7;
367 r0 = fn_7caf0(&Location("src/math.rs:683:11"));■ string · 18 B
370 *(u64 *)(r8 + 8) = r7;
385 r0 = fn_7caf0(&Location("src/math.rs:683:11"));■ string · 18 B
388 *(u64 *)(r8 + 8) = r7;
395 r0 = fn_7caf0(&Location("src/math.rs:683:11"));■ string · 18 B
398 *(u64 *)(r8 + 8) = r7;
404 r0 = fn_7caf0(&Location("src/math.rs:679:22"));■ string · 18 B
408 r0 = fn_7caf0(&Location("src/math.rs:679:22"));■ string · 18 B
415 r0 = fn_7caf0(&Location("src/math.rs:683:11"));■ string · 18 B
418 *(u64 *)(r8 + 8) = r7;
425 r0 = fn_7caf0(&Location("src/math.rs:683:11"));■ string · 18 B
428 *(u64 *)(r8 + 8) = r7;
436 r4 = local_418 >> 0x20;
438 goto L_14ee0;● kept as goto
440 goto L_14e90;● kept as goto
442 r0 = fn_7caf0(&Location("src/math.rs:673:9"));■ string · 17 B
445 goto L_14df0;● kept as goto
448 if ((r9 * r5) > (r2 << 0x20 | r7)) {
450 goto L_14dc8;● kept as goto
454 goto L_14e18;● kept as goto
456 r0 = fn_7caf0(&Location("src/math.rs:668:46"));■ string · 18 B
458 r0 = fn_7caf0(&Location("src/math.rs:672:9"));■ string · 17 B
462 r0 = fn_7caf0(&Location("src/math.rs:661:19"));■ string · 18 B
464 goto L_14cd8;● kept as goto
469 goto L_14cc8;● kept as goto
471 goto L_136f8;● kept as goto
475 goto L_14cb8;● kept as goto
477 goto L_136f0;● kept as goto
479 r0 = fn_7caf0(&Location("src/math.rs:655:9"));■ string · 17 B
482 goto L_13650;● kept as goto
485 if ((r8 * r5) > (r2 << 0x20 | r7)) {
487 goto L_13628;● kept as goto
491 goto L_13678;● kept as goto
493 r0 = fn_7caf0(&Location("src/math.rs:650:47"));■ string · 18 B
495 r0 = fn_7caf0(&Location("src/math.rs:654:9"));■ string · 17 B
497 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
500 r2 = *(u64 *)(r9 + 0x10);
508 *(u32 *)(r8 + 4) = r1;
512 r0 = fn_805f0(*(u64 *)(r9 + 0x18), 0, r3, 0);
518 r1 = *(u64 *)(local_408 + 8);
519 if (r1 > 0x3b9aca00) {
520 r0 = fn_7caf0(&Location("src/dex/meteora_damm_v2.rs:927:9"));■ string · 32 B
523 r7 = r0 / 0x3b9aca00;
524 r2 = r7 * 0x3b9aca00;
526 r6 = 0x3b9aca00 - r1;
527 r0 = fn_805f0(r0 - r2, 0, r6, 0);
533 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
543 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
546 *(u64 *)(r8 + 8) = r7;
551 *(u32 *)(r8 + 4) = r1;
557 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
564 r1 = (r1 | r1 >> 0x20) ^ -1;
565 r1 -= (r1 >> 1 & 0x5555555555555555); // text "UUUUUUUU"
566 r3 = 0x3333333333333333;
567 r2 = (r1 & r3) + (r1 >> 2 & r3);
568 r2 = (r2 + (r2 >> 4) & 0xf0f0f0f0f0f0f0f) * 0x101010101010101 >> 0x38;
571 r9 = r9 << r2 | r0 >> (neg64(r2) & 0x3f);
577 r0 = fn_7caf0(&Location("src/math.rs:646:29"));■ string · 18 B
581 r0 = fn_805f0(r8, 0, r6, 0);
588 r0 = fn_7caf0(&Location("src/math.rs:647:37"));■ string · 18 B
591 r0 = fn_7caf0(&Location("src/math.rs:647:29"));■ string · 18 B
595 r7 = r7 << 0x20 >> 0x20;
597 local_428 = r1 >> 0x20;
615 r0 = fn_7caf0(&Location("src/math.rs:655:9"));■ string · 17 B
618 goto L_12f08;● kept as goto
621 if ((r8 * r7) > (r2 << 0x20 | r5)) {
623 goto L_12ee0;● kept as goto
625 r0 = fn_7caf0(&Location("src/math.rs:654:9"));■ string · 17 B
629 r0 = fn_7caf0(&Location("src/math.rs:650:47"));■ string · 18 B
633 r0 = fn_805f0(r8, 0, r3, 0);
634 r4 = r9 << 0x20 | local_418;
644 r0 = fn_7caf0(&Location("src/math.rs:661:19"));■ string · 18 B
650 r0 = fn_805f0(r9, 0, r6, 0);
656 r0 = fn_7caf0(&Location("src/math.rs:665:31"));■ string · 18 B
660 r0 = fn_7caf0(&Location("src/math.rs:665:21"));■ string · 18 B
680 r0 = fn_7caf0(&Location("src/math.rs:673:9"));■ string · 17 B
683 goto L_14628;● kept as goto
686 if ((r9 * r7) > (r2 << 0x20 | r5)) {
688 goto L_14600;● kept as goto
690 r0 = fn_7caf0(&Location("src/math.rs:672:9"));■ string · 17 B
694 r0 = fn_7caf0(&Location("src/math.rs:668:46"));■ string · 18 B
697 r0 = fn_805f0(r9, 0, local_420, 0);
701 if ((r5 << 0x20 | r6) >= r0) {
708 r0 = fn_7caf0(&Location("src/math.rs:679:22"));■ string · 18 B
719 r0 = fn_7caf0(&Location("src/math.rs:683:11"));■ string · 18 B
722 r1 = *(u64 *)(r2 + 8);
723 if (r1 > 0x3b9aca00) {
724 r0 = fn_7caf0(&Location("src/dex/meteora_damm_v2.rs:927:9"));■ string · 32 B
726 goto L_152a0;● kept as goto
730 r0 = fn_7caf0(&Location("src/math.rs:679:22"));■ string · 18 B
732 goto L_14728;● kept as goto
737 goto L_14718;● kept as goto
739 goto L_146d8;● kept as goto
744 goto L_14708;● kept as goto
746 goto L_146d0;● kept as goto
750 r0 = fn_7caf0(&Location("src/math.rs:661:19"));■ string · 18 B
752 goto L_14518;● kept as goto
757 goto L_14508;● kept as goto
759 goto L_12fb8;● kept as goto
763 goto L_144f8;● kept as goto
765 goto L_12fb0;● kept as goto
767 *(u32 *)(r8 + 4) = r1;
771 r1 = *(u8 *)(r9 + 0x70);
774 r6 = *(u64 *)(r9 + 0x48);
775 r1 = *(u64 *)(r9 + 0x40);
781 if ((r6 + r2) < r6) {
793 r2 = *(u64 *)(r1 + 0x30);
794 r1 = *(u64 *)(r1 + 0x38);
809 r0 = fn_47db0(&local_3e0, &local_a0, 1);
817 if (r9 < *(u64 *)(local_408 + 0x20)) {
818 r3 = *(u64 *)(local_408 + 0x28);
827 r7 = *(u64 *)(r1 + 0x18);
828 r6 = *(u64 *)(r1 + 0x10);
839 r0 = fn_7caf0(&Location("src/dex/meteora_damm_v2.rs:690:26"));■ string · 33 B
845 r0 = fn_805f0(local_418, 0, r6, r7);
848 r0 = fn_805f0(local_428, 0, r6, r7);
851 if ((r2 + r9) >= r2) {
856 r2 = *(u64 *)(local_408 + 8);
857 if (r2 > 0x3b9aca00) {
858 r0 = fn_7caf0(&Location("src/dex/meteora_damm_v2.rs:927:9"));■ string · 32 B
860 r7 = r1 / 0x3b9aca00;
861 r3 = r7 * 0x3b9aca00;
863 r6 = 0x3b9aca00 - r2;
864 r0 = fn_805f0(r1 - r3, 0, r6, 0);
871 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
881 r0 = fn_7caf0(&Location("src/math.rs:16:5"));■ string · 16 B
884 *(u64 *)(r8 + 8) = r7;
890 *(u32 *)(r1 + 4) = r2;
895 r0 = fn_7caf0(&Location("src/math.rs:49:19"));■ string · 17 B
898 r0 = fn_805f0(r8, 0, r7, 0);
901 r0 = fn_805f0(r8, 0, r6, 0);
904 r0 = fn_805f0(local_418, 0, r6, 0);
906 if ((r9 + r0) >= r9) {
920 r0 = fn_805f0(local_418, 0, r7, 0);
932 r8 = r8 + r3 + r5 + r2;
935 goto L_19300;● kept as goto
938 *(u32 *)(r1 + 4) = r2;
944 r0 = fn_7caf0(&Location("src/dex/meteora_damm_v2.rs:690:26"));■ string · 33 B
946 goto L_17b08;● kept as goto
952 goto L_17af8;● kept as goto
954 goto L_17ab8;● kept as goto
958 goto L_17ae0;● kept as goto
960 goto L_17aa8;● kept as goto
963 *(u32 *)(r1 + 4) = r2;
972 *(u32 *)(r1 + 4) = r2;
976 goto L_17a68;● kept as goto
981 goto L_17a50;● kept as goto
983 goto L_17a00;● kept as goto
986 r3 = *(u64 *)(local_408 + 0x28);
988 goto L_17a40;● kept as goto
990 goto L_179f8;● kept as goto
993 if ((r7 | r6) != 0) {
997 r0 = fn_80748(r8, r7, r9, r6);
⋯⋯ 5,550 more lines in this function. Download pseudocode.c for all of it.