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_24e10 · .text+0x24e10 · 1,079 ins · 227 blocks · 929 lines · structured where the control flow allows↓ .c download pseudocode.c 1// fn_24e10 · 1079 instructions · 1 caller · 29 gotos
2// panic locations in this function: src/dex/meteora_dlmm.rs:1559
3u64 fn_24e10(u64 r1, u64 r2, u64 r3, u64 r4, u64 r5) {
4 u64
local_158;
48 r8 = *(u16 *)(r2 + 0x50);
50 r4 = *(u8 *)(r2 + 0x24);
52 r0 = *(u8 *)(r2 + 0x23);
54 r1 = *(u16 *)(r2 + 0x20);
56 r0 = fn_44c68("dlmm:filtered", 0xd, 8, 0xfa7);■ string · 13 B
58 *(u32 *)(r7 + 8) = 0xfa7;
67 local_b0 = *(u8 *)(r2 + 0x22);
68 local_a8 = *(u16 *)(r2 + 8);
69 local_d8 = *(u64 *)(r5 - 0xfe0);
70 local_d0 = *(u64 *)(r5 - 0xfe8);
71 local_e0 = *(u64 *)(r5 - 0xff0);
72 local_90 = *(u64 *)(r5 - 0xff8);
73 r1 = *(u64 *)(r5 - 0x1000);
74 r7 = *(u8 *)(r2 + 0x4f);
75 r9 = *(u16 *)(r2 + 0x4c) | *(u8 *)(r2 + 0x4e) << 0x10 | r7 << 0x18;
79 local_60 = r2 + 0x248;
83 r0 = fn_7e708(r8, 0x46);
84 r1 = r0 * 0x46 << 0x20;
85 r8 -= sar64(r1, 0x20);
88 if (sar64(r8 << 0x20, 0x20) != r8) {
89 r0 = fn_7caf0(&Location("src/dex/meteora_dlmm.rs:1559:21"));■ string · 31 B
91 r7 = sar64(r7 << 0x38, 0x20);
94 if ((r9 >> 0x20) == (r1 >> 0x20)) {
101 r8 = sar64(r0 << 0x20, 0x20);
103 if ((i64)r8 >= -0x1a00) {
104 r0 = r0 + 0x1a00 << 0x20 >> 0x20;
106 r0 = fn_2b1c8(&local_78, r0 >> 6);
109 r1 = "dlmm:filtered";■ string · 13 B
113 r0 = fn_44c68(r1, r2, r3, r4);
115 *(u32 *)(r7 + 8) = r6;
125 local_118 = *(u64 *)(r6 + 0x18);
126 r4 = *(u64 *)(r6 + 0x10);
127 local_110 = *(u64 *)(r6 + 8);
139 r6 = *(u64 *)(r7 + 8);
150 if (r7 == -0x4ab96bfa23a371a4) {
153 r7 = *(u64 *)(r0 + 0x18);
160 r7 = *(u64 *)(r0 + 0x20);
164 if (r7 == local_110) {
167 r7 = *(u64 *)(r0 + 0x28);
174 r7 = *(u64 *)(r0 + 0x30);
178 if (r7 == local_118) {
179 r7 = *(u8 *)(r0 + 0xc) << 0x20 | *(u8 *)(r0 + 0xd) << 0x28 | *(u8 *)(r0 + 0xe) << 0x30 | *(u8 *)(r0 + 0xf) << 0x38;
182 r2 = *(u8 *)(r0 + 0xb) << 0x18;
184 r7 = (r7 | r2) + -0x80000000;
188 if (r7 >= -0x100000000) {
189 r7 = *(u8 *)(r0 + 0xa) << 0x10 | *(u8 *)(r0 + 8) | *(u8 *)(r0 + 9) << 8 | local_120;
193 r0 = sar64(r7 << 0x20, 0x20);
213 r0 = *(u64 *)(r9 + 0x10);
216 r6 = *(u64 *)(r9 + 0x18);
223 if (*(u64 *)(r0) == -0x4ab96bfa23a371a4) {
225 if (*(u64 *)(r0 + 0x18) != r5) {
235 if (*(u64 *)(r0 + 0x20) != local_110) {
243 if (*(u64 *)(r0 + 0x28) != r4) {
251 if (*(u64 *)(r0 + 0x30) != local_118) {
256 r7 = *(u8 *)(r0 + 0xc) << 0x20 | *(u8 *)(r0 + 0xd) << 0x28 | *(u8 *)(r0 + 0xe) << 0x30 | *(u8 *)(r0 + 0xf) << 0x38;
258 r4 = *(u8 *)(r0 + 0xb) << 0x18;
259 if (((r7 | r4) + -0x80000000) >= -0x100000000) {
260 r9 = *(u8 *)(r0 + 0xa) << 0x10 | *(u8 *)(r0 + 8) | *(u8 *)(r0 + 9) << 8 | r4;
264 r0 = sar64(r9 << 0x20, 0x20);
266 r2 = sar64(r2 << 0x20, 0x20);
271 r3 = sar64(r3, 0x20);
290 r0 = *(u64 *)(r9 + 0x20);
302 r6 = *(u64 *)(r9 + 0x28);
306 goto L_25970;● kept as goto
309 if (*(u64 *)(r0) == -0x4ab96bfa23a371a4) {
311 if (*(u64 *)(r0 + 0x18) != r5) {
317 goto L_259a0;● kept as goto
324 if (*(u64 *)(r0 + 0x20) != local_110) {
332 if (*(u64 *)(r0 + 0x28) == r2) {
334 if (*(u64 *)(r0 + 0x30) == local_118) {
335 r1 = *(u8 *)(r0 + 0xc) << 0x20 | *(u8 *)(r0 + 0xd) << 0x28 | *(u8 *)(r0 + 0xe) << 0x30 | *(u8 *)(r0 + 0xf) << 0x38;
337 r2 = *(u8 *)(r0 + 0xb) << 0x18;
338 if (((r1 | r2) + -0x80000000) >= -0x100000000) {
339 r4 = *(u8 *)(r0 + 0xa) << 0x10 | *(u8 *)(r0 + 8) | *(u8 *)(r0 + 9) << 8 | r2;
343 r1 = sar64(r4 << 0x20, 0x20);
345 r9 = sar64(r9 << 0x20, 0x20);
349 r3 = sar64(r3, 0x20);
363 if ((i64)sar64(r3 << 0x20, 0x20) > r8) {
365 r0 = fn_2b400(&local_78, r8 + 1, r3);
371 r1 = sar64(r9 << 0x20, 0x20);
375 r0 = fn_2b400(&local_78, r8 + -1, r9);
377 local_148 = &local_20;
378 local_138 = &local_30;
388 r8 = r8 << 0x20 >> 0x20;
391 if ((local_f0 << 0x20 >> 0x20) != r8) {
396 local_158 = &local_4;
397 local_118 = &local_40;
400 if ((local_100 << 0x20 >> 0x20) != r8) {
405 local_158 = &local_8;
406 local_118 = local_138;
409 if ((local_128 << 0x20 >> 0x20) != r8) {
414 local_158 = &local_c;
415 local_118 = local_148;
424 if ((local_80 & 1) == 0) {
427 r6 = r6 << 0x20 >> 0x20;
430 if ((local_f0 << 0x20 >> 0x20) != r6) {
435 local_150 = &local_4;
439 if ((local_100 << 0x20 >> 0x20) != r6) {
444 local_150 = &local_8;
448 if ((local_128 << 0x20 >> 0x20) != r6) {
453 local_150 = &local_c;
469 r1 = r1 << 0x20 >> 0x20;
473 if ((local_f0 << 0x20 >> 0x20) != r1) {
482 if ((local_100 << 0x20 >> 0x20) != r1) {
491 if ((local_128 << 0x20 >> 0x20) != r1) {
506 if ((r4 & (r2 & r0 | r7)) == 0) {
508 local_f8 = *(u32 *)(local_158);
510 local_f0 = *(u64 *)(r4);
511 local_128 = *(u64 *)(r4 + 8);
517 local_118 = *(u32 *)(r4);
518 local_a8 = *(u64 *)(r8);
519 local_130 = *(u64 *)(r8 + 8);
520 local_100 = local_110;
532 local_120 = *(u32 *)(r6);
533 local_110 = *(u64 *)(r3);
534 local_138 = *(u64 *)(r3 + 8);
545 goto L_261a0;● kept as goto
547 goto L_26288;● kept as goto
559 goto L_26238;● kept as goto
561 goto L_26140;● kept as goto
567 if ((r0 + -1) <= 0x5f5e0fe) {
569 r0 = fn_805f0(r0, r2, 0xa, 0);
575 if ((r6 & 0xff) != 0) {
577 if ((r0 + -1) >= 0x5f5e0ff) {
579 if ((r2 - r1) == 0) {
589 if ((r2 - r1) == 0) {
590 goto L_26328;● kept as goto
592 goto L_263f8;● kept as goto
594 goto L_26328;● kept as goto
599 goto L_26378;● kept as goto
603 if (r0 >= 0x5f5e100) {
608 if ((i64)local_90 >= 0) {
610 r4 = *(u64 *)(r9 + 0x38);
619 if (((r1 ^ r2) & 1) == 0) {
621 if ((i64)r3 >= *(u16 *)(r9 + 0xa)) {
624 if (r3 < *(u16 *)(r9 + 0xc)) {
625 r1 = *(u32 *)(r9 + 0x28) * *(u16 *)(r9 + 0xe);
627 if (r1 > 0x270fffffffff) {
628 *(u32 *)(r7 + 8) = r6;
642 if (*(u8 *)(r9 + 0x108) == 0) {
643 if (*(u8 *)(r9 + 0x109) == 0) {
644 if (*(u8 *)(r9 + 0x10a) == 0) {
645 if (*(u8 *)(r9 + 0x10b) == 0) {
646 if (*(u8 *)(r9 + 0x10c) == 0) {
647 if (*(u8 *)(r9 + 0x10d) == 0) {
648 if (*(u8 *)(local_98 + 0x10e) == 0) {
649 if (*(u8 *)(local_98 + 0x10f) == 0) {
650 if (*(u8 *)(local_98 + 0x110) == 0) {
651 if (*(u8 *)(local_98 + 0x111) == 0) {
652 if (*(u8 *)(local_98 + 0x112) == 0) {
653 if (*(u8 *)(local_98 + 0x113) == 0) {
654 if (*(u8 *)(local_98 + 0x114) == 0) {
655 if (*(u8 *)(local_98 + 0x115) == 0) {
656 if (*(u8 *)(local_98 + 0x116) == 0) {
657 if (*(u8 *)(local_98 + 0x117) == 0) {
658 if (*(u8 *)(local_98 + 0x118) == 0) {
659 if (*(u8 *)(local_98 + 0x119) == 0) {
660 if (*(u8 *)(local_98 + 0x11a) == 0) {
661 if (*(u8 *)(local_98 + 0x11b) == 0) {
662 if (*(u8 *)(local_98 + 0x11c) == 0) {
663 if (*(u8 *)(local_98 + 0x11d) == 0) {
664 goto L_26778;● kept as goto
695 r4 = r4 * r4 * *(u32 *)(r9 + 0x10);
697 if (r0 != 0x5f5e100) {
699 r5 = (0x5f5e0ff - r0) * 0x174876e800 / r4;
702 r6 = *(u32 *)(r9 + 0x14);
703 *(u8 *)(r7 + 0xff) = local_80;
704 *(u8 *)(r7 + 0xfe) = local_100;
705 *(u8 *)(r7 + 0xfd) = local_108;
706 *(u8 *)(r7 + 0xfc) = local_c0;
707 *(u8 *)(r7 + 0xfb) = local_e0;
708 *(u8 *)(r7 + 0xfa) = local_d8;
709 *(u8 *)(r7 + 0xf9) = local_d0;
710 *(u8 *)(r7 + 0xf8) = r3;
711 *(u16 *)(r7 + 0xf6) = local_c8;
712 *(u16 *)(r7 + 0xf4) = r8;
713 *(u32 *)(r7 + 0xf0) = r2;
714 *(u32 *)(r7 + 0xec) = r1;
715 *(u32 *)(r7 + 0xe8) = r6;
716 *(u32 *)(r7 + 0xe4) = local_b8;
717 *(u32 *)(r7 + 0xe0) = local_120;
718 *(u32 *)(r7 + 0xdc) = local_118;
719 *(u32 *)(r7 + 0xd8) = local_f8;
720 *(u64 *)(r7 + 0xd0) = r5;
721 *(u64 *)(r7 + 0xc8) = r4;
722 *(u64 *)(r7 + 0xc0) = r0;
723 *(u64 *)(r7 + 0xb8) = local_138;
724 *(u64 *)(r7 + 0xb0) = local_110;
725 *(u64 *)(r7 + 0xa8) = local_130;
726 *(u64 *)(r7 + 0xa0) = local_a8;
727 *(u64 *)(r7 + 0x98) = local_128;
728 *(u64 *)(r7 + 0x90) = local_f0;
729 *(u64 *)(r7 + 0x48) = 0;
734 goto L_26570;● kept as goto
736 r1 = *(u32 *)(r9 + 0x2c);
737 r2 = *(u32 *)(r9 + 0x30);
738 goto L_26570;● kept as goto
742 *(u32 *)(r7 + 8) = r6;
747 if (((r1 ^ 0) & 1) == 0) {
748 goto L_264e0;● kept as goto
750 *(u32 *)(r7 + 8) = r6;
758 goto L_264c0;● kept as goto
760 goto L_26478;● kept as goto
764 *(u32 *)(r7 + 8) = r6;
772 if ((i64)local_90 >= 0) {
773 goto L_26438;● kept as goto
775 *(u32 *)(r7 + 8) = r6;
781 goto L_26418;● kept as goto
783 goto L_26308;● kept as goto
788 r1 = "dlmm:filtered";■ string · 13 B
792 r0 = fn_44c68(r1, r2, r3, r4);
794 *(u32 *)(r7 + 8) = r6;
801 goto L_25920;● kept as goto
804 goto L_259b0;● kept as goto
806 goto L_25980;● kept as goto
809 goto L_259b0;● kept as goto
811 goto L_25748;● kept as goto
813 goto L_25768;● kept as goto
815 goto L_25728;● kept as goto
820 r1 = "dlmm:filtered";■ string · 13 B
824 r0 = fn_44c68(r1, r2, r3, r4);
826 *(u32 *)(r7 + 8) = r6;
832 r0 = fn_44c68("dlmm:filtered", 0xd, 8, 0xfa7);■ string · 13 B
834 *(u32 *)(r7 + 8) = 0xfa7;
837 if (*(u8 *)(local_98 + 0x11e) == 0) {
838 if (*(u8 *)(local_98 + 0x11f) == 0) {
839 if (*(u8 *)(local_98 + 0x120) == 0) {
840 if (*(u8 *)(local_98 + 0x121) == 0) {
841 if (*(u8 *)(local_98 + 0x122) == 0) {
842 if (*(u8 *)(local_98 + 0x123) == 0) {
843 if (*(u8 *)(local_98 + 0x124) == 0) {
844 if (*(u8 *)(local_98 + 0x125) == 0) {
845 if (*(u8 *)(local_98 + 0x126) == 0) {
846 if (*(u8 *)(local_98 + 0x127) == 0) {
847 if (*(u8 *)(local_98 + 0x198) == 0) {
848 if (*(u8 *)(local_98 + 0x199) == 0) {
849 if (*(u8 *)(local_98 + 0x19a) == 0) {
850 if (*(u8 *)(local_98 + 0x19b) == 0) {
851 if (*(u8 *)(local_98 + 0x19c) == 0) {
852 if (*(u8 *)(local_98 + 0x19d) == 0) {
853 if (*(u8 *)(local_98 + 0x19e) == 0) {
854 if (*(u8 *)(local_98 + 0x19f) == 0) {
855 if (*(u8 *)(local_98 + 0x1a0) == 0) {
856 if (*(u8 *)(local_98 + 0x1a1) == 0) {
857 if (*(u8 *)(local_98 + 0x1a2) == 0) {
858 if (*(u8 *)(local_98 + 0x1a3) == 0) {
859 if (*(u8 *)(local_98 + 0x1a4) == 0) {
860 if (*(u8 *)(local_98 + 0x1a5) == 0) {
861 if (*(u8 *)(local_98 + 0x1a6) == 0) {
862 if (*(u8 *)(local_98 + 0x1a7) == 0) {
863 if (*(u8 *)(local_98 + 0x1a8) == 0) {
864 if (*(u8 *)(local_98 + 0x1a9) == 0) {
865 if (*(u8 *)(local_98 + 0x1aa) == 0) {
866 if (*(u8 *)(local_98 + 0x1ab) == 0) {
867 if (*(u8 *)(local_98 + 0x1ac) == 0) {
868 if (*(u8 *)(local_98 + 0x1ad) == 0) {
869 if (*(u8 *)(local_98 + 0x1ae) == 0) {
870 if (*(u8 *)(local_98 + 0x1af) == 0) {
871 if (*(u8 *)(local_98 + 0x1b0) == 0) {
872 if (*(u8 *)(local_98 + 0x1b1) == 0) {
873 if (*(u8 *)(local_98 + 0x1b2) == 0) {
874 if (*(u8 *)(local_98 + 0x1b3) == 0) {
875 if (*(u8 *)(local_98 + 0x1b4) == 0) {
876 if (*(u8 *)(local_98 + 0x1b5) == 0) {
877 if (*(u8 *)(local_98 + 0x1b6) == 0) {
881 if (*(u8 *)(r9 + 0x1b7) == 0) {
885 goto L_26b50;● kept as goto
887 goto L_26b78;● kept as goto
928 goto L_26b50;● kept as goto