client/game/kkr.dll/lifted-0078.c (508790B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include <math.h> 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 void sub_361097BA(void) { 9 int _fpu_cmp = 0; 10 uint32_t _cf = 0; 11 int _df = 1; 12 uint32_t _flag_k = FK_NONE; 13 uint32_t _flag_a = 0, _flag_b = 0; 14 uint32_t _itail_tgt = 0; 15 RECOMP_REGS_LOCALS 16 RECOMP_ENTER(0x361097BAu); 17 18 L_361097BA: 19 RECOMP_ICALL(0x36133FC0u); /* 0x361097BA: call 0x36133fc0 */ /* not lifted */ 20 RECOMP_FLAGS_IN(); 21 edx = MEM32(eax); /* 0x361097BF: mov edx, dword ptr [eax] */ 22 MEM32(ebp + (-0x48)) = edx; /* 0x361097C1: mov dword ptr [ebp - 0x48], edx */ 23 ecx = MEM32(eax + 0x4); /* 0x361097C4: mov ecx, dword ptr [eax + 4] */ 24 MEM32(ebp + (-0x44)) = ecx; /* 0x361097C7: mov dword ptr [ebp - 0x44], ecx */ 25 edx = MEM32(eax + 0x8); /* 0x361097CA: mov edx, dword ptr [eax + 8] */ 26 eax = MEM32(esi + 0x28); /* 0x361097CD: mov eax, dword ptr [esi + 0x28] */ 27 /* test HI8(eax), 1 */ /* 0x361097D0: test ah, 1 */ 28 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 29 _cf = 0; 30 _flag_k = FK_NARROW(FK_TEST, 24); 31 MEM32(ebp + (-0x40)) = edx; /* 0x361097D3: mov dword ptr [ebp - 0x40], edx */ 32 if (TEST_Z(_flag_a, _flag_b)) goto L_36109856; /* 0x361097D6: je 0x36109856 */ 33 L_361097D8: 34 fp_push(*(float*)&MEM32(esi + 0x8C)); /* 0x361097D8: fld dword ptr [esi + 0x8c] */ 35 eax = MEM32(ebp + (-0x3C)); /* 0x361097DE: mov eax, dword ptr [ebp - 0x3c] */ 36 ecx = MEM32(ebp + (-0x38)); /* 0x361097E1: mov ecx, dword ptr [ebp - 0x38] */ 37 fp_push(_st[0]); /* 0x361097E4: fld st(0) */ 38 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x361097E6: fmul dword ptr [ebp - 0x3c] */ 39 edx = MEM32(ebp + (-0x34)); /* 0x361097E9: mov edx, dword ptr [ebp - 0x34] */ 40 MEM32(ebp + (-0xC)) = eax; /* 0x361097EC: mov dword ptr [ebp - 0xc], eax */ 41 MEM32(ebp + (-0x8)) = ecx; /* 0x361097EF: mov dword ptr [ebp - 8], ecx */ 42 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361097F2: fstp dword ptr [ebp - 0xc] */ 43 edi = MEM32(ebp + (-0xC)); /* 0x361097F5: mov edi, dword ptr [ebp - 0xc] */ 44 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361097F8: fld dword ptr [ebp - 8] */ 45 MEM32(ebp + (-0x4)) = edx; /* 0x361097FB: mov dword ptr [ebp - 4], edx */ 46 _st[0] *= _st[1]; /* 0x361097FE: fmul st(1) */ 47 MEM32(ebp + (-0x20)) = edi; /* 0x36109800: mov dword ptr [ebp - 0x20], edi */ 48 MEM32(ebp + (-0xC)) = eax; /* 0x36109803: mov dword ptr [ebp - 0xc], eax */ 49 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36109806: fstp dword ptr [ebp - 8] */ 50 edi = MEM32(ebp + (-0x8)); /* 0x36109809: mov edi, dword ptr [ebp - 8] */ 51 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610980C: fld dword ptr [ebp - 4] */ 52 MEM32(ebp + (-0x8)) = ecx; /* 0x3610980F: mov dword ptr [ebp - 8], ecx */ 53 _st[0] *= _st[1]; /* 0x36109812: fmul st(1) */ 54 MEM32(ebp + (-0x1C)) = edi; /* 0x36109814: mov dword ptr [ebp - 0x1c], edi */ 55 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36109817: fstp dword ptr [ebp - 4] */ 56 edi = MEM32(ebp + (-0x4)); /* 0x3610981A: mov edi, dword ptr [ebp - 4] */ 57 MEM32(ebp + (-0x4)) = edx; /* 0x3610981D: mov dword ptr [ebp - 4], edx */ 58 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36109820: fstp st(0) */ 59 MEM32(ebp + (-0x18)) = edi; /* 0x36109822: mov dword ptr [ebp - 0x18], edi */ 60 fp_push(*(float*)&MEM32(esi + 0x88)); /* 0x36109825: fld dword ptr [esi + 0x88] */ 61 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3610982B: fld dword ptr [ebp - 0x3c] */ 62 _st[0] *= _st[1]; /* 0x3610982E: fmul st(1) */ 63 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36109830: fstp dword ptr [ebp - 0xc] */ 64 eax = MEM32(ebp + (-0xC)); /* 0x36109833: mov eax, dword ptr [ebp - 0xc] */ 65 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36109836: fld dword ptr [ebp - 8] */ 66 MEM32(ebp + (-0x30)) = eax; /* 0x36109839: mov dword ptr [ebp - 0x30], eax */ 67 _st[0] *= _st[1]; /* 0x3610983C: fmul st(1) */ 68 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3610983E: fstp dword ptr [ebp - 8] */ 69 ecx = MEM32(ebp + (-0x8)); /* 0x36109841: mov ecx, dword ptr [ebp - 8] */ 70 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36109844: fld dword ptr [ebp - 4] */ 71 MEM32(ebp + (-0x2C)) = ecx; /* 0x36109847: mov dword ptr [ebp - 0x2c], ecx */ 72 _st[0] *= _st[1]; /* 0x3610984A: fmul st(1) */ 73 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610984C: fstp dword ptr [ebp - 4] */ 74 edx = MEM32(ebp + (-0x4)); /* 0x3610984F: mov edx, dword ptr [ebp - 4] */ 75 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36109852: fstp st(0) */ 76 goto L_361098D2; /* 0x36109854: jmp 0x361098d2 */ 77 L_36109856: 78 fp_push(*(float*)&MEM32(esi + 0x88)); /* 0x36109856: fld dword ptr [esi + 0x88] */ 79 eax = MEM32(ebp + (-0x3C)); /* 0x3610985C: mov eax, dword ptr [ebp - 0x3c] */ 80 ecx = MEM32(ebp + (-0x38)); /* 0x3610985F: mov ecx, dword ptr [ebp - 0x38] */ 81 fp_push(_st[0]); /* 0x36109862: fld st(0) */ 82 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36109864: fmul dword ptr [ebp - 0x3c] */ 83 edx = MEM32(ebp + (-0x34)); /* 0x36109867: mov edx, dword ptr [ebp - 0x34] */ 84 MEM32(ebp + (-0xC)) = eax; /* 0x3610986A: mov dword ptr [ebp - 0xc], eax */ 85 MEM32(ebp + (-0x8)) = ecx; /* 0x3610986D: mov dword ptr [ebp - 8], ecx */ 86 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36109870: fstp dword ptr [ebp - 0xc] */ 87 edi = MEM32(ebp + (-0xC)); /* 0x36109873: mov edi, dword ptr [ebp - 0xc] */ 88 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36109876: fld dword ptr [ebp - 8] */ 89 MEM32(ebp + (-0x4)) = edx; /* 0x36109879: mov dword ptr [ebp - 4], edx */ 90 _st[0] *= _st[1]; /* 0x3610987C: fmul st(1) */ 91 MEM32(ebp + (-0x20)) = edi; /* 0x3610987E: mov dword ptr [ebp - 0x20], edi */ 92 MEM32(ebp + (-0xC)) = eax; /* 0x36109881: mov dword ptr [ebp - 0xc], eax */ 93 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36109884: fstp dword ptr [ebp - 8] */ 94 edi = MEM32(ebp + (-0x8)); /* 0x36109887: mov edi, dword ptr [ebp - 8] */ 95 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610988A: fld dword ptr [ebp - 4] */ 96 MEM32(ebp + (-0x8)) = ecx; /* 0x3610988D: mov dword ptr [ebp - 8], ecx */ 97 _st[0] *= _st[1]; /* 0x36109890: fmul st(1) */ 98 MEM32(ebp + (-0x1C)) = edi; /* 0x36109892: mov dword ptr [ebp - 0x1c], edi */ 99 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36109895: fstp dword ptr [ebp - 4] */ 100 edi = MEM32(ebp + (-0x4)); /* 0x36109898: mov edi, dword ptr [ebp - 4] */ 101 MEM32(ebp + (-0x4)) = edx; /* 0x3610989B: mov dword ptr [ebp - 4], edx */ 102 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610989E: fstp st(0) */ 103 MEM32(ebp + (-0x18)) = edi; /* 0x361098A0: mov dword ptr [ebp - 0x18], edi */ 104 fp_push(*(float*)&MEM32(esi + 0x8C)); /* 0x361098A3: fld dword ptr [esi + 0x8c] */ 105 fp_push(_st[0]); /* 0x361098A9: fld st(0) */ 106 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x361098AB: fmul dword ptr [ebp - 0x3c] */ 107 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361098AE: fstp dword ptr [ebp - 0xc] */ 108 eax = MEM32(ebp + (-0xC)); /* 0x361098B1: mov eax, dword ptr [ebp - 0xc] */ 109 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361098B4: fld dword ptr [ebp - 8] */ 110 MEM32(ebp + (-0x30)) = eax; /* 0x361098B7: mov dword ptr [ebp - 0x30], eax */ 111 _st[0] *= _st[1]; /* 0x361098BA: fmul st(1) */ 112 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x361098BC: fstp dword ptr [ebp - 8] */ 113 ecx = MEM32(ebp + (-0x8)); /* 0x361098BF: mov ecx, dword ptr [ebp - 8] */ 114 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361098C2: fld dword ptr [ebp - 4] */ 115 MEM32(ebp + (-0x2C)) = ecx; /* 0x361098C5: mov dword ptr [ebp - 0x2c], ecx */ 116 _st[0] *= _st[1]; /* 0x361098C8: fmul st(1) */ 117 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361098CA: fstp dword ptr [ebp - 4] */ 118 edx = MEM32(ebp + (-0x4)); /* 0x361098CD: mov edx, dword ptr [ebp - 4] */ 119 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361098D0: fstp st(0) */ 120 L_361098D2: 121 ecx = 0x3630DBB8u; /* 0x361098D2: mov ecx, 0x3630dbb8 */ 122 MEM32(ebp + (-0x28)) = edx; /* 0x361098D7: mov dword ptr [ebp - 0x28], edx */ 123 RECOMP_ICALL(0x3615BCE0u); /* 0x361098DA: call 0x3615bce0 */ /* not lifted */ 124 RECOMP_FLAGS_IN(); 125 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x361098DF: fld dword ptr [esi + 0x94] */ 126 _st[0] -= (double)*(float*)ADDR(esi + 0x90); /* 0x361098E5: fsub dword ptr [esi + 0x90] */ 127 eax = MEM32(esi + 0x48); /* 0x361098EB: mov eax, dword ptr [esi + 0x48] */ 128 ecx = MEM32(esi + 0x4C); /* 0x361098EE: mov ecx, dword ptr [esi + 0x4c] */ 129 { double _v = fp_pop(); _st[0] *= _v; } /* 0x361098F1: fmulp st(1) */ 130 edx = MEM32(esi + 0x50); /* 0x361098F3: mov edx, dword ptr [esi + 0x50] */ 131 MEM32(ebp + (-0x68)) = eax; /* 0x361098F6: mov dword ptr [ebp - 0x68], eax */ 132 _st[0] += (double)*(float*)ADDR(esi + 0x90); /* 0x361098F9: fadd dword ptr [esi + 0x90] */ 133 eax = MEM32(esi + 0x54); /* 0x361098FF: mov eax, dword ptr [esi + 0x54] */ 134 MEM32(ebp + (-0x60)) = ecx; /* 0x36109902: mov dword ptr [ebp - 0x60], ecx */ 135 MEM32(ebp + (-0x5C)) = edx; /* 0x36109905: mov dword ptr [ebp - 0x5c], edx */ 136 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36109908: fstp dword ptr [ebp - 0x10] */ 137 fp_push(*(float*)&MEM32(0x36170380)); /* 0x3610990B: fld dword ptr [0x36170380] */ 138 MEM32(ebp + (-0x64)) = eax; /* 0x36109911: mov dword ptr [ebp - 0x64], eax */ 139 _st[0] /= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36109914: fdiv dword ptr [ebp - 0x10] */ 140 fp_push(*(float*)&MEM32(esi + 0x58)); /* 0x36109917: fld dword ptr [esi + 0x58] */ 141 _st[0] -= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x3610991A: fsub dword ptr [ebp - 0x68] */ 142 _st[0] *= _st[1]; /* 0x3610991D: fmul st(1) */ 143 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x3610991F: fstp dword ptr [ebp - 0x74] */ 144 fp_push(*(float*)&MEM32(esi + 0x5C)); /* 0x36109922: fld dword ptr [esi + 0x5c] */ 145 _st[0] -= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x36109925: fsub dword ptr [ebp - 0x60] */ 146 _st[0] *= _st[1]; /* 0x36109928: fmul st(1) */ 147 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3610992A: fstp dword ptr [ebp - 0x70] */ 148 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x3610992D: fld dword ptr [esi + 0x60] */ 149 _st[0] -= (double)*(float*)ADDR(ebp + (-0x5C)); /* 0x36109930: fsub dword ptr [ebp - 0x5c] */ 150 _st[0] *= _st[1]; /* 0x36109933: fmul st(1) */ 151 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36109935: fstp dword ptr [ebp - 0x6c] */ 152 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x36109938: fld dword ptr [esi + 0x64] */ 153 _st[0] -= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x3610993B: fsub dword ptr [ebp - 0x64] */ 154 _st[0] *= _st[1]; /* 0x3610993E: fmul st(1) */ 155 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x36109940: fstp dword ptr [ebp - 0x78] */ 156 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36109943: fld dword ptr [esi + 8] */ 157 _st[0] += _st[0]; /* 0x36109946: fadd st(0), st(0) */ 158 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x10))); /* 0x36109948: fcomp dword ptr [ebp - 0x10] */ 159 fp_pop(); 160 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610994B: fnstsw ax */ 161 /* test HI8(eax), 1 */ /* 0x3610994D: test ah, 1 */ 162 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 163 _cf = 0; 164 _flag_k = FK_NARROW(FK_TEST, 24); 165 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610995A; /* 0x36109950: jne 0x3610995a */ 166 L_36109952: 167 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36109952: fld dword ptr [0x36170380] */ 168 goto L_36109960; /* 0x36109958: jmp 0x36109960 */ 169 L_3610995A: 170 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x3610995A: fld dword ptr [0x3617040c] */ 171 L_36109960: 172 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36109960: fld dword ptr [0x36170380] */ 173 edx = MEM32(ebp + (-0x1C)); /* 0x36109966: mov edx, dword ptr [ebp - 0x1c] */ 174 _st[0] -= _st[1]; /* 0x36109969: fsub st(1) */ 175 eax = MEM32(ebp + (-0x18)); /* 0x3610996B: mov eax, dword ptr [ebp - 0x18] */ 176 MEM32(ebp + (-0x8)) = edx; /* 0x3610996E: mov dword ptr [ebp - 8], edx */ 177 ecx = MEM32(ebp + (-0x20)); /* 0x36109971: mov ecx, dword ptr [ebp - 0x20] */ 178 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36109974: fstp dword ptr [ebp - 0x14] */ 179 MEM32(ebp + (-0x4)) = eax; /* 0x36109977: mov dword ptr [ebp - 4], eax */ 180 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610997A: fld dword ptr [ebp - 0x20] */ 181 edx = MEM32(ebp + (-0x2C)); /* 0x3610997D: mov edx, dword ptr [ebp - 0x2c] */ 182 _st[0] *= _st[1]; /* 0x36109980: fmul st(1) */ 183 eax = MEM32(ebp + (-0x28)); /* 0x36109982: mov eax, dword ptr [ebp - 0x28] */ 184 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36109985: fld dword ptr [ebp - 8] */ 185 MEM32(ebp + (-0xC)) = ecx; /* 0x36109988: mov dword ptr [ebp - 0xc], ecx */ 186 _st[0] *= _st[2]; /* 0x3610998B: fmul st(2) */ 187 ecx = MEM32(ebp + (-0x30)); /* 0x3610998D: mov ecx, dword ptr [ebp - 0x30] */ 188 MEM32(ebp + (-0xC)) = ecx; /* 0x36109990: mov dword ptr [ebp - 0xc], ecx */ 189 ecx = MEM32(esi + 0x9C); /* 0x36109993: mov ecx, dword ptr [esi + 0x9c] */ 190 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36109999: fstp dword ptr [ebp - 8] */ 191 MEM32(ebp + (-0x24)) = ecx; /* 0x3610999C: mov dword ptr [ebp - 0x24], ecx */ 192 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610999F: fld dword ptr [ebp - 4] */ 193 PUSH32(esp, 1); /* 0x361099A2: push 1 */ 194 _st[0] *= _st[2]; /* 0x361099A4: fmul st(2) */ 195 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361099A6: fstp dword ptr [ebp - 4] */ 196 _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361099A9: fadd dword ptr [ebp - 0x54] */ 197 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361099AC: fstp dword ptr [ebp - 0x54] */ 198 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x361099AF: fld dword ptr [ebp - 0x50] */ 199 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x361099B2: fadd dword ptr [ebp - 8] */ 200 MEM32(ebp + (-0x8)) = edx; /* 0x361099B5: mov dword ptr [ebp - 8], edx */ 201 edx = MEM32(esi + 0x40); /* 0x361099B8: mov edx, dword ptr [esi + 0x40] */ 202 MEM32(ebp + (-0x58)) = edx; /* 0x361099BB: mov dword ptr [ebp - 0x58], edx */ 203 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x361099BE: fstp dword ptr [ebp - 0x50] */ 204 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x361099C1: fld dword ptr [ebp - 0x4c] */ 205 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361099C4: fadd dword ptr [ebp - 4] */ 206 MEM32(ebp + (-0x4)) = eax; /* 0x361099C7: mov dword ptr [ebp - 4], eax */ 207 eax = MEM32(esi + 0x38); /* 0x361099CA: mov eax, dword ptr [esi + 0x38] */ 208 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x361099CD: fstp dword ptr [ebp - 0x4c] */ 209 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x361099D0: fld dword ptr [ebp - 0x30] */ 210 _st[0] *= _st[1]; /* 0x361099D3: fmul st(1) */ 211 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361099D5: fstp dword ptr [ebp - 0xc] */ 212 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361099D8: fld dword ptr [ebp - 8] */ 213 _st[0] *= _st[1]; /* 0x361099DB: fmul st(1) */ 214 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x361099DD: fstp dword ptr [ebp - 8] */ 215 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361099E0: fmul dword ptr [ebp - 4] */ 216 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361099E3: fld dword ptr [ebp - 0xc] */ 217 _st[0] += (double)*(float*)ADDR(ebp + (-0x48)); /* 0x361099E6: fadd dword ptr [ebp - 0x48] */ 218 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361099E9: fstp dword ptr [ebp - 0x48] */ 219 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361099EC: fld dword ptr [ebp - 0x44] */ 220 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x361099EF: fadd dword ptr [ebp - 8] */ 221 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361099F2: fstp dword ptr [ebp - 0x44] */ 222 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361099F5: fld dword ptr [ebp - 0x40] */ 223 _st[0] += _st[1]; /* 0x361099F8: fadd st(1) */ 224 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361099FA: fstp dword ptr [ebp - 0x40] */ 225 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361099FD: fstp st(0) */ 226 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361099FF: fld dword ptr [ebp - 0x14] */ 227 MEM32(ebp + (-0x14)) = eax; /* 0x36109A02: mov dword ptr [ebp - 0x14], eax */ 228 _st[0] *= _st[1]; /* 0x36109A05: fmul st(1) */ 229 fp_push(_st[0]); /* 0x36109A07: fld st(0) */ 230 fp_push(_st[0]); /* 0x36109A09: fld st(0) */ 231 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36109A0B: fmul dword ptr [ebp - 0x20] */ 232 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36109A0E: fstp dword ptr [ebp - 0x20] */ 233 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36109A11: fld dword ptr [ebp - 0x1c] */ 234 _st[0] *= _st[1]; /* 0x36109A14: fmul st(1) */ 235 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36109A16: fstp dword ptr [ebp - 0x1c] */ 236 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36109A19: fld dword ptr [ebp - 0x18] */ 237 _st[0] *= _st[1]; /* 0x36109A1C: fmul st(1) */ 238 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36109A1E: fstp dword ptr [ebp - 0x18] */ 239 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36109A21: fstp st(0) */ 240 fp_push(_st[0]); /* 0x36109A23: fld st(0) */ 241 _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36109A25: fmul dword ptr [ebp - 0x30] */ 242 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36109A28: fstp dword ptr [ebp - 0x30] */ 243 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36109A2B: fld dword ptr [ebp - 0x2c] */ 244 _st[0] *= _st[1]; /* 0x36109A2E: fmul st(1) */ 245 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36109A30: fstp dword ptr [ebp - 0x2c] */ 246 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36109A33: fld dword ptr [ebp - 0x28] */ 247 _st[0] *= _st[1]; /* 0x36109A36: fmul st(1) */ 248 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36109A38: fstp dword ptr [ebp - 0x28] */ 249 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36109A3B: fstp st(0) */ 250 fp_push(*(float*)&MEM32(esi + 0xA0)); /* 0x36109A3D: fld dword ptr [esi + 0xa0] */ 251 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36109A43: fsub dword ptr [ebp - 0x24] */ 252 edx = MEM32(ebp + (-0x78)); /* 0x36109A46: mov edx, dword ptr [ebp - 0x78] */ 253 _st[0] *= _st[1]; /* 0x36109A49: fmul st(1) */ 254 eax = MEM32(ebp + (-0x6C)); /* 0x36109A4B: mov eax, dword ptr [ebp - 0x6c] */ 255 PUSH32(esp, ecx); /* 0x36109A4E: push ecx */ 256 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109A4F: fstp dword ptr [esp] */ 257 PUSH32(esp, ecx); /* 0x36109A52: push ecx */ 258 ecx = MEM32(ebp + (-0x70)); /* 0x36109A53: mov ecx, dword ptr [ebp - 0x70] */ 259 fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x36109A56: fld dword ptr [esi + 0x44] */ 260 _st[0] -= (double)*(float*)ADDR(ebp + (-0x58)); /* 0x36109A59: fsub dword ptr [ebp - 0x58] */ 261 PUSH32(esp, edx); /* 0x36109A5C: push edx */ 262 edx = MEM32(ebp + (-0x74)); /* 0x36109A5D: mov edx, dword ptr [ebp - 0x74] */ 263 PUSH32(esp, eax); /* 0x36109A60: push eax */ 264 eax = MEM32(ebp + (-0x64)); /* 0x36109A61: mov eax, dword ptr [ebp - 0x64] */ 265 PUSH32(esp, ecx); /* 0x36109A64: push ecx */ 266 ecx = MEM32(ebp + (-0x5C)); /* 0x36109A65: mov ecx, dword ptr [ebp - 0x5c] */ 267 PUSH32(esp, edx); /* 0x36109A68: push edx */ 268 edx = MEM32(ebp + (-0x60)); /* 0x36109A69: mov edx, dword ptr [ebp - 0x60] */ 269 PUSH32(esp, eax); /* 0x36109A6C: push eax */ 270 eax = MEM32(ebp + (-0x68)); /* 0x36109A6D: mov eax, dword ptr [ebp - 0x68] */ 271 PUSH32(esp, ecx); /* 0x36109A70: push ecx */ 272 ecx = MEM32(ebp + (-0x10)); /* 0x36109A71: mov ecx, dword ptr [ebp - 0x10] */ 273 PUSH32(esp, edx); /* 0x36109A74: push edx */ 274 edx = MEM32(ebp + (-0x58)); /* 0x36109A75: mov edx, dword ptr [ebp - 0x58] */ 275 PUSH32(esp, eax); /* 0x36109A78: push eax */ 276 eax = MEM32(ebp + (-0x14)); /* 0x36109A79: mov eax, dword ptr [ebp - 0x14] */ 277 PUSH32(esp, 0xFFFFFFFFu); /* 0x36109A7C: push -1 */ 278 PUSH32(esp, ecx); /* 0x36109A7E: push ecx */ 279 PUSH32(esp, ecx); /* 0x36109A7F: push ecx */ 280 _st[0] *= _st[1]; /* 0x36109A80: fmul st(1) */ 281 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109A82: fstp dword ptr [esp] */ 282 PUSH32(esp, ecx); /* 0x36109A85: push ecx */ 283 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x36109A86: fld dword ptr [esi + 0x3c] */ 284 ecx = ebp + (-0x30); /* 0x36109A89: lea ecx, [ebp - 0x30] */ 285 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36109A8C: fsub dword ptr [ebp - 0x14] */ 286 _st[0] *= _st[1]; /* 0x36109A8F: fmul st(1) */ 287 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109A91: fstp dword ptr [esp] */ 288 PUSH32(esp, edx); /* 0x36109A94: push edx */ 289 PUSH32(esp, eax); /* 0x36109A95: push eax */ 290 PUSH32(esp, ecx); /* 0x36109A96: push ecx */ 291 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36109A97: fstp st(0) */ 292 edx = ebp + (-0x48); /* 0x36109A99: lea edx, [ebp - 0x48] */ 293 PUSH32(esp, edx); /* 0x36109A9C: push edx */ 294 eax = ebp + (-0x20); /* 0x36109A9D: lea eax, [ebp - 0x20] */ 295 PUSH32(esp, eax); /* 0x36109AA0: push eax */ 296 ecx = ebp + (-0x54); /* 0x36109AA1: lea ecx, [ebp - 0x54] */ 297 PUSH32(esp, ecx); /* 0x36109AA4: push ecx */ 298 ecx = MEM32(esi + 0x24); /* 0x36109AA5: mov ecx, dword ptr [esi + 0x24] */ 299 RECOMP_ICALL(MEM32(0x3616F700)); /* 0x36109AA8: call dword ptr [0x3616f700] */ 300 RECOMP_FLAGS_IN(); 301 edi = POP32_VAL(esp); /* 0x36109AAE: pop edi */ 302 esi = POP32_VAL(esp); /* 0x36109AAF: pop esi */ 303 esp = ebp; /* 0x36109AB0: mov esp, ebp */ 304 ebp = POP32_VAL(esp); /* 0x36109AB2: pop ebp */ 305 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36109AB3: ret */ 306 RECOMP_REGS_OUT(); 307 } 308 309 void sub_361098D2(void) { 310 int _fpu_cmp = 0; 311 uint32_t _cf = 0; 312 int _df = 1; 313 uint32_t _flag_k = FK_NONE; 314 uint32_t _flag_a = 0, _flag_b = 0; 315 uint32_t _itail_tgt = 0; 316 RECOMP_REGS_LOCALS 317 RECOMP_ENTER(0x361098D2u); 318 319 L_361098D2: 320 ecx = 0x3630DBB8u; /* 0x361098D2: mov ecx, 0x3630dbb8 */ 321 MEM32(ebp + (-0x28)) = edx; /* 0x361098D7: mov dword ptr [ebp - 0x28], edx */ 322 RECOMP_ICALL(0x3615BCE0u); /* 0x361098DA: call 0x3615bce0 */ /* not lifted */ 323 RECOMP_FLAGS_IN(); 324 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x361098DF: fld dword ptr [esi + 0x94] */ 325 _st[0] -= (double)*(float*)ADDR(esi + 0x90); /* 0x361098E5: fsub dword ptr [esi + 0x90] */ 326 eax = MEM32(esi + 0x48); /* 0x361098EB: mov eax, dword ptr [esi + 0x48] */ 327 ecx = MEM32(esi + 0x4C); /* 0x361098EE: mov ecx, dword ptr [esi + 0x4c] */ 328 { double _v = fp_pop(); _st[0] *= _v; } /* 0x361098F1: fmulp st(1) */ 329 edx = MEM32(esi + 0x50); /* 0x361098F3: mov edx, dword ptr [esi + 0x50] */ 330 MEM32(ebp + (-0x68)) = eax; /* 0x361098F6: mov dword ptr [ebp - 0x68], eax */ 331 _st[0] += (double)*(float*)ADDR(esi + 0x90); /* 0x361098F9: fadd dword ptr [esi + 0x90] */ 332 eax = MEM32(esi + 0x54); /* 0x361098FF: mov eax, dword ptr [esi + 0x54] */ 333 MEM32(ebp + (-0x60)) = ecx; /* 0x36109902: mov dword ptr [ebp - 0x60], ecx */ 334 MEM32(ebp + (-0x5C)) = edx; /* 0x36109905: mov dword ptr [ebp - 0x5c], edx */ 335 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36109908: fstp dword ptr [ebp - 0x10] */ 336 fp_push(*(float*)&MEM32(0x36170380)); /* 0x3610990B: fld dword ptr [0x36170380] */ 337 MEM32(ebp + (-0x64)) = eax; /* 0x36109911: mov dword ptr [ebp - 0x64], eax */ 338 _st[0] /= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36109914: fdiv dword ptr [ebp - 0x10] */ 339 fp_push(*(float*)&MEM32(esi + 0x58)); /* 0x36109917: fld dword ptr [esi + 0x58] */ 340 _st[0] -= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x3610991A: fsub dword ptr [ebp - 0x68] */ 341 _st[0] *= _st[1]; /* 0x3610991D: fmul st(1) */ 342 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x3610991F: fstp dword ptr [ebp - 0x74] */ 343 fp_push(*(float*)&MEM32(esi + 0x5C)); /* 0x36109922: fld dword ptr [esi + 0x5c] */ 344 _st[0] -= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x36109925: fsub dword ptr [ebp - 0x60] */ 345 _st[0] *= _st[1]; /* 0x36109928: fmul st(1) */ 346 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3610992A: fstp dword ptr [ebp - 0x70] */ 347 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x3610992D: fld dword ptr [esi + 0x60] */ 348 _st[0] -= (double)*(float*)ADDR(ebp + (-0x5C)); /* 0x36109930: fsub dword ptr [ebp - 0x5c] */ 349 _st[0] *= _st[1]; /* 0x36109933: fmul st(1) */ 350 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36109935: fstp dword ptr [ebp - 0x6c] */ 351 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x36109938: fld dword ptr [esi + 0x64] */ 352 _st[0] -= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x3610993B: fsub dword ptr [ebp - 0x64] */ 353 _st[0] *= _st[1]; /* 0x3610993E: fmul st(1) */ 354 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x36109940: fstp dword ptr [ebp - 0x78] */ 355 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36109943: fld dword ptr [esi + 8] */ 356 _st[0] += _st[0]; /* 0x36109946: fadd st(0), st(0) */ 357 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x10))); /* 0x36109948: fcomp dword ptr [ebp - 0x10] */ 358 fp_pop(); 359 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610994B: fnstsw ax */ 360 /* test HI8(eax), 1 */ /* 0x3610994D: test ah, 1 */ 361 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 362 _cf = 0; 363 _flag_k = FK_NARROW(FK_TEST, 24); 364 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610995A; /* 0x36109950: jne 0x3610995a */ 365 L_36109952: 366 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36109952: fld dword ptr [0x36170380] */ 367 goto L_36109960; /* 0x36109958: jmp 0x36109960 */ 368 L_3610995A: 369 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x3610995A: fld dword ptr [0x3617040c] */ 370 L_36109960: 371 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36109960: fld dword ptr [0x36170380] */ 372 edx = MEM32(ebp + (-0x1C)); /* 0x36109966: mov edx, dword ptr [ebp - 0x1c] */ 373 _st[0] -= _st[1]; /* 0x36109969: fsub st(1) */ 374 eax = MEM32(ebp + (-0x18)); /* 0x3610996B: mov eax, dword ptr [ebp - 0x18] */ 375 MEM32(ebp + (-0x8)) = edx; /* 0x3610996E: mov dword ptr [ebp - 8], edx */ 376 ecx = MEM32(ebp + (-0x20)); /* 0x36109971: mov ecx, dword ptr [ebp - 0x20] */ 377 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36109974: fstp dword ptr [ebp - 0x14] */ 378 MEM32(ebp + (-0x4)) = eax; /* 0x36109977: mov dword ptr [ebp - 4], eax */ 379 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610997A: fld dword ptr [ebp - 0x20] */ 380 edx = MEM32(ebp + (-0x2C)); /* 0x3610997D: mov edx, dword ptr [ebp - 0x2c] */ 381 _st[0] *= _st[1]; /* 0x36109980: fmul st(1) */ 382 eax = MEM32(ebp + (-0x28)); /* 0x36109982: mov eax, dword ptr [ebp - 0x28] */ 383 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36109985: fld dword ptr [ebp - 8] */ 384 MEM32(ebp + (-0xC)) = ecx; /* 0x36109988: mov dword ptr [ebp - 0xc], ecx */ 385 _st[0] *= _st[2]; /* 0x3610998B: fmul st(2) */ 386 ecx = MEM32(ebp + (-0x30)); /* 0x3610998D: mov ecx, dword ptr [ebp - 0x30] */ 387 MEM32(ebp + (-0xC)) = ecx; /* 0x36109990: mov dword ptr [ebp - 0xc], ecx */ 388 ecx = MEM32(esi + 0x9C); /* 0x36109993: mov ecx, dword ptr [esi + 0x9c] */ 389 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36109999: fstp dword ptr [ebp - 8] */ 390 MEM32(ebp + (-0x24)) = ecx; /* 0x3610999C: mov dword ptr [ebp - 0x24], ecx */ 391 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610999F: fld dword ptr [ebp - 4] */ 392 PUSH32(esp, 1); /* 0x361099A2: push 1 */ 393 _st[0] *= _st[2]; /* 0x361099A4: fmul st(2) */ 394 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361099A6: fstp dword ptr [ebp - 4] */ 395 _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361099A9: fadd dword ptr [ebp - 0x54] */ 396 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361099AC: fstp dword ptr [ebp - 0x54] */ 397 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x361099AF: fld dword ptr [ebp - 0x50] */ 398 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x361099B2: fadd dword ptr [ebp - 8] */ 399 MEM32(ebp + (-0x8)) = edx; /* 0x361099B5: mov dword ptr [ebp - 8], edx */ 400 edx = MEM32(esi + 0x40); /* 0x361099B8: mov edx, dword ptr [esi + 0x40] */ 401 MEM32(ebp + (-0x58)) = edx; /* 0x361099BB: mov dword ptr [ebp - 0x58], edx */ 402 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x361099BE: fstp dword ptr [ebp - 0x50] */ 403 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x361099C1: fld dword ptr [ebp - 0x4c] */ 404 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361099C4: fadd dword ptr [ebp - 4] */ 405 MEM32(ebp + (-0x4)) = eax; /* 0x361099C7: mov dword ptr [ebp - 4], eax */ 406 eax = MEM32(esi + 0x38); /* 0x361099CA: mov eax, dword ptr [esi + 0x38] */ 407 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x361099CD: fstp dword ptr [ebp - 0x4c] */ 408 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x361099D0: fld dword ptr [ebp - 0x30] */ 409 _st[0] *= _st[1]; /* 0x361099D3: fmul st(1) */ 410 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361099D5: fstp dword ptr [ebp - 0xc] */ 411 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361099D8: fld dword ptr [ebp - 8] */ 412 _st[0] *= _st[1]; /* 0x361099DB: fmul st(1) */ 413 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x361099DD: fstp dword ptr [ebp - 8] */ 414 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361099E0: fmul dword ptr [ebp - 4] */ 415 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361099E3: fld dword ptr [ebp - 0xc] */ 416 _st[0] += (double)*(float*)ADDR(ebp + (-0x48)); /* 0x361099E6: fadd dword ptr [ebp - 0x48] */ 417 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361099E9: fstp dword ptr [ebp - 0x48] */ 418 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361099EC: fld dword ptr [ebp - 0x44] */ 419 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x361099EF: fadd dword ptr [ebp - 8] */ 420 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361099F2: fstp dword ptr [ebp - 0x44] */ 421 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361099F5: fld dword ptr [ebp - 0x40] */ 422 _st[0] += _st[1]; /* 0x361099F8: fadd st(1) */ 423 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361099FA: fstp dword ptr [ebp - 0x40] */ 424 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361099FD: fstp st(0) */ 425 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361099FF: fld dword ptr [ebp - 0x14] */ 426 MEM32(ebp + (-0x14)) = eax; /* 0x36109A02: mov dword ptr [ebp - 0x14], eax */ 427 _st[0] *= _st[1]; /* 0x36109A05: fmul st(1) */ 428 fp_push(_st[0]); /* 0x36109A07: fld st(0) */ 429 fp_push(_st[0]); /* 0x36109A09: fld st(0) */ 430 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36109A0B: fmul dword ptr [ebp - 0x20] */ 431 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36109A0E: fstp dword ptr [ebp - 0x20] */ 432 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36109A11: fld dword ptr [ebp - 0x1c] */ 433 _st[0] *= _st[1]; /* 0x36109A14: fmul st(1) */ 434 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36109A16: fstp dword ptr [ebp - 0x1c] */ 435 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36109A19: fld dword ptr [ebp - 0x18] */ 436 _st[0] *= _st[1]; /* 0x36109A1C: fmul st(1) */ 437 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36109A1E: fstp dword ptr [ebp - 0x18] */ 438 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36109A21: fstp st(0) */ 439 fp_push(_st[0]); /* 0x36109A23: fld st(0) */ 440 _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36109A25: fmul dword ptr [ebp - 0x30] */ 441 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36109A28: fstp dword ptr [ebp - 0x30] */ 442 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36109A2B: fld dword ptr [ebp - 0x2c] */ 443 _st[0] *= _st[1]; /* 0x36109A2E: fmul st(1) */ 444 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36109A30: fstp dword ptr [ebp - 0x2c] */ 445 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36109A33: fld dword ptr [ebp - 0x28] */ 446 _st[0] *= _st[1]; /* 0x36109A36: fmul st(1) */ 447 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36109A38: fstp dword ptr [ebp - 0x28] */ 448 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36109A3B: fstp st(0) */ 449 fp_push(*(float*)&MEM32(esi + 0xA0)); /* 0x36109A3D: fld dword ptr [esi + 0xa0] */ 450 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36109A43: fsub dword ptr [ebp - 0x24] */ 451 edx = MEM32(ebp + (-0x78)); /* 0x36109A46: mov edx, dword ptr [ebp - 0x78] */ 452 _st[0] *= _st[1]; /* 0x36109A49: fmul st(1) */ 453 eax = MEM32(ebp + (-0x6C)); /* 0x36109A4B: mov eax, dword ptr [ebp - 0x6c] */ 454 PUSH32(esp, ecx); /* 0x36109A4E: push ecx */ 455 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109A4F: fstp dword ptr [esp] */ 456 PUSH32(esp, ecx); /* 0x36109A52: push ecx */ 457 ecx = MEM32(ebp + (-0x70)); /* 0x36109A53: mov ecx, dword ptr [ebp - 0x70] */ 458 fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x36109A56: fld dword ptr [esi + 0x44] */ 459 _st[0] -= (double)*(float*)ADDR(ebp + (-0x58)); /* 0x36109A59: fsub dword ptr [ebp - 0x58] */ 460 PUSH32(esp, edx); /* 0x36109A5C: push edx */ 461 edx = MEM32(ebp + (-0x74)); /* 0x36109A5D: mov edx, dword ptr [ebp - 0x74] */ 462 PUSH32(esp, eax); /* 0x36109A60: push eax */ 463 eax = MEM32(ebp + (-0x64)); /* 0x36109A61: mov eax, dword ptr [ebp - 0x64] */ 464 PUSH32(esp, ecx); /* 0x36109A64: push ecx */ 465 ecx = MEM32(ebp + (-0x5C)); /* 0x36109A65: mov ecx, dword ptr [ebp - 0x5c] */ 466 PUSH32(esp, edx); /* 0x36109A68: push edx */ 467 edx = MEM32(ebp + (-0x60)); /* 0x36109A69: mov edx, dword ptr [ebp - 0x60] */ 468 PUSH32(esp, eax); /* 0x36109A6C: push eax */ 469 eax = MEM32(ebp + (-0x68)); /* 0x36109A6D: mov eax, dword ptr [ebp - 0x68] */ 470 PUSH32(esp, ecx); /* 0x36109A70: push ecx */ 471 ecx = MEM32(ebp + (-0x10)); /* 0x36109A71: mov ecx, dword ptr [ebp - 0x10] */ 472 PUSH32(esp, edx); /* 0x36109A74: push edx */ 473 edx = MEM32(ebp + (-0x58)); /* 0x36109A75: mov edx, dword ptr [ebp - 0x58] */ 474 PUSH32(esp, eax); /* 0x36109A78: push eax */ 475 eax = MEM32(ebp + (-0x14)); /* 0x36109A79: mov eax, dword ptr [ebp - 0x14] */ 476 PUSH32(esp, 0xFFFFFFFFu); /* 0x36109A7C: push -1 */ 477 PUSH32(esp, ecx); /* 0x36109A7E: push ecx */ 478 PUSH32(esp, ecx); /* 0x36109A7F: push ecx */ 479 _st[0] *= _st[1]; /* 0x36109A80: fmul st(1) */ 480 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109A82: fstp dword ptr [esp] */ 481 PUSH32(esp, ecx); /* 0x36109A85: push ecx */ 482 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x36109A86: fld dword ptr [esi + 0x3c] */ 483 ecx = ebp + (-0x30); /* 0x36109A89: lea ecx, [ebp - 0x30] */ 484 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36109A8C: fsub dword ptr [ebp - 0x14] */ 485 _st[0] *= _st[1]; /* 0x36109A8F: fmul st(1) */ 486 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109A91: fstp dword ptr [esp] */ 487 PUSH32(esp, edx); /* 0x36109A94: push edx */ 488 PUSH32(esp, eax); /* 0x36109A95: push eax */ 489 PUSH32(esp, ecx); /* 0x36109A96: push ecx */ 490 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36109A97: fstp st(0) */ 491 edx = ebp + (-0x48); /* 0x36109A99: lea edx, [ebp - 0x48] */ 492 PUSH32(esp, edx); /* 0x36109A9C: push edx */ 493 eax = ebp + (-0x20); /* 0x36109A9D: lea eax, [ebp - 0x20] */ 494 PUSH32(esp, eax); /* 0x36109AA0: push eax */ 495 ecx = ebp + (-0x54); /* 0x36109AA1: lea ecx, [ebp - 0x54] */ 496 PUSH32(esp, ecx); /* 0x36109AA4: push ecx */ 497 ecx = MEM32(esi + 0x24); /* 0x36109AA5: mov ecx, dword ptr [esi + 0x24] */ 498 RECOMP_ICALL(MEM32(0x3616F700)); /* 0x36109AA8: call dword ptr [0x3616f700] */ 499 RECOMP_FLAGS_IN(); 500 edi = POP32_VAL(esp); /* 0x36109AAE: pop edi */ 501 esi = POP32_VAL(esp); /* 0x36109AAF: pop esi */ 502 esp = ebp; /* 0x36109AB0: mov esp, ebp */ 503 ebp = POP32_VAL(esp); /* 0x36109AB2: pop ebp */ 504 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36109AB3: ret */ 505 RECOMP_REGS_OUT(); 506 } 507 508 void sub_36109960(void) { 509 int _fpu_cmp = 0; 510 uint32_t _cf = 0; 511 int _df = 1; 512 uint32_t _flag_k = FK_NONE; 513 uint32_t _flag_a = 0, _flag_b = 0; 514 uint32_t _itail_tgt = 0; 515 RECOMP_REGS_LOCALS 516 RECOMP_ENTER(0x36109960u); 517 518 L_36109960: 519 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36109960: fld dword ptr [0x36170380] */ 520 edx = MEM32(ebp + (-0x1C)); /* 0x36109966: mov edx, dword ptr [ebp - 0x1c] */ 521 _st[0] -= _st[1]; /* 0x36109969: fsub st(1) */ 522 eax = MEM32(ebp + (-0x18)); /* 0x3610996B: mov eax, dword ptr [ebp - 0x18] */ 523 MEM32(ebp + (-0x8)) = edx; /* 0x3610996E: mov dword ptr [ebp - 8], edx */ 524 ecx = MEM32(ebp + (-0x20)); /* 0x36109971: mov ecx, dword ptr [ebp - 0x20] */ 525 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36109974: fstp dword ptr [ebp - 0x14] */ 526 MEM32(ebp + (-0x4)) = eax; /* 0x36109977: mov dword ptr [ebp - 4], eax */ 527 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610997A: fld dword ptr [ebp - 0x20] */ 528 edx = MEM32(ebp + (-0x2C)); /* 0x3610997D: mov edx, dword ptr [ebp - 0x2c] */ 529 _st[0] *= _st[1]; /* 0x36109980: fmul st(1) */ 530 eax = MEM32(ebp + (-0x28)); /* 0x36109982: mov eax, dword ptr [ebp - 0x28] */ 531 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36109985: fld dword ptr [ebp - 8] */ 532 MEM32(ebp + (-0xC)) = ecx; /* 0x36109988: mov dword ptr [ebp - 0xc], ecx */ 533 _st[0] *= _st[2]; /* 0x3610998B: fmul st(2) */ 534 ecx = MEM32(ebp + (-0x30)); /* 0x3610998D: mov ecx, dword ptr [ebp - 0x30] */ 535 MEM32(ebp + (-0xC)) = ecx; /* 0x36109990: mov dword ptr [ebp - 0xc], ecx */ 536 ecx = MEM32(esi + 0x9C); /* 0x36109993: mov ecx, dword ptr [esi + 0x9c] */ 537 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36109999: fstp dword ptr [ebp - 8] */ 538 MEM32(ebp + (-0x24)) = ecx; /* 0x3610999C: mov dword ptr [ebp - 0x24], ecx */ 539 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610999F: fld dword ptr [ebp - 4] */ 540 PUSH32(esp, 1); /* 0x361099A2: push 1 */ 541 _st[0] *= _st[2]; /* 0x361099A4: fmul st(2) */ 542 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361099A6: fstp dword ptr [ebp - 4] */ 543 _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361099A9: fadd dword ptr [ebp - 0x54] */ 544 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361099AC: fstp dword ptr [ebp - 0x54] */ 545 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x361099AF: fld dword ptr [ebp - 0x50] */ 546 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x361099B2: fadd dword ptr [ebp - 8] */ 547 MEM32(ebp + (-0x8)) = edx; /* 0x361099B5: mov dword ptr [ebp - 8], edx */ 548 edx = MEM32(esi + 0x40); /* 0x361099B8: mov edx, dword ptr [esi + 0x40] */ 549 MEM32(ebp + (-0x58)) = edx; /* 0x361099BB: mov dword ptr [ebp - 0x58], edx */ 550 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x361099BE: fstp dword ptr [ebp - 0x50] */ 551 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x361099C1: fld dword ptr [ebp - 0x4c] */ 552 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361099C4: fadd dword ptr [ebp - 4] */ 553 MEM32(ebp + (-0x4)) = eax; /* 0x361099C7: mov dword ptr [ebp - 4], eax */ 554 eax = MEM32(esi + 0x38); /* 0x361099CA: mov eax, dword ptr [esi + 0x38] */ 555 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x361099CD: fstp dword ptr [ebp - 0x4c] */ 556 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x361099D0: fld dword ptr [ebp - 0x30] */ 557 _st[0] *= _st[1]; /* 0x361099D3: fmul st(1) */ 558 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361099D5: fstp dword ptr [ebp - 0xc] */ 559 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361099D8: fld dword ptr [ebp - 8] */ 560 _st[0] *= _st[1]; /* 0x361099DB: fmul st(1) */ 561 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x361099DD: fstp dword ptr [ebp - 8] */ 562 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361099E0: fmul dword ptr [ebp - 4] */ 563 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361099E3: fld dword ptr [ebp - 0xc] */ 564 _st[0] += (double)*(float*)ADDR(ebp + (-0x48)); /* 0x361099E6: fadd dword ptr [ebp - 0x48] */ 565 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361099E9: fstp dword ptr [ebp - 0x48] */ 566 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361099EC: fld dword ptr [ebp - 0x44] */ 567 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x361099EF: fadd dword ptr [ebp - 8] */ 568 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361099F2: fstp dword ptr [ebp - 0x44] */ 569 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361099F5: fld dword ptr [ebp - 0x40] */ 570 _st[0] += _st[1]; /* 0x361099F8: fadd st(1) */ 571 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361099FA: fstp dword ptr [ebp - 0x40] */ 572 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361099FD: fstp st(0) */ 573 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361099FF: fld dword ptr [ebp - 0x14] */ 574 MEM32(ebp + (-0x14)) = eax; /* 0x36109A02: mov dword ptr [ebp - 0x14], eax */ 575 _st[0] *= _st[1]; /* 0x36109A05: fmul st(1) */ 576 fp_push(_st[0]); /* 0x36109A07: fld st(0) */ 577 fp_push(_st[0]); /* 0x36109A09: fld st(0) */ 578 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36109A0B: fmul dword ptr [ebp - 0x20] */ 579 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36109A0E: fstp dword ptr [ebp - 0x20] */ 580 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36109A11: fld dword ptr [ebp - 0x1c] */ 581 _st[0] *= _st[1]; /* 0x36109A14: fmul st(1) */ 582 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36109A16: fstp dword ptr [ebp - 0x1c] */ 583 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36109A19: fld dword ptr [ebp - 0x18] */ 584 _st[0] *= _st[1]; /* 0x36109A1C: fmul st(1) */ 585 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36109A1E: fstp dword ptr [ebp - 0x18] */ 586 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36109A21: fstp st(0) */ 587 fp_push(_st[0]); /* 0x36109A23: fld st(0) */ 588 _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36109A25: fmul dword ptr [ebp - 0x30] */ 589 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36109A28: fstp dword ptr [ebp - 0x30] */ 590 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36109A2B: fld dword ptr [ebp - 0x2c] */ 591 _st[0] *= _st[1]; /* 0x36109A2E: fmul st(1) */ 592 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36109A30: fstp dword ptr [ebp - 0x2c] */ 593 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36109A33: fld dword ptr [ebp - 0x28] */ 594 _st[0] *= _st[1]; /* 0x36109A36: fmul st(1) */ 595 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36109A38: fstp dword ptr [ebp - 0x28] */ 596 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36109A3B: fstp st(0) */ 597 fp_push(*(float*)&MEM32(esi + 0xA0)); /* 0x36109A3D: fld dword ptr [esi + 0xa0] */ 598 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36109A43: fsub dword ptr [ebp - 0x24] */ 599 edx = MEM32(ebp + (-0x78)); /* 0x36109A46: mov edx, dword ptr [ebp - 0x78] */ 600 _st[0] *= _st[1]; /* 0x36109A49: fmul st(1) */ 601 eax = MEM32(ebp + (-0x6C)); /* 0x36109A4B: mov eax, dword ptr [ebp - 0x6c] */ 602 PUSH32(esp, ecx); /* 0x36109A4E: push ecx */ 603 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109A4F: fstp dword ptr [esp] */ 604 PUSH32(esp, ecx); /* 0x36109A52: push ecx */ 605 ecx = MEM32(ebp + (-0x70)); /* 0x36109A53: mov ecx, dword ptr [ebp - 0x70] */ 606 fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x36109A56: fld dword ptr [esi + 0x44] */ 607 _st[0] -= (double)*(float*)ADDR(ebp + (-0x58)); /* 0x36109A59: fsub dword ptr [ebp - 0x58] */ 608 PUSH32(esp, edx); /* 0x36109A5C: push edx */ 609 edx = MEM32(ebp + (-0x74)); /* 0x36109A5D: mov edx, dword ptr [ebp - 0x74] */ 610 PUSH32(esp, eax); /* 0x36109A60: push eax */ 611 eax = MEM32(ebp + (-0x64)); /* 0x36109A61: mov eax, dword ptr [ebp - 0x64] */ 612 PUSH32(esp, ecx); /* 0x36109A64: push ecx */ 613 ecx = MEM32(ebp + (-0x5C)); /* 0x36109A65: mov ecx, dword ptr [ebp - 0x5c] */ 614 PUSH32(esp, edx); /* 0x36109A68: push edx */ 615 edx = MEM32(ebp + (-0x60)); /* 0x36109A69: mov edx, dword ptr [ebp - 0x60] */ 616 PUSH32(esp, eax); /* 0x36109A6C: push eax */ 617 eax = MEM32(ebp + (-0x68)); /* 0x36109A6D: mov eax, dword ptr [ebp - 0x68] */ 618 PUSH32(esp, ecx); /* 0x36109A70: push ecx */ 619 ecx = MEM32(ebp + (-0x10)); /* 0x36109A71: mov ecx, dword ptr [ebp - 0x10] */ 620 PUSH32(esp, edx); /* 0x36109A74: push edx */ 621 edx = MEM32(ebp + (-0x58)); /* 0x36109A75: mov edx, dword ptr [ebp - 0x58] */ 622 PUSH32(esp, eax); /* 0x36109A78: push eax */ 623 eax = MEM32(ebp + (-0x14)); /* 0x36109A79: mov eax, dword ptr [ebp - 0x14] */ 624 PUSH32(esp, 0xFFFFFFFFu); /* 0x36109A7C: push -1 */ 625 PUSH32(esp, ecx); /* 0x36109A7E: push ecx */ 626 PUSH32(esp, ecx); /* 0x36109A7F: push ecx */ 627 _st[0] *= _st[1]; /* 0x36109A80: fmul st(1) */ 628 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109A82: fstp dword ptr [esp] */ 629 PUSH32(esp, ecx); /* 0x36109A85: push ecx */ 630 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x36109A86: fld dword ptr [esi + 0x3c] */ 631 ecx = ebp + (-0x30); /* 0x36109A89: lea ecx, [ebp - 0x30] */ 632 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36109A8C: fsub dword ptr [ebp - 0x14] */ 633 _st[0] *= _st[1]; /* 0x36109A8F: fmul st(1) */ 634 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109A91: fstp dword ptr [esp] */ 635 PUSH32(esp, edx); /* 0x36109A94: push edx */ 636 PUSH32(esp, eax); /* 0x36109A95: push eax */ 637 PUSH32(esp, ecx); /* 0x36109A96: push ecx */ 638 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36109A97: fstp st(0) */ 639 edx = ebp + (-0x48); /* 0x36109A99: lea edx, [ebp - 0x48] */ 640 PUSH32(esp, edx); /* 0x36109A9C: push edx */ 641 eax = ebp + (-0x20); /* 0x36109A9D: lea eax, [ebp - 0x20] */ 642 PUSH32(esp, eax); /* 0x36109AA0: push eax */ 643 ecx = ebp + (-0x54); /* 0x36109AA1: lea ecx, [ebp - 0x54] */ 644 PUSH32(esp, ecx); /* 0x36109AA4: push ecx */ 645 ecx = MEM32(esi + 0x24); /* 0x36109AA5: mov ecx, dword ptr [esi + 0x24] */ 646 RECOMP_ICALL(MEM32(0x3616F700)); /* 0x36109AA8: call dword ptr [0x3616f700] */ 647 RECOMP_FLAGS_IN(); 648 edi = POP32_VAL(esp); /* 0x36109AAE: pop edi */ 649 esi = POP32_VAL(esp); /* 0x36109AAF: pop esi */ 650 esp = ebp; /* 0x36109AB0: mov esp, ebp */ 651 ebp = POP32_VAL(esp); /* 0x36109AB2: pop ebp */ 652 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36109AB3: ret */ 653 RECOMP_REGS_OUT(); 654 } 655 656 void sub_36109AC0(void) { 657 int _fpu_cmp = 0; 658 uint32_t _cf = 0; 659 int _df = 1; 660 uint32_t _flag_k = FK_NONE; 661 uint32_t _flag_a = 0, _flag_b = 0; 662 uint32_t _itail_tgt = 0; 663 RECOMP_REGS_LOCALS 664 RECOMP_ENTER(0x36109AC0u); 665 666 goto L_36109AC0; 667 L_36109660: 668 PUSH32(esp, ebp); /* 0x36109660: push ebp */ 669 ebp = esp; /* 0x36109661: mov ebp, esp */ 670 PUSH32(esp, esi); /* 0x36109663: push esi */ 671 esi = ecx; /* 0x36109664: mov esi, ecx */ 672 RECOMP_ICALL(MEM32(0x3616F6FC)); /* 0x36109666: call dword ptr [0x3616f6fc] */ 673 RECOMP_FLAGS_IN(); 674 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610966C: test byte ptr [ebp + 8], 1 */ 675 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 676 _cf = 0; 677 _flag_k = FK_NARROW(FK_TEST, 24); 678 if (TEST_Z(_flag_a, _flag_b)) goto L_3610967B; /* 0x36109670: je 0x3610967b */ 679 L_36109672: 680 PUSH32(esp, esi); /* 0x36109672: push esi */ 681 RECOMP_ICALL(0x3615FCC4u); /* 0x36109673: call 0x3615fcc4 */ /* not lifted */ 682 RECOMP_FLAGS_IN(); 683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 685 esp = esp + 4; /* 0x36109678: add esp, 4 */ 686 _flag_k = FK_ADD; 687 L_3610967B: 688 eax = esi; /* 0x3610967B: mov eax, esi */ 689 esi = POP32_VAL(esp); /* 0x3610967D: pop esi */ 690 ebp = POP32_VAL(esp); /* 0x3610967E: pop ebp */ 691 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610967F: ret 4 */ 692 L_36109AC0: 693 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 695 ecx = ecx - 8; /* 0x36109AC0: sub ecx, 8 */ 696 _flag_k = FK_CMP; 697 RECOMP_BACKEDGE(); 698 goto L_36109660; /* 0x36109AC3: jmp 0x36109660 */ 699 { RECOMP_REGS_OUT(); return; } /* end of function */ 700 RECOMP_REGS_OUT(); 701 } 702 703 void sub_36109AD0(void) { 704 int _fpu_cmp = 0; 705 uint32_t _cf = 0; 706 int _df = 1; 707 uint32_t _flag_k = FK_NONE; 708 uint32_t _flag_a = 0, _flag_b = 0; 709 uint32_t _itail_tgt = 0; 710 RECOMP_REGS_LOCALS 711 RECOMP_ENTER(0x36109AD0u); 712 713 goto L_36109AD0; 714 L_36109660: 715 PUSH32(esp, ebp); /* 0x36109660: push ebp */ 716 ebp = esp; /* 0x36109661: mov ebp, esp */ 717 PUSH32(esp, esi); /* 0x36109663: push esi */ 718 esi = ecx; /* 0x36109664: mov esi, ecx */ 719 RECOMP_ICALL(MEM32(0x3616F6FC)); /* 0x36109666: call dword ptr [0x3616f6fc] */ 720 RECOMP_FLAGS_IN(); 721 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610966C: test byte ptr [ebp + 8], 1 */ 722 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 723 _cf = 0; 724 _flag_k = FK_NARROW(FK_TEST, 24); 725 if (TEST_Z(_flag_a, _flag_b)) goto L_3610967B; /* 0x36109670: je 0x3610967b */ 726 L_36109672: 727 PUSH32(esp, esi); /* 0x36109672: push esi */ 728 RECOMP_ICALL(0x3615FCC4u); /* 0x36109673: call 0x3615fcc4 */ /* not lifted */ 729 RECOMP_FLAGS_IN(); 730 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 732 esp = esp + 4; /* 0x36109678: add esp, 4 */ 733 _flag_k = FK_ADD; 734 L_3610967B: 735 eax = esi; /* 0x3610967B: mov eax, esi */ 736 esi = POP32_VAL(esp); /* 0x3610967D: pop esi */ 737 ebp = POP32_VAL(esp); /* 0x3610967E: pop ebp */ 738 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610967F: ret 4 */ 739 L_36109AD0: 740 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 742 ecx = ecx - 0x20u; /* 0x36109AD0: sub ecx, 0x20 */ 743 _flag_k = FK_CMP; 744 RECOMP_BACKEDGE(); 745 goto L_36109660; /* 0x36109AD3: jmp 0x36109660 */ 746 { RECOMP_REGS_OUT(); return; } /* end of function */ 747 RECOMP_REGS_OUT(); 748 } 749 750 void sub_36109AE0(void) { 751 int _fpu_cmp = 0; 752 uint32_t _cf = 0; 753 int _df = 1; 754 uint32_t _flag_k = FK_NONE; 755 uint32_t _flag_a = 0, _flag_b = 0; 756 uint32_t _itail_tgt = 0; 757 RECOMP_REGS_LOCALS 758 RECOMP_ENTER(0x36109AE0u); 759 760 goto L_36109AE0; 761 L_36109660: 762 PUSH32(esp, ebp); /* 0x36109660: push ebp */ 763 ebp = esp; /* 0x36109661: mov ebp, esp */ 764 PUSH32(esp, esi); /* 0x36109663: push esi */ 765 esi = ecx; /* 0x36109664: mov esi, ecx */ 766 RECOMP_ICALL(MEM32(0x3616F6FC)); /* 0x36109666: call dword ptr [0x3616f6fc] */ 767 RECOMP_FLAGS_IN(); 768 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610966C: test byte ptr [ebp + 8], 1 */ 769 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 770 _cf = 0; 771 _flag_k = FK_NARROW(FK_TEST, 24); 772 if (TEST_Z(_flag_a, _flag_b)) goto L_3610967B; /* 0x36109670: je 0x3610967b */ 773 L_36109672: 774 PUSH32(esp, esi); /* 0x36109672: push esi */ 775 RECOMP_ICALL(0x3615FCC4u); /* 0x36109673: call 0x3615fcc4 */ /* not lifted */ 776 RECOMP_FLAGS_IN(); 777 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 778 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 779 esp = esp + 4; /* 0x36109678: add esp, 4 */ 780 _flag_k = FK_ADD; 781 L_3610967B: 782 eax = esi; /* 0x3610967B: mov eax, esi */ 783 esi = POP32_VAL(esp); /* 0x3610967D: pop esi */ 784 ebp = POP32_VAL(esp); /* 0x3610967E: pop ebp */ 785 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610967F: ret 4 */ 786 L_36109AE0: 787 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 789 ecx = ecx - 0x38u; /* 0x36109AE0: sub ecx, 0x38 */ 790 _flag_k = FK_CMP; 791 RECOMP_BACKEDGE(); 792 goto L_36109660; /* 0x36109AE3: jmp 0x36109660 */ 793 { RECOMP_REGS_OUT(); return; } /* end of function */ 794 RECOMP_REGS_OUT(); 795 } 796 797 void sub_36109AF0(void) { 798 int _fpu_cmp = 0; 799 uint32_t _cf = 0; 800 int _df = 1; 801 uint32_t _flag_k = FK_NONE; 802 uint32_t _flag_a = 0, _flag_b = 0; 803 uint32_t _itail_tgt = 0; 804 RECOMP_REGS_LOCALS 805 RECOMP_ENTER(0x36109AF0u); 806 807 goto L_36109AF0; 808 L_36109660: 809 PUSH32(esp, ebp); /* 0x36109660: push ebp */ 810 ebp = esp; /* 0x36109661: mov ebp, esp */ 811 PUSH32(esp, esi); /* 0x36109663: push esi */ 812 esi = ecx; /* 0x36109664: mov esi, ecx */ 813 RECOMP_ICALL(MEM32(0x3616F6FC)); /* 0x36109666: call dword ptr [0x3616f6fc] */ 814 RECOMP_FLAGS_IN(); 815 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610966C: test byte ptr [ebp + 8], 1 */ 816 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 817 _cf = 0; 818 _flag_k = FK_NARROW(FK_TEST, 24); 819 if (TEST_Z(_flag_a, _flag_b)) goto L_3610967B; /* 0x36109670: je 0x3610967b */ 820 L_36109672: 821 PUSH32(esp, esi); /* 0x36109672: push esi */ 822 RECOMP_ICALL(0x3615FCC4u); /* 0x36109673: call 0x3615fcc4 */ /* not lifted */ 823 RECOMP_FLAGS_IN(); 824 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 825 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 826 esp = esp + 4; /* 0x36109678: add esp, 4 */ 827 _flag_k = FK_ADD; 828 L_3610967B: 829 eax = esi; /* 0x3610967B: mov eax, esi */ 830 esi = POP32_VAL(esp); /* 0x3610967D: pop esi */ 831 ebp = POP32_VAL(esp); /* 0x3610967E: pop ebp */ 832 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610967F: ret 4 */ 833 L_36109AF0: 834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 836 ecx = ecx - 0x50u; /* 0x36109AF0: sub ecx, 0x50 */ 837 _flag_k = FK_CMP; 838 RECOMP_BACKEDGE(); 839 goto L_36109660; /* 0x36109AF3: jmp 0x36109660 */ 840 { RECOMP_REGS_OUT(); return; } /* end of function */ 841 RECOMP_REGS_OUT(); 842 } 843 844 void sub_36109B00(void) { 845 int _fpu_cmp = 0; 846 uint32_t _cf = 0; 847 int _df = 1; 848 uint32_t _flag_k = FK_NONE; 849 uint32_t _flag_a = 0, _flag_b = 0; 850 uint32_t _itail_tgt = 0; 851 RECOMP_REGS_LOCALS 852 RECOMP_ENTER(0x36109B00u); 853 854 goto L_36109B00; 855 L_36109660: 856 PUSH32(esp, ebp); /* 0x36109660: push ebp */ 857 ebp = esp; /* 0x36109661: mov ebp, esp */ 858 PUSH32(esp, esi); /* 0x36109663: push esi */ 859 esi = ecx; /* 0x36109664: mov esi, ecx */ 860 RECOMP_ICALL(MEM32(0x3616F6FC)); /* 0x36109666: call dword ptr [0x3616f6fc] */ 861 RECOMP_FLAGS_IN(); 862 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610966C: test byte ptr [ebp + 8], 1 */ 863 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 864 _cf = 0; 865 _flag_k = FK_NARROW(FK_TEST, 24); 866 if (TEST_Z(_flag_a, _flag_b)) goto L_3610967B; /* 0x36109670: je 0x3610967b */ 867 L_36109672: 868 PUSH32(esp, esi); /* 0x36109672: push esi */ 869 RECOMP_ICALL(0x3615FCC4u); /* 0x36109673: call 0x3615fcc4 */ /* not lifted */ 870 RECOMP_FLAGS_IN(); 871 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 873 esp = esp + 4; /* 0x36109678: add esp, 4 */ 874 _flag_k = FK_ADD; 875 L_3610967B: 876 eax = esi; /* 0x3610967B: mov eax, esi */ 877 esi = POP32_VAL(esp); /* 0x3610967D: pop esi */ 878 ebp = POP32_VAL(esp); /* 0x3610967E: pop ebp */ 879 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610967F: ret 4 */ 880 L_36109B00: 881 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 883 ecx = ecx - 0x138u; /* 0x36109B00: sub ecx, 0x138 */ 884 _flag_k = FK_CMP; 885 RECOMP_BACKEDGE(); 886 goto L_36109660; /* 0x36109B06: jmp 0x36109660 */ 887 { RECOMP_REGS_OUT(); return; } /* end of function */ 888 RECOMP_REGS_OUT(); 889 } 890 891 void sub_36109B10(void) { 892 int _fpu_cmp = 0; 893 uint32_t _cf = 0; 894 int _df = 1; 895 uint32_t _flag_k = FK_NONE; 896 uint32_t _flag_a = 0, _flag_b = 0; 897 uint32_t _itail_tgt = 0; 898 RECOMP_REGS_LOCALS 899 RECOMP_ENTER(0x36109B10u); 900 901 goto L_36109B10; 902 L_36109660: 903 PUSH32(esp, ebp); /* 0x36109660: push ebp */ 904 ebp = esp; /* 0x36109661: mov ebp, esp */ 905 PUSH32(esp, esi); /* 0x36109663: push esi */ 906 esi = ecx; /* 0x36109664: mov esi, ecx */ 907 RECOMP_ICALL(MEM32(0x3616F6FC)); /* 0x36109666: call dword ptr [0x3616f6fc] */ 908 RECOMP_FLAGS_IN(); 909 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610966C: test byte ptr [ebp + 8], 1 */ 910 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 911 _cf = 0; 912 _flag_k = FK_NARROW(FK_TEST, 24); 913 if (TEST_Z(_flag_a, _flag_b)) goto L_3610967B; /* 0x36109670: je 0x3610967b */ 914 L_36109672: 915 PUSH32(esp, esi); /* 0x36109672: push esi */ 916 RECOMP_ICALL(0x3615FCC4u); /* 0x36109673: call 0x3615fcc4 */ /* not lifted */ 917 RECOMP_FLAGS_IN(); 918 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 919 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 920 esp = esp + 4; /* 0x36109678: add esp, 4 */ 921 _flag_k = FK_ADD; 922 L_3610967B: 923 eax = esi; /* 0x3610967B: mov eax, esi */ 924 esi = POP32_VAL(esp); /* 0x3610967D: pop esi */ 925 ebp = POP32_VAL(esp); /* 0x3610967E: pop ebp */ 926 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610967F: ret 4 */ 927 L_36109B10: 928 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 930 ecx = ecx - 0x150u; /* 0x36109B10: sub ecx, 0x150 */ 931 _flag_k = FK_CMP; 932 RECOMP_BACKEDGE(); 933 goto L_36109660; /* 0x36109B16: jmp 0x36109660 */ 934 { RECOMP_REGS_OUT(); return; } /* end of function */ 935 RECOMP_REGS_OUT(); 936 } 937 938 void sub_36109B20(void) { 939 int _fpu_cmp = 0; 940 uint32_t _cf = 0; 941 int _df = 1; 942 uint32_t _flag_k = FK_NONE; 943 uint32_t _flag_a = 0, _flag_b = 0; 944 uint32_t _itail_tgt = 0; 945 RECOMP_REGS_LOCALS 946 RECOMP_ENTER(0x36109B20u); 947 948 L_36109B20: 949 PUSH32(esp, ebp); /* 0x36109B20: push ebp */ 950 ebp = esp; /* 0x36109B21: mov ebp, esp */ 951 PUSH32(esp, 0xFFFFFFFFu); /* 0x36109B23: push -1 */ 952 PUSH32(esp, 0x3616A3A3u); /* 0x36109B25: push 0x3616a3a3 */ 953 eax = MEM32(FS_BASE + (0)); /* 0x36109B2A: mov eax, dword ptr fs:[0] */ 954 PUSH32(esp, eax); /* 0x36109B30: push eax */ 955 MEM32(FS_BASE + (0)) = esp; /* 0x36109B31: mov dword ptr fs:[0], esp */ 956 PUSH32(esp, ecx); /* 0x36109B38: push ecx */ 957 eax = MEM32(ebp + 0x8); /* 0x36109B39: mov eax, dword ptr [ebp + 8] */ 958 PUSH32(esp, ebx); /* 0x36109B3C: push ebx */ 959 PUSH32(esp, esi); /* 0x36109B3D: push esi */ 960 PUSH32(esp, edi); /* 0x36109B3E: push edi */ 961 esi = ecx; /* 0x36109B3F: mov esi, ecx */ 962 PUSH32(esp, eax); /* 0x36109B41: push eax */ 963 MEM32(ebp + (-0x10)) = esi; /* 0x36109B42: mov dword ptr [ebp - 0x10], esi */ 964 RECOMP_ICALL(0x360FC270u); /* 0x36109B45: call 0x360fc270 */ /* not lifted */ 965 RECOMP_FLAGS_IN(); 966 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 967 ebx = 0; /* 0x36109B4A: xor ebx, ebx */ 968 _cf = 0; 969 _flag_k = FK_TEST; 970 ecx = esi; /* 0x36109B4C: mov ecx, esi */ 971 MEM32(ebp + (-0x4)) = ebx; /* 0x36109B4E: mov dword ptr [ebp - 4], ebx */ 972 MEM32(esi + 0x20) = ebx; /* 0x36109B51: mov dword ptr [esi + 0x20], ebx */ 973 MEM32(esi + 0x24) = ebx; /* 0x36109B54: mov dword ptr [esi + 0x24], ebx */ 974 MEM32(esi + 0xA0) = ebx; /* 0x36109B57: mov dword ptr [esi + 0xa0], ebx */ 975 MEM32(esi) = 0x3617633Cu; /* 0x36109B5D: mov dword ptr [esi], 0x3617633c */ 976 RECOMP_ICALL(0x3610A280u); /* 0x36109B63: call 0x3610a280 */ /* not lifted */ 977 RECOMP_FLAGS_IN(); 978 ecx = MEM32(esi + 0x4); /* 0x36109B68: mov ecx, dword ptr [esi + 4] */ 979 PUSH32(esp, ecx); /* 0x36109B6B: push ecx */ 980 RECOMP_ICALL(0x360F7B00u); /* 0x36109B6C: call 0x360f7b00 */ /* not lifted */ 981 RECOMP_FLAGS_IN(); 982 ecx = eax; /* 0x36109B71: mov ecx, eax */ 983 RECOMP_ICALL(0x360FBFF0u); /* 0x36109B73: call 0x360fbff0 */ /* not lifted */ 984 RECOMP_FLAGS_IN(); 985 ecx = eax; /* 0x36109B78: mov ecx, eax */ 986 RECOMP_ICALL(0x361371A0u); /* 0x36109B7A: call 0x361371a0 */ /* not lifted */ 987 RECOMP_FLAGS_IN(); 988 PUSH32(esp, 0x10Cu); /* 0x36109B7F: push 0x10c */ 989 edi = eax; /* 0x36109B84: mov edi, eax */ 990 RECOMP_ICALL(0x3615FD6Au); /* 0x36109B86: call 0x3615fd6a */ /* not lifted */ 991 RECOMP_FLAGS_IN(); 992 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 994 esp = esp + 4; /* 0x36109B8B: add esp, 4 */ 995 _flag_k = FK_ADD; 996 MEM32(ebp + 0x8) = eax; /* 0x36109B8E: mov dword ptr [ebp + 8], eax */ 997 /* cmp eax, ebx */ /* 0x36109B91: cmp eax, ebx */ 998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1000 _flag_k = FK_CMP; 1001 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36109B93: mov byte ptr [ebp - 4], 1 */ 1002 if (CMP_EQ(_flag_a, _flag_b)) goto L_36109BA2; /* 0x36109B97: je 0x36109ba2 */ 1003 L_36109B99: 1004 ecx = eax; /* 0x36109B99: mov ecx, eax */ 1005 RECOMP_ICALL(0x36132920u); /* 0x36109B9B: call 0x36132920 */ /* not lifted */ 1006 RECOMP_FLAGS_IN(); 1007 goto L_36109BA4; /* 0x36109BA0: jmp 0x36109ba4 */ 1008 L_36109BA2: 1009 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1010 eax = 0; /* 0x36109BA2: xor eax, eax */ 1011 _cf = 0; 1012 _flag_k = FK_TEST; 1013 L_36109BA4: 1014 MEM32(esi + 0x20) = eax; /* 0x36109BA4: mov dword ptr [esi + 0x20], eax */ 1015 eax = MEM32(esi + 0x28); /* 0x36109BA7: mov eax, dword ptr [esi + 0x28] */ 1016 edx = eax; /* 0x36109BAA: mov edx, eax */ 1017 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 1018 edx = edx & 2; /* 0x36109BAC: and edx, 2 */ 1019 _cf = 0; 1020 _flag_k = FK_TEST; 1021 /* cmp LO8(edx), 2 */ /* 0x36109BAF: cmp dl, 2 */ 1022 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 1023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1024 _flag_k = FK_NARROW(FK_CMP, 24); 1025 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36109BB2: sete cl */ 1026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1027 eax = eax & 1; /* 0x36109BB5: and eax, 1 */ 1028 _cf = 0; 1029 _flag_k = FK_TEST; 1030 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1031 SET_LO8(eax, LO8(eax) - 1); /* 0x36109BB8: dec al */ 1032 _flag_k = FK_NARROW(FK_DEC, 24); 1033 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1034 _cf = (LO8(eax)) != 0; 1035 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36109BBA: neg al */ 1036 _flag_k = FK_NARROW(FK_CMP, 24); 1037 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36109BBC: sbb al, al */ 1038 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1039 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1040 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1041 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1042 SET_LO8(eax, LO8(eax) + 1); /* 0x36109BBE: inc al */ 1043 _flag_k = FK_NARROW(FK_INC, 24); 1044 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36109BC0: mov byte ptr [ebp - 4], bl */ 1045 PUSH32(esp, ecx); /* 0x36109BC3: push ecx */ 1046 ecx = edi; /* 0x36109BC4: mov ecx, edi */ 1047 PUSH32(esp, eax); /* 0x36109BC6: push eax */ 1048 PUSH32(esp, 7); /* 0x36109BC7: push 7 */ 1049 RECOMP_ICALL(0x36136FE0u); /* 0x36109BC9: call 0x36136fe0 */ /* not lifted */ 1050 RECOMP_FLAGS_IN(); 1051 edx = MEM32(esi + 0x28); /* 0x36109BCE: mov edx, dword ptr [esi + 0x28] */ 1052 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 1053 edx = edx & 4; /* 0x36109BD1: and edx, 4 */ 1054 _cf = 0; 1055 _flag_k = FK_TEST; 1056 PUSH32(esp, eax); /* 0x36109BD4: push eax */ 1057 /* cmp LO8(edx), 4 */ /* 0x36109BD5: cmp dl, 4 */ 1058 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24; 1059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1060 _flag_k = FK_NARROW(FK_CMP, 24); 1061 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36109BD8: sete al */ 1062 ecx = edi; /* 0x36109BDB: mov ecx, edi */ 1063 PUSH32(esp, eax); /* 0x36109BDD: push eax */ 1064 PUSH32(esp, 6); /* 0x36109BDE: push 6 */ 1065 RECOMP_ICALL(0x36137010u); /* 0x36109BE0: call 0x36137010 */ /* not lifted */ 1066 RECOMP_FLAGS_IN(); 1067 PUSH32(esp, ecx); /* 0x36109BE5: push ecx */ 1068 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109BE6: fstp dword ptr [esp] */ 1069 PUSH32(esp, 5); /* 0x36109BE9: push 5 */ 1070 ecx = edi; /* 0x36109BEB: mov ecx, edi */ 1071 RECOMP_ICALL(0x36137010u); /* 0x36109BED: call 0x36137010 */ /* not lifted */ 1072 RECOMP_FLAGS_IN(); 1073 PUSH32(esp, ecx); /* 0x36109BF2: push ecx */ 1074 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109BF3: fstp dword ptr [esp] */ 1075 PUSH32(esp, 4); /* 0x36109BF6: push 4 */ 1076 ecx = edi; /* 0x36109BF8: mov ecx, edi */ 1077 RECOMP_ICALL(0x36137010u); /* 0x36109BFA: call 0x36137010 */ /* not lifted */ 1078 RECOMP_FLAGS_IN(); 1079 PUSH32(esp, ecx); /* 0x36109BFF: push ecx */ 1080 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109C00: fstp dword ptr [esp] */ 1081 PUSH32(esp, 3); /* 0x36109C03: push 3 */ 1082 ecx = edi; /* 0x36109C05: mov ecx, edi */ 1083 RECOMP_ICALL(0x36137010u); /* 0x36109C07: call 0x36137010 */ /* not lifted */ 1084 RECOMP_FLAGS_IN(); 1085 PUSH32(esp, ecx); /* 0x36109C0C: push ecx */ 1086 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109C0D: fstp dword ptr [esp] */ 1087 PUSH32(esp, 2); /* 0x36109C10: push 2 */ 1088 ecx = edi; /* 0x36109C12: mov ecx, edi */ 1089 RECOMP_ICALL(0x36137010u); /* 0x36109C14: call 0x36137010 */ /* not lifted */ 1090 RECOMP_FLAGS_IN(); 1091 PUSH32(esp, ecx); /* 0x36109C19: push ecx */ 1092 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109C1A: fstp dword ptr [esp] */ 1093 PUSH32(esp, 1); /* 0x36109C1D: push 1 */ 1094 ecx = edi; /* 0x36109C1F: mov ecx, edi */ 1095 RECOMP_ICALL(0x36137010u); /* 0x36109C21: call 0x36137010 */ /* not lifted */ 1096 RECOMP_FLAGS_IN(); 1097 PUSH32(esp, ecx); /* 0x36109C26: push ecx */ 1098 ecx = MEM32(ebp + 0xC); /* 0x36109C27: mov ecx, dword ptr [ebp + 0xc] */ 1099 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109C2A: fstp dword ptr [esp] */ 1100 PUSH32(esp, ecx); /* 0x36109C2D: push ecx */ 1101 ecx = MEM32(esi + 0x20); /* 0x36109C2E: mov ecx, dword ptr [esi + 0x20] */ 1102 RECOMP_ICALL(0x36132A30u); /* 0x36109C31: call 0x36132a30 */ /* not lifted */ 1103 RECOMP_FLAGS_IN(); 1104 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1105 _cf = (LO8(eax)) != 0; 1106 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36109C36: neg al */ 1107 _flag_k = FK_NARROW(FK_CMP, 24); 1108 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36109C38: sbb al, al */ 1109 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1110 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1111 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1112 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1113 SET_LO8(eax, LO8(eax) + 1); /* 0x36109C3A: inc al */ 1114 _flag_k = FK_NARROW(FK_INC, 24); 1115 ecx = esi; /* 0x36109C3C: mov ecx, esi */ 1116 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36109C3E: mov byte ptr [esi + 0x14], al */ 1117 RECOMP_ICALL(0x3610A470u); /* 0x36109C41: call 0x3610a470 */ /* not lifted */ 1118 RECOMP_FLAGS_IN(); 1119 ecx = MEM32(ebp + (-0xC)); /* 0x36109C46: mov ecx, dword ptr [ebp - 0xc] */ 1120 edi = POP32_VAL(esp); /* 0x36109C49: pop edi */ 1121 eax = esi; /* 0x36109C4A: mov eax, esi */ 1122 esi = POP32_VAL(esp); /* 0x36109C4C: pop esi */ 1123 ebx = POP32_VAL(esp); /* 0x36109C4D: pop ebx */ 1124 MEM32(FS_BASE + (0)) = ecx; /* 0x36109C4E: mov dword ptr fs:[0], ecx */ 1125 esp = ebp; /* 0x36109C55: mov esp, ebp */ 1126 ebp = POP32_VAL(esp); /* 0x36109C57: pop ebp */ 1127 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36109C58: ret 8 */ 1128 RECOMP_REGS_OUT(); 1129 } 1130 1131 void sub_36109C3E(void) { 1132 int _fpu_cmp = 0; 1133 uint32_t _cf = 0; 1134 int _df = 1; 1135 uint32_t _flag_k = FK_NONE; 1136 uint32_t _flag_a = 0, _flag_b = 0; 1137 uint32_t _itail_tgt = 0; 1138 RECOMP_REGS_LOCALS 1139 RECOMP_ENTER(0x36109C3Eu); 1140 1141 L_36109C3E: 1142 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36109C3E: mov byte ptr [esi + 0x14], al */ 1143 RECOMP_ICALL(0x3610A470u); /* 0x36109C41: call 0x3610a470 */ /* not lifted */ 1144 RECOMP_FLAGS_IN(); 1145 ecx = MEM32(ebp + (-0xC)); /* 0x36109C46: mov ecx, dword ptr [ebp - 0xc] */ 1146 edi = POP32_VAL(esp); /* 0x36109C49: pop edi */ 1147 eax = esi; /* 0x36109C4A: mov eax, esi */ 1148 esi = POP32_VAL(esp); /* 0x36109C4C: pop esi */ 1149 ebx = POP32_VAL(esp); /* 0x36109C4D: pop ebx */ 1150 MEM32(FS_BASE + (0)) = ecx; /* 0x36109C4E: mov dword ptr fs:[0], ecx */ 1151 esp = ebp; /* 0x36109C55: mov esp, ebp */ 1152 ebp = POP32_VAL(esp); /* 0x36109C57: pop ebp */ 1153 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36109C58: ret 8 */ 1154 RECOMP_REGS_OUT(); 1155 } 1156 1157 void sub_36109C60(void) { 1158 int _fpu_cmp = 0; 1159 uint32_t _cf = 0; 1160 int _df = 1; 1161 uint32_t _flag_k = FK_NONE; 1162 uint32_t _flag_a = 0, _flag_b = 0; 1163 uint32_t _itail_tgt = 0; 1164 RECOMP_REGS_LOCALS 1165 RECOMP_ENTER(0x36109C60u); 1166 1167 L_36109C60: 1168 PUSH32(esp, ebp); /* 0x36109C60: push ebp */ 1169 ebp = esp; /* 0x36109C61: mov ebp, esp */ 1170 PUSH32(esp, esi); /* 0x36109C63: push esi */ 1171 esi = ecx; /* 0x36109C64: mov esi, ecx */ 1172 RECOMP_ICALL(0x3610A060u); /* 0x36109C66: call 0x3610a060 */ /* not lifted */ 1173 RECOMP_FLAGS_IN(); 1174 /* test MEM8(ebp + 0x8), 1 */ /* 0x36109C6B: test byte ptr [ebp + 8], 1 */ 1175 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1176 _cf = 0; 1177 _flag_k = FK_NARROW(FK_TEST, 24); 1178 if (TEST_Z(_flag_a, _flag_b)) goto L_36109C7A; /* 0x36109C6F: je 0x36109c7a */ 1179 L_36109C71: 1180 PUSH32(esp, esi); /* 0x36109C71: push esi */ 1181 RECOMP_ICALL(0x3615FCC4u); /* 0x36109C72: call 0x3615fcc4 */ /* not lifted */ 1182 RECOMP_FLAGS_IN(); 1183 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1184 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1185 esp = esp + 4; /* 0x36109C77: add esp, 4 */ 1186 _flag_k = FK_ADD; 1187 L_36109C7A: 1188 eax = esi; /* 0x36109C7A: mov eax, esi */ 1189 esi = POP32_VAL(esp); /* 0x36109C7C: pop esi */ 1190 ebp = POP32_VAL(esp); /* 0x36109C7D: pop ebp */ 1191 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36109C7E: ret 4 */ 1192 RECOMP_REGS_OUT(); 1193 } 1194 1195 void sub_36109C66(void) { 1196 int _fpu_cmp = 0; 1197 uint32_t _cf = 0; 1198 int _df = 1; 1199 uint32_t _flag_k = FK_NONE; 1200 uint32_t _flag_a = 0, _flag_b = 0; 1201 uint32_t _itail_tgt = 0; 1202 RECOMP_REGS_LOCALS 1203 RECOMP_ENTER(0x36109C66u); 1204 1205 L_36109C66: 1206 RECOMP_ICALL(0x3610A060u); /* 0x36109C66: call 0x3610a060 */ /* not lifted */ 1207 RECOMP_FLAGS_IN(); 1208 /* test MEM8(ebp + 0x8), 1 */ /* 0x36109C6B: test byte ptr [ebp + 8], 1 */ 1209 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1210 _cf = 0; 1211 _flag_k = FK_NARROW(FK_TEST, 24); 1212 if (TEST_Z(_flag_a, _flag_b)) goto L_36109C7A; /* 0x36109C6F: je 0x36109c7a */ 1213 L_36109C71: 1214 PUSH32(esp, esi); /* 0x36109C71: push esi */ 1215 RECOMP_ICALL(0x3615FCC4u); /* 0x36109C72: call 0x3615fcc4 */ /* not lifted */ 1216 RECOMP_FLAGS_IN(); 1217 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1218 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1219 esp = esp + 4; /* 0x36109C77: add esp, 4 */ 1220 _flag_k = FK_ADD; 1221 L_36109C7A: 1222 eax = esi; /* 0x36109C7A: mov eax, esi */ 1223 esi = POP32_VAL(esp); /* 0x36109C7C: pop esi */ 1224 ebp = POP32_VAL(esp); /* 0x36109C7D: pop ebp */ 1225 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36109C7E: ret 4 */ 1226 RECOMP_REGS_OUT(); 1227 } 1228 1229 void sub_36109C90(void) { 1230 int _fpu_cmp = 0; 1231 uint32_t _cf = 0; 1232 int _df = 1; 1233 uint32_t _flag_k = FK_NONE; 1234 uint32_t _flag_a = 0, _flag_b = 0; 1235 uint32_t _itail_tgt = 0; 1236 RECOMP_REGS_LOCALS 1237 RECOMP_ENTER(0x36109C90u); 1238 1239 L_36109C90: 1240 PUSH32(esp, ebp); /* 0x36109C90: push ebp */ 1241 ebp = esp; /* 0x36109C91: mov ebp, esp */ 1242 PUSH32(esp, 0xFFFFFFFFu); /* 0x36109C93: push -1 */ 1243 PUSH32(esp, 0x3616A3C3u); /* 0x36109C95: push 0x3616a3c3 */ 1244 eax = MEM32(FS_BASE + (0)); /* 0x36109C9A: mov eax, dword ptr fs:[0] */ 1245 PUSH32(esp, eax); /* 0x36109CA0: push eax */ 1246 MEM32(FS_BASE + (0)) = esp; /* 0x36109CA1: mov dword ptr fs:[0], esp */ 1247 PUSH32(esp, ecx); /* 0x36109CA8: push ecx */ 1248 eax = MEM32(ebp + 0x8); /* 0x36109CA9: mov eax, dword ptr [ebp + 8] */ 1249 PUSH32(esp, ebx); /* 0x36109CAC: push ebx */ 1250 PUSH32(esp, esi); /* 0x36109CAD: push esi */ 1251 PUSH32(esp, edi); /* 0x36109CAE: push edi */ 1252 esi = ecx; /* 0x36109CAF: mov esi, ecx */ 1253 PUSH32(esp, eax); /* 0x36109CB1: push eax */ 1254 MEM32(ebp + (-0x10)) = esi; /* 0x36109CB2: mov dword ptr [ebp - 0x10], esi */ 1255 RECOMP_ICALL(0x360FC270u); /* 0x36109CB5: call 0x360fc270 */ /* not lifted */ 1256 RECOMP_FLAGS_IN(); 1257 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1258 ebx = 0; /* 0x36109CBA: xor ebx, ebx */ 1259 _cf = 0; 1260 _flag_k = FK_TEST; 1261 ecx = esi; /* 0x36109CBC: mov ecx, esi */ 1262 MEM32(ebp + (-0x4)) = ebx; /* 0x36109CBE: mov dword ptr [ebp - 4], ebx */ 1263 MEM32(esi + 0x20) = ebx; /* 0x36109CC1: mov dword ptr [esi + 0x20], ebx */ 1264 MEM32(esi + 0x24) = ebx; /* 0x36109CC4: mov dword ptr [esi + 0x24], ebx */ 1265 MEM32(esi + 0xA0) = ebx; /* 0x36109CC7: mov dword ptr [esi + 0xa0], ebx */ 1266 MEM32(esi) = 0x3617633Cu; /* 0x36109CCD: mov dword ptr [esi], 0x3617633c */ 1267 RECOMP_ICALL(0x3610A280u); /* 0x36109CD3: call 0x3610a280 */ /* not lifted */ 1268 RECOMP_FLAGS_IN(); 1269 ecx = MEM32(esi + 0x4); /* 0x36109CD8: mov ecx, dword ptr [esi + 4] */ 1270 PUSH32(esp, ecx); /* 0x36109CDB: push ecx */ 1271 RECOMP_ICALL(0x360F7B00u); /* 0x36109CDC: call 0x360f7b00 */ /* not lifted */ 1272 RECOMP_FLAGS_IN(); 1273 ecx = eax; /* 0x36109CE1: mov ecx, eax */ 1274 RECOMP_ICALL(0x360FBFF0u); /* 0x36109CE3: call 0x360fbff0 */ /* not lifted */ 1275 RECOMP_FLAGS_IN(); 1276 ecx = eax; /* 0x36109CE8: mov ecx, eax */ 1277 RECOMP_ICALL(0x361371A0u); /* 0x36109CEA: call 0x361371a0 */ /* not lifted */ 1278 RECOMP_FLAGS_IN(); 1279 PUSH32(esp, 0x10Cu); /* 0x36109CEF: push 0x10c */ 1280 edi = eax; /* 0x36109CF4: mov edi, eax */ 1281 RECOMP_ICALL(0x3615FD6Au); /* 0x36109CF6: call 0x3615fd6a */ /* not lifted */ 1282 RECOMP_FLAGS_IN(); 1283 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1285 esp = esp + 4; /* 0x36109CFB: add esp, 4 */ 1286 _flag_k = FK_ADD; 1287 MEM32(ebp + 0x8) = eax; /* 0x36109CFE: mov dword ptr [ebp + 8], eax */ 1288 /* cmp eax, ebx */ /* 0x36109D01: cmp eax, ebx */ 1289 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1291 _flag_k = FK_CMP; 1292 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36109D03: mov byte ptr [ebp - 4], 1 */ 1293 if (CMP_EQ(_flag_a, _flag_b)) goto L_36109D12; /* 0x36109D07: je 0x36109d12 */ 1294 L_36109D09: 1295 ecx = eax; /* 0x36109D09: mov ecx, eax */ 1296 RECOMP_ICALL(0x36132920u); /* 0x36109D0B: call 0x36132920 */ /* not lifted */ 1297 RECOMP_FLAGS_IN(); 1298 goto L_36109D14; /* 0x36109D10: jmp 0x36109d14 */ 1299 L_36109D12: 1300 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1301 eax = 0; /* 0x36109D12: xor eax, eax */ 1302 _cf = 0; 1303 _flag_k = FK_TEST; 1304 L_36109D14: 1305 MEM32(esi + 0x20) = eax; /* 0x36109D14: mov dword ptr [esi + 0x20], eax */ 1306 eax = MEM32(esi + 0x28); /* 0x36109D17: mov eax, dword ptr [esi + 0x28] */ 1307 edx = eax; /* 0x36109D1A: mov edx, eax */ 1308 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 1309 edx = edx & 2; /* 0x36109D1C: and edx, 2 */ 1310 _cf = 0; 1311 _flag_k = FK_TEST; 1312 /* cmp LO8(edx), 2 */ /* 0x36109D1F: cmp dl, 2 */ 1313 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 1314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1315 _flag_k = FK_NARROW(FK_CMP, 24); 1316 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36109D22: sete cl */ 1317 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1318 eax = eax & 1; /* 0x36109D25: and eax, 1 */ 1319 _cf = 0; 1320 _flag_k = FK_TEST; 1321 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1322 SET_LO8(eax, LO8(eax) - 1); /* 0x36109D28: dec al */ 1323 _flag_k = FK_NARROW(FK_DEC, 24); 1324 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1325 _cf = (LO8(eax)) != 0; 1326 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36109D2A: neg al */ 1327 _flag_k = FK_NARROW(FK_CMP, 24); 1328 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36109D2C: sbb al, al */ 1329 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1330 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1331 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1332 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1333 SET_LO8(eax, LO8(eax) + 1); /* 0x36109D2E: inc al */ 1334 _flag_k = FK_NARROW(FK_INC, 24); 1335 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36109D30: mov byte ptr [ebp - 4], bl */ 1336 PUSH32(esp, ecx); /* 0x36109D33: push ecx */ 1337 ecx = edi; /* 0x36109D34: mov ecx, edi */ 1338 PUSH32(esp, eax); /* 0x36109D36: push eax */ 1339 PUSH32(esp, 7); /* 0x36109D37: push 7 */ 1340 RECOMP_ICALL(0x36136FE0u); /* 0x36109D39: call 0x36136fe0 */ /* not lifted */ 1341 RECOMP_FLAGS_IN(); 1342 edx = MEM32(esi + 0x28); /* 0x36109D3E: mov edx, dword ptr [esi + 0x28] */ 1343 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 1344 edx = edx & 4; /* 0x36109D41: and edx, 4 */ 1345 _cf = 0; 1346 _flag_k = FK_TEST; 1347 PUSH32(esp, eax); /* 0x36109D44: push eax */ 1348 /* cmp LO8(edx), 4 */ /* 0x36109D45: cmp dl, 4 */ 1349 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24; 1350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1351 _flag_k = FK_NARROW(FK_CMP, 24); 1352 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36109D48: sete al */ 1353 ecx = edi; /* 0x36109D4B: mov ecx, edi */ 1354 PUSH32(esp, eax); /* 0x36109D4D: push eax */ 1355 PUSH32(esp, 6); /* 0x36109D4E: push 6 */ 1356 RECOMP_ICALL(0x36137010u); /* 0x36109D50: call 0x36137010 */ /* not lifted */ 1357 RECOMP_FLAGS_IN(); 1358 PUSH32(esp, ecx); /* 0x36109D55: push ecx */ 1359 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109D56: fstp dword ptr [esp] */ 1360 PUSH32(esp, 5); /* 0x36109D59: push 5 */ 1361 ecx = edi; /* 0x36109D5B: mov ecx, edi */ 1362 RECOMP_ICALL(0x36137010u); /* 0x36109D5D: call 0x36137010 */ /* not lifted */ 1363 RECOMP_FLAGS_IN(); 1364 PUSH32(esp, ecx); /* 0x36109D62: push ecx */ 1365 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109D63: fstp dword ptr [esp] */ 1366 PUSH32(esp, 4); /* 0x36109D66: push 4 */ 1367 ecx = edi; /* 0x36109D68: mov ecx, edi */ 1368 RECOMP_ICALL(0x36137010u); /* 0x36109D6A: call 0x36137010 */ /* not lifted */ 1369 RECOMP_FLAGS_IN(); 1370 PUSH32(esp, ecx); /* 0x36109D6F: push ecx */ 1371 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109D70: fstp dword ptr [esp] */ 1372 PUSH32(esp, 3); /* 0x36109D73: push 3 */ 1373 ecx = edi; /* 0x36109D75: mov ecx, edi */ 1374 RECOMP_ICALL(0x36137010u); /* 0x36109D77: call 0x36137010 */ /* not lifted */ 1375 RECOMP_FLAGS_IN(); 1376 PUSH32(esp, ecx); /* 0x36109D7C: push ecx */ 1377 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109D7D: fstp dword ptr [esp] */ 1378 PUSH32(esp, 2); /* 0x36109D80: push 2 */ 1379 ecx = edi; /* 0x36109D82: mov ecx, edi */ 1380 RECOMP_ICALL(0x36137010u); /* 0x36109D84: call 0x36137010 */ /* not lifted */ 1381 RECOMP_FLAGS_IN(); 1382 PUSH32(esp, ecx); /* 0x36109D89: push ecx */ 1383 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109D8A: fstp dword ptr [esp] */ 1384 PUSH32(esp, 1); /* 0x36109D8D: push 1 */ 1385 ecx = edi; /* 0x36109D8F: mov ecx, edi */ 1386 RECOMP_ICALL(0x36137010u); /* 0x36109D91: call 0x36137010 */ /* not lifted */ 1387 RECOMP_FLAGS_IN(); 1388 PUSH32(esp, ecx); /* 0x36109D96: push ecx */ 1389 ecx = MEM32(ebp + 0xC); /* 0x36109D97: mov ecx, dword ptr [ebp + 0xc] */ 1390 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109D9A: fstp dword ptr [esp] */ 1391 PUSH32(esp, ecx); /* 0x36109D9D: push ecx */ 1392 ecx = MEM32(esi + 0x20); /* 0x36109D9E: mov ecx, dword ptr [esi + 0x20] */ 1393 RECOMP_ICALL(0x36132BA0u); /* 0x36109DA1: call 0x36132ba0 */ /* not lifted */ 1394 RECOMP_FLAGS_IN(); 1395 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1396 _cf = (LO8(eax)) != 0; 1397 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36109DA6: neg al */ 1398 _flag_k = FK_NARROW(FK_CMP, 24); 1399 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36109DA8: sbb al, al */ 1400 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1401 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1402 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1403 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1404 SET_LO8(eax, LO8(eax) + 1); /* 0x36109DAA: inc al */ 1405 _flag_k = FK_NARROW(FK_INC, 24); 1406 ecx = esi; /* 0x36109DAC: mov ecx, esi */ 1407 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36109DAE: mov byte ptr [esi + 0x14], al */ 1408 RECOMP_ICALL(0x3610A470u); /* 0x36109DB1: call 0x3610a470 */ /* not lifted */ 1409 RECOMP_FLAGS_IN(); 1410 ecx = MEM32(ebp + (-0xC)); /* 0x36109DB6: mov ecx, dword ptr [ebp - 0xc] */ 1411 edi = POP32_VAL(esp); /* 0x36109DB9: pop edi */ 1412 eax = esi; /* 0x36109DBA: mov eax, esi */ 1413 esi = POP32_VAL(esp); /* 0x36109DBC: pop esi */ 1414 ebx = POP32_VAL(esp); /* 0x36109DBD: pop ebx */ 1415 MEM32(FS_BASE + (0)) = ecx; /* 0x36109DBE: mov dword ptr fs:[0], ecx */ 1416 esp = ebp; /* 0x36109DC5: mov esp, ebp */ 1417 ebp = POP32_VAL(esp); /* 0x36109DC7: pop ebp */ 1418 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36109DC8: ret 8 */ 1419 RECOMP_REGS_OUT(); 1420 } 1421 1422 void sub_36109DD0(void) { 1423 int _fpu_cmp = 0; 1424 uint32_t _cf = 0; 1425 int _df = 1; 1426 uint32_t _flag_k = FK_NONE; 1427 uint32_t _flag_a = 0, _flag_b = 0; 1428 uint32_t _itail_tgt = 0; 1429 RECOMP_REGS_LOCALS 1430 RECOMP_ENTER(0x36109DD0u); 1431 1432 L_36109DD0: 1433 PUSH32(esp, ebp); /* 0x36109DD0: push ebp */ 1434 ebp = esp; /* 0x36109DD1: mov ebp, esp */ 1435 PUSH32(esp, 0xFFFFFFFFu); /* 0x36109DD3: push -1 */ 1436 PUSH32(esp, 0x3616A3E3u); /* 0x36109DD5: push 0x3616a3e3 */ 1437 eax = MEM32(FS_BASE + (0)); /* 0x36109DDA: mov eax, dword ptr fs:[0] */ 1438 PUSH32(esp, eax); /* 0x36109DE0: push eax */ 1439 MEM32(FS_BASE + (0)) = esp; /* 0x36109DE1: mov dword ptr fs:[0], esp */ 1440 PUSH32(esp, ecx); /* 0x36109DE8: push ecx */ 1441 eax = MEM32(ebp + 0x8); /* 0x36109DE9: mov eax, dword ptr [ebp + 8] */ 1442 PUSH32(esp, ebx); /* 0x36109DEC: push ebx */ 1443 PUSH32(esp, esi); /* 0x36109DED: push esi */ 1444 PUSH32(esp, edi); /* 0x36109DEE: push edi */ 1445 esi = ecx; /* 0x36109DEF: mov esi, ecx */ 1446 PUSH32(esp, eax); /* 0x36109DF1: push eax */ 1447 MEM32(ebp + (-0x10)) = esi; /* 0x36109DF2: mov dword ptr [ebp - 0x10], esi */ 1448 RECOMP_ICALL(0x360FC270u); /* 0x36109DF5: call 0x360fc270 */ /* not lifted */ 1449 RECOMP_FLAGS_IN(); 1450 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1451 ebx = 0; /* 0x36109DFA: xor ebx, ebx */ 1452 _cf = 0; 1453 _flag_k = FK_TEST; 1454 ecx = esi; /* 0x36109DFC: mov ecx, esi */ 1455 MEM32(ebp + (-0x4)) = ebx; /* 0x36109DFE: mov dword ptr [ebp - 4], ebx */ 1456 MEM32(esi + 0x20) = ebx; /* 0x36109E01: mov dword ptr [esi + 0x20], ebx */ 1457 MEM32(esi + 0x24) = ebx; /* 0x36109E04: mov dword ptr [esi + 0x24], ebx */ 1458 MEM32(esi + 0xA0) = ebx; /* 0x36109E07: mov dword ptr [esi + 0xa0], ebx */ 1459 MEM32(esi) = 0x3617633Cu; /* 0x36109E0D: mov dword ptr [esi], 0x3617633c */ 1460 RECOMP_ICALL(0x3610A280u); /* 0x36109E13: call 0x3610a280 */ /* not lifted */ 1461 RECOMP_FLAGS_IN(); 1462 ecx = MEM32(esi + 0x4); /* 0x36109E18: mov ecx, dword ptr [esi + 4] */ 1463 PUSH32(esp, ecx); /* 0x36109E1B: push ecx */ 1464 RECOMP_ICALL(0x360F7B00u); /* 0x36109E1C: call 0x360f7b00 */ /* not lifted */ 1465 RECOMP_FLAGS_IN(); 1466 ecx = eax; /* 0x36109E21: mov ecx, eax */ 1467 RECOMP_ICALL(0x360FBFF0u); /* 0x36109E23: call 0x360fbff0 */ /* not lifted */ 1468 RECOMP_FLAGS_IN(); 1469 ecx = eax; /* 0x36109E28: mov ecx, eax */ 1470 RECOMP_ICALL(0x361371A0u); /* 0x36109E2A: call 0x361371a0 */ /* not lifted */ 1471 RECOMP_FLAGS_IN(); 1472 PUSH32(esp, 0x10Cu); /* 0x36109E2F: push 0x10c */ 1473 edi = eax; /* 0x36109E34: mov edi, eax */ 1474 RECOMP_ICALL(0x3615FD6Au); /* 0x36109E36: call 0x3615fd6a */ /* not lifted */ 1475 RECOMP_FLAGS_IN(); 1476 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1478 esp = esp + 4; /* 0x36109E3B: add esp, 4 */ 1479 _flag_k = FK_ADD; 1480 MEM32(ebp + 0x8) = eax; /* 0x36109E3E: mov dword ptr [ebp + 8], eax */ 1481 /* cmp eax, ebx */ /* 0x36109E41: cmp eax, ebx */ 1482 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1484 _flag_k = FK_CMP; 1485 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36109E43: mov byte ptr [ebp - 4], 1 */ 1486 if (CMP_EQ(_flag_a, _flag_b)) goto L_36109E52; /* 0x36109E47: je 0x36109e52 */ 1487 L_36109E49: 1488 ecx = eax; /* 0x36109E49: mov ecx, eax */ 1489 RECOMP_ICALL(0x36132920u); /* 0x36109E4B: call 0x36132920 */ /* not lifted */ 1490 RECOMP_FLAGS_IN(); 1491 goto L_36109E54; /* 0x36109E50: jmp 0x36109e54 */ 1492 L_36109E52: 1493 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1494 eax = 0; /* 0x36109E52: xor eax, eax */ 1495 _cf = 0; 1496 _flag_k = FK_TEST; 1497 L_36109E54: 1498 MEM32(esi + 0x20) = eax; /* 0x36109E54: mov dword ptr [esi + 0x20], eax */ 1499 eax = MEM32(esi + 0x28); /* 0x36109E57: mov eax, dword ptr [esi + 0x28] */ 1500 edx = eax; /* 0x36109E5A: mov edx, eax */ 1501 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 1502 edx = edx & 2; /* 0x36109E5C: and edx, 2 */ 1503 _cf = 0; 1504 _flag_k = FK_TEST; 1505 /* cmp LO8(edx), 2 */ /* 0x36109E5F: cmp dl, 2 */ 1506 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 1507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1508 _flag_k = FK_NARROW(FK_CMP, 24); 1509 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36109E62: sete cl */ 1510 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1511 eax = eax & 1; /* 0x36109E65: and eax, 1 */ 1512 _cf = 0; 1513 _flag_k = FK_TEST; 1514 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1515 SET_LO8(eax, LO8(eax) - 1); /* 0x36109E68: dec al */ 1516 _flag_k = FK_NARROW(FK_DEC, 24); 1517 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1518 _cf = (LO8(eax)) != 0; 1519 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36109E6A: neg al */ 1520 _flag_k = FK_NARROW(FK_CMP, 24); 1521 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36109E6C: sbb al, al */ 1522 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1523 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1524 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1525 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1526 SET_LO8(eax, LO8(eax) + 1); /* 0x36109E6E: inc al */ 1527 _flag_k = FK_NARROW(FK_INC, 24); 1528 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36109E70: mov byte ptr [ebp - 4], bl */ 1529 PUSH32(esp, ecx); /* 0x36109E73: push ecx */ 1530 ecx = edi; /* 0x36109E74: mov ecx, edi */ 1531 PUSH32(esp, eax); /* 0x36109E76: push eax */ 1532 PUSH32(esp, 7); /* 0x36109E77: push 7 */ 1533 RECOMP_ICALL(0x36136FE0u); /* 0x36109E79: call 0x36136fe0 */ /* not lifted */ 1534 RECOMP_FLAGS_IN(); 1535 edx = MEM32(esi + 0x28); /* 0x36109E7E: mov edx, dword ptr [esi + 0x28] */ 1536 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 1537 edx = edx & 4; /* 0x36109E81: and edx, 4 */ 1538 _cf = 0; 1539 _flag_k = FK_TEST; 1540 PUSH32(esp, eax); /* 0x36109E84: push eax */ 1541 /* cmp LO8(edx), 4 */ /* 0x36109E85: cmp dl, 4 */ 1542 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24; 1543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1544 _flag_k = FK_NARROW(FK_CMP, 24); 1545 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36109E88: sete al */ 1546 ecx = edi; /* 0x36109E8B: mov ecx, edi */ 1547 PUSH32(esp, eax); /* 0x36109E8D: push eax */ 1548 PUSH32(esp, 6); /* 0x36109E8E: push 6 */ 1549 RECOMP_ICALL(0x36137010u); /* 0x36109E90: call 0x36137010 */ /* not lifted */ 1550 RECOMP_FLAGS_IN(); 1551 PUSH32(esp, ecx); /* 0x36109E95: push ecx */ 1552 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109E96: fstp dword ptr [esp] */ 1553 PUSH32(esp, 5); /* 0x36109E99: push 5 */ 1554 ecx = edi; /* 0x36109E9B: mov ecx, edi */ 1555 RECOMP_ICALL(0x36137010u); /* 0x36109E9D: call 0x36137010 */ /* not lifted */ 1556 RECOMP_FLAGS_IN(); 1557 PUSH32(esp, ecx); /* 0x36109EA2: push ecx */ 1558 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109EA3: fstp dword ptr [esp] */ 1559 PUSH32(esp, 4); /* 0x36109EA6: push 4 */ 1560 ecx = edi; /* 0x36109EA8: mov ecx, edi */ 1561 RECOMP_ICALL(0x36137010u); /* 0x36109EAA: call 0x36137010 */ /* not lifted */ 1562 RECOMP_FLAGS_IN(); 1563 PUSH32(esp, ecx); /* 0x36109EAF: push ecx */ 1564 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109EB0: fstp dword ptr [esp] */ 1565 PUSH32(esp, 3); /* 0x36109EB3: push 3 */ 1566 ecx = edi; /* 0x36109EB5: mov ecx, edi */ 1567 RECOMP_ICALL(0x36137010u); /* 0x36109EB7: call 0x36137010 */ /* not lifted */ 1568 RECOMP_FLAGS_IN(); 1569 PUSH32(esp, ecx); /* 0x36109EBC: push ecx */ 1570 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109EBD: fstp dword ptr [esp] */ 1571 PUSH32(esp, 2); /* 0x36109EC0: push 2 */ 1572 ecx = edi; /* 0x36109EC2: mov ecx, edi */ 1573 RECOMP_ICALL(0x36137010u); /* 0x36109EC4: call 0x36137010 */ /* not lifted */ 1574 RECOMP_FLAGS_IN(); 1575 PUSH32(esp, ecx); /* 0x36109EC9: push ecx */ 1576 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109ECA: fstp dword ptr [esp] */ 1577 PUSH32(esp, 1); /* 0x36109ECD: push 1 */ 1578 ecx = edi; /* 0x36109ECF: mov ecx, edi */ 1579 RECOMP_ICALL(0x36137010u); /* 0x36109ED1: call 0x36137010 */ /* not lifted */ 1580 RECOMP_FLAGS_IN(); 1581 PUSH32(esp, ecx); /* 0x36109ED6: push ecx */ 1582 ecx = MEM32(ebp + 0xC); /* 0x36109ED7: mov ecx, dword ptr [ebp + 0xc] */ 1583 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109EDA: fstp dword ptr [esp] */ 1584 PUSH32(esp, ecx); /* 0x36109EDD: push ecx */ 1585 ecx = MEM32(esi + 0x20); /* 0x36109EDE: mov ecx, dword ptr [esi + 0x20] */ 1586 RECOMP_ICALL(0x36132D20u); /* 0x36109EE1: call 0x36132d20 */ /* not lifted */ 1587 RECOMP_FLAGS_IN(); 1588 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1589 _cf = (LO8(eax)) != 0; 1590 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36109EE6: neg al */ 1591 _flag_k = FK_NARROW(FK_CMP, 24); 1592 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36109EE8: sbb al, al */ 1593 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1594 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1595 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1596 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1597 SET_LO8(eax, LO8(eax) + 1); /* 0x36109EEA: inc al */ 1598 _flag_k = FK_NARROW(FK_INC, 24); 1599 ecx = esi; /* 0x36109EEC: mov ecx, esi */ 1600 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36109EEE: mov byte ptr [esi + 0x14], al */ 1601 RECOMP_ICALL(0x3610A470u); /* 0x36109EF1: call 0x3610a470 */ /* not lifted */ 1602 RECOMP_FLAGS_IN(); 1603 ecx = MEM32(ebp + (-0xC)); /* 0x36109EF6: mov ecx, dword ptr [ebp - 0xc] */ 1604 edi = POP32_VAL(esp); /* 0x36109EF9: pop edi */ 1605 eax = esi; /* 0x36109EFA: mov eax, esi */ 1606 esi = POP32_VAL(esp); /* 0x36109EFC: pop esi */ 1607 ebx = POP32_VAL(esp); /* 0x36109EFD: pop ebx */ 1608 MEM32(FS_BASE + (0)) = ecx; /* 0x36109EFE: mov dword ptr fs:[0], ecx */ 1609 esp = ebp; /* 0x36109F05: mov esp, ebp */ 1610 ebp = POP32_VAL(esp); /* 0x36109F07: pop ebp */ 1611 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36109F08: ret 8 */ 1612 RECOMP_REGS_OUT(); 1613 } 1614 1615 void sub_36109F10(void) { 1616 int _fpu_cmp = 0; 1617 uint32_t _cf = 0; 1618 int _df = 1; 1619 uint32_t _flag_k = FK_NONE; 1620 uint32_t _flag_a = 0, _flag_b = 0; 1621 uint32_t _itail_tgt = 0; 1622 RECOMP_REGS_LOCALS 1623 RECOMP_ENTER(0x36109F10u); 1624 1625 L_36109F10: 1626 PUSH32(esp, ebp); /* 0x36109F10: push ebp */ 1627 ebp = esp; /* 0x36109F11: mov ebp, esp */ 1628 PUSH32(esp, 0xFFFFFFFFu); /* 0x36109F13: push -1 */ 1629 PUSH32(esp, 0x3616A403u); /* 0x36109F15: push 0x3616a403 */ 1630 eax = MEM32(FS_BASE + (0)); /* 0x36109F1A: mov eax, dword ptr fs:[0] */ 1631 PUSH32(esp, eax); /* 0x36109F20: push eax */ 1632 MEM32(FS_BASE + (0)) = esp; /* 0x36109F21: mov dword ptr fs:[0], esp */ 1633 PUSH32(esp, ecx); /* 0x36109F28: push ecx */ 1634 eax = MEM32(ebp + 0x8); /* 0x36109F29: mov eax, dword ptr [ebp + 8] */ 1635 PUSH32(esp, ebx); /* 0x36109F2C: push ebx */ 1636 PUSH32(esp, esi); /* 0x36109F2D: push esi */ 1637 PUSH32(esp, edi); /* 0x36109F2E: push edi */ 1638 esi = ecx; /* 0x36109F2F: mov esi, ecx */ 1639 PUSH32(esp, eax); /* 0x36109F31: push eax */ 1640 MEM32(ebp + (-0x10)) = esi; /* 0x36109F32: mov dword ptr [ebp - 0x10], esi */ 1641 RECOMP_ICALL(0x360FC270u); /* 0x36109F35: call 0x360fc270 */ /* not lifted */ 1642 RECOMP_FLAGS_IN(); 1643 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1644 ebx = 0; /* 0x36109F3A: xor ebx, ebx */ 1645 _cf = 0; 1646 _flag_k = FK_TEST; 1647 ecx = esi; /* 0x36109F3C: mov ecx, esi */ 1648 MEM32(ebp + (-0x4)) = ebx; /* 0x36109F3E: mov dword ptr [ebp - 4], ebx */ 1649 MEM32(esi + 0x20) = ebx; /* 0x36109F41: mov dword ptr [esi + 0x20], ebx */ 1650 MEM32(esi + 0x24) = ebx; /* 0x36109F44: mov dword ptr [esi + 0x24], ebx */ 1651 MEM32(esi + 0xA0) = ebx; /* 0x36109F47: mov dword ptr [esi + 0xa0], ebx */ 1652 MEM32(esi) = 0x3617633Cu; /* 0x36109F4D: mov dword ptr [esi], 0x3617633c */ 1653 RECOMP_ICALL(0x3610A280u); /* 0x36109F53: call 0x3610a280 */ /* not lifted */ 1654 RECOMP_FLAGS_IN(); 1655 ecx = MEM32(esi + 0x4); /* 0x36109F58: mov ecx, dword ptr [esi + 4] */ 1656 PUSH32(esp, ecx); /* 0x36109F5B: push ecx */ 1657 RECOMP_ICALL(0x360F7B00u); /* 0x36109F5C: call 0x360f7b00 */ /* not lifted */ 1658 RECOMP_FLAGS_IN(); 1659 ecx = eax; /* 0x36109F61: mov ecx, eax */ 1660 RECOMP_ICALL(0x360FBFF0u); /* 0x36109F63: call 0x360fbff0 */ /* not lifted */ 1661 RECOMP_FLAGS_IN(); 1662 ecx = eax; /* 0x36109F68: mov ecx, eax */ 1663 RECOMP_ICALL(0x361371A0u); /* 0x36109F6A: call 0x361371a0 */ /* not lifted */ 1664 RECOMP_FLAGS_IN(); 1665 edi = eax; /* 0x36109F6F: mov edi, eax */ 1666 eax = MEM32(ebp + 0x10); /* 0x36109F71: mov eax, dword ptr [ebp + 0x10] */ 1667 /* cmp eax, ebx */ /* 0x36109F74: cmp eax, ebx */ 1668 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1670 _flag_k = FK_CMP; 1671 if (CMP_NE(_flag_a, _flag_b)) goto L_36109F81; /* 0x36109F76: jne 0x36109f81 */ 1672 L_36109F78: 1673 PUSH32(esp, 7); /* 0x36109F78: push 7 */ 1674 ecx = edi; /* 0x36109F7A: mov ecx, edi */ 1675 RECOMP_ICALL(0x36136FE0u); /* 0x36109F7C: call 0x36136fe0 */ /* not lifted */ 1676 RECOMP_FLAGS_IN(); 1677 L_36109F81: 1678 PUSH32(esp, 0x10Cu); /* 0x36109F81: push 0x10c */ 1679 ebx = eax; /* 0x36109F86: mov ebx, eax */ 1680 RECOMP_ICALL(0x3615FD6Au); /* 0x36109F88: call 0x3615fd6a */ /* not lifted */ 1681 RECOMP_FLAGS_IN(); 1682 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1684 esp = esp + 4; /* 0x36109F8D: add esp, 4 */ 1685 _flag_k = FK_ADD; 1686 MEM32(ebp + 0x8) = eax; /* 0x36109F90: mov dword ptr [ebp + 8], eax */ 1687 /* test eax, eax */ /* 0x36109F93: test eax, eax */ 1688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1689 _cf = 0; 1690 _flag_k = FK_TEST; 1691 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36109F95: mov byte ptr [ebp - 4], 1 */ 1692 if (TEST_Z(_flag_a, _flag_b)) goto L_36109FA4; /* 0x36109F99: je 0x36109fa4 */ 1693 L_36109F9B: 1694 ecx = eax; /* 0x36109F9B: mov ecx, eax */ 1695 RECOMP_ICALL(0x36132920u); /* 0x36109F9D: call 0x36132920 */ /* not lifted */ 1696 RECOMP_FLAGS_IN(); 1697 goto L_36109FA6; /* 0x36109FA2: jmp 0x36109fa6 */ 1698 L_36109FA4: 1699 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1700 eax = 0; /* 0x36109FA4: xor eax, eax */ 1701 _cf = 0; 1702 _flag_k = FK_TEST; 1703 L_36109FA6: 1704 MEM32(esi + 0x20) = eax; /* 0x36109FA6: mov dword ptr [esi + 0x20], eax */ 1705 eax = MEM32(esi + 0x28); /* 0x36109FA9: mov eax, dword ptr [esi + 0x28] */ 1706 edx = eax; /* 0x36109FAC: mov edx, eax */ 1707 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 1708 edx = edx & 2; /* 0x36109FAE: and edx, 2 */ 1709 _cf = 0; 1710 _flag_k = FK_TEST; 1711 /* cmp LO8(edx), 2 */ /* 0x36109FB1: cmp dl, 2 */ 1712 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 1713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1714 _flag_k = FK_NARROW(FK_CMP, 24); 1715 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36109FB4: sete cl */ 1716 edx = eax; /* 0x36109FB7: mov edx, eax */ 1717 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1718 edx = edx & 1; /* 0x36109FB9: and edx, 1 */ 1719 _cf = 0; 1720 _flag_k = FK_TEST; 1721 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 1722 SET_LO8(edx, LO8(edx) - 1); /* 0x36109FBC: dec dl */ 1723 _flag_k = FK_NARROW(FK_DEC, 24); 1724 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1725 _cf = (LO8(edx)) != 0; 1726 SET_LO8(edx, (uint32_t)(-(int32_t)LO8(edx))); /* 0x36109FBE: neg dl */ 1727 _flag_k = FK_NARROW(FK_CMP, 24); 1728 { uint32_t _sa = LO8(edx), _sb = LO8(edx), _sc = _cf; /* 0x36109FC0: sbb dl, dl */ 1729 SET_LO8(edx, _sc ? 0xFFFFFFFFu : 0); 1730 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1731 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1732 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1733 eax = eax & 4; /* 0x36109FC2: and eax, 4 */ 1734 _cf = 0; 1735 _flag_k = FK_TEST; 1736 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 1737 SET_LO8(edx, LO8(edx) + 1); /* 0x36109FC5: inc dl */ 1738 _flag_k = FK_NARROW(FK_INC, 24); 1739 PUSH32(esp, ecx); /* 0x36109FC7: push ecx */ 1740 /* cmp LO8(eax), 4 */ /* 0x36109FC8: cmp al, 4 */ 1741 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 1742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1743 _flag_k = FK_NARROW(FK_CMP, 24); 1744 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36109FCA: sete al */ 1745 ecx = edi; /* 0x36109FCD: mov ecx, edi */ 1746 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36109FCF: mov byte ptr [ebp - 4], 0 */ 1747 PUSH32(esp, edx); /* 0x36109FD3: push edx */ 1748 PUSH32(esp, ebx); /* 0x36109FD4: push ebx */ 1749 PUSH32(esp, eax); /* 0x36109FD5: push eax */ 1750 PUSH32(esp, 6); /* 0x36109FD6: push 6 */ 1751 RECOMP_ICALL(0x36137010u); /* 0x36109FD8: call 0x36137010 */ /* not lifted */ 1752 RECOMP_FLAGS_IN(); 1753 PUSH32(esp, ecx); /* 0x36109FDD: push ecx */ 1754 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109FDE: fstp dword ptr [esp] */ 1755 PUSH32(esp, 5); /* 0x36109FE1: push 5 */ 1756 ecx = edi; /* 0x36109FE3: mov ecx, edi */ 1757 RECOMP_ICALL(0x36137010u); /* 0x36109FE5: call 0x36137010 */ /* not lifted */ 1758 RECOMP_FLAGS_IN(); 1759 PUSH32(esp, ecx); /* 0x36109FEA: push ecx */ 1760 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109FEB: fstp dword ptr [esp] */ 1761 PUSH32(esp, 4); /* 0x36109FEE: push 4 */ 1762 ecx = edi; /* 0x36109FF0: mov ecx, edi */ 1763 RECOMP_ICALL(0x36137010u); /* 0x36109FF2: call 0x36137010 */ /* not lifted */ 1764 RECOMP_FLAGS_IN(); 1765 PUSH32(esp, ecx); /* 0x36109FF7: push ecx */ 1766 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36109FF8: fstp dword ptr [esp] */ 1767 PUSH32(esp, 3); /* 0x36109FFB: push 3 */ 1768 ecx = edi; /* 0x36109FFD: mov ecx, edi */ 1769 RECOMP_ICALL(0x36137010u); /* 0x36109FFF: call 0x36137010 */ /* not lifted */ 1770 RECOMP_FLAGS_IN(); 1771 PUSH32(esp, ecx); /* 0x3610A004: push ecx */ 1772 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610A005: fstp dword ptr [esp] */ 1773 PUSH32(esp, 2); /* 0x3610A008: push 2 */ 1774 ecx = edi; /* 0x3610A00A: mov ecx, edi */ 1775 RECOMP_ICALL(0x36137010u); /* 0x3610A00C: call 0x36137010 */ /* not lifted */ 1776 RECOMP_FLAGS_IN(); 1777 PUSH32(esp, ecx); /* 0x3610A011: push ecx */ 1778 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610A012: fstp dword ptr [esp] */ 1779 PUSH32(esp, 1); /* 0x3610A015: push 1 */ 1780 ecx = edi; /* 0x3610A017: mov ecx, edi */ 1781 RECOMP_ICALL(0x36137010u); /* 0x3610A019: call 0x36137010 */ /* not lifted */ 1782 RECOMP_FLAGS_IN(); 1783 PUSH32(esp, ecx); /* 0x3610A01E: push ecx */ 1784 ecx = MEM32(ebp + 0xC); /* 0x3610A01F: mov ecx, dword ptr [ebp + 0xc] */ 1785 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610A022: fstp dword ptr [esp] */ 1786 PUSH32(esp, ecx); /* 0x3610A025: push ecx */ 1787 ecx = MEM32(esi + 0x20); /* 0x3610A026: mov ecx, dword ptr [esi + 0x20] */ 1788 RECOMP_ICALL(0x36132EB0u); /* 0x3610A029: call 0x36132eb0 */ /* not lifted */ 1789 RECOMP_FLAGS_IN(); 1790 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1791 _cf = (LO8(eax)) != 0; 1792 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x3610A02E: neg al */ 1793 _flag_k = FK_NARROW(FK_CMP, 24); 1794 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3610A030: sbb al, al */ 1795 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1796 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1797 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1798 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1799 SET_LO8(eax, LO8(eax) + 1); /* 0x3610A032: inc al */ 1800 _flag_k = FK_NARROW(FK_INC, 24); 1801 ecx = esi; /* 0x3610A034: mov ecx, esi */ 1802 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x3610A036: mov byte ptr [esi + 0x14], al */ 1803 RECOMP_ICALL(0x3610A470u); /* 0x3610A039: call 0x3610a470 */ /* not lifted */ 1804 RECOMP_FLAGS_IN(); 1805 ecx = MEM32(ebp + (-0xC)); /* 0x3610A03E: mov ecx, dword ptr [ebp - 0xc] */ 1806 edi = POP32_VAL(esp); /* 0x3610A041: pop edi */ 1807 eax = esi; /* 0x3610A042: mov eax, esi */ 1808 esi = POP32_VAL(esp); /* 0x3610A044: pop esi */ 1809 ebx = POP32_VAL(esp); /* 0x3610A045: pop ebx */ 1810 MEM32(FS_BASE + (0)) = ecx; /* 0x3610A046: mov dword ptr fs:[0], ecx */ 1811 esp = ebp; /* 0x3610A04D: mov esp, ebp */ 1812 ebp = POP32_VAL(esp); /* 0x3610A04F: pop ebp */ 1813 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3610A050: ret 0xc */ 1814 RECOMP_REGS_OUT(); 1815 } 1816 1817 void sub_3610A060(void) { 1818 int _fpu_cmp = 0; 1819 uint32_t _cf = 0; 1820 int _df = 1; 1821 uint32_t _flag_k = FK_NONE; 1822 uint32_t _flag_a = 0, _flag_b = 0; 1823 uint32_t _itail_tgt = 0; 1824 RECOMP_REGS_LOCALS 1825 RECOMP_ENTER(0x3610A060u); 1826 1827 L_3610A060: 1828 PUSH32(esp, ebp); /* 0x3610A060: push ebp */ 1829 ebp = esp; /* 0x3610A061: mov ebp, esp */ 1830 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610A063: push -1 */ 1831 PUSH32(esp, 0x3616A418u); /* 0x3610A065: push 0x3616a418 */ 1832 eax = MEM32(FS_BASE + (0)); /* 0x3610A06A: mov eax, dword ptr fs:[0] */ 1833 PUSH32(esp, eax); /* 0x3610A070: push eax */ 1834 MEM32(FS_BASE + (0)) = esp; /* 0x3610A071: mov dword ptr fs:[0], esp */ 1835 PUSH32(esp, ecx); /* 0x3610A078: push ecx */ 1836 PUSH32(esp, esi); /* 0x3610A079: push esi */ 1837 esi = ecx; /* 0x3610A07A: mov esi, ecx */ 1838 PUSH32(esp, edi); /* 0x3610A07C: push edi */ 1839 MEM32(ebp + (-0x10)) = esi; /* 0x3610A07D: mov dword ptr [ebp - 0x10], esi */ 1840 MEM32(esi) = 0x3617633Cu; /* 0x3610A080: mov dword ptr [esi], 0x3617633c */ 1841 edi = MEM32(esi + 0x20); /* 0x3610A086: mov edi, dword ptr [esi + 0x20] */ 1842 /* test edi, edi */ /* 0x3610A089: test edi, edi */ 1843 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1844 _cf = 0; 1845 _flag_k = FK_TEST; 1846 MEM32(ebp + (-0x4)) = 0; /* 0x3610A08B: mov dword ptr [ebp - 4], 0 */ 1847 if (TEST_Z(_flag_a, _flag_b)) goto L_3610A0AB; /* 0x3610A092: je 0x3610a0ab */ 1848 L_3610A094: 1849 ecx = edi; /* 0x3610A094: mov ecx, edi */ 1850 RECOMP_ICALL(0x360E2940u); /* 0x3610A096: call 0x360e2940 */ /* not lifted */ 1851 RECOMP_FLAGS_IN(); 1852 PUSH32(esp, edi); /* 0x3610A09B: push edi */ 1853 RECOMP_ICALL(0x3615FCC4u); /* 0x3610A09C: call 0x3615fcc4 */ /* not lifted */ 1854 RECOMP_FLAGS_IN(); 1855 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1857 esp = esp + 4; /* 0x3610A0A1: add esp, 4 */ 1858 _flag_k = FK_ADD; 1859 MEM32(esi + 0x20) = 0; /* 0x3610A0A4: mov dword ptr [esi + 0x20], 0 */ 1860 L_3610A0AB: 1861 ecx = MEM32(esi + 0x24); /* 0x3610A0AB: mov ecx, dword ptr [esi + 0x24] */ 1862 /* test ecx, ecx */ /* 0x3610A0AE: test ecx, ecx */ 1863 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1864 _cf = 0; 1865 _flag_k = FK_TEST; 1866 if (TEST_Z(_flag_a, _flag_b)) goto L_3610A0BF; /* 0x3610A0B0: je 0x3610a0bf */ 1867 L_3610A0B2: 1868 eax = MEM32(ecx); /* 0x3610A0B2: mov eax, dword ptr [ecx] */ 1869 PUSH32(esp, 1); /* 0x3610A0B4: push 1 */ 1870 RECOMP_ICALL(MEM32(eax)); /* 0x3610A0B6: call dword ptr [eax] */ 1871 RECOMP_FLAGS_IN(); 1872 MEM32(esi + 0x24) = 0; /* 0x3610A0B8: mov dword ptr [esi + 0x24], 0 */ 1873 L_3610A0BF: 1874 ecx = esi; /* 0x3610A0BF: mov ecx, esi */ 1875 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610A0C1: mov dword ptr [ebp - 4], 0xffffffff */ 1876 RECOMP_ICALL(0x360FC2F0u); /* 0x3610A0C8: call 0x360fc2f0 */ /* not lifted */ 1877 RECOMP_FLAGS_IN(); 1878 ecx = MEM32(ebp + (-0xC)); /* 0x3610A0CD: mov ecx, dword ptr [ebp - 0xc] */ 1879 edi = POP32_VAL(esp); /* 0x3610A0D0: pop edi */ 1880 esi = POP32_VAL(esp); /* 0x3610A0D1: pop esi */ 1881 MEM32(FS_BASE + (0)) = ecx; /* 0x3610A0D2: mov dword ptr fs:[0], ecx */ 1882 esp = ebp; /* 0x3610A0D9: mov esp, ebp */ 1883 ebp = POP32_VAL(esp); /* 0x3610A0DB: pop ebp */ 1884 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610A0DC: ret */ 1885 RECOMP_REGS_OUT(); 1886 } 1887 1888 void sub_3610A0E0(void) { 1889 int _fpu_cmp = 0; 1890 uint32_t _cf = 0; 1891 int _df = 1; 1892 uint32_t _flag_k = FK_NONE; 1893 uint32_t _flag_a = 0, _flag_b = 0; 1894 uint32_t _itail_tgt = 0; 1895 RECOMP_REGS_LOCALS 1896 RECOMP_ENTER(0x3610A0E0u); 1897 1898 L_3610A0E0: 1899 PUSH32(esp, ebp); /* 0x3610A0E0: push ebp */ 1900 ebp = esp; /* 0x3610A0E1: mov ebp, esp */ 1901 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610A0E3: push -1 */ 1902 PUSH32(esp, 0x3616A439u); /* 0x3610A0E5: push 0x3616a439 */ 1903 eax = MEM32(FS_BASE + (0)); /* 0x3610A0EA: mov eax, dword ptr fs:[0] */ 1904 PUSH32(esp, eax); /* 0x3610A0F0: push eax */ 1905 MEM32(FS_BASE + (0)) = esp; /* 0x3610A0F1: mov dword ptr fs:[0], esp */ 1906 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5Cu); 1907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1908 esp = esp - 0x5Cu; /* 0x3610A0F8: sub esp, 0x5c */ 1909 _flag_k = FK_CMP; 1910 PUSH32(esp, esi); /* 0x3610A0FB: push esi */ 1911 esi = ecx; /* 0x3610A0FC: mov esi, ecx */ 1912 RECOMP_ICALL(0x360FC300u); /* 0x3610A0FE: call 0x360fc300 */ /* not lifted */ 1913 RECOMP_FLAGS_IN(); 1914 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x3610A103: mov al, byte ptr [esi + 0x14] */ 1915 /* test LO8(eax), LO8(eax) */ /* 0x3610A106: test al, al */ 1916 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1917 _cf = 0; 1918 _flag_k = FK_NARROW(FK_TEST, 24); 1919 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610A220; /* 0x3610A108: jne 0x3610a220 */ 1920 L_3610A10E: 1921 ecx = MEM32(esi + 0x20); /* 0x3610A10E: mov ecx, dword ptr [esi + 0x20] */ 1922 RECOMP_ICALL(0x361331E0u); /* 0x3610A111: call 0x361331e0 */ /* not lifted */ 1923 RECOMP_FLAGS_IN(); 1924 /* test LO8(eax), LO8(eax) */ /* 0x3610A116: test al, al */ 1925 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1926 _cf = 0; 1927 _flag_k = FK_NARROW(FK_TEST, 24); 1928 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610A12E; /* 0x3610A118: jne 0x3610a12e */ 1929 L_3610A11A: 1930 eax = MEM32(esi + 0x20); /* 0x3610A11A: mov eax, dword ptr [esi + 0x20] */ 1931 MEM8(eax) = (uint8_t)(0); /* 0x3610A11D: mov byte ptr [eax], 0 */ 1932 fp_push(*(float*)&MEM32(esi + 0x90)); /* 0x3610A120: fld dword ptr [esi + 0x90] */ 1933 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x3610A126: fadd dword ptr [esi + 0xc] */ 1934 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x3610A129: fstp dword ptr [esi + 0x10] */ 1935 goto L_3610A180; /* 0x3610A12C: jmp 0x3610a180 */ 1936 L_3610A12E: 1937 ecx = MEM32(esi + 0x24); /* 0x3610A12E: mov ecx, dword ptr [esi + 0x24] */ 1938 eax = MEM32(ecx + 0x278); /* 0x3610A131: mov eax, dword ptr [ecx + 0x278] */ 1939 /* test eax, eax */ /* 0x3610A137: test eax, eax */ 1940 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1941 _cf = 0; 1942 _flag_k = FK_TEST; 1943 if (TEST_G(_flag_a, _flag_b)) goto L_3610A180; /* 0x3610A139: jg 0x3610a180 */ 1944 L_3610A13B: 1945 fp_push(*(float*)&MEM32(esi + 0xAC)); /* 0x3610A13B: fld dword ptr [esi + 0xac] */ 1946 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610A141: fcomp dword ptr [0x3617040c] */ 1947 fp_pop(); 1948 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610A147: fnstsw ax */ 1949 /* test HI8(eax), 1 */ /* 0x3610A149: test ah, 1 */ 1950 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1951 _cf = 0; 1952 _flag_k = FK_NARROW(FK_TEST, 24); 1953 if (TEST_Z(_flag_a, _flag_b)) goto L_3610A15F; /* 0x3610A14C: je 0x3610a15f */ 1954 L_3610A14E: 1955 fp_push(*(float*)&MEM32(esi + 0x98)); /* 0x3610A14E: fld dword ptr [esi + 0x98] */ 1956 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x3610A154: fadd dword ptr [esi + 0xc] */ 1957 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xAC) = _v; } /* 0x3610A157: fstp dword ptr [esi + 0xac] */ 1958 goto L_3610A180; /* 0x3610A15D: jmp 0x3610a180 */ 1959 L_3610A15F: 1960 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3610A15F: fld dword ptr [esi + 0xc] */ 1961 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xAC)); /* 0x3610A162: fcomp dword ptr [esi + 0xac] */ 1962 fp_pop(); 1963 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610A168: fnstsw ax */ 1964 /* test HI8(eax), 0x41u */ /* 0x3610A16A: test ah, 0x41 */ 1965 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1966 _cf = 0; 1967 _flag_k = FK_NARROW(FK_TEST, 24); 1968 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610A180; /* 0x3610A16D: jne 0x3610a180 */ 1969 L_3610A16F: 1970 ecx = esi; /* 0x3610A16F: mov ecx, esi */ 1971 MEM32(esi + 0xAC) = 0xBF800000u; /* 0x3610A171: mov dword ptr [esi + 0xac], 0xbf800000 */ 1972 RECOMP_ICALL(0x3610AB50u); /* 0x3610A17B: call 0x3610ab50 */ /* not lifted */ 1973 RECOMP_FLAGS_IN(); 1974 L_3610A180: 1975 edx = MEM32(esi + 0x8); /* 0x3610A180: mov edx, dword ptr [esi + 8] */ 1976 ecx = MEM32(esi + 0x24); /* 0x3610A183: mov ecx, dword ptr [esi + 0x24] */ 1977 PUSH32(esp, edi); /* 0x3610A186: push edi */ 1978 PUSH32(esp, edx); /* 0x3610A187: push edx */ 1979 RECOMP_ICALL(MEM32(0x3616F6E4)); /* 0x3610A188: call dword ptr [0x3616f6e4] */ 1980 RECOMP_FLAGS_IN(); 1981 ecx = MEM32(esi + 0x20); /* 0x3610A18E: mov ecx, dword ptr [esi + 0x20] */ 1982 eax = ebp + (-0x18); /* 0x3610A191: lea eax, [ebp - 0x18] */ 1983 PUSH32(esp, eax); /* 0x3610A194: push eax */ 1984 RECOMP_ICALL(0x36133E80u); /* 0x3610A195: call 0x36133e80 */ /* not lifted */ 1985 RECOMP_FLAGS_IN(); 1986 ecx = MEM32(esi + 0x24); /* 0x3610A19A: mov ecx, dword ptr [esi + 0x24] */ 1987 edi = MEM32(eax); /* 0x3610A19D: mov edi, dword ptr [eax] */ 1988 edx = ecx + 0x78; /* 0x3610A19F: lea edx, [ecx + 0x78] */ 1989 MEM32(edx) = edi; /* 0x3610A1A2: mov dword ptr [edx], edi */ 1990 edi = MEM32(eax + 0x4); /* 0x3610A1A4: mov edi, dword ptr [eax + 4] */ 1991 MEM32(edx + 0x4) = edi; /* 0x3610A1A7: mov dword ptr [edx + 4], edi */ 1992 eax = MEM32(eax + 0x8); /* 0x3610A1AA: mov eax, dword ptr [eax + 8] */ 1993 PUSH32(esp, 1); /* 0x3610A1AD: push 1 */ 1994 MEM32(edx + 0x8) = eax; /* 0x3610A1AF: mov dword ptr [edx + 8], eax */ 1995 edx = MEM32(ecx); /* 0x3610A1B2: mov edx, dword ptr [ecx] */ 1996 PUSH32(esp, 1); /* 0x3610A1B4: push 1 */ 1997 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610A1B6: call dword ptr [edx + 0x2c] */ 1998 RECOMP_FLAGS_IN(); 1999 ecx = MEM32(esi + 0x20); /* 0x3610A1B9: mov ecx, dword ptr [esi + 0x20] */ 2000 eax = ebp + (-0x68); /* 0x3610A1BC: lea eax, [ebp - 0x68] */ 2001 PUSH32(esp, eax); /* 0x3610A1BF: push eax */ 2002 RECOMP_ICALL(0x36133DC0u); /* 0x3610A1C0: call 0x36133dc0 */ /* not lifted */ 2003 RECOMP_FLAGS_IN(); 2004 PUSH32(esp, eax); /* 0x3610A1C5: push eax */ 2005 ecx = ebp + (-0x28); /* 0x3610A1C6: lea ecx, [ebp - 0x28] */ 2006 MEM32(ebp + (-0x4)) = 0; /* 0x3610A1C9: mov dword ptr [ebp - 4], 0 */ 2007 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x3610A1D0: call dword ptr [0x361701a4] */ 2008 RECOMP_FLAGS_IN(); 2009 ecx = MEM32(esi + 0x24); /* 0x3610A1D6: mov ecx, dword ptr [esi + 0x24] */ 2010 edi = MEM32(eax); /* 0x3610A1D9: mov edi, dword ptr [eax] */ 2011 edx = ecx + 0x84; /* 0x3610A1DB: lea edx, [ecx + 0x84] */ 2012 MEM32(edx) = edi; /* 0x3610A1E1: mov dword ptr [edx], edi */ 2013 edi = MEM32(eax + 0x4); /* 0x3610A1E3: mov edi, dword ptr [eax + 4] */ 2014 MEM32(edx + 0x4) = edi; /* 0x3610A1E6: mov dword ptr [edx + 4], edi */ 2015 edi = MEM32(eax + 0x8); /* 0x3610A1E9: mov edi, dword ptr [eax + 8] */ 2016 MEM32(edx + 0x8) = edi; /* 0x3610A1EC: mov dword ptr [edx + 8], edi */ 2017 eax = MEM32(eax + 0xC); /* 0x3610A1EF: mov eax, dword ptr [eax + 0xc] */ 2018 PUSH32(esp, 1); /* 0x3610A1F2: push 1 */ 2019 MEM32(edx + 0xC) = eax; /* 0x3610A1F4: mov dword ptr [edx + 0xc], eax */ 2020 edx = MEM32(ecx); /* 0x3610A1F7: mov edx, dword ptr [ecx] */ 2021 PUSH32(esp, 2); /* 0x3610A1F9: push 2 */ 2022 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610A1FB: call dword ptr [edx + 0x2c] */ 2023 RECOMP_FLAGS_IN(); 2024 eax = MEM32(esi + 0x20); /* 0x3610A1FE: mov eax, dword ptr [esi + 0x20] */ 2025 SET_LO8(edx, MEM8(eax + 0x108)); /* 0x3610A201: mov dl, byte ptr [eax + 0x108] */ 2026 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2027 ecx = 0; /* 0x3610A207: xor ecx, ecx */ 2028 _cf = 0; 2029 _flag_k = FK_TEST; 2030 /* test LO8(edx), LO8(edx) */ /* 0x3610A209: test dl, dl */ 2031 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2032 _cf = 0; 2033 _flag_k = FK_NARROW(FK_TEST, 24); 2034 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610A20B: sete cl */ 2035 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610A20E: mov dword ptr [ebp - 4], 0xffffffff */ 2036 PUSH32(esp, ecx); /* 0x3610A215: push ecx */ 2037 ecx = MEM32(esi + 0x24); /* 0x3610A216: mov ecx, dword ptr [esi + 0x24] */ 2038 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x3610A219: call dword ptr [0x3616f620] */ 2039 RECOMP_FLAGS_IN(); 2040 edi = POP32_VAL(esp); /* 0x3610A21F: pop edi */ 2041 L_3610A220: 2042 ecx = MEM32(ebp + (-0xC)); /* 0x3610A220: mov ecx, dword ptr [ebp - 0xc] */ 2043 esi = POP32_VAL(esp); /* 0x3610A223: pop esi */ 2044 MEM32(FS_BASE + (0)) = ecx; /* 0x3610A224: mov dword ptr fs:[0], ecx */ 2045 esp = ebp; /* 0x3610A22B: mov esp, ebp */ 2046 ebp = POP32_VAL(esp); /* 0x3610A22D: pop ebp */ 2047 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610A22E: ret */ 2048 RECOMP_REGS_OUT(); 2049 } 2050 2051 void sub_3610A230(void) { 2052 int _fpu_cmp = 0; 2053 uint32_t _cf = 0; 2054 int _df = 1; 2055 uint32_t _flag_k = FK_NONE; 2056 uint32_t _flag_a = 0, _flag_b = 0; 2057 uint32_t _itail_tgt = 0; 2058 RECOMP_REGS_LOCALS 2059 RECOMP_ENTER(0x3610A230u); 2060 2061 L_3610A230: 2062 fp_push(*(float*)&MEM32(ecx + 0x90)); /* 0x3610A230: fld dword ptr [ecx + 0x90] */ 2063 _st[0] += (double)*(float*)ADDR(ecx + 0xC); /* 0x3610A236: fadd dword ptr [ecx + 0xc] */ 2064 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x10) = _v; } /* 0x3610A239: fstp dword ptr [ecx + 0x10] */ 2065 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610A23C: ret */ 2066 RECOMP_REGS_OUT(); 2067 } 2068 2069 void sub_3610A240(void) { 2070 int _fpu_cmp = 0; 2071 uint32_t _cf = 0; 2072 int _df = 1; 2073 uint32_t _flag_k = FK_NONE; 2074 uint32_t _flag_a = 0, _flag_b = 0; 2075 uint32_t _itail_tgt = 0; 2076 RECOMP_REGS_LOCALS 2077 RECOMP_ENTER(0x3610A240u); 2078 2079 L_3610A240: 2080 PUSH32(esp, ebp); /* 0x3610A240: push ebp */ 2081 ebp = esp; /* 0x3610A241: mov ebp, esp */ 2082 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3610A243: fld dword ptr [ebp + 8] */ 2083 _st[0] *= (double)*(float*)ADDR(0x361729C8); /* 0x3610A246: fmul dword ptr [0x361729c8] */ 2084 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x90) = _v; } /* 0x3610A24C: fstp dword ptr [ecx + 0x90] */ 2085 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3610A252: fld dword ptr [ebp + 8] */ 2086 _st[0] *= (double)*(float*)ADDR(0x36170F04); /* 0x3610A255: fmul dword ptr [0x36170f04] */ 2087 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x98) = _v; } /* 0x3610A25B: fstp dword ptr [ecx + 0x98] */ 2088 ebp = POP32_VAL(esp); /* 0x3610A261: pop ebp */ 2089 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610A262: ret 4 */ 2090 RECOMP_REGS_OUT(); 2091 } 2092 2093 void sub_3610A270(void) { 2094 int _fpu_cmp = 0; 2095 uint32_t _cf = 0; 2096 int _df = 1; 2097 uint32_t _flag_k = FK_NONE; 2098 uint32_t _flag_a = 0, _flag_b = 0; 2099 uint32_t _itail_tgt = 0; 2100 RECOMP_REGS_LOCALS 2101 RECOMP_ENTER(0x3610A270u); 2102 2103 L_3610A270: 2104 PUSH32(esp, ebp); /* 0x3610A270: push ebp */ 2105 ebp = esp; /* 0x3610A271: mov ebp, esp */ 2106 eax = MEM32(ebp + 0x8); /* 0x3610A273: mov eax, dword ptr [ebp + 8] */ 2107 MEM32(ecx + 0x9C) = eax; /* 0x3610A276: mov dword ptr [ecx + 0x9c], eax */ 2108 ebp = POP32_VAL(esp); /* 0x3610A27C: pop ebp */ 2109 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610A27D: ret 4 */ 2110 RECOMP_REGS_OUT(); 2111 } 2112 2113 void sub_3610A280(void) { 2114 int _fpu_cmp = 0; 2115 uint32_t _cf = 0; 2116 int _df = 1; 2117 uint32_t _flag_k = FK_NONE; 2118 uint32_t _flag_a = 0, _flag_b = 0; 2119 uint32_t _itail_tgt = 0; 2120 RECOMP_REGS_LOCALS 2121 RECOMP_ENTER(0x3610A280u); 2122 2123 L_3610A280: 2124 PUSH32(esp, esi); /* 0x3610A280: push esi */ 2125 esi = ecx; /* 0x3610A281: mov esi, ecx */ 2126 eax = MEM32(esi + 0x4); /* 0x3610A283: mov eax, dword ptr [esi + 4] */ 2127 PUSH32(esp, edi); /* 0x3610A286: push edi */ 2128 PUSH32(esp, eax); /* 0x3610A287: push eax */ 2129 RECOMP_ICALL(0x360F7B00u); /* 0x3610A288: call 0x360f7b00 */ /* not lifted */ 2130 RECOMP_FLAGS_IN(); 2131 ecx = eax; /* 0x3610A28D: mov ecx, eax */ 2132 RECOMP_ICALL(0x360FBFF0u); /* 0x3610A28F: call 0x360fbff0 */ /* not lifted */ 2133 RECOMP_FLAGS_IN(); 2134 ecx = eax; /* 0x3610A294: mov ecx, eax */ 2135 RECOMP_ICALL(0x361371A0u); /* 0x3610A296: call 0x361371a0 */ /* not lifted */ 2136 RECOMP_FLAGS_IN(); 2137 edi = eax; /* 0x3610A29B: mov edi, eax */ 2138 PUSH32(esp, 0); /* 0x3610A29D: push 0 */ 2139 ecx = edi; /* 0x3610A29F: mov ecx, edi */ 2140 RECOMP_ICALL(0x36136FE0u); /* 0x3610A2A1: call 0x36136fe0 */ /* not lifted */ 2141 RECOMP_FLAGS_IN(); 2142 PUSH32(esp, 8); /* 0x3610A2A6: push 8 */ 2143 ecx = edi; /* 0x3610A2A8: mov ecx, edi */ 2144 MEM32(esi + 0x28) = eax; /* 0x3610A2AA: mov dword ptr [esi + 0x28], eax */ 2145 RECOMP_ICALL(0x36137010u); /* 0x3610A2AD: call 0x36137010 */ /* not lifted */ 2146 RECOMP_FLAGS_IN(); 2147 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x3610A2B2: fstp dword ptr [esi + 0x10] */ 2148 PUSH32(esp, 9); /* 0x3610A2B5: push 9 */ 2149 ecx = edi; /* 0x3610A2B7: mov ecx, edi */ 2150 RECOMP_ICALL(0x36136FE0u); /* 0x3610A2B9: call 0x36136fe0 */ /* not lifted */ 2151 RECOMP_FLAGS_IN(); 2152 PUSH32(esp, 0xAu); /* 0x3610A2BE: push 0xa */ 2153 ecx = edi; /* 0x3610A2C0: mov ecx, edi */ 2154 MEM32(esi + 0x2C) = eax; /* 0x3610A2C2: mov dword ptr [esi + 0x2c], eax */ 2155 RECOMP_ICALL(0x36137010u); /* 0x3610A2C5: call 0x36137010 */ /* not lifted */ 2156 RECOMP_FLAGS_IN(); 2157 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x3610A2CA: fstp dword ptr [esi + 0x30] */ 2158 PUSH32(esp, 0xBu); /* 0x3610A2CD: push 0xb */ 2159 ecx = edi; /* 0x3610A2CF: mov ecx, edi */ 2160 RECOMP_ICALL(0x36137010u); /* 0x3610A2D1: call 0x36137010 */ /* not lifted */ 2161 RECOMP_FLAGS_IN(); 2162 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x34) = _v; } /* 0x3610A2D6: fstp dword ptr [esi + 0x34] */ 2163 PUSH32(esp, 0xCu); /* 0x3610A2D9: push 0xc */ 2164 ecx = edi; /* 0x3610A2DB: mov ecx, edi */ 2165 RECOMP_ICALL(0x36137010u); /* 0x3610A2DD: call 0x36137010 */ /* not lifted */ 2166 RECOMP_FLAGS_IN(); 2167 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x38) = _v; } /* 0x3610A2E2: fstp dword ptr [esi + 0x38] */ 2168 PUSH32(esp, 0xDu); /* 0x3610A2E5: push 0xd */ 2169 ecx = edi; /* 0x3610A2E7: mov ecx, edi */ 2170 RECOMP_ICALL(0x36137010u); /* 0x3610A2E9: call 0x36137010 */ /* not lifted */ 2171 RECOMP_FLAGS_IN(); 2172 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3C) = _v; } /* 0x3610A2EE: fstp dword ptr [esi + 0x3c] */ 2173 PUSH32(esp, 0xEu); /* 0x3610A2F1: push 0xe */ 2174 ecx = edi; /* 0x3610A2F3: mov ecx, edi */ 2175 RECOMP_ICALL(0x36137010u); /* 0x3610A2F5: call 0x36137010 */ /* not lifted */ 2176 RECOMP_FLAGS_IN(); 2177 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x40) = _v; } /* 0x3610A2FA: fstp dword ptr [esi + 0x40] */ 2178 PUSH32(esp, 0xFu); /* 0x3610A2FD: push 0xf */ 2179 ecx = edi; /* 0x3610A2FF: mov ecx, edi */ 2180 RECOMP_ICALL(0x36137010u); /* 0x3610A301: call 0x36137010 */ /* not lifted */ 2181 RECOMP_FLAGS_IN(); 2182 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x44) = _v; } /* 0x3610A306: fstp dword ptr [esi + 0x44] */ 2183 PUSH32(esp, 0x10u); /* 0x3610A309: push 0x10 */ 2184 ecx = edi; /* 0x3610A30B: mov ecx, edi */ 2185 RECOMP_ICALL(0x36137010u); /* 0x3610A30D: call 0x36137010 */ /* not lifted */ 2186 RECOMP_FLAGS_IN(); 2187 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x48) = _v; } /* 0x3610A312: fstp dword ptr [esi + 0x48] */ 2188 PUSH32(esp, 0x11u); /* 0x3610A315: push 0x11 */ 2189 ecx = edi; /* 0x3610A317: mov ecx, edi */ 2190 RECOMP_ICALL(0x36137010u); /* 0x3610A319: call 0x36137010 */ /* not lifted */ 2191 RECOMP_FLAGS_IN(); 2192 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4C) = _v; } /* 0x3610A31E: fstp dword ptr [esi + 0x4c] */ 2193 PUSH32(esp, 0x12u); /* 0x3610A321: push 0x12 */ 2194 ecx = edi; /* 0x3610A323: mov ecx, edi */ 2195 RECOMP_ICALL(0x36137010u); /* 0x3610A325: call 0x36137010 */ /* not lifted */ 2196 RECOMP_FLAGS_IN(); 2197 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x50) = _v; } /* 0x3610A32A: fstp dword ptr [esi + 0x50] */ 2198 PUSH32(esp, 0x13u); /* 0x3610A32D: push 0x13 */ 2199 ecx = edi; /* 0x3610A32F: mov ecx, edi */ 2200 RECOMP_ICALL(0x36137010u); /* 0x3610A331: call 0x36137010 */ /* not lifted */ 2201 RECOMP_FLAGS_IN(); 2202 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x54) = _v; } /* 0x3610A336: fstp dword ptr [esi + 0x54] */ 2203 PUSH32(esp, 0x14u); /* 0x3610A339: push 0x14 */ 2204 ecx = edi; /* 0x3610A33B: mov ecx, edi */ 2205 RECOMP_ICALL(0x36137010u); /* 0x3610A33D: call 0x36137010 */ /* not lifted */ 2206 RECOMP_FLAGS_IN(); 2207 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x58) = _v; } /* 0x3610A342: fstp dword ptr [esi + 0x58] */ 2208 PUSH32(esp, 0x15u); /* 0x3610A345: push 0x15 */ 2209 ecx = edi; /* 0x3610A347: mov ecx, edi */ 2210 RECOMP_ICALL(0x36137010u); /* 0x3610A349: call 0x36137010 */ /* not lifted */ 2211 RECOMP_FLAGS_IN(); 2212 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x5C) = _v; } /* 0x3610A34E: fstp dword ptr [esi + 0x5c] */ 2213 PUSH32(esp, 0x16u); /* 0x3610A351: push 0x16 */ 2214 ecx = edi; /* 0x3610A353: mov ecx, edi */ 2215 RECOMP_ICALL(0x36137010u); /* 0x3610A355: call 0x36137010 */ /* not lifted */ 2216 RECOMP_FLAGS_IN(); 2217 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x60) = _v; } /* 0x3610A35A: fstp dword ptr [esi + 0x60] */ 2218 PUSH32(esp, 0x17u); /* 0x3610A35D: push 0x17 */ 2219 ecx = edi; /* 0x3610A35F: mov ecx, edi */ 2220 RECOMP_ICALL(0x36137010u); /* 0x3610A361: call 0x36137010 */ /* not lifted */ 2221 RECOMP_FLAGS_IN(); 2222 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x64) = _v; } /* 0x3610A366: fstp dword ptr [esi + 0x64] */ 2223 PUSH32(esp, 0x18u); /* 0x3610A369: push 0x18 */ 2224 ecx = edi; /* 0x3610A36B: mov ecx, edi */ 2225 RECOMP_ICALL(0x36136FE0u); /* 0x3610A36D: call 0x36136fe0 */ /* not lifted */ 2226 RECOMP_FLAGS_IN(); 2227 PUSH32(esp, 0x19u); /* 0x3610A372: push 0x19 */ 2228 ecx = edi; /* 0x3610A374: mov ecx, edi */ 2229 MEM32(esi + 0x68) = eax; /* 0x3610A376: mov dword ptr [esi + 0x68], eax */ 2230 RECOMP_ICALL(0x36137010u); /* 0x3610A379: call 0x36137010 */ /* not lifted */ 2231 RECOMP_FLAGS_IN(); 2232 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x6C) = _v; } /* 0x3610A37E: fstp dword ptr [esi + 0x6c] */ 2233 PUSH32(esp, 0x1Au); /* 0x3610A381: push 0x1a */ 2234 ecx = edi; /* 0x3610A383: mov ecx, edi */ 2235 RECOMP_ICALL(0x36137010u); /* 0x3610A385: call 0x36137010 */ /* not lifted */ 2236 RECOMP_FLAGS_IN(); 2237 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x70) = _v; } /* 0x3610A38A: fstp dword ptr [esi + 0x70] */ 2238 PUSH32(esp, 0x1Bu); /* 0x3610A38D: push 0x1b */ 2239 ecx = edi; /* 0x3610A38F: mov ecx, edi */ 2240 RECOMP_ICALL(0x36137010u); /* 0x3610A391: call 0x36137010 */ /* not lifted */ 2241 RECOMP_FLAGS_IN(); 2242 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x74) = _v; } /* 0x3610A396: fstp dword ptr [esi + 0x74] */ 2243 PUSH32(esp, 0x1Cu); /* 0x3610A399: push 0x1c */ 2244 ecx = edi; /* 0x3610A39B: mov ecx, edi */ 2245 RECOMP_ICALL(0x36137010u); /* 0x3610A39D: call 0x36137010 */ /* not lifted */ 2246 RECOMP_FLAGS_IN(); 2247 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x78) = _v; } /* 0x3610A3A2: fstp dword ptr [esi + 0x78] */ 2248 PUSH32(esp, 0x1Du); /* 0x3610A3A5: push 0x1d */ 2249 ecx = edi; /* 0x3610A3A7: mov ecx, edi */ 2250 RECOMP_ICALL(0x36137010u); /* 0x3610A3A9: call 0x36137010 */ /* not lifted */ 2251 RECOMP_FLAGS_IN(); 2252 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x7C) = _v; } /* 0x3610A3AE: fstp dword ptr [esi + 0x7c] */ 2253 PUSH32(esp, 0x1Eu); /* 0x3610A3B1: push 0x1e */ 2254 ecx = edi; /* 0x3610A3B3: mov ecx, edi */ 2255 RECOMP_ICALL(0x36137010u); /* 0x3610A3B5: call 0x36137010 */ /* not lifted */ 2256 RECOMP_FLAGS_IN(); 2257 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x80) = _v; } /* 0x3610A3BA: fstp dword ptr [esi + 0x80] */ 2258 PUSH32(esp, 0x1Fu); /* 0x3610A3C0: push 0x1f */ 2259 ecx = edi; /* 0x3610A3C2: mov ecx, edi */ 2260 RECOMP_ICALL(0x36136FE0u); /* 0x3610A3C4: call 0x36136fe0 */ /* not lifted */ 2261 RECOMP_FLAGS_IN(); 2262 PUSH32(esp, 0x20u); /* 0x3610A3C9: push 0x20 */ 2263 ecx = edi; /* 0x3610A3CB: mov ecx, edi */ 2264 MEM32(esi + 0x84) = eax; /* 0x3610A3CD: mov dword ptr [esi + 0x84], eax */ 2265 RECOMP_ICALL(0x36137010u); /* 0x3610A3D3: call 0x36137010 */ /* not lifted */ 2266 RECOMP_FLAGS_IN(); 2267 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x88) = _v; } /* 0x3610A3D8: fstp dword ptr [esi + 0x88] */ 2268 PUSH32(esp, 0x21u); /* 0x3610A3DE: push 0x21 */ 2269 ecx = edi; /* 0x3610A3E0: mov ecx, edi */ 2270 RECOMP_ICALL(0x36137010u); /* 0x3610A3E2: call 0x36137010 */ /* not lifted */ 2271 RECOMP_FLAGS_IN(); 2272 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8C) = _v; } /* 0x3610A3E7: fstp dword ptr [esi + 0x8c] */ 2273 PUSH32(esp, 0x22u); /* 0x3610A3ED: push 0x22 */ 2274 ecx = edi; /* 0x3610A3EF: mov ecx, edi */ 2275 RECOMP_ICALL(0x36137010u); /* 0x3610A3F1: call 0x36137010 */ /* not lifted */ 2276 RECOMP_FLAGS_IN(); 2277 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x90) = _v; } /* 0x3610A3F6: fstp dword ptr [esi + 0x90] */ 2278 PUSH32(esp, 0x23u); /* 0x3610A3FC: push 0x23 */ 2279 ecx = edi; /* 0x3610A3FE: mov ecx, edi */ 2280 RECOMP_ICALL(0x36137010u); /* 0x3610A400: call 0x36137010 */ /* not lifted */ 2281 RECOMP_FLAGS_IN(); 2282 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x94) = _v; } /* 0x3610A405: fstp dword ptr [esi + 0x94] */ 2283 PUSH32(esp, 0x24u); /* 0x3610A40B: push 0x24 */ 2284 ecx = edi; /* 0x3610A40D: mov ecx, edi */ 2285 RECOMP_ICALL(0x36137010u); /* 0x3610A40F: call 0x36137010 */ /* not lifted */ 2286 RECOMP_FLAGS_IN(); 2287 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x98) = _v; } /* 0x3610A414: fstp dword ptr [esi + 0x98] */ 2288 PUSH32(esp, 0x25u); /* 0x3610A41A: push 0x25 */ 2289 ecx = edi; /* 0x3610A41C: mov ecx, edi */ 2290 RECOMP_ICALL(0x36136FE0u); /* 0x3610A41E: call 0x36136fe0 */ /* not lifted */ 2291 RECOMP_FLAGS_IN(); 2292 fp_push(*(float*)&MEM32(esi + 0x98)); /* 0x3610A423: fld dword ptr [esi + 0x98] */ 2293 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610A429: fcomp dword ptr [0x3617040c] */ 2294 fp_pop(); 2295 ecx = eax; /* 0x3610A42F: mov ecx, eax */ 2296 MEM32(esi + 0x9C) = ecx; /* 0x3610A431: mov dword ptr [esi + 0x9c], ecx */ 2297 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610A437: fnstsw ax */ 2298 /* test HI8(eax), 1 */ /* 0x3610A439: test ah, 1 */ 2299 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2300 _cf = 0; 2301 _flag_k = FK_NARROW(FK_TEST, 24); 2302 if (TEST_Z(_flag_a, _flag_b)) goto L_3610A448; /* 0x3610A43C: je 0x3610a448 */ 2303 L_3610A43E: 2304 MEM32(esi + 0x98) = 0; /* 0x3610A43E: mov dword ptr [esi + 0x98], 0 */ 2305 L_3610A448: 2306 /* cmp ecx, 1 */ /* 0x3610A448: cmp ecx, 1 */ 2307 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2309 _flag_k = FK_CMP; 2310 if (CMP_GE(_flag_a, _flag_b)) goto L_3610A457; /* 0x3610A44B: jge 0x3610a457 */ 2311 L_3610A44D: 2312 MEM32(esi + 0x9C) = 1; /* 0x3610A44D: mov dword ptr [esi + 0x9c], 1 */ 2313 L_3610A457: 2314 edi = POP32_VAL(esp); /* 0x3610A457: pop edi */ 2315 MEM32(esi + 0xAC) = 0xBF800000u; /* 0x3610A458: mov dword ptr [esi + 0xac], 0xbf800000 */ 2316 esi = POP32_VAL(esp); /* 0x3610A462: pop esi */ 2317 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610A463: ret */ 2318 RECOMP_REGS_OUT(); 2319 } 2320 2321 void sub_3610A470(void) { 2322 int _fpu_cmp = 0; 2323 uint32_t _cf = 0; 2324 int _df = 1; 2325 uint32_t _flag_k = FK_NONE; 2326 uint32_t _flag_a = 0, _flag_b = 0; 2327 uint32_t _itail_tgt = 0; 2328 RECOMP_REGS_LOCALS 2329 RECOMP_ENTER(0x3610A470u); 2330 2331 L_3610A470: 2332 PUSH32(esp, ebp); /* 0x3610A470: push ebp */ 2333 ebp = esp; /* 0x3610A471: mov ebp, esp */ 2334 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610A473: push -1 */ 2335 PUSH32(esp, 0x3616A467u); /* 0x3610A475: push 0x3616a467 */ 2336 eax = MEM32(FS_BASE + (0)); /* 0x3610A47A: mov eax, dword ptr fs:[0] */ 2337 PUSH32(esp, eax); /* 0x3610A480: push eax */ 2338 MEM32(FS_BASE + (0)) = esp; /* 0x3610A481: mov dword ptr fs:[0], esp */ 2339 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xB0u); 2340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2341 esp = esp - 0xB0u; /* 0x3610A488: sub esp, 0xb0 */ 2342 _flag_k = FK_CMP; 2343 PUSH32(esp, esi); /* 0x3610A48E: push esi */ 2344 PUSH32(esp, edi); /* 0x3610A48F: push edi */ 2345 PUSH32(esp, 0x27Cu); /* 0x3610A490: push 0x27c */ 2346 esi = ecx; /* 0x3610A495: mov esi, ecx */ 2347 RECOMP_ICALL(0x3615FD6Au); /* 0x3610A497: call 0x3615fd6a */ /* not lifted */ 2348 RECOMP_FLAGS_IN(); 2349 edi = eax; /* 0x3610A49C: mov edi, eax */ 2350 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2352 esp = esp + 4; /* 0x3610A49E: add esp, 4 */ 2353 _flag_k = FK_ADD; 2354 MEM32(ebp + (-0x24)) = edi; /* 0x3610A4A1: mov dword ptr [ebp - 0x24], edi */ 2355 /* test edi, edi */ /* 0x3610A4A4: test edi, edi */ 2356 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2357 _cf = 0; 2358 _flag_k = FK_TEST; 2359 MEM32(ebp + (-0x4)) = 0; /* 0x3610A4A6: mov dword ptr [ebp - 4], 0 */ 2360 if (TEST_Z(_flag_a, _flag_b)) goto L_3610A504; /* 0x3610A4AD: je 0x3610a504 */ 2361 L_3610A4AF: 2362 eax = MEM32(esi + 0x2C); /* 0x3610A4AF: mov eax, dword ptr [esi + 0x2c] */ 2363 PUSH32(esp, 1); /* 0x3610A4B2: push 1 */ 2364 PUSH32(esp, 0); /* 0x3610A4B4: push 0 */ 2365 PUSH32(esp, eax); /* 0x3610A4B6: push eax */ 2366 RECOMP_ICALL(0x360F7B00u); /* 0x3610A4B7: call 0x360f7b00 */ /* not lifted */ 2367 RECOMP_FLAGS_IN(); 2368 ecx = eax; /* 0x3610A4BC: mov ecx, eax */ 2369 RECOMP_ICALL(0x360FBE40u); /* 0x3610A4BE: call 0x360fbe40 */ /* not lifted */ 2370 RECOMP_FLAGS_IN(); 2371 PUSH32(esp, eax); /* 0x3610A4C3: push eax */ 2372 ecx = edi; /* 0x3610A4C4: mov ecx, edi */ 2373 RECOMP_ICALL(MEM32(0x3616F6F8)); /* 0x3610A4C6: call dword ptr [0x3616f6f8] */ 2374 RECOMP_FLAGS_IN(); 2375 MEM32(edi) = 0x361762E4u; /* 0x3610A4CC: mov dword ptr [edi], 0x361762e4 */ 2376 MEM32(edi + 0x8) = 0x361762D4u; /* 0x3610A4D2: mov dword ptr [edi + 8], 0x361762d4 */ 2377 MEM32(edi + 0x20) = 0x361762C4u; /* 0x3610A4D9: mov dword ptr [edi + 0x20], 0x361762c4 */ 2378 MEM32(edi + 0x38) = 0x361762B4u; /* 0x3610A4E0: mov dword ptr [edi + 0x38], 0x361762b4 */ 2379 MEM32(edi + 0x50) = 0x361762A4u; /* 0x3610A4E7: mov dword ptr [edi + 0x50], 0x361762a4 */ 2380 MEM32(edi + 0x138) = 0x36176294u; /* 0x3610A4EE: mov dword ptr [edi + 0x138], 0x36176294 */ 2381 MEM32(edi + 0x150) = 0x36176284u; /* 0x3610A4F8: mov dword ptr [edi + 0x150], 0x36176284 */ 2382 goto L_3610A506; /* 0x3610A502: jmp 0x3610a506 */ 2383 L_3610A504: 2384 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2385 edi = 0; /* 0x3610A504: xor edi, edi */ 2386 _cf = 0; 2387 _flag_k = FK_TEST; 2388 L_3610A506: 2389 ecx = MEM32(esi + 0x2C); /* 0x3610A506: mov ecx, dword ptr [esi + 0x2c] */ 2390 PUSH32(esp, ecx); /* 0x3610A509: push ecx */ 2391 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610A50A: mov dword ptr [ebp - 4], 0xffffffff */ 2392 MEM32(esi + 0x24) = edi; /* 0x3610A511: mov dword ptr [esi + 0x24], edi */ 2393 RECOMP_ICALL(0x360F7B00u); /* 0x3610A514: call 0x360f7b00 */ /* not lifted */ 2394 RECOMP_FLAGS_IN(); 2395 ecx = eax; /* 0x3610A519: mov ecx, eax */ 2396 RECOMP_ICALL(0x360FBE60u); /* 0x3610A51B: call 0x360fbe60 */ /* not lifted */ 2397 RECOMP_FLAGS_IN(); 2398 ecx = MEM32(esi + 0x24); /* 0x3610A520: mov ecx, dword ptr [esi + 0x24] */ 2399 MEM32(ecx + 0x1E0) = eax; /* 0x3610A523: mov dword ptr [ecx + 0x1e0], eax */ 2400 edx = MEM32(esi + 0x2C); /* 0x3610A529: mov edx, dword ptr [esi + 0x2c] */ 2401 PUSH32(esp, edx); /* 0x3610A52C: push edx */ 2402 RECOMP_ICALL(0x360F7B00u); /* 0x3610A52D: call 0x360f7b00 */ /* not lifted */ 2403 RECOMP_FLAGS_IN(); 2404 ecx = eax; /* 0x3610A532: mov ecx, eax */ 2405 RECOMP_ICALL(0x360FBEA0u); /* 0x3610A534: call 0x360fbea0 */ /* not lifted */ 2406 RECOMP_FLAGS_IN(); 2407 ecx = MEM32(esi + 0x24); /* 0x3610A539: mov ecx, dword ptr [esi + 0x24] */ 2408 MEM32(ecx + 0x1E4) = eax; /* 0x3610A53C: mov dword ptr [ecx + 0x1e4], eax */ 2409 eax = MEM32(esi + 0x2C); /* 0x3610A542: mov eax, dword ptr [esi + 0x2c] */ 2410 PUSH32(esp, eax); /* 0x3610A545: push eax */ 2411 RECOMP_ICALL(0x360F7B00u); /* 0x3610A546: call 0x360f7b00 */ /* not lifted */ 2412 RECOMP_FLAGS_IN(); 2413 ecx = eax; /* 0x3610A54B: mov ecx, eax */ 2414 RECOMP_ICALL(0x360FBEE0u); /* 0x3610A54D: call 0x360fbee0 */ /* not lifted */ 2415 RECOMP_FLAGS_IN(); 2416 ecx = MEM32(esi + 0x2C); /* 0x3610A552: mov ecx, dword ptr [esi + 0x2c] */ 2417 MEM32(ebp + (-0x14)) = eax; /* 0x3610A555: mov dword ptr [ebp - 0x14], eax */ 2418 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x3610A558: fild dword ptr [ebp - 0x14] */ 2419 PUSH32(esp, ecx); /* 0x3610A55B: push ecx */ 2420 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xA4) = _v; } /* 0x3610A55C: fstp dword ptr [esi + 0xa4] */ 2421 RECOMP_ICALL(0x360F7B00u); /* 0x3610A562: call 0x360f7b00 */ /* not lifted */ 2422 RECOMP_FLAGS_IN(); 2423 ecx = eax; /* 0x3610A567: mov ecx, eax */ 2424 RECOMP_ICALL(0x360FBF20u); /* 0x3610A569: call 0x360fbf20 */ /* not lifted */ 2425 RECOMP_FLAGS_IN(); 2426 ecx = MEM32(esi + 0x20); /* 0x3610A56E: mov ecx, dword ptr [esi + 0x20] */ 2427 MEM32(ebp + (-0x14)) = eax; /* 0x3610A571: mov dword ptr [ebp - 0x14], eax */ 2428 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x3610A574: fild dword ptr [ebp - 0x14] */ 2429 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xA8) = _v; } /* 0x3610A577: fstp dword ptr [esi + 0xa8] */ 2430 RECOMP_ICALL(0x36134100u); /* 0x3610A57D: call 0x36134100 */ /* not lifted */ 2431 RECOMP_FLAGS_IN(); 2432 ecx = MEM32(esi + 0x20); /* 0x3610A582: mov ecx, dword ptr [esi + 0x20] */ 2433 edx = ebp + (-0x78); /* 0x3610A585: lea edx, [ebp - 0x78] */ 2434 PUSH32(esp, edx); /* 0x3610A588: push edx */ 2435 RECOMP_ICALL(0x36133E80u); /* 0x3610A589: call 0x36133e80 */ /* not lifted */ 2436 RECOMP_FLAGS_IN(); 2437 ecx = MEM32(esi + 0x24); /* 0x3610A58E: mov ecx, dword ptr [esi + 0x24] */ 2438 edi = MEM32(eax); /* 0x3610A591: mov edi, dword ptr [eax] */ 2439 edx = ecx + 0x78; /* 0x3610A593: lea edx, [ecx + 0x78] */ 2440 MEM32(edx) = edi; /* 0x3610A596: mov dword ptr [edx], edi */ 2441 edi = MEM32(eax + 0x4); /* 0x3610A598: mov edi, dword ptr [eax + 4] */ 2442 MEM32(edx + 0x4) = edi; /* 0x3610A59B: mov dword ptr [edx + 4], edi */ 2443 eax = MEM32(eax + 0x8); /* 0x3610A59E: mov eax, dword ptr [eax + 8] */ 2444 PUSH32(esp, 1); /* 0x3610A5A1: push 1 */ 2445 MEM32(edx + 0x8) = eax; /* 0x3610A5A3: mov dword ptr [edx + 8], eax */ 2446 edx = MEM32(ecx); /* 0x3610A5A6: mov edx, dword ptr [ecx] */ 2447 PUSH32(esp, 1); /* 0x3610A5A8: push 1 */ 2448 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610A5AA: call dword ptr [edx + 0x2c] */ 2449 RECOMP_FLAGS_IN(); 2450 ecx = MEM32(esi + 0x20); /* 0x3610A5AD: mov ecx, dword ptr [esi + 0x20] */ 2451 eax = ebp + (-0xBC); /* 0x3610A5B0: lea eax, [ebp - 0xbc] */ 2452 PUSH32(esp, eax); /* 0x3610A5B6: push eax */ 2453 RECOMP_ICALL(0x36133DC0u); /* 0x3610A5B7: call 0x36133dc0 */ /* not lifted */ 2454 RECOMP_FLAGS_IN(); 2455 PUSH32(esp, eax); /* 0x3610A5BC: push eax */ 2456 ecx = ebp + (-0x7C); /* 0x3610A5BD: lea ecx, [ebp - 0x7c] */ 2457 MEM32(ebp + (-0x4)) = 1; /* 0x3610A5C0: mov dword ptr [ebp - 4], 1 */ 2458 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x3610A5C7: call dword ptr [0x361701a4] */ 2459 RECOMP_FLAGS_IN(); 2460 ecx = MEM32(esi + 0x24); /* 0x3610A5CD: mov ecx, dword ptr [esi + 0x24] */ 2461 edi = MEM32(eax); /* 0x3610A5D0: mov edi, dword ptr [eax] */ 2462 edx = ecx + 0x84; /* 0x3610A5D2: lea edx, [ecx + 0x84] */ 2463 MEM32(edx) = edi; /* 0x3610A5D8: mov dword ptr [edx], edi */ 2464 edi = MEM32(eax + 0x4); /* 0x3610A5DA: mov edi, dword ptr [eax + 4] */ 2465 MEM32(edx + 0x4) = edi; /* 0x3610A5DD: mov dword ptr [edx + 4], edi */ 2466 edi = MEM32(eax + 0x8); /* 0x3610A5E0: mov edi, dword ptr [eax + 8] */ 2467 MEM32(edx + 0x8) = edi; /* 0x3610A5E3: mov dword ptr [edx + 8], edi */ 2468 eax = MEM32(eax + 0xC); /* 0x3610A5E6: mov eax, dword ptr [eax + 0xc] */ 2469 PUSH32(esp, 1); /* 0x3610A5E9: push 1 */ 2470 MEM32(edx + 0xC) = eax; /* 0x3610A5EB: mov dword ptr [edx + 0xc], eax */ 2471 edx = MEM32(ecx); /* 0x3610A5EE: mov edx, dword ptr [ecx] */ 2472 PUSH32(esp, 2); /* 0x3610A5F0: push 2 */ 2473 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610A5F2: call dword ptr [edx + 0x2c] */ 2474 RECOMP_FLAGS_IN(); 2475 ecx = MEM32(esi + 0x24); /* 0x3610A5F5: mov ecx, dword ptr [esi + 0x24] */ 2476 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610A5F8: mov dword ptr [ebp - 4], 0xffffffff */ 2477 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x3610A5FF: call dword ptr [0x3616f5f8] */ 2478 RECOMP_FLAGS_IN(); 2479 fp_push(*(float*)&MEM32(0x36170380)); /* 0x3610A605: fld dword ptr [0x36170380] */ 2480 _st[0] /= (double)*(float*)ADDR(esi + 0x90); /* 0x3610A60B: fdiv dword ptr [esi + 0x90] */ 2481 eax = MEM32(esi + 0x48); /* 0x3610A611: mov eax, dword ptr [esi + 0x48] */ 2482 MEM32(ebp + (-0x1C)) = eax; /* 0x3610A614: mov dword ptr [ebp - 0x1c], eax */ 2483 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3610A617: fstp dword ptr [ebp - 0x10] */ 2484 fp_push(*(float*)&MEM32(esi + 0x58)); /* 0x3610A61A: fld dword ptr [esi + 0x58] */ 2485 ecx = MEM32(esi + 0x4C); /* 0x3610A61D: mov ecx, dword ptr [esi + 0x4c] */ 2486 edx = MEM32(esi + 0x50); /* 0x3610A620: mov edx, dword ptr [esi + 0x50] */ 2487 _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3610A623: fsub dword ptr [ebp - 0x1c] */ 2488 eax = MEM32(esi + 0x54); /* 0x3610A626: mov eax, dword ptr [esi + 0x54] */ 2489 MEM32(ebp + (-0x18)) = ecx; /* 0x3610A629: mov dword ptr [ebp - 0x18], ecx */ 2490 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3610A62C: fmul dword ptr [ebp - 0x10] */ 2491 MEM32(ebp + (-0x2C)) = edx; /* 0x3610A62F: mov dword ptr [ebp - 0x2c], edx */ 2492 MEM32(ebp + (-0x30)) = eax; /* 0x3610A632: mov dword ptr [ebp - 0x30], eax */ 2493 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3610A635: fstp dword ptr [ebp - 0x24] */ 2494 fp_push(*(float*)&MEM32(esi + 0x5C)); /* 0x3610A638: fld dword ptr [esi + 0x5c] */ 2495 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3610A63B: fsub dword ptr [ebp - 0x18] */ 2496 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3610A63E: fmul dword ptr [ebp - 0x10] */ 2497 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3610A641: fstp dword ptr [ebp - 0x38] */ 2498 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x3610A644: fld dword ptr [esi + 0x60] */ 2499 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x3610A647: fsub dword ptr [ebp - 0x2c] */ 2500 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3610A64A: fmul dword ptr [ebp - 0x10] */ 2501 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610A64D: fstp dword ptr [ebp - 0x3c] */ 2502 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x3610A650: fld dword ptr [esi + 0x64] */ 2503 _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3610A653: fsub dword ptr [ebp - 0x30] */ 2504 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3610A656: fmul dword ptr [ebp - 0x10] */ 2505 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3610A659: fstp dword ptr [ebp - 0x34] */ 2506 fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x3610A65C: fld dword ptr [esi + 0x30] */ 2507 _st[0] *= (double)*(float*)ADDR(esi + 0x90); /* 0x3610A65F: fmul dword ptr [esi + 0x90] */ 2508 _st[0] *= (double)*(float*)ADDR(0x36174F9C); /* 0x3610A665: fmul dword ptr [0x36174f9c] */ 2509 RECOMP_ICALL(0x3615FD8Cu); /* 0x3610A66B: call 0x3615fd8c */ /* not lifted */ 2510 RECOMP_FLAGS_IN(); 2511 ecx = MEM32(esi + 0x84); /* 0x3610A670: mov ecx, dword ptr [esi + 0x84] */ 2512 /* cmp eax, ecx */ /* 0x3610A676: cmp eax, ecx */ 2513 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2515 _flag_k = FK_CMP; 2516 if (CMP_GE(_flag_a, _flag_b)) goto L_3610A67C; /* 0x3610A678: jge 0x3610a67c */ 2517 L_3610A67A: 2518 eax = ecx; /* 0x3610A67A: mov eax, ecx */ 2519 L_3610A67C: 2520 ecx = MEM32(esi + 0x24); /* 0x3610A67C: mov ecx, dword ptr [esi + 0x24] */ 2521 PUSH32(esp, eax); /* 0x3610A67F: push eax */ 2522 RECOMP_ICALL(MEM32(0x3616F6F4)); /* 0x3610A680: call dword ptr [0x3616f6f4] */ 2523 RECOMP_FLAGS_IN(); 2524 fp_push(*(float*)&MEM32(esi + 0xA8)); /* 0x3610A686: fld dword ptr [esi + 0xa8] */ 2525 ecx = MEM32(esi + 0xA4); /* 0x3610A68C: mov ecx, dword ptr [esi + 0xa4] */ 2526 edx = MEM32(esi + 0x40); /* 0x3610A692: mov edx, dword ptr [esi + 0x40] */ 2527 eax = MEM32(esi + 0x38); /* 0x3610A695: mov eax, dword ptr [esi + 0x38] */ 2528 PUSH32(esp, 1); /* 0x3610A698: push 1 */ 2529 PUSH32(esp, ecx); /* 0x3610A69A: push ecx */ 2530 MEM32(ebp + (-0x28)) = ecx; /* 0x3610A69B: mov dword ptr [ebp - 0x28], ecx */ 2531 _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3610A69E: fsub dword ptr [ebp - 0x28] */ 2532 MEM32(ebp + (-0x20)) = edx; /* 0x3610A6A1: mov dword ptr [ebp - 0x20], edx */ 2533 edx = MEM32(ebp + (-0x34)); /* 0x3610A6A4: mov edx, dword ptr [ebp - 0x34] */ 2534 MEM32(ebp + (-0x14)) = eax; /* 0x3610A6A7: mov dword ptr [ebp - 0x14], eax */ 2535 eax = MEM32(ebp + (-0x3C)); /* 0x3610A6AA: mov eax, dword ptr [ebp - 0x3c] */ 2536 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3610A6AD: fmul dword ptr [ebp - 0x10] */ 2537 MEM32(ebp + (-0x60)) = 0; /* 0x3610A6B0: mov dword ptr [ebp - 0x60], 0 */ 2538 MEM32(ebp + (-0x5C)) = 0; /* 0x3610A6B7: mov dword ptr [ebp - 0x5c], 0 */ 2539 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610A6BE: fstp dword ptr [esp] */ 2540 PUSH32(esp, ecx); /* 0x3610A6C1: push ecx */ 2541 ecx = MEM32(ebp + (-0x38)); /* 0x3610A6C2: mov ecx, dword ptr [ebp - 0x38] */ 2542 fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x3610A6C5: fld dword ptr [esi + 0x44] */ 2543 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3610A6C8: fsub dword ptr [ebp - 0x20] */ 2544 PUSH32(esp, edx); /* 0x3610A6CB: push edx */ 2545 edx = MEM32(ebp + (-0x24)); /* 0x3610A6CC: mov edx, dword ptr [ebp - 0x24] */ 2546 PUSH32(esp, eax); /* 0x3610A6CF: push eax */ 2547 eax = MEM32(ebp + (-0x30)); /* 0x3610A6D0: mov eax, dword ptr [ebp - 0x30] */ 2548 PUSH32(esp, ecx); /* 0x3610A6D3: push ecx */ 2549 ecx = MEM32(ebp + (-0x2C)); /* 0x3610A6D4: mov ecx, dword ptr [ebp - 0x2c] */ 2550 PUSH32(esp, edx); /* 0x3610A6D7: push edx */ 2551 edx = MEM32(ebp + (-0x18)); /* 0x3610A6D8: mov edx, dword ptr [ebp - 0x18] */ 2552 PUSH32(esp, eax); /* 0x3610A6DB: push eax */ 2553 eax = MEM32(ebp + (-0x1C)); /* 0x3610A6DC: mov eax, dword ptr [ebp - 0x1c] */ 2554 PUSH32(esp, ecx); /* 0x3610A6DF: push ecx */ 2555 ecx = MEM32(esi + 0x90); /* 0x3610A6E0: mov ecx, dword ptr [esi + 0x90] */ 2556 PUSH32(esp, edx); /* 0x3610A6E6: push edx */ 2557 edx = MEM32(ebp + (-0x20)); /* 0x3610A6E7: mov edx, dword ptr [ebp - 0x20] */ 2558 PUSH32(esp, eax); /* 0x3610A6EA: push eax */ 2559 eax = MEM32(ebp + (-0x14)); /* 0x3610A6EB: mov eax, dword ptr [ebp - 0x14] */ 2560 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610A6EE: push -1 */ 2561 PUSH32(esp, ecx); /* 0x3610A6F0: push ecx */ 2562 PUSH32(esp, ecx); /* 0x3610A6F1: push ecx */ 2563 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3610A6F2: fmul dword ptr [ebp - 0x10] */ 2564 MEM32(ebp + (-0x58)) = 0; /* 0x3610A6F5: mov dword ptr [ebp - 0x58], 0 */ 2565 MEM32(ebp + (-0x48)) = 0; /* 0x3610A6FC: mov dword ptr [ebp - 0x48], 0 */ 2566 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610A703: fstp dword ptr [esp] */ 2567 PUSH32(esp, ecx); /* 0x3610A706: push ecx */ 2568 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x3610A707: fld dword ptr [esi + 0x3c] */ 2569 ecx = ebp + (-0x60); /* 0x3610A70A: lea ecx, [ebp - 0x60] */ 2570 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3610A70D: fsub dword ptr [ebp - 0x14] */ 2571 MEM32(ebp + (-0x44)) = 0; /* 0x3610A710: mov dword ptr [ebp - 0x44], 0 */ 2572 MEM32(ebp + (-0x40)) = 0; /* 0x3610A717: mov dword ptr [ebp - 0x40], 0 */ 2573 MEM32(ebp + (-0x6C)) = 0; /* 0x3610A71E: mov dword ptr [ebp - 0x6c], 0 */ 2574 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3610A725: fmul dword ptr [ebp - 0x10] */ 2575 MEM32(ebp + (-0x68)) = 0; /* 0x3610A728: mov dword ptr [ebp - 0x68], 0 */ 2576 MEM32(ebp + (-0x64)) = 0; /* 0x3610A72F: mov dword ptr [ebp - 0x64], 0 */ 2577 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610A736: fstp dword ptr [esp] */ 2578 PUSH32(esp, edx); /* 0x3610A739: push edx */ 2579 PUSH32(esp, eax); /* 0x3610A73A: push eax */ 2580 PUSH32(esp, ecx); /* 0x3610A73B: push ecx */ 2581 edx = ebp + (-0x48); /* 0x3610A73C: lea edx, [ebp - 0x48] */ 2582 PUSH32(esp, edx); /* 0x3610A73F: push edx */ 2583 eax = ebp + (-0x6C); /* 0x3610A740: lea eax, [ebp - 0x6c] */ 2584 PUSH32(esp, eax); /* 0x3610A743: push eax */ 2585 ecx = ebp + (-0x54); /* 0x3610A744: lea ecx, [ebp - 0x54] */ 2586 PUSH32(esp, ecx); /* 0x3610A747: push ecx */ 2587 ecx = MEM32(esi + 0x24); /* 0x3610A748: mov ecx, dword ptr [esi + 0x24] */ 2588 MEM32(ebp + (-0x54)) = 0; /* 0x3610A74B: mov dword ptr [ebp - 0x54], 0 */ 2589 MEM32(ebp + (-0x50)) = 0; /* 0x3610A752: mov dword ptr [ebp - 0x50], 0 */ 2590 MEM32(ebp + (-0x4C)) = 0; /* 0x3610A759: mov dword ptr [ebp - 0x4c], 0 */ 2591 RECOMP_ICALL(MEM32(0x3616F6F0)); /* 0x3610A760: call dword ptr [0x3616f6f0] */ 2592 RECOMP_FLAGS_IN(); 2593 ecx = MEM32(ebp + (-0xC)); /* 0x3610A766: mov ecx, dword ptr [ebp - 0xc] */ 2594 edi = POP32_VAL(esp); /* 0x3610A769: pop edi */ 2595 esi = POP32_VAL(esp); /* 0x3610A76A: pop esi */ 2596 MEM32(FS_BASE + (0)) = ecx; /* 0x3610A76B: mov dword ptr fs:[0], ecx */ 2597 esp = ebp; /* 0x3610A772: mov esp, ebp */ 2598 ebp = POP32_VAL(esp); /* 0x3610A774: pop ebp */ 2599 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610A775: ret */ 2600 RECOMP_REGS_OUT(); 2601 } 2602 2603 void sub_3610A780(void) { 2604 int _fpu_cmp = 0; 2605 uint32_t _cf = 0; 2606 int _df = 1; 2607 uint32_t _flag_k = FK_NONE; 2608 uint32_t _flag_a = 0, _flag_b = 0; 2609 uint32_t _itail_tgt = 0; 2610 RECOMP_REGS_LOCALS 2611 RECOMP_ENTER(0x3610A780u); 2612 2613 L_3610A780: 2614 PUSH32(esp, ebp); /* 0x3610A780: push ebp */ 2615 ebp = esp; /* 0x3610A781: mov ebp, esp */ 2616 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x98u); 2617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2618 esp = esp - 0x98u; /* 0x3610A783: sub esp, 0x98 */ 2619 _flag_k = FK_CMP; 2620 fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x3610A789: fld dword ptr [ebp + 0x10] */ 2621 PUSH32(esp, ebx); /* 0x3610A78C: push ebx */ 2622 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610A78D: fcos */ 2623 PUSH32(esp, esi); /* 0x3610A78F: push esi */ 2624 esi = ecx; /* 0x3610A790: mov esi, ecx */ 2625 PUSH32(esp, edi); /* 0x3610A792: push edi */ 2626 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3610A793: fmul dword ptr [ebp + 8] */ 2627 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3610A796: fld dword ptr [ebp + 0xc] */ 2628 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610A799: fcos */ 2629 _st[0] *= _st[1]; /* 0x3610A79B: fmul st(1) */ 2630 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3610A79D: fstp dword ptr [ebp - 0xc] */ 2631 eax = MEM32(ebp + (-0xC)); /* 0x3610A7A0: mov eax, dword ptr [ebp - 0xc] */ 2632 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3610A7A3: fld dword ptr [ebp + 0xc] */ 2633 MEM32(ebp + (-0x18)) = eax; /* 0x3610A7A6: mov dword ptr [ebp - 0x18], eax */ 2634 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3610A7A9: fsin */ 2635 eax = ebp + (-0x98); /* 0x3610A7AB: lea eax, [ebp - 0x98] */ 2636 PUSH32(esp, eax); /* 0x3610A7B1: push eax */ 2637 _st[0] *= _st[1]; /* 0x3610A7B2: fmul st(1) */ 2638 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3610A7B4: fstp dword ptr [ebp - 8] */ 2639 ecx = MEM32(ebp + (-0x8)); /* 0x3610A7B7: mov ecx, dword ptr [ebp - 8] */ 2640 MEM32(ebp + (-0x14)) = ecx; /* 0x3610A7BA: mov dword ptr [ebp - 0x14], ecx */ 2641 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610A7BD: fstp st(0) */ 2642 ecx = MEM32(esi + 0x20); /* 0x3610A7BF: mov ecx, dword ptr [esi + 0x20] */ 2643 fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x3610A7C2: fld dword ptr [ebp + 0x10] */ 2644 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3610A7C5: fsin */ 2645 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3610A7C7: fmul dword ptr [ebp + 8] */ 2646 _st[0] = -_st[0]; /* 0x3610A7CA: fchs */ 2647 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610A7CC: fstp dword ptr [ebp - 4] */ 2648 edx = MEM32(ebp + (-0x4)); /* 0x3610A7CF: mov edx, dword ptr [ebp - 4] */ 2649 MEM32(ebp + (-0x10)) = edx; /* 0x3610A7D2: mov dword ptr [ebp - 0x10], edx */ 2650 RECOMP_ICALL(0x36133F00u); /* 0x3610A7D5: call 0x36133f00 */ /* not lifted */ 2651 RECOMP_FLAGS_IN(); 2652 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610A7DA: fld dword ptr [ebp - 4] */ 2653 _st[0] *= (double)*(float*)ADDR(eax + 0x24); /* 0x3610A7DD: fmul dword ptr [eax + 0x24] */ 2654 edx = ebp + (-0xC); /* 0x3610A7E0: lea edx, [ebp - 0xc] */ 2655 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610A7E3: fld dword ptr [ebp - 8] */ 2656 PUSH32(esp, edx); /* 0x3610A7E6: push edx */ 2657 _st[0] *= (double)*(float*)ADDR(eax + 0x14); /* 0x3610A7E7: fmul dword ptr [eax + 0x14] */ 2658 { double _v = fp_pop(); _st[0] += _v; } /* 0x3610A7EA: faddp st(1) */ 2659 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3610A7EC: fld dword ptr [ebp - 0xc] */ 2660 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x3610A7EF: fmul dword ptr [eax + 4] */ 2661 { double _v = fp_pop(); _st[0] += _v; } /* 0x3610A7F2: faddp st(1) */ 2662 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610A7F4: fld dword ptr [ebp - 4] */ 2663 _st[0] *= (double)*(float*)ADDR(eax + 0x28); /* 0x3610A7F7: fmul dword ptr [eax + 0x28] */ 2664 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610A7FA: fld dword ptr [ebp - 8] */ 2665 _st[0] *= (double)*(float*)ADDR(eax + 0x18); /* 0x3610A7FD: fmul dword ptr [eax + 0x18] */ 2666 { double _v = fp_pop(); _st[0] += _v; } /* 0x3610A800: faddp st(1) */ 2667 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3610A802: fld dword ptr [ebp - 0xc] */ 2668 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x3610A805: fmul dword ptr [eax + 8] */ 2669 { double _v = fp_pop(); _st[0] += _v; } /* 0x3610A808: faddp st(1) */ 2670 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3610A80A: fstp dword ptr [ebp + 0xc] */ 2671 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610A80D: fld dword ptr [ebp - 4] */ 2672 ecx = MEM32(ebp + 0xC); /* 0x3610A810: mov ecx, dword ptr [ebp + 0xc] */ 2673 _st[0] *= (double)*(float*)ADDR(eax + 0x20); /* 0x3610A813: fmul dword ptr [eax + 0x20] */ 2674 MEM32(ebp + (-0x10)) = ecx; /* 0x3610A816: mov dword ptr [ebp - 0x10], ecx */ 2675 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610A819: fld dword ptr [ebp - 8] */ 2676 ecx = MEM32(esi + 0x20); /* 0x3610A81C: mov ecx, dword ptr [esi + 0x20] */ 2677 _st[0] *= (double)*(float*)ADDR(eax + 0x10); /* 0x3610A81F: fmul dword ptr [eax + 0x10] */ 2678 { double _v = fp_pop(); _st[0] += _v; } /* 0x3610A822: faddp st(1) */ 2679 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3610A824: fld dword ptr [ebp - 0xc] */ 2680 _st[0] *= (double)*(float*)ADDR(eax); /* 0x3610A827: fmul dword ptr [eax] */ 2681 { double _v = fp_pop(); _st[0] += _v; } /* 0x3610A829: faddp st(1) */ 2682 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3610A82B: fstp dword ptr [ebp - 0x18] */ 2683 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3610A82E: fstp dword ptr [ebp - 0x14] */ 2684 RECOMP_ICALL(0x36133FC0u); /* 0x3610A831: call 0x36133fc0 */ /* not lifted */ 2685 RECOMP_FLAGS_IN(); 2686 ecx = MEM32(eax); /* 0x3610A836: mov ecx, dword ptr [eax] */ 2687 MEM32(ebp + (-0x3C)) = ecx; /* 0x3610A838: mov dword ptr [ebp - 0x3c], ecx */ 2688 edx = MEM32(eax + 0x4); /* 0x3610A83B: mov edx, dword ptr [eax + 4] */ 2689 MEM32(ebp + (-0x38)) = edx; /* 0x3610A83E: mov dword ptr [ebp - 0x38], edx */ 2690 eax = MEM32(eax + 0x8); /* 0x3610A841: mov eax, dword ptr [eax + 8] */ 2691 MEM32(ebp + (-0x34)) = eax; /* 0x3610A844: mov dword ptr [ebp - 0x34], eax */ 2692 MEM32(ebp + (-0x24)) = 0; /* 0x3610A847: mov dword ptr [ebp - 0x24], 0 */ 2693 MEM32(ebp + (-0x20)) = 0; /* 0x3610A84E: mov dword ptr [ebp - 0x20], 0 */ 2694 MEM32(ebp + (-0x1C)) = 0; /* 0x3610A855: mov dword ptr [ebp - 0x1c], 0 */ 2695 ecx = ebp + (-0xC); /* 0x3610A85C: lea ecx, [ebp - 0xc] */ 2696 PUSH32(esp, ecx); /* 0x3610A85F: push ecx */ 2697 ecx = MEM32(esi + 0x20); /* 0x3610A860: mov ecx, dword ptr [esi + 0x20] */ 2698 RECOMP_ICALL(0x36133FC0u); /* 0x3610A863: call 0x36133fc0 */ /* not lifted */ 2699 RECOMP_FLAGS_IN(); 2700 edx = MEM32(eax); /* 0x3610A868: mov edx, dword ptr [eax] */ 2701 MEM32(ebp + (-0x48)) = edx; /* 0x3610A86A: mov dword ptr [ebp - 0x48], edx */ 2702 ecx = MEM32(eax + 0x4); /* 0x3610A86D: mov ecx, dword ptr [eax + 4] */ 2703 MEM32(ebp + (-0x44)) = ecx; /* 0x3610A870: mov dword ptr [ebp - 0x44], ecx */ 2704 edx = MEM32(eax + 0x8); /* 0x3610A873: mov edx, dword ptr [eax + 8] */ 2705 eax = MEM32(esi + 0x28); /* 0x3610A876: mov eax, dword ptr [esi + 0x28] */ 2706 /* test HI8(eax), 1 */ /* 0x3610A879: test ah, 1 */ 2707 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2708 _cf = 0; 2709 _flag_k = FK_NARROW(FK_TEST, 24); 2710 MEM32(ebp + (-0x40)) = edx; /* 0x3610A87C: mov dword ptr [ebp - 0x40], edx */ 2711 if (TEST_Z(_flag_a, _flag_b)) goto L_3610A906; /* 0x3610A87F: je 0x3610a906 */ 2712 L_3610A885: 2713 fp_push(*(float*)&MEM32(esi + 0x8C)); /* 0x3610A885: fld dword ptr [esi + 0x8c] */ 2714 eax = MEM32(ebp + (-0x18)); /* 0x3610A88B: mov eax, dword ptr [ebp - 0x18] */ 2715 ebx = MEM32(ebp + (-0x14)); /* 0x3610A88E: mov ebx, dword ptr [ebp - 0x14] */ 2716 fp_push(_st[0]); /* 0x3610A891: fld st(0) */ 2717 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3610A893: fmul dword ptr [ebp - 0x18] */ 2718 ecx = MEM32(ebp + (-0x10)); /* 0x3610A896: mov ecx, dword ptr [ebp - 0x10] */ 2719 MEM32(ebp + (-0xC)) = eax; /* 0x3610A899: mov dword ptr [ebp - 0xc], eax */ 2720 MEM32(ebp + (-0x8)) = ebx; /* 0x3610A89C: mov dword ptr [ebp - 8], ebx */ 2721 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3610A89F: fstp dword ptr [ebp - 0xc] */ 2722 MEM32(ebp + (-0x4)) = ecx; /* 0x3610A8A2: mov dword ptr [ebp - 4], ecx */ 2723 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610A8A5: fld dword ptr [ebp - 8] */ 2724 ecx = MEM32(ebp + (-0xC)); /* 0x3610A8A8: mov ecx, dword ptr [ebp - 0xc] */ 2725 _st[0] *= _st[1]; /* 0x3610A8AB: fmul st(1) */ 2726 MEM32(ebp + (-0xC)) = eax; /* 0x3610A8AD: mov dword ptr [ebp - 0xc], eax */ 2727 eax = MEM32(ebp + (-0x10)); /* 0x3610A8B0: mov eax, dword ptr [ebp - 0x10] */ 2728 MEM32(ebp + (-0x24)) = ecx; /* 0x3610A8B3: mov dword ptr [ebp - 0x24], ecx */ 2729 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3610A8B6: fstp dword ptr [ebp - 8] */ 2730 edx = MEM32(ebp + (-0x8)); /* 0x3610A8B9: mov edx, dword ptr [ebp - 8] */ 2731 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610A8BC: fld dword ptr [ebp - 4] */ 2732 MEM32(ebp + (-0x8)) = ebx; /* 0x3610A8BF: mov dword ptr [ebp - 8], ebx */ 2733 _st[0] *= _st[1]; /* 0x3610A8C2: fmul st(1) */ 2734 MEM32(ebp + (-0x20)) = edx; /* 0x3610A8C4: mov dword ptr [ebp - 0x20], edx */ 2735 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610A8C7: fstp dword ptr [ebp - 4] */ 2736 edi = MEM32(ebp + (-0x4)); /* 0x3610A8CA: mov edi, dword ptr [ebp - 4] */ 2737 MEM32(ebp + (-0x4)) = eax; /* 0x3610A8CD: mov dword ptr [ebp - 4], eax */ 2738 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610A8D0: fstp st(0) */ 2739 MEM32(ebp + (-0x1C)) = edi; /* 0x3610A8D2: mov dword ptr [ebp - 0x1c], edi */ 2740 fp_push(*(float*)&MEM32(esi + 0x88)); /* 0x3610A8D5: fld dword ptr [esi + 0x88] */ 2741 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610A8DB: fld dword ptr [ebp - 0x18] */ 2742 _st[0] *= _st[1]; /* 0x3610A8DE: fmul st(1) */ 2743 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3610A8E0: fstp dword ptr [ebp - 0xc] */ 2744 ebx = MEM32(ebp + (-0xC)); /* 0x3610A8E3: mov ebx, dword ptr [ebp - 0xc] */ 2745 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610A8E6: fld dword ptr [ebp - 8] */ 2746 MEM32(ebp + (-0x30)) = ebx; /* 0x3610A8E9: mov dword ptr [ebp - 0x30], ebx */ 2747 _st[0] *= _st[1]; /* 0x3610A8EC: fmul st(1) */ 2748 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3610A8EE: fstp dword ptr [ebp - 8] */ 2749 eax = MEM32(ebp + (-0x8)); /* 0x3610A8F1: mov eax, dword ptr [ebp - 8] */ 2750 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610A8F4: fld dword ptr [ebp - 4] */ 2751 MEM32(ebp + (-0x2C)) = eax; /* 0x3610A8F7: mov dword ptr [ebp - 0x2c], eax */ 2752 _st[0] *= _st[1]; /* 0x3610A8FA: fmul st(1) */ 2753 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610A8FC: fstp dword ptr [ebp - 4] */ 2754 eax = MEM32(ebp + (-0x4)); /* 0x3610A8FF: mov eax, dword ptr [ebp - 4] */ 2755 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610A902: fstp st(0) */ 2756 goto L_3610A985; /* 0x3610A904: jmp 0x3610a985 */ 2757 L_3610A906: 2758 fp_push(*(float*)&MEM32(esi + 0x88)); /* 0x3610A906: fld dword ptr [esi + 0x88] */ 2759 eax = MEM32(ebp + (-0x18)); /* 0x3610A90C: mov eax, dword ptr [ebp - 0x18] */ 2760 ebx = MEM32(ebp + (-0x14)); /* 0x3610A90F: mov ebx, dword ptr [ebp - 0x14] */ 2761 fp_push(_st[0]); /* 0x3610A912: fld st(0) */ 2762 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3610A914: fmul dword ptr [ebp - 0x18] */ 2763 ecx = MEM32(ebp + (-0x10)); /* 0x3610A917: mov ecx, dword ptr [ebp - 0x10] */ 2764 MEM32(ebp + (-0xC)) = eax; /* 0x3610A91A: mov dword ptr [ebp - 0xc], eax */ 2765 MEM32(ebp + (-0x8)) = ebx; /* 0x3610A91D: mov dword ptr [ebp - 8], ebx */ 2766 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3610A920: fstp dword ptr [ebp - 0xc] */ 2767 MEM32(ebp + (-0x4)) = ecx; /* 0x3610A923: mov dword ptr [ebp - 4], ecx */ 2768 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610A926: fld dword ptr [ebp - 8] */ 2769 ecx = MEM32(ebp + (-0xC)); /* 0x3610A929: mov ecx, dword ptr [ebp - 0xc] */ 2770 _st[0] *= _st[1]; /* 0x3610A92C: fmul st(1) */ 2771 MEM32(ebp + (-0xC)) = eax; /* 0x3610A92E: mov dword ptr [ebp - 0xc], eax */ 2772 eax = MEM32(ebp + (-0x10)); /* 0x3610A931: mov eax, dword ptr [ebp - 0x10] */ 2773 MEM32(ebp + (-0x24)) = ecx; /* 0x3610A934: mov dword ptr [ebp - 0x24], ecx */ 2774 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3610A937: fstp dword ptr [ebp - 8] */ 2775 edx = MEM32(ebp + (-0x8)); /* 0x3610A93A: mov edx, dword ptr [ebp - 8] */ 2776 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610A93D: fld dword ptr [ebp - 4] */ 2777 MEM32(ebp + (-0x8)) = ebx; /* 0x3610A940: mov dword ptr [ebp - 8], ebx */ 2778 _st[0] *= _st[1]; /* 0x3610A943: fmul st(1) */ 2779 MEM32(ebp + (-0x20)) = edx; /* 0x3610A945: mov dword ptr [ebp - 0x20], edx */ 2780 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610A948: fstp dword ptr [ebp - 4] */ 2781 edi = MEM32(ebp + (-0x4)); /* 0x3610A94B: mov edi, dword ptr [ebp - 4] */ 2782 MEM32(ebp + (-0x4)) = eax; /* 0x3610A94E: mov dword ptr [ebp - 4], eax */ 2783 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610A951: fstp st(0) */ 2784 MEM32(ebp + (-0x1C)) = edi; /* 0x3610A953: mov dword ptr [ebp - 0x1c], edi */ 2785 fp_push(*(float*)&MEM32(esi + 0x8C)); /* 0x3610A956: fld dword ptr [esi + 0x8c] */ 2786 fp_push(_st[0]); /* 0x3610A95C: fld st(0) */ 2787 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3610A95E: fmul dword ptr [ebp - 0x18] */ 2788 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3610A961: fstp dword ptr [ebp - 0xc] */ 2789 ebx = MEM32(ebp + (-0xC)); /* 0x3610A964: mov ebx, dword ptr [ebp - 0xc] */ 2790 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610A967: fld dword ptr [ebp - 8] */ 2791 MEM32(ebp + (-0x30)) = ebx; /* 0x3610A96A: mov dword ptr [ebp - 0x30], ebx */ 2792 _st[0] *= _st[1]; /* 0x3610A96D: fmul st(1) */ 2793 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3610A96F: fstp dword ptr [ebp - 8] */ 2794 eax = MEM32(ebp + (-0x8)); /* 0x3610A972: mov eax, dword ptr [ebp - 8] */ 2795 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610A975: fld dword ptr [ebp - 4] */ 2796 MEM32(ebp + (-0x2C)) = eax; /* 0x3610A978: mov dword ptr [ebp - 0x2c], eax */ 2797 _st[0] *= _st[1]; /* 0x3610A97B: fmul st(1) */ 2798 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610A97D: fstp dword ptr [ebp - 4] */ 2799 eax = MEM32(ebp + (-0x4)); /* 0x3610A980: mov eax, dword ptr [ebp - 4] */ 2800 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610A983: fstp st(0) */ 2801 L_3610A985: 2802 fp_push(*(float*)&MEM32(0x36170380)); /* 0x3610A985: fld dword ptr [0x36170380] */ 2803 MEM32(ebp + (-0x28)) = eax; /* 0x3610A98B: mov dword ptr [ebp - 0x28], eax */ 2804 eax = MEM32(esi + 0x90); /* 0x3610A98E: mov eax, dword ptr [esi + 0x90] */ 2805 MEM32(ebp + 0xC) = eax; /* 0x3610A994: mov dword ptr [ebp + 0xc], eax */ 2806 _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x3610A997: fdiv dword ptr [ebp + 0xc] */ 2807 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x3610A99A: fld dword ptr [esi + 8] */ 2808 _st[0] += _st[0]; /* 0x3610A99D: fadd st(0), st(0) */ 2809 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0xC)); /* 0x3610A99F: fcomp dword ptr [ebp + 0xc] */ 2810 fp_pop(); 2811 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610A9A2: fnstsw ax */ 2812 /* test HI8(eax), 1 */ /* 0x3610A9A4: test ah, 1 */ 2813 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2814 _cf = 0; 2815 _flag_k = FK_NARROW(FK_TEST, 24); 2816 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610A9B1; /* 0x3610A9A7: jne 0x3610a9b1 */ 2817 L_3610A9A9: 2818 fp_push(*(float*)&MEM32(0x36170380)); /* 0x3610A9A9: fld dword ptr [0x36170380] */ 2819 goto L_3610A9B7; /* 0x3610A9AF: jmp 0x3610a9b7 */ 2820 L_3610A9B1: 2821 fp_push(*(float*)&MEM32(0x36170E78)); /* 0x3610A9B1: fld dword ptr [0x36170e78] */ 2822 L_3610A9B7: 2823 fp_push(*(float*)&MEM32(0x36170380)); /* 0x3610A9B7: fld dword ptr [0x36170380] */ 2824 MEM32(ebp + (-0x8)) = edx; /* 0x3610A9BD: mov dword ptr [ebp - 8], edx */ 2825 _st[0] -= _st[1]; /* 0x3610A9C0: fsub st(1) */ 2826 MEM32(ebp + (-0x4)) = edi; /* 0x3610A9C2: mov dword ptr [ebp - 4], edi */ 2827 edx = MEM32(ebp + (-0x28)); /* 0x3610A9C5: mov edx, dword ptr [ebp - 0x28] */ 2828 MEM32(ebp + (-0xC)) = ecx; /* 0x3610A9C8: mov dword ptr [ebp - 0xc], ecx */ 2829 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x10) = _v; } /* 0x3610A9CB: fstp dword ptr [ebp + 0x10] */ 2830 ecx = MEM32(ebp + (-0x2C)); /* 0x3610A9CE: mov ecx, dword ptr [ebp - 0x2c] */ 2831 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3610A9D1: fld dword ptr [ebp - 0x24] */ 2832 MEM32(ebp + (-0xC)) = ebx; /* 0x3610A9D4: mov dword ptr [ebp - 0xc], ebx */ 2833 _st[0] *= _st[1]; /* 0x3610A9D7: fmul st(1) */ 2834 eax = MEM32(esi + 0x48); /* 0x3610A9D9: mov eax, dword ptr [esi + 0x48] */ 2835 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610A9DC: fld dword ptr [ebp - 8] */ 2836 MEM32(ebp + (-0x4C)) = eax; /* 0x3610A9DF: mov dword ptr [ebp - 0x4c], eax */ 2837 _st[0] *= _st[2]; /* 0x3610A9E2: fmul st(2) */ 2838 eax = MEM32(esi + 0x54); /* 0x3610A9E4: mov eax, dword ptr [esi + 0x54] */ 2839 MEM32(ebp + 0x8) = eax; /* 0x3610A9E7: mov dword ptr [ebp + 8], eax */ 2840 PUSH32(esp, 1); /* 0x3610A9EA: push 1 */ 2841 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3610A9EC: fstp dword ptr [ebp - 8] */ 2842 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610A9EF: fld dword ptr [ebp - 4] */ 2843 _st[0] *= _st[2]; /* 0x3610A9F2: fmul st(2) */ 2844 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610A9F4: fstp dword ptr [ebp - 4] */ 2845 _st[0] += (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x3610A9F7: fadd dword ptr [ebp - 0x3c] */ 2846 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610A9FA: fstp dword ptr [ebp - 0x3c] */ 2847 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3610A9FD: fld dword ptr [ebp - 0x38] */ 2848 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3610AA00: fadd dword ptr [ebp - 8] */ 2849 MEM32(ebp + (-0x8)) = ecx; /* 0x3610AA03: mov dword ptr [ebp - 8], ecx */ 2850 ecx = MEM32(esi + 0x4C); /* 0x3610AA06: mov ecx, dword ptr [esi + 0x4c] */ 2851 MEM32(ebp + (-0x58)) = ecx; /* 0x3610AA09: mov dword ptr [ebp - 0x58], ecx */ 2852 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3610AA0C: fstp dword ptr [ebp - 0x38] */ 2853 ecx = MEM32(esi + 0xA4); /* 0x3610AA0F: mov ecx, dword ptr [esi + 0xa4] */ 2854 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3610AA15: fld dword ptr [ebp - 0x34] */ 2855 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610AA18: fadd dword ptr [ebp - 4] */ 2856 MEM32(ebp + (-0x4)) = edx; /* 0x3610AA1B: mov dword ptr [ebp - 4], edx */ 2857 edx = MEM32(esi + 0x50); /* 0x3610AA1E: mov edx, dword ptr [esi + 0x50] */ 2858 MEM32(ebp + (-0x50)) = edx; /* 0x3610AA21: mov dword ptr [ebp - 0x50], edx */ 2859 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3610AA24: fstp dword ptr [ebp - 0x34] */ 2860 edx = MEM32(esi + 0x40); /* 0x3610AA27: mov edx, dword ptr [esi + 0x40] */ 2861 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3610AA2A: fld dword ptr [ebp - 0x30] */ 2862 MEM32(ebp + (-0x54)) = edx; /* 0x3610AA2D: mov dword ptr [ebp - 0x54], edx */ 2863 _st[0] *= _st[1]; /* 0x3610AA30: fmul st(1) */ 2864 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3610AA32: fstp dword ptr [ebp - 0xc] */ 2865 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610AA35: fld dword ptr [ebp - 8] */ 2866 _st[0] *= _st[1]; /* 0x3610AA38: fmul st(1) */ 2867 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3610AA3A: fstp dword ptr [ebp - 8] */ 2868 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610AA3D: fmul dword ptr [ebp - 4] */ 2869 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3610AA40: fld dword ptr [ebp - 0xc] */ 2870 _st[0] += (double)*(float*)ADDR(ebp + (-0x48)); /* 0x3610AA43: fadd dword ptr [ebp - 0x48] */ 2871 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x3610AA46: fstp dword ptr [ebp - 0x48] */ 2872 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3610AA49: fld dword ptr [ebp - 0x44] */ 2873 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3610AA4C: fadd dword ptr [ebp - 8] */ 2874 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3610AA4F: fstp dword ptr [ebp - 0x44] */ 2875 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x3610AA52: fld dword ptr [ebp - 0x40] */ 2876 _st[0] += _st[1]; /* 0x3610AA55: fadd st(1) */ 2877 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3610AA57: fstp dword ptr [ebp - 0x40] */ 2878 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610AA5A: fstp st(0) */ 2879 fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x3610AA5C: fld dword ptr [ebp + 0x10] */ 2880 MEM32(ebp + 0x10) = ecx; /* 0x3610AA5F: mov dword ptr [ebp + 0x10], ecx */ 2881 _st[0] *= _st[1]; /* 0x3610AA62: fmul st(1) */ 2882 fp_push(_st[0]); /* 0x3610AA64: fld st(0) */ 2883 fp_push(_st[0]); /* 0x3610AA66: fld st(0) */ 2884 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3610AA68: fmul dword ptr [ebp - 0x24] */ 2885 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3610AA6B: fstp dword ptr [ebp - 0x24] */ 2886 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610AA6E: fld dword ptr [ebp - 0x20] */ 2887 _st[0] *= _st[1]; /* 0x3610AA71: fmul st(1) */ 2888 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3610AA73: fstp dword ptr [ebp - 0x20] */ 2889 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610AA76: fld dword ptr [ebp - 0x1c] */ 2890 _st[0] *= _st[1]; /* 0x3610AA79: fmul st(1) */ 2891 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3610AA7B: fstp dword ptr [ebp - 0x1c] */ 2892 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610AA7E: fstp st(0) */ 2893 fp_push(_st[0]); /* 0x3610AA80: fld st(0) */ 2894 _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3610AA82: fmul dword ptr [ebp - 0x30] */ 2895 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3610AA85: fstp dword ptr [ebp - 0x30] */ 2896 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3610AA88: fld dword ptr [ebp - 0x2c] */ 2897 _st[0] *= _st[1]; /* 0x3610AA8B: fmul st(1) */ 2898 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3610AA8D: fstp dword ptr [ebp - 0x2c] */ 2899 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3610AA90: fld dword ptr [ebp - 0x28] */ 2900 _st[0] *= _st[1]; /* 0x3610AA93: fmul st(1) */ 2901 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3610AA95: fstp dword ptr [ebp - 0x28] */ 2902 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610AA98: fstp st(0) */ 2903 fp_push(*(float*)&MEM32(esi + 0xA8)); /* 0x3610AA9A: fld dword ptr [esi + 0xa8] */ 2904 _st[0] -= (double)*(float*)ADDR(ebp + 0x10); /* 0x3610AAA0: fsub dword ptr [ebp + 0x10] */ 2905 PUSH32(esp, ecx); /* 0x3610AAA3: push ecx */ 2906 eax = ecx; /* 0x3610AAA4: mov eax, ecx */ 2907 edx = MEM32(ebp + (-0x50)); /* 0x3610AAA6: mov edx, dword ptr [ebp - 0x50] */ 2908 _st[0] *= _st[1]; /* 0x3610AAA9: fmul st(1) */ 2909 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AAAB: fstp dword ptr [esp] */ 2910 PUSH32(esp, eax); /* 0x3610AAAE: push eax */ 2911 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x3610AAAF: fld dword ptr [esi + 0x64] */ 2912 PUSH32(esp, ecx); /* 0x3610AAB2: push ecx */ 2913 _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x3610AAB3: fsub dword ptr [ebp + 8] */ 2914 eax = MEM32(ebp + (-0x58)); /* 0x3610AAB6: mov eax, dword ptr [ebp - 0x58] */ 2915 _st[0] *= _st[1]; /* 0x3610AAB9: fmul st(1) */ 2916 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AABB: fstp dword ptr [esp] */ 2917 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x3610AABE: fld dword ptr [esi + 0x60] */ 2918 PUSH32(esp, ecx); /* 0x3610AAC1: push ecx */ 2919 _st[0] -= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x3610AAC2: fsub dword ptr [ebp - 0x50] */ 2920 _st[0] *= _st[1]; /* 0x3610AAC5: fmul st(1) */ 2921 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AAC7: fstp dword ptr [esp] */ 2922 fp_push(*(float*)&MEM32(esi + 0x5C)); /* 0x3610AACA: fld dword ptr [esi + 0x5c] */ 2923 PUSH32(esp, ecx); /* 0x3610AACD: push ecx */ 2924 _st[0] -= (double)*(float*)ADDR(ebp + (-0x58)); /* 0x3610AACE: fsub dword ptr [ebp - 0x58] */ 2925 _st[0] *= _st[1]; /* 0x3610AAD1: fmul st(1) */ 2926 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AAD3: fstp dword ptr [esp] */ 2927 fp_push(*(float*)&MEM32(esi + 0x58)); /* 0x3610AAD6: fld dword ptr [esi + 0x58] */ 2928 PUSH32(esp, ecx); /* 0x3610AAD9: push ecx */ 2929 ecx = MEM32(ebp + 0x8); /* 0x3610AADA: mov ecx, dword ptr [ebp + 8] */ 2930 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3610AADD: fsub dword ptr [ebp - 0x4c] */ 2931 _st[0] *= _st[1]; /* 0x3610AAE0: fmul st(1) */ 2932 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AAE2: fstp dword ptr [esp] */ 2933 fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x3610AAE5: fld dword ptr [esi + 0x44] */ 2934 PUSH32(esp, ecx); /* 0x3610AAE8: push ecx */ 2935 _st[0] -= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x3610AAE9: fsub dword ptr [ebp - 0x54] */ 2936 ecx = MEM32(ebp + (-0x4C)); /* 0x3610AAEC: mov ecx, dword ptr [ebp - 0x4c] */ 2937 PUSH32(esp, edx); /* 0x3610AAEF: push edx */ 2938 edx = MEM32(ebp + 0xC); /* 0x3610AAF0: mov edx, dword ptr [ebp + 0xc] */ 2939 PUSH32(esp, eax); /* 0x3610AAF3: push eax */ 2940 PUSH32(esp, ecx); /* 0x3610AAF4: push ecx */ 2941 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610AAF5: push -1 */ 2942 PUSH32(esp, edx); /* 0x3610AAF7: push edx */ 2943 PUSH32(esp, ecx); /* 0x3610AAF8: push ecx */ 2944 eax = MEM32(ebp + (-0x54)); /* 0x3610AAF9: mov eax, dword ptr [ebp - 0x54] */ 2945 _st[0] *= _st[1]; /* 0x3610AAFC: fmul st(1) */ 2946 edx = ebp + (-0x48); /* 0x3610AAFE: lea edx, [ebp - 0x48] */ 2947 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AB01: fstp dword ptr [esp] */ 2948 PUSH32(esp, ecx); /* 0x3610AB04: push ecx */ 2949 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x3610AB05: fld dword ptr [esi + 0x3c] */ 2950 _st[0] -= (double)*(float*)ADDR(esi + 0x38); /* 0x3610AB08: fsub dword ptr [esi + 0x38] */ 2951 _st[0] *= (double)*(float*)ADDR(esi + 0x94); /* 0x3610AB0B: fmul dword ptr [esi + 0x94] */ 2952 _st[0] *= _st[1]; /* 0x3610AB11: fmul st(1) */ 2953 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AB13: fstp dword ptr [esp] */ 2954 PUSH32(esp, eax); /* 0x3610AB16: push eax */ 2955 PUSH32(esp, ecx); /* 0x3610AB17: push ecx */ 2956 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610AB18: fstp st(0) */ 2957 ecx = ebp + (-0x30); /* 0x3610AB1A: lea ecx, [ebp - 0x30] */ 2958 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AB1D: fld dword ptr [esi + 0x94] */ 2959 eax = ebp + (-0x24); /* 0x3610AB23: lea eax, [ebp - 0x24] */ 2960 _st[0] *= (double)*(float*)ADDR(esi + 0x38); /* 0x3610AB26: fmul dword ptr [esi + 0x38] */ 2961 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AB29: fstp dword ptr [esp] */ 2962 PUSH32(esp, ecx); /* 0x3610AB2C: push ecx */ 2963 PUSH32(esp, edx); /* 0x3610AB2D: push edx */ 2964 PUSH32(esp, eax); /* 0x3610AB2E: push eax */ 2965 ecx = ebp + (-0x3C); /* 0x3610AB2F: lea ecx, [ebp - 0x3c] */ 2966 PUSH32(esp, ecx); /* 0x3610AB32: push ecx */ 2967 ecx = MEM32(esi + 0x24); /* 0x3610AB33: mov ecx, dword ptr [esi + 0x24] */ 2968 RECOMP_ICALL(MEM32(0x3616F700)); /* 0x3610AB36: call dword ptr [0x3616f700] */ 2969 RECOMP_FLAGS_IN(); 2970 edi = POP32_VAL(esp); /* 0x3610AB3C: pop edi */ 2971 esi = POP32_VAL(esp); /* 0x3610AB3D: pop esi */ 2972 ebx = POP32_VAL(esp); /* 0x3610AB3E: pop ebx */ 2973 esp = ebp; /* 0x3610AB3F: mov esp, ebp */ 2974 ebp = POP32_VAL(esp); /* 0x3610AB41: pop ebp */ 2975 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3610AB42: ret 0xc */ 2976 RECOMP_REGS_OUT(); 2977 } 2978 2979 void sub_3610AB50(void) { 2980 int _fpu_cmp = 0; 2981 uint32_t _cf = 0; 2982 int _df = 1; 2983 uint32_t _flag_k = FK_NONE; 2984 uint32_t _flag_a = 0, _flag_b = 0; 2985 uint32_t _itail_tgt = 0; 2986 RECOMP_REGS_LOCALS 2987 RECOMP_ENTER(0x3610AB50u); 2988 2989 L_3610AB50: 2990 PUSH32(esp, ebp); /* 0x3610AB50: push ebp */ 2991 ebp = esp; /* 0x3610AB51: mov ebp, esp */ 2992 PUSH32(esp, ecx); /* 0x3610AB53: push ecx */ 2993 PUSH32(esp, esi); /* 0x3610AB54: push esi */ 2994 esi = ecx; /* 0x3610AB55: mov esi, ecx */ 2995 eax = MEM32(esi + 0x9C); /* 0x3610AB57: mov eax, dword ptr [esi + 0x9c] */ 2996 /* test eax, eax */ /* 0x3610AB5D: test eax, eax */ 2997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2998 _cf = 0; 2999 _flag_k = FK_TEST; 3000 PUSH32(esp, edi); /* 0x3610AB5F: push edi */ 3001 if (TEST_G(_flag_a, _flag_b)) goto L_3610AB74; /* 0x3610AB60: jg 0x3610ab74 */ 3002 L_3610AB62: 3003 fp_push(*(float*)&MEM32(esi + 0x90)); /* 0x3610AB62: fld dword ptr [esi + 0x90] */ 3004 edi = POP32_VAL(esp); /* 0x3610AB68: pop edi */ 3005 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x3610AB69: fadd dword ptr [esi + 0xc] */ 3006 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x3610AB6C: fstp dword ptr [esi + 0x10] */ 3007 esi = POP32_VAL(esp); /* 0x3610AB6F: pop esi */ 3008 esp = ebp; /* 0x3610AB70: mov esp, ebp */ 3009 ebp = POP32_VAL(esp); /* 0x3610AB72: pop ebp */ 3010 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610AB73: ret */ 3011 L_3610AB74: 3012 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3013 eax = eax - 1; /* 0x3610AB74: dec eax */ 3014 _flag_k = FK_DEC; 3015 MEM32(esi + 0x9C) = eax; /* 0x3610AB75: mov dword ptr [esi + 0x9c], eax */ 3016 eax = MEM32(esi + 0x28); /* 0x3610AB7B: mov eax, dword ptr [esi + 0x28] */ 3017 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x800u); 3018 eax = eax & 0x800u; /* 0x3610AB7E: and eax, 0x800 */ 3019 _cf = 0; 3020 _flag_k = FK_TEST; 3021 /* cmp eax, 0x800u */ /* 0x3610AB83: cmp eax, 0x800 */ 3022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x800u); 3023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3024 _flag_k = FK_CMP; 3025 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610AC73; /* 0x3610AB88: je 0x3610ac73 */ 3026 L_3610AB8E: 3027 PUSH32(esp, ebx); /* 0x3610AB8E: push ebx */ 3028 MEM32(ebp + (-0x4)) = 0; /* 0x3610AB8F: mov dword ptr [ebp - 4], 0 */ 3029 ebx = 4; /* 0x3610AB96: mov ebx, 4 */ 3030 L_3610AB9B: 3031 eax = MEM32(esi + 0x28); /* 0x3610AB9B: mov eax, dword ptr [esi + 0x28] */ 3032 /* test HI8(eax), 0x10u */ /* 0x3610AB9E: test ah, 0x10 */ 3033 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 3034 _cf = 0; 3035 _flag_k = FK_NARROW(FK_TEST, 24); 3036 if (TEST_Z(_flag_a, _flag_b)) goto L_3610ABEC; /* 0x3610ABA1: je 0x3610abec */ 3037 L_3610ABA3: 3038 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610ABA3: fld dword ptr [esi + 0x94] */ 3039 edi = MEM32(ebp + (-0x4)); /* 0x3610ABA9: mov edi, dword ptr [ebp - 4] */ 3040 _st[0] *= (double)*(float*)ADDR(0x36170828); /* 0x3610ABAC: fmul dword ptr [0x36170828] */ 3041 PUSH32(esp, 0); /* 0x3610ABB2: push 0 */ 3042 PUSH32(esp, edi); /* 0x3610ABB4: push edi */ 3043 PUSH32(esp, ecx); /* 0x3610ABB5: push ecx */ 3044 ecx = esi; /* 0x3610ABB6: mov ecx, esi */ 3045 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ABB8: fstp dword ptr [esp] */ 3046 RECOMP_ICALL(0x3610A780u); /* 0x3610ABBB: call 0x3610a780 */ /* not lifted */ 3047 RECOMP_FLAGS_IN(); 3048 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610ABC0: fld dword ptr [esi + 0x94] */ 3049 _st[0] *= (double)*(float*)ADDR(0x361729D0); /* 0x3610ABC6: fmul dword ptr [0x361729d0] */ 3050 PUSH32(esp, 0x3EA0D97Cu); /* 0x3610ABCC: push 0x3ea0d97c */ 3051 PUSH32(esp, edi); /* 0x3610ABD1: push edi */ 3052 PUSH32(esp, ecx); /* 0x3610ABD2: push ecx */ 3053 ecx = esi; /* 0x3610ABD3: mov ecx, esi */ 3054 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ABD5: fstp dword ptr [esp] */ 3055 RECOMP_ICALL(0x3610A780u); /* 0x3610ABD8: call 0x3610a780 */ /* not lifted */ 3056 RECOMP_FLAGS_IN(); 3057 ecx = MEM32(esi + 0x94); /* 0x3610ABDD: mov ecx, dword ptr [esi + 0x94] */ 3058 PUSH32(esp, 0x3FAAE714u); /* 0x3610ABE3: push 0x3faae714 */ 3059 PUSH32(esp, edi); /* 0x3610ABE8: push edi */ 3060 PUSH32(esp, ecx); /* 0x3610ABE9: push ecx */ 3061 goto L_3610AC36; /* 0x3610ABEA: jmp 0x3610ac36 */ 3062 L_3610ABEC: 3063 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610ABEC: fld dword ptr [esi + 0x94] */ 3064 edi = MEM32(ebp + (-0x4)); /* 0x3610ABF2: mov edi, dword ptr [ebp - 4] */ 3065 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3610ABF5: fmul dword ptr [0x36170464] */ 3066 PUSH32(esp, 0x3F20D97Cu); /* 0x3610ABFB: push 0x3f20d97c */ 3067 PUSH32(esp, edi); /* 0x3610AC00: push edi */ 3068 PUSH32(esp, ecx); /* 0x3610AC01: push ecx */ 3069 ecx = esi; /* 0x3610AC02: mov ecx, esi */ 3070 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AC04: fstp dword ptr [esp] */ 3071 RECOMP_ICALL(0x3610A780u); /* 0x3610AC07: call 0x3610a780 */ /* not lifted */ 3072 RECOMP_FLAGS_IN(); 3073 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AC0C: fld dword ptr [esi + 0x94] */ 3074 _st[0] *= (double)*(float*)ADDR(0x36170828); /* 0x3610AC12: fmul dword ptr [0x36170828] */ 3075 PUSH32(esp, 0x3F71463Bu); /* 0x3610AC18: push 0x3f71463b */ 3076 PUSH32(esp, edi); /* 0x3610AC1D: push edi */ 3077 PUSH32(esp, ecx); /* 0x3610AC1E: push ecx */ 3078 ecx = esi; /* 0x3610AC1F: mov ecx, esi */ 3079 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AC21: fstp dword ptr [esp] */ 3080 RECOMP_ICALL(0x3610A780u); /* 0x3610AC24: call 0x3610a780 */ /* not lifted */ 3081 RECOMP_FLAGS_IN(); 3082 edx = MEM32(esi + 0x94); /* 0x3610AC29: mov edx, dword ptr [esi + 0x94] */ 3083 PUSH32(esp, 0x3FA0D97Cu); /* 0x3610AC2F: push 0x3fa0d97c */ 3084 PUSH32(esp, edi); /* 0x3610AC34: push edi */ 3085 PUSH32(esp, edx); /* 0x3610AC35: push edx */ 3086 L_3610AC36: 3087 ecx = esi; /* 0x3610AC36: mov ecx, esi */ 3088 RECOMP_ICALL(0x3610A780u); /* 0x3610AC38: call 0x3610a780 */ /* not lifted */ 3089 RECOMP_FLAGS_IN(); 3090 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610AC3D: fld dword ptr [ebp - 4] */ 3091 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3092 ebx = ebx - 1; /* 0x3610AC40: dec ebx */ 3093 _flag_k = FK_DEC; 3094 _st[0] += (double)*(float*)ADDR(0x36174FC8); /* 0x3610AC41: fadd dword ptr [0x36174fc8] */ 3095 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610AC47: fstp dword ptr [ebp - 4] */ 3096 RECOMP_BACKEDGE(); 3097 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610AB9B; /* 0x3610AC4A: jne 0x3610ab9b */ 3098 L_3610AC50: 3099 eax = MEM32(ebp + (-0x4)); /* 0x3610AC50: mov eax, dword ptr [ebp - 4] */ 3100 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AC53: fld dword ptr [esi + 0x94] */ 3101 PUSH32(esp, 0x3FC90FDBu); /* 0x3610AC59: push 0x3fc90fdb */ 3102 _st[0] += _st[0]; /* 0x3610AC5E: fadd st(0), st(0) */ 3103 PUSH32(esp, eax); /* 0x3610AC60: push eax */ 3104 PUSH32(esp, ecx); /* 0x3610AC61: push ecx */ 3105 ecx = esi; /* 0x3610AC62: mov ecx, esi */ 3106 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AC64: fstp dword ptr [esp] */ 3107 RECOMP_ICALL(0x3610A780u); /* 0x3610AC67: call 0x3610a780 */ /* not lifted */ 3108 RECOMP_FLAGS_IN(); 3109 ebx = POP32_VAL(esp); /* 0x3610AC6C: pop ebx */ 3110 edi = POP32_VAL(esp); /* 0x3610AC6D: pop edi */ 3111 esi = POP32_VAL(esp); /* 0x3610AC6E: pop esi */ 3112 esp = ebp; /* 0x3610AC6F: mov esp, ebp */ 3113 ebp = POP32_VAL(esp); /* 0x3610AC71: pop ebp */ 3114 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610AC72: ret */ 3115 L_3610AC73: 3116 MEM32(ebp + (-0x4)) = 0; /* 0x3610AC73: mov dword ptr [ebp - 4], 0 */ 3117 edi = 4; /* 0x3610AC7A: mov edi, 4 */ 3118 L_3610AC7F: 3119 eax = MEM32(esi + 0x28); /* 0x3610AC7F: mov eax, dword ptr [esi + 0x28] */ 3120 /* test HI8(eax), 0x10u */ /* 0x3610AC82: test ah, 0x10 */ 3121 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 3122 _cf = 0; 3123 _flag_k = FK_NARROW(FK_TEST, 24); 3124 ecx = 0x3630DBB8u; /* 0x3610AC85: mov ecx, 0x3630dbb8 */ 3125 if (TEST_Z(_flag_a, _flag_b)) goto L_3610AD76; /* 0x3610AC8A: je 0x3610ad76 */ 3126 L_3610AC90: 3127 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AC90: call 0x3615bce0 */ /* not lifted */ 3128 RECOMP_FLAGS_IN(); 3129 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AC95: fmul dword ptr [0x36170f08] */ 3130 PUSH32(esp, ecx); /* 0x3610AC9B: push ecx */ 3131 ecx = 0x3630DBB8u; /* 0x3610AC9C: mov ecx, 0x3630dbb8 */ 3132 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ACA1: fsub dword ptr [0x36170f04] */ 3133 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACA7: fstp dword ptr [esp] */ 3134 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ACAA: call 0x3615bce0 */ /* not lifted */ 3135 RECOMP_FLAGS_IN(); 3136 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ACAF: fmul dword ptr [0x36170f08] */ 3137 PUSH32(esp, ecx); /* 0x3610ACB5: push ecx */ 3138 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ACB6: fsub dword ptr [0x36170f04] */ 3139 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610ACBC: fadd dword ptr [ebp - 4] */ 3140 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACBF: fstp dword ptr [esp] */ 3141 PUSH32(esp, ecx); /* 0x3610ACC2: push ecx */ 3142 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610ACC3: fld dword ptr [esi + 0x94] */ 3143 ecx = esi; /* 0x3610ACC9: mov ecx, esi */ 3144 _st[0] *= (double)*(float*)ADDR(0x36170828); /* 0x3610ACCB: fmul dword ptr [0x36170828] */ 3145 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACD1: fstp dword ptr [esp] */ 3146 RECOMP_ICALL(0x3610A780u); /* 0x3610ACD4: call 0x3610a780 */ /* not lifted */ 3147 RECOMP_FLAGS_IN(); 3148 ecx = 0x3630DBB8u; /* 0x3610ACD9: mov ecx, 0x3630dbb8 */ 3149 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ACDE: call 0x3615bce0 */ /* not lifted */ 3150 RECOMP_FLAGS_IN(); 3151 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ACE3: fmul dword ptr [0x36170f08] */ 3152 PUSH32(esp, ecx); /* 0x3610ACE9: push ecx */ 3153 ecx = 0x3630DBB8u; /* 0x3610ACEA: mov ecx, 0x3630dbb8 */ 3154 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ACEF: fsub dword ptr [0x36170f04] */ 3155 _st[0] += (double)*(float*)ADDR(0x36176390); /* 0x3610ACF5: fadd dword ptr [0x36176390] */ 3156 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACFB: fstp dword ptr [esp] */ 3157 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ACFE: call 0x3615bce0 */ /* not lifted */ 3158 RECOMP_FLAGS_IN(); 3159 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD03: fmul dword ptr [0x36170f08] */ 3160 PUSH32(esp, ecx); /* 0x3610AD09: push ecx */ 3161 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD0A: fsub dword ptr [0x36170f04] */ 3162 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610AD10: fadd dword ptr [ebp - 4] */ 3163 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD13: fstp dword ptr [esp] */ 3164 PUSH32(esp, ecx); /* 0x3610AD16: push ecx */ 3165 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AD17: fld dword ptr [esi + 0x94] */ 3166 ecx = esi; /* 0x3610AD1D: mov ecx, esi */ 3167 _st[0] *= (double)*(float*)ADDR(0x361729D0); /* 0x3610AD1F: fmul dword ptr [0x361729d0] */ 3168 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD25: fstp dword ptr [esp] */ 3169 RECOMP_ICALL(0x3610A780u); /* 0x3610AD28: call 0x3610a780 */ /* not lifted */ 3170 RECOMP_FLAGS_IN(); 3171 ecx = 0x3630DBB8u; /* 0x3610AD2D: mov ecx, 0x3630dbb8 */ 3172 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD32: call 0x3615bce0 */ /* not lifted */ 3173 RECOMP_FLAGS_IN(); 3174 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD37: fmul dword ptr [0x36170f08] */ 3175 PUSH32(esp, ecx); /* 0x3610AD3D: push ecx */ 3176 ecx = 0x3630DBB8u; /* 0x3610AD3E: mov ecx, 0x3630dbb8 */ 3177 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD43: fsub dword ptr [0x36170f04] */ 3178 _st[0] += (double)*(float*)ADDR(0x3617638C); /* 0x3610AD49: fadd dword ptr [0x3617638c] */ 3179 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD4F: fstp dword ptr [esp] */ 3180 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD52: call 0x3615bce0 */ /* not lifted */ 3181 RECOMP_FLAGS_IN(); 3182 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD57: fmul dword ptr [0x36170f08] */ 3183 PUSH32(esp, ecx); /* 0x3610AD5D: push ecx */ 3184 ecx = MEM32(esi + 0x94); /* 0x3610AD5E: mov ecx, dword ptr [esi + 0x94] */ 3185 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD64: fsub dword ptr [0x36170f04] */ 3186 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610AD6A: fadd dword ptr [ebp - 4] */ 3187 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD6D: fstp dword ptr [esp] */ 3188 PUSH32(esp, ecx); /* 0x3610AD70: push ecx */ 3189 goto L_3610AE5D; /* 0x3610AD71: jmp 0x3610ae5d */ 3190 L_3610AD76: 3191 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD76: call 0x3615bce0 */ /* not lifted */ 3192 RECOMP_FLAGS_IN(); 3193 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD7B: fmul dword ptr [0x36170f08] */ 3194 PUSH32(esp, ecx); /* 0x3610AD81: push ecx */ 3195 ecx = 0x3630DBB8u; /* 0x3610AD82: mov ecx, 0x3630dbb8 */ 3196 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD87: fsub dword ptr [0x36170f04] */ 3197 _st[0] += (double)*(float*)ADDR(0x36176388); /* 0x3610AD8D: fadd dword ptr [0x36176388] */ 3198 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD93: fstp dword ptr [esp] */ 3199 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD96: call 0x3615bce0 */ /* not lifted */ 3200 RECOMP_FLAGS_IN(); 3201 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD9B: fmul dword ptr [0x36170f08] */ 3202 PUSH32(esp, ecx); /* 0x3610ADA1: push ecx */ 3203 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ADA2: fsub dword ptr [0x36170f04] */ 3204 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610ADA8: fadd dword ptr [ebp - 4] */ 3205 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADAB: fstp dword ptr [esp] */ 3206 PUSH32(esp, ecx); /* 0x3610ADAE: push ecx */ 3207 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610ADAF: fld dword ptr [esi + 0x94] */ 3208 ecx = esi; /* 0x3610ADB5: mov ecx, esi */ 3209 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3610ADB7: fmul dword ptr [0x36170464] */ 3210 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADBD: fstp dword ptr [esp] */ 3211 RECOMP_ICALL(0x3610A780u); /* 0x3610ADC0: call 0x3610a780 */ /* not lifted */ 3212 RECOMP_FLAGS_IN(); 3213 ecx = 0x3630DBB8u; /* 0x3610ADC5: mov ecx, 0x3630dbb8 */ 3214 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ADCA: call 0x3615bce0 */ /* not lifted */ 3215 RECOMP_FLAGS_IN(); 3216 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ADCF: fmul dword ptr [0x36170f08] */ 3217 PUSH32(esp, ecx); /* 0x3610ADD5: push ecx */ 3218 ecx = 0x3630DBB8u; /* 0x3610ADD6: mov ecx, 0x3630dbb8 */ 3219 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ADDB: fsub dword ptr [0x36170f04] */ 3220 _st[0] += (double)*(float*)ADDR(0x36176384); /* 0x3610ADE1: fadd dword ptr [0x36176384] */ 3221 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADE7: fstp dword ptr [esp] */ 3222 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ADEA: call 0x3615bce0 */ /* not lifted */ 3223 RECOMP_FLAGS_IN(); 3224 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ADEF: fmul dword ptr [0x36170f08] */ 3225 PUSH32(esp, ecx); /* 0x3610ADF5: push ecx */ 3226 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ADF6: fsub dword ptr [0x36170f04] */ 3227 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610ADFC: fadd dword ptr [ebp - 4] */ 3228 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADFF: fstp dword ptr [esp] */ 3229 PUSH32(esp, ecx); /* 0x3610AE02: push ecx */ 3230 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AE03: fld dword ptr [esi + 0x94] */ 3231 ecx = esi; /* 0x3610AE09: mov ecx, esi */ 3232 _st[0] *= (double)*(float*)ADDR(0x36170828); /* 0x3610AE0B: fmul dword ptr [0x36170828] */ 3233 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE11: fstp dword ptr [esp] */ 3234 RECOMP_ICALL(0x3610A780u); /* 0x3610AE14: call 0x3610a780 */ /* not lifted */ 3235 RECOMP_FLAGS_IN(); 3236 ecx = 0x3630DBB8u; /* 0x3610AE19: mov ecx, 0x3630dbb8 */ 3237 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AE1E: call 0x3615bce0 */ /* not lifted */ 3238 RECOMP_FLAGS_IN(); 3239 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AE23: fmul dword ptr [0x36170f08] */ 3240 PUSH32(esp, ecx); /* 0x3610AE29: push ecx */ 3241 ecx = 0x3630DBB8u; /* 0x3610AE2A: mov ecx, 0x3630dbb8 */ 3242 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AE2F: fsub dword ptr [0x36170f04] */ 3243 _st[0] += (double)*(float*)ADDR(0x36176380); /* 0x3610AE35: fadd dword ptr [0x36176380] */ 3244 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE3B: fstp dword ptr [esp] */ 3245 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AE3E: call 0x3615bce0 */ /* not lifted */ 3246 RECOMP_FLAGS_IN(); 3247 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AE43: fmul dword ptr [0x36170f08] */ 3248 edx = MEM32(esi + 0x94); /* 0x3610AE49: mov edx, dword ptr [esi + 0x94] */ 3249 PUSH32(esp, ecx); /* 0x3610AE4F: push ecx */ 3250 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AE50: fsub dword ptr [0x36170f04] */ 3251 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610AE56: fadd dword ptr [ebp - 4] */ 3252 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE59: fstp dword ptr [esp] */ 3253 PUSH32(esp, edx); /* 0x3610AE5C: push edx */ 3254 L_3610AE5D: 3255 ecx = esi; /* 0x3610AE5D: mov ecx, esi */ 3256 RECOMP_ICALL(0x3610A780u); /* 0x3610AE5F: call 0x3610a780 */ /* not lifted */ 3257 RECOMP_FLAGS_IN(); 3258 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610AE64: fld dword ptr [ebp - 4] */ 3259 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 3260 edi = edi - 1; /* 0x3610AE67: dec edi */ 3261 _flag_k = FK_DEC; 3262 _st[0] += (double)*(float*)ADDR(0x36174FC8); /* 0x3610AE68: fadd dword ptr [0x36174fc8] */ 3263 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610AE6E: fstp dword ptr [ebp - 4] */ 3264 RECOMP_BACKEDGE(); 3265 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610AC7F; /* 0x3610AE71: jne 0x3610ac7f */ 3266 L_3610AE77: 3267 eax = MEM32(ebp + (-0x4)); /* 0x3610AE77: mov eax, dword ptr [ebp - 4] */ 3268 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AE7A: fld dword ptr [esi + 0x94] */ 3269 PUSH32(esp, 0x3FC90FDBu); /* 0x3610AE80: push 0x3fc90fdb */ 3270 _st[0] += _st[0]; /* 0x3610AE85: fadd st(0), st(0) */ 3271 PUSH32(esp, eax); /* 0x3610AE87: push eax */ 3272 PUSH32(esp, ecx); /* 0x3610AE88: push ecx */ 3273 ecx = esi; /* 0x3610AE89: mov ecx, esi */ 3274 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE8B: fstp dword ptr [esp] */ 3275 RECOMP_ICALL(0x3610A780u); /* 0x3610AE8E: call 0x3610a780 */ /* not lifted */ 3276 RECOMP_FLAGS_IN(); 3277 edi = POP32_VAL(esp); /* 0x3610AE93: pop edi */ 3278 esi = POP32_VAL(esp); /* 0x3610AE94: pop esi */ 3279 esp = ebp; /* 0x3610AE95: mov esp, ebp */ 3280 ebp = POP32_VAL(esp); /* 0x3610AE97: pop ebp */ 3281 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610AE98: ret */ 3282 RECOMP_REGS_OUT(); 3283 } 3284 3285 void sub_3610AC7F(void) { 3286 int _fpu_cmp = 0; 3287 uint32_t _cf = 0; 3288 int _df = 1; 3289 uint32_t _flag_k = FK_NONE; 3290 uint32_t _flag_a = 0, _flag_b = 0; 3291 uint32_t _itail_tgt = 0; 3292 RECOMP_REGS_LOCALS 3293 RECOMP_ENTER(0x3610AC7Fu); 3294 3295 L_3610AC7F: 3296 eax = MEM32(esi + 0x28); /* 0x3610AC7F: mov eax, dword ptr [esi + 0x28] */ 3297 /* test HI8(eax), 0x10u */ /* 0x3610AC82: test ah, 0x10 */ 3298 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 3299 _cf = 0; 3300 _flag_k = FK_NARROW(FK_TEST, 24); 3301 ecx = 0x3630DBB8u; /* 0x3610AC85: mov ecx, 0x3630dbb8 */ 3302 if (TEST_Z(_flag_a, _flag_b)) goto L_3610AD76; /* 0x3610AC8A: je 0x3610ad76 */ 3303 L_3610AC90: 3304 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AC90: call 0x3615bce0 */ /* not lifted */ 3305 RECOMP_FLAGS_IN(); 3306 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AC95: fmul dword ptr [0x36170f08] */ 3307 PUSH32(esp, ecx); /* 0x3610AC9B: push ecx */ 3308 ecx = 0x3630DBB8u; /* 0x3610AC9C: mov ecx, 0x3630dbb8 */ 3309 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ACA1: fsub dword ptr [0x36170f04] */ 3310 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACA7: fstp dword ptr [esp] */ 3311 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ACAA: call 0x3615bce0 */ /* not lifted */ 3312 RECOMP_FLAGS_IN(); 3313 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ACAF: fmul dword ptr [0x36170f08] */ 3314 PUSH32(esp, ecx); /* 0x3610ACB5: push ecx */ 3315 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ACB6: fsub dword ptr [0x36170f04] */ 3316 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610ACBC: fadd dword ptr [ebp - 4] */ 3317 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACBF: fstp dword ptr [esp] */ 3318 PUSH32(esp, ecx); /* 0x3610ACC2: push ecx */ 3319 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610ACC3: fld dword ptr [esi + 0x94] */ 3320 ecx = esi; /* 0x3610ACC9: mov ecx, esi */ 3321 _st[0] *= (double)*(float*)ADDR(0x36170828); /* 0x3610ACCB: fmul dword ptr [0x36170828] */ 3322 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACD1: fstp dword ptr [esp] */ 3323 RECOMP_ICALL(0x3610A780u); /* 0x3610ACD4: call 0x3610a780 */ /* not lifted */ 3324 RECOMP_FLAGS_IN(); 3325 ecx = 0x3630DBB8u; /* 0x3610ACD9: mov ecx, 0x3630dbb8 */ 3326 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ACDE: call 0x3615bce0 */ /* not lifted */ 3327 RECOMP_FLAGS_IN(); 3328 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ACE3: fmul dword ptr [0x36170f08] */ 3329 PUSH32(esp, ecx); /* 0x3610ACE9: push ecx */ 3330 ecx = 0x3630DBB8u; /* 0x3610ACEA: mov ecx, 0x3630dbb8 */ 3331 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ACEF: fsub dword ptr [0x36170f04] */ 3332 _st[0] += (double)*(float*)ADDR(0x36176390); /* 0x3610ACF5: fadd dword ptr [0x36176390] */ 3333 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACFB: fstp dword ptr [esp] */ 3334 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ACFE: call 0x3615bce0 */ /* not lifted */ 3335 RECOMP_FLAGS_IN(); 3336 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD03: fmul dword ptr [0x36170f08] */ 3337 PUSH32(esp, ecx); /* 0x3610AD09: push ecx */ 3338 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD0A: fsub dword ptr [0x36170f04] */ 3339 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610AD10: fadd dword ptr [ebp - 4] */ 3340 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD13: fstp dword ptr [esp] */ 3341 PUSH32(esp, ecx); /* 0x3610AD16: push ecx */ 3342 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AD17: fld dword ptr [esi + 0x94] */ 3343 ecx = esi; /* 0x3610AD1D: mov ecx, esi */ 3344 _st[0] *= (double)*(float*)ADDR(0x361729D0); /* 0x3610AD1F: fmul dword ptr [0x361729d0] */ 3345 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD25: fstp dword ptr [esp] */ 3346 RECOMP_ICALL(0x3610A780u); /* 0x3610AD28: call 0x3610a780 */ /* not lifted */ 3347 RECOMP_FLAGS_IN(); 3348 ecx = 0x3630DBB8u; /* 0x3610AD2D: mov ecx, 0x3630dbb8 */ 3349 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD32: call 0x3615bce0 */ /* not lifted */ 3350 RECOMP_FLAGS_IN(); 3351 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD37: fmul dword ptr [0x36170f08] */ 3352 PUSH32(esp, ecx); /* 0x3610AD3D: push ecx */ 3353 ecx = 0x3630DBB8u; /* 0x3610AD3E: mov ecx, 0x3630dbb8 */ 3354 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD43: fsub dword ptr [0x36170f04] */ 3355 _st[0] += (double)*(float*)ADDR(0x3617638C); /* 0x3610AD49: fadd dword ptr [0x3617638c] */ 3356 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD4F: fstp dword ptr [esp] */ 3357 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD52: call 0x3615bce0 */ /* not lifted */ 3358 RECOMP_FLAGS_IN(); 3359 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD57: fmul dword ptr [0x36170f08] */ 3360 PUSH32(esp, ecx); /* 0x3610AD5D: push ecx */ 3361 ecx = MEM32(esi + 0x94); /* 0x3610AD5E: mov ecx, dword ptr [esi + 0x94] */ 3362 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD64: fsub dword ptr [0x36170f04] */ 3363 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610AD6A: fadd dword ptr [ebp - 4] */ 3364 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD6D: fstp dword ptr [esp] */ 3365 PUSH32(esp, ecx); /* 0x3610AD70: push ecx */ 3366 goto L_3610AE5D; /* 0x3610AD71: jmp 0x3610ae5d */ 3367 L_3610AD76: 3368 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD76: call 0x3615bce0 */ /* not lifted */ 3369 RECOMP_FLAGS_IN(); 3370 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD7B: fmul dword ptr [0x36170f08] */ 3371 PUSH32(esp, ecx); /* 0x3610AD81: push ecx */ 3372 ecx = 0x3630DBB8u; /* 0x3610AD82: mov ecx, 0x3630dbb8 */ 3373 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD87: fsub dword ptr [0x36170f04] */ 3374 _st[0] += (double)*(float*)ADDR(0x36176388); /* 0x3610AD8D: fadd dword ptr [0x36176388] */ 3375 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD93: fstp dword ptr [esp] */ 3376 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD96: call 0x3615bce0 */ /* not lifted */ 3377 RECOMP_FLAGS_IN(); 3378 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD9B: fmul dword ptr [0x36170f08] */ 3379 PUSH32(esp, ecx); /* 0x3610ADA1: push ecx */ 3380 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ADA2: fsub dword ptr [0x36170f04] */ 3381 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610ADA8: fadd dword ptr [ebp - 4] */ 3382 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADAB: fstp dword ptr [esp] */ 3383 PUSH32(esp, ecx); /* 0x3610ADAE: push ecx */ 3384 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610ADAF: fld dword ptr [esi + 0x94] */ 3385 ecx = esi; /* 0x3610ADB5: mov ecx, esi */ 3386 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3610ADB7: fmul dword ptr [0x36170464] */ 3387 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADBD: fstp dword ptr [esp] */ 3388 RECOMP_ICALL(0x3610A780u); /* 0x3610ADC0: call 0x3610a780 */ /* not lifted */ 3389 RECOMP_FLAGS_IN(); 3390 ecx = 0x3630DBB8u; /* 0x3610ADC5: mov ecx, 0x3630dbb8 */ 3391 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ADCA: call 0x3615bce0 */ /* not lifted */ 3392 RECOMP_FLAGS_IN(); 3393 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ADCF: fmul dword ptr [0x36170f08] */ 3394 PUSH32(esp, ecx); /* 0x3610ADD5: push ecx */ 3395 ecx = 0x3630DBB8u; /* 0x3610ADD6: mov ecx, 0x3630dbb8 */ 3396 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ADDB: fsub dword ptr [0x36170f04] */ 3397 _st[0] += (double)*(float*)ADDR(0x36176384); /* 0x3610ADE1: fadd dword ptr [0x36176384] */ 3398 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADE7: fstp dword ptr [esp] */ 3399 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ADEA: call 0x3615bce0 */ /* not lifted */ 3400 RECOMP_FLAGS_IN(); 3401 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ADEF: fmul dword ptr [0x36170f08] */ 3402 PUSH32(esp, ecx); /* 0x3610ADF5: push ecx */ 3403 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ADF6: fsub dword ptr [0x36170f04] */ 3404 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610ADFC: fadd dword ptr [ebp - 4] */ 3405 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADFF: fstp dword ptr [esp] */ 3406 PUSH32(esp, ecx); /* 0x3610AE02: push ecx */ 3407 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AE03: fld dword ptr [esi + 0x94] */ 3408 ecx = esi; /* 0x3610AE09: mov ecx, esi */ 3409 _st[0] *= (double)*(float*)ADDR(0x36170828); /* 0x3610AE0B: fmul dword ptr [0x36170828] */ 3410 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE11: fstp dword ptr [esp] */ 3411 RECOMP_ICALL(0x3610A780u); /* 0x3610AE14: call 0x3610a780 */ /* not lifted */ 3412 RECOMP_FLAGS_IN(); 3413 ecx = 0x3630DBB8u; /* 0x3610AE19: mov ecx, 0x3630dbb8 */ 3414 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AE1E: call 0x3615bce0 */ /* not lifted */ 3415 RECOMP_FLAGS_IN(); 3416 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AE23: fmul dword ptr [0x36170f08] */ 3417 PUSH32(esp, ecx); /* 0x3610AE29: push ecx */ 3418 ecx = 0x3630DBB8u; /* 0x3610AE2A: mov ecx, 0x3630dbb8 */ 3419 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AE2F: fsub dword ptr [0x36170f04] */ 3420 _st[0] += (double)*(float*)ADDR(0x36176380); /* 0x3610AE35: fadd dword ptr [0x36176380] */ 3421 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE3B: fstp dword ptr [esp] */ 3422 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AE3E: call 0x3615bce0 */ /* not lifted */ 3423 RECOMP_FLAGS_IN(); 3424 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AE43: fmul dword ptr [0x36170f08] */ 3425 edx = MEM32(esi + 0x94); /* 0x3610AE49: mov edx, dword ptr [esi + 0x94] */ 3426 PUSH32(esp, ecx); /* 0x3610AE4F: push ecx */ 3427 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AE50: fsub dword ptr [0x36170f04] */ 3428 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610AE56: fadd dword ptr [ebp - 4] */ 3429 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE59: fstp dword ptr [esp] */ 3430 PUSH32(esp, edx); /* 0x3610AE5C: push edx */ 3431 L_3610AE5D: 3432 ecx = esi; /* 0x3610AE5D: mov ecx, esi */ 3433 RECOMP_ICALL(0x3610A780u); /* 0x3610AE5F: call 0x3610a780 */ /* not lifted */ 3434 RECOMP_FLAGS_IN(); 3435 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610AE64: fld dword ptr [ebp - 4] */ 3436 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 3437 edi = edi - 1; /* 0x3610AE67: dec edi */ 3438 _flag_k = FK_DEC; 3439 _st[0] += (double)*(float*)ADDR(0x36174FC8); /* 0x3610AE68: fadd dword ptr [0x36174fc8] */ 3440 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610AE6E: fstp dword ptr [ebp - 4] */ 3441 RECOMP_BACKEDGE(); 3442 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610AC7F; /* 0x3610AE71: jne 0x3610ac7f */ 3443 L_3610AE77: 3444 eax = MEM32(ebp + (-0x4)); /* 0x3610AE77: mov eax, dword ptr [ebp - 4] */ 3445 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AE7A: fld dword ptr [esi + 0x94] */ 3446 PUSH32(esp, 0x3FC90FDBu); /* 0x3610AE80: push 0x3fc90fdb */ 3447 _st[0] += _st[0]; /* 0x3610AE85: fadd st(0), st(0) */ 3448 PUSH32(esp, eax); /* 0x3610AE87: push eax */ 3449 PUSH32(esp, ecx); /* 0x3610AE88: push ecx */ 3450 ecx = esi; /* 0x3610AE89: mov ecx, esi */ 3451 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE8B: fstp dword ptr [esp] */ 3452 RECOMP_ICALL(0x3610A780u); /* 0x3610AE8E: call 0x3610a780 */ /* not lifted */ 3453 RECOMP_FLAGS_IN(); 3454 edi = POP32_VAL(esp); /* 0x3610AE93: pop edi */ 3455 esi = POP32_VAL(esp); /* 0x3610AE94: pop esi */ 3456 esp = ebp; /* 0x3610AE95: mov esp, ebp */ 3457 ebp = POP32_VAL(esp); /* 0x3610AE97: pop ebp */ 3458 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610AE98: ret */ 3459 RECOMP_REGS_OUT(); 3460 } 3461 3462 void sub_3610AE5D(void) { 3463 int _fpu_cmp = 0; 3464 uint32_t _cf = 0; 3465 int _df = 1; 3466 uint32_t _flag_k = FK_NONE; 3467 uint32_t _flag_a = 0, _flag_b = 0; 3468 uint32_t _itail_tgt = 0; 3469 RECOMP_REGS_LOCALS 3470 RECOMP_ENTER(0x3610AE5Du); 3471 3472 goto L_3610AE5D; 3473 L_3610AC7F: 3474 eax = MEM32(esi + 0x28); /* 0x3610AC7F: mov eax, dword ptr [esi + 0x28] */ 3475 /* test HI8(eax), 0x10u */ /* 0x3610AC82: test ah, 0x10 */ 3476 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 3477 _cf = 0; 3478 _flag_k = FK_NARROW(FK_TEST, 24); 3479 ecx = 0x3630DBB8u; /* 0x3610AC85: mov ecx, 0x3630dbb8 */ 3480 if (TEST_Z(_flag_a, _flag_b)) goto L_3610AD76; /* 0x3610AC8A: je 0x3610ad76 */ 3481 L_3610AC90: 3482 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AC90: call 0x3615bce0 */ /* not lifted */ 3483 RECOMP_FLAGS_IN(); 3484 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AC95: fmul dword ptr [0x36170f08] */ 3485 PUSH32(esp, ecx); /* 0x3610AC9B: push ecx */ 3486 ecx = 0x3630DBB8u; /* 0x3610AC9C: mov ecx, 0x3630dbb8 */ 3487 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ACA1: fsub dword ptr [0x36170f04] */ 3488 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACA7: fstp dword ptr [esp] */ 3489 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ACAA: call 0x3615bce0 */ /* not lifted */ 3490 RECOMP_FLAGS_IN(); 3491 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ACAF: fmul dword ptr [0x36170f08] */ 3492 PUSH32(esp, ecx); /* 0x3610ACB5: push ecx */ 3493 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ACB6: fsub dword ptr [0x36170f04] */ 3494 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610ACBC: fadd dword ptr [ebp - 4] */ 3495 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACBF: fstp dword ptr [esp] */ 3496 PUSH32(esp, ecx); /* 0x3610ACC2: push ecx */ 3497 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610ACC3: fld dword ptr [esi + 0x94] */ 3498 ecx = esi; /* 0x3610ACC9: mov ecx, esi */ 3499 _st[0] *= (double)*(float*)ADDR(0x36170828); /* 0x3610ACCB: fmul dword ptr [0x36170828] */ 3500 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACD1: fstp dword ptr [esp] */ 3501 RECOMP_ICALL(0x3610A780u); /* 0x3610ACD4: call 0x3610a780 */ /* not lifted */ 3502 RECOMP_FLAGS_IN(); 3503 ecx = 0x3630DBB8u; /* 0x3610ACD9: mov ecx, 0x3630dbb8 */ 3504 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ACDE: call 0x3615bce0 */ /* not lifted */ 3505 RECOMP_FLAGS_IN(); 3506 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ACE3: fmul dword ptr [0x36170f08] */ 3507 PUSH32(esp, ecx); /* 0x3610ACE9: push ecx */ 3508 ecx = 0x3630DBB8u; /* 0x3610ACEA: mov ecx, 0x3630dbb8 */ 3509 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ACEF: fsub dword ptr [0x36170f04] */ 3510 _st[0] += (double)*(float*)ADDR(0x36176390); /* 0x3610ACF5: fadd dword ptr [0x36176390] */ 3511 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ACFB: fstp dword ptr [esp] */ 3512 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ACFE: call 0x3615bce0 */ /* not lifted */ 3513 RECOMP_FLAGS_IN(); 3514 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD03: fmul dword ptr [0x36170f08] */ 3515 PUSH32(esp, ecx); /* 0x3610AD09: push ecx */ 3516 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD0A: fsub dword ptr [0x36170f04] */ 3517 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610AD10: fadd dword ptr [ebp - 4] */ 3518 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD13: fstp dword ptr [esp] */ 3519 PUSH32(esp, ecx); /* 0x3610AD16: push ecx */ 3520 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AD17: fld dword ptr [esi + 0x94] */ 3521 ecx = esi; /* 0x3610AD1D: mov ecx, esi */ 3522 _st[0] *= (double)*(float*)ADDR(0x361729D0); /* 0x3610AD1F: fmul dword ptr [0x361729d0] */ 3523 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD25: fstp dword ptr [esp] */ 3524 RECOMP_ICALL(0x3610A780u); /* 0x3610AD28: call 0x3610a780 */ /* not lifted */ 3525 RECOMP_FLAGS_IN(); 3526 ecx = 0x3630DBB8u; /* 0x3610AD2D: mov ecx, 0x3630dbb8 */ 3527 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD32: call 0x3615bce0 */ /* not lifted */ 3528 RECOMP_FLAGS_IN(); 3529 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD37: fmul dword ptr [0x36170f08] */ 3530 PUSH32(esp, ecx); /* 0x3610AD3D: push ecx */ 3531 ecx = 0x3630DBB8u; /* 0x3610AD3E: mov ecx, 0x3630dbb8 */ 3532 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD43: fsub dword ptr [0x36170f04] */ 3533 _st[0] += (double)*(float*)ADDR(0x3617638C); /* 0x3610AD49: fadd dword ptr [0x3617638c] */ 3534 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD4F: fstp dword ptr [esp] */ 3535 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD52: call 0x3615bce0 */ /* not lifted */ 3536 RECOMP_FLAGS_IN(); 3537 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD57: fmul dword ptr [0x36170f08] */ 3538 PUSH32(esp, ecx); /* 0x3610AD5D: push ecx */ 3539 ecx = MEM32(esi + 0x94); /* 0x3610AD5E: mov ecx, dword ptr [esi + 0x94] */ 3540 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD64: fsub dword ptr [0x36170f04] */ 3541 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610AD6A: fadd dword ptr [ebp - 4] */ 3542 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD6D: fstp dword ptr [esp] */ 3543 PUSH32(esp, ecx); /* 0x3610AD70: push ecx */ 3544 goto L_3610AE5D; /* 0x3610AD71: jmp 0x3610ae5d */ 3545 L_3610AD76: 3546 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD76: call 0x3615bce0 */ /* not lifted */ 3547 RECOMP_FLAGS_IN(); 3548 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD7B: fmul dword ptr [0x36170f08] */ 3549 PUSH32(esp, ecx); /* 0x3610AD81: push ecx */ 3550 ecx = 0x3630DBB8u; /* 0x3610AD82: mov ecx, 0x3630dbb8 */ 3551 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AD87: fsub dword ptr [0x36170f04] */ 3552 _st[0] += (double)*(float*)ADDR(0x36176388); /* 0x3610AD8D: fadd dword ptr [0x36176388] */ 3553 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AD93: fstp dword ptr [esp] */ 3554 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AD96: call 0x3615bce0 */ /* not lifted */ 3555 RECOMP_FLAGS_IN(); 3556 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AD9B: fmul dword ptr [0x36170f08] */ 3557 PUSH32(esp, ecx); /* 0x3610ADA1: push ecx */ 3558 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ADA2: fsub dword ptr [0x36170f04] */ 3559 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610ADA8: fadd dword ptr [ebp - 4] */ 3560 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADAB: fstp dword ptr [esp] */ 3561 PUSH32(esp, ecx); /* 0x3610ADAE: push ecx */ 3562 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610ADAF: fld dword ptr [esi + 0x94] */ 3563 ecx = esi; /* 0x3610ADB5: mov ecx, esi */ 3564 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3610ADB7: fmul dword ptr [0x36170464] */ 3565 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADBD: fstp dword ptr [esp] */ 3566 RECOMP_ICALL(0x3610A780u); /* 0x3610ADC0: call 0x3610a780 */ /* not lifted */ 3567 RECOMP_FLAGS_IN(); 3568 ecx = 0x3630DBB8u; /* 0x3610ADC5: mov ecx, 0x3630dbb8 */ 3569 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ADCA: call 0x3615bce0 */ /* not lifted */ 3570 RECOMP_FLAGS_IN(); 3571 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ADCF: fmul dword ptr [0x36170f08] */ 3572 PUSH32(esp, ecx); /* 0x3610ADD5: push ecx */ 3573 ecx = 0x3630DBB8u; /* 0x3610ADD6: mov ecx, 0x3630dbb8 */ 3574 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ADDB: fsub dword ptr [0x36170f04] */ 3575 _st[0] += (double)*(float*)ADDR(0x36176384); /* 0x3610ADE1: fadd dword ptr [0x36176384] */ 3576 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADE7: fstp dword ptr [esp] */ 3577 RECOMP_ICALL(0x3615BCE0u); /* 0x3610ADEA: call 0x3615bce0 */ /* not lifted */ 3578 RECOMP_FLAGS_IN(); 3579 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610ADEF: fmul dword ptr [0x36170f08] */ 3580 PUSH32(esp, ecx); /* 0x3610ADF5: push ecx */ 3581 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610ADF6: fsub dword ptr [0x36170f04] */ 3582 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610ADFC: fadd dword ptr [ebp - 4] */ 3583 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610ADFF: fstp dword ptr [esp] */ 3584 PUSH32(esp, ecx); /* 0x3610AE02: push ecx */ 3585 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AE03: fld dword ptr [esi + 0x94] */ 3586 ecx = esi; /* 0x3610AE09: mov ecx, esi */ 3587 _st[0] *= (double)*(float*)ADDR(0x36170828); /* 0x3610AE0B: fmul dword ptr [0x36170828] */ 3588 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE11: fstp dword ptr [esp] */ 3589 RECOMP_ICALL(0x3610A780u); /* 0x3610AE14: call 0x3610a780 */ /* not lifted */ 3590 RECOMP_FLAGS_IN(); 3591 ecx = 0x3630DBB8u; /* 0x3610AE19: mov ecx, 0x3630dbb8 */ 3592 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AE1E: call 0x3615bce0 */ /* not lifted */ 3593 RECOMP_FLAGS_IN(); 3594 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AE23: fmul dword ptr [0x36170f08] */ 3595 PUSH32(esp, ecx); /* 0x3610AE29: push ecx */ 3596 ecx = 0x3630DBB8u; /* 0x3610AE2A: mov ecx, 0x3630dbb8 */ 3597 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AE2F: fsub dword ptr [0x36170f04] */ 3598 _st[0] += (double)*(float*)ADDR(0x36176380); /* 0x3610AE35: fadd dword ptr [0x36176380] */ 3599 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE3B: fstp dword ptr [esp] */ 3600 RECOMP_ICALL(0x3615BCE0u); /* 0x3610AE3E: call 0x3615bce0 */ /* not lifted */ 3601 RECOMP_FLAGS_IN(); 3602 _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3610AE43: fmul dword ptr [0x36170f08] */ 3603 edx = MEM32(esi + 0x94); /* 0x3610AE49: mov edx, dword ptr [esi + 0x94] */ 3604 PUSH32(esp, ecx); /* 0x3610AE4F: push ecx */ 3605 _st[0] -= (double)*(float*)ADDR(0x36170F04); /* 0x3610AE50: fsub dword ptr [0x36170f04] */ 3606 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610AE56: fadd dword ptr [ebp - 4] */ 3607 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE59: fstp dword ptr [esp] */ 3608 PUSH32(esp, edx); /* 0x3610AE5C: push edx */ 3609 L_3610AE5D: 3610 ecx = esi; /* 0x3610AE5D: mov ecx, esi */ 3611 RECOMP_ICALL(0x3610A780u); /* 0x3610AE5F: call 0x3610a780 */ /* not lifted */ 3612 RECOMP_FLAGS_IN(); 3613 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3610AE64: fld dword ptr [ebp - 4] */ 3614 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 3615 edi = edi - 1; /* 0x3610AE67: dec edi */ 3616 _flag_k = FK_DEC; 3617 _st[0] += (double)*(float*)ADDR(0x36174FC8); /* 0x3610AE68: fadd dword ptr [0x36174fc8] */ 3618 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610AE6E: fstp dword ptr [ebp - 4] */ 3619 RECOMP_BACKEDGE(); 3620 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610AC7F; /* 0x3610AE71: jne 0x3610ac7f */ 3621 L_3610AE77: 3622 eax = MEM32(ebp + (-0x4)); /* 0x3610AE77: mov eax, dword ptr [ebp - 4] */ 3623 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x3610AE7A: fld dword ptr [esi + 0x94] */ 3624 PUSH32(esp, 0x3FC90FDBu); /* 0x3610AE80: push 0x3fc90fdb */ 3625 _st[0] += _st[0]; /* 0x3610AE85: fadd st(0), st(0) */ 3626 PUSH32(esp, eax); /* 0x3610AE87: push eax */ 3627 PUSH32(esp, ecx); /* 0x3610AE88: push ecx */ 3628 ecx = esi; /* 0x3610AE89: mov ecx, esi */ 3629 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3610AE8B: fstp dword ptr [esp] */ 3630 RECOMP_ICALL(0x3610A780u); /* 0x3610AE8E: call 0x3610a780 */ /* not lifted */ 3631 RECOMP_FLAGS_IN(); 3632 edi = POP32_VAL(esp); /* 0x3610AE93: pop edi */ 3633 esi = POP32_VAL(esp); /* 0x3610AE94: pop esi */ 3634 esp = ebp; /* 0x3610AE95: mov esp, ebp */ 3635 ebp = POP32_VAL(esp); /* 0x3610AE97: pop ebp */ 3636 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610AE98: ret */ 3637 RECOMP_REGS_OUT(); 3638 } 3639 3640 void sub_3610AEA0(void) { 3641 int _fpu_cmp = 0; 3642 uint32_t _cf = 0; 3643 int _df = 1; 3644 uint32_t _flag_k = FK_NONE; 3645 uint32_t _flag_a = 0, _flag_b = 0; 3646 uint32_t _itail_tgt = 0; 3647 RECOMP_REGS_LOCALS 3648 RECOMP_ENTER(0x3610AEA0u); 3649 3650 L_3610AEA0: 3651 PUSH32(esp, ebp); /* 0x3610AEA0: push ebp */ 3652 ebp = esp; /* 0x3610AEA1: mov ebp, esp */ 3653 PUSH32(esp, esi); /* 0x3610AEA3: push esi */ 3654 esi = ecx; /* 0x3610AEA4: mov esi, ecx */ 3655 RECOMP_ICALL(0x3610AFB0u); /* 0x3610AEA6: call 0x3610afb0 */ /* not lifted */ 3656 RECOMP_FLAGS_IN(); 3657 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610AEAB: test byte ptr [ebp + 8], 1 */ 3658 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 3659 _cf = 0; 3660 _flag_k = FK_NARROW(FK_TEST, 24); 3661 if (TEST_Z(_flag_a, _flag_b)) goto L_3610AEBA; /* 0x3610AEAF: je 0x3610aeba */ 3662 L_3610AEB1: 3663 PUSH32(esp, esi); /* 0x3610AEB1: push esi */ 3664 RECOMP_ICALL(0x3615FCC4u); /* 0x3610AEB2: call 0x3615fcc4 */ /* not lifted */ 3665 RECOMP_FLAGS_IN(); 3666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3668 esp = esp + 4; /* 0x3610AEB7: add esp, 4 */ 3669 _flag_k = FK_ADD; 3670 L_3610AEBA: 3671 eax = esi; /* 0x3610AEBA: mov eax, esi */ 3672 esi = POP32_VAL(esp); /* 0x3610AEBC: pop esi */ 3673 ebp = POP32_VAL(esp); /* 0x3610AEBD: pop ebp */ 3674 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610AEBE: ret 4 */ 3675 RECOMP_REGS_OUT(); 3676 } 3677 3678 void sub_3610AED0(void) { 3679 int _fpu_cmp = 0; 3680 uint32_t _cf = 0; 3681 int _df = 1; 3682 uint32_t _flag_k = FK_NONE; 3683 uint32_t _flag_a = 0, _flag_b = 0; 3684 uint32_t _itail_tgt = 0; 3685 RECOMP_REGS_LOCALS 3686 RECOMP_ENTER(0x3610AED0u); 3687 3688 L_3610AED0: 3689 PUSH32(esp, ebp); /* 0x3610AED0: push ebp */ 3690 ebp = esp; /* 0x3610AED1: mov ebp, esp */ 3691 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610AED3: push -1 */ 3692 PUSH32(esp, 0x3616A49Eu); /* 0x3610AED5: push 0x3616a49e */ 3693 eax = MEM32(FS_BASE + (0)); /* 0x3610AEDA: mov eax, dword ptr fs:[0] */ 3694 PUSH32(esp, eax); /* 0x3610AEE0: push eax */ 3695 MEM32(FS_BASE + (0)) = esp; /* 0x3610AEE1: mov dword ptr fs:[0], esp */ 3696 PUSH32(esp, ecx); /* 0x3610AEE8: push ecx */ 3697 eax = MEM32(ebp + 0x8); /* 0x3610AEE9: mov eax, dword ptr [ebp + 8] */ 3698 PUSH32(esp, ebx); /* 0x3610AEEC: push ebx */ 3699 PUSH32(esp, esi); /* 0x3610AEED: push esi */ 3700 PUSH32(esp, edi); /* 0x3610AEEE: push edi */ 3701 esi = ecx; /* 0x3610AEEF: mov esi, ecx */ 3702 PUSH32(esp, eax); /* 0x3610AEF1: push eax */ 3703 MEM32(ebp + (-0x10)) = esi; /* 0x3610AEF2: mov dword ptr [ebp - 0x10], esi */ 3704 RECOMP_ICALL(0x360FC270u); /* 0x3610AEF5: call 0x360fc270 */ /* not lifted */ 3705 RECOMP_FLAGS_IN(); 3706 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3707 edi = 0; /* 0x3610AEFA: xor edi, edi */ 3708 _cf = 0; 3709 _flag_k = FK_TEST; 3710 MEM32(esi + 0x28) = edi; /* 0x3610AEFC: mov dword ptr [esi + 0x28], edi */ 3711 MEM32(esi + 0x30) = edi; /* 0x3610AEFF: mov dword ptr [esi + 0x30], edi */ 3712 MEM32(esi + 0x34) = edi; /* 0x3610AF02: mov dword ptr [esi + 0x34], edi */ 3713 ecx = esi + 0x68; /* 0x3610AF05: lea ecx, [esi + 0x68] */ 3714 MEM32(ebp + (-0x4)) = edi; /* 0x3610AF08: mov dword ptr [ebp - 4], edi */ 3715 MEM32(esi + 0x38) = edi; /* 0x3610AF0B: mov dword ptr [esi + 0x38], edi */ 3716 MEM32(esi + 0x3C) = edi; /* 0x3610AF0E: mov dword ptr [esi + 0x3c], edi */ 3717 RECOMP_ICALL(0x36137CC0u); /* 0x3610AF11: call 0x36137cc0 */ /* not lifted */ 3718 RECOMP_FLAGS_IN(); 3719 ecx = esi; /* 0x3610AF16: mov ecx, esi */ 3720 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3610AF18: mov byte ptr [ebp - 4], 1 */ 3721 MEM32(esi) = 0x36176398u; /* 0x3610AF1C: mov dword ptr [esi], 0x36176398 */ 3722 RECOMP_ICALL(0x3610B260u); /* 0x3610AF22: call 0x3610b260 */ /* not lifted */ 3723 RECOMP_FLAGS_IN(); 3724 ecx = MEM32(esi + 0x4); /* 0x3610AF27: mov ecx, dword ptr [esi + 4] */ 3725 PUSH32(esp, ecx); /* 0x3610AF2A: push ecx */ 3726 RECOMP_ICALL(0x360F7B00u); /* 0x3610AF2B: call 0x360f7b00 */ /* not lifted */ 3727 RECOMP_FLAGS_IN(); 3728 ecx = eax; /* 0x3610AF30: mov ecx, eax */ 3729 RECOMP_ICALL(0x360FBFF0u); /* 0x3610AF32: call 0x360fbff0 */ /* not lifted */ 3730 RECOMP_FLAGS_IN(); 3731 ecx = eax; /* 0x3610AF37: mov ecx, eax */ 3732 RECOMP_ICALL(0x361371A0u); /* 0x3610AF39: call 0x361371a0 */ /* not lifted */ 3733 RECOMP_FLAGS_IN(); 3734 PUSH32(esp, 0x10Cu); /* 0x3610AF3E: push 0x10c */ 3735 ebx = eax; /* 0x3610AF43: mov ebx, eax */ 3736 RECOMP_ICALL(0x3615FD6Au); /* 0x3610AF45: call 0x3615fd6a */ /* not lifted */ 3737 RECOMP_FLAGS_IN(); 3738 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3740 esp = esp + 4; /* 0x3610AF4A: add esp, 4 */ 3741 _flag_k = FK_ADD; 3742 MEM32(ebp + 0x8) = eax; /* 0x3610AF4D: mov dword ptr [ebp + 8], eax */ 3743 /* cmp eax, edi */ /* 0x3610AF50: cmp eax, edi */ 3744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3746 _flag_k = FK_CMP; 3747 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3610AF52: mov byte ptr [ebp - 4], 2 */ 3748 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610AF61; /* 0x3610AF56: je 0x3610af61 */ 3749 L_3610AF58: 3750 ecx = eax; /* 0x3610AF58: mov ecx, eax */ 3751 RECOMP_ICALL(0x36132920u); /* 0x3610AF5A: call 0x36132920 */ /* not lifted */ 3752 RECOMP_FLAGS_IN(); 3753 goto L_3610AF63; /* 0x3610AF5F: jmp 0x3610af63 */ 3754 L_3610AF61: 3755 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3756 eax = 0; /* 0x3610AF61: xor eax, eax */ 3757 _cf = 0; 3758 _flag_k = FK_TEST; 3759 L_3610AF63: 3760 edx = MEM32(ebp + 0x10); /* 0x3610AF63: mov edx, dword ptr [ebp + 0x10] */ 3761 edi = MEM32(ebp + 0xC); /* 0x3610AF66: mov edi, dword ptr [ebp + 0xc] */ 3762 ecx = MEM32(esi + 0x40); /* 0x3610AF69: mov ecx, dword ptr [esi + 0x40] */ 3763 PUSH32(esp, edx); /* 0x3610AF6C: push edx */ 3764 PUSH32(esp, edi); /* 0x3610AF6D: push edi */ 3765 PUSH32(esp, ecx); /* 0x3610AF6E: push ecx */ 3766 PUSH32(esp, ebx); /* 0x3610AF6F: push ebx */ 3767 PUSH32(esp, eax); /* 0x3610AF70: push eax */ 3768 ecx = esi; /* 0x3610AF71: mov ecx, esi */ 3769 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3610AF73: mov byte ptr [ebp - 4], 1 */ 3770 MEM32(esi + 0x28) = eax; /* 0x3610AF77: mov dword ptr [esi + 0x28], eax */ 3771 RECOMP_ICALL(0x360FC670u); /* 0x3610AF7A: call 0x360fc670 */ /* not lifted */ 3772 RECOMP_FLAGS_IN(); 3773 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3774 _cf = (LO8(eax)) != 0; 3775 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x3610AF7F: neg al */ 3776 _flag_k = FK_NARROW(FK_CMP, 24); 3777 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3610AF81: sbb al, al */ 3778 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 3779 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3780 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3781 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3782 SET_LO8(eax, LO8(eax) + 1); /* 0x3610AF83: inc al */ 3783 _flag_k = FK_NARROW(FK_INC, 24); 3784 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x3610AF85: mov byte ptr [esi + 0x14], al */ 3785 edx = MEM32(edi + 0x4); /* 0x3610AF88: mov edx, dword ptr [edi + 4] */ 3786 MEM32(esi + 0x30) = edx; /* 0x3610AF8B: mov dword ptr [esi + 0x30], edx */ 3787 eax = MEM32(edi + 0x8); /* 0x3610AF8E: mov eax, dword ptr [edi + 8] */ 3788 ecx = esi; /* 0x3610AF91: mov ecx, esi */ 3789 MEM32(esi + 0x34) = eax; /* 0x3610AF93: mov dword ptr [esi + 0x34], eax */ 3790 RECOMP_ICALL(0x3610B370u); /* 0x3610AF96: call 0x3610b370 */ /* not lifted */ 3791 RECOMP_FLAGS_IN(); 3792 ecx = MEM32(ebp + (-0xC)); /* 0x3610AF9B: mov ecx, dword ptr [ebp - 0xc] */ 3793 edi = POP32_VAL(esp); /* 0x3610AF9E: pop edi */ 3794 eax = esi; /* 0x3610AF9F: mov eax, esi */ 3795 esi = POP32_VAL(esp); /* 0x3610AFA1: pop esi */ 3796 ebx = POP32_VAL(esp); /* 0x3610AFA2: pop ebx */ 3797 MEM32(FS_BASE + (0)) = ecx; /* 0x3610AFA3: mov dword ptr fs:[0], ecx */ 3798 esp = ebp; /* 0x3610AFAA: mov esp, ebp */ 3799 ebp = POP32_VAL(esp); /* 0x3610AFAC: pop ebp */ 3800 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3610AFAD: ret 0xc */ 3801 RECOMP_REGS_OUT(); 3802 } 3803 3804 void sub_3610AFB0(void) { 3805 int _fpu_cmp = 0; 3806 uint32_t _cf = 0; 3807 int _df = 1; 3808 uint32_t _flag_k = FK_NONE; 3809 uint32_t _flag_a = 0, _flag_b = 0; 3810 uint32_t _itail_tgt = 0; 3811 RECOMP_REGS_LOCALS 3812 RECOMP_ENTER(0x3610AFB0u); 3813 3814 L_3610AFB0: 3815 PUSH32(esp, ebp); /* 0x3610AFB0: push ebp */ 3816 ebp = esp; /* 0x3610AFB1: mov ebp, esp */ 3817 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610AFB3: push -1 */ 3818 PUSH32(esp, 0x3616A4C3u); /* 0x3610AFB5: push 0x3616a4c3 */ 3819 eax = MEM32(FS_BASE + (0)); /* 0x3610AFBA: mov eax, dword ptr fs:[0] */ 3820 PUSH32(esp, eax); /* 0x3610AFC0: push eax */ 3821 MEM32(FS_BASE + (0)) = esp; /* 0x3610AFC1: mov dword ptr fs:[0], esp */ 3822 PUSH32(esp, ecx); /* 0x3610AFC8: push ecx */ 3823 PUSH32(esp, ebx); /* 0x3610AFC9: push ebx */ 3824 PUSH32(esp, esi); /* 0x3610AFCA: push esi */ 3825 esi = ecx; /* 0x3610AFCB: mov esi, ecx */ 3826 PUSH32(esp, edi); /* 0x3610AFCD: push edi */ 3827 MEM32(ebp + (-0x10)) = esi; /* 0x3610AFCE: mov dword ptr [ebp - 0x10], esi */ 3828 MEM32(esi) = 0x36176398u; /* 0x3610AFD1: mov dword ptr [esi], 0x36176398 */ 3829 edi = MEM32(esi + 0x28); /* 0x3610AFD7: mov edi, dword ptr [esi + 0x28] */ 3830 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3831 ebx = 0; /* 0x3610AFDA: xor ebx, ebx */ 3832 _cf = 0; 3833 _flag_k = FK_TEST; 3834 /* cmp edi, ebx */ /* 0x3610AFDC: cmp edi, ebx */ 3835 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3837 _flag_k = FK_CMP; 3838 MEM32(ebp + (-0x4)) = 1; /* 0x3610AFDE: mov dword ptr [ebp - 4], 1 */ 3839 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610AFFA; /* 0x3610AFE5: je 0x3610affa */ 3840 L_3610AFE7: 3841 ecx = edi; /* 0x3610AFE7: mov ecx, edi */ 3842 RECOMP_ICALL(0x360E2940u); /* 0x3610AFE9: call 0x360e2940 */ /* not lifted */ 3843 RECOMP_FLAGS_IN(); 3844 PUSH32(esp, edi); /* 0x3610AFEE: push edi */ 3845 RECOMP_ICALL(0x3615FCC4u); /* 0x3610AFEF: call 0x3615fcc4 */ /* not lifted */ 3846 RECOMP_FLAGS_IN(); 3847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3849 esp = esp + 4; /* 0x3610AFF4: add esp, 4 */ 3850 _flag_k = FK_ADD; 3851 MEM32(esi + 0x28) = ebx; /* 0x3610AFF7: mov dword ptr [esi + 0x28], ebx */ 3852 L_3610AFFA: 3853 ecx = MEM32(esi + 0x38); /* 0x3610AFFA: mov ecx, dword ptr [esi + 0x38] */ 3854 /* cmp ecx, ebx */ /* 0x3610AFFD: cmp ecx, ebx */ 3855 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3857 _flag_k = FK_CMP; 3858 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610B00A; /* 0x3610AFFF: je 0x3610b00a */ 3859 L_3610B001: 3860 eax = MEM32(ecx); /* 0x3610B001: mov eax, dword ptr [ecx] */ 3861 PUSH32(esp, 1); /* 0x3610B003: push 1 */ 3862 RECOMP_ICALL(MEM32(eax)); /* 0x3610B005: call dword ptr [eax] */ 3863 RECOMP_FLAGS_IN(); 3864 MEM32(esi + 0x38) = ebx; /* 0x3610B007: mov dword ptr [esi + 0x38], ebx */ 3865 L_3610B00A: 3866 eax = MEM32(esi + 0x3C); /* 0x3610B00A: mov eax, dword ptr [esi + 0x3c] */ 3867 PUSH32(esp, eax); /* 0x3610B00D: push eax */ 3868 RECOMP_ICALL(0x3615FCC4u); /* 0x3610B00E: call 0x3615fcc4 */ /* not lifted */ 3869 RECOMP_FLAGS_IN(); 3870 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3872 esp = esp + 4; /* 0x3610B013: add esp, 4 */ 3873 _flag_k = FK_ADD; 3874 ecx = esi + 0x68; /* 0x3610B016: lea ecx, [esi + 0x68] */ 3875 MEM32(esi + 0x3C) = ebx; /* 0x3610B019: mov dword ptr [esi + 0x3c], ebx */ 3876 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3610B01C: mov byte ptr [ebp - 4], bl */ 3877 RECOMP_ICALL(0x360E2940u); /* 0x3610B01F: call 0x360e2940 */ /* not lifted */ 3878 RECOMP_FLAGS_IN(); 3879 ecx = esi; /* 0x3610B024: mov ecx, esi */ 3880 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610B026: mov dword ptr [ebp - 4], 0xffffffff */ 3881 RECOMP_ICALL(0x360FC2F0u); /* 0x3610B02D: call 0x360fc2f0 */ /* not lifted */ 3882 RECOMP_FLAGS_IN(); 3883 ecx = MEM32(ebp + (-0xC)); /* 0x3610B032: mov ecx, dword ptr [ebp - 0xc] */ 3884 edi = POP32_VAL(esp); /* 0x3610B035: pop edi */ 3885 esi = POP32_VAL(esp); /* 0x3610B036: pop esi */ 3886 ebx = POP32_VAL(esp); /* 0x3610B037: pop ebx */ 3887 MEM32(FS_BASE + (0)) = ecx; /* 0x3610B038: mov dword ptr fs:[0], ecx */ 3888 esp = ebp; /* 0x3610B03F: mov esp, ebp */ 3889 ebp = POP32_VAL(esp); /* 0x3610B041: pop ebp */ 3890 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610B042: ret */ 3891 RECOMP_REGS_OUT(); 3892 } 3893 3894 void sub_3610B050(void) { 3895 int _fpu_cmp = 0; 3896 uint32_t _cf = 0; 3897 int _df = 1; 3898 uint32_t _flag_k = FK_NONE; 3899 uint32_t _flag_a = 0, _flag_b = 0; 3900 uint32_t _itail_tgt = 0; 3901 RECOMP_REGS_LOCALS 3902 RECOMP_ENTER(0x3610B050u); 3903 3904 L_3610B050: 3905 PUSH32(esp, ebp); /* 0x3610B050: push ebp */ 3906 ebp = esp; /* 0x3610B051: mov ebp, esp */ 3907 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 3908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3909 esp = esp - 0x28u; /* 0x3610B053: sub esp, 0x28 */ 3910 _flag_k = FK_CMP; 3911 PUSH32(esp, esi); /* 0x3610B056: push esi */ 3912 esi = ecx; /* 0x3610B057: mov esi, ecx */ 3913 RECOMP_ICALL(0x360FC300u); /* 0x3610B059: call 0x360fc300 */ /* not lifted */ 3914 RECOMP_FLAGS_IN(); 3915 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x3610B05E: mov al, byte ptr [esi + 0x14] */ 3916 /* test LO8(eax), LO8(eax) */ /* 0x3610B061: test al, al */ 3917 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3918 _cf = 0; 3919 _flag_k = FK_NARROW(FK_TEST, 24); 3920 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610B12D; /* 0x3610B063: jne 0x3610b12d */ 3921 L_3610B069: 3922 eax = MEM32(esi + 0x38); /* 0x3610B069: mov eax, dword ptr [esi + 0x38] */ 3923 /* test eax, eax */ /* 0x3610B06C: test eax, eax */ 3924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3925 _cf = 0; 3926 _flag_k = FK_TEST; 3927 if (TEST_Z(_flag_a, _flag_b)) goto L_3610B12D; /* 0x3610B06E: je 0x3610b12d */ 3928 L_3610B074: 3929 fp_push(*(float*)&MEM32(esi + 0xA4)); /* 0x3610B074: fld dword ptr [esi + 0xa4] */ 3930 ecx = MEM32(esi + 0x28); /* 0x3610B07A: mov ecx, dword ptr [esi + 0x28] */ 3931 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x3610B07D: fmul dword ptr [esi + 0xc] */ 3932 eax = ebp + (-0x24); /* 0x3610B080: lea eax, [ebp - 0x24] */ 3933 PUSH32(esp, eax); /* 0x3610B083: push eax */ 3934 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3610B084: fstp dword ptr [ebp - 0x14] */ 3935 RECOMP_ICALL(0x36133E80u); /* 0x3610B087: call 0x36133e80 */ /* not lifted */ 3936 RECOMP_FLAGS_IN(); 3937 ecx = MEM32(eax); /* 0x3610B08C: mov ecx, dword ptr [eax] */ 3938 edx = MEM32(eax + 0x4); /* 0x3610B08E: mov edx, dword ptr [eax + 4] */ 3939 eax = MEM32(eax + 0x8); /* 0x3610B091: mov eax, dword ptr [eax + 8] */ 3940 MEM32(ebp + (-0x8)) = edx; /* 0x3610B094: mov dword ptr [ebp - 8], edx */ 3941 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610B097: fld dword ptr [ebp - 8] */ 3942 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3610B09A: fadd dword ptr [ebp - 0x14] */ 3943 edx = eax; /* 0x3610B09D: mov edx, eax */ 3944 MEM32(ebp + (-0x4)) = eax; /* 0x3610B09F: mov dword ptr [ebp - 4], eax */ 3945 MEM32(ebp + (-0xC)) = ecx; /* 0x3610B0A2: mov dword ptr [ebp - 0xc], ecx */ 3946 MEM32(ebp + (-0xC)) = ecx; /* 0x3610B0A5: mov dword ptr [ebp - 0xc], ecx */ 3947 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3610B0A8: fstp dword ptr [ebp - 8] */ 3948 ecx = MEM32(esi + 0x38); /* 0x3610B0AB: mov ecx, dword ptr [esi + 0x38] */ 3949 MEM32(ebp + (-0x4)) = edx; /* 0x3610B0AE: mov dword ptr [ebp - 4], edx */ 3950 edx = MEM32(ebp + (-0xC)); /* 0x3610B0B1: mov edx, dword ptr [ebp - 0xc] */ 3951 eax = ecx + 0x78; /* 0x3610B0B4: lea eax, [ecx + 0x78] */ 3952 MEM32(eax) = edx; /* 0x3610B0B7: mov dword ptr [eax], edx */ 3953 edx = MEM32(ebp + (-0x8)); /* 0x3610B0B9: mov edx, dword ptr [ebp - 8] */ 3954 MEM32(eax + 0x4) = edx; /* 0x3610B0BC: mov dword ptr [eax + 4], edx */ 3955 edx = MEM32(ebp + (-0x4)); /* 0x3610B0BF: mov edx, dword ptr [ebp - 4] */ 3956 PUSH32(esp, 1); /* 0x3610B0C2: push 1 */ 3957 MEM32(eax + 0x8) = edx; /* 0x3610B0C4: mov dword ptr [eax + 8], edx */ 3958 eax = MEM32(ecx); /* 0x3610B0C7: mov eax, dword ptr [ecx] */ 3959 PUSH32(esp, 1); /* 0x3610B0C9: push 1 */ 3960 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x3610B0CB: call dword ptr [eax + 0x2c] */ 3961 RECOMP_FLAGS_IN(); 3962 ecx = MEM32(esi + 0x38); /* 0x3610B0CE: mov ecx, dword ptr [esi + 0x38] */ 3963 edx = ecx + 0x84; /* 0x3610B0D1: lea edx, [ecx + 0x84] */ 3964 MEM32(ebp + (-0x28)) = 0; /* 0x3610B0D7: mov dword ptr [ebp - 0x28], 0 */ 3965 eax = MEM32(ebp + (-0x28)); /* 0x3610B0DE: mov eax, dword ptr [ebp - 0x28] */ 3966 MEM32(edx) = eax; /* 0x3610B0E1: mov dword ptr [edx], eax */ 3967 MEM32(ebp + (-0x24)) = 0; /* 0x3610B0E3: mov dword ptr [ebp - 0x24], 0 */ 3968 eax = MEM32(ebp + (-0x24)); /* 0x3610B0EA: mov eax, dword ptr [ebp - 0x24] */ 3969 MEM32(edx + 0x4) = eax; /* 0x3610B0ED: mov dword ptr [edx + 4], eax */ 3970 MEM32(ebp + (-0x20)) = 0; /* 0x3610B0F0: mov dword ptr [ebp - 0x20], 0 */ 3971 eax = MEM32(ebp + (-0x20)); /* 0x3610B0F7: mov eax, dword ptr [ebp - 0x20] */ 3972 MEM32(edx + 0x8) = eax; /* 0x3610B0FA: mov dword ptr [edx + 8], eax */ 3973 MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x3610B0FD: mov dword ptr [ebp - 0x1c], 0x3f800000 */ 3974 eax = MEM32(ebp + (-0x1C)); /* 0x3610B104: mov eax, dword ptr [ebp - 0x1c] */ 3975 PUSH32(esp, 1); /* 0x3610B107: push 1 */ 3976 MEM32(edx + 0xC) = eax; /* 0x3610B109: mov dword ptr [edx + 0xc], eax */ 3977 edx = MEM32(ecx); /* 0x3610B10C: mov edx, dword ptr [ecx] */ 3978 PUSH32(esp, 2); /* 0x3610B10E: push 2 */ 3979 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610B110: call dword ptr [edx + 0x2c] */ 3980 RECOMP_FLAGS_IN(); 3981 eax = MEM32(esi + 0x28); /* 0x3610B113: mov eax, dword ptr [esi + 0x28] */ 3982 SET_LO8(edx, MEM8(eax + 0x108)); /* 0x3610B116: mov dl, byte ptr [eax + 0x108] */ 3983 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3984 ecx = 0; /* 0x3610B11C: xor ecx, ecx */ 3985 _cf = 0; 3986 _flag_k = FK_TEST; 3987 /* test LO8(edx), LO8(edx) */ /* 0x3610B11E: test dl, dl */ 3988 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3989 _cf = 0; 3990 _flag_k = FK_NARROW(FK_TEST, 24); 3991 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610B120: sete cl */ 3992 PUSH32(esp, ecx); /* 0x3610B123: push ecx */ 3993 ecx = MEM32(esi + 0x38); /* 0x3610B124: mov ecx, dword ptr [esi + 0x38] */ 3994 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x3610B127: call dword ptr [0x3616f620] */ 3995 RECOMP_FLAGS_IN(); 3996 L_3610B12D: 3997 esi = POP32_VAL(esp); /* 0x3610B12D: pop esi */ 3998 esp = ebp; /* 0x3610B12E: mov esp, ebp */ 3999 ebp = POP32_VAL(esp); /* 0x3610B130: pop ebp */ 4000 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610B131: ret */ 4001 RECOMP_REGS_OUT(); 4002 } 4003 4004 void sub_3610B140(void) { 4005 int _fpu_cmp = 0; 4006 uint32_t _cf = 0; 4007 int _df = 1; 4008 uint32_t _flag_k = FK_NONE; 4009 uint32_t _flag_a = 0, _flag_b = 0; 4010 uint32_t _itail_tgt = 0; 4011 RECOMP_REGS_LOCALS 4012 RECOMP_ENTER(0x3610B140u); 4013 4014 L_3610B140: 4015 PUSH32(esp, ebp); /* 0x3610B140: push ebp */ 4016 ebp = esp; /* 0x3610B141: mov ebp, esp */ 4017 eax = MEM32(ebp + 0x8); /* 0x3610B143: mov eax, dword ptr [ebp + 8] */ 4018 edx = MEM32(ebp + 0xC); /* 0x3610B146: mov edx, dword ptr [ebp + 0xc] */ 4019 MEM32(ecx + 0x6C) = eax; /* 0x3610B149: mov dword ptr [ecx + 0x6c], eax */ 4020 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 4021 SET_LO8(eax, 0); /* 0x3610B14C: xor al, al */ 4022 _cf = 0; 4023 _flag_k = FK_NARROW(FK_TEST, 24); 4024 MEM8(ecx + 0x68) = (uint8_t)(LO8(eax)); /* 0x3610B14E: mov byte ptr [ecx + 0x68], al */ 4025 MEM32(ecx + 0x70) = edx; /* 0x3610B151: mov dword ptr [ecx + 0x70], edx */ 4026 edx = MEM32(ebp + 0x10); /* 0x3610B154: mov edx, dword ptr [ebp + 0x10] */ 4027 MEM8(ecx + 0x68) = (uint8_t)(LO8(eax)); /* 0x3610B157: mov byte ptr [ecx + 0x68], al */ 4028 MEM32(ecx + 0x74) = edx; /* 0x3610B15A: mov dword ptr [ecx + 0x74], edx */ 4029 edx = MEM32(ebp + 0x14); /* 0x3610B15D: mov edx, dword ptr [ebp + 0x14] */ 4030 MEM8(ecx + 0x68) = (uint8_t)(LO8(eax)); /* 0x3610B160: mov byte ptr [ecx + 0x68], al */ 4031 MEM32(ecx + 0x78) = edx; /* 0x3610B163: mov dword ptr [ecx + 0x78], edx */ 4032 MEM8(ecx + 0x68) = (uint8_t)(LO8(eax)); /* 0x3610B166: mov byte ptr [ecx + 0x68], al */ 4033 ebp = POP32_VAL(esp); /* 0x3610B169: pop ebp */ 4034 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3610B16A: ret 0x10 */ 4035 RECOMP_REGS_OUT(); 4036 } 4037 4038 void sub_3610B170(void) { 4039 int _fpu_cmp = 0; 4040 uint32_t _cf = 0; 4041 int _df = 1; 4042 uint32_t _flag_k = FK_NONE; 4043 uint32_t _flag_a = 0, _flag_b = 0; 4044 uint32_t _itail_tgt = 0; 4045 RECOMP_REGS_LOCALS 4046 RECOMP_ENTER(0x3610B170u); 4047 4048 L_3610B170: 4049 PUSH32(esp, ebp); /* 0x3610B170: push ebp */ 4050 ebp = esp; /* 0x3610B171: mov ebp, esp */ 4051 eax = MEM32(ebp + 0x8); /* 0x3610B173: mov eax, dword ptr [ebp + 8] */ 4052 edx = MEM32(ebp + 0xC); /* 0x3610B176: mov edx, dword ptr [ebp + 0xc] */ 4053 MEM32(ecx + 0x7C) = eax; /* 0x3610B179: mov dword ptr [ecx + 0x7c], eax */ 4054 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 4055 SET_LO8(eax, 0); /* 0x3610B17C: xor al, al */ 4056 _cf = 0; 4057 _flag_k = FK_NARROW(FK_TEST, 24); 4058 MEM8(ecx + 0x68) = (uint8_t)(LO8(eax)); /* 0x3610B17E: mov byte ptr [ecx + 0x68], al */ 4059 MEM32(ecx + 0x80) = edx; /* 0x3610B181: mov dword ptr [ecx + 0x80], edx */ 4060 edx = MEM32(ebp + 0x10); /* 0x3610B187: mov edx, dword ptr [ebp + 0x10] */ 4061 MEM8(ecx + 0x68) = (uint8_t)(LO8(eax)); /* 0x3610B18A: mov byte ptr [ecx + 0x68], al */ 4062 MEM32(ecx + 0x84) = edx; /* 0x3610B18D: mov dword ptr [ecx + 0x84], edx */ 4063 edx = MEM32(ebp + 0x14); /* 0x3610B193: mov edx, dword ptr [ebp + 0x14] */ 4064 MEM8(ecx + 0x68) = (uint8_t)(LO8(eax)); /* 0x3610B196: mov byte ptr [ecx + 0x68], al */ 4065 MEM32(ecx + 0x88) = edx; /* 0x3610B199: mov dword ptr [ecx + 0x88], edx */ 4066 MEM8(ecx + 0x68) = (uint8_t)(LO8(eax)); /* 0x3610B19F: mov byte ptr [ecx + 0x68], al */ 4067 ebp = POP32_VAL(esp); /* 0x3610B1A2: pop ebp */ 4068 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3610B1A3: ret 0x10 */ 4069 RECOMP_REGS_OUT(); 4070 } 4071 4072 void sub_3610B1B0(void) { 4073 int _fpu_cmp = 0; 4074 uint32_t _cf = 0; 4075 int _df = 1; 4076 uint32_t _flag_k = FK_NONE; 4077 uint32_t _flag_a = 0, _flag_b = 0; 4078 uint32_t _itail_tgt = 0; 4079 RECOMP_REGS_LOCALS 4080 RECOMP_ENTER(0x3610B1B0u); 4081 4082 L_3610B1B0: 4083 PUSH32(esp, ebp); /* 0x3610B1B0: push ebp */ 4084 ebp = esp; /* 0x3610B1B1: mov ebp, esp */ 4085 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4087 esp = esp - 0x14u; /* 0x3610B1B3: sub esp, 0x14 */ 4088 _flag_k = FK_CMP; 4089 eax = MEM32(ebp + 0x8); /* 0x3610B1B6: mov eax, dword ptr [ebp + 8] */ 4090 PUSH32(esp, ebx); /* 0x3610B1B9: push ebx */ 4091 PUSH32(esp, esi); /* 0x3610B1BA: push esi */ 4092 esi = ecx; /* 0x3610B1BB: mov esi, ecx */ 4093 ecx = eax; /* 0x3610B1BD: mov ecx, eax */ 4094 if (24u) _cf = (((ecx) >> 23) & 1u); /* 0x3610B1BF: shr ecx, 0x18 */ 4095 if (24u) { _flag_a = recomp_flags_pack((ecx >> 24u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4096 ecx = ecx >> 24u; /* 0x3610B1BF: shr ecx, 0x18 */ 4097 MEM32(ebp + (-0x14)) = ecx; /* 0x3610B1C2: mov dword ptr [ebp - 0x14], ecx */ 4098 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4099 ecx = 0; /* 0x3610B1C5: xor ecx, ecx */ 4100 _cf = 0; 4101 _flag_k = FK_TEST; 4102 MEM32(ebp + (-0x10)) = ecx; /* 0x3610B1C7: mov dword ptr [ebp - 0x10], ecx */ 4103 fp_push_i64((int64_t)MEM64(ebp + (-0x14))); /* 0x3610B1CA: fild qword ptr [ebp - 0x14] */ 4104 edx = eax; /* 0x3610B1CD: mov edx, eax */ 4105 if (16u) _cf = (((edx) >> 15) & 1u); /* 0x3610B1CF: shr edx, 0x10 */ 4106 if (16u) { _flag_a = recomp_flags_pack((edx >> 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4107 edx = edx >> 16u; /* 0x3610B1CF: shr edx, 0x10 */ 4108 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 4109 edx = edx & 0xFFu; /* 0x3610B1D2: and edx, 0xff */ 4110 _cf = 0; 4111 _flag_k = FK_TEST; 4112 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x3610B1D8: fmul dword ptr [0x36174e98] */ 4113 MEM32(ebp + (-0x14)) = edx; /* 0x3610B1DE: mov dword ptr [ebp - 0x14], edx */ 4114 MEM32(ebp + (-0x10)) = ecx; /* 0x3610B1E1: mov dword ptr [ebp - 0x10], ecx */ 4115 edx = eax; /* 0x3610B1E4: mov edx, eax */ 4116 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3610B1E6: fstp dword ptr [ebp - 4] */ 4117 if (8u) _cf = (((edx) >> 7) & 1u); /* 0x3610B1E9: shr edx, 8 */ 4118 if (8u) { _flag_a = recomp_flags_pack((edx >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4119 edx = edx >> 8u; /* 0x3610B1E9: shr edx, 8 */ 4120 fp_push_i64((int64_t)MEM64(ebp + (-0x14))); /* 0x3610B1EC: fild qword ptr [ebp - 0x14] */ 4121 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 4122 edx = edx & 0xFFu; /* 0x3610B1EF: and edx, 0xff */ 4123 _cf = 0; 4124 _flag_k = FK_TEST; 4125 MEM32(ebp + (-0x10)) = ecx; /* 0x3610B1F5: mov dword ptr [ebp - 0x10], ecx */ 4126 MEM32(ebp + (-0x14)) = edx; /* 0x3610B1F8: mov dword ptr [ebp - 0x14], edx */ 4127 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x3610B1FB: fmul dword ptr [0x36174e98] */ 4128 edx = MEM32(ebp + (-0x4)); /* 0x3610B201: mov edx, dword ptr [ebp - 4] */ 4129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 4130 eax = eax & 0xFFu; /* 0x3610B204: and eax, 0xff */ 4131 _cf = 0; 4132 _flag_k = FK_TEST; 4133 MEM32(ebp + (-0x8)) = ecx; /* 0x3610B209: mov dword ptr [ebp - 8], ecx */ 4134 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3610B20C: fstp dword ptr [ebp + 8] */ 4135 MEM32(ebp + (-0xC)) = eax; /* 0x3610B20F: mov dword ptr [ebp - 0xc], eax */ 4136 fp_push_i64((int64_t)MEM64(ebp + (-0x14))); /* 0x3610B212: fild qword ptr [ebp - 0x14] */ 4137 ecx = MEM32(ebp + 0x8); /* 0x3610B215: mov ecx, dword ptr [ebp + 8] */ 4138 eax = MEM32(esi); /* 0x3610B218: mov eax, dword ptr [esi] */ 4139 PUSH32(esp, edi); /* 0x3610B21A: push edi */ 4140 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x3610B21B: fmul dword ptr [0x36174e98] */ 4141 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3610B221: fstp dword ptr [ebp - 0x10] */ 4142 fp_push_i64((int64_t)MEM64(ebp + (-0xC))); /* 0x3610B224: fild qword ptr [ebp - 0xc] */ 4143 ebx = MEM32(ebp + (-0x10)); /* 0x3610B227: mov ebx, dword ptr [ebp - 0x10] */ 4144 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x3610B22A: fmul dword ptr [0x36174e98] */ 4145 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3610B230: fstp dword ptr [ebp - 8] */ 4146 edi = MEM32(ebp + (-0x8)); /* 0x3610B233: mov edi, dword ptr [ebp - 8] */ 4147 PUSH32(esp, edi); /* 0x3610B236: push edi */ 4148 PUSH32(esp, ebx); /* 0x3610B237: push ebx */ 4149 PUSH32(esp, ecx); /* 0x3610B238: push ecx */ 4150 PUSH32(esp, edx); /* 0x3610B239: push edx */ 4151 ecx = esi; /* 0x3610B23A: mov ecx, esi */ 4152 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x3610B23C: call dword ptr [eax + 0x20] */ 4153 RECOMP_FLAGS_IN(); 4154 ecx = MEM32(ebp + 0x8); /* 0x3610B23F: mov ecx, dword ptr [ebp + 8] */ 4155 edx = MEM32(ebp + (-0x4)); /* 0x3610B242: mov edx, dword ptr [ebp - 4] */ 4156 eax = MEM32(esi); /* 0x3610B245: mov eax, dword ptr [esi] */ 4157 PUSH32(esp, edi); /* 0x3610B247: push edi */ 4158 PUSH32(esp, ebx); /* 0x3610B248: push ebx */ 4159 PUSH32(esp, ecx); /* 0x3610B249: push ecx */ 4160 PUSH32(esp, edx); /* 0x3610B24A: push edx */ 4161 ecx = esi; /* 0x3610B24B: mov ecx, esi */ 4162 RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x3610B24D: call dword ptr [eax + 0x24] */ 4163 RECOMP_FLAGS_IN(); 4164 edi = POP32_VAL(esp); /* 0x3610B250: pop edi */ 4165 esi = POP32_VAL(esp); /* 0x3610B251: pop esi */ 4166 ebx = POP32_VAL(esp); /* 0x3610B252: pop ebx */ 4167 esp = ebp; /* 0x3610B253: mov esp, ebp */ 4168 ebp = POP32_VAL(esp); /* 0x3610B255: pop ebp */ 4169 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610B256: ret 4 */ 4170 RECOMP_REGS_OUT(); 4171 } 4172 4173 void sub_3610B260(void) { 4174 int _fpu_cmp = 0; 4175 uint32_t _cf = 0; 4176 int _df = 1; 4177 uint32_t _flag_k = FK_NONE; 4178 uint32_t _flag_a = 0, _flag_b = 0; 4179 uint32_t _itail_tgt = 0; 4180 RECOMP_REGS_LOCALS 4181 RECOMP_ENTER(0x3610B260u); 4182 4183 L_3610B260: 4184 PUSH32(esp, esi); /* 0x3610B260: push esi */ 4185 esi = ecx; /* 0x3610B261: mov esi, ecx */ 4186 eax = MEM32(esi + 0x4); /* 0x3610B263: mov eax, dword ptr [esi + 4] */ 4187 PUSH32(esp, edi); /* 0x3610B266: push edi */ 4188 PUSH32(esp, eax); /* 0x3610B267: push eax */ 4189 RECOMP_ICALL(0x360F7B00u); /* 0x3610B268: call 0x360f7b00 */ /* not lifted */ 4190 RECOMP_FLAGS_IN(); 4191 ecx = eax; /* 0x3610B26D: mov ecx, eax */ 4192 RECOMP_ICALL(0x360FBFF0u); /* 0x3610B26F: call 0x360fbff0 */ /* not lifted */ 4193 RECOMP_FLAGS_IN(); 4194 ecx = eax; /* 0x3610B274: mov ecx, eax */ 4195 RECOMP_ICALL(0x361371A0u); /* 0x3610B276: call 0x361371a0 */ /* not lifted */ 4196 RECOMP_FLAGS_IN(); 4197 edi = eax; /* 0x3610B27B: mov edi, eax */ 4198 PUSH32(esp, 0); /* 0x3610B27D: push 0 */ 4199 ecx = edi; /* 0x3610B27F: mov ecx, edi */ 4200 RECOMP_ICALL(0x36136FE0u); /* 0x3610B281: call 0x36136fe0 */ /* not lifted */ 4201 RECOMP_FLAGS_IN(); 4202 PUSH32(esp, 8); /* 0x3610B286: push 8 */ 4203 ecx = edi; /* 0x3610B288: mov ecx, edi */ 4204 MEM32(esi + 0x40) = eax; /* 0x3610B28A: mov dword ptr [esi + 0x40], eax */ 4205 RECOMP_ICALL(0x36137010u); /* 0x3610B28D: call 0x36137010 */ /* not lifted */ 4206 RECOMP_FLAGS_IN(); 4207 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x3610B292: fstp dword ptr [esi + 0x10] */ 4208 PUSH32(esp, 9); /* 0x3610B295: push 9 */ 4209 ecx = edi; /* 0x3610B297: mov ecx, edi */ 4210 RECOMP_ICALL(0x36136FE0u); /* 0x3610B299: call 0x36136fe0 */ /* not lifted */ 4211 RECOMP_FLAGS_IN(); 4212 PUSH32(esp, 0xAu); /* 0x3610B29E: push 0xa */ 4213 ecx = edi; /* 0x3610B2A0: mov ecx, edi */ 4214 MEM32(esi + 0x44) = eax; /* 0x3610B2A2: mov dword ptr [esi + 0x44], eax */ 4215 RECOMP_ICALL(0x36136FE0u); /* 0x3610B2A5: call 0x36136fe0 */ /* not lifted */ 4216 RECOMP_FLAGS_IN(); 4217 PUSH32(esp, 0xBu); /* 0x3610B2AA: push 0xb */ 4218 ecx = edi; /* 0x3610B2AC: mov ecx, edi */ 4219 MEM32(esi + 0x48) = eax; /* 0x3610B2AE: mov dword ptr [esi + 0x48], eax */ 4220 RECOMP_ICALL(0x36137010u); /* 0x3610B2B1: call 0x36137010 */ /* not lifted */ 4221 RECOMP_FLAGS_IN(); 4222 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4C) = _v; } /* 0x3610B2B6: fstp dword ptr [esi + 0x4c] */ 4223 PUSH32(esp, 0xCu); /* 0x3610B2B9: push 0xc */ 4224 ecx = edi; /* 0x3610B2BB: mov ecx, edi */ 4225 RECOMP_ICALL(0x36137010u); /* 0x3610B2BD: call 0x36137010 */ /* not lifted */ 4226 RECOMP_FLAGS_IN(); 4227 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x50) = _v; } /* 0x3610B2C2: fstp dword ptr [esi + 0x50] */ 4228 PUSH32(esp, 0xDu); /* 0x3610B2C5: push 0xd */ 4229 ecx = edi; /* 0x3610B2C7: mov ecx, edi */ 4230 RECOMP_ICALL(0x36137010u); /* 0x3610B2C9: call 0x36137010 */ /* not lifted */ 4231 RECOMP_FLAGS_IN(); 4232 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x54) = _v; } /* 0x3610B2CE: fstp dword ptr [esi + 0x54] */ 4233 PUSH32(esp, 0xEu); /* 0x3610B2D1: push 0xe */ 4234 ecx = edi; /* 0x3610B2D3: mov ecx, edi */ 4235 RECOMP_ICALL(0x36137010u); /* 0x3610B2D5: call 0x36137010 */ /* not lifted */ 4236 RECOMP_FLAGS_IN(); 4237 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x58) = _v; } /* 0x3610B2DA: fstp dword ptr [esi + 0x58] */ 4238 PUSH32(esp, 0xFu); /* 0x3610B2DD: push 0xf */ 4239 ecx = edi; /* 0x3610B2DF: mov ecx, edi */ 4240 RECOMP_ICALL(0x36137010u); /* 0x3610B2E1: call 0x36137010 */ /* not lifted */ 4241 RECOMP_FLAGS_IN(); 4242 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x5C) = _v; } /* 0x3610B2E6: fstp dword ptr [esi + 0x5c] */ 4243 PUSH32(esp, 0x10u); /* 0x3610B2E9: push 0x10 */ 4244 ecx = edi; /* 0x3610B2EB: mov ecx, edi */ 4245 RECOMP_ICALL(0x36137010u); /* 0x3610B2ED: call 0x36137010 */ /* not lifted */ 4246 RECOMP_FLAGS_IN(); 4247 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x60) = _v; } /* 0x3610B2F2: fstp dword ptr [esi + 0x60] */ 4248 PUSH32(esp, 0x11u); /* 0x3610B2F5: push 0x11 */ 4249 ecx = edi; /* 0x3610B2F7: mov ecx, edi */ 4250 RECOMP_ICALL(0x36137010u); /* 0x3610B2F9: call 0x36137010 */ /* not lifted */ 4251 RECOMP_FLAGS_IN(); 4252 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x64) = _v; } /* 0x3610B2FE: fstp dword ptr [esi + 0x64] */ 4253 PUSH32(esp, 0x12u); /* 0x3610B301: push 0x12 */ 4254 PUSH32(esp, edi); /* 0x3610B303: push edi */ 4255 ecx = esi + 0x68; /* 0x3610B304: lea ecx, [esi + 0x68] */ 4256 RECOMP_ICALL(0x36137CF0u); /* 0x3610B307: call 0x36137cf0 */ /* not lifted */ 4257 RECOMP_FLAGS_IN(); 4258 PUSH32(esp, 0x1Au); /* 0x3610B30C: push 0x1a */ 4259 ecx = edi; /* 0x3610B30E: mov ecx, edi */ 4260 RECOMP_ICALL(0x36137010u); /* 0x3610B310: call 0x36137010 */ /* not lifted */ 4261 RECOMP_FLAGS_IN(); 4262 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x3610B315: fstp dword ptr [esi + 0x10] */ 4263 PUSH32(esp, 0x1Bu); /* 0x3610B318: push 0x1b */ 4264 ecx = edi; /* 0x3610B31A: mov ecx, edi */ 4265 RECOMP_ICALL(0x36137010u); /* 0x3610B31C: call 0x36137010 */ /* not lifted */ 4266 RECOMP_FLAGS_IN(); 4267 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x9C) = _v; } /* 0x3610B321: fstp dword ptr [esi + 0x9c] */ 4268 PUSH32(esp, 0x1Cu); /* 0x3610B327: push 0x1c */ 4269 ecx = edi; /* 0x3610B329: mov ecx, edi */ 4270 RECOMP_ICALL(0x36137010u); /* 0x3610B32B: call 0x36137010 */ /* not lifted */ 4271 RECOMP_FLAGS_IN(); 4272 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xA0) = _v; } /* 0x3610B330: fstp dword ptr [esi + 0xa0] */ 4273 PUSH32(esp, 0x1Du); /* 0x3610B336: push 0x1d */ 4274 ecx = edi; /* 0x3610B338: mov ecx, edi */ 4275 RECOMP_ICALL(0x36137010u); /* 0x3610B33A: call 0x36137010 */ /* not lifted */ 4276 RECOMP_FLAGS_IN(); 4277 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xA4) = _v; } /* 0x3610B33F: fstp dword ptr [esi + 0xa4] */ 4278 PUSH32(esp, 0x1Eu); /* 0x3610B345: push 0x1e */ 4279 ecx = edi; /* 0x3610B347: mov ecx, edi */ 4280 RECOMP_ICALL(0x36136FE0u); /* 0x3610B349: call 0x36136fe0 */ /* not lifted */ 4281 RECOMP_FLAGS_IN(); 4282 MEM32(esi + 0xA8) = eax; /* 0x3610B34E: mov dword ptr [esi + 0xa8], eax */ 4283 PUSH32(esp, 0x1Fu); /* 0x3610B354: push 0x1f */ 4284 ecx = edi; /* 0x3610B356: mov ecx, edi */ 4285 RECOMP_ICALL(0x36136FE0u); /* 0x3610B358: call 0x36136fe0 */ /* not lifted */ 4286 RECOMP_FLAGS_IN(); 4287 edi = POP32_VAL(esp); /* 0x3610B35D: pop edi */ 4288 MEM32(esi + 0xAC) = eax; /* 0x3610B35E: mov dword ptr [esi + 0xac], eax */ 4289 esi = POP32_VAL(esp); /* 0x3610B364: pop esi */ 4290 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610B365: ret */ 4291 RECOMP_REGS_OUT(); 4292 } 4293 4294 void sub_3610B370(void) { 4295 int _fpu_cmp = 0; 4296 uint32_t _cf = 0; 4297 int _df = 1; 4298 uint32_t _flag_k = FK_NONE; 4299 uint32_t _flag_a = 0, _flag_b = 0; 4300 uint32_t _itail_tgt = 0; 4301 RECOMP_REGS_LOCALS 4302 RECOMP_ENTER(0x3610B370u); 4303 4304 L_3610B370: 4305 PUSH32(esp, esi); /* 0x3610B370: push esi */ 4306 esi = ecx; /* 0x3610B371: mov esi, ecx */ 4307 eax = MEM32(esi + 0xA0); /* 0x3610B373: mov eax, dword ptr [esi + 0xa0] */ 4308 ecx = MEM32(esi + 0x28); /* 0x3610B379: mov ecx, dword ptr [esi + 0x28] */ 4309 MEM32(esi + 0x20) = eax; /* 0x3610B37C: mov dword ptr [esi + 0x20], eax */ 4310 RECOMP_ICALL(0x36134100u); /* 0x3610B37F: call 0x36134100 */ /* not lifted */ 4311 RECOMP_FLAGS_IN(); 4312 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4313 eax = 0; /* 0x3610B384: xor eax, eax */ 4314 _cf = 0; 4315 _flag_k = FK_TEST; 4316 MEM32(esi + 0x24) = eax; /* 0x3610B386: mov dword ptr [esi + 0x24], eax */ 4317 MEM32(esi + 0x3C) = eax; /* 0x3610B389: mov dword ptr [esi + 0x3c], eax */ 4318 esi = POP32_VAL(esp); /* 0x3610B38C: pop esi */ 4319 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610B38D: ret */ 4320 RECOMP_REGS_OUT(); 4321 } 4322 4323 void sub_3610B390(void) { 4324 int _fpu_cmp = 0; 4325 uint32_t _cf = 0; 4326 int _df = 1; 4327 uint32_t _flag_k = FK_NONE; 4328 uint32_t _flag_a = 0, _flag_b = 0; 4329 uint32_t _itail_tgt = 0; 4330 RECOMP_REGS_LOCALS 4331 RECOMP_ENTER(0x3610B390u); 4332 4333 L_3610B390: 4334 PUSH32(esp, ebp); /* 0x3610B390: push ebp */ 4335 ebp = esp; /* 0x3610B391: mov ebp, esp */ 4336 eax = MEM32(ebp + 0x8); /* 0x3610B393: mov eax, dword ptr [ebp + 8] */ 4337 /* test eax, eax */ /* 0x3610B396: test eax, eax */ 4338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4339 _cf = 0; 4340 _flag_k = FK_TEST; 4341 if (TEST_NS(_flag_a, _flag_b)) goto L_3610B3A0; /* 0x3610B398: jge 0x3610b3a0 */ 4342 L_3610B39A: 4343 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4344 eax = 0; /* 0x3610B39A: xor eax, eax */ 4345 _cf = 0; 4346 _flag_k = FK_TEST; 4347 ebp = POP32_VAL(esp); /* 0x3610B39C: pop ebp */ 4348 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610B39D: ret 4 */ 4349 L_3610B3A0: 4350 /* cmp eax, 0x7Fu */ /* 0x3610B3A0: cmp eax, 0x7f */ 4351 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7Fu); 4352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4353 _flag_k = FK_CMP; 4354 if (CMP_LE(_flag_a, _flag_b)) goto L_3610B3AB; /* 0x3610B3A3: jle 0x3610b3ab */ 4355 L_3610B3A5: 4356 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4357 eax = 0; /* 0x3610B3A5: xor eax, eax */ 4358 _cf = 0; 4359 _flag_k = FK_TEST; 4360 ebp = POP32_VAL(esp); /* 0x3610B3A7: pop ebp */ 4361 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610B3A8: ret 4 */ 4362 L_3610B3AB: 4363 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4364 ecx = 0; /* 0x3610B3AB: xor ecx, ecx */ 4365 _cf = 0; 4366 _flag_k = FK_TEST; 4367 SET_LO8(ecx, MEM8(eax + eax * 2 + 0x362E501E)); /* 0x3610B3AD: mov cl, byte ptr [eax + eax*2 + 0x362e501e] */ 4368 /* test ecx, ecx */ /* 0x3610B3B4: test ecx, ecx */ 4369 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4370 _cf = 0; 4371 _flag_k = FK_TEST; 4372 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610B3BE; /* 0x3610B3B6: jne 0x3610b3be */ 4373 L_3610B3B8: 4374 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4375 eax = 0; /* 0x3610B3B8: xor eax, eax */ 4376 _cf = 0; 4377 _flag_k = FK_TEST; 4378 ebp = POP32_VAL(esp); /* 0x3610B3BA: pop ebp */ 4379 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610B3BB: ret 4 */ 4380 L_3610B3BE: 4381 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4382 edx = 0; /* 0x3610B3BE: xor edx, edx */ 4383 _cf = 0; 4384 _flag_k = FK_TEST; 4385 SET_HI8(edx, MEM8(eax + eax * 2 + 0x362E501C)); /* 0x3610B3C0: mov dh, byte ptr [eax + eax*2 + 0x362e501c] */ 4386 SET_LO8(edx, MEM8(eax + eax * 2 + 0x362E501D)); /* 0x3610B3C7: mov dl, byte ptr [eax + eax*2 + 0x362e501d] */ 4387 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x3610B3CE: shl edx, 8 */ 4388 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4389 edx = edx << 8u; /* 0x3610B3CE: shl edx, 8 */ 4390 _flag_a = (uint32_t)((edx | ecx)); _flag_b = (uint32_t)((edx | ecx)); 4391 edx = edx | ecx; /* 0x3610B3D1: or edx, ecx */ 4392 _cf = 0; 4393 _flag_k = FK_TEST; 4394 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x3610B3D3: shl edx, 8 */ 4395 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4396 edx = edx << 8u; /* 0x3610B3D3: shl edx, 8 */ 4397 _flag_a = (uint32_t)((edx | 0xCu)); _flag_b = (uint32_t)((edx | 0xCu)); 4398 edx = edx | 0xCu; /* 0x3610B3D6: or edx, 0xc */ 4399 _cf = 0; 4400 _flag_k = FK_TEST; 4401 eax = edx; /* 0x3610B3D9: mov eax, edx */ 4402 ebp = POP32_VAL(esp); /* 0x3610B3DB: pop ebp */ 4403 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610B3DC: ret 4 */ 4404 RECOMP_REGS_OUT(); 4405 } 4406 4407 void sub_3610B3E0(void) { 4408 int _fpu_cmp = 0; 4409 uint32_t _cf = 0; 4410 int _df = 1; 4411 uint32_t _flag_k = FK_NONE; 4412 uint32_t _flag_a = 0, _flag_b = 0; 4413 uint32_t _itail_tgt = 0; 4414 RECOMP_REGS_LOCALS 4415 RECOMP_ENTER(0x3610B3E0u); 4416 4417 L_3610B3E0: 4418 PUSH32(esp, ebp); /* 0x3610B3E0: push ebp */ 4419 ebp = esp; /* 0x3610B3E1: mov ebp, esp */ 4420 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610B3E3: push -1 */ 4421 PUSH32(esp, 0x3616A4DBu); /* 0x3610B3E5: push 0x3616a4db */ 4422 eax = MEM32(FS_BASE + (0)); /* 0x3610B3EA: mov eax, dword ptr fs:[0] */ 4423 PUSH32(esp, eax); /* 0x3610B3F0: push eax */ 4424 MEM32(FS_BASE + (0)) = esp; /* 0x3610B3F1: mov dword ptr fs:[0], esp */ 4425 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4427 esp = esp - 0x18u; /* 0x3610B3F8: sub esp, 0x18 */ 4428 _flag_k = FK_CMP; 4429 PUSH32(esp, ebx); /* 0x3610B3FB: push ebx */ 4430 PUSH32(esp, esi); /* 0x3610B3FC: push esi */ 4431 PUSH32(esp, edi); /* 0x3610B3FD: push edi */ 4432 esi = ecx; /* 0x3610B3FE: mov esi, ecx */ 4433 PUSH32(esp, 0); /* 0x3610B400: push 0 */ 4434 ecx = esi + 0x68; /* 0x3610B402: lea ecx, [esi + 0x68] */ 4435 RECOMP_ICALL(0x36137D80u); /* 0x3610B405: call 0x36137d80 */ /* not lifted */ 4436 RECOMP_FLAGS_IN(); 4437 ebx = MEM32(ebp + 0x8); /* 0x3610B40A: mov ebx, dword ptr [ebp + 8] */ 4438 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4439 ecx = ecx | 0xFFFFFFFFu; /* 0x3610B40D: or ecx, 0xffffffff */ 4440 _cf = 0; 4441 _flag_k = FK_TEST; 4442 MEM32(ebp + (-0x18)) = eax; /* 0x3610B410: mov dword ptr [ebp - 0x18], eax */ 4443 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4444 eax = 0; /* 0x3610B413: xor eax, eax */ 4445 _cf = 0; 4446 _flag_k = FK_TEST; 4447 edi = ebx; /* 0x3610B415: mov edi, ebx */ 4448 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3610B417: repne scasb al, byte ptr es:[edi] */ 4449 ecx = ~ecx; /* 0x3610B419: not ecx */ 4450 MEM32(esi + 0x24) = ecx; /* 0x3610B41B: mov dword ptr [esi + 0x24], ecx */ 4451 ecx = MEM32(esi + 0x38); /* 0x3610B41E: mov ecx, dword ptr [esi + 0x38] */ 4452 /* test ecx, ecx */ /* 0x3610B421: test ecx, ecx */ 4453 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4454 _cf = 0; 4455 _flag_k = FK_TEST; 4456 if (TEST_Z(_flag_a, _flag_b)) goto L_3610B432; /* 0x3610B423: je 0x3610b432 */ 4457 L_3610B425: 4458 eax = MEM32(ecx); /* 0x3610B425: mov eax, dword ptr [ecx] */ 4459 PUSH32(esp, 1); /* 0x3610B427: push 1 */ 4460 RECOMP_ICALL(MEM32(eax)); /* 0x3610B429: call dword ptr [eax] */ 4461 RECOMP_FLAGS_IN(); 4462 MEM32(esi + 0x38) = 0; /* 0x3610B42B: mov dword ptr [esi + 0x38], 0 */ 4463 L_3610B432: 4464 eax = MEM32(esi + 0x3C); /* 0x3610B432: mov eax, dword ptr [esi + 0x3c] */ 4465 PUSH32(esp, eax); /* 0x3610B435: push eax */ 4466 RECOMP_ICALL(0x3615FCC4u); /* 0x3610B436: call 0x3615fcc4 */ /* not lifted */ 4467 RECOMP_FLAGS_IN(); 4468 edi = MEM32(esi + 0x24); /* 0x3610B43B: mov edi, dword ptr [esi + 0x24] */ 4469 ecx = edi; /* 0x3610B43E: mov ecx, edi */ 4470 if (5u) _cf = (((ecx) >> 27) & 1u); /* 0x3610B440: shl ecx, 5 */ 4471 if (5u) { _flag_a = recomp_flags_pack((ecx << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4472 ecx = ecx << 5u; /* 0x3610B440: shl ecx, 5 */ 4473 PUSH32(esp, ecx); /* 0x3610B443: push ecx */ 4474 RECOMP_ICALL(0x3615FD6Au); /* 0x3610B444: call 0x3615fd6a */ /* not lifted */ 4475 RECOMP_FLAGS_IN(); 4476 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4478 esp = esp + 8; /* 0x3610B449: add esp, 8 */ 4479 _flag_k = FK_ADD; 4480 /* test eax, eax */ /* 0x3610B44C: test eax, eax */ 4481 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4482 _cf = 0; 4483 _flag_k = FK_TEST; 4484 if (TEST_Z(_flag_a, _flag_b)) goto L_3610B46D; /* 0x3610B44E: je 0x3610b46d */ 4485 L_3610B450: 4486 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4487 edi = edi - 1; /* 0x3610B450: dec edi */ 4488 _flag_k = FK_DEC; 4489 /* test edi, edi */ /* 0x3610B451: test edi, edi */ 4490 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4491 _cf = 0; 4492 _flag_k = FK_TEST; 4493 if (TEST_S(_flag_a, _flag_b)) goto L_3610B46F; /* 0x3610B453: jl 0x3610b46f */ 4494 L_3610B455: 4495 ecx = eax + 0x8; /* 0x3610B455: lea ecx, [eax + 8] */ 4496 edx = edi + 0x1; /* 0x3610B458: lea edx, [edi + 1] */ 4497 L_3610B45B: 4498 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4499 edi = 0; /* 0x3610B45B: xor edi, edi */ 4500 _cf = 0; 4501 _flag_k = FK_TEST; 4502 MEM32(ecx + (-0x8)) = edi; /* 0x3610B45D: mov dword ptr [ecx - 8], edi */ 4503 MEM32(ecx + (-0x4)) = edi; /* 0x3610B460: mov dword ptr [ecx - 4], edi */ 4504 MEM32(ecx) = edi; /* 0x3610B463: mov dword ptr [ecx], edi */ 4505 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 4506 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4507 ecx = ecx + 0x20u; /* 0x3610B465: add ecx, 0x20 */ 4508 _flag_k = FK_ADD; 4509 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4510 edx = edx - 1; /* 0x3610B468: dec edx */ 4511 _flag_k = FK_DEC; 4512 RECOMP_BACKEDGE(); 4513 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610B45B; /* 0x3610B469: jne 0x3610b45b */ 4514 L_3610B46B: 4515 goto L_3610B46F; /* 0x3610B46B: jmp 0x3610b46f */ 4516 L_3610B46D: 4517 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4518 eax = 0; /* 0x3610B46D: xor eax, eax */ 4519 _cf = 0; 4520 _flag_k = FK_TEST; 4521 L_3610B46F: 4522 PUSH32(esp, 0x208u); /* 0x3610B46F: push 0x208 */ 4523 MEM32(esi + 0x3C) = eax; /* 0x3610B474: mov dword ptr [esi + 0x3c], eax */ 4524 RECOMP_ICALL(0x3615FD6Au); /* 0x3610B477: call 0x3615fd6a */ /* not lifted */ 4525 RECOMP_FLAGS_IN(); 4526 edi = eax; /* 0x3610B47C: mov edi, eax */ 4527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4529 esp = esp + 4; /* 0x3610B47E: add esp, 4 */ 4530 _flag_k = FK_ADD; 4531 MEM32(ebp + (-0x14)) = edi; /* 0x3610B481: mov dword ptr [ebp - 0x14], edi */ 4532 /* test edi, edi */ /* 0x3610B484: test edi, edi */ 4533 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4534 _cf = 0; 4535 _flag_k = FK_TEST; 4536 MEM32(ebp + (-0x4)) = 0; /* 0x3610B486: mov dword ptr [ebp - 4], 0 */ 4537 if (TEST_Z(_flag_a, _flag_b)) goto L_3610B4E4; /* 0x3610B48D: je 0x3610b4e4 */ 4538 L_3610B48F: 4539 edx = MEM32(esi + 0x44); /* 0x3610B48F: mov edx, dword ptr [esi + 0x44] */ 4540 PUSH32(esp, 0); /* 0x3610B492: push 0 */ 4541 PUSH32(esp, 0); /* 0x3610B494: push 0 */ 4542 PUSH32(esp, edx); /* 0x3610B496: push edx */ 4543 RECOMP_ICALL(0x360F7B00u); /* 0x3610B497: call 0x360f7b00 */ /* not lifted */ 4544 RECOMP_FLAGS_IN(); 4545 ecx = eax; /* 0x3610B49C: mov ecx, eax */ 4546 RECOMP_ICALL(0x360FBE40u); /* 0x3610B49E: call 0x360fbe40 */ /* not lifted */ 4547 RECOMP_FLAGS_IN(); 4548 PUSH32(esp, eax); /* 0x3610B4A3: push eax */ 4549 ecx = edi; /* 0x3610B4A4: mov ecx, edi */ 4550 RECOMP_ICALL(MEM32(0x3616F678)); /* 0x3610B4A6: call dword ptr [0x3616f678] */ 4551 RECOMP_FLAGS_IN(); 4552 MEM32(edi) = 0x36175AA0u; /* 0x3610B4AC: mov dword ptr [edi], 0x36175aa0 */ 4553 MEM32(edi + 0x8) = 0x36175A90u; /* 0x3610B4B2: mov dword ptr [edi + 8], 0x36175a90 */ 4554 MEM32(edi + 0x20) = 0x36175A80u; /* 0x3610B4B9: mov dword ptr [edi + 0x20], 0x36175a80 */ 4555 MEM32(edi + 0x38) = 0x36175A70u; /* 0x3610B4C0: mov dword ptr [edi + 0x38], 0x36175a70 */ 4556 MEM32(edi + 0x50) = 0x36175A60u; /* 0x3610B4C7: mov dword ptr [edi + 0x50], 0x36175a60 */ 4557 MEM32(edi + 0x138) = 0x36175A50u; /* 0x3610B4CE: mov dword ptr [edi + 0x138], 0x36175a50 */ 4558 MEM32(edi + 0x150) = 0x36175A40u; /* 0x3610B4D8: mov dword ptr [edi + 0x150], 0x36175a40 */ 4559 goto L_3610B4E6; /* 0x3610B4E2: jmp 0x3610b4e6 */ 4560 L_3610B4E4: 4561 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4562 edi = 0; /* 0x3610B4E4: xor edi, edi */ 4563 _cf = 0; 4564 _flag_k = FK_TEST; 4565 L_3610B4E6: 4566 MEM32(esi + 0x38) = edi; /* 0x3610B4E6: mov dword ptr [esi + 0x38], edi */ 4567 eax = 1; /* 0x3610B4E9: mov eax, 1 */ 4568 MEM32(edi + 0x1E0) = eax; /* 0x3610B4EE: mov dword ptr [edi + 0x1e0], eax */ 4569 ecx = MEM32(esi + 0x38); /* 0x3610B4F4: mov ecx, dword ptr [esi + 0x38] */ 4570 MEM32(ecx + 0x1E4) = eax; /* 0x3610B4F7: mov dword ptr [ecx + 0x1e4], eax */ 4571 edx = MEM32(esi + 0x24); /* 0x3610B4FD: mov edx, dword ptr [esi + 0x24] */ 4572 eax = MEM32(esi + 0x3C); /* 0x3610B500: mov eax, dword ptr [esi + 0x3c] */ 4573 ecx = MEM32(esi + 0x38); /* 0x3610B503: mov ecx, dword ptr [esi + 0x38] */ 4574 PUSH32(esp, edx); /* 0x3610B506: push edx */ 4575 PUSH32(esp, eax); /* 0x3610B507: push eax */ 4576 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610B508: mov dword ptr [ebp - 4], 0xffffffff */ 4577 RECOMP_ICALL(MEM32(0x3616F674)); /* 0x3610B50F: call dword ptr [0x3616f674] */ 4578 RECOMP_FLAGS_IN(); 4579 ecx = MEM32(esi + 0x38); /* 0x3610B515: mov ecx, dword ptr [esi + 0x38] */ 4580 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x3610B518: call dword ptr [0x3616f5f8] */ 4581 RECOMP_FLAGS_IN(); 4582 ecx = MEM32(esi + 0x38); /* 0x3610B51E: mov ecx, dword ptr [esi + 0x38] */ 4583 MEM8(ecx + 0x204) = (uint8_t)(1); /* 0x3610B521: mov byte ptr [ecx + 0x204], 1 */ 4584 ecx = MEM32(esi + 0x38); /* 0x3610B528: mov ecx, dword ptr [esi + 0x38] */ 4585 PUSH32(esp, 8); /* 0x3610B52B: push 8 */ 4586 RECOMP_ICALL(MEM32(0x3616F704)); /* 0x3610B52D: call dword ptr [0x3616f704] */ 4587 RECOMP_FLAGS_IN(); 4588 SET_LO8(edx, MEM8(ebx)); /* 0x3610B533: mov dl, byte ptr [ebx] */ 4589 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4590 ecx = 0; /* 0x3610B535: xor ecx, ecx */ 4591 _cf = 0; 4592 _flag_k = FK_TEST; 4593 /* test LO8(edx), LO8(edx) */ /* 0x3610B537: test dl, dl */ 4594 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4595 _cf = 0; 4596 _flag_k = FK_NARROW(FK_TEST, 24); 4597 edi = ebx; /* 0x3610B539: mov edi, ebx */ 4598 MEM32(ebp + (-0x10)) = ecx; /* 0x3610B53B: mov dword ptr [ebp - 0x10], ecx */ 4599 if (TEST_Z(_flag_a, _flag_b)) goto L_3610B56B; /* 0x3610B53E: je 0x3610b56b */ 4600 L_3610B540: 4601 SET_LO8(eax, MEM8(edi)); /* 0x3610B540: mov al, byte ptr [edi] */ 4602 /* cmp LO8(eax), 0x7Fu */ /* 0x3610B542: cmp al, 0x7f */ 4603 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x7Fu) << 24; 4604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4605 _flag_k = FK_NARROW(FK_CMP, 24); 4606 if (CMP_G(_flag_a, _flag_b)) goto L_3610B563; /* 0x3610B544: jg 0x3610b563 */ 4607 L_3610B546: 4608 /* cmp LO8(eax), 0x20u */ /* 0x3610B546: cmp al, 0x20 */ 4609 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x20u) << 24; 4610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4611 _flag_k = FK_NARROW(FK_CMP, 24); 4612 if (CMP_NE(_flag_a, _flag_b)) goto L_3610B54F; /* 0x3610B548: jne 0x3610b54f */ 4613 L_3610B54A: 4614 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 4615 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4616 ecx = ecx + 5; /* 0x3610B54A: add ecx, 5 */ 4617 _flag_k = FK_ADD; 4618 goto L_3610B562; /* 0x3610B54D: jmp 0x3610b562 */ 4619 L_3610B54F: 4620 eax = (int32_t)(int8_t)LO8(eax); /* 0x3610B54F: movsx eax, al */ 4621 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4622 ebx = 0; /* 0x3610B552: xor ebx, ebx */ 4623 _cf = 0; 4624 _flag_k = FK_TEST; 4625 SET_LO8(ebx, MEM8(eax + eax * 2 + 0x362E501E)); /* 0x3610B554: mov bl, byte ptr [eax + eax*2 + 0x362e501e] */ 4626 ecx = ecx + ebx + 0x1; /* 0x3610B55B: lea ecx, [ecx + ebx + 1] */ 4627 ebx = MEM32(ebp + 0x8); /* 0x3610B55F: mov ebx, dword ptr [ebp + 8] */ 4628 L_3610B562: 4629 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4630 edi = edi + 1; /* 0x3610B562: inc edi */ 4631 _flag_k = FK_INC; 4632 L_3610B563: 4633 /* cmp MEM8(edi), 0 */ /* 0x3610B563: cmp byte ptr [edi], 0 */ 4634 _flag_a = (uint32_t)(MEM8(edi)) << 24; _flag_b = (uint32_t)(0) << 24; 4635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4636 _flag_k = FK_NARROW(FK_CMP, 24); 4637 RECOMP_BACKEDGE(); 4638 if (CMP_NE(_flag_a, _flag_b)) goto L_3610B540; /* 0x3610B566: jne 0x3610b540 */ 4639 L_3610B568: 4640 MEM32(ebp + (-0x10)) = ecx; /* 0x3610B568: mov dword ptr [ebp - 0x10], ecx */ 4641 L_3610B56B: 4642 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3610B56B: fild dword ptr [ebp - 0x10] */ 4643 ecx = ebx; /* 0x3610B56E: mov ecx, ebx */ 4644 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4645 ebx = 0; /* 0x3610B570: xor ebx, ebx */ 4646 _cf = 0; 4647 _flag_k = FK_TEST; 4648 /* test LO8(edx), LO8(edx) */ /* 0x3610B572: test dl, dl */ 4649 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4650 _cf = 0; 4651 _flag_k = FK_NARROW(FK_TEST, 24); 4652 _st[0] *= (double)*(float*)ADDR(esi + 0x20); /* 0x3610B574: fmul dword ptr [esi + 0x20] */ 4653 MEM32(ebp + (-0x14)) = ecx; /* 0x3610B577: mov dword ptr [ebp - 0x14], ecx */ 4654 _st[0] *= (double)*(float*)ADDR(0x361763E0); /* 0x3610B57A: fmul dword ptr [0x361763e0] */ 4655 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3610B580: fstp dword ptr [ebp + 8] */ 4656 if (TEST_Z(_flag_a, _flag_b)) goto L_3610B654; /* 0x3610B583: je 0x3610b654 */ 4657 L_3610B589: 4658 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4659 edi = 0; /* 0x3610B589: xor edi, edi */ 4660 _cf = 0; 4661 _flag_k = FK_TEST; 4662 L_3610B58B: 4663 SET_LO8(eax, MEM8(ecx)); /* 0x3610B58B: mov al, byte ptr [ecx] */ 4664 /* cmp LO8(eax), 0x7Fu */ /* 0x3610B58D: cmp al, 0x7f */ 4665 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x7Fu) << 24; 4666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4667 _flag_k = FK_NARROW(FK_CMP, 24); 4668 if (CMP_G(_flag_a, _flag_b)) goto L_3610B64B; /* 0x3610B58F: jg 0x3610b64b */ 4669 L_3610B595: 4670 /* cmp LO8(eax), 0x20u */ /* 0x3610B595: cmp al, 0x20 */ 4671 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x20u) << 24; 4672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4673 _flag_k = FK_NARROW(FK_CMP, 24); 4674 if (CMP_NE(_flag_a, _flag_b)) goto L_3610B5AD; /* 0x3610B597: jne 0x3610b5ad */ 4675 L_3610B599: 4676 fp_push(*(float*)&MEM32(esi + 0x20)); /* 0x3610B599: fld dword ptr [esi + 0x20] */ 4677 _st[0] *= (double)*(float*)ADDR(0x361710C4); /* 0x3610B59C: fmul dword ptr [0x361710c4] */ 4678 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B5A2: fadd dword ptr [ebp + 8] */ 4679 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3610B5A5: fstp dword ptr [ebp + 8] */ 4680 goto L_3610B647; /* 0x3610B5A8: jmp 0x3610b647 */ 4681 L_3610B5AD: 4682 eax = (int32_t)(int8_t)LO8(eax); /* 0x3610B5AD: movsx eax, al */ 4683 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4684 edx = 0; /* 0x3610B5B0: xor edx, edx */ 4685 _cf = 0; 4686 _flag_k = FK_TEST; 4687 SET_LO8(edx, MEM8(eax + eax * 2 + 0x362E501E)); /* 0x3610B5B2: mov dl, byte ptr [eax + eax*2 + 0x362e501e] */ 4688 eax = edi; /* 0x3610B5B9: mov eax, edi */ 4689 MEM32(ebp + (-0x20)) = 0x3FC00000u; /* 0x3610B5BB: mov dword ptr [ebp - 0x20], 0x3fc00000 */ 4690 MEM32(ebp + (-0x1C)) = 0; /* 0x3610B5C2: mov dword ptr [ebp - 0x1c], 0 */ 4691 MEM32(ebp + (-0x10)) = edx; /* 0x3610B5C9: mov dword ptr [ebp - 0x10], edx */ 4692 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3610B5CC: fild dword ptr [ebp - 0x10] */ 4693 edx = MEM32(esi + 0x3C); /* 0x3610B5CF: mov edx, dword ptr [esi + 0x3c] */ 4694 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4696 eax = eax + edx; /* 0x3610B5D2: add eax, edx */ 4697 _flag_k = FK_ADD; 4698 _st[0] *= (double)*(float*)ADDR(esi + 0x20); /* 0x3610B5D4: fmul dword ptr [esi + 0x20] */ 4699 fp_push(_st[0]); /* 0x3610B5D7: fld st(0) */ 4700 _st[0] += (double)*(float*)ADDR(esi + 0x20); /* 0x3610B5D9: fadd dword ptr [esi + 0x20] */ 4701 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3610B5DC: fst dword ptr [ebp - 0x10] */ 4702 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3610B5DF: fmul dword ptr [0x36170464] */ 4703 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B5E5: fadd dword ptr [ebp + 8] */ 4704 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3610B5E8: fstp dword ptr [ebp - 0x24] */ 4705 edx = MEM32(ebp + (-0x24)); /* 0x3610B5EB: mov edx, dword ptr [ebp - 0x24] */ 4706 MEM32(eax) = edx; /* 0x3610B5EE: mov dword ptr [eax], edx */ 4707 edx = MEM32(ebp + (-0x20)); /* 0x3610B5F0: mov edx, dword ptr [ebp - 0x20] */ 4708 MEM32(eax + 0x4) = edx; /* 0x3610B5F3: mov dword ptr [eax + 4], edx */ 4709 edx = MEM32(ebp + (-0x1C)); /* 0x3610B5F6: mov edx, dword ptr [ebp - 0x1c] */ 4710 MEM32(eax + 0x8) = edx; /* 0x3610B5F9: mov dword ptr [eax + 8], edx */ 4711 eax = MEM32(esi + 0x3C); /* 0x3610B5FC: mov eax, dword ptr [esi + 0x3c] */ 4712 { float _v = (float)fp_pop(); *(float*)ADDR(edi + eax + 0xC) = _v; } /* 0x3610B5FF: fstp dword ptr [edi + eax + 0xc] */ 4713 edx = MEM32(esi + 0x3C); /* 0x3610B603: mov edx, dword ptr [esi + 0x3c] */ 4714 fp_push(*(float*)&MEM32(esi + 0x20)); /* 0x3610B606: fld dword ptr [esi + 0x20] */ 4715 _st[0] *= (double)*(float*)ADDR(0x361763DC); /* 0x3610B609: fmul dword ptr [0x361763dc] */ 4716 { float _v = (float)fp_pop(); *(float*)ADDR(edi + edx + 0x10) = _v; } /* 0x3610B60F: fstp dword ptr [edi + edx + 0x10] */ 4717 eax = MEM32(esi + 0x3C); /* 0x3610B613: mov eax, dword ptr [esi + 0x3c] */ 4718 edx = MEM32(ebp + (-0x18)); /* 0x3610B616: mov edx, dword ptr [ebp - 0x18] */ 4719 MEM32(edi + eax + 0x14) = edx; /* 0x3610B619: mov dword ptr [edi + eax + 0x14], edx */ 4720 eax = (int32_t)(int8_t)MEM8(ecx); /* 0x3610B61D: movsx eax, byte ptr [ecx] */ 4721 PUSH32(esp, eax); /* 0x3610B620: push eax */ 4722 ecx = esi; /* 0x3610B621: mov ecx, esi */ 4723 RECOMP_ICALL(0x3610B390u); /* 0x3610B623: call 0x3610b390 */ /* not lifted */ 4724 RECOMP_FLAGS_IN(); 4725 ecx = MEM32(esi + 0x3C); /* 0x3610B628: mov ecx, dword ptr [esi + 0x3c] */ 4726 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610B62B: fld dword ptr [ebp - 0x10] */ 4727 MEM32(edi + ecx + 0x18) = eax; /* 0x3610B62E: mov dword ptr [edi + ecx + 0x18], eax */ 4728 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B632: fadd dword ptr [ebp + 8] */ 4729 edx = MEM32(esi + 0x3C); /* 0x3610B635: mov edx, dword ptr [esi + 0x3c] */ 4730 ecx = MEM32(ebp + (-0x14)); /* 0x3610B638: mov ecx, dword ptr [ebp - 0x14] */ 4731 MEM8(edi + edx + 0x1C) = (uint8_t)(1); /* 0x3610B63B: mov byte ptr [edi + edx + 0x1c], 1 */ 4732 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 4733 ebx = ebx + 1; /* 0x3610B640: inc ebx */ 4734 _flag_k = FK_INC; 4735 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3610B641: fstp dword ptr [ebp + 8] */ 4736 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 4737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4738 edi = edi + 0x20u; /* 0x3610B644: add edi, 0x20 */ 4739 _flag_k = FK_ADD; 4740 L_3610B647: 4741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4742 ecx = ecx + 1; /* 0x3610B647: inc ecx */ 4743 _flag_k = FK_INC; 4744 MEM32(ebp + (-0x14)) = ecx; /* 0x3610B648: mov dword ptr [ebp - 0x14], ecx */ 4745 L_3610B64B: 4746 /* cmp MEM8(ecx), 0 */ /* 0x3610B64B: cmp byte ptr [ecx], 0 */ 4747 _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(0) << 24; 4748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4749 _flag_k = FK_NARROW(FK_CMP, 24); 4750 RECOMP_BACKEDGE(); 4751 if (CMP_NE(_flag_a, _flag_b)) goto L_3610B58B; /* 0x3610B64E: jne 0x3610b58b */ 4752 L_3610B654: 4753 /* cmp ebx, MEM32(esi + 0x24) */ /* 0x3610B654: cmp ebx, dword ptr [esi + 0x24] */ 4754 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x24)); 4755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4756 _flag_k = FK_CMP; 4757 if (CMP_GE(_flag_a, _flag_b)) goto L_3610B6C0; /* 0x3610B657: jge 0x3610b6c0 */ 4758 L_3610B659: 4759 eax = ebx; /* 0x3610B659: mov eax, ebx */ 4760 MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x3610B65B: mov dword ptr [ebp - 0x20], 0x3f800000 */ 4761 ecx = MEM32(ebp + (-0x20)); /* 0x3610B662: mov ecx, dword ptr [ebp - 0x20] */ 4762 MEM32(ebp + (-0x24)) = 0; /* 0x3610B665: mov dword ptr [ebp - 0x24], 0 */ 4763 MEM32(ebp + (-0x1C)) = 0; /* 0x3610B66C: mov dword ptr [ebp - 0x1c], 0 */ 4764 if (5u) _cf = (((eax) >> 27) & 1u); /* 0x3610B673: shl eax, 5 */ 4765 if (5u) { _flag_a = recomp_flags_pack((eax << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4766 eax = eax << 5u; /* 0x3610B673: shl eax, 5 */ 4767 L_3610B676: 4768 edi = MEM32(esi + 0x3C); /* 0x3610B676: mov edi, dword ptr [esi + 0x3c] */ 4769 edx = eax; /* 0x3610B679: mov edx, eax */ 4770 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 4771 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4772 edx = edx + edi; /* 0x3610B67B: add edx, edi */ 4773 _flag_k = FK_ADD; 4774 edi = MEM32(ebp + (-0x24)); /* 0x3610B67D: mov edi, dword ptr [ebp - 0x24] */ 4775 MEM32(edx) = edi; /* 0x3610B680: mov dword ptr [edx], edi */ 4776 edi = MEM32(ebp + (-0x1C)); /* 0x3610B682: mov edi, dword ptr [ebp - 0x1c] */ 4777 MEM32(edx + 0x4) = ecx; /* 0x3610B685: mov dword ptr [edx + 4], ecx */ 4778 MEM32(edx + 0x8) = edi; /* 0x3610B688: mov dword ptr [edx + 8], edi */ 4779 edi = MEM32(esi + 0x3C); /* 0x3610B68B: mov edi, dword ptr [esi + 0x3c] */ 4780 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4781 edx = 0; /* 0x3610B68E: xor edx, edx */ 4782 _cf = 0; 4783 _flag_k = FK_TEST; 4784 MEM32(eax + edi + 0xC) = edx; /* 0x3610B690: mov dword ptr [eax + edi + 0xc], edx */ 4785 edi = MEM32(esi + 0x3C); /* 0x3610B694: mov edi, dword ptr [esi + 0x3c] */ 4786 MEM32(eax + edi + 0x10) = edx; /* 0x3610B697: mov dword ptr [eax + edi + 0x10], edx */ 4787 edi = MEM32(esi + 0x3C); /* 0x3610B69B: mov edi, dword ptr [esi + 0x3c] */ 4788 MEM32(eax + edi + 0x14) = 0xFFFFFFFFu; /* 0x3610B69E: mov dword ptr [eax + edi + 0x14], 0xffffffff */ 4789 edi = MEM32(esi + 0x3C); /* 0x3610B6A6: mov edi, dword ptr [esi + 0x3c] */ 4790 MEM32(eax + edi + 0x18) = edx; /* 0x3610B6A9: mov dword ptr [eax + edi + 0x18], edx */ 4791 edx = MEM32(esi + 0x3C); /* 0x3610B6AD: mov edx, dword ptr [esi + 0x3c] */ 4792 MEM8(eax + edx + 0x1C) = (uint8_t)(0); /* 0x3610B6B0: mov byte ptr [eax + edx + 0x1c], 0 */ 4793 edx = MEM32(esi + 0x24); /* 0x3610B6B5: mov edx, dword ptr [esi + 0x24] */ 4794 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 4795 ebx = ebx + 1; /* 0x3610B6B8: inc ebx */ 4796 _flag_k = FK_INC; 4797 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 4798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4799 eax = eax + 0x20u; /* 0x3610B6B9: add eax, 0x20 */ 4800 _flag_k = FK_ADD; 4801 /* cmp ebx, edx */ /* 0x3610B6BC: cmp ebx, edx */ 4802 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 4803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4804 _flag_k = FK_CMP; 4805 RECOMP_BACKEDGE(); 4806 if (CMP_L(_flag_a, _flag_b)) goto L_3610B676; /* 0x3610B6BE: jl 0x3610b676 */ 4807 L_3610B6C0: 4808 ecx = MEM32(ebp + (-0xC)); /* 0x3610B6C0: mov ecx, dword ptr [ebp - 0xc] */ 4809 edi = POP32_VAL(esp); /* 0x3610B6C3: pop edi */ 4810 esi = POP32_VAL(esp); /* 0x3610B6C4: pop esi */ 4811 ebx = POP32_VAL(esp); /* 0x3610B6C5: pop ebx */ 4812 MEM32(FS_BASE + (0)) = ecx; /* 0x3610B6C6: mov dword ptr fs:[0], ecx */ 4813 esp = ebp; /* 0x3610B6CD: mov esp, ebp */ 4814 ebp = POP32_VAL(esp); /* 0x3610B6CF: pop ebp */ 4815 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610B6D0: ret 4 */ 4816 RECOMP_REGS_OUT(); 4817 } 4818 4819 void sub_3610B58B(void) { 4820 int _fpu_cmp = 0; 4821 uint32_t _cf = 0; 4822 int _df = 1; 4823 uint32_t _flag_k = FK_NONE; 4824 uint32_t _flag_a = 0, _flag_b = 0; 4825 uint32_t _itail_tgt = 0; 4826 RECOMP_REGS_LOCALS 4827 RECOMP_ENTER(0x3610B58Bu); 4828 4829 L_3610B58B: 4830 SET_LO8(eax, MEM8(ecx)); /* 0x3610B58B: mov al, byte ptr [ecx] */ 4831 /* cmp LO8(eax), 0x7Fu */ /* 0x3610B58D: cmp al, 0x7f */ 4832 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x7Fu) << 24; 4833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4834 _flag_k = FK_NARROW(FK_CMP, 24); 4835 if (CMP_G(_flag_a, _flag_b)) goto L_3610B64B; /* 0x3610B58F: jg 0x3610b64b */ 4836 L_3610B595: 4837 /* cmp LO8(eax), 0x20u */ /* 0x3610B595: cmp al, 0x20 */ 4838 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x20u) << 24; 4839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4840 _flag_k = FK_NARROW(FK_CMP, 24); 4841 if (CMP_NE(_flag_a, _flag_b)) goto L_3610B5AD; /* 0x3610B597: jne 0x3610b5ad */ 4842 L_3610B599: 4843 fp_push(*(float*)&MEM32(esi + 0x20)); /* 0x3610B599: fld dword ptr [esi + 0x20] */ 4844 _st[0] *= (double)*(float*)ADDR(0x361710C4); /* 0x3610B59C: fmul dword ptr [0x361710c4] */ 4845 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B5A2: fadd dword ptr [ebp + 8] */ 4846 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3610B5A5: fstp dword ptr [ebp + 8] */ 4847 goto L_3610B647; /* 0x3610B5A8: jmp 0x3610b647 */ 4848 L_3610B5AD: 4849 eax = (int32_t)(int8_t)LO8(eax); /* 0x3610B5AD: movsx eax, al */ 4850 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4851 edx = 0; /* 0x3610B5B0: xor edx, edx */ 4852 _cf = 0; 4853 _flag_k = FK_TEST; 4854 SET_LO8(edx, MEM8(eax + eax * 2 + 0x362E501E)); /* 0x3610B5B2: mov dl, byte ptr [eax + eax*2 + 0x362e501e] */ 4855 eax = edi; /* 0x3610B5B9: mov eax, edi */ 4856 MEM32(ebp + (-0x20)) = 0x3FC00000u; /* 0x3610B5BB: mov dword ptr [ebp - 0x20], 0x3fc00000 */ 4857 MEM32(ebp + (-0x1C)) = 0; /* 0x3610B5C2: mov dword ptr [ebp - 0x1c], 0 */ 4858 MEM32(ebp + (-0x10)) = edx; /* 0x3610B5C9: mov dword ptr [ebp - 0x10], edx */ 4859 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3610B5CC: fild dword ptr [ebp - 0x10] */ 4860 edx = MEM32(esi + 0x3C); /* 0x3610B5CF: mov edx, dword ptr [esi + 0x3c] */ 4861 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4862 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4863 eax = eax + edx; /* 0x3610B5D2: add eax, edx */ 4864 _flag_k = FK_ADD; 4865 _st[0] *= (double)*(float*)ADDR(esi + 0x20); /* 0x3610B5D4: fmul dword ptr [esi + 0x20] */ 4866 fp_push(_st[0]); /* 0x3610B5D7: fld st(0) */ 4867 _st[0] += (double)*(float*)ADDR(esi + 0x20); /* 0x3610B5D9: fadd dword ptr [esi + 0x20] */ 4868 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3610B5DC: fst dword ptr [ebp - 0x10] */ 4869 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3610B5DF: fmul dword ptr [0x36170464] */ 4870 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B5E5: fadd dword ptr [ebp + 8] */ 4871 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3610B5E8: fstp dword ptr [ebp - 0x24] */ 4872 edx = MEM32(ebp + (-0x24)); /* 0x3610B5EB: mov edx, dword ptr [ebp - 0x24] */ 4873 MEM32(eax) = edx; /* 0x3610B5EE: mov dword ptr [eax], edx */ 4874 edx = MEM32(ebp + (-0x20)); /* 0x3610B5F0: mov edx, dword ptr [ebp - 0x20] */ 4875 MEM32(eax + 0x4) = edx; /* 0x3610B5F3: mov dword ptr [eax + 4], edx */ 4876 edx = MEM32(ebp + (-0x1C)); /* 0x3610B5F6: mov edx, dword ptr [ebp - 0x1c] */ 4877 MEM32(eax + 0x8) = edx; /* 0x3610B5F9: mov dword ptr [eax + 8], edx */ 4878 eax = MEM32(esi + 0x3C); /* 0x3610B5FC: mov eax, dword ptr [esi + 0x3c] */ 4879 { float _v = (float)fp_pop(); *(float*)ADDR(edi + eax + 0xC) = _v; } /* 0x3610B5FF: fstp dword ptr [edi + eax + 0xc] */ 4880 edx = MEM32(esi + 0x3C); /* 0x3610B603: mov edx, dword ptr [esi + 0x3c] */ 4881 fp_push(*(float*)&MEM32(esi + 0x20)); /* 0x3610B606: fld dword ptr [esi + 0x20] */ 4882 _st[0] *= (double)*(float*)ADDR(0x361763DC); /* 0x3610B609: fmul dword ptr [0x361763dc] */ 4883 { float _v = (float)fp_pop(); *(float*)ADDR(edi + edx + 0x10) = _v; } /* 0x3610B60F: fstp dword ptr [edi + edx + 0x10] */ 4884 eax = MEM32(esi + 0x3C); /* 0x3610B613: mov eax, dword ptr [esi + 0x3c] */ 4885 edx = MEM32(ebp + (-0x18)); /* 0x3610B616: mov edx, dword ptr [ebp - 0x18] */ 4886 MEM32(edi + eax + 0x14) = edx; /* 0x3610B619: mov dword ptr [edi + eax + 0x14], edx */ 4887 eax = (int32_t)(int8_t)MEM8(ecx); /* 0x3610B61D: movsx eax, byte ptr [ecx] */ 4888 PUSH32(esp, eax); /* 0x3610B620: push eax */ 4889 ecx = esi; /* 0x3610B621: mov ecx, esi */ 4890 RECOMP_ICALL(0x3610B390u); /* 0x3610B623: call 0x3610b390 */ /* not lifted */ 4891 RECOMP_FLAGS_IN(); 4892 ecx = MEM32(esi + 0x3C); /* 0x3610B628: mov ecx, dword ptr [esi + 0x3c] */ 4893 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610B62B: fld dword ptr [ebp - 0x10] */ 4894 MEM32(edi + ecx + 0x18) = eax; /* 0x3610B62E: mov dword ptr [edi + ecx + 0x18], eax */ 4895 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B632: fadd dword ptr [ebp + 8] */ 4896 edx = MEM32(esi + 0x3C); /* 0x3610B635: mov edx, dword ptr [esi + 0x3c] */ 4897 ecx = MEM32(ebp + (-0x14)); /* 0x3610B638: mov ecx, dword ptr [ebp - 0x14] */ 4898 MEM8(edi + edx + 0x1C) = (uint8_t)(1); /* 0x3610B63B: mov byte ptr [edi + edx + 0x1c], 1 */ 4899 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 4900 ebx = ebx + 1; /* 0x3610B640: inc ebx */ 4901 _flag_k = FK_INC; 4902 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3610B641: fstp dword ptr [ebp + 8] */ 4903 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 4904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4905 edi = edi + 0x20u; /* 0x3610B644: add edi, 0x20 */ 4906 _flag_k = FK_ADD; 4907 L_3610B647: 4908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4909 ecx = ecx + 1; /* 0x3610B647: inc ecx */ 4910 _flag_k = FK_INC; 4911 MEM32(ebp + (-0x14)) = ecx; /* 0x3610B648: mov dword ptr [ebp - 0x14], ecx */ 4912 L_3610B64B: 4913 /* cmp MEM8(ecx), 0 */ /* 0x3610B64B: cmp byte ptr [ecx], 0 */ 4914 _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(0) << 24; 4915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4916 _flag_k = FK_NARROW(FK_CMP, 24); 4917 RECOMP_BACKEDGE(); 4918 if (CMP_NE(_flag_a, _flag_b)) goto L_3610B58B; /* 0x3610B64E: jne 0x3610b58b */ 4919 L_3610B654: 4920 /* cmp ebx, MEM32(esi + 0x24) */ /* 0x3610B654: cmp ebx, dword ptr [esi + 0x24] */ 4921 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x24)); 4922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4923 _flag_k = FK_CMP; 4924 if (CMP_GE(_flag_a, _flag_b)) goto L_3610B6C0; /* 0x3610B657: jge 0x3610b6c0 */ 4925 L_3610B659: 4926 eax = ebx; /* 0x3610B659: mov eax, ebx */ 4927 MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x3610B65B: mov dword ptr [ebp - 0x20], 0x3f800000 */ 4928 ecx = MEM32(ebp + (-0x20)); /* 0x3610B662: mov ecx, dword ptr [ebp - 0x20] */ 4929 MEM32(ebp + (-0x24)) = 0; /* 0x3610B665: mov dword ptr [ebp - 0x24], 0 */ 4930 MEM32(ebp + (-0x1C)) = 0; /* 0x3610B66C: mov dword ptr [ebp - 0x1c], 0 */ 4931 if (5u) _cf = (((eax) >> 27) & 1u); /* 0x3610B673: shl eax, 5 */ 4932 if (5u) { _flag_a = recomp_flags_pack((eax << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4933 eax = eax << 5u; /* 0x3610B673: shl eax, 5 */ 4934 L_3610B676: 4935 edi = MEM32(esi + 0x3C); /* 0x3610B676: mov edi, dword ptr [esi + 0x3c] */ 4936 edx = eax; /* 0x3610B679: mov edx, eax */ 4937 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 4938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4939 edx = edx + edi; /* 0x3610B67B: add edx, edi */ 4940 _flag_k = FK_ADD; 4941 edi = MEM32(ebp + (-0x24)); /* 0x3610B67D: mov edi, dword ptr [ebp - 0x24] */ 4942 MEM32(edx) = edi; /* 0x3610B680: mov dword ptr [edx], edi */ 4943 edi = MEM32(ebp + (-0x1C)); /* 0x3610B682: mov edi, dword ptr [ebp - 0x1c] */ 4944 MEM32(edx + 0x4) = ecx; /* 0x3610B685: mov dword ptr [edx + 4], ecx */ 4945 MEM32(edx + 0x8) = edi; /* 0x3610B688: mov dword ptr [edx + 8], edi */ 4946 edi = MEM32(esi + 0x3C); /* 0x3610B68B: mov edi, dword ptr [esi + 0x3c] */ 4947 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4948 edx = 0; /* 0x3610B68E: xor edx, edx */ 4949 _cf = 0; 4950 _flag_k = FK_TEST; 4951 MEM32(eax + edi + 0xC) = edx; /* 0x3610B690: mov dword ptr [eax + edi + 0xc], edx */ 4952 edi = MEM32(esi + 0x3C); /* 0x3610B694: mov edi, dword ptr [esi + 0x3c] */ 4953 MEM32(eax + edi + 0x10) = edx; /* 0x3610B697: mov dword ptr [eax + edi + 0x10], edx */ 4954 edi = MEM32(esi + 0x3C); /* 0x3610B69B: mov edi, dword ptr [esi + 0x3c] */ 4955 MEM32(eax + edi + 0x14) = 0xFFFFFFFFu; /* 0x3610B69E: mov dword ptr [eax + edi + 0x14], 0xffffffff */ 4956 edi = MEM32(esi + 0x3C); /* 0x3610B6A6: mov edi, dword ptr [esi + 0x3c] */ 4957 MEM32(eax + edi + 0x18) = edx; /* 0x3610B6A9: mov dword ptr [eax + edi + 0x18], edx */ 4958 edx = MEM32(esi + 0x3C); /* 0x3610B6AD: mov edx, dword ptr [esi + 0x3c] */ 4959 MEM8(eax + edx + 0x1C) = (uint8_t)(0); /* 0x3610B6B0: mov byte ptr [eax + edx + 0x1c], 0 */ 4960 edx = MEM32(esi + 0x24); /* 0x3610B6B5: mov edx, dword ptr [esi + 0x24] */ 4961 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 4962 ebx = ebx + 1; /* 0x3610B6B8: inc ebx */ 4963 _flag_k = FK_INC; 4964 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 4965 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4966 eax = eax + 0x20u; /* 0x3610B6B9: add eax, 0x20 */ 4967 _flag_k = FK_ADD; 4968 /* cmp ebx, edx */ /* 0x3610B6BC: cmp ebx, edx */ 4969 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 4970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4971 _flag_k = FK_CMP; 4972 RECOMP_BACKEDGE(); 4973 if (CMP_L(_flag_a, _flag_b)) goto L_3610B676; /* 0x3610B6BE: jl 0x3610b676 */ 4974 L_3610B6C0: 4975 ecx = MEM32(ebp + (-0xC)); /* 0x3610B6C0: mov ecx, dword ptr [ebp - 0xc] */ 4976 edi = POP32_VAL(esp); /* 0x3610B6C3: pop edi */ 4977 esi = POP32_VAL(esp); /* 0x3610B6C4: pop esi */ 4978 ebx = POP32_VAL(esp); /* 0x3610B6C5: pop ebx */ 4979 MEM32(FS_BASE + (0)) = ecx; /* 0x3610B6C6: mov dword ptr fs:[0], ecx */ 4980 esp = ebp; /* 0x3610B6CD: mov esp, ebp */ 4981 ebp = POP32_VAL(esp); /* 0x3610B6CF: pop ebp */ 4982 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610B6D0: ret 4 */ 4983 RECOMP_REGS_OUT(); 4984 } 4985 4986 void sub_3610B647(void) { 4987 int _fpu_cmp = 0; 4988 uint32_t _cf = 0; 4989 int _df = 1; 4990 uint32_t _flag_k = FK_NONE; 4991 uint32_t _flag_a = 0, _flag_b = 0; 4992 uint32_t _itail_tgt = 0; 4993 RECOMP_REGS_LOCALS 4994 RECOMP_ENTER(0x3610B647u); 4995 4996 goto L_3610B647; 4997 L_3610B58B: 4998 SET_LO8(eax, MEM8(ecx)); /* 0x3610B58B: mov al, byte ptr [ecx] */ 4999 /* cmp LO8(eax), 0x7Fu */ /* 0x3610B58D: cmp al, 0x7f */ 5000 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x7Fu) << 24; 5001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5002 _flag_k = FK_NARROW(FK_CMP, 24); 5003 if (CMP_G(_flag_a, _flag_b)) goto L_3610B64B; /* 0x3610B58F: jg 0x3610b64b */ 5004 L_3610B595: 5005 /* cmp LO8(eax), 0x20u */ /* 0x3610B595: cmp al, 0x20 */ 5006 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x20u) << 24; 5007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5008 _flag_k = FK_NARROW(FK_CMP, 24); 5009 if (CMP_NE(_flag_a, _flag_b)) goto L_3610B5AD; /* 0x3610B597: jne 0x3610b5ad */ 5010 L_3610B599: 5011 fp_push(*(float*)&MEM32(esi + 0x20)); /* 0x3610B599: fld dword ptr [esi + 0x20] */ 5012 _st[0] *= (double)*(float*)ADDR(0x361710C4); /* 0x3610B59C: fmul dword ptr [0x361710c4] */ 5013 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B5A2: fadd dword ptr [ebp + 8] */ 5014 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3610B5A5: fstp dword ptr [ebp + 8] */ 5015 goto L_3610B647; /* 0x3610B5A8: jmp 0x3610b647 */ 5016 L_3610B5AD: 5017 eax = (int32_t)(int8_t)LO8(eax); /* 0x3610B5AD: movsx eax, al */ 5018 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5019 edx = 0; /* 0x3610B5B0: xor edx, edx */ 5020 _cf = 0; 5021 _flag_k = FK_TEST; 5022 SET_LO8(edx, MEM8(eax + eax * 2 + 0x362E501E)); /* 0x3610B5B2: mov dl, byte ptr [eax + eax*2 + 0x362e501e] */ 5023 eax = edi; /* 0x3610B5B9: mov eax, edi */ 5024 MEM32(ebp + (-0x20)) = 0x3FC00000u; /* 0x3610B5BB: mov dword ptr [ebp - 0x20], 0x3fc00000 */ 5025 MEM32(ebp + (-0x1C)) = 0; /* 0x3610B5C2: mov dword ptr [ebp - 0x1c], 0 */ 5026 MEM32(ebp + (-0x10)) = edx; /* 0x3610B5C9: mov dword ptr [ebp - 0x10], edx */ 5027 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3610B5CC: fild dword ptr [ebp - 0x10] */ 5028 edx = MEM32(esi + 0x3C); /* 0x3610B5CF: mov edx, dword ptr [esi + 0x3c] */ 5029 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5030 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5031 eax = eax + edx; /* 0x3610B5D2: add eax, edx */ 5032 _flag_k = FK_ADD; 5033 _st[0] *= (double)*(float*)ADDR(esi + 0x20); /* 0x3610B5D4: fmul dword ptr [esi + 0x20] */ 5034 fp_push(_st[0]); /* 0x3610B5D7: fld st(0) */ 5035 _st[0] += (double)*(float*)ADDR(esi + 0x20); /* 0x3610B5D9: fadd dword ptr [esi + 0x20] */ 5036 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3610B5DC: fst dword ptr [ebp - 0x10] */ 5037 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3610B5DF: fmul dword ptr [0x36170464] */ 5038 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B5E5: fadd dword ptr [ebp + 8] */ 5039 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3610B5E8: fstp dword ptr [ebp - 0x24] */ 5040 edx = MEM32(ebp + (-0x24)); /* 0x3610B5EB: mov edx, dword ptr [ebp - 0x24] */ 5041 MEM32(eax) = edx; /* 0x3610B5EE: mov dword ptr [eax], edx */ 5042 edx = MEM32(ebp + (-0x20)); /* 0x3610B5F0: mov edx, dword ptr [ebp - 0x20] */ 5043 MEM32(eax + 0x4) = edx; /* 0x3610B5F3: mov dword ptr [eax + 4], edx */ 5044 edx = MEM32(ebp + (-0x1C)); /* 0x3610B5F6: mov edx, dword ptr [ebp - 0x1c] */ 5045 MEM32(eax + 0x8) = edx; /* 0x3610B5F9: mov dword ptr [eax + 8], edx */ 5046 eax = MEM32(esi + 0x3C); /* 0x3610B5FC: mov eax, dword ptr [esi + 0x3c] */ 5047 { float _v = (float)fp_pop(); *(float*)ADDR(edi + eax + 0xC) = _v; } /* 0x3610B5FF: fstp dword ptr [edi + eax + 0xc] */ 5048 edx = MEM32(esi + 0x3C); /* 0x3610B603: mov edx, dword ptr [esi + 0x3c] */ 5049 fp_push(*(float*)&MEM32(esi + 0x20)); /* 0x3610B606: fld dword ptr [esi + 0x20] */ 5050 _st[0] *= (double)*(float*)ADDR(0x361763DC); /* 0x3610B609: fmul dword ptr [0x361763dc] */ 5051 { float _v = (float)fp_pop(); *(float*)ADDR(edi + edx + 0x10) = _v; } /* 0x3610B60F: fstp dword ptr [edi + edx + 0x10] */ 5052 eax = MEM32(esi + 0x3C); /* 0x3610B613: mov eax, dword ptr [esi + 0x3c] */ 5053 edx = MEM32(ebp + (-0x18)); /* 0x3610B616: mov edx, dword ptr [ebp - 0x18] */ 5054 MEM32(edi + eax + 0x14) = edx; /* 0x3610B619: mov dword ptr [edi + eax + 0x14], edx */ 5055 eax = (int32_t)(int8_t)MEM8(ecx); /* 0x3610B61D: movsx eax, byte ptr [ecx] */ 5056 PUSH32(esp, eax); /* 0x3610B620: push eax */ 5057 ecx = esi; /* 0x3610B621: mov ecx, esi */ 5058 RECOMP_ICALL(0x3610B390u); /* 0x3610B623: call 0x3610b390 */ /* not lifted */ 5059 RECOMP_FLAGS_IN(); 5060 ecx = MEM32(esi + 0x3C); /* 0x3610B628: mov ecx, dword ptr [esi + 0x3c] */ 5061 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610B62B: fld dword ptr [ebp - 0x10] */ 5062 MEM32(edi + ecx + 0x18) = eax; /* 0x3610B62E: mov dword ptr [edi + ecx + 0x18], eax */ 5063 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B632: fadd dword ptr [ebp + 8] */ 5064 edx = MEM32(esi + 0x3C); /* 0x3610B635: mov edx, dword ptr [esi + 0x3c] */ 5065 ecx = MEM32(ebp + (-0x14)); /* 0x3610B638: mov ecx, dword ptr [ebp - 0x14] */ 5066 MEM8(edi + edx + 0x1C) = (uint8_t)(1); /* 0x3610B63B: mov byte ptr [edi + edx + 0x1c], 1 */ 5067 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 5068 ebx = ebx + 1; /* 0x3610B640: inc ebx */ 5069 _flag_k = FK_INC; 5070 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3610B641: fstp dword ptr [ebp + 8] */ 5071 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 5072 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5073 edi = edi + 0x20u; /* 0x3610B644: add edi, 0x20 */ 5074 _flag_k = FK_ADD; 5075 L_3610B647: 5076 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5077 ecx = ecx + 1; /* 0x3610B647: inc ecx */ 5078 _flag_k = FK_INC; 5079 MEM32(ebp + (-0x14)) = ecx; /* 0x3610B648: mov dword ptr [ebp - 0x14], ecx */ 5080 L_3610B64B: 5081 /* cmp MEM8(ecx), 0 */ /* 0x3610B64B: cmp byte ptr [ecx], 0 */ 5082 _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(0) << 24; 5083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5084 _flag_k = FK_NARROW(FK_CMP, 24); 5085 RECOMP_BACKEDGE(); 5086 if (CMP_NE(_flag_a, _flag_b)) goto L_3610B58B; /* 0x3610B64E: jne 0x3610b58b */ 5087 L_3610B654: 5088 /* cmp ebx, MEM32(esi + 0x24) */ /* 0x3610B654: cmp ebx, dword ptr [esi + 0x24] */ 5089 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x24)); 5090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5091 _flag_k = FK_CMP; 5092 if (CMP_GE(_flag_a, _flag_b)) goto L_3610B6C0; /* 0x3610B657: jge 0x3610b6c0 */ 5093 L_3610B659: 5094 eax = ebx; /* 0x3610B659: mov eax, ebx */ 5095 MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x3610B65B: mov dword ptr [ebp - 0x20], 0x3f800000 */ 5096 ecx = MEM32(ebp + (-0x20)); /* 0x3610B662: mov ecx, dword ptr [ebp - 0x20] */ 5097 MEM32(ebp + (-0x24)) = 0; /* 0x3610B665: mov dword ptr [ebp - 0x24], 0 */ 5098 MEM32(ebp + (-0x1C)) = 0; /* 0x3610B66C: mov dword ptr [ebp - 0x1c], 0 */ 5099 if (5u) _cf = (((eax) >> 27) & 1u); /* 0x3610B673: shl eax, 5 */ 5100 if (5u) { _flag_a = recomp_flags_pack((eax << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5101 eax = eax << 5u; /* 0x3610B673: shl eax, 5 */ 5102 L_3610B676: 5103 edi = MEM32(esi + 0x3C); /* 0x3610B676: mov edi, dword ptr [esi + 0x3c] */ 5104 edx = eax; /* 0x3610B679: mov edx, eax */ 5105 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5106 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5107 edx = edx + edi; /* 0x3610B67B: add edx, edi */ 5108 _flag_k = FK_ADD; 5109 edi = MEM32(ebp + (-0x24)); /* 0x3610B67D: mov edi, dword ptr [ebp - 0x24] */ 5110 MEM32(edx) = edi; /* 0x3610B680: mov dword ptr [edx], edi */ 5111 edi = MEM32(ebp + (-0x1C)); /* 0x3610B682: mov edi, dword ptr [ebp - 0x1c] */ 5112 MEM32(edx + 0x4) = ecx; /* 0x3610B685: mov dword ptr [edx + 4], ecx */ 5113 MEM32(edx + 0x8) = edi; /* 0x3610B688: mov dword ptr [edx + 8], edi */ 5114 edi = MEM32(esi + 0x3C); /* 0x3610B68B: mov edi, dword ptr [esi + 0x3c] */ 5115 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5116 edx = 0; /* 0x3610B68E: xor edx, edx */ 5117 _cf = 0; 5118 _flag_k = FK_TEST; 5119 MEM32(eax + edi + 0xC) = edx; /* 0x3610B690: mov dword ptr [eax + edi + 0xc], edx */ 5120 edi = MEM32(esi + 0x3C); /* 0x3610B694: mov edi, dword ptr [esi + 0x3c] */ 5121 MEM32(eax + edi + 0x10) = edx; /* 0x3610B697: mov dword ptr [eax + edi + 0x10], edx */ 5122 edi = MEM32(esi + 0x3C); /* 0x3610B69B: mov edi, dword ptr [esi + 0x3c] */ 5123 MEM32(eax + edi + 0x14) = 0xFFFFFFFFu; /* 0x3610B69E: mov dword ptr [eax + edi + 0x14], 0xffffffff */ 5124 edi = MEM32(esi + 0x3C); /* 0x3610B6A6: mov edi, dword ptr [esi + 0x3c] */ 5125 MEM32(eax + edi + 0x18) = edx; /* 0x3610B6A9: mov dword ptr [eax + edi + 0x18], edx */ 5126 edx = MEM32(esi + 0x3C); /* 0x3610B6AD: mov edx, dword ptr [esi + 0x3c] */ 5127 MEM8(eax + edx + 0x1C) = (uint8_t)(0); /* 0x3610B6B0: mov byte ptr [eax + edx + 0x1c], 0 */ 5128 edx = MEM32(esi + 0x24); /* 0x3610B6B5: mov edx, dword ptr [esi + 0x24] */ 5129 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 5130 ebx = ebx + 1; /* 0x3610B6B8: inc ebx */ 5131 _flag_k = FK_INC; 5132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 5133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5134 eax = eax + 0x20u; /* 0x3610B6B9: add eax, 0x20 */ 5135 _flag_k = FK_ADD; 5136 /* cmp ebx, edx */ /* 0x3610B6BC: cmp ebx, edx */ 5137 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 5138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5139 _flag_k = FK_CMP; 5140 RECOMP_BACKEDGE(); 5141 if (CMP_L(_flag_a, _flag_b)) goto L_3610B676; /* 0x3610B6BE: jl 0x3610b676 */ 5142 L_3610B6C0: 5143 ecx = MEM32(ebp + (-0xC)); /* 0x3610B6C0: mov ecx, dword ptr [ebp - 0xc] */ 5144 edi = POP32_VAL(esp); /* 0x3610B6C3: pop edi */ 5145 esi = POP32_VAL(esp); /* 0x3610B6C4: pop esi */ 5146 ebx = POP32_VAL(esp); /* 0x3610B6C5: pop ebx */ 5147 MEM32(FS_BASE + (0)) = ecx; /* 0x3610B6C6: mov dword ptr fs:[0], ecx */ 5148 esp = ebp; /* 0x3610B6CD: mov esp, ebp */ 5149 ebp = POP32_VAL(esp); /* 0x3610B6CF: pop ebp */ 5150 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610B6D0: ret 4 */ 5151 RECOMP_REGS_OUT(); 5152 } 5153 5154 void sub_3610B64B(void) { 5155 int _fpu_cmp = 0; 5156 uint32_t _cf = 0; 5157 int _df = 1; 5158 uint32_t _flag_k = FK_NONE; 5159 uint32_t _flag_a = 0, _flag_b = 0; 5160 uint32_t _itail_tgt = 0; 5161 RECOMP_REGS_LOCALS 5162 RECOMP_ENTER(0x3610B64Bu); 5163 5164 goto L_3610B64B; 5165 L_3610B58B: 5166 SET_LO8(eax, MEM8(ecx)); /* 0x3610B58B: mov al, byte ptr [ecx] */ 5167 /* cmp LO8(eax), 0x7Fu */ /* 0x3610B58D: cmp al, 0x7f */ 5168 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x7Fu) << 24; 5169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5170 _flag_k = FK_NARROW(FK_CMP, 24); 5171 if (CMP_G(_flag_a, _flag_b)) goto L_3610B64B; /* 0x3610B58F: jg 0x3610b64b */ 5172 L_3610B595: 5173 /* cmp LO8(eax), 0x20u */ /* 0x3610B595: cmp al, 0x20 */ 5174 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x20u) << 24; 5175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5176 _flag_k = FK_NARROW(FK_CMP, 24); 5177 if (CMP_NE(_flag_a, _flag_b)) goto L_3610B5AD; /* 0x3610B597: jne 0x3610b5ad */ 5178 L_3610B599: 5179 fp_push(*(float*)&MEM32(esi + 0x20)); /* 0x3610B599: fld dword ptr [esi + 0x20] */ 5180 _st[0] *= (double)*(float*)ADDR(0x361710C4); /* 0x3610B59C: fmul dword ptr [0x361710c4] */ 5181 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B5A2: fadd dword ptr [ebp + 8] */ 5182 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3610B5A5: fstp dword ptr [ebp + 8] */ 5183 goto L_3610B647; /* 0x3610B5A8: jmp 0x3610b647 */ 5184 L_3610B5AD: 5185 eax = (int32_t)(int8_t)LO8(eax); /* 0x3610B5AD: movsx eax, al */ 5186 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5187 edx = 0; /* 0x3610B5B0: xor edx, edx */ 5188 _cf = 0; 5189 _flag_k = FK_TEST; 5190 SET_LO8(edx, MEM8(eax + eax * 2 + 0x362E501E)); /* 0x3610B5B2: mov dl, byte ptr [eax + eax*2 + 0x362e501e] */ 5191 eax = edi; /* 0x3610B5B9: mov eax, edi */ 5192 MEM32(ebp + (-0x20)) = 0x3FC00000u; /* 0x3610B5BB: mov dword ptr [ebp - 0x20], 0x3fc00000 */ 5193 MEM32(ebp + (-0x1C)) = 0; /* 0x3610B5C2: mov dword ptr [ebp - 0x1c], 0 */ 5194 MEM32(ebp + (-0x10)) = edx; /* 0x3610B5C9: mov dword ptr [ebp - 0x10], edx */ 5195 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3610B5CC: fild dword ptr [ebp - 0x10] */ 5196 edx = MEM32(esi + 0x3C); /* 0x3610B5CF: mov edx, dword ptr [esi + 0x3c] */ 5197 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5198 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5199 eax = eax + edx; /* 0x3610B5D2: add eax, edx */ 5200 _flag_k = FK_ADD; 5201 _st[0] *= (double)*(float*)ADDR(esi + 0x20); /* 0x3610B5D4: fmul dword ptr [esi + 0x20] */ 5202 fp_push(_st[0]); /* 0x3610B5D7: fld st(0) */ 5203 _st[0] += (double)*(float*)ADDR(esi + 0x20); /* 0x3610B5D9: fadd dword ptr [esi + 0x20] */ 5204 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3610B5DC: fst dword ptr [ebp - 0x10] */ 5205 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3610B5DF: fmul dword ptr [0x36170464] */ 5206 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B5E5: fadd dword ptr [ebp + 8] */ 5207 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3610B5E8: fstp dword ptr [ebp - 0x24] */ 5208 edx = MEM32(ebp + (-0x24)); /* 0x3610B5EB: mov edx, dword ptr [ebp - 0x24] */ 5209 MEM32(eax) = edx; /* 0x3610B5EE: mov dword ptr [eax], edx */ 5210 edx = MEM32(ebp + (-0x20)); /* 0x3610B5F0: mov edx, dword ptr [ebp - 0x20] */ 5211 MEM32(eax + 0x4) = edx; /* 0x3610B5F3: mov dword ptr [eax + 4], edx */ 5212 edx = MEM32(ebp + (-0x1C)); /* 0x3610B5F6: mov edx, dword ptr [ebp - 0x1c] */ 5213 MEM32(eax + 0x8) = edx; /* 0x3610B5F9: mov dword ptr [eax + 8], edx */ 5214 eax = MEM32(esi + 0x3C); /* 0x3610B5FC: mov eax, dword ptr [esi + 0x3c] */ 5215 { float _v = (float)fp_pop(); *(float*)ADDR(edi + eax + 0xC) = _v; } /* 0x3610B5FF: fstp dword ptr [edi + eax + 0xc] */ 5216 edx = MEM32(esi + 0x3C); /* 0x3610B603: mov edx, dword ptr [esi + 0x3c] */ 5217 fp_push(*(float*)&MEM32(esi + 0x20)); /* 0x3610B606: fld dword ptr [esi + 0x20] */ 5218 _st[0] *= (double)*(float*)ADDR(0x361763DC); /* 0x3610B609: fmul dword ptr [0x361763dc] */ 5219 { float _v = (float)fp_pop(); *(float*)ADDR(edi + edx + 0x10) = _v; } /* 0x3610B60F: fstp dword ptr [edi + edx + 0x10] */ 5220 eax = MEM32(esi + 0x3C); /* 0x3610B613: mov eax, dword ptr [esi + 0x3c] */ 5221 edx = MEM32(ebp + (-0x18)); /* 0x3610B616: mov edx, dword ptr [ebp - 0x18] */ 5222 MEM32(edi + eax + 0x14) = edx; /* 0x3610B619: mov dword ptr [edi + eax + 0x14], edx */ 5223 eax = (int32_t)(int8_t)MEM8(ecx); /* 0x3610B61D: movsx eax, byte ptr [ecx] */ 5224 PUSH32(esp, eax); /* 0x3610B620: push eax */ 5225 ecx = esi; /* 0x3610B621: mov ecx, esi */ 5226 RECOMP_ICALL(0x3610B390u); /* 0x3610B623: call 0x3610b390 */ /* not lifted */ 5227 RECOMP_FLAGS_IN(); 5228 ecx = MEM32(esi + 0x3C); /* 0x3610B628: mov ecx, dword ptr [esi + 0x3c] */ 5229 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610B62B: fld dword ptr [ebp - 0x10] */ 5230 MEM32(edi + ecx + 0x18) = eax; /* 0x3610B62E: mov dword ptr [edi + ecx + 0x18], eax */ 5231 _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610B632: fadd dword ptr [ebp + 8] */ 5232 edx = MEM32(esi + 0x3C); /* 0x3610B635: mov edx, dword ptr [esi + 0x3c] */ 5233 ecx = MEM32(ebp + (-0x14)); /* 0x3610B638: mov ecx, dword ptr [ebp - 0x14] */ 5234 MEM8(edi + edx + 0x1C) = (uint8_t)(1); /* 0x3610B63B: mov byte ptr [edi + edx + 0x1c], 1 */ 5235 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 5236 ebx = ebx + 1; /* 0x3610B640: inc ebx */ 5237 _flag_k = FK_INC; 5238 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3610B641: fstp dword ptr [ebp + 8] */ 5239 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 5240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5241 edi = edi + 0x20u; /* 0x3610B644: add edi, 0x20 */ 5242 _flag_k = FK_ADD; 5243 L_3610B647: 5244 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5245 ecx = ecx + 1; /* 0x3610B647: inc ecx */ 5246 _flag_k = FK_INC; 5247 MEM32(ebp + (-0x14)) = ecx; /* 0x3610B648: mov dword ptr [ebp - 0x14], ecx */ 5248 L_3610B64B: 5249 /* cmp MEM8(ecx), 0 */ /* 0x3610B64B: cmp byte ptr [ecx], 0 */ 5250 _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(0) << 24; 5251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5252 _flag_k = FK_NARROW(FK_CMP, 24); 5253 RECOMP_BACKEDGE(); 5254 if (CMP_NE(_flag_a, _flag_b)) goto L_3610B58B; /* 0x3610B64E: jne 0x3610b58b */ 5255 L_3610B654: 5256 /* cmp ebx, MEM32(esi + 0x24) */ /* 0x3610B654: cmp ebx, dword ptr [esi + 0x24] */ 5257 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x24)); 5258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5259 _flag_k = FK_CMP; 5260 if (CMP_GE(_flag_a, _flag_b)) goto L_3610B6C0; /* 0x3610B657: jge 0x3610b6c0 */ 5261 L_3610B659: 5262 eax = ebx; /* 0x3610B659: mov eax, ebx */ 5263 MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x3610B65B: mov dword ptr [ebp - 0x20], 0x3f800000 */ 5264 ecx = MEM32(ebp + (-0x20)); /* 0x3610B662: mov ecx, dword ptr [ebp - 0x20] */ 5265 MEM32(ebp + (-0x24)) = 0; /* 0x3610B665: mov dword ptr [ebp - 0x24], 0 */ 5266 MEM32(ebp + (-0x1C)) = 0; /* 0x3610B66C: mov dword ptr [ebp - 0x1c], 0 */ 5267 if (5u) _cf = (((eax) >> 27) & 1u); /* 0x3610B673: shl eax, 5 */ 5268 if (5u) { _flag_a = recomp_flags_pack((eax << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5269 eax = eax << 5u; /* 0x3610B673: shl eax, 5 */ 5270 L_3610B676: 5271 edi = MEM32(esi + 0x3C); /* 0x3610B676: mov edi, dword ptr [esi + 0x3c] */ 5272 edx = eax; /* 0x3610B679: mov edx, eax */ 5273 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5275 edx = edx + edi; /* 0x3610B67B: add edx, edi */ 5276 _flag_k = FK_ADD; 5277 edi = MEM32(ebp + (-0x24)); /* 0x3610B67D: mov edi, dword ptr [ebp - 0x24] */ 5278 MEM32(edx) = edi; /* 0x3610B680: mov dword ptr [edx], edi */ 5279 edi = MEM32(ebp + (-0x1C)); /* 0x3610B682: mov edi, dword ptr [ebp - 0x1c] */ 5280 MEM32(edx + 0x4) = ecx; /* 0x3610B685: mov dword ptr [edx + 4], ecx */ 5281 MEM32(edx + 0x8) = edi; /* 0x3610B688: mov dword ptr [edx + 8], edi */ 5282 edi = MEM32(esi + 0x3C); /* 0x3610B68B: mov edi, dword ptr [esi + 0x3c] */ 5283 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5284 edx = 0; /* 0x3610B68E: xor edx, edx */ 5285 _cf = 0; 5286 _flag_k = FK_TEST; 5287 MEM32(eax + edi + 0xC) = edx; /* 0x3610B690: mov dword ptr [eax + edi + 0xc], edx */ 5288 edi = MEM32(esi + 0x3C); /* 0x3610B694: mov edi, dword ptr [esi + 0x3c] */ 5289 MEM32(eax + edi + 0x10) = edx; /* 0x3610B697: mov dword ptr [eax + edi + 0x10], edx */ 5290 edi = MEM32(esi + 0x3C); /* 0x3610B69B: mov edi, dword ptr [esi + 0x3c] */ 5291 MEM32(eax + edi + 0x14) = 0xFFFFFFFFu; /* 0x3610B69E: mov dword ptr [eax + edi + 0x14], 0xffffffff */ 5292 edi = MEM32(esi + 0x3C); /* 0x3610B6A6: mov edi, dword ptr [esi + 0x3c] */ 5293 MEM32(eax + edi + 0x18) = edx; /* 0x3610B6A9: mov dword ptr [eax + edi + 0x18], edx */ 5294 edx = MEM32(esi + 0x3C); /* 0x3610B6AD: mov edx, dword ptr [esi + 0x3c] */ 5295 MEM8(eax + edx + 0x1C) = (uint8_t)(0); /* 0x3610B6B0: mov byte ptr [eax + edx + 0x1c], 0 */ 5296 edx = MEM32(esi + 0x24); /* 0x3610B6B5: mov edx, dword ptr [esi + 0x24] */ 5297 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 5298 ebx = ebx + 1; /* 0x3610B6B8: inc ebx */ 5299 _flag_k = FK_INC; 5300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 5301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5302 eax = eax + 0x20u; /* 0x3610B6B9: add eax, 0x20 */ 5303 _flag_k = FK_ADD; 5304 /* cmp ebx, edx */ /* 0x3610B6BC: cmp ebx, edx */ 5305 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 5306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5307 _flag_k = FK_CMP; 5308 RECOMP_BACKEDGE(); 5309 if (CMP_L(_flag_a, _flag_b)) goto L_3610B676; /* 0x3610B6BE: jl 0x3610b676 */ 5310 L_3610B6C0: 5311 ecx = MEM32(ebp + (-0xC)); /* 0x3610B6C0: mov ecx, dword ptr [ebp - 0xc] */ 5312 edi = POP32_VAL(esp); /* 0x3610B6C3: pop edi */ 5313 esi = POP32_VAL(esp); /* 0x3610B6C4: pop esi */ 5314 ebx = POP32_VAL(esp); /* 0x3610B6C5: pop ebx */ 5315 MEM32(FS_BASE + (0)) = ecx; /* 0x3610B6C6: mov dword ptr fs:[0], ecx */ 5316 esp = ebp; /* 0x3610B6CD: mov esp, ebp */ 5317 ebp = POP32_VAL(esp); /* 0x3610B6CF: pop ebp */ 5318 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610B6D0: ret 4 */ 5319 RECOMP_REGS_OUT(); 5320 } 5321 5322 void sub_3610B6E0(void) { 5323 int _fpu_cmp = 0; 5324 uint32_t _cf = 0; 5325 int _df = 1; 5326 uint32_t _flag_k = FK_NONE; 5327 uint32_t _flag_a = 0, _flag_b = 0; 5328 uint32_t _itail_tgt = 0; 5329 RECOMP_REGS_LOCALS 5330 RECOMP_ENTER(0x3610B6E0u); 5331 5332 L_3610B6E0: 5333 PUSH32(esp, ebp); /* 0x3610B6E0: push ebp */ 5334 ebp = esp; /* 0x3610B6E1: mov ebp, esp */ 5335 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610B6E3: push -1 */ 5336 PUSH32(esp, 0x3616A50Cu); /* 0x3610B6E5: push 0x3616a50c */ 5337 eax = MEM32(FS_BASE + (0)); /* 0x3610B6EA: mov eax, dword ptr fs:[0] */ 5338 PUSH32(esp, eax); /* 0x3610B6F0: push eax */ 5339 MEM32(FS_BASE + (0)) = esp; /* 0x3610B6F1: mov dword ptr fs:[0], esp */ 5340 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5342 esp = esp - 0x10u; /* 0x3610B6F8: sub esp, 0x10 */ 5343 _flag_k = FK_CMP; 5344 PUSH32(esp, ebx); /* 0x3610B6FB: push ebx */ 5345 PUSH32(esp, esi); /* 0x3610B6FC: push esi */ 5346 PUSH32(esp, edi); /* 0x3610B6FD: push edi */ 5347 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5348 ebx = 0; /* 0x3610B6FE: xor ebx, ebx */ 5349 _cf = 0; 5350 _flag_k = FK_TEST; 5351 PUSH32(esp, ebx); /* 0x3610B700: push ebx */ 5352 esi = ecx; /* 0x3610B701: mov esi, ecx */ 5353 PUSH32(esp, ebx); /* 0x3610B703: push ebx */ 5354 MEM32(ebp + (-0x10)) = esi; /* 0x3610B704: mov dword ptr [ebp - 0x10], esi */ 5355 MEM32(ebp + (-0x1C)) = 0; /* 0x3610B707: mov dword ptr [ebp - 0x1c], 0 */ 5356 MEM32(ebp + (-0x18)) = 0; /* 0x3610B70E: mov dword ptr [ebp - 0x18], 0 */ 5357 MEM32(ebp + (-0x14)) = 0; /* 0x3610B715: mov dword ptr [ebp - 0x14], 0 */ 5358 RECOMP_ICALL(MEM32(0x3616F730)); /* 0x3610B71C: call dword ptr [0x3616f730] */ 5359 RECOMP_FLAGS_IN(); 5360 eax = MEM32(ebp + 0x8); /* 0x3610B722: mov eax, dword ptr [ebp + 8] */ 5361 ecx = MEM32(ebp + 0xC); /* 0x3610B725: mov ecx, dword ptr [ebp + 0xc] */ 5362 edx = esi + 0x204; /* 0x3610B728: lea edx, [esi + 0x204] */ 5363 MEM32(esi + 0x1D4) = eax; /* 0x3610B72E: mov dword ptr [esi + 0x1d4], eax */ 5364 eax = MEM32(ebp + (-0x1C)); /* 0x3610B734: mov eax, dword ptr [ebp - 0x1c] */ 5365 edi = edx; /* 0x3610B737: mov edi, edx */ 5366 edx = MEM32(ebp + (-0x14)); /* 0x3610B739: mov edx, dword ptr [ebp - 0x14] */ 5367 MEM32(edi) = eax; /* 0x3610B73C: mov dword ptr [edi], eax */ 5368 MEM32(esi + 0x1D8) = ecx; /* 0x3610B73E: mov dword ptr [esi + 0x1d8], ecx */ 5369 ecx = MEM32(ebp + (-0x18)); /* 0x3610B744: mov ecx, dword ptr [ebp - 0x18] */ 5370 MEM32(edi + 0x4) = ecx; /* 0x3610B747: mov dword ptr [edi + 4], ecx */ 5371 MEM32(edi + 0x8) = edx; /* 0x3610B74A: mov dword ptr [edi + 8], edx */ 5372 edi = esi + 0x78; /* 0x3610B74D: lea edi, [esi + 0x78] */ 5373 MEM32(edi) = eax; /* 0x3610B750: mov dword ptr [edi], eax */ 5374 MEM32(edi + 0x4) = ecx; /* 0x3610B752: mov dword ptr [edi + 4], ecx */ 5375 PUSH32(esp, 1); /* 0x3610B755: push 1 */ 5376 PUSH32(esp, 1); /* 0x3610B757: push 1 */ 5377 ecx = esi; /* 0x3610B759: mov ecx, esi */ 5378 MEM32(ebp + (-0x4)) = ebx; /* 0x3610B75B: mov dword ptr [ebp - 4], ebx */ 5379 MEM32(esi + 0x1DC) = ebx; /* 0x3610B75E: mov dword ptr [esi + 0x1dc], ebx */ 5380 MEM32(esi + 0x1E0) = ebx; /* 0x3610B764: mov dword ptr [esi + 0x1e0], ebx */ 5381 MEM32(esi + 0x1E4) = ebx; /* 0x3610B76A: mov dword ptr [esi + 0x1e4], ebx */ 5382 MEM32(esi + 0x1E8) = ebx; /* 0x3610B770: mov dword ptr [esi + 0x1e8], ebx */ 5383 MEM32(esi + 0x1EC) = ebx; /* 0x3610B776: mov dword ptr [esi + 0x1ec], ebx */ 5384 MEM32(esi + 0x1F0) = ebx; /* 0x3610B77C: mov dword ptr [esi + 0x1f0], ebx */ 5385 MEM32(esi + 0x1F4) = ebx; /* 0x3610B782: mov dword ptr [esi + 0x1f4], ebx */ 5386 MEM32(esi + 0x1F8) = ebx; /* 0x3610B788: mov dword ptr [esi + 0x1f8], ebx */ 5387 MEM8(esi + 0x1FC) = (uint8_t)(LO8(ebx)); /* 0x3610B78E: mov byte ptr [esi + 0x1fc], bl */ 5388 MEM32(esi + 0x210) = ebx; /* 0x3610B794: mov dword ptr [esi + 0x210], ebx */ 5389 MEM8(esi + 0x214) = (uint8_t)(LO8(ebx)); /* 0x3610B79A: mov byte ptr [esi + 0x214], bl */ 5390 MEM32(esi) = 0x36176448u; /* 0x3610B7A0: mov dword ptr [esi], 0x36176448 */ 5391 MEM32(esi + 0x8) = 0x36176438u; /* 0x3610B7A6: mov dword ptr [esi + 8], 0x36176438 */ 5392 MEM32(esi + 0x20) = 0x36176428u; /* 0x3610B7AD: mov dword ptr [esi + 0x20], 0x36176428 */ 5393 MEM32(esi + 0x38) = 0x36176418u; /* 0x3610B7B4: mov dword ptr [esi + 0x38], 0x36176418 */ 5394 MEM32(esi + 0x50) = 0x36176408u; /* 0x3610B7BB: mov dword ptr [esi + 0x50], 0x36176408 */ 5395 MEM32(esi + 0x138) = 0x361763F8u; /* 0x3610B7C2: mov dword ptr [esi + 0x138], 0x361763f8 */ 5396 MEM32(esi + 0x150) = 0x361763E8u; /* 0x3610B7CC: mov dword ptr [esi + 0x150], 0x361763e8 */ 5397 MEM32(edi + 0x8) = edx; /* 0x3610B7D6: mov dword ptr [edi + 8], edx */ 5398 RECOMP_ICALL(MEM32(0x36176474)); /* 0x3610B7D9: call dword ptr [0x36176474] */ 5399 RECOMP_FLAGS_IN(); 5400 PUSH32(esp, 0x3ECu); /* 0x3610B7DF: push 0x3ec */ 5401 RECOMP_ICALL(0x3615FD6Au); /* 0x3610B7E4: call 0x3615fd6a */ /* not lifted */ 5402 RECOMP_FLAGS_IN(); 5403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5405 esp = esp + 4; /* 0x3610B7E9: add esp, 4 */ 5406 _flag_k = FK_ADD; 5407 MEM32(ebp + 0x8) = eax; /* 0x3610B7EC: mov dword ptr [ebp + 8], eax */ 5408 /* cmp eax, ebx */ /* 0x3610B7EF: cmp eax, ebx */ 5409 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5411 _flag_k = FK_CMP; 5412 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3610B7F1: mov byte ptr [ebp - 4], 1 */ 5413 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610B802; /* 0x3610B7F5: je 0x3610b802 */ 5414 L_3610B7F7: 5415 PUSH32(esp, 1); /* 0x3610B7F7: push 1 */ 5416 ecx = eax; /* 0x3610B7F9: mov ecx, eax */ 5417 RECOMP_ICALL(0x3615BC20u); /* 0x3610B7FB: call 0x3615bc20 */ /* not lifted */ 5418 RECOMP_FLAGS_IN(); 5419 goto L_3610B804; /* 0x3610B800: jmp 0x3610b804 */ 5420 L_3610B802: 5421 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5422 eax = 0; /* 0x3610B802: xor eax, eax */ 5423 _cf = 0; 5424 _flag_k = FK_TEST; 5425 L_3610B804: 5426 MEM32(esi + 0x218) = eax; /* 0x3610B804: mov dword ptr [esi + 0x218], eax */ 5427 eax = MEM32(0x3616F72C); /* 0x3610B80A: mov eax, dword ptr [0x3616f72c] */ 5428 MEM32(esi) = eax; /* 0x3610B80F: mov dword ptr [esi], eax */ 5429 ecx = MEM32(0x3616F728); /* 0x3610B811: mov ecx, dword ptr [0x3616f728] */ 5430 MEM32(esi + 0x8) = ecx; /* 0x3610B817: mov dword ptr [esi + 8], ecx */ 5431 edx = MEM32(0x3616F724); /* 0x3610B81A: mov edx, dword ptr [0x3616f724] */ 5432 MEM32(esi + 0x20) = edx; /* 0x3610B820: mov dword ptr [esi + 0x20], edx */ 5433 eax = MEM32(0x3616F720); /* 0x3610B823: mov eax, dword ptr [0x3616f720] */ 5434 MEM32(esi + 0x38) = eax; /* 0x3610B828: mov dword ptr [esi + 0x38], eax */ 5435 ecx = MEM32(0x3616F71C); /* 0x3610B82B: mov ecx, dword ptr [0x3616f71c] */ 5436 MEM32(esi + 0x50) = ecx; /* 0x3610B831: mov dword ptr [esi + 0x50], ecx */ 5437 edx = MEM32(0x3616F718); /* 0x3610B834: mov edx, dword ptr [0x3616f718] */ 5438 MEM32(esi + 0x138) = edx; /* 0x3610B83A: mov dword ptr [esi + 0x138], edx */ 5439 eax = MEM32(0x3616F714); /* 0x3610B840: mov eax, dword ptr [0x3616f714] */ 5440 MEM32(ebp + (-0x4)) = 2; /* 0x3610B845: mov dword ptr [ebp - 4], 2 */ 5441 MEM32(esi + 0x150) = eax; /* 0x3610B84C: mov dword ptr [esi + 0x150], eax */ 5442 RECOMP_ICALL(MEM32(0x3616F39C)); /* 0x3610B852: call dword ptr [0x3616f39c] */ 5443 RECOMP_FLAGS_IN(); 5444 ecx = MEM32(eax + 0x718); /* 0x3610B858: mov ecx, dword ptr [eax + 0x718] */ 5445 MEM32(esi + 0x21C) = ecx; /* 0x3610B85E: mov dword ptr [esi + 0x21c], ecx */ 5446 PUSH32(esp, 7); /* 0x3610B864: push 7 */ 5447 ecx = esi; /* 0x3610B866: mov ecx, esi */ 5448 RECOMP_ICALL(MEM32(0x3616F704)); /* 0x3610B868: call dword ptr [0x3616f704] */ 5449 RECOMP_FLAGS_IN(); 5450 edx = MEM32(esi); /* 0x3610B86E: mov edx, dword ptr [esi] */ 5451 ecx = esi; /* 0x3610B870: mov ecx, esi */ 5452 MEM32(esi + 0x224) = ebx; /* 0x3610B872: mov dword ptr [esi + 0x224], ebx */ 5453 MEM32(esi + 0x228) = ebx; /* 0x3610B878: mov dword ptr [esi + 0x228], ebx */ 5454 MEM8(esi + 0x22C) = (uint8_t)(LO8(ebx)); /* 0x3610B87E: mov byte ptr [esi + 0x22c], bl */ 5455 MEM32(esi + 0x230) = ebx; /* 0x3610B884: mov dword ptr [esi + 0x230], ebx */ 5456 MEM32(esi + 0x234) = 0x3F800000u; /* 0x3610B88A: mov dword ptr [esi + 0x234], 0x3f800000 */ 5457 RECOMP_ICALL(MEM32(edx + 0x5C)); /* 0x3610B894: call dword ptr [edx + 0x5c] */ 5458 RECOMP_FLAGS_IN(); 5459 ecx = MEM32(ebp + (-0xC)); /* 0x3610B897: mov ecx, dword ptr [ebp - 0xc] */ 5460 edi = POP32_VAL(esp); /* 0x3610B89A: pop edi */ 5461 eax = esi; /* 0x3610B89B: mov eax, esi */ 5462 esi = POP32_VAL(esp); /* 0x3610B89D: pop esi */ 5463 ebx = POP32_VAL(esp); /* 0x3610B89E: pop ebx */ 5464 MEM32(FS_BASE + (0)) = ecx; /* 0x3610B89F: mov dword ptr fs:[0], ecx */ 5465 esp = ebp; /* 0x3610B8A6: mov esp, ebp */ 5466 ebp = POP32_VAL(esp); /* 0x3610B8A8: pop ebp */ 5467 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3610B8A9: ret 8 */ 5468 RECOMP_REGS_OUT(); 5469 } 5470 5471 void sub_3610B715(void) { 5472 int _fpu_cmp = 0; 5473 uint32_t _cf = 0; 5474 int _df = 1; 5475 uint32_t _flag_k = FK_NONE; 5476 uint32_t _flag_a = 0, _flag_b = 0; 5477 uint32_t _itail_tgt = 0; 5478 RECOMP_REGS_LOCALS 5479 RECOMP_ENTER(0x3610B715u); 5480 5481 L_3610B715: 5482 MEM32(ebp + (-0x14)) = 0; /* 0x3610B715: mov dword ptr [ebp - 0x14], 0 */ 5483 RECOMP_ICALL(MEM32(0x3616F730)); /* 0x3610B71C: call dword ptr [0x3616f730] */ 5484 RECOMP_FLAGS_IN(); 5485 eax = MEM32(ebp + 0x8); /* 0x3610B722: mov eax, dword ptr [ebp + 8] */ 5486 ecx = MEM32(ebp + 0xC); /* 0x3610B725: mov ecx, dword ptr [ebp + 0xc] */ 5487 edx = esi + 0x204; /* 0x3610B728: lea edx, [esi + 0x204] */ 5488 MEM32(esi + 0x1D4) = eax; /* 0x3610B72E: mov dword ptr [esi + 0x1d4], eax */ 5489 eax = MEM32(ebp + (-0x1C)); /* 0x3610B734: mov eax, dword ptr [ebp - 0x1c] */ 5490 edi = edx; /* 0x3610B737: mov edi, edx */ 5491 edx = MEM32(ebp + (-0x14)); /* 0x3610B739: mov edx, dword ptr [ebp - 0x14] */ 5492 MEM32(edi) = eax; /* 0x3610B73C: mov dword ptr [edi], eax */ 5493 MEM32(esi + 0x1D8) = ecx; /* 0x3610B73E: mov dword ptr [esi + 0x1d8], ecx */ 5494 ecx = MEM32(ebp + (-0x18)); /* 0x3610B744: mov ecx, dword ptr [ebp - 0x18] */ 5495 MEM32(edi + 0x4) = ecx; /* 0x3610B747: mov dword ptr [edi + 4], ecx */ 5496 MEM32(edi + 0x8) = edx; /* 0x3610B74A: mov dword ptr [edi + 8], edx */ 5497 edi = esi + 0x78; /* 0x3610B74D: lea edi, [esi + 0x78] */ 5498 MEM32(edi) = eax; /* 0x3610B750: mov dword ptr [edi], eax */ 5499 MEM32(edi + 0x4) = ecx; /* 0x3610B752: mov dword ptr [edi + 4], ecx */ 5500 PUSH32(esp, 1); /* 0x3610B755: push 1 */ 5501 PUSH32(esp, 1); /* 0x3610B757: push 1 */ 5502 ecx = esi; /* 0x3610B759: mov ecx, esi */ 5503 MEM32(ebp + (-0x4)) = ebx; /* 0x3610B75B: mov dword ptr [ebp - 4], ebx */ 5504 MEM32(esi + 0x1DC) = ebx; /* 0x3610B75E: mov dword ptr [esi + 0x1dc], ebx */ 5505 MEM32(esi + 0x1E0) = ebx; /* 0x3610B764: mov dword ptr [esi + 0x1e0], ebx */ 5506 MEM32(esi + 0x1E4) = ebx; /* 0x3610B76A: mov dword ptr [esi + 0x1e4], ebx */ 5507 MEM32(esi + 0x1E8) = ebx; /* 0x3610B770: mov dword ptr [esi + 0x1e8], ebx */ 5508 MEM32(esi + 0x1EC) = ebx; /* 0x3610B776: mov dword ptr [esi + 0x1ec], ebx */ 5509 MEM32(esi + 0x1F0) = ebx; /* 0x3610B77C: mov dword ptr [esi + 0x1f0], ebx */ 5510 MEM32(esi + 0x1F4) = ebx; /* 0x3610B782: mov dword ptr [esi + 0x1f4], ebx */ 5511 MEM32(esi + 0x1F8) = ebx; /* 0x3610B788: mov dword ptr [esi + 0x1f8], ebx */ 5512 MEM8(esi + 0x1FC) = (uint8_t)(LO8(ebx)); /* 0x3610B78E: mov byte ptr [esi + 0x1fc], bl */ 5513 MEM32(esi + 0x210) = ebx; /* 0x3610B794: mov dword ptr [esi + 0x210], ebx */ 5514 MEM8(esi + 0x214) = (uint8_t)(LO8(ebx)); /* 0x3610B79A: mov byte ptr [esi + 0x214], bl */ 5515 MEM32(esi) = 0x36176448u; /* 0x3610B7A0: mov dword ptr [esi], 0x36176448 */ 5516 MEM32(esi + 0x8) = 0x36176438u; /* 0x3610B7A6: mov dword ptr [esi + 8], 0x36176438 */ 5517 MEM32(esi + 0x20) = 0x36176428u; /* 0x3610B7AD: mov dword ptr [esi + 0x20], 0x36176428 */ 5518 MEM32(esi + 0x38) = 0x36176418u; /* 0x3610B7B4: mov dword ptr [esi + 0x38], 0x36176418 */ 5519 MEM32(esi + 0x50) = 0x36176408u; /* 0x3610B7BB: mov dword ptr [esi + 0x50], 0x36176408 */ 5520 MEM32(esi + 0x138) = 0x361763F8u; /* 0x3610B7C2: mov dword ptr [esi + 0x138], 0x361763f8 */ 5521 MEM32(esi + 0x150) = 0x361763E8u; /* 0x3610B7CC: mov dword ptr [esi + 0x150], 0x361763e8 */ 5522 MEM32(edi + 0x8) = edx; /* 0x3610B7D6: mov dword ptr [edi + 8], edx */ 5523 RECOMP_ICALL(MEM32(0x36176474)); /* 0x3610B7D9: call dword ptr [0x36176474] */ 5524 RECOMP_FLAGS_IN(); 5525 PUSH32(esp, 0x3ECu); /* 0x3610B7DF: push 0x3ec */ 5526 RECOMP_ICALL(0x3615FD6Au); /* 0x3610B7E4: call 0x3615fd6a */ /* not lifted */ 5527 RECOMP_FLAGS_IN(); 5528 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5529 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5530 esp = esp + 4; /* 0x3610B7E9: add esp, 4 */ 5531 _flag_k = FK_ADD; 5532 MEM32(ebp + 0x8) = eax; /* 0x3610B7EC: mov dword ptr [ebp + 8], eax */ 5533 /* cmp eax, ebx */ /* 0x3610B7EF: cmp eax, ebx */ 5534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5536 _flag_k = FK_CMP; 5537 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3610B7F1: mov byte ptr [ebp - 4], 1 */ 5538 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610B802; /* 0x3610B7F5: je 0x3610b802 */ 5539 L_3610B7F7: 5540 PUSH32(esp, 1); /* 0x3610B7F7: push 1 */ 5541 ecx = eax; /* 0x3610B7F9: mov ecx, eax */ 5542 RECOMP_ICALL(0x3615BC20u); /* 0x3610B7FB: call 0x3615bc20 */ /* not lifted */ 5543 RECOMP_FLAGS_IN(); 5544 goto L_3610B804; /* 0x3610B800: jmp 0x3610b804 */ 5545 L_3610B802: 5546 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5547 eax = 0; /* 0x3610B802: xor eax, eax */ 5548 _cf = 0; 5549 _flag_k = FK_TEST; 5550 L_3610B804: 5551 MEM32(esi + 0x218) = eax; /* 0x3610B804: mov dword ptr [esi + 0x218], eax */ 5552 eax = MEM32(0x3616F72C); /* 0x3610B80A: mov eax, dword ptr [0x3616f72c] */ 5553 MEM32(esi) = eax; /* 0x3610B80F: mov dword ptr [esi], eax */ 5554 ecx = MEM32(0x3616F728); /* 0x3610B811: mov ecx, dword ptr [0x3616f728] */ 5555 MEM32(esi + 0x8) = ecx; /* 0x3610B817: mov dword ptr [esi + 8], ecx */ 5556 edx = MEM32(0x3616F724); /* 0x3610B81A: mov edx, dword ptr [0x3616f724] */ 5557 MEM32(esi + 0x20) = edx; /* 0x3610B820: mov dword ptr [esi + 0x20], edx */ 5558 eax = MEM32(0x3616F720); /* 0x3610B823: mov eax, dword ptr [0x3616f720] */ 5559 MEM32(esi + 0x38) = eax; /* 0x3610B828: mov dword ptr [esi + 0x38], eax */ 5560 ecx = MEM32(0x3616F71C); /* 0x3610B82B: mov ecx, dword ptr [0x3616f71c] */ 5561 MEM32(esi + 0x50) = ecx; /* 0x3610B831: mov dword ptr [esi + 0x50], ecx */ 5562 edx = MEM32(0x3616F718); /* 0x3610B834: mov edx, dword ptr [0x3616f718] */ 5563 MEM32(esi + 0x138) = edx; /* 0x3610B83A: mov dword ptr [esi + 0x138], edx */ 5564 eax = MEM32(0x3616F714); /* 0x3610B840: mov eax, dword ptr [0x3616f714] */ 5565 MEM32(ebp + (-0x4)) = 2; /* 0x3610B845: mov dword ptr [ebp - 4], 2 */ 5566 MEM32(esi + 0x150) = eax; /* 0x3610B84C: mov dword ptr [esi + 0x150], eax */ 5567 RECOMP_ICALL(MEM32(0x3616F39C)); /* 0x3610B852: call dword ptr [0x3616f39c] */ 5568 RECOMP_FLAGS_IN(); 5569 ecx = MEM32(eax + 0x718); /* 0x3610B858: mov ecx, dword ptr [eax + 0x718] */ 5570 MEM32(esi + 0x21C) = ecx; /* 0x3610B85E: mov dword ptr [esi + 0x21c], ecx */ 5571 PUSH32(esp, 7); /* 0x3610B864: push 7 */ 5572 ecx = esi; /* 0x3610B866: mov ecx, esi */ 5573 RECOMP_ICALL(MEM32(0x3616F704)); /* 0x3610B868: call dword ptr [0x3616f704] */ 5574 RECOMP_FLAGS_IN(); 5575 edx = MEM32(esi); /* 0x3610B86E: mov edx, dword ptr [esi] */ 5576 ecx = esi; /* 0x3610B870: mov ecx, esi */ 5577 MEM32(esi + 0x224) = ebx; /* 0x3610B872: mov dword ptr [esi + 0x224], ebx */ 5578 MEM32(esi + 0x228) = ebx; /* 0x3610B878: mov dword ptr [esi + 0x228], ebx */ 5579 MEM8(esi + 0x22C) = (uint8_t)(LO8(ebx)); /* 0x3610B87E: mov byte ptr [esi + 0x22c], bl */ 5580 MEM32(esi + 0x230) = ebx; /* 0x3610B884: mov dword ptr [esi + 0x230], ebx */ 5581 MEM32(esi + 0x234) = 0x3F800000u; /* 0x3610B88A: mov dword ptr [esi + 0x234], 0x3f800000 */ 5582 RECOMP_ICALL(MEM32(edx + 0x5C)); /* 0x3610B894: call dword ptr [edx + 0x5c] */ 5583 RECOMP_FLAGS_IN(); 5584 ecx = MEM32(ebp + (-0xC)); /* 0x3610B897: mov ecx, dword ptr [ebp - 0xc] */ 5585 edi = POP32_VAL(esp); /* 0x3610B89A: pop edi */ 5586 eax = esi; /* 0x3610B89B: mov eax, esi */ 5587 esi = POP32_VAL(esp); /* 0x3610B89D: pop esi */ 5588 ebx = POP32_VAL(esp); /* 0x3610B89E: pop ebx */ 5589 MEM32(FS_BASE + (0)) = ecx; /* 0x3610B89F: mov dword ptr fs:[0], ecx */ 5590 esp = ebp; /* 0x3610B8A6: mov esp, ebp */ 5591 ebp = POP32_VAL(esp); /* 0x3610B8A8: pop ebp */ 5592 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3610B8A9: ret 8 */ 5593 RECOMP_REGS_OUT(); 5594 } 5595 5596 void sub_3610B804(void) { 5597 int _fpu_cmp = 0; 5598 uint32_t _cf = 0; 5599 int _df = 1; 5600 uint32_t _flag_k = FK_NONE; 5601 uint32_t _flag_a = 0, _flag_b = 0; 5602 uint32_t _itail_tgt = 0; 5603 RECOMP_REGS_LOCALS 5604 RECOMP_ENTER(0x3610B804u); 5605 5606 L_3610B804: 5607 MEM32(esi + 0x218) = eax; /* 0x3610B804: mov dword ptr [esi + 0x218], eax */ 5608 eax = MEM32(0x3616F72C); /* 0x3610B80A: mov eax, dword ptr [0x3616f72c] */ 5609 MEM32(esi) = eax; /* 0x3610B80F: mov dword ptr [esi], eax */ 5610 ecx = MEM32(0x3616F728); /* 0x3610B811: mov ecx, dword ptr [0x3616f728] */ 5611 MEM32(esi + 0x8) = ecx; /* 0x3610B817: mov dword ptr [esi + 8], ecx */ 5612 edx = MEM32(0x3616F724); /* 0x3610B81A: mov edx, dword ptr [0x3616f724] */ 5613 MEM32(esi + 0x20) = edx; /* 0x3610B820: mov dword ptr [esi + 0x20], edx */ 5614 eax = MEM32(0x3616F720); /* 0x3610B823: mov eax, dword ptr [0x3616f720] */ 5615 MEM32(esi + 0x38) = eax; /* 0x3610B828: mov dword ptr [esi + 0x38], eax */ 5616 ecx = MEM32(0x3616F71C); /* 0x3610B82B: mov ecx, dword ptr [0x3616f71c] */ 5617 MEM32(esi + 0x50) = ecx; /* 0x3610B831: mov dword ptr [esi + 0x50], ecx */ 5618 edx = MEM32(0x3616F718); /* 0x3610B834: mov edx, dword ptr [0x3616f718] */ 5619 MEM32(esi + 0x138) = edx; /* 0x3610B83A: mov dword ptr [esi + 0x138], edx */ 5620 eax = MEM32(0x3616F714); /* 0x3610B840: mov eax, dword ptr [0x3616f714] */ 5621 MEM32(ebp + (-0x4)) = 2; /* 0x3610B845: mov dword ptr [ebp - 4], 2 */ 5622 MEM32(esi + 0x150) = eax; /* 0x3610B84C: mov dword ptr [esi + 0x150], eax */ 5623 RECOMP_ICALL(MEM32(0x3616F39C)); /* 0x3610B852: call dword ptr [0x3616f39c] */ 5624 RECOMP_FLAGS_IN(); 5625 ecx = MEM32(eax + 0x718); /* 0x3610B858: mov ecx, dword ptr [eax + 0x718] */ 5626 MEM32(esi + 0x21C) = ecx; /* 0x3610B85E: mov dword ptr [esi + 0x21c], ecx */ 5627 PUSH32(esp, 7); /* 0x3610B864: push 7 */ 5628 ecx = esi; /* 0x3610B866: mov ecx, esi */ 5629 RECOMP_ICALL(MEM32(0x3616F704)); /* 0x3610B868: call dword ptr [0x3616f704] */ 5630 RECOMP_FLAGS_IN(); 5631 edx = MEM32(esi); /* 0x3610B86E: mov edx, dword ptr [esi] */ 5632 ecx = esi; /* 0x3610B870: mov ecx, esi */ 5633 MEM32(esi + 0x224) = ebx; /* 0x3610B872: mov dword ptr [esi + 0x224], ebx */ 5634 MEM32(esi + 0x228) = ebx; /* 0x3610B878: mov dword ptr [esi + 0x228], ebx */ 5635 MEM8(esi + 0x22C) = (uint8_t)(LO8(ebx)); /* 0x3610B87E: mov byte ptr [esi + 0x22c], bl */ 5636 MEM32(esi + 0x230) = ebx; /* 0x3610B884: mov dword ptr [esi + 0x230], ebx */ 5637 MEM32(esi + 0x234) = 0x3F800000u; /* 0x3610B88A: mov dword ptr [esi + 0x234], 0x3f800000 */ 5638 RECOMP_ICALL(MEM32(edx + 0x5C)); /* 0x3610B894: call dword ptr [edx + 0x5c] */ 5639 RECOMP_FLAGS_IN(); 5640 ecx = MEM32(ebp + (-0xC)); /* 0x3610B897: mov ecx, dword ptr [ebp - 0xc] */ 5641 edi = POP32_VAL(esp); /* 0x3610B89A: pop edi */ 5642 eax = esi; /* 0x3610B89B: mov eax, esi */ 5643 esi = POP32_VAL(esp); /* 0x3610B89D: pop esi */ 5644 ebx = POP32_VAL(esp); /* 0x3610B89E: pop ebx */ 5645 MEM32(FS_BASE + (0)) = ecx; /* 0x3610B89F: mov dword ptr fs:[0], ecx */ 5646 esp = ebp; /* 0x3610B8A6: mov esp, ebp */ 5647 ebp = POP32_VAL(esp); /* 0x3610B8A8: pop ebp */ 5648 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3610B8A9: ret 8 */ 5649 RECOMP_REGS_OUT(); 5650 } 5651 5652 void sub_3610B8B0(void) { 5653 int _fpu_cmp = 0; 5654 uint32_t _cf = 0; 5655 int _df = 1; 5656 uint32_t _flag_k = FK_NONE; 5657 uint32_t _flag_a = 0, _flag_b = 0; 5658 uint32_t _itail_tgt = 0; 5659 RECOMP_REGS_LOCALS 5660 RECOMP_ENTER(0x3610B8B0u); 5661 5662 L_3610B8B0: 5663 PUSH32(esp, ebp); /* 0x3610B8B0: push ebp */ 5664 ebp = esp; /* 0x3610B8B1: mov ebp, esp */ 5665 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610B8B3: push -1 */ 5666 PUSH32(esp, 0x3616A529u); /* 0x3610B8B5: push 0x3616a529 */ 5667 eax = MEM32(FS_BASE + (0)); /* 0x3610B8BA: mov eax, dword ptr fs:[0] */ 5668 PUSH32(esp, eax); /* 0x3610B8C0: push eax */ 5669 MEM32(FS_BASE + (0)) = esp; /* 0x3610B8C1: mov dword ptr fs:[0], esp */ 5670 PUSH32(esp, ecx); /* 0x3610B8C8: push ecx */ 5671 PUSH32(esp, ebx); /* 0x3610B8C9: push ebx */ 5672 PUSH32(esp, esi); /* 0x3610B8CA: push esi */ 5673 esi = ecx; /* 0x3610B8CB: mov esi, ecx */ 5674 MEM32(ebp + (-0x10)) = esi; /* 0x3610B8CD: mov dword ptr [ebp - 0x10], esi */ 5675 MEM32(esi) = 0x36176448u; /* 0x3610B8D0: mov dword ptr [esi], 0x36176448 */ 5676 MEM32(esi + 0x8) = 0x36176438u; /* 0x3610B8D6: mov dword ptr [esi + 8], 0x36176438 */ 5677 MEM32(esi + 0x20) = 0x36176428u; /* 0x3610B8DD: mov dword ptr [esi + 0x20], 0x36176428 */ 5678 MEM32(esi + 0x38) = 0x36176418u; /* 0x3610B8E4: mov dword ptr [esi + 0x38], 0x36176418 */ 5679 MEM32(esi + 0x50) = 0x36176408u; /* 0x3610B8EB: mov dword ptr [esi + 0x50], 0x36176408 */ 5680 MEM32(esi + 0x138) = 0x361763F8u; /* 0x3610B8F2: mov dword ptr [esi + 0x138], 0x361763f8 */ 5681 MEM32(esi + 0x150) = 0x361763E8u; /* 0x3610B8FC: mov dword ptr [esi + 0x150], 0x361763e8 */ 5682 SET_LO8(eax, MEM8(esi + 0x1FC)); /* 0x3610B906: mov al, byte ptr [esi + 0x1fc] */ 5683 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5684 ebx = 0; /* 0x3610B90C: xor ebx, ebx */ 5685 _cf = 0; 5686 _flag_k = FK_TEST; 5687 /* cmp LO8(eax), LO8(ebx) */ /* 0x3610B90E: cmp al, bl */ 5688 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5690 _flag_k = FK_NARROW(FK_CMP, 24); 5691 MEM32(ebp + (-0x4)) = ebx; /* 0x3610B910: mov dword ptr [ebp - 4], ebx */ 5692 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610B931; /* 0x3610B913: je 0x3610b931 */ 5693 L_3610B915: 5694 RECOMP_ICALL(MEM32(0x3616F738)); /* 0x3610B915: call dword ptr [0x3616f738] */ 5695 RECOMP_FLAGS_IN(); 5696 ecx = eax; /* 0x3610B91B: mov ecx, eax */ 5697 RECOMP_ICALL(MEM32(0x3616F734)); /* 0x3610B91D: call dword ptr [0x3616f734] */ 5698 RECOMP_FLAGS_IN(); 5699 edx = MEM32(eax); /* 0x3610B923: mov edx, dword ptr [eax] */ 5700 PUSH32(esp, esi); /* 0x3610B925: push esi */ 5701 ecx = eax; /* 0x3610B926: mov ecx, eax */ 5702 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3610B928: call dword ptr [edx + 0x10] */ 5703 RECOMP_FLAGS_IN(); 5704 MEM8(esi + 0x1FC) = (uint8_t)(LO8(ebx)); /* 0x3610B92B: mov byte ptr [esi + 0x1fc], bl */ 5705 L_3610B931: 5706 eax = MEM32(esi + 0x1E0); /* 0x3610B931: mov eax, dword ptr [esi + 0x1e0] */ 5707 /* cmp eax, ebx */ /* 0x3610B937: cmp eax, ebx */ 5708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5710 _flag_k = FK_CMP; 5711 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610B94A; /* 0x3610B939: je 0x3610b94a */ 5712 L_3610B93B: 5713 PUSH32(esp, eax); /* 0x3610B93B: push eax */ 5714 RECOMP_ICALL(0x3615FCC4u); /* 0x3610B93C: call 0x3615fcc4 */ /* not lifted */ 5715 RECOMP_FLAGS_IN(); 5716 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5718 esp = esp + 4; /* 0x3610B941: add esp, 4 */ 5719 _flag_k = FK_ADD; 5720 MEM32(esi + 0x1E0) = ebx; /* 0x3610B944: mov dword ptr [esi + 0x1e0], ebx */ 5721 L_3610B94A: 5722 eax = MEM32(esi + 0x1E4); /* 0x3610B94A: mov eax, dword ptr [esi + 0x1e4] */ 5723 /* cmp eax, ebx */ /* 0x3610B950: cmp eax, ebx */ 5724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5726 _flag_k = FK_CMP; 5727 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610B963; /* 0x3610B952: je 0x3610b963 */ 5728 L_3610B954: 5729 PUSH32(esp, eax); /* 0x3610B954: push eax */ 5730 RECOMP_ICALL(0x3615FCC4u); /* 0x3610B955: call 0x3615fcc4 */ /* not lifted */ 5731 RECOMP_FLAGS_IN(); 5732 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5733 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5734 esp = esp + 4; /* 0x3610B95A: add esp, 4 */ 5735 _flag_k = FK_ADD; 5736 MEM32(esi + 0x1E4) = ebx; /* 0x3610B95D: mov dword ptr [esi + 0x1e4], ebx */ 5737 L_3610B963: 5738 eax = MEM32(esi + 0x1E8); /* 0x3610B963: mov eax, dword ptr [esi + 0x1e8] */ 5739 /* cmp eax, ebx */ /* 0x3610B969: cmp eax, ebx */ 5740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5742 _flag_k = FK_CMP; 5743 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610B97C; /* 0x3610B96B: je 0x3610b97c */ 5744 L_3610B96D: 5745 PUSH32(esp, eax); /* 0x3610B96D: push eax */ 5746 RECOMP_ICALL(0x3615FCC4u); /* 0x3610B96E: call 0x3615fcc4 */ /* not lifted */ 5747 RECOMP_FLAGS_IN(); 5748 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5749 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5750 esp = esp + 4; /* 0x3610B973: add esp, 4 */ 5751 _flag_k = FK_ADD; 5752 MEM32(esi + 0x1E8) = ebx; /* 0x3610B976: mov dword ptr [esi + 0x1e8], ebx */ 5753 L_3610B97C: 5754 eax = MEM32(esi + 0x1EC); /* 0x3610B97C: mov eax, dword ptr [esi + 0x1ec] */ 5755 /* cmp eax, ebx */ /* 0x3610B982: cmp eax, ebx */ 5756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5758 _flag_k = FK_CMP; 5759 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610B995; /* 0x3610B984: je 0x3610b995 */ 5760 L_3610B986: 5761 PUSH32(esp, eax); /* 0x3610B986: push eax */ 5762 RECOMP_ICALL(0x3615FCC4u); /* 0x3610B987: call 0x3615fcc4 */ /* not lifted */ 5763 RECOMP_FLAGS_IN(); 5764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5766 esp = esp + 4; /* 0x3610B98C: add esp, 4 */ 5767 _flag_k = FK_ADD; 5768 MEM32(esi + 0x1EC) = ebx; /* 0x3610B98F: mov dword ptr [esi + 0x1ec], ebx */ 5769 L_3610B995: 5770 eax = MEM32(esi + 0x1F0); /* 0x3610B995: mov eax, dword ptr [esi + 0x1f0] */ 5771 /* cmp eax, ebx */ /* 0x3610B99B: cmp eax, ebx */ 5772 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5774 _flag_k = FK_CMP; 5775 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610B9AE; /* 0x3610B99D: je 0x3610b9ae */ 5776 L_3610B99F: 5777 PUSH32(esp, eax); /* 0x3610B99F: push eax */ 5778 RECOMP_ICALL(0x3615FCC4u); /* 0x3610B9A0: call 0x3615fcc4 */ /* not lifted */ 5779 RECOMP_FLAGS_IN(); 5780 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5782 esp = esp + 4; /* 0x3610B9A5: add esp, 4 */ 5783 _flag_k = FK_ADD; 5784 MEM32(esi + 0x1F0) = ebx; /* 0x3610B9A8: mov dword ptr [esi + 0x1f0], ebx */ 5785 L_3610B9AE: 5786 eax = MEM32(esi + 0x1F4); /* 0x3610B9AE: mov eax, dword ptr [esi + 0x1f4] */ 5787 /* cmp eax, ebx */ /* 0x3610B9B4: cmp eax, ebx */ 5788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5790 _flag_k = FK_CMP; 5791 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610B9C7; /* 0x3610B9B6: je 0x3610b9c7 */ 5792 L_3610B9B8: 5793 PUSH32(esp, eax); /* 0x3610B9B8: push eax */ 5794 RECOMP_ICALL(0x3615FCC4u); /* 0x3610B9B9: call 0x3615fcc4 */ /* not lifted */ 5795 RECOMP_FLAGS_IN(); 5796 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5797 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5798 esp = esp + 4; /* 0x3610B9BE: add esp, 4 */ 5799 _flag_k = FK_ADD; 5800 MEM32(esi + 0x1F4) = ebx; /* 0x3610B9C1: mov dword ptr [esi + 0x1f4], ebx */ 5801 L_3610B9C7: 5802 eax = MEM32(esi + 0x218); /* 0x3610B9C7: mov eax, dword ptr [esi + 0x218] */ 5803 /* cmp eax, ebx */ /* 0x3610B9CD: cmp eax, ebx */ 5804 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5806 _flag_k = FK_CMP; 5807 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610B9E0; /* 0x3610B9CF: je 0x3610b9e0 */ 5808 L_3610B9D1: 5809 PUSH32(esp, eax); /* 0x3610B9D1: push eax */ 5810 RECOMP_ICALL(0x3615FCC4u); /* 0x3610B9D2: call 0x3615fcc4 */ /* not lifted */ 5811 RECOMP_FLAGS_IN(); 5812 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5813 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5814 esp = esp + 4; /* 0x3610B9D7: add esp, 4 */ 5815 _flag_k = FK_ADD; 5816 MEM32(esi + 0x218) = ebx; /* 0x3610B9DA: mov dword ptr [esi + 0x218], ebx */ 5817 L_3610B9E0: 5818 ecx = esi; /* 0x3610B9E0: mov ecx, esi */ 5819 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610B9E2: mov dword ptr [ebp - 4], 0xffffffff */ 5820 RECOMP_ICALL(MEM32(0x3616F710)); /* 0x3610B9E9: call dword ptr [0x3616f710] */ 5821 RECOMP_FLAGS_IN(); 5822 ecx = MEM32(ebp + (-0xC)); /* 0x3610B9EF: mov ecx, dword ptr [ebp - 0xc] */ 5823 esi = POP32_VAL(esp); /* 0x3610B9F2: pop esi */ 5824 ebx = POP32_VAL(esp); /* 0x3610B9F3: pop ebx */ 5825 MEM32(FS_BASE + (0)) = ecx; /* 0x3610B9F4: mov dword ptr fs:[0], ecx */ 5826 esp = ebp; /* 0x3610B9FB: mov esp, ebp */ 5827 ebp = POP32_VAL(esp); /* 0x3610B9FD: pop ebp */ 5828 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610B9FE: ret */ 5829 RECOMP_REGS_OUT(); 5830 } 5831 5832 void sub_3610BA00(void) { 5833 int _fpu_cmp = 0; 5834 uint32_t _cf = 0; 5835 int _df = 1; 5836 uint32_t _flag_k = FK_NONE; 5837 uint32_t _flag_a = 0, _flag_b = 0; 5838 uint32_t _itail_tgt = 0; 5839 RECOMP_REGS_LOCALS 5840 RECOMP_ENTER(0x3610BA00u); 5841 5842 L_3610BA00: 5843 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BA00: ret */ 5844 RECOMP_REGS_OUT(); 5845 } 5846 5847 void sub_3610BA10(void) { 5848 int _fpu_cmp = 0; 5849 uint32_t _cf = 0; 5850 int _df = 1; 5851 uint32_t _flag_k = FK_NONE; 5852 uint32_t _flag_a = 0, _flag_b = 0; 5853 uint32_t _itail_tgt = 0; 5854 RECOMP_REGS_LOCALS 5855 RECOMP_ENTER(0x3610BA10u); 5856 5857 L_3610BA10: 5858 PUSH32(esp, esi); /* 0x3610BA10: push esi */ 5859 esi = ecx; /* 0x3610BA11: mov esi, ecx */ 5860 eax = MEM32(esi); /* 0x3610BA13: mov eax, dword ptr [esi] */ 5861 RECOMP_ICALL(MEM32(eax + 0x5C)); /* 0x3610BA15: call dword ptr [eax + 0x5c] */ 5862 RECOMP_FLAGS_IN(); 5863 edx = MEM32(esi); /* 0x3610BA18: mov edx, dword ptr [esi] */ 5864 ecx = esi; /* 0x3610BA1A: mov ecx, esi */ 5865 RECOMP_ICALL(MEM32(edx + 0x64)); /* 0x3610BA1C: call dword ptr [edx + 0x64] */ 5866 RECOMP_FLAGS_IN(); 5867 esi = POP32_VAL(esp); /* 0x3610BA1F: pop esi */ 5868 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BA20: ret */ 5869 RECOMP_REGS_OUT(); 5870 } 5871 5872 void sub_3610BA30(void) { 5873 int _fpu_cmp = 0; 5874 uint32_t _cf = 0; 5875 int _df = 1; 5876 uint32_t _flag_k = FK_NONE; 5877 uint32_t _flag_a = 0, _flag_b = 0; 5878 uint32_t _itail_tgt = 0; 5879 RECOMP_REGS_LOCALS 5880 RECOMP_ENTER(0x3610BA30u); 5881 5882 L_3610BA30: 5883 eax = MEM32(ecx + 0x21C); /* 0x3610BA30: mov eax, dword ptr [ecx + 0x21c] */ 5884 fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x3610BA36: fld dword ptr [eax + 4] */ 5885 SET_LO8(eax, 1); /* 0x3610BA39: mov al, 1 */ 5886 _st[0] += (double)*(float*)ADDR(ecx + 0x210); /* 0x3610BA3B: fadd dword ptr [ecx + 0x210] */ 5887 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x210) = _v; } /* 0x3610BA41: fstp dword ptr [ecx + 0x210] */ 5888 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BA47: ret */ 5889 RECOMP_REGS_OUT(); 5890 } 5891 5892 void sub_3610BA50(void) { 5893 int _fpu_cmp = 0; 5894 uint32_t _cf = 0; 5895 int _df = 1; 5896 uint32_t _flag_k = FK_NONE; 5897 uint32_t _flag_a = 0, _flag_b = 0; 5898 uint32_t _itail_tgt = 0; 5899 RECOMP_REGS_LOCALS 5900 RECOMP_ENTER(0x3610BA50u); 5901 5902 L_3610BA50: 5903 PUSH32(esp, esi); /* 0x3610BA50: push esi */ 5904 esi = ecx; /* 0x3610BA51: mov esi, ecx */ 5905 SET_LO8(eax, MEM8(esi + 0x1FC)); /* 0x3610BA53: mov al, byte ptr [esi + 0x1fc] */ 5906 /* test LO8(eax), LO8(eax) */ /* 0x3610BA59: test al, al */ 5907 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5908 _cf = 0; 5909 _flag_k = FK_NARROW(FK_TEST, 24); 5910 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610BA7A; /* 0x3610BA5B: jne 0x3610ba7a */ 5911 L_3610BA5D: 5912 RECOMP_ICALL(MEM32(0x3616F738)); /* 0x3610BA5D: call dword ptr [0x3616f738] */ 5913 RECOMP_FLAGS_IN(); 5914 ecx = eax; /* 0x3610BA63: mov ecx, eax */ 5915 RECOMP_ICALL(MEM32(0x3616F734)); /* 0x3610BA65: call dword ptr [0x3616f734] */ 5916 RECOMP_FLAGS_IN(); 5917 edx = MEM32(eax); /* 0x3610BA6B: mov edx, dword ptr [eax] */ 5918 PUSH32(esp, esi); /* 0x3610BA6D: push esi */ 5919 ecx = eax; /* 0x3610BA6E: mov ecx, eax */ 5920 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3610BA70: call dword ptr [edx + 0xc] */ 5921 RECOMP_FLAGS_IN(); 5922 MEM8(esi + 0x1FC) = (uint8_t)(1); /* 0x3610BA73: mov byte ptr [esi + 0x1fc], 1 */ 5923 L_3610BA7A: 5924 esi = POP32_VAL(esp); /* 0x3610BA7A: pop esi */ 5925 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BA7B: ret */ 5926 RECOMP_REGS_OUT(); 5927 } 5928 5929 void sub_3610BA80(void) { 5930 int _fpu_cmp = 0; 5931 uint32_t _cf = 0; 5932 int _df = 1; 5933 uint32_t _flag_k = FK_NONE; 5934 uint32_t _flag_a = 0, _flag_b = 0; 5935 uint32_t _itail_tgt = 0; 5936 RECOMP_REGS_LOCALS 5937 RECOMP_ENTER(0x3610BA80u); 5938 5939 L_3610BA80: 5940 PUSH32(esp, esi); /* 0x3610BA80: push esi */ 5941 esi = ecx; /* 0x3610BA81: mov esi, ecx */ 5942 SET_LO8(eax, MEM8(esi + 0x1FC)); /* 0x3610BA83: mov al, byte ptr [esi + 0x1fc] */ 5943 /* test LO8(eax), LO8(eax) */ /* 0x3610BA89: test al, al */ 5944 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5945 _cf = 0; 5946 _flag_k = FK_NARROW(FK_TEST, 24); 5947 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BAAA; /* 0x3610BA8B: je 0x3610baaa */ 5948 L_3610BA8D: 5949 RECOMP_ICALL(MEM32(0x3616F738)); /* 0x3610BA8D: call dword ptr [0x3616f738] */ 5950 RECOMP_FLAGS_IN(); 5951 ecx = eax; /* 0x3610BA93: mov ecx, eax */ 5952 RECOMP_ICALL(MEM32(0x3616F734)); /* 0x3610BA95: call dword ptr [0x3616f734] */ 5953 RECOMP_FLAGS_IN(); 5954 edx = MEM32(eax); /* 0x3610BA9B: mov edx, dword ptr [eax] */ 5955 PUSH32(esp, esi); /* 0x3610BA9D: push esi */ 5956 ecx = eax; /* 0x3610BA9E: mov ecx, eax */ 5957 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3610BAA0: call dword ptr [edx + 0x10] */ 5958 RECOMP_FLAGS_IN(); 5959 MEM8(esi + 0x1FC) = (uint8_t)(0); /* 0x3610BAA3: mov byte ptr [esi + 0x1fc], 0 */ 5960 L_3610BAAA: 5961 esi = POP32_VAL(esp); /* 0x3610BAAA: pop esi */ 5962 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BAAB: ret */ 5963 RECOMP_REGS_OUT(); 5964 } 5965 5966 void sub_3610BAB0(void) { 5967 int _fpu_cmp = 0; 5968 uint32_t _cf = 0; 5969 int _df = 1; 5970 uint32_t _flag_k = FK_NONE; 5971 uint32_t _flag_a = 0, _flag_b = 0; 5972 uint32_t _itail_tgt = 0; 5973 RECOMP_REGS_LOCALS 5974 RECOMP_ENTER(0x3610BAB0u); 5975 5976 L_3610BAB0: 5977 PUSH32(esp, ebp); /* 0x3610BAB0: push ebp */ 5978 ebp = esp; /* 0x3610BAB1: mov ebp, esp */ 5979 PUSH32(esp, esi); /* 0x3610BAB3: push esi */ 5980 esi = ecx; /* 0x3610BAB4: mov esi, ecx */ 5981 RECOMP_ICALL(0x3610B8B0u); /* 0x3610BAB6: call 0x3610b8b0 */ /* not lifted */ 5982 RECOMP_FLAGS_IN(); 5983 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610BABB: test byte ptr [ebp + 8], 1 */ 5984 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 5985 _cf = 0; 5986 _flag_k = FK_NARROW(FK_TEST, 24); 5987 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BACA; /* 0x3610BABF: je 0x3610baca */ 5988 L_3610BAC1: 5989 PUSH32(esp, esi); /* 0x3610BAC1: push esi */ 5990 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BAC2: call 0x3615fcc4 */ /* not lifted */ 5991 RECOMP_FLAGS_IN(); 5992 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5994 esp = esp + 4; /* 0x3610BAC7: add esp, 4 */ 5995 _flag_k = FK_ADD; 5996 L_3610BACA: 5997 eax = esi; /* 0x3610BACA: mov eax, esi */ 5998 esi = POP32_VAL(esp); /* 0x3610BACC: pop esi */ 5999 ebp = POP32_VAL(esp); /* 0x3610BACD: pop ebp */ 6000 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610BACE: ret 4 */ 6001 RECOMP_REGS_OUT(); 6002 } 6003 6004 void sub_3610BAE0(void) { 6005 int _fpu_cmp = 0; 6006 uint32_t _cf = 0; 6007 int _df = 1; 6008 uint32_t _flag_k = FK_NONE; 6009 uint32_t _flag_a = 0, _flag_b = 0; 6010 uint32_t _itail_tgt = 0; 6011 RECOMP_REGS_LOCALS 6012 RECOMP_ENTER(0x3610BAE0u); 6013 6014 L_3610BAE0: 6015 PUSH32(esp, ebp); /* 0x3610BAE0: push ebp */ 6016 ebp = esp; /* 0x3610BAE1: mov ebp, esp */ 6017 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610BAE3: push -1 */ 6018 PUSH32(esp, 0x3616A549u); /* 0x3610BAE5: push 0x3616a549 */ 6019 eax = MEM32(FS_BASE + (0)); /* 0x3610BAEA: mov eax, dword ptr fs:[0] */ 6020 PUSH32(esp, eax); /* 0x3610BAF0: push eax */ 6021 MEM32(FS_BASE + (0)) = esp; /* 0x3610BAF1: mov dword ptr fs:[0], esp */ 6022 PUSH32(esp, ecx); /* 0x3610BAF8: push ecx */ 6023 PUSH32(esp, ebx); /* 0x3610BAF9: push ebx */ 6024 PUSH32(esp, esi); /* 0x3610BAFA: push esi */ 6025 esi = ecx; /* 0x3610BAFB: mov esi, ecx */ 6026 MEM32(ebp + (-0x10)) = esi; /* 0x3610BAFD: mov dword ptr [ebp - 0x10], esi */ 6027 MEM32(esi) = 0x36176448u; /* 0x3610BB00: mov dword ptr [esi], 0x36176448 */ 6028 MEM32(esi + 0x8) = 0x36176438u; /* 0x3610BB06: mov dword ptr [esi + 8], 0x36176438 */ 6029 MEM32(esi + 0x20) = 0x36176428u; /* 0x3610BB0D: mov dword ptr [esi + 0x20], 0x36176428 */ 6030 MEM32(esi + 0x38) = 0x36176418u; /* 0x3610BB14: mov dword ptr [esi + 0x38], 0x36176418 */ 6031 MEM32(esi + 0x50) = 0x36176408u; /* 0x3610BB1B: mov dword ptr [esi + 0x50], 0x36176408 */ 6032 MEM32(esi + 0x138) = 0x361763F8u; /* 0x3610BB22: mov dword ptr [esi + 0x138], 0x361763f8 */ 6033 MEM32(esi + 0x150) = 0x361763E8u; /* 0x3610BB2C: mov dword ptr [esi + 0x150], 0x361763e8 */ 6034 SET_LO8(eax, MEM8(esi + 0x1FC)); /* 0x3610BB36: mov al, byte ptr [esi + 0x1fc] */ 6035 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6036 ebx = 0; /* 0x3610BB3C: xor ebx, ebx */ 6037 _cf = 0; 6038 _flag_k = FK_TEST; 6039 /* cmp LO8(eax), LO8(ebx) */ /* 0x3610BB3E: cmp al, bl */ 6040 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6042 _flag_k = FK_NARROW(FK_CMP, 24); 6043 MEM32(ebp + (-0x4)) = ebx; /* 0x3610BB40: mov dword ptr [ebp - 4], ebx */ 6044 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610BB61; /* 0x3610BB43: je 0x3610bb61 */ 6045 L_3610BB45: 6046 RECOMP_ICALL(MEM32(0x3616F738)); /* 0x3610BB45: call dword ptr [0x3616f738] */ 6047 RECOMP_FLAGS_IN(); 6048 ecx = eax; /* 0x3610BB4B: mov ecx, eax */ 6049 RECOMP_ICALL(MEM32(0x3616F734)); /* 0x3610BB4D: call dword ptr [0x3616f734] */ 6050 RECOMP_FLAGS_IN(); 6051 edx = MEM32(eax); /* 0x3610BB53: mov edx, dword ptr [eax] */ 6052 PUSH32(esp, esi); /* 0x3610BB55: push esi */ 6053 ecx = eax; /* 0x3610BB56: mov ecx, eax */ 6054 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3610BB58: call dword ptr [edx + 0x10] */ 6055 RECOMP_FLAGS_IN(); 6056 MEM8(esi + 0x1FC) = (uint8_t)(LO8(ebx)); /* 0x3610BB5B: mov byte ptr [esi + 0x1fc], bl */ 6057 L_3610BB61: 6058 eax = MEM32(esi + 0x1E0); /* 0x3610BB61: mov eax, dword ptr [esi + 0x1e0] */ 6059 /* cmp eax, ebx */ /* 0x3610BB67: cmp eax, ebx */ 6060 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6062 _flag_k = FK_CMP; 6063 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610BB7A; /* 0x3610BB69: je 0x3610bb7a */ 6064 L_3610BB6B: 6065 PUSH32(esp, eax); /* 0x3610BB6B: push eax */ 6066 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BB6C: call 0x3615fcc4 */ /* not lifted */ 6067 RECOMP_FLAGS_IN(); 6068 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6069 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6070 esp = esp + 4; /* 0x3610BB71: add esp, 4 */ 6071 _flag_k = FK_ADD; 6072 MEM32(esi + 0x1E0) = ebx; /* 0x3610BB74: mov dword ptr [esi + 0x1e0], ebx */ 6073 L_3610BB7A: 6074 eax = MEM32(esi + 0x1E4); /* 0x3610BB7A: mov eax, dword ptr [esi + 0x1e4] */ 6075 /* cmp eax, ebx */ /* 0x3610BB80: cmp eax, ebx */ 6076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6078 _flag_k = FK_CMP; 6079 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610BB93; /* 0x3610BB82: je 0x3610bb93 */ 6080 L_3610BB84: 6081 PUSH32(esp, eax); /* 0x3610BB84: push eax */ 6082 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BB85: call 0x3615fcc4 */ /* not lifted */ 6083 RECOMP_FLAGS_IN(); 6084 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6085 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6086 esp = esp + 4; /* 0x3610BB8A: add esp, 4 */ 6087 _flag_k = FK_ADD; 6088 MEM32(esi + 0x1E4) = ebx; /* 0x3610BB8D: mov dword ptr [esi + 0x1e4], ebx */ 6089 L_3610BB93: 6090 eax = MEM32(esi + 0x1E8); /* 0x3610BB93: mov eax, dword ptr [esi + 0x1e8] */ 6091 /* cmp eax, ebx */ /* 0x3610BB99: cmp eax, ebx */ 6092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6094 _flag_k = FK_CMP; 6095 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610BBAC; /* 0x3610BB9B: je 0x3610bbac */ 6096 L_3610BB9D: 6097 PUSH32(esp, eax); /* 0x3610BB9D: push eax */ 6098 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BB9E: call 0x3615fcc4 */ /* not lifted */ 6099 RECOMP_FLAGS_IN(); 6100 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6102 esp = esp + 4; /* 0x3610BBA3: add esp, 4 */ 6103 _flag_k = FK_ADD; 6104 MEM32(esi + 0x1E8) = ebx; /* 0x3610BBA6: mov dword ptr [esi + 0x1e8], ebx */ 6105 L_3610BBAC: 6106 eax = MEM32(esi + 0x1EC); /* 0x3610BBAC: mov eax, dword ptr [esi + 0x1ec] */ 6107 /* cmp eax, ebx */ /* 0x3610BBB2: cmp eax, ebx */ 6108 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6110 _flag_k = FK_CMP; 6111 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610BBC5; /* 0x3610BBB4: je 0x3610bbc5 */ 6112 L_3610BBB6: 6113 PUSH32(esp, eax); /* 0x3610BBB6: push eax */ 6114 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BBB7: call 0x3615fcc4 */ /* not lifted */ 6115 RECOMP_FLAGS_IN(); 6116 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6118 esp = esp + 4; /* 0x3610BBBC: add esp, 4 */ 6119 _flag_k = FK_ADD; 6120 MEM32(esi + 0x1EC) = ebx; /* 0x3610BBBF: mov dword ptr [esi + 0x1ec], ebx */ 6121 L_3610BBC5: 6122 eax = MEM32(esi + 0x1F0); /* 0x3610BBC5: mov eax, dword ptr [esi + 0x1f0] */ 6123 /* cmp eax, ebx */ /* 0x3610BBCB: cmp eax, ebx */ 6124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6126 _flag_k = FK_CMP; 6127 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610BBDE; /* 0x3610BBCD: je 0x3610bbde */ 6128 L_3610BBCF: 6129 PUSH32(esp, eax); /* 0x3610BBCF: push eax */ 6130 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BBD0: call 0x3615fcc4 */ /* not lifted */ 6131 RECOMP_FLAGS_IN(); 6132 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6134 esp = esp + 4; /* 0x3610BBD5: add esp, 4 */ 6135 _flag_k = FK_ADD; 6136 MEM32(esi + 0x1F0) = ebx; /* 0x3610BBD8: mov dword ptr [esi + 0x1f0], ebx */ 6137 L_3610BBDE: 6138 eax = MEM32(esi + 0x1F4); /* 0x3610BBDE: mov eax, dword ptr [esi + 0x1f4] */ 6139 /* cmp eax, ebx */ /* 0x3610BBE4: cmp eax, ebx */ 6140 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6142 _flag_k = FK_CMP; 6143 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610BBF7; /* 0x3610BBE6: je 0x3610bbf7 */ 6144 L_3610BBE8: 6145 PUSH32(esp, eax); /* 0x3610BBE8: push eax */ 6146 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BBE9: call 0x3615fcc4 */ /* not lifted */ 6147 RECOMP_FLAGS_IN(); 6148 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6149 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6150 esp = esp + 4; /* 0x3610BBEE: add esp, 4 */ 6151 _flag_k = FK_ADD; 6152 MEM32(esi + 0x1F4) = ebx; /* 0x3610BBF1: mov dword ptr [esi + 0x1f4], ebx */ 6153 L_3610BBF7: 6154 eax = MEM32(esi + 0x218); /* 0x3610BBF7: mov eax, dword ptr [esi + 0x218] */ 6155 /* cmp eax, ebx */ /* 0x3610BBFD: cmp eax, ebx */ 6156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6158 _flag_k = FK_CMP; 6159 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610BC10; /* 0x3610BBFF: je 0x3610bc10 */ 6160 L_3610BC01: 6161 PUSH32(esp, eax); /* 0x3610BC01: push eax */ 6162 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BC02: call 0x3615fcc4 */ /* not lifted */ 6163 RECOMP_FLAGS_IN(); 6164 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6165 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6166 esp = esp + 4; /* 0x3610BC07: add esp, 4 */ 6167 _flag_k = FK_ADD; 6168 MEM32(esi + 0x218) = ebx; /* 0x3610BC0A: mov dword ptr [esi + 0x218], ebx */ 6169 L_3610BC10: 6170 ecx = esi; /* 0x3610BC10: mov ecx, esi */ 6171 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610BC12: mov dword ptr [ebp - 4], 0xffffffff */ 6172 RECOMP_ICALL(MEM32(0x3616F710)); /* 0x3610BC19: call dword ptr [0x3616f710] */ 6173 RECOMP_FLAGS_IN(); 6174 ecx = MEM32(ebp + (-0xC)); /* 0x3610BC1F: mov ecx, dword ptr [ebp - 0xc] */ 6175 esi = POP32_VAL(esp); /* 0x3610BC22: pop esi */ 6176 ebx = POP32_VAL(esp); /* 0x3610BC23: pop ebx */ 6177 MEM32(FS_BASE + (0)) = ecx; /* 0x3610BC24: mov dword ptr fs:[0], ecx */ 6178 esp = ebp; /* 0x3610BC2B: mov esp, ebp */ 6179 ebp = POP32_VAL(esp); /* 0x3610BC2D: pop ebp */ 6180 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BC2E: ret */ 6181 RECOMP_REGS_OUT(); 6182 } 6183 6184 void sub_3610BC30(void) { 6185 int _fpu_cmp = 0; 6186 uint32_t _cf = 0; 6187 int _df = 1; 6188 uint32_t _flag_k = FK_NONE; 6189 uint32_t _flag_a = 0, _flag_b = 0; 6190 uint32_t _itail_tgt = 0; 6191 RECOMP_REGS_LOCALS 6192 RECOMP_ENTER(0x3610BC30u); 6193 6194 L_3610BC30: 6195 PUSH32(esp, ebp); /* 0x3610BC30: push ebp */ 6196 ebp = esp; /* 0x3610BC31: mov ebp, esp */ 6197 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610BC33: push -1 */ 6198 PUSH32(esp, 0x3616A573u); /* 0x3610BC35: push 0x3616a573 */ 6199 eax = MEM32(FS_BASE + (0)); /* 0x3610BC3A: mov eax, dword ptr fs:[0] */ 6200 PUSH32(esp, eax); /* 0x3610BC40: push eax */ 6201 MEM32(FS_BASE + (0)) = esp; /* 0x3610BC41: mov dword ptr fs:[0], esp */ 6202 PUSH32(esp, ecx); /* 0x3610BC48: push ecx */ 6203 eax = MEM32(ebp + 0x8); /* 0x3610BC49: mov eax, dword ptr [ebp + 8] */ 6204 PUSH32(esp, esi); /* 0x3610BC4C: push esi */ 6205 esi = ecx; /* 0x3610BC4D: mov esi, ecx */ 6206 PUSH32(esp, eax); /* 0x3610BC4F: push eax */ 6207 MEM32(ebp + (-0x10)) = esi; /* 0x3610BC50: mov dword ptr [ebp - 0x10], esi */ 6208 RECOMP_ICALL(0x360FC270u); /* 0x3610BC53: call 0x360fc270 */ /* not lifted */ 6209 RECOMP_FLAGS_IN(); 6210 ecx = MEM32(ebp + 0xC); /* 0x3610BC58: mov ecx, dword ptr [ebp + 0xc] */ 6211 MEM32(esi + 0x24) = ecx; /* 0x3610BC5B: mov dword ptr [esi + 0x24], ecx */ 6212 ecx = esi; /* 0x3610BC5E: mov ecx, esi */ 6213 MEM32(ebp + (-0x4)) = 0; /* 0x3610BC60: mov dword ptr [ebp - 4], 0 */ 6214 MEM32(esi) = 0x361764B8u; /* 0x3610BC67: mov dword ptr [esi], 0x361764b8 */ 6215 RECOMP_ICALL(0x3610C090u); /* 0x3610BC6D: call 0x3610c090 */ /* not lifted */ 6216 RECOMP_FLAGS_IN(); 6217 edx = MEM32(esi + 0x4); /* 0x3610BC72: mov edx, dword ptr [esi + 4] */ 6218 PUSH32(esp, edx); /* 0x3610BC75: push edx */ 6219 RECOMP_ICALL(0x360F7B00u); /* 0x3610BC76: call 0x360f7b00 */ /* not lifted */ 6220 RECOMP_FLAGS_IN(); 6221 ecx = eax; /* 0x3610BC7B: mov ecx, eax */ 6222 RECOMP_ICALL(0x360FBFF0u); /* 0x3610BC7D: call 0x360fbff0 */ /* not lifted */ 6223 RECOMP_FLAGS_IN(); 6224 ecx = eax; /* 0x3610BC82: mov ecx, eax */ 6225 RECOMP_ICALL(0x361371A0u); /* 0x3610BC84: call 0x361371a0 */ /* not lifted */ 6226 RECOMP_FLAGS_IN(); 6227 PUSH32(esp, 0x10Cu); /* 0x3610BC89: push 0x10c */ 6228 RECOMP_ICALL(0x3615FD6Au); /* 0x3610BC8E: call 0x3615fd6a */ /* not lifted */ 6229 RECOMP_FLAGS_IN(); 6230 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6231 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6232 esp = esp + 4; /* 0x3610BC93: add esp, 4 */ 6233 _flag_k = FK_ADD; 6234 MEM32(ebp + 0x8) = eax; /* 0x3610BC96: mov dword ptr [ebp + 8], eax */ 6235 /* test eax, eax */ /* 0x3610BC99: test eax, eax */ 6236 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6237 _cf = 0; 6238 _flag_k = FK_TEST; 6239 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3610BC9B: mov byte ptr [ebp - 4], 1 */ 6240 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BCAA; /* 0x3610BC9F: je 0x3610bcaa */ 6241 L_3610BCA1: 6242 ecx = eax; /* 0x3610BCA1: mov ecx, eax */ 6243 RECOMP_ICALL(0x36132920u); /* 0x3610BCA3: call 0x36132920 */ /* not lifted */ 6244 RECOMP_FLAGS_IN(); 6245 goto L_3610BCAC; /* 0x3610BCA8: jmp 0x3610bcac */ 6246 L_3610BCAA: 6247 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6248 eax = 0; /* 0x3610BCAA: xor eax, eax */ 6249 _cf = 0; 6250 _flag_k = FK_TEST; 6251 L_3610BCAC: 6252 ecx = MEM32(esi + 0x24); /* 0x3610BCAC: mov ecx, dword ptr [esi + 0x24] */ 6253 PUSH32(esp, 1); /* 0x3610BCAF: push 1 */ 6254 PUSH32(esp, 1); /* 0x3610BCB1: push 1 */ 6255 PUSH32(esp, 0); /* 0x3610BCB3: push 0 */ 6256 PUSH32(esp, 0); /* 0x3610BCB5: push 0 */ 6257 PUSH32(esp, 0); /* 0x3610BCB7: push 0 */ 6258 PUSH32(esp, 0); /* 0x3610BCB9: push 0 */ 6259 PUSH32(esp, 0); /* 0x3610BCBB: push 0 */ 6260 PUSH32(esp, 0); /* 0x3610BCBD: push 0 */ 6261 PUSH32(esp, 0); /* 0x3610BCBF: push 0 */ 6262 PUSH32(esp, 0); /* 0x3610BCC1: push 0 */ 6263 PUSH32(esp, ecx); /* 0x3610BCC3: push ecx */ 6264 ecx = eax; /* 0x3610BCC4: mov ecx, eax */ 6265 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3610BCC6: mov byte ptr [ebp - 4], 0 */ 6266 MEM32(esi + 0x20) = eax; /* 0x3610BCCA: mov dword ptr [esi + 0x20], eax */ 6267 RECOMP_ICALL(0x36132D20u); /* 0x3610BCCD: call 0x36132d20 */ /* not lifted */ 6268 RECOMP_FLAGS_IN(); 6269 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6270 _cf = (LO8(eax)) != 0; 6271 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x3610BCD2: neg al */ 6272 _flag_k = FK_NARROW(FK_CMP, 24); 6273 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3610BCD4: sbb al, al */ 6274 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 6275 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6276 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6277 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6278 SET_LO8(eax, LO8(eax) + 1); /* 0x3610BCD6: inc al */ 6279 _flag_k = FK_NARROW(FK_INC, 24); 6280 ecx = esi; /* 0x3610BCD8: mov ecx, esi */ 6281 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x3610BCDA: mov byte ptr [esi + 0x14], al */ 6282 RECOMP_ICALL(0x3610BDE0u); /* 0x3610BCDD: call 0x3610bde0 */ /* not lifted */ 6283 RECOMP_FLAGS_IN(); 6284 ecx = MEM32(ebp + (-0xC)); /* 0x3610BCE2: mov ecx, dword ptr [ebp - 0xc] */ 6285 eax = esi; /* 0x3610BCE5: mov eax, esi */ 6286 esi = POP32_VAL(esp); /* 0x3610BCE7: pop esi */ 6287 MEM32(FS_BASE + (0)) = ecx; /* 0x3610BCE8: mov dword ptr fs:[0], ecx */ 6288 esp = ebp; /* 0x3610BCEF: mov esp, ebp */ 6289 ebp = POP32_VAL(esp); /* 0x3610BCF1: pop ebp */ 6290 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3610BCF2: ret 8 */ 6291 RECOMP_REGS_OUT(); 6292 } 6293 6294 void sub_3610BD00(void) { 6295 int _fpu_cmp = 0; 6296 uint32_t _cf = 0; 6297 int _df = 1; 6298 uint32_t _flag_k = FK_NONE; 6299 uint32_t _flag_a = 0, _flag_b = 0; 6300 uint32_t _itail_tgt = 0; 6301 RECOMP_REGS_LOCALS 6302 RECOMP_ENTER(0x3610BD00u); 6303 6304 L_3610BD00: 6305 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3610BD00: ret 0x10 */ 6306 RECOMP_REGS_OUT(); 6307 } 6308 6309 void sub_3610BD10(void) { 6310 int _fpu_cmp = 0; 6311 uint32_t _cf = 0; 6312 int _df = 1; 6313 uint32_t _flag_k = FK_NONE; 6314 uint32_t _flag_a = 0, _flag_b = 0; 6315 uint32_t _itail_tgt = 0; 6316 RECOMP_REGS_LOCALS 6317 RECOMP_ENTER(0x3610BD10u); 6318 6319 L_3610BD10: 6320 PUSH32(esp, ebp); /* 0x3610BD10: push ebp */ 6321 ebp = esp; /* 0x3610BD11: mov ebp, esp */ 6322 PUSH32(esp, esi); /* 0x3610BD13: push esi */ 6323 esi = ecx; /* 0x3610BD14: mov esi, ecx */ 6324 RECOMP_ICALL(0x3610BD40u); /* 0x3610BD16: call 0x3610bd40 */ /* not lifted */ 6325 RECOMP_FLAGS_IN(); 6326 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610BD1B: test byte ptr [ebp + 8], 1 */ 6327 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6328 _cf = 0; 6329 _flag_k = FK_NARROW(FK_TEST, 24); 6330 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BD2A; /* 0x3610BD1F: je 0x3610bd2a */ 6331 L_3610BD21: 6332 PUSH32(esp, esi); /* 0x3610BD21: push esi */ 6333 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BD22: call 0x3615fcc4 */ /* not lifted */ 6334 RECOMP_FLAGS_IN(); 6335 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6336 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6337 esp = esp + 4; /* 0x3610BD27: add esp, 4 */ 6338 _flag_k = FK_ADD; 6339 L_3610BD2A: 6340 eax = esi; /* 0x3610BD2A: mov eax, esi */ 6341 esi = POP32_VAL(esp); /* 0x3610BD2C: pop esi */ 6342 ebp = POP32_VAL(esp); /* 0x3610BD2D: pop ebp */ 6343 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610BD2E: ret 4 */ 6344 RECOMP_REGS_OUT(); 6345 } 6346 6347 void sub_3610BD40(void) { 6348 int _fpu_cmp = 0; 6349 uint32_t _cf = 0; 6350 int _df = 1; 6351 uint32_t _flag_k = FK_NONE; 6352 uint32_t _flag_a = 0, _flag_b = 0; 6353 uint32_t _itail_tgt = 0; 6354 RECOMP_REGS_LOCALS 6355 RECOMP_ENTER(0x3610BD40u); 6356 6357 L_3610BD40: 6358 PUSH32(esp, ebp); /* 0x3610BD40: push ebp */ 6359 ebp = esp; /* 0x3610BD41: mov ebp, esp */ 6360 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610BD43: push -1 */ 6361 PUSH32(esp, 0x3616A588u); /* 0x3610BD45: push 0x3616a588 */ 6362 eax = MEM32(FS_BASE + (0)); /* 0x3610BD4A: mov eax, dword ptr fs:[0] */ 6363 PUSH32(esp, eax); /* 0x3610BD50: push eax */ 6364 MEM32(FS_BASE + (0)) = esp; /* 0x3610BD51: mov dword ptr fs:[0], esp */ 6365 PUSH32(esp, ecx); /* 0x3610BD58: push ecx */ 6366 PUSH32(esp, esi); /* 0x3610BD59: push esi */ 6367 esi = ecx; /* 0x3610BD5A: mov esi, ecx */ 6368 MEM32(ebp + (-0x10)) = esi; /* 0x3610BD5C: mov dword ptr [ebp - 0x10], esi */ 6369 MEM32(esi) = 0x361764B8u; /* 0x3610BD5F: mov dword ptr [esi], 0x361764b8 */ 6370 ecx = MEM32(esi + 0x28); /* 0x3610BD65: mov ecx, dword ptr [esi + 0x28] */ 6371 /* test ecx, ecx */ /* 0x3610BD68: test ecx, ecx */ 6372 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6373 _cf = 0; 6374 _flag_k = FK_TEST; 6375 MEM32(ebp + (-0x4)) = 0; /* 0x3610BD6A: mov dword ptr [ebp - 4], 0 */ 6376 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BD79; /* 0x3610BD71: je 0x3610bd79 */ 6377 L_3610BD73: 6378 eax = MEM32(ecx); /* 0x3610BD73: mov eax, dword ptr [ecx] */ 6379 PUSH32(esp, 1); /* 0x3610BD75: push 1 */ 6380 RECOMP_ICALL(MEM32(eax)); /* 0x3610BD77: call dword ptr [eax] */ 6381 RECOMP_FLAGS_IN(); 6382 L_3610BD79: 6383 ecx = esi; /* 0x3610BD79: mov ecx, esi */ 6384 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610BD7B: mov dword ptr [ebp - 4], 0xffffffff */ 6385 RECOMP_ICALL(0x360FC2F0u); /* 0x3610BD82: call 0x360fc2f0 */ /* not lifted */ 6386 RECOMP_FLAGS_IN(); 6387 ecx = MEM32(ebp + (-0xC)); /* 0x3610BD87: mov ecx, dword ptr [ebp - 0xc] */ 6388 esi = POP32_VAL(esp); /* 0x3610BD8A: pop esi */ 6389 MEM32(FS_BASE + (0)) = ecx; /* 0x3610BD8B: mov dword ptr fs:[0], ecx */ 6390 esp = ebp; /* 0x3610BD92: mov esp, ebp */ 6391 ebp = POP32_VAL(esp); /* 0x3610BD94: pop ebp */ 6392 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BD95: ret */ 6393 RECOMP_REGS_OUT(); 6394 } 6395 6396 void sub_3610BDA0(void) { 6397 int _fpu_cmp = 0; 6398 uint32_t _cf = 0; 6399 int _df = 1; 6400 uint32_t _flag_k = FK_NONE; 6401 uint32_t _flag_a = 0, _flag_b = 0; 6402 uint32_t _itail_tgt = 0; 6403 RECOMP_REGS_LOCALS 6404 RECOMP_ENTER(0x3610BDA0u); 6405 6406 L_3610BDA0: 6407 PUSH32(esp, esi); /* 0x3610BDA0: push esi */ 6408 esi = ecx; /* 0x3610BDA1: mov esi, ecx */ 6409 RECOMP_ICALL(0x360FC300u); /* 0x3610BDA3: call 0x360fc300 */ /* not lifted */ 6410 RECOMP_FLAGS_IN(); 6411 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x3610BDA8: mov al, byte ptr [esi + 0x14] */ 6412 /* test LO8(eax), LO8(eax) */ /* 0x3610BDAB: test al, al */ 6413 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6414 _cf = 0; 6415 _flag_k = FK_NARROW(FK_TEST, 24); 6416 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610BDDD; /* 0x3610BDAD: jne 0x3610bddd */ 6417 L_3610BDAF: 6418 ecx = MEM32(esi + 0x20); /* 0x3610BDAF: mov ecx, dword ptr [esi + 0x20] */ 6419 RECOMP_ICALL(0x361331E0u); /* 0x3610BDB2: call 0x361331e0 */ /* not lifted */ 6420 RECOMP_FLAGS_IN(); 6421 /* test LO8(eax), LO8(eax) */ /* 0x3610BDB7: test al, al */ 6422 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6423 _cf = 0; 6424 _flag_k = FK_NARROW(FK_TEST, 24); 6425 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610BDC1; /* 0x3610BDB9: jne 0x3610bdc1 */ 6426 L_3610BDBB: 6427 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x3610BDBB: mov byte ptr [esi + 0x14], 1 */ 6428 esi = POP32_VAL(esp); /* 0x3610BDBF: pop esi */ 6429 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BDC0: ret */ 6430 L_3610BDC1: 6431 eax = MEM32(esi + 0x20); /* 0x3610BDC1: mov eax, dword ptr [esi + 0x20] */ 6432 SET_LO8(ecx, MEM8(eax + 0x108)); /* 0x3610BDC4: mov cl, byte ptr [eax + 0x108] */ 6433 /* test LO8(ecx), LO8(ecx) */ /* 0x3610BDCA: test cl, cl */ 6434 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6435 _cf = 0; 6436 _flag_k = FK_NARROW(FK_TEST, 24); 6437 ecx = MEM32(esi + 0x28); /* 0x3610BDCC: mov ecx, dword ptr [esi + 0x28] */ 6438 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BDD8; /* 0x3610BDCF: je 0x3610bdd8 */ 6439 L_3610BDD1: 6440 edx = MEM32(ecx); /* 0x3610BDD1: mov edx, dword ptr [ecx] */ 6441 RECOMP_ICALL(MEM32(edx + 0x64)); /* 0x3610BDD3: call dword ptr [edx + 0x64] */ 6442 RECOMP_FLAGS_IN(); 6443 esi = POP32_VAL(esp); /* 0x3610BDD6: pop esi */ 6444 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BDD7: ret */ 6445 L_3610BDD8: 6446 eax = MEM32(ecx); /* 0x3610BDD8: mov eax, dword ptr [ecx] */ 6447 RECOMP_ICALL(MEM32(eax + 0x68)); /* 0x3610BDDA: call dword ptr [eax + 0x68] */ 6448 RECOMP_FLAGS_IN(); 6449 L_3610BDDD: 6450 esi = POP32_VAL(esp); /* 0x3610BDDD: pop esi */ 6451 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BDDE: ret */ 6452 RECOMP_REGS_OUT(); 6453 } 6454 6455 void sub_3610BDE0(void) { 6456 int _fpu_cmp = 0; 6457 uint32_t _cf = 0; 6458 int _df = 1; 6459 uint32_t _flag_k = FK_NONE; 6460 uint32_t _flag_a = 0, _flag_b = 0; 6461 uint32_t _itail_tgt = 0; 6462 RECOMP_REGS_LOCALS 6463 RECOMP_ENTER(0x3610BDE0u); 6464 6465 L_3610BDE0: 6466 PUSH32(esp, ebp); /* 0x3610BDE0: push ebp */ 6467 ebp = esp; /* 0x3610BDE1: mov ebp, esp */ 6468 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610BDE3: push -1 */ 6469 PUSH32(esp, 0x3616A5C7u); /* 0x3610BDE5: push 0x3616a5c7 */ 6470 eax = MEM32(FS_BASE + (0)); /* 0x3610BDEA: mov eax, dword ptr fs:[0] */ 6471 PUSH32(esp, eax); /* 0x3610BDF0: push eax */ 6472 MEM32(FS_BASE + (0)) = esp; /* 0x3610BDF1: mov dword ptr fs:[0], esp */ 6473 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 6474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6475 esp = esp - 0x18u; /* 0x3610BDF8: sub esp, 0x18 */ 6476 _flag_k = FK_CMP; 6477 PUSH32(esp, ebx); /* 0x3610BDFB: push ebx */ 6478 PUSH32(esp, esi); /* 0x3610BDFC: push esi */ 6479 PUSH32(esp, edi); /* 0x3610BDFD: push edi */ 6480 edi = ecx; /* 0x3610BDFE: mov edi, ecx */ 6481 PUSH32(esp, 0x238u); /* 0x3610BE00: push 0x238 */ 6482 MEM32(ebp + (-0x10)) = edi; /* 0x3610BE05: mov dword ptr [ebp - 0x10], edi */ 6483 RECOMP_ICALL(0x3615FD6Au); /* 0x3610BE08: call 0x3615fd6a */ /* not lifted */ 6484 RECOMP_FLAGS_IN(); 6485 esi = eax; /* 0x3610BE0D: mov esi, eax */ 6486 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6488 esp = esp + 4; /* 0x3610BE0F: add esp, 4 */ 6489 _flag_k = FK_ADD; 6490 MEM32(ebp + (-0x14)) = esi; /* 0x3610BE12: mov dword ptr [ebp - 0x14], esi */ 6491 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6492 ebx = 0; /* 0x3610BE15: xor ebx, ebx */ 6493 _cf = 0; 6494 _flag_k = FK_TEST; 6495 /* cmp esi, ebx */ /* 0x3610BE17: cmp esi, ebx */ 6496 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6498 _flag_k = FK_CMP; 6499 MEM32(ebp + (-0x4)) = ebx; /* 0x3610BE19: mov dword ptr [ebp - 4], ebx */ 6500 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610BFEF; /* 0x3610BE1C: je 0x3610bfef */ 6501 L_3610BE22: 6502 PUSH32(esp, 1); /* 0x3610BE22: push 1 */ 6503 RECOMP_ICALL(0x360F7B00u); /* 0x3610BE24: call 0x360f7b00 */ /* not lifted */ 6504 RECOMP_FLAGS_IN(); 6505 ecx = eax; /* 0x3610BE29: mov ecx, eax */ 6506 RECOMP_ICALL(0x360FBE40u); /* 0x3610BE2B: call 0x360fbe40 */ /* not lifted */ 6507 RECOMP_FLAGS_IN(); 6508 PUSH32(esp, ebx); /* 0x3610BE30: push ebx */ 6509 PUSH32(esp, ebx); /* 0x3610BE31: push ebx */ 6510 ecx = esi; /* 0x3610BE32: mov ecx, esi */ 6511 edi = eax; /* 0x3610BE34: mov edi, eax */ 6512 MEM32(ebp + (-0x24)) = ebx; /* 0x3610BE36: mov dword ptr [ebp - 0x24], ebx */ 6513 MEM32(ebp + (-0x20)) = ebx; /* 0x3610BE39: mov dword ptr [ebp - 0x20], ebx */ 6514 MEM32(ebp + (-0x1C)) = ebx; /* 0x3610BE3C: mov dword ptr [ebp - 0x1c], ebx */ 6515 RECOMP_ICALL(MEM32(0x3616F730)); /* 0x3610BE3F: call dword ptr [0x3616f730] */ 6516 RECOMP_FLAGS_IN(); 6517 MEM32(esi + 0x1D8) = edi; /* 0x3610BE45: mov dword ptr [esi + 0x1d8], edi */ 6518 eax = esi + 0x204; /* 0x3610BE4B: lea eax, [esi + 0x204] */ 6519 edi = eax; /* 0x3610BE51: mov edi, eax */ 6520 eax = ebx; /* 0x3610BE53: mov eax, ebx */ 6521 MEM32(edi) = eax; /* 0x3610BE55: mov dword ptr [edi], eax */ 6522 ecx = ebx; /* 0x3610BE57: mov ecx, ebx */ 6523 MEM32(edi + 0x4) = ecx; /* 0x3610BE59: mov dword ptr [edi + 4], ecx */ 6524 edx = ebx; /* 0x3610BE5C: mov edx, ebx */ 6525 MEM32(edi + 0x8) = edx; /* 0x3610BE5E: mov dword ptr [edi + 8], edx */ 6526 edi = esi + 0x78; /* 0x3610BE61: lea edi, [esi + 0x78] */ 6527 MEM32(edi) = eax; /* 0x3610BE64: mov dword ptr [edi], eax */ 6528 MEM32(edi + 0x4) = ecx; /* 0x3610BE66: mov dword ptr [edi + 4], ecx */ 6529 PUSH32(esp, 1); /* 0x3610BE69: push 1 */ 6530 PUSH32(esp, 1); /* 0x3610BE6B: push 1 */ 6531 ecx = esi; /* 0x3610BE6D: mov ecx, esi */ 6532 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3610BE6F: mov byte ptr [ebp - 4], 1 */ 6533 MEM32(esi + 0x1D4) = 1; /* 0x3610BE73: mov dword ptr [esi + 0x1d4], 1 */ 6534 MEM32(esi + 0x1DC) = ebx; /* 0x3610BE7D: mov dword ptr [esi + 0x1dc], ebx */ 6535 MEM32(esi + 0x1E0) = ebx; /* 0x3610BE83: mov dword ptr [esi + 0x1e0], ebx */ 6536 MEM32(esi + 0x1E4) = ebx; /* 0x3610BE89: mov dword ptr [esi + 0x1e4], ebx */ 6537 MEM32(esi + 0x1E8) = ebx; /* 0x3610BE8F: mov dword ptr [esi + 0x1e8], ebx */ 6538 MEM32(esi + 0x1EC) = ebx; /* 0x3610BE95: mov dword ptr [esi + 0x1ec], ebx */ 6539 MEM32(esi + 0x1F0) = ebx; /* 0x3610BE9B: mov dword ptr [esi + 0x1f0], ebx */ 6540 MEM32(esi + 0x1F4) = ebx; /* 0x3610BEA1: mov dword ptr [esi + 0x1f4], ebx */ 6541 MEM32(esi + 0x1F8) = ebx; /* 0x3610BEA7: mov dword ptr [esi + 0x1f8], ebx */ 6542 MEM8(esi + 0x1FC) = (uint8_t)(LO8(ebx)); /* 0x3610BEAD: mov byte ptr [esi + 0x1fc], bl */ 6543 MEM32(esi + 0x210) = ebx; /* 0x3610BEB3: mov dword ptr [esi + 0x210], ebx */ 6544 MEM8(esi + 0x214) = (uint8_t)(LO8(ebx)); /* 0x3610BEB9: mov byte ptr [esi + 0x214], bl */ 6545 MEM32(esi) = 0x36176448u; /* 0x3610BEBF: mov dword ptr [esi], 0x36176448 */ 6546 MEM32(esi + 0x8) = 0x36176438u; /* 0x3610BEC5: mov dword ptr [esi + 8], 0x36176438 */ 6547 MEM32(esi + 0x20) = 0x36176428u; /* 0x3610BECC: mov dword ptr [esi + 0x20], 0x36176428 */ 6548 MEM32(esi + 0x38) = 0x36176418u; /* 0x3610BED3: mov dword ptr [esi + 0x38], 0x36176418 */ 6549 MEM32(esi + 0x50) = 0x36176408u; /* 0x3610BEDA: mov dword ptr [esi + 0x50], 0x36176408 */ 6550 MEM32(esi + 0x138) = 0x361763F8u; /* 0x3610BEE1: mov dword ptr [esi + 0x138], 0x361763f8 */ 6551 MEM32(esi + 0x150) = 0x361763E8u; /* 0x3610BEEB: mov dword ptr [esi + 0x150], 0x361763e8 */ 6552 MEM32(edi + 0x8) = edx; /* 0x3610BEF5: mov dword ptr [edi + 8], edx */ 6553 RECOMP_ICALL(MEM32(0x36176474)); /* 0x3610BEF8: call dword ptr [0x36176474] */ 6554 RECOMP_FLAGS_IN(); 6555 PUSH32(esp, 0x3ECu); /* 0x3610BEFE: push 0x3ec */ 6556 RECOMP_ICALL(0x3615FD6Au); /* 0x3610BF03: call 0x3615fd6a */ /* not lifted */ 6557 RECOMP_FLAGS_IN(); 6558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6560 esp = esp + 4; /* 0x3610BF08: add esp, 4 */ 6561 _flag_k = FK_ADD; 6562 MEM32(ebp + (-0x18)) = eax; /* 0x3610BF0B: mov dword ptr [ebp - 0x18], eax */ 6563 /* cmp eax, ebx */ /* 0x3610BF0E: cmp eax, ebx */ 6564 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6566 _flag_k = FK_CMP; 6567 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3610BF10: mov byte ptr [ebp - 4], 2 */ 6568 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610BF21; /* 0x3610BF14: je 0x3610bf21 */ 6569 L_3610BF16: 6570 PUSH32(esp, 1); /* 0x3610BF16: push 1 */ 6571 ecx = eax; /* 0x3610BF18: mov ecx, eax */ 6572 RECOMP_ICALL(0x3615BC20u); /* 0x3610BF1A: call 0x3615bc20 */ /* not lifted */ 6573 RECOMP_FLAGS_IN(); 6574 goto L_3610BF23; /* 0x3610BF1F: jmp 0x3610bf23 */ 6575 L_3610BF21: 6576 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6577 eax = 0; /* 0x3610BF21: xor eax, eax */ 6578 _cf = 0; 6579 _flag_k = FK_TEST; 6580 L_3610BF23: 6581 MEM32(esi + 0x218) = eax; /* 0x3610BF23: mov dword ptr [esi + 0x218], eax */ 6582 ecx = MEM32(0x3616F72C); /* 0x3610BF29: mov ecx, dword ptr [0x3616f72c] */ 6583 MEM32(esi) = ecx; /* 0x3610BF2F: mov dword ptr [esi], ecx */ 6584 edx = MEM32(0x3616F728); /* 0x3610BF31: mov edx, dword ptr [0x3616f728] */ 6585 MEM32(esi + 0x8) = edx; /* 0x3610BF37: mov dword ptr [esi + 8], edx */ 6586 eax = MEM32(0x3616F724); /* 0x3610BF3A: mov eax, dword ptr [0x3616f724] */ 6587 MEM32(esi + 0x20) = eax; /* 0x3610BF3F: mov dword ptr [esi + 0x20], eax */ 6588 ecx = MEM32(0x3616F720); /* 0x3610BF42: mov ecx, dword ptr [0x3616f720] */ 6589 MEM32(esi + 0x38) = ecx; /* 0x3610BF48: mov dword ptr [esi + 0x38], ecx */ 6590 edx = MEM32(0x3616F71C); /* 0x3610BF4B: mov edx, dword ptr [0x3616f71c] */ 6591 MEM32(esi + 0x50) = edx; /* 0x3610BF51: mov dword ptr [esi + 0x50], edx */ 6592 eax = MEM32(0x3616F718); /* 0x3610BF54: mov eax, dword ptr [0x3616f718] */ 6593 MEM32(esi + 0x138) = eax; /* 0x3610BF59: mov dword ptr [esi + 0x138], eax */ 6594 ecx = MEM32(0x3616F714); /* 0x3610BF5F: mov ecx, dword ptr [0x3616f714] */ 6595 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3610BF65: mov byte ptr [ebp - 4], 3 */ 6596 MEM32(esi + 0x150) = ecx; /* 0x3610BF69: mov dword ptr [esi + 0x150], ecx */ 6597 RECOMP_ICALL(MEM32(0x3616F39C)); /* 0x3610BF6F: call dword ptr [0x3616f39c] */ 6598 RECOMP_FLAGS_IN(); 6599 eax = MEM32(eax + 0x718); /* 0x3610BF75: mov eax, dword ptr [eax + 0x718] */ 6600 PUSH32(esp, 7); /* 0x3610BF7B: push 7 */ 6601 ecx = esi; /* 0x3610BF7D: mov ecx, esi */ 6602 MEM32(esi + 0x21C) = eax; /* 0x3610BF7F: mov dword ptr [esi + 0x21c], eax */ 6603 RECOMP_ICALL(MEM32(0x3616F704)); /* 0x3610BF85: call dword ptr [0x3616f704] */ 6604 RECOMP_FLAGS_IN(); 6605 edx = MEM32(esi); /* 0x3610BF8B: mov edx, dword ptr [esi] */ 6606 ecx = esi; /* 0x3610BF8D: mov ecx, esi */ 6607 MEM32(esi + 0x224) = ebx; /* 0x3610BF8F: mov dword ptr [esi + 0x224], ebx */ 6608 MEM32(esi + 0x228) = ebx; /* 0x3610BF95: mov dword ptr [esi + 0x228], ebx */ 6609 MEM8(esi + 0x22C) = (uint8_t)(LO8(ebx)); /* 0x3610BF9B: mov byte ptr [esi + 0x22c], bl */ 6610 MEM32(esi + 0x230) = ebx; /* 0x3610BFA1: mov dword ptr [esi + 0x230], ebx */ 6611 MEM32(esi + 0x234) = 0x3F800000u; /* 0x3610BFA7: mov dword ptr [esi + 0x234], 0x3f800000 */ 6612 RECOMP_ICALL(MEM32(edx + 0x5C)); /* 0x3610BFB1: call dword ptr [edx + 0x5c] */ 6613 RECOMP_FLAGS_IN(); 6614 edi = MEM32(ebp + (-0x10)); /* 0x3610BFB4: mov edi, dword ptr [ebp - 0x10] */ 6615 MEM32(esi) = 0x36176560u; /* 0x3610BFB7: mov dword ptr [esi], 0x36176560 */ 6616 MEM32(esi + 0x8) = 0x36176550u; /* 0x3610BFBD: mov dword ptr [esi + 8], 0x36176550 */ 6617 MEM32(esi + 0x20) = 0x36176540u; /* 0x3610BFC4: mov dword ptr [esi + 0x20], 0x36176540 */ 6618 MEM32(esi + 0x38) = 0x36176530u; /* 0x3610BFCB: mov dword ptr [esi + 0x38], 0x36176530 */ 6619 MEM32(esi + 0x50) = 0x36176520u; /* 0x3610BFD2: mov dword ptr [esi + 0x50], 0x36176520 */ 6620 MEM32(esi + 0x138) = 0x36176510u; /* 0x3610BFD9: mov dword ptr [esi + 0x138], 0x36176510 */ 6621 MEM32(esi + 0x150) = 0x36176500u; /* 0x3610BFE3: mov dword ptr [esi + 0x150], 0x36176500 */ 6622 goto L_3610BFF1; /* 0x3610BFED: jmp 0x3610bff1 */ 6623 L_3610BFEF: 6624 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6625 esi = 0; /* 0x3610BFEF: xor esi, esi */ 6626 _cf = 0; 6627 _flag_k = FK_TEST; 6628 L_3610BFF1: 6629 ecx = MEM32(edi + 0x24); /* 0x3610BFF1: mov ecx, dword ptr [edi + 0x24] */ 6630 MEM32(edi + 0x28) = esi; /* 0x3610BFF4: mov dword ptr [edi + 0x28], esi */ 6631 eax = MEM32(esi); /* 0x3610BFF7: mov eax, dword ptr [esi] */ 6632 PUSH32(esp, ecx); /* 0x3610BFF9: push ecx */ 6633 ecx = esi; /* 0x3610BFFA: mov ecx, esi */ 6634 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610BFFC: mov dword ptr [ebp - 4], 0xffffffff */ 6635 RECOMP_ICALL(MEM32(eax + 0x6C)); /* 0x3610C003: call dword ptr [eax + 0x6c] */ 6636 RECOMP_FLAGS_IN(); 6637 ecx = MEM32(ebp + (-0xC)); /* 0x3610C006: mov ecx, dword ptr [ebp - 0xc] */ 6638 edi = POP32_VAL(esp); /* 0x3610C009: pop edi */ 6639 esi = POP32_VAL(esp); /* 0x3610C00A: pop esi */ 6640 ebx = POP32_VAL(esp); /* 0x3610C00B: pop ebx */ 6641 MEM32(FS_BASE + (0)) = ecx; /* 0x3610C00C: mov dword ptr fs:[0], ecx */ 6642 esp = ebp; /* 0x3610C013: mov esp, ebp */ 6643 ebp = POP32_VAL(esp); /* 0x3610C015: pop ebp */ 6644 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610C016: ret */ 6645 RECOMP_REGS_OUT(); 6646 } 6647 6648 void sub_3610C020(void) { 6649 int _fpu_cmp = 0; 6650 uint32_t _cf = 0; 6651 int _df = 1; 6652 uint32_t _flag_k = FK_NONE; 6653 uint32_t _flag_a = 0, _flag_b = 0; 6654 uint32_t _itail_tgt = 0; 6655 RECOMP_REGS_LOCALS 6656 RECOMP_ENTER(0x3610C020u); 6657 6658 L_3610C020: 6659 PUSH32(esp, ebp); /* 0x3610C020: push ebp */ 6660 ebp = esp; /* 0x3610C021: mov ebp, esp */ 6661 PUSH32(esp, esi); /* 0x3610C023: push esi */ 6662 esi = ecx; /* 0x3610C024: mov esi, ecx */ 6663 RECOMP_ICALL(0x3610BAE0u); /* 0x3610C026: call 0x3610bae0 */ /* not lifted */ 6664 RECOMP_FLAGS_IN(); 6665 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610C02B: test byte ptr [ebp + 8], 1 */ 6666 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6667 _cf = 0; 6668 _flag_k = FK_NARROW(FK_TEST, 24); 6669 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C03A; /* 0x3610C02F: je 0x3610c03a */ 6670 L_3610C031: 6671 PUSH32(esp, esi); /* 0x3610C031: push esi */ 6672 RECOMP_ICALL(0x3615FCC4u); /* 0x3610C032: call 0x3615fcc4 */ /* not lifted */ 6673 RECOMP_FLAGS_IN(); 6674 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6676 esp = esp + 4; /* 0x3610C037: add esp, 4 */ 6677 _flag_k = FK_ADD; 6678 L_3610C03A: 6679 eax = esi; /* 0x3610C03A: mov eax, esi */ 6680 esi = POP32_VAL(esp); /* 0x3610C03C: pop esi */ 6681 ebp = POP32_VAL(esp); /* 0x3610C03D: pop ebp */ 6682 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610C03E: ret 4 */ 6683 RECOMP_REGS_OUT(); 6684 } 6685 6686 void sub_3610C050(void) { 6687 int _fpu_cmp = 0; 6688 uint32_t _cf = 0; 6689 int _df = 1; 6690 uint32_t _flag_k = FK_NONE; 6691 uint32_t _flag_a = 0, _flag_b = 0; 6692 uint32_t _itail_tgt = 0; 6693 RECOMP_REGS_LOCALS 6694 RECOMP_ENTER(0x3610C050u); 6695 6696 L_3610C050: 6697 PUSH32(esp, ebp); /* 0x3610C050: push ebp */ 6698 ebp = esp; /* 0x3610C051: mov ebp, esp */ 6699 edx = MEM32(ebp + 0x10); /* 0x3610C053: mov edx, dword ptr [ebp + 0x10] */ 6700 ecx = MEM32(ecx + 0x28); /* 0x3610C056: mov ecx, dword ptr [ecx + 0x28] */ 6701 eax = MEM32(ecx); /* 0x3610C059: mov eax, dword ptr [ecx] */ 6702 PUSH32(esp, edx); /* 0x3610C05B: push edx */ 6703 edx = MEM32(ebp + 0x14); /* 0x3610C05C: mov edx, dword ptr [ebp + 0x14] */ 6704 PUSH32(esp, edx); /* 0x3610C05F: push edx */ 6705 edx = MEM32(ebp + 0xC); /* 0x3610C060: mov edx, dword ptr [ebp + 0xc] */ 6706 PUSH32(esp, edx); /* 0x3610C063: push edx */ 6707 edx = MEM32(ebp + 0x8); /* 0x3610C064: mov edx, dword ptr [ebp + 8] */ 6708 PUSH32(esp, edx); /* 0x3610C067: push edx */ 6709 RECOMP_ICALL(MEM32(eax + 0x70)); /* 0x3610C068: call dword ptr [eax + 0x70] */ 6710 RECOMP_FLAGS_IN(); 6711 ebp = POP32_VAL(esp); /* 0x3610C06B: pop ebp */ 6712 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3610C06C: ret 0x10 */ 6713 RECOMP_REGS_OUT(); 6714 } 6715 6716 void sub_3610C070(void) { 6717 int _fpu_cmp = 0; 6718 uint32_t _cf = 0; 6719 int _df = 1; 6720 uint32_t _flag_k = FK_NONE; 6721 uint32_t _flag_a = 0, _flag_b = 0; 6722 uint32_t _itail_tgt = 0; 6723 RECOMP_REGS_LOCALS 6724 RECOMP_ENTER(0x3610C070u); 6725 6726 L_3610C070: 6727 PUSH32(esp, ebp); /* 0x3610C070: push ebp */ 6728 ebp = esp; /* 0x3610C071: mov ebp, esp */ 6729 ecx = MEM32(ecx + 0x28); /* 0x3610C073: mov ecx, dword ptr [ecx + 0x28] */ 6730 edx = MEM32(ebp + 0x8); /* 0x3610C076: mov edx, dword ptr [ebp + 8] */ 6731 eax = MEM32(ecx); /* 0x3610C079: mov eax, dword ptr [ecx] */ 6732 PUSH32(esp, edx); /* 0x3610C07B: push edx */ 6733 RECOMP_ICALL(MEM32(eax + 0x74)); /* 0x3610C07C: call dword ptr [eax + 0x74] */ 6734 RECOMP_FLAGS_IN(); 6735 ebp = POP32_VAL(esp); /* 0x3610C07F: pop ebp */ 6736 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610C080: ret 4 */ 6737 RECOMP_REGS_OUT(); 6738 } 6739 6740 void sub_3610C090(void) { 6741 int _fpu_cmp = 0; 6742 uint32_t _cf = 0; 6743 int _df = 1; 6744 uint32_t _flag_k = FK_NONE; 6745 uint32_t _flag_a = 0, _flag_b = 0; 6746 uint32_t _itail_tgt = 0; 6747 RECOMP_REGS_LOCALS 6748 RECOMP_ENTER(0x3610C090u); 6749 6750 L_3610C090: 6751 PUSH32(esp, esi); /* 0x3610C090: push esi */ 6752 PUSH32(esp, edi); /* 0x3610C091: push edi */ 6753 edi = ecx; /* 0x3610C092: mov edi, ecx */ 6754 eax = MEM32(edi + 0x4); /* 0x3610C094: mov eax, dword ptr [edi + 4] */ 6755 PUSH32(esp, eax); /* 0x3610C097: push eax */ 6756 RECOMP_ICALL(0x360F7B00u); /* 0x3610C098: call 0x360f7b00 */ /* not lifted */ 6757 RECOMP_FLAGS_IN(); 6758 ecx = eax; /* 0x3610C09D: mov ecx, eax */ 6759 RECOMP_ICALL(0x360FBFF0u); /* 0x3610C09F: call 0x360fbff0 */ /* not lifted */ 6760 RECOMP_FLAGS_IN(); 6761 ecx = eax; /* 0x3610C0A4: mov ecx, eax */ 6762 RECOMP_ICALL(0x361371A0u); /* 0x3610C0A6: call 0x361371a0 */ /* not lifted */ 6763 RECOMP_FLAGS_IN(); 6764 esi = eax; /* 0x3610C0AB: mov esi, eax */ 6765 PUSH32(esp, 0); /* 0x3610C0AD: push 0 */ 6766 ecx = esi; /* 0x3610C0AF: mov ecx, esi */ 6767 RECOMP_ICALL(0x36137010u); /* 0x3610C0B1: call 0x36137010 */ /* not lifted */ 6768 RECOMP_FLAGS_IN(); 6769 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610C0B6: fstp st(0) */ 6770 PUSH32(esp, 1); /* 0x3610C0B8: push 1 */ 6771 ecx = esi; /* 0x3610C0BA: mov ecx, esi */ 6772 RECOMP_ICALL(0x36137010u); /* 0x3610C0BC: call 0x36137010 */ /* not lifted */ 6773 RECOMP_FLAGS_IN(); 6774 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610C0C1: fstp st(0) */ 6775 PUSH32(esp, 2); /* 0x3610C0C3: push 2 */ 6776 ecx = esi; /* 0x3610C0C5: mov ecx, esi */ 6777 RECOMP_ICALL(0x36137010u); /* 0x3610C0C7: call 0x36137010 */ /* not lifted */ 6778 RECOMP_FLAGS_IN(); 6779 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610C0CC: fstp st(0) */ 6780 PUSH32(esp, 3); /* 0x3610C0CE: push 3 */ 6781 ecx = esi; /* 0x3610C0D0: mov ecx, esi */ 6782 RECOMP_ICALL(0x36137010u); /* 0x3610C0D2: call 0x36137010 */ /* not lifted */ 6783 RECOMP_FLAGS_IN(); 6784 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610C0D7: fstp st(0) */ 6785 MEM32(edi + 0x10) = 0xBF800000u; /* 0x3610C0D9: mov dword ptr [edi + 0x10], 0xbf800000 */ 6786 edi = POP32_VAL(esp); /* 0x3610C0E0: pop edi */ 6787 esi = POP32_VAL(esp); /* 0x3610C0E1: pop esi */ 6788 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610C0E2: ret */ 6789 RECOMP_REGS_OUT(); 6790 } 6791 6792 void sub_3610C0F0(void) { 6793 int _fpu_cmp = 0; 6794 uint32_t _cf = 0; 6795 int _df = 1; 6796 uint32_t _flag_k = FK_NONE; 6797 uint32_t _flag_a = 0, _flag_b = 0; 6798 uint32_t _itail_tgt = 0; 6799 RECOMP_REGS_LOCALS 6800 RECOMP_ENTER(0x3610C0F0u); 6801 6802 goto L_3610C0F0; 6803 L_3610C020: 6804 PUSH32(esp, ebp); /* 0x3610C020: push ebp */ 6805 ebp = esp; /* 0x3610C021: mov ebp, esp */ 6806 PUSH32(esp, esi); /* 0x3610C023: push esi */ 6807 esi = ecx; /* 0x3610C024: mov esi, ecx */ 6808 RECOMP_ICALL(0x3610BAE0u); /* 0x3610C026: call 0x3610bae0 */ /* not lifted */ 6809 RECOMP_FLAGS_IN(); 6810 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610C02B: test byte ptr [ebp + 8], 1 */ 6811 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6812 _cf = 0; 6813 _flag_k = FK_NARROW(FK_TEST, 24); 6814 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C03A; /* 0x3610C02F: je 0x3610c03a */ 6815 L_3610C031: 6816 PUSH32(esp, esi); /* 0x3610C031: push esi */ 6817 RECOMP_ICALL(0x3615FCC4u); /* 0x3610C032: call 0x3615fcc4 */ /* not lifted */ 6818 RECOMP_FLAGS_IN(); 6819 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6820 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6821 esp = esp + 4; /* 0x3610C037: add esp, 4 */ 6822 _flag_k = FK_ADD; 6823 L_3610C03A: 6824 eax = esi; /* 0x3610C03A: mov eax, esi */ 6825 esi = POP32_VAL(esp); /* 0x3610C03C: pop esi */ 6826 ebp = POP32_VAL(esp); /* 0x3610C03D: pop ebp */ 6827 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610C03E: ret 4 */ 6828 L_3610C0F0: 6829 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 6830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6831 ecx = ecx - 8; /* 0x3610C0F0: sub ecx, 8 */ 6832 _flag_k = FK_CMP; 6833 RECOMP_BACKEDGE(); 6834 goto L_3610C020; /* 0x3610C0F3: jmp 0x3610c020 */ 6835 { RECOMP_REGS_OUT(); return; } /* end of function */ 6836 RECOMP_REGS_OUT(); 6837 } 6838 6839 void sub_3610C100(void) { 6840 int _fpu_cmp = 0; 6841 uint32_t _cf = 0; 6842 int _df = 1; 6843 uint32_t _flag_k = FK_NONE; 6844 uint32_t _flag_a = 0, _flag_b = 0; 6845 uint32_t _itail_tgt = 0; 6846 RECOMP_REGS_LOCALS 6847 RECOMP_ENTER(0x3610C100u); 6848 6849 goto L_3610C100; 6850 L_3610C020: 6851 PUSH32(esp, ebp); /* 0x3610C020: push ebp */ 6852 ebp = esp; /* 0x3610C021: mov ebp, esp */ 6853 PUSH32(esp, esi); /* 0x3610C023: push esi */ 6854 esi = ecx; /* 0x3610C024: mov esi, ecx */ 6855 RECOMP_ICALL(0x3610BAE0u); /* 0x3610C026: call 0x3610bae0 */ /* not lifted */ 6856 RECOMP_FLAGS_IN(); 6857 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610C02B: test byte ptr [ebp + 8], 1 */ 6858 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6859 _cf = 0; 6860 _flag_k = FK_NARROW(FK_TEST, 24); 6861 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C03A; /* 0x3610C02F: je 0x3610c03a */ 6862 L_3610C031: 6863 PUSH32(esp, esi); /* 0x3610C031: push esi */ 6864 RECOMP_ICALL(0x3615FCC4u); /* 0x3610C032: call 0x3615fcc4 */ /* not lifted */ 6865 RECOMP_FLAGS_IN(); 6866 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6868 esp = esp + 4; /* 0x3610C037: add esp, 4 */ 6869 _flag_k = FK_ADD; 6870 L_3610C03A: 6871 eax = esi; /* 0x3610C03A: mov eax, esi */ 6872 esi = POP32_VAL(esp); /* 0x3610C03C: pop esi */ 6873 ebp = POP32_VAL(esp); /* 0x3610C03D: pop ebp */ 6874 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610C03E: ret 4 */ 6875 L_3610C100: 6876 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 6877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6878 ecx = ecx - 0x20u; /* 0x3610C100: sub ecx, 0x20 */ 6879 _flag_k = FK_CMP; 6880 RECOMP_BACKEDGE(); 6881 goto L_3610C020; /* 0x3610C103: jmp 0x3610c020 */ 6882 { RECOMP_REGS_OUT(); return; } /* end of function */ 6883 RECOMP_REGS_OUT(); 6884 } 6885 6886 void sub_3610C110(void) { 6887 int _fpu_cmp = 0; 6888 uint32_t _cf = 0; 6889 int _df = 1; 6890 uint32_t _flag_k = FK_NONE; 6891 uint32_t _flag_a = 0, _flag_b = 0; 6892 uint32_t _itail_tgt = 0; 6893 RECOMP_REGS_LOCALS 6894 RECOMP_ENTER(0x3610C110u); 6895 6896 goto L_3610C110; 6897 L_3610C020: 6898 PUSH32(esp, ebp); /* 0x3610C020: push ebp */ 6899 ebp = esp; /* 0x3610C021: mov ebp, esp */ 6900 PUSH32(esp, esi); /* 0x3610C023: push esi */ 6901 esi = ecx; /* 0x3610C024: mov esi, ecx */ 6902 RECOMP_ICALL(0x3610BAE0u); /* 0x3610C026: call 0x3610bae0 */ /* not lifted */ 6903 RECOMP_FLAGS_IN(); 6904 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610C02B: test byte ptr [ebp + 8], 1 */ 6905 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6906 _cf = 0; 6907 _flag_k = FK_NARROW(FK_TEST, 24); 6908 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C03A; /* 0x3610C02F: je 0x3610c03a */ 6909 L_3610C031: 6910 PUSH32(esp, esi); /* 0x3610C031: push esi */ 6911 RECOMP_ICALL(0x3615FCC4u); /* 0x3610C032: call 0x3615fcc4 */ /* not lifted */ 6912 RECOMP_FLAGS_IN(); 6913 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6914 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6915 esp = esp + 4; /* 0x3610C037: add esp, 4 */ 6916 _flag_k = FK_ADD; 6917 L_3610C03A: 6918 eax = esi; /* 0x3610C03A: mov eax, esi */ 6919 esi = POP32_VAL(esp); /* 0x3610C03C: pop esi */ 6920 ebp = POP32_VAL(esp); /* 0x3610C03D: pop ebp */ 6921 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610C03E: ret 4 */ 6922 L_3610C110: 6923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 6924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6925 ecx = ecx - 0x38u; /* 0x3610C110: sub ecx, 0x38 */ 6926 _flag_k = FK_CMP; 6927 RECOMP_BACKEDGE(); 6928 goto L_3610C020; /* 0x3610C113: jmp 0x3610c020 */ 6929 { RECOMP_REGS_OUT(); return; } /* end of function */ 6930 RECOMP_REGS_OUT(); 6931 } 6932 6933 void sub_3610C120(void) { 6934 int _fpu_cmp = 0; 6935 uint32_t _cf = 0; 6936 int _df = 1; 6937 uint32_t _flag_k = FK_NONE; 6938 uint32_t _flag_a = 0, _flag_b = 0; 6939 uint32_t _itail_tgt = 0; 6940 RECOMP_REGS_LOCALS 6941 RECOMP_ENTER(0x3610C120u); 6942 6943 goto L_3610C120; 6944 L_3610C020: 6945 PUSH32(esp, ebp); /* 0x3610C020: push ebp */ 6946 ebp = esp; /* 0x3610C021: mov ebp, esp */ 6947 PUSH32(esp, esi); /* 0x3610C023: push esi */ 6948 esi = ecx; /* 0x3610C024: mov esi, ecx */ 6949 RECOMP_ICALL(0x3610BAE0u); /* 0x3610C026: call 0x3610bae0 */ /* not lifted */ 6950 RECOMP_FLAGS_IN(); 6951 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610C02B: test byte ptr [ebp + 8], 1 */ 6952 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6953 _cf = 0; 6954 _flag_k = FK_NARROW(FK_TEST, 24); 6955 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C03A; /* 0x3610C02F: je 0x3610c03a */ 6956 L_3610C031: 6957 PUSH32(esp, esi); /* 0x3610C031: push esi */ 6958 RECOMP_ICALL(0x3615FCC4u); /* 0x3610C032: call 0x3615fcc4 */ /* not lifted */ 6959 RECOMP_FLAGS_IN(); 6960 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6961 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6962 esp = esp + 4; /* 0x3610C037: add esp, 4 */ 6963 _flag_k = FK_ADD; 6964 L_3610C03A: 6965 eax = esi; /* 0x3610C03A: mov eax, esi */ 6966 esi = POP32_VAL(esp); /* 0x3610C03C: pop esi */ 6967 ebp = POP32_VAL(esp); /* 0x3610C03D: pop ebp */ 6968 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610C03E: ret 4 */ 6969 L_3610C120: 6970 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 6971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6972 ecx = ecx - 0x50u; /* 0x3610C120: sub ecx, 0x50 */ 6973 _flag_k = FK_CMP; 6974 RECOMP_BACKEDGE(); 6975 goto L_3610C020; /* 0x3610C123: jmp 0x3610c020 */ 6976 { RECOMP_REGS_OUT(); return; } /* end of function */ 6977 RECOMP_REGS_OUT(); 6978 } 6979 6980 void sub_3610C130(void) { 6981 int _fpu_cmp = 0; 6982 uint32_t _cf = 0; 6983 int _df = 1; 6984 uint32_t _flag_k = FK_NONE; 6985 uint32_t _flag_a = 0, _flag_b = 0; 6986 uint32_t _itail_tgt = 0; 6987 RECOMP_REGS_LOCALS 6988 RECOMP_ENTER(0x3610C130u); 6989 6990 goto L_3610C130; 6991 L_3610C020: 6992 PUSH32(esp, ebp); /* 0x3610C020: push ebp */ 6993 ebp = esp; /* 0x3610C021: mov ebp, esp */ 6994 PUSH32(esp, esi); /* 0x3610C023: push esi */ 6995 esi = ecx; /* 0x3610C024: mov esi, ecx */ 6996 RECOMP_ICALL(0x3610BAE0u); /* 0x3610C026: call 0x3610bae0 */ /* not lifted */ 6997 RECOMP_FLAGS_IN(); 6998 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610C02B: test byte ptr [ebp + 8], 1 */ 6999 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7000 _cf = 0; 7001 _flag_k = FK_NARROW(FK_TEST, 24); 7002 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C03A; /* 0x3610C02F: je 0x3610c03a */ 7003 L_3610C031: 7004 PUSH32(esp, esi); /* 0x3610C031: push esi */ 7005 RECOMP_ICALL(0x3615FCC4u); /* 0x3610C032: call 0x3615fcc4 */ /* not lifted */ 7006 RECOMP_FLAGS_IN(); 7007 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7008 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7009 esp = esp + 4; /* 0x3610C037: add esp, 4 */ 7010 _flag_k = FK_ADD; 7011 L_3610C03A: 7012 eax = esi; /* 0x3610C03A: mov eax, esi */ 7013 esi = POP32_VAL(esp); /* 0x3610C03C: pop esi */ 7014 ebp = POP32_VAL(esp); /* 0x3610C03D: pop ebp */ 7015 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610C03E: ret 4 */ 7016 L_3610C130: 7017 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 7018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7019 ecx = ecx - 0x138u; /* 0x3610C130: sub ecx, 0x138 */ 7020 _flag_k = FK_CMP; 7021 RECOMP_BACKEDGE(); 7022 goto L_3610C020; /* 0x3610C136: jmp 0x3610c020 */ 7023 { RECOMP_REGS_OUT(); return; } /* end of function */ 7024 RECOMP_REGS_OUT(); 7025 } 7026 7027 void sub_3610C140(void) { 7028 int _fpu_cmp = 0; 7029 uint32_t _cf = 0; 7030 int _df = 1; 7031 uint32_t _flag_k = FK_NONE; 7032 uint32_t _flag_a = 0, _flag_b = 0; 7033 uint32_t _itail_tgt = 0; 7034 RECOMP_REGS_LOCALS 7035 RECOMP_ENTER(0x3610C140u); 7036 7037 goto L_3610C140; 7038 L_3610C020: 7039 PUSH32(esp, ebp); /* 0x3610C020: push ebp */ 7040 ebp = esp; /* 0x3610C021: mov ebp, esp */ 7041 PUSH32(esp, esi); /* 0x3610C023: push esi */ 7042 esi = ecx; /* 0x3610C024: mov esi, ecx */ 7043 RECOMP_ICALL(0x3610BAE0u); /* 0x3610C026: call 0x3610bae0 */ /* not lifted */ 7044 RECOMP_FLAGS_IN(); 7045 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610C02B: test byte ptr [ebp + 8], 1 */ 7046 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7047 _cf = 0; 7048 _flag_k = FK_NARROW(FK_TEST, 24); 7049 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C03A; /* 0x3610C02F: je 0x3610c03a */ 7050 L_3610C031: 7051 PUSH32(esp, esi); /* 0x3610C031: push esi */ 7052 RECOMP_ICALL(0x3615FCC4u); /* 0x3610C032: call 0x3615fcc4 */ /* not lifted */ 7053 RECOMP_FLAGS_IN(); 7054 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7055 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7056 esp = esp + 4; /* 0x3610C037: add esp, 4 */ 7057 _flag_k = FK_ADD; 7058 L_3610C03A: 7059 eax = esi; /* 0x3610C03A: mov eax, esi */ 7060 esi = POP32_VAL(esp); /* 0x3610C03C: pop esi */ 7061 ebp = POP32_VAL(esp); /* 0x3610C03D: pop ebp */ 7062 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610C03E: ret 4 */ 7063 L_3610C140: 7064 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 7065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7066 ecx = ecx - 0x150u; /* 0x3610C140: sub ecx, 0x150 */ 7067 _flag_k = FK_CMP; 7068 RECOMP_BACKEDGE(); 7069 goto L_3610C020; /* 0x3610C146: jmp 0x3610c020 */ 7070 { RECOMP_REGS_OUT(); return; } /* end of function */ 7071 RECOMP_REGS_OUT(); 7072 } 7073 7074 void sub_3610C150(void) { 7075 int _fpu_cmp = 0; 7076 uint32_t _cf = 0; 7077 int _df = 1; 7078 uint32_t _flag_k = FK_NONE; 7079 uint32_t _flag_a = 0, _flag_b = 0; 7080 uint32_t _itail_tgt = 0; 7081 RECOMP_REGS_LOCALS 7082 RECOMP_ENTER(0x3610C150u); 7083 7084 goto L_3610C150; 7085 L_3610BAB0: 7086 PUSH32(esp, ebp); /* 0x3610BAB0: push ebp */ 7087 ebp = esp; /* 0x3610BAB1: mov ebp, esp */ 7088 PUSH32(esp, esi); /* 0x3610BAB3: push esi */ 7089 esi = ecx; /* 0x3610BAB4: mov esi, ecx */ 7090 RECOMP_ICALL(0x3610B8B0u); /* 0x3610BAB6: call 0x3610b8b0 */ /* not lifted */ 7091 RECOMP_FLAGS_IN(); 7092 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610BABB: test byte ptr [ebp + 8], 1 */ 7093 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7094 _cf = 0; 7095 _flag_k = FK_NARROW(FK_TEST, 24); 7096 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BACA; /* 0x3610BABF: je 0x3610baca */ 7097 L_3610BAC1: 7098 PUSH32(esp, esi); /* 0x3610BAC1: push esi */ 7099 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BAC2: call 0x3615fcc4 */ /* not lifted */ 7100 RECOMP_FLAGS_IN(); 7101 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7102 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7103 esp = esp + 4; /* 0x3610BAC7: add esp, 4 */ 7104 _flag_k = FK_ADD; 7105 L_3610BACA: 7106 eax = esi; /* 0x3610BACA: mov eax, esi */ 7107 esi = POP32_VAL(esp); /* 0x3610BACC: pop esi */ 7108 ebp = POP32_VAL(esp); /* 0x3610BACD: pop ebp */ 7109 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610BACE: ret 4 */ 7110 L_3610C150: 7111 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 7112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7113 ecx = ecx - 8; /* 0x3610C150: sub ecx, 8 */ 7114 _flag_k = FK_CMP; 7115 RECOMP_BACKEDGE(); 7116 goto L_3610BAB0; /* 0x3610C153: jmp 0x3610bab0 */ 7117 { RECOMP_REGS_OUT(); return; } /* end of function */ 7118 RECOMP_REGS_OUT(); 7119 } 7120 7121 void sub_3610C160(void) { 7122 int _fpu_cmp = 0; 7123 uint32_t _cf = 0; 7124 int _df = 1; 7125 uint32_t _flag_k = FK_NONE; 7126 uint32_t _flag_a = 0, _flag_b = 0; 7127 uint32_t _itail_tgt = 0; 7128 RECOMP_REGS_LOCALS 7129 RECOMP_ENTER(0x3610C160u); 7130 7131 goto L_3610C160; 7132 L_3610BAB0: 7133 PUSH32(esp, ebp); /* 0x3610BAB0: push ebp */ 7134 ebp = esp; /* 0x3610BAB1: mov ebp, esp */ 7135 PUSH32(esp, esi); /* 0x3610BAB3: push esi */ 7136 esi = ecx; /* 0x3610BAB4: mov esi, ecx */ 7137 RECOMP_ICALL(0x3610B8B0u); /* 0x3610BAB6: call 0x3610b8b0 */ /* not lifted */ 7138 RECOMP_FLAGS_IN(); 7139 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610BABB: test byte ptr [ebp + 8], 1 */ 7140 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7141 _cf = 0; 7142 _flag_k = FK_NARROW(FK_TEST, 24); 7143 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BACA; /* 0x3610BABF: je 0x3610baca */ 7144 L_3610BAC1: 7145 PUSH32(esp, esi); /* 0x3610BAC1: push esi */ 7146 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BAC2: call 0x3615fcc4 */ /* not lifted */ 7147 RECOMP_FLAGS_IN(); 7148 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7149 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7150 esp = esp + 4; /* 0x3610BAC7: add esp, 4 */ 7151 _flag_k = FK_ADD; 7152 L_3610BACA: 7153 eax = esi; /* 0x3610BACA: mov eax, esi */ 7154 esi = POP32_VAL(esp); /* 0x3610BACC: pop esi */ 7155 ebp = POP32_VAL(esp); /* 0x3610BACD: pop ebp */ 7156 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610BACE: ret 4 */ 7157 L_3610C160: 7158 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 7159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7160 ecx = ecx - 0x20u; /* 0x3610C160: sub ecx, 0x20 */ 7161 _flag_k = FK_CMP; 7162 RECOMP_BACKEDGE(); 7163 goto L_3610BAB0; /* 0x3610C163: jmp 0x3610bab0 */ 7164 { RECOMP_REGS_OUT(); return; } /* end of function */ 7165 RECOMP_REGS_OUT(); 7166 } 7167 7168 void sub_3610C170(void) { 7169 int _fpu_cmp = 0; 7170 uint32_t _cf = 0; 7171 int _df = 1; 7172 uint32_t _flag_k = FK_NONE; 7173 uint32_t _flag_a = 0, _flag_b = 0; 7174 uint32_t _itail_tgt = 0; 7175 RECOMP_REGS_LOCALS 7176 RECOMP_ENTER(0x3610C170u); 7177 7178 goto L_3610C170; 7179 L_3610BAB0: 7180 PUSH32(esp, ebp); /* 0x3610BAB0: push ebp */ 7181 ebp = esp; /* 0x3610BAB1: mov ebp, esp */ 7182 PUSH32(esp, esi); /* 0x3610BAB3: push esi */ 7183 esi = ecx; /* 0x3610BAB4: mov esi, ecx */ 7184 RECOMP_ICALL(0x3610B8B0u); /* 0x3610BAB6: call 0x3610b8b0 */ /* not lifted */ 7185 RECOMP_FLAGS_IN(); 7186 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610BABB: test byte ptr [ebp + 8], 1 */ 7187 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7188 _cf = 0; 7189 _flag_k = FK_NARROW(FK_TEST, 24); 7190 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BACA; /* 0x3610BABF: je 0x3610baca */ 7191 L_3610BAC1: 7192 PUSH32(esp, esi); /* 0x3610BAC1: push esi */ 7193 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BAC2: call 0x3615fcc4 */ /* not lifted */ 7194 RECOMP_FLAGS_IN(); 7195 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7197 esp = esp + 4; /* 0x3610BAC7: add esp, 4 */ 7198 _flag_k = FK_ADD; 7199 L_3610BACA: 7200 eax = esi; /* 0x3610BACA: mov eax, esi */ 7201 esi = POP32_VAL(esp); /* 0x3610BACC: pop esi */ 7202 ebp = POP32_VAL(esp); /* 0x3610BACD: pop ebp */ 7203 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610BACE: ret 4 */ 7204 L_3610C170: 7205 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 7206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7207 ecx = ecx - 0x38u; /* 0x3610C170: sub ecx, 0x38 */ 7208 _flag_k = FK_CMP; 7209 RECOMP_BACKEDGE(); 7210 goto L_3610BAB0; /* 0x3610C173: jmp 0x3610bab0 */ 7211 { RECOMP_REGS_OUT(); return; } /* end of function */ 7212 RECOMP_REGS_OUT(); 7213 } 7214 7215 void sub_3610C180(void) { 7216 int _fpu_cmp = 0; 7217 uint32_t _cf = 0; 7218 int _df = 1; 7219 uint32_t _flag_k = FK_NONE; 7220 uint32_t _flag_a = 0, _flag_b = 0; 7221 uint32_t _itail_tgt = 0; 7222 RECOMP_REGS_LOCALS 7223 RECOMP_ENTER(0x3610C180u); 7224 7225 goto L_3610C180; 7226 L_3610BAB0: 7227 PUSH32(esp, ebp); /* 0x3610BAB0: push ebp */ 7228 ebp = esp; /* 0x3610BAB1: mov ebp, esp */ 7229 PUSH32(esp, esi); /* 0x3610BAB3: push esi */ 7230 esi = ecx; /* 0x3610BAB4: mov esi, ecx */ 7231 RECOMP_ICALL(0x3610B8B0u); /* 0x3610BAB6: call 0x3610b8b0 */ /* not lifted */ 7232 RECOMP_FLAGS_IN(); 7233 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610BABB: test byte ptr [ebp + 8], 1 */ 7234 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7235 _cf = 0; 7236 _flag_k = FK_NARROW(FK_TEST, 24); 7237 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BACA; /* 0x3610BABF: je 0x3610baca */ 7238 L_3610BAC1: 7239 PUSH32(esp, esi); /* 0x3610BAC1: push esi */ 7240 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BAC2: call 0x3615fcc4 */ /* not lifted */ 7241 RECOMP_FLAGS_IN(); 7242 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7243 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7244 esp = esp + 4; /* 0x3610BAC7: add esp, 4 */ 7245 _flag_k = FK_ADD; 7246 L_3610BACA: 7247 eax = esi; /* 0x3610BACA: mov eax, esi */ 7248 esi = POP32_VAL(esp); /* 0x3610BACC: pop esi */ 7249 ebp = POP32_VAL(esp); /* 0x3610BACD: pop ebp */ 7250 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610BACE: ret 4 */ 7251 L_3610C180: 7252 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 7253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7254 ecx = ecx - 0x50u; /* 0x3610C180: sub ecx, 0x50 */ 7255 _flag_k = FK_CMP; 7256 RECOMP_BACKEDGE(); 7257 goto L_3610BAB0; /* 0x3610C183: jmp 0x3610bab0 */ 7258 { RECOMP_REGS_OUT(); return; } /* end of function */ 7259 RECOMP_REGS_OUT(); 7260 } 7261 7262 void sub_3610C190(void) { 7263 int _fpu_cmp = 0; 7264 uint32_t _cf = 0; 7265 int _df = 1; 7266 uint32_t _flag_k = FK_NONE; 7267 uint32_t _flag_a = 0, _flag_b = 0; 7268 uint32_t _itail_tgt = 0; 7269 RECOMP_REGS_LOCALS 7270 RECOMP_ENTER(0x3610C190u); 7271 7272 goto L_3610C190; 7273 L_3610BAB0: 7274 PUSH32(esp, ebp); /* 0x3610BAB0: push ebp */ 7275 ebp = esp; /* 0x3610BAB1: mov ebp, esp */ 7276 PUSH32(esp, esi); /* 0x3610BAB3: push esi */ 7277 esi = ecx; /* 0x3610BAB4: mov esi, ecx */ 7278 RECOMP_ICALL(0x3610B8B0u); /* 0x3610BAB6: call 0x3610b8b0 */ /* not lifted */ 7279 RECOMP_FLAGS_IN(); 7280 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610BABB: test byte ptr [ebp + 8], 1 */ 7281 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7282 _cf = 0; 7283 _flag_k = FK_NARROW(FK_TEST, 24); 7284 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BACA; /* 0x3610BABF: je 0x3610baca */ 7285 L_3610BAC1: 7286 PUSH32(esp, esi); /* 0x3610BAC1: push esi */ 7287 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BAC2: call 0x3615fcc4 */ /* not lifted */ 7288 RECOMP_FLAGS_IN(); 7289 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7291 esp = esp + 4; /* 0x3610BAC7: add esp, 4 */ 7292 _flag_k = FK_ADD; 7293 L_3610BACA: 7294 eax = esi; /* 0x3610BACA: mov eax, esi */ 7295 esi = POP32_VAL(esp); /* 0x3610BACC: pop esi */ 7296 ebp = POP32_VAL(esp); /* 0x3610BACD: pop ebp */ 7297 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610BACE: ret 4 */ 7298 L_3610C190: 7299 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 7300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7301 ecx = ecx - 0x138u; /* 0x3610C190: sub ecx, 0x138 */ 7302 _flag_k = FK_CMP; 7303 RECOMP_BACKEDGE(); 7304 goto L_3610BAB0; /* 0x3610C196: jmp 0x3610bab0 */ 7305 { RECOMP_REGS_OUT(); return; } /* end of function */ 7306 RECOMP_REGS_OUT(); 7307 } 7308 7309 void sub_3610C1A0(void) { 7310 int _fpu_cmp = 0; 7311 uint32_t _cf = 0; 7312 int _df = 1; 7313 uint32_t _flag_k = FK_NONE; 7314 uint32_t _flag_a = 0, _flag_b = 0; 7315 uint32_t _itail_tgt = 0; 7316 RECOMP_REGS_LOCALS 7317 RECOMP_ENTER(0x3610C1A0u); 7318 7319 goto L_3610C1A0; 7320 L_3610BAB0: 7321 PUSH32(esp, ebp); /* 0x3610BAB0: push ebp */ 7322 ebp = esp; /* 0x3610BAB1: mov ebp, esp */ 7323 PUSH32(esp, esi); /* 0x3610BAB3: push esi */ 7324 esi = ecx; /* 0x3610BAB4: mov esi, ecx */ 7325 RECOMP_ICALL(0x3610B8B0u); /* 0x3610BAB6: call 0x3610b8b0 */ /* not lifted */ 7326 RECOMP_FLAGS_IN(); 7327 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610BABB: test byte ptr [ebp + 8], 1 */ 7328 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7329 _cf = 0; 7330 _flag_k = FK_NARROW(FK_TEST, 24); 7331 if (TEST_Z(_flag_a, _flag_b)) goto L_3610BACA; /* 0x3610BABF: je 0x3610baca */ 7332 L_3610BAC1: 7333 PUSH32(esp, esi); /* 0x3610BAC1: push esi */ 7334 RECOMP_ICALL(0x3615FCC4u); /* 0x3610BAC2: call 0x3615fcc4 */ /* not lifted */ 7335 RECOMP_FLAGS_IN(); 7336 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7337 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7338 esp = esp + 4; /* 0x3610BAC7: add esp, 4 */ 7339 _flag_k = FK_ADD; 7340 L_3610BACA: 7341 eax = esi; /* 0x3610BACA: mov eax, esi */ 7342 esi = POP32_VAL(esp); /* 0x3610BACC: pop esi */ 7343 ebp = POP32_VAL(esp); /* 0x3610BACD: pop ebp */ 7344 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610BACE: ret 4 */ 7345 L_3610C1A0: 7346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 7347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7348 ecx = ecx - 0x150u; /* 0x3610C1A0: sub ecx, 0x150 */ 7349 _flag_k = FK_CMP; 7350 RECOMP_BACKEDGE(); 7351 goto L_3610BAB0; /* 0x3610C1A6: jmp 0x3610bab0 */ 7352 { RECOMP_REGS_OUT(); return; } /* end of function */ 7353 RECOMP_REGS_OUT(); 7354 } 7355 7356 void sub_3610C1B0(void) { 7357 int _fpu_cmp = 0; 7358 uint32_t _cf = 0; 7359 int _df = 1; 7360 uint32_t _flag_k = FK_NONE; 7361 uint32_t _flag_a = 0, _flag_b = 0; 7362 uint32_t _itail_tgt = 0; 7363 RECOMP_REGS_LOCALS 7364 RECOMP_ENTER(0x3610C1B0u); 7365 7366 L_3610C1B0: 7367 PUSH32(esp, ebp); /* 0x3610C1B0: push ebp */ 7368 ebp = esp; /* 0x3610C1B1: mov ebp, esp */ 7369 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610C1B3: push -1 */ 7370 PUSH32(esp, 0x3616A5E8u); /* 0x3610C1B5: push 0x3616a5e8 */ 7371 eax = MEM32(FS_BASE + (0)); /* 0x3610C1BA: mov eax, dword ptr fs:[0] */ 7372 PUSH32(esp, eax); /* 0x3610C1C0: push eax */ 7373 MEM32(FS_BASE + (0)) = esp; /* 0x3610C1C1: mov dword ptr fs:[0], esp */ 7374 PUSH32(esp, ecx); /* 0x3610C1C8: push ecx */ 7375 eax = MEM32(ebp + 0x8); /* 0x3610C1C9: mov eax, dword ptr [ebp + 8] */ 7376 PUSH32(esp, esi); /* 0x3610C1CC: push esi */ 7377 esi = ecx; /* 0x3610C1CD: mov esi, ecx */ 7378 PUSH32(esp, eax); /* 0x3610C1CF: push eax */ 7379 MEM32(ebp + (-0x10)) = esi; /* 0x3610C1D0: mov dword ptr [ebp - 0x10], esi */ 7380 RECOMP_ICALL(0x360FC270u); /* 0x3610C1D3: call 0x360fc270 */ /* not lifted */ 7381 RECOMP_FLAGS_IN(); 7382 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7383 eax = 0; /* 0x3610C1D8: xor eax, eax */ 7384 _cf = 0; 7385 _flag_k = FK_TEST; 7386 MEM32(esi + 0x50) = eax; /* 0x3610C1DA: mov dword ptr [esi + 0x50], eax */ 7387 MEM32(esi + 0x54) = eax; /* 0x3610C1DD: mov dword ptr [esi + 0x54], eax */ 7388 MEM32(esi + 0x58) = eax; /* 0x3610C1E0: mov dword ptr [esi + 0x58], eax */ 7389 ecx = esi; /* 0x3610C1E3: mov ecx, esi */ 7390 MEM32(ebp + (-0x4)) = eax; /* 0x3610C1E5: mov dword ptr [ebp - 4], eax */ 7391 MEM32(esi) = 0x361765DCu; /* 0x3610C1E8: mov dword ptr [esi], 0x361765dc */ 7392 RECOMP_ICALL(0x3610C3C0u); /* 0x3610C1EE: call 0x3610c3c0 */ /* not lifted */ 7393 RECOMP_FLAGS_IN(); 7394 ecx = MEM32(ebp + 0xC); /* 0x3610C1F3: mov ecx, dword ptr [ebp + 0xc] */ 7395 edx = MEM32(esi + 0x20); /* 0x3610C1F6: mov edx, dword ptr [esi + 0x20] */ 7396 PUSH32(esp, ecx); /* 0x3610C1F9: push ecx */ 7397 PUSH32(esp, edx); /* 0x3610C1FA: push edx */ 7398 ecx = esi; /* 0x3610C1FB: mov ecx, esi */ 7399 RECOMP_ICALL(0x3610C4C0u); /* 0x3610C1FD: call 0x3610c4c0 */ /* not lifted */ 7400 RECOMP_FLAGS_IN(); 7401 PUSH32(esp, eax); /* 0x3610C202: push eax */ 7402 eax = MEM32(esi + 0x5C); /* 0x3610C203: mov eax, dword ptr [esi + 0x5c] */ 7403 PUSH32(esp, eax); /* 0x3610C206: push eax */ 7404 ecx = esi; /* 0x3610C207: mov ecx, esi */ 7405 RECOMP_ICALL(0x360FC530u); /* 0x3610C209: call 0x360fc530 */ /* not lifted */ 7406 RECOMP_FLAGS_IN(); 7407 /* test LO8(eax), LO8(eax) */ /* 0x3610C20E: test al, al */ 7408 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7409 _cf = 0; 7410 _flag_k = FK_NARROW(FK_TEST, 24); 7411 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610C229; /* 0x3610C210: jne 0x3610c229 */ 7412 L_3610C212: 7413 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x3610C212: mov byte ptr [esi + 0x14], 1 */ 7414 eax = esi; /* 0x3610C216: mov eax, esi */ 7415 esi = POP32_VAL(esp); /* 0x3610C218: pop esi */ 7416 ecx = MEM32(ebp + (-0xC)); /* 0x3610C219: mov ecx, dword ptr [ebp - 0xc] */ 7417 MEM32(FS_BASE + (0)) = ecx; /* 0x3610C21C: mov dword ptr fs:[0], ecx */ 7418 esp = ebp; /* 0x3610C223: mov esp, ebp */ 7419 ebp = POP32_VAL(esp); /* 0x3610C225: pop ebp */ 7420 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3610C226: ret 8 */ 7421 L_3610C229: 7422 ecx = esi; /* 0x3610C229: mov ecx, esi */ 7423 RECOMP_ICALL(0x3610C7E0u); /* 0x3610C22B: call 0x3610c7e0 */ /* not lifted */ 7424 RECOMP_FLAGS_IN(); 7425 ecx = MEM32(ebp + (-0xC)); /* 0x3610C230: mov ecx, dword ptr [ebp - 0xc] */ 7426 eax = esi; /* 0x3610C233: mov eax, esi */ 7427 esi = POP32_VAL(esp); /* 0x3610C235: pop esi */ 7428 MEM32(FS_BASE + (0)) = ecx; /* 0x3610C236: mov dword ptr fs:[0], ecx */ 7429 esp = ebp; /* 0x3610C23D: mov esp, ebp */ 7430 ebp = POP32_VAL(esp); /* 0x3610C23F: pop ebp */ 7431 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3610C240: ret 8 */ 7432 RECOMP_REGS_OUT(); 7433 } 7434 7435 void sub_3610C250(void) { 7436 int _fpu_cmp = 0; 7437 uint32_t _cf = 0; 7438 int _df = 1; 7439 uint32_t _flag_k = FK_NONE; 7440 uint32_t _flag_a = 0, _flag_b = 0; 7441 uint32_t _itail_tgt = 0; 7442 RECOMP_REGS_LOCALS 7443 RECOMP_ENTER(0x3610C250u); 7444 7445 L_3610C250: 7446 PUSH32(esp, ebp); /* 0x3610C250: push ebp */ 7447 ebp = esp; /* 0x3610C251: mov ebp, esp */ 7448 PUSH32(esp, esi); /* 0x3610C253: push esi */ 7449 esi = ecx; /* 0x3610C254: mov esi, ecx */ 7450 RECOMP_ICALL(0x3610C430u); /* 0x3610C256: call 0x3610c430 */ /* not lifted */ 7451 RECOMP_FLAGS_IN(); 7452 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610C25B: test byte ptr [ebp + 8], 1 */ 7453 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7454 _cf = 0; 7455 _flag_k = FK_NARROW(FK_TEST, 24); 7456 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C26A; /* 0x3610C25F: je 0x3610c26a */ 7457 L_3610C261: 7458 PUSH32(esp, esi); /* 0x3610C261: push esi */ 7459 RECOMP_ICALL(0x3615FCC4u); /* 0x3610C262: call 0x3615fcc4 */ /* not lifted */ 7460 RECOMP_FLAGS_IN(); 7461 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7462 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7463 esp = esp + 4; /* 0x3610C267: add esp, 4 */ 7464 _flag_k = FK_ADD; 7465 L_3610C26A: 7466 eax = esi; /* 0x3610C26A: mov eax, esi */ 7467 esi = POP32_VAL(esp); /* 0x3610C26C: pop esi */ 7468 ebp = POP32_VAL(esp); /* 0x3610C26D: pop ebp */ 7469 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610C26E: ret 4 */ 7470 RECOMP_REGS_OUT(); 7471 } 7472 7473 void sub_3610C26E(void) { 7474 int _fpu_cmp = 0; 7475 uint32_t _cf = 0; 7476 int _df = 1; 7477 uint32_t _flag_k = FK_NONE; 7478 uint32_t _flag_a = 0, _flag_b = 0; 7479 uint32_t _itail_tgt = 0; 7480 RECOMP_REGS_LOCALS 7481 RECOMP_ENTER(0x3610C26Eu); 7482 7483 L_3610C26E: 7484 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610C26E: ret 4 */ 7485 RECOMP_REGS_OUT(); 7486 } 7487 7488 void sub_3610C280(void) { 7489 int _fpu_cmp = 0; 7490 uint32_t _cf = 0; 7491 int _df = 1; 7492 uint32_t _flag_k = FK_NONE; 7493 uint32_t _flag_a = 0, _flag_b = 0; 7494 uint32_t _itail_tgt = 0; 7495 RECOMP_REGS_LOCALS 7496 RECOMP_ENTER(0x3610C280u); 7497 7498 L_3610C280: 7499 PUSH32(esp, ebp); /* 0x3610C280: push ebp */ 7500 ebp = esp; /* 0x3610C281: mov ebp, esp */ 7501 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610C283: push -1 */ 7502 PUSH32(esp, 0x3616A608u); /* 0x3610C285: push 0x3616a608 */ 7503 eax = MEM32(FS_BASE + (0)); /* 0x3610C28A: mov eax, dword ptr fs:[0] */ 7504 PUSH32(esp, eax); /* 0x3610C290: push eax */ 7505 MEM32(FS_BASE + (0)) = esp; /* 0x3610C291: mov dword ptr fs:[0], esp */ 7506 PUSH32(esp, ecx); /* 0x3610C298: push ecx */ 7507 eax = MEM32(ebp + 0x8); /* 0x3610C299: mov eax, dword ptr [ebp + 8] */ 7508 PUSH32(esp, esi); /* 0x3610C29C: push esi */ 7509 esi = ecx; /* 0x3610C29D: mov esi, ecx */ 7510 PUSH32(esp, eax); /* 0x3610C29F: push eax */ 7511 MEM32(ebp + (-0x10)) = esi; /* 0x3610C2A0: mov dword ptr [ebp - 0x10], esi */ 7512 RECOMP_ICALL(0x360FC270u); /* 0x3610C2A3: call 0x360fc270 */ /* not lifted */ 7513 RECOMP_FLAGS_IN(); 7514 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7515 eax = 0; /* 0x3610C2A8: xor eax, eax */ 7516 _cf = 0; 7517 _flag_k = FK_TEST; 7518 MEM32(esi + 0x50) = eax; /* 0x3610C2AA: mov dword ptr [esi + 0x50], eax */ 7519 MEM32(esi + 0x54) = eax; /* 0x3610C2AD: mov dword ptr [esi + 0x54], eax */ 7520 MEM32(esi + 0x58) = eax; /* 0x3610C2B0: mov dword ptr [esi + 0x58], eax */ 7521 ecx = esi; /* 0x3610C2B3: mov ecx, esi */ 7522 MEM32(ebp + (-0x4)) = eax; /* 0x3610C2B5: mov dword ptr [ebp - 4], eax */ 7523 MEM32(esi) = 0x361765DCu; /* 0x3610C2B8: mov dword ptr [esi], 0x361765dc */ 7524 RECOMP_ICALL(0x3610C3C0u); /* 0x3610C2BE: call 0x3610c3c0 */ /* not lifted */ 7525 RECOMP_FLAGS_IN(); 7526 ecx = MEM32(ebp + 0xC); /* 0x3610C2C3: mov ecx, dword ptr [ebp + 0xc] */ 7527 edx = MEM32(esi + 0x20); /* 0x3610C2C6: mov edx, dword ptr [esi + 0x20] */ 7528 PUSH32(esp, ecx); /* 0x3610C2C9: push ecx */ 7529 PUSH32(esp, edx); /* 0x3610C2CA: push edx */ 7530 ecx = esi; /* 0x3610C2CB: mov ecx, esi */ 7531 RECOMP_ICALL(0x3610C4C0u); /* 0x3610C2CD: call 0x3610c4c0 */ /* not lifted */ 7532 RECOMP_FLAGS_IN(); 7533 PUSH32(esp, eax); /* 0x3610C2D2: push eax */ 7534 eax = MEM32(esi + 0x5C); /* 0x3610C2D3: mov eax, dword ptr [esi + 0x5c] */ 7535 PUSH32(esp, eax); /* 0x3610C2D6: push eax */ 7536 ecx = esi; /* 0x3610C2D7: mov ecx, esi */ 7537 RECOMP_ICALL(0x360FC5D0u); /* 0x3610C2D9: call 0x360fc5d0 */ /* not lifted */ 7538 RECOMP_FLAGS_IN(); 7539 /* test LO8(eax), LO8(eax) */ /* 0x3610C2DE: test al, al */ 7540 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7541 _cf = 0; 7542 _flag_k = FK_NARROW(FK_TEST, 24); 7543 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610C2F9; /* 0x3610C2E0: jne 0x3610c2f9 */ 7544 L_3610C2E2: 7545 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x3610C2E2: mov byte ptr [esi + 0x14], 1 */ 7546 eax = esi; /* 0x3610C2E6: mov eax, esi */ 7547 esi = POP32_VAL(esp); /* 0x3610C2E8: pop esi */ 7548 ecx = MEM32(ebp + (-0xC)); /* 0x3610C2E9: mov ecx, dword ptr [ebp - 0xc] */ 7549 MEM32(FS_BASE + (0)) = ecx; /* 0x3610C2EC: mov dword ptr fs:[0], ecx */ 7550 esp = ebp; /* 0x3610C2F3: mov esp, ebp */ 7551 ebp = POP32_VAL(esp); /* 0x3610C2F5: pop ebp */ 7552 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3610C2F6: ret 8 */ 7553 L_3610C2F9: 7554 ecx = esi; /* 0x3610C2F9: mov ecx, esi */ 7555 RECOMP_ICALL(0x3610C7E0u); /* 0x3610C2FB: call 0x3610c7e0 */ /* not lifted */ 7556 RECOMP_FLAGS_IN(); 7557 ecx = MEM32(ebp + (-0xC)); /* 0x3610C300: mov ecx, dword ptr [ebp - 0xc] */ 7558 eax = esi; /* 0x3610C303: mov eax, esi */ 7559 esi = POP32_VAL(esp); /* 0x3610C305: pop esi */ 7560 MEM32(FS_BASE + (0)) = ecx; /* 0x3610C306: mov dword ptr fs:[0], ecx */ 7561 esp = ebp; /* 0x3610C30D: mov esp, ebp */ 7562 ebp = POP32_VAL(esp); /* 0x3610C30F: pop ebp */ 7563 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3610C310: ret 8 */ 7564 RECOMP_REGS_OUT(); 7565 } 7566 7567 void sub_3610C2F6(void) { 7568 int _fpu_cmp = 0; 7569 uint32_t _cf = 0; 7570 int _df = 1; 7571 uint32_t _flag_k = FK_NONE; 7572 uint32_t _flag_a = 0, _flag_b = 0; 7573 uint32_t _itail_tgt = 0; 7574 RECOMP_REGS_LOCALS 7575 RECOMP_ENTER(0x3610C2F6u); 7576 7577 L_3610C2F6: 7578 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3610C2F6: ret 8 */ 7579 RECOMP_REGS_OUT(); 7580 } 7581 7582 void sub_3610C320(void) { 7583 int _fpu_cmp = 0; 7584 uint32_t _cf = 0; 7585 int _df = 1; 7586 uint32_t _flag_k = FK_NONE; 7587 uint32_t _flag_a = 0, _flag_b = 0; 7588 uint32_t _itail_tgt = 0; 7589 RECOMP_REGS_LOCALS 7590 RECOMP_ENTER(0x3610C320u); 7591 7592 L_3610C320: 7593 PUSH32(esp, ebp); /* 0x3610C320: push ebp */ 7594 ebp = esp; /* 0x3610C321: mov ebp, esp */ 7595 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610C323: push -1 */ 7596 PUSH32(esp, 0x3616A628u); /* 0x3610C325: push 0x3616a628 */ 7597 eax = MEM32(FS_BASE + (0)); /* 0x3610C32A: mov eax, dword ptr fs:[0] */ 7598 PUSH32(esp, eax); /* 0x3610C330: push eax */ 7599 MEM32(FS_BASE + (0)) = esp; /* 0x3610C331: mov dword ptr fs:[0], esp */ 7600 PUSH32(esp, ecx); /* 0x3610C338: push ecx */ 7601 eax = MEM32(ebp + 0x8); /* 0x3610C339: mov eax, dword ptr [ebp + 8] */ 7602 PUSH32(esp, esi); /* 0x3610C33C: push esi */ 7603 esi = ecx; /* 0x3610C33D: mov esi, ecx */ 7604 PUSH32(esp, eax); /* 0x3610C33F: push eax */ 7605 MEM32(ebp + (-0x10)) = esi; /* 0x3610C340: mov dword ptr [ebp - 0x10], esi */ 7606 RECOMP_ICALL(0x360FC270u); /* 0x3610C343: call 0x360fc270 */ /* not lifted */ 7607 RECOMP_FLAGS_IN(); 7608 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7609 eax = 0; /* 0x3610C348: xor eax, eax */ 7610 _cf = 0; 7611 _flag_k = FK_TEST; 7612 MEM32(esi + 0x50) = eax; /* 0x3610C34A: mov dword ptr [esi + 0x50], eax */ 7613 MEM32(esi + 0x54) = eax; /* 0x3610C34D: mov dword ptr [esi + 0x54], eax */ 7614 MEM32(esi + 0x58) = eax; /* 0x3610C350: mov dword ptr [esi + 0x58], eax */ 7615 ecx = esi; /* 0x3610C353: mov ecx, esi */ 7616 MEM32(ebp + (-0x4)) = eax; /* 0x3610C355: mov dword ptr [ebp - 4], eax */ 7617 MEM32(esi) = 0x361765DCu; /* 0x3610C358: mov dword ptr [esi], 0x361765dc */ 7618 RECOMP_ICALL(0x3610C3C0u); /* 0x3610C35E: call 0x3610c3c0 */ /* not lifted */ 7619 RECOMP_FLAGS_IN(); 7620 ecx = MEM32(ebp + 0x10); /* 0x3610C363: mov ecx, dword ptr [ebp + 0x10] */ 7621 edx = MEM32(ebp + 0xC); /* 0x3610C366: mov edx, dword ptr [ebp + 0xc] */ 7622 eax = MEM32(esi + 0x20); /* 0x3610C369: mov eax, dword ptr [esi + 0x20] */ 7623 PUSH32(esp, ecx); /* 0x3610C36C: push ecx */ 7624 PUSH32(esp, edx); /* 0x3610C36D: push edx */ 7625 PUSH32(esp, eax); /* 0x3610C36E: push eax */ 7626 ecx = esi; /* 0x3610C36F: mov ecx, esi */ 7627 RECOMP_ICALL(0x3610C4C0u); /* 0x3610C371: call 0x3610c4c0 */ /* not lifted */ 7628 RECOMP_FLAGS_IN(); 7629 ecx = MEM32(esi + 0x5C); /* 0x3610C376: mov ecx, dword ptr [esi + 0x5c] */ 7630 PUSH32(esp, eax); /* 0x3610C379: push eax */ 7631 PUSH32(esp, ecx); /* 0x3610C37A: push ecx */ 7632 ecx = esi; /* 0x3610C37B: mov ecx, esi */ 7633 RECOMP_ICALL(0x360FC670u); /* 0x3610C37D: call 0x360fc670 */ /* not lifted */ 7634 RECOMP_FLAGS_IN(); 7635 /* test LO8(eax), LO8(eax) */ /* 0x3610C382: test al, al */ 7636 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7637 _cf = 0; 7638 _flag_k = FK_NARROW(FK_TEST, 24); 7639 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610C39D; /* 0x3610C384: jne 0x3610c39d */ 7640 L_3610C386: 7641 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x3610C386: mov byte ptr [esi + 0x14], 1 */ 7642 eax = esi; /* 0x3610C38A: mov eax, esi */ 7643 esi = POP32_VAL(esp); /* 0x3610C38C: pop esi */ 7644 ecx = MEM32(ebp + (-0xC)); /* 0x3610C38D: mov ecx, dword ptr [ebp - 0xc] */ 7645 MEM32(FS_BASE + (0)) = ecx; /* 0x3610C390: mov dword ptr fs:[0], ecx */ 7646 esp = ebp; /* 0x3610C397: mov esp, ebp */ 7647 ebp = POP32_VAL(esp); /* 0x3610C399: pop ebp */ 7648 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3610C39A: ret 0xc */ 7649 L_3610C39D: 7650 ecx = esi; /* 0x3610C39D: mov ecx, esi */ 7651 RECOMP_ICALL(0x3610C7E0u); /* 0x3610C39F: call 0x3610c7e0 */ /* not lifted */ 7652 RECOMP_FLAGS_IN(); 7653 ecx = MEM32(ebp + (-0xC)); /* 0x3610C3A4: mov ecx, dword ptr [ebp - 0xc] */ 7654 eax = esi; /* 0x3610C3A7: mov eax, esi */ 7655 esi = POP32_VAL(esp); /* 0x3610C3A9: pop esi */ 7656 MEM32(FS_BASE + (0)) = ecx; /* 0x3610C3AA: mov dword ptr fs:[0], ecx */ 7657 esp = ebp; /* 0x3610C3B1: mov esp, ebp */ 7658 ebp = POP32_VAL(esp); /* 0x3610C3B3: pop ebp */ 7659 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3610C3B4: ret 0xc */ 7660 RECOMP_REGS_OUT(); 7661 } 7662 7663 void sub_3610C3C0(void) { 7664 int _fpu_cmp = 0; 7665 uint32_t _cf = 0; 7666 int _df = 1; 7667 uint32_t _flag_k = FK_NONE; 7668 uint32_t _flag_a = 0, _flag_b = 0; 7669 uint32_t _itail_tgt = 0; 7670 RECOMP_REGS_LOCALS 7671 RECOMP_ENTER(0x3610C3C0u); 7672 7673 L_3610C3C0: 7674 PUSH32(esp, ebp); /* 0x3610C3C0: push ebp */ 7675 ebp = esp; /* 0x3610C3C1: mov ebp, esp */ 7676 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610C3C3: push -1 */ 7677 PUSH32(esp, 0x3616A64Bu); /* 0x3610C3C5: push 0x3616a64b */ 7678 eax = MEM32(FS_BASE + (0)); /* 0x3610C3CA: mov eax, dword ptr fs:[0] */ 7679 PUSH32(esp, eax); /* 0x3610C3D0: push eax */ 7680 MEM32(FS_BASE + (0)) = esp; /* 0x3610C3D1: mov dword ptr fs:[0], esp */ 7681 PUSH32(esp, ecx); /* 0x3610C3D8: push ecx */ 7682 PUSH32(esp, esi); /* 0x3610C3D9: push esi */ 7683 PUSH32(esp, 0x10Cu); /* 0x3610C3DA: push 0x10c */ 7684 esi = ecx; /* 0x3610C3DF: mov esi, ecx */ 7685 RECOMP_ICALL(0x3615FD6Au); /* 0x3610C3E1: call 0x3615fd6a */ /* not lifted */ 7686 RECOMP_FLAGS_IN(); 7687 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7689 esp = esp + 4; /* 0x3610C3E6: add esp, 4 */ 7690 _flag_k = FK_ADD; 7691 MEM32(ebp + (-0x10)) = eax; /* 0x3610C3E9: mov dword ptr [ebp - 0x10], eax */ 7692 /* test eax, eax */ /* 0x3610C3EC: test eax, eax */ 7693 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7694 _cf = 0; 7695 _flag_k = FK_TEST; 7696 MEM32(ebp + (-0x4)) = 0; /* 0x3610C3EE: mov dword ptr [ebp - 4], 0 */ 7697 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C400; /* 0x3610C3F5: je 0x3610c400 */ 7698 L_3610C3F7: 7699 ecx = eax; /* 0x3610C3F7: mov ecx, eax */ 7700 RECOMP_ICALL(0x36132920u); /* 0x3610C3F9: call 0x36132920 */ /* not lifted */ 7701 RECOMP_FLAGS_IN(); 7702 goto L_3610C402; /* 0x3610C3FE: jmp 0x3610c402 */ 7703 L_3610C400: 7704 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7705 eax = 0; /* 0x3610C400: xor eax, eax */ 7706 _cf = 0; 7707 _flag_k = FK_TEST; 7708 L_3610C402: 7709 ecx = esi; /* 0x3610C402: mov ecx, esi */ 7710 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610C404: mov dword ptr [ebp - 4], 0xffffffff */ 7711 MEM32(esi + 0x5C) = eax; /* 0x3610C40B: mov dword ptr [esi + 0x5c], eax */ 7712 MEM32(esi + 0x60) = 0; /* 0x3610C40E: mov dword ptr [esi + 0x60], 0 */ 7713 RECOMP_ICALL(0x3610CB00u); /* 0x3610C415: call 0x3610cb00 */ /* not lifted */ 7714 RECOMP_FLAGS_IN(); 7715 ecx = MEM32(ebp + (-0xC)); /* 0x3610C41A: mov ecx, dword ptr [ebp - 0xc] */ 7716 esi = POP32_VAL(esp); /* 0x3610C41D: pop esi */ 7717 MEM32(FS_BASE + (0)) = ecx; /* 0x3610C41E: mov dword ptr fs:[0], ecx */ 7718 esp = ebp; /* 0x3610C425: mov esp, ebp */ 7719 ebp = POP32_VAL(esp); /* 0x3610C427: pop ebp */ 7720 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610C428: ret */ 7721 RECOMP_REGS_OUT(); 7722 } 7723 7724 void sub_3610C430(void) { 7725 int _fpu_cmp = 0; 7726 uint32_t _cf = 0; 7727 int _df = 1; 7728 uint32_t _flag_k = FK_NONE; 7729 uint32_t _flag_a = 0, _flag_b = 0; 7730 uint32_t _itail_tgt = 0; 7731 RECOMP_REGS_LOCALS 7732 RECOMP_ENTER(0x3610C430u); 7733 7734 L_3610C430: 7735 PUSH32(esp, ebp); /* 0x3610C430: push ebp */ 7736 ebp = esp; /* 0x3610C431: mov ebp, esp */ 7737 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610C433: push -1 */ 7738 PUSH32(esp, 0x3616A668u); /* 0x3610C435: push 0x3616a668 */ 7739 eax = MEM32(FS_BASE + (0)); /* 0x3610C43A: mov eax, dword ptr fs:[0] */ 7740 PUSH32(esp, eax); /* 0x3610C440: push eax */ 7741 MEM32(FS_BASE + (0)) = esp; /* 0x3610C441: mov dword ptr fs:[0], esp */ 7742 PUSH32(esp, ecx); /* 0x3610C448: push ecx */ 7743 PUSH32(esp, ebx); /* 0x3610C449: push ebx */ 7744 PUSH32(esp, esi); /* 0x3610C44A: push esi */ 7745 esi = ecx; /* 0x3610C44B: mov esi, ecx */ 7746 PUSH32(esp, edi); /* 0x3610C44D: push edi */ 7747 MEM32(ebp + (-0x10)) = esi; /* 0x3610C44E: mov dword ptr [ebp - 0x10], esi */ 7748 MEM32(esi) = 0x361765DCu; /* 0x3610C451: mov dword ptr [esi], 0x361765dc */ 7749 edi = MEM32(esi + 0x5C); /* 0x3610C457: mov edi, dword ptr [esi + 0x5c] */ 7750 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7751 ebx = 0; /* 0x3610C45A: xor ebx, ebx */ 7752 _cf = 0; 7753 _flag_k = FK_TEST; 7754 /* cmp edi, ebx */ /* 0x3610C45C: cmp edi, ebx */ 7755 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 7756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7757 _flag_k = FK_CMP; 7758 MEM32(ebp + (-0x4)) = ebx; /* 0x3610C45E: mov dword ptr [ebp - 4], ebx */ 7759 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610C476; /* 0x3610C461: je 0x3610c476 */ 7760 L_3610C463: 7761 ecx = edi; /* 0x3610C463: mov ecx, edi */ 7762 RECOMP_ICALL(0x360E2940u); /* 0x3610C465: call 0x360e2940 */ /* not lifted */ 7763 RECOMP_FLAGS_IN(); 7764 PUSH32(esp, edi); /* 0x3610C46A: push edi */ 7765 RECOMP_ICALL(0x3615FCC4u); /* 0x3610C46B: call 0x3615fcc4 */ /* not lifted */ 7766 RECOMP_FLAGS_IN(); 7767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7768 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7769 esp = esp + 4; /* 0x3610C470: add esp, 4 */ 7770 _flag_k = FK_ADD; 7771 MEM32(esi + 0x5C) = ebx; /* 0x3610C473: mov dword ptr [esi + 0x5c], ebx */ 7772 L_3610C476: 7773 ecx = MEM32(esi + 0x60); /* 0x3610C476: mov ecx, dword ptr [esi + 0x60] */ 7774 /* cmp ecx, ebx */ /* 0x3610C479: cmp ecx, ebx */ 7775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 7776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7777 _flag_k = FK_CMP; 7778 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610C486; /* 0x3610C47B: je 0x3610c486 */ 7779 L_3610C47D: 7780 eax = MEM32(ecx); /* 0x3610C47D: mov eax, dword ptr [ecx] */ 7781 PUSH32(esp, 1); /* 0x3610C47F: push 1 */ 7782 RECOMP_ICALL(MEM32(eax)); /* 0x3610C481: call dword ptr [eax] */ 7783 RECOMP_FLAGS_IN(); 7784 MEM32(esi + 0x60) = ebx; /* 0x3610C483: mov dword ptr [esi + 0x60], ebx */ 7785 L_3610C486: 7786 eax = MEM32(esi + 0x64); /* 0x3610C486: mov eax, dword ptr [esi + 0x64] */ 7787 /* cmp eax, ebx */ /* 0x3610C489: cmp eax, ebx */ 7788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7790 _flag_k = FK_CMP; 7791 if (CMP_EQ(_flag_a, _flag_b)) goto L_3610C499; /* 0x3610C48B: je 0x3610c499 */ 7792 L_3610C48D: 7793 PUSH32(esp, eax); /* 0x3610C48D: push eax */ 7794 RECOMP_ICALL(0x3615FCC4u); /* 0x3610C48E: call 0x3615fcc4 */ /* not lifted */ 7795 RECOMP_FLAGS_IN(); 7796 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7797 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7798 esp = esp + 4; /* 0x3610C493: add esp, 4 */ 7799 _flag_k = FK_ADD; 7800 MEM32(esi + 0x64) = ebx; /* 0x3610C496: mov dword ptr [esi + 0x64], ebx */ 7801 L_3610C499: 7802 ecx = esi; /* 0x3610C499: mov ecx, esi */ 7803 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610C49B: mov dword ptr [ebp - 4], 0xffffffff */ 7804 RECOMP_ICALL(0x360FC2F0u); /* 0x3610C4A2: call 0x360fc2f0 */ /* not lifted */ 7805 RECOMP_FLAGS_IN(); 7806 ecx = MEM32(ebp + (-0xC)); /* 0x3610C4A7: mov ecx, dword ptr [ebp - 0xc] */ 7807 edi = POP32_VAL(esp); /* 0x3610C4AA: pop edi */ 7808 esi = POP32_VAL(esp); /* 0x3610C4AB: pop esi */ 7809 ebx = POP32_VAL(esp); /* 0x3610C4AC: pop ebx */ 7810 MEM32(FS_BASE + (0)) = ecx; /* 0x3610C4AD: mov dword ptr fs:[0], ecx */ 7811 esp = ebp; /* 0x3610C4B4: mov esp, ebp */ 7812 ebp = POP32_VAL(esp); /* 0x3610C4B6: pop ebp */ 7813 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610C4B7: ret */ 7814 RECOMP_REGS_OUT(); 7815 } 7816 7817 void sub_3610C4C0(void) { 7818 int _fpu_cmp = 0; 7819 uint32_t _cf = 0; 7820 int _df = 1; 7821 uint32_t _flag_k = FK_NONE; 7822 uint32_t _flag_a = 0, _flag_b = 0; 7823 uint32_t _itail_tgt = 0; 7824 RECOMP_REGS_LOCALS 7825 RECOMP_ENTER(0x3610C4C0u); 7826 7827 L_3610C4C0: 7828 eax = MEM32(ecx + 0x4); /* 0x3610C4C0: mov eax, dword ptr [ecx + 4] */ 7829 PUSH32(esp, eax); /* 0x3610C4C3: push eax */ 7830 RECOMP_ICALL(0x360F7B00u); /* 0x3610C4C4: call 0x360f7b00 */ /* not lifted */ 7831 RECOMP_FLAGS_IN(); 7832 ecx = eax; /* 0x3610C4C9: mov ecx, eax */ 7833 RECOMP_ICALL(0x360FBFF0u); /* 0x3610C4CB: call 0x360fbff0 */ /* not lifted */ 7834 RECOMP_FLAGS_IN(); 7835 ecx = eax; /* 0x3610C4D0: mov ecx, eax */ 7836 RECOMP_ICALL(0x361371A0u); /* 0x3610C4D2: call 0x361371a0 */ /* not lifted */ 7837 RECOMP_FLAGS_IN(); 7838 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610C4D7: ret */ 7839 RECOMP_REGS_OUT(); 7840 } 7841 7842 void sub_3610C4E0(void) { 7843 int _fpu_cmp = 0; 7844 uint32_t _cf = 0; 7845 int _df = 1; 7846 uint32_t _flag_k = FK_NONE; 7847 uint32_t _flag_a = 0, _flag_b = 0; 7848 uint32_t _itail_tgt = 0; 7849 RECOMP_REGS_LOCALS 7850 RECOMP_ENTER(0x3610C4E0u); 7851 7852 L_3610C4E0: 7853 PUSH32(esp, ebp); /* 0x3610C4E0: push ebp */ 7854 ebp = esp; /* 0x3610C4E1: mov ebp, esp */ 7855 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x80u); 7856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7857 esp = esp - 0x80u; /* 0x3610C4E3: sub esp, 0x80 */ 7858 _flag_k = FK_CMP; 7859 PUSH32(esp, esi); /* 0x3610C4E9: push esi */ 7860 esi = ecx; /* 0x3610C4EA: mov esi, ecx */ 7861 RECOMP_ICALL(0x360FC300u); /* 0x3610C4EC: call 0x360fc300 */ /* not lifted */ 7862 RECOMP_FLAGS_IN(); 7863 ecx = MEM32(esi + 0x5C); /* 0x3610C4F1: mov ecx, dword ptr [esi + 0x5c] */ 7864 RECOMP_ICALL(0x361331E0u); /* 0x3610C4F4: call 0x361331e0 */ /* not lifted */ 7865 RECOMP_FLAGS_IN(); 7866 /* test LO8(eax), LO8(eax) */ /* 0x3610C4F9: test al, al */ 7867 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7868 _cf = 0; 7869 _flag_k = FK_NARROW(FK_TEST, 24); 7870 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610C505; /* 0x3610C4FB: jne 0x3610c505 */ 7871 L_3610C4FD: 7872 eax = MEM32(esi + 0x20); /* 0x3610C4FD: mov eax, dword ptr [esi + 0x20] */ 7873 /* test HI8(eax), 0x10u */ /* 0x3610C500: test ah, 0x10 */ 7874 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 7875 _cf = 0; 7876 _flag_k = FK_NARROW(FK_TEST, 24); 7877 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C50C; /* 0x3610C503: je 0x3610c50c */ 7878 L_3610C505: 7879 eax = MEM32(esi + 0x60); /* 0x3610C505: mov eax, dword ptr [esi + 0x60] */ 7880 /* test eax, eax */ /* 0x3610C508: test eax, eax */ 7881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7882 _cf = 0; 7883 _flag_k = FK_TEST; 7884 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610C515; /* 0x3610C50A: jne 0x3610c515 */ 7885 L_3610C50C: 7886 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x3610C50C: mov byte ptr [esi + 0x14], 1 */ 7887 esi = POP32_VAL(esp); /* 0x3610C510: pop esi */ 7888 esp = ebp; /* 0x3610C511: mov esp, ebp */ 7889 ebp = POP32_VAL(esp); /* 0x3610C513: pop ebp */ 7890 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610C514: ret */ 7891 L_3610C515: 7892 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3610C515: fld dword ptr [esi + 0xc] */ 7893 SET_LO8(eax, 0xFFu); /* 0x3610C518: mov al, 0xff */ 7894 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x3C)); /* 0x3610C51A: fcomp dword ptr [esi + 0x3c] */ 7895 fp_pop(); 7896 MEM8(ebp + (-0x5)) = (uint8_t)(LO8(eax)); /* 0x3610C51D: mov byte ptr [ebp - 5], al */ 7897 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3610C520: fld dword ptr [esi + 0xc] */ 7898 MEM8(ebp + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x3610C523: mov byte ptr [ebp - 1], al */ 7899 PUSH32(esp, ebx); /* 0x3610C526: push ebx */ 7900 PUSH32(esp, edi); /* 0x3610C527: push edi */ 7901 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610C528: fnstsw ax */ 7902 MEM8(ebp + (-0x6)) = (uint8_t)(0); /* 0x3610C52A: mov byte ptr [ebp - 6], 0 */ 7903 MEM8(ebp + (-0x7)) = (uint8_t)(0); /* 0x3610C52E: mov byte ptr [ebp - 7], 0 */ 7904 /* test HI8(eax), 1 */ /* 0x3610C532: test ah, 1 */ 7905 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7906 _cf = 0; 7907 _flag_k = FK_NARROW(FK_TEST, 24); 7908 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x3610C535: mov byte ptr [ebp - 8], 0 */ 7909 MEM8(ebp + (-0x2)) = (uint8_t)(0); /* 0x3610C539: mov byte ptr [ebp - 2], 0 */ 7910 MEM8(ebp + (-0x3)) = (uint8_t)(0); /* 0x3610C53D: mov byte ptr [ebp - 3], 0 */ 7911 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3610C541: mov byte ptr [ebp - 4], 0 */ 7912 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C58A; /* 0x3610C545: je 0x3610c58a */ 7913 L_3610C547: 7914 _st[0] /= (double)*(float*)ADDR(esi + 0x3C); /* 0x3610C547: fdiv dword ptr [esi + 0x3c] */ 7915 eax = MEM32(esi + 0x44); /* 0x3610C54A: mov eax, dword ptr [esi + 0x44] */ 7916 ebx = MEM32(0x3616F9A0); /* 0x3610C54D: mov ebx, dword ptr [0x3616f9a0] */ 7917 MEM32(ebp + (-0xC)) = eax; /* 0x3610C553: mov dword ptr [ebp - 0xc], eax */ 7918 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00FFFFFFu); 7919 eax = eax & 0x00FFFFFFu; /* 0x3610C556: and eax, 0xffffff */ 7920 _cf = 0; 7921 _flag_k = FK_TEST; 7922 MEM32(ebp + (-0x14)) = eax; /* 0x3610C55B: mov dword ptr [ebp - 0x14], eax */ 7923 eax = ebp + (-0xC); /* 0x3610C55E: lea eax, [ebp - 0xc] */ 7924 ecx = ebp + (-0x14); /* 0x3610C561: lea ecx, [ebp - 0x14] */ 7925 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3610C564: fstp dword ptr [ebp - 0x10] */ 7926 edi = MEM32(ebp + (-0x10)); /* 0x3610C567: mov edi, dword ptr [ebp - 0x10] */ 7927 PUSH32(esp, edi); /* 0x3610C56A: push edi */ 7928 PUSH32(esp, eax); /* 0x3610C56B: push eax */ 7929 PUSH32(esp, ecx); /* 0x3610C56C: push ecx */ 7930 ecx = ebp + (-0x8); /* 0x3610C56D: lea ecx, [ebp - 8] */ 7931 RECOMP_ICALL(ebx); /* 0x3610C570: call ebx */ 7932 RECOMP_FLAGS_IN(); 7933 eax = MEM32(esi + 0x48); /* 0x3610C572: mov eax, dword ptr [esi + 0x48] */ 7934 MEM32(ebp + (-0x14)) = eax; /* 0x3610C575: mov dword ptr [ebp - 0x14], eax */ 7935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00FFFFFFu); 7936 eax = eax & 0x00FFFFFFu; /* 0x3610C578: and eax, 0xffffff */ 7937 _cf = 0; 7938 _flag_k = FK_TEST; 7939 PUSH32(esp, edi); /* 0x3610C57D: push edi */ 7940 edx = ebp + (-0x14); /* 0x3610C57E: lea edx, [ebp - 0x14] */ 7941 MEM32(ebp + (-0x10)) = eax; /* 0x3610C581: mov dword ptr [ebp - 0x10], eax */ 7942 PUSH32(esp, edx); /* 0x3610C584: push edx */ 7943 eax = ebp + (-0x10); /* 0x3610C585: lea eax, [ebp - 0x10] */ 7944 goto L_3610C5EF; /* 0x3610C588: jmp 0x3610c5ef */ 7945 L_3610C58A: 7946 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x68)); /* 0x3610C58A: fcomp dword ptr [esi + 0x68] */ 7947 fp_pop(); 7948 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610C58D: fnstsw ax */ 7949 /* test HI8(eax), 1 */ /* 0x3610C58F: test ah, 1 */ 7950 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7951 _cf = 0; 7952 _flag_k = FK_NARROW(FK_TEST, 24); 7953 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C5A2; /* 0x3610C592: je 0x3610c5a2 */ 7954 L_3610C594: 7955 ecx = MEM32(esi + 0x44); /* 0x3610C594: mov ecx, dword ptr [esi + 0x44] */ 7956 edx = MEM32(esi + 0x48); /* 0x3610C597: mov edx, dword ptr [esi + 0x48] */ 7957 MEM32(ebp + (-0x8)) = ecx; /* 0x3610C59A: mov dword ptr [ebp - 8], ecx */ 7958 MEM32(ebp + (-0x4)) = edx; /* 0x3610C59D: mov dword ptr [ebp - 4], edx */ 7959 goto L_3610C5F5; /* 0x3610C5A0: jmp 0x3610c5f5 */ 7960 L_3610C5A2: 7961 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3610C5A2: fld dword ptr [esi + 0xc] */ 7962 eax = MEM32(esi + 0x44); /* 0x3610C5A5: mov eax, dword ptr [esi + 0x44] */ 7963 _st[0] -= (double)*(float*)ADDR(esi + 0x68); /* 0x3610C5A8: fsub dword ptr [esi + 0x68] */ 7964 ebx = MEM32(0x3616F9A0); /* 0x3610C5AB: mov ebx, dword ptr [0x3616f9a0] */ 7965 ecx = eax; /* 0x3610C5B1: mov ecx, eax */ 7966 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x00FFFFFFu); 7967 ecx = ecx & 0x00FFFFFFu; /* 0x3610C5B3: and ecx, 0xffffff */ 7968 _cf = 0; 7969 _flag_k = FK_TEST; 7970 _st[0] /= (double)*(float*)ADDR(esi + 0x40); /* 0x3610C5B9: fdiv dword ptr [esi + 0x40] */ 7971 edx = ebp + (-0x10); /* 0x3610C5BC: lea edx, [ebp - 0x10] */ 7972 MEM32(ebp + (-0xC)) = eax; /* 0x3610C5BF: mov dword ptr [ebp - 0xc], eax */ 7973 eax = ebp + (-0xC); /* 0x3610C5C2: lea eax, [ebp - 0xc] */ 7974 MEM32(ebp + (-0x10)) = ecx; /* 0x3610C5C5: mov dword ptr [ebp - 0x10], ecx */ 7975 ecx = ebp + (-0x8); /* 0x3610C5C8: lea ecx, [ebp - 8] */ 7976 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3610C5CB: fstp dword ptr [ebp - 0x14] */ 7977 edi = MEM32(ebp + (-0x14)); /* 0x3610C5CE: mov edi, dword ptr [ebp - 0x14] */ 7978 PUSH32(esp, edi); /* 0x3610C5D1: push edi */ 7979 PUSH32(esp, edx); /* 0x3610C5D2: push edx */ 7980 PUSH32(esp, eax); /* 0x3610C5D3: push eax */ 7981 RECOMP_ICALL(ebx); /* 0x3610C5D4: call ebx */ 7982 RECOMP_FLAGS_IN(); 7983 eax = MEM32(esi + 0x48); /* 0x3610C5D6: mov eax, dword ptr [esi + 0x48] */ 7984 ecx = eax; /* 0x3610C5D9: mov ecx, eax */ 7985 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x00FFFFFFu); 7986 ecx = ecx & 0x00FFFFFFu; /* 0x3610C5DB: and ecx, 0xffffff */ 7987 _cf = 0; 7988 _flag_k = FK_TEST; 7989 PUSH32(esp, edi); /* 0x3610C5E1: push edi */ 7990 edx = ebp + (-0x14); /* 0x3610C5E2: lea edx, [ebp - 0x14] */ 7991 MEM32(ebp + (-0x10)) = eax; /* 0x3610C5E5: mov dword ptr [ebp - 0x10], eax */ 7992 MEM32(ebp + (-0x14)) = ecx; /* 0x3610C5E8: mov dword ptr [ebp - 0x14], ecx */ 7993 PUSH32(esp, edx); /* 0x3610C5EB: push edx */ 7994 eax = ebp + (-0x10); /* 0x3610C5EC: lea eax, [ebp - 0x10] */ 7995 L_3610C5EF: 7996 PUSH32(esp, eax); /* 0x3610C5EF: push eax */ 7997 ecx = ebp + (-0x4); /* 0x3610C5F0: lea ecx, [ebp - 4] */ 7998 RECOMP_ICALL(ebx); /* 0x3610C5F3: call ebx */ 7999 RECOMP_FLAGS_IN(); 8000 L_3610C5F5: 8001 eax = MEM32(esi + 0x20); /* 0x3610C5F5: mov eax, dword ptr [esi + 0x20] */ 8002 /* test HI8(eax), 8 */ /* 0x3610C5F8: test ah, 8 */ 8003 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 8004 _cf = 0; 8005 _flag_k = FK_NARROW(FK_TEST, 24); 8006 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610C7BB; /* 0x3610C5FB: jne 0x3610c7bb */ 8007 L_3610C601: 8008 ecx = ebp + (-0x80); /* 0x3610C601: lea ecx, [ebp - 0x80] */ 8009 PUSH32(esp, ecx); /* 0x3610C604: push ecx */ 8010 ecx = MEM32(esi + 0x5C); /* 0x3610C605: mov ecx, dword ptr [esi + 0x5c] */ 8011 ebx = esi + 0x50; /* 0x3610C608: lea ebx, [esi + 0x50] */ 8012 RECOMP_ICALL(0x36133E80u); /* 0x3610C60B: call 0x36133e80 */ /* not lifted */ 8013 RECOMP_FLAGS_IN(); 8014 ecx = MEM32(eax); /* 0x3610C610: mov ecx, dword ptr [eax] */ 8015 edx = ebx; /* 0x3610C612: mov edx, ebx */ 8016 MEM32(edx) = ecx; /* 0x3610C614: mov dword ptr [edx], ecx */ 8017 ecx = MEM32(eax + 0x4); /* 0x3610C616: mov ecx, dword ptr [eax + 4] */ 8018 MEM32(edx + 0x4) = ecx; /* 0x3610C619: mov dword ptr [edx + 4], ecx */ 8019 eax = MEM32(eax + 0x8); /* 0x3610C61C: mov eax, dword ptr [eax + 8] */ 8020 ecx = MEM32(esi + 0x60); /* 0x3610C61F: mov ecx, dword ptr [esi + 0x60] */ 8021 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8022 edi = 0; /* 0x3610C622: xor edi, edi */ 8023 _cf = 0; 8024 _flag_k = FK_TEST; 8025 PUSH32(esp, edi); /* 0x3610C624: push edi */ 8026 PUSH32(esp, ebx); /* 0x3610C625: push ebx */ 8027 MEM32(edx + 0x8) = eax; /* 0x3610C626: mov dword ptr [edx + 8], eax */ 8028 RECOMP_ICALL(MEM32(0x3616F648)); /* 0x3610C629: call dword ptr [0x3616f648] */ 8029 RECOMP_FLAGS_IN(); 8030 eax = MEM32(esi + 0x28); /* 0x3610C62F: mov eax, dword ptr [esi + 0x28] */ 8031 /* cmp eax, edi */ /* 0x3610C632: cmp eax, edi */ 8032 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8034 _flag_k = FK_CMP; 8035 MEM32(ebp + (-0x14)) = eax; /* 0x3610C634: mov dword ptr [ebp - 0x14], eax */ 8036 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x3610C637: fild dword ptr [ebp - 0x14] */ 8037 MEM32(ebp + (-0xC)) = edi; /* 0x3610C63A: mov dword ptr [ebp - 0xc], edi */ 8038 MEM32(ebp + (-0x10)) = edi; /* 0x3610C63D: mov dword ptr [ebp - 0x10], edi */ 8039 _st[0] = (double)*(float*)ADDR(0x361708D0) / _st[0]; /* 0x3610C640: fdivr dword ptr [0x361708d0] */ 8040 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3610C646: fstp dword ptr [ebp - 0x14] */ 8041 if (CMP_L(_flag_a, _flag_b)) goto L_3610C7BB; /* 0x3610C649: jl 0x3610c7bb */ 8042 L_3610C64F: 8043 MEM32(ebp + (-0x4C)) = edi; /* 0x3610C64F: mov dword ptr [ebp - 0x4c], edi */ 8044 L_3610C652: 8045 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3610C652: fld dword ptr [ebp - 0xc] */ 8046 eax = MEM32(ebp + (-0x4C)); /* 0x3610C655: mov eax, dword ptr [ebp - 0x4c] */ 8047 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610C658: fcos */ 8048 MEM32(ebp + (-0x1C)) = eax; /* 0x3610C65A: mov dword ptr [ebp - 0x1c], eax */ 8049 MEM32(ebp + (-0x28)) = eax; /* 0x3610C65D: mov dword ptr [ebp - 0x28], eax */ 8050 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3610C660: fstp dword ptr [ebp - 0x50] */ 8051 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3610C663: fld dword ptr [ebp - 0xc] */ 8052 ecx = MEM32(ebp + (-0x50)); /* 0x3610C666: mov ecx, dword ptr [ebp - 0x50] */ 8053 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3610C669: fsin */ 8054 MEM32(ebp + (-0x20)) = ecx; /* 0x3610C66B: mov dword ptr [ebp - 0x20], ecx */ 8055 MEM32(ebp + (-0x2C)) = ecx; /* 0x3610C66E: mov dword ptr [ebp - 0x2c], ecx */ 8056 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x3610C671: fstp dword ptr [ebp - 0x48] */ 8057 fp_push(*(float*)&MEM32(esi + 0x34)); /* 0x3610C674: fld dword ptr [esi + 0x34] */ 8058 edx = MEM32(ebp + (-0x48)); /* 0x3610C677: mov edx, dword ptr [ebp - 0x48] */ 8059 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3610C67A: fld dword ptr [ebp - 0x50] */ 8060 eax = MEM32(ebp + (-0x48)); /* 0x3610C67D: mov eax, dword ptr [ebp - 0x48] */ 8061 _st[0] *= _st[1]; /* 0x3610C680: fmul st(1) */ 8062 MEM32(ebp + (-0x18)) = edx; /* 0x3610C682: mov dword ptr [ebp - 0x18], edx */ 8063 MEM32(ebp + (-0x24)) = eax; /* 0x3610C685: mov dword ptr [ebp - 0x24], eax */ 8064 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3610C688: fstp dword ptr [ebp - 0x20] */ 8065 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610C68B: fld dword ptr [ebp - 0x1c] */ 8066 _st[0] *= _st[1]; /* 0x3610C68E: fmul st(1) */ 8067 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3610C690: fstp dword ptr [ebp - 0x1c] */ 8068 edx = MEM32(ebp + (-0x1C)); /* 0x3610C693: mov edx, dword ptr [ebp - 0x1c] */ 8069 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610C696: fld dword ptr [ebp - 0x18] */ 8070 MEM32(ebp + (-0x70)) = edx; /* 0x3610C699: mov dword ptr [ebp - 0x70], edx */ 8071 _st[0] *= _st[1]; /* 0x3610C69C: fmul st(1) */ 8072 edx = ebx; /* 0x3610C69E: mov edx, ebx */ 8073 eax = MEM32(edx); /* 0x3610C6A0: mov eax, dword ptr [edx] */ 8074 MEM32(ebp + (-0x38)) = eax; /* 0x3610C6A2: mov dword ptr [ebp - 0x38], eax */ 8075 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3610C6A5: fstp dword ptr [ebp - 0x18] */ 8076 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610C6A8: fstp st(0) */ 8077 fp_push(*(float*)&MEM32(esi + 0x38)); /* 0x3610C6AA: fld dword ptr [esi + 0x38] */ 8078 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3610C6AD: fld dword ptr [ebp - 0x50] */ 8079 _st[0] *= _st[1]; /* 0x3610C6B0: fmul st(1) */ 8080 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3610C6B2: fstp dword ptr [ebp - 0x2c] */ 8081 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3610C6B5: fld dword ptr [ebp - 0x28] */ 8082 _st[0] *= _st[1]; /* 0x3610C6B8: fmul st(1) */ 8083 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3610C6BA: fstp dword ptr [ebp - 0x28] */ 8084 ecx = MEM32(ebp + (-0x28)); /* 0x3610C6BD: mov ecx, dword ptr [ebp - 0x28] */ 8085 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3610C6C0: fld dword ptr [ebp - 0x24] */ 8086 MEM32(ebp + (-0x7C)) = ecx; /* 0x3610C6C3: mov dword ptr [ebp - 0x7c], ecx */ 8087 ecx = MEM32(edx + 0x4); /* 0x3610C6C6: mov ecx, dword ptr [edx + 4] */ 8088 _st[0] *= _st[1]; /* 0x3610C6C9: fmul st(1) */ 8089 edx = MEM32(edx + 0x8); /* 0x3610C6CB: mov edx, dword ptr [edx + 8] */ 8090 MEM32(ebp + (-0x34)) = ecx; /* 0x3610C6CE: mov dword ptr [ebp - 0x34], ecx */ 8091 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3610C6D1: fstp dword ptr [ebp - 0x24] */ 8092 MEM32(ebp + (-0x30)) = edx; /* 0x3610C6D4: mov dword ptr [ebp - 0x30], edx */ 8093 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610C6D7: fstp st(0) */ 8094 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3610C6D9: fld dword ptr [ebp - 0x38] */ 8095 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3610C6DC: fadd dword ptr [ebp - 0x20] */ 8096 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3610C6DF: fstp dword ptr [ebp - 0x38] */ 8097 eax = MEM32(ebp + (-0x38)); /* 0x3610C6E2: mov eax, dword ptr [ebp - 0x38] */ 8098 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3610C6E5: fld dword ptr [ebp - 0x34] */ 8099 MEM32(ebp + (-0x5C)) = eax; /* 0x3610C6E8: mov dword ptr [ebp - 0x5c], eax */ 8100 _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3610C6EB: fadd dword ptr [ebp - 0x1c] */ 8101 eax = ebp + (-0x5C); /* 0x3610C6EE: lea eax, [ebp - 0x5c] */ 8102 PUSH32(esp, eax); /* 0x3610C6F1: push eax */ 8103 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3610C6F2: fstp dword ptr [ebp - 0x34] */ 8104 ecx = MEM32(ebp + (-0x34)); /* 0x3610C6F5: mov ecx, dword ptr [ebp - 0x34] */ 8105 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3610C6F8: fld dword ptr [ebp - 0x30] */ 8106 MEM32(ebp + (-0x58)) = ecx; /* 0x3610C6FB: mov dword ptr [ebp - 0x58], ecx */ 8107 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3610C6FE: fadd dword ptr [ebp - 0x18] */ 8108 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3610C701: fstp dword ptr [ebp - 0x30] */ 8109 edx = MEM32(ebp + (-0x30)); /* 0x3610C704: mov edx, dword ptr [ebp - 0x30] */ 8110 MEM32(ebp + (-0x54)) = edx; /* 0x3610C707: mov dword ptr [ebp - 0x54], edx */ 8111 RECOMP_ICALL(0x360FC710u); /* 0x3610C70A: call 0x360fc710 */ /* not lifted */ 8112 RECOMP_FLAGS_IN(); 8113 _st[0] += (double)*(float*)ADDR(esi + 0x4C); /* 0x3610C70F: fadd dword ptr [esi + 0x4c] */ 8114 ecx = ebx; /* 0x3610C712: mov ecx, ebx */ 8115 edx = MEM32(ecx); /* 0x3610C714: mov edx, dword ptr [ecx] */ 8116 _st[0] -= (double)*(float*)ADDR(esi + 0x54); /* 0x3610C716: fsub dword ptr [esi + 0x54] */ 8117 eax = MEM32(ecx + 0x4); /* 0x3610C719: mov eax, dword ptr [ecx + 4] */ 8118 ecx = MEM32(ecx + 0x8); /* 0x3610C71C: mov ecx, dword ptr [ecx + 8] */ 8119 MEM32(ebp + (-0x44)) = edx; /* 0x3610C71F: mov dword ptr [ebp - 0x44], edx */ 8120 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3610C722: fstp dword ptr [ebp - 0x70] */ 8121 MEM32(ebp + (-0x40)) = eax; /* 0x3610C725: mov dword ptr [ebp - 0x40], eax */ 8122 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3610C728: fld dword ptr [ebp - 0x44] */ 8123 MEM32(ebp + (-0x3C)) = ecx; /* 0x3610C72B: mov dword ptr [ebp - 0x3c], ecx */ 8124 _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x3610C72E: fadd dword ptr [ebp - 0x2c] */ 8125 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3610C731: fstp dword ptr [ebp - 0x44] */ 8126 edx = MEM32(ebp + (-0x44)); /* 0x3610C734: mov edx, dword ptr [ebp - 0x44] */ 8127 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x3610C737: fld dword ptr [ebp - 0x40] */ 8128 MEM32(ebp + (-0x68)) = edx; /* 0x3610C73A: mov dword ptr [ebp - 0x68], edx */ 8129 _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3610C73D: fadd dword ptr [ebp - 0x28] */ 8130 edx = ebp + (-0x68); /* 0x3610C740: lea edx, [ebp - 0x68] */ 8131 PUSH32(esp, edx); /* 0x3610C743: push edx */ 8132 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3610C744: fstp dword ptr [ebp - 0x40] */ 8133 eax = MEM32(ebp + (-0x40)); /* 0x3610C747: mov eax, dword ptr [ebp - 0x40] */ 8134 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3610C74A: fld dword ptr [ebp - 0x3c] */ 8135 MEM32(ebp + (-0x64)) = eax; /* 0x3610C74D: mov dword ptr [ebp - 0x64], eax */ 8136 _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3610C750: fadd dword ptr [ebp - 0x24] */ 8137 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610C753: fstp dword ptr [ebp - 0x3c] */ 8138 ecx = MEM32(ebp + (-0x3C)); /* 0x3610C756: mov ecx, dword ptr [ebp - 0x3c] */ 8139 MEM32(ebp + (-0x60)) = ecx; /* 0x3610C759: mov dword ptr [ebp - 0x60], ecx */ 8140 RECOMP_ICALL(0x360FC710u); /* 0x3610C75C: call 0x360fc710 */ /* not lifted */ 8141 RECOMP_FLAGS_IN(); 8142 _st[0] += (double)*(float*)ADDR(esi + 0x4C); /* 0x3610C761: fadd dword ptr [esi + 0x4c] */ 8143 eax = MEM32(esi + 0x64); /* 0x3610C764: mov eax, dword ptr [esi + 0x64] */ 8144 edx = MEM32(ebp + (-0x70)); /* 0x3610C767: mov edx, dword ptr [ebp - 0x70] */ 8145 _st[0] -= (double)*(float*)ADDR(esi + 0x54); /* 0x3610C76A: fsub dword ptr [esi + 0x54] */ 8146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8148 eax = eax + edi; /* 0x3610C76D: add eax, edi */ 8149 _flag_k = FK_ADD; 8150 ecx = eax; /* 0x3610C76F: mov ecx, eax */ 8151 eax = MEM32(ebp + (-0x20)); /* 0x3610C771: mov eax, dword ptr [ebp - 0x20] */ 8152 MEM32(ecx) = eax; /* 0x3610C774: mov dword ptr [ecx], eax */ 8153 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x3610C776: fstp dword ptr [ebp - 0x7c] */ 8154 eax = MEM32(ebp + (-0x18)); /* 0x3610C779: mov eax, dword ptr [ebp - 0x18] */ 8155 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3610C77C: fld dword ptr [ebp - 0x14] */ 8156 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3610C77F: fadd dword ptr [ebp - 0xc] */ 8157 MEM32(ecx + 0x4) = edx; /* 0x3610C782: mov dword ptr [ecx + 4], edx */ 8158 edx = MEM32(ebp + (-0x7C)); /* 0x3610C785: mov edx, dword ptr [ebp - 0x7c] */ 8159 MEM32(ecx + 0x8) = eax; /* 0x3610C788: mov dword ptr [ecx + 8], eax */ 8160 eax = MEM32(esi + 0x64); /* 0x3610C78B: mov eax, dword ptr [esi + 0x64] */ 8161 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3610C78E: fstp dword ptr [ebp - 0xc] */ 8162 ecx = eax + edi + 0xC; /* 0x3610C791: lea ecx, [eax + edi + 0xc] */ 8163 eax = MEM32(ebp + (-0x2C)); /* 0x3610C795: mov eax, dword ptr [ebp - 0x2c] */ 8164 MEM32(ecx) = eax; /* 0x3610C798: mov dword ptr [ecx], eax */ 8165 eax = MEM32(ebp + (-0x24)); /* 0x3610C79A: mov eax, dword ptr [ebp - 0x24] */ 8166 MEM32(ecx + 0x4) = edx; /* 0x3610C79D: mov dword ptr [ecx + 4], edx */ 8167 MEM32(ecx + 0x8) = eax; /* 0x3610C7A0: mov dword ptr [ecx + 8], eax */ 8168 eax = MEM32(ebp + (-0x10)); /* 0x3610C7A3: mov eax, dword ptr [ebp - 0x10] */ 8169 ecx = MEM32(esi + 0x28); /* 0x3610C7A6: mov ecx, dword ptr [esi + 0x28] */ 8170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8172 esp = esp + 8; /* 0x3610C7A9: add esp, 8 */ 8173 _flag_k = FK_ADD; 8174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8175 eax = eax + 1; /* 0x3610C7AC: inc eax */ 8176 _flag_k = FK_INC; 8177 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u); 8178 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8179 edi = edi + 0x18u; /* 0x3610C7AD: add edi, 0x18 */ 8180 _flag_k = FK_ADD; 8181 /* cmp eax, ecx */ /* 0x3610C7B0: cmp eax, ecx */ 8182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8184 _flag_k = FK_CMP; 8185 MEM32(ebp + (-0x10)) = eax; /* 0x3610C7B2: mov dword ptr [ebp - 0x10], eax */ 8186 RECOMP_BACKEDGE(); 8187 if (CMP_LE(_flag_a, _flag_b)) goto L_3610C652; /* 0x3610C7B5: jle 0x3610c652 */ 8188 L_3610C7BB: 8189 eax = MEM32(ebp + (-0x4)); /* 0x3610C7BB: mov eax, dword ptr [ebp - 4] */ 8190 ecx = MEM32(ebp + (-0x8)); /* 0x3610C7BE: mov ecx, dword ptr [ebp - 8] */ 8191 edx = MEM32(esi + 0x64); /* 0x3610C7C1: mov edx, dword ptr [esi + 0x64] */ 8192 PUSH32(esp, eax); /* 0x3610C7C4: push eax */ 8193 PUSH32(esp, ecx); /* 0x3610C7C5: push ecx */ 8194 ecx = MEM32(esi + 0x60); /* 0x3610C7C6: mov ecx, dword ptr [esi + 0x60] */ 8195 PUSH32(esp, edx); /* 0x3610C7C9: push edx */ 8196 RECOMP_ICALL(MEM32(0x3616F758)); /* 0x3610C7CA: call dword ptr [0x3616f758] */ 8197 RECOMP_FLAGS_IN(); 8198 edi = POP32_VAL(esp); /* 0x3610C7D0: pop edi */ 8199 ebx = POP32_VAL(esp); /* 0x3610C7D1: pop ebx */ 8200 esi = POP32_VAL(esp); /* 0x3610C7D2: pop esi */ 8201 esp = ebp; /* 0x3610C7D3: mov esp, ebp */ 8202 ebp = POP32_VAL(esp); /* 0x3610C7D5: pop ebp */ 8203 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610C7D6: ret */ 8204 RECOMP_REGS_OUT(); 8205 } 8206 8207 void sub_3610C7E0(void) { 8208 int _fpu_cmp = 0; 8209 uint32_t _cf = 0; 8210 int _df = 1; 8211 uint32_t _flag_k = FK_NONE; 8212 uint32_t _flag_a = 0, _flag_b = 0; 8213 uint32_t _itail_tgt = 0; 8214 RECOMP_REGS_LOCALS 8215 RECOMP_ENTER(0x3610C7E0u); 8216 8217 L_3610C7E0: 8218 PUSH32(esp, ebp); /* 0x3610C7E0: push ebp */ 8219 ebp = esp; /* 0x3610C7E1: mov ebp, esp */ 8220 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610C7E3: push -1 */ 8221 PUSH32(esp, 0x3616A68Bu); /* 0x3610C7E5: push 0x3616a68b */ 8222 eax = MEM32(FS_BASE + (0)); /* 0x3610C7EA: mov eax, dword ptr fs:[0] */ 8223 PUSH32(esp, eax); /* 0x3610C7F0: push eax */ 8224 MEM32(FS_BASE + (0)) = esp; /* 0x3610C7F1: mov dword ptr fs:[0], esp */ 8225 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x78u); 8226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8227 esp = esp - 0x78u; /* 0x3610C7F8: sub esp, 0x78 */ 8228 _flag_k = FK_CMP; 8229 PUSH32(esp, ebx); /* 0x3610C7FB: push ebx */ 8230 PUSH32(esp, esi); /* 0x3610C7FC: push esi */ 8231 esi = ecx; /* 0x3610C7FD: mov esi, ecx */ 8232 ecx = MEM32(esi + 0x5C); /* 0x3610C7FF: mov ecx, dword ptr [esi + 0x5c] */ 8233 PUSH32(esp, edi); /* 0x3610C802: push edi */ 8234 RECOMP_ICALL(0x361331E0u); /* 0x3610C803: call 0x361331e0 */ /* not lifted */ 8235 RECOMP_FLAGS_IN(); 8236 ecx = MEM32(esi + 0x5C); /* 0x3610C808: mov ecx, dword ptr [esi + 0x5c] */ 8237 eax = ebp + (-0x84); /* 0x3610C80B: lea eax, [ebp - 0x84] */ 8238 PUSH32(esp, eax); /* 0x3610C811: push eax */ 8239 ebx = esi + 0x50; /* 0x3610C812: lea ebx, [esi + 0x50] */ 8240 RECOMP_ICALL(0x36133E80u); /* 0x3610C815: call 0x36133e80 */ /* not lifted */ 8241 RECOMP_FLAGS_IN(); 8242 edx = MEM32(eax); /* 0x3610C81A: mov edx, dword ptr [eax] */ 8243 ecx = ebx; /* 0x3610C81C: mov ecx, ebx */ 8244 MEM32(ecx) = edx; /* 0x3610C81E: mov dword ptr [ecx], edx */ 8245 edx = MEM32(eax + 0x4); /* 0x3610C820: mov edx, dword ptr [eax + 4] */ 8246 MEM32(ecx + 0x4) = edx; /* 0x3610C823: mov dword ptr [ecx + 4], edx */ 8247 eax = MEM32(eax + 0x8); /* 0x3610C826: mov eax, dword ptr [eax + 8] */ 8248 PUSH32(esp, 0x214u); /* 0x3610C829: push 0x214 */ 8249 MEM32(ecx + 0x8) = eax; /* 0x3610C82E: mov dword ptr [ecx + 8], eax */ 8250 RECOMP_ICALL(0x3615FD6Au); /* 0x3610C831: call 0x3615fd6a */ /* not lifted */ 8251 RECOMP_FLAGS_IN(); 8252 edi = eax; /* 0x3610C836: mov edi, eax */ 8253 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8254 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8255 esp = esp + 4; /* 0x3610C838: add esp, 4 */ 8256 _flag_k = FK_ADD; 8257 MEM32(ebp + (-0x18)) = edi; /* 0x3610C83B: mov dword ptr [ebp - 0x18], edi */ 8258 /* test edi, edi */ /* 0x3610C83E: test edi, edi */ 8259 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8260 _cf = 0; 8261 _flag_k = FK_TEST; 8262 MEM32(ebp + (-0x4)) = 0; /* 0x3610C840: mov dword ptr [ebp - 4], 0 */ 8263 if (TEST_Z(_flag_a, _flag_b)) goto L_3610C8D2; /* 0x3610C847: je 0x3610c8d2 */ 8264 L_3610C84D: 8265 eax = MEM32(esi + 0x20); /* 0x3610C84D: mov eax, dword ptr [esi + 0x20] */ 8266 edx = MEM32(esi + 0x24); /* 0x3610C850: mov edx, dword ptr [esi + 0x24] */ 8267 ecx = eax; /* 0x3610C853: mov ecx, eax */ 8268 if (10u) _cf = (((ecx) >> 9) & 1u); /* 0x3610C855: shr ecx, 0xa */ 8269 if (10u) { _flag_a = recomp_flags_pack((ecx >> 10u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8270 ecx = ecx >> 10u; /* 0x3610C855: shr ecx, 0xa */ 8271 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFF01u); 8272 ecx = ecx & 0xFFFFFF01u; /* 0x3610C858: and ecx, 0xffffff01 */ 8273 _cf = 0; 8274 _flag_k = FK_TEST; 8275 PUSH32(esp, ecx); /* 0x3610C85E: push ecx */ 8276 PUSH32(esp, 0); /* 0x3610C85F: push 0 */ 8277 if (9u) _cf = (((eax) >> 8) & 1u); /* 0x3610C861: shr eax, 9 */ 8278 if (9u) { _flag_a = recomp_flags_pack((eax >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8279 eax = eax >> 9u; /* 0x3610C861: shr eax, 9 */ 8280 PUSH32(esp, 0); /* 0x3610C864: push 0 */ 8281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFF01u); 8282 eax = eax & 0xFFFFFF01u; /* 0x3610C866: and eax, 0xffffff01 */ 8283 _cf = 0; 8284 _flag_k = FK_TEST; 8285 PUSH32(esp, eax); /* 0x3610C86B: push eax */ 8286 PUSH32(esp, edx); /* 0x3610C86C: push edx */ 8287 RECOMP_ICALL(0x360F7B00u); /* 0x3610C86D: call 0x360f7b00 */ /* not lifted */ 8288 RECOMP_FLAGS_IN(); 8289 ecx = eax; /* 0x3610C872: mov ecx, eax */ 8290 RECOMP_ICALL(0x360FBE40u); /* 0x3610C874: call 0x360fbe40 */ /* not lifted */ 8291 RECOMP_FLAGS_IN(); 8292 ecx = MEM32(esi + 0x30); /* 0x3610C879: mov ecx, dword ptr [esi + 0x30] */ 8293 edx = MEM32(esi + 0x2C); /* 0x3610C87C: mov edx, dword ptr [esi + 0x2c] */ 8294 PUSH32(esp, eax); /* 0x3610C87F: push eax */ 8295 eax = MEM32(esi + 0x20); /* 0x3610C880: mov eax, dword ptr [esi + 0x20] */ 8296 if (8u) _cf = (((eax) >> 7) & 1u); /* 0x3610C883: shr eax, 8 */ 8297 if (8u) { _flag_a = recomp_flags_pack((eax >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8298 eax = eax >> 8u; /* 0x3610C883: shr eax, 8 */ 8299 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFF01u); 8300 eax = eax & 0xFFFFFF01u; /* 0x3610C886: and eax, 0xffffff01 */ 8301 _cf = 0; 8302 _flag_k = FK_TEST; 8303 PUSH32(esp, eax); /* 0x3610C88B: push eax */ 8304 eax = MEM32(esi + 0x28); /* 0x3610C88C: mov eax, dword ptr [esi + 0x28] */ 8305 PUSH32(esp, ecx); /* 0x3610C88F: push ecx */ 8306 PUSH32(esp, edx); /* 0x3610C890: push edx */ 8307 PUSH32(esp, eax); /* 0x3610C891: push eax */ 8308 ecx = edi; /* 0x3610C892: mov ecx, edi */ 8309 RECOMP_ICALL(MEM32(0x3616F764)); /* 0x3610C894: call dword ptr [0x3616f764] */ 8310 RECOMP_FLAGS_IN(); 8311 MEM32(edi) = 0x36176684u; /* 0x3610C89A: mov dword ptr [edi], 0x36176684 */ 8312 MEM32(edi + 0x8) = 0x36176674u; /* 0x3610C8A0: mov dword ptr [edi + 8], 0x36176674 */ 8313 MEM32(edi + 0x20) = 0x36176664u; /* 0x3610C8A7: mov dword ptr [edi + 0x20], 0x36176664 */ 8314 MEM32(edi + 0x38) = 0x36176654u; /* 0x3610C8AE: mov dword ptr [edi + 0x38], 0x36176654 */ 8315 MEM32(edi + 0x50) = 0x36176644u; /* 0x3610C8B5: mov dword ptr [edi + 0x50], 0x36176644 */ 8316 MEM32(edi + 0x138) = 0x36176634u; /* 0x3610C8BC: mov dword ptr [edi + 0x138], 0x36176634 */ 8317 MEM32(edi + 0x150) = 0x36176624u; /* 0x3610C8C6: mov dword ptr [edi + 0x150], 0x36176624 */ 8318 goto L_3610C8D4; /* 0x3610C8D0: jmp 0x3610c8d4 */ 8319 L_3610C8D2: 8320 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8321 edi = 0; /* 0x3610C8D2: xor edi, edi */ 8322 _cf = 0; 8323 _flag_k = FK_TEST; 8324 L_3610C8D4: 8325 /* test edi, edi */ /* 0x3610C8D4: test edi, edi */ 8326 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8327 _cf = 0; 8328 _flag_k = FK_TEST; 8329 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610C8D6: mov dword ptr [ebp - 4], 0xffffffff */ 8330 MEM32(esi + 0x60) = edi; /* 0x3610C8DD: mov dword ptr [esi + 0x60], edi */ 8331 if (TEST_NZ(_flag_a, _flag_b)) goto L_3610C8F7; /* 0x3610C8E0: jne 0x3610c8f7 */ 8332 L_3610C8E2: 8333 edi = POP32_VAL(esp); /* 0x3610C8E2: pop edi */ 8334 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x3610C8E3: mov byte ptr [esi + 0x14], 1 */ 8335 esi = POP32_VAL(esp); /* 0x3610C8E7: pop esi */ 8336 ebx = POP32_VAL(esp); /* 0x3610C8E8: pop ebx */ 8337 ecx = MEM32(ebp + (-0xC)); /* 0x3610C8E9: mov ecx, dword ptr [ebp - 0xc] */ 8338 MEM32(FS_BASE + (0)) = ecx; /* 0x3610C8EC: mov dword ptr fs:[0], ecx */ 8339 esp = ebp; /* 0x3610C8F3: mov esp, ebp */ 8340 ebp = POP32_VAL(esp); /* 0x3610C8F5: pop ebp */ 8341 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610C8F6: ret */ 8342 L_3610C8F7: 8343 ecx = edi; /* 0x3610C8F7: mov ecx, edi */ 8344 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x3610C8F9: call dword ptr [0x3616f5f8] */ 8345 RECOMP_FLAGS_IN(); 8346 eax = MEM32(esi + 0x20); /* 0x3610C8FF: mov eax, dword ptr [esi + 0x20] */ 8347 /* test HI8(eax), 8 */ /* 0x3610C902: test ah, 8 */ 8348 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 8349 _cf = 0; 8350 _flag_k = FK_NARROW(FK_TEST, 24); 8351 if (TEST_Z(_flag_a, _flag_b)) goto L_3610CAA9; /* 0x3610C905: je 0x3610caa9 */ 8352 L_3610C90B: 8353 eax = MEM32(esi + 0x28); /* 0x3610C90B: mov eax, dword ptr [esi + 0x28] */ 8354 MEM32(ebp + (-0x14)) = eax; /* 0x3610C90E: mov dword ptr [ebp - 0x14], eax */ 8355 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x3610C911: fild dword ptr [ebp - 0x14] */ 8356 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8357 edi = 0; /* 0x3610C914: xor edi, edi */ 8358 _cf = 0; 8359 _flag_k = FK_TEST; 8360 /* cmp eax, edi */ /* 0x3610C916: cmp eax, edi */ 8361 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8363 _flag_k = FK_CMP; 8364 MEM32(ebp + (-0x10)) = 0; /* 0x3610C918: mov dword ptr [ebp - 0x10], 0 */ 8365 _st[0] = (double)*(float*)ADDR(0x361708D0) / _st[0]; /* 0x3610C91F: fdivr dword ptr [0x361708d0] */ 8366 MEM32(ebp + (-0x14)) = edi; /* 0x3610C925: mov dword ptr [ebp - 0x14], edi */ 8367 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3610C928: fstp dword ptr [ebp - 0x18] */ 8368 if (CMP_L(_flag_a, _flag_b)) goto L_3610CA9D; /* 0x3610C92B: jl 0x3610ca9d */ 8369 L_3610C931: 8370 MEM32(ebp + (-0x50)) = edi; /* 0x3610C931: mov dword ptr [ebp - 0x50], edi */ 8371 L_3610C934: 8372 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610C934: fld dword ptr [ebp - 0x10] */ 8373 eax = MEM32(ebp + (-0x50)); /* 0x3610C937: mov eax, dword ptr [ebp - 0x50] */ 8374 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610C93A: fcos */ 8375 MEM32(ebp + (-0x20)) = eax; /* 0x3610C93C: mov dword ptr [ebp - 0x20], eax */ 8376 MEM32(ebp + (-0x2C)) = eax; /* 0x3610C93F: mov dword ptr [ebp - 0x2c], eax */ 8377 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x3610C942: fstp dword ptr [ebp - 0x54] */ 8378 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610C945: fld dword ptr [ebp - 0x10] */ 8379 ecx = MEM32(ebp + (-0x54)); /* 0x3610C948: mov ecx, dword ptr [ebp - 0x54] */ 8380 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3610C94B: fsin */ 8381 MEM32(ebp + (-0x24)) = ecx; /* 0x3610C94D: mov dword ptr [ebp - 0x24], ecx */ 8382 MEM32(ebp + (-0x30)) = ecx; /* 0x3610C950: mov dword ptr [ebp - 0x30], ecx */ 8383 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x3610C953: fstp dword ptr [ebp - 0x4c] */ 8384 fp_push(*(float*)&MEM32(esi + 0x34)); /* 0x3610C956: fld dword ptr [esi + 0x34] */ 8385 edx = MEM32(ebp + (-0x4C)); /* 0x3610C959: mov edx, dword ptr [ebp - 0x4c] */ 8386 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x3610C95C: fld dword ptr [ebp - 0x54] */ 8387 eax = MEM32(ebp + (-0x4C)); /* 0x3610C95F: mov eax, dword ptr [ebp - 0x4c] */ 8388 _st[0] *= _st[1]; /* 0x3610C962: fmul st(1) */ 8389 MEM32(ebp + (-0x1C)) = edx; /* 0x3610C964: mov dword ptr [ebp - 0x1c], edx */ 8390 MEM32(ebp + (-0x28)) = eax; /* 0x3610C967: mov dword ptr [ebp - 0x28], eax */ 8391 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3610C96A: fstp dword ptr [ebp - 0x24] */ 8392 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610C96D: fld dword ptr [ebp - 0x20] */ 8393 _st[0] *= _st[1]; /* 0x3610C970: fmul st(1) */ 8394 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3610C972: fstp dword ptr [ebp - 0x20] */ 8395 edx = MEM32(ebp + (-0x20)); /* 0x3610C975: mov edx, dword ptr [ebp - 0x20] */ 8396 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610C978: fld dword ptr [ebp - 0x1c] */ 8397 MEM32(ebp + (-0x74)) = edx; /* 0x3610C97B: mov dword ptr [ebp - 0x74], edx */ 8398 _st[0] *= _st[1]; /* 0x3610C97E: fmul st(1) */ 8399 edx = ebx; /* 0x3610C980: mov edx, ebx */ 8400 eax = MEM32(edx); /* 0x3610C982: mov eax, dword ptr [edx] */ 8401 MEM32(ebp + (-0x3C)) = eax; /* 0x3610C984: mov dword ptr [ebp - 0x3c], eax */ 8402 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3610C987: fstp dword ptr [ebp - 0x1c] */ 8403 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610C98A: fstp st(0) */ 8404 fp_push(*(float*)&MEM32(esi + 0x38)); /* 0x3610C98C: fld dword ptr [esi + 0x38] */ 8405 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x3610C98F: fld dword ptr [ebp - 0x54] */ 8406 _st[0] *= _st[1]; /* 0x3610C992: fmul st(1) */ 8407 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3610C994: fstp dword ptr [ebp - 0x30] */ 8408 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3610C997: fld dword ptr [ebp - 0x2c] */ 8409 _st[0] *= _st[1]; /* 0x3610C99A: fmul st(1) */ 8410 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3610C99C: fstp dword ptr [ebp - 0x2c] */ 8411 ecx = MEM32(ebp + (-0x2C)); /* 0x3610C99F: mov ecx, dword ptr [ebp - 0x2c] */ 8412 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3610C9A2: fld dword ptr [ebp - 0x28] */ 8413 MEM32(ebp + (-0x80)) = ecx; /* 0x3610C9A5: mov dword ptr [ebp - 0x80], ecx */ 8414 ecx = MEM32(edx + 0x4); /* 0x3610C9A8: mov ecx, dword ptr [edx + 4] */ 8415 _st[0] *= _st[1]; /* 0x3610C9AB: fmul st(1) */ 8416 edx = MEM32(edx + 0x8); /* 0x3610C9AD: mov edx, dword ptr [edx + 8] */ 8417 MEM32(ebp + (-0x38)) = ecx; /* 0x3610C9B0: mov dword ptr [ebp - 0x38], ecx */ 8418 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3610C9B3: fstp dword ptr [ebp - 0x28] */ 8419 MEM32(ebp + (-0x34)) = edx; /* 0x3610C9B6: mov dword ptr [ebp - 0x34], edx */ 8420 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610C9B9: fstp st(0) */ 8421 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3610C9BB: fld dword ptr [ebp - 0x3c] */ 8422 _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3610C9BE: fadd dword ptr [ebp - 0x24] */ 8423 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610C9C1: fstp dword ptr [ebp - 0x3c] */ 8424 eax = MEM32(ebp + (-0x3C)); /* 0x3610C9C4: mov eax, dword ptr [ebp - 0x3c] */ 8425 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3610C9C7: fld dword ptr [ebp - 0x38] */ 8426 MEM32(ebp + (-0x60)) = eax; /* 0x3610C9CA: mov dword ptr [ebp - 0x60], eax */ 8427 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3610C9CD: fadd dword ptr [ebp - 0x20] */ 8428 eax = ebp + (-0x60); /* 0x3610C9D0: lea eax, [ebp - 0x60] */ 8429 PUSH32(esp, eax); /* 0x3610C9D3: push eax */ 8430 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3610C9D4: fstp dword ptr [ebp - 0x38] */ 8431 ecx = MEM32(ebp + (-0x38)); /* 0x3610C9D7: mov ecx, dword ptr [ebp - 0x38] */ 8432 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3610C9DA: fld dword ptr [ebp - 0x34] */ 8433 MEM32(ebp + (-0x5C)) = ecx; /* 0x3610C9DD: mov dword ptr [ebp - 0x5c], ecx */ 8434 _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3610C9E0: fadd dword ptr [ebp - 0x1c] */ 8435 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3610C9E3: fstp dword ptr [ebp - 0x34] */ 8436 edx = MEM32(ebp + (-0x34)); /* 0x3610C9E6: mov edx, dword ptr [ebp - 0x34] */ 8437 MEM32(ebp + (-0x58)) = edx; /* 0x3610C9E9: mov dword ptr [ebp - 0x58], edx */ 8438 RECOMP_ICALL(0x360FC710u); /* 0x3610C9EC: call 0x360fc710 */ /* not lifted */ 8439 RECOMP_FLAGS_IN(); 8440 _st[0] += (double)*(float*)ADDR(esi + 0x4C); /* 0x3610C9F1: fadd dword ptr [esi + 0x4c] */ 8441 ecx = ebx; /* 0x3610C9F4: mov ecx, ebx */ 8442 edx = MEM32(ecx); /* 0x3610C9F6: mov edx, dword ptr [ecx] */ 8443 _st[0] -= (double)*(float*)ADDR(esi + 0x54); /* 0x3610C9F8: fsub dword ptr [esi + 0x54] */ 8444 eax = MEM32(ecx + 0x4); /* 0x3610C9FB: mov eax, dword ptr [ecx + 4] */ 8445 ecx = MEM32(ecx + 0x8); /* 0x3610C9FE: mov ecx, dword ptr [ecx + 8] */ 8446 MEM32(ebp + (-0x48)) = edx; /* 0x3610CA01: mov dword ptr [ebp - 0x48], edx */ 8447 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x3610CA04: fstp dword ptr [ebp - 0x74] */ 8448 MEM32(ebp + (-0x44)) = eax; /* 0x3610CA07: mov dword ptr [ebp - 0x44], eax */ 8449 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x3610CA0A: fld dword ptr [ebp - 0x48] */ 8450 MEM32(ebp + (-0x40)) = ecx; /* 0x3610CA0D: mov dword ptr [ebp - 0x40], ecx */ 8451 _st[0] += (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3610CA10: fadd dword ptr [ebp - 0x30] */ 8452 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x3610CA13: fstp dword ptr [ebp - 0x48] */ 8453 edx = MEM32(ebp + (-0x48)); /* 0x3610CA16: mov edx, dword ptr [ebp - 0x48] */ 8454 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3610CA19: fld dword ptr [ebp - 0x44] */ 8455 MEM32(ebp + (-0x6C)) = edx; /* 0x3610CA1C: mov dword ptr [ebp - 0x6c], edx */ 8456 _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x3610CA1F: fadd dword ptr [ebp - 0x2c] */ 8457 edx = ebp + (-0x6C); /* 0x3610CA22: lea edx, [ebp - 0x6c] */ 8458 PUSH32(esp, edx); /* 0x3610CA25: push edx */ 8459 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3610CA26: fstp dword ptr [ebp - 0x44] */ 8460 eax = MEM32(ebp + (-0x44)); /* 0x3610CA29: mov eax, dword ptr [ebp - 0x44] */ 8461 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x3610CA2C: fld dword ptr [ebp - 0x40] */ 8462 MEM32(ebp + (-0x68)) = eax; /* 0x3610CA2F: mov dword ptr [ebp - 0x68], eax */ 8463 _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3610CA32: fadd dword ptr [ebp - 0x28] */ 8464 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3610CA35: fstp dword ptr [ebp - 0x40] */ 8465 ecx = MEM32(ebp + (-0x40)); /* 0x3610CA38: mov ecx, dword ptr [ebp - 0x40] */ 8466 MEM32(ebp + (-0x64)) = ecx; /* 0x3610CA3B: mov dword ptr [ebp - 0x64], ecx */ 8467 RECOMP_ICALL(0x360FC710u); /* 0x3610CA3E: call 0x360fc710 */ /* not lifted */ 8468 RECOMP_FLAGS_IN(); 8469 _st[0] += (double)*(float*)ADDR(esi + 0x4C); /* 0x3610CA43: fadd dword ptr [esi + 0x4c] */ 8470 eax = MEM32(esi + 0x64); /* 0x3610CA46: mov eax, dword ptr [esi + 0x64] */ 8471 edx = MEM32(ebp + (-0x74)); /* 0x3610CA49: mov edx, dword ptr [ebp - 0x74] */ 8472 _st[0] -= (double)*(float*)ADDR(esi + 0x54); /* 0x3610CA4C: fsub dword ptr [esi + 0x54] */ 8473 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8474 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8475 eax = eax + edi; /* 0x3610CA4F: add eax, edi */ 8476 _flag_k = FK_ADD; 8477 ecx = eax; /* 0x3610CA51: mov ecx, eax */ 8478 eax = MEM32(ebp + (-0x24)); /* 0x3610CA53: mov eax, dword ptr [ebp - 0x24] */ 8479 MEM32(ecx) = eax; /* 0x3610CA56: mov dword ptr [ecx], eax */ 8480 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3610CA58: fstp dword ptr [ebp - 0x80] */ 8481 eax = MEM32(ebp + (-0x1C)); /* 0x3610CA5B: mov eax, dword ptr [ebp - 0x1c] */ 8482 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610CA5E: fld dword ptr [ebp - 0x18] */ 8483 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3610CA61: fadd dword ptr [ebp - 0x10] */ 8484 MEM32(ecx + 0x4) = edx; /* 0x3610CA64: mov dword ptr [ecx + 4], edx */ 8485 edx = MEM32(ebp + (-0x80)); /* 0x3610CA67: mov edx, dword ptr [ebp - 0x80] */ 8486 MEM32(ecx + 0x8) = eax; /* 0x3610CA6A: mov dword ptr [ecx + 8], eax */ 8487 eax = MEM32(esi + 0x64); /* 0x3610CA6D: mov eax, dword ptr [esi + 0x64] */ 8488 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3610CA70: fstp dword ptr [ebp - 0x10] */ 8489 ecx = eax + edi + 0xC; /* 0x3610CA73: lea ecx, [eax + edi + 0xc] */ 8490 eax = MEM32(ebp + (-0x30)); /* 0x3610CA77: mov eax, dword ptr [ebp - 0x30] */ 8491 MEM32(ecx) = eax; /* 0x3610CA7A: mov dword ptr [ecx], eax */ 8492 eax = MEM32(ebp + (-0x28)); /* 0x3610CA7C: mov eax, dword ptr [ebp - 0x28] */ 8493 MEM32(ecx + 0x4) = edx; /* 0x3610CA7F: mov dword ptr [ecx + 4], edx */ 8494 MEM32(ecx + 0x8) = eax; /* 0x3610CA82: mov dword ptr [ecx + 8], eax */ 8495 eax = MEM32(ebp + (-0x14)); /* 0x3610CA85: mov eax, dword ptr [ebp - 0x14] */ 8496 ecx = MEM32(esi + 0x28); /* 0x3610CA88: mov ecx, dword ptr [esi + 0x28] */ 8497 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8498 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8499 esp = esp + 8; /* 0x3610CA8B: add esp, 8 */ 8500 _flag_k = FK_ADD; 8501 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8502 eax = eax + 1; /* 0x3610CA8E: inc eax */ 8503 _flag_k = FK_INC; 8504 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u); 8505 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8506 edi = edi + 0x18u; /* 0x3610CA8F: add edi, 0x18 */ 8507 _flag_k = FK_ADD; 8508 /* cmp eax, ecx */ /* 0x3610CA92: cmp eax, ecx */ 8509 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8511 _flag_k = FK_CMP; 8512 MEM32(ebp + (-0x14)) = eax; /* 0x3610CA94: mov dword ptr [ebp - 0x14], eax */ 8513 RECOMP_BACKEDGE(); 8514 if (CMP_LE(_flag_a, _flag_b)) goto L_3610C934; /* 0x3610CA97: jle 0x3610c934 */ 8515 L_3610CA9D: 8516 ecx = MEM32(esi + 0x60); /* 0x3610CA9D: mov ecx, dword ptr [esi + 0x60] */ 8517 PUSH32(esp, 0); /* 0x3610CAA0: push 0 */ 8518 PUSH32(esp, ebx); /* 0x3610CAA2: push ebx */ 8519 RECOMP_ICALL(MEM32(0x3616F648)); /* 0x3610CAA3: call dword ptr [0x3616f648] */ 8520 RECOMP_FLAGS_IN(); 8521 L_3610CAA9: 8522 eax = MEM32(esi); /* 0x3610CAA9: mov eax, dword ptr [esi] */ 8523 ecx = esi; /* 0x3610CAAB: mov ecx, esi */ 8524 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3610CAAD: call dword ptr [eax + 4] */ 8525 RECOMP_FLAGS_IN(); 8526 ecx = MEM32(ebp + (-0xC)); /* 0x3610CAB0: mov ecx, dword ptr [ebp - 0xc] */ 8527 edi = POP32_VAL(esp); /* 0x3610CAB3: pop edi */ 8528 esi = POP32_VAL(esp); /* 0x3610CAB4: pop esi */ 8529 ebx = POP32_VAL(esp); /* 0x3610CAB5: pop ebx */ 8530 MEM32(FS_BASE + (0)) = ecx; /* 0x3610CAB6: mov dword ptr fs:[0], ecx */ 8531 esp = ebp; /* 0x3610CABD: mov esp, ebp */ 8532 ebp = POP32_VAL(esp); /* 0x3610CABF: pop ebp */ 8533 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610CAC0: ret */ 8534 RECOMP_REGS_OUT(); 8535 } 8536 8537 void sub_3610CAD0(void) { 8538 int _fpu_cmp = 0; 8539 uint32_t _cf = 0; 8540 int _df = 1; 8541 uint32_t _flag_k = FK_NONE; 8542 uint32_t _flag_a = 0, _flag_b = 0; 8543 uint32_t _itail_tgt = 0; 8544 RECOMP_REGS_LOCALS 8545 RECOMP_ENTER(0x3610CAD0u); 8546 8547 L_3610CAD0: 8548 PUSH32(esp, ebp); /* 0x3610CAD0: push ebp */ 8549 ebp = esp; /* 0x3610CAD1: mov ebp, esp */ 8550 PUSH32(esp, esi); /* 0x3610CAD3: push esi */ 8551 esi = ecx; /* 0x3610CAD4: mov esi, ecx */ 8552 RECOMP_ICALL(MEM32(0x3616F768)); /* 0x3610CAD6: call dword ptr [0x3616f768] */ 8553 RECOMP_FLAGS_IN(); 8554 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610CADC: test byte ptr [ebp + 8], 1 */ 8555 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8556 _cf = 0; 8557 _flag_k = FK_NARROW(FK_TEST, 24); 8558 if (TEST_Z(_flag_a, _flag_b)) goto L_3610CAEB; /* 0x3610CAE0: je 0x3610caeb */ 8559 L_3610CAE2: 8560 PUSH32(esp, esi); /* 0x3610CAE2: push esi */ 8561 RECOMP_ICALL(0x3615FCC4u); /* 0x3610CAE3: call 0x3615fcc4 */ /* not lifted */ 8562 RECOMP_FLAGS_IN(); 8563 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8565 esp = esp + 4; /* 0x3610CAE8: add esp, 4 */ 8566 _flag_k = FK_ADD; 8567 L_3610CAEB: 8568 eax = esi; /* 0x3610CAEB: mov eax, esi */ 8569 esi = POP32_VAL(esp); /* 0x3610CAED: pop esi */ 8570 ebp = POP32_VAL(esp); /* 0x3610CAEE: pop ebp */ 8571 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610CAEF: ret 4 */ 8572 RECOMP_REGS_OUT(); 8573 } 8574 8575 void sub_3610CB00(void) { 8576 int _fpu_cmp = 0; 8577 uint32_t _cf = 0; 8578 int _df = 1; 8579 uint32_t _flag_k = FK_NONE; 8580 uint32_t _flag_a = 0, _flag_b = 0; 8581 uint32_t _itail_tgt = 0; 8582 RECOMP_REGS_LOCALS 8583 RECOMP_ENTER(0x3610CB00u); 8584 8585 L_3610CB00: 8586 PUSH32(esp, ebp); /* 0x3610CB00: push ebp */ 8587 ebp = esp; /* 0x3610CB01: mov ebp, esp */ 8588 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610CB03: push -1 */ 8589 PUSH32(esp, 0x3616A6ABu); /* 0x3610CB05: push 0x3616a6ab */ 8590 eax = MEM32(FS_BASE + (0)); /* 0x3610CB0A: mov eax, dword ptr fs:[0] */ 8591 PUSH32(esp, eax); /* 0x3610CB10: push eax */ 8592 MEM32(FS_BASE + (0)) = esp; /* 0x3610CB11: mov dword ptr fs:[0], esp */ 8593 PUSH32(esp, ecx); /* 0x3610CB18: push ecx */ 8594 PUSH32(esp, esi); /* 0x3610CB19: push esi */ 8595 PUSH32(esp, edi); /* 0x3610CB1A: push edi */ 8596 esi = ecx; /* 0x3610CB1B: mov esi, ecx */ 8597 RECOMP_ICALL(0x3610C4C0u); /* 0x3610CB1D: call 0x3610c4c0 */ /* not lifted */ 8598 RECOMP_FLAGS_IN(); 8599 edi = eax; /* 0x3610CB22: mov edi, eax */ 8600 PUSH32(esp, 0); /* 0x3610CB24: push 0 */ 8601 ecx = edi; /* 0x3610CB26: mov ecx, edi */ 8602 RECOMP_ICALL(0x36136FE0u); /* 0x3610CB28: call 0x36136fe0 */ /* not lifted */ 8603 RECOMP_FLAGS_IN(); 8604 PUSH32(esp, 8); /* 0x3610CB2D: push 8 */ 8605 ecx = edi; /* 0x3610CB2F: mov ecx, edi */ 8606 MEM32(esi + 0x20) = eax; /* 0x3610CB31: mov dword ptr [esi + 0x20], eax */ 8607 RECOMP_ICALL(0x36137010u); /* 0x3610CB34: call 0x36137010 */ /* not lifted */ 8608 RECOMP_FLAGS_IN(); 8609 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x3610CB39: fstp dword ptr [esi + 0x10] */ 8610 PUSH32(esp, 9); /* 0x3610CB3C: push 9 */ 8611 ecx = edi; /* 0x3610CB3E: mov ecx, edi */ 8612 RECOMP_ICALL(0x36136FE0u); /* 0x3610CB40: call 0x36136fe0 */ /* not lifted */ 8613 RECOMP_FLAGS_IN(); 8614 PUSH32(esp, 0xAu); /* 0x3610CB45: push 0xa */ 8615 ecx = edi; /* 0x3610CB47: mov ecx, edi */ 8616 MEM32(esi + 0x24) = eax; /* 0x3610CB49: mov dword ptr [esi + 0x24], eax */ 8617 RECOMP_ICALL(0x36136FE0u); /* 0x3610CB4C: call 0x36136fe0 */ /* not lifted */ 8618 RECOMP_FLAGS_IN(); 8619 PUSH32(esp, 0xBu); /* 0x3610CB51: push 0xb */ 8620 ecx = edi; /* 0x3610CB53: mov ecx, edi */ 8621 MEM32(esi + 0x28) = eax; /* 0x3610CB55: mov dword ptr [esi + 0x28], eax */ 8622 RECOMP_ICALL(0x36137010u); /* 0x3610CB58: call 0x36137010 */ /* not lifted */ 8623 RECOMP_FLAGS_IN(); 8624 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x2C) = _v; } /* 0x3610CB5D: fstp dword ptr [esi + 0x2c] */ 8625 PUSH32(esp, 0xCu); /* 0x3610CB60: push 0xc */ 8626 ecx = edi; /* 0x3610CB62: mov ecx, edi */ 8627 RECOMP_ICALL(0x36137010u); /* 0x3610CB64: call 0x36137010 */ /* not lifted */ 8628 RECOMP_FLAGS_IN(); 8629 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x3610CB69: fstp dword ptr [esi + 0x30] */ 8630 PUSH32(esp, 0xDu); /* 0x3610CB6C: push 0xd */ 8631 ecx = edi; /* 0x3610CB6E: mov ecx, edi */ 8632 RECOMP_ICALL(0x36137010u); /* 0x3610CB70: call 0x36137010 */ /* not lifted */ 8633 RECOMP_FLAGS_IN(); 8634 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x34) = _v; } /* 0x3610CB75: fstp dword ptr [esi + 0x34] */ 8635 PUSH32(esp, 0xEu); /* 0x3610CB78: push 0xe */ 8636 ecx = edi; /* 0x3610CB7A: mov ecx, edi */ 8637 RECOMP_ICALL(0x36137010u); /* 0x3610CB7C: call 0x36137010 */ /* not lifted */ 8638 RECOMP_FLAGS_IN(); 8639 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x38) = _v; } /* 0x3610CB81: fstp dword ptr [esi + 0x38] */ 8640 PUSH32(esp, 0xFu); /* 0x3610CB84: push 0xf */ 8641 ecx = edi; /* 0x3610CB86: mov ecx, edi */ 8642 RECOMP_ICALL(0x36137010u); /* 0x3610CB88: call 0x36137010 */ /* not lifted */ 8643 RECOMP_FLAGS_IN(); 8644 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3C) = _v; } /* 0x3610CB8D: fstp dword ptr [esi + 0x3c] */ 8645 PUSH32(esp, 0x10u); /* 0x3610CB90: push 0x10 */ 8646 ecx = edi; /* 0x3610CB92: mov ecx, edi */ 8647 RECOMP_ICALL(0x36137010u); /* 0x3610CB94: call 0x36137010 */ /* not lifted */ 8648 RECOMP_FLAGS_IN(); 8649 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x40) = _v; } /* 0x3610CB99: fstp dword ptr [esi + 0x40] */ 8650 PUSH32(esp, 0x11u); /* 0x3610CB9C: push 0x11 */ 8651 ecx = edi; /* 0x3610CB9E: mov ecx, edi */ 8652 RECOMP_ICALL(0x36136FE0u); /* 0x3610CBA0: call 0x36136fe0 */ /* not lifted */ 8653 RECOMP_FLAGS_IN(); 8654 PUSH32(esp, 0x12u); /* 0x3610CBA5: push 0x12 */ 8655 ecx = edi; /* 0x3610CBA7: mov ecx, edi */ 8656 MEM32(esi + 0x44) = eax; /* 0x3610CBA9: mov dword ptr [esi + 0x44], eax */ 8657 RECOMP_ICALL(0x36136FE0u); /* 0x3610CBAC: call 0x36136fe0 */ /* not lifted */ 8658 RECOMP_FLAGS_IN(); 8659 PUSH32(esp, 0x13u); /* 0x3610CBB1: push 0x13 */ 8660 ecx = edi; /* 0x3610CBB3: mov ecx, edi */ 8661 MEM32(esi + 0x48) = eax; /* 0x3610CBB5: mov dword ptr [esi + 0x48], eax */ 8662 RECOMP_ICALL(0x36137010u); /* 0x3610CBB8: call 0x36137010 */ /* not lifted */ 8663 RECOMP_FLAGS_IN(); 8664 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4C) = _v; } /* 0x3610CBBD: fstp dword ptr [esi + 0x4c] */ 8665 eax = MEM32(esi + 0x28); /* 0x3610CBC0: mov eax, dword ptr [esi + 0x28] */ 8666 edi = eax + eax + 0x2; /* 0x3610CBC3: lea edi, [eax + eax + 2] */ 8667 ecx = edi + edi * 2; /* 0x3610CBC7: lea ecx, [edi + edi*2] */ 8668 if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3610CBCA: shl ecx, 2 */ 8669 if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8670 ecx = ecx << 2u; /* 0x3610CBCA: shl ecx, 2 */ 8671 PUSH32(esp, ecx); /* 0x3610CBCD: push ecx */ 8672 RECOMP_ICALL(0x3615FD6Au); /* 0x3610CBCE: call 0x3615fd6a */ /* not lifted */ 8673 RECOMP_FLAGS_IN(); 8674 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8676 esp = esp + 4; /* 0x3610CBD3: add esp, 4 */ 8677 _flag_k = FK_ADD; 8678 MEM32(ebp + (-0x10)) = eax; /* 0x3610CBD6: mov dword ptr [ebp - 0x10], eax */ 8679 /* test eax, eax */ /* 0x3610CBD9: test eax, eax */ 8680 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8681 _cf = 0; 8682 _flag_k = FK_TEST; 8683 MEM32(ebp + (-0x4)) = 0; /* 0x3610CBDB: mov dword ptr [ebp - 4], 0 */ 8684 if (TEST_Z(_flag_a, _flag_b)) goto L_3610CC01; /* 0x3610CBE2: je 0x3610cc01 */ 8685 L_3610CBE4: 8686 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 8687 edi = edi - 1; /* 0x3610CBE4: dec edi */ 8688 _flag_k = FK_DEC; 8689 /* test edi, edi */ /* 0x3610CBE5: test edi, edi */ 8690 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8691 _cf = 0; 8692 _flag_k = FK_TEST; 8693 PUSH32(esp, ebx); /* 0x3610CBE7: push ebx */ 8694 ebx = eax; /* 0x3610CBE8: mov ebx, eax */ 8695 if (TEST_S(_flag_a, _flag_b)) goto L_3610CBFE; /* 0x3610CBEA: jl 0x3610cbfe */ 8696 L_3610CBEC: 8697 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 8698 edi = edi + 1; /* 0x3610CBEC: inc edi */ 8699 _flag_k = FK_INC; 8700 L_3610CBED: 8701 ecx = ebx; /* 0x3610CBED: mov ecx, ebx */ 8702 RECOMP_ICALL(MEM32(0x36170174)); /* 0x3610CBEF: call dword ptr [0x36170174] */ 8703 RECOMP_FLAGS_IN(); 8704 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 8705 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8706 ebx = ebx + 0xCu; /* 0x3610CBF5: add ebx, 0xc */ 8707 _flag_k = FK_ADD; 8708 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 8709 edi = edi - 1; /* 0x3610CBF8: dec edi */ 8710 _flag_k = FK_DEC; 8711 RECOMP_BACKEDGE(); 8712 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610CBED; /* 0x3610CBF9: jne 0x3610cbed */ 8713 L_3610CBFB: 8714 eax = MEM32(ebp + (-0x10)); /* 0x3610CBFB: mov eax, dword ptr [ebp - 0x10] */ 8715 L_3610CBFE: 8716 ebx = POP32_VAL(esp); /* 0x3610CBFE: pop ebx */ 8717 goto L_3610CC03; /* 0x3610CBFF: jmp 0x3610cc03 */ 8718 L_3610CC01: 8719 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8720 eax = 0; /* 0x3610CC01: xor eax, eax */ 8721 _cf = 0; 8722 _flag_k = FK_TEST; 8723 L_3610CC03: 8724 fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x3610CC03: fld dword ptr [esi + 0x10] */ 8725 ecx = MEM32(ebp + (-0xC)); /* 0x3610CC06: mov ecx, dword ptr [ebp - 0xc] */ 8726 _st[0] -= (double)*(float*)ADDR(esi + 0x40); /* 0x3610CC09: fsub dword ptr [esi + 0x40] */ 8727 MEM32(esi + 0x64) = eax; /* 0x3610CC0C: mov dword ptr [esi + 0x64], eax */ 8728 edi = POP32_VAL(esp); /* 0x3610CC0F: pop edi */ 8729 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x68) = _v; } /* 0x3610CC10: fstp dword ptr [esi + 0x68] */ 8730 esi = POP32_VAL(esp); /* 0x3610CC13: pop esi */ 8731 MEM32(FS_BASE + (0)) = ecx; /* 0x3610CC14: mov dword ptr fs:[0], ecx */ 8732 esp = ebp; /* 0x3610CC1B: mov esp, ebp */ 8733 ebp = POP32_VAL(esp); /* 0x3610CC1D: pop ebp */ 8734 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610CC1E: ret */ 8735 RECOMP_REGS_OUT(); 8736 } 8737 8738 void sub_3610CC20(void) { 8739 int _fpu_cmp = 0; 8740 uint32_t _cf = 0; 8741 int _df = 1; 8742 uint32_t _flag_k = FK_NONE; 8743 uint32_t _flag_a = 0, _flag_b = 0; 8744 uint32_t _itail_tgt = 0; 8745 RECOMP_REGS_LOCALS 8746 RECOMP_ENTER(0x3610CC20u); 8747 8748 goto L_3610CC20; 8749 L_3610CAD0: 8750 PUSH32(esp, ebp); /* 0x3610CAD0: push ebp */ 8751 ebp = esp; /* 0x3610CAD1: mov ebp, esp */ 8752 PUSH32(esp, esi); /* 0x3610CAD3: push esi */ 8753 esi = ecx; /* 0x3610CAD4: mov esi, ecx */ 8754 RECOMP_ICALL(MEM32(0x3616F768)); /* 0x3610CAD6: call dword ptr [0x3616f768] */ 8755 RECOMP_FLAGS_IN(); 8756 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610CADC: test byte ptr [ebp + 8], 1 */ 8757 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8758 _cf = 0; 8759 _flag_k = FK_NARROW(FK_TEST, 24); 8760 if (TEST_Z(_flag_a, _flag_b)) goto L_3610CAEB; /* 0x3610CAE0: je 0x3610caeb */ 8761 L_3610CAE2: 8762 PUSH32(esp, esi); /* 0x3610CAE2: push esi */ 8763 RECOMP_ICALL(0x3615FCC4u); /* 0x3610CAE3: call 0x3615fcc4 */ /* not lifted */ 8764 RECOMP_FLAGS_IN(); 8765 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8767 esp = esp + 4; /* 0x3610CAE8: add esp, 4 */ 8768 _flag_k = FK_ADD; 8769 L_3610CAEB: 8770 eax = esi; /* 0x3610CAEB: mov eax, esi */ 8771 esi = POP32_VAL(esp); /* 0x3610CAED: pop esi */ 8772 ebp = POP32_VAL(esp); /* 0x3610CAEE: pop ebp */ 8773 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610CAEF: ret 4 */ 8774 L_3610CC20: 8775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 8776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8777 ecx = ecx - 8; /* 0x3610CC20: sub ecx, 8 */ 8778 _flag_k = FK_CMP; 8779 RECOMP_BACKEDGE(); 8780 goto L_3610CAD0; /* 0x3610CC23: jmp 0x3610cad0 */ 8781 { RECOMP_REGS_OUT(); return; } /* end of function */ 8782 RECOMP_REGS_OUT(); 8783 } 8784 8785 void sub_3610CC30(void) { 8786 int _fpu_cmp = 0; 8787 uint32_t _cf = 0; 8788 int _df = 1; 8789 uint32_t _flag_k = FK_NONE; 8790 uint32_t _flag_a = 0, _flag_b = 0; 8791 uint32_t _itail_tgt = 0; 8792 RECOMP_REGS_LOCALS 8793 RECOMP_ENTER(0x3610CC30u); 8794 8795 goto L_3610CC30; 8796 L_3610CAD0: 8797 PUSH32(esp, ebp); /* 0x3610CAD0: push ebp */ 8798 ebp = esp; /* 0x3610CAD1: mov ebp, esp */ 8799 PUSH32(esp, esi); /* 0x3610CAD3: push esi */ 8800 esi = ecx; /* 0x3610CAD4: mov esi, ecx */ 8801 RECOMP_ICALL(MEM32(0x3616F768)); /* 0x3610CAD6: call dword ptr [0x3616f768] */ 8802 RECOMP_FLAGS_IN(); 8803 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610CADC: test byte ptr [ebp + 8], 1 */ 8804 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8805 _cf = 0; 8806 _flag_k = FK_NARROW(FK_TEST, 24); 8807 if (TEST_Z(_flag_a, _flag_b)) goto L_3610CAEB; /* 0x3610CAE0: je 0x3610caeb */ 8808 L_3610CAE2: 8809 PUSH32(esp, esi); /* 0x3610CAE2: push esi */ 8810 RECOMP_ICALL(0x3615FCC4u); /* 0x3610CAE3: call 0x3615fcc4 */ /* not lifted */ 8811 RECOMP_FLAGS_IN(); 8812 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8813 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8814 esp = esp + 4; /* 0x3610CAE8: add esp, 4 */ 8815 _flag_k = FK_ADD; 8816 L_3610CAEB: 8817 eax = esi; /* 0x3610CAEB: mov eax, esi */ 8818 esi = POP32_VAL(esp); /* 0x3610CAED: pop esi */ 8819 ebp = POP32_VAL(esp); /* 0x3610CAEE: pop ebp */ 8820 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610CAEF: ret 4 */ 8821 L_3610CC30: 8822 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 8823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8824 ecx = ecx - 0x20u; /* 0x3610CC30: sub ecx, 0x20 */ 8825 _flag_k = FK_CMP; 8826 RECOMP_BACKEDGE(); 8827 goto L_3610CAD0; /* 0x3610CC33: jmp 0x3610cad0 */ 8828 { RECOMP_REGS_OUT(); return; } /* end of function */ 8829 RECOMP_REGS_OUT(); 8830 } 8831 8832 void sub_3610CC40(void) { 8833 int _fpu_cmp = 0; 8834 uint32_t _cf = 0; 8835 int _df = 1; 8836 uint32_t _flag_k = FK_NONE; 8837 uint32_t _flag_a = 0, _flag_b = 0; 8838 uint32_t _itail_tgt = 0; 8839 RECOMP_REGS_LOCALS 8840 RECOMP_ENTER(0x3610CC40u); 8841 8842 goto L_3610CC40; 8843 L_3610CAD0: 8844 PUSH32(esp, ebp); /* 0x3610CAD0: push ebp */ 8845 ebp = esp; /* 0x3610CAD1: mov ebp, esp */ 8846 PUSH32(esp, esi); /* 0x3610CAD3: push esi */ 8847 esi = ecx; /* 0x3610CAD4: mov esi, ecx */ 8848 RECOMP_ICALL(MEM32(0x3616F768)); /* 0x3610CAD6: call dword ptr [0x3616f768] */ 8849 RECOMP_FLAGS_IN(); 8850 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610CADC: test byte ptr [ebp + 8], 1 */ 8851 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8852 _cf = 0; 8853 _flag_k = FK_NARROW(FK_TEST, 24); 8854 if (TEST_Z(_flag_a, _flag_b)) goto L_3610CAEB; /* 0x3610CAE0: je 0x3610caeb */ 8855 L_3610CAE2: 8856 PUSH32(esp, esi); /* 0x3610CAE2: push esi */ 8857 RECOMP_ICALL(0x3615FCC4u); /* 0x3610CAE3: call 0x3615fcc4 */ /* not lifted */ 8858 RECOMP_FLAGS_IN(); 8859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8861 esp = esp + 4; /* 0x3610CAE8: add esp, 4 */ 8862 _flag_k = FK_ADD; 8863 L_3610CAEB: 8864 eax = esi; /* 0x3610CAEB: mov eax, esi */ 8865 esi = POP32_VAL(esp); /* 0x3610CAED: pop esi */ 8866 ebp = POP32_VAL(esp); /* 0x3610CAEE: pop ebp */ 8867 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610CAEF: ret 4 */ 8868 L_3610CC40: 8869 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 8870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8871 ecx = ecx - 0x38u; /* 0x3610CC40: sub ecx, 0x38 */ 8872 _flag_k = FK_CMP; 8873 RECOMP_BACKEDGE(); 8874 goto L_3610CAD0; /* 0x3610CC43: jmp 0x3610cad0 */ 8875 { RECOMP_REGS_OUT(); return; } /* end of function */ 8876 RECOMP_REGS_OUT(); 8877 } 8878 8879 void sub_3610CC50(void) { 8880 int _fpu_cmp = 0; 8881 uint32_t _cf = 0; 8882 int _df = 1; 8883 uint32_t _flag_k = FK_NONE; 8884 uint32_t _flag_a = 0, _flag_b = 0; 8885 uint32_t _itail_tgt = 0; 8886 RECOMP_REGS_LOCALS 8887 RECOMP_ENTER(0x3610CC50u); 8888 8889 goto L_3610CC50; 8890 L_3610CAD0: 8891 PUSH32(esp, ebp); /* 0x3610CAD0: push ebp */ 8892 ebp = esp; /* 0x3610CAD1: mov ebp, esp */ 8893 PUSH32(esp, esi); /* 0x3610CAD3: push esi */ 8894 esi = ecx; /* 0x3610CAD4: mov esi, ecx */ 8895 RECOMP_ICALL(MEM32(0x3616F768)); /* 0x3610CAD6: call dword ptr [0x3616f768] */ 8896 RECOMP_FLAGS_IN(); 8897 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610CADC: test byte ptr [ebp + 8], 1 */ 8898 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8899 _cf = 0; 8900 _flag_k = FK_NARROW(FK_TEST, 24); 8901 if (TEST_Z(_flag_a, _flag_b)) goto L_3610CAEB; /* 0x3610CAE0: je 0x3610caeb */ 8902 L_3610CAE2: 8903 PUSH32(esp, esi); /* 0x3610CAE2: push esi */ 8904 RECOMP_ICALL(0x3615FCC4u); /* 0x3610CAE3: call 0x3615fcc4 */ /* not lifted */ 8905 RECOMP_FLAGS_IN(); 8906 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8908 esp = esp + 4; /* 0x3610CAE8: add esp, 4 */ 8909 _flag_k = FK_ADD; 8910 L_3610CAEB: 8911 eax = esi; /* 0x3610CAEB: mov eax, esi */ 8912 esi = POP32_VAL(esp); /* 0x3610CAED: pop esi */ 8913 ebp = POP32_VAL(esp); /* 0x3610CAEE: pop ebp */ 8914 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610CAEF: ret 4 */ 8915 L_3610CC50: 8916 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 8917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8918 ecx = ecx - 0x50u; /* 0x3610CC50: sub ecx, 0x50 */ 8919 _flag_k = FK_CMP; 8920 RECOMP_BACKEDGE(); 8921 goto L_3610CAD0; /* 0x3610CC53: jmp 0x3610cad0 */ 8922 { RECOMP_REGS_OUT(); return; } /* end of function */ 8923 RECOMP_REGS_OUT(); 8924 } 8925 8926 void sub_3610CC60(void) { 8927 int _fpu_cmp = 0; 8928 uint32_t _cf = 0; 8929 int _df = 1; 8930 uint32_t _flag_k = FK_NONE; 8931 uint32_t _flag_a = 0, _flag_b = 0; 8932 uint32_t _itail_tgt = 0; 8933 RECOMP_REGS_LOCALS 8934 RECOMP_ENTER(0x3610CC60u); 8935 8936 goto L_3610CC60; 8937 L_3610CAD0: 8938 PUSH32(esp, ebp); /* 0x3610CAD0: push ebp */ 8939 ebp = esp; /* 0x3610CAD1: mov ebp, esp */ 8940 PUSH32(esp, esi); /* 0x3610CAD3: push esi */ 8941 esi = ecx; /* 0x3610CAD4: mov esi, ecx */ 8942 RECOMP_ICALL(MEM32(0x3616F768)); /* 0x3610CAD6: call dword ptr [0x3616f768] */ 8943 RECOMP_FLAGS_IN(); 8944 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610CADC: test byte ptr [ebp + 8], 1 */ 8945 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8946 _cf = 0; 8947 _flag_k = FK_NARROW(FK_TEST, 24); 8948 if (TEST_Z(_flag_a, _flag_b)) goto L_3610CAEB; /* 0x3610CAE0: je 0x3610caeb */ 8949 L_3610CAE2: 8950 PUSH32(esp, esi); /* 0x3610CAE2: push esi */ 8951 RECOMP_ICALL(0x3615FCC4u); /* 0x3610CAE3: call 0x3615fcc4 */ /* not lifted */ 8952 RECOMP_FLAGS_IN(); 8953 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8954 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8955 esp = esp + 4; /* 0x3610CAE8: add esp, 4 */ 8956 _flag_k = FK_ADD; 8957 L_3610CAEB: 8958 eax = esi; /* 0x3610CAEB: mov eax, esi */ 8959 esi = POP32_VAL(esp); /* 0x3610CAED: pop esi */ 8960 ebp = POP32_VAL(esp); /* 0x3610CAEE: pop ebp */ 8961 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610CAEF: ret 4 */ 8962 L_3610CC60: 8963 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 8964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8965 ecx = ecx - 0x138u; /* 0x3610CC60: sub ecx, 0x138 */ 8966 _flag_k = FK_CMP; 8967 RECOMP_BACKEDGE(); 8968 goto L_3610CAD0; /* 0x3610CC66: jmp 0x3610cad0 */ 8969 { RECOMP_REGS_OUT(); return; } /* end of function */ 8970 RECOMP_REGS_OUT(); 8971 } 8972 8973 void sub_3610CC70(void) { 8974 int _fpu_cmp = 0; 8975 uint32_t _cf = 0; 8976 int _df = 1; 8977 uint32_t _flag_k = FK_NONE; 8978 uint32_t _flag_a = 0, _flag_b = 0; 8979 uint32_t _itail_tgt = 0; 8980 RECOMP_REGS_LOCALS 8981 RECOMP_ENTER(0x3610CC70u); 8982 8983 goto L_3610CC70; 8984 L_3610CAD0: 8985 PUSH32(esp, ebp); /* 0x3610CAD0: push ebp */ 8986 ebp = esp; /* 0x3610CAD1: mov ebp, esp */ 8987 PUSH32(esp, esi); /* 0x3610CAD3: push esi */ 8988 esi = ecx; /* 0x3610CAD4: mov esi, ecx */ 8989 RECOMP_ICALL(MEM32(0x3616F768)); /* 0x3610CAD6: call dword ptr [0x3616f768] */ 8990 RECOMP_FLAGS_IN(); 8991 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610CADC: test byte ptr [ebp + 8], 1 */ 8992 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8993 _cf = 0; 8994 _flag_k = FK_NARROW(FK_TEST, 24); 8995 if (TEST_Z(_flag_a, _flag_b)) goto L_3610CAEB; /* 0x3610CAE0: je 0x3610caeb */ 8996 L_3610CAE2: 8997 PUSH32(esp, esi); /* 0x3610CAE2: push esi */ 8998 RECOMP_ICALL(0x3615FCC4u); /* 0x3610CAE3: call 0x3615fcc4 */ /* not lifted */ 8999 RECOMP_FLAGS_IN(); 9000 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9002 esp = esp + 4; /* 0x3610CAE8: add esp, 4 */ 9003 _flag_k = FK_ADD; 9004 L_3610CAEB: 9005 eax = esi; /* 0x3610CAEB: mov eax, esi */ 9006 esi = POP32_VAL(esp); /* 0x3610CAED: pop esi */ 9007 ebp = POP32_VAL(esp); /* 0x3610CAEE: pop ebp */ 9008 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610CAEF: ret 4 */ 9009 L_3610CC70: 9010 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 9011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9012 ecx = ecx - 0x150u; /* 0x3610CC70: sub ecx, 0x150 */ 9013 _flag_k = FK_CMP; 9014 RECOMP_BACKEDGE(); 9015 goto L_3610CAD0; /* 0x3610CC76: jmp 0x3610cad0 */ 9016 { RECOMP_REGS_OUT(); return; } /* end of function */ 9017 RECOMP_REGS_OUT(); 9018 } 9019 9020 void sub_3610CC80(void) { 9021 int _fpu_cmp = 0; 9022 uint32_t _cf = 0; 9023 int _df = 1; 9024 uint32_t _flag_k = FK_NONE; 9025 uint32_t _flag_a = 0, _flag_b = 0; 9026 uint32_t _itail_tgt = 0; 9027 RECOMP_REGS_LOCALS 9028 RECOMP_ENTER(0x3610CC80u); 9029 9030 L_3610CC80: 9031 PUSH32(esp, ebp); /* 0x3610CC80: push ebp */ 9032 ebp = esp; /* 0x3610CC81: mov ebp, esp */ 9033 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610CC83: push -1 */ 9034 PUSH32(esp, 0x3616A6D6u); /* 0x3610CC85: push 0x3616a6d6 */ 9035 eax = MEM32(FS_BASE + (0)); /* 0x3610CC8A: mov eax, dword ptr fs:[0] */ 9036 PUSH32(esp, eax); /* 0x3610CC90: push eax */ 9037 MEM32(FS_BASE + (0)) = esp; /* 0x3610CC91: mov dword ptr fs:[0], esp */ 9038 PUSH32(esp, ecx); /* 0x3610CC98: push ecx */ 9039 eax = MEM32(ebp + 0x8); /* 0x3610CC99: mov eax, dword ptr [ebp + 8] */ 9040 PUSH32(esp, esi); /* 0x3610CC9C: push esi */ 9041 esi = ecx; /* 0x3610CC9D: mov esi, ecx */ 9042 PUSH32(esp, eax); /* 0x3610CC9F: push eax */ 9043 MEM32(ebp + (-0x10)) = esi; /* 0x3610CCA0: mov dword ptr [ebp - 0x10], esi */ 9044 RECOMP_ICALL(0x360FC270u); /* 0x3610CCA3: call 0x360fc270 */ /* not lifted */ 9045 RECOMP_FLAGS_IN(); 9046 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3610CCA8: mov cl, byte ptr [ebp + 0xb] */ 9047 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9048 eax = 0; /* 0x3610CCAB: xor eax, eax */ 9049 _cf = 0; 9050 _flag_k = FK_TEST; 9051 MEM32(esi + 0x84) = eax; /* 0x3610CCAD: mov dword ptr [esi + 0x84], eax */ 9052 MEM32(esi + 0x88) = eax; /* 0x3610CCB3: mov dword ptr [esi + 0x88], eax */ 9053 MEM32(esi + 0x8C) = eax; /* 0x3610CCB9: mov dword ptr [esi + 0x8c], eax */ 9054 MEM32(ebp + (-0x4)) = eax; /* 0x3610CCBF: mov dword ptr [ebp - 4], eax */ 9055 MEM8(esi + 0x94) = (uint8_t)(LO8(ecx)); /* 0x3610CCC2: mov byte ptr [esi + 0x94], cl */ 9056 MEM32(esi + 0x98) = eax; /* 0x3610CCC8: mov dword ptr [esi + 0x98], eax */ 9057 MEM32(esi + 0x9C) = eax; /* 0x3610CCCE: mov dword ptr [esi + 0x9c], eax */ 9058 MEM32(esi + 0xA0) = eax; /* 0x3610CCD4: mov dword ptr [esi + 0xa0], eax */ 9059 ecx = esi; /* 0x3610CCDA: mov ecx, esi */ 9060 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3610CCDC: mov byte ptr [ebp - 4], 1 */ 9061 MEM32(esi) = 0x361766DCu; /* 0x3610CCE0: mov dword ptr [esi], 0x361766dc */ 9062 RECOMP_ICALL(0x3610CD70u); /* 0x3610CCE6: call 0x3610cd70 */ /* not lifted */ 9063 RECOMP_FLAGS_IN(); 9064 edx = MEM32(ebp + 0x10); /* 0x3610CCEB: mov edx, dword ptr [ebp + 0x10] */ 9065 eax = MEM32(ebp + 0xC); /* 0x3610CCEE: mov eax, dword ptr [ebp + 0xc] */ 9066 ecx = MEM32(esi + 0x20); /* 0x3610CCF1: mov ecx, dword ptr [esi + 0x20] */ 9067 PUSH32(esp, edx); /* 0x3610CCF4: push edx */ 9068 PUSH32(esp, eax); /* 0x3610CCF5: push eax */ 9069 PUSH32(esp, ecx); /* 0x3610CCF6: push ecx */ 9070 ecx = esi; /* 0x3610CCF7: mov ecx, esi */ 9071 RECOMP_ICALL(0x3610C4C0u); /* 0x3610CCF9: call 0x3610c4c0 */ /* not lifted */ 9072 RECOMP_FLAGS_IN(); 9073 edx = MEM32(esi + 0x90); /* 0x3610CCFE: mov edx, dword ptr [esi + 0x90] */ 9074 PUSH32(esp, eax); /* 0x3610CD04: push eax */ 9075 PUSH32(esp, edx); /* 0x3610CD05: push edx */ 9076 ecx = esi; /* 0x3610CD06: mov ecx, esi */ 9077 RECOMP_ICALL(0x360FC670u); /* 0x3610CD08: call 0x360fc670 */ /* not lifted */ 9078 RECOMP_FLAGS_IN(); 9079 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9080 _cf = (LO8(eax)) != 0; 9081 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x3610CD0D: neg al */ 9082 _flag_k = FK_NARROW(FK_CMP, 24); 9083 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3610CD0F: sbb al, al */ 9084 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 9085 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 9086 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 9087 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9088 SET_LO8(eax, LO8(eax) + 1); /* 0x3610CD11: inc al */ 9089 _flag_k = FK_NARROW(FK_INC, 24); 9090 ecx = esi; /* 0x3610CD13: mov ecx, esi */ 9091 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x3610CD15: mov byte ptr [esi + 0x14], al */ 9092 RECOMP_ICALL(0x3610D2B0u); /* 0x3610CD18: call 0x3610d2b0 */ /* not lifted */ 9093 RECOMP_FLAGS_IN(); 9094 ecx = MEM32(ebp + (-0xC)); /* 0x3610CD1D: mov ecx, dword ptr [ebp - 0xc] */ 9095 eax = esi; /* 0x3610CD20: mov eax, esi */ 9096 esi = POP32_VAL(esp); /* 0x3610CD22: pop esi */ 9097 MEM32(FS_BASE + (0)) = ecx; /* 0x3610CD23: mov dword ptr fs:[0], ecx */ 9098 esp = ebp; /* 0x3610CD2A: mov esp, ebp */ 9099 ebp = POP32_VAL(esp); /* 0x3610CD2C: pop ebp */ 9100 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3610CD2D: ret 0xc */ 9101 RECOMP_REGS_OUT(); 9102 } 9103 9104 void sub_3610CD30(void) { 9105 int _fpu_cmp = 0; 9106 uint32_t _cf = 0; 9107 int _df = 1; 9108 uint32_t _flag_k = FK_NONE; 9109 uint32_t _flag_a = 0, _flag_b = 0; 9110 uint32_t _itail_tgt = 0; 9111 RECOMP_REGS_LOCALS 9112 RECOMP_ENTER(0x3610CD30u); 9113 9114 L_3610CD30: 9115 PUSH32(esp, ebp); /* 0x3610CD30: push ebp */ 9116 ebp = esp; /* 0x3610CD31: mov ebp, esp */ 9117 eax = MEM32(ebp + 0x8); /* 0x3610CD33: mov eax, dword ptr [ebp + 8] */ 9118 MEM32(ecx + 0x10) = eax; /* 0x3610CD36: mov dword ptr [ecx + 0x10], eax */ 9119 ebp = POP32_VAL(esp); /* 0x3610CD39: pop ebp */ 9120 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610CD3A: ret 4 */ 9121 RECOMP_REGS_OUT(); 9122 } 9123 9124 void sub_3610CD40(void) { 9125 int _fpu_cmp = 0; 9126 uint32_t _cf = 0; 9127 int _df = 1; 9128 uint32_t _flag_k = FK_NONE; 9129 uint32_t _flag_a = 0, _flag_b = 0; 9130 uint32_t _itail_tgt = 0; 9131 RECOMP_REGS_LOCALS 9132 RECOMP_ENTER(0x3610CD40u); 9133 9134 L_3610CD40: 9135 PUSH32(esp, ebp); /* 0x3610CD40: push ebp */ 9136 ebp = esp; /* 0x3610CD41: mov ebp, esp */ 9137 PUSH32(esp, esi); /* 0x3610CD43: push esi */ 9138 esi = ecx; /* 0x3610CD44: mov esi, ecx */ 9139 RECOMP_ICALL(0x3610CDE0u); /* 0x3610CD46: call 0x3610cde0 */ /* not lifted */ 9140 RECOMP_FLAGS_IN(); 9141 /* test MEM8(ebp + 0x8), 1 */ /* 0x3610CD4B: test byte ptr [ebp + 8], 1 */ 9142 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9143 _cf = 0; 9144 _flag_k = FK_NARROW(FK_TEST, 24); 9145 if (TEST_Z(_flag_a, _flag_b)) goto L_3610CD5A; /* 0x3610CD4F: je 0x3610cd5a */ 9146 L_3610CD51: 9147 PUSH32(esp, esi); /* 0x3610CD51: push esi */ 9148 RECOMP_ICALL(0x3615FCC4u); /* 0x3610CD52: call 0x3615fcc4 */ /* not lifted */ 9149 RECOMP_FLAGS_IN(); 9150 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9151 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9152 esp = esp + 4; /* 0x3610CD57: add esp, 4 */ 9153 _flag_k = FK_ADD; 9154 L_3610CD5A: 9155 eax = esi; /* 0x3610CD5A: mov eax, esi */ 9156 esi = POP32_VAL(esp); /* 0x3610CD5C: pop esi */ 9157 ebp = POP32_VAL(esp); /* 0x3610CD5D: pop ebp */ 9158 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610CD5E: ret 4 */ 9159 RECOMP_REGS_OUT(); 9160 } 9161 9162 void sub_3610CD70(void) { 9163 int _fpu_cmp = 0; 9164 uint32_t _cf = 0; 9165 int _df = 1; 9166 uint32_t _flag_k = FK_NONE; 9167 uint32_t _flag_a = 0, _flag_b = 0; 9168 uint32_t _itail_tgt = 0; 9169 RECOMP_REGS_LOCALS 9170 RECOMP_ENTER(0x3610CD70u); 9171 9172 L_3610CD70: 9173 PUSH32(esp, ebp); /* 0x3610CD70: push ebp */ 9174 ebp = esp; /* 0x3610CD71: mov ebp, esp */ 9175 PUSH32(esp, 0xFFFFFFFFu); /* 0x3610CD73: push -1 */ 9176 PUSH32(esp, 0x3616A6EBu); /* 0x3610CD75: push 0x3616a6eb */ 9177 eax = MEM32(FS_BASE + (0)); /* 0x3610CD7A: mov eax, dword ptr fs:[0] */ 9178 PUSH32(esp, eax); /* 0x3610CD80: push eax */ 9179 MEM32(FS_BASE + (0)) = esp; /* 0x3610CD81: mov dword ptr fs:[0], esp */ 9180 PUSH32(esp, ecx); /* 0x3610CD88: push ecx */ 9181 PUSH32(esp, esi); /* 0x3610CD89: push esi */ 9182 PUSH32(esp, 0x10Cu); /* 0x3610CD8A: push 0x10c */ 9183 esi = ecx; /* 0x3610CD8F: mov esi, ecx */ 9184 RECOMP_ICALL(0x3615FD6Au); /* 0x3610CD91: call 0x3615fd6a */ /* not lifted */ 9185 RECOMP_FLAGS_IN(); 9186 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9188 esp = esp + 4; /* 0x3610CD96: add esp, 4 */ 9189 _flag_k = FK_ADD; 9190 MEM32(ebp + (-0x10)) = eax; /* 0x3610CD99: mov dword ptr [ebp - 0x10], eax */ 9191 /* test eax, eax */ /* 0x3610CD9C: test eax, eax */ 9192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9193 _cf = 0; 9194 _flag_k = FK_TEST; 9195 MEM32(ebp + (-0x4)) = 0; /* 0x3610CD9E: mov dword ptr [ebp - 4], 0 */ 9196 if (TEST_Z(_flag_a, _flag_b)) goto L_3610CDB0; /* 0x3610CDA5: je 0x3610cdb0 */ 9197 L_3610CDA7: 9198 ecx = eax; /* 0x3610CDA7: mov ecx, eax */ 9199 RECOMP_ICALL(0x36132920u); /* 0x3610CDA9: call 0x36132920 */ /* not lifted */ 9200 RECOMP_FLAGS_IN(); 9201 goto L_3610CDB2; /* 0x3610CDAE: jmp 0x3610cdb2 */ 9202 L_3610CDB0: 9203 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9204 eax = 0; /* 0x3610CDB0: xor eax, eax */ 9205 _cf = 0; 9206 _flag_k = FK_TEST; 9207 L_3610CDB2: 9208 ecx = esi; /* 0x3610CDB2: mov ecx, esi */ 9209 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610CDB4: mov dword ptr [ebp - 4], 0xffffffff */ 9210 MEM32(esi + 0x90) = eax; /* 0x3610CDBB: mov dword ptr [esi + 0x90], eax */ 9211 RECOMP_ICALL(0x3610D600u); /* 0x3610CDC1: call 0x3610d600 */ /* not lifted */ 9212 RECOMP_FLAGS_IN(); 9213 ecx = MEM32(ebp + (-0xC)); /* 0x3610CDC6: mov ecx, dword ptr [ebp - 0xc] */ 9214 esi = POP32_VAL(esp); /* 0x3610CDC9: pop esi */ 9215 MEM32(FS_BASE + (0)) = ecx; /* 0x3610CDCA: mov dword ptr fs:[0], ecx */ 9216 esp = ebp; /* 0x3610CDD1: mov esp, ebp */ 9217 ebp = POP32_VAL(esp); /* 0x3610CDD3: pop ebp */ 9218 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610CDD4: ret */ 9219 RECOMP_REGS_OUT(); 9220 } 9221 9222 void sub_3610CD9E(void) { 9223 int _fpu_cmp = 0; 9224 uint32_t _cf = 0; 9225 int _df = 1; 9226 uint32_t _flag_k = FK_NONE; 9227 uint32_t _flag_a = 0, _flag_b = 0; 9228 uint32_t _itail_tgt = 0; 9229 RECOMP_REGS_LOCALS 9230 RECOMP_ENTER(0x3610CD9Eu); 9231 9232 L_3610CD9E: 9233 MEM32(ebp + (-0x4)) = 0; /* 0x3610CD9E: mov dword ptr [ebp - 4], 0 */ 9234 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3610CDB0; /* 0x3610CDA5: je 0x3610cdb0 */ 9235 L_3610CDA7: 9236 ecx = eax; /* 0x3610CDA7: mov ecx, eax */ 9237 RECOMP_ICALL(0x36132920u); /* 0x3610CDA9: call 0x36132920 */ /* not lifted */ 9238 RECOMP_FLAGS_IN(); 9239 goto L_3610CDB2; /* 0x3610CDAE: jmp 0x3610cdb2 */ 9240 L_3610CDB0: 9241 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9242 eax = 0; /* 0x3610CDB0: xor eax, eax */ 9243 _cf = 0; 9244 _flag_k = FK_TEST; 9245 L_3610CDB2: 9246 ecx = esi; /* 0x3610CDB2: mov ecx, esi */ 9247 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610CDB4: mov dword ptr [ebp - 4], 0xffffffff */ 9248 MEM32(esi + 0x90) = eax; /* 0x3610CDBB: mov dword ptr [esi + 0x90], eax */ 9249 RECOMP_ICALL(0x3610D600u); /* 0x3610CDC1: call 0x3610d600 */ /* not lifted */ 9250 RECOMP_FLAGS_IN(); 9251 ecx = MEM32(ebp + (-0xC)); /* 0x3610CDC6: mov ecx, dword ptr [ebp - 0xc] */ 9252 esi = POP32_VAL(esp); /* 0x3610CDC9: pop esi */ 9253 MEM32(FS_BASE + (0)) = ecx; /* 0x3610CDCA: mov dword ptr fs:[0], ecx */ 9254 esp = ebp; /* 0x3610CDD1: mov esp, ebp */ 9255 ebp = POP32_VAL(esp); /* 0x3610CDD3: pop ebp */ 9256 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610CDD4: ret */ 9257 RECOMP_REGS_OUT(); 9258 } 9259 9260 void sub_3610CDB2(void) { 9261 int _fpu_cmp = 0; 9262 uint32_t _cf = 0; 9263 int _df = 1; 9264 uint32_t _flag_k = FK_NONE; 9265 uint32_t _flag_a = 0, _flag_b = 0; 9266 uint32_t _itail_tgt = 0; 9267 RECOMP_REGS_LOCALS 9268 RECOMP_ENTER(0x3610CDB2u); 9269 9270 L_3610CDB2: 9271 ecx = esi; /* 0x3610CDB2: mov ecx, esi */ 9272 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610CDB4: mov dword ptr [ebp - 4], 0xffffffff */ 9273 MEM32(esi + 0x90) = eax; /* 0x3610CDBB: mov dword ptr [esi + 0x90], eax */ 9274 RECOMP_ICALL(0x3610D600u); /* 0x3610CDC1: call 0x3610d600 */ /* not lifted */ 9275 RECOMP_FLAGS_IN(); 9276 ecx = MEM32(ebp + (-0xC)); /* 0x3610CDC6: mov ecx, dword ptr [ebp - 0xc] */ 9277 esi = POP32_VAL(esp); /* 0x3610CDC9: pop esi */ 9278 MEM32(FS_BASE + (0)) = ecx; /* 0x3610CDCA: mov dword ptr fs:[0], ecx */ 9279 esp = ebp; /* 0x3610CDD1: mov esp, ebp */ 9280 ebp = POP32_VAL(esp); /* 0x3610CDD3: pop ebp */ 9281 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610CDD4: ret */ 9282 RECOMP_REGS_OUT(); 9283 } 9284 9285 void sub_3610CDC6(void) { 9286 int _fpu_cmp = 0; 9287 uint32_t _cf = 0; 9288 int _df = 1; 9289 uint32_t _flag_k = FK_NONE; 9290 uint32_t _flag_a = 0, _flag_b = 0; 9291 uint32_t _itail_tgt = 0; 9292 RECOMP_REGS_LOCALS 9293 RECOMP_ENTER(0x3610CDC6u); 9294 9295 L_3610CDC6: 9296 ecx = MEM32(ebp + (-0xC)); /* 0x3610CDC6: mov ecx, dword ptr [ebp - 0xc] */ 9297 esi = POP32_VAL(esp); /* 0x3610CDC9: pop esi */ 9298 MEM32(FS_BASE + (0)) = ecx; /* 0x3610CDCA: mov dword ptr fs:[0], ecx */ 9299 esp = ebp; /* 0x3610CDD1: mov esp, ebp */ 9300 ebp = POP32_VAL(esp); /* 0x3610CDD3: pop ebp */ 9301 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610CDD4: ret */ 9302 RECOMP_REGS_OUT(); 9303 }