client/game/kkr.dll/lifted-0084.c (1539270B)
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_361237C1(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(0x361237C1u); 17 18 L_361237C1: 19 ecx = MEM32(ebp + (-0x2C)); /* 0x361237C1: mov ecx, dword ptr [ebp - 0x2c] */ 20 fp_push(*(float*)&MEM32(ecx)); /* 0x361237C4: fld dword ptr [ecx] */ 21 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x361237C6: fcomp dword ptr [ebp - 4] */ 22 fp_pop(); 23 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361237C9: fnstsw ax */ 24 /* test HI8(eax), 0x41u */ /* 0x361237CB: test ah, 0x41 */ 25 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 26 _cf = 0; 27 _flag_k = FK_NARROW(FK_TEST, 24); 28 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123860; /* 0x361237CE: jne 0x36123860 */ 29 L_361237D4: 30 fp_push(*(float*)&MEM32(ecx)); /* 0x361237D4: fld dword ptr [ecx] */ 31 eax = MEM32(esi + 0x16D0); /* 0x361237D6: mov eax, dword ptr [esi + 0x16d0] */ 32 /* test eax, eax */ /* 0x361237DC: test eax, eax */ 33 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 34 _cf = 0; 35 _flag_k = FK_TEST; 36 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361237DE: fsub dword ptr [ebp - 4] */ 37 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361237E1: fdiv dword ptr [esi + 0x16c0] */ 38 if (TEST_Z(_flag_a, _flag_b)) goto L_361237FB; /* 0x361237E7: je 0x361237fb */ 39 L_361237E9: 40 edx = MEM32(ebp + (-0x1C)); /* 0x361237E9: mov edx, dword ptr [ebp - 0x1c] */ 41 eax = MEM32(ebp + (-0xC)); /* 0x361237EC: mov eax, dword ptr [ebp - 0xc] */ 42 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(7); 43 edx = edx & 7; /* 0x361237EF: and edx, 7 */ 44 _cf = 0; 45 _flag_k = FK_TEST; 46 edi = MEM32(edx * 4 + 0x362E5AA0); /* 0x361237F2: mov edi, dword ptr [edx*4 + 0x362e5aa0] */ 47 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 48 edi = edi & eax; /* 0x361237F9: and edi, eax */ 49 _cf = 0; 50 _flag_k = FK_TEST; 51 L_361237FB: 52 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x361237FB: fsub dword ptr [0x36170464] */ 53 ecx = MEM32(esi + 0x38); /* 0x36123801: mov ecx, dword ptr [esi + 0x38] */ 54 eax = ebx; /* 0x36123804: mov eax, ebx */ 55 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 56 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 57 eax = eax + ecx; /* 0x36123806: add eax, ecx */ 58 _flag_k = FK_ADD; 59 ecx = MEM32(ebp + (-0x10)); /* 0x36123808: mov ecx, dword ptr [ebp - 0x10] */ 60 edx = MEM32(ecx); /* 0x3612380B: mov edx, dword ptr [ecx] */ 61 _st[0] += _st[0]; /* 0x3612380D: fadd st(0), st(0) */ 62 fp_push(_st[0]); /* 0x3612380F: fld st(0) */ 63 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36123811: fmulp st(1) */ 64 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36123813: fsubr dword ptr [0x36170380] */ 65 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36123819: fmul dword ptr [ebp - 0x14] */ 66 _st[0] += (double)*(float*)ADDR(esi + 0x1670); /* 0x3612381C: fadd dword ptr [esi + 0x1670] */ 67 MEM32(eax) = edx; /* 0x36123822: mov dword ptr [eax], edx */ 68 edx = MEM32(ecx + 0x4); /* 0x36123824: mov edx, dword ptr [ecx + 4] */ 69 MEM32(eax + 0x4) = edx; /* 0x36123827: mov dword ptr [eax + 4], edx */ 70 ecx = MEM32(ecx + 0x8); /* 0x3612382A: mov ecx, dword ptr [ecx + 8] */ 71 MEM32(eax + 0x8) = ecx; /* 0x3612382D: mov dword ptr [eax + 8], ecx */ 72 edx = MEM32(esi + 0x38); /* 0x36123830: mov edx, dword ptr [esi + 0x38] */ 73 { float _v = (float)_st[0]; *(float*)ADDR(ebx + edx + 0xC) = _v; } /* 0x36123833: fst dword ptr [ebx + edx + 0xc] */ 74 eax = MEM32(esi + 0x38); /* 0x36123837: mov eax, dword ptr [esi + 0x38] */ 75 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + eax + 0x10) = _v; } /* 0x3612383A: fstp dword ptr [ebx + eax + 0x10] */ 76 ecx = MEM32(esi + 0x38); /* 0x3612383E: mov ecx, dword ptr [esi + 0x38] */ 77 MEM32(ebx + ecx + 0x14) = edi; /* 0x36123841: mov dword ptr [ebx + ecx + 0x14], edi */ 78 edx = MEM32(esi + 0x38); /* 0x36123845: mov edx, dword ptr [esi + 0x38] */ 79 MEM32(ebx + edx + 0x18) = 0; /* 0x36123848: mov dword ptr [ebx + edx + 0x18], 0 */ 80 eax = MEM32(esi + 0x38); /* 0x36123850: mov eax, dword ptr [esi + 0x38] */ 81 MEM8(ebx + eax + 0x1C) = (uint8_t)(1); /* 0x36123853: mov byte ptr [ebx + eax + 0x1c], 1 */ 82 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(1); 83 MEM32(ebp + (-0x8)) = MEM32(ebp + (-0x8)) + 1; /* 0x36123858: inc dword ptr [ebp - 8] */ 84 _flag_k = FK_INC; 85 goto L_3612392D; /* 0x3612385B: jmp 0x3612392d */ 86 L_36123860: 87 eax = MEM32(ebp + (-0x18)); /* 0x36123860: mov eax, dword ptr [ebp - 0x18] */ 88 /* test eax, eax */ /* 0x36123863: test eax, eax */ 89 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 90 _cf = 0; 91 _flag_k = FK_TEST; 92 if (TEST_Z(_flag_a, _flag_b)) goto L_36123925; /* 0x36123865: je 0x36123925 */ 93 L_3612386B: 94 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x3612386B: mov al, byte ptr [esi + 0x163c] */ 95 /* test LO8(eax), LO8(eax) */ /* 0x36123871: test al, al */ 96 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 97 _cf = 0; 98 _flag_k = FK_NARROW(FK_TEST, 24); 99 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123925; /* 0x36123873: jne 0x36123925 */ 100 L_36123879: 101 ecx = ebp + (-0x68); /* 0x36123879: lea ecx, [ebp - 0x68] */ 102 PUSH32(esp, ecx); /* 0x3612387C: push ecx */ 103 MEM32(ebp + (-0x68)) = 0; /* 0x3612387D: mov dword ptr [ebp - 0x68], 0 */ 104 MEM32(ebp + (-0x64)) = 0; /* 0x36123884: mov dword ptr [ebp - 0x64], 0 */ 105 MEM32(ebp + (-0x60)) = 0; /* 0x3612388B: mov dword ptr [ebp - 0x60], 0 */ 106 RECOMP_ICALL(0x360FCA70u); /* 0x36123892: call 0x360fca70 */ /* not lifted */ 107 RECOMP_FLAGS_IN(); 108 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x36123897: fld dword ptr [esi + 0x16cc] */ 109 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x3612389D: fld dword ptr [ebp - 0x68] */ 110 edx = MEM32(ebp + (-0x68)); /* 0x361238A0: mov edx, dword ptr [ebp - 0x68] */ 111 eax = MEM32(ebp + (-0x64)); /* 0x361238A3: mov eax, dword ptr [ebp - 0x64] */ 112 _st[0] *= _st[1]; /* 0x361238A6: fmul st(1) */ 113 ecx = MEM32(ebp + (-0x60)); /* 0x361238A8: mov ecx, dword ptr [ebp - 0x60] */ 114 MEM32(ebp + (-0x80)) = edx; /* 0x361238AB: mov dword ptr [ebp - 0x80], edx */ 115 edx = MEM32(ebp + (-0x5C)); /* 0x361238AE: mov edx, dword ptr [ebp - 0x5c] */ 116 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x361238B1: fstp dword ptr [ebp - 0x80] */ 117 MEM32(ebp + (-0x7C)) = eax; /* 0x361238B4: mov dword ptr [ebp - 0x7c], eax */ 118 eax = MEM32(ebp + (-0x58)); /* 0x361238B7: mov eax, dword ptr [ebp - 0x58] */ 119 fp_push(_st[0]); /* 0x361238BA: fld st(0) */ 120 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x361238BC: fmul dword ptr [ebp - 0x7c] */ 121 MEM32(ebp + (-0x78)) = ecx; /* 0x361238BF: mov dword ptr [ebp - 0x78], ecx */ 122 ecx = MEM32(ebp + (-0x54)); /* 0x361238C2: mov ecx, dword ptr [ebp - 0x54] */ 123 MEM32(ebp + (-0x24)) = eax; /* 0x361238C5: mov dword ptr [ebp - 0x24], eax */ 124 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x361238C8: fstp dword ptr [ebp - 0x7c] */ 125 MEM32(ebp + (-0x28)) = edx; /* 0x361238CB: mov dword ptr [ebp - 0x28], edx */ 126 edx = MEM32(ebp + (-0x10)); /* 0x361238CE: mov edx, dword ptr [ebp - 0x10] */ 127 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x361238D1: fmul dword ptr [ebp - 0x78] */ 128 MEM32(ebp + (-0x20)) = ecx; /* 0x361238D4: mov dword ptr [ebp - 0x20], ecx */ 129 fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x361238D7: fld dword ptr [ebp - 0x80] */ 130 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 131 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 132 esp = esp + 4; /* 0x361238DA: add esp, 4 */ 133 _flag_k = FK_ADD; 134 _st[0] += (double)*(float*)ADDR(ebp + (-0x5C)); /* 0x361238DD: fadd dword ptr [ebp - 0x5c] */ 135 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361238E0: fstp dword ptr [ebp - 0x28] */ 136 eax = MEM32(ebp + (-0x28)); /* 0x361238E3: mov eax, dword ptr [ebp - 0x28] */ 137 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361238E6: fld dword ptr [ebp - 0x24] */ 138 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x361238E9: fadd dword ptr [ebp - 0x7c] */ 139 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361238EC: fstp dword ptr [ebp - 0x24] */ 140 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361238EF: fld dword ptr [ebp - 0x20] */ 141 _st[0] += _st[1]; /* 0x361238F2: fadd st(1) */ 142 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361238F4: fstp dword ptr [ebp - 0x20] */ 143 MEM32(edx) = eax; /* 0x361238F7: mov dword ptr [edx], eax */ 144 ecx = MEM32(ebp + (-0x24)); /* 0x361238F9: mov ecx, dword ptr [ebp - 0x24] */ 145 MEM32(edx + 0x4) = ecx; /* 0x361238FC: mov dword ptr [edx + 4], ecx */ 146 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361238FF: fstp st(0) */ 147 eax = MEM32(ebp + (-0x20)); /* 0x36123901: mov eax, dword ptr [ebp - 0x20] */ 148 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123904: fld dword ptr [ebp - 4] */ 149 ecx = MEM32(ebp + (-0x2C)); /* 0x36123907: mov ecx, dword ptr [ebp - 0x2c] */ 150 MEM32(edx + 0x8) = eax; /* 0x3612390A: mov dword ptr [edx + 8], eax */ 151 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x3612390D: fadd dword ptr [esi + 0x16c0] */ 152 eax = MEM32(ebp + (-0x18)); /* 0x36123913: mov eax, dword ptr [ebp - 0x18] */ 153 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x36123916: fstp dword ptr [ecx] */ 154 ecx = MEM32(ebp + (-0x8)); /* 0x36123918: mov ecx, dword ptr [ebp - 8] */ 155 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 156 ecx = ecx + 1; /* 0x3612391B: inc ecx */ 157 _flag_k = FK_INC; 158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 159 eax = eax - 1; /* 0x3612391C: dec eax */ 160 _flag_k = FK_DEC; 161 MEM32(ebp + (-0x8)) = ecx; /* 0x3612391D: mov dword ptr [ebp - 8], ecx */ 162 MEM32(ebp + (-0x18)) = eax; /* 0x36123920: mov dword ptr [ebp - 0x18], eax */ 163 goto L_3612392D; /* 0x36123923: jmp 0x3612392d */ 164 L_36123925: 165 edx = MEM32(esi + 0x38); /* 0x36123925: mov edx, dword ptr [esi + 0x38] */ 166 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x36123928: mov byte ptr [edx + ebx + 0x1c], 0 */ 167 L_3612392D: 168 ecx = MEM32(ebp + (-0x1C)); /* 0x3612392D: mov ecx, dword ptr [ebp - 0x1c] */ 169 eax = MEM32(ebp + (-0x10)); /* 0x36123930: mov eax, dword ptr [ebp - 0x10] */ 170 edx = MEM32(ebp + (-0x2C)); /* 0x36123933: mov edx, dword ptr [ebp - 0x2c] */ 171 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 172 ecx = ecx + 1; /* 0x36123936: inc ecx */ 173 _flag_k = FK_INC; 174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 175 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 176 eax = eax + 0xCu; /* 0x36123937: add eax, 0xc */ 177 _flag_k = FK_ADD; 178 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 180 edx = edx + 4; /* 0x3612393A: add edx, 4 */ 181 _flag_k = FK_ADD; 182 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 184 ebx = ebx + 0x20u; /* 0x3612393D: add ebx, 0x20 */ 185 _flag_k = FK_ADD; 186 /* cmp ebx, 0x1000u */ /* 0x36123940: cmp ebx, 0x1000 */ 187 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 189 _flag_k = FK_CMP; 190 MEM32(ebp + (-0x1C)) = ecx; /* 0x36123946: mov dword ptr [ebp - 0x1c], ecx */ 191 MEM32(ebp + (-0x10)) = eax; /* 0x36123949: mov dword ptr [ebp - 0x10], eax */ 192 MEM32(ebp + (-0x2C)) = edx; /* 0x3612394C: mov dword ptr [ebp - 0x2c], edx */ 193 RECOMP_BACKEDGE(); 194 if (CMP_L(_flag_a, _flag_b)) goto L_361237C1; /* 0x3612394F: jl 0x361237c1 */ 195 L_36123955: 196 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123955: mov al, byte ptr [esi + 0x163c] */ 197 /* test LO8(eax), LO8(eax) */ /* 0x3612395B: test al, al */ 198 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 199 _cf = 0; 200 _flag_k = FK_NARROW(FK_TEST, 24); 201 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612395D: je 0x361275ac */ 202 L_36123963: 203 eax = MEM32(ebp + (-0x8)); /* 0x36123963: mov eax, dword ptr [ebp - 8] */ 204 /* test eax, eax */ /* 0x36123966: test eax, eax */ 205 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 206 _cf = 0; 207 _flag_k = FK_TEST; 208 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123968: jne 0x361275ac */ 209 L_3612396E: 210 goto L_361275A8; /* 0x3612396E: jmp 0x361275a8 */ 211 L_361275A8: 212 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 213 L_361275AC: 214 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 215 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 216 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 217 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 218 _flag_k = FK_ADD; 219 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 221 _cf = 0; 222 _flag_k = FK_TEST; 223 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 224 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 225 L_361275B7: 226 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 227 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 228 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 229 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 230 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 231 RECOMP_FLAGS_IN(); 232 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 233 PUSH32(esp, eax); /* 0x361275CD: push eax */ 234 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 235 RECOMP_FLAGS_IN(); 236 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 237 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 238 RECOMP_FLAGS_IN(); 239 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 240 PUSH32(esp, eax); /* 0x361275E2: push eax */ 241 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 242 RECOMP_FLAGS_IN(); 243 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 244 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 245 RECOMP_FLAGS_IN(); 246 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 247 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 248 _cf = (LO8(eax)) != 0; 249 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 250 _flag_k = FK_NARROW(FK_CMP, 24); 251 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 252 eax = _sc ? 0xFFFFFFFFu : 0; 253 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 254 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 256 eax = eax + 1; /* 0x361275F6: inc eax */ 257 _flag_k = FK_INC; 258 PUSH32(esp, eax); /* 0x361275F7: push eax */ 259 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 260 RECOMP_FLAGS_IN(); 261 L_361275FE: 262 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 263 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 264 esp = ebp; /* 0x36127600: mov esp, ebp */ 265 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 266 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 267 RECOMP_REGS_OUT(); 268 } 269 270 void sub_3612392D(void) { 271 int _fpu_cmp = 0; 272 uint32_t _cf = 0; 273 int _df = 1; 274 uint32_t _flag_k = FK_NONE; 275 uint32_t _flag_a = 0, _flag_b = 0; 276 uint32_t _itail_tgt = 0; 277 RECOMP_REGS_LOCALS 278 RECOMP_ENTER(0x3612392Du); 279 280 goto L_3612392D; 281 L_361237C1: 282 ecx = MEM32(ebp + (-0x2C)); /* 0x361237C1: mov ecx, dword ptr [ebp - 0x2c] */ 283 fp_push(*(float*)&MEM32(ecx)); /* 0x361237C4: fld dword ptr [ecx] */ 284 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x361237C6: fcomp dword ptr [ebp - 4] */ 285 fp_pop(); 286 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361237C9: fnstsw ax */ 287 /* test HI8(eax), 0x41u */ /* 0x361237CB: test ah, 0x41 */ 288 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 289 _cf = 0; 290 _flag_k = FK_NARROW(FK_TEST, 24); 291 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123860; /* 0x361237CE: jne 0x36123860 */ 292 L_361237D4: 293 fp_push(*(float*)&MEM32(ecx)); /* 0x361237D4: fld dword ptr [ecx] */ 294 eax = MEM32(esi + 0x16D0); /* 0x361237D6: mov eax, dword ptr [esi + 0x16d0] */ 295 /* test eax, eax */ /* 0x361237DC: test eax, eax */ 296 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 297 _cf = 0; 298 _flag_k = FK_TEST; 299 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361237DE: fsub dword ptr [ebp - 4] */ 300 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361237E1: fdiv dword ptr [esi + 0x16c0] */ 301 if (TEST_Z(_flag_a, _flag_b)) goto L_361237FB; /* 0x361237E7: je 0x361237fb */ 302 L_361237E9: 303 edx = MEM32(ebp + (-0x1C)); /* 0x361237E9: mov edx, dword ptr [ebp - 0x1c] */ 304 eax = MEM32(ebp + (-0xC)); /* 0x361237EC: mov eax, dword ptr [ebp - 0xc] */ 305 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(7); 306 edx = edx & 7; /* 0x361237EF: and edx, 7 */ 307 _cf = 0; 308 _flag_k = FK_TEST; 309 edi = MEM32(edx * 4 + 0x362E5AA0); /* 0x361237F2: mov edi, dword ptr [edx*4 + 0x362e5aa0] */ 310 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 311 edi = edi & eax; /* 0x361237F9: and edi, eax */ 312 _cf = 0; 313 _flag_k = FK_TEST; 314 L_361237FB: 315 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x361237FB: fsub dword ptr [0x36170464] */ 316 ecx = MEM32(esi + 0x38); /* 0x36123801: mov ecx, dword ptr [esi + 0x38] */ 317 eax = ebx; /* 0x36123804: mov eax, ebx */ 318 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 320 eax = eax + ecx; /* 0x36123806: add eax, ecx */ 321 _flag_k = FK_ADD; 322 ecx = MEM32(ebp + (-0x10)); /* 0x36123808: mov ecx, dword ptr [ebp - 0x10] */ 323 edx = MEM32(ecx); /* 0x3612380B: mov edx, dword ptr [ecx] */ 324 _st[0] += _st[0]; /* 0x3612380D: fadd st(0), st(0) */ 325 fp_push(_st[0]); /* 0x3612380F: fld st(0) */ 326 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36123811: fmulp st(1) */ 327 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36123813: fsubr dword ptr [0x36170380] */ 328 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36123819: fmul dword ptr [ebp - 0x14] */ 329 _st[0] += (double)*(float*)ADDR(esi + 0x1670); /* 0x3612381C: fadd dword ptr [esi + 0x1670] */ 330 MEM32(eax) = edx; /* 0x36123822: mov dword ptr [eax], edx */ 331 edx = MEM32(ecx + 0x4); /* 0x36123824: mov edx, dword ptr [ecx + 4] */ 332 MEM32(eax + 0x4) = edx; /* 0x36123827: mov dword ptr [eax + 4], edx */ 333 ecx = MEM32(ecx + 0x8); /* 0x3612382A: mov ecx, dword ptr [ecx + 8] */ 334 MEM32(eax + 0x8) = ecx; /* 0x3612382D: mov dword ptr [eax + 8], ecx */ 335 edx = MEM32(esi + 0x38); /* 0x36123830: mov edx, dword ptr [esi + 0x38] */ 336 { float _v = (float)_st[0]; *(float*)ADDR(ebx + edx + 0xC) = _v; } /* 0x36123833: fst dword ptr [ebx + edx + 0xc] */ 337 eax = MEM32(esi + 0x38); /* 0x36123837: mov eax, dword ptr [esi + 0x38] */ 338 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + eax + 0x10) = _v; } /* 0x3612383A: fstp dword ptr [ebx + eax + 0x10] */ 339 ecx = MEM32(esi + 0x38); /* 0x3612383E: mov ecx, dword ptr [esi + 0x38] */ 340 MEM32(ebx + ecx + 0x14) = edi; /* 0x36123841: mov dword ptr [ebx + ecx + 0x14], edi */ 341 edx = MEM32(esi + 0x38); /* 0x36123845: mov edx, dword ptr [esi + 0x38] */ 342 MEM32(ebx + edx + 0x18) = 0; /* 0x36123848: mov dword ptr [ebx + edx + 0x18], 0 */ 343 eax = MEM32(esi + 0x38); /* 0x36123850: mov eax, dword ptr [esi + 0x38] */ 344 MEM8(ebx + eax + 0x1C) = (uint8_t)(1); /* 0x36123853: mov byte ptr [ebx + eax + 0x1c], 1 */ 345 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(1); 346 MEM32(ebp + (-0x8)) = MEM32(ebp + (-0x8)) + 1; /* 0x36123858: inc dword ptr [ebp - 8] */ 347 _flag_k = FK_INC; 348 goto L_3612392D; /* 0x3612385B: jmp 0x3612392d */ 349 L_36123860: 350 eax = MEM32(ebp + (-0x18)); /* 0x36123860: mov eax, dword ptr [ebp - 0x18] */ 351 /* test eax, eax */ /* 0x36123863: test eax, eax */ 352 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 353 _cf = 0; 354 _flag_k = FK_TEST; 355 if (TEST_Z(_flag_a, _flag_b)) goto L_36123925; /* 0x36123865: je 0x36123925 */ 356 L_3612386B: 357 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x3612386B: mov al, byte ptr [esi + 0x163c] */ 358 /* test LO8(eax), LO8(eax) */ /* 0x36123871: test al, al */ 359 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 360 _cf = 0; 361 _flag_k = FK_NARROW(FK_TEST, 24); 362 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123925; /* 0x36123873: jne 0x36123925 */ 363 L_36123879: 364 ecx = ebp + (-0x68); /* 0x36123879: lea ecx, [ebp - 0x68] */ 365 PUSH32(esp, ecx); /* 0x3612387C: push ecx */ 366 MEM32(ebp + (-0x68)) = 0; /* 0x3612387D: mov dword ptr [ebp - 0x68], 0 */ 367 MEM32(ebp + (-0x64)) = 0; /* 0x36123884: mov dword ptr [ebp - 0x64], 0 */ 368 MEM32(ebp + (-0x60)) = 0; /* 0x3612388B: mov dword ptr [ebp - 0x60], 0 */ 369 RECOMP_ICALL(0x360FCA70u); /* 0x36123892: call 0x360fca70 */ /* not lifted */ 370 RECOMP_FLAGS_IN(); 371 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x36123897: fld dword ptr [esi + 0x16cc] */ 372 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x3612389D: fld dword ptr [ebp - 0x68] */ 373 edx = MEM32(ebp + (-0x68)); /* 0x361238A0: mov edx, dword ptr [ebp - 0x68] */ 374 eax = MEM32(ebp + (-0x64)); /* 0x361238A3: mov eax, dword ptr [ebp - 0x64] */ 375 _st[0] *= _st[1]; /* 0x361238A6: fmul st(1) */ 376 ecx = MEM32(ebp + (-0x60)); /* 0x361238A8: mov ecx, dword ptr [ebp - 0x60] */ 377 MEM32(ebp + (-0x80)) = edx; /* 0x361238AB: mov dword ptr [ebp - 0x80], edx */ 378 edx = MEM32(ebp + (-0x5C)); /* 0x361238AE: mov edx, dword ptr [ebp - 0x5c] */ 379 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x361238B1: fstp dword ptr [ebp - 0x80] */ 380 MEM32(ebp + (-0x7C)) = eax; /* 0x361238B4: mov dword ptr [ebp - 0x7c], eax */ 381 eax = MEM32(ebp + (-0x58)); /* 0x361238B7: mov eax, dword ptr [ebp - 0x58] */ 382 fp_push(_st[0]); /* 0x361238BA: fld st(0) */ 383 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x361238BC: fmul dword ptr [ebp - 0x7c] */ 384 MEM32(ebp + (-0x78)) = ecx; /* 0x361238BF: mov dword ptr [ebp - 0x78], ecx */ 385 ecx = MEM32(ebp + (-0x54)); /* 0x361238C2: mov ecx, dword ptr [ebp - 0x54] */ 386 MEM32(ebp + (-0x24)) = eax; /* 0x361238C5: mov dword ptr [ebp - 0x24], eax */ 387 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x361238C8: fstp dword ptr [ebp - 0x7c] */ 388 MEM32(ebp + (-0x28)) = edx; /* 0x361238CB: mov dword ptr [ebp - 0x28], edx */ 389 edx = MEM32(ebp + (-0x10)); /* 0x361238CE: mov edx, dword ptr [ebp - 0x10] */ 390 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x361238D1: fmul dword ptr [ebp - 0x78] */ 391 MEM32(ebp + (-0x20)) = ecx; /* 0x361238D4: mov dword ptr [ebp - 0x20], ecx */ 392 fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x361238D7: fld dword ptr [ebp - 0x80] */ 393 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 395 esp = esp + 4; /* 0x361238DA: add esp, 4 */ 396 _flag_k = FK_ADD; 397 _st[0] += (double)*(float*)ADDR(ebp + (-0x5C)); /* 0x361238DD: fadd dword ptr [ebp - 0x5c] */ 398 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361238E0: fstp dword ptr [ebp - 0x28] */ 399 eax = MEM32(ebp + (-0x28)); /* 0x361238E3: mov eax, dword ptr [ebp - 0x28] */ 400 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361238E6: fld dword ptr [ebp - 0x24] */ 401 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x361238E9: fadd dword ptr [ebp - 0x7c] */ 402 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361238EC: fstp dword ptr [ebp - 0x24] */ 403 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361238EF: fld dword ptr [ebp - 0x20] */ 404 _st[0] += _st[1]; /* 0x361238F2: fadd st(1) */ 405 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361238F4: fstp dword ptr [ebp - 0x20] */ 406 MEM32(edx) = eax; /* 0x361238F7: mov dword ptr [edx], eax */ 407 ecx = MEM32(ebp + (-0x24)); /* 0x361238F9: mov ecx, dword ptr [ebp - 0x24] */ 408 MEM32(edx + 0x4) = ecx; /* 0x361238FC: mov dword ptr [edx + 4], ecx */ 409 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361238FF: fstp st(0) */ 410 eax = MEM32(ebp + (-0x20)); /* 0x36123901: mov eax, dword ptr [ebp - 0x20] */ 411 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123904: fld dword ptr [ebp - 4] */ 412 ecx = MEM32(ebp + (-0x2C)); /* 0x36123907: mov ecx, dword ptr [ebp - 0x2c] */ 413 MEM32(edx + 0x8) = eax; /* 0x3612390A: mov dword ptr [edx + 8], eax */ 414 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x3612390D: fadd dword ptr [esi + 0x16c0] */ 415 eax = MEM32(ebp + (-0x18)); /* 0x36123913: mov eax, dword ptr [ebp - 0x18] */ 416 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x36123916: fstp dword ptr [ecx] */ 417 ecx = MEM32(ebp + (-0x8)); /* 0x36123918: mov ecx, dword ptr [ebp - 8] */ 418 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 419 ecx = ecx + 1; /* 0x3612391B: inc ecx */ 420 _flag_k = FK_INC; 421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 422 eax = eax - 1; /* 0x3612391C: dec eax */ 423 _flag_k = FK_DEC; 424 MEM32(ebp + (-0x8)) = ecx; /* 0x3612391D: mov dword ptr [ebp - 8], ecx */ 425 MEM32(ebp + (-0x18)) = eax; /* 0x36123920: mov dword ptr [ebp - 0x18], eax */ 426 goto L_3612392D; /* 0x36123923: jmp 0x3612392d */ 427 L_36123925: 428 edx = MEM32(esi + 0x38); /* 0x36123925: mov edx, dword ptr [esi + 0x38] */ 429 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x36123928: mov byte ptr [edx + ebx + 0x1c], 0 */ 430 L_3612392D: 431 ecx = MEM32(ebp + (-0x1C)); /* 0x3612392D: mov ecx, dword ptr [ebp - 0x1c] */ 432 eax = MEM32(ebp + (-0x10)); /* 0x36123930: mov eax, dword ptr [ebp - 0x10] */ 433 edx = MEM32(ebp + (-0x2C)); /* 0x36123933: mov edx, dword ptr [ebp - 0x2c] */ 434 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 435 ecx = ecx + 1; /* 0x36123936: inc ecx */ 436 _flag_k = FK_INC; 437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 439 eax = eax + 0xCu; /* 0x36123937: add eax, 0xc */ 440 _flag_k = FK_ADD; 441 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 443 edx = edx + 4; /* 0x3612393A: add edx, 4 */ 444 _flag_k = FK_ADD; 445 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 446 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 447 ebx = ebx + 0x20u; /* 0x3612393D: add ebx, 0x20 */ 448 _flag_k = FK_ADD; 449 /* cmp ebx, 0x1000u */ /* 0x36123940: cmp ebx, 0x1000 */ 450 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 452 _flag_k = FK_CMP; 453 MEM32(ebp + (-0x1C)) = ecx; /* 0x36123946: mov dword ptr [ebp - 0x1c], ecx */ 454 MEM32(ebp + (-0x10)) = eax; /* 0x36123949: mov dword ptr [ebp - 0x10], eax */ 455 MEM32(ebp + (-0x2C)) = edx; /* 0x3612394C: mov dword ptr [ebp - 0x2c], edx */ 456 RECOMP_BACKEDGE(); 457 if (CMP_L(_flag_a, _flag_b)) goto L_361237C1; /* 0x3612394F: jl 0x361237c1 */ 458 L_36123955: 459 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123955: mov al, byte ptr [esi + 0x163c] */ 460 /* test LO8(eax), LO8(eax) */ /* 0x3612395B: test al, al */ 461 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 462 _cf = 0; 463 _flag_k = FK_NARROW(FK_TEST, 24); 464 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612395D: je 0x361275ac */ 465 L_36123963: 466 eax = MEM32(ebp + (-0x8)); /* 0x36123963: mov eax, dword ptr [ebp - 8] */ 467 /* test eax, eax */ /* 0x36123966: test eax, eax */ 468 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 469 _cf = 0; 470 _flag_k = FK_TEST; 471 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123968: jne 0x361275ac */ 472 L_3612396E: 473 goto L_361275A8; /* 0x3612396E: jmp 0x361275a8 */ 474 L_361275A8: 475 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 476 L_361275AC: 477 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 478 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 479 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 480 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 481 _flag_k = FK_ADD; 482 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 483 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 484 _cf = 0; 485 _flag_k = FK_TEST; 486 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 487 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 488 L_361275B7: 489 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 490 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 491 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 492 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 493 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 494 RECOMP_FLAGS_IN(); 495 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 496 PUSH32(esp, eax); /* 0x361275CD: push eax */ 497 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 498 RECOMP_FLAGS_IN(); 499 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 500 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 501 RECOMP_FLAGS_IN(); 502 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 503 PUSH32(esp, eax); /* 0x361275E2: push eax */ 504 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 505 RECOMP_FLAGS_IN(); 506 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 507 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 508 RECOMP_FLAGS_IN(); 509 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 510 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 511 _cf = (LO8(eax)) != 0; 512 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 513 _flag_k = FK_NARROW(FK_CMP, 24); 514 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 515 eax = _sc ? 0xFFFFFFFFu : 0; 516 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 517 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 518 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 519 eax = eax + 1; /* 0x361275F6: inc eax */ 520 _flag_k = FK_INC; 521 PUSH32(esp, eax); /* 0x361275F7: push eax */ 522 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 523 RECOMP_FLAGS_IN(); 524 L_361275FE: 525 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 526 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 527 esp = ebp; /* 0x36127600: mov esp, ebp */ 528 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 529 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 530 RECOMP_REGS_OUT(); 531 } 532 533 void sub_361239C7(void) { 534 int _fpu_cmp = 0; 535 uint32_t _cf = 0; 536 int _df = 1; 537 uint32_t _flag_k = FK_NONE; 538 uint32_t _flag_a = 0, _flag_b = 0; 539 uint32_t _itail_tgt = 0; 540 RECOMP_REGS_LOCALS 541 RECOMP_ENTER(0x361239C7u); 542 543 L_361239C7: 544 fp_push(*(float*)&MEM32(ebx)); /* 0x361239C7: fld dword ptr [ebx] */ 545 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x2C))); /* 0x361239C9: fcomp dword ptr [ebp - 0x2c] */ 546 fp_pop(); 547 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361239CC: fnstsw ax */ 548 /* test HI8(eax), 0x41u */ /* 0x361239CE: test ah, 0x41 */ 549 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 550 _cf = 0; 551 _flag_k = FK_NARROW(FK_TEST, 24); 552 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123BC6; /* 0x361239D1: jne 0x36123bc6 */ 553 L_361239D7: 554 eax = MEM32(ebp + (-0x28)); /* 0x361239D7: mov eax, dword ptr [ebp - 0x28] */ 555 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361239DA: fld dword ptr [ebp - 0x28] */ 556 ecx = MEM32(ebp + (-0x24)); /* 0x361239DD: mov ecx, dword ptr [ebp - 0x24] */ 557 edx = MEM32(ebp + (-0x20)); /* 0x361239E0: mov edx, dword ptr [ebp - 0x20] */ 558 MEM32(ebp + (-0x38)) = eax; /* 0x361239E3: mov dword ptr [ebp - 0x38], eax */ 559 MEM32(ebp + (-0x30)) = edx; /* 0x361239E6: mov dword ptr [ebp - 0x30], edx */ 560 MEM32(ebp + (-0x34)) = ecx; /* 0x361239E9: mov dword ptr [ebp - 0x34], ecx */ 561 _st[0] -= (double)*(float*)ADDR(edi + 0x5F8); /* 0x361239EC: fsub dword ptr [edi + 0x5f8] */ 562 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x361239F2: fstp dword ptr [ebp - 0x38] */ 563 eax = MEM32(ebp + (-0x38)); /* 0x361239F5: mov eax, dword ptr [ebp - 0x38] */ 564 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361239F8: fld dword ptr [ebp - 0x34] */ 565 _st[0] -= (double)*(float*)ADDR(edi + 0x5FC); /* 0x361239FB: fsub dword ptr [edi + 0x5fc] */ 566 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36123A01: fstp dword ptr [ebp - 0x34] */ 567 ecx = MEM32(ebp + (-0x34)); /* 0x36123A04: mov ecx, dword ptr [ebp - 0x34] */ 568 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36123A07: fld dword ptr [ebp - 0x30] */ 569 _st[0] -= (double)*(float*)ADDR(edi + 0x600); /* 0x36123A0A: fsub dword ptr [edi + 0x600] */ 570 MEM32(ebp + (-0x44)) = eax; /* 0x36123A10: mov dword ptr [ebp - 0x44], eax */ 571 MEM32(ebp + (-0x40)) = ecx; /* 0x36123A13: mov dword ptr [ebp - 0x40], ecx */ 572 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36123A16: fstp dword ptr [ebp - 0x30] */ 573 edx = MEM32(ebp + (-0x30)); /* 0x36123A19: mov edx, dword ptr [ebp - 0x30] */ 574 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A1C: fld dword ptr [ebp - 4] */ 575 MEM32(ebp + (-0x3C)) = edx; /* 0x36123A1F: mov dword ptr [ebp - 0x3c], edx */ 576 _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x36123A22: fmul dword ptr [ebp - 0x38] */ 577 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36123A25: fstp dword ptr [ebp - 0x44] */ 578 eax = MEM32(ebp + (-0x44)); /* 0x36123A28: mov eax, dword ptr [ebp - 0x44] */ 579 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A2B: fld dword ptr [ebp - 4] */ 580 MEM32(ebp + (-0xD0)) = eax; /* 0x36123A2E: mov dword ptr [ebp - 0xd0], eax */ 581 _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36123A34: fmul dword ptr [ebp - 0x40] */ 582 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36123A37: fstp dword ptr [ebp - 0x40] */ 583 ecx = MEM32(ebp + (-0x40)); /* 0x36123A3A: mov ecx, dword ptr [ebp - 0x40] */ 584 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A3D: fld dword ptr [ebp - 4] */ 585 MEM32(ebp + (-0xCC)) = ecx; /* 0x36123A40: mov dword ptr [ebp - 0xcc], ecx */ 586 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36123A46: fmul dword ptr [ebp - 0x3c] */ 587 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36123A49: fstp dword ptr [ebp - 0x3c] */ 588 edx = MEM32(ebp + (-0x3C)); /* 0x36123A4C: mov edx, dword ptr [ebp - 0x3c] */ 589 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36123A4F: fld dword ptr [ebp - 0x44] */ 590 MEM32(ebp + (-0xC8)) = edx; /* 0x36123A52: mov dword ptr [ebp - 0xc8], edx */ 591 _st[0] += (double)*(float*)ADDR(edi + (-0x8)); /* 0x36123A58: fadd dword ptr [edi - 8] */ 592 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x8)) = _v; } /* 0x36123A5B: fstp dword ptr [edi - 8] */ 593 fp_push(*(float*)&MEM32(ebp + (-0xCC))); /* 0x36123A5E: fld dword ptr [ebp - 0xcc] */ 594 _st[0] += (double)*(float*)ADDR(edi + (-0x4)); /* 0x36123A64: fadd dword ptr [edi - 4] */ 595 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x4)) = _v; } /* 0x36123A67: fstp dword ptr [edi - 4] */ 596 fp_push(*(float*)&MEM32(ebp + (-0xC8))); /* 0x36123A6A: fld dword ptr [ebp - 0xc8] */ 597 _st[0] += (double)*(float*)ADDR(edi); /* 0x36123A70: fadd dword ptr [edi] */ 598 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36123A72: fstp dword ptr [edi] */ 599 eax = MEM32(edi + (-0x8)); /* 0x36123A74: mov eax, dword ptr [edi - 8] */ 600 MEM32(ebp + (-0x50)) = eax; /* 0x36123A77: mov dword ptr [ebp - 0x50], eax */ 601 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36123A7A: fld dword ptr [ebp - 0x50] */ 602 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123A7D: fmul dword ptr [0x36170d68] */ 603 ecx = MEM32(edi + (-0x4)); /* 0x36123A83: mov ecx, dword ptr [edi - 4] */ 604 MEM32(ebp + (-0x4C)) = ecx; /* 0x36123A86: mov dword ptr [ebp - 0x4c], ecx */ 605 edx = MEM32(edi); /* 0x36123A89: mov edx, dword ptr [edi] */ 606 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36123A8B: fstp dword ptr [ebp - 0x50] */ 607 eax = MEM32(ebp + (-0x50)); /* 0x36123A8E: mov eax, dword ptr [ebp - 0x50] */ 608 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36123A91: fld dword ptr [ebp - 0x4c] */ 609 MEM32(ebp + (-0x48)) = edx; /* 0x36123A94: mov dword ptr [ebp - 0x48], edx */ 610 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123A97: fmul dword ptr [0x36170d68] */ 611 MEM32(ebp + (-0xE8)) = eax; /* 0x36123A9D: mov dword ptr [ebp - 0xe8], eax */ 612 eax = MEM32(ebp + (-0x14)); /* 0x36123AA3: mov eax, dword ptr [ebp - 0x14] */ 613 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36123AA6: fstp dword ptr [ebp - 0x4c] */ 614 ecx = MEM32(ebp + (-0x4C)); /* 0x36123AA9: mov ecx, dword ptr [ebp - 0x4c] */ 615 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36123AAC: fld dword ptr [ebp - 0x48] */ 616 MEM32(ebp + (-0xE4)) = ecx; /* 0x36123AAF: mov dword ptr [ebp - 0xe4], ecx */ 617 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123AB5: fmul dword ptr [0x36170d68] */ 618 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36123ABB: fstp dword ptr [ebp - 0x48] */ 619 edx = MEM32(ebp + (-0x48)); /* 0x36123ABE: mov edx, dword ptr [ebp - 0x48] */ 620 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36123AC1: fld dword ptr [ebp - 0x50] */ 621 MEM32(ebp + (-0xE0)) = edx; /* 0x36123AC4: mov dword ptr [ebp - 0xe0], edx */ 622 _st[0] += (double)*(float*)ADDR(edi + 0x5F8); /* 0x36123ACA: fadd dword ptr [edi + 0x5f8] */ 623 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5F8) = _v; } /* 0x36123AD0: fstp dword ptr [edi + 0x5f8] */ 624 fp_push(*(float*)&MEM32(ebp + (-0xE4))); /* 0x36123AD6: fld dword ptr [ebp - 0xe4] */ 625 _st[0] += (double)*(float*)ADDR(edi + 0x5FC); /* 0x36123ADC: fadd dword ptr [edi + 0x5fc] */ 626 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5FC) = _v; } /* 0x36123AE2: fstp dword ptr [edi + 0x5fc] */ 627 fp_push(*(float*)&MEM32(ebp + (-0xE0))); /* 0x36123AE8: fld dword ptr [ebp - 0xe0] */ 628 _st[0] += (double)*(float*)ADDR(edi + 0x600); /* 0x36123AEE: fadd dword ptr [edi + 0x600] */ 629 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x600) = _v; } /* 0x36123AF4: fstp dword ptr [edi + 0x600] */ 630 edx = MEM32(esi + 0x38); /* 0x36123AFA: mov edx, dword ptr [esi + 0x38] */ 631 ecx = MEM32(edi + 0x5F8); /* 0x36123AFD: mov ecx, dword ptr [edi + 0x5f8] */ 632 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 634 eax = eax + edx; /* 0x36123B03: add eax, edx */ 635 _flag_k = FK_ADD; 636 MEM32(eax) = ecx; /* 0x36123B05: mov dword ptr [eax], ecx */ 637 edx = MEM32(edi + 0x5FC); /* 0x36123B07: mov edx, dword ptr [edi + 0x5fc] */ 638 MEM32(eax + 0x4) = edx; /* 0x36123B0D: mov dword ptr [eax + 4], edx */ 639 ecx = MEM32(edi + 0x600); /* 0x36123B10: mov ecx, dword ptr [edi + 0x600] */ 640 edx = MEM32(ebp + (-0x8)); /* 0x36123B16: mov edx, dword ptr [ebp - 8] */ 641 MEM32(eax + 0x8) = ecx; /* 0x36123B19: mov dword ptr [eax + 8], ecx */ 642 fp_push(*(float*)&MEM32(edx)); /* 0x36123B1C: fld dword ptr [edx] */ 643 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x36123B1E: fsub dword ptr [ebp - 0x2c] */ 644 _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x36123B21: fmul dword ptr [0x36170ba4] */ 645 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B27: fdiv dword ptr [esi + 0x16c0] */ 646 RECOMP_ICALL(0x3615FD8Cu); /* 0x36123B2D: call 0x3615fd8c */ /* not lifted */ 647 RECOMP_FLAGS_IN(); 648 ebx = 0xFu; /* 0x36123B32: mov ebx, 0xf */ 649 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 651 ebx = ebx - eax; /* 0x36123B37: sub ebx, eax */ 652 _flag_k = FK_CMP; 653 /* cmp ebx, 0xFu */ /* 0x36123B39: cmp ebx, 0xf */ 654 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFu); 655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 656 _flag_k = FK_CMP; 657 if (CMP_LE(_flag_a, _flag_b)) goto L_36123B45; /* 0x36123B3C: jle 0x36123b45 */ 658 L_36123B3E: 659 ebx = 0xFu; /* 0x36123B3E: mov ebx, 0xf */ 660 goto L_36123B4B; /* 0x36123B43: jmp 0x36123b4b */ 661 L_36123B45: 662 /* test ebx, ebx */ /* 0x36123B45: test ebx, ebx */ 663 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 664 _cf = 0; 665 _flag_k = FK_TEST; 666 if (TEST_NS(_flag_a, _flag_b)) goto L_36123B4B; /* 0x36123B47: jge 0x36123b4b */ 667 L_36123B49: 668 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 669 ebx = 0; /* 0x36123B49: xor ebx, ebx */ 670 _cf = 0; 671 _flag_k = FK_TEST; 672 L_36123B4B: 673 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36123B4B: fld dword ptr [ebp - 0x2c] */ 674 eax = MEM32(ebp + (-0x8)); /* 0x36123B4E: mov eax, dword ptr [ebp - 8] */ 675 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B51: fadd dword ptr [esi + 0x16c0] */ 676 ecx = MEM32(esi + 0x38); /* 0x36123B57: mov ecx, dword ptr [esi + 0x38] */ 677 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36123B5A: fsub dword ptr [eax] */ 678 eax = MEM32(ebp + (-0x14)); /* 0x36123B5C: mov eax, dword ptr [ebp - 0x14] */ 679 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B5F: fdiv dword ptr [esi + 0x16c0] */ 680 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36123B65: fst dword ptr [ebp - 0x10] */ 681 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36123B68: fmul dword ptr [ebp - 0x10] */ 682 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36123B6B: fsubr dword ptr [0x36170380] */ 683 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36123B71: fld dword ptr [ebp - 0x10] */ 684 _st[0] += (double)*(float*)ADDR(0x36170F04); /* 0x36123B74: fadd dword ptr [0x36170f04] */ 685 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36123B7A: fmulp st(1) */ 686 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36123B7C: fmul dword ptr [esi + 0x16c8] */ 687 fp_push(_st[0]); /* 0x36123B82: fld st(0) */ 688 { float _v = (float)fp_pop(); *(float*)ADDR(eax + ecx + 0xC) = _v; } /* 0x36123B84: fstp dword ptr [eax + ecx + 0xc] */ 689 edx = MEM32(esi + 0x38); /* 0x36123B88: mov edx, dword ptr [esi + 0x38] */ 690 ecx = esi + 0x168C; /* 0x36123B8B: lea ecx, [esi + 0x168c] */ 691 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edx + 0x10) = _v; } /* 0x36123B91: fstp dword ptr [eax + edx + 0x10] */ 692 eax = MEM32(ebp + (-0x10)); /* 0x36123B95: mov eax, dword ptr [ebp - 0x10] */ 693 PUSH32(esp, eax); /* 0x36123B98: push eax */ 694 RECOMP_ICALL(0x36137D80u); /* 0x36123B99: call 0x36137d80 */ /* not lifted */ 695 RECOMP_FLAGS_IN(); 696 edx = MEM32(esi + 0x38); /* 0x36123B9E: mov edx, dword ptr [esi + 0x38] */ 697 ecx = MEM32(ebp + (-0x14)); /* 0x36123BA1: mov ecx, dword ptr [ebp - 0x14] */ 698 MEM32(ecx + edx + 0x14) = eax; /* 0x36123BA4: mov dword ptr [ecx + edx + 0x14], eax */ 699 eax = MEM32(esi + 0x38); /* 0x36123BA8: mov eax, dword ptr [esi + 0x38] */ 700 MEM32(ecx + eax + 0x18) = ebx; /* 0x36123BAB: mov dword ptr [ecx + eax + 0x18], ebx */ 701 eax = MEM32(ebp + (-0xC)); /* 0x36123BAF: mov eax, dword ptr [ebp - 0xc] */ 702 edx = MEM32(esi + 0x38); /* 0x36123BB2: mov edx, dword ptr [esi + 0x38] */ 703 ebx = MEM32(ebp + (-0x8)); /* 0x36123BB5: mov ebx, dword ptr [ebp - 8] */ 704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 705 eax = eax + 1; /* 0x36123BB8: inc eax */ 706 _flag_k = FK_INC; 707 MEM8(ecx + edx + 0x1C) = (uint8_t)(1); /* 0x36123BB9: mov byte ptr [ecx + edx + 0x1c], 1 */ 708 MEM32(ebp + (-0xC)) = eax; /* 0x36123BBE: mov dword ptr [ebp - 0xc], eax */ 709 goto L_36123CF3; /* 0x36123BC1: jmp 0x36123cf3 */ 710 L_36123BC6: 711 eax = MEM32(ebp + (-0x18)); /* 0x36123BC6: mov eax, dword ptr [ebp - 0x18] */ 712 /* test eax, eax */ /* 0x36123BC9: test eax, eax */ 713 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 714 _cf = 0; 715 _flag_k = FK_TEST; 716 if (TEST_Z(_flag_a, _flag_b)) goto L_36123CE8; /* 0x36123BCB: je 0x36123ce8 */ 717 L_36123BD1: 718 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123BD1: mov al, byte ptr [esi + 0x163c] */ 719 /* test LO8(eax), LO8(eax) */ /* 0x36123BD7: test al, al */ 720 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 721 _cf = 0; 722 _flag_k = FK_NARROW(FK_TEST, 24); 723 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123CE8; /* 0x36123BD9: jne 0x36123ce8 */ 724 L_36123BDF: 725 eax = ebp + (-0x68); /* 0x36123BDF: lea eax, [ebp - 0x68] */ 726 PUSH32(esp, eax); /* 0x36123BE2: push eax */ 727 MEM32(ebp + (-0x68)) = 0; /* 0x36123BE3: mov dword ptr [ebp - 0x68], 0 */ 728 MEM32(ebp + (-0x64)) = 0; /* 0x36123BEA: mov dword ptr [ebp - 0x64], 0 */ 729 MEM32(ebp + (-0x60)) = 0; /* 0x36123BF1: mov dword ptr [ebp - 0x60], 0 */ 730 RECOMP_ICALL(0x360FCD10u); /* 0x36123BF8: call 0x360fcd10 */ /* not lifted */ 731 RECOMP_FLAGS_IN(); 732 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36123BFD: fld dword ptr [ebp - 0x68] */ 733 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x36123C00: fmul dword ptr [esi + 0x16cc] */ 734 ecx = MEM32(ebp + (-0x28)); /* 0x36123C06: mov ecx, dword ptr [ebp - 0x28] */ 735 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36123C09: fld dword ptr [ebp - 0x60] */ 736 edx = MEM32(ebp + (-0x24)); /* 0x36123C0C: mov edx, dword ptr [ebp - 0x24] */ 737 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x36123C0F: fmul dword ptr [esi + 0x16cc] */ 738 eax = MEM32(ebp + (-0x20)); /* 0x36123C15: mov eax, dword ptr [ebp - 0x20] */ 739 MEM32(ebp + (-0x74)) = ecx; /* 0x36123C18: mov dword ptr [ebp - 0x74], ecx */ 740 MEM32(ebp + (-0x70)) = edx; /* 0x36123C1B: mov dword ptr [ebp - 0x70], edx */ 741 fp_push(_st[1]); /* 0x36123C1E: fld st(1) */ 742 MEM32(ebp + (-0x6C)) = eax; /* 0x36123C20: mov dword ptr [ebp - 0x6c], eax */ 743 _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36123C23: fadd dword ptr [ebp - 0x28] */ 744 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 746 esp = esp + 4; /* 0x36123C26: add esp, 4 */ 747 _flag_k = FK_ADD; 748 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36123C29: fst dword ptr [ebp - 0x74] */ 749 ecx = MEM32(ebp + (-0x74)); /* 0x36123C2C: mov ecx, dword ptr [ebp - 0x74] */ 750 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36123C2F: fld dword ptr [ebp - 0x64] */ 751 MEM32(ebp + (-0xB4)) = ecx; /* 0x36123C32: mov dword ptr [ebp - 0xb4], ecx */ 752 _st[0] += (double)*(float*)ADDR(ebp + (-0x70)); /* 0x36123C38: fadd dword ptr [ebp - 0x70] */ 753 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36123C3B: fstp dword ptr [ebp - 0x70] */ 754 edx = MEM32(ebp + (-0x70)); /* 0x36123C3E: mov edx, dword ptr [ebp - 0x70] */ 755 MEM32(ebp + (-0xB0)) = edx; /* 0x36123C41: mov dword ptr [ebp - 0xb0], edx */ 756 fp_push(_st[1]); /* 0x36123C47: fld st(1) */ 757 _st[0] += (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x36123C49: fadd dword ptr [ebp - 0x6c] */ 758 edx = edi + 0x5F8; /* 0x36123C4C: lea edx, [edi + 0x5f8] */ 759 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36123C52: fstp dword ptr [ebp - 0x6c] */ 760 eax = MEM32(ebp + (-0x6C)); /* 0x36123C55: mov eax, dword ptr [ebp - 0x6c] */ 761 MEM32(ebp + (-0xAC)) = eax; /* 0x36123C58: mov dword ptr [ebp - 0xac], eax */ 762 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x36123C5E: fstp dword ptr [ebp - 0xb4] */ 763 ecx = eax; /* 0x36123C64: mov ecx, eax */ 764 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36123C66: fld dword ptr [ebp - 0xb0] */ 765 eax = MEM32(ebp + (-0xB4)); /* 0x36123C6C: mov eax, dword ptr [ebp - 0xb4] */ 766 _st[0] -= (double)*(float*)ADDR(0x36170380); /* 0x36123C72: fsub dword ptr [0x36170380] */ 767 MEM32(ebp + (-0xAC)) = ecx; /* 0x36123C78: mov dword ptr [ebp - 0xac], ecx */ 768 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x36123C7E: fstp dword ptr [ebp - 0xb0] */ 769 MEM32(edx) = eax; /* 0x36123C84: mov dword ptr [edx], eax */ 770 ecx = MEM32(ebp + (-0xB0)); /* 0x36123C86: mov ecx, dword ptr [ebp - 0xb0] */ 771 MEM32(edx + 0x4) = ecx; /* 0x36123C8C: mov dword ptr [edx + 4], ecx */ 772 eax = MEM32(ebp + (-0xAC)); /* 0x36123C8F: mov eax, dword ptr [ebp - 0xac] */ 773 MEM32(edx + 0x8) = eax; /* 0x36123C95: mov dword ptr [edx + 8], eax */ 774 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x36123C98: fstp dword ptr [ebp - 0x90] */ 775 edx = MEM32(ebp + (-0x90)); /* 0x36123C9E: mov edx, dword ptr [ebp - 0x90] */ 776 _st[0] = -_st[0]; /* 0x36123CA4: fchs */ 777 MEM32(ebp + (-0x8C)) = 0x3F000000u; /* 0x36123CA6: mov dword ptr [ebp - 0x8c], 0x3f000000 */ 778 ecx = edi + (-0x8); /* 0x36123CB0: lea ecx, [edi - 8] */ 779 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x36123CB3: fstp dword ptr [ebp - 0x88] */ 780 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36123CB9: fld dword ptr [ebp - 0x2c] */ 781 MEM32(ecx) = edx; /* 0x36123CBC: mov dword ptr [ecx], edx */ 782 eax = MEM32(ebp + (-0x8C)); /* 0x36123CBE: mov eax, dword ptr [ebp - 0x8c] */ 783 MEM32(ecx + 0x4) = eax; /* 0x36123CC4: mov dword ptr [ecx + 4], eax */ 784 edx = MEM32(ebp + (-0x88)); /* 0x36123CC7: mov edx, dword ptr [ebp - 0x88] */ 785 eax = MEM32(ebp + (-0x18)); /* 0x36123CCD: mov eax, dword ptr [ebp - 0x18] */ 786 MEM32(ecx + 0x8) = edx; /* 0x36123CD0: mov dword ptr [ecx + 8], edx */ 787 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123CD3: fadd dword ptr [esi + 0x16c0] */ 788 ecx = MEM32(ebp + (-0xC)); /* 0x36123CD9: mov ecx, dword ptr [ebp - 0xc] */ 789 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 790 ecx = ecx + 1; /* 0x36123CDC: inc ecx */ 791 _flag_k = FK_INC; 792 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 793 eax = eax - 1; /* 0x36123CDD: dec eax */ 794 _flag_k = FK_DEC; 795 { float _v = (float)fp_pop(); *(float*)ADDR(ebx) = _v; } /* 0x36123CDE: fstp dword ptr [ebx] */ 796 MEM32(ebp + (-0xC)) = ecx; /* 0x36123CE0: mov dword ptr [ebp - 0xc], ecx */ 797 MEM32(ebp + (-0x18)) = eax; /* 0x36123CE3: mov dword ptr [ebp - 0x18], eax */ 798 goto L_36123CF3; /* 0x36123CE6: jmp 0x36123cf3 */ 799 L_36123CE8: 800 eax = MEM32(esi + 0x38); /* 0x36123CE8: mov eax, dword ptr [esi + 0x38] */ 801 ecx = MEM32(ebp + (-0x14)); /* 0x36123CEB: mov ecx, dword ptr [ebp - 0x14] */ 802 MEM8(eax + ecx + 0x1C) = (uint8_t)(0); /* 0x36123CEE: mov byte ptr [eax + ecx + 0x1c], 0 */ 803 L_36123CF3: 804 eax = MEM32(ebp + (-0x14)); /* 0x36123CF3: mov eax, dword ptr [ebp - 0x14] */ 805 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 806 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 807 eax = eax + 0x20u; /* 0x36123CF6: add eax, 0x20 */ 808 _flag_k = FK_ADD; 809 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 810 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 811 ebx = ebx + 4; /* 0x36123CF9: add ebx, 4 */ 812 _flag_k = FK_ADD; 813 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 814 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 815 edi = edi + 0xCu; /* 0x36123CFC: add edi, 0xc */ 816 _flag_k = FK_ADD; 817 /* cmp eax, 0x1000u */ /* 0x36123CFF: cmp eax, 0x1000 */ 818 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 820 _flag_k = FK_CMP; 821 MEM32(ebp + (-0x8)) = ebx; /* 0x36123D04: mov dword ptr [ebp - 8], ebx */ 822 MEM32(ebp + (-0x14)) = eax; /* 0x36123D07: mov dword ptr [ebp - 0x14], eax */ 823 RECOMP_BACKEDGE(); 824 if (CMP_L(_flag_a, _flag_b)) goto L_361239C7; /* 0x36123D0A: jl 0x361239c7 */ 825 L_36123D10: 826 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123D10: mov al, byte ptr [esi + 0x163c] */ 827 /* test LO8(eax), LO8(eax) */ /* 0x36123D16: test al, al */ 828 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 829 _cf = 0; 830 _flag_k = FK_NARROW(FK_TEST, 24); 831 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123D18: je 0x361275ac */ 832 L_36123D1E: 833 eax = MEM32(ebp + (-0xC)); /* 0x36123D1E: mov eax, dword ptr [ebp - 0xc] */ 834 /* test eax, eax */ /* 0x36123D21: test eax, eax */ 835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 836 _cf = 0; 837 _flag_k = FK_TEST; 838 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123D23: jne 0x361275ac */ 839 L_36123D29: 840 goto L_361275A8; /* 0x36123D29: jmp 0x361275a8 */ 841 L_361275A8: 842 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 843 L_361275AC: 844 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 845 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 847 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 848 _flag_k = FK_ADD; 849 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 851 _cf = 0; 852 _flag_k = FK_TEST; 853 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 854 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 855 L_361275B7: 856 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 857 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 858 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 859 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 860 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 861 RECOMP_FLAGS_IN(); 862 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 863 PUSH32(esp, eax); /* 0x361275CD: push eax */ 864 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 865 RECOMP_FLAGS_IN(); 866 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 867 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 868 RECOMP_FLAGS_IN(); 869 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 870 PUSH32(esp, eax); /* 0x361275E2: push eax */ 871 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 872 RECOMP_FLAGS_IN(); 873 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 874 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 875 RECOMP_FLAGS_IN(); 876 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 877 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 878 _cf = (LO8(eax)) != 0; 879 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 880 _flag_k = FK_NARROW(FK_CMP, 24); 881 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 882 eax = _sc ? 0xFFFFFFFFu : 0; 883 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 884 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 886 eax = eax + 1; /* 0x361275F6: inc eax */ 887 _flag_k = FK_INC; 888 PUSH32(esp, eax); /* 0x361275F7: push eax */ 889 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 890 RECOMP_FLAGS_IN(); 891 L_361275FE: 892 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 893 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 894 esp = ebp; /* 0x36127600: mov esp, ebp */ 895 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 896 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 897 RECOMP_REGS_OUT(); 898 } 899 900 void sub_36123B4B(void) { 901 int _fpu_cmp = 0; 902 uint32_t _cf = 0; 903 int _df = 1; 904 uint32_t _flag_k = FK_NONE; 905 uint32_t _flag_a = 0, _flag_b = 0; 906 uint32_t _itail_tgt = 0; 907 RECOMP_REGS_LOCALS 908 RECOMP_ENTER(0x36123B4Bu); 909 910 goto L_36123B4B; 911 L_361239C7: 912 fp_push(*(float*)&MEM32(ebx)); /* 0x361239C7: fld dword ptr [ebx] */ 913 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x2C))); /* 0x361239C9: fcomp dword ptr [ebp - 0x2c] */ 914 fp_pop(); 915 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361239CC: fnstsw ax */ 916 /* test HI8(eax), 0x41u */ /* 0x361239CE: test ah, 0x41 */ 917 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 918 _cf = 0; 919 _flag_k = FK_NARROW(FK_TEST, 24); 920 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123BC6; /* 0x361239D1: jne 0x36123bc6 */ 921 L_361239D7: 922 eax = MEM32(ebp + (-0x28)); /* 0x361239D7: mov eax, dword ptr [ebp - 0x28] */ 923 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361239DA: fld dword ptr [ebp - 0x28] */ 924 ecx = MEM32(ebp + (-0x24)); /* 0x361239DD: mov ecx, dword ptr [ebp - 0x24] */ 925 edx = MEM32(ebp + (-0x20)); /* 0x361239E0: mov edx, dword ptr [ebp - 0x20] */ 926 MEM32(ebp + (-0x38)) = eax; /* 0x361239E3: mov dword ptr [ebp - 0x38], eax */ 927 MEM32(ebp + (-0x30)) = edx; /* 0x361239E6: mov dword ptr [ebp - 0x30], edx */ 928 MEM32(ebp + (-0x34)) = ecx; /* 0x361239E9: mov dword ptr [ebp - 0x34], ecx */ 929 _st[0] -= (double)*(float*)ADDR(edi + 0x5F8); /* 0x361239EC: fsub dword ptr [edi + 0x5f8] */ 930 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x361239F2: fstp dword ptr [ebp - 0x38] */ 931 eax = MEM32(ebp + (-0x38)); /* 0x361239F5: mov eax, dword ptr [ebp - 0x38] */ 932 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361239F8: fld dword ptr [ebp - 0x34] */ 933 _st[0] -= (double)*(float*)ADDR(edi + 0x5FC); /* 0x361239FB: fsub dword ptr [edi + 0x5fc] */ 934 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36123A01: fstp dword ptr [ebp - 0x34] */ 935 ecx = MEM32(ebp + (-0x34)); /* 0x36123A04: mov ecx, dword ptr [ebp - 0x34] */ 936 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36123A07: fld dword ptr [ebp - 0x30] */ 937 _st[0] -= (double)*(float*)ADDR(edi + 0x600); /* 0x36123A0A: fsub dword ptr [edi + 0x600] */ 938 MEM32(ebp + (-0x44)) = eax; /* 0x36123A10: mov dword ptr [ebp - 0x44], eax */ 939 MEM32(ebp + (-0x40)) = ecx; /* 0x36123A13: mov dword ptr [ebp - 0x40], ecx */ 940 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36123A16: fstp dword ptr [ebp - 0x30] */ 941 edx = MEM32(ebp + (-0x30)); /* 0x36123A19: mov edx, dword ptr [ebp - 0x30] */ 942 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A1C: fld dword ptr [ebp - 4] */ 943 MEM32(ebp + (-0x3C)) = edx; /* 0x36123A1F: mov dword ptr [ebp - 0x3c], edx */ 944 _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x36123A22: fmul dword ptr [ebp - 0x38] */ 945 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36123A25: fstp dword ptr [ebp - 0x44] */ 946 eax = MEM32(ebp + (-0x44)); /* 0x36123A28: mov eax, dword ptr [ebp - 0x44] */ 947 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A2B: fld dword ptr [ebp - 4] */ 948 MEM32(ebp + (-0xD0)) = eax; /* 0x36123A2E: mov dword ptr [ebp - 0xd0], eax */ 949 _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36123A34: fmul dword ptr [ebp - 0x40] */ 950 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36123A37: fstp dword ptr [ebp - 0x40] */ 951 ecx = MEM32(ebp + (-0x40)); /* 0x36123A3A: mov ecx, dword ptr [ebp - 0x40] */ 952 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A3D: fld dword ptr [ebp - 4] */ 953 MEM32(ebp + (-0xCC)) = ecx; /* 0x36123A40: mov dword ptr [ebp - 0xcc], ecx */ 954 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36123A46: fmul dword ptr [ebp - 0x3c] */ 955 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36123A49: fstp dword ptr [ebp - 0x3c] */ 956 edx = MEM32(ebp + (-0x3C)); /* 0x36123A4C: mov edx, dword ptr [ebp - 0x3c] */ 957 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36123A4F: fld dword ptr [ebp - 0x44] */ 958 MEM32(ebp + (-0xC8)) = edx; /* 0x36123A52: mov dword ptr [ebp - 0xc8], edx */ 959 _st[0] += (double)*(float*)ADDR(edi + (-0x8)); /* 0x36123A58: fadd dword ptr [edi - 8] */ 960 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x8)) = _v; } /* 0x36123A5B: fstp dword ptr [edi - 8] */ 961 fp_push(*(float*)&MEM32(ebp + (-0xCC))); /* 0x36123A5E: fld dword ptr [ebp - 0xcc] */ 962 _st[0] += (double)*(float*)ADDR(edi + (-0x4)); /* 0x36123A64: fadd dword ptr [edi - 4] */ 963 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x4)) = _v; } /* 0x36123A67: fstp dword ptr [edi - 4] */ 964 fp_push(*(float*)&MEM32(ebp + (-0xC8))); /* 0x36123A6A: fld dword ptr [ebp - 0xc8] */ 965 _st[0] += (double)*(float*)ADDR(edi); /* 0x36123A70: fadd dword ptr [edi] */ 966 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36123A72: fstp dword ptr [edi] */ 967 eax = MEM32(edi + (-0x8)); /* 0x36123A74: mov eax, dword ptr [edi - 8] */ 968 MEM32(ebp + (-0x50)) = eax; /* 0x36123A77: mov dword ptr [ebp - 0x50], eax */ 969 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36123A7A: fld dword ptr [ebp - 0x50] */ 970 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123A7D: fmul dword ptr [0x36170d68] */ 971 ecx = MEM32(edi + (-0x4)); /* 0x36123A83: mov ecx, dword ptr [edi - 4] */ 972 MEM32(ebp + (-0x4C)) = ecx; /* 0x36123A86: mov dword ptr [ebp - 0x4c], ecx */ 973 edx = MEM32(edi); /* 0x36123A89: mov edx, dword ptr [edi] */ 974 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36123A8B: fstp dword ptr [ebp - 0x50] */ 975 eax = MEM32(ebp + (-0x50)); /* 0x36123A8E: mov eax, dword ptr [ebp - 0x50] */ 976 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36123A91: fld dword ptr [ebp - 0x4c] */ 977 MEM32(ebp + (-0x48)) = edx; /* 0x36123A94: mov dword ptr [ebp - 0x48], edx */ 978 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123A97: fmul dword ptr [0x36170d68] */ 979 MEM32(ebp + (-0xE8)) = eax; /* 0x36123A9D: mov dword ptr [ebp - 0xe8], eax */ 980 eax = MEM32(ebp + (-0x14)); /* 0x36123AA3: mov eax, dword ptr [ebp - 0x14] */ 981 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36123AA6: fstp dword ptr [ebp - 0x4c] */ 982 ecx = MEM32(ebp + (-0x4C)); /* 0x36123AA9: mov ecx, dword ptr [ebp - 0x4c] */ 983 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36123AAC: fld dword ptr [ebp - 0x48] */ 984 MEM32(ebp + (-0xE4)) = ecx; /* 0x36123AAF: mov dword ptr [ebp - 0xe4], ecx */ 985 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123AB5: fmul dword ptr [0x36170d68] */ 986 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36123ABB: fstp dword ptr [ebp - 0x48] */ 987 edx = MEM32(ebp + (-0x48)); /* 0x36123ABE: mov edx, dword ptr [ebp - 0x48] */ 988 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36123AC1: fld dword ptr [ebp - 0x50] */ 989 MEM32(ebp + (-0xE0)) = edx; /* 0x36123AC4: mov dword ptr [ebp - 0xe0], edx */ 990 _st[0] += (double)*(float*)ADDR(edi + 0x5F8); /* 0x36123ACA: fadd dword ptr [edi + 0x5f8] */ 991 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5F8) = _v; } /* 0x36123AD0: fstp dword ptr [edi + 0x5f8] */ 992 fp_push(*(float*)&MEM32(ebp + (-0xE4))); /* 0x36123AD6: fld dword ptr [ebp - 0xe4] */ 993 _st[0] += (double)*(float*)ADDR(edi + 0x5FC); /* 0x36123ADC: fadd dword ptr [edi + 0x5fc] */ 994 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5FC) = _v; } /* 0x36123AE2: fstp dword ptr [edi + 0x5fc] */ 995 fp_push(*(float*)&MEM32(ebp + (-0xE0))); /* 0x36123AE8: fld dword ptr [ebp - 0xe0] */ 996 _st[0] += (double)*(float*)ADDR(edi + 0x600); /* 0x36123AEE: fadd dword ptr [edi + 0x600] */ 997 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x600) = _v; } /* 0x36123AF4: fstp dword ptr [edi + 0x600] */ 998 edx = MEM32(esi + 0x38); /* 0x36123AFA: mov edx, dword ptr [esi + 0x38] */ 999 ecx = MEM32(edi + 0x5F8); /* 0x36123AFD: mov ecx, dword ptr [edi + 0x5f8] */ 1000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1002 eax = eax + edx; /* 0x36123B03: add eax, edx */ 1003 _flag_k = FK_ADD; 1004 MEM32(eax) = ecx; /* 0x36123B05: mov dword ptr [eax], ecx */ 1005 edx = MEM32(edi + 0x5FC); /* 0x36123B07: mov edx, dword ptr [edi + 0x5fc] */ 1006 MEM32(eax + 0x4) = edx; /* 0x36123B0D: mov dword ptr [eax + 4], edx */ 1007 ecx = MEM32(edi + 0x600); /* 0x36123B10: mov ecx, dword ptr [edi + 0x600] */ 1008 edx = MEM32(ebp + (-0x8)); /* 0x36123B16: mov edx, dword ptr [ebp - 8] */ 1009 MEM32(eax + 0x8) = ecx; /* 0x36123B19: mov dword ptr [eax + 8], ecx */ 1010 fp_push(*(float*)&MEM32(edx)); /* 0x36123B1C: fld dword ptr [edx] */ 1011 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x36123B1E: fsub dword ptr [ebp - 0x2c] */ 1012 _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x36123B21: fmul dword ptr [0x36170ba4] */ 1013 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B27: fdiv dword ptr [esi + 0x16c0] */ 1014 RECOMP_ICALL(0x3615FD8Cu); /* 0x36123B2D: call 0x3615fd8c */ /* not lifted */ 1015 RECOMP_FLAGS_IN(); 1016 ebx = 0xFu; /* 0x36123B32: mov ebx, 0xf */ 1017 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1019 ebx = ebx - eax; /* 0x36123B37: sub ebx, eax */ 1020 _flag_k = FK_CMP; 1021 /* cmp ebx, 0xFu */ /* 0x36123B39: cmp ebx, 0xf */ 1022 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFu); 1023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1024 _flag_k = FK_CMP; 1025 if (CMP_LE(_flag_a, _flag_b)) goto L_36123B45; /* 0x36123B3C: jle 0x36123b45 */ 1026 L_36123B3E: 1027 ebx = 0xFu; /* 0x36123B3E: mov ebx, 0xf */ 1028 goto L_36123B4B; /* 0x36123B43: jmp 0x36123b4b */ 1029 L_36123B45: 1030 /* test ebx, ebx */ /* 0x36123B45: test ebx, ebx */ 1031 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1032 _cf = 0; 1033 _flag_k = FK_TEST; 1034 if (TEST_NS(_flag_a, _flag_b)) goto L_36123B4B; /* 0x36123B47: jge 0x36123b4b */ 1035 L_36123B49: 1036 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1037 ebx = 0; /* 0x36123B49: xor ebx, ebx */ 1038 _cf = 0; 1039 _flag_k = FK_TEST; 1040 L_36123B4B: 1041 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36123B4B: fld dword ptr [ebp - 0x2c] */ 1042 eax = MEM32(ebp + (-0x8)); /* 0x36123B4E: mov eax, dword ptr [ebp - 8] */ 1043 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B51: fadd dword ptr [esi + 0x16c0] */ 1044 ecx = MEM32(esi + 0x38); /* 0x36123B57: mov ecx, dword ptr [esi + 0x38] */ 1045 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36123B5A: fsub dword ptr [eax] */ 1046 eax = MEM32(ebp + (-0x14)); /* 0x36123B5C: mov eax, dword ptr [ebp - 0x14] */ 1047 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B5F: fdiv dword ptr [esi + 0x16c0] */ 1048 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36123B65: fst dword ptr [ebp - 0x10] */ 1049 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36123B68: fmul dword ptr [ebp - 0x10] */ 1050 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36123B6B: fsubr dword ptr [0x36170380] */ 1051 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36123B71: fld dword ptr [ebp - 0x10] */ 1052 _st[0] += (double)*(float*)ADDR(0x36170F04); /* 0x36123B74: fadd dword ptr [0x36170f04] */ 1053 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36123B7A: fmulp st(1) */ 1054 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36123B7C: fmul dword ptr [esi + 0x16c8] */ 1055 fp_push(_st[0]); /* 0x36123B82: fld st(0) */ 1056 { float _v = (float)fp_pop(); *(float*)ADDR(eax + ecx + 0xC) = _v; } /* 0x36123B84: fstp dword ptr [eax + ecx + 0xc] */ 1057 edx = MEM32(esi + 0x38); /* 0x36123B88: mov edx, dword ptr [esi + 0x38] */ 1058 ecx = esi + 0x168C; /* 0x36123B8B: lea ecx, [esi + 0x168c] */ 1059 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edx + 0x10) = _v; } /* 0x36123B91: fstp dword ptr [eax + edx + 0x10] */ 1060 eax = MEM32(ebp + (-0x10)); /* 0x36123B95: mov eax, dword ptr [ebp - 0x10] */ 1061 PUSH32(esp, eax); /* 0x36123B98: push eax */ 1062 RECOMP_ICALL(0x36137D80u); /* 0x36123B99: call 0x36137d80 */ /* not lifted */ 1063 RECOMP_FLAGS_IN(); 1064 edx = MEM32(esi + 0x38); /* 0x36123B9E: mov edx, dword ptr [esi + 0x38] */ 1065 ecx = MEM32(ebp + (-0x14)); /* 0x36123BA1: mov ecx, dword ptr [ebp - 0x14] */ 1066 MEM32(ecx + edx + 0x14) = eax; /* 0x36123BA4: mov dword ptr [ecx + edx + 0x14], eax */ 1067 eax = MEM32(esi + 0x38); /* 0x36123BA8: mov eax, dword ptr [esi + 0x38] */ 1068 MEM32(ecx + eax + 0x18) = ebx; /* 0x36123BAB: mov dword ptr [ecx + eax + 0x18], ebx */ 1069 eax = MEM32(ebp + (-0xC)); /* 0x36123BAF: mov eax, dword ptr [ebp - 0xc] */ 1070 edx = MEM32(esi + 0x38); /* 0x36123BB2: mov edx, dword ptr [esi + 0x38] */ 1071 ebx = MEM32(ebp + (-0x8)); /* 0x36123BB5: mov ebx, dword ptr [ebp - 8] */ 1072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1073 eax = eax + 1; /* 0x36123BB8: inc eax */ 1074 _flag_k = FK_INC; 1075 MEM8(ecx + edx + 0x1C) = (uint8_t)(1); /* 0x36123BB9: mov byte ptr [ecx + edx + 0x1c], 1 */ 1076 MEM32(ebp + (-0xC)) = eax; /* 0x36123BBE: mov dword ptr [ebp - 0xc], eax */ 1077 goto L_36123CF3; /* 0x36123BC1: jmp 0x36123cf3 */ 1078 L_36123BC6: 1079 eax = MEM32(ebp + (-0x18)); /* 0x36123BC6: mov eax, dword ptr [ebp - 0x18] */ 1080 /* test eax, eax */ /* 0x36123BC9: test eax, eax */ 1081 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1082 _cf = 0; 1083 _flag_k = FK_TEST; 1084 if (TEST_Z(_flag_a, _flag_b)) goto L_36123CE8; /* 0x36123BCB: je 0x36123ce8 */ 1085 L_36123BD1: 1086 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123BD1: mov al, byte ptr [esi + 0x163c] */ 1087 /* test LO8(eax), LO8(eax) */ /* 0x36123BD7: test al, al */ 1088 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1089 _cf = 0; 1090 _flag_k = FK_NARROW(FK_TEST, 24); 1091 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123CE8; /* 0x36123BD9: jne 0x36123ce8 */ 1092 L_36123BDF: 1093 eax = ebp + (-0x68); /* 0x36123BDF: lea eax, [ebp - 0x68] */ 1094 PUSH32(esp, eax); /* 0x36123BE2: push eax */ 1095 MEM32(ebp + (-0x68)) = 0; /* 0x36123BE3: mov dword ptr [ebp - 0x68], 0 */ 1096 MEM32(ebp + (-0x64)) = 0; /* 0x36123BEA: mov dword ptr [ebp - 0x64], 0 */ 1097 MEM32(ebp + (-0x60)) = 0; /* 0x36123BF1: mov dword ptr [ebp - 0x60], 0 */ 1098 RECOMP_ICALL(0x360FCD10u); /* 0x36123BF8: call 0x360fcd10 */ /* not lifted */ 1099 RECOMP_FLAGS_IN(); 1100 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36123BFD: fld dword ptr [ebp - 0x68] */ 1101 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x36123C00: fmul dword ptr [esi + 0x16cc] */ 1102 ecx = MEM32(ebp + (-0x28)); /* 0x36123C06: mov ecx, dword ptr [ebp - 0x28] */ 1103 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36123C09: fld dword ptr [ebp - 0x60] */ 1104 edx = MEM32(ebp + (-0x24)); /* 0x36123C0C: mov edx, dword ptr [ebp - 0x24] */ 1105 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x36123C0F: fmul dword ptr [esi + 0x16cc] */ 1106 eax = MEM32(ebp + (-0x20)); /* 0x36123C15: mov eax, dword ptr [ebp - 0x20] */ 1107 MEM32(ebp + (-0x74)) = ecx; /* 0x36123C18: mov dword ptr [ebp - 0x74], ecx */ 1108 MEM32(ebp + (-0x70)) = edx; /* 0x36123C1B: mov dword ptr [ebp - 0x70], edx */ 1109 fp_push(_st[1]); /* 0x36123C1E: fld st(1) */ 1110 MEM32(ebp + (-0x6C)) = eax; /* 0x36123C20: mov dword ptr [ebp - 0x6c], eax */ 1111 _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36123C23: fadd dword ptr [ebp - 0x28] */ 1112 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1113 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1114 esp = esp + 4; /* 0x36123C26: add esp, 4 */ 1115 _flag_k = FK_ADD; 1116 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36123C29: fst dword ptr [ebp - 0x74] */ 1117 ecx = MEM32(ebp + (-0x74)); /* 0x36123C2C: mov ecx, dword ptr [ebp - 0x74] */ 1118 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36123C2F: fld dword ptr [ebp - 0x64] */ 1119 MEM32(ebp + (-0xB4)) = ecx; /* 0x36123C32: mov dword ptr [ebp - 0xb4], ecx */ 1120 _st[0] += (double)*(float*)ADDR(ebp + (-0x70)); /* 0x36123C38: fadd dword ptr [ebp - 0x70] */ 1121 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36123C3B: fstp dword ptr [ebp - 0x70] */ 1122 edx = MEM32(ebp + (-0x70)); /* 0x36123C3E: mov edx, dword ptr [ebp - 0x70] */ 1123 MEM32(ebp + (-0xB0)) = edx; /* 0x36123C41: mov dword ptr [ebp - 0xb0], edx */ 1124 fp_push(_st[1]); /* 0x36123C47: fld st(1) */ 1125 _st[0] += (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x36123C49: fadd dword ptr [ebp - 0x6c] */ 1126 edx = edi + 0x5F8; /* 0x36123C4C: lea edx, [edi + 0x5f8] */ 1127 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36123C52: fstp dword ptr [ebp - 0x6c] */ 1128 eax = MEM32(ebp + (-0x6C)); /* 0x36123C55: mov eax, dword ptr [ebp - 0x6c] */ 1129 MEM32(ebp + (-0xAC)) = eax; /* 0x36123C58: mov dword ptr [ebp - 0xac], eax */ 1130 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x36123C5E: fstp dword ptr [ebp - 0xb4] */ 1131 ecx = eax; /* 0x36123C64: mov ecx, eax */ 1132 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36123C66: fld dword ptr [ebp - 0xb0] */ 1133 eax = MEM32(ebp + (-0xB4)); /* 0x36123C6C: mov eax, dword ptr [ebp - 0xb4] */ 1134 _st[0] -= (double)*(float*)ADDR(0x36170380); /* 0x36123C72: fsub dword ptr [0x36170380] */ 1135 MEM32(ebp + (-0xAC)) = ecx; /* 0x36123C78: mov dword ptr [ebp - 0xac], ecx */ 1136 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x36123C7E: fstp dword ptr [ebp - 0xb0] */ 1137 MEM32(edx) = eax; /* 0x36123C84: mov dword ptr [edx], eax */ 1138 ecx = MEM32(ebp + (-0xB0)); /* 0x36123C86: mov ecx, dword ptr [ebp - 0xb0] */ 1139 MEM32(edx + 0x4) = ecx; /* 0x36123C8C: mov dword ptr [edx + 4], ecx */ 1140 eax = MEM32(ebp + (-0xAC)); /* 0x36123C8F: mov eax, dword ptr [ebp - 0xac] */ 1141 MEM32(edx + 0x8) = eax; /* 0x36123C95: mov dword ptr [edx + 8], eax */ 1142 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x36123C98: fstp dword ptr [ebp - 0x90] */ 1143 edx = MEM32(ebp + (-0x90)); /* 0x36123C9E: mov edx, dword ptr [ebp - 0x90] */ 1144 _st[0] = -_st[0]; /* 0x36123CA4: fchs */ 1145 MEM32(ebp + (-0x8C)) = 0x3F000000u; /* 0x36123CA6: mov dword ptr [ebp - 0x8c], 0x3f000000 */ 1146 ecx = edi + (-0x8); /* 0x36123CB0: lea ecx, [edi - 8] */ 1147 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x36123CB3: fstp dword ptr [ebp - 0x88] */ 1148 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36123CB9: fld dword ptr [ebp - 0x2c] */ 1149 MEM32(ecx) = edx; /* 0x36123CBC: mov dword ptr [ecx], edx */ 1150 eax = MEM32(ebp + (-0x8C)); /* 0x36123CBE: mov eax, dword ptr [ebp - 0x8c] */ 1151 MEM32(ecx + 0x4) = eax; /* 0x36123CC4: mov dword ptr [ecx + 4], eax */ 1152 edx = MEM32(ebp + (-0x88)); /* 0x36123CC7: mov edx, dword ptr [ebp - 0x88] */ 1153 eax = MEM32(ebp + (-0x18)); /* 0x36123CCD: mov eax, dword ptr [ebp - 0x18] */ 1154 MEM32(ecx + 0x8) = edx; /* 0x36123CD0: mov dword ptr [ecx + 8], edx */ 1155 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123CD3: fadd dword ptr [esi + 0x16c0] */ 1156 ecx = MEM32(ebp + (-0xC)); /* 0x36123CD9: mov ecx, dword ptr [ebp - 0xc] */ 1157 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1158 ecx = ecx + 1; /* 0x36123CDC: inc ecx */ 1159 _flag_k = FK_INC; 1160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1161 eax = eax - 1; /* 0x36123CDD: dec eax */ 1162 _flag_k = FK_DEC; 1163 { float _v = (float)fp_pop(); *(float*)ADDR(ebx) = _v; } /* 0x36123CDE: fstp dword ptr [ebx] */ 1164 MEM32(ebp + (-0xC)) = ecx; /* 0x36123CE0: mov dword ptr [ebp - 0xc], ecx */ 1165 MEM32(ebp + (-0x18)) = eax; /* 0x36123CE3: mov dword ptr [ebp - 0x18], eax */ 1166 goto L_36123CF3; /* 0x36123CE6: jmp 0x36123cf3 */ 1167 L_36123CE8: 1168 eax = MEM32(esi + 0x38); /* 0x36123CE8: mov eax, dword ptr [esi + 0x38] */ 1169 ecx = MEM32(ebp + (-0x14)); /* 0x36123CEB: mov ecx, dword ptr [ebp - 0x14] */ 1170 MEM8(eax + ecx + 0x1C) = (uint8_t)(0); /* 0x36123CEE: mov byte ptr [eax + ecx + 0x1c], 0 */ 1171 L_36123CF3: 1172 eax = MEM32(ebp + (-0x14)); /* 0x36123CF3: mov eax, dword ptr [ebp - 0x14] */ 1173 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 1174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1175 eax = eax + 0x20u; /* 0x36123CF6: add eax, 0x20 */ 1176 _flag_k = FK_ADD; 1177 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 1178 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1179 ebx = ebx + 4; /* 0x36123CF9: add ebx, 4 */ 1180 _flag_k = FK_ADD; 1181 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 1182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1183 edi = edi + 0xCu; /* 0x36123CFC: add edi, 0xc */ 1184 _flag_k = FK_ADD; 1185 /* cmp eax, 0x1000u */ /* 0x36123CFF: cmp eax, 0x1000 */ 1186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 1187 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1188 _flag_k = FK_CMP; 1189 MEM32(ebp + (-0x8)) = ebx; /* 0x36123D04: mov dword ptr [ebp - 8], ebx */ 1190 MEM32(ebp + (-0x14)) = eax; /* 0x36123D07: mov dword ptr [ebp - 0x14], eax */ 1191 RECOMP_BACKEDGE(); 1192 if (CMP_L(_flag_a, _flag_b)) goto L_361239C7; /* 0x36123D0A: jl 0x361239c7 */ 1193 L_36123D10: 1194 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123D10: mov al, byte ptr [esi + 0x163c] */ 1195 /* test LO8(eax), LO8(eax) */ /* 0x36123D16: test al, al */ 1196 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1197 _cf = 0; 1198 _flag_k = FK_NARROW(FK_TEST, 24); 1199 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123D18: je 0x361275ac */ 1200 L_36123D1E: 1201 eax = MEM32(ebp + (-0xC)); /* 0x36123D1E: mov eax, dword ptr [ebp - 0xc] */ 1202 /* test eax, eax */ /* 0x36123D21: test eax, eax */ 1203 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1204 _cf = 0; 1205 _flag_k = FK_TEST; 1206 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123D23: jne 0x361275ac */ 1207 L_36123D29: 1208 goto L_361275A8; /* 0x36123D29: jmp 0x361275a8 */ 1209 L_361275A8: 1210 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 1211 L_361275AC: 1212 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 1213 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 1214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1215 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 1216 _flag_k = FK_ADD; 1217 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 1218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1219 _cf = 0; 1220 _flag_k = FK_TEST; 1221 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 1222 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 1223 L_361275B7: 1224 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 1225 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 1226 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 1227 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 1228 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 1229 RECOMP_FLAGS_IN(); 1230 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 1231 PUSH32(esp, eax); /* 0x361275CD: push eax */ 1232 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 1233 RECOMP_FLAGS_IN(); 1234 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 1235 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 1236 RECOMP_FLAGS_IN(); 1237 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 1238 PUSH32(esp, eax); /* 0x361275E2: push eax */ 1239 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 1240 RECOMP_FLAGS_IN(); 1241 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 1242 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 1243 RECOMP_FLAGS_IN(); 1244 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 1245 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1246 _cf = (LO8(eax)) != 0; 1247 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 1248 _flag_k = FK_NARROW(FK_CMP, 24); 1249 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 1250 eax = _sc ? 0xFFFFFFFFu : 0; 1251 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1252 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1253 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1254 eax = eax + 1; /* 0x361275F6: inc eax */ 1255 _flag_k = FK_INC; 1256 PUSH32(esp, eax); /* 0x361275F7: push eax */ 1257 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 1258 RECOMP_FLAGS_IN(); 1259 L_361275FE: 1260 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 1261 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 1262 esp = ebp; /* 0x36127600: mov esp, ebp */ 1263 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 1264 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 1265 RECOMP_REGS_OUT(); 1266 } 1267 1268 void sub_36123BC6(void) { 1269 int _fpu_cmp = 0; 1270 uint32_t _cf = 0; 1271 int _df = 1; 1272 uint32_t _flag_k = FK_NONE; 1273 uint32_t _flag_a = 0, _flag_b = 0; 1274 uint32_t _itail_tgt = 0; 1275 RECOMP_REGS_LOCALS 1276 RECOMP_ENTER(0x36123BC6u); 1277 1278 goto L_36123BC6; 1279 L_361239C7: 1280 fp_push(*(float*)&MEM32(ebx)); /* 0x361239C7: fld dword ptr [ebx] */ 1281 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x2C))); /* 0x361239C9: fcomp dword ptr [ebp - 0x2c] */ 1282 fp_pop(); 1283 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361239CC: fnstsw ax */ 1284 /* test HI8(eax), 0x41u */ /* 0x361239CE: test ah, 0x41 */ 1285 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1286 _cf = 0; 1287 _flag_k = FK_NARROW(FK_TEST, 24); 1288 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123BC6; /* 0x361239D1: jne 0x36123bc6 */ 1289 L_361239D7: 1290 eax = MEM32(ebp + (-0x28)); /* 0x361239D7: mov eax, dword ptr [ebp - 0x28] */ 1291 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361239DA: fld dword ptr [ebp - 0x28] */ 1292 ecx = MEM32(ebp + (-0x24)); /* 0x361239DD: mov ecx, dword ptr [ebp - 0x24] */ 1293 edx = MEM32(ebp + (-0x20)); /* 0x361239E0: mov edx, dword ptr [ebp - 0x20] */ 1294 MEM32(ebp + (-0x38)) = eax; /* 0x361239E3: mov dword ptr [ebp - 0x38], eax */ 1295 MEM32(ebp + (-0x30)) = edx; /* 0x361239E6: mov dword ptr [ebp - 0x30], edx */ 1296 MEM32(ebp + (-0x34)) = ecx; /* 0x361239E9: mov dword ptr [ebp - 0x34], ecx */ 1297 _st[0] -= (double)*(float*)ADDR(edi + 0x5F8); /* 0x361239EC: fsub dword ptr [edi + 0x5f8] */ 1298 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x361239F2: fstp dword ptr [ebp - 0x38] */ 1299 eax = MEM32(ebp + (-0x38)); /* 0x361239F5: mov eax, dword ptr [ebp - 0x38] */ 1300 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361239F8: fld dword ptr [ebp - 0x34] */ 1301 _st[0] -= (double)*(float*)ADDR(edi + 0x5FC); /* 0x361239FB: fsub dword ptr [edi + 0x5fc] */ 1302 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36123A01: fstp dword ptr [ebp - 0x34] */ 1303 ecx = MEM32(ebp + (-0x34)); /* 0x36123A04: mov ecx, dword ptr [ebp - 0x34] */ 1304 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36123A07: fld dword ptr [ebp - 0x30] */ 1305 _st[0] -= (double)*(float*)ADDR(edi + 0x600); /* 0x36123A0A: fsub dword ptr [edi + 0x600] */ 1306 MEM32(ebp + (-0x44)) = eax; /* 0x36123A10: mov dword ptr [ebp - 0x44], eax */ 1307 MEM32(ebp + (-0x40)) = ecx; /* 0x36123A13: mov dword ptr [ebp - 0x40], ecx */ 1308 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36123A16: fstp dword ptr [ebp - 0x30] */ 1309 edx = MEM32(ebp + (-0x30)); /* 0x36123A19: mov edx, dword ptr [ebp - 0x30] */ 1310 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A1C: fld dword ptr [ebp - 4] */ 1311 MEM32(ebp + (-0x3C)) = edx; /* 0x36123A1F: mov dword ptr [ebp - 0x3c], edx */ 1312 _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x36123A22: fmul dword ptr [ebp - 0x38] */ 1313 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36123A25: fstp dword ptr [ebp - 0x44] */ 1314 eax = MEM32(ebp + (-0x44)); /* 0x36123A28: mov eax, dword ptr [ebp - 0x44] */ 1315 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A2B: fld dword ptr [ebp - 4] */ 1316 MEM32(ebp + (-0xD0)) = eax; /* 0x36123A2E: mov dword ptr [ebp - 0xd0], eax */ 1317 _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36123A34: fmul dword ptr [ebp - 0x40] */ 1318 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36123A37: fstp dword ptr [ebp - 0x40] */ 1319 ecx = MEM32(ebp + (-0x40)); /* 0x36123A3A: mov ecx, dword ptr [ebp - 0x40] */ 1320 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A3D: fld dword ptr [ebp - 4] */ 1321 MEM32(ebp + (-0xCC)) = ecx; /* 0x36123A40: mov dword ptr [ebp - 0xcc], ecx */ 1322 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36123A46: fmul dword ptr [ebp - 0x3c] */ 1323 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36123A49: fstp dword ptr [ebp - 0x3c] */ 1324 edx = MEM32(ebp + (-0x3C)); /* 0x36123A4C: mov edx, dword ptr [ebp - 0x3c] */ 1325 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36123A4F: fld dword ptr [ebp - 0x44] */ 1326 MEM32(ebp + (-0xC8)) = edx; /* 0x36123A52: mov dword ptr [ebp - 0xc8], edx */ 1327 _st[0] += (double)*(float*)ADDR(edi + (-0x8)); /* 0x36123A58: fadd dword ptr [edi - 8] */ 1328 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x8)) = _v; } /* 0x36123A5B: fstp dword ptr [edi - 8] */ 1329 fp_push(*(float*)&MEM32(ebp + (-0xCC))); /* 0x36123A5E: fld dword ptr [ebp - 0xcc] */ 1330 _st[0] += (double)*(float*)ADDR(edi + (-0x4)); /* 0x36123A64: fadd dword ptr [edi - 4] */ 1331 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x4)) = _v; } /* 0x36123A67: fstp dword ptr [edi - 4] */ 1332 fp_push(*(float*)&MEM32(ebp + (-0xC8))); /* 0x36123A6A: fld dword ptr [ebp - 0xc8] */ 1333 _st[0] += (double)*(float*)ADDR(edi); /* 0x36123A70: fadd dword ptr [edi] */ 1334 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36123A72: fstp dword ptr [edi] */ 1335 eax = MEM32(edi + (-0x8)); /* 0x36123A74: mov eax, dword ptr [edi - 8] */ 1336 MEM32(ebp + (-0x50)) = eax; /* 0x36123A77: mov dword ptr [ebp - 0x50], eax */ 1337 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36123A7A: fld dword ptr [ebp - 0x50] */ 1338 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123A7D: fmul dword ptr [0x36170d68] */ 1339 ecx = MEM32(edi + (-0x4)); /* 0x36123A83: mov ecx, dword ptr [edi - 4] */ 1340 MEM32(ebp + (-0x4C)) = ecx; /* 0x36123A86: mov dword ptr [ebp - 0x4c], ecx */ 1341 edx = MEM32(edi); /* 0x36123A89: mov edx, dword ptr [edi] */ 1342 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36123A8B: fstp dword ptr [ebp - 0x50] */ 1343 eax = MEM32(ebp + (-0x50)); /* 0x36123A8E: mov eax, dword ptr [ebp - 0x50] */ 1344 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36123A91: fld dword ptr [ebp - 0x4c] */ 1345 MEM32(ebp + (-0x48)) = edx; /* 0x36123A94: mov dword ptr [ebp - 0x48], edx */ 1346 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123A97: fmul dword ptr [0x36170d68] */ 1347 MEM32(ebp + (-0xE8)) = eax; /* 0x36123A9D: mov dword ptr [ebp - 0xe8], eax */ 1348 eax = MEM32(ebp + (-0x14)); /* 0x36123AA3: mov eax, dword ptr [ebp - 0x14] */ 1349 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36123AA6: fstp dword ptr [ebp - 0x4c] */ 1350 ecx = MEM32(ebp + (-0x4C)); /* 0x36123AA9: mov ecx, dword ptr [ebp - 0x4c] */ 1351 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36123AAC: fld dword ptr [ebp - 0x48] */ 1352 MEM32(ebp + (-0xE4)) = ecx; /* 0x36123AAF: mov dword ptr [ebp - 0xe4], ecx */ 1353 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123AB5: fmul dword ptr [0x36170d68] */ 1354 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36123ABB: fstp dword ptr [ebp - 0x48] */ 1355 edx = MEM32(ebp + (-0x48)); /* 0x36123ABE: mov edx, dword ptr [ebp - 0x48] */ 1356 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36123AC1: fld dword ptr [ebp - 0x50] */ 1357 MEM32(ebp + (-0xE0)) = edx; /* 0x36123AC4: mov dword ptr [ebp - 0xe0], edx */ 1358 _st[0] += (double)*(float*)ADDR(edi + 0x5F8); /* 0x36123ACA: fadd dword ptr [edi + 0x5f8] */ 1359 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5F8) = _v; } /* 0x36123AD0: fstp dword ptr [edi + 0x5f8] */ 1360 fp_push(*(float*)&MEM32(ebp + (-0xE4))); /* 0x36123AD6: fld dword ptr [ebp - 0xe4] */ 1361 _st[0] += (double)*(float*)ADDR(edi + 0x5FC); /* 0x36123ADC: fadd dword ptr [edi + 0x5fc] */ 1362 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5FC) = _v; } /* 0x36123AE2: fstp dword ptr [edi + 0x5fc] */ 1363 fp_push(*(float*)&MEM32(ebp + (-0xE0))); /* 0x36123AE8: fld dword ptr [ebp - 0xe0] */ 1364 _st[0] += (double)*(float*)ADDR(edi + 0x600); /* 0x36123AEE: fadd dword ptr [edi + 0x600] */ 1365 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x600) = _v; } /* 0x36123AF4: fstp dword ptr [edi + 0x600] */ 1366 edx = MEM32(esi + 0x38); /* 0x36123AFA: mov edx, dword ptr [esi + 0x38] */ 1367 ecx = MEM32(edi + 0x5F8); /* 0x36123AFD: mov ecx, dword ptr [edi + 0x5f8] */ 1368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1370 eax = eax + edx; /* 0x36123B03: add eax, edx */ 1371 _flag_k = FK_ADD; 1372 MEM32(eax) = ecx; /* 0x36123B05: mov dword ptr [eax], ecx */ 1373 edx = MEM32(edi + 0x5FC); /* 0x36123B07: mov edx, dword ptr [edi + 0x5fc] */ 1374 MEM32(eax + 0x4) = edx; /* 0x36123B0D: mov dword ptr [eax + 4], edx */ 1375 ecx = MEM32(edi + 0x600); /* 0x36123B10: mov ecx, dword ptr [edi + 0x600] */ 1376 edx = MEM32(ebp + (-0x8)); /* 0x36123B16: mov edx, dword ptr [ebp - 8] */ 1377 MEM32(eax + 0x8) = ecx; /* 0x36123B19: mov dword ptr [eax + 8], ecx */ 1378 fp_push(*(float*)&MEM32(edx)); /* 0x36123B1C: fld dword ptr [edx] */ 1379 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x36123B1E: fsub dword ptr [ebp - 0x2c] */ 1380 _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x36123B21: fmul dword ptr [0x36170ba4] */ 1381 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B27: fdiv dword ptr [esi + 0x16c0] */ 1382 RECOMP_ICALL(0x3615FD8Cu); /* 0x36123B2D: call 0x3615fd8c */ /* not lifted */ 1383 RECOMP_FLAGS_IN(); 1384 ebx = 0xFu; /* 0x36123B32: mov ebx, 0xf */ 1385 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1387 ebx = ebx - eax; /* 0x36123B37: sub ebx, eax */ 1388 _flag_k = FK_CMP; 1389 /* cmp ebx, 0xFu */ /* 0x36123B39: cmp ebx, 0xf */ 1390 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFu); 1391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1392 _flag_k = FK_CMP; 1393 if (CMP_LE(_flag_a, _flag_b)) goto L_36123B45; /* 0x36123B3C: jle 0x36123b45 */ 1394 L_36123B3E: 1395 ebx = 0xFu; /* 0x36123B3E: mov ebx, 0xf */ 1396 goto L_36123B4B; /* 0x36123B43: jmp 0x36123b4b */ 1397 L_36123B45: 1398 /* test ebx, ebx */ /* 0x36123B45: test ebx, ebx */ 1399 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1400 _cf = 0; 1401 _flag_k = FK_TEST; 1402 if (TEST_NS(_flag_a, _flag_b)) goto L_36123B4B; /* 0x36123B47: jge 0x36123b4b */ 1403 L_36123B49: 1404 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1405 ebx = 0; /* 0x36123B49: xor ebx, ebx */ 1406 _cf = 0; 1407 _flag_k = FK_TEST; 1408 L_36123B4B: 1409 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36123B4B: fld dword ptr [ebp - 0x2c] */ 1410 eax = MEM32(ebp + (-0x8)); /* 0x36123B4E: mov eax, dword ptr [ebp - 8] */ 1411 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B51: fadd dword ptr [esi + 0x16c0] */ 1412 ecx = MEM32(esi + 0x38); /* 0x36123B57: mov ecx, dword ptr [esi + 0x38] */ 1413 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36123B5A: fsub dword ptr [eax] */ 1414 eax = MEM32(ebp + (-0x14)); /* 0x36123B5C: mov eax, dword ptr [ebp - 0x14] */ 1415 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B5F: fdiv dword ptr [esi + 0x16c0] */ 1416 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36123B65: fst dword ptr [ebp - 0x10] */ 1417 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36123B68: fmul dword ptr [ebp - 0x10] */ 1418 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36123B6B: fsubr dword ptr [0x36170380] */ 1419 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36123B71: fld dword ptr [ebp - 0x10] */ 1420 _st[0] += (double)*(float*)ADDR(0x36170F04); /* 0x36123B74: fadd dword ptr [0x36170f04] */ 1421 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36123B7A: fmulp st(1) */ 1422 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36123B7C: fmul dword ptr [esi + 0x16c8] */ 1423 fp_push(_st[0]); /* 0x36123B82: fld st(0) */ 1424 { float _v = (float)fp_pop(); *(float*)ADDR(eax + ecx + 0xC) = _v; } /* 0x36123B84: fstp dword ptr [eax + ecx + 0xc] */ 1425 edx = MEM32(esi + 0x38); /* 0x36123B88: mov edx, dword ptr [esi + 0x38] */ 1426 ecx = esi + 0x168C; /* 0x36123B8B: lea ecx, [esi + 0x168c] */ 1427 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edx + 0x10) = _v; } /* 0x36123B91: fstp dword ptr [eax + edx + 0x10] */ 1428 eax = MEM32(ebp + (-0x10)); /* 0x36123B95: mov eax, dword ptr [ebp - 0x10] */ 1429 PUSH32(esp, eax); /* 0x36123B98: push eax */ 1430 RECOMP_ICALL(0x36137D80u); /* 0x36123B99: call 0x36137d80 */ /* not lifted */ 1431 RECOMP_FLAGS_IN(); 1432 edx = MEM32(esi + 0x38); /* 0x36123B9E: mov edx, dword ptr [esi + 0x38] */ 1433 ecx = MEM32(ebp + (-0x14)); /* 0x36123BA1: mov ecx, dword ptr [ebp - 0x14] */ 1434 MEM32(ecx + edx + 0x14) = eax; /* 0x36123BA4: mov dword ptr [ecx + edx + 0x14], eax */ 1435 eax = MEM32(esi + 0x38); /* 0x36123BA8: mov eax, dword ptr [esi + 0x38] */ 1436 MEM32(ecx + eax + 0x18) = ebx; /* 0x36123BAB: mov dword ptr [ecx + eax + 0x18], ebx */ 1437 eax = MEM32(ebp + (-0xC)); /* 0x36123BAF: mov eax, dword ptr [ebp - 0xc] */ 1438 edx = MEM32(esi + 0x38); /* 0x36123BB2: mov edx, dword ptr [esi + 0x38] */ 1439 ebx = MEM32(ebp + (-0x8)); /* 0x36123BB5: mov ebx, dword ptr [ebp - 8] */ 1440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1441 eax = eax + 1; /* 0x36123BB8: inc eax */ 1442 _flag_k = FK_INC; 1443 MEM8(ecx + edx + 0x1C) = (uint8_t)(1); /* 0x36123BB9: mov byte ptr [ecx + edx + 0x1c], 1 */ 1444 MEM32(ebp + (-0xC)) = eax; /* 0x36123BBE: mov dword ptr [ebp - 0xc], eax */ 1445 goto L_36123CF3; /* 0x36123BC1: jmp 0x36123cf3 */ 1446 L_36123BC6: 1447 eax = MEM32(ebp + (-0x18)); /* 0x36123BC6: mov eax, dword ptr [ebp - 0x18] */ 1448 /* test eax, eax */ /* 0x36123BC9: test eax, eax */ 1449 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1450 _cf = 0; 1451 _flag_k = FK_TEST; 1452 if (TEST_Z(_flag_a, _flag_b)) goto L_36123CE8; /* 0x36123BCB: je 0x36123ce8 */ 1453 L_36123BD1: 1454 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123BD1: mov al, byte ptr [esi + 0x163c] */ 1455 /* test LO8(eax), LO8(eax) */ /* 0x36123BD7: test al, al */ 1456 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1457 _cf = 0; 1458 _flag_k = FK_NARROW(FK_TEST, 24); 1459 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123CE8; /* 0x36123BD9: jne 0x36123ce8 */ 1460 L_36123BDF: 1461 eax = ebp + (-0x68); /* 0x36123BDF: lea eax, [ebp - 0x68] */ 1462 PUSH32(esp, eax); /* 0x36123BE2: push eax */ 1463 MEM32(ebp + (-0x68)) = 0; /* 0x36123BE3: mov dword ptr [ebp - 0x68], 0 */ 1464 MEM32(ebp + (-0x64)) = 0; /* 0x36123BEA: mov dword ptr [ebp - 0x64], 0 */ 1465 MEM32(ebp + (-0x60)) = 0; /* 0x36123BF1: mov dword ptr [ebp - 0x60], 0 */ 1466 RECOMP_ICALL(0x360FCD10u); /* 0x36123BF8: call 0x360fcd10 */ /* not lifted */ 1467 RECOMP_FLAGS_IN(); 1468 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36123BFD: fld dword ptr [ebp - 0x68] */ 1469 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x36123C00: fmul dword ptr [esi + 0x16cc] */ 1470 ecx = MEM32(ebp + (-0x28)); /* 0x36123C06: mov ecx, dword ptr [ebp - 0x28] */ 1471 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36123C09: fld dword ptr [ebp - 0x60] */ 1472 edx = MEM32(ebp + (-0x24)); /* 0x36123C0C: mov edx, dword ptr [ebp - 0x24] */ 1473 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x36123C0F: fmul dword ptr [esi + 0x16cc] */ 1474 eax = MEM32(ebp + (-0x20)); /* 0x36123C15: mov eax, dword ptr [ebp - 0x20] */ 1475 MEM32(ebp + (-0x74)) = ecx; /* 0x36123C18: mov dword ptr [ebp - 0x74], ecx */ 1476 MEM32(ebp + (-0x70)) = edx; /* 0x36123C1B: mov dword ptr [ebp - 0x70], edx */ 1477 fp_push(_st[1]); /* 0x36123C1E: fld st(1) */ 1478 MEM32(ebp + (-0x6C)) = eax; /* 0x36123C20: mov dword ptr [ebp - 0x6c], eax */ 1479 _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36123C23: fadd dword ptr [ebp - 0x28] */ 1480 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1481 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1482 esp = esp + 4; /* 0x36123C26: add esp, 4 */ 1483 _flag_k = FK_ADD; 1484 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36123C29: fst dword ptr [ebp - 0x74] */ 1485 ecx = MEM32(ebp + (-0x74)); /* 0x36123C2C: mov ecx, dword ptr [ebp - 0x74] */ 1486 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36123C2F: fld dword ptr [ebp - 0x64] */ 1487 MEM32(ebp + (-0xB4)) = ecx; /* 0x36123C32: mov dword ptr [ebp - 0xb4], ecx */ 1488 _st[0] += (double)*(float*)ADDR(ebp + (-0x70)); /* 0x36123C38: fadd dword ptr [ebp - 0x70] */ 1489 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36123C3B: fstp dword ptr [ebp - 0x70] */ 1490 edx = MEM32(ebp + (-0x70)); /* 0x36123C3E: mov edx, dword ptr [ebp - 0x70] */ 1491 MEM32(ebp + (-0xB0)) = edx; /* 0x36123C41: mov dword ptr [ebp - 0xb0], edx */ 1492 fp_push(_st[1]); /* 0x36123C47: fld st(1) */ 1493 _st[0] += (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x36123C49: fadd dword ptr [ebp - 0x6c] */ 1494 edx = edi + 0x5F8; /* 0x36123C4C: lea edx, [edi + 0x5f8] */ 1495 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36123C52: fstp dword ptr [ebp - 0x6c] */ 1496 eax = MEM32(ebp + (-0x6C)); /* 0x36123C55: mov eax, dword ptr [ebp - 0x6c] */ 1497 MEM32(ebp + (-0xAC)) = eax; /* 0x36123C58: mov dword ptr [ebp - 0xac], eax */ 1498 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x36123C5E: fstp dword ptr [ebp - 0xb4] */ 1499 ecx = eax; /* 0x36123C64: mov ecx, eax */ 1500 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36123C66: fld dword ptr [ebp - 0xb0] */ 1501 eax = MEM32(ebp + (-0xB4)); /* 0x36123C6C: mov eax, dword ptr [ebp - 0xb4] */ 1502 _st[0] -= (double)*(float*)ADDR(0x36170380); /* 0x36123C72: fsub dword ptr [0x36170380] */ 1503 MEM32(ebp + (-0xAC)) = ecx; /* 0x36123C78: mov dword ptr [ebp - 0xac], ecx */ 1504 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x36123C7E: fstp dword ptr [ebp - 0xb0] */ 1505 MEM32(edx) = eax; /* 0x36123C84: mov dword ptr [edx], eax */ 1506 ecx = MEM32(ebp + (-0xB0)); /* 0x36123C86: mov ecx, dword ptr [ebp - 0xb0] */ 1507 MEM32(edx + 0x4) = ecx; /* 0x36123C8C: mov dword ptr [edx + 4], ecx */ 1508 eax = MEM32(ebp + (-0xAC)); /* 0x36123C8F: mov eax, dword ptr [ebp - 0xac] */ 1509 MEM32(edx + 0x8) = eax; /* 0x36123C95: mov dword ptr [edx + 8], eax */ 1510 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x36123C98: fstp dword ptr [ebp - 0x90] */ 1511 edx = MEM32(ebp + (-0x90)); /* 0x36123C9E: mov edx, dword ptr [ebp - 0x90] */ 1512 _st[0] = -_st[0]; /* 0x36123CA4: fchs */ 1513 MEM32(ebp + (-0x8C)) = 0x3F000000u; /* 0x36123CA6: mov dword ptr [ebp - 0x8c], 0x3f000000 */ 1514 ecx = edi + (-0x8); /* 0x36123CB0: lea ecx, [edi - 8] */ 1515 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x36123CB3: fstp dword ptr [ebp - 0x88] */ 1516 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36123CB9: fld dword ptr [ebp - 0x2c] */ 1517 MEM32(ecx) = edx; /* 0x36123CBC: mov dword ptr [ecx], edx */ 1518 eax = MEM32(ebp + (-0x8C)); /* 0x36123CBE: mov eax, dword ptr [ebp - 0x8c] */ 1519 MEM32(ecx + 0x4) = eax; /* 0x36123CC4: mov dword ptr [ecx + 4], eax */ 1520 edx = MEM32(ebp + (-0x88)); /* 0x36123CC7: mov edx, dword ptr [ebp - 0x88] */ 1521 eax = MEM32(ebp + (-0x18)); /* 0x36123CCD: mov eax, dword ptr [ebp - 0x18] */ 1522 MEM32(ecx + 0x8) = edx; /* 0x36123CD0: mov dword ptr [ecx + 8], edx */ 1523 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123CD3: fadd dword ptr [esi + 0x16c0] */ 1524 ecx = MEM32(ebp + (-0xC)); /* 0x36123CD9: mov ecx, dword ptr [ebp - 0xc] */ 1525 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1526 ecx = ecx + 1; /* 0x36123CDC: inc ecx */ 1527 _flag_k = FK_INC; 1528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1529 eax = eax - 1; /* 0x36123CDD: dec eax */ 1530 _flag_k = FK_DEC; 1531 { float _v = (float)fp_pop(); *(float*)ADDR(ebx) = _v; } /* 0x36123CDE: fstp dword ptr [ebx] */ 1532 MEM32(ebp + (-0xC)) = ecx; /* 0x36123CE0: mov dword ptr [ebp - 0xc], ecx */ 1533 MEM32(ebp + (-0x18)) = eax; /* 0x36123CE3: mov dword ptr [ebp - 0x18], eax */ 1534 goto L_36123CF3; /* 0x36123CE6: jmp 0x36123cf3 */ 1535 L_36123CE8: 1536 eax = MEM32(esi + 0x38); /* 0x36123CE8: mov eax, dword ptr [esi + 0x38] */ 1537 ecx = MEM32(ebp + (-0x14)); /* 0x36123CEB: mov ecx, dword ptr [ebp - 0x14] */ 1538 MEM8(eax + ecx + 0x1C) = (uint8_t)(0); /* 0x36123CEE: mov byte ptr [eax + ecx + 0x1c], 0 */ 1539 L_36123CF3: 1540 eax = MEM32(ebp + (-0x14)); /* 0x36123CF3: mov eax, dword ptr [ebp - 0x14] */ 1541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 1542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1543 eax = eax + 0x20u; /* 0x36123CF6: add eax, 0x20 */ 1544 _flag_k = FK_ADD; 1545 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 1546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1547 ebx = ebx + 4; /* 0x36123CF9: add ebx, 4 */ 1548 _flag_k = FK_ADD; 1549 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 1550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1551 edi = edi + 0xCu; /* 0x36123CFC: add edi, 0xc */ 1552 _flag_k = FK_ADD; 1553 /* cmp eax, 0x1000u */ /* 0x36123CFF: cmp eax, 0x1000 */ 1554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 1555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1556 _flag_k = FK_CMP; 1557 MEM32(ebp + (-0x8)) = ebx; /* 0x36123D04: mov dword ptr [ebp - 8], ebx */ 1558 MEM32(ebp + (-0x14)) = eax; /* 0x36123D07: mov dword ptr [ebp - 0x14], eax */ 1559 RECOMP_BACKEDGE(); 1560 if (CMP_L(_flag_a, _flag_b)) goto L_361239C7; /* 0x36123D0A: jl 0x361239c7 */ 1561 L_36123D10: 1562 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123D10: mov al, byte ptr [esi + 0x163c] */ 1563 /* test LO8(eax), LO8(eax) */ /* 0x36123D16: test al, al */ 1564 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1565 _cf = 0; 1566 _flag_k = FK_NARROW(FK_TEST, 24); 1567 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123D18: je 0x361275ac */ 1568 L_36123D1E: 1569 eax = MEM32(ebp + (-0xC)); /* 0x36123D1E: mov eax, dword ptr [ebp - 0xc] */ 1570 /* test eax, eax */ /* 0x36123D21: test eax, eax */ 1571 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1572 _cf = 0; 1573 _flag_k = FK_TEST; 1574 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123D23: jne 0x361275ac */ 1575 L_36123D29: 1576 goto L_361275A8; /* 0x36123D29: jmp 0x361275a8 */ 1577 L_361275A8: 1578 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 1579 L_361275AC: 1580 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 1581 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 1582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1583 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 1584 _flag_k = FK_ADD; 1585 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 1586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1587 _cf = 0; 1588 _flag_k = FK_TEST; 1589 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 1590 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 1591 L_361275B7: 1592 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 1593 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 1594 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 1595 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 1596 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 1597 RECOMP_FLAGS_IN(); 1598 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 1599 PUSH32(esp, eax); /* 0x361275CD: push eax */ 1600 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 1601 RECOMP_FLAGS_IN(); 1602 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 1603 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 1604 RECOMP_FLAGS_IN(); 1605 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 1606 PUSH32(esp, eax); /* 0x361275E2: push eax */ 1607 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 1608 RECOMP_FLAGS_IN(); 1609 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 1610 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 1611 RECOMP_FLAGS_IN(); 1612 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 1613 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1614 _cf = (LO8(eax)) != 0; 1615 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 1616 _flag_k = FK_NARROW(FK_CMP, 24); 1617 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 1618 eax = _sc ? 0xFFFFFFFFu : 0; 1619 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1620 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1621 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1622 eax = eax + 1; /* 0x361275F6: inc eax */ 1623 _flag_k = FK_INC; 1624 PUSH32(esp, eax); /* 0x361275F7: push eax */ 1625 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 1626 RECOMP_FLAGS_IN(); 1627 L_361275FE: 1628 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 1629 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 1630 esp = ebp; /* 0x36127600: mov esp, ebp */ 1631 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 1632 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 1633 RECOMP_REGS_OUT(); 1634 } 1635 1636 void sub_36123CF3(void) { 1637 int _fpu_cmp = 0; 1638 uint32_t _cf = 0; 1639 int _df = 1; 1640 uint32_t _flag_k = FK_NONE; 1641 uint32_t _flag_a = 0, _flag_b = 0; 1642 uint32_t _itail_tgt = 0; 1643 RECOMP_REGS_LOCALS 1644 RECOMP_ENTER(0x36123CF3u); 1645 1646 goto L_36123CF3; 1647 L_361239C7: 1648 fp_push(*(float*)&MEM32(ebx)); /* 0x361239C7: fld dword ptr [ebx] */ 1649 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x2C))); /* 0x361239C9: fcomp dword ptr [ebp - 0x2c] */ 1650 fp_pop(); 1651 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361239CC: fnstsw ax */ 1652 /* test HI8(eax), 0x41u */ /* 0x361239CE: test ah, 0x41 */ 1653 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1654 _cf = 0; 1655 _flag_k = FK_NARROW(FK_TEST, 24); 1656 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123BC6; /* 0x361239D1: jne 0x36123bc6 */ 1657 L_361239D7: 1658 eax = MEM32(ebp + (-0x28)); /* 0x361239D7: mov eax, dword ptr [ebp - 0x28] */ 1659 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361239DA: fld dword ptr [ebp - 0x28] */ 1660 ecx = MEM32(ebp + (-0x24)); /* 0x361239DD: mov ecx, dword ptr [ebp - 0x24] */ 1661 edx = MEM32(ebp + (-0x20)); /* 0x361239E0: mov edx, dword ptr [ebp - 0x20] */ 1662 MEM32(ebp + (-0x38)) = eax; /* 0x361239E3: mov dword ptr [ebp - 0x38], eax */ 1663 MEM32(ebp + (-0x30)) = edx; /* 0x361239E6: mov dword ptr [ebp - 0x30], edx */ 1664 MEM32(ebp + (-0x34)) = ecx; /* 0x361239E9: mov dword ptr [ebp - 0x34], ecx */ 1665 _st[0] -= (double)*(float*)ADDR(edi + 0x5F8); /* 0x361239EC: fsub dword ptr [edi + 0x5f8] */ 1666 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x361239F2: fstp dword ptr [ebp - 0x38] */ 1667 eax = MEM32(ebp + (-0x38)); /* 0x361239F5: mov eax, dword ptr [ebp - 0x38] */ 1668 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361239F8: fld dword ptr [ebp - 0x34] */ 1669 _st[0] -= (double)*(float*)ADDR(edi + 0x5FC); /* 0x361239FB: fsub dword ptr [edi + 0x5fc] */ 1670 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36123A01: fstp dword ptr [ebp - 0x34] */ 1671 ecx = MEM32(ebp + (-0x34)); /* 0x36123A04: mov ecx, dword ptr [ebp - 0x34] */ 1672 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36123A07: fld dword ptr [ebp - 0x30] */ 1673 _st[0] -= (double)*(float*)ADDR(edi + 0x600); /* 0x36123A0A: fsub dword ptr [edi + 0x600] */ 1674 MEM32(ebp + (-0x44)) = eax; /* 0x36123A10: mov dword ptr [ebp - 0x44], eax */ 1675 MEM32(ebp + (-0x40)) = ecx; /* 0x36123A13: mov dword ptr [ebp - 0x40], ecx */ 1676 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36123A16: fstp dword ptr [ebp - 0x30] */ 1677 edx = MEM32(ebp + (-0x30)); /* 0x36123A19: mov edx, dword ptr [ebp - 0x30] */ 1678 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A1C: fld dword ptr [ebp - 4] */ 1679 MEM32(ebp + (-0x3C)) = edx; /* 0x36123A1F: mov dword ptr [ebp - 0x3c], edx */ 1680 _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x36123A22: fmul dword ptr [ebp - 0x38] */ 1681 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36123A25: fstp dword ptr [ebp - 0x44] */ 1682 eax = MEM32(ebp + (-0x44)); /* 0x36123A28: mov eax, dword ptr [ebp - 0x44] */ 1683 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A2B: fld dword ptr [ebp - 4] */ 1684 MEM32(ebp + (-0xD0)) = eax; /* 0x36123A2E: mov dword ptr [ebp - 0xd0], eax */ 1685 _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36123A34: fmul dword ptr [ebp - 0x40] */ 1686 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36123A37: fstp dword ptr [ebp - 0x40] */ 1687 ecx = MEM32(ebp + (-0x40)); /* 0x36123A3A: mov ecx, dword ptr [ebp - 0x40] */ 1688 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123A3D: fld dword ptr [ebp - 4] */ 1689 MEM32(ebp + (-0xCC)) = ecx; /* 0x36123A40: mov dword ptr [ebp - 0xcc], ecx */ 1690 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36123A46: fmul dword ptr [ebp - 0x3c] */ 1691 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36123A49: fstp dword ptr [ebp - 0x3c] */ 1692 edx = MEM32(ebp + (-0x3C)); /* 0x36123A4C: mov edx, dword ptr [ebp - 0x3c] */ 1693 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36123A4F: fld dword ptr [ebp - 0x44] */ 1694 MEM32(ebp + (-0xC8)) = edx; /* 0x36123A52: mov dword ptr [ebp - 0xc8], edx */ 1695 _st[0] += (double)*(float*)ADDR(edi + (-0x8)); /* 0x36123A58: fadd dword ptr [edi - 8] */ 1696 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x8)) = _v; } /* 0x36123A5B: fstp dword ptr [edi - 8] */ 1697 fp_push(*(float*)&MEM32(ebp + (-0xCC))); /* 0x36123A5E: fld dword ptr [ebp - 0xcc] */ 1698 _st[0] += (double)*(float*)ADDR(edi + (-0x4)); /* 0x36123A64: fadd dword ptr [edi - 4] */ 1699 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x4)) = _v; } /* 0x36123A67: fstp dword ptr [edi - 4] */ 1700 fp_push(*(float*)&MEM32(ebp + (-0xC8))); /* 0x36123A6A: fld dword ptr [ebp - 0xc8] */ 1701 _st[0] += (double)*(float*)ADDR(edi); /* 0x36123A70: fadd dword ptr [edi] */ 1702 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36123A72: fstp dword ptr [edi] */ 1703 eax = MEM32(edi + (-0x8)); /* 0x36123A74: mov eax, dword ptr [edi - 8] */ 1704 MEM32(ebp + (-0x50)) = eax; /* 0x36123A77: mov dword ptr [ebp - 0x50], eax */ 1705 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36123A7A: fld dword ptr [ebp - 0x50] */ 1706 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123A7D: fmul dword ptr [0x36170d68] */ 1707 ecx = MEM32(edi + (-0x4)); /* 0x36123A83: mov ecx, dword ptr [edi - 4] */ 1708 MEM32(ebp + (-0x4C)) = ecx; /* 0x36123A86: mov dword ptr [ebp - 0x4c], ecx */ 1709 edx = MEM32(edi); /* 0x36123A89: mov edx, dword ptr [edi] */ 1710 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36123A8B: fstp dword ptr [ebp - 0x50] */ 1711 eax = MEM32(ebp + (-0x50)); /* 0x36123A8E: mov eax, dword ptr [ebp - 0x50] */ 1712 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36123A91: fld dword ptr [ebp - 0x4c] */ 1713 MEM32(ebp + (-0x48)) = edx; /* 0x36123A94: mov dword ptr [ebp - 0x48], edx */ 1714 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123A97: fmul dword ptr [0x36170d68] */ 1715 MEM32(ebp + (-0xE8)) = eax; /* 0x36123A9D: mov dword ptr [ebp - 0xe8], eax */ 1716 eax = MEM32(ebp + (-0x14)); /* 0x36123AA3: mov eax, dword ptr [ebp - 0x14] */ 1717 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36123AA6: fstp dword ptr [ebp - 0x4c] */ 1718 ecx = MEM32(ebp + (-0x4C)); /* 0x36123AA9: mov ecx, dword ptr [ebp - 0x4c] */ 1719 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36123AAC: fld dword ptr [ebp - 0x48] */ 1720 MEM32(ebp + (-0xE4)) = ecx; /* 0x36123AAF: mov dword ptr [ebp - 0xe4], ecx */ 1721 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123AB5: fmul dword ptr [0x36170d68] */ 1722 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36123ABB: fstp dword ptr [ebp - 0x48] */ 1723 edx = MEM32(ebp + (-0x48)); /* 0x36123ABE: mov edx, dword ptr [ebp - 0x48] */ 1724 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36123AC1: fld dword ptr [ebp - 0x50] */ 1725 MEM32(ebp + (-0xE0)) = edx; /* 0x36123AC4: mov dword ptr [ebp - 0xe0], edx */ 1726 _st[0] += (double)*(float*)ADDR(edi + 0x5F8); /* 0x36123ACA: fadd dword ptr [edi + 0x5f8] */ 1727 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5F8) = _v; } /* 0x36123AD0: fstp dword ptr [edi + 0x5f8] */ 1728 fp_push(*(float*)&MEM32(ebp + (-0xE4))); /* 0x36123AD6: fld dword ptr [ebp - 0xe4] */ 1729 _st[0] += (double)*(float*)ADDR(edi + 0x5FC); /* 0x36123ADC: fadd dword ptr [edi + 0x5fc] */ 1730 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5FC) = _v; } /* 0x36123AE2: fstp dword ptr [edi + 0x5fc] */ 1731 fp_push(*(float*)&MEM32(ebp + (-0xE0))); /* 0x36123AE8: fld dword ptr [ebp - 0xe0] */ 1732 _st[0] += (double)*(float*)ADDR(edi + 0x600); /* 0x36123AEE: fadd dword ptr [edi + 0x600] */ 1733 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x600) = _v; } /* 0x36123AF4: fstp dword ptr [edi + 0x600] */ 1734 edx = MEM32(esi + 0x38); /* 0x36123AFA: mov edx, dword ptr [esi + 0x38] */ 1735 ecx = MEM32(edi + 0x5F8); /* 0x36123AFD: mov ecx, dword ptr [edi + 0x5f8] */ 1736 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1738 eax = eax + edx; /* 0x36123B03: add eax, edx */ 1739 _flag_k = FK_ADD; 1740 MEM32(eax) = ecx; /* 0x36123B05: mov dword ptr [eax], ecx */ 1741 edx = MEM32(edi + 0x5FC); /* 0x36123B07: mov edx, dword ptr [edi + 0x5fc] */ 1742 MEM32(eax + 0x4) = edx; /* 0x36123B0D: mov dword ptr [eax + 4], edx */ 1743 ecx = MEM32(edi + 0x600); /* 0x36123B10: mov ecx, dword ptr [edi + 0x600] */ 1744 edx = MEM32(ebp + (-0x8)); /* 0x36123B16: mov edx, dword ptr [ebp - 8] */ 1745 MEM32(eax + 0x8) = ecx; /* 0x36123B19: mov dword ptr [eax + 8], ecx */ 1746 fp_push(*(float*)&MEM32(edx)); /* 0x36123B1C: fld dword ptr [edx] */ 1747 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x36123B1E: fsub dword ptr [ebp - 0x2c] */ 1748 _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x36123B21: fmul dword ptr [0x36170ba4] */ 1749 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B27: fdiv dword ptr [esi + 0x16c0] */ 1750 RECOMP_ICALL(0x3615FD8Cu); /* 0x36123B2D: call 0x3615fd8c */ /* not lifted */ 1751 RECOMP_FLAGS_IN(); 1752 ebx = 0xFu; /* 0x36123B32: mov ebx, 0xf */ 1753 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1755 ebx = ebx - eax; /* 0x36123B37: sub ebx, eax */ 1756 _flag_k = FK_CMP; 1757 /* cmp ebx, 0xFu */ /* 0x36123B39: cmp ebx, 0xf */ 1758 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFu); 1759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1760 _flag_k = FK_CMP; 1761 if (CMP_LE(_flag_a, _flag_b)) goto L_36123B45; /* 0x36123B3C: jle 0x36123b45 */ 1762 L_36123B3E: 1763 ebx = 0xFu; /* 0x36123B3E: mov ebx, 0xf */ 1764 goto L_36123B4B; /* 0x36123B43: jmp 0x36123b4b */ 1765 L_36123B45: 1766 /* test ebx, ebx */ /* 0x36123B45: test ebx, ebx */ 1767 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1768 _cf = 0; 1769 _flag_k = FK_TEST; 1770 if (TEST_NS(_flag_a, _flag_b)) goto L_36123B4B; /* 0x36123B47: jge 0x36123b4b */ 1771 L_36123B49: 1772 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1773 ebx = 0; /* 0x36123B49: xor ebx, ebx */ 1774 _cf = 0; 1775 _flag_k = FK_TEST; 1776 L_36123B4B: 1777 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36123B4B: fld dword ptr [ebp - 0x2c] */ 1778 eax = MEM32(ebp + (-0x8)); /* 0x36123B4E: mov eax, dword ptr [ebp - 8] */ 1779 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B51: fadd dword ptr [esi + 0x16c0] */ 1780 ecx = MEM32(esi + 0x38); /* 0x36123B57: mov ecx, dword ptr [esi + 0x38] */ 1781 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36123B5A: fsub dword ptr [eax] */ 1782 eax = MEM32(ebp + (-0x14)); /* 0x36123B5C: mov eax, dword ptr [ebp - 0x14] */ 1783 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123B5F: fdiv dword ptr [esi + 0x16c0] */ 1784 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36123B65: fst dword ptr [ebp - 0x10] */ 1785 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36123B68: fmul dword ptr [ebp - 0x10] */ 1786 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36123B6B: fsubr dword ptr [0x36170380] */ 1787 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36123B71: fld dword ptr [ebp - 0x10] */ 1788 _st[0] += (double)*(float*)ADDR(0x36170F04); /* 0x36123B74: fadd dword ptr [0x36170f04] */ 1789 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36123B7A: fmulp st(1) */ 1790 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36123B7C: fmul dword ptr [esi + 0x16c8] */ 1791 fp_push(_st[0]); /* 0x36123B82: fld st(0) */ 1792 { float _v = (float)fp_pop(); *(float*)ADDR(eax + ecx + 0xC) = _v; } /* 0x36123B84: fstp dword ptr [eax + ecx + 0xc] */ 1793 edx = MEM32(esi + 0x38); /* 0x36123B88: mov edx, dword ptr [esi + 0x38] */ 1794 ecx = esi + 0x168C; /* 0x36123B8B: lea ecx, [esi + 0x168c] */ 1795 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edx + 0x10) = _v; } /* 0x36123B91: fstp dword ptr [eax + edx + 0x10] */ 1796 eax = MEM32(ebp + (-0x10)); /* 0x36123B95: mov eax, dword ptr [ebp - 0x10] */ 1797 PUSH32(esp, eax); /* 0x36123B98: push eax */ 1798 RECOMP_ICALL(0x36137D80u); /* 0x36123B99: call 0x36137d80 */ /* not lifted */ 1799 RECOMP_FLAGS_IN(); 1800 edx = MEM32(esi + 0x38); /* 0x36123B9E: mov edx, dword ptr [esi + 0x38] */ 1801 ecx = MEM32(ebp + (-0x14)); /* 0x36123BA1: mov ecx, dword ptr [ebp - 0x14] */ 1802 MEM32(ecx + edx + 0x14) = eax; /* 0x36123BA4: mov dword ptr [ecx + edx + 0x14], eax */ 1803 eax = MEM32(esi + 0x38); /* 0x36123BA8: mov eax, dword ptr [esi + 0x38] */ 1804 MEM32(ecx + eax + 0x18) = ebx; /* 0x36123BAB: mov dword ptr [ecx + eax + 0x18], ebx */ 1805 eax = MEM32(ebp + (-0xC)); /* 0x36123BAF: mov eax, dword ptr [ebp - 0xc] */ 1806 edx = MEM32(esi + 0x38); /* 0x36123BB2: mov edx, dword ptr [esi + 0x38] */ 1807 ebx = MEM32(ebp + (-0x8)); /* 0x36123BB5: mov ebx, dword ptr [ebp - 8] */ 1808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1809 eax = eax + 1; /* 0x36123BB8: inc eax */ 1810 _flag_k = FK_INC; 1811 MEM8(ecx + edx + 0x1C) = (uint8_t)(1); /* 0x36123BB9: mov byte ptr [ecx + edx + 0x1c], 1 */ 1812 MEM32(ebp + (-0xC)) = eax; /* 0x36123BBE: mov dword ptr [ebp - 0xc], eax */ 1813 goto L_36123CF3; /* 0x36123BC1: jmp 0x36123cf3 */ 1814 L_36123BC6: 1815 eax = MEM32(ebp + (-0x18)); /* 0x36123BC6: mov eax, dword ptr [ebp - 0x18] */ 1816 /* test eax, eax */ /* 0x36123BC9: test eax, eax */ 1817 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1818 _cf = 0; 1819 _flag_k = FK_TEST; 1820 if (TEST_Z(_flag_a, _flag_b)) goto L_36123CE8; /* 0x36123BCB: je 0x36123ce8 */ 1821 L_36123BD1: 1822 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123BD1: mov al, byte ptr [esi + 0x163c] */ 1823 /* test LO8(eax), LO8(eax) */ /* 0x36123BD7: test al, al */ 1824 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1825 _cf = 0; 1826 _flag_k = FK_NARROW(FK_TEST, 24); 1827 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123CE8; /* 0x36123BD9: jne 0x36123ce8 */ 1828 L_36123BDF: 1829 eax = ebp + (-0x68); /* 0x36123BDF: lea eax, [ebp - 0x68] */ 1830 PUSH32(esp, eax); /* 0x36123BE2: push eax */ 1831 MEM32(ebp + (-0x68)) = 0; /* 0x36123BE3: mov dword ptr [ebp - 0x68], 0 */ 1832 MEM32(ebp + (-0x64)) = 0; /* 0x36123BEA: mov dword ptr [ebp - 0x64], 0 */ 1833 MEM32(ebp + (-0x60)) = 0; /* 0x36123BF1: mov dword ptr [ebp - 0x60], 0 */ 1834 RECOMP_ICALL(0x360FCD10u); /* 0x36123BF8: call 0x360fcd10 */ /* not lifted */ 1835 RECOMP_FLAGS_IN(); 1836 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36123BFD: fld dword ptr [ebp - 0x68] */ 1837 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x36123C00: fmul dword ptr [esi + 0x16cc] */ 1838 ecx = MEM32(ebp + (-0x28)); /* 0x36123C06: mov ecx, dword ptr [ebp - 0x28] */ 1839 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36123C09: fld dword ptr [ebp - 0x60] */ 1840 edx = MEM32(ebp + (-0x24)); /* 0x36123C0C: mov edx, dword ptr [ebp - 0x24] */ 1841 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x36123C0F: fmul dword ptr [esi + 0x16cc] */ 1842 eax = MEM32(ebp + (-0x20)); /* 0x36123C15: mov eax, dword ptr [ebp - 0x20] */ 1843 MEM32(ebp + (-0x74)) = ecx; /* 0x36123C18: mov dword ptr [ebp - 0x74], ecx */ 1844 MEM32(ebp + (-0x70)) = edx; /* 0x36123C1B: mov dword ptr [ebp - 0x70], edx */ 1845 fp_push(_st[1]); /* 0x36123C1E: fld st(1) */ 1846 MEM32(ebp + (-0x6C)) = eax; /* 0x36123C20: mov dword ptr [ebp - 0x6c], eax */ 1847 _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36123C23: fadd dword ptr [ebp - 0x28] */ 1848 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1850 esp = esp + 4; /* 0x36123C26: add esp, 4 */ 1851 _flag_k = FK_ADD; 1852 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36123C29: fst dword ptr [ebp - 0x74] */ 1853 ecx = MEM32(ebp + (-0x74)); /* 0x36123C2C: mov ecx, dword ptr [ebp - 0x74] */ 1854 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36123C2F: fld dword ptr [ebp - 0x64] */ 1855 MEM32(ebp + (-0xB4)) = ecx; /* 0x36123C32: mov dword ptr [ebp - 0xb4], ecx */ 1856 _st[0] += (double)*(float*)ADDR(ebp + (-0x70)); /* 0x36123C38: fadd dword ptr [ebp - 0x70] */ 1857 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36123C3B: fstp dword ptr [ebp - 0x70] */ 1858 edx = MEM32(ebp + (-0x70)); /* 0x36123C3E: mov edx, dword ptr [ebp - 0x70] */ 1859 MEM32(ebp + (-0xB0)) = edx; /* 0x36123C41: mov dword ptr [ebp - 0xb0], edx */ 1860 fp_push(_st[1]); /* 0x36123C47: fld st(1) */ 1861 _st[0] += (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x36123C49: fadd dword ptr [ebp - 0x6c] */ 1862 edx = edi + 0x5F8; /* 0x36123C4C: lea edx, [edi + 0x5f8] */ 1863 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36123C52: fstp dword ptr [ebp - 0x6c] */ 1864 eax = MEM32(ebp + (-0x6C)); /* 0x36123C55: mov eax, dword ptr [ebp - 0x6c] */ 1865 MEM32(ebp + (-0xAC)) = eax; /* 0x36123C58: mov dword ptr [ebp - 0xac], eax */ 1866 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x36123C5E: fstp dword ptr [ebp - 0xb4] */ 1867 ecx = eax; /* 0x36123C64: mov ecx, eax */ 1868 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36123C66: fld dword ptr [ebp - 0xb0] */ 1869 eax = MEM32(ebp + (-0xB4)); /* 0x36123C6C: mov eax, dword ptr [ebp - 0xb4] */ 1870 _st[0] -= (double)*(float*)ADDR(0x36170380); /* 0x36123C72: fsub dword ptr [0x36170380] */ 1871 MEM32(ebp + (-0xAC)) = ecx; /* 0x36123C78: mov dword ptr [ebp - 0xac], ecx */ 1872 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x36123C7E: fstp dword ptr [ebp - 0xb0] */ 1873 MEM32(edx) = eax; /* 0x36123C84: mov dword ptr [edx], eax */ 1874 ecx = MEM32(ebp + (-0xB0)); /* 0x36123C86: mov ecx, dword ptr [ebp - 0xb0] */ 1875 MEM32(edx + 0x4) = ecx; /* 0x36123C8C: mov dword ptr [edx + 4], ecx */ 1876 eax = MEM32(ebp + (-0xAC)); /* 0x36123C8F: mov eax, dword ptr [ebp - 0xac] */ 1877 MEM32(edx + 0x8) = eax; /* 0x36123C95: mov dword ptr [edx + 8], eax */ 1878 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x36123C98: fstp dword ptr [ebp - 0x90] */ 1879 edx = MEM32(ebp + (-0x90)); /* 0x36123C9E: mov edx, dword ptr [ebp - 0x90] */ 1880 _st[0] = -_st[0]; /* 0x36123CA4: fchs */ 1881 MEM32(ebp + (-0x8C)) = 0x3F000000u; /* 0x36123CA6: mov dword ptr [ebp - 0x8c], 0x3f000000 */ 1882 ecx = edi + (-0x8); /* 0x36123CB0: lea ecx, [edi - 8] */ 1883 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x36123CB3: fstp dword ptr [ebp - 0x88] */ 1884 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36123CB9: fld dword ptr [ebp - 0x2c] */ 1885 MEM32(ecx) = edx; /* 0x36123CBC: mov dword ptr [ecx], edx */ 1886 eax = MEM32(ebp + (-0x8C)); /* 0x36123CBE: mov eax, dword ptr [ebp - 0x8c] */ 1887 MEM32(ecx + 0x4) = eax; /* 0x36123CC4: mov dword ptr [ecx + 4], eax */ 1888 edx = MEM32(ebp + (-0x88)); /* 0x36123CC7: mov edx, dword ptr [ebp - 0x88] */ 1889 eax = MEM32(ebp + (-0x18)); /* 0x36123CCD: mov eax, dword ptr [ebp - 0x18] */ 1890 MEM32(ecx + 0x8) = edx; /* 0x36123CD0: mov dword ptr [ecx + 8], edx */ 1891 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123CD3: fadd dword ptr [esi + 0x16c0] */ 1892 ecx = MEM32(ebp + (-0xC)); /* 0x36123CD9: mov ecx, dword ptr [ebp - 0xc] */ 1893 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1894 ecx = ecx + 1; /* 0x36123CDC: inc ecx */ 1895 _flag_k = FK_INC; 1896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1897 eax = eax - 1; /* 0x36123CDD: dec eax */ 1898 _flag_k = FK_DEC; 1899 { float _v = (float)fp_pop(); *(float*)ADDR(ebx) = _v; } /* 0x36123CDE: fstp dword ptr [ebx] */ 1900 MEM32(ebp + (-0xC)) = ecx; /* 0x36123CE0: mov dword ptr [ebp - 0xc], ecx */ 1901 MEM32(ebp + (-0x18)) = eax; /* 0x36123CE3: mov dword ptr [ebp - 0x18], eax */ 1902 goto L_36123CF3; /* 0x36123CE6: jmp 0x36123cf3 */ 1903 L_36123CE8: 1904 eax = MEM32(esi + 0x38); /* 0x36123CE8: mov eax, dword ptr [esi + 0x38] */ 1905 ecx = MEM32(ebp + (-0x14)); /* 0x36123CEB: mov ecx, dword ptr [ebp - 0x14] */ 1906 MEM8(eax + ecx + 0x1C) = (uint8_t)(0); /* 0x36123CEE: mov byte ptr [eax + ecx + 0x1c], 0 */ 1907 L_36123CF3: 1908 eax = MEM32(ebp + (-0x14)); /* 0x36123CF3: mov eax, dword ptr [ebp - 0x14] */ 1909 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 1910 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1911 eax = eax + 0x20u; /* 0x36123CF6: add eax, 0x20 */ 1912 _flag_k = FK_ADD; 1913 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 1914 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1915 ebx = ebx + 4; /* 0x36123CF9: add ebx, 4 */ 1916 _flag_k = FK_ADD; 1917 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 1918 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1919 edi = edi + 0xCu; /* 0x36123CFC: add edi, 0xc */ 1920 _flag_k = FK_ADD; 1921 /* cmp eax, 0x1000u */ /* 0x36123CFF: cmp eax, 0x1000 */ 1922 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 1923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1924 _flag_k = FK_CMP; 1925 MEM32(ebp + (-0x8)) = ebx; /* 0x36123D04: mov dword ptr [ebp - 8], ebx */ 1926 MEM32(ebp + (-0x14)) = eax; /* 0x36123D07: mov dword ptr [ebp - 0x14], eax */ 1927 RECOMP_BACKEDGE(); 1928 if (CMP_L(_flag_a, _flag_b)) goto L_361239C7; /* 0x36123D0A: jl 0x361239c7 */ 1929 L_36123D10: 1930 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123D10: mov al, byte ptr [esi + 0x163c] */ 1931 /* test LO8(eax), LO8(eax) */ /* 0x36123D16: test al, al */ 1932 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1933 _cf = 0; 1934 _flag_k = FK_NARROW(FK_TEST, 24); 1935 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123D18: je 0x361275ac */ 1936 L_36123D1E: 1937 eax = MEM32(ebp + (-0xC)); /* 0x36123D1E: mov eax, dword ptr [ebp - 0xc] */ 1938 /* test eax, eax */ /* 0x36123D21: test eax, eax */ 1939 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1940 _cf = 0; 1941 _flag_k = FK_TEST; 1942 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123D23: jne 0x361275ac */ 1943 L_36123D29: 1944 goto L_361275A8; /* 0x36123D29: jmp 0x361275a8 */ 1945 L_361275A8: 1946 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 1947 L_361275AC: 1948 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 1949 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 1950 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1951 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 1952 _flag_k = FK_ADD; 1953 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 1954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1955 _cf = 0; 1956 _flag_k = FK_TEST; 1957 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 1958 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 1959 L_361275B7: 1960 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 1961 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 1962 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 1963 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 1964 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 1965 RECOMP_FLAGS_IN(); 1966 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 1967 PUSH32(esp, eax); /* 0x361275CD: push eax */ 1968 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 1969 RECOMP_FLAGS_IN(); 1970 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 1971 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 1972 RECOMP_FLAGS_IN(); 1973 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 1974 PUSH32(esp, eax); /* 0x361275E2: push eax */ 1975 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 1976 RECOMP_FLAGS_IN(); 1977 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 1978 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 1979 RECOMP_FLAGS_IN(); 1980 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 1981 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1982 _cf = (LO8(eax)) != 0; 1983 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 1984 _flag_k = FK_NARROW(FK_CMP, 24); 1985 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 1986 eax = _sc ? 0xFFFFFFFFu : 0; 1987 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1988 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1990 eax = eax + 1; /* 0x361275F6: inc eax */ 1991 _flag_k = FK_INC; 1992 PUSH32(esp, eax); /* 0x361275F7: push eax */ 1993 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 1994 RECOMP_FLAGS_IN(); 1995 L_361275FE: 1996 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 1997 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 1998 esp = ebp; /* 0x36127600: mov esp, ebp */ 1999 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 2000 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 2001 RECOMP_REGS_OUT(); 2002 } 2003 2004 void sub_36123D94(void) { 2005 int _fpu_cmp = 0; 2006 uint32_t _cf = 0; 2007 int _df = 1; 2008 uint32_t _flag_k = FK_NONE; 2009 uint32_t _flag_a = 0, _flag_b = 0; 2010 uint32_t _itail_tgt = 0; 2011 RECOMP_REGS_LOCALS 2012 RECOMP_ENTER(0x36123D94u); 2013 2014 L_36123D94: 2015 fp_push(*(float*)&MEM32(ebx)); /* 0x36123D94: fld dword ptr [ebx] */ 2016 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x36123D96: fcomp dword ptr [ebp - 4] */ 2017 fp_pop(); 2018 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36123D99: fnstsw ax */ 2019 /* test HI8(eax), 0x41u */ /* 0x36123D9B: test ah, 0x41 */ 2020 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2021 _cf = 0; 2022 _flag_k = FK_NARROW(FK_TEST, 24); 2023 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123EAA; /* 0x36123D9E: jne 0x36123eaa */ 2024 L_36123DA4: 2025 fp_push(*(float*)&MEM32(ebx)); /* 0x36123DA4: fld dword ptr [ebx] */ 2026 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36123DA6: shr ecx, 2 */ 2027 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2028 ecx = ecx >> 2u; /* 0x36123DA6: shr ecx, 2 */ 2029 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36123DA9: fsub dword ptr [ebp - 4] */ 2030 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(7); 2031 ecx = ecx & 7; /* 0x36123DAC: and ecx, 7 */ 2032 _cf = 0; 2033 _flag_k = FK_TEST; 2034 eax = MEM32(ecx * 4 + 0x362E5AA0); /* 0x36123DAF: mov eax, dword ptr [ecx*4 + 0x362e5aa0] */ 2035 ecx = MEM32(ebp + (-0x2C)); /* 0x36123DB6: mov ecx, dword ptr [ebp - 0x2c] */ 2036 edx = MEM32(ecx); /* 0x36123DB9: mov edx, dword ptr [ecx] */ 2037 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123DBB: fdiv dword ptr [esi + 0x16c0] */ 2038 MEM32(ebp + (-0x50)) = edx; /* 0x36123DC1: mov dword ptr [ebp - 0x50], edx */ 2039 edx = MEM32(ecx + 0x4); /* 0x36123DC4: mov edx, dword ptr [ecx + 4] */ 2040 MEM32(ebp + (-0x4C)) = edx; /* 0x36123DC7: mov dword ptr [ebp - 0x4c], edx */ 2041 ecx = MEM32(ecx + 0x8); /* 0x36123DCA: mov ecx, dword ptr [ecx + 8] */ 2042 MEM32(ebp + (-0x48)) = ecx; /* 0x36123DCD: mov dword ptr [ebp - 0x48], ecx */ 2043 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36123DD0: fsubr dword ptr [0x36170380] */ 2044 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36123DD6: fstp dword ptr [ebp - 0x10] */ 2045 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36123DD9: fld dword ptr [0x36170380] */ 2046 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36123DDF: fsub dword ptr [ebp - 0x10] */ 2047 _st[0] *= (double)*(float*)ADDR(ebp + (-0x84)); /* 0x36123DE2: fmul dword ptr [ebp - 0x84] */ 2048 _st[0] += (double)*(float*)ADDR(esi + 0x1670); /* 0x36123DE8: fadd dword ptr [esi + 0x1670] */ 2049 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x36123DEE: fld dword ptr [esi + 0x16cc] */ 2050 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36123DF4: fld dword ptr [ebp - 0x50] */ 2051 _st[0] *= _st[1]; /* 0x36123DF7: fmul st(1) */ 2052 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36123DF9: fstp dword ptr [ebp - 0x50] */ 2053 edx = MEM32(ebp + (-0x50)); /* 0x36123DFC: mov edx, dword ptr [ebp - 0x50] */ 2054 MEM32(ebp + (-0x80)) = edx; /* 0x36123DFF: mov dword ptr [ebp - 0x80], edx */ 2055 fp_push(_st[0]); /* 0x36123E02: fld st(0) */ 2056 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x36123E04: fmul dword ptr [ebp - 0x4c] */ 2057 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36123E07: fstp dword ptr [ebp - 0x4c] */ 2058 ecx = MEM32(ebp + (-0x4C)); /* 0x36123E0A: mov ecx, dword ptr [ebp - 0x4c] */ 2059 MEM32(ebp + (-0x7C)) = ecx; /* 0x36123E0D: mov dword ptr [ebp - 0x7c], ecx */ 2060 _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36123E10: fmul dword ptr [ebp - 0x48] */ 2061 ecx = MEM32(ebp + (-0x68)); /* 0x36123E13: mov ecx, dword ptr [ebp - 0x68] */ 2062 MEM32(ebp + (-0x28)) = ecx; /* 0x36123E16: mov dword ptr [ebp - 0x28], ecx */ 2063 ecx = MEM32(ebp + (-0x60)); /* 0x36123E19: mov ecx, dword ptr [ebp - 0x60] */ 2064 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36123E1C: fstp dword ptr [ebp - 0x48] */ 2065 edx = MEM32(ebp + (-0x48)); /* 0x36123E1F: mov edx, dword ptr [ebp - 0x48] */ 2066 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36123E22: fld dword ptr [ebp - 0x10] */ 2067 MEM32(ebp + (-0x78)) = edx; /* 0x36123E25: mov dword ptr [ebp - 0x78], edx */ 2068 _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36123E28: fmul dword ptr [ebp - 0x50] */ 2069 edx = MEM32(ebp + (-0x64)); /* 0x36123E2B: mov edx, dword ptr [ebp - 0x64] */ 2070 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36123E2E: fld dword ptr [ebp - 0x10] */ 2071 MEM32(ebp + (-0x24)) = edx; /* 0x36123E31: mov dword ptr [ebp - 0x24], edx */ 2072 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36123E34: fmul dword ptr [ebp - 0x7c] */ 2073 MEM32(ebp + (-0x20)) = ecx; /* 0x36123E37: mov dword ptr [ebp - 0x20], ecx */ 2074 ecx = MEM32(esi + 0x38); /* 0x36123E3A: mov ecx, dword ptr [esi + 0x38] */ 2075 edx = edi; /* 0x36123E3D: mov edx, edi */ 2076 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36123E3F: fstp dword ptr [ebp - 0x7c] */ 2077 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2078 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2079 edx = edx + ecx; /* 0x36123E42: add edx, ecx */ 2080 _flag_k = FK_ADD; 2081 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36123E44: fld dword ptr [ebp - 0x10] */ 2082 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36123E47: fmul dword ptr [ebp - 0x78] */ 2083 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x36123E4A: fstp dword ptr [ebp - 0x78] */ 2084 _st[0] += (double)*(float*)ADDR(ebp + (-0x68)); /* 0x36123E4D: fadd dword ptr [ebp - 0x68] */ 2085 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36123E50: fstp dword ptr [ebp - 0x28] */ 2086 ecx = MEM32(ebp + (-0x28)); /* 0x36123E53: mov ecx, dword ptr [ebp - 0x28] */ 2087 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36123E56: fld dword ptr [ebp - 0x24] */ 2088 MEM32(edx) = ecx; /* 0x36123E59: mov dword ptr [edx], ecx */ 2089 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36123E5B: fadd dword ptr [ebp - 0x7c] */ 2090 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36123E5E: fstp dword ptr [ebp - 0x24] */ 2091 ecx = MEM32(ebp + (-0x24)); /* 0x36123E61: mov ecx, dword ptr [ebp - 0x24] */ 2092 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36123E64: fld dword ptr [ebp - 0x20] */ 2093 MEM32(edx + 0x4) = ecx; /* 0x36123E67: mov dword ptr [edx + 4], ecx */ 2094 _st[0] += (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36123E6A: fadd dword ptr [ebp - 0x78] */ 2095 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36123E6D: fstp dword ptr [ebp - 0x20] */ 2096 ecx = MEM32(ebp + (-0x20)); /* 0x36123E70: mov ecx, dword ptr [ebp - 0x20] */ 2097 MEM32(edx + 0x8) = ecx; /* 0x36123E73: mov dword ptr [edx + 8], ecx */ 2098 edx = MEM32(esi + 0x38); /* 0x36123E76: mov edx, dword ptr [esi + 0x38] */ 2099 { float _v = (float)_st[0]; *(float*)ADDR(edi + edx + 0xC) = _v; } /* 0x36123E79: fst dword ptr [edi + edx + 0xc] */ 2100 ecx = MEM32(esi + 0x38); /* 0x36123E7D: mov ecx, dword ptr [esi + 0x38] */ 2101 { float _v = (float)fp_pop(); *(float*)ADDR(edi + ecx + 0x10) = _v; } /* 0x36123E80: fstp dword ptr [edi + ecx + 0x10] */ 2102 edx = MEM32(esi + 0x38); /* 0x36123E84: mov edx, dword ptr [esi + 0x38] */ 2103 MEM32(edi + edx + 0x14) = eax; /* 0x36123E87: mov dword ptr [edi + edx + 0x14], eax */ 2104 eax = MEM32(esi + 0x38); /* 0x36123E8B: mov eax, dword ptr [esi + 0x38] */ 2105 MEM32(edi + eax + 0x18) = 0; /* 0x36123E8E: mov dword ptr [edi + eax + 0x18], 0 */ 2106 eax = MEM32(ebp + (-0x8)); /* 0x36123E96: mov eax, dword ptr [ebp - 8] */ 2107 ecx = MEM32(esi + 0x38); /* 0x36123E99: mov ecx, dword ptr [esi + 0x38] */ 2108 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2109 eax = eax + 1; /* 0x36123E9C: inc eax */ 2110 _flag_k = FK_INC; 2111 MEM8(edi + ecx + 0x1C) = (uint8_t)(1); /* 0x36123E9D: mov byte ptr [edi + ecx + 0x1c], 1 */ 2112 MEM32(ebp + (-0x8)) = eax; /* 0x36123EA2: mov dword ptr [ebp - 8], eax */ 2113 goto L_36123F58; /* 0x36123EA5: jmp 0x36123f58 */ 2114 L_36123EAA: 2115 /* test LO8(ecx), 3 */ /* 0x36123EAA: test cl, 3 */ 2116 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(3) << 24; 2117 _cf = 0; 2118 _flag_k = FK_NARROW(FK_TEST, 24); 2119 edx = MEM32(esi + 0x38); /* 0x36123EAD: mov edx, dword ptr [esi + 0x38] */ 2120 MEM8(edx + edi + 0x1C) = (uint8_t)(0); /* 0x36123EB0: mov byte ptr [edx + edi + 0x1c], 0 */ 2121 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123F58; /* 0x36123EB5: jne 0x36123f58 */ 2122 L_36123EBB: 2123 eax = MEM32(ebp + (-0x18)); /* 0x36123EBB: mov eax, dword ptr [ebp - 0x18] */ 2124 /* test eax, eax */ /* 0x36123EBE: test eax, eax */ 2125 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2126 _cf = 0; 2127 _flag_k = FK_TEST; 2128 if (TEST_Z(_flag_a, _flag_b)) goto L_36123F58; /* 0x36123EC0: je 0x36123f58 */ 2129 L_36123EC6: 2130 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123EC6: mov al, byte ptr [esi + 0x163c] */ 2131 /* test LO8(eax), LO8(eax) */ /* 0x36123ECC: test al, al */ 2132 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2133 _cf = 0; 2134 _flag_k = FK_NARROW(FK_TEST, 24); 2135 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123F58; /* 0x36123ECE: jne 0x36123f58 */ 2136 L_36123ED4: 2137 eax = ebp + (-0x5C); /* 0x36123ED4: lea eax, [ebp - 0x5c] */ 2138 PUSH32(esp, eax); /* 0x36123ED7: push eax */ 2139 MEM32(ebp + (-0x5C)) = 0; /* 0x36123ED8: mov dword ptr [ebp - 0x5c], 0 */ 2140 MEM32(ebp + (-0x58)) = 0; /* 0x36123EDF: mov dword ptr [ebp - 0x58], 0 */ 2141 MEM32(ebp + (-0x54)) = 0; /* 0x36123EE6: mov dword ptr [ebp - 0x54], 0 */ 2142 RECOMP_ICALL(0x360FCA70u); /* 0x36123EED: call 0x360fca70 */ /* not lifted */ 2143 RECOMP_FLAGS_IN(); 2144 ecx = MEM32(ebp + (-0x2C)); /* 0x36123EF2: mov ecx, dword ptr [ebp - 0x2c] */ 2145 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2146 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2147 esp = esp + 4; /* 0x36123EF5: add esp, 4 */ 2148 _flag_k = FK_ADD; 2149 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2150 eax = 0; /* 0x36123EF8: xor eax, eax */ 2151 _cf = 0; 2152 _flag_k = FK_TEST; 2153 MEM32(ebp + (-0x1C)) = eax; /* 0x36123EFA: mov dword ptr [ebp - 0x1c], eax */ 2154 MEM32(ebp + (-0x10)) = ebx; /* 0x36123EFD: mov dword ptr [ebp - 0x10], ebx */ 2155 L_36123F00: 2156 fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x36123F00: fild dword ptr [ebp - 0x1c] */ 2157 ebx = MEM32(ebp + (-0x5C)); /* 0x36123F03: mov ebx, dword ptr [ebp - 0x5c] */ 2158 edx = ecx; /* 0x36123F06: mov edx, ecx */ 2159 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2160 eax = eax + 1; /* 0x36123F08: inc eax */ 2161 _flag_k = FK_INC; 2162 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123F09: fmul dword ptr [0x36170d68] */ 2163 MEM32(edx) = ebx; /* 0x36123F0F: mov dword ptr [edx], ebx */ 2164 ebx = MEM32(ebp + (-0x58)); /* 0x36123F11: mov ebx, dword ptr [ebp - 0x58] */ 2165 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123F14: fld dword ptr [ebp - 4] */ 2166 MEM32(edx + 0x4) = ebx; /* 0x36123F17: mov dword ptr [edx + 4], ebx */ 2167 ebx = MEM32(ebp + (-0x54)); /* 0x36123F1A: mov ebx, dword ptr [ebp - 0x54] */ 2168 MEM32(edx + 0x8) = ebx; /* 0x36123F1D: mov dword ptr [edx + 8], ebx */ 2169 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123F20: fadd dword ptr [esi + 0x16c0] */ 2170 edx = MEM32(ebp + (-0x10)); /* 0x36123F26: mov edx, dword ptr [ebp - 0x10] */ 2171 fp_xch(1); /* 0x36123F29: fxch st(1) */ 2172 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123F2B: fmul dword ptr [esi + 0x16c0] */ 2173 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 2174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2175 edx = edx + 4; /* 0x36123F31: add edx, 4 */ 2176 _flag_k = FK_ADD; 2177 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 2178 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2179 ecx = ecx + 0xCu; /* 0x36123F34: add ecx, 0xc */ 2180 _flag_k = FK_ADD; 2181 /* cmp eax, 4 */ /* 0x36123F37: cmp eax, 4 */ 2182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2184 _flag_k = FK_CMP; 2185 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36123F3A: fsubp st(1) */ 2186 MEM32(ebp + (-0x1C)) = eax; /* 0x36123F3C: mov dword ptr [ebp - 0x1c], eax */ 2187 MEM32(ebp + (-0x10)) = edx; /* 0x36123F3F: mov dword ptr [ebp - 0x10], edx */ 2188 { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x4)) = _v; } /* 0x36123F42: fstp dword ptr [edx - 4] */ 2189 RECOMP_BACKEDGE(); 2190 if (CMP_L(_flag_a, _flag_b)) goto L_36123F00; /* 0x36123F45: jl 0x36123f00 */ 2191 L_36123F47: 2192 ecx = MEM32(ebp + (-0x8)); /* 0x36123F47: mov ecx, dword ptr [ebp - 8] */ 2193 eax = MEM32(ebp + (-0x18)); /* 0x36123F4A: mov eax, dword ptr [ebp - 0x18] */ 2194 ebx = MEM32(ebp + (-0x14)); /* 0x36123F4D: mov ebx, dword ptr [ebp - 0x14] */ 2195 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2196 ecx = ecx + 1; /* 0x36123F50: inc ecx */ 2197 _flag_k = FK_INC; 2198 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2199 eax = eax - 1; /* 0x36123F51: dec eax */ 2200 _flag_k = FK_DEC; 2201 MEM32(ebp + (-0x8)) = ecx; /* 0x36123F52: mov dword ptr [ebp - 8], ecx */ 2202 MEM32(ebp + (-0x18)) = eax; /* 0x36123F55: mov dword ptr [ebp - 0x18], eax */ 2203 L_36123F58: 2204 ecx = MEM32(ebp + (-0xC)); /* 0x36123F58: mov ecx, dword ptr [ebp - 0xc] */ 2205 eax = MEM32(ebp + (-0x2C)); /* 0x36123F5B: mov eax, dword ptr [ebp - 0x2c] */ 2206 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2207 ecx = ecx + 1; /* 0x36123F5E: inc ecx */ 2208 _flag_k = FK_INC; 2209 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 2210 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2211 ebx = ebx + 4; /* 0x36123F5F: add ebx, 4 */ 2212 _flag_k = FK_ADD; 2213 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 2214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2215 eax = eax + 0xCu; /* 0x36123F62: add eax, 0xc */ 2216 _flag_k = FK_ADD; 2217 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 2218 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2219 edi = edi + 0x20u; /* 0x36123F65: add edi, 0x20 */ 2220 _flag_k = FK_ADD; 2221 /* cmp edi, 0x1000u */ /* 0x36123F68: cmp edi, 0x1000 */ 2222 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1000u); 2223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2224 _flag_k = FK_CMP; 2225 MEM32(ebp + (-0xC)) = ecx; /* 0x36123F6E: mov dword ptr [ebp - 0xc], ecx */ 2226 MEM32(ebp + (-0x14)) = ebx; /* 0x36123F71: mov dword ptr [ebp - 0x14], ebx */ 2227 MEM32(ebp + (-0x2C)) = eax; /* 0x36123F74: mov dword ptr [ebp - 0x2c], eax */ 2228 RECOMP_BACKEDGE(); 2229 if (CMP_B(_flag_a, _flag_b)) goto L_36123D94; /* 0x36123F77: jb 0x36123d94 */ 2230 L_36123F7D: 2231 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123F7D: mov al, byte ptr [esi + 0x163c] */ 2232 /* test LO8(eax), LO8(eax) */ /* 0x36123F83: test al, al */ 2233 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2234 _cf = 0; 2235 _flag_k = FK_NARROW(FK_TEST, 24); 2236 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123F85: je 0x361275ac */ 2237 L_36123F8B: 2238 eax = MEM32(ebp + (-0x8)); /* 0x36123F8B: mov eax, dword ptr [ebp - 8] */ 2239 /* test eax, eax */ /* 0x36123F8E: test eax, eax */ 2240 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2241 _cf = 0; 2242 _flag_k = FK_TEST; 2243 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123F90: jne 0x361275ac */ 2244 L_36123F96: 2245 goto L_361275A8; /* 0x36123F96: jmp 0x361275a8 */ 2246 L_361275A8: 2247 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 2248 L_361275AC: 2249 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 2250 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 2251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2252 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 2253 _flag_k = FK_ADD; 2254 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 2255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2256 _cf = 0; 2257 _flag_k = FK_TEST; 2258 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 2259 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 2260 L_361275B7: 2261 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 2262 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 2263 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 2264 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 2265 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 2266 RECOMP_FLAGS_IN(); 2267 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 2268 PUSH32(esp, eax); /* 0x361275CD: push eax */ 2269 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 2270 RECOMP_FLAGS_IN(); 2271 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 2272 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 2273 RECOMP_FLAGS_IN(); 2274 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 2275 PUSH32(esp, eax); /* 0x361275E2: push eax */ 2276 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 2277 RECOMP_FLAGS_IN(); 2278 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 2279 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 2280 RECOMP_FLAGS_IN(); 2281 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 2282 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2283 _cf = (LO8(eax)) != 0; 2284 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 2285 _flag_k = FK_NARROW(FK_CMP, 24); 2286 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 2287 eax = _sc ? 0xFFFFFFFFu : 0; 2288 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2289 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2291 eax = eax + 1; /* 0x361275F6: inc eax */ 2292 _flag_k = FK_INC; 2293 PUSH32(esp, eax); /* 0x361275F7: push eax */ 2294 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 2295 RECOMP_FLAGS_IN(); 2296 L_361275FE: 2297 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 2298 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 2299 esp = ebp; /* 0x36127600: mov esp, ebp */ 2300 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 2301 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 2302 RECOMP_REGS_OUT(); 2303 } 2304 2305 void sub_36123F58(void) { 2306 int _fpu_cmp = 0; 2307 uint32_t _cf = 0; 2308 int _df = 1; 2309 uint32_t _flag_k = FK_NONE; 2310 uint32_t _flag_a = 0, _flag_b = 0; 2311 uint32_t _itail_tgt = 0; 2312 RECOMP_REGS_LOCALS 2313 RECOMP_ENTER(0x36123F58u); 2314 2315 goto L_36123F58; 2316 L_36123D94: 2317 fp_push(*(float*)&MEM32(ebx)); /* 0x36123D94: fld dword ptr [ebx] */ 2318 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x36123D96: fcomp dword ptr [ebp - 4] */ 2319 fp_pop(); 2320 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36123D99: fnstsw ax */ 2321 /* test HI8(eax), 0x41u */ /* 0x36123D9B: test ah, 0x41 */ 2322 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2323 _cf = 0; 2324 _flag_k = FK_NARROW(FK_TEST, 24); 2325 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123EAA; /* 0x36123D9E: jne 0x36123eaa */ 2326 L_36123DA4: 2327 fp_push(*(float*)&MEM32(ebx)); /* 0x36123DA4: fld dword ptr [ebx] */ 2328 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36123DA6: shr ecx, 2 */ 2329 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2330 ecx = ecx >> 2u; /* 0x36123DA6: shr ecx, 2 */ 2331 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36123DA9: fsub dword ptr [ebp - 4] */ 2332 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(7); 2333 ecx = ecx & 7; /* 0x36123DAC: and ecx, 7 */ 2334 _cf = 0; 2335 _flag_k = FK_TEST; 2336 eax = MEM32(ecx * 4 + 0x362E5AA0); /* 0x36123DAF: mov eax, dword ptr [ecx*4 + 0x362e5aa0] */ 2337 ecx = MEM32(ebp + (-0x2C)); /* 0x36123DB6: mov ecx, dword ptr [ebp - 0x2c] */ 2338 edx = MEM32(ecx); /* 0x36123DB9: mov edx, dword ptr [ecx] */ 2339 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123DBB: fdiv dword ptr [esi + 0x16c0] */ 2340 MEM32(ebp + (-0x50)) = edx; /* 0x36123DC1: mov dword ptr [ebp - 0x50], edx */ 2341 edx = MEM32(ecx + 0x4); /* 0x36123DC4: mov edx, dword ptr [ecx + 4] */ 2342 MEM32(ebp + (-0x4C)) = edx; /* 0x36123DC7: mov dword ptr [ebp - 0x4c], edx */ 2343 ecx = MEM32(ecx + 0x8); /* 0x36123DCA: mov ecx, dword ptr [ecx + 8] */ 2344 MEM32(ebp + (-0x48)) = ecx; /* 0x36123DCD: mov dword ptr [ebp - 0x48], ecx */ 2345 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36123DD0: fsubr dword ptr [0x36170380] */ 2346 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36123DD6: fstp dword ptr [ebp - 0x10] */ 2347 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36123DD9: fld dword ptr [0x36170380] */ 2348 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36123DDF: fsub dword ptr [ebp - 0x10] */ 2349 _st[0] *= (double)*(float*)ADDR(ebp + (-0x84)); /* 0x36123DE2: fmul dword ptr [ebp - 0x84] */ 2350 _st[0] += (double)*(float*)ADDR(esi + 0x1670); /* 0x36123DE8: fadd dword ptr [esi + 0x1670] */ 2351 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x36123DEE: fld dword ptr [esi + 0x16cc] */ 2352 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36123DF4: fld dword ptr [ebp - 0x50] */ 2353 _st[0] *= _st[1]; /* 0x36123DF7: fmul st(1) */ 2354 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36123DF9: fstp dword ptr [ebp - 0x50] */ 2355 edx = MEM32(ebp + (-0x50)); /* 0x36123DFC: mov edx, dword ptr [ebp - 0x50] */ 2356 MEM32(ebp + (-0x80)) = edx; /* 0x36123DFF: mov dword ptr [ebp - 0x80], edx */ 2357 fp_push(_st[0]); /* 0x36123E02: fld st(0) */ 2358 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x36123E04: fmul dword ptr [ebp - 0x4c] */ 2359 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36123E07: fstp dword ptr [ebp - 0x4c] */ 2360 ecx = MEM32(ebp + (-0x4C)); /* 0x36123E0A: mov ecx, dword ptr [ebp - 0x4c] */ 2361 MEM32(ebp + (-0x7C)) = ecx; /* 0x36123E0D: mov dword ptr [ebp - 0x7c], ecx */ 2362 _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36123E10: fmul dword ptr [ebp - 0x48] */ 2363 ecx = MEM32(ebp + (-0x68)); /* 0x36123E13: mov ecx, dword ptr [ebp - 0x68] */ 2364 MEM32(ebp + (-0x28)) = ecx; /* 0x36123E16: mov dword ptr [ebp - 0x28], ecx */ 2365 ecx = MEM32(ebp + (-0x60)); /* 0x36123E19: mov ecx, dword ptr [ebp - 0x60] */ 2366 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36123E1C: fstp dword ptr [ebp - 0x48] */ 2367 edx = MEM32(ebp + (-0x48)); /* 0x36123E1F: mov edx, dword ptr [ebp - 0x48] */ 2368 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36123E22: fld dword ptr [ebp - 0x10] */ 2369 MEM32(ebp + (-0x78)) = edx; /* 0x36123E25: mov dword ptr [ebp - 0x78], edx */ 2370 _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36123E28: fmul dword ptr [ebp - 0x50] */ 2371 edx = MEM32(ebp + (-0x64)); /* 0x36123E2B: mov edx, dword ptr [ebp - 0x64] */ 2372 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36123E2E: fld dword ptr [ebp - 0x10] */ 2373 MEM32(ebp + (-0x24)) = edx; /* 0x36123E31: mov dword ptr [ebp - 0x24], edx */ 2374 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36123E34: fmul dword ptr [ebp - 0x7c] */ 2375 MEM32(ebp + (-0x20)) = ecx; /* 0x36123E37: mov dword ptr [ebp - 0x20], ecx */ 2376 ecx = MEM32(esi + 0x38); /* 0x36123E3A: mov ecx, dword ptr [esi + 0x38] */ 2377 edx = edi; /* 0x36123E3D: mov edx, edi */ 2378 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36123E3F: fstp dword ptr [ebp - 0x7c] */ 2379 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2380 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2381 edx = edx + ecx; /* 0x36123E42: add edx, ecx */ 2382 _flag_k = FK_ADD; 2383 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36123E44: fld dword ptr [ebp - 0x10] */ 2384 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36123E47: fmul dword ptr [ebp - 0x78] */ 2385 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x36123E4A: fstp dword ptr [ebp - 0x78] */ 2386 _st[0] += (double)*(float*)ADDR(ebp + (-0x68)); /* 0x36123E4D: fadd dword ptr [ebp - 0x68] */ 2387 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36123E50: fstp dword ptr [ebp - 0x28] */ 2388 ecx = MEM32(ebp + (-0x28)); /* 0x36123E53: mov ecx, dword ptr [ebp - 0x28] */ 2389 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36123E56: fld dword ptr [ebp - 0x24] */ 2390 MEM32(edx) = ecx; /* 0x36123E59: mov dword ptr [edx], ecx */ 2391 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36123E5B: fadd dword ptr [ebp - 0x7c] */ 2392 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36123E5E: fstp dword ptr [ebp - 0x24] */ 2393 ecx = MEM32(ebp + (-0x24)); /* 0x36123E61: mov ecx, dword ptr [ebp - 0x24] */ 2394 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36123E64: fld dword ptr [ebp - 0x20] */ 2395 MEM32(edx + 0x4) = ecx; /* 0x36123E67: mov dword ptr [edx + 4], ecx */ 2396 _st[0] += (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36123E6A: fadd dword ptr [ebp - 0x78] */ 2397 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36123E6D: fstp dword ptr [ebp - 0x20] */ 2398 ecx = MEM32(ebp + (-0x20)); /* 0x36123E70: mov ecx, dword ptr [ebp - 0x20] */ 2399 MEM32(edx + 0x8) = ecx; /* 0x36123E73: mov dword ptr [edx + 8], ecx */ 2400 edx = MEM32(esi + 0x38); /* 0x36123E76: mov edx, dword ptr [esi + 0x38] */ 2401 { float _v = (float)_st[0]; *(float*)ADDR(edi + edx + 0xC) = _v; } /* 0x36123E79: fst dword ptr [edi + edx + 0xc] */ 2402 ecx = MEM32(esi + 0x38); /* 0x36123E7D: mov ecx, dword ptr [esi + 0x38] */ 2403 { float _v = (float)fp_pop(); *(float*)ADDR(edi + ecx + 0x10) = _v; } /* 0x36123E80: fstp dword ptr [edi + ecx + 0x10] */ 2404 edx = MEM32(esi + 0x38); /* 0x36123E84: mov edx, dword ptr [esi + 0x38] */ 2405 MEM32(edi + edx + 0x14) = eax; /* 0x36123E87: mov dword ptr [edi + edx + 0x14], eax */ 2406 eax = MEM32(esi + 0x38); /* 0x36123E8B: mov eax, dword ptr [esi + 0x38] */ 2407 MEM32(edi + eax + 0x18) = 0; /* 0x36123E8E: mov dword ptr [edi + eax + 0x18], 0 */ 2408 eax = MEM32(ebp + (-0x8)); /* 0x36123E96: mov eax, dword ptr [ebp - 8] */ 2409 ecx = MEM32(esi + 0x38); /* 0x36123E99: mov ecx, dword ptr [esi + 0x38] */ 2410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2411 eax = eax + 1; /* 0x36123E9C: inc eax */ 2412 _flag_k = FK_INC; 2413 MEM8(edi + ecx + 0x1C) = (uint8_t)(1); /* 0x36123E9D: mov byte ptr [edi + ecx + 0x1c], 1 */ 2414 MEM32(ebp + (-0x8)) = eax; /* 0x36123EA2: mov dword ptr [ebp - 8], eax */ 2415 goto L_36123F58; /* 0x36123EA5: jmp 0x36123f58 */ 2416 L_36123EAA: 2417 /* test LO8(ecx), 3 */ /* 0x36123EAA: test cl, 3 */ 2418 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(3) << 24; 2419 _cf = 0; 2420 _flag_k = FK_NARROW(FK_TEST, 24); 2421 edx = MEM32(esi + 0x38); /* 0x36123EAD: mov edx, dword ptr [esi + 0x38] */ 2422 MEM8(edx + edi + 0x1C) = (uint8_t)(0); /* 0x36123EB0: mov byte ptr [edx + edi + 0x1c], 0 */ 2423 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123F58; /* 0x36123EB5: jne 0x36123f58 */ 2424 L_36123EBB: 2425 eax = MEM32(ebp + (-0x18)); /* 0x36123EBB: mov eax, dword ptr [ebp - 0x18] */ 2426 /* test eax, eax */ /* 0x36123EBE: test eax, eax */ 2427 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2428 _cf = 0; 2429 _flag_k = FK_TEST; 2430 if (TEST_Z(_flag_a, _flag_b)) goto L_36123F58; /* 0x36123EC0: je 0x36123f58 */ 2431 L_36123EC6: 2432 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123EC6: mov al, byte ptr [esi + 0x163c] */ 2433 /* test LO8(eax), LO8(eax) */ /* 0x36123ECC: test al, al */ 2434 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2435 _cf = 0; 2436 _flag_k = FK_NARROW(FK_TEST, 24); 2437 if (TEST_NZ(_flag_a, _flag_b)) goto L_36123F58; /* 0x36123ECE: jne 0x36123f58 */ 2438 L_36123ED4: 2439 eax = ebp + (-0x5C); /* 0x36123ED4: lea eax, [ebp - 0x5c] */ 2440 PUSH32(esp, eax); /* 0x36123ED7: push eax */ 2441 MEM32(ebp + (-0x5C)) = 0; /* 0x36123ED8: mov dword ptr [ebp - 0x5c], 0 */ 2442 MEM32(ebp + (-0x58)) = 0; /* 0x36123EDF: mov dword ptr [ebp - 0x58], 0 */ 2443 MEM32(ebp + (-0x54)) = 0; /* 0x36123EE6: mov dword ptr [ebp - 0x54], 0 */ 2444 RECOMP_ICALL(0x360FCA70u); /* 0x36123EED: call 0x360fca70 */ /* not lifted */ 2445 RECOMP_FLAGS_IN(); 2446 ecx = MEM32(ebp + (-0x2C)); /* 0x36123EF2: mov ecx, dword ptr [ebp - 0x2c] */ 2447 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2449 esp = esp + 4; /* 0x36123EF5: add esp, 4 */ 2450 _flag_k = FK_ADD; 2451 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2452 eax = 0; /* 0x36123EF8: xor eax, eax */ 2453 _cf = 0; 2454 _flag_k = FK_TEST; 2455 MEM32(ebp + (-0x1C)) = eax; /* 0x36123EFA: mov dword ptr [ebp - 0x1c], eax */ 2456 MEM32(ebp + (-0x10)) = ebx; /* 0x36123EFD: mov dword ptr [ebp - 0x10], ebx */ 2457 L_36123F00: 2458 fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x36123F00: fild dword ptr [ebp - 0x1c] */ 2459 ebx = MEM32(ebp + (-0x5C)); /* 0x36123F03: mov ebx, dword ptr [ebp - 0x5c] */ 2460 edx = ecx; /* 0x36123F06: mov edx, ecx */ 2461 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2462 eax = eax + 1; /* 0x36123F08: inc eax */ 2463 _flag_k = FK_INC; 2464 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36123F09: fmul dword ptr [0x36170d68] */ 2465 MEM32(edx) = ebx; /* 0x36123F0F: mov dword ptr [edx], ebx */ 2466 ebx = MEM32(ebp + (-0x58)); /* 0x36123F11: mov ebx, dword ptr [ebp - 0x58] */ 2467 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36123F14: fld dword ptr [ebp - 4] */ 2468 MEM32(edx + 0x4) = ebx; /* 0x36123F17: mov dword ptr [edx + 4], ebx */ 2469 ebx = MEM32(ebp + (-0x54)); /* 0x36123F1A: mov ebx, dword ptr [ebp - 0x54] */ 2470 MEM32(edx + 0x8) = ebx; /* 0x36123F1D: mov dword ptr [edx + 8], ebx */ 2471 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123F20: fadd dword ptr [esi + 0x16c0] */ 2472 edx = MEM32(ebp + (-0x10)); /* 0x36123F26: mov edx, dword ptr [ebp - 0x10] */ 2473 fp_xch(1); /* 0x36123F29: fxch st(1) */ 2474 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36123F2B: fmul dword ptr [esi + 0x16c0] */ 2475 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 2476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2477 edx = edx + 4; /* 0x36123F31: add edx, 4 */ 2478 _flag_k = FK_ADD; 2479 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 2480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2481 ecx = ecx + 0xCu; /* 0x36123F34: add ecx, 0xc */ 2482 _flag_k = FK_ADD; 2483 /* cmp eax, 4 */ /* 0x36123F37: cmp eax, 4 */ 2484 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2486 _flag_k = FK_CMP; 2487 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36123F3A: fsubp st(1) */ 2488 MEM32(ebp + (-0x1C)) = eax; /* 0x36123F3C: mov dword ptr [ebp - 0x1c], eax */ 2489 MEM32(ebp + (-0x10)) = edx; /* 0x36123F3F: mov dword ptr [ebp - 0x10], edx */ 2490 { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x4)) = _v; } /* 0x36123F42: fstp dword ptr [edx - 4] */ 2491 RECOMP_BACKEDGE(); 2492 if (CMP_L(_flag_a, _flag_b)) goto L_36123F00; /* 0x36123F45: jl 0x36123f00 */ 2493 L_36123F47: 2494 ecx = MEM32(ebp + (-0x8)); /* 0x36123F47: mov ecx, dword ptr [ebp - 8] */ 2495 eax = MEM32(ebp + (-0x18)); /* 0x36123F4A: mov eax, dword ptr [ebp - 0x18] */ 2496 ebx = MEM32(ebp + (-0x14)); /* 0x36123F4D: mov ebx, dword ptr [ebp - 0x14] */ 2497 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2498 ecx = ecx + 1; /* 0x36123F50: inc ecx */ 2499 _flag_k = FK_INC; 2500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2501 eax = eax - 1; /* 0x36123F51: dec eax */ 2502 _flag_k = FK_DEC; 2503 MEM32(ebp + (-0x8)) = ecx; /* 0x36123F52: mov dword ptr [ebp - 8], ecx */ 2504 MEM32(ebp + (-0x18)) = eax; /* 0x36123F55: mov dword ptr [ebp - 0x18], eax */ 2505 L_36123F58: 2506 ecx = MEM32(ebp + (-0xC)); /* 0x36123F58: mov ecx, dword ptr [ebp - 0xc] */ 2507 eax = MEM32(ebp + (-0x2C)); /* 0x36123F5B: mov eax, dword ptr [ebp - 0x2c] */ 2508 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2509 ecx = ecx + 1; /* 0x36123F5E: inc ecx */ 2510 _flag_k = FK_INC; 2511 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 2512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2513 ebx = ebx + 4; /* 0x36123F5F: add ebx, 4 */ 2514 _flag_k = FK_ADD; 2515 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 2516 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2517 eax = eax + 0xCu; /* 0x36123F62: add eax, 0xc */ 2518 _flag_k = FK_ADD; 2519 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 2520 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2521 edi = edi + 0x20u; /* 0x36123F65: add edi, 0x20 */ 2522 _flag_k = FK_ADD; 2523 /* cmp edi, 0x1000u */ /* 0x36123F68: cmp edi, 0x1000 */ 2524 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1000u); 2525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2526 _flag_k = FK_CMP; 2527 MEM32(ebp + (-0xC)) = ecx; /* 0x36123F6E: mov dword ptr [ebp - 0xc], ecx */ 2528 MEM32(ebp + (-0x14)) = ebx; /* 0x36123F71: mov dword ptr [ebp - 0x14], ebx */ 2529 MEM32(ebp + (-0x2C)) = eax; /* 0x36123F74: mov dword ptr [ebp - 0x2c], eax */ 2530 RECOMP_BACKEDGE(); 2531 if (CMP_B(_flag_a, _flag_b)) goto L_36123D94; /* 0x36123F77: jb 0x36123d94 */ 2532 L_36123F7D: 2533 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36123F7D: mov al, byte ptr [esi + 0x163c] */ 2534 /* test LO8(eax), LO8(eax) */ /* 0x36123F83: test al, al */ 2535 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2536 _cf = 0; 2537 _flag_k = FK_NARROW(FK_TEST, 24); 2538 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123F85: je 0x361275ac */ 2539 L_36123F8B: 2540 eax = MEM32(ebp + (-0x8)); /* 0x36123F8B: mov eax, dword ptr [ebp - 8] */ 2541 /* test eax, eax */ /* 0x36123F8E: test eax, eax */ 2542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2543 _cf = 0; 2544 _flag_k = FK_TEST; 2545 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36123F90: jne 0x361275ac */ 2546 L_36123F96: 2547 goto L_361275A8; /* 0x36123F96: jmp 0x361275a8 */ 2548 L_361275A8: 2549 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 2550 L_361275AC: 2551 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 2552 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 2553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2554 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 2555 _flag_k = FK_ADD; 2556 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 2557 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2558 _cf = 0; 2559 _flag_k = FK_TEST; 2560 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 2561 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 2562 L_361275B7: 2563 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 2564 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 2565 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 2566 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 2567 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 2568 RECOMP_FLAGS_IN(); 2569 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 2570 PUSH32(esp, eax); /* 0x361275CD: push eax */ 2571 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 2572 RECOMP_FLAGS_IN(); 2573 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 2574 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 2575 RECOMP_FLAGS_IN(); 2576 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 2577 PUSH32(esp, eax); /* 0x361275E2: push eax */ 2578 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 2579 RECOMP_FLAGS_IN(); 2580 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 2581 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 2582 RECOMP_FLAGS_IN(); 2583 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 2584 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2585 _cf = (LO8(eax)) != 0; 2586 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 2587 _flag_k = FK_NARROW(FK_CMP, 24); 2588 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 2589 eax = _sc ? 0xFFFFFFFFu : 0; 2590 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2591 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2592 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2593 eax = eax + 1; /* 0x361275F6: inc eax */ 2594 _flag_k = FK_INC; 2595 PUSH32(esp, eax); /* 0x361275F7: push eax */ 2596 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 2597 RECOMP_FLAGS_IN(); 2598 L_361275FE: 2599 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 2600 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 2601 esp = ebp; /* 0x36127600: mov esp, ebp */ 2602 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 2603 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 2604 RECOMP_REGS_OUT(); 2605 } 2606 2607 void sub_3612441B(void) { 2608 int _fpu_cmp = 0; 2609 uint32_t _cf = 0; 2610 int _df = 1; 2611 uint32_t _flag_k = FK_NONE; 2612 uint32_t _flag_a = 0, _flag_b = 0; 2613 uint32_t _itail_tgt = 0; 2614 RECOMP_REGS_LOCALS 2615 RECOMP_ENTER(0x3612441Bu); 2616 2617 L_3612441B: 2618 ecx = MEM32(ebp + (-0x8)); /* 0x3612441B: mov ecx, dword ptr [ebp - 8] */ 2619 fp_push(*(float*)&MEM32(ecx)); /* 0x3612441E: fld dword ptr [ecx] */ 2620 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36124420: fcomp dword ptr [esi + 0xc] */ 2621 fp_pop(); 2622 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36124423: fnstsw ax */ 2623 /* test HI8(eax), 0x41u */ /* 0x36124425: test ah, 0x41 */ 2624 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2625 _cf = 0; 2626 _flag_k = FK_NARROW(FK_TEST, 24); 2627 if (TEST_NZ(_flag_a, _flag_b)) goto L_36124564; /* 0x36124428: jne 0x36124564 */ 2628 L_3612442E: 2629 eax = edi + (-0x600); /* 0x3612442E: lea eax, [edi - 0x600] */ 2630 edx = eax; /* 0x36124434: mov edx, eax */ 2631 ecx = MEM32(edx); /* 0x36124436: mov ecx, dword ptr [edx] */ 2632 MEM32(ebp + (-0x50)) = ecx; /* 0x36124438: mov dword ptr [ebp - 0x50], ecx */ 2633 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612443B: fld dword ptr [ebp - 0x50] */ 2634 _st[0] *= (double)*(float*)ADDR(0x361754E0); /* 0x3612443E: fmul dword ptr [0x361754e0] */ 2635 ecx = MEM32(edx + 0x4); /* 0x36124444: mov ecx, dword ptr [edx + 4] */ 2636 MEM32(ebp + (-0x4C)) = ecx; /* 0x36124447: mov dword ptr [ebp - 0x4c], ecx */ 2637 edx = MEM32(edx + 0x8); /* 0x3612444A: mov edx, dword ptr [edx + 8] */ 2638 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3612444D: fstp dword ptr [ebp - 0x50] */ 2639 ecx = MEM32(ebp + (-0x50)); /* 0x36124450: mov ecx, dword ptr [ebp - 0x50] */ 2640 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36124453: fld dword ptr [ebp - 0x4c] */ 2641 MEM32(ebp + (-0x48)) = edx; /* 0x36124456: mov dword ptr [ebp - 0x48], edx */ 2642 _st[0] *= (double)*(float*)ADDR(0x361754E0); /* 0x36124459: fmul dword ptr [0x361754e0] */ 2643 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x3612445F: fstp dword ptr [ebp - 0x4c] */ 2644 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36124462: fld dword ptr [ebp - 0x48] */ 2645 _st[0] *= (double)*(float*)ADDR(0x361754E0); /* 0x36124465: fmul dword ptr [0x361754e0] */ 2646 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x3612446B: fstp dword ptr [ebp - 0x48] */ 2647 MEM32(eax) = ecx; /* 0x3612446E: mov dword ptr [eax], ecx */ 2648 edx = MEM32(ebp + (-0x4C)); /* 0x36124470: mov edx, dword ptr [ebp - 0x4c] */ 2649 MEM32(eax + 0x4) = edx; /* 0x36124473: mov dword ptr [eax + 4], edx */ 2650 edx = MEM32(ebp + (-0x48)); /* 0x36124476: mov edx, dword ptr [ebp - 0x48] */ 2651 MEM32(eax + 0x8) = edx; /* 0x36124479: mov dword ptr [eax + 8], edx */ 2652 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612447C: fld dword ptr [ebp - 0x50] */ 2653 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612447F: fmul dword ptr [0x36170d68] */ 2654 eax = MEM32(ebp + (-0x4C)); /* 0x36124485: mov eax, dword ptr [ebp - 0x4c] */ 2655 MEM32(ebp + (-0x38)) = ecx; /* 0x36124488: mov dword ptr [ebp - 0x38], ecx */ 2656 MEM32(ebp + (-0x34)) = eax; /* 0x3612448B: mov dword ptr [ebp - 0x34], eax */ 2657 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3612448E: fstp dword ptr [ebp - 0x38] */ 2658 ecx = MEM32(ebp + (-0x38)); /* 0x36124491: mov ecx, dword ptr [ebp - 0x38] */ 2659 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36124494: fld dword ptr [ebp - 0x34] */ 2660 MEM32(ebp + (-0x30)) = edx; /* 0x36124497: mov dword ptr [ebp - 0x30], edx */ 2661 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612449A: fmul dword ptr [0x36170d68] */ 2662 MEM32(ebp + (-0xD0)) = ecx; /* 0x361244A0: mov dword ptr [ebp - 0xd0], ecx */ 2663 ecx = ebx; /* 0x361244A6: mov ecx, ebx */ 2664 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x361244A8: fstp dword ptr [ebp - 0x34] */ 2665 edx = MEM32(ebp + (-0x34)); /* 0x361244AB: mov edx, dword ptr [ebp - 0x34] */ 2666 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x361244AE: fld dword ptr [ebp - 0x30] */ 2667 MEM32(ebp + (-0xCC)) = edx; /* 0x361244B1: mov dword ptr [ebp - 0xcc], edx */ 2668 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361244B7: fmul dword ptr [0x36170d68] */ 2669 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x361244BD: fstp dword ptr [ebp - 0x30] */ 2670 eax = MEM32(ebp + (-0x30)); /* 0x361244C0: mov eax, dword ptr [ebp - 0x30] */ 2671 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361244C3: fld dword ptr [ebp - 0x38] */ 2672 MEM32(ebp + (-0xC8)) = eax; /* 0x361244C6: mov dword ptr [ebp - 0xc8], eax */ 2673 _st[0] += (double)*(float*)ADDR(edi); /* 0x361244CC: fadd dword ptr [edi] */ 2674 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x361244CE: fstp dword ptr [edi] */ 2675 fp_push(*(float*)&MEM32(ebp + (-0xCC))); /* 0x361244D0: fld dword ptr [ebp - 0xcc] */ 2676 _st[0] += (double)*(float*)ADDR(edi + 0x4); /* 0x361244D6: fadd dword ptr [edi + 4] */ 2677 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x361244D9: fstp dword ptr [edi + 4] */ 2678 fp_push(*(float*)&MEM32(ebp + (-0xC8))); /* 0x361244DC: fld dword ptr [ebp - 0xc8] */ 2679 _st[0] += (double)*(float*)ADDR(edi + 0x8); /* 0x361244E2: fadd dword ptr [edi + 8] */ 2680 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x8) = _v; } /* 0x361244E5: fstp dword ptr [edi + 8] */ 2681 edx = MEM32(esi + 0x38); /* 0x361244E8: mov edx, dword ptr [esi + 0x38] */ 2682 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2684 ecx = ecx + edx; /* 0x361244EB: add ecx, edx */ 2685 _flag_k = FK_ADD; 2686 edx = edi; /* 0x361244ED: mov edx, edi */ 2687 eax = MEM32(edx); /* 0x361244EF: mov eax, dword ptr [edx] */ 2688 MEM32(ecx) = eax; /* 0x361244F1: mov dword ptr [ecx], eax */ 2689 eax = MEM32(edx + 0x4); /* 0x361244F3: mov eax, dword ptr [edx + 4] */ 2690 MEM32(ecx + 0x4) = eax; /* 0x361244F6: mov dword ptr [ecx + 4], eax */ 2691 edx = MEM32(edx + 0x8); /* 0x361244F9: mov edx, dword ptr [edx + 8] */ 2692 eax = MEM32(ebp + (-0x8)); /* 0x361244FC: mov eax, dword ptr [ebp - 8] */ 2693 MEM32(ecx + 0x8) = edx; /* 0x361244FF: mov dword ptr [ecx + 8], edx */ 2694 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36124502: fld dword ptr [esi + 0xc] */ 2695 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124505: fadd dword ptr [esi + 0x16c0] */ 2696 ecx = MEM32(esi + 0x38); /* 0x3612450B: mov ecx, dword ptr [esi + 0x38] */ 2697 _st[0] -= (double)*(float*)ADDR(eax); /* 0x3612450E: fsub dword ptr [eax] */ 2698 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124510: fdiv dword ptr [esi + 0x16c0] */ 2699 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36124516: fstp dword ptr [ebp - 0x18] */ 2700 fp_push(*(float*)&MEM32(0x36177754)); /* 0x36124519: fld dword ptr [0x36177754] */ 2701 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3612451F: fsub dword ptr [ebp - 0x18] */ 2702 eax = MEM32(ebp + (-0x18)); /* 0x36124522: mov eax, dword ptr [ebp - 0x18] */ 2703 PUSH32(esp, eax); /* 0x36124525: push eax */ 2704 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36124526: fmul dword ptr [esi + 0x16c8] */ 2705 { float _v = (float)_st[0]; *(float*)ADDR(ebx + ecx + 0xC) = _v; } /* 0x3612452C: fst dword ptr [ebx + ecx + 0xc] */ 2706 edx = MEM32(esi + 0x38); /* 0x36124530: mov edx, dword ptr [esi + 0x38] */ 2707 ecx = esi + 0x168C; /* 0x36124533: lea ecx, [esi + 0x168c] */ 2708 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + edx + 0x10) = _v; } /* 0x36124539: fstp dword ptr [ebx + edx + 0x10] */ 2709 RECOMP_ICALL(0x36137D80u); /* 0x3612453D: call 0x36137d80 */ /* not lifted */ 2710 RECOMP_FLAGS_IN(); 2711 ecx = MEM32(esi + 0x38); /* 0x36124542: mov ecx, dword ptr [esi + 0x38] */ 2712 MEM32(ebx + ecx + 0x14) = eax; /* 0x36124545: mov dword ptr [ebx + ecx + 0x14], eax */ 2713 edx = MEM32(esi + 0x38); /* 0x36124549: mov edx, dword ptr [esi + 0x38] */ 2714 MEM32(ebx + edx + 0x18) = 0; /* 0x3612454C: mov dword ptr [ebx + edx + 0x18], 0 */ 2715 eax = MEM32(esi + 0x38); /* 0x36124554: mov eax, dword ptr [esi + 0x38] */ 2716 MEM8(ebx + eax + 0x1C) = (uint8_t)(1); /* 0x36124557: mov byte ptr [ebx + eax + 0x1c], 1 */ 2717 _flag_a = (uint32_t)(MEM32(ebp + (-0xC))); _flag_b = (uint32_t)(1); 2718 MEM32(ebp + (-0xC)) = MEM32(ebp + (-0xC)) + 1; /* 0x3612455C: inc dword ptr [ebp - 0xc] */ 2719 _flag_k = FK_INC; 2720 goto L_3612487C; /* 0x3612455F: jmp 0x3612487c */ 2721 L_36124564: 2722 eax = MEM32(ebp + (-0x4)); /* 0x36124564: mov eax, dword ptr [ebp - 4] */ 2723 /* test eax, eax */ /* 0x36124567: test eax, eax */ 2724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2725 _cf = 0; 2726 _flag_k = FK_TEST; 2727 if (TEST_Z(_flag_a, _flag_b)) goto L_36124874; /* 0x36124569: je 0x36124874 */ 2728 L_3612456F: 2729 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x3612456F: mov al, byte ptr [esi + 0x163c] */ 2730 /* test LO8(eax), LO8(eax) */ /* 0x36124575: test al, al */ 2731 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2732 _cf = 0; 2733 _flag_k = FK_NARROW(FK_TEST, 24); 2734 if (TEST_NZ(_flag_a, _flag_b)) goto L_36124874; /* 0x36124577: jne 0x36124874 */ 2735 L_3612457D: 2736 eax = MEM32(esi + 0x16DC); /* 0x3612457D: mov eax, dword ptr [esi + 0x16dc] */ 2737 fp_push(*(float*)&MEM32(esi + 0x16E0)); /* 0x36124583: fld dword ptr [esi + 0x16e0] */ 2738 ecx = eax + eax * 2; /* 0x36124589: lea ecx, [eax + eax*2] */ 2739 eax = esi + 0x3C; /* 0x3612458C: lea eax, [esi + 0x3c] */ 2740 edx = MEM32(eax + ecx * 4); /* 0x3612458F: mov edx, dword ptr [eax + ecx*4] */ 2741 eax = eax + ecx * 4; /* 0x36124592: lea eax, [eax + ecx*4] */ 2742 MEM32(ebp + (-0x44)) = edx; /* 0x36124595: mov dword ptr [ebp - 0x44], edx */ 2743 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36124598: fld dword ptr [ebp - 0x44] */ 2744 ecx = MEM32(eax + 0x4); /* 0x3612459B: mov ecx, dword ptr [eax + 4] */ 2745 _st[0] *= _st[1]; /* 0x3612459E: fmul st(1) */ 2746 MEM32(ebp + (-0x40)) = ecx; /* 0x361245A0: mov dword ptr [ebp - 0x40], ecx */ 2747 edx = MEM32(eax + 0x8); /* 0x361245A3: mov edx, dword ptr [eax + 8] */ 2748 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361245A6: fstp dword ptr [ebp - 0x44] */ 2749 eax = MEM32(ebp + (-0x44)); /* 0x361245A9: mov eax, dword ptr [ebp - 0x44] */ 2750 MEM32(ebp + (-0x3C)) = edx; /* 0x361245AC: mov dword ptr [ebp - 0x3c], edx */ 2751 fp_push(_st[0]); /* 0x361245AF: fld st(0) */ 2752 MEM32(ebp + (-0x80)) = eax; /* 0x361245B1: mov dword ptr [ebp - 0x80], eax */ 2753 _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x361245B4: fmul dword ptr [ebp - 0x40] */ 2754 eax = MEM32(ebp + (-0xC4)); /* 0x361245B7: mov eax, dword ptr [ebp - 0xc4] */ 2755 MEM32(ebp + (-0x100)) = eax; /* 0x361245BD: mov dword ptr [ebp - 0x100], eax */ 2756 eax = ebp + (-0x80); /* 0x361245C3: lea eax, [ebp - 0x80] */ 2757 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361245C6: fstp dword ptr [ebp - 0x40] */ 2758 ecx = MEM32(ebp + (-0x40)); /* 0x361245C9: mov ecx, dword ptr [ebp - 0x40] */ 2759 MEM32(ebp + (-0x7C)) = ecx; /* 0x361245CC: mov dword ptr [ebp - 0x7c], ecx */ 2760 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x361245CF: fmul dword ptr [ebp - 0x3c] */ 2761 ecx = MEM32(ebp + (-0xC0)); /* 0x361245D2: mov ecx, dword ptr [ebp - 0xc0] */ 2762 MEM32(ebp + (-0xFC)) = ecx; /* 0x361245D8: mov dword ptr [ebp - 0xfc], ecx */ 2763 PUSH32(esp, eax); /* 0x361245DE: push eax */ 2764 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x361245DF: fstp dword ptr [ebp - 0x3c] */ 2765 edx = MEM32(ebp + (-0x3C)); /* 0x361245E2: mov edx, dword ptr [ebp - 0x3c] */ 2766 MEM32(ebp + (-0x78)) = edx; /* 0x361245E5: mov dword ptr [ebp - 0x78], edx */ 2767 edx = MEM32(ebp + (-0xBC)); /* 0x361245E8: mov edx, dword ptr [ebp - 0xbc] */ 2768 ecx = ebp + (-0x100); /* 0x361245EE: lea ecx, [ebp - 0x100] */ 2769 MEM32(ebp + (-0xF8)) = edx; /* 0x361245F4: mov dword ptr [ebp - 0xf8], edx */ 2770 RECOMP_ICALL(MEM32(0x3617017C)); /* 0x361245FA: call dword ptr [0x3617017c] */ 2771 RECOMP_FLAGS_IN(); 2772 ecx = MEM32(eax); /* 0x36124600: mov ecx, dword ptr [eax] */ 2773 MEM32(ebp + (-0x90)) = ecx; /* 0x36124602: mov dword ptr [ebp - 0x90], ecx */ 2774 edx = MEM32(eax + 0x4); /* 0x36124608: mov edx, dword ptr [eax + 4] */ 2775 MEM32(ebp + (-0x8C)) = edx; /* 0x3612460B: mov dword ptr [ebp - 0x8c], edx */ 2776 eax = MEM32(eax + 0x8); /* 0x36124611: mov eax, dword ptr [eax + 8] */ 2777 ecx = ebp + (-0x90); /* 0x36124614: lea ecx, [ebp - 0x90] */ 2778 PUSH32(esp, ecx); /* 0x3612461A: push ecx */ 2779 edx = ebp + (-0xF4); /* 0x3612461B: lea edx, [ebp - 0xf4] */ 2780 PUSH32(esp, edx); /* 0x36124621: push edx */ 2781 ecx = ebp + (-0xC4); /* 0x36124622: lea ecx, [ebp - 0xc4] */ 2782 MEM32(ebp + (-0x88)) = eax; /* 0x36124628: mov dword ptr [ebp - 0x88], eax */ 2783 RECOMP_ICALL(MEM32(0x36170180)); /* 0x3612462E: call dword ptr [0x36170180] */ 2784 RECOMP_FLAGS_IN(); 2785 fp_push(*(float*)&MEM32(ebp + (-0xB8))); /* 0x36124634: fld dword ptr [ebp - 0xb8] */ 2786 ecx = MEM32(eax); /* 0x3612463A: mov ecx, dword ptr [eax] */ 2787 _st[0] += _st[0]; /* 0x3612463C: fadd st(0), st(0) */ 2788 MEM32(ebp + (-0xE8)) = ecx; /* 0x3612463E: mov dword ptr [ebp - 0xe8], ecx */ 2789 edx = MEM32(eax + 0x4); /* 0x36124644: mov edx, dword ptr [eax + 4] */ 2790 MEM32(ebp + (-0xE4)) = edx; /* 0x36124647: mov dword ptr [ebp - 0xe4], edx */ 2791 eax = MEM32(eax + 0x8); /* 0x3612464D: mov eax, dword ptr [eax + 8] */ 2792 PUSH32(esp, ecx); /* 0x36124650: push ecx */ 2793 ecx = ebp + (-0x90); /* 0x36124651: lea ecx, [ebp - 0x90] */ 2794 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36124657: fstp dword ptr [esp] */ 2795 MEM32(ebp + (-0xE0)) = eax; /* 0x3612465A: mov dword ptr [ebp - 0xe0], eax */ 2796 RECOMP_ICALL(MEM32(0x36170184)); /* 0x36124660: call dword ptr [0x36170184] */ 2797 RECOMP_FLAGS_IN(); 2798 PUSH32(esp, 0x40000000u); /* 0x36124666: push 0x40000000 */ 2799 ecx = ebp + (-0xE8); /* 0x3612466B: lea ecx, [ebp - 0xe8] */ 2800 RECOMP_ICALL(MEM32(0x36170184)); /* 0x36124671: call dword ptr [0x36170184] */ 2801 RECOMP_FLAGS_IN(); 2802 ecx = ebp + (-0x90); /* 0x36124677: lea ecx, [ebp - 0x90] */ 2803 PUSH32(esp, ecx); /* 0x3612467D: push ecx */ 2804 ecx = ebp + (-0x80); /* 0x3612467E: lea ecx, [ebp - 0x80] */ 2805 RECOMP_ICALL(MEM32(0x36170178)); /* 0x36124681: call dword ptr [0x36170178] */ 2806 RECOMP_FLAGS_IN(); 2807 edx = ebp + (-0xE8); /* 0x36124687: lea edx, [ebp - 0xe8] */ 2808 PUSH32(esp, edx); /* 0x3612468D: push edx */ 2809 ecx = ebp + (-0x80); /* 0x3612468E: lea ecx, [ebp - 0x80] */ 2810 RECOMP_ICALL(MEM32(0x36170178)); /* 0x36124691: call dword ptr [0x36170178] */ 2811 RECOMP_FLAGS_IN(); 2812 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36124697: fld dword ptr [ebp - 0x5c] */ 2813 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x3612469A: fadd dword ptr [ebp - 0x80] */ 2814 eax = MEM32(ebp + (-0x5C)); /* 0x3612469D: mov eax, dword ptr [ebp - 0x5c] */ 2815 ecx = MEM32(ebp + (-0x58)); /* 0x361246A0: mov ecx, dword ptr [ebp - 0x58] */ 2816 edx = MEM32(ebp + (-0x54)); /* 0x361246A3: mov edx, dword ptr [ebp - 0x54] */ 2817 MEM32(ebp + (-0x28)) = eax; /* 0x361246A6: mov dword ptr [ebp - 0x28], eax */ 2818 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361246A9: fstp dword ptr [ebp - 0x28] */ 2819 fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x361246AC: fld dword ptr [ebp - 0x7c] */ 2820 MEM32(ebp + (-0x24)) = ecx; /* 0x361246AF: mov dword ptr [ebp - 0x24], ecx */ 2821 _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x361246B2: fadd dword ptr [ebp - 0x24] */ 2822 MEM32(ebp + (-0x20)) = edx; /* 0x361246B5: mov dword ptr [ebp - 0x20], edx */ 2823 ecx = MEM32(ebp + (-0x28)); /* 0x361246B8: mov ecx, dword ptr [ebp - 0x28] */ 2824 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361246BB: fstp dword ptr [ebp - 0x24] */ 2825 fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x361246BE: fld dword ptr [ebp - 0x78] */ 2826 eax = edi; /* 0x361246C1: mov eax, edi */ 2827 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x361246C3: fadd dword ptr [ebp - 0x20] */ 2828 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361246C6: fstp dword ptr [ebp - 0x20] */ 2829 MEM32(eax) = ecx; /* 0x361246C9: mov dword ptr [eax], ecx */ 2830 edx = MEM32(ebp + (-0x24)); /* 0x361246CB: mov edx, dword ptr [ebp - 0x24] */ 2831 MEM32(eax + 0x4) = edx; /* 0x361246CE: mov dword ptr [eax + 4], edx */ 2832 ecx = MEM32(ebp + (-0x20)); /* 0x361246D1: mov ecx, dword ptr [ebp - 0x20] */ 2833 MEM32(eax + 0x8) = ecx; /* 0x361246D4: mov dword ptr [eax + 8], ecx */ 2834 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x361246D7: fld dword ptr [esi + 0x16cc] */ 2835 eax = MEM32(esi + 0x16DC); /* 0x361246DD: mov eax, dword ptr [esi + 0x16dc] */ 2836 edx = eax + eax * 2; /* 0x361246E3: lea edx, [eax + eax*2] */ 2837 eax = esi + 0x1A4; /* 0x361246E6: lea eax, [esi + 0x1a4] */ 2838 ecx = MEM32(eax + edx * 4); /* 0x361246EC: mov ecx, dword ptr [eax + edx*4] */ 2839 eax = eax + edx * 4; /* 0x361246EF: lea eax, [eax + edx*4] */ 2840 MEM32(ebp + (-0xA8)) = ecx; /* 0x361246F2: mov dword ptr [ebp - 0xa8], ecx */ 2841 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x361246F8: fld dword ptr [ebp - 0xa8] */ 2842 edx = MEM32(eax + 0x4); /* 0x361246FE: mov edx, dword ptr [eax + 4] */ 2843 _st[0] *= _st[1]; /* 0x36124701: fmul st(1) */ 2844 MEM32(ebp + (-0xA4)) = edx; /* 0x36124703: mov dword ptr [ebp - 0xa4], edx */ 2845 eax = MEM32(eax + 0x8); /* 0x36124709: mov eax, dword ptr [eax + 8] */ 2846 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x3612470C: fstp dword ptr [ebp - 0xa8] */ 2847 ecx = MEM32(ebp + (-0xA8)); /* 0x36124712: mov ecx, dword ptr [ebp - 0xa8] */ 2848 MEM32(ebp + (-0xA0)) = eax; /* 0x36124718: mov dword ptr [ebp - 0xa0], eax */ 2849 fp_push(_st[0]); /* 0x3612471E: fld st(0) */ 2850 MEM32(ebp + (-0x9C)) = ecx; /* 0x36124720: mov dword ptr [ebp - 0x9c], ecx */ 2851 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA4)); /* 0x36124726: fmul dword ptr [ebp - 0xa4] */ 2852 ecx = MEM32(ebp + (-0xC4)); /* 0x3612472C: mov ecx, dword ptr [ebp - 0xc4] */ 2853 MEM32(ebp + (-0x10C)) = ecx; /* 0x36124732: mov dword ptr [ebp - 0x10c], ecx */ 2854 ecx = ebp + (-0x9C); /* 0x36124738: lea ecx, [ebp - 0x9c] */ 2855 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x3612473E: fstp dword ptr [ebp - 0xa4] */ 2856 edx = MEM32(ebp + (-0xA4)); /* 0x36124744: mov edx, dword ptr [ebp - 0xa4] */ 2857 MEM32(ebp + (-0x98)) = edx; /* 0x3612474A: mov dword ptr [ebp - 0x98], edx */ 2858 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA0)); /* 0x36124750: fmul dword ptr [ebp - 0xa0] */ 2859 edx = MEM32(ebp + (-0xC0)); /* 0x36124756: mov edx, dword ptr [ebp - 0xc0] */ 2860 PUSH32(esp, ecx); /* 0x3612475C: push ecx */ 2861 ecx = ebp + (-0x10C); /* 0x3612475D: lea ecx, [ebp - 0x10c] */ 2862 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36124763: fstp dword ptr [ebp - 0xa0] */ 2863 eax = MEM32(ebp + (-0xA0)); /* 0x36124769: mov eax, dword ptr [ebp - 0xa0] */ 2864 MEM32(ebp + (-0x94)) = eax; /* 0x3612476F: mov dword ptr [ebp - 0x94], eax */ 2865 eax = MEM32(ebp + (-0xBC)); /* 0x36124775: mov eax, dword ptr [ebp - 0xbc] */ 2866 MEM32(ebp + (-0x108)) = edx; /* 0x3612477B: mov dword ptr [ebp - 0x108], edx */ 2867 MEM32(ebp + (-0x104)) = eax; /* 0x36124781: mov dword ptr [ebp - 0x104], eax */ 2868 RECOMP_ICALL(MEM32(0x3617017C)); /* 0x36124787: call dword ptr [0x3617017c] */ 2869 RECOMP_FLAGS_IN(); 2870 edx = MEM32(eax); /* 0x3612478D: mov edx, dword ptr [eax] */ 2871 MEM32(ebp + (-0x68)) = edx; /* 0x3612478F: mov dword ptr [ebp - 0x68], edx */ 2872 ecx = MEM32(eax + 0x4); /* 0x36124792: mov ecx, dword ptr [eax + 4] */ 2873 MEM32(ebp + (-0x64)) = ecx; /* 0x36124795: mov dword ptr [ebp - 0x64], ecx */ 2874 edx = MEM32(eax + 0x8); /* 0x36124798: mov edx, dword ptr [eax + 8] */ 2875 eax = ebp + (-0x68); /* 0x3612479B: lea eax, [ebp - 0x68] */ 2876 PUSH32(esp, eax); /* 0x3612479E: push eax */ 2877 ecx = ebp + (-0x128); /* 0x3612479F: lea ecx, [ebp - 0x128] */ 2878 PUSH32(esp, ecx); /* 0x361247A5: push ecx */ 2879 ecx = ebp + (-0xC4); /* 0x361247A6: lea ecx, [ebp - 0xc4] */ 2880 MEM32(ebp + (-0x60)) = edx; /* 0x361247AC: mov dword ptr [ebp - 0x60], edx */ 2881 RECOMP_ICALL(MEM32(0x36170180)); /* 0x361247AF: call dword ptr [0x36170180] */ 2882 RECOMP_FLAGS_IN(); 2883 fp_push(*(float*)&MEM32(ebp + (-0xB8))); /* 0x361247B5: fld dword ptr [ebp - 0xb8] */ 2884 edx = MEM32(eax); /* 0x361247BB: mov edx, dword ptr [eax] */ 2885 _st[0] += _st[0]; /* 0x361247BD: fadd st(0), st(0) */ 2886 MEM32(ebp + (-0x118)) = edx; /* 0x361247BF: mov dword ptr [ebp - 0x118], edx */ 2887 ecx = MEM32(eax + 0x4); /* 0x361247C5: mov ecx, dword ptr [eax + 4] */ 2888 MEM32(ebp + (-0x114)) = ecx; /* 0x361247C8: mov dword ptr [ebp - 0x114], ecx */ 2889 edx = MEM32(eax + 0x8); /* 0x361247CE: mov edx, dword ptr [eax + 8] */ 2890 PUSH32(esp, ecx); /* 0x361247D1: push ecx */ 2891 ecx = ebp + (-0x68); /* 0x361247D2: lea ecx, [ebp - 0x68] */ 2892 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361247D5: fstp dword ptr [esp] */ 2893 MEM32(ebp + (-0x110)) = edx; /* 0x361247D8: mov dword ptr [ebp - 0x110], edx */ 2894 RECOMP_ICALL(MEM32(0x36170184)); /* 0x361247DE: call dword ptr [0x36170184] */ 2895 RECOMP_FLAGS_IN(); 2896 PUSH32(esp, 0x40000000u); /* 0x361247E4: push 0x40000000 */ 2897 ecx = ebp + (-0x118); /* 0x361247E9: lea ecx, [ebp - 0x118] */ 2898 RECOMP_ICALL(MEM32(0x36170184)); /* 0x361247EF: call dword ptr [0x36170184] */ 2899 RECOMP_FLAGS_IN(); 2900 eax = ebp + (-0x68); /* 0x361247F5: lea eax, [ebp - 0x68] */ 2901 PUSH32(esp, eax); /* 0x361247F8: push eax */ 2902 ecx = ebp + (-0x9C); /* 0x361247F9: lea ecx, [ebp - 0x9c] */ 2903 RECOMP_ICALL(MEM32(0x36170178)); /* 0x361247FF: call dword ptr [0x36170178] */ 2904 RECOMP_FLAGS_IN(); 2905 ecx = ebp + (-0x118); /* 0x36124805: lea ecx, [ebp - 0x118] */ 2906 PUSH32(esp, ecx); /* 0x3612480B: push ecx */ 2907 ecx = ebp + (-0x9C); /* 0x3612480C: lea ecx, [ebp - 0x9c] */ 2908 RECOMP_ICALL(MEM32(0x36170178)); /* 0x36124812: call dword ptr [0x36170178] */ 2909 RECOMP_FLAGS_IN(); 2910 eax = MEM32(ebp + (-0x9C)); /* 0x36124818: mov eax, dword ptr [ebp - 0x9c] */ 2911 edx = edi + (-0x600); /* 0x3612481E: lea edx, [edi - 0x600] */ 2912 MEM32(edx) = eax; /* 0x36124824: mov dword ptr [edx], eax */ 2913 ecx = MEM32(ebp + (-0x98)); /* 0x36124826: mov ecx, dword ptr [ebp - 0x98] */ 2914 MEM32(edx + 0x4) = ecx; /* 0x3612482C: mov dword ptr [edx + 4], ecx */ 2915 eax = MEM32(ebp + (-0x94)); /* 0x3612482F: mov eax, dword ptr [ebp - 0x94] */ 2916 MEM32(edx + 0x8) = eax; /* 0x36124835: mov dword ptr [edx + 8], eax */ 2917 ecx = MEM32(esi + 0x16DC); /* 0x36124838: mov ecx, dword ptr [esi + 0x16dc] */ 2918 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2919 ecx = ecx + 1; /* 0x3612483E: inc ecx */ 2920 _flag_k = FK_INC; 2921 eax = ecx; /* 0x3612483F: mov eax, ecx */ 2922 /* cmp eax, 0x1Eu */ /* 0x36124841: cmp eax, 0x1e */ 2923 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 2924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2925 _flag_k = FK_CMP; 2926 MEM32(esi + 0x16DC) = ecx; /* 0x36124844: mov dword ptr [esi + 0x16dc], ecx */ 2927 if (CMP_L(_flag_a, _flag_b)) goto L_36124856; /* 0x3612484A: jl 0x36124856 */ 2928 L_3612484C: 2929 MEM32(esi + 0x16DC) = 0; /* 0x3612484C: mov dword ptr [esi + 0x16dc], 0 */ 2930 L_36124856: 2931 fp_push(*(float*)&MEM32(esi + 0x16C0)); /* 0x36124856: fld dword ptr [esi + 0x16c0] */ 2932 ecx = MEM32(ebp + (-0x8)); /* 0x3612485C: mov ecx, dword ptr [ebp - 8] */ 2933 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x3612485F: fadd dword ptr [esi + 0xc] */ 2934 eax = MEM32(ebp + (-0x4)); /* 0x36124862: mov eax, dword ptr [ebp - 4] */ 2935 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x36124865: fstp dword ptr [ecx] */ 2936 ecx = MEM32(ebp + (-0xC)); /* 0x36124867: mov ecx, dword ptr [ebp - 0xc] */ 2937 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2938 ecx = ecx + 1; /* 0x3612486A: inc ecx */ 2939 _flag_k = FK_INC; 2940 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2941 eax = eax - 1; /* 0x3612486B: dec eax */ 2942 _flag_k = FK_DEC; 2943 MEM32(ebp + (-0xC)) = ecx; /* 0x3612486C: mov dword ptr [ebp - 0xc], ecx */ 2944 MEM32(ebp + (-0x4)) = eax; /* 0x3612486F: mov dword ptr [ebp - 4], eax */ 2945 goto L_3612487C; /* 0x36124872: jmp 0x3612487c */ 2946 L_36124874: 2947 edx = MEM32(esi + 0x38); /* 0x36124874: mov edx, dword ptr [esi + 0x38] */ 2948 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x36124877: mov byte ptr [edx + ebx + 0x1c], 0 */ 2949 L_3612487C: 2950 edx = MEM32(ebp + (-0x8)); /* 0x3612487C: mov edx, dword ptr [ebp - 8] */ 2951 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 2952 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2953 edx = edx + 4; /* 0x3612487F: add edx, 4 */ 2954 _flag_k = FK_ADD; 2955 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 2956 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2957 ebx = ebx + 0x20u; /* 0x36124882: add ebx, 0x20 */ 2958 _flag_k = FK_ADD; 2959 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 2960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2961 edi = edi + 0xCu; /* 0x36124885: add edi, 0xc */ 2962 _flag_k = FK_ADD; 2963 /* cmp ebx, 0x1000u */ /* 0x36124888: cmp ebx, 0x1000 */ 2964 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 2965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2966 _flag_k = FK_CMP; 2967 MEM32(ebp + (-0x8)) = edx; /* 0x3612488E: mov dword ptr [ebp - 8], edx */ 2968 RECOMP_BACKEDGE(); 2969 if (CMP_L(_flag_a, _flag_b)) goto L_3612441B; /* 0x36124891: jl 0x3612441b */ 2970 L_36124897: 2971 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36124897: mov al, byte ptr [esi + 0x163c] */ 2972 /* test LO8(eax), LO8(eax) */ /* 0x3612489D: test al, al */ 2973 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2974 _cf = 0; 2975 _flag_k = FK_NARROW(FK_TEST, 24); 2976 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612489F: je 0x361275ac */ 2977 L_361248A5: 2978 eax = MEM32(ebp + (-0xC)); /* 0x361248A5: mov eax, dword ptr [ebp - 0xc] */ 2979 /* test eax, eax */ /* 0x361248A8: test eax, eax */ 2980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2981 _cf = 0; 2982 _flag_k = FK_TEST; 2983 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x361248AA: jne 0x361275ac */ 2984 L_361248B0: 2985 goto L_361275A8; /* 0x361248B0: jmp 0x361275a8 */ 2986 L_361275A8: 2987 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 2988 L_361275AC: 2989 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 2990 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 2991 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2992 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 2993 _flag_k = FK_ADD; 2994 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 2995 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2996 _cf = 0; 2997 _flag_k = FK_TEST; 2998 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 2999 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 3000 L_361275B7: 3001 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 3002 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 3003 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 3004 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 3005 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 3006 RECOMP_FLAGS_IN(); 3007 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 3008 PUSH32(esp, eax); /* 0x361275CD: push eax */ 3009 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 3010 RECOMP_FLAGS_IN(); 3011 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 3012 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 3013 RECOMP_FLAGS_IN(); 3014 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 3015 PUSH32(esp, eax); /* 0x361275E2: push eax */ 3016 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 3017 RECOMP_FLAGS_IN(); 3018 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 3019 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 3020 RECOMP_FLAGS_IN(); 3021 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 3022 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3023 _cf = (LO8(eax)) != 0; 3024 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 3025 _flag_k = FK_NARROW(FK_CMP, 24); 3026 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 3027 eax = _sc ? 0xFFFFFFFFu : 0; 3028 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3029 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3031 eax = eax + 1; /* 0x361275F6: inc eax */ 3032 _flag_k = FK_INC; 3033 PUSH32(esp, eax); /* 0x361275F7: push eax */ 3034 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 3035 RECOMP_FLAGS_IN(); 3036 L_361275FE: 3037 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 3038 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 3039 esp = ebp; /* 0x36127600: mov esp, ebp */ 3040 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 3041 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 3042 RECOMP_REGS_OUT(); 3043 } 3044 3045 void sub_3612487C(void) { 3046 int _fpu_cmp = 0; 3047 uint32_t _cf = 0; 3048 int _df = 1; 3049 uint32_t _flag_k = FK_NONE; 3050 uint32_t _flag_a = 0, _flag_b = 0; 3051 uint32_t _itail_tgt = 0; 3052 RECOMP_REGS_LOCALS 3053 RECOMP_ENTER(0x3612487Cu); 3054 3055 goto L_3612487C; 3056 L_3612441B: 3057 ecx = MEM32(ebp + (-0x8)); /* 0x3612441B: mov ecx, dword ptr [ebp - 8] */ 3058 fp_push(*(float*)&MEM32(ecx)); /* 0x3612441E: fld dword ptr [ecx] */ 3059 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36124420: fcomp dword ptr [esi + 0xc] */ 3060 fp_pop(); 3061 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36124423: fnstsw ax */ 3062 /* test HI8(eax), 0x41u */ /* 0x36124425: test ah, 0x41 */ 3063 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3064 _cf = 0; 3065 _flag_k = FK_NARROW(FK_TEST, 24); 3066 if (TEST_NZ(_flag_a, _flag_b)) goto L_36124564; /* 0x36124428: jne 0x36124564 */ 3067 L_3612442E: 3068 eax = edi + (-0x600); /* 0x3612442E: lea eax, [edi - 0x600] */ 3069 edx = eax; /* 0x36124434: mov edx, eax */ 3070 ecx = MEM32(edx); /* 0x36124436: mov ecx, dword ptr [edx] */ 3071 MEM32(ebp + (-0x50)) = ecx; /* 0x36124438: mov dword ptr [ebp - 0x50], ecx */ 3072 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612443B: fld dword ptr [ebp - 0x50] */ 3073 _st[0] *= (double)*(float*)ADDR(0x361754E0); /* 0x3612443E: fmul dword ptr [0x361754e0] */ 3074 ecx = MEM32(edx + 0x4); /* 0x36124444: mov ecx, dword ptr [edx + 4] */ 3075 MEM32(ebp + (-0x4C)) = ecx; /* 0x36124447: mov dword ptr [ebp - 0x4c], ecx */ 3076 edx = MEM32(edx + 0x8); /* 0x3612444A: mov edx, dword ptr [edx + 8] */ 3077 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3612444D: fstp dword ptr [ebp - 0x50] */ 3078 ecx = MEM32(ebp + (-0x50)); /* 0x36124450: mov ecx, dword ptr [ebp - 0x50] */ 3079 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36124453: fld dword ptr [ebp - 0x4c] */ 3080 MEM32(ebp + (-0x48)) = edx; /* 0x36124456: mov dword ptr [ebp - 0x48], edx */ 3081 _st[0] *= (double)*(float*)ADDR(0x361754E0); /* 0x36124459: fmul dword ptr [0x361754e0] */ 3082 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x3612445F: fstp dword ptr [ebp - 0x4c] */ 3083 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36124462: fld dword ptr [ebp - 0x48] */ 3084 _st[0] *= (double)*(float*)ADDR(0x361754E0); /* 0x36124465: fmul dword ptr [0x361754e0] */ 3085 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x3612446B: fstp dword ptr [ebp - 0x48] */ 3086 MEM32(eax) = ecx; /* 0x3612446E: mov dword ptr [eax], ecx */ 3087 edx = MEM32(ebp + (-0x4C)); /* 0x36124470: mov edx, dword ptr [ebp - 0x4c] */ 3088 MEM32(eax + 0x4) = edx; /* 0x36124473: mov dword ptr [eax + 4], edx */ 3089 edx = MEM32(ebp + (-0x48)); /* 0x36124476: mov edx, dword ptr [ebp - 0x48] */ 3090 MEM32(eax + 0x8) = edx; /* 0x36124479: mov dword ptr [eax + 8], edx */ 3091 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612447C: fld dword ptr [ebp - 0x50] */ 3092 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612447F: fmul dword ptr [0x36170d68] */ 3093 eax = MEM32(ebp + (-0x4C)); /* 0x36124485: mov eax, dword ptr [ebp - 0x4c] */ 3094 MEM32(ebp + (-0x38)) = ecx; /* 0x36124488: mov dword ptr [ebp - 0x38], ecx */ 3095 MEM32(ebp + (-0x34)) = eax; /* 0x3612448B: mov dword ptr [ebp - 0x34], eax */ 3096 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3612448E: fstp dword ptr [ebp - 0x38] */ 3097 ecx = MEM32(ebp + (-0x38)); /* 0x36124491: mov ecx, dword ptr [ebp - 0x38] */ 3098 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36124494: fld dword ptr [ebp - 0x34] */ 3099 MEM32(ebp + (-0x30)) = edx; /* 0x36124497: mov dword ptr [ebp - 0x30], edx */ 3100 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612449A: fmul dword ptr [0x36170d68] */ 3101 MEM32(ebp + (-0xD0)) = ecx; /* 0x361244A0: mov dword ptr [ebp - 0xd0], ecx */ 3102 ecx = ebx; /* 0x361244A6: mov ecx, ebx */ 3103 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x361244A8: fstp dword ptr [ebp - 0x34] */ 3104 edx = MEM32(ebp + (-0x34)); /* 0x361244AB: mov edx, dword ptr [ebp - 0x34] */ 3105 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x361244AE: fld dword ptr [ebp - 0x30] */ 3106 MEM32(ebp + (-0xCC)) = edx; /* 0x361244B1: mov dword ptr [ebp - 0xcc], edx */ 3107 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361244B7: fmul dword ptr [0x36170d68] */ 3108 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x361244BD: fstp dword ptr [ebp - 0x30] */ 3109 eax = MEM32(ebp + (-0x30)); /* 0x361244C0: mov eax, dword ptr [ebp - 0x30] */ 3110 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361244C3: fld dword ptr [ebp - 0x38] */ 3111 MEM32(ebp + (-0xC8)) = eax; /* 0x361244C6: mov dword ptr [ebp - 0xc8], eax */ 3112 _st[0] += (double)*(float*)ADDR(edi); /* 0x361244CC: fadd dword ptr [edi] */ 3113 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x361244CE: fstp dword ptr [edi] */ 3114 fp_push(*(float*)&MEM32(ebp + (-0xCC))); /* 0x361244D0: fld dword ptr [ebp - 0xcc] */ 3115 _st[0] += (double)*(float*)ADDR(edi + 0x4); /* 0x361244D6: fadd dword ptr [edi + 4] */ 3116 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x361244D9: fstp dword ptr [edi + 4] */ 3117 fp_push(*(float*)&MEM32(ebp + (-0xC8))); /* 0x361244DC: fld dword ptr [ebp - 0xc8] */ 3118 _st[0] += (double)*(float*)ADDR(edi + 0x8); /* 0x361244E2: fadd dword ptr [edi + 8] */ 3119 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x8) = _v; } /* 0x361244E5: fstp dword ptr [edi + 8] */ 3120 edx = MEM32(esi + 0x38); /* 0x361244E8: mov edx, dword ptr [esi + 0x38] */ 3121 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3122 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3123 ecx = ecx + edx; /* 0x361244EB: add ecx, edx */ 3124 _flag_k = FK_ADD; 3125 edx = edi; /* 0x361244ED: mov edx, edi */ 3126 eax = MEM32(edx); /* 0x361244EF: mov eax, dword ptr [edx] */ 3127 MEM32(ecx) = eax; /* 0x361244F1: mov dword ptr [ecx], eax */ 3128 eax = MEM32(edx + 0x4); /* 0x361244F3: mov eax, dword ptr [edx + 4] */ 3129 MEM32(ecx + 0x4) = eax; /* 0x361244F6: mov dword ptr [ecx + 4], eax */ 3130 edx = MEM32(edx + 0x8); /* 0x361244F9: mov edx, dword ptr [edx + 8] */ 3131 eax = MEM32(ebp + (-0x8)); /* 0x361244FC: mov eax, dword ptr [ebp - 8] */ 3132 MEM32(ecx + 0x8) = edx; /* 0x361244FF: mov dword ptr [ecx + 8], edx */ 3133 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36124502: fld dword ptr [esi + 0xc] */ 3134 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124505: fadd dword ptr [esi + 0x16c0] */ 3135 ecx = MEM32(esi + 0x38); /* 0x3612450B: mov ecx, dword ptr [esi + 0x38] */ 3136 _st[0] -= (double)*(float*)ADDR(eax); /* 0x3612450E: fsub dword ptr [eax] */ 3137 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124510: fdiv dword ptr [esi + 0x16c0] */ 3138 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36124516: fstp dword ptr [ebp - 0x18] */ 3139 fp_push(*(float*)&MEM32(0x36177754)); /* 0x36124519: fld dword ptr [0x36177754] */ 3140 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3612451F: fsub dword ptr [ebp - 0x18] */ 3141 eax = MEM32(ebp + (-0x18)); /* 0x36124522: mov eax, dword ptr [ebp - 0x18] */ 3142 PUSH32(esp, eax); /* 0x36124525: push eax */ 3143 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36124526: fmul dword ptr [esi + 0x16c8] */ 3144 { float _v = (float)_st[0]; *(float*)ADDR(ebx + ecx + 0xC) = _v; } /* 0x3612452C: fst dword ptr [ebx + ecx + 0xc] */ 3145 edx = MEM32(esi + 0x38); /* 0x36124530: mov edx, dword ptr [esi + 0x38] */ 3146 ecx = esi + 0x168C; /* 0x36124533: lea ecx, [esi + 0x168c] */ 3147 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + edx + 0x10) = _v; } /* 0x36124539: fstp dword ptr [ebx + edx + 0x10] */ 3148 RECOMP_ICALL(0x36137D80u); /* 0x3612453D: call 0x36137d80 */ /* not lifted */ 3149 RECOMP_FLAGS_IN(); 3150 ecx = MEM32(esi + 0x38); /* 0x36124542: mov ecx, dword ptr [esi + 0x38] */ 3151 MEM32(ebx + ecx + 0x14) = eax; /* 0x36124545: mov dword ptr [ebx + ecx + 0x14], eax */ 3152 edx = MEM32(esi + 0x38); /* 0x36124549: mov edx, dword ptr [esi + 0x38] */ 3153 MEM32(ebx + edx + 0x18) = 0; /* 0x3612454C: mov dword ptr [ebx + edx + 0x18], 0 */ 3154 eax = MEM32(esi + 0x38); /* 0x36124554: mov eax, dword ptr [esi + 0x38] */ 3155 MEM8(ebx + eax + 0x1C) = (uint8_t)(1); /* 0x36124557: mov byte ptr [ebx + eax + 0x1c], 1 */ 3156 _flag_a = (uint32_t)(MEM32(ebp + (-0xC))); _flag_b = (uint32_t)(1); 3157 MEM32(ebp + (-0xC)) = MEM32(ebp + (-0xC)) + 1; /* 0x3612455C: inc dword ptr [ebp - 0xc] */ 3158 _flag_k = FK_INC; 3159 goto L_3612487C; /* 0x3612455F: jmp 0x3612487c */ 3160 L_36124564: 3161 eax = MEM32(ebp + (-0x4)); /* 0x36124564: mov eax, dword ptr [ebp - 4] */ 3162 /* test eax, eax */ /* 0x36124567: test eax, eax */ 3163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3164 _cf = 0; 3165 _flag_k = FK_TEST; 3166 if (TEST_Z(_flag_a, _flag_b)) goto L_36124874; /* 0x36124569: je 0x36124874 */ 3167 L_3612456F: 3168 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x3612456F: mov al, byte ptr [esi + 0x163c] */ 3169 /* test LO8(eax), LO8(eax) */ /* 0x36124575: test al, al */ 3170 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3171 _cf = 0; 3172 _flag_k = FK_NARROW(FK_TEST, 24); 3173 if (TEST_NZ(_flag_a, _flag_b)) goto L_36124874; /* 0x36124577: jne 0x36124874 */ 3174 L_3612457D: 3175 eax = MEM32(esi + 0x16DC); /* 0x3612457D: mov eax, dword ptr [esi + 0x16dc] */ 3176 fp_push(*(float*)&MEM32(esi + 0x16E0)); /* 0x36124583: fld dword ptr [esi + 0x16e0] */ 3177 ecx = eax + eax * 2; /* 0x36124589: lea ecx, [eax + eax*2] */ 3178 eax = esi + 0x3C; /* 0x3612458C: lea eax, [esi + 0x3c] */ 3179 edx = MEM32(eax + ecx * 4); /* 0x3612458F: mov edx, dword ptr [eax + ecx*4] */ 3180 eax = eax + ecx * 4; /* 0x36124592: lea eax, [eax + ecx*4] */ 3181 MEM32(ebp + (-0x44)) = edx; /* 0x36124595: mov dword ptr [ebp - 0x44], edx */ 3182 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36124598: fld dword ptr [ebp - 0x44] */ 3183 ecx = MEM32(eax + 0x4); /* 0x3612459B: mov ecx, dword ptr [eax + 4] */ 3184 _st[0] *= _st[1]; /* 0x3612459E: fmul st(1) */ 3185 MEM32(ebp + (-0x40)) = ecx; /* 0x361245A0: mov dword ptr [ebp - 0x40], ecx */ 3186 edx = MEM32(eax + 0x8); /* 0x361245A3: mov edx, dword ptr [eax + 8] */ 3187 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361245A6: fstp dword ptr [ebp - 0x44] */ 3188 eax = MEM32(ebp + (-0x44)); /* 0x361245A9: mov eax, dword ptr [ebp - 0x44] */ 3189 MEM32(ebp + (-0x3C)) = edx; /* 0x361245AC: mov dword ptr [ebp - 0x3c], edx */ 3190 fp_push(_st[0]); /* 0x361245AF: fld st(0) */ 3191 MEM32(ebp + (-0x80)) = eax; /* 0x361245B1: mov dword ptr [ebp - 0x80], eax */ 3192 _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x361245B4: fmul dword ptr [ebp - 0x40] */ 3193 eax = MEM32(ebp + (-0xC4)); /* 0x361245B7: mov eax, dword ptr [ebp - 0xc4] */ 3194 MEM32(ebp + (-0x100)) = eax; /* 0x361245BD: mov dword ptr [ebp - 0x100], eax */ 3195 eax = ebp + (-0x80); /* 0x361245C3: lea eax, [ebp - 0x80] */ 3196 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361245C6: fstp dword ptr [ebp - 0x40] */ 3197 ecx = MEM32(ebp + (-0x40)); /* 0x361245C9: mov ecx, dword ptr [ebp - 0x40] */ 3198 MEM32(ebp + (-0x7C)) = ecx; /* 0x361245CC: mov dword ptr [ebp - 0x7c], ecx */ 3199 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x361245CF: fmul dword ptr [ebp - 0x3c] */ 3200 ecx = MEM32(ebp + (-0xC0)); /* 0x361245D2: mov ecx, dword ptr [ebp - 0xc0] */ 3201 MEM32(ebp + (-0xFC)) = ecx; /* 0x361245D8: mov dword ptr [ebp - 0xfc], ecx */ 3202 PUSH32(esp, eax); /* 0x361245DE: push eax */ 3203 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x361245DF: fstp dword ptr [ebp - 0x3c] */ 3204 edx = MEM32(ebp + (-0x3C)); /* 0x361245E2: mov edx, dword ptr [ebp - 0x3c] */ 3205 MEM32(ebp + (-0x78)) = edx; /* 0x361245E5: mov dword ptr [ebp - 0x78], edx */ 3206 edx = MEM32(ebp + (-0xBC)); /* 0x361245E8: mov edx, dword ptr [ebp - 0xbc] */ 3207 ecx = ebp + (-0x100); /* 0x361245EE: lea ecx, [ebp - 0x100] */ 3208 MEM32(ebp + (-0xF8)) = edx; /* 0x361245F4: mov dword ptr [ebp - 0xf8], edx */ 3209 RECOMP_ICALL(MEM32(0x3617017C)); /* 0x361245FA: call dword ptr [0x3617017c] */ 3210 RECOMP_FLAGS_IN(); 3211 ecx = MEM32(eax); /* 0x36124600: mov ecx, dword ptr [eax] */ 3212 MEM32(ebp + (-0x90)) = ecx; /* 0x36124602: mov dword ptr [ebp - 0x90], ecx */ 3213 edx = MEM32(eax + 0x4); /* 0x36124608: mov edx, dword ptr [eax + 4] */ 3214 MEM32(ebp + (-0x8C)) = edx; /* 0x3612460B: mov dword ptr [ebp - 0x8c], edx */ 3215 eax = MEM32(eax + 0x8); /* 0x36124611: mov eax, dword ptr [eax + 8] */ 3216 ecx = ebp + (-0x90); /* 0x36124614: lea ecx, [ebp - 0x90] */ 3217 PUSH32(esp, ecx); /* 0x3612461A: push ecx */ 3218 edx = ebp + (-0xF4); /* 0x3612461B: lea edx, [ebp - 0xf4] */ 3219 PUSH32(esp, edx); /* 0x36124621: push edx */ 3220 ecx = ebp + (-0xC4); /* 0x36124622: lea ecx, [ebp - 0xc4] */ 3221 MEM32(ebp + (-0x88)) = eax; /* 0x36124628: mov dword ptr [ebp - 0x88], eax */ 3222 RECOMP_ICALL(MEM32(0x36170180)); /* 0x3612462E: call dword ptr [0x36170180] */ 3223 RECOMP_FLAGS_IN(); 3224 fp_push(*(float*)&MEM32(ebp + (-0xB8))); /* 0x36124634: fld dword ptr [ebp - 0xb8] */ 3225 ecx = MEM32(eax); /* 0x3612463A: mov ecx, dword ptr [eax] */ 3226 _st[0] += _st[0]; /* 0x3612463C: fadd st(0), st(0) */ 3227 MEM32(ebp + (-0xE8)) = ecx; /* 0x3612463E: mov dword ptr [ebp - 0xe8], ecx */ 3228 edx = MEM32(eax + 0x4); /* 0x36124644: mov edx, dword ptr [eax + 4] */ 3229 MEM32(ebp + (-0xE4)) = edx; /* 0x36124647: mov dword ptr [ebp - 0xe4], edx */ 3230 eax = MEM32(eax + 0x8); /* 0x3612464D: mov eax, dword ptr [eax + 8] */ 3231 PUSH32(esp, ecx); /* 0x36124650: push ecx */ 3232 ecx = ebp + (-0x90); /* 0x36124651: lea ecx, [ebp - 0x90] */ 3233 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36124657: fstp dword ptr [esp] */ 3234 MEM32(ebp + (-0xE0)) = eax; /* 0x3612465A: mov dword ptr [ebp - 0xe0], eax */ 3235 RECOMP_ICALL(MEM32(0x36170184)); /* 0x36124660: call dword ptr [0x36170184] */ 3236 RECOMP_FLAGS_IN(); 3237 PUSH32(esp, 0x40000000u); /* 0x36124666: push 0x40000000 */ 3238 ecx = ebp + (-0xE8); /* 0x3612466B: lea ecx, [ebp - 0xe8] */ 3239 RECOMP_ICALL(MEM32(0x36170184)); /* 0x36124671: call dword ptr [0x36170184] */ 3240 RECOMP_FLAGS_IN(); 3241 ecx = ebp + (-0x90); /* 0x36124677: lea ecx, [ebp - 0x90] */ 3242 PUSH32(esp, ecx); /* 0x3612467D: push ecx */ 3243 ecx = ebp + (-0x80); /* 0x3612467E: lea ecx, [ebp - 0x80] */ 3244 RECOMP_ICALL(MEM32(0x36170178)); /* 0x36124681: call dword ptr [0x36170178] */ 3245 RECOMP_FLAGS_IN(); 3246 edx = ebp + (-0xE8); /* 0x36124687: lea edx, [ebp - 0xe8] */ 3247 PUSH32(esp, edx); /* 0x3612468D: push edx */ 3248 ecx = ebp + (-0x80); /* 0x3612468E: lea ecx, [ebp - 0x80] */ 3249 RECOMP_ICALL(MEM32(0x36170178)); /* 0x36124691: call dword ptr [0x36170178] */ 3250 RECOMP_FLAGS_IN(); 3251 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36124697: fld dword ptr [ebp - 0x5c] */ 3252 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x3612469A: fadd dword ptr [ebp - 0x80] */ 3253 eax = MEM32(ebp + (-0x5C)); /* 0x3612469D: mov eax, dword ptr [ebp - 0x5c] */ 3254 ecx = MEM32(ebp + (-0x58)); /* 0x361246A0: mov ecx, dword ptr [ebp - 0x58] */ 3255 edx = MEM32(ebp + (-0x54)); /* 0x361246A3: mov edx, dword ptr [ebp - 0x54] */ 3256 MEM32(ebp + (-0x28)) = eax; /* 0x361246A6: mov dword ptr [ebp - 0x28], eax */ 3257 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361246A9: fstp dword ptr [ebp - 0x28] */ 3258 fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x361246AC: fld dword ptr [ebp - 0x7c] */ 3259 MEM32(ebp + (-0x24)) = ecx; /* 0x361246AF: mov dword ptr [ebp - 0x24], ecx */ 3260 _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x361246B2: fadd dword ptr [ebp - 0x24] */ 3261 MEM32(ebp + (-0x20)) = edx; /* 0x361246B5: mov dword ptr [ebp - 0x20], edx */ 3262 ecx = MEM32(ebp + (-0x28)); /* 0x361246B8: mov ecx, dword ptr [ebp - 0x28] */ 3263 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361246BB: fstp dword ptr [ebp - 0x24] */ 3264 fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x361246BE: fld dword ptr [ebp - 0x78] */ 3265 eax = edi; /* 0x361246C1: mov eax, edi */ 3266 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x361246C3: fadd dword ptr [ebp - 0x20] */ 3267 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361246C6: fstp dword ptr [ebp - 0x20] */ 3268 MEM32(eax) = ecx; /* 0x361246C9: mov dword ptr [eax], ecx */ 3269 edx = MEM32(ebp + (-0x24)); /* 0x361246CB: mov edx, dword ptr [ebp - 0x24] */ 3270 MEM32(eax + 0x4) = edx; /* 0x361246CE: mov dword ptr [eax + 4], edx */ 3271 ecx = MEM32(ebp + (-0x20)); /* 0x361246D1: mov ecx, dword ptr [ebp - 0x20] */ 3272 MEM32(eax + 0x8) = ecx; /* 0x361246D4: mov dword ptr [eax + 8], ecx */ 3273 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x361246D7: fld dword ptr [esi + 0x16cc] */ 3274 eax = MEM32(esi + 0x16DC); /* 0x361246DD: mov eax, dword ptr [esi + 0x16dc] */ 3275 edx = eax + eax * 2; /* 0x361246E3: lea edx, [eax + eax*2] */ 3276 eax = esi + 0x1A4; /* 0x361246E6: lea eax, [esi + 0x1a4] */ 3277 ecx = MEM32(eax + edx * 4); /* 0x361246EC: mov ecx, dword ptr [eax + edx*4] */ 3278 eax = eax + edx * 4; /* 0x361246EF: lea eax, [eax + edx*4] */ 3279 MEM32(ebp + (-0xA8)) = ecx; /* 0x361246F2: mov dword ptr [ebp - 0xa8], ecx */ 3280 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x361246F8: fld dword ptr [ebp - 0xa8] */ 3281 edx = MEM32(eax + 0x4); /* 0x361246FE: mov edx, dword ptr [eax + 4] */ 3282 _st[0] *= _st[1]; /* 0x36124701: fmul st(1) */ 3283 MEM32(ebp + (-0xA4)) = edx; /* 0x36124703: mov dword ptr [ebp - 0xa4], edx */ 3284 eax = MEM32(eax + 0x8); /* 0x36124709: mov eax, dword ptr [eax + 8] */ 3285 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x3612470C: fstp dword ptr [ebp - 0xa8] */ 3286 ecx = MEM32(ebp + (-0xA8)); /* 0x36124712: mov ecx, dword ptr [ebp - 0xa8] */ 3287 MEM32(ebp + (-0xA0)) = eax; /* 0x36124718: mov dword ptr [ebp - 0xa0], eax */ 3288 fp_push(_st[0]); /* 0x3612471E: fld st(0) */ 3289 MEM32(ebp + (-0x9C)) = ecx; /* 0x36124720: mov dword ptr [ebp - 0x9c], ecx */ 3290 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA4)); /* 0x36124726: fmul dword ptr [ebp - 0xa4] */ 3291 ecx = MEM32(ebp + (-0xC4)); /* 0x3612472C: mov ecx, dword ptr [ebp - 0xc4] */ 3292 MEM32(ebp + (-0x10C)) = ecx; /* 0x36124732: mov dword ptr [ebp - 0x10c], ecx */ 3293 ecx = ebp + (-0x9C); /* 0x36124738: lea ecx, [ebp - 0x9c] */ 3294 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x3612473E: fstp dword ptr [ebp - 0xa4] */ 3295 edx = MEM32(ebp + (-0xA4)); /* 0x36124744: mov edx, dword ptr [ebp - 0xa4] */ 3296 MEM32(ebp + (-0x98)) = edx; /* 0x3612474A: mov dword ptr [ebp - 0x98], edx */ 3297 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA0)); /* 0x36124750: fmul dword ptr [ebp - 0xa0] */ 3298 edx = MEM32(ebp + (-0xC0)); /* 0x36124756: mov edx, dword ptr [ebp - 0xc0] */ 3299 PUSH32(esp, ecx); /* 0x3612475C: push ecx */ 3300 ecx = ebp + (-0x10C); /* 0x3612475D: lea ecx, [ebp - 0x10c] */ 3301 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36124763: fstp dword ptr [ebp - 0xa0] */ 3302 eax = MEM32(ebp + (-0xA0)); /* 0x36124769: mov eax, dword ptr [ebp - 0xa0] */ 3303 MEM32(ebp + (-0x94)) = eax; /* 0x3612476F: mov dword ptr [ebp - 0x94], eax */ 3304 eax = MEM32(ebp + (-0xBC)); /* 0x36124775: mov eax, dword ptr [ebp - 0xbc] */ 3305 MEM32(ebp + (-0x108)) = edx; /* 0x3612477B: mov dword ptr [ebp - 0x108], edx */ 3306 MEM32(ebp + (-0x104)) = eax; /* 0x36124781: mov dword ptr [ebp - 0x104], eax */ 3307 RECOMP_ICALL(MEM32(0x3617017C)); /* 0x36124787: call dword ptr [0x3617017c] */ 3308 RECOMP_FLAGS_IN(); 3309 edx = MEM32(eax); /* 0x3612478D: mov edx, dword ptr [eax] */ 3310 MEM32(ebp + (-0x68)) = edx; /* 0x3612478F: mov dword ptr [ebp - 0x68], edx */ 3311 ecx = MEM32(eax + 0x4); /* 0x36124792: mov ecx, dword ptr [eax + 4] */ 3312 MEM32(ebp + (-0x64)) = ecx; /* 0x36124795: mov dword ptr [ebp - 0x64], ecx */ 3313 edx = MEM32(eax + 0x8); /* 0x36124798: mov edx, dword ptr [eax + 8] */ 3314 eax = ebp + (-0x68); /* 0x3612479B: lea eax, [ebp - 0x68] */ 3315 PUSH32(esp, eax); /* 0x3612479E: push eax */ 3316 ecx = ebp + (-0x128); /* 0x3612479F: lea ecx, [ebp - 0x128] */ 3317 PUSH32(esp, ecx); /* 0x361247A5: push ecx */ 3318 ecx = ebp + (-0xC4); /* 0x361247A6: lea ecx, [ebp - 0xc4] */ 3319 MEM32(ebp + (-0x60)) = edx; /* 0x361247AC: mov dword ptr [ebp - 0x60], edx */ 3320 RECOMP_ICALL(MEM32(0x36170180)); /* 0x361247AF: call dword ptr [0x36170180] */ 3321 RECOMP_FLAGS_IN(); 3322 fp_push(*(float*)&MEM32(ebp + (-0xB8))); /* 0x361247B5: fld dword ptr [ebp - 0xb8] */ 3323 edx = MEM32(eax); /* 0x361247BB: mov edx, dword ptr [eax] */ 3324 _st[0] += _st[0]; /* 0x361247BD: fadd st(0), st(0) */ 3325 MEM32(ebp + (-0x118)) = edx; /* 0x361247BF: mov dword ptr [ebp - 0x118], edx */ 3326 ecx = MEM32(eax + 0x4); /* 0x361247C5: mov ecx, dword ptr [eax + 4] */ 3327 MEM32(ebp + (-0x114)) = ecx; /* 0x361247C8: mov dword ptr [ebp - 0x114], ecx */ 3328 edx = MEM32(eax + 0x8); /* 0x361247CE: mov edx, dword ptr [eax + 8] */ 3329 PUSH32(esp, ecx); /* 0x361247D1: push ecx */ 3330 ecx = ebp + (-0x68); /* 0x361247D2: lea ecx, [ebp - 0x68] */ 3331 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361247D5: fstp dword ptr [esp] */ 3332 MEM32(ebp + (-0x110)) = edx; /* 0x361247D8: mov dword ptr [ebp - 0x110], edx */ 3333 RECOMP_ICALL(MEM32(0x36170184)); /* 0x361247DE: call dword ptr [0x36170184] */ 3334 RECOMP_FLAGS_IN(); 3335 PUSH32(esp, 0x40000000u); /* 0x361247E4: push 0x40000000 */ 3336 ecx = ebp + (-0x118); /* 0x361247E9: lea ecx, [ebp - 0x118] */ 3337 RECOMP_ICALL(MEM32(0x36170184)); /* 0x361247EF: call dword ptr [0x36170184] */ 3338 RECOMP_FLAGS_IN(); 3339 eax = ebp + (-0x68); /* 0x361247F5: lea eax, [ebp - 0x68] */ 3340 PUSH32(esp, eax); /* 0x361247F8: push eax */ 3341 ecx = ebp + (-0x9C); /* 0x361247F9: lea ecx, [ebp - 0x9c] */ 3342 RECOMP_ICALL(MEM32(0x36170178)); /* 0x361247FF: call dword ptr [0x36170178] */ 3343 RECOMP_FLAGS_IN(); 3344 ecx = ebp + (-0x118); /* 0x36124805: lea ecx, [ebp - 0x118] */ 3345 PUSH32(esp, ecx); /* 0x3612480B: push ecx */ 3346 ecx = ebp + (-0x9C); /* 0x3612480C: lea ecx, [ebp - 0x9c] */ 3347 RECOMP_ICALL(MEM32(0x36170178)); /* 0x36124812: call dword ptr [0x36170178] */ 3348 RECOMP_FLAGS_IN(); 3349 eax = MEM32(ebp + (-0x9C)); /* 0x36124818: mov eax, dword ptr [ebp - 0x9c] */ 3350 edx = edi + (-0x600); /* 0x3612481E: lea edx, [edi - 0x600] */ 3351 MEM32(edx) = eax; /* 0x36124824: mov dword ptr [edx], eax */ 3352 ecx = MEM32(ebp + (-0x98)); /* 0x36124826: mov ecx, dword ptr [ebp - 0x98] */ 3353 MEM32(edx + 0x4) = ecx; /* 0x3612482C: mov dword ptr [edx + 4], ecx */ 3354 eax = MEM32(ebp + (-0x94)); /* 0x3612482F: mov eax, dword ptr [ebp - 0x94] */ 3355 MEM32(edx + 0x8) = eax; /* 0x36124835: mov dword ptr [edx + 8], eax */ 3356 ecx = MEM32(esi + 0x16DC); /* 0x36124838: mov ecx, dword ptr [esi + 0x16dc] */ 3357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3358 ecx = ecx + 1; /* 0x3612483E: inc ecx */ 3359 _flag_k = FK_INC; 3360 eax = ecx; /* 0x3612483F: mov eax, ecx */ 3361 /* cmp eax, 0x1Eu */ /* 0x36124841: cmp eax, 0x1e */ 3362 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 3363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3364 _flag_k = FK_CMP; 3365 MEM32(esi + 0x16DC) = ecx; /* 0x36124844: mov dword ptr [esi + 0x16dc], ecx */ 3366 if (CMP_L(_flag_a, _flag_b)) goto L_36124856; /* 0x3612484A: jl 0x36124856 */ 3367 L_3612484C: 3368 MEM32(esi + 0x16DC) = 0; /* 0x3612484C: mov dword ptr [esi + 0x16dc], 0 */ 3369 L_36124856: 3370 fp_push(*(float*)&MEM32(esi + 0x16C0)); /* 0x36124856: fld dword ptr [esi + 0x16c0] */ 3371 ecx = MEM32(ebp + (-0x8)); /* 0x3612485C: mov ecx, dword ptr [ebp - 8] */ 3372 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x3612485F: fadd dword ptr [esi + 0xc] */ 3373 eax = MEM32(ebp + (-0x4)); /* 0x36124862: mov eax, dword ptr [ebp - 4] */ 3374 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x36124865: fstp dword ptr [ecx] */ 3375 ecx = MEM32(ebp + (-0xC)); /* 0x36124867: mov ecx, dword ptr [ebp - 0xc] */ 3376 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3377 ecx = ecx + 1; /* 0x3612486A: inc ecx */ 3378 _flag_k = FK_INC; 3379 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3380 eax = eax - 1; /* 0x3612486B: dec eax */ 3381 _flag_k = FK_DEC; 3382 MEM32(ebp + (-0xC)) = ecx; /* 0x3612486C: mov dword ptr [ebp - 0xc], ecx */ 3383 MEM32(ebp + (-0x4)) = eax; /* 0x3612486F: mov dword ptr [ebp - 4], eax */ 3384 goto L_3612487C; /* 0x36124872: jmp 0x3612487c */ 3385 L_36124874: 3386 edx = MEM32(esi + 0x38); /* 0x36124874: mov edx, dword ptr [esi + 0x38] */ 3387 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x36124877: mov byte ptr [edx + ebx + 0x1c], 0 */ 3388 L_3612487C: 3389 edx = MEM32(ebp + (-0x8)); /* 0x3612487C: mov edx, dword ptr [ebp - 8] */ 3390 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 3391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3392 edx = edx + 4; /* 0x3612487F: add edx, 4 */ 3393 _flag_k = FK_ADD; 3394 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 3395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3396 ebx = ebx + 0x20u; /* 0x36124882: add ebx, 0x20 */ 3397 _flag_k = FK_ADD; 3398 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 3399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3400 edi = edi + 0xCu; /* 0x36124885: add edi, 0xc */ 3401 _flag_k = FK_ADD; 3402 /* cmp ebx, 0x1000u */ /* 0x36124888: cmp ebx, 0x1000 */ 3403 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 3404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3405 _flag_k = FK_CMP; 3406 MEM32(ebp + (-0x8)) = edx; /* 0x3612488E: mov dword ptr [ebp - 8], edx */ 3407 RECOMP_BACKEDGE(); 3408 if (CMP_L(_flag_a, _flag_b)) goto L_3612441B; /* 0x36124891: jl 0x3612441b */ 3409 L_36124897: 3410 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36124897: mov al, byte ptr [esi + 0x163c] */ 3411 /* test LO8(eax), LO8(eax) */ /* 0x3612489D: test al, al */ 3412 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3413 _cf = 0; 3414 _flag_k = FK_NARROW(FK_TEST, 24); 3415 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612489F: je 0x361275ac */ 3416 L_361248A5: 3417 eax = MEM32(ebp + (-0xC)); /* 0x361248A5: mov eax, dword ptr [ebp - 0xc] */ 3418 /* test eax, eax */ /* 0x361248A8: test eax, eax */ 3419 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3420 _cf = 0; 3421 _flag_k = FK_TEST; 3422 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x361248AA: jne 0x361275ac */ 3423 L_361248B0: 3424 goto L_361275A8; /* 0x361248B0: jmp 0x361275a8 */ 3425 L_361275A8: 3426 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 3427 L_361275AC: 3428 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 3429 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 3430 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3431 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 3432 _flag_k = FK_ADD; 3433 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 3434 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3435 _cf = 0; 3436 _flag_k = FK_TEST; 3437 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 3438 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 3439 L_361275B7: 3440 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 3441 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 3442 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 3443 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 3444 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 3445 RECOMP_FLAGS_IN(); 3446 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 3447 PUSH32(esp, eax); /* 0x361275CD: push eax */ 3448 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 3449 RECOMP_FLAGS_IN(); 3450 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 3451 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 3452 RECOMP_FLAGS_IN(); 3453 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 3454 PUSH32(esp, eax); /* 0x361275E2: push eax */ 3455 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 3456 RECOMP_FLAGS_IN(); 3457 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 3458 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 3459 RECOMP_FLAGS_IN(); 3460 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 3461 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3462 _cf = (LO8(eax)) != 0; 3463 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 3464 _flag_k = FK_NARROW(FK_CMP, 24); 3465 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 3466 eax = _sc ? 0xFFFFFFFFu : 0; 3467 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3468 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3470 eax = eax + 1; /* 0x361275F6: inc eax */ 3471 _flag_k = FK_INC; 3472 PUSH32(esp, eax); /* 0x361275F7: push eax */ 3473 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 3474 RECOMP_FLAGS_IN(); 3475 L_361275FE: 3476 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 3477 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 3478 esp = ebp; /* 0x36127600: mov esp, ebp */ 3479 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 3480 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 3481 RECOMP_REGS_OUT(); 3482 } 3483 3484 void sub_361248D6(void) { 3485 int _fpu_cmp = 0; 3486 uint32_t _cf = 0; 3487 int _df = 1; 3488 uint32_t _flag_k = FK_NONE; 3489 uint32_t _flag_a = 0, _flag_b = 0; 3490 uint32_t _itail_tgt = 0; 3491 RECOMP_REGS_LOCALS 3492 RECOMP_ENTER(0x361248D6u); 3493 3494 L_361248D6: 3495 edx = MEM32(ebp + (-0x8)); /* 0x361248D6: mov edx, dword ptr [ebp - 8] */ 3496 fp_push(*(float*)&MEM32(edx)); /* 0x361248D9: fld dword ptr [edx] */ 3497 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x361248DB: fcomp dword ptr [ebp - 0x18] */ 3498 fp_pop(); 3499 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361248DE: fnstsw ax */ 3500 /* test HI8(eax), 0x41u */ /* 0x361248E0: test ah, 0x41 */ 3501 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3502 _cf = 0; 3503 _flag_k = FK_NARROW(FK_TEST, 24); 3504 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612498D; /* 0x361248E3: jne 0x3612498d */ 3505 L_361248E9: 3506 ecx = MEM32(esi + 0x38); /* 0x361248E9: mov ecx, dword ptr [esi + 0x38] */ 3507 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361248EC: fld dword ptr [ebp - 0x18] */ 3508 eax = ebx; /* 0x361248EF: mov eax, ebx */ 3509 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3511 eax = eax + ecx; /* 0x361248F1: add eax, ecx */ 3512 _flag_k = FK_ADD; 3513 ecx = edi; /* 0x361248F3: mov ecx, edi */ 3514 edx = MEM32(ecx); /* 0x361248F5: mov edx, dword ptr [ecx] */ 3515 MEM32(eax) = edx; /* 0x361248F7: mov dword ptr [eax], edx */ 3516 edx = MEM32(ecx + 0x4); /* 0x361248F9: mov edx, dword ptr [ecx + 4] */ 3517 MEM32(eax + 0x4) = edx; /* 0x361248FC: mov dword ptr [eax + 4], edx */ 3518 ecx = MEM32(ecx + 0x8); /* 0x361248FF: mov ecx, dword ptr [ecx + 8] */ 3519 edx = MEM32(ebp + (-0x8)); /* 0x36124902: mov edx, dword ptr [ebp - 8] */ 3520 MEM32(eax + 0x8) = ecx; /* 0x36124905: mov dword ptr [eax + 8], ecx */ 3521 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124908: fadd dword ptr [esi + 0x16c0] */ 3522 eax = MEM32(esi + 0x38); /* 0x3612490E: mov eax, dword ptr [esi + 0x38] */ 3523 _st[0] -= (double)*(float*)ADDR(edx); /* 0x36124911: fsub dword ptr [edx] */ 3524 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124913: fdiv dword ptr [esi + 0x16c0] */ 3525 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36124919: fst dword ptr [ebp - 4] */ 3526 _st[0] += _st[0]; /* 0x3612491C: fadd st(0), st(0) */ 3527 edx = MEM32(ebp + (-0x4)); /* 0x3612491E: mov edx, dword ptr [ebp - 4] */ 3528 PUSH32(esp, edx); /* 0x36124921: push edx */ 3529 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36124922: fsubr dword ptr [0x36170380] */ 3530 fp_push(_st[0]); /* 0x36124928: fld st(0) */ 3531 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3612492A: fmulp st(1) */ 3532 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3612492C: fsubr dword ptr [0x36170380] */ 3533 fp_push(_st[0]); /* 0x36124932: fld st(0) */ 3534 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36124934: fmul dword ptr [esi + 0x16c8] */ 3535 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x3612493A: fstp dword ptr [ebx + eax + 0xc] */ 3536 ecx = MEM32(esi + 0x38); /* 0x3612493E: mov ecx, dword ptr [esi + 0x38] */ 3537 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36124941: fmul dword ptr [esi + 0x16c8] */ 3538 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x36124947: fstp dword ptr [ebx + ecx + 0x10] */ 3539 ecx = esi + 0x168C; /* 0x3612494B: lea ecx, [esi + 0x168c] */ 3540 RECOMP_ICALL(0x36137D80u); /* 0x36124951: call 0x36137d80 */ /* not lifted */ 3541 RECOMP_FLAGS_IN(); 3542 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36124956: fld dword ptr [ebp - 4] */ 3543 ecx = MEM32(esi + 0x38); /* 0x36124959: mov ecx, dword ptr [esi + 0x38] */ 3544 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x3612495C: fmul dword ptr [0x36177750] */ 3545 MEM32(ebx + ecx + 0x14) = eax; /* 0x36124962: mov dword ptr [ebx + ecx + 0x14], eax */ 3546 RECOMP_ICALL(0x3615FD8Cu); /* 0x36124966: call 0x3615fd8c */ /* not lifted */ 3547 RECOMP_FLAGS_IN(); 3548 edx = 0xFu; /* 0x3612496B: mov edx, 0xf */ 3549 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3551 edx = edx - eax; /* 0x36124970: sub edx, eax */ 3552 _flag_k = FK_CMP; 3553 eax = MEM32(esi + 0x38); /* 0x36124972: mov eax, dword ptr [esi + 0x38] */ 3554 MEM32(ebx + eax + 0x18) = edx; /* 0x36124975: mov dword ptr [ebx + eax + 0x18], edx */ 3555 eax = MEM32(ebp + (-0xC)); /* 0x36124979: mov eax, dword ptr [ebp - 0xc] */ 3556 ecx = MEM32(esi + 0x38); /* 0x3612497C: mov ecx, dword ptr [esi + 0x38] */ 3557 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3558 eax = eax + 1; /* 0x3612497F: inc eax */ 3559 _flag_k = FK_INC; 3560 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x36124980: mov byte ptr [ebx + ecx + 0x1c], 1 */ 3561 MEM32(ebp + (-0xC)) = eax; /* 0x36124985: mov dword ptr [ebp - 0xc], eax */ 3562 goto L_36124BD1; /* 0x36124988: jmp 0x36124bd1 */ 3563 L_3612498D: 3564 eax = MEM32(ebp + (-0x1C)); /* 0x3612498D: mov eax, dword ptr [ebp - 0x1c] */ 3565 /* test eax, eax */ /* 0x36124990: test eax, eax */ 3566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3567 _cf = 0; 3568 _flag_k = FK_TEST; 3569 if (TEST_Z(_flag_a, _flag_b)) goto L_36124BC9; /* 0x36124992: je 0x36124bc9 */ 3570 L_36124998: 3571 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36124998: mov al, byte ptr [esi + 0x163c] */ 3572 /* test LO8(eax), LO8(eax) */ /* 0x3612499E: test al, al */ 3573 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3574 _cf = 0; 3575 _flag_k = FK_NARROW(FK_TEST, 24); 3576 if (TEST_NZ(_flag_a, _flag_b)) goto L_36124BC9; /* 0x361249A0: jne 0x36124bc9 */ 3577 L_361249A6: 3578 RECOMP_ICALL(0x360F7B00u); /* 0x361249A6: call 0x360f7b00 */ /* not lifted */ 3579 RECOMP_FLAGS_IN(); 3580 edx = MEM32(esi + 0x28); /* 0x361249AB: mov edx, dword ptr [esi + 0x28] */ 3581 PUSH32(esp, edx); /* 0x361249AE: push edx */ 3582 ecx = eax; /* 0x361249AF: mov ecx, eax */ 3583 RECOMP_ICALL(0x360FBF90u); /* 0x361249B1: call 0x360fbf90 */ /* not lifted */ 3584 RECOMP_FLAGS_IN(); 3585 /* test eax, eax */ /* 0x361249B6: test eax, eax */ 3586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3587 _cf = 0; 3588 _flag_k = FK_TEST; 3589 MEM32(ebp + (-0x4)) = eax; /* 0x361249B8: mov dword ptr [ebp - 4], eax */ 3590 if (TEST_Z(_flag_a, _flag_b)) goto L_36124BBF; /* 0x361249BB: je 0x36124bbf */ 3591 L_361249C1: 3592 ecx = MEM32(ebp + (-0x4)); /* 0x361249C1: mov ecx, dword ptr [ebp - 4] */ 3593 eax = ebp + (-0x420); /* 0x361249C4: lea eax, [ebp - 0x420] */ 3594 PUSH32(esp, eax); /* 0x361249CA: push eax */ 3595 RECOMP_ICALL(0x36131BB0u); /* 0x361249CB: call 0x36131bb0 */ /* not lifted */ 3596 RECOMP_FLAGS_IN(); 3597 ecx = MEM32(eax); /* 0x361249D0: mov ecx, dword ptr [eax] */ 3598 edx = MEM32(eax + 0x4); /* 0x361249D2: mov edx, dword ptr [eax + 4] */ 3599 eax = MEM32(eax + 0x8); /* 0x361249D5: mov eax, dword ptr [eax + 8] */ 3600 MEM32(ebp + (-0x80)) = ecx; /* 0x361249D8: mov dword ptr [ebp - 0x80], ecx */ 3601 ecx = ebp + (-0x15C); /* 0x361249DB: lea ecx, [ebp - 0x15c] */ 3602 PUSH32(esp, ecx); /* 0x361249E1: push ecx */ 3603 ecx = MEM32(ebp + (-0x4)); /* 0x361249E2: mov ecx, dword ptr [ebp - 4] */ 3604 MEM32(ebp + (-0x7C)) = edx; /* 0x361249E5: mov dword ptr [ebp - 0x7c], edx */ 3605 MEM32(ebp + (-0x78)) = eax; /* 0x361249E8: mov dword ptr [ebp - 0x78], eax */ 3606 RECOMP_ICALL(0x36131C00u); /* 0x361249EB: call 0x36131c00 */ /* not lifted */ 3607 RECOMP_FLAGS_IN(); 3608 edx = MEM32(eax); /* 0x361249F0: mov edx, dword ptr [eax] */ 3609 ecx = MEM32(eax + 0x4); /* 0x361249F2: mov ecx, dword ptr [eax + 4] */ 3610 MEM32(ebp + (-0x5C)) = edx; /* 0x361249F5: mov dword ptr [ebp - 0x5c], edx */ 3611 edx = MEM32(eax + 0x8); /* 0x361249F8: mov edx, dword ptr [eax + 8] */ 3612 eax = ebp + (-0x68); /* 0x361249FB: lea eax, [ebp - 0x68] */ 3613 PUSH32(esp, eax); /* 0x361249FE: push eax */ 3614 MEM32(ebp + (-0x58)) = ecx; /* 0x361249FF: mov dword ptr [ebp - 0x58], ecx */ 3615 MEM32(ebp + (-0x54)) = edx; /* 0x36124A02: mov dword ptr [ebp - 0x54], edx */ 3616 MEM32(ebp + (-0x68)) = 0; /* 0x36124A05: mov dword ptr [ebp - 0x68], 0 */ 3617 MEM32(ebp + (-0x64)) = 0; /* 0x36124A0C: mov dword ptr [ebp - 0x64], 0 */ 3618 MEM32(ebp + (-0x60)) = 0; /* 0x36124A13: mov dword ptr [ebp - 0x60], 0 */ 3619 RECOMP_ICALL(0x360FCBF0u); /* 0x36124A1A: call 0x360fcbf0 */ /* not lifted */ 3620 RECOMP_FLAGS_IN(); 3621 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3622 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3623 esp = esp + 4; /* 0x36124A1F: add esp, 4 */ 3624 _flag_k = FK_ADD; 3625 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36124A22: call dword ptr [0x3616f254] */ 3626 RECOMP_FLAGS_IN(); 3627 ecx = MEM32(ebp + (-0x68)); /* 0x36124A28: mov ecx, dword ptr [ebp - 0x68] */ 3628 edx = MEM32(ebp + (-0x64)); /* 0x36124A2B: mov edx, dword ptr [ebp - 0x64] */ 3629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 3630 eax = eax & 0x7FFFu; /* 0x36124A2E: and eax, 0x7fff */ 3631 _cf = 0; 3632 _flag_k = FK_TEST; 3633 MEM32(ebp + (-0x84)) = eax; /* 0x36124A33: mov dword ptr [ebp - 0x84], eax */ 3634 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x36124A39: fild dword ptr [ebp - 0x84] */ 3635 eax = MEM32(ebp + (-0x60)); /* 0x36124A3F: mov eax, dword ptr [ebp - 0x60] */ 3636 MEM32(ebp + (-0x74)) = ecx; /* 0x36124A42: mov dword ptr [ebp - 0x74], ecx */ 3637 ecx = MEM32(ebp + (-0x80)); /* 0x36124A45: mov ecx, dword ptr [ebp - 0x80] */ 3638 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36124A48: fmul dword ptr [0x36175f2c] */ 3639 MEM32(ebp + (-0x70)) = edx; /* 0x36124A4E: mov dword ptr [ebp - 0x70], edx */ 3640 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x36124A51: fld dword ptr [esi + 0x16cc] */ 3641 edx = MEM32(ebp + (-0x7C)); /* 0x36124A57: mov edx, dword ptr [ebp - 0x7c] */ 3642 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36124A5A: fld dword ptr [ebp - 0x68] */ 3643 MEM32(ebp + (-0x6C)) = eax; /* 0x36124A5D: mov dword ptr [ebp - 0x6c], eax */ 3644 _st[0] *= _st[1]; /* 0x36124A60: fmul st(1) */ 3645 eax = MEM32(ebp + (-0x78)); /* 0x36124A62: mov eax, dword ptr [ebp - 0x78] */ 3646 MEM32(ebp + (-0x28)) = ecx; /* 0x36124A65: mov dword ptr [ebp - 0x28], ecx */ 3647 ecx = MEM32(ebp + (-0x5C)); /* 0x36124A68: mov ecx, dword ptr [ebp - 0x5c] */ 3648 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36124A6B: fstp dword ptr [ebp - 0x74] */ 3649 MEM32(ebp + (-0x24)) = edx; /* 0x36124A6E: mov dword ptr [ebp - 0x24], edx */ 3650 edx = MEM32(ebp + (-0x58)); /* 0x36124A71: mov edx, dword ptr [ebp - 0x58] */ 3651 fp_push(_st[0]); /* 0x36124A74: fld st(0) */ 3652 MEM32(ebp + (-0x20)) = eax; /* 0x36124A76: mov dword ptr [ebp - 0x20], eax */ 3653 _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x36124A79: fmul dword ptr [ebp - 0x70] */ 3654 eax = MEM32(ebp + (-0x54)); /* 0x36124A7C: mov eax, dword ptr [ebp - 0x54] */ 3655 MEM32(ebp + (-0x38)) = ecx; /* 0x36124A7F: mov dword ptr [ebp - 0x38], ecx */ 3656 MEM32(ebp + (-0x34)) = edx; /* 0x36124A82: mov dword ptr [ebp - 0x34], edx */ 3657 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36124A85: fstp dword ptr [ebp - 0x70] */ 3658 MEM32(ebp + (-0x30)) = eax; /* 0x36124A88: mov dword ptr [ebp - 0x30], eax */ 3659 _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x36124A8B: fmul dword ptr [ebp - 0x6c] */ 3660 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36124A8E: fstp dword ptr [ebp - 0x6c] */ 3661 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36124A91: fld dword ptr [0x36170380] */ 3662 _st[0] -= _st[1]; /* 0x36124A97: fsub st(1) */ 3663 fp_push(_st[0]); /* 0x36124A99: fld st(0) */ 3664 _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36124A9B: fmul dword ptr [ebp - 0x80] */ 3665 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36124A9E: fstp dword ptr [ebp - 0x28] */ 3666 fp_push(_st[0]); /* 0x36124AA1: fld st(0) */ 3667 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36124AA3: fmul dword ptr [ebp - 0x24] */ 3668 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36124AA6: fstp dword ptr [ebp - 0x24] */ 3669 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36124AA9: fmul dword ptr [ebp - 0x20] */ 3670 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36124AAC: fstp dword ptr [ebp - 0x20] */ 3671 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36124AAF: fld dword ptr [ebp - 0x5c] */ 3672 _st[0] *= _st[1]; /* 0x36124AB2: fmul st(1) */ 3673 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36124AB4: fstp dword ptr [ebp - 0x38] */ 3674 ecx = MEM32(ebp + (-0x38)); /* 0x36124AB7: mov ecx, dword ptr [ebp - 0x38] */ 3675 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36124ABA: fld dword ptr [ebp - 0x34] */ 3676 _st[0] *= _st[1]; /* 0x36124ABD: fmul st(1) */ 3677 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36124ABF: fstp dword ptr [ebp - 0x34] */ 3678 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36124AC2: fld dword ptr [ebp - 0x30] */ 3679 _st[0] *= _st[1]; /* 0x36124AC5: fmul st(1) */ 3680 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36124AC7: fstp dword ptr [ebp - 0x30] */ 3681 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36124ACA: fstp st(0) */ 3682 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x36124ACC: fld dword ptr [ebp - 0x38] */ 3683 edx = MEM32(ebp + (-0x34)); /* 0x36124ACF: mov edx, dword ptr [ebp - 0x34] */ 3684 _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36124AD2: fadd dword ptr [ebp - 0x28] */ 3685 eax = MEM32(ebp + (-0x30)); /* 0x36124AD5: mov eax, dword ptr [ebp - 0x30] */ 3686 MEM32(ebp + (-0x44)) = ecx; /* 0x36124AD8: mov dword ptr [ebp - 0x44], ecx */ 3687 MEM32(ebp + (-0x40)) = edx; /* 0x36124ADB: mov dword ptr [ebp - 0x40], edx */ 3688 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36124ADE: fstp dword ptr [ebp - 0x44] */ 3689 ecx = MEM32(ebp + (-0x44)); /* 0x36124AE1: mov ecx, dword ptr [ebp - 0x44] */ 3690 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36124AE4: fld dword ptr [ebp - 0x40] */ 3691 MEM32(ebp + (-0x3C)) = eax; /* 0x36124AE7: mov dword ptr [ebp - 0x3c], eax */ 3692 _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36124AEA: fadd dword ptr [ebp - 0x24] */ 3693 MEM32(ebp + (-0xB4)) = ecx; /* 0x36124AED: mov dword ptr [ebp - 0xb4], ecx */ 3694 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36124AF3: fstp dword ptr [ebp - 0x40] */ 3695 edx = MEM32(ebp + (-0x40)); /* 0x36124AF6: mov edx, dword ptr [ebp - 0x40] */ 3696 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36124AF9: fld dword ptr [ebp - 0x3c] */ 3697 MEM32(ebp + (-0xB0)) = edx; /* 0x36124AFC: mov dword ptr [ebp - 0xb0], edx */ 3698 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36124B02: fadd dword ptr [ebp - 0x20] */ 3699 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36124B05: fstp dword ptr [ebp - 0x3c] */ 3700 eax = MEM32(ebp + (-0x3C)); /* 0x36124B08: mov eax, dword ptr [ebp - 0x3c] */ 3701 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36124B0B: fld dword ptr [ebp - 0x44] */ 3702 MEM32(ebp + (-0xAC)) = eax; /* 0x36124B0E: mov dword ptr [ebp - 0xac], eax */ 3703 _st[0] += (double)*(float*)ADDR(ebp + (-0x74)); /* 0x36124B14: fadd dword ptr [ebp - 0x74] */ 3704 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x36124B17: fstp dword ptr [ebp - 0xb4] */ 3705 eax = MEM32(ebp + (-0xB4)); /* 0x36124B1D: mov eax, dword ptr [ebp - 0xb4] */ 3706 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36124B23: fld dword ptr [ebp - 0xb0] */ 3707 _st[0] += (double)*(float*)ADDR(ebp + (-0x70)); /* 0x36124B29: fadd dword ptr [ebp - 0x70] */ 3708 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x36124B2C: fstp dword ptr [ebp - 0xb0] */ 3709 ecx = MEM32(ebp + (-0xB0)); /* 0x36124B32: mov ecx, dword ptr [ebp - 0xb0] */ 3710 fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x36124B38: fld dword ptr [ebp - 0xac] */ 3711 _st[0] += (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x36124B3E: fadd dword ptr [ebp - 0x6c] */ 3712 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x36124B41: fstp dword ptr [ebp - 0xac] */ 3713 edx = MEM32(ebp + (-0xAC)); /* 0x36124B47: mov edx, dword ptr [ebp - 0xac] */ 3714 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36124B4D: fld dword ptr [ebp - 0x18] */ 3715 MEM32(ebp + (-0xEC)) = edx; /* 0x36124B50: mov dword ptr [ebp - 0xec], edx */ 3716 edx = edi; /* 0x36124B56: mov edx, edi */ 3717 MEM32(edx) = eax; /* 0x36124B58: mov dword ptr [edx], eax */ 3718 MEM32(edx + 0x4) = ecx; /* 0x36124B5A: mov dword ptr [edx + 4], ecx */ 3719 eax = MEM32(ebp + (-0xEC)); /* 0x36124B5D: mov eax, dword ptr [ebp - 0xec] */ 3720 MEM32(edx + 0x8) = eax; /* 0x36124B63: mov dword ptr [edx + 8], eax */ 3721 MEM32(ebp + (-0x90)) = 0; /* 0x36124B66: mov dword ptr [ebp - 0x90], 0 */ 3722 edx = MEM32(ebp + (-0x90)); /* 0x36124B70: mov edx, dword ptr [ebp - 0x90] */ 3723 MEM32(ebp + (-0x8C)) = 0; /* 0x36124B76: mov dword ptr [ebp - 0x8c], 0 */ 3724 MEM32(ebp + (-0x88)) = 0; /* 0x36124B80: mov dword ptr [ebp - 0x88], 0 */ 3725 ecx = edi + (-0x600); /* 0x36124B8A: lea ecx, [edi - 0x600] */ 3726 MEM32(ecx) = edx; /* 0x36124B90: mov dword ptr [ecx], edx */ 3727 eax = MEM32(ebp + (-0x8C)); /* 0x36124B92: mov eax, dword ptr [ebp - 0x8c] */ 3728 MEM32(ecx + 0x4) = eax; /* 0x36124B98: mov dword ptr [ecx + 4], eax */ 3729 edx = MEM32(ebp + (-0x88)); /* 0x36124B9B: mov edx, dword ptr [ebp - 0x88] */ 3730 eax = MEM32(ebp + (-0x8)); /* 0x36124BA1: mov eax, dword ptr [ebp - 8] */ 3731 MEM32(ecx + 0x8) = edx; /* 0x36124BA4: mov dword ptr [ecx + 8], edx */ 3732 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124BA7: fadd dword ptr [esi + 0x16c0] */ 3733 ecx = MEM32(ebp + (-0xC)); /* 0x36124BAD: mov ecx, dword ptr [ebp - 0xc] */ 3734 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3735 ecx = ecx + 1; /* 0x36124BB0: inc ecx */ 3736 _flag_k = FK_INC; 3737 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36124BB1: fstp dword ptr [eax] */ 3738 eax = MEM32(ebp + (-0x1C)); /* 0x36124BB3: mov eax, dword ptr [ebp - 0x1c] */ 3739 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3740 eax = eax - 1; /* 0x36124BB6: dec eax */ 3741 _flag_k = FK_DEC; 3742 MEM32(ebp + (-0xC)) = ecx; /* 0x36124BB7: mov dword ptr [ebp - 0xc], ecx */ 3743 MEM32(ebp + (-0x1C)) = eax; /* 0x36124BBA: mov dword ptr [ebp - 0x1c], eax */ 3744 goto L_36124BD1; /* 0x36124BBD: jmp 0x36124bd1 */ 3745 L_36124BBF: 3746 ecx = MEM32(esi + 0x38); /* 0x36124BBF: mov ecx, dword ptr [esi + 0x38] */ 3747 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x36124BC2: mov byte ptr [ecx + ebx + 0x1c], 0 */ 3748 goto L_36124BD1; /* 0x36124BC7: jmp 0x36124bd1 */ 3749 L_36124BC9: 3750 edx = MEM32(esi + 0x38); /* 0x36124BC9: mov edx, dword ptr [esi + 0x38] */ 3751 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x36124BCC: mov byte ptr [edx + ebx + 0x1c], 0 */ 3752 L_36124BD1: 3753 edx = MEM32(ebp + (-0x8)); /* 0x36124BD1: mov edx, dword ptr [ebp - 8] */ 3754 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 3755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3756 edx = edx + 4; /* 0x36124BD4: add edx, 4 */ 3757 _flag_k = FK_ADD; 3758 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 3759 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3760 ebx = ebx + 0x20u; /* 0x36124BD7: add ebx, 0x20 */ 3761 _flag_k = FK_ADD; 3762 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 3763 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3764 edi = edi + 0xCu; /* 0x36124BDA: add edi, 0xc */ 3765 _flag_k = FK_ADD; 3766 /* cmp ebx, 0x1000u */ /* 0x36124BDD: cmp ebx, 0x1000 */ 3767 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 3768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3769 _flag_k = FK_CMP; 3770 MEM32(ebp + (-0x8)) = edx; /* 0x36124BE3: mov dword ptr [ebp - 8], edx */ 3771 RECOMP_BACKEDGE(); 3772 if (CMP_L(_flag_a, _flag_b)) goto L_361248D6; /* 0x36124BE6: jl 0x361248d6 */ 3773 L_36124BEC: 3774 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36124BEC: mov al, byte ptr [esi + 0x163c] */ 3775 /* test LO8(eax), LO8(eax) */ /* 0x36124BF2: test al, al */ 3776 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3777 _cf = 0; 3778 _flag_k = FK_NARROW(FK_TEST, 24); 3779 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36124BF4: je 0x361275ac */ 3780 L_36124BFA: 3781 eax = MEM32(ebp + (-0xC)); /* 0x36124BFA: mov eax, dword ptr [ebp - 0xc] */ 3782 /* test eax, eax */ /* 0x36124BFD: test eax, eax */ 3783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3784 _cf = 0; 3785 _flag_k = FK_TEST; 3786 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36124BFF: jne 0x361275ac */ 3787 L_36124C05: 3788 goto L_361275A8; /* 0x36124C05: jmp 0x361275a8 */ 3789 L_361275A8: 3790 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 3791 L_361275AC: 3792 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 3793 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 3794 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3795 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 3796 _flag_k = FK_ADD; 3797 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 3798 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3799 _cf = 0; 3800 _flag_k = FK_TEST; 3801 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 3802 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 3803 L_361275B7: 3804 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 3805 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 3806 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 3807 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 3808 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 3809 RECOMP_FLAGS_IN(); 3810 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 3811 PUSH32(esp, eax); /* 0x361275CD: push eax */ 3812 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 3813 RECOMP_FLAGS_IN(); 3814 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 3815 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 3816 RECOMP_FLAGS_IN(); 3817 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 3818 PUSH32(esp, eax); /* 0x361275E2: push eax */ 3819 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 3820 RECOMP_FLAGS_IN(); 3821 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 3822 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 3823 RECOMP_FLAGS_IN(); 3824 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 3825 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3826 _cf = (LO8(eax)) != 0; 3827 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 3828 _flag_k = FK_NARROW(FK_CMP, 24); 3829 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 3830 eax = _sc ? 0xFFFFFFFFu : 0; 3831 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3832 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3833 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3834 eax = eax + 1; /* 0x361275F6: inc eax */ 3835 _flag_k = FK_INC; 3836 PUSH32(esp, eax); /* 0x361275F7: push eax */ 3837 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 3838 RECOMP_FLAGS_IN(); 3839 L_361275FE: 3840 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 3841 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 3842 esp = ebp; /* 0x36127600: mov esp, ebp */ 3843 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 3844 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 3845 RECOMP_REGS_OUT(); 3846 } 3847 3848 void sub_36124BD1(void) { 3849 int _fpu_cmp = 0; 3850 uint32_t _cf = 0; 3851 int _df = 1; 3852 uint32_t _flag_k = FK_NONE; 3853 uint32_t _flag_a = 0, _flag_b = 0; 3854 uint32_t _itail_tgt = 0; 3855 RECOMP_REGS_LOCALS 3856 RECOMP_ENTER(0x36124BD1u); 3857 3858 goto L_36124BD1; 3859 L_361248D6: 3860 edx = MEM32(ebp + (-0x8)); /* 0x361248D6: mov edx, dword ptr [ebp - 8] */ 3861 fp_push(*(float*)&MEM32(edx)); /* 0x361248D9: fld dword ptr [edx] */ 3862 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x361248DB: fcomp dword ptr [ebp - 0x18] */ 3863 fp_pop(); 3864 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361248DE: fnstsw ax */ 3865 /* test HI8(eax), 0x41u */ /* 0x361248E0: test ah, 0x41 */ 3866 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3867 _cf = 0; 3868 _flag_k = FK_NARROW(FK_TEST, 24); 3869 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612498D; /* 0x361248E3: jne 0x3612498d */ 3870 L_361248E9: 3871 ecx = MEM32(esi + 0x38); /* 0x361248E9: mov ecx, dword ptr [esi + 0x38] */ 3872 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361248EC: fld dword ptr [ebp - 0x18] */ 3873 eax = ebx; /* 0x361248EF: mov eax, ebx */ 3874 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3876 eax = eax + ecx; /* 0x361248F1: add eax, ecx */ 3877 _flag_k = FK_ADD; 3878 ecx = edi; /* 0x361248F3: mov ecx, edi */ 3879 edx = MEM32(ecx); /* 0x361248F5: mov edx, dword ptr [ecx] */ 3880 MEM32(eax) = edx; /* 0x361248F7: mov dword ptr [eax], edx */ 3881 edx = MEM32(ecx + 0x4); /* 0x361248F9: mov edx, dword ptr [ecx + 4] */ 3882 MEM32(eax + 0x4) = edx; /* 0x361248FC: mov dword ptr [eax + 4], edx */ 3883 ecx = MEM32(ecx + 0x8); /* 0x361248FF: mov ecx, dword ptr [ecx + 8] */ 3884 edx = MEM32(ebp + (-0x8)); /* 0x36124902: mov edx, dword ptr [ebp - 8] */ 3885 MEM32(eax + 0x8) = ecx; /* 0x36124905: mov dword ptr [eax + 8], ecx */ 3886 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124908: fadd dword ptr [esi + 0x16c0] */ 3887 eax = MEM32(esi + 0x38); /* 0x3612490E: mov eax, dword ptr [esi + 0x38] */ 3888 _st[0] -= (double)*(float*)ADDR(edx); /* 0x36124911: fsub dword ptr [edx] */ 3889 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124913: fdiv dword ptr [esi + 0x16c0] */ 3890 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36124919: fst dword ptr [ebp - 4] */ 3891 _st[0] += _st[0]; /* 0x3612491C: fadd st(0), st(0) */ 3892 edx = MEM32(ebp + (-0x4)); /* 0x3612491E: mov edx, dword ptr [ebp - 4] */ 3893 PUSH32(esp, edx); /* 0x36124921: push edx */ 3894 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36124922: fsubr dword ptr [0x36170380] */ 3895 fp_push(_st[0]); /* 0x36124928: fld st(0) */ 3896 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3612492A: fmulp st(1) */ 3897 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3612492C: fsubr dword ptr [0x36170380] */ 3898 fp_push(_st[0]); /* 0x36124932: fld st(0) */ 3899 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36124934: fmul dword ptr [esi + 0x16c8] */ 3900 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x3612493A: fstp dword ptr [ebx + eax + 0xc] */ 3901 ecx = MEM32(esi + 0x38); /* 0x3612493E: mov ecx, dword ptr [esi + 0x38] */ 3902 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36124941: fmul dword ptr [esi + 0x16c8] */ 3903 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x36124947: fstp dword ptr [ebx + ecx + 0x10] */ 3904 ecx = esi + 0x168C; /* 0x3612494B: lea ecx, [esi + 0x168c] */ 3905 RECOMP_ICALL(0x36137D80u); /* 0x36124951: call 0x36137d80 */ /* not lifted */ 3906 RECOMP_FLAGS_IN(); 3907 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36124956: fld dword ptr [ebp - 4] */ 3908 ecx = MEM32(esi + 0x38); /* 0x36124959: mov ecx, dword ptr [esi + 0x38] */ 3909 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x3612495C: fmul dword ptr [0x36177750] */ 3910 MEM32(ebx + ecx + 0x14) = eax; /* 0x36124962: mov dword ptr [ebx + ecx + 0x14], eax */ 3911 RECOMP_ICALL(0x3615FD8Cu); /* 0x36124966: call 0x3615fd8c */ /* not lifted */ 3912 RECOMP_FLAGS_IN(); 3913 edx = 0xFu; /* 0x3612496B: mov edx, 0xf */ 3914 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3916 edx = edx - eax; /* 0x36124970: sub edx, eax */ 3917 _flag_k = FK_CMP; 3918 eax = MEM32(esi + 0x38); /* 0x36124972: mov eax, dword ptr [esi + 0x38] */ 3919 MEM32(ebx + eax + 0x18) = edx; /* 0x36124975: mov dword ptr [ebx + eax + 0x18], edx */ 3920 eax = MEM32(ebp + (-0xC)); /* 0x36124979: mov eax, dword ptr [ebp - 0xc] */ 3921 ecx = MEM32(esi + 0x38); /* 0x3612497C: mov ecx, dword ptr [esi + 0x38] */ 3922 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3923 eax = eax + 1; /* 0x3612497F: inc eax */ 3924 _flag_k = FK_INC; 3925 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x36124980: mov byte ptr [ebx + ecx + 0x1c], 1 */ 3926 MEM32(ebp + (-0xC)) = eax; /* 0x36124985: mov dword ptr [ebp - 0xc], eax */ 3927 goto L_36124BD1; /* 0x36124988: jmp 0x36124bd1 */ 3928 L_3612498D: 3929 eax = MEM32(ebp + (-0x1C)); /* 0x3612498D: mov eax, dword ptr [ebp - 0x1c] */ 3930 /* test eax, eax */ /* 0x36124990: test eax, eax */ 3931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3932 _cf = 0; 3933 _flag_k = FK_TEST; 3934 if (TEST_Z(_flag_a, _flag_b)) goto L_36124BC9; /* 0x36124992: je 0x36124bc9 */ 3935 L_36124998: 3936 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36124998: mov al, byte ptr [esi + 0x163c] */ 3937 /* test LO8(eax), LO8(eax) */ /* 0x3612499E: test al, al */ 3938 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3939 _cf = 0; 3940 _flag_k = FK_NARROW(FK_TEST, 24); 3941 if (TEST_NZ(_flag_a, _flag_b)) goto L_36124BC9; /* 0x361249A0: jne 0x36124bc9 */ 3942 L_361249A6: 3943 RECOMP_ICALL(0x360F7B00u); /* 0x361249A6: call 0x360f7b00 */ /* not lifted */ 3944 RECOMP_FLAGS_IN(); 3945 edx = MEM32(esi + 0x28); /* 0x361249AB: mov edx, dword ptr [esi + 0x28] */ 3946 PUSH32(esp, edx); /* 0x361249AE: push edx */ 3947 ecx = eax; /* 0x361249AF: mov ecx, eax */ 3948 RECOMP_ICALL(0x360FBF90u); /* 0x361249B1: call 0x360fbf90 */ /* not lifted */ 3949 RECOMP_FLAGS_IN(); 3950 /* test eax, eax */ /* 0x361249B6: test eax, eax */ 3951 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3952 _cf = 0; 3953 _flag_k = FK_TEST; 3954 MEM32(ebp + (-0x4)) = eax; /* 0x361249B8: mov dword ptr [ebp - 4], eax */ 3955 if (TEST_Z(_flag_a, _flag_b)) goto L_36124BBF; /* 0x361249BB: je 0x36124bbf */ 3956 L_361249C1: 3957 ecx = MEM32(ebp + (-0x4)); /* 0x361249C1: mov ecx, dword ptr [ebp - 4] */ 3958 eax = ebp + (-0x420); /* 0x361249C4: lea eax, [ebp - 0x420] */ 3959 PUSH32(esp, eax); /* 0x361249CA: push eax */ 3960 RECOMP_ICALL(0x36131BB0u); /* 0x361249CB: call 0x36131bb0 */ /* not lifted */ 3961 RECOMP_FLAGS_IN(); 3962 ecx = MEM32(eax); /* 0x361249D0: mov ecx, dword ptr [eax] */ 3963 edx = MEM32(eax + 0x4); /* 0x361249D2: mov edx, dword ptr [eax + 4] */ 3964 eax = MEM32(eax + 0x8); /* 0x361249D5: mov eax, dword ptr [eax + 8] */ 3965 MEM32(ebp + (-0x80)) = ecx; /* 0x361249D8: mov dword ptr [ebp - 0x80], ecx */ 3966 ecx = ebp + (-0x15C); /* 0x361249DB: lea ecx, [ebp - 0x15c] */ 3967 PUSH32(esp, ecx); /* 0x361249E1: push ecx */ 3968 ecx = MEM32(ebp + (-0x4)); /* 0x361249E2: mov ecx, dword ptr [ebp - 4] */ 3969 MEM32(ebp + (-0x7C)) = edx; /* 0x361249E5: mov dword ptr [ebp - 0x7c], edx */ 3970 MEM32(ebp + (-0x78)) = eax; /* 0x361249E8: mov dword ptr [ebp - 0x78], eax */ 3971 RECOMP_ICALL(0x36131C00u); /* 0x361249EB: call 0x36131c00 */ /* not lifted */ 3972 RECOMP_FLAGS_IN(); 3973 edx = MEM32(eax); /* 0x361249F0: mov edx, dword ptr [eax] */ 3974 ecx = MEM32(eax + 0x4); /* 0x361249F2: mov ecx, dword ptr [eax + 4] */ 3975 MEM32(ebp + (-0x5C)) = edx; /* 0x361249F5: mov dword ptr [ebp - 0x5c], edx */ 3976 edx = MEM32(eax + 0x8); /* 0x361249F8: mov edx, dword ptr [eax + 8] */ 3977 eax = ebp + (-0x68); /* 0x361249FB: lea eax, [ebp - 0x68] */ 3978 PUSH32(esp, eax); /* 0x361249FE: push eax */ 3979 MEM32(ebp + (-0x58)) = ecx; /* 0x361249FF: mov dword ptr [ebp - 0x58], ecx */ 3980 MEM32(ebp + (-0x54)) = edx; /* 0x36124A02: mov dword ptr [ebp - 0x54], edx */ 3981 MEM32(ebp + (-0x68)) = 0; /* 0x36124A05: mov dword ptr [ebp - 0x68], 0 */ 3982 MEM32(ebp + (-0x64)) = 0; /* 0x36124A0C: mov dword ptr [ebp - 0x64], 0 */ 3983 MEM32(ebp + (-0x60)) = 0; /* 0x36124A13: mov dword ptr [ebp - 0x60], 0 */ 3984 RECOMP_ICALL(0x360FCBF0u); /* 0x36124A1A: call 0x360fcbf0 */ /* not lifted */ 3985 RECOMP_FLAGS_IN(); 3986 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3988 esp = esp + 4; /* 0x36124A1F: add esp, 4 */ 3989 _flag_k = FK_ADD; 3990 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36124A22: call dword ptr [0x3616f254] */ 3991 RECOMP_FLAGS_IN(); 3992 ecx = MEM32(ebp + (-0x68)); /* 0x36124A28: mov ecx, dword ptr [ebp - 0x68] */ 3993 edx = MEM32(ebp + (-0x64)); /* 0x36124A2B: mov edx, dword ptr [ebp - 0x64] */ 3994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 3995 eax = eax & 0x7FFFu; /* 0x36124A2E: and eax, 0x7fff */ 3996 _cf = 0; 3997 _flag_k = FK_TEST; 3998 MEM32(ebp + (-0x84)) = eax; /* 0x36124A33: mov dword ptr [ebp - 0x84], eax */ 3999 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x36124A39: fild dword ptr [ebp - 0x84] */ 4000 eax = MEM32(ebp + (-0x60)); /* 0x36124A3F: mov eax, dword ptr [ebp - 0x60] */ 4001 MEM32(ebp + (-0x74)) = ecx; /* 0x36124A42: mov dword ptr [ebp - 0x74], ecx */ 4002 ecx = MEM32(ebp + (-0x80)); /* 0x36124A45: mov ecx, dword ptr [ebp - 0x80] */ 4003 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36124A48: fmul dword ptr [0x36175f2c] */ 4004 MEM32(ebp + (-0x70)) = edx; /* 0x36124A4E: mov dword ptr [ebp - 0x70], edx */ 4005 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x36124A51: fld dword ptr [esi + 0x16cc] */ 4006 edx = MEM32(ebp + (-0x7C)); /* 0x36124A57: mov edx, dword ptr [ebp - 0x7c] */ 4007 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36124A5A: fld dword ptr [ebp - 0x68] */ 4008 MEM32(ebp + (-0x6C)) = eax; /* 0x36124A5D: mov dword ptr [ebp - 0x6c], eax */ 4009 _st[0] *= _st[1]; /* 0x36124A60: fmul st(1) */ 4010 eax = MEM32(ebp + (-0x78)); /* 0x36124A62: mov eax, dword ptr [ebp - 0x78] */ 4011 MEM32(ebp + (-0x28)) = ecx; /* 0x36124A65: mov dword ptr [ebp - 0x28], ecx */ 4012 ecx = MEM32(ebp + (-0x5C)); /* 0x36124A68: mov ecx, dword ptr [ebp - 0x5c] */ 4013 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36124A6B: fstp dword ptr [ebp - 0x74] */ 4014 MEM32(ebp + (-0x24)) = edx; /* 0x36124A6E: mov dword ptr [ebp - 0x24], edx */ 4015 edx = MEM32(ebp + (-0x58)); /* 0x36124A71: mov edx, dword ptr [ebp - 0x58] */ 4016 fp_push(_st[0]); /* 0x36124A74: fld st(0) */ 4017 MEM32(ebp + (-0x20)) = eax; /* 0x36124A76: mov dword ptr [ebp - 0x20], eax */ 4018 _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x36124A79: fmul dword ptr [ebp - 0x70] */ 4019 eax = MEM32(ebp + (-0x54)); /* 0x36124A7C: mov eax, dword ptr [ebp - 0x54] */ 4020 MEM32(ebp + (-0x38)) = ecx; /* 0x36124A7F: mov dword ptr [ebp - 0x38], ecx */ 4021 MEM32(ebp + (-0x34)) = edx; /* 0x36124A82: mov dword ptr [ebp - 0x34], edx */ 4022 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36124A85: fstp dword ptr [ebp - 0x70] */ 4023 MEM32(ebp + (-0x30)) = eax; /* 0x36124A88: mov dword ptr [ebp - 0x30], eax */ 4024 _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x36124A8B: fmul dword ptr [ebp - 0x6c] */ 4025 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36124A8E: fstp dword ptr [ebp - 0x6c] */ 4026 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36124A91: fld dword ptr [0x36170380] */ 4027 _st[0] -= _st[1]; /* 0x36124A97: fsub st(1) */ 4028 fp_push(_st[0]); /* 0x36124A99: fld st(0) */ 4029 _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36124A9B: fmul dword ptr [ebp - 0x80] */ 4030 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36124A9E: fstp dword ptr [ebp - 0x28] */ 4031 fp_push(_st[0]); /* 0x36124AA1: fld st(0) */ 4032 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36124AA3: fmul dword ptr [ebp - 0x24] */ 4033 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36124AA6: fstp dword ptr [ebp - 0x24] */ 4034 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36124AA9: fmul dword ptr [ebp - 0x20] */ 4035 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36124AAC: fstp dword ptr [ebp - 0x20] */ 4036 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36124AAF: fld dword ptr [ebp - 0x5c] */ 4037 _st[0] *= _st[1]; /* 0x36124AB2: fmul st(1) */ 4038 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36124AB4: fstp dword ptr [ebp - 0x38] */ 4039 ecx = MEM32(ebp + (-0x38)); /* 0x36124AB7: mov ecx, dword ptr [ebp - 0x38] */ 4040 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36124ABA: fld dword ptr [ebp - 0x34] */ 4041 _st[0] *= _st[1]; /* 0x36124ABD: fmul st(1) */ 4042 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36124ABF: fstp dword ptr [ebp - 0x34] */ 4043 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36124AC2: fld dword ptr [ebp - 0x30] */ 4044 _st[0] *= _st[1]; /* 0x36124AC5: fmul st(1) */ 4045 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36124AC7: fstp dword ptr [ebp - 0x30] */ 4046 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36124ACA: fstp st(0) */ 4047 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x36124ACC: fld dword ptr [ebp - 0x38] */ 4048 edx = MEM32(ebp + (-0x34)); /* 0x36124ACF: mov edx, dword ptr [ebp - 0x34] */ 4049 _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36124AD2: fadd dword ptr [ebp - 0x28] */ 4050 eax = MEM32(ebp + (-0x30)); /* 0x36124AD5: mov eax, dword ptr [ebp - 0x30] */ 4051 MEM32(ebp + (-0x44)) = ecx; /* 0x36124AD8: mov dword ptr [ebp - 0x44], ecx */ 4052 MEM32(ebp + (-0x40)) = edx; /* 0x36124ADB: mov dword ptr [ebp - 0x40], edx */ 4053 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36124ADE: fstp dword ptr [ebp - 0x44] */ 4054 ecx = MEM32(ebp + (-0x44)); /* 0x36124AE1: mov ecx, dword ptr [ebp - 0x44] */ 4055 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36124AE4: fld dword ptr [ebp - 0x40] */ 4056 MEM32(ebp + (-0x3C)) = eax; /* 0x36124AE7: mov dword ptr [ebp - 0x3c], eax */ 4057 _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36124AEA: fadd dword ptr [ebp - 0x24] */ 4058 MEM32(ebp + (-0xB4)) = ecx; /* 0x36124AED: mov dword ptr [ebp - 0xb4], ecx */ 4059 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36124AF3: fstp dword ptr [ebp - 0x40] */ 4060 edx = MEM32(ebp + (-0x40)); /* 0x36124AF6: mov edx, dword ptr [ebp - 0x40] */ 4061 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36124AF9: fld dword ptr [ebp - 0x3c] */ 4062 MEM32(ebp + (-0xB0)) = edx; /* 0x36124AFC: mov dword ptr [ebp - 0xb0], edx */ 4063 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36124B02: fadd dword ptr [ebp - 0x20] */ 4064 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36124B05: fstp dword ptr [ebp - 0x3c] */ 4065 eax = MEM32(ebp + (-0x3C)); /* 0x36124B08: mov eax, dword ptr [ebp - 0x3c] */ 4066 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36124B0B: fld dword ptr [ebp - 0x44] */ 4067 MEM32(ebp + (-0xAC)) = eax; /* 0x36124B0E: mov dword ptr [ebp - 0xac], eax */ 4068 _st[0] += (double)*(float*)ADDR(ebp + (-0x74)); /* 0x36124B14: fadd dword ptr [ebp - 0x74] */ 4069 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x36124B17: fstp dword ptr [ebp - 0xb4] */ 4070 eax = MEM32(ebp + (-0xB4)); /* 0x36124B1D: mov eax, dword ptr [ebp - 0xb4] */ 4071 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36124B23: fld dword ptr [ebp - 0xb0] */ 4072 _st[0] += (double)*(float*)ADDR(ebp + (-0x70)); /* 0x36124B29: fadd dword ptr [ebp - 0x70] */ 4073 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x36124B2C: fstp dword ptr [ebp - 0xb0] */ 4074 ecx = MEM32(ebp + (-0xB0)); /* 0x36124B32: mov ecx, dword ptr [ebp - 0xb0] */ 4075 fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x36124B38: fld dword ptr [ebp - 0xac] */ 4076 _st[0] += (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x36124B3E: fadd dword ptr [ebp - 0x6c] */ 4077 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x36124B41: fstp dword ptr [ebp - 0xac] */ 4078 edx = MEM32(ebp + (-0xAC)); /* 0x36124B47: mov edx, dword ptr [ebp - 0xac] */ 4079 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36124B4D: fld dword ptr [ebp - 0x18] */ 4080 MEM32(ebp + (-0xEC)) = edx; /* 0x36124B50: mov dword ptr [ebp - 0xec], edx */ 4081 edx = edi; /* 0x36124B56: mov edx, edi */ 4082 MEM32(edx) = eax; /* 0x36124B58: mov dword ptr [edx], eax */ 4083 MEM32(edx + 0x4) = ecx; /* 0x36124B5A: mov dword ptr [edx + 4], ecx */ 4084 eax = MEM32(ebp + (-0xEC)); /* 0x36124B5D: mov eax, dword ptr [ebp - 0xec] */ 4085 MEM32(edx + 0x8) = eax; /* 0x36124B63: mov dword ptr [edx + 8], eax */ 4086 MEM32(ebp + (-0x90)) = 0; /* 0x36124B66: mov dword ptr [ebp - 0x90], 0 */ 4087 edx = MEM32(ebp + (-0x90)); /* 0x36124B70: mov edx, dword ptr [ebp - 0x90] */ 4088 MEM32(ebp + (-0x8C)) = 0; /* 0x36124B76: mov dword ptr [ebp - 0x8c], 0 */ 4089 MEM32(ebp + (-0x88)) = 0; /* 0x36124B80: mov dword ptr [ebp - 0x88], 0 */ 4090 ecx = edi + (-0x600); /* 0x36124B8A: lea ecx, [edi - 0x600] */ 4091 MEM32(ecx) = edx; /* 0x36124B90: mov dword ptr [ecx], edx */ 4092 eax = MEM32(ebp + (-0x8C)); /* 0x36124B92: mov eax, dword ptr [ebp - 0x8c] */ 4093 MEM32(ecx + 0x4) = eax; /* 0x36124B98: mov dword ptr [ecx + 4], eax */ 4094 edx = MEM32(ebp + (-0x88)); /* 0x36124B9B: mov edx, dword ptr [ebp - 0x88] */ 4095 eax = MEM32(ebp + (-0x8)); /* 0x36124BA1: mov eax, dword ptr [ebp - 8] */ 4096 MEM32(ecx + 0x8) = edx; /* 0x36124BA4: mov dword ptr [ecx + 8], edx */ 4097 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124BA7: fadd dword ptr [esi + 0x16c0] */ 4098 ecx = MEM32(ebp + (-0xC)); /* 0x36124BAD: mov ecx, dword ptr [ebp - 0xc] */ 4099 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4100 ecx = ecx + 1; /* 0x36124BB0: inc ecx */ 4101 _flag_k = FK_INC; 4102 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36124BB1: fstp dword ptr [eax] */ 4103 eax = MEM32(ebp + (-0x1C)); /* 0x36124BB3: mov eax, dword ptr [ebp - 0x1c] */ 4104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4105 eax = eax - 1; /* 0x36124BB6: dec eax */ 4106 _flag_k = FK_DEC; 4107 MEM32(ebp + (-0xC)) = ecx; /* 0x36124BB7: mov dword ptr [ebp - 0xc], ecx */ 4108 MEM32(ebp + (-0x1C)) = eax; /* 0x36124BBA: mov dword ptr [ebp - 0x1c], eax */ 4109 goto L_36124BD1; /* 0x36124BBD: jmp 0x36124bd1 */ 4110 L_36124BBF: 4111 ecx = MEM32(esi + 0x38); /* 0x36124BBF: mov ecx, dword ptr [esi + 0x38] */ 4112 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x36124BC2: mov byte ptr [ecx + ebx + 0x1c], 0 */ 4113 goto L_36124BD1; /* 0x36124BC7: jmp 0x36124bd1 */ 4114 L_36124BC9: 4115 edx = MEM32(esi + 0x38); /* 0x36124BC9: mov edx, dword ptr [esi + 0x38] */ 4116 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x36124BCC: mov byte ptr [edx + ebx + 0x1c], 0 */ 4117 L_36124BD1: 4118 edx = MEM32(ebp + (-0x8)); /* 0x36124BD1: mov edx, dword ptr [ebp - 8] */ 4119 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 4120 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4121 edx = edx + 4; /* 0x36124BD4: add edx, 4 */ 4122 _flag_k = FK_ADD; 4123 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 4124 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4125 ebx = ebx + 0x20u; /* 0x36124BD7: add ebx, 0x20 */ 4126 _flag_k = FK_ADD; 4127 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 4128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4129 edi = edi + 0xCu; /* 0x36124BDA: add edi, 0xc */ 4130 _flag_k = FK_ADD; 4131 /* cmp ebx, 0x1000u */ /* 0x36124BDD: cmp ebx, 0x1000 */ 4132 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 4133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4134 _flag_k = FK_CMP; 4135 MEM32(ebp + (-0x8)) = edx; /* 0x36124BE3: mov dword ptr [ebp - 8], edx */ 4136 RECOMP_BACKEDGE(); 4137 if (CMP_L(_flag_a, _flag_b)) goto L_361248D6; /* 0x36124BE6: jl 0x361248d6 */ 4138 L_36124BEC: 4139 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36124BEC: mov al, byte ptr [esi + 0x163c] */ 4140 /* test LO8(eax), LO8(eax) */ /* 0x36124BF2: test al, al */ 4141 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4142 _cf = 0; 4143 _flag_k = FK_NARROW(FK_TEST, 24); 4144 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36124BF4: je 0x361275ac */ 4145 L_36124BFA: 4146 eax = MEM32(ebp + (-0xC)); /* 0x36124BFA: mov eax, dword ptr [ebp - 0xc] */ 4147 /* test eax, eax */ /* 0x36124BFD: test eax, eax */ 4148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4149 _cf = 0; 4150 _flag_k = FK_TEST; 4151 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36124BFF: jne 0x361275ac */ 4152 L_36124C05: 4153 goto L_361275A8; /* 0x36124C05: jmp 0x361275a8 */ 4154 L_361275A8: 4155 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 4156 L_361275AC: 4157 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 4158 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 4159 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4160 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 4161 _flag_k = FK_ADD; 4162 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 4163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4164 _cf = 0; 4165 _flag_k = FK_TEST; 4166 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 4167 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 4168 L_361275B7: 4169 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 4170 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 4171 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 4172 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 4173 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 4174 RECOMP_FLAGS_IN(); 4175 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 4176 PUSH32(esp, eax); /* 0x361275CD: push eax */ 4177 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 4178 RECOMP_FLAGS_IN(); 4179 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 4180 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 4181 RECOMP_FLAGS_IN(); 4182 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 4183 PUSH32(esp, eax); /* 0x361275E2: push eax */ 4184 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 4185 RECOMP_FLAGS_IN(); 4186 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 4187 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 4188 RECOMP_FLAGS_IN(); 4189 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 4190 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4191 _cf = (LO8(eax)) != 0; 4192 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 4193 _flag_k = FK_NARROW(FK_CMP, 24); 4194 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 4195 eax = _sc ? 0xFFFFFFFFu : 0; 4196 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4197 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4198 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4199 eax = eax + 1; /* 0x361275F6: inc eax */ 4200 _flag_k = FK_INC; 4201 PUSH32(esp, eax); /* 0x361275F7: push eax */ 4202 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 4203 RECOMP_FLAGS_IN(); 4204 L_361275FE: 4205 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 4206 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 4207 esp = ebp; /* 0x36127600: mov esp, ebp */ 4208 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 4209 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 4210 RECOMP_REGS_OUT(); 4211 } 4212 4213 void sub_36124C34(void) { 4214 int _fpu_cmp = 0; 4215 uint32_t _cf = 0; 4216 int _df = 1; 4217 uint32_t _flag_k = FK_NONE; 4218 uint32_t _flag_a = 0, _flag_b = 0; 4219 uint32_t _itail_tgt = 0; 4220 RECOMP_REGS_LOCALS 4221 RECOMP_ENTER(0x36124C34u); 4222 4223 L_36124C34: 4224 edx = MEM32(ebp + (-0x8)); /* 0x36124C34: mov edx, dword ptr [ebp - 8] */ 4225 fp_push(*(float*)&MEM32(edx)); /* 0x36124C37: fld dword ptr [edx] */ 4226 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x36124C39: fcomp dword ptr [ebp - 0x18] */ 4227 fp_pop(); 4228 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36124C3C: fnstsw ax */ 4229 /* test HI8(eax), 0x41u */ /* 0x36124C3E: test ah, 0x41 */ 4230 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4231 _cf = 0; 4232 _flag_k = FK_NARROW(FK_TEST, 24); 4233 if (TEST_NZ(_flag_a, _flag_b)) goto L_36124CEB; /* 0x36124C41: jne 0x36124ceb */ 4234 L_36124C47: 4235 ecx = MEM32(esi + 0x38); /* 0x36124C47: mov ecx, dword ptr [esi + 0x38] */ 4236 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36124C4A: fld dword ptr [ebp - 0x18] */ 4237 eax = ebx; /* 0x36124C4D: mov eax, ebx */ 4238 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4239 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4240 eax = eax + ecx; /* 0x36124C4F: add eax, ecx */ 4241 _flag_k = FK_ADD; 4242 ecx = edi; /* 0x36124C51: mov ecx, edi */ 4243 edx = MEM32(ecx); /* 0x36124C53: mov edx, dword ptr [ecx] */ 4244 MEM32(eax) = edx; /* 0x36124C55: mov dword ptr [eax], edx */ 4245 edx = MEM32(ecx + 0x4); /* 0x36124C57: mov edx, dword ptr [ecx + 4] */ 4246 MEM32(eax + 0x4) = edx; /* 0x36124C5A: mov dword ptr [eax + 4], edx */ 4247 ecx = MEM32(ecx + 0x8); /* 0x36124C5D: mov ecx, dword ptr [ecx + 8] */ 4248 edx = MEM32(ebp + (-0x8)); /* 0x36124C60: mov edx, dword ptr [ebp - 8] */ 4249 MEM32(eax + 0x8) = ecx; /* 0x36124C63: mov dword ptr [eax + 8], ecx */ 4250 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124C66: fadd dword ptr [esi + 0x16c0] */ 4251 eax = MEM32(esi + 0x38); /* 0x36124C6C: mov eax, dword ptr [esi + 0x38] */ 4252 _st[0] -= (double)*(float*)ADDR(edx); /* 0x36124C6F: fsub dword ptr [edx] */ 4253 edx = MEM32(ebp + (-0x10)); /* 0x36124C71: mov edx, dword ptr [ebp - 0x10] */ 4254 PUSH32(esp, edx); /* 0x36124C74: push edx */ 4255 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124C75: fdiv dword ptr [esi + 0x16c0] */ 4256 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36124C7B: fst dword ptr [ebp - 4] */ 4257 _st[0] += _st[0]; /* 0x36124C7E: fadd st(0), st(0) */ 4258 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36124C80: fsubr dword ptr [0x36170380] */ 4259 fp_push(_st[0]); /* 0x36124C86: fld st(0) */ 4260 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36124C88: fmulp st(1) */ 4261 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36124C8A: fsubr dword ptr [0x36170380] */ 4262 fp_push(_st[0]); /* 0x36124C90: fld st(0) */ 4263 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36124C92: fmul dword ptr [esi + 0x16c8] */ 4264 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x36124C98: fstp dword ptr [ebx + eax + 0xc] */ 4265 ecx = MEM32(esi + 0x38); /* 0x36124C9C: mov ecx, dword ptr [esi + 0x38] */ 4266 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36124C9F: fmul dword ptr [esi + 0x16c8] */ 4267 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x36124CA5: fstp dword ptr [ebx + ecx + 0x10] */ 4268 ecx = esi + 0x168C; /* 0x36124CA9: lea ecx, [esi + 0x168c] */ 4269 RECOMP_ICALL(0x36137D80u); /* 0x36124CAF: call 0x36137d80 */ /* not lifted */ 4270 RECOMP_FLAGS_IN(); 4271 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36124CB4: fld dword ptr [ebp - 4] */ 4272 ecx = MEM32(esi + 0x38); /* 0x36124CB7: mov ecx, dword ptr [esi + 0x38] */ 4273 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x36124CBA: fmul dword ptr [0x36177750] */ 4274 MEM32(ebx + ecx + 0x14) = eax; /* 0x36124CC0: mov dword ptr [ebx + ecx + 0x14], eax */ 4275 RECOMP_ICALL(0x3615FD8Cu); /* 0x36124CC4: call 0x3615fd8c */ /* not lifted */ 4276 RECOMP_FLAGS_IN(); 4277 edx = 0xFu; /* 0x36124CC9: mov edx, 0xf */ 4278 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4280 edx = edx - eax; /* 0x36124CCE: sub edx, eax */ 4281 _flag_k = FK_CMP; 4282 eax = MEM32(esi + 0x38); /* 0x36124CD0: mov eax, dword ptr [esi + 0x38] */ 4283 MEM32(ebx + eax + 0x18) = edx; /* 0x36124CD3: mov dword ptr [ebx + eax + 0x18], edx */ 4284 eax = MEM32(ebp + (-0xC)); /* 0x36124CD7: mov eax, dword ptr [ebp - 0xc] */ 4285 ecx = MEM32(esi + 0x38); /* 0x36124CDA: mov ecx, dword ptr [esi + 0x38] */ 4286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4287 eax = eax + 1; /* 0x36124CDD: inc eax */ 4288 _flag_k = FK_INC; 4289 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x36124CDE: mov byte ptr [ebx + ecx + 0x1c], 1 */ 4290 MEM32(ebp + (-0xC)) = eax; /* 0x36124CE3: mov dword ptr [ebp - 0xc], eax */ 4291 goto L_3612511F; /* 0x36124CE6: jmp 0x3612511f */ 4292 L_36124CEB: 4293 eax = MEM32(ebp + (-0x1C)); /* 0x36124CEB: mov eax, dword ptr [ebp - 0x1c] */ 4294 /* test eax, eax */ /* 0x36124CEE: test eax, eax */ 4295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4296 _cf = 0; 4297 _flag_k = FK_TEST; 4298 if (TEST_Z(_flag_a, _flag_b)) goto L_36125117; /* 0x36124CF0: je 0x36125117 */ 4299 L_36124CF6: 4300 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36124CF6: mov al, byte ptr [esi + 0x163c] */ 4301 /* test LO8(eax), LO8(eax) */ /* 0x36124CFC: test al, al */ 4302 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4303 _cf = 0; 4304 _flag_k = FK_NARROW(FK_TEST, 24); 4305 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125117; /* 0x36124CFE: jne 0x36125117 */ 4306 L_36124D04: 4307 RECOMP_ICALL(0x360F7B00u); /* 0x36124D04: call 0x360f7b00 */ /* not lifted */ 4308 RECOMP_FLAGS_IN(); 4309 edx = MEM32(esi + 0x28); /* 0x36124D09: mov edx, dword ptr [esi + 0x28] */ 4310 PUSH32(esp, edx); /* 0x36124D0C: push edx */ 4311 ecx = eax; /* 0x36124D0D: mov ecx, eax */ 4312 RECOMP_ICALL(0x360FBF90u); /* 0x36124D0F: call 0x360fbf90 */ /* not lifted */ 4313 RECOMP_FLAGS_IN(); 4314 /* test eax, eax */ /* 0x36124D14: test eax, eax */ 4315 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4316 _cf = 0; 4317 _flag_k = FK_TEST; 4318 MEM32(ebp + (-0x4)) = eax; /* 0x36124D16: mov dword ptr [ebp - 4], eax */ 4319 if (TEST_Z(_flag_a, _flag_b)) goto L_3612510D; /* 0x36124D19: je 0x3612510d */ 4320 L_36124D1F: 4321 ecx = MEM32(ebp + (-0x4)); /* 0x36124D1F: mov ecx, dword ptr [ebp - 4] */ 4322 eax = ebp + (-0x330); /* 0x36124D22: lea eax, [ebp - 0x330] */ 4323 PUSH32(esp, eax); /* 0x36124D28: push eax */ 4324 RECOMP_ICALL(0x36131BB0u); /* 0x36124D29: call 0x36131bb0 */ /* not lifted */ 4325 RECOMP_FLAGS_IN(); 4326 ecx = MEM32(eax); /* 0x36124D2E: mov ecx, dword ptr [eax] */ 4327 edx = MEM32(eax + 0x4); /* 0x36124D30: mov edx, dword ptr [eax + 4] */ 4328 eax = MEM32(eax + 0x8); /* 0x36124D33: mov eax, dword ptr [eax + 8] */ 4329 MEM32(ebp + (-0x80)) = ecx; /* 0x36124D36: mov dword ptr [ebp - 0x80], ecx */ 4330 ecx = ebp + (-0x228); /* 0x36124D39: lea ecx, [ebp - 0x228] */ 4331 PUSH32(esp, ecx); /* 0x36124D3F: push ecx */ 4332 ecx = MEM32(ebp + (-0x4)); /* 0x36124D40: mov ecx, dword ptr [ebp - 4] */ 4333 MEM32(ebp + (-0x7C)) = edx; /* 0x36124D43: mov dword ptr [ebp - 0x7c], edx */ 4334 MEM32(ebp + (-0x78)) = eax; /* 0x36124D46: mov dword ptr [ebp - 0x78], eax */ 4335 RECOMP_ICALL(0x36131C00u); /* 0x36124D49: call 0x36131c00 */ /* not lifted */ 4336 RECOMP_FLAGS_IN(); 4337 edx = MEM32(eax); /* 0x36124D4E: mov edx, dword ptr [eax] */ 4338 MEM32(ebp + (-0x38)) = edx; /* 0x36124D50: mov dword ptr [ebp - 0x38], edx */ 4339 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x36124D53: fld dword ptr [ebp - 0x38] */ 4340 ecx = MEM32(eax + 0x4); /* 0x36124D56: mov ecx, dword ptr [eax + 4] */ 4341 _st[0] -= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36124D59: fsub dword ptr [ebp - 0x80] */ 4342 MEM32(ebp + (-0x34)) = ecx; /* 0x36124D5C: mov dword ptr [ebp - 0x34], ecx */ 4343 edx = MEM32(eax + 0x8); /* 0x36124D5F: mov edx, dword ptr [eax + 8] */ 4344 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36124D62: fstp dword ptr [ebp - 0x38] */ 4345 eax = MEM32(ebp + (-0x38)); /* 0x36124D65: mov eax, dword ptr [ebp - 0x38] */ 4346 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36124D68: fld dword ptr [ebp - 0x34] */ 4347 MEM32(ebp + (-0x30)) = edx; /* 0x36124D6B: mov dword ptr [ebp - 0x30], edx */ 4348 _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36124D6E: fsub dword ptr [ebp - 0x7c] */ 4349 MEM32(ebp + (-0xA8)) = eax; /* 0x36124D71: mov dword ptr [ebp - 0xa8], eax */ 4350 eax = ebp + (-0x50); /* 0x36124D77: lea eax, [ebp - 0x50] */ 4351 PUSH32(esp, eax); /* 0x36124D7A: push eax */ 4352 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36124D7B: fstp dword ptr [ebp - 0x34] */ 4353 ecx = MEM32(ebp + (-0x34)); /* 0x36124D7E: mov ecx, dword ptr [ebp - 0x34] */ 4354 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36124D81: fld dword ptr [ebp - 0x30] */ 4355 MEM32(ebp + (-0xA4)) = ecx; /* 0x36124D84: mov dword ptr [ebp - 0xa4], ecx */ 4356 _st[0] -= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36124D8A: fsub dword ptr [ebp - 0x78] */ 4357 ecx = ebp + (-0xA8); /* 0x36124D8D: lea ecx, [ebp - 0xa8] */ 4358 PUSH32(esp, ecx); /* 0x36124D93: push ecx */ 4359 MEM32(ebp + (-0x50)) = 0; /* 0x36124D94: mov dword ptr [ebp - 0x50], 0 */ 4360 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36124D9B: fstp dword ptr [ebp - 0x30] */ 4361 edx = MEM32(ebp + (-0x30)); /* 0x36124D9E: mov edx, dword ptr [ebp - 0x30] */ 4362 MEM32(ebp + (-0xA0)) = edx; /* 0x36124DA1: mov dword ptr [ebp - 0xa0], edx */ 4363 MEM32(ebp + (-0x4C)) = 0; /* 0x36124DA7: mov dword ptr [ebp - 0x4c], 0 */ 4364 MEM32(ebp + (-0x48)) = 0; /* 0x36124DAE: mov dword ptr [ebp - 0x48], 0 */ 4365 RECOMP_ICALL(0x360FCE60u); /* 0x36124DB5: call 0x360fce60 */ /* not lifted */ 4366 RECOMP_FLAGS_IN(); 4367 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36124DBA: fld dword ptr [ebp - 0x4c] */ 4368 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA0)); /* 0x36124DBD: fmul dword ptr [ebp - 0xa0] */ 4369 ecx = MEM32(ebp + (-0x48)); /* 0x36124DC3: mov ecx, dword ptr [ebp - 0x48] */ 4370 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36124DC6: fld dword ptr [ebp - 0x48] */ 4371 edx = MEM32(ebp + (-0x50)); /* 0x36124DC9: mov edx, dword ptr [ebp - 0x50] */ 4372 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA4)); /* 0x36124DCC: fmul dword ptr [ebp - 0xa4] */ 4373 eax = MEM32(ebp + (-0x4C)); /* 0x36124DD2: mov eax, dword ptr [ebp - 0x4c] */ 4374 MEM32(ebp + (-0xD4)) = ecx; /* 0x36124DD5: mov dword ptr [ebp - 0xd4], ecx */ 4375 MEM32(ebp + (-0xDC)) = edx; /* 0x36124DDB: mov dword ptr [ebp - 0xdc], edx */ 4376 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36124DE1: fsubp st(1) */ 4377 MEM32(ebp + (-0xD8)) = eax; /* 0x36124DE3: mov dword ptr [ebp - 0xd8], eax */ 4378 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36124DE9: fld dword ptr [ebp - 0x48] */ 4379 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4380 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4381 esp = esp + 8; /* 0x36124DEC: add esp, 8 */ 4382 _flag_k = FK_ADD; 4383 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA8)); /* 0x36124DEF: fmul dword ptr [ebp - 0xa8] */ 4384 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36124DF5: fld dword ptr [ebp - 0x50] */ 4385 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA0)); /* 0x36124DF8: fmul dword ptr [ebp - 0xa0] */ 4386 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36124DFE: fsubp st(1) */ 4387 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36124E00: fld dword ptr [ebp - 0x50] */ 4388 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA4)); /* 0x36124E03: fmul dword ptr [ebp - 0xa4] */ 4389 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36124E09: fld dword ptr [ebp - 0x4c] */ 4390 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA8)); /* 0x36124E0C: fmul dword ptr [ebp - 0xa8] */ 4391 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36124E12: fsubp st(1) */ 4392 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x36124E14: fstp dword ptr [ebp - 0xd4] */ 4393 ecx = MEM32(ebp + (-0xD4)); /* 0x36124E1A: mov ecx, dword ptr [ebp - 0xd4] */ 4394 fp_push(_st[1]); /* 0x36124E20: fld st(1) */ 4395 MEM32(ebp + (-0x3C)) = ecx; /* 0x36124E22: mov dword ptr [ebp - 0x3c], ecx */ 4396 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36124E25: fstp dword ptr [ebp - 0xdc] */ 4397 edx = MEM32(ebp + (-0xDC)); /* 0x36124E2B: mov edx, dword ptr [ebp - 0xdc] */ 4398 MEM32(ebp + (-0x44)) = edx; /* 0x36124E31: mov dword ptr [ebp - 0x44], edx */ 4399 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36124E34: fst dword ptr [ebp - 0xd8] */ 4400 eax = MEM32(ebp + (-0xD8)); /* 0x36124E3A: mov eax, dword ptr [ebp - 0xd8] */ 4401 fp_push(_st[0]); /* 0x36124E40: fld st(0) */ 4402 MEM32(ebp + (-0x40)) = eax; /* 0x36124E42: mov dword ptr [ebp - 0x40], eax */ 4403 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36124E45: fmulp st(1) */ 4404 fp_push(_st[1]); /* 0x36124E47: fld st(1) */ 4405 _st[0] *= _st[2]; /* 0x36124E49: fmul st(2) */ 4406 { double _v = fp_pop(); _st[0] += _v; } /* 0x36124E4B: faddp st(1) */ 4407 fp_push(*(float*)&MEM32(ebp + (-0xD4))); /* 0x36124E4D: fld dword ptr [ebp - 0xd4] */ 4408 _st[0] *= (double)*(float*)ADDR(ebp + (-0xD4)); /* 0x36124E53: fmul dword ptr [ebp - 0xd4] */ 4409 { double _v = fp_pop(); _st[0] += _v; } /* 0x36124E59: faddp st(1) */ 4410 _st[0] = sqrt(_st[0]); /* 0x36124E5B: fsqrt */ 4411 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36124E5D: fdivr dword ptr [0x36170380] */ 4412 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36124E63: fst dword ptr [ebp - 4] */ 4413 _st[0] *= _st[1]; /* 0x36124E66: fmul st(1) */ 4414 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36124E68: fstp dword ptr [ebp - 0x44] */ 4415 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36124E6B: fstp st(0) */ 4416 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36124E6D: fld dword ptr [ebp - 4] */ 4417 _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36124E70: fmul dword ptr [ebp - 0x40] */ 4418 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36124E73: fstp dword ptr [ebp - 0x40] */ 4419 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36124E76: fld dword ptr [ebp - 4] */ 4420 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36124E79: fmul dword ptr [ebp - 0x3c] */ 4421 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36124E7C: fstp dword ptr [ebp - 0x3c] */ 4422 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36124E7F: call dword ptr [0x3616f254] */ 4423 RECOMP_FLAGS_IN(); 4424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 4425 eax = eax & 0x7FFFu; /* 0x36124E85: and eax, 0x7fff */ 4426 _cf = 0; 4427 _flag_k = FK_TEST; 4428 MEM32(ebp + (-0x84)) = eax; /* 0x36124E8A: mov dword ptr [ebp - 0x84], eax */ 4429 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x36124E90: fild dword ptr [ebp - 0x84] */ 4430 edx = MEM32(ebp + (-0x44)); /* 0x36124E96: mov edx, dword ptr [ebp - 0x44] */ 4431 eax = MEM32(ebp + (-0x40)); /* 0x36124E99: mov eax, dword ptr [ebp - 0x40] */ 4432 ecx = MEM32(ebp + (-0x3C)); /* 0x36124E9C: mov ecx, dword ptr [ebp - 0x3c] */ 4433 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36124E9F: fmul dword ptr [0x36175f2c] */ 4434 MEM32(ebp + (-0xC0)) = edx; /* 0x36124EA5: mov dword ptr [ebp - 0xc0], edx */ 4435 MEM32(ebp + (-0xBC)) = eax; /* 0x36124EAB: mov dword ptr [ebp - 0xbc], eax */ 4436 MEM32(ebp + (-0xB8)) = ecx; /* 0x36124EB1: mov dword ptr [ebp - 0xb8], ecx */ 4437 fp_push(_st[0]); /* 0x36124EB7: fld st(0) */ 4438 edx = MEM32(ebp + (-0x50)); /* 0x36124EB9: mov edx, dword ptr [ebp - 0x50] */ 4439 _st[0] += _st[0]; /* 0x36124EBC: fadd st(0), st(0) */ 4440 eax = MEM32(ebp + (-0x4C)); /* 0x36124EBE: mov eax, dword ptr [ebp - 0x4c] */ 4441 ecx = MEM32(ebp + (-0x48)); /* 0x36124EC1: mov ecx, dword ptr [ebp - 0x48] */ 4442 MEM32(ebp + (-0xB4)) = edx; /* 0x36124EC4: mov dword ptr [ebp - 0xb4], edx */ 4443 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36124ECA: fsubr dword ptr [0x36170380] */ 4444 MEM32(ebp + (-0xB0)) = eax; /* 0x36124ED0: mov dword ptr [ebp - 0xb0], eax */ 4445 MEM32(ebp + (-0xAC)) = ecx; /* 0x36124ED6: mov dword ptr [ebp - 0xac], ecx */ 4446 fp_push(_st[0]); /* 0x36124EDC: fld st(0) */ 4447 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36124EDE: fmulp st(1) */ 4448 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36124EE0: fsubr dword ptr [0x36170380] */ 4449 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36124EE6: fmul dword ptr [0x36170464] */ 4450 fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x36124EEC: fld dword ptr [ebp - 0xa4] */ 4451 fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x36124EF2: fld dword ptr [ebp - 0xa0] */ 4452 fp_push(_st[0]); /* 0x36124EF8: fld st(0) */ 4453 _st[0] *= _st[1]; /* 0x36124EFA: fmul st(1) */ 4454 fp_push(_st[2]); /* 0x36124EFC: fld st(2) */ 4455 _st[0] *= _st[3]; /* 0x36124EFE: fmul st(3) */ 4456 { double _v = fp_pop(); _st[0] += _v; } /* 0x36124F00: faddp st(1) */ 4457 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36124F02: fld dword ptr [ebp - 0xa8] */ 4458 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA8)); /* 0x36124F08: fmul dword ptr [ebp - 0xa8] */ 4459 { double _v = fp_pop(); _st[0] += _v; } /* 0x36124F0E: faddp st(1) */ 4460 _st[0] = sqrt(_st[0]); /* 0x36124F10: fsqrt */ 4461 { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x36124F12: fstp st(2) */ 4462 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36124F14: fstp st(0) */ 4463 _st[0] *= _st[2]; /* 0x36124F16: fmul st(2) */ 4464 _st[0] += _st[0]; /* 0x36124F18: fadd st(0), st(0) */ 4465 _st[0] += (double)*(float*)ADDR(esi + 0x16CC); /* 0x36124F1A: fadd dword ptr [esi + 0x16cc] */ 4466 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36124F20: fld dword ptr [ebp - 0x10] */ 4467 _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36124F23: fmul dword ptr [0x36170eb8] */ 4468 { double _v = fp_pop(); _st[0] += _v; } /* 0x36124F29: faddp st(1) */ 4469 fp_push(_st[0]); /* 0x36124F2B: fld st(0) */ 4470 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36124F2D: fcos */ 4471 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36124F2F: fld dword ptr [ebp - 0x44] */ 4472 _st[0] *= _st[1]; /* 0x36124F32: fmul st(1) */ 4473 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC0)) = _v; } /* 0x36124F34: fstp dword ptr [ebp - 0xc0] */ 4474 fp_push(_st[0]); /* 0x36124F3A: fld st(0) */ 4475 _st[0] *= (double)*(float*)ADDR(ebp + (-0xBC)); /* 0x36124F3C: fmul dword ptr [ebp - 0xbc] */ 4476 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xBC)) = _v; } /* 0x36124F42: fstp dword ptr [ebp - 0xbc] */ 4477 _st[0] *= (double)*(float*)ADDR(ebp + (-0xB8)); /* 0x36124F48: fmul dword ptr [ebp - 0xb8] */ 4478 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36124F4E: fstp dword ptr [ebp - 0xb8] */ 4479 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36124F54: fsin */ 4480 fp_push(_st[0]); /* 0x36124F56: fld st(0) */ 4481 _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36124F58: fmul dword ptr [ebp - 0x50] */ 4482 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x36124F5B: fstp dword ptr [ebp - 0xb4] */ 4483 edx = MEM32(ebp + (-0xB4)); /* 0x36124F61: mov edx, dword ptr [ebp - 0xb4] */ 4484 fp_push(_st[0]); /* 0x36124F67: fld st(0) */ 4485 _st[0] *= (double)*(float*)ADDR(ebp + (-0xB0)); /* 0x36124F69: fmul dword ptr [ebp - 0xb0] */ 4486 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x36124F6F: fstp dword ptr [ebp - 0xb0] */ 4487 _st[0] *= (double)*(float*)ADDR(ebp + (-0xAC)); /* 0x36124F75: fmul dword ptr [ebp - 0xac] */ 4488 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x36124F7B: fstp dword ptr [ebp - 0xac] */ 4489 fp_push(*(float*)&MEM32(ebp + (-0xB4))); /* 0x36124F81: fld dword ptr [ebp - 0xb4] */ 4490 eax = MEM32(ebp + (-0xB0)); /* 0x36124F87: mov eax, dword ptr [ebp - 0xb0] */ 4491 _st[0] += (double)*(float*)ADDR(ebp + (-0xC0)); /* 0x36124F8D: fadd dword ptr [ebp - 0xc0] */ 4492 ecx = MEM32(ebp + (-0xAC)); /* 0x36124F93: mov ecx, dword ptr [ebp - 0xac] */ 4493 MEM32(ebp + (-0x74)) = edx; /* 0x36124F99: mov dword ptr [ebp - 0x74], edx */ 4494 MEM32(ebp + (-0x70)) = eax; /* 0x36124F9C: mov dword ptr [ebp - 0x70], eax */ 4495 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36124F9F: fstp dword ptr [ebp - 0x74] */ 4496 edx = MEM32(ebp + (-0x74)); /* 0x36124FA2: mov edx, dword ptr [ebp - 0x74] */ 4497 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36124FA5: fld dword ptr [ebp - 0x70] */ 4498 MEM32(ebp + (-0x6C)) = ecx; /* 0x36124FA8: mov dword ptr [ebp - 0x6c], ecx */ 4499 _st[0] += (double)*(float*)ADDR(ebp + (-0xBC)); /* 0x36124FAB: fadd dword ptr [ebp - 0xbc] */ 4500 MEM32(ebp + (-0x9C)) = edx; /* 0x36124FB1: mov dword ptr [ebp - 0x9c], edx */ 4501 edx = MEM32(ebp + (-0xA8)); /* 0x36124FB7: mov edx, dword ptr [ebp - 0xa8] */ 4502 MEM32(ebp + (-0x68)) = edx; /* 0x36124FBD: mov dword ptr [ebp - 0x68], edx */ 4503 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36124FC0: fstp dword ptr [ebp - 0x70] */ 4504 eax = MEM32(ebp + (-0x70)); /* 0x36124FC3: mov eax, dword ptr [ebp - 0x70] */ 4505 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36124FC6: fld dword ptr [ebp - 0x6c] */ 4506 MEM32(ebp + (-0x98)) = eax; /* 0x36124FC9: mov dword ptr [ebp - 0x98], eax */ 4507 _st[0] += (double)*(float*)ADDR(ebp + (-0xB8)); /* 0x36124FCF: fadd dword ptr [ebp - 0xb8] */ 4508 eax = MEM32(ebp + (-0xA4)); /* 0x36124FD5: mov eax, dword ptr [ebp - 0xa4] */ 4509 edx = MEM32(ebp + (-0x80)); /* 0x36124FDB: mov edx, dword ptr [ebp - 0x80] */ 4510 MEM32(ebp + (-0x64)) = eax; /* 0x36124FDE: mov dword ptr [ebp - 0x64], eax */ 4511 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36124FE1: fstp dword ptr [ebp - 0x6c] */ 4512 ecx = MEM32(ebp + (-0x6C)); /* 0x36124FE4: mov ecx, dword ptr [ebp - 0x6c] */ 4513 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36124FE7: fld dword ptr [ebp - 0x74] */ 4514 MEM32(ebp + (-0x94)) = ecx; /* 0x36124FEA: mov dword ptr [ebp - 0x94], ecx */ 4515 _st[0] *= _st[1]; /* 0x36124FF0: fmul st(1) */ 4516 ecx = MEM32(ebp + (-0xA0)); /* 0x36124FF2: mov ecx, dword ptr [ebp - 0xa0] */ 4517 eax = MEM32(ebp + (-0x7C)); /* 0x36124FF8: mov eax, dword ptr [ebp - 0x7c] */ 4518 MEM32(ebp + (-0x60)) = ecx; /* 0x36124FFB: mov dword ptr [ebp - 0x60], ecx */ 4519 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36124FFE: fstp dword ptr [ebp - 0x9c] */ 4520 ecx = MEM32(ebp + (-0x78)); /* 0x36125004: mov ecx, dword ptr [ebp - 0x78] */ 4521 MEM32(ebp + (-0x28)) = edx; /* 0x36125007: mov dword ptr [ebp - 0x28], edx */ 4522 fp_push(_st[0]); /* 0x3612500A: fld st(0) */ 4523 MEM32(ebp + (-0x24)) = eax; /* 0x3612500C: mov dword ptr [ebp - 0x24], eax */ 4524 _st[0] *= (double)*(float*)ADDR(ebp + (-0x98)); /* 0x3612500F: fmul dword ptr [ebp - 0x98] */ 4525 MEM32(ebp + (-0x20)) = ecx; /* 0x36125015: mov dword ptr [ebp - 0x20], ecx */ 4526 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x36125018: fstp dword ptr [ebp - 0x98] */ 4527 _st[0] *= (double)*(float*)ADDR(ebp + (-0x94)); /* 0x3612501E: fmul dword ptr [ebp - 0x94] */ 4528 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x36125024: fstp dword ptr [ebp - 0x94] */ 4529 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x3612502A: fld dword ptr [ebp - 0xa8] */ 4530 _st[0] *= _st[1]; /* 0x36125030: fmul st(1) */ 4531 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36125032: fstp dword ptr [ebp - 0x68] */ 4532 fp_push(_st[0]); /* 0x36125035: fld st(0) */ 4533 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125037: fmul dword ptr [ebp - 0x64] */ 4534 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x3612503A: fstp dword ptr [ebp - 0x64] */ 4535 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x3612503D: fmul dword ptr [ebp - 0x60] */ 4536 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36125040: fld dword ptr [ebp - 0x68] */ 4537 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125043: fadd dword ptr [ebp - 0x80] */ 4538 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36125046: fstp dword ptr [ebp - 0x28] */ 4539 edx = MEM32(ebp + (-0x28)); /* 0x36125049: mov edx, dword ptr [ebp - 0x28] */ 4540 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3612504C: fld dword ptr [ebp - 0x24] */ 4541 MEM32(ebp + (-0x5C)) = edx; /* 0x3612504F: mov dword ptr [ebp - 0x5c], edx */ 4542 _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125052: fadd dword ptr [ebp - 0x64] */ 4543 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36125055: fstp dword ptr [ebp - 0x24] */ 4544 eax = MEM32(ebp + (-0x24)); /* 0x36125058: mov eax, dword ptr [ebp - 0x24] */ 4545 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3612505B: fld dword ptr [ebp - 0x20] */ 4546 MEM32(ebp + (-0x58)) = eax; /* 0x3612505E: mov dword ptr [ebp - 0x58], eax */ 4547 _st[0] += _st[1]; /* 0x36125061: fadd st(1) */ 4548 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36125063: fstp dword ptr [ebp - 0x20] */ 4549 ecx = MEM32(ebp + (-0x20)); /* 0x36125066: mov ecx, dword ptr [ebp - 0x20] */ 4550 MEM32(ebp + (-0x54)) = ecx; /* 0x36125069: mov dword ptr [ebp - 0x54], ecx */ 4551 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3612506C: fstp st(0) */ 4552 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3612506E: fld dword ptr [ebp - 0x28] */ 4553 _st[0] += (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x36125071: fadd dword ptr [ebp - 0x9c] */ 4554 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36125077: fstp dword ptr [ebp - 0x5c] */ 4555 eax = MEM32(ebp + (-0x5C)); /* 0x3612507A: mov eax, dword ptr [ebp - 0x5c] */ 4556 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x3612507D: fld dword ptr [ebp - 0x58] */ 4557 _st[0] += (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125080: fadd dword ptr [ebp - 0x98] */ 4558 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x36125086: fstp dword ptr [ebp - 0x58] */ 4559 ecx = MEM32(ebp + (-0x58)); /* 0x36125089: mov ecx, dword ptr [ebp - 0x58] */ 4560 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x3612508C: fld dword ptr [ebp - 0x54] */ 4561 _st[0] += (double)*(float*)ADDR(ebp + (-0x94)); /* 0x3612508F: fadd dword ptr [ebp - 0x94] */ 4562 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36125095: fstp dword ptr [ebp - 0x54] */ 4563 edx = MEM32(ebp + (-0x54)); /* 0x36125098: mov edx, dword ptr [ebp - 0x54] */ 4564 MEM32(ebp + (-0xEC)) = edx; /* 0x3612509B: mov dword ptr [ebp - 0xec], edx */ 4565 edx = edi; /* 0x361250A1: mov edx, edi */ 4566 MEM32(edx) = eax; /* 0x361250A3: mov dword ptr [edx], eax */ 4567 MEM32(edx + 0x4) = ecx; /* 0x361250A5: mov dword ptr [edx + 4], ecx */ 4568 eax = MEM32(ebp + (-0xEC)); /* 0x361250A8: mov eax, dword ptr [ebp - 0xec] */ 4569 MEM32(edx + 0x8) = eax; /* 0x361250AE: mov dword ptr [edx + 8], eax */ 4570 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361250B1: fld dword ptr [ebp - 0x18] */ 4571 MEM32(ebp + (-0x90)) = 0; /* 0x361250B4: mov dword ptr [ebp - 0x90], 0 */ 4572 edx = MEM32(ebp + (-0x90)); /* 0x361250BE: mov edx, dword ptr [ebp - 0x90] */ 4573 MEM32(ebp + (-0x8C)) = 0; /* 0x361250C4: mov dword ptr [ebp - 0x8c], 0 */ 4574 MEM32(ebp + (-0x88)) = 0; /* 0x361250CE: mov dword ptr [ebp - 0x88], 0 */ 4575 ecx = edi + (-0x600); /* 0x361250D8: lea ecx, [edi - 0x600] */ 4576 MEM32(ecx) = edx; /* 0x361250DE: mov dword ptr [ecx], edx */ 4577 eax = MEM32(ebp + (-0x8C)); /* 0x361250E0: mov eax, dword ptr [ebp - 0x8c] */ 4578 MEM32(ecx + 0x4) = eax; /* 0x361250E6: mov dword ptr [ecx + 4], eax */ 4579 edx = MEM32(ebp + (-0x88)); /* 0x361250E9: mov edx, dword ptr [ebp - 0x88] */ 4580 eax = MEM32(ebp + (-0x8)); /* 0x361250EF: mov eax, dword ptr [ebp - 8] */ 4581 MEM32(ecx + 0x8) = edx; /* 0x361250F2: mov dword ptr [ecx + 8], edx */ 4582 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x361250F5: fadd dword ptr [esi + 0x16c0] */ 4583 ecx = MEM32(ebp + (-0xC)); /* 0x361250FB: mov ecx, dword ptr [ebp - 0xc] */ 4584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4585 ecx = ecx + 1; /* 0x361250FE: inc ecx */ 4586 _flag_k = FK_INC; 4587 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x361250FF: fstp dword ptr [eax] */ 4588 eax = MEM32(ebp + (-0x1C)); /* 0x36125101: mov eax, dword ptr [ebp - 0x1c] */ 4589 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4590 eax = eax - 1; /* 0x36125104: dec eax */ 4591 _flag_k = FK_DEC; 4592 MEM32(ebp + (-0xC)) = ecx; /* 0x36125105: mov dword ptr [ebp - 0xc], ecx */ 4593 MEM32(ebp + (-0x1C)) = eax; /* 0x36125108: mov dword ptr [ebp - 0x1c], eax */ 4594 goto L_3612511F; /* 0x3612510B: jmp 0x3612511f */ 4595 L_3612510D: 4596 ecx = MEM32(esi + 0x38); /* 0x3612510D: mov ecx, dword ptr [esi + 0x38] */ 4597 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x36125110: mov byte ptr [ecx + ebx + 0x1c], 0 */ 4598 goto L_3612511F; /* 0x36125115: jmp 0x3612511f */ 4599 L_36125117: 4600 edx = MEM32(esi + 0x38); /* 0x36125117: mov edx, dword ptr [esi + 0x38] */ 4601 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612511A: mov byte ptr [edx + ebx + 0x1c], 0 */ 4602 L_3612511F: 4603 edx = MEM32(ebp + (-0x8)); /* 0x3612511F: mov edx, dword ptr [ebp - 8] */ 4604 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 4605 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4606 edx = edx + 4; /* 0x36125122: add edx, 4 */ 4607 _flag_k = FK_ADD; 4608 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 4609 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4610 ebx = ebx + 0x20u; /* 0x36125125: add ebx, 0x20 */ 4611 _flag_k = FK_ADD; 4612 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 4613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4614 edi = edi + 0xCu; /* 0x36125128: add edi, 0xc */ 4615 _flag_k = FK_ADD; 4616 /* cmp ebx, 0x1000u */ /* 0x3612512B: cmp ebx, 0x1000 */ 4617 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 4618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4619 _flag_k = FK_CMP; 4620 MEM32(ebp + (-0x8)) = edx; /* 0x36125131: mov dword ptr [ebp - 8], edx */ 4621 RECOMP_BACKEDGE(); 4622 if (CMP_L(_flag_a, _flag_b)) goto L_36124C34; /* 0x36125134: jl 0x36124c34 */ 4623 L_3612513A: 4624 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x3612513A: mov al, byte ptr [esi + 0x163c] */ 4625 /* test LO8(eax), LO8(eax) */ /* 0x36125140: test al, al */ 4626 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4627 _cf = 0; 4628 _flag_k = FK_NARROW(FK_TEST, 24); 4629 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36125142: je 0x361275ac */ 4630 L_36125148: 4631 eax = MEM32(ebp + (-0xC)); /* 0x36125148: mov eax, dword ptr [ebp - 0xc] */ 4632 /* test eax, eax */ /* 0x3612514B: test eax, eax */ 4633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4634 _cf = 0; 4635 _flag_k = FK_TEST; 4636 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612514D: jne 0x361275ac */ 4637 L_36125153: 4638 goto L_361275A8; /* 0x36125153: jmp 0x361275a8 */ 4639 L_361275A8: 4640 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 4641 L_361275AC: 4642 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 4643 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 4644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4645 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 4646 _flag_k = FK_ADD; 4647 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 4648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4649 _cf = 0; 4650 _flag_k = FK_TEST; 4651 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 4652 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 4653 L_361275B7: 4654 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 4655 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 4656 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 4657 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 4658 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 4659 RECOMP_FLAGS_IN(); 4660 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 4661 PUSH32(esp, eax); /* 0x361275CD: push eax */ 4662 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 4663 RECOMP_FLAGS_IN(); 4664 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 4665 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 4666 RECOMP_FLAGS_IN(); 4667 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 4668 PUSH32(esp, eax); /* 0x361275E2: push eax */ 4669 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 4670 RECOMP_FLAGS_IN(); 4671 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 4672 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 4673 RECOMP_FLAGS_IN(); 4674 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 4675 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4676 _cf = (LO8(eax)) != 0; 4677 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 4678 _flag_k = FK_NARROW(FK_CMP, 24); 4679 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 4680 eax = _sc ? 0xFFFFFFFFu : 0; 4681 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4682 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4683 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4684 eax = eax + 1; /* 0x361275F6: inc eax */ 4685 _flag_k = FK_INC; 4686 PUSH32(esp, eax); /* 0x361275F7: push eax */ 4687 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 4688 RECOMP_FLAGS_IN(); 4689 L_361275FE: 4690 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 4691 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 4692 esp = ebp; /* 0x36127600: mov esp, ebp */ 4693 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 4694 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 4695 RECOMP_REGS_OUT(); 4696 } 4697 4698 void sub_3612511F(void) { 4699 int _fpu_cmp = 0; 4700 uint32_t _cf = 0; 4701 int _df = 1; 4702 uint32_t _flag_k = FK_NONE; 4703 uint32_t _flag_a = 0, _flag_b = 0; 4704 uint32_t _itail_tgt = 0; 4705 RECOMP_REGS_LOCALS 4706 RECOMP_ENTER(0x3612511Fu); 4707 4708 goto L_3612511F; 4709 L_36124C34: 4710 edx = MEM32(ebp + (-0x8)); /* 0x36124C34: mov edx, dword ptr [ebp - 8] */ 4711 fp_push(*(float*)&MEM32(edx)); /* 0x36124C37: fld dword ptr [edx] */ 4712 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x36124C39: fcomp dword ptr [ebp - 0x18] */ 4713 fp_pop(); 4714 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36124C3C: fnstsw ax */ 4715 /* test HI8(eax), 0x41u */ /* 0x36124C3E: test ah, 0x41 */ 4716 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4717 _cf = 0; 4718 _flag_k = FK_NARROW(FK_TEST, 24); 4719 if (TEST_NZ(_flag_a, _flag_b)) goto L_36124CEB; /* 0x36124C41: jne 0x36124ceb */ 4720 L_36124C47: 4721 ecx = MEM32(esi + 0x38); /* 0x36124C47: mov ecx, dword ptr [esi + 0x38] */ 4722 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36124C4A: fld dword ptr [ebp - 0x18] */ 4723 eax = ebx; /* 0x36124C4D: mov eax, ebx */ 4724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4725 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4726 eax = eax + ecx; /* 0x36124C4F: add eax, ecx */ 4727 _flag_k = FK_ADD; 4728 ecx = edi; /* 0x36124C51: mov ecx, edi */ 4729 edx = MEM32(ecx); /* 0x36124C53: mov edx, dword ptr [ecx] */ 4730 MEM32(eax) = edx; /* 0x36124C55: mov dword ptr [eax], edx */ 4731 edx = MEM32(ecx + 0x4); /* 0x36124C57: mov edx, dword ptr [ecx + 4] */ 4732 MEM32(eax + 0x4) = edx; /* 0x36124C5A: mov dword ptr [eax + 4], edx */ 4733 ecx = MEM32(ecx + 0x8); /* 0x36124C5D: mov ecx, dword ptr [ecx + 8] */ 4734 edx = MEM32(ebp + (-0x8)); /* 0x36124C60: mov edx, dword ptr [ebp - 8] */ 4735 MEM32(eax + 0x8) = ecx; /* 0x36124C63: mov dword ptr [eax + 8], ecx */ 4736 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124C66: fadd dword ptr [esi + 0x16c0] */ 4737 eax = MEM32(esi + 0x38); /* 0x36124C6C: mov eax, dword ptr [esi + 0x38] */ 4738 _st[0] -= (double)*(float*)ADDR(edx); /* 0x36124C6F: fsub dword ptr [edx] */ 4739 edx = MEM32(ebp + (-0x10)); /* 0x36124C71: mov edx, dword ptr [ebp - 0x10] */ 4740 PUSH32(esp, edx); /* 0x36124C74: push edx */ 4741 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36124C75: fdiv dword ptr [esi + 0x16c0] */ 4742 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36124C7B: fst dword ptr [ebp - 4] */ 4743 _st[0] += _st[0]; /* 0x36124C7E: fadd st(0), st(0) */ 4744 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36124C80: fsubr dword ptr [0x36170380] */ 4745 fp_push(_st[0]); /* 0x36124C86: fld st(0) */ 4746 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36124C88: fmulp st(1) */ 4747 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36124C8A: fsubr dword ptr [0x36170380] */ 4748 fp_push(_st[0]); /* 0x36124C90: fld st(0) */ 4749 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36124C92: fmul dword ptr [esi + 0x16c8] */ 4750 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x36124C98: fstp dword ptr [ebx + eax + 0xc] */ 4751 ecx = MEM32(esi + 0x38); /* 0x36124C9C: mov ecx, dword ptr [esi + 0x38] */ 4752 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36124C9F: fmul dword ptr [esi + 0x16c8] */ 4753 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x36124CA5: fstp dword ptr [ebx + ecx + 0x10] */ 4754 ecx = esi + 0x168C; /* 0x36124CA9: lea ecx, [esi + 0x168c] */ 4755 RECOMP_ICALL(0x36137D80u); /* 0x36124CAF: call 0x36137d80 */ /* not lifted */ 4756 RECOMP_FLAGS_IN(); 4757 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36124CB4: fld dword ptr [ebp - 4] */ 4758 ecx = MEM32(esi + 0x38); /* 0x36124CB7: mov ecx, dword ptr [esi + 0x38] */ 4759 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x36124CBA: fmul dword ptr [0x36177750] */ 4760 MEM32(ebx + ecx + 0x14) = eax; /* 0x36124CC0: mov dword ptr [ebx + ecx + 0x14], eax */ 4761 RECOMP_ICALL(0x3615FD8Cu); /* 0x36124CC4: call 0x3615fd8c */ /* not lifted */ 4762 RECOMP_FLAGS_IN(); 4763 edx = 0xFu; /* 0x36124CC9: mov edx, 0xf */ 4764 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4766 edx = edx - eax; /* 0x36124CCE: sub edx, eax */ 4767 _flag_k = FK_CMP; 4768 eax = MEM32(esi + 0x38); /* 0x36124CD0: mov eax, dword ptr [esi + 0x38] */ 4769 MEM32(ebx + eax + 0x18) = edx; /* 0x36124CD3: mov dword ptr [ebx + eax + 0x18], edx */ 4770 eax = MEM32(ebp + (-0xC)); /* 0x36124CD7: mov eax, dword ptr [ebp - 0xc] */ 4771 ecx = MEM32(esi + 0x38); /* 0x36124CDA: mov ecx, dword ptr [esi + 0x38] */ 4772 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4773 eax = eax + 1; /* 0x36124CDD: inc eax */ 4774 _flag_k = FK_INC; 4775 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x36124CDE: mov byte ptr [ebx + ecx + 0x1c], 1 */ 4776 MEM32(ebp + (-0xC)) = eax; /* 0x36124CE3: mov dword ptr [ebp - 0xc], eax */ 4777 goto L_3612511F; /* 0x36124CE6: jmp 0x3612511f */ 4778 L_36124CEB: 4779 eax = MEM32(ebp + (-0x1C)); /* 0x36124CEB: mov eax, dword ptr [ebp - 0x1c] */ 4780 /* test eax, eax */ /* 0x36124CEE: test eax, eax */ 4781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4782 _cf = 0; 4783 _flag_k = FK_TEST; 4784 if (TEST_Z(_flag_a, _flag_b)) goto L_36125117; /* 0x36124CF0: je 0x36125117 */ 4785 L_36124CF6: 4786 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36124CF6: mov al, byte ptr [esi + 0x163c] */ 4787 /* test LO8(eax), LO8(eax) */ /* 0x36124CFC: test al, al */ 4788 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4789 _cf = 0; 4790 _flag_k = FK_NARROW(FK_TEST, 24); 4791 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125117; /* 0x36124CFE: jne 0x36125117 */ 4792 L_36124D04: 4793 RECOMP_ICALL(0x360F7B00u); /* 0x36124D04: call 0x360f7b00 */ /* not lifted */ 4794 RECOMP_FLAGS_IN(); 4795 edx = MEM32(esi + 0x28); /* 0x36124D09: mov edx, dword ptr [esi + 0x28] */ 4796 PUSH32(esp, edx); /* 0x36124D0C: push edx */ 4797 ecx = eax; /* 0x36124D0D: mov ecx, eax */ 4798 RECOMP_ICALL(0x360FBF90u); /* 0x36124D0F: call 0x360fbf90 */ /* not lifted */ 4799 RECOMP_FLAGS_IN(); 4800 /* test eax, eax */ /* 0x36124D14: test eax, eax */ 4801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4802 _cf = 0; 4803 _flag_k = FK_TEST; 4804 MEM32(ebp + (-0x4)) = eax; /* 0x36124D16: mov dword ptr [ebp - 4], eax */ 4805 if (TEST_Z(_flag_a, _flag_b)) goto L_3612510D; /* 0x36124D19: je 0x3612510d */ 4806 L_36124D1F: 4807 ecx = MEM32(ebp + (-0x4)); /* 0x36124D1F: mov ecx, dword ptr [ebp - 4] */ 4808 eax = ebp + (-0x330); /* 0x36124D22: lea eax, [ebp - 0x330] */ 4809 PUSH32(esp, eax); /* 0x36124D28: push eax */ 4810 RECOMP_ICALL(0x36131BB0u); /* 0x36124D29: call 0x36131bb0 */ /* not lifted */ 4811 RECOMP_FLAGS_IN(); 4812 ecx = MEM32(eax); /* 0x36124D2E: mov ecx, dword ptr [eax] */ 4813 edx = MEM32(eax + 0x4); /* 0x36124D30: mov edx, dword ptr [eax + 4] */ 4814 eax = MEM32(eax + 0x8); /* 0x36124D33: mov eax, dword ptr [eax + 8] */ 4815 MEM32(ebp + (-0x80)) = ecx; /* 0x36124D36: mov dword ptr [ebp - 0x80], ecx */ 4816 ecx = ebp + (-0x228); /* 0x36124D39: lea ecx, [ebp - 0x228] */ 4817 PUSH32(esp, ecx); /* 0x36124D3F: push ecx */ 4818 ecx = MEM32(ebp + (-0x4)); /* 0x36124D40: mov ecx, dword ptr [ebp - 4] */ 4819 MEM32(ebp + (-0x7C)) = edx; /* 0x36124D43: mov dword ptr [ebp - 0x7c], edx */ 4820 MEM32(ebp + (-0x78)) = eax; /* 0x36124D46: mov dword ptr [ebp - 0x78], eax */ 4821 RECOMP_ICALL(0x36131C00u); /* 0x36124D49: call 0x36131c00 */ /* not lifted */ 4822 RECOMP_FLAGS_IN(); 4823 edx = MEM32(eax); /* 0x36124D4E: mov edx, dword ptr [eax] */ 4824 MEM32(ebp + (-0x38)) = edx; /* 0x36124D50: mov dword ptr [ebp - 0x38], edx */ 4825 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x36124D53: fld dword ptr [ebp - 0x38] */ 4826 ecx = MEM32(eax + 0x4); /* 0x36124D56: mov ecx, dword ptr [eax + 4] */ 4827 _st[0] -= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36124D59: fsub dword ptr [ebp - 0x80] */ 4828 MEM32(ebp + (-0x34)) = ecx; /* 0x36124D5C: mov dword ptr [ebp - 0x34], ecx */ 4829 edx = MEM32(eax + 0x8); /* 0x36124D5F: mov edx, dword ptr [eax + 8] */ 4830 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36124D62: fstp dword ptr [ebp - 0x38] */ 4831 eax = MEM32(ebp + (-0x38)); /* 0x36124D65: mov eax, dword ptr [ebp - 0x38] */ 4832 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36124D68: fld dword ptr [ebp - 0x34] */ 4833 MEM32(ebp + (-0x30)) = edx; /* 0x36124D6B: mov dword ptr [ebp - 0x30], edx */ 4834 _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36124D6E: fsub dword ptr [ebp - 0x7c] */ 4835 MEM32(ebp + (-0xA8)) = eax; /* 0x36124D71: mov dword ptr [ebp - 0xa8], eax */ 4836 eax = ebp + (-0x50); /* 0x36124D77: lea eax, [ebp - 0x50] */ 4837 PUSH32(esp, eax); /* 0x36124D7A: push eax */ 4838 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36124D7B: fstp dword ptr [ebp - 0x34] */ 4839 ecx = MEM32(ebp + (-0x34)); /* 0x36124D7E: mov ecx, dword ptr [ebp - 0x34] */ 4840 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36124D81: fld dword ptr [ebp - 0x30] */ 4841 MEM32(ebp + (-0xA4)) = ecx; /* 0x36124D84: mov dword ptr [ebp - 0xa4], ecx */ 4842 _st[0] -= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36124D8A: fsub dword ptr [ebp - 0x78] */ 4843 ecx = ebp + (-0xA8); /* 0x36124D8D: lea ecx, [ebp - 0xa8] */ 4844 PUSH32(esp, ecx); /* 0x36124D93: push ecx */ 4845 MEM32(ebp + (-0x50)) = 0; /* 0x36124D94: mov dword ptr [ebp - 0x50], 0 */ 4846 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36124D9B: fstp dword ptr [ebp - 0x30] */ 4847 edx = MEM32(ebp + (-0x30)); /* 0x36124D9E: mov edx, dword ptr [ebp - 0x30] */ 4848 MEM32(ebp + (-0xA0)) = edx; /* 0x36124DA1: mov dword ptr [ebp - 0xa0], edx */ 4849 MEM32(ebp + (-0x4C)) = 0; /* 0x36124DA7: mov dword ptr [ebp - 0x4c], 0 */ 4850 MEM32(ebp + (-0x48)) = 0; /* 0x36124DAE: mov dword ptr [ebp - 0x48], 0 */ 4851 RECOMP_ICALL(0x360FCE60u); /* 0x36124DB5: call 0x360fce60 */ /* not lifted */ 4852 RECOMP_FLAGS_IN(); 4853 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36124DBA: fld dword ptr [ebp - 0x4c] */ 4854 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA0)); /* 0x36124DBD: fmul dword ptr [ebp - 0xa0] */ 4855 ecx = MEM32(ebp + (-0x48)); /* 0x36124DC3: mov ecx, dword ptr [ebp - 0x48] */ 4856 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36124DC6: fld dword ptr [ebp - 0x48] */ 4857 edx = MEM32(ebp + (-0x50)); /* 0x36124DC9: mov edx, dword ptr [ebp - 0x50] */ 4858 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA4)); /* 0x36124DCC: fmul dword ptr [ebp - 0xa4] */ 4859 eax = MEM32(ebp + (-0x4C)); /* 0x36124DD2: mov eax, dword ptr [ebp - 0x4c] */ 4860 MEM32(ebp + (-0xD4)) = ecx; /* 0x36124DD5: mov dword ptr [ebp - 0xd4], ecx */ 4861 MEM32(ebp + (-0xDC)) = edx; /* 0x36124DDB: mov dword ptr [ebp - 0xdc], edx */ 4862 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36124DE1: fsubp st(1) */ 4863 MEM32(ebp + (-0xD8)) = eax; /* 0x36124DE3: mov dword ptr [ebp - 0xd8], eax */ 4864 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36124DE9: fld dword ptr [ebp - 0x48] */ 4865 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4867 esp = esp + 8; /* 0x36124DEC: add esp, 8 */ 4868 _flag_k = FK_ADD; 4869 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA8)); /* 0x36124DEF: fmul dword ptr [ebp - 0xa8] */ 4870 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36124DF5: fld dword ptr [ebp - 0x50] */ 4871 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA0)); /* 0x36124DF8: fmul dword ptr [ebp - 0xa0] */ 4872 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36124DFE: fsubp st(1) */ 4873 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36124E00: fld dword ptr [ebp - 0x50] */ 4874 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA4)); /* 0x36124E03: fmul dword ptr [ebp - 0xa4] */ 4875 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36124E09: fld dword ptr [ebp - 0x4c] */ 4876 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA8)); /* 0x36124E0C: fmul dword ptr [ebp - 0xa8] */ 4877 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36124E12: fsubp st(1) */ 4878 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x36124E14: fstp dword ptr [ebp - 0xd4] */ 4879 ecx = MEM32(ebp + (-0xD4)); /* 0x36124E1A: mov ecx, dword ptr [ebp - 0xd4] */ 4880 fp_push(_st[1]); /* 0x36124E20: fld st(1) */ 4881 MEM32(ebp + (-0x3C)) = ecx; /* 0x36124E22: mov dword ptr [ebp - 0x3c], ecx */ 4882 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36124E25: fstp dword ptr [ebp - 0xdc] */ 4883 edx = MEM32(ebp + (-0xDC)); /* 0x36124E2B: mov edx, dword ptr [ebp - 0xdc] */ 4884 MEM32(ebp + (-0x44)) = edx; /* 0x36124E31: mov dword ptr [ebp - 0x44], edx */ 4885 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36124E34: fst dword ptr [ebp - 0xd8] */ 4886 eax = MEM32(ebp + (-0xD8)); /* 0x36124E3A: mov eax, dword ptr [ebp - 0xd8] */ 4887 fp_push(_st[0]); /* 0x36124E40: fld st(0) */ 4888 MEM32(ebp + (-0x40)) = eax; /* 0x36124E42: mov dword ptr [ebp - 0x40], eax */ 4889 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36124E45: fmulp st(1) */ 4890 fp_push(_st[1]); /* 0x36124E47: fld st(1) */ 4891 _st[0] *= _st[2]; /* 0x36124E49: fmul st(2) */ 4892 { double _v = fp_pop(); _st[0] += _v; } /* 0x36124E4B: faddp st(1) */ 4893 fp_push(*(float*)&MEM32(ebp + (-0xD4))); /* 0x36124E4D: fld dword ptr [ebp - 0xd4] */ 4894 _st[0] *= (double)*(float*)ADDR(ebp + (-0xD4)); /* 0x36124E53: fmul dword ptr [ebp - 0xd4] */ 4895 { double _v = fp_pop(); _st[0] += _v; } /* 0x36124E59: faddp st(1) */ 4896 _st[0] = sqrt(_st[0]); /* 0x36124E5B: fsqrt */ 4897 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36124E5D: fdivr dword ptr [0x36170380] */ 4898 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36124E63: fst dword ptr [ebp - 4] */ 4899 _st[0] *= _st[1]; /* 0x36124E66: fmul st(1) */ 4900 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36124E68: fstp dword ptr [ebp - 0x44] */ 4901 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36124E6B: fstp st(0) */ 4902 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36124E6D: fld dword ptr [ebp - 4] */ 4903 _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36124E70: fmul dword ptr [ebp - 0x40] */ 4904 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36124E73: fstp dword ptr [ebp - 0x40] */ 4905 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36124E76: fld dword ptr [ebp - 4] */ 4906 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36124E79: fmul dword ptr [ebp - 0x3c] */ 4907 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36124E7C: fstp dword ptr [ebp - 0x3c] */ 4908 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36124E7F: call dword ptr [0x3616f254] */ 4909 RECOMP_FLAGS_IN(); 4910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 4911 eax = eax & 0x7FFFu; /* 0x36124E85: and eax, 0x7fff */ 4912 _cf = 0; 4913 _flag_k = FK_TEST; 4914 MEM32(ebp + (-0x84)) = eax; /* 0x36124E8A: mov dword ptr [ebp - 0x84], eax */ 4915 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x36124E90: fild dword ptr [ebp - 0x84] */ 4916 edx = MEM32(ebp + (-0x44)); /* 0x36124E96: mov edx, dword ptr [ebp - 0x44] */ 4917 eax = MEM32(ebp + (-0x40)); /* 0x36124E99: mov eax, dword ptr [ebp - 0x40] */ 4918 ecx = MEM32(ebp + (-0x3C)); /* 0x36124E9C: mov ecx, dword ptr [ebp - 0x3c] */ 4919 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36124E9F: fmul dword ptr [0x36175f2c] */ 4920 MEM32(ebp + (-0xC0)) = edx; /* 0x36124EA5: mov dword ptr [ebp - 0xc0], edx */ 4921 MEM32(ebp + (-0xBC)) = eax; /* 0x36124EAB: mov dword ptr [ebp - 0xbc], eax */ 4922 MEM32(ebp + (-0xB8)) = ecx; /* 0x36124EB1: mov dword ptr [ebp - 0xb8], ecx */ 4923 fp_push(_st[0]); /* 0x36124EB7: fld st(0) */ 4924 edx = MEM32(ebp + (-0x50)); /* 0x36124EB9: mov edx, dword ptr [ebp - 0x50] */ 4925 _st[0] += _st[0]; /* 0x36124EBC: fadd st(0), st(0) */ 4926 eax = MEM32(ebp + (-0x4C)); /* 0x36124EBE: mov eax, dword ptr [ebp - 0x4c] */ 4927 ecx = MEM32(ebp + (-0x48)); /* 0x36124EC1: mov ecx, dword ptr [ebp - 0x48] */ 4928 MEM32(ebp + (-0xB4)) = edx; /* 0x36124EC4: mov dword ptr [ebp - 0xb4], edx */ 4929 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36124ECA: fsubr dword ptr [0x36170380] */ 4930 MEM32(ebp + (-0xB0)) = eax; /* 0x36124ED0: mov dword ptr [ebp - 0xb0], eax */ 4931 MEM32(ebp + (-0xAC)) = ecx; /* 0x36124ED6: mov dword ptr [ebp - 0xac], ecx */ 4932 fp_push(_st[0]); /* 0x36124EDC: fld st(0) */ 4933 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36124EDE: fmulp st(1) */ 4934 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36124EE0: fsubr dword ptr [0x36170380] */ 4935 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36124EE6: fmul dword ptr [0x36170464] */ 4936 fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x36124EEC: fld dword ptr [ebp - 0xa4] */ 4937 fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x36124EF2: fld dword ptr [ebp - 0xa0] */ 4938 fp_push(_st[0]); /* 0x36124EF8: fld st(0) */ 4939 _st[0] *= _st[1]; /* 0x36124EFA: fmul st(1) */ 4940 fp_push(_st[2]); /* 0x36124EFC: fld st(2) */ 4941 _st[0] *= _st[3]; /* 0x36124EFE: fmul st(3) */ 4942 { double _v = fp_pop(); _st[0] += _v; } /* 0x36124F00: faddp st(1) */ 4943 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36124F02: fld dword ptr [ebp - 0xa8] */ 4944 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA8)); /* 0x36124F08: fmul dword ptr [ebp - 0xa8] */ 4945 { double _v = fp_pop(); _st[0] += _v; } /* 0x36124F0E: faddp st(1) */ 4946 _st[0] = sqrt(_st[0]); /* 0x36124F10: fsqrt */ 4947 { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x36124F12: fstp st(2) */ 4948 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36124F14: fstp st(0) */ 4949 _st[0] *= _st[2]; /* 0x36124F16: fmul st(2) */ 4950 _st[0] += _st[0]; /* 0x36124F18: fadd st(0), st(0) */ 4951 _st[0] += (double)*(float*)ADDR(esi + 0x16CC); /* 0x36124F1A: fadd dword ptr [esi + 0x16cc] */ 4952 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36124F20: fld dword ptr [ebp - 0x10] */ 4953 _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36124F23: fmul dword ptr [0x36170eb8] */ 4954 { double _v = fp_pop(); _st[0] += _v; } /* 0x36124F29: faddp st(1) */ 4955 fp_push(_st[0]); /* 0x36124F2B: fld st(0) */ 4956 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36124F2D: fcos */ 4957 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36124F2F: fld dword ptr [ebp - 0x44] */ 4958 _st[0] *= _st[1]; /* 0x36124F32: fmul st(1) */ 4959 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC0)) = _v; } /* 0x36124F34: fstp dword ptr [ebp - 0xc0] */ 4960 fp_push(_st[0]); /* 0x36124F3A: fld st(0) */ 4961 _st[0] *= (double)*(float*)ADDR(ebp + (-0xBC)); /* 0x36124F3C: fmul dword ptr [ebp - 0xbc] */ 4962 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xBC)) = _v; } /* 0x36124F42: fstp dword ptr [ebp - 0xbc] */ 4963 _st[0] *= (double)*(float*)ADDR(ebp + (-0xB8)); /* 0x36124F48: fmul dword ptr [ebp - 0xb8] */ 4964 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36124F4E: fstp dword ptr [ebp - 0xb8] */ 4965 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36124F54: fsin */ 4966 fp_push(_st[0]); /* 0x36124F56: fld st(0) */ 4967 _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36124F58: fmul dword ptr [ebp - 0x50] */ 4968 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x36124F5B: fstp dword ptr [ebp - 0xb4] */ 4969 edx = MEM32(ebp + (-0xB4)); /* 0x36124F61: mov edx, dword ptr [ebp - 0xb4] */ 4970 fp_push(_st[0]); /* 0x36124F67: fld st(0) */ 4971 _st[0] *= (double)*(float*)ADDR(ebp + (-0xB0)); /* 0x36124F69: fmul dword ptr [ebp - 0xb0] */ 4972 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x36124F6F: fstp dword ptr [ebp - 0xb0] */ 4973 _st[0] *= (double)*(float*)ADDR(ebp + (-0xAC)); /* 0x36124F75: fmul dword ptr [ebp - 0xac] */ 4974 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x36124F7B: fstp dword ptr [ebp - 0xac] */ 4975 fp_push(*(float*)&MEM32(ebp + (-0xB4))); /* 0x36124F81: fld dword ptr [ebp - 0xb4] */ 4976 eax = MEM32(ebp + (-0xB0)); /* 0x36124F87: mov eax, dword ptr [ebp - 0xb0] */ 4977 _st[0] += (double)*(float*)ADDR(ebp + (-0xC0)); /* 0x36124F8D: fadd dword ptr [ebp - 0xc0] */ 4978 ecx = MEM32(ebp + (-0xAC)); /* 0x36124F93: mov ecx, dword ptr [ebp - 0xac] */ 4979 MEM32(ebp + (-0x74)) = edx; /* 0x36124F99: mov dword ptr [ebp - 0x74], edx */ 4980 MEM32(ebp + (-0x70)) = eax; /* 0x36124F9C: mov dword ptr [ebp - 0x70], eax */ 4981 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36124F9F: fstp dword ptr [ebp - 0x74] */ 4982 edx = MEM32(ebp + (-0x74)); /* 0x36124FA2: mov edx, dword ptr [ebp - 0x74] */ 4983 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36124FA5: fld dword ptr [ebp - 0x70] */ 4984 MEM32(ebp + (-0x6C)) = ecx; /* 0x36124FA8: mov dword ptr [ebp - 0x6c], ecx */ 4985 _st[0] += (double)*(float*)ADDR(ebp + (-0xBC)); /* 0x36124FAB: fadd dword ptr [ebp - 0xbc] */ 4986 MEM32(ebp + (-0x9C)) = edx; /* 0x36124FB1: mov dword ptr [ebp - 0x9c], edx */ 4987 edx = MEM32(ebp + (-0xA8)); /* 0x36124FB7: mov edx, dword ptr [ebp - 0xa8] */ 4988 MEM32(ebp + (-0x68)) = edx; /* 0x36124FBD: mov dword ptr [ebp - 0x68], edx */ 4989 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36124FC0: fstp dword ptr [ebp - 0x70] */ 4990 eax = MEM32(ebp + (-0x70)); /* 0x36124FC3: mov eax, dword ptr [ebp - 0x70] */ 4991 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36124FC6: fld dword ptr [ebp - 0x6c] */ 4992 MEM32(ebp + (-0x98)) = eax; /* 0x36124FC9: mov dword ptr [ebp - 0x98], eax */ 4993 _st[0] += (double)*(float*)ADDR(ebp + (-0xB8)); /* 0x36124FCF: fadd dword ptr [ebp - 0xb8] */ 4994 eax = MEM32(ebp + (-0xA4)); /* 0x36124FD5: mov eax, dword ptr [ebp - 0xa4] */ 4995 edx = MEM32(ebp + (-0x80)); /* 0x36124FDB: mov edx, dword ptr [ebp - 0x80] */ 4996 MEM32(ebp + (-0x64)) = eax; /* 0x36124FDE: mov dword ptr [ebp - 0x64], eax */ 4997 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36124FE1: fstp dword ptr [ebp - 0x6c] */ 4998 ecx = MEM32(ebp + (-0x6C)); /* 0x36124FE4: mov ecx, dword ptr [ebp - 0x6c] */ 4999 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36124FE7: fld dword ptr [ebp - 0x74] */ 5000 MEM32(ebp + (-0x94)) = ecx; /* 0x36124FEA: mov dword ptr [ebp - 0x94], ecx */ 5001 _st[0] *= _st[1]; /* 0x36124FF0: fmul st(1) */ 5002 ecx = MEM32(ebp + (-0xA0)); /* 0x36124FF2: mov ecx, dword ptr [ebp - 0xa0] */ 5003 eax = MEM32(ebp + (-0x7C)); /* 0x36124FF8: mov eax, dword ptr [ebp - 0x7c] */ 5004 MEM32(ebp + (-0x60)) = ecx; /* 0x36124FFB: mov dword ptr [ebp - 0x60], ecx */ 5005 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36124FFE: fstp dword ptr [ebp - 0x9c] */ 5006 ecx = MEM32(ebp + (-0x78)); /* 0x36125004: mov ecx, dword ptr [ebp - 0x78] */ 5007 MEM32(ebp + (-0x28)) = edx; /* 0x36125007: mov dword ptr [ebp - 0x28], edx */ 5008 fp_push(_st[0]); /* 0x3612500A: fld st(0) */ 5009 MEM32(ebp + (-0x24)) = eax; /* 0x3612500C: mov dword ptr [ebp - 0x24], eax */ 5010 _st[0] *= (double)*(float*)ADDR(ebp + (-0x98)); /* 0x3612500F: fmul dword ptr [ebp - 0x98] */ 5011 MEM32(ebp + (-0x20)) = ecx; /* 0x36125015: mov dword ptr [ebp - 0x20], ecx */ 5012 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x36125018: fstp dword ptr [ebp - 0x98] */ 5013 _st[0] *= (double)*(float*)ADDR(ebp + (-0x94)); /* 0x3612501E: fmul dword ptr [ebp - 0x94] */ 5014 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x36125024: fstp dword ptr [ebp - 0x94] */ 5015 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x3612502A: fld dword ptr [ebp - 0xa8] */ 5016 _st[0] *= _st[1]; /* 0x36125030: fmul st(1) */ 5017 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36125032: fstp dword ptr [ebp - 0x68] */ 5018 fp_push(_st[0]); /* 0x36125035: fld st(0) */ 5019 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125037: fmul dword ptr [ebp - 0x64] */ 5020 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x3612503A: fstp dword ptr [ebp - 0x64] */ 5021 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x3612503D: fmul dword ptr [ebp - 0x60] */ 5022 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36125040: fld dword ptr [ebp - 0x68] */ 5023 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125043: fadd dword ptr [ebp - 0x80] */ 5024 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36125046: fstp dword ptr [ebp - 0x28] */ 5025 edx = MEM32(ebp + (-0x28)); /* 0x36125049: mov edx, dword ptr [ebp - 0x28] */ 5026 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3612504C: fld dword ptr [ebp - 0x24] */ 5027 MEM32(ebp + (-0x5C)) = edx; /* 0x3612504F: mov dword ptr [ebp - 0x5c], edx */ 5028 _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125052: fadd dword ptr [ebp - 0x64] */ 5029 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36125055: fstp dword ptr [ebp - 0x24] */ 5030 eax = MEM32(ebp + (-0x24)); /* 0x36125058: mov eax, dword ptr [ebp - 0x24] */ 5031 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3612505B: fld dword ptr [ebp - 0x20] */ 5032 MEM32(ebp + (-0x58)) = eax; /* 0x3612505E: mov dword ptr [ebp - 0x58], eax */ 5033 _st[0] += _st[1]; /* 0x36125061: fadd st(1) */ 5034 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36125063: fstp dword ptr [ebp - 0x20] */ 5035 ecx = MEM32(ebp + (-0x20)); /* 0x36125066: mov ecx, dword ptr [ebp - 0x20] */ 5036 MEM32(ebp + (-0x54)) = ecx; /* 0x36125069: mov dword ptr [ebp - 0x54], ecx */ 5037 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3612506C: fstp st(0) */ 5038 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3612506E: fld dword ptr [ebp - 0x28] */ 5039 _st[0] += (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x36125071: fadd dword ptr [ebp - 0x9c] */ 5040 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36125077: fstp dword ptr [ebp - 0x5c] */ 5041 eax = MEM32(ebp + (-0x5C)); /* 0x3612507A: mov eax, dword ptr [ebp - 0x5c] */ 5042 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x3612507D: fld dword ptr [ebp - 0x58] */ 5043 _st[0] += (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125080: fadd dword ptr [ebp - 0x98] */ 5044 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x36125086: fstp dword ptr [ebp - 0x58] */ 5045 ecx = MEM32(ebp + (-0x58)); /* 0x36125089: mov ecx, dword ptr [ebp - 0x58] */ 5046 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x3612508C: fld dword ptr [ebp - 0x54] */ 5047 _st[0] += (double)*(float*)ADDR(ebp + (-0x94)); /* 0x3612508F: fadd dword ptr [ebp - 0x94] */ 5048 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36125095: fstp dword ptr [ebp - 0x54] */ 5049 edx = MEM32(ebp + (-0x54)); /* 0x36125098: mov edx, dword ptr [ebp - 0x54] */ 5050 MEM32(ebp + (-0xEC)) = edx; /* 0x3612509B: mov dword ptr [ebp - 0xec], edx */ 5051 edx = edi; /* 0x361250A1: mov edx, edi */ 5052 MEM32(edx) = eax; /* 0x361250A3: mov dword ptr [edx], eax */ 5053 MEM32(edx + 0x4) = ecx; /* 0x361250A5: mov dword ptr [edx + 4], ecx */ 5054 eax = MEM32(ebp + (-0xEC)); /* 0x361250A8: mov eax, dword ptr [ebp - 0xec] */ 5055 MEM32(edx + 0x8) = eax; /* 0x361250AE: mov dword ptr [edx + 8], eax */ 5056 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361250B1: fld dword ptr [ebp - 0x18] */ 5057 MEM32(ebp + (-0x90)) = 0; /* 0x361250B4: mov dword ptr [ebp - 0x90], 0 */ 5058 edx = MEM32(ebp + (-0x90)); /* 0x361250BE: mov edx, dword ptr [ebp - 0x90] */ 5059 MEM32(ebp + (-0x8C)) = 0; /* 0x361250C4: mov dword ptr [ebp - 0x8c], 0 */ 5060 MEM32(ebp + (-0x88)) = 0; /* 0x361250CE: mov dword ptr [ebp - 0x88], 0 */ 5061 ecx = edi + (-0x600); /* 0x361250D8: lea ecx, [edi - 0x600] */ 5062 MEM32(ecx) = edx; /* 0x361250DE: mov dword ptr [ecx], edx */ 5063 eax = MEM32(ebp + (-0x8C)); /* 0x361250E0: mov eax, dword ptr [ebp - 0x8c] */ 5064 MEM32(ecx + 0x4) = eax; /* 0x361250E6: mov dword ptr [ecx + 4], eax */ 5065 edx = MEM32(ebp + (-0x88)); /* 0x361250E9: mov edx, dword ptr [ebp - 0x88] */ 5066 eax = MEM32(ebp + (-0x8)); /* 0x361250EF: mov eax, dword ptr [ebp - 8] */ 5067 MEM32(ecx + 0x8) = edx; /* 0x361250F2: mov dword ptr [ecx + 8], edx */ 5068 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x361250F5: fadd dword ptr [esi + 0x16c0] */ 5069 ecx = MEM32(ebp + (-0xC)); /* 0x361250FB: mov ecx, dword ptr [ebp - 0xc] */ 5070 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5071 ecx = ecx + 1; /* 0x361250FE: inc ecx */ 5072 _flag_k = FK_INC; 5073 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x361250FF: fstp dword ptr [eax] */ 5074 eax = MEM32(ebp + (-0x1C)); /* 0x36125101: mov eax, dword ptr [ebp - 0x1c] */ 5075 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5076 eax = eax - 1; /* 0x36125104: dec eax */ 5077 _flag_k = FK_DEC; 5078 MEM32(ebp + (-0xC)) = ecx; /* 0x36125105: mov dword ptr [ebp - 0xc], ecx */ 5079 MEM32(ebp + (-0x1C)) = eax; /* 0x36125108: mov dword ptr [ebp - 0x1c], eax */ 5080 goto L_3612511F; /* 0x3612510B: jmp 0x3612511f */ 5081 L_3612510D: 5082 ecx = MEM32(esi + 0x38); /* 0x3612510D: mov ecx, dword ptr [esi + 0x38] */ 5083 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x36125110: mov byte ptr [ecx + ebx + 0x1c], 0 */ 5084 goto L_3612511F; /* 0x36125115: jmp 0x3612511f */ 5085 L_36125117: 5086 edx = MEM32(esi + 0x38); /* 0x36125117: mov edx, dword ptr [esi + 0x38] */ 5087 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612511A: mov byte ptr [edx + ebx + 0x1c], 0 */ 5088 L_3612511F: 5089 edx = MEM32(ebp + (-0x8)); /* 0x3612511F: mov edx, dword ptr [ebp - 8] */ 5090 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 5091 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5092 edx = edx + 4; /* 0x36125122: add edx, 4 */ 5093 _flag_k = FK_ADD; 5094 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 5095 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5096 ebx = ebx + 0x20u; /* 0x36125125: add ebx, 0x20 */ 5097 _flag_k = FK_ADD; 5098 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 5099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5100 edi = edi + 0xCu; /* 0x36125128: add edi, 0xc */ 5101 _flag_k = FK_ADD; 5102 /* cmp ebx, 0x1000u */ /* 0x3612512B: cmp ebx, 0x1000 */ 5103 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 5104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5105 _flag_k = FK_CMP; 5106 MEM32(ebp + (-0x8)) = edx; /* 0x36125131: mov dword ptr [ebp - 8], edx */ 5107 RECOMP_BACKEDGE(); 5108 if (CMP_L(_flag_a, _flag_b)) goto L_36124C34; /* 0x36125134: jl 0x36124c34 */ 5109 L_3612513A: 5110 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x3612513A: mov al, byte ptr [esi + 0x163c] */ 5111 /* test LO8(eax), LO8(eax) */ /* 0x36125140: test al, al */ 5112 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5113 _cf = 0; 5114 _flag_k = FK_NARROW(FK_TEST, 24); 5115 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36125142: je 0x361275ac */ 5116 L_36125148: 5117 eax = MEM32(ebp + (-0xC)); /* 0x36125148: mov eax, dword ptr [ebp - 0xc] */ 5118 /* test eax, eax */ /* 0x3612514B: test eax, eax */ 5119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5120 _cf = 0; 5121 _flag_k = FK_TEST; 5122 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612514D: jne 0x361275ac */ 5123 L_36125153: 5124 goto L_361275A8; /* 0x36125153: jmp 0x361275a8 */ 5125 L_361275A8: 5126 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 5127 L_361275AC: 5128 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 5129 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 5130 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5131 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 5132 _flag_k = FK_ADD; 5133 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 5134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5135 _cf = 0; 5136 _flag_k = FK_TEST; 5137 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 5138 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 5139 L_361275B7: 5140 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 5141 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 5142 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 5143 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 5144 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 5145 RECOMP_FLAGS_IN(); 5146 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 5147 PUSH32(esp, eax); /* 0x361275CD: push eax */ 5148 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 5149 RECOMP_FLAGS_IN(); 5150 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 5151 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 5152 RECOMP_FLAGS_IN(); 5153 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 5154 PUSH32(esp, eax); /* 0x361275E2: push eax */ 5155 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 5156 RECOMP_FLAGS_IN(); 5157 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 5158 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 5159 RECOMP_FLAGS_IN(); 5160 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 5161 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5162 _cf = (LO8(eax)) != 0; 5163 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 5164 _flag_k = FK_NARROW(FK_CMP, 24); 5165 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 5166 eax = _sc ? 0xFFFFFFFFu : 0; 5167 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5168 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5169 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5170 eax = eax + 1; /* 0x361275F6: inc eax */ 5171 _flag_k = FK_INC; 5172 PUSH32(esp, eax); /* 0x361275F7: push eax */ 5173 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 5174 RECOMP_FLAGS_IN(); 5175 L_361275FE: 5176 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 5177 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 5178 esp = ebp; /* 0x36127600: mov esp, ebp */ 5179 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 5180 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 5181 RECOMP_REGS_OUT(); 5182 } 5183 5184 void sub_36125188(void) { 5185 int _fpu_cmp = 0; 5186 uint32_t _cf = 0; 5187 int _df = 1; 5188 uint32_t _flag_k = FK_NONE; 5189 uint32_t _flag_a = 0, _flag_b = 0; 5190 uint32_t _itail_tgt = 0; 5191 RECOMP_REGS_LOCALS 5192 RECOMP_ENTER(0x36125188u); 5193 5194 L_36125188: 5195 eax = MEM32(ebp + (-0x14)); /* 0x36125188: mov eax, dword ptr [ebp - 0x14] */ 5196 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3612518B: cdq */ 5197 ecx = 0x11u; /* 0x3612518C: mov ecx, 0x11 */ 5198 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36125191: idiv ecx */ 5199 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5200 else { eax = 0; edx = 0; } } 5201 ecx = MEM32(ebp + (-0x2C)); /* 0x36125193: mov ecx, dword ptr [ebp - 0x2c] */ 5202 eax = 0x78787879u; /* 0x36125196: mov eax, 0x78787879 */ 5203 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3612519B: imul edx */ 5204 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5205 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5206 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x3612519D: sar edx, 4 */ 5207 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5208 edx = (uint32_t)((int32_t)edx >> 4u); 5209 eax = edx; /* 0x361251A0: mov eax, edx */ 5210 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361251A2: shr eax, 0x1f */ 5211 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5212 eax = eax >> 31u; /* 0x361251A2: shr eax, 0x1f */ 5213 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5215 edx = edx + eax; /* 0x361251A5: add edx, eax */ 5216 _flag_k = FK_ADD; 5217 MEM32(ebp + (-0x84)) = edx; /* 0x361251A7: mov dword ptr [ebp - 0x84], edx */ 5218 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x361251AD: fild dword ptr [ebp - 0x84] */ 5219 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x361251B3: fsubr dword ptr [0x36170380] */ 5220 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361251B9: fstp dword ptr [ebp - 4] */ 5221 fp_push(*(float*)&MEM32(ecx)); /* 0x361251BC: fld dword ptr [ecx] */ 5222 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x361251BE: fcomp dword ptr [ebp - 0x18] */ 5223 fp_pop(); 5224 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361251C1: fnstsw ax */ 5225 /* test HI8(eax), 0x41u */ /* 0x361251C3: test ah, 0x41 */ 5226 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5227 _cf = 0; 5228 _flag_k = FK_NARROW(FK_TEST, 24); 5229 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125271; /* 0x361251C6: jne 0x36125271 */ 5230 L_361251CC: 5231 edi = MEM32(esi + 0x38); /* 0x361251CC: mov edi, dword ptr [esi + 0x38] */ 5232 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361251CF: fld dword ptr [ebp - 4] */ 5233 eax = MEM32(ebp + (-0x8)); /* 0x361251D2: mov eax, dword ptr [ebp - 8] */ 5234 edx = ebx; /* 0x361251D5: mov edx, ebx */ 5235 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5236 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5237 edx = edx + edi; /* 0x361251D7: add edx, edi */ 5238 _flag_k = FK_ADD; 5239 edi = MEM32(eax); /* 0x361251D9: mov edi, dword ptr [eax] */ 5240 MEM32(edx) = edi; /* 0x361251DB: mov dword ptr [edx], edi */ 5241 edi = MEM32(eax + 0x4); /* 0x361251DD: mov edi, dword ptr [eax + 4] */ 5242 MEM32(edx + 0x4) = edi; /* 0x361251E0: mov dword ptr [edx + 4], edi */ 5243 eax = MEM32(eax + 0x8); /* 0x361251E3: mov eax, dword ptr [eax + 8] */ 5244 MEM32(edx + 0x8) = eax; /* 0x361251E6: mov dword ptr [edx + 8], eax */ 5245 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361251E9: fmul dword ptr [esi + 0x16c0] */ 5246 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x361251EF: fadd dword ptr [ebp - 0x18] */ 5247 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x361251F2: fsub dword ptr [ecx] */ 5248 ecx = MEM32(esi + 0x38); /* 0x361251F4: mov ecx, dword ptr [esi + 0x38] */ 5249 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361251F7: fdiv dword ptr [esi + 0x16c0] */ 5250 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361251FD: fst dword ptr [ebp - 4] */ 5251 _st[0] += _st[0]; /* 0x36125200: fadd st(0), st(0) */ 5252 eax = MEM32(ebp + (-0x4)); /* 0x36125202: mov eax, dword ptr [ebp - 4] */ 5253 PUSH32(esp, eax); /* 0x36125205: push eax */ 5254 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36125206: fsubr dword ptr [0x36170380] */ 5255 fp_push(_st[0]); /* 0x3612520C: fld st(0) */ 5256 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3612520E: fmulp st(1) */ 5257 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36125210: fsubr dword ptr [0x36170380] */ 5258 fp_push(_st[0]); /* 0x36125216: fld st(0) */ 5259 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36125218: fmul dword ptr [esi + 0x16c8] */ 5260 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0xC) = _v; } /* 0x3612521E: fstp dword ptr [ebx + ecx + 0xc] */ 5261 edx = MEM32(esi + 0x38); /* 0x36125222: mov edx, dword ptr [esi + 0x38] */ 5262 ecx = esi + 0x168C; /* 0x36125225: lea ecx, [esi + 0x168c] */ 5263 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x3612522B: fmul dword ptr [esi + 0x16c8] */ 5264 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + edx + 0x10) = _v; } /* 0x36125231: fstp dword ptr [ebx + edx + 0x10] */ 5265 RECOMP_ICALL(0x36137D80u); /* 0x36125235: call 0x36137d80 */ /* not lifted */ 5266 RECOMP_FLAGS_IN(); 5267 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3612523A: fld dword ptr [ebp - 4] */ 5268 ecx = MEM32(esi + 0x38); /* 0x3612523D: mov ecx, dword ptr [esi + 0x38] */ 5269 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x36125240: fmul dword ptr [0x36177750] */ 5270 MEM32(ebx + ecx + 0x14) = eax; /* 0x36125246: mov dword ptr [ebx + ecx + 0x14], eax */ 5271 RECOMP_ICALL(0x3615FD8Cu); /* 0x3612524A: call 0x3615fd8c */ /* not lifted */ 5272 RECOMP_FLAGS_IN(); 5273 edx = 0xFu; /* 0x3612524F: mov edx, 0xf */ 5274 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5276 edx = edx - eax; /* 0x36125254: sub edx, eax */ 5277 _flag_k = FK_CMP; 5278 eax = MEM32(esi + 0x38); /* 0x36125256: mov eax, dword ptr [esi + 0x38] */ 5279 MEM32(ebx + eax + 0x18) = edx; /* 0x36125259: mov dword ptr [ebx + eax + 0x18], edx */ 5280 eax = MEM32(ebp + (-0xC)); /* 0x3612525D: mov eax, dword ptr [ebp - 0xc] */ 5281 ecx = MEM32(esi + 0x38); /* 0x36125260: mov ecx, dword ptr [esi + 0x38] */ 5282 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5283 eax = eax + 1; /* 0x36125263: inc eax */ 5284 _flag_k = FK_INC; 5285 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x36125264: mov byte ptr [ebx + ecx + 0x1c], 1 */ 5286 MEM32(ebp + (-0xC)) = eax; /* 0x36125269: mov dword ptr [ebp - 0xc], eax */ 5287 goto L_361254A9; /* 0x3612526C: jmp 0x361254a9 */ 5288 L_36125271: 5289 eax = MEM32(ebp + (-0x1C)); /* 0x36125271: mov eax, dword ptr [ebp - 0x1c] */ 5290 /* test eax, eax */ /* 0x36125274: test eax, eax */ 5291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5292 _cf = 0; 5293 _flag_k = FK_TEST; 5294 if (TEST_Z(_flag_a, _flag_b)) goto L_361254A1; /* 0x36125276: je 0x361254a1 */ 5295 L_3612527C: 5296 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x3612527C: mov al, byte ptr [esi + 0x163c] */ 5297 /* test LO8(eax), LO8(eax) */ /* 0x36125282: test al, al */ 5298 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5299 _cf = 0; 5300 _flag_k = FK_NARROW(FK_TEST, 24); 5301 if (TEST_NZ(_flag_a, _flag_b)) goto L_361254A1; /* 0x36125284: jne 0x361254a1 */ 5302 L_3612528A: 5303 RECOMP_ICALL(0x360F7B00u); /* 0x3612528A: call 0x360f7b00 */ /* not lifted */ 5304 RECOMP_FLAGS_IN(); 5305 edx = MEM32(esi + 0x28); /* 0x3612528F: mov edx, dword ptr [esi + 0x28] */ 5306 PUSH32(esp, edx); /* 0x36125292: push edx */ 5307 ecx = eax; /* 0x36125293: mov ecx, eax */ 5308 RECOMP_ICALL(0x360FBF90u); /* 0x36125295: call 0x360fbf90 */ /* not lifted */ 5309 RECOMP_FLAGS_IN(); 5310 edi = eax; /* 0x3612529A: mov edi, eax */ 5311 /* test edi, edi */ /* 0x3612529C: test edi, edi */ 5312 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5313 _cf = 0; 5314 _flag_k = FK_TEST; 5315 if (TEST_Z(_flag_a, _flag_b)) goto L_36125497; /* 0x3612529E: je 0x36125497 */ 5316 L_361252A4: 5317 eax = ebp + (-0x3C0); /* 0x361252A4: lea eax, [ebp - 0x3c0] */ 5318 PUSH32(esp, eax); /* 0x361252AA: push eax */ 5319 ecx = edi; /* 0x361252AB: mov ecx, edi */ 5320 RECOMP_ICALL(0x36131BB0u); /* 0x361252AD: call 0x36131bb0 */ /* not lifted */ 5321 RECOMP_FLAGS_IN(); 5322 ecx = MEM32(eax); /* 0x361252B2: mov ecx, dword ptr [eax] */ 5323 edx = MEM32(eax + 0x4); /* 0x361252B4: mov edx, dword ptr [eax + 4] */ 5324 eax = MEM32(eax + 0x8); /* 0x361252B7: mov eax, dword ptr [eax + 8] */ 5325 MEM32(ebp + (-0xC0)) = ecx; /* 0x361252BA: mov dword ptr [ebp - 0xc0], ecx */ 5326 ecx = ebp + (-0x240); /* 0x361252C0: lea ecx, [ebp - 0x240] */ 5327 PUSH32(esp, ecx); /* 0x361252C6: push ecx */ 5328 ecx = edi; /* 0x361252C7: mov ecx, edi */ 5329 MEM32(ebp + (-0xBC)) = edx; /* 0x361252C9: mov dword ptr [ebp - 0xbc], edx */ 5330 MEM32(ebp + (-0xB8)) = eax; /* 0x361252CF: mov dword ptr [ebp - 0xb8], eax */ 5331 RECOMP_ICALL(0x36131C00u); /* 0x361252D5: call 0x36131c00 */ /* not lifted */ 5332 RECOMP_FLAGS_IN(); 5333 edi = MEM32(eax); /* 0x361252DA: mov edi, dword ptr [eax] */ 5334 edx = MEM32(eax + 0x4); /* 0x361252DC: mov edx, dword ptr [eax + 4] */ 5335 eax = MEM32(eax + 0x8); /* 0x361252DF: mov eax, dword ptr [eax + 8] */ 5336 ecx = ebp + (-0x9C); /* 0x361252E2: lea ecx, [ebp - 0x9c] */ 5337 PUSH32(esp, ecx); /* 0x361252E8: push ecx */ 5338 MEM32(ebp + (-0x90)) = edi; /* 0x361252E9: mov dword ptr [ebp - 0x90], edi */ 5339 MEM32(ebp + (-0x8C)) = edx; /* 0x361252EF: mov dword ptr [ebp - 0x8c], edx */ 5340 MEM32(ebp + (-0x88)) = eax; /* 0x361252F5: mov dword ptr [ebp - 0x88], eax */ 5341 MEM32(ebp + (-0x9C)) = 0; /* 0x361252FB: mov dword ptr [ebp - 0x9c], 0 */ 5342 MEM32(ebp + (-0x98)) = 0; /* 0x36125305: mov dword ptr [ebp - 0x98], 0 */ 5343 MEM32(ebp + (-0x94)) = 0; /* 0x3612530F: mov dword ptr [ebp - 0x94], 0 */ 5344 RECOMP_ICALL(0x360FCBF0u); /* 0x36125319: call 0x360fcbf0 */ /* not lifted */ 5345 RECOMP_FLAGS_IN(); 5346 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x3612531E: fld dword ptr [esi + 0x16cc] */ 5347 edx = MEM32(ebp + (-0x9C)); /* 0x36125324: mov edx, dword ptr [ebp - 0x9c] */ 5348 fp_push(_st[0]); /* 0x3612532A: fld st(0) */ 5349 _st[0] *= (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x3612532C: fmul dword ptr [ebp - 0x9c] */ 5350 eax = MEM32(ebp + (-0x98)); /* 0x36125332: mov eax, dword ptr [ebp - 0x98] */ 5351 ecx = MEM32(ebp + (-0x94)); /* 0x36125338: mov ecx, dword ptr [ebp - 0x94] */ 5352 MEM32(ebp + (-0x80)) = edx; /* 0x3612533E: mov dword ptr [ebp - 0x80], edx */ 5353 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x36125341: fstp dword ptr [ebp - 0x80] */ 5354 edx = MEM32(ebp + (-0xC0)); /* 0x36125344: mov edx, dword ptr [ebp - 0xc0] */ 5355 MEM32(ebp + (-0x7C)) = eax; /* 0x3612534A: mov dword ptr [ebp - 0x7c], eax */ 5356 fp_push(_st[0]); /* 0x3612534D: fld st(0) */ 5357 eax = MEM32(ebp + (-0xBC)); /* 0x3612534F: mov eax, dword ptr [ebp - 0xbc] */ 5358 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125355: fmul dword ptr [ebp - 0x7c] */ 5359 MEM32(ebp + (-0x78)) = ecx; /* 0x36125358: mov dword ptr [ebp - 0x78], ecx */ 5360 ecx = MEM32(ebp + (-0xB8)); /* 0x3612535B: mov ecx, dword ptr [ebp - 0xb8] */ 5361 MEM32(ebp + (-0x68)) = edx; /* 0x36125361: mov dword ptr [ebp - 0x68], edx */ 5362 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36125364: fstp dword ptr [ebp - 0x7c] */ 5363 edx = MEM32(ebp + (-0x8C)); /* 0x36125367: mov edx, dword ptr [ebp - 0x8c] */ 5364 MEM32(ebp + (-0x64)) = eax; /* 0x3612536D: mov dword ptr [ebp - 0x64], eax */ 5365 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36125370: fmul dword ptr [ebp - 0x78] */ 5366 eax = MEM32(ebp + (-0x88)); /* 0x36125373: mov eax, dword ptr [ebp - 0x88] */ 5367 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125379: fld dword ptr [0x36170380] */ 5368 MEM32(ebp + (-0x60)) = ecx; /* 0x3612537F: mov dword ptr [ebp - 0x60], ecx */ 5369 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36125382: fsub dword ptr [ebp - 0x10] */ 5370 MEM32(ebp + (-0x28)) = edi; /* 0x36125385: mov dword ptr [ebp - 0x28], edi */ 5371 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36125388: fld dword ptr [ebp - 0xc0] */ 5372 MEM32(ebp + (-0x24)) = edx; /* 0x3612538E: mov dword ptr [ebp - 0x24], edx */ 5373 MEM32(ebp + (-0x20)) = eax; /* 0x36125391: mov dword ptr [ebp - 0x20], eax */ 5374 _st[0] *= _st[1]; /* 0x36125394: fmul st(1) */ 5375 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5377 esp = esp + 4; /* 0x36125396: add esp, 4 */ 5378 _flag_k = FK_ADD; 5379 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36125399: fstp dword ptr [ebp - 0x68] */ 5380 fp_push(_st[0]); /* 0x3612539C: fld st(0) */ 5381 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x3612539E: fmul dword ptr [ebp - 0x64] */ 5382 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x361253A1: fstp dword ptr [ebp - 0x64] */ 5383 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x361253A4: fmul dword ptr [ebp - 0x60] */ 5384 fp_push(*(float*)&MEM32(ebp + (-0x90))); /* 0x361253A7: fld dword ptr [ebp - 0x90] */ 5385 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361253AD: fmul dword ptr [ebp - 0x10] */ 5386 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361253B0: fstp dword ptr [ebp - 0x28] */ 5387 ecx = MEM32(ebp + (-0x28)); /* 0x361253B3: mov ecx, dword ptr [ebp - 0x28] */ 5388 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361253B6: fld dword ptr [ebp - 0x10] */ 5389 MEM32(ebp + (-0x74)) = ecx; /* 0x361253B9: mov dword ptr [ebp - 0x74], ecx */ 5390 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x361253BC: fmul dword ptr [ebp - 0x24] */ 5391 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361253BF: fstp dword ptr [ebp - 0x24] */ 5392 edx = MEM32(ebp + (-0x24)); /* 0x361253C2: mov edx, dword ptr [ebp - 0x24] */ 5393 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361253C5: fld dword ptr [ebp - 0x10] */ 5394 MEM32(ebp + (-0x70)) = edx; /* 0x361253C8: mov dword ptr [ebp - 0x70], edx */ 5395 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x361253CB: fmul dword ptr [ebp - 0x20] */ 5396 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361253CE: fstp dword ptr [ebp - 0x20] */ 5397 eax = MEM32(ebp + (-0x20)); /* 0x361253D1: mov eax, dword ptr [ebp - 0x20] */ 5398 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361253D4: fld dword ptr [ebp - 0x28] */ 5399 MEM32(ebp + (-0x6C)) = eax; /* 0x361253D7: mov dword ptr [ebp - 0x6c], eax */ 5400 _st[0] += (double)*(float*)ADDR(ebp + (-0x68)); /* 0x361253DA: fadd dword ptr [ebp - 0x68] */ 5401 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x361253DD: fstp dword ptr [ebp - 0x74] */ 5402 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x361253E0: fld dword ptr [ebp - 0x70] */ 5403 _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x361253E3: fadd dword ptr [ebp - 0x64] */ 5404 ecx = MEM32(ebp + (-0x74)); /* 0x361253E6: mov ecx, dword ptr [ebp - 0x74] */ 5405 edi = MEM32(ebp + (-0x8)); /* 0x361253E9: mov edi, dword ptr [ebp - 8] */ 5406 MEM32(ebp + (-0x5C)) = ecx; /* 0x361253EC: mov dword ptr [ebp - 0x5c], ecx */ 5407 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x361253EF: fstp dword ptr [ebp - 0x70] */ 5408 edx = MEM32(ebp + (-0x70)); /* 0x361253F2: mov edx, dword ptr [ebp - 0x70] */ 5409 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x361253F5: fld dword ptr [ebp - 0x6c] */ 5410 MEM32(ebp + (-0x58)) = edx; /* 0x361253F8: mov dword ptr [ebp - 0x58], edx */ 5411 _st[0] += _st[1]; /* 0x361253FB: fadd st(1) */ 5412 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x361253FD: fstp dword ptr [ebp - 0x6c] */ 5413 eax = MEM32(ebp + (-0x6C)); /* 0x36125400: mov eax, dword ptr [ebp - 0x6c] */ 5414 MEM32(ebp + (-0x54)) = eax; /* 0x36125403: mov dword ptr [ebp - 0x54], eax */ 5415 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125406: fstp st(0) */ 5416 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36125408: fld dword ptr [ebp - 0x74] */ 5417 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x3612540B: fadd dword ptr [ebp - 0x80] */ 5418 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x3612540E: fstp dword ptr [ebp - 0x5c] */ 5419 eax = MEM32(ebp + (-0x5C)); /* 0x36125411: mov eax, dword ptr [ebp - 0x5c] */ 5420 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36125414: fld dword ptr [ebp - 0x58] */ 5421 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125417: fadd dword ptr [ebp - 0x7c] */ 5422 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x3612541A: fstp dword ptr [ebp - 0x58] */ 5423 ecx = MEM32(ebp + (-0x58)); /* 0x3612541D: mov ecx, dword ptr [ebp - 0x58] */ 5424 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36125420: fld dword ptr [ebp - 0x54] */ 5425 _st[0] += _st[1]; /* 0x36125423: fadd st(1) */ 5426 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36125425: fstp dword ptr [ebp - 0x54] */ 5427 edx = MEM32(ebp + (-0x54)); /* 0x36125428: mov edx, dword ptr [ebp - 0x54] */ 5428 MEM32(edi) = eax; /* 0x3612542B: mov dword ptr [edi], eax */ 5429 MEM32(edi + 0x4) = ecx; /* 0x3612542D: mov dword ptr [edi + 4], ecx */ 5430 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125430: fstp st(0) */ 5431 ecx = MEM32(ebp + (-0x8)); /* 0x36125432: mov ecx, dword ptr [ebp - 8] */ 5432 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36125435: fld dword ptr [ebp - 4] */ 5433 MEM32(edi + 0x8) = edx; /* 0x36125438: mov dword ptr [edi + 8], edx */ 5434 MEM32(ebp + (-0xDC)) = 0; /* 0x3612543B: mov dword ptr [ebp - 0xdc], 0 */ 5435 edx = MEM32(ebp + (-0xDC)); /* 0x36125445: mov edx, dword ptr [ebp - 0xdc] */ 5436 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFA00u); 5437 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5438 ecx = ecx + 0xFFFFFA00u; /* 0x3612544B: add ecx, 0xfffffa00 */ 5439 _flag_k = FK_ADD; 5440 MEM32(ebp + (-0xD8)) = 0; /* 0x36125451: mov dword ptr [ebp - 0xd8], 0 */ 5441 MEM32(ebp + (-0xD4)) = 0; /* 0x3612545B: mov dword ptr [ebp - 0xd4], 0 */ 5442 MEM32(ecx) = edx; /* 0x36125465: mov dword ptr [ecx], edx */ 5443 eax = MEM32(ebp + (-0xD8)); /* 0x36125467: mov eax, dword ptr [ebp - 0xd8] */ 5444 MEM32(ecx + 0x4) = eax; /* 0x3612546D: mov dword ptr [ecx + 4], eax */ 5445 edx = MEM32(ebp + (-0xD4)); /* 0x36125470: mov edx, dword ptr [ebp - 0xd4] */ 5446 eax = MEM32(ebp + (-0x2C)); /* 0x36125476: mov eax, dword ptr [ebp - 0x2c] */ 5447 MEM32(ecx + 0x8) = edx; /* 0x36125479: mov dword ptr [ecx + 8], edx */ 5448 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x3612547C: fmul dword ptr [esi + 0x16c0] */ 5449 ecx = MEM32(ebp + (-0xC)); /* 0x36125482: mov ecx, dword ptr [ebp - 0xc] */ 5450 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5451 ecx = ecx + 1; /* 0x36125485: inc ecx */ 5452 _flag_k = FK_INC; 5453 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36125486: fadd dword ptr [ebp - 0x18] */ 5454 MEM32(ebp + (-0xC)) = ecx; /* 0x36125489: mov dword ptr [ebp - 0xc], ecx */ 5455 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3612548C: fstp dword ptr [eax] */ 5456 eax = MEM32(ebp + (-0x1C)); /* 0x3612548E: mov eax, dword ptr [ebp - 0x1c] */ 5457 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5458 eax = eax - 1; /* 0x36125491: dec eax */ 5459 _flag_k = FK_DEC; 5460 MEM32(ebp + (-0x1C)) = eax; /* 0x36125492: mov dword ptr [ebp - 0x1c], eax */ 5461 goto L_361254A9; /* 0x36125495: jmp 0x361254a9 */ 5462 L_36125497: 5463 ecx = MEM32(esi + 0x38); /* 0x36125497: mov ecx, dword ptr [esi + 0x38] */ 5464 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612549A: mov byte ptr [ecx + ebx + 0x1c], 0 */ 5465 goto L_361254A9; /* 0x3612549F: jmp 0x361254a9 */ 5466 L_361254A1: 5467 edx = MEM32(esi + 0x38); /* 0x361254A1: mov edx, dword ptr [esi + 0x38] */ 5468 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x361254A4: mov byte ptr [edx + ebx + 0x1c], 0 */ 5469 L_361254A9: 5470 eax = MEM32(ebp + (-0x14)); /* 0x361254A9: mov eax, dword ptr [ebp - 0x14] */ 5471 edi = MEM32(ebp + (-0x8)); /* 0x361254AC: mov edi, dword ptr [ebp - 8] */ 5472 edx = MEM32(ebp + (-0x2C)); /* 0x361254AF: mov edx, dword ptr [ebp - 0x2c] */ 5473 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5474 eax = eax + 1; /* 0x361254B2: inc eax */ 5475 _flag_k = FK_INC; 5476 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 5477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5478 edi = edi + 0xCu; /* 0x361254B3: add edi, 0xc */ 5479 _flag_k = FK_ADD; 5480 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 5481 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5482 edx = edx + 4; /* 0x361254B6: add edx, 4 */ 5483 _flag_k = FK_ADD; 5484 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 5485 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5486 ebx = ebx + 0x20u; /* 0x361254B9: add ebx, 0x20 */ 5487 _flag_k = FK_ADD; 5488 /* cmp ebx, 0x1000u */ /* 0x361254BC: cmp ebx, 0x1000 */ 5489 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 5490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5491 _flag_k = FK_CMP; 5492 MEM32(ebp + (-0x14)) = eax; /* 0x361254C2: mov dword ptr [ebp - 0x14], eax */ 5493 MEM32(ebp + (-0x8)) = edi; /* 0x361254C5: mov dword ptr [ebp - 8], edi */ 5494 MEM32(ebp + (-0x2C)) = edx; /* 0x361254C8: mov dword ptr [ebp - 0x2c], edx */ 5495 RECOMP_BACKEDGE(); 5496 if (CMP_L(_flag_a, _flag_b)) goto L_36125188; /* 0x361254CB: jl 0x36125188 */ 5497 L_361254D1: 5498 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x361254D1: mov al, byte ptr [esi + 0x163c] */ 5499 /* test LO8(eax), LO8(eax) */ /* 0x361254D7: test al, al */ 5500 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5501 _cf = 0; 5502 _flag_k = FK_NARROW(FK_TEST, 24); 5503 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x361254D9: je 0x361275ac */ 5504 L_361254DF: 5505 eax = MEM32(ebp + (-0xC)); /* 0x361254DF: mov eax, dword ptr [ebp - 0xc] */ 5506 /* test eax, eax */ /* 0x361254E2: test eax, eax */ 5507 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5508 _cf = 0; 5509 _flag_k = FK_TEST; 5510 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x361254E4: jne 0x361275ac */ 5511 L_361254EA: 5512 goto L_361275A8; /* 0x361254EA: jmp 0x361275a8 */ 5513 L_361275A8: 5514 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 5515 L_361275AC: 5516 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 5517 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 5518 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5519 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 5520 _flag_k = FK_ADD; 5521 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 5522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5523 _cf = 0; 5524 _flag_k = FK_TEST; 5525 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 5526 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 5527 L_361275B7: 5528 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 5529 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 5530 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 5531 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 5532 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 5533 RECOMP_FLAGS_IN(); 5534 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 5535 PUSH32(esp, eax); /* 0x361275CD: push eax */ 5536 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 5537 RECOMP_FLAGS_IN(); 5538 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 5539 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 5540 RECOMP_FLAGS_IN(); 5541 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 5542 PUSH32(esp, eax); /* 0x361275E2: push eax */ 5543 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 5544 RECOMP_FLAGS_IN(); 5545 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 5546 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 5547 RECOMP_FLAGS_IN(); 5548 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 5549 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5550 _cf = (LO8(eax)) != 0; 5551 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 5552 _flag_k = FK_NARROW(FK_CMP, 24); 5553 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 5554 eax = _sc ? 0xFFFFFFFFu : 0; 5555 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5556 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5557 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5558 eax = eax + 1; /* 0x361275F6: inc eax */ 5559 _flag_k = FK_INC; 5560 PUSH32(esp, eax); /* 0x361275F7: push eax */ 5561 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 5562 RECOMP_FLAGS_IN(); 5563 L_361275FE: 5564 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 5565 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 5566 esp = ebp; /* 0x36127600: mov esp, ebp */ 5567 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 5568 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 5569 RECOMP_REGS_OUT(); 5570 } 5571 5572 void sub_361254A9(void) { 5573 int _fpu_cmp = 0; 5574 uint32_t _cf = 0; 5575 int _df = 1; 5576 uint32_t _flag_k = FK_NONE; 5577 uint32_t _flag_a = 0, _flag_b = 0; 5578 uint32_t _itail_tgt = 0; 5579 RECOMP_REGS_LOCALS 5580 RECOMP_ENTER(0x361254A9u); 5581 5582 goto L_361254A9; 5583 L_36125188: 5584 eax = MEM32(ebp + (-0x14)); /* 0x36125188: mov eax, dword ptr [ebp - 0x14] */ 5585 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3612518B: cdq */ 5586 ecx = 0x11u; /* 0x3612518C: mov ecx, 0x11 */ 5587 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36125191: idiv ecx */ 5588 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5589 else { eax = 0; edx = 0; } } 5590 ecx = MEM32(ebp + (-0x2C)); /* 0x36125193: mov ecx, dword ptr [ebp - 0x2c] */ 5591 eax = 0x78787879u; /* 0x36125196: mov eax, 0x78787879 */ 5592 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3612519B: imul edx */ 5593 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5594 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5595 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x3612519D: sar edx, 4 */ 5596 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5597 edx = (uint32_t)((int32_t)edx >> 4u); 5598 eax = edx; /* 0x361251A0: mov eax, edx */ 5599 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361251A2: shr eax, 0x1f */ 5600 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5601 eax = eax >> 31u; /* 0x361251A2: shr eax, 0x1f */ 5602 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5603 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5604 edx = edx + eax; /* 0x361251A5: add edx, eax */ 5605 _flag_k = FK_ADD; 5606 MEM32(ebp + (-0x84)) = edx; /* 0x361251A7: mov dword ptr [ebp - 0x84], edx */ 5607 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x361251AD: fild dword ptr [ebp - 0x84] */ 5608 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x361251B3: fsubr dword ptr [0x36170380] */ 5609 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361251B9: fstp dword ptr [ebp - 4] */ 5610 fp_push(*(float*)&MEM32(ecx)); /* 0x361251BC: fld dword ptr [ecx] */ 5611 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x361251BE: fcomp dword ptr [ebp - 0x18] */ 5612 fp_pop(); 5613 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361251C1: fnstsw ax */ 5614 /* test HI8(eax), 0x41u */ /* 0x361251C3: test ah, 0x41 */ 5615 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5616 _cf = 0; 5617 _flag_k = FK_NARROW(FK_TEST, 24); 5618 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125271; /* 0x361251C6: jne 0x36125271 */ 5619 L_361251CC: 5620 edi = MEM32(esi + 0x38); /* 0x361251CC: mov edi, dword ptr [esi + 0x38] */ 5621 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361251CF: fld dword ptr [ebp - 4] */ 5622 eax = MEM32(ebp + (-0x8)); /* 0x361251D2: mov eax, dword ptr [ebp - 8] */ 5623 edx = ebx; /* 0x361251D5: mov edx, ebx */ 5624 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5626 edx = edx + edi; /* 0x361251D7: add edx, edi */ 5627 _flag_k = FK_ADD; 5628 edi = MEM32(eax); /* 0x361251D9: mov edi, dword ptr [eax] */ 5629 MEM32(edx) = edi; /* 0x361251DB: mov dword ptr [edx], edi */ 5630 edi = MEM32(eax + 0x4); /* 0x361251DD: mov edi, dword ptr [eax + 4] */ 5631 MEM32(edx + 0x4) = edi; /* 0x361251E0: mov dword ptr [edx + 4], edi */ 5632 eax = MEM32(eax + 0x8); /* 0x361251E3: mov eax, dword ptr [eax + 8] */ 5633 MEM32(edx + 0x8) = eax; /* 0x361251E6: mov dword ptr [edx + 8], eax */ 5634 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361251E9: fmul dword ptr [esi + 0x16c0] */ 5635 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x361251EF: fadd dword ptr [ebp - 0x18] */ 5636 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x361251F2: fsub dword ptr [ecx] */ 5637 ecx = MEM32(esi + 0x38); /* 0x361251F4: mov ecx, dword ptr [esi + 0x38] */ 5638 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361251F7: fdiv dword ptr [esi + 0x16c0] */ 5639 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361251FD: fst dword ptr [ebp - 4] */ 5640 _st[0] += _st[0]; /* 0x36125200: fadd st(0), st(0) */ 5641 eax = MEM32(ebp + (-0x4)); /* 0x36125202: mov eax, dword ptr [ebp - 4] */ 5642 PUSH32(esp, eax); /* 0x36125205: push eax */ 5643 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36125206: fsubr dword ptr [0x36170380] */ 5644 fp_push(_st[0]); /* 0x3612520C: fld st(0) */ 5645 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3612520E: fmulp st(1) */ 5646 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36125210: fsubr dword ptr [0x36170380] */ 5647 fp_push(_st[0]); /* 0x36125216: fld st(0) */ 5648 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36125218: fmul dword ptr [esi + 0x16c8] */ 5649 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0xC) = _v; } /* 0x3612521E: fstp dword ptr [ebx + ecx + 0xc] */ 5650 edx = MEM32(esi + 0x38); /* 0x36125222: mov edx, dword ptr [esi + 0x38] */ 5651 ecx = esi + 0x168C; /* 0x36125225: lea ecx, [esi + 0x168c] */ 5652 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x3612522B: fmul dword ptr [esi + 0x16c8] */ 5653 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + edx + 0x10) = _v; } /* 0x36125231: fstp dword ptr [ebx + edx + 0x10] */ 5654 RECOMP_ICALL(0x36137D80u); /* 0x36125235: call 0x36137d80 */ /* not lifted */ 5655 RECOMP_FLAGS_IN(); 5656 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3612523A: fld dword ptr [ebp - 4] */ 5657 ecx = MEM32(esi + 0x38); /* 0x3612523D: mov ecx, dword ptr [esi + 0x38] */ 5658 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x36125240: fmul dword ptr [0x36177750] */ 5659 MEM32(ebx + ecx + 0x14) = eax; /* 0x36125246: mov dword ptr [ebx + ecx + 0x14], eax */ 5660 RECOMP_ICALL(0x3615FD8Cu); /* 0x3612524A: call 0x3615fd8c */ /* not lifted */ 5661 RECOMP_FLAGS_IN(); 5662 edx = 0xFu; /* 0x3612524F: mov edx, 0xf */ 5663 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5665 edx = edx - eax; /* 0x36125254: sub edx, eax */ 5666 _flag_k = FK_CMP; 5667 eax = MEM32(esi + 0x38); /* 0x36125256: mov eax, dword ptr [esi + 0x38] */ 5668 MEM32(ebx + eax + 0x18) = edx; /* 0x36125259: mov dword ptr [ebx + eax + 0x18], edx */ 5669 eax = MEM32(ebp + (-0xC)); /* 0x3612525D: mov eax, dword ptr [ebp - 0xc] */ 5670 ecx = MEM32(esi + 0x38); /* 0x36125260: mov ecx, dword ptr [esi + 0x38] */ 5671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5672 eax = eax + 1; /* 0x36125263: inc eax */ 5673 _flag_k = FK_INC; 5674 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x36125264: mov byte ptr [ebx + ecx + 0x1c], 1 */ 5675 MEM32(ebp + (-0xC)) = eax; /* 0x36125269: mov dword ptr [ebp - 0xc], eax */ 5676 goto L_361254A9; /* 0x3612526C: jmp 0x361254a9 */ 5677 L_36125271: 5678 eax = MEM32(ebp + (-0x1C)); /* 0x36125271: mov eax, dword ptr [ebp - 0x1c] */ 5679 /* test eax, eax */ /* 0x36125274: test eax, eax */ 5680 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5681 _cf = 0; 5682 _flag_k = FK_TEST; 5683 if (TEST_Z(_flag_a, _flag_b)) goto L_361254A1; /* 0x36125276: je 0x361254a1 */ 5684 L_3612527C: 5685 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x3612527C: mov al, byte ptr [esi + 0x163c] */ 5686 /* test LO8(eax), LO8(eax) */ /* 0x36125282: test al, al */ 5687 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5688 _cf = 0; 5689 _flag_k = FK_NARROW(FK_TEST, 24); 5690 if (TEST_NZ(_flag_a, _flag_b)) goto L_361254A1; /* 0x36125284: jne 0x361254a1 */ 5691 L_3612528A: 5692 RECOMP_ICALL(0x360F7B00u); /* 0x3612528A: call 0x360f7b00 */ /* not lifted */ 5693 RECOMP_FLAGS_IN(); 5694 edx = MEM32(esi + 0x28); /* 0x3612528F: mov edx, dword ptr [esi + 0x28] */ 5695 PUSH32(esp, edx); /* 0x36125292: push edx */ 5696 ecx = eax; /* 0x36125293: mov ecx, eax */ 5697 RECOMP_ICALL(0x360FBF90u); /* 0x36125295: call 0x360fbf90 */ /* not lifted */ 5698 RECOMP_FLAGS_IN(); 5699 edi = eax; /* 0x3612529A: mov edi, eax */ 5700 /* test edi, edi */ /* 0x3612529C: test edi, edi */ 5701 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5702 _cf = 0; 5703 _flag_k = FK_TEST; 5704 if (TEST_Z(_flag_a, _flag_b)) goto L_36125497; /* 0x3612529E: je 0x36125497 */ 5705 L_361252A4: 5706 eax = ebp + (-0x3C0); /* 0x361252A4: lea eax, [ebp - 0x3c0] */ 5707 PUSH32(esp, eax); /* 0x361252AA: push eax */ 5708 ecx = edi; /* 0x361252AB: mov ecx, edi */ 5709 RECOMP_ICALL(0x36131BB0u); /* 0x361252AD: call 0x36131bb0 */ /* not lifted */ 5710 RECOMP_FLAGS_IN(); 5711 ecx = MEM32(eax); /* 0x361252B2: mov ecx, dword ptr [eax] */ 5712 edx = MEM32(eax + 0x4); /* 0x361252B4: mov edx, dword ptr [eax + 4] */ 5713 eax = MEM32(eax + 0x8); /* 0x361252B7: mov eax, dword ptr [eax + 8] */ 5714 MEM32(ebp + (-0xC0)) = ecx; /* 0x361252BA: mov dword ptr [ebp - 0xc0], ecx */ 5715 ecx = ebp + (-0x240); /* 0x361252C0: lea ecx, [ebp - 0x240] */ 5716 PUSH32(esp, ecx); /* 0x361252C6: push ecx */ 5717 ecx = edi; /* 0x361252C7: mov ecx, edi */ 5718 MEM32(ebp + (-0xBC)) = edx; /* 0x361252C9: mov dword ptr [ebp - 0xbc], edx */ 5719 MEM32(ebp + (-0xB8)) = eax; /* 0x361252CF: mov dword ptr [ebp - 0xb8], eax */ 5720 RECOMP_ICALL(0x36131C00u); /* 0x361252D5: call 0x36131c00 */ /* not lifted */ 5721 RECOMP_FLAGS_IN(); 5722 edi = MEM32(eax); /* 0x361252DA: mov edi, dword ptr [eax] */ 5723 edx = MEM32(eax + 0x4); /* 0x361252DC: mov edx, dword ptr [eax + 4] */ 5724 eax = MEM32(eax + 0x8); /* 0x361252DF: mov eax, dword ptr [eax + 8] */ 5725 ecx = ebp + (-0x9C); /* 0x361252E2: lea ecx, [ebp - 0x9c] */ 5726 PUSH32(esp, ecx); /* 0x361252E8: push ecx */ 5727 MEM32(ebp + (-0x90)) = edi; /* 0x361252E9: mov dword ptr [ebp - 0x90], edi */ 5728 MEM32(ebp + (-0x8C)) = edx; /* 0x361252EF: mov dword ptr [ebp - 0x8c], edx */ 5729 MEM32(ebp + (-0x88)) = eax; /* 0x361252F5: mov dword ptr [ebp - 0x88], eax */ 5730 MEM32(ebp + (-0x9C)) = 0; /* 0x361252FB: mov dword ptr [ebp - 0x9c], 0 */ 5731 MEM32(ebp + (-0x98)) = 0; /* 0x36125305: mov dword ptr [ebp - 0x98], 0 */ 5732 MEM32(ebp + (-0x94)) = 0; /* 0x3612530F: mov dword ptr [ebp - 0x94], 0 */ 5733 RECOMP_ICALL(0x360FCBF0u); /* 0x36125319: call 0x360fcbf0 */ /* not lifted */ 5734 RECOMP_FLAGS_IN(); 5735 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x3612531E: fld dword ptr [esi + 0x16cc] */ 5736 edx = MEM32(ebp + (-0x9C)); /* 0x36125324: mov edx, dword ptr [ebp - 0x9c] */ 5737 fp_push(_st[0]); /* 0x3612532A: fld st(0) */ 5738 _st[0] *= (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x3612532C: fmul dword ptr [ebp - 0x9c] */ 5739 eax = MEM32(ebp + (-0x98)); /* 0x36125332: mov eax, dword ptr [ebp - 0x98] */ 5740 ecx = MEM32(ebp + (-0x94)); /* 0x36125338: mov ecx, dword ptr [ebp - 0x94] */ 5741 MEM32(ebp + (-0x80)) = edx; /* 0x3612533E: mov dword ptr [ebp - 0x80], edx */ 5742 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x36125341: fstp dword ptr [ebp - 0x80] */ 5743 edx = MEM32(ebp + (-0xC0)); /* 0x36125344: mov edx, dword ptr [ebp - 0xc0] */ 5744 MEM32(ebp + (-0x7C)) = eax; /* 0x3612534A: mov dword ptr [ebp - 0x7c], eax */ 5745 fp_push(_st[0]); /* 0x3612534D: fld st(0) */ 5746 eax = MEM32(ebp + (-0xBC)); /* 0x3612534F: mov eax, dword ptr [ebp - 0xbc] */ 5747 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125355: fmul dword ptr [ebp - 0x7c] */ 5748 MEM32(ebp + (-0x78)) = ecx; /* 0x36125358: mov dword ptr [ebp - 0x78], ecx */ 5749 ecx = MEM32(ebp + (-0xB8)); /* 0x3612535B: mov ecx, dword ptr [ebp - 0xb8] */ 5750 MEM32(ebp + (-0x68)) = edx; /* 0x36125361: mov dword ptr [ebp - 0x68], edx */ 5751 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36125364: fstp dword ptr [ebp - 0x7c] */ 5752 edx = MEM32(ebp + (-0x8C)); /* 0x36125367: mov edx, dword ptr [ebp - 0x8c] */ 5753 MEM32(ebp + (-0x64)) = eax; /* 0x3612536D: mov dword ptr [ebp - 0x64], eax */ 5754 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36125370: fmul dword ptr [ebp - 0x78] */ 5755 eax = MEM32(ebp + (-0x88)); /* 0x36125373: mov eax, dword ptr [ebp - 0x88] */ 5756 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125379: fld dword ptr [0x36170380] */ 5757 MEM32(ebp + (-0x60)) = ecx; /* 0x3612537F: mov dword ptr [ebp - 0x60], ecx */ 5758 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36125382: fsub dword ptr [ebp - 0x10] */ 5759 MEM32(ebp + (-0x28)) = edi; /* 0x36125385: mov dword ptr [ebp - 0x28], edi */ 5760 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36125388: fld dword ptr [ebp - 0xc0] */ 5761 MEM32(ebp + (-0x24)) = edx; /* 0x3612538E: mov dword ptr [ebp - 0x24], edx */ 5762 MEM32(ebp + (-0x20)) = eax; /* 0x36125391: mov dword ptr [ebp - 0x20], eax */ 5763 _st[0] *= _st[1]; /* 0x36125394: fmul st(1) */ 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; /* 0x36125396: add esp, 4 */ 5767 _flag_k = FK_ADD; 5768 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36125399: fstp dword ptr [ebp - 0x68] */ 5769 fp_push(_st[0]); /* 0x3612539C: fld st(0) */ 5770 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x3612539E: fmul dword ptr [ebp - 0x64] */ 5771 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x361253A1: fstp dword ptr [ebp - 0x64] */ 5772 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x361253A4: fmul dword ptr [ebp - 0x60] */ 5773 fp_push(*(float*)&MEM32(ebp + (-0x90))); /* 0x361253A7: fld dword ptr [ebp - 0x90] */ 5774 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361253AD: fmul dword ptr [ebp - 0x10] */ 5775 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361253B0: fstp dword ptr [ebp - 0x28] */ 5776 ecx = MEM32(ebp + (-0x28)); /* 0x361253B3: mov ecx, dword ptr [ebp - 0x28] */ 5777 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361253B6: fld dword ptr [ebp - 0x10] */ 5778 MEM32(ebp + (-0x74)) = ecx; /* 0x361253B9: mov dword ptr [ebp - 0x74], ecx */ 5779 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x361253BC: fmul dword ptr [ebp - 0x24] */ 5780 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361253BF: fstp dword ptr [ebp - 0x24] */ 5781 edx = MEM32(ebp + (-0x24)); /* 0x361253C2: mov edx, dword ptr [ebp - 0x24] */ 5782 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361253C5: fld dword ptr [ebp - 0x10] */ 5783 MEM32(ebp + (-0x70)) = edx; /* 0x361253C8: mov dword ptr [ebp - 0x70], edx */ 5784 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x361253CB: fmul dword ptr [ebp - 0x20] */ 5785 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361253CE: fstp dword ptr [ebp - 0x20] */ 5786 eax = MEM32(ebp + (-0x20)); /* 0x361253D1: mov eax, dword ptr [ebp - 0x20] */ 5787 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361253D4: fld dword ptr [ebp - 0x28] */ 5788 MEM32(ebp + (-0x6C)) = eax; /* 0x361253D7: mov dword ptr [ebp - 0x6c], eax */ 5789 _st[0] += (double)*(float*)ADDR(ebp + (-0x68)); /* 0x361253DA: fadd dword ptr [ebp - 0x68] */ 5790 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x361253DD: fstp dword ptr [ebp - 0x74] */ 5791 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x361253E0: fld dword ptr [ebp - 0x70] */ 5792 _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x361253E3: fadd dword ptr [ebp - 0x64] */ 5793 ecx = MEM32(ebp + (-0x74)); /* 0x361253E6: mov ecx, dword ptr [ebp - 0x74] */ 5794 edi = MEM32(ebp + (-0x8)); /* 0x361253E9: mov edi, dword ptr [ebp - 8] */ 5795 MEM32(ebp + (-0x5C)) = ecx; /* 0x361253EC: mov dword ptr [ebp - 0x5c], ecx */ 5796 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x361253EF: fstp dword ptr [ebp - 0x70] */ 5797 edx = MEM32(ebp + (-0x70)); /* 0x361253F2: mov edx, dword ptr [ebp - 0x70] */ 5798 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x361253F5: fld dword ptr [ebp - 0x6c] */ 5799 MEM32(ebp + (-0x58)) = edx; /* 0x361253F8: mov dword ptr [ebp - 0x58], edx */ 5800 _st[0] += _st[1]; /* 0x361253FB: fadd st(1) */ 5801 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x361253FD: fstp dword ptr [ebp - 0x6c] */ 5802 eax = MEM32(ebp + (-0x6C)); /* 0x36125400: mov eax, dword ptr [ebp - 0x6c] */ 5803 MEM32(ebp + (-0x54)) = eax; /* 0x36125403: mov dword ptr [ebp - 0x54], eax */ 5804 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125406: fstp st(0) */ 5805 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36125408: fld dword ptr [ebp - 0x74] */ 5806 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x3612540B: fadd dword ptr [ebp - 0x80] */ 5807 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x3612540E: fstp dword ptr [ebp - 0x5c] */ 5808 eax = MEM32(ebp + (-0x5C)); /* 0x36125411: mov eax, dword ptr [ebp - 0x5c] */ 5809 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36125414: fld dword ptr [ebp - 0x58] */ 5810 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125417: fadd dword ptr [ebp - 0x7c] */ 5811 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x3612541A: fstp dword ptr [ebp - 0x58] */ 5812 ecx = MEM32(ebp + (-0x58)); /* 0x3612541D: mov ecx, dword ptr [ebp - 0x58] */ 5813 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36125420: fld dword ptr [ebp - 0x54] */ 5814 _st[0] += _st[1]; /* 0x36125423: fadd st(1) */ 5815 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36125425: fstp dword ptr [ebp - 0x54] */ 5816 edx = MEM32(ebp + (-0x54)); /* 0x36125428: mov edx, dword ptr [ebp - 0x54] */ 5817 MEM32(edi) = eax; /* 0x3612542B: mov dword ptr [edi], eax */ 5818 MEM32(edi + 0x4) = ecx; /* 0x3612542D: mov dword ptr [edi + 4], ecx */ 5819 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125430: fstp st(0) */ 5820 ecx = MEM32(ebp + (-0x8)); /* 0x36125432: mov ecx, dword ptr [ebp - 8] */ 5821 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36125435: fld dword ptr [ebp - 4] */ 5822 MEM32(edi + 0x8) = edx; /* 0x36125438: mov dword ptr [edi + 8], edx */ 5823 MEM32(ebp + (-0xDC)) = 0; /* 0x3612543B: mov dword ptr [ebp - 0xdc], 0 */ 5824 edx = MEM32(ebp + (-0xDC)); /* 0x36125445: mov edx, dword ptr [ebp - 0xdc] */ 5825 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFA00u); 5826 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5827 ecx = ecx + 0xFFFFFA00u; /* 0x3612544B: add ecx, 0xfffffa00 */ 5828 _flag_k = FK_ADD; 5829 MEM32(ebp + (-0xD8)) = 0; /* 0x36125451: mov dword ptr [ebp - 0xd8], 0 */ 5830 MEM32(ebp + (-0xD4)) = 0; /* 0x3612545B: mov dword ptr [ebp - 0xd4], 0 */ 5831 MEM32(ecx) = edx; /* 0x36125465: mov dword ptr [ecx], edx */ 5832 eax = MEM32(ebp + (-0xD8)); /* 0x36125467: mov eax, dword ptr [ebp - 0xd8] */ 5833 MEM32(ecx + 0x4) = eax; /* 0x3612546D: mov dword ptr [ecx + 4], eax */ 5834 edx = MEM32(ebp + (-0xD4)); /* 0x36125470: mov edx, dword ptr [ebp - 0xd4] */ 5835 eax = MEM32(ebp + (-0x2C)); /* 0x36125476: mov eax, dword ptr [ebp - 0x2c] */ 5836 MEM32(ecx + 0x8) = edx; /* 0x36125479: mov dword ptr [ecx + 8], edx */ 5837 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x3612547C: fmul dword ptr [esi + 0x16c0] */ 5838 ecx = MEM32(ebp + (-0xC)); /* 0x36125482: mov ecx, dword ptr [ebp - 0xc] */ 5839 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5840 ecx = ecx + 1; /* 0x36125485: inc ecx */ 5841 _flag_k = FK_INC; 5842 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36125486: fadd dword ptr [ebp - 0x18] */ 5843 MEM32(ebp + (-0xC)) = ecx; /* 0x36125489: mov dword ptr [ebp - 0xc], ecx */ 5844 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3612548C: fstp dword ptr [eax] */ 5845 eax = MEM32(ebp + (-0x1C)); /* 0x3612548E: mov eax, dword ptr [ebp - 0x1c] */ 5846 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5847 eax = eax - 1; /* 0x36125491: dec eax */ 5848 _flag_k = FK_DEC; 5849 MEM32(ebp + (-0x1C)) = eax; /* 0x36125492: mov dword ptr [ebp - 0x1c], eax */ 5850 goto L_361254A9; /* 0x36125495: jmp 0x361254a9 */ 5851 L_36125497: 5852 ecx = MEM32(esi + 0x38); /* 0x36125497: mov ecx, dword ptr [esi + 0x38] */ 5853 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612549A: mov byte ptr [ecx + ebx + 0x1c], 0 */ 5854 goto L_361254A9; /* 0x3612549F: jmp 0x361254a9 */ 5855 L_361254A1: 5856 edx = MEM32(esi + 0x38); /* 0x361254A1: mov edx, dword ptr [esi + 0x38] */ 5857 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x361254A4: mov byte ptr [edx + ebx + 0x1c], 0 */ 5858 L_361254A9: 5859 eax = MEM32(ebp + (-0x14)); /* 0x361254A9: mov eax, dword ptr [ebp - 0x14] */ 5860 edi = MEM32(ebp + (-0x8)); /* 0x361254AC: mov edi, dword ptr [ebp - 8] */ 5861 edx = MEM32(ebp + (-0x2C)); /* 0x361254AF: mov edx, dword ptr [ebp - 0x2c] */ 5862 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5863 eax = eax + 1; /* 0x361254B2: inc eax */ 5864 _flag_k = FK_INC; 5865 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 5866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5867 edi = edi + 0xCu; /* 0x361254B3: add edi, 0xc */ 5868 _flag_k = FK_ADD; 5869 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 5870 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5871 edx = edx + 4; /* 0x361254B6: add edx, 4 */ 5872 _flag_k = FK_ADD; 5873 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 5874 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5875 ebx = ebx + 0x20u; /* 0x361254B9: add ebx, 0x20 */ 5876 _flag_k = FK_ADD; 5877 /* cmp ebx, 0x1000u */ /* 0x361254BC: cmp ebx, 0x1000 */ 5878 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 5879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5880 _flag_k = FK_CMP; 5881 MEM32(ebp + (-0x14)) = eax; /* 0x361254C2: mov dword ptr [ebp - 0x14], eax */ 5882 MEM32(ebp + (-0x8)) = edi; /* 0x361254C5: mov dword ptr [ebp - 8], edi */ 5883 MEM32(ebp + (-0x2C)) = edx; /* 0x361254C8: mov dword ptr [ebp - 0x2c], edx */ 5884 RECOMP_BACKEDGE(); 5885 if (CMP_L(_flag_a, _flag_b)) goto L_36125188; /* 0x361254CB: jl 0x36125188 */ 5886 L_361254D1: 5887 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x361254D1: mov al, byte ptr [esi + 0x163c] */ 5888 /* test LO8(eax), LO8(eax) */ /* 0x361254D7: test al, al */ 5889 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5890 _cf = 0; 5891 _flag_k = FK_NARROW(FK_TEST, 24); 5892 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x361254D9: je 0x361275ac */ 5893 L_361254DF: 5894 eax = MEM32(ebp + (-0xC)); /* 0x361254DF: mov eax, dword ptr [ebp - 0xc] */ 5895 /* test eax, eax */ /* 0x361254E2: test eax, eax */ 5896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5897 _cf = 0; 5898 _flag_k = FK_TEST; 5899 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x361254E4: jne 0x361275ac */ 5900 L_361254EA: 5901 goto L_361275A8; /* 0x361254EA: jmp 0x361275a8 */ 5902 L_361275A8: 5903 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 5904 L_361275AC: 5905 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 5906 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 5907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5908 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 5909 _flag_k = FK_ADD; 5910 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 5911 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5912 _cf = 0; 5913 _flag_k = FK_TEST; 5914 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 5915 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 5916 L_361275B7: 5917 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 5918 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 5919 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 5920 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 5921 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 5922 RECOMP_FLAGS_IN(); 5923 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 5924 PUSH32(esp, eax); /* 0x361275CD: push eax */ 5925 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 5926 RECOMP_FLAGS_IN(); 5927 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 5928 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 5929 RECOMP_FLAGS_IN(); 5930 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 5931 PUSH32(esp, eax); /* 0x361275E2: push eax */ 5932 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 5933 RECOMP_FLAGS_IN(); 5934 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 5935 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 5936 RECOMP_FLAGS_IN(); 5937 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 5938 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5939 _cf = (LO8(eax)) != 0; 5940 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 5941 _flag_k = FK_NARROW(FK_CMP, 24); 5942 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 5943 eax = _sc ? 0xFFFFFFFFu : 0; 5944 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5945 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5947 eax = eax + 1; /* 0x361275F6: inc eax */ 5948 _flag_k = FK_INC; 5949 PUSH32(esp, eax); /* 0x361275F7: push eax */ 5950 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 5951 RECOMP_FLAGS_IN(); 5952 L_361275FE: 5953 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 5954 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 5955 esp = ebp; /* 0x36127600: mov esp, ebp */ 5956 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 5957 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 5958 RECOMP_REGS_OUT(); 5959 } 5960 5961 void sub_36125519(void) { 5962 int _fpu_cmp = 0; 5963 uint32_t _cf = 0; 5964 int _df = 1; 5965 uint32_t _flag_k = FK_NONE; 5966 uint32_t _flag_a = 0, _flag_b = 0; 5967 uint32_t _itail_tgt = 0; 5968 RECOMP_REGS_LOCALS 5969 RECOMP_ENTER(0x36125519u); 5970 5971 L_36125519: 5972 edx = MEM32(ebp + (-0x8)); /* 0x36125519: mov edx, dword ptr [ebp - 8] */ 5973 fp_push(*(float*)&MEM32(edx)); /* 0x3612551C: fld dword ptr [edx] */ 5974 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x3612551E: fcomp dword ptr [ebp - 0x18] */ 5975 fp_pop(); 5976 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125521: fnstsw ax */ 5977 /* test HI8(eax), 0x41u */ /* 0x36125523: test ah, 0x41 */ 5978 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5979 _cf = 0; 5980 _flag_k = FK_NARROW(FK_TEST, 24); 5981 if (TEST_NZ(_flag_a, _flag_b)) goto L_361255D0; /* 0x36125526: jne 0x361255d0 */ 5982 L_3612552C: 5983 ecx = MEM32(esi + 0x38); /* 0x3612552C: mov ecx, dword ptr [esi + 0x38] */ 5984 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3612552F: fld dword ptr [ebp - 0x18] */ 5985 eax = ebx; /* 0x36125532: mov eax, ebx */ 5986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5988 eax = eax + ecx; /* 0x36125534: add eax, ecx */ 5989 _flag_k = FK_ADD; 5990 ecx = edi; /* 0x36125536: mov ecx, edi */ 5991 edx = MEM32(ecx); /* 0x36125538: mov edx, dword ptr [ecx] */ 5992 MEM32(eax) = edx; /* 0x3612553A: mov dword ptr [eax], edx */ 5993 edx = MEM32(ecx + 0x4); /* 0x3612553C: mov edx, dword ptr [ecx + 4] */ 5994 MEM32(eax + 0x4) = edx; /* 0x3612553F: mov dword ptr [eax + 4], edx */ 5995 ecx = MEM32(ecx + 0x8); /* 0x36125542: mov ecx, dword ptr [ecx + 8] */ 5996 edx = MEM32(ebp + (-0x8)); /* 0x36125545: mov edx, dword ptr [ebp - 8] */ 5997 MEM32(eax + 0x8) = ecx; /* 0x36125548: mov dword ptr [eax + 8], ecx */ 5998 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x3612554B: fadd dword ptr [esi + 0x16c0] */ 5999 eax = MEM32(esi + 0x38); /* 0x36125551: mov eax, dword ptr [esi + 0x38] */ 6000 _st[0] -= (double)*(float*)ADDR(edx); /* 0x36125554: fsub dword ptr [edx] */ 6001 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36125556: fdiv dword ptr [esi + 0x16c0] */ 6002 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3612555C: fst dword ptr [ebp - 4] */ 6003 _st[0] += _st[0]; /* 0x3612555F: fadd st(0), st(0) */ 6004 edx = MEM32(ebp + (-0x4)); /* 0x36125561: mov edx, dword ptr [ebp - 4] */ 6005 PUSH32(esp, edx); /* 0x36125564: push edx */ 6006 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36125565: fsubr dword ptr [0x36170380] */ 6007 fp_push(_st[0]); /* 0x3612556B: fld st(0) */ 6008 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3612556D: fmulp st(1) */ 6009 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3612556F: fsubr dword ptr [0x36170380] */ 6010 fp_push(_st[0]); /* 0x36125575: fld st(0) */ 6011 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36125577: fmul dword ptr [esi + 0x16c8] */ 6012 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x3612557D: fstp dword ptr [ebx + eax + 0xc] */ 6013 ecx = MEM32(esi + 0x38); /* 0x36125581: mov ecx, dword ptr [esi + 0x38] */ 6014 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36125584: fmul dword ptr [esi + 0x16c8] */ 6015 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x3612558A: fstp dword ptr [ebx + ecx + 0x10] */ 6016 ecx = esi + 0x168C; /* 0x3612558E: lea ecx, [esi + 0x168c] */ 6017 RECOMP_ICALL(0x36137D80u); /* 0x36125594: call 0x36137d80 */ /* not lifted */ 6018 RECOMP_FLAGS_IN(); 6019 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36125599: fld dword ptr [ebp - 4] */ 6020 ecx = MEM32(esi + 0x38); /* 0x3612559C: mov ecx, dword ptr [esi + 0x38] */ 6021 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x3612559F: fmul dword ptr [0x36177750] */ 6022 MEM32(ebx + ecx + 0x14) = eax; /* 0x361255A5: mov dword ptr [ebx + ecx + 0x14], eax */ 6023 RECOMP_ICALL(0x3615FD8Cu); /* 0x361255A9: call 0x3615fd8c */ /* not lifted */ 6024 RECOMP_FLAGS_IN(); 6025 edx = 0xFu; /* 0x361255AE: mov edx, 0xf */ 6026 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6028 edx = edx - eax; /* 0x361255B3: sub edx, eax */ 6029 _flag_k = FK_CMP; 6030 eax = MEM32(esi + 0x38); /* 0x361255B5: mov eax, dword ptr [esi + 0x38] */ 6031 MEM32(ebx + eax + 0x18) = edx; /* 0x361255B8: mov dword ptr [ebx + eax + 0x18], edx */ 6032 eax = MEM32(ebp + (-0xC)); /* 0x361255BC: mov eax, dword ptr [ebp - 0xc] */ 6033 ecx = MEM32(esi + 0x38); /* 0x361255BF: mov ecx, dword ptr [esi + 0x38] */ 6034 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6035 eax = eax + 1; /* 0x361255C2: inc eax */ 6036 _flag_k = FK_INC; 6037 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x361255C3: mov byte ptr [ebx + ecx + 0x1c], 1 */ 6038 MEM32(ebp + (-0xC)) = eax; /* 0x361255C8: mov dword ptr [ebp - 0xc], eax */ 6039 goto L_36125839; /* 0x361255CB: jmp 0x36125839 */ 6040 L_361255D0: 6041 eax = MEM32(ebp + (-0x1C)); /* 0x361255D0: mov eax, dword ptr [ebp - 0x1c] */ 6042 /* test eax, eax */ /* 0x361255D3: test eax, eax */ 6043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6044 _cf = 0; 6045 _flag_k = FK_TEST; 6046 if (TEST_Z(_flag_a, _flag_b)) goto L_36125831; /* 0x361255D5: je 0x36125831 */ 6047 L_361255DB: 6048 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x361255DB: mov al, byte ptr [esi + 0x163c] */ 6049 /* test LO8(eax), LO8(eax) */ /* 0x361255E1: test al, al */ 6050 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6051 _cf = 0; 6052 _flag_k = FK_NARROW(FK_TEST, 24); 6053 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125831; /* 0x361255E3: jne 0x36125831 */ 6054 L_361255E9: 6055 RECOMP_ICALL(0x360F7B00u); /* 0x361255E9: call 0x360f7b00 */ /* not lifted */ 6056 RECOMP_FLAGS_IN(); 6057 edx = MEM32(esi + 0x28); /* 0x361255EE: mov edx, dword ptr [esi + 0x28] */ 6058 PUSH32(esp, edx); /* 0x361255F1: push edx */ 6059 ecx = eax; /* 0x361255F2: mov ecx, eax */ 6060 RECOMP_ICALL(0x360FBF90u); /* 0x361255F4: call 0x360fbf90 */ /* not lifted */ 6061 RECOMP_FLAGS_IN(); 6062 /* test eax, eax */ /* 0x361255F9: test eax, eax */ 6063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6064 _cf = 0; 6065 _flag_k = FK_TEST; 6066 MEM32(ebp + (-0x4)) = eax; /* 0x361255FB: mov dword ptr [ebp - 4], eax */ 6067 if (TEST_Z(_flag_a, _flag_b)) goto L_36125827; /* 0x361255FE: je 0x36125827 */ 6068 L_36125604: 6069 ecx = MEM32(ebp + (-0x4)); /* 0x36125604: mov ecx, dword ptr [ebp - 4] */ 6070 eax = ebp + (-0x348); /* 0x36125607: lea eax, [ebp - 0x348] */ 6071 PUSH32(esp, eax); /* 0x3612560D: push eax */ 6072 RECOMP_ICALL(0x36131BB0u); /* 0x3612560E: call 0x36131bb0 */ /* not lifted */ 6073 RECOMP_FLAGS_IN(); 6074 ecx = MEM32(eax); /* 0x36125613: mov ecx, dword ptr [eax] */ 6075 edx = MEM32(eax + 0x4); /* 0x36125615: mov edx, dword ptr [eax + 4] */ 6076 eax = MEM32(eax + 0x8); /* 0x36125618: mov eax, dword ptr [eax + 8] */ 6077 MEM32(ebp + (-0xC0)) = ecx; /* 0x3612561B: mov dword ptr [ebp - 0xc0], ecx */ 6078 ecx = ebp + (-0x258); /* 0x36125621: lea ecx, [ebp - 0x258] */ 6079 PUSH32(esp, ecx); /* 0x36125627: push ecx */ 6080 ecx = MEM32(ebp + (-0x4)); /* 0x36125628: mov ecx, dword ptr [ebp - 4] */ 6081 MEM32(ebp + (-0xBC)) = edx; /* 0x3612562B: mov dword ptr [ebp - 0xbc], edx */ 6082 MEM32(ebp + (-0xB8)) = eax; /* 0x36125631: mov dword ptr [ebp - 0xb8], eax */ 6083 RECOMP_ICALL(0x36131C00u); /* 0x36125637: call 0x36131c00 */ /* not lifted */ 6084 RECOMP_FLAGS_IN(); 6085 edx = MEM32(eax); /* 0x3612563C: mov edx, dword ptr [eax] */ 6086 ecx = MEM32(eax + 0x4); /* 0x3612563E: mov ecx, dword ptr [eax + 4] */ 6087 MEM32(ebp + (-0xDC)) = edx; /* 0x36125641: mov dword ptr [ebp - 0xdc], edx */ 6088 edx = MEM32(eax + 0x8); /* 0x36125647: mov edx, dword ptr [eax + 8] */ 6089 eax = ebp + (-0x9C); /* 0x3612564A: lea eax, [ebp - 0x9c] */ 6090 PUSH32(esp, eax); /* 0x36125650: push eax */ 6091 MEM32(ebp + (-0xD8)) = ecx; /* 0x36125651: mov dword ptr [ebp - 0xd8], ecx */ 6092 MEM32(ebp + (-0xD4)) = edx; /* 0x36125657: mov dword ptr [ebp - 0xd4], edx */ 6093 MEM32(ebp + (-0x9C)) = 0; /* 0x3612565D: mov dword ptr [ebp - 0x9c], 0 */ 6094 MEM32(ebp + (-0x98)) = 0; /* 0x36125667: mov dword ptr [ebp - 0x98], 0 */ 6095 MEM32(ebp + (-0x94)) = 0; /* 0x36125671: mov dword ptr [ebp - 0x94], 0 */ 6096 RECOMP_ICALL(0x360FCBF0u); /* 0x3612567B: call 0x360fcbf0 */ /* not lifted */ 6097 RECOMP_FLAGS_IN(); 6098 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x36125680: fld dword ptr [esi + 0x16cc] */ 6099 ecx = MEM32(ebp + (-0x9C)); /* 0x36125686: mov ecx, dword ptr [ebp - 0x9c] */ 6100 fp_push(_st[0]); /* 0x3612568C: fld st(0) */ 6101 _st[0] *= (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x3612568E: fmul dword ptr [ebp - 0x9c] */ 6102 edx = MEM32(ebp + (-0x98)); /* 0x36125694: mov edx, dword ptr [ebp - 0x98] */ 6103 eax = MEM32(ebp + (-0x94)); /* 0x3612569A: mov eax, dword ptr [ebp - 0x94] */ 6104 MEM32(ebp + (-0x80)) = ecx; /* 0x361256A0: mov dword ptr [ebp - 0x80], ecx */ 6105 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x361256A3: fstp dword ptr [ebp - 0x80] */ 6106 ecx = MEM32(ebp + (-0xC0)); /* 0x361256A6: mov ecx, dword ptr [ebp - 0xc0] */ 6107 MEM32(ebp + (-0x7C)) = edx; /* 0x361256AC: mov dword ptr [ebp - 0x7c], edx */ 6108 fp_push(_st[0]); /* 0x361256AF: fld st(0) */ 6109 edx = MEM32(ebp + (-0xBC)); /* 0x361256B1: mov edx, dword ptr [ebp - 0xbc] */ 6110 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x361256B7: fmul dword ptr [ebp - 0x7c] */ 6111 MEM32(ebp + (-0x78)) = eax; /* 0x361256BA: mov dword ptr [ebp - 0x78], eax */ 6112 eax = MEM32(ebp + (-0xB8)); /* 0x361256BD: mov eax, dword ptr [ebp - 0xb8] */ 6113 MEM32(ebp + (-0x68)) = ecx; /* 0x361256C3: mov dword ptr [ebp - 0x68], ecx */ 6114 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x361256C6: fstp dword ptr [ebp - 0x7c] */ 6115 ecx = MEM32(ebp + (-0xDC)); /* 0x361256C9: mov ecx, dword ptr [ebp - 0xdc] */ 6116 MEM32(ebp + (-0x64)) = edx; /* 0x361256CF: mov dword ptr [ebp - 0x64], edx */ 6117 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x361256D2: fmul dword ptr [ebp - 0x78] */ 6118 edx = MEM32(ebp + (-0xD8)); /* 0x361256D5: mov edx, dword ptr [ebp - 0xd8] */ 6119 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361256DB: fld dword ptr [0x36170380] */ 6120 MEM32(ebp + (-0x60)) = eax; /* 0x361256E1: mov dword ptr [ebp - 0x60], eax */ 6121 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361256E4: fsub dword ptr [ebp - 0x10] */ 6122 eax = MEM32(ebp + (-0xD4)); /* 0x361256E7: mov eax, dword ptr [ebp - 0xd4] */ 6123 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x361256ED: fld dword ptr [ebp - 0xc0] */ 6124 MEM32(ebp + (-0x28)) = ecx; /* 0x361256F3: mov dword ptr [ebp - 0x28], ecx */ 6125 MEM32(ebp + (-0x24)) = edx; /* 0x361256F6: mov dword ptr [ebp - 0x24], edx */ 6126 _st[0] *= _st[1]; /* 0x361256F9: fmul st(1) */ 6127 MEM32(ebp + (-0x20)) = eax; /* 0x361256FB: mov dword ptr [ebp - 0x20], eax */ 6128 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6129 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6130 esp = esp + 4; /* 0x361256FE: add esp, 4 */ 6131 _flag_k = FK_ADD; 6132 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36125701: fstp dword ptr [ebp - 0x68] */ 6133 fp_push(_st[0]); /* 0x36125704: fld st(0) */ 6134 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125706: fmul dword ptr [ebp - 0x64] */ 6135 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36125709: fstp dword ptr [ebp - 0x64] */ 6136 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x3612570C: fmul dword ptr [ebp - 0x60] */ 6137 fp_push(*(float*)&MEM32(ebp + (-0xDC))); /* 0x3612570F: fld dword ptr [ebp - 0xdc] */ 6138 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36125715: fmul dword ptr [ebp - 0x10] */ 6139 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36125718: fstp dword ptr [ebp - 0x28] */ 6140 ecx = MEM32(ebp + (-0x28)); /* 0x3612571B: mov ecx, dword ptr [ebp - 0x28] */ 6141 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3612571E: fld dword ptr [ebp - 0x10] */ 6142 MEM32(ebp + (-0x74)) = ecx; /* 0x36125721: mov dword ptr [ebp - 0x74], ecx */ 6143 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36125724: fmul dword ptr [ebp - 0x24] */ 6144 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36125727: fstp dword ptr [ebp - 0x24] */ 6145 edx = MEM32(ebp + (-0x24)); /* 0x3612572A: mov edx, dword ptr [ebp - 0x24] */ 6146 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3612572D: fld dword ptr [ebp - 0x10] */ 6147 MEM32(ebp + (-0x70)) = edx; /* 0x36125730: mov dword ptr [ebp - 0x70], edx */ 6148 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36125733: fmul dword ptr [ebp - 0x20] */ 6149 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36125736: fstp dword ptr [ebp - 0x20] */ 6150 eax = MEM32(ebp + (-0x20)); /* 0x36125739: mov eax, dword ptr [ebp - 0x20] */ 6151 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3612573C: fld dword ptr [ebp - 0x28] */ 6152 MEM32(ebp + (-0x6C)) = eax; /* 0x3612573F: mov dword ptr [ebp - 0x6c], eax */ 6153 _st[0] += (double)*(float*)ADDR(ebp + (-0x68)); /* 0x36125742: fadd dword ptr [ebp - 0x68] */ 6154 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36125745: fstp dword ptr [ebp - 0x74] */ 6155 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36125748: fld dword ptr [ebp - 0x70] */ 6156 ecx = MEM32(ebp + (-0x74)); /* 0x3612574B: mov ecx, dword ptr [ebp - 0x74] */ 6157 _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x3612574E: fadd dword ptr [ebp - 0x64] */ 6158 MEM32(ebp + (-0x5C)) = ecx; /* 0x36125751: mov dword ptr [ebp - 0x5c], ecx */ 6159 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36125754: fstp dword ptr [ebp - 0x70] */ 6160 edx = MEM32(ebp + (-0x70)); /* 0x36125757: mov edx, dword ptr [ebp - 0x70] */ 6161 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x3612575A: fld dword ptr [ebp - 0x6c] */ 6162 MEM32(ebp + (-0x58)) = edx; /* 0x3612575D: mov dword ptr [ebp - 0x58], edx */ 6163 _st[0] += _st[1]; /* 0x36125760: fadd st(1) */ 6164 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36125762: fstp dword ptr [ebp - 0x6c] */ 6165 eax = MEM32(ebp + (-0x6C)); /* 0x36125765: mov eax, dword ptr [ebp - 0x6c] */ 6166 MEM32(ebp + (-0x54)) = eax; /* 0x36125768: mov dword ptr [ebp - 0x54], eax */ 6167 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3612576B: fstp st(0) */ 6168 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x3612576D: fld dword ptr [ebp - 0x74] */ 6169 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125770: fadd dword ptr [ebp - 0x80] */ 6170 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36125773: fstp dword ptr [ebp - 0x5c] */ 6171 eax = MEM32(ebp + (-0x5C)); /* 0x36125776: mov eax, dword ptr [ebp - 0x5c] */ 6172 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36125779: fld dword ptr [ebp - 0x58] */ 6173 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x3612577C: fadd dword ptr [ebp - 0x7c] */ 6174 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x3612577F: fstp dword ptr [ebp - 0x58] */ 6175 ecx = MEM32(ebp + (-0x58)); /* 0x36125782: mov ecx, dword ptr [ebp - 0x58] */ 6176 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36125785: fld dword ptr [ebp - 0x54] */ 6177 _st[0] += _st[1]; /* 0x36125788: fadd st(1) */ 6178 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x3612578A: fstp dword ptr [ebp - 0x54] */ 6179 edx = MEM32(ebp + (-0x54)); /* 0x3612578D: mov edx, dword ptr [ebp - 0x54] */ 6180 MEM32(ebp + (-0xEC)) = edx; /* 0x36125790: mov dword ptr [ebp - 0xec], edx */ 6181 edx = edi; /* 0x36125796: mov edx, edi */ 6182 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125798: fstp st(0) */ 6183 MEM32(edx) = eax; /* 0x3612579A: mov dword ptr [edx], eax */ 6184 MEM32(edx + 0x4) = ecx; /* 0x3612579C: mov dword ptr [edx + 4], ecx */ 6185 eax = MEM32(ebp + (-0xEC)); /* 0x3612579F: mov eax, dword ptr [ebp - 0xec] */ 6186 MEM32(edx + 0x8) = eax; /* 0x361257A5: mov dword ptr [edx + 8], eax */ 6187 MEM32(ebp + (-0x90)) = 0; /* 0x361257A8: mov dword ptr [ebp - 0x90], 0 */ 6188 edx = MEM32(ebp + (-0x90)); /* 0x361257B2: mov edx, dword ptr [ebp - 0x90] */ 6189 MEM32(ebp + (-0x8C)) = 0; /* 0x361257B8: mov dword ptr [ebp - 0x8c], 0 */ 6190 MEM32(ebp + (-0x88)) = 0; /* 0x361257C2: mov dword ptr [ebp - 0x88], 0 */ 6191 ecx = edi + (-0x600); /* 0x361257CC: lea ecx, [edi - 0x600] */ 6192 MEM32(ecx) = edx; /* 0x361257D2: mov dword ptr [ecx], edx */ 6193 eax = MEM32(ebp + (-0x8C)); /* 0x361257D4: mov eax, dword ptr [ebp - 0x8c] */ 6194 MEM32(ecx + 0x4) = eax; /* 0x361257DA: mov dword ptr [ecx + 4], eax */ 6195 edx = MEM32(ebp + (-0x88)); /* 0x361257DD: mov edx, dword ptr [ebp - 0x88] */ 6196 MEM32(ecx + 0x8) = edx; /* 0x361257E3: mov dword ptr [ecx + 8], edx */ 6197 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361257E6: call dword ptr [0x3616f254] */ 6198 RECOMP_FLAGS_IN(); 6199 ecx = MEM32(ebp + (-0xC)); /* 0x361257EC: mov ecx, dword ptr [ebp - 0xc] */ 6200 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFu); 6201 eax = eax & 0x7FFu; /* 0x361257EF: and eax, 0x7ff */ 6202 _cf = 0; 6203 _flag_k = FK_TEST; 6204 MEM32(ebp + (-0x84)) = eax; /* 0x361257F4: mov dword ptr [ebp - 0x84], eax */ 6205 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x361257FA: fild dword ptr [ebp - 0x84] */ 6206 eax = MEM32(ebp + (-0x8)); /* 0x36125800: mov eax, dword ptr [ebp - 8] */ 6207 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6208 ecx = ecx + 1; /* 0x36125803: inc ecx */ 6209 _flag_k = FK_INC; 6210 MEM32(ebp + (-0xC)) = ecx; /* 0x36125804: mov dword ptr [ebp - 0xc], ecx */ 6211 _st[0] *= (double)*(float*)ADDR(0x36170EAC); /* 0x36125807: fmul dword ptr [0x36170eac] */ 6212 _st[0] += (double)*(float*)ADDR(0x36170824); /* 0x3612580D: fadd dword ptr [0x36170824] */ 6213 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36125813: fmul dword ptr [esi + 0x16c0] */ 6214 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36125819: fadd dword ptr [ebp - 0x18] */ 6215 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3612581C: fstp dword ptr [eax] */ 6216 eax = MEM32(ebp + (-0x1C)); /* 0x3612581E: mov eax, dword ptr [ebp - 0x1c] */ 6217 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6218 eax = eax - 1; /* 0x36125821: dec eax */ 6219 _flag_k = FK_DEC; 6220 MEM32(ebp + (-0x1C)) = eax; /* 0x36125822: mov dword ptr [ebp - 0x1c], eax */ 6221 goto L_36125839; /* 0x36125825: jmp 0x36125839 */ 6222 L_36125827: 6223 ecx = MEM32(esi + 0x38); /* 0x36125827: mov ecx, dword ptr [esi + 0x38] */ 6224 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612582A: mov byte ptr [ecx + ebx + 0x1c], 0 */ 6225 goto L_36125839; /* 0x3612582F: jmp 0x36125839 */ 6226 L_36125831: 6227 edx = MEM32(esi + 0x38); /* 0x36125831: mov edx, dword ptr [esi + 0x38] */ 6228 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x36125834: mov byte ptr [edx + ebx + 0x1c], 0 */ 6229 L_36125839: 6230 edx = MEM32(ebp + (-0x8)); /* 0x36125839: mov edx, dword ptr [ebp - 8] */ 6231 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 6232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6233 edx = edx + 4; /* 0x3612583C: add edx, 4 */ 6234 _flag_k = FK_ADD; 6235 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 6236 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6237 ebx = ebx + 0x20u; /* 0x3612583F: add ebx, 0x20 */ 6238 _flag_k = FK_ADD; 6239 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 6240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6241 edi = edi + 0xCu; /* 0x36125842: add edi, 0xc */ 6242 _flag_k = FK_ADD; 6243 /* cmp ebx, 0x1000u */ /* 0x36125845: cmp ebx, 0x1000 */ 6244 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 6245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6246 _flag_k = FK_CMP; 6247 MEM32(ebp + (-0x8)) = edx; /* 0x3612584B: mov dword ptr [ebp - 8], edx */ 6248 RECOMP_BACKEDGE(); 6249 if (CMP_L(_flag_a, _flag_b)) goto L_36125519; /* 0x3612584E: jl 0x36125519 */ 6250 L_36125854: 6251 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36125854: mov al, byte ptr [esi + 0x163c] */ 6252 /* test LO8(eax), LO8(eax) */ /* 0x3612585A: test al, al */ 6253 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6254 _cf = 0; 6255 _flag_k = FK_NARROW(FK_TEST, 24); 6256 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612585C: je 0x361275ac */ 6257 L_36125862: 6258 eax = MEM32(ebp + (-0xC)); /* 0x36125862: mov eax, dword ptr [ebp - 0xc] */ 6259 /* test eax, eax */ /* 0x36125865: test eax, eax */ 6260 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6261 _cf = 0; 6262 _flag_k = FK_TEST; 6263 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36125867: jne 0x361275ac */ 6264 L_3612586D: 6265 goto L_361275A8; /* 0x3612586D: jmp 0x361275a8 */ 6266 L_361275A8: 6267 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 6268 L_361275AC: 6269 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 6270 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 6271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6272 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 6273 _flag_k = FK_ADD; 6274 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 6275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6276 _cf = 0; 6277 _flag_k = FK_TEST; 6278 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 6279 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 6280 L_361275B7: 6281 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 6282 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 6283 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 6284 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 6285 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 6286 RECOMP_FLAGS_IN(); 6287 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 6288 PUSH32(esp, eax); /* 0x361275CD: push eax */ 6289 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 6290 RECOMP_FLAGS_IN(); 6291 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 6292 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 6293 RECOMP_FLAGS_IN(); 6294 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 6295 PUSH32(esp, eax); /* 0x361275E2: push eax */ 6296 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 6297 RECOMP_FLAGS_IN(); 6298 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 6299 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 6300 RECOMP_FLAGS_IN(); 6301 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 6302 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6303 _cf = (LO8(eax)) != 0; 6304 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 6305 _flag_k = FK_NARROW(FK_CMP, 24); 6306 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 6307 eax = _sc ? 0xFFFFFFFFu : 0; 6308 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6309 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6310 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6311 eax = eax + 1; /* 0x361275F6: inc eax */ 6312 _flag_k = FK_INC; 6313 PUSH32(esp, eax); /* 0x361275F7: push eax */ 6314 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 6315 RECOMP_FLAGS_IN(); 6316 L_361275FE: 6317 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 6318 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 6319 esp = ebp; /* 0x36127600: mov esp, ebp */ 6320 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 6321 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 6322 RECOMP_REGS_OUT(); 6323 } 6324 6325 void sub_36125839(void) { 6326 int _fpu_cmp = 0; 6327 uint32_t _cf = 0; 6328 int _df = 1; 6329 uint32_t _flag_k = FK_NONE; 6330 uint32_t _flag_a = 0, _flag_b = 0; 6331 uint32_t _itail_tgt = 0; 6332 RECOMP_REGS_LOCALS 6333 RECOMP_ENTER(0x36125839u); 6334 6335 goto L_36125839; 6336 L_36125519: 6337 edx = MEM32(ebp + (-0x8)); /* 0x36125519: mov edx, dword ptr [ebp - 8] */ 6338 fp_push(*(float*)&MEM32(edx)); /* 0x3612551C: fld dword ptr [edx] */ 6339 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x3612551E: fcomp dword ptr [ebp - 0x18] */ 6340 fp_pop(); 6341 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125521: fnstsw ax */ 6342 /* test HI8(eax), 0x41u */ /* 0x36125523: test ah, 0x41 */ 6343 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 6344 _cf = 0; 6345 _flag_k = FK_NARROW(FK_TEST, 24); 6346 if (TEST_NZ(_flag_a, _flag_b)) goto L_361255D0; /* 0x36125526: jne 0x361255d0 */ 6347 L_3612552C: 6348 ecx = MEM32(esi + 0x38); /* 0x3612552C: mov ecx, dword ptr [esi + 0x38] */ 6349 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3612552F: fld dword ptr [ebp - 0x18] */ 6350 eax = ebx; /* 0x36125532: mov eax, ebx */ 6351 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6352 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6353 eax = eax + ecx; /* 0x36125534: add eax, ecx */ 6354 _flag_k = FK_ADD; 6355 ecx = edi; /* 0x36125536: mov ecx, edi */ 6356 edx = MEM32(ecx); /* 0x36125538: mov edx, dword ptr [ecx] */ 6357 MEM32(eax) = edx; /* 0x3612553A: mov dword ptr [eax], edx */ 6358 edx = MEM32(ecx + 0x4); /* 0x3612553C: mov edx, dword ptr [ecx + 4] */ 6359 MEM32(eax + 0x4) = edx; /* 0x3612553F: mov dword ptr [eax + 4], edx */ 6360 ecx = MEM32(ecx + 0x8); /* 0x36125542: mov ecx, dword ptr [ecx + 8] */ 6361 edx = MEM32(ebp + (-0x8)); /* 0x36125545: mov edx, dword ptr [ebp - 8] */ 6362 MEM32(eax + 0x8) = ecx; /* 0x36125548: mov dword ptr [eax + 8], ecx */ 6363 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x3612554B: fadd dword ptr [esi + 0x16c0] */ 6364 eax = MEM32(esi + 0x38); /* 0x36125551: mov eax, dword ptr [esi + 0x38] */ 6365 _st[0] -= (double)*(float*)ADDR(edx); /* 0x36125554: fsub dword ptr [edx] */ 6366 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36125556: fdiv dword ptr [esi + 0x16c0] */ 6367 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3612555C: fst dword ptr [ebp - 4] */ 6368 _st[0] += _st[0]; /* 0x3612555F: fadd st(0), st(0) */ 6369 edx = MEM32(ebp + (-0x4)); /* 0x36125561: mov edx, dword ptr [ebp - 4] */ 6370 PUSH32(esp, edx); /* 0x36125564: push edx */ 6371 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36125565: fsubr dword ptr [0x36170380] */ 6372 fp_push(_st[0]); /* 0x3612556B: fld st(0) */ 6373 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3612556D: fmulp st(1) */ 6374 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3612556F: fsubr dword ptr [0x36170380] */ 6375 fp_push(_st[0]); /* 0x36125575: fld st(0) */ 6376 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36125577: fmul dword ptr [esi + 0x16c8] */ 6377 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x3612557D: fstp dword ptr [ebx + eax + 0xc] */ 6378 ecx = MEM32(esi + 0x38); /* 0x36125581: mov ecx, dword ptr [esi + 0x38] */ 6379 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x36125584: fmul dword ptr [esi + 0x16c8] */ 6380 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x3612558A: fstp dword ptr [ebx + ecx + 0x10] */ 6381 ecx = esi + 0x168C; /* 0x3612558E: lea ecx, [esi + 0x168c] */ 6382 RECOMP_ICALL(0x36137D80u); /* 0x36125594: call 0x36137d80 */ /* not lifted */ 6383 RECOMP_FLAGS_IN(); 6384 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36125599: fld dword ptr [ebp - 4] */ 6385 ecx = MEM32(esi + 0x38); /* 0x3612559C: mov ecx, dword ptr [esi + 0x38] */ 6386 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x3612559F: fmul dword ptr [0x36177750] */ 6387 MEM32(ebx + ecx + 0x14) = eax; /* 0x361255A5: mov dword ptr [ebx + ecx + 0x14], eax */ 6388 RECOMP_ICALL(0x3615FD8Cu); /* 0x361255A9: call 0x3615fd8c */ /* not lifted */ 6389 RECOMP_FLAGS_IN(); 6390 edx = 0xFu; /* 0x361255AE: mov edx, 0xf */ 6391 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6393 edx = edx - eax; /* 0x361255B3: sub edx, eax */ 6394 _flag_k = FK_CMP; 6395 eax = MEM32(esi + 0x38); /* 0x361255B5: mov eax, dword ptr [esi + 0x38] */ 6396 MEM32(ebx + eax + 0x18) = edx; /* 0x361255B8: mov dword ptr [ebx + eax + 0x18], edx */ 6397 eax = MEM32(ebp + (-0xC)); /* 0x361255BC: mov eax, dword ptr [ebp - 0xc] */ 6398 ecx = MEM32(esi + 0x38); /* 0x361255BF: mov ecx, dword ptr [esi + 0x38] */ 6399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6400 eax = eax + 1; /* 0x361255C2: inc eax */ 6401 _flag_k = FK_INC; 6402 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x361255C3: mov byte ptr [ebx + ecx + 0x1c], 1 */ 6403 MEM32(ebp + (-0xC)) = eax; /* 0x361255C8: mov dword ptr [ebp - 0xc], eax */ 6404 goto L_36125839; /* 0x361255CB: jmp 0x36125839 */ 6405 L_361255D0: 6406 eax = MEM32(ebp + (-0x1C)); /* 0x361255D0: mov eax, dword ptr [ebp - 0x1c] */ 6407 /* test eax, eax */ /* 0x361255D3: test eax, eax */ 6408 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6409 _cf = 0; 6410 _flag_k = FK_TEST; 6411 if (TEST_Z(_flag_a, _flag_b)) goto L_36125831; /* 0x361255D5: je 0x36125831 */ 6412 L_361255DB: 6413 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x361255DB: mov al, byte ptr [esi + 0x163c] */ 6414 /* test LO8(eax), LO8(eax) */ /* 0x361255E1: test al, al */ 6415 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6416 _cf = 0; 6417 _flag_k = FK_NARROW(FK_TEST, 24); 6418 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125831; /* 0x361255E3: jne 0x36125831 */ 6419 L_361255E9: 6420 RECOMP_ICALL(0x360F7B00u); /* 0x361255E9: call 0x360f7b00 */ /* not lifted */ 6421 RECOMP_FLAGS_IN(); 6422 edx = MEM32(esi + 0x28); /* 0x361255EE: mov edx, dword ptr [esi + 0x28] */ 6423 PUSH32(esp, edx); /* 0x361255F1: push edx */ 6424 ecx = eax; /* 0x361255F2: mov ecx, eax */ 6425 RECOMP_ICALL(0x360FBF90u); /* 0x361255F4: call 0x360fbf90 */ /* not lifted */ 6426 RECOMP_FLAGS_IN(); 6427 /* test eax, eax */ /* 0x361255F9: test eax, eax */ 6428 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6429 _cf = 0; 6430 _flag_k = FK_TEST; 6431 MEM32(ebp + (-0x4)) = eax; /* 0x361255FB: mov dword ptr [ebp - 4], eax */ 6432 if (TEST_Z(_flag_a, _flag_b)) goto L_36125827; /* 0x361255FE: je 0x36125827 */ 6433 L_36125604: 6434 ecx = MEM32(ebp + (-0x4)); /* 0x36125604: mov ecx, dword ptr [ebp - 4] */ 6435 eax = ebp + (-0x348); /* 0x36125607: lea eax, [ebp - 0x348] */ 6436 PUSH32(esp, eax); /* 0x3612560D: push eax */ 6437 RECOMP_ICALL(0x36131BB0u); /* 0x3612560E: call 0x36131bb0 */ /* not lifted */ 6438 RECOMP_FLAGS_IN(); 6439 ecx = MEM32(eax); /* 0x36125613: mov ecx, dword ptr [eax] */ 6440 edx = MEM32(eax + 0x4); /* 0x36125615: mov edx, dword ptr [eax + 4] */ 6441 eax = MEM32(eax + 0x8); /* 0x36125618: mov eax, dword ptr [eax + 8] */ 6442 MEM32(ebp + (-0xC0)) = ecx; /* 0x3612561B: mov dword ptr [ebp - 0xc0], ecx */ 6443 ecx = ebp + (-0x258); /* 0x36125621: lea ecx, [ebp - 0x258] */ 6444 PUSH32(esp, ecx); /* 0x36125627: push ecx */ 6445 ecx = MEM32(ebp + (-0x4)); /* 0x36125628: mov ecx, dword ptr [ebp - 4] */ 6446 MEM32(ebp + (-0xBC)) = edx; /* 0x3612562B: mov dword ptr [ebp - 0xbc], edx */ 6447 MEM32(ebp + (-0xB8)) = eax; /* 0x36125631: mov dword ptr [ebp - 0xb8], eax */ 6448 RECOMP_ICALL(0x36131C00u); /* 0x36125637: call 0x36131c00 */ /* not lifted */ 6449 RECOMP_FLAGS_IN(); 6450 edx = MEM32(eax); /* 0x3612563C: mov edx, dword ptr [eax] */ 6451 ecx = MEM32(eax + 0x4); /* 0x3612563E: mov ecx, dword ptr [eax + 4] */ 6452 MEM32(ebp + (-0xDC)) = edx; /* 0x36125641: mov dword ptr [ebp - 0xdc], edx */ 6453 edx = MEM32(eax + 0x8); /* 0x36125647: mov edx, dword ptr [eax + 8] */ 6454 eax = ebp + (-0x9C); /* 0x3612564A: lea eax, [ebp - 0x9c] */ 6455 PUSH32(esp, eax); /* 0x36125650: push eax */ 6456 MEM32(ebp + (-0xD8)) = ecx; /* 0x36125651: mov dword ptr [ebp - 0xd8], ecx */ 6457 MEM32(ebp + (-0xD4)) = edx; /* 0x36125657: mov dword ptr [ebp - 0xd4], edx */ 6458 MEM32(ebp + (-0x9C)) = 0; /* 0x3612565D: mov dword ptr [ebp - 0x9c], 0 */ 6459 MEM32(ebp + (-0x98)) = 0; /* 0x36125667: mov dword ptr [ebp - 0x98], 0 */ 6460 MEM32(ebp + (-0x94)) = 0; /* 0x36125671: mov dword ptr [ebp - 0x94], 0 */ 6461 RECOMP_ICALL(0x360FCBF0u); /* 0x3612567B: call 0x360fcbf0 */ /* not lifted */ 6462 RECOMP_FLAGS_IN(); 6463 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x36125680: fld dword ptr [esi + 0x16cc] */ 6464 ecx = MEM32(ebp + (-0x9C)); /* 0x36125686: mov ecx, dword ptr [ebp - 0x9c] */ 6465 fp_push(_st[0]); /* 0x3612568C: fld st(0) */ 6466 _st[0] *= (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x3612568E: fmul dword ptr [ebp - 0x9c] */ 6467 edx = MEM32(ebp + (-0x98)); /* 0x36125694: mov edx, dword ptr [ebp - 0x98] */ 6468 eax = MEM32(ebp + (-0x94)); /* 0x3612569A: mov eax, dword ptr [ebp - 0x94] */ 6469 MEM32(ebp + (-0x80)) = ecx; /* 0x361256A0: mov dword ptr [ebp - 0x80], ecx */ 6470 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x361256A3: fstp dword ptr [ebp - 0x80] */ 6471 ecx = MEM32(ebp + (-0xC0)); /* 0x361256A6: mov ecx, dword ptr [ebp - 0xc0] */ 6472 MEM32(ebp + (-0x7C)) = edx; /* 0x361256AC: mov dword ptr [ebp - 0x7c], edx */ 6473 fp_push(_st[0]); /* 0x361256AF: fld st(0) */ 6474 edx = MEM32(ebp + (-0xBC)); /* 0x361256B1: mov edx, dword ptr [ebp - 0xbc] */ 6475 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x361256B7: fmul dword ptr [ebp - 0x7c] */ 6476 MEM32(ebp + (-0x78)) = eax; /* 0x361256BA: mov dword ptr [ebp - 0x78], eax */ 6477 eax = MEM32(ebp + (-0xB8)); /* 0x361256BD: mov eax, dword ptr [ebp - 0xb8] */ 6478 MEM32(ebp + (-0x68)) = ecx; /* 0x361256C3: mov dword ptr [ebp - 0x68], ecx */ 6479 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x361256C6: fstp dword ptr [ebp - 0x7c] */ 6480 ecx = MEM32(ebp + (-0xDC)); /* 0x361256C9: mov ecx, dword ptr [ebp - 0xdc] */ 6481 MEM32(ebp + (-0x64)) = edx; /* 0x361256CF: mov dword ptr [ebp - 0x64], edx */ 6482 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x361256D2: fmul dword ptr [ebp - 0x78] */ 6483 edx = MEM32(ebp + (-0xD8)); /* 0x361256D5: mov edx, dword ptr [ebp - 0xd8] */ 6484 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361256DB: fld dword ptr [0x36170380] */ 6485 MEM32(ebp + (-0x60)) = eax; /* 0x361256E1: mov dword ptr [ebp - 0x60], eax */ 6486 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361256E4: fsub dword ptr [ebp - 0x10] */ 6487 eax = MEM32(ebp + (-0xD4)); /* 0x361256E7: mov eax, dword ptr [ebp - 0xd4] */ 6488 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x361256ED: fld dword ptr [ebp - 0xc0] */ 6489 MEM32(ebp + (-0x28)) = ecx; /* 0x361256F3: mov dword ptr [ebp - 0x28], ecx */ 6490 MEM32(ebp + (-0x24)) = edx; /* 0x361256F6: mov dword ptr [ebp - 0x24], edx */ 6491 _st[0] *= _st[1]; /* 0x361256F9: fmul st(1) */ 6492 MEM32(ebp + (-0x20)) = eax; /* 0x361256FB: mov dword ptr [ebp - 0x20], eax */ 6493 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6494 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6495 esp = esp + 4; /* 0x361256FE: add esp, 4 */ 6496 _flag_k = FK_ADD; 6497 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36125701: fstp dword ptr [ebp - 0x68] */ 6498 fp_push(_st[0]); /* 0x36125704: fld st(0) */ 6499 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125706: fmul dword ptr [ebp - 0x64] */ 6500 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36125709: fstp dword ptr [ebp - 0x64] */ 6501 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x3612570C: fmul dword ptr [ebp - 0x60] */ 6502 fp_push(*(float*)&MEM32(ebp + (-0xDC))); /* 0x3612570F: fld dword ptr [ebp - 0xdc] */ 6503 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36125715: fmul dword ptr [ebp - 0x10] */ 6504 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36125718: fstp dword ptr [ebp - 0x28] */ 6505 ecx = MEM32(ebp + (-0x28)); /* 0x3612571B: mov ecx, dword ptr [ebp - 0x28] */ 6506 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3612571E: fld dword ptr [ebp - 0x10] */ 6507 MEM32(ebp + (-0x74)) = ecx; /* 0x36125721: mov dword ptr [ebp - 0x74], ecx */ 6508 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36125724: fmul dword ptr [ebp - 0x24] */ 6509 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36125727: fstp dword ptr [ebp - 0x24] */ 6510 edx = MEM32(ebp + (-0x24)); /* 0x3612572A: mov edx, dword ptr [ebp - 0x24] */ 6511 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3612572D: fld dword ptr [ebp - 0x10] */ 6512 MEM32(ebp + (-0x70)) = edx; /* 0x36125730: mov dword ptr [ebp - 0x70], edx */ 6513 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36125733: fmul dword ptr [ebp - 0x20] */ 6514 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36125736: fstp dword ptr [ebp - 0x20] */ 6515 eax = MEM32(ebp + (-0x20)); /* 0x36125739: mov eax, dword ptr [ebp - 0x20] */ 6516 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3612573C: fld dword ptr [ebp - 0x28] */ 6517 MEM32(ebp + (-0x6C)) = eax; /* 0x3612573F: mov dword ptr [ebp - 0x6c], eax */ 6518 _st[0] += (double)*(float*)ADDR(ebp + (-0x68)); /* 0x36125742: fadd dword ptr [ebp - 0x68] */ 6519 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36125745: fstp dword ptr [ebp - 0x74] */ 6520 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36125748: fld dword ptr [ebp - 0x70] */ 6521 ecx = MEM32(ebp + (-0x74)); /* 0x3612574B: mov ecx, dword ptr [ebp - 0x74] */ 6522 _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x3612574E: fadd dword ptr [ebp - 0x64] */ 6523 MEM32(ebp + (-0x5C)) = ecx; /* 0x36125751: mov dword ptr [ebp - 0x5c], ecx */ 6524 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36125754: fstp dword ptr [ebp - 0x70] */ 6525 edx = MEM32(ebp + (-0x70)); /* 0x36125757: mov edx, dword ptr [ebp - 0x70] */ 6526 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x3612575A: fld dword ptr [ebp - 0x6c] */ 6527 MEM32(ebp + (-0x58)) = edx; /* 0x3612575D: mov dword ptr [ebp - 0x58], edx */ 6528 _st[0] += _st[1]; /* 0x36125760: fadd st(1) */ 6529 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36125762: fstp dword ptr [ebp - 0x6c] */ 6530 eax = MEM32(ebp + (-0x6C)); /* 0x36125765: mov eax, dword ptr [ebp - 0x6c] */ 6531 MEM32(ebp + (-0x54)) = eax; /* 0x36125768: mov dword ptr [ebp - 0x54], eax */ 6532 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3612576B: fstp st(0) */ 6533 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x3612576D: fld dword ptr [ebp - 0x74] */ 6534 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125770: fadd dword ptr [ebp - 0x80] */ 6535 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36125773: fstp dword ptr [ebp - 0x5c] */ 6536 eax = MEM32(ebp + (-0x5C)); /* 0x36125776: mov eax, dword ptr [ebp - 0x5c] */ 6537 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36125779: fld dword ptr [ebp - 0x58] */ 6538 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x3612577C: fadd dword ptr [ebp - 0x7c] */ 6539 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x3612577F: fstp dword ptr [ebp - 0x58] */ 6540 ecx = MEM32(ebp + (-0x58)); /* 0x36125782: mov ecx, dword ptr [ebp - 0x58] */ 6541 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36125785: fld dword ptr [ebp - 0x54] */ 6542 _st[0] += _st[1]; /* 0x36125788: fadd st(1) */ 6543 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x3612578A: fstp dword ptr [ebp - 0x54] */ 6544 edx = MEM32(ebp + (-0x54)); /* 0x3612578D: mov edx, dword ptr [ebp - 0x54] */ 6545 MEM32(ebp + (-0xEC)) = edx; /* 0x36125790: mov dword ptr [ebp - 0xec], edx */ 6546 edx = edi; /* 0x36125796: mov edx, edi */ 6547 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125798: fstp st(0) */ 6548 MEM32(edx) = eax; /* 0x3612579A: mov dword ptr [edx], eax */ 6549 MEM32(edx + 0x4) = ecx; /* 0x3612579C: mov dword ptr [edx + 4], ecx */ 6550 eax = MEM32(ebp + (-0xEC)); /* 0x3612579F: mov eax, dword ptr [ebp - 0xec] */ 6551 MEM32(edx + 0x8) = eax; /* 0x361257A5: mov dword ptr [edx + 8], eax */ 6552 MEM32(ebp + (-0x90)) = 0; /* 0x361257A8: mov dword ptr [ebp - 0x90], 0 */ 6553 edx = MEM32(ebp + (-0x90)); /* 0x361257B2: mov edx, dword ptr [ebp - 0x90] */ 6554 MEM32(ebp + (-0x8C)) = 0; /* 0x361257B8: mov dword ptr [ebp - 0x8c], 0 */ 6555 MEM32(ebp + (-0x88)) = 0; /* 0x361257C2: mov dword ptr [ebp - 0x88], 0 */ 6556 ecx = edi + (-0x600); /* 0x361257CC: lea ecx, [edi - 0x600] */ 6557 MEM32(ecx) = edx; /* 0x361257D2: mov dword ptr [ecx], edx */ 6558 eax = MEM32(ebp + (-0x8C)); /* 0x361257D4: mov eax, dword ptr [ebp - 0x8c] */ 6559 MEM32(ecx + 0x4) = eax; /* 0x361257DA: mov dword ptr [ecx + 4], eax */ 6560 edx = MEM32(ebp + (-0x88)); /* 0x361257DD: mov edx, dword ptr [ebp - 0x88] */ 6561 MEM32(ecx + 0x8) = edx; /* 0x361257E3: mov dword ptr [ecx + 8], edx */ 6562 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361257E6: call dword ptr [0x3616f254] */ 6563 RECOMP_FLAGS_IN(); 6564 ecx = MEM32(ebp + (-0xC)); /* 0x361257EC: mov ecx, dword ptr [ebp - 0xc] */ 6565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFu); 6566 eax = eax & 0x7FFu; /* 0x361257EF: and eax, 0x7ff */ 6567 _cf = 0; 6568 _flag_k = FK_TEST; 6569 MEM32(ebp + (-0x84)) = eax; /* 0x361257F4: mov dword ptr [ebp - 0x84], eax */ 6570 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x361257FA: fild dword ptr [ebp - 0x84] */ 6571 eax = MEM32(ebp + (-0x8)); /* 0x36125800: mov eax, dword ptr [ebp - 8] */ 6572 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6573 ecx = ecx + 1; /* 0x36125803: inc ecx */ 6574 _flag_k = FK_INC; 6575 MEM32(ebp + (-0xC)) = ecx; /* 0x36125804: mov dword ptr [ebp - 0xc], ecx */ 6576 _st[0] *= (double)*(float*)ADDR(0x36170EAC); /* 0x36125807: fmul dword ptr [0x36170eac] */ 6577 _st[0] += (double)*(float*)ADDR(0x36170824); /* 0x3612580D: fadd dword ptr [0x36170824] */ 6578 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36125813: fmul dword ptr [esi + 0x16c0] */ 6579 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36125819: fadd dword ptr [ebp - 0x18] */ 6580 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3612581C: fstp dword ptr [eax] */ 6581 eax = MEM32(ebp + (-0x1C)); /* 0x3612581E: mov eax, dword ptr [ebp - 0x1c] */ 6582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6583 eax = eax - 1; /* 0x36125821: dec eax */ 6584 _flag_k = FK_DEC; 6585 MEM32(ebp + (-0x1C)) = eax; /* 0x36125822: mov dword ptr [ebp - 0x1c], eax */ 6586 goto L_36125839; /* 0x36125825: jmp 0x36125839 */ 6587 L_36125827: 6588 ecx = MEM32(esi + 0x38); /* 0x36125827: mov ecx, dword ptr [esi + 0x38] */ 6589 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612582A: mov byte ptr [ecx + ebx + 0x1c], 0 */ 6590 goto L_36125839; /* 0x3612582F: jmp 0x36125839 */ 6591 L_36125831: 6592 edx = MEM32(esi + 0x38); /* 0x36125831: mov edx, dword ptr [esi + 0x38] */ 6593 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x36125834: mov byte ptr [edx + ebx + 0x1c], 0 */ 6594 L_36125839: 6595 edx = MEM32(ebp + (-0x8)); /* 0x36125839: mov edx, dword ptr [ebp - 8] */ 6596 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 6597 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6598 edx = edx + 4; /* 0x3612583C: add edx, 4 */ 6599 _flag_k = FK_ADD; 6600 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 6601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6602 ebx = ebx + 0x20u; /* 0x3612583F: add ebx, 0x20 */ 6603 _flag_k = FK_ADD; 6604 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 6605 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6606 edi = edi + 0xCu; /* 0x36125842: add edi, 0xc */ 6607 _flag_k = FK_ADD; 6608 /* cmp ebx, 0x1000u */ /* 0x36125845: cmp ebx, 0x1000 */ 6609 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 6610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6611 _flag_k = FK_CMP; 6612 MEM32(ebp + (-0x8)) = edx; /* 0x3612584B: mov dword ptr [ebp - 8], edx */ 6613 RECOMP_BACKEDGE(); 6614 if (CMP_L(_flag_a, _flag_b)) goto L_36125519; /* 0x3612584E: jl 0x36125519 */ 6615 L_36125854: 6616 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36125854: mov al, byte ptr [esi + 0x163c] */ 6617 /* test LO8(eax), LO8(eax) */ /* 0x3612585A: test al, al */ 6618 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6619 _cf = 0; 6620 _flag_k = FK_NARROW(FK_TEST, 24); 6621 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612585C: je 0x361275ac */ 6622 L_36125862: 6623 eax = MEM32(ebp + (-0xC)); /* 0x36125862: mov eax, dword ptr [ebp - 0xc] */ 6624 /* test eax, eax */ /* 0x36125865: test eax, eax */ 6625 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6626 _cf = 0; 6627 _flag_k = FK_TEST; 6628 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36125867: jne 0x361275ac */ 6629 L_3612586D: 6630 goto L_361275A8; /* 0x3612586D: jmp 0x361275a8 */ 6631 L_361275A8: 6632 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 6633 L_361275AC: 6634 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 6635 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 6636 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6637 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 6638 _flag_k = FK_ADD; 6639 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 6640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6641 _cf = 0; 6642 _flag_k = FK_TEST; 6643 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 6644 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 6645 L_361275B7: 6646 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 6647 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 6648 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 6649 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 6650 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 6651 RECOMP_FLAGS_IN(); 6652 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 6653 PUSH32(esp, eax); /* 0x361275CD: push eax */ 6654 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 6655 RECOMP_FLAGS_IN(); 6656 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 6657 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 6658 RECOMP_FLAGS_IN(); 6659 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 6660 PUSH32(esp, eax); /* 0x361275E2: push eax */ 6661 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 6662 RECOMP_FLAGS_IN(); 6663 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 6664 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 6665 RECOMP_FLAGS_IN(); 6666 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 6667 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6668 _cf = (LO8(eax)) != 0; 6669 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 6670 _flag_k = FK_NARROW(FK_CMP, 24); 6671 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 6672 eax = _sc ? 0xFFFFFFFFu : 0; 6673 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6674 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6675 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6676 eax = eax + 1; /* 0x361275F6: inc eax */ 6677 _flag_k = FK_INC; 6678 PUSH32(esp, eax); /* 0x361275F7: push eax */ 6679 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 6680 RECOMP_FLAGS_IN(); 6681 L_361275FE: 6682 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 6683 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 6684 esp = ebp; /* 0x36127600: mov esp, ebp */ 6685 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 6686 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 6687 RECOMP_REGS_OUT(); 6688 } 6689 6690 void sub_36125899(void) { 6691 int _fpu_cmp = 0; 6692 uint32_t _cf = 0; 6693 int _df = 1; 6694 uint32_t _flag_k = FK_NONE; 6695 uint32_t _flag_a = 0, _flag_b = 0; 6696 uint32_t _itail_tgt = 0; 6697 RECOMP_REGS_LOCALS 6698 RECOMP_ENTER(0x36125899u); 6699 6700 L_36125899: 6701 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36125899: fstp dword ptr [ebp - 0x10] */ 6702 L_3612589C: 6703 edx = MEM32(ebp + (-0x8)); /* 0x3612589C: mov edx, dword ptr [ebp - 8] */ 6704 fp_push(*(float*)&MEM32(edx)); /* 0x3612589F: fld dword ptr [edx] */ 6705 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x361258A1: fcomp dword ptr [ebp - 4] */ 6706 fp_pop(); 6707 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361258A4: fnstsw ax */ 6708 /* test HI8(eax), 0x41u */ /* 0x361258A6: test ah, 0x41 */ 6709 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 6710 _cf = 0; 6711 _flag_k = FK_NARROW(FK_TEST, 24); 6712 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125938; /* 0x361258A9: jne 0x36125938 */ 6713 L_361258AF: 6714 ecx = MEM32(esi + 0x38); /* 0x361258AF: mov ecx, dword ptr [esi + 0x38] */ 6715 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361258B2: fld dword ptr [ebp - 4] */ 6716 eax = ebx; /* 0x361258B5: mov eax, ebx */ 6717 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6719 eax = eax + ecx; /* 0x361258B7: add eax, ecx */ 6720 _flag_k = FK_ADD; 6721 ecx = edi; /* 0x361258B9: mov ecx, edi */ 6722 edx = MEM32(ecx); /* 0x361258BB: mov edx, dword ptr [ecx] */ 6723 MEM32(eax) = edx; /* 0x361258BD: mov dword ptr [eax], edx */ 6724 edx = MEM32(ecx + 0x4); /* 0x361258BF: mov edx, dword ptr [ecx + 4] */ 6725 MEM32(eax + 0x4) = edx; /* 0x361258C2: mov dword ptr [eax + 4], edx */ 6726 ecx = MEM32(ecx + 0x8); /* 0x361258C5: mov ecx, dword ptr [ecx + 8] */ 6727 edx = MEM32(ebp + (-0x8)); /* 0x361258C8: mov edx, dword ptr [ebp - 8] */ 6728 MEM32(eax + 0x8) = ecx; /* 0x361258CB: mov dword ptr [eax + 8], ecx */ 6729 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x361258CE: fadd dword ptr [esi + 0x16c0] */ 6730 eax = MEM32(esi + 0x38); /* 0x361258D4: mov eax, dword ptr [esi + 0x38] */ 6731 ecx = MEM32(esi + 0x16C8); /* 0x361258D7: mov ecx, dword ptr [esi + 0x16c8] */ 6732 _st[0] -= (double)*(float*)ADDR(edx); /* 0x361258DD: fsub dword ptr [edx] */ 6733 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361258DF: fdiv dword ptr [esi + 0x16c0] */ 6734 MEM32(ebx + eax + 0xC) = ecx; /* 0x361258E5: mov dword ptr [ebx + eax + 0xc], ecx */ 6735 edx = MEM32(esi + 0x38); /* 0x361258E9: mov edx, dword ptr [esi + 0x38] */ 6736 eax = MEM32(esi + 0x16C8); /* 0x361258EC: mov eax, dword ptr [esi + 0x16c8] */ 6737 MEM32(ebx + edx + 0x10) = eax; /* 0x361258F2: mov dword ptr [ebx + edx + 0x10], eax */ 6738 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361258F6: fstp dword ptr [ebp - 0x1c] */ 6739 ecx = MEM32(ebp + (-0x1C)); /* 0x361258F9: mov ecx, dword ptr [ebp - 0x1c] */ 6740 PUSH32(esp, ecx); /* 0x361258FC: push ecx */ 6741 ecx = esi + 0x168C; /* 0x361258FD: lea ecx, [esi + 0x168c] */ 6742 RECOMP_ICALL(0x36137D80u); /* 0x36125903: call 0x36137d80 */ /* not lifted */ 6743 RECOMP_FLAGS_IN(); 6744 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36125908: fld dword ptr [ebp - 0x1c] */ 6745 edx = MEM32(esi + 0x38); /* 0x3612590B: mov edx, dword ptr [esi + 0x38] */ 6746 _st[0] *= (double)*(float*)ADDR(0x3617774C); /* 0x3612590E: fmul dword ptr [0x3617774c] */ 6747 MEM32(ebx + edx + 0x14) = eax; /* 0x36125914: mov dword ptr [ebx + edx + 0x14], eax */ 6748 RECOMP_ICALL(0x3615FD8Cu); /* 0x36125918: call 0x3615fd8c */ /* not lifted */ 6749 RECOMP_FLAGS_IN(); 6750 ecx = MEM32(esi + 0x38); /* 0x3612591D: mov ecx, dword ptr [esi + 0x38] */ 6751 MEM32(ebx + ecx + 0x18) = eax; /* 0x36125920: mov dword ptr [ebx + ecx + 0x18], eax */ 6752 eax = MEM32(ebp + (-0xC)); /* 0x36125924: mov eax, dword ptr [ebp - 0xc] */ 6753 edx = MEM32(esi + 0x38); /* 0x36125927: mov edx, dword ptr [esi + 0x38] */ 6754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6755 eax = eax + 1; /* 0x3612592A: inc eax */ 6756 _flag_k = FK_INC; 6757 MEM8(ebx + edx + 0x1C) = (uint8_t)(1); /* 0x3612592B: mov byte ptr [ebx + edx + 0x1c], 1 */ 6758 MEM32(ebp + (-0xC)) = eax; /* 0x36125930: mov dword ptr [ebp - 0xc], eax */ 6759 goto L_36125B7D; /* 0x36125933: jmp 0x36125b7d */ 6760 L_36125938: 6761 eax = MEM32(ebp + (-0x18)); /* 0x36125938: mov eax, dword ptr [ebp - 0x18] */ 6762 /* test eax, eax */ /* 0x3612593B: test eax, eax */ 6763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6764 _cf = 0; 6765 _flag_k = FK_TEST; 6766 if (TEST_Z(_flag_a, _flag_b)) goto L_36125B75; /* 0x3612593D: je 0x36125b75 */ 6767 L_36125943: 6768 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36125943: mov al, byte ptr [esi + 0x163c] */ 6769 /* test LO8(eax), LO8(eax) */ /* 0x36125949: test al, al */ 6770 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6771 _cf = 0; 6772 _flag_k = FK_NARROW(FK_TEST, 24); 6773 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125B75; /* 0x3612594B: jne 0x36125b75 */ 6774 L_36125951: 6775 RECOMP_ICALL(0x360F7B00u); /* 0x36125951: call 0x360f7b00 */ /* not lifted */ 6776 RECOMP_FLAGS_IN(); 6777 ecx = MEM32(esi + 0x28); /* 0x36125956: mov ecx, dword ptr [esi + 0x28] */ 6778 PUSH32(esp, ecx); /* 0x36125959: push ecx */ 6779 ecx = eax; /* 0x3612595A: mov ecx, eax */ 6780 RECOMP_ICALL(0x360FBF90u); /* 0x3612595C: call 0x360fbf90 */ /* not lifted */ 6781 RECOMP_FLAGS_IN(); 6782 /* test eax, eax */ /* 0x36125961: test eax, eax */ 6783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6784 _cf = 0; 6785 _flag_k = FK_TEST; 6786 MEM32(ebp + (-0x1C)) = eax; /* 0x36125963: mov dword ptr [ebp - 0x1c], eax */ 6787 if (TEST_Z(_flag_a, _flag_b)) goto L_36125B6B; /* 0x36125966: je 0x36125b6b */ 6788 L_3612596C: 6789 edx = ebp + (-0x408); /* 0x3612596C: lea edx, [ebp - 0x408] */ 6790 PUSH32(esp, edx); /* 0x36125972: push edx */ 6791 ecx = eax; /* 0x36125973: mov ecx, eax */ 6792 RECOMP_ICALL(0x36131BB0u); /* 0x36125975: call 0x36131bb0 */ /* not lifted */ 6793 RECOMP_FLAGS_IN(); 6794 ecx = MEM32(eax); /* 0x3612597A: mov ecx, dword ptr [eax] */ 6795 edx = MEM32(eax + 0x4); /* 0x3612597C: mov edx, dword ptr [eax + 4] */ 6796 eax = MEM32(eax + 0x8); /* 0x3612597F: mov eax, dword ptr [eax + 8] */ 6797 MEM32(ebp + (-0xC0)) = ecx; /* 0x36125982: mov dword ptr [ebp - 0xc0], ecx */ 6798 ecx = ebp + (-0x270); /* 0x36125988: lea ecx, [ebp - 0x270] */ 6799 PUSH32(esp, ecx); /* 0x3612598E: push ecx */ 6800 ecx = MEM32(ebp + (-0x1C)); /* 0x3612598F: mov ecx, dword ptr [ebp - 0x1c] */ 6801 MEM32(ebp + (-0xBC)) = edx; /* 0x36125992: mov dword ptr [ebp - 0xbc], edx */ 6802 MEM32(ebp + (-0xB8)) = eax; /* 0x36125998: mov dword ptr [ebp - 0xb8], eax */ 6803 RECOMP_ICALL(0x36131C00u); /* 0x3612599E: call 0x36131c00 */ /* not lifted */ 6804 RECOMP_FLAGS_IN(); 6805 edx = MEM32(eax); /* 0x361259A3: mov edx, dword ptr [eax] */ 6806 ecx = MEM32(eax + 0x4); /* 0x361259A5: mov ecx, dword ptr [eax + 4] */ 6807 MEM32(ebp + (-0xDC)) = edx; /* 0x361259A8: mov dword ptr [ebp - 0xdc], edx */ 6808 edx = MEM32(eax + 0x8); /* 0x361259AE: mov edx, dword ptr [eax + 8] */ 6809 eax = ebp + (-0x9C); /* 0x361259B1: lea eax, [ebp - 0x9c] */ 6810 PUSH32(esp, eax); /* 0x361259B7: push eax */ 6811 MEM32(ebp + (-0xD8)) = ecx; /* 0x361259B8: mov dword ptr [ebp - 0xd8], ecx */ 6812 MEM32(ebp + (-0xD4)) = edx; /* 0x361259BE: mov dword ptr [ebp - 0xd4], edx */ 6813 MEM32(ebp + (-0x9C)) = 0; /* 0x361259C4: mov dword ptr [ebp - 0x9c], 0 */ 6814 MEM32(ebp + (-0x98)) = 0; /* 0x361259CE: mov dword ptr [ebp - 0x98], 0 */ 6815 MEM32(ebp + (-0x94)) = 0; /* 0x361259D8: mov dword ptr [ebp - 0x94], 0 */ 6816 RECOMP_ICALL(0x360FCBF0u); /* 0x361259E2: call 0x360fcbf0 */ /* not lifted */ 6817 RECOMP_FLAGS_IN(); 6818 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x361259E7: fld dword ptr [esi + 0x16cc] */ 6819 ecx = MEM32(ebp + (-0x9C)); /* 0x361259ED: mov ecx, dword ptr [ebp - 0x9c] */ 6820 fp_push(_st[0]); /* 0x361259F3: fld st(0) */ 6821 _st[0] *= (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x361259F5: fmul dword ptr [ebp - 0x9c] */ 6822 edx = MEM32(ebp + (-0x98)); /* 0x361259FB: mov edx, dword ptr [ebp - 0x98] */ 6823 eax = MEM32(ebp + (-0x94)); /* 0x36125A01: mov eax, dword ptr [ebp - 0x94] */ 6824 MEM32(ebp + (-0x80)) = ecx; /* 0x36125A07: mov dword ptr [ebp - 0x80], ecx */ 6825 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x36125A0A: fstp dword ptr [ebp - 0x80] */ 6826 ecx = MEM32(ebp + (-0xC0)); /* 0x36125A0D: mov ecx, dword ptr [ebp - 0xc0] */ 6827 MEM32(ebp + (-0x7C)) = edx; /* 0x36125A13: mov dword ptr [ebp - 0x7c], edx */ 6828 fp_push(_st[0]); /* 0x36125A16: fld st(0) */ 6829 edx = MEM32(ebp + (-0xBC)); /* 0x36125A18: mov edx, dword ptr [ebp - 0xbc] */ 6830 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125A1E: fmul dword ptr [ebp - 0x7c] */ 6831 MEM32(ebp + (-0x78)) = eax; /* 0x36125A21: mov dword ptr [ebp - 0x78], eax */ 6832 eax = MEM32(ebp + (-0xB8)); /* 0x36125A24: mov eax, dword ptr [ebp - 0xb8] */ 6833 MEM32(ebp + (-0x68)) = ecx; /* 0x36125A2A: mov dword ptr [ebp - 0x68], ecx */ 6834 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36125A2D: fstp dword ptr [ebp - 0x7c] */ 6835 ecx = MEM32(ebp + (-0xDC)); /* 0x36125A30: mov ecx, dword ptr [ebp - 0xdc] */ 6836 MEM32(ebp + (-0x64)) = edx; /* 0x36125A36: mov dword ptr [ebp - 0x64], edx */ 6837 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36125A39: fmul dword ptr [ebp - 0x78] */ 6838 edx = MEM32(ebp + (-0xD8)); /* 0x36125A3C: mov edx, dword ptr [ebp - 0xd8] */ 6839 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125A42: fld dword ptr [0x36170380] */ 6840 MEM32(ebp + (-0x60)) = eax; /* 0x36125A48: mov dword ptr [ebp - 0x60], eax */ 6841 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36125A4B: fsub dword ptr [ebp - 0x10] */ 6842 eax = MEM32(ebp + (-0xD4)); /* 0x36125A4E: mov eax, dword ptr [ebp - 0xd4] */ 6843 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36125A54: fld dword ptr [ebp - 0xc0] */ 6844 MEM32(ebp + (-0x28)) = ecx; /* 0x36125A5A: mov dword ptr [ebp - 0x28], ecx */ 6845 MEM32(ebp + (-0x24)) = edx; /* 0x36125A5D: mov dword ptr [ebp - 0x24], edx */ 6846 _st[0] *= _st[1]; /* 0x36125A60: fmul st(1) */ 6847 MEM32(ebp + (-0x20)) = eax; /* 0x36125A62: mov dword ptr [ebp - 0x20], eax */ 6848 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6850 esp = esp + 4; /* 0x36125A65: add esp, 4 */ 6851 _flag_k = FK_ADD; 6852 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36125A68: fstp dword ptr [ebp - 0x68] */ 6853 fp_push(_st[0]); /* 0x36125A6B: fld st(0) */ 6854 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125A6D: fmul dword ptr [ebp - 0x64] */ 6855 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36125A70: fstp dword ptr [ebp - 0x64] */ 6856 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x36125A73: fmul dword ptr [ebp - 0x60] */ 6857 fp_push(*(float*)&MEM32(ebp + (-0xDC))); /* 0x36125A76: fld dword ptr [ebp - 0xdc] */ 6858 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36125A7C: fmul dword ptr [ebp - 0x10] */ 6859 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36125A7F: fstp dword ptr [ebp - 0x28] */ 6860 ecx = MEM32(ebp + (-0x28)); /* 0x36125A82: mov ecx, dword ptr [ebp - 0x28] */ 6861 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36125A85: fld dword ptr [ebp - 0x10] */ 6862 MEM32(ebp + (-0x74)) = ecx; /* 0x36125A88: mov dword ptr [ebp - 0x74], ecx */ 6863 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36125A8B: fmul dword ptr [ebp - 0x24] */ 6864 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36125A8E: fstp dword ptr [ebp - 0x24] */ 6865 edx = MEM32(ebp + (-0x24)); /* 0x36125A91: mov edx, dword ptr [ebp - 0x24] */ 6866 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36125A94: fld dword ptr [ebp - 0x10] */ 6867 MEM32(ebp + (-0x70)) = edx; /* 0x36125A97: mov dword ptr [ebp - 0x70], edx */ 6868 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36125A9A: fmul dword ptr [ebp - 0x20] */ 6869 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36125A9D: fstp dword ptr [ebp - 0x20] */ 6870 eax = MEM32(ebp + (-0x20)); /* 0x36125AA0: mov eax, dword ptr [ebp - 0x20] */ 6871 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36125AA3: fld dword ptr [ebp - 0x28] */ 6872 MEM32(ebp + (-0x6C)) = eax; /* 0x36125AA6: mov dword ptr [ebp - 0x6c], eax */ 6873 _st[0] += (double)*(float*)ADDR(ebp + (-0x68)); /* 0x36125AA9: fadd dword ptr [ebp - 0x68] */ 6874 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36125AAC: fstp dword ptr [ebp - 0x74] */ 6875 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36125AAF: fld dword ptr [ebp - 0x70] */ 6876 ecx = MEM32(ebp + (-0x74)); /* 0x36125AB2: mov ecx, dword ptr [ebp - 0x74] */ 6877 _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125AB5: fadd dword ptr [ebp - 0x64] */ 6878 MEM32(ebp + (-0x5C)) = ecx; /* 0x36125AB8: mov dword ptr [ebp - 0x5c], ecx */ 6879 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36125ABB: fstp dword ptr [ebp - 0x70] */ 6880 edx = MEM32(ebp + (-0x70)); /* 0x36125ABE: mov edx, dword ptr [ebp - 0x70] */ 6881 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36125AC1: fld dword ptr [ebp - 0x6c] */ 6882 MEM32(ebp + (-0x58)) = edx; /* 0x36125AC4: mov dword ptr [ebp - 0x58], edx */ 6883 _st[0] += _st[1]; /* 0x36125AC7: fadd st(1) */ 6884 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36125AC9: fstp dword ptr [ebp - 0x6c] */ 6885 eax = MEM32(ebp + (-0x6C)); /* 0x36125ACC: mov eax, dword ptr [ebp - 0x6c] */ 6886 MEM32(ebp + (-0x54)) = eax; /* 0x36125ACF: mov dword ptr [ebp - 0x54], eax */ 6887 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125AD2: fstp st(0) */ 6888 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36125AD4: fld dword ptr [ebp - 0x74] */ 6889 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125AD7: fadd dword ptr [ebp - 0x80] */ 6890 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36125ADA: fstp dword ptr [ebp - 0x5c] */ 6891 eax = MEM32(ebp + (-0x5C)); /* 0x36125ADD: mov eax, dword ptr [ebp - 0x5c] */ 6892 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36125AE0: fld dword ptr [ebp - 0x58] */ 6893 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125AE3: fadd dword ptr [ebp - 0x7c] */ 6894 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x36125AE6: fstp dword ptr [ebp - 0x58] */ 6895 ecx = MEM32(ebp + (-0x58)); /* 0x36125AE9: mov ecx, dword ptr [ebp - 0x58] */ 6896 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36125AEC: fld dword ptr [ebp - 0x54] */ 6897 _st[0] += _st[1]; /* 0x36125AEF: fadd st(1) */ 6898 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36125AF1: fstp dword ptr [ebp - 0x54] */ 6899 edx = MEM32(ebp + (-0x54)); /* 0x36125AF4: mov edx, dword ptr [ebp - 0x54] */ 6900 MEM32(ebp + (-0xEC)) = edx; /* 0x36125AF7: mov dword ptr [ebp - 0xec], edx */ 6901 edx = edi; /* 0x36125AFD: mov edx, edi */ 6902 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125AFF: fstp st(0) */ 6903 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36125B01: fld dword ptr [ebp - 4] */ 6904 MEM32(edx) = eax; /* 0x36125B04: mov dword ptr [edx], eax */ 6905 MEM32(edx + 0x4) = ecx; /* 0x36125B06: mov dword ptr [edx + 4], ecx */ 6906 eax = MEM32(ebp + (-0xEC)); /* 0x36125B09: mov eax, dword ptr [ebp - 0xec] */ 6907 MEM32(edx + 0x8) = eax; /* 0x36125B0F: mov dword ptr [edx + 8], eax */ 6908 MEM32(ebp + (-0x90)) = 0; /* 0x36125B12: mov dword ptr [ebp - 0x90], 0 */ 6909 edx = MEM32(ebp + (-0x90)); /* 0x36125B1C: mov edx, dword ptr [ebp - 0x90] */ 6910 MEM32(ebp + (-0x8C)) = 0; /* 0x36125B22: mov dword ptr [ebp - 0x8c], 0 */ 6911 MEM32(ebp + (-0x88)) = 0; /* 0x36125B2C: mov dword ptr [ebp - 0x88], 0 */ 6912 ecx = edi + (-0x600); /* 0x36125B36: lea ecx, [edi - 0x600] */ 6913 MEM32(ecx) = edx; /* 0x36125B3C: mov dword ptr [ecx], edx */ 6914 eax = MEM32(ebp + (-0x8C)); /* 0x36125B3E: mov eax, dword ptr [ebp - 0x8c] */ 6915 MEM32(ecx + 0x4) = eax; /* 0x36125B44: mov dword ptr [ecx + 4], eax */ 6916 edx = MEM32(ebp + (-0x88)); /* 0x36125B47: mov edx, dword ptr [ebp - 0x88] */ 6917 eax = MEM32(ebp + (-0x8)); /* 0x36125B4D: mov eax, dword ptr [ebp - 8] */ 6918 MEM32(ecx + 0x8) = edx; /* 0x36125B50: mov dword ptr [ecx + 8], edx */ 6919 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36125B53: fadd dword ptr [esi + 0x16c0] */ 6920 ecx = MEM32(ebp + (-0xC)); /* 0x36125B59: mov ecx, dword ptr [ebp - 0xc] */ 6921 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6922 ecx = ecx + 1; /* 0x36125B5C: inc ecx */ 6923 _flag_k = FK_INC; 6924 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36125B5D: fstp dword ptr [eax] */ 6925 eax = MEM32(ebp + (-0x18)); /* 0x36125B5F: mov eax, dword ptr [ebp - 0x18] */ 6926 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6927 eax = eax - 1; /* 0x36125B62: dec eax */ 6928 _flag_k = FK_DEC; 6929 MEM32(ebp + (-0xC)) = ecx; /* 0x36125B63: mov dword ptr [ebp - 0xc], ecx */ 6930 MEM32(ebp + (-0x18)) = eax; /* 0x36125B66: mov dword ptr [ebp - 0x18], eax */ 6931 goto L_36125B7D; /* 0x36125B69: jmp 0x36125b7d */ 6932 L_36125B6B: 6933 ecx = MEM32(esi + 0x38); /* 0x36125B6B: mov ecx, dword ptr [esi + 0x38] */ 6934 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x36125B6E: mov byte ptr [ecx + ebx + 0x1c], 0 */ 6935 goto L_36125B7D; /* 0x36125B73: jmp 0x36125b7d */ 6936 L_36125B75: 6937 edx = MEM32(esi + 0x38); /* 0x36125B75: mov edx, dword ptr [esi + 0x38] */ 6938 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x36125B78: mov byte ptr [edx + ebx + 0x1c], 0 */ 6939 L_36125B7D: 6940 edx = MEM32(ebp + (-0x8)); /* 0x36125B7D: mov edx, dword ptr [ebp - 8] */ 6941 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 6942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6943 edx = edx + 4; /* 0x36125B80: add edx, 4 */ 6944 _flag_k = FK_ADD; 6945 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 6946 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6947 ebx = ebx + 0x20u; /* 0x36125B83: add ebx, 0x20 */ 6948 _flag_k = FK_ADD; 6949 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 6950 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6951 edi = edi + 0xCu; /* 0x36125B86: add edi, 0xc */ 6952 _flag_k = FK_ADD; 6953 /* cmp ebx, 0x1000u */ /* 0x36125B89: cmp ebx, 0x1000 */ 6954 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 6955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6956 _flag_k = FK_CMP; 6957 MEM32(ebp + (-0x8)) = edx; /* 0x36125B8F: mov dword ptr [ebp - 8], edx */ 6958 RECOMP_BACKEDGE(); 6959 if (CMP_L(_flag_a, _flag_b)) goto L_3612589C; /* 0x36125B92: jl 0x3612589c */ 6960 L_36125B98: 6961 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36125B98: mov al, byte ptr [esi + 0x163c] */ 6962 /* test LO8(eax), LO8(eax) */ /* 0x36125B9E: test al, al */ 6963 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6964 _cf = 0; 6965 _flag_k = FK_NARROW(FK_TEST, 24); 6966 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36125BA0: je 0x361275ac */ 6967 L_36125BA6: 6968 eax = MEM32(ebp + (-0xC)); /* 0x36125BA6: mov eax, dword ptr [ebp - 0xc] */ 6969 /* test eax, eax */ /* 0x36125BA9: test eax, eax */ 6970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6971 _cf = 0; 6972 _flag_k = FK_TEST; 6973 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36125BAB: jne 0x361275ac */ 6974 L_36125BB1: 6975 goto L_361275A8; /* 0x36125BB1: jmp 0x361275a8 */ 6976 L_361275A8: 6977 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 6978 L_361275AC: 6979 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 6980 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 6981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6982 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 6983 _flag_k = FK_ADD; 6984 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 6985 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6986 _cf = 0; 6987 _flag_k = FK_TEST; 6988 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 6989 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 6990 L_361275B7: 6991 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 6992 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 6993 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 6994 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 6995 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 6996 RECOMP_FLAGS_IN(); 6997 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 6998 PUSH32(esp, eax); /* 0x361275CD: push eax */ 6999 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 7000 RECOMP_FLAGS_IN(); 7001 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 7002 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 7003 RECOMP_FLAGS_IN(); 7004 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 7005 PUSH32(esp, eax); /* 0x361275E2: push eax */ 7006 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 7007 RECOMP_FLAGS_IN(); 7008 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 7009 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 7010 RECOMP_FLAGS_IN(); 7011 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 7012 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7013 _cf = (LO8(eax)) != 0; 7014 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 7015 _flag_k = FK_NARROW(FK_CMP, 24); 7016 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 7017 eax = _sc ? 0xFFFFFFFFu : 0; 7018 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7019 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7021 eax = eax + 1; /* 0x361275F6: inc eax */ 7022 _flag_k = FK_INC; 7023 PUSH32(esp, eax); /* 0x361275F7: push eax */ 7024 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 7025 RECOMP_FLAGS_IN(); 7026 L_361275FE: 7027 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 7028 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 7029 esp = ebp; /* 0x36127600: mov esp, ebp */ 7030 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 7031 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 7032 RECOMP_REGS_OUT(); 7033 } 7034 7035 void sub_3612589C(void) { 7036 int _fpu_cmp = 0; 7037 uint32_t _cf = 0; 7038 int _df = 1; 7039 uint32_t _flag_k = FK_NONE; 7040 uint32_t _flag_a = 0, _flag_b = 0; 7041 uint32_t _itail_tgt = 0; 7042 RECOMP_REGS_LOCALS 7043 RECOMP_ENTER(0x3612589Cu); 7044 7045 L_3612589C: 7046 edx = MEM32(ebp + (-0x8)); /* 0x3612589C: mov edx, dword ptr [ebp - 8] */ 7047 fp_push(*(float*)&MEM32(edx)); /* 0x3612589F: fld dword ptr [edx] */ 7048 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x361258A1: fcomp dword ptr [ebp - 4] */ 7049 fp_pop(); 7050 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361258A4: fnstsw ax */ 7051 /* test HI8(eax), 0x41u */ /* 0x361258A6: test ah, 0x41 */ 7052 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 7053 _cf = 0; 7054 _flag_k = FK_NARROW(FK_TEST, 24); 7055 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125938; /* 0x361258A9: jne 0x36125938 */ 7056 L_361258AF: 7057 ecx = MEM32(esi + 0x38); /* 0x361258AF: mov ecx, dword ptr [esi + 0x38] */ 7058 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361258B2: fld dword ptr [ebp - 4] */ 7059 eax = ebx; /* 0x361258B5: mov eax, ebx */ 7060 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7061 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7062 eax = eax + ecx; /* 0x361258B7: add eax, ecx */ 7063 _flag_k = FK_ADD; 7064 ecx = edi; /* 0x361258B9: mov ecx, edi */ 7065 edx = MEM32(ecx); /* 0x361258BB: mov edx, dword ptr [ecx] */ 7066 MEM32(eax) = edx; /* 0x361258BD: mov dword ptr [eax], edx */ 7067 edx = MEM32(ecx + 0x4); /* 0x361258BF: mov edx, dword ptr [ecx + 4] */ 7068 MEM32(eax + 0x4) = edx; /* 0x361258C2: mov dword ptr [eax + 4], edx */ 7069 ecx = MEM32(ecx + 0x8); /* 0x361258C5: mov ecx, dword ptr [ecx + 8] */ 7070 edx = MEM32(ebp + (-0x8)); /* 0x361258C8: mov edx, dword ptr [ebp - 8] */ 7071 MEM32(eax + 0x8) = ecx; /* 0x361258CB: mov dword ptr [eax + 8], ecx */ 7072 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x361258CE: fadd dword ptr [esi + 0x16c0] */ 7073 eax = MEM32(esi + 0x38); /* 0x361258D4: mov eax, dword ptr [esi + 0x38] */ 7074 ecx = MEM32(esi + 0x16C8); /* 0x361258D7: mov ecx, dword ptr [esi + 0x16c8] */ 7075 _st[0] -= (double)*(float*)ADDR(edx); /* 0x361258DD: fsub dword ptr [edx] */ 7076 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361258DF: fdiv dword ptr [esi + 0x16c0] */ 7077 MEM32(ebx + eax + 0xC) = ecx; /* 0x361258E5: mov dword ptr [ebx + eax + 0xc], ecx */ 7078 edx = MEM32(esi + 0x38); /* 0x361258E9: mov edx, dword ptr [esi + 0x38] */ 7079 eax = MEM32(esi + 0x16C8); /* 0x361258EC: mov eax, dword ptr [esi + 0x16c8] */ 7080 MEM32(ebx + edx + 0x10) = eax; /* 0x361258F2: mov dword ptr [ebx + edx + 0x10], eax */ 7081 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361258F6: fstp dword ptr [ebp - 0x1c] */ 7082 ecx = MEM32(ebp + (-0x1C)); /* 0x361258F9: mov ecx, dword ptr [ebp - 0x1c] */ 7083 PUSH32(esp, ecx); /* 0x361258FC: push ecx */ 7084 ecx = esi + 0x168C; /* 0x361258FD: lea ecx, [esi + 0x168c] */ 7085 RECOMP_ICALL(0x36137D80u); /* 0x36125903: call 0x36137d80 */ /* not lifted */ 7086 RECOMP_FLAGS_IN(); 7087 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36125908: fld dword ptr [ebp - 0x1c] */ 7088 edx = MEM32(esi + 0x38); /* 0x3612590B: mov edx, dword ptr [esi + 0x38] */ 7089 _st[0] *= (double)*(float*)ADDR(0x3617774C); /* 0x3612590E: fmul dword ptr [0x3617774c] */ 7090 MEM32(ebx + edx + 0x14) = eax; /* 0x36125914: mov dword ptr [ebx + edx + 0x14], eax */ 7091 RECOMP_ICALL(0x3615FD8Cu); /* 0x36125918: call 0x3615fd8c */ /* not lifted */ 7092 RECOMP_FLAGS_IN(); 7093 ecx = MEM32(esi + 0x38); /* 0x3612591D: mov ecx, dword ptr [esi + 0x38] */ 7094 MEM32(ebx + ecx + 0x18) = eax; /* 0x36125920: mov dword ptr [ebx + ecx + 0x18], eax */ 7095 eax = MEM32(ebp + (-0xC)); /* 0x36125924: mov eax, dword ptr [ebp - 0xc] */ 7096 edx = MEM32(esi + 0x38); /* 0x36125927: mov edx, dword ptr [esi + 0x38] */ 7097 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7098 eax = eax + 1; /* 0x3612592A: inc eax */ 7099 _flag_k = FK_INC; 7100 MEM8(ebx + edx + 0x1C) = (uint8_t)(1); /* 0x3612592B: mov byte ptr [ebx + edx + 0x1c], 1 */ 7101 MEM32(ebp + (-0xC)) = eax; /* 0x36125930: mov dword ptr [ebp - 0xc], eax */ 7102 goto L_36125B7D; /* 0x36125933: jmp 0x36125b7d */ 7103 L_36125938: 7104 eax = MEM32(ebp + (-0x18)); /* 0x36125938: mov eax, dword ptr [ebp - 0x18] */ 7105 /* test eax, eax */ /* 0x3612593B: test eax, eax */ 7106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7107 _cf = 0; 7108 _flag_k = FK_TEST; 7109 if (TEST_Z(_flag_a, _flag_b)) goto L_36125B75; /* 0x3612593D: je 0x36125b75 */ 7110 L_36125943: 7111 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36125943: mov al, byte ptr [esi + 0x163c] */ 7112 /* test LO8(eax), LO8(eax) */ /* 0x36125949: test al, al */ 7113 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7114 _cf = 0; 7115 _flag_k = FK_NARROW(FK_TEST, 24); 7116 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125B75; /* 0x3612594B: jne 0x36125b75 */ 7117 L_36125951: 7118 RECOMP_ICALL(0x360F7B00u); /* 0x36125951: call 0x360f7b00 */ /* not lifted */ 7119 RECOMP_FLAGS_IN(); 7120 ecx = MEM32(esi + 0x28); /* 0x36125956: mov ecx, dword ptr [esi + 0x28] */ 7121 PUSH32(esp, ecx); /* 0x36125959: push ecx */ 7122 ecx = eax; /* 0x3612595A: mov ecx, eax */ 7123 RECOMP_ICALL(0x360FBF90u); /* 0x3612595C: call 0x360fbf90 */ /* not lifted */ 7124 RECOMP_FLAGS_IN(); 7125 /* test eax, eax */ /* 0x36125961: test eax, eax */ 7126 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7127 _cf = 0; 7128 _flag_k = FK_TEST; 7129 MEM32(ebp + (-0x1C)) = eax; /* 0x36125963: mov dword ptr [ebp - 0x1c], eax */ 7130 if (TEST_Z(_flag_a, _flag_b)) goto L_36125B6B; /* 0x36125966: je 0x36125b6b */ 7131 L_3612596C: 7132 edx = ebp + (-0x408); /* 0x3612596C: lea edx, [ebp - 0x408] */ 7133 PUSH32(esp, edx); /* 0x36125972: push edx */ 7134 ecx = eax; /* 0x36125973: mov ecx, eax */ 7135 RECOMP_ICALL(0x36131BB0u); /* 0x36125975: call 0x36131bb0 */ /* not lifted */ 7136 RECOMP_FLAGS_IN(); 7137 ecx = MEM32(eax); /* 0x3612597A: mov ecx, dword ptr [eax] */ 7138 edx = MEM32(eax + 0x4); /* 0x3612597C: mov edx, dword ptr [eax + 4] */ 7139 eax = MEM32(eax + 0x8); /* 0x3612597F: mov eax, dword ptr [eax + 8] */ 7140 MEM32(ebp + (-0xC0)) = ecx; /* 0x36125982: mov dword ptr [ebp - 0xc0], ecx */ 7141 ecx = ebp + (-0x270); /* 0x36125988: lea ecx, [ebp - 0x270] */ 7142 PUSH32(esp, ecx); /* 0x3612598E: push ecx */ 7143 ecx = MEM32(ebp + (-0x1C)); /* 0x3612598F: mov ecx, dword ptr [ebp - 0x1c] */ 7144 MEM32(ebp + (-0xBC)) = edx; /* 0x36125992: mov dword ptr [ebp - 0xbc], edx */ 7145 MEM32(ebp + (-0xB8)) = eax; /* 0x36125998: mov dword ptr [ebp - 0xb8], eax */ 7146 RECOMP_ICALL(0x36131C00u); /* 0x3612599E: call 0x36131c00 */ /* not lifted */ 7147 RECOMP_FLAGS_IN(); 7148 edx = MEM32(eax); /* 0x361259A3: mov edx, dword ptr [eax] */ 7149 ecx = MEM32(eax + 0x4); /* 0x361259A5: mov ecx, dword ptr [eax + 4] */ 7150 MEM32(ebp + (-0xDC)) = edx; /* 0x361259A8: mov dword ptr [ebp - 0xdc], edx */ 7151 edx = MEM32(eax + 0x8); /* 0x361259AE: mov edx, dword ptr [eax + 8] */ 7152 eax = ebp + (-0x9C); /* 0x361259B1: lea eax, [ebp - 0x9c] */ 7153 PUSH32(esp, eax); /* 0x361259B7: push eax */ 7154 MEM32(ebp + (-0xD8)) = ecx; /* 0x361259B8: mov dword ptr [ebp - 0xd8], ecx */ 7155 MEM32(ebp + (-0xD4)) = edx; /* 0x361259BE: mov dword ptr [ebp - 0xd4], edx */ 7156 MEM32(ebp + (-0x9C)) = 0; /* 0x361259C4: mov dword ptr [ebp - 0x9c], 0 */ 7157 MEM32(ebp + (-0x98)) = 0; /* 0x361259CE: mov dword ptr [ebp - 0x98], 0 */ 7158 MEM32(ebp + (-0x94)) = 0; /* 0x361259D8: mov dword ptr [ebp - 0x94], 0 */ 7159 RECOMP_ICALL(0x360FCBF0u); /* 0x361259E2: call 0x360fcbf0 */ /* not lifted */ 7160 RECOMP_FLAGS_IN(); 7161 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x361259E7: fld dword ptr [esi + 0x16cc] */ 7162 ecx = MEM32(ebp + (-0x9C)); /* 0x361259ED: mov ecx, dword ptr [ebp - 0x9c] */ 7163 fp_push(_st[0]); /* 0x361259F3: fld st(0) */ 7164 _st[0] *= (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x361259F5: fmul dword ptr [ebp - 0x9c] */ 7165 edx = MEM32(ebp + (-0x98)); /* 0x361259FB: mov edx, dword ptr [ebp - 0x98] */ 7166 eax = MEM32(ebp + (-0x94)); /* 0x36125A01: mov eax, dword ptr [ebp - 0x94] */ 7167 MEM32(ebp + (-0x80)) = ecx; /* 0x36125A07: mov dword ptr [ebp - 0x80], ecx */ 7168 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x36125A0A: fstp dword ptr [ebp - 0x80] */ 7169 ecx = MEM32(ebp + (-0xC0)); /* 0x36125A0D: mov ecx, dword ptr [ebp - 0xc0] */ 7170 MEM32(ebp + (-0x7C)) = edx; /* 0x36125A13: mov dword ptr [ebp - 0x7c], edx */ 7171 fp_push(_st[0]); /* 0x36125A16: fld st(0) */ 7172 edx = MEM32(ebp + (-0xBC)); /* 0x36125A18: mov edx, dword ptr [ebp - 0xbc] */ 7173 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125A1E: fmul dword ptr [ebp - 0x7c] */ 7174 MEM32(ebp + (-0x78)) = eax; /* 0x36125A21: mov dword ptr [ebp - 0x78], eax */ 7175 eax = MEM32(ebp + (-0xB8)); /* 0x36125A24: mov eax, dword ptr [ebp - 0xb8] */ 7176 MEM32(ebp + (-0x68)) = ecx; /* 0x36125A2A: mov dword ptr [ebp - 0x68], ecx */ 7177 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36125A2D: fstp dword ptr [ebp - 0x7c] */ 7178 ecx = MEM32(ebp + (-0xDC)); /* 0x36125A30: mov ecx, dword ptr [ebp - 0xdc] */ 7179 MEM32(ebp + (-0x64)) = edx; /* 0x36125A36: mov dword ptr [ebp - 0x64], edx */ 7180 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36125A39: fmul dword ptr [ebp - 0x78] */ 7181 edx = MEM32(ebp + (-0xD8)); /* 0x36125A3C: mov edx, dword ptr [ebp - 0xd8] */ 7182 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125A42: fld dword ptr [0x36170380] */ 7183 MEM32(ebp + (-0x60)) = eax; /* 0x36125A48: mov dword ptr [ebp - 0x60], eax */ 7184 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36125A4B: fsub dword ptr [ebp - 0x10] */ 7185 eax = MEM32(ebp + (-0xD4)); /* 0x36125A4E: mov eax, dword ptr [ebp - 0xd4] */ 7186 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36125A54: fld dword ptr [ebp - 0xc0] */ 7187 MEM32(ebp + (-0x28)) = ecx; /* 0x36125A5A: mov dword ptr [ebp - 0x28], ecx */ 7188 MEM32(ebp + (-0x24)) = edx; /* 0x36125A5D: mov dword ptr [ebp - 0x24], edx */ 7189 _st[0] *= _st[1]; /* 0x36125A60: fmul st(1) */ 7190 MEM32(ebp + (-0x20)) = eax; /* 0x36125A62: mov dword ptr [ebp - 0x20], eax */ 7191 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7193 esp = esp + 4; /* 0x36125A65: add esp, 4 */ 7194 _flag_k = FK_ADD; 7195 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36125A68: fstp dword ptr [ebp - 0x68] */ 7196 fp_push(_st[0]); /* 0x36125A6B: fld st(0) */ 7197 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125A6D: fmul dword ptr [ebp - 0x64] */ 7198 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36125A70: fstp dword ptr [ebp - 0x64] */ 7199 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x36125A73: fmul dword ptr [ebp - 0x60] */ 7200 fp_push(*(float*)&MEM32(ebp + (-0xDC))); /* 0x36125A76: fld dword ptr [ebp - 0xdc] */ 7201 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36125A7C: fmul dword ptr [ebp - 0x10] */ 7202 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36125A7F: fstp dword ptr [ebp - 0x28] */ 7203 ecx = MEM32(ebp + (-0x28)); /* 0x36125A82: mov ecx, dword ptr [ebp - 0x28] */ 7204 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36125A85: fld dword ptr [ebp - 0x10] */ 7205 MEM32(ebp + (-0x74)) = ecx; /* 0x36125A88: mov dword ptr [ebp - 0x74], ecx */ 7206 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36125A8B: fmul dword ptr [ebp - 0x24] */ 7207 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36125A8E: fstp dword ptr [ebp - 0x24] */ 7208 edx = MEM32(ebp + (-0x24)); /* 0x36125A91: mov edx, dword ptr [ebp - 0x24] */ 7209 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36125A94: fld dword ptr [ebp - 0x10] */ 7210 MEM32(ebp + (-0x70)) = edx; /* 0x36125A97: mov dword ptr [ebp - 0x70], edx */ 7211 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36125A9A: fmul dword ptr [ebp - 0x20] */ 7212 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36125A9D: fstp dword ptr [ebp - 0x20] */ 7213 eax = MEM32(ebp + (-0x20)); /* 0x36125AA0: mov eax, dword ptr [ebp - 0x20] */ 7214 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36125AA3: fld dword ptr [ebp - 0x28] */ 7215 MEM32(ebp + (-0x6C)) = eax; /* 0x36125AA6: mov dword ptr [ebp - 0x6c], eax */ 7216 _st[0] += (double)*(float*)ADDR(ebp + (-0x68)); /* 0x36125AA9: fadd dword ptr [ebp - 0x68] */ 7217 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36125AAC: fstp dword ptr [ebp - 0x74] */ 7218 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36125AAF: fld dword ptr [ebp - 0x70] */ 7219 ecx = MEM32(ebp + (-0x74)); /* 0x36125AB2: mov ecx, dword ptr [ebp - 0x74] */ 7220 _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125AB5: fadd dword ptr [ebp - 0x64] */ 7221 MEM32(ebp + (-0x5C)) = ecx; /* 0x36125AB8: mov dword ptr [ebp - 0x5c], ecx */ 7222 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36125ABB: fstp dword ptr [ebp - 0x70] */ 7223 edx = MEM32(ebp + (-0x70)); /* 0x36125ABE: mov edx, dword ptr [ebp - 0x70] */ 7224 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36125AC1: fld dword ptr [ebp - 0x6c] */ 7225 MEM32(ebp + (-0x58)) = edx; /* 0x36125AC4: mov dword ptr [ebp - 0x58], edx */ 7226 _st[0] += _st[1]; /* 0x36125AC7: fadd st(1) */ 7227 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36125AC9: fstp dword ptr [ebp - 0x6c] */ 7228 eax = MEM32(ebp + (-0x6C)); /* 0x36125ACC: mov eax, dword ptr [ebp - 0x6c] */ 7229 MEM32(ebp + (-0x54)) = eax; /* 0x36125ACF: mov dword ptr [ebp - 0x54], eax */ 7230 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125AD2: fstp st(0) */ 7231 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36125AD4: fld dword ptr [ebp - 0x74] */ 7232 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125AD7: fadd dword ptr [ebp - 0x80] */ 7233 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36125ADA: fstp dword ptr [ebp - 0x5c] */ 7234 eax = MEM32(ebp + (-0x5C)); /* 0x36125ADD: mov eax, dword ptr [ebp - 0x5c] */ 7235 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36125AE0: fld dword ptr [ebp - 0x58] */ 7236 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125AE3: fadd dword ptr [ebp - 0x7c] */ 7237 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x36125AE6: fstp dword ptr [ebp - 0x58] */ 7238 ecx = MEM32(ebp + (-0x58)); /* 0x36125AE9: mov ecx, dword ptr [ebp - 0x58] */ 7239 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36125AEC: fld dword ptr [ebp - 0x54] */ 7240 _st[0] += _st[1]; /* 0x36125AEF: fadd st(1) */ 7241 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36125AF1: fstp dword ptr [ebp - 0x54] */ 7242 edx = MEM32(ebp + (-0x54)); /* 0x36125AF4: mov edx, dword ptr [ebp - 0x54] */ 7243 MEM32(ebp + (-0xEC)) = edx; /* 0x36125AF7: mov dword ptr [ebp - 0xec], edx */ 7244 edx = edi; /* 0x36125AFD: mov edx, edi */ 7245 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125AFF: fstp st(0) */ 7246 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36125B01: fld dword ptr [ebp - 4] */ 7247 MEM32(edx) = eax; /* 0x36125B04: mov dword ptr [edx], eax */ 7248 MEM32(edx + 0x4) = ecx; /* 0x36125B06: mov dword ptr [edx + 4], ecx */ 7249 eax = MEM32(ebp + (-0xEC)); /* 0x36125B09: mov eax, dword ptr [ebp - 0xec] */ 7250 MEM32(edx + 0x8) = eax; /* 0x36125B0F: mov dword ptr [edx + 8], eax */ 7251 MEM32(ebp + (-0x90)) = 0; /* 0x36125B12: mov dword ptr [ebp - 0x90], 0 */ 7252 edx = MEM32(ebp + (-0x90)); /* 0x36125B1C: mov edx, dword ptr [ebp - 0x90] */ 7253 MEM32(ebp + (-0x8C)) = 0; /* 0x36125B22: mov dword ptr [ebp - 0x8c], 0 */ 7254 MEM32(ebp + (-0x88)) = 0; /* 0x36125B2C: mov dword ptr [ebp - 0x88], 0 */ 7255 ecx = edi + (-0x600); /* 0x36125B36: lea ecx, [edi - 0x600] */ 7256 MEM32(ecx) = edx; /* 0x36125B3C: mov dword ptr [ecx], edx */ 7257 eax = MEM32(ebp + (-0x8C)); /* 0x36125B3E: mov eax, dword ptr [ebp - 0x8c] */ 7258 MEM32(ecx + 0x4) = eax; /* 0x36125B44: mov dword ptr [ecx + 4], eax */ 7259 edx = MEM32(ebp + (-0x88)); /* 0x36125B47: mov edx, dword ptr [ebp - 0x88] */ 7260 eax = MEM32(ebp + (-0x8)); /* 0x36125B4D: mov eax, dword ptr [ebp - 8] */ 7261 MEM32(ecx + 0x8) = edx; /* 0x36125B50: mov dword ptr [ecx + 8], edx */ 7262 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36125B53: fadd dword ptr [esi + 0x16c0] */ 7263 ecx = MEM32(ebp + (-0xC)); /* 0x36125B59: mov ecx, dword ptr [ebp - 0xc] */ 7264 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7265 ecx = ecx + 1; /* 0x36125B5C: inc ecx */ 7266 _flag_k = FK_INC; 7267 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36125B5D: fstp dword ptr [eax] */ 7268 eax = MEM32(ebp + (-0x18)); /* 0x36125B5F: mov eax, dword ptr [ebp - 0x18] */ 7269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7270 eax = eax - 1; /* 0x36125B62: dec eax */ 7271 _flag_k = FK_DEC; 7272 MEM32(ebp + (-0xC)) = ecx; /* 0x36125B63: mov dword ptr [ebp - 0xc], ecx */ 7273 MEM32(ebp + (-0x18)) = eax; /* 0x36125B66: mov dword ptr [ebp - 0x18], eax */ 7274 goto L_36125B7D; /* 0x36125B69: jmp 0x36125b7d */ 7275 L_36125B6B: 7276 ecx = MEM32(esi + 0x38); /* 0x36125B6B: mov ecx, dword ptr [esi + 0x38] */ 7277 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x36125B6E: mov byte ptr [ecx + ebx + 0x1c], 0 */ 7278 goto L_36125B7D; /* 0x36125B73: jmp 0x36125b7d */ 7279 L_36125B75: 7280 edx = MEM32(esi + 0x38); /* 0x36125B75: mov edx, dword ptr [esi + 0x38] */ 7281 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x36125B78: mov byte ptr [edx + ebx + 0x1c], 0 */ 7282 L_36125B7D: 7283 edx = MEM32(ebp + (-0x8)); /* 0x36125B7D: mov edx, dword ptr [ebp - 8] */ 7284 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 7285 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7286 edx = edx + 4; /* 0x36125B80: add edx, 4 */ 7287 _flag_k = FK_ADD; 7288 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 7289 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7290 ebx = ebx + 0x20u; /* 0x36125B83: add ebx, 0x20 */ 7291 _flag_k = FK_ADD; 7292 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 7293 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7294 edi = edi + 0xCu; /* 0x36125B86: add edi, 0xc */ 7295 _flag_k = FK_ADD; 7296 /* cmp ebx, 0x1000u */ /* 0x36125B89: cmp ebx, 0x1000 */ 7297 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 7298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7299 _flag_k = FK_CMP; 7300 MEM32(ebp + (-0x8)) = edx; /* 0x36125B8F: mov dword ptr [ebp - 8], edx */ 7301 RECOMP_BACKEDGE(); 7302 if (CMP_L(_flag_a, _flag_b)) goto L_3612589C; /* 0x36125B92: jl 0x3612589c */ 7303 L_36125B98: 7304 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36125B98: mov al, byte ptr [esi + 0x163c] */ 7305 /* test LO8(eax), LO8(eax) */ /* 0x36125B9E: test al, al */ 7306 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7307 _cf = 0; 7308 _flag_k = FK_NARROW(FK_TEST, 24); 7309 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36125BA0: je 0x361275ac */ 7310 L_36125BA6: 7311 eax = MEM32(ebp + (-0xC)); /* 0x36125BA6: mov eax, dword ptr [ebp - 0xc] */ 7312 /* test eax, eax */ /* 0x36125BA9: test eax, eax */ 7313 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7314 _cf = 0; 7315 _flag_k = FK_TEST; 7316 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36125BAB: jne 0x361275ac */ 7317 L_36125BB1: 7318 goto L_361275A8; /* 0x36125BB1: jmp 0x361275a8 */ 7319 L_361275A8: 7320 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 7321 L_361275AC: 7322 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 7323 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 7324 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7325 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 7326 _flag_k = FK_ADD; 7327 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 7328 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7329 _cf = 0; 7330 _flag_k = FK_TEST; 7331 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 7332 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 7333 L_361275B7: 7334 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 7335 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 7336 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 7337 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 7338 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 7339 RECOMP_FLAGS_IN(); 7340 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 7341 PUSH32(esp, eax); /* 0x361275CD: push eax */ 7342 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 7343 RECOMP_FLAGS_IN(); 7344 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 7345 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 7346 RECOMP_FLAGS_IN(); 7347 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 7348 PUSH32(esp, eax); /* 0x361275E2: push eax */ 7349 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 7350 RECOMP_FLAGS_IN(); 7351 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 7352 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 7353 RECOMP_FLAGS_IN(); 7354 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 7355 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7356 _cf = (LO8(eax)) != 0; 7357 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 7358 _flag_k = FK_NARROW(FK_CMP, 24); 7359 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 7360 eax = _sc ? 0xFFFFFFFFu : 0; 7361 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7362 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7363 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7364 eax = eax + 1; /* 0x361275F6: inc eax */ 7365 _flag_k = FK_INC; 7366 PUSH32(esp, eax); /* 0x361275F7: push eax */ 7367 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 7368 RECOMP_FLAGS_IN(); 7369 L_361275FE: 7370 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 7371 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 7372 esp = ebp; /* 0x36127600: mov esp, ebp */ 7373 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 7374 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 7375 RECOMP_REGS_OUT(); 7376 } 7377 7378 void sub_36125B7D(void) { 7379 int _fpu_cmp = 0; 7380 uint32_t _cf = 0; 7381 int _df = 1; 7382 uint32_t _flag_k = FK_NONE; 7383 uint32_t _flag_a = 0, _flag_b = 0; 7384 uint32_t _itail_tgt = 0; 7385 RECOMP_REGS_LOCALS 7386 RECOMP_ENTER(0x36125B7Du); 7387 7388 goto L_36125B7D; 7389 L_3612589C: 7390 edx = MEM32(ebp + (-0x8)); /* 0x3612589C: mov edx, dword ptr [ebp - 8] */ 7391 fp_push(*(float*)&MEM32(edx)); /* 0x3612589F: fld dword ptr [edx] */ 7392 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x361258A1: fcomp dword ptr [ebp - 4] */ 7393 fp_pop(); 7394 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361258A4: fnstsw ax */ 7395 /* test HI8(eax), 0x41u */ /* 0x361258A6: test ah, 0x41 */ 7396 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 7397 _cf = 0; 7398 _flag_k = FK_NARROW(FK_TEST, 24); 7399 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125938; /* 0x361258A9: jne 0x36125938 */ 7400 L_361258AF: 7401 ecx = MEM32(esi + 0x38); /* 0x361258AF: mov ecx, dword ptr [esi + 0x38] */ 7402 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361258B2: fld dword ptr [ebp - 4] */ 7403 eax = ebx; /* 0x361258B5: mov eax, ebx */ 7404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7406 eax = eax + ecx; /* 0x361258B7: add eax, ecx */ 7407 _flag_k = FK_ADD; 7408 ecx = edi; /* 0x361258B9: mov ecx, edi */ 7409 edx = MEM32(ecx); /* 0x361258BB: mov edx, dword ptr [ecx] */ 7410 MEM32(eax) = edx; /* 0x361258BD: mov dword ptr [eax], edx */ 7411 edx = MEM32(ecx + 0x4); /* 0x361258BF: mov edx, dword ptr [ecx + 4] */ 7412 MEM32(eax + 0x4) = edx; /* 0x361258C2: mov dword ptr [eax + 4], edx */ 7413 ecx = MEM32(ecx + 0x8); /* 0x361258C5: mov ecx, dword ptr [ecx + 8] */ 7414 edx = MEM32(ebp + (-0x8)); /* 0x361258C8: mov edx, dword ptr [ebp - 8] */ 7415 MEM32(eax + 0x8) = ecx; /* 0x361258CB: mov dword ptr [eax + 8], ecx */ 7416 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x361258CE: fadd dword ptr [esi + 0x16c0] */ 7417 eax = MEM32(esi + 0x38); /* 0x361258D4: mov eax, dword ptr [esi + 0x38] */ 7418 ecx = MEM32(esi + 0x16C8); /* 0x361258D7: mov ecx, dword ptr [esi + 0x16c8] */ 7419 _st[0] -= (double)*(float*)ADDR(edx); /* 0x361258DD: fsub dword ptr [edx] */ 7420 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361258DF: fdiv dword ptr [esi + 0x16c0] */ 7421 MEM32(ebx + eax + 0xC) = ecx; /* 0x361258E5: mov dword ptr [ebx + eax + 0xc], ecx */ 7422 edx = MEM32(esi + 0x38); /* 0x361258E9: mov edx, dword ptr [esi + 0x38] */ 7423 eax = MEM32(esi + 0x16C8); /* 0x361258EC: mov eax, dword ptr [esi + 0x16c8] */ 7424 MEM32(ebx + edx + 0x10) = eax; /* 0x361258F2: mov dword ptr [ebx + edx + 0x10], eax */ 7425 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361258F6: fstp dword ptr [ebp - 0x1c] */ 7426 ecx = MEM32(ebp + (-0x1C)); /* 0x361258F9: mov ecx, dword ptr [ebp - 0x1c] */ 7427 PUSH32(esp, ecx); /* 0x361258FC: push ecx */ 7428 ecx = esi + 0x168C; /* 0x361258FD: lea ecx, [esi + 0x168c] */ 7429 RECOMP_ICALL(0x36137D80u); /* 0x36125903: call 0x36137d80 */ /* not lifted */ 7430 RECOMP_FLAGS_IN(); 7431 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36125908: fld dword ptr [ebp - 0x1c] */ 7432 edx = MEM32(esi + 0x38); /* 0x3612590B: mov edx, dword ptr [esi + 0x38] */ 7433 _st[0] *= (double)*(float*)ADDR(0x3617774C); /* 0x3612590E: fmul dword ptr [0x3617774c] */ 7434 MEM32(ebx + edx + 0x14) = eax; /* 0x36125914: mov dword ptr [ebx + edx + 0x14], eax */ 7435 RECOMP_ICALL(0x3615FD8Cu); /* 0x36125918: call 0x3615fd8c */ /* not lifted */ 7436 RECOMP_FLAGS_IN(); 7437 ecx = MEM32(esi + 0x38); /* 0x3612591D: mov ecx, dword ptr [esi + 0x38] */ 7438 MEM32(ebx + ecx + 0x18) = eax; /* 0x36125920: mov dword ptr [ebx + ecx + 0x18], eax */ 7439 eax = MEM32(ebp + (-0xC)); /* 0x36125924: mov eax, dword ptr [ebp - 0xc] */ 7440 edx = MEM32(esi + 0x38); /* 0x36125927: mov edx, dword ptr [esi + 0x38] */ 7441 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7442 eax = eax + 1; /* 0x3612592A: inc eax */ 7443 _flag_k = FK_INC; 7444 MEM8(ebx + edx + 0x1C) = (uint8_t)(1); /* 0x3612592B: mov byte ptr [ebx + edx + 0x1c], 1 */ 7445 MEM32(ebp + (-0xC)) = eax; /* 0x36125930: mov dword ptr [ebp - 0xc], eax */ 7446 goto L_36125B7D; /* 0x36125933: jmp 0x36125b7d */ 7447 L_36125938: 7448 eax = MEM32(ebp + (-0x18)); /* 0x36125938: mov eax, dword ptr [ebp - 0x18] */ 7449 /* test eax, eax */ /* 0x3612593B: test eax, eax */ 7450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7451 _cf = 0; 7452 _flag_k = FK_TEST; 7453 if (TEST_Z(_flag_a, _flag_b)) goto L_36125B75; /* 0x3612593D: je 0x36125b75 */ 7454 L_36125943: 7455 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36125943: mov al, byte ptr [esi + 0x163c] */ 7456 /* test LO8(eax), LO8(eax) */ /* 0x36125949: test al, al */ 7457 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7458 _cf = 0; 7459 _flag_k = FK_NARROW(FK_TEST, 24); 7460 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125B75; /* 0x3612594B: jne 0x36125b75 */ 7461 L_36125951: 7462 RECOMP_ICALL(0x360F7B00u); /* 0x36125951: call 0x360f7b00 */ /* not lifted */ 7463 RECOMP_FLAGS_IN(); 7464 ecx = MEM32(esi + 0x28); /* 0x36125956: mov ecx, dword ptr [esi + 0x28] */ 7465 PUSH32(esp, ecx); /* 0x36125959: push ecx */ 7466 ecx = eax; /* 0x3612595A: mov ecx, eax */ 7467 RECOMP_ICALL(0x360FBF90u); /* 0x3612595C: call 0x360fbf90 */ /* not lifted */ 7468 RECOMP_FLAGS_IN(); 7469 /* test eax, eax */ /* 0x36125961: test eax, eax */ 7470 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7471 _cf = 0; 7472 _flag_k = FK_TEST; 7473 MEM32(ebp + (-0x1C)) = eax; /* 0x36125963: mov dword ptr [ebp - 0x1c], eax */ 7474 if (TEST_Z(_flag_a, _flag_b)) goto L_36125B6B; /* 0x36125966: je 0x36125b6b */ 7475 L_3612596C: 7476 edx = ebp + (-0x408); /* 0x3612596C: lea edx, [ebp - 0x408] */ 7477 PUSH32(esp, edx); /* 0x36125972: push edx */ 7478 ecx = eax; /* 0x36125973: mov ecx, eax */ 7479 RECOMP_ICALL(0x36131BB0u); /* 0x36125975: call 0x36131bb0 */ /* not lifted */ 7480 RECOMP_FLAGS_IN(); 7481 ecx = MEM32(eax); /* 0x3612597A: mov ecx, dword ptr [eax] */ 7482 edx = MEM32(eax + 0x4); /* 0x3612597C: mov edx, dword ptr [eax + 4] */ 7483 eax = MEM32(eax + 0x8); /* 0x3612597F: mov eax, dword ptr [eax + 8] */ 7484 MEM32(ebp + (-0xC0)) = ecx; /* 0x36125982: mov dword ptr [ebp - 0xc0], ecx */ 7485 ecx = ebp + (-0x270); /* 0x36125988: lea ecx, [ebp - 0x270] */ 7486 PUSH32(esp, ecx); /* 0x3612598E: push ecx */ 7487 ecx = MEM32(ebp + (-0x1C)); /* 0x3612598F: mov ecx, dword ptr [ebp - 0x1c] */ 7488 MEM32(ebp + (-0xBC)) = edx; /* 0x36125992: mov dword ptr [ebp - 0xbc], edx */ 7489 MEM32(ebp + (-0xB8)) = eax; /* 0x36125998: mov dword ptr [ebp - 0xb8], eax */ 7490 RECOMP_ICALL(0x36131C00u); /* 0x3612599E: call 0x36131c00 */ /* not lifted */ 7491 RECOMP_FLAGS_IN(); 7492 edx = MEM32(eax); /* 0x361259A3: mov edx, dword ptr [eax] */ 7493 ecx = MEM32(eax + 0x4); /* 0x361259A5: mov ecx, dword ptr [eax + 4] */ 7494 MEM32(ebp + (-0xDC)) = edx; /* 0x361259A8: mov dword ptr [ebp - 0xdc], edx */ 7495 edx = MEM32(eax + 0x8); /* 0x361259AE: mov edx, dword ptr [eax + 8] */ 7496 eax = ebp + (-0x9C); /* 0x361259B1: lea eax, [ebp - 0x9c] */ 7497 PUSH32(esp, eax); /* 0x361259B7: push eax */ 7498 MEM32(ebp + (-0xD8)) = ecx; /* 0x361259B8: mov dword ptr [ebp - 0xd8], ecx */ 7499 MEM32(ebp + (-0xD4)) = edx; /* 0x361259BE: mov dword ptr [ebp - 0xd4], edx */ 7500 MEM32(ebp + (-0x9C)) = 0; /* 0x361259C4: mov dword ptr [ebp - 0x9c], 0 */ 7501 MEM32(ebp + (-0x98)) = 0; /* 0x361259CE: mov dword ptr [ebp - 0x98], 0 */ 7502 MEM32(ebp + (-0x94)) = 0; /* 0x361259D8: mov dword ptr [ebp - 0x94], 0 */ 7503 RECOMP_ICALL(0x360FCBF0u); /* 0x361259E2: call 0x360fcbf0 */ /* not lifted */ 7504 RECOMP_FLAGS_IN(); 7505 fp_push(*(float*)&MEM32(esi + 0x16CC)); /* 0x361259E7: fld dword ptr [esi + 0x16cc] */ 7506 ecx = MEM32(ebp + (-0x9C)); /* 0x361259ED: mov ecx, dword ptr [ebp - 0x9c] */ 7507 fp_push(_st[0]); /* 0x361259F3: fld st(0) */ 7508 _st[0] *= (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x361259F5: fmul dword ptr [ebp - 0x9c] */ 7509 edx = MEM32(ebp + (-0x98)); /* 0x361259FB: mov edx, dword ptr [ebp - 0x98] */ 7510 eax = MEM32(ebp + (-0x94)); /* 0x36125A01: mov eax, dword ptr [ebp - 0x94] */ 7511 MEM32(ebp + (-0x80)) = ecx; /* 0x36125A07: mov dword ptr [ebp - 0x80], ecx */ 7512 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x36125A0A: fstp dword ptr [ebp - 0x80] */ 7513 ecx = MEM32(ebp + (-0xC0)); /* 0x36125A0D: mov ecx, dword ptr [ebp - 0xc0] */ 7514 MEM32(ebp + (-0x7C)) = edx; /* 0x36125A13: mov dword ptr [ebp - 0x7c], edx */ 7515 fp_push(_st[0]); /* 0x36125A16: fld st(0) */ 7516 edx = MEM32(ebp + (-0xBC)); /* 0x36125A18: mov edx, dword ptr [ebp - 0xbc] */ 7517 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125A1E: fmul dword ptr [ebp - 0x7c] */ 7518 MEM32(ebp + (-0x78)) = eax; /* 0x36125A21: mov dword ptr [ebp - 0x78], eax */ 7519 eax = MEM32(ebp + (-0xB8)); /* 0x36125A24: mov eax, dword ptr [ebp - 0xb8] */ 7520 MEM32(ebp + (-0x68)) = ecx; /* 0x36125A2A: mov dword ptr [ebp - 0x68], ecx */ 7521 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36125A2D: fstp dword ptr [ebp - 0x7c] */ 7522 ecx = MEM32(ebp + (-0xDC)); /* 0x36125A30: mov ecx, dword ptr [ebp - 0xdc] */ 7523 MEM32(ebp + (-0x64)) = edx; /* 0x36125A36: mov dword ptr [ebp - 0x64], edx */ 7524 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36125A39: fmul dword ptr [ebp - 0x78] */ 7525 edx = MEM32(ebp + (-0xD8)); /* 0x36125A3C: mov edx, dword ptr [ebp - 0xd8] */ 7526 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125A42: fld dword ptr [0x36170380] */ 7527 MEM32(ebp + (-0x60)) = eax; /* 0x36125A48: mov dword ptr [ebp - 0x60], eax */ 7528 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36125A4B: fsub dword ptr [ebp - 0x10] */ 7529 eax = MEM32(ebp + (-0xD4)); /* 0x36125A4E: mov eax, dword ptr [ebp - 0xd4] */ 7530 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36125A54: fld dword ptr [ebp - 0xc0] */ 7531 MEM32(ebp + (-0x28)) = ecx; /* 0x36125A5A: mov dword ptr [ebp - 0x28], ecx */ 7532 MEM32(ebp + (-0x24)) = edx; /* 0x36125A5D: mov dword ptr [ebp - 0x24], edx */ 7533 _st[0] *= _st[1]; /* 0x36125A60: fmul st(1) */ 7534 MEM32(ebp + (-0x20)) = eax; /* 0x36125A62: mov dword ptr [ebp - 0x20], eax */ 7535 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7536 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7537 esp = esp + 4; /* 0x36125A65: add esp, 4 */ 7538 _flag_k = FK_ADD; 7539 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36125A68: fstp dword ptr [ebp - 0x68] */ 7540 fp_push(_st[0]); /* 0x36125A6B: fld st(0) */ 7541 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125A6D: fmul dword ptr [ebp - 0x64] */ 7542 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36125A70: fstp dword ptr [ebp - 0x64] */ 7543 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x36125A73: fmul dword ptr [ebp - 0x60] */ 7544 fp_push(*(float*)&MEM32(ebp + (-0xDC))); /* 0x36125A76: fld dword ptr [ebp - 0xdc] */ 7545 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36125A7C: fmul dword ptr [ebp - 0x10] */ 7546 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36125A7F: fstp dword ptr [ebp - 0x28] */ 7547 ecx = MEM32(ebp + (-0x28)); /* 0x36125A82: mov ecx, dword ptr [ebp - 0x28] */ 7548 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36125A85: fld dword ptr [ebp - 0x10] */ 7549 MEM32(ebp + (-0x74)) = ecx; /* 0x36125A88: mov dword ptr [ebp - 0x74], ecx */ 7550 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36125A8B: fmul dword ptr [ebp - 0x24] */ 7551 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36125A8E: fstp dword ptr [ebp - 0x24] */ 7552 edx = MEM32(ebp + (-0x24)); /* 0x36125A91: mov edx, dword ptr [ebp - 0x24] */ 7553 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36125A94: fld dword ptr [ebp - 0x10] */ 7554 MEM32(ebp + (-0x70)) = edx; /* 0x36125A97: mov dword ptr [ebp - 0x70], edx */ 7555 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36125A9A: fmul dword ptr [ebp - 0x20] */ 7556 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36125A9D: fstp dword ptr [ebp - 0x20] */ 7557 eax = MEM32(ebp + (-0x20)); /* 0x36125AA0: mov eax, dword ptr [ebp - 0x20] */ 7558 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36125AA3: fld dword ptr [ebp - 0x28] */ 7559 MEM32(ebp + (-0x6C)) = eax; /* 0x36125AA6: mov dword ptr [ebp - 0x6c], eax */ 7560 _st[0] += (double)*(float*)ADDR(ebp + (-0x68)); /* 0x36125AA9: fadd dword ptr [ebp - 0x68] */ 7561 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36125AAC: fstp dword ptr [ebp - 0x74] */ 7562 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36125AAF: fld dword ptr [ebp - 0x70] */ 7563 ecx = MEM32(ebp + (-0x74)); /* 0x36125AB2: mov ecx, dword ptr [ebp - 0x74] */ 7564 _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36125AB5: fadd dword ptr [ebp - 0x64] */ 7565 MEM32(ebp + (-0x5C)) = ecx; /* 0x36125AB8: mov dword ptr [ebp - 0x5c], ecx */ 7566 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36125ABB: fstp dword ptr [ebp - 0x70] */ 7567 edx = MEM32(ebp + (-0x70)); /* 0x36125ABE: mov edx, dword ptr [ebp - 0x70] */ 7568 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36125AC1: fld dword ptr [ebp - 0x6c] */ 7569 MEM32(ebp + (-0x58)) = edx; /* 0x36125AC4: mov dword ptr [ebp - 0x58], edx */ 7570 _st[0] += _st[1]; /* 0x36125AC7: fadd st(1) */ 7571 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36125AC9: fstp dword ptr [ebp - 0x6c] */ 7572 eax = MEM32(ebp + (-0x6C)); /* 0x36125ACC: mov eax, dword ptr [ebp - 0x6c] */ 7573 MEM32(ebp + (-0x54)) = eax; /* 0x36125ACF: mov dword ptr [ebp - 0x54], eax */ 7574 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125AD2: fstp st(0) */ 7575 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36125AD4: fld dword ptr [ebp - 0x74] */ 7576 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125AD7: fadd dword ptr [ebp - 0x80] */ 7577 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36125ADA: fstp dword ptr [ebp - 0x5c] */ 7578 eax = MEM32(ebp + (-0x5C)); /* 0x36125ADD: mov eax, dword ptr [ebp - 0x5c] */ 7579 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36125AE0: fld dword ptr [ebp - 0x58] */ 7580 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125AE3: fadd dword ptr [ebp - 0x7c] */ 7581 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x36125AE6: fstp dword ptr [ebp - 0x58] */ 7582 ecx = MEM32(ebp + (-0x58)); /* 0x36125AE9: mov ecx, dword ptr [ebp - 0x58] */ 7583 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36125AEC: fld dword ptr [ebp - 0x54] */ 7584 _st[0] += _st[1]; /* 0x36125AEF: fadd st(1) */ 7585 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36125AF1: fstp dword ptr [ebp - 0x54] */ 7586 edx = MEM32(ebp + (-0x54)); /* 0x36125AF4: mov edx, dword ptr [ebp - 0x54] */ 7587 MEM32(ebp + (-0xEC)) = edx; /* 0x36125AF7: mov dword ptr [ebp - 0xec], edx */ 7588 edx = edi; /* 0x36125AFD: mov edx, edi */ 7589 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125AFF: fstp st(0) */ 7590 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36125B01: fld dword ptr [ebp - 4] */ 7591 MEM32(edx) = eax; /* 0x36125B04: mov dword ptr [edx], eax */ 7592 MEM32(edx + 0x4) = ecx; /* 0x36125B06: mov dword ptr [edx + 4], ecx */ 7593 eax = MEM32(ebp + (-0xEC)); /* 0x36125B09: mov eax, dword ptr [ebp - 0xec] */ 7594 MEM32(edx + 0x8) = eax; /* 0x36125B0F: mov dword ptr [edx + 8], eax */ 7595 MEM32(ebp + (-0x90)) = 0; /* 0x36125B12: mov dword ptr [ebp - 0x90], 0 */ 7596 edx = MEM32(ebp + (-0x90)); /* 0x36125B1C: mov edx, dword ptr [ebp - 0x90] */ 7597 MEM32(ebp + (-0x8C)) = 0; /* 0x36125B22: mov dword ptr [ebp - 0x8c], 0 */ 7598 MEM32(ebp + (-0x88)) = 0; /* 0x36125B2C: mov dword ptr [ebp - 0x88], 0 */ 7599 ecx = edi + (-0x600); /* 0x36125B36: lea ecx, [edi - 0x600] */ 7600 MEM32(ecx) = edx; /* 0x36125B3C: mov dword ptr [ecx], edx */ 7601 eax = MEM32(ebp + (-0x8C)); /* 0x36125B3E: mov eax, dword ptr [ebp - 0x8c] */ 7602 MEM32(ecx + 0x4) = eax; /* 0x36125B44: mov dword ptr [ecx + 4], eax */ 7603 edx = MEM32(ebp + (-0x88)); /* 0x36125B47: mov edx, dword ptr [ebp - 0x88] */ 7604 eax = MEM32(ebp + (-0x8)); /* 0x36125B4D: mov eax, dword ptr [ebp - 8] */ 7605 MEM32(ecx + 0x8) = edx; /* 0x36125B50: mov dword ptr [ecx + 8], edx */ 7606 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36125B53: fadd dword ptr [esi + 0x16c0] */ 7607 ecx = MEM32(ebp + (-0xC)); /* 0x36125B59: mov ecx, dword ptr [ebp - 0xc] */ 7608 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7609 ecx = ecx + 1; /* 0x36125B5C: inc ecx */ 7610 _flag_k = FK_INC; 7611 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36125B5D: fstp dword ptr [eax] */ 7612 eax = MEM32(ebp + (-0x18)); /* 0x36125B5F: mov eax, dword ptr [ebp - 0x18] */ 7613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7614 eax = eax - 1; /* 0x36125B62: dec eax */ 7615 _flag_k = FK_DEC; 7616 MEM32(ebp + (-0xC)) = ecx; /* 0x36125B63: mov dword ptr [ebp - 0xc], ecx */ 7617 MEM32(ebp + (-0x18)) = eax; /* 0x36125B66: mov dword ptr [ebp - 0x18], eax */ 7618 goto L_36125B7D; /* 0x36125B69: jmp 0x36125b7d */ 7619 L_36125B6B: 7620 ecx = MEM32(esi + 0x38); /* 0x36125B6B: mov ecx, dword ptr [esi + 0x38] */ 7621 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x36125B6E: mov byte ptr [ecx + ebx + 0x1c], 0 */ 7622 goto L_36125B7D; /* 0x36125B73: jmp 0x36125b7d */ 7623 L_36125B75: 7624 edx = MEM32(esi + 0x38); /* 0x36125B75: mov edx, dword ptr [esi + 0x38] */ 7625 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x36125B78: mov byte ptr [edx + ebx + 0x1c], 0 */ 7626 L_36125B7D: 7627 edx = MEM32(ebp + (-0x8)); /* 0x36125B7D: mov edx, dword ptr [ebp - 8] */ 7628 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 7629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7630 edx = edx + 4; /* 0x36125B80: add edx, 4 */ 7631 _flag_k = FK_ADD; 7632 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 7633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7634 ebx = ebx + 0x20u; /* 0x36125B83: add ebx, 0x20 */ 7635 _flag_k = FK_ADD; 7636 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 7637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7638 edi = edi + 0xCu; /* 0x36125B86: add edi, 0xc */ 7639 _flag_k = FK_ADD; 7640 /* cmp ebx, 0x1000u */ /* 0x36125B89: cmp ebx, 0x1000 */ 7641 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 7642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7643 _flag_k = FK_CMP; 7644 MEM32(ebp + (-0x8)) = edx; /* 0x36125B8F: mov dword ptr [ebp - 8], edx */ 7645 RECOMP_BACKEDGE(); 7646 if (CMP_L(_flag_a, _flag_b)) goto L_3612589C; /* 0x36125B92: jl 0x3612589c */ 7647 L_36125B98: 7648 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36125B98: mov al, byte ptr [esi + 0x163c] */ 7649 /* test LO8(eax), LO8(eax) */ /* 0x36125B9E: test al, al */ 7650 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7651 _cf = 0; 7652 _flag_k = FK_NARROW(FK_TEST, 24); 7653 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36125BA0: je 0x361275ac */ 7654 L_36125BA6: 7655 eax = MEM32(ebp + (-0xC)); /* 0x36125BA6: mov eax, dword ptr [ebp - 0xc] */ 7656 /* test eax, eax */ /* 0x36125BA9: test eax, eax */ 7657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7658 _cf = 0; 7659 _flag_k = FK_TEST; 7660 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36125BAB: jne 0x361275ac */ 7661 L_36125BB1: 7662 goto L_361275A8; /* 0x36125BB1: jmp 0x361275a8 */ 7663 L_361275A8: 7664 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 7665 L_361275AC: 7666 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 7667 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 7668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7669 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 7670 _flag_k = FK_ADD; 7671 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 7672 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7673 _cf = 0; 7674 _flag_k = FK_TEST; 7675 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 7676 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 7677 L_361275B7: 7678 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 7679 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 7680 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 7681 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 7682 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 7683 RECOMP_FLAGS_IN(); 7684 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 7685 PUSH32(esp, eax); /* 0x361275CD: push eax */ 7686 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 7687 RECOMP_FLAGS_IN(); 7688 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 7689 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 7690 RECOMP_FLAGS_IN(); 7691 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 7692 PUSH32(esp, eax); /* 0x361275E2: push eax */ 7693 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 7694 RECOMP_FLAGS_IN(); 7695 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 7696 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 7697 RECOMP_FLAGS_IN(); 7698 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 7699 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7700 _cf = (LO8(eax)) != 0; 7701 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 7702 _flag_k = FK_NARROW(FK_CMP, 24); 7703 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 7704 eax = _sc ? 0xFFFFFFFFu : 0; 7705 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7706 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7707 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7708 eax = eax + 1; /* 0x361275F6: inc eax */ 7709 _flag_k = FK_INC; 7710 PUSH32(esp, eax); /* 0x361275F7: push eax */ 7711 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 7712 RECOMP_FLAGS_IN(); 7713 L_361275FE: 7714 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 7715 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 7716 esp = ebp; /* 0x36127600: mov esp, ebp */ 7717 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 7718 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 7719 RECOMP_REGS_OUT(); 7720 } 7721 7722 void sub_36125CB1(void) { 7723 int _fpu_cmp = 0; 7724 uint32_t _cf = 0; 7725 int _df = 1; 7726 uint32_t _flag_k = FK_NONE; 7727 uint32_t _flag_a = 0, _flag_b = 0; 7728 uint32_t _itail_tgt = 0; 7729 RECOMP_REGS_LOCALS 7730 RECOMP_ENTER(0x36125CB1u); 7731 7732 L_36125CB1: 7733 eax = MEM32(ebp + (-0x14)); /* 0x36125CB1: mov eax, dword ptr [ebp - 0x14] */ 7734 fp_push(*(float*)&MEM32(eax + 0x200)); /* 0x36125CB4: fld dword ptr [eax + 0x200] */ 7735 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36125CBA: fcomp dword ptr [esi + 0xc] */ 7736 fp_pop(); 7737 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125CBD: fnstsw ax */ 7738 /* test HI8(eax), 0x41u */ /* 0x36125CBF: test ah, 0x41 */ 7739 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 7740 _cf = 0; 7741 _flag_k = FK_NARROW(FK_TEST, 24); 7742 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612623A; /* 0x36125CC2: jne 0x3612623a */ 7743 L_36125CC8: 7744 ecx = MEM32(ebp + (-0x14)); /* 0x36125CC8: mov ecx, dword ptr [ebp - 0x14] */ 7745 eax = MEM32(ecx); /* 0x36125CCB: mov eax, dword ptr [ecx] */ 7746 edx = eax + eax * 2; /* 0x36125CCD: lea edx, [eax + eax*2] */ 7747 MEM32(ebp + (-0x8)) = eax; /* 0x36125CD0: mov dword ptr [ebp - 8], eax */ 7748 ecx = edi + (-0x4); /* 0x36125CD3: lea ecx, [edi - 4] */ 7749 eax = ecx; /* 0x36125CD6: mov eax, ecx */ 7750 ebx = MEM32(eax); /* 0x36125CD8: mov ebx, dword ptr [eax] */ 7751 MEM32(ebp + (-0x118)) = ebx; /* 0x36125CDA: mov dword ptr [ebp - 0x118], ebx */ 7752 fp_push(*(float*)&MEM32(ebp + (-0x118))); /* 0x36125CE0: fld dword ptr [ebp - 0x118] */ 7753 ebx = MEM32(eax + 0x4); /* 0x36125CE6: mov ebx, dword ptr [eax + 4] */ 7754 MEM32(ebp + (-0x114)) = ebx; /* 0x36125CE9: mov dword ptr [ebp - 0x114], ebx */ 7755 eax = MEM32(eax + 0x8); /* 0x36125CEF: mov eax, dword ptr [eax + 8] */ 7756 MEM32(ebp + (-0x110)) = eax; /* 0x36125CF2: mov dword ptr [ebp - 0x110], eax */ 7757 if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36125CF8: shl edx, 3 */ 7758 if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7759 edx = edx << 3u; /* 0x36125CF8: shl edx, 3 */ 7760 _st[0] -= (double)*(float*)ADDR(edx + 0x3630D6A0); /* 0x36125CFB: fsub dword ptr [edx + 0x3630d6a0] */ 7761 MEM32(ebp + (-0x4)) = edx; /* 0x36125D01: mov dword ptr [ebp - 4], edx */ 7762 fp_push(*(float*)&MEM32(ebp + (-0x114))); /* 0x36125D04: fld dword ptr [ebp - 0x114] */ 7763 eax = MEM32(ebp + (-0x4)); /* 0x36125D0A: mov eax, dword ptr [ebp - 4] */ 7764 _st[0] -= (double)*(float*)ADDR(edx + 0x3630D6A4); /* 0x36125D0D: fsub dword ptr [edx + 0x3630d6a4] */ 7765 edx = edx + 0x3630D6A0; /* 0x36125D13: lea edx, [edx + 0x3630d6a0] */ 7766 fp_push(*(float*)&MEM32(ebp + (-0x110))); /* 0x36125D19: fld dword ptr [ebp - 0x110] */ 7767 ebx = eax + 0x3630D6AC; /* 0x36125D1F: lea ebx, [eax + 0x3630d6ac] */ 7768 _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x36125D25: fsub dword ptr [edx + 8] */ 7769 eax = MEM32(ebp + (-0x8)); /* 0x36125D28: mov eax, dword ptr [ebp - 8] */ 7770 _st[0] *= (double)*(float*)ADDR(ebx + 0x8); /* 0x36125D2B: fmul dword ptr [ebx + 8] */ 7771 fp_xch(1); /* 0x36125D2E: fxch st(1) */ 7772 _st[0] *= (double)*(float*)ADDR(ebx + 0x4); /* 0x36125D30: fmul dword ptr [ebx + 4] */ 7773 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125D33: faddp st(1) */ 7774 fp_xch(1); /* 0x36125D35: fxch st(1) */ 7775 _st[0] *= (double)*(float*)ADDR(ebx); /* 0x36125D37: fmul dword ptr [ebx] */ 7776 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125D39: faddp st(1) */ 7777 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x36125D3B: fdiv dword ptr [eax*4 + 0x3630d688] */ 7778 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36125D42: fcom dword ptr [0x3617040c] */ 7779 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125D48: fnstsw ax */ 7780 /* test HI8(eax), 1 */ /* 0x36125D4A: test ah, 1 */ 7781 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7782 _cf = 0; 7783 _flag_k = FK_NARROW(FK_TEST, 24); 7784 if (TEST_Z(_flag_a, _flag_b)) goto L_36125D59; /* 0x36125D4D: je 0x36125d59 */ 7785 L_36125D4F: 7786 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125D4F: fstp st(0) */ 7787 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36125D51: fld dword ptr [0x3617040c] */ 7788 goto L_36125D6E; /* 0x36125D57: jmp 0x36125d6e */ 7789 L_36125D59: 7790 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36125D59: fcom dword ptr [0x36170380] */ 7791 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125D5F: fnstsw ax */ 7792 /* test HI8(eax), 0x41u */ /* 0x36125D61: test ah, 0x41 */ 7793 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 7794 _cf = 0; 7795 _flag_k = FK_NARROW(FK_TEST, 24); 7796 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125D6E; /* 0x36125D64: jne 0x36125d6e */ 7797 L_36125D66: 7798 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125D66: fstp st(0) */ 7799 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125D68: fld dword ptr [0x36170380] */ 7800 L_36125D6E: 7801 eax = MEM32(ebx); /* 0x36125D6E: mov eax, dword ptr [ebx] */ 7802 MEM32(ebp + (-0x80)) = eax; /* 0x36125D70: mov dword ptr [ebp - 0x80], eax */ 7803 fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x36125D73: fld dword ptr [ebp - 0x80] */ 7804 eax = MEM32(ebx + 0x4); /* 0x36125D76: mov eax, dword ptr [ebx + 4] */ 7805 _st[0] *= _st[1]; /* 0x36125D79: fmul st(1) */ 7806 MEM32(ebp + (-0x7C)) = eax; /* 0x36125D7B: mov dword ptr [ebp - 0x7c], eax */ 7807 eax = MEM32(ebx + 0x8); /* 0x36125D7E: mov eax, dword ptr [ebx + 8] */ 7808 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x36125D81: fstp dword ptr [ebp - 0x80] */ 7809 MEM32(ebp + (-0x78)) = eax; /* 0x36125D84: mov dword ptr [ebp - 0x78], eax */ 7810 eax = MEM32(edx); /* 0x36125D87: mov eax, dword ptr [edx] */ 7811 fp_push(_st[0]); /* 0x36125D89: fld st(0) */ 7812 MEM32(ebp + (-0x50)) = eax; /* 0x36125D8B: mov dword ptr [ebp - 0x50], eax */ 7813 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125D8E: fmul dword ptr [ebp - 0x7c] */ 7814 eax = MEM32(edx + 0x4); /* 0x36125D91: mov eax, dword ptr [edx + 4] */ 7815 edx = MEM32(edx + 0x8); /* 0x36125D94: mov edx, dword ptr [edx + 8] */ 7816 MEM32(ebp + (-0x4C)) = eax; /* 0x36125D97: mov dword ptr [ebp - 0x4c], eax */ 7817 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36125D9A: fstp dword ptr [ebp - 0x7c] */ 7818 MEM32(ebp + (-0x48)) = edx; /* 0x36125D9D: mov dword ptr [ebp - 0x48], edx */ 7819 ebx = 6; /* 0x36125DA0: mov ebx, 6 */ 7820 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36125DA5: fmul dword ptr [ebp - 0x78] */ 7821 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36125DA8: fld dword ptr [ebp - 0x50] */ 7822 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125DAB: fadd dword ptr [ebp - 0x80] */ 7823 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36125DAE: fstp dword ptr [ebp - 0x50] */ 7824 eax = MEM32(ebp + (-0x50)); /* 0x36125DB1: mov eax, dword ptr [ebp - 0x50] */ 7825 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36125DB4: fld dword ptr [ebp - 0x4c] */ 7826 MEM32(ebp + (-0xC0)) = eax; /* 0x36125DB7: mov dword ptr [ebp - 0xc0], eax */ 7827 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125DBD: fadd dword ptr [ebp - 0x7c] */ 7828 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36125DC0: fstp dword ptr [ebp - 0x4c] */ 7829 edx = MEM32(ebp + (-0x4C)); /* 0x36125DC3: mov edx, dword ptr [ebp - 0x4c] */ 7830 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36125DC6: fld dword ptr [ebp - 0x48] */ 7831 MEM32(ebp + (-0xBC)) = edx; /* 0x36125DC9: mov dword ptr [ebp - 0xbc], edx */ 7832 edx = MEM32(ebp + (-0x84)); /* 0x36125DCF: mov edx, dword ptr [ebp - 0x84] */ 7833 _st[0] += _st[1]; /* 0x36125DD5: fadd st(1) */ 7834 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36125DD7: fstp dword ptr [ebp - 0x48] */ 7835 eax = MEM32(ebp + (-0x48)); /* 0x36125DDA: mov eax, dword ptr [ebp - 0x48] */ 7836 MEM32(ebp + (-0xB8)) = eax; /* 0x36125DDD: mov dword ptr [ebp - 0xb8], eax */ 7837 eax = MEM32(ebp + (-0x8)); /* 0x36125DE3: mov eax, dword ptr [ebp - 8] */ 7838 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125DE6: fstp st(0) */ 7839 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7840 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7841 eax = eax + edx; /* 0x36125DE8: add eax, edx */ 7842 _flag_k = FK_ADD; 7843 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36125DEA: cdq */ 7844 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x36125DEB: idiv ebx */ 7845 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 7846 else { eax = 0; edx = 0; } } 7847 MEM32(ebp + (-0x8)) = edx; /* 0x36125DED: mov dword ptr [ebp - 8], edx */ 7848 ebx = edx + edx * 2; /* 0x36125DF0: lea ebx, [edx + edx*2] */ 7849 edx = ecx; /* 0x36125DF3: mov edx, ecx */ 7850 eax = MEM32(edx); /* 0x36125DF5: mov eax, dword ptr [edx] */ 7851 MEM32(ebp + (-0xE8)) = eax; /* 0x36125DF7: mov dword ptr [ebp - 0xe8], eax */ 7852 fp_push(*(float*)&MEM32(ebp + (-0xE8))); /* 0x36125DFD: fld dword ptr [ebp - 0xe8] */ 7853 eax = MEM32(edx + 0x4); /* 0x36125E03: mov eax, dword ptr [edx + 4] */ 7854 MEM32(ebp + (-0xE4)) = eax; /* 0x36125E06: mov dword ptr [ebp - 0xe4], eax */ 7855 edx = MEM32(edx + 0x8); /* 0x36125E0C: mov edx, dword ptr [edx + 8] */ 7856 MEM32(ebp + (-0xE0)) = edx; /* 0x36125E0F: mov dword ptr [ebp - 0xe0], edx */ 7857 if (3u) _cf = (((ebx) >> 29) & 1u); /* 0x36125E15: shl ebx, 3 */ 7858 if (3u) { _flag_a = recomp_flags_pack((ebx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7859 ebx = ebx << 3u; /* 0x36125E15: shl ebx, 3 */ 7860 _st[0] -= (double)*(float*)ADDR(ebx + 0x3630D6A0); /* 0x36125E18: fsub dword ptr [ebx + 0x3630d6a0] */ 7861 MEM32(ebp + (-0x4)) = ebx; /* 0x36125E1E: mov dword ptr [ebp - 4], ebx */ 7862 fp_push(*(float*)&MEM32(ebp + (-0xE4))); /* 0x36125E21: fld dword ptr [ebp - 0xe4] */ 7863 eax = MEM32(ebp + (-0x4)); /* 0x36125E27: mov eax, dword ptr [ebp - 4] */ 7864 _st[0] -= (double)*(float*)ADDR(ebx + 0x3630D6A4); /* 0x36125E2A: fsub dword ptr [ebx + 0x3630d6a4] */ 7865 ebx = ebx + 0x3630D6A0; /* 0x36125E30: lea ebx, [ebx + 0x3630d6a0] */ 7866 fp_push(*(float*)&MEM32(ebp + (-0xE0))); /* 0x36125E36: fld dword ptr [ebp - 0xe0] */ 7867 edx = eax + 0x3630D6AC; /* 0x36125E3C: lea edx, [eax + 0x3630d6ac] */ 7868 _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x36125E42: fsub dword ptr [ebx + 8] */ 7869 eax = MEM32(ebp + (-0x8)); /* 0x36125E45: mov eax, dword ptr [ebp - 8] */ 7870 _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x36125E48: fmul dword ptr [edx + 8] */ 7871 fp_xch(1); /* 0x36125E4B: fxch st(1) */ 7872 _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x36125E4D: fmul dword ptr [edx + 4] */ 7873 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125E50: faddp st(1) */ 7874 fp_xch(1); /* 0x36125E52: fxch st(1) */ 7875 _st[0] *= (double)*(float*)ADDR(edx); /* 0x36125E54: fmul dword ptr [edx] */ 7876 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125E56: faddp st(1) */ 7877 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x36125E58: fdiv dword ptr [eax*4 + 0x3630d688] */ 7878 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36125E5F: fcom dword ptr [0x3617040c] */ 7879 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125E65: fnstsw ax */ 7880 /* test HI8(eax), 1 */ /* 0x36125E67: test ah, 1 */ 7881 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7882 _cf = 0; 7883 _flag_k = FK_NARROW(FK_TEST, 24); 7884 if (TEST_Z(_flag_a, _flag_b)) goto L_36125E76; /* 0x36125E6A: je 0x36125e76 */ 7885 L_36125E6C: 7886 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125E6C: fstp st(0) */ 7887 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36125E6E: fld dword ptr [0x3617040c] */ 7888 goto L_36125E8B; /* 0x36125E74: jmp 0x36125e8b */ 7889 L_36125E76: 7890 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36125E76: fcom dword ptr [0x36170380] */ 7891 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125E7C: fnstsw ax */ 7892 /* test HI8(eax), 0x41u */ /* 0x36125E7E: test ah, 0x41 */ 7893 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 7894 _cf = 0; 7895 _flag_k = FK_NARROW(FK_TEST, 24); 7896 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125E8B; /* 0x36125E81: jne 0x36125e8b */ 7897 L_36125E83: 7898 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125E83: fstp st(0) */ 7899 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125E85: fld dword ptr [0x36170380] */ 7900 L_36125E8B: 7901 eax = MEM32(edx); /* 0x36125E8B: mov eax, dword ptr [edx] */ 7902 MEM32(ebp + (-0x9C)) = eax; /* 0x36125E8D: mov dword ptr [ebp - 0x9c], eax */ 7903 fp_push(*(float*)&MEM32(ebp + (-0x9C))); /* 0x36125E93: fld dword ptr [ebp - 0x9c] */ 7904 _st[0] *= _st[1]; /* 0x36125E99: fmul st(1) */ 7905 eax = MEM32(edx + 0x4); /* 0x36125E9B: mov eax, dword ptr [edx + 4] */ 7906 edx = MEM32(edx + 0x8); /* 0x36125E9E: mov edx, dword ptr [edx + 8] */ 7907 MEM32(ebp + (-0x98)) = eax; /* 0x36125EA1: mov dword ptr [ebp - 0x98], eax */ 7908 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36125EA7: fstp dword ptr [ebp - 0x9c] */ 7909 eax = MEM32(ebx); /* 0x36125EAD: mov eax, dword ptr [ebx] */ 7910 MEM32(ebp + (-0xA8)) = eax; /* 0x36125EAF: mov dword ptr [ebp - 0xa8], eax */ 7911 fp_push(_st[0]); /* 0x36125EB5: fld st(0) */ 7912 eax = MEM32(ebx + 0x8); /* 0x36125EB7: mov eax, dword ptr [ebx + 8] */ 7913 _st[0] *= (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125EBA: fmul dword ptr [ebp - 0x98] */ 7914 MEM32(ebp + (-0x94)) = edx; /* 0x36125EC0: mov dword ptr [ebp - 0x94], edx */ 7915 edx = MEM32(ebx + 0x4); /* 0x36125EC6: mov edx, dword ptr [ebx + 4] */ 7916 MEM32(ebp + (-0xA4)) = edx; /* 0x36125EC9: mov dword ptr [ebp - 0xa4], edx */ 7917 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x36125ECF: fstp dword ptr [ebp - 0x98] */ 7918 MEM32(ebp + (-0xA0)) = eax; /* 0x36125ED5: mov dword ptr [ebp - 0xa0], eax */ 7919 _st[0] *= (double)*(float*)ADDR(ebp + (-0x94)); /* 0x36125EDB: fmul dword ptr [ebp - 0x94] */ 7920 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36125EE1: fld dword ptr [ebp - 0xa8] */ 7921 _st[0] += (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x36125EE7: fadd dword ptr [ebp - 0x9c] */ 7922 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x36125EED: fstp dword ptr [ebp - 0xa8] */ 7923 eax = MEM32(ebp + (-0xA8)); /* 0x36125EF3: mov eax, dword ptr [ebp - 0xa8] */ 7924 fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x36125EF9: fld dword ptr [ebp - 0xa4] */ 7925 MEM32(ebp + (-0xF4)) = eax; /* 0x36125EFF: mov dword ptr [ebp - 0xf4], eax */ 7926 _st[0] += (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125F05: fadd dword ptr [ebp - 0x98] */ 7927 MEM32(ebp + (-0x128)) = eax; /* 0x36125F0B: mov dword ptr [ebp - 0x128], eax */ 7928 eax = MEM32(ebp + (-0x50)); /* 0x36125F11: mov eax, dword ptr [ebp - 0x50] */ 7929 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36125F14: fstp dword ptr [ebp - 0xa4] */ 7930 edx = MEM32(ebp + (-0xA4)); /* 0x36125F1A: mov edx, dword ptr [ebp - 0xa4] */ 7931 fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x36125F20: fld dword ptr [ebp - 0xa0] */ 7932 MEM32(ebp + (-0x124)) = edx; /* 0x36125F26: mov dword ptr [ebp - 0x124], edx */ 7933 _st[0] += _st[1]; /* 0x36125F2C: fadd st(1) */ 7934 MEM32(ebp + (-0xF0)) = edx; /* 0x36125F2E: mov dword ptr [ebp - 0xf0], edx */ 7935 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36125F34: fstp dword ptr [ebp - 0xa0] */ 7936 ebx = MEM32(ebp + (-0xA0)); /* 0x36125F3A: mov ebx, dword ptr [ebp - 0xa0] */ 7937 edx = ebx; /* 0x36125F40: mov edx, ebx */ 7938 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125F42: fstp st(0) */ 7939 MEM32(ebp + (-0x120)) = edx; /* 0x36125F44: mov dword ptr [ebp - 0x120], edx */ 7940 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36125F4A: fld dword ptr [ebp - 0xa8] */ 7941 edx = MEM32(ebp + (-0x4C)); /* 0x36125F50: mov edx, dword ptr [ebp - 0x4c] */ 7942 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36125F53: fsub dword ptr [ecx] */ 7943 fp_push(*(float*)&MEM32(ebp + (-0x124))); /* 0x36125F55: fld dword ptr [ebp - 0x124] */ 7944 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36125F5B: fsub dword ptr [edi] */ 7945 fp_push(*(float*)&MEM32(ebp + (-0x120))); /* 0x36125F5D: fld dword ptr [ebp - 0x120] */ 7946 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36125F63: fsub dword ptr [edi + 4] */ 7947 MEM32(ebp + (-0x68)) = eax; /* 0x36125F66: mov dword ptr [ebp - 0x68], eax */ 7948 eax = MEM32(ebp + (-0x48)); /* 0x36125F69: mov eax, dword ptr [ebp - 0x48] */ 7949 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36125F6C: fld dword ptr [ebp - 0x50] */ 7950 MEM32(ebp + (-0x60)) = eax; /* 0x36125F6F: mov dword ptr [ebp - 0x60], eax */ 7951 MEM32(ebp + (-0x64)) = edx; /* 0x36125F72: mov dword ptr [ebp - 0x64], edx */ 7952 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36125F75: fsub dword ptr [ecx] */ 7953 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36125F77: fld dword ptr [ebp - 0x64] */ 7954 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36125F7A: fsub dword ptr [edi] */ 7955 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36125F7C: fld dword ptr [ebp - 0x60] */ 7956 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36125F7F: fsub dword ptr [edi + 4] */ 7957 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x36125F82: fstp dword ptr [ebp - 0x60] */ 7958 fp_push(_st[2]); /* 0x36125F85: fld st(2) */ 7959 _st[0] *= _st[3]; /* 0x36125F87: fmul st(3) */ 7960 fp_push(_st[4]); /* 0x36125F89: fld st(4) */ 7961 _st[0] *= _st[5]; /* 0x36125F8B: fmul st(5) */ 7962 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F8D: faddp st(1) */ 7963 fp_push(_st[5]); /* 0x36125F8F: fld st(5) */ 7964 _st[0] *= _st[6]; /* 0x36125F91: fmul st(6) */ 7965 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F93: faddp st(1) */ 7966 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36125F95: fld dword ptr [ebp - 0x60] */ 7967 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x36125F98: fmul dword ptr [ebp - 0x60] */ 7968 fp_push(_st[2]); /* 0x36125F9B: fld st(2) */ 7969 _st[0] *= _st[3]; /* 0x36125F9D: fmul st(3) */ 7970 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F9F: faddp st(1) */ 7971 fp_push(_st[3]); /* 0x36125FA1: fld st(3) */ 7972 _st[0] *= _st[4]; /* 0x36125FA3: fmul st(4) */ 7973 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125FA5: faddp st(1) */ 7974 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x36125FA7: fcompp */ 7975 fp_pop(); fp_pop(); 7976 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FA9: fstp st(0) */ 7977 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FAB: fstp st(0) */ 7978 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FAD: fstp st(0) */ 7979 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125FAF: fnstsw ax */ 7980 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FB1: fstp st(0) */ 7981 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FB3: fstp st(0) */ 7982 /* test HI8(eax), 0x41u */ /* 0x36125FB5: test ah, 0x41 */ 7983 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 7984 _cf = 0; 7985 _flag_k = FK_NARROW(FK_TEST, 24); 7986 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125FE0; /* 0x36125FB8: jne 0x36125fe0 */ 7987 L_36125FBA: 7988 edx = MEM32(ebp + (-0x14)); /* 0x36125FBA: mov edx, dword ptr [ebp - 0x14] */ 7989 eax = MEM32(ebp + (-0x8)); /* 0x36125FBD: mov eax, dword ptr [ebp - 8] */ 7990 MEM32(edx) = eax; /* 0x36125FC0: mov dword ptr [edx], eax */ 7991 edx = MEM32(ebp + (-0xF4)); /* 0x36125FC2: mov edx, dword ptr [ebp - 0xf4] */ 7992 eax = MEM32(ebp + (-0xF0)); /* 0x36125FC8: mov eax, dword ptr [ebp - 0xf0] */ 7993 MEM32(ebp + (-0xC0)) = edx; /* 0x36125FCE: mov dword ptr [ebp - 0xc0], edx */ 7994 MEM32(ebp + (-0xBC)) = eax; /* 0x36125FD4: mov dword ptr [ebp - 0xbc], eax */ 7995 MEM32(ebp + (-0xB8)) = ebx; /* 0x36125FDA: mov dword ptr [ebp - 0xb8], ebx */ 7996 L_36125FE0: 7997 eax = edi + (-0x604); /* 0x36125FE0: lea eax, [edi - 0x604] */ 7998 edx = eax; /* 0x36125FE6: mov edx, eax */ 7999 ebx = MEM32(edx); /* 0x36125FE8: mov ebx, dword ptr [edx] */ 8000 MEM32(ebp + (-0xDC)) = ebx; /* 0x36125FEA: mov dword ptr [ebp - 0xdc], ebx */ 8001 fp_push(*(float*)&MEM32(ebp + (-0xDC))); /* 0x36125FF0: fld dword ptr [ebp - 0xdc] */ 8002 ebx = MEM32(edx + 0x4); /* 0x36125FF6: mov ebx, dword ptr [edx + 4] */ 8003 _st[0] += _st[0]; /* 0x36125FF9: fadd st(0), st(0) */ 8004 MEM32(ebp + (-0xD8)) = ebx; /* 0x36125FFB: mov dword ptr [ebp - 0xd8], ebx */ 8005 fp_push(*(float*)&MEM32(ebp + (-0xD8))); /* 0x36126001: fld dword ptr [ebp - 0xd8] */ 8006 edx = MEM32(edx + 0x8); /* 0x36126007: mov edx, dword ptr [edx + 8] */ 8007 _st[0] += _st[0]; /* 0x3612600A: fadd st(0), st(0) */ 8008 MEM32(ebp + (-0xD4)) = edx; /* 0x3612600C: mov dword ptr [ebp - 0xd4], edx */ 8009 edx = MEM32(ebp + (-0xC0)); /* 0x36126012: mov edx, dword ptr [ebp - 0xc0] */ 8010 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36126018: fstp dword ptr [ebp - 0xd8] */ 8011 MEM32(ebp + (-0x28)) = edx; /* 0x3612601E: mov dword ptr [ebp - 0x28], edx */ 8012 fp_push(*(float*)&MEM32(ebp + (-0xD4))); /* 0x36126021: fld dword ptr [ebp - 0xd4] */ 8013 edx = MEM32(ebp + (-0xBC)); /* 0x36126027: mov edx, dword ptr [ebp - 0xbc] */ 8014 _st[0] += _st[0]; /* 0x3612602D: fadd st(0), st(0) */ 8015 MEM32(ebp + (-0x24)) = edx; /* 0x3612602F: mov dword ptr [ebp - 0x24], edx */ 8016 edx = MEM32(ebp + (-0xB8)); /* 0x36126032: mov edx, dword ptr [ebp - 0xb8] */ 8017 MEM32(ebp + (-0x20)) = edx; /* 0x36126038: mov dword ptr [ebp - 0x20], edx */ 8018 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3612603B: fstp dword ptr [ebp - 0xd4] */ 8019 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36126041: fld dword ptr [ebp - 0xc0] */ 8020 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36126047: fsub dword ptr [ecx] */ 8021 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36126049: fstp dword ptr [ebp - 0x28] */ 8022 edx = MEM32(ebp + (-0x28)); /* 0x3612604C: mov edx, dword ptr [ebp - 0x28] */ 8023 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3612604F: fld dword ptr [ebp - 0x24] */ 8024 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36126052: fsub dword ptr [edi] */ 8025 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36126054: fstp dword ptr [ebp - 0x24] */ 8026 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36126057: fld dword ptr [ebp - 0x20] */ 8027 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3612605A: fsub dword ptr [edi + 4] */ 8028 MEM32(ebp + (-0x74)) = edx; /* 0x3612605D: mov dword ptr [ebp - 0x74], edx */ 8029 edx = MEM32(ebp + (-0x24)); /* 0x36126060: mov edx, dword ptr [ebp - 0x24] */ 8030 MEM32(ebp + (-0x70)) = edx; /* 0x36126063: mov dword ptr [ebp - 0x70], edx */ 8031 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36126066: fstp dword ptr [ebp - 0x20] */ 8032 edx = MEM32(ebp + (-0x20)); /* 0x36126069: mov edx, dword ptr [ebp - 0x20] */ 8033 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3612606C: fld dword ptr [ebp - 0x28] */ 8034 MEM32(ebp + (-0x6C)) = edx; /* 0x3612606F: mov dword ptr [ebp - 0x6c], edx */ 8035 _st[0] -= _st[1]; /* 0x36126072: fsub st(1) */ 8036 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36126074: fstp dword ptr [ebp - 0x74] */ 8037 edx = MEM32(ebp + (-0x74)); /* 0x36126077: mov edx, dword ptr [ebp - 0x74] */ 8038 MEM32(ebp + (-0xB4)) = edx; /* 0x3612607A: mov dword ptr [ebp - 0xb4], edx */ 8039 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126080: fstp st(0) */ 8040 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36126082: fld dword ptr [ebp - 0x70] */ 8041 _st[0] -= (double)*(float*)ADDR(ebp + (-0xD8)); /* 0x36126085: fsub dword ptr [ebp - 0xd8] */ 8042 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3612608B: fstp dword ptr [ebp - 0x70] */ 8043 edx = MEM32(ebp + (-0x70)); /* 0x3612608E: mov edx, dword ptr [ebp - 0x70] */ 8044 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36126091: fld dword ptr [ebp - 0x6c] */ 8045 MEM32(ebp + (-0xB0)) = edx; /* 0x36126094: mov dword ptr [ebp - 0xb0], edx */ 8046 _st[0] -= (double)*(float*)ADDR(ebp + (-0xD4)); /* 0x3612609A: fsub dword ptr [ebp - 0xd4] */ 8047 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x361260A0: fstp dword ptr [ebp - 0x6c] */ 8048 edx = MEM32(ebp + (-0x6C)); /* 0x361260A3: mov edx, dword ptr [ebp - 0x6c] */ 8049 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x361260A6: fld dword ptr [ebp - 0x74] */ 8050 MEM32(ebp + (-0xAC)) = edx; /* 0x361260A9: mov dword ptr [ebp - 0xac], edx */ 8051 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260AF: fmul dword ptr [0x36170d68] */ 8052 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x361260B5: fstp dword ptr [ebp - 0xb4] */ 8053 edx = MEM32(ebp + (-0xB4)); /* 0x361260BB: mov edx, dword ptr [ebp - 0xb4] */ 8054 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361260C1: fld dword ptr [ebp - 0xb0] */ 8055 MEM32(ebp + (-0x10C)) = edx; /* 0x361260C7: mov dword ptr [ebp - 0x10c], edx */ 8056 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260CD: fmul dword ptr [0x36170d68] */ 8057 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x361260D3: fstp dword ptr [ebp - 0xb0] */ 8058 edx = MEM32(ebp + (-0xB0)); /* 0x361260D9: mov edx, dword ptr [ebp - 0xb0] */ 8059 fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361260DF: fld dword ptr [ebp - 0xac] */ 8060 MEM32(ebp + (-0x108)) = edx; /* 0x361260E5: mov dword ptr [ebp - 0x108], edx */ 8061 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260EB: fmul dword ptr [0x36170d68] */ 8062 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361260F1: fstp dword ptr [ebp - 0xac] */ 8063 edx = MEM32(ebp + (-0xAC)); /* 0x361260F7: mov edx, dword ptr [ebp - 0xac] */ 8064 fp_push(*(float*)&MEM32(ebp + (-0xB4))); /* 0x361260FD: fld dword ptr [ebp - 0xb4] */ 8065 MEM32(ebp + (-0x104)) = edx; /* 0x36126103: mov dword ptr [ebp - 0x104], edx */ 8066 _st[0] += (double)*(float*)ADDR(eax); /* 0x36126109: fadd dword ptr [eax] */ 8067 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3612610B: fstp dword ptr [eax] */ 8068 fp_push(*(float*)&MEM32(ebp + (-0x108))); /* 0x3612610D: fld dword ptr [ebp - 0x108] */ 8069 _st[0] += (double)*(float*)ADDR(edi + (-0x600)); /* 0x36126113: fadd dword ptr [edi - 0x600] */ 8070 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x600)) = _v; } /* 0x36126119: fstp dword ptr [edi - 0x600] */ 8071 fp_push(*(float*)&MEM32(ebp + (-0x104))); /* 0x3612611F: fld dword ptr [ebp - 0x104] */ 8072 _st[0] += (double)*(float*)ADDR(edi + (-0x5FC)); /* 0x36126125: fadd dword ptr [edi - 0x5fc] */ 8073 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x5FC)) = _v; } /* 0x3612612B: fstp dword ptr [edi - 0x5fc] */ 8074 edx = MEM32(eax); /* 0x36126131: mov edx, dword ptr [eax] */ 8075 MEM32(ebp + (-0x44)) = edx; /* 0x36126133: mov dword ptr [ebp - 0x44], edx */ 8076 edx = MEM32(eax + 0x4); /* 0x36126136: mov edx, dword ptr [eax + 4] */ 8077 MEM32(ebp + (-0x40)) = edx; /* 0x36126139: mov dword ptr [ebp - 0x40], edx */ 8078 eax = MEM32(eax + 0x8); /* 0x3612613C: mov eax, dword ptr [eax + 8] */ 8079 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3612613F: fld dword ptr [ebp - 0x44] */ 8080 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126142: fmul dword ptr [0x36170d68] */ 8081 MEM32(ebp + (-0x3C)) = eax; /* 0x36126148: mov dword ptr [ebp - 0x3c], eax */ 8082 ebx = MEM32(ebp + (-0x1C)); /* 0x3612614B: mov ebx, dword ptr [ebp - 0x1c] */ 8083 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3612614E: fstp dword ptr [ebp - 0x44] */ 8084 edx = MEM32(ebp + (-0x44)); /* 0x36126151: mov edx, dword ptr [ebp - 0x44] */ 8085 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36126154: fld dword ptr [ebp - 0x40] */ 8086 MEM32(ebp + (-0x100)) = edx; /* 0x36126157: mov dword ptr [ebp - 0x100], edx */ 8087 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612615D: fmul dword ptr [0x36170d68] */ 8088 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36126163: fstp dword ptr [ebp - 0x40] */ 8089 eax = MEM32(ebp + (-0x40)); /* 0x36126166: mov eax, dword ptr [ebp - 0x40] */ 8090 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36126169: fld dword ptr [ebp - 0x3c] */ 8091 MEM32(ebp + (-0xFC)) = eax; /* 0x3612616C: mov dword ptr [ebp - 0xfc], eax */ 8092 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126172: fmul dword ptr [0x36170d68] */ 8093 eax = ebx; /* 0x36126178: mov eax, ebx */ 8094 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612617A: fstp dword ptr [ebp - 0x3c] */ 8095 edx = MEM32(ebp + (-0x3C)); /* 0x3612617D: mov edx, dword ptr [ebp - 0x3c] */ 8096 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126180: fld dword ptr [ebp - 0x44] */ 8097 MEM32(ebp + (-0xF8)) = edx; /* 0x36126183: mov dword ptr [ebp - 0xf8], edx */ 8098 _st[0] += (double)*(float*)ADDR(ecx); /* 0x36126189: fadd dword ptr [ecx] */ 8099 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x3612618B: fstp dword ptr [ecx] */ 8100 fp_push(*(float*)&MEM32(ebp + (-0xFC))); /* 0x3612618D: fld dword ptr [ebp - 0xfc] */ 8101 _st[0] += (double)*(float*)ADDR(edi); /* 0x36126193: fadd dword ptr [edi] */ 8102 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36126195: fstp dword ptr [edi] */ 8103 fp_push(*(float*)&MEM32(ebp + (-0xF8))); /* 0x36126197: fld dword ptr [ebp - 0xf8] */ 8104 _st[0] += (double)*(float*)ADDR(edi + 0x4); /* 0x3612619D: fadd dword ptr [edi + 4] */ 8105 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x361261A0: fstp dword ptr [edi + 4] */ 8106 edx = MEM32(esi + 0x38); /* 0x361261A3: mov edx, dword ptr [esi + 0x38] */ 8107 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8109 eax = eax + edx; /* 0x361261A6: add eax, edx */ 8110 _flag_k = FK_ADD; 8111 edx = MEM32(ecx); /* 0x361261A8: mov edx, dword ptr [ecx] */ 8112 MEM32(eax) = edx; /* 0x361261AA: mov dword ptr [eax], edx */ 8113 edx = MEM32(ecx + 0x4); /* 0x361261AC: mov edx, dword ptr [ecx + 4] */ 8114 MEM32(eax + 0x4) = edx; /* 0x361261AF: mov dword ptr [eax + 4], edx */ 8115 ecx = MEM32(ecx + 0x8); /* 0x361261B2: mov ecx, dword ptr [ecx + 8] */ 8116 edx = MEM32(ebp + (-0x14)); /* 0x361261B5: mov edx, dword ptr [ebp - 0x14] */ 8117 MEM32(eax + 0x8) = ecx; /* 0x361261B8: mov dword ptr [eax + 8], ecx */ 8118 fp_push(*(float*)&MEM32(edx + 0x200)); /* 0x361261BB: fld dword ptr [edx + 0x200] */ 8119 _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x361261C1: fsub dword ptr [esi + 0xc] */ 8120 _st[0] = (double)*(float*)ADDR(0x36170EB0) - _st[0]; /* 0x361261C4: fsubr dword ptr [0x36170eb0] */ 8121 _st[0] *= (double)*(float*)ADDR(0x36177778); /* 0x361261CA: fmul dword ptr [0x36177778] */ 8122 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361261D0: fst dword ptr [ebp - 4] */ 8123 _st[0] *= *(double*)ADDR(0x36177770); /* 0x361261D3: fmul qword ptr [0x36177770] */ 8124 RECOMP_ICALL(0x3615FD8Cu); /* 0x361261D9: call 0x3615fd8c */ /* not lifted */ 8125 RECOMP_FLAGS_IN(); 8126 edx = MEM32(ebp + (-0x4)); /* 0x361261DE: mov edx, dword ptr [ebp - 4] */ 8127 ecx = 0xFu; /* 0x361261E1: mov ecx, 0xf */ 8128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8130 ecx = ecx - eax; /* 0x361261E6: sub ecx, eax */ 8131 _flag_k = FK_CMP; 8132 fp_push((double)(int32_t)MEM32(ecx * 4 + 0x362E5AC0)); /* 0x361261E8: fild dword ptr [ecx*4 + 0x362e5ac0] */ 8133 eax = MEM32(esi + 0x38); /* 0x361261EF: mov eax, dword ptr [esi + 0x38] */ 8134 MEM32(ebp + (-0x1C)) = ecx; /* 0x361261F2: mov dword ptr [ebp - 0x1c], ecx */ 8135 PUSH32(esp, edx); /* 0x361261F5: push edx */ 8136 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361261F6: fmul dword ptr [ebp - 4] */ 8137 _st[0] *= (double)*(float*)ADDR(0x36170850); /* 0x361261F9: fmul dword ptr [0x36170850] */ 8138 { float _v = (float)_st[0]; *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x361261FF: fst dword ptr [ebx + eax + 0xc] */ 8139 ecx = MEM32(esi + 0x38); /* 0x36126203: mov ecx, dword ptr [esi + 0x38] */ 8140 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x36126206: fstp dword ptr [ebx + ecx + 0x10] */ 8141 ecx = esi + 0x168C; /* 0x3612620A: lea ecx, [esi + 0x168c] */ 8142 RECOMP_ICALL(0x36137D80u); /* 0x36126210: call 0x36137d80 */ /* not lifted */ 8143 RECOMP_FLAGS_IN(); 8144 ecx = MEM32(esi + 0x38); /* 0x36126215: mov ecx, dword ptr [esi + 0x38] */ 8145 MEM32(ebx + ecx + 0x14) = eax; /* 0x36126218: mov dword ptr [ebx + ecx + 0x14], eax */ 8146 edx = MEM32(esi + 0x38); /* 0x3612621C: mov edx, dword ptr [esi + 0x38] */ 8147 eax = MEM32(ebp + (-0x1C)); /* 0x3612621F: mov eax, dword ptr [ebp - 0x1c] */ 8148 MEM32(ebx + edx + 0x18) = eax; /* 0x36126222: mov dword ptr [ebx + edx + 0x18], eax */ 8149 eax = MEM32(ebp + (-0xC)); /* 0x36126226: mov eax, dword ptr [ebp - 0xc] */ 8150 ecx = MEM32(esi + 0x38); /* 0x36126229: mov ecx, dword ptr [esi + 0x38] */ 8151 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8152 eax = eax + 1; /* 0x3612622C: inc eax */ 8153 _flag_k = FK_INC; 8154 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x3612622D: mov byte ptr [ebx + ecx + 0x1c], 1 */ 8155 MEM32(ebp + (-0xC)) = eax; /* 0x36126232: mov dword ptr [ebp - 0xc], eax */ 8156 goto L_36126334; /* 0x36126235: jmp 0x36126334 */ 8157 L_3612623A: 8158 eax = MEM32(ebp + (-0x18)); /* 0x3612623A: mov eax, dword ptr [ebp - 0x18] */ 8159 /* test eax, eax */ /* 0x3612623D: test eax, eax */ 8160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8161 _cf = 0; 8162 _flag_k = FK_TEST; 8163 if (TEST_Z(_flag_a, _flag_b)) goto L_3612632C; /* 0x3612623F: je 0x3612632c */ 8164 L_36126245: 8165 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126245: mov al, byte ptr [esi + 0x163c] */ 8166 /* test LO8(eax), LO8(eax) */ /* 0x3612624B: test al, al */ 8167 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8168 _cf = 0; 8169 _flag_k = FK_NARROW(FK_TEST, 24); 8170 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612632C; /* 0x3612624D: jne 0x3612632c */ 8171 L_36126253: 8172 MEM32(ebp + (-0xD0)) = 0; /* 0x36126253: mov dword ptr [ebp - 0xd0], 0 */ 8173 eax = MEM32(ebp + (-0xD0)); /* 0x3612625D: mov eax, dword ptr [ebp - 0xd0] */ 8174 MEM32(ebp + (-0xCC)) = 0; /* 0x36126263: mov dword ptr [ebp - 0xcc], 0 */ 8175 MEM32(ebp + (-0xC8)) = 0; /* 0x3612626D: mov dword ptr [ebp - 0xc8], 0 */ 8176 edx = edi + (-0x604); /* 0x36126277: lea edx, [edi - 0x604] */ 8177 MEM32(edx) = eax; /* 0x3612627D: mov dword ptr [edx], eax */ 8178 ecx = MEM32(ebp + (-0xCC)); /* 0x3612627F: mov ecx, dword ptr [ebp - 0xcc] */ 8179 MEM32(edx + 0x4) = ecx; /* 0x36126285: mov dword ptr [edx + 4], ecx */ 8180 eax = MEM32(ebp + (-0xC8)); /* 0x36126288: mov eax, dword ptr [ebp - 0xc8] */ 8181 MEM32(edx + 0x8) = eax; /* 0x3612628E: mov dword ptr [edx + 8], eax */ 8182 ecx = ebp + (-0x90); /* 0x36126291: lea ecx, [ebp - 0x90] */ 8183 PUSH32(esp, ecx); /* 0x36126297: push ecx */ 8184 MEM32(ebp + (-0x90)) = 0; /* 0x36126298: mov dword ptr [ebp - 0x90], 0 */ 8185 MEM32(ebp + (-0x8C)) = 0; /* 0x361262A2: mov dword ptr [ebp - 0x8c], 0 */ 8186 MEM32(ebp + (-0x88)) = 0; /* 0x361262AC: mov dword ptr [ebp - 0x88], 0 */ 8187 RECOMP_ICALL(0x360FCA70u); /* 0x361262B6: call 0x360fca70 */ /* not lifted */ 8188 RECOMP_FLAGS_IN(); 8189 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361262BB: fld dword ptr [ebp - 0x38] */ 8190 _st[0] += (double)*(float*)ADDR(ebp + (-0x90)); /* 0x361262BE: fadd dword ptr [ebp - 0x90] */ 8191 edx = MEM32(ebp + (-0x38)); /* 0x361262C4: mov edx, dword ptr [ebp - 0x38] */ 8192 eax = MEM32(ebp + (-0x34)); /* 0x361262C7: mov eax, dword ptr [ebp - 0x34] */ 8193 ecx = MEM32(ebp + (-0x30)); /* 0x361262CA: mov ecx, dword ptr [ebp - 0x30] */ 8194 MEM32(ebp + (-0x58)) = eax; /* 0x361262CD: mov dword ptr [ebp - 0x58], eax */ 8195 MEM32(ebp + (-0x5C)) = edx; /* 0x361262D0: mov dword ptr [ebp - 0x5c], edx */ 8196 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x361262D3: fstp dword ptr [ebp - 0x5c] */ 8197 fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x361262D6: fld dword ptr [ebp - 0x8c] */ 8198 eax = MEM32(ebp + (-0x5C)); /* 0x361262DC: mov eax, dword ptr [ebp - 0x5c] */ 8199 _st[0] += (double)*(float*)ADDR(ebp + (-0x58)); /* 0x361262DF: fadd dword ptr [ebp - 0x58] */ 8200 MEM32(ebp + (-0x54)) = ecx; /* 0x361262E2: mov dword ptr [ebp - 0x54], ecx */ 8201 edx = edi + (-0x4); /* 0x361262E5: lea edx, [edi - 4] */ 8202 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8203 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8204 esp = esp + 4; /* 0x361262E8: add esp, 4 */ 8205 _flag_k = FK_ADD; 8206 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361262EB: fstp dword ptr [ebp - 0x58] */ 8207 fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x361262EE: fld dword ptr [ebp - 0x88] */ 8208 _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361262F4: fadd dword ptr [ebp - 0x54] */ 8209 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361262F7: fstp dword ptr [ebp - 0x54] */ 8210 MEM32(edx) = eax; /* 0x361262FA: mov dword ptr [edx], eax */ 8211 ecx = MEM32(ebp + (-0x58)); /* 0x361262FC: mov ecx, dword ptr [ebp - 0x58] */ 8212 MEM32(edx + 0x4) = ecx; /* 0x361262FF: mov dword ptr [edx + 4], ecx */ 8213 eax = MEM32(ebp + (-0x54)); /* 0x36126302: mov eax, dword ptr [ebp - 0x54] */ 8214 ecx = MEM32(ebp + (-0xC)); /* 0x36126305: mov ecx, dword ptr [ebp - 0xc] */ 8215 MEM32(edx + 0x8) = eax; /* 0x36126308: mov dword ptr [edx + 8], eax */ 8216 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3612630B: fld dword ptr [esi + 0xc] */ 8217 _st[0] += (double)*(float*)ADDR(0x36170EB0); /* 0x3612630E: fadd dword ptr [0x36170eb0] */ 8218 eax = MEM32(ebp + (-0x14)); /* 0x36126314: mov eax, dword ptr [ebp - 0x14] */ 8219 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8220 ecx = ecx + 1; /* 0x36126317: inc ecx */ 8221 _flag_k = FK_INC; 8222 MEM32(ebp + (-0xC)) = ecx; /* 0x36126318: mov dword ptr [ebp - 0xc], ecx */ 8223 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x200) = _v; } /* 0x3612631B: fstp dword ptr [eax + 0x200] */ 8224 MEM32(eax) = 2; /* 0x36126321: mov dword ptr [eax], 2 */ 8225 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1); 8226 MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) - 1; /* 0x36126327: dec dword ptr [ebp - 0x18] */ 8227 _flag_k = FK_DEC; 8228 goto L_36126334; /* 0x3612632A: jmp 0x36126334 */ 8229 L_3612632C: 8230 ecx = MEM32(esi + 0x38); /* 0x3612632C: mov ecx, dword ptr [esi + 0x38] */ 8231 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612632F: mov byte ptr [ecx + ebx + 0x1c], 0 */ 8232 L_36126334: 8233 edx = MEM32(ebp + (-0x14)); /* 0x36126334: mov edx, dword ptr [ebp - 0x14] */ 8234 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 8235 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8236 ebx = ebx + 0x20u; /* 0x36126337: add ebx, 0x20 */ 8237 _flag_k = FK_ADD; 8238 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 8239 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8240 edx = edx + 4; /* 0x3612633A: add edx, 4 */ 8241 _flag_k = FK_ADD; 8242 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 8243 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8244 edi = edi + 0xCu; /* 0x3612633D: add edi, 0xc */ 8245 _flag_k = FK_ADD; 8246 /* cmp ebx, 0x1000u */ /* 0x36126340: cmp ebx, 0x1000 */ 8247 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 8248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8249 _flag_k = FK_CMP; 8250 MEM32(ebp + (-0x14)) = edx; /* 0x36126346: mov dword ptr [ebp - 0x14], edx */ 8251 MEM32(ebp + (-0x1C)) = ebx; /* 0x36126349: mov dword ptr [ebp - 0x1c], ebx */ 8252 RECOMP_BACKEDGE(); 8253 if (CMP_L(_flag_a, _flag_b)) goto L_36125CB1; /* 0x3612634C: jl 0x36125cb1 */ 8254 L_36126352: 8255 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126352: mov al, byte ptr [esi + 0x163c] */ 8256 /* test LO8(eax), LO8(eax) */ /* 0x36126358: test al, al */ 8257 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8258 _cf = 0; 8259 _flag_k = FK_NARROW(FK_TEST, 24); 8260 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612635A: je 0x361275ac */ 8261 L_36126360: 8262 eax = MEM32(ebp + (-0xC)); /* 0x36126360: mov eax, dword ptr [ebp - 0xc] */ 8263 /* test eax, eax */ /* 0x36126363: test eax, eax */ 8264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8265 _cf = 0; 8266 _flag_k = FK_TEST; 8267 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126365: jne 0x361275ac */ 8268 L_3612636B: 8269 goto L_361275A8; /* 0x3612636B: jmp 0x361275a8 */ 8270 L_361275A8: 8271 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 8272 L_361275AC: 8273 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 8274 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 8275 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8276 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 8277 _flag_k = FK_ADD; 8278 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 8279 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8280 _cf = 0; 8281 _flag_k = FK_TEST; 8282 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 8283 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 8284 L_361275B7: 8285 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 8286 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 8287 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 8288 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 8289 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 8290 RECOMP_FLAGS_IN(); 8291 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 8292 PUSH32(esp, eax); /* 0x361275CD: push eax */ 8293 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 8294 RECOMP_FLAGS_IN(); 8295 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 8296 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 8297 RECOMP_FLAGS_IN(); 8298 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 8299 PUSH32(esp, eax); /* 0x361275E2: push eax */ 8300 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 8301 RECOMP_FLAGS_IN(); 8302 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 8303 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 8304 RECOMP_FLAGS_IN(); 8305 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 8306 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8307 _cf = (LO8(eax)) != 0; 8308 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 8309 _flag_k = FK_NARROW(FK_CMP, 24); 8310 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 8311 eax = _sc ? 0xFFFFFFFFu : 0; 8312 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8313 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8315 eax = eax + 1; /* 0x361275F6: inc eax */ 8316 _flag_k = FK_INC; 8317 PUSH32(esp, eax); /* 0x361275F7: push eax */ 8318 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 8319 RECOMP_FLAGS_IN(); 8320 L_361275FE: 8321 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 8322 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 8323 esp = ebp; /* 0x36127600: mov esp, ebp */ 8324 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 8325 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 8326 RECOMP_REGS_OUT(); 8327 } 8328 8329 void sub_36125D6E(void) { 8330 int _fpu_cmp = 0; 8331 uint32_t _cf = 0; 8332 int _df = 1; 8333 uint32_t _flag_k = FK_NONE; 8334 uint32_t _flag_a = 0, _flag_b = 0; 8335 uint32_t _itail_tgt = 0; 8336 RECOMP_REGS_LOCALS 8337 RECOMP_ENTER(0x36125D6Eu); 8338 8339 goto L_36125D6E; 8340 L_36125CB1: 8341 eax = MEM32(ebp + (-0x14)); /* 0x36125CB1: mov eax, dword ptr [ebp - 0x14] */ 8342 fp_push(*(float*)&MEM32(eax + 0x200)); /* 0x36125CB4: fld dword ptr [eax + 0x200] */ 8343 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36125CBA: fcomp dword ptr [esi + 0xc] */ 8344 fp_pop(); 8345 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125CBD: fnstsw ax */ 8346 /* test HI8(eax), 0x41u */ /* 0x36125CBF: test ah, 0x41 */ 8347 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 8348 _cf = 0; 8349 _flag_k = FK_NARROW(FK_TEST, 24); 8350 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612623A; /* 0x36125CC2: jne 0x3612623a */ 8351 L_36125CC8: 8352 ecx = MEM32(ebp + (-0x14)); /* 0x36125CC8: mov ecx, dword ptr [ebp - 0x14] */ 8353 eax = MEM32(ecx); /* 0x36125CCB: mov eax, dword ptr [ecx] */ 8354 edx = eax + eax * 2; /* 0x36125CCD: lea edx, [eax + eax*2] */ 8355 MEM32(ebp + (-0x8)) = eax; /* 0x36125CD0: mov dword ptr [ebp - 8], eax */ 8356 ecx = edi + (-0x4); /* 0x36125CD3: lea ecx, [edi - 4] */ 8357 eax = ecx; /* 0x36125CD6: mov eax, ecx */ 8358 ebx = MEM32(eax); /* 0x36125CD8: mov ebx, dword ptr [eax] */ 8359 MEM32(ebp + (-0x118)) = ebx; /* 0x36125CDA: mov dword ptr [ebp - 0x118], ebx */ 8360 fp_push(*(float*)&MEM32(ebp + (-0x118))); /* 0x36125CE0: fld dword ptr [ebp - 0x118] */ 8361 ebx = MEM32(eax + 0x4); /* 0x36125CE6: mov ebx, dword ptr [eax + 4] */ 8362 MEM32(ebp + (-0x114)) = ebx; /* 0x36125CE9: mov dword ptr [ebp - 0x114], ebx */ 8363 eax = MEM32(eax + 0x8); /* 0x36125CEF: mov eax, dword ptr [eax + 8] */ 8364 MEM32(ebp + (-0x110)) = eax; /* 0x36125CF2: mov dword ptr [ebp - 0x110], eax */ 8365 if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36125CF8: shl edx, 3 */ 8366 if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8367 edx = edx << 3u; /* 0x36125CF8: shl edx, 3 */ 8368 _st[0] -= (double)*(float*)ADDR(edx + 0x3630D6A0); /* 0x36125CFB: fsub dword ptr [edx + 0x3630d6a0] */ 8369 MEM32(ebp + (-0x4)) = edx; /* 0x36125D01: mov dword ptr [ebp - 4], edx */ 8370 fp_push(*(float*)&MEM32(ebp + (-0x114))); /* 0x36125D04: fld dword ptr [ebp - 0x114] */ 8371 eax = MEM32(ebp + (-0x4)); /* 0x36125D0A: mov eax, dword ptr [ebp - 4] */ 8372 _st[0] -= (double)*(float*)ADDR(edx + 0x3630D6A4); /* 0x36125D0D: fsub dword ptr [edx + 0x3630d6a4] */ 8373 edx = edx + 0x3630D6A0; /* 0x36125D13: lea edx, [edx + 0x3630d6a0] */ 8374 fp_push(*(float*)&MEM32(ebp + (-0x110))); /* 0x36125D19: fld dword ptr [ebp - 0x110] */ 8375 ebx = eax + 0x3630D6AC; /* 0x36125D1F: lea ebx, [eax + 0x3630d6ac] */ 8376 _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x36125D25: fsub dword ptr [edx + 8] */ 8377 eax = MEM32(ebp + (-0x8)); /* 0x36125D28: mov eax, dword ptr [ebp - 8] */ 8378 _st[0] *= (double)*(float*)ADDR(ebx + 0x8); /* 0x36125D2B: fmul dword ptr [ebx + 8] */ 8379 fp_xch(1); /* 0x36125D2E: fxch st(1) */ 8380 _st[0] *= (double)*(float*)ADDR(ebx + 0x4); /* 0x36125D30: fmul dword ptr [ebx + 4] */ 8381 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125D33: faddp st(1) */ 8382 fp_xch(1); /* 0x36125D35: fxch st(1) */ 8383 _st[0] *= (double)*(float*)ADDR(ebx); /* 0x36125D37: fmul dword ptr [ebx] */ 8384 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125D39: faddp st(1) */ 8385 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x36125D3B: fdiv dword ptr [eax*4 + 0x3630d688] */ 8386 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36125D42: fcom dword ptr [0x3617040c] */ 8387 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125D48: fnstsw ax */ 8388 /* test HI8(eax), 1 */ /* 0x36125D4A: test ah, 1 */ 8389 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8390 _cf = 0; 8391 _flag_k = FK_NARROW(FK_TEST, 24); 8392 if (TEST_Z(_flag_a, _flag_b)) goto L_36125D59; /* 0x36125D4D: je 0x36125d59 */ 8393 L_36125D4F: 8394 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125D4F: fstp st(0) */ 8395 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36125D51: fld dword ptr [0x3617040c] */ 8396 goto L_36125D6E; /* 0x36125D57: jmp 0x36125d6e */ 8397 L_36125D59: 8398 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36125D59: fcom dword ptr [0x36170380] */ 8399 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125D5F: fnstsw ax */ 8400 /* test HI8(eax), 0x41u */ /* 0x36125D61: test ah, 0x41 */ 8401 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 8402 _cf = 0; 8403 _flag_k = FK_NARROW(FK_TEST, 24); 8404 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125D6E; /* 0x36125D64: jne 0x36125d6e */ 8405 L_36125D66: 8406 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125D66: fstp st(0) */ 8407 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125D68: fld dword ptr [0x36170380] */ 8408 L_36125D6E: 8409 eax = MEM32(ebx); /* 0x36125D6E: mov eax, dword ptr [ebx] */ 8410 MEM32(ebp + (-0x80)) = eax; /* 0x36125D70: mov dword ptr [ebp - 0x80], eax */ 8411 fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x36125D73: fld dword ptr [ebp - 0x80] */ 8412 eax = MEM32(ebx + 0x4); /* 0x36125D76: mov eax, dword ptr [ebx + 4] */ 8413 _st[0] *= _st[1]; /* 0x36125D79: fmul st(1) */ 8414 MEM32(ebp + (-0x7C)) = eax; /* 0x36125D7B: mov dword ptr [ebp - 0x7c], eax */ 8415 eax = MEM32(ebx + 0x8); /* 0x36125D7E: mov eax, dword ptr [ebx + 8] */ 8416 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x36125D81: fstp dword ptr [ebp - 0x80] */ 8417 MEM32(ebp + (-0x78)) = eax; /* 0x36125D84: mov dword ptr [ebp - 0x78], eax */ 8418 eax = MEM32(edx); /* 0x36125D87: mov eax, dword ptr [edx] */ 8419 fp_push(_st[0]); /* 0x36125D89: fld st(0) */ 8420 MEM32(ebp + (-0x50)) = eax; /* 0x36125D8B: mov dword ptr [ebp - 0x50], eax */ 8421 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125D8E: fmul dword ptr [ebp - 0x7c] */ 8422 eax = MEM32(edx + 0x4); /* 0x36125D91: mov eax, dword ptr [edx + 4] */ 8423 edx = MEM32(edx + 0x8); /* 0x36125D94: mov edx, dword ptr [edx + 8] */ 8424 MEM32(ebp + (-0x4C)) = eax; /* 0x36125D97: mov dword ptr [ebp - 0x4c], eax */ 8425 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36125D9A: fstp dword ptr [ebp - 0x7c] */ 8426 MEM32(ebp + (-0x48)) = edx; /* 0x36125D9D: mov dword ptr [ebp - 0x48], edx */ 8427 ebx = 6; /* 0x36125DA0: mov ebx, 6 */ 8428 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36125DA5: fmul dword ptr [ebp - 0x78] */ 8429 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36125DA8: fld dword ptr [ebp - 0x50] */ 8430 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125DAB: fadd dword ptr [ebp - 0x80] */ 8431 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36125DAE: fstp dword ptr [ebp - 0x50] */ 8432 eax = MEM32(ebp + (-0x50)); /* 0x36125DB1: mov eax, dword ptr [ebp - 0x50] */ 8433 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36125DB4: fld dword ptr [ebp - 0x4c] */ 8434 MEM32(ebp + (-0xC0)) = eax; /* 0x36125DB7: mov dword ptr [ebp - 0xc0], eax */ 8435 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125DBD: fadd dword ptr [ebp - 0x7c] */ 8436 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36125DC0: fstp dword ptr [ebp - 0x4c] */ 8437 edx = MEM32(ebp + (-0x4C)); /* 0x36125DC3: mov edx, dword ptr [ebp - 0x4c] */ 8438 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36125DC6: fld dword ptr [ebp - 0x48] */ 8439 MEM32(ebp + (-0xBC)) = edx; /* 0x36125DC9: mov dword ptr [ebp - 0xbc], edx */ 8440 edx = MEM32(ebp + (-0x84)); /* 0x36125DCF: mov edx, dword ptr [ebp - 0x84] */ 8441 _st[0] += _st[1]; /* 0x36125DD5: fadd st(1) */ 8442 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36125DD7: fstp dword ptr [ebp - 0x48] */ 8443 eax = MEM32(ebp + (-0x48)); /* 0x36125DDA: mov eax, dword ptr [ebp - 0x48] */ 8444 MEM32(ebp + (-0xB8)) = eax; /* 0x36125DDD: mov dword ptr [ebp - 0xb8], eax */ 8445 eax = MEM32(ebp + (-0x8)); /* 0x36125DE3: mov eax, dword ptr [ebp - 8] */ 8446 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125DE6: fstp st(0) */ 8447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8449 eax = eax + edx; /* 0x36125DE8: add eax, edx */ 8450 _flag_k = FK_ADD; 8451 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36125DEA: cdq */ 8452 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x36125DEB: idiv ebx */ 8453 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 8454 else { eax = 0; edx = 0; } } 8455 MEM32(ebp + (-0x8)) = edx; /* 0x36125DED: mov dword ptr [ebp - 8], edx */ 8456 ebx = edx + edx * 2; /* 0x36125DF0: lea ebx, [edx + edx*2] */ 8457 edx = ecx; /* 0x36125DF3: mov edx, ecx */ 8458 eax = MEM32(edx); /* 0x36125DF5: mov eax, dword ptr [edx] */ 8459 MEM32(ebp + (-0xE8)) = eax; /* 0x36125DF7: mov dword ptr [ebp - 0xe8], eax */ 8460 fp_push(*(float*)&MEM32(ebp + (-0xE8))); /* 0x36125DFD: fld dword ptr [ebp - 0xe8] */ 8461 eax = MEM32(edx + 0x4); /* 0x36125E03: mov eax, dword ptr [edx + 4] */ 8462 MEM32(ebp + (-0xE4)) = eax; /* 0x36125E06: mov dword ptr [ebp - 0xe4], eax */ 8463 edx = MEM32(edx + 0x8); /* 0x36125E0C: mov edx, dword ptr [edx + 8] */ 8464 MEM32(ebp + (-0xE0)) = edx; /* 0x36125E0F: mov dword ptr [ebp - 0xe0], edx */ 8465 if (3u) _cf = (((ebx) >> 29) & 1u); /* 0x36125E15: shl ebx, 3 */ 8466 if (3u) { _flag_a = recomp_flags_pack((ebx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8467 ebx = ebx << 3u; /* 0x36125E15: shl ebx, 3 */ 8468 _st[0] -= (double)*(float*)ADDR(ebx + 0x3630D6A0); /* 0x36125E18: fsub dword ptr [ebx + 0x3630d6a0] */ 8469 MEM32(ebp + (-0x4)) = ebx; /* 0x36125E1E: mov dword ptr [ebp - 4], ebx */ 8470 fp_push(*(float*)&MEM32(ebp + (-0xE4))); /* 0x36125E21: fld dword ptr [ebp - 0xe4] */ 8471 eax = MEM32(ebp + (-0x4)); /* 0x36125E27: mov eax, dword ptr [ebp - 4] */ 8472 _st[0] -= (double)*(float*)ADDR(ebx + 0x3630D6A4); /* 0x36125E2A: fsub dword ptr [ebx + 0x3630d6a4] */ 8473 ebx = ebx + 0x3630D6A0; /* 0x36125E30: lea ebx, [ebx + 0x3630d6a0] */ 8474 fp_push(*(float*)&MEM32(ebp + (-0xE0))); /* 0x36125E36: fld dword ptr [ebp - 0xe0] */ 8475 edx = eax + 0x3630D6AC; /* 0x36125E3C: lea edx, [eax + 0x3630d6ac] */ 8476 _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x36125E42: fsub dword ptr [ebx + 8] */ 8477 eax = MEM32(ebp + (-0x8)); /* 0x36125E45: mov eax, dword ptr [ebp - 8] */ 8478 _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x36125E48: fmul dword ptr [edx + 8] */ 8479 fp_xch(1); /* 0x36125E4B: fxch st(1) */ 8480 _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x36125E4D: fmul dword ptr [edx + 4] */ 8481 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125E50: faddp st(1) */ 8482 fp_xch(1); /* 0x36125E52: fxch st(1) */ 8483 _st[0] *= (double)*(float*)ADDR(edx); /* 0x36125E54: fmul dword ptr [edx] */ 8484 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125E56: faddp st(1) */ 8485 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x36125E58: fdiv dword ptr [eax*4 + 0x3630d688] */ 8486 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36125E5F: fcom dword ptr [0x3617040c] */ 8487 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125E65: fnstsw ax */ 8488 /* test HI8(eax), 1 */ /* 0x36125E67: test ah, 1 */ 8489 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8490 _cf = 0; 8491 _flag_k = FK_NARROW(FK_TEST, 24); 8492 if (TEST_Z(_flag_a, _flag_b)) goto L_36125E76; /* 0x36125E6A: je 0x36125e76 */ 8493 L_36125E6C: 8494 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125E6C: fstp st(0) */ 8495 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36125E6E: fld dword ptr [0x3617040c] */ 8496 goto L_36125E8B; /* 0x36125E74: jmp 0x36125e8b */ 8497 L_36125E76: 8498 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36125E76: fcom dword ptr [0x36170380] */ 8499 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125E7C: fnstsw ax */ 8500 /* test HI8(eax), 0x41u */ /* 0x36125E7E: test ah, 0x41 */ 8501 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 8502 _cf = 0; 8503 _flag_k = FK_NARROW(FK_TEST, 24); 8504 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125E8B; /* 0x36125E81: jne 0x36125e8b */ 8505 L_36125E83: 8506 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125E83: fstp st(0) */ 8507 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125E85: fld dword ptr [0x36170380] */ 8508 L_36125E8B: 8509 eax = MEM32(edx); /* 0x36125E8B: mov eax, dword ptr [edx] */ 8510 MEM32(ebp + (-0x9C)) = eax; /* 0x36125E8D: mov dword ptr [ebp - 0x9c], eax */ 8511 fp_push(*(float*)&MEM32(ebp + (-0x9C))); /* 0x36125E93: fld dword ptr [ebp - 0x9c] */ 8512 _st[0] *= _st[1]; /* 0x36125E99: fmul st(1) */ 8513 eax = MEM32(edx + 0x4); /* 0x36125E9B: mov eax, dword ptr [edx + 4] */ 8514 edx = MEM32(edx + 0x8); /* 0x36125E9E: mov edx, dword ptr [edx + 8] */ 8515 MEM32(ebp + (-0x98)) = eax; /* 0x36125EA1: mov dword ptr [ebp - 0x98], eax */ 8516 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36125EA7: fstp dword ptr [ebp - 0x9c] */ 8517 eax = MEM32(ebx); /* 0x36125EAD: mov eax, dword ptr [ebx] */ 8518 MEM32(ebp + (-0xA8)) = eax; /* 0x36125EAF: mov dword ptr [ebp - 0xa8], eax */ 8519 fp_push(_st[0]); /* 0x36125EB5: fld st(0) */ 8520 eax = MEM32(ebx + 0x8); /* 0x36125EB7: mov eax, dword ptr [ebx + 8] */ 8521 _st[0] *= (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125EBA: fmul dword ptr [ebp - 0x98] */ 8522 MEM32(ebp + (-0x94)) = edx; /* 0x36125EC0: mov dword ptr [ebp - 0x94], edx */ 8523 edx = MEM32(ebx + 0x4); /* 0x36125EC6: mov edx, dword ptr [ebx + 4] */ 8524 MEM32(ebp + (-0xA4)) = edx; /* 0x36125EC9: mov dword ptr [ebp - 0xa4], edx */ 8525 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x36125ECF: fstp dword ptr [ebp - 0x98] */ 8526 MEM32(ebp + (-0xA0)) = eax; /* 0x36125ED5: mov dword ptr [ebp - 0xa0], eax */ 8527 _st[0] *= (double)*(float*)ADDR(ebp + (-0x94)); /* 0x36125EDB: fmul dword ptr [ebp - 0x94] */ 8528 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36125EE1: fld dword ptr [ebp - 0xa8] */ 8529 _st[0] += (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x36125EE7: fadd dword ptr [ebp - 0x9c] */ 8530 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x36125EED: fstp dword ptr [ebp - 0xa8] */ 8531 eax = MEM32(ebp + (-0xA8)); /* 0x36125EF3: mov eax, dword ptr [ebp - 0xa8] */ 8532 fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x36125EF9: fld dword ptr [ebp - 0xa4] */ 8533 MEM32(ebp + (-0xF4)) = eax; /* 0x36125EFF: mov dword ptr [ebp - 0xf4], eax */ 8534 _st[0] += (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125F05: fadd dword ptr [ebp - 0x98] */ 8535 MEM32(ebp + (-0x128)) = eax; /* 0x36125F0B: mov dword ptr [ebp - 0x128], eax */ 8536 eax = MEM32(ebp + (-0x50)); /* 0x36125F11: mov eax, dword ptr [ebp - 0x50] */ 8537 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36125F14: fstp dword ptr [ebp - 0xa4] */ 8538 edx = MEM32(ebp + (-0xA4)); /* 0x36125F1A: mov edx, dword ptr [ebp - 0xa4] */ 8539 fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x36125F20: fld dword ptr [ebp - 0xa0] */ 8540 MEM32(ebp + (-0x124)) = edx; /* 0x36125F26: mov dword ptr [ebp - 0x124], edx */ 8541 _st[0] += _st[1]; /* 0x36125F2C: fadd st(1) */ 8542 MEM32(ebp + (-0xF0)) = edx; /* 0x36125F2E: mov dword ptr [ebp - 0xf0], edx */ 8543 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36125F34: fstp dword ptr [ebp - 0xa0] */ 8544 ebx = MEM32(ebp + (-0xA0)); /* 0x36125F3A: mov ebx, dword ptr [ebp - 0xa0] */ 8545 edx = ebx; /* 0x36125F40: mov edx, ebx */ 8546 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125F42: fstp st(0) */ 8547 MEM32(ebp + (-0x120)) = edx; /* 0x36125F44: mov dword ptr [ebp - 0x120], edx */ 8548 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36125F4A: fld dword ptr [ebp - 0xa8] */ 8549 edx = MEM32(ebp + (-0x4C)); /* 0x36125F50: mov edx, dword ptr [ebp - 0x4c] */ 8550 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36125F53: fsub dword ptr [ecx] */ 8551 fp_push(*(float*)&MEM32(ebp + (-0x124))); /* 0x36125F55: fld dword ptr [ebp - 0x124] */ 8552 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36125F5B: fsub dword ptr [edi] */ 8553 fp_push(*(float*)&MEM32(ebp + (-0x120))); /* 0x36125F5D: fld dword ptr [ebp - 0x120] */ 8554 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36125F63: fsub dword ptr [edi + 4] */ 8555 MEM32(ebp + (-0x68)) = eax; /* 0x36125F66: mov dword ptr [ebp - 0x68], eax */ 8556 eax = MEM32(ebp + (-0x48)); /* 0x36125F69: mov eax, dword ptr [ebp - 0x48] */ 8557 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36125F6C: fld dword ptr [ebp - 0x50] */ 8558 MEM32(ebp + (-0x60)) = eax; /* 0x36125F6F: mov dword ptr [ebp - 0x60], eax */ 8559 MEM32(ebp + (-0x64)) = edx; /* 0x36125F72: mov dword ptr [ebp - 0x64], edx */ 8560 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36125F75: fsub dword ptr [ecx] */ 8561 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36125F77: fld dword ptr [ebp - 0x64] */ 8562 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36125F7A: fsub dword ptr [edi] */ 8563 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36125F7C: fld dword ptr [ebp - 0x60] */ 8564 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36125F7F: fsub dword ptr [edi + 4] */ 8565 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x36125F82: fstp dword ptr [ebp - 0x60] */ 8566 fp_push(_st[2]); /* 0x36125F85: fld st(2) */ 8567 _st[0] *= _st[3]; /* 0x36125F87: fmul st(3) */ 8568 fp_push(_st[4]); /* 0x36125F89: fld st(4) */ 8569 _st[0] *= _st[5]; /* 0x36125F8B: fmul st(5) */ 8570 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F8D: faddp st(1) */ 8571 fp_push(_st[5]); /* 0x36125F8F: fld st(5) */ 8572 _st[0] *= _st[6]; /* 0x36125F91: fmul st(6) */ 8573 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F93: faddp st(1) */ 8574 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36125F95: fld dword ptr [ebp - 0x60] */ 8575 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x36125F98: fmul dword ptr [ebp - 0x60] */ 8576 fp_push(_st[2]); /* 0x36125F9B: fld st(2) */ 8577 _st[0] *= _st[3]; /* 0x36125F9D: fmul st(3) */ 8578 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F9F: faddp st(1) */ 8579 fp_push(_st[3]); /* 0x36125FA1: fld st(3) */ 8580 _st[0] *= _st[4]; /* 0x36125FA3: fmul st(4) */ 8581 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125FA5: faddp st(1) */ 8582 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x36125FA7: fcompp */ 8583 fp_pop(); fp_pop(); 8584 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FA9: fstp st(0) */ 8585 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FAB: fstp st(0) */ 8586 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FAD: fstp st(0) */ 8587 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125FAF: fnstsw ax */ 8588 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FB1: fstp st(0) */ 8589 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FB3: fstp st(0) */ 8590 /* test HI8(eax), 0x41u */ /* 0x36125FB5: test ah, 0x41 */ 8591 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 8592 _cf = 0; 8593 _flag_k = FK_NARROW(FK_TEST, 24); 8594 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125FE0; /* 0x36125FB8: jne 0x36125fe0 */ 8595 L_36125FBA: 8596 edx = MEM32(ebp + (-0x14)); /* 0x36125FBA: mov edx, dword ptr [ebp - 0x14] */ 8597 eax = MEM32(ebp + (-0x8)); /* 0x36125FBD: mov eax, dword ptr [ebp - 8] */ 8598 MEM32(edx) = eax; /* 0x36125FC0: mov dword ptr [edx], eax */ 8599 edx = MEM32(ebp + (-0xF4)); /* 0x36125FC2: mov edx, dword ptr [ebp - 0xf4] */ 8600 eax = MEM32(ebp + (-0xF0)); /* 0x36125FC8: mov eax, dword ptr [ebp - 0xf0] */ 8601 MEM32(ebp + (-0xC0)) = edx; /* 0x36125FCE: mov dword ptr [ebp - 0xc0], edx */ 8602 MEM32(ebp + (-0xBC)) = eax; /* 0x36125FD4: mov dword ptr [ebp - 0xbc], eax */ 8603 MEM32(ebp + (-0xB8)) = ebx; /* 0x36125FDA: mov dword ptr [ebp - 0xb8], ebx */ 8604 L_36125FE0: 8605 eax = edi + (-0x604); /* 0x36125FE0: lea eax, [edi - 0x604] */ 8606 edx = eax; /* 0x36125FE6: mov edx, eax */ 8607 ebx = MEM32(edx); /* 0x36125FE8: mov ebx, dword ptr [edx] */ 8608 MEM32(ebp + (-0xDC)) = ebx; /* 0x36125FEA: mov dword ptr [ebp - 0xdc], ebx */ 8609 fp_push(*(float*)&MEM32(ebp + (-0xDC))); /* 0x36125FF0: fld dword ptr [ebp - 0xdc] */ 8610 ebx = MEM32(edx + 0x4); /* 0x36125FF6: mov ebx, dword ptr [edx + 4] */ 8611 _st[0] += _st[0]; /* 0x36125FF9: fadd st(0), st(0) */ 8612 MEM32(ebp + (-0xD8)) = ebx; /* 0x36125FFB: mov dword ptr [ebp - 0xd8], ebx */ 8613 fp_push(*(float*)&MEM32(ebp + (-0xD8))); /* 0x36126001: fld dword ptr [ebp - 0xd8] */ 8614 edx = MEM32(edx + 0x8); /* 0x36126007: mov edx, dword ptr [edx + 8] */ 8615 _st[0] += _st[0]; /* 0x3612600A: fadd st(0), st(0) */ 8616 MEM32(ebp + (-0xD4)) = edx; /* 0x3612600C: mov dword ptr [ebp - 0xd4], edx */ 8617 edx = MEM32(ebp + (-0xC0)); /* 0x36126012: mov edx, dword ptr [ebp - 0xc0] */ 8618 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36126018: fstp dword ptr [ebp - 0xd8] */ 8619 MEM32(ebp + (-0x28)) = edx; /* 0x3612601E: mov dword ptr [ebp - 0x28], edx */ 8620 fp_push(*(float*)&MEM32(ebp + (-0xD4))); /* 0x36126021: fld dword ptr [ebp - 0xd4] */ 8621 edx = MEM32(ebp + (-0xBC)); /* 0x36126027: mov edx, dword ptr [ebp - 0xbc] */ 8622 _st[0] += _st[0]; /* 0x3612602D: fadd st(0), st(0) */ 8623 MEM32(ebp + (-0x24)) = edx; /* 0x3612602F: mov dword ptr [ebp - 0x24], edx */ 8624 edx = MEM32(ebp + (-0xB8)); /* 0x36126032: mov edx, dword ptr [ebp - 0xb8] */ 8625 MEM32(ebp + (-0x20)) = edx; /* 0x36126038: mov dword ptr [ebp - 0x20], edx */ 8626 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3612603B: fstp dword ptr [ebp - 0xd4] */ 8627 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36126041: fld dword ptr [ebp - 0xc0] */ 8628 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36126047: fsub dword ptr [ecx] */ 8629 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36126049: fstp dword ptr [ebp - 0x28] */ 8630 edx = MEM32(ebp + (-0x28)); /* 0x3612604C: mov edx, dword ptr [ebp - 0x28] */ 8631 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3612604F: fld dword ptr [ebp - 0x24] */ 8632 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36126052: fsub dword ptr [edi] */ 8633 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36126054: fstp dword ptr [ebp - 0x24] */ 8634 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36126057: fld dword ptr [ebp - 0x20] */ 8635 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3612605A: fsub dword ptr [edi + 4] */ 8636 MEM32(ebp + (-0x74)) = edx; /* 0x3612605D: mov dword ptr [ebp - 0x74], edx */ 8637 edx = MEM32(ebp + (-0x24)); /* 0x36126060: mov edx, dword ptr [ebp - 0x24] */ 8638 MEM32(ebp + (-0x70)) = edx; /* 0x36126063: mov dword ptr [ebp - 0x70], edx */ 8639 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36126066: fstp dword ptr [ebp - 0x20] */ 8640 edx = MEM32(ebp + (-0x20)); /* 0x36126069: mov edx, dword ptr [ebp - 0x20] */ 8641 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3612606C: fld dword ptr [ebp - 0x28] */ 8642 MEM32(ebp + (-0x6C)) = edx; /* 0x3612606F: mov dword ptr [ebp - 0x6c], edx */ 8643 _st[0] -= _st[1]; /* 0x36126072: fsub st(1) */ 8644 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36126074: fstp dword ptr [ebp - 0x74] */ 8645 edx = MEM32(ebp + (-0x74)); /* 0x36126077: mov edx, dword ptr [ebp - 0x74] */ 8646 MEM32(ebp + (-0xB4)) = edx; /* 0x3612607A: mov dword ptr [ebp - 0xb4], edx */ 8647 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126080: fstp st(0) */ 8648 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36126082: fld dword ptr [ebp - 0x70] */ 8649 _st[0] -= (double)*(float*)ADDR(ebp + (-0xD8)); /* 0x36126085: fsub dword ptr [ebp - 0xd8] */ 8650 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3612608B: fstp dword ptr [ebp - 0x70] */ 8651 edx = MEM32(ebp + (-0x70)); /* 0x3612608E: mov edx, dword ptr [ebp - 0x70] */ 8652 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36126091: fld dword ptr [ebp - 0x6c] */ 8653 MEM32(ebp + (-0xB0)) = edx; /* 0x36126094: mov dword ptr [ebp - 0xb0], edx */ 8654 _st[0] -= (double)*(float*)ADDR(ebp + (-0xD4)); /* 0x3612609A: fsub dword ptr [ebp - 0xd4] */ 8655 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x361260A0: fstp dword ptr [ebp - 0x6c] */ 8656 edx = MEM32(ebp + (-0x6C)); /* 0x361260A3: mov edx, dword ptr [ebp - 0x6c] */ 8657 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x361260A6: fld dword ptr [ebp - 0x74] */ 8658 MEM32(ebp + (-0xAC)) = edx; /* 0x361260A9: mov dword ptr [ebp - 0xac], edx */ 8659 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260AF: fmul dword ptr [0x36170d68] */ 8660 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x361260B5: fstp dword ptr [ebp - 0xb4] */ 8661 edx = MEM32(ebp + (-0xB4)); /* 0x361260BB: mov edx, dword ptr [ebp - 0xb4] */ 8662 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361260C1: fld dword ptr [ebp - 0xb0] */ 8663 MEM32(ebp + (-0x10C)) = edx; /* 0x361260C7: mov dword ptr [ebp - 0x10c], edx */ 8664 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260CD: fmul dword ptr [0x36170d68] */ 8665 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x361260D3: fstp dword ptr [ebp - 0xb0] */ 8666 edx = MEM32(ebp + (-0xB0)); /* 0x361260D9: mov edx, dword ptr [ebp - 0xb0] */ 8667 fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361260DF: fld dword ptr [ebp - 0xac] */ 8668 MEM32(ebp + (-0x108)) = edx; /* 0x361260E5: mov dword ptr [ebp - 0x108], edx */ 8669 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260EB: fmul dword ptr [0x36170d68] */ 8670 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361260F1: fstp dword ptr [ebp - 0xac] */ 8671 edx = MEM32(ebp + (-0xAC)); /* 0x361260F7: mov edx, dword ptr [ebp - 0xac] */ 8672 fp_push(*(float*)&MEM32(ebp + (-0xB4))); /* 0x361260FD: fld dword ptr [ebp - 0xb4] */ 8673 MEM32(ebp + (-0x104)) = edx; /* 0x36126103: mov dword ptr [ebp - 0x104], edx */ 8674 _st[0] += (double)*(float*)ADDR(eax); /* 0x36126109: fadd dword ptr [eax] */ 8675 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3612610B: fstp dword ptr [eax] */ 8676 fp_push(*(float*)&MEM32(ebp + (-0x108))); /* 0x3612610D: fld dword ptr [ebp - 0x108] */ 8677 _st[0] += (double)*(float*)ADDR(edi + (-0x600)); /* 0x36126113: fadd dword ptr [edi - 0x600] */ 8678 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x600)) = _v; } /* 0x36126119: fstp dword ptr [edi - 0x600] */ 8679 fp_push(*(float*)&MEM32(ebp + (-0x104))); /* 0x3612611F: fld dword ptr [ebp - 0x104] */ 8680 _st[0] += (double)*(float*)ADDR(edi + (-0x5FC)); /* 0x36126125: fadd dword ptr [edi - 0x5fc] */ 8681 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x5FC)) = _v; } /* 0x3612612B: fstp dword ptr [edi - 0x5fc] */ 8682 edx = MEM32(eax); /* 0x36126131: mov edx, dword ptr [eax] */ 8683 MEM32(ebp + (-0x44)) = edx; /* 0x36126133: mov dword ptr [ebp - 0x44], edx */ 8684 edx = MEM32(eax + 0x4); /* 0x36126136: mov edx, dword ptr [eax + 4] */ 8685 MEM32(ebp + (-0x40)) = edx; /* 0x36126139: mov dword ptr [ebp - 0x40], edx */ 8686 eax = MEM32(eax + 0x8); /* 0x3612613C: mov eax, dword ptr [eax + 8] */ 8687 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3612613F: fld dword ptr [ebp - 0x44] */ 8688 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126142: fmul dword ptr [0x36170d68] */ 8689 MEM32(ebp + (-0x3C)) = eax; /* 0x36126148: mov dword ptr [ebp - 0x3c], eax */ 8690 ebx = MEM32(ebp + (-0x1C)); /* 0x3612614B: mov ebx, dword ptr [ebp - 0x1c] */ 8691 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3612614E: fstp dword ptr [ebp - 0x44] */ 8692 edx = MEM32(ebp + (-0x44)); /* 0x36126151: mov edx, dword ptr [ebp - 0x44] */ 8693 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36126154: fld dword ptr [ebp - 0x40] */ 8694 MEM32(ebp + (-0x100)) = edx; /* 0x36126157: mov dword ptr [ebp - 0x100], edx */ 8695 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612615D: fmul dword ptr [0x36170d68] */ 8696 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36126163: fstp dword ptr [ebp - 0x40] */ 8697 eax = MEM32(ebp + (-0x40)); /* 0x36126166: mov eax, dword ptr [ebp - 0x40] */ 8698 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36126169: fld dword ptr [ebp - 0x3c] */ 8699 MEM32(ebp + (-0xFC)) = eax; /* 0x3612616C: mov dword ptr [ebp - 0xfc], eax */ 8700 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126172: fmul dword ptr [0x36170d68] */ 8701 eax = ebx; /* 0x36126178: mov eax, ebx */ 8702 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612617A: fstp dword ptr [ebp - 0x3c] */ 8703 edx = MEM32(ebp + (-0x3C)); /* 0x3612617D: mov edx, dword ptr [ebp - 0x3c] */ 8704 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126180: fld dword ptr [ebp - 0x44] */ 8705 MEM32(ebp + (-0xF8)) = edx; /* 0x36126183: mov dword ptr [ebp - 0xf8], edx */ 8706 _st[0] += (double)*(float*)ADDR(ecx); /* 0x36126189: fadd dword ptr [ecx] */ 8707 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x3612618B: fstp dword ptr [ecx] */ 8708 fp_push(*(float*)&MEM32(ebp + (-0xFC))); /* 0x3612618D: fld dword ptr [ebp - 0xfc] */ 8709 _st[0] += (double)*(float*)ADDR(edi); /* 0x36126193: fadd dword ptr [edi] */ 8710 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36126195: fstp dword ptr [edi] */ 8711 fp_push(*(float*)&MEM32(ebp + (-0xF8))); /* 0x36126197: fld dword ptr [ebp - 0xf8] */ 8712 _st[0] += (double)*(float*)ADDR(edi + 0x4); /* 0x3612619D: fadd dword ptr [edi + 4] */ 8713 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x361261A0: fstp dword ptr [edi + 4] */ 8714 edx = MEM32(esi + 0x38); /* 0x361261A3: mov edx, dword ptr [esi + 0x38] */ 8715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8716 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8717 eax = eax + edx; /* 0x361261A6: add eax, edx */ 8718 _flag_k = FK_ADD; 8719 edx = MEM32(ecx); /* 0x361261A8: mov edx, dword ptr [ecx] */ 8720 MEM32(eax) = edx; /* 0x361261AA: mov dword ptr [eax], edx */ 8721 edx = MEM32(ecx + 0x4); /* 0x361261AC: mov edx, dword ptr [ecx + 4] */ 8722 MEM32(eax + 0x4) = edx; /* 0x361261AF: mov dword ptr [eax + 4], edx */ 8723 ecx = MEM32(ecx + 0x8); /* 0x361261B2: mov ecx, dword ptr [ecx + 8] */ 8724 edx = MEM32(ebp + (-0x14)); /* 0x361261B5: mov edx, dword ptr [ebp - 0x14] */ 8725 MEM32(eax + 0x8) = ecx; /* 0x361261B8: mov dword ptr [eax + 8], ecx */ 8726 fp_push(*(float*)&MEM32(edx + 0x200)); /* 0x361261BB: fld dword ptr [edx + 0x200] */ 8727 _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x361261C1: fsub dword ptr [esi + 0xc] */ 8728 _st[0] = (double)*(float*)ADDR(0x36170EB0) - _st[0]; /* 0x361261C4: fsubr dword ptr [0x36170eb0] */ 8729 _st[0] *= (double)*(float*)ADDR(0x36177778); /* 0x361261CA: fmul dword ptr [0x36177778] */ 8730 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361261D0: fst dword ptr [ebp - 4] */ 8731 _st[0] *= *(double*)ADDR(0x36177770); /* 0x361261D3: fmul qword ptr [0x36177770] */ 8732 RECOMP_ICALL(0x3615FD8Cu); /* 0x361261D9: call 0x3615fd8c */ /* not lifted */ 8733 RECOMP_FLAGS_IN(); 8734 edx = MEM32(ebp + (-0x4)); /* 0x361261DE: mov edx, dword ptr [ebp - 4] */ 8735 ecx = 0xFu; /* 0x361261E1: mov ecx, 0xf */ 8736 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8738 ecx = ecx - eax; /* 0x361261E6: sub ecx, eax */ 8739 _flag_k = FK_CMP; 8740 fp_push((double)(int32_t)MEM32(ecx * 4 + 0x362E5AC0)); /* 0x361261E8: fild dword ptr [ecx*4 + 0x362e5ac0] */ 8741 eax = MEM32(esi + 0x38); /* 0x361261EF: mov eax, dword ptr [esi + 0x38] */ 8742 MEM32(ebp + (-0x1C)) = ecx; /* 0x361261F2: mov dword ptr [ebp - 0x1c], ecx */ 8743 PUSH32(esp, edx); /* 0x361261F5: push edx */ 8744 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361261F6: fmul dword ptr [ebp - 4] */ 8745 _st[0] *= (double)*(float*)ADDR(0x36170850); /* 0x361261F9: fmul dword ptr [0x36170850] */ 8746 { float _v = (float)_st[0]; *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x361261FF: fst dword ptr [ebx + eax + 0xc] */ 8747 ecx = MEM32(esi + 0x38); /* 0x36126203: mov ecx, dword ptr [esi + 0x38] */ 8748 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x36126206: fstp dword ptr [ebx + ecx + 0x10] */ 8749 ecx = esi + 0x168C; /* 0x3612620A: lea ecx, [esi + 0x168c] */ 8750 RECOMP_ICALL(0x36137D80u); /* 0x36126210: call 0x36137d80 */ /* not lifted */ 8751 RECOMP_FLAGS_IN(); 8752 ecx = MEM32(esi + 0x38); /* 0x36126215: mov ecx, dword ptr [esi + 0x38] */ 8753 MEM32(ebx + ecx + 0x14) = eax; /* 0x36126218: mov dword ptr [ebx + ecx + 0x14], eax */ 8754 edx = MEM32(esi + 0x38); /* 0x3612621C: mov edx, dword ptr [esi + 0x38] */ 8755 eax = MEM32(ebp + (-0x1C)); /* 0x3612621F: mov eax, dword ptr [ebp - 0x1c] */ 8756 MEM32(ebx + edx + 0x18) = eax; /* 0x36126222: mov dword ptr [ebx + edx + 0x18], eax */ 8757 eax = MEM32(ebp + (-0xC)); /* 0x36126226: mov eax, dword ptr [ebp - 0xc] */ 8758 ecx = MEM32(esi + 0x38); /* 0x36126229: mov ecx, dword ptr [esi + 0x38] */ 8759 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8760 eax = eax + 1; /* 0x3612622C: inc eax */ 8761 _flag_k = FK_INC; 8762 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x3612622D: mov byte ptr [ebx + ecx + 0x1c], 1 */ 8763 MEM32(ebp + (-0xC)) = eax; /* 0x36126232: mov dword ptr [ebp - 0xc], eax */ 8764 goto L_36126334; /* 0x36126235: jmp 0x36126334 */ 8765 L_3612623A: 8766 eax = MEM32(ebp + (-0x18)); /* 0x3612623A: mov eax, dword ptr [ebp - 0x18] */ 8767 /* test eax, eax */ /* 0x3612623D: test eax, eax */ 8768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8769 _cf = 0; 8770 _flag_k = FK_TEST; 8771 if (TEST_Z(_flag_a, _flag_b)) goto L_3612632C; /* 0x3612623F: je 0x3612632c */ 8772 L_36126245: 8773 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126245: mov al, byte ptr [esi + 0x163c] */ 8774 /* test LO8(eax), LO8(eax) */ /* 0x3612624B: test al, al */ 8775 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8776 _cf = 0; 8777 _flag_k = FK_NARROW(FK_TEST, 24); 8778 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612632C; /* 0x3612624D: jne 0x3612632c */ 8779 L_36126253: 8780 MEM32(ebp + (-0xD0)) = 0; /* 0x36126253: mov dword ptr [ebp - 0xd0], 0 */ 8781 eax = MEM32(ebp + (-0xD0)); /* 0x3612625D: mov eax, dword ptr [ebp - 0xd0] */ 8782 MEM32(ebp + (-0xCC)) = 0; /* 0x36126263: mov dword ptr [ebp - 0xcc], 0 */ 8783 MEM32(ebp + (-0xC8)) = 0; /* 0x3612626D: mov dword ptr [ebp - 0xc8], 0 */ 8784 edx = edi + (-0x604); /* 0x36126277: lea edx, [edi - 0x604] */ 8785 MEM32(edx) = eax; /* 0x3612627D: mov dword ptr [edx], eax */ 8786 ecx = MEM32(ebp + (-0xCC)); /* 0x3612627F: mov ecx, dword ptr [ebp - 0xcc] */ 8787 MEM32(edx + 0x4) = ecx; /* 0x36126285: mov dword ptr [edx + 4], ecx */ 8788 eax = MEM32(ebp + (-0xC8)); /* 0x36126288: mov eax, dword ptr [ebp - 0xc8] */ 8789 MEM32(edx + 0x8) = eax; /* 0x3612628E: mov dword ptr [edx + 8], eax */ 8790 ecx = ebp + (-0x90); /* 0x36126291: lea ecx, [ebp - 0x90] */ 8791 PUSH32(esp, ecx); /* 0x36126297: push ecx */ 8792 MEM32(ebp + (-0x90)) = 0; /* 0x36126298: mov dword ptr [ebp - 0x90], 0 */ 8793 MEM32(ebp + (-0x8C)) = 0; /* 0x361262A2: mov dword ptr [ebp - 0x8c], 0 */ 8794 MEM32(ebp + (-0x88)) = 0; /* 0x361262AC: mov dword ptr [ebp - 0x88], 0 */ 8795 RECOMP_ICALL(0x360FCA70u); /* 0x361262B6: call 0x360fca70 */ /* not lifted */ 8796 RECOMP_FLAGS_IN(); 8797 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361262BB: fld dword ptr [ebp - 0x38] */ 8798 _st[0] += (double)*(float*)ADDR(ebp + (-0x90)); /* 0x361262BE: fadd dword ptr [ebp - 0x90] */ 8799 edx = MEM32(ebp + (-0x38)); /* 0x361262C4: mov edx, dword ptr [ebp - 0x38] */ 8800 eax = MEM32(ebp + (-0x34)); /* 0x361262C7: mov eax, dword ptr [ebp - 0x34] */ 8801 ecx = MEM32(ebp + (-0x30)); /* 0x361262CA: mov ecx, dword ptr [ebp - 0x30] */ 8802 MEM32(ebp + (-0x58)) = eax; /* 0x361262CD: mov dword ptr [ebp - 0x58], eax */ 8803 MEM32(ebp + (-0x5C)) = edx; /* 0x361262D0: mov dword ptr [ebp - 0x5c], edx */ 8804 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x361262D3: fstp dword ptr [ebp - 0x5c] */ 8805 fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x361262D6: fld dword ptr [ebp - 0x8c] */ 8806 eax = MEM32(ebp + (-0x5C)); /* 0x361262DC: mov eax, dword ptr [ebp - 0x5c] */ 8807 _st[0] += (double)*(float*)ADDR(ebp + (-0x58)); /* 0x361262DF: fadd dword ptr [ebp - 0x58] */ 8808 MEM32(ebp + (-0x54)) = ecx; /* 0x361262E2: mov dword ptr [ebp - 0x54], ecx */ 8809 edx = edi + (-0x4); /* 0x361262E5: lea edx, [edi - 4] */ 8810 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8811 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8812 esp = esp + 4; /* 0x361262E8: add esp, 4 */ 8813 _flag_k = FK_ADD; 8814 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361262EB: fstp dword ptr [ebp - 0x58] */ 8815 fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x361262EE: fld dword ptr [ebp - 0x88] */ 8816 _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361262F4: fadd dword ptr [ebp - 0x54] */ 8817 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361262F7: fstp dword ptr [ebp - 0x54] */ 8818 MEM32(edx) = eax; /* 0x361262FA: mov dword ptr [edx], eax */ 8819 ecx = MEM32(ebp + (-0x58)); /* 0x361262FC: mov ecx, dword ptr [ebp - 0x58] */ 8820 MEM32(edx + 0x4) = ecx; /* 0x361262FF: mov dword ptr [edx + 4], ecx */ 8821 eax = MEM32(ebp + (-0x54)); /* 0x36126302: mov eax, dword ptr [ebp - 0x54] */ 8822 ecx = MEM32(ebp + (-0xC)); /* 0x36126305: mov ecx, dword ptr [ebp - 0xc] */ 8823 MEM32(edx + 0x8) = eax; /* 0x36126308: mov dword ptr [edx + 8], eax */ 8824 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3612630B: fld dword ptr [esi + 0xc] */ 8825 _st[0] += (double)*(float*)ADDR(0x36170EB0); /* 0x3612630E: fadd dword ptr [0x36170eb0] */ 8826 eax = MEM32(ebp + (-0x14)); /* 0x36126314: mov eax, dword ptr [ebp - 0x14] */ 8827 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8828 ecx = ecx + 1; /* 0x36126317: inc ecx */ 8829 _flag_k = FK_INC; 8830 MEM32(ebp + (-0xC)) = ecx; /* 0x36126318: mov dword ptr [ebp - 0xc], ecx */ 8831 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x200) = _v; } /* 0x3612631B: fstp dword ptr [eax + 0x200] */ 8832 MEM32(eax) = 2; /* 0x36126321: mov dword ptr [eax], 2 */ 8833 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1); 8834 MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) - 1; /* 0x36126327: dec dword ptr [ebp - 0x18] */ 8835 _flag_k = FK_DEC; 8836 goto L_36126334; /* 0x3612632A: jmp 0x36126334 */ 8837 L_3612632C: 8838 ecx = MEM32(esi + 0x38); /* 0x3612632C: mov ecx, dword ptr [esi + 0x38] */ 8839 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612632F: mov byte ptr [ecx + ebx + 0x1c], 0 */ 8840 L_36126334: 8841 edx = MEM32(ebp + (-0x14)); /* 0x36126334: mov edx, dword ptr [ebp - 0x14] */ 8842 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 8843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8844 ebx = ebx + 0x20u; /* 0x36126337: add ebx, 0x20 */ 8845 _flag_k = FK_ADD; 8846 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 8847 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8848 edx = edx + 4; /* 0x3612633A: add edx, 4 */ 8849 _flag_k = FK_ADD; 8850 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 8851 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8852 edi = edi + 0xCu; /* 0x3612633D: add edi, 0xc */ 8853 _flag_k = FK_ADD; 8854 /* cmp ebx, 0x1000u */ /* 0x36126340: cmp ebx, 0x1000 */ 8855 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 8856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8857 _flag_k = FK_CMP; 8858 MEM32(ebp + (-0x14)) = edx; /* 0x36126346: mov dword ptr [ebp - 0x14], edx */ 8859 MEM32(ebp + (-0x1C)) = ebx; /* 0x36126349: mov dword ptr [ebp - 0x1c], ebx */ 8860 RECOMP_BACKEDGE(); 8861 if (CMP_L(_flag_a, _flag_b)) goto L_36125CB1; /* 0x3612634C: jl 0x36125cb1 */ 8862 L_36126352: 8863 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126352: mov al, byte ptr [esi + 0x163c] */ 8864 /* test LO8(eax), LO8(eax) */ /* 0x36126358: test al, al */ 8865 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8866 _cf = 0; 8867 _flag_k = FK_NARROW(FK_TEST, 24); 8868 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612635A: je 0x361275ac */ 8869 L_36126360: 8870 eax = MEM32(ebp + (-0xC)); /* 0x36126360: mov eax, dword ptr [ebp - 0xc] */ 8871 /* test eax, eax */ /* 0x36126363: test eax, eax */ 8872 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8873 _cf = 0; 8874 _flag_k = FK_TEST; 8875 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126365: jne 0x361275ac */ 8876 L_3612636B: 8877 goto L_361275A8; /* 0x3612636B: jmp 0x361275a8 */ 8878 L_361275A8: 8879 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 8880 L_361275AC: 8881 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 8882 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 8883 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8884 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 8885 _flag_k = FK_ADD; 8886 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 8887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8888 _cf = 0; 8889 _flag_k = FK_TEST; 8890 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 8891 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 8892 L_361275B7: 8893 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 8894 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 8895 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 8896 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 8897 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 8898 RECOMP_FLAGS_IN(); 8899 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 8900 PUSH32(esp, eax); /* 0x361275CD: push eax */ 8901 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 8902 RECOMP_FLAGS_IN(); 8903 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 8904 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 8905 RECOMP_FLAGS_IN(); 8906 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 8907 PUSH32(esp, eax); /* 0x361275E2: push eax */ 8908 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 8909 RECOMP_FLAGS_IN(); 8910 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 8911 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 8912 RECOMP_FLAGS_IN(); 8913 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 8914 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8915 _cf = (LO8(eax)) != 0; 8916 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 8917 _flag_k = FK_NARROW(FK_CMP, 24); 8918 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 8919 eax = _sc ? 0xFFFFFFFFu : 0; 8920 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8921 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8922 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8923 eax = eax + 1; /* 0x361275F6: inc eax */ 8924 _flag_k = FK_INC; 8925 PUSH32(esp, eax); /* 0x361275F7: push eax */ 8926 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 8927 RECOMP_FLAGS_IN(); 8928 L_361275FE: 8929 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 8930 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 8931 esp = ebp; /* 0x36127600: mov esp, ebp */ 8932 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 8933 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 8934 RECOMP_REGS_OUT(); 8935 } 8936 8937 void sub_36125E8B(void) { 8938 int _fpu_cmp = 0; 8939 uint32_t _cf = 0; 8940 int _df = 1; 8941 uint32_t _flag_k = FK_NONE; 8942 uint32_t _flag_a = 0, _flag_b = 0; 8943 uint32_t _itail_tgt = 0; 8944 RECOMP_REGS_LOCALS 8945 RECOMP_ENTER(0x36125E8Bu); 8946 8947 goto L_36125E8B; 8948 L_36125CB1: 8949 eax = MEM32(ebp + (-0x14)); /* 0x36125CB1: mov eax, dword ptr [ebp - 0x14] */ 8950 fp_push(*(float*)&MEM32(eax + 0x200)); /* 0x36125CB4: fld dword ptr [eax + 0x200] */ 8951 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36125CBA: fcomp dword ptr [esi + 0xc] */ 8952 fp_pop(); 8953 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125CBD: fnstsw ax */ 8954 /* test HI8(eax), 0x41u */ /* 0x36125CBF: test ah, 0x41 */ 8955 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 8956 _cf = 0; 8957 _flag_k = FK_NARROW(FK_TEST, 24); 8958 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612623A; /* 0x36125CC2: jne 0x3612623a */ 8959 L_36125CC8: 8960 ecx = MEM32(ebp + (-0x14)); /* 0x36125CC8: mov ecx, dword ptr [ebp - 0x14] */ 8961 eax = MEM32(ecx); /* 0x36125CCB: mov eax, dword ptr [ecx] */ 8962 edx = eax + eax * 2; /* 0x36125CCD: lea edx, [eax + eax*2] */ 8963 MEM32(ebp + (-0x8)) = eax; /* 0x36125CD0: mov dword ptr [ebp - 8], eax */ 8964 ecx = edi + (-0x4); /* 0x36125CD3: lea ecx, [edi - 4] */ 8965 eax = ecx; /* 0x36125CD6: mov eax, ecx */ 8966 ebx = MEM32(eax); /* 0x36125CD8: mov ebx, dword ptr [eax] */ 8967 MEM32(ebp + (-0x118)) = ebx; /* 0x36125CDA: mov dword ptr [ebp - 0x118], ebx */ 8968 fp_push(*(float*)&MEM32(ebp + (-0x118))); /* 0x36125CE0: fld dword ptr [ebp - 0x118] */ 8969 ebx = MEM32(eax + 0x4); /* 0x36125CE6: mov ebx, dword ptr [eax + 4] */ 8970 MEM32(ebp + (-0x114)) = ebx; /* 0x36125CE9: mov dword ptr [ebp - 0x114], ebx */ 8971 eax = MEM32(eax + 0x8); /* 0x36125CEF: mov eax, dword ptr [eax + 8] */ 8972 MEM32(ebp + (-0x110)) = eax; /* 0x36125CF2: mov dword ptr [ebp - 0x110], eax */ 8973 if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36125CF8: shl edx, 3 */ 8974 if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8975 edx = edx << 3u; /* 0x36125CF8: shl edx, 3 */ 8976 _st[0] -= (double)*(float*)ADDR(edx + 0x3630D6A0); /* 0x36125CFB: fsub dword ptr [edx + 0x3630d6a0] */ 8977 MEM32(ebp + (-0x4)) = edx; /* 0x36125D01: mov dword ptr [ebp - 4], edx */ 8978 fp_push(*(float*)&MEM32(ebp + (-0x114))); /* 0x36125D04: fld dword ptr [ebp - 0x114] */ 8979 eax = MEM32(ebp + (-0x4)); /* 0x36125D0A: mov eax, dword ptr [ebp - 4] */ 8980 _st[0] -= (double)*(float*)ADDR(edx + 0x3630D6A4); /* 0x36125D0D: fsub dword ptr [edx + 0x3630d6a4] */ 8981 edx = edx + 0x3630D6A0; /* 0x36125D13: lea edx, [edx + 0x3630d6a0] */ 8982 fp_push(*(float*)&MEM32(ebp + (-0x110))); /* 0x36125D19: fld dword ptr [ebp - 0x110] */ 8983 ebx = eax + 0x3630D6AC; /* 0x36125D1F: lea ebx, [eax + 0x3630d6ac] */ 8984 _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x36125D25: fsub dword ptr [edx + 8] */ 8985 eax = MEM32(ebp + (-0x8)); /* 0x36125D28: mov eax, dword ptr [ebp - 8] */ 8986 _st[0] *= (double)*(float*)ADDR(ebx + 0x8); /* 0x36125D2B: fmul dword ptr [ebx + 8] */ 8987 fp_xch(1); /* 0x36125D2E: fxch st(1) */ 8988 _st[0] *= (double)*(float*)ADDR(ebx + 0x4); /* 0x36125D30: fmul dword ptr [ebx + 4] */ 8989 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125D33: faddp st(1) */ 8990 fp_xch(1); /* 0x36125D35: fxch st(1) */ 8991 _st[0] *= (double)*(float*)ADDR(ebx); /* 0x36125D37: fmul dword ptr [ebx] */ 8992 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125D39: faddp st(1) */ 8993 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x36125D3B: fdiv dword ptr [eax*4 + 0x3630d688] */ 8994 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36125D42: fcom dword ptr [0x3617040c] */ 8995 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125D48: fnstsw ax */ 8996 /* test HI8(eax), 1 */ /* 0x36125D4A: test ah, 1 */ 8997 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8998 _cf = 0; 8999 _flag_k = FK_NARROW(FK_TEST, 24); 9000 if (TEST_Z(_flag_a, _flag_b)) goto L_36125D59; /* 0x36125D4D: je 0x36125d59 */ 9001 L_36125D4F: 9002 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125D4F: fstp st(0) */ 9003 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36125D51: fld dword ptr [0x3617040c] */ 9004 goto L_36125D6E; /* 0x36125D57: jmp 0x36125d6e */ 9005 L_36125D59: 9006 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36125D59: fcom dword ptr [0x36170380] */ 9007 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125D5F: fnstsw ax */ 9008 /* test HI8(eax), 0x41u */ /* 0x36125D61: test ah, 0x41 */ 9009 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 9010 _cf = 0; 9011 _flag_k = FK_NARROW(FK_TEST, 24); 9012 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125D6E; /* 0x36125D64: jne 0x36125d6e */ 9013 L_36125D66: 9014 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125D66: fstp st(0) */ 9015 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125D68: fld dword ptr [0x36170380] */ 9016 L_36125D6E: 9017 eax = MEM32(ebx); /* 0x36125D6E: mov eax, dword ptr [ebx] */ 9018 MEM32(ebp + (-0x80)) = eax; /* 0x36125D70: mov dword ptr [ebp - 0x80], eax */ 9019 fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x36125D73: fld dword ptr [ebp - 0x80] */ 9020 eax = MEM32(ebx + 0x4); /* 0x36125D76: mov eax, dword ptr [ebx + 4] */ 9021 _st[0] *= _st[1]; /* 0x36125D79: fmul st(1) */ 9022 MEM32(ebp + (-0x7C)) = eax; /* 0x36125D7B: mov dword ptr [ebp - 0x7c], eax */ 9023 eax = MEM32(ebx + 0x8); /* 0x36125D7E: mov eax, dword ptr [ebx + 8] */ 9024 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x36125D81: fstp dword ptr [ebp - 0x80] */ 9025 MEM32(ebp + (-0x78)) = eax; /* 0x36125D84: mov dword ptr [ebp - 0x78], eax */ 9026 eax = MEM32(edx); /* 0x36125D87: mov eax, dword ptr [edx] */ 9027 fp_push(_st[0]); /* 0x36125D89: fld st(0) */ 9028 MEM32(ebp + (-0x50)) = eax; /* 0x36125D8B: mov dword ptr [ebp - 0x50], eax */ 9029 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125D8E: fmul dword ptr [ebp - 0x7c] */ 9030 eax = MEM32(edx + 0x4); /* 0x36125D91: mov eax, dword ptr [edx + 4] */ 9031 edx = MEM32(edx + 0x8); /* 0x36125D94: mov edx, dword ptr [edx + 8] */ 9032 MEM32(ebp + (-0x4C)) = eax; /* 0x36125D97: mov dword ptr [ebp - 0x4c], eax */ 9033 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36125D9A: fstp dword ptr [ebp - 0x7c] */ 9034 MEM32(ebp + (-0x48)) = edx; /* 0x36125D9D: mov dword ptr [ebp - 0x48], edx */ 9035 ebx = 6; /* 0x36125DA0: mov ebx, 6 */ 9036 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36125DA5: fmul dword ptr [ebp - 0x78] */ 9037 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36125DA8: fld dword ptr [ebp - 0x50] */ 9038 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125DAB: fadd dword ptr [ebp - 0x80] */ 9039 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36125DAE: fstp dword ptr [ebp - 0x50] */ 9040 eax = MEM32(ebp + (-0x50)); /* 0x36125DB1: mov eax, dword ptr [ebp - 0x50] */ 9041 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36125DB4: fld dword ptr [ebp - 0x4c] */ 9042 MEM32(ebp + (-0xC0)) = eax; /* 0x36125DB7: mov dword ptr [ebp - 0xc0], eax */ 9043 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125DBD: fadd dword ptr [ebp - 0x7c] */ 9044 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36125DC0: fstp dword ptr [ebp - 0x4c] */ 9045 edx = MEM32(ebp + (-0x4C)); /* 0x36125DC3: mov edx, dword ptr [ebp - 0x4c] */ 9046 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36125DC6: fld dword ptr [ebp - 0x48] */ 9047 MEM32(ebp + (-0xBC)) = edx; /* 0x36125DC9: mov dword ptr [ebp - 0xbc], edx */ 9048 edx = MEM32(ebp + (-0x84)); /* 0x36125DCF: mov edx, dword ptr [ebp - 0x84] */ 9049 _st[0] += _st[1]; /* 0x36125DD5: fadd st(1) */ 9050 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36125DD7: fstp dword ptr [ebp - 0x48] */ 9051 eax = MEM32(ebp + (-0x48)); /* 0x36125DDA: mov eax, dword ptr [ebp - 0x48] */ 9052 MEM32(ebp + (-0xB8)) = eax; /* 0x36125DDD: mov dword ptr [ebp - 0xb8], eax */ 9053 eax = MEM32(ebp + (-0x8)); /* 0x36125DE3: mov eax, dword ptr [ebp - 8] */ 9054 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125DE6: fstp st(0) */ 9055 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9056 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9057 eax = eax + edx; /* 0x36125DE8: add eax, edx */ 9058 _flag_k = FK_ADD; 9059 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36125DEA: cdq */ 9060 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x36125DEB: idiv ebx */ 9061 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 9062 else { eax = 0; edx = 0; } } 9063 MEM32(ebp + (-0x8)) = edx; /* 0x36125DED: mov dword ptr [ebp - 8], edx */ 9064 ebx = edx + edx * 2; /* 0x36125DF0: lea ebx, [edx + edx*2] */ 9065 edx = ecx; /* 0x36125DF3: mov edx, ecx */ 9066 eax = MEM32(edx); /* 0x36125DF5: mov eax, dword ptr [edx] */ 9067 MEM32(ebp + (-0xE8)) = eax; /* 0x36125DF7: mov dword ptr [ebp - 0xe8], eax */ 9068 fp_push(*(float*)&MEM32(ebp + (-0xE8))); /* 0x36125DFD: fld dword ptr [ebp - 0xe8] */ 9069 eax = MEM32(edx + 0x4); /* 0x36125E03: mov eax, dword ptr [edx + 4] */ 9070 MEM32(ebp + (-0xE4)) = eax; /* 0x36125E06: mov dword ptr [ebp - 0xe4], eax */ 9071 edx = MEM32(edx + 0x8); /* 0x36125E0C: mov edx, dword ptr [edx + 8] */ 9072 MEM32(ebp + (-0xE0)) = edx; /* 0x36125E0F: mov dword ptr [ebp - 0xe0], edx */ 9073 if (3u) _cf = (((ebx) >> 29) & 1u); /* 0x36125E15: shl ebx, 3 */ 9074 if (3u) { _flag_a = recomp_flags_pack((ebx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9075 ebx = ebx << 3u; /* 0x36125E15: shl ebx, 3 */ 9076 _st[0] -= (double)*(float*)ADDR(ebx + 0x3630D6A0); /* 0x36125E18: fsub dword ptr [ebx + 0x3630d6a0] */ 9077 MEM32(ebp + (-0x4)) = ebx; /* 0x36125E1E: mov dword ptr [ebp - 4], ebx */ 9078 fp_push(*(float*)&MEM32(ebp + (-0xE4))); /* 0x36125E21: fld dword ptr [ebp - 0xe4] */ 9079 eax = MEM32(ebp + (-0x4)); /* 0x36125E27: mov eax, dword ptr [ebp - 4] */ 9080 _st[0] -= (double)*(float*)ADDR(ebx + 0x3630D6A4); /* 0x36125E2A: fsub dword ptr [ebx + 0x3630d6a4] */ 9081 ebx = ebx + 0x3630D6A0; /* 0x36125E30: lea ebx, [ebx + 0x3630d6a0] */ 9082 fp_push(*(float*)&MEM32(ebp + (-0xE0))); /* 0x36125E36: fld dword ptr [ebp - 0xe0] */ 9083 edx = eax + 0x3630D6AC; /* 0x36125E3C: lea edx, [eax + 0x3630d6ac] */ 9084 _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x36125E42: fsub dword ptr [ebx + 8] */ 9085 eax = MEM32(ebp + (-0x8)); /* 0x36125E45: mov eax, dword ptr [ebp - 8] */ 9086 _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x36125E48: fmul dword ptr [edx + 8] */ 9087 fp_xch(1); /* 0x36125E4B: fxch st(1) */ 9088 _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x36125E4D: fmul dword ptr [edx + 4] */ 9089 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125E50: faddp st(1) */ 9090 fp_xch(1); /* 0x36125E52: fxch st(1) */ 9091 _st[0] *= (double)*(float*)ADDR(edx); /* 0x36125E54: fmul dword ptr [edx] */ 9092 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125E56: faddp st(1) */ 9093 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x36125E58: fdiv dword ptr [eax*4 + 0x3630d688] */ 9094 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36125E5F: fcom dword ptr [0x3617040c] */ 9095 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125E65: fnstsw ax */ 9096 /* test HI8(eax), 1 */ /* 0x36125E67: test ah, 1 */ 9097 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9098 _cf = 0; 9099 _flag_k = FK_NARROW(FK_TEST, 24); 9100 if (TEST_Z(_flag_a, _flag_b)) goto L_36125E76; /* 0x36125E6A: je 0x36125e76 */ 9101 L_36125E6C: 9102 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125E6C: fstp st(0) */ 9103 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36125E6E: fld dword ptr [0x3617040c] */ 9104 goto L_36125E8B; /* 0x36125E74: jmp 0x36125e8b */ 9105 L_36125E76: 9106 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36125E76: fcom dword ptr [0x36170380] */ 9107 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125E7C: fnstsw ax */ 9108 /* test HI8(eax), 0x41u */ /* 0x36125E7E: test ah, 0x41 */ 9109 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 9110 _cf = 0; 9111 _flag_k = FK_NARROW(FK_TEST, 24); 9112 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125E8B; /* 0x36125E81: jne 0x36125e8b */ 9113 L_36125E83: 9114 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125E83: fstp st(0) */ 9115 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125E85: fld dword ptr [0x36170380] */ 9116 L_36125E8B: 9117 eax = MEM32(edx); /* 0x36125E8B: mov eax, dword ptr [edx] */ 9118 MEM32(ebp + (-0x9C)) = eax; /* 0x36125E8D: mov dword ptr [ebp - 0x9c], eax */ 9119 fp_push(*(float*)&MEM32(ebp + (-0x9C))); /* 0x36125E93: fld dword ptr [ebp - 0x9c] */ 9120 _st[0] *= _st[1]; /* 0x36125E99: fmul st(1) */ 9121 eax = MEM32(edx + 0x4); /* 0x36125E9B: mov eax, dword ptr [edx + 4] */ 9122 edx = MEM32(edx + 0x8); /* 0x36125E9E: mov edx, dword ptr [edx + 8] */ 9123 MEM32(ebp + (-0x98)) = eax; /* 0x36125EA1: mov dword ptr [ebp - 0x98], eax */ 9124 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36125EA7: fstp dword ptr [ebp - 0x9c] */ 9125 eax = MEM32(ebx); /* 0x36125EAD: mov eax, dword ptr [ebx] */ 9126 MEM32(ebp + (-0xA8)) = eax; /* 0x36125EAF: mov dword ptr [ebp - 0xa8], eax */ 9127 fp_push(_st[0]); /* 0x36125EB5: fld st(0) */ 9128 eax = MEM32(ebx + 0x8); /* 0x36125EB7: mov eax, dword ptr [ebx + 8] */ 9129 _st[0] *= (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125EBA: fmul dword ptr [ebp - 0x98] */ 9130 MEM32(ebp + (-0x94)) = edx; /* 0x36125EC0: mov dword ptr [ebp - 0x94], edx */ 9131 edx = MEM32(ebx + 0x4); /* 0x36125EC6: mov edx, dword ptr [ebx + 4] */ 9132 MEM32(ebp + (-0xA4)) = edx; /* 0x36125EC9: mov dword ptr [ebp - 0xa4], edx */ 9133 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x36125ECF: fstp dword ptr [ebp - 0x98] */ 9134 MEM32(ebp + (-0xA0)) = eax; /* 0x36125ED5: mov dword ptr [ebp - 0xa0], eax */ 9135 _st[0] *= (double)*(float*)ADDR(ebp + (-0x94)); /* 0x36125EDB: fmul dword ptr [ebp - 0x94] */ 9136 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36125EE1: fld dword ptr [ebp - 0xa8] */ 9137 _st[0] += (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x36125EE7: fadd dword ptr [ebp - 0x9c] */ 9138 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x36125EED: fstp dword ptr [ebp - 0xa8] */ 9139 eax = MEM32(ebp + (-0xA8)); /* 0x36125EF3: mov eax, dword ptr [ebp - 0xa8] */ 9140 fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x36125EF9: fld dword ptr [ebp - 0xa4] */ 9141 MEM32(ebp + (-0xF4)) = eax; /* 0x36125EFF: mov dword ptr [ebp - 0xf4], eax */ 9142 _st[0] += (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125F05: fadd dword ptr [ebp - 0x98] */ 9143 MEM32(ebp + (-0x128)) = eax; /* 0x36125F0B: mov dword ptr [ebp - 0x128], eax */ 9144 eax = MEM32(ebp + (-0x50)); /* 0x36125F11: mov eax, dword ptr [ebp - 0x50] */ 9145 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36125F14: fstp dword ptr [ebp - 0xa4] */ 9146 edx = MEM32(ebp + (-0xA4)); /* 0x36125F1A: mov edx, dword ptr [ebp - 0xa4] */ 9147 fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x36125F20: fld dword ptr [ebp - 0xa0] */ 9148 MEM32(ebp + (-0x124)) = edx; /* 0x36125F26: mov dword ptr [ebp - 0x124], edx */ 9149 _st[0] += _st[1]; /* 0x36125F2C: fadd st(1) */ 9150 MEM32(ebp + (-0xF0)) = edx; /* 0x36125F2E: mov dword ptr [ebp - 0xf0], edx */ 9151 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36125F34: fstp dword ptr [ebp - 0xa0] */ 9152 ebx = MEM32(ebp + (-0xA0)); /* 0x36125F3A: mov ebx, dword ptr [ebp - 0xa0] */ 9153 edx = ebx; /* 0x36125F40: mov edx, ebx */ 9154 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125F42: fstp st(0) */ 9155 MEM32(ebp + (-0x120)) = edx; /* 0x36125F44: mov dword ptr [ebp - 0x120], edx */ 9156 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36125F4A: fld dword ptr [ebp - 0xa8] */ 9157 edx = MEM32(ebp + (-0x4C)); /* 0x36125F50: mov edx, dword ptr [ebp - 0x4c] */ 9158 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36125F53: fsub dword ptr [ecx] */ 9159 fp_push(*(float*)&MEM32(ebp + (-0x124))); /* 0x36125F55: fld dword ptr [ebp - 0x124] */ 9160 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36125F5B: fsub dword ptr [edi] */ 9161 fp_push(*(float*)&MEM32(ebp + (-0x120))); /* 0x36125F5D: fld dword ptr [ebp - 0x120] */ 9162 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36125F63: fsub dword ptr [edi + 4] */ 9163 MEM32(ebp + (-0x68)) = eax; /* 0x36125F66: mov dword ptr [ebp - 0x68], eax */ 9164 eax = MEM32(ebp + (-0x48)); /* 0x36125F69: mov eax, dword ptr [ebp - 0x48] */ 9165 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36125F6C: fld dword ptr [ebp - 0x50] */ 9166 MEM32(ebp + (-0x60)) = eax; /* 0x36125F6F: mov dword ptr [ebp - 0x60], eax */ 9167 MEM32(ebp + (-0x64)) = edx; /* 0x36125F72: mov dword ptr [ebp - 0x64], edx */ 9168 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36125F75: fsub dword ptr [ecx] */ 9169 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36125F77: fld dword ptr [ebp - 0x64] */ 9170 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36125F7A: fsub dword ptr [edi] */ 9171 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36125F7C: fld dword ptr [ebp - 0x60] */ 9172 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36125F7F: fsub dword ptr [edi + 4] */ 9173 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x36125F82: fstp dword ptr [ebp - 0x60] */ 9174 fp_push(_st[2]); /* 0x36125F85: fld st(2) */ 9175 _st[0] *= _st[3]; /* 0x36125F87: fmul st(3) */ 9176 fp_push(_st[4]); /* 0x36125F89: fld st(4) */ 9177 _st[0] *= _st[5]; /* 0x36125F8B: fmul st(5) */ 9178 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F8D: faddp st(1) */ 9179 fp_push(_st[5]); /* 0x36125F8F: fld st(5) */ 9180 _st[0] *= _st[6]; /* 0x36125F91: fmul st(6) */ 9181 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F93: faddp st(1) */ 9182 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36125F95: fld dword ptr [ebp - 0x60] */ 9183 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x36125F98: fmul dword ptr [ebp - 0x60] */ 9184 fp_push(_st[2]); /* 0x36125F9B: fld st(2) */ 9185 _st[0] *= _st[3]; /* 0x36125F9D: fmul st(3) */ 9186 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F9F: faddp st(1) */ 9187 fp_push(_st[3]); /* 0x36125FA1: fld st(3) */ 9188 _st[0] *= _st[4]; /* 0x36125FA3: fmul st(4) */ 9189 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125FA5: faddp st(1) */ 9190 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x36125FA7: fcompp */ 9191 fp_pop(); fp_pop(); 9192 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FA9: fstp st(0) */ 9193 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FAB: fstp st(0) */ 9194 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FAD: fstp st(0) */ 9195 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125FAF: fnstsw ax */ 9196 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FB1: fstp st(0) */ 9197 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FB3: fstp st(0) */ 9198 /* test HI8(eax), 0x41u */ /* 0x36125FB5: test ah, 0x41 */ 9199 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 9200 _cf = 0; 9201 _flag_k = FK_NARROW(FK_TEST, 24); 9202 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125FE0; /* 0x36125FB8: jne 0x36125fe0 */ 9203 L_36125FBA: 9204 edx = MEM32(ebp + (-0x14)); /* 0x36125FBA: mov edx, dword ptr [ebp - 0x14] */ 9205 eax = MEM32(ebp + (-0x8)); /* 0x36125FBD: mov eax, dword ptr [ebp - 8] */ 9206 MEM32(edx) = eax; /* 0x36125FC0: mov dword ptr [edx], eax */ 9207 edx = MEM32(ebp + (-0xF4)); /* 0x36125FC2: mov edx, dword ptr [ebp - 0xf4] */ 9208 eax = MEM32(ebp + (-0xF0)); /* 0x36125FC8: mov eax, dword ptr [ebp - 0xf0] */ 9209 MEM32(ebp + (-0xC0)) = edx; /* 0x36125FCE: mov dword ptr [ebp - 0xc0], edx */ 9210 MEM32(ebp + (-0xBC)) = eax; /* 0x36125FD4: mov dword ptr [ebp - 0xbc], eax */ 9211 MEM32(ebp + (-0xB8)) = ebx; /* 0x36125FDA: mov dword ptr [ebp - 0xb8], ebx */ 9212 L_36125FE0: 9213 eax = edi + (-0x604); /* 0x36125FE0: lea eax, [edi - 0x604] */ 9214 edx = eax; /* 0x36125FE6: mov edx, eax */ 9215 ebx = MEM32(edx); /* 0x36125FE8: mov ebx, dword ptr [edx] */ 9216 MEM32(ebp + (-0xDC)) = ebx; /* 0x36125FEA: mov dword ptr [ebp - 0xdc], ebx */ 9217 fp_push(*(float*)&MEM32(ebp + (-0xDC))); /* 0x36125FF0: fld dword ptr [ebp - 0xdc] */ 9218 ebx = MEM32(edx + 0x4); /* 0x36125FF6: mov ebx, dword ptr [edx + 4] */ 9219 _st[0] += _st[0]; /* 0x36125FF9: fadd st(0), st(0) */ 9220 MEM32(ebp + (-0xD8)) = ebx; /* 0x36125FFB: mov dword ptr [ebp - 0xd8], ebx */ 9221 fp_push(*(float*)&MEM32(ebp + (-0xD8))); /* 0x36126001: fld dword ptr [ebp - 0xd8] */ 9222 edx = MEM32(edx + 0x8); /* 0x36126007: mov edx, dword ptr [edx + 8] */ 9223 _st[0] += _st[0]; /* 0x3612600A: fadd st(0), st(0) */ 9224 MEM32(ebp + (-0xD4)) = edx; /* 0x3612600C: mov dword ptr [ebp - 0xd4], edx */ 9225 edx = MEM32(ebp + (-0xC0)); /* 0x36126012: mov edx, dword ptr [ebp - 0xc0] */ 9226 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36126018: fstp dword ptr [ebp - 0xd8] */ 9227 MEM32(ebp + (-0x28)) = edx; /* 0x3612601E: mov dword ptr [ebp - 0x28], edx */ 9228 fp_push(*(float*)&MEM32(ebp + (-0xD4))); /* 0x36126021: fld dword ptr [ebp - 0xd4] */ 9229 edx = MEM32(ebp + (-0xBC)); /* 0x36126027: mov edx, dword ptr [ebp - 0xbc] */ 9230 _st[0] += _st[0]; /* 0x3612602D: fadd st(0), st(0) */ 9231 MEM32(ebp + (-0x24)) = edx; /* 0x3612602F: mov dword ptr [ebp - 0x24], edx */ 9232 edx = MEM32(ebp + (-0xB8)); /* 0x36126032: mov edx, dword ptr [ebp - 0xb8] */ 9233 MEM32(ebp + (-0x20)) = edx; /* 0x36126038: mov dword ptr [ebp - 0x20], edx */ 9234 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3612603B: fstp dword ptr [ebp - 0xd4] */ 9235 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36126041: fld dword ptr [ebp - 0xc0] */ 9236 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36126047: fsub dword ptr [ecx] */ 9237 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36126049: fstp dword ptr [ebp - 0x28] */ 9238 edx = MEM32(ebp + (-0x28)); /* 0x3612604C: mov edx, dword ptr [ebp - 0x28] */ 9239 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3612604F: fld dword ptr [ebp - 0x24] */ 9240 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36126052: fsub dword ptr [edi] */ 9241 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36126054: fstp dword ptr [ebp - 0x24] */ 9242 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36126057: fld dword ptr [ebp - 0x20] */ 9243 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3612605A: fsub dword ptr [edi + 4] */ 9244 MEM32(ebp + (-0x74)) = edx; /* 0x3612605D: mov dword ptr [ebp - 0x74], edx */ 9245 edx = MEM32(ebp + (-0x24)); /* 0x36126060: mov edx, dword ptr [ebp - 0x24] */ 9246 MEM32(ebp + (-0x70)) = edx; /* 0x36126063: mov dword ptr [ebp - 0x70], edx */ 9247 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36126066: fstp dword ptr [ebp - 0x20] */ 9248 edx = MEM32(ebp + (-0x20)); /* 0x36126069: mov edx, dword ptr [ebp - 0x20] */ 9249 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3612606C: fld dword ptr [ebp - 0x28] */ 9250 MEM32(ebp + (-0x6C)) = edx; /* 0x3612606F: mov dword ptr [ebp - 0x6c], edx */ 9251 _st[0] -= _st[1]; /* 0x36126072: fsub st(1) */ 9252 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36126074: fstp dword ptr [ebp - 0x74] */ 9253 edx = MEM32(ebp + (-0x74)); /* 0x36126077: mov edx, dword ptr [ebp - 0x74] */ 9254 MEM32(ebp + (-0xB4)) = edx; /* 0x3612607A: mov dword ptr [ebp - 0xb4], edx */ 9255 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126080: fstp st(0) */ 9256 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36126082: fld dword ptr [ebp - 0x70] */ 9257 _st[0] -= (double)*(float*)ADDR(ebp + (-0xD8)); /* 0x36126085: fsub dword ptr [ebp - 0xd8] */ 9258 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3612608B: fstp dword ptr [ebp - 0x70] */ 9259 edx = MEM32(ebp + (-0x70)); /* 0x3612608E: mov edx, dword ptr [ebp - 0x70] */ 9260 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36126091: fld dword ptr [ebp - 0x6c] */ 9261 MEM32(ebp + (-0xB0)) = edx; /* 0x36126094: mov dword ptr [ebp - 0xb0], edx */ 9262 _st[0] -= (double)*(float*)ADDR(ebp + (-0xD4)); /* 0x3612609A: fsub dword ptr [ebp - 0xd4] */ 9263 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x361260A0: fstp dword ptr [ebp - 0x6c] */ 9264 edx = MEM32(ebp + (-0x6C)); /* 0x361260A3: mov edx, dword ptr [ebp - 0x6c] */ 9265 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x361260A6: fld dword ptr [ebp - 0x74] */ 9266 MEM32(ebp + (-0xAC)) = edx; /* 0x361260A9: mov dword ptr [ebp - 0xac], edx */ 9267 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260AF: fmul dword ptr [0x36170d68] */ 9268 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x361260B5: fstp dword ptr [ebp - 0xb4] */ 9269 edx = MEM32(ebp + (-0xB4)); /* 0x361260BB: mov edx, dword ptr [ebp - 0xb4] */ 9270 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361260C1: fld dword ptr [ebp - 0xb0] */ 9271 MEM32(ebp + (-0x10C)) = edx; /* 0x361260C7: mov dword ptr [ebp - 0x10c], edx */ 9272 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260CD: fmul dword ptr [0x36170d68] */ 9273 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x361260D3: fstp dword ptr [ebp - 0xb0] */ 9274 edx = MEM32(ebp + (-0xB0)); /* 0x361260D9: mov edx, dword ptr [ebp - 0xb0] */ 9275 fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361260DF: fld dword ptr [ebp - 0xac] */ 9276 MEM32(ebp + (-0x108)) = edx; /* 0x361260E5: mov dword ptr [ebp - 0x108], edx */ 9277 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260EB: fmul dword ptr [0x36170d68] */ 9278 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361260F1: fstp dword ptr [ebp - 0xac] */ 9279 edx = MEM32(ebp + (-0xAC)); /* 0x361260F7: mov edx, dword ptr [ebp - 0xac] */ 9280 fp_push(*(float*)&MEM32(ebp + (-0xB4))); /* 0x361260FD: fld dword ptr [ebp - 0xb4] */ 9281 MEM32(ebp + (-0x104)) = edx; /* 0x36126103: mov dword ptr [ebp - 0x104], edx */ 9282 _st[0] += (double)*(float*)ADDR(eax); /* 0x36126109: fadd dword ptr [eax] */ 9283 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3612610B: fstp dword ptr [eax] */ 9284 fp_push(*(float*)&MEM32(ebp + (-0x108))); /* 0x3612610D: fld dword ptr [ebp - 0x108] */ 9285 _st[0] += (double)*(float*)ADDR(edi + (-0x600)); /* 0x36126113: fadd dword ptr [edi - 0x600] */ 9286 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x600)) = _v; } /* 0x36126119: fstp dword ptr [edi - 0x600] */ 9287 fp_push(*(float*)&MEM32(ebp + (-0x104))); /* 0x3612611F: fld dword ptr [ebp - 0x104] */ 9288 _st[0] += (double)*(float*)ADDR(edi + (-0x5FC)); /* 0x36126125: fadd dword ptr [edi - 0x5fc] */ 9289 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x5FC)) = _v; } /* 0x3612612B: fstp dword ptr [edi - 0x5fc] */ 9290 edx = MEM32(eax); /* 0x36126131: mov edx, dword ptr [eax] */ 9291 MEM32(ebp + (-0x44)) = edx; /* 0x36126133: mov dword ptr [ebp - 0x44], edx */ 9292 edx = MEM32(eax + 0x4); /* 0x36126136: mov edx, dword ptr [eax + 4] */ 9293 MEM32(ebp + (-0x40)) = edx; /* 0x36126139: mov dword ptr [ebp - 0x40], edx */ 9294 eax = MEM32(eax + 0x8); /* 0x3612613C: mov eax, dword ptr [eax + 8] */ 9295 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3612613F: fld dword ptr [ebp - 0x44] */ 9296 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126142: fmul dword ptr [0x36170d68] */ 9297 MEM32(ebp + (-0x3C)) = eax; /* 0x36126148: mov dword ptr [ebp - 0x3c], eax */ 9298 ebx = MEM32(ebp + (-0x1C)); /* 0x3612614B: mov ebx, dword ptr [ebp - 0x1c] */ 9299 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3612614E: fstp dword ptr [ebp - 0x44] */ 9300 edx = MEM32(ebp + (-0x44)); /* 0x36126151: mov edx, dword ptr [ebp - 0x44] */ 9301 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36126154: fld dword ptr [ebp - 0x40] */ 9302 MEM32(ebp + (-0x100)) = edx; /* 0x36126157: mov dword ptr [ebp - 0x100], edx */ 9303 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612615D: fmul dword ptr [0x36170d68] */ 9304 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36126163: fstp dword ptr [ebp - 0x40] */ 9305 eax = MEM32(ebp + (-0x40)); /* 0x36126166: mov eax, dword ptr [ebp - 0x40] */ 9306 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36126169: fld dword ptr [ebp - 0x3c] */ 9307 MEM32(ebp + (-0xFC)) = eax; /* 0x3612616C: mov dword ptr [ebp - 0xfc], eax */ 9308 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126172: fmul dword ptr [0x36170d68] */ 9309 eax = ebx; /* 0x36126178: mov eax, ebx */ 9310 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612617A: fstp dword ptr [ebp - 0x3c] */ 9311 edx = MEM32(ebp + (-0x3C)); /* 0x3612617D: mov edx, dword ptr [ebp - 0x3c] */ 9312 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126180: fld dword ptr [ebp - 0x44] */ 9313 MEM32(ebp + (-0xF8)) = edx; /* 0x36126183: mov dword ptr [ebp - 0xf8], edx */ 9314 _st[0] += (double)*(float*)ADDR(ecx); /* 0x36126189: fadd dword ptr [ecx] */ 9315 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x3612618B: fstp dword ptr [ecx] */ 9316 fp_push(*(float*)&MEM32(ebp + (-0xFC))); /* 0x3612618D: fld dword ptr [ebp - 0xfc] */ 9317 _st[0] += (double)*(float*)ADDR(edi); /* 0x36126193: fadd dword ptr [edi] */ 9318 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36126195: fstp dword ptr [edi] */ 9319 fp_push(*(float*)&MEM32(ebp + (-0xF8))); /* 0x36126197: fld dword ptr [ebp - 0xf8] */ 9320 _st[0] += (double)*(float*)ADDR(edi + 0x4); /* 0x3612619D: fadd dword ptr [edi + 4] */ 9321 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x361261A0: fstp dword ptr [edi + 4] */ 9322 edx = MEM32(esi + 0x38); /* 0x361261A3: mov edx, dword ptr [esi + 0x38] */ 9323 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9324 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9325 eax = eax + edx; /* 0x361261A6: add eax, edx */ 9326 _flag_k = FK_ADD; 9327 edx = MEM32(ecx); /* 0x361261A8: mov edx, dword ptr [ecx] */ 9328 MEM32(eax) = edx; /* 0x361261AA: mov dword ptr [eax], edx */ 9329 edx = MEM32(ecx + 0x4); /* 0x361261AC: mov edx, dword ptr [ecx + 4] */ 9330 MEM32(eax + 0x4) = edx; /* 0x361261AF: mov dword ptr [eax + 4], edx */ 9331 ecx = MEM32(ecx + 0x8); /* 0x361261B2: mov ecx, dword ptr [ecx + 8] */ 9332 edx = MEM32(ebp + (-0x14)); /* 0x361261B5: mov edx, dword ptr [ebp - 0x14] */ 9333 MEM32(eax + 0x8) = ecx; /* 0x361261B8: mov dword ptr [eax + 8], ecx */ 9334 fp_push(*(float*)&MEM32(edx + 0x200)); /* 0x361261BB: fld dword ptr [edx + 0x200] */ 9335 _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x361261C1: fsub dword ptr [esi + 0xc] */ 9336 _st[0] = (double)*(float*)ADDR(0x36170EB0) - _st[0]; /* 0x361261C4: fsubr dword ptr [0x36170eb0] */ 9337 _st[0] *= (double)*(float*)ADDR(0x36177778); /* 0x361261CA: fmul dword ptr [0x36177778] */ 9338 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361261D0: fst dword ptr [ebp - 4] */ 9339 _st[0] *= *(double*)ADDR(0x36177770); /* 0x361261D3: fmul qword ptr [0x36177770] */ 9340 RECOMP_ICALL(0x3615FD8Cu); /* 0x361261D9: call 0x3615fd8c */ /* not lifted */ 9341 RECOMP_FLAGS_IN(); 9342 edx = MEM32(ebp + (-0x4)); /* 0x361261DE: mov edx, dword ptr [ebp - 4] */ 9343 ecx = 0xFu; /* 0x361261E1: mov ecx, 0xf */ 9344 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9346 ecx = ecx - eax; /* 0x361261E6: sub ecx, eax */ 9347 _flag_k = FK_CMP; 9348 fp_push((double)(int32_t)MEM32(ecx * 4 + 0x362E5AC0)); /* 0x361261E8: fild dword ptr [ecx*4 + 0x362e5ac0] */ 9349 eax = MEM32(esi + 0x38); /* 0x361261EF: mov eax, dword ptr [esi + 0x38] */ 9350 MEM32(ebp + (-0x1C)) = ecx; /* 0x361261F2: mov dword ptr [ebp - 0x1c], ecx */ 9351 PUSH32(esp, edx); /* 0x361261F5: push edx */ 9352 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361261F6: fmul dword ptr [ebp - 4] */ 9353 _st[0] *= (double)*(float*)ADDR(0x36170850); /* 0x361261F9: fmul dword ptr [0x36170850] */ 9354 { float _v = (float)_st[0]; *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x361261FF: fst dword ptr [ebx + eax + 0xc] */ 9355 ecx = MEM32(esi + 0x38); /* 0x36126203: mov ecx, dword ptr [esi + 0x38] */ 9356 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x36126206: fstp dword ptr [ebx + ecx + 0x10] */ 9357 ecx = esi + 0x168C; /* 0x3612620A: lea ecx, [esi + 0x168c] */ 9358 RECOMP_ICALL(0x36137D80u); /* 0x36126210: call 0x36137d80 */ /* not lifted */ 9359 RECOMP_FLAGS_IN(); 9360 ecx = MEM32(esi + 0x38); /* 0x36126215: mov ecx, dword ptr [esi + 0x38] */ 9361 MEM32(ebx + ecx + 0x14) = eax; /* 0x36126218: mov dword ptr [ebx + ecx + 0x14], eax */ 9362 edx = MEM32(esi + 0x38); /* 0x3612621C: mov edx, dword ptr [esi + 0x38] */ 9363 eax = MEM32(ebp + (-0x1C)); /* 0x3612621F: mov eax, dword ptr [ebp - 0x1c] */ 9364 MEM32(ebx + edx + 0x18) = eax; /* 0x36126222: mov dword ptr [ebx + edx + 0x18], eax */ 9365 eax = MEM32(ebp + (-0xC)); /* 0x36126226: mov eax, dword ptr [ebp - 0xc] */ 9366 ecx = MEM32(esi + 0x38); /* 0x36126229: mov ecx, dword ptr [esi + 0x38] */ 9367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9368 eax = eax + 1; /* 0x3612622C: inc eax */ 9369 _flag_k = FK_INC; 9370 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x3612622D: mov byte ptr [ebx + ecx + 0x1c], 1 */ 9371 MEM32(ebp + (-0xC)) = eax; /* 0x36126232: mov dword ptr [ebp - 0xc], eax */ 9372 goto L_36126334; /* 0x36126235: jmp 0x36126334 */ 9373 L_3612623A: 9374 eax = MEM32(ebp + (-0x18)); /* 0x3612623A: mov eax, dword ptr [ebp - 0x18] */ 9375 /* test eax, eax */ /* 0x3612623D: test eax, eax */ 9376 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9377 _cf = 0; 9378 _flag_k = FK_TEST; 9379 if (TEST_Z(_flag_a, _flag_b)) goto L_3612632C; /* 0x3612623F: je 0x3612632c */ 9380 L_36126245: 9381 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126245: mov al, byte ptr [esi + 0x163c] */ 9382 /* test LO8(eax), LO8(eax) */ /* 0x3612624B: test al, al */ 9383 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9384 _cf = 0; 9385 _flag_k = FK_NARROW(FK_TEST, 24); 9386 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612632C; /* 0x3612624D: jne 0x3612632c */ 9387 L_36126253: 9388 MEM32(ebp + (-0xD0)) = 0; /* 0x36126253: mov dword ptr [ebp - 0xd0], 0 */ 9389 eax = MEM32(ebp + (-0xD0)); /* 0x3612625D: mov eax, dword ptr [ebp - 0xd0] */ 9390 MEM32(ebp + (-0xCC)) = 0; /* 0x36126263: mov dword ptr [ebp - 0xcc], 0 */ 9391 MEM32(ebp + (-0xC8)) = 0; /* 0x3612626D: mov dword ptr [ebp - 0xc8], 0 */ 9392 edx = edi + (-0x604); /* 0x36126277: lea edx, [edi - 0x604] */ 9393 MEM32(edx) = eax; /* 0x3612627D: mov dword ptr [edx], eax */ 9394 ecx = MEM32(ebp + (-0xCC)); /* 0x3612627F: mov ecx, dword ptr [ebp - 0xcc] */ 9395 MEM32(edx + 0x4) = ecx; /* 0x36126285: mov dword ptr [edx + 4], ecx */ 9396 eax = MEM32(ebp + (-0xC8)); /* 0x36126288: mov eax, dword ptr [ebp - 0xc8] */ 9397 MEM32(edx + 0x8) = eax; /* 0x3612628E: mov dword ptr [edx + 8], eax */ 9398 ecx = ebp + (-0x90); /* 0x36126291: lea ecx, [ebp - 0x90] */ 9399 PUSH32(esp, ecx); /* 0x36126297: push ecx */ 9400 MEM32(ebp + (-0x90)) = 0; /* 0x36126298: mov dword ptr [ebp - 0x90], 0 */ 9401 MEM32(ebp + (-0x8C)) = 0; /* 0x361262A2: mov dword ptr [ebp - 0x8c], 0 */ 9402 MEM32(ebp + (-0x88)) = 0; /* 0x361262AC: mov dword ptr [ebp - 0x88], 0 */ 9403 RECOMP_ICALL(0x360FCA70u); /* 0x361262B6: call 0x360fca70 */ /* not lifted */ 9404 RECOMP_FLAGS_IN(); 9405 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361262BB: fld dword ptr [ebp - 0x38] */ 9406 _st[0] += (double)*(float*)ADDR(ebp + (-0x90)); /* 0x361262BE: fadd dword ptr [ebp - 0x90] */ 9407 edx = MEM32(ebp + (-0x38)); /* 0x361262C4: mov edx, dword ptr [ebp - 0x38] */ 9408 eax = MEM32(ebp + (-0x34)); /* 0x361262C7: mov eax, dword ptr [ebp - 0x34] */ 9409 ecx = MEM32(ebp + (-0x30)); /* 0x361262CA: mov ecx, dword ptr [ebp - 0x30] */ 9410 MEM32(ebp + (-0x58)) = eax; /* 0x361262CD: mov dword ptr [ebp - 0x58], eax */ 9411 MEM32(ebp + (-0x5C)) = edx; /* 0x361262D0: mov dword ptr [ebp - 0x5c], edx */ 9412 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x361262D3: fstp dword ptr [ebp - 0x5c] */ 9413 fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x361262D6: fld dword ptr [ebp - 0x8c] */ 9414 eax = MEM32(ebp + (-0x5C)); /* 0x361262DC: mov eax, dword ptr [ebp - 0x5c] */ 9415 _st[0] += (double)*(float*)ADDR(ebp + (-0x58)); /* 0x361262DF: fadd dword ptr [ebp - 0x58] */ 9416 MEM32(ebp + (-0x54)) = ecx; /* 0x361262E2: mov dword ptr [ebp - 0x54], ecx */ 9417 edx = edi + (-0x4); /* 0x361262E5: lea edx, [edi - 4] */ 9418 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9419 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9420 esp = esp + 4; /* 0x361262E8: add esp, 4 */ 9421 _flag_k = FK_ADD; 9422 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361262EB: fstp dword ptr [ebp - 0x58] */ 9423 fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x361262EE: fld dword ptr [ebp - 0x88] */ 9424 _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361262F4: fadd dword ptr [ebp - 0x54] */ 9425 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361262F7: fstp dword ptr [ebp - 0x54] */ 9426 MEM32(edx) = eax; /* 0x361262FA: mov dword ptr [edx], eax */ 9427 ecx = MEM32(ebp + (-0x58)); /* 0x361262FC: mov ecx, dword ptr [ebp - 0x58] */ 9428 MEM32(edx + 0x4) = ecx; /* 0x361262FF: mov dword ptr [edx + 4], ecx */ 9429 eax = MEM32(ebp + (-0x54)); /* 0x36126302: mov eax, dword ptr [ebp - 0x54] */ 9430 ecx = MEM32(ebp + (-0xC)); /* 0x36126305: mov ecx, dword ptr [ebp - 0xc] */ 9431 MEM32(edx + 0x8) = eax; /* 0x36126308: mov dword ptr [edx + 8], eax */ 9432 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3612630B: fld dword ptr [esi + 0xc] */ 9433 _st[0] += (double)*(float*)ADDR(0x36170EB0); /* 0x3612630E: fadd dword ptr [0x36170eb0] */ 9434 eax = MEM32(ebp + (-0x14)); /* 0x36126314: mov eax, dword ptr [ebp - 0x14] */ 9435 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9436 ecx = ecx + 1; /* 0x36126317: inc ecx */ 9437 _flag_k = FK_INC; 9438 MEM32(ebp + (-0xC)) = ecx; /* 0x36126318: mov dword ptr [ebp - 0xc], ecx */ 9439 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x200) = _v; } /* 0x3612631B: fstp dword ptr [eax + 0x200] */ 9440 MEM32(eax) = 2; /* 0x36126321: mov dword ptr [eax], 2 */ 9441 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1); 9442 MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) - 1; /* 0x36126327: dec dword ptr [ebp - 0x18] */ 9443 _flag_k = FK_DEC; 9444 goto L_36126334; /* 0x3612632A: jmp 0x36126334 */ 9445 L_3612632C: 9446 ecx = MEM32(esi + 0x38); /* 0x3612632C: mov ecx, dword ptr [esi + 0x38] */ 9447 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612632F: mov byte ptr [ecx + ebx + 0x1c], 0 */ 9448 L_36126334: 9449 edx = MEM32(ebp + (-0x14)); /* 0x36126334: mov edx, dword ptr [ebp - 0x14] */ 9450 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 9451 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9452 ebx = ebx + 0x20u; /* 0x36126337: add ebx, 0x20 */ 9453 _flag_k = FK_ADD; 9454 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 9455 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9456 edx = edx + 4; /* 0x3612633A: add edx, 4 */ 9457 _flag_k = FK_ADD; 9458 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 9459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9460 edi = edi + 0xCu; /* 0x3612633D: add edi, 0xc */ 9461 _flag_k = FK_ADD; 9462 /* cmp ebx, 0x1000u */ /* 0x36126340: cmp ebx, 0x1000 */ 9463 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 9464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9465 _flag_k = FK_CMP; 9466 MEM32(ebp + (-0x14)) = edx; /* 0x36126346: mov dword ptr [ebp - 0x14], edx */ 9467 MEM32(ebp + (-0x1C)) = ebx; /* 0x36126349: mov dword ptr [ebp - 0x1c], ebx */ 9468 RECOMP_BACKEDGE(); 9469 if (CMP_L(_flag_a, _flag_b)) goto L_36125CB1; /* 0x3612634C: jl 0x36125cb1 */ 9470 L_36126352: 9471 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126352: mov al, byte ptr [esi + 0x163c] */ 9472 /* test LO8(eax), LO8(eax) */ /* 0x36126358: test al, al */ 9473 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9474 _cf = 0; 9475 _flag_k = FK_NARROW(FK_TEST, 24); 9476 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612635A: je 0x361275ac */ 9477 L_36126360: 9478 eax = MEM32(ebp + (-0xC)); /* 0x36126360: mov eax, dword ptr [ebp - 0xc] */ 9479 /* test eax, eax */ /* 0x36126363: test eax, eax */ 9480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9481 _cf = 0; 9482 _flag_k = FK_TEST; 9483 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126365: jne 0x361275ac */ 9484 L_3612636B: 9485 goto L_361275A8; /* 0x3612636B: jmp 0x361275a8 */ 9486 L_361275A8: 9487 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 9488 L_361275AC: 9489 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 9490 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 9491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9492 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 9493 _flag_k = FK_ADD; 9494 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 9495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9496 _cf = 0; 9497 _flag_k = FK_TEST; 9498 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 9499 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 9500 L_361275B7: 9501 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 9502 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 9503 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 9504 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 9505 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 9506 RECOMP_FLAGS_IN(); 9507 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 9508 PUSH32(esp, eax); /* 0x361275CD: push eax */ 9509 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 9510 RECOMP_FLAGS_IN(); 9511 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 9512 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 9513 RECOMP_FLAGS_IN(); 9514 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 9515 PUSH32(esp, eax); /* 0x361275E2: push eax */ 9516 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 9517 RECOMP_FLAGS_IN(); 9518 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 9519 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 9520 RECOMP_FLAGS_IN(); 9521 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 9522 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9523 _cf = (LO8(eax)) != 0; 9524 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 9525 _flag_k = FK_NARROW(FK_CMP, 24); 9526 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 9527 eax = _sc ? 0xFFFFFFFFu : 0; 9528 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 9529 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 9530 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9531 eax = eax + 1; /* 0x361275F6: inc eax */ 9532 _flag_k = FK_INC; 9533 PUSH32(esp, eax); /* 0x361275F7: push eax */ 9534 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 9535 RECOMP_FLAGS_IN(); 9536 L_361275FE: 9537 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 9538 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 9539 esp = ebp; /* 0x36127600: mov esp, ebp */ 9540 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 9541 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 9542 RECOMP_REGS_OUT(); 9543 } 9544 9545 void sub_3612623A(void) { 9546 int _fpu_cmp = 0; 9547 uint32_t _cf = 0; 9548 int _df = 1; 9549 uint32_t _flag_k = FK_NONE; 9550 uint32_t _flag_a = 0, _flag_b = 0; 9551 uint32_t _itail_tgt = 0; 9552 RECOMP_REGS_LOCALS 9553 RECOMP_ENTER(0x3612623Au); 9554 9555 goto L_3612623A; 9556 L_36125CB1: 9557 eax = MEM32(ebp + (-0x14)); /* 0x36125CB1: mov eax, dword ptr [ebp - 0x14] */ 9558 fp_push(*(float*)&MEM32(eax + 0x200)); /* 0x36125CB4: fld dword ptr [eax + 0x200] */ 9559 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36125CBA: fcomp dword ptr [esi + 0xc] */ 9560 fp_pop(); 9561 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125CBD: fnstsw ax */ 9562 /* test HI8(eax), 0x41u */ /* 0x36125CBF: test ah, 0x41 */ 9563 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 9564 _cf = 0; 9565 _flag_k = FK_NARROW(FK_TEST, 24); 9566 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612623A; /* 0x36125CC2: jne 0x3612623a */ 9567 L_36125CC8: 9568 ecx = MEM32(ebp + (-0x14)); /* 0x36125CC8: mov ecx, dword ptr [ebp - 0x14] */ 9569 eax = MEM32(ecx); /* 0x36125CCB: mov eax, dword ptr [ecx] */ 9570 edx = eax + eax * 2; /* 0x36125CCD: lea edx, [eax + eax*2] */ 9571 MEM32(ebp + (-0x8)) = eax; /* 0x36125CD0: mov dword ptr [ebp - 8], eax */ 9572 ecx = edi + (-0x4); /* 0x36125CD3: lea ecx, [edi - 4] */ 9573 eax = ecx; /* 0x36125CD6: mov eax, ecx */ 9574 ebx = MEM32(eax); /* 0x36125CD8: mov ebx, dword ptr [eax] */ 9575 MEM32(ebp + (-0x118)) = ebx; /* 0x36125CDA: mov dword ptr [ebp - 0x118], ebx */ 9576 fp_push(*(float*)&MEM32(ebp + (-0x118))); /* 0x36125CE0: fld dword ptr [ebp - 0x118] */ 9577 ebx = MEM32(eax + 0x4); /* 0x36125CE6: mov ebx, dword ptr [eax + 4] */ 9578 MEM32(ebp + (-0x114)) = ebx; /* 0x36125CE9: mov dword ptr [ebp - 0x114], ebx */ 9579 eax = MEM32(eax + 0x8); /* 0x36125CEF: mov eax, dword ptr [eax + 8] */ 9580 MEM32(ebp + (-0x110)) = eax; /* 0x36125CF2: mov dword ptr [ebp - 0x110], eax */ 9581 if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36125CF8: shl edx, 3 */ 9582 if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9583 edx = edx << 3u; /* 0x36125CF8: shl edx, 3 */ 9584 _st[0] -= (double)*(float*)ADDR(edx + 0x3630D6A0); /* 0x36125CFB: fsub dword ptr [edx + 0x3630d6a0] */ 9585 MEM32(ebp + (-0x4)) = edx; /* 0x36125D01: mov dword ptr [ebp - 4], edx */ 9586 fp_push(*(float*)&MEM32(ebp + (-0x114))); /* 0x36125D04: fld dword ptr [ebp - 0x114] */ 9587 eax = MEM32(ebp + (-0x4)); /* 0x36125D0A: mov eax, dword ptr [ebp - 4] */ 9588 _st[0] -= (double)*(float*)ADDR(edx + 0x3630D6A4); /* 0x36125D0D: fsub dword ptr [edx + 0x3630d6a4] */ 9589 edx = edx + 0x3630D6A0; /* 0x36125D13: lea edx, [edx + 0x3630d6a0] */ 9590 fp_push(*(float*)&MEM32(ebp + (-0x110))); /* 0x36125D19: fld dword ptr [ebp - 0x110] */ 9591 ebx = eax + 0x3630D6AC; /* 0x36125D1F: lea ebx, [eax + 0x3630d6ac] */ 9592 _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x36125D25: fsub dword ptr [edx + 8] */ 9593 eax = MEM32(ebp + (-0x8)); /* 0x36125D28: mov eax, dword ptr [ebp - 8] */ 9594 _st[0] *= (double)*(float*)ADDR(ebx + 0x8); /* 0x36125D2B: fmul dword ptr [ebx + 8] */ 9595 fp_xch(1); /* 0x36125D2E: fxch st(1) */ 9596 _st[0] *= (double)*(float*)ADDR(ebx + 0x4); /* 0x36125D30: fmul dword ptr [ebx + 4] */ 9597 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125D33: faddp st(1) */ 9598 fp_xch(1); /* 0x36125D35: fxch st(1) */ 9599 _st[0] *= (double)*(float*)ADDR(ebx); /* 0x36125D37: fmul dword ptr [ebx] */ 9600 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125D39: faddp st(1) */ 9601 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x36125D3B: fdiv dword ptr [eax*4 + 0x3630d688] */ 9602 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36125D42: fcom dword ptr [0x3617040c] */ 9603 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125D48: fnstsw ax */ 9604 /* test HI8(eax), 1 */ /* 0x36125D4A: test ah, 1 */ 9605 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9606 _cf = 0; 9607 _flag_k = FK_NARROW(FK_TEST, 24); 9608 if (TEST_Z(_flag_a, _flag_b)) goto L_36125D59; /* 0x36125D4D: je 0x36125d59 */ 9609 L_36125D4F: 9610 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125D4F: fstp st(0) */ 9611 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36125D51: fld dword ptr [0x3617040c] */ 9612 goto L_36125D6E; /* 0x36125D57: jmp 0x36125d6e */ 9613 L_36125D59: 9614 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36125D59: fcom dword ptr [0x36170380] */ 9615 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125D5F: fnstsw ax */ 9616 /* test HI8(eax), 0x41u */ /* 0x36125D61: test ah, 0x41 */ 9617 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 9618 _cf = 0; 9619 _flag_k = FK_NARROW(FK_TEST, 24); 9620 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125D6E; /* 0x36125D64: jne 0x36125d6e */ 9621 L_36125D66: 9622 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125D66: fstp st(0) */ 9623 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125D68: fld dword ptr [0x36170380] */ 9624 L_36125D6E: 9625 eax = MEM32(ebx); /* 0x36125D6E: mov eax, dword ptr [ebx] */ 9626 MEM32(ebp + (-0x80)) = eax; /* 0x36125D70: mov dword ptr [ebp - 0x80], eax */ 9627 fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x36125D73: fld dword ptr [ebp - 0x80] */ 9628 eax = MEM32(ebx + 0x4); /* 0x36125D76: mov eax, dword ptr [ebx + 4] */ 9629 _st[0] *= _st[1]; /* 0x36125D79: fmul st(1) */ 9630 MEM32(ebp + (-0x7C)) = eax; /* 0x36125D7B: mov dword ptr [ebp - 0x7c], eax */ 9631 eax = MEM32(ebx + 0x8); /* 0x36125D7E: mov eax, dword ptr [ebx + 8] */ 9632 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x36125D81: fstp dword ptr [ebp - 0x80] */ 9633 MEM32(ebp + (-0x78)) = eax; /* 0x36125D84: mov dword ptr [ebp - 0x78], eax */ 9634 eax = MEM32(edx); /* 0x36125D87: mov eax, dword ptr [edx] */ 9635 fp_push(_st[0]); /* 0x36125D89: fld st(0) */ 9636 MEM32(ebp + (-0x50)) = eax; /* 0x36125D8B: mov dword ptr [ebp - 0x50], eax */ 9637 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125D8E: fmul dword ptr [ebp - 0x7c] */ 9638 eax = MEM32(edx + 0x4); /* 0x36125D91: mov eax, dword ptr [edx + 4] */ 9639 edx = MEM32(edx + 0x8); /* 0x36125D94: mov edx, dword ptr [edx + 8] */ 9640 MEM32(ebp + (-0x4C)) = eax; /* 0x36125D97: mov dword ptr [ebp - 0x4c], eax */ 9641 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36125D9A: fstp dword ptr [ebp - 0x7c] */ 9642 MEM32(ebp + (-0x48)) = edx; /* 0x36125D9D: mov dword ptr [ebp - 0x48], edx */ 9643 ebx = 6; /* 0x36125DA0: mov ebx, 6 */ 9644 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36125DA5: fmul dword ptr [ebp - 0x78] */ 9645 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36125DA8: fld dword ptr [ebp - 0x50] */ 9646 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125DAB: fadd dword ptr [ebp - 0x80] */ 9647 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36125DAE: fstp dword ptr [ebp - 0x50] */ 9648 eax = MEM32(ebp + (-0x50)); /* 0x36125DB1: mov eax, dword ptr [ebp - 0x50] */ 9649 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36125DB4: fld dword ptr [ebp - 0x4c] */ 9650 MEM32(ebp + (-0xC0)) = eax; /* 0x36125DB7: mov dword ptr [ebp - 0xc0], eax */ 9651 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125DBD: fadd dword ptr [ebp - 0x7c] */ 9652 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36125DC0: fstp dword ptr [ebp - 0x4c] */ 9653 edx = MEM32(ebp + (-0x4C)); /* 0x36125DC3: mov edx, dword ptr [ebp - 0x4c] */ 9654 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36125DC6: fld dword ptr [ebp - 0x48] */ 9655 MEM32(ebp + (-0xBC)) = edx; /* 0x36125DC9: mov dword ptr [ebp - 0xbc], edx */ 9656 edx = MEM32(ebp + (-0x84)); /* 0x36125DCF: mov edx, dword ptr [ebp - 0x84] */ 9657 _st[0] += _st[1]; /* 0x36125DD5: fadd st(1) */ 9658 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36125DD7: fstp dword ptr [ebp - 0x48] */ 9659 eax = MEM32(ebp + (-0x48)); /* 0x36125DDA: mov eax, dword ptr [ebp - 0x48] */ 9660 MEM32(ebp + (-0xB8)) = eax; /* 0x36125DDD: mov dword ptr [ebp - 0xb8], eax */ 9661 eax = MEM32(ebp + (-0x8)); /* 0x36125DE3: mov eax, dword ptr [ebp - 8] */ 9662 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125DE6: fstp st(0) */ 9663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9664 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9665 eax = eax + edx; /* 0x36125DE8: add eax, edx */ 9666 _flag_k = FK_ADD; 9667 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36125DEA: cdq */ 9668 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x36125DEB: idiv ebx */ 9669 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 9670 else { eax = 0; edx = 0; } } 9671 MEM32(ebp + (-0x8)) = edx; /* 0x36125DED: mov dword ptr [ebp - 8], edx */ 9672 ebx = edx + edx * 2; /* 0x36125DF0: lea ebx, [edx + edx*2] */ 9673 edx = ecx; /* 0x36125DF3: mov edx, ecx */ 9674 eax = MEM32(edx); /* 0x36125DF5: mov eax, dword ptr [edx] */ 9675 MEM32(ebp + (-0xE8)) = eax; /* 0x36125DF7: mov dword ptr [ebp - 0xe8], eax */ 9676 fp_push(*(float*)&MEM32(ebp + (-0xE8))); /* 0x36125DFD: fld dword ptr [ebp - 0xe8] */ 9677 eax = MEM32(edx + 0x4); /* 0x36125E03: mov eax, dword ptr [edx + 4] */ 9678 MEM32(ebp + (-0xE4)) = eax; /* 0x36125E06: mov dword ptr [ebp - 0xe4], eax */ 9679 edx = MEM32(edx + 0x8); /* 0x36125E0C: mov edx, dword ptr [edx + 8] */ 9680 MEM32(ebp + (-0xE0)) = edx; /* 0x36125E0F: mov dword ptr [ebp - 0xe0], edx */ 9681 if (3u) _cf = (((ebx) >> 29) & 1u); /* 0x36125E15: shl ebx, 3 */ 9682 if (3u) { _flag_a = recomp_flags_pack((ebx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9683 ebx = ebx << 3u; /* 0x36125E15: shl ebx, 3 */ 9684 _st[0] -= (double)*(float*)ADDR(ebx + 0x3630D6A0); /* 0x36125E18: fsub dword ptr [ebx + 0x3630d6a0] */ 9685 MEM32(ebp + (-0x4)) = ebx; /* 0x36125E1E: mov dword ptr [ebp - 4], ebx */ 9686 fp_push(*(float*)&MEM32(ebp + (-0xE4))); /* 0x36125E21: fld dword ptr [ebp - 0xe4] */ 9687 eax = MEM32(ebp + (-0x4)); /* 0x36125E27: mov eax, dword ptr [ebp - 4] */ 9688 _st[0] -= (double)*(float*)ADDR(ebx + 0x3630D6A4); /* 0x36125E2A: fsub dword ptr [ebx + 0x3630d6a4] */ 9689 ebx = ebx + 0x3630D6A0; /* 0x36125E30: lea ebx, [ebx + 0x3630d6a0] */ 9690 fp_push(*(float*)&MEM32(ebp + (-0xE0))); /* 0x36125E36: fld dword ptr [ebp - 0xe0] */ 9691 edx = eax + 0x3630D6AC; /* 0x36125E3C: lea edx, [eax + 0x3630d6ac] */ 9692 _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x36125E42: fsub dword ptr [ebx + 8] */ 9693 eax = MEM32(ebp + (-0x8)); /* 0x36125E45: mov eax, dword ptr [ebp - 8] */ 9694 _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x36125E48: fmul dword ptr [edx + 8] */ 9695 fp_xch(1); /* 0x36125E4B: fxch st(1) */ 9696 _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x36125E4D: fmul dword ptr [edx + 4] */ 9697 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125E50: faddp st(1) */ 9698 fp_xch(1); /* 0x36125E52: fxch st(1) */ 9699 _st[0] *= (double)*(float*)ADDR(edx); /* 0x36125E54: fmul dword ptr [edx] */ 9700 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125E56: faddp st(1) */ 9701 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x36125E58: fdiv dword ptr [eax*4 + 0x3630d688] */ 9702 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36125E5F: fcom dword ptr [0x3617040c] */ 9703 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125E65: fnstsw ax */ 9704 /* test HI8(eax), 1 */ /* 0x36125E67: test ah, 1 */ 9705 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9706 _cf = 0; 9707 _flag_k = FK_NARROW(FK_TEST, 24); 9708 if (TEST_Z(_flag_a, _flag_b)) goto L_36125E76; /* 0x36125E6A: je 0x36125e76 */ 9709 L_36125E6C: 9710 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125E6C: fstp st(0) */ 9711 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36125E6E: fld dword ptr [0x3617040c] */ 9712 goto L_36125E8B; /* 0x36125E74: jmp 0x36125e8b */ 9713 L_36125E76: 9714 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36125E76: fcom dword ptr [0x36170380] */ 9715 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125E7C: fnstsw ax */ 9716 /* test HI8(eax), 0x41u */ /* 0x36125E7E: test ah, 0x41 */ 9717 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 9718 _cf = 0; 9719 _flag_k = FK_NARROW(FK_TEST, 24); 9720 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125E8B; /* 0x36125E81: jne 0x36125e8b */ 9721 L_36125E83: 9722 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125E83: fstp st(0) */ 9723 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125E85: fld dword ptr [0x36170380] */ 9724 L_36125E8B: 9725 eax = MEM32(edx); /* 0x36125E8B: mov eax, dword ptr [edx] */ 9726 MEM32(ebp + (-0x9C)) = eax; /* 0x36125E8D: mov dword ptr [ebp - 0x9c], eax */ 9727 fp_push(*(float*)&MEM32(ebp + (-0x9C))); /* 0x36125E93: fld dword ptr [ebp - 0x9c] */ 9728 _st[0] *= _st[1]; /* 0x36125E99: fmul st(1) */ 9729 eax = MEM32(edx + 0x4); /* 0x36125E9B: mov eax, dword ptr [edx + 4] */ 9730 edx = MEM32(edx + 0x8); /* 0x36125E9E: mov edx, dword ptr [edx + 8] */ 9731 MEM32(ebp + (-0x98)) = eax; /* 0x36125EA1: mov dword ptr [ebp - 0x98], eax */ 9732 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36125EA7: fstp dword ptr [ebp - 0x9c] */ 9733 eax = MEM32(ebx); /* 0x36125EAD: mov eax, dword ptr [ebx] */ 9734 MEM32(ebp + (-0xA8)) = eax; /* 0x36125EAF: mov dword ptr [ebp - 0xa8], eax */ 9735 fp_push(_st[0]); /* 0x36125EB5: fld st(0) */ 9736 eax = MEM32(ebx + 0x8); /* 0x36125EB7: mov eax, dword ptr [ebx + 8] */ 9737 _st[0] *= (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125EBA: fmul dword ptr [ebp - 0x98] */ 9738 MEM32(ebp + (-0x94)) = edx; /* 0x36125EC0: mov dword ptr [ebp - 0x94], edx */ 9739 edx = MEM32(ebx + 0x4); /* 0x36125EC6: mov edx, dword ptr [ebx + 4] */ 9740 MEM32(ebp + (-0xA4)) = edx; /* 0x36125EC9: mov dword ptr [ebp - 0xa4], edx */ 9741 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x36125ECF: fstp dword ptr [ebp - 0x98] */ 9742 MEM32(ebp + (-0xA0)) = eax; /* 0x36125ED5: mov dword ptr [ebp - 0xa0], eax */ 9743 _st[0] *= (double)*(float*)ADDR(ebp + (-0x94)); /* 0x36125EDB: fmul dword ptr [ebp - 0x94] */ 9744 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36125EE1: fld dword ptr [ebp - 0xa8] */ 9745 _st[0] += (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x36125EE7: fadd dword ptr [ebp - 0x9c] */ 9746 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x36125EED: fstp dword ptr [ebp - 0xa8] */ 9747 eax = MEM32(ebp + (-0xA8)); /* 0x36125EF3: mov eax, dword ptr [ebp - 0xa8] */ 9748 fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x36125EF9: fld dword ptr [ebp - 0xa4] */ 9749 MEM32(ebp + (-0xF4)) = eax; /* 0x36125EFF: mov dword ptr [ebp - 0xf4], eax */ 9750 _st[0] += (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125F05: fadd dword ptr [ebp - 0x98] */ 9751 MEM32(ebp + (-0x128)) = eax; /* 0x36125F0B: mov dword ptr [ebp - 0x128], eax */ 9752 eax = MEM32(ebp + (-0x50)); /* 0x36125F11: mov eax, dword ptr [ebp - 0x50] */ 9753 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36125F14: fstp dword ptr [ebp - 0xa4] */ 9754 edx = MEM32(ebp + (-0xA4)); /* 0x36125F1A: mov edx, dword ptr [ebp - 0xa4] */ 9755 fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x36125F20: fld dword ptr [ebp - 0xa0] */ 9756 MEM32(ebp + (-0x124)) = edx; /* 0x36125F26: mov dword ptr [ebp - 0x124], edx */ 9757 _st[0] += _st[1]; /* 0x36125F2C: fadd st(1) */ 9758 MEM32(ebp + (-0xF0)) = edx; /* 0x36125F2E: mov dword ptr [ebp - 0xf0], edx */ 9759 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36125F34: fstp dword ptr [ebp - 0xa0] */ 9760 ebx = MEM32(ebp + (-0xA0)); /* 0x36125F3A: mov ebx, dword ptr [ebp - 0xa0] */ 9761 edx = ebx; /* 0x36125F40: mov edx, ebx */ 9762 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125F42: fstp st(0) */ 9763 MEM32(ebp + (-0x120)) = edx; /* 0x36125F44: mov dword ptr [ebp - 0x120], edx */ 9764 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36125F4A: fld dword ptr [ebp - 0xa8] */ 9765 edx = MEM32(ebp + (-0x4C)); /* 0x36125F50: mov edx, dword ptr [ebp - 0x4c] */ 9766 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36125F53: fsub dword ptr [ecx] */ 9767 fp_push(*(float*)&MEM32(ebp + (-0x124))); /* 0x36125F55: fld dword ptr [ebp - 0x124] */ 9768 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36125F5B: fsub dword ptr [edi] */ 9769 fp_push(*(float*)&MEM32(ebp + (-0x120))); /* 0x36125F5D: fld dword ptr [ebp - 0x120] */ 9770 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36125F63: fsub dword ptr [edi + 4] */ 9771 MEM32(ebp + (-0x68)) = eax; /* 0x36125F66: mov dword ptr [ebp - 0x68], eax */ 9772 eax = MEM32(ebp + (-0x48)); /* 0x36125F69: mov eax, dword ptr [ebp - 0x48] */ 9773 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36125F6C: fld dword ptr [ebp - 0x50] */ 9774 MEM32(ebp + (-0x60)) = eax; /* 0x36125F6F: mov dword ptr [ebp - 0x60], eax */ 9775 MEM32(ebp + (-0x64)) = edx; /* 0x36125F72: mov dword ptr [ebp - 0x64], edx */ 9776 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36125F75: fsub dword ptr [ecx] */ 9777 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36125F77: fld dword ptr [ebp - 0x64] */ 9778 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36125F7A: fsub dword ptr [edi] */ 9779 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36125F7C: fld dword ptr [ebp - 0x60] */ 9780 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36125F7F: fsub dword ptr [edi + 4] */ 9781 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x36125F82: fstp dword ptr [ebp - 0x60] */ 9782 fp_push(_st[2]); /* 0x36125F85: fld st(2) */ 9783 _st[0] *= _st[3]; /* 0x36125F87: fmul st(3) */ 9784 fp_push(_st[4]); /* 0x36125F89: fld st(4) */ 9785 _st[0] *= _st[5]; /* 0x36125F8B: fmul st(5) */ 9786 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F8D: faddp st(1) */ 9787 fp_push(_st[5]); /* 0x36125F8F: fld st(5) */ 9788 _st[0] *= _st[6]; /* 0x36125F91: fmul st(6) */ 9789 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F93: faddp st(1) */ 9790 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36125F95: fld dword ptr [ebp - 0x60] */ 9791 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x36125F98: fmul dword ptr [ebp - 0x60] */ 9792 fp_push(_st[2]); /* 0x36125F9B: fld st(2) */ 9793 _st[0] *= _st[3]; /* 0x36125F9D: fmul st(3) */ 9794 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F9F: faddp st(1) */ 9795 fp_push(_st[3]); /* 0x36125FA1: fld st(3) */ 9796 _st[0] *= _st[4]; /* 0x36125FA3: fmul st(4) */ 9797 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125FA5: faddp st(1) */ 9798 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x36125FA7: fcompp */ 9799 fp_pop(); fp_pop(); 9800 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FA9: fstp st(0) */ 9801 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FAB: fstp st(0) */ 9802 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FAD: fstp st(0) */ 9803 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125FAF: fnstsw ax */ 9804 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FB1: fstp st(0) */ 9805 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FB3: fstp st(0) */ 9806 /* test HI8(eax), 0x41u */ /* 0x36125FB5: test ah, 0x41 */ 9807 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 9808 _cf = 0; 9809 _flag_k = FK_NARROW(FK_TEST, 24); 9810 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125FE0; /* 0x36125FB8: jne 0x36125fe0 */ 9811 L_36125FBA: 9812 edx = MEM32(ebp + (-0x14)); /* 0x36125FBA: mov edx, dword ptr [ebp - 0x14] */ 9813 eax = MEM32(ebp + (-0x8)); /* 0x36125FBD: mov eax, dword ptr [ebp - 8] */ 9814 MEM32(edx) = eax; /* 0x36125FC0: mov dword ptr [edx], eax */ 9815 edx = MEM32(ebp + (-0xF4)); /* 0x36125FC2: mov edx, dword ptr [ebp - 0xf4] */ 9816 eax = MEM32(ebp + (-0xF0)); /* 0x36125FC8: mov eax, dword ptr [ebp - 0xf0] */ 9817 MEM32(ebp + (-0xC0)) = edx; /* 0x36125FCE: mov dword ptr [ebp - 0xc0], edx */ 9818 MEM32(ebp + (-0xBC)) = eax; /* 0x36125FD4: mov dword ptr [ebp - 0xbc], eax */ 9819 MEM32(ebp + (-0xB8)) = ebx; /* 0x36125FDA: mov dword ptr [ebp - 0xb8], ebx */ 9820 L_36125FE0: 9821 eax = edi + (-0x604); /* 0x36125FE0: lea eax, [edi - 0x604] */ 9822 edx = eax; /* 0x36125FE6: mov edx, eax */ 9823 ebx = MEM32(edx); /* 0x36125FE8: mov ebx, dword ptr [edx] */ 9824 MEM32(ebp + (-0xDC)) = ebx; /* 0x36125FEA: mov dword ptr [ebp - 0xdc], ebx */ 9825 fp_push(*(float*)&MEM32(ebp + (-0xDC))); /* 0x36125FF0: fld dword ptr [ebp - 0xdc] */ 9826 ebx = MEM32(edx + 0x4); /* 0x36125FF6: mov ebx, dword ptr [edx + 4] */ 9827 _st[0] += _st[0]; /* 0x36125FF9: fadd st(0), st(0) */ 9828 MEM32(ebp + (-0xD8)) = ebx; /* 0x36125FFB: mov dword ptr [ebp - 0xd8], ebx */ 9829 fp_push(*(float*)&MEM32(ebp + (-0xD8))); /* 0x36126001: fld dword ptr [ebp - 0xd8] */ 9830 edx = MEM32(edx + 0x8); /* 0x36126007: mov edx, dword ptr [edx + 8] */ 9831 _st[0] += _st[0]; /* 0x3612600A: fadd st(0), st(0) */ 9832 MEM32(ebp + (-0xD4)) = edx; /* 0x3612600C: mov dword ptr [ebp - 0xd4], edx */ 9833 edx = MEM32(ebp + (-0xC0)); /* 0x36126012: mov edx, dword ptr [ebp - 0xc0] */ 9834 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36126018: fstp dword ptr [ebp - 0xd8] */ 9835 MEM32(ebp + (-0x28)) = edx; /* 0x3612601E: mov dword ptr [ebp - 0x28], edx */ 9836 fp_push(*(float*)&MEM32(ebp + (-0xD4))); /* 0x36126021: fld dword ptr [ebp - 0xd4] */ 9837 edx = MEM32(ebp + (-0xBC)); /* 0x36126027: mov edx, dword ptr [ebp - 0xbc] */ 9838 _st[0] += _st[0]; /* 0x3612602D: fadd st(0), st(0) */ 9839 MEM32(ebp + (-0x24)) = edx; /* 0x3612602F: mov dword ptr [ebp - 0x24], edx */ 9840 edx = MEM32(ebp + (-0xB8)); /* 0x36126032: mov edx, dword ptr [ebp - 0xb8] */ 9841 MEM32(ebp + (-0x20)) = edx; /* 0x36126038: mov dword ptr [ebp - 0x20], edx */ 9842 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3612603B: fstp dword ptr [ebp - 0xd4] */ 9843 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36126041: fld dword ptr [ebp - 0xc0] */ 9844 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36126047: fsub dword ptr [ecx] */ 9845 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36126049: fstp dword ptr [ebp - 0x28] */ 9846 edx = MEM32(ebp + (-0x28)); /* 0x3612604C: mov edx, dword ptr [ebp - 0x28] */ 9847 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3612604F: fld dword ptr [ebp - 0x24] */ 9848 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36126052: fsub dword ptr [edi] */ 9849 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36126054: fstp dword ptr [ebp - 0x24] */ 9850 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36126057: fld dword ptr [ebp - 0x20] */ 9851 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3612605A: fsub dword ptr [edi + 4] */ 9852 MEM32(ebp + (-0x74)) = edx; /* 0x3612605D: mov dword ptr [ebp - 0x74], edx */ 9853 edx = MEM32(ebp + (-0x24)); /* 0x36126060: mov edx, dword ptr [ebp - 0x24] */ 9854 MEM32(ebp + (-0x70)) = edx; /* 0x36126063: mov dword ptr [ebp - 0x70], edx */ 9855 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36126066: fstp dword ptr [ebp - 0x20] */ 9856 edx = MEM32(ebp + (-0x20)); /* 0x36126069: mov edx, dword ptr [ebp - 0x20] */ 9857 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3612606C: fld dword ptr [ebp - 0x28] */ 9858 MEM32(ebp + (-0x6C)) = edx; /* 0x3612606F: mov dword ptr [ebp - 0x6c], edx */ 9859 _st[0] -= _st[1]; /* 0x36126072: fsub st(1) */ 9860 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36126074: fstp dword ptr [ebp - 0x74] */ 9861 edx = MEM32(ebp + (-0x74)); /* 0x36126077: mov edx, dword ptr [ebp - 0x74] */ 9862 MEM32(ebp + (-0xB4)) = edx; /* 0x3612607A: mov dword ptr [ebp - 0xb4], edx */ 9863 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126080: fstp st(0) */ 9864 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36126082: fld dword ptr [ebp - 0x70] */ 9865 _st[0] -= (double)*(float*)ADDR(ebp + (-0xD8)); /* 0x36126085: fsub dword ptr [ebp - 0xd8] */ 9866 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3612608B: fstp dword ptr [ebp - 0x70] */ 9867 edx = MEM32(ebp + (-0x70)); /* 0x3612608E: mov edx, dword ptr [ebp - 0x70] */ 9868 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36126091: fld dword ptr [ebp - 0x6c] */ 9869 MEM32(ebp + (-0xB0)) = edx; /* 0x36126094: mov dword ptr [ebp - 0xb0], edx */ 9870 _st[0] -= (double)*(float*)ADDR(ebp + (-0xD4)); /* 0x3612609A: fsub dword ptr [ebp - 0xd4] */ 9871 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x361260A0: fstp dword ptr [ebp - 0x6c] */ 9872 edx = MEM32(ebp + (-0x6C)); /* 0x361260A3: mov edx, dword ptr [ebp - 0x6c] */ 9873 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x361260A6: fld dword ptr [ebp - 0x74] */ 9874 MEM32(ebp + (-0xAC)) = edx; /* 0x361260A9: mov dword ptr [ebp - 0xac], edx */ 9875 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260AF: fmul dword ptr [0x36170d68] */ 9876 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x361260B5: fstp dword ptr [ebp - 0xb4] */ 9877 edx = MEM32(ebp + (-0xB4)); /* 0x361260BB: mov edx, dword ptr [ebp - 0xb4] */ 9878 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361260C1: fld dword ptr [ebp - 0xb0] */ 9879 MEM32(ebp + (-0x10C)) = edx; /* 0x361260C7: mov dword ptr [ebp - 0x10c], edx */ 9880 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260CD: fmul dword ptr [0x36170d68] */ 9881 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x361260D3: fstp dword ptr [ebp - 0xb0] */ 9882 edx = MEM32(ebp + (-0xB0)); /* 0x361260D9: mov edx, dword ptr [ebp - 0xb0] */ 9883 fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361260DF: fld dword ptr [ebp - 0xac] */ 9884 MEM32(ebp + (-0x108)) = edx; /* 0x361260E5: mov dword ptr [ebp - 0x108], edx */ 9885 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260EB: fmul dword ptr [0x36170d68] */ 9886 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361260F1: fstp dword ptr [ebp - 0xac] */ 9887 edx = MEM32(ebp + (-0xAC)); /* 0x361260F7: mov edx, dword ptr [ebp - 0xac] */ 9888 fp_push(*(float*)&MEM32(ebp + (-0xB4))); /* 0x361260FD: fld dword ptr [ebp - 0xb4] */ 9889 MEM32(ebp + (-0x104)) = edx; /* 0x36126103: mov dword ptr [ebp - 0x104], edx */ 9890 _st[0] += (double)*(float*)ADDR(eax); /* 0x36126109: fadd dword ptr [eax] */ 9891 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3612610B: fstp dword ptr [eax] */ 9892 fp_push(*(float*)&MEM32(ebp + (-0x108))); /* 0x3612610D: fld dword ptr [ebp - 0x108] */ 9893 _st[0] += (double)*(float*)ADDR(edi + (-0x600)); /* 0x36126113: fadd dword ptr [edi - 0x600] */ 9894 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x600)) = _v; } /* 0x36126119: fstp dword ptr [edi - 0x600] */ 9895 fp_push(*(float*)&MEM32(ebp + (-0x104))); /* 0x3612611F: fld dword ptr [ebp - 0x104] */ 9896 _st[0] += (double)*(float*)ADDR(edi + (-0x5FC)); /* 0x36126125: fadd dword ptr [edi - 0x5fc] */ 9897 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x5FC)) = _v; } /* 0x3612612B: fstp dword ptr [edi - 0x5fc] */ 9898 edx = MEM32(eax); /* 0x36126131: mov edx, dword ptr [eax] */ 9899 MEM32(ebp + (-0x44)) = edx; /* 0x36126133: mov dword ptr [ebp - 0x44], edx */ 9900 edx = MEM32(eax + 0x4); /* 0x36126136: mov edx, dword ptr [eax + 4] */ 9901 MEM32(ebp + (-0x40)) = edx; /* 0x36126139: mov dword ptr [ebp - 0x40], edx */ 9902 eax = MEM32(eax + 0x8); /* 0x3612613C: mov eax, dword ptr [eax + 8] */ 9903 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3612613F: fld dword ptr [ebp - 0x44] */ 9904 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126142: fmul dword ptr [0x36170d68] */ 9905 MEM32(ebp + (-0x3C)) = eax; /* 0x36126148: mov dword ptr [ebp - 0x3c], eax */ 9906 ebx = MEM32(ebp + (-0x1C)); /* 0x3612614B: mov ebx, dword ptr [ebp - 0x1c] */ 9907 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3612614E: fstp dword ptr [ebp - 0x44] */ 9908 edx = MEM32(ebp + (-0x44)); /* 0x36126151: mov edx, dword ptr [ebp - 0x44] */ 9909 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36126154: fld dword ptr [ebp - 0x40] */ 9910 MEM32(ebp + (-0x100)) = edx; /* 0x36126157: mov dword ptr [ebp - 0x100], edx */ 9911 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612615D: fmul dword ptr [0x36170d68] */ 9912 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36126163: fstp dword ptr [ebp - 0x40] */ 9913 eax = MEM32(ebp + (-0x40)); /* 0x36126166: mov eax, dword ptr [ebp - 0x40] */ 9914 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36126169: fld dword ptr [ebp - 0x3c] */ 9915 MEM32(ebp + (-0xFC)) = eax; /* 0x3612616C: mov dword ptr [ebp - 0xfc], eax */ 9916 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126172: fmul dword ptr [0x36170d68] */ 9917 eax = ebx; /* 0x36126178: mov eax, ebx */ 9918 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612617A: fstp dword ptr [ebp - 0x3c] */ 9919 edx = MEM32(ebp + (-0x3C)); /* 0x3612617D: mov edx, dword ptr [ebp - 0x3c] */ 9920 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126180: fld dword ptr [ebp - 0x44] */ 9921 MEM32(ebp + (-0xF8)) = edx; /* 0x36126183: mov dword ptr [ebp - 0xf8], edx */ 9922 _st[0] += (double)*(float*)ADDR(ecx); /* 0x36126189: fadd dword ptr [ecx] */ 9923 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x3612618B: fstp dword ptr [ecx] */ 9924 fp_push(*(float*)&MEM32(ebp + (-0xFC))); /* 0x3612618D: fld dword ptr [ebp - 0xfc] */ 9925 _st[0] += (double)*(float*)ADDR(edi); /* 0x36126193: fadd dword ptr [edi] */ 9926 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36126195: fstp dword ptr [edi] */ 9927 fp_push(*(float*)&MEM32(ebp + (-0xF8))); /* 0x36126197: fld dword ptr [ebp - 0xf8] */ 9928 _st[0] += (double)*(float*)ADDR(edi + 0x4); /* 0x3612619D: fadd dword ptr [edi + 4] */ 9929 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x361261A0: fstp dword ptr [edi + 4] */ 9930 edx = MEM32(esi + 0x38); /* 0x361261A3: mov edx, dword ptr [esi + 0x38] */ 9931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9932 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9933 eax = eax + edx; /* 0x361261A6: add eax, edx */ 9934 _flag_k = FK_ADD; 9935 edx = MEM32(ecx); /* 0x361261A8: mov edx, dword ptr [ecx] */ 9936 MEM32(eax) = edx; /* 0x361261AA: mov dword ptr [eax], edx */ 9937 edx = MEM32(ecx + 0x4); /* 0x361261AC: mov edx, dword ptr [ecx + 4] */ 9938 MEM32(eax + 0x4) = edx; /* 0x361261AF: mov dword ptr [eax + 4], edx */ 9939 ecx = MEM32(ecx + 0x8); /* 0x361261B2: mov ecx, dword ptr [ecx + 8] */ 9940 edx = MEM32(ebp + (-0x14)); /* 0x361261B5: mov edx, dword ptr [ebp - 0x14] */ 9941 MEM32(eax + 0x8) = ecx; /* 0x361261B8: mov dword ptr [eax + 8], ecx */ 9942 fp_push(*(float*)&MEM32(edx + 0x200)); /* 0x361261BB: fld dword ptr [edx + 0x200] */ 9943 _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x361261C1: fsub dword ptr [esi + 0xc] */ 9944 _st[0] = (double)*(float*)ADDR(0x36170EB0) - _st[0]; /* 0x361261C4: fsubr dword ptr [0x36170eb0] */ 9945 _st[0] *= (double)*(float*)ADDR(0x36177778); /* 0x361261CA: fmul dword ptr [0x36177778] */ 9946 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361261D0: fst dword ptr [ebp - 4] */ 9947 _st[0] *= *(double*)ADDR(0x36177770); /* 0x361261D3: fmul qword ptr [0x36177770] */ 9948 RECOMP_ICALL(0x3615FD8Cu); /* 0x361261D9: call 0x3615fd8c */ /* not lifted */ 9949 RECOMP_FLAGS_IN(); 9950 edx = MEM32(ebp + (-0x4)); /* 0x361261DE: mov edx, dword ptr [ebp - 4] */ 9951 ecx = 0xFu; /* 0x361261E1: mov ecx, 0xf */ 9952 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9954 ecx = ecx - eax; /* 0x361261E6: sub ecx, eax */ 9955 _flag_k = FK_CMP; 9956 fp_push((double)(int32_t)MEM32(ecx * 4 + 0x362E5AC0)); /* 0x361261E8: fild dword ptr [ecx*4 + 0x362e5ac0] */ 9957 eax = MEM32(esi + 0x38); /* 0x361261EF: mov eax, dword ptr [esi + 0x38] */ 9958 MEM32(ebp + (-0x1C)) = ecx; /* 0x361261F2: mov dword ptr [ebp - 0x1c], ecx */ 9959 PUSH32(esp, edx); /* 0x361261F5: push edx */ 9960 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361261F6: fmul dword ptr [ebp - 4] */ 9961 _st[0] *= (double)*(float*)ADDR(0x36170850); /* 0x361261F9: fmul dword ptr [0x36170850] */ 9962 { float _v = (float)_st[0]; *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x361261FF: fst dword ptr [ebx + eax + 0xc] */ 9963 ecx = MEM32(esi + 0x38); /* 0x36126203: mov ecx, dword ptr [esi + 0x38] */ 9964 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x36126206: fstp dword ptr [ebx + ecx + 0x10] */ 9965 ecx = esi + 0x168C; /* 0x3612620A: lea ecx, [esi + 0x168c] */ 9966 RECOMP_ICALL(0x36137D80u); /* 0x36126210: call 0x36137d80 */ /* not lifted */ 9967 RECOMP_FLAGS_IN(); 9968 ecx = MEM32(esi + 0x38); /* 0x36126215: mov ecx, dword ptr [esi + 0x38] */ 9969 MEM32(ebx + ecx + 0x14) = eax; /* 0x36126218: mov dword ptr [ebx + ecx + 0x14], eax */ 9970 edx = MEM32(esi + 0x38); /* 0x3612621C: mov edx, dword ptr [esi + 0x38] */ 9971 eax = MEM32(ebp + (-0x1C)); /* 0x3612621F: mov eax, dword ptr [ebp - 0x1c] */ 9972 MEM32(ebx + edx + 0x18) = eax; /* 0x36126222: mov dword ptr [ebx + edx + 0x18], eax */ 9973 eax = MEM32(ebp + (-0xC)); /* 0x36126226: mov eax, dword ptr [ebp - 0xc] */ 9974 ecx = MEM32(esi + 0x38); /* 0x36126229: mov ecx, dword ptr [esi + 0x38] */ 9975 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9976 eax = eax + 1; /* 0x3612622C: inc eax */ 9977 _flag_k = FK_INC; 9978 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x3612622D: mov byte ptr [ebx + ecx + 0x1c], 1 */ 9979 MEM32(ebp + (-0xC)) = eax; /* 0x36126232: mov dword ptr [ebp - 0xc], eax */ 9980 goto L_36126334; /* 0x36126235: jmp 0x36126334 */ 9981 L_3612623A: 9982 eax = MEM32(ebp + (-0x18)); /* 0x3612623A: mov eax, dword ptr [ebp - 0x18] */ 9983 /* test eax, eax */ /* 0x3612623D: test eax, eax */ 9984 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9985 _cf = 0; 9986 _flag_k = FK_TEST; 9987 if (TEST_Z(_flag_a, _flag_b)) goto L_3612632C; /* 0x3612623F: je 0x3612632c */ 9988 L_36126245: 9989 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126245: mov al, byte ptr [esi + 0x163c] */ 9990 /* test LO8(eax), LO8(eax) */ /* 0x3612624B: test al, al */ 9991 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9992 _cf = 0; 9993 _flag_k = FK_NARROW(FK_TEST, 24); 9994 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612632C; /* 0x3612624D: jne 0x3612632c */ 9995 L_36126253: 9996 MEM32(ebp + (-0xD0)) = 0; /* 0x36126253: mov dword ptr [ebp - 0xd0], 0 */ 9997 eax = MEM32(ebp + (-0xD0)); /* 0x3612625D: mov eax, dword ptr [ebp - 0xd0] */ 9998 MEM32(ebp + (-0xCC)) = 0; /* 0x36126263: mov dword ptr [ebp - 0xcc], 0 */ 9999 MEM32(ebp + (-0xC8)) = 0; /* 0x3612626D: mov dword ptr [ebp - 0xc8], 0 */ 10000 edx = edi + (-0x604); /* 0x36126277: lea edx, [edi - 0x604] */ 10001 MEM32(edx) = eax; /* 0x3612627D: mov dword ptr [edx], eax */ 10002 ecx = MEM32(ebp + (-0xCC)); /* 0x3612627F: mov ecx, dword ptr [ebp - 0xcc] */ 10003 MEM32(edx + 0x4) = ecx; /* 0x36126285: mov dword ptr [edx + 4], ecx */ 10004 eax = MEM32(ebp + (-0xC8)); /* 0x36126288: mov eax, dword ptr [ebp - 0xc8] */ 10005 MEM32(edx + 0x8) = eax; /* 0x3612628E: mov dword ptr [edx + 8], eax */ 10006 ecx = ebp + (-0x90); /* 0x36126291: lea ecx, [ebp - 0x90] */ 10007 PUSH32(esp, ecx); /* 0x36126297: push ecx */ 10008 MEM32(ebp + (-0x90)) = 0; /* 0x36126298: mov dword ptr [ebp - 0x90], 0 */ 10009 MEM32(ebp + (-0x8C)) = 0; /* 0x361262A2: mov dword ptr [ebp - 0x8c], 0 */ 10010 MEM32(ebp + (-0x88)) = 0; /* 0x361262AC: mov dword ptr [ebp - 0x88], 0 */ 10011 RECOMP_ICALL(0x360FCA70u); /* 0x361262B6: call 0x360fca70 */ /* not lifted */ 10012 RECOMP_FLAGS_IN(); 10013 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361262BB: fld dword ptr [ebp - 0x38] */ 10014 _st[0] += (double)*(float*)ADDR(ebp + (-0x90)); /* 0x361262BE: fadd dword ptr [ebp - 0x90] */ 10015 edx = MEM32(ebp + (-0x38)); /* 0x361262C4: mov edx, dword ptr [ebp - 0x38] */ 10016 eax = MEM32(ebp + (-0x34)); /* 0x361262C7: mov eax, dword ptr [ebp - 0x34] */ 10017 ecx = MEM32(ebp + (-0x30)); /* 0x361262CA: mov ecx, dword ptr [ebp - 0x30] */ 10018 MEM32(ebp + (-0x58)) = eax; /* 0x361262CD: mov dword ptr [ebp - 0x58], eax */ 10019 MEM32(ebp + (-0x5C)) = edx; /* 0x361262D0: mov dword ptr [ebp - 0x5c], edx */ 10020 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x361262D3: fstp dword ptr [ebp - 0x5c] */ 10021 fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x361262D6: fld dword ptr [ebp - 0x8c] */ 10022 eax = MEM32(ebp + (-0x5C)); /* 0x361262DC: mov eax, dword ptr [ebp - 0x5c] */ 10023 _st[0] += (double)*(float*)ADDR(ebp + (-0x58)); /* 0x361262DF: fadd dword ptr [ebp - 0x58] */ 10024 MEM32(ebp + (-0x54)) = ecx; /* 0x361262E2: mov dword ptr [ebp - 0x54], ecx */ 10025 edx = edi + (-0x4); /* 0x361262E5: lea edx, [edi - 4] */ 10026 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10028 esp = esp + 4; /* 0x361262E8: add esp, 4 */ 10029 _flag_k = FK_ADD; 10030 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361262EB: fstp dword ptr [ebp - 0x58] */ 10031 fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x361262EE: fld dword ptr [ebp - 0x88] */ 10032 _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361262F4: fadd dword ptr [ebp - 0x54] */ 10033 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361262F7: fstp dword ptr [ebp - 0x54] */ 10034 MEM32(edx) = eax; /* 0x361262FA: mov dword ptr [edx], eax */ 10035 ecx = MEM32(ebp + (-0x58)); /* 0x361262FC: mov ecx, dword ptr [ebp - 0x58] */ 10036 MEM32(edx + 0x4) = ecx; /* 0x361262FF: mov dword ptr [edx + 4], ecx */ 10037 eax = MEM32(ebp + (-0x54)); /* 0x36126302: mov eax, dword ptr [ebp - 0x54] */ 10038 ecx = MEM32(ebp + (-0xC)); /* 0x36126305: mov ecx, dword ptr [ebp - 0xc] */ 10039 MEM32(edx + 0x8) = eax; /* 0x36126308: mov dword ptr [edx + 8], eax */ 10040 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3612630B: fld dword ptr [esi + 0xc] */ 10041 _st[0] += (double)*(float*)ADDR(0x36170EB0); /* 0x3612630E: fadd dword ptr [0x36170eb0] */ 10042 eax = MEM32(ebp + (-0x14)); /* 0x36126314: mov eax, dword ptr [ebp - 0x14] */ 10043 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10044 ecx = ecx + 1; /* 0x36126317: inc ecx */ 10045 _flag_k = FK_INC; 10046 MEM32(ebp + (-0xC)) = ecx; /* 0x36126318: mov dword ptr [ebp - 0xc], ecx */ 10047 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x200) = _v; } /* 0x3612631B: fstp dword ptr [eax + 0x200] */ 10048 MEM32(eax) = 2; /* 0x36126321: mov dword ptr [eax], 2 */ 10049 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1); 10050 MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) - 1; /* 0x36126327: dec dword ptr [ebp - 0x18] */ 10051 _flag_k = FK_DEC; 10052 goto L_36126334; /* 0x3612632A: jmp 0x36126334 */ 10053 L_3612632C: 10054 ecx = MEM32(esi + 0x38); /* 0x3612632C: mov ecx, dword ptr [esi + 0x38] */ 10055 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612632F: mov byte ptr [ecx + ebx + 0x1c], 0 */ 10056 L_36126334: 10057 edx = MEM32(ebp + (-0x14)); /* 0x36126334: mov edx, dword ptr [ebp - 0x14] */ 10058 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 10059 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10060 ebx = ebx + 0x20u; /* 0x36126337: add ebx, 0x20 */ 10061 _flag_k = FK_ADD; 10062 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 10063 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10064 edx = edx + 4; /* 0x3612633A: add edx, 4 */ 10065 _flag_k = FK_ADD; 10066 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 10067 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10068 edi = edi + 0xCu; /* 0x3612633D: add edi, 0xc */ 10069 _flag_k = FK_ADD; 10070 /* cmp ebx, 0x1000u */ /* 0x36126340: cmp ebx, 0x1000 */ 10071 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 10072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10073 _flag_k = FK_CMP; 10074 MEM32(ebp + (-0x14)) = edx; /* 0x36126346: mov dword ptr [ebp - 0x14], edx */ 10075 MEM32(ebp + (-0x1C)) = ebx; /* 0x36126349: mov dword ptr [ebp - 0x1c], ebx */ 10076 RECOMP_BACKEDGE(); 10077 if (CMP_L(_flag_a, _flag_b)) goto L_36125CB1; /* 0x3612634C: jl 0x36125cb1 */ 10078 L_36126352: 10079 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126352: mov al, byte ptr [esi + 0x163c] */ 10080 /* test LO8(eax), LO8(eax) */ /* 0x36126358: test al, al */ 10081 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10082 _cf = 0; 10083 _flag_k = FK_NARROW(FK_TEST, 24); 10084 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612635A: je 0x361275ac */ 10085 L_36126360: 10086 eax = MEM32(ebp + (-0xC)); /* 0x36126360: mov eax, dword ptr [ebp - 0xc] */ 10087 /* test eax, eax */ /* 0x36126363: test eax, eax */ 10088 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10089 _cf = 0; 10090 _flag_k = FK_TEST; 10091 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126365: jne 0x361275ac */ 10092 L_3612636B: 10093 goto L_361275A8; /* 0x3612636B: jmp 0x361275a8 */ 10094 L_361275A8: 10095 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 10096 L_361275AC: 10097 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 10098 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 10099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10100 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 10101 _flag_k = FK_ADD; 10102 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 10103 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10104 _cf = 0; 10105 _flag_k = FK_TEST; 10106 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 10107 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 10108 L_361275B7: 10109 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 10110 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 10111 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 10112 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 10113 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 10114 RECOMP_FLAGS_IN(); 10115 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 10116 PUSH32(esp, eax); /* 0x361275CD: push eax */ 10117 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 10118 RECOMP_FLAGS_IN(); 10119 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 10120 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 10121 RECOMP_FLAGS_IN(); 10122 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 10123 PUSH32(esp, eax); /* 0x361275E2: push eax */ 10124 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 10125 RECOMP_FLAGS_IN(); 10126 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 10127 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 10128 RECOMP_FLAGS_IN(); 10129 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 10130 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10131 _cf = (LO8(eax)) != 0; 10132 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 10133 _flag_k = FK_NARROW(FK_CMP, 24); 10134 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 10135 eax = _sc ? 0xFFFFFFFFu : 0; 10136 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 10137 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 10138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10139 eax = eax + 1; /* 0x361275F6: inc eax */ 10140 _flag_k = FK_INC; 10141 PUSH32(esp, eax); /* 0x361275F7: push eax */ 10142 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 10143 RECOMP_FLAGS_IN(); 10144 L_361275FE: 10145 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 10146 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 10147 esp = ebp; /* 0x36127600: mov esp, ebp */ 10148 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 10149 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 10150 RECOMP_REGS_OUT(); 10151 } 10152 10153 void sub_36126334(void) { 10154 int _fpu_cmp = 0; 10155 uint32_t _cf = 0; 10156 int _df = 1; 10157 uint32_t _flag_k = FK_NONE; 10158 uint32_t _flag_a = 0, _flag_b = 0; 10159 uint32_t _itail_tgt = 0; 10160 RECOMP_REGS_LOCALS 10161 RECOMP_ENTER(0x36126334u); 10162 10163 goto L_36126334; 10164 L_36125CB1: 10165 eax = MEM32(ebp + (-0x14)); /* 0x36125CB1: mov eax, dword ptr [ebp - 0x14] */ 10166 fp_push(*(float*)&MEM32(eax + 0x200)); /* 0x36125CB4: fld dword ptr [eax + 0x200] */ 10167 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36125CBA: fcomp dword ptr [esi + 0xc] */ 10168 fp_pop(); 10169 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125CBD: fnstsw ax */ 10170 /* test HI8(eax), 0x41u */ /* 0x36125CBF: test ah, 0x41 */ 10171 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 10172 _cf = 0; 10173 _flag_k = FK_NARROW(FK_TEST, 24); 10174 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612623A; /* 0x36125CC2: jne 0x3612623a */ 10175 L_36125CC8: 10176 ecx = MEM32(ebp + (-0x14)); /* 0x36125CC8: mov ecx, dword ptr [ebp - 0x14] */ 10177 eax = MEM32(ecx); /* 0x36125CCB: mov eax, dword ptr [ecx] */ 10178 edx = eax + eax * 2; /* 0x36125CCD: lea edx, [eax + eax*2] */ 10179 MEM32(ebp + (-0x8)) = eax; /* 0x36125CD0: mov dword ptr [ebp - 8], eax */ 10180 ecx = edi + (-0x4); /* 0x36125CD3: lea ecx, [edi - 4] */ 10181 eax = ecx; /* 0x36125CD6: mov eax, ecx */ 10182 ebx = MEM32(eax); /* 0x36125CD8: mov ebx, dword ptr [eax] */ 10183 MEM32(ebp + (-0x118)) = ebx; /* 0x36125CDA: mov dword ptr [ebp - 0x118], ebx */ 10184 fp_push(*(float*)&MEM32(ebp + (-0x118))); /* 0x36125CE0: fld dword ptr [ebp - 0x118] */ 10185 ebx = MEM32(eax + 0x4); /* 0x36125CE6: mov ebx, dword ptr [eax + 4] */ 10186 MEM32(ebp + (-0x114)) = ebx; /* 0x36125CE9: mov dword ptr [ebp - 0x114], ebx */ 10187 eax = MEM32(eax + 0x8); /* 0x36125CEF: mov eax, dword ptr [eax + 8] */ 10188 MEM32(ebp + (-0x110)) = eax; /* 0x36125CF2: mov dword ptr [ebp - 0x110], eax */ 10189 if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36125CF8: shl edx, 3 */ 10190 if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10191 edx = edx << 3u; /* 0x36125CF8: shl edx, 3 */ 10192 _st[0] -= (double)*(float*)ADDR(edx + 0x3630D6A0); /* 0x36125CFB: fsub dword ptr [edx + 0x3630d6a0] */ 10193 MEM32(ebp + (-0x4)) = edx; /* 0x36125D01: mov dword ptr [ebp - 4], edx */ 10194 fp_push(*(float*)&MEM32(ebp + (-0x114))); /* 0x36125D04: fld dword ptr [ebp - 0x114] */ 10195 eax = MEM32(ebp + (-0x4)); /* 0x36125D0A: mov eax, dword ptr [ebp - 4] */ 10196 _st[0] -= (double)*(float*)ADDR(edx + 0x3630D6A4); /* 0x36125D0D: fsub dword ptr [edx + 0x3630d6a4] */ 10197 edx = edx + 0x3630D6A0; /* 0x36125D13: lea edx, [edx + 0x3630d6a0] */ 10198 fp_push(*(float*)&MEM32(ebp + (-0x110))); /* 0x36125D19: fld dword ptr [ebp - 0x110] */ 10199 ebx = eax + 0x3630D6AC; /* 0x36125D1F: lea ebx, [eax + 0x3630d6ac] */ 10200 _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x36125D25: fsub dword ptr [edx + 8] */ 10201 eax = MEM32(ebp + (-0x8)); /* 0x36125D28: mov eax, dword ptr [ebp - 8] */ 10202 _st[0] *= (double)*(float*)ADDR(ebx + 0x8); /* 0x36125D2B: fmul dword ptr [ebx + 8] */ 10203 fp_xch(1); /* 0x36125D2E: fxch st(1) */ 10204 _st[0] *= (double)*(float*)ADDR(ebx + 0x4); /* 0x36125D30: fmul dword ptr [ebx + 4] */ 10205 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125D33: faddp st(1) */ 10206 fp_xch(1); /* 0x36125D35: fxch st(1) */ 10207 _st[0] *= (double)*(float*)ADDR(ebx); /* 0x36125D37: fmul dword ptr [ebx] */ 10208 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125D39: faddp st(1) */ 10209 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x36125D3B: fdiv dword ptr [eax*4 + 0x3630d688] */ 10210 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36125D42: fcom dword ptr [0x3617040c] */ 10211 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125D48: fnstsw ax */ 10212 /* test HI8(eax), 1 */ /* 0x36125D4A: test ah, 1 */ 10213 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10214 _cf = 0; 10215 _flag_k = FK_NARROW(FK_TEST, 24); 10216 if (TEST_Z(_flag_a, _flag_b)) goto L_36125D59; /* 0x36125D4D: je 0x36125d59 */ 10217 L_36125D4F: 10218 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125D4F: fstp st(0) */ 10219 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36125D51: fld dword ptr [0x3617040c] */ 10220 goto L_36125D6E; /* 0x36125D57: jmp 0x36125d6e */ 10221 L_36125D59: 10222 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36125D59: fcom dword ptr [0x36170380] */ 10223 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125D5F: fnstsw ax */ 10224 /* test HI8(eax), 0x41u */ /* 0x36125D61: test ah, 0x41 */ 10225 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 10226 _cf = 0; 10227 _flag_k = FK_NARROW(FK_TEST, 24); 10228 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125D6E; /* 0x36125D64: jne 0x36125d6e */ 10229 L_36125D66: 10230 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125D66: fstp st(0) */ 10231 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125D68: fld dword ptr [0x36170380] */ 10232 L_36125D6E: 10233 eax = MEM32(ebx); /* 0x36125D6E: mov eax, dword ptr [ebx] */ 10234 MEM32(ebp + (-0x80)) = eax; /* 0x36125D70: mov dword ptr [ebp - 0x80], eax */ 10235 fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x36125D73: fld dword ptr [ebp - 0x80] */ 10236 eax = MEM32(ebx + 0x4); /* 0x36125D76: mov eax, dword ptr [ebx + 4] */ 10237 _st[0] *= _st[1]; /* 0x36125D79: fmul st(1) */ 10238 MEM32(ebp + (-0x7C)) = eax; /* 0x36125D7B: mov dword ptr [ebp - 0x7c], eax */ 10239 eax = MEM32(ebx + 0x8); /* 0x36125D7E: mov eax, dword ptr [ebx + 8] */ 10240 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x36125D81: fstp dword ptr [ebp - 0x80] */ 10241 MEM32(ebp + (-0x78)) = eax; /* 0x36125D84: mov dword ptr [ebp - 0x78], eax */ 10242 eax = MEM32(edx); /* 0x36125D87: mov eax, dword ptr [edx] */ 10243 fp_push(_st[0]); /* 0x36125D89: fld st(0) */ 10244 MEM32(ebp + (-0x50)) = eax; /* 0x36125D8B: mov dword ptr [ebp - 0x50], eax */ 10245 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125D8E: fmul dword ptr [ebp - 0x7c] */ 10246 eax = MEM32(edx + 0x4); /* 0x36125D91: mov eax, dword ptr [edx + 4] */ 10247 edx = MEM32(edx + 0x8); /* 0x36125D94: mov edx, dword ptr [edx + 8] */ 10248 MEM32(ebp + (-0x4C)) = eax; /* 0x36125D97: mov dword ptr [ebp - 0x4c], eax */ 10249 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36125D9A: fstp dword ptr [ebp - 0x7c] */ 10250 MEM32(ebp + (-0x48)) = edx; /* 0x36125D9D: mov dword ptr [ebp - 0x48], edx */ 10251 ebx = 6; /* 0x36125DA0: mov ebx, 6 */ 10252 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x36125DA5: fmul dword ptr [ebp - 0x78] */ 10253 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36125DA8: fld dword ptr [ebp - 0x50] */ 10254 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36125DAB: fadd dword ptr [ebp - 0x80] */ 10255 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36125DAE: fstp dword ptr [ebp - 0x50] */ 10256 eax = MEM32(ebp + (-0x50)); /* 0x36125DB1: mov eax, dword ptr [ebp - 0x50] */ 10257 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36125DB4: fld dword ptr [ebp - 0x4c] */ 10258 MEM32(ebp + (-0xC0)) = eax; /* 0x36125DB7: mov dword ptr [ebp - 0xc0], eax */ 10259 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36125DBD: fadd dword ptr [ebp - 0x7c] */ 10260 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36125DC0: fstp dword ptr [ebp - 0x4c] */ 10261 edx = MEM32(ebp + (-0x4C)); /* 0x36125DC3: mov edx, dword ptr [ebp - 0x4c] */ 10262 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36125DC6: fld dword ptr [ebp - 0x48] */ 10263 MEM32(ebp + (-0xBC)) = edx; /* 0x36125DC9: mov dword ptr [ebp - 0xbc], edx */ 10264 edx = MEM32(ebp + (-0x84)); /* 0x36125DCF: mov edx, dword ptr [ebp - 0x84] */ 10265 _st[0] += _st[1]; /* 0x36125DD5: fadd st(1) */ 10266 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36125DD7: fstp dword ptr [ebp - 0x48] */ 10267 eax = MEM32(ebp + (-0x48)); /* 0x36125DDA: mov eax, dword ptr [ebp - 0x48] */ 10268 MEM32(ebp + (-0xB8)) = eax; /* 0x36125DDD: mov dword ptr [ebp - 0xb8], eax */ 10269 eax = MEM32(ebp + (-0x8)); /* 0x36125DE3: mov eax, dword ptr [ebp - 8] */ 10270 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125DE6: fstp st(0) */ 10271 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10272 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10273 eax = eax + edx; /* 0x36125DE8: add eax, edx */ 10274 _flag_k = FK_ADD; 10275 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36125DEA: cdq */ 10276 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x36125DEB: idiv ebx */ 10277 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 10278 else { eax = 0; edx = 0; } } 10279 MEM32(ebp + (-0x8)) = edx; /* 0x36125DED: mov dword ptr [ebp - 8], edx */ 10280 ebx = edx + edx * 2; /* 0x36125DF0: lea ebx, [edx + edx*2] */ 10281 edx = ecx; /* 0x36125DF3: mov edx, ecx */ 10282 eax = MEM32(edx); /* 0x36125DF5: mov eax, dword ptr [edx] */ 10283 MEM32(ebp + (-0xE8)) = eax; /* 0x36125DF7: mov dword ptr [ebp - 0xe8], eax */ 10284 fp_push(*(float*)&MEM32(ebp + (-0xE8))); /* 0x36125DFD: fld dword ptr [ebp - 0xe8] */ 10285 eax = MEM32(edx + 0x4); /* 0x36125E03: mov eax, dword ptr [edx + 4] */ 10286 MEM32(ebp + (-0xE4)) = eax; /* 0x36125E06: mov dword ptr [ebp - 0xe4], eax */ 10287 edx = MEM32(edx + 0x8); /* 0x36125E0C: mov edx, dword ptr [edx + 8] */ 10288 MEM32(ebp + (-0xE0)) = edx; /* 0x36125E0F: mov dword ptr [ebp - 0xe0], edx */ 10289 if (3u) _cf = (((ebx) >> 29) & 1u); /* 0x36125E15: shl ebx, 3 */ 10290 if (3u) { _flag_a = recomp_flags_pack((ebx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10291 ebx = ebx << 3u; /* 0x36125E15: shl ebx, 3 */ 10292 _st[0] -= (double)*(float*)ADDR(ebx + 0x3630D6A0); /* 0x36125E18: fsub dword ptr [ebx + 0x3630d6a0] */ 10293 MEM32(ebp + (-0x4)) = ebx; /* 0x36125E1E: mov dword ptr [ebp - 4], ebx */ 10294 fp_push(*(float*)&MEM32(ebp + (-0xE4))); /* 0x36125E21: fld dword ptr [ebp - 0xe4] */ 10295 eax = MEM32(ebp + (-0x4)); /* 0x36125E27: mov eax, dword ptr [ebp - 4] */ 10296 _st[0] -= (double)*(float*)ADDR(ebx + 0x3630D6A4); /* 0x36125E2A: fsub dword ptr [ebx + 0x3630d6a4] */ 10297 ebx = ebx + 0x3630D6A0; /* 0x36125E30: lea ebx, [ebx + 0x3630d6a0] */ 10298 fp_push(*(float*)&MEM32(ebp + (-0xE0))); /* 0x36125E36: fld dword ptr [ebp - 0xe0] */ 10299 edx = eax + 0x3630D6AC; /* 0x36125E3C: lea edx, [eax + 0x3630d6ac] */ 10300 _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x36125E42: fsub dword ptr [ebx + 8] */ 10301 eax = MEM32(ebp + (-0x8)); /* 0x36125E45: mov eax, dword ptr [ebp - 8] */ 10302 _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x36125E48: fmul dword ptr [edx + 8] */ 10303 fp_xch(1); /* 0x36125E4B: fxch st(1) */ 10304 _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x36125E4D: fmul dword ptr [edx + 4] */ 10305 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125E50: faddp st(1) */ 10306 fp_xch(1); /* 0x36125E52: fxch st(1) */ 10307 _st[0] *= (double)*(float*)ADDR(edx); /* 0x36125E54: fmul dword ptr [edx] */ 10308 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125E56: faddp st(1) */ 10309 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x36125E58: fdiv dword ptr [eax*4 + 0x3630d688] */ 10310 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36125E5F: fcom dword ptr [0x3617040c] */ 10311 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125E65: fnstsw ax */ 10312 /* test HI8(eax), 1 */ /* 0x36125E67: test ah, 1 */ 10313 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10314 _cf = 0; 10315 _flag_k = FK_NARROW(FK_TEST, 24); 10316 if (TEST_Z(_flag_a, _flag_b)) goto L_36125E76; /* 0x36125E6A: je 0x36125e76 */ 10317 L_36125E6C: 10318 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125E6C: fstp st(0) */ 10319 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36125E6E: fld dword ptr [0x3617040c] */ 10320 goto L_36125E8B; /* 0x36125E74: jmp 0x36125e8b */ 10321 L_36125E76: 10322 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36125E76: fcom dword ptr [0x36170380] */ 10323 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125E7C: fnstsw ax */ 10324 /* test HI8(eax), 0x41u */ /* 0x36125E7E: test ah, 0x41 */ 10325 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 10326 _cf = 0; 10327 _flag_k = FK_NARROW(FK_TEST, 24); 10328 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125E8B; /* 0x36125E81: jne 0x36125e8b */ 10329 L_36125E83: 10330 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125E83: fstp st(0) */ 10331 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36125E85: fld dword ptr [0x36170380] */ 10332 L_36125E8B: 10333 eax = MEM32(edx); /* 0x36125E8B: mov eax, dword ptr [edx] */ 10334 MEM32(ebp + (-0x9C)) = eax; /* 0x36125E8D: mov dword ptr [ebp - 0x9c], eax */ 10335 fp_push(*(float*)&MEM32(ebp + (-0x9C))); /* 0x36125E93: fld dword ptr [ebp - 0x9c] */ 10336 _st[0] *= _st[1]; /* 0x36125E99: fmul st(1) */ 10337 eax = MEM32(edx + 0x4); /* 0x36125E9B: mov eax, dword ptr [edx + 4] */ 10338 edx = MEM32(edx + 0x8); /* 0x36125E9E: mov edx, dword ptr [edx + 8] */ 10339 MEM32(ebp + (-0x98)) = eax; /* 0x36125EA1: mov dword ptr [ebp - 0x98], eax */ 10340 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36125EA7: fstp dword ptr [ebp - 0x9c] */ 10341 eax = MEM32(ebx); /* 0x36125EAD: mov eax, dword ptr [ebx] */ 10342 MEM32(ebp + (-0xA8)) = eax; /* 0x36125EAF: mov dword ptr [ebp - 0xa8], eax */ 10343 fp_push(_st[0]); /* 0x36125EB5: fld st(0) */ 10344 eax = MEM32(ebx + 0x8); /* 0x36125EB7: mov eax, dword ptr [ebx + 8] */ 10345 _st[0] *= (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125EBA: fmul dword ptr [ebp - 0x98] */ 10346 MEM32(ebp + (-0x94)) = edx; /* 0x36125EC0: mov dword ptr [ebp - 0x94], edx */ 10347 edx = MEM32(ebx + 0x4); /* 0x36125EC6: mov edx, dword ptr [ebx + 4] */ 10348 MEM32(ebp + (-0xA4)) = edx; /* 0x36125EC9: mov dword ptr [ebp - 0xa4], edx */ 10349 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x36125ECF: fstp dword ptr [ebp - 0x98] */ 10350 MEM32(ebp + (-0xA0)) = eax; /* 0x36125ED5: mov dword ptr [ebp - 0xa0], eax */ 10351 _st[0] *= (double)*(float*)ADDR(ebp + (-0x94)); /* 0x36125EDB: fmul dword ptr [ebp - 0x94] */ 10352 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36125EE1: fld dword ptr [ebp - 0xa8] */ 10353 _st[0] += (double)*(float*)ADDR(ebp + (-0x9C)); /* 0x36125EE7: fadd dword ptr [ebp - 0x9c] */ 10354 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x36125EED: fstp dword ptr [ebp - 0xa8] */ 10355 eax = MEM32(ebp + (-0xA8)); /* 0x36125EF3: mov eax, dword ptr [ebp - 0xa8] */ 10356 fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x36125EF9: fld dword ptr [ebp - 0xa4] */ 10357 MEM32(ebp + (-0xF4)) = eax; /* 0x36125EFF: mov dword ptr [ebp - 0xf4], eax */ 10358 _st[0] += (double)*(float*)ADDR(ebp + (-0x98)); /* 0x36125F05: fadd dword ptr [ebp - 0x98] */ 10359 MEM32(ebp + (-0x128)) = eax; /* 0x36125F0B: mov dword ptr [ebp - 0x128], eax */ 10360 eax = MEM32(ebp + (-0x50)); /* 0x36125F11: mov eax, dword ptr [ebp - 0x50] */ 10361 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36125F14: fstp dword ptr [ebp - 0xa4] */ 10362 edx = MEM32(ebp + (-0xA4)); /* 0x36125F1A: mov edx, dword ptr [ebp - 0xa4] */ 10363 fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x36125F20: fld dword ptr [ebp - 0xa0] */ 10364 MEM32(ebp + (-0x124)) = edx; /* 0x36125F26: mov dword ptr [ebp - 0x124], edx */ 10365 _st[0] += _st[1]; /* 0x36125F2C: fadd st(1) */ 10366 MEM32(ebp + (-0xF0)) = edx; /* 0x36125F2E: mov dword ptr [ebp - 0xf0], edx */ 10367 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36125F34: fstp dword ptr [ebp - 0xa0] */ 10368 ebx = MEM32(ebp + (-0xA0)); /* 0x36125F3A: mov ebx, dword ptr [ebp - 0xa0] */ 10369 edx = ebx; /* 0x36125F40: mov edx, ebx */ 10370 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125F42: fstp st(0) */ 10371 MEM32(ebp + (-0x120)) = edx; /* 0x36125F44: mov dword ptr [ebp - 0x120], edx */ 10372 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x36125F4A: fld dword ptr [ebp - 0xa8] */ 10373 edx = MEM32(ebp + (-0x4C)); /* 0x36125F50: mov edx, dword ptr [ebp - 0x4c] */ 10374 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36125F53: fsub dword ptr [ecx] */ 10375 fp_push(*(float*)&MEM32(ebp + (-0x124))); /* 0x36125F55: fld dword ptr [ebp - 0x124] */ 10376 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36125F5B: fsub dword ptr [edi] */ 10377 fp_push(*(float*)&MEM32(ebp + (-0x120))); /* 0x36125F5D: fld dword ptr [ebp - 0x120] */ 10378 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36125F63: fsub dword ptr [edi + 4] */ 10379 MEM32(ebp + (-0x68)) = eax; /* 0x36125F66: mov dword ptr [ebp - 0x68], eax */ 10380 eax = MEM32(ebp + (-0x48)); /* 0x36125F69: mov eax, dword ptr [ebp - 0x48] */ 10381 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36125F6C: fld dword ptr [ebp - 0x50] */ 10382 MEM32(ebp + (-0x60)) = eax; /* 0x36125F6F: mov dword ptr [ebp - 0x60], eax */ 10383 MEM32(ebp + (-0x64)) = edx; /* 0x36125F72: mov dword ptr [ebp - 0x64], edx */ 10384 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36125F75: fsub dword ptr [ecx] */ 10385 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36125F77: fld dword ptr [ebp - 0x64] */ 10386 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36125F7A: fsub dword ptr [edi] */ 10387 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36125F7C: fld dword ptr [ebp - 0x60] */ 10388 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36125F7F: fsub dword ptr [edi + 4] */ 10389 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x36125F82: fstp dword ptr [ebp - 0x60] */ 10390 fp_push(_st[2]); /* 0x36125F85: fld st(2) */ 10391 _st[0] *= _st[3]; /* 0x36125F87: fmul st(3) */ 10392 fp_push(_st[4]); /* 0x36125F89: fld st(4) */ 10393 _st[0] *= _st[5]; /* 0x36125F8B: fmul st(5) */ 10394 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F8D: faddp st(1) */ 10395 fp_push(_st[5]); /* 0x36125F8F: fld st(5) */ 10396 _st[0] *= _st[6]; /* 0x36125F91: fmul st(6) */ 10397 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F93: faddp st(1) */ 10398 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36125F95: fld dword ptr [ebp - 0x60] */ 10399 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x36125F98: fmul dword ptr [ebp - 0x60] */ 10400 fp_push(_st[2]); /* 0x36125F9B: fld st(2) */ 10401 _st[0] *= _st[3]; /* 0x36125F9D: fmul st(3) */ 10402 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125F9F: faddp st(1) */ 10403 fp_push(_st[3]); /* 0x36125FA1: fld st(3) */ 10404 _st[0] *= _st[4]; /* 0x36125FA3: fmul st(4) */ 10405 { double _v = fp_pop(); _st[0] += _v; } /* 0x36125FA5: faddp st(1) */ 10406 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x36125FA7: fcompp */ 10407 fp_pop(); fp_pop(); 10408 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FA9: fstp st(0) */ 10409 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FAB: fstp st(0) */ 10410 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FAD: fstp st(0) */ 10411 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36125FAF: fnstsw ax */ 10412 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FB1: fstp st(0) */ 10413 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36125FB3: fstp st(0) */ 10414 /* test HI8(eax), 0x41u */ /* 0x36125FB5: test ah, 0x41 */ 10415 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 10416 _cf = 0; 10417 _flag_k = FK_NARROW(FK_TEST, 24); 10418 if (TEST_NZ(_flag_a, _flag_b)) goto L_36125FE0; /* 0x36125FB8: jne 0x36125fe0 */ 10419 L_36125FBA: 10420 edx = MEM32(ebp + (-0x14)); /* 0x36125FBA: mov edx, dword ptr [ebp - 0x14] */ 10421 eax = MEM32(ebp + (-0x8)); /* 0x36125FBD: mov eax, dword ptr [ebp - 8] */ 10422 MEM32(edx) = eax; /* 0x36125FC0: mov dword ptr [edx], eax */ 10423 edx = MEM32(ebp + (-0xF4)); /* 0x36125FC2: mov edx, dword ptr [ebp - 0xf4] */ 10424 eax = MEM32(ebp + (-0xF0)); /* 0x36125FC8: mov eax, dword ptr [ebp - 0xf0] */ 10425 MEM32(ebp + (-0xC0)) = edx; /* 0x36125FCE: mov dword ptr [ebp - 0xc0], edx */ 10426 MEM32(ebp + (-0xBC)) = eax; /* 0x36125FD4: mov dword ptr [ebp - 0xbc], eax */ 10427 MEM32(ebp + (-0xB8)) = ebx; /* 0x36125FDA: mov dword ptr [ebp - 0xb8], ebx */ 10428 L_36125FE0: 10429 eax = edi + (-0x604); /* 0x36125FE0: lea eax, [edi - 0x604] */ 10430 edx = eax; /* 0x36125FE6: mov edx, eax */ 10431 ebx = MEM32(edx); /* 0x36125FE8: mov ebx, dword ptr [edx] */ 10432 MEM32(ebp + (-0xDC)) = ebx; /* 0x36125FEA: mov dword ptr [ebp - 0xdc], ebx */ 10433 fp_push(*(float*)&MEM32(ebp + (-0xDC))); /* 0x36125FF0: fld dword ptr [ebp - 0xdc] */ 10434 ebx = MEM32(edx + 0x4); /* 0x36125FF6: mov ebx, dword ptr [edx + 4] */ 10435 _st[0] += _st[0]; /* 0x36125FF9: fadd st(0), st(0) */ 10436 MEM32(ebp + (-0xD8)) = ebx; /* 0x36125FFB: mov dword ptr [ebp - 0xd8], ebx */ 10437 fp_push(*(float*)&MEM32(ebp + (-0xD8))); /* 0x36126001: fld dword ptr [ebp - 0xd8] */ 10438 edx = MEM32(edx + 0x8); /* 0x36126007: mov edx, dword ptr [edx + 8] */ 10439 _st[0] += _st[0]; /* 0x3612600A: fadd st(0), st(0) */ 10440 MEM32(ebp + (-0xD4)) = edx; /* 0x3612600C: mov dword ptr [ebp - 0xd4], edx */ 10441 edx = MEM32(ebp + (-0xC0)); /* 0x36126012: mov edx, dword ptr [ebp - 0xc0] */ 10442 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36126018: fstp dword ptr [ebp - 0xd8] */ 10443 MEM32(ebp + (-0x28)) = edx; /* 0x3612601E: mov dword ptr [ebp - 0x28], edx */ 10444 fp_push(*(float*)&MEM32(ebp + (-0xD4))); /* 0x36126021: fld dword ptr [ebp - 0xd4] */ 10445 edx = MEM32(ebp + (-0xBC)); /* 0x36126027: mov edx, dword ptr [ebp - 0xbc] */ 10446 _st[0] += _st[0]; /* 0x3612602D: fadd st(0), st(0) */ 10447 MEM32(ebp + (-0x24)) = edx; /* 0x3612602F: mov dword ptr [ebp - 0x24], edx */ 10448 edx = MEM32(ebp + (-0xB8)); /* 0x36126032: mov edx, dword ptr [ebp - 0xb8] */ 10449 MEM32(ebp + (-0x20)) = edx; /* 0x36126038: mov dword ptr [ebp - 0x20], edx */ 10450 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3612603B: fstp dword ptr [ebp - 0xd4] */ 10451 fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36126041: fld dword ptr [ebp - 0xc0] */ 10452 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36126047: fsub dword ptr [ecx] */ 10453 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36126049: fstp dword ptr [ebp - 0x28] */ 10454 edx = MEM32(ebp + (-0x28)); /* 0x3612604C: mov edx, dword ptr [ebp - 0x28] */ 10455 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3612604F: fld dword ptr [ebp - 0x24] */ 10456 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36126052: fsub dword ptr [edi] */ 10457 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36126054: fstp dword ptr [ebp - 0x24] */ 10458 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36126057: fld dword ptr [ebp - 0x20] */ 10459 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3612605A: fsub dword ptr [edi + 4] */ 10460 MEM32(ebp + (-0x74)) = edx; /* 0x3612605D: mov dword ptr [ebp - 0x74], edx */ 10461 edx = MEM32(ebp + (-0x24)); /* 0x36126060: mov edx, dword ptr [ebp - 0x24] */ 10462 MEM32(ebp + (-0x70)) = edx; /* 0x36126063: mov dword ptr [ebp - 0x70], edx */ 10463 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36126066: fstp dword ptr [ebp - 0x20] */ 10464 edx = MEM32(ebp + (-0x20)); /* 0x36126069: mov edx, dword ptr [ebp - 0x20] */ 10465 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3612606C: fld dword ptr [ebp - 0x28] */ 10466 MEM32(ebp + (-0x6C)) = edx; /* 0x3612606F: mov dword ptr [ebp - 0x6c], edx */ 10467 _st[0] -= _st[1]; /* 0x36126072: fsub st(1) */ 10468 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36126074: fstp dword ptr [ebp - 0x74] */ 10469 edx = MEM32(ebp + (-0x74)); /* 0x36126077: mov edx, dword ptr [ebp - 0x74] */ 10470 MEM32(ebp + (-0xB4)) = edx; /* 0x3612607A: mov dword ptr [ebp - 0xb4], edx */ 10471 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126080: fstp st(0) */ 10472 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36126082: fld dword ptr [ebp - 0x70] */ 10473 _st[0] -= (double)*(float*)ADDR(ebp + (-0xD8)); /* 0x36126085: fsub dword ptr [ebp - 0xd8] */ 10474 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3612608B: fstp dword ptr [ebp - 0x70] */ 10475 edx = MEM32(ebp + (-0x70)); /* 0x3612608E: mov edx, dword ptr [ebp - 0x70] */ 10476 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36126091: fld dword ptr [ebp - 0x6c] */ 10477 MEM32(ebp + (-0xB0)) = edx; /* 0x36126094: mov dword ptr [ebp - 0xb0], edx */ 10478 _st[0] -= (double)*(float*)ADDR(ebp + (-0xD4)); /* 0x3612609A: fsub dword ptr [ebp - 0xd4] */ 10479 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x361260A0: fstp dword ptr [ebp - 0x6c] */ 10480 edx = MEM32(ebp + (-0x6C)); /* 0x361260A3: mov edx, dword ptr [ebp - 0x6c] */ 10481 fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x361260A6: fld dword ptr [ebp - 0x74] */ 10482 MEM32(ebp + (-0xAC)) = edx; /* 0x361260A9: mov dword ptr [ebp - 0xac], edx */ 10483 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260AF: fmul dword ptr [0x36170d68] */ 10484 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x361260B5: fstp dword ptr [ebp - 0xb4] */ 10485 edx = MEM32(ebp + (-0xB4)); /* 0x361260BB: mov edx, dword ptr [ebp - 0xb4] */ 10486 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361260C1: fld dword ptr [ebp - 0xb0] */ 10487 MEM32(ebp + (-0x10C)) = edx; /* 0x361260C7: mov dword ptr [ebp - 0x10c], edx */ 10488 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260CD: fmul dword ptr [0x36170d68] */ 10489 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x361260D3: fstp dword ptr [ebp - 0xb0] */ 10490 edx = MEM32(ebp + (-0xB0)); /* 0x361260D9: mov edx, dword ptr [ebp - 0xb0] */ 10491 fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361260DF: fld dword ptr [ebp - 0xac] */ 10492 MEM32(ebp + (-0x108)) = edx; /* 0x361260E5: mov dword ptr [ebp - 0x108], edx */ 10493 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361260EB: fmul dword ptr [0x36170d68] */ 10494 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361260F1: fstp dword ptr [ebp - 0xac] */ 10495 edx = MEM32(ebp + (-0xAC)); /* 0x361260F7: mov edx, dword ptr [ebp - 0xac] */ 10496 fp_push(*(float*)&MEM32(ebp + (-0xB4))); /* 0x361260FD: fld dword ptr [ebp - 0xb4] */ 10497 MEM32(ebp + (-0x104)) = edx; /* 0x36126103: mov dword ptr [ebp - 0x104], edx */ 10498 _st[0] += (double)*(float*)ADDR(eax); /* 0x36126109: fadd dword ptr [eax] */ 10499 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3612610B: fstp dword ptr [eax] */ 10500 fp_push(*(float*)&MEM32(ebp + (-0x108))); /* 0x3612610D: fld dword ptr [ebp - 0x108] */ 10501 _st[0] += (double)*(float*)ADDR(edi + (-0x600)); /* 0x36126113: fadd dword ptr [edi - 0x600] */ 10502 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x600)) = _v; } /* 0x36126119: fstp dword ptr [edi - 0x600] */ 10503 fp_push(*(float*)&MEM32(ebp + (-0x104))); /* 0x3612611F: fld dword ptr [ebp - 0x104] */ 10504 _st[0] += (double)*(float*)ADDR(edi + (-0x5FC)); /* 0x36126125: fadd dword ptr [edi - 0x5fc] */ 10505 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x5FC)) = _v; } /* 0x3612612B: fstp dword ptr [edi - 0x5fc] */ 10506 edx = MEM32(eax); /* 0x36126131: mov edx, dword ptr [eax] */ 10507 MEM32(ebp + (-0x44)) = edx; /* 0x36126133: mov dword ptr [ebp - 0x44], edx */ 10508 edx = MEM32(eax + 0x4); /* 0x36126136: mov edx, dword ptr [eax + 4] */ 10509 MEM32(ebp + (-0x40)) = edx; /* 0x36126139: mov dword ptr [ebp - 0x40], edx */ 10510 eax = MEM32(eax + 0x8); /* 0x3612613C: mov eax, dword ptr [eax + 8] */ 10511 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3612613F: fld dword ptr [ebp - 0x44] */ 10512 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126142: fmul dword ptr [0x36170d68] */ 10513 MEM32(ebp + (-0x3C)) = eax; /* 0x36126148: mov dword ptr [ebp - 0x3c], eax */ 10514 ebx = MEM32(ebp + (-0x1C)); /* 0x3612614B: mov ebx, dword ptr [ebp - 0x1c] */ 10515 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3612614E: fstp dword ptr [ebp - 0x44] */ 10516 edx = MEM32(ebp + (-0x44)); /* 0x36126151: mov edx, dword ptr [ebp - 0x44] */ 10517 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36126154: fld dword ptr [ebp - 0x40] */ 10518 MEM32(ebp + (-0x100)) = edx; /* 0x36126157: mov dword ptr [ebp - 0x100], edx */ 10519 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612615D: fmul dword ptr [0x36170d68] */ 10520 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36126163: fstp dword ptr [ebp - 0x40] */ 10521 eax = MEM32(ebp + (-0x40)); /* 0x36126166: mov eax, dword ptr [ebp - 0x40] */ 10522 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36126169: fld dword ptr [ebp - 0x3c] */ 10523 MEM32(ebp + (-0xFC)) = eax; /* 0x3612616C: mov dword ptr [ebp - 0xfc], eax */ 10524 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126172: fmul dword ptr [0x36170d68] */ 10525 eax = ebx; /* 0x36126178: mov eax, ebx */ 10526 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612617A: fstp dword ptr [ebp - 0x3c] */ 10527 edx = MEM32(ebp + (-0x3C)); /* 0x3612617D: mov edx, dword ptr [ebp - 0x3c] */ 10528 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126180: fld dword ptr [ebp - 0x44] */ 10529 MEM32(ebp + (-0xF8)) = edx; /* 0x36126183: mov dword ptr [ebp - 0xf8], edx */ 10530 _st[0] += (double)*(float*)ADDR(ecx); /* 0x36126189: fadd dword ptr [ecx] */ 10531 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x3612618B: fstp dword ptr [ecx] */ 10532 fp_push(*(float*)&MEM32(ebp + (-0xFC))); /* 0x3612618D: fld dword ptr [ebp - 0xfc] */ 10533 _st[0] += (double)*(float*)ADDR(edi); /* 0x36126193: fadd dword ptr [edi] */ 10534 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36126195: fstp dword ptr [edi] */ 10535 fp_push(*(float*)&MEM32(ebp + (-0xF8))); /* 0x36126197: fld dword ptr [ebp - 0xf8] */ 10536 _st[0] += (double)*(float*)ADDR(edi + 0x4); /* 0x3612619D: fadd dword ptr [edi + 4] */ 10537 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x361261A0: fstp dword ptr [edi + 4] */ 10538 edx = MEM32(esi + 0x38); /* 0x361261A3: mov edx, dword ptr [esi + 0x38] */ 10539 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10541 eax = eax + edx; /* 0x361261A6: add eax, edx */ 10542 _flag_k = FK_ADD; 10543 edx = MEM32(ecx); /* 0x361261A8: mov edx, dword ptr [ecx] */ 10544 MEM32(eax) = edx; /* 0x361261AA: mov dword ptr [eax], edx */ 10545 edx = MEM32(ecx + 0x4); /* 0x361261AC: mov edx, dword ptr [ecx + 4] */ 10546 MEM32(eax + 0x4) = edx; /* 0x361261AF: mov dword ptr [eax + 4], edx */ 10547 ecx = MEM32(ecx + 0x8); /* 0x361261B2: mov ecx, dword ptr [ecx + 8] */ 10548 edx = MEM32(ebp + (-0x14)); /* 0x361261B5: mov edx, dword ptr [ebp - 0x14] */ 10549 MEM32(eax + 0x8) = ecx; /* 0x361261B8: mov dword ptr [eax + 8], ecx */ 10550 fp_push(*(float*)&MEM32(edx + 0x200)); /* 0x361261BB: fld dword ptr [edx + 0x200] */ 10551 _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x361261C1: fsub dword ptr [esi + 0xc] */ 10552 _st[0] = (double)*(float*)ADDR(0x36170EB0) - _st[0]; /* 0x361261C4: fsubr dword ptr [0x36170eb0] */ 10553 _st[0] *= (double)*(float*)ADDR(0x36177778); /* 0x361261CA: fmul dword ptr [0x36177778] */ 10554 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361261D0: fst dword ptr [ebp - 4] */ 10555 _st[0] *= *(double*)ADDR(0x36177770); /* 0x361261D3: fmul qword ptr [0x36177770] */ 10556 RECOMP_ICALL(0x3615FD8Cu); /* 0x361261D9: call 0x3615fd8c */ /* not lifted */ 10557 RECOMP_FLAGS_IN(); 10558 edx = MEM32(ebp + (-0x4)); /* 0x361261DE: mov edx, dword ptr [ebp - 4] */ 10559 ecx = 0xFu; /* 0x361261E1: mov ecx, 0xf */ 10560 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 10561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10562 ecx = ecx - eax; /* 0x361261E6: sub ecx, eax */ 10563 _flag_k = FK_CMP; 10564 fp_push((double)(int32_t)MEM32(ecx * 4 + 0x362E5AC0)); /* 0x361261E8: fild dword ptr [ecx*4 + 0x362e5ac0] */ 10565 eax = MEM32(esi + 0x38); /* 0x361261EF: mov eax, dword ptr [esi + 0x38] */ 10566 MEM32(ebp + (-0x1C)) = ecx; /* 0x361261F2: mov dword ptr [ebp - 0x1c], ecx */ 10567 PUSH32(esp, edx); /* 0x361261F5: push edx */ 10568 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361261F6: fmul dword ptr [ebp - 4] */ 10569 _st[0] *= (double)*(float*)ADDR(0x36170850); /* 0x361261F9: fmul dword ptr [0x36170850] */ 10570 { float _v = (float)_st[0]; *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x361261FF: fst dword ptr [ebx + eax + 0xc] */ 10571 ecx = MEM32(esi + 0x38); /* 0x36126203: mov ecx, dword ptr [esi + 0x38] */ 10572 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x36126206: fstp dword ptr [ebx + ecx + 0x10] */ 10573 ecx = esi + 0x168C; /* 0x3612620A: lea ecx, [esi + 0x168c] */ 10574 RECOMP_ICALL(0x36137D80u); /* 0x36126210: call 0x36137d80 */ /* not lifted */ 10575 RECOMP_FLAGS_IN(); 10576 ecx = MEM32(esi + 0x38); /* 0x36126215: mov ecx, dword ptr [esi + 0x38] */ 10577 MEM32(ebx + ecx + 0x14) = eax; /* 0x36126218: mov dword ptr [ebx + ecx + 0x14], eax */ 10578 edx = MEM32(esi + 0x38); /* 0x3612621C: mov edx, dword ptr [esi + 0x38] */ 10579 eax = MEM32(ebp + (-0x1C)); /* 0x3612621F: mov eax, dword ptr [ebp - 0x1c] */ 10580 MEM32(ebx + edx + 0x18) = eax; /* 0x36126222: mov dword ptr [ebx + edx + 0x18], eax */ 10581 eax = MEM32(ebp + (-0xC)); /* 0x36126226: mov eax, dword ptr [ebp - 0xc] */ 10582 ecx = MEM32(esi + 0x38); /* 0x36126229: mov ecx, dword ptr [esi + 0x38] */ 10583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10584 eax = eax + 1; /* 0x3612622C: inc eax */ 10585 _flag_k = FK_INC; 10586 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x3612622D: mov byte ptr [ebx + ecx + 0x1c], 1 */ 10587 MEM32(ebp + (-0xC)) = eax; /* 0x36126232: mov dword ptr [ebp - 0xc], eax */ 10588 goto L_36126334; /* 0x36126235: jmp 0x36126334 */ 10589 L_3612623A: 10590 eax = MEM32(ebp + (-0x18)); /* 0x3612623A: mov eax, dword ptr [ebp - 0x18] */ 10591 /* test eax, eax */ /* 0x3612623D: test eax, eax */ 10592 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10593 _cf = 0; 10594 _flag_k = FK_TEST; 10595 if (TEST_Z(_flag_a, _flag_b)) goto L_3612632C; /* 0x3612623F: je 0x3612632c */ 10596 L_36126245: 10597 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126245: mov al, byte ptr [esi + 0x163c] */ 10598 /* test LO8(eax), LO8(eax) */ /* 0x3612624B: test al, al */ 10599 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10600 _cf = 0; 10601 _flag_k = FK_NARROW(FK_TEST, 24); 10602 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612632C; /* 0x3612624D: jne 0x3612632c */ 10603 L_36126253: 10604 MEM32(ebp + (-0xD0)) = 0; /* 0x36126253: mov dword ptr [ebp - 0xd0], 0 */ 10605 eax = MEM32(ebp + (-0xD0)); /* 0x3612625D: mov eax, dword ptr [ebp - 0xd0] */ 10606 MEM32(ebp + (-0xCC)) = 0; /* 0x36126263: mov dword ptr [ebp - 0xcc], 0 */ 10607 MEM32(ebp + (-0xC8)) = 0; /* 0x3612626D: mov dword ptr [ebp - 0xc8], 0 */ 10608 edx = edi + (-0x604); /* 0x36126277: lea edx, [edi - 0x604] */ 10609 MEM32(edx) = eax; /* 0x3612627D: mov dword ptr [edx], eax */ 10610 ecx = MEM32(ebp + (-0xCC)); /* 0x3612627F: mov ecx, dword ptr [ebp - 0xcc] */ 10611 MEM32(edx + 0x4) = ecx; /* 0x36126285: mov dword ptr [edx + 4], ecx */ 10612 eax = MEM32(ebp + (-0xC8)); /* 0x36126288: mov eax, dword ptr [ebp - 0xc8] */ 10613 MEM32(edx + 0x8) = eax; /* 0x3612628E: mov dword ptr [edx + 8], eax */ 10614 ecx = ebp + (-0x90); /* 0x36126291: lea ecx, [ebp - 0x90] */ 10615 PUSH32(esp, ecx); /* 0x36126297: push ecx */ 10616 MEM32(ebp + (-0x90)) = 0; /* 0x36126298: mov dword ptr [ebp - 0x90], 0 */ 10617 MEM32(ebp + (-0x8C)) = 0; /* 0x361262A2: mov dword ptr [ebp - 0x8c], 0 */ 10618 MEM32(ebp + (-0x88)) = 0; /* 0x361262AC: mov dword ptr [ebp - 0x88], 0 */ 10619 RECOMP_ICALL(0x360FCA70u); /* 0x361262B6: call 0x360fca70 */ /* not lifted */ 10620 RECOMP_FLAGS_IN(); 10621 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361262BB: fld dword ptr [ebp - 0x38] */ 10622 _st[0] += (double)*(float*)ADDR(ebp + (-0x90)); /* 0x361262BE: fadd dword ptr [ebp - 0x90] */ 10623 edx = MEM32(ebp + (-0x38)); /* 0x361262C4: mov edx, dword ptr [ebp - 0x38] */ 10624 eax = MEM32(ebp + (-0x34)); /* 0x361262C7: mov eax, dword ptr [ebp - 0x34] */ 10625 ecx = MEM32(ebp + (-0x30)); /* 0x361262CA: mov ecx, dword ptr [ebp - 0x30] */ 10626 MEM32(ebp + (-0x58)) = eax; /* 0x361262CD: mov dword ptr [ebp - 0x58], eax */ 10627 MEM32(ebp + (-0x5C)) = edx; /* 0x361262D0: mov dword ptr [ebp - 0x5c], edx */ 10628 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x361262D3: fstp dword ptr [ebp - 0x5c] */ 10629 fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x361262D6: fld dword ptr [ebp - 0x8c] */ 10630 eax = MEM32(ebp + (-0x5C)); /* 0x361262DC: mov eax, dword ptr [ebp - 0x5c] */ 10631 _st[0] += (double)*(float*)ADDR(ebp + (-0x58)); /* 0x361262DF: fadd dword ptr [ebp - 0x58] */ 10632 MEM32(ebp + (-0x54)) = ecx; /* 0x361262E2: mov dword ptr [ebp - 0x54], ecx */ 10633 edx = edi + (-0x4); /* 0x361262E5: lea edx, [edi - 4] */ 10634 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10636 esp = esp + 4; /* 0x361262E8: add esp, 4 */ 10637 _flag_k = FK_ADD; 10638 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361262EB: fstp dword ptr [ebp - 0x58] */ 10639 fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x361262EE: fld dword ptr [ebp - 0x88] */ 10640 _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361262F4: fadd dword ptr [ebp - 0x54] */ 10641 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361262F7: fstp dword ptr [ebp - 0x54] */ 10642 MEM32(edx) = eax; /* 0x361262FA: mov dword ptr [edx], eax */ 10643 ecx = MEM32(ebp + (-0x58)); /* 0x361262FC: mov ecx, dword ptr [ebp - 0x58] */ 10644 MEM32(edx + 0x4) = ecx; /* 0x361262FF: mov dword ptr [edx + 4], ecx */ 10645 eax = MEM32(ebp + (-0x54)); /* 0x36126302: mov eax, dword ptr [ebp - 0x54] */ 10646 ecx = MEM32(ebp + (-0xC)); /* 0x36126305: mov ecx, dword ptr [ebp - 0xc] */ 10647 MEM32(edx + 0x8) = eax; /* 0x36126308: mov dword ptr [edx + 8], eax */ 10648 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3612630B: fld dword ptr [esi + 0xc] */ 10649 _st[0] += (double)*(float*)ADDR(0x36170EB0); /* 0x3612630E: fadd dword ptr [0x36170eb0] */ 10650 eax = MEM32(ebp + (-0x14)); /* 0x36126314: mov eax, dword ptr [ebp - 0x14] */ 10651 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10652 ecx = ecx + 1; /* 0x36126317: inc ecx */ 10653 _flag_k = FK_INC; 10654 MEM32(ebp + (-0xC)) = ecx; /* 0x36126318: mov dword ptr [ebp - 0xc], ecx */ 10655 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x200) = _v; } /* 0x3612631B: fstp dword ptr [eax + 0x200] */ 10656 MEM32(eax) = 2; /* 0x36126321: mov dword ptr [eax], 2 */ 10657 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1); 10658 MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) - 1; /* 0x36126327: dec dword ptr [ebp - 0x18] */ 10659 _flag_k = FK_DEC; 10660 goto L_36126334; /* 0x3612632A: jmp 0x36126334 */ 10661 L_3612632C: 10662 ecx = MEM32(esi + 0x38); /* 0x3612632C: mov ecx, dword ptr [esi + 0x38] */ 10663 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612632F: mov byte ptr [ecx + ebx + 0x1c], 0 */ 10664 L_36126334: 10665 edx = MEM32(ebp + (-0x14)); /* 0x36126334: mov edx, dword ptr [ebp - 0x14] */ 10666 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 10667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10668 ebx = ebx + 0x20u; /* 0x36126337: add ebx, 0x20 */ 10669 _flag_k = FK_ADD; 10670 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 10671 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10672 edx = edx + 4; /* 0x3612633A: add edx, 4 */ 10673 _flag_k = FK_ADD; 10674 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 10675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10676 edi = edi + 0xCu; /* 0x3612633D: add edi, 0xc */ 10677 _flag_k = FK_ADD; 10678 /* cmp ebx, 0x1000u */ /* 0x36126340: cmp ebx, 0x1000 */ 10679 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 10680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10681 _flag_k = FK_CMP; 10682 MEM32(ebp + (-0x14)) = edx; /* 0x36126346: mov dword ptr [ebp - 0x14], edx */ 10683 MEM32(ebp + (-0x1C)) = ebx; /* 0x36126349: mov dword ptr [ebp - 0x1c], ebx */ 10684 RECOMP_BACKEDGE(); 10685 if (CMP_L(_flag_a, _flag_b)) goto L_36125CB1; /* 0x3612634C: jl 0x36125cb1 */ 10686 L_36126352: 10687 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126352: mov al, byte ptr [esi + 0x163c] */ 10688 /* test LO8(eax), LO8(eax) */ /* 0x36126358: test al, al */ 10689 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10690 _cf = 0; 10691 _flag_k = FK_NARROW(FK_TEST, 24); 10692 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612635A: je 0x361275ac */ 10693 L_36126360: 10694 eax = MEM32(ebp + (-0xC)); /* 0x36126360: mov eax, dword ptr [ebp - 0xc] */ 10695 /* test eax, eax */ /* 0x36126363: test eax, eax */ 10696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10697 _cf = 0; 10698 _flag_k = FK_TEST; 10699 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126365: jne 0x361275ac */ 10700 L_3612636B: 10701 goto L_361275A8; /* 0x3612636B: jmp 0x361275a8 */ 10702 L_361275A8: 10703 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 10704 L_361275AC: 10705 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 10706 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 10707 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10708 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 10709 _flag_k = FK_ADD; 10710 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 10711 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10712 _cf = 0; 10713 _flag_k = FK_TEST; 10714 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 10715 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 10716 L_361275B7: 10717 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 10718 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 10719 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 10720 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 10721 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 10722 RECOMP_FLAGS_IN(); 10723 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 10724 PUSH32(esp, eax); /* 0x361275CD: push eax */ 10725 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 10726 RECOMP_FLAGS_IN(); 10727 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 10728 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 10729 RECOMP_FLAGS_IN(); 10730 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 10731 PUSH32(esp, eax); /* 0x361275E2: push eax */ 10732 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 10733 RECOMP_FLAGS_IN(); 10734 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 10735 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 10736 RECOMP_FLAGS_IN(); 10737 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 10738 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10739 _cf = (LO8(eax)) != 0; 10740 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 10741 _flag_k = FK_NARROW(FK_CMP, 24); 10742 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 10743 eax = _sc ? 0xFFFFFFFFu : 0; 10744 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 10745 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 10746 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10747 eax = eax + 1; /* 0x361275F6: inc eax */ 10748 _flag_k = FK_INC; 10749 PUSH32(esp, eax); /* 0x361275F7: push eax */ 10750 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 10751 RECOMP_FLAGS_IN(); 10752 L_361275FE: 10753 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 10754 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 10755 esp = ebp; /* 0x36127600: mov esp, ebp */ 10756 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 10757 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 10758 RECOMP_REGS_OUT(); 10759 } 10760 10761 void sub_36126437(void) { 10762 int _fpu_cmp = 0; 10763 uint32_t _cf = 0; 10764 int _df = 1; 10765 uint32_t _flag_k = FK_NONE; 10766 uint32_t _flag_a = 0, _flag_b = 0; 10767 uint32_t _itail_tgt = 0; 10768 RECOMP_REGS_LOCALS 10769 RECOMP_ENTER(0x36126437u); 10770 10771 L_36126437: 10772 ecx = MEM32(ebp + (-0x14)); /* 0x36126437: mov ecx, dword ptr [ebp - 0x14] */ 10773 fp_push(*(float*)&MEM32(ecx)); /* 0x3612643A: fld dword ptr [ecx] */ 10774 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x3612643C: fcomp dword ptr [esi + 0xc] */ 10775 fp_pop(); 10776 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3612643F: fnstsw ax */ 10777 /* test HI8(eax), 0x41u */ /* 0x36126441: test ah, 0x41 */ 10778 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 10779 _cf = 0; 10780 _flag_k = FK_NARROW(FK_TEST, 24); 10781 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612675A; /* 0x36126444: jne 0x3612675a */ 10782 L_3612644A: 10783 eax = MEM32(ecx + (-0x200)); /* 0x3612644A: mov eax, dword ptr [ecx - 0x200] */ 10784 MEM32(ebp + (-0x1C)) = eax; /* 0x36126450: mov dword ptr [ebp - 0x1c], eax */ 10785 eax = eax + eax * 2; /* 0x36126453: lea eax, [eax + eax*2] */ 10786 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x36126456: shl eax, 3 */ 10787 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10788 eax = eax << 3u; /* 0x36126456: shl eax, 3 */ 10789 MEM32(ebp + (-0x84)) = eax; /* 0x36126459: mov dword ptr [ebp - 0x84], eax */ 10790 eax = eax + 0x3630D6A0; /* 0x3612645F: lea eax, [eax + 0x3630d6a0] */ 10791 MEM32(ebp + (-0x4)) = eax; /* 0x36126465: mov dword ptr [ebp - 4], eax */ 10792 ecx = edi + 0x5F8; /* 0x36126468: lea ecx, [edi + 0x5f8] */ 10793 edx = ecx; /* 0x3612646E: mov edx, ecx */ 10794 eax = MEM32(edx); /* 0x36126470: mov eax, dword ptr [edx] */ 10795 MEM32(ebp + (-0xD0)) = eax; /* 0x36126472: mov dword ptr [ebp - 0xd0], eax */ 10796 fp_push(*(float*)&MEM32(ebp + (-0xD0))); /* 0x36126478: fld dword ptr [ebp - 0xd0] */ 10797 eax = MEM32(edx + 0x4); /* 0x3612647E: mov eax, dword ptr [edx + 4] */ 10798 MEM32(ebp + (-0xCC)) = eax; /* 0x36126481: mov dword ptr [ebp - 0xcc], eax */ 10799 eax = MEM32(ebp + (-0x4)); /* 0x36126487: mov eax, dword ptr [ebp - 4] */ 10800 edx = MEM32(edx + 0x8); /* 0x3612648A: mov edx, dword ptr [edx + 8] */ 10801 MEM32(ebp + (-0xC8)) = edx; /* 0x3612648D: mov dword ptr [ebp - 0xc8], edx */ 10802 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36126493: fsub dword ptr [eax] */ 10803 fp_push(*(float*)&MEM32(ebp + (-0xCC))); /* 0x36126495: fld dword ptr [ebp - 0xcc] */ 10804 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x3612649B: fsub dword ptr [eax + 4] */ 10805 fp_push(*(float*)&MEM32(ebp + (-0xC8))); /* 0x3612649E: fld dword ptr [ebp - 0xc8] */ 10806 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x361264A4: fsub dword ptr [eax + 8] */ 10807 eax = MEM32(ebp + (-0x84)); /* 0x361264A7: mov eax, dword ptr [ebp - 0x84] */ 10808 edx = eax + 0x3630D6AC; /* 0x361264AD: lea edx, [eax + 0x3630d6ac] */ 10809 eax = MEM32(ebp + (-0x1C)); /* 0x361264B3: mov eax, dword ptr [ebp - 0x1c] */ 10810 _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x361264B6: fmul dword ptr [edx + 8] */ 10811 fp_xch(1); /* 0x361264B9: fxch st(1) */ 10812 _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x361264BB: fmul dword ptr [edx + 4] */ 10813 { double _v = fp_pop(); _st[0] += _v; } /* 0x361264BE: faddp st(1) */ 10814 fp_xch(1); /* 0x361264C0: fxch st(1) */ 10815 _st[0] *= (double)*(float*)ADDR(edx); /* 0x361264C2: fmul dword ptr [edx] */ 10816 { double _v = fp_pop(); _st[0] += _v; } /* 0x361264C4: faddp st(1) */ 10817 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x361264C6: fdiv dword ptr [eax*4 + 0x3630d688] */ 10818 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361264CD: fcom dword ptr [0x3617040c] */ 10819 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361264D3: fnstsw ax */ 10820 /* test HI8(eax), 1 */ /* 0x361264D5: test ah, 1 */ 10821 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10822 _cf = 0; 10823 _flag_k = FK_NARROW(FK_TEST, 24); 10824 if (TEST_Z(_flag_a, _flag_b)) goto L_361264E4; /* 0x361264D8: je 0x361264e4 */ 10825 L_361264DA: 10826 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361264DA: fstp st(0) */ 10827 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x361264DC: fld dword ptr [0x3617040c] */ 10828 goto L_361264F9; /* 0x361264E2: jmp 0x361264f9 */ 10829 L_361264E4: 10830 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x361264E4: fcom dword ptr [0x36170380] */ 10831 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361264EA: fnstsw ax */ 10832 /* test HI8(eax), 0x41u */ /* 0x361264EC: test ah, 0x41 */ 10833 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 10834 _cf = 0; 10835 _flag_k = FK_NARROW(FK_TEST, 24); 10836 if (TEST_NZ(_flag_a, _flag_b)) goto L_361264F9; /* 0x361264EF: jne 0x361264f9 */ 10837 L_361264F1: 10838 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361264F1: fstp st(0) */ 10839 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361264F3: fld dword ptr [0x36170380] */ 10840 L_361264F9: 10841 eax = MEM32(edx); /* 0x361264F9: mov eax, dword ptr [edx] */ 10842 MEM32(ebp + (-0x80)) = eax; /* 0x361264FB: mov dword ptr [ebp - 0x80], eax */ 10843 fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x361264FE: fld dword ptr [ebp - 0x80] */ 10844 _st[0] *= _st[1]; /* 0x36126501: fmul st(1) */ 10845 eax = MEM32(edx + 0x4); /* 0x36126503: mov eax, dword ptr [edx + 4] */ 10846 edx = MEM32(edx + 0x8); /* 0x36126506: mov edx, dword ptr [edx + 8] */ 10847 MEM32(ebp + (-0x7C)) = eax; /* 0x36126509: mov dword ptr [ebp - 0x7c], eax */ 10848 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3612650C: fstp dword ptr [ebp - 0x80] */ 10849 eax = MEM32(ebp + (-0x4)); /* 0x3612650F: mov eax, dword ptr [ebp - 4] */ 10850 MEM32(ebp + (-0x78)) = edx; /* 0x36126512: mov dword ptr [ebp - 0x78], edx */ 10851 fp_push(_st[0]); /* 0x36126515: fld st(0) */ 10852 edx = MEM32(eax); /* 0x36126517: mov edx, dword ptr [eax] */ 10853 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36126519: fmul dword ptr [ebp - 0x7c] */ 10854 MEM32(ebp + (-0x44)) = edx; /* 0x3612651C: mov dword ptr [ebp - 0x44], edx */ 10855 edx = MEM32(eax + 0x4); /* 0x3612651F: mov edx, dword ptr [eax + 4] */ 10856 eax = MEM32(eax + 0x8); /* 0x36126522: mov eax, dword ptr [eax + 8] */ 10857 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36126525: fstp dword ptr [ebp - 0x7c] */ 10858 MEM32(ebp + (-0x40)) = edx; /* 0x36126528: mov dword ptr [ebp - 0x40], edx */ 10859 MEM32(ebp + (-0x3C)) = eax; /* 0x3612652B: mov dword ptr [ebp - 0x3c], eax */ 10860 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x3612652E: fmul dword ptr [ebp - 0x78] */ 10861 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126531: fld dword ptr [ebp - 0x44] */ 10862 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36126534: fadd dword ptr [ebp - 0x80] */ 10863 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36126537: fstp dword ptr [ebp - 0x44] */ 10864 edx = MEM32(ebp + (-0x44)); /* 0x3612653A: mov edx, dword ptr [ebp - 0x44] */ 10865 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x3612653D: fld dword ptr [ebp - 0x40] */ 10866 MEM32(ebp + (-0xA8)) = edx; /* 0x36126540: mov dword ptr [ebp - 0xa8], edx */ 10867 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36126546: fadd dword ptr [ebp - 0x7c] */ 10868 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36126549: fstp dword ptr [ebp - 0x40] */ 10869 eax = MEM32(ebp + (-0x40)); /* 0x3612654C: mov eax, dword ptr [ebp - 0x40] */ 10870 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3612654F: fld dword ptr [ebp - 0x3c] */ 10871 MEM32(ebp + (-0xA4)) = eax; /* 0x36126552: mov dword ptr [ebp - 0xa4], eax */ 10872 _st[0] += _st[1]; /* 0x36126558: fadd st(1) */ 10873 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612655A: fstp dword ptr [ebp - 0x3c] */ 10874 edx = MEM32(ebp + (-0x3C)); /* 0x3612655D: mov edx, dword ptr [ebp - 0x3c] */ 10875 MEM32(ebp + (-0xA0)) = edx; /* 0x36126560: mov dword ptr [ebp - 0xa0], edx */ 10876 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126566: fstp st(0) */ 10877 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126568: fld dword ptr [ebp - 0x44] */ 10878 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x3612656B: fsub dword ptr [ecx] */ 10879 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x3612656D: fstp dword ptr [ebp - 0xa8] */ 10880 eax = MEM32(ebp + (-0xA8)); /* 0x36126573: mov eax, dword ptr [ebp - 0xa8] */ 10881 fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x36126579: fld dword ptr [ebp - 0xa4] */ 10882 _st[0] -= (double)*(float*)ADDR(edi + 0x5FC); /* 0x3612657F: fsub dword ptr [edi + 0x5fc] */ 10883 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36126585: fstp dword ptr [ebp - 0xa4] */ 10884 edx = MEM32(ebp + (-0xA4)); /* 0x3612658B: mov edx, dword ptr [ebp - 0xa4] */ 10885 fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x36126591: fld dword ptr [ebp - 0xa0] */ 10886 _st[0] -= (double)*(float*)ADDR(edi + 0x600); /* 0x36126597: fsub dword ptr [edi + 0x600] */ 10887 MEM32(ebp + (-0x28)) = eax; /* 0x3612659D: mov dword ptr [ebp - 0x28], eax */ 10888 MEM32(ebp + (-0x68)) = eax; /* 0x361265A0: mov dword ptr [ebp - 0x68], eax */ 10889 eax = MEM32(ebp + (-0xA4)); /* 0x361265A3: mov eax, dword ptr [ebp - 0xa4] */ 10890 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x361265A9: fstp dword ptr [ebp - 0xa0] */ 10891 MEM32(ebp + (-0x24)) = eax; /* 0x361265AF: mov dword ptr [ebp - 0x24], eax */ 10892 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x361265B2: fld dword ptr [ebp - 0xa8] */ 10893 MEM32(ebp + (-0x64)) = edx; /* 0x361265B8: mov dword ptr [ebp - 0x64], edx */ 10894 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265BB: fmul dword ptr [0x36170d68] */ 10895 edx = MEM32(ebp + (-0xA0)); /* 0x361265C1: mov edx, dword ptr [ebp - 0xa0] */ 10896 MEM32(ebp + (-0x20)) = edx; /* 0x361265C7: mov dword ptr [ebp - 0x20], edx */ 10897 MEM32(ebp + (-0x60)) = edx; /* 0x361265CA: mov dword ptr [ebp - 0x60], edx */ 10898 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361265CD: fstp dword ptr [ebp - 0x28] */ 10899 edx = MEM32(ebp + (-0x28)); /* 0x361265D0: mov edx, dword ptr [ebp - 0x28] */ 10900 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361265D3: fld dword ptr [ebp - 0x24] */ 10901 MEM32(ebp + (-0x100)) = edx; /* 0x361265D6: mov dword ptr [ebp - 0x100], edx */ 10902 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265DC: fmul dword ptr [0x36170d68] */ 10903 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361265E2: fstp dword ptr [ebp - 0x24] */ 10904 eax = MEM32(ebp + (-0x24)); /* 0x361265E5: mov eax, dword ptr [ebp - 0x24] */ 10905 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361265E8: fld dword ptr [ebp - 0x20] */ 10906 MEM32(ebp + (-0xFC)) = eax; /* 0x361265EB: mov dword ptr [ebp - 0xfc], eax */ 10907 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265F1: fmul dword ptr [0x36170d68] */ 10908 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361265F7: fstp dword ptr [ebp - 0x20] */ 10909 edx = MEM32(ebp + (-0x20)); /* 0x361265FA: mov edx, dword ptr [ebp - 0x20] */ 10910 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361265FD: fld dword ptr [ebp - 0x28] */ 10911 MEM32(ebp + (-0xF8)) = edx; /* 0x36126600: mov dword ptr [ebp - 0xf8], edx */ 10912 _st[0] += (double)*(float*)ADDR(edi + (-0x8)); /* 0x36126606: fadd dword ptr [edi - 8] */ 10913 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x8)) = _v; } /* 0x36126609: fstp dword ptr [edi - 8] */ 10914 fp_push(*(float*)&MEM32(ebp + (-0xFC))); /* 0x3612660C: fld dword ptr [ebp - 0xfc] */ 10915 _st[0] += (double)*(float*)ADDR(edi + (-0x4)); /* 0x36126612: fadd dword ptr [edi - 4] */ 10916 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x4)) = _v; } /* 0x36126615: fstp dword ptr [edi - 4] */ 10917 fp_push(*(float*)&MEM32(ebp + (-0xF8))); /* 0x36126618: fld dword ptr [ebp - 0xf8] */ 10918 _st[0] += (double)*(float*)ADDR(edi); /* 0x3612661E: fadd dword ptr [edi] */ 10919 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36126620: fstp dword ptr [edi] */ 10920 eax = MEM32(edi + (-0x8)); /* 0x36126622: mov eax, dword ptr [edi - 8] */ 10921 MEM32(ebp + (-0x38)) = eax; /* 0x36126625: mov dword ptr [ebp - 0x38], eax */ 10922 edx = MEM32(edi + (-0x4)); /* 0x36126628: mov edx, dword ptr [edi - 4] */ 10923 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3612662B: fld dword ptr [ebp - 0x38] */ 10924 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612662E: fmul dword ptr [0x36170d68] */ 10925 MEM32(ebp + (-0x34)) = edx; /* 0x36126634: mov dword ptr [ebp - 0x34], edx */ 10926 eax = MEM32(edi); /* 0x36126637: mov eax, dword ptr [edi] */ 10927 MEM32(ebp + (-0x30)) = eax; /* 0x36126639: mov dword ptr [ebp - 0x30], eax */ 10928 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3612663C: fstp dword ptr [ebp - 0x38] */ 10929 edx = MEM32(ebp + (-0x38)); /* 0x3612663F: mov edx, dword ptr [ebp - 0x38] */ 10930 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36126642: fld dword ptr [ebp - 0x34] */ 10931 MEM32(ebp + (-0x10C)) = edx; /* 0x36126645: mov dword ptr [ebp - 0x10c], edx */ 10932 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612664B: fmul dword ptr [0x36170d68] */ 10933 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36126651: fstp dword ptr [ebp - 0x34] */ 10934 eax = MEM32(ebp + (-0x34)); /* 0x36126654: mov eax, dword ptr [ebp - 0x34] */ 10935 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36126657: fld dword ptr [ebp - 0x30] */ 10936 MEM32(ebp + (-0x108)) = eax; /* 0x3612665A: mov dword ptr [ebp - 0x108], eax */ 10937 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126660: fmul dword ptr [0x36170d68] */ 10938 eax = ebx; /* 0x36126666: mov eax, ebx */ 10939 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36126668: fstp dword ptr [ebp - 0x30] */ 10940 edx = MEM32(ebp + (-0x30)); /* 0x3612666B: mov edx, dword ptr [ebp - 0x30] */ 10941 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3612666E: fld dword ptr [ebp - 0x38] */ 10942 MEM32(ebp + (-0x104)) = edx; /* 0x36126671: mov dword ptr [ebp - 0x104], edx */ 10943 _st[0] += (double)*(float*)ADDR(ecx); /* 0x36126677: fadd dword ptr [ecx] */ 10944 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x36126679: fstp dword ptr [ecx] */ 10945 fp_push(*(float*)&MEM32(ebp + (-0x108))); /* 0x3612667B: fld dword ptr [ebp - 0x108] */ 10946 _st[0] += (double)*(float*)ADDR(edi + 0x5FC); /* 0x36126681: fadd dword ptr [edi + 0x5fc] */ 10947 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5FC) = _v; } /* 0x36126687: fstp dword ptr [edi + 0x5fc] */ 10948 fp_push(*(float*)&MEM32(ebp + (-0x104))); /* 0x3612668D: fld dword ptr [ebp - 0x104] */ 10949 _st[0] += (double)*(float*)ADDR(edi + 0x600); /* 0x36126693: fadd dword ptr [edi + 0x600] */ 10950 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x600) = _v; } /* 0x36126699: fstp dword ptr [edi + 0x600] */ 10951 edx = MEM32(esi + 0x38); /* 0x3612669F: mov edx, dword ptr [esi + 0x38] */ 10952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10953 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10954 eax = eax + edx; /* 0x361266A2: add eax, edx */ 10955 _flag_k = FK_ADD; 10956 edx = MEM32(ecx); /* 0x361266A4: mov edx, dword ptr [ecx] */ 10957 MEM32(eax) = edx; /* 0x361266A6: mov dword ptr [eax], edx */ 10958 edx = MEM32(ecx + 0x4); /* 0x361266A8: mov edx, dword ptr [ecx + 4] */ 10959 MEM32(eax + 0x4) = edx; /* 0x361266AB: mov dword ptr [eax + 4], edx */ 10960 ecx = MEM32(ecx + 0x8); /* 0x361266AE: mov ecx, dword ptr [ecx + 8] */ 10961 edx = MEM32(ebp + (-0x14)); /* 0x361266B1: mov edx, dword ptr [ebp - 0x14] */ 10962 MEM32(eax + 0x8) = ecx; /* 0x361266B4: mov dword ptr [eax + 8], ecx */ 10963 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x361266B7: fld dword ptr [esi + 0xc] */ 10964 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x361266BA: fadd dword ptr [esi + 0x16c0] */ 10965 eax = MEM32(esi + 0x38); /* 0x361266C0: mov eax, dword ptr [esi + 0x38] */ 10966 _st[0] -= (double)*(float*)ADDR(edx); /* 0x361266C3: fsub dword ptr [edx] */ 10967 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361266C5: fdiv dword ptr [esi + 0x16c0] */ 10968 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361266CB: fst dword ptr [ebp - 4] */ 10969 _st[0] *= (double)*(float*)ADDR(0x361729D0); /* 0x361266CE: fmul dword ptr [0x361729d0] */ 10970 edx = MEM32(ebp + (-0x4)); /* 0x361266D4: mov edx, dword ptr [ebp - 4] */ 10971 PUSH32(esp, edx); /* 0x361266D7: push edx */ 10972 _st[0] += (double)*(float*)ADDR(0x36174F98); /* 0x361266D8: fadd dword ptr [0x36174f98] */ 10973 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x361266DE: fmul dword ptr [esi + 0x16cc] */ 10974 { float _v = (float)_st[0]; *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x361266E4: fst dword ptr [ebx + eax + 0xc] */ 10975 ecx = MEM32(esi + 0x38); /* 0x361266E8: mov ecx, dword ptr [esi + 0x38] */ 10976 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x361266EB: fstp dword ptr [ebx + ecx + 0x10] */ 10977 ecx = esi + 0x168C; /* 0x361266EF: lea ecx, [esi + 0x168c] */ 10978 RECOMP_ICALL(0x36137D80u); /* 0x361266F5: call 0x36137d80 */ /* not lifted */ 10979 RECOMP_FLAGS_IN(); 10980 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361266FA: fld dword ptr [ebp - 4] */ 10981 ecx = MEM32(esi + 0x38); /* 0x361266FD: mov ecx, dword ptr [esi + 0x38] */ 10982 _st[0] *= *(double*)ADDR(0x36177770); /* 0x36126700: fmul qword ptr [0x36177770] */ 10983 MEM32(ebx + ecx + 0x14) = eax; /* 0x36126706: mov dword ptr [ebx + ecx + 0x14], eax */ 10984 RECOMP_ICALL(0x3615FD8Cu); /* 0x3612670A: call 0x3615fd8c */ /* not lifted */ 10985 RECOMP_FLAGS_IN(); 10986 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x3612670F: fld dword ptr [ebp - 0x64] */ 10987 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36126712: fmul dword ptr [ebp - 0x64] */ 10988 edx = MEM32(esi + 0x38); /* 0x36126715: mov edx, dword ptr [esi + 0x38] */ 10989 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36126718: fld dword ptr [ebp - 0x60] */ 10990 MEM32(ebx + edx + 0x18) = eax; /* 0x3612671B: mov dword ptr [ebx + edx + 0x18], eax */ 10991 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x3612671F: fmul dword ptr [ebp - 0x60] */ 10992 eax = MEM32(esi + 0x38); /* 0x36126722: mov eax, dword ptr [esi + 0x38] */ 10993 MEM8(ebx + eax + 0x1C) = (uint8_t)(1); /* 0x36126725: mov byte ptr [ebx + eax + 0x1c], 1 */ 10994 eax = MEM32(ebp + (-0x8)); /* 0x3612672A: mov eax, dword ptr [ebp - 8] */ 10995 { double _v = fp_pop(); _st[0] += _v; } /* 0x3612672D: faddp st(1) */ 10996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10997 eax = eax + 1; /* 0x3612672F: inc eax */ 10998 _flag_k = FK_INC; 10999 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36126730: fld dword ptr [ebp - 0x68] */ 11000 MEM32(ebp + (-0x8)) = eax; /* 0x36126733: mov dword ptr [ebp - 8], eax */ 11001 _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x36126736: fmul dword ptr [ebp - 0x68] */ 11002 { double _v = fp_pop(); _st[0] += _v; } /* 0x36126739: faddp st(1) */ 11003 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361754E4)); /* 0x3612673B: fcomp dword ptr [0x361754e4] */ 11004 fp_pop(); 11005 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36126741: fnstsw ax */ 11006 /* test HI8(eax), 1 */ /* 0x36126743: test ah, 1 */ 11007 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 11008 _cf = 0; 11009 _flag_k = FK_NARROW(FK_TEST, 24); 11010 if (TEST_Z(_flag_a, _flag_b)) goto L_361269F4; /* 0x36126746: je 0x361269f4 */ 11011 L_3612674C: 11012 ecx = MEM32(ebp + (-0x14)); /* 0x3612674C: mov ecx, dword ptr [ebp - 0x14] */ 11013 MEM32(ecx) = 0; /* 0x3612674F: mov dword ptr [ecx], 0 */ 11014 goto L_361269F4; /* 0x36126755: jmp 0x361269f4 */ 11015 L_3612675A: 11016 eax = MEM32(ebp + (-0x18)); /* 0x3612675A: mov eax, dword ptr [ebp - 0x18] */ 11017 /* test eax, eax */ /* 0x3612675D: test eax, eax */ 11018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11019 _cf = 0; 11020 _flag_k = FK_TEST; 11021 if (TEST_Z(_flag_a, _flag_b)) goto L_361269EC; /* 0x3612675F: je 0x361269ec */ 11022 L_36126765: 11023 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126765: mov al, byte ptr [esi + 0x163c] */ 11024 /* test LO8(eax), LO8(eax) */ /* 0x3612676B: test al, al */ 11025 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11026 _cf = 0; 11027 _flag_k = FK_NARROW(FK_TEST, 24); 11028 if (TEST_NZ(_flag_a, _flag_b)) goto L_361269EC; /* 0x3612676D: jne 0x361269ec */ 11029 L_36126773: 11030 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36126773: call dword ptr [0x3616f254] */ 11031 RECOMP_FLAGS_IN(); 11032 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36126779: cdq */ 11033 ecx = 6; /* 0x3612677A: mov ecx, 6 */ 11034 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3612677F: idiv ecx */ 11035 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 11036 else { eax = 0; edx = 0; } } 11037 MEM32(ebp + (-0x10)) = edx; /* 0x36126781: mov dword ptr [ebp - 0x10], edx */ 11038 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36126784: call dword ptr [0x3616f254] */ 11039 RECOMP_FLAGS_IN(); 11040 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 11041 eax = eax & 0x7FFFu; /* 0x3612678A: and eax, 0x7fff */ 11042 _cf = 0; 11043 _flag_k = FK_TEST; 11044 MEM32(ebp + (-0x84)) = eax; /* 0x3612678F: mov dword ptr [ebp - 0x84], eax */ 11045 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x36126795: fild dword ptr [ebp - 0x84] */ 11046 edx = ebp + (-0x5C); /* 0x3612679B: lea edx, [ebp - 0x5c] */ 11047 PUSH32(esp, edx); /* 0x3612679E: push edx */ 11048 MEM32(ebp + (-0x5C)) = 0; /* 0x3612679F: mov dword ptr [ebp - 0x5c], 0 */ 11049 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x361267A6: fmul dword ptr [0x36175f2c] */ 11050 MEM32(ebp + (-0x58)) = 0; /* 0x361267AC: mov dword ptr [ebp - 0x58], 0 */ 11051 MEM32(ebp + (-0x54)) = 0; /* 0x361267B3: mov dword ptr [ebp - 0x54], 0 */ 11052 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361267BA: fstp dword ptr [ebp - 0x1c] */ 11053 RECOMP_ICALL(0x360FCD10u); /* 0x361267BD: call 0x360fcd10 */ /* not lifted */ 11054 RECOMP_FLAGS_IN(); 11055 eax = MEM32(ebp + (-0x10)); /* 0x361267C2: mov eax, dword ptr [ebp - 0x10] */ 11056 fp_push(*(float*)&MEM32(eax * 4 + 0x3630D688)); /* 0x361267C5: fld dword ptr [eax*4 + 0x3630d688] */ 11057 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11059 esp = esp + 4; /* 0x361267CC: add esp, 4 */ 11060 _flag_k = FK_ADD; 11061 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361267CF: fcomp dword ptr [0x3617040c] */ 11062 fp_pop(); 11063 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361267D5: fnstsw ax */ 11064 /* test HI8(eax), 0x40u */ /* 0x361267D7: test ah, 0x40 */ 11065 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 11066 _cf = 0; 11067 _flag_k = FK_NARROW(FK_TEST, 24); 11068 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126920; /* 0x361267DA: jne 0x36126920 */ 11069 L_361267E0: 11070 eax = MEM32(ebp + (-0x10)); /* 0x361267E0: mov eax, dword ptr [ebp - 0x10] */ 11071 eax = eax + eax * 2; /* 0x361267E3: lea eax, [eax + eax*2] */ 11072 ecx = ebp + (-0x50); /* 0x361267E6: lea ecx, [ebp - 0x50] */ 11073 eax = eax * 8 + 0x3630D6AC; /* 0x361267E9: lea eax, [eax*8 + 0x3630d6ac] */ 11074 PUSH32(esp, ecx); /* 0x361267F0: push ecx */ 11075 PUSH32(esp, eax); /* 0x361267F1: push eax */ 11076 MEM32(ebp + (-0x50)) = 0; /* 0x361267F2: mov dword ptr [ebp - 0x50], 0 */ 11077 MEM32(ebp + (-0x4C)) = 0; /* 0x361267F9: mov dword ptr [ebp - 0x4c], 0 */ 11078 MEM32(ebp + (-0x48)) = 0; /* 0x36126800: mov dword ptr [ebp - 0x48], 0 */ 11079 MEM32(ebp + (-0x84)) = eax; /* 0x36126807: mov dword ptr [ebp - 0x84], eax */ 11080 RECOMP_ICALL(0x360FCE60u); /* 0x3612680D: call 0x360fce60 */ /* not lifted */ 11081 RECOMP_FLAGS_IN(); 11082 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36126812: fld dword ptr [ebp - 0x4c] */ 11083 eax = MEM32(ebp + (-0x4C)); /* 0x36126815: mov eax, dword ptr [ebp - 0x4c] */ 11084 edx = MEM32(ebp + (-0x50)); /* 0x36126818: mov edx, dword ptr [ebp - 0x50] */ 11085 ecx = MEM32(ebp + (-0x48)); /* 0x3612681B: mov ecx, dword ptr [ebp - 0x48] */ 11086 MEM32(ebp + (-0x98)) = eax; /* 0x3612681E: mov dword ptr [ebp - 0x98], eax */ 11087 eax = MEM32(ebp + (-0x84)); /* 0x36126824: mov eax, dword ptr [ebp - 0x84] */ 11088 MEM32(ebp + (-0x9C)) = edx; /* 0x3612682A: mov dword ptr [ebp - 0x9c], edx */ 11089 MEM32(ebp + (-0x94)) = ecx; /* 0x36126830: mov dword ptr [ebp - 0x94], ecx */ 11090 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x36126836: fmul dword ptr [eax + 8] */ 11091 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36126839: fld dword ptr [ebp - 0x48] */ 11092 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11093 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11094 esp = esp + 8; /* 0x3612683C: add esp, 8 */ 11095 _flag_k = FK_ADD; 11096 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x3612683F: fmul dword ptr [eax + 4] */ 11097 PUSH32(esp, 0x3F800000u); /* 0x36126842: push 0x3f800000 */ 11098 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126847: fsubp st(1) */ 11099 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36126849: fld dword ptr [ebp - 0x48] */ 11100 _st[0] *= (double)*(float*)ADDR(eax); /* 0x3612684C: fmul dword ptr [eax] */ 11101 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612684E: fld dword ptr [ebp - 0x50] */ 11102 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x36126851: fmul dword ptr [eax + 8] */ 11103 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126854: fsubp st(1) */ 11104 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x36126856: fstp dword ptr [ebp - 0x84] */ 11105 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612685C: fld dword ptr [ebp - 0x50] */ 11106 edx = MEM32(ebp + (-0x84)); /* 0x3612685F: mov edx, dword ptr [ebp - 0x84] */ 11107 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x36126865: fmul dword ptr [eax + 4] */ 11108 ecx = edx; /* 0x36126868: mov ecx, edx */ 11109 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3612686A: fld dword ptr [ebp - 0x4c] */ 11110 _st[0] *= (double)*(float*)ADDR(eax); /* 0x3612686D: fmul dword ptr [eax] */ 11111 MEM32(ebp + (-0x98)) = edx; /* 0x3612686F: mov dword ptr [ebp - 0x98], edx */ 11112 MEM32(ebp + (-0x130)) = ecx; /* 0x36126875: mov dword ptr [ebp - 0x130], ecx */ 11113 ecx = ebp + (-0x134); /* 0x3612687B: lea ecx, [ebp - 0x134] */ 11114 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126881: fsubp st(1) */ 11115 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x36126883: fstp dword ptr [ebp - 0x94] */ 11116 edx = MEM32(ebp + (-0x94)); /* 0x36126889: mov edx, dword ptr [ebp - 0x94] */ 11117 MEM32(ebp + (-0x12C)) = edx; /* 0x3612688F: mov dword ptr [ebp - 0x12c], edx */ 11118 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36126895: fstp dword ptr [ebp - 0x9c] */ 11119 eax = MEM32(ebp + (-0x9C)); /* 0x3612689B: mov eax, dword ptr [ebp - 0x9c] */ 11120 MEM32(ebp + (-0x134)) = eax; /* 0x361268A1: mov dword ptr [ebp - 0x134], eax */ 11121 eax = ebp + (-0x288); /* 0x361268A7: lea eax, [ebp - 0x288] */ 11122 PUSH32(esp, eax); /* 0x361268AD: push eax */ 11123 RECOMP_ICALL(MEM32(0x361701F0)); /* 0x361268AE: call dword ptr [0x361701f0] */ 11124 RECOMP_FLAGS_IN(); 11125 ecx = MEM32(eax); /* 0x361268B4: mov ecx, dword ptr [eax] */ 11126 MEM32(ebp + (-0xF4)) = ecx; /* 0x361268B6: mov dword ptr [ebp - 0xf4], ecx */ 11127 edx = MEM32(eax + 0x4); /* 0x361268BC: mov edx, dword ptr [eax + 4] */ 11128 MEM32(ebp + (-0xF0)) = edx; /* 0x361268BF: mov dword ptr [ebp - 0xf0], edx */ 11129 eax = MEM32(eax + 0x8); /* 0x361268C5: mov eax, dword ptr [eax + 8] */ 11130 edx = MEM32(ebp + (-0x54)); /* 0x361268C8: mov edx, dword ptr [ebp - 0x54] */ 11131 ecx = ebp + (-0xF4); /* 0x361268CB: lea ecx, [ebp - 0xf4] */ 11132 PUSH32(esp, ecx); /* 0x361268D1: push ecx */ 11133 MEM32(ebp + (-0xEC)) = eax; /* 0x361268D2: mov dword ptr [ebp - 0xec], eax */ 11134 PUSH32(esp, edx); /* 0x361268D8: push edx */ 11135 eax = ebp + (-0x3D8); /* 0x361268D9: lea eax, [ebp - 0x3d8] */ 11136 PUSH32(esp, eax); /* 0x361268DF: push eax */ 11137 RECOMP_ICALL(0x3609EB50u); /* 0x361268E0: call 0x3609eb50 */ /* not lifted */ 11138 RECOMP_FLAGS_IN(); 11139 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11141 esp = esp + 0xCu; /* 0x361268E5: add esp, 0xc */ 11142 _flag_k = FK_ADD; 11143 PUSH32(esp, eax); /* 0x361268E8: push eax */ 11144 eax = MEM32(ebp + (-0x5C)); /* 0x361268E9: mov eax, dword ptr [ebp - 0x5c] */ 11145 ecx = ebp + (-0x2A0); /* 0x361268EC: lea ecx, [ebp - 0x2a0] */ 11146 PUSH32(esp, ecx); /* 0x361268F2: push ecx */ 11147 edx = ebp + (-0x50); /* 0x361268F3: lea edx, [ebp - 0x50] */ 11148 PUSH32(esp, edx); /* 0x361268F6: push edx */ 11149 PUSH32(esp, eax); /* 0x361268F7: push eax */ 11150 ecx = ebp + (-0x378); /* 0x361268F8: lea ecx, [ebp - 0x378] */ 11151 PUSH32(esp, ecx); /* 0x361268FE: push ecx */ 11152 RECOMP_ICALL(0x3609EB50u); /* 0x361268FF: call 0x3609eb50 */ /* not lifted */ 11153 RECOMP_FLAGS_IN(); 11154 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11155 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11156 esp = esp + 0xCu; /* 0x36126904: add esp, 0xc */ 11157 _flag_k = FK_ADD; 11158 ecx = eax; /* 0x36126907: mov ecx, eax */ 11159 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x36126909: call dword ptr [0x3617016c] */ 11160 RECOMP_FLAGS_IN(); 11161 edx = MEM32(eax); /* 0x3612690F: mov edx, dword ptr [eax] */ 11162 MEM32(ebp + (-0x5C)) = edx; /* 0x36126911: mov dword ptr [ebp - 0x5c], edx */ 11163 ecx = MEM32(eax + 0x4); /* 0x36126914: mov ecx, dword ptr [eax + 4] */ 11164 MEM32(ebp + (-0x58)) = ecx; /* 0x36126917: mov dword ptr [ebp - 0x58], ecx */ 11165 edx = MEM32(eax + 0x8); /* 0x3612691A: mov edx, dword ptr [eax + 8] */ 11166 MEM32(ebp + (-0x54)) = edx; /* 0x3612691D: mov dword ptr [ebp - 0x54], edx */ 11167 L_36126920: 11168 PUSH32(esp, 0); /* 0x36126920: push 0 */ 11169 PUSH32(esp, 0); /* 0x36126922: push 0 */ 11170 PUSH32(esp, 0); /* 0x36126924: push 0 */ 11171 ecx = ebp + (-0x2B8); /* 0x36126926: lea ecx, [ebp - 0x2b8] */ 11172 RECOMP_ICALL(MEM32(0x36170170)); /* 0x3612692C: call dword ptr [0x36170170] */ 11173 RECOMP_FLAGS_IN(); 11174 edx = MEM32(eax); /* 0x36126932: mov edx, dword ptr [eax] */ 11175 ecx = edi + (-0x8); /* 0x36126934: lea ecx, [edi - 8] */ 11176 MEM32(ecx) = edx; /* 0x36126937: mov dword ptr [ecx], edx */ 11177 edx = MEM32(eax + 0x4); /* 0x36126939: mov edx, dword ptr [eax + 4] */ 11178 MEM32(ecx + 0x4) = edx; /* 0x3612693C: mov dword ptr [ecx + 4], edx */ 11179 eax = MEM32(eax + 0x8); /* 0x3612693F: mov eax, dword ptr [eax + 8] */ 11180 MEM32(ecx + 0x8) = eax; /* 0x36126942: mov dword ptr [ecx + 8], eax */ 11181 eax = MEM32(ebp + (-0x10)); /* 0x36126945: mov eax, dword ptr [ebp - 0x10] */ 11182 edx = MEM32(esi + 0x16C8); /* 0x36126948: mov edx, dword ptr [esi + 0x16c8] */ 11183 eax = eax + eax * 2; /* 0x3612694E: lea eax, [eax + eax*2] */ 11184 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x36126951: shl eax, 3 */ 11185 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11186 eax = eax << 3u; /* 0x36126951: shl eax, 3 */ 11187 ecx = ebp + (-0x5C); /* 0x36126954: lea ecx, [ebp - 0x5c] */ 11188 PUSH32(esp, ecx); /* 0x36126957: push ecx */ 11189 MEM32(ebp + (-0x4)) = eax; /* 0x36126958: mov dword ptr [ebp - 4], eax */ 11190 PUSH32(esp, edx); /* 0x3612695B: push edx */ 11191 eax = ebp + (-0x438); /* 0x3612695C: lea eax, [ebp - 0x438] */ 11192 PUSH32(esp, eax); /* 0x36126962: push eax */ 11193 RECOMP_ICALL(0x3609EB50u); /* 0x36126963: call 0x3609eb50 */ /* not lifted */ 11194 RECOMP_FLAGS_IN(); 11195 edx = MEM32(ebp + (-0x4)); /* 0x36126968: mov edx, dword ptr [ebp - 4] */ 11196 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11197 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11198 esp = esp + 0xCu; /* 0x3612696B: add esp, 0xc */ 11199 _flag_k = FK_ADD; 11200 PUSH32(esp, eax); /* 0x3612696E: push eax */ 11201 ecx = ebp + (-0x2D0); /* 0x3612696F: lea ecx, [ebp - 0x2d0] */ 11202 PUSH32(esp, ecx); /* 0x36126975: push ecx */ 11203 ecx = MEM32(ebp + (-0x1C)); /* 0x36126976: mov ecx, dword ptr [ebp - 0x1c] */ 11204 eax = edx + 0x3630D6AC; /* 0x36126979: lea eax, [edx + 0x3630d6ac] */ 11205 PUSH32(esp, eax); /* 0x3612697F: push eax */ 11206 PUSH32(esp, ecx); /* 0x36126980: push ecx */ 11207 edx = ebp + (-0x168); /* 0x36126981: lea edx, [ebp - 0x168] */ 11208 PUSH32(esp, edx); /* 0x36126987: push edx */ 11209 RECOMP_ICALL(0x3609EB50u); /* 0x36126988: call 0x3609eb50 */ /* not lifted */ 11210 RECOMP_FLAGS_IN(); 11211 ecx = MEM32(ebp + (-0x4)); /* 0x3612698D: mov ecx, dword ptr [ebp - 4] */ 11212 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11214 esp = esp + 0xCu; /* 0x36126990: add esp, 0xc */ 11215 _flag_k = FK_ADD; 11216 PUSH32(esp, eax); /* 0x36126993: push eax */ 11217 eax = ebp + (-0x174); /* 0x36126994: lea eax, [ebp - 0x174] */ 11218 PUSH32(esp, eax); /* 0x3612699A: push eax */ 11219 ecx = ecx + 0x3630D6A0; /* 0x3612699B: lea ecx, [ecx + 0x3630d6a0] */ 11220 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361269A1: call dword ptr [0x3617016c] */ 11221 RECOMP_FLAGS_IN(); 11222 ecx = eax; /* 0x361269A7: mov ecx, eax */ 11223 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361269A9: call dword ptr [0x3617016c] */ 11224 RECOMP_FLAGS_IN(); 11225 ecx = MEM32(eax); /* 0x361269AF: mov ecx, dword ptr [eax] */ 11226 edx = edi + 0x5F8; /* 0x361269B1: lea edx, [edi + 0x5f8] */ 11227 MEM32(edx) = ecx; /* 0x361269B7: mov dword ptr [edx], ecx */ 11228 ecx = MEM32(eax + 0x4); /* 0x361269B9: mov ecx, dword ptr [eax + 4] */ 11229 MEM32(edx + 0x4) = ecx; /* 0x361269BC: mov dword ptr [edx + 4], ecx */ 11230 eax = MEM32(eax + 0x8); /* 0x361269BF: mov eax, dword ptr [eax + 8] */ 11231 ecx = MEM32(ebp + (-0x10)); /* 0x361269C2: mov ecx, dword ptr [ebp - 0x10] */ 11232 MEM32(edx + 0x8) = eax; /* 0x361269C5: mov dword ptr [edx + 8], eax */ 11233 fp_push(*(float*)&MEM32(esi + 0x16C0)); /* 0x361269C8: fld dword ptr [esi + 0x16c0] */ 11234 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x361269CE: fadd dword ptr [esi + 0xc] */ 11235 eax = MEM32(ebp + (-0x14)); /* 0x361269D1: mov eax, dword ptr [ebp - 0x14] */ 11236 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x361269D4: fstp dword ptr [eax] */ 11237 MEM32(eax + (-0x200)) = ecx; /* 0x361269D6: mov dword ptr [eax - 0x200], ecx */ 11238 ecx = MEM32(ebp + (-0x8)); /* 0x361269DC: mov ecx, dword ptr [ebp - 8] */ 11239 eax = MEM32(ebp + (-0x18)); /* 0x361269DF: mov eax, dword ptr [ebp - 0x18] */ 11240 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11241 ecx = ecx + 1; /* 0x361269E2: inc ecx */ 11242 _flag_k = FK_INC; 11243 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11244 eax = eax - 1; /* 0x361269E3: dec eax */ 11245 _flag_k = FK_DEC; 11246 MEM32(ebp + (-0x8)) = ecx; /* 0x361269E4: mov dword ptr [ebp - 8], ecx */ 11247 MEM32(ebp + (-0x18)) = eax; /* 0x361269E7: mov dword ptr [ebp - 0x18], eax */ 11248 goto L_361269F4; /* 0x361269EA: jmp 0x361269f4 */ 11249 L_361269EC: 11250 edx = MEM32(esi + 0x38); /* 0x361269EC: mov edx, dword ptr [esi + 0x38] */ 11251 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x361269EF: mov byte ptr [edx + ebx + 0x1c], 0 */ 11252 L_361269F4: 11253 edx = MEM32(ebp + (-0x14)); /* 0x361269F4: mov edx, dword ptr [ebp - 0x14] */ 11254 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 11255 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11256 edx = edx + 4; /* 0x361269F7: add edx, 4 */ 11257 _flag_k = FK_ADD; 11258 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 11259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11260 ebx = ebx + 0x20u; /* 0x361269FA: add ebx, 0x20 */ 11261 _flag_k = FK_ADD; 11262 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 11263 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11264 edi = edi + 0xCu; /* 0x361269FD: add edi, 0xc */ 11265 _flag_k = FK_ADD; 11266 /* cmp ebx, 0x1000u */ /* 0x36126A00: cmp ebx, 0x1000 */ 11267 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 11268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11269 _flag_k = FK_CMP; 11270 MEM32(ebp + (-0x14)) = edx; /* 0x36126A06: mov dword ptr [ebp - 0x14], edx */ 11271 RECOMP_BACKEDGE(); 11272 if (CMP_L(_flag_a, _flag_b)) goto L_36126437; /* 0x36126A09: jl 0x36126437 */ 11273 L_36126A0F: 11274 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126A0F: mov al, byte ptr [esi + 0x163c] */ 11275 /* test LO8(eax), LO8(eax) */ /* 0x36126A15: test al, al */ 11276 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11277 _cf = 0; 11278 _flag_k = FK_NARROW(FK_TEST, 24); 11279 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126A17: je 0x361275ac */ 11280 L_36126A1D: 11281 eax = MEM32(ebp + (-0x8)); /* 0x36126A1D: mov eax, dword ptr [ebp - 8] */ 11282 /* test eax, eax */ /* 0x36126A20: test eax, eax */ 11283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11284 _cf = 0; 11285 _flag_k = FK_TEST; 11286 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126A22: jne 0x361275ac */ 11287 L_36126A28: 11288 goto L_361275A8; /* 0x36126A28: jmp 0x361275a8 */ 11289 L_361275A8: 11290 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 11291 L_361275AC: 11292 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 11293 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 11294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11295 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 11296 _flag_k = FK_ADD; 11297 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 11298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11299 _cf = 0; 11300 _flag_k = FK_TEST; 11301 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 11302 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 11303 L_361275B7: 11304 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 11305 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 11306 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 11307 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 11308 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 11309 RECOMP_FLAGS_IN(); 11310 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 11311 PUSH32(esp, eax); /* 0x361275CD: push eax */ 11312 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 11313 RECOMP_FLAGS_IN(); 11314 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 11315 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 11316 RECOMP_FLAGS_IN(); 11317 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 11318 PUSH32(esp, eax); /* 0x361275E2: push eax */ 11319 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 11320 RECOMP_FLAGS_IN(); 11321 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 11322 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 11323 RECOMP_FLAGS_IN(); 11324 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 11325 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11326 _cf = (LO8(eax)) != 0; 11327 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 11328 _flag_k = FK_NARROW(FK_CMP, 24); 11329 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 11330 eax = _sc ? 0xFFFFFFFFu : 0; 11331 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 11332 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 11333 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11334 eax = eax + 1; /* 0x361275F6: inc eax */ 11335 _flag_k = FK_INC; 11336 PUSH32(esp, eax); /* 0x361275F7: push eax */ 11337 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 11338 RECOMP_FLAGS_IN(); 11339 L_361275FE: 11340 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 11341 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 11342 esp = ebp; /* 0x36127600: mov esp, ebp */ 11343 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 11344 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 11345 RECOMP_REGS_OUT(); 11346 } 11347 11348 void sub_361264F9(void) { 11349 int _fpu_cmp = 0; 11350 uint32_t _cf = 0; 11351 int _df = 1; 11352 uint32_t _flag_k = FK_NONE; 11353 uint32_t _flag_a = 0, _flag_b = 0; 11354 uint32_t _itail_tgt = 0; 11355 RECOMP_REGS_LOCALS 11356 RECOMP_ENTER(0x361264F9u); 11357 11358 goto L_361264F9; 11359 L_36126437: 11360 ecx = MEM32(ebp + (-0x14)); /* 0x36126437: mov ecx, dword ptr [ebp - 0x14] */ 11361 fp_push(*(float*)&MEM32(ecx)); /* 0x3612643A: fld dword ptr [ecx] */ 11362 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x3612643C: fcomp dword ptr [esi + 0xc] */ 11363 fp_pop(); 11364 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3612643F: fnstsw ax */ 11365 /* test HI8(eax), 0x41u */ /* 0x36126441: test ah, 0x41 */ 11366 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 11367 _cf = 0; 11368 _flag_k = FK_NARROW(FK_TEST, 24); 11369 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612675A; /* 0x36126444: jne 0x3612675a */ 11370 L_3612644A: 11371 eax = MEM32(ecx + (-0x200)); /* 0x3612644A: mov eax, dword ptr [ecx - 0x200] */ 11372 MEM32(ebp + (-0x1C)) = eax; /* 0x36126450: mov dword ptr [ebp - 0x1c], eax */ 11373 eax = eax + eax * 2; /* 0x36126453: lea eax, [eax + eax*2] */ 11374 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x36126456: shl eax, 3 */ 11375 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11376 eax = eax << 3u; /* 0x36126456: shl eax, 3 */ 11377 MEM32(ebp + (-0x84)) = eax; /* 0x36126459: mov dword ptr [ebp - 0x84], eax */ 11378 eax = eax + 0x3630D6A0; /* 0x3612645F: lea eax, [eax + 0x3630d6a0] */ 11379 MEM32(ebp + (-0x4)) = eax; /* 0x36126465: mov dword ptr [ebp - 4], eax */ 11380 ecx = edi + 0x5F8; /* 0x36126468: lea ecx, [edi + 0x5f8] */ 11381 edx = ecx; /* 0x3612646E: mov edx, ecx */ 11382 eax = MEM32(edx); /* 0x36126470: mov eax, dword ptr [edx] */ 11383 MEM32(ebp + (-0xD0)) = eax; /* 0x36126472: mov dword ptr [ebp - 0xd0], eax */ 11384 fp_push(*(float*)&MEM32(ebp + (-0xD0))); /* 0x36126478: fld dword ptr [ebp - 0xd0] */ 11385 eax = MEM32(edx + 0x4); /* 0x3612647E: mov eax, dword ptr [edx + 4] */ 11386 MEM32(ebp + (-0xCC)) = eax; /* 0x36126481: mov dword ptr [ebp - 0xcc], eax */ 11387 eax = MEM32(ebp + (-0x4)); /* 0x36126487: mov eax, dword ptr [ebp - 4] */ 11388 edx = MEM32(edx + 0x8); /* 0x3612648A: mov edx, dword ptr [edx + 8] */ 11389 MEM32(ebp + (-0xC8)) = edx; /* 0x3612648D: mov dword ptr [ebp - 0xc8], edx */ 11390 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36126493: fsub dword ptr [eax] */ 11391 fp_push(*(float*)&MEM32(ebp + (-0xCC))); /* 0x36126495: fld dword ptr [ebp - 0xcc] */ 11392 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x3612649B: fsub dword ptr [eax + 4] */ 11393 fp_push(*(float*)&MEM32(ebp + (-0xC8))); /* 0x3612649E: fld dword ptr [ebp - 0xc8] */ 11394 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x361264A4: fsub dword ptr [eax + 8] */ 11395 eax = MEM32(ebp + (-0x84)); /* 0x361264A7: mov eax, dword ptr [ebp - 0x84] */ 11396 edx = eax + 0x3630D6AC; /* 0x361264AD: lea edx, [eax + 0x3630d6ac] */ 11397 eax = MEM32(ebp + (-0x1C)); /* 0x361264B3: mov eax, dword ptr [ebp - 0x1c] */ 11398 _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x361264B6: fmul dword ptr [edx + 8] */ 11399 fp_xch(1); /* 0x361264B9: fxch st(1) */ 11400 _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x361264BB: fmul dword ptr [edx + 4] */ 11401 { double _v = fp_pop(); _st[0] += _v; } /* 0x361264BE: faddp st(1) */ 11402 fp_xch(1); /* 0x361264C0: fxch st(1) */ 11403 _st[0] *= (double)*(float*)ADDR(edx); /* 0x361264C2: fmul dword ptr [edx] */ 11404 { double _v = fp_pop(); _st[0] += _v; } /* 0x361264C4: faddp st(1) */ 11405 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x361264C6: fdiv dword ptr [eax*4 + 0x3630d688] */ 11406 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361264CD: fcom dword ptr [0x3617040c] */ 11407 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361264D3: fnstsw ax */ 11408 /* test HI8(eax), 1 */ /* 0x361264D5: test ah, 1 */ 11409 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 11410 _cf = 0; 11411 _flag_k = FK_NARROW(FK_TEST, 24); 11412 if (TEST_Z(_flag_a, _flag_b)) goto L_361264E4; /* 0x361264D8: je 0x361264e4 */ 11413 L_361264DA: 11414 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361264DA: fstp st(0) */ 11415 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x361264DC: fld dword ptr [0x3617040c] */ 11416 goto L_361264F9; /* 0x361264E2: jmp 0x361264f9 */ 11417 L_361264E4: 11418 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x361264E4: fcom dword ptr [0x36170380] */ 11419 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361264EA: fnstsw ax */ 11420 /* test HI8(eax), 0x41u */ /* 0x361264EC: test ah, 0x41 */ 11421 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 11422 _cf = 0; 11423 _flag_k = FK_NARROW(FK_TEST, 24); 11424 if (TEST_NZ(_flag_a, _flag_b)) goto L_361264F9; /* 0x361264EF: jne 0x361264f9 */ 11425 L_361264F1: 11426 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361264F1: fstp st(0) */ 11427 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361264F3: fld dword ptr [0x36170380] */ 11428 L_361264F9: 11429 eax = MEM32(edx); /* 0x361264F9: mov eax, dword ptr [edx] */ 11430 MEM32(ebp + (-0x80)) = eax; /* 0x361264FB: mov dword ptr [ebp - 0x80], eax */ 11431 fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x361264FE: fld dword ptr [ebp - 0x80] */ 11432 _st[0] *= _st[1]; /* 0x36126501: fmul st(1) */ 11433 eax = MEM32(edx + 0x4); /* 0x36126503: mov eax, dword ptr [edx + 4] */ 11434 edx = MEM32(edx + 0x8); /* 0x36126506: mov edx, dword ptr [edx + 8] */ 11435 MEM32(ebp + (-0x7C)) = eax; /* 0x36126509: mov dword ptr [ebp - 0x7c], eax */ 11436 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3612650C: fstp dword ptr [ebp - 0x80] */ 11437 eax = MEM32(ebp + (-0x4)); /* 0x3612650F: mov eax, dword ptr [ebp - 4] */ 11438 MEM32(ebp + (-0x78)) = edx; /* 0x36126512: mov dword ptr [ebp - 0x78], edx */ 11439 fp_push(_st[0]); /* 0x36126515: fld st(0) */ 11440 edx = MEM32(eax); /* 0x36126517: mov edx, dword ptr [eax] */ 11441 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36126519: fmul dword ptr [ebp - 0x7c] */ 11442 MEM32(ebp + (-0x44)) = edx; /* 0x3612651C: mov dword ptr [ebp - 0x44], edx */ 11443 edx = MEM32(eax + 0x4); /* 0x3612651F: mov edx, dword ptr [eax + 4] */ 11444 eax = MEM32(eax + 0x8); /* 0x36126522: mov eax, dword ptr [eax + 8] */ 11445 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36126525: fstp dword ptr [ebp - 0x7c] */ 11446 MEM32(ebp + (-0x40)) = edx; /* 0x36126528: mov dword ptr [ebp - 0x40], edx */ 11447 MEM32(ebp + (-0x3C)) = eax; /* 0x3612652B: mov dword ptr [ebp - 0x3c], eax */ 11448 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x3612652E: fmul dword ptr [ebp - 0x78] */ 11449 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126531: fld dword ptr [ebp - 0x44] */ 11450 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36126534: fadd dword ptr [ebp - 0x80] */ 11451 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36126537: fstp dword ptr [ebp - 0x44] */ 11452 edx = MEM32(ebp + (-0x44)); /* 0x3612653A: mov edx, dword ptr [ebp - 0x44] */ 11453 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x3612653D: fld dword ptr [ebp - 0x40] */ 11454 MEM32(ebp + (-0xA8)) = edx; /* 0x36126540: mov dword ptr [ebp - 0xa8], edx */ 11455 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36126546: fadd dword ptr [ebp - 0x7c] */ 11456 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36126549: fstp dword ptr [ebp - 0x40] */ 11457 eax = MEM32(ebp + (-0x40)); /* 0x3612654C: mov eax, dword ptr [ebp - 0x40] */ 11458 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3612654F: fld dword ptr [ebp - 0x3c] */ 11459 MEM32(ebp + (-0xA4)) = eax; /* 0x36126552: mov dword ptr [ebp - 0xa4], eax */ 11460 _st[0] += _st[1]; /* 0x36126558: fadd st(1) */ 11461 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612655A: fstp dword ptr [ebp - 0x3c] */ 11462 edx = MEM32(ebp + (-0x3C)); /* 0x3612655D: mov edx, dword ptr [ebp - 0x3c] */ 11463 MEM32(ebp + (-0xA0)) = edx; /* 0x36126560: mov dword ptr [ebp - 0xa0], edx */ 11464 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126566: fstp st(0) */ 11465 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126568: fld dword ptr [ebp - 0x44] */ 11466 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x3612656B: fsub dword ptr [ecx] */ 11467 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x3612656D: fstp dword ptr [ebp - 0xa8] */ 11468 eax = MEM32(ebp + (-0xA8)); /* 0x36126573: mov eax, dword ptr [ebp - 0xa8] */ 11469 fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x36126579: fld dword ptr [ebp - 0xa4] */ 11470 _st[0] -= (double)*(float*)ADDR(edi + 0x5FC); /* 0x3612657F: fsub dword ptr [edi + 0x5fc] */ 11471 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36126585: fstp dword ptr [ebp - 0xa4] */ 11472 edx = MEM32(ebp + (-0xA4)); /* 0x3612658B: mov edx, dword ptr [ebp - 0xa4] */ 11473 fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x36126591: fld dword ptr [ebp - 0xa0] */ 11474 _st[0] -= (double)*(float*)ADDR(edi + 0x600); /* 0x36126597: fsub dword ptr [edi + 0x600] */ 11475 MEM32(ebp + (-0x28)) = eax; /* 0x3612659D: mov dword ptr [ebp - 0x28], eax */ 11476 MEM32(ebp + (-0x68)) = eax; /* 0x361265A0: mov dword ptr [ebp - 0x68], eax */ 11477 eax = MEM32(ebp + (-0xA4)); /* 0x361265A3: mov eax, dword ptr [ebp - 0xa4] */ 11478 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x361265A9: fstp dword ptr [ebp - 0xa0] */ 11479 MEM32(ebp + (-0x24)) = eax; /* 0x361265AF: mov dword ptr [ebp - 0x24], eax */ 11480 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x361265B2: fld dword ptr [ebp - 0xa8] */ 11481 MEM32(ebp + (-0x64)) = edx; /* 0x361265B8: mov dword ptr [ebp - 0x64], edx */ 11482 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265BB: fmul dword ptr [0x36170d68] */ 11483 edx = MEM32(ebp + (-0xA0)); /* 0x361265C1: mov edx, dword ptr [ebp - 0xa0] */ 11484 MEM32(ebp + (-0x20)) = edx; /* 0x361265C7: mov dword ptr [ebp - 0x20], edx */ 11485 MEM32(ebp + (-0x60)) = edx; /* 0x361265CA: mov dword ptr [ebp - 0x60], edx */ 11486 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361265CD: fstp dword ptr [ebp - 0x28] */ 11487 edx = MEM32(ebp + (-0x28)); /* 0x361265D0: mov edx, dword ptr [ebp - 0x28] */ 11488 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361265D3: fld dword ptr [ebp - 0x24] */ 11489 MEM32(ebp + (-0x100)) = edx; /* 0x361265D6: mov dword ptr [ebp - 0x100], edx */ 11490 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265DC: fmul dword ptr [0x36170d68] */ 11491 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361265E2: fstp dword ptr [ebp - 0x24] */ 11492 eax = MEM32(ebp + (-0x24)); /* 0x361265E5: mov eax, dword ptr [ebp - 0x24] */ 11493 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361265E8: fld dword ptr [ebp - 0x20] */ 11494 MEM32(ebp + (-0xFC)) = eax; /* 0x361265EB: mov dword ptr [ebp - 0xfc], eax */ 11495 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265F1: fmul dword ptr [0x36170d68] */ 11496 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361265F7: fstp dword ptr [ebp - 0x20] */ 11497 edx = MEM32(ebp + (-0x20)); /* 0x361265FA: mov edx, dword ptr [ebp - 0x20] */ 11498 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361265FD: fld dword ptr [ebp - 0x28] */ 11499 MEM32(ebp + (-0xF8)) = edx; /* 0x36126600: mov dword ptr [ebp - 0xf8], edx */ 11500 _st[0] += (double)*(float*)ADDR(edi + (-0x8)); /* 0x36126606: fadd dword ptr [edi - 8] */ 11501 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x8)) = _v; } /* 0x36126609: fstp dword ptr [edi - 8] */ 11502 fp_push(*(float*)&MEM32(ebp + (-0xFC))); /* 0x3612660C: fld dword ptr [ebp - 0xfc] */ 11503 _st[0] += (double)*(float*)ADDR(edi + (-0x4)); /* 0x36126612: fadd dword ptr [edi - 4] */ 11504 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x4)) = _v; } /* 0x36126615: fstp dword ptr [edi - 4] */ 11505 fp_push(*(float*)&MEM32(ebp + (-0xF8))); /* 0x36126618: fld dword ptr [ebp - 0xf8] */ 11506 _st[0] += (double)*(float*)ADDR(edi); /* 0x3612661E: fadd dword ptr [edi] */ 11507 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36126620: fstp dword ptr [edi] */ 11508 eax = MEM32(edi + (-0x8)); /* 0x36126622: mov eax, dword ptr [edi - 8] */ 11509 MEM32(ebp + (-0x38)) = eax; /* 0x36126625: mov dword ptr [ebp - 0x38], eax */ 11510 edx = MEM32(edi + (-0x4)); /* 0x36126628: mov edx, dword ptr [edi - 4] */ 11511 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3612662B: fld dword ptr [ebp - 0x38] */ 11512 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612662E: fmul dword ptr [0x36170d68] */ 11513 MEM32(ebp + (-0x34)) = edx; /* 0x36126634: mov dword ptr [ebp - 0x34], edx */ 11514 eax = MEM32(edi); /* 0x36126637: mov eax, dword ptr [edi] */ 11515 MEM32(ebp + (-0x30)) = eax; /* 0x36126639: mov dword ptr [ebp - 0x30], eax */ 11516 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3612663C: fstp dword ptr [ebp - 0x38] */ 11517 edx = MEM32(ebp + (-0x38)); /* 0x3612663F: mov edx, dword ptr [ebp - 0x38] */ 11518 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36126642: fld dword ptr [ebp - 0x34] */ 11519 MEM32(ebp + (-0x10C)) = edx; /* 0x36126645: mov dword ptr [ebp - 0x10c], edx */ 11520 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612664B: fmul dword ptr [0x36170d68] */ 11521 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36126651: fstp dword ptr [ebp - 0x34] */ 11522 eax = MEM32(ebp + (-0x34)); /* 0x36126654: mov eax, dword ptr [ebp - 0x34] */ 11523 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36126657: fld dword ptr [ebp - 0x30] */ 11524 MEM32(ebp + (-0x108)) = eax; /* 0x3612665A: mov dword ptr [ebp - 0x108], eax */ 11525 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126660: fmul dword ptr [0x36170d68] */ 11526 eax = ebx; /* 0x36126666: mov eax, ebx */ 11527 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36126668: fstp dword ptr [ebp - 0x30] */ 11528 edx = MEM32(ebp + (-0x30)); /* 0x3612666B: mov edx, dword ptr [ebp - 0x30] */ 11529 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3612666E: fld dword ptr [ebp - 0x38] */ 11530 MEM32(ebp + (-0x104)) = edx; /* 0x36126671: mov dword ptr [ebp - 0x104], edx */ 11531 _st[0] += (double)*(float*)ADDR(ecx); /* 0x36126677: fadd dword ptr [ecx] */ 11532 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x36126679: fstp dword ptr [ecx] */ 11533 fp_push(*(float*)&MEM32(ebp + (-0x108))); /* 0x3612667B: fld dword ptr [ebp - 0x108] */ 11534 _st[0] += (double)*(float*)ADDR(edi + 0x5FC); /* 0x36126681: fadd dword ptr [edi + 0x5fc] */ 11535 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5FC) = _v; } /* 0x36126687: fstp dword ptr [edi + 0x5fc] */ 11536 fp_push(*(float*)&MEM32(ebp + (-0x104))); /* 0x3612668D: fld dword ptr [ebp - 0x104] */ 11537 _st[0] += (double)*(float*)ADDR(edi + 0x600); /* 0x36126693: fadd dword ptr [edi + 0x600] */ 11538 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x600) = _v; } /* 0x36126699: fstp dword ptr [edi + 0x600] */ 11539 edx = MEM32(esi + 0x38); /* 0x3612669F: mov edx, dword ptr [esi + 0x38] */ 11540 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11541 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11542 eax = eax + edx; /* 0x361266A2: add eax, edx */ 11543 _flag_k = FK_ADD; 11544 edx = MEM32(ecx); /* 0x361266A4: mov edx, dword ptr [ecx] */ 11545 MEM32(eax) = edx; /* 0x361266A6: mov dword ptr [eax], edx */ 11546 edx = MEM32(ecx + 0x4); /* 0x361266A8: mov edx, dword ptr [ecx + 4] */ 11547 MEM32(eax + 0x4) = edx; /* 0x361266AB: mov dword ptr [eax + 4], edx */ 11548 ecx = MEM32(ecx + 0x8); /* 0x361266AE: mov ecx, dword ptr [ecx + 8] */ 11549 edx = MEM32(ebp + (-0x14)); /* 0x361266B1: mov edx, dword ptr [ebp - 0x14] */ 11550 MEM32(eax + 0x8) = ecx; /* 0x361266B4: mov dword ptr [eax + 8], ecx */ 11551 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x361266B7: fld dword ptr [esi + 0xc] */ 11552 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x361266BA: fadd dword ptr [esi + 0x16c0] */ 11553 eax = MEM32(esi + 0x38); /* 0x361266C0: mov eax, dword ptr [esi + 0x38] */ 11554 _st[0] -= (double)*(float*)ADDR(edx); /* 0x361266C3: fsub dword ptr [edx] */ 11555 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361266C5: fdiv dword ptr [esi + 0x16c0] */ 11556 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361266CB: fst dword ptr [ebp - 4] */ 11557 _st[0] *= (double)*(float*)ADDR(0x361729D0); /* 0x361266CE: fmul dword ptr [0x361729d0] */ 11558 edx = MEM32(ebp + (-0x4)); /* 0x361266D4: mov edx, dword ptr [ebp - 4] */ 11559 PUSH32(esp, edx); /* 0x361266D7: push edx */ 11560 _st[0] += (double)*(float*)ADDR(0x36174F98); /* 0x361266D8: fadd dword ptr [0x36174f98] */ 11561 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x361266DE: fmul dword ptr [esi + 0x16cc] */ 11562 { float _v = (float)_st[0]; *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x361266E4: fst dword ptr [ebx + eax + 0xc] */ 11563 ecx = MEM32(esi + 0x38); /* 0x361266E8: mov ecx, dword ptr [esi + 0x38] */ 11564 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x361266EB: fstp dword ptr [ebx + ecx + 0x10] */ 11565 ecx = esi + 0x168C; /* 0x361266EF: lea ecx, [esi + 0x168c] */ 11566 RECOMP_ICALL(0x36137D80u); /* 0x361266F5: call 0x36137d80 */ /* not lifted */ 11567 RECOMP_FLAGS_IN(); 11568 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361266FA: fld dword ptr [ebp - 4] */ 11569 ecx = MEM32(esi + 0x38); /* 0x361266FD: mov ecx, dword ptr [esi + 0x38] */ 11570 _st[0] *= *(double*)ADDR(0x36177770); /* 0x36126700: fmul qword ptr [0x36177770] */ 11571 MEM32(ebx + ecx + 0x14) = eax; /* 0x36126706: mov dword ptr [ebx + ecx + 0x14], eax */ 11572 RECOMP_ICALL(0x3615FD8Cu); /* 0x3612670A: call 0x3615fd8c */ /* not lifted */ 11573 RECOMP_FLAGS_IN(); 11574 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x3612670F: fld dword ptr [ebp - 0x64] */ 11575 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36126712: fmul dword ptr [ebp - 0x64] */ 11576 edx = MEM32(esi + 0x38); /* 0x36126715: mov edx, dword ptr [esi + 0x38] */ 11577 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36126718: fld dword ptr [ebp - 0x60] */ 11578 MEM32(ebx + edx + 0x18) = eax; /* 0x3612671B: mov dword ptr [ebx + edx + 0x18], eax */ 11579 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x3612671F: fmul dword ptr [ebp - 0x60] */ 11580 eax = MEM32(esi + 0x38); /* 0x36126722: mov eax, dword ptr [esi + 0x38] */ 11581 MEM8(ebx + eax + 0x1C) = (uint8_t)(1); /* 0x36126725: mov byte ptr [ebx + eax + 0x1c], 1 */ 11582 eax = MEM32(ebp + (-0x8)); /* 0x3612672A: mov eax, dword ptr [ebp - 8] */ 11583 { double _v = fp_pop(); _st[0] += _v; } /* 0x3612672D: faddp st(1) */ 11584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11585 eax = eax + 1; /* 0x3612672F: inc eax */ 11586 _flag_k = FK_INC; 11587 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36126730: fld dword ptr [ebp - 0x68] */ 11588 MEM32(ebp + (-0x8)) = eax; /* 0x36126733: mov dword ptr [ebp - 8], eax */ 11589 _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x36126736: fmul dword ptr [ebp - 0x68] */ 11590 { double _v = fp_pop(); _st[0] += _v; } /* 0x36126739: faddp st(1) */ 11591 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361754E4)); /* 0x3612673B: fcomp dword ptr [0x361754e4] */ 11592 fp_pop(); 11593 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36126741: fnstsw ax */ 11594 /* test HI8(eax), 1 */ /* 0x36126743: test ah, 1 */ 11595 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 11596 _cf = 0; 11597 _flag_k = FK_NARROW(FK_TEST, 24); 11598 if (TEST_Z(_flag_a, _flag_b)) goto L_361269F4; /* 0x36126746: je 0x361269f4 */ 11599 L_3612674C: 11600 ecx = MEM32(ebp + (-0x14)); /* 0x3612674C: mov ecx, dword ptr [ebp - 0x14] */ 11601 MEM32(ecx) = 0; /* 0x3612674F: mov dword ptr [ecx], 0 */ 11602 goto L_361269F4; /* 0x36126755: jmp 0x361269f4 */ 11603 L_3612675A: 11604 eax = MEM32(ebp + (-0x18)); /* 0x3612675A: mov eax, dword ptr [ebp - 0x18] */ 11605 /* test eax, eax */ /* 0x3612675D: test eax, eax */ 11606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11607 _cf = 0; 11608 _flag_k = FK_TEST; 11609 if (TEST_Z(_flag_a, _flag_b)) goto L_361269EC; /* 0x3612675F: je 0x361269ec */ 11610 L_36126765: 11611 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126765: mov al, byte ptr [esi + 0x163c] */ 11612 /* test LO8(eax), LO8(eax) */ /* 0x3612676B: test al, al */ 11613 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11614 _cf = 0; 11615 _flag_k = FK_NARROW(FK_TEST, 24); 11616 if (TEST_NZ(_flag_a, _flag_b)) goto L_361269EC; /* 0x3612676D: jne 0x361269ec */ 11617 L_36126773: 11618 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36126773: call dword ptr [0x3616f254] */ 11619 RECOMP_FLAGS_IN(); 11620 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36126779: cdq */ 11621 ecx = 6; /* 0x3612677A: mov ecx, 6 */ 11622 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3612677F: idiv ecx */ 11623 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 11624 else { eax = 0; edx = 0; } } 11625 MEM32(ebp + (-0x10)) = edx; /* 0x36126781: mov dword ptr [ebp - 0x10], edx */ 11626 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36126784: call dword ptr [0x3616f254] */ 11627 RECOMP_FLAGS_IN(); 11628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 11629 eax = eax & 0x7FFFu; /* 0x3612678A: and eax, 0x7fff */ 11630 _cf = 0; 11631 _flag_k = FK_TEST; 11632 MEM32(ebp + (-0x84)) = eax; /* 0x3612678F: mov dword ptr [ebp - 0x84], eax */ 11633 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x36126795: fild dword ptr [ebp - 0x84] */ 11634 edx = ebp + (-0x5C); /* 0x3612679B: lea edx, [ebp - 0x5c] */ 11635 PUSH32(esp, edx); /* 0x3612679E: push edx */ 11636 MEM32(ebp + (-0x5C)) = 0; /* 0x3612679F: mov dword ptr [ebp - 0x5c], 0 */ 11637 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x361267A6: fmul dword ptr [0x36175f2c] */ 11638 MEM32(ebp + (-0x58)) = 0; /* 0x361267AC: mov dword ptr [ebp - 0x58], 0 */ 11639 MEM32(ebp + (-0x54)) = 0; /* 0x361267B3: mov dword ptr [ebp - 0x54], 0 */ 11640 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361267BA: fstp dword ptr [ebp - 0x1c] */ 11641 RECOMP_ICALL(0x360FCD10u); /* 0x361267BD: call 0x360fcd10 */ /* not lifted */ 11642 RECOMP_FLAGS_IN(); 11643 eax = MEM32(ebp + (-0x10)); /* 0x361267C2: mov eax, dword ptr [ebp - 0x10] */ 11644 fp_push(*(float*)&MEM32(eax * 4 + 0x3630D688)); /* 0x361267C5: fld dword ptr [eax*4 + 0x3630d688] */ 11645 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11647 esp = esp + 4; /* 0x361267CC: add esp, 4 */ 11648 _flag_k = FK_ADD; 11649 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361267CF: fcomp dword ptr [0x3617040c] */ 11650 fp_pop(); 11651 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361267D5: fnstsw ax */ 11652 /* test HI8(eax), 0x40u */ /* 0x361267D7: test ah, 0x40 */ 11653 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 11654 _cf = 0; 11655 _flag_k = FK_NARROW(FK_TEST, 24); 11656 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126920; /* 0x361267DA: jne 0x36126920 */ 11657 L_361267E0: 11658 eax = MEM32(ebp + (-0x10)); /* 0x361267E0: mov eax, dword ptr [ebp - 0x10] */ 11659 eax = eax + eax * 2; /* 0x361267E3: lea eax, [eax + eax*2] */ 11660 ecx = ebp + (-0x50); /* 0x361267E6: lea ecx, [ebp - 0x50] */ 11661 eax = eax * 8 + 0x3630D6AC; /* 0x361267E9: lea eax, [eax*8 + 0x3630d6ac] */ 11662 PUSH32(esp, ecx); /* 0x361267F0: push ecx */ 11663 PUSH32(esp, eax); /* 0x361267F1: push eax */ 11664 MEM32(ebp + (-0x50)) = 0; /* 0x361267F2: mov dword ptr [ebp - 0x50], 0 */ 11665 MEM32(ebp + (-0x4C)) = 0; /* 0x361267F9: mov dword ptr [ebp - 0x4c], 0 */ 11666 MEM32(ebp + (-0x48)) = 0; /* 0x36126800: mov dword ptr [ebp - 0x48], 0 */ 11667 MEM32(ebp + (-0x84)) = eax; /* 0x36126807: mov dword ptr [ebp - 0x84], eax */ 11668 RECOMP_ICALL(0x360FCE60u); /* 0x3612680D: call 0x360fce60 */ /* not lifted */ 11669 RECOMP_FLAGS_IN(); 11670 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36126812: fld dword ptr [ebp - 0x4c] */ 11671 eax = MEM32(ebp + (-0x4C)); /* 0x36126815: mov eax, dword ptr [ebp - 0x4c] */ 11672 edx = MEM32(ebp + (-0x50)); /* 0x36126818: mov edx, dword ptr [ebp - 0x50] */ 11673 ecx = MEM32(ebp + (-0x48)); /* 0x3612681B: mov ecx, dword ptr [ebp - 0x48] */ 11674 MEM32(ebp + (-0x98)) = eax; /* 0x3612681E: mov dword ptr [ebp - 0x98], eax */ 11675 eax = MEM32(ebp + (-0x84)); /* 0x36126824: mov eax, dword ptr [ebp - 0x84] */ 11676 MEM32(ebp + (-0x9C)) = edx; /* 0x3612682A: mov dword ptr [ebp - 0x9c], edx */ 11677 MEM32(ebp + (-0x94)) = ecx; /* 0x36126830: mov dword ptr [ebp - 0x94], ecx */ 11678 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x36126836: fmul dword ptr [eax + 8] */ 11679 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36126839: fld dword ptr [ebp - 0x48] */ 11680 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11681 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11682 esp = esp + 8; /* 0x3612683C: add esp, 8 */ 11683 _flag_k = FK_ADD; 11684 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x3612683F: fmul dword ptr [eax + 4] */ 11685 PUSH32(esp, 0x3F800000u); /* 0x36126842: push 0x3f800000 */ 11686 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126847: fsubp st(1) */ 11687 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36126849: fld dword ptr [ebp - 0x48] */ 11688 _st[0] *= (double)*(float*)ADDR(eax); /* 0x3612684C: fmul dword ptr [eax] */ 11689 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612684E: fld dword ptr [ebp - 0x50] */ 11690 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x36126851: fmul dword ptr [eax + 8] */ 11691 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126854: fsubp st(1) */ 11692 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x36126856: fstp dword ptr [ebp - 0x84] */ 11693 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612685C: fld dword ptr [ebp - 0x50] */ 11694 edx = MEM32(ebp + (-0x84)); /* 0x3612685F: mov edx, dword ptr [ebp - 0x84] */ 11695 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x36126865: fmul dword ptr [eax + 4] */ 11696 ecx = edx; /* 0x36126868: mov ecx, edx */ 11697 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3612686A: fld dword ptr [ebp - 0x4c] */ 11698 _st[0] *= (double)*(float*)ADDR(eax); /* 0x3612686D: fmul dword ptr [eax] */ 11699 MEM32(ebp + (-0x98)) = edx; /* 0x3612686F: mov dword ptr [ebp - 0x98], edx */ 11700 MEM32(ebp + (-0x130)) = ecx; /* 0x36126875: mov dword ptr [ebp - 0x130], ecx */ 11701 ecx = ebp + (-0x134); /* 0x3612687B: lea ecx, [ebp - 0x134] */ 11702 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126881: fsubp st(1) */ 11703 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x36126883: fstp dword ptr [ebp - 0x94] */ 11704 edx = MEM32(ebp + (-0x94)); /* 0x36126889: mov edx, dword ptr [ebp - 0x94] */ 11705 MEM32(ebp + (-0x12C)) = edx; /* 0x3612688F: mov dword ptr [ebp - 0x12c], edx */ 11706 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36126895: fstp dword ptr [ebp - 0x9c] */ 11707 eax = MEM32(ebp + (-0x9C)); /* 0x3612689B: mov eax, dword ptr [ebp - 0x9c] */ 11708 MEM32(ebp + (-0x134)) = eax; /* 0x361268A1: mov dword ptr [ebp - 0x134], eax */ 11709 eax = ebp + (-0x288); /* 0x361268A7: lea eax, [ebp - 0x288] */ 11710 PUSH32(esp, eax); /* 0x361268AD: push eax */ 11711 RECOMP_ICALL(MEM32(0x361701F0)); /* 0x361268AE: call dword ptr [0x361701f0] */ 11712 RECOMP_FLAGS_IN(); 11713 ecx = MEM32(eax); /* 0x361268B4: mov ecx, dword ptr [eax] */ 11714 MEM32(ebp + (-0xF4)) = ecx; /* 0x361268B6: mov dword ptr [ebp - 0xf4], ecx */ 11715 edx = MEM32(eax + 0x4); /* 0x361268BC: mov edx, dword ptr [eax + 4] */ 11716 MEM32(ebp + (-0xF0)) = edx; /* 0x361268BF: mov dword ptr [ebp - 0xf0], edx */ 11717 eax = MEM32(eax + 0x8); /* 0x361268C5: mov eax, dword ptr [eax + 8] */ 11718 edx = MEM32(ebp + (-0x54)); /* 0x361268C8: mov edx, dword ptr [ebp - 0x54] */ 11719 ecx = ebp + (-0xF4); /* 0x361268CB: lea ecx, [ebp - 0xf4] */ 11720 PUSH32(esp, ecx); /* 0x361268D1: push ecx */ 11721 MEM32(ebp + (-0xEC)) = eax; /* 0x361268D2: mov dword ptr [ebp - 0xec], eax */ 11722 PUSH32(esp, edx); /* 0x361268D8: push edx */ 11723 eax = ebp + (-0x3D8); /* 0x361268D9: lea eax, [ebp - 0x3d8] */ 11724 PUSH32(esp, eax); /* 0x361268DF: push eax */ 11725 RECOMP_ICALL(0x3609EB50u); /* 0x361268E0: call 0x3609eb50 */ /* not lifted */ 11726 RECOMP_FLAGS_IN(); 11727 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11729 esp = esp + 0xCu; /* 0x361268E5: add esp, 0xc */ 11730 _flag_k = FK_ADD; 11731 PUSH32(esp, eax); /* 0x361268E8: push eax */ 11732 eax = MEM32(ebp + (-0x5C)); /* 0x361268E9: mov eax, dword ptr [ebp - 0x5c] */ 11733 ecx = ebp + (-0x2A0); /* 0x361268EC: lea ecx, [ebp - 0x2a0] */ 11734 PUSH32(esp, ecx); /* 0x361268F2: push ecx */ 11735 edx = ebp + (-0x50); /* 0x361268F3: lea edx, [ebp - 0x50] */ 11736 PUSH32(esp, edx); /* 0x361268F6: push edx */ 11737 PUSH32(esp, eax); /* 0x361268F7: push eax */ 11738 ecx = ebp + (-0x378); /* 0x361268F8: lea ecx, [ebp - 0x378] */ 11739 PUSH32(esp, ecx); /* 0x361268FE: push ecx */ 11740 RECOMP_ICALL(0x3609EB50u); /* 0x361268FF: call 0x3609eb50 */ /* not lifted */ 11741 RECOMP_FLAGS_IN(); 11742 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11743 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11744 esp = esp + 0xCu; /* 0x36126904: add esp, 0xc */ 11745 _flag_k = FK_ADD; 11746 ecx = eax; /* 0x36126907: mov ecx, eax */ 11747 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x36126909: call dword ptr [0x3617016c] */ 11748 RECOMP_FLAGS_IN(); 11749 edx = MEM32(eax); /* 0x3612690F: mov edx, dword ptr [eax] */ 11750 MEM32(ebp + (-0x5C)) = edx; /* 0x36126911: mov dword ptr [ebp - 0x5c], edx */ 11751 ecx = MEM32(eax + 0x4); /* 0x36126914: mov ecx, dword ptr [eax + 4] */ 11752 MEM32(ebp + (-0x58)) = ecx; /* 0x36126917: mov dword ptr [ebp - 0x58], ecx */ 11753 edx = MEM32(eax + 0x8); /* 0x3612691A: mov edx, dword ptr [eax + 8] */ 11754 MEM32(ebp + (-0x54)) = edx; /* 0x3612691D: mov dword ptr [ebp - 0x54], edx */ 11755 L_36126920: 11756 PUSH32(esp, 0); /* 0x36126920: push 0 */ 11757 PUSH32(esp, 0); /* 0x36126922: push 0 */ 11758 PUSH32(esp, 0); /* 0x36126924: push 0 */ 11759 ecx = ebp + (-0x2B8); /* 0x36126926: lea ecx, [ebp - 0x2b8] */ 11760 RECOMP_ICALL(MEM32(0x36170170)); /* 0x3612692C: call dword ptr [0x36170170] */ 11761 RECOMP_FLAGS_IN(); 11762 edx = MEM32(eax); /* 0x36126932: mov edx, dword ptr [eax] */ 11763 ecx = edi + (-0x8); /* 0x36126934: lea ecx, [edi - 8] */ 11764 MEM32(ecx) = edx; /* 0x36126937: mov dword ptr [ecx], edx */ 11765 edx = MEM32(eax + 0x4); /* 0x36126939: mov edx, dword ptr [eax + 4] */ 11766 MEM32(ecx + 0x4) = edx; /* 0x3612693C: mov dword ptr [ecx + 4], edx */ 11767 eax = MEM32(eax + 0x8); /* 0x3612693F: mov eax, dword ptr [eax + 8] */ 11768 MEM32(ecx + 0x8) = eax; /* 0x36126942: mov dword ptr [ecx + 8], eax */ 11769 eax = MEM32(ebp + (-0x10)); /* 0x36126945: mov eax, dword ptr [ebp - 0x10] */ 11770 edx = MEM32(esi + 0x16C8); /* 0x36126948: mov edx, dword ptr [esi + 0x16c8] */ 11771 eax = eax + eax * 2; /* 0x3612694E: lea eax, [eax + eax*2] */ 11772 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x36126951: shl eax, 3 */ 11773 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11774 eax = eax << 3u; /* 0x36126951: shl eax, 3 */ 11775 ecx = ebp + (-0x5C); /* 0x36126954: lea ecx, [ebp - 0x5c] */ 11776 PUSH32(esp, ecx); /* 0x36126957: push ecx */ 11777 MEM32(ebp + (-0x4)) = eax; /* 0x36126958: mov dword ptr [ebp - 4], eax */ 11778 PUSH32(esp, edx); /* 0x3612695B: push edx */ 11779 eax = ebp + (-0x438); /* 0x3612695C: lea eax, [ebp - 0x438] */ 11780 PUSH32(esp, eax); /* 0x36126962: push eax */ 11781 RECOMP_ICALL(0x3609EB50u); /* 0x36126963: call 0x3609eb50 */ /* not lifted */ 11782 RECOMP_FLAGS_IN(); 11783 edx = MEM32(ebp + (-0x4)); /* 0x36126968: mov edx, dword ptr [ebp - 4] */ 11784 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11786 esp = esp + 0xCu; /* 0x3612696B: add esp, 0xc */ 11787 _flag_k = FK_ADD; 11788 PUSH32(esp, eax); /* 0x3612696E: push eax */ 11789 ecx = ebp + (-0x2D0); /* 0x3612696F: lea ecx, [ebp - 0x2d0] */ 11790 PUSH32(esp, ecx); /* 0x36126975: push ecx */ 11791 ecx = MEM32(ebp + (-0x1C)); /* 0x36126976: mov ecx, dword ptr [ebp - 0x1c] */ 11792 eax = edx + 0x3630D6AC; /* 0x36126979: lea eax, [edx + 0x3630d6ac] */ 11793 PUSH32(esp, eax); /* 0x3612697F: push eax */ 11794 PUSH32(esp, ecx); /* 0x36126980: push ecx */ 11795 edx = ebp + (-0x168); /* 0x36126981: lea edx, [ebp - 0x168] */ 11796 PUSH32(esp, edx); /* 0x36126987: push edx */ 11797 RECOMP_ICALL(0x3609EB50u); /* 0x36126988: call 0x3609eb50 */ /* not lifted */ 11798 RECOMP_FLAGS_IN(); 11799 ecx = MEM32(ebp + (-0x4)); /* 0x3612698D: mov ecx, dword ptr [ebp - 4] */ 11800 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11801 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11802 esp = esp + 0xCu; /* 0x36126990: add esp, 0xc */ 11803 _flag_k = FK_ADD; 11804 PUSH32(esp, eax); /* 0x36126993: push eax */ 11805 eax = ebp + (-0x174); /* 0x36126994: lea eax, [ebp - 0x174] */ 11806 PUSH32(esp, eax); /* 0x3612699A: push eax */ 11807 ecx = ecx + 0x3630D6A0; /* 0x3612699B: lea ecx, [ecx + 0x3630d6a0] */ 11808 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361269A1: call dword ptr [0x3617016c] */ 11809 RECOMP_FLAGS_IN(); 11810 ecx = eax; /* 0x361269A7: mov ecx, eax */ 11811 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361269A9: call dword ptr [0x3617016c] */ 11812 RECOMP_FLAGS_IN(); 11813 ecx = MEM32(eax); /* 0x361269AF: mov ecx, dword ptr [eax] */ 11814 edx = edi + 0x5F8; /* 0x361269B1: lea edx, [edi + 0x5f8] */ 11815 MEM32(edx) = ecx; /* 0x361269B7: mov dword ptr [edx], ecx */ 11816 ecx = MEM32(eax + 0x4); /* 0x361269B9: mov ecx, dword ptr [eax + 4] */ 11817 MEM32(edx + 0x4) = ecx; /* 0x361269BC: mov dword ptr [edx + 4], ecx */ 11818 eax = MEM32(eax + 0x8); /* 0x361269BF: mov eax, dword ptr [eax + 8] */ 11819 ecx = MEM32(ebp + (-0x10)); /* 0x361269C2: mov ecx, dword ptr [ebp - 0x10] */ 11820 MEM32(edx + 0x8) = eax; /* 0x361269C5: mov dword ptr [edx + 8], eax */ 11821 fp_push(*(float*)&MEM32(esi + 0x16C0)); /* 0x361269C8: fld dword ptr [esi + 0x16c0] */ 11822 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x361269CE: fadd dword ptr [esi + 0xc] */ 11823 eax = MEM32(ebp + (-0x14)); /* 0x361269D1: mov eax, dword ptr [ebp - 0x14] */ 11824 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x361269D4: fstp dword ptr [eax] */ 11825 MEM32(eax + (-0x200)) = ecx; /* 0x361269D6: mov dword ptr [eax - 0x200], ecx */ 11826 ecx = MEM32(ebp + (-0x8)); /* 0x361269DC: mov ecx, dword ptr [ebp - 8] */ 11827 eax = MEM32(ebp + (-0x18)); /* 0x361269DF: mov eax, dword ptr [ebp - 0x18] */ 11828 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11829 ecx = ecx + 1; /* 0x361269E2: inc ecx */ 11830 _flag_k = FK_INC; 11831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11832 eax = eax - 1; /* 0x361269E3: dec eax */ 11833 _flag_k = FK_DEC; 11834 MEM32(ebp + (-0x8)) = ecx; /* 0x361269E4: mov dword ptr [ebp - 8], ecx */ 11835 MEM32(ebp + (-0x18)) = eax; /* 0x361269E7: mov dword ptr [ebp - 0x18], eax */ 11836 goto L_361269F4; /* 0x361269EA: jmp 0x361269f4 */ 11837 L_361269EC: 11838 edx = MEM32(esi + 0x38); /* 0x361269EC: mov edx, dword ptr [esi + 0x38] */ 11839 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x361269EF: mov byte ptr [edx + ebx + 0x1c], 0 */ 11840 L_361269F4: 11841 edx = MEM32(ebp + (-0x14)); /* 0x361269F4: mov edx, dword ptr [ebp - 0x14] */ 11842 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 11843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11844 edx = edx + 4; /* 0x361269F7: add edx, 4 */ 11845 _flag_k = FK_ADD; 11846 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 11847 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11848 ebx = ebx + 0x20u; /* 0x361269FA: add ebx, 0x20 */ 11849 _flag_k = FK_ADD; 11850 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 11851 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11852 edi = edi + 0xCu; /* 0x361269FD: add edi, 0xc */ 11853 _flag_k = FK_ADD; 11854 /* cmp ebx, 0x1000u */ /* 0x36126A00: cmp ebx, 0x1000 */ 11855 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 11856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11857 _flag_k = FK_CMP; 11858 MEM32(ebp + (-0x14)) = edx; /* 0x36126A06: mov dword ptr [ebp - 0x14], edx */ 11859 RECOMP_BACKEDGE(); 11860 if (CMP_L(_flag_a, _flag_b)) goto L_36126437; /* 0x36126A09: jl 0x36126437 */ 11861 L_36126A0F: 11862 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126A0F: mov al, byte ptr [esi + 0x163c] */ 11863 /* test LO8(eax), LO8(eax) */ /* 0x36126A15: test al, al */ 11864 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11865 _cf = 0; 11866 _flag_k = FK_NARROW(FK_TEST, 24); 11867 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126A17: je 0x361275ac */ 11868 L_36126A1D: 11869 eax = MEM32(ebp + (-0x8)); /* 0x36126A1D: mov eax, dword ptr [ebp - 8] */ 11870 /* test eax, eax */ /* 0x36126A20: test eax, eax */ 11871 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11872 _cf = 0; 11873 _flag_k = FK_TEST; 11874 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126A22: jne 0x361275ac */ 11875 L_36126A28: 11876 goto L_361275A8; /* 0x36126A28: jmp 0x361275a8 */ 11877 L_361275A8: 11878 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 11879 L_361275AC: 11880 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 11881 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 11882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11883 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 11884 _flag_k = FK_ADD; 11885 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 11886 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11887 _cf = 0; 11888 _flag_k = FK_TEST; 11889 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 11890 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 11891 L_361275B7: 11892 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 11893 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 11894 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 11895 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 11896 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 11897 RECOMP_FLAGS_IN(); 11898 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 11899 PUSH32(esp, eax); /* 0x361275CD: push eax */ 11900 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 11901 RECOMP_FLAGS_IN(); 11902 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 11903 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 11904 RECOMP_FLAGS_IN(); 11905 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 11906 PUSH32(esp, eax); /* 0x361275E2: push eax */ 11907 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 11908 RECOMP_FLAGS_IN(); 11909 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 11910 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 11911 RECOMP_FLAGS_IN(); 11912 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 11913 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11914 _cf = (LO8(eax)) != 0; 11915 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 11916 _flag_k = FK_NARROW(FK_CMP, 24); 11917 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 11918 eax = _sc ? 0xFFFFFFFFu : 0; 11919 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 11920 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 11921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11922 eax = eax + 1; /* 0x361275F6: inc eax */ 11923 _flag_k = FK_INC; 11924 PUSH32(esp, eax); /* 0x361275F7: push eax */ 11925 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 11926 RECOMP_FLAGS_IN(); 11927 L_361275FE: 11928 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 11929 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 11930 esp = ebp; /* 0x36127600: mov esp, ebp */ 11931 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 11932 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 11933 RECOMP_REGS_OUT(); 11934 } 11935 11936 void sub_3612675A(void) { 11937 int _fpu_cmp = 0; 11938 uint32_t _cf = 0; 11939 int _df = 1; 11940 uint32_t _flag_k = FK_NONE; 11941 uint32_t _flag_a = 0, _flag_b = 0; 11942 uint32_t _itail_tgt = 0; 11943 RECOMP_REGS_LOCALS 11944 RECOMP_ENTER(0x3612675Au); 11945 11946 goto L_3612675A; 11947 L_36126437: 11948 ecx = MEM32(ebp + (-0x14)); /* 0x36126437: mov ecx, dword ptr [ebp - 0x14] */ 11949 fp_push(*(float*)&MEM32(ecx)); /* 0x3612643A: fld dword ptr [ecx] */ 11950 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x3612643C: fcomp dword ptr [esi + 0xc] */ 11951 fp_pop(); 11952 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3612643F: fnstsw ax */ 11953 /* test HI8(eax), 0x41u */ /* 0x36126441: test ah, 0x41 */ 11954 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 11955 _cf = 0; 11956 _flag_k = FK_NARROW(FK_TEST, 24); 11957 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612675A; /* 0x36126444: jne 0x3612675a */ 11958 L_3612644A: 11959 eax = MEM32(ecx + (-0x200)); /* 0x3612644A: mov eax, dword ptr [ecx - 0x200] */ 11960 MEM32(ebp + (-0x1C)) = eax; /* 0x36126450: mov dword ptr [ebp - 0x1c], eax */ 11961 eax = eax + eax * 2; /* 0x36126453: lea eax, [eax + eax*2] */ 11962 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x36126456: shl eax, 3 */ 11963 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11964 eax = eax << 3u; /* 0x36126456: shl eax, 3 */ 11965 MEM32(ebp + (-0x84)) = eax; /* 0x36126459: mov dword ptr [ebp - 0x84], eax */ 11966 eax = eax + 0x3630D6A0; /* 0x3612645F: lea eax, [eax + 0x3630d6a0] */ 11967 MEM32(ebp + (-0x4)) = eax; /* 0x36126465: mov dword ptr [ebp - 4], eax */ 11968 ecx = edi + 0x5F8; /* 0x36126468: lea ecx, [edi + 0x5f8] */ 11969 edx = ecx; /* 0x3612646E: mov edx, ecx */ 11970 eax = MEM32(edx); /* 0x36126470: mov eax, dword ptr [edx] */ 11971 MEM32(ebp + (-0xD0)) = eax; /* 0x36126472: mov dword ptr [ebp - 0xd0], eax */ 11972 fp_push(*(float*)&MEM32(ebp + (-0xD0))); /* 0x36126478: fld dword ptr [ebp - 0xd0] */ 11973 eax = MEM32(edx + 0x4); /* 0x3612647E: mov eax, dword ptr [edx + 4] */ 11974 MEM32(ebp + (-0xCC)) = eax; /* 0x36126481: mov dword ptr [ebp - 0xcc], eax */ 11975 eax = MEM32(ebp + (-0x4)); /* 0x36126487: mov eax, dword ptr [ebp - 4] */ 11976 edx = MEM32(edx + 0x8); /* 0x3612648A: mov edx, dword ptr [edx + 8] */ 11977 MEM32(ebp + (-0xC8)) = edx; /* 0x3612648D: mov dword ptr [ebp - 0xc8], edx */ 11978 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36126493: fsub dword ptr [eax] */ 11979 fp_push(*(float*)&MEM32(ebp + (-0xCC))); /* 0x36126495: fld dword ptr [ebp - 0xcc] */ 11980 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x3612649B: fsub dword ptr [eax + 4] */ 11981 fp_push(*(float*)&MEM32(ebp + (-0xC8))); /* 0x3612649E: fld dword ptr [ebp - 0xc8] */ 11982 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x361264A4: fsub dword ptr [eax + 8] */ 11983 eax = MEM32(ebp + (-0x84)); /* 0x361264A7: mov eax, dword ptr [ebp - 0x84] */ 11984 edx = eax + 0x3630D6AC; /* 0x361264AD: lea edx, [eax + 0x3630d6ac] */ 11985 eax = MEM32(ebp + (-0x1C)); /* 0x361264B3: mov eax, dword ptr [ebp - 0x1c] */ 11986 _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x361264B6: fmul dword ptr [edx + 8] */ 11987 fp_xch(1); /* 0x361264B9: fxch st(1) */ 11988 _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x361264BB: fmul dword ptr [edx + 4] */ 11989 { double _v = fp_pop(); _st[0] += _v; } /* 0x361264BE: faddp st(1) */ 11990 fp_xch(1); /* 0x361264C0: fxch st(1) */ 11991 _st[0] *= (double)*(float*)ADDR(edx); /* 0x361264C2: fmul dword ptr [edx] */ 11992 { double _v = fp_pop(); _st[0] += _v; } /* 0x361264C4: faddp st(1) */ 11993 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x361264C6: fdiv dword ptr [eax*4 + 0x3630d688] */ 11994 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361264CD: fcom dword ptr [0x3617040c] */ 11995 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361264D3: fnstsw ax */ 11996 /* test HI8(eax), 1 */ /* 0x361264D5: test ah, 1 */ 11997 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 11998 _cf = 0; 11999 _flag_k = FK_NARROW(FK_TEST, 24); 12000 if (TEST_Z(_flag_a, _flag_b)) goto L_361264E4; /* 0x361264D8: je 0x361264e4 */ 12001 L_361264DA: 12002 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361264DA: fstp st(0) */ 12003 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x361264DC: fld dword ptr [0x3617040c] */ 12004 goto L_361264F9; /* 0x361264E2: jmp 0x361264f9 */ 12005 L_361264E4: 12006 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x361264E4: fcom dword ptr [0x36170380] */ 12007 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361264EA: fnstsw ax */ 12008 /* test HI8(eax), 0x41u */ /* 0x361264EC: test ah, 0x41 */ 12009 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 12010 _cf = 0; 12011 _flag_k = FK_NARROW(FK_TEST, 24); 12012 if (TEST_NZ(_flag_a, _flag_b)) goto L_361264F9; /* 0x361264EF: jne 0x361264f9 */ 12013 L_361264F1: 12014 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361264F1: fstp st(0) */ 12015 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361264F3: fld dword ptr [0x36170380] */ 12016 L_361264F9: 12017 eax = MEM32(edx); /* 0x361264F9: mov eax, dword ptr [edx] */ 12018 MEM32(ebp + (-0x80)) = eax; /* 0x361264FB: mov dword ptr [ebp - 0x80], eax */ 12019 fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x361264FE: fld dword ptr [ebp - 0x80] */ 12020 _st[0] *= _st[1]; /* 0x36126501: fmul st(1) */ 12021 eax = MEM32(edx + 0x4); /* 0x36126503: mov eax, dword ptr [edx + 4] */ 12022 edx = MEM32(edx + 0x8); /* 0x36126506: mov edx, dword ptr [edx + 8] */ 12023 MEM32(ebp + (-0x7C)) = eax; /* 0x36126509: mov dword ptr [ebp - 0x7c], eax */ 12024 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3612650C: fstp dword ptr [ebp - 0x80] */ 12025 eax = MEM32(ebp + (-0x4)); /* 0x3612650F: mov eax, dword ptr [ebp - 4] */ 12026 MEM32(ebp + (-0x78)) = edx; /* 0x36126512: mov dword ptr [ebp - 0x78], edx */ 12027 fp_push(_st[0]); /* 0x36126515: fld st(0) */ 12028 edx = MEM32(eax); /* 0x36126517: mov edx, dword ptr [eax] */ 12029 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36126519: fmul dword ptr [ebp - 0x7c] */ 12030 MEM32(ebp + (-0x44)) = edx; /* 0x3612651C: mov dword ptr [ebp - 0x44], edx */ 12031 edx = MEM32(eax + 0x4); /* 0x3612651F: mov edx, dword ptr [eax + 4] */ 12032 eax = MEM32(eax + 0x8); /* 0x36126522: mov eax, dword ptr [eax + 8] */ 12033 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36126525: fstp dword ptr [ebp - 0x7c] */ 12034 MEM32(ebp + (-0x40)) = edx; /* 0x36126528: mov dword ptr [ebp - 0x40], edx */ 12035 MEM32(ebp + (-0x3C)) = eax; /* 0x3612652B: mov dword ptr [ebp - 0x3c], eax */ 12036 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x3612652E: fmul dword ptr [ebp - 0x78] */ 12037 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126531: fld dword ptr [ebp - 0x44] */ 12038 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36126534: fadd dword ptr [ebp - 0x80] */ 12039 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36126537: fstp dword ptr [ebp - 0x44] */ 12040 edx = MEM32(ebp + (-0x44)); /* 0x3612653A: mov edx, dword ptr [ebp - 0x44] */ 12041 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x3612653D: fld dword ptr [ebp - 0x40] */ 12042 MEM32(ebp + (-0xA8)) = edx; /* 0x36126540: mov dword ptr [ebp - 0xa8], edx */ 12043 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36126546: fadd dword ptr [ebp - 0x7c] */ 12044 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36126549: fstp dword ptr [ebp - 0x40] */ 12045 eax = MEM32(ebp + (-0x40)); /* 0x3612654C: mov eax, dword ptr [ebp - 0x40] */ 12046 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3612654F: fld dword ptr [ebp - 0x3c] */ 12047 MEM32(ebp + (-0xA4)) = eax; /* 0x36126552: mov dword ptr [ebp - 0xa4], eax */ 12048 _st[0] += _st[1]; /* 0x36126558: fadd st(1) */ 12049 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612655A: fstp dword ptr [ebp - 0x3c] */ 12050 edx = MEM32(ebp + (-0x3C)); /* 0x3612655D: mov edx, dword ptr [ebp - 0x3c] */ 12051 MEM32(ebp + (-0xA0)) = edx; /* 0x36126560: mov dword ptr [ebp - 0xa0], edx */ 12052 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126566: fstp st(0) */ 12053 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126568: fld dword ptr [ebp - 0x44] */ 12054 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x3612656B: fsub dword ptr [ecx] */ 12055 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x3612656D: fstp dword ptr [ebp - 0xa8] */ 12056 eax = MEM32(ebp + (-0xA8)); /* 0x36126573: mov eax, dword ptr [ebp - 0xa8] */ 12057 fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x36126579: fld dword ptr [ebp - 0xa4] */ 12058 _st[0] -= (double)*(float*)ADDR(edi + 0x5FC); /* 0x3612657F: fsub dword ptr [edi + 0x5fc] */ 12059 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36126585: fstp dword ptr [ebp - 0xa4] */ 12060 edx = MEM32(ebp + (-0xA4)); /* 0x3612658B: mov edx, dword ptr [ebp - 0xa4] */ 12061 fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x36126591: fld dword ptr [ebp - 0xa0] */ 12062 _st[0] -= (double)*(float*)ADDR(edi + 0x600); /* 0x36126597: fsub dword ptr [edi + 0x600] */ 12063 MEM32(ebp + (-0x28)) = eax; /* 0x3612659D: mov dword ptr [ebp - 0x28], eax */ 12064 MEM32(ebp + (-0x68)) = eax; /* 0x361265A0: mov dword ptr [ebp - 0x68], eax */ 12065 eax = MEM32(ebp + (-0xA4)); /* 0x361265A3: mov eax, dword ptr [ebp - 0xa4] */ 12066 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x361265A9: fstp dword ptr [ebp - 0xa0] */ 12067 MEM32(ebp + (-0x24)) = eax; /* 0x361265AF: mov dword ptr [ebp - 0x24], eax */ 12068 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x361265B2: fld dword ptr [ebp - 0xa8] */ 12069 MEM32(ebp + (-0x64)) = edx; /* 0x361265B8: mov dword ptr [ebp - 0x64], edx */ 12070 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265BB: fmul dword ptr [0x36170d68] */ 12071 edx = MEM32(ebp + (-0xA0)); /* 0x361265C1: mov edx, dword ptr [ebp - 0xa0] */ 12072 MEM32(ebp + (-0x20)) = edx; /* 0x361265C7: mov dword ptr [ebp - 0x20], edx */ 12073 MEM32(ebp + (-0x60)) = edx; /* 0x361265CA: mov dword ptr [ebp - 0x60], edx */ 12074 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361265CD: fstp dword ptr [ebp - 0x28] */ 12075 edx = MEM32(ebp + (-0x28)); /* 0x361265D0: mov edx, dword ptr [ebp - 0x28] */ 12076 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361265D3: fld dword ptr [ebp - 0x24] */ 12077 MEM32(ebp + (-0x100)) = edx; /* 0x361265D6: mov dword ptr [ebp - 0x100], edx */ 12078 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265DC: fmul dword ptr [0x36170d68] */ 12079 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361265E2: fstp dword ptr [ebp - 0x24] */ 12080 eax = MEM32(ebp + (-0x24)); /* 0x361265E5: mov eax, dword ptr [ebp - 0x24] */ 12081 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361265E8: fld dword ptr [ebp - 0x20] */ 12082 MEM32(ebp + (-0xFC)) = eax; /* 0x361265EB: mov dword ptr [ebp - 0xfc], eax */ 12083 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265F1: fmul dword ptr [0x36170d68] */ 12084 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361265F7: fstp dword ptr [ebp - 0x20] */ 12085 edx = MEM32(ebp + (-0x20)); /* 0x361265FA: mov edx, dword ptr [ebp - 0x20] */ 12086 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361265FD: fld dword ptr [ebp - 0x28] */ 12087 MEM32(ebp + (-0xF8)) = edx; /* 0x36126600: mov dword ptr [ebp - 0xf8], edx */ 12088 _st[0] += (double)*(float*)ADDR(edi + (-0x8)); /* 0x36126606: fadd dword ptr [edi - 8] */ 12089 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x8)) = _v; } /* 0x36126609: fstp dword ptr [edi - 8] */ 12090 fp_push(*(float*)&MEM32(ebp + (-0xFC))); /* 0x3612660C: fld dword ptr [ebp - 0xfc] */ 12091 _st[0] += (double)*(float*)ADDR(edi + (-0x4)); /* 0x36126612: fadd dword ptr [edi - 4] */ 12092 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x4)) = _v; } /* 0x36126615: fstp dword ptr [edi - 4] */ 12093 fp_push(*(float*)&MEM32(ebp + (-0xF8))); /* 0x36126618: fld dword ptr [ebp - 0xf8] */ 12094 _st[0] += (double)*(float*)ADDR(edi); /* 0x3612661E: fadd dword ptr [edi] */ 12095 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36126620: fstp dword ptr [edi] */ 12096 eax = MEM32(edi + (-0x8)); /* 0x36126622: mov eax, dword ptr [edi - 8] */ 12097 MEM32(ebp + (-0x38)) = eax; /* 0x36126625: mov dword ptr [ebp - 0x38], eax */ 12098 edx = MEM32(edi + (-0x4)); /* 0x36126628: mov edx, dword ptr [edi - 4] */ 12099 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3612662B: fld dword ptr [ebp - 0x38] */ 12100 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612662E: fmul dword ptr [0x36170d68] */ 12101 MEM32(ebp + (-0x34)) = edx; /* 0x36126634: mov dword ptr [ebp - 0x34], edx */ 12102 eax = MEM32(edi); /* 0x36126637: mov eax, dword ptr [edi] */ 12103 MEM32(ebp + (-0x30)) = eax; /* 0x36126639: mov dword ptr [ebp - 0x30], eax */ 12104 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3612663C: fstp dword ptr [ebp - 0x38] */ 12105 edx = MEM32(ebp + (-0x38)); /* 0x3612663F: mov edx, dword ptr [ebp - 0x38] */ 12106 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36126642: fld dword ptr [ebp - 0x34] */ 12107 MEM32(ebp + (-0x10C)) = edx; /* 0x36126645: mov dword ptr [ebp - 0x10c], edx */ 12108 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612664B: fmul dword ptr [0x36170d68] */ 12109 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36126651: fstp dword ptr [ebp - 0x34] */ 12110 eax = MEM32(ebp + (-0x34)); /* 0x36126654: mov eax, dword ptr [ebp - 0x34] */ 12111 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36126657: fld dword ptr [ebp - 0x30] */ 12112 MEM32(ebp + (-0x108)) = eax; /* 0x3612665A: mov dword ptr [ebp - 0x108], eax */ 12113 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126660: fmul dword ptr [0x36170d68] */ 12114 eax = ebx; /* 0x36126666: mov eax, ebx */ 12115 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36126668: fstp dword ptr [ebp - 0x30] */ 12116 edx = MEM32(ebp + (-0x30)); /* 0x3612666B: mov edx, dword ptr [ebp - 0x30] */ 12117 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3612666E: fld dword ptr [ebp - 0x38] */ 12118 MEM32(ebp + (-0x104)) = edx; /* 0x36126671: mov dword ptr [ebp - 0x104], edx */ 12119 _st[0] += (double)*(float*)ADDR(ecx); /* 0x36126677: fadd dword ptr [ecx] */ 12120 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x36126679: fstp dword ptr [ecx] */ 12121 fp_push(*(float*)&MEM32(ebp + (-0x108))); /* 0x3612667B: fld dword ptr [ebp - 0x108] */ 12122 _st[0] += (double)*(float*)ADDR(edi + 0x5FC); /* 0x36126681: fadd dword ptr [edi + 0x5fc] */ 12123 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5FC) = _v; } /* 0x36126687: fstp dword ptr [edi + 0x5fc] */ 12124 fp_push(*(float*)&MEM32(ebp + (-0x104))); /* 0x3612668D: fld dword ptr [ebp - 0x104] */ 12125 _st[0] += (double)*(float*)ADDR(edi + 0x600); /* 0x36126693: fadd dword ptr [edi + 0x600] */ 12126 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x600) = _v; } /* 0x36126699: fstp dword ptr [edi + 0x600] */ 12127 edx = MEM32(esi + 0x38); /* 0x3612669F: mov edx, dword ptr [esi + 0x38] */ 12128 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12129 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12130 eax = eax + edx; /* 0x361266A2: add eax, edx */ 12131 _flag_k = FK_ADD; 12132 edx = MEM32(ecx); /* 0x361266A4: mov edx, dword ptr [ecx] */ 12133 MEM32(eax) = edx; /* 0x361266A6: mov dword ptr [eax], edx */ 12134 edx = MEM32(ecx + 0x4); /* 0x361266A8: mov edx, dword ptr [ecx + 4] */ 12135 MEM32(eax + 0x4) = edx; /* 0x361266AB: mov dword ptr [eax + 4], edx */ 12136 ecx = MEM32(ecx + 0x8); /* 0x361266AE: mov ecx, dword ptr [ecx + 8] */ 12137 edx = MEM32(ebp + (-0x14)); /* 0x361266B1: mov edx, dword ptr [ebp - 0x14] */ 12138 MEM32(eax + 0x8) = ecx; /* 0x361266B4: mov dword ptr [eax + 8], ecx */ 12139 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x361266B7: fld dword ptr [esi + 0xc] */ 12140 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x361266BA: fadd dword ptr [esi + 0x16c0] */ 12141 eax = MEM32(esi + 0x38); /* 0x361266C0: mov eax, dword ptr [esi + 0x38] */ 12142 _st[0] -= (double)*(float*)ADDR(edx); /* 0x361266C3: fsub dword ptr [edx] */ 12143 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361266C5: fdiv dword ptr [esi + 0x16c0] */ 12144 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361266CB: fst dword ptr [ebp - 4] */ 12145 _st[0] *= (double)*(float*)ADDR(0x361729D0); /* 0x361266CE: fmul dword ptr [0x361729d0] */ 12146 edx = MEM32(ebp + (-0x4)); /* 0x361266D4: mov edx, dword ptr [ebp - 4] */ 12147 PUSH32(esp, edx); /* 0x361266D7: push edx */ 12148 _st[0] += (double)*(float*)ADDR(0x36174F98); /* 0x361266D8: fadd dword ptr [0x36174f98] */ 12149 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x361266DE: fmul dword ptr [esi + 0x16cc] */ 12150 { float _v = (float)_st[0]; *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x361266E4: fst dword ptr [ebx + eax + 0xc] */ 12151 ecx = MEM32(esi + 0x38); /* 0x361266E8: mov ecx, dword ptr [esi + 0x38] */ 12152 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x361266EB: fstp dword ptr [ebx + ecx + 0x10] */ 12153 ecx = esi + 0x168C; /* 0x361266EF: lea ecx, [esi + 0x168c] */ 12154 RECOMP_ICALL(0x36137D80u); /* 0x361266F5: call 0x36137d80 */ /* not lifted */ 12155 RECOMP_FLAGS_IN(); 12156 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361266FA: fld dword ptr [ebp - 4] */ 12157 ecx = MEM32(esi + 0x38); /* 0x361266FD: mov ecx, dword ptr [esi + 0x38] */ 12158 _st[0] *= *(double*)ADDR(0x36177770); /* 0x36126700: fmul qword ptr [0x36177770] */ 12159 MEM32(ebx + ecx + 0x14) = eax; /* 0x36126706: mov dword ptr [ebx + ecx + 0x14], eax */ 12160 RECOMP_ICALL(0x3615FD8Cu); /* 0x3612670A: call 0x3615fd8c */ /* not lifted */ 12161 RECOMP_FLAGS_IN(); 12162 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x3612670F: fld dword ptr [ebp - 0x64] */ 12163 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36126712: fmul dword ptr [ebp - 0x64] */ 12164 edx = MEM32(esi + 0x38); /* 0x36126715: mov edx, dword ptr [esi + 0x38] */ 12165 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36126718: fld dword ptr [ebp - 0x60] */ 12166 MEM32(ebx + edx + 0x18) = eax; /* 0x3612671B: mov dword ptr [ebx + edx + 0x18], eax */ 12167 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x3612671F: fmul dword ptr [ebp - 0x60] */ 12168 eax = MEM32(esi + 0x38); /* 0x36126722: mov eax, dword ptr [esi + 0x38] */ 12169 MEM8(ebx + eax + 0x1C) = (uint8_t)(1); /* 0x36126725: mov byte ptr [ebx + eax + 0x1c], 1 */ 12170 eax = MEM32(ebp + (-0x8)); /* 0x3612672A: mov eax, dword ptr [ebp - 8] */ 12171 { double _v = fp_pop(); _st[0] += _v; } /* 0x3612672D: faddp st(1) */ 12172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12173 eax = eax + 1; /* 0x3612672F: inc eax */ 12174 _flag_k = FK_INC; 12175 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36126730: fld dword ptr [ebp - 0x68] */ 12176 MEM32(ebp + (-0x8)) = eax; /* 0x36126733: mov dword ptr [ebp - 8], eax */ 12177 _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x36126736: fmul dword ptr [ebp - 0x68] */ 12178 { double _v = fp_pop(); _st[0] += _v; } /* 0x36126739: faddp st(1) */ 12179 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361754E4)); /* 0x3612673B: fcomp dword ptr [0x361754e4] */ 12180 fp_pop(); 12181 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36126741: fnstsw ax */ 12182 /* test HI8(eax), 1 */ /* 0x36126743: test ah, 1 */ 12183 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12184 _cf = 0; 12185 _flag_k = FK_NARROW(FK_TEST, 24); 12186 if (TEST_Z(_flag_a, _flag_b)) goto L_361269F4; /* 0x36126746: je 0x361269f4 */ 12187 L_3612674C: 12188 ecx = MEM32(ebp + (-0x14)); /* 0x3612674C: mov ecx, dword ptr [ebp - 0x14] */ 12189 MEM32(ecx) = 0; /* 0x3612674F: mov dword ptr [ecx], 0 */ 12190 goto L_361269F4; /* 0x36126755: jmp 0x361269f4 */ 12191 L_3612675A: 12192 eax = MEM32(ebp + (-0x18)); /* 0x3612675A: mov eax, dword ptr [ebp - 0x18] */ 12193 /* test eax, eax */ /* 0x3612675D: test eax, eax */ 12194 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12195 _cf = 0; 12196 _flag_k = FK_TEST; 12197 if (TEST_Z(_flag_a, _flag_b)) goto L_361269EC; /* 0x3612675F: je 0x361269ec */ 12198 L_36126765: 12199 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126765: mov al, byte ptr [esi + 0x163c] */ 12200 /* test LO8(eax), LO8(eax) */ /* 0x3612676B: test al, al */ 12201 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12202 _cf = 0; 12203 _flag_k = FK_NARROW(FK_TEST, 24); 12204 if (TEST_NZ(_flag_a, _flag_b)) goto L_361269EC; /* 0x3612676D: jne 0x361269ec */ 12205 L_36126773: 12206 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36126773: call dword ptr [0x3616f254] */ 12207 RECOMP_FLAGS_IN(); 12208 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36126779: cdq */ 12209 ecx = 6; /* 0x3612677A: mov ecx, 6 */ 12210 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3612677F: idiv ecx */ 12211 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 12212 else { eax = 0; edx = 0; } } 12213 MEM32(ebp + (-0x10)) = edx; /* 0x36126781: mov dword ptr [ebp - 0x10], edx */ 12214 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36126784: call dword ptr [0x3616f254] */ 12215 RECOMP_FLAGS_IN(); 12216 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 12217 eax = eax & 0x7FFFu; /* 0x3612678A: and eax, 0x7fff */ 12218 _cf = 0; 12219 _flag_k = FK_TEST; 12220 MEM32(ebp + (-0x84)) = eax; /* 0x3612678F: mov dword ptr [ebp - 0x84], eax */ 12221 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x36126795: fild dword ptr [ebp - 0x84] */ 12222 edx = ebp + (-0x5C); /* 0x3612679B: lea edx, [ebp - 0x5c] */ 12223 PUSH32(esp, edx); /* 0x3612679E: push edx */ 12224 MEM32(ebp + (-0x5C)) = 0; /* 0x3612679F: mov dword ptr [ebp - 0x5c], 0 */ 12225 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x361267A6: fmul dword ptr [0x36175f2c] */ 12226 MEM32(ebp + (-0x58)) = 0; /* 0x361267AC: mov dword ptr [ebp - 0x58], 0 */ 12227 MEM32(ebp + (-0x54)) = 0; /* 0x361267B3: mov dword ptr [ebp - 0x54], 0 */ 12228 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361267BA: fstp dword ptr [ebp - 0x1c] */ 12229 RECOMP_ICALL(0x360FCD10u); /* 0x361267BD: call 0x360fcd10 */ /* not lifted */ 12230 RECOMP_FLAGS_IN(); 12231 eax = MEM32(ebp + (-0x10)); /* 0x361267C2: mov eax, dword ptr [ebp - 0x10] */ 12232 fp_push(*(float*)&MEM32(eax * 4 + 0x3630D688)); /* 0x361267C5: fld dword ptr [eax*4 + 0x3630d688] */ 12233 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12235 esp = esp + 4; /* 0x361267CC: add esp, 4 */ 12236 _flag_k = FK_ADD; 12237 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361267CF: fcomp dword ptr [0x3617040c] */ 12238 fp_pop(); 12239 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361267D5: fnstsw ax */ 12240 /* test HI8(eax), 0x40u */ /* 0x361267D7: test ah, 0x40 */ 12241 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 12242 _cf = 0; 12243 _flag_k = FK_NARROW(FK_TEST, 24); 12244 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126920; /* 0x361267DA: jne 0x36126920 */ 12245 L_361267E0: 12246 eax = MEM32(ebp + (-0x10)); /* 0x361267E0: mov eax, dword ptr [ebp - 0x10] */ 12247 eax = eax + eax * 2; /* 0x361267E3: lea eax, [eax + eax*2] */ 12248 ecx = ebp + (-0x50); /* 0x361267E6: lea ecx, [ebp - 0x50] */ 12249 eax = eax * 8 + 0x3630D6AC; /* 0x361267E9: lea eax, [eax*8 + 0x3630d6ac] */ 12250 PUSH32(esp, ecx); /* 0x361267F0: push ecx */ 12251 PUSH32(esp, eax); /* 0x361267F1: push eax */ 12252 MEM32(ebp + (-0x50)) = 0; /* 0x361267F2: mov dword ptr [ebp - 0x50], 0 */ 12253 MEM32(ebp + (-0x4C)) = 0; /* 0x361267F9: mov dword ptr [ebp - 0x4c], 0 */ 12254 MEM32(ebp + (-0x48)) = 0; /* 0x36126800: mov dword ptr [ebp - 0x48], 0 */ 12255 MEM32(ebp + (-0x84)) = eax; /* 0x36126807: mov dword ptr [ebp - 0x84], eax */ 12256 RECOMP_ICALL(0x360FCE60u); /* 0x3612680D: call 0x360fce60 */ /* not lifted */ 12257 RECOMP_FLAGS_IN(); 12258 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36126812: fld dword ptr [ebp - 0x4c] */ 12259 eax = MEM32(ebp + (-0x4C)); /* 0x36126815: mov eax, dword ptr [ebp - 0x4c] */ 12260 edx = MEM32(ebp + (-0x50)); /* 0x36126818: mov edx, dword ptr [ebp - 0x50] */ 12261 ecx = MEM32(ebp + (-0x48)); /* 0x3612681B: mov ecx, dword ptr [ebp - 0x48] */ 12262 MEM32(ebp + (-0x98)) = eax; /* 0x3612681E: mov dword ptr [ebp - 0x98], eax */ 12263 eax = MEM32(ebp + (-0x84)); /* 0x36126824: mov eax, dword ptr [ebp - 0x84] */ 12264 MEM32(ebp + (-0x9C)) = edx; /* 0x3612682A: mov dword ptr [ebp - 0x9c], edx */ 12265 MEM32(ebp + (-0x94)) = ecx; /* 0x36126830: mov dword ptr [ebp - 0x94], ecx */ 12266 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x36126836: fmul dword ptr [eax + 8] */ 12267 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36126839: fld dword ptr [ebp - 0x48] */ 12268 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12269 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12270 esp = esp + 8; /* 0x3612683C: add esp, 8 */ 12271 _flag_k = FK_ADD; 12272 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x3612683F: fmul dword ptr [eax + 4] */ 12273 PUSH32(esp, 0x3F800000u); /* 0x36126842: push 0x3f800000 */ 12274 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126847: fsubp st(1) */ 12275 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36126849: fld dword ptr [ebp - 0x48] */ 12276 _st[0] *= (double)*(float*)ADDR(eax); /* 0x3612684C: fmul dword ptr [eax] */ 12277 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612684E: fld dword ptr [ebp - 0x50] */ 12278 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x36126851: fmul dword ptr [eax + 8] */ 12279 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126854: fsubp st(1) */ 12280 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x36126856: fstp dword ptr [ebp - 0x84] */ 12281 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612685C: fld dword ptr [ebp - 0x50] */ 12282 edx = MEM32(ebp + (-0x84)); /* 0x3612685F: mov edx, dword ptr [ebp - 0x84] */ 12283 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x36126865: fmul dword ptr [eax + 4] */ 12284 ecx = edx; /* 0x36126868: mov ecx, edx */ 12285 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3612686A: fld dword ptr [ebp - 0x4c] */ 12286 _st[0] *= (double)*(float*)ADDR(eax); /* 0x3612686D: fmul dword ptr [eax] */ 12287 MEM32(ebp + (-0x98)) = edx; /* 0x3612686F: mov dword ptr [ebp - 0x98], edx */ 12288 MEM32(ebp + (-0x130)) = ecx; /* 0x36126875: mov dword ptr [ebp - 0x130], ecx */ 12289 ecx = ebp + (-0x134); /* 0x3612687B: lea ecx, [ebp - 0x134] */ 12290 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126881: fsubp st(1) */ 12291 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x36126883: fstp dword ptr [ebp - 0x94] */ 12292 edx = MEM32(ebp + (-0x94)); /* 0x36126889: mov edx, dword ptr [ebp - 0x94] */ 12293 MEM32(ebp + (-0x12C)) = edx; /* 0x3612688F: mov dword ptr [ebp - 0x12c], edx */ 12294 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36126895: fstp dword ptr [ebp - 0x9c] */ 12295 eax = MEM32(ebp + (-0x9C)); /* 0x3612689B: mov eax, dword ptr [ebp - 0x9c] */ 12296 MEM32(ebp + (-0x134)) = eax; /* 0x361268A1: mov dword ptr [ebp - 0x134], eax */ 12297 eax = ebp + (-0x288); /* 0x361268A7: lea eax, [ebp - 0x288] */ 12298 PUSH32(esp, eax); /* 0x361268AD: push eax */ 12299 RECOMP_ICALL(MEM32(0x361701F0)); /* 0x361268AE: call dword ptr [0x361701f0] */ 12300 RECOMP_FLAGS_IN(); 12301 ecx = MEM32(eax); /* 0x361268B4: mov ecx, dword ptr [eax] */ 12302 MEM32(ebp + (-0xF4)) = ecx; /* 0x361268B6: mov dword ptr [ebp - 0xf4], ecx */ 12303 edx = MEM32(eax + 0x4); /* 0x361268BC: mov edx, dword ptr [eax + 4] */ 12304 MEM32(ebp + (-0xF0)) = edx; /* 0x361268BF: mov dword ptr [ebp - 0xf0], edx */ 12305 eax = MEM32(eax + 0x8); /* 0x361268C5: mov eax, dword ptr [eax + 8] */ 12306 edx = MEM32(ebp + (-0x54)); /* 0x361268C8: mov edx, dword ptr [ebp - 0x54] */ 12307 ecx = ebp + (-0xF4); /* 0x361268CB: lea ecx, [ebp - 0xf4] */ 12308 PUSH32(esp, ecx); /* 0x361268D1: push ecx */ 12309 MEM32(ebp + (-0xEC)) = eax; /* 0x361268D2: mov dword ptr [ebp - 0xec], eax */ 12310 PUSH32(esp, edx); /* 0x361268D8: push edx */ 12311 eax = ebp + (-0x3D8); /* 0x361268D9: lea eax, [ebp - 0x3d8] */ 12312 PUSH32(esp, eax); /* 0x361268DF: push eax */ 12313 RECOMP_ICALL(0x3609EB50u); /* 0x361268E0: call 0x3609eb50 */ /* not lifted */ 12314 RECOMP_FLAGS_IN(); 12315 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12316 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12317 esp = esp + 0xCu; /* 0x361268E5: add esp, 0xc */ 12318 _flag_k = FK_ADD; 12319 PUSH32(esp, eax); /* 0x361268E8: push eax */ 12320 eax = MEM32(ebp + (-0x5C)); /* 0x361268E9: mov eax, dword ptr [ebp - 0x5c] */ 12321 ecx = ebp + (-0x2A0); /* 0x361268EC: lea ecx, [ebp - 0x2a0] */ 12322 PUSH32(esp, ecx); /* 0x361268F2: push ecx */ 12323 edx = ebp + (-0x50); /* 0x361268F3: lea edx, [ebp - 0x50] */ 12324 PUSH32(esp, edx); /* 0x361268F6: push edx */ 12325 PUSH32(esp, eax); /* 0x361268F7: push eax */ 12326 ecx = ebp + (-0x378); /* 0x361268F8: lea ecx, [ebp - 0x378] */ 12327 PUSH32(esp, ecx); /* 0x361268FE: push ecx */ 12328 RECOMP_ICALL(0x3609EB50u); /* 0x361268FF: call 0x3609eb50 */ /* not lifted */ 12329 RECOMP_FLAGS_IN(); 12330 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12331 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12332 esp = esp + 0xCu; /* 0x36126904: add esp, 0xc */ 12333 _flag_k = FK_ADD; 12334 ecx = eax; /* 0x36126907: mov ecx, eax */ 12335 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x36126909: call dword ptr [0x3617016c] */ 12336 RECOMP_FLAGS_IN(); 12337 edx = MEM32(eax); /* 0x3612690F: mov edx, dword ptr [eax] */ 12338 MEM32(ebp + (-0x5C)) = edx; /* 0x36126911: mov dword ptr [ebp - 0x5c], edx */ 12339 ecx = MEM32(eax + 0x4); /* 0x36126914: mov ecx, dword ptr [eax + 4] */ 12340 MEM32(ebp + (-0x58)) = ecx; /* 0x36126917: mov dword ptr [ebp - 0x58], ecx */ 12341 edx = MEM32(eax + 0x8); /* 0x3612691A: mov edx, dword ptr [eax + 8] */ 12342 MEM32(ebp + (-0x54)) = edx; /* 0x3612691D: mov dword ptr [ebp - 0x54], edx */ 12343 L_36126920: 12344 PUSH32(esp, 0); /* 0x36126920: push 0 */ 12345 PUSH32(esp, 0); /* 0x36126922: push 0 */ 12346 PUSH32(esp, 0); /* 0x36126924: push 0 */ 12347 ecx = ebp + (-0x2B8); /* 0x36126926: lea ecx, [ebp - 0x2b8] */ 12348 RECOMP_ICALL(MEM32(0x36170170)); /* 0x3612692C: call dword ptr [0x36170170] */ 12349 RECOMP_FLAGS_IN(); 12350 edx = MEM32(eax); /* 0x36126932: mov edx, dword ptr [eax] */ 12351 ecx = edi + (-0x8); /* 0x36126934: lea ecx, [edi - 8] */ 12352 MEM32(ecx) = edx; /* 0x36126937: mov dword ptr [ecx], edx */ 12353 edx = MEM32(eax + 0x4); /* 0x36126939: mov edx, dword ptr [eax + 4] */ 12354 MEM32(ecx + 0x4) = edx; /* 0x3612693C: mov dword ptr [ecx + 4], edx */ 12355 eax = MEM32(eax + 0x8); /* 0x3612693F: mov eax, dword ptr [eax + 8] */ 12356 MEM32(ecx + 0x8) = eax; /* 0x36126942: mov dword ptr [ecx + 8], eax */ 12357 eax = MEM32(ebp + (-0x10)); /* 0x36126945: mov eax, dword ptr [ebp - 0x10] */ 12358 edx = MEM32(esi + 0x16C8); /* 0x36126948: mov edx, dword ptr [esi + 0x16c8] */ 12359 eax = eax + eax * 2; /* 0x3612694E: lea eax, [eax + eax*2] */ 12360 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x36126951: shl eax, 3 */ 12361 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12362 eax = eax << 3u; /* 0x36126951: shl eax, 3 */ 12363 ecx = ebp + (-0x5C); /* 0x36126954: lea ecx, [ebp - 0x5c] */ 12364 PUSH32(esp, ecx); /* 0x36126957: push ecx */ 12365 MEM32(ebp + (-0x4)) = eax; /* 0x36126958: mov dword ptr [ebp - 4], eax */ 12366 PUSH32(esp, edx); /* 0x3612695B: push edx */ 12367 eax = ebp + (-0x438); /* 0x3612695C: lea eax, [ebp - 0x438] */ 12368 PUSH32(esp, eax); /* 0x36126962: push eax */ 12369 RECOMP_ICALL(0x3609EB50u); /* 0x36126963: call 0x3609eb50 */ /* not lifted */ 12370 RECOMP_FLAGS_IN(); 12371 edx = MEM32(ebp + (-0x4)); /* 0x36126968: mov edx, dword ptr [ebp - 4] */ 12372 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12373 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12374 esp = esp + 0xCu; /* 0x3612696B: add esp, 0xc */ 12375 _flag_k = FK_ADD; 12376 PUSH32(esp, eax); /* 0x3612696E: push eax */ 12377 ecx = ebp + (-0x2D0); /* 0x3612696F: lea ecx, [ebp - 0x2d0] */ 12378 PUSH32(esp, ecx); /* 0x36126975: push ecx */ 12379 ecx = MEM32(ebp + (-0x1C)); /* 0x36126976: mov ecx, dword ptr [ebp - 0x1c] */ 12380 eax = edx + 0x3630D6AC; /* 0x36126979: lea eax, [edx + 0x3630d6ac] */ 12381 PUSH32(esp, eax); /* 0x3612697F: push eax */ 12382 PUSH32(esp, ecx); /* 0x36126980: push ecx */ 12383 edx = ebp + (-0x168); /* 0x36126981: lea edx, [ebp - 0x168] */ 12384 PUSH32(esp, edx); /* 0x36126987: push edx */ 12385 RECOMP_ICALL(0x3609EB50u); /* 0x36126988: call 0x3609eb50 */ /* not lifted */ 12386 RECOMP_FLAGS_IN(); 12387 ecx = MEM32(ebp + (-0x4)); /* 0x3612698D: mov ecx, dword ptr [ebp - 4] */ 12388 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12389 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12390 esp = esp + 0xCu; /* 0x36126990: add esp, 0xc */ 12391 _flag_k = FK_ADD; 12392 PUSH32(esp, eax); /* 0x36126993: push eax */ 12393 eax = ebp + (-0x174); /* 0x36126994: lea eax, [ebp - 0x174] */ 12394 PUSH32(esp, eax); /* 0x3612699A: push eax */ 12395 ecx = ecx + 0x3630D6A0; /* 0x3612699B: lea ecx, [ecx + 0x3630d6a0] */ 12396 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361269A1: call dword ptr [0x3617016c] */ 12397 RECOMP_FLAGS_IN(); 12398 ecx = eax; /* 0x361269A7: mov ecx, eax */ 12399 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361269A9: call dword ptr [0x3617016c] */ 12400 RECOMP_FLAGS_IN(); 12401 ecx = MEM32(eax); /* 0x361269AF: mov ecx, dword ptr [eax] */ 12402 edx = edi + 0x5F8; /* 0x361269B1: lea edx, [edi + 0x5f8] */ 12403 MEM32(edx) = ecx; /* 0x361269B7: mov dword ptr [edx], ecx */ 12404 ecx = MEM32(eax + 0x4); /* 0x361269B9: mov ecx, dword ptr [eax + 4] */ 12405 MEM32(edx + 0x4) = ecx; /* 0x361269BC: mov dword ptr [edx + 4], ecx */ 12406 eax = MEM32(eax + 0x8); /* 0x361269BF: mov eax, dword ptr [eax + 8] */ 12407 ecx = MEM32(ebp + (-0x10)); /* 0x361269C2: mov ecx, dword ptr [ebp - 0x10] */ 12408 MEM32(edx + 0x8) = eax; /* 0x361269C5: mov dword ptr [edx + 8], eax */ 12409 fp_push(*(float*)&MEM32(esi + 0x16C0)); /* 0x361269C8: fld dword ptr [esi + 0x16c0] */ 12410 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x361269CE: fadd dword ptr [esi + 0xc] */ 12411 eax = MEM32(ebp + (-0x14)); /* 0x361269D1: mov eax, dword ptr [ebp - 0x14] */ 12412 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x361269D4: fstp dword ptr [eax] */ 12413 MEM32(eax + (-0x200)) = ecx; /* 0x361269D6: mov dword ptr [eax - 0x200], ecx */ 12414 ecx = MEM32(ebp + (-0x8)); /* 0x361269DC: mov ecx, dword ptr [ebp - 8] */ 12415 eax = MEM32(ebp + (-0x18)); /* 0x361269DF: mov eax, dword ptr [ebp - 0x18] */ 12416 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12417 ecx = ecx + 1; /* 0x361269E2: inc ecx */ 12418 _flag_k = FK_INC; 12419 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12420 eax = eax - 1; /* 0x361269E3: dec eax */ 12421 _flag_k = FK_DEC; 12422 MEM32(ebp + (-0x8)) = ecx; /* 0x361269E4: mov dword ptr [ebp - 8], ecx */ 12423 MEM32(ebp + (-0x18)) = eax; /* 0x361269E7: mov dword ptr [ebp - 0x18], eax */ 12424 goto L_361269F4; /* 0x361269EA: jmp 0x361269f4 */ 12425 L_361269EC: 12426 edx = MEM32(esi + 0x38); /* 0x361269EC: mov edx, dword ptr [esi + 0x38] */ 12427 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x361269EF: mov byte ptr [edx + ebx + 0x1c], 0 */ 12428 L_361269F4: 12429 edx = MEM32(ebp + (-0x14)); /* 0x361269F4: mov edx, dword ptr [ebp - 0x14] */ 12430 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 12431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12432 edx = edx + 4; /* 0x361269F7: add edx, 4 */ 12433 _flag_k = FK_ADD; 12434 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 12435 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12436 ebx = ebx + 0x20u; /* 0x361269FA: add ebx, 0x20 */ 12437 _flag_k = FK_ADD; 12438 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 12439 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12440 edi = edi + 0xCu; /* 0x361269FD: add edi, 0xc */ 12441 _flag_k = FK_ADD; 12442 /* cmp ebx, 0x1000u */ /* 0x36126A00: cmp ebx, 0x1000 */ 12443 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 12444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12445 _flag_k = FK_CMP; 12446 MEM32(ebp + (-0x14)) = edx; /* 0x36126A06: mov dword ptr [ebp - 0x14], edx */ 12447 RECOMP_BACKEDGE(); 12448 if (CMP_L(_flag_a, _flag_b)) goto L_36126437; /* 0x36126A09: jl 0x36126437 */ 12449 L_36126A0F: 12450 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126A0F: mov al, byte ptr [esi + 0x163c] */ 12451 /* test LO8(eax), LO8(eax) */ /* 0x36126A15: test al, al */ 12452 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12453 _cf = 0; 12454 _flag_k = FK_NARROW(FK_TEST, 24); 12455 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126A17: je 0x361275ac */ 12456 L_36126A1D: 12457 eax = MEM32(ebp + (-0x8)); /* 0x36126A1D: mov eax, dword ptr [ebp - 8] */ 12458 /* test eax, eax */ /* 0x36126A20: test eax, eax */ 12459 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12460 _cf = 0; 12461 _flag_k = FK_TEST; 12462 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126A22: jne 0x361275ac */ 12463 L_36126A28: 12464 goto L_361275A8; /* 0x36126A28: jmp 0x361275a8 */ 12465 L_361275A8: 12466 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 12467 L_361275AC: 12468 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 12469 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 12470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12471 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 12472 _flag_k = FK_ADD; 12473 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 12474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12475 _cf = 0; 12476 _flag_k = FK_TEST; 12477 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 12478 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 12479 L_361275B7: 12480 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 12481 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 12482 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 12483 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 12484 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 12485 RECOMP_FLAGS_IN(); 12486 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 12487 PUSH32(esp, eax); /* 0x361275CD: push eax */ 12488 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 12489 RECOMP_FLAGS_IN(); 12490 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 12491 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 12492 RECOMP_FLAGS_IN(); 12493 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 12494 PUSH32(esp, eax); /* 0x361275E2: push eax */ 12495 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 12496 RECOMP_FLAGS_IN(); 12497 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 12498 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 12499 RECOMP_FLAGS_IN(); 12500 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 12501 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12502 _cf = (LO8(eax)) != 0; 12503 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 12504 _flag_k = FK_NARROW(FK_CMP, 24); 12505 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 12506 eax = _sc ? 0xFFFFFFFFu : 0; 12507 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 12508 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 12509 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12510 eax = eax + 1; /* 0x361275F6: inc eax */ 12511 _flag_k = FK_INC; 12512 PUSH32(esp, eax); /* 0x361275F7: push eax */ 12513 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 12514 RECOMP_FLAGS_IN(); 12515 L_361275FE: 12516 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 12517 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 12518 esp = ebp; /* 0x36127600: mov esp, ebp */ 12519 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 12520 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 12521 RECOMP_REGS_OUT(); 12522 } 12523 12524 void sub_361269F4(void) { 12525 int _fpu_cmp = 0; 12526 uint32_t _cf = 0; 12527 int _df = 1; 12528 uint32_t _flag_k = FK_NONE; 12529 uint32_t _flag_a = 0, _flag_b = 0; 12530 uint32_t _itail_tgt = 0; 12531 RECOMP_REGS_LOCALS 12532 RECOMP_ENTER(0x361269F4u); 12533 12534 goto L_361269F4; 12535 L_36126437: 12536 ecx = MEM32(ebp + (-0x14)); /* 0x36126437: mov ecx, dword ptr [ebp - 0x14] */ 12537 fp_push(*(float*)&MEM32(ecx)); /* 0x3612643A: fld dword ptr [ecx] */ 12538 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x3612643C: fcomp dword ptr [esi + 0xc] */ 12539 fp_pop(); 12540 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3612643F: fnstsw ax */ 12541 /* test HI8(eax), 0x41u */ /* 0x36126441: test ah, 0x41 */ 12542 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 12543 _cf = 0; 12544 _flag_k = FK_NARROW(FK_TEST, 24); 12545 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612675A; /* 0x36126444: jne 0x3612675a */ 12546 L_3612644A: 12547 eax = MEM32(ecx + (-0x200)); /* 0x3612644A: mov eax, dword ptr [ecx - 0x200] */ 12548 MEM32(ebp + (-0x1C)) = eax; /* 0x36126450: mov dword ptr [ebp - 0x1c], eax */ 12549 eax = eax + eax * 2; /* 0x36126453: lea eax, [eax + eax*2] */ 12550 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x36126456: shl eax, 3 */ 12551 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12552 eax = eax << 3u; /* 0x36126456: shl eax, 3 */ 12553 MEM32(ebp + (-0x84)) = eax; /* 0x36126459: mov dword ptr [ebp - 0x84], eax */ 12554 eax = eax + 0x3630D6A0; /* 0x3612645F: lea eax, [eax + 0x3630d6a0] */ 12555 MEM32(ebp + (-0x4)) = eax; /* 0x36126465: mov dword ptr [ebp - 4], eax */ 12556 ecx = edi + 0x5F8; /* 0x36126468: lea ecx, [edi + 0x5f8] */ 12557 edx = ecx; /* 0x3612646E: mov edx, ecx */ 12558 eax = MEM32(edx); /* 0x36126470: mov eax, dword ptr [edx] */ 12559 MEM32(ebp + (-0xD0)) = eax; /* 0x36126472: mov dword ptr [ebp - 0xd0], eax */ 12560 fp_push(*(float*)&MEM32(ebp + (-0xD0))); /* 0x36126478: fld dword ptr [ebp - 0xd0] */ 12561 eax = MEM32(edx + 0x4); /* 0x3612647E: mov eax, dword ptr [edx + 4] */ 12562 MEM32(ebp + (-0xCC)) = eax; /* 0x36126481: mov dword ptr [ebp - 0xcc], eax */ 12563 eax = MEM32(ebp + (-0x4)); /* 0x36126487: mov eax, dword ptr [ebp - 4] */ 12564 edx = MEM32(edx + 0x8); /* 0x3612648A: mov edx, dword ptr [edx + 8] */ 12565 MEM32(ebp + (-0xC8)) = edx; /* 0x3612648D: mov dword ptr [ebp - 0xc8], edx */ 12566 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36126493: fsub dword ptr [eax] */ 12567 fp_push(*(float*)&MEM32(ebp + (-0xCC))); /* 0x36126495: fld dword ptr [ebp - 0xcc] */ 12568 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x3612649B: fsub dword ptr [eax + 4] */ 12569 fp_push(*(float*)&MEM32(ebp + (-0xC8))); /* 0x3612649E: fld dword ptr [ebp - 0xc8] */ 12570 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x361264A4: fsub dword ptr [eax + 8] */ 12571 eax = MEM32(ebp + (-0x84)); /* 0x361264A7: mov eax, dword ptr [ebp - 0x84] */ 12572 edx = eax + 0x3630D6AC; /* 0x361264AD: lea edx, [eax + 0x3630d6ac] */ 12573 eax = MEM32(ebp + (-0x1C)); /* 0x361264B3: mov eax, dword ptr [ebp - 0x1c] */ 12574 _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x361264B6: fmul dword ptr [edx + 8] */ 12575 fp_xch(1); /* 0x361264B9: fxch st(1) */ 12576 _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x361264BB: fmul dword ptr [edx + 4] */ 12577 { double _v = fp_pop(); _st[0] += _v; } /* 0x361264BE: faddp st(1) */ 12578 fp_xch(1); /* 0x361264C0: fxch st(1) */ 12579 _st[0] *= (double)*(float*)ADDR(edx); /* 0x361264C2: fmul dword ptr [edx] */ 12580 { double _v = fp_pop(); _st[0] += _v; } /* 0x361264C4: faddp st(1) */ 12581 _st[0] /= (double)*(float*)ADDR(eax * 4 + 0x3630D688); /* 0x361264C6: fdiv dword ptr [eax*4 + 0x3630d688] */ 12582 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361264CD: fcom dword ptr [0x3617040c] */ 12583 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361264D3: fnstsw ax */ 12584 /* test HI8(eax), 1 */ /* 0x361264D5: test ah, 1 */ 12585 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12586 _cf = 0; 12587 _flag_k = FK_NARROW(FK_TEST, 24); 12588 if (TEST_Z(_flag_a, _flag_b)) goto L_361264E4; /* 0x361264D8: je 0x361264e4 */ 12589 L_361264DA: 12590 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361264DA: fstp st(0) */ 12591 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x361264DC: fld dword ptr [0x3617040c] */ 12592 goto L_361264F9; /* 0x361264E2: jmp 0x361264f9 */ 12593 L_361264E4: 12594 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x361264E4: fcom dword ptr [0x36170380] */ 12595 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361264EA: fnstsw ax */ 12596 /* test HI8(eax), 0x41u */ /* 0x361264EC: test ah, 0x41 */ 12597 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 12598 _cf = 0; 12599 _flag_k = FK_NARROW(FK_TEST, 24); 12600 if (TEST_NZ(_flag_a, _flag_b)) goto L_361264F9; /* 0x361264EF: jne 0x361264f9 */ 12601 L_361264F1: 12602 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361264F1: fstp st(0) */ 12603 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361264F3: fld dword ptr [0x36170380] */ 12604 L_361264F9: 12605 eax = MEM32(edx); /* 0x361264F9: mov eax, dword ptr [edx] */ 12606 MEM32(ebp + (-0x80)) = eax; /* 0x361264FB: mov dword ptr [ebp - 0x80], eax */ 12607 fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x361264FE: fld dword ptr [ebp - 0x80] */ 12608 _st[0] *= _st[1]; /* 0x36126501: fmul st(1) */ 12609 eax = MEM32(edx + 0x4); /* 0x36126503: mov eax, dword ptr [edx + 4] */ 12610 edx = MEM32(edx + 0x8); /* 0x36126506: mov edx, dword ptr [edx + 8] */ 12611 MEM32(ebp + (-0x7C)) = eax; /* 0x36126509: mov dword ptr [ebp - 0x7c], eax */ 12612 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3612650C: fstp dword ptr [ebp - 0x80] */ 12613 eax = MEM32(ebp + (-0x4)); /* 0x3612650F: mov eax, dword ptr [ebp - 4] */ 12614 MEM32(ebp + (-0x78)) = edx; /* 0x36126512: mov dword ptr [ebp - 0x78], edx */ 12615 fp_push(_st[0]); /* 0x36126515: fld st(0) */ 12616 edx = MEM32(eax); /* 0x36126517: mov edx, dword ptr [eax] */ 12617 _st[0] *= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36126519: fmul dword ptr [ebp - 0x7c] */ 12618 MEM32(ebp + (-0x44)) = edx; /* 0x3612651C: mov dword ptr [ebp - 0x44], edx */ 12619 edx = MEM32(eax + 0x4); /* 0x3612651F: mov edx, dword ptr [eax + 4] */ 12620 eax = MEM32(eax + 0x8); /* 0x36126522: mov eax, dword ptr [eax + 8] */ 12621 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36126525: fstp dword ptr [ebp - 0x7c] */ 12622 MEM32(ebp + (-0x40)) = edx; /* 0x36126528: mov dword ptr [ebp - 0x40], edx */ 12623 MEM32(ebp + (-0x3C)) = eax; /* 0x3612652B: mov dword ptr [ebp - 0x3c], eax */ 12624 _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x3612652E: fmul dword ptr [ebp - 0x78] */ 12625 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126531: fld dword ptr [ebp - 0x44] */ 12626 _st[0] += (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36126534: fadd dword ptr [ebp - 0x80] */ 12627 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36126537: fstp dword ptr [ebp - 0x44] */ 12628 edx = MEM32(ebp + (-0x44)); /* 0x3612653A: mov edx, dword ptr [ebp - 0x44] */ 12629 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x3612653D: fld dword ptr [ebp - 0x40] */ 12630 MEM32(ebp + (-0xA8)) = edx; /* 0x36126540: mov dword ptr [ebp - 0xa8], edx */ 12631 _st[0] += (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x36126546: fadd dword ptr [ebp - 0x7c] */ 12632 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36126549: fstp dword ptr [ebp - 0x40] */ 12633 eax = MEM32(ebp + (-0x40)); /* 0x3612654C: mov eax, dword ptr [ebp - 0x40] */ 12634 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3612654F: fld dword ptr [ebp - 0x3c] */ 12635 MEM32(ebp + (-0xA4)) = eax; /* 0x36126552: mov dword ptr [ebp - 0xa4], eax */ 12636 _st[0] += _st[1]; /* 0x36126558: fadd st(1) */ 12637 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612655A: fstp dword ptr [ebp - 0x3c] */ 12638 edx = MEM32(ebp + (-0x3C)); /* 0x3612655D: mov edx, dword ptr [ebp - 0x3c] */ 12639 MEM32(ebp + (-0xA0)) = edx; /* 0x36126560: mov dword ptr [ebp - 0xa0], edx */ 12640 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126566: fstp st(0) */ 12641 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36126568: fld dword ptr [ebp - 0x44] */ 12642 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x3612656B: fsub dword ptr [ecx] */ 12643 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x3612656D: fstp dword ptr [ebp - 0xa8] */ 12644 eax = MEM32(ebp + (-0xA8)); /* 0x36126573: mov eax, dword ptr [ebp - 0xa8] */ 12645 fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x36126579: fld dword ptr [ebp - 0xa4] */ 12646 _st[0] -= (double)*(float*)ADDR(edi + 0x5FC); /* 0x3612657F: fsub dword ptr [edi + 0x5fc] */ 12647 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36126585: fstp dword ptr [ebp - 0xa4] */ 12648 edx = MEM32(ebp + (-0xA4)); /* 0x3612658B: mov edx, dword ptr [ebp - 0xa4] */ 12649 fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x36126591: fld dword ptr [ebp - 0xa0] */ 12650 _st[0] -= (double)*(float*)ADDR(edi + 0x600); /* 0x36126597: fsub dword ptr [edi + 0x600] */ 12651 MEM32(ebp + (-0x28)) = eax; /* 0x3612659D: mov dword ptr [ebp - 0x28], eax */ 12652 MEM32(ebp + (-0x68)) = eax; /* 0x361265A0: mov dword ptr [ebp - 0x68], eax */ 12653 eax = MEM32(ebp + (-0xA4)); /* 0x361265A3: mov eax, dword ptr [ebp - 0xa4] */ 12654 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x361265A9: fstp dword ptr [ebp - 0xa0] */ 12655 MEM32(ebp + (-0x24)) = eax; /* 0x361265AF: mov dword ptr [ebp - 0x24], eax */ 12656 fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x361265B2: fld dword ptr [ebp - 0xa8] */ 12657 MEM32(ebp + (-0x64)) = edx; /* 0x361265B8: mov dword ptr [ebp - 0x64], edx */ 12658 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265BB: fmul dword ptr [0x36170d68] */ 12659 edx = MEM32(ebp + (-0xA0)); /* 0x361265C1: mov edx, dword ptr [ebp - 0xa0] */ 12660 MEM32(ebp + (-0x20)) = edx; /* 0x361265C7: mov dword ptr [ebp - 0x20], edx */ 12661 MEM32(ebp + (-0x60)) = edx; /* 0x361265CA: mov dword ptr [ebp - 0x60], edx */ 12662 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361265CD: fstp dword ptr [ebp - 0x28] */ 12663 edx = MEM32(ebp + (-0x28)); /* 0x361265D0: mov edx, dword ptr [ebp - 0x28] */ 12664 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361265D3: fld dword ptr [ebp - 0x24] */ 12665 MEM32(ebp + (-0x100)) = edx; /* 0x361265D6: mov dword ptr [ebp - 0x100], edx */ 12666 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265DC: fmul dword ptr [0x36170d68] */ 12667 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361265E2: fstp dword ptr [ebp - 0x24] */ 12668 eax = MEM32(ebp + (-0x24)); /* 0x361265E5: mov eax, dword ptr [ebp - 0x24] */ 12669 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361265E8: fld dword ptr [ebp - 0x20] */ 12670 MEM32(ebp + (-0xFC)) = eax; /* 0x361265EB: mov dword ptr [ebp - 0xfc], eax */ 12671 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361265F1: fmul dword ptr [0x36170d68] */ 12672 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361265F7: fstp dword ptr [ebp - 0x20] */ 12673 edx = MEM32(ebp + (-0x20)); /* 0x361265FA: mov edx, dword ptr [ebp - 0x20] */ 12674 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361265FD: fld dword ptr [ebp - 0x28] */ 12675 MEM32(ebp + (-0xF8)) = edx; /* 0x36126600: mov dword ptr [ebp - 0xf8], edx */ 12676 _st[0] += (double)*(float*)ADDR(edi + (-0x8)); /* 0x36126606: fadd dword ptr [edi - 8] */ 12677 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x8)) = _v; } /* 0x36126609: fstp dword ptr [edi - 8] */ 12678 fp_push(*(float*)&MEM32(ebp + (-0xFC))); /* 0x3612660C: fld dword ptr [ebp - 0xfc] */ 12679 _st[0] += (double)*(float*)ADDR(edi + (-0x4)); /* 0x36126612: fadd dword ptr [edi - 4] */ 12680 { float _v = (float)fp_pop(); *(float*)ADDR(edi + (-0x4)) = _v; } /* 0x36126615: fstp dword ptr [edi - 4] */ 12681 fp_push(*(float*)&MEM32(ebp + (-0xF8))); /* 0x36126618: fld dword ptr [ebp - 0xf8] */ 12682 _st[0] += (double)*(float*)ADDR(edi); /* 0x3612661E: fadd dword ptr [edi] */ 12683 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36126620: fstp dword ptr [edi] */ 12684 eax = MEM32(edi + (-0x8)); /* 0x36126622: mov eax, dword ptr [edi - 8] */ 12685 MEM32(ebp + (-0x38)) = eax; /* 0x36126625: mov dword ptr [ebp - 0x38], eax */ 12686 edx = MEM32(edi + (-0x4)); /* 0x36126628: mov edx, dword ptr [edi - 4] */ 12687 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3612662B: fld dword ptr [ebp - 0x38] */ 12688 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612662E: fmul dword ptr [0x36170d68] */ 12689 MEM32(ebp + (-0x34)) = edx; /* 0x36126634: mov dword ptr [ebp - 0x34], edx */ 12690 eax = MEM32(edi); /* 0x36126637: mov eax, dword ptr [edi] */ 12691 MEM32(ebp + (-0x30)) = eax; /* 0x36126639: mov dword ptr [ebp - 0x30], eax */ 12692 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3612663C: fstp dword ptr [ebp - 0x38] */ 12693 edx = MEM32(ebp + (-0x38)); /* 0x3612663F: mov edx, dword ptr [ebp - 0x38] */ 12694 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36126642: fld dword ptr [ebp - 0x34] */ 12695 MEM32(ebp + (-0x10C)) = edx; /* 0x36126645: mov dword ptr [ebp - 0x10c], edx */ 12696 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x3612664B: fmul dword ptr [0x36170d68] */ 12697 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36126651: fstp dword ptr [ebp - 0x34] */ 12698 eax = MEM32(ebp + (-0x34)); /* 0x36126654: mov eax, dword ptr [ebp - 0x34] */ 12699 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36126657: fld dword ptr [ebp - 0x30] */ 12700 MEM32(ebp + (-0x108)) = eax; /* 0x3612665A: mov dword ptr [ebp - 0x108], eax */ 12701 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36126660: fmul dword ptr [0x36170d68] */ 12702 eax = ebx; /* 0x36126666: mov eax, ebx */ 12703 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36126668: fstp dword ptr [ebp - 0x30] */ 12704 edx = MEM32(ebp + (-0x30)); /* 0x3612666B: mov edx, dword ptr [ebp - 0x30] */ 12705 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3612666E: fld dword ptr [ebp - 0x38] */ 12706 MEM32(ebp + (-0x104)) = edx; /* 0x36126671: mov dword ptr [ebp - 0x104], edx */ 12707 _st[0] += (double)*(float*)ADDR(ecx); /* 0x36126677: fadd dword ptr [ecx] */ 12708 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x36126679: fstp dword ptr [ecx] */ 12709 fp_push(*(float*)&MEM32(ebp + (-0x108))); /* 0x3612667B: fld dword ptr [ebp - 0x108] */ 12710 _st[0] += (double)*(float*)ADDR(edi + 0x5FC); /* 0x36126681: fadd dword ptr [edi + 0x5fc] */ 12711 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x5FC) = _v; } /* 0x36126687: fstp dword ptr [edi + 0x5fc] */ 12712 fp_push(*(float*)&MEM32(ebp + (-0x104))); /* 0x3612668D: fld dword ptr [ebp - 0x104] */ 12713 _st[0] += (double)*(float*)ADDR(edi + 0x600); /* 0x36126693: fadd dword ptr [edi + 0x600] */ 12714 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x600) = _v; } /* 0x36126699: fstp dword ptr [edi + 0x600] */ 12715 edx = MEM32(esi + 0x38); /* 0x3612669F: mov edx, dword ptr [esi + 0x38] */ 12716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12718 eax = eax + edx; /* 0x361266A2: add eax, edx */ 12719 _flag_k = FK_ADD; 12720 edx = MEM32(ecx); /* 0x361266A4: mov edx, dword ptr [ecx] */ 12721 MEM32(eax) = edx; /* 0x361266A6: mov dword ptr [eax], edx */ 12722 edx = MEM32(ecx + 0x4); /* 0x361266A8: mov edx, dword ptr [ecx + 4] */ 12723 MEM32(eax + 0x4) = edx; /* 0x361266AB: mov dword ptr [eax + 4], edx */ 12724 ecx = MEM32(ecx + 0x8); /* 0x361266AE: mov ecx, dword ptr [ecx + 8] */ 12725 edx = MEM32(ebp + (-0x14)); /* 0x361266B1: mov edx, dword ptr [ebp - 0x14] */ 12726 MEM32(eax + 0x8) = ecx; /* 0x361266B4: mov dword ptr [eax + 8], ecx */ 12727 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x361266B7: fld dword ptr [esi + 0xc] */ 12728 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x361266BA: fadd dword ptr [esi + 0x16c0] */ 12729 eax = MEM32(esi + 0x38); /* 0x361266C0: mov eax, dword ptr [esi + 0x38] */ 12730 _st[0] -= (double)*(float*)ADDR(edx); /* 0x361266C3: fsub dword ptr [edx] */ 12731 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361266C5: fdiv dword ptr [esi + 0x16c0] */ 12732 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361266CB: fst dword ptr [ebp - 4] */ 12733 _st[0] *= (double)*(float*)ADDR(0x361729D0); /* 0x361266CE: fmul dword ptr [0x361729d0] */ 12734 edx = MEM32(ebp + (-0x4)); /* 0x361266D4: mov edx, dword ptr [ebp - 4] */ 12735 PUSH32(esp, edx); /* 0x361266D7: push edx */ 12736 _st[0] += (double)*(float*)ADDR(0x36174F98); /* 0x361266D8: fadd dword ptr [0x36174f98] */ 12737 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x361266DE: fmul dword ptr [esi + 0x16cc] */ 12738 { float _v = (float)_st[0]; *(float*)ADDR(ebx + eax + 0xC) = _v; } /* 0x361266E4: fst dword ptr [ebx + eax + 0xc] */ 12739 ecx = MEM32(esi + 0x38); /* 0x361266E8: mov ecx, dword ptr [esi + 0x38] */ 12740 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0x10) = _v; } /* 0x361266EB: fstp dword ptr [ebx + ecx + 0x10] */ 12741 ecx = esi + 0x168C; /* 0x361266EF: lea ecx, [esi + 0x168c] */ 12742 RECOMP_ICALL(0x36137D80u); /* 0x361266F5: call 0x36137d80 */ /* not lifted */ 12743 RECOMP_FLAGS_IN(); 12744 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361266FA: fld dword ptr [ebp - 4] */ 12745 ecx = MEM32(esi + 0x38); /* 0x361266FD: mov ecx, dword ptr [esi + 0x38] */ 12746 _st[0] *= *(double*)ADDR(0x36177770); /* 0x36126700: fmul qword ptr [0x36177770] */ 12747 MEM32(ebx + ecx + 0x14) = eax; /* 0x36126706: mov dword ptr [ebx + ecx + 0x14], eax */ 12748 RECOMP_ICALL(0x3615FD8Cu); /* 0x3612670A: call 0x3615fd8c */ /* not lifted */ 12749 RECOMP_FLAGS_IN(); 12750 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x3612670F: fld dword ptr [ebp - 0x64] */ 12751 _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x36126712: fmul dword ptr [ebp - 0x64] */ 12752 edx = MEM32(esi + 0x38); /* 0x36126715: mov edx, dword ptr [esi + 0x38] */ 12753 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36126718: fld dword ptr [ebp - 0x60] */ 12754 MEM32(ebx + edx + 0x18) = eax; /* 0x3612671B: mov dword ptr [ebx + edx + 0x18], eax */ 12755 _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x3612671F: fmul dword ptr [ebp - 0x60] */ 12756 eax = MEM32(esi + 0x38); /* 0x36126722: mov eax, dword ptr [esi + 0x38] */ 12757 MEM8(ebx + eax + 0x1C) = (uint8_t)(1); /* 0x36126725: mov byte ptr [ebx + eax + 0x1c], 1 */ 12758 eax = MEM32(ebp + (-0x8)); /* 0x3612672A: mov eax, dword ptr [ebp - 8] */ 12759 { double _v = fp_pop(); _st[0] += _v; } /* 0x3612672D: faddp st(1) */ 12760 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12761 eax = eax + 1; /* 0x3612672F: inc eax */ 12762 _flag_k = FK_INC; 12763 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36126730: fld dword ptr [ebp - 0x68] */ 12764 MEM32(ebp + (-0x8)) = eax; /* 0x36126733: mov dword ptr [ebp - 8], eax */ 12765 _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x36126736: fmul dword ptr [ebp - 0x68] */ 12766 { double _v = fp_pop(); _st[0] += _v; } /* 0x36126739: faddp st(1) */ 12767 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361754E4)); /* 0x3612673B: fcomp dword ptr [0x361754e4] */ 12768 fp_pop(); 12769 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36126741: fnstsw ax */ 12770 /* test HI8(eax), 1 */ /* 0x36126743: test ah, 1 */ 12771 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12772 _cf = 0; 12773 _flag_k = FK_NARROW(FK_TEST, 24); 12774 if (TEST_Z(_flag_a, _flag_b)) goto L_361269F4; /* 0x36126746: je 0x361269f4 */ 12775 L_3612674C: 12776 ecx = MEM32(ebp + (-0x14)); /* 0x3612674C: mov ecx, dword ptr [ebp - 0x14] */ 12777 MEM32(ecx) = 0; /* 0x3612674F: mov dword ptr [ecx], 0 */ 12778 goto L_361269F4; /* 0x36126755: jmp 0x361269f4 */ 12779 L_3612675A: 12780 eax = MEM32(ebp + (-0x18)); /* 0x3612675A: mov eax, dword ptr [ebp - 0x18] */ 12781 /* test eax, eax */ /* 0x3612675D: test eax, eax */ 12782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12783 _cf = 0; 12784 _flag_k = FK_TEST; 12785 if (TEST_Z(_flag_a, _flag_b)) goto L_361269EC; /* 0x3612675F: je 0x361269ec */ 12786 L_36126765: 12787 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126765: mov al, byte ptr [esi + 0x163c] */ 12788 /* test LO8(eax), LO8(eax) */ /* 0x3612676B: test al, al */ 12789 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12790 _cf = 0; 12791 _flag_k = FK_NARROW(FK_TEST, 24); 12792 if (TEST_NZ(_flag_a, _flag_b)) goto L_361269EC; /* 0x3612676D: jne 0x361269ec */ 12793 L_36126773: 12794 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36126773: call dword ptr [0x3616f254] */ 12795 RECOMP_FLAGS_IN(); 12796 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36126779: cdq */ 12797 ecx = 6; /* 0x3612677A: mov ecx, 6 */ 12798 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3612677F: idiv ecx */ 12799 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 12800 else { eax = 0; edx = 0; } } 12801 MEM32(ebp + (-0x10)) = edx; /* 0x36126781: mov dword ptr [ebp - 0x10], edx */ 12802 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36126784: call dword ptr [0x3616f254] */ 12803 RECOMP_FLAGS_IN(); 12804 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 12805 eax = eax & 0x7FFFu; /* 0x3612678A: and eax, 0x7fff */ 12806 _cf = 0; 12807 _flag_k = FK_TEST; 12808 MEM32(ebp + (-0x84)) = eax; /* 0x3612678F: mov dword ptr [ebp - 0x84], eax */ 12809 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x36126795: fild dword ptr [ebp - 0x84] */ 12810 edx = ebp + (-0x5C); /* 0x3612679B: lea edx, [ebp - 0x5c] */ 12811 PUSH32(esp, edx); /* 0x3612679E: push edx */ 12812 MEM32(ebp + (-0x5C)) = 0; /* 0x3612679F: mov dword ptr [ebp - 0x5c], 0 */ 12813 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x361267A6: fmul dword ptr [0x36175f2c] */ 12814 MEM32(ebp + (-0x58)) = 0; /* 0x361267AC: mov dword ptr [ebp - 0x58], 0 */ 12815 MEM32(ebp + (-0x54)) = 0; /* 0x361267B3: mov dword ptr [ebp - 0x54], 0 */ 12816 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361267BA: fstp dword ptr [ebp - 0x1c] */ 12817 RECOMP_ICALL(0x360FCD10u); /* 0x361267BD: call 0x360fcd10 */ /* not lifted */ 12818 RECOMP_FLAGS_IN(); 12819 eax = MEM32(ebp + (-0x10)); /* 0x361267C2: mov eax, dword ptr [ebp - 0x10] */ 12820 fp_push(*(float*)&MEM32(eax * 4 + 0x3630D688)); /* 0x361267C5: fld dword ptr [eax*4 + 0x3630d688] */ 12821 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12823 esp = esp + 4; /* 0x361267CC: add esp, 4 */ 12824 _flag_k = FK_ADD; 12825 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361267CF: fcomp dword ptr [0x3617040c] */ 12826 fp_pop(); 12827 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361267D5: fnstsw ax */ 12828 /* test HI8(eax), 0x40u */ /* 0x361267D7: test ah, 0x40 */ 12829 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 12830 _cf = 0; 12831 _flag_k = FK_NARROW(FK_TEST, 24); 12832 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126920; /* 0x361267DA: jne 0x36126920 */ 12833 L_361267E0: 12834 eax = MEM32(ebp + (-0x10)); /* 0x361267E0: mov eax, dword ptr [ebp - 0x10] */ 12835 eax = eax + eax * 2; /* 0x361267E3: lea eax, [eax + eax*2] */ 12836 ecx = ebp + (-0x50); /* 0x361267E6: lea ecx, [ebp - 0x50] */ 12837 eax = eax * 8 + 0x3630D6AC; /* 0x361267E9: lea eax, [eax*8 + 0x3630d6ac] */ 12838 PUSH32(esp, ecx); /* 0x361267F0: push ecx */ 12839 PUSH32(esp, eax); /* 0x361267F1: push eax */ 12840 MEM32(ebp + (-0x50)) = 0; /* 0x361267F2: mov dword ptr [ebp - 0x50], 0 */ 12841 MEM32(ebp + (-0x4C)) = 0; /* 0x361267F9: mov dword ptr [ebp - 0x4c], 0 */ 12842 MEM32(ebp + (-0x48)) = 0; /* 0x36126800: mov dword ptr [ebp - 0x48], 0 */ 12843 MEM32(ebp + (-0x84)) = eax; /* 0x36126807: mov dword ptr [ebp - 0x84], eax */ 12844 RECOMP_ICALL(0x360FCE60u); /* 0x3612680D: call 0x360fce60 */ /* not lifted */ 12845 RECOMP_FLAGS_IN(); 12846 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36126812: fld dword ptr [ebp - 0x4c] */ 12847 eax = MEM32(ebp + (-0x4C)); /* 0x36126815: mov eax, dword ptr [ebp - 0x4c] */ 12848 edx = MEM32(ebp + (-0x50)); /* 0x36126818: mov edx, dword ptr [ebp - 0x50] */ 12849 ecx = MEM32(ebp + (-0x48)); /* 0x3612681B: mov ecx, dword ptr [ebp - 0x48] */ 12850 MEM32(ebp + (-0x98)) = eax; /* 0x3612681E: mov dword ptr [ebp - 0x98], eax */ 12851 eax = MEM32(ebp + (-0x84)); /* 0x36126824: mov eax, dword ptr [ebp - 0x84] */ 12852 MEM32(ebp + (-0x9C)) = edx; /* 0x3612682A: mov dword ptr [ebp - 0x9c], edx */ 12853 MEM32(ebp + (-0x94)) = ecx; /* 0x36126830: mov dword ptr [ebp - 0x94], ecx */ 12854 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x36126836: fmul dword ptr [eax + 8] */ 12855 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36126839: fld dword ptr [ebp - 0x48] */ 12856 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12858 esp = esp + 8; /* 0x3612683C: add esp, 8 */ 12859 _flag_k = FK_ADD; 12860 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x3612683F: fmul dword ptr [eax + 4] */ 12861 PUSH32(esp, 0x3F800000u); /* 0x36126842: push 0x3f800000 */ 12862 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126847: fsubp st(1) */ 12863 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36126849: fld dword ptr [ebp - 0x48] */ 12864 _st[0] *= (double)*(float*)ADDR(eax); /* 0x3612684C: fmul dword ptr [eax] */ 12865 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612684E: fld dword ptr [ebp - 0x50] */ 12866 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x36126851: fmul dword ptr [eax + 8] */ 12867 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126854: fsubp st(1) */ 12868 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x36126856: fstp dword ptr [ebp - 0x84] */ 12869 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3612685C: fld dword ptr [ebp - 0x50] */ 12870 edx = MEM32(ebp + (-0x84)); /* 0x3612685F: mov edx, dword ptr [ebp - 0x84] */ 12871 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x36126865: fmul dword ptr [eax + 4] */ 12872 ecx = edx; /* 0x36126868: mov ecx, edx */ 12873 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3612686A: fld dword ptr [ebp - 0x4c] */ 12874 _st[0] *= (double)*(float*)ADDR(eax); /* 0x3612686D: fmul dword ptr [eax] */ 12875 MEM32(ebp + (-0x98)) = edx; /* 0x3612686F: mov dword ptr [ebp - 0x98], edx */ 12876 MEM32(ebp + (-0x130)) = ecx; /* 0x36126875: mov dword ptr [ebp - 0x130], ecx */ 12877 ecx = ebp + (-0x134); /* 0x3612687B: lea ecx, [ebp - 0x134] */ 12878 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36126881: fsubp st(1) */ 12879 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x36126883: fstp dword ptr [ebp - 0x94] */ 12880 edx = MEM32(ebp + (-0x94)); /* 0x36126889: mov edx, dword ptr [ebp - 0x94] */ 12881 MEM32(ebp + (-0x12C)) = edx; /* 0x3612688F: mov dword ptr [ebp - 0x12c], edx */ 12882 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36126895: fstp dword ptr [ebp - 0x9c] */ 12883 eax = MEM32(ebp + (-0x9C)); /* 0x3612689B: mov eax, dword ptr [ebp - 0x9c] */ 12884 MEM32(ebp + (-0x134)) = eax; /* 0x361268A1: mov dword ptr [ebp - 0x134], eax */ 12885 eax = ebp + (-0x288); /* 0x361268A7: lea eax, [ebp - 0x288] */ 12886 PUSH32(esp, eax); /* 0x361268AD: push eax */ 12887 RECOMP_ICALL(MEM32(0x361701F0)); /* 0x361268AE: call dword ptr [0x361701f0] */ 12888 RECOMP_FLAGS_IN(); 12889 ecx = MEM32(eax); /* 0x361268B4: mov ecx, dword ptr [eax] */ 12890 MEM32(ebp + (-0xF4)) = ecx; /* 0x361268B6: mov dword ptr [ebp - 0xf4], ecx */ 12891 edx = MEM32(eax + 0x4); /* 0x361268BC: mov edx, dword ptr [eax + 4] */ 12892 MEM32(ebp + (-0xF0)) = edx; /* 0x361268BF: mov dword ptr [ebp - 0xf0], edx */ 12893 eax = MEM32(eax + 0x8); /* 0x361268C5: mov eax, dword ptr [eax + 8] */ 12894 edx = MEM32(ebp + (-0x54)); /* 0x361268C8: mov edx, dword ptr [ebp - 0x54] */ 12895 ecx = ebp + (-0xF4); /* 0x361268CB: lea ecx, [ebp - 0xf4] */ 12896 PUSH32(esp, ecx); /* 0x361268D1: push ecx */ 12897 MEM32(ebp + (-0xEC)) = eax; /* 0x361268D2: mov dword ptr [ebp - 0xec], eax */ 12898 PUSH32(esp, edx); /* 0x361268D8: push edx */ 12899 eax = ebp + (-0x3D8); /* 0x361268D9: lea eax, [ebp - 0x3d8] */ 12900 PUSH32(esp, eax); /* 0x361268DF: push eax */ 12901 RECOMP_ICALL(0x3609EB50u); /* 0x361268E0: call 0x3609eb50 */ /* not lifted */ 12902 RECOMP_FLAGS_IN(); 12903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12905 esp = esp + 0xCu; /* 0x361268E5: add esp, 0xc */ 12906 _flag_k = FK_ADD; 12907 PUSH32(esp, eax); /* 0x361268E8: push eax */ 12908 eax = MEM32(ebp + (-0x5C)); /* 0x361268E9: mov eax, dword ptr [ebp - 0x5c] */ 12909 ecx = ebp + (-0x2A0); /* 0x361268EC: lea ecx, [ebp - 0x2a0] */ 12910 PUSH32(esp, ecx); /* 0x361268F2: push ecx */ 12911 edx = ebp + (-0x50); /* 0x361268F3: lea edx, [ebp - 0x50] */ 12912 PUSH32(esp, edx); /* 0x361268F6: push edx */ 12913 PUSH32(esp, eax); /* 0x361268F7: push eax */ 12914 ecx = ebp + (-0x378); /* 0x361268F8: lea ecx, [ebp - 0x378] */ 12915 PUSH32(esp, ecx); /* 0x361268FE: push ecx */ 12916 RECOMP_ICALL(0x3609EB50u); /* 0x361268FF: call 0x3609eb50 */ /* not lifted */ 12917 RECOMP_FLAGS_IN(); 12918 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12919 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12920 esp = esp + 0xCu; /* 0x36126904: add esp, 0xc */ 12921 _flag_k = FK_ADD; 12922 ecx = eax; /* 0x36126907: mov ecx, eax */ 12923 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x36126909: call dword ptr [0x3617016c] */ 12924 RECOMP_FLAGS_IN(); 12925 edx = MEM32(eax); /* 0x3612690F: mov edx, dword ptr [eax] */ 12926 MEM32(ebp + (-0x5C)) = edx; /* 0x36126911: mov dword ptr [ebp - 0x5c], edx */ 12927 ecx = MEM32(eax + 0x4); /* 0x36126914: mov ecx, dword ptr [eax + 4] */ 12928 MEM32(ebp + (-0x58)) = ecx; /* 0x36126917: mov dword ptr [ebp - 0x58], ecx */ 12929 edx = MEM32(eax + 0x8); /* 0x3612691A: mov edx, dword ptr [eax + 8] */ 12930 MEM32(ebp + (-0x54)) = edx; /* 0x3612691D: mov dword ptr [ebp - 0x54], edx */ 12931 L_36126920: 12932 PUSH32(esp, 0); /* 0x36126920: push 0 */ 12933 PUSH32(esp, 0); /* 0x36126922: push 0 */ 12934 PUSH32(esp, 0); /* 0x36126924: push 0 */ 12935 ecx = ebp + (-0x2B8); /* 0x36126926: lea ecx, [ebp - 0x2b8] */ 12936 RECOMP_ICALL(MEM32(0x36170170)); /* 0x3612692C: call dword ptr [0x36170170] */ 12937 RECOMP_FLAGS_IN(); 12938 edx = MEM32(eax); /* 0x36126932: mov edx, dword ptr [eax] */ 12939 ecx = edi + (-0x8); /* 0x36126934: lea ecx, [edi - 8] */ 12940 MEM32(ecx) = edx; /* 0x36126937: mov dword ptr [ecx], edx */ 12941 edx = MEM32(eax + 0x4); /* 0x36126939: mov edx, dword ptr [eax + 4] */ 12942 MEM32(ecx + 0x4) = edx; /* 0x3612693C: mov dword ptr [ecx + 4], edx */ 12943 eax = MEM32(eax + 0x8); /* 0x3612693F: mov eax, dword ptr [eax + 8] */ 12944 MEM32(ecx + 0x8) = eax; /* 0x36126942: mov dword ptr [ecx + 8], eax */ 12945 eax = MEM32(ebp + (-0x10)); /* 0x36126945: mov eax, dword ptr [ebp - 0x10] */ 12946 edx = MEM32(esi + 0x16C8); /* 0x36126948: mov edx, dword ptr [esi + 0x16c8] */ 12947 eax = eax + eax * 2; /* 0x3612694E: lea eax, [eax + eax*2] */ 12948 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x36126951: shl eax, 3 */ 12949 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12950 eax = eax << 3u; /* 0x36126951: shl eax, 3 */ 12951 ecx = ebp + (-0x5C); /* 0x36126954: lea ecx, [ebp - 0x5c] */ 12952 PUSH32(esp, ecx); /* 0x36126957: push ecx */ 12953 MEM32(ebp + (-0x4)) = eax; /* 0x36126958: mov dword ptr [ebp - 4], eax */ 12954 PUSH32(esp, edx); /* 0x3612695B: push edx */ 12955 eax = ebp + (-0x438); /* 0x3612695C: lea eax, [ebp - 0x438] */ 12956 PUSH32(esp, eax); /* 0x36126962: push eax */ 12957 RECOMP_ICALL(0x3609EB50u); /* 0x36126963: call 0x3609eb50 */ /* not lifted */ 12958 RECOMP_FLAGS_IN(); 12959 edx = MEM32(ebp + (-0x4)); /* 0x36126968: mov edx, dword ptr [ebp - 4] */ 12960 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12961 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12962 esp = esp + 0xCu; /* 0x3612696B: add esp, 0xc */ 12963 _flag_k = FK_ADD; 12964 PUSH32(esp, eax); /* 0x3612696E: push eax */ 12965 ecx = ebp + (-0x2D0); /* 0x3612696F: lea ecx, [ebp - 0x2d0] */ 12966 PUSH32(esp, ecx); /* 0x36126975: push ecx */ 12967 ecx = MEM32(ebp + (-0x1C)); /* 0x36126976: mov ecx, dword ptr [ebp - 0x1c] */ 12968 eax = edx + 0x3630D6AC; /* 0x36126979: lea eax, [edx + 0x3630d6ac] */ 12969 PUSH32(esp, eax); /* 0x3612697F: push eax */ 12970 PUSH32(esp, ecx); /* 0x36126980: push ecx */ 12971 edx = ebp + (-0x168); /* 0x36126981: lea edx, [ebp - 0x168] */ 12972 PUSH32(esp, edx); /* 0x36126987: push edx */ 12973 RECOMP_ICALL(0x3609EB50u); /* 0x36126988: call 0x3609eb50 */ /* not lifted */ 12974 RECOMP_FLAGS_IN(); 12975 ecx = MEM32(ebp + (-0x4)); /* 0x3612698D: mov ecx, dword ptr [ebp - 4] */ 12976 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12978 esp = esp + 0xCu; /* 0x36126990: add esp, 0xc */ 12979 _flag_k = FK_ADD; 12980 PUSH32(esp, eax); /* 0x36126993: push eax */ 12981 eax = ebp + (-0x174); /* 0x36126994: lea eax, [ebp - 0x174] */ 12982 PUSH32(esp, eax); /* 0x3612699A: push eax */ 12983 ecx = ecx + 0x3630D6A0; /* 0x3612699B: lea ecx, [ecx + 0x3630d6a0] */ 12984 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361269A1: call dword ptr [0x3617016c] */ 12985 RECOMP_FLAGS_IN(); 12986 ecx = eax; /* 0x361269A7: mov ecx, eax */ 12987 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361269A9: call dword ptr [0x3617016c] */ 12988 RECOMP_FLAGS_IN(); 12989 ecx = MEM32(eax); /* 0x361269AF: mov ecx, dword ptr [eax] */ 12990 edx = edi + 0x5F8; /* 0x361269B1: lea edx, [edi + 0x5f8] */ 12991 MEM32(edx) = ecx; /* 0x361269B7: mov dword ptr [edx], ecx */ 12992 ecx = MEM32(eax + 0x4); /* 0x361269B9: mov ecx, dword ptr [eax + 4] */ 12993 MEM32(edx + 0x4) = ecx; /* 0x361269BC: mov dword ptr [edx + 4], ecx */ 12994 eax = MEM32(eax + 0x8); /* 0x361269BF: mov eax, dword ptr [eax + 8] */ 12995 ecx = MEM32(ebp + (-0x10)); /* 0x361269C2: mov ecx, dword ptr [ebp - 0x10] */ 12996 MEM32(edx + 0x8) = eax; /* 0x361269C5: mov dword ptr [edx + 8], eax */ 12997 fp_push(*(float*)&MEM32(esi + 0x16C0)); /* 0x361269C8: fld dword ptr [esi + 0x16c0] */ 12998 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x361269CE: fadd dword ptr [esi + 0xc] */ 12999 eax = MEM32(ebp + (-0x14)); /* 0x361269D1: mov eax, dword ptr [ebp - 0x14] */ 13000 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x361269D4: fstp dword ptr [eax] */ 13001 MEM32(eax + (-0x200)) = ecx; /* 0x361269D6: mov dword ptr [eax - 0x200], ecx */ 13002 ecx = MEM32(ebp + (-0x8)); /* 0x361269DC: mov ecx, dword ptr [ebp - 8] */ 13003 eax = MEM32(ebp + (-0x18)); /* 0x361269DF: mov eax, dword ptr [ebp - 0x18] */ 13004 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13005 ecx = ecx + 1; /* 0x361269E2: inc ecx */ 13006 _flag_k = FK_INC; 13007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13008 eax = eax - 1; /* 0x361269E3: dec eax */ 13009 _flag_k = FK_DEC; 13010 MEM32(ebp + (-0x8)) = ecx; /* 0x361269E4: mov dword ptr [ebp - 8], ecx */ 13011 MEM32(ebp + (-0x18)) = eax; /* 0x361269E7: mov dword ptr [ebp - 0x18], eax */ 13012 goto L_361269F4; /* 0x361269EA: jmp 0x361269f4 */ 13013 L_361269EC: 13014 edx = MEM32(esi + 0x38); /* 0x361269EC: mov edx, dword ptr [esi + 0x38] */ 13015 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x361269EF: mov byte ptr [edx + ebx + 0x1c], 0 */ 13016 L_361269F4: 13017 edx = MEM32(ebp + (-0x14)); /* 0x361269F4: mov edx, dword ptr [ebp - 0x14] */ 13018 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 13019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13020 edx = edx + 4; /* 0x361269F7: add edx, 4 */ 13021 _flag_k = FK_ADD; 13022 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 13023 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13024 ebx = ebx + 0x20u; /* 0x361269FA: add ebx, 0x20 */ 13025 _flag_k = FK_ADD; 13026 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 13027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13028 edi = edi + 0xCu; /* 0x361269FD: add edi, 0xc */ 13029 _flag_k = FK_ADD; 13030 /* cmp ebx, 0x1000u */ /* 0x36126A00: cmp ebx, 0x1000 */ 13031 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 13032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13033 _flag_k = FK_CMP; 13034 MEM32(ebp + (-0x14)) = edx; /* 0x36126A06: mov dword ptr [ebp - 0x14], edx */ 13035 RECOMP_BACKEDGE(); 13036 if (CMP_L(_flag_a, _flag_b)) goto L_36126437; /* 0x36126A09: jl 0x36126437 */ 13037 L_36126A0F: 13038 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126A0F: mov al, byte ptr [esi + 0x163c] */ 13039 /* test LO8(eax), LO8(eax) */ /* 0x36126A15: test al, al */ 13040 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13041 _cf = 0; 13042 _flag_k = FK_NARROW(FK_TEST, 24); 13043 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126A17: je 0x361275ac */ 13044 L_36126A1D: 13045 eax = MEM32(ebp + (-0x8)); /* 0x36126A1D: mov eax, dword ptr [ebp - 8] */ 13046 /* test eax, eax */ /* 0x36126A20: test eax, eax */ 13047 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13048 _cf = 0; 13049 _flag_k = FK_TEST; 13050 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126A22: jne 0x361275ac */ 13051 L_36126A28: 13052 goto L_361275A8; /* 0x36126A28: jmp 0x361275a8 */ 13053 L_361275A8: 13054 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 13055 L_361275AC: 13056 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 13057 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 13058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13059 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 13060 _flag_k = FK_ADD; 13061 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 13062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13063 _cf = 0; 13064 _flag_k = FK_TEST; 13065 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 13066 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 13067 L_361275B7: 13068 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 13069 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 13070 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 13071 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 13072 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 13073 RECOMP_FLAGS_IN(); 13074 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 13075 PUSH32(esp, eax); /* 0x361275CD: push eax */ 13076 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 13077 RECOMP_FLAGS_IN(); 13078 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 13079 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 13080 RECOMP_FLAGS_IN(); 13081 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 13082 PUSH32(esp, eax); /* 0x361275E2: push eax */ 13083 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 13084 RECOMP_FLAGS_IN(); 13085 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 13086 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 13087 RECOMP_FLAGS_IN(); 13088 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 13089 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13090 _cf = (LO8(eax)) != 0; 13091 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 13092 _flag_k = FK_NARROW(FK_CMP, 24); 13093 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 13094 eax = _sc ? 0xFFFFFFFFu : 0; 13095 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 13096 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 13097 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13098 eax = eax + 1; /* 0x361275F6: inc eax */ 13099 _flag_k = FK_INC; 13100 PUSH32(esp, eax); /* 0x361275F7: push eax */ 13101 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 13102 RECOMP_FLAGS_IN(); 13103 L_361275FE: 13104 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 13105 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 13106 esp = ebp; /* 0x36127600: mov esp, ebp */ 13107 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 13108 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 13109 RECOMP_REGS_OUT(); 13110 } 13111 13112 void sub_36126A80(void) { 13113 int _fpu_cmp = 0; 13114 uint32_t _cf = 0; 13115 int _df = 1; 13116 uint32_t _flag_k = FK_NONE; 13117 uint32_t _flag_a = 0, _flag_b = 0; 13118 uint32_t _itail_tgt = 0; 13119 RECOMP_REGS_LOCALS 13120 RECOMP_ENTER(0x36126A80u); 13121 13122 L_36126A80: 13123 fp_push(*(float*)&MEM32(edi)); /* 0x36126A80: fld dword ptr [edi] */ 13124 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36126A82: fcomp dword ptr [esi + 0xc] */ 13125 fp_pop(); 13126 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36126A85: fnstsw ax */ 13127 /* test HI8(eax), 0x41u */ /* 0x36126A87: test ah, 0x41 */ 13128 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13129 _cf = 0; 13130 _flag_k = FK_NARROW(FK_TEST, 24); 13131 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126B68; /* 0x36126A8A: jne 0x36126b68 */ 13132 L_36126A90: 13133 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36126A90: fld dword ptr [esi + 0xc] */ 13134 edx = ebp + (-0x100); /* 0x36126A93: lea edx, [ebp - 0x100] */ 13135 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36126A99: fadd dword ptr [esi + 0x16c0] */ 13136 PUSH32(esp, edx); /* 0x36126A9F: push edx */ 13137 ecx = ebp + (-0x1A4); /* 0x36126AA0: lea ecx, [ebp - 0x1a4] */ 13138 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36126AA6: fsub dword ptr [edi] */ 13139 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36126AA8: fdiv dword ptr [esi + 0x16c0] */ 13140 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36126AAE: fst dword ptr [ebp - 0x10] */ 13141 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36126AB1: fmul dword ptr [ebp - 0x10] */ 13142 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36126AB4: fstp dword ptr [ebp - 4] */ 13143 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36126AB7: fld dword ptr [ebp - 0x10] */ 13144 eax = MEM32(ebp + (-0x4)); /* 0x36126ABA: mov eax, dword ptr [ebp - 4] */ 13145 _st[0] *= (double)*(float*)ADDR(0x36170824); /* 0x36126ABD: fmul dword ptr [0x36170824] */ 13146 PUSH32(esp, eax); /* 0x36126AC3: push eax */ 13147 PUSH32(esp, ecx); /* 0x36126AC4: push ecx */ 13148 _st[0] += (double)*(float*)ADDR(0x36170D68); /* 0x36126AC5: fadd dword ptr [0x36170d68] */ 13149 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x36126ACB: fmul dword ptr [esi + 0x16cc] */ 13150 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36126AD1: fstp dword ptr [ebp - 0x18] */ 13151 RECOMP_ICALL(0x3609EB50u); /* 0x36126AD4: call 0x3609eb50 */ /* not lifted */ 13152 RECOMP_FLAGS_IN(); 13153 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36126AD9: fld dword ptr [0x36170380] */ 13154 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13155 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13156 esp = esp + 0xCu; /* 0x36126ADF: add esp, 0xc */ 13157 _flag_k = FK_ADD; 13158 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36126AE2: fsub dword ptr [ebp - 4] */ 13159 PUSH32(esp, eax); /* 0x36126AE5: push eax */ 13160 eax = MEM32(ebp + (-0x2C)); /* 0x36126AE6: mov eax, dword ptr [ebp - 0x2c] */ 13161 edx = ebp + (-0x1BC); /* 0x36126AE9: lea edx, [ebp - 0x1bc] */ 13162 PUSH32(esp, edx); /* 0x36126AEF: push edx */ 13163 PUSH32(esp, eax); /* 0x36126AF0: push eax */ 13164 PUSH32(esp, ecx); /* 0x36126AF1: push ecx */ 13165 ecx = ebp + (-0x1D4); /* 0x36126AF2: lea ecx, [ebp - 0x1d4] */ 13166 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36126AF8: fstp dword ptr [esp] */ 13167 PUSH32(esp, ecx); /* 0x36126AFB: push ecx */ 13168 RECOMP_ICALL(0x3609EB50u); /* 0x36126AFC: call 0x3609eb50 */ /* not lifted */ 13169 RECOMP_FLAGS_IN(); 13170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13172 esp = esp + 0xCu; /* 0x36126B01: add esp, 0xc */ 13173 _flag_k = FK_ADD; 13174 ecx = eax; /* 0x36126B04: mov ecx, eax */ 13175 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x36126B06: call dword ptr [0x3617016c] */ 13176 RECOMP_FLAGS_IN(); 13177 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36126B0C: fld dword ptr [ebp - 0x18] */ 13178 ecx = MEM32(esi + 0x38); /* 0x36126B0F: mov ecx, dword ptr [esi + 0x38] */ 13179 edx = ebx; /* 0x36126B12: mov edx, ebx */ 13180 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13181 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13182 edx = edx + ecx; /* 0x36126B14: add edx, ecx */ 13183 _flag_k = FK_ADD; 13184 ecx = MEM32(eax); /* 0x36126B16: mov ecx, dword ptr [eax] */ 13185 MEM32(edx) = ecx; /* 0x36126B18: mov dword ptr [edx], ecx */ 13186 ecx = MEM32(eax + 0x4); /* 0x36126B1A: mov ecx, dword ptr [eax + 4] */ 13187 MEM32(edx + 0x4) = ecx; /* 0x36126B1D: mov dword ptr [edx + 4], ecx */ 13188 eax = MEM32(eax + 0x8); /* 0x36126B20: mov eax, dword ptr [eax + 8] */ 13189 MEM32(edx + 0x8) = eax; /* 0x36126B23: mov dword ptr [edx + 8], eax */ 13190 ecx = MEM32(esi + 0x38); /* 0x36126B26: mov ecx, dword ptr [esi + 0x38] */ 13191 eax = MEM32(ebp + (-0x10)); /* 0x36126B29: mov eax, dword ptr [ebp - 0x10] */ 13192 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0xC) = _v; } /* 0x36126B2C: fstp dword ptr [ebx + ecx + 0xc] */ 13193 edx = MEM32(esi + 0x38); /* 0x36126B30: mov edx, dword ptr [esi + 0x38] */ 13194 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36126B33: fld dword ptr [ebp - 0x18] */ 13195 PUSH32(esp, eax); /* 0x36126B36: push eax */ 13196 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + edx + 0x10) = _v; } /* 0x36126B37: fstp dword ptr [ebx + edx + 0x10] */ 13197 ecx = esi + 0x168C; /* 0x36126B3B: lea ecx, [esi + 0x168c] */ 13198 RECOMP_ICALL(0x36137D80u); /* 0x36126B41: call 0x36137d80 */ /* not lifted */ 13199 RECOMP_FLAGS_IN(); 13200 ecx = MEM32(esi + 0x38); /* 0x36126B46: mov ecx, dword ptr [esi + 0x38] */ 13201 MEM32(ebx + ecx + 0x14) = eax; /* 0x36126B49: mov dword ptr [ebx + ecx + 0x14], eax */ 13202 edx = MEM32(esi + 0x38); /* 0x36126B4D: mov edx, dword ptr [esi + 0x38] */ 13203 MEM32(ebx + edx + 0x18) = 0; /* 0x36126B50: mov dword ptr [ebx + edx + 0x18], 0 */ 13204 eax = MEM32(esi + 0x38); /* 0x36126B58: mov eax, dword ptr [esi + 0x38] */ 13205 MEM8(ebx + eax + 0x1C) = (uint8_t)(1); /* 0x36126B5B: mov byte ptr [ebx + eax + 0x1c], 1 */ 13206 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(1); 13207 MEM32(ebp + (-0x14)) = MEM32(ebp + (-0x14)) + 1; /* 0x36126B60: inc dword ptr [ebp - 0x14] */ 13208 _flag_k = FK_INC; 13209 goto L_36126BED; /* 0x36126B63: jmp 0x36126bed */ 13210 L_36126B68: 13211 ecx = MEM32(ebp + (-0x14)); /* 0x36126B68: mov ecx, dword ptr [ebp - 0x14] */ 13212 /* cmp ecx, MEM32(ebp + (-0x84)) */ /* 0x36126B6B: cmp ecx, dword ptr [ebp - 0x84] */ 13213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x84))); 13214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13215 _flag_k = FK_CMP; 13216 if (CMP_GE(_flag_a, _flag_b)) goto L_36126BE5; /* 0x36126B71: jge 0x36126be5 */ 13217 L_36126B73: 13218 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126B73: mov al, byte ptr [esi + 0x163c] */ 13219 /* test LO8(eax), LO8(eax) */ /* 0x36126B79: test al, al */ 13220 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13221 _cf = 0; 13222 _flag_k = FK_NARROW(FK_TEST, 24); 13223 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126BE5; /* 0x36126B7B: jne 0x36126be5 */ 13224 L_36126B7D: 13225 ecx = ebp + (-0xF4); /* 0x36126B7D: lea ecx, [ebp - 0xf4] */ 13226 RECOMP_ICALL(MEM32(0x36170174)); /* 0x36126B83: call dword ptr [0x36170174] */ 13227 RECOMP_FLAGS_IN(); 13228 edx = ebp + (-0xF4); /* 0x36126B89: lea edx, [ebp - 0xf4] */ 13229 PUSH32(esp, edx); /* 0x36126B8F: push edx */ 13230 RECOMP_ICALL(0x360FCDC0u); /* 0x36126B90: call 0x360fcdc0 */ /* not lifted */ 13231 RECOMP_FLAGS_IN(); 13232 eax = MEM32(esi + 0x16C8); /* 0x36126B95: mov eax, dword ptr [esi + 0x16c8] */ 13233 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13235 esp = esp + 4; /* 0x36126B9B: add esp, 4 */ 13236 _flag_k = FK_ADD; 13237 ecx = ebp + (-0xF4); /* 0x36126B9E: lea ecx, [ebp - 0xf4] */ 13238 PUSH32(esp, ecx); /* 0x36126BA4: push ecx */ 13239 edx = ebp + (-0x1EC); /* 0x36126BA5: lea edx, [ebp - 0x1ec] */ 13240 PUSH32(esp, edx); /* 0x36126BAB: push edx */ 13241 ecx = ebp + (-0x100); /* 0x36126BAC: lea ecx, [ebp - 0x100] */ 13242 MEM32(ebp + (-0xF0)) = eax; /* 0x36126BB2: mov dword ptr [ebp - 0xf0], eax */ 13243 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x36126BB8: call dword ptr [0x3617016c] */ 13244 RECOMP_FLAGS_IN(); 13245 edx = MEM32(eax); /* 0x36126BBE: mov edx, dword ptr [eax] */ 13246 ecx = MEM32(ebp + (-0x2C)); /* 0x36126BC0: mov ecx, dword ptr [ebp - 0x2c] */ 13247 MEM32(ecx) = edx; /* 0x36126BC3: mov dword ptr [ecx], edx */ 13248 edx = MEM32(eax + 0x4); /* 0x36126BC5: mov edx, dword ptr [eax + 4] */ 13249 MEM32(ecx + 0x4) = edx; /* 0x36126BC8: mov dword ptr [ecx + 4], edx */ 13250 eax = MEM32(eax + 0x8); /* 0x36126BCB: mov eax, dword ptr [eax + 8] */ 13251 MEM32(ecx + 0x8) = eax; /* 0x36126BCE: mov dword ptr [ecx + 8], eax */ 13252 fp_push(*(float*)&MEM32(esi + 0x16C0)); /* 0x36126BD1: fld dword ptr [esi + 0x16c0] */ 13253 eax = MEM32(ebp + (-0x14)); /* 0x36126BD7: mov eax, dword ptr [ebp - 0x14] */ 13254 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x36126BDA: fadd dword ptr [esi + 0xc] */ 13255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13256 eax = eax + 1; /* 0x36126BDD: inc eax */ 13257 _flag_k = FK_INC; 13258 MEM32(ebp + (-0x14)) = eax; /* 0x36126BDE: mov dword ptr [ebp - 0x14], eax */ 13259 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36126BE1: fstp dword ptr [edi] */ 13260 goto L_36126BED; /* 0x36126BE3: jmp 0x36126bed */ 13261 L_36126BE5: 13262 ecx = MEM32(esi + 0x38); /* 0x36126BE5: mov ecx, dword ptr [esi + 0x38] */ 13263 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x36126BE8: mov byte ptr [ecx + ebx + 0x1c], 0 */ 13264 L_36126BED: 13265 eax = MEM32(ebp + (-0x2C)); /* 0x36126BED: mov eax, dword ptr [ebp - 0x2c] */ 13266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 13267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13268 eax = eax + 0xCu; /* 0x36126BF0: add eax, 0xc */ 13269 _flag_k = FK_ADD; 13270 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 13271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13272 ebx = ebx + 0x20u; /* 0x36126BF3: add ebx, 0x20 */ 13273 _flag_k = FK_ADD; 13274 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 13275 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13276 edi = edi + 4; /* 0x36126BF6: add edi, 4 */ 13277 _flag_k = FK_ADD; 13278 /* cmp ebx, 0x1000u */ /* 0x36126BF9: cmp ebx, 0x1000 */ 13279 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 13280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13281 _flag_k = FK_CMP; 13282 MEM32(ebp + (-0x2C)) = eax; /* 0x36126BFF: mov dword ptr [ebp - 0x2c], eax */ 13283 RECOMP_BACKEDGE(); 13284 if (CMP_L(_flag_a, _flag_b)) goto L_36126A80; /* 0x36126C02: jl 0x36126a80 */ 13285 L_36126C08: 13286 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126C08: mov al, byte ptr [esi + 0x163c] */ 13287 /* test LO8(eax), LO8(eax) */ /* 0x36126C0E: test al, al */ 13288 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13289 _cf = 0; 13290 _flag_k = FK_NARROW(FK_TEST, 24); 13291 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126C10: je 0x361275ac */ 13292 L_36126C16: 13293 eax = MEM32(ebp + (-0x14)); /* 0x36126C16: mov eax, dword ptr [ebp - 0x14] */ 13294 /* test eax, eax */ /* 0x36126C19: test eax, eax */ 13295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13296 _cf = 0; 13297 _flag_k = FK_TEST; 13298 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126C1B: jne 0x361275ac */ 13299 L_36126C21: 13300 goto L_361275A8; /* 0x36126C21: jmp 0x361275a8 */ 13301 L_361275A8: 13302 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 13303 L_361275AC: 13304 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 13305 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 13306 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13307 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 13308 _flag_k = FK_ADD; 13309 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 13310 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13311 _cf = 0; 13312 _flag_k = FK_TEST; 13313 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 13314 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 13315 L_361275B7: 13316 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 13317 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 13318 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 13319 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 13320 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 13321 RECOMP_FLAGS_IN(); 13322 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 13323 PUSH32(esp, eax); /* 0x361275CD: push eax */ 13324 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 13325 RECOMP_FLAGS_IN(); 13326 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 13327 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 13328 RECOMP_FLAGS_IN(); 13329 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 13330 PUSH32(esp, eax); /* 0x361275E2: push eax */ 13331 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 13332 RECOMP_FLAGS_IN(); 13333 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 13334 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 13335 RECOMP_FLAGS_IN(); 13336 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 13337 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13338 _cf = (LO8(eax)) != 0; 13339 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 13340 _flag_k = FK_NARROW(FK_CMP, 24); 13341 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 13342 eax = _sc ? 0xFFFFFFFFu : 0; 13343 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 13344 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 13345 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13346 eax = eax + 1; /* 0x361275F6: inc eax */ 13347 _flag_k = FK_INC; 13348 PUSH32(esp, eax); /* 0x361275F7: push eax */ 13349 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 13350 RECOMP_FLAGS_IN(); 13351 L_361275FE: 13352 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 13353 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 13354 esp = ebp; /* 0x36127600: mov esp, ebp */ 13355 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 13356 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 13357 RECOMP_REGS_OUT(); 13358 } 13359 13360 void sub_36126BED(void) { 13361 int _fpu_cmp = 0; 13362 uint32_t _cf = 0; 13363 int _df = 1; 13364 uint32_t _flag_k = FK_NONE; 13365 uint32_t _flag_a = 0, _flag_b = 0; 13366 uint32_t _itail_tgt = 0; 13367 RECOMP_REGS_LOCALS 13368 RECOMP_ENTER(0x36126BEDu); 13369 13370 goto L_36126BED; 13371 L_36126A80: 13372 fp_push(*(float*)&MEM32(edi)); /* 0x36126A80: fld dword ptr [edi] */ 13373 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36126A82: fcomp dword ptr [esi + 0xc] */ 13374 fp_pop(); 13375 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36126A85: fnstsw ax */ 13376 /* test HI8(eax), 0x41u */ /* 0x36126A87: test ah, 0x41 */ 13377 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13378 _cf = 0; 13379 _flag_k = FK_NARROW(FK_TEST, 24); 13380 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126B68; /* 0x36126A8A: jne 0x36126b68 */ 13381 L_36126A90: 13382 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36126A90: fld dword ptr [esi + 0xc] */ 13383 edx = ebp + (-0x100); /* 0x36126A93: lea edx, [ebp - 0x100] */ 13384 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36126A99: fadd dword ptr [esi + 0x16c0] */ 13385 PUSH32(esp, edx); /* 0x36126A9F: push edx */ 13386 ecx = ebp + (-0x1A4); /* 0x36126AA0: lea ecx, [ebp - 0x1a4] */ 13387 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36126AA6: fsub dword ptr [edi] */ 13388 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36126AA8: fdiv dword ptr [esi + 0x16c0] */ 13389 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36126AAE: fst dword ptr [ebp - 0x10] */ 13390 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36126AB1: fmul dword ptr [ebp - 0x10] */ 13391 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36126AB4: fstp dword ptr [ebp - 4] */ 13392 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36126AB7: fld dword ptr [ebp - 0x10] */ 13393 eax = MEM32(ebp + (-0x4)); /* 0x36126ABA: mov eax, dword ptr [ebp - 4] */ 13394 _st[0] *= (double)*(float*)ADDR(0x36170824); /* 0x36126ABD: fmul dword ptr [0x36170824] */ 13395 PUSH32(esp, eax); /* 0x36126AC3: push eax */ 13396 PUSH32(esp, ecx); /* 0x36126AC4: push ecx */ 13397 _st[0] += (double)*(float*)ADDR(0x36170D68); /* 0x36126AC5: fadd dword ptr [0x36170d68] */ 13398 _st[0] *= (double)*(float*)ADDR(esi + 0x16CC); /* 0x36126ACB: fmul dword ptr [esi + 0x16cc] */ 13399 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36126AD1: fstp dword ptr [ebp - 0x18] */ 13400 RECOMP_ICALL(0x3609EB50u); /* 0x36126AD4: call 0x3609eb50 */ /* not lifted */ 13401 RECOMP_FLAGS_IN(); 13402 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36126AD9: fld dword ptr [0x36170380] */ 13403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13405 esp = esp + 0xCu; /* 0x36126ADF: add esp, 0xc */ 13406 _flag_k = FK_ADD; 13407 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36126AE2: fsub dword ptr [ebp - 4] */ 13408 PUSH32(esp, eax); /* 0x36126AE5: push eax */ 13409 eax = MEM32(ebp + (-0x2C)); /* 0x36126AE6: mov eax, dword ptr [ebp - 0x2c] */ 13410 edx = ebp + (-0x1BC); /* 0x36126AE9: lea edx, [ebp - 0x1bc] */ 13411 PUSH32(esp, edx); /* 0x36126AEF: push edx */ 13412 PUSH32(esp, eax); /* 0x36126AF0: push eax */ 13413 PUSH32(esp, ecx); /* 0x36126AF1: push ecx */ 13414 ecx = ebp + (-0x1D4); /* 0x36126AF2: lea ecx, [ebp - 0x1d4] */ 13415 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36126AF8: fstp dword ptr [esp] */ 13416 PUSH32(esp, ecx); /* 0x36126AFB: push ecx */ 13417 RECOMP_ICALL(0x3609EB50u); /* 0x36126AFC: call 0x3609eb50 */ /* not lifted */ 13418 RECOMP_FLAGS_IN(); 13419 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13420 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13421 esp = esp + 0xCu; /* 0x36126B01: add esp, 0xc */ 13422 _flag_k = FK_ADD; 13423 ecx = eax; /* 0x36126B04: mov ecx, eax */ 13424 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x36126B06: call dword ptr [0x3617016c] */ 13425 RECOMP_FLAGS_IN(); 13426 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36126B0C: fld dword ptr [ebp - 0x18] */ 13427 ecx = MEM32(esi + 0x38); /* 0x36126B0F: mov ecx, dword ptr [esi + 0x38] */ 13428 edx = ebx; /* 0x36126B12: mov edx, ebx */ 13429 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13430 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13431 edx = edx + ecx; /* 0x36126B14: add edx, ecx */ 13432 _flag_k = FK_ADD; 13433 ecx = MEM32(eax); /* 0x36126B16: mov ecx, dword ptr [eax] */ 13434 MEM32(edx) = ecx; /* 0x36126B18: mov dword ptr [edx], ecx */ 13435 ecx = MEM32(eax + 0x4); /* 0x36126B1A: mov ecx, dword ptr [eax + 4] */ 13436 MEM32(edx + 0x4) = ecx; /* 0x36126B1D: mov dword ptr [edx + 4], ecx */ 13437 eax = MEM32(eax + 0x8); /* 0x36126B20: mov eax, dword ptr [eax + 8] */ 13438 MEM32(edx + 0x8) = eax; /* 0x36126B23: mov dword ptr [edx + 8], eax */ 13439 ecx = MEM32(esi + 0x38); /* 0x36126B26: mov ecx, dword ptr [esi + 0x38] */ 13440 eax = MEM32(ebp + (-0x10)); /* 0x36126B29: mov eax, dword ptr [ebp - 0x10] */ 13441 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0xC) = _v; } /* 0x36126B2C: fstp dword ptr [ebx + ecx + 0xc] */ 13442 edx = MEM32(esi + 0x38); /* 0x36126B30: mov edx, dword ptr [esi + 0x38] */ 13443 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36126B33: fld dword ptr [ebp - 0x18] */ 13444 PUSH32(esp, eax); /* 0x36126B36: push eax */ 13445 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + edx + 0x10) = _v; } /* 0x36126B37: fstp dword ptr [ebx + edx + 0x10] */ 13446 ecx = esi + 0x168C; /* 0x36126B3B: lea ecx, [esi + 0x168c] */ 13447 RECOMP_ICALL(0x36137D80u); /* 0x36126B41: call 0x36137d80 */ /* not lifted */ 13448 RECOMP_FLAGS_IN(); 13449 ecx = MEM32(esi + 0x38); /* 0x36126B46: mov ecx, dword ptr [esi + 0x38] */ 13450 MEM32(ebx + ecx + 0x14) = eax; /* 0x36126B49: mov dword ptr [ebx + ecx + 0x14], eax */ 13451 edx = MEM32(esi + 0x38); /* 0x36126B4D: mov edx, dword ptr [esi + 0x38] */ 13452 MEM32(ebx + edx + 0x18) = 0; /* 0x36126B50: mov dword ptr [ebx + edx + 0x18], 0 */ 13453 eax = MEM32(esi + 0x38); /* 0x36126B58: mov eax, dword ptr [esi + 0x38] */ 13454 MEM8(ebx + eax + 0x1C) = (uint8_t)(1); /* 0x36126B5B: mov byte ptr [ebx + eax + 0x1c], 1 */ 13455 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(1); 13456 MEM32(ebp + (-0x14)) = MEM32(ebp + (-0x14)) + 1; /* 0x36126B60: inc dword ptr [ebp - 0x14] */ 13457 _flag_k = FK_INC; 13458 goto L_36126BED; /* 0x36126B63: jmp 0x36126bed */ 13459 L_36126B68: 13460 ecx = MEM32(ebp + (-0x14)); /* 0x36126B68: mov ecx, dword ptr [ebp - 0x14] */ 13461 /* cmp ecx, MEM32(ebp + (-0x84)) */ /* 0x36126B6B: cmp ecx, dword ptr [ebp - 0x84] */ 13462 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x84))); 13463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13464 _flag_k = FK_CMP; 13465 if (CMP_GE(_flag_a, _flag_b)) goto L_36126BE5; /* 0x36126B71: jge 0x36126be5 */ 13466 L_36126B73: 13467 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126B73: mov al, byte ptr [esi + 0x163c] */ 13468 /* test LO8(eax), LO8(eax) */ /* 0x36126B79: test al, al */ 13469 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13470 _cf = 0; 13471 _flag_k = FK_NARROW(FK_TEST, 24); 13472 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126BE5; /* 0x36126B7B: jne 0x36126be5 */ 13473 L_36126B7D: 13474 ecx = ebp + (-0xF4); /* 0x36126B7D: lea ecx, [ebp - 0xf4] */ 13475 RECOMP_ICALL(MEM32(0x36170174)); /* 0x36126B83: call dword ptr [0x36170174] */ 13476 RECOMP_FLAGS_IN(); 13477 edx = ebp + (-0xF4); /* 0x36126B89: lea edx, [ebp - 0xf4] */ 13478 PUSH32(esp, edx); /* 0x36126B8F: push edx */ 13479 RECOMP_ICALL(0x360FCDC0u); /* 0x36126B90: call 0x360fcdc0 */ /* not lifted */ 13480 RECOMP_FLAGS_IN(); 13481 eax = MEM32(esi + 0x16C8); /* 0x36126B95: mov eax, dword ptr [esi + 0x16c8] */ 13482 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13483 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13484 esp = esp + 4; /* 0x36126B9B: add esp, 4 */ 13485 _flag_k = FK_ADD; 13486 ecx = ebp + (-0xF4); /* 0x36126B9E: lea ecx, [ebp - 0xf4] */ 13487 PUSH32(esp, ecx); /* 0x36126BA4: push ecx */ 13488 edx = ebp + (-0x1EC); /* 0x36126BA5: lea edx, [ebp - 0x1ec] */ 13489 PUSH32(esp, edx); /* 0x36126BAB: push edx */ 13490 ecx = ebp + (-0x100); /* 0x36126BAC: lea ecx, [ebp - 0x100] */ 13491 MEM32(ebp + (-0xF0)) = eax; /* 0x36126BB2: mov dword ptr [ebp - 0xf0], eax */ 13492 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x36126BB8: call dword ptr [0x3617016c] */ 13493 RECOMP_FLAGS_IN(); 13494 edx = MEM32(eax); /* 0x36126BBE: mov edx, dword ptr [eax] */ 13495 ecx = MEM32(ebp + (-0x2C)); /* 0x36126BC0: mov ecx, dword ptr [ebp - 0x2c] */ 13496 MEM32(ecx) = edx; /* 0x36126BC3: mov dword ptr [ecx], edx */ 13497 edx = MEM32(eax + 0x4); /* 0x36126BC5: mov edx, dword ptr [eax + 4] */ 13498 MEM32(ecx + 0x4) = edx; /* 0x36126BC8: mov dword ptr [ecx + 4], edx */ 13499 eax = MEM32(eax + 0x8); /* 0x36126BCB: mov eax, dword ptr [eax + 8] */ 13500 MEM32(ecx + 0x8) = eax; /* 0x36126BCE: mov dword ptr [ecx + 8], eax */ 13501 fp_push(*(float*)&MEM32(esi + 0x16C0)); /* 0x36126BD1: fld dword ptr [esi + 0x16c0] */ 13502 eax = MEM32(ebp + (-0x14)); /* 0x36126BD7: mov eax, dword ptr [ebp - 0x14] */ 13503 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x36126BDA: fadd dword ptr [esi + 0xc] */ 13504 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13505 eax = eax + 1; /* 0x36126BDD: inc eax */ 13506 _flag_k = FK_INC; 13507 MEM32(ebp + (-0x14)) = eax; /* 0x36126BDE: mov dword ptr [ebp - 0x14], eax */ 13508 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36126BE1: fstp dword ptr [edi] */ 13509 goto L_36126BED; /* 0x36126BE3: jmp 0x36126bed */ 13510 L_36126BE5: 13511 ecx = MEM32(esi + 0x38); /* 0x36126BE5: mov ecx, dword ptr [esi + 0x38] */ 13512 MEM8(ecx + ebx + 0x1C) = (uint8_t)(0); /* 0x36126BE8: mov byte ptr [ecx + ebx + 0x1c], 0 */ 13513 L_36126BED: 13514 eax = MEM32(ebp + (-0x2C)); /* 0x36126BED: mov eax, dword ptr [ebp - 0x2c] */ 13515 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 13516 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13517 eax = eax + 0xCu; /* 0x36126BF0: add eax, 0xc */ 13518 _flag_k = FK_ADD; 13519 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 13520 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13521 ebx = ebx + 0x20u; /* 0x36126BF3: add ebx, 0x20 */ 13522 _flag_k = FK_ADD; 13523 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 13524 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13525 edi = edi + 4; /* 0x36126BF6: add edi, 4 */ 13526 _flag_k = FK_ADD; 13527 /* cmp ebx, 0x1000u */ /* 0x36126BF9: cmp ebx, 0x1000 */ 13528 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 13529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13530 _flag_k = FK_CMP; 13531 MEM32(ebp + (-0x2C)) = eax; /* 0x36126BFF: mov dword ptr [ebp - 0x2c], eax */ 13532 RECOMP_BACKEDGE(); 13533 if (CMP_L(_flag_a, _flag_b)) goto L_36126A80; /* 0x36126C02: jl 0x36126a80 */ 13534 L_36126C08: 13535 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126C08: mov al, byte ptr [esi + 0x163c] */ 13536 /* test LO8(eax), LO8(eax) */ /* 0x36126C0E: test al, al */ 13537 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13538 _cf = 0; 13539 _flag_k = FK_NARROW(FK_TEST, 24); 13540 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126C10: je 0x361275ac */ 13541 L_36126C16: 13542 eax = MEM32(ebp + (-0x14)); /* 0x36126C16: mov eax, dword ptr [ebp - 0x14] */ 13543 /* test eax, eax */ /* 0x36126C19: test eax, eax */ 13544 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13545 _cf = 0; 13546 _flag_k = FK_TEST; 13547 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126C1B: jne 0x361275ac */ 13548 L_36126C21: 13549 goto L_361275A8; /* 0x36126C21: jmp 0x361275a8 */ 13550 L_361275A8: 13551 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 13552 L_361275AC: 13553 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 13554 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 13555 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13556 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 13557 _flag_k = FK_ADD; 13558 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 13559 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13560 _cf = 0; 13561 _flag_k = FK_TEST; 13562 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 13563 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 13564 L_361275B7: 13565 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 13566 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 13567 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 13568 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 13569 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 13570 RECOMP_FLAGS_IN(); 13571 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 13572 PUSH32(esp, eax); /* 0x361275CD: push eax */ 13573 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 13574 RECOMP_FLAGS_IN(); 13575 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 13576 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 13577 RECOMP_FLAGS_IN(); 13578 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 13579 PUSH32(esp, eax); /* 0x361275E2: push eax */ 13580 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 13581 RECOMP_FLAGS_IN(); 13582 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 13583 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 13584 RECOMP_FLAGS_IN(); 13585 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 13586 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13587 _cf = (LO8(eax)) != 0; 13588 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 13589 _flag_k = FK_NARROW(FK_CMP, 24); 13590 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 13591 eax = _sc ? 0xFFFFFFFFu : 0; 13592 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 13593 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 13594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13595 eax = eax + 1; /* 0x361275F6: inc eax */ 13596 _flag_k = FK_INC; 13597 PUSH32(esp, eax); /* 0x361275F7: push eax */ 13598 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 13599 RECOMP_FLAGS_IN(); 13600 L_361275FE: 13601 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 13602 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 13603 esp = ebp; /* 0x36127600: mov esp, ebp */ 13604 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 13605 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 13606 RECOMP_REGS_OUT(); 13607 } 13608 13609 void sub_36126DAC(void) { 13610 int _fpu_cmp = 0; 13611 uint32_t _cf = 0; 13612 int _df = 1; 13613 uint32_t _flag_k = FK_NONE; 13614 uint32_t _flag_a = 0, _flag_b = 0; 13615 uint32_t _itail_tgt = 0; 13616 RECOMP_REGS_LOCALS 13617 RECOMP_ENTER(0x36126DACu); 13618 13619 L_36126DAC: 13620 edx = MEM32(ebp + (-0xC)); /* 0x36126DAC: mov edx, dword ptr [ebp - 0xc] */ 13621 fp_push(*(float*)&MEM32(edx)); /* 0x36126DAF: fld dword ptr [edx] */ 13622 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36126DB1: fcomp dword ptr [esi + 0xc] */ 13623 fp_pop(); 13624 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36126DB4: fnstsw ax */ 13625 /* test HI8(eax), 0x41u */ /* 0x36126DB6: test ah, 0x41 */ 13626 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13627 _cf = 0; 13628 _flag_k = FK_NARROW(FK_TEST, 24); 13629 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126EED; /* 0x36126DB9: jne 0x36126eed */ 13630 L_36126DBF: 13631 eax = MEM32(ebp + (-0x14)); /* 0x36126DBF: mov eax, dword ptr [ebp - 0x14] */ 13632 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFA00u); 13633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13634 eax = eax + 0xFFFFFA00u; /* 0x36126DC2: add eax, 0xfffffa00 */ 13635 _flag_k = FK_ADD; 13636 PUSH32(esp, eax); /* 0x36126DC7: push eax */ 13637 ecx = ebp + (-0x294); /* 0x36126DC8: lea ecx, [ebp - 0x294] */ 13638 PUSH32(esp, 0x3F7D70A4u); /* 0x36126DCE: push 0x3f7d70a4 */ 13639 PUSH32(esp, ecx); /* 0x36126DD3: push ecx */ 13640 RECOMP_ICALL(0x3609EB50u); /* 0x36126DD4: call 0x3609eb50 */ /* not lifted */ 13641 RECOMP_FLAGS_IN(); 13642 edx = eax; /* 0x36126DD9: mov edx, eax */ 13643 ecx = MEM32(edx); /* 0x36126DDB: mov ecx, dword ptr [edx] */ 13644 eax = MEM32(ebp + (-0x14)); /* 0x36126DDD: mov eax, dword ptr [ebp - 0x14] */ 13645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFA00u); 13646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13647 eax = eax + 0xFFFFFA00u; /* 0x36126DE0: add eax, 0xfffffa00 */ 13648 _flag_k = FK_ADD; 13649 MEM32(eax) = ecx; /* 0x36126DE5: mov dword ptr [eax], ecx */ 13650 ecx = MEM32(edx + 0x4); /* 0x36126DE7: mov ecx, dword ptr [edx + 4] */ 13651 MEM32(eax + 0x4) = ecx; /* 0x36126DEA: mov dword ptr [eax + 4], ecx */ 13652 edx = MEM32(edx + 0x8); /* 0x36126DED: mov edx, dword ptr [edx + 8] */ 13653 MEM32(eax + 0x8) = edx; /* 0x36126DF0: mov dword ptr [eax + 8], edx */ 13654 eax = MEM32(ebp + (-0x14)); /* 0x36126DF3: mov eax, dword ptr [ebp - 0x14] */ 13655 fp_push(*(float*)&MEM32(eax + (-0x5FC))); /* 0x36126DF6: fld dword ptr [eax - 0x5fc] */ 13656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFA00u); 13657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13658 eax = eax + 0xFFFFFA00u; /* 0x36126DFC: add eax, 0xfffffa00 */ 13659 _flag_k = FK_ADD; 13660 _st[0] -= (double)*(float*)ADDR(0x36175780); /* 0x36126E01: fsub dword ptr [0x36175780] */ 13661 PUSH32(esp, eax); /* 0x36126E07: push eax */ 13662 PUSH32(esp, 0x3DCCCCCDu); /* 0x36126E08: push 0x3dcccccd */ 13663 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x36126E0D: fstp dword ptr [eax + 4] */ 13664 eax = ebp + (-0x2AC); /* 0x36126E10: lea eax, [ebp - 0x2ac] */ 13665 PUSH32(esp, eax); /* 0x36126E16: push eax */ 13666 RECOMP_ICALL(0x3609EB50u); /* 0x36126E17: call 0x3609eb50 */ /* not lifted */ 13667 RECOMP_FLAGS_IN(); 13668 ecx = MEM32(ebp + (-0x14)); /* 0x36126E1C: mov ecx, dword ptr [ebp - 0x14] */ 13669 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 13670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13671 esp = esp + 0x18u; /* 0x36126E1F: add esp, 0x18 */ 13672 _flag_k = FK_ADD; 13673 PUSH32(esp, eax); /* 0x36126E22: push eax */ 13674 RECOMP_ICALL(MEM32(0x36170178)); /* 0x36126E23: call dword ptr [0x36170178] */ 13675 RECOMP_FLAGS_IN(); 13676 edx = MEM32(esi + 0x38); /* 0x36126E29: mov edx, dword ptr [esi + 0x38] */ 13677 ecx = edi; /* 0x36126E2C: mov ecx, edi */ 13678 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13679 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13680 ecx = ecx + edx; /* 0x36126E2E: add ecx, edx */ 13681 _flag_k = FK_ADD; 13682 edx = MEM32(ebp + (-0x14)); /* 0x36126E30: mov edx, dword ptr [ebp - 0x14] */ 13683 eax = MEM32(edx); /* 0x36126E33: mov eax, dword ptr [edx] */ 13684 MEM32(ecx) = eax; /* 0x36126E35: mov dword ptr [ecx], eax */ 13685 eax = MEM32(edx + 0x4); /* 0x36126E37: mov eax, dword ptr [edx + 4] */ 13686 MEM32(ecx + 0x4) = eax; /* 0x36126E3A: mov dword ptr [ecx + 4], eax */ 13687 edx = MEM32(edx + 0x8); /* 0x36126E3D: mov edx, dword ptr [edx + 8] */ 13688 eax = MEM32(ebp + (-0xC)); /* 0x36126E40: mov eax, dword ptr [ebp - 0xc] */ 13689 MEM32(ecx + 0x8) = edx; /* 0x36126E43: mov dword ptr [ecx + 8], edx */ 13690 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36126E46: fld dword ptr [esi + 0xc] */ 13691 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36126E49: fadd dword ptr [esi + 0x16c0] */ 13692 ecx = MEM32(esi + 0x38); /* 0x36126E4F: mov ecx, dword ptr [esi + 0x38] */ 13693 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36126E52: fsub dword ptr [eax] */ 13694 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36126E54: fdiv dword ptr [esi + 0x16c0] */ 13695 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36126E5A: fst dword ptr [ebp - 4] */ 13696 _st[0] += _st[0]; /* 0x36126E5D: fadd st(0), st(0) */ 13697 eax = MEM32(ebp + (-0x4)); /* 0x36126E5F: mov eax, dword ptr [ebp - 4] */ 13698 PUSH32(esp, eax); /* 0x36126E62: push eax */ 13699 _st[0] -= (double)*(float*)ADDR(0x36170380); /* 0x36126E63: fsub dword ptr [0x36170380] */ 13700 fp_push(*(float*)&MEM32(esi + 0x16C8)); /* 0x36126E69: fld dword ptr [esi + 0x16c8] */ 13701 { float _v = (float)_st[0]; *(float*)ADDR(edi + ecx + 0xC) = _v; } /* 0x36126E6F: fst dword ptr [edi + ecx + 0xc] */ 13702 edx = MEM32(esi + 0x38); /* 0x36126E73: mov edx, dword ptr [esi + 0x38] */ 13703 fp_push(_st[1]); /* 0x36126E76: fld st(1) */ 13704 _st[0] *= _st[2]; /* 0x36126E78: fmul st(2) */ 13705 ecx = esi + 0x168C; /* 0x36126E7A: lea ecx, [esi + 0x168c] */ 13706 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36126E80: fsubr dword ptr [0x36170380] */ 13707 _st[0] *= (double)*(float*)ADDR(0x36177748); /* 0x36126E86: fmul dword ptr [0x36177748] */ 13708 _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x36126E8C: fadd dword ptr [0x36170380] */ 13709 _st[0] *= _st[1]; /* 0x36126E92: fmul st(1) */ 13710 { float _v = (float)fp_pop(); *(float*)ADDR(edi + edx + 0x10) = _v; } /* 0x36126E94: fstp dword ptr [edi + edx + 0x10] */ 13711 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126E98: fstp st(0) */ 13712 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126E9A: fstp st(0) */ 13713 RECOMP_ICALL(0x36137D80u); /* 0x36126E9C: call 0x36137d80 */ /* not lifted */ 13714 RECOMP_FLAGS_IN(); 13715 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36126EA1: fld dword ptr [ebp - 4] */ 13716 ecx = MEM32(esi + 0x38); /* 0x36126EA4: mov ecx, dword ptr [esi + 0x38] */ 13717 _st[0] *= *(double*)ADDR(0x36177740); /* 0x36126EA7: fmul qword ptr [0x36177740] */ 13718 MEM32(edi + ecx + 0x14) = eax; /* 0x36126EAD: mov dword ptr [edi + ecx + 0x14], eax */ 13719 RECOMP_ICALL(0x3615FD8Cu); /* 0x36126EB1: call 0x3615fd8c */ /* not lifted */ 13720 RECOMP_FLAGS_IN(); 13721 edx = MEM32(esi + 0x38); /* 0x36126EB6: mov edx, dword ptr [esi + 0x38] */ 13722 MEM32(edi + edx + 0x18) = eax; /* 0x36126EB9: mov dword ptr [edi + edx + 0x18], eax */ 13723 eax = MEM32(esi + 0x38); /* 0x36126EBD: mov eax, dword ptr [esi + 0x38] */ 13724 MEM8(edi + eax + 0x1C) = (uint8_t)(1); /* 0x36126EC0: mov byte ptr [edi + eax + 0x1c], 1 */ 13725 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(1); 13726 MEM32(ebp + (-0x8)) = MEM32(ebp + (-0x8)) + 1; /* 0x36126EC5: inc dword ptr [ebp - 8] */ 13727 _flag_k = FK_INC; 13728 ecx = MEM32(ebp + (-0x14)); /* 0x36126EC8: mov ecx, dword ptr [ebp - 0x14] */ 13729 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36126ECB: fld dword ptr [ecx + 4] */ 13730 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x84))); /* 0x36126ECE: fcomp dword ptr [ebp - 0x84] */ 13731 fp_pop(); 13732 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36126ED4: fnstsw ax */ 13733 /* test HI8(eax), 1 */ /* 0x36126ED6: test ah, 1 */ 13734 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13735 _cf = 0; 13736 _flag_k = FK_NARROW(FK_TEST, 24); 13737 if (TEST_Z(_flag_a, _flag_b)) goto L_36126FB0; /* 0x36126ED9: je 0x36126fb0 */ 13738 L_36126EDF: 13739 edx = MEM32(ebp + (-0xC)); /* 0x36126EDF: mov edx, dword ptr [ebp - 0xc] */ 13740 MEM32(edx) = 0; /* 0x36126EE2: mov dword ptr [edx], 0 */ 13741 goto L_36126FB0; /* 0x36126EE8: jmp 0x36126fb0 */ 13742 L_36126EED: 13743 eax = MEM32(ebp + (-0x18)); /* 0x36126EED: mov eax, dword ptr [ebp - 0x18] */ 13744 /* test eax, eax */ /* 0x36126EF0: test eax, eax */ 13745 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13746 _cf = 0; 13747 _flag_k = FK_TEST; 13748 if (TEST_Z(_flag_a, _flag_b)) goto L_36126FA8; /* 0x36126EF2: je 0x36126fa8 */ 13749 L_36126EF8: 13750 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126EF8: mov al, byte ptr [esi + 0x163c] */ 13751 /* test LO8(eax), LO8(eax) */ /* 0x36126EFE: test al, al */ 13752 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13753 _cf = 0; 13754 _flag_k = FK_NARROW(FK_TEST, 24); 13755 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126FA8; /* 0x36126F00: jne 0x36126fa8 */ 13756 L_36126F06: 13757 ecx = ebp + (-0x5C); /* 0x36126F06: lea ecx, [ebp - 0x5c] */ 13758 RECOMP_ICALL(MEM32(0x36170174)); /* 0x36126F09: call dword ptr [0x36170174] */ 13759 RECOMP_FLAGS_IN(); 13760 eax = ebp + (-0x5C); /* 0x36126F0F: lea eax, [ebp - 0x5c] */ 13761 PUSH32(esp, eax); /* 0x36126F12: push eax */ 13762 RECOMP_ICALL(0x360FCBF0u); /* 0x36126F13: call 0x360fcbf0 */ /* not lifted */ 13763 RECOMP_FLAGS_IN(); 13764 ecx = MEM32(esi + 0x16CC); /* 0x36126F18: mov ecx, dword ptr [esi + 0x16cc] */ 13765 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13767 esp = esp + 4; /* 0x36126F1E: add esp, 4 */ 13768 _flag_k = FK_ADD; 13769 PUSH32(esp, ecx); /* 0x36126F21: push ecx */ 13770 edx = ebp + (-0x2C4); /* 0x36126F22: lea edx, [ebp - 0x2c4] */ 13771 PUSH32(esp, edx); /* 0x36126F28: push edx */ 13772 ecx = ebp + (-0x5C); /* 0x36126F29: lea ecx, [ebp - 0x5c] */ 13773 RECOMP_ICALL(MEM32(0x36170204)); /* 0x36126F2C: call dword ptr [0x36170204] */ 13774 RECOMP_FLAGS_IN(); 13775 ecx = MEM32(eax); /* 0x36126F32: mov ecx, dword ptr [eax] */ 13776 MEM32(ebp + (-0x5C)) = ecx; /* 0x36126F34: mov dword ptr [ebp - 0x5c], ecx */ 13777 edx = MEM32(eax + 0x4); /* 0x36126F37: mov edx, dword ptr [eax + 4] */ 13778 MEM32(ebp + (-0x58)) = edx; /* 0x36126F3A: mov dword ptr [ebp - 0x58], edx */ 13779 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36126F3D: fld dword ptr [ebp - 0x58] */ 13780 eax = MEM32(eax + 0x8); /* 0x36126F40: mov eax, dword ptr [eax + 8] */ 13781 _st[0] += (double)*(float*)ADDR(0x36177754); /* 0x36126F43: fadd dword ptr [0x36177754] */ 13782 ecx = ebp + (-0x2DC); /* 0x36126F49: lea ecx, [ebp - 0x2dc] */ 13783 PUSH32(esp, ecx); /* 0x36126F4F: push ecx */ 13784 ecx = MEM32(ebx); /* 0x36126F50: mov ecx, dword ptr [ebx] */ 13785 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x36126F52: fstp dword ptr [ebp - 0x58] */ 13786 MEM32(ebp + (-0x54)) = eax; /* 0x36126F55: mov dword ptr [ebp - 0x54], eax */ 13787 RECOMP_ICALL(0x36133FC0u); /* 0x36126F58: call 0x36133fc0 */ /* not lifted */ 13788 RECOMP_FLAGS_IN(); 13789 ecx = MEM32(eax); /* 0x36126F5D: mov ecx, dword ptr [eax] */ 13790 edx = MEM32(ebp + (-0x14)); /* 0x36126F5F: mov edx, dword ptr [ebp - 0x14] */ 13791 MEM32(edx) = ecx; /* 0x36126F62: mov dword ptr [edx], ecx */ 13792 ecx = MEM32(eax + 0x4); /* 0x36126F64: mov ecx, dword ptr [eax + 4] */ 13793 MEM32(edx + 0x4) = ecx; /* 0x36126F67: mov dword ptr [edx + 4], ecx */ 13794 eax = MEM32(eax + 0x8); /* 0x36126F6A: mov eax, dword ptr [eax + 8] */ 13795 ecx = MEM32(ebp + (-0x14)); /* 0x36126F6D: mov ecx, dword ptr [ebp - 0x14] */ 13796 MEM32(edx + 0x8) = eax; /* 0x36126F70: mov dword ptr [edx + 8], eax */ 13797 edx = MEM32(ebp + (-0x5C)); /* 0x36126F73: mov edx, dword ptr [ebp - 0x5c] */ 13798 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFA00u); 13799 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13800 ecx = ecx + 0xFFFFFA00u; /* 0x36126F76: add ecx, 0xfffffa00 */ 13801 _flag_k = FK_ADD; 13802 MEM32(ecx) = edx; /* 0x36126F7C: mov dword ptr [ecx], edx */ 13803 eax = MEM32(ebp + (-0x58)); /* 0x36126F7E: mov eax, dword ptr [ebp - 0x58] */ 13804 MEM32(ecx + 0x4) = eax; /* 0x36126F81: mov dword ptr [ecx + 4], eax */ 13805 edx = MEM32(ebp + (-0x54)); /* 0x36126F84: mov edx, dword ptr [ebp - 0x54] */ 13806 eax = MEM32(ebp + (-0xC)); /* 0x36126F87: mov eax, dword ptr [ebp - 0xc] */ 13807 MEM32(ecx + 0x8) = edx; /* 0x36126F8A: mov dword ptr [ecx + 8], edx */ 13808 fp_push(*(float*)&MEM32(esi + 0x16C0)); /* 0x36126F8D: fld dword ptr [esi + 0x16c0] */ 13809 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x36126F93: fadd dword ptr [esi + 0xc] */ 13810 ecx = MEM32(ebp + (-0x8)); /* 0x36126F96: mov ecx, dword ptr [ebp - 8] */ 13811 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13812 ecx = ecx + 1; /* 0x36126F99: inc ecx */ 13813 _flag_k = FK_INC; 13814 MEM32(ebp + (-0x8)) = ecx; /* 0x36126F9A: mov dword ptr [ebp - 8], ecx */ 13815 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36126F9D: fstp dword ptr [eax] */ 13816 eax = MEM32(ebp + (-0x18)); /* 0x36126F9F: mov eax, dword ptr [ebp - 0x18] */ 13817 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13818 eax = eax - 1; /* 0x36126FA2: dec eax */ 13819 _flag_k = FK_DEC; 13820 MEM32(ebp + (-0x18)) = eax; /* 0x36126FA3: mov dword ptr [ebp - 0x18], eax */ 13821 goto L_36126FB0; /* 0x36126FA6: jmp 0x36126fb0 */ 13822 L_36126FA8: 13823 ecx = MEM32(esi + 0x38); /* 0x36126FA8: mov ecx, dword ptr [esi + 0x38] */ 13824 MEM8(ecx + edi + 0x1C) = (uint8_t)(0); /* 0x36126FAB: mov byte ptr [ecx + edi + 0x1c], 0 */ 13825 L_36126FB0: 13826 eax = MEM32(ebp + (-0xC)); /* 0x36126FB0: mov eax, dword ptr [ebp - 0xc] */ 13827 edx = MEM32(ebp + (-0x14)); /* 0x36126FB3: mov edx, dword ptr [ebp - 0x14] */ 13828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 13829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13830 eax = eax + 8; /* 0x36126FB6: add eax, 8 */ 13831 _flag_k = FK_ADD; 13832 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u); 13833 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13834 edx = edx + 0x18u; /* 0x36126FB9: add edx, 0x18 */ 13835 _flag_k = FK_ADD; 13836 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x40u); 13837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13838 edi = edi + 0x40u; /* 0x36126FBC: add edi, 0x40 */ 13839 _flag_k = FK_ADD; 13840 /* cmp edi, 0x1000u */ /* 0x36126FBF: cmp edi, 0x1000 */ 13841 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1000u); 13842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13843 _flag_k = FK_CMP; 13844 MEM32(ebp + (-0xC)) = eax; /* 0x36126FC5: mov dword ptr [ebp - 0xc], eax */ 13845 MEM32(ebp + (-0x14)) = edx; /* 0x36126FC8: mov dword ptr [ebp - 0x14], edx */ 13846 RECOMP_BACKEDGE(); 13847 if (CMP_L(_flag_a, _flag_b)) goto L_36126DAC; /* 0x36126FCB: jl 0x36126dac */ 13848 L_36126FD1: 13849 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126FD1: mov al, byte ptr [esi + 0x163c] */ 13850 /* test LO8(eax), LO8(eax) */ /* 0x36126FD7: test al, al */ 13851 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13852 _cf = 0; 13853 _flag_k = FK_NARROW(FK_TEST, 24); 13854 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126FD9: je 0x361275ac */ 13855 L_36126FDF: 13856 eax = MEM32(ebp + (-0x8)); /* 0x36126FDF: mov eax, dword ptr [ebp - 8] */ 13857 /* test eax, eax */ /* 0x36126FE2: test eax, eax */ 13858 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13859 _cf = 0; 13860 _flag_k = FK_TEST; 13861 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126FE4: jne 0x361275ac */ 13862 L_36126FEA: 13863 goto L_361275A8; /* 0x36126FEA: jmp 0x361275a8 */ 13864 L_361275A8: 13865 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 13866 L_361275AC: 13867 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 13868 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 13869 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13870 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 13871 _flag_k = FK_ADD; 13872 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 13873 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13874 _cf = 0; 13875 _flag_k = FK_TEST; 13876 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 13877 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 13878 L_361275B7: 13879 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 13880 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 13881 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 13882 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 13883 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 13884 RECOMP_FLAGS_IN(); 13885 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 13886 PUSH32(esp, eax); /* 0x361275CD: push eax */ 13887 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 13888 RECOMP_FLAGS_IN(); 13889 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 13890 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 13891 RECOMP_FLAGS_IN(); 13892 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 13893 PUSH32(esp, eax); /* 0x361275E2: push eax */ 13894 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 13895 RECOMP_FLAGS_IN(); 13896 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 13897 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 13898 RECOMP_FLAGS_IN(); 13899 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 13900 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13901 _cf = (LO8(eax)) != 0; 13902 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 13903 _flag_k = FK_NARROW(FK_CMP, 24); 13904 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 13905 eax = _sc ? 0xFFFFFFFFu : 0; 13906 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 13907 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 13908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13909 eax = eax + 1; /* 0x361275F6: inc eax */ 13910 _flag_k = FK_INC; 13911 PUSH32(esp, eax); /* 0x361275F7: push eax */ 13912 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 13913 RECOMP_FLAGS_IN(); 13914 L_361275FE: 13915 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 13916 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 13917 esp = ebp; /* 0x36127600: mov esp, ebp */ 13918 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 13919 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 13920 RECOMP_REGS_OUT(); 13921 } 13922 13923 void sub_36126FB0(void) { 13924 int _fpu_cmp = 0; 13925 uint32_t _cf = 0; 13926 int _df = 1; 13927 uint32_t _flag_k = FK_NONE; 13928 uint32_t _flag_a = 0, _flag_b = 0; 13929 uint32_t _itail_tgt = 0; 13930 RECOMP_REGS_LOCALS 13931 RECOMP_ENTER(0x36126FB0u); 13932 13933 goto L_36126FB0; 13934 L_36126DAC: 13935 edx = MEM32(ebp + (-0xC)); /* 0x36126DAC: mov edx, dword ptr [ebp - 0xc] */ 13936 fp_push(*(float*)&MEM32(edx)); /* 0x36126DAF: fld dword ptr [edx] */ 13937 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36126DB1: fcomp dword ptr [esi + 0xc] */ 13938 fp_pop(); 13939 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36126DB4: fnstsw ax */ 13940 /* test HI8(eax), 0x41u */ /* 0x36126DB6: test ah, 0x41 */ 13941 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13942 _cf = 0; 13943 _flag_k = FK_NARROW(FK_TEST, 24); 13944 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126EED; /* 0x36126DB9: jne 0x36126eed */ 13945 L_36126DBF: 13946 eax = MEM32(ebp + (-0x14)); /* 0x36126DBF: mov eax, dword ptr [ebp - 0x14] */ 13947 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFA00u); 13948 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13949 eax = eax + 0xFFFFFA00u; /* 0x36126DC2: add eax, 0xfffffa00 */ 13950 _flag_k = FK_ADD; 13951 PUSH32(esp, eax); /* 0x36126DC7: push eax */ 13952 ecx = ebp + (-0x294); /* 0x36126DC8: lea ecx, [ebp - 0x294] */ 13953 PUSH32(esp, 0x3F7D70A4u); /* 0x36126DCE: push 0x3f7d70a4 */ 13954 PUSH32(esp, ecx); /* 0x36126DD3: push ecx */ 13955 RECOMP_ICALL(0x3609EB50u); /* 0x36126DD4: call 0x3609eb50 */ /* not lifted */ 13956 RECOMP_FLAGS_IN(); 13957 edx = eax; /* 0x36126DD9: mov edx, eax */ 13958 ecx = MEM32(edx); /* 0x36126DDB: mov ecx, dword ptr [edx] */ 13959 eax = MEM32(ebp + (-0x14)); /* 0x36126DDD: mov eax, dword ptr [ebp - 0x14] */ 13960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFA00u); 13961 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13962 eax = eax + 0xFFFFFA00u; /* 0x36126DE0: add eax, 0xfffffa00 */ 13963 _flag_k = FK_ADD; 13964 MEM32(eax) = ecx; /* 0x36126DE5: mov dword ptr [eax], ecx */ 13965 ecx = MEM32(edx + 0x4); /* 0x36126DE7: mov ecx, dword ptr [edx + 4] */ 13966 MEM32(eax + 0x4) = ecx; /* 0x36126DEA: mov dword ptr [eax + 4], ecx */ 13967 edx = MEM32(edx + 0x8); /* 0x36126DED: mov edx, dword ptr [edx + 8] */ 13968 MEM32(eax + 0x8) = edx; /* 0x36126DF0: mov dword ptr [eax + 8], edx */ 13969 eax = MEM32(ebp + (-0x14)); /* 0x36126DF3: mov eax, dword ptr [ebp - 0x14] */ 13970 fp_push(*(float*)&MEM32(eax + (-0x5FC))); /* 0x36126DF6: fld dword ptr [eax - 0x5fc] */ 13971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFA00u); 13972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13973 eax = eax + 0xFFFFFA00u; /* 0x36126DFC: add eax, 0xfffffa00 */ 13974 _flag_k = FK_ADD; 13975 _st[0] -= (double)*(float*)ADDR(0x36175780); /* 0x36126E01: fsub dword ptr [0x36175780] */ 13976 PUSH32(esp, eax); /* 0x36126E07: push eax */ 13977 PUSH32(esp, 0x3DCCCCCDu); /* 0x36126E08: push 0x3dcccccd */ 13978 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x36126E0D: fstp dword ptr [eax + 4] */ 13979 eax = ebp + (-0x2AC); /* 0x36126E10: lea eax, [ebp - 0x2ac] */ 13980 PUSH32(esp, eax); /* 0x36126E16: push eax */ 13981 RECOMP_ICALL(0x3609EB50u); /* 0x36126E17: call 0x3609eb50 */ /* not lifted */ 13982 RECOMP_FLAGS_IN(); 13983 ecx = MEM32(ebp + (-0x14)); /* 0x36126E1C: mov ecx, dword ptr [ebp - 0x14] */ 13984 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 13985 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13986 esp = esp + 0x18u; /* 0x36126E1F: add esp, 0x18 */ 13987 _flag_k = FK_ADD; 13988 PUSH32(esp, eax); /* 0x36126E22: push eax */ 13989 RECOMP_ICALL(MEM32(0x36170178)); /* 0x36126E23: call dword ptr [0x36170178] */ 13990 RECOMP_FLAGS_IN(); 13991 edx = MEM32(esi + 0x38); /* 0x36126E29: mov edx, dword ptr [esi + 0x38] */ 13992 ecx = edi; /* 0x36126E2C: mov ecx, edi */ 13993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13994 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13995 ecx = ecx + edx; /* 0x36126E2E: add ecx, edx */ 13996 _flag_k = FK_ADD; 13997 edx = MEM32(ebp + (-0x14)); /* 0x36126E30: mov edx, dword ptr [ebp - 0x14] */ 13998 eax = MEM32(edx); /* 0x36126E33: mov eax, dword ptr [edx] */ 13999 MEM32(ecx) = eax; /* 0x36126E35: mov dword ptr [ecx], eax */ 14000 eax = MEM32(edx + 0x4); /* 0x36126E37: mov eax, dword ptr [edx + 4] */ 14001 MEM32(ecx + 0x4) = eax; /* 0x36126E3A: mov dword ptr [ecx + 4], eax */ 14002 edx = MEM32(edx + 0x8); /* 0x36126E3D: mov edx, dword ptr [edx + 8] */ 14003 eax = MEM32(ebp + (-0xC)); /* 0x36126E40: mov eax, dword ptr [ebp - 0xc] */ 14004 MEM32(ecx + 0x8) = edx; /* 0x36126E43: mov dword ptr [ecx + 8], edx */ 14005 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36126E46: fld dword ptr [esi + 0xc] */ 14006 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36126E49: fadd dword ptr [esi + 0x16c0] */ 14007 ecx = MEM32(esi + 0x38); /* 0x36126E4F: mov ecx, dword ptr [esi + 0x38] */ 14008 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36126E52: fsub dword ptr [eax] */ 14009 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36126E54: fdiv dword ptr [esi + 0x16c0] */ 14010 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36126E5A: fst dword ptr [ebp - 4] */ 14011 _st[0] += _st[0]; /* 0x36126E5D: fadd st(0), st(0) */ 14012 eax = MEM32(ebp + (-0x4)); /* 0x36126E5F: mov eax, dword ptr [ebp - 4] */ 14013 PUSH32(esp, eax); /* 0x36126E62: push eax */ 14014 _st[0] -= (double)*(float*)ADDR(0x36170380); /* 0x36126E63: fsub dword ptr [0x36170380] */ 14015 fp_push(*(float*)&MEM32(esi + 0x16C8)); /* 0x36126E69: fld dword ptr [esi + 0x16c8] */ 14016 { float _v = (float)_st[0]; *(float*)ADDR(edi + ecx + 0xC) = _v; } /* 0x36126E6F: fst dword ptr [edi + ecx + 0xc] */ 14017 edx = MEM32(esi + 0x38); /* 0x36126E73: mov edx, dword ptr [esi + 0x38] */ 14018 fp_push(_st[1]); /* 0x36126E76: fld st(1) */ 14019 _st[0] *= _st[2]; /* 0x36126E78: fmul st(2) */ 14020 ecx = esi + 0x168C; /* 0x36126E7A: lea ecx, [esi + 0x168c] */ 14021 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36126E80: fsubr dword ptr [0x36170380] */ 14022 _st[0] *= (double)*(float*)ADDR(0x36177748); /* 0x36126E86: fmul dword ptr [0x36177748] */ 14023 _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x36126E8C: fadd dword ptr [0x36170380] */ 14024 _st[0] *= _st[1]; /* 0x36126E92: fmul st(1) */ 14025 { float _v = (float)fp_pop(); *(float*)ADDR(edi + edx + 0x10) = _v; } /* 0x36126E94: fstp dword ptr [edi + edx + 0x10] */ 14026 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126E98: fstp st(0) */ 14027 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36126E9A: fstp st(0) */ 14028 RECOMP_ICALL(0x36137D80u); /* 0x36126E9C: call 0x36137d80 */ /* not lifted */ 14029 RECOMP_FLAGS_IN(); 14030 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36126EA1: fld dword ptr [ebp - 4] */ 14031 ecx = MEM32(esi + 0x38); /* 0x36126EA4: mov ecx, dword ptr [esi + 0x38] */ 14032 _st[0] *= *(double*)ADDR(0x36177740); /* 0x36126EA7: fmul qword ptr [0x36177740] */ 14033 MEM32(edi + ecx + 0x14) = eax; /* 0x36126EAD: mov dword ptr [edi + ecx + 0x14], eax */ 14034 RECOMP_ICALL(0x3615FD8Cu); /* 0x36126EB1: call 0x3615fd8c */ /* not lifted */ 14035 RECOMP_FLAGS_IN(); 14036 edx = MEM32(esi + 0x38); /* 0x36126EB6: mov edx, dword ptr [esi + 0x38] */ 14037 MEM32(edi + edx + 0x18) = eax; /* 0x36126EB9: mov dword ptr [edi + edx + 0x18], eax */ 14038 eax = MEM32(esi + 0x38); /* 0x36126EBD: mov eax, dword ptr [esi + 0x38] */ 14039 MEM8(edi + eax + 0x1C) = (uint8_t)(1); /* 0x36126EC0: mov byte ptr [edi + eax + 0x1c], 1 */ 14040 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(1); 14041 MEM32(ebp + (-0x8)) = MEM32(ebp + (-0x8)) + 1; /* 0x36126EC5: inc dword ptr [ebp - 8] */ 14042 _flag_k = FK_INC; 14043 ecx = MEM32(ebp + (-0x14)); /* 0x36126EC8: mov ecx, dword ptr [ebp - 0x14] */ 14044 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36126ECB: fld dword ptr [ecx + 4] */ 14045 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x84))); /* 0x36126ECE: fcomp dword ptr [ebp - 0x84] */ 14046 fp_pop(); 14047 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36126ED4: fnstsw ax */ 14048 /* test HI8(eax), 1 */ /* 0x36126ED6: test ah, 1 */ 14049 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 14050 _cf = 0; 14051 _flag_k = FK_NARROW(FK_TEST, 24); 14052 if (TEST_Z(_flag_a, _flag_b)) goto L_36126FB0; /* 0x36126ED9: je 0x36126fb0 */ 14053 L_36126EDF: 14054 edx = MEM32(ebp + (-0xC)); /* 0x36126EDF: mov edx, dword ptr [ebp - 0xc] */ 14055 MEM32(edx) = 0; /* 0x36126EE2: mov dword ptr [edx], 0 */ 14056 goto L_36126FB0; /* 0x36126EE8: jmp 0x36126fb0 */ 14057 L_36126EED: 14058 eax = MEM32(ebp + (-0x18)); /* 0x36126EED: mov eax, dword ptr [ebp - 0x18] */ 14059 /* test eax, eax */ /* 0x36126EF0: test eax, eax */ 14060 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14061 _cf = 0; 14062 _flag_k = FK_TEST; 14063 if (TEST_Z(_flag_a, _flag_b)) goto L_36126FA8; /* 0x36126EF2: je 0x36126fa8 */ 14064 L_36126EF8: 14065 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126EF8: mov al, byte ptr [esi + 0x163c] */ 14066 /* test LO8(eax), LO8(eax) */ /* 0x36126EFE: test al, al */ 14067 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14068 _cf = 0; 14069 _flag_k = FK_NARROW(FK_TEST, 24); 14070 if (TEST_NZ(_flag_a, _flag_b)) goto L_36126FA8; /* 0x36126F00: jne 0x36126fa8 */ 14071 L_36126F06: 14072 ecx = ebp + (-0x5C); /* 0x36126F06: lea ecx, [ebp - 0x5c] */ 14073 RECOMP_ICALL(MEM32(0x36170174)); /* 0x36126F09: call dword ptr [0x36170174] */ 14074 RECOMP_FLAGS_IN(); 14075 eax = ebp + (-0x5C); /* 0x36126F0F: lea eax, [ebp - 0x5c] */ 14076 PUSH32(esp, eax); /* 0x36126F12: push eax */ 14077 RECOMP_ICALL(0x360FCBF0u); /* 0x36126F13: call 0x360fcbf0 */ /* not lifted */ 14078 RECOMP_FLAGS_IN(); 14079 ecx = MEM32(esi + 0x16CC); /* 0x36126F18: mov ecx, dword ptr [esi + 0x16cc] */ 14080 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14081 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14082 esp = esp + 4; /* 0x36126F1E: add esp, 4 */ 14083 _flag_k = FK_ADD; 14084 PUSH32(esp, ecx); /* 0x36126F21: push ecx */ 14085 edx = ebp + (-0x2C4); /* 0x36126F22: lea edx, [ebp - 0x2c4] */ 14086 PUSH32(esp, edx); /* 0x36126F28: push edx */ 14087 ecx = ebp + (-0x5C); /* 0x36126F29: lea ecx, [ebp - 0x5c] */ 14088 RECOMP_ICALL(MEM32(0x36170204)); /* 0x36126F2C: call dword ptr [0x36170204] */ 14089 RECOMP_FLAGS_IN(); 14090 ecx = MEM32(eax); /* 0x36126F32: mov ecx, dword ptr [eax] */ 14091 MEM32(ebp + (-0x5C)) = ecx; /* 0x36126F34: mov dword ptr [ebp - 0x5c], ecx */ 14092 edx = MEM32(eax + 0x4); /* 0x36126F37: mov edx, dword ptr [eax + 4] */ 14093 MEM32(ebp + (-0x58)) = edx; /* 0x36126F3A: mov dword ptr [ebp - 0x58], edx */ 14094 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36126F3D: fld dword ptr [ebp - 0x58] */ 14095 eax = MEM32(eax + 0x8); /* 0x36126F40: mov eax, dword ptr [eax + 8] */ 14096 _st[0] += (double)*(float*)ADDR(0x36177754); /* 0x36126F43: fadd dword ptr [0x36177754] */ 14097 ecx = ebp + (-0x2DC); /* 0x36126F49: lea ecx, [ebp - 0x2dc] */ 14098 PUSH32(esp, ecx); /* 0x36126F4F: push ecx */ 14099 ecx = MEM32(ebx); /* 0x36126F50: mov ecx, dword ptr [ebx] */ 14100 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x36126F52: fstp dword ptr [ebp - 0x58] */ 14101 MEM32(ebp + (-0x54)) = eax; /* 0x36126F55: mov dword ptr [ebp - 0x54], eax */ 14102 RECOMP_ICALL(0x36133FC0u); /* 0x36126F58: call 0x36133fc0 */ /* not lifted */ 14103 RECOMP_FLAGS_IN(); 14104 ecx = MEM32(eax); /* 0x36126F5D: mov ecx, dword ptr [eax] */ 14105 edx = MEM32(ebp + (-0x14)); /* 0x36126F5F: mov edx, dword ptr [ebp - 0x14] */ 14106 MEM32(edx) = ecx; /* 0x36126F62: mov dword ptr [edx], ecx */ 14107 ecx = MEM32(eax + 0x4); /* 0x36126F64: mov ecx, dword ptr [eax + 4] */ 14108 MEM32(edx + 0x4) = ecx; /* 0x36126F67: mov dword ptr [edx + 4], ecx */ 14109 eax = MEM32(eax + 0x8); /* 0x36126F6A: mov eax, dword ptr [eax + 8] */ 14110 ecx = MEM32(ebp + (-0x14)); /* 0x36126F6D: mov ecx, dword ptr [ebp - 0x14] */ 14111 MEM32(edx + 0x8) = eax; /* 0x36126F70: mov dword ptr [edx + 8], eax */ 14112 edx = MEM32(ebp + (-0x5C)); /* 0x36126F73: mov edx, dword ptr [ebp - 0x5c] */ 14113 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFA00u); 14114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14115 ecx = ecx + 0xFFFFFA00u; /* 0x36126F76: add ecx, 0xfffffa00 */ 14116 _flag_k = FK_ADD; 14117 MEM32(ecx) = edx; /* 0x36126F7C: mov dword ptr [ecx], edx */ 14118 eax = MEM32(ebp + (-0x58)); /* 0x36126F7E: mov eax, dword ptr [ebp - 0x58] */ 14119 MEM32(ecx + 0x4) = eax; /* 0x36126F81: mov dword ptr [ecx + 4], eax */ 14120 edx = MEM32(ebp + (-0x54)); /* 0x36126F84: mov edx, dword ptr [ebp - 0x54] */ 14121 eax = MEM32(ebp + (-0xC)); /* 0x36126F87: mov eax, dword ptr [ebp - 0xc] */ 14122 MEM32(ecx + 0x8) = edx; /* 0x36126F8A: mov dword ptr [ecx + 8], edx */ 14123 fp_push(*(float*)&MEM32(esi + 0x16C0)); /* 0x36126F8D: fld dword ptr [esi + 0x16c0] */ 14124 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x36126F93: fadd dword ptr [esi + 0xc] */ 14125 ecx = MEM32(ebp + (-0x8)); /* 0x36126F96: mov ecx, dword ptr [ebp - 8] */ 14126 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 14127 ecx = ecx + 1; /* 0x36126F99: inc ecx */ 14128 _flag_k = FK_INC; 14129 MEM32(ebp + (-0x8)) = ecx; /* 0x36126F9A: mov dword ptr [ebp - 8], ecx */ 14130 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36126F9D: fstp dword ptr [eax] */ 14131 eax = MEM32(ebp + (-0x18)); /* 0x36126F9F: mov eax, dword ptr [ebp - 0x18] */ 14132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14133 eax = eax - 1; /* 0x36126FA2: dec eax */ 14134 _flag_k = FK_DEC; 14135 MEM32(ebp + (-0x18)) = eax; /* 0x36126FA3: mov dword ptr [ebp - 0x18], eax */ 14136 goto L_36126FB0; /* 0x36126FA6: jmp 0x36126fb0 */ 14137 L_36126FA8: 14138 ecx = MEM32(esi + 0x38); /* 0x36126FA8: mov ecx, dword ptr [esi + 0x38] */ 14139 MEM8(ecx + edi + 0x1C) = (uint8_t)(0); /* 0x36126FAB: mov byte ptr [ecx + edi + 0x1c], 0 */ 14140 L_36126FB0: 14141 eax = MEM32(ebp + (-0xC)); /* 0x36126FB0: mov eax, dword ptr [ebp - 0xc] */ 14142 edx = MEM32(ebp + (-0x14)); /* 0x36126FB3: mov edx, dword ptr [ebp - 0x14] */ 14143 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 14144 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14145 eax = eax + 8; /* 0x36126FB6: add eax, 8 */ 14146 _flag_k = FK_ADD; 14147 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u); 14148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14149 edx = edx + 0x18u; /* 0x36126FB9: add edx, 0x18 */ 14150 _flag_k = FK_ADD; 14151 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x40u); 14152 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14153 edi = edi + 0x40u; /* 0x36126FBC: add edi, 0x40 */ 14154 _flag_k = FK_ADD; 14155 /* cmp edi, 0x1000u */ /* 0x36126FBF: cmp edi, 0x1000 */ 14156 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1000u); 14157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14158 _flag_k = FK_CMP; 14159 MEM32(ebp + (-0xC)) = eax; /* 0x36126FC5: mov dword ptr [ebp - 0xc], eax */ 14160 MEM32(ebp + (-0x14)) = edx; /* 0x36126FC8: mov dword ptr [ebp - 0x14], edx */ 14161 RECOMP_BACKEDGE(); 14162 if (CMP_L(_flag_a, _flag_b)) goto L_36126DAC; /* 0x36126FCB: jl 0x36126dac */ 14163 L_36126FD1: 14164 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36126FD1: mov al, byte ptr [esi + 0x163c] */ 14165 /* test LO8(eax), LO8(eax) */ /* 0x36126FD7: test al, al */ 14166 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14167 _cf = 0; 14168 _flag_k = FK_NARROW(FK_TEST, 24); 14169 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126FD9: je 0x361275ac */ 14170 L_36126FDF: 14171 eax = MEM32(ebp + (-0x8)); /* 0x36126FDF: mov eax, dword ptr [ebp - 8] */ 14172 /* test eax, eax */ /* 0x36126FE2: test eax, eax */ 14173 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14174 _cf = 0; 14175 _flag_k = FK_TEST; 14176 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36126FE4: jne 0x361275ac */ 14177 L_36126FEA: 14178 goto L_361275A8; /* 0x36126FEA: jmp 0x361275a8 */ 14179 L_361275A8: 14180 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 14181 L_361275AC: 14182 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 14183 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 14184 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14185 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 14186 _flag_k = FK_ADD; 14187 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 14188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14189 _cf = 0; 14190 _flag_k = FK_TEST; 14191 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 14192 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 14193 L_361275B7: 14194 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 14195 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 14196 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 14197 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 14198 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 14199 RECOMP_FLAGS_IN(); 14200 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 14201 PUSH32(esp, eax); /* 0x361275CD: push eax */ 14202 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 14203 RECOMP_FLAGS_IN(); 14204 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 14205 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 14206 RECOMP_FLAGS_IN(); 14207 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 14208 PUSH32(esp, eax); /* 0x361275E2: push eax */ 14209 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 14210 RECOMP_FLAGS_IN(); 14211 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 14212 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 14213 RECOMP_FLAGS_IN(); 14214 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 14215 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14216 _cf = (LO8(eax)) != 0; 14217 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 14218 _flag_k = FK_NARROW(FK_CMP, 24); 14219 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 14220 eax = _sc ? 0xFFFFFFFFu : 0; 14221 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 14222 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 14223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14224 eax = eax + 1; /* 0x361275F6: inc eax */ 14225 _flag_k = FK_INC; 14226 PUSH32(esp, eax); /* 0x361275F7: push eax */ 14227 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 14228 RECOMP_FLAGS_IN(); 14229 L_361275FE: 14230 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 14231 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 14232 esp = ebp; /* 0x36127600: mov esp, ebp */ 14233 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 14234 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 14235 RECOMP_REGS_OUT(); 14236 } 14237 14238 void sub_36127016(void) { 14239 int _fpu_cmp = 0; 14240 uint32_t _cf = 0; 14241 int _df = 1; 14242 uint32_t _flag_k = FK_NONE; 14243 uint32_t _flag_a = 0, _flag_b = 0; 14244 uint32_t _itail_tgt = 0; 14245 RECOMP_REGS_LOCALS 14246 RECOMP_ENTER(0x36127016u); 14247 14248 L_36127016: 14249 eax = MEM32(ebp + (-0x2C)); /* 0x36127016: mov eax, dword ptr [ebp - 0x2c] */ 14250 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36127019: cdq */ 14251 ecx = 0x11u; /* 0x3612701A: mov ecx, 0x11 */ 14252 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3612701F: idiv ecx */ 14253 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 14254 else { eax = 0; edx = 0; } } 14255 ecx = MEM32(ebp + (-0x10)); /* 0x36127021: mov ecx, dword ptr [ebp - 0x10] */ 14256 eax = 0x78787879u; /* 0x36127024: mov eax, 0x78787879 */ 14257 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36127029: imul edx */ 14258 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14259 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14260 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x3612702B: sar edx, 4 */ 14261 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14262 edx = (uint32_t)((int32_t)edx >> 4u); 14263 eax = edx; /* 0x3612702E: mov eax, edx */ 14264 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36127030: shr eax, 0x1f */ 14265 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14266 eax = eax >> 31u; /* 0x36127030: shr eax, 0x1f */ 14267 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14269 edx = edx + eax; /* 0x36127033: add edx, eax */ 14270 _flag_k = FK_ADD; 14271 MEM32(ebp + (-0x84)) = edx; /* 0x36127035: mov dword ptr [ebp - 0x84], edx */ 14272 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x3612703B: fild dword ptr [ebp - 0x84] */ 14273 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36127041: fsubr dword ptr [0x36170380] */ 14274 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36127047: fstp dword ptr [ebp - 4] */ 14275 fp_push(*(float*)&MEM32(ecx)); /* 0x3612704A: fld dword ptr [ecx] */ 14276 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x3612704C: fcomp dword ptr [ebp - 0x18] */ 14277 fp_pop(); 14278 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3612704F: fnstsw ax */ 14279 /* test HI8(eax), 0x41u */ /* 0x36127051: test ah, 0x41 */ 14280 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 14281 _cf = 0; 14282 _flag_k = FK_NARROW(FK_TEST, 24); 14283 if (TEST_NZ(_flag_a, _flag_b)) goto L_361270FF; /* 0x36127054: jne 0x361270ff */ 14284 L_3612705A: 14285 edi = MEM32(esi + 0x38); /* 0x3612705A: mov edi, dword ptr [esi + 0x38] */ 14286 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3612705D: fld dword ptr [ebp - 4] */ 14287 eax = MEM32(ebp + (-0x8)); /* 0x36127060: mov eax, dword ptr [ebp - 8] */ 14288 edx = ebx; /* 0x36127063: mov edx, ebx */ 14289 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 14290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14291 edx = edx + edi; /* 0x36127065: add edx, edi */ 14292 _flag_k = FK_ADD; 14293 edi = MEM32(eax); /* 0x36127067: mov edi, dword ptr [eax] */ 14294 MEM32(edx) = edi; /* 0x36127069: mov dword ptr [edx], edi */ 14295 edi = MEM32(eax + 0x4); /* 0x3612706B: mov edi, dword ptr [eax + 4] */ 14296 MEM32(edx + 0x4) = edi; /* 0x3612706E: mov dword ptr [edx + 4], edi */ 14297 eax = MEM32(eax + 0x8); /* 0x36127071: mov eax, dword ptr [eax + 8] */ 14298 MEM32(edx + 0x8) = eax; /* 0x36127074: mov dword ptr [edx + 8], eax */ 14299 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36127077: fmul dword ptr [esi + 0x16c0] */ 14300 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3612707D: fadd dword ptr [ebp - 0x18] */ 14301 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36127080: fsub dword ptr [ecx] */ 14302 ecx = MEM32(esi + 0x38); /* 0x36127082: mov ecx, dword ptr [esi + 0x38] */ 14303 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36127085: fdiv dword ptr [esi + 0x16c0] */ 14304 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3612708B: fst dword ptr [ebp - 4] */ 14305 _st[0] += _st[0]; /* 0x3612708E: fadd st(0), st(0) */ 14306 eax = MEM32(ebp + (-0x4)); /* 0x36127090: mov eax, dword ptr [ebp - 4] */ 14307 PUSH32(esp, eax); /* 0x36127093: push eax */ 14308 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36127094: fsubr dword ptr [0x36170380] */ 14309 fp_push(_st[0]); /* 0x3612709A: fld st(0) */ 14310 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3612709C: fmulp st(1) */ 14311 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3612709E: fsubr dword ptr [0x36170380] */ 14312 fp_push(_st[0]); /* 0x361270A4: fld st(0) */ 14313 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x361270A6: fmul dword ptr [esi + 0x16c8] */ 14314 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0xC) = _v; } /* 0x361270AC: fstp dword ptr [ebx + ecx + 0xc] */ 14315 edx = MEM32(esi + 0x38); /* 0x361270B0: mov edx, dword ptr [esi + 0x38] */ 14316 ecx = esi + 0x168C; /* 0x361270B3: lea ecx, [esi + 0x168c] */ 14317 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x361270B9: fmul dword ptr [esi + 0x16c8] */ 14318 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + edx + 0x10) = _v; } /* 0x361270BF: fstp dword ptr [ebx + edx + 0x10] */ 14319 RECOMP_ICALL(0x36137D80u); /* 0x361270C3: call 0x36137d80 */ /* not lifted */ 14320 RECOMP_FLAGS_IN(); 14321 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361270C8: fld dword ptr [ebp - 4] */ 14322 ecx = MEM32(esi + 0x38); /* 0x361270CB: mov ecx, dword ptr [esi + 0x38] */ 14323 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x361270CE: fmul dword ptr [0x36177750] */ 14324 MEM32(ebx + ecx + 0x14) = eax; /* 0x361270D4: mov dword ptr [ebx + ecx + 0x14], eax */ 14325 RECOMP_ICALL(0x3615FD8Cu); /* 0x361270D8: call 0x3615fd8c */ /* not lifted */ 14326 RECOMP_FLAGS_IN(); 14327 edx = 0xFu; /* 0x361270DD: mov edx, 0xf */ 14328 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14330 edx = edx - eax; /* 0x361270E2: sub edx, eax */ 14331 _flag_k = FK_CMP; 14332 eax = MEM32(esi + 0x38); /* 0x361270E4: mov eax, dword ptr [esi + 0x38] */ 14333 MEM32(ebx + eax + 0x18) = edx; /* 0x361270E7: mov dword ptr [ebx + eax + 0x18], edx */ 14334 eax = MEM32(ebp + (-0xC)); /* 0x361270EB: mov eax, dword ptr [ebp - 0xc] */ 14335 ecx = MEM32(esi + 0x38); /* 0x361270EE: mov ecx, dword ptr [esi + 0x38] */ 14336 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14337 eax = eax + 1; /* 0x361270F1: inc eax */ 14338 _flag_k = FK_INC; 14339 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x361270F2: mov byte ptr [ebx + ecx + 0x1c], 1 */ 14340 MEM32(ebp + (-0xC)) = eax; /* 0x361270F7: mov dword ptr [ebp - 0xc], eax */ 14341 goto L_361271DE; /* 0x361270FA: jmp 0x361271de */ 14342 L_361270FF: 14343 eax = MEM32(ebp + (-0x1C)); /* 0x361270FF: mov eax, dword ptr [ebp - 0x1c] */ 14344 /* test eax, eax */ /* 0x36127102: test eax, eax */ 14345 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14346 _cf = 0; 14347 _flag_k = FK_TEST; 14348 if (TEST_Z(_flag_a, _flag_b)) goto L_361271D6; /* 0x36127104: je 0x361271d6 */ 14349 L_3612710A: 14350 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x3612710A: mov al, byte ptr [esi + 0x163c] */ 14351 /* test LO8(eax), LO8(eax) */ /* 0x36127110: test al, al */ 14352 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14353 _cf = 0; 14354 _flag_k = FK_NARROW(FK_TEST, 24); 14355 if (TEST_NZ(_flag_a, _flag_b)) goto L_361271D6; /* 0x36127112: jne 0x361271d6 */ 14356 L_36127118: 14357 RECOMP_ICALL(0x360F7B00u); /* 0x36127118: call 0x360f7b00 */ /* not lifted */ 14358 RECOMP_FLAGS_IN(); 14359 edx = MEM32(esi + 0x28); /* 0x3612711D: mov edx, dword ptr [esi + 0x28] */ 14360 PUSH32(esp, edx); /* 0x36127120: push edx */ 14361 ecx = eax; /* 0x36127121: mov ecx, eax */ 14362 RECOMP_ICALL(0x360FBF90u); /* 0x36127123: call 0x360fbf90 */ /* not lifted */ 14363 RECOMP_FLAGS_IN(); 14364 edi = eax; /* 0x36127128: mov edi, eax */ 14365 /* test edi, edi */ /* 0x3612712A: test edi, edi */ 14366 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 14367 _cf = 0; 14368 _flag_k = FK_TEST; 14369 if (TEST_Z(_flag_a, _flag_b)) goto L_361271CC; /* 0x3612712C: je 0x361271cc */ 14370 L_36127132: 14371 ecx = edi; /* 0x36127132: mov ecx, edi */ 14372 RECOMP_ICALL(0x36131DC0u); /* 0x36127134: call 0x36131dc0 */ /* not lifted */ 14373 RECOMP_FLAGS_IN(); 14374 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36127139: call dword ptr [0x3616f254] */ 14375 RECOMP_FLAGS_IN(); 14376 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 14377 eax = eax & 0x7FFFu; /* 0x3612713F: and eax, 0x7fff */ 14378 _cf = 0; 14379 _flag_k = FK_TEST; 14380 MEM32(ebp + (-0x84)) = eax; /* 0x36127144: mov dword ptr [ebp - 0x84], eax */ 14381 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x3612714A: fild dword ptr [ebp - 0x84] */ 14382 ecx = ebp + (-0x2F4); /* 0x36127150: lea ecx, [ebp - 0x2f4] */ 14383 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36127156: fmul dword ptr [0x36175f2c] */ 14384 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x3612715C: fstp dword ptr [ebp - 0x84] */ 14385 eax = MEM32(ebp + (-0x84)); /* 0x36127162: mov eax, dword ptr [ebp - 0x84] */ 14386 PUSH32(esp, eax); /* 0x36127168: push eax */ 14387 PUSH32(esp, ecx); /* 0x36127169: push ecx */ 14388 ecx = edi; /* 0x3612716A: mov ecx, edi */ 14389 RECOMP_ICALL(0x36132230u); /* 0x3612716C: call 0x36132230 */ /* not lifted */ 14390 RECOMP_FLAGS_IN(); 14391 edi = MEM32(ebp + (-0x8)); /* 0x36127171: mov edi, dword ptr [ebp - 8] */ 14392 edx = eax; /* 0x36127174: mov edx, eax */ 14393 eax = MEM32(edx); /* 0x36127176: mov eax, dword ptr [edx] */ 14394 ecx = MEM32(edx + 0x4); /* 0x36127178: mov ecx, dword ptr [edx + 4] */ 14395 edx = MEM32(edx + 0x8); /* 0x3612717B: mov edx, dword ptr [edx + 8] */ 14396 MEM32(edi) = eax; /* 0x3612717E: mov dword ptr [edi], eax */ 14397 MEM32(edi + 0x4) = ecx; /* 0x36127180: mov dword ptr [edi + 4], ecx */ 14398 ecx = ebp + (-0x30C); /* 0x36127183: lea ecx, [ebp - 0x30c] */ 14399 MEM32(edi + 0x8) = edx; /* 0x36127189: mov dword ptr [edi + 8], edx */ 14400 RECOMP_ICALL(MEM32(0x36170174)); /* 0x3612718C: call dword ptr [0x36170174] */ 14401 RECOMP_FLAGS_IN(); 14402 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36127192: fld dword ptr [ebp - 4] */ 14403 edx = MEM32(eax); /* 0x36127195: mov edx, dword ptr [eax] */ 14404 ecx = MEM32(ebp + (-0x8)); /* 0x36127197: mov ecx, dword ptr [ebp - 8] */ 14405 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFA00u); 14406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14407 ecx = ecx + 0xFFFFFA00u; /* 0x3612719A: add ecx, 0xfffffa00 */ 14408 _flag_k = FK_ADD; 14409 MEM32(ecx) = edx; /* 0x361271A0: mov dword ptr [ecx], edx */ 14410 edx = MEM32(eax + 0x4); /* 0x361271A2: mov edx, dword ptr [eax + 4] */ 14411 MEM32(ecx + 0x4) = edx; /* 0x361271A5: mov dword ptr [ecx + 4], edx */ 14412 eax = MEM32(eax + 0x8); /* 0x361271A8: mov eax, dword ptr [eax + 8] */ 14413 MEM32(ecx + 0x8) = eax; /* 0x361271AB: mov dword ptr [ecx + 8], eax */ 14414 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361271AE: fmul dword ptr [esi + 0x16c0] */ 14415 ecx = MEM32(ebp + (-0x10)); /* 0x361271B4: mov ecx, dword ptr [ebp - 0x10] */ 14416 eax = MEM32(ebp + (-0x1C)); /* 0x361271B7: mov eax, dword ptr [ebp - 0x1c] */ 14417 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x361271BA: fadd dword ptr [ebp - 0x18] */ 14418 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361271BD: fstp dword ptr [ecx] */ 14419 ecx = MEM32(ebp + (-0xC)); /* 0x361271BF: mov ecx, dword ptr [ebp - 0xc] */ 14420 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 14421 ecx = ecx + 1; /* 0x361271C2: inc ecx */ 14422 _flag_k = FK_INC; 14423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14424 eax = eax - 1; /* 0x361271C3: dec eax */ 14425 _flag_k = FK_DEC; 14426 MEM32(ebp + (-0xC)) = ecx; /* 0x361271C4: mov dword ptr [ebp - 0xc], ecx */ 14427 MEM32(ebp + (-0x1C)) = eax; /* 0x361271C7: mov dword ptr [ebp - 0x1c], eax */ 14428 goto L_361271DE; /* 0x361271CA: jmp 0x361271de */ 14429 L_361271CC: 14430 edx = MEM32(esi + 0x38); /* 0x361271CC: mov edx, dword ptr [esi + 0x38] */ 14431 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x361271CF: mov byte ptr [edx + ebx + 0x1c], 0 */ 14432 goto L_361271DE; /* 0x361271D4: jmp 0x361271de */ 14433 L_361271D6: 14434 eax = MEM32(esi + 0x38); /* 0x361271D6: mov eax, dword ptr [esi + 0x38] */ 14435 MEM8(eax + ebx + 0x1C) = (uint8_t)(0); /* 0x361271D9: mov byte ptr [eax + ebx + 0x1c], 0 */ 14436 L_361271DE: 14437 eax = MEM32(ebp + (-0x2C)); /* 0x361271DE: mov eax, dword ptr [ebp - 0x2c] */ 14438 edi = MEM32(ebp + (-0x8)); /* 0x361271E1: mov edi, dword ptr [ebp - 8] */ 14439 edx = MEM32(ebp + (-0x10)); /* 0x361271E4: mov edx, dword ptr [ebp - 0x10] */ 14440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14441 eax = eax + 1; /* 0x361271E7: inc eax */ 14442 _flag_k = FK_INC; 14443 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 14444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14445 edi = edi + 0xCu; /* 0x361271E8: add edi, 0xc */ 14446 _flag_k = FK_ADD; 14447 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 14448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14449 edx = edx + 4; /* 0x361271EB: add edx, 4 */ 14450 _flag_k = FK_ADD; 14451 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 14452 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14453 ebx = ebx + 0x20u; /* 0x361271EE: add ebx, 0x20 */ 14454 _flag_k = FK_ADD; 14455 /* cmp ebx, 0x1000u */ /* 0x361271F1: cmp ebx, 0x1000 */ 14456 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 14457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14458 _flag_k = FK_CMP; 14459 MEM32(ebp + (-0x2C)) = eax; /* 0x361271F7: mov dword ptr [ebp - 0x2c], eax */ 14460 MEM32(ebp + (-0x8)) = edi; /* 0x361271FA: mov dword ptr [ebp - 8], edi */ 14461 MEM32(ebp + (-0x10)) = edx; /* 0x361271FD: mov dword ptr [ebp - 0x10], edx */ 14462 RECOMP_BACKEDGE(); 14463 if (CMP_L(_flag_a, _flag_b)) goto L_36127016; /* 0x36127200: jl 0x36127016 */ 14464 L_36127206: 14465 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36127206: mov al, byte ptr [esi + 0x163c] */ 14466 /* test LO8(eax), LO8(eax) */ /* 0x3612720C: test al, al */ 14467 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14468 _cf = 0; 14469 _flag_k = FK_NARROW(FK_TEST, 24); 14470 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612720E: je 0x361275ac */ 14471 L_36127214: 14472 eax = MEM32(ebp + (-0xC)); /* 0x36127214: mov eax, dword ptr [ebp - 0xc] */ 14473 /* test eax, eax */ /* 0x36127217: test eax, eax */ 14474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14475 _cf = 0; 14476 _flag_k = FK_TEST; 14477 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36127219: jne 0x361275ac */ 14478 L_3612721F: 14479 goto L_361275A8; /* 0x3612721F: jmp 0x361275a8 */ 14480 L_361275A8: 14481 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 14482 L_361275AC: 14483 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 14484 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 14485 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14486 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 14487 _flag_k = FK_ADD; 14488 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 14489 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14490 _cf = 0; 14491 _flag_k = FK_TEST; 14492 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 14493 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 14494 L_361275B7: 14495 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 14496 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 14497 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 14498 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 14499 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 14500 RECOMP_FLAGS_IN(); 14501 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 14502 PUSH32(esp, eax); /* 0x361275CD: push eax */ 14503 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 14504 RECOMP_FLAGS_IN(); 14505 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 14506 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 14507 RECOMP_FLAGS_IN(); 14508 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 14509 PUSH32(esp, eax); /* 0x361275E2: push eax */ 14510 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 14511 RECOMP_FLAGS_IN(); 14512 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 14513 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 14514 RECOMP_FLAGS_IN(); 14515 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 14516 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14517 _cf = (LO8(eax)) != 0; 14518 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 14519 _flag_k = FK_NARROW(FK_CMP, 24); 14520 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 14521 eax = _sc ? 0xFFFFFFFFu : 0; 14522 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 14523 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 14524 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14525 eax = eax + 1; /* 0x361275F6: inc eax */ 14526 _flag_k = FK_INC; 14527 PUSH32(esp, eax); /* 0x361275F7: push eax */ 14528 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 14529 RECOMP_FLAGS_IN(); 14530 L_361275FE: 14531 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 14532 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 14533 esp = ebp; /* 0x36127600: mov esp, ebp */ 14534 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 14535 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 14536 RECOMP_REGS_OUT(); 14537 } 14538 14539 void sub_361271DE(void) { 14540 int _fpu_cmp = 0; 14541 uint32_t _cf = 0; 14542 int _df = 1; 14543 uint32_t _flag_k = FK_NONE; 14544 uint32_t _flag_a = 0, _flag_b = 0; 14545 uint32_t _itail_tgt = 0; 14546 RECOMP_REGS_LOCALS 14547 RECOMP_ENTER(0x361271DEu); 14548 14549 goto L_361271DE; 14550 L_36127016: 14551 eax = MEM32(ebp + (-0x2C)); /* 0x36127016: mov eax, dword ptr [ebp - 0x2c] */ 14552 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36127019: cdq */ 14553 ecx = 0x11u; /* 0x3612701A: mov ecx, 0x11 */ 14554 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3612701F: idiv ecx */ 14555 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 14556 else { eax = 0; edx = 0; } } 14557 ecx = MEM32(ebp + (-0x10)); /* 0x36127021: mov ecx, dword ptr [ebp - 0x10] */ 14558 eax = 0x78787879u; /* 0x36127024: mov eax, 0x78787879 */ 14559 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36127029: imul edx */ 14560 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14561 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14562 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x3612702B: sar edx, 4 */ 14563 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14564 edx = (uint32_t)((int32_t)edx >> 4u); 14565 eax = edx; /* 0x3612702E: mov eax, edx */ 14566 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36127030: shr eax, 0x1f */ 14567 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14568 eax = eax >> 31u; /* 0x36127030: shr eax, 0x1f */ 14569 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14570 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14571 edx = edx + eax; /* 0x36127033: add edx, eax */ 14572 _flag_k = FK_ADD; 14573 MEM32(ebp + (-0x84)) = edx; /* 0x36127035: mov dword ptr [ebp - 0x84], edx */ 14574 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x3612703B: fild dword ptr [ebp - 0x84] */ 14575 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36127041: fsubr dword ptr [0x36170380] */ 14576 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36127047: fstp dword ptr [ebp - 4] */ 14577 fp_push(*(float*)&MEM32(ecx)); /* 0x3612704A: fld dword ptr [ecx] */ 14578 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x3612704C: fcomp dword ptr [ebp - 0x18] */ 14579 fp_pop(); 14580 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3612704F: fnstsw ax */ 14581 /* test HI8(eax), 0x41u */ /* 0x36127051: test ah, 0x41 */ 14582 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 14583 _cf = 0; 14584 _flag_k = FK_NARROW(FK_TEST, 24); 14585 if (TEST_NZ(_flag_a, _flag_b)) goto L_361270FF; /* 0x36127054: jne 0x361270ff */ 14586 L_3612705A: 14587 edi = MEM32(esi + 0x38); /* 0x3612705A: mov edi, dword ptr [esi + 0x38] */ 14588 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3612705D: fld dword ptr [ebp - 4] */ 14589 eax = MEM32(ebp + (-0x8)); /* 0x36127060: mov eax, dword ptr [ebp - 8] */ 14590 edx = ebx; /* 0x36127063: mov edx, ebx */ 14591 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 14592 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14593 edx = edx + edi; /* 0x36127065: add edx, edi */ 14594 _flag_k = FK_ADD; 14595 edi = MEM32(eax); /* 0x36127067: mov edi, dword ptr [eax] */ 14596 MEM32(edx) = edi; /* 0x36127069: mov dword ptr [edx], edi */ 14597 edi = MEM32(eax + 0x4); /* 0x3612706B: mov edi, dword ptr [eax + 4] */ 14598 MEM32(edx + 0x4) = edi; /* 0x3612706E: mov dword ptr [edx + 4], edi */ 14599 eax = MEM32(eax + 0x8); /* 0x36127071: mov eax, dword ptr [eax + 8] */ 14600 MEM32(edx + 0x8) = eax; /* 0x36127074: mov dword ptr [edx + 8], eax */ 14601 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36127077: fmul dword ptr [esi + 0x16c0] */ 14602 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3612707D: fadd dword ptr [ebp - 0x18] */ 14603 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36127080: fsub dword ptr [ecx] */ 14604 ecx = MEM32(esi + 0x38); /* 0x36127082: mov ecx, dword ptr [esi + 0x38] */ 14605 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x36127085: fdiv dword ptr [esi + 0x16c0] */ 14606 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3612708B: fst dword ptr [ebp - 4] */ 14607 _st[0] += _st[0]; /* 0x3612708E: fadd st(0), st(0) */ 14608 eax = MEM32(ebp + (-0x4)); /* 0x36127090: mov eax, dword ptr [ebp - 4] */ 14609 PUSH32(esp, eax); /* 0x36127093: push eax */ 14610 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36127094: fsubr dword ptr [0x36170380] */ 14611 fp_push(_st[0]); /* 0x3612709A: fld st(0) */ 14612 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3612709C: fmulp st(1) */ 14613 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3612709E: fsubr dword ptr [0x36170380] */ 14614 fp_push(_st[0]); /* 0x361270A4: fld st(0) */ 14615 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x361270A6: fmul dword ptr [esi + 0x16c8] */ 14616 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0xC) = _v; } /* 0x361270AC: fstp dword ptr [ebx + ecx + 0xc] */ 14617 edx = MEM32(esi + 0x38); /* 0x361270B0: mov edx, dword ptr [esi + 0x38] */ 14618 ecx = esi + 0x168C; /* 0x361270B3: lea ecx, [esi + 0x168c] */ 14619 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x361270B9: fmul dword ptr [esi + 0x16c8] */ 14620 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + edx + 0x10) = _v; } /* 0x361270BF: fstp dword ptr [ebx + edx + 0x10] */ 14621 RECOMP_ICALL(0x36137D80u); /* 0x361270C3: call 0x36137d80 */ /* not lifted */ 14622 RECOMP_FLAGS_IN(); 14623 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361270C8: fld dword ptr [ebp - 4] */ 14624 ecx = MEM32(esi + 0x38); /* 0x361270CB: mov ecx, dword ptr [esi + 0x38] */ 14625 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x361270CE: fmul dword ptr [0x36177750] */ 14626 MEM32(ebx + ecx + 0x14) = eax; /* 0x361270D4: mov dword ptr [ebx + ecx + 0x14], eax */ 14627 RECOMP_ICALL(0x3615FD8Cu); /* 0x361270D8: call 0x3615fd8c */ /* not lifted */ 14628 RECOMP_FLAGS_IN(); 14629 edx = 0xFu; /* 0x361270DD: mov edx, 0xf */ 14630 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14632 edx = edx - eax; /* 0x361270E2: sub edx, eax */ 14633 _flag_k = FK_CMP; 14634 eax = MEM32(esi + 0x38); /* 0x361270E4: mov eax, dword ptr [esi + 0x38] */ 14635 MEM32(ebx + eax + 0x18) = edx; /* 0x361270E7: mov dword ptr [ebx + eax + 0x18], edx */ 14636 eax = MEM32(ebp + (-0xC)); /* 0x361270EB: mov eax, dword ptr [ebp - 0xc] */ 14637 ecx = MEM32(esi + 0x38); /* 0x361270EE: mov ecx, dword ptr [esi + 0x38] */ 14638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14639 eax = eax + 1; /* 0x361270F1: inc eax */ 14640 _flag_k = FK_INC; 14641 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x361270F2: mov byte ptr [ebx + ecx + 0x1c], 1 */ 14642 MEM32(ebp + (-0xC)) = eax; /* 0x361270F7: mov dword ptr [ebp - 0xc], eax */ 14643 goto L_361271DE; /* 0x361270FA: jmp 0x361271de */ 14644 L_361270FF: 14645 eax = MEM32(ebp + (-0x1C)); /* 0x361270FF: mov eax, dword ptr [ebp - 0x1c] */ 14646 /* test eax, eax */ /* 0x36127102: test eax, eax */ 14647 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14648 _cf = 0; 14649 _flag_k = FK_TEST; 14650 if (TEST_Z(_flag_a, _flag_b)) goto L_361271D6; /* 0x36127104: je 0x361271d6 */ 14651 L_3612710A: 14652 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x3612710A: mov al, byte ptr [esi + 0x163c] */ 14653 /* test LO8(eax), LO8(eax) */ /* 0x36127110: test al, al */ 14654 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14655 _cf = 0; 14656 _flag_k = FK_NARROW(FK_TEST, 24); 14657 if (TEST_NZ(_flag_a, _flag_b)) goto L_361271D6; /* 0x36127112: jne 0x361271d6 */ 14658 L_36127118: 14659 RECOMP_ICALL(0x360F7B00u); /* 0x36127118: call 0x360f7b00 */ /* not lifted */ 14660 RECOMP_FLAGS_IN(); 14661 edx = MEM32(esi + 0x28); /* 0x3612711D: mov edx, dword ptr [esi + 0x28] */ 14662 PUSH32(esp, edx); /* 0x36127120: push edx */ 14663 ecx = eax; /* 0x36127121: mov ecx, eax */ 14664 RECOMP_ICALL(0x360FBF90u); /* 0x36127123: call 0x360fbf90 */ /* not lifted */ 14665 RECOMP_FLAGS_IN(); 14666 edi = eax; /* 0x36127128: mov edi, eax */ 14667 /* test edi, edi */ /* 0x3612712A: test edi, edi */ 14668 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 14669 _cf = 0; 14670 _flag_k = FK_TEST; 14671 if (TEST_Z(_flag_a, _flag_b)) goto L_361271CC; /* 0x3612712C: je 0x361271cc */ 14672 L_36127132: 14673 ecx = edi; /* 0x36127132: mov ecx, edi */ 14674 RECOMP_ICALL(0x36131DC0u); /* 0x36127134: call 0x36131dc0 */ /* not lifted */ 14675 RECOMP_FLAGS_IN(); 14676 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36127139: call dword ptr [0x3616f254] */ 14677 RECOMP_FLAGS_IN(); 14678 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 14679 eax = eax & 0x7FFFu; /* 0x3612713F: and eax, 0x7fff */ 14680 _cf = 0; 14681 _flag_k = FK_TEST; 14682 MEM32(ebp + (-0x84)) = eax; /* 0x36127144: mov dword ptr [ebp - 0x84], eax */ 14683 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x3612714A: fild dword ptr [ebp - 0x84] */ 14684 ecx = ebp + (-0x2F4); /* 0x36127150: lea ecx, [ebp - 0x2f4] */ 14685 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36127156: fmul dword ptr [0x36175f2c] */ 14686 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x3612715C: fstp dword ptr [ebp - 0x84] */ 14687 eax = MEM32(ebp + (-0x84)); /* 0x36127162: mov eax, dword ptr [ebp - 0x84] */ 14688 PUSH32(esp, eax); /* 0x36127168: push eax */ 14689 PUSH32(esp, ecx); /* 0x36127169: push ecx */ 14690 ecx = edi; /* 0x3612716A: mov ecx, edi */ 14691 RECOMP_ICALL(0x36132230u); /* 0x3612716C: call 0x36132230 */ /* not lifted */ 14692 RECOMP_FLAGS_IN(); 14693 edi = MEM32(ebp + (-0x8)); /* 0x36127171: mov edi, dword ptr [ebp - 8] */ 14694 edx = eax; /* 0x36127174: mov edx, eax */ 14695 eax = MEM32(edx); /* 0x36127176: mov eax, dword ptr [edx] */ 14696 ecx = MEM32(edx + 0x4); /* 0x36127178: mov ecx, dword ptr [edx + 4] */ 14697 edx = MEM32(edx + 0x8); /* 0x3612717B: mov edx, dword ptr [edx + 8] */ 14698 MEM32(edi) = eax; /* 0x3612717E: mov dword ptr [edi], eax */ 14699 MEM32(edi + 0x4) = ecx; /* 0x36127180: mov dword ptr [edi + 4], ecx */ 14700 ecx = ebp + (-0x30C); /* 0x36127183: lea ecx, [ebp - 0x30c] */ 14701 MEM32(edi + 0x8) = edx; /* 0x36127189: mov dword ptr [edi + 8], edx */ 14702 RECOMP_ICALL(MEM32(0x36170174)); /* 0x3612718C: call dword ptr [0x36170174] */ 14703 RECOMP_FLAGS_IN(); 14704 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36127192: fld dword ptr [ebp - 4] */ 14705 edx = MEM32(eax); /* 0x36127195: mov edx, dword ptr [eax] */ 14706 ecx = MEM32(ebp + (-0x8)); /* 0x36127197: mov ecx, dword ptr [ebp - 8] */ 14707 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFA00u); 14708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14709 ecx = ecx + 0xFFFFFA00u; /* 0x3612719A: add ecx, 0xfffffa00 */ 14710 _flag_k = FK_ADD; 14711 MEM32(ecx) = edx; /* 0x361271A0: mov dword ptr [ecx], edx */ 14712 edx = MEM32(eax + 0x4); /* 0x361271A2: mov edx, dword ptr [eax + 4] */ 14713 MEM32(ecx + 0x4) = edx; /* 0x361271A5: mov dword ptr [ecx + 4], edx */ 14714 eax = MEM32(eax + 0x8); /* 0x361271A8: mov eax, dword ptr [eax + 8] */ 14715 MEM32(ecx + 0x8) = eax; /* 0x361271AB: mov dword ptr [ecx + 8], eax */ 14716 _st[0] *= (double)*(float*)ADDR(esi + 0x16C0); /* 0x361271AE: fmul dword ptr [esi + 0x16c0] */ 14717 ecx = MEM32(ebp + (-0x10)); /* 0x361271B4: mov ecx, dword ptr [ebp - 0x10] */ 14718 eax = MEM32(ebp + (-0x1C)); /* 0x361271B7: mov eax, dword ptr [ebp - 0x1c] */ 14719 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x361271BA: fadd dword ptr [ebp - 0x18] */ 14720 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361271BD: fstp dword ptr [ecx] */ 14721 ecx = MEM32(ebp + (-0xC)); /* 0x361271BF: mov ecx, dword ptr [ebp - 0xc] */ 14722 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 14723 ecx = ecx + 1; /* 0x361271C2: inc ecx */ 14724 _flag_k = FK_INC; 14725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14726 eax = eax - 1; /* 0x361271C3: dec eax */ 14727 _flag_k = FK_DEC; 14728 MEM32(ebp + (-0xC)) = ecx; /* 0x361271C4: mov dword ptr [ebp - 0xc], ecx */ 14729 MEM32(ebp + (-0x1C)) = eax; /* 0x361271C7: mov dword ptr [ebp - 0x1c], eax */ 14730 goto L_361271DE; /* 0x361271CA: jmp 0x361271de */ 14731 L_361271CC: 14732 edx = MEM32(esi + 0x38); /* 0x361271CC: mov edx, dword ptr [esi + 0x38] */ 14733 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x361271CF: mov byte ptr [edx + ebx + 0x1c], 0 */ 14734 goto L_361271DE; /* 0x361271D4: jmp 0x361271de */ 14735 L_361271D6: 14736 eax = MEM32(esi + 0x38); /* 0x361271D6: mov eax, dword ptr [esi + 0x38] */ 14737 MEM8(eax + ebx + 0x1C) = (uint8_t)(0); /* 0x361271D9: mov byte ptr [eax + ebx + 0x1c], 0 */ 14738 L_361271DE: 14739 eax = MEM32(ebp + (-0x2C)); /* 0x361271DE: mov eax, dword ptr [ebp - 0x2c] */ 14740 edi = MEM32(ebp + (-0x8)); /* 0x361271E1: mov edi, dword ptr [ebp - 8] */ 14741 edx = MEM32(ebp + (-0x10)); /* 0x361271E4: mov edx, dword ptr [ebp - 0x10] */ 14742 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14743 eax = eax + 1; /* 0x361271E7: inc eax */ 14744 _flag_k = FK_INC; 14745 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 14746 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14747 edi = edi + 0xCu; /* 0x361271E8: add edi, 0xc */ 14748 _flag_k = FK_ADD; 14749 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 14750 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14751 edx = edx + 4; /* 0x361271EB: add edx, 4 */ 14752 _flag_k = FK_ADD; 14753 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 14754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14755 ebx = ebx + 0x20u; /* 0x361271EE: add ebx, 0x20 */ 14756 _flag_k = FK_ADD; 14757 /* cmp ebx, 0x1000u */ /* 0x361271F1: cmp ebx, 0x1000 */ 14758 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 14759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14760 _flag_k = FK_CMP; 14761 MEM32(ebp + (-0x2C)) = eax; /* 0x361271F7: mov dword ptr [ebp - 0x2c], eax */ 14762 MEM32(ebp + (-0x8)) = edi; /* 0x361271FA: mov dword ptr [ebp - 8], edi */ 14763 MEM32(ebp + (-0x10)) = edx; /* 0x361271FD: mov dword ptr [ebp - 0x10], edx */ 14764 RECOMP_BACKEDGE(); 14765 if (CMP_L(_flag_a, _flag_b)) goto L_36127016; /* 0x36127200: jl 0x36127016 */ 14766 L_36127206: 14767 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36127206: mov al, byte ptr [esi + 0x163c] */ 14768 /* test LO8(eax), LO8(eax) */ /* 0x3612720C: test al, al */ 14769 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14770 _cf = 0; 14771 _flag_k = FK_NARROW(FK_TEST, 24); 14772 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612720E: je 0x361275ac */ 14773 L_36127214: 14774 eax = MEM32(ebp + (-0xC)); /* 0x36127214: mov eax, dword ptr [ebp - 0xc] */ 14775 /* test eax, eax */ /* 0x36127217: test eax, eax */ 14776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14777 _cf = 0; 14778 _flag_k = FK_TEST; 14779 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x36127219: jne 0x361275ac */ 14780 L_3612721F: 14781 goto L_361275A8; /* 0x3612721F: jmp 0x361275a8 */ 14782 L_361275A8: 14783 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 14784 L_361275AC: 14785 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 14786 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 14787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14788 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 14789 _flag_k = FK_ADD; 14790 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 14791 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14792 _cf = 0; 14793 _flag_k = FK_TEST; 14794 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 14795 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 14796 L_361275B7: 14797 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 14798 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 14799 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 14800 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 14801 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 14802 RECOMP_FLAGS_IN(); 14803 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 14804 PUSH32(esp, eax); /* 0x361275CD: push eax */ 14805 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 14806 RECOMP_FLAGS_IN(); 14807 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 14808 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 14809 RECOMP_FLAGS_IN(); 14810 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 14811 PUSH32(esp, eax); /* 0x361275E2: push eax */ 14812 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 14813 RECOMP_FLAGS_IN(); 14814 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 14815 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 14816 RECOMP_FLAGS_IN(); 14817 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 14818 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14819 _cf = (LO8(eax)) != 0; 14820 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 14821 _flag_k = FK_NARROW(FK_CMP, 24); 14822 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 14823 eax = _sc ? 0xFFFFFFFFu : 0; 14824 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 14825 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 14826 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14827 eax = eax + 1; /* 0x361275F6: inc eax */ 14828 _flag_k = FK_INC; 14829 PUSH32(esp, eax); /* 0x361275F7: push eax */ 14830 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 14831 RECOMP_FLAGS_IN(); 14832 L_361275FE: 14833 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 14834 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 14835 esp = ebp; /* 0x36127600: mov esp, ebp */ 14836 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 14837 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 14838 RECOMP_REGS_OUT(); 14839 } 14840 14841 void sub_3612724E(void) { 14842 int _fpu_cmp = 0; 14843 uint32_t _cf = 0; 14844 int _df = 1; 14845 uint32_t _flag_k = FK_NONE; 14846 uint32_t _flag_a = 0, _flag_b = 0; 14847 uint32_t _itail_tgt = 0; 14848 RECOMP_REGS_LOCALS 14849 RECOMP_ENTER(0x3612724Eu); 14850 14851 L_3612724E: 14852 eax = MEM32(ebp + (-0x8)); /* 0x3612724E: mov eax, dword ptr [ebp - 8] */ 14853 fp_push(*(float*)&MEM32(eax)); /* 0x36127251: fld dword ptr [eax] */ 14854 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x36127253: fcomp dword ptr [ebp - 0x18] */ 14855 fp_pop(); 14856 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36127256: fnstsw ax */ 14857 /* test HI8(eax), 0x41u */ /* 0x36127258: test ah, 0x41 */ 14858 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 14859 _cf = 0; 14860 _flag_k = FK_NARROW(FK_TEST, 24); 14861 if (TEST_NZ(_flag_a, _flag_b)) goto L_36127305; /* 0x3612725B: jne 0x36127305 */ 14862 L_36127261: 14863 eax = MEM32(esi + 0x38); /* 0x36127261: mov eax, dword ptr [esi + 0x38] */ 14864 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36127264: fld dword ptr [ebp - 0x18] */ 14865 ecx = ebx; /* 0x36127267: mov ecx, ebx */ 14866 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 14867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14868 ecx = ecx + eax; /* 0x36127269: add ecx, eax */ 14869 _flag_k = FK_ADD; 14870 edx = edi; /* 0x3612726B: mov edx, edi */ 14871 eax = MEM32(edx); /* 0x3612726D: mov eax, dword ptr [edx] */ 14872 MEM32(ecx) = eax; /* 0x3612726F: mov dword ptr [ecx], eax */ 14873 eax = MEM32(edx + 0x4); /* 0x36127271: mov eax, dword ptr [edx + 4] */ 14874 MEM32(ecx + 0x4) = eax; /* 0x36127274: mov dword ptr [ecx + 4], eax */ 14875 edx = MEM32(edx + 0x8); /* 0x36127277: mov edx, dword ptr [edx + 8] */ 14876 eax = MEM32(ebp + (-0x8)); /* 0x3612727A: mov eax, dword ptr [ebp - 8] */ 14877 MEM32(ecx + 0x8) = edx; /* 0x3612727D: mov dword ptr [ecx + 8], edx */ 14878 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36127280: fadd dword ptr [esi + 0x16c0] */ 14879 ecx = MEM32(esi + 0x38); /* 0x36127286: mov ecx, dword ptr [esi + 0x38] */ 14880 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36127289: fsub dword ptr [eax] */ 14881 eax = MEM32(ebp + (-0x10)); /* 0x3612728B: mov eax, dword ptr [ebp - 0x10] */ 14882 PUSH32(esp, eax); /* 0x3612728E: push eax */ 14883 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x3612728F: fdiv dword ptr [esi + 0x16c0] */ 14884 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36127295: fst dword ptr [ebp - 4] */ 14885 _st[0] += _st[0]; /* 0x36127298: fadd st(0), st(0) */ 14886 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3612729A: fsubr dword ptr [0x36170380] */ 14887 fp_push(_st[0]); /* 0x361272A0: fld st(0) */ 14888 { double _v = fp_pop(); _st[0] *= _v; } /* 0x361272A2: fmulp st(1) */ 14889 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x361272A4: fsubr dword ptr [0x36170380] */ 14890 fp_push(_st[0]); /* 0x361272AA: fld st(0) */ 14891 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x361272AC: fmul dword ptr [esi + 0x16c8] */ 14892 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0xC) = _v; } /* 0x361272B2: fstp dword ptr [ebx + ecx + 0xc] */ 14893 edx = MEM32(esi + 0x38); /* 0x361272B6: mov edx, dword ptr [esi + 0x38] */ 14894 ecx = esi + 0x168C; /* 0x361272B9: lea ecx, [esi + 0x168c] */ 14895 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x361272BF: fmul dword ptr [esi + 0x16c8] */ 14896 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + edx + 0x10) = _v; } /* 0x361272C5: fstp dword ptr [ebx + edx + 0x10] */ 14897 RECOMP_ICALL(0x36137D80u); /* 0x361272C9: call 0x36137d80 */ /* not lifted */ 14898 RECOMP_FLAGS_IN(); 14899 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361272CE: fld dword ptr [ebp - 4] */ 14900 ecx = MEM32(esi + 0x38); /* 0x361272D1: mov ecx, dword ptr [esi + 0x38] */ 14901 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x361272D4: fmul dword ptr [0x36177750] */ 14902 MEM32(ebx + ecx + 0x14) = eax; /* 0x361272DA: mov dword ptr [ebx + ecx + 0x14], eax */ 14903 RECOMP_ICALL(0x3615FD8Cu); /* 0x361272DE: call 0x3615fd8c */ /* not lifted */ 14904 RECOMP_FLAGS_IN(); 14905 edx = 0xFu; /* 0x361272E3: mov edx, 0xf */ 14906 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14908 edx = edx - eax; /* 0x361272E8: sub edx, eax */ 14909 _flag_k = FK_CMP; 14910 eax = MEM32(esi + 0x38); /* 0x361272EA: mov eax, dword ptr [esi + 0x38] */ 14911 MEM32(ebx + eax + 0x18) = edx; /* 0x361272ED: mov dword ptr [ebx + eax + 0x18], edx */ 14912 eax = MEM32(ebp + (-0xC)); /* 0x361272F1: mov eax, dword ptr [ebp - 0xc] */ 14913 ecx = MEM32(esi + 0x38); /* 0x361272F4: mov ecx, dword ptr [esi + 0x38] */ 14914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14915 eax = eax + 1; /* 0x361272F7: inc eax */ 14916 _flag_k = FK_INC; 14917 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x361272F8: mov byte ptr [ebx + ecx + 0x1c], 1 */ 14918 MEM32(ebp + (-0xC)) = eax; /* 0x361272FD: mov dword ptr [ebp - 0xc], eax */ 14919 goto L_3612757C; /* 0x36127300: jmp 0x3612757c */ 14920 L_36127305: 14921 eax = MEM32(ebp + (-0x1C)); /* 0x36127305: mov eax, dword ptr [ebp - 0x1c] */ 14922 /* test eax, eax */ /* 0x36127308: test eax, eax */ 14923 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14924 _cf = 0; 14925 _flag_k = FK_TEST; 14926 if (TEST_Z(_flag_a, _flag_b)) goto L_36127574; /* 0x3612730A: je 0x36127574 */ 14927 L_36127310: 14928 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36127310: mov al, byte ptr [esi + 0x163c] */ 14929 /* test LO8(eax), LO8(eax) */ /* 0x36127316: test al, al */ 14930 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14931 _cf = 0; 14932 _flag_k = FK_NARROW(FK_TEST, 24); 14933 if (TEST_NZ(_flag_a, _flag_b)) goto L_36127574; /* 0x36127318: jne 0x36127574 */ 14934 L_3612731E: 14935 RECOMP_ICALL(0x360F7B00u); /* 0x3612731E: call 0x360f7b00 */ /* not lifted */ 14936 RECOMP_FLAGS_IN(); 14937 edx = MEM32(esi + 0x28); /* 0x36127323: mov edx, dword ptr [esi + 0x28] */ 14938 PUSH32(esp, edx); /* 0x36127326: push edx */ 14939 ecx = eax; /* 0x36127327: mov ecx, eax */ 14940 RECOMP_ICALL(0x360FBF90u); /* 0x36127329: call 0x360fbf90 */ /* not lifted */ 14941 RECOMP_FLAGS_IN(); 14942 /* test eax, eax */ /* 0x3612732E: test eax, eax */ 14943 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14944 _cf = 0; 14945 _flag_k = FK_TEST; 14946 MEM32(ebp + (-0x4)) = eax; /* 0x36127330: mov dword ptr [ebp - 4], eax */ 14947 if (TEST_Z(_flag_a, _flag_b)) goto L_3612756A; /* 0x36127333: je 0x3612756a */ 14948 L_36127339: 14949 ecx = MEM32(ebp + (-0x4)); /* 0x36127339: mov ecx, dword ptr [ebp - 4] */ 14950 eax = ebp + (-0x324); /* 0x3612733C: lea eax, [ebp - 0x324] */ 14951 PUSH32(esp, eax); /* 0x36127342: push eax */ 14952 RECOMP_ICALL(0x36131BB0u); /* 0x36127343: call 0x36131bb0 */ /* not lifted */ 14953 RECOMP_FLAGS_IN(); 14954 ecx = MEM32(eax); /* 0x36127348: mov ecx, dword ptr [eax] */ 14955 MEM32(ebp + (-0x10C)) = ecx; /* 0x3612734A: mov dword ptr [ebp - 0x10c], ecx */ 14956 edx = MEM32(eax + 0x4); /* 0x36127350: mov edx, dword ptr [eax + 4] */ 14957 MEM32(ebp + (-0x108)) = edx; /* 0x36127353: mov dword ptr [ebp - 0x108], edx */ 14958 eax = MEM32(eax + 0x8); /* 0x36127359: mov eax, dword ptr [eax + 8] */ 14959 ecx = ebp + (-0x10C); /* 0x3612735C: lea ecx, [ebp - 0x10c] */ 14960 PUSH32(esp, ecx); /* 0x36127362: push ecx */ 14961 ecx = MEM32(ebp + (-0x4)); /* 0x36127363: mov ecx, dword ptr [ebp - 4] */ 14962 edx = ebp + (-0x33C); /* 0x36127366: lea edx, [ebp - 0x33c] */ 14963 MEM32(ebp + (-0x104)) = eax; /* 0x3612736C: mov dword ptr [ebp - 0x104], eax */ 14964 PUSH32(esp, edx); /* 0x36127372: push edx */ 14965 eax = ebp + (-0x354); /* 0x36127373: lea eax, [ebp - 0x354] */ 14966 PUSH32(esp, eax); /* 0x36127379: push eax */ 14967 RECOMP_ICALL(0x36131C00u); /* 0x3612737A: call 0x36131c00 */ /* not lifted */ 14968 RECOMP_FLAGS_IN(); 14969 ecx = eax; /* 0x3612737F: mov ecx, eax */ 14970 RECOMP_ICALL(MEM32(0x3617020C)); /* 0x36127381: call dword ptr [0x3617020c] */ 14971 RECOMP_FLAGS_IN(); 14972 ecx = MEM32(eax); /* 0x36127387: mov ecx, dword ptr [eax] */ 14973 MEM32(ebp + (-0x90)) = ecx; /* 0x36127389: mov dword ptr [ebp - 0x90], ecx */ 14974 edx = MEM32(eax + 0x4); /* 0x3612738F: mov edx, dword ptr [eax + 4] */ 14975 MEM32(ebp + (-0x8C)) = edx; /* 0x36127392: mov dword ptr [ebp - 0x8c], edx */ 14976 eax = MEM32(eax + 0x8); /* 0x36127398: mov eax, dword ptr [eax + 8] */ 14977 ecx = ebp + (-0xF4); /* 0x3612739B: lea ecx, [ebp - 0xf4] */ 14978 MEM32(ebp + (-0x88)) = eax; /* 0x361273A1: mov dword ptr [ebp - 0x88], eax */ 14979 RECOMP_ICALL(MEM32(0x36170174)); /* 0x361273A7: call dword ptr [0x36170174] */ 14980 RECOMP_FLAGS_IN(); 14981 ecx = ebp + (-0xF4); /* 0x361273AD: lea ecx, [ebp - 0xf4] */ 14982 PUSH32(esp, ecx); /* 0x361273B3: push ecx */ 14983 edx = ebp + (-0x90); /* 0x361273B4: lea edx, [ebp - 0x90] */ 14984 PUSH32(esp, edx); /* 0x361273BA: push edx */ 14985 RECOMP_ICALL(0x360FCE60u); /* 0x361273BB: call 0x360fce60 */ /* not lifted */ 14986 RECOMP_FLAGS_IN(); 14987 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14988 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14989 esp = esp + 8; /* 0x361273C0: add esp, 8 */ 14990 _flag_k = FK_ADD; 14991 eax = ebp + (-0x90); /* 0x361273C3: lea eax, [ebp - 0x90] */ 14992 PUSH32(esp, eax); /* 0x361273C9: push eax */ 14993 ecx = ebp + (-0x36C); /* 0x361273CA: lea ecx, [ebp - 0x36c] */ 14994 PUSH32(esp, ecx); /* 0x361273D0: push ecx */ 14995 ecx = ebp + (-0xF4); /* 0x361273D1: lea ecx, [ebp - 0xf4] */ 14996 RECOMP_ICALL(MEM32(0x36170180)); /* 0x361273D7: call dword ptr [0x36170180] */ 14997 RECOMP_FLAGS_IN(); 14998 edx = MEM32(eax); /* 0x361273DD: mov edx, dword ptr [eax] */ 14999 MEM32(ebp + (-0x100)) = edx; /* 0x361273DF: mov dword ptr [ebp - 0x100], edx */ 15000 ecx = MEM32(eax + 0x4); /* 0x361273E5: mov ecx, dword ptr [eax + 4] */ 15001 MEM32(ebp + (-0xFC)) = ecx; /* 0x361273E8: mov dword ptr [ebp - 0xfc], ecx */ 15002 edx = MEM32(eax + 0x8); /* 0x361273EE: mov edx, dword ptr [eax + 8] */ 15003 PUSH32(esp, 0x3F800000u); /* 0x361273F1: push 0x3f800000 */ 15004 ecx = ebp + (-0x100); /* 0x361273F6: lea ecx, [ebp - 0x100] */ 15005 MEM32(ebp + (-0xF8)) = edx; /* 0x361273FC: mov dword ptr [ebp - 0xf8], edx */ 15006 RECOMP_ICALL(MEM32(0x36170200)); /* 0x36127402: call dword ptr [0x36170200] */ 15007 RECOMP_FLAGS_IN(); 15008 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36127408: call dword ptr [0x3616f254] */ 15009 RECOMP_FLAGS_IN(); 15010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 15011 eax = eax & 0x7FFFu; /* 0x3612740E: and eax, 0x7fff */ 15012 _cf = 0; 15013 _flag_k = FK_TEST; 15014 MEM32(ebp + (-0x84)) = eax; /* 0x36127413: mov dword ptr [ebp - 0x84], eax */ 15015 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x36127419: fild dword ptr [ebp - 0x84] */ 15016 ecx = ebp + (-0x90); /* 0x3612741F: lea ecx, [ebp - 0x90] */ 15017 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36127425: fmul dword ptr [0x36175f2c] */ 15018 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3612742B: fst dword ptr [ebp - 4] */ 15019 _st[0] += _st[0]; /* 0x3612742E: fadd st(0), st(0) */ 15020 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36127430: fsubr dword ptr [0x36170380] */ 15021 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36127436: fstp dword ptr [ebp - 0x14] */ 15022 RECOMP_ICALL(MEM32(0x361701E8)); /* 0x36127439: call dword ptr [0x361701e8] */ 15023 RECOMP_FLAGS_IN(); 15024 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3612743F: fmul dword ptr [ebp - 4] */ 15025 eax = ebp + (-0x100); /* 0x36127442: lea eax, [ebp - 0x100] */ 15026 PUSH32(esp, eax); /* 0x36127448: push eax */ 15027 PUSH32(esp, ecx); /* 0x36127449: push ecx */ 15028 _st[0] += _st[0]; /* 0x3612744A: fadd st(0), st(0) */ 15029 ecx = ebp + (-0x384); /* 0x3612744C: lea ecx, [ebp - 0x384] */ 15030 _st[0] += (double)*(float*)ADDR(esi + 0x16CC); /* 0x36127452: fadd dword ptr [esi + 0x16cc] */ 15031 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36127458: fld dword ptr [ebp - 0x10] */ 15032 _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x3612745B: fmul dword ptr [0x36170eb8] */ 15033 { double _v = fp_pop(); _st[0] += _v; } /* 0x36127461: faddp st(1) */ 15034 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36127463: fstp dword ptr [ebp - 0x2c] */ 15035 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36127466: fld dword ptr [ebp - 0x2c] */ 15036 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36127469: fcos */ 15037 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3612746B: fstp dword ptr [esp] */ 15038 PUSH32(esp, ecx); /* 0x3612746E: push ecx */ 15039 RECOMP_ICALL(0x3609EB50u); /* 0x3612746F: call 0x3609eb50 */ /* not lifted */ 15040 RECOMP_FLAGS_IN(); 15041 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15042 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15043 esp = esp + 0xCu; /* 0x36127474: add esp, 0xc */ 15044 _flag_k = FK_ADD; 15045 PUSH32(esp, eax); /* 0x36127477: push eax */ 15046 edx = ebp + (-0x39C); /* 0x36127478: lea edx, [ebp - 0x39c] */ 15047 PUSH32(esp, edx); /* 0x3612747E: push edx */ 15048 eax = ebp + (-0xF4); /* 0x3612747F: lea eax, [ebp - 0xf4] */ 15049 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36127485: fld dword ptr [ebp - 0x2c] */ 15050 PUSH32(esp, eax); /* 0x36127488: push eax */ 15051 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36127489: fsin */ 15052 PUSH32(esp, ecx); /* 0x3612748B: push ecx */ 15053 ecx = ebp + (-0x3B4); /* 0x3612748C: lea ecx, [ebp - 0x3b4] */ 15054 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36127492: fstp dword ptr [esp] */ 15055 PUSH32(esp, ecx); /* 0x36127495: push ecx */ 15056 RECOMP_ICALL(0x3609EB50u); /* 0x36127496: call 0x3609eb50 */ /* not lifted */ 15057 RECOMP_FLAGS_IN(); 15058 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15059 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15060 esp = esp + 0xCu; /* 0x3612749B: add esp, 0xc */ 15061 _flag_k = FK_ADD; 15062 ecx = eax; /* 0x3612749E: mov ecx, eax */ 15063 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361274A0: call dword ptr [0x3617016c] */ 15064 RECOMP_FLAGS_IN(); 15065 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361274A6: fld dword ptr [ebp - 0x14] */ 15066 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361274A9: fmul dword ptr [ebp - 0x14] */ 15067 PUSH32(esp, eax); /* 0x361274AC: push eax */ 15068 PUSH32(esp, ecx); /* 0x361274AD: push ecx */ 15069 edx = ebp + (-0x3CC); /* 0x361274AE: lea edx, [ebp - 0x3cc] */ 15070 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x361274B4: fsubr dword ptr [0x36170380] */ 15071 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x361274BA: fmul dword ptr [0x36170464] */ 15072 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361274C0: fstp dword ptr [esp] */ 15073 PUSH32(esp, edx); /* 0x361274C3: push edx */ 15074 RECOMP_ICALL(0x3609EB50u); /* 0x361274C4: call 0x3609eb50 */ /* not lifted */ 15075 RECOMP_FLAGS_IN(); 15076 edx = MEM32(ebp + (-0x4)); /* 0x361274C9: mov edx, dword ptr [ebp - 4] */ 15077 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15078 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15079 esp = esp + 0xCu; /* 0x361274CC: add esp, 0xc */ 15080 _flag_k = FK_ADD; 15081 PUSH32(esp, eax); /* 0x361274CF: push eax */ 15082 eax = ebp + (-0x3E4); /* 0x361274D0: lea eax, [ebp - 0x3e4] */ 15083 PUSH32(esp, eax); /* 0x361274D6: push eax */ 15084 ecx = ebp + (-0x90); /* 0x361274D7: lea ecx, [ebp - 0x90] */ 15085 PUSH32(esp, ecx); /* 0x361274DD: push ecx */ 15086 PUSH32(esp, edx); /* 0x361274DE: push edx */ 15087 eax = ebp + (-0x3FC); /* 0x361274DF: lea eax, [ebp - 0x3fc] */ 15088 PUSH32(esp, eax); /* 0x361274E5: push eax */ 15089 RECOMP_ICALL(0x3609EB50u); /* 0x361274E6: call 0x3609eb50 */ /* not lifted */ 15090 RECOMP_FLAGS_IN(); 15091 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15092 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15093 esp = esp + 0xCu; /* 0x361274EB: add esp, 0xc */ 15094 _flag_k = FK_ADD; 15095 PUSH32(esp, eax); /* 0x361274EE: push eax */ 15096 ecx = ebp + (-0x414); /* 0x361274EF: lea ecx, [ebp - 0x414] */ 15097 PUSH32(esp, ecx); /* 0x361274F5: push ecx */ 15098 ecx = ebp + (-0x10C); /* 0x361274F6: lea ecx, [ebp - 0x10c] */ 15099 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361274FC: call dword ptr [0x3617016c] */ 15100 RECOMP_FLAGS_IN(); 15101 ecx = eax; /* 0x36127502: mov ecx, eax */ 15102 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x36127504: call dword ptr [0x3617016c] */ 15103 RECOMP_FLAGS_IN(); 15104 edx = eax; /* 0x3612750A: mov edx, eax */ 15105 eax = MEM32(edx); /* 0x3612750C: mov eax, dword ptr [edx] */ 15106 ecx = MEM32(edx + 0x4); /* 0x3612750E: mov ecx, dword ptr [edx + 4] */ 15107 edx = MEM32(edx + 0x8); /* 0x36127511: mov edx, dword ptr [edx + 8] */ 15108 MEM32(ebp + (-0x120)) = edx; /* 0x36127514: mov dword ptr [ebp - 0x120], edx */ 15109 edx = edi; /* 0x3612751A: mov edx, edi */ 15110 MEM32(edx) = eax; /* 0x3612751C: mov dword ptr [edx], eax */ 15111 MEM32(edx + 0x4) = ecx; /* 0x3612751E: mov dword ptr [edx + 4], ecx */ 15112 eax = MEM32(ebp + (-0x120)); /* 0x36127521: mov eax, dword ptr [ebp - 0x120] */ 15113 ecx = ebp + (-0x140); /* 0x36127527: lea ecx, [ebp - 0x140] */ 15114 MEM32(edx + 0x8) = eax; /* 0x3612752D: mov dword ptr [edx + 8], eax */ 15115 RECOMP_ICALL(MEM32(0x36170174)); /* 0x36127530: call dword ptr [0x36170174] */ 15116 RECOMP_FLAGS_IN(); 15117 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36127536: fld dword ptr [ebp - 0x18] */ 15118 edx = MEM32(eax); /* 0x36127539: mov edx, dword ptr [eax] */ 15119 ecx = edi + (-0x600); /* 0x3612753B: lea ecx, [edi - 0x600] */ 15120 MEM32(ecx) = edx; /* 0x36127541: mov dword ptr [ecx], edx */ 15121 edx = MEM32(eax + 0x4); /* 0x36127543: mov edx, dword ptr [eax + 4] */ 15122 MEM32(ecx + 0x4) = edx; /* 0x36127546: mov dword ptr [ecx + 4], edx */ 15123 eax = MEM32(eax + 0x8); /* 0x36127549: mov eax, dword ptr [eax + 8] */ 15124 MEM32(ecx + 0x8) = eax; /* 0x3612754C: mov dword ptr [ecx + 8], eax */ 15125 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x3612754F: fadd dword ptr [esi + 0x16c0] */ 15126 ecx = MEM32(ebp + (-0x8)); /* 0x36127555: mov ecx, dword ptr [ebp - 8] */ 15127 eax = MEM32(ebp + (-0x1C)); /* 0x36127558: mov eax, dword ptr [ebp - 0x1c] */ 15128 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x3612755B: fstp dword ptr [ecx] */ 15129 ecx = MEM32(ebp + (-0xC)); /* 0x3612755D: mov ecx, dword ptr [ebp - 0xc] */ 15130 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15131 ecx = ecx + 1; /* 0x36127560: inc ecx */ 15132 _flag_k = FK_INC; 15133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15134 eax = eax - 1; /* 0x36127561: dec eax */ 15135 _flag_k = FK_DEC; 15136 MEM32(ebp + (-0xC)) = ecx; /* 0x36127562: mov dword ptr [ebp - 0xc], ecx */ 15137 MEM32(ebp + (-0x1C)) = eax; /* 0x36127565: mov dword ptr [ebp - 0x1c], eax */ 15138 goto L_3612757C; /* 0x36127568: jmp 0x3612757c */ 15139 L_3612756A: 15140 edx = MEM32(esi + 0x38); /* 0x3612756A: mov edx, dword ptr [esi + 0x38] */ 15141 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612756D: mov byte ptr [edx + ebx + 0x1c], 0 */ 15142 goto L_3612757C; /* 0x36127572: jmp 0x3612757c */ 15143 L_36127574: 15144 eax = MEM32(esi + 0x38); /* 0x36127574: mov eax, dword ptr [esi + 0x38] */ 15145 MEM8(eax + ebx + 0x1C) = (uint8_t)(0); /* 0x36127577: mov byte ptr [eax + ebx + 0x1c], 0 */ 15146 L_3612757C: 15147 edx = MEM32(ebp + (-0x8)); /* 0x3612757C: mov edx, dword ptr [ebp - 8] */ 15148 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 15149 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15150 edx = edx + 4; /* 0x3612757F: add edx, 4 */ 15151 _flag_k = FK_ADD; 15152 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 15153 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15154 ebx = ebx + 0x20u; /* 0x36127582: add ebx, 0x20 */ 15155 _flag_k = FK_ADD; 15156 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 15157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15158 edi = edi + 0xCu; /* 0x36127585: add edi, 0xc */ 15159 _flag_k = FK_ADD; 15160 /* cmp ebx, 0x1000u */ /* 0x36127588: cmp ebx, 0x1000 */ 15161 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 15162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15163 _flag_k = FK_CMP; 15164 MEM32(ebp + (-0x8)) = edx; /* 0x3612758E: mov dword ptr [ebp - 8], edx */ 15165 RECOMP_BACKEDGE(); 15166 if (CMP_L(_flag_a, _flag_b)) goto L_3612724E; /* 0x36127591: jl 0x3612724e */ 15167 L_36127597: 15168 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36127597: mov al, byte ptr [esi + 0x163c] */ 15169 /* test LO8(eax), LO8(eax) */ /* 0x3612759D: test al, al */ 15170 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15171 _cf = 0; 15172 _flag_k = FK_NARROW(FK_TEST, 24); 15173 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612759F: je 0x361275ac */ 15174 L_361275A1: 15175 eax = MEM32(ebp + (-0xC)); /* 0x361275A1: mov eax, dword ptr [ebp - 0xc] */ 15176 /* test eax, eax */ /* 0x361275A4: test eax, eax */ 15177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15178 _cf = 0; 15179 _flag_k = FK_TEST; 15180 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x361275A6: jne 0x361275ac */ 15181 L_361275A8: 15182 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 15183 L_361275AC: 15184 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 15185 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 15186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15187 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 15188 _flag_k = FK_ADD; 15189 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 15190 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15191 _cf = 0; 15192 _flag_k = FK_TEST; 15193 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 15194 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 15195 L_361275B7: 15196 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 15197 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 15198 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 15199 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 15200 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 15201 RECOMP_FLAGS_IN(); 15202 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 15203 PUSH32(esp, eax); /* 0x361275CD: push eax */ 15204 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 15205 RECOMP_FLAGS_IN(); 15206 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 15207 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 15208 RECOMP_FLAGS_IN(); 15209 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 15210 PUSH32(esp, eax); /* 0x361275E2: push eax */ 15211 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 15212 RECOMP_FLAGS_IN(); 15213 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 15214 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 15215 RECOMP_FLAGS_IN(); 15216 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 15217 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15218 _cf = (LO8(eax)) != 0; 15219 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 15220 _flag_k = FK_NARROW(FK_CMP, 24); 15221 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 15222 eax = _sc ? 0xFFFFFFFFu : 0; 15223 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 15224 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 15225 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15226 eax = eax + 1; /* 0x361275F6: inc eax */ 15227 _flag_k = FK_INC; 15228 PUSH32(esp, eax); /* 0x361275F7: push eax */ 15229 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 15230 RECOMP_FLAGS_IN(); 15231 L_361275FE: 15232 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 15233 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 15234 esp = ebp; /* 0x36127600: mov esp, ebp */ 15235 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 15236 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 15237 RECOMP_REGS_OUT(); 15238 } 15239 15240 void sub_3612757C(void) { 15241 int _fpu_cmp = 0; 15242 uint32_t _cf = 0; 15243 int _df = 1; 15244 uint32_t _flag_k = FK_NONE; 15245 uint32_t _flag_a = 0, _flag_b = 0; 15246 uint32_t _itail_tgt = 0; 15247 RECOMP_REGS_LOCALS 15248 RECOMP_ENTER(0x3612757Cu); 15249 15250 goto L_3612757C; 15251 L_3612724E: 15252 eax = MEM32(ebp + (-0x8)); /* 0x3612724E: mov eax, dword ptr [ebp - 8] */ 15253 fp_push(*(float*)&MEM32(eax)); /* 0x36127251: fld dword ptr [eax] */ 15254 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x36127253: fcomp dword ptr [ebp - 0x18] */ 15255 fp_pop(); 15256 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36127256: fnstsw ax */ 15257 /* test HI8(eax), 0x41u */ /* 0x36127258: test ah, 0x41 */ 15258 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 15259 _cf = 0; 15260 _flag_k = FK_NARROW(FK_TEST, 24); 15261 if (TEST_NZ(_flag_a, _flag_b)) goto L_36127305; /* 0x3612725B: jne 0x36127305 */ 15262 L_36127261: 15263 eax = MEM32(esi + 0x38); /* 0x36127261: mov eax, dword ptr [esi + 0x38] */ 15264 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36127264: fld dword ptr [ebp - 0x18] */ 15265 ecx = ebx; /* 0x36127267: mov ecx, ebx */ 15266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 15267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15268 ecx = ecx + eax; /* 0x36127269: add ecx, eax */ 15269 _flag_k = FK_ADD; 15270 edx = edi; /* 0x3612726B: mov edx, edi */ 15271 eax = MEM32(edx); /* 0x3612726D: mov eax, dword ptr [edx] */ 15272 MEM32(ecx) = eax; /* 0x3612726F: mov dword ptr [ecx], eax */ 15273 eax = MEM32(edx + 0x4); /* 0x36127271: mov eax, dword ptr [edx + 4] */ 15274 MEM32(ecx + 0x4) = eax; /* 0x36127274: mov dword ptr [ecx + 4], eax */ 15275 edx = MEM32(edx + 0x8); /* 0x36127277: mov edx, dword ptr [edx + 8] */ 15276 eax = MEM32(ebp + (-0x8)); /* 0x3612727A: mov eax, dword ptr [ebp - 8] */ 15277 MEM32(ecx + 0x8) = edx; /* 0x3612727D: mov dword ptr [ecx + 8], edx */ 15278 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x36127280: fadd dword ptr [esi + 0x16c0] */ 15279 ecx = MEM32(esi + 0x38); /* 0x36127286: mov ecx, dword ptr [esi + 0x38] */ 15280 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36127289: fsub dword ptr [eax] */ 15281 eax = MEM32(ebp + (-0x10)); /* 0x3612728B: mov eax, dword ptr [ebp - 0x10] */ 15282 PUSH32(esp, eax); /* 0x3612728E: push eax */ 15283 _st[0] /= (double)*(float*)ADDR(esi + 0x16C0); /* 0x3612728F: fdiv dword ptr [esi + 0x16c0] */ 15284 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36127295: fst dword ptr [ebp - 4] */ 15285 _st[0] += _st[0]; /* 0x36127298: fadd st(0), st(0) */ 15286 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3612729A: fsubr dword ptr [0x36170380] */ 15287 fp_push(_st[0]); /* 0x361272A0: fld st(0) */ 15288 { double _v = fp_pop(); _st[0] *= _v; } /* 0x361272A2: fmulp st(1) */ 15289 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x361272A4: fsubr dword ptr [0x36170380] */ 15290 fp_push(_st[0]); /* 0x361272AA: fld st(0) */ 15291 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x361272AC: fmul dword ptr [esi + 0x16c8] */ 15292 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + ecx + 0xC) = _v; } /* 0x361272B2: fstp dword ptr [ebx + ecx + 0xc] */ 15293 edx = MEM32(esi + 0x38); /* 0x361272B6: mov edx, dword ptr [esi + 0x38] */ 15294 ecx = esi + 0x168C; /* 0x361272B9: lea ecx, [esi + 0x168c] */ 15295 _st[0] *= (double)*(float*)ADDR(esi + 0x16C8); /* 0x361272BF: fmul dword ptr [esi + 0x16c8] */ 15296 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + edx + 0x10) = _v; } /* 0x361272C5: fstp dword ptr [ebx + edx + 0x10] */ 15297 RECOMP_ICALL(0x36137D80u); /* 0x361272C9: call 0x36137d80 */ /* not lifted */ 15298 RECOMP_FLAGS_IN(); 15299 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361272CE: fld dword ptr [ebp - 4] */ 15300 ecx = MEM32(esi + 0x38); /* 0x361272D1: mov ecx, dword ptr [esi + 0x38] */ 15301 _st[0] *= (double)*(float*)ADDR(0x36177750); /* 0x361272D4: fmul dword ptr [0x36177750] */ 15302 MEM32(ebx + ecx + 0x14) = eax; /* 0x361272DA: mov dword ptr [ebx + ecx + 0x14], eax */ 15303 RECOMP_ICALL(0x3615FD8Cu); /* 0x361272DE: call 0x3615fd8c */ /* not lifted */ 15304 RECOMP_FLAGS_IN(); 15305 edx = 0xFu; /* 0x361272E3: mov edx, 0xf */ 15306 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 15307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15308 edx = edx - eax; /* 0x361272E8: sub edx, eax */ 15309 _flag_k = FK_CMP; 15310 eax = MEM32(esi + 0x38); /* 0x361272EA: mov eax, dword ptr [esi + 0x38] */ 15311 MEM32(ebx + eax + 0x18) = edx; /* 0x361272ED: mov dword ptr [ebx + eax + 0x18], edx */ 15312 eax = MEM32(ebp + (-0xC)); /* 0x361272F1: mov eax, dword ptr [ebp - 0xc] */ 15313 ecx = MEM32(esi + 0x38); /* 0x361272F4: mov ecx, dword ptr [esi + 0x38] */ 15314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15315 eax = eax + 1; /* 0x361272F7: inc eax */ 15316 _flag_k = FK_INC; 15317 MEM8(ebx + ecx + 0x1C) = (uint8_t)(1); /* 0x361272F8: mov byte ptr [ebx + ecx + 0x1c], 1 */ 15318 MEM32(ebp + (-0xC)) = eax; /* 0x361272FD: mov dword ptr [ebp - 0xc], eax */ 15319 goto L_3612757C; /* 0x36127300: jmp 0x3612757c */ 15320 L_36127305: 15321 eax = MEM32(ebp + (-0x1C)); /* 0x36127305: mov eax, dword ptr [ebp - 0x1c] */ 15322 /* test eax, eax */ /* 0x36127308: test eax, eax */ 15323 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15324 _cf = 0; 15325 _flag_k = FK_TEST; 15326 if (TEST_Z(_flag_a, _flag_b)) goto L_36127574; /* 0x3612730A: je 0x36127574 */ 15327 L_36127310: 15328 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36127310: mov al, byte ptr [esi + 0x163c] */ 15329 /* test LO8(eax), LO8(eax) */ /* 0x36127316: test al, al */ 15330 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15331 _cf = 0; 15332 _flag_k = FK_NARROW(FK_TEST, 24); 15333 if (TEST_NZ(_flag_a, _flag_b)) goto L_36127574; /* 0x36127318: jne 0x36127574 */ 15334 L_3612731E: 15335 RECOMP_ICALL(0x360F7B00u); /* 0x3612731E: call 0x360f7b00 */ /* not lifted */ 15336 RECOMP_FLAGS_IN(); 15337 edx = MEM32(esi + 0x28); /* 0x36127323: mov edx, dword ptr [esi + 0x28] */ 15338 PUSH32(esp, edx); /* 0x36127326: push edx */ 15339 ecx = eax; /* 0x36127327: mov ecx, eax */ 15340 RECOMP_ICALL(0x360FBF90u); /* 0x36127329: call 0x360fbf90 */ /* not lifted */ 15341 RECOMP_FLAGS_IN(); 15342 /* test eax, eax */ /* 0x3612732E: test eax, eax */ 15343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15344 _cf = 0; 15345 _flag_k = FK_TEST; 15346 MEM32(ebp + (-0x4)) = eax; /* 0x36127330: mov dword ptr [ebp - 4], eax */ 15347 if (TEST_Z(_flag_a, _flag_b)) goto L_3612756A; /* 0x36127333: je 0x3612756a */ 15348 L_36127339: 15349 ecx = MEM32(ebp + (-0x4)); /* 0x36127339: mov ecx, dword ptr [ebp - 4] */ 15350 eax = ebp + (-0x324); /* 0x3612733C: lea eax, [ebp - 0x324] */ 15351 PUSH32(esp, eax); /* 0x36127342: push eax */ 15352 RECOMP_ICALL(0x36131BB0u); /* 0x36127343: call 0x36131bb0 */ /* not lifted */ 15353 RECOMP_FLAGS_IN(); 15354 ecx = MEM32(eax); /* 0x36127348: mov ecx, dword ptr [eax] */ 15355 MEM32(ebp + (-0x10C)) = ecx; /* 0x3612734A: mov dword ptr [ebp - 0x10c], ecx */ 15356 edx = MEM32(eax + 0x4); /* 0x36127350: mov edx, dword ptr [eax + 4] */ 15357 MEM32(ebp + (-0x108)) = edx; /* 0x36127353: mov dword ptr [ebp - 0x108], edx */ 15358 eax = MEM32(eax + 0x8); /* 0x36127359: mov eax, dword ptr [eax + 8] */ 15359 ecx = ebp + (-0x10C); /* 0x3612735C: lea ecx, [ebp - 0x10c] */ 15360 PUSH32(esp, ecx); /* 0x36127362: push ecx */ 15361 ecx = MEM32(ebp + (-0x4)); /* 0x36127363: mov ecx, dword ptr [ebp - 4] */ 15362 edx = ebp + (-0x33C); /* 0x36127366: lea edx, [ebp - 0x33c] */ 15363 MEM32(ebp + (-0x104)) = eax; /* 0x3612736C: mov dword ptr [ebp - 0x104], eax */ 15364 PUSH32(esp, edx); /* 0x36127372: push edx */ 15365 eax = ebp + (-0x354); /* 0x36127373: lea eax, [ebp - 0x354] */ 15366 PUSH32(esp, eax); /* 0x36127379: push eax */ 15367 RECOMP_ICALL(0x36131C00u); /* 0x3612737A: call 0x36131c00 */ /* not lifted */ 15368 RECOMP_FLAGS_IN(); 15369 ecx = eax; /* 0x3612737F: mov ecx, eax */ 15370 RECOMP_ICALL(MEM32(0x3617020C)); /* 0x36127381: call dword ptr [0x3617020c] */ 15371 RECOMP_FLAGS_IN(); 15372 ecx = MEM32(eax); /* 0x36127387: mov ecx, dword ptr [eax] */ 15373 MEM32(ebp + (-0x90)) = ecx; /* 0x36127389: mov dword ptr [ebp - 0x90], ecx */ 15374 edx = MEM32(eax + 0x4); /* 0x3612738F: mov edx, dword ptr [eax + 4] */ 15375 MEM32(ebp + (-0x8C)) = edx; /* 0x36127392: mov dword ptr [ebp - 0x8c], edx */ 15376 eax = MEM32(eax + 0x8); /* 0x36127398: mov eax, dword ptr [eax + 8] */ 15377 ecx = ebp + (-0xF4); /* 0x3612739B: lea ecx, [ebp - 0xf4] */ 15378 MEM32(ebp + (-0x88)) = eax; /* 0x361273A1: mov dword ptr [ebp - 0x88], eax */ 15379 RECOMP_ICALL(MEM32(0x36170174)); /* 0x361273A7: call dword ptr [0x36170174] */ 15380 RECOMP_FLAGS_IN(); 15381 ecx = ebp + (-0xF4); /* 0x361273AD: lea ecx, [ebp - 0xf4] */ 15382 PUSH32(esp, ecx); /* 0x361273B3: push ecx */ 15383 edx = ebp + (-0x90); /* 0x361273B4: lea edx, [ebp - 0x90] */ 15384 PUSH32(esp, edx); /* 0x361273BA: push edx */ 15385 RECOMP_ICALL(0x360FCE60u); /* 0x361273BB: call 0x360fce60 */ /* not lifted */ 15386 RECOMP_FLAGS_IN(); 15387 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15388 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15389 esp = esp + 8; /* 0x361273C0: add esp, 8 */ 15390 _flag_k = FK_ADD; 15391 eax = ebp + (-0x90); /* 0x361273C3: lea eax, [ebp - 0x90] */ 15392 PUSH32(esp, eax); /* 0x361273C9: push eax */ 15393 ecx = ebp + (-0x36C); /* 0x361273CA: lea ecx, [ebp - 0x36c] */ 15394 PUSH32(esp, ecx); /* 0x361273D0: push ecx */ 15395 ecx = ebp + (-0xF4); /* 0x361273D1: lea ecx, [ebp - 0xf4] */ 15396 RECOMP_ICALL(MEM32(0x36170180)); /* 0x361273D7: call dword ptr [0x36170180] */ 15397 RECOMP_FLAGS_IN(); 15398 edx = MEM32(eax); /* 0x361273DD: mov edx, dword ptr [eax] */ 15399 MEM32(ebp + (-0x100)) = edx; /* 0x361273DF: mov dword ptr [ebp - 0x100], edx */ 15400 ecx = MEM32(eax + 0x4); /* 0x361273E5: mov ecx, dword ptr [eax + 4] */ 15401 MEM32(ebp + (-0xFC)) = ecx; /* 0x361273E8: mov dword ptr [ebp - 0xfc], ecx */ 15402 edx = MEM32(eax + 0x8); /* 0x361273EE: mov edx, dword ptr [eax + 8] */ 15403 PUSH32(esp, 0x3F800000u); /* 0x361273F1: push 0x3f800000 */ 15404 ecx = ebp + (-0x100); /* 0x361273F6: lea ecx, [ebp - 0x100] */ 15405 MEM32(ebp + (-0xF8)) = edx; /* 0x361273FC: mov dword ptr [ebp - 0xf8], edx */ 15406 RECOMP_ICALL(MEM32(0x36170200)); /* 0x36127402: call dword ptr [0x36170200] */ 15407 RECOMP_FLAGS_IN(); 15408 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36127408: call dword ptr [0x3616f254] */ 15409 RECOMP_FLAGS_IN(); 15410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 15411 eax = eax & 0x7FFFu; /* 0x3612740E: and eax, 0x7fff */ 15412 _cf = 0; 15413 _flag_k = FK_TEST; 15414 MEM32(ebp + (-0x84)) = eax; /* 0x36127413: mov dword ptr [ebp - 0x84], eax */ 15415 fp_push((double)(int32_t)MEM32(ebp + (-0x84))); /* 0x36127419: fild dword ptr [ebp - 0x84] */ 15416 ecx = ebp + (-0x90); /* 0x3612741F: lea ecx, [ebp - 0x90] */ 15417 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36127425: fmul dword ptr [0x36175f2c] */ 15418 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3612742B: fst dword ptr [ebp - 4] */ 15419 _st[0] += _st[0]; /* 0x3612742E: fadd st(0), st(0) */ 15420 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36127430: fsubr dword ptr [0x36170380] */ 15421 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36127436: fstp dword ptr [ebp - 0x14] */ 15422 RECOMP_ICALL(MEM32(0x361701E8)); /* 0x36127439: call dword ptr [0x361701e8] */ 15423 RECOMP_FLAGS_IN(); 15424 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3612743F: fmul dword ptr [ebp - 4] */ 15425 eax = ebp + (-0x100); /* 0x36127442: lea eax, [ebp - 0x100] */ 15426 PUSH32(esp, eax); /* 0x36127448: push eax */ 15427 PUSH32(esp, ecx); /* 0x36127449: push ecx */ 15428 _st[0] += _st[0]; /* 0x3612744A: fadd st(0), st(0) */ 15429 ecx = ebp + (-0x384); /* 0x3612744C: lea ecx, [ebp - 0x384] */ 15430 _st[0] += (double)*(float*)ADDR(esi + 0x16CC); /* 0x36127452: fadd dword ptr [esi + 0x16cc] */ 15431 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36127458: fld dword ptr [ebp - 0x10] */ 15432 _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x3612745B: fmul dword ptr [0x36170eb8] */ 15433 { double _v = fp_pop(); _st[0] += _v; } /* 0x36127461: faddp st(1) */ 15434 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36127463: fstp dword ptr [ebp - 0x2c] */ 15435 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36127466: fld dword ptr [ebp - 0x2c] */ 15436 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36127469: fcos */ 15437 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3612746B: fstp dword ptr [esp] */ 15438 PUSH32(esp, ecx); /* 0x3612746E: push ecx */ 15439 RECOMP_ICALL(0x3609EB50u); /* 0x3612746F: call 0x3609eb50 */ /* not lifted */ 15440 RECOMP_FLAGS_IN(); 15441 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15443 esp = esp + 0xCu; /* 0x36127474: add esp, 0xc */ 15444 _flag_k = FK_ADD; 15445 PUSH32(esp, eax); /* 0x36127477: push eax */ 15446 edx = ebp + (-0x39C); /* 0x36127478: lea edx, [ebp - 0x39c] */ 15447 PUSH32(esp, edx); /* 0x3612747E: push edx */ 15448 eax = ebp + (-0xF4); /* 0x3612747F: lea eax, [ebp - 0xf4] */ 15449 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36127485: fld dword ptr [ebp - 0x2c] */ 15450 PUSH32(esp, eax); /* 0x36127488: push eax */ 15451 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36127489: fsin */ 15452 PUSH32(esp, ecx); /* 0x3612748B: push ecx */ 15453 ecx = ebp + (-0x3B4); /* 0x3612748C: lea ecx, [ebp - 0x3b4] */ 15454 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36127492: fstp dword ptr [esp] */ 15455 PUSH32(esp, ecx); /* 0x36127495: push ecx */ 15456 RECOMP_ICALL(0x3609EB50u); /* 0x36127496: call 0x3609eb50 */ /* not lifted */ 15457 RECOMP_FLAGS_IN(); 15458 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15460 esp = esp + 0xCu; /* 0x3612749B: add esp, 0xc */ 15461 _flag_k = FK_ADD; 15462 ecx = eax; /* 0x3612749E: mov ecx, eax */ 15463 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361274A0: call dword ptr [0x3617016c] */ 15464 RECOMP_FLAGS_IN(); 15465 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361274A6: fld dword ptr [ebp - 0x14] */ 15466 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361274A9: fmul dword ptr [ebp - 0x14] */ 15467 PUSH32(esp, eax); /* 0x361274AC: push eax */ 15468 PUSH32(esp, ecx); /* 0x361274AD: push ecx */ 15469 edx = ebp + (-0x3CC); /* 0x361274AE: lea edx, [ebp - 0x3cc] */ 15470 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x361274B4: fsubr dword ptr [0x36170380] */ 15471 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x361274BA: fmul dword ptr [0x36170464] */ 15472 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361274C0: fstp dword ptr [esp] */ 15473 PUSH32(esp, edx); /* 0x361274C3: push edx */ 15474 RECOMP_ICALL(0x3609EB50u); /* 0x361274C4: call 0x3609eb50 */ /* not lifted */ 15475 RECOMP_FLAGS_IN(); 15476 edx = MEM32(ebp + (-0x4)); /* 0x361274C9: mov edx, dword ptr [ebp - 4] */ 15477 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15478 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15479 esp = esp + 0xCu; /* 0x361274CC: add esp, 0xc */ 15480 _flag_k = FK_ADD; 15481 PUSH32(esp, eax); /* 0x361274CF: push eax */ 15482 eax = ebp + (-0x3E4); /* 0x361274D0: lea eax, [ebp - 0x3e4] */ 15483 PUSH32(esp, eax); /* 0x361274D6: push eax */ 15484 ecx = ebp + (-0x90); /* 0x361274D7: lea ecx, [ebp - 0x90] */ 15485 PUSH32(esp, ecx); /* 0x361274DD: push ecx */ 15486 PUSH32(esp, edx); /* 0x361274DE: push edx */ 15487 eax = ebp + (-0x3FC); /* 0x361274DF: lea eax, [ebp - 0x3fc] */ 15488 PUSH32(esp, eax); /* 0x361274E5: push eax */ 15489 RECOMP_ICALL(0x3609EB50u); /* 0x361274E6: call 0x3609eb50 */ /* not lifted */ 15490 RECOMP_FLAGS_IN(); 15491 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15492 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15493 esp = esp + 0xCu; /* 0x361274EB: add esp, 0xc */ 15494 _flag_k = FK_ADD; 15495 PUSH32(esp, eax); /* 0x361274EE: push eax */ 15496 ecx = ebp + (-0x414); /* 0x361274EF: lea ecx, [ebp - 0x414] */ 15497 PUSH32(esp, ecx); /* 0x361274F5: push ecx */ 15498 ecx = ebp + (-0x10C); /* 0x361274F6: lea ecx, [ebp - 0x10c] */ 15499 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x361274FC: call dword ptr [0x3617016c] */ 15500 RECOMP_FLAGS_IN(); 15501 ecx = eax; /* 0x36127502: mov ecx, eax */ 15502 RECOMP_ICALL(MEM32(0x3617016C)); /* 0x36127504: call dword ptr [0x3617016c] */ 15503 RECOMP_FLAGS_IN(); 15504 edx = eax; /* 0x3612750A: mov edx, eax */ 15505 eax = MEM32(edx); /* 0x3612750C: mov eax, dword ptr [edx] */ 15506 ecx = MEM32(edx + 0x4); /* 0x3612750E: mov ecx, dword ptr [edx + 4] */ 15507 edx = MEM32(edx + 0x8); /* 0x36127511: mov edx, dword ptr [edx + 8] */ 15508 MEM32(ebp + (-0x120)) = edx; /* 0x36127514: mov dword ptr [ebp - 0x120], edx */ 15509 edx = edi; /* 0x3612751A: mov edx, edi */ 15510 MEM32(edx) = eax; /* 0x3612751C: mov dword ptr [edx], eax */ 15511 MEM32(edx + 0x4) = ecx; /* 0x3612751E: mov dword ptr [edx + 4], ecx */ 15512 eax = MEM32(ebp + (-0x120)); /* 0x36127521: mov eax, dword ptr [ebp - 0x120] */ 15513 ecx = ebp + (-0x140); /* 0x36127527: lea ecx, [ebp - 0x140] */ 15514 MEM32(edx + 0x8) = eax; /* 0x3612752D: mov dword ptr [edx + 8], eax */ 15515 RECOMP_ICALL(MEM32(0x36170174)); /* 0x36127530: call dword ptr [0x36170174] */ 15516 RECOMP_FLAGS_IN(); 15517 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36127536: fld dword ptr [ebp - 0x18] */ 15518 edx = MEM32(eax); /* 0x36127539: mov edx, dword ptr [eax] */ 15519 ecx = edi + (-0x600); /* 0x3612753B: lea ecx, [edi - 0x600] */ 15520 MEM32(ecx) = edx; /* 0x36127541: mov dword ptr [ecx], edx */ 15521 edx = MEM32(eax + 0x4); /* 0x36127543: mov edx, dword ptr [eax + 4] */ 15522 MEM32(ecx + 0x4) = edx; /* 0x36127546: mov dword ptr [ecx + 4], edx */ 15523 eax = MEM32(eax + 0x8); /* 0x36127549: mov eax, dword ptr [eax + 8] */ 15524 MEM32(ecx + 0x8) = eax; /* 0x3612754C: mov dword ptr [ecx + 8], eax */ 15525 _st[0] += (double)*(float*)ADDR(esi + 0x16C0); /* 0x3612754F: fadd dword ptr [esi + 0x16c0] */ 15526 ecx = MEM32(ebp + (-0x8)); /* 0x36127555: mov ecx, dword ptr [ebp - 8] */ 15527 eax = MEM32(ebp + (-0x1C)); /* 0x36127558: mov eax, dword ptr [ebp - 0x1c] */ 15528 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x3612755B: fstp dword ptr [ecx] */ 15529 ecx = MEM32(ebp + (-0xC)); /* 0x3612755D: mov ecx, dword ptr [ebp - 0xc] */ 15530 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15531 ecx = ecx + 1; /* 0x36127560: inc ecx */ 15532 _flag_k = FK_INC; 15533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15534 eax = eax - 1; /* 0x36127561: dec eax */ 15535 _flag_k = FK_DEC; 15536 MEM32(ebp + (-0xC)) = ecx; /* 0x36127562: mov dword ptr [ebp - 0xc], ecx */ 15537 MEM32(ebp + (-0x1C)) = eax; /* 0x36127565: mov dword ptr [ebp - 0x1c], eax */ 15538 goto L_3612757C; /* 0x36127568: jmp 0x3612757c */ 15539 L_3612756A: 15540 edx = MEM32(esi + 0x38); /* 0x3612756A: mov edx, dword ptr [esi + 0x38] */ 15541 MEM8(edx + ebx + 0x1C) = (uint8_t)(0); /* 0x3612756D: mov byte ptr [edx + ebx + 0x1c], 0 */ 15542 goto L_3612757C; /* 0x36127572: jmp 0x3612757c */ 15543 L_36127574: 15544 eax = MEM32(esi + 0x38); /* 0x36127574: mov eax, dword ptr [esi + 0x38] */ 15545 MEM8(eax + ebx + 0x1C) = (uint8_t)(0); /* 0x36127577: mov byte ptr [eax + ebx + 0x1c], 0 */ 15546 L_3612757C: 15547 edx = MEM32(ebp + (-0x8)); /* 0x3612757C: mov edx, dword ptr [ebp - 8] */ 15548 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 15549 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15550 edx = edx + 4; /* 0x3612757F: add edx, 4 */ 15551 _flag_k = FK_ADD; 15552 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 15553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15554 ebx = ebx + 0x20u; /* 0x36127582: add ebx, 0x20 */ 15555 _flag_k = FK_ADD; 15556 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 15557 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15558 edi = edi + 0xCu; /* 0x36127585: add edi, 0xc */ 15559 _flag_k = FK_ADD; 15560 /* cmp ebx, 0x1000u */ /* 0x36127588: cmp ebx, 0x1000 */ 15561 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1000u); 15562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15563 _flag_k = FK_CMP; 15564 MEM32(ebp + (-0x8)) = edx; /* 0x3612758E: mov dword ptr [ebp - 8], edx */ 15565 RECOMP_BACKEDGE(); 15566 if (CMP_L(_flag_a, _flag_b)) goto L_3612724E; /* 0x36127591: jl 0x3612724e */ 15567 L_36127597: 15568 SET_LO8(eax, MEM8(esi + 0x163C)); /* 0x36127597: mov al, byte ptr [esi + 0x163c] */ 15569 /* test LO8(eax), LO8(eax) */ /* 0x3612759D: test al, al */ 15570 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15571 _cf = 0; 15572 _flag_k = FK_NARROW(FK_TEST, 24); 15573 if (TEST_Z(_flag_a, _flag_b)) goto L_361275AC; /* 0x3612759F: je 0x361275ac */ 15574 L_361275A1: 15575 eax = MEM32(ebp + (-0xC)); /* 0x361275A1: mov eax, dword ptr [ebp - 0xc] */ 15576 /* test eax, eax */ /* 0x361275A4: test eax, eax */ 15577 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15578 _cf = 0; 15579 _flag_k = FK_TEST; 15580 if (TEST_NZ(_flag_a, _flag_b)) goto L_361275AC; /* 0x361275A6: jne 0x361275ac */ 15581 L_361275A8: 15582 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 15583 L_361275AC: 15584 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 15585 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 15586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15587 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 15588 _flag_k = FK_ADD; 15589 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 15590 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15591 _cf = 0; 15592 _flag_k = FK_TEST; 15593 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 15594 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 15595 L_361275B7: 15596 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 15597 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 15598 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 15599 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 15600 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 15601 RECOMP_FLAGS_IN(); 15602 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 15603 PUSH32(esp, eax); /* 0x361275CD: push eax */ 15604 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 15605 RECOMP_FLAGS_IN(); 15606 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 15607 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 15608 RECOMP_FLAGS_IN(); 15609 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 15610 PUSH32(esp, eax); /* 0x361275E2: push eax */ 15611 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 15612 RECOMP_FLAGS_IN(); 15613 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 15614 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 15615 RECOMP_FLAGS_IN(); 15616 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 15617 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15618 _cf = (LO8(eax)) != 0; 15619 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 15620 _flag_k = FK_NARROW(FK_CMP, 24); 15621 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 15622 eax = _sc ? 0xFFFFFFFFu : 0; 15623 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 15624 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 15625 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15626 eax = eax + 1; /* 0x361275F6: inc eax */ 15627 _flag_k = FK_INC; 15628 PUSH32(esp, eax); /* 0x361275F7: push eax */ 15629 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 15630 RECOMP_FLAGS_IN(); 15631 L_361275FE: 15632 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 15633 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 15634 esp = ebp; /* 0x36127600: mov esp, ebp */ 15635 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 15636 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 15637 RECOMP_REGS_OUT(); 15638 } 15639 15640 void sub_361275A8(void) { 15641 int _fpu_cmp = 0; 15642 uint32_t _cf = 0; 15643 int _df = 1; 15644 uint32_t _flag_k = FK_NONE; 15645 uint32_t _flag_a = 0, _flag_b = 0; 15646 uint32_t _itail_tgt = 0; 15647 RECOMP_REGS_LOCALS 15648 RECOMP_ENTER(0x361275A8u); 15649 15650 L_361275A8: 15651 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361275A8: mov byte ptr [esi + 0x14], 1 */ 15652 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 15653 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 15654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15655 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 15656 _flag_k = FK_ADD; 15657 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 15658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15659 _cf = 0; 15660 _flag_k = FK_TEST; 15661 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 15662 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 15663 L_361275B7: 15664 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 15665 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 15666 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 15667 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 15668 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 15669 RECOMP_FLAGS_IN(); 15670 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 15671 PUSH32(esp, eax); /* 0x361275CD: push eax */ 15672 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 15673 RECOMP_FLAGS_IN(); 15674 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 15675 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 15676 RECOMP_FLAGS_IN(); 15677 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 15678 PUSH32(esp, eax); /* 0x361275E2: push eax */ 15679 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 15680 RECOMP_FLAGS_IN(); 15681 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 15682 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 15683 RECOMP_FLAGS_IN(); 15684 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 15685 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15686 _cf = (LO8(eax)) != 0; 15687 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 15688 _flag_k = FK_NARROW(FK_CMP, 24); 15689 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 15690 eax = _sc ? 0xFFFFFFFFu : 0; 15691 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 15692 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 15693 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15694 eax = eax + 1; /* 0x361275F6: inc eax */ 15695 _flag_k = FK_INC; 15696 PUSH32(esp, eax); /* 0x361275F7: push eax */ 15697 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 15698 RECOMP_FLAGS_IN(); 15699 L_361275FE: 15700 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 15701 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 15702 esp = ebp; /* 0x36127600: mov esp, ebp */ 15703 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 15704 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 15705 RECOMP_REGS_OUT(); 15706 } 15707 15708 void sub_361275AC(void) { 15709 int _fpu_cmp = 0; 15710 uint32_t _cf = 0; 15711 int _df = 1; 15712 uint32_t _flag_k = FK_NONE; 15713 uint32_t _flag_a = 0, _flag_b = 0; 15714 uint32_t _itail_tgt = 0; 15715 RECOMP_REGS_LOCALS 15716 RECOMP_ENTER(0x361275ACu); 15717 15718 L_361275AC: 15719 eax = MEM32(esi + 0x34); /* 0x361275AC: mov eax, dword ptr [esi + 0x34] */ 15720 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 15721 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15722 esi = esi + 0x34u; /* 0x361275AF: add esi, 0x34 */ 15723 _flag_k = FK_ADD; 15724 /* test eax, eax */ /* 0x361275B2: test eax, eax */ 15725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15726 _cf = 0; 15727 _flag_k = FK_TEST; 15728 ebx = POP32_VAL(esp); /* 0x361275B4: pop ebx */ 15729 if (TEST_Z(_flag_a, _flag_b)) goto L_361275FE; /* 0x361275B5: je 0x361275fe */ 15730 L_361275B7: 15731 edi = MEM32(ebp + (-0x11C)); /* 0x361275B7: mov edi, dword ptr [ebp - 0x11c] */ 15732 ecx = ebp + (-0x140); /* 0x361275BD: lea ecx, [ebp - 0x140] */ 15733 PUSH32(esp, ecx); /* 0x361275C3: push ecx */ 15734 ecx = MEM32(edi); /* 0x361275C4: mov ecx, dword ptr [edi] */ 15735 RECOMP_ICALL(0x36133E80u); /* 0x361275C6: call 0x36133e80 */ /* not lifted */ 15736 RECOMP_FLAGS_IN(); 15737 ecx = MEM32(esi); /* 0x361275CB: mov ecx, dword ptr [esi] */ 15738 PUSH32(esp, eax); /* 0x361275CD: push eax */ 15739 RECOMP_ICALL(MEM32(0x3616F8AC)); /* 0x361275CE: call dword ptr [0x3616f8ac] */ 15740 RECOMP_FLAGS_IN(); 15741 ecx = ebp + (-0x150); /* 0x361275D4: lea ecx, [ebp - 0x150] */ 15742 RECOMP_ICALL(MEM32(0x361701FC)); /* 0x361275DA: call dword ptr [0x361701fc] */ 15743 RECOMP_FLAGS_IN(); 15744 ecx = MEM32(esi); /* 0x361275E0: mov ecx, dword ptr [esi] */ 15745 PUSH32(esp, eax); /* 0x361275E2: push eax */ 15746 RECOMP_ICALL(MEM32(0x3616F8A8)); /* 0x361275E3: call dword ptr [0x3616f8a8] */ 15747 RECOMP_FLAGS_IN(); 15748 ecx = MEM32(edi); /* 0x361275E9: mov ecx, dword ptr [edi] */ 15749 RECOMP_ICALL(0x361276A0u); /* 0x361275EB: call 0x361276a0 */ /* not lifted */ 15750 RECOMP_FLAGS_IN(); 15751 ecx = MEM32(esi); /* 0x361275F0: mov ecx, dword ptr [esi] */ 15752 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15753 _cf = (LO8(eax)) != 0; 15754 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361275F2: neg al */ 15755 _flag_k = FK_NARROW(FK_CMP, 24); 15756 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361275F4: sbb eax, eax */ 15757 eax = _sc ? 0xFFFFFFFFu : 0; 15758 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 15759 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 15760 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15761 eax = eax + 1; /* 0x361275F6: inc eax */ 15762 _flag_k = FK_INC; 15763 PUSH32(esp, eax); /* 0x361275F7: push eax */ 15764 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361275F8: call dword ptr [0x3616f620] */ 15765 RECOMP_FLAGS_IN(); 15766 L_361275FE: 15767 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 15768 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 15769 esp = ebp; /* 0x36127600: mov esp, ebp */ 15770 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 15771 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 15772 RECOMP_REGS_OUT(); 15773 } 15774 15775 void sub_361275FE(void) { 15776 int _fpu_cmp = 0; 15777 uint32_t _cf = 0; 15778 int _df = 1; 15779 uint32_t _flag_k = FK_NONE; 15780 uint32_t _flag_a = 0, _flag_b = 0; 15781 uint32_t _itail_tgt = 0; 15782 RECOMP_REGS_LOCALS 15783 RECOMP_ENTER(0x361275FEu); 15784 15785 L_361275FE: 15786 edi = POP32_VAL(esp); /* 0x361275FE: pop edi */ 15787 esi = POP32_VAL(esp); /* 0x361275FF: pop esi */ 15788 esp = ebp; /* 0x36127600: mov esp, ebp */ 15789 ebp = POP32_VAL(esp); /* 0x36127602: pop ebp */ 15790 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127603: ret */ 15791 RECOMP_REGS_OUT(); 15792 } 15793 15794 void sub_361276A0(void) { 15795 int _fpu_cmp = 0; 15796 uint32_t _cf = 0; 15797 int _df = 1; 15798 uint32_t _flag_k = FK_NONE; 15799 uint32_t _flag_a = 0, _flag_b = 0; 15800 uint32_t _itail_tgt = 0; 15801 RECOMP_REGS_LOCALS 15802 RECOMP_ENTER(0x361276A0u); 15803 15804 L_361276A0: 15805 SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x361276A0: mov al, byte ptr [ecx + 0x108] */ 15806 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361276A6: ret */ 15807 RECOMP_REGS_OUT(); 15808 } 15809 15810 void sub_361276B0(void) { 15811 int _fpu_cmp = 0; 15812 uint32_t _cf = 0; 15813 int _df = 1; 15814 uint32_t _flag_k = FK_NONE; 15815 uint32_t _flag_a = 0, _flag_b = 0; 15816 uint32_t _itail_tgt = 0; 15817 RECOMP_REGS_LOCALS 15818 RECOMP_ENTER(0x361276B0u); 15819 15820 L_361276B0: 15821 PUSH32(esp, ebp); /* 0x361276B0: push ebp */ 15822 ebp = esp; /* 0x361276B1: mov ebp, esp */ 15823 eax = MEM32(ebp + 0x8); /* 0x361276B3: mov eax, dword ptr [ebp + 8] */ 15824 ecx = MEM32(ecx + 0x24); /* 0x361276B6: mov ecx, dword ptr [ecx + 0x24] */ 15825 PUSH32(esp, eax); /* 0x361276B9: push eax */ 15826 RECOMP_ICALL(0x361330C0u); /* 0x361276BA: call 0x361330c0 */ /* not lifted */ 15827 RECOMP_FLAGS_IN(); 15828 ebp = POP32_VAL(esp); /* 0x361276BF: pop ebp */ 15829 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361276C0: ret 4 */ 15830 RECOMP_REGS_OUT(); 15831 } 15832 15833 void sub_361276D0(void) { 15834 int _fpu_cmp = 0; 15835 uint32_t _cf = 0; 15836 int _df = 1; 15837 uint32_t _flag_k = FK_NONE; 15838 uint32_t _flag_a = 0, _flag_b = 0; 15839 uint32_t _itail_tgt = 0; 15840 RECOMP_REGS_LOCALS 15841 RECOMP_ENTER(0x361276D0u); 15842 15843 L_361276D0: 15844 PUSH32(esp, ebp); /* 0x361276D0: push ebp */ 15845 ebp = esp; /* 0x361276D1: mov ebp, esp */ 15846 eax = MEM32(ebp + 0x8); /* 0x361276D3: mov eax, dword ptr [ebp + 8] */ 15847 ecx = MEM32(ecx + 0x24); /* 0x361276D6: mov ecx, dword ptr [ecx + 0x24] */ 15848 PUSH32(esp, eax); /* 0x361276D9: push eax */ 15849 RECOMP_ICALL(0x36133170u); /* 0x361276DA: call 0x36133170 */ /* not lifted */ 15850 RECOMP_FLAGS_IN(); 15851 ebp = POP32_VAL(esp); /* 0x361276DF: pop ebp */ 15852 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361276E0: ret 4 */ 15853 RECOMP_REGS_OUT(); 15854 } 15855 15856 void sub_361276F0(void) { 15857 int _fpu_cmp = 0; 15858 uint32_t _cf = 0; 15859 int _df = 1; 15860 uint32_t _flag_k = FK_NONE; 15861 uint32_t _flag_a = 0, _flag_b = 0; 15862 uint32_t _itail_tgt = 0; 15863 RECOMP_REGS_LOCALS 15864 RECOMP_ENTER(0x361276F0u); 15865 15866 L_361276F0: 15867 MEM8(ecx + 0x163C) = (uint8_t)(1); /* 0x361276F0: mov byte ptr [ecx + 0x163c], 1 */ 15868 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361276F7: ret */ 15869 RECOMP_REGS_OUT(); 15870 } 15871 15872 void sub_36127700(void) { 15873 int _fpu_cmp = 0; 15874 uint32_t _cf = 0; 15875 int _df = 1; 15876 uint32_t _flag_k = FK_NONE; 15877 uint32_t _flag_a = 0, _flag_b = 0; 15878 uint32_t _itail_tgt = 0; 15879 RECOMP_REGS_LOCALS 15880 RECOMP_ENTER(0x36127700u); 15881 15882 L_36127700: 15883 PUSH32(esp, ebp); /* 0x36127700: push ebp */ 15884 ebp = esp; /* 0x36127701: mov ebp, esp */ 15885 eax = MEM32(ebp + 0x8); /* 0x36127703: mov eax, dword ptr [ebp + 8] */ 15886 edx = MEM32(ebp + 0xC); /* 0x36127706: mov edx, dword ptr [ebp + 0xc] */ 15887 MEM32(ecx + 0x1690) = eax; /* 0x36127709: mov dword ptr [ecx + 0x1690], eax */ 15888 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 15889 SET_LO8(eax, 0); /* 0x3612770F: xor al, al */ 15890 _cf = 0; 15891 _flag_k = FK_NARROW(FK_TEST, 24); 15892 MEM8(ecx + 0x168C) = (uint8_t)(LO8(eax)); /* 0x36127711: mov byte ptr [ecx + 0x168c], al */ 15893 MEM32(ecx + 0x1694) = edx; /* 0x36127717: mov dword ptr [ecx + 0x1694], edx */ 15894 edx = MEM32(ebp + 0x10); /* 0x3612771D: mov edx, dword ptr [ebp + 0x10] */ 15895 MEM8(ecx + 0x168C) = (uint8_t)(LO8(eax)); /* 0x36127720: mov byte ptr [ecx + 0x168c], al */ 15896 MEM32(ecx + 0x1698) = edx; /* 0x36127726: mov dword ptr [ecx + 0x1698], edx */ 15897 edx = MEM32(ebp + 0x14); /* 0x3612772C: mov edx, dword ptr [ebp + 0x14] */ 15898 MEM8(ecx + 0x168C) = (uint8_t)(LO8(eax)); /* 0x3612772F: mov byte ptr [ecx + 0x168c], al */ 15899 MEM32(ecx + 0x169C) = edx; /* 0x36127735: mov dword ptr [ecx + 0x169c], edx */ 15900 MEM8(ecx + 0x168C) = (uint8_t)(LO8(eax)); /* 0x3612773B: mov byte ptr [ecx + 0x168c], al */ 15901 ebp = POP32_VAL(esp); /* 0x36127741: pop ebp */ 15902 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36127742: ret 0x10 */ 15903 RECOMP_REGS_OUT(); 15904 } 15905 15906 void sub_36127750(void) { 15907 int _fpu_cmp = 0; 15908 uint32_t _cf = 0; 15909 int _df = 1; 15910 uint32_t _flag_k = FK_NONE; 15911 uint32_t _flag_a = 0, _flag_b = 0; 15912 uint32_t _itail_tgt = 0; 15913 RECOMP_REGS_LOCALS 15914 RECOMP_ENTER(0x36127750u); 15915 15916 L_36127750: 15917 PUSH32(esp, ebp); /* 0x36127750: push ebp */ 15918 ebp = esp; /* 0x36127751: mov ebp, esp */ 15919 eax = MEM32(ebp + 0x8); /* 0x36127753: mov eax, dword ptr [ebp + 8] */ 15920 edx = MEM32(ebp + 0xC); /* 0x36127756: mov edx, dword ptr [ebp + 0xc] */ 15921 MEM32(ecx + 0x16A0) = eax; /* 0x36127759: mov dword ptr [ecx + 0x16a0], eax */ 15922 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 15923 SET_LO8(eax, 0); /* 0x3612775F: xor al, al */ 15924 _cf = 0; 15925 _flag_k = FK_NARROW(FK_TEST, 24); 15926 MEM8(ecx + 0x168C) = (uint8_t)(LO8(eax)); /* 0x36127761: mov byte ptr [ecx + 0x168c], al */ 15927 MEM32(ecx + 0x16A4) = edx; /* 0x36127767: mov dword ptr [ecx + 0x16a4], edx */ 15928 edx = MEM32(ebp + 0x10); /* 0x3612776D: mov edx, dword ptr [ebp + 0x10] */ 15929 MEM8(ecx + 0x168C) = (uint8_t)(LO8(eax)); /* 0x36127770: mov byte ptr [ecx + 0x168c], al */ 15930 MEM32(ecx + 0x16A8) = edx; /* 0x36127776: mov dword ptr [ecx + 0x16a8], edx */ 15931 edx = MEM32(ebp + 0x14); /* 0x3612777C: mov edx, dword ptr [ebp + 0x14] */ 15932 MEM8(ecx + 0x168C) = (uint8_t)(LO8(eax)); /* 0x3612777F: mov byte ptr [ecx + 0x168c], al */ 15933 MEM32(ecx + 0x16AC) = edx; /* 0x36127785: mov dword ptr [ecx + 0x16ac], edx */ 15934 MEM8(ecx + 0x168C) = (uint8_t)(LO8(eax)); /* 0x3612778B: mov byte ptr [ecx + 0x168c], al */ 15935 ebp = POP32_VAL(esp); /* 0x36127791: pop ebp */ 15936 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36127792: ret 0x10 */ 15937 RECOMP_REGS_OUT(); 15938 } 15939 15940 void sub_361277A0(void) { 15941 int _fpu_cmp = 0; 15942 uint32_t _cf = 0; 15943 int _df = 1; 15944 uint32_t _flag_k = FK_NONE; 15945 uint32_t _flag_a = 0, _flag_b = 0; 15946 uint32_t _itail_tgt = 0; 15947 RECOMP_REGS_LOCALS 15948 RECOMP_ENTER(0x361277A0u); 15949 15950 L_361277A0: 15951 PUSH32(esp, esi); /* 0x361277A0: push esi */ 15952 esi = ecx; /* 0x361277A1: mov esi, ecx */ 15953 eax = MEM32(esi + 0x4); /* 0x361277A3: mov eax, dword ptr [esi + 4] */ 15954 PUSH32(esp, edi); /* 0x361277A6: push edi */ 15955 PUSH32(esp, eax); /* 0x361277A7: push eax */ 15956 RECOMP_ICALL(0x360F7B00u); /* 0x361277A8: call 0x360f7b00 */ /* not lifted */ 15957 RECOMP_FLAGS_IN(); 15958 ecx = eax; /* 0x361277AD: mov ecx, eax */ 15959 RECOMP_ICALL(0x360FBFF0u); /* 0x361277AF: call 0x360fbff0 */ /* not lifted */ 15960 RECOMP_FLAGS_IN(); 15961 ecx = eax; /* 0x361277B4: mov ecx, eax */ 15962 RECOMP_ICALL(0x361371A0u); /* 0x361277B6: call 0x361371a0 */ /* not lifted */ 15963 RECOMP_FLAGS_IN(); 15964 edi = eax; /* 0x361277BB: mov edi, eax */ 15965 PUSH32(esp, 0); /* 0x361277BD: push 0 */ 15966 ecx = edi; /* 0x361277BF: mov ecx, edi */ 15967 RECOMP_ICALL(0x36136FE0u); /* 0x361277C1: call 0x36136fe0 */ /* not lifted */ 15968 RECOMP_FLAGS_IN(); 15969 PUSH32(esp, 8); /* 0x361277C6: push 8 */ 15970 ecx = edi; /* 0x361277C8: mov ecx, edi */ 15971 MEM32(esi + 0x1664) = eax; /* 0x361277CA: mov dword ptr [esi + 0x1664], eax */ 15972 RECOMP_ICALL(0x36137010u); /* 0x361277D0: call 0x36137010 */ /* not lifted */ 15973 RECOMP_FLAGS_IN(); 15974 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x361277D5: fstp dword ptr [esi + 0x10] */ 15975 PUSH32(esp, 9); /* 0x361277D8: push 9 */ 15976 ecx = edi; /* 0x361277DA: mov ecx, edi */ 15977 RECOMP_ICALL(0x36136FE0u); /* 0x361277DC: call 0x36136fe0 */ /* not lifted */ 15978 RECOMP_FLAGS_IN(); 15979 PUSH32(esp, 0xAu); /* 0x361277E1: push 0xa */ 15980 ecx = edi; /* 0x361277E3: mov ecx, edi */ 15981 MEM32(esi + 0x1668) = eax; /* 0x361277E5: mov dword ptr [esi + 0x1668], eax */ 15982 RECOMP_ICALL(0x36136FE0u); /* 0x361277EB: call 0x36136fe0 */ /* not lifted */ 15983 RECOMP_FLAGS_IN(); 15984 PUSH32(esp, 0xBu); /* 0x361277F0: push 0xb */ 15985 ecx = edi; /* 0x361277F2: mov ecx, edi */ 15986 MEM32(esi + 0x166C) = eax; /* 0x361277F4: mov dword ptr [esi + 0x166c], eax */ 15987 RECOMP_ICALL(0x36137010u); /* 0x361277FA: call 0x36137010 */ /* not lifted */ 15988 RECOMP_FLAGS_IN(); 15989 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1670) = _v; } /* 0x361277FF: fstp dword ptr [esi + 0x1670] */ 15990 PUSH32(esp, 0xCu); /* 0x36127805: push 0xc */ 15991 ecx = edi; /* 0x36127807: mov ecx, edi */ 15992 RECOMP_ICALL(0x36137010u); /* 0x36127809: call 0x36137010 */ /* not lifted */ 15993 RECOMP_FLAGS_IN(); 15994 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1674) = _v; } /* 0x3612780E: fstp dword ptr [esi + 0x1674] */ 15995 PUSH32(esp, 0xDu); /* 0x36127814: push 0xd */ 15996 ecx = edi; /* 0x36127816: mov ecx, edi */ 15997 RECOMP_ICALL(0x36137010u); /* 0x36127818: call 0x36137010 */ /* not lifted */ 15998 RECOMP_FLAGS_IN(); 15999 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1678) = _v; } /* 0x3612781D: fstp dword ptr [esi + 0x1678] */ 16000 PUSH32(esp, 0xEu); /* 0x36127823: push 0xe */ 16001 ecx = edi; /* 0x36127825: mov ecx, edi */ 16002 RECOMP_ICALL(0x36137010u); /* 0x36127827: call 0x36137010 */ /* not lifted */ 16003 RECOMP_FLAGS_IN(); 16004 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x167C) = _v; } /* 0x3612782C: fstp dword ptr [esi + 0x167c] */ 16005 PUSH32(esp, 0xFu); /* 0x36127832: push 0xf */ 16006 ecx = edi; /* 0x36127834: mov ecx, edi */ 16007 RECOMP_ICALL(0x36137010u); /* 0x36127836: call 0x36137010 */ /* not lifted */ 16008 RECOMP_FLAGS_IN(); 16009 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1680) = _v; } /* 0x3612783B: fstp dword ptr [esi + 0x1680] */ 16010 PUSH32(esp, 0x10u); /* 0x36127841: push 0x10 */ 16011 ecx = edi; /* 0x36127843: mov ecx, edi */ 16012 RECOMP_ICALL(0x36137010u); /* 0x36127845: call 0x36137010 */ /* not lifted */ 16013 RECOMP_FLAGS_IN(); 16014 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1684) = _v; } /* 0x3612784A: fstp dword ptr [esi + 0x1684] */ 16015 PUSH32(esp, 0x11u); /* 0x36127850: push 0x11 */ 16016 ecx = edi; /* 0x36127852: mov ecx, edi */ 16017 RECOMP_ICALL(0x36137010u); /* 0x36127854: call 0x36137010 */ /* not lifted */ 16018 RECOMP_FLAGS_IN(); 16019 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1688) = _v; } /* 0x36127859: fstp dword ptr [esi + 0x1688] */ 16020 PUSH32(esp, 0x12u); /* 0x3612785F: push 0x12 */ 16021 PUSH32(esp, edi); /* 0x36127861: push edi */ 16022 ecx = esi + 0x168C; /* 0x36127862: lea ecx, [esi + 0x168c] */ 16023 RECOMP_ICALL(0x36137CF0u); /* 0x36127868: call 0x36137cf0 */ /* not lifted */ 16024 RECOMP_FLAGS_IN(); 16025 PUSH32(esp, 0x1Au); /* 0x3612786D: push 0x1a */ 16026 ecx = edi; /* 0x3612786F: mov ecx, edi */ 16027 RECOMP_ICALL(0x36137010u); /* 0x36127871: call 0x36137010 */ /* not lifted */ 16028 RECOMP_FLAGS_IN(); 16029 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36127876: fstp dword ptr [esi + 0x10] */ 16030 PUSH32(esp, 0x1Bu); /* 0x36127879: push 0x1b */ 16031 ecx = edi; /* 0x3612787B: mov ecx, edi */ 16032 RECOMP_ICALL(0x36137010u); /* 0x3612787D: call 0x36137010 */ /* not lifted */ 16033 RECOMP_FLAGS_IN(); 16034 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x16C4) = _v; } /* 0x36127882: fstp dword ptr [esi + 0x16c4] */ 16035 PUSH32(esp, 0x1Cu); /* 0x36127888: push 0x1c */ 16036 ecx = edi; /* 0x3612788A: mov ecx, edi */ 16037 RECOMP_ICALL(0x36137010u); /* 0x3612788C: call 0x36137010 */ /* not lifted */ 16038 RECOMP_FLAGS_IN(); 16039 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x16C8) = _v; } /* 0x36127891: fstp dword ptr [esi + 0x16c8] */ 16040 PUSH32(esp, 0x1Du); /* 0x36127897: push 0x1d */ 16041 ecx = edi; /* 0x36127899: mov ecx, edi */ 16042 RECOMP_ICALL(0x36137010u); /* 0x3612789B: call 0x36137010 */ /* not lifted */ 16043 RECOMP_FLAGS_IN(); 16044 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x16CC) = _v; } /* 0x361278A0: fstp dword ptr [esi + 0x16cc] */ 16045 PUSH32(esp, 0x1Eu); /* 0x361278A6: push 0x1e */ 16046 ecx = edi; /* 0x361278A8: mov ecx, edi */ 16047 RECOMP_ICALL(0x36136FE0u); /* 0x361278AA: call 0x36136fe0 */ /* not lifted */ 16048 RECOMP_FLAGS_IN(); 16049 MEM32(esi + 0x16D0) = eax; /* 0x361278AF: mov dword ptr [esi + 0x16d0], eax */ 16050 PUSH32(esp, 0x1Fu); /* 0x361278B5: push 0x1f */ 16051 ecx = edi; /* 0x361278B7: mov ecx, edi */ 16052 RECOMP_ICALL(0x36136FE0u); /* 0x361278B9: call 0x36136fe0 */ /* not lifted */ 16053 RECOMP_FLAGS_IN(); 16054 edi = POP32_VAL(esp); /* 0x361278BE: pop edi */ 16055 MEM32(esi + 0x16D4) = eax; /* 0x361278BF: mov dword ptr [esi + 0x16d4], eax */ 16056 esi = POP32_VAL(esp); /* 0x361278C5: pop esi */ 16057 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361278C6: ret */ 16058 RECOMP_REGS_OUT(); 16059 } 16060 16061 void sub_361278D0(void) { 16062 int _fpu_cmp = 0; 16063 uint32_t _cf = 0; 16064 int _df = 1; 16065 uint32_t _flag_k = FK_NONE; 16066 uint32_t _flag_a = 0, _flag_b = 0; 16067 uint32_t _itail_tgt = 0; 16068 RECOMP_REGS_LOCALS 16069 RECOMP_ENTER(0x361278D0u); 16070 16071 L_361278D0: 16072 PUSH32(esp, ebp); /* 0x361278D0: push ebp */ 16073 L_361278D1: 16074 ebp = esp; /* 0x361278D1: mov ebp, esp */ 16075 L_361278D3: 16076 PUSH32(esp, 0xFFFFFFFFu); /* 0x361278D3: push -1 */ 16077 L_361278D5: 16078 PUSH32(esp, 0x3616BB46u); /* 0x361278D5: push 0x3616bb46 */ 16079 L_361278DA: 16080 eax = MEM32(FS_BASE + (0)); /* 0x361278DA: mov eax, dword ptr fs:[0] */ 16081 L_361278E0: 16082 PUSH32(esp, eax); /* 0x361278E0: push eax */ 16083 L_361278E1: 16084 MEM32(FS_BASE + (0)) = esp; /* 0x361278E1: mov dword ptr fs:[0], esp */ 16085 L_361278E8: 16086 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 16087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16088 esp = esp - 0x34u; /* 0x361278E8: sub esp, 0x34 */ 16089 _flag_k = FK_CMP; 16090 L_361278EB: 16091 PUSH32(esp, ebx); /* 0x361278EB: push ebx */ 16092 L_361278EC: 16093 PUSH32(esp, esi); /* 0x361278EC: push esi */ 16094 L_361278ED: 16095 esi = ecx; /* 0x361278ED: mov esi, ecx */ 16096 L_361278EF: 16097 /* cmp MEM32(esi + 0x166C), 0x19u */ /* 0x361278EF: cmp dword ptr [esi + 0x166c], 0x19 */ 16098 _flag_a = (uint32_t)(MEM32(esi + 0x166C)); _flag_b = (uint32_t)(0x19u); 16099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16100 _flag_k = FK_CMP; 16101 L_361278F6: 16102 PUSH32(esp, edi); /* 0x361278F6: push edi */ 16103 L_361278F7: 16104 PUSH32(esp, 0x208u); /* 0x361278F7: push 0x208 */ 16105 L_361278FC: 16106 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3612791F; /* 0x361278FC: jne 0x3612791f */ 16107 L_361278FE: 16108 RECOMP_ICALL(0x3615FD6Au); /* 0x361278FE: call 0x3615fd6a */ /* not lifted */ 16109 RECOMP_FLAGS_IN(); 16110 L_36127903: 16111 edi = eax; /* 0x36127903: mov edi, eax */ 16112 L_36127905: 16113 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16115 esp = esp + 4; /* 0x36127905: add esp, 4 */ 16116 _flag_k = FK_ADD; 16117 L_36127908: 16118 MEM32(ebp + (-0x18)) = edi; /* 0x36127908: mov dword ptr [ebp - 0x18], edi */ 16119 L_3612790B: 16120 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16121 ebx = 0; /* 0x3612790B: xor ebx, ebx */ 16122 _cf = 0; 16123 _flag_k = FK_TEST; 16124 L_3612790D: 16125 /* cmp edi, ebx */ /* 0x3612790D: cmp edi, ebx */ 16126 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 16127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16128 _flag_k = FK_CMP; 16129 L_3612790F: 16130 MEM32(ebp + (-0x4)) = ebx; /* 0x3612790F: mov dword ptr [ebp - 4], ebx */ 16131 L_36127912: 16132 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36127990; /* 0x36127912: je 0x36127990 */ 16133 L_36127914: 16134 eax = MEM32(esi + 0x1668); /* 0x36127914: mov eax, dword ptr [esi + 0x1668] */ 16135 L_3612791A: 16136 PUSH32(esp, ebx); /* 0x3612791A: push ebx */ 16137 L_3612791B: 16138 PUSH32(esp, ebx); /* 0x3612791B: push ebx */ 16139 L_3612791C: 16140 PUSH32(esp, eax); /* 0x3612791C: push eax */ 16141 L_3612791D: 16142 goto L_36127943; /* 0x3612791D: jmp 0x36127943 */ 16143 L_3612791F: 16144 RECOMP_ICALL(0x3615FD6Au); /* 0x3612791F: call 0x3615fd6a */ /* not lifted */ 16145 RECOMP_FLAGS_IN(); 16146 L_36127924: 16147 edi = eax; /* 0x36127924: mov edi, eax */ 16148 L_36127926: 16149 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16150 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16151 esp = esp + 4; /* 0x36127926: add esp, 4 */ 16152 _flag_k = FK_ADD; 16153 L_36127929: 16154 MEM32(ebp + (-0x18)) = edi; /* 0x36127929: mov dword ptr [ebp - 0x18], edi */ 16155 L_3612792C: 16156 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16157 ebx = 0; /* 0x3612792C: xor ebx, ebx */ 16158 _cf = 0; 16159 _flag_k = FK_TEST; 16160 L_3612792E: 16161 /* cmp edi, ebx */ /* 0x3612792E: cmp edi, ebx */ 16162 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 16163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16164 _flag_k = FK_CMP; 16165 L_36127930: 16166 MEM32(ebp + (-0x4)) = 1; /* 0x36127930: mov dword ptr [ebp - 4], 1 */ 16167 L_36127937: 16168 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36127990; /* 0x36127937: je 0x36127990 */ 16169 L_36127939: 16170 ecx = MEM32(esi + 0x1668); /* 0x36127939: mov ecx, dword ptr [esi + 0x1668] */ 16171 L_3612793F: 16172 PUSH32(esp, 1); /* 0x3612793F: push 1 */ 16173 L_36127941: 16174 PUSH32(esp, ebx); /* 0x36127941: push ebx */ 16175 L_36127942: 16176 PUSH32(esp, ecx); /* 0x36127942: push ecx */ 16177 L_36127943: 16178 RECOMP_ICALL(0x360F7B00u); /* 0x36127943: call 0x360f7b00 */ /* not lifted */ 16179 RECOMP_FLAGS_IN(); 16180 L_36127948: 16181 ecx = eax; /* 0x36127948: mov ecx, eax */ 16182 L_3612794A: 16183 RECOMP_ICALL(0x360FBE40u); /* 0x3612794A: call 0x360fbe40 */ /* not lifted */ 16184 RECOMP_FLAGS_IN(); 16185 L_3612794F: 16186 PUSH32(esp, eax); /* 0x3612794F: push eax */ 16187 L_36127950: 16188 ecx = edi; /* 0x36127950: mov ecx, edi */ 16189 L_36127952: 16190 RECOMP_ICALL(MEM32(0x3616F678)); /* 0x36127952: call dword ptr [0x3616f678] */ 16191 RECOMP_FLAGS_IN(); 16192 L_36127958: 16193 MEM32(edi) = 0x36175AA0u; /* 0x36127958: mov dword ptr [edi], 0x36175aa0 */ 16194 L_3612795E: 16195 MEM32(edi + 0x8) = 0x36175A90u; /* 0x3612795E: mov dword ptr [edi + 8], 0x36175a90 */ 16196 L_36127965: 16197 MEM32(edi + 0x20) = 0x36175A80u; /* 0x36127965: mov dword ptr [edi + 0x20], 0x36175a80 */ 16198 L_3612796C: 16199 MEM32(edi + 0x38) = 0x36175A70u; /* 0x3612796C: mov dword ptr [edi + 0x38], 0x36175a70 */ 16200 L_36127973: 16201 MEM32(edi + 0x50) = 0x36175A60u; /* 0x36127973: mov dword ptr [edi + 0x50], 0x36175a60 */ 16202 L_3612797A: 16203 MEM32(edi + 0x138) = 0x36175A50u; /* 0x3612797A: mov dword ptr [edi + 0x138], 0x36175a50 */ 16204 L_36127984: 16205 MEM32(edi + 0x150) = 0x36175A40u; /* 0x36127984: mov dword ptr [edi + 0x150], 0x36175a40 */ 16206 L_3612798E: 16207 goto L_36127992; /* 0x3612798E: jmp 0x36127992 */ 16208 L_36127990: 16209 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16210 edi = 0; /* 0x36127990: xor edi, edi */ 16211 _cf = 0; 16212 _flag_k = FK_TEST; 16213 L_36127992: 16214 edx = MEM32(esi + 0x1668); /* 0x36127992: mov edx, dword ptr [esi + 0x1668] */ 16215 L_36127998: 16216 PUSH32(esp, edx); /* 0x36127998: push edx */ 16217 L_36127999: 16218 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36127999: mov dword ptr [ebp - 4], 0xffffffff */ 16219 L_361279A0: 16220 MEM32(esi + 0x34) = edi; /* 0x361279A0: mov dword ptr [esi + 0x34], edi */ 16221 L_361279A3: 16222 RECOMP_ICALL(0x360F7B00u); /* 0x361279A3: call 0x360f7b00 */ /* not lifted */ 16223 RECOMP_FLAGS_IN(); 16224 L_361279A8: 16225 ecx = eax; /* 0x361279A8: mov ecx, eax */ 16226 L_361279AA: 16227 RECOMP_ICALL(0x360FBE60u); /* 0x361279AA: call 0x360fbe60 */ /* not lifted */ 16228 RECOMP_FLAGS_IN(); 16229 L_361279AF: 16230 ecx = MEM32(esi + 0x34); /* 0x361279AF: mov ecx, dword ptr [esi + 0x34] */ 16231 L_361279B2: 16232 MEM32(ecx + 0x1E0) = eax; /* 0x361279B2: mov dword ptr [ecx + 0x1e0], eax */ 16233 L_361279B8: 16234 edx = MEM32(esi + 0x1668); /* 0x361279B8: mov edx, dword ptr [esi + 0x1668] */ 16235 L_361279BE: 16236 PUSH32(esp, edx); /* 0x361279BE: push edx */ 16237 L_361279BF: 16238 RECOMP_ICALL(0x360F7B00u); /* 0x361279BF: call 0x360f7b00 */ /* not lifted */ 16239 RECOMP_FLAGS_IN(); 16240 L_361279C4: 16241 ecx = eax; /* 0x361279C4: mov ecx, eax */ 16242 L_361279C6: 16243 RECOMP_ICALL(0x360FBEA0u); /* 0x361279C6: call 0x360fbea0 */ /* not lifted */ 16244 RECOMP_FLAGS_IN(); 16245 L_361279CB: 16246 ecx = MEM32(esi + 0x34); /* 0x361279CB: mov ecx, dword ptr [esi + 0x34] */ 16247 L_361279CE: 16248 MEM32(ecx + 0x1E4) = eax; /* 0x361279CE: mov dword ptr [ecx + 0x1e4], eax */ 16249 L_361279D4: 16250 ecx = MEM32(esi + 0x24); /* 0x361279D4: mov ecx, dword ptr [esi + 0x24] */ 16251 L_361279D7: 16252 RECOMP_ICALL(0x36134100u); /* 0x361279D7: call 0x36134100 */ /* not lifted */ 16253 RECOMP_FLAGS_IN(); 16254 L_361279DC: 16255 ecx = MEM32(esi + 0x24); /* 0x361279DC: mov ecx, dword ptr [esi + 0x24] */ 16256 L_361279DF: 16257 edx = ebp + (-0x30); /* 0x361279DF: lea edx, [ebp - 0x30] */ 16258 L_361279E2: 16259 PUSH32(esp, edx); /* 0x361279E2: push edx */ 16260 L_361279E3: 16261 RECOMP_ICALL(0x36133E80u); /* 0x361279E3: call 0x36133e80 */ /* not lifted */ 16262 RECOMP_FLAGS_IN(); 16263 L_361279E8: 16264 ecx = MEM32(esi + 0x34); /* 0x361279E8: mov ecx, dword ptr [esi + 0x34] */ 16265 L_361279EB: 16266 edi = MEM32(eax); /* 0x361279EB: mov edi, dword ptr [eax] */ 16267 L_361279ED: 16268 edx = ecx + 0x78; /* 0x361279ED: lea edx, [ecx + 0x78] */ 16269 L_361279F0: 16270 MEM32(edx) = edi; /* 0x361279F0: mov dword ptr [edx], edi */ 16271 L_361279F2: 16272 edi = MEM32(eax + 0x4); /* 0x361279F2: mov edi, dword ptr [eax + 4] */ 16273 L_361279F5: 16274 MEM32(edx + 0x4) = edi; /* 0x361279F5: mov dword ptr [edx + 4], edi */ 16275 L_361279F8: 16276 eax = MEM32(eax + 0x8); /* 0x361279F8: mov eax, dword ptr [eax + 8] */ 16277 L_361279FB: 16278 PUSH32(esp, 1); /* 0x361279FB: push 1 */ 16279 L_361279FD: 16280 MEM32(edx + 0x8) = eax; /* 0x361279FD: mov dword ptr [edx + 8], eax */ 16281 L_36127A00: 16282 edx = MEM32(ecx); /* 0x36127A00: mov edx, dword ptr [ecx] */ 16283 L_36127A02: 16284 PUSH32(esp, 1); /* 0x36127A02: push 1 */ 16285 L_36127A04: 16286 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36127A04: call dword ptr [edx + 0x2c] */ 16287 RECOMP_FLAGS_IN(); 16288 L_36127A07: 16289 ecx = MEM32(esi + 0x34); /* 0x36127A07: mov ecx, dword ptr [esi + 0x34] */ 16290 L_36127A0A: 16291 eax = ecx + 0x84; /* 0x36127A0A: lea eax, [ecx + 0x84] */ 16292 L_36127A10: 16293 MEM32(ebp + (-0x34)) = 0; /* 0x36127A10: mov dword ptr [ebp - 0x34], 0 */ 16294 L_36127A17: 16295 edx = MEM32(ebp + (-0x34)); /* 0x36127A17: mov edx, dword ptr [ebp - 0x34] */ 16296 L_36127A1A: 16297 MEM32(eax) = edx; /* 0x36127A1A: mov dword ptr [eax], edx */ 16298 L_36127A1C: 16299 MEM32(ebp + (-0x30)) = 0; /* 0x36127A1C: mov dword ptr [ebp - 0x30], 0 */ 16300 L_36127A23: 16301 edx = MEM32(ebp + (-0x30)); /* 0x36127A23: mov edx, dword ptr [ebp - 0x30] */ 16302 L_36127A26: 16303 MEM32(eax + 0x4) = edx; /* 0x36127A26: mov dword ptr [eax + 4], edx */ 16304 L_36127A29: 16305 MEM32(ebp + (-0x2C)) = 0; /* 0x36127A29: mov dword ptr [ebp - 0x2c], 0 */ 16306 L_36127A30: 16307 edx = MEM32(ebp + (-0x2C)); /* 0x36127A30: mov edx, dword ptr [ebp - 0x2c] */ 16308 L_36127A33: 16309 MEM32(eax + 0x8) = edx; /* 0x36127A33: mov dword ptr [eax + 8], edx */ 16310 L_36127A36: 16311 MEM32(ebp + (-0x28)) = 0x3F800000u; /* 0x36127A36: mov dword ptr [ebp - 0x28], 0x3f800000 */ 16312 L_36127A3D: 16313 edx = MEM32(ebp + (-0x28)); /* 0x36127A3D: mov edx, dword ptr [ebp - 0x28] */ 16314 L_36127A40: 16315 PUSH32(esp, 1); /* 0x36127A40: push 1 */ 16316 L_36127A42: 16317 MEM32(eax + 0xC) = edx; /* 0x36127A42: mov dword ptr [eax + 0xc], edx */ 16318 L_36127A45: 16319 eax = MEM32(ecx); /* 0x36127A45: mov eax, dword ptr [ecx] */ 16320 L_36127A47: 16321 PUSH32(esp, 2); /* 0x36127A47: push 2 */ 16322 L_36127A49: 16323 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36127A49: call dword ptr [eax + 0x2c] */ 16324 RECOMP_FLAGS_IN(); 16325 L_36127A4C: 16326 ecx = MEM32(esi + 0x34); /* 0x36127A4C: mov ecx, dword ptr [esi + 0x34] */ 16327 L_36127A4F: 16328 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36127A4F: call dword ptr [0x3616f5f8] */ 16329 RECOMP_FLAGS_IN(); 16330 L_36127A55: 16331 ecx = MEM32(esi + 0x38); /* 0x36127A55: mov ecx, dword ptr [esi + 0x38] */ 16332 L_36127A58: 16333 PUSH32(esp, 0x80u); /* 0x36127A58: push 0x80 */ 16334 L_36127A5D: 16335 PUSH32(esp, ecx); /* 0x36127A5D: push ecx */ 16336 L_36127A5E: 16337 ecx = MEM32(esi + 0x34); /* 0x36127A5E: mov ecx, dword ptr [esi + 0x34] */ 16338 L_36127A61: 16339 RECOMP_ICALL(MEM32(0x3616F674)); /* 0x36127A61: call dword ptr [0x3616f674] */ 16340 RECOMP_FLAGS_IN(); 16341 L_36127A67: 16342 fp_push((double)(int32_t)MEM32(esi + 0x16D0)); /* 0x36127A67: fild dword ptr [esi + 0x16d0] */ 16343 L_36127A6D: 16344 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16345 eax = 0; /* 0x36127A6D: xor eax, eax */ 16346 _cf = 0; 16347 _flag_k = FK_TEST; 16348 L_36127A6F: 16349 MEM8(esi + 0x163C) = (uint8_t)(LO8(ebx)); /* 0x36127A6F: mov byte ptr [esi + 0x163c], bl */ 16350 L_36127A75: 16351 _st[0] *= (double)*(float*)ADDR(0x361714DC); /* 0x36127A75: fmul dword ptr [0x361714dc] */ 16352 L_36127A7B: 16353 MEM32(esi + 0x1644) = ebx; /* 0x36127A7B: mov dword ptr [esi + 0x1644], ebx */ 16354 L_36127A81: 16355 MEM32(esi + 0x1640) = ebx; /* 0x36127A81: mov dword ptr [esi + 0x1640], ebx */ 16356 L_36127A87: 16357 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 16358 ecx = ecx | 0xFFFFFFFFu; /* 0x36127A87: or ecx, 0xffffffff */ 16359 _cf = 0; 16360 _flag_k = FK_TEST; 16361 L_36127A8A: 16362 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x16C0) = _v; } /* 0x36127A8A: fstp dword ptr [esi + 0x16c0] */ 16363 L_36127A90: 16364 edx = MEM32(esi + 0x38); /* 0x36127A90: mov edx, dword ptr [esi + 0x38] */ 16365 L_36127A93: 16366 MEM32(eax + edx + 0xC) = ebx; /* 0x36127A93: mov dword ptr [eax + edx + 0xc], ebx */ 16367 L_36127A97: 16368 edx = MEM32(esi + 0x38); /* 0x36127A97: mov edx, dword ptr [esi + 0x38] */ 16369 L_36127A9A: 16370 MEM32(eax + edx + 0x10) = ebx; /* 0x36127A9A: mov dword ptr [eax + edx + 0x10], ebx */ 16371 L_36127A9E: 16372 edx = MEM32(esi + 0x38); /* 0x36127A9E: mov edx, dword ptr [esi + 0x38] */ 16373 L_36127AA1: 16374 MEM32(eax + edx + 0x14) = ecx; /* 0x36127AA1: mov dword ptr [eax + edx + 0x14], ecx */ 16375 L_36127AA5: 16376 edx = MEM32(esi + 0x38); /* 0x36127AA5: mov edx, dword ptr [esi + 0x38] */ 16377 L_36127AA8: 16378 MEM32(eax + edx + 0x18) = ebx; /* 0x36127AA8: mov dword ptr [eax + edx + 0x18], ebx */ 16379 L_36127AAC: 16380 edx = MEM32(esi + 0x38); /* 0x36127AAC: mov edx, dword ptr [esi + 0x38] */ 16381 L_36127AAF: 16382 MEM8(eax + edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x36127AAF: mov byte ptr [eax + edx + 0x1c], bl */ 16383 L_36127AB3: 16384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 16385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16386 eax = eax + 0x20u; /* 0x36127AB3: add eax, 0x20 */ 16387 _flag_k = FK_ADD; 16388 L_36127AB6: 16389 /* cmp eax, 0x1000u */ /* 0x36127AB6: cmp eax, 0x1000 */ 16390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 16391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16392 _flag_k = FK_CMP; 16393 L_36127ABB: 16394 RECOMP_BACKEDGE(); 16395 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36127A90; /* 0x36127ABB: jl 0x36127a90 */ 16396 L_36127ABD: 16397 eax = MEM32(esi + 0x166C); /* 0x36127ABD: mov eax, dword ptr [esi + 0x166c] */ 16398 L_36127AC3: 16399 /* cmp eax, 0x1Bu */ /* 0x36127AC3: cmp eax, 0x1b */ 16400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Bu); 16401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16402 _flag_k = FK_CMP; 16403 L_36127AC6: 16404 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36127E23; /* 0x36127AC6: ja 0x36127e23 */ 16405 L_36127ACC: 16406 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16407 ecx = 0; /* 0x36127ACC: xor ecx, ecx */ 16408 _cf = 0; 16409 _flag_k = FK_TEST; 16410 L_36127ACE: 16411 SET_LO8(ecx, MEM8(eax + 0x36127E58)); /* 0x36127ACE: mov cl, byte ptr [eax + 0x36127e58] */ 16412 L_36127AD4: 16413 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x36127E38)); goto _ljump; } 16414 L_36127ADB: 16415 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16416 edi = 0; /* 0x36127ADB: xor edi, edi */ 16417 _cf = 0; 16418 _flag_k = FK_TEST; 16419 L_36127ADD: 16420 ebx = esi + 0x3C; /* 0x36127ADD: lea ebx, [esi + 0x3c] */ 16421 L_36127AE0: 16422 PUSH32(esp, ebx); /* 0x36127AE0: push ebx */ 16423 L_36127AE1: 16424 RECOMP_ICALL(0x360FCA70u); /* 0x36127AE1: call 0x360fca70 */ /* not lifted */ 16425 RECOMP_FLAGS_IN(); 16426 L_36127AE6: 16427 ecx = MEM32(esi + 0x24); /* 0x36127AE6: mov ecx, dword ptr [esi + 0x24] */ 16428 L_36127AE9: 16429 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16430 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16431 esp = esp + 4; /* 0x36127AE9: add esp, 4 */ 16432 _flag_k = FK_ADD; 16433 L_36127AEC: 16434 edx = ebp + (-0x24); /* 0x36127AEC: lea edx, [ebp - 0x24] */ 16435 L_36127AEF: 16436 PUSH32(esp, edx); /* 0x36127AEF: push edx */ 16437 L_36127AF0: 16438 RECOMP_ICALL(0x36133FC0u); /* 0x36127AF0: call 0x36133fc0 */ /* not lifted */ 16439 RECOMP_FLAGS_IN(); 16440 L_36127AF5: 16441 edx = MEM32(esi + 0x38); /* 0x36127AF5: mov edx, dword ptr [esi + 0x38] */ 16442 L_36127AF8: 16443 ecx = edi; /* 0x36127AF8: mov ecx, edi */ 16444 L_36127AFA: 16445 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 16446 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16447 ecx = ecx + edx; /* 0x36127AFA: add ecx, edx */ 16448 _flag_k = FK_ADD; 16449 L_36127AFC: 16450 edx = MEM32(eax); /* 0x36127AFC: mov edx, dword ptr [eax] */ 16451 L_36127AFE: 16452 MEM32(ecx) = edx; /* 0x36127AFE: mov dword ptr [ecx], edx */ 16453 L_36127B00: 16454 edx = MEM32(eax + 0x4); /* 0x36127B00: mov edx, dword ptr [eax + 4] */ 16455 L_36127B03: 16456 MEM32(ecx + 0x4) = edx; /* 0x36127B03: mov dword ptr [ecx + 4], edx */ 16457 L_36127B06: 16458 eax = MEM32(eax + 0x8); /* 0x36127B06: mov eax, dword ptr [eax + 8] */ 16459 L_36127B09: 16460 MEM32(ecx + 0x8) = eax; /* 0x36127B09: mov dword ptr [ecx + 8], eax */ 16461 L_36127B0C: 16462 ecx = MEM32(esi + 0x38); /* 0x36127B0C: mov ecx, dword ptr [esi + 0x38] */ 16463 L_36127B0F: 16464 eax = 0x3F800000u; /* 0x36127B0F: mov eax, 0x3f800000 */ 16465 L_36127B14: 16466 MEM32(edi + ecx + 0xC) = eax; /* 0x36127B14: mov dword ptr [edi + ecx + 0xc], eax */ 16467 L_36127B18: 16468 edx = MEM32(esi + 0x38); /* 0x36127B18: mov edx, dword ptr [esi + 0x38] */ 16469 L_36127B1B: 16470 MEM32(edi + edx + 0x10) = eax; /* 0x36127B1B: mov dword ptr [edi + edx + 0x10], eax */ 16471 L_36127B1F: 16472 eax = MEM32(esi + 0x38); /* 0x36127B1F: mov eax, dword ptr [esi + 0x38] */ 16473 L_36127B22: 16474 MEM8(edi + eax + 0x1C) = (uint8_t)(1); /* 0x36127B22: mov byte ptr [edi + eax + 0x1c], 1 */ 16475 L_36127B27: 16476 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 16477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16478 edi = edi + 0x20u; /* 0x36127B27: add edi, 0x20 */ 16479 _flag_k = FK_ADD; 16480 L_36127B2A: 16481 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 16482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16483 ebx = ebx + 0xCu; /* 0x36127B2A: add ebx, 0xc */ 16484 _flag_k = FK_ADD; 16485 L_36127B2D: 16486 /* cmp edi, 0x1000u */ /* 0x36127B2D: cmp edi, 0x1000 */ 16487 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1000u); 16488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16489 _flag_k = FK_CMP; 16490 L_36127B33: 16491 RECOMP_BACKEDGE(); 16492 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36127AE0; /* 0x36127B33: jl 0x36127ae0 */ 16493 L_36127B35: 16494 edi = POP32_VAL(esp); /* 0x36127B35: pop edi */ 16495 L_36127B36: 16496 esi = POP32_VAL(esp); /* 0x36127B36: pop esi */ 16497 L_36127B37: 16498 ebx = POP32_VAL(esp); /* 0x36127B37: pop ebx */ 16499 L_36127B38: 16500 ecx = MEM32(ebp + (-0xC)); /* 0x36127B38: mov ecx, dword ptr [ebp - 0xc] */ 16501 L_36127B3B: 16502 MEM32(FS_BASE + (0)) = ecx; /* 0x36127B3B: mov dword ptr fs:[0], ecx */ 16503 L_36127B42: 16504 esp = ebp; /* 0x36127B42: mov esp, ebp */ 16505 L_36127B44: 16506 ebp = POP32_VAL(esp); /* 0x36127B44: pop ebp */ 16507 L_36127B45: 16508 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127B45: ret */ 16509 L_36127B46: 16510 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x143Cu); 16511 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16512 esi = esi + 0x143Cu; /* 0x36127B46: add esi, 0x143c */ 16513 _flag_k = FK_ADD; 16514 L_36127B4C: 16515 edi = esi; /* 0x36127B4C: mov edi, esi */ 16516 L_36127B4E: 16517 ecx = 0x80u; /* 0x36127B4E: mov ecx, 0x80 */ 16518 L_36127B53: 16519 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16520 eax = 0; /* 0x36127B53: xor eax, eax */ 16521 _cf = 0; 16522 _flag_k = FK_TEST; 16523 L_36127B55: 16524 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36127B55: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 16525 L_36127B57: 16526 edi = POP32_VAL(esp); /* 0x36127B57: pop edi */ 16527 L_36127B58: 16528 esi = POP32_VAL(esp); /* 0x36127B58: pop esi */ 16529 L_36127B59: 16530 ebx = POP32_VAL(esp); /* 0x36127B59: pop ebx */ 16531 L_36127B5A: 16532 ecx = MEM32(ebp + (-0xC)); /* 0x36127B5A: mov ecx, dword ptr [ebp - 0xc] */ 16533 L_36127B5D: 16534 MEM32(FS_BASE + (0)) = ecx; /* 0x36127B5D: mov dword ptr fs:[0], ecx */ 16535 L_36127B64: 16536 esp = ebp; /* 0x36127B64: mov esp, ebp */ 16537 L_36127B66: 16538 ebp = POP32_VAL(esp); /* 0x36127B66: pop ebp */ 16539 L_36127B67: 16540 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127B67: ret */ 16541 L_36127B68: 16542 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16543 edi = 0; /* 0x36127B68: xor edi, edi */ 16544 _cf = 0; 16545 _flag_k = FK_TEST; 16546 L_36127B6A: 16547 ebx = esi + 0x3C; /* 0x36127B6A: lea ebx, [esi + 0x3c] */ 16548 L_36127B6D: 16549 PUSH32(esp, ebx); /* 0x36127B6D: push ebx */ 16550 L_36127B6E: 16551 RECOMP_ICALL(0x360FCBF0u); /* 0x36127B6E: call 0x360fcbf0 */ /* not lifted */ 16552 RECOMP_FLAGS_IN(); 16553 L_36127B73: 16554 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16555 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16556 esp = esp + 4; /* 0x36127B73: add esp, 4 */ 16557 _flag_k = FK_ADD; 16558 L_36127B76: 16559 ecx = ebp + (-0x40); /* 0x36127B76: lea ecx, [ebp - 0x40] */ 16560 L_36127B79: 16561 PUSH32(esp, ecx); /* 0x36127B79: push ecx */ 16562 L_36127B7A: 16563 ecx = MEM32(esi + 0x24); /* 0x36127B7A: mov ecx, dword ptr [esi + 0x24] */ 16564 L_36127B7D: 16565 RECOMP_ICALL(0x36133FC0u); /* 0x36127B7D: call 0x36133fc0 */ /* not lifted */ 16566 RECOMP_FLAGS_IN(); 16567 L_36127B82: 16568 ecx = MEM32(eax); /* 0x36127B82: mov ecx, dword ptr [eax] */ 16569 L_36127B84: 16570 edx = MEM32(esi + 0x38); /* 0x36127B84: mov edx, dword ptr [esi + 0x38] */ 16571 L_36127B87: 16572 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 16573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16574 edx = edx + edi; /* 0x36127B87: add edx, edi */ 16575 _flag_k = FK_ADD; 16576 L_36127B89: 16577 MEM32(edx) = ecx; /* 0x36127B89: mov dword ptr [edx], ecx */ 16578 L_36127B8B: 16579 ecx = MEM32(eax + 0x4); /* 0x36127B8B: mov ecx, dword ptr [eax + 4] */ 16580 L_36127B8E: 16581 MEM32(edx + 0x4) = ecx; /* 0x36127B8E: mov dword ptr [edx + 4], ecx */ 16582 L_36127B91: 16583 eax = MEM32(eax + 0x8); /* 0x36127B91: mov eax, dword ptr [eax + 8] */ 16584 L_36127B94: 16585 MEM32(edx + 0x8) = eax; /* 0x36127B94: mov dword ptr [edx + 8], eax */ 16586 L_36127B97: 16587 ecx = MEM32(esi + 0x38); /* 0x36127B97: mov ecx, dword ptr [esi + 0x38] */ 16588 L_36127B9A: 16589 eax = 0x3F800000u; /* 0x36127B9A: mov eax, 0x3f800000 */ 16590 L_36127B9F: 16591 MEM32(ecx + edi + 0xC) = eax; /* 0x36127B9F: mov dword ptr [ecx + edi + 0xc], eax */ 16592 L_36127BA3: 16593 edx = MEM32(esi + 0x38); /* 0x36127BA3: mov edx, dword ptr [esi + 0x38] */ 16594 L_36127BA6: 16595 MEM32(edx + edi + 0x10) = eax; /* 0x36127BA6: mov dword ptr [edx + edi + 0x10], eax */ 16596 L_36127BAA: 16597 eax = MEM32(esi + 0x38); /* 0x36127BAA: mov eax, dword ptr [esi + 0x38] */ 16598 L_36127BAD: 16599 MEM8(eax + edi + 0x1C) = (uint8_t)(1); /* 0x36127BAD: mov byte ptr [eax + edi + 0x1c], 1 */ 16600 L_36127BB2: 16601 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 16602 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16603 edi = edi + 0x20u; /* 0x36127BB2: add edi, 0x20 */ 16604 _flag_k = FK_ADD; 16605 L_36127BB5: 16606 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 16607 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16608 ebx = ebx + 0xCu; /* 0x36127BB5: add ebx, 0xc */ 16609 _flag_k = FK_ADD; 16610 L_36127BB8: 16611 /* cmp edi, 0x1000u */ /* 0x36127BB8: cmp edi, 0x1000 */ 16612 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1000u); 16613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16614 _flag_k = FK_CMP; 16615 L_36127BBE: 16616 MEM32(esi + 0x10) = 0x3FC00000u; /* 0x36127BBE: mov dword ptr [esi + 0x10], 0x3fc00000 */ 16617 L_36127BC5: 16618 RECOMP_BACKEDGE(); 16619 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36127B6D; /* 0x36127BC5: jl 0x36127b6d */ 16620 L_36127BC7: 16621 edi = POP32_VAL(esp); /* 0x36127BC7: pop edi */ 16622 L_36127BC8: 16623 esi = POP32_VAL(esp); /* 0x36127BC8: pop esi */ 16624 L_36127BC9: 16625 ebx = POP32_VAL(esp); /* 0x36127BC9: pop ebx */ 16626 L_36127BCA: 16627 ecx = MEM32(ebp + (-0xC)); /* 0x36127BCA: mov ecx, dword ptr [ebp - 0xc] */ 16628 L_36127BCD: 16629 MEM32(FS_BASE + (0)) = ecx; /* 0x36127BCD: mov dword ptr fs:[0], ecx */ 16630 L_36127BD4: 16631 esp = ebp; /* 0x36127BD4: mov esp, ebp */ 16632 L_36127BD6: 16633 ebp = POP32_VAL(esp); /* 0x36127BD6: pop ebp */ 16634 L_36127BD7: 16635 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127BD7: ret */ 16636 L_36127BD8: 16637 PUSH32(esp, ebx); /* 0x36127BD8: push ebx */ 16638 L_36127BD9: 16639 PUSH32(esp, 0x361B5CB8u); /* 0x36127BD9: push 0x361b5cb8 */ 16640 L_36127BDE: 16641 PUSH32(esp, 0x361B2CC0u); /* 0x36127BDE: push 0x361b2cc0 */ 16642 L_36127BE3: 16643 ecx = esi + 0x2C; /* 0x36127BE3: lea ecx, [esi + 0x2c] */ 16644 L_36127BE6: 16645 PUSH32(esp, ebx); /* 0x36127BE6: push ebx */ 16646 L_36127BE7: 16647 PUSH32(esp, ecx); /* 0x36127BE7: push ecx */ 16648 L_36127BE8: 16649 MEM32(esi + 0x20) = ebx; /* 0x36127BE8: mov dword ptr [esi + 0x20], ebx */ 16650 L_36127BEB: 16651 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36127BEB: call dword ptr [0x3616ff70] */ 16652 RECOMP_FLAGS_IN(); 16653 L_36127BF1: 16654 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16655 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16656 esp = esp + 4; /* 0x36127BF1: add esp, 4 */ 16657 _flag_k = FK_ADD; 16658 L_36127BF4: 16659 PUSH32(esp, eax); /* 0x36127BF4: push eax */ 16660 L_36127BF5: 16661 RECOMP_ICALL(0x3615FD86u); /* 0x36127BF5: call 0x3615fd86 */ /* not lifted */ 16662 RECOMP_FLAGS_IN(); 16663 L_36127BFA: 16664 ecx = MEM32(eax + 0xC8); /* 0x36127BFA: mov ecx, dword ptr [eax + 0xc8] */ 16665 L_36127C00: 16666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 16667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16668 esp = esp + 0x14u; /* 0x36127C00: add esp, 0x14 */ 16669 _flag_k = FK_ADD; 16670 L_36127C03: 16671 /* cmp ecx, ebx */ /* 0x36127C03: cmp ecx, ebx */ 16672 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 16673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16674 _flag_k = FK_CMP; 16675 L_36127C05: 16676 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36127E26; /* 0x36127C05: je 0x36127e26 */ 16677 L_36127C0B: 16678 ecx = eax; /* 0x36127C0B: mov ecx, eax */ 16679 L_36127C0D: 16680 RECOMP_ICALL(MEM32(0x3616FFE8)); /* 0x36127C0D: call dword ptr [0x3616ffe8] */ 16681 RECOMP_FLAGS_IN(); 16682 L_36127C13: 16683 eax = MEM32(eax + 0x28); /* 0x36127C13: mov eax, dword ptr [eax + 0x28] */ 16684 L_36127C16: 16685 fp_push(*(float*)&MEM32(eax + 0xD0)); /* 0x36127C16: fld dword ptr [eax + 0xd0] */ 16686 L_36127C1C: 16687 PUSH32(esp, esi); /* 0x36127C1C: push esi */ 16688 L_36127C1D: 16689 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x16E0) = _v; } /* 0x36127C1D: fstp dword ptr [esi + 0x16e0] */ 16690 L_36127C23: 16691 PUSH32(esp, 0x36128170u); /* 0x36127C23: push 0x36128170 */ 16692 L_36127C28: 16693 ecx = eax; /* 0x36127C28: mov ecx, eax */ 16694 L_36127C2A: 16695 MEM32(esi + 0x20) = eax; /* 0x36127C2A: mov dword ptr [esi + 0x20], eax */ 16696 L_36127C2D: 16697 RECOMP_ICALL(0x3615F7F0u); /* 0x36127C2D: call 0x3615f7f0 */ /* not lifted */ 16698 RECOMP_FLAGS_IN(); 16699 L_36127C32: 16700 eax = 0xC2C80000u; /* 0x36127C32: mov eax, 0xc2c80000 */ 16701 L_36127C37: 16702 edi = esi + 0x143C; /* 0x36127C37: lea edi, [esi + 0x143c] */ 16703 L_36127C3D: 16704 ecx = 0x80u; /* 0x36127C3D: mov ecx, 0x80 */ 16705 L_36127C42: 16706 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36127C42: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 16707 L_36127C44: 16708 ecx = esi + 0x3C; /* 0x36127C44: lea ecx, [esi + 0x3c] */ 16709 L_36127C47: 16710 eax = esi + 0x1A4; /* 0x36127C47: lea eax, [esi + 0x1a4] */ 16711 L_36127C4D: 16712 MEM32(ebp + (-0x24)) = 0; /* 0x36127C4D: mov dword ptr [ebp - 0x24], 0 */ 16713 L_36127C54: 16714 MEM32(ebp + (-0x20)) = 0; /* 0x36127C54: mov dword ptr [ebp - 0x20], 0 */ 16715 L_36127C5B: 16716 MEM32(ebp + (-0x1C)) = 0; /* 0x36127C5B: mov dword ptr [ebp - 0x1c], 0 */ 16717 L_36127C62: 16718 MEM32(ebp + (-0x30)) = 0; /* 0x36127C62: mov dword ptr [ebp - 0x30], 0 */ 16719 L_36127C69: 16720 MEM32(ebp + (-0x2C)) = 0x3F800000u; /* 0x36127C69: mov dword ptr [ebp - 0x2c], 0x3f800000 */ 16721 L_36127C70: 16722 MEM32(ebp + (-0x28)) = 0; /* 0x36127C70: mov dword ptr [ebp - 0x28], 0 */ 16723 L_36127C77: 16724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 16725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16726 ecx = ecx - eax; /* 0x36127C77: sub ecx, eax */ 16727 _flag_k = FK_CMP; 16728 L_36127C79: 16729 edx = 0x1Eu; /* 0x36127C79: mov edx, 0x1e */ 16730 L_36127C7E: 16731 ebx = MEM32(ebp + (-0x24)); /* 0x36127C7E: mov ebx, dword ptr [ebp - 0x24] */ 16732 L_36127C81: 16733 edi = ecx + eax; /* 0x36127C81: lea edi, [ecx + eax] */ 16734 L_36127C84: 16735 MEM32(edi) = ebx; /* 0x36127C84: mov dword ptr [edi], ebx */ 16736 L_36127C86: 16737 ebx = MEM32(ebp + (-0x20)); /* 0x36127C86: mov ebx, dword ptr [ebp - 0x20] */ 16738 L_36127C89: 16739 MEM32(edi + 0x4) = ebx; /* 0x36127C89: mov dword ptr [edi + 4], ebx */ 16740 L_36127C8C: 16741 ebx = MEM32(ebp + (-0x1C)); /* 0x36127C8C: mov ebx, dword ptr [ebp - 0x1c] */ 16742 L_36127C8F: 16743 MEM32(edi + 0x8) = ebx; /* 0x36127C8F: mov dword ptr [edi + 8], ebx */ 16744 L_36127C92: 16745 ebx = MEM32(ebp + (-0x30)); /* 0x36127C92: mov ebx, dword ptr [ebp - 0x30] */ 16746 L_36127C95: 16747 edi = eax; /* 0x36127C95: mov edi, eax */ 16748 L_36127C97: 16749 MEM32(edi) = ebx; /* 0x36127C97: mov dword ptr [edi], ebx */ 16750 L_36127C99: 16751 ebx = MEM32(ebp + (-0x2C)); /* 0x36127C99: mov ebx, dword ptr [ebp - 0x2c] */ 16752 L_36127C9C: 16753 MEM32(edi + 0x4) = ebx; /* 0x36127C9C: mov dword ptr [edi + 4], ebx */ 16754 L_36127C9F: 16755 ebx = MEM32(ebp + (-0x28)); /* 0x36127C9F: mov ebx, dword ptr [ebp - 0x28] */ 16756 L_36127CA2: 16757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 16758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16759 eax = eax + 0xCu; /* 0x36127CA2: add eax, 0xc */ 16760 _flag_k = FK_ADD; 16761 L_36127CA5: 16762 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 16763 edx = edx - 1; /* 0x36127CA5: dec edx */ 16764 _flag_k = FK_DEC; 16765 L_36127CA6: 16766 MEM32(edi + 0x8) = ebx; /* 0x36127CA6: mov dword ptr [edi + 8], ebx */ 16767 L_36127CA9: 16768 RECOMP_BACKEDGE(); 16769 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36127C7E; /* 0x36127CA9: jne 0x36127c7e */ 16770 L_36127CAB: 16771 edi = POP32_VAL(esp); /* 0x36127CAB: pop edi */ 16772 L_36127CAC: 16773 MEM32(esi + 0x16DC) = 0; /* 0x36127CAC: mov dword ptr [esi + 0x16dc], 0 */ 16774 L_36127CB6: 16775 esi = POP32_VAL(esp); /* 0x36127CB6: pop esi */ 16776 L_36127CB7: 16777 ebx = POP32_VAL(esp); /* 0x36127CB7: pop ebx */ 16778 L_36127CB8: 16779 ecx = MEM32(ebp + (-0xC)); /* 0x36127CB8: mov ecx, dword ptr [ebp - 0xc] */ 16780 L_36127CBB: 16781 MEM32(FS_BASE + (0)) = ecx; /* 0x36127CBB: mov dword ptr fs:[0], ecx */ 16782 L_36127CC2: 16783 esp = ebp; /* 0x36127CC2: mov esp, ebp */ 16784 L_36127CC4: 16785 ebp = POP32_VAL(esp); /* 0x36127CC4: pop ebp */ 16786 L_36127CC5: 16787 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127CC5: ret */ 16788 L_36127CC6: 16789 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x143Cu); 16790 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16791 esi = esi + 0x143Cu; /* 0x36127CC6: add esi, 0x143c */ 16792 _flag_k = FK_ADD; 16793 L_36127CCC: 16794 edi = esi; /* 0x36127CCC: mov edi, esi */ 16795 L_36127CCE: 16796 ecx = 0x80u; /* 0x36127CCE: mov ecx, 0x80 */ 16797 L_36127CD3: 16798 eax = 0xC2C80000u; /* 0x36127CD3: mov eax, 0xc2c80000 */ 16799 L_36127CD8: 16800 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36127CD8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 16801 L_36127CDA: 16802 edi = POP32_VAL(esp); /* 0x36127CDA: pop edi */ 16803 L_36127CDB: 16804 esi = POP32_VAL(esp); /* 0x36127CDB: pop esi */ 16805 L_36127CDC: 16806 ebx = POP32_VAL(esp); /* 0x36127CDC: pop ebx */ 16807 L_36127CDD: 16808 ecx = MEM32(ebp + (-0xC)); /* 0x36127CDD: mov ecx, dword ptr [ebp - 0xc] */ 16809 L_36127CE0: 16810 MEM32(FS_BASE + (0)) = ecx; /* 0x36127CE0: mov dword ptr fs:[0], ecx */ 16811 L_36127CE7: 16812 esp = ebp; /* 0x36127CE7: mov esp, ebp */ 16813 L_36127CE9: 16814 ebp = POP32_VAL(esp); /* 0x36127CE9: pop ebp */ 16815 L_36127CEA: 16816 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127CEA: ret */ 16817 L_36127CEB: 16818 MEM32(ebp + (-0x2C)) = 0; /* 0x36127CEB: mov dword ptr [ebp - 0x2c], 0 */ 16819 L_36127CF2: 16820 edx = MEM32(ebp + (-0x2C)); /* 0x36127CF2: mov edx, dword ptr [ebp - 0x2c] */ 16821 L_36127CF5: 16822 MEM32(ebp + (-0x10)) = ebx; /* 0x36127CF5: mov dword ptr [ebp - 0x10], ebx */ 16823 L_36127CF8: 16824 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16825 eax = 0; /* 0x36127CF8: xor eax, eax */ 16826 _cf = 0; 16827 _flag_k = FK_TEST; 16828 L_36127CFA: 16829 ecx = esi + 0x3C; /* 0x36127CFA: lea ecx, [esi + 0x3c] */ 16830 L_36127CFD: 16831 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x36127CFD: fild dword ptr [ebp - 0x10] */ 16832 L_36127D00: 16833 edi = ecx; /* 0x36127D00: mov edi, ecx */ 16834 L_36127D02: 16835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 16836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16837 eax = eax + 0x20u; /* 0x36127D02: add eax, 0x20 */ 16838 _flag_k = FK_ADD; 16839 L_36127D05: 16840 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 16841 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16842 ecx = ecx + 0xCu; /* 0x36127D05: add ecx, 0xc */ 16843 _flag_k = FK_ADD; 16844 L_36127D08: 16845 _st[0] *= (double)*(float*)ADDR(0x36177780); /* 0x36127D08: fmul dword ptr [0x36177780] */ 16846 L_36127D0E: 16847 fp_push(_st[0]); /* 0x36127D0E: fld st(0) */ 16848 L_36127D10: 16849 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36127D10: fsin */ 16850 L_36127D12: 16851 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36127D12: fstp dword ptr [ebp - 0x30] */ 16852 L_36127D15: 16853 ebx = MEM32(ebp + (-0x30)); /* 0x36127D15: mov ebx, dword ptr [ebp - 0x30] */ 16854 L_36127D18: 16855 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36127D18: fcos */ 16856 L_36127D1A: 16857 MEM32(edi) = ebx; /* 0x36127D1A: mov dword ptr [edi], ebx */ 16858 L_36127D1C: 16859 MEM32(edi + 0x4) = edx; /* 0x36127D1C: mov dword ptr [edi + 4], edx */ 16860 L_36127D1F: 16861 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36127D1F: fstp dword ptr [ebp - 0x28] */ 16862 L_36127D22: 16863 ebx = MEM32(ebp + (-0x28)); /* 0x36127D22: mov ebx, dword ptr [ebp - 0x28] */ 16864 L_36127D25: 16865 MEM32(edi + 0x8) = ebx; /* 0x36127D25: mov dword ptr [edi + 8], ebx */ 16866 L_36127D28: 16867 edi = MEM32(esi + 0x38); /* 0x36127D28: mov edi, dword ptr [esi + 0x38] */ 16868 L_36127D2B: 16869 ebx = MEM32(ebp + (-0x10)); /* 0x36127D2B: mov ebx, dword ptr [ebp - 0x10] */ 16870 L_36127D2E: 16871 MEM8(edi + eax + (-0x4)) = (uint8_t)(1); /* 0x36127D2E: mov byte ptr [edi + eax - 4], 1 */ 16872 L_36127D33: 16873 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 16874 ebx = ebx + 1; /* 0x36127D33: inc ebx */ 16875 _flag_k = FK_INC; 16876 L_36127D34: 16877 /* cmp eax, 0x1000u */ /* 0x36127D34: cmp eax, 0x1000 */ 16878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 16879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16880 _flag_k = FK_CMP; 16881 L_36127D39: 16882 MEM32(ebp + (-0x10)) = ebx; /* 0x36127D39: mov dword ptr [ebp - 0x10], ebx */ 16883 L_36127D3C: 16884 RECOMP_BACKEDGE(); 16885 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36127CFD; /* 0x36127D3C: jl 0x36127cfd */ 16886 L_36127D3E: 16887 edi = POP32_VAL(esp); /* 0x36127D3E: pop edi */ 16888 L_36127D3F: 16889 esi = POP32_VAL(esp); /* 0x36127D3F: pop esi */ 16890 L_36127D40: 16891 ebx = POP32_VAL(esp); /* 0x36127D40: pop ebx */ 16892 L_36127D41: 16893 ecx = MEM32(ebp + (-0xC)); /* 0x36127D41: mov ecx, dword ptr [ebp - 0xc] */ 16894 L_36127D44: 16895 MEM32(FS_BASE + (0)) = ecx; /* 0x36127D44: mov dword ptr fs:[0], ecx */ 16896 L_36127D4B: 16897 esp = ebp; /* 0x36127D4B: mov esp, ebp */ 16898 L_36127D4D: 16899 ebp = POP32_VAL(esp); /* 0x36127D4D: pop ebp */ 16900 L_36127D4E: 16901 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127D4E: ret */ 16902 L_36127D4F: 16903 MEM32(ebp + (-0x10)) = ebx; /* 0x36127D4F: mov dword ptr [ebp - 0x10], ebx */ 16904 L_36127D52: 16905 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16906 eax = 0; /* 0x36127D52: xor eax, eax */ 16907 _cf = 0; 16908 _flag_k = FK_TEST; 16909 L_36127D54: 16910 ecx = esi + 0x3C; /* 0x36127D54: lea ecx, [esi + 0x3c] */ 16911 L_36127D57: 16912 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x36127D57: fild dword ptr [ebp - 0x10] */ 16913 L_36127D5A: 16914 edx = ecx; /* 0x36127D5A: mov edx, ecx */ 16915 L_36127D5C: 16916 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 16917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16918 eax = eax + 0x20u; /* 0x36127D5C: add eax, 0x20 */ 16919 _flag_k = FK_ADD; 16920 L_36127D5F: 16921 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 16922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16923 ecx = ecx + 0xCu; /* 0x36127D5F: add ecx, 0xc */ 16924 _flag_k = FK_ADD; 16925 L_36127D62: 16926 _st[0] *= (double)*(float*)ADDR(0x3617777C); /* 0x36127D62: fmul dword ptr [0x3617777c] */ 16927 L_36127D68: 16928 fp_push(_st[0]); /* 0x36127D68: fld st(0) */ 16929 L_36127D6A: 16930 _st[0] *= (double)*(float*)ADDR(0x361714E0); /* 0x36127D6A: fmul dword ptr [0x361714e0] */ 16931 L_36127D70: 16932 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36127D70: fstp dword ptr [ebp - 0x14] */ 16933 L_36127D73: 16934 fp_push(_st[0]); /* 0x36127D73: fld st(0) */ 16935 L_36127D75: 16936 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36127D75: fsin */ 16937 L_36127D77: 16938 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36127D77: fstp dword ptr [ebp - 0x18] */ 16939 L_36127D7A: 16940 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36127D7A: fld dword ptr [ebp - 0x14] */ 16941 L_36127D7D: 16942 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36127D7D: fsin */ 16943 L_36127D7F: 16944 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36127D7F: fmul dword ptr [ebp - 0x18] */ 16945 L_36127D82: 16946 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36127D82: fstp dword ptr [ebp - 0x30] */ 16947 L_36127D85: 16948 edi = MEM32(ebp + (-0x30)); /* 0x36127D85: mov edi, dword ptr [ebp - 0x30] */ 16949 L_36127D88: 16950 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36127D88: fcos */ 16951 L_36127D8A: 16952 MEM32(edx) = edi; /* 0x36127D8A: mov dword ptr [edx], edi */ 16953 L_36127D8C: 16954 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36127D8C: fstp dword ptr [ebp - 0x2c] */ 16955 L_36127D8F: 16956 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36127D8F: fld dword ptr [ebp - 0x14] */ 16957 L_36127D92: 16958 edi = MEM32(ebp + (-0x2C)); /* 0x36127D92: mov edi, dword ptr [ebp - 0x2c] */ 16959 L_36127D95: 16960 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36127D95: fcos */ 16961 L_36127D97: 16962 MEM32(edx + 0x4) = edi; /* 0x36127D97: mov dword ptr [edx + 4], edi */ 16963 L_36127D9A: 16964 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36127D9A: fmul dword ptr [ebp - 0x18] */ 16965 L_36127D9D: 16966 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36127D9D: fstp dword ptr [ebp - 0x28] */ 16967 L_36127DA0: 16968 edi = MEM32(ebp + (-0x28)); /* 0x36127DA0: mov edi, dword ptr [ebp - 0x28] */ 16969 L_36127DA3: 16970 MEM32(edx + 0x8) = edi; /* 0x36127DA3: mov dword ptr [edx + 8], edi */ 16971 L_36127DA6: 16972 edx = MEM32(esi + 0x38); /* 0x36127DA6: mov edx, dword ptr [esi + 0x38] */ 16973 L_36127DA9: 16974 MEM8(edx + eax + (-0x4)) = (uint8_t)(1); /* 0x36127DA9: mov byte ptr [edx + eax - 4], 1 */ 16975 L_36127DAE: 16976 edx = MEM32(ebp + (-0x10)); /* 0x36127DAE: mov edx, dword ptr [ebp - 0x10] */ 16977 L_36127DB1: 16978 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 16979 edx = edx + 1; /* 0x36127DB1: inc edx */ 16980 _flag_k = FK_INC; 16981 L_36127DB2: 16982 /* cmp eax, 0x1000u */ /* 0x36127DB2: cmp eax, 0x1000 */ 16983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 16984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16985 _flag_k = FK_CMP; 16986 L_36127DB7: 16987 MEM32(ebp + (-0x10)) = edx; /* 0x36127DB7: mov dword ptr [ebp - 0x10], edx */ 16988 L_36127DBA: 16989 RECOMP_BACKEDGE(); 16990 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36127D57; /* 0x36127DBA: jl 0x36127d57 */ 16991 L_36127DBC: 16992 edi = POP32_VAL(esp); /* 0x36127DBC: pop edi */ 16993 L_36127DBD: 16994 esi = POP32_VAL(esp); /* 0x36127DBD: pop esi */ 16995 L_36127DBE: 16996 ebx = POP32_VAL(esp); /* 0x36127DBE: pop ebx */ 16997 L_36127DBF: 16998 ecx = MEM32(ebp + (-0xC)); /* 0x36127DBF: mov ecx, dword ptr [ebp - 0xc] */ 16999 L_36127DC2: 17000 MEM32(FS_BASE + (0)) = ecx; /* 0x36127DC2: mov dword ptr fs:[0], ecx */ 17001 L_36127DC9: 17002 esp = ebp; /* 0x36127DC9: mov esp, ebp */ 17003 L_36127DCB: 17004 ebp = POP32_VAL(esp); /* 0x36127DCB: pop ebp */ 17005 L_36127DCC: 17006 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127DCC: ret */ 17007 L_36127DCD: 17008 ecx = esi; /* 0x36127DCD: mov ecx, esi */ 17009 L_36127DCF: 17010 RECOMP_ICALL(0x36127E80u); /* 0x36127DCF: call 0x36127e80 */ /* not lifted */ 17011 RECOMP_FLAGS_IN(); 17012 L_36127DD4: 17013 MEM32(esi + 0x1660) = 0x80u; /* 0x36127DD4: mov dword ptr [esi + 0x1660], 0x80 */ 17014 L_36127DDE: 17015 edi = esi + 0x3C; /* 0x36127DDE: lea edi, [esi + 0x3c] */ 17016 L_36127DE1: 17017 ebx = 0x80u; /* 0x36127DE1: mov ebx, 0x80 */ 17018 L_36127DE6: 17019 eax = MEM32(esi + 0x16CC); /* 0x36127DE6: mov eax, dword ptr [esi + 0x16cc] */ 17020 L_36127DEC: 17021 PUSH32(esp, eax); /* 0x36127DEC: push eax */ 17022 L_36127DED: 17023 ecx = esi; /* 0x36127DED: mov ecx, esi */ 17024 L_36127DEF: 17025 RECOMP_ICALL(0x36127EF0u); /* 0x36127DEF: call 0x36127ef0 */ /* not lifted */ 17026 RECOMP_FLAGS_IN(); 17027 L_36127DF4: 17028 eax = esi + 0x1648; /* 0x36127DF4: lea eax, [esi + 0x1648] */ 17029 L_36127DFA: 17030 edx = MEM32(eax); /* 0x36127DFA: mov edx, dword ptr [eax] */ 17031 L_36127DFC: 17032 ecx = edi; /* 0x36127DFC: mov ecx, edi */ 17033 L_36127DFE: 17034 MEM32(ecx) = edx; /* 0x36127DFE: mov dword ptr [ecx], edx */ 17035 L_36127E00: 17036 edx = MEM32(eax + 0x4); /* 0x36127E00: mov edx, dword ptr [eax + 4] */ 17037 L_36127E03: 17038 MEM32(ecx + 0x4) = edx; /* 0x36127E03: mov dword ptr [ecx + 4], edx */ 17039 L_36127E06: 17040 eax = MEM32(eax + 0x8); /* 0x36127E06: mov eax, dword ptr [eax + 8] */ 17041 L_36127E09: 17042 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 17043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17044 edi = edi + 0xCu; /* 0x36127E09: add edi, 0xc */ 17045 _flag_k = FK_ADD; 17046 L_36127E0C: 17047 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 17048 ebx = ebx - 1; /* 0x36127E0C: dec ebx */ 17049 _flag_k = FK_DEC; 17050 L_36127E0D: 17051 MEM32(ecx + 0x8) = eax; /* 0x36127E0D: mov dword ptr [ecx + 8], eax */ 17052 L_36127E10: 17053 RECOMP_BACKEDGE(); 17054 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36127DE6; /* 0x36127E10: jne 0x36127de6 */ 17055 L_36127E12: 17056 edi = POP32_VAL(esp); /* 0x36127E12: pop edi */ 17057 L_36127E13: 17058 esi = POP32_VAL(esp); /* 0x36127E13: pop esi */ 17059 L_36127E14: 17060 ebx = POP32_VAL(esp); /* 0x36127E14: pop ebx */ 17061 L_36127E15: 17062 ecx = MEM32(ebp + (-0xC)); /* 0x36127E15: mov ecx, dword ptr [ebp - 0xc] */ 17063 L_36127E18: 17064 MEM32(FS_BASE + (0)) = ecx; /* 0x36127E18: mov dword ptr fs:[0], ecx */ 17065 L_36127E1F: 17066 esp = ebp; /* 0x36127E1F: mov esp, ebp */ 17067 L_36127E21: 17068 ebp = POP32_VAL(esp); /* 0x36127E21: pop ebp */ 17069 L_36127E22: 17070 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127E22: ret */ 17071 L_36127E23: 17072 MEM32(esi + 0x10) = ebx; /* 0x36127E23: mov dword ptr [esi + 0x10], ebx */ 17073 L_36127E26: 17074 ecx = MEM32(ebp + (-0xC)); /* 0x36127E26: mov ecx, dword ptr [ebp - 0xc] */ 17075 L_36127E29: 17076 edi = POP32_VAL(esp); /* 0x36127E29: pop edi */ 17077 L_36127E2A: 17078 esi = POP32_VAL(esp); /* 0x36127E2A: pop esi */ 17079 L_36127E2B: 17080 ebx = POP32_VAL(esp); /* 0x36127E2B: pop ebx */ 17081 L_36127E2C: 17082 MEM32(FS_BASE + (0)) = ecx; /* 0x36127E2C: mov dword ptr fs:[0], ecx */ 17083 L_36127E33: 17084 esp = ebp; /* 0x36127E33: mov esp, ebp */ 17085 L_36127E35: 17086 ebp = POP32_VAL(esp); /* 0x36127E35: pop ebp */ 17087 L_36127E36: 17088 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127E36: ret */ 17089 _ljump: 17090 switch (_itail_tgt) { 17091 case 0x361278D0u: goto L_361278D0; 17092 case 0x361278D1u: goto L_361278D1; 17093 case 0x361278D3u: goto L_361278D3; 17094 case 0x361278D5u: goto L_361278D5; 17095 case 0x361278DAu: goto L_361278DA; 17096 case 0x361278E0u: goto L_361278E0; 17097 case 0x361278E1u: goto L_361278E1; 17098 case 0x361278E8u: goto L_361278E8; 17099 case 0x361278EBu: goto L_361278EB; 17100 case 0x361278ECu: goto L_361278EC; 17101 case 0x361278EDu: goto L_361278ED; 17102 case 0x361278EFu: goto L_361278EF; 17103 case 0x361278F6u: goto L_361278F6; 17104 case 0x361278F7u: goto L_361278F7; 17105 case 0x361278FCu: goto L_361278FC; 17106 case 0x361278FEu: goto L_361278FE; 17107 case 0x36127903u: goto L_36127903; 17108 case 0x36127905u: goto L_36127905; 17109 case 0x36127908u: goto L_36127908; 17110 case 0x3612790Bu: goto L_3612790B; 17111 case 0x3612790Du: goto L_3612790D; 17112 case 0x3612790Fu: goto L_3612790F; 17113 case 0x36127912u: goto L_36127912; 17114 case 0x36127914u: goto L_36127914; 17115 case 0x3612791Au: goto L_3612791A; 17116 case 0x3612791Bu: goto L_3612791B; 17117 case 0x3612791Cu: goto L_3612791C; 17118 case 0x3612791Du: goto L_3612791D; 17119 case 0x3612791Fu: goto L_3612791F; 17120 case 0x36127924u: goto L_36127924; 17121 case 0x36127926u: goto L_36127926; 17122 case 0x36127929u: goto L_36127929; 17123 case 0x3612792Cu: goto L_3612792C; 17124 case 0x3612792Eu: goto L_3612792E; 17125 case 0x36127930u: goto L_36127930; 17126 case 0x36127937u: goto L_36127937; 17127 case 0x36127939u: goto L_36127939; 17128 case 0x3612793Fu: goto L_3612793F; 17129 case 0x36127941u: goto L_36127941; 17130 case 0x36127942u: goto L_36127942; 17131 case 0x36127943u: goto L_36127943; 17132 case 0x36127948u: goto L_36127948; 17133 case 0x3612794Au: goto L_3612794A; 17134 case 0x3612794Fu: goto L_3612794F; 17135 case 0x36127950u: goto L_36127950; 17136 case 0x36127952u: goto L_36127952; 17137 case 0x36127958u: goto L_36127958; 17138 case 0x3612795Eu: goto L_3612795E; 17139 case 0x36127965u: goto L_36127965; 17140 case 0x3612796Cu: goto L_3612796C; 17141 case 0x36127973u: goto L_36127973; 17142 case 0x3612797Au: goto L_3612797A; 17143 case 0x36127984u: goto L_36127984; 17144 case 0x3612798Eu: goto L_3612798E; 17145 case 0x36127990u: goto L_36127990; 17146 case 0x36127992u: goto L_36127992; 17147 case 0x36127998u: goto L_36127998; 17148 case 0x36127999u: goto L_36127999; 17149 case 0x361279A0u: goto L_361279A0; 17150 case 0x361279A3u: goto L_361279A3; 17151 case 0x361279A8u: goto L_361279A8; 17152 case 0x361279AAu: goto L_361279AA; 17153 case 0x361279AFu: goto L_361279AF; 17154 case 0x361279B2u: goto L_361279B2; 17155 case 0x361279B8u: goto L_361279B8; 17156 case 0x361279BEu: goto L_361279BE; 17157 case 0x361279BFu: goto L_361279BF; 17158 case 0x361279C4u: goto L_361279C4; 17159 case 0x361279C6u: goto L_361279C6; 17160 case 0x361279CBu: goto L_361279CB; 17161 case 0x361279CEu: goto L_361279CE; 17162 case 0x361279D4u: goto L_361279D4; 17163 case 0x361279D7u: goto L_361279D7; 17164 case 0x361279DCu: goto L_361279DC; 17165 case 0x361279DFu: goto L_361279DF; 17166 case 0x361279E2u: goto L_361279E2; 17167 case 0x361279E3u: goto L_361279E3; 17168 case 0x361279E8u: goto L_361279E8; 17169 case 0x361279EBu: goto L_361279EB; 17170 case 0x361279EDu: goto L_361279ED; 17171 case 0x361279F0u: goto L_361279F0; 17172 case 0x361279F2u: goto L_361279F2; 17173 case 0x361279F5u: goto L_361279F5; 17174 case 0x361279F8u: goto L_361279F8; 17175 case 0x361279FBu: goto L_361279FB; 17176 case 0x361279FDu: goto L_361279FD; 17177 case 0x36127A00u: goto L_36127A00; 17178 case 0x36127A02u: goto L_36127A02; 17179 case 0x36127A04u: goto L_36127A04; 17180 case 0x36127A07u: goto L_36127A07; 17181 case 0x36127A0Au: goto L_36127A0A; 17182 case 0x36127A10u: goto L_36127A10; 17183 case 0x36127A17u: goto L_36127A17; 17184 case 0x36127A1Au: goto L_36127A1A; 17185 case 0x36127A1Cu: goto L_36127A1C; 17186 case 0x36127A23u: goto L_36127A23; 17187 case 0x36127A26u: goto L_36127A26; 17188 case 0x36127A29u: goto L_36127A29; 17189 case 0x36127A30u: goto L_36127A30; 17190 case 0x36127A33u: goto L_36127A33; 17191 case 0x36127A36u: goto L_36127A36; 17192 case 0x36127A3Du: goto L_36127A3D; 17193 case 0x36127A40u: goto L_36127A40; 17194 case 0x36127A42u: goto L_36127A42; 17195 case 0x36127A45u: goto L_36127A45; 17196 case 0x36127A47u: goto L_36127A47; 17197 case 0x36127A49u: goto L_36127A49; 17198 case 0x36127A4Cu: goto L_36127A4C; 17199 case 0x36127A4Fu: goto L_36127A4F; 17200 case 0x36127A55u: goto L_36127A55; 17201 case 0x36127A58u: goto L_36127A58; 17202 case 0x36127A5Du: goto L_36127A5D; 17203 case 0x36127A5Eu: goto L_36127A5E; 17204 case 0x36127A61u: goto L_36127A61; 17205 case 0x36127A67u: goto L_36127A67; 17206 case 0x36127A6Du: goto L_36127A6D; 17207 case 0x36127A6Fu: goto L_36127A6F; 17208 case 0x36127A75u: goto L_36127A75; 17209 case 0x36127A7Bu: goto L_36127A7B; 17210 case 0x36127A81u: goto L_36127A81; 17211 case 0x36127A87u: goto L_36127A87; 17212 case 0x36127A8Au: goto L_36127A8A; 17213 case 0x36127A90u: goto L_36127A90; 17214 case 0x36127A93u: goto L_36127A93; 17215 case 0x36127A97u: goto L_36127A97; 17216 case 0x36127A9Au: goto L_36127A9A; 17217 case 0x36127A9Eu: goto L_36127A9E; 17218 case 0x36127AA1u: goto L_36127AA1; 17219 case 0x36127AA5u: goto L_36127AA5; 17220 case 0x36127AA8u: goto L_36127AA8; 17221 case 0x36127AACu: goto L_36127AAC; 17222 case 0x36127AAFu: goto L_36127AAF; 17223 case 0x36127AB3u: goto L_36127AB3; 17224 case 0x36127AB6u: goto L_36127AB6; 17225 case 0x36127ABBu: goto L_36127ABB; 17226 case 0x36127ABDu: goto L_36127ABD; 17227 case 0x36127AC3u: goto L_36127AC3; 17228 case 0x36127AC6u: goto L_36127AC6; 17229 case 0x36127ACCu: goto L_36127ACC; 17230 case 0x36127ACEu: goto L_36127ACE; 17231 case 0x36127AD4u: goto L_36127AD4; 17232 case 0x36127ADBu: goto L_36127ADB; 17233 case 0x36127ADDu: goto L_36127ADD; 17234 case 0x36127AE0u: goto L_36127AE0; 17235 case 0x36127AE1u: goto L_36127AE1; 17236 case 0x36127AE6u: goto L_36127AE6; 17237 case 0x36127AE9u: goto L_36127AE9; 17238 case 0x36127AECu: goto L_36127AEC; 17239 case 0x36127AEFu: goto L_36127AEF; 17240 case 0x36127AF0u: goto L_36127AF0; 17241 case 0x36127AF5u: goto L_36127AF5; 17242 case 0x36127AF8u: goto L_36127AF8; 17243 case 0x36127AFAu: goto L_36127AFA; 17244 case 0x36127AFCu: goto L_36127AFC; 17245 case 0x36127AFEu: goto L_36127AFE; 17246 case 0x36127B00u: goto L_36127B00; 17247 case 0x36127B03u: goto L_36127B03; 17248 case 0x36127B06u: goto L_36127B06; 17249 case 0x36127B09u: goto L_36127B09; 17250 case 0x36127B0Cu: goto L_36127B0C; 17251 case 0x36127B0Fu: goto L_36127B0F; 17252 case 0x36127B14u: goto L_36127B14; 17253 case 0x36127B18u: goto L_36127B18; 17254 case 0x36127B1Bu: goto L_36127B1B; 17255 case 0x36127B1Fu: goto L_36127B1F; 17256 case 0x36127B22u: goto L_36127B22; 17257 case 0x36127B27u: goto L_36127B27; 17258 case 0x36127B2Au: goto L_36127B2A; 17259 case 0x36127B2Du: goto L_36127B2D; 17260 case 0x36127B33u: goto L_36127B33; 17261 case 0x36127B35u: goto L_36127B35; 17262 case 0x36127B36u: goto L_36127B36; 17263 case 0x36127B37u: goto L_36127B37; 17264 case 0x36127B38u: goto L_36127B38; 17265 case 0x36127B3Bu: goto L_36127B3B; 17266 case 0x36127B42u: goto L_36127B42; 17267 case 0x36127B44u: goto L_36127B44; 17268 case 0x36127B45u: goto L_36127B45; 17269 case 0x36127B46u: goto L_36127B46; 17270 case 0x36127B4Cu: goto L_36127B4C; 17271 case 0x36127B4Eu: goto L_36127B4E; 17272 case 0x36127B53u: goto L_36127B53; 17273 case 0x36127B55u: goto L_36127B55; 17274 case 0x36127B57u: goto L_36127B57; 17275 case 0x36127B58u: goto L_36127B58; 17276 case 0x36127B59u: goto L_36127B59; 17277 case 0x36127B5Au: goto L_36127B5A; 17278 case 0x36127B5Du: goto L_36127B5D; 17279 case 0x36127B64u: goto L_36127B64; 17280 case 0x36127B66u: goto L_36127B66; 17281 case 0x36127B67u: goto L_36127B67; 17282 case 0x36127B68u: goto L_36127B68; 17283 case 0x36127B6Au: goto L_36127B6A; 17284 case 0x36127B6Du: goto L_36127B6D; 17285 case 0x36127B6Eu: goto L_36127B6E; 17286 case 0x36127B73u: goto L_36127B73; 17287 case 0x36127B76u: goto L_36127B76; 17288 case 0x36127B79u: goto L_36127B79; 17289 case 0x36127B7Au: goto L_36127B7A; 17290 case 0x36127B7Du: goto L_36127B7D; 17291 case 0x36127B82u: goto L_36127B82; 17292 case 0x36127B84u: goto L_36127B84; 17293 case 0x36127B87u: goto L_36127B87; 17294 case 0x36127B89u: goto L_36127B89; 17295 case 0x36127B8Bu: goto L_36127B8B; 17296 case 0x36127B8Eu: goto L_36127B8E; 17297 case 0x36127B91u: goto L_36127B91; 17298 case 0x36127B94u: goto L_36127B94; 17299 case 0x36127B97u: goto L_36127B97; 17300 case 0x36127B9Au: goto L_36127B9A; 17301 case 0x36127B9Fu: goto L_36127B9F; 17302 case 0x36127BA3u: goto L_36127BA3; 17303 case 0x36127BA6u: goto L_36127BA6; 17304 case 0x36127BAAu: goto L_36127BAA; 17305 case 0x36127BADu: goto L_36127BAD; 17306 case 0x36127BB2u: goto L_36127BB2; 17307 case 0x36127BB5u: goto L_36127BB5; 17308 case 0x36127BB8u: goto L_36127BB8; 17309 case 0x36127BBEu: goto L_36127BBE; 17310 case 0x36127BC5u: goto L_36127BC5; 17311 case 0x36127BC7u: goto L_36127BC7; 17312 case 0x36127BC8u: goto L_36127BC8; 17313 case 0x36127BC9u: goto L_36127BC9; 17314 case 0x36127BCAu: goto L_36127BCA; 17315 case 0x36127BCDu: goto L_36127BCD; 17316 case 0x36127BD4u: goto L_36127BD4; 17317 case 0x36127BD6u: goto L_36127BD6; 17318 case 0x36127BD7u: goto L_36127BD7; 17319 case 0x36127BD8u: goto L_36127BD8; 17320 case 0x36127BD9u: goto L_36127BD9; 17321 case 0x36127BDEu: goto L_36127BDE; 17322 case 0x36127BE3u: goto L_36127BE3; 17323 case 0x36127BE6u: goto L_36127BE6; 17324 case 0x36127BE7u: goto L_36127BE7; 17325 case 0x36127BE8u: goto L_36127BE8; 17326 case 0x36127BEBu: goto L_36127BEB; 17327 case 0x36127BF1u: goto L_36127BF1; 17328 case 0x36127BF4u: goto L_36127BF4; 17329 case 0x36127BF5u: goto L_36127BF5; 17330 case 0x36127BFAu: goto L_36127BFA; 17331 case 0x36127C00u: goto L_36127C00; 17332 case 0x36127C03u: goto L_36127C03; 17333 case 0x36127C05u: goto L_36127C05; 17334 case 0x36127C0Bu: goto L_36127C0B; 17335 case 0x36127C0Du: goto L_36127C0D; 17336 case 0x36127C13u: goto L_36127C13; 17337 case 0x36127C16u: goto L_36127C16; 17338 case 0x36127C1Cu: goto L_36127C1C; 17339 case 0x36127C1Du: goto L_36127C1D; 17340 case 0x36127C23u: goto L_36127C23; 17341 case 0x36127C28u: goto L_36127C28; 17342 case 0x36127C2Au: goto L_36127C2A; 17343 case 0x36127C2Du: goto L_36127C2D; 17344 case 0x36127C32u: goto L_36127C32; 17345 case 0x36127C37u: goto L_36127C37; 17346 case 0x36127C3Du: goto L_36127C3D; 17347 case 0x36127C42u: goto L_36127C42; 17348 case 0x36127C44u: goto L_36127C44; 17349 case 0x36127C47u: goto L_36127C47; 17350 case 0x36127C4Du: goto L_36127C4D; 17351 case 0x36127C54u: goto L_36127C54; 17352 case 0x36127C5Bu: goto L_36127C5B; 17353 case 0x36127C62u: goto L_36127C62; 17354 case 0x36127C69u: goto L_36127C69; 17355 case 0x36127C70u: goto L_36127C70; 17356 case 0x36127C77u: goto L_36127C77; 17357 case 0x36127C79u: goto L_36127C79; 17358 case 0x36127C7Eu: goto L_36127C7E; 17359 case 0x36127C81u: goto L_36127C81; 17360 case 0x36127C84u: goto L_36127C84; 17361 case 0x36127C86u: goto L_36127C86; 17362 case 0x36127C89u: goto L_36127C89; 17363 case 0x36127C8Cu: goto L_36127C8C; 17364 case 0x36127C8Fu: goto L_36127C8F; 17365 case 0x36127C92u: goto L_36127C92; 17366 case 0x36127C95u: goto L_36127C95; 17367 case 0x36127C97u: goto L_36127C97; 17368 case 0x36127C99u: goto L_36127C99; 17369 case 0x36127C9Cu: goto L_36127C9C; 17370 case 0x36127C9Fu: goto L_36127C9F; 17371 case 0x36127CA2u: goto L_36127CA2; 17372 case 0x36127CA5u: goto L_36127CA5; 17373 case 0x36127CA6u: goto L_36127CA6; 17374 case 0x36127CA9u: goto L_36127CA9; 17375 case 0x36127CABu: goto L_36127CAB; 17376 case 0x36127CACu: goto L_36127CAC; 17377 case 0x36127CB6u: goto L_36127CB6; 17378 case 0x36127CB7u: goto L_36127CB7; 17379 case 0x36127CB8u: goto L_36127CB8; 17380 case 0x36127CBBu: goto L_36127CBB; 17381 case 0x36127CC2u: goto L_36127CC2; 17382 case 0x36127CC4u: goto L_36127CC4; 17383 case 0x36127CC5u: goto L_36127CC5; 17384 case 0x36127CC6u: goto L_36127CC6; 17385 case 0x36127CCCu: goto L_36127CCC; 17386 case 0x36127CCEu: goto L_36127CCE; 17387 case 0x36127CD3u: goto L_36127CD3; 17388 case 0x36127CD8u: goto L_36127CD8; 17389 case 0x36127CDAu: goto L_36127CDA; 17390 case 0x36127CDBu: goto L_36127CDB; 17391 case 0x36127CDCu: goto L_36127CDC; 17392 case 0x36127CDDu: goto L_36127CDD; 17393 case 0x36127CE0u: goto L_36127CE0; 17394 case 0x36127CE7u: goto L_36127CE7; 17395 case 0x36127CE9u: goto L_36127CE9; 17396 case 0x36127CEAu: goto L_36127CEA; 17397 case 0x36127CEBu: goto L_36127CEB; 17398 case 0x36127CF2u: goto L_36127CF2; 17399 case 0x36127CF5u: goto L_36127CF5; 17400 case 0x36127CF8u: goto L_36127CF8; 17401 case 0x36127CFAu: goto L_36127CFA; 17402 case 0x36127CFDu: goto L_36127CFD; 17403 case 0x36127D00u: goto L_36127D00; 17404 case 0x36127D02u: goto L_36127D02; 17405 case 0x36127D05u: goto L_36127D05; 17406 case 0x36127D08u: goto L_36127D08; 17407 case 0x36127D0Eu: goto L_36127D0E; 17408 case 0x36127D10u: goto L_36127D10; 17409 case 0x36127D12u: goto L_36127D12; 17410 case 0x36127D15u: goto L_36127D15; 17411 case 0x36127D18u: goto L_36127D18; 17412 case 0x36127D1Au: goto L_36127D1A; 17413 case 0x36127D1Cu: goto L_36127D1C; 17414 case 0x36127D1Fu: goto L_36127D1F; 17415 case 0x36127D22u: goto L_36127D22; 17416 case 0x36127D25u: goto L_36127D25; 17417 case 0x36127D28u: goto L_36127D28; 17418 case 0x36127D2Bu: goto L_36127D2B; 17419 case 0x36127D2Eu: goto L_36127D2E; 17420 case 0x36127D33u: goto L_36127D33; 17421 case 0x36127D34u: goto L_36127D34; 17422 case 0x36127D39u: goto L_36127D39; 17423 case 0x36127D3Cu: goto L_36127D3C; 17424 case 0x36127D3Eu: goto L_36127D3E; 17425 case 0x36127D3Fu: goto L_36127D3F; 17426 case 0x36127D40u: goto L_36127D40; 17427 case 0x36127D41u: goto L_36127D41; 17428 case 0x36127D44u: goto L_36127D44; 17429 case 0x36127D4Bu: goto L_36127D4B; 17430 case 0x36127D4Du: goto L_36127D4D; 17431 case 0x36127D4Eu: goto L_36127D4E; 17432 case 0x36127D4Fu: goto L_36127D4F; 17433 case 0x36127D52u: goto L_36127D52; 17434 case 0x36127D54u: goto L_36127D54; 17435 case 0x36127D57u: goto L_36127D57; 17436 case 0x36127D5Au: goto L_36127D5A; 17437 case 0x36127D5Cu: goto L_36127D5C; 17438 case 0x36127D5Fu: goto L_36127D5F; 17439 case 0x36127D62u: goto L_36127D62; 17440 case 0x36127D68u: goto L_36127D68; 17441 case 0x36127D6Au: goto L_36127D6A; 17442 case 0x36127D70u: goto L_36127D70; 17443 case 0x36127D73u: goto L_36127D73; 17444 case 0x36127D75u: goto L_36127D75; 17445 case 0x36127D77u: goto L_36127D77; 17446 case 0x36127D7Au: goto L_36127D7A; 17447 case 0x36127D7Du: goto L_36127D7D; 17448 case 0x36127D7Fu: goto L_36127D7F; 17449 case 0x36127D82u: goto L_36127D82; 17450 case 0x36127D85u: goto L_36127D85; 17451 case 0x36127D88u: goto L_36127D88; 17452 case 0x36127D8Au: goto L_36127D8A; 17453 case 0x36127D8Cu: goto L_36127D8C; 17454 case 0x36127D8Fu: goto L_36127D8F; 17455 case 0x36127D92u: goto L_36127D92; 17456 case 0x36127D95u: goto L_36127D95; 17457 case 0x36127D97u: goto L_36127D97; 17458 case 0x36127D9Au: goto L_36127D9A; 17459 case 0x36127D9Du: goto L_36127D9D; 17460 case 0x36127DA0u: goto L_36127DA0; 17461 case 0x36127DA3u: goto L_36127DA3; 17462 case 0x36127DA6u: goto L_36127DA6; 17463 case 0x36127DA9u: goto L_36127DA9; 17464 case 0x36127DAEu: goto L_36127DAE; 17465 case 0x36127DB1u: goto L_36127DB1; 17466 case 0x36127DB2u: goto L_36127DB2; 17467 case 0x36127DB7u: goto L_36127DB7; 17468 case 0x36127DBAu: goto L_36127DBA; 17469 case 0x36127DBCu: goto L_36127DBC; 17470 case 0x36127DBDu: goto L_36127DBD; 17471 case 0x36127DBEu: goto L_36127DBE; 17472 case 0x36127DBFu: goto L_36127DBF; 17473 case 0x36127DC2u: goto L_36127DC2; 17474 case 0x36127DC9u: goto L_36127DC9; 17475 case 0x36127DCBu: goto L_36127DCB; 17476 case 0x36127DCCu: goto L_36127DCC; 17477 case 0x36127DCDu: goto L_36127DCD; 17478 case 0x36127DCFu: goto L_36127DCF; 17479 case 0x36127DD4u: goto L_36127DD4; 17480 case 0x36127DDEu: goto L_36127DDE; 17481 case 0x36127DE1u: goto L_36127DE1; 17482 case 0x36127DE6u: goto L_36127DE6; 17483 case 0x36127DECu: goto L_36127DEC; 17484 case 0x36127DEDu: goto L_36127DED; 17485 case 0x36127DEFu: goto L_36127DEF; 17486 case 0x36127DF4u: goto L_36127DF4; 17487 case 0x36127DFAu: goto L_36127DFA; 17488 case 0x36127DFCu: goto L_36127DFC; 17489 case 0x36127DFEu: goto L_36127DFE; 17490 case 0x36127E00u: goto L_36127E00; 17491 case 0x36127E03u: goto L_36127E03; 17492 case 0x36127E06u: goto L_36127E06; 17493 case 0x36127E09u: goto L_36127E09; 17494 case 0x36127E0Cu: goto L_36127E0C; 17495 case 0x36127E0Du: goto L_36127E0D; 17496 case 0x36127E10u: goto L_36127E10; 17497 case 0x36127E12u: goto L_36127E12; 17498 case 0x36127E13u: goto L_36127E13; 17499 case 0x36127E14u: goto L_36127E14; 17500 case 0x36127E15u: goto L_36127E15; 17501 case 0x36127E18u: goto L_36127E18; 17502 case 0x36127E1Fu: goto L_36127E1F; 17503 case 0x36127E21u: goto L_36127E21; 17504 case 0x36127E22u: goto L_36127E22; 17505 case 0x36127E23u: goto L_36127E23; 17506 case 0x36127E26u: goto L_36127E26; 17507 case 0x36127E29u: goto L_36127E29; 17508 case 0x36127E2Au: goto L_36127E2A; 17509 case 0x36127E2Bu: goto L_36127E2B; 17510 case 0x36127E2Cu: goto L_36127E2C; 17511 case 0x36127E33u: goto L_36127E33; 17512 case 0x36127E35u: goto L_36127E35; 17513 case 0x36127E36u: goto L_36127E36; 17514 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 17515 } 17516 RECOMP_REGS_OUT(); 17517 } 17518 17519 void sub_36127E80(void) { 17520 int _fpu_cmp = 0; 17521 uint32_t _cf = 0; 17522 int _df = 1; 17523 uint32_t _flag_k = FK_NONE; 17524 uint32_t _flag_a = 0, _flag_b = 0; 17525 uint32_t _itail_tgt = 0; 17526 RECOMP_REGS_LOCALS 17527 RECOMP_ENTER(0x36127E80u); 17528 17529 L_36127E80: 17530 PUSH32(esp, ebp); /* 0x36127E80: push ebp */ 17531 ebp = esp; /* 0x36127E81: mov ebp, esp */ 17532 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 17533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17534 esp = esp - 0xCu; /* 0x36127E83: sub esp, 0xc */ 17535 _flag_k = FK_CMP; 17536 eax = ecx + 0x1648; /* 0x36127E86: lea eax, [ecx + 0x1648] */ 17537 MEM32(ebp + (-0xC)) = 0; /* 0x36127E8C: mov dword ptr [ebp - 0xc], 0 */ 17538 edx = MEM32(ebp + (-0xC)); /* 0x36127E93: mov edx, dword ptr [ebp - 0xc] */ 17539 MEM32(eax) = edx; /* 0x36127E96: mov dword ptr [eax], edx */ 17540 MEM32(ebp + (-0x8)) = 0x3F800000u; /* 0x36127E98: mov dword ptr [ebp - 8], 0x3f800000 */ 17541 edx = MEM32(ebp + (-0x8)); /* 0x36127E9F: mov edx, dword ptr [ebp - 8] */ 17542 MEM32(eax + 0x4) = edx; /* 0x36127EA2: mov dword ptr [eax + 4], edx */ 17543 MEM32(ebp + (-0x4)) = 0; /* 0x36127EA5: mov dword ptr [ebp - 4], 0 */ 17544 edx = MEM32(ebp + (-0x4)); /* 0x36127EAC: mov edx, dword ptr [ebp - 4] */ 17545 MEM32(eax + 0x8) = edx; /* 0x36127EAF: mov dword ptr [eax + 8], edx */ 17546 MEM32(ebp + (-0xC)) = 0; /* 0x36127EB2: mov dword ptr [ebp - 0xc], 0 */ 17547 eax = MEM32(ebp + (-0xC)); /* 0x36127EB9: mov eax, dword ptr [ebp - 0xc] */ 17548 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1654u); 17549 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17550 ecx = ecx + 0x1654u; /* 0x36127EBC: add ecx, 0x1654 */ 17551 _flag_k = FK_ADD; 17552 MEM32(ecx) = eax; /* 0x36127EC2: mov dword ptr [ecx], eax */ 17553 MEM32(ebp + (-0x8)) = 0; /* 0x36127EC4: mov dword ptr [ebp - 8], 0 */ 17554 edx = MEM32(ebp + (-0x8)); /* 0x36127ECB: mov edx, dword ptr [ebp - 8] */ 17555 MEM32(ebp + (-0x4)) = 0x3F800000u; /* 0x36127ECE: mov dword ptr [ebp - 4], 0x3f800000 */ 17556 eax = MEM32(ebp + (-0x4)); /* 0x36127ED5: mov eax, dword ptr [ebp - 4] */ 17557 MEM32(ecx + 0x4) = edx; /* 0x36127ED8: mov dword ptr [ecx + 4], edx */ 17558 MEM32(ecx + 0x8) = eax; /* 0x36127EDB: mov dword ptr [ecx + 8], eax */ 17559 esp = ebp; /* 0x36127EDE: mov esp, ebp */ 17560 ebp = POP32_VAL(esp); /* 0x36127EE0: pop ebp */ 17561 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36127EE1: ret */ 17562 RECOMP_REGS_OUT(); 17563 } 17564 17565 void sub_36127EF0(void) { 17566 int _fpu_cmp = 0; 17567 uint32_t _cf = 0; 17568 int _df = 1; 17569 uint32_t _flag_k = FK_NONE; 17570 uint32_t _flag_a = 0, _flag_b = 0; 17571 uint32_t _itail_tgt = 0; 17572 RECOMP_REGS_LOCALS 17573 RECOMP_ENTER(0x36127EF0u); 17574 17575 L_36127EF0: 17576 PUSH32(esp, ebp); /* 0x36127EF0: push ebp */ 17577 ebp = esp; /* 0x36127EF1: mov ebp, esp */ 17578 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5Cu); 17579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17580 esp = esp - 0x5Cu; /* 0x36127EF3: sub esp, 0x5c */ 17581 _flag_k = FK_CMP; 17582 PUSH32(esp, ebx); /* 0x36127EF6: push ebx */ 17583 PUSH32(esp, esi); /* 0x36127EF7: push esi */ 17584 eax = ebp + (-0x1C); /* 0x36127EF8: lea eax, [ebp - 0x1c] */ 17585 PUSH32(esp, edi); /* 0x36127EFB: push edi */ 17586 PUSH32(esp, eax); /* 0x36127EFC: push eax */ 17587 esi = ecx; /* 0x36127EFD: mov esi, ecx */ 17588 MEM32(ebp + (-0x1C)) = 0; /* 0x36127EFF: mov dword ptr [ebp - 0x1c], 0 */ 17589 MEM32(ebp + (-0x18)) = 0; /* 0x36127F06: mov dword ptr [ebp - 0x18], 0 */ 17590 MEM32(ebp + (-0x14)) = 0; /* 0x36127F0D: mov dword ptr [ebp - 0x14], 0 */ 17591 RECOMP_ICALL(0x360FCA70u); /* 0x36127F14: call 0x360fca70 */ /* not lifted */ 17592 RECOMP_FLAGS_IN(); 17593 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36127F19: fld dword ptr [ebp - 0x1c] */ 17594 _st[0] *= (double)*(float*)ADDR(0x36170E94); /* 0x36127F1C: fmul dword ptr [0x36170e94] */ 17595 edx = MEM32(ebp + (-0x18)); /* 0x36127F22: mov edx, dword ptr [ebp - 0x18] */ 17596 eax = MEM32(ebp + (-0x14)); /* 0x36127F25: mov eax, dword ptr [ebp - 0x14] */ 17597 MEM32(ebp + (-0x8)) = edx; /* 0x36127F28: mov dword ptr [ebp - 8], edx */ 17598 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36127F2B: fld dword ptr [ebp - 8] */ 17599 _st[0] *= (double)*(float*)ADDR(0x36170E94); /* 0x36127F2E: fmul dword ptr [0x36170e94] */ 17600 MEM32(ebp + (-0x4)) = eax; /* 0x36127F34: mov dword ptr [ebp - 4], eax */ 17601 edi = esi + 0x1654; /* 0x36127F37: lea edi, [esi + 0x1654] */ 17602 ecx = MEM32(ebp + (-0x1C)); /* 0x36127F3D: mov ecx, dword ptr [ebp - 0x1c] */ 17603 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36127F40: fstp dword ptr [ebp - 8] */ 17604 MEM32(ebp + (-0xC)) = ecx; /* 0x36127F43: mov dword ptr [ebp - 0xc], ecx */ 17605 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36127F46: fld dword ptr [ebp - 4] */ 17606 ecx = edi; /* 0x36127F49: mov ecx, edi */ 17607 _st[0] *= (double)*(float*)ADDR(0x36170E94); /* 0x36127F4B: fmul dword ptr [0x36170e94] */ 17608 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36127F51: fstp dword ptr [ebp - 4] */ 17609 _st[0] += (double)*(float*)ADDR(edi); /* 0x36127F54: fadd dword ptr [edi] */ 17610 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36127F56: fstp dword ptr [edi] */ 17611 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36127F58: fld dword ptr [ebp - 8] */ 17612 _st[0] += (double)*(float*)ADDR(edi + 0x4); /* 0x36127F5B: fadd dword ptr [edi + 4] */ 17613 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x36127F5E: fstp dword ptr [edi + 4] */ 17614 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36127F61: fld dword ptr [ebp - 4] */ 17615 _st[0] += (double)*(float*)ADDR(edi + 0x8); /* 0x36127F64: fadd dword ptr [edi + 8] */ 17616 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x8) = _v; } /* 0x36127F67: fstp dword ptr [edi + 8] */ 17617 fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x36127F6A: fld dword ptr [edi + 8] */ 17618 fp_push(*(float*)&MEM32(edi + 0x4)); /* 0x36127F6D: fld dword ptr [edi + 4] */ 17619 fp_push(*(float*)&MEM32(edi)); /* 0x36127F70: fld dword ptr [edi] */ 17620 fp_push(_st[0]); /* 0x36127F72: fld st(0) */ 17621 _st[0] *= _st[1]; /* 0x36127F74: fmul st(1) */ 17622 fp_push(_st[2]); /* 0x36127F76: fld st(2) */ 17623 _st[0] *= _st[3]; /* 0x36127F78: fmul st(3) */ 17624 { double _v = fp_pop(); _st[0] += _v; } /* 0x36127F7A: faddp st(1) */ 17625 fp_push(_st[3]); /* 0x36127F7C: fld st(3) */ 17626 _st[0] *= _st[4]; /* 0x36127F7E: fmul st(4) */ 17627 { double _v = fp_pop(); _st[0] += _v; } /* 0x36127F80: faddp st(1) */ 17628 _st[0] = sqrt(_st[0]); /* 0x36127F82: fsqrt */ 17629 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36127F84: fstp st(3) */ 17630 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36127F86: fstp st(0) */ 17631 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36127F88: fstp st(0) */ 17632 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36127F8A: fdivr dword ptr [0x36170380] */ 17633 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36127F90: fstp dword ptr [esp] */ 17634 RECOMP_ICALL(MEM32(0x36170184)); /* 0x36127F93: call dword ptr [0x36170184] */ 17635 RECOMP_FLAGS_IN(); 17636 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36127F99: fld dword ptr [ebp + 8] */ 17637 eax = MEM32(esi + 0x1650); /* 0x36127F9C: mov eax, dword ptr [esi + 0x1650] */ 17638 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36127FA2: fcomp dword ptr [0x3617040c] */ 17639 fp_pop(); 17640 ecx = MEM32(esi + 0x1648); /* 0x36127FA8: mov ecx, dword ptr [esi + 0x1648] */ 17641 edx = MEM32(esi + 0x164C); /* 0x36127FAE: mov edx, dword ptr [esi + 0x164c] */ 17642 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1648u); 17643 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17644 esi = esi + 0x1648u; /* 0x36127FB4: add esi, 0x1648 */ 17645 _flag_k = FK_ADD; 17646 MEM32(ebp + (-0x34)) = eax; /* 0x36127FBA: mov dword ptr [ebp - 0x34], eax */ 17647 MEM32(ebp + (-0x24)) = eax; /* 0x36127FBD: mov dword ptr [ebp - 0x24], eax */ 17648 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36127FC0: fnstsw ax */ 17649 MEM32(ebp + (-0x3C)) = ecx; /* 0x36127FC2: mov dword ptr [ebp - 0x3c], ecx */ 17650 /* test HI8(eax), 1 */ /* 0x36127FC5: test ah, 1 */ 17651 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 17652 _cf = 0; 17653 _flag_k = FK_NARROW(FK_TEST, 24); 17654 MEM32(ebp + (-0x30)) = 0; /* 0x36127FC8: mov dword ptr [ebp - 0x30], 0 */ 17655 MEM32(ebp + (-0x2C)) = ecx; /* 0x36127FCF: mov dword ptr [ebp - 0x2c], ecx */ 17656 ecx = MEM32(ebp + (-0x30)); /* 0x36127FD2: mov ecx, dword ptr [ebp - 0x30] */ 17657 MEM32(ebp + (-0x38)) = edx; /* 0x36127FD5: mov dword ptr [ebp - 0x38], edx */ 17658 MEM32(ebp + (-0x28)) = edx; /* 0x36127FD8: mov dword ptr [ebp - 0x28], edx */ 17659 MEM32(ebp + (-0x20)) = ecx; /* 0x36127FDB: mov dword ptr [ebp - 0x20], ecx */ 17660 if (TEST_NZ(_flag_a, _flag_b)) goto L_36127FFB; /* 0x36127FDE: jne 0x36127ffb */ 17661 L_36127FE0: 17662 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36127FE0: fld dword ptr [ebp + 8] */ 17663 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36127FE3: fcomp qword ptr [0x361708b8] */ 17664 fp_pop(); 17665 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36127FE9: fnstsw ax */ 17666 /* test HI8(eax), 1 */ /* 0x36127FEB: test ah, 1 */ 17667 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 17668 _cf = 0; 17669 _flag_k = FK_NARROW(FK_TEST, 24); 17670 if (TEST_Z(_flag_a, _flag_b)) goto L_36127FFB; /* 0x36127FEE: je 0x36127ffb */ 17671 L_36127FF0: 17672 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36127FF0: fld dword ptr [ebp + 8] */ 17673 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36127FF3: fmul dword ptr [0x36170464] */ 17674 goto L_3612801F; /* 0x36127FF9: jmp 0x3612801f */ 17675 L_36127FFB: 17676 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36127FFB: fld dword ptr [ebp + 8] */ 17677 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 17678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17679 esp = esp - 8; /* 0x36127FFE: sub esp, 8 */ 17680 _flag_k = FK_CMP; 17681 _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x36128001: fmul dword ptr [0x361708b4] */ 17682 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x36128007: fst dword ptr [ebp + 8] */ 17683 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3612800A: fstp qword ptr [esp] */ 17684 RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3612800D: call dword ptr [0x3616f198] */ 17685 RECOMP_FLAGS_IN(); 17686 _st[0] = (double)*(float*)ADDR(ebp + 0x8) - _st[0]; /* 0x36128013: fsubr dword ptr [ebp + 8] */ 17687 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 17688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17689 esp = esp + 8; /* 0x36128016: add esp, 8 */ 17690 _flag_k = FK_ADD; 17691 _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36128019: fmul dword ptr [0x361708b0] */ 17692 L_3612801F: 17693 fp_push(_st[0]); /* 0x3612801F: fld st(0) */ 17694 ecx = ebp + (-0x10); /* 0x36128021: lea ecx, [ebp - 0x10] */ 17695 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36128024: fsin */ 17696 fp_push(_st[0]); /* 0x36128026: fld st(0) */ 17697 _st[0] *= (double)*(float*)ADDR(edi); /* 0x36128028: fmul dword ptr [edi] */ 17698 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612802A: fstp dword ptr [ebp - 0x3c] */ 17699 fp_push(_st[0]); /* 0x3612802D: fld st(0) */ 17700 _st[0] *= (double)*(float*)ADDR(edi + 0x4); /* 0x3612802F: fmul dword ptr [edi + 4] */ 17701 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36128032: fstp dword ptr [ebp - 0x38] */ 17702 ebx = MEM32(ebp + (-0x38)); /* 0x36128035: mov ebx, dword ptr [ebp - 0x38] */ 17703 MEM32(ebp + (-0xC)) = ebx; /* 0x36128038: mov dword ptr [ebp - 0xc], ebx */ 17704 _st[0] *= (double)*(float*)ADDR(edi + 0x8); /* 0x3612803B: fmul dword ptr [edi + 8] */ 17705 edi = MEM32(ebp + (-0x3C)); /* 0x3612803E: mov edi, dword ptr [ebp - 0x3c] */ 17706 MEM32(ebp + (-0x10)) = edi; /* 0x36128041: mov dword ptr [ebp - 0x10], edi */ 17707 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36128044: fstp dword ptr [ebp - 0x34] */ 17708 edx = MEM32(ebp + (-0x34)); /* 0x36128047: mov edx, dword ptr [ebp - 0x34] */ 17709 MEM32(ebp + (-0x8)) = edx; /* 0x3612804A: mov dword ptr [ebp - 8], edx */ 17710 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3612804D: fcos */ 17711 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3612804F: fstp dword ptr [ebp - 0x30] */ 17712 eax = MEM32(ebp + (-0x30)); /* 0x36128052: mov eax, dword ptr [ebp - 0x30] */ 17713 MEM32(ebp + (-0x4)) = eax; /* 0x36128055: mov dword ptr [ebp - 4], eax */ 17714 RECOMP_ICALL(MEM32(0x361701EC)); /* 0x36128058: call dword ptr [0x361701ec] */ 17715 RECOMP_FLAGS_IN(); 17716 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x3612805E: fdivr dword ptr [0x36170380] */ 17717 MEM32(ebp + (-0x4C)) = edi; /* 0x36128064: mov dword ptr [ebp - 0x4c], edi */ 17718 MEM32(ebp + (-0x48)) = ebx; /* 0x36128067: mov dword ptr [ebp - 0x48], ebx */ 17719 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3612806A: fld dword ptr [ebp - 0x10] */ 17720 _st[0] *= _st[1]; /* 0x3612806D: fmul st(1) */ 17721 _st[0] = -_st[0]; /* 0x3612806F: fchs */ 17722 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36128071: fstp dword ptr [ebp - 0x10] */ 17723 ecx = MEM32(ebp + (-0x10)); /* 0x36128074: mov ecx, dword ptr [ebp - 0x10] */ 17724 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36128077: fld dword ptr [ebp - 0xc] */ 17725 MEM32(ebp + (-0x5C)) = ecx; /* 0x3612807A: mov dword ptr [ebp - 0x5c], ecx */ 17726 _st[0] *= _st[1]; /* 0x3612807D: fmul st(1) */ 17727 _st[0] = -_st[0]; /* 0x3612807F: fchs */ 17728 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36128081: fstp dword ptr [ebp - 0xc] */ 17729 edx = MEM32(ebp + (-0xC)); /* 0x36128084: mov edx, dword ptr [ebp - 0xc] */ 17730 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36128087: fld dword ptr [ebp - 8] */ 17731 MEM32(ebp + (-0x58)) = edx; /* 0x3612808A: mov dword ptr [ebp - 0x58], edx */ 17732 edx = MEM32(ebp + (-0x34)); /* 0x3612808D: mov edx, dword ptr [ebp - 0x34] */ 17733 _st[0] *= _st[1]; /* 0x36128090: fmul st(1) */ 17734 MEM32(ebp + (-0x44)) = edx; /* 0x36128092: mov dword ptr [ebp - 0x44], edx */ 17735 _st[0] = -_st[0]; /* 0x36128095: fchs */ 17736 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36128097: fstp dword ptr [ebp - 8] */ 17737 eax = MEM32(ebp + (-0x8)); /* 0x3612809A: mov eax, dword ptr [ebp - 8] */ 17738 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3612809D: fld dword ptr [ebp - 4] */ 17739 MEM32(ebp + (-0x54)) = eax; /* 0x361280A0: mov dword ptr [ebp - 0x54], eax */ 17740 eax = MEM32(ebp + (-0x30)); /* 0x361280A3: mov eax, dword ptr [ebp - 0x30] */ 17741 _st[0] *= _st[1]; /* 0x361280A6: fmul st(1) */ 17742 MEM32(ebp + (-0x40)) = eax; /* 0x361280A8: mov dword ptr [ebp - 0x40], eax */ 17743 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361280AB: fstp dword ptr [ebp - 4] */ 17744 ecx = MEM32(ebp + (-0x4)); /* 0x361280AE: mov ecx, dword ptr [ebp - 4] */ 17745 MEM32(ebp + (-0x50)) = ecx; /* 0x361280B1: mov dword ptr [ebp - 0x50], ecx */ 17746 ecx = ebp + (-0x2C); /* 0x361280B4: lea ecx, [ebp - 0x2c] */ 17747 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361280B7: fstp st(0) */ 17748 PUSH32(esp, ecx); /* 0x361280B9: push ecx */ 17749 ecx = ebp + (-0x4C); /* 0x361280BA: lea ecx, [ebp - 0x4c] */ 17750 RECOMP_ICALL(MEM32(0x3617019C)); /* 0x361280BD: call dword ptr [0x3617019c] */ 17751 RECOMP_FLAGS_IN(); 17752 edx = MEM32(eax); /* 0x361280C3: mov edx, dword ptr [eax] */ 17753 ecx = MEM32(eax + 0x4); /* 0x361280C5: mov ecx, dword ptr [eax + 4] */ 17754 MEM32(ebp + (-0x38)) = ecx; /* 0x361280C8: mov dword ptr [ebp - 0x38], ecx */ 17755 MEM32(ebp + (-0x3C)) = edx; /* 0x361280CB: mov dword ptr [ebp - 0x3c], edx */ 17756 edx = MEM32(eax + 0x8); /* 0x361280CE: mov edx, dword ptr [eax + 8] */ 17757 eax = MEM32(eax + 0xC); /* 0x361280D1: mov eax, dword ptr [eax + 0xc] */ 17758 ecx = ebp + (-0x5C); /* 0x361280D4: lea ecx, [ebp - 0x5c] */ 17759 PUSH32(esp, ecx); /* 0x361280D7: push ecx */ 17760 ecx = ebp + (-0x3C); /* 0x361280D8: lea ecx, [ebp - 0x3c] */ 17761 MEM32(ebp + (-0x34)) = edx; /* 0x361280DB: mov dword ptr [ebp - 0x34], edx */ 17762 MEM32(ebp + (-0x30)) = eax; /* 0x361280DE: mov dword ptr [ebp - 0x30], eax */ 17763 RECOMP_ICALL(MEM32(0x3617019C)); /* 0x361280E1: call dword ptr [0x3617019c] */ 17764 RECOMP_FLAGS_IN(); 17765 edx = MEM32(eax); /* 0x361280E7: mov edx, dword ptr [eax] */ 17766 MEM32(ebp + (-0x2C)) = edx; /* 0x361280E9: mov dword ptr [ebp - 0x2c], edx */ 17767 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x361280EC: fld dword ptr [ebp - 0x2c] */ 17768 ecx = MEM32(eax + 0x4); /* 0x361280EF: mov ecx, dword ptr [eax + 4] */ 17769 MEM32(ebp + (-0x28)) = ecx; /* 0x361280F2: mov dword ptr [ebp - 0x28], ecx */ 17770 edx = MEM32(eax + 0x8); /* 0x361280F5: mov edx, dword ptr [eax + 8] */ 17771 MEM32(ebp + (-0x24)) = edx; /* 0x361280F8: mov dword ptr [ebp - 0x24], edx */ 17772 eax = MEM32(eax + 0xC); /* 0x361280FB: mov eax, dword ptr [eax + 0xc] */ 17773 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361280FE: fstp dword ptr [ebp - 0x1c] */ 17774 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36128101: fld dword ptr [ebp - 0x28] */ 17775 MEM32(ebp + (-0x20)) = eax; /* 0x36128104: mov dword ptr [ebp - 0x20], eax */ 17776 edx = MEM32(ebp + (-0x1C)); /* 0x36128107: mov edx, dword ptr [ebp - 0x1c] */ 17777 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3612810A: fstp dword ptr [ebp - 0x18] */ 17778 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3612810D: fld dword ptr [ebp - 0x24] */ 17779 eax = MEM32(ebp + (-0x18)); /* 0x36128110: mov eax, dword ptr [ebp - 0x18] */ 17780 ecx = esi; /* 0x36128113: mov ecx, esi */ 17781 MEM32(ecx) = edx; /* 0x36128115: mov dword ptr [ecx], edx */ 17782 MEM32(ecx + 0x4) = eax; /* 0x36128117: mov dword ptr [ecx + 4], eax */ 17783 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3612811A: fstp dword ptr [ebp - 0x14] */ 17784 edx = MEM32(ebp + (-0x14)); /* 0x3612811D: mov edx, dword ptr [ebp - 0x14] */ 17785 MEM32(ecx + 0x8) = edx; /* 0x36128120: mov dword ptr [ecx + 8], edx */ 17786 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36128123: fld dword ptr [esi + 8] */ 17787 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x36128126: fld dword ptr [esi + 4] */ 17788 edi = POP32_VAL(esp); /* 0x36128129: pop edi */ 17789 fp_push(*(float*)&MEM32(esi)); /* 0x3612812A: fld dword ptr [esi] */ 17790 fp_push(_st[0]); /* 0x3612812C: fld st(0) */ 17791 _st[0] *= _st[1]; /* 0x3612812E: fmul st(1) */ 17792 fp_push(_st[2]); /* 0x36128130: fld st(2) */ 17793 _st[0] *= _st[3]; /* 0x36128132: fmul st(3) */ 17794 { double _v = fp_pop(); _st[0] += _v; } /* 0x36128134: faddp st(1) */ 17795 fp_push(_st[3]); /* 0x36128136: fld st(3) */ 17796 _st[0] *= _st[4]; /* 0x36128138: fmul st(4) */ 17797 { double _v = fp_pop(); _st[0] += _v; } /* 0x3612813A: faddp st(1) */ 17798 _st[0] = sqrt(_st[0]); /* 0x3612813C: fsqrt */ 17799 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3612813E: fstp st(3) */ 17800 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128140: fstp st(0) */ 17801 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128142: fstp st(0) */ 17802 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36128144: fdivr dword ptr [0x36170380] */ 17803 fp_push(_st[0]); /* 0x3612814A: fld st(0) */ 17804 _st[0] *= (double)*(float*)ADDR(esi); /* 0x3612814C: fmul dword ptr [esi] */ 17805 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3612814E: fstp dword ptr [esi] */ 17806 fp_push(_st[0]); /* 0x36128150: fld st(0) */ 17807 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x36128152: fmul dword ptr [esi + 4] */ 17808 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36128155: fstp dword ptr [esi + 4] */ 17809 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x36128158: fmul dword ptr [esi + 8] */ 17810 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x3612815B: fstp dword ptr [esi + 8] */ 17811 esi = POP32_VAL(esp); /* 0x3612815E: pop esi */ 17812 ebx = POP32_VAL(esp); /* 0x3612815F: pop ebx */ 17813 esp = ebp; /* 0x36128160: mov esp, ebp */ 17814 ebp = POP32_VAL(esp); /* 0x36128162: pop ebp */ 17815 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36128163: ret 4 */ 17816 RECOMP_REGS_OUT(); 17817 } 17818 17819 void sub_36127F0D(void) { 17820 int _fpu_cmp = 0; 17821 uint32_t _cf = 0; 17822 int _df = 1; 17823 uint32_t _flag_k = FK_NONE; 17824 uint32_t _flag_a = 0, _flag_b = 0; 17825 uint32_t _itail_tgt = 0; 17826 RECOMP_REGS_LOCALS 17827 RECOMP_ENTER(0x36127F0Du); 17828 17829 L_36127F0D: 17830 MEM32(ebp + (-0x14)) = 0; /* 0x36127F0D: mov dword ptr [ebp - 0x14], 0 */ 17831 RECOMP_ICALL(0x360FCA70u); /* 0x36127F14: call 0x360fca70 */ /* not lifted */ 17832 RECOMP_FLAGS_IN(); 17833 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36127F19: fld dword ptr [ebp - 0x1c] */ 17834 _st[0] *= (double)*(float*)ADDR(0x36170E94); /* 0x36127F1C: fmul dword ptr [0x36170e94] */ 17835 edx = MEM32(ebp + (-0x18)); /* 0x36127F22: mov edx, dword ptr [ebp - 0x18] */ 17836 eax = MEM32(ebp + (-0x14)); /* 0x36127F25: mov eax, dword ptr [ebp - 0x14] */ 17837 MEM32(ebp + (-0x8)) = edx; /* 0x36127F28: mov dword ptr [ebp - 8], edx */ 17838 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36127F2B: fld dword ptr [ebp - 8] */ 17839 _st[0] *= (double)*(float*)ADDR(0x36170E94); /* 0x36127F2E: fmul dword ptr [0x36170e94] */ 17840 MEM32(ebp + (-0x4)) = eax; /* 0x36127F34: mov dword ptr [ebp - 4], eax */ 17841 edi = esi + 0x1654; /* 0x36127F37: lea edi, [esi + 0x1654] */ 17842 ecx = MEM32(ebp + (-0x1C)); /* 0x36127F3D: mov ecx, dword ptr [ebp - 0x1c] */ 17843 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36127F40: fstp dword ptr [ebp - 8] */ 17844 MEM32(ebp + (-0xC)) = ecx; /* 0x36127F43: mov dword ptr [ebp - 0xc], ecx */ 17845 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36127F46: fld dword ptr [ebp - 4] */ 17846 ecx = edi; /* 0x36127F49: mov ecx, edi */ 17847 _st[0] *= (double)*(float*)ADDR(0x36170E94); /* 0x36127F4B: fmul dword ptr [0x36170e94] */ 17848 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36127F51: fstp dword ptr [ebp - 4] */ 17849 _st[0] += (double)*(float*)ADDR(edi); /* 0x36127F54: fadd dword ptr [edi] */ 17850 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36127F56: fstp dword ptr [edi] */ 17851 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36127F58: fld dword ptr [ebp - 8] */ 17852 _st[0] += (double)*(float*)ADDR(edi + 0x4); /* 0x36127F5B: fadd dword ptr [edi + 4] */ 17853 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x36127F5E: fstp dword ptr [edi + 4] */ 17854 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36127F61: fld dword ptr [ebp - 4] */ 17855 _st[0] += (double)*(float*)ADDR(edi + 0x8); /* 0x36127F64: fadd dword ptr [edi + 8] */ 17856 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x8) = _v; } /* 0x36127F67: fstp dword ptr [edi + 8] */ 17857 fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x36127F6A: fld dword ptr [edi + 8] */ 17858 fp_push(*(float*)&MEM32(edi + 0x4)); /* 0x36127F6D: fld dword ptr [edi + 4] */ 17859 fp_push(*(float*)&MEM32(edi)); /* 0x36127F70: fld dword ptr [edi] */ 17860 fp_push(_st[0]); /* 0x36127F72: fld st(0) */ 17861 _st[0] *= _st[1]; /* 0x36127F74: fmul st(1) */ 17862 fp_push(_st[2]); /* 0x36127F76: fld st(2) */ 17863 _st[0] *= _st[3]; /* 0x36127F78: fmul st(3) */ 17864 { double _v = fp_pop(); _st[0] += _v; } /* 0x36127F7A: faddp st(1) */ 17865 fp_push(_st[3]); /* 0x36127F7C: fld st(3) */ 17866 _st[0] *= _st[4]; /* 0x36127F7E: fmul st(4) */ 17867 { double _v = fp_pop(); _st[0] += _v; } /* 0x36127F80: faddp st(1) */ 17868 _st[0] = sqrt(_st[0]); /* 0x36127F82: fsqrt */ 17869 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36127F84: fstp st(3) */ 17870 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36127F86: fstp st(0) */ 17871 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36127F88: fstp st(0) */ 17872 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36127F8A: fdivr dword ptr [0x36170380] */ 17873 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36127F90: fstp dword ptr [esp] */ 17874 RECOMP_ICALL(MEM32(0x36170184)); /* 0x36127F93: call dword ptr [0x36170184] */ 17875 RECOMP_FLAGS_IN(); 17876 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36127F99: fld dword ptr [ebp + 8] */ 17877 eax = MEM32(esi + 0x1650); /* 0x36127F9C: mov eax, dword ptr [esi + 0x1650] */ 17878 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36127FA2: fcomp dword ptr [0x3617040c] */ 17879 fp_pop(); 17880 ecx = MEM32(esi + 0x1648); /* 0x36127FA8: mov ecx, dword ptr [esi + 0x1648] */ 17881 edx = MEM32(esi + 0x164C); /* 0x36127FAE: mov edx, dword ptr [esi + 0x164c] */ 17882 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1648u); 17883 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17884 esi = esi + 0x1648u; /* 0x36127FB4: add esi, 0x1648 */ 17885 _flag_k = FK_ADD; 17886 MEM32(ebp + (-0x34)) = eax; /* 0x36127FBA: mov dword ptr [ebp - 0x34], eax */ 17887 MEM32(ebp + (-0x24)) = eax; /* 0x36127FBD: mov dword ptr [ebp - 0x24], eax */ 17888 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36127FC0: fnstsw ax */ 17889 MEM32(ebp + (-0x3C)) = ecx; /* 0x36127FC2: mov dword ptr [ebp - 0x3c], ecx */ 17890 /* test HI8(eax), 1 */ /* 0x36127FC5: test ah, 1 */ 17891 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 17892 _cf = 0; 17893 _flag_k = FK_NARROW(FK_TEST, 24); 17894 MEM32(ebp + (-0x30)) = 0; /* 0x36127FC8: mov dword ptr [ebp - 0x30], 0 */ 17895 MEM32(ebp + (-0x2C)) = ecx; /* 0x36127FCF: mov dword ptr [ebp - 0x2c], ecx */ 17896 ecx = MEM32(ebp + (-0x30)); /* 0x36127FD2: mov ecx, dword ptr [ebp - 0x30] */ 17897 MEM32(ebp + (-0x38)) = edx; /* 0x36127FD5: mov dword ptr [ebp - 0x38], edx */ 17898 MEM32(ebp + (-0x28)) = edx; /* 0x36127FD8: mov dword ptr [ebp - 0x28], edx */ 17899 MEM32(ebp + (-0x20)) = ecx; /* 0x36127FDB: mov dword ptr [ebp - 0x20], ecx */ 17900 if (TEST_NZ(_flag_a, _flag_b)) goto L_36127FFB; /* 0x36127FDE: jne 0x36127ffb */ 17901 L_36127FE0: 17902 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36127FE0: fld dword ptr [ebp + 8] */ 17903 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36127FE3: fcomp qword ptr [0x361708b8] */ 17904 fp_pop(); 17905 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36127FE9: fnstsw ax */ 17906 /* test HI8(eax), 1 */ /* 0x36127FEB: test ah, 1 */ 17907 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 17908 _cf = 0; 17909 _flag_k = FK_NARROW(FK_TEST, 24); 17910 if (TEST_Z(_flag_a, _flag_b)) goto L_36127FFB; /* 0x36127FEE: je 0x36127ffb */ 17911 L_36127FF0: 17912 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36127FF0: fld dword ptr [ebp + 8] */ 17913 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36127FF3: fmul dword ptr [0x36170464] */ 17914 goto L_3612801F; /* 0x36127FF9: jmp 0x3612801f */ 17915 L_36127FFB: 17916 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36127FFB: fld dword ptr [ebp + 8] */ 17917 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 17918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17919 esp = esp - 8; /* 0x36127FFE: sub esp, 8 */ 17920 _flag_k = FK_CMP; 17921 _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x36128001: fmul dword ptr [0x361708b4] */ 17922 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x36128007: fst dword ptr [ebp + 8] */ 17923 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3612800A: fstp qword ptr [esp] */ 17924 RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3612800D: call dword ptr [0x3616f198] */ 17925 RECOMP_FLAGS_IN(); 17926 _st[0] = (double)*(float*)ADDR(ebp + 0x8) - _st[0]; /* 0x36128013: fsubr dword ptr [ebp + 8] */ 17927 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 17928 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17929 esp = esp + 8; /* 0x36128016: add esp, 8 */ 17930 _flag_k = FK_ADD; 17931 _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36128019: fmul dword ptr [0x361708b0] */ 17932 L_3612801F: 17933 fp_push(_st[0]); /* 0x3612801F: fld st(0) */ 17934 ecx = ebp + (-0x10); /* 0x36128021: lea ecx, [ebp - 0x10] */ 17935 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36128024: fsin */ 17936 fp_push(_st[0]); /* 0x36128026: fld st(0) */ 17937 _st[0] *= (double)*(float*)ADDR(edi); /* 0x36128028: fmul dword ptr [edi] */ 17938 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612802A: fstp dword ptr [ebp - 0x3c] */ 17939 fp_push(_st[0]); /* 0x3612802D: fld st(0) */ 17940 _st[0] *= (double)*(float*)ADDR(edi + 0x4); /* 0x3612802F: fmul dword ptr [edi + 4] */ 17941 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36128032: fstp dword ptr [ebp - 0x38] */ 17942 ebx = MEM32(ebp + (-0x38)); /* 0x36128035: mov ebx, dword ptr [ebp - 0x38] */ 17943 MEM32(ebp + (-0xC)) = ebx; /* 0x36128038: mov dword ptr [ebp - 0xc], ebx */ 17944 _st[0] *= (double)*(float*)ADDR(edi + 0x8); /* 0x3612803B: fmul dword ptr [edi + 8] */ 17945 edi = MEM32(ebp + (-0x3C)); /* 0x3612803E: mov edi, dword ptr [ebp - 0x3c] */ 17946 MEM32(ebp + (-0x10)) = edi; /* 0x36128041: mov dword ptr [ebp - 0x10], edi */ 17947 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36128044: fstp dword ptr [ebp - 0x34] */ 17948 edx = MEM32(ebp + (-0x34)); /* 0x36128047: mov edx, dword ptr [ebp - 0x34] */ 17949 MEM32(ebp + (-0x8)) = edx; /* 0x3612804A: mov dword ptr [ebp - 8], edx */ 17950 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3612804D: fcos */ 17951 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3612804F: fstp dword ptr [ebp - 0x30] */ 17952 eax = MEM32(ebp + (-0x30)); /* 0x36128052: mov eax, dword ptr [ebp - 0x30] */ 17953 MEM32(ebp + (-0x4)) = eax; /* 0x36128055: mov dword ptr [ebp - 4], eax */ 17954 RECOMP_ICALL(MEM32(0x361701EC)); /* 0x36128058: call dword ptr [0x361701ec] */ 17955 RECOMP_FLAGS_IN(); 17956 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x3612805E: fdivr dword ptr [0x36170380] */ 17957 MEM32(ebp + (-0x4C)) = edi; /* 0x36128064: mov dword ptr [ebp - 0x4c], edi */ 17958 MEM32(ebp + (-0x48)) = ebx; /* 0x36128067: mov dword ptr [ebp - 0x48], ebx */ 17959 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3612806A: fld dword ptr [ebp - 0x10] */ 17960 _st[0] *= _st[1]; /* 0x3612806D: fmul st(1) */ 17961 _st[0] = -_st[0]; /* 0x3612806F: fchs */ 17962 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36128071: fstp dword ptr [ebp - 0x10] */ 17963 ecx = MEM32(ebp + (-0x10)); /* 0x36128074: mov ecx, dword ptr [ebp - 0x10] */ 17964 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36128077: fld dword ptr [ebp - 0xc] */ 17965 MEM32(ebp + (-0x5C)) = ecx; /* 0x3612807A: mov dword ptr [ebp - 0x5c], ecx */ 17966 _st[0] *= _st[1]; /* 0x3612807D: fmul st(1) */ 17967 _st[0] = -_st[0]; /* 0x3612807F: fchs */ 17968 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36128081: fstp dword ptr [ebp - 0xc] */ 17969 edx = MEM32(ebp + (-0xC)); /* 0x36128084: mov edx, dword ptr [ebp - 0xc] */ 17970 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36128087: fld dword ptr [ebp - 8] */ 17971 MEM32(ebp + (-0x58)) = edx; /* 0x3612808A: mov dword ptr [ebp - 0x58], edx */ 17972 edx = MEM32(ebp + (-0x34)); /* 0x3612808D: mov edx, dword ptr [ebp - 0x34] */ 17973 _st[0] *= _st[1]; /* 0x36128090: fmul st(1) */ 17974 MEM32(ebp + (-0x44)) = edx; /* 0x36128092: mov dword ptr [ebp - 0x44], edx */ 17975 _st[0] = -_st[0]; /* 0x36128095: fchs */ 17976 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36128097: fstp dword ptr [ebp - 8] */ 17977 eax = MEM32(ebp + (-0x8)); /* 0x3612809A: mov eax, dword ptr [ebp - 8] */ 17978 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3612809D: fld dword ptr [ebp - 4] */ 17979 MEM32(ebp + (-0x54)) = eax; /* 0x361280A0: mov dword ptr [ebp - 0x54], eax */ 17980 eax = MEM32(ebp + (-0x30)); /* 0x361280A3: mov eax, dword ptr [ebp - 0x30] */ 17981 _st[0] *= _st[1]; /* 0x361280A6: fmul st(1) */ 17982 MEM32(ebp + (-0x40)) = eax; /* 0x361280A8: mov dword ptr [ebp - 0x40], eax */ 17983 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361280AB: fstp dword ptr [ebp - 4] */ 17984 ecx = MEM32(ebp + (-0x4)); /* 0x361280AE: mov ecx, dword ptr [ebp - 4] */ 17985 MEM32(ebp + (-0x50)) = ecx; /* 0x361280B1: mov dword ptr [ebp - 0x50], ecx */ 17986 ecx = ebp + (-0x2C); /* 0x361280B4: lea ecx, [ebp - 0x2c] */ 17987 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361280B7: fstp st(0) */ 17988 PUSH32(esp, ecx); /* 0x361280B9: push ecx */ 17989 ecx = ebp + (-0x4C); /* 0x361280BA: lea ecx, [ebp - 0x4c] */ 17990 RECOMP_ICALL(MEM32(0x3617019C)); /* 0x361280BD: call dword ptr [0x3617019c] */ 17991 RECOMP_FLAGS_IN(); 17992 edx = MEM32(eax); /* 0x361280C3: mov edx, dword ptr [eax] */ 17993 ecx = MEM32(eax + 0x4); /* 0x361280C5: mov ecx, dword ptr [eax + 4] */ 17994 MEM32(ebp + (-0x38)) = ecx; /* 0x361280C8: mov dword ptr [ebp - 0x38], ecx */ 17995 MEM32(ebp + (-0x3C)) = edx; /* 0x361280CB: mov dword ptr [ebp - 0x3c], edx */ 17996 edx = MEM32(eax + 0x8); /* 0x361280CE: mov edx, dword ptr [eax + 8] */ 17997 eax = MEM32(eax + 0xC); /* 0x361280D1: mov eax, dword ptr [eax + 0xc] */ 17998 ecx = ebp + (-0x5C); /* 0x361280D4: lea ecx, [ebp - 0x5c] */ 17999 PUSH32(esp, ecx); /* 0x361280D7: push ecx */ 18000 ecx = ebp + (-0x3C); /* 0x361280D8: lea ecx, [ebp - 0x3c] */ 18001 MEM32(ebp + (-0x34)) = edx; /* 0x361280DB: mov dword ptr [ebp - 0x34], edx */ 18002 MEM32(ebp + (-0x30)) = eax; /* 0x361280DE: mov dword ptr [ebp - 0x30], eax */ 18003 RECOMP_ICALL(MEM32(0x3617019C)); /* 0x361280E1: call dword ptr [0x3617019c] */ 18004 RECOMP_FLAGS_IN(); 18005 edx = MEM32(eax); /* 0x361280E7: mov edx, dword ptr [eax] */ 18006 MEM32(ebp + (-0x2C)) = edx; /* 0x361280E9: mov dword ptr [ebp - 0x2c], edx */ 18007 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x361280EC: fld dword ptr [ebp - 0x2c] */ 18008 ecx = MEM32(eax + 0x4); /* 0x361280EF: mov ecx, dword ptr [eax + 4] */ 18009 MEM32(ebp + (-0x28)) = ecx; /* 0x361280F2: mov dword ptr [ebp - 0x28], ecx */ 18010 edx = MEM32(eax + 0x8); /* 0x361280F5: mov edx, dword ptr [eax + 8] */ 18011 MEM32(ebp + (-0x24)) = edx; /* 0x361280F8: mov dword ptr [ebp - 0x24], edx */ 18012 eax = MEM32(eax + 0xC); /* 0x361280FB: mov eax, dword ptr [eax + 0xc] */ 18013 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361280FE: fstp dword ptr [ebp - 0x1c] */ 18014 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36128101: fld dword ptr [ebp - 0x28] */ 18015 MEM32(ebp + (-0x20)) = eax; /* 0x36128104: mov dword ptr [ebp - 0x20], eax */ 18016 edx = MEM32(ebp + (-0x1C)); /* 0x36128107: mov edx, dword ptr [ebp - 0x1c] */ 18017 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3612810A: fstp dword ptr [ebp - 0x18] */ 18018 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3612810D: fld dword ptr [ebp - 0x24] */ 18019 eax = MEM32(ebp + (-0x18)); /* 0x36128110: mov eax, dword ptr [ebp - 0x18] */ 18020 ecx = esi; /* 0x36128113: mov ecx, esi */ 18021 MEM32(ecx) = edx; /* 0x36128115: mov dword ptr [ecx], edx */ 18022 MEM32(ecx + 0x4) = eax; /* 0x36128117: mov dword ptr [ecx + 4], eax */ 18023 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3612811A: fstp dword ptr [ebp - 0x14] */ 18024 edx = MEM32(ebp + (-0x14)); /* 0x3612811D: mov edx, dword ptr [ebp - 0x14] */ 18025 MEM32(ecx + 0x8) = edx; /* 0x36128120: mov dword ptr [ecx + 8], edx */ 18026 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36128123: fld dword ptr [esi + 8] */ 18027 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x36128126: fld dword ptr [esi + 4] */ 18028 edi = POP32_VAL(esp); /* 0x36128129: pop edi */ 18029 fp_push(*(float*)&MEM32(esi)); /* 0x3612812A: fld dword ptr [esi] */ 18030 fp_push(_st[0]); /* 0x3612812C: fld st(0) */ 18031 _st[0] *= _st[1]; /* 0x3612812E: fmul st(1) */ 18032 fp_push(_st[2]); /* 0x36128130: fld st(2) */ 18033 _st[0] *= _st[3]; /* 0x36128132: fmul st(3) */ 18034 { double _v = fp_pop(); _st[0] += _v; } /* 0x36128134: faddp st(1) */ 18035 fp_push(_st[3]); /* 0x36128136: fld st(3) */ 18036 _st[0] *= _st[4]; /* 0x36128138: fmul st(4) */ 18037 { double _v = fp_pop(); _st[0] += _v; } /* 0x3612813A: faddp st(1) */ 18038 _st[0] = sqrt(_st[0]); /* 0x3612813C: fsqrt */ 18039 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3612813E: fstp st(3) */ 18040 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128140: fstp st(0) */ 18041 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128142: fstp st(0) */ 18042 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36128144: fdivr dword ptr [0x36170380] */ 18043 fp_push(_st[0]); /* 0x3612814A: fld st(0) */ 18044 _st[0] *= (double)*(float*)ADDR(esi); /* 0x3612814C: fmul dword ptr [esi] */ 18045 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3612814E: fstp dword ptr [esi] */ 18046 fp_push(_st[0]); /* 0x36128150: fld st(0) */ 18047 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x36128152: fmul dword ptr [esi + 4] */ 18048 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36128155: fstp dword ptr [esi + 4] */ 18049 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x36128158: fmul dword ptr [esi + 8] */ 18050 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x3612815B: fstp dword ptr [esi + 8] */ 18051 esi = POP32_VAL(esp); /* 0x3612815E: pop esi */ 18052 ebx = POP32_VAL(esp); /* 0x3612815F: pop ebx */ 18053 esp = ebp; /* 0x36128160: mov esp, ebp */ 18054 ebp = POP32_VAL(esp); /* 0x36128162: pop ebp */ 18055 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36128163: ret 4 */ 18056 RECOMP_REGS_OUT(); 18057 } 18058 18059 void sub_3612801F(void) { 18060 int _fpu_cmp = 0; 18061 uint32_t _cf = 0; 18062 int _df = 1; 18063 uint32_t _flag_k = FK_NONE; 18064 uint32_t _flag_a = 0, _flag_b = 0; 18065 uint32_t _itail_tgt = 0; 18066 RECOMP_REGS_LOCALS 18067 RECOMP_ENTER(0x3612801Fu); 18068 18069 L_3612801F: 18070 fp_push(_st[0]); /* 0x3612801F: fld st(0) */ 18071 ecx = ebp + (-0x10); /* 0x36128021: lea ecx, [ebp - 0x10] */ 18072 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36128024: fsin */ 18073 fp_push(_st[0]); /* 0x36128026: fld st(0) */ 18074 _st[0] *= (double)*(float*)ADDR(edi); /* 0x36128028: fmul dword ptr [edi] */ 18075 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3612802A: fstp dword ptr [ebp - 0x3c] */ 18076 fp_push(_st[0]); /* 0x3612802D: fld st(0) */ 18077 _st[0] *= (double)*(float*)ADDR(edi + 0x4); /* 0x3612802F: fmul dword ptr [edi + 4] */ 18078 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36128032: fstp dword ptr [ebp - 0x38] */ 18079 ebx = MEM32(ebp + (-0x38)); /* 0x36128035: mov ebx, dword ptr [ebp - 0x38] */ 18080 MEM32(ebp + (-0xC)) = ebx; /* 0x36128038: mov dword ptr [ebp - 0xc], ebx */ 18081 _st[0] *= (double)*(float*)ADDR(edi + 0x8); /* 0x3612803B: fmul dword ptr [edi + 8] */ 18082 edi = MEM32(ebp + (-0x3C)); /* 0x3612803E: mov edi, dword ptr [ebp - 0x3c] */ 18083 MEM32(ebp + (-0x10)) = edi; /* 0x36128041: mov dword ptr [ebp - 0x10], edi */ 18084 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36128044: fstp dword ptr [ebp - 0x34] */ 18085 edx = MEM32(ebp + (-0x34)); /* 0x36128047: mov edx, dword ptr [ebp - 0x34] */ 18086 MEM32(ebp + (-0x8)) = edx; /* 0x3612804A: mov dword ptr [ebp - 8], edx */ 18087 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3612804D: fcos */ 18088 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3612804F: fstp dword ptr [ebp - 0x30] */ 18089 eax = MEM32(ebp + (-0x30)); /* 0x36128052: mov eax, dword ptr [ebp - 0x30] */ 18090 MEM32(ebp + (-0x4)) = eax; /* 0x36128055: mov dword ptr [ebp - 4], eax */ 18091 RECOMP_ICALL(MEM32(0x361701EC)); /* 0x36128058: call dword ptr [0x361701ec] */ 18092 RECOMP_FLAGS_IN(); 18093 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x3612805E: fdivr dword ptr [0x36170380] */ 18094 MEM32(ebp + (-0x4C)) = edi; /* 0x36128064: mov dword ptr [ebp - 0x4c], edi */ 18095 MEM32(ebp + (-0x48)) = ebx; /* 0x36128067: mov dword ptr [ebp - 0x48], ebx */ 18096 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3612806A: fld dword ptr [ebp - 0x10] */ 18097 _st[0] *= _st[1]; /* 0x3612806D: fmul st(1) */ 18098 _st[0] = -_st[0]; /* 0x3612806F: fchs */ 18099 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36128071: fstp dword ptr [ebp - 0x10] */ 18100 ecx = MEM32(ebp + (-0x10)); /* 0x36128074: mov ecx, dword ptr [ebp - 0x10] */ 18101 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36128077: fld dword ptr [ebp - 0xc] */ 18102 MEM32(ebp + (-0x5C)) = ecx; /* 0x3612807A: mov dword ptr [ebp - 0x5c], ecx */ 18103 _st[0] *= _st[1]; /* 0x3612807D: fmul st(1) */ 18104 _st[0] = -_st[0]; /* 0x3612807F: fchs */ 18105 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36128081: fstp dword ptr [ebp - 0xc] */ 18106 edx = MEM32(ebp + (-0xC)); /* 0x36128084: mov edx, dword ptr [ebp - 0xc] */ 18107 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36128087: fld dword ptr [ebp - 8] */ 18108 MEM32(ebp + (-0x58)) = edx; /* 0x3612808A: mov dword ptr [ebp - 0x58], edx */ 18109 edx = MEM32(ebp + (-0x34)); /* 0x3612808D: mov edx, dword ptr [ebp - 0x34] */ 18110 _st[0] *= _st[1]; /* 0x36128090: fmul st(1) */ 18111 MEM32(ebp + (-0x44)) = edx; /* 0x36128092: mov dword ptr [ebp - 0x44], edx */ 18112 _st[0] = -_st[0]; /* 0x36128095: fchs */ 18113 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36128097: fstp dword ptr [ebp - 8] */ 18114 eax = MEM32(ebp + (-0x8)); /* 0x3612809A: mov eax, dword ptr [ebp - 8] */ 18115 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3612809D: fld dword ptr [ebp - 4] */ 18116 MEM32(ebp + (-0x54)) = eax; /* 0x361280A0: mov dword ptr [ebp - 0x54], eax */ 18117 eax = MEM32(ebp + (-0x30)); /* 0x361280A3: mov eax, dword ptr [ebp - 0x30] */ 18118 _st[0] *= _st[1]; /* 0x361280A6: fmul st(1) */ 18119 MEM32(ebp + (-0x40)) = eax; /* 0x361280A8: mov dword ptr [ebp - 0x40], eax */ 18120 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361280AB: fstp dword ptr [ebp - 4] */ 18121 ecx = MEM32(ebp + (-0x4)); /* 0x361280AE: mov ecx, dword ptr [ebp - 4] */ 18122 MEM32(ebp + (-0x50)) = ecx; /* 0x361280B1: mov dword ptr [ebp - 0x50], ecx */ 18123 ecx = ebp + (-0x2C); /* 0x361280B4: lea ecx, [ebp - 0x2c] */ 18124 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361280B7: fstp st(0) */ 18125 PUSH32(esp, ecx); /* 0x361280B9: push ecx */ 18126 ecx = ebp + (-0x4C); /* 0x361280BA: lea ecx, [ebp - 0x4c] */ 18127 RECOMP_ICALL(MEM32(0x3617019C)); /* 0x361280BD: call dword ptr [0x3617019c] */ 18128 RECOMP_FLAGS_IN(); 18129 edx = MEM32(eax); /* 0x361280C3: mov edx, dword ptr [eax] */ 18130 ecx = MEM32(eax + 0x4); /* 0x361280C5: mov ecx, dword ptr [eax + 4] */ 18131 MEM32(ebp + (-0x38)) = ecx; /* 0x361280C8: mov dword ptr [ebp - 0x38], ecx */ 18132 MEM32(ebp + (-0x3C)) = edx; /* 0x361280CB: mov dword ptr [ebp - 0x3c], edx */ 18133 edx = MEM32(eax + 0x8); /* 0x361280CE: mov edx, dword ptr [eax + 8] */ 18134 eax = MEM32(eax + 0xC); /* 0x361280D1: mov eax, dword ptr [eax + 0xc] */ 18135 ecx = ebp + (-0x5C); /* 0x361280D4: lea ecx, [ebp - 0x5c] */ 18136 PUSH32(esp, ecx); /* 0x361280D7: push ecx */ 18137 ecx = ebp + (-0x3C); /* 0x361280D8: lea ecx, [ebp - 0x3c] */ 18138 MEM32(ebp + (-0x34)) = edx; /* 0x361280DB: mov dword ptr [ebp - 0x34], edx */ 18139 MEM32(ebp + (-0x30)) = eax; /* 0x361280DE: mov dword ptr [ebp - 0x30], eax */ 18140 RECOMP_ICALL(MEM32(0x3617019C)); /* 0x361280E1: call dword ptr [0x3617019c] */ 18141 RECOMP_FLAGS_IN(); 18142 edx = MEM32(eax); /* 0x361280E7: mov edx, dword ptr [eax] */ 18143 MEM32(ebp + (-0x2C)) = edx; /* 0x361280E9: mov dword ptr [ebp - 0x2c], edx */ 18144 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x361280EC: fld dword ptr [ebp - 0x2c] */ 18145 ecx = MEM32(eax + 0x4); /* 0x361280EF: mov ecx, dword ptr [eax + 4] */ 18146 MEM32(ebp + (-0x28)) = ecx; /* 0x361280F2: mov dword ptr [ebp - 0x28], ecx */ 18147 edx = MEM32(eax + 0x8); /* 0x361280F5: mov edx, dword ptr [eax + 8] */ 18148 MEM32(ebp + (-0x24)) = edx; /* 0x361280F8: mov dword ptr [ebp - 0x24], edx */ 18149 eax = MEM32(eax + 0xC); /* 0x361280FB: mov eax, dword ptr [eax + 0xc] */ 18150 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361280FE: fstp dword ptr [ebp - 0x1c] */ 18151 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36128101: fld dword ptr [ebp - 0x28] */ 18152 MEM32(ebp + (-0x20)) = eax; /* 0x36128104: mov dword ptr [ebp - 0x20], eax */ 18153 edx = MEM32(ebp + (-0x1C)); /* 0x36128107: mov edx, dword ptr [ebp - 0x1c] */ 18154 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3612810A: fstp dword ptr [ebp - 0x18] */ 18155 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3612810D: fld dword ptr [ebp - 0x24] */ 18156 eax = MEM32(ebp + (-0x18)); /* 0x36128110: mov eax, dword ptr [ebp - 0x18] */ 18157 ecx = esi; /* 0x36128113: mov ecx, esi */ 18158 MEM32(ecx) = edx; /* 0x36128115: mov dword ptr [ecx], edx */ 18159 MEM32(ecx + 0x4) = eax; /* 0x36128117: mov dword ptr [ecx + 4], eax */ 18160 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3612811A: fstp dword ptr [ebp - 0x14] */ 18161 edx = MEM32(ebp + (-0x14)); /* 0x3612811D: mov edx, dword ptr [ebp - 0x14] */ 18162 MEM32(ecx + 0x8) = edx; /* 0x36128120: mov dword ptr [ecx + 8], edx */ 18163 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36128123: fld dword ptr [esi + 8] */ 18164 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x36128126: fld dword ptr [esi + 4] */ 18165 edi = POP32_VAL(esp); /* 0x36128129: pop edi */ 18166 fp_push(*(float*)&MEM32(esi)); /* 0x3612812A: fld dword ptr [esi] */ 18167 fp_push(_st[0]); /* 0x3612812C: fld st(0) */ 18168 _st[0] *= _st[1]; /* 0x3612812E: fmul st(1) */ 18169 fp_push(_st[2]); /* 0x36128130: fld st(2) */ 18170 _st[0] *= _st[3]; /* 0x36128132: fmul st(3) */ 18171 { double _v = fp_pop(); _st[0] += _v; } /* 0x36128134: faddp st(1) */ 18172 fp_push(_st[3]); /* 0x36128136: fld st(3) */ 18173 _st[0] *= _st[4]; /* 0x36128138: fmul st(4) */ 18174 { double _v = fp_pop(); _st[0] += _v; } /* 0x3612813A: faddp st(1) */ 18175 _st[0] = sqrt(_st[0]); /* 0x3612813C: fsqrt */ 18176 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3612813E: fstp st(3) */ 18177 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128140: fstp st(0) */ 18178 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128142: fstp st(0) */ 18179 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36128144: fdivr dword ptr [0x36170380] */ 18180 fp_push(_st[0]); /* 0x3612814A: fld st(0) */ 18181 _st[0] *= (double)*(float*)ADDR(esi); /* 0x3612814C: fmul dword ptr [esi] */ 18182 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3612814E: fstp dword ptr [esi] */ 18183 fp_push(_st[0]); /* 0x36128150: fld st(0) */ 18184 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x36128152: fmul dword ptr [esi + 4] */ 18185 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36128155: fstp dword ptr [esi + 4] */ 18186 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x36128158: fmul dword ptr [esi + 8] */ 18187 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x3612815B: fstp dword ptr [esi + 8] */ 18188 esi = POP32_VAL(esp); /* 0x3612815E: pop esi */ 18189 ebx = POP32_VAL(esp); /* 0x3612815F: pop ebx */ 18190 esp = ebp; /* 0x36128160: mov esp, ebp */ 18191 ebp = POP32_VAL(esp); /* 0x36128162: pop ebp */ 18192 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36128163: ret 4 */ 18193 RECOMP_REGS_OUT(); 18194 } 18195 18196 void sub_36128170(void) { 18197 int _fpu_cmp = 0; 18198 uint32_t _cf = 0; 18199 int _df = 1; 18200 uint32_t _flag_k = FK_NONE; 18201 uint32_t _flag_a = 0, _flag_b = 0; 18202 uint32_t _itail_tgt = 0; 18203 RECOMP_REGS_LOCALS 18204 RECOMP_ENTER(0x36128170u); 18205 18206 L_36128170: 18207 PUSH32(esp, ebp); /* 0x36128170: push ebp */ 18208 ebp = esp; /* 0x36128171: mov ebp, esp */ 18209 PUSH32(esp, ecx); /* 0x36128173: push ecx */ 18210 eax = MEM32(ebp + 0x8); /* 0x36128174: mov eax, dword ptr [ebp + 8] */ 18211 /* test eax, eax */ /* 0x36128177: test eax, eax */ 18212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18213 _cf = 0; 18214 _flag_k = FK_TEST; 18215 PUSH32(esp, ebx); /* 0x36128179: push ebx */ 18216 PUSH32(esp, esi); /* 0x3612817A: push esi */ 18217 PUSH32(esp, edi); /* 0x3612817B: push edi */ 18218 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612818F; /* 0x3612817C: jne 0x3612818f */ 18219 L_3612817E: 18220 eax = MEM32(ebp + 0x28); /* 0x3612817E: mov eax, dword ptr [ebp + 0x28] */ 18221 edi = POP32_VAL(esp); /* 0x36128181: pop edi */ 18222 esi = POP32_VAL(esp); /* 0x36128182: pop esi */ 18223 MEM32(eax + 0x20) = 0; /* 0x36128183: mov dword ptr [eax + 0x20], 0 */ 18224 ebx = POP32_VAL(esp); /* 0x3612818A: pop ebx */ 18225 esp = ebp; /* 0x3612818B: mov esp, ebp */ 18226 ebp = POP32_VAL(esp); /* 0x3612818D: pop ebp */ 18227 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3612818E: ret */ 18228 L_3612818F: 18229 ecx = MEM32(eax + 0x4); /* 0x3612818F: mov ecx, dword ptr [eax + 4] */ 18230 RECOMP_ICALL(0x3615F922u); /* 0x36128192: call 0x3615f922 */ /* not lifted */ 18231 RECOMP_FLAGS_IN(); 18232 ecx = eax; /* 0x36128197: mov ecx, eax */ 18233 eax = 0x84210843u; /* 0x36128199: mov eax, 0x84210843 */ 18234 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3612819E: imul ecx */ 18235 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 18236 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 18237 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 18238 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18239 edx = edx + ecx; /* 0x361281A0: add edx, ecx */ 18240 _flag_k = FK_ADD; 18241 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361281A2: sar edx, 4 */ 18242 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18243 edx = (uint32_t)((int32_t)edx >> 4u); 18244 ecx = edx; /* 0x361281A5: mov ecx, edx */ 18245 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x361281A7: shr ecx, 0x1f */ 18246 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18247 ecx = ecx >> 31u; /* 0x361281A7: shr ecx, 0x1f */ 18248 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 18249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18250 edx = edx + ecx; /* 0x361281AA: add edx, ecx */ 18251 _flag_k = FK_ADD; 18252 edi = edx; /* 0x361281AC: mov edi, edx */ 18253 MEM32(ebp + (-0x4)) = edi; /* 0x361281AE: mov dword ptr [ebp - 4], edi */ 18254 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NE)) goto L_361281BB; /* 0x361281B1: jne 0x361281bb */ 18255 L_361281B3: 18256 edi = 1; /* 0x361281B3: mov edi, 1 */ 18257 MEM32(ebp + (-0x4)) = edi; /* 0x361281B8: mov dword ptr [ebp - 4], edi */ 18258 L_361281BB: 18259 ebx = MEM32(ebp + 0x28); /* 0x361281BB: mov ebx, dword ptr [ebp + 0x28] */ 18260 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361281BE: call dword ptr [0x3616f254] */ 18261 RECOMP_FLAGS_IN(); 18262 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x361281C4: cdq */ 18263 ecx = 0x1Eu; /* 0x361281C5: mov ecx, 0x1e */ 18264 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x361281CA: idiv ecx */ 18265 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 18266 else { eax = 0; edx = 0; } } 18267 eax = MEM32(ebp + 0xC); /* 0x361281CC: mov eax, dword ptr [ebp + 0xc] */ 18268 esi = edx; /* 0x361281CF: mov esi, edx */ 18269 /* cmp esi, eax */ /* 0x361281D1: cmp esi, eax */ 18270 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 18271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18272 _flag_k = FK_CMP; 18273 if (CMP_AE(_flag_a, _flag_b)) goto L_36128253; /* 0x361281D3: jae 0x36128253 */ 18274 L_361281D5: 18275 edx = MEM32(ebp + 0x20); /* 0x361281D5: mov edx, dword ptr [ebp + 0x20] */ 18276 eax = esi + edx; /* 0x361281D8: lea eax, [esi + edx] */ 18277 MEM32(ebp + 0x8) = eax; /* 0x361281DB: mov dword ptr [ebp + 8], eax */ 18278 eax = edi; /* 0x361281DE: mov eax, edi */ 18279 if (5u) _cf = (((eax) >> 27) & 1u); /* 0x361281E0: shl eax, 5 */ 18280 if (5u) { _flag_a = recomp_flags_pack((eax << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18281 eax = eax << 5u; /* 0x361281E0: shl eax, 5 */ 18282 MEM32(ebp + 0x20) = eax; /* 0x361281E3: mov dword ptr [ebp + 0x20], eax */ 18283 eax = MEM32(ebp + 0x14); /* 0x361281E6: mov eax, dword ptr [ebp + 0x14] */ 18284 ecx = esi; /* 0x361281E9: mov ecx, esi */ 18285 if (5u) _cf = (((ecx) >> 27) & 1u); /* 0x361281EB: shl ecx, 5 */ 18286 if (5u) { _flag_a = recomp_flags_pack((ecx << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18287 ecx = ecx << 5u; /* 0x361281EB: shl ecx, 5 */ 18288 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 18289 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18290 ecx = ecx + eax; /* 0x361281EE: add ecx, eax */ 18291 _flag_k = FK_ADD; 18292 /* cmp esi, MEM32(ebp + 0xC) */ /* 0x361281F0: cmp esi, dword ptr [ebp + 0xc] */ 18293 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 18294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18295 _flag_k = FK_CMP; 18296 if (CMP_AE(_flag_a, _flag_b)) goto L_36128253; /* 0x361281F3: jae 0x36128253 */ 18297 L_361281F5: 18298 eax = MEM32(ebp + 0x8); /* 0x361281F5: mov eax, dword ptr [ebp + 8] */ 18299 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18300 edx = 0; /* 0x361281F8: xor edx, edx */ 18301 _cf = 0; 18302 _flag_k = FK_TEST; 18303 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)edi; /* 0x361281FA: div edi */ 18304 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 18305 else { eax = 0; edx = 0; } } 18306 /* cmp eax, 0x1Eu */ /* 0x361281FC: cmp eax, 0x1e */ 18307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 18308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18309 _flag_k = FK_CMP; 18310 if (CMP_GE(_flag_a, _flag_b)) goto L_3612823D; /* 0x361281FF: jge 0x3612823d */ 18311 L_36128201: 18312 eax = eax + eax * 2; /* 0x36128201: lea eax, [eax + eax*2] */ 18313 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x36128204: shl eax, 2 */ 18314 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18315 eax = eax << 2u; /* 0x36128204: shl eax, 2 */ 18316 edx = eax + ebx + 0x3C; /* 0x36128207: lea edx, [eax + ebx + 0x3c] */ 18317 edi = ecx; /* 0x3612820B: mov edi, ecx */ 18318 ebx = MEM32(edi); /* 0x3612820D: mov ebx, dword ptr [edi] */ 18319 MEM32(edx) = ebx; /* 0x3612820F: mov dword ptr [edx], ebx */ 18320 ebx = MEM32(edi + 0x4); /* 0x36128211: mov ebx, dword ptr [edi + 4] */ 18321 MEM32(edx + 0x4) = ebx; /* 0x36128214: mov dword ptr [edx + 4], ebx */ 18322 edi = MEM32(edi + 0x8); /* 0x36128217: mov edi, dword ptr [edi + 8] */ 18323 ebx = MEM32(ebp + 0x28); /* 0x3612821A: mov ebx, dword ptr [ebp + 0x28] */ 18324 MEM32(edx + 0x8) = edi; /* 0x3612821D: mov dword ptr [edx + 8], edi */ 18325 edx = ecx + 0xC; /* 0x36128220: lea edx, [ecx + 0xc] */ 18326 edi = MEM32(edx); /* 0x36128223: mov edi, dword ptr [edx] */ 18327 eax = eax + ebx + 0x1A4; /* 0x36128225: lea eax, [eax + ebx + 0x1a4] */ 18328 MEM32(eax) = edi; /* 0x3612822C: mov dword ptr [eax], edi */ 18329 edi = MEM32(edx + 0x4); /* 0x3612822E: mov edi, dword ptr [edx + 4] */ 18330 MEM32(eax + 0x4) = edi; /* 0x36128231: mov dword ptr [eax + 4], edi */ 18331 edx = MEM32(edx + 0x8); /* 0x36128234: mov edx, dword ptr [edx + 8] */ 18332 edi = MEM32(ebp + (-0x4)); /* 0x36128237: mov edi, dword ptr [ebp - 4] */ 18333 MEM32(eax + 0x8) = edx; /* 0x3612823A: mov dword ptr [eax + 8], edx */ 18334 L_3612823D: 18335 eax = MEM32(ebp + 0x8); /* 0x3612823D: mov eax, dword ptr [ebp + 8] */ 18336 edx = MEM32(ebp + 0x20); /* 0x36128240: mov edx, dword ptr [ebp + 0x20] */ 18337 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 18338 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18339 eax = eax + edi; /* 0x36128243: add eax, edi */ 18340 _flag_k = FK_ADD; 18341 MEM32(ebp + 0x8) = eax; /* 0x36128245: mov dword ptr [ebp + 8], eax */ 18342 eax = MEM32(ebp + 0xC); /* 0x36128248: mov eax, dword ptr [ebp + 0xc] */ 18343 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 18344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18345 esi = esi + edi; /* 0x3612824B: add esi, edi */ 18346 _flag_k = FK_ADD; 18347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 18348 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18349 ecx = ecx + edx; /* 0x3612824D: add ecx, edx */ 18350 _flag_k = FK_ADD; 18351 /* cmp esi, eax */ /* 0x3612824F: cmp esi, eax */ 18352 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 18353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18354 _flag_k = FK_CMP; 18355 RECOMP_BACKEDGE(); 18356 if (CMP_B(_flag_a, _flag_b)) goto L_361281F5; /* 0x36128251: jb 0x361281f5 */ 18357 L_36128253: 18358 edi = POP32_VAL(esp); /* 0x36128253: pop edi */ 18359 esi = POP32_VAL(esp); /* 0x36128254: pop esi */ 18360 ebx = POP32_VAL(esp); /* 0x36128255: pop ebx */ 18361 esp = ebp; /* 0x36128256: mov esp, ebp */ 18362 ebp = POP32_VAL(esp); /* 0x36128258: pop ebp */ 18363 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36128259: ret */ 18364 RECOMP_REGS_OUT(); 18365 } 18366 18367 void sub_36128260(void) { 18368 int _fpu_cmp = 0; 18369 uint32_t _cf = 0; 18370 int _df = 1; 18371 uint32_t _flag_k = FK_NONE; 18372 uint32_t _flag_a = 0, _flag_b = 0; 18373 uint32_t _itail_tgt = 0; 18374 RECOMP_REGS_LOCALS 18375 RECOMP_ENTER(0x36128260u); 18376 18377 L_36128260: 18378 PUSH32(esp, ebp); /* 0x36128260: push ebp */ 18379 ebp = esp; /* 0x36128261: mov ebp, esp */ 18380 PUSH32(esp, esi); /* 0x36128263: push esi */ 18381 esi = ecx; /* 0x36128264: mov esi, ecx */ 18382 RECOMP_ICALL(0x36128630u); /* 0x36128266: call 0x36128630 */ /* not lifted */ 18383 RECOMP_FLAGS_IN(); 18384 /* test MEM8(ebp + 0x8), 1 */ /* 0x3612826B: test byte ptr [ebp + 8], 1 */ 18385 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 18386 _cf = 0; 18387 _flag_k = FK_NARROW(FK_TEST, 24); 18388 if (TEST_Z(_flag_a, _flag_b)) goto L_3612827A; /* 0x3612826F: je 0x3612827a */ 18389 L_36128271: 18390 PUSH32(esp, esi); /* 0x36128271: push esi */ 18391 RECOMP_ICALL(0x3615FCC4u); /* 0x36128272: call 0x3615fcc4 */ /* not lifted */ 18392 RECOMP_FLAGS_IN(); 18393 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18395 esp = esp + 4; /* 0x36128277: add esp, 4 */ 18396 _flag_k = FK_ADD; 18397 L_3612827A: 18398 eax = esi; /* 0x3612827A: mov eax, esi */ 18399 esi = POP32_VAL(esp); /* 0x3612827C: pop esi */ 18400 ebp = POP32_VAL(esp); /* 0x3612827D: pop ebp */ 18401 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612827E: ret 4 */ 18402 RECOMP_REGS_OUT(); 18403 } 18404 18405 void sub_36128290(void) { 18406 int _fpu_cmp = 0; 18407 uint32_t _cf = 0; 18408 int _df = 1; 18409 uint32_t _flag_k = FK_NONE; 18410 uint32_t _flag_a = 0, _flag_b = 0; 18411 uint32_t _itail_tgt = 0; 18412 RECOMP_REGS_LOCALS 18413 RECOMP_ENTER(0x36128290u); 18414 18415 L_36128290: 18416 PUSH32(esp, ebp); /* 0x36128290: push ebp */ 18417 ebp = esp; /* 0x36128291: mov ebp, esp */ 18418 PUSH32(esp, 0xFFFFFFFFu); /* 0x36128293: push -1 */ 18419 PUSH32(esp, 0x3616BB71u); /* 0x36128295: push 0x3616bb71 */ 18420 eax = MEM32(FS_BASE + (0)); /* 0x3612829A: mov eax, dword ptr fs:[0] */ 18421 PUSH32(esp, eax); /* 0x361282A0: push eax */ 18422 MEM32(FS_BASE + (0)) = esp; /* 0x361282A1: mov dword ptr fs:[0], esp */ 18423 PUSH32(esp, ecx); /* 0x361282A8: push ecx */ 18424 eax = MEM32(ebp + 0x8); /* 0x361282A9: mov eax, dword ptr [ebp + 8] */ 18425 PUSH32(esp, ebx); /* 0x361282AC: push ebx */ 18426 PUSH32(esp, esi); /* 0x361282AD: push esi */ 18427 PUSH32(esp, edi); /* 0x361282AE: push edi */ 18428 esi = ecx; /* 0x361282AF: mov esi, ecx */ 18429 PUSH32(esp, eax); /* 0x361282B1: push eax */ 18430 MEM32(ebp + (-0x10)) = esi; /* 0x361282B2: mov dword ptr [ebp - 0x10], esi */ 18431 RECOMP_ICALL(0x360FC270u); /* 0x361282B5: call 0x360fc270 */ /* not lifted */ 18432 RECOMP_FLAGS_IN(); 18433 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18434 eax = 0; /* 0x361282BA: xor eax, eax */ 18435 _cf = 0; 18436 _flag_k = FK_TEST; 18437 MEM32(ebp + (-0x4)) = eax; /* 0x361282BC: mov dword ptr [ebp - 4], eax */ 18438 MEM32(esi + 0x20) = eax; /* 0x361282BF: mov dword ptr [esi + 0x20], eax */ 18439 MEM32(esi + 0x28) = eax; /* 0x361282C2: mov dword ptr [esi + 0x28], eax */ 18440 edi = esi + 0x30; /* 0x361282C5: lea edi, [esi + 0x30] */ 18441 ebx = 0x20u; /* 0x361282C8: mov ebx, 0x20 */ 18442 L_361282CD: 18443 ecx = edi; /* 0x361282CD: mov ecx, edi */ 18444 RECOMP_ICALL(MEM32(0x36170174)); /* 0x361282CF: call dword ptr [0x36170174] */ 18445 RECOMP_FLAGS_IN(); 18446 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 18447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18448 edi = edi + 0xCu; /* 0x361282D5: add edi, 0xc */ 18449 _flag_k = FK_ADD; 18450 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 18451 ebx = ebx - 1; /* 0x361282D8: dec ebx */ 18452 _flag_k = FK_DEC; 18453 RECOMP_BACKEDGE(); 18454 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361282CD; /* 0x361282D9: jne 0x361282cd */ 18455 L_361282DB: 18456 edi = esi + 0x1B0; /* 0x361282DB: lea edi, [esi + 0x1b0] */ 18457 ebx = 0x20u; /* 0x361282E1: mov ebx, 0x20 */ 18458 L_361282E6: 18459 ecx = edi; /* 0x361282E6: mov ecx, edi */ 18460 RECOMP_ICALL(MEM32(0x36170174)); /* 0x361282E8: call dword ptr [0x36170174] */ 18461 RECOMP_FLAGS_IN(); 18462 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 18463 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18464 edi = edi + 0xCu; /* 0x361282EE: add edi, 0xc */ 18465 _flag_k = FK_ADD; 18466 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 18467 ebx = ebx - 1; /* 0x361282F1: dec ebx */ 18468 _flag_k = FK_DEC; 18469 RECOMP_BACKEDGE(); 18470 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361282E6; /* 0x361282F2: jne 0x361282e6 */ 18471 L_361282F4: 18472 edi = esi + 0x330; /* 0x361282F4: lea edi, [esi + 0x330] */ 18473 ebx = 0x20u; /* 0x361282FA: mov ebx, 0x20 */ 18474 L_361282FF: 18475 ecx = edi; /* 0x361282FF: mov ecx, edi */ 18476 RECOMP_ICALL(MEM32(0x36170174)); /* 0x36128301: call dword ptr [0x36170174] */ 18477 RECOMP_FLAGS_IN(); 18478 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 18479 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18480 edi = edi + 0xCu; /* 0x36128307: add edi, 0xc */ 18481 _flag_k = FK_ADD; 18482 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 18483 ebx = ebx - 1; /* 0x3612830A: dec ebx */ 18484 _flag_k = FK_DEC; 18485 RECOMP_BACKEDGE(); 18486 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361282FF; /* 0x3612830B: jne 0x361282ff */ 18487 L_3612830D: 18488 ecx = esi + 0x5E4; /* 0x3612830D: lea ecx, [esi + 0x5e4] */ 18489 RECOMP_ICALL(0x36137CC0u); /* 0x36128313: call 0x36137cc0 */ /* not lifted */ 18490 RECOMP_FLAGS_IN(); 18491 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18492 ebx = 0; /* 0x36128318: xor ebx, ebx */ 18493 _cf = 0; 18494 _flag_k = FK_TEST; 18495 PUSH32(esp, 0x500u); /* 0x3612831A: push 0x500 */ 18496 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3612831F: mov byte ptr [ebp - 4], 1 */ 18497 MEM32(esi + 0x630) = ebx; /* 0x36128323: mov dword ptr [esi + 0x630], ebx */ 18498 MEM32(esi) = 0x36177788u; /* 0x36128329: mov dword ptr [esi], 0x36177788 */ 18499 RECOMP_ICALL(0x3615FD6Au); /* 0x3612832F: call 0x3615fd6a */ /* not lifted */ 18500 RECOMP_FLAGS_IN(); 18501 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18502 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18503 esp = esp + 4; /* 0x36128334: add esp, 4 */ 18504 _flag_k = FK_ADD; 18505 /* cmp eax, ebx */ /* 0x36128337: cmp eax, ebx */ 18506 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 18507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18508 _flag_k = FK_CMP; 18509 if (CMP_EQ(_flag_a, _flag_b)) goto L_36128353; /* 0x36128339: je 0x36128353 */ 18510 L_3612833B: 18511 ecx = eax + 0x8; /* 0x3612833B: lea ecx, [eax + 8] */ 18512 edx = 0x20u; /* 0x3612833E: mov edx, 0x20 */ 18513 L_36128343: 18514 MEM32(ecx + (-0x8)) = ebx; /* 0x36128343: mov dword ptr [ecx - 8], ebx */ 18515 MEM32(ecx + (-0x4)) = ebx; /* 0x36128346: mov dword ptr [ecx - 4], ebx */ 18516 MEM32(ecx) = ebx; /* 0x36128349: mov dword ptr [ecx], ebx */ 18517 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 18518 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18519 ecx = ecx + 0x28u; /* 0x3612834B: add ecx, 0x28 */ 18520 _flag_k = FK_ADD; 18521 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 18522 edx = edx - 1; /* 0x3612834E: dec edx */ 18523 _flag_k = FK_DEC; 18524 RECOMP_BACKEDGE(); 18525 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36128343; /* 0x3612834F: jne 0x36128343 */ 18526 L_36128351: 18527 goto L_36128355; /* 0x36128351: jmp 0x36128355 */ 18528 L_36128353: 18529 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18530 eax = 0; /* 0x36128353: xor eax, eax */ 18531 _cf = 0; 18532 _flag_k = FK_TEST; 18533 L_36128355: 18534 ecx = esi; /* 0x36128355: mov ecx, esi */ 18535 MEM32(esi + 0x2C) = eax; /* 0x36128357: mov dword ptr [esi + 0x2c], eax */ 18536 RECOMP_ICALL(0x36129450u); /* 0x3612835A: call 0x36129450 */ /* not lifted */ 18537 RECOMP_FLAGS_IN(); 18538 ecx = MEM32(esi + 0x4); /* 0x3612835F: mov ecx, dword ptr [esi + 4] */ 18539 PUSH32(esp, ecx); /* 0x36128362: push ecx */ 18540 RECOMP_ICALL(0x360F7B00u); /* 0x36128363: call 0x360f7b00 */ /* not lifted */ 18541 RECOMP_FLAGS_IN(); 18542 ecx = eax; /* 0x36128368: mov ecx, eax */ 18543 RECOMP_ICALL(0x360FBFF0u); /* 0x3612836A: call 0x360fbff0 */ /* not lifted */ 18544 RECOMP_FLAGS_IN(); 18545 ecx = eax; /* 0x3612836F: mov ecx, eax */ 18546 RECOMP_ICALL(0x361371A0u); /* 0x36128371: call 0x361371a0 */ /* not lifted */ 18547 RECOMP_FLAGS_IN(); 18548 PUSH32(esp, 0x10Cu); /* 0x36128376: push 0x10c */ 18549 edi = eax; /* 0x3612837B: mov edi, eax */ 18550 RECOMP_ICALL(0x3615FD6Au); /* 0x3612837D: call 0x3615fd6a */ /* not lifted */ 18551 RECOMP_FLAGS_IN(); 18552 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18554 esp = esp + 4; /* 0x36128382: add esp, 4 */ 18555 _flag_k = FK_ADD; 18556 MEM32(ebp + 0x8) = eax; /* 0x36128385: mov dword ptr [ebp + 8], eax */ 18557 /* cmp eax, ebx */ /* 0x36128388: cmp eax, ebx */ 18558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 18559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18560 _flag_k = FK_CMP; 18561 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3612838A: mov byte ptr [ebp - 4], 2 */ 18562 if (CMP_EQ(_flag_a, _flag_b)) goto L_36128399; /* 0x3612838E: je 0x36128399 */ 18563 L_36128390: 18564 ecx = eax; /* 0x36128390: mov ecx, eax */ 18565 RECOMP_ICALL(0x36132920u); /* 0x36128392: call 0x36132920 */ /* not lifted */ 18566 RECOMP_FLAGS_IN(); 18567 goto L_3612839B; /* 0x36128397: jmp 0x3612839b */ 18568 L_36128399: 18569 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18570 eax = 0; /* 0x36128399: xor eax, eax */ 18571 _cf = 0; 18572 _flag_k = FK_TEST; 18573 L_3612839B: 18574 edx = MEM32(ebp + 0x10); /* 0x3612839B: mov edx, dword ptr [ebp + 0x10] */ 18575 ecx = MEM32(ebp + 0xC); /* 0x3612839E: mov ecx, dword ptr [ebp + 0xc] */ 18576 PUSH32(esp, edx); /* 0x361283A1: push edx */ 18577 edx = MEM32(esi + 0x5BC); /* 0x361283A2: mov edx, dword ptr [esi + 0x5bc] */ 18578 PUSH32(esp, ecx); /* 0x361283A8: push ecx */ 18579 PUSH32(esp, edx); /* 0x361283A9: push edx */ 18580 PUSH32(esp, edi); /* 0x361283AA: push edi */ 18581 PUSH32(esp, eax); /* 0x361283AB: push eax */ 18582 ecx = esi; /* 0x361283AC: mov ecx, esi */ 18583 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x361283AE: mov byte ptr [ebp - 4], 1 */ 18584 MEM32(esi + 0x20) = eax; /* 0x361283B2: mov dword ptr [esi + 0x20], eax */ 18585 RECOMP_ICALL(0x360FC670u); /* 0x361283B5: call 0x360fc670 */ /* not lifted */ 18586 RECOMP_FLAGS_IN(); 18587 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18588 _cf = (LO8(eax)) != 0; 18589 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361283BA: neg al */ 18590 _flag_k = FK_NARROW(FK_CMP, 24); 18591 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361283BC: sbb al, al */ 18592 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 18593 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 18594 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 18595 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 18596 SET_LO8(eax, LO8(eax) + 1); /* 0x361283BE: inc al */ 18597 _flag_k = FK_NARROW(FK_INC, 24); 18598 ecx = esi; /* 0x361283C0: mov ecx, esi */ 18599 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x361283C2: mov byte ptr [esi + 0x14], al */ 18600 RECOMP_ICALL(0x36129580u); /* 0x361283C5: call 0x36129580 */ /* not lifted */ 18601 RECOMP_FLAGS_IN(); 18602 ecx = MEM32(ebp + (-0xC)); /* 0x361283CA: mov ecx, dword ptr [ebp - 0xc] */ 18603 edi = POP32_VAL(esp); /* 0x361283CD: pop edi */ 18604 eax = esi; /* 0x361283CE: mov eax, esi */ 18605 esi = POP32_VAL(esp); /* 0x361283D0: pop esi */ 18606 ebx = POP32_VAL(esp); /* 0x361283D1: pop ebx */ 18607 MEM32(FS_BASE + (0)) = ecx; /* 0x361283D2: mov dword ptr fs:[0], ecx */ 18608 esp = ebp; /* 0x361283D9: mov esp, ebp */ 18609 ebp = POP32_VAL(esp); /* 0x361283DB: pop ebp */ 18610 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361283DC: ret 0xc */ 18611 RECOMP_REGS_OUT(); 18612 } 18613 18614 void sub_361283E0(void) { 18615 int _fpu_cmp = 0; 18616 uint32_t _cf = 0; 18617 int _df = 1; 18618 uint32_t _flag_k = FK_NONE; 18619 uint32_t _flag_a = 0, _flag_b = 0; 18620 uint32_t _itail_tgt = 0; 18621 RECOMP_REGS_LOCALS 18622 RECOMP_ENTER(0x361283E0u); 18623 18624 L_361283E0: 18625 PUSH32(esp, ebp); /* 0x361283E0: push ebp */ 18626 ebp = esp; /* 0x361283E1: mov ebp, esp */ 18627 PUSH32(esp, 0xFFFFFFFFu); /* 0x361283E3: push -1 */ 18628 PUSH32(esp, 0x3616BBAAu); /* 0x361283E5: push 0x3616bbaa */ 18629 eax = MEM32(FS_BASE + (0)); /* 0x361283EA: mov eax, dword ptr fs:[0] */ 18630 PUSH32(esp, eax); /* 0x361283F0: push eax */ 18631 MEM32(FS_BASE + (0)) = esp; /* 0x361283F1: mov dword ptr fs:[0], esp */ 18632 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 18633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18634 esp = esp - 0x44u; /* 0x361283F8: sub esp, 0x44 */ 18635 _flag_k = FK_CMP; 18636 eax = MEM32(ebp + 0x8); /* 0x361283FB: mov eax, dword ptr [ebp + 8] */ 18637 PUSH32(esp, ebx); /* 0x361283FE: push ebx */ 18638 PUSH32(esp, esi); /* 0x361283FF: push esi */ 18639 PUSH32(esp, edi); /* 0x36128400: push edi */ 18640 esi = ecx; /* 0x36128401: mov esi, ecx */ 18641 PUSH32(esp, eax); /* 0x36128403: push eax */ 18642 MEM32(ebp + (-0x10)) = esi; /* 0x36128404: mov dword ptr [ebp - 0x10], esi */ 18643 RECOMP_ICALL(0x360FC270u); /* 0x36128407: call 0x360fc270 */ /* not lifted */ 18644 RECOMP_FLAGS_IN(); 18645 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18646 eax = 0; /* 0x3612840C: xor eax, eax */ 18647 _cf = 0; 18648 _flag_k = FK_TEST; 18649 MEM32(ebp + (-0x4)) = eax; /* 0x3612840E: mov dword ptr [ebp - 4], eax */ 18650 MEM32(esi + 0x20) = eax; /* 0x36128411: mov dword ptr [esi + 0x20], eax */ 18651 MEM32(esi + 0x28) = eax; /* 0x36128414: mov dword ptr [esi + 0x28], eax */ 18652 edi = esi + 0x30; /* 0x36128417: lea edi, [esi + 0x30] */ 18653 ebx = 0x20u; /* 0x3612841A: mov ebx, 0x20 */ 18654 L_3612841F: 18655 ecx = edi; /* 0x3612841F: mov ecx, edi */ 18656 RECOMP_ICALL(MEM32(0x36170174)); /* 0x36128421: call dword ptr [0x36170174] */ 18657 RECOMP_FLAGS_IN(); 18658 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 18659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18660 edi = edi + 0xCu; /* 0x36128427: add edi, 0xc */ 18661 _flag_k = FK_ADD; 18662 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 18663 ebx = ebx - 1; /* 0x3612842A: dec ebx */ 18664 _flag_k = FK_DEC; 18665 RECOMP_BACKEDGE(); 18666 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3612841F; /* 0x3612842B: jne 0x3612841f */ 18667 L_3612842D: 18668 edi = esi + 0x1B0; /* 0x3612842D: lea edi, [esi + 0x1b0] */ 18669 ebx = 0x20u; /* 0x36128433: mov ebx, 0x20 */ 18670 L_36128438: 18671 ecx = edi; /* 0x36128438: mov ecx, edi */ 18672 RECOMP_ICALL(MEM32(0x36170174)); /* 0x3612843A: call dword ptr [0x36170174] */ 18673 RECOMP_FLAGS_IN(); 18674 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 18675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18676 edi = edi + 0xCu; /* 0x36128440: add edi, 0xc */ 18677 _flag_k = FK_ADD; 18678 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 18679 ebx = ebx - 1; /* 0x36128443: dec ebx */ 18680 _flag_k = FK_DEC; 18681 RECOMP_BACKEDGE(); 18682 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36128438; /* 0x36128444: jne 0x36128438 */ 18683 L_36128446: 18684 edi = esi + 0x330; /* 0x36128446: lea edi, [esi + 0x330] */ 18685 ebx = 0x20u; /* 0x3612844C: mov ebx, 0x20 */ 18686 L_36128451: 18687 ecx = edi; /* 0x36128451: mov ecx, edi */ 18688 RECOMP_ICALL(MEM32(0x36170174)); /* 0x36128453: call dword ptr [0x36170174] */ 18689 RECOMP_FLAGS_IN(); 18690 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 18691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18692 edi = edi + 0xCu; /* 0x36128459: add edi, 0xc */ 18693 _flag_k = FK_ADD; 18694 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 18695 ebx = ebx - 1; /* 0x3612845C: dec ebx */ 18696 _flag_k = FK_DEC; 18697 RECOMP_BACKEDGE(); 18698 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36128451; /* 0x3612845D: jne 0x36128451 */ 18699 L_3612845F: 18700 ecx = esi + 0x5E4; /* 0x3612845F: lea ecx, [esi + 0x5e4] */ 18701 RECOMP_ICALL(0x36137CC0u); /* 0x36128465: call 0x36137cc0 */ /* not lifted */ 18702 RECOMP_FLAGS_IN(); 18703 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18704 edi = 0; /* 0x3612846A: xor edi, edi */ 18705 _cf = 0; 18706 _flag_k = FK_TEST; 18707 PUSH32(esp, 0x500u); /* 0x3612846C: push 0x500 */ 18708 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36128471: mov byte ptr [ebp - 4], 1 */ 18709 MEM32(esi + 0x630) = edi; /* 0x36128475: mov dword ptr [esi + 0x630], edi */ 18710 MEM32(esi) = 0x36177788u; /* 0x3612847B: mov dword ptr [esi], 0x36177788 */ 18711 RECOMP_ICALL(0x3615FD6Au); /* 0x36128481: call 0x3615fd6a */ /* not lifted */ 18712 RECOMP_FLAGS_IN(); 18713 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18715 esp = esp + 4; /* 0x36128486: add esp, 4 */ 18716 _flag_k = FK_ADD; 18717 /* cmp eax, edi */ /* 0x36128489: cmp eax, edi */ 18718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 18719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18720 _flag_k = FK_CMP; 18721 if (CMP_EQ(_flag_a, _flag_b)) goto L_361284A5; /* 0x3612848B: je 0x361284a5 */ 18722 L_3612848D: 18723 ecx = eax + 0x8; /* 0x3612848D: lea ecx, [eax + 8] */ 18724 edx = 0x20u; /* 0x36128490: mov edx, 0x20 */ 18725 L_36128495: 18726 MEM32(ecx + (-0x8)) = edi; /* 0x36128495: mov dword ptr [ecx - 8], edi */ 18727 MEM32(ecx + (-0x4)) = edi; /* 0x36128498: mov dword ptr [ecx - 4], edi */ 18728 MEM32(ecx) = edi; /* 0x3612849B: mov dword ptr [ecx], edi */ 18729 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 18730 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18731 ecx = ecx + 0x28u; /* 0x3612849D: add ecx, 0x28 */ 18732 _flag_k = FK_ADD; 18733 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 18734 edx = edx - 1; /* 0x361284A0: dec edx */ 18735 _flag_k = FK_DEC; 18736 RECOMP_BACKEDGE(); 18737 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36128495; /* 0x361284A1: jne 0x36128495 */ 18738 L_361284A3: 18739 goto L_361284A7; /* 0x361284A3: jmp 0x361284a7 */ 18740 L_361284A5: 18741 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18742 eax = 0; /* 0x361284A5: xor eax, eax */ 18743 _cf = 0; 18744 _flag_k = FK_TEST; 18745 L_361284A7: 18746 ecx = esi; /* 0x361284A7: mov ecx, esi */ 18747 MEM32(esi + 0x2C) = eax; /* 0x361284A9: mov dword ptr [esi + 0x2c], eax */ 18748 RECOMP_ICALL(0x36129450u); /* 0x361284AC: call 0x36129450 */ /* not lifted */ 18749 RECOMP_FLAGS_IN(); 18750 ecx = MEM32(esi + 0x4); /* 0x361284B1: mov ecx, dword ptr [esi + 4] */ 18751 PUSH32(esp, ecx); /* 0x361284B4: push ecx */ 18752 RECOMP_ICALL(0x360F7B00u); /* 0x361284B5: call 0x360f7b00 */ /* not lifted */ 18753 RECOMP_FLAGS_IN(); 18754 ecx = eax; /* 0x361284BA: mov ecx, eax */ 18755 RECOMP_ICALL(0x360FBFF0u); /* 0x361284BC: call 0x360fbff0 */ /* not lifted */ 18756 RECOMP_FLAGS_IN(); 18757 ecx = eax; /* 0x361284C1: mov ecx, eax */ 18758 RECOMP_ICALL(0x361371A0u); /* 0x361284C3: call 0x361371a0 */ /* not lifted */ 18759 RECOMP_FLAGS_IN(); 18760 edx = MEM32(ebp + 0xC); /* 0x361284C8: mov edx, dword ptr [ebp + 0xc] */ 18761 edi = eax; /* 0x361284CB: mov edi, eax */ 18762 MEM32(esi + 0x24) = edx; /* 0x361284CD: mov dword ptr [esi + 0x24], edx */ 18763 MEM32(ebp + (-0x50)) = 0x3F800000u; /* 0x361284D0: mov dword ptr [ebp - 0x50], 0x3f800000 */ 18764 MEM32(ebp + (-0x4C)) = 0; /* 0x361284D7: mov dword ptr [ebp - 0x4c], 0 */ 18765 MEM32(ebp + (-0x48)) = 0; /* 0x361284DE: mov dword ptr [ebp - 0x48], 0 */ 18766 MEM32(ebp + (-0x44)) = 0; /* 0x361284E5: mov dword ptr [ebp - 0x44], 0 */ 18767 MEM32(ebp + (-0x40)) = 0; /* 0x361284EC: mov dword ptr [ebp - 0x40], 0 */ 18768 MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x361284F3: mov dword ptr [ebp - 0x3c], 0x3f800000 */ 18769 MEM32(ebp + (-0x38)) = 0; /* 0x361284FA: mov dword ptr [ebp - 0x38], 0 */ 18770 MEM32(ebp + (-0x34)) = 0; /* 0x36128501: mov dword ptr [ebp - 0x34], 0 */ 18771 MEM32(ebp + (-0x30)) = 0; /* 0x36128508: mov dword ptr [ebp - 0x30], 0 */ 18772 MEM32(ebp + (-0x2C)) = 0; /* 0x3612850F: mov dword ptr [ebp - 0x2c], 0 */ 18773 MEM32(ebp + (-0x28)) = 0x3F800000u; /* 0x36128516: mov dword ptr [ebp - 0x28], 0x3f800000 */ 18774 MEM32(ebp + (-0x24)) = 0; /* 0x3612851D: mov dword ptr [ebp - 0x24], 0 */ 18775 MEM32(ebp + (-0x20)) = 0; /* 0x36128524: mov dword ptr [ebp - 0x20], 0 */ 18776 MEM32(ebp + (-0x1C)) = 0; /* 0x3612852B: mov dword ptr [ebp - 0x1c], 0 */ 18777 MEM32(ebp + (-0x18)) = 0; /* 0x36128532: mov dword ptr [ebp - 0x18], 0 */ 18778 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x36128539: mov dword ptr [ebp - 0x14], 0x3f800000 */ 18779 ebx = 2; /* 0x36128540: mov ebx, 2 */ 18780 PUSH32(esp, 0x10Cu); /* 0x36128545: push 0x10c */ 18781 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3612854A: mov byte ptr [ebp - 4], bl */ 18782 RECOMP_ICALL(0x3615FD6Au); /* 0x3612854D: call 0x3615fd6a */ /* not lifted */ 18783 RECOMP_FLAGS_IN(); 18784 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18786 esp = esp + 4; /* 0x36128552: add esp, 4 */ 18787 _flag_k = FK_ADD; 18788 MEM32(ebp + 0x8) = eax; /* 0x36128555: mov dword ptr [ebp + 8], eax */ 18789 /* test eax, eax */ /* 0x36128558: test eax, eax */ 18790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18791 _cf = 0; 18792 _flag_k = FK_TEST; 18793 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3612855A: mov byte ptr [ebp - 4], 3 */ 18794 if (TEST_Z(_flag_a, _flag_b)) goto L_36128569; /* 0x3612855E: je 0x36128569 */ 18795 L_36128560: 18796 ecx = eax; /* 0x36128560: mov ecx, eax */ 18797 RECOMP_ICALL(0x36132920u); /* 0x36128562: call 0x36132920 */ /* not lifted */ 18798 RECOMP_FLAGS_IN(); 18799 goto L_3612856B; /* 0x36128567: jmp 0x3612856b */ 18800 L_36128569: 18801 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18802 eax = 0; /* 0x36128569: xor eax, eax */ 18803 _cf = 0; 18804 _flag_k = FK_TEST; 18805 L_3612856B: 18806 MEM32(esi + 0x20) = eax; /* 0x3612856B: mov dword ptr [esi + 0x20], eax */ 18807 eax = MEM32(esi + 0x5BC); /* 0x3612856E: mov eax, dword ptr [esi + 0x5bc] */ 18808 ecx = eax; /* 0x36128574: mov ecx, eax */ 18809 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 18810 ecx = ecx & ebx; /* 0x36128576: and ecx, ebx */ 18811 _cf = 0; 18812 _flag_k = FK_TEST; 18813 /* cmp LO8(ecx), LO8(ebx) */ /* 0x36128578: cmp cl, bl */ 18814 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18816 _flag_k = FK_NARROW(FK_CMP, 24); 18817 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3612857A: sete dl */ 18818 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18819 eax = eax & 1; /* 0x3612857D: and eax, 1 */ 18820 _cf = 0; 18821 _flag_k = FK_TEST; 18822 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 18823 SET_LO8(eax, LO8(eax) - 1); /* 0x36128580: dec al */ 18824 _flag_k = FK_NARROW(FK_DEC, 24); 18825 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18826 _cf = (LO8(eax)) != 0; 18827 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36128582: neg al */ 18828 _flag_k = FK_NARROW(FK_CMP, 24); 18829 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36128584: sbb al, al */ 18830 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 18831 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 18832 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 18833 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 18834 SET_LO8(eax, LO8(eax) + 1); /* 0x36128586: inc al */ 18835 _flag_k = FK_NARROW(FK_INC, 24); 18836 ecx = edi; /* 0x36128588: mov ecx, edi */ 18837 PUSH32(esp, edx); /* 0x3612858A: push edx */ 18838 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3612858B: mov byte ptr [ebp - 4], bl */ 18839 PUSH32(esp, eax); /* 0x3612858E: push eax */ 18840 PUSH32(esp, 7); /* 0x3612858F: push 7 */ 18841 RECOMP_ICALL(0x36136FE0u); /* 0x36128591: call 0x36136fe0 */ /* not lifted */ 18842 RECOMP_FLAGS_IN(); 18843 PUSH32(esp, eax); /* 0x36128596: push eax */ 18844 eax = MEM32(esi + 0x5BC); /* 0x36128597: mov eax, dword ptr [esi + 0x5bc] */ 18845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 18846 eax = eax & 4; /* 0x3612859D: and eax, 4 */ 18847 _cf = 0; 18848 _flag_k = FK_TEST; 18849 /* cmp LO8(eax), 4 */ /* 0x361285A0: cmp al, 4 */ 18850 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 18851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18852 _flag_k = FK_NARROW(FK_CMP, 24); 18853 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361285A2: sete cl */ 18854 PUSH32(esp, ecx); /* 0x361285A5: push ecx */ 18855 PUSH32(esp, 6); /* 0x361285A6: push 6 */ 18856 ecx = edi; /* 0x361285A8: mov ecx, edi */ 18857 RECOMP_ICALL(0x36137010u); /* 0x361285AA: call 0x36137010 */ /* not lifted */ 18858 RECOMP_FLAGS_IN(); 18859 PUSH32(esp, ecx); /* 0x361285AF: push ecx */ 18860 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285B0: fstp dword ptr [esp] */ 18861 PUSH32(esp, 5); /* 0x361285B3: push 5 */ 18862 ecx = edi; /* 0x361285B5: mov ecx, edi */ 18863 RECOMP_ICALL(0x36137010u); /* 0x361285B7: call 0x36137010 */ /* not lifted */ 18864 RECOMP_FLAGS_IN(); 18865 PUSH32(esp, ecx); /* 0x361285BC: push ecx */ 18866 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285BD: fstp dword ptr [esp] */ 18867 PUSH32(esp, 4); /* 0x361285C0: push 4 */ 18868 ecx = edi; /* 0x361285C2: mov ecx, edi */ 18869 RECOMP_ICALL(0x36137010u); /* 0x361285C4: call 0x36137010 */ /* not lifted */ 18870 RECOMP_FLAGS_IN(); 18871 PUSH32(esp, ecx); /* 0x361285C9: push ecx */ 18872 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285CA: fstp dword ptr [esp] */ 18873 PUSH32(esp, 3); /* 0x361285CD: push 3 */ 18874 ecx = edi; /* 0x361285CF: mov ecx, edi */ 18875 RECOMP_ICALL(0x36137010u); /* 0x361285D1: call 0x36137010 */ /* not lifted */ 18876 RECOMP_FLAGS_IN(); 18877 PUSH32(esp, ecx); /* 0x361285D6: push ecx */ 18878 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285D7: fstp dword ptr [esp] */ 18879 PUSH32(esp, ebx); /* 0x361285DA: push ebx */ 18880 ecx = edi; /* 0x361285DB: mov ecx, edi */ 18881 RECOMP_ICALL(0x36137010u); /* 0x361285DD: call 0x36137010 */ /* not lifted */ 18882 RECOMP_FLAGS_IN(); 18883 PUSH32(esp, ecx); /* 0x361285E2: push ecx */ 18884 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285E3: fstp dword ptr [esp] */ 18885 PUSH32(esp, 1); /* 0x361285E6: push 1 */ 18886 ecx = edi; /* 0x361285E8: mov ecx, edi */ 18887 RECOMP_ICALL(0x36137010u); /* 0x361285EA: call 0x36137010 */ /* not lifted */ 18888 RECOMP_FLAGS_IN(); 18889 PUSH32(esp, ecx); /* 0x361285EF: push ecx */ 18890 ecx = MEM32(esi + 0x20); /* 0x361285F0: mov ecx, dword ptr [esi + 0x20] */ 18891 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285F3: fstp dword ptr [esp] */ 18892 edx = ebp + (-0x50); /* 0x361285F6: lea edx, [ebp - 0x50] */ 18893 PUSH32(esp, edx); /* 0x361285F9: push edx */ 18894 RECOMP_ICALL(0x36132BA0u); /* 0x361285FA: call 0x36132ba0 */ /* not lifted */ 18895 RECOMP_FLAGS_IN(); 18896 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18897 _cf = (LO8(eax)) != 0; 18898 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361285FF: neg al */ 18899 _flag_k = FK_NARROW(FK_CMP, 24); 18900 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36128601: sbb al, al */ 18901 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 18902 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 18903 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 18904 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 18905 SET_LO8(eax, LO8(eax) + 1); /* 0x36128603: inc al */ 18906 _flag_k = FK_NARROW(FK_INC, 24); 18907 ecx = esi; /* 0x36128605: mov ecx, esi */ 18908 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36128607: mov byte ptr [esi + 0x14], al */ 18909 RECOMP_ICALL(0x36129580u); /* 0x3612860A: call 0x36129580 */ /* not lifted */ 18910 RECOMP_FLAGS_IN(); 18911 ecx = MEM32(ebp + (-0xC)); /* 0x3612860F: mov ecx, dword ptr [ebp - 0xc] */ 18912 edi = POP32_VAL(esp); /* 0x36128612: pop edi */ 18913 eax = esi; /* 0x36128613: mov eax, esi */ 18914 esi = POP32_VAL(esp); /* 0x36128615: pop esi */ 18915 ebx = POP32_VAL(esp); /* 0x36128616: pop ebx */ 18916 MEM32(FS_BASE + (0)) = ecx; /* 0x36128617: mov dword ptr fs:[0], ecx */ 18917 esp = ebp; /* 0x3612861E: mov esp, ebp */ 18918 ebp = POP32_VAL(esp); /* 0x36128620: pop ebp */ 18919 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36128621: ret 8 */ 18920 RECOMP_REGS_OUT(); 18921 } 18922 18923 void sub_36128539(void) { 18924 int _fpu_cmp = 0; 18925 uint32_t _cf = 0; 18926 int _df = 1; 18927 uint32_t _flag_k = FK_NONE; 18928 uint32_t _flag_a = 0, _flag_b = 0; 18929 uint32_t _itail_tgt = 0; 18930 RECOMP_REGS_LOCALS 18931 RECOMP_ENTER(0x36128539u); 18932 18933 L_36128539: 18934 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x36128539: mov dword ptr [ebp - 0x14], 0x3f800000 */ 18935 ebx = 2; /* 0x36128540: mov ebx, 2 */ 18936 PUSH32(esp, 0x10Cu); /* 0x36128545: push 0x10c */ 18937 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3612854A: mov byte ptr [ebp - 4], bl */ 18938 RECOMP_ICALL(0x3615FD6Au); /* 0x3612854D: call 0x3615fd6a */ /* not lifted */ 18939 RECOMP_FLAGS_IN(); 18940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18941 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18942 esp = esp + 4; /* 0x36128552: add esp, 4 */ 18943 _flag_k = FK_ADD; 18944 MEM32(ebp + 0x8) = eax; /* 0x36128555: mov dword ptr [ebp + 8], eax */ 18945 /* test eax, eax */ /* 0x36128558: test eax, eax */ 18946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18947 _cf = 0; 18948 _flag_k = FK_TEST; 18949 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3612855A: mov byte ptr [ebp - 4], 3 */ 18950 if (TEST_Z(_flag_a, _flag_b)) goto L_36128569; /* 0x3612855E: je 0x36128569 */ 18951 L_36128560: 18952 ecx = eax; /* 0x36128560: mov ecx, eax */ 18953 RECOMP_ICALL(0x36132920u); /* 0x36128562: call 0x36132920 */ /* not lifted */ 18954 RECOMP_FLAGS_IN(); 18955 goto L_3612856B; /* 0x36128567: jmp 0x3612856b */ 18956 L_36128569: 18957 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18958 eax = 0; /* 0x36128569: xor eax, eax */ 18959 _cf = 0; 18960 _flag_k = FK_TEST; 18961 L_3612856B: 18962 MEM32(esi + 0x20) = eax; /* 0x3612856B: mov dword ptr [esi + 0x20], eax */ 18963 eax = MEM32(esi + 0x5BC); /* 0x3612856E: mov eax, dword ptr [esi + 0x5bc] */ 18964 ecx = eax; /* 0x36128574: mov ecx, eax */ 18965 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 18966 ecx = ecx & ebx; /* 0x36128576: and ecx, ebx */ 18967 _cf = 0; 18968 _flag_k = FK_TEST; 18969 /* cmp LO8(ecx), LO8(ebx) */ /* 0x36128578: cmp cl, bl */ 18970 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18972 _flag_k = FK_NARROW(FK_CMP, 24); 18973 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3612857A: sete dl */ 18974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18975 eax = eax & 1; /* 0x3612857D: and eax, 1 */ 18976 _cf = 0; 18977 _flag_k = FK_TEST; 18978 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 18979 SET_LO8(eax, LO8(eax) - 1); /* 0x36128580: dec al */ 18980 _flag_k = FK_NARROW(FK_DEC, 24); 18981 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18982 _cf = (LO8(eax)) != 0; 18983 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36128582: neg al */ 18984 _flag_k = FK_NARROW(FK_CMP, 24); 18985 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36128584: sbb al, al */ 18986 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 18987 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 18988 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 18989 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 18990 SET_LO8(eax, LO8(eax) + 1); /* 0x36128586: inc al */ 18991 _flag_k = FK_NARROW(FK_INC, 24); 18992 ecx = edi; /* 0x36128588: mov ecx, edi */ 18993 PUSH32(esp, edx); /* 0x3612858A: push edx */ 18994 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3612858B: mov byte ptr [ebp - 4], bl */ 18995 PUSH32(esp, eax); /* 0x3612858E: push eax */ 18996 PUSH32(esp, 7); /* 0x3612858F: push 7 */ 18997 RECOMP_ICALL(0x36136FE0u); /* 0x36128591: call 0x36136fe0 */ /* not lifted */ 18998 RECOMP_FLAGS_IN(); 18999 PUSH32(esp, eax); /* 0x36128596: push eax */ 19000 eax = MEM32(esi + 0x5BC); /* 0x36128597: mov eax, dword ptr [esi + 0x5bc] */ 19001 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 19002 eax = eax & 4; /* 0x3612859D: and eax, 4 */ 19003 _cf = 0; 19004 _flag_k = FK_TEST; 19005 /* cmp LO8(eax), 4 */ /* 0x361285A0: cmp al, 4 */ 19006 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 19007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19008 _flag_k = FK_NARROW(FK_CMP, 24); 19009 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361285A2: sete cl */ 19010 PUSH32(esp, ecx); /* 0x361285A5: push ecx */ 19011 PUSH32(esp, 6); /* 0x361285A6: push 6 */ 19012 ecx = edi; /* 0x361285A8: mov ecx, edi */ 19013 RECOMP_ICALL(0x36137010u); /* 0x361285AA: call 0x36137010 */ /* not lifted */ 19014 RECOMP_FLAGS_IN(); 19015 PUSH32(esp, ecx); /* 0x361285AF: push ecx */ 19016 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285B0: fstp dword ptr [esp] */ 19017 PUSH32(esp, 5); /* 0x361285B3: push 5 */ 19018 ecx = edi; /* 0x361285B5: mov ecx, edi */ 19019 RECOMP_ICALL(0x36137010u); /* 0x361285B7: call 0x36137010 */ /* not lifted */ 19020 RECOMP_FLAGS_IN(); 19021 PUSH32(esp, ecx); /* 0x361285BC: push ecx */ 19022 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285BD: fstp dword ptr [esp] */ 19023 PUSH32(esp, 4); /* 0x361285C0: push 4 */ 19024 ecx = edi; /* 0x361285C2: mov ecx, edi */ 19025 RECOMP_ICALL(0x36137010u); /* 0x361285C4: call 0x36137010 */ /* not lifted */ 19026 RECOMP_FLAGS_IN(); 19027 PUSH32(esp, ecx); /* 0x361285C9: push ecx */ 19028 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285CA: fstp dword ptr [esp] */ 19029 PUSH32(esp, 3); /* 0x361285CD: push 3 */ 19030 ecx = edi; /* 0x361285CF: mov ecx, edi */ 19031 RECOMP_ICALL(0x36137010u); /* 0x361285D1: call 0x36137010 */ /* not lifted */ 19032 RECOMP_FLAGS_IN(); 19033 PUSH32(esp, ecx); /* 0x361285D6: push ecx */ 19034 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285D7: fstp dword ptr [esp] */ 19035 PUSH32(esp, ebx); /* 0x361285DA: push ebx */ 19036 ecx = edi; /* 0x361285DB: mov ecx, edi */ 19037 RECOMP_ICALL(0x36137010u); /* 0x361285DD: call 0x36137010 */ /* not lifted */ 19038 RECOMP_FLAGS_IN(); 19039 PUSH32(esp, ecx); /* 0x361285E2: push ecx */ 19040 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285E3: fstp dword ptr [esp] */ 19041 PUSH32(esp, 1); /* 0x361285E6: push 1 */ 19042 ecx = edi; /* 0x361285E8: mov ecx, edi */ 19043 RECOMP_ICALL(0x36137010u); /* 0x361285EA: call 0x36137010 */ /* not lifted */ 19044 RECOMP_FLAGS_IN(); 19045 PUSH32(esp, ecx); /* 0x361285EF: push ecx */ 19046 ecx = MEM32(esi + 0x20); /* 0x361285F0: mov ecx, dword ptr [esi + 0x20] */ 19047 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285F3: fstp dword ptr [esp] */ 19048 edx = ebp + (-0x50); /* 0x361285F6: lea edx, [ebp - 0x50] */ 19049 PUSH32(esp, edx); /* 0x361285F9: push edx */ 19050 RECOMP_ICALL(0x36132BA0u); /* 0x361285FA: call 0x36132ba0 */ /* not lifted */ 19051 RECOMP_FLAGS_IN(); 19052 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19053 _cf = (LO8(eax)) != 0; 19054 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361285FF: neg al */ 19055 _flag_k = FK_NARROW(FK_CMP, 24); 19056 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36128601: sbb al, al */ 19057 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 19058 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 19059 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 19060 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 19061 SET_LO8(eax, LO8(eax) + 1); /* 0x36128603: inc al */ 19062 _flag_k = FK_NARROW(FK_INC, 24); 19063 ecx = esi; /* 0x36128605: mov ecx, esi */ 19064 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36128607: mov byte ptr [esi + 0x14], al */ 19065 RECOMP_ICALL(0x36129580u); /* 0x3612860A: call 0x36129580 */ /* not lifted */ 19066 RECOMP_FLAGS_IN(); 19067 ecx = MEM32(ebp + (-0xC)); /* 0x3612860F: mov ecx, dword ptr [ebp - 0xc] */ 19068 edi = POP32_VAL(esp); /* 0x36128612: pop edi */ 19069 eax = esi; /* 0x36128613: mov eax, esi */ 19070 esi = POP32_VAL(esp); /* 0x36128615: pop esi */ 19071 ebx = POP32_VAL(esp); /* 0x36128616: pop ebx */ 19072 MEM32(FS_BASE + (0)) = ecx; /* 0x36128617: mov dword ptr fs:[0], ecx */ 19073 esp = ebp; /* 0x3612861E: mov esp, ebp */ 19074 ebp = POP32_VAL(esp); /* 0x36128620: pop ebp */ 19075 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36128621: ret 8 */ 19076 RECOMP_REGS_OUT(); 19077 } 19078 19079 void sub_3612856B(void) { 19080 int _fpu_cmp = 0; 19081 uint32_t _cf = 0; 19082 int _df = 1; 19083 uint32_t _flag_k = FK_NONE; 19084 uint32_t _flag_a = 0, _flag_b = 0; 19085 uint32_t _itail_tgt = 0; 19086 RECOMP_REGS_LOCALS 19087 RECOMP_ENTER(0x3612856Bu); 19088 19089 L_3612856B: 19090 MEM32(esi + 0x20) = eax; /* 0x3612856B: mov dword ptr [esi + 0x20], eax */ 19091 eax = MEM32(esi + 0x5BC); /* 0x3612856E: mov eax, dword ptr [esi + 0x5bc] */ 19092 ecx = eax; /* 0x36128574: mov ecx, eax */ 19093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 19094 ecx = ecx & ebx; /* 0x36128576: and ecx, ebx */ 19095 _cf = 0; 19096 _flag_k = FK_TEST; 19097 /* cmp LO8(ecx), LO8(ebx) */ /* 0x36128578: cmp cl, bl */ 19098 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19100 _flag_k = FK_NARROW(FK_CMP, 24); 19101 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3612857A: sete dl */ 19102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19103 eax = eax & 1; /* 0x3612857D: and eax, 1 */ 19104 _cf = 0; 19105 _flag_k = FK_TEST; 19106 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 19107 SET_LO8(eax, LO8(eax) - 1); /* 0x36128580: dec al */ 19108 _flag_k = FK_NARROW(FK_DEC, 24); 19109 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19110 _cf = (LO8(eax)) != 0; 19111 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36128582: neg al */ 19112 _flag_k = FK_NARROW(FK_CMP, 24); 19113 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36128584: sbb al, al */ 19114 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 19115 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 19116 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 19117 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 19118 SET_LO8(eax, LO8(eax) + 1); /* 0x36128586: inc al */ 19119 _flag_k = FK_NARROW(FK_INC, 24); 19120 ecx = edi; /* 0x36128588: mov ecx, edi */ 19121 PUSH32(esp, edx); /* 0x3612858A: push edx */ 19122 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3612858B: mov byte ptr [ebp - 4], bl */ 19123 PUSH32(esp, eax); /* 0x3612858E: push eax */ 19124 PUSH32(esp, 7); /* 0x3612858F: push 7 */ 19125 RECOMP_ICALL(0x36136FE0u); /* 0x36128591: call 0x36136fe0 */ /* not lifted */ 19126 RECOMP_FLAGS_IN(); 19127 PUSH32(esp, eax); /* 0x36128596: push eax */ 19128 eax = MEM32(esi + 0x5BC); /* 0x36128597: mov eax, dword ptr [esi + 0x5bc] */ 19129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 19130 eax = eax & 4; /* 0x3612859D: and eax, 4 */ 19131 _cf = 0; 19132 _flag_k = FK_TEST; 19133 /* cmp LO8(eax), 4 */ /* 0x361285A0: cmp al, 4 */ 19134 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 19135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19136 _flag_k = FK_NARROW(FK_CMP, 24); 19137 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361285A2: sete cl */ 19138 PUSH32(esp, ecx); /* 0x361285A5: push ecx */ 19139 PUSH32(esp, 6); /* 0x361285A6: push 6 */ 19140 ecx = edi; /* 0x361285A8: mov ecx, edi */ 19141 RECOMP_ICALL(0x36137010u); /* 0x361285AA: call 0x36137010 */ /* not lifted */ 19142 RECOMP_FLAGS_IN(); 19143 PUSH32(esp, ecx); /* 0x361285AF: push ecx */ 19144 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285B0: fstp dword ptr [esp] */ 19145 PUSH32(esp, 5); /* 0x361285B3: push 5 */ 19146 ecx = edi; /* 0x361285B5: mov ecx, edi */ 19147 RECOMP_ICALL(0x36137010u); /* 0x361285B7: call 0x36137010 */ /* not lifted */ 19148 RECOMP_FLAGS_IN(); 19149 PUSH32(esp, ecx); /* 0x361285BC: push ecx */ 19150 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285BD: fstp dword ptr [esp] */ 19151 PUSH32(esp, 4); /* 0x361285C0: push 4 */ 19152 ecx = edi; /* 0x361285C2: mov ecx, edi */ 19153 RECOMP_ICALL(0x36137010u); /* 0x361285C4: call 0x36137010 */ /* not lifted */ 19154 RECOMP_FLAGS_IN(); 19155 PUSH32(esp, ecx); /* 0x361285C9: push ecx */ 19156 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285CA: fstp dword ptr [esp] */ 19157 PUSH32(esp, 3); /* 0x361285CD: push 3 */ 19158 ecx = edi; /* 0x361285CF: mov ecx, edi */ 19159 RECOMP_ICALL(0x36137010u); /* 0x361285D1: call 0x36137010 */ /* not lifted */ 19160 RECOMP_FLAGS_IN(); 19161 PUSH32(esp, ecx); /* 0x361285D6: push ecx */ 19162 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285D7: fstp dword ptr [esp] */ 19163 PUSH32(esp, ebx); /* 0x361285DA: push ebx */ 19164 ecx = edi; /* 0x361285DB: mov ecx, edi */ 19165 RECOMP_ICALL(0x36137010u); /* 0x361285DD: call 0x36137010 */ /* not lifted */ 19166 RECOMP_FLAGS_IN(); 19167 PUSH32(esp, ecx); /* 0x361285E2: push ecx */ 19168 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285E3: fstp dword ptr [esp] */ 19169 PUSH32(esp, 1); /* 0x361285E6: push 1 */ 19170 ecx = edi; /* 0x361285E8: mov ecx, edi */ 19171 RECOMP_ICALL(0x36137010u); /* 0x361285EA: call 0x36137010 */ /* not lifted */ 19172 RECOMP_FLAGS_IN(); 19173 PUSH32(esp, ecx); /* 0x361285EF: push ecx */ 19174 ecx = MEM32(esi + 0x20); /* 0x361285F0: mov ecx, dword ptr [esi + 0x20] */ 19175 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361285F3: fstp dword ptr [esp] */ 19176 edx = ebp + (-0x50); /* 0x361285F6: lea edx, [ebp - 0x50] */ 19177 PUSH32(esp, edx); /* 0x361285F9: push edx */ 19178 RECOMP_ICALL(0x36132BA0u); /* 0x361285FA: call 0x36132ba0 */ /* not lifted */ 19179 RECOMP_FLAGS_IN(); 19180 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19181 _cf = (LO8(eax)) != 0; 19182 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361285FF: neg al */ 19183 _flag_k = FK_NARROW(FK_CMP, 24); 19184 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36128601: sbb al, al */ 19185 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 19186 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 19187 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 19188 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 19189 SET_LO8(eax, LO8(eax) + 1); /* 0x36128603: inc al */ 19190 _flag_k = FK_NARROW(FK_INC, 24); 19191 ecx = esi; /* 0x36128605: mov ecx, esi */ 19192 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36128607: mov byte ptr [esi + 0x14], al */ 19193 RECOMP_ICALL(0x36129580u); /* 0x3612860A: call 0x36129580 */ /* not lifted */ 19194 RECOMP_FLAGS_IN(); 19195 ecx = MEM32(ebp + (-0xC)); /* 0x3612860F: mov ecx, dword ptr [ebp - 0xc] */ 19196 edi = POP32_VAL(esp); /* 0x36128612: pop edi */ 19197 eax = esi; /* 0x36128613: mov eax, esi */ 19198 esi = POP32_VAL(esp); /* 0x36128615: pop esi */ 19199 ebx = POP32_VAL(esp); /* 0x36128616: pop ebx */ 19200 MEM32(FS_BASE + (0)) = ecx; /* 0x36128617: mov dword ptr fs:[0], ecx */ 19201 esp = ebp; /* 0x3612861E: mov esp, ebp */ 19202 ebp = POP32_VAL(esp); /* 0x36128620: pop ebp */ 19203 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36128621: ret 8 */ 19204 RECOMP_REGS_OUT(); 19205 } 19206 19207 void sub_36128630(void) { 19208 int _fpu_cmp = 0; 19209 uint32_t _cf = 0; 19210 int _df = 1; 19211 uint32_t _flag_k = FK_NONE; 19212 uint32_t _flag_a = 0, _flag_b = 0; 19213 uint32_t _itail_tgt = 0; 19214 RECOMP_REGS_LOCALS 19215 RECOMP_ENTER(0x36128630u); 19216 19217 L_36128630: 19218 PUSH32(esp, ebp); /* 0x36128630: push ebp */ 19219 ebp = esp; /* 0x36128631: mov ebp, esp */ 19220 PUSH32(esp, 0xFFFFFFFFu); /* 0x36128633: push -1 */ 19221 PUSH32(esp, 0x3616BBD6u); /* 0x36128635: push 0x3616bbd6 */ 19222 eax = MEM32(FS_BASE + (0)); /* 0x3612863A: mov eax, dword ptr fs:[0] */ 19223 PUSH32(esp, eax); /* 0x36128640: push eax */ 19224 MEM32(FS_BASE + (0)) = esp; /* 0x36128641: mov dword ptr fs:[0], esp */ 19225 PUSH32(esp, ecx); /* 0x36128648: push ecx */ 19226 PUSH32(esp, esi); /* 0x36128649: push esi */ 19227 esi = ecx; /* 0x3612864A: mov esi, ecx */ 19228 PUSH32(esp, edi); /* 0x3612864C: push edi */ 19229 MEM32(ebp + (-0x10)) = esi; /* 0x3612864D: mov dword ptr [ebp - 0x10], esi */ 19230 MEM32(esi) = 0x36177788u; /* 0x36128650: mov dword ptr [esi], 0x36177788 */ 19231 eax = MEM32(esi + 0x2C); /* 0x36128656: mov eax, dword ptr [esi + 0x2c] */ 19232 PUSH32(esp, eax); /* 0x36128659: push eax */ 19233 MEM32(ebp + (-0x4)) = 1; /* 0x3612865A: mov dword ptr [ebp - 4], 1 */ 19234 RECOMP_ICALL(0x3615FCC4u); /* 0x36128661: call 0x3615fcc4 */ /* not lifted */ 19235 RECOMP_FLAGS_IN(); 19236 edi = MEM32(esi + 0x20); /* 0x36128666: mov edi, dword ptr [esi + 0x20] */ 19237 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19238 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19239 esp = esp + 4; /* 0x36128669: add esp, 4 */ 19240 _flag_k = FK_ADD; 19241 /* test edi, edi */ /* 0x3612866C: test edi, edi */ 19242 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 19243 _cf = 0; 19244 _flag_k = FK_TEST; 19245 if (TEST_Z(_flag_a, _flag_b)) goto L_36128687; /* 0x3612866E: je 0x36128687 */ 19246 L_36128670: 19247 ecx = edi; /* 0x36128670: mov ecx, edi */ 19248 RECOMP_ICALL(0x360E2940u); /* 0x36128672: call 0x360e2940 */ /* not lifted */ 19249 RECOMP_FLAGS_IN(); 19250 PUSH32(esp, edi); /* 0x36128677: push edi */ 19251 RECOMP_ICALL(0x3615FCC4u); /* 0x36128678: call 0x3615fcc4 */ /* not lifted */ 19252 RECOMP_FLAGS_IN(); 19253 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19254 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19255 esp = esp + 4; /* 0x3612867D: add esp, 4 */ 19256 _flag_k = FK_ADD; 19257 MEM32(esi + 0x20) = 0; /* 0x36128680: mov dword ptr [esi + 0x20], 0 */ 19258 L_36128687: 19259 ecx = MEM32(esi + 0x28); /* 0x36128687: mov ecx, dword ptr [esi + 0x28] */ 19260 /* test ecx, ecx */ /* 0x3612868A: test ecx, ecx */ 19261 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 19262 _cf = 0; 19263 _flag_k = FK_TEST; 19264 if (TEST_Z(_flag_a, _flag_b)) goto L_3612869B; /* 0x3612868C: je 0x3612869b */ 19265 L_3612868E: 19266 eax = MEM32(ecx); /* 0x3612868E: mov eax, dword ptr [ecx] */ 19267 PUSH32(esp, 1); /* 0x36128690: push 1 */ 19268 RECOMP_ICALL(MEM32(eax)); /* 0x36128692: call dword ptr [eax] */ 19269 RECOMP_FLAGS_IN(); 19270 MEM32(esi + 0x28) = 0; /* 0x36128694: mov dword ptr [esi + 0x28], 0 */ 19271 L_3612869B: 19272 ecx = esi + 0x5E4; /* 0x3612869B: lea ecx, [esi + 0x5e4] */ 19273 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x361286A1: mov byte ptr [ebp - 4], 0 */ 19274 RECOMP_ICALL(0x360E2940u); /* 0x361286A5: call 0x360e2940 */ /* not lifted */ 19275 RECOMP_FLAGS_IN(); 19276 ecx = esi; /* 0x361286AA: mov ecx, esi */ 19277 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361286AC: mov dword ptr [ebp - 4], 0xffffffff */ 19278 RECOMP_ICALL(0x360FC2F0u); /* 0x361286B3: call 0x360fc2f0 */ /* not lifted */ 19279 RECOMP_FLAGS_IN(); 19280 ecx = MEM32(ebp + (-0xC)); /* 0x361286B8: mov ecx, dword ptr [ebp - 0xc] */ 19281 edi = POP32_VAL(esp); /* 0x361286BB: pop edi */ 19282 esi = POP32_VAL(esp); /* 0x361286BC: pop esi */ 19283 MEM32(FS_BASE + (0)) = ecx; /* 0x361286BD: mov dword ptr fs:[0], ecx */ 19284 esp = ebp; /* 0x361286C4: mov esp, ebp */ 19285 ebp = POP32_VAL(esp); /* 0x361286C6: pop ebp */ 19286 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361286C7: ret */ 19287 RECOMP_REGS_OUT(); 19288 } 19289 19290 void sub_361286D0(void) { 19291 int _fpu_cmp = 0; 19292 uint32_t _cf = 0; 19293 int _df = 1; 19294 uint32_t _flag_k = FK_NONE; 19295 uint32_t _flag_a = 0, _flag_b = 0; 19296 uint32_t _itail_tgt = 0; 19297 RECOMP_REGS_LOCALS 19298 RECOMP_ENTER(0x361286D0u); 19299 19300 L_361286D0: 19301 PUSH32(esp, ebp); /* 0x361286D0: push ebp */ 19302 L_361286D1: 19303 ebp = esp; /* 0x361286D1: mov ebp, esp */ 19304 L_361286D3: 19305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u); 19306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19307 esp = esp - 0x94u; /* 0x361286D3: sub esp, 0x94 */ 19308 _flag_k = FK_CMP; 19309 L_361286D9: 19310 PUSH32(esp, esi); /* 0x361286D9: push esi */ 19311 L_361286DA: 19312 esi = ecx; /* 0x361286DA: mov esi, ecx */ 19313 L_361286DC: 19314 RECOMP_ICALL(0x360FC300u); /* 0x361286DC: call 0x360fc300 */ /* not lifted */ 19315 RECOMP_FLAGS_IN(); 19316 L_361286E1: 19317 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x361286E1: mov al, byte ptr [esi + 0x14] */ 19318 L_361286E4: 19319 /* test LO8(eax), LO8(eax) */ /* 0x361286E4: test al, al */ 19320 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19321 _cf = 0; 19322 _flag_k = FK_NARROW(FK_TEST, 24); 19323 L_361286E6: 19324 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36129385; /* 0x361286E6: jne 0x36129385 */ 19325 L_361286EC: 19326 ecx = MEM32(esi + 0x20); /* 0x361286EC: mov ecx, dword ptr [esi + 0x20] */ 19327 L_361286EF: 19328 RECOMP_ICALL(0x361331E0u); /* 0x361286EF: call 0x361331e0 */ /* not lifted */ 19329 RECOMP_FLAGS_IN(); 19330 L_361286F4: 19331 /* test LO8(eax), LO8(eax) */ /* 0x361286F4: test al, al */ 19332 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19333 _cf = 0; 19334 _flag_k = FK_NARROW(FK_TEST, 24); 19335 L_361286F6: 19336 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36128705; /* 0x361286F6: jne 0x36128705 */ 19337 L_361286F8: 19338 eax = MEM32(esi + 0x20); /* 0x361286F8: mov eax, dword ptr [esi + 0x20] */ 19339 L_361286FB: 19340 MEM8(eax) = (uint8_t)(0); /* 0x361286FB: mov byte ptr [eax], 0 */ 19341 L_361286FE: 19342 MEM8(esi + 0x5B0) = (uint8_t)(1); /* 0x361286FE: mov byte ptr [esi + 0x5b0], 1 */ 19343 L_36128705: 19344 eax = MEM32(esi + 0x5C4); /* 0x36128705: mov eax, dword ptr [esi + 0x5c4] */ 19345 L_3612870B: 19346 /* cmp eax, 4 */ /* 0x3612870B: cmp eax, 4 */ 19347 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 19348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19349 _flag_k = FK_CMP; 19350 L_3612870E: 19351 PUSH32(esp, ebx); /* 0x3612870E: push ebx */ 19352 L_3612870F: 19353 PUSH32(esp, edi); /* 0x3612870F: push edi */ 19354 L_36128710: 19355 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_361292F9; /* 0x36128710: ja 0x361292f9 */ 19356 L_36128716: 19357 { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x3612938C)); goto _ljump; } 19358 L_3612871D: 19359 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3612871D: fld dword ptr [esi + 0xc] */ 19360 L_36128720: 19361 ecx = ebp + (-0x94); /* 0x36128720: lea ecx, [ebp - 0x94] */ 19362 L_36128726: 19363 _st[0] /= (double)*(float*)ADDR(esi + 0x10); /* 0x36128726: fdiv dword ptr [esi + 0x10] */ 19364 L_36128729: 19365 PUSH32(esp, ecx); /* 0x36128729: push ecx */ 19366 L_3612872A: 19367 ecx = MEM32(esi + 0x20); /* 0x3612872A: mov ecx, dword ptr [esi + 0x20] */ 19368 L_3612872D: 19369 _st[0] += _st[0]; /* 0x3612872D: fadd st(0), st(0) */ 19370 L_3612872F: 19371 _st[0] -= (double)*(float*)ADDR(0x36170380); /* 0x3612872F: fsub dword ptr [0x36170380] */ 19372 L_36128735: 19373 fp_push(_st[0]); /* 0x36128735: fld st(0) */ 19374 L_36128737: 19375 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36128737: fmulp st(1) */ 19376 L_36128739: 19377 fp_push(_st[0]); /* 0x36128739: fld st(0) */ 19378 L_3612873B: 19379 _st[0] *= _st[1]; /* 0x3612873B: fmul st(1) */ 19380 L_3612873D: 19381 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3612873D: fsubr dword ptr [0x36170380] */ 19382 L_36128743: 19383 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36128743: fstp dword ptr [ebp - 0x1c] */ 19384 L_36128746: 19385 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128746: fstp st(0) */ 19386 L_36128748: 19387 RECOMP_ICALL(0x36133FC0u); /* 0x36128748: call 0x36133fc0 */ /* not lifted */ 19388 RECOMP_FLAGS_IN(); 19389 L_3612874D: 19390 edx = MEM32(eax); /* 0x3612874D: mov edx, dword ptr [eax] */ 19391 L_3612874F: 19392 ecx = MEM32(eax + 0x4); /* 0x3612874F: mov ecx, dword ptr [eax + 4] */ 19393 L_36128752: 19394 eax = MEM32(eax + 0x8); /* 0x36128752: mov eax, dword ptr [eax + 8] */ 19395 L_36128755: 19396 MEM32(ebp + (-0x50)) = ecx; /* 0x36128755: mov dword ptr [ebp - 0x50], ecx */ 19397 L_36128758: 19398 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19399 ecx = 0; /* 0x36128758: xor ecx, ecx */ 19400 _cf = 0; 19401 _flag_k = FK_TEST; 19402 L_3612875A: 19403 MEM32(ebp + (-0x4C)) = eax; /* 0x3612875A: mov dword ptr [ebp - 0x4c], eax */ 19404 L_3612875D: 19405 MEM32(ebp + (-0x54)) = edx; /* 0x3612875D: mov dword ptr [ebp - 0x54], edx */ 19406 L_36128760: 19407 MEM32(ebp + (-0x4)) = ecx; /* 0x36128760: mov dword ptr [ebp - 4], ecx */ 19408 L_36128763: 19409 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19410 eax = 0; /* 0x36128763: xor eax, eax */ 19411 _cf = 0; 19412 _flag_k = FK_TEST; 19413 L_36128765: 19414 edi = MEM32(ebp + (-0x50)); /* 0x36128765: mov edi, dword ptr [ebp - 0x50] */ 19415 L_36128768: 19416 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x36128768: fild dword ptr [ebp - 4] */ 19417 L_3612876B: 19418 MEM32(ebp + (-0x10)) = edi; /* 0x3612876B: mov dword ptr [ebp - 0x10], edi */ 19419 L_3612876E: 19420 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3612876E: fld dword ptr [ebp - 0x10] */ 19421 L_36128771: 19422 _st[0] += (double)*(float*)ADDR(0x36170EA4); /* 0x36128771: fadd dword ptr [0x36170ea4] */ 19423 L_36128777: 19424 edi = MEM32(ebp + (-0x4C)); /* 0x36128777: mov edi, dword ptr [ebp - 0x4c] */ 19425 L_3612877A: 19426 MEM32(ebp + (-0xC)) = edi; /* 0x3612877A: mov dword ptr [ebp - 0xc], edi */ 19427 L_3612877D: 19428 edi = MEM32(ebp + (-0x54)); /* 0x3612877D: mov edi, dword ptr [ebp - 0x54] */ 19429 L_36128780: 19430 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36128780: fstp dword ptr [ebp - 0x10] */ 19431 L_36128783: 19432 MEM32(ebp + (-0x14)) = edx; /* 0x36128783: mov dword ptr [ebp - 0x14], edx */ 19433 L_36128786: 19434 MEM32(ebp + (-0x14)) = edi; /* 0x36128786: mov dword ptr [ebp - 0x14], edi */ 19435 L_36128789: 19436 edi = MEM32(ebp + (-0xC)); /* 0x36128789: mov edi, dword ptr [ebp - 0xc] */ 19437 L_3612878C: 19438 fp_push(_st[0]); /* 0x3612878C: fld st(0) */ 19439 L_3612878E: 19440 ebx = MEM32(ebp + (-0x14)); /* 0x3612878E: mov ebx, dword ptr [ebp - 0x14] */ 19441 L_36128791: 19442 MEM32(ebp + (-0xC)) = edi; /* 0x36128791: mov dword ptr [ebp - 0xc], edi */ 19443 L_36128794: 19444 edi = MEM32(esi + 0x2C); /* 0x36128794: mov edi, dword ptr [esi + 0x2c] */ 19445 L_36128797: 19446 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19448 edi = edi + eax; /* 0x36128797: add edi, eax */ 19449 _flag_k = FK_ADD; 19450 L_36128799: 19451 MEM32(edi) = ebx; /* 0x36128799: mov dword ptr [edi], ebx */ 19452 L_3612879B: 19453 ebx = MEM32(ebp + (-0x10)); /* 0x3612879B: mov ebx, dword ptr [ebp - 0x10] */ 19454 L_3612879E: 19455 MEM32(edi + 0x4) = ebx; /* 0x3612879E: mov dword ptr [edi + 4], ebx */ 19456 L_361287A1: 19457 ebx = MEM32(ebp + (-0xC)); /* 0x361287A1: mov ebx, dword ptr [ebp - 0xc] */ 19458 L_361287A4: 19459 MEM32(edi + 0x8) = ebx; /* 0x361287A4: mov dword ptr [edi + 8], ebx */ 19460 L_361287A7: 19461 _st[0] *= (double)*(float*)ADDR(esi + 0x624); /* 0x361287A7: fmul dword ptr [esi + 0x624] */ 19462 L_361287AD: 19463 edi = MEM32(esi + 0x2C); /* 0x361287AD: mov edi, dword ptr [esi + 0x2c] */ 19464 L_361287B0: 19465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 19466 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19467 eax = eax + 0x28u; /* 0x361287B0: add eax, 0x28 */ 19468 _flag_k = FK_ADD; 19469 L_361287B3: 19470 _st[0] += (double)*(float*)ADDR(esi + 0x620); /* 0x361287B3: fadd dword ptr [esi + 0x620] */ 19471 L_361287B9: 19472 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x361287B9: fmul dword ptr [ebp - 0x1c] */ 19473 L_361287BC: 19474 { float _v = (float)_st[0]; *(float*)ADDR(edi + eax + (-0x1C)) = _v; } /* 0x361287BC: fst dword ptr [edi + eax - 0x1c] */ 19475 L_361287C0: 19476 edi = MEM32(esi + 0x2C); /* 0x361287C0: mov edi, dword ptr [esi + 0x2c] */ 19477 L_361287C3: 19478 { float _v = (float)fp_pop(); *(float*)ADDR(edi + eax + (-0x18)) = _v; } /* 0x361287C3: fstp dword ptr [edi + eax - 0x18] */ 19479 L_361287C7: 19480 ebx = MEM32(esi + 0x2C); /* 0x361287C7: mov ebx, dword ptr [esi + 0x2c] */ 19481 L_361287CA: 19482 edi = ecx; /* 0x361287CA: mov edi, ecx */ 19483 L_361287CC: 19484 _st[0] -= (double)*(float*)ADDR(0x36170EB8); /* 0x361287CC: fsub dword ptr [0x36170eb8] */ 19485 L_361287D2: 19486 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(7); 19487 edi = edi & 7; /* 0x361287D2: and edi, 7 */ 19488 _cf = 0; 19489 _flag_k = FK_TEST; 19490 L_361287D5: 19491 edi = MEM32(edi * 4 + 0x362E5BF4); /* 0x361287D5: mov edi, dword ptr [edi*4 + 0x362e5bf4] */ 19492 L_361287DC: 19493 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xC0FFFFFFu); 19494 edi = edi & 0xC0FFFFFFu; /* 0x361287DC: and edi, 0xc0ffffff */ 19495 _cf = 0; 19496 _flag_k = FK_TEST; 19497 L_361287E2: 19498 MEM32(ebx + eax + (-0xC)) = edi; /* 0x361287E2: mov dword ptr [ebx + eax - 0xc], edi */ 19499 L_361287E6: 19500 ebx = MEM32(esi + 0x2C); /* 0x361287E6: mov ebx, dword ptr [esi + 0x2c] */ 19501 L_361287E9: 19502 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19503 edi = 0; /* 0x361287E9: xor edi, edi */ 19504 _cf = 0; 19505 _flag_k = FK_TEST; 19506 L_361287EB: 19507 MEM32(ebx + eax + (-0x8)) = edi; /* 0x361287EB: mov dword ptr [ebx + eax - 8], edi */ 19508 L_361287EF: 19509 ebx = MEM32(esi + 0x2C); /* 0x361287EF: mov ebx, dword ptr [esi + 0x2c] */ 19510 L_361287F2: 19511 MEM32(ebx + eax + (-0x10)) = edi; /* 0x361287F2: mov dword ptr [ebx + eax - 0x10], edi */ 19512 L_361287F6: 19513 edi = MEM32(esi + 0x2C); /* 0x361287F6: mov edi, dword ptr [esi + 0x2c] */ 19514 L_361287F9: 19515 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x361287F9: fmul dword ptr [esi + 0xc] */ 19516 L_361287FC: 19517 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 19518 ecx = ecx + 1; /* 0x361287FC: inc ecx */ 19519 _flag_k = FK_INC; 19520 L_361287FD: 19521 /* cmp eax, 0x140u */ /* 0x361287FD: cmp eax, 0x140 */ 19522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x140u); 19523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19524 _flag_k = FK_CMP; 19525 L_36128802: 19526 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36128802: fmul dword ptr [0x36170464] */ 19527 L_36128808: 19528 MEM32(ebp + (-0x4)) = ecx; /* 0x36128808: mov dword ptr [ebp - 4], ecx */ 19529 L_3612880B: 19530 { float _v = (float)fp_pop(); *(float*)ADDR(edi + eax + (-0x14)) = _v; } /* 0x3612880B: fstp dword ptr [edi + eax - 0x14] */ 19531 L_3612880F: 19532 edi = MEM32(esi + 0x2C); /* 0x3612880F: mov edi, dword ptr [esi + 0x2c] */ 19533 L_36128812: 19534 MEM8(edi + eax + (-0x4)) = (uint8_t)(1); /* 0x36128812: mov byte ptr [edi + eax - 4], 1 */ 19535 L_36128817: 19536 RECOMP_BACKEDGE(); 19537 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36128765; /* 0x36128817: jl 0x36128765 */ 19538 L_3612881D: 19539 goto L_36129043; /* 0x3612881D: jmp 0x36129043 */ 19540 L_36128822: 19541 eax = MEM32(esi + 0x628); /* 0x36128822: mov eax, dword ptr [esi + 0x628] */ 19542 L_36128828: 19543 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36128828: fld dword ptr [esi + 0xc] */ 19544 L_3612882B: 19545 /* test eax, eax */ /* 0x3612882B: test eax, eax */ 19546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19547 _cf = 0; 19548 _flag_k = FK_TEST; 19549 L_3612882D: 19550 _st[0] /= (double)*(float*)ADDR(esi + 0x10); /* 0x3612882D: fdiv dword ptr [esi + 0x10] */ 19551 L_36128830: 19552 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36128838; /* 0x36128830: je 0x36128838 */ 19553 L_36128832: 19554 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36128832: fsubr dword ptr [0x36170380] */ 19555 L_36128838: 19556 /* test eax, eax */ /* 0x36128838: test eax, eax */ 19557 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19558 _cf = 0; 19559 _flag_k = FK_TEST; 19560 L_3612883A: 19561 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3612883A: fstp dword ptr [ebp - 0x18] */ 19562 L_3612883D: 19563 fp_push(*(float*)&MEM32(0x36170380)); /* 0x3612883D: fld dword ptr [0x36170380] */ 19564 L_36128843: 19565 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36128843: fsub dword ptr [ebp - 0x18] */ 19566 L_36128846: 19567 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36128846: fst dword ptr [ebp - 4] */ 19568 L_36128849: 19569 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36128884; /* 0x36128849: je 0x36128884 */ 19570 L_3612884B: 19571 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3612884B: fld dword ptr [ebp - 0x18] */ 19572 L_3612884E: 19573 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170F04)); /* 0x3612884E: fcomp dword ptr [0x36170f04] */ 19574 fp_pop(); 19575 L_36128854: 19576 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36128854: fnstsw ax */ 19577 L_36128856: 19578 /* test HI8(eax), 1 */ /* 0x36128856: test ah, 1 */ 19579 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 19580 _cf = 0; 19581 _flag_k = FK_NARROW(FK_TEST, 24); 19582 L_36128859: 19583 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36128884; /* 0x36128859: je 0x36128884 */ 19584 L_3612885B: 19585 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3612885B: fld dword ptr [ebp - 0x18] */ 19586 L_3612885E: 19587 _st[0] *= (double)*(float*)ADDR(0x361710C4); /* 0x3612885E: fmul dword ptr [0x361710c4] */ 19588 L_36128864: 19589 fp_push(_st[0]); /* 0x36128864: fld st(0) */ 19590 L_36128866: 19591 _st[0] *= _st[1]; /* 0x36128866: fmul st(1) */ 19592 L_36128868: 19593 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36128868: fmulp st(1) */ 19594 L_3612886A: 19595 fp_push(_st[0]); /* 0x3612886A: fld st(0) */ 19596 L_3612886C: 19597 _st[0] *= _st[1]; /* 0x3612886C: fmul st(1) */ 19598 L_3612886E: 19599 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3612886E: fmulp st(1) */ 19600 L_36128870: 19601 fp_push(_st[0]); /* 0x36128870: fld st(0) */ 19602 L_36128872: 19603 _st[0] *= _st[1]; /* 0x36128872: fmul st(1) */ 19604 L_36128874: 19605 _st[0] *= _st[1]; /* 0x36128874: fmul st(1) */ 19606 L_36128876: 19607 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36128876: fmul dword ptr [ebp - 4] */ 19608 L_36128879: 19609 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36128879: fsubr dword ptr [0x36170380] */ 19610 L_3612887F: 19611 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3612887F: fstp dword ptr [ebp - 0x18] */ 19612 L_36128882: 19613 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128882: fstp st(0) */ 19614 L_36128884: 19615 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36128884: fld dword ptr [ebp - 0x18] */ 19616 L_36128887: 19617 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36128887: fmul dword ptr [ebp - 0x18] */ 19618 L_3612888A: 19619 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3612888A: fsubr dword ptr [0x36170380] */ 19620 L_36128890: 19621 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36128890: fmul dword ptr [0x36174f7c] */ 19622 L_36128896: 19623 RECOMP_ICALL(0x3615FD8Cu); /* 0x36128896: call 0x3615fd8c */ /* not lifted */ 19624 RECOMP_FLAGS_IN(); 19625 L_3612889B: 19626 fp_push(_st[0]); /* 0x3612889B: fld st(0) */ 19627 L_3612889D: 19628 _st[0] *= _st[1]; /* 0x3612889D: fmul st(1) */ 19629 L_3612889F: 19630 edi = eax; /* 0x3612889F: mov edi, eax */ 19631 L_361288A1: 19632 ecx = ebp + (-0x88); /* 0x361288A1: lea ecx, [ebp - 0x88] */ 19633 L_361288A7: 19634 PUSH32(esp, ecx); /* 0x361288A7: push ecx */ 19635 L_361288A8: 19636 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x361288A8: fsubr dword ptr [0x36170380] */ 19637 L_361288AE: 19638 ecx = MEM32(esi + 0x20); /* 0x361288AE: mov ecx, dword ptr [esi + 0x20] */ 19639 L_361288B1: 19640 if (24u) _cf = (((edi) >> 8) & 1u); /* 0x361288B1: shl edi, 0x18 */ 19641 if (24u) { _flag_a = recomp_flags_pack((edi << 24u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19642 edi = edi << 24u; /* 0x361288B1: shl edi, 0x18 */ 19643 L_361288B4: 19644 _flag_a = (uint32_t)((edi | 0x00FFFFFFu)); _flag_b = (uint32_t)((edi | 0x00FFFFFFu)); 19645 edi = edi | 0x00FFFFFFu; /* 0x361288B4: or edi, 0xffffff */ 19646 _cf = 0; 19647 _flag_k = FK_TEST; 19648 L_361288BA: 19649 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x361288BA: fstp dword ptr [ebp - 8] */ 19650 L_361288BD: 19651 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361288BD: fstp st(0) */ 19652 L_361288BF: 19653 RECOMP_ICALL(0x36133FC0u); /* 0x361288BF: call 0x36133fc0 */ /* not lifted */ 19654 RECOMP_FLAGS_IN(); 19655 L_361288C4: 19656 fp_push(*(float*)&MEM32(esi + 0x620)); /* 0x361288C4: fld dword ptr [esi + 0x620] */ 19657 L_361288CA: 19658 edx = MEM32(eax); /* 0x361288CA: mov edx, dword ptr [eax] */ 19659 L_361288CC: 19660 ecx = MEM32(eax + 0x4); /* 0x361288CC: mov ecx, dword ptr [eax + 4] */ 19661 L_361288CF: 19662 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x361288CF: fmul dword ptr [ebp - 8] */ 19663 L_361288D2: 19664 MEM32(ebp + (-0x38)) = edx; /* 0x361288D2: mov dword ptr [ebp - 0x38], edx */ 19665 L_361288D5: 19666 edx = MEM32(eax + 0x8); /* 0x361288D5: mov edx, dword ptr [eax + 8] */ 19667 L_361288D8: 19668 eax = MEM32(esi + 0x62C); /* 0x361288D8: mov eax, dword ptr [esi + 0x62c] */ 19669 L_361288DE: 19670 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361288DE: fst dword ptr [ebp - 4] */ 19671 L_361288E1: 19672 /* test eax, eax */ /* 0x361288E1: test eax, eax */ 19673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19674 _cf = 0; 19675 _flag_k = FK_TEST; 19676 L_361288E3: 19677 _st[0] *= (double)*(float*)ADDR(0x36170824); /* 0x361288E3: fmul dword ptr [0x36170824] */ 19678 L_361288E9: 19679 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361288E9: fld dword ptr [ebp - 4] */ 19680 L_361288EC: 19681 MEM32(ebp + (-0x34)) = ecx; /* 0x361288EC: mov dword ptr [ebp - 0x34], ecx */ 19682 L_361288EF: 19683 _st[0] *= (double)*(float*)ADDR(0x36177754); /* 0x361288EF: fmul dword ptr [0x36177754] */ 19684 L_361288F5: 19685 MEM32(ebp + (-0x30)) = edx; /* 0x361288F5: mov dword ptr [ebp - 0x30], edx */ 19686 L_361288F8: 19687 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36128932; /* 0x361288F8: je 0x36128932 */ 19688 L_361288FA: 19689 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361288FA: fld dword ptr [0x36170380] */ 19690 L_36128900: 19691 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36128900: fsub dword ptr [ebp - 0x18] */ 19692 L_36128903: 19693 fp_push(_st[0]); /* 0x36128903: fld st(0) */ 19694 L_36128905: 19695 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36128905: fmulp st(1) */ 19696 L_36128907: 19697 fp_push(_st[0]); /* 0x36128907: fld st(0) */ 19698 L_36128909: 19699 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36128909: fmulp st(1) */ 19700 L_3612890B: 19701 fp_push(_st[0]); /* 0x3612890B: fld st(0) */ 19702 L_3612890D: 19703 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3612890D: fmulp st(1) */ 19704 L_3612890F: 19705 _st[0] *= (double)*(float*)ADDR(esi + 0x620); /* 0x3612890F: fmul dword ptr [esi + 0x620] */ 19706 L_36128915: 19707 fp_push(_st[0]); /* 0x36128915: fld st(0) */ 19708 L_36128917: 19709 { double _v = fp_pop(); _st[2] += _v; } /* 0x36128917: faddp st(3) */ 19710 L_36128919: 19711 { double _v = fp_pop(); _st[0] += _v; } /* 0x36128919: faddp st(1) */ 19712 L_3612891B: 19713 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3612891B: fld dword ptr [ebp - 8] */ 19714 L_3612891E: 19715 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36174F98)); /* 0x3612891E: fcomp dword ptr [0x36174f98] */ 19716 fp_pop(); 19717 L_36128924: 19718 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36128924: fnstsw ax */ 19719 L_36128926: 19720 /* test HI8(eax), 1 */ /* 0x36128926: test ah, 1 */ 19721 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 19722 _cf = 0; 19723 _flag_k = FK_NARROW(FK_TEST, 24); 19724 L_36128929: 19725 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36128932; /* 0x36128929: je 0x36128932 */ 19726 L_3612892B: 19727 MEM32(ebp + (-0x8)) = 0x3E99999Au; /* 0x3612892B: mov dword ptr [ebp - 8], 0x3e99999a */ 19728 L_36128932: 19729 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36128932: fld dword ptr [ebp - 8] */ 19730 L_36128935: 19731 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19732 ecx = 0; /* 0x36128935: xor ecx, ecx */ 19733 _cf = 0; 19734 _flag_k = FK_TEST; 19735 L_36128937: 19736 _st[0] *= (double)*(float*)ADDR(0x361709E0); /* 0x36128937: fmul dword ptr [0x361709e0] */ 19737 L_3612893D: 19738 MEM32(ebp + (-0x4)) = ecx; /* 0x3612893D: mov dword ptr [ebp - 4], ecx */ 19739 L_36128940: 19740 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19741 eax = 0; /* 0x36128940: xor eax, eax */ 19742 _cf = 0; 19743 _flag_k = FK_TEST; 19744 L_36128942: 19745 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x36128942: fild dword ptr [ebp - 4] */ 19746 L_36128945: 19747 _st[0] *= (double)*(float*)ADDR(0x361777D4); /* 0x36128945: fmul dword ptr [0x361777d4] */ 19748 L_3612894B: 19749 fp_push(*(float*)&MEM32(esi + 0x624)); /* 0x3612894B: fld dword ptr [esi + 0x624] */ 19750 L_36128951: 19751 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x36128951: fmul dword ptr [esi + 0xc] */ 19752 L_36128954: 19753 { double _v = fp_pop(); _st[0] += _v; } /* 0x36128954: faddp st(1) */ 19754 L_36128956: 19755 fp_push(_st[0]); /* 0x36128956: fld st(0) */ 19756 L_36128958: 19757 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36128958: fsin */ 19758 L_3612895A: 19759 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3612895A: fstp dword ptr [ebp - 0x44] */ 19760 L_3612895D: 19761 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3612895D: fld dword ptr [esi + 0xc] */ 19762 L_36128960: 19763 edx = MEM32(ebp + (-0x44)); /* 0x36128960: mov edx, dword ptr [ebp - 0x44] */ 19764 L_36128963: 19765 _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36128963: fmul dword ptr [0x36170eb8] */ 19766 L_36128969: 19767 MEM32(ebp + (-0x14)) = edx; /* 0x36128969: mov dword ptr [ebp - 0x14], edx */ 19768 L_3612896C: 19769 fp_push(_st[1]); /* 0x3612896C: fld st(1) */ 19770 L_3612896E: 19771 _st[0] *= (double)*(float*)ADDR(0x3617158C); /* 0x3612896E: fmul dword ptr [0x3617158c] */ 19772 L_36128974: 19773 { double _v = fp_pop(); _st[0] += _v; } /* 0x36128974: faddp st(1) */ 19774 L_36128976: 19775 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36128976: fsin */ 19776 L_36128978: 19777 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x36128978: fmul dword ptr [0x36170d68] */ 19778 L_3612897E: 19779 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3612897E: fstp dword ptr [ebp - 0x40] */ 19780 L_36128981: 19781 edx = MEM32(ebp + (-0x40)); /* 0x36128981: mov edx, dword ptr [ebp - 0x40] */ 19782 L_36128984: 19783 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36128984: fcos */ 19784 L_36128986: 19785 MEM32(ebp + (-0x10)) = edx; /* 0x36128986: mov dword ptr [ebp - 0x10], edx */ 19786 L_36128989: 19787 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36128989: fstp dword ptr [ebp - 0x3c] */ 19788 L_3612898C: 19789 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3612898C: fld dword ptr [ebp - 0x44] */ 19790 L_3612898F: 19791 edx = MEM32(ebp + (-0x3C)); /* 0x3612898F: mov edx, dword ptr [ebp - 0x3c] */ 19792 L_36128992: 19793 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36128992: fmul dword ptr [ebp - 8] */ 19794 L_36128995: 19795 MEM32(ebp + (-0xC)) = edx; /* 0x36128995: mov dword ptr [ebp - 0xc], edx */ 19796 L_36128998: 19797 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36128998: fld dword ptr [ebp - 0x10] */ 19798 L_3612899B: 19799 edx = MEM32(ebp + (-0x38)); /* 0x3612899B: mov edx, dword ptr [ebp - 0x38] */ 19800 L_3612899E: 19801 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3612899E: fmul dword ptr [ebp - 8] */ 19802 L_361289A1: 19803 MEM32(ebp + (-0x28)) = edx; /* 0x361289A1: mov dword ptr [ebp - 0x28], edx */ 19804 L_361289A4: 19805 edx = MEM32(ebp + (-0x34)); /* 0x361289A4: mov edx, dword ptr [ebp - 0x34] */ 19806 L_361289A7: 19807 MEM32(ebp + (-0x24)) = edx; /* 0x361289A7: mov dword ptr [ebp - 0x24], edx */ 19808 L_361289AA: 19809 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361289AA: fstp dword ptr [ebp - 0x10] */ 19810 L_361289AD: 19811 edx = MEM32(ebp + (-0x30)); /* 0x361289AD: mov edx, dword ptr [ebp - 0x30] */ 19812 L_361289B0: 19813 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361289B0: fld dword ptr [ebp - 0xc] */ 19814 L_361289B3: 19815 MEM32(ebp + (-0x20)) = edx; /* 0x361289B3: mov dword ptr [ebp - 0x20], edx */ 19816 L_361289B6: 19817 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x361289B6: fmul dword ptr [ebp - 8] */ 19818 L_361289B9: 19819 edx = MEM32(esi + 0x2C); /* 0x361289B9: mov edx, dword ptr [esi + 0x2c] */ 19820 L_361289BC: 19821 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 19822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19823 edx = edx + eax; /* 0x361289BC: add edx, eax */ 19824 _flag_k = FK_ADD; 19825 L_361289BE: 19826 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361289BE: fstp dword ptr [ebp - 0xc] */ 19827 L_361289C1: 19828 _st[0] += (double)*(float*)ADDR(ebp + (-0x38)); /* 0x361289C1: fadd dword ptr [ebp - 0x38] */ 19829 L_361289C4: 19830 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361289C4: fstp dword ptr [ebp - 0x28] */ 19831 L_361289C7: 19832 ebx = MEM32(ebp + (-0x28)); /* 0x361289C7: mov ebx, dword ptr [ebp - 0x28] */ 19833 L_361289CA: 19834 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361289CA: fld dword ptr [ebp - 0x24] */ 19835 L_361289CD: 19836 MEM32(edx) = ebx; /* 0x361289CD: mov dword ptr [edx], ebx */ 19837 L_361289CF: 19838 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361289CF: fadd dword ptr [ebp - 0x10] */ 19839 L_361289D2: 19840 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361289D2: fstp dword ptr [ebp - 0x24] */ 19841 L_361289D5: 19842 ebx = MEM32(ebp + (-0x24)); /* 0x361289D5: mov ebx, dword ptr [ebp - 0x24] */ 19843 L_361289D8: 19844 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361289D8: fld dword ptr [ebp - 0x20] */ 19845 L_361289DB: 19846 MEM32(edx + 0x4) = ebx; /* 0x361289DB: mov dword ptr [edx + 4], ebx */ 19847 L_361289DE: 19848 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x361289DE: fadd dword ptr [ebp - 0xc] */ 19849 L_361289E1: 19850 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361289E1: fstp dword ptr [ebp - 0x20] */ 19851 L_361289E4: 19852 ebx = MEM32(ebp + (-0x20)); /* 0x361289E4: mov ebx, dword ptr [ebp - 0x20] */ 19853 L_361289E7: 19854 MEM32(edx + 0x8) = ebx; /* 0x361289E7: mov dword ptr [edx + 8], ebx */ 19855 L_361289EA: 19856 fp_push(_st[2]); /* 0x361289EA: fld st(2) */ 19857 L_361289EC: 19858 edx = MEM32(esi + 0x2C); /* 0x361289EC: mov edx, dword ptr [esi + 0x2c] */ 19859 L_361289EF: 19860 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + 0xC) = _v; } /* 0x361289EF: fstp dword ptr [edx + eax + 0xc] */ 19861 L_361289F3: 19862 edx = MEM32(esi + 0x2C); /* 0x361289F3: mov edx, dword ptr [esi + 0x2c] */ 19863 L_361289F6: 19864 fp_push(_st[2]); /* 0x361289F6: fld st(2) */ 19865 L_361289F8: 19866 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + 0x10) = _v; } /* 0x361289F8: fstp dword ptr [edx + eax + 0x10] */ 19867 L_361289FC: 19868 ebx = MEM32(esi + 0x2C); /* 0x361289FC: mov ebx, dword ptr [esi + 0x2c] */ 19869 L_361289FF: 19870 edx = ecx; /* 0x361289FF: mov edx, ecx */ 19871 L_36128A01: 19872 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(7); 19873 edx = edx & 7; /* 0x36128A01: and edx, 7 */ 19874 _cf = 0; 19875 _flag_k = FK_TEST; 19876 L_36128A04: 19877 edx = MEM32(edx * 4 + 0x362E5C14); /* 0x36128A04: mov edx, dword ptr [edx*4 + 0x362e5c14] */ 19878 L_36128A0B: 19879 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 19880 edx = edx & edi; /* 0x36128A0B: and edx, edi */ 19881 _cf = 0; 19882 _flag_k = FK_TEST; 19883 L_36128A0D: 19884 MEM32(ebx + eax + 0x1C) = edx; /* 0x36128A0D: mov dword ptr [ebx + eax + 0x1c], edx */ 19885 L_36128A11: 19886 ebx = MEM32(esi + 0x2C); /* 0x36128A11: mov ebx, dword ptr [esi + 0x2c] */ 19887 L_36128A14: 19888 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19889 edx = 0; /* 0x36128A14: xor edx, edx */ 19890 _cf = 0; 19891 _flag_k = FK_TEST; 19892 L_36128A16: 19893 MEM32(ebx + eax + 0x20) = edx; /* 0x36128A16: mov dword ptr [ebx + eax + 0x20], edx */ 19894 L_36128A1A: 19895 ebx = MEM32(esi + 0x2C); /* 0x36128A1A: mov ebx, dword ptr [esi + 0x2c] */ 19896 L_36128A1D: 19897 MEM32(ebx + eax + 0x18) = edx; /* 0x36128A1D: mov dword ptr [ebx + eax + 0x18], edx */ 19898 L_36128A21: 19899 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36128A21: fld dword ptr [esi + 0xc] */ 19900 L_36128A24: 19901 edx = MEM32(esi + 0x2C); /* 0x36128A24: mov edx, dword ptr [esi + 0x2c] */ 19902 L_36128A27: 19903 _st[0] += _st[0]; /* 0x36128A27: fadd st(0), st(0) */ 19904 L_36128A29: 19905 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + 0x14) = _v; } /* 0x36128A29: fstp dword ptr [edx + eax + 0x14] */ 19906 L_36128A2D: 19907 edx = MEM32(esi + 0x2C); /* 0x36128A2D: mov edx, dword ptr [esi + 0x2c] */ 19908 L_36128A30: 19909 MEM8(edx + eax + 0x24) = (uint8_t)(1); /* 0x36128A30: mov byte ptr [edx + eax + 0x24], 1 */ 19910 L_36128A35: 19911 edx = MEM32(esi + 0x2C); /* 0x36128A35: mov edx, dword ptr [esi + 0x2c] */ 19912 L_36128A38: 19913 fp_push(_st[1]); /* 0x36128A38: fld st(1) */ 19914 L_36128A3A: 19915 ebx = MEM32(ebp + (-0x28)); /* 0x36128A3A: mov ebx, dword ptr [ebp - 0x28] */ 19916 L_36128A3D: 19917 edx = edx + eax + 0x28; /* 0x36128A3D: lea edx, [edx + eax + 0x28] */ 19918 L_36128A41: 19919 MEM32(edx) = ebx; /* 0x36128A41: mov dword ptr [edx], ebx */ 19920 L_36128A43: 19921 ebx = MEM32(ebp + (-0x24)); /* 0x36128A43: mov ebx, dword ptr [ebp - 0x24] */ 19922 L_36128A46: 19923 MEM32(edx + 0x4) = ebx; /* 0x36128A46: mov dword ptr [edx + 4], ebx */ 19924 L_36128A49: 19925 ebx = MEM32(ebp + (-0x20)); /* 0x36128A49: mov ebx, dword ptr [ebp - 0x20] */ 19926 L_36128A4C: 19927 MEM32(edx + 0x8) = ebx; /* 0x36128A4C: mov dword ptr [edx + 8], ebx */ 19928 L_36128A4F: 19929 edx = MEM32(esi + 0x2C); /* 0x36128A4F: mov edx, dword ptr [esi + 0x2c] */ 19930 L_36128A52: 19931 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + 0x34) = _v; } /* 0x36128A52: fstp dword ptr [edx + eax + 0x34] */ 19932 L_36128A56: 19933 edx = MEM32(esi + 0x2C); /* 0x36128A56: mov edx, dword ptr [esi + 0x2c] */ 19934 L_36128A59: 19935 fp_push(_st[1]); /* 0x36128A59: fld st(1) */ 19936 L_36128A5B: 19937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x50u); 19938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19939 eax = eax + 0x50u; /* 0x36128A5B: add eax, 0x50 */ 19940 _flag_k = FK_ADD; 19941 L_36128A5E: 19942 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + (-0x18)) = _v; } /* 0x36128A5E: fstp dword ptr [edx + eax - 0x18] */ 19943 L_36128A62: 19944 ebx = MEM32(esi + 0x2C); /* 0x36128A62: mov ebx, dword ptr [esi + 0x2c] */ 19945 L_36128A65: 19946 edx = ecx + 0x1; /* 0x36128A65: lea edx, [ecx + 1] */ 19947 L_36128A68: 19948 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(7); 19949 edx = edx & 7; /* 0x36128A68: and edx, 7 */ 19950 _cf = 0; 19951 _flag_k = FK_TEST; 19952 L_36128A6B: 19953 edx = MEM32(edx * 4 + 0x362E5C14); /* 0x36128A6B: mov edx, dword ptr [edx*4 + 0x362e5c14] */ 19954 L_36128A72: 19955 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 19956 edx = edx & edi; /* 0x36128A72: and edx, edi */ 19957 _cf = 0; 19958 _flag_k = FK_TEST; 19959 L_36128A74: 19960 MEM32(ebx + eax + (-0xC)) = edx; /* 0x36128A74: mov dword ptr [ebx + eax - 0xc], edx */ 19961 L_36128A78: 19962 edx = MEM32(esi + 0x2C); /* 0x36128A78: mov edx, dword ptr [esi + 0x2c] */ 19963 L_36128A7B: 19964 MEM32(edx + eax + (-0x8)) = 0; /* 0x36128A7B: mov dword ptr [edx + eax - 8], 0 */ 19965 L_36128A83: 19966 edx = MEM32(esi + 0x2C); /* 0x36128A83: mov edx, dword ptr [esi + 0x2c] */ 19967 L_36128A86: 19968 { float _v = (float)_st[0]; *(float*)ADDR(edx + eax + (-0x10)) = _v; } /* 0x36128A86: fst dword ptr [edx + eax - 0x10] */ 19969 L_36128A8A: 19970 edx = MEM32(esi + 0x2C); /* 0x36128A8A: mov edx, dword ptr [esi + 0x2c] */ 19971 L_36128A8D: 19972 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36128A8D: fld dword ptr [esi + 0xc] */ 19973 L_36128A90: 19974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 19975 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19976 ecx = ecx + 2; /* 0x36128A90: add ecx, 2 */ 19977 _flag_k = FK_ADD; 19978 L_36128A93: 19979 /* cmp eax, 0x2D0u */ /* 0x36128A93: cmp eax, 0x2d0 */ 19980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2D0u); 19981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19982 _flag_k = FK_CMP; 19983 L_36128A98: 19984 _st[0] *= (double)*(float*)ADDR(0x361777D0); /* 0x36128A98: fmul dword ptr [0x361777d0] */ 19985 L_36128A9E: 19986 MEM32(ebp + (-0x4)) = ecx; /* 0x36128A9E: mov dword ptr [ebp - 4], ecx */ 19987 L_36128AA1: 19988 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + (-0x14)) = _v; } /* 0x36128AA1: fstp dword ptr [edx + eax - 0x14] */ 19989 L_36128AA5: 19990 edx = MEM32(esi + 0x2C); /* 0x36128AA5: mov edx, dword ptr [esi + 0x2c] */ 19991 L_36128AA8: 19992 MEM8(edx + eax + (-0x4)) = (uint8_t)(1); /* 0x36128AA8: mov byte ptr [edx + eax - 4], 1 */ 19993 L_36128AAD: 19994 RECOMP_BACKEDGE(); 19995 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36128942; /* 0x36128AAD: jl 0x36128942 */ 19996 L_36128AB3: 19997 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128AB3: fstp st(0) */ 19998 L_36128AB5: 19999 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128AB5: fstp st(0) */ 20000 L_36128AB7: 20001 goto L_36129041; /* 0x36128AB7: jmp 0x36129041 */ 20002 L_36128ABC: 20003 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36128ABC: fld dword ptr [esi + 0xc] */ 20004 L_36128ABF: 20005 MEM32(ebp + (-0x28)) = 0; /* 0x36128ABF: mov dword ptr [ebp - 0x28], 0 */ 20006 L_36128AC6: 20007 _st[0] /= (double)*(float*)ADDR(esi + 0x10); /* 0x36128AC6: fdiv dword ptr [esi + 0x10] */ 20008 L_36128AC9: 20009 MEM32(ebp + (-0x24)) = 0; /* 0x36128AC9: mov dword ptr [ebp - 0x24], 0 */ 20010 L_36128AD0: 20011 MEM32(ebp + (-0x20)) = 0; /* 0x36128AD0: mov dword ptr [ebp - 0x20], 0 */ 20012 L_36128AD7: 20013 _st[0] *= (double)*(float*)ADDR(esi + 0x620); /* 0x36128AD7: fmul dword ptr [esi + 0x620] */ 20014 L_36128ADD: 20015 fp_push(_st[0]); /* 0x36128ADD: fld st(0) */ 20016 L_36128ADF: 20017 _st[0] *= (double)*(float*)ADDR(0x36170824); /* 0x36128ADF: fmul dword ptr [0x36170824] */ 20018 L_36128AE5: 20019 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36128AE5: fstp dword ptr [ebp - 8] */ 20020 L_36128AE8: 20021 _st[0] *= (double)*(float*)ADDR(0x36177754); /* 0x36128AE8: fmul dword ptr [0x36177754] */ 20022 L_36128AEE: 20023 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36128AEE: fstp dword ptr [ebp - 0x18] */ 20024 L_36128AF1: 20025 fp_push(*(float*)&MEM32(0x361763DC)); /* 0x36128AF1: fld dword ptr [0x361763dc] */ 20026 L_36128AF7: 20027 _st[0] /= (double)*(float*)ADDR(esi + 0x618); /* 0x36128AF7: fdiv dword ptr [esi + 0x618] */ 20028 L_36128AFD: 20029 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x36128AFD: fmul dword ptr [esi + 0xc] */ 20030 L_36128B00: 20031 RECOMP_ICALL(0x3615FD8Cu); /* 0x36128B00: call 0x3615fd8c */ /* not lifted */ 20032 RECOMP_FLAGS_IN(); 20033 L_36128B05: 20034 edx = MEM32(esi + 0x5B8); /* 0x36128B05: mov edx, dword ptr [esi + 0x5b8] */ 20035 L_36128B0B: 20036 ecx = eax; /* 0x36128B0B: mov ecx, eax */ 20037 L_36128B0D: 20038 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 20039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20040 ecx = ecx - edx; /* 0x36128B0D: sub ecx, edx */ 20041 _flag_k = FK_CMP; 20042 L_36128B0F: 20043 /* cmp ecx, 2 */ /* 0x36128B0F: cmp ecx, 2 */ 20044 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 20045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20046 _flag_k = FK_CMP; 20047 L_36128B12: 20048 MEM32(ebp + (-0x48)) = ecx; /* 0x36128B12: mov dword ptr [ebp - 0x48], ecx */ 20049 L_36128B15: 20050 MEM32(esi + 0x5B8) = eax; /* 0x36128B15: mov dword ptr [esi + 0x5b8], eax */ 20051 L_36128B1B: 20052 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_LE, _cf)) goto L_36128B24; /* 0x36128B1B: jle 0x36128b24 */ 20053 L_36128B1D: 20054 MEM32(ebp + (-0x48)) = 2; /* 0x36128B1D: mov dword ptr [ebp - 0x48], 2 */ 20055 L_36128B24: 20056 ecx = MEM32(esi + 0x20); /* 0x36128B24: mov ecx, dword ptr [esi + 0x20] */ 20057 L_36128B27: 20058 eax = ebp + (-0x28); /* 0x36128B27: lea eax, [ebp - 0x28] */ 20059 L_36128B2A: 20060 PUSH32(esp, eax); /* 0x36128B2A: push eax */ 20061 L_36128B2B: 20062 PUSH32(esp, 0x3EEu); /* 0x36128B2B: push 0x3ee */ 20063 L_36128B30: 20064 RECOMP_ICALL(0x36133900u); /* 0x36128B30: call 0x36133900 */ /* not lifted */ 20065 RECOMP_FLAGS_IN(); 20066 L_36128B35: 20067 edx = MEM32(ebp + (-0x24)); /* 0x36128B35: mov edx, dword ptr [ebp - 0x24] */ 20068 L_36128B38: 20069 ecx = MEM32(ebp + (-0x28)); /* 0x36128B38: mov ecx, dword ptr [ebp - 0x28] */ 20070 L_36128B3B: 20071 eax = MEM32(ebp + (-0x20)); /* 0x36128B3B: mov eax, dword ptr [ebp - 0x20] */ 20072 L_36128B3E: 20073 MEM32(ebp + (-0x10)) = edx; /* 0x36128B3E: mov dword ptr [ebp - 0x10], edx */ 20074 L_36128B41: 20075 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36128B41: fld dword ptr [ebp - 0x10] */ 20076 L_36128B44: 20077 _st[0] += (double)*(float*)ADDR(0x361777CC); /* 0x36128B44: fadd dword ptr [0x361777cc] */ 20078 L_36128B4A: 20079 edx = eax; /* 0x36128B4A: mov edx, eax */ 20080 L_36128B4C: 20081 MEM32(ebp + (-0x14)) = ecx; /* 0x36128B4C: mov dword ptr [ebp - 0x14], ecx */ 20082 L_36128B4F: 20083 MEM32(ebp + (-0xC)) = eax; /* 0x36128B4F: mov dword ptr [ebp - 0xc], eax */ 20084 L_36128B52: 20085 eax = ecx; /* 0x36128B52: mov eax, ecx */ 20086 L_36128B54: 20087 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36128B54: fstp dword ptr [ebp - 0x10] */ 20088 L_36128B57: 20089 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36128B57: fld dword ptr [ebp - 8] */ 20090 L_36128B5A: 20091 MEM32(ebp + (-0x14)) = ecx; /* 0x36128B5A: mov dword ptr [ebp - 0x14], ecx */ 20092 L_36128B5D: 20093 ecx = MEM32(ebp + (-0x10)); /* 0x36128B5D: mov ecx, dword ptr [ebp - 0x10] */ 20094 L_36128B60: 20095 _st[0] *= (double)*(float*)ADDR(0x361709E0); /* 0x36128B60: fmul dword ptr [0x361709e0] */ 20096 L_36128B66: 20097 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20098 ebx = 0; /* 0x36128B66: xor ebx, ebx */ 20099 _cf = 0; 20100 _flag_k = FK_TEST; 20101 L_36128B68: 20102 MEM32(ebp + (-0x24)) = ecx; /* 0x36128B68: mov dword ptr [ebp - 0x24], ecx */ 20103 L_36128B6B: 20104 MEM32(ebp + (-0x28)) = eax; /* 0x36128B6B: mov dword ptr [ebp - 0x28], eax */ 20105 L_36128B6E: 20106 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20107 ecx = 0; /* 0x36128B6E: xor ecx, ecx */ 20108 _cf = 0; 20109 _flag_k = FK_TEST; 20110 L_36128B70: 20111 MEM32(ebp + (-0xC)) = edx; /* 0x36128B70: mov dword ptr [ebp - 0xc], edx */ 20112 L_36128B73: 20113 MEM32(ebp + (-0x20)) = edx; /* 0x36128B73: mov dword ptr [ebp - 0x20], edx */ 20114 L_36128B76: 20115 MEM32(ebp + (-0x4)) = ebx; /* 0x36128B76: mov dword ptr [ebp - 4], ebx */ 20116 L_36128B79: 20117 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20118 eax = 0; /* 0x36128B79: xor eax, eax */ 20119 _cf = 0; 20120 _flag_k = FK_TEST; 20121 L_36128B7B: 20122 edx = MEM32(esi + 0x2C); /* 0x36128B7B: mov edx, dword ptr [esi + 0x2c] */ 20123 L_36128B7E: 20124 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x36128B7E: fild dword ptr [ebp - 4] */ 20125 L_36128B81: 20126 edi = MEM32(ebp + (-0x28)); /* 0x36128B81: mov edi, dword ptr [ebp - 0x28] */ 20127 L_36128B84: 20128 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36128B84: fld dword ptr [ebp - 8] */ 20129 L_36128B87: 20130 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 20131 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20132 edx = edx + eax; /* 0x36128B87: add edx, eax */ 20133 _flag_k = FK_ADD; 20134 L_36128B89: 20135 MEM32(edx) = edi; /* 0x36128B89: mov dword ptr [edx], edi */ 20136 L_36128B8B: 20137 edi = MEM32(ebp + (-0x24)); /* 0x36128B8B: mov edi, dword ptr [ebp - 0x24] */ 20138 L_36128B8E: 20139 MEM32(edx + 0x4) = edi; /* 0x36128B8E: mov dword ptr [edx + 4], edi */ 20140 L_36128B91: 20141 edi = MEM32(ebp + (-0x20)); /* 0x36128B91: mov edi, dword ptr [ebp - 0x20] */ 20142 L_36128B94: 20143 MEM32(edx + 0x8) = edi; /* 0x36128B94: mov dword ptr [edx + 8], edi */ 20144 L_36128B97: 20145 edx = MEM32(esi + 0x2C); /* 0x36128B97: mov edx, dword ptr [esi + 0x2c] */ 20146 L_36128B9A: 20147 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + 0xC) = _v; } /* 0x36128B9A: fstp dword ptr [edx + eax + 0xc] */ 20148 L_36128B9E: 20149 edx = MEM32(esi + 0x2C); /* 0x36128B9E: mov edx, dword ptr [esi + 0x2c] */ 20150 L_36128BA1: 20151 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36128BA1: fld dword ptr [ebp - 8] */ 20152 L_36128BA4: 20153 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + 0x10) = _v; } /* 0x36128BA4: fstp dword ptr [edx + eax + 0x10] */ 20154 L_36128BA8: 20155 edi = MEM32(esi + 0x2C); /* 0x36128BA8: mov edi, dword ptr [esi + 0x2c] */ 20156 L_36128BAB: 20157 edx = ebx; /* 0x36128BAB: mov edx, ebx */ 20158 L_36128BAD: 20159 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(7); 20160 edx = edx & 7; /* 0x36128BAD: and edx, 7 */ 20161 _cf = 0; 20162 _flag_k = FK_TEST; 20163 L_36128BB0: 20164 fp_push(_st[0]); /* 0x36128BB0: fld st(0) */ 20165 L_36128BB2: 20166 edx = MEM32(edx * 4 + 0x362E5C14); /* 0x36128BB2: mov edx, dword ptr [edx*4 + 0x362e5c14] */ 20167 L_36128BB9: 20168 _st[0] -= (double)*(float*)ADDR(0x36174F9C); /* 0x36128BB9: fsub dword ptr [0x36174f9c] */ 20169 L_36128BBF: 20170 MEM32(edi + eax + 0x1C) = edx; /* 0x36128BBF: mov dword ptr [edi + eax + 0x1c], edx */ 20171 L_36128BC3: 20172 edx = MEM32(esi + 0x2C); /* 0x36128BC3: mov edx, dword ptr [esi + 0x2c] */ 20173 L_36128BC6: 20174 MEM32(edx + eax + 0x20) = ecx; /* 0x36128BC6: mov dword ptr [edx + eax + 0x20], ecx */ 20175 L_36128BCA: 20176 edx = MEM32(esi + 0x2C); /* 0x36128BCA: mov edx, dword ptr [esi + 0x2c] */ 20177 L_36128BCD: 20178 MEM32(edx + eax + 0x18) = ecx; /* 0x36128BCD: mov dword ptr [edx + eax + 0x18], ecx */ 20179 L_36128BD1: 20180 edx = MEM32(esi + 0x2C); /* 0x36128BD1: mov edx, dword ptr [esi + 0x2c] */ 20181 L_36128BD4: 20182 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x36128BD4: fmul dword ptr [esi + 0xc] */ 20183 L_36128BD7: 20184 _st[0] *= (double)*(float*)ADDR(0x36170EBC); /* 0x36128BD7: fmul dword ptr [0x36170ebc] */ 20185 L_36128BDD: 20186 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + 0x14) = _v; } /* 0x36128BDD: fstp dword ptr [edx + eax + 0x14] */ 20187 L_36128BE1: 20188 edx = MEM32(esi + 0x2C); /* 0x36128BE1: mov edx, dword ptr [esi + 0x2c] */ 20189 L_36128BE4: 20190 MEM8(edx + eax + 0x24) = (uint8_t)(1); /* 0x36128BE4: mov byte ptr [edx + eax + 0x24], 1 */ 20191 L_36128BE9: 20192 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36128BE9: fld dword ptr [ebp - 0x18] */ 20193 L_36128BEC: 20194 edx = MEM32(esi + 0x2C); /* 0x36128BEC: mov edx, dword ptr [esi + 0x2c] */ 20195 L_36128BEF: 20196 edi = MEM32(ebp + (-0x28)); /* 0x36128BEF: mov edi, dword ptr [ebp - 0x28] */ 20197 L_36128BF2: 20198 edx = edx + eax + 0x28; /* 0x36128BF2: lea edx, [edx + eax + 0x28] */ 20199 L_36128BF6: 20200 MEM32(edx) = edi; /* 0x36128BF6: mov dword ptr [edx], edi */ 20201 L_36128BF8: 20202 edi = MEM32(ebp + (-0x24)); /* 0x36128BF8: mov edi, dword ptr [ebp - 0x24] */ 20203 L_36128BFB: 20204 MEM32(edx + 0x4) = edi; /* 0x36128BFB: mov dword ptr [edx + 4], edi */ 20205 L_36128BFE: 20206 edi = MEM32(ebp + (-0x20)); /* 0x36128BFE: mov edi, dword ptr [ebp - 0x20] */ 20207 L_36128C01: 20208 MEM32(edx + 0x8) = edi; /* 0x36128C01: mov dword ptr [edx + 8], edi */ 20209 L_36128C04: 20210 edx = MEM32(esi + 0x2C); /* 0x36128C04: mov edx, dword ptr [esi + 0x2c] */ 20211 L_36128C07: 20212 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + 0x34) = _v; } /* 0x36128C07: fstp dword ptr [edx + eax + 0x34] */ 20213 L_36128C0B: 20214 edx = MEM32(esi + 0x2C); /* 0x36128C0B: mov edx, dword ptr [esi + 0x2c] */ 20215 L_36128C0E: 20216 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36128C0E: fld dword ptr [ebp - 0x18] */ 20217 L_36128C11: 20218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x50u); 20219 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20220 eax = eax + 0x50u; /* 0x36128C11: add eax, 0x50 */ 20221 _flag_k = FK_ADD; 20222 L_36128C14: 20223 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + (-0x18)) = _v; } /* 0x36128C14: fstp dword ptr [edx + eax - 0x18] */ 20224 L_36128C18: 20225 edi = MEM32(esi + 0x2C); /* 0x36128C18: mov edi, dword ptr [esi + 0x2c] */ 20226 L_36128C1B: 20227 edx = ebx + 0x1; /* 0x36128C1B: lea edx, [ebx + 1] */ 20228 L_36128C1E: 20229 fp_push(_st[1]); /* 0x36128C1E: fld st(1) */ 20230 L_36128C20: 20231 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(7); 20232 edx = edx & 7; /* 0x36128C20: and edx, 7 */ 20233 _cf = 0; 20234 _flag_k = FK_TEST; 20235 L_36128C23: 20236 edx = MEM32(edx * 4 + 0x362E5C14); /* 0x36128C23: mov edx, dword ptr [edx*4 + 0x362e5c14] */ 20237 L_36128C2A: 20238 MEM32(edi + eax + (-0xC)) = edx; /* 0x36128C2A: mov dword ptr [edi + eax - 0xc], edx */ 20239 L_36128C2E: 20240 edx = MEM32(esi + 0x2C); /* 0x36128C2E: mov edx, dword ptr [esi + 0x2c] */ 20241 L_36128C31: 20242 MEM32(edx + eax + (-0x8)) = ecx; /* 0x36128C31: mov dword ptr [edx + eax - 8], ecx */ 20243 L_36128C35: 20244 edx = MEM32(esi + 0x2C); /* 0x36128C35: mov edx, dword ptr [esi + 0x2c] */ 20245 L_36128C38: 20246 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + (-0x10)) = _v; } /* 0x36128C38: fstp dword ptr [edx + eax - 0x10] */ 20247 L_36128C3C: 20248 edx = MEM32(esi + 0x2C); /* 0x36128C3C: mov edx, dword ptr [esi + 0x2c] */ 20249 L_36128C3F: 20250 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(2); 20251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20252 ebx = ebx + 2; /* 0x36128C3F: add ebx, 2 */ 20253 _flag_k = FK_ADD; 20254 L_36128C42: 20255 /* cmp eax, 0xA0u */ /* 0x36128C42: cmp eax, 0xa0 */ 20256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA0u); 20257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20258 _flag_k = FK_CMP; 20259 L_36128C47: 20260 _st[0] -= (double)*(float*)ADDR(0x36177748); /* 0x36128C47: fsub dword ptr [0x36177748] */ 20261 L_36128C4D: 20262 MEM32(ebp + (-0x4)) = ebx; /* 0x36128C4D: mov dword ptr [ebp - 4], ebx */ 20263 L_36128C50: 20264 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x36128C50: fmul dword ptr [esi + 0xc] */ 20265 L_36128C53: 20266 _st[0] *= (double)*(float*)ADDR(0x361777D0); /* 0x36128C53: fmul dword ptr [0x361777d0] */ 20267 L_36128C59: 20268 { float _v = (float)fp_pop(); *(float*)ADDR(edx + eax + (-0x14)) = _v; } /* 0x36128C59: fstp dword ptr [edx + eax - 0x14] */ 20269 L_36128C5D: 20270 edx = MEM32(esi + 0x2C); /* 0x36128C5D: mov edx, dword ptr [esi + 0x2c] */ 20271 L_36128C60: 20272 MEM8(edx + eax + (-0x4)) = (uint8_t)(1); /* 0x36128C60: mov byte ptr [edx + eax - 4], 1 */ 20273 L_36128C65: 20274 RECOMP_BACKEDGE(); 20275 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36128B7B; /* 0x36128C65: jl 0x36128b7b */ 20276 L_36128C6B: 20277 /* cmp ebx, 0x20u */ /* 0x36128C6B: cmp ebx, 0x20 */ 20278 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u); 20279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20280 _flag_k = FK_CMP; 20281 L_36128C6E: 20282 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128C6E: fstp st(0) */ 20283 L_36128C70: 20284 fp_push(*(float*)&MEM32(esi + 0x624)); /* 0x36128C70: fld dword ptr [esi + 0x624] */ 20285 L_36128C76: 20286 _st[0] *= (double)*(float*)ADDR(0x36170824); /* 0x36128C76: fmul dword ptr [0x36170824] */ 20287 L_36128C7C: 20288 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36128C7C: fstp dword ptr [ebp - 8] */ 20289 L_36128C7F: 20290 fp_push(*(float*)&MEM32(esi + 0x624)); /* 0x36128C7F: fld dword ptr [esi + 0x624] */ 20291 L_36128C85: 20292 _st[0] *= (double)*(float*)ADDR(0x36177754); /* 0x36128C85: fmul dword ptr [0x36177754] */ 20293 L_36128C8B: 20294 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36128C8B: fstp dword ptr [ebp - 0x18] */ 20295 L_36128C8E: 20296 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_36128ECE; /* 0x36128C8E: jge 0x36128ece */ 20297 L_36128C94: 20298 ecx = ebx + ebx * 2 + 0xCC; /* 0x36128C94: lea ecx, [ebx + ebx*2 + 0xcc] */ 20299 L_36128C9B: 20300 edi = ebx + ebx * 4; /* 0x36128C9B: lea edi, [ebx + ebx*4] */ 20301 L_36128C9E: 20302 eax = ebx + 0x1; /* 0x36128C9E: lea eax, [ebx + 1] */ 20303 L_36128CA1: 20304 edx = esi + ebx * 4 + 0x530; /* 0x36128CA1: lea edx, [esi + ebx*4 + 0x530] */ 20305 L_36128CA8: 20306 ecx = esi + ecx * 4; /* 0x36128CA8: lea ecx, [esi + ecx*4] */ 20307 L_36128CAB: 20308 if (3u) _cf = (((edi) >> 29) & 1u); /* 0x36128CAB: shl edi, 3 */ 20309 if (3u) { _flag_a = recomp_flags_pack((edi << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20310 edi = edi << 3u; /* 0x36128CAB: shl edi, 3 */ 20311 L_36128CAE: 20312 MEM32(ebp + (-0x4)) = eax; /* 0x36128CAE: mov dword ptr [ebp - 4], eax */ 20313 L_36128CB1: 20314 MEM32(ebp + (-0x2C)) = edx; /* 0x36128CB1: mov dword ptr [ebp - 0x2c], edx */ 20315 L_36128CB4: 20316 MEM32(ebp + (-0x1C)) = ecx; /* 0x36128CB4: mov dword ptr [ebp - 0x1c], ecx */ 20317 L_36128CB7: 20318 fp_push(*(float*)&MEM32(edx)); /* 0x36128CB7: fld dword ptr [edx] */ 20319 L_36128CB9: 20320 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36128CB9: fcomp dword ptr [esi + 0xc] */ 20321 fp_pop(); 20322 L_36128CBC: 20323 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36128CBC: fnstsw ax */ 20324 L_36128CBE: 20325 /* test HI8(eax), 0x41u */ /* 0x36128CBE: test ah, 0x41 */ 20326 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 20327 _cf = 0; 20328 _flag_k = FK_NARROW(FK_TEST, 24); 20329 L_36128CC1: 20330 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36128E66; /* 0x36128CC1: jne 0x36128e66 */ 20331 L_36128CC7: 20332 eax = ebx; /* 0x36128CC7: mov eax, ebx */ 20333 L_36128CC9: 20334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 20335 eax = eax & 1; /* 0x36128CC9: and eax, 1 */ 20336 _cf = 0; 20337 _flag_k = FK_TEST; 20338 L_36128CCC: 20339 MEM32(ebp + (-0x1C)) = eax; /* 0x36128CCC: mov dword ptr [ebp - 0x1c], eax */ 20340 L_36128CCF: 20341 fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x36128CCF: fild dword ptr [ebp - 0x1c] */ 20342 L_36128CD2: 20343 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x36128CD2: fsub dword ptr [0x36170464] */ 20344 L_36128CD8: 20345 fp_push(*(float*)&MEM32(edx)); /* 0x36128CD8: fld dword ptr [edx] */ 20346 L_36128CDA: 20347 edx = ecx; /* 0x36128CDA: mov edx, ecx */ 20348 L_36128CDC: 20349 _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x36128CDC: fsub dword ptr [esi + 0xc] */ 20350 L_36128CDF: 20351 eax = MEM32(edx); /* 0x36128CDF: mov eax, dword ptr [edx] */ 20352 L_36128CE1: 20353 MEM32(ebp + (-0x14)) = eax; /* 0x36128CE1: mov dword ptr [ebp - 0x14], eax */ 20354 L_36128CE4: 20355 eax = MEM32(edx + 0x4); /* 0x36128CE4: mov eax, dword ptr [edx + 4] */ 20356 L_36128CE7: 20357 _st[0] = (double)*(float*)ADDR(esi + 0x618) - _st[0]; /* 0x36128CE7: fsubr dword ptr [esi + 0x618] */ 20358 L_36128CED: 20359 edx = MEM32(edx + 0x8); /* 0x36128CED: mov edx, dword ptr [edx + 8] */ 20360 L_36128CF0: 20361 MEM32(ebp + (-0x10)) = eax; /* 0x36128CF0: mov dword ptr [ebp - 0x10], eax */ 20362 L_36128CF3: 20363 _st[0] /= (double)*(float*)ADDR(esi + 0x618); /* 0x36128CF3: fdiv dword ptr [esi + 0x618] */ 20364 L_36128CF9: 20365 eax = MEM32(ebp + (-0x28)); /* 0x36128CF9: mov eax, dword ptr [ebp - 0x28] */ 20366 L_36128CFC: 20367 MEM32(ebp + (-0xC)) = edx; /* 0x36128CFC: mov dword ptr [ebp - 0xc], edx */ 20368 L_36128CFF: 20369 edx = MEM32(ebp + (-0x24)); /* 0x36128CFF: mov edx, dword ptr [ebp - 0x24] */ 20370 L_36128D02: 20371 MEM32(ebp + (-0x44)) = eax; /* 0x36128D02: mov dword ptr [ebp - 0x44], eax */ 20372 L_36128D05: 20373 eax = MEM32(ebp + (-0x20)); /* 0x36128D05: mov eax, dword ptr [ebp - 0x20] */ 20374 L_36128D08: 20375 MEM32(ebp + (-0x40)) = edx; /* 0x36128D08: mov dword ptr [ebp - 0x40], edx */ 20376 L_36128D0B: 20377 MEM32(ebp + (-0x3C)) = eax; /* 0x36128D0B: mov dword ptr [ebp - 0x3c], eax */ 20378 L_36128D0E: 20379 fp_push(_st[0]); /* 0x36128D0E: fld st(0) */ 20380 L_36128D10: 20381 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36128D10: fmulp st(1) */ 20382 L_36128D12: 20383 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36128D12: fld dword ptr [0x36170380] */ 20384 L_36128D18: 20385 _st[0] -= _st[1]; /* 0x36128D18: fsub st(1) */ 20386 L_36128D1A: 20387 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36128D1A: fld dword ptr [ebp - 0x14] */ 20388 L_36128D1D: 20389 _st[0] *= _st[1]; /* 0x36128D1D: fmul st(1) */ 20390 L_36128D1F: 20391 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36128D1F: fstp dword ptr [ebp - 0x14] */ 20392 L_36128D22: 20393 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36128D22: fld dword ptr [ebp - 0x10] */ 20394 L_36128D25: 20395 _st[0] *= _st[1]; /* 0x36128D25: fmul st(1) */ 20396 L_36128D27: 20397 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36128D27: fstp dword ptr [ebp - 0x10] */ 20398 L_36128D2A: 20399 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36128D2A: fld dword ptr [ebp - 0xc] */ 20400 L_36128D2D: 20401 _st[0] *= _st[1]; /* 0x36128D2D: fmul st(1) */ 20402 L_36128D2F: 20403 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36128D2F: fstp dword ptr [ebp - 0xc] */ 20404 L_36128D32: 20405 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128D32: fstp st(0) */ 20406 L_36128D34: 20407 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36128D34: fld dword ptr [ebp - 0x28] */ 20408 L_36128D37: 20409 _st[0] *= _st[1]; /* 0x36128D37: fmul st(1) */ 20410 L_36128D39: 20411 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36128D39: fstp dword ptr [ebp - 0x44] */ 20412 L_36128D3C: 20413 edx = MEM32(ebp + (-0x44)); /* 0x36128D3C: mov edx, dword ptr [ebp - 0x44] */ 20414 L_36128D3F: 20415 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36128D3F: fld dword ptr [ebp - 0x40] */ 20416 L_36128D42: 20417 MEM32(ebp + (-0x38)) = edx; /* 0x36128D42: mov dword ptr [ebp - 0x38], edx */ 20418 L_36128D45: 20419 _st[0] *= _st[1]; /* 0x36128D45: fmul st(1) */ 20420 L_36128D47: 20421 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36128D47: fstp dword ptr [ebp - 0x40] */ 20422 L_36128D4A: 20423 eax = MEM32(ebp + (-0x40)); /* 0x36128D4A: mov eax, dword ptr [ebp - 0x40] */ 20424 L_36128D4D: 20425 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36128D4D: fld dword ptr [ebp - 0x3c] */ 20426 L_36128D50: 20427 MEM32(ebp + (-0x34)) = eax; /* 0x36128D50: mov dword ptr [ebp - 0x34], eax */ 20428 L_36128D53: 20429 eax = MEM32(esi + 0x2C); /* 0x36128D53: mov eax, dword ptr [esi + 0x2c] */ 20430 L_36128D56: 20431 _st[0] *= _st[1]; /* 0x36128D56: fmul st(1) */ 20432 L_36128D58: 20433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 20434 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20435 eax = eax + edi; /* 0x36128D58: add eax, edi */ 20436 _flag_k = FK_ADD; 20437 L_36128D5A: 20438 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36128D5A: fstp dword ptr [ebp - 0x3c] */ 20439 L_36128D5D: 20440 edx = MEM32(ebp + (-0x3C)); /* 0x36128D5D: mov edx, dword ptr [ebp - 0x3c] */ 20441 L_36128D60: 20442 MEM32(ebp + (-0x30)) = edx; /* 0x36128D60: mov dword ptr [ebp - 0x30], edx */ 20443 L_36128D63: 20444 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36128D63: fstp st(0) */ 20445 L_36128D65: 20446 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36128D65: fld dword ptr [ebp - 0x44] */ 20447 L_36128D68: 20448 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36128D68: fadd dword ptr [ebp - 0x14] */ 20449 L_36128D6B: 20450 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36128D6B: fstp dword ptr [ebp - 0x38] */ 20451 L_36128D6E: 20452 edx = MEM32(ebp + (-0x38)); /* 0x36128D6E: mov edx, dword ptr [ebp - 0x38] */ 20453 L_36128D71: 20454 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36128D71: fld dword ptr [ebp - 0x34] */ 20455 L_36128D74: 20456 MEM32(eax) = edx; /* 0x36128D74: mov dword ptr [eax], edx */ 20457 L_36128D76: 20458 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36128D76: fadd dword ptr [ebp - 0x10] */ 20459 L_36128D79: 20460 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36128D79: fstp dword ptr [ebp - 0x34] */ 20461 L_36128D7C: 20462 edx = MEM32(ebp + (-0x34)); /* 0x36128D7C: mov edx, dword ptr [ebp - 0x34] */ 20463 L_36128D7F: 20464 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36128D7F: fld dword ptr [ebp - 0x30] */ 20465 L_36128D82: 20466 MEM32(eax + 0x4) = edx; /* 0x36128D82: mov dword ptr [eax + 4], edx */ 20467 L_36128D85: 20468 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36128D85: fadd dword ptr [ebp - 0xc] */ 20469 L_36128D88: 20470 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36128D88: fstp dword ptr [ebp - 0x30] */ 20471 L_36128D8B: 20472 edx = MEM32(ebp + (-0x30)); /* 0x36128D8B: mov edx, dword ptr [ebp - 0x30] */ 20473 L_36128D8E: 20474 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36128D8E: fld dword ptr [ebp - 8] */ 20475 L_36128D91: 20476 MEM32(eax + 0x8) = edx; /* 0x36128D91: mov dword ptr [eax + 8], edx */ 20477 L_36128D94: 20478 eax = MEM32(esi + 0x2C); /* 0x36128D94: mov eax, dword ptr [esi + 0x2c] */ 20479 L_36128D97: 20480 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edi + 0xC) = _v; } /* 0x36128D97: fstp dword ptr [eax + edi + 0xc] */ 20481 L_36128D9B: 20482 edx = MEM32(esi + 0x2C); /* 0x36128D9B: mov edx, dword ptr [esi + 0x2c] */ 20483 L_36128D9E: 20484 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36128D9E: fld dword ptr [ebp - 8] */ 20485 L_36128DA1: 20486 eax = ebx; /* 0x36128DA1: mov eax, ebx */ 20487 L_36128DA3: 20488 { float _v = (float)fp_pop(); *(float*)ADDR(edx + edi + 0x10) = _v; } /* 0x36128DA3: fstp dword ptr [edx + edi + 0x10] */ 20489 L_36128DA7: 20490 edx = MEM32(esi + 0x2C); /* 0x36128DA7: mov edx, dword ptr [esi + 0x2c] */ 20491 L_36128DAA: 20492 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 20493 eax = eax & 7; /* 0x36128DAA: and eax, 7 */ 20494 _cf = 0; 20495 _flag_k = FK_TEST; 20496 L_36128DAD: 20497 eax = MEM32(eax * 4 + 0x362E5C14); /* 0x36128DAD: mov eax, dword ptr [eax*4 + 0x362e5c14] */ 20498 L_36128DB4: 20499 fp_push(_st[0]); /* 0x36128DB4: fld st(0) */ 20500 L_36128DB6: 20501 _st[0] -= (double)*(float*)ADDR(0x36174F9C); /* 0x36128DB6: fsub dword ptr [0x36174f9c] */ 20502 L_36128DBC: 20503 MEM32(edx + edi + 0x1C) = eax; /* 0x36128DBC: mov dword ptr [edx + edi + 0x1c], eax */ 20504 L_36128DC0: 20505 edx = MEM32(esi + 0x2C); /* 0x36128DC0: mov edx, dword ptr [esi + 0x2c] */ 20506 L_36128DC3: 20507 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20508 eax = 0; /* 0x36128DC3: xor eax, eax */ 20509 _cf = 0; 20510 _flag_k = FK_TEST; 20511 L_36128DC5: 20512 MEM32(edx + edi + 0x20) = eax; /* 0x36128DC5: mov dword ptr [edx + edi + 0x20], eax */ 20513 L_36128DC9: 20514 edx = MEM32(esi + 0x2C); /* 0x36128DC9: mov edx, dword ptr [esi + 0x2c] */ 20515 L_36128DCC: 20516 MEM32(edx + edi + 0x18) = eax; /* 0x36128DCC: mov dword ptr [edx + edi + 0x18], eax */ 20517 L_36128DD0: 20518 eax = MEM32(esi + 0x2C); /* 0x36128DD0: mov eax, dword ptr [esi + 0x2c] */ 20519 L_36128DD3: 20520 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x36128DD3: fmul dword ptr [esi + 0xc] */ 20521 L_36128DD6: 20522 _st[0] *= (double)*(float*)ADDR(0x36170EBC); /* 0x36128DD6: fmul dword ptr [0x36170ebc] */ 20523 L_36128DDC: 20524 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edi + 0x14) = _v; } /* 0x36128DDC: fstp dword ptr [eax + edi + 0x14] */ 20525 L_36128DE0: 20526 edx = MEM32(esi + 0x2C); /* 0x36128DE0: mov edx, dword ptr [esi + 0x2c] */ 20527 L_36128DE3: 20528 MEM8(edx + edi + 0x24) = (uint8_t)(1); /* 0x36128DE3: mov byte ptr [edx + edi + 0x24], 1 */ 20529 L_36128DE8: 20530 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36128DE8: fld dword ptr [ebp - 0x18] */ 20531 L_36128DEB: 20532 eax = MEM32(esi + 0x2C); /* 0x36128DEB: mov eax, dword ptr [esi + 0x2c] */ 20533 L_36128DEE: 20534 edx = eax + edi + 0x28; /* 0x36128DEE: lea edx, [eax + edi + 0x28] */ 20535 L_36128DF2: 20536 eax = MEM32(ebp + (-0x38)); /* 0x36128DF2: mov eax, dword ptr [ebp - 0x38] */ 20537 L_36128DF5: 20538 MEM32(edx) = eax; /* 0x36128DF5: mov dword ptr [edx], eax */ 20539 L_36128DF7: 20540 eax = MEM32(ebp + (-0x34)); /* 0x36128DF7: mov eax, dword ptr [ebp - 0x34] */ 20541 L_36128DFA: 20542 MEM32(edx + 0x4) = eax; /* 0x36128DFA: mov dword ptr [edx + 4], eax */ 20543 L_36128DFD: 20544 eax = MEM32(ebp + (-0x30)); /* 0x36128DFD: mov eax, dword ptr [ebp - 0x30] */ 20545 L_36128E00: 20546 MEM32(edx + 0x8) = eax; /* 0x36128E00: mov dword ptr [edx + 8], eax */ 20547 L_36128E03: 20548 edx = MEM32(esi + 0x2C); /* 0x36128E03: mov edx, dword ptr [esi + 0x2c] */ 20549 L_36128E06: 20550 { float _v = (float)fp_pop(); *(float*)ADDR(edx + edi + 0x34) = _v; } /* 0x36128E06: fstp dword ptr [edx + edi + 0x34] */ 20551 L_36128E0A: 20552 eax = MEM32(esi + 0x2C); /* 0x36128E0A: mov eax, dword ptr [esi + 0x2c] */ 20553 L_36128E0D: 20554 edx = MEM32(ebp + (-0x4)); /* 0x36128E0D: mov edx, dword ptr [ebp - 4] */ 20555 L_36128E10: 20556 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36128E10: fld dword ptr [ebp - 0x18] */ 20557 L_36128E13: 20558 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edi + 0x38) = _v; } /* 0x36128E13: fstp dword ptr [eax + edi + 0x38] */ 20559 L_36128E17: 20560 eax = MEM32(esi + 0x2C); /* 0x36128E17: mov eax, dword ptr [esi + 0x2c] */ 20561 L_36128E1A: 20562 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36128E1A: fld dword ptr [ebp - 8] */ 20563 L_36128E1D: 20564 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(7); 20565 edx = edx & 7; /* 0x36128E1D: and edx, 7 */ 20566 _cf = 0; 20567 _flag_k = FK_TEST; 20568 L_36128E20: 20569 edx = MEM32(edx * 4 + 0x362E5C14); /* 0x36128E20: mov edx, dword ptr [edx*4 + 0x362e5c14] */ 20570 L_36128E27: 20571 _st[0] *= (double)*(float*)ADDR(0x361709E0); /* 0x36128E27: fmul dword ptr [0x361709e0] */ 20572 L_36128E2D: 20573 MEM32(eax + edi + 0x44) = edx; /* 0x36128E2D: mov dword ptr [eax + edi + 0x44], edx */ 20574 L_36128E31: 20575 eax = MEM32(esi + 0x2C); /* 0x36128E31: mov eax, dword ptr [esi + 0x2c] */ 20576 L_36128E34: 20577 MEM32(eax + edi + 0x48) = 0; /* 0x36128E34: mov dword ptr [eax + edi + 0x48], 0 */ 20578 L_36128E3C: 20579 edx = MEM32(esi + 0x2C); /* 0x36128E3C: mov edx, dword ptr [esi + 0x2c] */ 20580 L_36128E3F: 20581 { float _v = (float)fp_pop(); *(float*)ADDR(edx + edi + 0x40) = _v; } /* 0x36128E3F: fstp dword ptr [edx + edi + 0x40] */ 20582 L_36128E43: 20583 eax = MEM32(esi + 0x2C); /* 0x36128E43: mov eax, dword ptr [esi + 0x2c] */ 20584 L_36128E46: 20585 _st[0] -= (double)*(float*)ADDR(0x36177748); /* 0x36128E46: fsub dword ptr [0x36177748] */ 20586 L_36128E4C: 20587 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x36128E4C: fmul dword ptr [esi + 0xc] */ 20588 L_36128E4F: 20589 _st[0] *= (double)*(float*)ADDR(0x361777D0); /* 0x36128E4F: fmul dword ptr [0x361777d0] */ 20590 L_36128E55: 20591 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edi + 0x3C) = _v; } /* 0x36128E55: fstp dword ptr [eax + edi + 0x3c] */ 20592 L_36128E59: 20593 edx = MEM32(esi + 0x2C); /* 0x36128E59: mov edx, dword ptr [esi + 0x2c] */ 20594 L_36128E5C: 20595 MEM8(edx + edi + 0x4C) = (uint8_t)(1); /* 0x36128E5C: mov byte ptr [edx + edi + 0x4c], 1 */ 20596 L_36128E61: 20597 edx = MEM32(ebp + (-0x2C)); /* 0x36128E61: mov edx, dword ptr [ebp - 0x2c] */ 20598 L_36128E64: 20599 goto L_36128EAA; /* 0x36128E64: jmp 0x36128eaa */ 20600 L_36128E66: 20601 eax = MEM32(ebp + (-0x48)); /* 0x36128E66: mov eax, dword ptr [ebp - 0x48] */ 20602 L_36128E69: 20603 /* test eax, eax */ /* 0x36128E69: test eax, eax */ 20604 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20605 _cf = 0; 20606 _flag_k = FK_TEST; 20607 L_36128E6B: 20608 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36128EA4; /* 0x36128E6B: je 0x36128ea4 */ 20609 L_36128E6D: 20610 PUSH32(esp, ecx); /* 0x36128E6D: push ecx */ 20611 L_36128E6E: 20612 ecx = MEM32(esi + 0x5B8); /* 0x36128E6E: mov ecx, dword ptr [esi + 0x5b8] */ 20613 L_36128E74: 20614 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 20615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20616 ecx = ecx - eax; /* 0x36128E74: sub ecx, eax */ 20617 _flag_k = FK_CMP; 20618 L_36128E76: 20619 ecx = ~ecx; /* 0x36128E76: not ecx */ 20620 L_36128E78: 20621 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 20622 ecx = ecx & 1; /* 0x36128E78: and ecx, 1 */ 20623 _cf = 0; 20624 _flag_k = FK_TEST; 20625 L_36128E7B: 20626 _flag_a = (uint32_t)((ecx | 0x7D0u)); _flag_b = (uint32_t)((ecx | 0x7D0u)); 20627 ecx = ecx | 0x7D0u; /* 0x36128E7B: or ecx, 0x7d0 */ 20628 _cf = 0; 20629 _flag_k = FK_TEST; 20630 L_36128E81: 20631 PUSH32(esp, ecx); /* 0x36128E81: push ecx */ 20632 L_36128E82: 20633 ecx = MEM32(esi + 0x20); /* 0x36128E82: mov ecx, dword ptr [esi + 0x20] */ 20634 L_36128E85: 20635 RECOMP_ICALL(0x36133900u); /* 0x36128E85: call 0x36133900 */ /* not lifted */ 20636 RECOMP_FLAGS_IN(); 20637 L_36128E8A: 20638 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36128E8A: fld dword ptr [esi + 0xc] */ 20639 L_36128E8D: 20640 eax = MEM32(ebp + (-0x48)); /* 0x36128E8D: mov eax, dword ptr [ebp - 0x48] */ 20641 L_36128E90: 20642 _st[0] += (double)*(float*)ADDR(esi + 0x618); /* 0x36128E90: fadd dword ptr [esi + 0x618] */ 20643 L_36128E96: 20644 edx = MEM32(ebp + (-0x2C)); /* 0x36128E96: mov edx, dword ptr [ebp - 0x2c] */ 20645 L_36128E99: 20646 ecx = MEM32(ebp + (-0x1C)); /* 0x36128E99: mov ecx, dword ptr [ebp - 0x1c] */ 20647 L_36128E9C: 20648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 20649 eax = eax - 1; /* 0x36128E9C: dec eax */ 20650 _flag_k = FK_DEC; 20651 L_36128E9D: 20652 { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x36128E9D: fstp dword ptr [edx] */ 20653 L_36128E9F: 20654 MEM32(ebp + (-0x48)) = eax; /* 0x36128E9F: mov dword ptr [ebp - 0x48], eax */ 20655 L_36128EA2: 20656 goto L_36128EAA; /* 0x36128EA2: jmp 0x36128eaa */ 20657 L_36128EA4: 20658 MEM32(edx) = 0xC2C80000u; /* 0x36128EA4: mov dword ptr [edx], 0xc2c80000 */ 20659 L_36128EAA: 20660 eax = MEM32(ebp + (-0x4)); /* 0x36128EAA: mov eax, dword ptr [ebp - 4] */ 20661 L_36128EAD: 20662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 20663 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20664 eax = eax + 2; /* 0x36128EAD: add eax, 2 */ 20665 _flag_k = FK_ADD; 20666 L_36128EB0: 20667 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 20668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20669 ecx = ecx + 0x18u; /* 0x36128EB0: add ecx, 0x18 */ 20670 _flag_k = FK_ADD; 20671 L_36128EB3: 20672 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 20673 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20674 edx = edx + 8; /* 0x36128EB3: add edx, 8 */ 20675 _flag_k = FK_ADD; 20676 L_36128EB6: 20677 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(2); 20678 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20679 ebx = ebx + 2; /* 0x36128EB6: add ebx, 2 */ 20680 _flag_k = FK_ADD; 20681 L_36128EB9: 20682 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x50u); 20683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20684 edi = edi + 0x50u; /* 0x36128EB9: add edi, 0x50 */ 20685 _flag_k = FK_ADD; 20686 L_36128EBC: 20687 /* cmp eax, 0x21u */ /* 0x36128EBC: cmp eax, 0x21 */ 20688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x21u); 20689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20690 _flag_k = FK_CMP; 20691 L_36128EBF: 20692 MEM32(ebp + (-0x1C)) = ecx; /* 0x36128EBF: mov dword ptr [ebp - 0x1c], ecx */ 20693 L_36128EC2: 20694 MEM32(ebp + (-0x2C)) = edx; /* 0x36128EC2: mov dword ptr [ebp - 0x2c], edx */ 20695 L_36128EC5: 20696 MEM32(ebp + (-0x4)) = eax; /* 0x36128EC5: mov dword ptr [ebp - 4], eax */ 20697 L_36128EC8: 20698 RECOMP_BACKEDGE(); 20699 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36128CB7; /* 0x36128EC8: jl 0x36128cb7 */ 20700 L_36128ECE: 20701 SET_LO8(eax, MEM8(esi + 0x5B0)); /* 0x36128ECE: mov al, byte ptr [esi + 0x5b0] */ 20702 L_36128ED4: 20703 /* test LO8(eax), LO8(eax) */ /* 0x36128ED4: test al, al */ 20704 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 20705 _cf = 0; 20706 _flag_k = FK_NARROW(FK_TEST, 24); 20707 L_36128ED6: 20708 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361292F9; /* 0x36128ED6: je 0x361292f9 */ 20709 L_36128EDC: 20710 goto L_361292F5; /* 0x36128EDC: jmp 0x361292f5 */ 20711 L_36128EE1: 20712 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36128EE1: fld dword ptr [esi + 0xc] */ 20713 L_36128EE4: 20714 ecx = MEM32(esi + 0x20); /* 0x36128EE4: mov ecx, dword ptr [esi + 0x20] */ 20715 L_36128EE7: 20716 _st[0] /= (double)*(float*)ADDR(esi + 0x10); /* 0x36128EE7: fdiv dword ptr [esi + 0x10] */ 20717 L_36128EEA: 20718 eax = ebp + (-0x14); /* 0x36128EEA: lea eax, [ebp - 0x14] */ 20719 L_36128EED: 20720 PUSH32(esp, eax); /* 0x36128EED: push eax */ 20721 L_36128EEE: 20722 PUSH32(esp, 0x3EEu); /* 0x36128EEE: push 0x3ee */ 20723 L_36128EF3: 20724 MEM32(ebp + (-0x14)) = 0; /* 0x36128EF3: mov dword ptr [ebp - 0x14], 0 */ 20725 L_36128EFA: 20726 MEM32(ebp + (-0x10)) = 0; /* 0x36128EFA: mov dword ptr [ebp - 0x10], 0 */ 20727 L_36128F01: 20728 MEM32(ebp + (-0xC)) = 0; /* 0x36128F01: mov dword ptr [ebp - 0xc], 0 */ 20729 L_36128F08: 20730 _st[0] += _st[0]; /* 0x36128F08: fadd st(0), st(0) */ 20731 L_36128F0A: 20732 _st[0] -= (double)*(float*)ADDR(0x36170380); /* 0x36128F0A: fsub dword ptr [0x36170380] */ 20733 L_36128F10: 20734 fp_push(_st[0]); /* 0x36128F10: fld st(0) */ 20735 L_36128F12: 20736 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36128F12: fmulp st(1) */ 20737 L_36128F14: 20738 fp_push(_st[0]); /* 0x36128F14: fld st(0) */ 20739 L_36128F16: 20740 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36128F16: fmulp st(1) */ 20741 L_36128F18: 20742 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36128F18: fsubr dword ptr [0x36170380] */ 20743 L_36128F1E: 20744 _st[0] *= (double)*(float*)ADDR(esi + 0x620); /* 0x36128F1E: fmul dword ptr [esi + 0x620] */ 20745 L_36128F24: 20746 fp_push(_st[0]); /* 0x36128F24: fld st(0) */ 20747 L_36128F26: 20748 _st[0] *= (double)*(float*)ADDR(0x36170824); /* 0x36128F26: fmul dword ptr [0x36170824] */ 20749 L_36128F2C: 20750 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36128F2C: fstp dword ptr [ebp - 4] */ 20751 L_36128F2F: 20752 _st[0] *= (double)*(float*)ADDR(0x36177754); /* 0x36128F2F: fmul dword ptr [0x36177754] */ 20753 L_36128F35: 20754 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36128F35: fstp dword ptr [ebp - 0x1c] */ 20755 L_36128F38: 20756 RECOMP_ICALL(0x36133900u); /* 0x36128F38: call 0x36133900 */ /* not lifted */ 20757 RECOMP_FLAGS_IN(); 20758 L_36128F3D: 20759 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36128F3D: fld dword ptr [ebp - 4] */ 20760 L_36128F40: 20761 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20762 ecx = 0; /* 0x36128F40: xor ecx, ecx */ 20763 _cf = 0; 20764 _flag_k = FK_TEST; 20765 L_36128F42: 20766 _st[0] *= (double)*(float*)ADDR(0x361709E0); /* 0x36128F42: fmul dword ptr [0x361709e0] */ 20767 L_36128F48: 20768 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20769 edx = 0; /* 0x36128F48: xor edx, edx */ 20770 _cf = 0; 20771 _flag_k = FK_TEST; 20772 L_36128F4A: 20773 MEM32(ebp + (-0x2C)) = ecx; /* 0x36128F4A: mov dword ptr [ebp - 0x2c], ecx */ 20774 L_36128F4D: 20775 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20776 eax = 0; /* 0x36128F4D: xor eax, eax */ 20777 _cf = 0; 20778 _flag_k = FK_TEST; 20779 L_36128F4F: 20780 ebx = MEM32(esi + 0x2C); /* 0x36128F4F: mov ebx, dword ptr [esi + 0x2c] */ 20781 L_36128F52: 20782 fp_push((double)(int32_t)MEM32(ebp + (-0x2C))); /* 0x36128F52: fild dword ptr [ebp - 0x2c] */ 20783 L_36128F55: 20784 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36128F55: fld dword ptr [ebp - 4] */ 20785 L_36128F58: 20786 edi = eax; /* 0x36128F58: mov edi, eax */ 20787 L_36128F5A: 20788 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 20789 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20790 edi = edi + ebx; /* 0x36128F5A: add edi, ebx */ 20791 _flag_k = FK_ADD; 20792 L_36128F5C: 20793 ebx = MEM32(ebp + (-0x14)); /* 0x36128F5C: mov ebx, dword ptr [ebp - 0x14] */ 20794 L_36128F5F: 20795 MEM32(edi) = ebx; /* 0x36128F5F: mov dword ptr [edi], ebx */ 20796 L_36128F61: 20797 ebx = MEM32(ebp + (-0x10)); /* 0x36128F61: mov ebx, dword ptr [ebp - 0x10] */ 20798 L_36128F64: 20799 MEM32(edi + 0x4) = ebx; /* 0x36128F64: mov dword ptr [edi + 4], ebx */ 20800 L_36128F67: 20801 ebx = MEM32(ebp + (-0xC)); /* 0x36128F67: mov ebx, dword ptr [ebp - 0xc] */ 20802 L_36128F6A: 20803 MEM32(edi + 0x8) = ebx; /* 0x36128F6A: mov dword ptr [edi + 8], ebx */ 20804 L_36128F6D: 20805 edi = MEM32(esi + 0x2C); /* 0x36128F6D: mov edi, dword ptr [esi + 0x2c] */ 20806 L_36128F70: 20807 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edi + 0xC) = _v; } /* 0x36128F70: fstp dword ptr [eax + edi + 0xc] */ 20808 L_36128F74: 20809 edi = MEM32(esi + 0x2C); /* 0x36128F74: mov edi, dword ptr [esi + 0x2c] */ 20810 L_36128F77: 20811 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36128F77: fld dword ptr [ebp - 4] */ 20812 L_36128F7A: 20813 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edi + 0x10) = _v; } /* 0x36128F7A: fstp dword ptr [eax + edi + 0x10] */ 20814 L_36128F7E: 20815 ebx = MEM32(esi + 0x2C); /* 0x36128F7E: mov ebx, dword ptr [esi + 0x2c] */ 20816 L_36128F81: 20817 edi = ecx; /* 0x36128F81: mov edi, ecx */ 20818 L_36128F83: 20819 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(7); 20820 edi = edi & 7; /* 0x36128F83: and edi, 7 */ 20821 _cf = 0; 20822 _flag_k = FK_TEST; 20823 L_36128F86: 20824 fp_push(_st[0]); /* 0x36128F86: fld st(0) */ 20825 L_36128F88: 20826 edi = MEM32(edi * 4 + 0x362E5C14); /* 0x36128F88: mov edi, dword ptr [edi*4 + 0x362e5c14] */ 20827 L_36128F8F: 20828 _st[0] -= (double)*(float*)ADDR(0x36174F9C); /* 0x36128F8F: fsub dword ptr [0x36174f9c] */ 20829 L_36128F95: 20830 MEM32(eax + ebx + 0x1C) = edi; /* 0x36128F95: mov dword ptr [eax + ebx + 0x1c], edi */ 20831 L_36128F99: 20832 edi = MEM32(esi + 0x2C); /* 0x36128F99: mov edi, dword ptr [esi + 0x2c] */ 20833 L_36128F9C: 20834 MEM32(eax + edi + 0x20) = edx; /* 0x36128F9C: mov dword ptr [eax + edi + 0x20], edx */ 20835 L_36128FA0: 20836 edi = MEM32(esi + 0x2C); /* 0x36128FA0: mov edi, dword ptr [esi + 0x2c] */ 20837 L_36128FA3: 20838 MEM32(eax + edi + 0x18) = edx; /* 0x36128FA3: mov dword ptr [eax + edi + 0x18], edx */ 20839 L_36128FA7: 20840 edi = MEM32(esi + 0x2C); /* 0x36128FA7: mov edi, dword ptr [esi + 0x2c] */ 20841 L_36128FAA: 20842 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x36128FAA: fmul dword ptr [esi + 0xc] */ 20843 L_36128FAD: 20844 _st[0] *= (double)*(float*)ADDR(0x36170EBC); /* 0x36128FAD: fmul dword ptr [0x36170ebc] */ 20845 L_36128FB3: 20846 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edi + 0x14) = _v; } /* 0x36128FB3: fstp dword ptr [eax + edi + 0x14] */ 20847 L_36128FB7: 20848 edi = MEM32(esi + 0x2C); /* 0x36128FB7: mov edi, dword ptr [esi + 0x2c] */ 20849 L_36128FBA: 20850 MEM8(eax + edi + 0x24) = (uint8_t)(1); /* 0x36128FBA: mov byte ptr [eax + edi + 0x24], 1 */ 20851 L_36128FBF: 20852 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36128FBF: fld dword ptr [ebp - 0x1c] */ 20853 L_36128FC2: 20854 edi = MEM32(esi + 0x2C); /* 0x36128FC2: mov edi, dword ptr [esi + 0x2c] */ 20855 L_36128FC5: 20856 ebx = MEM32(ebp + (-0x14)); /* 0x36128FC5: mov ebx, dword ptr [ebp - 0x14] */ 20857 L_36128FC8: 20858 edi = eax + edi + 0x28; /* 0x36128FC8: lea edi, [eax + edi + 0x28] */ 20859 L_36128FCC: 20860 MEM32(edi) = ebx; /* 0x36128FCC: mov dword ptr [edi], ebx */ 20861 L_36128FCE: 20862 ebx = MEM32(ebp + (-0x10)); /* 0x36128FCE: mov ebx, dword ptr [ebp - 0x10] */ 20863 L_36128FD1: 20864 MEM32(edi + 0x4) = ebx; /* 0x36128FD1: mov dword ptr [edi + 4], ebx */ 20865 L_36128FD4: 20866 ebx = MEM32(ebp + (-0xC)); /* 0x36128FD4: mov ebx, dword ptr [ebp - 0xc] */ 20867 L_36128FD7: 20868 MEM32(edi + 0x8) = ebx; /* 0x36128FD7: mov dword ptr [edi + 8], ebx */ 20869 L_36128FDA: 20870 edi = MEM32(esi + 0x2C); /* 0x36128FDA: mov edi, dword ptr [esi + 0x2c] */ 20871 L_36128FDD: 20872 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edi + 0x34) = _v; } /* 0x36128FDD: fstp dword ptr [eax + edi + 0x34] */ 20873 L_36128FE1: 20874 edi = MEM32(esi + 0x2C); /* 0x36128FE1: mov edi, dword ptr [esi + 0x2c] */ 20875 L_36128FE4: 20876 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36128FE4: fld dword ptr [ebp - 0x1c] */ 20877 L_36128FE7: 20878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x50u); 20879 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20880 eax = eax + 0x50u; /* 0x36128FE7: add eax, 0x50 */ 20881 _flag_k = FK_ADD; 20882 L_36128FEA: 20883 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edi + (-0x18)) = _v; } /* 0x36128FEA: fstp dword ptr [eax + edi - 0x18] */ 20884 L_36128FEE: 20885 ebx = MEM32(esi + 0x2C); /* 0x36128FEE: mov ebx, dword ptr [esi + 0x2c] */ 20886 L_36128FF1: 20887 edi = ecx + 0x1; /* 0x36128FF1: lea edi, [ecx + 1] */ 20888 L_36128FF4: 20889 fp_push(_st[1]); /* 0x36128FF4: fld st(1) */ 20890 L_36128FF6: 20891 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(7); 20892 edi = edi & 7; /* 0x36128FF6: and edi, 7 */ 20893 _cf = 0; 20894 _flag_k = FK_TEST; 20895 L_36128FF9: 20896 edi = MEM32(edi * 4 + 0x362E5C14); /* 0x36128FF9: mov edi, dword ptr [edi*4 + 0x362e5c14] */ 20897 L_36129000: 20898 MEM32(eax + ebx + (-0xC)) = edi; /* 0x36129000: mov dword ptr [eax + ebx - 0xc], edi */ 20899 L_36129004: 20900 edi = MEM32(esi + 0x2C); /* 0x36129004: mov edi, dword ptr [esi + 0x2c] */ 20901 L_36129007: 20902 MEM32(eax + edi + (-0x8)) = edx; /* 0x36129007: mov dword ptr [eax + edi - 8], edx */ 20903 L_3612900B: 20904 edi = MEM32(esi + 0x2C); /* 0x3612900B: mov edi, dword ptr [esi + 0x2c] */ 20905 L_3612900E: 20906 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edi + (-0x10)) = _v; } /* 0x3612900E: fstp dword ptr [eax + edi - 0x10] */ 20907 L_36129012: 20908 edi = MEM32(esi + 0x2C); /* 0x36129012: mov edi, dword ptr [esi + 0x2c] */ 20909 L_36129015: 20910 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 20911 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20912 ecx = ecx + 2; /* 0x36129015: add ecx, 2 */ 20913 _flag_k = FK_ADD; 20914 L_36129018: 20915 /* cmp eax, 0xA0u */ /* 0x36129018: cmp eax, 0xa0 */ 20916 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA0u); 20917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20918 _flag_k = FK_CMP; 20919 L_3612901D: 20920 _st[0] -= (double)*(float*)ADDR(0x36177748); /* 0x3612901D: fsub dword ptr [0x36177748] */ 20921 L_36129023: 20922 MEM32(ebp + (-0x2C)) = ecx; /* 0x36129023: mov dword ptr [ebp - 0x2c], ecx */ 20923 L_36129026: 20924 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x36129026: fmul dword ptr [esi + 0xc] */ 20925 L_36129029: 20926 _st[0] *= (double)*(float*)ADDR(0x361777D0); /* 0x36129029: fmul dword ptr [0x361777d0] */ 20927 L_3612902F: 20928 { float _v = (float)fp_pop(); *(float*)ADDR(eax + edi + (-0x14)) = _v; } /* 0x3612902F: fstp dword ptr [eax + edi - 0x14] */ 20929 L_36129033: 20930 edi = MEM32(esi + 0x2C); /* 0x36129033: mov edi, dword ptr [esi + 0x2c] */ 20931 L_36129036: 20932 MEM8(eax + edi + (-0x4)) = (uint8_t)(1); /* 0x36129036: mov byte ptr [eax + edi - 4], 1 */ 20933 L_3612903B: 20934 RECOMP_BACKEDGE(); 20935 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36128F4F; /* 0x3612903B: jl 0x36128f4f */ 20936 L_36129041: 20937 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36129041: fstp st(0) */ 20938 L_36129043: 20939 SET_LO8(eax, MEM8(esi + 0x5B0)); /* 0x36129043: mov al, byte ptr [esi + 0x5b0] */ 20940 L_36129049: 20941 /* test LO8(eax), LO8(eax) */ /* 0x36129049: test al, al */ 20942 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 20943 _cf = 0; 20944 _flag_k = FK_NARROW(FK_TEST, 24); 20945 L_3612904B: 20946 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361292F9; /* 0x3612904B: je 0x361292f9 */ 20947 L_36129051: 20948 goto L_361292F5; /* 0x36129051: jmp 0x361292f5 */ 20949 L_36129056: 20950 ecx = MEM32(esi + 0xC); /* 0x36129056: mov ecx, dword ptr [esi + 0xc] */ 20951 L_36129059: 20952 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20953 edi = 0; /* 0x36129059: xor edi, edi */ 20954 _cf = 0; 20955 _flag_k = FK_TEST; 20956 L_3612905B: 20957 edx = esi + 0x530; /* 0x3612905B: lea edx, [esi + 0x530] */ 20958 L_36129061: 20959 MEM32(ebp + (-0x2C)) = 3; /* 0x36129061: mov dword ptr [ebp - 0x2c], 3 */ 20960 L_36129068: 20961 MEM32(ebp + (-0x18)) = edi; /* 0x36129068: mov dword ptr [ebp - 0x18], edi */ 20962 L_3612906B: 20963 MEM32(ebp + (-0x4)) = ecx; /* 0x3612906B: mov dword ptr [ebp - 4], ecx */ 20964 L_3612906E: 20965 MEM32(ebp + (-0x48)) = edi; /* 0x3612906E: mov dword ptr [ebp - 0x48], edi */ 20966 L_36129071: 20967 MEM32(ebp + (-0x8)) = edx; /* 0x36129071: mov dword ptr [ebp - 8], edx */ 20968 L_36129074: 20969 ebx = esi + 0x330; /* 0x36129074: lea ebx, [esi + 0x330] */ 20970 L_3612907A: 20971 eax = MEM32(ebp + (-0x8)); /* 0x3612907A: mov eax, dword ptr [ebp - 8] */ 20972 L_3612907D: 20973 fp_push(*(float*)&MEM32(eax)); /* 0x3612907D: fld dword ptr [eax] */ 20974 L_3612907F: 20975 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3612907F: fcomp dword ptr [ebp - 4] */ 20976 fp_pop(); 20977 L_36129082: 20978 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36129082: fnstsw ax */ 20979 L_36129084: 20980 /* test HI8(eax), 0x41u */ /* 0x36129084: test ah, 0x41 */ 20981 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 20982 _cf = 0; 20983 _flag_k = FK_NARROW(FK_TEST, 24); 20984 L_36129087: 20985 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36129142; /* 0x36129087: jne 0x36129142 */ 20986 L_3612908D: 20987 edx = MEM32(esi + 0x2C); /* 0x3612908D: mov edx, dword ptr [esi + 0x2c] */ 20988 L_36129090: 20989 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36129090: fld dword ptr [ebp - 4] */ 20990 L_36129093: 20991 ecx = edi; /* 0x36129093: mov ecx, edi */ 20992 L_36129095: 20993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 20994 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20995 ecx = ecx + edx; /* 0x36129095: add ecx, edx */ 20996 _flag_k = FK_ADD; 20997 L_36129097: 20998 edx = ebx; /* 0x36129097: mov edx, ebx */ 20999 L_36129099: 21000 eax = MEM32(edx); /* 0x36129099: mov eax, dword ptr [edx] */ 21001 L_3612909B: 21002 MEM32(ecx) = eax; /* 0x3612909B: mov dword ptr [ecx], eax */ 21003 L_3612909D: 21004 eax = MEM32(edx + 0x4); /* 0x3612909D: mov eax, dword ptr [edx + 4] */ 21005 L_361290A0: 21006 MEM32(ecx + 0x4) = eax; /* 0x361290A0: mov dword ptr [ecx + 4], eax */ 21007 L_361290A3: 21008 edx = MEM32(edx + 0x8); /* 0x361290A3: mov edx, dword ptr [edx + 8] */ 21009 L_361290A6: 21010 eax = MEM32(ebp + (-0x8)); /* 0x361290A6: mov eax, dword ptr [ebp - 8] */ 21011 L_361290A9: 21012 MEM32(ecx + 0x8) = edx; /* 0x361290A9: mov dword ptr [ecx + 8], edx */ 21013 L_361290AC: 21014 _st[0] += (double)*(float*)ADDR(esi + 0x618); /* 0x361290AC: fadd dword ptr [esi + 0x618] */ 21015 L_361290B2: 21016 ecx = MEM32(esi + 0x2C); /* 0x361290B2: mov ecx, dword ptr [esi + 0x2c] */ 21017 L_361290B5: 21018 edx = MEM32(esi + 0x620); /* 0x361290B5: mov edx, dword ptr [esi + 0x620] */ 21019 L_361290BB: 21020 _st[0] -= (double)*(float*)ADDR(eax); /* 0x361290BB: fsub dword ptr [eax] */ 21021 L_361290BD: 21022 _st[0] /= (double)*(float*)ADDR(esi + 0x618); /* 0x361290BD: fdiv dword ptr [esi + 0x618] */ 21023 L_361290C3: 21024 MEM32(edi + ecx + 0xC) = edx; /* 0x361290C3: mov dword ptr [edi + ecx + 0xc], edx */ 21025 L_361290C7: 21026 ecx = MEM32(esi + 0x620); /* 0x361290C7: mov ecx, dword ptr [esi + 0x620] */ 21027 L_361290CD: 21028 eax = MEM32(esi + 0x2C); /* 0x361290CD: mov eax, dword ptr [esi + 0x2c] */ 21029 L_361290D0: 21030 MEM32(edi + eax + 0x10) = ecx; /* 0x361290D0: mov dword ptr [edi + eax + 0x10], ecx */ 21031 L_361290D4: 21032 ecx = esi + 0x5E4; /* 0x361290D4: lea ecx, [esi + 0x5e4] */ 21033 L_361290DA: 21034 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361290DA: fstp dword ptr [ebp - 0x1c] */ 21035 L_361290DD: 21036 edx = MEM32(ebp + (-0x1C)); /* 0x361290DD: mov edx, dword ptr [ebp - 0x1c] */ 21037 L_361290E0: 21038 PUSH32(esp, edx); /* 0x361290E0: push edx */ 21039 L_361290E1: 21040 RECOMP_ICALL(0x36137D80u); /* 0x361290E1: call 0x36137d80 */ /* not lifted */ 21041 RECOMP_FLAGS_IN(); 21042 L_361290E6: 21043 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x361290E6: fld dword ptr [ebp - 0x1c] */ 21044 L_361290E9: 21045 ecx = MEM32(esi + 0x2C); /* 0x361290E9: mov ecx, dword ptr [esi + 0x2c] */ 21046 L_361290EC: 21047 MEM32(edi + ecx + 0x1C) = eax; /* 0x361290EC: mov dword ptr [edi + ecx + 0x1c], eax */ 21048 L_361290F0: 21049 _st[0] *= (double)*(float*)ADDR(esi + 0x624); /* 0x361290F0: fmul dword ptr [esi + 0x624] */ 21050 L_361290F6: 21051 RECOMP_ICALL(0x3615FD8Cu); /* 0x361290F6: call 0x3615fd8c */ /* not lifted */ 21052 RECOMP_FLAGS_IN(); 21053 L_361290FB: 21054 edx = 0xFu; /* 0x361290FB: mov edx, 0xf */ 21055 L_36129100: 21056 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 21057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21058 edx = edx - eax; /* 0x36129100: sub edx, eax */ 21059 _flag_k = FK_CMP; 21060 L_36129102: 21061 eax = MEM32(esi + 0x2C); /* 0x36129102: mov eax, dword ptr [esi + 0x2c] */ 21062 L_36129105: 21063 MEM32(edi + eax + 0x20) = edx; /* 0x36129105: mov dword ptr [edi + eax + 0x20], edx */ 21064 L_36129109: 21065 ecx = MEM32(esi + 0x2C); /* 0x36129109: mov ecx, dword ptr [esi + 0x2c] */ 21066 L_3612910C: 21067 eax = MEM32(ebp + (-0x48)); /* 0x3612910C: mov eax, dword ptr [ebp - 0x48] */ 21068 L_3612910F: 21069 MEM32(edi + ecx + 0x18) = 0; /* 0x3612910F: mov dword ptr [edi + ecx + 0x18], 0 */ 21070 L_36129117: 21071 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36129117: cdq */ 21072 L_36129118: 21073 ecx = 7; /* 0x36129118: mov ecx, 7 */ 21074 L_3612911D: 21075 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3612911D: idiv ecx */ 21076 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 21077 else { eax = 0; edx = 0; } } 21078 L_3612911F: 21079 MEM32(ebp + (-0x1C)) = edx; /* 0x3612911F: mov dword ptr [ebp - 0x1c], edx */ 21080 L_36129122: 21081 fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x36129122: fild dword ptr [ebp - 0x1c] */ 21082 L_36129125: 21083 edx = MEM32(esi + 0x2C); /* 0x36129125: mov edx, dword ptr [esi + 0x2c] */ 21084 L_36129128: 21085 _st[0] *= (double)*(float*)ADDR(0x36174F98); /* 0x36129128: fmul dword ptr [0x36174f98] */ 21086 L_3612912E: 21087 { float _v = (float)fp_pop(); *(float*)ADDR(edi + edx + 0x14) = _v; } /* 0x3612912E: fstp dword ptr [edi + edx + 0x14] */ 21088 L_36129132: 21089 eax = MEM32(esi + 0x2C); /* 0x36129132: mov eax, dword ptr [esi + 0x2c] */ 21090 L_36129135: 21091 MEM8(edi + eax + 0x24) = (uint8_t)(1); /* 0x36129135: mov byte ptr [edi + eax + 0x24], 1 */ 21092 L_3612913A: 21093 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1); 21094 MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) + 1; /* 0x3612913A: inc dword ptr [ebp - 0x18] */ 21095 _flag_k = FK_INC; 21096 L_3612913D: 21097 goto L_361292C2; /* 0x3612913D: jmp 0x361292c2 */ 21098 L_36129142: 21099 eax = MEM32(ebp + (-0x2C)); /* 0x36129142: mov eax, dword ptr [ebp - 0x2c] */ 21100 L_36129145: 21101 /* test eax, eax */ /* 0x36129145: test eax, eax */ 21102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21103 _cf = 0; 21104 _flag_k = FK_TEST; 21105 L_36129147: 21106 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361292BA; /* 0x36129147: je 0x361292ba */ 21107 L_3612914D: 21108 SET_LO8(eax, MEM8(esi + 0x5B0)); /* 0x3612914D: mov al, byte ptr [esi + 0x5b0] */ 21109 L_36129153: 21110 /* test LO8(eax), LO8(eax) */ /* 0x36129153: test al, al */ 21111 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 21112 _cf = 0; 21113 _flag_k = FK_NARROW(FK_TEST, 24); 21114 L_36129155: 21115 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_361292BA; /* 0x36129155: jne 0x361292ba */ 21116 L_3612915B: 21117 RECOMP_ICALL(0x360F7B00u); /* 0x3612915B: call 0x360f7b00 */ /* not lifted */ 21118 RECOMP_FLAGS_IN(); 21119 L_36129160: 21120 ecx = MEM32(esi + 0x24); /* 0x36129160: mov ecx, dword ptr [esi + 0x24] */ 21121 L_36129163: 21122 PUSH32(esp, ecx); /* 0x36129163: push ecx */ 21123 L_36129164: 21124 ecx = eax; /* 0x36129164: mov ecx, eax */ 21125 L_36129166: 21126 RECOMP_ICALL(0x360FBF90u); /* 0x36129166: call 0x360fbf90 */ /* not lifted */ 21127 RECOMP_FLAGS_IN(); 21128 L_3612916B: 21129 /* test eax, eax */ /* 0x3612916B: test eax, eax */ 21130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21131 _cf = 0; 21132 _flag_k = FK_TEST; 21133 L_3612916D: 21134 MEM32(ebp + (-0x1C)) = eax; /* 0x3612916D: mov dword ptr [ebp - 0x1c], eax */ 21135 L_36129170: 21136 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361292B0; /* 0x36129170: je 0x361292b0 */ 21137 L_36129176: 21138 edx = ebp + (-0x7C); /* 0x36129176: lea edx, [ebp - 0x7c] */ 21139 L_36129179: 21140 PUSH32(esp, edx); /* 0x36129179: push edx */ 21141 L_3612917A: 21142 ecx = eax; /* 0x3612917A: mov ecx, eax */ 21143 L_3612917C: 21144 RECOMP_ICALL(0x36131BB0u); /* 0x3612917C: call 0x36131bb0 */ /* not lifted */ 21145 RECOMP_FLAGS_IN(); 21146 L_36129181: 21147 ecx = MEM32(eax); /* 0x36129181: mov ecx, dword ptr [eax] */ 21148 L_36129183: 21149 edx = MEM32(eax + 0x4); /* 0x36129183: mov edx, dword ptr [eax + 4] */ 21150 L_36129186: 21151 eax = MEM32(eax + 0x8); /* 0x36129186: mov eax, dword ptr [eax + 8] */ 21152 L_36129189: 21153 MEM32(ebp + (-0x28)) = ecx; /* 0x36129189: mov dword ptr [ebp - 0x28], ecx */ 21154 L_3612918C: 21155 ecx = ebp + (-0x60); /* 0x3612918C: lea ecx, [ebp - 0x60] */ 21156 L_3612918F: 21157 PUSH32(esp, ecx); /* 0x3612918F: push ecx */ 21158 L_36129190: 21159 ecx = MEM32(ebp + (-0x1C)); /* 0x36129190: mov ecx, dword ptr [ebp - 0x1c] */ 21160 L_36129193: 21161 MEM32(ebp + (-0x24)) = edx; /* 0x36129193: mov dword ptr [ebp - 0x24], edx */ 21162 L_36129196: 21163 MEM32(ebp + (-0x20)) = eax; /* 0x36129196: mov dword ptr [ebp - 0x20], eax */ 21164 L_36129199: 21165 RECOMP_ICALL(0x36131C00u); /* 0x36129199: call 0x36131c00 */ /* not lifted */ 21166 RECOMP_FLAGS_IN(); 21167 L_3612919E: 21168 edx = MEM32(eax); /* 0x3612919E: mov edx, dword ptr [eax] */ 21169 L_361291A0: 21170 ecx = MEM32(eax + 0x4); /* 0x361291A0: mov ecx, dword ptr [eax + 4] */ 21171 L_361291A3: 21172 MEM32(ebp + (-0x54)) = edx; /* 0x361291A3: mov dword ptr [ebp - 0x54], edx */ 21173 L_361291A6: 21174 edx = MEM32(eax + 0x8); /* 0x361291A6: mov edx, dword ptr [eax + 8] */ 21175 L_361291A9: 21176 MEM32(ebp + (-0x50)) = ecx; /* 0x361291A9: mov dword ptr [ebp - 0x50], ecx */ 21177 L_361291AC: 21178 MEM32(ebp + (-0x4C)) = edx; /* 0x361291AC: mov dword ptr [ebp - 0x4c], edx */ 21179 L_361291AF: 21180 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361291AF: call dword ptr [0x3616f254] */ 21181 RECOMP_FLAGS_IN(); 21182 L_361291B5: 21183 ecx = MEM32(ebp + (-0x24)); /* 0x361291B5: mov ecx, dword ptr [ebp - 0x24] */ 21184 L_361291B8: 21185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 21186 eax = eax & 0x7FFFu; /* 0x361291B8: and eax, 0x7fff */ 21187 _cf = 0; 21188 _flag_k = FK_TEST; 21189 L_361291BD: 21190 edx = MEM32(ebp + (-0x20)); /* 0x361291BD: mov edx, dword ptr [ebp - 0x20] */ 21191 L_361291C0: 21192 MEM32(ebp + (-0x1C)) = eax; /* 0x361291C0: mov dword ptr [ebp - 0x1c], eax */ 21193 L_361291C3: 21194 fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x361291C3: fild dword ptr [ebp - 0x1c] */ 21195 L_361291C6: 21196 eax = MEM32(ebp + (-0x28)); /* 0x361291C6: mov eax, dword ptr [ebp - 0x28] */ 21197 L_361291C9: 21198 MEM32(ebp + (-0x44)) = eax; /* 0x361291C9: mov dword ptr [ebp - 0x44], eax */ 21199 L_361291CC: 21200 eax = MEM32(ebp + (-0x54)); /* 0x361291CC: mov eax, dword ptr [ebp - 0x54] */ 21201 L_361291CF: 21202 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x361291CF: fmul dword ptr [0x36175f2c] */ 21203 L_361291D5: 21204 MEM32(ebp + (-0x40)) = ecx; /* 0x361291D5: mov dword ptr [ebp - 0x40], ecx */ 21205 L_361291D8: 21206 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361291D8: fld dword ptr [0x36170380] */ 21207 L_361291DE: 21208 ecx = MEM32(ebp + (-0x50)); /* 0x361291DE: mov ecx, dword ptr [ebp - 0x50] */ 21209 L_361291E1: 21210 MEM32(ebp + (-0x3C)) = edx; /* 0x361291E1: mov dword ptr [ebp - 0x3c], edx */ 21211 L_361291E4: 21212 _st[0] -= _st[1]; /* 0x361291E4: fsub st(1) */ 21213 L_361291E6: 21214 edx = MEM32(ebp + (-0x4C)); /* 0x361291E6: mov edx, dword ptr [ebp - 0x4c] */ 21215 L_361291E9: 21216 MEM32(ebp + (-0x14)) = eax; /* 0x361291E9: mov dword ptr [ebp - 0x14], eax */ 21217 L_361291EC: 21218 MEM32(ebp + (-0x10)) = ecx; /* 0x361291EC: mov dword ptr [ebp - 0x10], ecx */ 21219 L_361291EF: 21220 fp_push(_st[0]); /* 0x361291EF: fld st(0) */ 21221 L_361291F1: 21222 _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x361291F1: fmul dword ptr [ebp - 0x28] */ 21223 L_361291F4: 21224 MEM32(ebp + (-0xC)) = edx; /* 0x361291F4: mov dword ptr [ebp - 0xc], edx */ 21225 L_361291F7: 21226 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361291F7: fstp dword ptr [ebp - 0x44] */ 21227 L_361291FA: 21228 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361291FA: fld dword ptr [ebp - 0x40] */ 21229 L_361291FD: 21230 _st[0] *= _st[1]; /* 0x361291FD: fmul st(1) */ 21231 L_361291FF: 21232 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361291FF: fstp dword ptr [ebp - 0x40] */ 21233 L_36129202: 21234 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36129202: fld dword ptr [ebp - 0x3c] */ 21235 L_36129205: 21236 _st[0] *= _st[1]; /* 0x36129205: fmul st(1) */ 21237 L_36129207: 21238 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36129207: fstp dword ptr [ebp - 0x3c] */ 21239 L_3612920A: 21240 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3612920A: fstp st(0) */ 21241 L_3612920C: 21242 fp_push(_st[0]); /* 0x3612920C: fld st(0) */ 21243 L_3612920E: 21244 _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x3612920E: fmul dword ptr [ebp - 0x54] */ 21245 L_36129211: 21246 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36129211: fstp dword ptr [ebp - 0x14] */ 21247 L_36129214: 21248 eax = MEM32(ebp + (-0x14)); /* 0x36129214: mov eax, dword ptr [ebp - 0x14] */ 21249 L_36129217: 21250 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36129217: fld dword ptr [ebp - 0x10] */ 21251 L_3612921A: 21252 MEM32(ebp + (-0x38)) = eax; /* 0x3612921A: mov dword ptr [ebp - 0x38], eax */ 21253 L_3612921D: 21254 _st[0] *= _st[1]; /* 0x3612921D: fmul st(1) */ 21255 L_3612921F: 21256 eax = ebx; /* 0x3612921F: mov eax, ebx */ 21257 L_36129221: 21258 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36129221: fstp dword ptr [ebp - 0x10] */ 21259 L_36129224: 21260 ecx = MEM32(ebp + (-0x10)); /* 0x36129224: mov ecx, dword ptr [ebp - 0x10] */ 21261 L_36129227: 21262 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36129227: fld dword ptr [ebp - 0xc] */ 21263 L_3612922A: 21264 MEM32(ebp + (-0x34)) = ecx; /* 0x3612922A: mov dword ptr [ebp - 0x34], ecx */ 21265 L_3612922D: 21266 _st[0] *= _st[1]; /* 0x3612922D: fmul st(1) */ 21267 L_3612922F: 21268 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3612922F: fstp dword ptr [ebp - 0xc] */ 21269 L_36129232: 21270 edx = MEM32(ebp + (-0xC)); /* 0x36129232: mov edx, dword ptr [ebp - 0xc] */ 21271 L_36129235: 21272 MEM32(ebp + (-0x30)) = edx; /* 0x36129235: mov dword ptr [ebp - 0x30], edx */ 21273 L_36129238: 21274 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36129238: fstp st(0) */ 21275 L_3612923A: 21276 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3612923A: fld dword ptr [ebp - 0x14] */ 21277 L_3612923D: 21278 _st[0] += (double)*(float*)ADDR(ebp + (-0x44)); /* 0x3612923D: fadd dword ptr [ebp - 0x44] */ 21279 L_36129240: 21280 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36129240: fstp dword ptr [ebp - 0x38] */ 21281 L_36129243: 21282 ecx = MEM32(ebp + (-0x38)); /* 0x36129243: mov ecx, dword ptr [ebp - 0x38] */ 21283 L_36129246: 21284 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36129246: fld dword ptr [ebp - 0x34] */ 21285 L_36129249: 21286 MEM32(eax) = ecx; /* 0x36129249: mov dword ptr [eax], ecx */ 21287 L_3612924B: 21288 _st[0] += (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3612924B: fadd dword ptr [ebp - 0x40] */ 21289 L_3612924E: 21290 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3612924E: fstp dword ptr [ebp - 0x34] */ 21291 L_36129251: 21292 edx = MEM32(ebp + (-0x34)); /* 0x36129251: mov edx, dword ptr [ebp - 0x34] */ 21293 L_36129254: 21294 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36129254: fld dword ptr [ebp - 0x30] */ 21295 L_36129257: 21296 MEM32(eax + 0x4) = edx; /* 0x36129257: mov dword ptr [eax + 4], edx */ 21297 L_3612925A: 21298 _st[0] += (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x3612925A: fadd dword ptr [ebp - 0x3c] */ 21299 L_3612925D: 21300 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3612925D: fstp dword ptr [ebp - 0x30] */ 21301 L_36129260: 21302 ecx = MEM32(ebp + (-0x30)); /* 0x36129260: mov ecx, dword ptr [ebp - 0x30] */ 21303 L_36129263: 21304 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36129263: fld dword ptr [ebp - 4] */ 21305 L_36129266: 21306 MEM32(eax + 0x8) = ecx; /* 0x36129266: mov dword ptr [eax + 8], ecx */ 21307 L_36129269: 21308 MEM32(ebp + (-0x70)) = 0; /* 0x36129269: mov dword ptr [ebp - 0x70], 0 */ 21309 L_36129270: 21310 eax = MEM32(ebp + (-0x70)); /* 0x36129270: mov eax, dword ptr [ebp - 0x70] */ 21311 L_36129273: 21312 edx = ebx + (-0x180); /* 0x36129273: lea edx, [ebx - 0x180] */ 21313 L_36129279: 21314 MEM32(edx) = eax; /* 0x36129279: mov dword ptr [edx], eax */ 21315 L_3612927B: 21316 MEM32(ebp + (-0x6C)) = 0; /* 0x3612927B: mov dword ptr [ebp - 0x6c], 0 */ 21317 L_36129282: 21318 ecx = MEM32(ebp + (-0x6C)); /* 0x36129282: mov ecx, dword ptr [ebp - 0x6c] */ 21319 L_36129285: 21320 MEM32(edx + 0x4) = ecx; /* 0x36129285: mov dword ptr [edx + 4], ecx */ 21321 L_36129288: 21322 ecx = MEM32(ebp + (-0x8)); /* 0x36129288: mov ecx, dword ptr [ebp - 8] */ 21323 L_3612928B: 21324 MEM32(ebp + (-0x68)) = 0; /* 0x3612928B: mov dword ptr [ebp - 0x68], 0 */ 21325 L_36129292: 21326 eax = MEM32(ebp + (-0x68)); /* 0x36129292: mov eax, dword ptr [ebp - 0x68] */ 21327 L_36129295: 21328 MEM32(edx + 0x8) = eax; /* 0x36129295: mov dword ptr [edx + 8], eax */ 21329 L_36129298: 21330 _st[0] += (double)*(float*)ADDR(esi + 0x618); /* 0x36129298: fadd dword ptr [esi + 0x618] */ 21331 L_3612929E: 21332 eax = MEM32(ebp + (-0x2C)); /* 0x3612929E: mov eax, dword ptr [ebp - 0x2c] */ 21333 L_361292A1: 21334 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361292A1: fstp dword ptr [ecx] */ 21335 L_361292A3: 21336 ecx = MEM32(ebp + (-0x18)); /* 0x361292A3: mov ecx, dword ptr [ebp - 0x18] */ 21337 L_361292A6: 21338 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 21339 ecx = ecx + 1; /* 0x361292A6: inc ecx */ 21340 _flag_k = FK_INC; 21341 L_361292A7: 21342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 21343 eax = eax - 1; /* 0x361292A7: dec eax */ 21344 _flag_k = FK_DEC; 21345 L_361292A8: 21346 MEM32(ebp + (-0x18)) = ecx; /* 0x361292A8: mov dword ptr [ebp - 0x18], ecx */ 21347 L_361292AB: 21348 MEM32(ebp + (-0x2C)) = eax; /* 0x361292AB: mov dword ptr [ebp - 0x2c], eax */ 21349 L_361292AE: 21350 goto L_361292C2; /* 0x361292AE: jmp 0x361292c2 */ 21351 L_361292B0: 21352 edx = MEM32(esi + 0x2C); /* 0x361292B0: mov edx, dword ptr [esi + 0x2c] */ 21353 L_361292B3: 21354 MEM8(edx + edi + 0x24) = (uint8_t)(0); /* 0x361292B3: mov byte ptr [edx + edi + 0x24], 0 */ 21355 L_361292B8: 21356 goto L_361292C2; /* 0x361292B8: jmp 0x361292c2 */ 21357 L_361292BA: 21358 eax = MEM32(esi + 0x2C); /* 0x361292BA: mov eax, dword ptr [esi + 0x2c] */ 21359 L_361292BD: 21360 MEM8(eax + edi + 0x24) = (uint8_t)(0); /* 0x361292BD: mov byte ptr [eax + edi + 0x24], 0 */ 21361 L_361292C2: 21362 ecx = MEM32(ebp + (-0x48)); /* 0x361292C2: mov ecx, dword ptr [ebp - 0x48] */ 21363 L_361292C5: 21364 edx = MEM32(ebp + (-0x8)); /* 0x361292C5: mov edx, dword ptr [ebp - 8] */ 21365 L_361292C8: 21366 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 21367 ecx = ecx + 1; /* 0x361292C8: inc ecx */ 21368 _flag_k = FK_INC; 21369 L_361292C9: 21370 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 21371 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21372 edx = edx + 4; /* 0x361292C9: add edx, 4 */ 21373 _flag_k = FK_ADD; 21374 L_361292CC: 21375 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u); 21376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21377 edi = edi + 0x28u; /* 0x361292CC: add edi, 0x28 */ 21378 _flag_k = FK_ADD; 21379 L_361292CF: 21380 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 21381 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21382 ebx = ebx + 0xCu; /* 0x361292CF: add ebx, 0xc */ 21383 _flag_k = FK_ADD; 21384 L_361292D2: 21385 /* cmp edi, 0x500u */ /* 0x361292D2: cmp edi, 0x500 */ 21386 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x500u); 21387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21388 _flag_k = FK_CMP; 21389 L_361292D8: 21390 MEM32(ebp + (-0x48)) = ecx; /* 0x361292D8: mov dword ptr [ebp - 0x48], ecx */ 21391 L_361292DB: 21392 MEM32(ebp + (-0x8)) = edx; /* 0x361292DB: mov dword ptr [ebp - 8], edx */ 21393 L_361292DE: 21394 RECOMP_BACKEDGE(); 21395 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_3612907A; /* 0x361292DE: jl 0x3612907a */ 21396 L_361292E4: 21397 SET_LO8(eax, MEM8(esi + 0x5B0)); /* 0x361292E4: mov al, byte ptr [esi + 0x5b0] */ 21398 L_361292EA: 21399 /* test LO8(eax), LO8(eax) */ /* 0x361292EA: test al, al */ 21400 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 21401 _cf = 0; 21402 _flag_k = FK_NARROW(FK_TEST, 24); 21403 L_361292EC: 21404 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361292F9; /* 0x361292EC: je 0x361292f9 */ 21405 L_361292EE: 21406 eax = MEM32(ebp + (-0x18)); /* 0x361292EE: mov eax, dword ptr [ebp - 0x18] */ 21407 L_361292F1: 21408 /* test eax, eax */ /* 0x361292F1: test eax, eax */ 21409 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21410 _cf = 0; 21411 _flag_k = FK_TEST; 21412 L_361292F3: 21413 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_361292F9; /* 0x361292F3: jne 0x361292f9 */ 21414 L_361292F5: 21415 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361292F5: mov byte ptr [esi + 0x14], 1 */ 21416 L_361292F9: 21417 ecx = ebp + (-0x60); /* 0x361292F9: lea ecx, [ebp - 0x60] */ 21418 L_361292FC: 21419 PUSH32(esp, ecx); /* 0x361292FC: push ecx */ 21420 L_361292FD: 21421 ecx = MEM32(esi + 0x20); /* 0x361292FD: mov ecx, dword ptr [esi + 0x20] */ 21422 L_36129300: 21423 RECOMP_ICALL(0x36133E80u); /* 0x36129300: call 0x36133e80 */ /* not lifted */ 21424 RECOMP_FLAGS_IN(); 21425 L_36129305: 21426 ecx = MEM32(esi + 0x28); /* 0x36129305: mov ecx, dword ptr [esi + 0x28] */ 21427 L_36129308: 21428 edi = MEM32(eax); /* 0x36129308: mov edi, dword ptr [eax] */ 21429 L_3612930A: 21430 edx = ecx + 0x78; /* 0x3612930A: lea edx, [ecx + 0x78] */ 21431 L_3612930D: 21432 MEM32(edx) = edi; /* 0x3612930D: mov dword ptr [edx], edi */ 21433 L_3612930F: 21434 edi = MEM32(eax + 0x4); /* 0x3612930F: mov edi, dword ptr [eax + 4] */ 21435 L_36129312: 21436 MEM32(edx + 0x4) = edi; /* 0x36129312: mov dword ptr [edx + 4], edi */ 21437 L_36129315: 21438 eax = MEM32(eax + 0x8); /* 0x36129315: mov eax, dword ptr [eax + 8] */ 21439 L_36129318: 21440 PUSH32(esp, 1); /* 0x36129318: push 1 */ 21441 L_3612931A: 21442 MEM32(edx + 0x8) = eax; /* 0x3612931A: mov dword ptr [edx + 8], eax */ 21443 L_3612931D: 21444 edx = MEM32(ecx); /* 0x3612931D: mov edx, dword ptr [ecx] */ 21445 L_3612931F: 21446 PUSH32(esp, 1); /* 0x3612931F: push 1 */ 21447 L_36129321: 21448 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36129321: call dword ptr [edx + 0x2c] */ 21449 RECOMP_FLAGS_IN(); 21450 L_36129324: 21451 ecx = MEM32(esi + 0x28); /* 0x36129324: mov ecx, dword ptr [esi + 0x28] */ 21452 L_36129327: 21453 eax = ecx + 0x84; /* 0x36129327: lea eax, [ecx + 0x84] */ 21454 L_3612932D: 21455 MEM32(ebp + (-0x64)) = 0; /* 0x3612932D: mov dword ptr [ebp - 0x64], 0 */ 21456 L_36129334: 21457 edx = MEM32(ebp + (-0x64)); /* 0x36129334: mov edx, dword ptr [ebp - 0x64] */ 21458 L_36129337: 21459 MEM32(eax) = edx; /* 0x36129337: mov dword ptr [eax], edx */ 21460 L_36129339: 21461 MEM32(ebp + (-0x60)) = 0; /* 0x36129339: mov dword ptr [ebp - 0x60], 0 */ 21462 L_36129340: 21463 edx = MEM32(ebp + (-0x60)); /* 0x36129340: mov edx, dword ptr [ebp - 0x60] */ 21464 L_36129343: 21465 MEM32(eax + 0x4) = edx; /* 0x36129343: mov dword ptr [eax + 4], edx */ 21466 L_36129346: 21467 MEM32(ebp + (-0x5C)) = 0; /* 0x36129346: mov dword ptr [ebp - 0x5c], 0 */ 21468 L_3612934D: 21469 edx = MEM32(ebp + (-0x5C)); /* 0x3612934D: mov edx, dword ptr [ebp - 0x5c] */ 21470 L_36129350: 21471 MEM32(eax + 0x8) = edx; /* 0x36129350: mov dword ptr [eax + 8], edx */ 21472 L_36129353: 21473 MEM32(ebp + (-0x58)) = 0x3F800000u; /* 0x36129353: mov dword ptr [ebp - 0x58], 0x3f800000 */ 21474 L_3612935A: 21475 edx = MEM32(ebp + (-0x58)); /* 0x3612935A: mov edx, dword ptr [ebp - 0x58] */ 21476 L_3612935D: 21477 PUSH32(esp, 1); /* 0x3612935D: push 1 */ 21478 L_3612935F: 21479 MEM32(eax + 0xC) = edx; /* 0x3612935F: mov dword ptr [eax + 0xc], edx */ 21480 L_36129362: 21481 eax = MEM32(ecx); /* 0x36129362: mov eax, dword ptr [ecx] */ 21482 L_36129364: 21483 PUSH32(esp, 2); /* 0x36129364: push 2 */ 21484 L_36129366: 21485 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36129366: call dword ptr [eax + 0x2c] */ 21486 RECOMP_FLAGS_IN(); 21487 L_36129369: 21488 ecx = MEM32(esi + 0x20); /* 0x36129369: mov ecx, dword ptr [esi + 0x20] */ 21489 L_3612936C: 21490 SET_LO8(ebx, MEM8(ecx + 0x108)); /* 0x3612936C: mov bl, byte ptr [ecx + 0x108] */ 21491 L_36129372: 21492 ecx = MEM32(esi + 0x28); /* 0x36129372: mov ecx, dword ptr [esi + 0x28] */ 21493 L_36129375: 21494 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21495 edx = 0; /* 0x36129375: xor edx, edx */ 21496 _cf = 0; 21497 _flag_k = FK_TEST; 21498 L_36129377: 21499 /* test LO8(ebx), LO8(ebx) */ /* 0x36129377: test bl, bl */ 21500 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21501 _cf = 0; 21502 _flag_k = FK_NARROW(FK_TEST, 24); 21503 L_36129379: 21504 SET_LO8(edx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) ? 1 : 0); /* 0x36129379: sete dl */ 21505 L_3612937C: 21506 PUSH32(esp, edx); /* 0x3612937C: push edx */ 21507 L_3612937D: 21508 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x3612937D: call dword ptr [0x3616f620] */ 21509 RECOMP_FLAGS_IN(); 21510 L_36129383: 21511 edi = POP32_VAL(esp); /* 0x36129383: pop edi */ 21512 L_36129384: 21513 ebx = POP32_VAL(esp); /* 0x36129384: pop ebx */ 21514 L_36129385: 21515 esi = POP32_VAL(esp); /* 0x36129385: pop esi */ 21516 L_36129386: 21517 esp = ebp; /* 0x36129386: mov esp, ebp */ 21518 L_36129388: 21519 ebp = POP32_VAL(esp); /* 0x36129388: pop ebp */ 21520 L_36129389: 21521 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36129389: ret */ 21522 _ljump: 21523 switch (_itail_tgt) { 21524 case 0x361286D0u: goto L_361286D0; 21525 case 0x361286D1u: goto L_361286D1; 21526 case 0x361286D3u: goto L_361286D3; 21527 case 0x361286D9u: goto L_361286D9; 21528 case 0x361286DAu: goto L_361286DA; 21529 case 0x361286DCu: goto L_361286DC; 21530 case 0x361286E1u: goto L_361286E1; 21531 case 0x361286E4u: goto L_361286E4; 21532 case 0x361286E6u: goto L_361286E6; 21533 case 0x361286ECu: goto L_361286EC; 21534 case 0x361286EFu: goto L_361286EF; 21535 case 0x361286F4u: goto L_361286F4; 21536 case 0x361286F6u: goto L_361286F6; 21537 case 0x361286F8u: goto L_361286F8; 21538 case 0x361286FBu: goto L_361286FB; 21539 case 0x361286FEu: goto L_361286FE; 21540 case 0x36128705u: goto L_36128705; 21541 case 0x3612870Bu: goto L_3612870B; 21542 case 0x3612870Eu: goto L_3612870E; 21543 case 0x3612870Fu: goto L_3612870F; 21544 case 0x36128710u: goto L_36128710; 21545 case 0x36128716u: goto L_36128716; 21546 case 0x3612871Du: goto L_3612871D; 21547 case 0x36128720u: goto L_36128720; 21548 case 0x36128726u: goto L_36128726; 21549 case 0x36128729u: goto L_36128729; 21550 case 0x3612872Au: goto L_3612872A; 21551 case 0x3612872Du: goto L_3612872D; 21552 case 0x3612872Fu: goto L_3612872F; 21553 case 0x36128735u: goto L_36128735; 21554 case 0x36128737u: goto L_36128737; 21555 case 0x36128739u: goto L_36128739; 21556 case 0x3612873Bu: goto L_3612873B; 21557 case 0x3612873Du: goto L_3612873D; 21558 case 0x36128743u: goto L_36128743; 21559 case 0x36128746u: goto L_36128746; 21560 case 0x36128748u: goto L_36128748; 21561 case 0x3612874Du: goto L_3612874D; 21562 case 0x3612874Fu: goto L_3612874F; 21563 case 0x36128752u: goto L_36128752; 21564 case 0x36128755u: goto L_36128755; 21565 case 0x36128758u: goto L_36128758; 21566 case 0x3612875Au: goto L_3612875A; 21567 case 0x3612875Du: goto L_3612875D; 21568 case 0x36128760u: goto L_36128760; 21569 case 0x36128763u: goto L_36128763; 21570 case 0x36128765u: goto L_36128765; 21571 case 0x36128768u: goto L_36128768; 21572 case 0x3612876Bu: goto L_3612876B; 21573 case 0x3612876Eu: goto L_3612876E; 21574 case 0x36128771u: goto L_36128771; 21575 case 0x36128777u: goto L_36128777; 21576 case 0x3612877Au: goto L_3612877A; 21577 case 0x3612877Du: goto L_3612877D; 21578 case 0x36128780u: goto L_36128780; 21579 case 0x36128783u: goto L_36128783; 21580 case 0x36128786u: goto L_36128786; 21581 case 0x36128789u: goto L_36128789; 21582 case 0x3612878Cu: goto L_3612878C; 21583 case 0x3612878Eu: goto L_3612878E; 21584 case 0x36128791u: goto L_36128791; 21585 case 0x36128794u: goto L_36128794; 21586 case 0x36128797u: goto L_36128797; 21587 case 0x36128799u: goto L_36128799; 21588 case 0x3612879Bu: goto L_3612879B; 21589 case 0x3612879Eu: goto L_3612879E; 21590 case 0x361287A1u: goto L_361287A1; 21591 case 0x361287A4u: goto L_361287A4; 21592 case 0x361287A7u: goto L_361287A7; 21593 case 0x361287ADu: goto L_361287AD; 21594 case 0x361287B0u: goto L_361287B0; 21595 case 0x361287B3u: goto L_361287B3; 21596 case 0x361287B9u: goto L_361287B9; 21597 case 0x361287BCu: goto L_361287BC; 21598 case 0x361287C0u: goto L_361287C0; 21599 case 0x361287C3u: goto L_361287C3; 21600 case 0x361287C7u: goto L_361287C7; 21601 case 0x361287CAu: goto L_361287CA; 21602 case 0x361287CCu: goto L_361287CC; 21603 case 0x361287D2u: goto L_361287D2; 21604 case 0x361287D5u: goto L_361287D5; 21605 case 0x361287DCu: goto L_361287DC; 21606 case 0x361287E2u: goto L_361287E2; 21607 case 0x361287E6u: goto L_361287E6; 21608 case 0x361287E9u: goto L_361287E9; 21609 case 0x361287EBu: goto L_361287EB; 21610 case 0x361287EFu: goto L_361287EF; 21611 case 0x361287F2u: goto L_361287F2; 21612 case 0x361287F6u: goto L_361287F6; 21613 case 0x361287F9u: goto L_361287F9; 21614 case 0x361287FCu: goto L_361287FC; 21615 case 0x361287FDu: goto L_361287FD; 21616 case 0x36128802u: goto L_36128802; 21617 case 0x36128808u: goto L_36128808; 21618 case 0x3612880Bu: goto L_3612880B; 21619 case 0x3612880Fu: goto L_3612880F; 21620 case 0x36128812u: goto L_36128812; 21621 case 0x36128817u: goto L_36128817; 21622 case 0x3612881Du: goto L_3612881D; 21623 case 0x36128822u: goto L_36128822; 21624 case 0x36128828u: goto L_36128828; 21625 case 0x3612882Bu: goto L_3612882B; 21626 case 0x3612882Du: goto L_3612882D; 21627 case 0x36128830u: goto L_36128830; 21628 case 0x36128832u: goto L_36128832; 21629 case 0x36128838u: goto L_36128838; 21630 case 0x3612883Au: goto L_3612883A; 21631 case 0x3612883Du: goto L_3612883D; 21632 case 0x36128843u: goto L_36128843; 21633 case 0x36128846u: goto L_36128846; 21634 case 0x36128849u: goto L_36128849; 21635 case 0x3612884Bu: goto L_3612884B; 21636 case 0x3612884Eu: goto L_3612884E; 21637 case 0x36128854u: goto L_36128854; 21638 case 0x36128856u: goto L_36128856; 21639 case 0x36128859u: goto L_36128859; 21640 case 0x3612885Bu: goto L_3612885B; 21641 case 0x3612885Eu: goto L_3612885E; 21642 case 0x36128864u: goto L_36128864; 21643 case 0x36128866u: goto L_36128866; 21644 case 0x36128868u: goto L_36128868; 21645 case 0x3612886Au: goto L_3612886A; 21646 case 0x3612886Cu: goto L_3612886C; 21647 case 0x3612886Eu: goto L_3612886E; 21648 case 0x36128870u: goto L_36128870; 21649 case 0x36128872u: goto L_36128872; 21650 case 0x36128874u: goto L_36128874; 21651 case 0x36128876u: goto L_36128876; 21652 case 0x36128879u: goto L_36128879; 21653 case 0x3612887Fu: goto L_3612887F; 21654 case 0x36128882u: goto L_36128882; 21655 case 0x36128884u: goto L_36128884; 21656 case 0x36128887u: goto L_36128887; 21657 case 0x3612888Au: goto L_3612888A; 21658 case 0x36128890u: goto L_36128890; 21659 case 0x36128896u: goto L_36128896; 21660 case 0x3612889Bu: goto L_3612889B; 21661 case 0x3612889Du: goto L_3612889D; 21662 case 0x3612889Fu: goto L_3612889F; 21663 case 0x361288A1u: goto L_361288A1; 21664 case 0x361288A7u: goto L_361288A7; 21665 case 0x361288A8u: goto L_361288A8; 21666 case 0x361288AEu: goto L_361288AE; 21667 case 0x361288B1u: goto L_361288B1; 21668 case 0x361288B4u: goto L_361288B4; 21669 case 0x361288BAu: goto L_361288BA; 21670 case 0x361288BDu: goto L_361288BD; 21671 case 0x361288BFu: goto L_361288BF; 21672 case 0x361288C4u: goto L_361288C4; 21673 case 0x361288CAu: goto L_361288CA; 21674 case 0x361288CCu: goto L_361288CC; 21675 case 0x361288CFu: goto L_361288CF; 21676 case 0x361288D2u: goto L_361288D2; 21677 case 0x361288D5u: goto L_361288D5; 21678 case 0x361288D8u: goto L_361288D8; 21679 case 0x361288DEu: goto L_361288DE; 21680 case 0x361288E1u: goto L_361288E1; 21681 case 0x361288E3u: goto L_361288E3; 21682 case 0x361288E9u: goto L_361288E9; 21683 case 0x361288ECu: goto L_361288EC; 21684 case 0x361288EFu: goto L_361288EF; 21685 case 0x361288F5u: goto L_361288F5; 21686 case 0x361288F8u: goto L_361288F8; 21687 case 0x361288FAu: goto L_361288FA; 21688 case 0x36128900u: goto L_36128900; 21689 case 0x36128903u: goto L_36128903; 21690 case 0x36128905u: goto L_36128905; 21691 case 0x36128907u: goto L_36128907; 21692 case 0x36128909u: goto L_36128909; 21693 case 0x3612890Bu: goto L_3612890B; 21694 case 0x3612890Du: goto L_3612890D; 21695 case 0x3612890Fu: goto L_3612890F; 21696 case 0x36128915u: goto L_36128915; 21697 case 0x36128917u: goto L_36128917; 21698 case 0x36128919u: goto L_36128919; 21699 case 0x3612891Bu: goto L_3612891B; 21700 case 0x3612891Eu: goto L_3612891E; 21701 case 0x36128924u: goto L_36128924; 21702 case 0x36128926u: goto L_36128926; 21703 case 0x36128929u: goto L_36128929; 21704 case 0x3612892Bu: goto L_3612892B; 21705 case 0x36128932u: goto L_36128932; 21706 case 0x36128935u: goto L_36128935; 21707 case 0x36128937u: goto L_36128937; 21708 case 0x3612893Du: goto L_3612893D; 21709 case 0x36128940u: goto L_36128940; 21710 case 0x36128942u: goto L_36128942; 21711 case 0x36128945u: goto L_36128945; 21712 case 0x3612894Bu: goto L_3612894B; 21713 case 0x36128951u: goto L_36128951; 21714 case 0x36128954u: goto L_36128954; 21715 case 0x36128956u: goto L_36128956; 21716 case 0x36128958u: goto L_36128958; 21717 case 0x3612895Au: goto L_3612895A; 21718 case 0x3612895Du: goto L_3612895D; 21719 case 0x36128960u: goto L_36128960; 21720 case 0x36128963u: goto L_36128963; 21721 case 0x36128969u: goto L_36128969; 21722 case 0x3612896Cu: goto L_3612896C; 21723 case 0x3612896Eu: goto L_3612896E; 21724 case 0x36128974u: goto L_36128974; 21725 case 0x36128976u: goto L_36128976; 21726 case 0x36128978u: goto L_36128978; 21727 case 0x3612897Eu: goto L_3612897E; 21728 case 0x36128981u: goto L_36128981; 21729 case 0x36128984u: goto L_36128984; 21730 case 0x36128986u: goto L_36128986; 21731 case 0x36128989u: goto L_36128989; 21732 case 0x3612898Cu: goto L_3612898C; 21733 case 0x3612898Fu: goto L_3612898F; 21734 case 0x36128992u: goto L_36128992; 21735 case 0x36128995u: goto L_36128995; 21736 case 0x36128998u: goto L_36128998; 21737 case 0x3612899Bu: goto L_3612899B; 21738 case 0x3612899Eu: goto L_3612899E; 21739 case 0x361289A1u: goto L_361289A1; 21740 case 0x361289A4u: goto L_361289A4; 21741 case 0x361289A7u: goto L_361289A7; 21742 case 0x361289AAu: goto L_361289AA; 21743 case 0x361289ADu: goto L_361289AD; 21744 case 0x361289B0u: goto L_361289B0; 21745 case 0x361289B3u: goto L_361289B3; 21746 case 0x361289B6u: goto L_361289B6; 21747 case 0x361289B9u: goto L_361289B9; 21748 case 0x361289BCu: goto L_361289BC; 21749 case 0x361289BEu: goto L_361289BE; 21750 case 0x361289C1u: goto L_361289C1; 21751 case 0x361289C4u: goto L_361289C4; 21752 case 0x361289C7u: goto L_361289C7; 21753 case 0x361289CAu: goto L_361289CA; 21754 case 0x361289CDu: goto L_361289CD; 21755 case 0x361289CFu: goto L_361289CF; 21756 case 0x361289D2u: goto L_361289D2; 21757 case 0x361289D5u: goto L_361289D5; 21758 case 0x361289D8u: goto L_361289D8; 21759 case 0x361289DBu: goto L_361289DB; 21760 case 0x361289DEu: goto L_361289DE; 21761 case 0x361289E1u: goto L_361289E1; 21762 case 0x361289E4u: goto L_361289E4; 21763 case 0x361289E7u: goto L_361289E7; 21764 case 0x361289EAu: goto L_361289EA; 21765 case 0x361289ECu: goto L_361289EC; 21766 case 0x361289EFu: goto L_361289EF; 21767 case 0x361289F3u: goto L_361289F3; 21768 case 0x361289F6u: goto L_361289F6; 21769 case 0x361289F8u: goto L_361289F8; 21770 case 0x361289FCu: goto L_361289FC; 21771 case 0x361289FFu: goto L_361289FF; 21772 case 0x36128A01u: goto L_36128A01; 21773 case 0x36128A04u: goto L_36128A04; 21774 case 0x36128A0Bu: goto L_36128A0B; 21775 case 0x36128A0Du: goto L_36128A0D; 21776 case 0x36128A11u: goto L_36128A11; 21777 case 0x36128A14u: goto L_36128A14; 21778 case 0x36128A16u: goto L_36128A16; 21779 case 0x36128A1Au: goto L_36128A1A; 21780 case 0x36128A1Du: goto L_36128A1D; 21781 case 0x36128A21u: goto L_36128A21; 21782 case 0x36128A24u: goto L_36128A24; 21783 case 0x36128A27u: goto L_36128A27; 21784 case 0x36128A29u: goto L_36128A29; 21785 case 0x36128A2Du: goto L_36128A2D; 21786 case 0x36128A30u: goto L_36128A30; 21787 case 0x36128A35u: goto L_36128A35; 21788 case 0x36128A38u: goto L_36128A38; 21789 case 0x36128A3Au: goto L_36128A3A; 21790 case 0x36128A3Du: goto L_36128A3D; 21791 case 0x36128A41u: goto L_36128A41; 21792 case 0x36128A43u: goto L_36128A43; 21793 case 0x36128A46u: goto L_36128A46; 21794 case 0x36128A49u: goto L_36128A49; 21795 case 0x36128A4Cu: goto L_36128A4C; 21796 case 0x36128A4Fu: goto L_36128A4F; 21797 case 0x36128A52u: goto L_36128A52; 21798 case 0x36128A56u: goto L_36128A56; 21799 case 0x36128A59u: goto L_36128A59; 21800 case 0x36128A5Bu: goto L_36128A5B; 21801 case 0x36128A5Eu: goto L_36128A5E; 21802 case 0x36128A62u: goto L_36128A62; 21803 case 0x36128A65u: goto L_36128A65; 21804 case 0x36128A68u: goto L_36128A68; 21805 case 0x36128A6Bu: goto L_36128A6B; 21806 case 0x36128A72u: goto L_36128A72; 21807 case 0x36128A74u: goto L_36128A74; 21808 case 0x36128A78u: goto L_36128A78; 21809 case 0x36128A7Bu: goto L_36128A7B; 21810 case 0x36128A83u: goto L_36128A83; 21811 case 0x36128A86u: goto L_36128A86; 21812 case 0x36128A8Au: goto L_36128A8A; 21813 case 0x36128A8Du: goto L_36128A8D; 21814 case 0x36128A90u: goto L_36128A90; 21815 case 0x36128A93u: goto L_36128A93; 21816 case 0x36128A98u: goto L_36128A98; 21817 case 0x36128A9Eu: goto L_36128A9E; 21818 case 0x36128AA1u: goto L_36128AA1; 21819 case 0x36128AA5u: goto L_36128AA5; 21820 case 0x36128AA8u: goto L_36128AA8; 21821 case 0x36128AADu: goto L_36128AAD; 21822 case 0x36128AB3u: goto L_36128AB3; 21823 case 0x36128AB5u: goto L_36128AB5; 21824 case 0x36128AB7u: goto L_36128AB7; 21825 case 0x36128ABCu: goto L_36128ABC; 21826 case 0x36128ABFu: goto L_36128ABF; 21827 case 0x36128AC6u: goto L_36128AC6; 21828 case 0x36128AC9u: goto L_36128AC9; 21829 case 0x36128AD0u: goto L_36128AD0; 21830 case 0x36128AD7u: goto L_36128AD7; 21831 case 0x36128ADDu: goto L_36128ADD; 21832 case 0x36128ADFu: goto L_36128ADF; 21833 case 0x36128AE5u: goto L_36128AE5; 21834 case 0x36128AE8u: goto L_36128AE8; 21835 case 0x36128AEEu: goto L_36128AEE; 21836 case 0x36128AF1u: goto L_36128AF1; 21837 case 0x36128AF7u: goto L_36128AF7; 21838 case 0x36128AFDu: goto L_36128AFD; 21839 case 0x36128B00u: goto L_36128B00; 21840 case 0x36128B05u: goto L_36128B05; 21841 case 0x36128B0Bu: goto L_36128B0B; 21842 case 0x36128B0Du: goto L_36128B0D; 21843 case 0x36128B0Fu: goto L_36128B0F; 21844 case 0x36128B12u: goto L_36128B12; 21845 case 0x36128B15u: goto L_36128B15; 21846 case 0x36128B1Bu: goto L_36128B1B; 21847 case 0x36128B1Du: goto L_36128B1D; 21848 case 0x36128B24u: goto L_36128B24; 21849 case 0x36128B27u: goto L_36128B27; 21850 case 0x36128B2Au: goto L_36128B2A; 21851 case 0x36128B2Bu: goto L_36128B2B; 21852 case 0x36128B30u: goto L_36128B30; 21853 case 0x36128B35u: goto L_36128B35; 21854 case 0x36128B38u: goto L_36128B38; 21855 case 0x36128B3Bu: goto L_36128B3B; 21856 case 0x36128B3Eu: goto L_36128B3E; 21857 case 0x36128B41u: goto L_36128B41; 21858 case 0x36128B44u: goto L_36128B44; 21859 case 0x36128B4Au: goto L_36128B4A; 21860 case 0x36128B4Cu: goto L_36128B4C; 21861 case 0x36128B4Fu: goto L_36128B4F; 21862 case 0x36128B52u: goto L_36128B52; 21863 case 0x36128B54u: goto L_36128B54; 21864 case 0x36128B57u: goto L_36128B57; 21865 case 0x36128B5Au: goto L_36128B5A; 21866 case 0x36128B5Du: goto L_36128B5D; 21867 case 0x36128B60u: goto L_36128B60; 21868 case 0x36128B66u: goto L_36128B66; 21869 case 0x36128B68u: goto L_36128B68; 21870 case 0x36128B6Bu: goto L_36128B6B; 21871 case 0x36128B6Eu: goto L_36128B6E; 21872 case 0x36128B70u: goto L_36128B70; 21873 case 0x36128B73u: goto L_36128B73; 21874 case 0x36128B76u: goto L_36128B76; 21875 case 0x36128B79u: goto L_36128B79; 21876 case 0x36128B7Bu: goto L_36128B7B; 21877 case 0x36128B7Eu: goto L_36128B7E; 21878 case 0x36128B81u: goto L_36128B81; 21879 case 0x36128B84u: goto L_36128B84; 21880 case 0x36128B87u: goto L_36128B87; 21881 case 0x36128B89u: goto L_36128B89; 21882 case 0x36128B8Bu: goto L_36128B8B; 21883 case 0x36128B8Eu: goto L_36128B8E; 21884 case 0x36128B91u: goto L_36128B91; 21885 case 0x36128B94u: goto L_36128B94; 21886 case 0x36128B97u: goto L_36128B97; 21887 case 0x36128B9Au: goto L_36128B9A; 21888 case 0x36128B9Eu: goto L_36128B9E; 21889 case 0x36128BA1u: goto L_36128BA1; 21890 case 0x36128BA4u: goto L_36128BA4; 21891 case 0x36128BA8u: goto L_36128BA8; 21892 case 0x36128BABu: goto L_36128BAB; 21893 case 0x36128BADu: goto L_36128BAD; 21894 case 0x36128BB0u: goto L_36128BB0; 21895 case 0x36128BB2u: goto L_36128BB2; 21896 case 0x36128BB9u: goto L_36128BB9; 21897 case 0x36128BBFu: goto L_36128BBF; 21898 case 0x36128BC3u: goto L_36128BC3; 21899 case 0x36128BC6u: goto L_36128BC6; 21900 case 0x36128BCAu: goto L_36128BCA; 21901 case 0x36128BCDu: goto L_36128BCD; 21902 case 0x36128BD1u: goto L_36128BD1; 21903 case 0x36128BD4u: goto L_36128BD4; 21904 case 0x36128BD7u: goto L_36128BD7; 21905 case 0x36128BDDu: goto L_36128BDD; 21906 case 0x36128BE1u: goto L_36128BE1; 21907 case 0x36128BE4u: goto L_36128BE4; 21908 case 0x36128BE9u: goto L_36128BE9; 21909 case 0x36128BECu: goto L_36128BEC; 21910 case 0x36128BEFu: goto L_36128BEF; 21911 case 0x36128BF2u: goto L_36128BF2; 21912 case 0x36128BF6u: goto L_36128BF6; 21913 case 0x36128BF8u: goto L_36128BF8; 21914 case 0x36128BFBu: goto L_36128BFB; 21915 case 0x36128BFEu: goto L_36128BFE; 21916 case 0x36128C01u: goto L_36128C01; 21917 case 0x36128C04u: goto L_36128C04; 21918 case 0x36128C07u: goto L_36128C07; 21919 case 0x36128C0Bu: goto L_36128C0B; 21920 case 0x36128C0Eu: goto L_36128C0E; 21921 case 0x36128C11u: goto L_36128C11; 21922 case 0x36128C14u: goto L_36128C14; 21923 case 0x36128C18u: goto L_36128C18; 21924 case 0x36128C1Bu: goto L_36128C1B; 21925 case 0x36128C1Eu: goto L_36128C1E; 21926 case 0x36128C20u: goto L_36128C20; 21927 case 0x36128C23u: goto L_36128C23; 21928 case 0x36128C2Au: goto L_36128C2A; 21929 case 0x36128C2Eu: goto L_36128C2E; 21930 case 0x36128C31u: goto L_36128C31; 21931 case 0x36128C35u: goto L_36128C35; 21932 case 0x36128C38u: goto L_36128C38; 21933 case 0x36128C3Cu: goto L_36128C3C; 21934 case 0x36128C3Fu: goto L_36128C3F; 21935 case 0x36128C42u: goto L_36128C42; 21936 case 0x36128C47u: goto L_36128C47; 21937 case 0x36128C4Du: goto L_36128C4D; 21938 case 0x36128C50u: goto L_36128C50; 21939 case 0x36128C53u: goto L_36128C53; 21940 case 0x36128C59u: goto L_36128C59; 21941 case 0x36128C5Du: goto L_36128C5D; 21942 case 0x36128C60u: goto L_36128C60; 21943 case 0x36128C65u: goto L_36128C65; 21944 case 0x36128C6Bu: goto L_36128C6B; 21945 case 0x36128C6Eu: goto L_36128C6E; 21946 case 0x36128C70u: goto L_36128C70; 21947 case 0x36128C76u: goto L_36128C76; 21948 case 0x36128C7Cu: goto L_36128C7C; 21949 case 0x36128C7Fu: goto L_36128C7F; 21950 case 0x36128C85u: goto L_36128C85; 21951 case 0x36128C8Bu: goto L_36128C8B; 21952 case 0x36128C8Eu: goto L_36128C8E; 21953 case 0x36128C94u: goto L_36128C94; 21954 case 0x36128C9Bu: goto L_36128C9B; 21955 case 0x36128C9Eu: goto L_36128C9E; 21956 case 0x36128CA1u: goto L_36128CA1; 21957 case 0x36128CA8u: goto L_36128CA8; 21958 case 0x36128CABu: goto L_36128CAB; 21959 case 0x36128CAEu: goto L_36128CAE; 21960 case 0x36128CB1u: goto L_36128CB1; 21961 case 0x36128CB4u: goto L_36128CB4; 21962 case 0x36128CB7u: goto L_36128CB7; 21963 case 0x36128CB9u: goto L_36128CB9; 21964 case 0x36128CBCu: goto L_36128CBC; 21965 case 0x36128CBEu: goto L_36128CBE; 21966 case 0x36128CC1u: goto L_36128CC1; 21967 case 0x36128CC7u: goto L_36128CC7; 21968 case 0x36128CC9u: goto L_36128CC9; 21969 case 0x36128CCCu: goto L_36128CCC; 21970 case 0x36128CCFu: goto L_36128CCF; 21971 case 0x36128CD2u: goto L_36128CD2; 21972 case 0x36128CD8u: goto L_36128CD8; 21973 case 0x36128CDAu: goto L_36128CDA; 21974 case 0x36128CDCu: goto L_36128CDC; 21975 case 0x36128CDFu: goto L_36128CDF; 21976 case 0x36128CE1u: goto L_36128CE1; 21977 case 0x36128CE4u: goto L_36128CE4; 21978 case 0x36128CE7u: goto L_36128CE7; 21979 case 0x36128CEDu: goto L_36128CED; 21980 case 0x36128CF0u: goto L_36128CF0; 21981 case 0x36128CF3u: goto L_36128CF3; 21982 case 0x36128CF9u: goto L_36128CF9; 21983 case 0x36128CFCu: goto L_36128CFC; 21984 case 0x36128CFFu: goto L_36128CFF; 21985 case 0x36128D02u: goto L_36128D02; 21986 case 0x36128D05u: goto L_36128D05; 21987 case 0x36128D08u: goto L_36128D08; 21988 case 0x36128D0Bu: goto L_36128D0B; 21989 case 0x36128D0Eu: goto L_36128D0E; 21990 case 0x36128D10u: goto L_36128D10; 21991 case 0x36128D12u: goto L_36128D12; 21992 case 0x36128D18u: goto L_36128D18; 21993 case 0x36128D1Au: goto L_36128D1A; 21994 case 0x36128D1Du: goto L_36128D1D; 21995 case 0x36128D1Fu: goto L_36128D1F; 21996 case 0x36128D22u: goto L_36128D22; 21997 case 0x36128D25u: goto L_36128D25; 21998 case 0x36128D27u: goto L_36128D27; 21999 case 0x36128D2Au: goto L_36128D2A; 22000 case 0x36128D2Du: goto L_36128D2D; 22001 case 0x36128D2Fu: goto L_36128D2F; 22002 case 0x36128D32u: goto L_36128D32; 22003 case 0x36128D34u: goto L_36128D34; 22004 case 0x36128D37u: goto L_36128D37; 22005 case 0x36128D39u: goto L_36128D39; 22006 case 0x36128D3Cu: goto L_36128D3C; 22007 case 0x36128D3Fu: goto L_36128D3F; 22008 case 0x36128D42u: goto L_36128D42; 22009 case 0x36128D45u: goto L_36128D45; 22010 case 0x36128D47u: goto L_36128D47; 22011 case 0x36128D4Au: goto L_36128D4A; 22012 case 0x36128D4Du: goto L_36128D4D; 22013 case 0x36128D50u: goto L_36128D50; 22014 case 0x36128D53u: goto L_36128D53; 22015 case 0x36128D56u: goto L_36128D56; 22016 case 0x36128D58u: goto L_36128D58; 22017 case 0x36128D5Au: goto L_36128D5A; 22018 case 0x36128D5Du: goto L_36128D5D; 22019 case 0x36128D60u: goto L_36128D60; 22020 case 0x36128D63u: goto L_36128D63; 22021 case 0x36128D65u: goto L_36128D65; 22022 case 0x36128D68u: goto L_36128D68; 22023 case 0x36128D6Bu: goto L_36128D6B; 22024 case 0x36128D6Eu: goto L_36128D6E; 22025 case 0x36128D71u: goto L_36128D71; 22026 case 0x36128D74u: goto L_36128D74; 22027 case 0x36128D76u: goto L_36128D76; 22028 case 0x36128D79u: goto L_36128D79; 22029 case 0x36128D7Cu: goto L_36128D7C; 22030 case 0x36128D7Fu: goto L_36128D7F; 22031 case 0x36128D82u: goto L_36128D82; 22032 case 0x36128D85u: goto L_36128D85; 22033 case 0x36128D88u: goto L_36128D88; 22034 case 0x36128D8Bu: goto L_36128D8B; 22035 case 0x36128D8Eu: goto L_36128D8E; 22036 case 0x36128D91u: goto L_36128D91; 22037 case 0x36128D94u: goto L_36128D94; 22038 case 0x36128D97u: goto L_36128D97; 22039 case 0x36128D9Bu: goto L_36128D9B; 22040 case 0x36128D9Eu: goto L_36128D9E; 22041 case 0x36128DA1u: goto L_36128DA1; 22042 case 0x36128DA3u: goto L_36128DA3; 22043 case 0x36128DA7u: goto L_36128DA7; 22044 case 0x36128DAAu: goto L_36128DAA; 22045 case 0x36128DADu: goto L_36128DAD; 22046 case 0x36128DB4u: goto L_36128DB4; 22047 case 0x36128DB6u: goto L_36128DB6; 22048 case 0x36128DBCu: goto L_36128DBC; 22049 case 0x36128DC0u: goto L_36128DC0; 22050 case 0x36128DC3u: goto L_36128DC3; 22051 case 0x36128DC5u: goto L_36128DC5; 22052 case 0x36128DC9u: goto L_36128DC9; 22053 case 0x36128DCCu: goto L_36128DCC; 22054 case 0x36128DD0u: goto L_36128DD0; 22055 case 0x36128DD3u: goto L_36128DD3; 22056 case 0x36128DD6u: goto L_36128DD6; 22057 case 0x36128DDCu: goto L_36128DDC; 22058 case 0x36128DE0u: goto L_36128DE0; 22059 case 0x36128DE3u: goto L_36128DE3; 22060 case 0x36128DE8u: goto L_36128DE8; 22061 case 0x36128DEBu: goto L_36128DEB; 22062 case 0x36128DEEu: goto L_36128DEE; 22063 case 0x36128DF2u: goto L_36128DF2; 22064 case 0x36128DF5u: goto L_36128DF5; 22065 case 0x36128DF7u: goto L_36128DF7; 22066 case 0x36128DFAu: goto L_36128DFA; 22067 case 0x36128DFDu: goto L_36128DFD; 22068 case 0x36128E00u: goto L_36128E00; 22069 case 0x36128E03u: goto L_36128E03; 22070 case 0x36128E06u: goto L_36128E06; 22071 case 0x36128E0Au: goto L_36128E0A; 22072 case 0x36128E0Du: goto L_36128E0D; 22073 case 0x36128E10u: goto L_36128E10; 22074 case 0x36128E13u: goto L_36128E13; 22075 case 0x36128E17u: goto L_36128E17; 22076 case 0x36128E1Au: goto L_36128E1A; 22077 case 0x36128E1Du: goto L_36128E1D; 22078 case 0x36128E20u: goto L_36128E20; 22079 case 0x36128E27u: goto L_36128E27; 22080 case 0x36128E2Du: goto L_36128E2D; 22081 case 0x36128E31u: goto L_36128E31; 22082 case 0x36128E34u: goto L_36128E34; 22083 case 0x36128E3Cu: goto L_36128E3C; 22084 case 0x36128E3Fu: goto L_36128E3F; 22085 case 0x36128E43u: goto L_36128E43; 22086 case 0x36128E46u: goto L_36128E46; 22087 case 0x36128E4Cu: goto L_36128E4C; 22088 case 0x36128E4Fu: goto L_36128E4F; 22089 case 0x36128E55u: goto L_36128E55; 22090 case 0x36128E59u: goto L_36128E59; 22091 case 0x36128E5Cu: goto L_36128E5C; 22092 case 0x36128E61u: goto L_36128E61; 22093 case 0x36128E64u: goto L_36128E64; 22094 case 0x36128E66u: goto L_36128E66; 22095 case 0x36128E69u: goto L_36128E69; 22096 case 0x36128E6Bu: goto L_36128E6B; 22097 case 0x36128E6Du: goto L_36128E6D; 22098 case 0x36128E6Eu: goto L_36128E6E; 22099 case 0x36128E74u: goto L_36128E74; 22100 case 0x36128E76u: goto L_36128E76; 22101 case 0x36128E78u: goto L_36128E78; 22102 case 0x36128E7Bu: goto L_36128E7B; 22103 case 0x36128E81u: goto L_36128E81; 22104 case 0x36128E82u: goto L_36128E82; 22105 case 0x36128E85u: goto L_36128E85; 22106 case 0x36128E8Au: goto L_36128E8A; 22107 case 0x36128E8Du: goto L_36128E8D; 22108 case 0x36128E90u: goto L_36128E90; 22109 case 0x36128E96u: goto L_36128E96; 22110 case 0x36128E99u: goto L_36128E99; 22111 case 0x36128E9Cu: goto L_36128E9C; 22112 case 0x36128E9Du: goto L_36128E9D; 22113 case 0x36128E9Fu: goto L_36128E9F; 22114 case 0x36128EA2u: goto L_36128EA2; 22115 case 0x36128EA4u: goto L_36128EA4; 22116 case 0x36128EAAu: goto L_36128EAA; 22117 case 0x36128EADu: goto L_36128EAD; 22118 case 0x36128EB0u: goto L_36128EB0; 22119 case 0x36128EB3u: goto L_36128EB3; 22120 case 0x36128EB6u: goto L_36128EB6; 22121 case 0x36128EB9u: goto L_36128EB9; 22122 case 0x36128EBCu: goto L_36128EBC; 22123 case 0x36128EBFu: goto L_36128EBF; 22124 case 0x36128EC2u: goto L_36128EC2; 22125 case 0x36128EC5u: goto L_36128EC5; 22126 case 0x36128EC8u: goto L_36128EC8; 22127 case 0x36128ECEu: goto L_36128ECE; 22128 case 0x36128ED4u: goto L_36128ED4; 22129 case 0x36128ED6u: goto L_36128ED6; 22130 case 0x36128EDCu: goto L_36128EDC; 22131 case 0x36128EE1u: goto L_36128EE1; 22132 case 0x36128EE4u: goto L_36128EE4; 22133 case 0x36128EE7u: goto L_36128EE7; 22134 case 0x36128EEAu: goto L_36128EEA; 22135 case 0x36128EEDu: goto L_36128EED; 22136 case 0x36128EEEu: goto L_36128EEE; 22137 case 0x36128EF3u: goto L_36128EF3; 22138 case 0x36128EFAu: goto L_36128EFA; 22139 case 0x36128F01u: goto L_36128F01; 22140 case 0x36128F08u: goto L_36128F08; 22141 case 0x36128F0Au: goto L_36128F0A; 22142 case 0x36128F10u: goto L_36128F10; 22143 case 0x36128F12u: goto L_36128F12; 22144 case 0x36128F14u: goto L_36128F14; 22145 case 0x36128F16u: goto L_36128F16; 22146 case 0x36128F18u: goto L_36128F18; 22147 case 0x36128F1Eu: goto L_36128F1E; 22148 case 0x36128F24u: goto L_36128F24; 22149 case 0x36128F26u: goto L_36128F26; 22150 case 0x36128F2Cu: goto L_36128F2C; 22151 case 0x36128F2Fu: goto L_36128F2F; 22152 case 0x36128F35u: goto L_36128F35; 22153 case 0x36128F38u: goto L_36128F38; 22154 case 0x36128F3Du: goto L_36128F3D; 22155 case 0x36128F40u: goto L_36128F40; 22156 case 0x36128F42u: goto L_36128F42; 22157 case 0x36128F48u: goto L_36128F48; 22158 case 0x36128F4Au: goto L_36128F4A; 22159 case 0x36128F4Du: goto L_36128F4D; 22160 case 0x36128F4Fu: goto L_36128F4F; 22161 case 0x36128F52u: goto L_36128F52; 22162 case 0x36128F55u: goto L_36128F55; 22163 case 0x36128F58u: goto L_36128F58; 22164 case 0x36128F5Au: goto L_36128F5A; 22165 case 0x36128F5Cu: goto L_36128F5C; 22166 case 0x36128F5Fu: goto L_36128F5F; 22167 case 0x36128F61u: goto L_36128F61; 22168 case 0x36128F64u: goto L_36128F64; 22169 case 0x36128F67u: goto L_36128F67; 22170 case 0x36128F6Au: goto L_36128F6A; 22171 case 0x36128F6Du: goto L_36128F6D; 22172 case 0x36128F70u: goto L_36128F70; 22173 case 0x36128F74u: goto L_36128F74; 22174 case 0x36128F77u: goto L_36128F77; 22175 case 0x36128F7Au: goto L_36128F7A; 22176 case 0x36128F7Eu: goto L_36128F7E; 22177 case 0x36128F81u: goto L_36128F81; 22178 case 0x36128F83u: goto L_36128F83; 22179 case 0x36128F86u: goto L_36128F86; 22180 case 0x36128F88u: goto L_36128F88; 22181 case 0x36128F8Fu: goto L_36128F8F; 22182 case 0x36128F95u: goto L_36128F95; 22183 case 0x36128F99u: goto L_36128F99; 22184 case 0x36128F9Cu: goto L_36128F9C; 22185 case 0x36128FA0u: goto L_36128FA0; 22186 case 0x36128FA3u: goto L_36128FA3; 22187 case 0x36128FA7u: goto L_36128FA7; 22188 case 0x36128FAAu: goto L_36128FAA; 22189 case 0x36128FADu: goto L_36128FAD; 22190 case 0x36128FB3u: goto L_36128FB3; 22191 case 0x36128FB7u: goto L_36128FB7; 22192 case 0x36128FBAu: goto L_36128FBA; 22193 case 0x36128FBFu: goto L_36128FBF; 22194 case 0x36128FC2u: goto L_36128FC2; 22195 case 0x36128FC5u: goto L_36128FC5; 22196 case 0x36128FC8u: goto L_36128FC8; 22197 case 0x36128FCCu: goto L_36128FCC; 22198 case 0x36128FCEu: goto L_36128FCE; 22199 case 0x36128FD1u: goto L_36128FD1; 22200 case 0x36128FD4u: goto L_36128FD4; 22201 case 0x36128FD7u: goto L_36128FD7; 22202 case 0x36128FDAu: goto L_36128FDA; 22203 case 0x36128FDDu: goto L_36128FDD; 22204 case 0x36128FE1u: goto L_36128FE1; 22205 case 0x36128FE4u: goto L_36128FE4; 22206 case 0x36128FE7u: goto L_36128FE7; 22207 case 0x36128FEAu: goto L_36128FEA; 22208 case 0x36128FEEu: goto L_36128FEE; 22209 case 0x36128FF1u: goto L_36128FF1; 22210 case 0x36128FF4u: goto L_36128FF4; 22211 case 0x36128FF6u: goto L_36128FF6; 22212 case 0x36128FF9u: goto L_36128FF9; 22213 case 0x36129000u: goto L_36129000; 22214 case 0x36129004u: goto L_36129004; 22215 case 0x36129007u: goto L_36129007; 22216 case 0x3612900Bu: goto L_3612900B; 22217 case 0x3612900Eu: goto L_3612900E; 22218 case 0x36129012u: goto L_36129012; 22219 case 0x36129015u: goto L_36129015; 22220 case 0x36129018u: goto L_36129018; 22221 case 0x3612901Du: goto L_3612901D; 22222 case 0x36129023u: goto L_36129023; 22223 case 0x36129026u: goto L_36129026; 22224 case 0x36129029u: goto L_36129029; 22225 case 0x3612902Fu: goto L_3612902F; 22226 case 0x36129033u: goto L_36129033; 22227 case 0x36129036u: goto L_36129036; 22228 case 0x3612903Bu: goto L_3612903B; 22229 case 0x36129041u: goto L_36129041; 22230 case 0x36129043u: goto L_36129043; 22231 case 0x36129049u: goto L_36129049; 22232 case 0x3612904Bu: goto L_3612904B; 22233 case 0x36129051u: goto L_36129051; 22234 case 0x36129056u: goto L_36129056; 22235 case 0x36129059u: goto L_36129059; 22236 case 0x3612905Bu: goto L_3612905B; 22237 case 0x36129061u: goto L_36129061; 22238 case 0x36129068u: goto L_36129068; 22239 case 0x3612906Bu: goto L_3612906B; 22240 case 0x3612906Eu: goto L_3612906E; 22241 case 0x36129071u: goto L_36129071; 22242 case 0x36129074u: goto L_36129074; 22243 case 0x3612907Au: goto L_3612907A; 22244 case 0x3612907Du: goto L_3612907D; 22245 case 0x3612907Fu: goto L_3612907F; 22246 case 0x36129082u: goto L_36129082; 22247 case 0x36129084u: goto L_36129084; 22248 case 0x36129087u: goto L_36129087; 22249 case 0x3612908Du: goto L_3612908D; 22250 case 0x36129090u: goto L_36129090; 22251 case 0x36129093u: goto L_36129093; 22252 case 0x36129095u: goto L_36129095; 22253 case 0x36129097u: goto L_36129097; 22254 case 0x36129099u: goto L_36129099; 22255 case 0x3612909Bu: goto L_3612909B; 22256 case 0x3612909Du: goto L_3612909D; 22257 case 0x361290A0u: goto L_361290A0; 22258 case 0x361290A3u: goto L_361290A3; 22259 case 0x361290A6u: goto L_361290A6; 22260 case 0x361290A9u: goto L_361290A9; 22261 case 0x361290ACu: goto L_361290AC; 22262 case 0x361290B2u: goto L_361290B2; 22263 case 0x361290B5u: goto L_361290B5; 22264 case 0x361290BBu: goto L_361290BB; 22265 case 0x361290BDu: goto L_361290BD; 22266 case 0x361290C3u: goto L_361290C3; 22267 case 0x361290C7u: goto L_361290C7; 22268 case 0x361290CDu: goto L_361290CD; 22269 case 0x361290D0u: goto L_361290D0; 22270 case 0x361290D4u: goto L_361290D4; 22271 case 0x361290DAu: goto L_361290DA; 22272 case 0x361290DDu: goto L_361290DD; 22273 case 0x361290E0u: goto L_361290E0; 22274 case 0x361290E1u: goto L_361290E1; 22275 case 0x361290E6u: goto L_361290E6; 22276 case 0x361290E9u: goto L_361290E9; 22277 case 0x361290ECu: goto L_361290EC; 22278 case 0x361290F0u: goto L_361290F0; 22279 case 0x361290F6u: goto L_361290F6; 22280 case 0x361290FBu: goto L_361290FB; 22281 case 0x36129100u: goto L_36129100; 22282 case 0x36129102u: goto L_36129102; 22283 case 0x36129105u: goto L_36129105; 22284 case 0x36129109u: goto L_36129109; 22285 case 0x3612910Cu: goto L_3612910C; 22286 case 0x3612910Fu: goto L_3612910F; 22287 case 0x36129117u: goto L_36129117; 22288 case 0x36129118u: goto L_36129118; 22289 case 0x3612911Du: goto L_3612911D; 22290 case 0x3612911Fu: goto L_3612911F; 22291 case 0x36129122u: goto L_36129122; 22292 case 0x36129125u: goto L_36129125; 22293 case 0x36129128u: goto L_36129128; 22294 case 0x3612912Eu: goto L_3612912E; 22295 case 0x36129132u: goto L_36129132; 22296 case 0x36129135u: goto L_36129135; 22297 case 0x3612913Au: goto L_3612913A; 22298 case 0x3612913Du: goto L_3612913D; 22299 case 0x36129142u: goto L_36129142; 22300 case 0x36129145u: goto L_36129145; 22301 case 0x36129147u: goto L_36129147; 22302 case 0x3612914Du: goto L_3612914D; 22303 case 0x36129153u: goto L_36129153; 22304 case 0x36129155u: goto L_36129155; 22305 case 0x3612915Bu: goto L_3612915B; 22306 case 0x36129160u: goto L_36129160; 22307 case 0x36129163u: goto L_36129163; 22308 case 0x36129164u: goto L_36129164; 22309 case 0x36129166u: goto L_36129166; 22310 case 0x3612916Bu: goto L_3612916B; 22311 case 0x3612916Du: goto L_3612916D; 22312 case 0x36129170u: goto L_36129170; 22313 case 0x36129176u: goto L_36129176; 22314 case 0x36129179u: goto L_36129179; 22315 case 0x3612917Au: goto L_3612917A; 22316 case 0x3612917Cu: goto L_3612917C; 22317 case 0x36129181u: goto L_36129181; 22318 case 0x36129183u: goto L_36129183; 22319 case 0x36129186u: goto L_36129186; 22320 case 0x36129189u: goto L_36129189; 22321 case 0x3612918Cu: goto L_3612918C; 22322 case 0x3612918Fu: goto L_3612918F; 22323 case 0x36129190u: goto L_36129190; 22324 case 0x36129193u: goto L_36129193; 22325 case 0x36129196u: goto L_36129196; 22326 case 0x36129199u: goto L_36129199; 22327 case 0x3612919Eu: goto L_3612919E; 22328 case 0x361291A0u: goto L_361291A0; 22329 case 0x361291A3u: goto L_361291A3; 22330 case 0x361291A6u: goto L_361291A6; 22331 case 0x361291A9u: goto L_361291A9; 22332 case 0x361291ACu: goto L_361291AC; 22333 case 0x361291AFu: goto L_361291AF; 22334 case 0x361291B5u: goto L_361291B5; 22335 case 0x361291B8u: goto L_361291B8; 22336 case 0x361291BDu: goto L_361291BD; 22337 case 0x361291C0u: goto L_361291C0; 22338 case 0x361291C3u: goto L_361291C3; 22339 case 0x361291C6u: goto L_361291C6; 22340 case 0x361291C9u: goto L_361291C9; 22341 case 0x361291CCu: goto L_361291CC; 22342 case 0x361291CFu: goto L_361291CF; 22343 case 0x361291D5u: goto L_361291D5; 22344 case 0x361291D8u: goto L_361291D8; 22345 case 0x361291DEu: goto L_361291DE; 22346 case 0x361291E1u: goto L_361291E1; 22347 case 0x361291E4u: goto L_361291E4; 22348 case 0x361291E6u: goto L_361291E6; 22349 case 0x361291E9u: goto L_361291E9; 22350 case 0x361291ECu: goto L_361291EC; 22351 case 0x361291EFu: goto L_361291EF; 22352 case 0x361291F1u: goto L_361291F1; 22353 case 0x361291F4u: goto L_361291F4; 22354 case 0x361291F7u: goto L_361291F7; 22355 case 0x361291FAu: goto L_361291FA; 22356 case 0x361291FDu: goto L_361291FD; 22357 case 0x361291FFu: goto L_361291FF; 22358 case 0x36129202u: goto L_36129202; 22359 case 0x36129205u: goto L_36129205; 22360 case 0x36129207u: goto L_36129207; 22361 case 0x3612920Au: goto L_3612920A; 22362 case 0x3612920Cu: goto L_3612920C; 22363 case 0x3612920Eu: goto L_3612920E; 22364 case 0x36129211u: goto L_36129211; 22365 case 0x36129214u: goto L_36129214; 22366 case 0x36129217u: goto L_36129217; 22367 case 0x3612921Au: goto L_3612921A; 22368 case 0x3612921Du: goto L_3612921D; 22369 case 0x3612921Fu: goto L_3612921F; 22370 case 0x36129221u: goto L_36129221; 22371 case 0x36129224u: goto L_36129224; 22372 case 0x36129227u: goto L_36129227; 22373 case 0x3612922Au: goto L_3612922A; 22374 case 0x3612922Du: goto L_3612922D; 22375 case 0x3612922Fu: goto L_3612922F; 22376 case 0x36129232u: goto L_36129232; 22377 case 0x36129235u: goto L_36129235; 22378 case 0x36129238u: goto L_36129238; 22379 case 0x3612923Au: goto L_3612923A; 22380 case 0x3612923Du: goto L_3612923D; 22381 case 0x36129240u: goto L_36129240; 22382 case 0x36129243u: goto L_36129243; 22383 case 0x36129246u: goto L_36129246; 22384 case 0x36129249u: goto L_36129249; 22385 case 0x3612924Bu: goto L_3612924B; 22386 case 0x3612924Eu: goto L_3612924E; 22387 case 0x36129251u: goto L_36129251; 22388 case 0x36129254u: goto L_36129254; 22389 case 0x36129257u: goto L_36129257; 22390 case 0x3612925Au: goto L_3612925A; 22391 case 0x3612925Du: goto L_3612925D; 22392 case 0x36129260u: goto L_36129260; 22393 case 0x36129263u: goto L_36129263; 22394 case 0x36129266u: goto L_36129266; 22395 case 0x36129269u: goto L_36129269; 22396 case 0x36129270u: goto L_36129270; 22397 case 0x36129273u: goto L_36129273; 22398 case 0x36129279u: goto L_36129279; 22399 case 0x3612927Bu: goto L_3612927B; 22400 case 0x36129282u: goto L_36129282; 22401 case 0x36129285u: goto L_36129285; 22402 case 0x36129288u: goto L_36129288; 22403 case 0x3612928Bu: goto L_3612928B; 22404 case 0x36129292u: goto L_36129292; 22405 case 0x36129295u: goto L_36129295; 22406 case 0x36129298u: goto L_36129298; 22407 case 0x3612929Eu: goto L_3612929E; 22408 case 0x361292A1u: goto L_361292A1; 22409 case 0x361292A3u: goto L_361292A3; 22410 case 0x361292A6u: goto L_361292A6; 22411 case 0x361292A7u: goto L_361292A7; 22412 case 0x361292A8u: goto L_361292A8; 22413 case 0x361292ABu: goto L_361292AB; 22414 case 0x361292AEu: goto L_361292AE; 22415 case 0x361292B0u: goto L_361292B0; 22416 case 0x361292B3u: goto L_361292B3; 22417 case 0x361292B8u: goto L_361292B8; 22418 case 0x361292BAu: goto L_361292BA; 22419 case 0x361292BDu: goto L_361292BD; 22420 case 0x361292C2u: goto L_361292C2; 22421 case 0x361292C5u: goto L_361292C5; 22422 case 0x361292C8u: goto L_361292C8; 22423 case 0x361292C9u: goto L_361292C9; 22424 case 0x361292CCu: goto L_361292CC; 22425 case 0x361292CFu: goto L_361292CF; 22426 case 0x361292D2u: goto L_361292D2; 22427 case 0x361292D8u: goto L_361292D8; 22428 case 0x361292DBu: goto L_361292DB; 22429 case 0x361292DEu: goto L_361292DE; 22430 case 0x361292E4u: goto L_361292E4; 22431 case 0x361292EAu: goto L_361292EA; 22432 case 0x361292ECu: goto L_361292EC; 22433 case 0x361292EEu: goto L_361292EE; 22434 case 0x361292F1u: goto L_361292F1; 22435 case 0x361292F3u: goto L_361292F3; 22436 case 0x361292F5u: goto L_361292F5; 22437 case 0x361292F9u: goto L_361292F9; 22438 case 0x361292FCu: goto L_361292FC; 22439 case 0x361292FDu: goto L_361292FD; 22440 case 0x36129300u: goto L_36129300; 22441 case 0x36129305u: goto L_36129305; 22442 case 0x36129308u: goto L_36129308; 22443 case 0x3612930Au: goto L_3612930A; 22444 case 0x3612930Du: goto L_3612930D; 22445 case 0x3612930Fu: goto L_3612930F; 22446 case 0x36129312u: goto L_36129312; 22447 case 0x36129315u: goto L_36129315; 22448 case 0x36129318u: goto L_36129318; 22449 case 0x3612931Au: goto L_3612931A; 22450 case 0x3612931Du: goto L_3612931D; 22451 case 0x3612931Fu: goto L_3612931F; 22452 case 0x36129321u: goto L_36129321; 22453 case 0x36129324u: goto L_36129324; 22454 case 0x36129327u: goto L_36129327; 22455 case 0x3612932Du: goto L_3612932D; 22456 case 0x36129334u: goto L_36129334; 22457 case 0x36129337u: goto L_36129337; 22458 case 0x36129339u: goto L_36129339; 22459 case 0x36129340u: goto L_36129340; 22460 case 0x36129343u: goto L_36129343; 22461 case 0x36129346u: goto L_36129346; 22462 case 0x3612934Du: goto L_3612934D; 22463 case 0x36129350u: goto L_36129350; 22464 case 0x36129353u: goto L_36129353; 22465 case 0x3612935Au: goto L_3612935A; 22466 case 0x3612935Du: goto L_3612935D; 22467 case 0x3612935Fu: goto L_3612935F; 22468 case 0x36129362u: goto L_36129362; 22469 case 0x36129364u: goto L_36129364; 22470 case 0x36129366u: goto L_36129366; 22471 case 0x36129369u: goto L_36129369; 22472 case 0x3612936Cu: goto L_3612936C; 22473 case 0x36129372u: goto L_36129372; 22474 case 0x36129375u: goto L_36129375; 22475 case 0x36129377u: goto L_36129377; 22476 case 0x36129379u: goto L_36129379; 22477 case 0x3612937Cu: goto L_3612937C; 22478 case 0x3612937Du: goto L_3612937D; 22479 case 0x36129383u: goto L_36129383; 22480 case 0x36129384u: goto L_36129384; 22481 case 0x36129385u: goto L_36129385; 22482 case 0x36129386u: goto L_36129386; 22483 case 0x36129388u: goto L_36129388; 22484 case 0x36129389u: goto L_36129389; 22485 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 22486 } 22487 RECOMP_REGS_OUT(); 22488 } 22489 22490 void sub_36129041(void) { 22491 int _fpu_cmp = 0; 22492 uint32_t _cf = 0; 22493 int _df = 1; 22494 uint32_t _flag_k = FK_NONE; 22495 uint32_t _flag_a = 0, _flag_b = 0; 22496 uint32_t _itail_tgt = 0; 22497 RECOMP_REGS_LOCALS 22498 RECOMP_ENTER(0x36129041u); 22499 22500 L_36129041: 22501 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36129041: fstp st(0) */ 22502 SET_LO8(eax, MEM8(esi + 0x5B0)); /* 0x36129043: mov al, byte ptr [esi + 0x5b0] */ 22503 /* test LO8(eax), LO8(eax) */ /* 0x36129049: test al, al */ 22504 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22505 _cf = 0; 22506 _flag_k = FK_NARROW(FK_TEST, 24); 22507 if (TEST_Z(_flag_a, _flag_b)) goto L_361292F9; /* 0x3612904B: je 0x361292f9 */ 22508 L_36129051: 22509 goto L_361292F5; /* 0x36129051: jmp 0x361292f5 */ 22510 L_361292F5: 22511 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361292F5: mov byte ptr [esi + 0x14], 1 */ 22512 L_361292F9: 22513 ecx = ebp + (-0x60); /* 0x361292F9: lea ecx, [ebp - 0x60] */ 22514 PUSH32(esp, ecx); /* 0x361292FC: push ecx */ 22515 ecx = MEM32(esi + 0x20); /* 0x361292FD: mov ecx, dword ptr [esi + 0x20] */ 22516 RECOMP_ICALL(0x36133E80u); /* 0x36129300: call 0x36133e80 */ /* not lifted */ 22517 RECOMP_FLAGS_IN(); 22518 ecx = MEM32(esi + 0x28); /* 0x36129305: mov ecx, dword ptr [esi + 0x28] */ 22519 edi = MEM32(eax); /* 0x36129308: mov edi, dword ptr [eax] */ 22520 edx = ecx + 0x78; /* 0x3612930A: lea edx, [ecx + 0x78] */ 22521 MEM32(edx) = edi; /* 0x3612930D: mov dword ptr [edx], edi */ 22522 edi = MEM32(eax + 0x4); /* 0x3612930F: mov edi, dword ptr [eax + 4] */ 22523 MEM32(edx + 0x4) = edi; /* 0x36129312: mov dword ptr [edx + 4], edi */ 22524 eax = MEM32(eax + 0x8); /* 0x36129315: mov eax, dword ptr [eax + 8] */ 22525 PUSH32(esp, 1); /* 0x36129318: push 1 */ 22526 MEM32(edx + 0x8) = eax; /* 0x3612931A: mov dword ptr [edx + 8], eax */ 22527 edx = MEM32(ecx); /* 0x3612931D: mov edx, dword ptr [ecx] */ 22528 PUSH32(esp, 1); /* 0x3612931F: push 1 */ 22529 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36129321: call dword ptr [edx + 0x2c] */ 22530 RECOMP_FLAGS_IN(); 22531 ecx = MEM32(esi + 0x28); /* 0x36129324: mov ecx, dword ptr [esi + 0x28] */ 22532 eax = ecx + 0x84; /* 0x36129327: lea eax, [ecx + 0x84] */ 22533 MEM32(ebp + (-0x64)) = 0; /* 0x3612932D: mov dword ptr [ebp - 0x64], 0 */ 22534 edx = MEM32(ebp + (-0x64)); /* 0x36129334: mov edx, dword ptr [ebp - 0x64] */ 22535 MEM32(eax) = edx; /* 0x36129337: mov dword ptr [eax], edx */ 22536 MEM32(ebp + (-0x60)) = 0; /* 0x36129339: mov dword ptr [ebp - 0x60], 0 */ 22537 edx = MEM32(ebp + (-0x60)); /* 0x36129340: mov edx, dword ptr [ebp - 0x60] */ 22538 MEM32(eax + 0x4) = edx; /* 0x36129343: mov dword ptr [eax + 4], edx */ 22539 MEM32(ebp + (-0x5C)) = 0; /* 0x36129346: mov dword ptr [ebp - 0x5c], 0 */ 22540 edx = MEM32(ebp + (-0x5C)); /* 0x3612934D: mov edx, dword ptr [ebp - 0x5c] */ 22541 MEM32(eax + 0x8) = edx; /* 0x36129350: mov dword ptr [eax + 8], edx */ 22542 MEM32(ebp + (-0x58)) = 0x3F800000u; /* 0x36129353: mov dword ptr [ebp - 0x58], 0x3f800000 */ 22543 edx = MEM32(ebp + (-0x58)); /* 0x3612935A: mov edx, dword ptr [ebp - 0x58] */ 22544 PUSH32(esp, 1); /* 0x3612935D: push 1 */ 22545 MEM32(eax + 0xC) = edx; /* 0x3612935F: mov dword ptr [eax + 0xc], edx */ 22546 eax = MEM32(ecx); /* 0x36129362: mov eax, dword ptr [ecx] */ 22547 PUSH32(esp, 2); /* 0x36129364: push 2 */ 22548 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36129366: call dword ptr [eax + 0x2c] */ 22549 RECOMP_FLAGS_IN(); 22550 ecx = MEM32(esi + 0x20); /* 0x36129369: mov ecx, dword ptr [esi + 0x20] */ 22551 SET_LO8(ebx, MEM8(ecx + 0x108)); /* 0x3612936C: mov bl, byte ptr [ecx + 0x108] */ 22552 ecx = MEM32(esi + 0x28); /* 0x36129372: mov ecx, dword ptr [esi + 0x28] */ 22553 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22554 edx = 0; /* 0x36129375: xor edx, edx */ 22555 _cf = 0; 22556 _flag_k = FK_TEST; 22557 /* test LO8(ebx), LO8(ebx) */ /* 0x36129377: test bl, bl */ 22558 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22559 _cf = 0; 22560 _flag_k = FK_NARROW(FK_TEST, 24); 22561 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x36129379: sete dl */ 22562 PUSH32(esp, edx); /* 0x3612937C: push edx */ 22563 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x3612937D: call dword ptr [0x3616f620] */ 22564 RECOMP_FLAGS_IN(); 22565 edi = POP32_VAL(esp); /* 0x36129383: pop edi */ 22566 ebx = POP32_VAL(esp); /* 0x36129384: pop ebx */ 22567 esi = POP32_VAL(esp); /* 0x36129385: pop esi */ 22568 esp = ebp; /* 0x36129386: mov esp, ebp */ 22569 ebp = POP32_VAL(esp); /* 0x36129388: pop ebp */ 22570 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36129389: ret */ 22571 RECOMP_REGS_OUT(); 22572 } 22573 22574 void sub_36129043(void) { 22575 int _fpu_cmp = 0; 22576 uint32_t _cf = 0; 22577 int _df = 1; 22578 uint32_t _flag_k = FK_NONE; 22579 uint32_t _flag_a = 0, _flag_b = 0; 22580 uint32_t _itail_tgt = 0; 22581 RECOMP_REGS_LOCALS 22582 RECOMP_ENTER(0x36129043u); 22583 22584 L_36129043: 22585 SET_LO8(eax, MEM8(esi + 0x5B0)); /* 0x36129043: mov al, byte ptr [esi + 0x5b0] */ 22586 /* test LO8(eax), LO8(eax) */ /* 0x36129049: test al, al */ 22587 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22588 _cf = 0; 22589 _flag_k = FK_NARROW(FK_TEST, 24); 22590 if (TEST_Z(_flag_a, _flag_b)) goto L_361292F9; /* 0x3612904B: je 0x361292f9 */ 22591 L_36129051: 22592 goto L_361292F5; /* 0x36129051: jmp 0x361292f5 */ 22593 L_361292F5: 22594 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361292F5: mov byte ptr [esi + 0x14], 1 */ 22595 L_361292F9: 22596 ecx = ebp + (-0x60); /* 0x361292F9: lea ecx, [ebp - 0x60] */ 22597 PUSH32(esp, ecx); /* 0x361292FC: push ecx */ 22598 ecx = MEM32(esi + 0x20); /* 0x361292FD: mov ecx, dword ptr [esi + 0x20] */ 22599 RECOMP_ICALL(0x36133E80u); /* 0x36129300: call 0x36133e80 */ /* not lifted */ 22600 RECOMP_FLAGS_IN(); 22601 ecx = MEM32(esi + 0x28); /* 0x36129305: mov ecx, dword ptr [esi + 0x28] */ 22602 edi = MEM32(eax); /* 0x36129308: mov edi, dword ptr [eax] */ 22603 edx = ecx + 0x78; /* 0x3612930A: lea edx, [ecx + 0x78] */ 22604 MEM32(edx) = edi; /* 0x3612930D: mov dword ptr [edx], edi */ 22605 edi = MEM32(eax + 0x4); /* 0x3612930F: mov edi, dword ptr [eax + 4] */ 22606 MEM32(edx + 0x4) = edi; /* 0x36129312: mov dword ptr [edx + 4], edi */ 22607 eax = MEM32(eax + 0x8); /* 0x36129315: mov eax, dword ptr [eax + 8] */ 22608 PUSH32(esp, 1); /* 0x36129318: push 1 */ 22609 MEM32(edx + 0x8) = eax; /* 0x3612931A: mov dword ptr [edx + 8], eax */ 22610 edx = MEM32(ecx); /* 0x3612931D: mov edx, dword ptr [ecx] */ 22611 PUSH32(esp, 1); /* 0x3612931F: push 1 */ 22612 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36129321: call dword ptr [edx + 0x2c] */ 22613 RECOMP_FLAGS_IN(); 22614 ecx = MEM32(esi + 0x28); /* 0x36129324: mov ecx, dword ptr [esi + 0x28] */ 22615 eax = ecx + 0x84; /* 0x36129327: lea eax, [ecx + 0x84] */ 22616 MEM32(ebp + (-0x64)) = 0; /* 0x3612932D: mov dword ptr [ebp - 0x64], 0 */ 22617 edx = MEM32(ebp + (-0x64)); /* 0x36129334: mov edx, dword ptr [ebp - 0x64] */ 22618 MEM32(eax) = edx; /* 0x36129337: mov dword ptr [eax], edx */ 22619 MEM32(ebp + (-0x60)) = 0; /* 0x36129339: mov dword ptr [ebp - 0x60], 0 */ 22620 edx = MEM32(ebp + (-0x60)); /* 0x36129340: mov edx, dword ptr [ebp - 0x60] */ 22621 MEM32(eax + 0x4) = edx; /* 0x36129343: mov dword ptr [eax + 4], edx */ 22622 MEM32(ebp + (-0x5C)) = 0; /* 0x36129346: mov dword ptr [ebp - 0x5c], 0 */ 22623 edx = MEM32(ebp + (-0x5C)); /* 0x3612934D: mov edx, dword ptr [ebp - 0x5c] */ 22624 MEM32(eax + 0x8) = edx; /* 0x36129350: mov dword ptr [eax + 8], edx */ 22625 MEM32(ebp + (-0x58)) = 0x3F800000u; /* 0x36129353: mov dword ptr [ebp - 0x58], 0x3f800000 */ 22626 edx = MEM32(ebp + (-0x58)); /* 0x3612935A: mov edx, dword ptr [ebp - 0x58] */ 22627 PUSH32(esp, 1); /* 0x3612935D: push 1 */ 22628 MEM32(eax + 0xC) = edx; /* 0x3612935F: mov dword ptr [eax + 0xc], edx */ 22629 eax = MEM32(ecx); /* 0x36129362: mov eax, dword ptr [ecx] */ 22630 PUSH32(esp, 2); /* 0x36129364: push 2 */ 22631 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36129366: call dword ptr [eax + 0x2c] */ 22632 RECOMP_FLAGS_IN(); 22633 ecx = MEM32(esi + 0x20); /* 0x36129369: mov ecx, dword ptr [esi + 0x20] */ 22634 SET_LO8(ebx, MEM8(ecx + 0x108)); /* 0x3612936C: mov bl, byte ptr [ecx + 0x108] */ 22635 ecx = MEM32(esi + 0x28); /* 0x36129372: mov ecx, dword ptr [esi + 0x28] */ 22636 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22637 edx = 0; /* 0x36129375: xor edx, edx */ 22638 _cf = 0; 22639 _flag_k = FK_TEST; 22640 /* test LO8(ebx), LO8(ebx) */ /* 0x36129377: test bl, bl */ 22641 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22642 _cf = 0; 22643 _flag_k = FK_NARROW(FK_TEST, 24); 22644 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x36129379: sete dl */ 22645 PUSH32(esp, edx); /* 0x3612937C: push edx */ 22646 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x3612937D: call dword ptr [0x3616f620] */ 22647 RECOMP_FLAGS_IN(); 22648 edi = POP32_VAL(esp); /* 0x36129383: pop edi */ 22649 ebx = POP32_VAL(esp); /* 0x36129384: pop ebx */ 22650 esi = POP32_VAL(esp); /* 0x36129385: pop esi */ 22651 esp = ebp; /* 0x36129386: mov esp, ebp */ 22652 ebp = POP32_VAL(esp); /* 0x36129388: pop ebp */ 22653 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36129389: ret */ 22654 RECOMP_REGS_OUT(); 22655 } 22656 22657 void sub_36129056(void) { 22658 int _fpu_cmp = 0; 22659 uint32_t _cf = 0; 22660 int _df = 1; 22661 uint32_t _flag_k = FK_NONE; 22662 uint32_t _flag_a = 0, _flag_b = 0; 22663 uint32_t _itail_tgt = 0; 22664 RECOMP_REGS_LOCALS 22665 RECOMP_ENTER(0x36129056u); 22666 22667 L_36129056: 22668 ecx = MEM32(esi + 0xC); /* 0x36129056: mov ecx, dword ptr [esi + 0xc] */ 22669 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22670 edi = 0; /* 0x36129059: xor edi, edi */ 22671 _cf = 0; 22672 _flag_k = FK_TEST; 22673 edx = esi + 0x530; /* 0x3612905B: lea edx, [esi + 0x530] */ 22674 MEM32(ebp + (-0x2C)) = 3; /* 0x36129061: mov dword ptr [ebp - 0x2c], 3 */ 22675 MEM32(ebp + (-0x18)) = edi; /* 0x36129068: mov dword ptr [ebp - 0x18], edi */ 22676 MEM32(ebp + (-0x4)) = ecx; /* 0x3612906B: mov dword ptr [ebp - 4], ecx */ 22677 MEM32(ebp + (-0x48)) = edi; /* 0x3612906E: mov dword ptr [ebp - 0x48], edi */ 22678 MEM32(ebp + (-0x8)) = edx; /* 0x36129071: mov dword ptr [ebp - 8], edx */ 22679 ebx = esi + 0x330; /* 0x36129074: lea ebx, [esi + 0x330] */ 22680 L_3612907A: 22681 eax = MEM32(ebp + (-0x8)); /* 0x3612907A: mov eax, dword ptr [ebp - 8] */ 22682 fp_push(*(float*)&MEM32(eax)); /* 0x3612907D: fld dword ptr [eax] */ 22683 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3612907F: fcomp dword ptr [ebp - 4] */ 22684 fp_pop(); 22685 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36129082: fnstsw ax */ 22686 /* test HI8(eax), 0x41u */ /* 0x36129084: test ah, 0x41 */ 22687 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 22688 _cf = 0; 22689 _flag_k = FK_NARROW(FK_TEST, 24); 22690 if (TEST_NZ(_flag_a, _flag_b)) goto L_36129142; /* 0x36129087: jne 0x36129142 */ 22691 L_3612908D: 22692 edx = MEM32(esi + 0x2C); /* 0x3612908D: mov edx, dword ptr [esi + 0x2c] */ 22693 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36129090: fld dword ptr [ebp - 4] */ 22694 ecx = edi; /* 0x36129093: mov ecx, edi */ 22695 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 22696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22697 ecx = ecx + edx; /* 0x36129095: add ecx, edx */ 22698 _flag_k = FK_ADD; 22699 edx = ebx; /* 0x36129097: mov edx, ebx */ 22700 eax = MEM32(edx); /* 0x36129099: mov eax, dword ptr [edx] */ 22701 MEM32(ecx) = eax; /* 0x3612909B: mov dword ptr [ecx], eax */ 22702 eax = MEM32(edx + 0x4); /* 0x3612909D: mov eax, dword ptr [edx + 4] */ 22703 MEM32(ecx + 0x4) = eax; /* 0x361290A0: mov dword ptr [ecx + 4], eax */ 22704 edx = MEM32(edx + 0x8); /* 0x361290A3: mov edx, dword ptr [edx + 8] */ 22705 eax = MEM32(ebp + (-0x8)); /* 0x361290A6: mov eax, dword ptr [ebp - 8] */ 22706 MEM32(ecx + 0x8) = edx; /* 0x361290A9: mov dword ptr [ecx + 8], edx */ 22707 _st[0] += (double)*(float*)ADDR(esi + 0x618); /* 0x361290AC: fadd dword ptr [esi + 0x618] */ 22708 ecx = MEM32(esi + 0x2C); /* 0x361290B2: mov ecx, dword ptr [esi + 0x2c] */ 22709 edx = MEM32(esi + 0x620); /* 0x361290B5: mov edx, dword ptr [esi + 0x620] */ 22710 _st[0] -= (double)*(float*)ADDR(eax); /* 0x361290BB: fsub dword ptr [eax] */ 22711 _st[0] /= (double)*(float*)ADDR(esi + 0x618); /* 0x361290BD: fdiv dword ptr [esi + 0x618] */ 22712 MEM32(edi + ecx + 0xC) = edx; /* 0x361290C3: mov dword ptr [edi + ecx + 0xc], edx */ 22713 ecx = MEM32(esi + 0x620); /* 0x361290C7: mov ecx, dword ptr [esi + 0x620] */ 22714 eax = MEM32(esi + 0x2C); /* 0x361290CD: mov eax, dword ptr [esi + 0x2c] */ 22715 MEM32(edi + eax + 0x10) = ecx; /* 0x361290D0: mov dword ptr [edi + eax + 0x10], ecx */ 22716 ecx = esi + 0x5E4; /* 0x361290D4: lea ecx, [esi + 0x5e4] */ 22717 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361290DA: fstp dword ptr [ebp - 0x1c] */ 22718 edx = MEM32(ebp + (-0x1C)); /* 0x361290DD: mov edx, dword ptr [ebp - 0x1c] */ 22719 PUSH32(esp, edx); /* 0x361290E0: push edx */ 22720 RECOMP_ICALL(0x36137D80u); /* 0x361290E1: call 0x36137d80 */ /* not lifted */ 22721 RECOMP_FLAGS_IN(); 22722 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x361290E6: fld dword ptr [ebp - 0x1c] */ 22723 ecx = MEM32(esi + 0x2C); /* 0x361290E9: mov ecx, dword ptr [esi + 0x2c] */ 22724 MEM32(edi + ecx + 0x1C) = eax; /* 0x361290EC: mov dword ptr [edi + ecx + 0x1c], eax */ 22725 _st[0] *= (double)*(float*)ADDR(esi + 0x624); /* 0x361290F0: fmul dword ptr [esi + 0x624] */ 22726 RECOMP_ICALL(0x3615FD8Cu); /* 0x361290F6: call 0x3615fd8c */ /* not lifted */ 22727 RECOMP_FLAGS_IN(); 22728 edx = 0xFu; /* 0x361290FB: mov edx, 0xf */ 22729 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 22730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22731 edx = edx - eax; /* 0x36129100: sub edx, eax */ 22732 _flag_k = FK_CMP; 22733 eax = MEM32(esi + 0x2C); /* 0x36129102: mov eax, dword ptr [esi + 0x2c] */ 22734 MEM32(edi + eax + 0x20) = edx; /* 0x36129105: mov dword ptr [edi + eax + 0x20], edx */ 22735 ecx = MEM32(esi + 0x2C); /* 0x36129109: mov ecx, dword ptr [esi + 0x2c] */ 22736 eax = MEM32(ebp + (-0x48)); /* 0x3612910C: mov eax, dword ptr [ebp - 0x48] */ 22737 MEM32(edi + ecx + 0x18) = 0; /* 0x3612910F: mov dword ptr [edi + ecx + 0x18], 0 */ 22738 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36129117: cdq */ 22739 ecx = 7; /* 0x36129118: mov ecx, 7 */ 22740 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3612911D: idiv ecx */ 22741 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 22742 else { eax = 0; edx = 0; } } 22743 MEM32(ebp + (-0x1C)) = edx; /* 0x3612911F: mov dword ptr [ebp - 0x1c], edx */ 22744 fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x36129122: fild dword ptr [ebp - 0x1c] */ 22745 edx = MEM32(esi + 0x2C); /* 0x36129125: mov edx, dword ptr [esi + 0x2c] */ 22746 _st[0] *= (double)*(float*)ADDR(0x36174F98); /* 0x36129128: fmul dword ptr [0x36174f98] */ 22747 { float _v = (float)fp_pop(); *(float*)ADDR(edi + edx + 0x14) = _v; } /* 0x3612912E: fstp dword ptr [edi + edx + 0x14] */ 22748 eax = MEM32(esi + 0x2C); /* 0x36129132: mov eax, dword ptr [esi + 0x2c] */ 22749 MEM8(edi + eax + 0x24) = (uint8_t)(1); /* 0x36129135: mov byte ptr [edi + eax + 0x24], 1 */ 22750 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1); 22751 MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) + 1; /* 0x3612913A: inc dword ptr [ebp - 0x18] */ 22752 _flag_k = FK_INC; 22753 goto L_361292C2; /* 0x3612913D: jmp 0x361292c2 */ 22754 L_36129142: 22755 eax = MEM32(ebp + (-0x2C)); /* 0x36129142: mov eax, dword ptr [ebp - 0x2c] */ 22756 /* test eax, eax */ /* 0x36129145: test eax, eax */ 22757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22758 _cf = 0; 22759 _flag_k = FK_TEST; 22760 if (TEST_Z(_flag_a, _flag_b)) goto L_361292BA; /* 0x36129147: je 0x361292ba */ 22761 L_3612914D: 22762 SET_LO8(eax, MEM8(esi + 0x5B0)); /* 0x3612914D: mov al, byte ptr [esi + 0x5b0] */ 22763 /* test LO8(eax), LO8(eax) */ /* 0x36129153: test al, al */ 22764 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22765 _cf = 0; 22766 _flag_k = FK_NARROW(FK_TEST, 24); 22767 if (TEST_NZ(_flag_a, _flag_b)) goto L_361292BA; /* 0x36129155: jne 0x361292ba */ 22768 L_3612915B: 22769 RECOMP_ICALL(0x360F7B00u); /* 0x3612915B: call 0x360f7b00 */ /* not lifted */ 22770 RECOMP_FLAGS_IN(); 22771 ecx = MEM32(esi + 0x24); /* 0x36129160: mov ecx, dword ptr [esi + 0x24] */ 22772 PUSH32(esp, ecx); /* 0x36129163: push ecx */ 22773 ecx = eax; /* 0x36129164: mov ecx, eax */ 22774 RECOMP_ICALL(0x360FBF90u); /* 0x36129166: call 0x360fbf90 */ /* not lifted */ 22775 RECOMP_FLAGS_IN(); 22776 /* test eax, eax */ /* 0x3612916B: test eax, eax */ 22777 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22778 _cf = 0; 22779 _flag_k = FK_TEST; 22780 MEM32(ebp + (-0x1C)) = eax; /* 0x3612916D: mov dword ptr [ebp - 0x1c], eax */ 22781 if (TEST_Z(_flag_a, _flag_b)) goto L_361292B0; /* 0x36129170: je 0x361292b0 */ 22782 L_36129176: 22783 edx = ebp + (-0x7C); /* 0x36129176: lea edx, [ebp - 0x7c] */ 22784 PUSH32(esp, edx); /* 0x36129179: push edx */ 22785 ecx = eax; /* 0x3612917A: mov ecx, eax */ 22786 RECOMP_ICALL(0x36131BB0u); /* 0x3612917C: call 0x36131bb0 */ /* not lifted */ 22787 RECOMP_FLAGS_IN(); 22788 ecx = MEM32(eax); /* 0x36129181: mov ecx, dword ptr [eax] */ 22789 edx = MEM32(eax + 0x4); /* 0x36129183: mov edx, dword ptr [eax + 4] */ 22790 eax = MEM32(eax + 0x8); /* 0x36129186: mov eax, dword ptr [eax + 8] */ 22791 MEM32(ebp + (-0x28)) = ecx; /* 0x36129189: mov dword ptr [ebp - 0x28], ecx */ 22792 ecx = ebp + (-0x60); /* 0x3612918C: lea ecx, [ebp - 0x60] */ 22793 PUSH32(esp, ecx); /* 0x3612918F: push ecx */ 22794 ecx = MEM32(ebp + (-0x1C)); /* 0x36129190: mov ecx, dword ptr [ebp - 0x1c] */ 22795 MEM32(ebp + (-0x24)) = edx; /* 0x36129193: mov dword ptr [ebp - 0x24], edx */ 22796 MEM32(ebp + (-0x20)) = eax; /* 0x36129196: mov dword ptr [ebp - 0x20], eax */ 22797 RECOMP_ICALL(0x36131C00u); /* 0x36129199: call 0x36131c00 */ /* not lifted */ 22798 RECOMP_FLAGS_IN(); 22799 edx = MEM32(eax); /* 0x3612919E: mov edx, dword ptr [eax] */ 22800 ecx = MEM32(eax + 0x4); /* 0x361291A0: mov ecx, dword ptr [eax + 4] */ 22801 MEM32(ebp + (-0x54)) = edx; /* 0x361291A3: mov dword ptr [ebp - 0x54], edx */ 22802 edx = MEM32(eax + 0x8); /* 0x361291A6: mov edx, dword ptr [eax + 8] */ 22803 MEM32(ebp + (-0x50)) = ecx; /* 0x361291A9: mov dword ptr [ebp - 0x50], ecx */ 22804 MEM32(ebp + (-0x4C)) = edx; /* 0x361291AC: mov dword ptr [ebp - 0x4c], edx */ 22805 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361291AF: call dword ptr [0x3616f254] */ 22806 RECOMP_FLAGS_IN(); 22807 ecx = MEM32(ebp + (-0x24)); /* 0x361291B5: mov ecx, dword ptr [ebp - 0x24] */ 22808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu); 22809 eax = eax & 0x7FFFu; /* 0x361291B8: and eax, 0x7fff */ 22810 _cf = 0; 22811 _flag_k = FK_TEST; 22812 edx = MEM32(ebp + (-0x20)); /* 0x361291BD: mov edx, dword ptr [ebp - 0x20] */ 22813 MEM32(ebp + (-0x1C)) = eax; /* 0x361291C0: mov dword ptr [ebp - 0x1c], eax */ 22814 fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x361291C3: fild dword ptr [ebp - 0x1c] */ 22815 eax = MEM32(ebp + (-0x28)); /* 0x361291C6: mov eax, dword ptr [ebp - 0x28] */ 22816 MEM32(ebp + (-0x44)) = eax; /* 0x361291C9: mov dword ptr [ebp - 0x44], eax */ 22817 eax = MEM32(ebp + (-0x54)); /* 0x361291CC: mov eax, dword ptr [ebp - 0x54] */ 22818 _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x361291CF: fmul dword ptr [0x36175f2c] */ 22819 MEM32(ebp + (-0x40)) = ecx; /* 0x361291D5: mov dword ptr [ebp - 0x40], ecx */ 22820 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361291D8: fld dword ptr [0x36170380] */ 22821 ecx = MEM32(ebp + (-0x50)); /* 0x361291DE: mov ecx, dword ptr [ebp - 0x50] */ 22822 MEM32(ebp + (-0x3C)) = edx; /* 0x361291E1: mov dword ptr [ebp - 0x3c], edx */ 22823 _st[0] -= _st[1]; /* 0x361291E4: fsub st(1) */ 22824 edx = MEM32(ebp + (-0x4C)); /* 0x361291E6: mov edx, dword ptr [ebp - 0x4c] */ 22825 MEM32(ebp + (-0x14)) = eax; /* 0x361291E9: mov dword ptr [ebp - 0x14], eax */ 22826 MEM32(ebp + (-0x10)) = ecx; /* 0x361291EC: mov dword ptr [ebp - 0x10], ecx */ 22827 fp_push(_st[0]); /* 0x361291EF: fld st(0) */ 22828 _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x361291F1: fmul dword ptr [ebp - 0x28] */ 22829 MEM32(ebp + (-0xC)) = edx; /* 0x361291F4: mov dword ptr [ebp - 0xc], edx */ 22830 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361291F7: fstp dword ptr [ebp - 0x44] */ 22831 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361291FA: fld dword ptr [ebp - 0x40] */ 22832 _st[0] *= _st[1]; /* 0x361291FD: fmul st(1) */ 22833 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361291FF: fstp dword ptr [ebp - 0x40] */ 22834 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36129202: fld dword ptr [ebp - 0x3c] */ 22835 _st[0] *= _st[1]; /* 0x36129205: fmul st(1) */ 22836 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36129207: fstp dword ptr [ebp - 0x3c] */ 22837 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3612920A: fstp st(0) */ 22838 fp_push(_st[0]); /* 0x3612920C: fld st(0) */ 22839 _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x3612920E: fmul dword ptr [ebp - 0x54] */ 22840 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36129211: fstp dword ptr [ebp - 0x14] */ 22841 eax = MEM32(ebp + (-0x14)); /* 0x36129214: mov eax, dword ptr [ebp - 0x14] */ 22842 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36129217: fld dword ptr [ebp - 0x10] */ 22843 MEM32(ebp + (-0x38)) = eax; /* 0x3612921A: mov dword ptr [ebp - 0x38], eax */ 22844 _st[0] *= _st[1]; /* 0x3612921D: fmul st(1) */ 22845 eax = ebx; /* 0x3612921F: mov eax, ebx */ 22846 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36129221: fstp dword ptr [ebp - 0x10] */ 22847 ecx = MEM32(ebp + (-0x10)); /* 0x36129224: mov ecx, dword ptr [ebp - 0x10] */ 22848 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36129227: fld dword ptr [ebp - 0xc] */ 22849 MEM32(ebp + (-0x34)) = ecx; /* 0x3612922A: mov dword ptr [ebp - 0x34], ecx */ 22850 _st[0] *= _st[1]; /* 0x3612922D: fmul st(1) */ 22851 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3612922F: fstp dword ptr [ebp - 0xc] */ 22852 edx = MEM32(ebp + (-0xC)); /* 0x36129232: mov edx, dword ptr [ebp - 0xc] */ 22853 MEM32(ebp + (-0x30)) = edx; /* 0x36129235: mov dword ptr [ebp - 0x30], edx */ 22854 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36129238: fstp st(0) */ 22855 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3612923A: fld dword ptr [ebp - 0x14] */ 22856 _st[0] += (double)*(float*)ADDR(ebp + (-0x44)); /* 0x3612923D: fadd dword ptr [ebp - 0x44] */ 22857 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36129240: fstp dword ptr [ebp - 0x38] */ 22858 ecx = MEM32(ebp + (-0x38)); /* 0x36129243: mov ecx, dword ptr [ebp - 0x38] */ 22859 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36129246: fld dword ptr [ebp - 0x34] */ 22860 MEM32(eax) = ecx; /* 0x36129249: mov dword ptr [eax], ecx */ 22861 _st[0] += (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3612924B: fadd dword ptr [ebp - 0x40] */ 22862 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3612924E: fstp dword ptr [ebp - 0x34] */ 22863 edx = MEM32(ebp + (-0x34)); /* 0x36129251: mov edx, dword ptr [ebp - 0x34] */ 22864 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36129254: fld dword ptr [ebp - 0x30] */ 22865 MEM32(eax + 0x4) = edx; /* 0x36129257: mov dword ptr [eax + 4], edx */ 22866 _st[0] += (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x3612925A: fadd dword ptr [ebp - 0x3c] */ 22867 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3612925D: fstp dword ptr [ebp - 0x30] */ 22868 ecx = MEM32(ebp + (-0x30)); /* 0x36129260: mov ecx, dword ptr [ebp - 0x30] */ 22869 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36129263: fld dword ptr [ebp - 4] */ 22870 MEM32(eax + 0x8) = ecx; /* 0x36129266: mov dword ptr [eax + 8], ecx */ 22871 MEM32(ebp + (-0x70)) = 0; /* 0x36129269: mov dword ptr [ebp - 0x70], 0 */ 22872 eax = MEM32(ebp + (-0x70)); /* 0x36129270: mov eax, dword ptr [ebp - 0x70] */ 22873 edx = ebx + (-0x180); /* 0x36129273: lea edx, [ebx - 0x180] */ 22874 MEM32(edx) = eax; /* 0x36129279: mov dword ptr [edx], eax */ 22875 MEM32(ebp + (-0x6C)) = 0; /* 0x3612927B: mov dword ptr [ebp - 0x6c], 0 */ 22876 ecx = MEM32(ebp + (-0x6C)); /* 0x36129282: mov ecx, dword ptr [ebp - 0x6c] */ 22877 MEM32(edx + 0x4) = ecx; /* 0x36129285: mov dword ptr [edx + 4], ecx */ 22878 ecx = MEM32(ebp + (-0x8)); /* 0x36129288: mov ecx, dword ptr [ebp - 8] */ 22879 MEM32(ebp + (-0x68)) = 0; /* 0x3612928B: mov dword ptr [ebp - 0x68], 0 */ 22880 eax = MEM32(ebp + (-0x68)); /* 0x36129292: mov eax, dword ptr [ebp - 0x68] */ 22881 MEM32(edx + 0x8) = eax; /* 0x36129295: mov dword ptr [edx + 8], eax */ 22882 _st[0] += (double)*(float*)ADDR(esi + 0x618); /* 0x36129298: fadd dword ptr [esi + 0x618] */ 22883 eax = MEM32(ebp + (-0x2C)); /* 0x3612929E: mov eax, dword ptr [ebp - 0x2c] */ 22884 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361292A1: fstp dword ptr [ecx] */ 22885 ecx = MEM32(ebp + (-0x18)); /* 0x361292A3: mov ecx, dword ptr [ebp - 0x18] */ 22886 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 22887 ecx = ecx + 1; /* 0x361292A6: inc ecx */ 22888 _flag_k = FK_INC; 22889 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 22890 eax = eax - 1; /* 0x361292A7: dec eax */ 22891 _flag_k = FK_DEC; 22892 MEM32(ebp + (-0x18)) = ecx; /* 0x361292A8: mov dword ptr [ebp - 0x18], ecx */ 22893 MEM32(ebp + (-0x2C)) = eax; /* 0x361292AB: mov dword ptr [ebp - 0x2c], eax */ 22894 goto L_361292C2; /* 0x361292AE: jmp 0x361292c2 */ 22895 L_361292B0: 22896 edx = MEM32(esi + 0x2C); /* 0x361292B0: mov edx, dword ptr [esi + 0x2c] */ 22897 MEM8(edx + edi + 0x24) = (uint8_t)(0); /* 0x361292B3: mov byte ptr [edx + edi + 0x24], 0 */ 22898 goto L_361292C2; /* 0x361292B8: jmp 0x361292c2 */ 22899 L_361292BA: 22900 eax = MEM32(esi + 0x2C); /* 0x361292BA: mov eax, dword ptr [esi + 0x2c] */ 22901 MEM8(eax + edi + 0x24) = (uint8_t)(0); /* 0x361292BD: mov byte ptr [eax + edi + 0x24], 0 */ 22902 L_361292C2: 22903 ecx = MEM32(ebp + (-0x48)); /* 0x361292C2: mov ecx, dword ptr [ebp - 0x48] */ 22904 edx = MEM32(ebp + (-0x8)); /* 0x361292C5: mov edx, dword ptr [ebp - 8] */ 22905 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 22906 ecx = ecx + 1; /* 0x361292C8: inc ecx */ 22907 _flag_k = FK_INC; 22908 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 22909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22910 edx = edx + 4; /* 0x361292C9: add edx, 4 */ 22911 _flag_k = FK_ADD; 22912 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u); 22913 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22914 edi = edi + 0x28u; /* 0x361292CC: add edi, 0x28 */ 22915 _flag_k = FK_ADD; 22916 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 22917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22918 ebx = ebx + 0xCu; /* 0x361292CF: add ebx, 0xc */ 22919 _flag_k = FK_ADD; 22920 /* cmp edi, 0x500u */ /* 0x361292D2: cmp edi, 0x500 */ 22921 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x500u); 22922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22923 _flag_k = FK_CMP; 22924 MEM32(ebp + (-0x48)) = ecx; /* 0x361292D8: mov dword ptr [ebp - 0x48], ecx */ 22925 MEM32(ebp + (-0x8)) = edx; /* 0x361292DB: mov dword ptr [ebp - 8], edx */ 22926 RECOMP_BACKEDGE(); 22927 if (CMP_L(_flag_a, _flag_b)) goto L_3612907A; /* 0x361292DE: jl 0x3612907a */ 22928 L_361292E4: 22929 SET_LO8(eax, MEM8(esi + 0x5B0)); /* 0x361292E4: mov al, byte ptr [esi + 0x5b0] */ 22930 /* test LO8(eax), LO8(eax) */ /* 0x361292EA: test al, al */ 22931 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22932 _cf = 0; 22933 _flag_k = FK_NARROW(FK_TEST, 24); 22934 if (TEST_Z(_flag_a, _flag_b)) goto L_361292F9; /* 0x361292EC: je 0x361292f9 */ 22935 L_361292EE: 22936 eax = MEM32(ebp + (-0x18)); /* 0x361292EE: mov eax, dword ptr [ebp - 0x18] */ 22937 /* test eax, eax */ /* 0x361292F1: test eax, eax */ 22938 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22939 _cf = 0; 22940 _flag_k = FK_TEST; 22941 if (TEST_NZ(_flag_a, _flag_b)) goto L_361292F9; /* 0x361292F3: jne 0x361292f9 */ 22942 L_361292F5: 22943 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361292F5: mov byte ptr [esi + 0x14], 1 */ 22944 L_361292F9: 22945 ecx = ebp + (-0x60); /* 0x361292F9: lea ecx, [ebp - 0x60] */ 22946 PUSH32(esp, ecx); /* 0x361292FC: push ecx */ 22947 ecx = MEM32(esi + 0x20); /* 0x361292FD: mov ecx, dword ptr [esi + 0x20] */ 22948 RECOMP_ICALL(0x36133E80u); /* 0x36129300: call 0x36133e80 */ /* not lifted */ 22949 RECOMP_FLAGS_IN(); 22950 ecx = MEM32(esi + 0x28); /* 0x36129305: mov ecx, dword ptr [esi + 0x28] */ 22951 edi = MEM32(eax); /* 0x36129308: mov edi, dword ptr [eax] */ 22952 edx = ecx + 0x78; /* 0x3612930A: lea edx, [ecx + 0x78] */ 22953 MEM32(edx) = edi; /* 0x3612930D: mov dword ptr [edx], edi */ 22954 edi = MEM32(eax + 0x4); /* 0x3612930F: mov edi, dword ptr [eax + 4] */ 22955 MEM32(edx + 0x4) = edi; /* 0x36129312: mov dword ptr [edx + 4], edi */ 22956 eax = MEM32(eax + 0x8); /* 0x36129315: mov eax, dword ptr [eax + 8] */ 22957 PUSH32(esp, 1); /* 0x36129318: push 1 */ 22958 MEM32(edx + 0x8) = eax; /* 0x3612931A: mov dword ptr [edx + 8], eax */ 22959 edx = MEM32(ecx); /* 0x3612931D: mov edx, dword ptr [ecx] */ 22960 PUSH32(esp, 1); /* 0x3612931F: push 1 */ 22961 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36129321: call dword ptr [edx + 0x2c] */ 22962 RECOMP_FLAGS_IN(); 22963 ecx = MEM32(esi + 0x28); /* 0x36129324: mov ecx, dword ptr [esi + 0x28] */ 22964 eax = ecx + 0x84; /* 0x36129327: lea eax, [ecx + 0x84] */ 22965 MEM32(ebp + (-0x64)) = 0; /* 0x3612932D: mov dword ptr [ebp - 0x64], 0 */ 22966 edx = MEM32(ebp + (-0x64)); /* 0x36129334: mov edx, dword ptr [ebp - 0x64] */ 22967 MEM32(eax) = edx; /* 0x36129337: mov dword ptr [eax], edx */ 22968 MEM32(ebp + (-0x60)) = 0; /* 0x36129339: mov dword ptr [ebp - 0x60], 0 */ 22969 edx = MEM32(ebp + (-0x60)); /* 0x36129340: mov edx, dword ptr [ebp - 0x60] */ 22970 MEM32(eax + 0x4) = edx; /* 0x36129343: mov dword ptr [eax + 4], edx */ 22971 MEM32(ebp + (-0x5C)) = 0; /* 0x36129346: mov dword ptr [ebp - 0x5c], 0 */ 22972 edx = MEM32(ebp + (-0x5C)); /* 0x3612934D: mov edx, dword ptr [ebp - 0x5c] */ 22973 MEM32(eax + 0x8) = edx; /* 0x36129350: mov dword ptr [eax + 8], edx */ 22974 MEM32(ebp + (-0x58)) = 0x3F800000u; /* 0x36129353: mov dword ptr [ebp - 0x58], 0x3f800000 */ 22975 edx = MEM32(ebp + (-0x58)); /* 0x3612935A: mov edx, dword ptr [ebp - 0x58] */ 22976 PUSH32(esp, 1); /* 0x3612935D: push 1 */ 22977 MEM32(eax + 0xC) = edx; /* 0x3612935F: mov dword ptr [eax + 0xc], edx */ 22978 eax = MEM32(ecx); /* 0x36129362: mov eax, dword ptr [ecx] */ 22979 PUSH32(esp, 2); /* 0x36129364: push 2 */ 22980 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36129366: call dword ptr [eax + 0x2c] */ 22981 RECOMP_FLAGS_IN(); 22982 ecx = MEM32(esi + 0x20); /* 0x36129369: mov ecx, dword ptr [esi + 0x20] */ 22983 SET_LO8(ebx, MEM8(ecx + 0x108)); /* 0x3612936C: mov bl, byte ptr [ecx + 0x108] */ 22984 ecx = MEM32(esi + 0x28); /* 0x36129372: mov ecx, dword ptr [esi + 0x28] */ 22985 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22986 edx = 0; /* 0x36129375: xor edx, edx */ 22987 _cf = 0; 22988 _flag_k = FK_TEST; 22989 /* test LO8(ebx), LO8(ebx) */ /* 0x36129377: test bl, bl */ 22990 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22991 _cf = 0; 22992 _flag_k = FK_NARROW(FK_TEST, 24); 22993 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x36129379: sete dl */ 22994 PUSH32(esp, edx); /* 0x3612937C: push edx */ 22995 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x3612937D: call dword ptr [0x3616f620] */ 22996 RECOMP_FLAGS_IN(); 22997 edi = POP32_VAL(esp); /* 0x36129383: pop edi */ 22998 ebx = POP32_VAL(esp); /* 0x36129384: pop ebx */ 22999 esi = POP32_VAL(esp); /* 0x36129385: pop esi */ 23000 esp = ebp; /* 0x36129386: mov esp, ebp */ 23001 ebp = POP32_VAL(esp); /* 0x36129388: pop ebp */ 23002 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36129389: ret */ 23003 RECOMP_REGS_OUT(); 23004 } 23005 23006 void sub_361292F5(void) { 23007 int _fpu_cmp = 0; 23008 uint32_t _cf = 0; 23009 int _df = 1; 23010 uint32_t _flag_k = FK_NONE; 23011 uint32_t _flag_a = 0, _flag_b = 0; 23012 uint32_t _itail_tgt = 0; 23013 RECOMP_REGS_LOCALS 23014 RECOMP_ENTER(0x361292F5u); 23015 23016 L_361292F5: 23017 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361292F5: mov byte ptr [esi + 0x14], 1 */ 23018 ecx = ebp + (-0x60); /* 0x361292F9: lea ecx, [ebp - 0x60] */ 23019 PUSH32(esp, ecx); /* 0x361292FC: push ecx */ 23020 ecx = MEM32(esi + 0x20); /* 0x361292FD: mov ecx, dword ptr [esi + 0x20] */ 23021 RECOMP_ICALL(0x36133E80u); /* 0x36129300: call 0x36133e80 */ /* not lifted */ 23022 RECOMP_FLAGS_IN(); 23023 ecx = MEM32(esi + 0x28); /* 0x36129305: mov ecx, dword ptr [esi + 0x28] */ 23024 edi = MEM32(eax); /* 0x36129308: mov edi, dword ptr [eax] */ 23025 edx = ecx + 0x78; /* 0x3612930A: lea edx, [ecx + 0x78] */ 23026 MEM32(edx) = edi; /* 0x3612930D: mov dword ptr [edx], edi */ 23027 edi = MEM32(eax + 0x4); /* 0x3612930F: mov edi, dword ptr [eax + 4] */ 23028 MEM32(edx + 0x4) = edi; /* 0x36129312: mov dword ptr [edx + 4], edi */ 23029 eax = MEM32(eax + 0x8); /* 0x36129315: mov eax, dword ptr [eax + 8] */ 23030 PUSH32(esp, 1); /* 0x36129318: push 1 */ 23031 MEM32(edx + 0x8) = eax; /* 0x3612931A: mov dword ptr [edx + 8], eax */ 23032 edx = MEM32(ecx); /* 0x3612931D: mov edx, dword ptr [ecx] */ 23033 PUSH32(esp, 1); /* 0x3612931F: push 1 */ 23034 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36129321: call dword ptr [edx + 0x2c] */ 23035 RECOMP_FLAGS_IN(); 23036 ecx = MEM32(esi + 0x28); /* 0x36129324: mov ecx, dword ptr [esi + 0x28] */ 23037 eax = ecx + 0x84; /* 0x36129327: lea eax, [ecx + 0x84] */ 23038 MEM32(ebp + (-0x64)) = 0; /* 0x3612932D: mov dword ptr [ebp - 0x64], 0 */ 23039 edx = MEM32(ebp + (-0x64)); /* 0x36129334: mov edx, dword ptr [ebp - 0x64] */ 23040 MEM32(eax) = edx; /* 0x36129337: mov dword ptr [eax], edx */ 23041 MEM32(ebp + (-0x60)) = 0; /* 0x36129339: mov dword ptr [ebp - 0x60], 0 */ 23042 edx = MEM32(ebp + (-0x60)); /* 0x36129340: mov edx, dword ptr [ebp - 0x60] */ 23043 MEM32(eax + 0x4) = edx; /* 0x36129343: mov dword ptr [eax + 4], edx */ 23044 MEM32(ebp + (-0x5C)) = 0; /* 0x36129346: mov dword ptr [ebp - 0x5c], 0 */ 23045 edx = MEM32(ebp + (-0x5C)); /* 0x3612934D: mov edx, dword ptr [ebp - 0x5c] */ 23046 MEM32(eax + 0x8) = edx; /* 0x36129350: mov dword ptr [eax + 8], edx */ 23047 MEM32(ebp + (-0x58)) = 0x3F800000u; /* 0x36129353: mov dword ptr [ebp - 0x58], 0x3f800000 */ 23048 edx = MEM32(ebp + (-0x58)); /* 0x3612935A: mov edx, dword ptr [ebp - 0x58] */ 23049 PUSH32(esp, 1); /* 0x3612935D: push 1 */ 23050 MEM32(eax + 0xC) = edx; /* 0x3612935F: mov dword ptr [eax + 0xc], edx */ 23051 eax = MEM32(ecx); /* 0x36129362: mov eax, dword ptr [ecx] */ 23052 PUSH32(esp, 2); /* 0x36129364: push 2 */ 23053 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36129366: call dword ptr [eax + 0x2c] */ 23054 RECOMP_FLAGS_IN(); 23055 ecx = MEM32(esi + 0x20); /* 0x36129369: mov ecx, dword ptr [esi + 0x20] */ 23056 SET_LO8(ebx, MEM8(ecx + 0x108)); /* 0x3612936C: mov bl, byte ptr [ecx + 0x108] */ 23057 ecx = MEM32(esi + 0x28); /* 0x36129372: mov ecx, dword ptr [esi + 0x28] */ 23058 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23059 edx = 0; /* 0x36129375: xor edx, edx */ 23060 _cf = 0; 23061 _flag_k = FK_TEST; 23062 /* test LO8(ebx), LO8(ebx) */ /* 0x36129377: test bl, bl */ 23063 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 23064 _cf = 0; 23065 _flag_k = FK_NARROW(FK_TEST, 24); 23066 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x36129379: sete dl */ 23067 PUSH32(esp, edx); /* 0x3612937C: push edx */ 23068 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x3612937D: call dword ptr [0x3616f620] */ 23069 RECOMP_FLAGS_IN(); 23070 edi = POP32_VAL(esp); /* 0x36129383: pop edi */ 23071 ebx = POP32_VAL(esp); /* 0x36129384: pop ebx */ 23072 esi = POP32_VAL(esp); /* 0x36129385: pop esi */ 23073 esp = ebp; /* 0x36129386: mov esp, ebp */ 23074 ebp = POP32_VAL(esp); /* 0x36129388: pop ebp */ 23075 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36129389: ret */ 23076 RECOMP_REGS_OUT(); 23077 } 23078 23079 void sub_361292F9(void) { 23080 int _fpu_cmp = 0; 23081 uint32_t _cf = 0; 23082 int _df = 1; 23083 uint32_t _flag_k = FK_NONE; 23084 uint32_t _flag_a = 0, _flag_b = 0; 23085 uint32_t _itail_tgt = 0; 23086 RECOMP_REGS_LOCALS 23087 RECOMP_ENTER(0x361292F9u); 23088 23089 L_361292F9: 23090 ecx = ebp + (-0x60); /* 0x361292F9: lea ecx, [ebp - 0x60] */ 23091 PUSH32(esp, ecx); /* 0x361292FC: push ecx */ 23092 ecx = MEM32(esi + 0x20); /* 0x361292FD: mov ecx, dword ptr [esi + 0x20] */ 23093 RECOMP_ICALL(0x36133E80u); /* 0x36129300: call 0x36133e80 */ /* not lifted */ 23094 RECOMP_FLAGS_IN(); 23095 ecx = MEM32(esi + 0x28); /* 0x36129305: mov ecx, dword ptr [esi + 0x28] */ 23096 edi = MEM32(eax); /* 0x36129308: mov edi, dword ptr [eax] */ 23097 edx = ecx + 0x78; /* 0x3612930A: lea edx, [ecx + 0x78] */ 23098 MEM32(edx) = edi; /* 0x3612930D: mov dword ptr [edx], edi */ 23099 edi = MEM32(eax + 0x4); /* 0x3612930F: mov edi, dword ptr [eax + 4] */ 23100 MEM32(edx + 0x4) = edi; /* 0x36129312: mov dword ptr [edx + 4], edi */ 23101 eax = MEM32(eax + 0x8); /* 0x36129315: mov eax, dword ptr [eax + 8] */ 23102 PUSH32(esp, 1); /* 0x36129318: push 1 */ 23103 MEM32(edx + 0x8) = eax; /* 0x3612931A: mov dword ptr [edx + 8], eax */ 23104 edx = MEM32(ecx); /* 0x3612931D: mov edx, dword ptr [ecx] */ 23105 PUSH32(esp, 1); /* 0x3612931F: push 1 */ 23106 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36129321: call dword ptr [edx + 0x2c] */ 23107 RECOMP_FLAGS_IN(); 23108 ecx = MEM32(esi + 0x28); /* 0x36129324: mov ecx, dword ptr [esi + 0x28] */ 23109 eax = ecx + 0x84; /* 0x36129327: lea eax, [ecx + 0x84] */ 23110 MEM32(ebp + (-0x64)) = 0; /* 0x3612932D: mov dword ptr [ebp - 0x64], 0 */ 23111 edx = MEM32(ebp + (-0x64)); /* 0x36129334: mov edx, dword ptr [ebp - 0x64] */ 23112 MEM32(eax) = edx; /* 0x36129337: mov dword ptr [eax], edx */ 23113 MEM32(ebp + (-0x60)) = 0; /* 0x36129339: mov dword ptr [ebp - 0x60], 0 */ 23114 edx = MEM32(ebp + (-0x60)); /* 0x36129340: mov edx, dword ptr [ebp - 0x60] */ 23115 MEM32(eax + 0x4) = edx; /* 0x36129343: mov dword ptr [eax + 4], edx */ 23116 MEM32(ebp + (-0x5C)) = 0; /* 0x36129346: mov dword ptr [ebp - 0x5c], 0 */ 23117 edx = MEM32(ebp + (-0x5C)); /* 0x3612934D: mov edx, dword ptr [ebp - 0x5c] */ 23118 MEM32(eax + 0x8) = edx; /* 0x36129350: mov dword ptr [eax + 8], edx */ 23119 MEM32(ebp + (-0x58)) = 0x3F800000u; /* 0x36129353: mov dword ptr [ebp - 0x58], 0x3f800000 */ 23120 edx = MEM32(ebp + (-0x58)); /* 0x3612935A: mov edx, dword ptr [ebp - 0x58] */ 23121 PUSH32(esp, 1); /* 0x3612935D: push 1 */ 23122 MEM32(eax + 0xC) = edx; /* 0x3612935F: mov dword ptr [eax + 0xc], edx */ 23123 eax = MEM32(ecx); /* 0x36129362: mov eax, dword ptr [ecx] */ 23124 PUSH32(esp, 2); /* 0x36129364: push 2 */ 23125 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36129366: call dword ptr [eax + 0x2c] */ 23126 RECOMP_FLAGS_IN(); 23127 ecx = MEM32(esi + 0x20); /* 0x36129369: mov ecx, dword ptr [esi + 0x20] */ 23128 SET_LO8(ebx, MEM8(ecx + 0x108)); /* 0x3612936C: mov bl, byte ptr [ecx + 0x108] */ 23129 ecx = MEM32(esi + 0x28); /* 0x36129372: mov ecx, dword ptr [esi + 0x28] */ 23130 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23131 edx = 0; /* 0x36129375: xor edx, edx */ 23132 _cf = 0; 23133 _flag_k = FK_TEST; 23134 /* test LO8(ebx), LO8(ebx) */ /* 0x36129377: test bl, bl */ 23135 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 23136 _cf = 0; 23137 _flag_k = FK_NARROW(FK_TEST, 24); 23138 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x36129379: sete dl */ 23139 PUSH32(esp, edx); /* 0x3612937C: push edx */ 23140 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x3612937D: call dword ptr [0x3616f620] */ 23141 RECOMP_FLAGS_IN(); 23142 edi = POP32_VAL(esp); /* 0x36129383: pop edi */ 23143 ebx = POP32_VAL(esp); /* 0x36129384: pop ebx */ 23144 esi = POP32_VAL(esp); /* 0x36129385: pop esi */ 23145 esp = ebp; /* 0x36129386: mov esp, ebp */ 23146 ebp = POP32_VAL(esp); /* 0x36129388: pop ebp */ 23147 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36129389: ret */ 23148 RECOMP_REGS_OUT(); 23149 } 23150 23151 void sub_36129385(void) { 23152 int _fpu_cmp = 0; 23153 uint32_t _cf = 0; 23154 int _df = 1; 23155 uint32_t _flag_k = FK_NONE; 23156 uint32_t _flag_a = 0, _flag_b = 0; 23157 uint32_t _itail_tgt = 0; 23158 RECOMP_REGS_LOCALS 23159 RECOMP_ENTER(0x36129385u); 23160 23161 L_36129385: 23162 esi = POP32_VAL(esp); /* 0x36129385: pop esi */ 23163 esp = ebp; /* 0x36129386: mov esp, ebp */ 23164 ebp = POP32_VAL(esp); /* 0x36129388: pop ebp */ 23165 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36129389: ret */ 23166 RECOMP_REGS_OUT(); 23167 } 23168 23169 void sub_361293A0(void) { 23170 int _fpu_cmp = 0; 23171 uint32_t _cf = 0; 23172 int _df = 1; 23173 uint32_t _flag_k = FK_NONE; 23174 uint32_t _flag_a = 0, _flag_b = 0; 23175 uint32_t _itail_tgt = 0; 23176 RECOMP_REGS_LOCALS 23177 RECOMP_ENTER(0x361293A0u); 23178 23179 L_361293A0: 23180 MEM8(ecx + 0x5B0) = (uint8_t)(1); /* 0x361293A0: mov byte ptr [ecx + 0x5b0], 1 */ 23181 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361293A7: ret */ 23182 RECOMP_REGS_OUT(); 23183 } 23184 23185 void sub_361293B0(void) { 23186 int _fpu_cmp = 0; 23187 uint32_t _cf = 0; 23188 int _df = 1; 23189 uint32_t _flag_k = FK_NONE; 23190 uint32_t _flag_a = 0, _flag_b = 0; 23191 uint32_t _itail_tgt = 0; 23192 RECOMP_REGS_LOCALS 23193 RECOMP_ENTER(0x361293B0u); 23194 23195 L_361293B0: 23196 PUSH32(esp, ebp); /* 0x361293B0: push ebp */ 23197 ebp = esp; /* 0x361293B1: mov ebp, esp */ 23198 eax = MEM32(ebp + 0x8); /* 0x361293B3: mov eax, dword ptr [ebp + 8] */ 23199 edx = MEM32(ebp + 0xC); /* 0x361293B6: mov edx, dword ptr [ebp + 0xc] */ 23200 MEM32(ecx + 0x5E8) = eax; /* 0x361293B9: mov dword ptr [ecx + 0x5e8], eax */ 23201 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 23202 SET_LO8(eax, 0); /* 0x361293BF: xor al, al */ 23203 _cf = 0; 23204 _flag_k = FK_NARROW(FK_TEST, 24); 23205 MEM8(ecx + 0x5E4) = (uint8_t)(LO8(eax)); /* 0x361293C1: mov byte ptr [ecx + 0x5e4], al */ 23206 MEM32(ecx + 0x5EC) = edx; /* 0x361293C7: mov dword ptr [ecx + 0x5ec], edx */ 23207 edx = MEM32(ebp + 0x10); /* 0x361293CD: mov edx, dword ptr [ebp + 0x10] */ 23208 MEM8(ecx + 0x5E4) = (uint8_t)(LO8(eax)); /* 0x361293D0: mov byte ptr [ecx + 0x5e4], al */ 23209 MEM32(ecx + 0x5F0) = edx; /* 0x361293D6: mov dword ptr [ecx + 0x5f0], edx */ 23210 edx = MEM32(ebp + 0x14); /* 0x361293DC: mov edx, dword ptr [ebp + 0x14] */ 23211 MEM8(ecx + 0x5E4) = (uint8_t)(LO8(eax)); /* 0x361293DF: mov byte ptr [ecx + 0x5e4], al */ 23212 MEM32(ecx + 0x5F4) = edx; /* 0x361293E5: mov dword ptr [ecx + 0x5f4], edx */ 23213 MEM8(ecx + 0x5E4) = (uint8_t)(LO8(eax)); /* 0x361293EB: mov byte ptr [ecx + 0x5e4], al */ 23214 ebp = POP32_VAL(esp); /* 0x361293F1: pop ebp */ 23215 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x361293F2: ret 0x10 */ 23216 RECOMP_REGS_OUT(); 23217 } 23218 23219 void sub_36129400(void) { 23220 int _fpu_cmp = 0; 23221 uint32_t _cf = 0; 23222 int _df = 1; 23223 uint32_t _flag_k = FK_NONE; 23224 uint32_t _flag_a = 0, _flag_b = 0; 23225 uint32_t _itail_tgt = 0; 23226 RECOMP_REGS_LOCALS 23227 RECOMP_ENTER(0x36129400u); 23228 23229 L_36129400: 23230 PUSH32(esp, ebp); /* 0x36129400: push ebp */ 23231 ebp = esp; /* 0x36129401: mov ebp, esp */ 23232 eax = MEM32(ebp + 0x8); /* 0x36129403: mov eax, dword ptr [ebp + 8] */ 23233 edx = MEM32(ebp + 0xC); /* 0x36129406: mov edx, dword ptr [ebp + 0xc] */ 23234 MEM32(ecx + 0x5F8) = eax; /* 0x36129409: mov dword ptr [ecx + 0x5f8], eax */ 23235 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 23236 SET_LO8(eax, 0); /* 0x3612940F: xor al, al */ 23237 _cf = 0; 23238 _flag_k = FK_NARROW(FK_TEST, 24); 23239 MEM8(ecx + 0x5E4) = (uint8_t)(LO8(eax)); /* 0x36129411: mov byte ptr [ecx + 0x5e4], al */ 23240 MEM32(ecx + 0x5FC) = edx; /* 0x36129417: mov dword ptr [ecx + 0x5fc], edx */ 23241 edx = MEM32(ebp + 0x10); /* 0x3612941D: mov edx, dword ptr [ebp + 0x10] */ 23242 MEM8(ecx + 0x5E4) = (uint8_t)(LO8(eax)); /* 0x36129420: mov byte ptr [ecx + 0x5e4], al */ 23243 MEM32(ecx + 0x600) = edx; /* 0x36129426: mov dword ptr [ecx + 0x600], edx */ 23244 edx = MEM32(ebp + 0x14); /* 0x3612942C: mov edx, dword ptr [ebp + 0x14] */ 23245 MEM8(ecx + 0x5E4) = (uint8_t)(LO8(eax)); /* 0x3612942F: mov byte ptr [ecx + 0x5e4], al */ 23246 MEM32(ecx + 0x604) = edx; /* 0x36129435: mov dword ptr [ecx + 0x604], edx */ 23247 MEM8(ecx + 0x5E4) = (uint8_t)(LO8(eax)); /* 0x3612943B: mov byte ptr [ecx + 0x5e4], al */ 23248 ebp = POP32_VAL(esp); /* 0x36129441: pop ebp */ 23249 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36129442: ret 0x10 */ 23250 RECOMP_REGS_OUT(); 23251 } 23252 23253 void sub_36129450(void) { 23254 int _fpu_cmp = 0; 23255 uint32_t _cf = 0; 23256 int _df = 1; 23257 uint32_t _flag_k = FK_NONE; 23258 uint32_t _flag_a = 0, _flag_b = 0; 23259 uint32_t _itail_tgt = 0; 23260 RECOMP_REGS_LOCALS 23261 RECOMP_ENTER(0x36129450u); 23262 23263 L_36129450: 23264 PUSH32(esp, esi); /* 0x36129450: push esi */ 23265 esi = ecx; /* 0x36129451: mov esi, ecx */ 23266 eax = MEM32(esi + 0x4); /* 0x36129453: mov eax, dword ptr [esi + 4] */ 23267 PUSH32(esp, edi); /* 0x36129456: push edi */ 23268 PUSH32(esp, eax); /* 0x36129457: push eax */ 23269 RECOMP_ICALL(0x360F7B00u); /* 0x36129458: call 0x360f7b00 */ /* not lifted */ 23270 RECOMP_FLAGS_IN(); 23271 ecx = eax; /* 0x3612945D: mov ecx, eax */ 23272 RECOMP_ICALL(0x360FBFF0u); /* 0x3612945F: call 0x360fbff0 */ /* not lifted */ 23273 RECOMP_FLAGS_IN(); 23274 ecx = eax; /* 0x36129464: mov ecx, eax */ 23275 RECOMP_ICALL(0x361371A0u); /* 0x36129466: call 0x361371a0 */ /* not lifted */ 23276 RECOMP_FLAGS_IN(); 23277 edi = eax; /* 0x3612946B: mov edi, eax */ 23278 PUSH32(esp, 0); /* 0x3612946D: push 0 */ 23279 ecx = edi; /* 0x3612946F: mov ecx, edi */ 23280 RECOMP_ICALL(0x36136FE0u); /* 0x36129471: call 0x36136fe0 */ /* not lifted */ 23281 RECOMP_FLAGS_IN(); 23282 PUSH32(esp, 8); /* 0x36129476: push 8 */ 23283 ecx = edi; /* 0x36129478: mov ecx, edi */ 23284 MEM32(esi + 0x5BC) = eax; /* 0x3612947A: mov dword ptr [esi + 0x5bc], eax */ 23285 RECOMP_ICALL(0x36137010u); /* 0x36129480: call 0x36137010 */ /* not lifted */ 23286 RECOMP_FLAGS_IN(); 23287 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36129485: fstp dword ptr [esi + 0x10] */ 23288 PUSH32(esp, 9); /* 0x36129488: push 9 */ 23289 ecx = edi; /* 0x3612948A: mov ecx, edi */ 23290 RECOMP_ICALL(0x36136FE0u); /* 0x3612948C: call 0x36136fe0 */ /* not lifted */ 23291 RECOMP_FLAGS_IN(); 23292 PUSH32(esp, 0xAu); /* 0x36129491: push 0xa */ 23293 ecx = edi; /* 0x36129493: mov ecx, edi */ 23294 MEM32(esi + 0x5C0) = eax; /* 0x36129495: mov dword ptr [esi + 0x5c0], eax */ 23295 RECOMP_ICALL(0x36136FE0u); /* 0x3612949B: call 0x36136fe0 */ /* not lifted */ 23296 RECOMP_FLAGS_IN(); 23297 PUSH32(esp, 0xBu); /* 0x361294A0: push 0xb */ 23298 ecx = edi; /* 0x361294A2: mov ecx, edi */ 23299 MEM32(esi + 0x5C4) = eax; /* 0x361294A4: mov dword ptr [esi + 0x5c4], eax */ 23300 RECOMP_ICALL(0x36137010u); /* 0x361294AA: call 0x36137010 */ /* not lifted */ 23301 RECOMP_FLAGS_IN(); 23302 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x5C8) = _v; } /* 0x361294AF: fstp dword ptr [esi + 0x5c8] */ 23303 PUSH32(esp, 0xCu); /* 0x361294B5: push 0xc */ 23304 ecx = edi; /* 0x361294B7: mov ecx, edi */ 23305 RECOMP_ICALL(0x36137010u); /* 0x361294B9: call 0x36137010 */ /* not lifted */ 23306 RECOMP_FLAGS_IN(); 23307 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x5CC) = _v; } /* 0x361294BE: fstp dword ptr [esi + 0x5cc] */ 23308 PUSH32(esp, 0xDu); /* 0x361294C4: push 0xd */ 23309 ecx = edi; /* 0x361294C6: mov ecx, edi */ 23310 RECOMP_ICALL(0x36137010u); /* 0x361294C8: call 0x36137010 */ /* not lifted */ 23311 RECOMP_FLAGS_IN(); 23312 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x5D0) = _v; } /* 0x361294CD: fstp dword ptr [esi + 0x5d0] */ 23313 PUSH32(esp, 0xEu); /* 0x361294D3: push 0xe */ 23314 ecx = edi; /* 0x361294D5: mov ecx, edi */ 23315 RECOMP_ICALL(0x36137010u); /* 0x361294D7: call 0x36137010 */ /* not lifted */ 23316 RECOMP_FLAGS_IN(); 23317 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x5D4) = _v; } /* 0x361294DC: fstp dword ptr [esi + 0x5d4] */ 23318 PUSH32(esp, 0xFu); /* 0x361294E2: push 0xf */ 23319 ecx = edi; /* 0x361294E4: mov ecx, edi */ 23320 RECOMP_ICALL(0x36137010u); /* 0x361294E6: call 0x36137010 */ /* not lifted */ 23321 RECOMP_FLAGS_IN(); 23322 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x5D8) = _v; } /* 0x361294EB: fstp dword ptr [esi + 0x5d8] */ 23323 PUSH32(esp, 0x10u); /* 0x361294F1: push 0x10 */ 23324 ecx = edi; /* 0x361294F3: mov ecx, edi */ 23325 RECOMP_ICALL(0x36137010u); /* 0x361294F5: call 0x36137010 */ /* not lifted */ 23326 RECOMP_FLAGS_IN(); 23327 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x5DC) = _v; } /* 0x361294FA: fstp dword ptr [esi + 0x5dc] */ 23328 PUSH32(esp, 0x11u); /* 0x36129500: push 0x11 */ 23329 ecx = edi; /* 0x36129502: mov ecx, edi */ 23330 RECOMP_ICALL(0x36137010u); /* 0x36129504: call 0x36137010 */ /* not lifted */ 23331 RECOMP_FLAGS_IN(); 23332 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x5E0) = _v; } /* 0x36129509: fstp dword ptr [esi + 0x5e0] */ 23333 PUSH32(esp, 0x12u); /* 0x3612950F: push 0x12 */ 23334 PUSH32(esp, edi); /* 0x36129511: push edi */ 23335 ecx = esi + 0x5E4; /* 0x36129512: lea ecx, [esi + 0x5e4] */ 23336 RECOMP_ICALL(0x36137CF0u); /* 0x36129518: call 0x36137cf0 */ /* not lifted */ 23337 RECOMP_FLAGS_IN(); 23338 PUSH32(esp, 0x1Au); /* 0x3612951D: push 0x1a */ 23339 ecx = edi; /* 0x3612951F: mov ecx, edi */ 23340 RECOMP_ICALL(0x36137010u); /* 0x36129521: call 0x36137010 */ /* not lifted */ 23341 RECOMP_FLAGS_IN(); 23342 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36129526: fstp dword ptr [esi + 0x10] */ 23343 PUSH32(esp, 0x1Bu); /* 0x36129529: push 0x1b */ 23344 ecx = edi; /* 0x3612952B: mov ecx, edi */ 23345 RECOMP_ICALL(0x36137010u); /* 0x3612952D: call 0x36137010 */ /* not lifted */ 23346 RECOMP_FLAGS_IN(); 23347 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x61C) = _v; } /* 0x36129532: fstp dword ptr [esi + 0x61c] */ 23348 PUSH32(esp, 0x1Cu); /* 0x36129538: push 0x1c */ 23349 ecx = edi; /* 0x3612953A: mov ecx, edi */ 23350 RECOMP_ICALL(0x36137010u); /* 0x3612953C: call 0x36137010 */ /* not lifted */ 23351 RECOMP_FLAGS_IN(); 23352 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x620) = _v; } /* 0x36129541: fstp dword ptr [esi + 0x620] */ 23353 PUSH32(esp, 0x1Du); /* 0x36129547: push 0x1d */ 23354 ecx = edi; /* 0x36129549: mov ecx, edi */ 23355 RECOMP_ICALL(0x36137010u); /* 0x3612954B: call 0x36137010 */ /* not lifted */ 23356 RECOMP_FLAGS_IN(); 23357 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x624) = _v; } /* 0x36129550: fstp dword ptr [esi + 0x624] */ 23358 PUSH32(esp, 0x1Eu); /* 0x36129556: push 0x1e */ 23359 ecx = edi; /* 0x36129558: mov ecx, edi */ 23360 RECOMP_ICALL(0x36136FE0u); /* 0x3612955A: call 0x36136fe0 */ /* not lifted */ 23361 RECOMP_FLAGS_IN(); 23362 MEM32(esi + 0x628) = eax; /* 0x3612955F: mov dword ptr [esi + 0x628], eax */ 23363 PUSH32(esp, 0x1Fu); /* 0x36129565: push 0x1f */ 23364 ecx = edi; /* 0x36129567: mov ecx, edi */ 23365 RECOMP_ICALL(0x36136FE0u); /* 0x36129569: call 0x36136fe0 */ /* not lifted */ 23366 RECOMP_FLAGS_IN(); 23367 edi = POP32_VAL(esp); /* 0x3612956E: pop edi */ 23368 MEM32(esi + 0x62C) = eax; /* 0x3612956F: mov dword ptr [esi + 0x62c], eax */ 23369 esi = POP32_VAL(esp); /* 0x36129575: pop esi */ 23370 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36129576: ret */ 23371 RECOMP_REGS_OUT(); 23372 } 23373 23374 void sub_36129580(void) { 23375 int _fpu_cmp = 0; 23376 uint32_t _cf = 0; 23377 int _df = 1; 23378 uint32_t _flag_k = FK_NONE; 23379 uint32_t _flag_a = 0, _flag_b = 0; 23380 uint32_t _itail_tgt = 0; 23381 RECOMP_REGS_LOCALS 23382 RECOMP_ENTER(0x36129580u); 23383 23384 L_36129580: 23385 PUSH32(esp, ebp); /* 0x36129580: push ebp */ 23386 ebp = esp; /* 0x36129581: mov ebp, esp */ 23387 PUSH32(esp, 0xFFFFFFFFu); /* 0x36129583: push -1 */ 23388 PUSH32(esp, 0x3616BBEBu); /* 0x36129585: push 0x3616bbeb */ 23389 eax = MEM32(FS_BASE + (0)); /* 0x3612958A: mov eax, dword ptr fs:[0] */ 23390 PUSH32(esp, eax); /* 0x36129590: push eax */ 23391 MEM32(FS_BASE + (0)) = esp; /* 0x36129591: mov dword ptr fs:[0], esp */ 23392 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 23393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23394 esp = esp - 0x14u; /* 0x36129598: sub esp, 0x14 */ 23395 _flag_k = FK_CMP; 23396 PUSH32(esp, ebx); /* 0x3612959B: push ebx */ 23397 PUSH32(esp, esi); /* 0x3612959C: push esi */ 23398 PUSH32(esp, edi); /* 0x3612959D: push edi */ 23399 PUSH32(esp, 0x210u); /* 0x3612959E: push 0x210 */ 23400 esi = ecx; /* 0x361295A3: mov esi, ecx */ 23401 RECOMP_ICALL(0x3615FD6Au); /* 0x361295A5: call 0x3615fd6a */ /* not lifted */ 23402 RECOMP_FLAGS_IN(); 23403 edi = eax; /* 0x361295AA: mov edi, eax */ 23404 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23406 esp = esp + 4; /* 0x361295AC: add esp, 4 */ 23407 _flag_k = FK_ADD; 23408 MEM32(ebp + (-0x10)) = edi; /* 0x361295AF: mov dword ptr [ebp - 0x10], edi */ 23409 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23410 ebx = 0; /* 0x361295B2: xor ebx, ebx */ 23411 _cf = 0; 23412 _flag_k = FK_TEST; 23413 /* cmp edi, ebx */ /* 0x361295B4: cmp edi, ebx */ 23414 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 23415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23416 _flag_k = FK_CMP; 23417 MEM32(ebp + (-0x4)) = ebx; /* 0x361295B6: mov dword ptr [ebp - 4], ebx */ 23418 if (CMP_EQ(_flag_a, _flag_b)) goto L_36129612; /* 0x361295B9: je 0x36129612 */ 23419 L_361295BB: 23420 eax = MEM32(esi + 0x5C0); /* 0x361295BB: mov eax, dword ptr [esi + 0x5c0] */ 23421 PUSH32(esp, 1); /* 0x361295C1: push 1 */ 23422 PUSH32(esp, ebx); /* 0x361295C3: push ebx */ 23423 PUSH32(esp, eax); /* 0x361295C4: push eax */ 23424 RECOMP_ICALL(0x360F7B00u); /* 0x361295C5: call 0x360f7b00 */ /* not lifted */ 23425 RECOMP_FLAGS_IN(); 23426 ecx = eax; /* 0x361295CA: mov ecx, eax */ 23427 RECOMP_ICALL(0x360FBE40u); /* 0x361295CC: call 0x360fbe40 */ /* not lifted */ 23428 RECOMP_FLAGS_IN(); 23429 PUSH32(esp, eax); /* 0x361295D1: push eax */ 23430 ecx = edi; /* 0x361295D2: mov ecx, edi */ 23431 RECOMP_ICALL(MEM32(0x3616F8C0)); /* 0x361295D4: call dword ptr [0x3616f8c0] */ 23432 RECOMP_FLAGS_IN(); 23433 MEM32(edi) = 0x3617783Cu; /* 0x361295DA: mov dword ptr [edi], 0x3617783c */ 23434 MEM32(edi + 0x8) = 0x3617782Cu; /* 0x361295E0: mov dword ptr [edi + 8], 0x3617782c */ 23435 MEM32(edi + 0x20) = 0x3617781Cu; /* 0x361295E7: mov dword ptr [edi + 0x20], 0x3617781c */ 23436 MEM32(edi + 0x38) = 0x3617780Cu; /* 0x361295EE: mov dword ptr [edi + 0x38], 0x3617780c */ 23437 MEM32(edi + 0x50) = 0x361777FCu; /* 0x361295F5: mov dword ptr [edi + 0x50], 0x361777fc */ 23438 MEM32(edi + 0x138) = 0x361777ECu; /* 0x361295FC: mov dword ptr [edi + 0x138], 0x361777ec */ 23439 MEM32(edi + 0x150) = 0x361777DCu; /* 0x36129606: mov dword ptr [edi + 0x150], 0x361777dc */ 23440 goto L_36129614; /* 0x36129610: jmp 0x36129614 */ 23441 L_36129612: 23442 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23443 edi = 0; /* 0x36129612: xor edi, edi */ 23444 _cf = 0; 23445 _flag_k = FK_TEST; 23446 L_36129614: 23447 ecx = MEM32(esi + 0x5C0); /* 0x36129614: mov ecx, dword ptr [esi + 0x5c0] */ 23448 PUSH32(esp, ecx); /* 0x3612961A: push ecx */ 23449 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3612961B: mov dword ptr [ebp - 4], 0xffffffff */ 23450 MEM32(esi + 0x28) = edi; /* 0x36129622: mov dword ptr [esi + 0x28], edi */ 23451 RECOMP_ICALL(0x360F7B00u); /* 0x36129625: call 0x360f7b00 */ /* not lifted */ 23452 RECOMP_FLAGS_IN(); 23453 ecx = eax; /* 0x3612962A: mov ecx, eax */ 23454 RECOMP_ICALL(0x360FBE60u); /* 0x3612962C: call 0x360fbe60 */ /* not lifted */ 23455 RECOMP_FLAGS_IN(); 23456 edx = MEM32(esi + 0x28); /* 0x36129631: mov edx, dword ptr [esi + 0x28] */ 23457 MEM32(edx + 0x1E0) = eax; /* 0x36129634: mov dword ptr [edx + 0x1e0], eax */ 23458 eax = MEM32(esi + 0x5C0); /* 0x3612963A: mov eax, dword ptr [esi + 0x5c0] */ 23459 PUSH32(esp, eax); /* 0x36129640: push eax */ 23460 RECOMP_ICALL(0x360F7B00u); /* 0x36129641: call 0x360f7b00 */ /* not lifted */ 23461 RECOMP_FLAGS_IN(); 23462 ecx = eax; /* 0x36129646: mov ecx, eax */ 23463 RECOMP_ICALL(0x360FBEA0u); /* 0x36129648: call 0x360fbea0 */ /* not lifted */ 23464 RECOMP_FLAGS_IN(); 23465 ecx = MEM32(esi + 0x28); /* 0x3612964D: mov ecx, dword ptr [esi + 0x28] */ 23466 MEM32(ecx + 0x1E4) = eax; /* 0x36129650: mov dword ptr [ecx + 0x1e4], eax */ 23467 ecx = MEM32(esi + 0x20); /* 0x36129656: mov ecx, dword ptr [esi + 0x20] */ 23468 RECOMP_ICALL(0x36134100u); /* 0x36129659: call 0x36134100 */ /* not lifted */ 23469 RECOMP_FLAGS_IN(); 23470 ecx = MEM32(esi + 0x20); /* 0x3612965E: mov ecx, dword ptr [esi + 0x20] */ 23471 edx = ebp + (-0x1C); /* 0x36129661: lea edx, [ebp - 0x1c] */ 23472 PUSH32(esp, edx); /* 0x36129664: push edx */ 23473 RECOMP_ICALL(0x36133E80u); /* 0x36129665: call 0x36133e80 */ /* not lifted */ 23474 RECOMP_FLAGS_IN(); 23475 ecx = MEM32(esi + 0x28); /* 0x3612966A: mov ecx, dword ptr [esi + 0x28] */ 23476 edi = MEM32(eax); /* 0x3612966D: mov edi, dword ptr [eax] */ 23477 edx = ecx + 0x78; /* 0x3612966F: lea edx, [ecx + 0x78] */ 23478 MEM32(edx) = edi; /* 0x36129672: mov dword ptr [edx], edi */ 23479 edi = MEM32(eax + 0x4); /* 0x36129674: mov edi, dword ptr [eax + 4] */ 23480 MEM32(edx + 0x4) = edi; /* 0x36129677: mov dword ptr [edx + 4], edi */ 23481 eax = MEM32(eax + 0x8); /* 0x3612967A: mov eax, dword ptr [eax + 8] */ 23482 PUSH32(esp, 1); /* 0x3612967D: push 1 */ 23483 MEM32(edx + 0x8) = eax; /* 0x3612967F: mov dword ptr [edx + 8], eax */ 23484 edx = MEM32(ecx); /* 0x36129682: mov edx, dword ptr [ecx] */ 23485 PUSH32(esp, 1); /* 0x36129684: push 1 */ 23486 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36129686: call dword ptr [edx + 0x2c] */ 23487 RECOMP_FLAGS_IN(); 23488 ecx = MEM32(esi + 0x28); /* 0x36129689: mov ecx, dword ptr [esi + 0x28] */ 23489 eax = ecx + 0x84; /* 0x3612968C: lea eax, [ecx + 0x84] */ 23490 MEM32(ebp + (-0x20)) = 0; /* 0x36129692: mov dword ptr [ebp - 0x20], 0 */ 23491 edx = MEM32(ebp + (-0x20)); /* 0x36129699: mov edx, dword ptr [ebp - 0x20] */ 23492 MEM32(eax) = edx; /* 0x3612969C: mov dword ptr [eax], edx */ 23493 MEM32(ebp + (-0x1C)) = 0; /* 0x3612969E: mov dword ptr [ebp - 0x1c], 0 */ 23494 edx = MEM32(ebp + (-0x1C)); /* 0x361296A5: mov edx, dword ptr [ebp - 0x1c] */ 23495 MEM32(eax + 0x4) = edx; /* 0x361296A8: mov dword ptr [eax + 4], edx */ 23496 MEM32(ebp + (-0x18)) = 0; /* 0x361296AB: mov dword ptr [ebp - 0x18], 0 */ 23497 edx = MEM32(ebp + (-0x18)); /* 0x361296B2: mov edx, dword ptr [ebp - 0x18] */ 23498 MEM32(eax + 0x8) = edx; /* 0x361296B5: mov dword ptr [eax + 8], edx */ 23499 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x361296B8: mov dword ptr [ebp - 0x14], 0x3f800000 */ 23500 edx = MEM32(ebp + (-0x14)); /* 0x361296BF: mov edx, dword ptr [ebp - 0x14] */ 23501 PUSH32(esp, 1); /* 0x361296C2: push 1 */ 23502 MEM32(eax + 0xC) = edx; /* 0x361296C4: mov dword ptr [eax + 0xc], edx */ 23503 eax = MEM32(ecx); /* 0x361296C7: mov eax, dword ptr [ecx] */ 23504 PUSH32(esp, 2); /* 0x361296C9: push 2 */ 23505 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x361296CB: call dword ptr [eax + 0x2c] */ 23506 RECOMP_FLAGS_IN(); 23507 ecx = MEM32(esi + 0x28); /* 0x361296CE: mov ecx, dword ptr [esi + 0x28] */ 23508 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x361296D1: call dword ptr [0x3616f5f8] */ 23509 RECOMP_FLAGS_IN(); 23510 ecx = MEM32(esi + 0x2C); /* 0x361296D7: mov ecx, dword ptr [esi + 0x2c] */ 23511 PUSH32(esp, 0x20u); /* 0x361296DA: push 0x20 */ 23512 PUSH32(esp, ecx); /* 0x361296DC: push ecx */ 23513 ecx = MEM32(esi + 0x28); /* 0x361296DD: mov ecx, dword ptr [esi + 0x28] */ 23514 RECOMP_ICALL(MEM32(0x3616F8BC)); /* 0x361296E0: call dword ptr [0x3616f8bc] */ 23515 RECOMP_FLAGS_IN(); 23516 eax = MEM32(esi + 0x5C4); /* 0x361296E6: mov eax, dword ptr [esi + 0x5c4] */ 23517 /* cmp eax, ebx */ /* 0x361296EC: cmp eax, ebx */ 23518 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 23519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23520 _flag_k = FK_CMP; 23521 MEM8(esi + 0x5B0) = (uint8_t)(LO8(ebx)); /* 0x361296EE: mov byte ptr [esi + 0x5b0], bl */ 23522 MEM32(esi + 0x5B4) = ebx; /* 0x361296F4: mov dword ptr [esi + 0x5b4], ebx */ 23523 MEM32(esi + 0x5B8) = ebx; /* 0x361296FA: mov dword ptr [esi + 0x5b8], ebx */ 23524 if (CMP_L(_flag_a, _flag_b)) goto L_3612974C; /* 0x36129700: jl 0x3612974c */ 23525 L_36129702: 23526 /* cmp eax, 4 */ /* 0x36129702: cmp eax, 4 */ 23527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 23528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23529 _flag_k = FK_CMP; 23530 if (CMP_G(_flag_a, _flag_b)) goto L_3612974C; /* 0x36129705: jg 0x3612974c */ 23531 L_36129707: 23532 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23533 eax = 0; /* 0x36129707: xor eax, eax */ 23534 _cf = 0; 23535 _flag_k = FK_TEST; 23536 ecx = esi + 0x530; /* 0x36129709: lea ecx, [esi + 0x530] */ 23537 L_3612970F: 23538 MEM32(ecx) = 0xC2C80000u; /* 0x3612970F: mov dword ptr [ecx], 0xc2c80000 */ 23539 edx = MEM32(esi + 0x2C); /* 0x36129715: mov edx, dword ptr [esi + 0x2c] */ 23540 MEM8(eax + edx + 0x24) = (uint8_t)(LO8(ebx)); /* 0x36129718: mov byte ptr [eax + edx + 0x24], bl */ 23541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 23542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23543 eax = eax + 0x28u; /* 0x3612971C: add eax, 0x28 */ 23544 _flag_k = FK_ADD; 23545 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 23546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23547 ecx = ecx + 4; /* 0x3612971F: add ecx, 4 */ 23548 _flag_k = FK_ADD; 23549 /* cmp eax, 0x500u */ /* 0x36129722: cmp eax, 0x500 */ 23550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x500u); 23551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23552 _flag_k = FK_CMP; 23553 RECOMP_BACKEDGE(); 23554 if (CMP_L(_flag_a, _flag_b)) goto L_3612970F; /* 0x36129727: jl 0x3612970f */ 23555 L_36129729: 23556 fp_push((double)(int32_t)MEM32(esi + 0x628)); /* 0x36129729: fild dword ptr [esi + 0x628] */ 23557 edi = POP32_VAL(esp); /* 0x3612972F: pop edi */ 23558 _st[0] *= (double)*(float*)ADDR(0x361714DC); /* 0x36129730: fmul dword ptr [0x361714dc] */ 23559 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x618) = _v; } /* 0x36129736: fstp dword ptr [esi + 0x618] */ 23560 esi = POP32_VAL(esp); /* 0x3612973C: pop esi */ 23561 ebx = POP32_VAL(esp); /* 0x3612973D: pop ebx */ 23562 ecx = MEM32(ebp + (-0xC)); /* 0x3612973E: mov ecx, dword ptr [ebp - 0xc] */ 23563 MEM32(FS_BASE + (0)) = ecx; /* 0x36129741: mov dword ptr fs:[0], ecx */ 23564 esp = ebp; /* 0x36129748: mov esp, ebp */ 23565 ebp = POP32_VAL(esp); /* 0x3612974A: pop ebp */ 23566 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3612974B: ret */ 23567 L_3612974C: 23568 ecx = MEM32(ebp + (-0xC)); /* 0x3612974C: mov ecx, dword ptr [ebp - 0xc] */ 23569 MEM32(esi + 0x10) = ebx; /* 0x3612974F: mov dword ptr [esi + 0x10], ebx */ 23570 edi = POP32_VAL(esp); /* 0x36129752: pop edi */ 23571 esi = POP32_VAL(esp); /* 0x36129753: pop esi */ 23572 ebx = POP32_VAL(esp); /* 0x36129754: pop ebx */ 23573 MEM32(FS_BASE + (0)) = ecx; /* 0x36129755: mov dword ptr fs:[0], ecx */ 23574 esp = ebp; /* 0x3612975C: mov esp, ebp */ 23575 ebp = POP32_VAL(esp); /* 0x3612975E: pop ebp */ 23576 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3612975F: ret */ 23577 RECOMP_REGS_OUT(); 23578 } 23579 23580 void sub_36129614(void) { 23581 int _fpu_cmp = 0; 23582 uint32_t _cf = 0; 23583 int _df = 1; 23584 uint32_t _flag_k = FK_NONE; 23585 uint32_t _flag_a = 0, _flag_b = 0; 23586 uint32_t _itail_tgt = 0; 23587 RECOMP_REGS_LOCALS 23588 RECOMP_ENTER(0x36129614u); 23589 23590 L_36129614: 23591 ecx = MEM32(esi + 0x5C0); /* 0x36129614: mov ecx, dword ptr [esi + 0x5c0] */ 23592 PUSH32(esp, ecx); /* 0x3612961A: push ecx */ 23593 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3612961B: mov dword ptr [ebp - 4], 0xffffffff */ 23594 MEM32(esi + 0x28) = edi; /* 0x36129622: mov dword ptr [esi + 0x28], edi */ 23595 RECOMP_ICALL(0x360F7B00u); /* 0x36129625: call 0x360f7b00 */ /* not lifted */ 23596 RECOMP_FLAGS_IN(); 23597 ecx = eax; /* 0x3612962A: mov ecx, eax */ 23598 RECOMP_ICALL(0x360FBE60u); /* 0x3612962C: call 0x360fbe60 */ /* not lifted */ 23599 RECOMP_FLAGS_IN(); 23600 edx = MEM32(esi + 0x28); /* 0x36129631: mov edx, dword ptr [esi + 0x28] */ 23601 MEM32(edx + 0x1E0) = eax; /* 0x36129634: mov dword ptr [edx + 0x1e0], eax */ 23602 eax = MEM32(esi + 0x5C0); /* 0x3612963A: mov eax, dword ptr [esi + 0x5c0] */ 23603 PUSH32(esp, eax); /* 0x36129640: push eax */ 23604 RECOMP_ICALL(0x360F7B00u); /* 0x36129641: call 0x360f7b00 */ /* not lifted */ 23605 RECOMP_FLAGS_IN(); 23606 ecx = eax; /* 0x36129646: mov ecx, eax */ 23607 RECOMP_ICALL(0x360FBEA0u); /* 0x36129648: call 0x360fbea0 */ /* not lifted */ 23608 RECOMP_FLAGS_IN(); 23609 ecx = MEM32(esi + 0x28); /* 0x3612964D: mov ecx, dword ptr [esi + 0x28] */ 23610 MEM32(ecx + 0x1E4) = eax; /* 0x36129650: mov dword ptr [ecx + 0x1e4], eax */ 23611 ecx = MEM32(esi + 0x20); /* 0x36129656: mov ecx, dword ptr [esi + 0x20] */ 23612 RECOMP_ICALL(0x36134100u); /* 0x36129659: call 0x36134100 */ /* not lifted */ 23613 RECOMP_FLAGS_IN(); 23614 ecx = MEM32(esi + 0x20); /* 0x3612965E: mov ecx, dword ptr [esi + 0x20] */ 23615 edx = ebp + (-0x1C); /* 0x36129661: lea edx, [ebp - 0x1c] */ 23616 PUSH32(esp, edx); /* 0x36129664: push edx */ 23617 RECOMP_ICALL(0x36133E80u); /* 0x36129665: call 0x36133e80 */ /* not lifted */ 23618 RECOMP_FLAGS_IN(); 23619 ecx = MEM32(esi + 0x28); /* 0x3612966A: mov ecx, dword ptr [esi + 0x28] */ 23620 edi = MEM32(eax); /* 0x3612966D: mov edi, dword ptr [eax] */ 23621 edx = ecx + 0x78; /* 0x3612966F: lea edx, [ecx + 0x78] */ 23622 MEM32(edx) = edi; /* 0x36129672: mov dword ptr [edx], edi */ 23623 edi = MEM32(eax + 0x4); /* 0x36129674: mov edi, dword ptr [eax + 4] */ 23624 MEM32(edx + 0x4) = edi; /* 0x36129677: mov dword ptr [edx + 4], edi */ 23625 eax = MEM32(eax + 0x8); /* 0x3612967A: mov eax, dword ptr [eax + 8] */ 23626 PUSH32(esp, 1); /* 0x3612967D: push 1 */ 23627 MEM32(edx + 0x8) = eax; /* 0x3612967F: mov dword ptr [edx + 8], eax */ 23628 edx = MEM32(ecx); /* 0x36129682: mov edx, dword ptr [ecx] */ 23629 PUSH32(esp, 1); /* 0x36129684: push 1 */ 23630 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36129686: call dword ptr [edx + 0x2c] */ 23631 RECOMP_FLAGS_IN(); 23632 ecx = MEM32(esi + 0x28); /* 0x36129689: mov ecx, dword ptr [esi + 0x28] */ 23633 eax = ecx + 0x84; /* 0x3612968C: lea eax, [ecx + 0x84] */ 23634 MEM32(ebp + (-0x20)) = 0; /* 0x36129692: mov dword ptr [ebp - 0x20], 0 */ 23635 edx = MEM32(ebp + (-0x20)); /* 0x36129699: mov edx, dword ptr [ebp - 0x20] */ 23636 MEM32(eax) = edx; /* 0x3612969C: mov dword ptr [eax], edx */ 23637 MEM32(ebp + (-0x1C)) = 0; /* 0x3612969E: mov dword ptr [ebp - 0x1c], 0 */ 23638 edx = MEM32(ebp + (-0x1C)); /* 0x361296A5: mov edx, dword ptr [ebp - 0x1c] */ 23639 MEM32(eax + 0x4) = edx; /* 0x361296A8: mov dword ptr [eax + 4], edx */ 23640 MEM32(ebp + (-0x18)) = 0; /* 0x361296AB: mov dword ptr [ebp - 0x18], 0 */ 23641 edx = MEM32(ebp + (-0x18)); /* 0x361296B2: mov edx, dword ptr [ebp - 0x18] */ 23642 MEM32(eax + 0x8) = edx; /* 0x361296B5: mov dword ptr [eax + 8], edx */ 23643 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x361296B8: mov dword ptr [ebp - 0x14], 0x3f800000 */ 23644 edx = MEM32(ebp + (-0x14)); /* 0x361296BF: mov edx, dword ptr [ebp - 0x14] */ 23645 PUSH32(esp, 1); /* 0x361296C2: push 1 */ 23646 MEM32(eax + 0xC) = edx; /* 0x361296C4: mov dword ptr [eax + 0xc], edx */ 23647 eax = MEM32(ecx); /* 0x361296C7: mov eax, dword ptr [ecx] */ 23648 PUSH32(esp, 2); /* 0x361296C9: push 2 */ 23649 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x361296CB: call dword ptr [eax + 0x2c] */ 23650 RECOMP_FLAGS_IN(); 23651 ecx = MEM32(esi + 0x28); /* 0x361296CE: mov ecx, dword ptr [esi + 0x28] */ 23652 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x361296D1: call dword ptr [0x3616f5f8] */ 23653 RECOMP_FLAGS_IN(); 23654 ecx = MEM32(esi + 0x2C); /* 0x361296D7: mov ecx, dword ptr [esi + 0x2c] */ 23655 PUSH32(esp, 0x20u); /* 0x361296DA: push 0x20 */ 23656 PUSH32(esp, ecx); /* 0x361296DC: push ecx */ 23657 ecx = MEM32(esi + 0x28); /* 0x361296DD: mov ecx, dword ptr [esi + 0x28] */ 23658 RECOMP_ICALL(MEM32(0x3616F8BC)); /* 0x361296E0: call dword ptr [0x3616f8bc] */ 23659 RECOMP_FLAGS_IN(); 23660 eax = MEM32(esi + 0x5C4); /* 0x361296E6: mov eax, dword ptr [esi + 0x5c4] */ 23661 /* cmp eax, ebx */ /* 0x361296EC: cmp eax, ebx */ 23662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 23663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23664 _flag_k = FK_CMP; 23665 MEM8(esi + 0x5B0) = (uint8_t)(LO8(ebx)); /* 0x361296EE: mov byte ptr [esi + 0x5b0], bl */ 23666 MEM32(esi + 0x5B4) = ebx; /* 0x361296F4: mov dword ptr [esi + 0x5b4], ebx */ 23667 MEM32(esi + 0x5B8) = ebx; /* 0x361296FA: mov dword ptr [esi + 0x5b8], ebx */ 23668 if (CMP_L(_flag_a, _flag_b)) goto L_3612974C; /* 0x36129700: jl 0x3612974c */ 23669 L_36129702: 23670 /* cmp eax, 4 */ /* 0x36129702: cmp eax, 4 */ 23671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 23672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23673 _flag_k = FK_CMP; 23674 if (CMP_G(_flag_a, _flag_b)) goto L_3612974C; /* 0x36129705: jg 0x3612974c */ 23675 L_36129707: 23676 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23677 eax = 0; /* 0x36129707: xor eax, eax */ 23678 _cf = 0; 23679 _flag_k = FK_TEST; 23680 ecx = esi + 0x530; /* 0x36129709: lea ecx, [esi + 0x530] */ 23681 L_3612970F: 23682 MEM32(ecx) = 0xC2C80000u; /* 0x3612970F: mov dword ptr [ecx], 0xc2c80000 */ 23683 edx = MEM32(esi + 0x2C); /* 0x36129715: mov edx, dword ptr [esi + 0x2c] */ 23684 MEM8(eax + edx + 0x24) = (uint8_t)(LO8(ebx)); /* 0x36129718: mov byte ptr [eax + edx + 0x24], bl */ 23685 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 23686 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23687 eax = eax + 0x28u; /* 0x3612971C: add eax, 0x28 */ 23688 _flag_k = FK_ADD; 23689 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 23690 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23691 ecx = ecx + 4; /* 0x3612971F: add ecx, 4 */ 23692 _flag_k = FK_ADD; 23693 /* cmp eax, 0x500u */ /* 0x36129722: cmp eax, 0x500 */ 23694 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x500u); 23695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23696 _flag_k = FK_CMP; 23697 RECOMP_BACKEDGE(); 23698 if (CMP_L(_flag_a, _flag_b)) goto L_3612970F; /* 0x36129727: jl 0x3612970f */ 23699 L_36129729: 23700 fp_push((double)(int32_t)MEM32(esi + 0x628)); /* 0x36129729: fild dword ptr [esi + 0x628] */ 23701 edi = POP32_VAL(esp); /* 0x3612972F: pop edi */ 23702 _st[0] *= (double)*(float*)ADDR(0x361714DC); /* 0x36129730: fmul dword ptr [0x361714dc] */ 23703 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x618) = _v; } /* 0x36129736: fstp dword ptr [esi + 0x618] */ 23704 esi = POP32_VAL(esp); /* 0x3612973C: pop esi */ 23705 ebx = POP32_VAL(esp); /* 0x3612973D: pop ebx */ 23706 ecx = MEM32(ebp + (-0xC)); /* 0x3612973E: mov ecx, dword ptr [ebp - 0xc] */ 23707 MEM32(FS_BASE + (0)) = ecx; /* 0x36129741: mov dword ptr fs:[0], ecx */ 23708 esp = ebp; /* 0x36129748: mov esp, ebp */ 23709 ebp = POP32_VAL(esp); /* 0x3612974A: pop ebp */ 23710 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3612974B: ret */ 23711 L_3612974C: 23712 ecx = MEM32(ebp + (-0xC)); /* 0x3612974C: mov ecx, dword ptr [ebp - 0xc] */ 23713 MEM32(esi + 0x10) = ebx; /* 0x3612974F: mov dword ptr [esi + 0x10], ebx */ 23714 edi = POP32_VAL(esp); /* 0x36129752: pop edi */ 23715 esi = POP32_VAL(esp); /* 0x36129753: pop esi */ 23716 ebx = POP32_VAL(esp); /* 0x36129754: pop ebx */ 23717 MEM32(FS_BASE + (0)) = ecx; /* 0x36129755: mov dword ptr fs:[0], ecx */ 23718 esp = ebp; /* 0x3612975C: mov esp, ebp */ 23719 ebp = POP32_VAL(esp); /* 0x3612975E: pop ebp */ 23720 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3612975F: ret */ 23721 RECOMP_REGS_OUT(); 23722 } 23723 23724 void sub_361296B2(void) { 23725 int _fpu_cmp = 0; 23726 uint32_t _cf = 0; 23727 int _df = 1; 23728 uint32_t _flag_k = FK_NONE; 23729 uint32_t _flag_a = 0, _flag_b = 0; 23730 uint32_t _itail_tgt = 0; 23731 RECOMP_REGS_LOCALS 23732 RECOMP_ENTER(0x361296B2u); 23733 23734 L_361296B2: 23735 edx = MEM32(ebp + (-0x18)); /* 0x361296B2: mov edx, dword ptr [ebp - 0x18] */ 23736 MEM32(eax + 0x8) = edx; /* 0x361296B5: mov dword ptr [eax + 8], edx */ 23737 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x361296B8: mov dword ptr [ebp - 0x14], 0x3f800000 */ 23738 edx = MEM32(ebp + (-0x14)); /* 0x361296BF: mov edx, dword ptr [ebp - 0x14] */ 23739 PUSH32(esp, 1); /* 0x361296C2: push 1 */ 23740 MEM32(eax + 0xC) = edx; /* 0x361296C4: mov dword ptr [eax + 0xc], edx */ 23741 eax = MEM32(ecx); /* 0x361296C7: mov eax, dword ptr [ecx] */ 23742 PUSH32(esp, 2); /* 0x361296C9: push 2 */ 23743 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x361296CB: call dword ptr [eax + 0x2c] */ 23744 RECOMP_FLAGS_IN(); 23745 ecx = MEM32(esi + 0x28); /* 0x361296CE: mov ecx, dword ptr [esi + 0x28] */ 23746 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x361296D1: call dword ptr [0x3616f5f8] */ 23747 RECOMP_FLAGS_IN(); 23748 ecx = MEM32(esi + 0x2C); /* 0x361296D7: mov ecx, dword ptr [esi + 0x2c] */ 23749 PUSH32(esp, 0x20u); /* 0x361296DA: push 0x20 */ 23750 PUSH32(esp, ecx); /* 0x361296DC: push ecx */ 23751 ecx = MEM32(esi + 0x28); /* 0x361296DD: mov ecx, dword ptr [esi + 0x28] */ 23752 RECOMP_ICALL(MEM32(0x3616F8BC)); /* 0x361296E0: call dword ptr [0x3616f8bc] */ 23753 RECOMP_FLAGS_IN(); 23754 eax = MEM32(esi + 0x5C4); /* 0x361296E6: mov eax, dword ptr [esi + 0x5c4] */ 23755 /* cmp eax, ebx */ /* 0x361296EC: cmp eax, ebx */ 23756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 23757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23758 _flag_k = FK_CMP; 23759 MEM8(esi + 0x5B0) = (uint8_t)(LO8(ebx)); /* 0x361296EE: mov byte ptr [esi + 0x5b0], bl */ 23760 MEM32(esi + 0x5B4) = ebx; /* 0x361296F4: mov dword ptr [esi + 0x5b4], ebx */ 23761 MEM32(esi + 0x5B8) = ebx; /* 0x361296FA: mov dword ptr [esi + 0x5b8], ebx */ 23762 if (CMP_L(_flag_a, _flag_b)) goto L_3612974C; /* 0x36129700: jl 0x3612974c */ 23763 L_36129702: 23764 /* cmp eax, 4 */ /* 0x36129702: cmp eax, 4 */ 23765 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 23766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23767 _flag_k = FK_CMP; 23768 if (CMP_G(_flag_a, _flag_b)) goto L_3612974C; /* 0x36129705: jg 0x3612974c */ 23769 L_36129707: 23770 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23771 eax = 0; /* 0x36129707: xor eax, eax */ 23772 _cf = 0; 23773 _flag_k = FK_TEST; 23774 ecx = esi + 0x530; /* 0x36129709: lea ecx, [esi + 0x530] */ 23775 L_3612970F: 23776 MEM32(ecx) = 0xC2C80000u; /* 0x3612970F: mov dword ptr [ecx], 0xc2c80000 */ 23777 edx = MEM32(esi + 0x2C); /* 0x36129715: mov edx, dword ptr [esi + 0x2c] */ 23778 MEM8(eax + edx + 0x24) = (uint8_t)(LO8(ebx)); /* 0x36129718: mov byte ptr [eax + edx + 0x24], bl */ 23779 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 23780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23781 eax = eax + 0x28u; /* 0x3612971C: add eax, 0x28 */ 23782 _flag_k = FK_ADD; 23783 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 23784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23785 ecx = ecx + 4; /* 0x3612971F: add ecx, 4 */ 23786 _flag_k = FK_ADD; 23787 /* cmp eax, 0x500u */ /* 0x36129722: cmp eax, 0x500 */ 23788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x500u); 23789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23790 _flag_k = FK_CMP; 23791 RECOMP_BACKEDGE(); 23792 if (CMP_L(_flag_a, _flag_b)) goto L_3612970F; /* 0x36129727: jl 0x3612970f */ 23793 L_36129729: 23794 fp_push((double)(int32_t)MEM32(esi + 0x628)); /* 0x36129729: fild dword ptr [esi + 0x628] */ 23795 edi = POP32_VAL(esp); /* 0x3612972F: pop edi */ 23796 _st[0] *= (double)*(float*)ADDR(0x361714DC); /* 0x36129730: fmul dword ptr [0x361714dc] */ 23797 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x618) = _v; } /* 0x36129736: fstp dword ptr [esi + 0x618] */ 23798 esi = POP32_VAL(esp); /* 0x3612973C: pop esi */ 23799 ebx = POP32_VAL(esp); /* 0x3612973D: pop ebx */ 23800 ecx = MEM32(ebp + (-0xC)); /* 0x3612973E: mov ecx, dword ptr [ebp - 0xc] */ 23801 MEM32(FS_BASE + (0)) = ecx; /* 0x36129741: mov dword ptr fs:[0], ecx */ 23802 esp = ebp; /* 0x36129748: mov esp, ebp */ 23803 ebp = POP32_VAL(esp); /* 0x3612974A: pop ebp */ 23804 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3612974B: ret */ 23805 L_3612974C: 23806 ecx = MEM32(ebp + (-0xC)); /* 0x3612974C: mov ecx, dword ptr [ebp - 0xc] */ 23807 MEM32(esi + 0x10) = ebx; /* 0x3612974F: mov dword ptr [esi + 0x10], ebx */ 23808 edi = POP32_VAL(esp); /* 0x36129752: pop edi */ 23809 esi = POP32_VAL(esp); /* 0x36129753: pop esi */ 23810 ebx = POP32_VAL(esp); /* 0x36129754: pop ebx */ 23811 MEM32(FS_BASE + (0)) = ecx; /* 0x36129755: mov dword ptr fs:[0], ecx */ 23812 esp = ebp; /* 0x3612975C: mov esp, ebp */ 23813 ebp = POP32_VAL(esp); /* 0x3612975E: pop ebp */ 23814 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3612975F: ret */ 23815 RECOMP_REGS_OUT(); 23816 } 23817 23818 void sub_36129760(void) { 23819 int _fpu_cmp = 0; 23820 uint32_t _cf = 0; 23821 int _df = 1; 23822 uint32_t _flag_k = FK_NONE; 23823 uint32_t _flag_a = 0, _flag_b = 0; 23824 uint32_t _itail_tgt = 0; 23825 RECOMP_REGS_LOCALS 23826 RECOMP_ENTER(0x36129760u); 23827 23828 L_36129760: 23829 PUSH32(esp, ebp); /* 0x36129760: push ebp */ 23830 ebp = esp; /* 0x36129761: mov ebp, esp */ 23831 PUSH32(esp, esi); /* 0x36129763: push esi */ 23832 esi = ecx; /* 0x36129764: mov esi, ecx */ 23833 RECOMP_ICALL(MEM32(0x3616F8C4)); /* 0x36129766: call dword ptr [0x3616f8c4] */ 23834 RECOMP_FLAGS_IN(); 23835 /* test MEM8(ebp + 0x8), 1 */ /* 0x3612976C: test byte ptr [ebp + 8], 1 */ 23836 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 23837 _cf = 0; 23838 _flag_k = FK_NARROW(FK_TEST, 24); 23839 if (TEST_Z(_flag_a, _flag_b)) goto L_3612977B; /* 0x36129770: je 0x3612977b */ 23840 L_36129772: 23841 PUSH32(esp, esi); /* 0x36129772: push esi */ 23842 RECOMP_ICALL(0x3615FCC4u); /* 0x36129773: call 0x3615fcc4 */ /* not lifted */ 23843 RECOMP_FLAGS_IN(); 23844 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23845 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23846 esp = esp + 4; /* 0x36129778: add esp, 4 */ 23847 _flag_k = FK_ADD; 23848 L_3612977B: 23849 eax = esi; /* 0x3612977B: mov eax, esi */ 23850 esi = POP32_VAL(esp); /* 0x3612977D: pop esi */ 23851 ebp = POP32_VAL(esp); /* 0x3612977E: pop ebp */ 23852 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612977F: ret 4 */ 23853 RECOMP_REGS_OUT(); 23854 } 23855 23856 void sub_36129790(void) { 23857 int _fpu_cmp = 0; 23858 uint32_t _cf = 0; 23859 int _df = 1; 23860 uint32_t _flag_k = FK_NONE; 23861 uint32_t _flag_a = 0, _flag_b = 0; 23862 uint32_t _itail_tgt = 0; 23863 RECOMP_REGS_LOCALS 23864 RECOMP_ENTER(0x36129790u); 23865 23866 goto L_36129790; 23867 L_36129760: 23868 PUSH32(esp, ebp); /* 0x36129760: push ebp */ 23869 ebp = esp; /* 0x36129761: mov ebp, esp */ 23870 PUSH32(esp, esi); /* 0x36129763: push esi */ 23871 esi = ecx; /* 0x36129764: mov esi, ecx */ 23872 RECOMP_ICALL(MEM32(0x3616F8C4)); /* 0x36129766: call dword ptr [0x3616f8c4] */ 23873 RECOMP_FLAGS_IN(); 23874 /* test MEM8(ebp + 0x8), 1 */ /* 0x3612976C: test byte ptr [ebp + 8], 1 */ 23875 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 23876 _cf = 0; 23877 _flag_k = FK_NARROW(FK_TEST, 24); 23878 if (TEST_Z(_flag_a, _flag_b)) goto L_3612977B; /* 0x36129770: je 0x3612977b */ 23879 L_36129772: 23880 PUSH32(esp, esi); /* 0x36129772: push esi */ 23881 RECOMP_ICALL(0x3615FCC4u); /* 0x36129773: call 0x3615fcc4 */ /* not lifted */ 23882 RECOMP_FLAGS_IN(); 23883 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23884 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23885 esp = esp + 4; /* 0x36129778: add esp, 4 */ 23886 _flag_k = FK_ADD; 23887 L_3612977B: 23888 eax = esi; /* 0x3612977B: mov eax, esi */ 23889 esi = POP32_VAL(esp); /* 0x3612977D: pop esi */ 23890 ebp = POP32_VAL(esp); /* 0x3612977E: pop ebp */ 23891 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612977F: ret 4 */ 23892 L_36129790: 23893 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 23894 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23895 ecx = ecx - 8; /* 0x36129790: sub ecx, 8 */ 23896 _flag_k = FK_CMP; 23897 RECOMP_BACKEDGE(); 23898 goto L_36129760; /* 0x36129793: jmp 0x36129760 */ 23899 { RECOMP_REGS_OUT(); return; } /* end of function */ 23900 RECOMP_REGS_OUT(); 23901 } 23902 23903 void sub_361297A0(void) { 23904 int _fpu_cmp = 0; 23905 uint32_t _cf = 0; 23906 int _df = 1; 23907 uint32_t _flag_k = FK_NONE; 23908 uint32_t _flag_a = 0, _flag_b = 0; 23909 uint32_t _itail_tgt = 0; 23910 RECOMP_REGS_LOCALS 23911 RECOMP_ENTER(0x361297A0u); 23912 23913 goto L_361297A0; 23914 L_36129760: 23915 PUSH32(esp, ebp); /* 0x36129760: push ebp */ 23916 ebp = esp; /* 0x36129761: mov ebp, esp */ 23917 PUSH32(esp, esi); /* 0x36129763: push esi */ 23918 esi = ecx; /* 0x36129764: mov esi, ecx */ 23919 RECOMP_ICALL(MEM32(0x3616F8C4)); /* 0x36129766: call dword ptr [0x3616f8c4] */ 23920 RECOMP_FLAGS_IN(); 23921 /* test MEM8(ebp + 0x8), 1 */ /* 0x3612976C: test byte ptr [ebp + 8], 1 */ 23922 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 23923 _cf = 0; 23924 _flag_k = FK_NARROW(FK_TEST, 24); 23925 if (TEST_Z(_flag_a, _flag_b)) goto L_3612977B; /* 0x36129770: je 0x3612977b */ 23926 L_36129772: 23927 PUSH32(esp, esi); /* 0x36129772: push esi */ 23928 RECOMP_ICALL(0x3615FCC4u); /* 0x36129773: call 0x3615fcc4 */ /* not lifted */ 23929 RECOMP_FLAGS_IN(); 23930 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23932 esp = esp + 4; /* 0x36129778: add esp, 4 */ 23933 _flag_k = FK_ADD; 23934 L_3612977B: 23935 eax = esi; /* 0x3612977B: mov eax, esi */ 23936 esi = POP32_VAL(esp); /* 0x3612977D: pop esi */ 23937 ebp = POP32_VAL(esp); /* 0x3612977E: pop ebp */ 23938 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612977F: ret 4 */ 23939 L_361297A0: 23940 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 23941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23942 ecx = ecx - 0x20u; /* 0x361297A0: sub ecx, 0x20 */ 23943 _flag_k = FK_CMP; 23944 RECOMP_BACKEDGE(); 23945 goto L_36129760; /* 0x361297A3: jmp 0x36129760 */ 23946 { RECOMP_REGS_OUT(); return; } /* end of function */ 23947 RECOMP_REGS_OUT(); 23948 } 23949 23950 void sub_361297B0(void) { 23951 int _fpu_cmp = 0; 23952 uint32_t _cf = 0; 23953 int _df = 1; 23954 uint32_t _flag_k = FK_NONE; 23955 uint32_t _flag_a = 0, _flag_b = 0; 23956 uint32_t _itail_tgt = 0; 23957 RECOMP_REGS_LOCALS 23958 RECOMP_ENTER(0x361297B0u); 23959 23960 goto L_361297B0; 23961 L_36129760: 23962 PUSH32(esp, ebp); /* 0x36129760: push ebp */ 23963 ebp = esp; /* 0x36129761: mov ebp, esp */ 23964 PUSH32(esp, esi); /* 0x36129763: push esi */ 23965 esi = ecx; /* 0x36129764: mov esi, ecx */ 23966 RECOMP_ICALL(MEM32(0x3616F8C4)); /* 0x36129766: call dword ptr [0x3616f8c4] */ 23967 RECOMP_FLAGS_IN(); 23968 /* test MEM8(ebp + 0x8), 1 */ /* 0x3612976C: test byte ptr [ebp + 8], 1 */ 23969 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 23970 _cf = 0; 23971 _flag_k = FK_NARROW(FK_TEST, 24); 23972 if (TEST_Z(_flag_a, _flag_b)) goto L_3612977B; /* 0x36129770: je 0x3612977b */ 23973 L_36129772: 23974 PUSH32(esp, esi); /* 0x36129772: push esi */ 23975 RECOMP_ICALL(0x3615FCC4u); /* 0x36129773: call 0x3615fcc4 */ /* not lifted */ 23976 RECOMP_FLAGS_IN(); 23977 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23978 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23979 esp = esp + 4; /* 0x36129778: add esp, 4 */ 23980 _flag_k = FK_ADD; 23981 L_3612977B: 23982 eax = esi; /* 0x3612977B: mov eax, esi */ 23983 esi = POP32_VAL(esp); /* 0x3612977D: pop esi */ 23984 ebp = POP32_VAL(esp); /* 0x3612977E: pop ebp */ 23985 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612977F: ret 4 */ 23986 L_361297B0: 23987 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 23988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23989 ecx = ecx - 0x38u; /* 0x361297B0: sub ecx, 0x38 */ 23990 _flag_k = FK_CMP; 23991 RECOMP_BACKEDGE(); 23992 goto L_36129760; /* 0x361297B3: jmp 0x36129760 */ 23993 { RECOMP_REGS_OUT(); return; } /* end of function */ 23994 RECOMP_REGS_OUT(); 23995 } 23996 23997 void sub_361297C0(void) { 23998 int _fpu_cmp = 0; 23999 uint32_t _cf = 0; 24000 int _df = 1; 24001 uint32_t _flag_k = FK_NONE; 24002 uint32_t _flag_a = 0, _flag_b = 0; 24003 uint32_t _itail_tgt = 0; 24004 RECOMP_REGS_LOCALS 24005 RECOMP_ENTER(0x361297C0u); 24006 24007 goto L_361297C0; 24008 L_36129760: 24009 PUSH32(esp, ebp); /* 0x36129760: push ebp */ 24010 ebp = esp; /* 0x36129761: mov ebp, esp */ 24011 PUSH32(esp, esi); /* 0x36129763: push esi */ 24012 esi = ecx; /* 0x36129764: mov esi, ecx */ 24013 RECOMP_ICALL(MEM32(0x3616F8C4)); /* 0x36129766: call dword ptr [0x3616f8c4] */ 24014 RECOMP_FLAGS_IN(); 24015 /* test MEM8(ebp + 0x8), 1 */ /* 0x3612976C: test byte ptr [ebp + 8], 1 */ 24016 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 24017 _cf = 0; 24018 _flag_k = FK_NARROW(FK_TEST, 24); 24019 if (TEST_Z(_flag_a, _flag_b)) goto L_3612977B; /* 0x36129770: je 0x3612977b */ 24020 L_36129772: 24021 PUSH32(esp, esi); /* 0x36129772: push esi */ 24022 RECOMP_ICALL(0x3615FCC4u); /* 0x36129773: call 0x3615fcc4 */ /* not lifted */ 24023 RECOMP_FLAGS_IN(); 24024 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24025 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24026 esp = esp + 4; /* 0x36129778: add esp, 4 */ 24027 _flag_k = FK_ADD; 24028 L_3612977B: 24029 eax = esi; /* 0x3612977B: mov eax, esi */ 24030 esi = POP32_VAL(esp); /* 0x3612977D: pop esi */ 24031 ebp = POP32_VAL(esp); /* 0x3612977E: pop ebp */ 24032 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612977F: ret 4 */ 24033 L_361297C0: 24034 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 24035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24036 ecx = ecx - 0x50u; /* 0x361297C0: sub ecx, 0x50 */ 24037 _flag_k = FK_CMP; 24038 RECOMP_BACKEDGE(); 24039 goto L_36129760; /* 0x361297C3: jmp 0x36129760 */ 24040 { RECOMP_REGS_OUT(); return; } /* end of function */ 24041 RECOMP_REGS_OUT(); 24042 } 24043 24044 void sub_361297D0(void) { 24045 int _fpu_cmp = 0; 24046 uint32_t _cf = 0; 24047 int _df = 1; 24048 uint32_t _flag_k = FK_NONE; 24049 uint32_t _flag_a = 0, _flag_b = 0; 24050 uint32_t _itail_tgt = 0; 24051 RECOMP_REGS_LOCALS 24052 RECOMP_ENTER(0x361297D0u); 24053 24054 goto L_361297D0; 24055 L_36129760: 24056 PUSH32(esp, ebp); /* 0x36129760: push ebp */ 24057 ebp = esp; /* 0x36129761: mov ebp, esp */ 24058 PUSH32(esp, esi); /* 0x36129763: push esi */ 24059 esi = ecx; /* 0x36129764: mov esi, ecx */ 24060 RECOMP_ICALL(MEM32(0x3616F8C4)); /* 0x36129766: call dword ptr [0x3616f8c4] */ 24061 RECOMP_FLAGS_IN(); 24062 /* test MEM8(ebp + 0x8), 1 */ /* 0x3612976C: test byte ptr [ebp + 8], 1 */ 24063 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 24064 _cf = 0; 24065 _flag_k = FK_NARROW(FK_TEST, 24); 24066 if (TEST_Z(_flag_a, _flag_b)) goto L_3612977B; /* 0x36129770: je 0x3612977b */ 24067 L_36129772: 24068 PUSH32(esp, esi); /* 0x36129772: push esi */ 24069 RECOMP_ICALL(0x3615FCC4u); /* 0x36129773: call 0x3615fcc4 */ /* not lifted */ 24070 RECOMP_FLAGS_IN(); 24071 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24072 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24073 esp = esp + 4; /* 0x36129778: add esp, 4 */ 24074 _flag_k = FK_ADD; 24075 L_3612977B: 24076 eax = esi; /* 0x3612977B: mov eax, esi */ 24077 esi = POP32_VAL(esp); /* 0x3612977D: pop esi */ 24078 ebp = POP32_VAL(esp); /* 0x3612977E: pop ebp */ 24079 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612977F: ret 4 */ 24080 L_361297D0: 24081 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 24082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24083 ecx = ecx - 0x138u; /* 0x361297D0: sub ecx, 0x138 */ 24084 _flag_k = FK_CMP; 24085 RECOMP_BACKEDGE(); 24086 goto L_36129760; /* 0x361297D6: jmp 0x36129760 */ 24087 { RECOMP_REGS_OUT(); return; } /* end of function */ 24088 RECOMP_REGS_OUT(); 24089 } 24090 24091 void sub_361297E0(void) { 24092 int _fpu_cmp = 0; 24093 uint32_t _cf = 0; 24094 int _df = 1; 24095 uint32_t _flag_k = FK_NONE; 24096 uint32_t _flag_a = 0, _flag_b = 0; 24097 uint32_t _itail_tgt = 0; 24098 RECOMP_REGS_LOCALS 24099 RECOMP_ENTER(0x361297E0u); 24100 24101 goto L_361297E0; 24102 L_36129760: 24103 PUSH32(esp, ebp); /* 0x36129760: push ebp */ 24104 ebp = esp; /* 0x36129761: mov ebp, esp */ 24105 PUSH32(esp, esi); /* 0x36129763: push esi */ 24106 esi = ecx; /* 0x36129764: mov esi, ecx */ 24107 RECOMP_ICALL(MEM32(0x3616F8C4)); /* 0x36129766: call dword ptr [0x3616f8c4] */ 24108 RECOMP_FLAGS_IN(); 24109 /* test MEM8(ebp + 0x8), 1 */ /* 0x3612976C: test byte ptr [ebp + 8], 1 */ 24110 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 24111 _cf = 0; 24112 _flag_k = FK_NARROW(FK_TEST, 24); 24113 if (TEST_Z(_flag_a, _flag_b)) goto L_3612977B; /* 0x36129770: je 0x3612977b */ 24114 L_36129772: 24115 PUSH32(esp, esi); /* 0x36129772: push esi */ 24116 RECOMP_ICALL(0x3615FCC4u); /* 0x36129773: call 0x3615fcc4 */ /* not lifted */ 24117 RECOMP_FLAGS_IN(); 24118 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24119 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24120 esp = esp + 4; /* 0x36129778: add esp, 4 */ 24121 _flag_k = FK_ADD; 24122 L_3612977B: 24123 eax = esi; /* 0x3612977B: mov eax, esi */ 24124 esi = POP32_VAL(esp); /* 0x3612977D: pop esi */ 24125 ebp = POP32_VAL(esp); /* 0x3612977E: pop ebp */ 24126 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612977F: ret 4 */ 24127 L_361297E0: 24128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 24129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24130 ecx = ecx - 0x150u; /* 0x361297E0: sub ecx, 0x150 */ 24131 _flag_k = FK_CMP; 24132 RECOMP_BACKEDGE(); 24133 goto L_36129760; /* 0x361297E6: jmp 0x36129760 */ 24134 { RECOMP_REGS_OUT(); return; } /* end of function */ 24135 RECOMP_REGS_OUT(); 24136 } 24137 24138 void sub_361297F0(void) { 24139 int _fpu_cmp = 0; 24140 uint32_t _cf = 0; 24141 int _df = 1; 24142 uint32_t _flag_k = FK_NONE; 24143 uint32_t _flag_a = 0, _flag_b = 0; 24144 uint32_t _itail_tgt = 0; 24145 RECOMP_REGS_LOCALS 24146 RECOMP_ENTER(0x361297F0u); 24147 24148 L_361297F0: 24149 PUSH32(esp, ebp); /* 0x361297F0: push ebp */ 24150 ebp = esp; /* 0x361297F1: mov ebp, esp */ 24151 PUSH32(esp, 0xFFFFFFFFu); /* 0x361297F3: push -1 */ 24152 PUSH32(esp, 0x3616BC08u); /* 0x361297F5: push 0x3616bc08 */ 24153 eax = MEM32(FS_BASE + (0)); /* 0x361297FA: mov eax, dword ptr fs:[0] */ 24154 PUSH32(esp, eax); /* 0x36129800: push eax */ 24155 MEM32(FS_BASE + (0)) = esp; /* 0x36129801: mov dword ptr fs:[0], esp */ 24156 PUSH32(esp, ecx); /* 0x36129808: push ecx */ 24157 PUSH32(esp, ebx); /* 0x36129809: push ebx */ 24158 PUSH32(esp, esi); /* 0x3612980A: push esi */ 24159 PUSH32(esp, edi); /* 0x3612980B: push edi */ 24160 edi = MEM32(ebp + 0x8); /* 0x3612980C: mov edi, dword ptr [ebp + 8] */ 24161 esi = ecx; /* 0x3612980F: mov esi, ecx */ 24162 PUSH32(esp, edi); /* 0x36129811: push edi */ 24163 MEM32(ebp + (-0x10)) = esi; /* 0x36129812: mov dword ptr [ebp - 0x10], esi */ 24164 RECOMP_ICALL(0x360FC270u); /* 0x36129815: call 0x360fc270 */ /* not lifted */ 24165 RECOMP_FLAGS_IN(); 24166 edx = MEM32(ebp + 0xC); /* 0x3612981A: mov edx, dword ptr [ebp + 0xc] */ 24167 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24168 eax = 0; /* 0x3612981D: xor eax, eax */ 24169 _cf = 0; 24170 _flag_k = FK_TEST; 24171 MEM32(esi + 0x20) = eax; /* 0x3612981F: mov dword ptr [esi + 0x20], eax */ 24172 MEM32(esi + 0x24) = eax; /* 0x36129822: mov dword ptr [esi + 0x24], eax */ 24173 MEM32(esi + 0x58) = eax; /* 0x36129825: mov dword ptr [esi + 0x58], eax */ 24174 ebx = MEM32(edx); /* 0x36129828: mov ebx, dword ptr [edx] */ 24175 ecx = esi + 0x68; /* 0x3612982A: lea ecx, [esi + 0x68] */ 24176 MEM32(ecx) = ebx; /* 0x3612982D: mov dword ptr [ecx], ebx */ 24177 ebx = MEM32(edx + 0x4); /* 0x3612982F: mov ebx, dword ptr [edx + 4] */ 24178 MEM32(ecx + 0x4) = ebx; /* 0x36129832: mov dword ptr [ecx + 4], ebx */ 24179 edx = MEM32(edx + 0x8); /* 0x36129835: mov edx, dword ptr [edx + 8] */ 24180 MEM32(ecx + 0x8) = edx; /* 0x36129838: mov dword ptr [ecx + 8], edx */ 24181 edx = MEM32(ebp + 0x10); /* 0x3612983B: mov edx, dword ptr [ebp + 0x10] */ 24182 ebx = MEM32(edx); /* 0x3612983E: mov ebx, dword ptr [edx] */ 24183 ecx = esi + 0x74; /* 0x36129840: lea ecx, [esi + 0x74] */ 24184 MEM32(ecx) = ebx; /* 0x36129843: mov dword ptr [ecx], ebx */ 24185 ebx = MEM32(edx + 0x4); /* 0x36129845: mov ebx, dword ptr [edx + 4] */ 24186 MEM32(ecx + 0x4) = ebx; /* 0x36129848: mov dword ptr [ecx + 4], ebx */ 24187 edx = MEM32(edx + 0x8); /* 0x3612984B: mov edx, dword ptr [edx + 8] */ 24188 MEM32(ecx + 0x8) = edx; /* 0x3612984E: mov dword ptr [ecx + 8], edx */ 24189 MEM32(esi + 0x84) = eax; /* 0x36129851: mov dword ptr [esi + 0x84], eax */ 24190 MEM32(esi + 0x88) = eax; /* 0x36129857: mov dword ptr [esi + 0x88], eax */ 24191 MEM32(esi + 0x8C) = eax; /* 0x3612985D: mov dword ptr [esi + 0x8c], eax */ 24192 PUSH32(esp, edi); /* 0x36129863: push edi */ 24193 ecx = esi; /* 0x36129864: mov ecx, esi */ 24194 MEM32(ebp + (-0x4)) = eax; /* 0x36129866: mov dword ptr [ebp - 4], eax */ 24195 MEM32(esi) = 0x36177894u; /* 0x36129869: mov dword ptr [esi], 0x36177894 */ 24196 RECOMP_ICALL(0x361299F0u); /* 0x3612986F: call 0x361299f0 */ /* not lifted */ 24197 RECOMP_FLAGS_IN(); 24198 ecx = MEM32(ebp + (-0xC)); /* 0x36129874: mov ecx, dword ptr [ebp - 0xc] */ 24199 edi = POP32_VAL(esp); /* 0x36129877: pop edi */ 24200 eax = esi; /* 0x36129878: mov eax, esi */ 24201 esi = POP32_VAL(esp); /* 0x3612987A: pop esi */ 24202 ebx = POP32_VAL(esp); /* 0x3612987B: pop ebx */ 24203 MEM32(FS_BASE + (0)) = ecx; /* 0x3612987C: mov dword ptr fs:[0], ecx */ 24204 esp = ebp; /* 0x36129883: mov esp, ebp */ 24205 ebp = POP32_VAL(esp); /* 0x36129885: pop ebp */ 24206 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36129886: ret 0xc */ 24207 RECOMP_REGS_OUT(); 24208 } 24209 24210 void sub_36129890(void) { 24211 int _fpu_cmp = 0; 24212 uint32_t _cf = 0; 24213 int _df = 1; 24214 uint32_t _flag_k = FK_NONE; 24215 uint32_t _flag_a = 0, _flag_b = 0; 24216 uint32_t _itail_tgt = 0; 24217 RECOMP_REGS_LOCALS 24218 RECOMP_ENTER(0x36129890u); 24219 24220 L_36129890: 24221 PUSH32(esp, ebp); /* 0x36129890: push ebp */ 24222 ebp = esp; /* 0x36129891: mov ebp, esp */ 24223 PUSH32(esp, esi); /* 0x36129893: push esi */ 24224 esi = ecx; /* 0x36129894: mov esi, ecx */ 24225 RECOMP_ICALL(0x36129DB0u); /* 0x36129896: call 0x36129db0 */ /* not lifted */ 24226 RECOMP_FLAGS_IN(); 24227 /* test MEM8(ebp + 0x8), 1 */ /* 0x3612989B: test byte ptr [ebp + 8], 1 */ 24228 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 24229 _cf = 0; 24230 _flag_k = FK_NARROW(FK_TEST, 24); 24231 if (TEST_Z(_flag_a, _flag_b)) goto L_361298AA; /* 0x3612989F: je 0x361298aa */ 24232 L_361298A1: 24233 PUSH32(esp, esi); /* 0x361298A1: push esi */ 24234 RECOMP_ICALL(0x3615FCC4u); /* 0x361298A2: call 0x3615fcc4 */ /* not lifted */ 24235 RECOMP_FLAGS_IN(); 24236 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24238 esp = esp + 4; /* 0x361298A7: add esp, 4 */ 24239 _flag_k = FK_ADD; 24240 L_361298AA: 24241 eax = esi; /* 0x361298AA: mov eax, esi */ 24242 esi = POP32_VAL(esp); /* 0x361298AC: pop esi */ 24243 ebp = POP32_VAL(esp); /* 0x361298AD: pop ebp */ 24244 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361298AE: ret 4 */ 24245 RECOMP_REGS_OUT(); 24246 } 24247 24248 void sub_361298C0(void) { 24249 int _fpu_cmp = 0; 24250 uint32_t _cf = 0; 24251 int _df = 1; 24252 uint32_t _flag_k = FK_NONE; 24253 uint32_t _flag_a = 0, _flag_b = 0; 24254 uint32_t _itail_tgt = 0; 24255 RECOMP_REGS_LOCALS 24256 RECOMP_ENTER(0x361298C0u); 24257 24258 L_361298C0: 24259 PUSH32(esp, ebp); /* 0x361298C0: push ebp */ 24260 ebp = esp; /* 0x361298C1: mov ebp, esp */ 24261 PUSH32(esp, 0xFFFFFFFFu); /* 0x361298C3: push -1 */ 24262 PUSH32(esp, 0x3616BC28u); /* 0x361298C5: push 0x3616bc28 */ 24263 eax = MEM32(FS_BASE + (0)); /* 0x361298CA: mov eax, dword ptr fs:[0] */ 24264 PUSH32(esp, eax); /* 0x361298D0: push eax */ 24265 MEM32(FS_BASE + (0)) = esp; /* 0x361298D1: mov dword ptr fs:[0], esp */ 24266 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 24267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24268 esp = esp - 0x10u; /* 0x361298D8: sub esp, 0x10 */ 24269 _flag_k = FK_CMP; 24270 eax = MEM32(ebp + 0x8); /* 0x361298DB: mov eax, dword ptr [ebp + 8] */ 24271 PUSH32(esp, ebx); /* 0x361298DE: push ebx */ 24272 PUSH32(esp, esi); /* 0x361298DF: push esi */ 24273 PUSH32(esp, edi); /* 0x361298E0: push edi */ 24274 esi = ecx; /* 0x361298E1: mov esi, ecx */ 24275 PUSH32(esp, eax); /* 0x361298E3: push eax */ 24276 MEM32(ebp + (-0x10)) = esi; /* 0x361298E4: mov dword ptr [ebp - 0x10], esi */ 24277 RECOMP_ICALL(0x360FC270u); /* 0x361298E7: call 0x360fc270 */ /* not lifted */ 24278 RECOMP_FLAGS_IN(); 24279 ecx = MEM32(ebp + 0xC); /* 0x361298EC: mov ecx, dword ptr [ebp + 0xc] */ 24280 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24281 edi = 0; /* 0x361298EF: xor edi, edi */ 24282 _cf = 0; 24283 _flag_k = FK_TEST; 24284 MEM32(esi + 0x20) = edi; /* 0x361298F1: mov dword ptr [esi + 0x20], edi */ 24285 MEM32(esi + 0x24) = edi; /* 0x361298F4: mov dword ptr [esi + 0x24], edi */ 24286 MEM32(esi + 0x58) = edi; /* 0x361298F7: mov dword ptr [esi + 0x58], edi */ 24287 MEM32(esi + 0x68) = edi; /* 0x361298FA: mov dword ptr [esi + 0x68], edi */ 24288 MEM32(esi + 0x6C) = edi; /* 0x361298FD: mov dword ptr [esi + 0x6c], edi */ 24289 MEM32(esi + 0x70) = edi; /* 0x36129900: mov dword ptr [esi + 0x70], edi */ 24290 MEM32(esi + 0x74) = edi; /* 0x36129903: mov dword ptr [esi + 0x74], edi */ 24291 MEM32(esi + 0x78) = edi; /* 0x36129906: mov dword ptr [esi + 0x78], edi */ 24292 MEM32(esi + 0x7C) = edi; /* 0x36129909: mov dword ptr [esi + 0x7c], edi */ 24293 MEM32(esi + 0x84) = edi; /* 0x3612990C: mov dword ptr [esi + 0x84], edi */ 24294 MEM32(esi + 0x88) = edi; /* 0x36129912: mov dword ptr [esi + 0x88], edi */ 24295 MEM32(esi + 0x8C) = edi; /* 0x36129918: mov dword ptr [esi + 0x8c], edi */ 24296 PUSH32(esp, ecx); /* 0x3612991E: push ecx */ 24297 MEM32(ebp + (-0x4)) = edi; /* 0x3612991F: mov dword ptr [ebp - 4], edi */ 24298 MEM32(esi) = 0x36177894u; /* 0x36129922: mov dword ptr [esi], 0x36177894 */ 24299 RECOMP_ICALL(0x360F7B00u); /* 0x36129928: call 0x360f7b00 */ /* not lifted */ 24300 RECOMP_FLAGS_IN(); 24301 ecx = eax; /* 0x3612992D: mov ecx, eax */ 24302 RECOMP_ICALL(0x360FBF90u); /* 0x3612992F: call 0x360fbf90 */ /* not lifted */ 24303 RECOMP_FLAGS_IN(); 24304 ebx = eax; /* 0x36129934: mov ebx, eax */ 24305 /* cmp ebx, edi */ /* 0x36129936: cmp ebx, edi */ 24306 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 24307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24308 _flag_k = FK_CMP; 24309 if (CMP_EQ(_flag_a, _flag_b)) goto L_36129974; /* 0x36129938: je 0x36129974 */ 24310 L_3612993A: 24311 edx = ebp + (-0x1C); /* 0x3612993A: lea edx, [ebp - 0x1c] */ 24312 PUSH32(esp, edx); /* 0x3612993D: push edx */ 24313 ecx = ebx; /* 0x3612993E: mov ecx, ebx */ 24314 RECOMP_ICALL(0x36131BB0u); /* 0x36129940: call 0x36131bb0 */ /* not lifted */ 24315 RECOMP_FLAGS_IN(); 24316 ecx = MEM32(eax); /* 0x36129945: mov ecx, dword ptr [eax] */ 24317 MEM32(esi + 0x68) = ecx; /* 0x36129947: mov dword ptr [esi + 0x68], ecx */ 24318 edx = MEM32(eax + 0x4); /* 0x3612994A: mov edx, dword ptr [eax + 4] */ 24319 MEM32(esi + 0x6C) = edx; /* 0x3612994D: mov dword ptr [esi + 0x6c], edx */ 24320 eax = MEM32(eax + 0x8); /* 0x36129950: mov eax, dword ptr [eax + 8] */ 24321 ecx = ebp + (-0x1C); /* 0x36129953: lea ecx, [ebp - 0x1c] */ 24322 PUSH32(esp, ecx); /* 0x36129956: push ecx */ 24323 ecx = ebx; /* 0x36129957: mov ecx, ebx */ 24324 MEM32(esi + 0x70) = eax; /* 0x36129959: mov dword ptr [esi + 0x70], eax */ 24325 RECOMP_ICALL(0x36131C00u); /* 0x3612995C: call 0x36131c00 */ /* not lifted */ 24326 RECOMP_FLAGS_IN(); 24327 edx = MEM32(eax); /* 0x36129961: mov edx, dword ptr [eax] */ 24328 MEM32(esi + 0x74) = edx; /* 0x36129963: mov dword ptr [esi + 0x74], edx */ 24329 ecx = MEM32(eax + 0x4); /* 0x36129966: mov ecx, dword ptr [eax + 4] */ 24330 MEM32(esi + 0x78) = ecx; /* 0x36129969: mov dword ptr [esi + 0x78], ecx */ 24331 edx = MEM32(eax + 0x8); /* 0x3612996C: mov edx, dword ptr [eax + 8] */ 24332 MEM32(esi + 0x7C) = edx; /* 0x3612996F: mov dword ptr [esi + 0x7c], edx */ 24333 goto L_361299C6; /* 0x36129972: jmp 0x361299c6 */ 24334 L_36129974: 24335 MEM32(ebp + (-0x1C)) = 0; /* 0x36129974: mov dword ptr [ebp - 0x1c], 0 */ 24336 eax = MEM32(ebp + (-0x1C)); /* 0x3612997B: mov eax, dword ptr [ebp - 0x1c] */ 24337 MEM32(ebp + (-0x18)) = 0; /* 0x3612997E: mov dword ptr [ebp - 0x18], 0 */ 24338 ecx = MEM32(ebp + (-0x18)); /* 0x36129985: mov ecx, dword ptr [ebp - 0x18] */ 24339 MEM32(ebp + (-0x14)) = 0; /* 0x36129988: mov dword ptr [ebp - 0x14], 0 */ 24340 edx = MEM32(ebp + (-0x14)); /* 0x3612998F: mov edx, dword ptr [ebp - 0x14] */ 24341 MEM32(esi + 0x68) = eax; /* 0x36129992: mov dword ptr [esi + 0x68], eax */ 24342 MEM32(esi + 0x6C) = ecx; /* 0x36129995: mov dword ptr [esi + 0x6c], ecx */ 24343 MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x36129998: mov dword ptr [ebp - 0x1c], 0x3f800000 */ 24344 eax = MEM32(ebp + (-0x1C)); /* 0x3612999F: mov eax, dword ptr [ebp - 0x1c] */ 24345 MEM32(ebp + (-0x18)) = 0; /* 0x361299A2: mov dword ptr [ebp - 0x18], 0 */ 24346 ecx = MEM32(ebp + (-0x18)); /* 0x361299A9: mov ecx, dword ptr [ebp - 0x18] */ 24347 MEM32(esi + 0x70) = edx; /* 0x361299AC: mov dword ptr [esi + 0x70], edx */ 24348 MEM32(ebp + (-0x14)) = 0; /* 0x361299AF: mov dword ptr [ebp - 0x14], 0 */ 24349 edx = MEM32(ebp + (-0x14)); /* 0x361299B6: mov edx, dword ptr [ebp - 0x14] */ 24350 MEM32(esi + 0x74) = eax; /* 0x361299B9: mov dword ptr [esi + 0x74], eax */ 24351 MEM32(esi + 0x78) = ecx; /* 0x361299BC: mov dword ptr [esi + 0x78], ecx */ 24352 MEM32(esi + 0x7C) = edx; /* 0x361299BF: mov dword ptr [esi + 0x7c], edx */ 24353 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361299C2: mov byte ptr [esi + 0x14], 1 */ 24354 L_361299C6: 24355 eax = MEM32(ebp + 0x8); /* 0x361299C6: mov eax, dword ptr [ebp + 8] */ 24356 PUSH32(esp, eax); /* 0x361299C9: push eax */ 24357 ecx = esi; /* 0x361299CA: mov ecx, esi */ 24358 RECOMP_ICALL(0x361299F0u); /* 0x361299CC: call 0x361299f0 */ /* not lifted */ 24359 RECOMP_FLAGS_IN(); 24360 ecx = MEM32(ebp + (-0xC)); /* 0x361299D1: mov ecx, dword ptr [ebp - 0xc] */ 24361 edi = POP32_VAL(esp); /* 0x361299D4: pop edi */ 24362 eax = esi; /* 0x361299D5: mov eax, esi */ 24363 esi = POP32_VAL(esp); /* 0x361299D7: pop esi */ 24364 ebx = POP32_VAL(esp); /* 0x361299D8: pop ebx */ 24365 MEM32(FS_BASE + (0)) = ecx; /* 0x361299D9: mov dword ptr fs:[0], ecx */ 24366 esp = ebp; /* 0x361299E0: mov esp, ebp */ 24367 ebp = POP32_VAL(esp); /* 0x361299E2: pop ebp */ 24368 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361299E3: ret 8 */ 24369 RECOMP_REGS_OUT(); 24370 } 24371 24372 void sub_36129936(void) { 24373 int _fpu_cmp = 0; 24374 uint32_t _cf = 0; 24375 int _df = 1; 24376 uint32_t _flag_k = FK_NONE; 24377 uint32_t _flag_a = 0, _flag_b = 0; 24378 uint32_t _itail_tgt = 0; 24379 RECOMP_REGS_LOCALS 24380 RECOMP_ENTER(0x36129936u); 24381 24382 L_36129936: 24383 /* cmp ebx, edi */ /* 0x36129936: cmp ebx, edi */ 24384 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 24385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24386 _flag_k = FK_CMP; 24387 if (CMP_EQ(_flag_a, _flag_b)) goto L_36129974; /* 0x36129938: je 0x36129974 */ 24388 L_3612993A: 24389 edx = ebp + (-0x1C); /* 0x3612993A: lea edx, [ebp - 0x1c] */ 24390 PUSH32(esp, edx); /* 0x3612993D: push edx */ 24391 ecx = ebx; /* 0x3612993E: mov ecx, ebx */ 24392 RECOMP_ICALL(0x36131BB0u); /* 0x36129940: call 0x36131bb0 */ /* not lifted */ 24393 RECOMP_FLAGS_IN(); 24394 ecx = MEM32(eax); /* 0x36129945: mov ecx, dword ptr [eax] */ 24395 MEM32(esi + 0x68) = ecx; /* 0x36129947: mov dword ptr [esi + 0x68], ecx */ 24396 edx = MEM32(eax + 0x4); /* 0x3612994A: mov edx, dword ptr [eax + 4] */ 24397 MEM32(esi + 0x6C) = edx; /* 0x3612994D: mov dword ptr [esi + 0x6c], edx */ 24398 eax = MEM32(eax + 0x8); /* 0x36129950: mov eax, dword ptr [eax + 8] */ 24399 ecx = ebp + (-0x1C); /* 0x36129953: lea ecx, [ebp - 0x1c] */ 24400 PUSH32(esp, ecx); /* 0x36129956: push ecx */ 24401 ecx = ebx; /* 0x36129957: mov ecx, ebx */ 24402 MEM32(esi + 0x70) = eax; /* 0x36129959: mov dword ptr [esi + 0x70], eax */ 24403 RECOMP_ICALL(0x36131C00u); /* 0x3612995C: call 0x36131c00 */ /* not lifted */ 24404 RECOMP_FLAGS_IN(); 24405 edx = MEM32(eax); /* 0x36129961: mov edx, dword ptr [eax] */ 24406 MEM32(esi + 0x74) = edx; /* 0x36129963: mov dword ptr [esi + 0x74], edx */ 24407 ecx = MEM32(eax + 0x4); /* 0x36129966: mov ecx, dword ptr [eax + 4] */ 24408 MEM32(esi + 0x78) = ecx; /* 0x36129969: mov dword ptr [esi + 0x78], ecx */ 24409 edx = MEM32(eax + 0x8); /* 0x3612996C: mov edx, dword ptr [eax + 8] */ 24410 MEM32(esi + 0x7C) = edx; /* 0x3612996F: mov dword ptr [esi + 0x7c], edx */ 24411 goto L_361299C6; /* 0x36129972: jmp 0x361299c6 */ 24412 L_36129974: 24413 MEM32(ebp + (-0x1C)) = 0; /* 0x36129974: mov dword ptr [ebp - 0x1c], 0 */ 24414 eax = MEM32(ebp + (-0x1C)); /* 0x3612997B: mov eax, dword ptr [ebp - 0x1c] */ 24415 MEM32(ebp + (-0x18)) = 0; /* 0x3612997E: mov dword ptr [ebp - 0x18], 0 */ 24416 ecx = MEM32(ebp + (-0x18)); /* 0x36129985: mov ecx, dword ptr [ebp - 0x18] */ 24417 MEM32(ebp + (-0x14)) = 0; /* 0x36129988: mov dword ptr [ebp - 0x14], 0 */ 24418 edx = MEM32(ebp + (-0x14)); /* 0x3612998F: mov edx, dword ptr [ebp - 0x14] */ 24419 MEM32(esi + 0x68) = eax; /* 0x36129992: mov dword ptr [esi + 0x68], eax */ 24420 MEM32(esi + 0x6C) = ecx; /* 0x36129995: mov dword ptr [esi + 0x6c], ecx */ 24421 MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x36129998: mov dword ptr [ebp - 0x1c], 0x3f800000 */ 24422 eax = MEM32(ebp + (-0x1C)); /* 0x3612999F: mov eax, dword ptr [ebp - 0x1c] */ 24423 MEM32(ebp + (-0x18)) = 0; /* 0x361299A2: mov dword ptr [ebp - 0x18], 0 */ 24424 ecx = MEM32(ebp + (-0x18)); /* 0x361299A9: mov ecx, dword ptr [ebp - 0x18] */ 24425 MEM32(esi + 0x70) = edx; /* 0x361299AC: mov dword ptr [esi + 0x70], edx */ 24426 MEM32(ebp + (-0x14)) = 0; /* 0x361299AF: mov dword ptr [ebp - 0x14], 0 */ 24427 edx = MEM32(ebp + (-0x14)); /* 0x361299B6: mov edx, dword ptr [ebp - 0x14] */ 24428 MEM32(esi + 0x74) = eax; /* 0x361299B9: mov dword ptr [esi + 0x74], eax */ 24429 MEM32(esi + 0x78) = ecx; /* 0x361299BC: mov dword ptr [esi + 0x78], ecx */ 24430 MEM32(esi + 0x7C) = edx; /* 0x361299BF: mov dword ptr [esi + 0x7c], edx */ 24431 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361299C2: mov byte ptr [esi + 0x14], 1 */ 24432 L_361299C6: 24433 eax = MEM32(ebp + 0x8); /* 0x361299C6: mov eax, dword ptr [ebp + 8] */ 24434 PUSH32(esp, eax); /* 0x361299C9: push eax */ 24435 ecx = esi; /* 0x361299CA: mov ecx, esi */ 24436 RECOMP_ICALL(0x361299F0u); /* 0x361299CC: call 0x361299f0 */ /* not lifted */ 24437 RECOMP_FLAGS_IN(); 24438 ecx = MEM32(ebp + (-0xC)); /* 0x361299D1: mov ecx, dword ptr [ebp - 0xc] */ 24439 edi = POP32_VAL(esp); /* 0x361299D4: pop edi */ 24440 eax = esi; /* 0x361299D5: mov eax, esi */ 24441 esi = POP32_VAL(esp); /* 0x361299D7: pop esi */ 24442 ebx = POP32_VAL(esp); /* 0x361299D8: pop ebx */ 24443 MEM32(FS_BASE + (0)) = ecx; /* 0x361299D9: mov dword ptr fs:[0], ecx */ 24444 esp = ebp; /* 0x361299E0: mov esp, ebp */ 24445 ebp = POP32_VAL(esp); /* 0x361299E2: pop ebp */ 24446 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361299E3: ret 8 */ 24447 RECOMP_REGS_OUT(); 24448 } 24449 24450 void sub_36129985(void) { 24451 int _fpu_cmp = 0; 24452 uint32_t _cf = 0; 24453 int _df = 1; 24454 uint32_t _flag_k = FK_NONE; 24455 uint32_t _flag_a = 0, _flag_b = 0; 24456 uint32_t _itail_tgt = 0; 24457 RECOMP_REGS_LOCALS 24458 RECOMP_ENTER(0x36129985u); 24459 24460 L_36129985: 24461 ecx = MEM32(ebp + (-0x18)); /* 0x36129985: mov ecx, dword ptr [ebp - 0x18] */ 24462 MEM32(ebp + (-0x14)) = 0; /* 0x36129988: mov dword ptr [ebp - 0x14], 0 */ 24463 edx = MEM32(ebp + (-0x14)); /* 0x3612998F: mov edx, dword ptr [ebp - 0x14] */ 24464 MEM32(esi + 0x68) = eax; /* 0x36129992: mov dword ptr [esi + 0x68], eax */ 24465 MEM32(esi + 0x6C) = ecx; /* 0x36129995: mov dword ptr [esi + 0x6c], ecx */ 24466 MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x36129998: mov dword ptr [ebp - 0x1c], 0x3f800000 */ 24467 eax = MEM32(ebp + (-0x1C)); /* 0x3612999F: mov eax, dword ptr [ebp - 0x1c] */ 24468 MEM32(ebp + (-0x18)) = 0; /* 0x361299A2: mov dword ptr [ebp - 0x18], 0 */ 24469 ecx = MEM32(ebp + (-0x18)); /* 0x361299A9: mov ecx, dword ptr [ebp - 0x18] */ 24470 MEM32(esi + 0x70) = edx; /* 0x361299AC: mov dword ptr [esi + 0x70], edx */ 24471 MEM32(ebp + (-0x14)) = 0; /* 0x361299AF: mov dword ptr [ebp - 0x14], 0 */ 24472 edx = MEM32(ebp + (-0x14)); /* 0x361299B6: mov edx, dword ptr [ebp - 0x14] */ 24473 MEM32(esi + 0x74) = eax; /* 0x361299B9: mov dword ptr [esi + 0x74], eax */ 24474 MEM32(esi + 0x78) = ecx; /* 0x361299BC: mov dword ptr [esi + 0x78], ecx */ 24475 MEM32(esi + 0x7C) = edx; /* 0x361299BF: mov dword ptr [esi + 0x7c], edx */ 24476 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361299C2: mov byte ptr [esi + 0x14], 1 */ 24477 eax = MEM32(ebp + 0x8); /* 0x361299C6: mov eax, dword ptr [ebp + 8] */ 24478 PUSH32(esp, eax); /* 0x361299C9: push eax */ 24479 ecx = esi; /* 0x361299CA: mov ecx, esi */ 24480 RECOMP_ICALL(0x361299F0u); /* 0x361299CC: call 0x361299f0 */ /* not lifted */ 24481 RECOMP_FLAGS_IN(); 24482 ecx = MEM32(ebp + (-0xC)); /* 0x361299D1: mov ecx, dword ptr [ebp - 0xc] */ 24483 edi = POP32_VAL(esp); /* 0x361299D4: pop edi */ 24484 eax = esi; /* 0x361299D5: mov eax, esi */ 24485 esi = POP32_VAL(esp); /* 0x361299D7: pop esi */ 24486 ebx = POP32_VAL(esp); /* 0x361299D8: pop ebx */ 24487 MEM32(FS_BASE + (0)) = ecx; /* 0x361299D9: mov dword ptr fs:[0], ecx */ 24488 esp = ebp; /* 0x361299E0: mov esp, ebp */ 24489 ebp = POP32_VAL(esp); /* 0x361299E2: pop ebp */ 24490 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361299E3: ret 8 */ 24491 RECOMP_REGS_OUT(); 24492 } 24493 24494 void sub_361299A9(void) { 24495 int _fpu_cmp = 0; 24496 uint32_t _cf = 0; 24497 int _df = 1; 24498 uint32_t _flag_k = FK_NONE; 24499 uint32_t _flag_a = 0, _flag_b = 0; 24500 uint32_t _itail_tgt = 0; 24501 RECOMP_REGS_LOCALS 24502 RECOMP_ENTER(0x361299A9u); 24503 24504 L_361299A9: 24505 ecx = MEM32(ebp + (-0x18)); /* 0x361299A9: mov ecx, dword ptr [ebp - 0x18] */ 24506 MEM32(esi + 0x70) = edx; /* 0x361299AC: mov dword ptr [esi + 0x70], edx */ 24507 MEM32(ebp + (-0x14)) = 0; /* 0x361299AF: mov dword ptr [ebp - 0x14], 0 */ 24508 edx = MEM32(ebp + (-0x14)); /* 0x361299B6: mov edx, dword ptr [ebp - 0x14] */ 24509 MEM32(esi + 0x74) = eax; /* 0x361299B9: mov dword ptr [esi + 0x74], eax */ 24510 MEM32(esi + 0x78) = ecx; /* 0x361299BC: mov dword ptr [esi + 0x78], ecx */ 24511 MEM32(esi + 0x7C) = edx; /* 0x361299BF: mov dword ptr [esi + 0x7c], edx */ 24512 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361299C2: mov byte ptr [esi + 0x14], 1 */ 24513 eax = MEM32(ebp + 0x8); /* 0x361299C6: mov eax, dword ptr [ebp + 8] */ 24514 PUSH32(esp, eax); /* 0x361299C9: push eax */ 24515 ecx = esi; /* 0x361299CA: mov ecx, esi */ 24516 RECOMP_ICALL(0x361299F0u); /* 0x361299CC: call 0x361299f0 */ /* not lifted */ 24517 RECOMP_FLAGS_IN(); 24518 ecx = MEM32(ebp + (-0xC)); /* 0x361299D1: mov ecx, dword ptr [ebp - 0xc] */ 24519 edi = POP32_VAL(esp); /* 0x361299D4: pop edi */ 24520 eax = esi; /* 0x361299D5: mov eax, esi */ 24521 esi = POP32_VAL(esp); /* 0x361299D7: pop esi */ 24522 ebx = POP32_VAL(esp); /* 0x361299D8: pop ebx */ 24523 MEM32(FS_BASE + (0)) = ecx; /* 0x361299D9: mov dword ptr fs:[0], ecx */ 24524 esp = ebp; /* 0x361299E0: mov esp, ebp */ 24525 ebp = POP32_VAL(esp); /* 0x361299E2: pop ebp */ 24526 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361299E3: ret 8 */ 24527 RECOMP_REGS_OUT(); 24528 } 24529 24530 void sub_361299C6(void) { 24531 int _fpu_cmp = 0; 24532 uint32_t _cf = 0; 24533 int _df = 1; 24534 uint32_t _flag_k = FK_NONE; 24535 uint32_t _flag_a = 0, _flag_b = 0; 24536 uint32_t _itail_tgt = 0; 24537 RECOMP_REGS_LOCALS 24538 RECOMP_ENTER(0x361299C6u); 24539 24540 L_361299C6: 24541 eax = MEM32(ebp + 0x8); /* 0x361299C6: mov eax, dword ptr [ebp + 8] */ 24542 PUSH32(esp, eax); /* 0x361299C9: push eax */ 24543 ecx = esi; /* 0x361299CA: mov ecx, esi */ 24544 RECOMP_ICALL(0x361299F0u); /* 0x361299CC: call 0x361299f0 */ /* not lifted */ 24545 RECOMP_FLAGS_IN(); 24546 ecx = MEM32(ebp + (-0xC)); /* 0x361299D1: mov ecx, dword ptr [ebp - 0xc] */ 24547 edi = POP32_VAL(esp); /* 0x361299D4: pop edi */ 24548 eax = esi; /* 0x361299D5: mov eax, esi */ 24549 esi = POP32_VAL(esp); /* 0x361299D7: pop esi */ 24550 ebx = POP32_VAL(esp); /* 0x361299D8: pop ebx */ 24551 MEM32(FS_BASE + (0)) = ecx; /* 0x361299D9: mov dword ptr fs:[0], ecx */ 24552 esp = ebp; /* 0x361299E0: mov esp, ebp */ 24553 ebp = POP32_VAL(esp); /* 0x361299E2: pop ebp */ 24554 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361299E3: ret 8 */ 24555 RECOMP_REGS_OUT(); 24556 } 24557 24558 void sub_361299F0(void) { 24559 int _fpu_cmp = 0; 24560 uint32_t _cf = 0; 24561 int _df = 1; 24562 uint32_t _flag_k = FK_NONE; 24563 uint32_t _flag_a = 0, _flag_b = 0; 24564 uint32_t _itail_tgt = 0; 24565 RECOMP_REGS_LOCALS 24566 RECOMP_ENTER(0x361299F0u); 24567 24568 L_361299F0: 24569 PUSH32(esp, ebp); /* 0x361299F0: push ebp */ 24570 ebp = esp; /* 0x361299F1: mov ebp, esp */ 24571 PUSH32(esp, 0xFFFFFFFFu); /* 0x361299F3: push -1 */ 24572 PUSH32(esp, 0x3616BC57u); /* 0x361299F5: push 0x3616bc57 */ 24573 eax = MEM32(FS_BASE + (0)); /* 0x361299FA: mov eax, dword ptr fs:[0] */ 24574 PUSH32(esp, eax); /* 0x36129A00: push eax */ 24575 MEM32(FS_BASE + (0)) = esp; /* 0x36129A01: mov dword ptr fs:[0], esp */ 24576 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x78u); 24577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24578 esp = esp - 0x78u; /* 0x36129A08: sub esp, 0x78 */ 24579 _flag_k = FK_CMP; 24580 PUSH32(esp, ebx); /* 0x36129A0B: push ebx */ 24581 PUSH32(esp, esi); /* 0x36129A0C: push esi */ 24582 PUSH32(esp, edi); /* 0x36129A0D: push edi */ 24583 esi = ecx; /* 0x36129A0E: mov esi, ecx */ 24584 RECOMP_ICALL(0x36129E60u); /* 0x36129A10: call 0x36129e60 */ /* not lifted */ 24585 RECOMP_FLAGS_IN(); 24586 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x36129A15: fld dword ptr [esi + 0x3c] */ 24587 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36129A18: fmul dword ptr [0x36174f7c] */ 24588 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36129A1E: fstp dword ptr [ebp - 0x10] */ 24589 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36129A21: fld dword ptr [ebp - 0x10] */ 24590 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36129A24: fsub qword ptr [0x361755c8] */ 24591 MEM32(ebp + (-0x14)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36129A2A: fistp dword ptr [ebp - 0x14] */ 24592 fp_push(*(float*)&MEM32(esi + 0x40)); /* 0x36129A2D: fld dword ptr [esi + 0x40] */ 24593 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36129A30: fmul dword ptr [0x36174f7c] */ 24594 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36129A36: fstp dword ptr [ebp - 0x10] */ 24595 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36129A39: fld dword ptr [ebp - 0x10] */ 24596 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36129A3C: fsub qword ptr [0x361755c8] */ 24597 MEM32(ebp + (-0x18)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36129A42: fistp dword ptr [ebp - 0x18] */ 24598 fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x36129A45: fld dword ptr [esi + 0x44] */ 24599 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36129A48: fmul dword ptr [0x36174f7c] */ 24600 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36129A4E: fstp dword ptr [ebp - 0x10] */ 24601 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36129A51: fld dword ptr [ebp - 0x10] */ 24602 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36129A54: fsub qword ptr [0x361755c8] */ 24603 MEM32(ebp + (-0x1C)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36129A5A: fistp dword ptr [ebp - 0x1c] */ 24604 fp_push(*(float*)&MEM32(esi + 0x48)); /* 0x36129A5D: fld dword ptr [esi + 0x48] */ 24605 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36129A60: fmul dword ptr [0x36174f7c] */ 24606 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36129A66: fstp dword ptr [ebp - 0x10] */ 24607 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36129A69: fld dword ptr [ebp - 0x10] */ 24608 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36129A6C: fsub qword ptr [0x361755c8] */ 24609 MEM32(ebp + (-0x20)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36129A72: fistp dword ptr [ebp - 0x20] */ 24610 eax = MEM32(ebp + (-0x14)); /* 0x36129A75: mov eax, dword ptr [ebp - 0x14] */ 24611 ecx = MEM32(ebp + (-0x18)); /* 0x36129A78: mov ecx, dword ptr [ebp - 0x18] */ 24612 edi = MEM32(ebp + (-0x1C)); /* 0x36129A7B: mov edi, dword ptr [ebp - 0x1c] */ 24613 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x36129A7E: shl eax, 8 */ 24614 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 24615 eax = eax << 8u; /* 0x36129A7E: shl eax, 8 */ 24616 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 24617 eax = eax | ecx; /* 0x36129A81: or eax, ecx */ 24618 _cf = 0; 24619 _flag_k = FK_TEST; 24620 ecx = MEM32(ebp + (-0x20)); /* 0x36129A83: mov ecx, dword ptr [ebp - 0x20] */ 24621 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x36129A86: shl eax, 8 */ 24622 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 24623 eax = eax << 8u; /* 0x36129A86: shl eax, 8 */ 24624 _flag_a = (uint32_t)((eax | edi)); _flag_b = (uint32_t)((eax | edi)); 24625 eax = eax | edi; /* 0x36129A89: or eax, edi */ 24626 _cf = 0; 24627 _flag_k = FK_TEST; 24628 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x36129A8B: shl eax, 8 */ 24629 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 24630 eax = eax << 8u; /* 0x36129A8B: shl eax, 8 */ 24631 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 24632 eax = eax | ecx; /* 0x36129A8E: or eax, ecx */ 24633 _cf = 0; 24634 _flag_k = FK_TEST; 24635 ecx = MEM32(esi + 0x4); /* 0x36129A90: mov ecx, dword ptr [esi + 4] */ 24636 PUSH32(esp, ecx); /* 0x36129A93: push ecx */ 24637 MEM32(esi + 0x80) = eax; /* 0x36129A94: mov dword ptr [esi + 0x80], eax */ 24638 RECOMP_ICALL(0x360F7B00u); /* 0x36129A9A: call 0x360f7b00 */ /* not lifted */ 24639 RECOMP_FLAGS_IN(); 24640 ecx = eax; /* 0x36129A9F: mov ecx, eax */ 24641 RECOMP_ICALL(0x360FBFF0u); /* 0x36129AA1: call 0x360fbff0 */ /* not lifted */ 24642 RECOMP_FLAGS_IN(); 24643 ecx = eax; /* 0x36129AA6: mov ecx, eax */ 24644 RECOMP_ICALL(0x361371A0u); /* 0x36129AA8: call 0x361371a0 */ /* not lifted */ 24645 RECOMP_FLAGS_IN(); 24646 ebx = eax; /* 0x36129AAD: mov ebx, eax */ 24647 edx = esi + 0x74; /* 0x36129AAF: lea edx, [esi + 0x74] */ 24648 eax = MEM32(edx); /* 0x36129AB2: mov eax, dword ptr [edx] */ 24649 ecx = MEM32(edx + 0x4); /* 0x36129AB4: mov ecx, dword ptr [edx + 4] */ 24650 edx = MEM32(edx + 0x8); /* 0x36129AB7: mov edx, dword ptr [edx + 8] */ 24651 MEM32(ebp + (-0x38)) = eax; /* 0x36129ABA: mov dword ptr [ebp - 0x38], eax */ 24652 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x36129ABD: fld dword ptr [ebp - 0x38] */ 24653 _st[0] -= (double)*(float*)ADDR(esi + 0x68); /* 0x36129AC0: fsub dword ptr [esi + 0x68] */ 24654 MEM32(ebp + (-0x34)) = ecx; /* 0x36129AC3: mov dword ptr [ebp - 0x34], ecx */ 24655 MEM32(ebp + (-0x30)) = edx; /* 0x36129AC6: mov dword ptr [ebp - 0x30], edx */ 24656 edi = esi + 0x84; /* 0x36129AC9: lea edi, [esi + 0x84] */ 24657 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36129ACF: fstp dword ptr [ebp - 0x38] */ 24658 ecx = MEM32(ebp + (-0x38)); /* 0x36129AD2: mov ecx, dword ptr [ebp - 0x38] */ 24659 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36129AD5: fld dword ptr [ebp - 0x34] */ 24660 eax = edi; /* 0x36129AD8: mov eax, edi */ 24661 _st[0] -= (double)*(float*)ADDR(esi + 0x6C); /* 0x36129ADA: fsub dword ptr [esi + 0x6c] */ 24662 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36129ADD: fstp dword ptr [ebp - 0x34] */ 24663 edx = MEM32(ebp + (-0x34)); /* 0x36129AE0: mov edx, dword ptr [ebp - 0x34] */ 24664 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36129AE3: fld dword ptr [ebp - 0x30] */ 24665 _st[0] -= (double)*(float*)ADDR(esi + 0x70); /* 0x36129AE6: fsub dword ptr [esi + 0x70] */ 24666 MEM32(eax) = ecx; /* 0x36129AE9: mov dword ptr [eax], ecx */ 24667 MEM32(eax + 0x4) = edx; /* 0x36129AEB: mov dword ptr [eax + 4], edx */ 24668 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36129AEE: fstp dword ptr [ebp - 0x30] */ 24669 ecx = MEM32(ebp + (-0x30)); /* 0x36129AF1: mov ecx, dword ptr [ebp - 0x30] */ 24670 MEM32(eax + 0x8) = ecx; /* 0x36129AF4: mov dword ptr [eax + 8], ecx */ 24671 fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x36129AF7: fld dword ptr [edi + 8] */ 24672 fp_push(*(float*)&MEM32(edi + 0x4)); /* 0x36129AFA: fld dword ptr [edi + 4] */ 24673 fp_push(*(float*)&MEM32(edi)); /* 0x36129AFD: fld dword ptr [edi] */ 24674 fp_push(_st[0]); /* 0x36129AFF: fld st(0) */ 24675 _st[0] *= _st[1]; /* 0x36129B01: fmul st(1) */ 24676 fp_push(_st[2]); /* 0x36129B03: fld st(2) */ 24677 _st[0] *= _st[3]; /* 0x36129B05: fmul st(3) */ 24678 { double _v = fp_pop(); _st[0] += _v; } /* 0x36129B07: faddp st(1) */ 24679 fp_push(_st[3]); /* 0x36129B09: fld st(3) */ 24680 _st[0] *= _st[4]; /* 0x36129B0B: fmul st(4) */ 24681 { double _v = fp_pop(); _st[0] += _v; } /* 0x36129B0D: faddp st(1) */ 24682 _st[0] = sqrt(_st[0]); /* 0x36129B0F: fsqrt */ 24683 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36129B11: fstp st(3) */ 24684 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36129B13: fstp st(0) */ 24685 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36129B15: fstp st(0) */ 24686 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170850)); /* 0x36129B17: fcom dword ptr [0x36170850] */ 24687 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x90) = _v; } /* 0x36129B1D: fst dword ptr [esi + 0x90] */ 24688 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36129B23: fnstsw ax */ 24689 /* test HI8(eax), 1 */ /* 0x36129B25: test ah, 1 */ 24690 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 24691 _cf = 0; 24692 _flag_k = FK_NARROW(FK_TEST, 24); 24693 if (TEST_Z(_flag_a, _flag_b)) goto L_36129B43; /* 0x36129B28: je 0x36129b43 */ 24694 L_36129B2A: 24695 edi = POP32_VAL(esp); /* 0x36129B2A: pop edi */ 24696 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36129B2B: fstp st(0) */ 24697 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x36129B2D: mov byte ptr [esi + 0x14], 1 */ 24698 esi = POP32_VAL(esp); /* 0x36129B31: pop esi */ 24699 ebx = POP32_VAL(esp); /* 0x36129B32: pop ebx */ 24700 ecx = MEM32(ebp + (-0xC)); /* 0x36129B33: mov ecx, dword ptr [ebp - 0xc] */ 24701 MEM32(FS_BASE + (0)) = ecx; /* 0x36129B36: mov dword ptr fs:[0], ecx */ 24702 esp = ebp; /* 0x36129B3D: mov esp, ebp */ 24703 ebp = POP32_VAL(esp); /* 0x36129B3F: pop ebp */ 24704 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36129B40: ret 4 */ 24705 L_36129B43: 24706 _st[0] *= (double)*(float*)ADDR(0x361710C4); /* 0x36129B43: fmul dword ptr [0x361710c4] */ 24707 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x30)); /* 0x36129B49: fcom dword ptr [esi + 0x30] */ 24708 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36129B4C: fnstsw ax */ 24709 /* test HI8(eax), 1 */ /* 0x36129B4E: test ah, 1 */ 24710 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 24711 _cf = 0; 24712 _flag_k = FK_NARROW(FK_TEST, 24); 24713 if (TEST_Z(_flag_a, _flag_b)) goto L_36129B58; /* 0x36129B51: je 0x36129b58 */ 24714 L_36129B53: 24715 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x36129B53: fstp dword ptr [esi + 0x30] */ 24716 goto L_36129B5A; /* 0x36129B56: jmp 0x36129b5a */ 24717 L_36129B58: 24718 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36129B58: fstp st(0) */ 24719 L_36129B5A: 24720 fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x36129B5A: fld dword ptr [edi + 8] */ 24721 edx = ebp + (-0x2C); /* 0x36129B5D: lea edx, [ebp - 0x2c] */ 24722 fp_push(*(float*)&MEM32(edi + 0x4)); /* 0x36129B60: fld dword ptr [edi + 4] */ 24723 PUSH32(esp, edx); /* 0x36129B63: push edx */ 24724 fp_push(*(float*)&MEM32(edi)); /* 0x36129B64: fld dword ptr [edi] */ 24725 PUSH32(esp, edi); /* 0x36129B66: push edi */ 24726 fp_push(_st[0]); /* 0x36129B67: fld st(0) */ 24727 MEM32(ebp + (-0x2C)) = 0; /* 0x36129B69: mov dword ptr [ebp - 0x2c], 0 */ 24728 _st[0] *= _st[1]; /* 0x36129B70: fmul st(1) */ 24729 MEM32(ebp + (-0x28)) = 0; /* 0x36129B72: mov dword ptr [ebp - 0x28], 0 */ 24730 fp_push(_st[2]); /* 0x36129B79: fld st(2) */ 24731 MEM32(ebp + (-0x24)) = 0; /* 0x36129B7B: mov dword ptr [ebp - 0x24], 0 */ 24732 _st[0] *= _st[3]; /* 0x36129B82: fmul st(3) */ 24733 { double _v = fp_pop(); _st[0] += _v; } /* 0x36129B84: faddp st(1) */ 24734 fp_push(_st[3]); /* 0x36129B86: fld st(3) */ 24735 _st[0] *= _st[4]; /* 0x36129B88: fmul st(4) */ 24736 { double _v = fp_pop(); _st[0] += _v; } /* 0x36129B8A: faddp st(1) */ 24737 _st[0] = sqrt(_st[0]); /* 0x36129B8C: fsqrt */ 24738 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36129B8E: fstp st(3) */ 24739 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36129B90: fstp st(0) */ 24740 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36129B92: fstp st(0) */ 24741 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36129B94: fdivr dword ptr [0x36170380] */ 24742 fp_push(_st[0]); /* 0x36129B9A: fld st(0) */ 24743 _st[0] *= (double)*(float*)ADDR(edi); /* 0x36129B9C: fmul dword ptr [edi] */ 24744 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36129B9E: fstp dword ptr [edi] */ 24745 fp_push(_st[0]); /* 0x36129BA0: fld st(0) */ 24746 _st[0] *= (double)*(float*)ADDR(edi + 0x4); /* 0x36129BA2: fmul dword ptr [edi + 4] */ 24747 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x36129BA5: fstp dword ptr [edi + 4] */ 24748 _st[0] *= (double)*(float*)ADDR(edi + 0x8); /* 0x36129BA8: fmul dword ptr [edi + 8] */ 24749 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x8) = _v; } /* 0x36129BAB: fstp dword ptr [edi + 8] */ 24750 RECOMP_ICALL(0x360FCE60u); /* 0x36129BAE: call 0x360fce60 */ /* not lifted */ 24751 RECOMP_FLAGS_IN(); 24752 eax = edi; /* 0x36129BB3: mov eax, edi */ 24753 ecx = MEM32(eax); /* 0x36129BB5: mov ecx, dword ptr [eax] */ 24754 edx = MEM32(eax + 0x4); /* 0x36129BB7: mov edx, dword ptr [eax + 4] */ 24755 eax = MEM32(eax + 0x8); /* 0x36129BBA: mov eax, dword ptr [eax + 8] */ 24756 MEM32(ebp + (-0x34)) = edx; /* 0x36129BBD: mov dword ptr [ebp - 0x34], edx */ 24757 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36129BC0: fld dword ptr [ebp - 0x34] */ 24758 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36129BC3: fmul dword ptr [ebp - 0x24] */ 24759 MEM32(ebp + (-0x30)) = eax; /* 0x36129BC6: mov dword ptr [ebp - 0x30], eax */ 24760 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36129BC9: fld dword ptr [ebp - 0x30] */ 24761 MEM32(ebp + (-0x38)) = ecx; /* 0x36129BCC: mov dword ptr [ebp - 0x38], ecx */ 24762 _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36129BCF: fmul dword ptr [ebp - 0x28] */ 24763 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36129BD2: fsubp st(1) */ 24764 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36129BD4: fld dword ptr [ebp - 0x30] */ 24765 _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x36129BD7: fmul dword ptr [ebp - 0x2c] */ 24766 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x36129BDA: fld dword ptr [ebp - 0x38] */ 24767 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36129BDD: fmul dword ptr [ebp - 0x24] */ 24768 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36129BE0: fsubp st(1) */ 24769 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x36129BE2: fld dword ptr [ebp - 0x38] */ 24770 _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36129BE5: fmul dword ptr [ebp - 0x28] */ 24771 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36129BE8: fld dword ptr [ebp - 0x34] */ 24772 _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x36129BEB: fmul dword ptr [ebp - 0x2c] */ 24773 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36129BEE: fsubp st(1) */ 24774 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36129BF0: fstp dword ptr [ebp - 0x30] */ 24775 eax = MEM32(ebp + (-0x30)); /* 0x36129BF3: mov eax, dword ptr [ebp - 0x30] */ 24776 fp_push(_st[1]); /* 0x36129BF6: fld st(1) */ 24777 MEM32(ebp + (-0x3C)) = eax; /* 0x36129BF8: mov dword ptr [ebp - 0x3c], eax */ 24778 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36129BFB: fstp dword ptr [ebp - 0x38] */ 24779 ecx = MEM32(ebp + (-0x38)); /* 0x36129BFE: mov ecx, dword ptr [ebp - 0x38] */ 24780 MEM32(ebp + (-0x44)) = ecx; /* 0x36129C01: mov dword ptr [ebp - 0x44], ecx */ 24781 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36129C04: fst dword ptr [ebp - 0x34] */ 24782 edx = MEM32(ebp + (-0x34)); /* 0x36129C07: mov edx, dword ptr [ebp - 0x34] */ 24783 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36129C0A: fld dword ptr [ebp - 0x30] */ 24784 MEM32(ebp + (-0x40)) = edx; /* 0x36129C0D: mov dword ptr [ebp - 0x40], edx */ 24785 _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36129C10: fmul dword ptr [ebp - 0x30] */ 24786 fp_push(_st[1]); /* 0x36129C13: fld st(1) */ 24787 _st[0] *= _st[2]; /* 0x36129C15: fmul st(2) */ 24788 { double _v = fp_pop(); _st[0] += _v; } /* 0x36129C17: faddp st(1) */ 24789 fp_push(_st[2]); /* 0x36129C19: fld st(2) */ 24790 _st[0] *= _st[3]; /* 0x36129C1B: fmul st(3) */ 24791 { double _v = fp_pop(); _st[0] += _v; } /* 0x36129C1D: faddp st(1) */ 24792 _st[0] = sqrt(_st[0]); /* 0x36129C1F: fsqrt */ 24793 { _st[1] = _st[0]; g_st_i64[1] = g_st_i64[0]; fp_pop(); } /* 0x36129C21: fstp st(1) */ 24794 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36129C23: fdivr dword ptr [0x36170380] */ 24795 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36129C29: fstp dword ptr [ebp - 0x10] */ 24796 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36129C2C: fmul dword ptr [ebp - 0x10] */ 24797 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36129C2F: fstp dword ptr [ebp - 0x44] */ 24798 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36129C32: fld dword ptr [ebp - 0x10] */ 24799 _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36129C35: fmul dword ptr [ebp - 0x40] */ 24800 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36129C38: fstp dword ptr [ebp - 0x40] */ 24801 MEM32(ebp + (-0x78)) = 0; /* 0x36129C3B: mov dword ptr [ebp - 0x78], 0 */ 24802 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36129C42: fld dword ptr [ebp - 0x10] */ 24803 MEM32(ebp + (-0x68)) = 0; /* 0x36129C45: mov dword ptr [ebp - 0x68], 0 */ 24804 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36129C4C: fmul dword ptr [ebp - 0x3c] */ 24805 MEM32(ebp + (-0x58)) = 0; /* 0x36129C4F: mov dword ptr [ebp - 0x58], 0 */ 24806 MEM32(ebp + (-0x48)) = 0x3F800000u; /* 0x36129C56: mov dword ptr [ebp - 0x48], 0x3f800000 */ 24807 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36129C5D: fstp dword ptr [ebp - 0x3c] */ 24808 fp_push(*(float*)&MEM32(esi + 0x70)); /* 0x36129C60: fld dword ptr [esi + 0x70] */ 24809 fp_push(*(float*)&MEM32(esi + 0x6C)); /* 0x36129C63: fld dword ptr [esi + 0x6c] */ 24810 fp_push(*(float*)&MEM32(esi + 0x68)); /* 0x36129C66: fld dword ptr [esi + 0x68] */ 24811 fp_push(*(float*)&MEM32(esi + 0x8C)); /* 0x36129C69: fld dword ptr [esi + 0x8c] */ 24812 fp_push(*(float*)&MEM32(esi + 0x88)); /* 0x36129C6F: fld dword ptr [esi + 0x88] */ 24813 fp_push(*(float*)&MEM32(edi)); /* 0x36129C75: fld dword ptr [edi] */ 24814 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36129C77: fld dword ptr [ebp - 0x44] */ 24815 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x36129C7A: fstp dword ptr [ebp - 0x84] */ 24816 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36129C80: fld dword ptr [ebp - 0x40] */ 24817 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x36129C83: fstp dword ptr [ebp - 0x80] */ 24818 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36129C86: fld dword ptr [ebp - 0x3c] */ 24819 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36129C89: fstp dword ptr [ebp - 0x7c] */ 24820 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36129C8C: fstp dword ptr [ebp - 0x74] */ 24821 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36129C8F: fstp dword ptr [ebp - 0x70] */ 24822 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36129C92: fstp dword ptr [ebp - 0x6c] */ 24823 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36129C95: fld dword ptr [ebp - 0x2c] */ 24824 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36129C98: fstp dword ptr [ebp - 0x64] */ 24825 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36129C9B: fld dword ptr [ebp - 0x28] */ 24826 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x36129C9E: fstp dword ptr [ebp - 0x60] */ 24827 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36129CA1: fld dword ptr [ebp - 0x24] */ 24828 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36129CA4: fstp dword ptr [ebp - 0x5c] */ 24829 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36129CA7: fstp dword ptr [ebp - 0x54] */ 24830 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36129CAA: fstp dword ptr [ebp - 0x50] */ 24831 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36129CAD: fstp dword ptr [ebp - 0x4c] */ 24832 PUSH32(esp, 0x10Cu); /* 0x36129CB0: push 0x10c */ 24833 MEM32(ebp + (-0x4)) = 0; /* 0x36129CB5: mov dword ptr [ebp - 4], 0 */ 24834 RECOMP_ICALL(0x3615FD6Au); /* 0x36129CBC: call 0x3615fd6a */ /* not lifted */ 24835 RECOMP_FLAGS_IN(); 24836 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 24837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24838 esp = esp + 0xCu; /* 0x36129CC1: add esp, 0xc */ 24839 _flag_k = FK_ADD; 24840 MEM32(ebp + (-0x20)) = eax; /* 0x36129CC4: mov dword ptr [ebp - 0x20], eax */ 24841 /* test eax, eax */ /* 0x36129CC7: test eax, eax */ 24842 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24843 _cf = 0; 24844 _flag_k = FK_TEST; 24845 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36129CC9: mov byte ptr [ebp - 4], 1 */ 24846 if (TEST_Z(_flag_a, _flag_b)) goto L_36129CD8; /* 0x36129CCD: je 0x36129cd8 */ 24847 L_36129CCF: 24848 ecx = eax; /* 0x36129CCF: mov ecx, eax */ 24849 RECOMP_ICALL(0x36132920u); /* 0x36129CD1: call 0x36132920 */ /* not lifted */ 24850 RECOMP_FLAGS_IN(); 24851 goto L_36129CDA; /* 0x36129CD6: jmp 0x36129cda */ 24852 L_36129CD8: 24853 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24854 eax = 0; /* 0x36129CD8: xor eax, eax */ 24855 _cf = 0; 24856 _flag_k = FK_TEST; 24857 L_36129CDA: 24858 MEM32(esi + 0x20) = eax; /* 0x36129CDA: mov dword ptr [esi + 0x20], eax */ 24859 eax = MEM32(esi + 0x28); /* 0x36129CDD: mov eax, dword ptr [esi + 0x28] */ 24860 ecx = eax; /* 0x36129CE0: mov ecx, eax */ 24861 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 24862 ecx = ecx & 2; /* 0x36129CE2: and ecx, 2 */ 24863 _cf = 0; 24864 _flag_k = FK_TEST; 24865 /* cmp LO8(ecx), 2 */ /* 0x36129CE5: cmp cl, 2 */ 24866 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(2) << 24; 24867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24868 _flag_k = FK_NARROW(FK_CMP, 24); 24869 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36129CE8: sete dl */ 24870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 24871 eax = eax & 1; /* 0x36129CEB: and eax, 1 */ 24872 _cf = 0; 24873 _flag_k = FK_TEST; 24874 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 24875 SET_LO8(eax, LO8(eax) - 1); /* 0x36129CEE: dec al */ 24876 _flag_k = FK_NARROW(FK_DEC, 24); 24877 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24878 _cf = (LO8(eax)) != 0; 24879 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36129CF0: neg al */ 24880 _flag_k = FK_NARROW(FK_CMP, 24); 24881 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36129CF2: sbb al, al */ 24882 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 24883 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 24884 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 24885 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 24886 SET_LO8(eax, LO8(eax) + 1); /* 0x36129CF4: inc al */ 24887 _flag_k = FK_NARROW(FK_INC, 24); 24888 ecx = ebx; /* 0x36129CF6: mov ecx, ebx */ 24889 PUSH32(esp, edx); /* 0x36129CF8: push edx */ 24890 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36129CF9: mov byte ptr [ebp - 4], 0 */ 24891 PUSH32(esp, eax); /* 0x36129CFD: push eax */ 24892 PUSH32(esp, 7); /* 0x36129CFE: push 7 */ 24893 RECOMP_ICALL(0x36136FE0u); /* 0x36129D00: call 0x36136fe0 */ /* not lifted */ 24894 RECOMP_FLAGS_IN(); 24895 PUSH32(esp, eax); /* 0x36129D05: push eax */ 24896 eax = MEM32(esi + 0x28); /* 0x36129D06: mov eax, dword ptr [esi + 0x28] */ 24897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 24898 eax = eax & 4; /* 0x36129D09: and eax, 4 */ 24899 _cf = 0; 24900 _flag_k = FK_TEST; 24901 /* cmp LO8(eax), 4 */ /* 0x36129D0C: cmp al, 4 */ 24902 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 24903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24904 _flag_k = FK_NARROW(FK_CMP, 24); 24905 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36129D0E: sete cl */ 24906 PUSH32(esp, ecx); /* 0x36129D11: push ecx */ 24907 PUSH32(esp, 6); /* 0x36129D12: push 6 */ 24908 ecx = ebx; /* 0x36129D14: mov ecx, ebx */ 24909 RECOMP_ICALL(0x36137010u); /* 0x36129D16: call 0x36137010 */ /* not lifted */ 24910 RECOMP_FLAGS_IN(); 24911 PUSH32(esp, ecx); /* 0x36129D1B: push ecx */ 24912 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36129D1C: fstp dword ptr [esp] */ 24913 PUSH32(esp, 5); /* 0x36129D1F: push 5 */ 24914 ecx = ebx; /* 0x36129D21: mov ecx, ebx */ 24915 RECOMP_ICALL(0x36137010u); /* 0x36129D23: call 0x36137010 */ /* not lifted */ 24916 RECOMP_FLAGS_IN(); 24917 PUSH32(esp, ecx); /* 0x36129D28: push ecx */ 24918 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36129D29: fstp dword ptr [esp] */ 24919 PUSH32(esp, 4); /* 0x36129D2C: push 4 */ 24920 ecx = ebx; /* 0x36129D2E: mov ecx, ebx */ 24921 RECOMP_ICALL(0x36137010u); /* 0x36129D30: call 0x36137010 */ /* not lifted */ 24922 RECOMP_FLAGS_IN(); 24923 PUSH32(esp, ecx); /* 0x36129D35: push ecx */ 24924 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36129D36: fstp dword ptr [esp] */ 24925 PUSH32(esp, 3); /* 0x36129D39: push 3 */ 24926 ecx = ebx; /* 0x36129D3B: mov ecx, ebx */ 24927 RECOMP_ICALL(0x36137010u); /* 0x36129D3D: call 0x36137010 */ /* not lifted */ 24928 RECOMP_FLAGS_IN(); 24929 PUSH32(esp, ecx); /* 0x36129D42: push ecx */ 24930 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36129D43: fstp dword ptr [esp] */ 24931 PUSH32(esp, 2); /* 0x36129D46: push 2 */ 24932 ecx = ebx; /* 0x36129D48: mov ecx, ebx */ 24933 RECOMP_ICALL(0x36137010u); /* 0x36129D4A: call 0x36137010 */ /* not lifted */ 24934 RECOMP_FLAGS_IN(); 24935 PUSH32(esp, ecx); /* 0x36129D4F: push ecx */ 24936 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36129D50: fstp dword ptr [esp] */ 24937 PUSH32(esp, 1); /* 0x36129D53: push 1 */ 24938 ecx = ebx; /* 0x36129D55: mov ecx, ebx */ 24939 RECOMP_ICALL(0x36137010u); /* 0x36129D57: call 0x36137010 */ /* not lifted */ 24940 RECOMP_FLAGS_IN(); 24941 PUSH32(esp, ecx); /* 0x36129D5C: push ecx */ 24942 ecx = MEM32(esi + 0x20); /* 0x36129D5D: mov ecx, dword ptr [esi + 0x20] */ 24943 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36129D60: fstp dword ptr [esp] */ 24944 edx = ebp + (-0x84); /* 0x36129D63: lea edx, [ebp - 0x84] */ 24945 PUSH32(esp, edx); /* 0x36129D69: push edx */ 24946 RECOMP_ICALL(0x36132BA0u); /* 0x36129D6A: call 0x36132ba0 */ /* not lifted */ 24947 RECOMP_FLAGS_IN(); 24948 /* test LO8(eax), LO8(eax) */ /* 0x36129D6F: test al, al */ 24949 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24950 _cf = 0; 24951 _flag_k = FK_NARROW(FK_TEST, 24); 24952 if (TEST_NZ(_flag_a, _flag_b)) goto L_36129D8A; /* 0x36129D71: jne 0x36129d8a */ 24953 L_36129D73: 24954 edi = POP32_VAL(esp); /* 0x36129D73: pop edi */ 24955 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x36129D74: mov byte ptr [esi + 0x14], 1 */ 24956 esi = POP32_VAL(esp); /* 0x36129D78: pop esi */ 24957 ebx = POP32_VAL(esp); /* 0x36129D79: pop ebx */ 24958 ecx = MEM32(ebp + (-0xC)); /* 0x36129D7A: mov ecx, dword ptr [ebp - 0xc] */ 24959 MEM32(FS_BASE + (0)) = ecx; /* 0x36129D7D: mov dword ptr fs:[0], ecx */ 24960 esp = ebp; /* 0x36129D84: mov esp, ebp */ 24961 ebp = POP32_VAL(esp); /* 0x36129D86: pop ebp */ 24962 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36129D87: ret 4 */ 24963 L_36129D8A: 24964 ecx = esi; /* 0x36129D8A: mov ecx, esi */ 24965 RECOMP_ICALL(0x36129F20u); /* 0x36129D8C: call 0x36129f20 */ /* not lifted */ 24966 RECOMP_FLAGS_IN(); 24967 ecx = MEM32(ebp + (-0xC)); /* 0x36129D91: mov ecx, dword ptr [ebp - 0xc] */ 24968 edi = POP32_VAL(esp); /* 0x36129D94: pop edi */ 24969 esi = POP32_VAL(esp); /* 0x36129D95: pop esi */ 24970 ebx = POP32_VAL(esp); /* 0x36129D96: pop ebx */ 24971 MEM32(FS_BASE + (0)) = ecx; /* 0x36129D97: mov dword ptr fs:[0], ecx */ 24972 esp = ebp; /* 0x36129D9E: mov esp, ebp */ 24973 ebp = POP32_VAL(esp); /* 0x36129DA0: pop ebp */ 24974 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36129DA1: ret 4 */ 24975 RECOMP_REGS_OUT(); 24976 } 24977 24978 void sub_36129DB0(void) { 24979 int _fpu_cmp = 0; 24980 uint32_t _cf = 0; 24981 int _df = 1; 24982 uint32_t _flag_k = FK_NONE; 24983 uint32_t _flag_a = 0, _flag_b = 0; 24984 uint32_t _itail_tgt = 0; 24985 RECOMP_REGS_LOCALS 24986 RECOMP_ENTER(0x36129DB0u); 24987 24988 L_36129DB0: 24989 PUSH32(esp, ebp); /* 0x36129DB0: push ebp */ 24990 ebp = esp; /* 0x36129DB1: mov ebp, esp */ 24991 PUSH32(esp, 0xFFFFFFFFu); /* 0x36129DB3: push -1 */ 24992 PUSH32(esp, 0x3616BC78u); /* 0x36129DB5: push 0x3616bc78 */ 24993 eax = MEM32(FS_BASE + (0)); /* 0x36129DBA: mov eax, dword ptr fs:[0] */ 24994 PUSH32(esp, eax); /* 0x36129DC0: push eax */ 24995 MEM32(FS_BASE + (0)) = esp; /* 0x36129DC1: mov dword ptr fs:[0], esp */ 24996 PUSH32(esp, ecx); /* 0x36129DC8: push ecx */ 24997 PUSH32(esp, esi); /* 0x36129DC9: push esi */ 24998 esi = ecx; /* 0x36129DCA: mov esi, ecx */ 24999 PUSH32(esp, edi); /* 0x36129DCC: push edi */ 25000 MEM32(ebp + (-0x10)) = esi; /* 0x36129DCD: mov dword ptr [ebp - 0x10], esi */ 25001 MEM32(esi) = 0x36177894u; /* 0x36129DD0: mov dword ptr [esi], 0x36177894 */ 25002 edi = MEM32(esi + 0x20); /* 0x36129DD6: mov edi, dword ptr [esi + 0x20] */ 25003 /* test edi, edi */ /* 0x36129DD9: test edi, edi */ 25004 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 25005 _cf = 0; 25006 _flag_k = FK_TEST; 25007 MEM32(ebp + (-0x4)) = 0; /* 0x36129DDB: mov dword ptr [ebp - 4], 0 */ 25008 if (TEST_Z(_flag_a, _flag_b)) goto L_36129DFB; /* 0x36129DE2: je 0x36129dfb */ 25009 L_36129DE4: 25010 ecx = edi; /* 0x36129DE4: mov ecx, edi */ 25011 RECOMP_ICALL(0x360E2940u); /* 0x36129DE6: call 0x360e2940 */ /* not lifted */ 25012 RECOMP_FLAGS_IN(); 25013 PUSH32(esp, edi); /* 0x36129DEB: push edi */ 25014 RECOMP_ICALL(0x3615FCC4u); /* 0x36129DEC: call 0x3615fcc4 */ /* not lifted */ 25015 RECOMP_FLAGS_IN(); 25016 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 25017 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25018 esp = esp + 4; /* 0x36129DF1: add esp, 4 */ 25019 _flag_k = FK_ADD; 25020 MEM32(esi + 0x20) = 0; /* 0x36129DF4: mov dword ptr [esi + 0x20], 0 */ 25021 L_36129DFB: 25022 ecx = MEM32(esi + 0x24); /* 0x36129DFB: mov ecx, dword ptr [esi + 0x24] */ 25023 /* test ecx, ecx */ /* 0x36129DFE: test ecx, ecx */ 25024 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 25025 _cf = 0; 25026 _flag_k = FK_TEST; 25027 if (TEST_Z(_flag_a, _flag_b)) goto L_36129E0F; /* 0x36129E00: je 0x36129e0f */ 25028 L_36129E02: 25029 eax = MEM32(ecx); /* 0x36129E02: mov eax, dword ptr [ecx] */ 25030 PUSH32(esp, 1); /* 0x36129E04: push 1 */ 25031 RECOMP_ICALL(MEM32(eax)); /* 0x36129E06: call dword ptr [eax] */ 25032 RECOMP_FLAGS_IN(); 25033 MEM32(esi + 0x24) = 0; /* 0x36129E08: mov dword ptr [esi + 0x24], 0 */ 25034 L_36129E0F: 25035 ecx = esi; /* 0x36129E0F: mov ecx, esi */ 25036 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36129E11: mov dword ptr [ebp - 4], 0xffffffff */ 25037 RECOMP_ICALL(0x360FC2F0u); /* 0x36129E18: call 0x360fc2f0 */ /* not lifted */ 25038 RECOMP_FLAGS_IN(); 25039 ecx = MEM32(ebp + (-0xC)); /* 0x36129E1D: mov ecx, dword ptr [ebp - 0xc] */ 25040 edi = POP32_VAL(esp); /* 0x36129E20: pop edi */ 25041 esi = POP32_VAL(esp); /* 0x36129E21: pop esi */ 25042 MEM32(FS_BASE + (0)) = ecx; /* 0x36129E22: mov dword ptr fs:[0], ecx */ 25043 esp = ebp; /* 0x36129E29: mov esp, ebp */ 25044 ebp = POP32_VAL(esp); /* 0x36129E2B: pop ebp */ 25045 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36129E2C: ret */ 25046 RECOMP_REGS_OUT(); 25047 } 25048 25049 void sub_36129E30(void) { 25050 int _fpu_cmp = 0; 25051 uint32_t _cf = 0; 25052 int _df = 1; 25053 uint32_t _flag_k = FK_NONE; 25054 uint32_t _flag_a = 0, _flag_b = 0; 25055 uint32_t _itail_tgt = 0; 25056 RECOMP_REGS_LOCALS 25057 RECOMP_ENTER(0x36129E30u); 25058 25059 L_36129E30: 25060 PUSH32(esp, esi); /* 0x36129E30: push esi */ 25061 esi = ecx; /* 0x36129E31: mov esi, ecx */ 25062 RECOMP_ICALL(0x360FC300u); /* 0x36129E33: call 0x360fc300 */ /* not lifted */ 25063 RECOMP_FLAGS_IN(); 25064 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x36129E38: mov al, byte ptr [esi + 0x14] */ 25065 /* test LO8(eax), LO8(eax) */ /* 0x36129E3B: test al, al */ 25066 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25067 _cf = 0; 25068 _flag_k = FK_NARROW(FK_TEST, 24); 25069 if (TEST_NZ(_flag_a, _flag_b)) goto L_36129E5C; /* 0x36129E3D: jne 0x36129e5c */ 25070 L_36129E3F: 25071 ecx = MEM32(esi + 0x20); /* 0x36129E3F: mov ecx, dword ptr [esi + 0x20] */ 25072 RECOMP_ICALL(0x361331E0u); /* 0x36129E42: call 0x361331e0 */ /* not lifted */ 25073 RECOMP_FLAGS_IN(); 25074 /* test LO8(eax), LO8(eax) */ /* 0x36129E47: test al, al */ 25075 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25076 _cf = 0; 25077 _flag_k = FK_NARROW(FK_TEST, 24); 25078 if (TEST_NZ(_flag_a, _flag_b)) goto L_36129E55; /* 0x36129E49: jne 0x36129e55 */ 25079 L_36129E4B: 25080 eax = MEM32(esi + 0x20); /* 0x36129E4B: mov eax, dword ptr [esi + 0x20] */ 25081 MEM8(eax) = (uint8_t)(0); /* 0x36129E4E: mov byte ptr [eax], 0 */ 25082 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x36129E51: mov byte ptr [esi + 0x14], 1 */ 25083 L_36129E55: 25084 ecx = esi; /* 0x36129E55: mov ecx, esi */ 25085 RECOMP_ICALL(0x3612A0E0u); /* 0x36129E57: call 0x3612a0e0 */ /* not lifted */ 25086 RECOMP_FLAGS_IN(); 25087 L_36129E5C: 25088 esi = POP32_VAL(esp); /* 0x36129E5C: pop esi */ 25089 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36129E5D: ret */ 25090 RECOMP_REGS_OUT(); 25091 } 25092 25093 void sub_36129E60(void) { 25094 int _fpu_cmp = 0; 25095 uint32_t _cf = 0; 25096 int _df = 1; 25097 uint32_t _flag_k = FK_NONE; 25098 uint32_t _flag_a = 0, _flag_b = 0; 25099 uint32_t _itail_tgt = 0; 25100 RECOMP_REGS_LOCALS 25101 RECOMP_ENTER(0x36129E60u); 25102 25103 L_36129E60: 25104 PUSH32(esp, esi); /* 0x36129E60: push esi */ 25105 esi = ecx; /* 0x36129E61: mov esi, ecx */ 25106 eax = MEM32(esi + 0x4); /* 0x36129E63: mov eax, dword ptr [esi + 4] */ 25107 PUSH32(esp, edi); /* 0x36129E66: push edi */ 25108 PUSH32(esp, eax); /* 0x36129E67: push eax */ 25109 RECOMP_ICALL(0x360F7B00u); /* 0x36129E68: call 0x360f7b00 */ /* not lifted */ 25110 RECOMP_FLAGS_IN(); 25111 ecx = eax; /* 0x36129E6D: mov ecx, eax */ 25112 RECOMP_ICALL(0x360FBFF0u); /* 0x36129E6F: call 0x360fbff0 */ /* not lifted */ 25113 RECOMP_FLAGS_IN(); 25114 ecx = eax; /* 0x36129E74: mov ecx, eax */ 25115 RECOMP_ICALL(0x361371A0u); /* 0x36129E76: call 0x361371a0 */ /* not lifted */ 25116 RECOMP_FLAGS_IN(); 25117 edi = eax; /* 0x36129E7B: mov edi, eax */ 25118 PUSH32(esp, 0); /* 0x36129E7D: push 0 */ 25119 ecx = edi; /* 0x36129E7F: mov ecx, edi */ 25120 RECOMP_ICALL(0x36136FE0u); /* 0x36129E81: call 0x36136fe0 */ /* not lifted */ 25121 RECOMP_FLAGS_IN(); 25122 PUSH32(esp, 8); /* 0x36129E86: push 8 */ 25123 ecx = edi; /* 0x36129E88: mov ecx, edi */ 25124 MEM32(esi + 0x28) = eax; /* 0x36129E8A: mov dword ptr [esi + 0x28], eax */ 25125 RECOMP_ICALL(0x36137010u); /* 0x36129E8D: call 0x36137010 */ /* not lifted */ 25126 RECOMP_FLAGS_IN(); 25127 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36129E92: fstp dword ptr [esi + 0x10] */ 25128 PUSH32(esp, 9); /* 0x36129E95: push 9 */ 25129 ecx = edi; /* 0x36129E97: mov ecx, edi */ 25130 RECOMP_ICALL(0x36136FE0u); /* 0x36129E99: call 0x36136fe0 */ /* not lifted */ 25131 RECOMP_FLAGS_IN(); 25132 PUSH32(esp, 0xAu); /* 0x36129E9E: push 0xa */ 25133 ecx = edi; /* 0x36129EA0: mov ecx, edi */ 25134 MEM32(esi + 0x2C) = eax; /* 0x36129EA2: mov dword ptr [esi + 0x2c], eax */ 25135 RECOMP_ICALL(0x36137010u); /* 0x36129EA5: call 0x36137010 */ /* not lifted */ 25136 RECOMP_FLAGS_IN(); 25137 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x36129EAA: fstp dword ptr [esi + 0x30] */ 25138 PUSH32(esp, 0xBu); /* 0x36129EAD: push 0xb */ 25139 ecx = edi; /* 0x36129EAF: mov ecx, edi */ 25140 RECOMP_ICALL(0x36137010u); /* 0x36129EB1: call 0x36137010 */ /* not lifted */ 25141 RECOMP_FLAGS_IN(); 25142 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x34) = _v; } /* 0x36129EB6: fstp dword ptr [esi + 0x34] */ 25143 PUSH32(esp, 0xCu); /* 0x36129EB9: push 0xc */ 25144 ecx = edi; /* 0x36129EBB: mov ecx, edi */ 25145 RECOMP_ICALL(0x36137010u); /* 0x36129EBD: call 0x36137010 */ /* not lifted */ 25146 RECOMP_FLAGS_IN(); 25147 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x38) = _v; } /* 0x36129EC2: fstp dword ptr [esi + 0x38] */ 25148 PUSH32(esp, 0xDu); /* 0x36129EC5: push 0xd */ 25149 ecx = edi; /* 0x36129EC7: mov ecx, edi */ 25150 RECOMP_ICALL(0x36137010u); /* 0x36129EC9: call 0x36137010 */ /* not lifted */ 25151 RECOMP_FLAGS_IN(); 25152 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3C) = _v; } /* 0x36129ECE: fstp dword ptr [esi + 0x3c] */ 25153 PUSH32(esp, 0xEu); /* 0x36129ED1: push 0xe */ 25154 ecx = edi; /* 0x36129ED3: mov ecx, edi */ 25155 RECOMP_ICALL(0x36137010u); /* 0x36129ED5: call 0x36137010 */ /* not lifted */ 25156 RECOMP_FLAGS_IN(); 25157 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x40) = _v; } /* 0x36129EDA: fstp dword ptr [esi + 0x40] */ 25158 PUSH32(esp, 0xFu); /* 0x36129EDD: push 0xf */ 25159 ecx = edi; /* 0x36129EDF: mov ecx, edi */ 25160 RECOMP_ICALL(0x36137010u); /* 0x36129EE1: call 0x36137010 */ /* not lifted */ 25161 RECOMP_FLAGS_IN(); 25162 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x44) = _v; } /* 0x36129EE6: fstp dword ptr [esi + 0x44] */ 25163 PUSH32(esp, 0x10u); /* 0x36129EE9: push 0x10 */ 25164 ecx = edi; /* 0x36129EEB: mov ecx, edi */ 25165 RECOMP_ICALL(0x36137010u); /* 0x36129EED: call 0x36137010 */ /* not lifted */ 25166 RECOMP_FLAGS_IN(); 25167 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x48) = _v; } /* 0x36129EF2: fstp dword ptr [esi + 0x48] */ 25168 PUSH32(esp, 0x11u); /* 0x36129EF5: push 0x11 */ 25169 ecx = edi; /* 0x36129EF7: mov ecx, edi */ 25170 RECOMP_ICALL(0x36136FE0u); /* 0x36129EF9: call 0x36136fe0 */ /* not lifted */ 25171 RECOMP_FLAGS_IN(); 25172 PUSH32(esp, 0x12u); /* 0x36129EFE: push 0x12 */ 25173 ecx = edi; /* 0x36129F00: mov ecx, edi */ 25174 MEM32(esi + 0x4C) = eax; /* 0x36129F02: mov dword ptr [esi + 0x4c], eax */ 25175 RECOMP_ICALL(0x36136FE0u); /* 0x36129F05: call 0x36136fe0 */ /* not lifted */ 25176 RECOMP_FLAGS_IN(); 25177 PUSH32(esp, 0x13u); /* 0x36129F0A: push 0x13 */ 25178 ecx = edi; /* 0x36129F0C: mov ecx, edi */ 25179 MEM32(esi + 0x50) = eax; /* 0x36129F0E: mov dword ptr [esi + 0x50], eax */ 25180 RECOMP_ICALL(0x36136FE0u); /* 0x36129F11: call 0x36136fe0 */ /* not lifted */ 25181 RECOMP_FLAGS_IN(); 25182 edi = POP32_VAL(esp); /* 0x36129F16: pop edi */ 25183 MEM32(esi + 0x54) = eax; /* 0x36129F17: mov dword ptr [esi + 0x54], eax */ 25184 esi = POP32_VAL(esp); /* 0x36129F1A: pop esi */ 25185 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36129F1B: ret */ 25186 RECOMP_REGS_OUT(); 25187 } 25188 25189 void sub_36129F20(void) { 25190 int _fpu_cmp = 0; 25191 uint32_t _cf = 0; 25192 int _df = 1; 25193 uint32_t _flag_k = FK_NONE; 25194 uint32_t _flag_a = 0, _flag_b = 0; 25195 uint32_t _itail_tgt = 0; 25196 RECOMP_REGS_LOCALS 25197 RECOMP_ENTER(0x36129F20u); 25198 25199 L_36129F20: 25200 PUSH32(esp, ebp); /* 0x36129F20: push ebp */ 25201 ebp = esp; /* 0x36129F21: mov ebp, esp */ 25202 PUSH32(esp, 0xFFFFFFFFu); /* 0x36129F23: push -1 */ 25203 PUSH32(esp, 0x3616BCA4u); /* 0x36129F25: push 0x3616bca4 */ 25204 eax = MEM32(FS_BASE + (0)); /* 0x36129F2A: mov eax, dword ptr fs:[0] */ 25205 PUSH32(esp, eax); /* 0x36129F30: push eax */ 25206 MEM32(FS_BASE + (0)) = esp; /* 0x36129F31: mov dword ptr fs:[0], esp */ 25207 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x60u); 25208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25209 esp = esp - 0x60u; /* 0x36129F38: sub esp, 0x60 */ 25210 _flag_k = FK_CMP; 25211 PUSH32(esp, ebx); /* 0x36129F3B: push ebx */ 25212 PUSH32(esp, esi); /* 0x36129F3C: push esi */ 25213 PUSH32(esp, edi); /* 0x36129F3D: push edi */ 25214 PUSH32(esp, 0x22Cu); /* 0x36129F3E: push 0x22c */ 25215 esi = ecx; /* 0x36129F43: mov esi, ecx */ 25216 RECOMP_ICALL(0x3615FD6Au); /* 0x36129F45: call 0x3615fd6a */ /* not lifted */ 25217 RECOMP_FLAGS_IN(); 25218 edi = eax; /* 0x36129F4A: mov edi, eax */ 25219 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 25220 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25221 esp = esp + 4; /* 0x36129F4C: add esp, 4 */ 25222 _flag_k = FK_ADD; 25223 MEM32(ebp + (-0x10)) = edi; /* 0x36129F4F: mov dword ptr [ebp - 0x10], edi */ 25224 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 25225 ecx = 0; /* 0x36129F52: xor ecx, ecx */ 25226 _cf = 0; 25227 _flag_k = FK_TEST; 25228 /* cmp edi, ecx */ /* 0x36129F54: cmp edi, ecx */ 25229 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 25230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25231 _flag_k = FK_CMP; 25232 MEM32(ebp + (-0x4)) = ecx; /* 0x36129F56: mov dword ptr [ebp - 4], ecx */ 25233 if (CMP_EQ(_flag_a, _flag_b)) goto L_36129FA8; /* 0x36129F59: je 0x36129fa8 */ 25234 L_36129F5B: 25235 PUSH32(esp, 0x10u); /* 0x36129F5B: push 0x10 */ 25236 PUSH32(esp, 0x40C90FDBu); /* 0x36129F5D: push 0x40c90fdb */ 25237 PUSH32(esp, ecx); /* 0x36129F62: push ecx */ 25238 PUSH32(esp, ecx); /* 0x36129F63: push ecx */ 25239 PUSH32(esp, ecx); /* 0x36129F64: push ecx */ 25240 PUSH32(esp, 1); /* 0x36129F65: push 1 */ 25241 PUSH32(esp, ecx); /* 0x36129F67: push ecx */ 25242 ecx = edi; /* 0x36129F68: mov ecx, edi */ 25243 RECOMP_ICALL(MEM32(0x3616F8D0)); /* 0x36129F6A: call dword ptr [0x3616f8d0] */ 25244 RECOMP_FLAGS_IN(); 25245 MEM32(edi) = 0x3617793Cu; /* 0x36129F70: mov dword ptr [edi], 0x3617793c */ 25246 MEM32(edi + 0x8) = 0x3617792Cu; /* 0x36129F76: mov dword ptr [edi + 8], 0x3617792c */ 25247 MEM32(edi + 0x20) = 0x3617791Cu; /* 0x36129F7D: mov dword ptr [edi + 0x20], 0x3617791c */ 25248 MEM32(edi + 0x38) = 0x3617790Cu; /* 0x36129F84: mov dword ptr [edi + 0x38], 0x3617790c */ 25249 MEM32(edi + 0x50) = 0x361778FCu; /* 0x36129F8B: mov dword ptr [edi + 0x50], 0x361778fc */ 25250 MEM32(edi + 0x138) = 0x361778ECu; /* 0x36129F92: mov dword ptr [edi + 0x138], 0x361778ec */ 25251 MEM32(edi + 0x150) = 0x361778DCu; /* 0x36129F9C: mov dword ptr [edi + 0x150], 0x361778dc */ 25252 ecx = edi; /* 0x36129FA6: mov ecx, edi */ 25253 L_36129FA8: 25254 edx = MEM32(esi + 0x80); /* 0x36129FA8: mov edx, dword ptr [esi + 0x80] */ 25255 MEM32(esi + 0x24) = ecx; /* 0x36129FAE: mov dword ptr [esi + 0x24], ecx */ 25256 eax = MEM32(ecx); /* 0x36129FB1: mov eax, dword ptr [ecx] */ 25257 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 25258 edi = edi | 0xFFFFFFFFu; /* 0x36129FB3: or edi, 0xffffffff */ 25259 _cf = 0; 25260 _flag_k = FK_TEST; 25261 PUSH32(esp, edx); /* 0x36129FB6: push edx */ 25262 MEM32(ebp + (-0x4)) = edi; /* 0x36129FB7: mov dword ptr [ebp - 4], edi */ 25263 RECOMP_ICALL(MEM32(eax + 0x50)); /* 0x36129FBA: call dword ptr [eax + 0x50] */ 25264 RECOMP_FLAGS_IN(); 25265 eax = MEM32(esi + 0x2C); /* 0x36129FBD: mov eax, dword ptr [esi + 0x2c] */ 25266 PUSH32(esp, eax); /* 0x36129FC0: push eax */ 25267 RECOMP_ICALL(0x360F7B00u); /* 0x36129FC1: call 0x360f7b00 */ /* not lifted */ 25268 RECOMP_FLAGS_IN(); 25269 ecx = eax; /* 0x36129FC6: mov ecx, eax */ 25270 RECOMP_ICALL(0x360FBE60u); /* 0x36129FC8: call 0x360fbe60 */ /* not lifted */ 25271 RECOMP_FLAGS_IN(); 25272 ecx = MEM32(esi + 0x24); /* 0x36129FCD: mov ecx, dword ptr [esi + 0x24] */ 25273 MEM32(ecx + 0x1E0) = eax; /* 0x36129FD0: mov dword ptr [ecx + 0x1e0], eax */ 25274 ecx = MEM32(esi + 0x2C); /* 0x36129FD6: mov ecx, dword ptr [esi + 0x2c] */ 25275 PUSH32(esp, ecx); /* 0x36129FD9: push ecx */ 25276 RECOMP_ICALL(0x360F7B00u); /* 0x36129FDA: call 0x360f7b00 */ /* not lifted */ 25277 RECOMP_FLAGS_IN(); 25278 ecx = eax; /* 0x36129FDF: mov ecx, eax */ 25279 RECOMP_ICALL(0x360FBEA0u); /* 0x36129FE1: call 0x360fbea0 */ /* not lifted */ 25280 RECOMP_FLAGS_IN(); 25281 ecx = MEM32(esi + 0x24); /* 0x36129FE6: mov ecx, dword ptr [esi + 0x24] */ 25282 edx = ebp + (-0x1C); /* 0x36129FE9: lea edx, [ebp - 0x1c] */ 25283 MEM32(ecx + 0x1E4) = eax; /* 0x36129FEC: mov dword ptr [ecx + 0x1e4], eax */ 25284 ecx = MEM32(esi + 0x20); /* 0x36129FF2: mov ecx, dword ptr [esi + 0x20] */ 25285 PUSH32(esp, edx); /* 0x36129FF5: push edx */ 25286 RECOMP_ICALL(0x36133E80u); /* 0x36129FF6: call 0x36133e80 */ /* not lifted */ 25287 RECOMP_FLAGS_IN(); 25288 ecx = MEM32(esi + 0x24); /* 0x36129FFB: mov ecx, dword ptr [esi + 0x24] */ 25289 ebx = MEM32(eax); /* 0x36129FFE: mov ebx, dword ptr [eax] */ 25290 edx = ecx + 0x78; /* 0x3612A000: lea edx, [ecx + 0x78] */ 25291 MEM32(edx) = ebx; /* 0x3612A003: mov dword ptr [edx], ebx */ 25292 ebx = MEM32(eax + 0x4); /* 0x3612A005: mov ebx, dword ptr [eax + 4] */ 25293 MEM32(edx + 0x4) = ebx; /* 0x3612A008: mov dword ptr [edx + 4], ebx */ 25294 eax = MEM32(eax + 0x8); /* 0x3612A00B: mov eax, dword ptr [eax + 8] */ 25295 ebx = 1; /* 0x3612A00E: mov ebx, 1 */ 25296 PUSH32(esp, ebx); /* 0x3612A013: push ebx */ 25297 MEM32(edx + 0x8) = eax; /* 0x3612A014: mov dword ptr [edx + 8], eax */ 25298 edx = MEM32(ecx); /* 0x3612A017: mov edx, dword ptr [ecx] */ 25299 PUSH32(esp, ebx); /* 0x3612A019: push ebx */ 25300 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3612A01A: call dword ptr [edx + 0x2c] */ 25301 RECOMP_FLAGS_IN(); 25302 eax = MEM32(esi + 0x4C); /* 0x3612A01D: mov eax, dword ptr [esi + 0x4c] */ 25303 ecx = MEM32(esi + 0x24); /* 0x3612A020: mov ecx, dword ptr [esi + 0x24] */ 25304 MEM32(ecx + 0x214) = eax; /* 0x3612A023: mov dword ptr [ecx + 0x214], eax */ 25305 eax = MEM32(esi + 0x50); /* 0x3612A029: mov eax, dword ptr [esi + 0x50] */ 25306 ecx = MEM32(esi + 0x24); /* 0x3612A02C: mov ecx, dword ptr [esi + 0x24] */ 25307 MEM32(ecx + 0x218) = eax; /* 0x3612A02F: mov dword ptr [ecx + 0x218], eax */ 25308 eax = MEM32(esi + 0x54); /* 0x3612A035: mov eax, dword ptr [esi + 0x54] */ 25309 /* test eax, eax */ /* 0x3612A038: test eax, eax */ 25310 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 25311 _cf = 0; 25312 _flag_k = FK_TEST; 25313 if (TEST_Z(_flag_a, _flag_b)) goto L_3612A045; /* 0x3612A03A: je 0x3612a045 */ 25314 L_3612A03C: 25315 eax = MEM32(esi + 0x24); /* 0x3612A03C: mov eax, dword ptr [esi + 0x24] */ 25316 MEM8(eax + 0x21C) = (uint8_t)(LO8(ebx)); /* 0x3612A03F: mov byte ptr [eax + 0x21c], bl */ 25317 L_3612A045: 25318 ecx = MEM32(esi + 0x20); /* 0x3612A045: mov ecx, dword ptr [esi + 0x20] */ 25319 eax = ebp + (-0x6C); /* 0x3612A048: lea eax, [ebp - 0x6c] */ 25320 PUSH32(esp, eax); /* 0x3612A04B: push eax */ 25321 RECOMP_ICALL(0x36133DC0u); /* 0x3612A04C: call 0x36133dc0 */ /* not lifted */ 25322 RECOMP_FLAGS_IN(); 25323 PUSH32(esp, eax); /* 0x3612A051: push eax */ 25324 ecx = ebp + (-0x2C); /* 0x3612A052: lea ecx, [ebp - 0x2c] */ 25325 MEM32(ebp + (-0x4)) = ebx; /* 0x3612A055: mov dword ptr [ebp - 4], ebx */ 25326 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x3612A058: call dword ptr [0x361701a4] */ 25327 RECOMP_FLAGS_IN(); 25328 ecx = MEM32(esi + 0x24); /* 0x3612A05E: mov ecx, dword ptr [esi + 0x24] */ 25329 ebx = MEM32(eax); /* 0x3612A061: mov ebx, dword ptr [eax] */ 25330 edx = ecx + 0x84; /* 0x3612A063: lea edx, [ecx + 0x84] */ 25331 MEM32(edx) = ebx; /* 0x3612A069: mov dword ptr [edx], ebx */ 25332 ebx = MEM32(eax + 0x4); /* 0x3612A06B: mov ebx, dword ptr [eax + 4] */ 25333 MEM32(edx + 0x4) = ebx; /* 0x3612A06E: mov dword ptr [edx + 4], ebx */ 25334 ebx = MEM32(eax + 0x8); /* 0x3612A071: mov ebx, dword ptr [eax + 8] */ 25335 MEM32(edx + 0x8) = ebx; /* 0x3612A074: mov dword ptr [edx + 8], ebx */ 25336 eax = MEM32(eax + 0xC); /* 0x3612A077: mov eax, dword ptr [eax + 0xc] */ 25337 PUSH32(esp, 1); /* 0x3612A07A: push 1 */ 25338 MEM32(edx + 0xC) = eax; /* 0x3612A07C: mov dword ptr [edx + 0xc], eax */ 25339 edx = MEM32(ecx); /* 0x3612A07F: mov edx, dword ptr [ecx] */ 25340 PUSH32(esp, 2); /* 0x3612A081: push 2 */ 25341 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3612A083: call dword ptr [edx + 0x2c] */ 25342 RECOMP_FLAGS_IN(); 25343 ecx = MEM32(esi + 0x24); /* 0x3612A086: mov ecx, dword ptr [esi + 0x24] */ 25344 MEM32(ebp + (-0x4)) = edi; /* 0x3612A089: mov dword ptr [ebp - 4], edi */ 25345 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x3612A08C: call dword ptr [0x3616f5f8] */ 25346 RECOMP_FLAGS_IN(); 25347 ecx = MEM32(ebp + (-0xC)); /* 0x3612A092: mov ecx, dword ptr [ebp - 0xc] */ 25348 edi = POP32_VAL(esp); /* 0x3612A095: pop edi */ 25349 esi = POP32_VAL(esp); /* 0x3612A096: pop esi */ 25350 ebx = POP32_VAL(esp); /* 0x3612A097: pop ebx */ 25351 MEM32(FS_BASE + (0)) = ecx; /* 0x3612A098: mov dword ptr fs:[0], ecx */ 25352 esp = ebp; /* 0x3612A09F: mov esp, ebp */ 25353 ebp = POP32_VAL(esp); /* 0x3612A0A1: pop ebp */ 25354 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3612A0A2: ret */ 25355 RECOMP_REGS_OUT(); 25356 } 25357 25358 void sub_3612A0B0(void) { 25359 int _fpu_cmp = 0; 25360 uint32_t _cf = 0; 25361 int _df = 1; 25362 uint32_t _flag_k = FK_NONE; 25363 uint32_t _flag_a = 0, _flag_b = 0; 25364 uint32_t _itail_tgt = 0; 25365 RECOMP_REGS_LOCALS 25366 RECOMP_ENTER(0x3612A0B0u); 25367 25368 L_3612A0B0: 25369 PUSH32(esp, ebp); /* 0x3612A0B0: push ebp */ 25370 ebp = esp; /* 0x3612A0B1: mov ebp, esp */ 25371 PUSH32(esp, esi); /* 0x3612A0B3: push esi */ 25372 esi = ecx; /* 0x3612A0B4: mov esi, ecx */ 25373 RECOMP_ICALL(MEM32(0x3616F8D4)); /* 0x3612A0B6: call dword ptr [0x3616f8d4] */ 25374 RECOMP_FLAGS_IN(); 25375 /* test MEM8(ebp + 0x8), 1 */ /* 0x3612A0BC: test byte ptr [ebp + 8], 1 */ 25376 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 25377 _cf = 0; 25378 _flag_k = FK_NARROW(FK_TEST, 24); 25379 if (TEST_Z(_flag_a, _flag_b)) goto L_3612A0CB; /* 0x3612A0C0: je 0x3612a0cb */ 25380 L_3612A0C2: 25381 PUSH32(esp, esi); /* 0x3612A0C2: push esi */ 25382 RECOMP_ICALL(0x3615FCC4u); /* 0x3612A0C3: call 0x3615fcc4 */ /* not lifted */ 25383 RECOMP_FLAGS_IN(); 25384 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 25385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25386 esp = esp + 4; /* 0x3612A0C8: add esp, 4 */ 25387 _flag_k = FK_ADD; 25388 L_3612A0CB: 25389 eax = esi; /* 0x3612A0CB: mov eax, esi */ 25390 esi = POP32_VAL(esp); /* 0x3612A0CD: pop esi */ 25391 ebp = POP32_VAL(esp); /* 0x3612A0CE: pop ebp */ 25392 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612A0CF: ret 4 */ 25393 RECOMP_REGS_OUT(); 25394 } 25395 25396 void sub_3612A0E0(void) { 25397 int _fpu_cmp = 0; 25398 uint32_t _cf = 0; 25399 int _df = 1; 25400 uint32_t _flag_k = FK_NONE; 25401 uint32_t _flag_a = 0, _flag_b = 0; 25402 uint32_t _itail_tgt = 0; 25403 RECOMP_REGS_LOCALS 25404 RECOMP_ENTER(0x3612A0E0u); 25405 25406 L_3612A0E0: 25407 PUSH32(esp, ebp); /* 0x3612A0E0: push ebp */ 25408 ebp = esp; /* 0x3612A0E1: mov ebp, esp */ 25409 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 25410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25411 esp = esp - 0x2Cu; /* 0x3612A0E3: sub esp, 0x2c */ 25412 _flag_k = FK_CMP; 25413 PUSH32(esp, esi); /* 0x3612A0E6: push esi */ 25414 esi = ecx; /* 0x3612A0E7: mov esi, ecx */ 25415 fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x3612A0E9: fld dword ptr [esi + 0x30] */ 25416 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x3612A0EC: fmul dword ptr [esi + 0xc] */ 25417 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3612A0EF: fst dword ptr [ebp - 4] */ 25418 _st[0] += (double)*(float*)ADDR(esi + 0x34); /* 0x3612A0F2: fadd dword ptr [esi + 0x34] */ 25419 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3612A0F5: fst dword ptr [ebp - 8] */ 25420 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x90)); /* 0x3612A0F8: fcomp dword ptr [esi + 0x90] */ 25421 fp_pop(); 25422 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3612A0FE: fnstsw ax */ 25423 /* test HI8(eax), 0x41u */ /* 0x3612A100: test ah, 0x41 */ 25424 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 25425 _cf = 0; 25426 _flag_k = FK_NARROW(FK_TEST, 24); 25427 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612A10E; /* 0x3612A103: jne 0x3612a10e */ 25428 L_3612A105: 25429 eax = MEM32(esi + 0x90); /* 0x3612A105: mov eax, dword ptr [esi + 0x90] */ 25430 MEM32(ebp + (-0x8)) = eax; /* 0x3612A10B: mov dword ptr [ebp - 8], eax */ 25431 L_3612A10E: 25432 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3612A10E: fld dword ptr [ebp - 4] */ 25433 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3612A111: fcomp dword ptr [0x3617040c] */ 25434 fp_pop(); 25435 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3612A117: fnstsw ax */ 25436 /* test HI8(eax), 1 */ /* 0x3612A119: test ah, 1 */ 25437 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 25438 _cf = 0; 25439 _flag_k = FK_NARROW(FK_TEST, 24); 25440 if (TEST_Z(_flag_a, _flag_b)) goto L_3612A125; /* 0x3612A11C: je 0x3612a125 */ 25441 L_3612A11E: 25442 MEM32(ebp + (-0x4)) = 0; /* 0x3612A11E: mov dword ptr [ebp - 4], 0 */ 25443 L_3612A125: 25444 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3612A125: fld dword ptr [ebp - 4] */ 25445 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x90)); /* 0x3612A128: fcomp dword ptr [esi + 0x90] */ 25446 fp_pop(); 25447 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3612A12E: fnstsw ax */ 25448 /* test HI8(eax), 1 */ /* 0x3612A130: test ah, 1 */ 25449 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 25450 _cf = 0; 25451 _flag_k = FK_NARROW(FK_TEST, 24); 25452 if (TEST_NZ(_flag_a, _flag_b)) goto L_3612A142; /* 0x3612A133: jne 0x3612a142 */ 25453 L_3612A135: 25454 ecx = MEM32(esi + 0x90); /* 0x3612A135: mov ecx, dword ptr [esi + 0x90] */ 25455 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x3612A13B: mov byte ptr [esi + 0x14], 1 */ 25456 MEM32(ebp + (-0x4)) = ecx; /* 0x3612A13F: mov dword ptr [ebp - 4], ecx */ 25457 L_3612A142: 25458 edx = esi + 0x84; /* 0x3612A142: lea edx, [esi + 0x84] */ 25459 eax = MEM32(edx); /* 0x3612A148: mov eax, dword ptr [edx] */ 25460 ecx = MEM32(edx + 0x4); /* 0x3612A14A: mov ecx, dword ptr [edx + 4] */ 25461 edx = MEM32(edx + 0x8); /* 0x3612A14D: mov edx, dword ptr [edx + 8] */ 25462 MEM32(ebp + (-0x14)) = eax; /* 0x3612A150: mov dword ptr [ebp - 0x14], eax */ 25463 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3612A153: fld dword ptr [ebp - 0x14] */ 25464 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3612A156: fmul dword ptr [ebp - 4] */ 25465 MEM32(ebp + (-0x10)) = ecx; /* 0x3612A159: mov dword ptr [ebp - 0x10], ecx */ 25466 ecx = MEM32(esi + 0x20); /* 0x3612A15C: mov ecx, dword ptr [esi + 0x20] */ 25467 MEM32(ebp + (-0xC)) = edx; /* 0x3612A15F: mov dword ptr [ebp - 0xc], edx */ 25468 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3612A162: fstp dword ptr [ebp - 0x14] */ 25469 eax = ebp + (-0x2C); /* 0x3612A165: lea eax, [ebp - 0x2c] */ 25470 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3612A168: fld dword ptr [ebp - 0x10] */ 25471 PUSH32(esp, eax); /* 0x3612A16B: push eax */ 25472 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3612A16C: fmul dword ptr [ebp - 4] */ 25473 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3612A16F: fstp dword ptr [ebp - 0x10] */ 25474 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3612A172: fld dword ptr [ebp - 0xc] */ 25475 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3612A175: fmul dword ptr [ebp - 4] */ 25476 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3612A178: fstp dword ptr [ebp - 0xc] */ 25477 RECOMP_ICALL(0x36133E80u); /* 0x3612A17B: call 0x36133e80 */ /* not lifted */ 25478 RECOMP_FLAGS_IN(); 25479 ecx = MEM32(eax); /* 0x3612A180: mov ecx, dword ptr [eax] */ 25480 edx = MEM32(eax + 0x4); /* 0x3612A182: mov edx, dword ptr [eax + 4] */ 25481 eax = MEM32(eax + 0x8); /* 0x3612A185: mov eax, dword ptr [eax + 8] */ 25482 MEM32(ebp + (-0x20)) = ecx; /* 0x3612A188: mov dword ptr [ebp - 0x20], ecx */ 25483 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3612A18B: fld dword ptr [ebp - 0x20] */ 25484 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3612A18E: fadd dword ptr [ebp - 0x14] */ 25485 ecx = MEM32(esi + 0x24); /* 0x3612A191: mov ecx, dword ptr [esi + 0x24] */ 25486 MEM32(ebp + (-0x1C)) = edx; /* 0x3612A194: mov dword ptr [ebp - 0x1c], edx */ 25487 MEM32(ebp + (-0x18)) = eax; /* 0x3612A197: mov dword ptr [ebp - 0x18], eax */ 25488 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3612A19A: fstp dword ptr [ebp - 0x20] */ 25489 eax = MEM32(ebp + (-0x20)); /* 0x3612A19D: mov eax, dword ptr [ebp - 0x20] */ 25490 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3612A1A0: fld dword ptr [ebp - 0x1c] */ 25491 edx = ecx + 0x78; /* 0x3612A1A3: lea edx, [ecx + 0x78] */ 25492 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3612A1A6: fadd dword ptr [ebp - 0x10] */ 25493 MEM32(edx) = eax; /* 0x3612A1A9: mov dword ptr [edx], eax */ 25494 PUSH32(esp, 1); /* 0x3612A1AB: push 1 */ 25495 PUSH32(esp, 1); /* 0x3612A1AD: push 1 */ 25496 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3612A1AF: fstp dword ptr [ebp - 0x1c] */ 25497 eax = MEM32(ebp + (-0x1C)); /* 0x3612A1B2: mov eax, dword ptr [ebp - 0x1c] */ 25498 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3612A1B5: fld dword ptr [ebp - 0x18] */ 25499 MEM32(edx + 0x4) = eax; /* 0x3612A1B8: mov dword ptr [edx + 4], eax */ 25500 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3612A1BB: fadd dword ptr [ebp - 0xc] */ 25501 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3612A1BE: fstp dword ptr [ebp - 0x18] */ 25502 eax = MEM32(ebp + (-0x18)); /* 0x3612A1C1: mov eax, dword ptr [ebp - 0x18] */ 25503 MEM32(edx + 0x8) = eax; /* 0x3612A1C4: mov dword ptr [edx + 8], eax */ 25504 edx = MEM32(ecx); /* 0x3612A1C7: mov edx, dword ptr [ecx] */ 25505 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3612A1C9: call dword ptr [edx + 0x2c] */ 25506 RECOMP_FLAGS_IN(); 25507 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3612A1CC: fld dword ptr [ebp - 8] */ 25508 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3612A1CF: fsub dword ptr [ebp - 4] */ 25509 eax = MEM32(esi + 0x24); /* 0x3612A1D2: mov eax, dword ptr [esi + 0x24] */ 25510 { float _v = (float)_st[0]; *(float*)ADDR(eax + 0x20C) = _v; } /* 0x3612A1D5: fst dword ptr [eax + 0x20c] */ 25511 ecx = MEM32(esi + 0x24); /* 0x3612A1DB: mov ecx, dword ptr [esi + 0x24] */ 25512 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3612A1DE: fmul dword ptr [0x36170464] */ 25513 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x210) = _v; } /* 0x3612A1E4: fstp dword ptr [ecx + 0x210] */ 25514 edx = MEM32(esi + 0x24); /* 0x3612A1EA: mov edx, dword ptr [esi + 0x24] */ 25515 fp_push(*(float*)&MEM32(esi + 0x38)); /* 0x3612A1ED: fld dword ptr [esi + 0x38] */ 25516 { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x208) = _v; } /* 0x3612A1F0: fstp dword ptr [edx + 0x208] */ 25517 ecx = MEM32(esi + 0x24); /* 0x3612A1F6: mov ecx, dword ptr [esi + 0x24] */ 25518 edx = MEM32(esi + 0x80); /* 0x3612A1F9: mov edx, dword ptr [esi + 0x80] */ 25519 eax = MEM32(ecx); /* 0x3612A1FF: mov eax, dword ptr [ecx] */ 25520 PUSH32(esp, edx); /* 0x3612A201: push edx */ 25521 RECOMP_ICALL(MEM32(eax + 0x50)); /* 0x3612A202: call dword ptr [eax + 0x50] */ 25522 RECOMP_FLAGS_IN(); 25523 esi = POP32_VAL(esp); /* 0x3612A205: pop esi */ 25524 esp = ebp; /* 0x3612A206: mov esp, ebp */ 25525 ebp = POP32_VAL(esp); /* 0x3612A208: pop ebp */ 25526 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3612A209: ret */ 25527 RECOMP_REGS_OUT(); 25528 } 25529 25530 void sub_3612A210(void) { 25531 int _fpu_cmp = 0; 25532 uint32_t _cf = 0; 25533 int _df = 1; 25534 uint32_t _flag_k = FK_NONE; 25535 uint32_t _flag_a = 0, _flag_b = 0; 25536 uint32_t _itail_tgt = 0; 25537 RECOMP_REGS_LOCALS 25538 RECOMP_ENTER(0x3612A210u); 25539 25540 L_3612A210: 25541 PUSH32(esp, ebp); /* 0x3612A210: push ebp */ 25542 ebp = esp; /* 0x3612A211: mov ebp, esp */ 25543 eax = MEM32(ebp + 0x8); /* 0x3612A213: mov eax, dword ptr [ebp + 8] */ 25544 MEM32(ecx + 0x80) = eax; /* 0x3612A216: mov dword ptr [ecx + 0x80], eax */ 25545 ecx = MEM32(ecx + 0x24); /* 0x3612A21C: mov ecx, dword ptr [ecx + 0x24] */ 25546 /* test ecx, ecx */ /* 0x3612A21F: test ecx, ecx */ 25547 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 25548 _cf = 0; 25549 _flag_k = FK_TEST; 25550 if (TEST_Z(_flag_a, _flag_b)) goto L_3612A229; /* 0x3612A221: je 0x3612a229 */ 25551 L_3612A223: 25552 edx = MEM32(ecx); /* 0x3612A223: mov edx, dword ptr [ecx] */ 25553 PUSH32(esp, eax); /* 0x3612A225: push eax */ 25554 RECOMP_ICALL(MEM32(edx + 0x50)); /* 0x3612A226: call dword ptr [edx + 0x50] */ 25555 RECOMP_FLAGS_IN(); 25556 L_3612A229: 25557 ebp = POP32_VAL(esp); /* 0x3612A229: pop ebp */ 25558 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612A22A: ret 4 */ 25559 RECOMP_REGS_OUT(); 25560 } 25561 25562 void sub_3612A230(void) { 25563 int _fpu_cmp = 0; 25564 uint32_t _cf = 0; 25565 int _df = 1; 25566 uint32_t _flag_k = FK_NONE; 25567 uint32_t _flag_a = 0, _flag_b = 0; 25568 uint32_t _itail_tgt = 0; 25569 RECOMP_REGS_LOCALS 25570 RECOMP_ENTER(0x3612A230u); 25571 25572 L_3612A230: 25573 PUSH32(esp, ebp); /* 0x3612A230: push ebp */ 25574 ebp = esp; /* 0x3612A231: mov ebp, esp */ 25575 eax = MEM32(ebp + 0x8); /* 0x3612A233: mov eax, dword ptr [ebp + 8] */ 25576 MEM32(ecx + 0x30) = eax; /* 0x3612A236: mov dword ptr [ecx + 0x30], eax */ 25577 ebp = POP32_VAL(esp); /* 0x3612A239: pop ebp */ 25578 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612A23A: ret 4 */ 25579 RECOMP_REGS_OUT(); 25580 } 25581 25582 void sub_3612A240(void) { 25583 int _fpu_cmp = 0; 25584 uint32_t _cf = 0; 25585 int _df = 1; 25586 uint32_t _flag_k = FK_NONE; 25587 uint32_t _flag_a = 0, _flag_b = 0; 25588 uint32_t _itail_tgt = 0; 25589 RECOMP_REGS_LOCALS 25590 RECOMP_ENTER(0x3612A240u); 25591 25592 L_3612A240: 25593 PUSH32(esp, ebp); /* 0x3612A240: push ebp */ 25594 ebp = esp; /* 0x3612A241: mov ebp, esp */ 25595 eax = MEM32(ebp + 0x8); /* 0x3612A243: mov eax, dword ptr [ebp + 8] */ 25596 MEM32(ecx + 0x34) = eax; /* 0x3612A246: mov dword ptr [ecx + 0x34], eax */ 25597 ebp = POP32_VAL(esp); /* 0x3612A249: pop ebp */ 25598 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612A24A: ret 4 */ 25599 RECOMP_REGS_OUT(); 25600 } 25601 25602 void sub_3612A250(void) { 25603 int _fpu_cmp = 0; 25604 uint32_t _cf = 0; 25605 int _df = 1; 25606 uint32_t _flag_k = FK_NONE; 25607 uint32_t _flag_a = 0, _flag_b = 0; 25608 uint32_t _itail_tgt = 0; 25609 RECOMP_REGS_LOCALS 25610 RECOMP_ENTER(0x3612A250u); 25611 25612 L_3612A250: 25613 PUSH32(esp, ebp); /* 0x3612A250: push ebp */ 25614 ebp = esp; /* 0x3612A251: mov ebp, esp */ 25615 eax = MEM32(ebp + 0x8); /* 0x3612A253: mov eax, dword ptr [ebp + 8] */ 25616 MEM32(ecx + 0x38) = eax; /* 0x3612A256: mov dword ptr [ecx + 0x38], eax */ 25617 ebp = POP32_VAL(esp); /* 0x3612A259: pop ebp */ 25618 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612A25A: ret 4 */ 25619 RECOMP_REGS_OUT(); 25620 } 25621 25622 void sub_3612A260(void) { 25623 int _fpu_cmp = 0; 25624 uint32_t _cf = 0; 25625 int _df = 1; 25626 uint32_t _flag_k = FK_NONE; 25627 uint32_t _flag_a = 0, _flag_b = 0; 25628 uint32_t _itail_tgt = 0; 25629 RECOMP_REGS_LOCALS 25630 RECOMP_ENTER(0x3612A260u); 25631 25632 goto L_3612A260; 25633 L_3612A0B0: 25634 PUSH32(esp, ebp); /* 0x3612A0B0: push ebp */ 25635 ebp = esp; /* 0x3612A0B1: mov ebp, esp */ 25636 PUSH32(esp, esi); /* 0x3612A0B3: push esi */ 25637 esi = ecx; /* 0x3612A0B4: mov esi, ecx */ 25638 RECOMP_ICALL(MEM32(0x3616F8D4)); /* 0x3612A0B6: call dword ptr [0x3616f8d4] */ 25639 RECOMP_FLAGS_IN(); 25640 /* test MEM8(ebp + 0x8), 1 */ /* 0x3612A0BC: test byte ptr [ebp + 8], 1 */ 25641 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 25642 _cf = 0; 25643 _flag_k = FK_NARROW(FK_TEST, 24); 25644 if (TEST_Z(_flag_a, _flag_b)) goto L_3612A0CB; /* 0x3612A0C0: je 0x3612a0cb */ 25645 L_3612A0C2: 25646 PUSH32(esp, esi); /* 0x3612A0C2: push esi */ 25647 RECOMP_ICALL(0x3615FCC4u); /* 0x3612A0C3: call 0x3615fcc4 */ /* not lifted */ 25648 RECOMP_FLAGS_IN(); 25649 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 25650 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25651 esp = esp + 4; /* 0x3612A0C8: add esp, 4 */ 25652 _flag_k = FK_ADD; 25653 L_3612A0CB: 25654 eax = esi; /* 0x3612A0CB: mov eax, esi */ 25655 esi = POP32_VAL(esp); /* 0x3612A0CD: pop esi */ 25656 ebp = POP32_VAL(esp); /* 0x3612A0CE: pop ebp */ 25657 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3612A0CF: ret 4 */ 25658 L_3612A260: 25659 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 25660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25661 ecx = ecx - 8; /* 0x3612A260: sub ecx, 8 */ 25662 _flag_k = FK_CMP; 25663 RECOMP_BACKEDGE(); 25664 goto L_3612A0B0; /* 0x3612A263: jmp 0x3612a0b0 */ 25665 { RECOMP_REGS_OUT(); return; } /* end of function */ 25666 RECOMP_REGS_OUT(); 25667 }