client/game/bbr.dll/lifted-0031.c (411641B)
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_25091EA0(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(0x25091EA0u); 17 18 L_25091EA0: 19 goto L_25091EB0; /* 0x25091EA0: jmp 0x25091eb0 */ 20 L_25091EB0: 21 PUSH32(esp, 0x25091E40u); /* 0x25091EB0: push 0x25091e40 */ 22 PUSH32(esp, 0x000F6956u); /* 0x25091EB5: push 0xf6956 */ 23 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091EBA: call dword ptr [0x251515cc] */ 24 RECOMP_FLAGS_IN(); 25 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 26 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27 esp = esp + 8; /* 0x25091EC0: add esp, 8 */ 28 _flag_k = FK_ADD; 29 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091EC3: ret */ 30 RECOMP_REGS_OUT(); 31 } 32 33 void sub_25091EB0(void) { 34 int _fpu_cmp = 0; 35 uint32_t _cf = 0; 36 int _df = 1; 37 uint32_t _flag_k = FK_NONE; 38 uint32_t _flag_a = 0, _flag_b = 0; 39 uint32_t _itail_tgt = 0; 40 RECOMP_REGS_LOCALS 41 RECOMP_ENTER(0x25091EB0u); 42 43 L_25091EB0: 44 PUSH32(esp, 0x25091E40u); /* 0x25091EB0: push 0x25091e40 */ 45 PUSH32(esp, 0x000F6956u); /* 0x25091EB5: push 0xf6956 */ 46 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091EBA: call dword ptr [0x251515cc] */ 47 RECOMP_FLAGS_IN(); 48 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 49 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 50 esp = esp + 8; /* 0x25091EC0: add esp, 8 */ 51 _flag_k = FK_ADD; 52 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091EC3: ret */ 53 RECOMP_REGS_OUT(); 54 } 55 56 void sub_25091ED0(void) { 57 int _fpu_cmp = 0; 58 uint32_t _cf = 0; 59 int _df = 1; 60 uint32_t _flag_k = FK_NONE; 61 uint32_t _flag_a = 0, _flag_b = 0; 62 uint32_t _itail_tgt = 0; 63 RECOMP_REGS_LOCALS 64 RECOMP_ENTER(0x25091ED0u); 65 66 L_25091ED0: 67 goto L_25091EE0; /* 0x25091ED0: jmp 0x25091ee0 */ 68 L_25091EE0: 69 PUSH32(esp, 0x25091E40u); /* 0x25091EE0: push 0x25091e40 */ 70 PUSH32(esp, 0x000F6965u); /* 0x25091EE5: push 0xf6965 */ 71 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091EEA: call dword ptr [0x251515cc] */ 72 RECOMP_FLAGS_IN(); 73 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 74 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 75 esp = esp + 8; /* 0x25091EF0: add esp, 8 */ 76 _flag_k = FK_ADD; 77 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091EF3: ret */ 78 RECOMP_REGS_OUT(); 79 } 80 81 void sub_25091EE0(void) { 82 int _fpu_cmp = 0; 83 uint32_t _cf = 0; 84 int _df = 1; 85 uint32_t _flag_k = FK_NONE; 86 uint32_t _flag_a = 0, _flag_b = 0; 87 uint32_t _itail_tgt = 0; 88 RECOMP_REGS_LOCALS 89 RECOMP_ENTER(0x25091EE0u); 90 91 L_25091EE0: 92 PUSH32(esp, 0x25091E40u); /* 0x25091EE0: push 0x25091e40 */ 93 PUSH32(esp, 0x000F6965u); /* 0x25091EE5: push 0xf6965 */ 94 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091EEA: call dword ptr [0x251515cc] */ 95 RECOMP_FLAGS_IN(); 96 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 97 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 98 esp = esp + 8; /* 0x25091EF0: add esp, 8 */ 99 _flag_k = FK_ADD; 100 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091EF3: ret */ 101 RECOMP_REGS_OUT(); 102 } 103 104 void sub_25091F00(void) { 105 int _fpu_cmp = 0; 106 uint32_t _cf = 0; 107 int _df = 1; 108 uint32_t _flag_k = FK_NONE; 109 uint32_t _flag_a = 0, _flag_b = 0; 110 uint32_t _itail_tgt = 0; 111 RECOMP_REGS_LOCALS 112 RECOMP_ENTER(0x25091F00u); 113 114 L_25091F00: 115 goto L_25091F10; /* 0x25091F00: jmp 0x25091f10 */ 116 L_25091F10: 117 PUSH32(esp, 0x25091E40u); /* 0x25091F10: push 0x25091e40 */ 118 PUSH32(esp, 0x000F6966u); /* 0x25091F15: push 0xf6966 */ 119 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091F1A: call dword ptr [0x251515cc] */ 120 RECOMP_FLAGS_IN(); 121 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 122 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 123 esp = esp + 8; /* 0x25091F20: add esp, 8 */ 124 _flag_k = FK_ADD; 125 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091F23: ret */ 126 RECOMP_REGS_OUT(); 127 } 128 129 void sub_25091F10(void) { 130 int _fpu_cmp = 0; 131 uint32_t _cf = 0; 132 int _df = 1; 133 uint32_t _flag_k = FK_NONE; 134 uint32_t _flag_a = 0, _flag_b = 0; 135 uint32_t _itail_tgt = 0; 136 RECOMP_REGS_LOCALS 137 RECOMP_ENTER(0x25091F10u); 138 139 L_25091F10: 140 PUSH32(esp, 0x25091E40u); /* 0x25091F10: push 0x25091e40 */ 141 PUSH32(esp, 0x000F6966u); /* 0x25091F15: push 0xf6966 */ 142 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091F1A: call dword ptr [0x251515cc] */ 143 RECOMP_FLAGS_IN(); 144 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 145 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 146 esp = esp + 8; /* 0x25091F20: add esp, 8 */ 147 _flag_k = FK_ADD; 148 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091F23: ret */ 149 RECOMP_REGS_OUT(); 150 } 151 152 void sub_25091F30(void) { 153 int _fpu_cmp = 0; 154 uint32_t _cf = 0; 155 int _df = 1; 156 uint32_t _flag_k = FK_NONE; 157 uint32_t _flag_a = 0, _flag_b = 0; 158 uint32_t _itail_tgt = 0; 159 RECOMP_REGS_LOCALS 160 RECOMP_ENTER(0x25091F30u); 161 162 L_25091F30: 163 MEM8(0x252382D5) = (uint8_t)(1); /* 0x25091F30: mov byte ptr [0x252382d5], 1 */ 164 goto L_25096DC0; /* 0x25091F37: jmp 0x25096dc0 */ 165 L_25096DC0: 166 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25096DC0: ret */ 167 RECOMP_REGS_OUT(); 168 } 169 170 void sub_25091F40(void) { 171 int _fpu_cmp = 0; 172 uint32_t _cf = 0; 173 int _df = 1; 174 uint32_t _flag_k = FK_NONE; 175 uint32_t _flag_a = 0, _flag_b = 0; 176 uint32_t _itail_tgt = 0; 177 RECOMP_REGS_LOCALS 178 RECOMP_ENTER(0x25091F40u); 179 180 L_25091F40: 181 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 182 SET_LO8(eax, 0); /* 0x25091F40: xor al, al */ 183 _cf = 0; 184 _flag_k = FK_NARROW(FK_TEST, 24); 185 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25091F42: ret 4 */ 186 RECOMP_REGS_OUT(); 187 } 188 189 void sub_25091F50(void) { 190 int _fpu_cmp = 0; 191 uint32_t _cf = 0; 192 int _df = 1; 193 uint32_t _flag_k = FK_NONE; 194 uint32_t _flag_a = 0, _flag_b = 0; 195 uint32_t _itail_tgt = 0; 196 RECOMP_REGS_LOCALS 197 RECOMP_ENTER(0x25091F50u); 198 199 goto L_25091F50; 200 L_25091670: 201 PUSH32(esp, ebp); /* 0x25091670: push ebp */ 202 ebp = esp; /* 0x25091671: mov ebp, esp */ 203 PUSH32(esp, ebx); /* 0x25091673: push ebx */ 204 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25091674: mov bl, byte ptr [ebp + 8] */ 205 /* test LO8(ebx), 2 */ /* 0x25091677: test bl, 2 */ 206 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 207 _cf = 0; 208 _flag_k = FK_NARROW(FK_TEST, 24); 209 PUSH32(esp, esi); /* 0x2509167A: push esi */ 210 esi = ecx; /* 0x2509167B: mov esi, ecx */ 211 if (TEST_Z(_flag_a, _flag_b)) goto L_250916AB; /* 0x2509167D: je 0x250916ab */ 212 L_2509167F: 213 eax = MEM32(esi + (-0x4)); /* 0x2509167F: mov eax, dword ptr [esi - 4] */ 214 PUSH32(esp, edi); /* 0x25091682: push edi */ 215 PUSH32(esp, 0x25091650u); /* 0x25091683: push 0x25091650 */ 216 edi = esi + (-0x4); /* 0x25091688: lea edi, [esi - 4] */ 217 PUSH32(esp, eax); /* 0x2509168B: push eax */ 218 PUSH32(esp, 0x2Cu); /* 0x2509168C: push 0x2c */ 219 PUSH32(esp, esi); /* 0x2509168E: push esi */ 220 RECOMP_ICALL(0x25137F92u); /* 0x2509168F: call 0x25137f92 */ /* not lifted */ 221 RECOMP_FLAGS_IN(); 222 /* test LO8(ebx), 1 */ /* 0x25091694: test bl, 1 */ 223 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 224 _cf = 0; 225 _flag_k = FK_NARROW(FK_TEST, 24); 226 if (TEST_Z(_flag_a, _flag_b)) goto L_250916A2; /* 0x25091697: je 0x250916a2 */ 227 L_25091699: 228 PUSH32(esp, edi); /* 0x25091699: push edi */ 229 RECOMP_ICALL(0x25137EECu); /* 0x2509169A: call 0x25137eec */ /* not lifted */ 230 RECOMP_FLAGS_IN(); 231 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 233 esp = esp + 4; /* 0x2509169F: add esp, 4 */ 234 _flag_k = FK_ADD; 235 L_250916A2: 236 eax = edi; /* 0x250916A2: mov eax, edi */ 237 edi = POP32_VAL(esp); /* 0x250916A4: pop edi */ 238 esi = POP32_VAL(esp); /* 0x250916A5: pop esi */ 239 ebx = POP32_VAL(esp); /* 0x250916A6: pop ebx */ 240 ebp = POP32_VAL(esp); /* 0x250916A7: pop ebp */ 241 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250916A8: ret 4 */ 242 L_250916AB: 243 ecx = esi; /* 0x250916AB: mov ecx, esi */ 244 RECOMP_ICALL(0x25091650u); /* 0x250916AD: call 0x25091650 */ /* not lifted */ 245 RECOMP_FLAGS_IN(); 246 /* test LO8(ebx), 1 */ /* 0x250916B2: test bl, 1 */ 247 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 248 _cf = 0; 249 _flag_k = FK_NARROW(FK_TEST, 24); 250 if (TEST_Z(_flag_a, _flag_b)) goto L_250916C0; /* 0x250916B5: je 0x250916c0 */ 251 L_250916B7: 252 PUSH32(esp, esi); /* 0x250916B7: push esi */ 253 RECOMP_ICALL(0x25137EECu); /* 0x250916B8: call 0x25137eec */ /* not lifted */ 254 RECOMP_FLAGS_IN(); 255 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 256 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 257 esp = esp + 4; /* 0x250916BD: add esp, 4 */ 258 _flag_k = FK_ADD; 259 L_250916C0: 260 eax = esi; /* 0x250916C0: mov eax, esi */ 261 esi = POP32_VAL(esp); /* 0x250916C2: pop esi */ 262 ebx = POP32_VAL(esp); /* 0x250916C3: pop ebx */ 263 ebp = POP32_VAL(esp); /* 0x250916C4: pop ebp */ 264 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250916C5: ret 4 */ 265 L_25091F50: 266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 268 ecx = ecx - 0x18u; /* 0x25091F50: sub ecx, 0x18 */ 269 _flag_k = FK_CMP; 270 RECOMP_BACKEDGE(); 271 goto L_25091670; /* 0x25091F53: jmp 0x25091670 */ 272 { RECOMP_REGS_OUT(); return; } /* end of function */ 273 RECOMP_REGS_OUT(); 274 } 275 276 void sub_25091F60(void) { 277 int _fpu_cmp = 0; 278 uint32_t _cf = 0; 279 int _df = 1; 280 uint32_t _flag_k = FK_NONE; 281 uint32_t _flag_a = 0, _flag_b = 0; 282 uint32_t _itail_tgt = 0; 283 RECOMP_REGS_LOCALS 284 RECOMP_ENTER(0x25091F60u); 285 286 goto L_25091F60; 287 L_250916F0: 288 PUSH32(esp, ebp); /* 0x250916F0: push ebp */ 289 ebp = esp; /* 0x250916F1: mov ebp, esp */ 290 PUSH32(esp, ebx); /* 0x250916F3: push ebx */ 291 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x250916F4: mov bl, byte ptr [ebp + 8] */ 292 /* test LO8(ebx), 2 */ /* 0x250916F7: test bl, 2 */ 293 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 294 _cf = 0; 295 _flag_k = FK_NARROW(FK_TEST, 24); 296 PUSH32(esp, esi); /* 0x250916FA: push esi */ 297 esi = ecx; /* 0x250916FB: mov esi, ecx */ 298 if (TEST_Z(_flag_a, _flag_b)) goto L_2509172B; /* 0x250916FD: je 0x2509172b */ 299 L_250916FF: 300 eax = MEM32(esi + (-0x4)); /* 0x250916FF: mov eax, dword ptr [esi - 4] */ 301 PUSH32(esp, edi); /* 0x25091702: push edi */ 302 PUSH32(esp, 0x250916D0u); /* 0x25091703: push 0x250916d0 */ 303 edi = esi + (-0x4); /* 0x25091708: lea edi, [esi - 4] */ 304 PUSH32(esp, eax); /* 0x2509170B: push eax */ 305 PUSH32(esp, 0x2Cu); /* 0x2509170C: push 0x2c */ 306 PUSH32(esp, esi); /* 0x2509170E: push esi */ 307 RECOMP_ICALL(0x25137F92u); /* 0x2509170F: call 0x25137f92 */ /* not lifted */ 308 RECOMP_FLAGS_IN(); 309 /* test LO8(ebx), 1 */ /* 0x25091714: test bl, 1 */ 310 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 311 _cf = 0; 312 _flag_k = FK_NARROW(FK_TEST, 24); 313 if (TEST_Z(_flag_a, _flag_b)) goto L_25091722; /* 0x25091717: je 0x25091722 */ 314 L_25091719: 315 PUSH32(esp, edi); /* 0x25091719: push edi */ 316 RECOMP_ICALL(0x25137EECu); /* 0x2509171A: call 0x25137eec */ /* not lifted */ 317 RECOMP_FLAGS_IN(); 318 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 320 esp = esp + 4; /* 0x2509171F: add esp, 4 */ 321 _flag_k = FK_ADD; 322 L_25091722: 323 eax = edi; /* 0x25091722: mov eax, edi */ 324 edi = POP32_VAL(esp); /* 0x25091724: pop edi */ 325 esi = POP32_VAL(esp); /* 0x25091725: pop esi */ 326 ebx = POP32_VAL(esp); /* 0x25091726: pop ebx */ 327 ebp = POP32_VAL(esp); /* 0x25091727: pop ebp */ 328 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25091728: ret 4 */ 329 L_2509172B: 330 ecx = esi; /* 0x2509172B: mov ecx, esi */ 331 RECOMP_ICALL(0x250916D0u); /* 0x2509172D: call 0x250916d0 */ /* not lifted */ 332 RECOMP_FLAGS_IN(); 333 /* test LO8(ebx), 1 */ /* 0x25091732: test bl, 1 */ 334 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 335 _cf = 0; 336 _flag_k = FK_NARROW(FK_TEST, 24); 337 if (TEST_Z(_flag_a, _flag_b)) goto L_25091740; /* 0x25091735: je 0x25091740 */ 338 L_25091737: 339 PUSH32(esp, esi); /* 0x25091737: push esi */ 340 RECOMP_ICALL(0x25137EECu); /* 0x25091738: call 0x25137eec */ /* not lifted */ 341 RECOMP_FLAGS_IN(); 342 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 343 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 344 esp = esp + 4; /* 0x2509173D: add esp, 4 */ 345 _flag_k = FK_ADD; 346 L_25091740: 347 eax = esi; /* 0x25091740: mov eax, esi */ 348 esi = POP32_VAL(esp); /* 0x25091742: pop esi */ 349 ebx = POP32_VAL(esp); /* 0x25091743: pop ebx */ 350 ebp = POP32_VAL(esp); /* 0x25091744: pop ebp */ 351 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25091745: ret 4 */ 352 L_25091F60: 353 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 355 ecx = ecx - 0x18u; /* 0x25091F60: sub ecx, 0x18 */ 356 _flag_k = FK_CMP; 357 RECOMP_BACKEDGE(); 358 goto L_250916F0; /* 0x25091F63: jmp 0x250916f0 */ 359 { RECOMP_REGS_OUT(); return; } /* end of function */ 360 RECOMP_REGS_OUT(); 361 } 362 363 void sub_25091F70(void) { 364 int _fpu_cmp = 0; 365 uint32_t _cf = 0; 366 int _df = 1; 367 uint32_t _flag_k = FK_NONE; 368 uint32_t _flag_a = 0, _flag_b = 0; 369 uint32_t _itail_tgt = 0; 370 RECOMP_REGS_LOCALS 371 RECOMP_ENTER(0x25091F70u); 372 373 L_25091F70: 374 PUSH32(esp, ebp); /* 0x25091F70: push ebp */ 375 ebp = esp; /* 0x25091F71: mov ebp, esp */ 376 PUSH32(esp, 0xFFFFFFFFu); /* 0x25091F73: push -1 */ 377 PUSH32(esp, 0x251494EBu); /* 0x25091F75: push 0x251494eb */ 378 eax = MEM32(FS_BASE + (0)); /* 0x25091F7A: mov eax, dword ptr fs:[0] */ 379 PUSH32(esp, eax); /* 0x25091F80: push eax */ 380 MEM32(FS_BASE + (0)) = esp; /* 0x25091F81: mov dword ptr fs:[0], esp */ 381 PUSH32(esp, ecx); /* 0x25091F88: push ecx */ 382 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x25091F89: mov al, byte ptr [ebp + 0xb] */ 383 PUSH32(esp, ebx); /* 0x25091F8C: push ebx */ 384 PUSH32(esp, esi); /* 0x25091F8D: push esi */ 385 esi = ecx; /* 0x25091F8E: mov esi, ecx */ 386 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 387 ebx = 0; /* 0x25091F90: xor ebx, ebx */ 388 _cf = 0; 389 _flag_k = FK_TEST; 390 PUSH32(esp, edi); /* 0x25091F92: push edi */ 391 MEM32(ebp + (-0x10)) = esi; /* 0x25091F93: mov dword ptr [ebp - 0x10], esi */ 392 MEM8(esi + 0x4) = (uint8_t)(LO8(eax)); /* 0x25091F96: mov byte ptr [esi + 4], al */ 393 MEM32(esi + 0x8) = ebx; /* 0x25091F99: mov dword ptr [esi + 8], ebx */ 394 MEM32(esi + 0xC) = ebx; /* 0x25091F9C: mov dword ptr [esi + 0xc], ebx */ 395 MEM32(esi + 0x10) = ebx; /* 0x25091F9F: mov dword ptr [esi + 0x10], ebx */ 396 ecx = MEM32(ebp + 0x8); /* 0x25091FA2: mov ecx, dword ptr [ebp + 8] */ 397 PUSH32(esp, ebx); /* 0x25091FA5: push ebx */ 398 edi = esi + 0x18; /* 0x25091FA6: lea edi, [esi + 0x18] */ 399 PUSH32(esp, edi); /* 0x25091FA9: push edi */ 400 PUSH32(esp, 0x700u); /* 0x25091FAA: push 0x700 */ 401 PUSH32(esp, ebx); /* 0x25091FAF: push ebx */ 402 MEM32(ebp + (-0x4)) = ebx; /* 0x25091FB0: mov dword ptr [ebp - 4], ebx */ 403 MEM32(esi) = 0x25155B94u; /* 0x25091FB3: mov dword ptr [esi], 0x25155b94 */ 404 MEM32(esi + 0x14) = ecx; /* 0x25091FB9: mov dword ptr [esi + 0x14], ecx */ 405 RECOMP_ICALL(MEM32(0x251510B8)); /* 0x25091FBC: call dword ptr [0x251510b8] */ 406 RECOMP_FLAGS_IN(); 407 PUSH32(esp, eax); /* 0x25091FC2: push eax */ 408 RECOMP_ICALL(0x250CE01Cu); /* 0x25091FC3: call 0x250ce01c */ /* not lifted */ 409 RECOMP_FLAGS_IN(); 410 edi = MEM32(edi); /* 0x25091FC8: mov edi, dword ptr [edi] */ 411 edx = MEM32(edi); /* 0x25091FCA: mov edx, dword ptr [edi] */ 412 PUSH32(esp, 1); /* 0x25091FCC: push 1 */ 413 PUSH32(esp, esi); /* 0x25091FCE: push esi */ 414 PUSH32(esp, 0x250920E0u); /* 0x25091FCF: push 0x250920e0 */ 415 PUSH32(esp, ebx); /* 0x25091FD4: push ebx */ 416 PUSH32(esp, edi); /* 0x25091FD5: push edi */ 417 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x25091FD6: call dword ptr [edx + 0x10] */ 418 RECOMP_FLAGS_IN(); 419 ecx = MEM32(esi + 0x8); /* 0x25091FD9: mov ecx, dword ptr [esi + 8] */ 420 /* cmp ecx, ebx */ /* 0x25091FDC: cmp ecx, ebx */ 421 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 423 _flag_k = FK_CMP; 424 if (CMP_NE(_flag_a, _flag_b)) goto L_25091FE4; /* 0x25091FDE: jne 0x25091fe4 */ 425 L_25091FE0: 426 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 427 eax = 0; /* 0x25091FE0: xor eax, eax */ 428 _cf = 0; 429 _flag_k = FK_TEST; 430 goto L_25091FEC; /* 0x25091FE2: jmp 0x25091fec */ 431 L_25091FE4: 432 eax = MEM32(esi + 0xC); /* 0x25091FE4: mov eax, dword ptr [esi + 0xc] */ 433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 435 eax = eax - ecx; /* 0x25091FE7: sub eax, ecx */ 436 _flag_k = FK_CMP; 437 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x25091FE9: sar eax, 2 */ 438 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 439 eax = (uint32_t)((int32_t)eax >> 2u); 440 L_25091FEC: 441 PUSH32(esp, eax); /* 0x25091FEC: push eax */ 442 PUSH32(esp, 0x251B4278u); /* 0x25091FED: push 0x251b4278 */ 443 RECOMP_ICALL(MEM32(0x25151334)); /* 0x25091FF2: call dword ptr [0x25151334] */ 444 RECOMP_FLAGS_IN(); 445 ecx = MEM32(ebp + (-0xC)); /* 0x25091FF8: mov ecx, dword ptr [ebp - 0xc] */ 446 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 448 esp = esp + 8; /* 0x25091FFB: add esp, 8 */ 449 _flag_k = FK_ADD; 450 edi = POP32_VAL(esp); /* 0x25091FFE: pop edi */ 451 eax = esi; /* 0x25091FFF: mov eax, esi */ 452 esi = POP32_VAL(esp); /* 0x25092001: pop esi */ 453 ebx = POP32_VAL(esp); /* 0x25092002: pop ebx */ 454 MEM32(FS_BASE + (0)) = ecx; /* 0x25092003: mov dword ptr fs:[0], ecx */ 455 esp = ebp; /* 0x2509200A: mov esp, ebp */ 456 ebp = POP32_VAL(esp); /* 0x2509200C: pop ebp */ 457 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509200D: ret 4 */ 458 RECOMP_REGS_OUT(); 459 } 460 461 void sub_25092010(void) { 462 int _fpu_cmp = 0; 463 uint32_t _cf = 0; 464 int _df = 1; 465 uint32_t _flag_k = FK_NONE; 466 uint32_t _flag_a = 0, _flag_b = 0; 467 uint32_t _itail_tgt = 0; 468 RECOMP_REGS_LOCALS 469 RECOMP_ENTER(0x25092010u); 470 471 L_25092010: 472 PUSH32(esp, ebp); /* 0x25092010: push ebp */ 473 ebp = esp; /* 0x25092011: mov ebp, esp */ 474 PUSH32(esp, esi); /* 0x25092013: push esi */ 475 esi = ecx; /* 0x25092014: mov esi, ecx */ 476 RECOMP_ICALL(0x25092040u); /* 0x25092016: call 0x25092040 */ /* not lifted */ 477 RECOMP_FLAGS_IN(); 478 /* test MEM8(ebp + 0x8), 1 */ /* 0x2509201B: test byte ptr [ebp + 8], 1 */ 479 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 480 _cf = 0; 481 _flag_k = FK_NARROW(FK_TEST, 24); 482 if (TEST_Z(_flag_a, _flag_b)) goto L_2509202A; /* 0x2509201F: je 0x2509202a */ 483 L_25092021: 484 PUSH32(esp, esi); /* 0x25092021: push esi */ 485 RECOMP_ICALL(0x25137EECu); /* 0x25092022: call 0x25137eec */ /* not lifted */ 486 RECOMP_FLAGS_IN(); 487 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 488 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 489 esp = esp + 4; /* 0x25092027: add esp, 4 */ 490 _flag_k = FK_ADD; 491 L_2509202A: 492 eax = esi; /* 0x2509202A: mov eax, esi */ 493 esi = POP32_VAL(esp); /* 0x2509202C: pop esi */ 494 ebp = POP32_VAL(esp); /* 0x2509202D: pop ebp */ 495 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509202E: ret 4 */ 496 RECOMP_REGS_OUT(); 497 } 498 499 void sub_25092040(void) { 500 int _fpu_cmp = 0; 501 uint32_t _cf = 0; 502 int _df = 1; 503 uint32_t _flag_k = FK_NONE; 504 uint32_t _flag_a = 0, _flag_b = 0; 505 uint32_t _itail_tgt = 0; 506 RECOMP_REGS_LOCALS 507 RECOMP_ENTER(0x25092040u); 508 509 L_25092040: 510 PUSH32(esp, ebp); /* 0x25092040: push ebp */ 511 ebp = esp; /* 0x25092041: mov ebp, esp */ 512 PUSH32(esp, 0xFFFFFFFFu); /* 0x25092043: push -1 */ 513 PUSH32(esp, 0x2514950Bu); /* 0x25092045: push 0x2514950b */ 514 eax = MEM32(FS_BASE + (0)); /* 0x2509204A: mov eax, dword ptr fs:[0] */ 515 PUSH32(esp, eax); /* 0x25092050: push eax */ 516 MEM32(FS_BASE + (0)) = esp; /* 0x25092051: mov dword ptr fs:[0], esp */ 517 PUSH32(esp, ecx); /* 0x25092058: push ecx */ 518 PUSH32(esp, ebx); /* 0x25092059: push ebx */ 519 PUSH32(esp, esi); /* 0x2509205A: push esi */ 520 esi = ecx; /* 0x2509205B: mov esi, ecx */ 521 PUSH32(esp, edi); /* 0x2509205D: push edi */ 522 MEM32(ebp + (-0x10)) = esi; /* 0x2509205E: mov dword ptr [ebp - 0x10], esi */ 523 MEM32(esi) = 0x25155B94u; /* 0x25092061: mov dword ptr [esi], 0x25155b94 */ 524 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 525 edi = 0; /* 0x25092067: xor edi, edi */ 526 _cf = 0; 527 _flag_k = FK_TEST; 528 MEM32(ebp + (-0x4)) = edi; /* 0x25092069: mov dword ptr [ebp - 4], edi */ 529 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 530 ebx = 0; /* 0x2509206C: xor ebx, ebx */ 531 _cf = 0; 532 _flag_k = FK_TEST; 533 L_2509206E: 534 eax = MEM32(esi + 0x8); /* 0x2509206E: mov eax, dword ptr [esi + 8] */ 535 /* cmp eax, edi */ /* 0x25092071: cmp eax, edi */ 536 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 538 _flag_k = FK_CMP; 539 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509209F; /* 0x25092073: je 0x2509209f */ 540 L_25092075: 541 ecx = MEM32(esi + 0xC); /* 0x25092075: mov ecx, dword ptr [esi + 0xc] */ 542 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 544 ecx = ecx - eax; /* 0x25092078: sub ecx, eax */ 545 _flag_k = FK_CMP; 546 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509207A: sar ecx, 2 */ 547 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 548 ecx = (uint32_t)((int32_t)ecx >> 2u); 549 /* cmp ebx, ecx */ /* 0x2509207D: cmp ebx, ecx */ 550 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 552 _flag_k = FK_CMP; 553 if (CMP_AE(_flag_a, _flag_b)) goto L_2509209F; /* 0x2509207F: jae 0x2509209f */ 554 L_25092081: 555 edx = eax; /* 0x25092081: mov edx, eax */ 556 edi = MEM32(edx + ebx * 4); /* 0x25092083: mov edi, dword ptr [edx + ebx*4] */ 557 /* test edi, edi */ /* 0x25092086: test edi, edi */ 558 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 559 _cf = 0; 560 _flag_k = FK_TEST; 561 if (TEST_Z(_flag_a, _flag_b)) goto L_2509209A; /* 0x25092088: je 0x2509209a */ 562 L_2509208A: 563 ecx = edi; /* 0x2509208A: mov ecx, edi */ 564 RECOMP_ICALL(0x250923B0u); /* 0x2509208C: call 0x250923b0 */ /* not lifted */ 565 RECOMP_FLAGS_IN(); 566 PUSH32(esp, edi); /* 0x25092091: push edi */ 567 RECOMP_ICALL(0x25137EECu); /* 0x25092092: call 0x25137eec */ /* not lifted */ 568 RECOMP_FLAGS_IN(); 569 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 570 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 571 esp = esp + 4; /* 0x25092097: add esp, 4 */ 572 _flag_k = FK_ADD; 573 L_2509209A: 574 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 575 ebx = ebx + 1; /* 0x2509209A: inc ebx */ 576 _flag_k = FK_INC; 577 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 578 edi = 0; /* 0x2509209B: xor edi, edi */ 579 _cf = 0; 580 _flag_k = FK_TEST; 581 RECOMP_BACKEDGE(); 582 goto L_2509206E; /* 0x2509209D: jmp 0x2509206e */ 583 L_2509209F: 584 eax = MEM32(esi + 0x18); /* 0x2509209F: mov eax, dword ptr [esi + 0x18] */ 585 ecx = MEM32(eax); /* 0x250920A2: mov ecx, dword ptr [eax] */ 586 PUSH32(esp, eax); /* 0x250920A4: push eax */ 587 RECOMP_ICALL(MEM32(ecx + 0x8)); /* 0x250920A5: call dword ptr [ecx + 8] */ 588 RECOMP_FLAGS_IN(); 589 eax = MEM32(esi + 0x8); /* 0x250920A8: mov eax, dword ptr [esi + 8] */ 590 PUSH32(esp, eax); /* 0x250920AB: push eax */ 591 MEM32(ebp + (-0x10)) = eax; /* 0x250920AC: mov dword ptr [ebp - 0x10], eax */ 592 RECOMP_ICALL(0x25137EECu); /* 0x250920AF: call 0x25137eec */ /* not lifted */ 593 RECOMP_FLAGS_IN(); 594 ecx = MEM32(ebp + (-0xC)); /* 0x250920B4: mov ecx, dword ptr [ebp - 0xc] */ 595 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 596 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 597 esp = esp + 4; /* 0x250920B7: add esp, 4 */ 598 _flag_k = FK_ADD; 599 MEM32(esi + 0x8) = edi; /* 0x250920BA: mov dword ptr [esi + 8], edi */ 600 MEM32(esi + 0xC) = edi; /* 0x250920BD: mov dword ptr [esi + 0xc], edi */ 601 MEM32(esi + 0x10) = edi; /* 0x250920C0: mov dword ptr [esi + 0x10], edi */ 602 edi = POP32_VAL(esp); /* 0x250920C3: pop edi */ 603 esi = POP32_VAL(esp); /* 0x250920C4: pop esi */ 604 ebx = POP32_VAL(esp); /* 0x250920C5: pop ebx */ 605 MEM32(FS_BASE + (0)) = ecx; /* 0x250920C6: mov dword ptr fs:[0], ecx */ 606 esp = ebp; /* 0x250920CD: mov esp, ebp */ 607 ebp = POP32_VAL(esp); /* 0x250920CF: pop ebp */ 608 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250920D0: ret */ 609 RECOMP_REGS_OUT(); 610 } 611 612 void sub_250920E0(void) { 613 int _fpu_cmp = 0; 614 uint32_t _cf = 0; 615 int _df = 1; 616 uint32_t _flag_k = FK_NONE; 617 uint32_t _flag_a = 0, _flag_b = 0; 618 uint32_t _itail_tgt = 0; 619 RECOMP_REGS_LOCALS 620 RECOMP_ENTER(0x250920E0u); 621 622 L_250920E0: 623 PUSH32(esp, ebp); /* 0x250920E0: push ebp */ 624 ebp = esp; /* 0x250920E1: mov ebp, esp */ 625 PUSH32(esp, 0xFFFFFFFFu); /* 0x250920E3: push -1 */ 626 PUSH32(esp, 0x2514952Bu); /* 0x250920E5: push 0x2514952b */ 627 eax = MEM32(FS_BASE + (0)); /* 0x250920EA: mov eax, dword ptr fs:[0] */ 628 PUSH32(esp, eax); /* 0x250920F0: push eax */ 629 MEM32(FS_BASE + (0)) = esp; /* 0x250920F1: mov dword ptr fs:[0], esp */ 630 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 632 esp = esp - 8; /* 0x250920F8: sub esp, 8 */ 633 _flag_k = FK_CMP; 634 PUSH32(esp, esi); /* 0x250920FB: push esi */ 635 PUSH32(esp, edi); /* 0x250920FC: push edi */ 636 PUSH32(esp, 0x38u); /* 0x250920FD: push 0x38 */ 637 RECOMP_ICALL(0x251380D0u); /* 0x250920FF: call 0x251380d0 */ /* not lifted */ 638 RECOMP_FLAGS_IN(); 639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 641 esp = esp + 4; /* 0x25092104: add esp, 4 */ 642 _flag_k = FK_ADD; 643 MEM32(ebp + (-0x14)) = eax; /* 0x25092107: mov dword ptr [ebp - 0x14], eax */ 644 /* test eax, eax */ /* 0x2509210A: test eax, eax */ 645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 646 _cf = 0; 647 _flag_k = FK_TEST; 648 esi = MEM32(ebp + 0xC); /* 0x2509210C: mov esi, dword ptr [ebp + 0xc] */ 649 MEM32(ebp + (-0x4)) = 0; /* 0x2509210F: mov dword ptr [ebp - 4], 0 */ 650 if (TEST_Z(_flag_a, _flag_b)) goto L_25092130; /* 0x25092116: je 0x25092130 */ 651 L_25092118: 652 ecx = MEM32(esi + 0x14); /* 0x25092118: mov ecx, dword ptr [esi + 0x14] */ 653 edx = MEM32(ebp + 0x8); /* 0x2509211B: mov edx, dword ptr [ebp + 8] */ 654 PUSH32(esp, ecx); /* 0x2509211E: push ecx */ 655 ecx = MEM32(esi + 0x18); /* 0x2509211F: mov ecx, dword ptr [esi + 0x18] */ 656 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 658 edx = edx + 4; /* 0x25092122: add edx, 4 */ 659 _flag_k = FK_ADD; 660 PUSH32(esp, edx); /* 0x25092125: push edx */ 661 PUSH32(esp, ecx); /* 0x25092126: push ecx */ 662 ecx = eax; /* 0x25092127: mov ecx, eax */ 663 RECOMP_ICALL(0x25092330u); /* 0x25092129: call 0x25092330 */ /* not lifted */ 664 RECOMP_FLAGS_IN(); 665 goto L_25092132; /* 0x2509212E: jmp 0x25092132 */ 666 L_25092130: 667 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 668 eax = 0; /* 0x25092130: xor eax, eax */ 669 _cf = 0; 670 _flag_k = FK_TEST; 671 L_25092132: 672 edx = MEM32(esi + 0x10); /* 0x25092132: mov edx, dword ptr [esi + 0x10] */ 673 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 674 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 675 esi = esi + 4; /* 0x25092135: add esi, 4 */ 676 _flag_k = FK_ADD; 677 MEM32(ebp + (-0x10)) = eax; /* 0x25092138: mov dword ptr [ebp - 0x10], eax */ 678 eax = MEM32(esi + 0x8); /* 0x2509213B: mov eax, dword ptr [esi + 8] */ 679 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 681 edx = edx - eax; /* 0x2509213E: sub edx, eax */ 682 _flag_k = FK_CMP; 683 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x25092140: sar edx, 2 */ 684 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 685 edx = (uint32_t)((int32_t)edx >> 2u); 686 /* cmp edx, 1 */ /* 0x25092143: cmp edx, 1 */ 687 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 689 _flag_k = FK_CMP; 690 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25092146: mov dword ptr [ebp - 4], 0xffffffff */ 691 edi = eax; /* 0x2509214D: mov edi, eax */ 692 if (CMP_AE(_flag_a, _flag_b)) goto L_25092235; /* 0x2509214F: jae 0x25092235 */ 693 L_25092155: 694 edx = MEM32(esi + 0x4); /* 0x25092155: mov edx, dword ptr [esi + 4] */ 695 /* test edx, edx */ /* 0x25092158: test edx, edx */ 696 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 697 _cf = 0; 698 _flag_k = FK_TEST; 699 if (TEST_Z(_flag_a, _flag_b)) goto L_25092168; /* 0x2509215A: je 0x25092168 */ 700 L_2509215C: 701 ecx = eax; /* 0x2509215C: mov ecx, eax */ 702 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 704 ecx = ecx - edx; /* 0x2509215E: sub ecx, edx */ 705 _flag_k = FK_CMP; 706 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x25092160: sar ecx, 2 */ 707 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 708 ecx = (uint32_t)((int32_t)ecx >> 2u); 709 /* cmp ecx, 1 */ /* 0x25092163: cmp ecx, 1 */ 710 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 711 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 712 _flag_k = FK_CMP; 713 if (CMP_A(_flag_a, _flag_b)) goto L_2509216D; /* 0x25092166: ja 0x2509216d */ 714 L_25092168: 715 ecx = 1; /* 0x25092168: mov ecx, 1 */ 716 L_2509216D: 717 /* test edx, edx */ /* 0x2509216D: test edx, edx */ 718 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 719 _cf = 0; 720 _flag_k = FK_TEST; 721 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092175; /* 0x2509216F: jne 0x25092175 */ 722 L_25092171: 723 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 724 eax = 0; /* 0x25092171: xor eax, eax */ 725 _cf = 0; 726 _flag_k = FK_TEST; 727 goto L_2509217A; /* 0x25092173: jmp 0x2509217a */ 728 L_25092175: 729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 731 eax = eax - edx; /* 0x25092175: sub eax, edx */ 732 _flag_k = FK_CMP; 733 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x25092177: sar eax, 2 */ 734 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 735 eax = (uint32_t)((int32_t)eax >> 2u); 736 L_2509217A: 737 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 738 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 739 eax = eax + ecx; /* 0x2509217A: add eax, ecx */ 740 _flag_k = FK_ADD; 741 /* test eax, eax */ /* 0x2509217C: test eax, eax */ 742 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 743 _cf = 0; 744 _flag_k = FK_TEST; 745 MEM32(ebp + (-0x14)) = eax; /* 0x2509217E: mov dword ptr [ebp - 0x14], eax */ 746 if (TEST_NS(_flag_a, _flag_b)) goto L_25092185; /* 0x25092181: jge 0x25092185 */ 747 L_25092183: 748 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 749 eax = 0; /* 0x25092183: xor eax, eax */ 750 _cf = 0; 751 _flag_k = FK_TEST; 752 L_25092185: 753 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x25092185: shl eax, 2 */ 754 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 755 eax = eax << 2u; /* 0x25092185: shl eax, 2 */ 756 PUSH32(esp, ebx); /* 0x25092188: push ebx */ 757 PUSH32(esp, eax); /* 0x25092189: push eax */ 758 RECOMP_ICALL(0x251380D0u); /* 0x2509218A: call 0x251380d0 */ /* not lifted */ 759 RECOMP_FLAGS_IN(); 760 MEM32(ebp + 0x8) = eax; /* 0x2509218F: mov dword ptr [ebp + 8], eax */ 761 ebx = eax; /* 0x25092192: mov ebx, eax */ 762 eax = MEM32(esi + 0x4); /* 0x25092194: mov eax, dword ptr [esi + 4] */ 763 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 764 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 765 esp = esp + 4; /* 0x25092197: add esp, 4 */ 766 _flag_k = FK_ADD; 767 /* cmp eax, edi */ /* 0x2509219A: cmp eax, edi */ 768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 770 _flag_k = FK_CMP; 771 MEM32(ebp + 0xC) = eax; /* 0x2509219C: mov dword ptr [ebp + 0xc], eax */ 772 if (CMP_EQ(_flag_a, _flag_b)) goto L_250921C0; /* 0x2509219F: je 0x250921c0 */ 773 L_250921A1: 774 goto L_250921A6; /* 0x250921A1: jmp 0x250921a6 */ 775 L_250921A3: 776 eax = MEM32(ebp + 0xC); /* 0x250921A3: mov eax, dword ptr [ebp + 0xc] */ 777 L_250921A6: 778 PUSH32(esp, eax); /* 0x250921A6: push eax */ 779 PUSH32(esp, ebx); /* 0x250921A7: push ebx */ 780 RECOMP_ICALL(0x25085360u); /* 0x250921A8: call 0x25085360 */ /* not lifted */ 781 RECOMP_FLAGS_IN(); 782 eax = MEM32(ebp + 0xC); /* 0x250921AD: mov eax, dword ptr [ebp + 0xc] */ 783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 785 eax = eax + 4; /* 0x250921B0: add eax, 4 */ 786 _flag_k = FK_ADD; 787 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 788 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 789 esp = esp + 8; /* 0x250921B3: add esp, 8 */ 790 _flag_k = FK_ADD; 791 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 792 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 793 ebx = ebx + 4; /* 0x250921B6: add ebx, 4 */ 794 _flag_k = FK_ADD; 795 /* cmp eax, edi */ /* 0x250921B9: cmp eax, edi */ 796 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 798 _flag_k = FK_CMP; 799 MEM32(ebp + 0xC) = eax; /* 0x250921BB: mov dword ptr [ebp + 0xc], eax */ 800 RECOMP_BACKEDGE(); 801 if (CMP_NE(_flag_a, _flag_b)) goto L_250921A3; /* 0x250921BE: jne 0x250921a3 */ 802 L_250921C0: 803 ecx = ebp + (-0x10); /* 0x250921C0: lea ecx, [ebp - 0x10] */ 804 PUSH32(esp, ecx); /* 0x250921C3: push ecx */ 805 PUSH32(esp, 1); /* 0x250921C4: push 1 */ 806 PUSH32(esp, ebx); /* 0x250921C6: push ebx */ 807 ecx = esi; /* 0x250921C7: mov ecx, esi */ 808 RECOMP_ICALL(0x250E3D70u); /* 0x250921C9: call 0x250e3d70 */ /* not lifted */ 809 RECOMP_FLAGS_IN(); 810 edx = MEM32(esi + 0x8); /* 0x250921CE: mov edx, dword ptr [esi + 8] */ 811 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 813 ebx = ebx + 4; /* 0x250921D1: add ebx, 4 */ 814 _flag_k = FK_ADD; 815 PUSH32(esp, ebx); /* 0x250921D4: push ebx */ 816 PUSH32(esp, edx); /* 0x250921D5: push edx */ 817 PUSH32(esp, edi); /* 0x250921D6: push edi */ 818 ecx = esi; /* 0x250921D7: mov ecx, esi */ 819 RECOMP_ICALL(0x250E3D40u); /* 0x250921D9: call 0x250e3d40 */ /* not lifted */ 820 RECOMP_FLAGS_IN(); 821 eax = MEM32(esi + 0x8); /* 0x250921DE: mov eax, dword ptr [esi + 8] */ 822 ecx = MEM32(esi + 0x4); /* 0x250921E1: mov ecx, dword ptr [esi + 4] */ 823 PUSH32(esp, eax); /* 0x250921E4: push eax */ 824 PUSH32(esp, ecx); /* 0x250921E5: push ecx */ 825 ecx = esi; /* 0x250921E6: mov ecx, esi */ 826 RECOMP_ICALL(0x25093260u); /* 0x250921E8: call 0x25093260 */ /* not lifted */ 827 RECOMP_FLAGS_IN(); 828 edx = MEM32(esi + 0x4); /* 0x250921ED: mov edx, dword ptr [esi + 4] */ 829 PUSH32(esp, edx); /* 0x250921F0: push edx */ 830 RECOMP_ICALL(0x25137EECu); /* 0x250921F1: call 0x25137eec */ /* not lifted */ 831 RECOMP_FLAGS_IN(); 832 eax = MEM32(ebp + (-0x14)); /* 0x250921F6: mov eax, dword ptr [ebp - 0x14] */ 833 edx = MEM32(ebp + 0x8); /* 0x250921F9: mov edx, dword ptr [ebp + 8] */ 834 ecx = edx + eax * 4; /* 0x250921FC: lea ecx, [edx + eax*4] */ 835 eax = MEM32(esi + 0x4); /* 0x250921FF: mov eax, dword ptr [esi + 4] */ 836 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 838 esp = esp + 4; /* 0x25092202: add esp, 4 */ 839 _flag_k = FK_ADD; 840 /* test eax, eax */ /* 0x25092205: test eax, eax */ 841 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 842 _cf = 0; 843 _flag_k = FK_TEST; 844 MEM32(esi + 0xC) = ecx; /* 0x25092207: mov dword ptr [esi + 0xc], ecx */ 845 ebx = POP32_VAL(esp); /* 0x2509220A: pop ebx */ 846 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509221E; /* 0x2509220B: jne 0x2509221e */ 847 L_2509220D: 848 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 849 ecx = 0; /* 0x2509220D: xor ecx, ecx */ 850 _cf = 0; 851 _flag_k = FK_TEST; 852 eax = edx + ecx * 4 + 0x4; /* 0x2509220F: lea eax, [edx + ecx*4 + 4] */ 853 MEM32(esi + 0x8) = eax; /* 0x25092213: mov dword ptr [esi + 8], eax */ 854 MEM32(esi + 0x4) = edx; /* 0x25092216: mov dword ptr [esi + 4], edx */ 855 goto L_250922BE; /* 0x25092219: jmp 0x250922be */ 856 L_2509221E: 857 ecx = MEM32(esi + 0x8); /* 0x2509221E: mov ecx, dword ptr [esi + 8] */ 858 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 860 ecx = ecx - eax; /* 0x25092221: sub ecx, eax */ 861 _flag_k = FK_CMP; 862 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x25092223: sar ecx, 2 */ 863 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 864 ecx = (uint32_t)((int32_t)ecx >> 2u); 865 eax = edx + ecx * 4 + 0x4; /* 0x25092226: lea eax, [edx + ecx*4 + 4] */ 866 MEM32(esi + 0x8) = eax; /* 0x2509222A: mov dword ptr [esi + 8], eax */ 867 MEM32(esi + 0x4) = edx; /* 0x2509222D: mov dword ptr [esi + 4], edx */ 868 goto L_250922BE; /* 0x25092230: jmp 0x250922be */ 869 L_25092235: 870 ecx = eax; /* 0x25092235: mov ecx, eax */ 871 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 873 ecx = ecx - edi; /* 0x25092237: sub ecx, edi */ 874 _flag_k = FK_CMP; 875 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x25092239: sar ecx, 2 */ 876 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 877 ecx = (uint32_t)((int32_t)ecx >> 2u); 878 /* cmp ecx, 1 */ /* 0x2509223C: cmp ecx, 1 */ 879 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 881 _flag_k = FK_CMP; 882 if (CMP_AE(_flag_a, _flag_b)) goto L_25092281; /* 0x2509223F: jae 0x25092281 */ 883 L_25092241: 884 edx = edi + 0x4; /* 0x25092241: lea edx, [edi + 4] */ 885 PUSH32(esp, edx); /* 0x25092244: push edx */ 886 PUSH32(esp, eax); /* 0x25092245: push eax */ 887 PUSH32(esp, edi); /* 0x25092246: push edi */ 888 ecx = esi; /* 0x25092247: mov ecx, esi */ 889 RECOMP_ICALL(0x250E3D40u); /* 0x25092249: call 0x250e3d40 */ /* not lifted */ 890 RECOMP_FLAGS_IN(); 891 eax = MEM32(esi + 0x8); /* 0x2509224E: mov eax, dword ptr [esi + 8] */ 892 edx = eax; /* 0x25092251: mov edx, eax */ 893 ecx = ebp + (-0x10); /* 0x25092253: lea ecx, [ebp - 0x10] */ 894 PUSH32(esp, ecx); /* 0x25092256: push ecx */ 895 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 897 edx = edx - edi; /* 0x25092257: sub edx, edi */ 898 _flag_k = FK_CMP; 899 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x25092259: sar edx, 2 */ 900 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 901 edx = (uint32_t)((int32_t)edx >> 2u); 902 ecx = 1; /* 0x2509225C: mov ecx, 1 */ 903 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 905 ecx = ecx - edx; /* 0x25092261: sub ecx, edx */ 906 _flag_k = FK_CMP; 907 PUSH32(esp, ecx); /* 0x25092263: push ecx */ 908 PUSH32(esp, eax); /* 0x25092264: push eax */ 909 ecx = esi; /* 0x25092265: mov ecx, esi */ 910 RECOMP_ICALL(0x250E3D70u); /* 0x25092267: call 0x250e3d70 */ /* not lifted */ 911 RECOMP_FLAGS_IN(); 912 eax = MEM32(esi + 0x8); /* 0x2509226C: mov eax, dword ptr [esi + 8] */ 913 /* cmp edi, eax */ /* 0x2509226F: cmp edi, eax */ 914 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 916 _flag_k = FK_CMP; 917 if (CMP_EQ(_flag_a, _flag_b)) goto L_250922BA; /* 0x25092271: je 0x250922ba */ 918 L_25092273: 919 edx = MEM32(ebp + (-0x10)); /* 0x25092273: mov edx, dword ptr [ebp - 0x10] */ 920 MEM32(edi) = edx; /* 0x25092276: mov dword ptr [edi], edx */ 921 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 923 edi = edi + 4; /* 0x25092278: add edi, 4 */ 924 _flag_k = FK_ADD; 925 /* cmp edi, eax */ /* 0x2509227B: cmp edi, eax */ 926 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 928 _flag_k = FK_CMP; 929 RECOMP_BACKEDGE(); 930 if (CMP_NE(_flag_a, _flag_b)) goto L_25092273; /* 0x2509227D: jne 0x25092273 */ 931 L_2509227F: 932 goto L_250922BA; /* 0x2509227F: jmp 0x250922ba */ 933 L_25092281: 934 PUSH32(esp, eax); /* 0x25092281: push eax */ 935 PUSH32(esp, eax); /* 0x25092282: push eax */ 936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 937 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 938 eax = eax + 0xFFFFFFFCu; /* 0x25092283: add eax, -4 */ 939 _flag_k = FK_ADD; 940 PUSH32(esp, eax); /* 0x25092286: push eax */ 941 ecx = esi; /* 0x25092287: mov ecx, esi */ 942 RECOMP_ICALL(0x250E3D40u); /* 0x25092289: call 0x250e3d40 */ /* not lifted */ 943 RECOMP_FLAGS_IN(); 944 ecx = MEM32(esi + 0x8); /* 0x2509228E: mov ecx, dword ptr [esi + 8] */ 945 eax = ecx + (-0x4); /* 0x25092291: lea eax, [ecx - 4] */ 946 /* cmp edi, eax */ /* 0x25092294: cmp edi, eax */ 947 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 949 _flag_k = FK_CMP; 950 if (CMP_EQ(_flag_a, _flag_b)) goto L_250922A7; /* 0x25092296: je 0x250922a7 */ 951 L_25092298: 952 edx = MEM32(eax + (-0x4)); /* 0x25092298: mov edx, dword ptr [eax - 4] */ 953 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 955 eax = eax - 4; /* 0x2509229B: sub eax, 4 */ 956 _flag_k = FK_CMP; 957 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 959 ecx = ecx - 4; /* 0x2509229E: sub ecx, 4 */ 960 _flag_k = FK_CMP; 961 /* cmp eax, edi */ /* 0x250922A1: cmp eax, edi */ 962 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 964 _flag_k = FK_CMP; 965 MEM32(ecx) = edx; /* 0x250922A3: mov dword ptr [ecx], edx */ 966 RECOMP_BACKEDGE(); 967 if (CMP_NE(_flag_a, _flag_b)) goto L_25092298; /* 0x250922A5: jne 0x25092298 */ 968 L_250922A7: 969 eax = edi + 0x4; /* 0x250922A7: lea eax, [edi + 4] */ 970 /* cmp edi, eax */ /* 0x250922AA: cmp edi, eax */ 971 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 973 _flag_k = FK_CMP; 974 if (CMP_EQ(_flag_a, _flag_b)) goto L_250922BA; /* 0x250922AC: je 0x250922ba */ 975 L_250922AE: 976 ecx = MEM32(ebp + (-0x10)); /* 0x250922AE: mov ecx, dword ptr [ebp - 0x10] */ 977 MEM32(edi) = ecx; /* 0x250922B1: mov dword ptr [edi], ecx */ 978 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 979 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 980 edi = edi + 4; /* 0x250922B3: add edi, 4 */ 981 _flag_k = FK_ADD; 982 /* cmp edi, eax */ /* 0x250922B6: cmp edi, eax */ 983 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 985 _flag_k = FK_CMP; 986 RECOMP_BACKEDGE(); 987 if (CMP_NE(_flag_a, _flag_b)) goto L_250922AE; /* 0x250922B8: jne 0x250922ae */ 988 L_250922BA: 989 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 990 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 991 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x250922BA: add dword ptr [esi + 8], 4 */ 992 _flag_k = FK_ADD; 993 L_250922BE: 994 ecx = MEM32(ebp + (-0xC)); /* 0x250922BE: mov ecx, dword ptr [ebp - 0xc] */ 995 edi = POP32_VAL(esp); /* 0x250922C1: pop edi */ 996 eax = 1; /* 0x250922C2: mov eax, 1 */ 997 esi = POP32_VAL(esp); /* 0x250922C7: pop esi */ 998 MEM32(FS_BASE + (0)) = ecx; /* 0x250922C8: mov dword ptr fs:[0], ecx */ 999 esp = ebp; /* 0x250922CF: mov esp, ebp */ 1000 ebp = POP32_VAL(esp); /* 0x250922D1: pop ebp */ 1001 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x250922D2: ret 8 */ 1002 RECOMP_REGS_OUT(); 1003 } 1004 1005 void sub_250922BE(void) { 1006 int _fpu_cmp = 0; 1007 uint32_t _cf = 0; 1008 int _df = 1; 1009 uint32_t _flag_k = FK_NONE; 1010 uint32_t _flag_a = 0, _flag_b = 0; 1011 uint32_t _itail_tgt = 0; 1012 RECOMP_REGS_LOCALS 1013 RECOMP_ENTER(0x250922BEu); 1014 1015 L_250922BE: 1016 ecx = MEM32(ebp + (-0xC)); /* 0x250922BE: mov ecx, dword ptr [ebp - 0xc] */ 1017 edi = POP32_VAL(esp); /* 0x250922C1: pop edi */ 1018 eax = 1; /* 0x250922C2: mov eax, 1 */ 1019 esi = POP32_VAL(esp); /* 0x250922C7: pop esi */ 1020 MEM32(FS_BASE + (0)) = ecx; /* 0x250922C8: mov dword ptr fs:[0], ecx */ 1021 esp = ebp; /* 0x250922CF: mov esp, ebp */ 1022 ebp = POP32_VAL(esp); /* 0x250922D1: pop ebp */ 1023 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x250922D2: ret 8 */ 1024 RECOMP_REGS_OUT(); 1025 } 1026 1027 void sub_250922E0(void) { 1028 int _fpu_cmp = 0; 1029 uint32_t _cf = 0; 1030 int _df = 1; 1031 uint32_t _flag_k = FK_NONE; 1032 uint32_t _flag_a = 0, _flag_b = 0; 1033 uint32_t _itail_tgt = 0; 1034 RECOMP_REGS_LOCALS 1035 RECOMP_ENTER(0x250922E0u); 1036 1037 L_250922E0: 1038 PUSH32(esp, ebp); /* 0x250922E0: push ebp */ 1039 ebp = esp; /* 0x250922E1: mov ebp, esp */ 1040 PUSH32(esp, ebx); /* 0x250922E3: push ebx */ 1041 ebx = MEM32(ebp + 0x14); /* 0x250922E4: mov ebx, dword ptr [ebp + 0x14] */ 1042 PUSH32(esp, esi); /* 0x250922E7: push esi */ 1043 PUSH32(esp, edi); /* 0x250922E8: push edi */ 1044 edi = ecx; /* 0x250922E9: mov edi, ecx */ 1045 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1046 esi = 0; /* 0x250922EB: xor esi, esi */ 1047 _cf = 0; 1048 _flag_k = FK_TEST; 1049 L_250922ED: 1050 eax = MEM32(edi + 0x8); /* 0x250922ED: mov eax, dword ptr [edi + 8] */ 1051 /* test eax, eax */ /* 0x250922F0: test eax, eax */ 1052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1053 _cf = 0; 1054 _flag_k = FK_TEST; 1055 if (TEST_Z(_flag_a, _flag_b)) goto L_2509231B; /* 0x250922F2: je 0x2509231b */ 1056 L_250922F4: 1057 ecx = MEM32(edi + 0xC); /* 0x250922F4: mov ecx, dword ptr [edi + 0xc] */ 1058 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1060 ecx = ecx - eax; /* 0x250922F7: sub ecx, eax */ 1061 _flag_k = FK_CMP; 1062 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x250922F9: sar ecx, 2 */ 1063 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1064 ecx = (uint32_t)((int32_t)ecx >> 2u); 1065 /* cmp esi, ecx */ /* 0x250922FC: cmp esi, ecx */ 1066 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1068 _flag_k = FK_CMP; 1069 if (CMP_AE(_flag_a, _flag_b)) goto L_2509231B; /* 0x250922FE: jae 0x2509231b */ 1070 L_25092300: 1071 edx = MEM32(ebp + 0x10); /* 0x25092300: mov edx, dword ptr [ebp + 0x10] */ 1072 eax = MEM32(ebp + 0xC); /* 0x25092303: mov eax, dword ptr [ebp + 0xc] */ 1073 ecx = MEM32(ebp + 0x8); /* 0x25092306: mov ecx, dword ptr [ebp + 8] */ 1074 PUSH32(esp, ebx); /* 0x25092309: push ebx */ 1075 PUSH32(esp, edx); /* 0x2509230A: push edx */ 1076 edx = MEM32(edi + 0x8); /* 0x2509230B: mov edx, dword ptr [edi + 8] */ 1077 PUSH32(esp, eax); /* 0x2509230E: push eax */ 1078 PUSH32(esp, ecx); /* 0x2509230F: push ecx */ 1079 ecx = MEM32(edx + esi * 4); /* 0x25092310: mov ecx, dword ptr [edx + esi*4] */ 1080 RECOMP_ICALL(0x250923D0u); /* 0x25092313: call 0x250923d0 */ /* not lifted */ 1081 RECOMP_FLAGS_IN(); 1082 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1083 esi = esi + 1; /* 0x25092318: inc esi */ 1084 _flag_k = FK_INC; 1085 RECOMP_BACKEDGE(); 1086 goto L_250922ED; /* 0x25092319: jmp 0x250922ed */ 1087 L_2509231B: 1088 edi = POP32_VAL(esp); /* 0x2509231B: pop edi */ 1089 esi = POP32_VAL(esp); /* 0x2509231C: pop esi */ 1090 ebx = POP32_VAL(esp); /* 0x2509231D: pop ebx */ 1091 ebp = POP32_VAL(esp); /* 0x2509231E: pop ebp */ 1092 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2509231F: ret 0x10 */ 1093 RECOMP_REGS_OUT(); 1094 } 1095 1096 void sub_25092330(void) { 1097 int _fpu_cmp = 0; 1098 uint32_t _cf = 0; 1099 int _df = 1; 1100 uint32_t _flag_k = FK_NONE; 1101 uint32_t _flag_a = 0, _flag_b = 0; 1102 uint32_t _itail_tgt = 0; 1103 RECOMP_REGS_LOCALS 1104 RECOMP_ENTER(0x25092330u); 1105 1106 L_25092330: 1107 PUSH32(esp, ebp); /* 0x25092330: push ebp */ 1108 ebp = esp; /* 0x25092331: mov ebp, esp */ 1109 eax = MEM32(ebp + 0x8); /* 0x25092333: mov eax, dword ptr [ebp + 8] */ 1110 PUSH32(esp, esi); /* 0x25092336: push esi */ 1111 PUSH32(esp, edi); /* 0x25092337: push edi */ 1112 PUSH32(esp, 0); /* 0x25092338: push 0 */ 1113 edx = ebp + 0x8; /* 0x2509233A: lea edx, [ebp + 8] */ 1114 PUSH32(esp, edx); /* 0x2509233D: push edx */ 1115 edx = MEM32(ebp + 0xC); /* 0x2509233E: mov edx, dword ptr [ebp + 0xc] */ 1116 esi = ecx; /* 0x25092341: mov esi, ecx */ 1117 PUSH32(esp, edx); /* 0x25092343: push edx */ 1118 MEM32(esi + 0x30) = 0x3F800000u; /* 0x25092344: mov dword ptr [esi + 0x30], 0x3f800000 */ 1119 MEM32(esi + 0x34) = 0; /* 0x2509234B: mov dword ptr [esi + 0x34], 0 */ 1120 ecx = MEM32(eax); /* 0x25092352: mov ecx, dword ptr [eax] */ 1121 PUSH32(esp, eax); /* 0x25092354: push eax */ 1122 RECOMP_ICALL(MEM32(ecx + 0xC)); /* 0x25092355: call dword ptr [ecx + 0xc] */ 1123 RECOMP_FLAGS_IN(); 1124 eax = MEM32(ebp + 0x8); /* 0x25092358: mov eax, dword ptr [ebp + 8] */ 1125 PUSH32(esp, esi); /* 0x2509235B: push esi */ 1126 PUSH32(esp, 0x25158150u); /* 0x2509235C: push 0x25158150 */ 1127 MEM32(esi) = 0; /* 0x25092361: mov dword ptr [esi], 0 */ 1128 ecx = MEM32(eax); /* 0x25092367: mov ecx, dword ptr [eax] */ 1129 PUSH32(esp, eax); /* 0x25092369: push eax */ 1130 RECOMP_ICALL(MEM32(ecx)); /* 0x2509236A: call dword ptr [ecx] */ 1131 RECOMP_FLAGS_IN(); 1132 eax = MEM32(ebp + 0x8); /* 0x2509236C: mov eax, dword ptr [ebp + 8] */ 1133 edx = MEM32(eax); /* 0x2509236F: mov edx, dword ptr [eax] */ 1134 PUSH32(esp, eax); /* 0x25092371: push eax */ 1135 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x25092372: call dword ptr [edx + 8] */ 1136 RECOMP_FLAGS_IN(); 1137 edx = esi + 0x4; /* 0x25092375: lea edx, [esi + 4] */ 1138 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1139 eax = 0; /* 0x25092378: xor eax, eax */ 1140 _cf = 0; 1141 _flag_k = FK_TEST; 1142 edi = edx; /* 0x2509237A: mov edi, edx */ 1143 ecx = 0xBu; /* 0x2509237C: mov ecx, 0xb */ 1144 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25092381: 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; } 1145 eax = MEM32(esi); /* 0x25092383: mov eax, dword ptr [esi] */ 1146 PUSH32(esp, edx); /* 0x25092385: push edx */ 1147 MEM32(edx) = 0x2Cu; /* 0x25092386: mov dword ptr [edx], 0x2c */ 1148 ecx = MEM32(eax); /* 0x2509238C: mov ecx, dword ptr [eax] */ 1149 PUSH32(esp, eax); /* 0x2509238E: push eax */ 1150 RECOMP_ICALL(MEM32(ecx + 0xC)); /* 0x2509238F: call dword ptr [ecx + 0xc] */ 1151 RECOMP_FLAGS_IN(); 1152 /* cmp MEM8(esi + 0xC), 4 */ /* 0x25092392: cmp byte ptr [esi + 0xc], 4 */ 1153 _flag_a = (uint32_t)(MEM8(esi + 0xC)) << 24; _flag_b = (uint32_t)(4) << 24; 1154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1155 _flag_k = FK_NARROW(FK_CMP, 24); 1156 if (CMP_NE(_flag_a, _flag_b)) goto L_250923A5; /* 0x25092396: jne 0x250923a5 */ 1157 L_25092398: 1158 eax = MEM32(esi); /* 0x25092398: mov eax, dword ptr [esi] */ 1159 edx = MEM32(eax); /* 0x2509239A: mov edx, dword ptr [eax] */ 1160 PUSH32(esp, 0x251581E0u); /* 0x2509239C: push 0x251581e0 */ 1161 PUSH32(esp, eax); /* 0x250923A1: push eax */ 1162 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x250923A2: call dword ptr [edx + 0x2c] */ 1163 RECOMP_FLAGS_IN(); 1164 L_250923A5: 1165 edi = POP32_VAL(esp); /* 0x250923A5: pop edi */ 1166 eax = esi; /* 0x250923A6: mov eax, esi */ 1167 esi = POP32_VAL(esp); /* 0x250923A8: pop esi */ 1168 ebp = POP32_VAL(esp); /* 0x250923A9: pop ebp */ 1169 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x250923AA: ret 0xc */ 1170 RECOMP_REGS_OUT(); 1171 } 1172 1173 void sub_250923B0(void) { 1174 int _fpu_cmp = 0; 1175 uint32_t _cf = 0; 1176 int _df = 1; 1177 uint32_t _flag_k = FK_NONE; 1178 uint32_t _flag_a = 0, _flag_b = 0; 1179 uint32_t _itail_tgt = 0; 1180 RECOMP_REGS_LOCALS 1181 RECOMP_ENTER(0x250923B0u); 1182 1183 L_250923B0: 1184 PUSH32(esp, esi); /* 0x250923B0: push esi */ 1185 esi = ecx; /* 0x250923B1: mov esi, ecx */ 1186 eax = MEM32(esi); /* 0x250923B3: mov eax, dword ptr [esi] */ 1187 ecx = MEM32(eax); /* 0x250923B5: mov ecx, dword ptr [eax] */ 1188 PUSH32(esp, eax); /* 0x250923B7: push eax */ 1189 RECOMP_ICALL(MEM32(ecx + 0x20)); /* 0x250923B8: call dword ptr [ecx + 0x20] */ 1190 RECOMP_FLAGS_IN(); 1191 esi = MEM32(esi); /* 0x250923BB: mov esi, dword ptr [esi] */ 1192 edx = MEM32(esi); /* 0x250923BD: mov edx, dword ptr [esi] */ 1193 PUSH32(esp, esi); /* 0x250923BF: push esi */ 1194 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x250923C0: call dword ptr [edx + 8] */ 1195 RECOMP_FLAGS_IN(); 1196 esi = POP32_VAL(esp); /* 0x250923C3: pop esi */ 1197 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250923C4: ret */ 1198 RECOMP_REGS_OUT(); 1199 } 1200 1201 void sub_250923D0(void) { 1202 int _fpu_cmp = 0; 1203 uint32_t _cf = 0; 1204 int _df = 1; 1205 uint32_t _flag_k = FK_NONE; 1206 uint32_t _flag_a = 0, _flag_b = 0; 1207 uint32_t _itail_tgt = 0; 1208 RECOMP_REGS_LOCALS 1209 RECOMP_ENTER(0x250923D0u); 1210 1211 L_250923D0: 1212 PUSH32(esp, ebp); /* 0x250923D0: push ebp */ 1213 ebp = esp; /* 0x250923D1: mov ebp, esp */ 1214 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x110u); 1215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1216 esp = esp - 0x110u; /* 0x250923D3: sub esp, 0x110 */ 1217 _flag_k = FK_CMP; 1218 PUSH32(esp, esi); /* 0x250923D9: push esi */ 1219 esi = ecx; /* 0x250923DA: mov esi, ecx */ 1220 /* cmp MEM8(esi + 0xC), 4 */ /* 0x250923DC: cmp byte ptr [esi + 0xc], 4 */ 1221 _flag_a = (uint32_t)(MEM8(esi + 0xC)) << 24; _flag_b = (uint32_t)(4) << 24; 1222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1223 _flag_k = FK_NARROW(FK_CMP, 24); 1224 if (CMP_NE(_flag_a, _flag_b)) goto L_25092461; /* 0x250923E0: jne 0x25092461 */ 1225 L_250923E2: 1226 eax = MEM32(esi); /* 0x250923E2: mov eax, dword ptr [esi] */ 1227 ecx = MEM32(eax); /* 0x250923E4: mov ecx, dword ptr [eax] */ 1228 PUSH32(esp, eax); /* 0x250923E6: push eax */ 1229 RECOMP_ICALL(MEM32(ecx + 0x64)); /* 0x250923E7: call dword ptr [ecx + 0x64] */ 1230 RECOMP_FLAGS_IN(); 1231 /* cmp eax, 0x8007001Eu */ /* 0x250923EA: cmp eax, 0x8007001e */ 1232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8007001Eu); 1233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1234 _flag_k = FK_CMP; 1235 if (CMP_EQ(_flag_a, _flag_b)) goto L_250923F8; /* 0x250923EF: je 0x250923f8 */ 1236 L_250923F1: 1237 /* cmp eax, 0x8007000Cu */ /* 0x250923F1: cmp eax, 0x8007000c */ 1238 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8007000Cu); 1239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1240 _flag_k = FK_CMP; 1241 if (CMP_NE(_flag_a, _flag_b)) goto L_25092400; /* 0x250923F6: jne 0x25092400 */ 1242 L_250923F8: 1243 eax = MEM32(esi); /* 0x250923F8: mov eax, dword ptr [esi] */ 1244 edx = MEM32(eax); /* 0x250923FA: mov edx, dword ptr [eax] */ 1245 PUSH32(esp, eax); /* 0x250923FC: push eax */ 1246 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x250923FD: call dword ptr [edx + 0x1c] */ 1247 RECOMP_FLAGS_IN(); 1248 L_25092400: 1249 /* test eax, eax */ /* 0x25092400: test eax, eax */ 1250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1251 _cf = 0; 1252 _flag_k = FK_TEST; 1253 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092461; /* 0x25092402: jne 0x25092461 */ 1254 L_25092404: 1255 eax = MEM32(esi); /* 0x25092404: mov eax, dword ptr [esi] */ 1256 ecx = MEM32(eax); /* 0x25092406: mov ecx, dword ptr [eax] */ 1257 edx = ebp + (-0x110); /* 0x25092408: lea edx, [ebp - 0x110] */ 1258 PUSH32(esp, edx); /* 0x2509240E: push edx */ 1259 PUSH32(esp, 0x110u); /* 0x2509240F: push 0x110 */ 1260 PUSH32(esp, eax); /* 0x25092414: push eax */ 1261 RECOMP_ICALL(MEM32(ecx + 0x24)); /* 0x25092415: call dword ptr [ecx + 0x24] */ 1262 RECOMP_FLAGS_IN(); 1263 /* cmp MEM32(esi + 0x10), 6 */ /* 0x25092418: cmp dword ptr [esi + 0x10], 6 */ 1264 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(6); 1265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1266 _flag_k = FK_CMP; 1267 if (CMP_AE(_flag_a, _flag_b)) goto L_25092443; /* 0x2509241C: jae 0x25092443 */ 1268 L_2509241E: 1269 eax = MEM32(ebp + 0x14); /* 0x2509241E: mov eax, dword ptr [ebp + 0x14] */ 1270 edx = MEM32(ebp + 0x10); /* 0x25092421: mov edx, dword ptr [ebp + 0x10] */ 1271 PUSH32(esp, eax); /* 0x25092424: push eax */ 1272 eax = MEM32(ebp + 0xC); /* 0x25092425: mov eax, dword ptr [ebp + 0xc] */ 1273 ecx = ebp + (-0x110); /* 0x25092428: lea ecx, [ebp - 0x110] */ 1274 PUSH32(esp, ecx); /* 0x2509242E: push ecx */ 1275 ecx = MEM32(ebp + 0x8); /* 0x2509242F: mov ecx, dword ptr [ebp + 8] */ 1276 PUSH32(esp, edx); /* 0x25092432: push edx */ 1277 PUSH32(esp, eax); /* 0x25092433: push eax */ 1278 PUSH32(esp, ecx); /* 0x25092434: push ecx */ 1279 ecx = esi; /* 0x25092435: mov ecx, esi */ 1280 RECOMP_ICALL(0x25092470u); /* 0x25092437: call 0x25092470 */ /* not lifted */ 1281 RECOMP_FLAGS_IN(); 1282 esi = POP32_VAL(esp); /* 0x2509243C: pop esi */ 1283 esp = ebp; /* 0x2509243D: mov esp, ebp */ 1284 ebp = POP32_VAL(esp); /* 0x2509243F: pop ebp */ 1285 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25092440: ret 0x10 */ 1286 L_25092443: 1287 edx = MEM32(ebp + 0x14); /* 0x25092443: mov edx, dword ptr [ebp + 0x14] */ 1288 ecx = MEM32(ebp + 0x10); /* 0x25092446: mov ecx, dword ptr [ebp + 0x10] */ 1289 PUSH32(esp, edx); /* 0x25092449: push edx */ 1290 edx = MEM32(ebp + 0xC); /* 0x2509244A: mov edx, dword ptr [ebp + 0xc] */ 1291 eax = ebp + (-0x110); /* 0x2509244D: lea eax, [ebp - 0x110] */ 1292 PUSH32(esp, eax); /* 0x25092453: push eax */ 1293 eax = MEM32(ebp + 0x8); /* 0x25092454: mov eax, dword ptr [ebp + 8] */ 1294 PUSH32(esp, ecx); /* 0x25092457: push ecx */ 1295 PUSH32(esp, edx); /* 0x25092458: push edx */ 1296 PUSH32(esp, eax); /* 0x25092459: push eax */ 1297 ecx = esi; /* 0x2509245A: mov ecx, esi */ 1298 RECOMP_ICALL(0x25092CF0u); /* 0x2509245C: call 0x25092cf0 */ /* not lifted */ 1299 RECOMP_FLAGS_IN(); 1300 L_25092461: 1301 esi = POP32_VAL(esp); /* 0x25092461: pop esi */ 1302 esp = ebp; /* 0x25092462: mov esp, ebp */ 1303 ebp = POP32_VAL(esp); /* 0x25092464: pop ebp */ 1304 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25092465: ret 0x10 */ 1305 RECOMP_REGS_OUT(); 1306 } 1307 1308 void sub_25092470(void) { 1309 int _fpu_cmp = 0; 1310 uint32_t _cf = 0; 1311 int _df = 1; 1312 uint32_t _flag_k = FK_NONE; 1313 uint32_t _flag_a = 0, _flag_b = 0; 1314 uint32_t _itail_tgt = 0; 1315 RECOMP_REGS_LOCALS 1316 RECOMP_ENTER(0x25092470u); 1317 1318 L_25092470: 1319 PUSH32(esp, ebp); /* 0x25092470: push ebp */ 1320 ebp = esp; /* 0x25092471: mov ebp, esp */ 1321 PUSH32(esp, 0xFFFFFFFFu); /* 0x25092473: push -1 */ 1322 PUSH32(esp, 0x2514954Cu); /* 0x25092475: push 0x2514954c */ 1323 eax = MEM32(FS_BASE + (0)); /* 0x2509247A: mov eax, dword ptr fs:[0] */ 1324 PUSH32(esp, eax); /* 0x25092480: push eax */ 1325 MEM32(FS_BASE + (0)) = esp; /* 0x25092481: mov dword ptr fs:[0], esp */ 1326 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xC8u); 1327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1328 esp = esp - 0xC8u; /* 0x25092488: sub esp, 0xc8 */ 1329 _flag_k = FK_CMP; 1330 PUSH32(esp, ebx); /* 0x2509248E: push ebx */ 1331 ebx = MEM32(ebp + 0x14); /* 0x2509248F: mov ebx, dword ptr [ebp + 0x14] */ 1332 fp_push((double)(int32_t)MEM32(ebx)); /* 0x25092492: fild dword ptr [ebx] */ 1333 _st[0] *= (double)*(float*)ADDR(0x25155BA8); /* 0x25092494: fmul dword ptr [0x25155ba8] */ 1334 _st[0] -= (double)*(float*)ADDR(0x251517A4); /* 0x2509249A: fsub dword ptr [0x251517a4] */ 1335 fp_push((double)(int32_t)MEM32(ebx + 0x4)); /* 0x250924A0: fild dword ptr [ebx + 4] */ 1336 _st[0] *= (double)*(float*)ADDR(0x25155BA8); /* 0x250924A3: fmul dword ptr [0x25155ba8] */ 1337 _st[0] -= (double)*(float*)ADDR(0x251517A4); /* 0x250924A9: fsub dword ptr [0x251517a4] */ 1338 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x250924AF: fstp dword ptr [ebp - 0x34] */ 1339 fp_push((double)(int32_t)MEM32(ebx + 0x14)); /* 0x250924B2: fild dword ptr [ebx + 0x14] */ 1340 _st[0] *= (double)*(float*)ADDR(0x25155BA8); /* 0x250924B5: fmul dword ptr [0x25155ba8] */ 1341 _st[0] -= (double)*(float*)ADDR(0x251517A4); /* 0x250924BB: fsub dword ptr [0x251517a4] */ 1342 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x250924C1: fstp dword ptr [ebp - 0x1c] */ 1343 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x250924C4: fcom dword ptr [0x2515177c] */ 1344 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250924CA: fnstsw ax */ 1345 /* test HI8(eax), 1 */ /* 0x250924CC: test ah, 1 */ 1346 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1347 _cf = 0; 1348 _flag_k = FK_NARROW(FK_TEST, 24); 1349 if (TEST_NZ(_flag_a, _flag_b)) goto L_250924F1; /* 0x250924CF: jne 0x250924f1 */ 1350 L_250924D1: 1351 _st[0] -= (double)*(float*)ADDR(0x2515472C); /* 0x250924D1: fsub dword ptr [0x2515472c] */ 1352 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x250924D7: fld dword ptr [0x2515177c] */ 1353 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x250924DD: fcomp st(1) */ 1354 fp_pop(); 1355 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250924DF: fnstsw ax */ 1356 /* test HI8(eax), 0x41u */ /* 0x250924E1: test ah, 0x41 */ 1357 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1358 _cf = 0; 1359 _flag_k = FK_NARROW(FK_TEST, 24); 1360 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092511; /* 0x250924E4: jne 0x25092511 */ 1361 L_250924E6: 1362 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250924E6: fstp st(0) */ 1363 MEM32(ebp + 0x14) = 0; /* 0x250924E8: mov dword ptr [ebp + 0x14], 0 */ 1364 goto L_25092514; /* 0x250924EF: jmp 0x25092514 */ 1365 L_250924F1: 1366 _st[0] += (double)*(float*)ADDR(0x2515472C); /* 0x250924F1: fadd dword ptr [0x2515472c] */ 1367 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x250924F7: fld dword ptr [0x2515177c] */ 1368 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x250924FD: fcomp st(1) */ 1369 fp_pop(); 1370 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250924FF: fnstsw ax */ 1371 /* test HI8(eax), 1 */ /* 0x25092501: test ah, 1 */ 1372 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1373 _cf = 0; 1374 _flag_k = FK_NARROW(FK_TEST, 24); 1375 if (TEST_Z(_flag_a, _flag_b)) goto L_25092511; /* 0x25092504: je 0x25092511 */ 1376 L_25092506: 1377 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25092506: fstp st(0) */ 1378 MEM32(ebp + 0x14) = 0; /* 0x25092508: mov dword ptr [ebp + 0x14], 0 */ 1379 goto L_25092514; /* 0x2509250F: jmp 0x25092514 */ 1380 L_25092511: 1381 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x25092511: fstp dword ptr [ebp + 0x14] */ 1382 L_25092514: 1383 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25092514: fld dword ptr [ebp - 0x34] */ 1384 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25092517: fcomp dword ptr [0x2515177c] */ 1385 fp_pop(); 1386 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x2509251D: fld dword ptr [ebp - 0x34] */ 1387 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092520: fnstsw ax */ 1388 /* test HI8(eax), 1 */ /* 0x25092522: test ah, 1 */ 1389 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1390 _cf = 0; 1391 _flag_k = FK_NARROW(FK_TEST, 24); 1392 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509253E; /* 0x25092525: jne 0x2509253e */ 1393 L_25092527: 1394 _st[0] -= (double)*(float*)ADDR(0x2515276C); /* 0x25092527: fsub dword ptr [0x2515276c] */ 1395 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x2509252D: fld dword ptr [0x2515177c] */ 1396 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x25092533: fcomp st(1) */ 1397 fp_pop(); 1398 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092535: fnstsw ax */ 1399 /* test HI8(eax), 0x41u */ /* 0x25092537: test ah, 0x41 */ 1400 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1401 _cf = 0; 1402 _flag_k = FK_NARROW(FK_TEST, 24); 1403 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509255B; /* 0x2509253A: jne 0x2509255b */ 1404 L_2509253C: 1405 goto L_25092553; /* 0x2509253C: jmp 0x25092553 */ 1406 L_2509253E: 1407 _st[0] += (double)*(float*)ADDR(0x2515276C); /* 0x2509253E: fadd dword ptr [0x2515276c] */ 1408 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x25092544: fld dword ptr [0x2515177c] */ 1409 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x2509254A: fcomp st(1) */ 1410 fp_pop(); 1411 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509254C: fnstsw ax */ 1412 /* test HI8(eax), 1 */ /* 0x2509254E: test ah, 1 */ 1413 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1414 _cf = 0; 1415 _flag_k = FK_NARROW(FK_TEST, 24); 1416 if (TEST_Z(_flag_a, _flag_b)) goto L_2509255B; /* 0x25092551: je 0x2509255b */ 1417 L_25092553: 1418 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25092553: fstp st(0) */ 1419 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x25092555: fld dword ptr [0x2515177c] */ 1420 L_2509255B: 1421 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x2509255B: fld dword ptr [ebp - 0x1c] */ 1422 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x2509255E: fcomp dword ptr [0x2515177c] */ 1423 fp_pop(); 1424 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x25092564: fld dword ptr [ebp - 0x1c] */ 1425 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092567: fnstsw ax */ 1426 /* test HI8(eax), 1 */ /* 0x25092569: test ah, 1 */ 1427 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1428 _cf = 0; 1429 _flag_k = FK_NARROW(FK_TEST, 24); 1430 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092585; /* 0x2509256C: jne 0x25092585 */ 1431 L_2509256E: 1432 _st[0] -= (double)*(float*)ADDR(0x25151860); /* 0x2509256E: fsub dword ptr [0x25151860] */ 1433 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x25092574: fld dword ptr [0x2515177c] */ 1434 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x2509257A: fcomp st(1) */ 1435 fp_pop(); 1436 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509257C: fnstsw ax */ 1437 /* test HI8(eax), 0x41u */ /* 0x2509257E: test ah, 0x41 */ 1438 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1439 _cf = 0; 1440 _flag_k = FK_NARROW(FK_TEST, 24); 1441 if (TEST_NZ(_flag_a, _flag_b)) goto L_250925A2; /* 0x25092581: jne 0x250925a2 */ 1442 L_25092583: 1443 goto L_2509259A; /* 0x25092583: jmp 0x2509259a */ 1444 L_25092585: 1445 _st[0] += (double)*(float*)ADDR(0x25151860); /* 0x25092585: fadd dword ptr [0x25151860] */ 1446 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x2509258B: fld dword ptr [0x2515177c] */ 1447 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x25092591: fcomp st(1) */ 1448 fp_pop(); 1449 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092593: fnstsw ax */ 1450 /* test HI8(eax), 1 */ /* 0x25092595: test ah, 1 */ 1451 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1452 _cf = 0; 1453 _flag_k = FK_NARROW(FK_TEST, 24); 1454 if (TEST_Z(_flag_a, _flag_b)) goto L_250925A2; /* 0x25092598: je 0x250925a2 */ 1455 L_2509259A: 1456 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2509259A: fstp st(0) */ 1457 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x2509259C: fld dword ptr [0x2515177c] */ 1458 L_250925A2: 1459 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x250925A2: fld dword ptr [ebp + 0x14] */ 1460 _st[0] = -_st[0]; /* 0x250925A5: fchs */ 1461 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x250925A7: fmul dword ptr [ebp + 0x18] */ 1462 _st[0] += _st[0]; /* 0x250925AA: fadd st(0), st(0) */ 1463 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x250925AC: fstp dword ptr [ebp + 0x14] */ 1464 fp_xch(1); /* 0x250925AF: fxch st(1) */ 1465 _st[0] = -_st[0]; /* 0x250925B1: fchs */ 1466 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x250925B3: fmul dword ptr [ebp + 0x18] */ 1467 _st[0] += _st[0]; /* 0x250925B6: fadd st(0), st(0) */ 1468 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x250925B8: fstp dword ptr [ebp - 0x48] */ 1469 fp_push((double)(int32_t)MEM32(ebx + 0x18)); /* 0x250925BB: fild dword ptr [ebx + 0x18] */ 1470 _st[0] *= (double)*(float*)ADDR(0x25155BA4); /* 0x250925BE: fmul dword ptr [0x25155ba4] */ 1471 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250925C4: fsubr dword ptr [0x251517a4] */ 1472 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x250925CA: fmul dword ptr [ebp + 0x18] */ 1473 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x250925CD: fstp dword ptr [ebp - 0x34] */ 1474 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x250925D0: fmul dword ptr [ebp + 0x18] */ 1475 _st[0] += _st[0]; /* 0x250925D3: fadd st(0), st(0) */ 1476 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x250925D5: fstp dword ptr [ebp - 0x1c] */ 1477 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x250925D8: fld dword ptr [ebp + 0x14] */ 1478 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x250925DB: fcomp dword ptr [0x2515177c] */ 1479 fp_pop(); 1480 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250925E1: fnstsw ax */ 1481 /* test HI8(eax), 1 */ /* 0x250925E3: test ah, 1 */ 1482 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1483 _cf = 0; 1484 _flag_k = FK_NARROW(FK_TEST, 24); 1485 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092603; /* 0x250925E6: jne 0x25092603 */ 1486 L_250925E8: 1487 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x250925E8: fld dword ptr [ebp + 0x14] */ 1488 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x25151790)); /* 0x250925EB: fcomp qword ptr [0x25151790] */ 1489 fp_pop(); 1490 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250925F1: fnstsw ax */ 1491 /* test HI8(eax), 1 */ /* 0x250925F3: test ah, 1 */ 1492 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1493 _cf = 0; 1494 _flag_k = FK_NARROW(FK_TEST, 24); 1495 if (TEST_Z(_flag_a, _flag_b)) goto L_25092603; /* 0x250925F6: je 0x25092603 */ 1496 L_250925F8: 1497 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x250925F8: fld dword ptr [ebp + 0x14] */ 1498 _st[0] *= (double)*(float*)ADDR(0x25151788); /* 0x250925FB: fmul dword ptr [0x25151788] */ 1499 goto L_25092627; /* 0x25092601: jmp 0x25092627 */ 1500 L_25092603: 1501 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x25092603: fld dword ptr [ebp + 0x14] */ 1502 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1504 esp = esp - 8; /* 0x25092606: sub esp, 8 */ 1505 _flag_k = FK_CMP; 1506 _st[0] *= (double)*(float*)ADDR(0x25151784); /* 0x25092609: fmul dword ptr [0x25151784] */ 1507 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x14) = _v; } /* 0x2509260F: fst dword ptr [ebp + 0x14] */ 1508 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x25092612: fstp qword ptr [esp] */ 1509 RECOMP_ICALL(MEM32(0x25151260)); /* 0x25092615: call dword ptr [0x25151260] */ 1510 RECOMP_FLAGS_IN(); 1511 _st[0] = (double)*(float*)ADDR(ebp + 0x14) - _st[0]; /* 0x2509261B: fsubr dword ptr [ebp + 0x14] */ 1512 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1514 esp = esp + 8; /* 0x2509261E: add esp, 8 */ 1515 _flag_k = FK_ADD; 1516 _st[0] *= (double)*(float*)ADDR(0x25151780); /* 0x25092621: fmul dword ptr [0x25151780] */ 1517 L_25092627: 1518 fp_push(_st[0]); /* 0x25092627: fld st(0) */ 1519 PUSH32(esp, esi); /* 0x25092629: push esi */ 1520 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x2509262A: fsin */ 1521 PUSH32(esp, edi); /* 0x2509262C: push edi */ 1522 edi = MEM32(ebp + 0xC); /* 0x2509262D: mov edi, dword ptr [ebp + 0xc] */ 1523 PUSH32(esp, edi); /* 0x25092630: push edi */ 1524 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x25092631: fld dword ptr [0x2515177c] */ 1525 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x25092637: fst dword ptr [ebp - 0x44] */ 1526 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x2509263A: fstp dword ptr [ebp - 0x40] */ 1527 eax = MEM32(ebp + (-0x44)); /* 0x2509263D: mov eax, dword ptr [ebp - 0x44] */ 1528 ecx = MEM32(ebp + (-0x40)); /* 0x25092640: mov ecx, dword ptr [ebp - 0x40] */ 1529 MEM32(ebp + (-0x64)) = eax; /* 0x25092643: mov dword ptr [ebp - 0x64], eax */ 1530 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x25092646: fstp dword ptr [ebp - 0x3c] */ 1531 edx = MEM32(ebp + (-0x3C)); /* 0x25092649: mov edx, dword ptr [ebp - 0x3c] */ 1532 MEM32(ebp + (-0x60)) = ecx; /* 0x2509264C: mov dword ptr [ebp - 0x60], ecx */ 1533 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x2509264F: fcos */ 1534 ecx = ebp + (-0x64); /* 0x25092651: lea ecx, [ebp - 0x64] */ 1535 MEM32(ebp + (-0x5C)) = edx; /* 0x25092654: mov dword ptr [ebp - 0x5c], edx */ 1536 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x25092657: fstp dword ptr [ebp - 0x38] */ 1537 eax = MEM32(ebp + (-0x38)); /* 0x2509265A: mov eax, dword ptr [ebp - 0x38] */ 1538 MEM32(ebp + (-0x58)) = eax; /* 0x2509265D: mov dword ptr [ebp - 0x58], eax */ 1539 RECOMP_ICALL(MEM32(0x25151508)); /* 0x25092660: call dword ptr [0x25151508] */ 1540 RECOMP_FLAGS_IN(); 1541 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x25092666: fld dword ptr [ebp - 0x48] */ 1542 edx = MEM32(eax); /* 0x25092669: mov edx, dword ptr [eax] */ 1543 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x2509266B: fcomp dword ptr [0x2515177c] */ 1544 fp_pop(); 1545 ecx = edi; /* 0x25092671: mov ecx, edi */ 1546 MEM32(ecx) = edx; /* 0x25092673: mov dword ptr [ecx], edx */ 1547 edx = MEM32(eax + 0x4); /* 0x25092675: mov edx, dword ptr [eax + 4] */ 1548 MEM32(ecx + 0x4) = edx; /* 0x25092678: mov dword ptr [ecx + 4], edx */ 1549 edx = MEM32(eax + 0x8); /* 0x2509267B: mov edx, dword ptr [eax + 8] */ 1550 MEM32(ecx + 0x8) = edx; /* 0x2509267E: mov dword ptr [ecx + 8], edx */ 1551 eax = MEM32(eax + 0xC); /* 0x25092681: mov eax, dword ptr [eax + 0xc] */ 1552 MEM32(ecx + 0xC) = eax; /* 0x25092684: mov dword ptr [ecx + 0xc], eax */ 1553 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092687: fnstsw ax */ 1554 /* test HI8(eax), 1 */ /* 0x25092689: test ah, 1 */ 1555 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1556 _cf = 0; 1557 _flag_k = FK_NARROW(FK_TEST, 24); 1558 if (TEST_NZ(_flag_a, _flag_b)) goto L_250926A9; /* 0x2509268C: jne 0x250926a9 */ 1559 L_2509268E: 1560 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x2509268E: fld dword ptr [ebp - 0x48] */ 1561 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x25151790)); /* 0x25092691: fcomp qword ptr [0x25151790] */ 1562 fp_pop(); 1563 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092697: fnstsw ax */ 1564 /* test HI8(eax), 1 */ /* 0x25092699: test ah, 1 */ 1565 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1566 _cf = 0; 1567 _flag_k = FK_NARROW(FK_TEST, 24); 1568 if (TEST_Z(_flag_a, _flag_b)) goto L_250926A9; /* 0x2509269C: je 0x250926a9 */ 1569 L_2509269E: 1570 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x2509269E: fld dword ptr [ebp - 0x48] */ 1571 _st[0] *= (double)*(float*)ADDR(0x25151788); /* 0x250926A1: fmul dword ptr [0x25151788] */ 1572 goto L_250926CD; /* 0x250926A7: jmp 0x250926cd */ 1573 L_250926A9: 1574 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x250926A9: fld dword ptr [ebp - 0x48] */ 1575 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1577 esp = esp - 8; /* 0x250926AC: sub esp, 8 */ 1578 _flag_k = FK_CMP; 1579 _st[0] *= (double)*(float*)ADDR(0x25151784); /* 0x250926AF: fmul dword ptr [0x25151784] */ 1580 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x14) = _v; } /* 0x250926B5: fst dword ptr [ebp + 0x14] */ 1581 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x250926B8: fstp qword ptr [esp] */ 1582 RECOMP_ICALL(MEM32(0x25151260)); /* 0x250926BB: call dword ptr [0x25151260] */ 1583 RECOMP_FLAGS_IN(); 1584 _st[0] = (double)*(float*)ADDR(ebp + 0x14) - _st[0]; /* 0x250926C1: fsubr dword ptr [ebp + 0x14] */ 1585 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1587 esp = esp + 8; /* 0x250926C4: add esp, 8 */ 1588 _flag_k = FK_ADD; 1589 _st[0] *= (double)*(float*)ADDR(0x25151780); /* 0x250926C7: fmul dword ptr [0x25151780] */ 1590 L_250926CD: 1591 fp_push(_st[0]); /* 0x250926CD: fld st(0) */ 1592 PUSH32(esp, edi); /* 0x250926CF: push edi */ 1593 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x250926D0: fsin */ 1594 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x250926D2: fstp dword ptr [ebp - 0x44] */ 1595 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x250926D5: fld dword ptr [0x2515177c] */ 1596 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x250926DB: fst dword ptr [ebp - 0x40] */ 1597 ecx = MEM32(ebp + (-0x44)); /* 0x250926DE: mov ecx, dword ptr [ebp - 0x44] */ 1598 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x250926E1: fstp dword ptr [ebp - 0x3c] */ 1599 MEM32(ebp + (-0x64)) = ecx; /* 0x250926E4: mov dword ptr [ebp - 0x64], ecx */ 1600 edx = MEM32(ebp + (-0x40)); /* 0x250926E7: mov edx, dword ptr [ebp - 0x40] */ 1601 eax = MEM32(ebp + (-0x3C)); /* 0x250926EA: mov eax, dword ptr [ebp - 0x3c] */ 1602 MEM32(ebp + (-0x60)) = edx; /* 0x250926ED: mov dword ptr [ebp - 0x60], edx */ 1603 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x250926F0: fcos */ 1604 MEM32(ebp + (-0x5C)) = eax; /* 0x250926F2: mov dword ptr [ebp - 0x5c], eax */ 1605 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x250926F5: fstp dword ptr [ebp - 0x38] */ 1606 ecx = MEM32(ebp + (-0x38)); /* 0x250926F8: mov ecx, dword ptr [ebp - 0x38] */ 1607 MEM32(ebp + (-0x58)) = ecx; /* 0x250926FB: mov dword ptr [ebp - 0x58], ecx */ 1608 ecx = ebp + (-0x64); /* 0x250926FE: lea ecx, [ebp - 0x64] */ 1609 RECOMP_ICALL(MEM32(0x25151508)); /* 0x25092701: call dword ptr [0x25151508] */ 1610 RECOMP_FLAGS_IN(); 1611 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x25092707: fld dword ptr [ebp - 0x1c] */ 1612 ecx = MEM32(eax); /* 0x2509270A: mov ecx, dword ptr [eax] */ 1613 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x2509270C: fcomp dword ptr [0x2515177c] */ 1614 fp_pop(); 1615 edx = edi; /* 0x25092712: mov edx, edi */ 1616 MEM32(edx) = ecx; /* 0x25092714: mov dword ptr [edx], ecx */ 1617 ecx = MEM32(eax + 0x4); /* 0x25092716: mov ecx, dword ptr [eax + 4] */ 1618 MEM32(edx + 0x4) = ecx; /* 0x25092719: mov dword ptr [edx + 4], ecx */ 1619 ecx = MEM32(eax + 0x8); /* 0x2509271C: mov ecx, dword ptr [eax + 8] */ 1620 MEM32(edx + 0x8) = ecx; /* 0x2509271F: mov dword ptr [edx + 8], ecx */ 1621 eax = MEM32(eax + 0xC); /* 0x25092722: mov eax, dword ptr [eax + 0xc] */ 1622 MEM32(edx + 0xC) = eax; /* 0x25092725: mov dword ptr [edx + 0xc], eax */ 1623 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092728: fnstsw ax */ 1624 /* test HI8(eax), 1 */ /* 0x2509272A: test ah, 1 */ 1625 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1626 _cf = 0; 1627 _flag_k = FK_NARROW(FK_TEST, 24); 1628 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509274A; /* 0x2509272D: jne 0x2509274a */ 1629 L_2509272F: 1630 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x2509272F: fld dword ptr [ebp - 0x1c] */ 1631 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x25151790)); /* 0x25092732: fcomp qword ptr [0x25151790] */ 1632 fp_pop(); 1633 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092738: fnstsw ax */ 1634 /* test HI8(eax), 1 */ /* 0x2509273A: test ah, 1 */ 1635 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1636 _cf = 0; 1637 _flag_k = FK_NARROW(FK_TEST, 24); 1638 if (TEST_Z(_flag_a, _flag_b)) goto L_2509274A; /* 0x2509273D: je 0x2509274a */ 1639 L_2509273F: 1640 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x2509273F: fld dword ptr [ebp - 0x1c] */ 1641 _st[0] *= (double)*(float*)ADDR(0x25151788); /* 0x25092742: fmul dword ptr [0x25151788] */ 1642 goto L_2509276E; /* 0x25092748: jmp 0x2509276e */ 1643 L_2509274A: 1644 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x2509274A: fld dword ptr [ebp - 0x1c] */ 1645 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1647 esp = esp - 8; /* 0x2509274D: sub esp, 8 */ 1648 _flag_k = FK_CMP; 1649 _st[0] *= (double)*(float*)ADDR(0x25151784); /* 0x25092750: fmul dword ptr [0x25151784] */ 1650 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x14) = _v; } /* 0x25092756: fst dword ptr [ebp + 0x14] */ 1651 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x25092759: fstp qword ptr [esp] */ 1652 RECOMP_ICALL(MEM32(0x25151260)); /* 0x2509275C: call dword ptr [0x25151260] */ 1653 RECOMP_FLAGS_IN(); 1654 _st[0] = (double)*(float*)ADDR(ebp + 0x14) - _st[0]; /* 0x25092762: fsubr dword ptr [ebp + 0x14] */ 1655 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1656 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1657 esp = esp + 8; /* 0x25092765: add esp, 8 */ 1658 _flag_k = FK_ADD; 1659 _st[0] *= (double)*(float*)ADDR(0x25151780); /* 0x25092768: fmul dword ptr [0x25151780] */ 1660 L_2509276E: 1661 fp_push(_st[0]); /* 0x2509276E: fld st(0) */ 1662 PUSH32(esp, edi); /* 0x25092770: push edi */ 1663 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x25092771: fsin */ 1664 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x25092773: fld dword ptr [0x2515177c] */ 1665 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x14) = _v; } /* 0x25092779: fst dword ptr [ebp + 0x14] */ 1666 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x2509277C: fstp dword ptr [ebp - 0x44] */ 1667 ecx = MEM32(ebp + 0x14); /* 0x2509277F: mov ecx, dword ptr [ebp + 0x14] */ 1668 edx = MEM32(ebp + (-0x44)); /* 0x25092782: mov edx, dword ptr [ebp - 0x44] */ 1669 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x25092785: fstp dword ptr [ebp - 0x40] */ 1670 eax = MEM32(ebp + (-0x40)); /* 0x25092788: mov eax, dword ptr [ebp - 0x40] */ 1671 MEM32(ebp + (-0x64)) = edx; /* 0x2509278B: mov dword ptr [ebp - 0x64], edx */ 1672 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x2509278E: fcos */ 1673 MEM32(ebp + (-0x3C)) = ecx; /* 0x25092790: mov dword ptr [ebp - 0x3c], ecx */ 1674 MEM32(ebp + (-0x5C)) = ecx; /* 0x25092793: mov dword ptr [ebp - 0x5c], ecx */ 1675 ecx = ebp + (-0x64); /* 0x25092796: lea ecx, [ebp - 0x64] */ 1676 MEM32(ebp + (-0x60)) = eax; /* 0x25092799: mov dword ptr [ebp - 0x60], eax */ 1677 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x2509279C: fstp dword ptr [ebp - 0x38] */ 1678 edx = MEM32(ebp + (-0x38)); /* 0x2509279F: mov edx, dword ptr [ebp - 0x38] */ 1679 MEM32(ebp + (-0x58)) = edx; /* 0x250927A2: mov dword ptr [ebp - 0x58], edx */ 1680 RECOMP_ICALL(MEM32(0x25151508)); /* 0x250927A5: call dword ptr [0x25151508] */ 1681 RECOMP_FLAGS_IN(); 1682 ecx = eax; /* 0x250927AB: mov ecx, eax */ 1683 esi = MEM32(ecx); /* 0x250927AD: mov esi, dword ptr [ecx] */ 1684 edx = edi; /* 0x250927AF: mov edx, edi */ 1685 MEM32(edx) = esi; /* 0x250927B1: mov dword ptr [edx], esi */ 1686 esi = MEM32(ecx + 0x4); /* 0x250927B3: mov esi, dword ptr [ecx + 4] */ 1687 MEM32(edx + 0x4) = esi; /* 0x250927B6: mov dword ptr [edx + 4], esi */ 1688 esi = MEM32(ecx + 0x8); /* 0x250927B9: mov esi, dword ptr [ecx + 8] */ 1689 MEM32(edx + 0x8) = esi; /* 0x250927BC: mov dword ptr [edx + 8], esi */ 1690 ecx = MEM32(ecx + 0xC); /* 0x250927BF: mov ecx, dword ptr [ecx + 0xc] */ 1691 MEM32(edx + 0xC) = ecx; /* 0x250927C2: mov dword ptr [edx + 0xc], ecx */ 1692 edx = MEM32(eax); /* 0x250927C5: mov edx, dword ptr [eax] */ 1693 ecx = MEM32(eax + 0x4); /* 0x250927C7: mov ecx, dword ptr [eax + 4] */ 1694 MEM32(ebp + (-0x44)) = edx; /* 0x250927CA: mov dword ptr [ebp - 0x44], edx */ 1695 edx = MEM32(eax + 0x8); /* 0x250927CD: mov edx, dword ptr [eax + 8] */ 1696 eax = MEM32(eax + 0xC); /* 0x250927D0: mov eax, dword ptr [eax + 0xc] */ 1697 MEM32(ebp + (-0x40)) = ecx; /* 0x250927D3: mov dword ptr [ebp - 0x40], ecx */ 1698 ecx = ebp + (-0x44); /* 0x250927D6: lea ecx, [ebp - 0x44] */ 1699 MEM32(ebp + (-0x3C)) = edx; /* 0x250927D9: mov dword ptr [ebp - 0x3c], edx */ 1700 MEM32(ebp + (-0x38)) = eax; /* 0x250927DC: mov dword ptr [ebp - 0x38], eax */ 1701 RECOMP_ICALL(MEM32(0x25151558)); /* 0x250927DF: call dword ptr [0x25151558] */ 1702 RECOMP_FLAGS_IN(); 1703 edx = MEM32(eax); /* 0x250927E5: mov edx, dword ptr [eax] */ 1704 esi = MEM32(ebp + 0x8); /* 0x250927E7: mov esi, dword ptr [ebp + 8] */ 1705 ecx = edi; /* 0x250927EA: mov ecx, edi */ 1706 MEM32(ecx) = edx; /* 0x250927EC: mov dword ptr [ecx], edx */ 1707 edx = MEM32(eax + 0x4); /* 0x250927EE: mov edx, dword ptr [eax + 4] */ 1708 MEM32(ecx + 0x4) = edx; /* 0x250927F1: mov dword ptr [ecx + 4], edx */ 1709 edx = MEM32(eax + 0x8); /* 0x250927F4: mov edx, dword ptr [eax + 8] */ 1710 MEM32(ecx + 0x8) = edx; /* 0x250927F7: mov dword ptr [ecx + 8], edx */ 1711 eax = MEM32(eax + 0xC); /* 0x250927FA: mov eax, dword ptr [eax + 0xc] */ 1712 MEM32(ecx + 0xC) = eax; /* 0x250927FD: mov dword ptr [ecx + 0xc], eax */ 1713 eax = MEM32(ebx + 0x20); /* 0x25092800: mov eax, dword ptr [ebx + 0x20] */ 1714 /* cmp eax, 0xFFFFFFFFu */ /* 0x25092803: cmp eax, -1 */ 1715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1717 _flag_k = FK_CMP; 1718 if (CMP_EQ(_flag_a, _flag_b)) goto L_25092969; /* 0x25092806: je 0x25092969 */ 1719 L_2509280C: 1720 /* cmp eax, 0xFFFFu */ /* 0x2509280C: cmp eax, 0xffff */ 1721 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 1722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1723 _flag_k = FK_CMP; 1724 if (CMP_EQ(_flag_a, _flag_b)) goto L_25092969; /* 0x25092811: je 0x25092969 */ 1725 L_25092817: 1726 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25092817: fld dword ptr [ebp - 0x34] */ 1727 MEM32(ebp + (-0x2C)) = 0; /* 0x2509281A: mov dword ptr [ebp - 0x2c], 0 */ 1728 _st[0] *= (double)*(float*)ADDR(0x25154110); /* 0x25092821: fmul dword ptr [0x25154110] */ 1729 edx = MEM32(ebp + (-0x2C)); /* 0x25092827: mov edx, dword ptr [ebp - 0x2c] */ 1730 MEM32(ebp + (-0x28)) = 0; /* 0x2509282A: mov dword ptr [ebp - 0x28], 0 */ 1731 eax = MEM32(ebp + (-0x28)); /* 0x25092831: mov eax, dword ptr [ebp - 0x28] */ 1732 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x25092834: fstp dword ptr [ebp - 0x30] */ 1733 ecx = MEM32(ebp + (-0x30)); /* 0x25092837: mov ecx, dword ptr [ebp - 0x30] */ 1734 MEM32(ebp + (-0x24)) = ecx; /* 0x2509283A: mov dword ptr [ebp - 0x24], ecx */ 1735 PUSH32(esp, edi); /* 0x2509283D: push edi */ 1736 ecx = ebp + (-0x24); /* 0x2509283E: lea ecx, [ebp - 0x24] */ 1737 MEM32(ebp + (-0x20)) = edx; /* 0x25092841: mov dword ptr [ebp - 0x20], edx */ 1738 MEM32(ebp + (-0x1C)) = eax; /* 0x25092844: mov dword ptr [ebp - 0x1c], eax */ 1739 RECOMP_ICALL(MEM32(0x2515157C)); /* 0x25092847: call dword ptr [0x2515157c] */ 1740 RECOMP_FLAGS_IN(); 1741 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x2509284D: fld dword ptr [ebp - 0x34] */ 1742 ecx = MEM32(eax); /* 0x25092850: mov ecx, dword ptr [eax] */ 1743 _st[0] *= (double)*(float*)ADDR(0x25155BA0); /* 0x25092852: fmul dword ptr [0x25155ba0] */ 1744 edx = MEM32(eax + 0x4); /* 0x25092858: mov edx, dword ptr [eax + 4] */ 1745 eax = MEM32(eax + 0x8); /* 0x2509285B: mov eax, dword ptr [eax + 8] */ 1746 MEM32(ebp + (-0x18)) = ecx; /* 0x2509285E: mov dword ptr [ebp - 0x18], ecx */ 1747 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x25092861: fstp dword ptr [ebp - 0x2c] */ 1748 MEM32(ebp + (-0x30)) = 0; /* 0x25092864: mov dword ptr [ebp - 0x30], 0 */ 1749 ecx = MEM32(ebp + (-0x30)); /* 0x2509286B: mov ecx, dword ptr [ebp - 0x30] */ 1750 MEM32(ebp + (-0x14)) = edx; /* 0x2509286E: mov dword ptr [ebp - 0x14], edx */ 1751 edx = MEM32(ebp + (-0x2C)); /* 0x25092871: mov edx, dword ptr [ebp - 0x2c] */ 1752 MEM32(ebp + (-0x10)) = eax; /* 0x25092874: mov dword ptr [ebp - 0x10], eax */ 1753 MEM32(ebp + (-0x28)) = 0; /* 0x25092877: mov dword ptr [ebp - 0x28], 0 */ 1754 eax = MEM32(ebp + (-0x28)); /* 0x2509287E: mov eax, dword ptr [ebp - 0x28] */ 1755 MEM32(ebp + (-0x24)) = ecx; /* 0x25092881: mov dword ptr [ebp - 0x24], ecx */ 1756 PUSH32(esp, edi); /* 0x25092884: push edi */ 1757 ecx = ebp + (-0x24); /* 0x25092885: lea ecx, [ebp - 0x24] */ 1758 MEM32(ebp + (-0x20)) = edx; /* 0x25092888: mov dword ptr [ebp - 0x20], edx */ 1759 MEM32(ebp + (-0x1C)) = eax; /* 0x2509288B: mov dword ptr [ebp - 0x1c], eax */ 1760 RECOMP_ICALL(MEM32(0x2515157C)); /* 0x2509288E: call dword ptr [0x2515157c] */ 1761 RECOMP_FLAGS_IN(); 1762 ecx = MEM32(eax); /* 0x25092894: mov ecx, dword ptr [eax] */ 1763 edx = MEM32(eax + 0x4); /* 0x25092896: mov edx, dword ptr [eax + 4] */ 1764 eax = MEM32(eax + 0x8); /* 0x25092899: mov eax, dword ptr [eax + 8] */ 1765 MEM32(ebp + (-0x30)) = ecx; /* 0x2509289C: mov dword ptr [ebp - 0x30], ecx */ 1766 ecx = MEM32(ebx + 0x20); /* 0x2509289F: mov ecx, dword ptr [ebx + 0x20] */ 1767 MEM32(ebp + (-0x20)) = ecx; /* 0x250928A2: mov dword ptr [ebp - 0x20], ecx */ 1768 MEM32(ebp + (-0x1C)) = 0; /* 0x250928A5: mov dword ptr [ebp - 0x1c], 0 */ 1769 fp_push_i64((int64_t)MEM64(ebp + (-0x20))); /* 0x250928AC: fild qword ptr [ebp - 0x20] */ 1770 ecx = MEM32(ebp + (-0x10)); /* 0x250928AF: mov ecx, dword ptr [ebp - 0x10] */ 1771 MEM32(ebp + (-0x2C)) = edx; /* 0x250928B2: mov dword ptr [ebp - 0x2c], edx */ 1772 _st[0] *= (double)*(float*)ADDR(0x25155B9C); /* 0x250928B5: fmul dword ptr [0x25155b9c] */ 1773 edx = MEM32(ebp + (-0x18)); /* 0x250928BB: mov edx, dword ptr [ebp - 0x18] */ 1774 MEM32(ebp + (-0x24)) = edx; /* 0x250928BE: mov dword ptr [ebp - 0x24], edx */ 1775 MEM32(ebp + (-0x28)) = eax; /* 0x250928C1: mov dword ptr [ebp - 0x28], eax */ 1776 _st[0] -= (double)*(float*)ADDR(0x25151788); /* 0x250928C4: fsub dword ptr [0x25151788] */ 1777 eax = MEM32(ebp + (-0x14)); /* 0x250928CA: mov eax, dword ptr [ebp - 0x14] */ 1778 MEM32(ebp + (-0x1C)) = ecx; /* 0x250928CD: mov dword ptr [ebp - 0x1c], ecx */ 1779 _st[0] *= *(double*)ADDR(0x25152F40); /* 0x250928D0: fmul qword ptr [0x25152f40] */ 1780 ecx = ebp + (-0x24); /* 0x250928D6: lea ecx, [ebp - 0x24] */ 1781 MEM32(ebp + (-0x20)) = eax; /* 0x250928D9: mov dword ptr [ebp - 0x20], eax */ 1782 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x14) = _v; } /* 0x250928DC: fst dword ptr [ebp + 0x14] */ 1783 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x250928DF: fcos */ 1784 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x250928E1: fstp dword ptr [ebp + 0xc] */ 1785 edx = MEM32(ebp + 0xC); /* 0x250928E4: mov edx, dword ptr [ebp + 0xc] */ 1786 PUSH32(esp, edx); /* 0x250928E7: push edx */ 1787 RECOMP_ICALL(MEM32(0x25151510)); /* 0x250928E8: call dword ptr [0x25151510] */ 1788 RECOMP_FLAGS_IN(); 1789 ecx = MEM32(eax); /* 0x250928EE: mov ecx, dword ptr [eax] */ 1790 edx = MEM32(eax + 0x4); /* 0x250928F0: mov edx, dword ptr [eax + 4] */ 1791 eax = MEM32(eax + 0x8); /* 0x250928F3: mov eax, dword ptr [eax + 8] */ 1792 MEM32(ebp + (-0x18)) = ecx; /* 0x250928F6: mov dword ptr [ebp - 0x18], ecx */ 1793 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x250928F9: fld dword ptr [ebp - 0x18] */ 1794 _st[0] += (double)*(float*)ADDR(esi); /* 0x250928FC: fadd dword ptr [esi] */ 1795 MEM32(ebp + (-0x14)) = edx; /* 0x250928FE: mov dword ptr [ebp - 0x14], edx */ 1796 MEM32(ebp + (-0x10)) = eax; /* 0x25092901: mov dword ptr [ebp - 0x10], eax */ 1797 ecx = MEM32(ebp + (-0x30)); /* 0x25092904: mov ecx, dword ptr [ebp - 0x30] */ 1798 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x25092907: fstp dword ptr [esi] */ 1799 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x25092909: fld dword ptr [ebp - 0x14] */ 1800 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x2509290C: fadd dword ptr [esi + 4] */ 1801 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x2509290F: fstp dword ptr [esi + 4] */ 1802 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x25092912: fld dword ptr [ebp - 0x10] */ 1803 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x25092915: fadd dword ptr [esi + 8] */ 1804 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x25092918: fstp dword ptr [esi + 8] */ 1805 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x2509291B: fld dword ptr [ebp + 0x14] */ 1806 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x2509291E: fsin */ 1807 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x25092920: fstp dword ptr [ebp + 0x14] */ 1808 edx = MEM32(ebp + (-0x2C)); /* 0x25092923: mov edx, dword ptr [ebp - 0x2c] */ 1809 eax = MEM32(ebp + (-0x28)); /* 0x25092926: mov eax, dword ptr [ebp - 0x28] */ 1810 MEM32(ebp + (-0x24)) = ecx; /* 0x25092929: mov dword ptr [ebp - 0x24], ecx */ 1811 ecx = MEM32(ebp + 0x14); /* 0x2509292C: mov ecx, dword ptr [ebp + 0x14] */ 1812 PUSH32(esp, ecx); /* 0x2509292F: push ecx */ 1813 ecx = ebp + (-0x24); /* 0x25092930: lea ecx, [ebp - 0x24] */ 1814 MEM32(ebp + (-0x20)) = edx; /* 0x25092933: mov dword ptr [ebp - 0x20], edx */ 1815 MEM32(ebp + (-0x1C)) = eax; /* 0x25092936: mov dword ptr [ebp - 0x1c], eax */ 1816 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092939: call dword ptr [0x25151510] */ 1817 RECOMP_FLAGS_IN(); 1818 edx = MEM32(eax); /* 0x2509293F: mov edx, dword ptr [eax] */ 1819 ecx = MEM32(eax + 0x4); /* 0x25092941: mov ecx, dword ptr [eax + 4] */ 1820 MEM32(ebp + (-0x18)) = edx; /* 0x25092944: mov dword ptr [ebp - 0x18], edx */ 1821 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x25092947: fld dword ptr [ebp - 0x18] */ 1822 _st[0] += (double)*(float*)ADDR(esi); /* 0x2509294A: fadd dword ptr [esi] */ 1823 edx = MEM32(eax + 0x8); /* 0x2509294C: mov edx, dword ptr [eax + 8] */ 1824 MEM32(ebp + (-0x14)) = ecx; /* 0x2509294F: mov dword ptr [ebp - 0x14], ecx */ 1825 MEM32(ebp + (-0x10)) = edx; /* 0x25092952: mov dword ptr [ebp - 0x10], edx */ 1826 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x25092955: fstp dword ptr [esi] */ 1827 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x25092957: fld dword ptr [ebp - 0x14] */ 1828 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x2509295A: fadd dword ptr [esi + 4] */ 1829 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x2509295D: fstp dword ptr [esi + 4] */ 1830 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x25092960: fld dword ptr [ebp - 0x10] */ 1831 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x25092963: fadd dword ptr [esi + 8] */ 1832 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x25092966: fstp dword ptr [esi + 8] */ 1833 L_25092969: 1834 SET_LO8(eax, MEM8(ebx + 0x30)); /* 0x25092969: mov al, byte ptr [ebx + 0x30] */ 1835 /* test LO8(eax), LO8(eax) */ /* 0x2509296C: test al, al */ 1836 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1837 _cf = 0; 1838 _flag_k = FK_NARROW(FK_TEST, 24); 1839 if (TEST_Z(_flag_a, _flag_b)) goto L_25092AB7; /* 0x2509296E: je 0x25092ab7 */ 1840 L_25092974: 1841 PUSH32(esp, edi); /* 0x25092974: push edi */ 1842 ecx = ebp + (-0xD4); /* 0x25092975: lea ecx, [ebp - 0xd4] */ 1843 RECOMP_ICALL(MEM32(0x25151520)); /* 0x2509297B: call dword ptr [0x25151520] */ 1844 RECOMP_FLAGS_IN(); 1845 eax = MEM32(ebp + (-0xB4)); /* 0x25092981: mov eax, dword ptr [ebp - 0xb4] */ 1846 ecx = MEM32(ebp + (-0xB0)); /* 0x25092987: mov ecx, dword ptr [ebp - 0xb0] */ 1847 edx = MEM32(ebp + (-0xAC)); /* 0x2509298D: mov edx, dword ptr [ebp - 0xac] */ 1848 MEM32(ebp + (-0x24)) = eax; /* 0x25092993: mov dword ptr [ebp - 0x24], eax */ 1849 MEM32(ebp + (-0x20)) = ecx; /* 0x25092996: mov dword ptr [ebp - 0x20], ecx */ 1850 MEM32(ebp + (-0x18)) = 0; /* 0x25092999: mov dword ptr [ebp - 0x18], 0 */ 1851 eax = MEM32(ebp + (-0x18)); /* 0x250929A0: mov eax, dword ptr [ebp - 0x18] */ 1852 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x250929A3: mov dword ptr [ebp - 0x14], 0x3f800000 */ 1853 ecx = MEM32(ebp + (-0x14)); /* 0x250929AA: mov ecx, dword ptr [ebp - 0x14] */ 1854 MEM32(ebp + (-0x54)) = eax; /* 0x250929AD: mov dword ptr [ebp - 0x54], eax */ 1855 MEM32(ebp + (-0x1C)) = edx; /* 0x250929B0: mov dword ptr [ebp - 0x1c], edx */ 1856 eax = ebp + (-0x24); /* 0x250929B3: lea eax, [ebp - 0x24] */ 1857 MEM32(ebp + (-0x10)) = 0; /* 0x250929B6: mov dword ptr [ebp - 0x10], 0 */ 1858 edx = MEM32(ebp + (-0x10)); /* 0x250929BD: mov edx, dword ptr [ebp - 0x10] */ 1859 MEM32(ebp + (-0x50)) = ecx; /* 0x250929C0: mov dword ptr [ebp - 0x50], ecx */ 1860 PUSH32(esp, eax); /* 0x250929C3: push eax */ 1861 ecx = ebp + (-0x54); /* 0x250929C4: lea ecx, [ebp - 0x54] */ 1862 MEM32(ebp + (-0x4)) = 0; /* 0x250929C7: mov dword ptr [ebp - 4], 0 */ 1863 MEM32(ebp + (-0x4C)) = edx; /* 0x250929CE: mov dword ptr [ebp - 0x4c], edx */ 1864 RECOMP_ICALL(MEM32(0x25151564)); /* 0x250929D1: call dword ptr [0x25151564] */ 1865 RECOMP_FLAGS_IN(); 1866 ecx = MEM32(eax); /* 0x250929D7: mov ecx, dword ptr [eax] */ 1867 edx = MEM32(eax + 0x4); /* 0x250929D9: mov edx, dword ptr [eax + 4] */ 1868 eax = MEM32(eax + 0x8); /* 0x250929DC: mov eax, dword ptr [eax + 8] */ 1869 MEM32(ebp + (-0x70)) = ecx; /* 0x250929DF: mov dword ptr [ebp - 0x70], ecx */ 1870 PUSH32(esp, 0x3F800000u); /* 0x250929E2: push 0x3f800000 */ 1871 ecx = ebp + (-0x70); /* 0x250929E7: lea ecx, [ebp - 0x70] */ 1872 MEM32(ebp + (-0x6C)) = edx; /* 0x250929EA: mov dword ptr [ebp - 0x6c], edx */ 1873 MEM32(ebp + (-0x68)) = eax; /* 0x250929ED: mov dword ptr [ebp - 0x68], eax */ 1874 RECOMP_ICALL(MEM32(0x25151590)); /* 0x250929F0: call dword ptr [0x25151590] */ 1875 RECOMP_FLAGS_IN(); 1876 ecx = MEM32(eax); /* 0x250929F6: mov ecx, dword ptr [eax] */ 1877 MEM32(ebp + (-0x30)) = ecx; /* 0x250929F8: mov dword ptr [ebp - 0x30], ecx */ 1878 edx = MEM32(eax + 0x4); /* 0x250929FB: mov edx, dword ptr [eax + 4] */ 1879 ecx = MEM32(ebp + (-0x24)); /* 0x250929FE: mov ecx, dword ptr [ebp - 0x24] */ 1880 MEM32(ebp + (-0x2C)) = edx; /* 0x25092A01: mov dword ptr [ebp - 0x2c], edx */ 1881 eax = MEM32(eax + 0x8); /* 0x25092A04: mov eax, dword ptr [eax + 8] */ 1882 edx = MEM32(ebp + (-0x20)); /* 0x25092A07: mov edx, dword ptr [ebp - 0x20] */ 1883 MEM32(ebp + (-0x54)) = ecx; /* 0x25092A0A: mov dword ptr [ebp - 0x54], ecx */ 1884 ecx = ebp + (-0x30); /* 0x25092A0D: lea ecx, [ebp - 0x30] */ 1885 MEM32(ebp + (-0x28)) = eax; /* 0x25092A10: mov dword ptr [ebp - 0x28], eax */ 1886 eax = MEM32(ebp + (-0x1C)); /* 0x25092A13: mov eax, dword ptr [ebp - 0x1c] */ 1887 PUSH32(esp, ecx); /* 0x25092A16: push ecx */ 1888 ecx = ebp + (-0x54); /* 0x25092A17: lea ecx, [ebp - 0x54] */ 1889 MEM32(ebp + (-0x50)) = edx; /* 0x25092A1A: mov dword ptr [ebp - 0x50], edx */ 1890 MEM32(ebp + (-0x4C)) = eax; /* 0x25092A1D: mov dword ptr [ebp - 0x4c], eax */ 1891 RECOMP_ICALL(MEM32(0x25151564)); /* 0x25092A20: call dword ptr [0x25151564] */ 1892 RECOMP_FLAGS_IN(); 1893 edx = MEM32(eax); /* 0x25092A26: mov edx, dword ptr [eax] */ 1894 ecx = MEM32(eax + 0x4); /* 0x25092A28: mov ecx, dword ptr [eax + 4] */ 1895 MEM32(ebp + (-0x18)) = edx; /* 0x25092A2B: mov dword ptr [ebp - 0x18], edx */ 1896 edx = MEM32(eax + 0x8); /* 0x25092A2E: mov edx, dword ptr [eax + 8] */ 1897 eax = MEM32(ebp + (-0x30)); /* 0x25092A31: mov eax, dword ptr [ebp - 0x30] */ 1898 MEM32(ebp + (-0x14)) = ecx; /* 0x25092A34: mov dword ptr [ebp - 0x14], ecx */ 1899 ecx = MEM32(ebp + (-0x2C)); /* 0x25092A37: mov ecx, dword ptr [ebp - 0x2c] */ 1900 MEM32(ebp + (-0xD4)) = eax; /* 0x25092A3A: mov dword ptr [ebp - 0xd4], eax */ 1901 eax = MEM32(ebp + (-0x18)); /* 0x25092A40: mov eax, dword ptr [ebp - 0x18] */ 1902 MEM32(ebp + (-0x10)) = edx; /* 0x25092A43: mov dword ptr [ebp - 0x10], edx */ 1903 edx = MEM32(ebp + (-0x28)); /* 0x25092A46: mov edx, dword ptr [ebp - 0x28] */ 1904 MEM32(ebp + (-0xD0)) = ecx; /* 0x25092A49: mov dword ptr [ebp - 0xd0], ecx */ 1905 ecx = MEM32(ebp + (-0x14)); /* 0x25092A4F: mov ecx, dword ptr [ebp - 0x14] */ 1906 MEM32(ebp + (-0xC4)) = eax; /* 0x25092A52: mov dword ptr [ebp - 0xc4], eax */ 1907 eax = MEM32(ebp + (-0x24)); /* 0x25092A58: mov eax, dword ptr [ebp - 0x24] */ 1908 MEM32(ebp + (-0xCC)) = edx; /* 0x25092A5B: mov dword ptr [ebp - 0xcc], edx */ 1909 edx = MEM32(ebp + (-0x10)); /* 0x25092A61: mov edx, dword ptr [ebp - 0x10] */ 1910 MEM32(ebp + (-0xC0)) = ecx; /* 0x25092A64: mov dword ptr [ebp - 0xc0], ecx */ 1911 ecx = MEM32(ebp + (-0x20)); /* 0x25092A6A: mov ecx, dword ptr [ebp - 0x20] */ 1912 MEM32(ebp + (-0xB4)) = eax; /* 0x25092A6D: mov dword ptr [ebp - 0xb4], eax */ 1913 MEM32(ebp + (-0xBC)) = edx; /* 0x25092A73: mov dword ptr [ebp - 0xbc], edx */ 1914 edx = MEM32(ebp + (-0x1C)); /* 0x25092A79: mov edx, dword ptr [ebp - 0x1c] */ 1915 eax = ebp + (-0xD4); /* 0x25092A7C: lea eax, [ebp - 0xd4] */ 1916 MEM32(ebp + (-0xB0)) = ecx; /* 0x25092A82: mov dword ptr [ebp - 0xb0], ecx */ 1917 PUSH32(esp, eax); /* 0x25092A88: push eax */ 1918 ecx = ebp + (-0x44); /* 0x25092A89: lea ecx, [ebp - 0x44] */ 1919 MEM32(ebp + (-0xAC)) = edx; /* 0x25092A8C: mov dword ptr [ebp - 0xac], edx */ 1920 RECOMP_ICALL(MEM32(0x25151574)); /* 0x25092A92: call dword ptr [0x25151574] */ 1921 RECOMP_FLAGS_IN(); 1922 edx = MEM32(eax); /* 0x25092A98: mov edx, dword ptr [eax] */ 1923 ecx = edi; /* 0x25092A9A: mov ecx, edi */ 1924 MEM32(ecx) = edx; /* 0x25092A9C: mov dword ptr [ecx], edx */ 1925 edx = MEM32(eax + 0x4); /* 0x25092A9E: mov edx, dword ptr [eax + 4] */ 1926 MEM32(ecx + 0x4) = edx; /* 0x25092AA1: mov dword ptr [ecx + 4], edx */ 1927 edx = MEM32(eax + 0x8); /* 0x25092AA4: mov edx, dword ptr [eax + 8] */ 1928 MEM32(ecx + 0x8) = edx; /* 0x25092AA7: mov dword ptr [ecx + 8], edx */ 1929 eax = MEM32(eax + 0xC); /* 0x25092AAA: mov eax, dword ptr [eax + 0xc] */ 1930 MEM32(ecx + 0xC) = eax; /* 0x25092AAD: mov dword ptr [ecx + 0xc], eax */ 1931 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25092AB0: mov dword ptr [ebp - 4], 0xffffffff */ 1932 L_25092AB7: 1933 SET_LO8(eax, MEM8(ebx + 0x34)); /* 0x25092AB7: mov al, byte ptr [ebx + 0x34] */ 1934 /* test LO8(eax), LO8(eax) */ /* 0x25092ABA: test al, al */ 1935 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1936 _cf = 0; 1937 _flag_k = FK_NARROW(FK_TEST, 24); 1938 if (TEST_Z(_flag_a, _flag_b)) goto L_25092B83; /* 0x25092ABC: je 0x25092b83 */ 1939 L_25092AC2: 1940 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25092AC2: fld dword ptr [ebp - 0x34] */ 1941 MEM32(ebp + (-0x18)) = 0; /* 0x25092AC5: mov dword ptr [ebp - 0x18], 0 */ 1942 ecx = MEM32(ebp + (-0x18)); /* 0x25092ACC: mov ecx, dword ptr [ebp - 0x18] */ 1943 _st[0] *= (double)*(float*)ADDR(0x25154110); /* 0x25092ACF: fmul dword ptr [0x25154110] */ 1944 MEM32(ebp + (-0x14)) = 0; /* 0x25092AD5: mov dword ptr [ebp - 0x14], 0 */ 1945 edx = MEM32(ebp + (-0x14)); /* 0x25092ADC: mov edx, dword ptr [ebp - 0x14] */ 1946 MEM32(ebp + (-0x24)) = ecx; /* 0x25092ADF: mov dword ptr [ebp - 0x24], ecx */ 1947 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x25092AE2: fstp dword ptr [ebp - 0x10] */ 1948 eax = MEM32(ebp + (-0x10)); /* 0x25092AE5: mov eax, dword ptr [ebp - 0x10] */ 1949 ecx = ebp + (-0x24); /* 0x25092AE8: lea ecx, [ebp - 0x24] */ 1950 MEM32(ebp + (-0x20)) = edx; /* 0x25092AEB: mov dword ptr [ebp - 0x20], edx */ 1951 PUSH32(esp, ecx); /* 0x25092AEE: push ecx */ 1952 edx = ebp + (-0x60); /* 0x25092AEF: lea edx, [ebp - 0x60] */ 1953 PUSH32(esp, edx); /* 0x25092AF2: push edx */ 1954 ecx = edi; /* 0x25092AF3: mov ecx, edi */ 1955 MEM32(ebp + (-0x1C)) = eax; /* 0x25092AF5: mov dword ptr [ebp - 0x1c], eax */ 1956 RECOMP_ICALL(MEM32(0x25151570)); /* 0x25092AF8: call dword ptr [0x25151570] */ 1957 RECOMP_FLAGS_IN(); 1958 ecx = MEM32(eax); /* 0x25092AFE: mov ecx, dword ptr [eax] */ 1959 MEM32(ebp + (-0x18)) = ecx; /* 0x25092B00: mov dword ptr [ebp - 0x18], ecx */ 1960 edx = MEM32(eax + 0x4); /* 0x25092B03: mov edx, dword ptr [eax + 4] */ 1961 MEM32(ebp + (-0x14)) = edx; /* 0x25092B06: mov dword ptr [ebp - 0x14], edx */ 1962 eax = MEM32(eax + 0x8); /* 0x25092B09: mov eax, dword ptr [eax + 8] */ 1963 ecx = ebp + (-0x18); /* 0x25092B0C: lea ecx, [ebp - 0x18] */ 1964 PUSH32(esp, ecx); /* 0x25092B0F: push ecx */ 1965 edx = ebp + (-0x40); /* 0x25092B10: lea edx, [ebp - 0x40] */ 1966 PUSH32(esp, edx); /* 0x25092B13: push edx */ 1967 ecx = edi; /* 0x25092B14: mov ecx, edi */ 1968 MEM32(ebp + (-0x10)) = eax; /* 0x25092B16: mov dword ptr [ebp - 0x10], eax */ 1969 RECOMP_ICALL(MEM32(0x25151570)); /* 0x25092B19: call dword ptr [0x25151570] */ 1970 RECOMP_FLAGS_IN(); 1971 fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x25092B1F: fld dword ptr [edi + 0xc] */ 1972 ecx = MEM32(eax); /* 0x25092B22: mov ecx, dword ptr [eax] */ 1973 _st[0] += _st[0]; /* 0x25092B24: fadd st(0), st(0) */ 1974 MEM32(ebp + (-0x30)) = ecx; /* 0x25092B26: mov dword ptr [ebp - 0x30], ecx */ 1975 edx = MEM32(eax + 0x4); /* 0x25092B29: mov edx, dword ptr [eax + 4] */ 1976 MEM32(ebp + (-0x2C)) = edx; /* 0x25092B2C: mov dword ptr [ebp - 0x2c], edx */ 1977 eax = MEM32(eax + 0x8); /* 0x25092B2F: mov eax, dword ptr [eax + 8] */ 1978 PUSH32(esp, ecx); /* 0x25092B32: push ecx */ 1979 ecx = ebp + (-0x18); /* 0x25092B33: lea ecx, [ebp - 0x18] */ 1980 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x25092B36: fstp dword ptr [esp] */ 1981 MEM32(ebp + (-0x28)) = eax; /* 0x25092B39: mov dword ptr [ebp - 0x28], eax */ 1982 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092B3C: call dword ptr [0x25151510] */ 1983 RECOMP_FLAGS_IN(); 1984 PUSH32(esp, 0x40000000u); /* 0x25092B42: push 0x40000000 */ 1985 ecx = ebp + (-0x30); /* 0x25092B47: lea ecx, [ebp - 0x30] */ 1986 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092B4A: call dword ptr [0x25151510] */ 1987 RECOMP_FLAGS_IN(); 1988 ecx = ebp + (-0x18); /* 0x25092B50: lea ecx, [ebp - 0x18] */ 1989 PUSH32(esp, ecx); /* 0x25092B53: push ecx */ 1990 ecx = ebp + (-0x24); /* 0x25092B54: lea ecx, [ebp - 0x24] */ 1991 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092B57: call dword ptr [0x251514f8] */ 1992 RECOMP_FLAGS_IN(); 1993 edx = ebp + (-0x30); /* 0x25092B5D: lea edx, [ebp - 0x30] */ 1994 PUSH32(esp, edx); /* 0x25092B60: push edx */ 1995 ecx = ebp + (-0x24); /* 0x25092B61: lea ecx, [ebp - 0x24] */ 1996 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092B64: call dword ptr [0x251514f8] */ 1997 RECOMP_FLAGS_IN(); 1998 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x25092B6A: fld dword ptr [ebp - 0x24] */ 1999 _st[0] += (double)*(float*)ADDR(esi); /* 0x25092B6D: fadd dword ptr [esi] */ 2000 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x25092B6F: fstp dword ptr [esi] */ 2001 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x25092B71: fld dword ptr [ebp - 0x20] */ 2002 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x25092B74: fadd dword ptr [esi + 4] */ 2003 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x25092B77: fstp dword ptr [esi + 4] */ 2004 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x25092B7A: fld dword ptr [ebp - 0x1c] */ 2005 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x25092B7D: fadd dword ptr [esi + 8] */ 2006 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x25092B80: fstp dword ptr [esi + 8] */ 2007 L_25092B83: 2008 SET_LO8(eax, MEM8(ebx + 0x37)); /* 0x25092B83: mov al, byte ptr [ebx + 0x37] */ 2009 /* test LO8(eax), LO8(eax) */ /* 0x25092B86: test al, al */ 2010 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2011 _cf = 0; 2012 _flag_k = FK_NARROW(FK_TEST, 24); 2013 if (TEST_Z(_flag_a, _flag_b)) goto L_25092C84; /* 0x25092B88: je 0x25092c84 */ 2014 L_25092B8E: 2015 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25092B8E: fld dword ptr [ebp - 0x34] */ 2016 MEM32(ebp + (-0x18)) = 0; /* 0x25092B91: mov dword ptr [ebp - 0x18], 0 */ 2017 eax = MEM32(ebp + (-0x18)); /* 0x25092B98: mov eax, dword ptr [ebp - 0x18] */ 2018 _st[0] *= (double)*(float*)ADDR(0x25154110); /* 0x25092B9B: fmul dword ptr [0x25154110] */ 2019 MEM32(ebp + (-0x7C)) = eax; /* 0x25092BA1: mov dword ptr [ebp - 0x7c], eax */ 2020 MEM32(ebp + (-0x14)) = 0; /* 0x25092BA4: mov dword ptr [ebp - 0x14], 0 */ 2021 ecx = MEM32(ebp + (-0x14)); /* 0x25092BAB: mov ecx, dword ptr [ebp - 0x14] */ 2022 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x25092BAE: fstp dword ptr [ebp - 0x10] */ 2023 edx = MEM32(ebp + (-0x10)); /* 0x25092BB1: mov edx, dword ptr [ebp - 0x10] */ 2024 MEM32(ebp + (-0x78)) = ecx; /* 0x25092BB4: mov dword ptr [ebp - 0x78], ecx */ 2025 eax = edi; /* 0x25092BB7: mov eax, edi */ 2026 ecx = MEM32(eax); /* 0x25092BB9: mov ecx, dword ptr [eax] */ 2027 MEM32(ebp + (-0x88)) = ecx; /* 0x25092BBB: mov dword ptr [ebp - 0x88], ecx */ 2028 MEM32(ebp + (-0x74)) = edx; /* 0x25092BC1: mov dword ptr [ebp - 0x74], edx */ 2029 edx = MEM32(eax + 0x4); /* 0x25092BC4: mov edx, dword ptr [eax + 4] */ 2030 eax = MEM32(eax + 0x8); /* 0x25092BC7: mov eax, dword ptr [eax + 8] */ 2031 ecx = ebp + (-0x7C); /* 0x25092BCA: lea ecx, [ebp - 0x7c] */ 2032 PUSH32(esp, ecx); /* 0x25092BCD: push ecx */ 2033 ecx = ebp + (-0x88); /* 0x25092BCE: lea ecx, [ebp - 0x88] */ 2034 MEM32(ebp + (-0x84)) = edx; /* 0x25092BD4: mov dword ptr [ebp - 0x84], edx */ 2035 MEM32(ebp + (-0x80)) = eax; /* 0x25092BDA: mov dword ptr [ebp - 0x80], eax */ 2036 RECOMP_ICALL(MEM32(0x25151564)); /* 0x25092BDD: call dword ptr [0x25151564] */ 2037 RECOMP_FLAGS_IN(); 2038 edx = MEM32(eax); /* 0x25092BE3: mov edx, dword ptr [eax] */ 2039 MEM32(ebp + (-0x70)) = edx; /* 0x25092BE5: mov dword ptr [ebp - 0x70], edx */ 2040 ecx = MEM32(eax + 0x4); /* 0x25092BE8: mov ecx, dword ptr [eax + 4] */ 2041 MEM32(ebp + (-0x6C)) = ecx; /* 0x25092BEB: mov dword ptr [ebp - 0x6c], ecx */ 2042 edx = MEM32(eax + 0x8); /* 0x25092BEE: mov edx, dword ptr [eax + 8] */ 2043 eax = edi; /* 0x25092BF1: mov eax, edi */ 2044 ecx = MEM32(eax); /* 0x25092BF3: mov ecx, dword ptr [eax] */ 2045 MEM32(ebp + (-0x94)) = ecx; /* 0x25092BF5: mov dword ptr [ebp - 0x94], ecx */ 2046 MEM32(ebp + (-0x68)) = edx; /* 0x25092BFB: mov dword ptr [ebp - 0x68], edx */ 2047 edx = MEM32(eax + 0x4); /* 0x25092BFE: mov edx, dword ptr [eax + 4] */ 2048 eax = MEM32(eax + 0x8); /* 0x25092C01: mov eax, dword ptr [eax + 8] */ 2049 ecx = ebp + (-0x70); /* 0x25092C04: lea ecx, [ebp - 0x70] */ 2050 PUSH32(esp, ecx); /* 0x25092C07: push ecx */ 2051 ecx = ebp + (-0x94); /* 0x25092C08: lea ecx, [ebp - 0x94] */ 2052 MEM32(ebp + (-0x90)) = edx; /* 0x25092C0E: mov dword ptr [ebp - 0x90], edx */ 2053 MEM32(ebp + (-0x8C)) = eax; /* 0x25092C14: mov dword ptr [ebp - 0x8c], eax */ 2054 RECOMP_ICALL(MEM32(0x25151564)); /* 0x25092C1A: call dword ptr [0x25151564] */ 2055 RECOMP_FLAGS_IN(); 2056 fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x25092C20: fld dword ptr [edi + 0xc] */ 2057 edx = MEM32(eax); /* 0x25092C23: mov edx, dword ptr [eax] */ 2058 _st[0] += _st[0]; /* 0x25092C25: fadd st(0), st(0) */ 2059 MEM32(ebp + (-0x54)) = edx; /* 0x25092C27: mov dword ptr [ebp - 0x54], edx */ 2060 ecx = MEM32(eax + 0x4); /* 0x25092C2A: mov ecx, dword ptr [eax + 4] */ 2061 MEM32(ebp + (-0x50)) = ecx; /* 0x25092C2D: mov dword ptr [ebp - 0x50], ecx */ 2062 edx = MEM32(eax + 0x8); /* 0x25092C30: mov edx, dword ptr [eax + 8] */ 2063 PUSH32(esp, ecx); /* 0x25092C33: push ecx */ 2064 ecx = ebp + (-0x70); /* 0x25092C34: lea ecx, [ebp - 0x70] */ 2065 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x25092C37: fstp dword ptr [esp] */ 2066 MEM32(ebp + (-0x4C)) = edx; /* 0x25092C3A: mov dword ptr [ebp - 0x4c], edx */ 2067 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092C3D: call dword ptr [0x25151510] */ 2068 RECOMP_FLAGS_IN(); 2069 PUSH32(esp, 0x40000000u); /* 0x25092C43: push 0x40000000 */ 2070 ecx = ebp + (-0x54); /* 0x25092C48: lea ecx, [ebp - 0x54] */ 2071 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092C4B: call dword ptr [0x25151510] */ 2072 RECOMP_FLAGS_IN(); 2073 eax = ebp + (-0x70); /* 0x25092C51: lea eax, [ebp - 0x70] */ 2074 PUSH32(esp, eax); /* 0x25092C54: push eax */ 2075 ecx = ebp + (-0x7C); /* 0x25092C55: lea ecx, [ebp - 0x7c] */ 2076 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092C58: call dword ptr [0x251514f8] */ 2077 RECOMP_FLAGS_IN(); 2078 ecx = ebp + (-0x54); /* 0x25092C5E: lea ecx, [ebp - 0x54] */ 2079 PUSH32(esp, ecx); /* 0x25092C61: push ecx */ 2080 ecx = ebp + (-0x7C); /* 0x25092C62: lea ecx, [ebp - 0x7c] */ 2081 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092C65: call dword ptr [0x251514f8] */ 2082 RECOMP_FLAGS_IN(); 2083 fp_push(*(float*)&MEM32(esi)); /* 0x25092C6B: fld dword ptr [esi] */ 2084 _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x25092C6D: fsub dword ptr [ebp - 0x7c] */ 2085 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x25092C70: fstp dword ptr [esi] */ 2086 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x25092C72: fld dword ptr [esi + 4] */ 2087 _st[0] -= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x25092C75: fsub dword ptr [ebp - 0x78] */ 2088 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x25092C78: fstp dword ptr [esi + 4] */ 2089 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x25092C7B: fld dword ptr [esi + 8] */ 2090 _st[0] -= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x25092C7E: fsub dword ptr [ebp - 0x74] */ 2091 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x25092C81: fstp dword ptr [esi + 8] */ 2092 L_25092C84: 2093 SET_LO8(eax, MEM8(ebx + 0x33)); /* 0x25092C84: mov al, byte ptr [ebx + 0x33] */ 2094 /* test LO8(eax), LO8(eax) */ /* 0x25092C87: test al, al */ 2095 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2096 _cf = 0; 2097 _flag_k = FK_NARROW(FK_TEST, 24); 2098 ecx = MEM32(ebp + 0x10); /* 0x25092C89: mov ecx, dword ptr [ebp + 0x10] */ 2099 edi = POP32_VAL(esp); /* 0x25092C8C: pop edi */ 2100 esi = POP32_VAL(esp); /* 0x25092C8D: pop esi */ 2101 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CB4; /* 0x25092C8E: je 0x25092cb4 */ 2102 L_25092C90: 2103 fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x25092C90: fld dword ptr [ebp + 0x18] */ 2104 _st[0] *= (double)*(float*)ADDR(0x25151860); /* 0x25092C93: fmul dword ptr [0x25151860] */ 2105 _st[0] += (double)*(float*)ADDR(ecx); /* 0x25092C99: fadd dword ptr [ecx] */ 2106 fp_push(*(float*)&MEM32(0x25155B98)); /* 0x25092C9B: fld dword ptr [0x25155b98] */ 2107 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x25092CA1: fcomp st(1) */ 2108 fp_pop(); 2109 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092CA3: fnstsw ax */ 2110 /* test HI8(eax), 1 */ /* 0x25092CA5: test ah, 1 */ 2111 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2112 _cf = 0; 2113 _flag_k = FK_NARROW(FK_TEST, 24); 2114 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CB2; /* 0x25092CA8: je 0x25092cb2 */ 2115 L_25092CAA: 2116 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25092CAA: fstp st(0) */ 2117 fp_push(*(float*)&MEM32(0x25155B98)); /* 0x25092CAC: fld dword ptr [0x25155b98] */ 2118 L_25092CB2: 2119 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x25092CB2: fstp dword ptr [ecx] */ 2120 L_25092CB4: 2121 SET_LO8(eax, MEM8(ebx + 0x32)); /* 0x25092CB4: mov al, byte ptr [ebx + 0x32] */ 2122 /* test LO8(eax), LO8(eax) */ /* 0x25092CB7: test al, al */ 2123 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2124 _cf = 0; 2125 _flag_k = FK_NARROW(FK_TEST, 24); 2126 ebx = POP32_VAL(esp); /* 0x25092CB9: pop ebx */ 2127 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CE0; /* 0x25092CBA: je 0x25092ce0 */ 2128 L_25092CBC: 2129 fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x25092CBC: fld dword ptr [ebp + 0x18] */ 2130 _st[0] *= (double)*(float*)ADDR(0x25151860); /* 0x25092CBF: fmul dword ptr [0x25151860] */ 2131 _st[0] = (double)*(float*)ADDR(ecx) - _st[0]; /* 0x25092CC5: fsubr dword ptr [ecx] */ 2132 fp_push(*(float*)&MEM32(0x25153518)); /* 0x25092CC7: fld dword ptr [0x25153518] */ 2133 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x25092CCD: fcomp st(1) */ 2134 fp_pop(); 2135 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092CCF: fnstsw ax */ 2136 /* test HI8(eax), 0x41u */ /* 0x25092CD1: test ah, 0x41 */ 2137 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2138 _cf = 0; 2139 _flag_k = FK_NARROW(FK_TEST, 24); 2140 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092CDE; /* 0x25092CD4: jne 0x25092cde */ 2141 L_25092CD6: 2142 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25092CD6: fstp st(0) */ 2143 fp_push(*(float*)&MEM32(0x25153518)); /* 0x25092CD8: fld dword ptr [0x25153518] */ 2144 L_25092CDE: 2145 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x25092CDE: fstp dword ptr [ecx] */ 2146 L_25092CE0: 2147 ecx = MEM32(ebp + (-0xC)); /* 0x25092CE0: mov ecx, dword ptr [ebp - 0xc] */ 2148 MEM32(FS_BASE + (0)) = ecx; /* 0x25092CE3: mov dword ptr fs:[0], ecx */ 2149 esp = ebp; /* 0x25092CEA: mov esp, ebp */ 2150 ebp = POP32_VAL(esp); /* 0x25092CEC: pop ebp */ 2151 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x25092CED: ret 0x14 */ 2152 RECOMP_REGS_OUT(); 2153 } 2154 2155 void sub_250929A0(void) { 2156 int _fpu_cmp = 0; 2157 uint32_t _cf = 0; 2158 int _df = 1; 2159 uint32_t _flag_k = FK_NONE; 2160 uint32_t _flag_a = 0, _flag_b = 0; 2161 uint32_t _itail_tgt = 0; 2162 RECOMP_REGS_LOCALS 2163 RECOMP_ENTER(0x250929A0u); 2164 2165 L_250929A0: 2166 eax = MEM32(ebp + (-0x18)); /* 0x250929A0: mov eax, dword ptr [ebp - 0x18] */ 2167 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x250929A3: mov dword ptr [ebp - 0x14], 0x3f800000 */ 2168 ecx = MEM32(ebp + (-0x14)); /* 0x250929AA: mov ecx, dword ptr [ebp - 0x14] */ 2169 MEM32(ebp + (-0x54)) = eax; /* 0x250929AD: mov dword ptr [ebp - 0x54], eax */ 2170 MEM32(ebp + (-0x1C)) = edx; /* 0x250929B0: mov dword ptr [ebp - 0x1c], edx */ 2171 eax = ebp + (-0x24); /* 0x250929B3: lea eax, [ebp - 0x24] */ 2172 MEM32(ebp + (-0x10)) = 0; /* 0x250929B6: mov dword ptr [ebp - 0x10], 0 */ 2173 edx = MEM32(ebp + (-0x10)); /* 0x250929BD: mov edx, dword ptr [ebp - 0x10] */ 2174 MEM32(ebp + (-0x50)) = ecx; /* 0x250929C0: mov dword ptr [ebp - 0x50], ecx */ 2175 PUSH32(esp, eax); /* 0x250929C3: push eax */ 2176 ecx = ebp + (-0x54); /* 0x250929C4: lea ecx, [ebp - 0x54] */ 2177 MEM32(ebp + (-0x4)) = 0; /* 0x250929C7: mov dword ptr [ebp - 4], 0 */ 2178 MEM32(ebp + (-0x4C)) = edx; /* 0x250929CE: mov dword ptr [ebp - 0x4c], edx */ 2179 RECOMP_ICALL(MEM32(0x25151564)); /* 0x250929D1: call dword ptr [0x25151564] */ 2180 RECOMP_FLAGS_IN(); 2181 ecx = MEM32(eax); /* 0x250929D7: mov ecx, dword ptr [eax] */ 2182 edx = MEM32(eax + 0x4); /* 0x250929D9: mov edx, dword ptr [eax + 4] */ 2183 eax = MEM32(eax + 0x8); /* 0x250929DC: mov eax, dword ptr [eax + 8] */ 2184 MEM32(ebp + (-0x70)) = ecx; /* 0x250929DF: mov dword ptr [ebp - 0x70], ecx */ 2185 PUSH32(esp, 0x3F800000u); /* 0x250929E2: push 0x3f800000 */ 2186 ecx = ebp + (-0x70); /* 0x250929E7: lea ecx, [ebp - 0x70] */ 2187 MEM32(ebp + (-0x6C)) = edx; /* 0x250929EA: mov dword ptr [ebp - 0x6c], edx */ 2188 MEM32(ebp + (-0x68)) = eax; /* 0x250929ED: mov dword ptr [ebp - 0x68], eax */ 2189 RECOMP_ICALL(MEM32(0x25151590)); /* 0x250929F0: call dword ptr [0x25151590] */ 2190 RECOMP_FLAGS_IN(); 2191 ecx = MEM32(eax); /* 0x250929F6: mov ecx, dword ptr [eax] */ 2192 MEM32(ebp + (-0x30)) = ecx; /* 0x250929F8: mov dword ptr [ebp - 0x30], ecx */ 2193 edx = MEM32(eax + 0x4); /* 0x250929FB: mov edx, dword ptr [eax + 4] */ 2194 ecx = MEM32(ebp + (-0x24)); /* 0x250929FE: mov ecx, dword ptr [ebp - 0x24] */ 2195 MEM32(ebp + (-0x2C)) = edx; /* 0x25092A01: mov dword ptr [ebp - 0x2c], edx */ 2196 eax = MEM32(eax + 0x8); /* 0x25092A04: mov eax, dword ptr [eax + 8] */ 2197 edx = MEM32(ebp + (-0x20)); /* 0x25092A07: mov edx, dword ptr [ebp - 0x20] */ 2198 MEM32(ebp + (-0x54)) = ecx; /* 0x25092A0A: mov dword ptr [ebp - 0x54], ecx */ 2199 ecx = ebp + (-0x30); /* 0x25092A0D: lea ecx, [ebp - 0x30] */ 2200 MEM32(ebp + (-0x28)) = eax; /* 0x25092A10: mov dword ptr [ebp - 0x28], eax */ 2201 eax = MEM32(ebp + (-0x1C)); /* 0x25092A13: mov eax, dword ptr [ebp - 0x1c] */ 2202 PUSH32(esp, ecx); /* 0x25092A16: push ecx */ 2203 ecx = ebp + (-0x54); /* 0x25092A17: lea ecx, [ebp - 0x54] */ 2204 MEM32(ebp + (-0x50)) = edx; /* 0x25092A1A: mov dword ptr [ebp - 0x50], edx */ 2205 MEM32(ebp + (-0x4C)) = eax; /* 0x25092A1D: mov dword ptr [ebp - 0x4c], eax */ 2206 RECOMP_ICALL(MEM32(0x25151564)); /* 0x25092A20: call dword ptr [0x25151564] */ 2207 RECOMP_FLAGS_IN(); 2208 edx = MEM32(eax); /* 0x25092A26: mov edx, dword ptr [eax] */ 2209 ecx = MEM32(eax + 0x4); /* 0x25092A28: mov ecx, dword ptr [eax + 4] */ 2210 MEM32(ebp + (-0x18)) = edx; /* 0x25092A2B: mov dword ptr [ebp - 0x18], edx */ 2211 edx = MEM32(eax + 0x8); /* 0x25092A2E: mov edx, dword ptr [eax + 8] */ 2212 eax = MEM32(ebp + (-0x30)); /* 0x25092A31: mov eax, dword ptr [ebp - 0x30] */ 2213 MEM32(ebp + (-0x14)) = ecx; /* 0x25092A34: mov dword ptr [ebp - 0x14], ecx */ 2214 ecx = MEM32(ebp + (-0x2C)); /* 0x25092A37: mov ecx, dword ptr [ebp - 0x2c] */ 2215 MEM32(ebp + (-0xD4)) = eax; /* 0x25092A3A: mov dword ptr [ebp - 0xd4], eax */ 2216 eax = MEM32(ebp + (-0x18)); /* 0x25092A40: mov eax, dword ptr [ebp - 0x18] */ 2217 MEM32(ebp + (-0x10)) = edx; /* 0x25092A43: mov dword ptr [ebp - 0x10], edx */ 2218 edx = MEM32(ebp + (-0x28)); /* 0x25092A46: mov edx, dword ptr [ebp - 0x28] */ 2219 MEM32(ebp + (-0xD0)) = ecx; /* 0x25092A49: mov dword ptr [ebp - 0xd0], ecx */ 2220 ecx = MEM32(ebp + (-0x14)); /* 0x25092A4F: mov ecx, dword ptr [ebp - 0x14] */ 2221 MEM32(ebp + (-0xC4)) = eax; /* 0x25092A52: mov dword ptr [ebp - 0xc4], eax */ 2222 eax = MEM32(ebp + (-0x24)); /* 0x25092A58: mov eax, dword ptr [ebp - 0x24] */ 2223 MEM32(ebp + (-0xCC)) = edx; /* 0x25092A5B: mov dword ptr [ebp - 0xcc], edx */ 2224 edx = MEM32(ebp + (-0x10)); /* 0x25092A61: mov edx, dword ptr [ebp - 0x10] */ 2225 MEM32(ebp + (-0xC0)) = ecx; /* 0x25092A64: mov dword ptr [ebp - 0xc0], ecx */ 2226 ecx = MEM32(ebp + (-0x20)); /* 0x25092A6A: mov ecx, dword ptr [ebp - 0x20] */ 2227 MEM32(ebp + (-0xB4)) = eax; /* 0x25092A6D: mov dword ptr [ebp - 0xb4], eax */ 2228 MEM32(ebp + (-0xBC)) = edx; /* 0x25092A73: mov dword ptr [ebp - 0xbc], edx */ 2229 edx = MEM32(ebp + (-0x1C)); /* 0x25092A79: mov edx, dword ptr [ebp - 0x1c] */ 2230 eax = ebp + (-0xD4); /* 0x25092A7C: lea eax, [ebp - 0xd4] */ 2231 MEM32(ebp + (-0xB0)) = ecx; /* 0x25092A82: mov dword ptr [ebp - 0xb0], ecx */ 2232 PUSH32(esp, eax); /* 0x25092A88: push eax */ 2233 ecx = ebp + (-0x44); /* 0x25092A89: lea ecx, [ebp - 0x44] */ 2234 MEM32(ebp + (-0xAC)) = edx; /* 0x25092A8C: mov dword ptr [ebp - 0xac], edx */ 2235 RECOMP_ICALL(MEM32(0x25151574)); /* 0x25092A92: call dword ptr [0x25151574] */ 2236 RECOMP_FLAGS_IN(); 2237 edx = MEM32(eax); /* 0x25092A98: mov edx, dword ptr [eax] */ 2238 ecx = edi; /* 0x25092A9A: mov ecx, edi */ 2239 MEM32(ecx) = edx; /* 0x25092A9C: mov dword ptr [ecx], edx */ 2240 edx = MEM32(eax + 0x4); /* 0x25092A9E: mov edx, dword ptr [eax + 4] */ 2241 MEM32(ecx + 0x4) = edx; /* 0x25092AA1: mov dword ptr [ecx + 4], edx */ 2242 edx = MEM32(eax + 0x8); /* 0x25092AA4: mov edx, dword ptr [eax + 8] */ 2243 MEM32(ecx + 0x8) = edx; /* 0x25092AA7: mov dword ptr [ecx + 8], edx */ 2244 eax = MEM32(eax + 0xC); /* 0x25092AAA: mov eax, dword ptr [eax + 0xc] */ 2245 MEM32(ecx + 0xC) = eax; /* 0x25092AAD: mov dword ptr [ecx + 0xc], eax */ 2246 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25092AB0: mov dword ptr [ebp - 4], 0xffffffff */ 2247 SET_LO8(eax, MEM8(ebx + 0x34)); /* 0x25092AB7: mov al, byte ptr [ebx + 0x34] */ 2248 /* test LO8(eax), LO8(eax) */ /* 0x25092ABA: test al, al */ 2249 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2250 _cf = 0; 2251 _flag_k = FK_NARROW(FK_TEST, 24); 2252 if (TEST_Z(_flag_a, _flag_b)) goto L_25092B83; /* 0x25092ABC: je 0x25092b83 */ 2253 L_25092AC2: 2254 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25092AC2: fld dword ptr [ebp - 0x34] */ 2255 MEM32(ebp + (-0x18)) = 0; /* 0x25092AC5: mov dword ptr [ebp - 0x18], 0 */ 2256 ecx = MEM32(ebp + (-0x18)); /* 0x25092ACC: mov ecx, dword ptr [ebp - 0x18] */ 2257 _st[0] *= (double)*(float*)ADDR(0x25154110); /* 0x25092ACF: fmul dword ptr [0x25154110] */ 2258 MEM32(ebp + (-0x14)) = 0; /* 0x25092AD5: mov dword ptr [ebp - 0x14], 0 */ 2259 edx = MEM32(ebp + (-0x14)); /* 0x25092ADC: mov edx, dword ptr [ebp - 0x14] */ 2260 MEM32(ebp + (-0x24)) = ecx; /* 0x25092ADF: mov dword ptr [ebp - 0x24], ecx */ 2261 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x25092AE2: fstp dword ptr [ebp - 0x10] */ 2262 eax = MEM32(ebp + (-0x10)); /* 0x25092AE5: mov eax, dword ptr [ebp - 0x10] */ 2263 ecx = ebp + (-0x24); /* 0x25092AE8: lea ecx, [ebp - 0x24] */ 2264 MEM32(ebp + (-0x20)) = edx; /* 0x25092AEB: mov dword ptr [ebp - 0x20], edx */ 2265 PUSH32(esp, ecx); /* 0x25092AEE: push ecx */ 2266 edx = ebp + (-0x60); /* 0x25092AEF: lea edx, [ebp - 0x60] */ 2267 PUSH32(esp, edx); /* 0x25092AF2: push edx */ 2268 ecx = edi; /* 0x25092AF3: mov ecx, edi */ 2269 MEM32(ebp + (-0x1C)) = eax; /* 0x25092AF5: mov dword ptr [ebp - 0x1c], eax */ 2270 RECOMP_ICALL(MEM32(0x25151570)); /* 0x25092AF8: call dword ptr [0x25151570] */ 2271 RECOMP_FLAGS_IN(); 2272 ecx = MEM32(eax); /* 0x25092AFE: mov ecx, dword ptr [eax] */ 2273 MEM32(ebp + (-0x18)) = ecx; /* 0x25092B00: mov dword ptr [ebp - 0x18], ecx */ 2274 edx = MEM32(eax + 0x4); /* 0x25092B03: mov edx, dword ptr [eax + 4] */ 2275 MEM32(ebp + (-0x14)) = edx; /* 0x25092B06: mov dword ptr [ebp - 0x14], edx */ 2276 eax = MEM32(eax + 0x8); /* 0x25092B09: mov eax, dword ptr [eax + 8] */ 2277 ecx = ebp + (-0x18); /* 0x25092B0C: lea ecx, [ebp - 0x18] */ 2278 PUSH32(esp, ecx); /* 0x25092B0F: push ecx */ 2279 edx = ebp + (-0x40); /* 0x25092B10: lea edx, [ebp - 0x40] */ 2280 PUSH32(esp, edx); /* 0x25092B13: push edx */ 2281 ecx = edi; /* 0x25092B14: mov ecx, edi */ 2282 MEM32(ebp + (-0x10)) = eax; /* 0x25092B16: mov dword ptr [ebp - 0x10], eax */ 2283 RECOMP_ICALL(MEM32(0x25151570)); /* 0x25092B19: call dword ptr [0x25151570] */ 2284 RECOMP_FLAGS_IN(); 2285 fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x25092B1F: fld dword ptr [edi + 0xc] */ 2286 ecx = MEM32(eax); /* 0x25092B22: mov ecx, dword ptr [eax] */ 2287 _st[0] += _st[0]; /* 0x25092B24: fadd st(0), st(0) */ 2288 MEM32(ebp + (-0x30)) = ecx; /* 0x25092B26: mov dword ptr [ebp - 0x30], ecx */ 2289 edx = MEM32(eax + 0x4); /* 0x25092B29: mov edx, dword ptr [eax + 4] */ 2290 MEM32(ebp + (-0x2C)) = edx; /* 0x25092B2C: mov dword ptr [ebp - 0x2c], edx */ 2291 eax = MEM32(eax + 0x8); /* 0x25092B2F: mov eax, dword ptr [eax + 8] */ 2292 PUSH32(esp, ecx); /* 0x25092B32: push ecx */ 2293 ecx = ebp + (-0x18); /* 0x25092B33: lea ecx, [ebp - 0x18] */ 2294 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x25092B36: fstp dword ptr [esp] */ 2295 MEM32(ebp + (-0x28)) = eax; /* 0x25092B39: mov dword ptr [ebp - 0x28], eax */ 2296 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092B3C: call dword ptr [0x25151510] */ 2297 RECOMP_FLAGS_IN(); 2298 PUSH32(esp, 0x40000000u); /* 0x25092B42: push 0x40000000 */ 2299 ecx = ebp + (-0x30); /* 0x25092B47: lea ecx, [ebp - 0x30] */ 2300 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092B4A: call dword ptr [0x25151510] */ 2301 RECOMP_FLAGS_IN(); 2302 ecx = ebp + (-0x18); /* 0x25092B50: lea ecx, [ebp - 0x18] */ 2303 PUSH32(esp, ecx); /* 0x25092B53: push ecx */ 2304 ecx = ebp + (-0x24); /* 0x25092B54: lea ecx, [ebp - 0x24] */ 2305 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092B57: call dword ptr [0x251514f8] */ 2306 RECOMP_FLAGS_IN(); 2307 edx = ebp + (-0x30); /* 0x25092B5D: lea edx, [ebp - 0x30] */ 2308 PUSH32(esp, edx); /* 0x25092B60: push edx */ 2309 ecx = ebp + (-0x24); /* 0x25092B61: lea ecx, [ebp - 0x24] */ 2310 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092B64: call dword ptr [0x251514f8] */ 2311 RECOMP_FLAGS_IN(); 2312 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x25092B6A: fld dword ptr [ebp - 0x24] */ 2313 _st[0] += (double)*(float*)ADDR(esi); /* 0x25092B6D: fadd dword ptr [esi] */ 2314 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x25092B6F: fstp dword ptr [esi] */ 2315 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x25092B71: fld dword ptr [ebp - 0x20] */ 2316 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x25092B74: fadd dword ptr [esi + 4] */ 2317 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x25092B77: fstp dword ptr [esi + 4] */ 2318 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x25092B7A: fld dword ptr [ebp - 0x1c] */ 2319 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x25092B7D: fadd dword ptr [esi + 8] */ 2320 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x25092B80: fstp dword ptr [esi + 8] */ 2321 L_25092B83: 2322 SET_LO8(eax, MEM8(ebx + 0x37)); /* 0x25092B83: mov al, byte ptr [ebx + 0x37] */ 2323 /* test LO8(eax), LO8(eax) */ /* 0x25092B86: test al, al */ 2324 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2325 _cf = 0; 2326 _flag_k = FK_NARROW(FK_TEST, 24); 2327 if (TEST_Z(_flag_a, _flag_b)) goto L_25092C84; /* 0x25092B88: je 0x25092c84 */ 2328 L_25092B8E: 2329 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25092B8E: fld dword ptr [ebp - 0x34] */ 2330 MEM32(ebp + (-0x18)) = 0; /* 0x25092B91: mov dword ptr [ebp - 0x18], 0 */ 2331 eax = MEM32(ebp + (-0x18)); /* 0x25092B98: mov eax, dword ptr [ebp - 0x18] */ 2332 _st[0] *= (double)*(float*)ADDR(0x25154110); /* 0x25092B9B: fmul dword ptr [0x25154110] */ 2333 MEM32(ebp + (-0x7C)) = eax; /* 0x25092BA1: mov dword ptr [ebp - 0x7c], eax */ 2334 MEM32(ebp + (-0x14)) = 0; /* 0x25092BA4: mov dword ptr [ebp - 0x14], 0 */ 2335 ecx = MEM32(ebp + (-0x14)); /* 0x25092BAB: mov ecx, dword ptr [ebp - 0x14] */ 2336 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x25092BAE: fstp dword ptr [ebp - 0x10] */ 2337 edx = MEM32(ebp + (-0x10)); /* 0x25092BB1: mov edx, dword ptr [ebp - 0x10] */ 2338 MEM32(ebp + (-0x78)) = ecx; /* 0x25092BB4: mov dword ptr [ebp - 0x78], ecx */ 2339 eax = edi; /* 0x25092BB7: mov eax, edi */ 2340 ecx = MEM32(eax); /* 0x25092BB9: mov ecx, dword ptr [eax] */ 2341 MEM32(ebp + (-0x88)) = ecx; /* 0x25092BBB: mov dword ptr [ebp - 0x88], ecx */ 2342 MEM32(ebp + (-0x74)) = edx; /* 0x25092BC1: mov dword ptr [ebp - 0x74], edx */ 2343 edx = MEM32(eax + 0x4); /* 0x25092BC4: mov edx, dword ptr [eax + 4] */ 2344 eax = MEM32(eax + 0x8); /* 0x25092BC7: mov eax, dword ptr [eax + 8] */ 2345 ecx = ebp + (-0x7C); /* 0x25092BCA: lea ecx, [ebp - 0x7c] */ 2346 PUSH32(esp, ecx); /* 0x25092BCD: push ecx */ 2347 ecx = ebp + (-0x88); /* 0x25092BCE: lea ecx, [ebp - 0x88] */ 2348 MEM32(ebp + (-0x84)) = edx; /* 0x25092BD4: mov dword ptr [ebp - 0x84], edx */ 2349 MEM32(ebp + (-0x80)) = eax; /* 0x25092BDA: mov dword ptr [ebp - 0x80], eax */ 2350 RECOMP_ICALL(MEM32(0x25151564)); /* 0x25092BDD: call dword ptr [0x25151564] */ 2351 RECOMP_FLAGS_IN(); 2352 edx = MEM32(eax); /* 0x25092BE3: mov edx, dword ptr [eax] */ 2353 MEM32(ebp + (-0x70)) = edx; /* 0x25092BE5: mov dword ptr [ebp - 0x70], edx */ 2354 ecx = MEM32(eax + 0x4); /* 0x25092BE8: mov ecx, dword ptr [eax + 4] */ 2355 MEM32(ebp + (-0x6C)) = ecx; /* 0x25092BEB: mov dword ptr [ebp - 0x6c], ecx */ 2356 edx = MEM32(eax + 0x8); /* 0x25092BEE: mov edx, dword ptr [eax + 8] */ 2357 eax = edi; /* 0x25092BF1: mov eax, edi */ 2358 ecx = MEM32(eax); /* 0x25092BF3: mov ecx, dword ptr [eax] */ 2359 MEM32(ebp + (-0x94)) = ecx; /* 0x25092BF5: mov dword ptr [ebp - 0x94], ecx */ 2360 MEM32(ebp + (-0x68)) = edx; /* 0x25092BFB: mov dword ptr [ebp - 0x68], edx */ 2361 edx = MEM32(eax + 0x4); /* 0x25092BFE: mov edx, dword ptr [eax + 4] */ 2362 eax = MEM32(eax + 0x8); /* 0x25092C01: mov eax, dword ptr [eax + 8] */ 2363 ecx = ebp + (-0x70); /* 0x25092C04: lea ecx, [ebp - 0x70] */ 2364 PUSH32(esp, ecx); /* 0x25092C07: push ecx */ 2365 ecx = ebp + (-0x94); /* 0x25092C08: lea ecx, [ebp - 0x94] */ 2366 MEM32(ebp + (-0x90)) = edx; /* 0x25092C0E: mov dword ptr [ebp - 0x90], edx */ 2367 MEM32(ebp + (-0x8C)) = eax; /* 0x25092C14: mov dword ptr [ebp - 0x8c], eax */ 2368 RECOMP_ICALL(MEM32(0x25151564)); /* 0x25092C1A: call dword ptr [0x25151564] */ 2369 RECOMP_FLAGS_IN(); 2370 fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x25092C20: fld dword ptr [edi + 0xc] */ 2371 edx = MEM32(eax); /* 0x25092C23: mov edx, dword ptr [eax] */ 2372 _st[0] += _st[0]; /* 0x25092C25: fadd st(0), st(0) */ 2373 MEM32(ebp + (-0x54)) = edx; /* 0x25092C27: mov dword ptr [ebp - 0x54], edx */ 2374 ecx = MEM32(eax + 0x4); /* 0x25092C2A: mov ecx, dword ptr [eax + 4] */ 2375 MEM32(ebp + (-0x50)) = ecx; /* 0x25092C2D: mov dword ptr [ebp - 0x50], ecx */ 2376 edx = MEM32(eax + 0x8); /* 0x25092C30: mov edx, dword ptr [eax + 8] */ 2377 PUSH32(esp, ecx); /* 0x25092C33: push ecx */ 2378 ecx = ebp + (-0x70); /* 0x25092C34: lea ecx, [ebp - 0x70] */ 2379 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x25092C37: fstp dword ptr [esp] */ 2380 MEM32(ebp + (-0x4C)) = edx; /* 0x25092C3A: mov dword ptr [ebp - 0x4c], edx */ 2381 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092C3D: call dword ptr [0x25151510] */ 2382 RECOMP_FLAGS_IN(); 2383 PUSH32(esp, 0x40000000u); /* 0x25092C43: push 0x40000000 */ 2384 ecx = ebp + (-0x54); /* 0x25092C48: lea ecx, [ebp - 0x54] */ 2385 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092C4B: call dword ptr [0x25151510] */ 2386 RECOMP_FLAGS_IN(); 2387 eax = ebp + (-0x70); /* 0x25092C51: lea eax, [ebp - 0x70] */ 2388 PUSH32(esp, eax); /* 0x25092C54: push eax */ 2389 ecx = ebp + (-0x7C); /* 0x25092C55: lea ecx, [ebp - 0x7c] */ 2390 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092C58: call dword ptr [0x251514f8] */ 2391 RECOMP_FLAGS_IN(); 2392 ecx = ebp + (-0x54); /* 0x25092C5E: lea ecx, [ebp - 0x54] */ 2393 PUSH32(esp, ecx); /* 0x25092C61: push ecx */ 2394 ecx = ebp + (-0x7C); /* 0x25092C62: lea ecx, [ebp - 0x7c] */ 2395 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092C65: call dword ptr [0x251514f8] */ 2396 RECOMP_FLAGS_IN(); 2397 fp_push(*(float*)&MEM32(esi)); /* 0x25092C6B: fld dword ptr [esi] */ 2398 _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x25092C6D: fsub dword ptr [ebp - 0x7c] */ 2399 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x25092C70: fstp dword ptr [esi] */ 2400 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x25092C72: fld dword ptr [esi + 4] */ 2401 _st[0] -= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x25092C75: fsub dword ptr [ebp - 0x78] */ 2402 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x25092C78: fstp dword ptr [esi + 4] */ 2403 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x25092C7B: fld dword ptr [esi + 8] */ 2404 _st[0] -= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x25092C7E: fsub dword ptr [ebp - 0x74] */ 2405 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x25092C81: fstp dword ptr [esi + 8] */ 2406 L_25092C84: 2407 SET_LO8(eax, MEM8(ebx + 0x33)); /* 0x25092C84: mov al, byte ptr [ebx + 0x33] */ 2408 /* test LO8(eax), LO8(eax) */ /* 0x25092C87: test al, al */ 2409 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2410 _cf = 0; 2411 _flag_k = FK_NARROW(FK_TEST, 24); 2412 ecx = MEM32(ebp + 0x10); /* 0x25092C89: mov ecx, dword ptr [ebp + 0x10] */ 2413 edi = POP32_VAL(esp); /* 0x25092C8C: pop edi */ 2414 esi = POP32_VAL(esp); /* 0x25092C8D: pop esi */ 2415 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CB4; /* 0x25092C8E: je 0x25092cb4 */ 2416 L_25092C90: 2417 fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x25092C90: fld dword ptr [ebp + 0x18] */ 2418 _st[0] *= (double)*(float*)ADDR(0x25151860); /* 0x25092C93: fmul dword ptr [0x25151860] */ 2419 _st[0] += (double)*(float*)ADDR(ecx); /* 0x25092C99: fadd dword ptr [ecx] */ 2420 fp_push(*(float*)&MEM32(0x25155B98)); /* 0x25092C9B: fld dword ptr [0x25155b98] */ 2421 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x25092CA1: fcomp st(1) */ 2422 fp_pop(); 2423 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092CA3: fnstsw ax */ 2424 /* test HI8(eax), 1 */ /* 0x25092CA5: test ah, 1 */ 2425 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2426 _cf = 0; 2427 _flag_k = FK_NARROW(FK_TEST, 24); 2428 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CB2; /* 0x25092CA8: je 0x25092cb2 */ 2429 L_25092CAA: 2430 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25092CAA: fstp st(0) */ 2431 fp_push(*(float*)&MEM32(0x25155B98)); /* 0x25092CAC: fld dword ptr [0x25155b98] */ 2432 L_25092CB2: 2433 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x25092CB2: fstp dword ptr [ecx] */ 2434 L_25092CB4: 2435 SET_LO8(eax, MEM8(ebx + 0x32)); /* 0x25092CB4: mov al, byte ptr [ebx + 0x32] */ 2436 /* test LO8(eax), LO8(eax) */ /* 0x25092CB7: test al, al */ 2437 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2438 _cf = 0; 2439 _flag_k = FK_NARROW(FK_TEST, 24); 2440 ebx = POP32_VAL(esp); /* 0x25092CB9: pop ebx */ 2441 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CE0; /* 0x25092CBA: je 0x25092ce0 */ 2442 L_25092CBC: 2443 fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x25092CBC: fld dword ptr [ebp + 0x18] */ 2444 _st[0] *= (double)*(float*)ADDR(0x25151860); /* 0x25092CBF: fmul dword ptr [0x25151860] */ 2445 _st[0] = (double)*(float*)ADDR(ecx) - _st[0]; /* 0x25092CC5: fsubr dword ptr [ecx] */ 2446 fp_push(*(float*)&MEM32(0x25153518)); /* 0x25092CC7: fld dword ptr [0x25153518] */ 2447 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x25092CCD: fcomp st(1) */ 2448 fp_pop(); 2449 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092CCF: fnstsw ax */ 2450 /* test HI8(eax), 0x41u */ /* 0x25092CD1: test ah, 0x41 */ 2451 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2452 _cf = 0; 2453 _flag_k = FK_NARROW(FK_TEST, 24); 2454 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092CDE; /* 0x25092CD4: jne 0x25092cde */ 2455 L_25092CD6: 2456 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25092CD6: fstp st(0) */ 2457 fp_push(*(float*)&MEM32(0x25153518)); /* 0x25092CD8: fld dword ptr [0x25153518] */ 2458 L_25092CDE: 2459 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x25092CDE: fstp dword ptr [ecx] */ 2460 L_25092CE0: 2461 ecx = MEM32(ebp + (-0xC)); /* 0x25092CE0: mov ecx, dword ptr [ebp - 0xc] */ 2462 MEM32(FS_BASE + (0)) = ecx; /* 0x25092CE3: mov dword ptr fs:[0], ecx */ 2463 esp = ebp; /* 0x25092CEA: mov esp, ebp */ 2464 ebp = POP32_VAL(esp); /* 0x25092CEC: pop ebp */ 2465 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x25092CED: ret 0x14 */ 2466 RECOMP_REGS_OUT(); 2467 } 2468 2469 void sub_25092ACC(void) { 2470 int _fpu_cmp = 0; 2471 uint32_t _cf = 0; 2472 int _df = 1; 2473 uint32_t _flag_k = FK_NONE; 2474 uint32_t _flag_a = 0, _flag_b = 0; 2475 uint32_t _itail_tgt = 0; 2476 RECOMP_REGS_LOCALS 2477 RECOMP_ENTER(0x25092ACCu); 2478 2479 L_25092ACC: 2480 ecx = MEM32(ebp + (-0x18)); /* 0x25092ACC: mov ecx, dword ptr [ebp - 0x18] */ 2481 _st[0] *= (double)*(float*)ADDR(0x25154110); /* 0x25092ACF: fmul dword ptr [0x25154110] */ 2482 MEM32(ebp + (-0x14)) = 0; /* 0x25092AD5: mov dword ptr [ebp - 0x14], 0 */ 2483 edx = MEM32(ebp + (-0x14)); /* 0x25092ADC: mov edx, dword ptr [ebp - 0x14] */ 2484 MEM32(ebp + (-0x24)) = ecx; /* 0x25092ADF: mov dword ptr [ebp - 0x24], ecx */ 2485 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x25092AE2: fstp dword ptr [ebp - 0x10] */ 2486 eax = MEM32(ebp + (-0x10)); /* 0x25092AE5: mov eax, dword ptr [ebp - 0x10] */ 2487 ecx = ebp + (-0x24); /* 0x25092AE8: lea ecx, [ebp - 0x24] */ 2488 MEM32(ebp + (-0x20)) = edx; /* 0x25092AEB: mov dword ptr [ebp - 0x20], edx */ 2489 PUSH32(esp, ecx); /* 0x25092AEE: push ecx */ 2490 edx = ebp + (-0x60); /* 0x25092AEF: lea edx, [ebp - 0x60] */ 2491 PUSH32(esp, edx); /* 0x25092AF2: push edx */ 2492 ecx = edi; /* 0x25092AF3: mov ecx, edi */ 2493 MEM32(ebp + (-0x1C)) = eax; /* 0x25092AF5: mov dword ptr [ebp - 0x1c], eax */ 2494 RECOMP_ICALL(MEM32(0x25151570)); /* 0x25092AF8: call dword ptr [0x25151570] */ 2495 RECOMP_FLAGS_IN(); 2496 ecx = MEM32(eax); /* 0x25092AFE: mov ecx, dword ptr [eax] */ 2497 MEM32(ebp + (-0x18)) = ecx; /* 0x25092B00: mov dword ptr [ebp - 0x18], ecx */ 2498 edx = MEM32(eax + 0x4); /* 0x25092B03: mov edx, dword ptr [eax + 4] */ 2499 MEM32(ebp + (-0x14)) = edx; /* 0x25092B06: mov dword ptr [ebp - 0x14], edx */ 2500 eax = MEM32(eax + 0x8); /* 0x25092B09: mov eax, dword ptr [eax + 8] */ 2501 ecx = ebp + (-0x18); /* 0x25092B0C: lea ecx, [ebp - 0x18] */ 2502 PUSH32(esp, ecx); /* 0x25092B0F: push ecx */ 2503 edx = ebp + (-0x40); /* 0x25092B10: lea edx, [ebp - 0x40] */ 2504 PUSH32(esp, edx); /* 0x25092B13: push edx */ 2505 ecx = edi; /* 0x25092B14: mov ecx, edi */ 2506 MEM32(ebp + (-0x10)) = eax; /* 0x25092B16: mov dword ptr [ebp - 0x10], eax */ 2507 RECOMP_ICALL(MEM32(0x25151570)); /* 0x25092B19: call dword ptr [0x25151570] */ 2508 RECOMP_FLAGS_IN(); 2509 fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x25092B1F: fld dword ptr [edi + 0xc] */ 2510 ecx = MEM32(eax); /* 0x25092B22: mov ecx, dword ptr [eax] */ 2511 _st[0] += _st[0]; /* 0x25092B24: fadd st(0), st(0) */ 2512 MEM32(ebp + (-0x30)) = ecx; /* 0x25092B26: mov dword ptr [ebp - 0x30], ecx */ 2513 edx = MEM32(eax + 0x4); /* 0x25092B29: mov edx, dword ptr [eax + 4] */ 2514 MEM32(ebp + (-0x2C)) = edx; /* 0x25092B2C: mov dword ptr [ebp - 0x2c], edx */ 2515 eax = MEM32(eax + 0x8); /* 0x25092B2F: mov eax, dword ptr [eax + 8] */ 2516 PUSH32(esp, ecx); /* 0x25092B32: push ecx */ 2517 ecx = ebp + (-0x18); /* 0x25092B33: lea ecx, [ebp - 0x18] */ 2518 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x25092B36: fstp dword ptr [esp] */ 2519 MEM32(ebp + (-0x28)) = eax; /* 0x25092B39: mov dword ptr [ebp - 0x28], eax */ 2520 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092B3C: call dword ptr [0x25151510] */ 2521 RECOMP_FLAGS_IN(); 2522 PUSH32(esp, 0x40000000u); /* 0x25092B42: push 0x40000000 */ 2523 ecx = ebp + (-0x30); /* 0x25092B47: lea ecx, [ebp - 0x30] */ 2524 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092B4A: call dword ptr [0x25151510] */ 2525 RECOMP_FLAGS_IN(); 2526 ecx = ebp + (-0x18); /* 0x25092B50: lea ecx, [ebp - 0x18] */ 2527 PUSH32(esp, ecx); /* 0x25092B53: push ecx */ 2528 ecx = ebp + (-0x24); /* 0x25092B54: lea ecx, [ebp - 0x24] */ 2529 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092B57: call dword ptr [0x251514f8] */ 2530 RECOMP_FLAGS_IN(); 2531 edx = ebp + (-0x30); /* 0x25092B5D: lea edx, [ebp - 0x30] */ 2532 PUSH32(esp, edx); /* 0x25092B60: push edx */ 2533 ecx = ebp + (-0x24); /* 0x25092B61: lea ecx, [ebp - 0x24] */ 2534 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092B64: call dword ptr [0x251514f8] */ 2535 RECOMP_FLAGS_IN(); 2536 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x25092B6A: fld dword ptr [ebp - 0x24] */ 2537 _st[0] += (double)*(float*)ADDR(esi); /* 0x25092B6D: fadd dword ptr [esi] */ 2538 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x25092B6F: fstp dword ptr [esi] */ 2539 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x25092B71: fld dword ptr [ebp - 0x20] */ 2540 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x25092B74: fadd dword ptr [esi + 4] */ 2541 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x25092B77: fstp dword ptr [esi + 4] */ 2542 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x25092B7A: fld dword ptr [ebp - 0x1c] */ 2543 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x25092B7D: fadd dword ptr [esi + 8] */ 2544 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x25092B80: fstp dword ptr [esi + 8] */ 2545 SET_LO8(eax, MEM8(ebx + 0x37)); /* 0x25092B83: mov al, byte ptr [ebx + 0x37] */ 2546 /* test LO8(eax), LO8(eax) */ /* 0x25092B86: test al, al */ 2547 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2548 _cf = 0; 2549 _flag_k = FK_NARROW(FK_TEST, 24); 2550 if (TEST_Z(_flag_a, _flag_b)) goto L_25092C84; /* 0x25092B88: je 0x25092c84 */ 2551 L_25092B8E: 2552 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25092B8E: fld dword ptr [ebp - 0x34] */ 2553 MEM32(ebp + (-0x18)) = 0; /* 0x25092B91: mov dword ptr [ebp - 0x18], 0 */ 2554 eax = MEM32(ebp + (-0x18)); /* 0x25092B98: mov eax, dword ptr [ebp - 0x18] */ 2555 _st[0] *= (double)*(float*)ADDR(0x25154110); /* 0x25092B9B: fmul dword ptr [0x25154110] */ 2556 MEM32(ebp + (-0x7C)) = eax; /* 0x25092BA1: mov dword ptr [ebp - 0x7c], eax */ 2557 MEM32(ebp + (-0x14)) = 0; /* 0x25092BA4: mov dword ptr [ebp - 0x14], 0 */ 2558 ecx = MEM32(ebp + (-0x14)); /* 0x25092BAB: mov ecx, dword ptr [ebp - 0x14] */ 2559 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x25092BAE: fstp dword ptr [ebp - 0x10] */ 2560 edx = MEM32(ebp + (-0x10)); /* 0x25092BB1: mov edx, dword ptr [ebp - 0x10] */ 2561 MEM32(ebp + (-0x78)) = ecx; /* 0x25092BB4: mov dword ptr [ebp - 0x78], ecx */ 2562 eax = edi; /* 0x25092BB7: mov eax, edi */ 2563 ecx = MEM32(eax); /* 0x25092BB9: mov ecx, dword ptr [eax] */ 2564 MEM32(ebp + (-0x88)) = ecx; /* 0x25092BBB: mov dword ptr [ebp - 0x88], ecx */ 2565 MEM32(ebp + (-0x74)) = edx; /* 0x25092BC1: mov dword ptr [ebp - 0x74], edx */ 2566 edx = MEM32(eax + 0x4); /* 0x25092BC4: mov edx, dword ptr [eax + 4] */ 2567 eax = MEM32(eax + 0x8); /* 0x25092BC7: mov eax, dword ptr [eax + 8] */ 2568 ecx = ebp + (-0x7C); /* 0x25092BCA: lea ecx, [ebp - 0x7c] */ 2569 PUSH32(esp, ecx); /* 0x25092BCD: push ecx */ 2570 ecx = ebp + (-0x88); /* 0x25092BCE: lea ecx, [ebp - 0x88] */ 2571 MEM32(ebp + (-0x84)) = edx; /* 0x25092BD4: mov dword ptr [ebp - 0x84], edx */ 2572 MEM32(ebp + (-0x80)) = eax; /* 0x25092BDA: mov dword ptr [ebp - 0x80], eax */ 2573 RECOMP_ICALL(MEM32(0x25151564)); /* 0x25092BDD: call dword ptr [0x25151564] */ 2574 RECOMP_FLAGS_IN(); 2575 edx = MEM32(eax); /* 0x25092BE3: mov edx, dword ptr [eax] */ 2576 MEM32(ebp + (-0x70)) = edx; /* 0x25092BE5: mov dword ptr [ebp - 0x70], edx */ 2577 ecx = MEM32(eax + 0x4); /* 0x25092BE8: mov ecx, dword ptr [eax + 4] */ 2578 MEM32(ebp + (-0x6C)) = ecx; /* 0x25092BEB: mov dword ptr [ebp - 0x6c], ecx */ 2579 edx = MEM32(eax + 0x8); /* 0x25092BEE: mov edx, dword ptr [eax + 8] */ 2580 eax = edi; /* 0x25092BF1: mov eax, edi */ 2581 ecx = MEM32(eax); /* 0x25092BF3: mov ecx, dword ptr [eax] */ 2582 MEM32(ebp + (-0x94)) = ecx; /* 0x25092BF5: mov dword ptr [ebp - 0x94], ecx */ 2583 MEM32(ebp + (-0x68)) = edx; /* 0x25092BFB: mov dword ptr [ebp - 0x68], edx */ 2584 edx = MEM32(eax + 0x4); /* 0x25092BFE: mov edx, dword ptr [eax + 4] */ 2585 eax = MEM32(eax + 0x8); /* 0x25092C01: mov eax, dword ptr [eax + 8] */ 2586 ecx = ebp + (-0x70); /* 0x25092C04: lea ecx, [ebp - 0x70] */ 2587 PUSH32(esp, ecx); /* 0x25092C07: push ecx */ 2588 ecx = ebp + (-0x94); /* 0x25092C08: lea ecx, [ebp - 0x94] */ 2589 MEM32(ebp + (-0x90)) = edx; /* 0x25092C0E: mov dword ptr [ebp - 0x90], edx */ 2590 MEM32(ebp + (-0x8C)) = eax; /* 0x25092C14: mov dword ptr [ebp - 0x8c], eax */ 2591 RECOMP_ICALL(MEM32(0x25151564)); /* 0x25092C1A: call dword ptr [0x25151564] */ 2592 RECOMP_FLAGS_IN(); 2593 fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x25092C20: fld dword ptr [edi + 0xc] */ 2594 edx = MEM32(eax); /* 0x25092C23: mov edx, dword ptr [eax] */ 2595 _st[0] += _st[0]; /* 0x25092C25: fadd st(0), st(0) */ 2596 MEM32(ebp + (-0x54)) = edx; /* 0x25092C27: mov dword ptr [ebp - 0x54], edx */ 2597 ecx = MEM32(eax + 0x4); /* 0x25092C2A: mov ecx, dword ptr [eax + 4] */ 2598 MEM32(ebp + (-0x50)) = ecx; /* 0x25092C2D: mov dword ptr [ebp - 0x50], ecx */ 2599 edx = MEM32(eax + 0x8); /* 0x25092C30: mov edx, dword ptr [eax + 8] */ 2600 PUSH32(esp, ecx); /* 0x25092C33: push ecx */ 2601 ecx = ebp + (-0x70); /* 0x25092C34: lea ecx, [ebp - 0x70] */ 2602 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x25092C37: fstp dword ptr [esp] */ 2603 MEM32(ebp + (-0x4C)) = edx; /* 0x25092C3A: mov dword ptr [ebp - 0x4c], edx */ 2604 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092C3D: call dword ptr [0x25151510] */ 2605 RECOMP_FLAGS_IN(); 2606 PUSH32(esp, 0x40000000u); /* 0x25092C43: push 0x40000000 */ 2607 ecx = ebp + (-0x54); /* 0x25092C48: lea ecx, [ebp - 0x54] */ 2608 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092C4B: call dword ptr [0x25151510] */ 2609 RECOMP_FLAGS_IN(); 2610 eax = ebp + (-0x70); /* 0x25092C51: lea eax, [ebp - 0x70] */ 2611 PUSH32(esp, eax); /* 0x25092C54: push eax */ 2612 ecx = ebp + (-0x7C); /* 0x25092C55: lea ecx, [ebp - 0x7c] */ 2613 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092C58: call dword ptr [0x251514f8] */ 2614 RECOMP_FLAGS_IN(); 2615 ecx = ebp + (-0x54); /* 0x25092C5E: lea ecx, [ebp - 0x54] */ 2616 PUSH32(esp, ecx); /* 0x25092C61: push ecx */ 2617 ecx = ebp + (-0x7C); /* 0x25092C62: lea ecx, [ebp - 0x7c] */ 2618 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092C65: call dword ptr [0x251514f8] */ 2619 RECOMP_FLAGS_IN(); 2620 fp_push(*(float*)&MEM32(esi)); /* 0x25092C6B: fld dword ptr [esi] */ 2621 _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x25092C6D: fsub dword ptr [ebp - 0x7c] */ 2622 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x25092C70: fstp dword ptr [esi] */ 2623 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x25092C72: fld dword ptr [esi + 4] */ 2624 _st[0] -= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x25092C75: fsub dword ptr [ebp - 0x78] */ 2625 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x25092C78: fstp dword ptr [esi + 4] */ 2626 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x25092C7B: fld dword ptr [esi + 8] */ 2627 _st[0] -= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x25092C7E: fsub dword ptr [ebp - 0x74] */ 2628 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x25092C81: fstp dword ptr [esi + 8] */ 2629 L_25092C84: 2630 SET_LO8(eax, MEM8(ebx + 0x33)); /* 0x25092C84: mov al, byte ptr [ebx + 0x33] */ 2631 /* test LO8(eax), LO8(eax) */ /* 0x25092C87: test al, al */ 2632 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2633 _cf = 0; 2634 _flag_k = FK_NARROW(FK_TEST, 24); 2635 ecx = MEM32(ebp + 0x10); /* 0x25092C89: mov ecx, dword ptr [ebp + 0x10] */ 2636 edi = POP32_VAL(esp); /* 0x25092C8C: pop edi */ 2637 esi = POP32_VAL(esp); /* 0x25092C8D: pop esi */ 2638 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CB4; /* 0x25092C8E: je 0x25092cb4 */ 2639 L_25092C90: 2640 fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x25092C90: fld dword ptr [ebp + 0x18] */ 2641 _st[0] *= (double)*(float*)ADDR(0x25151860); /* 0x25092C93: fmul dword ptr [0x25151860] */ 2642 _st[0] += (double)*(float*)ADDR(ecx); /* 0x25092C99: fadd dword ptr [ecx] */ 2643 fp_push(*(float*)&MEM32(0x25155B98)); /* 0x25092C9B: fld dword ptr [0x25155b98] */ 2644 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x25092CA1: fcomp st(1) */ 2645 fp_pop(); 2646 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092CA3: fnstsw ax */ 2647 /* test HI8(eax), 1 */ /* 0x25092CA5: test ah, 1 */ 2648 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2649 _cf = 0; 2650 _flag_k = FK_NARROW(FK_TEST, 24); 2651 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CB2; /* 0x25092CA8: je 0x25092cb2 */ 2652 L_25092CAA: 2653 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25092CAA: fstp st(0) */ 2654 fp_push(*(float*)&MEM32(0x25155B98)); /* 0x25092CAC: fld dword ptr [0x25155b98] */ 2655 L_25092CB2: 2656 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x25092CB2: fstp dword ptr [ecx] */ 2657 L_25092CB4: 2658 SET_LO8(eax, MEM8(ebx + 0x32)); /* 0x25092CB4: mov al, byte ptr [ebx + 0x32] */ 2659 /* test LO8(eax), LO8(eax) */ /* 0x25092CB7: test al, al */ 2660 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2661 _cf = 0; 2662 _flag_k = FK_NARROW(FK_TEST, 24); 2663 ebx = POP32_VAL(esp); /* 0x25092CB9: pop ebx */ 2664 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CE0; /* 0x25092CBA: je 0x25092ce0 */ 2665 L_25092CBC: 2666 fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x25092CBC: fld dword ptr [ebp + 0x18] */ 2667 _st[0] *= (double)*(float*)ADDR(0x25151860); /* 0x25092CBF: fmul dword ptr [0x25151860] */ 2668 _st[0] = (double)*(float*)ADDR(ecx) - _st[0]; /* 0x25092CC5: fsubr dword ptr [ecx] */ 2669 fp_push(*(float*)&MEM32(0x25153518)); /* 0x25092CC7: fld dword ptr [0x25153518] */ 2670 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x25092CCD: fcomp st(1) */ 2671 fp_pop(); 2672 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092CCF: fnstsw ax */ 2673 /* test HI8(eax), 0x41u */ /* 0x25092CD1: test ah, 0x41 */ 2674 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2675 _cf = 0; 2676 _flag_k = FK_NARROW(FK_TEST, 24); 2677 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092CDE; /* 0x25092CD4: jne 0x25092cde */ 2678 L_25092CD6: 2679 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25092CD6: fstp st(0) */ 2680 fp_push(*(float*)&MEM32(0x25153518)); /* 0x25092CD8: fld dword ptr [0x25153518] */ 2681 L_25092CDE: 2682 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x25092CDE: fstp dword ptr [ecx] */ 2683 L_25092CE0: 2684 ecx = MEM32(ebp + (-0xC)); /* 0x25092CE0: mov ecx, dword ptr [ebp - 0xc] */ 2685 MEM32(FS_BASE + (0)) = ecx; /* 0x25092CE3: mov dword ptr fs:[0], ecx */ 2686 esp = ebp; /* 0x25092CEA: mov esp, ebp */ 2687 ebp = POP32_VAL(esp); /* 0x25092CEC: pop ebp */ 2688 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x25092CED: ret 0x14 */ 2689 RECOMP_REGS_OUT(); 2690 } 2691 2692 void sub_25092B98(void) { 2693 int _fpu_cmp = 0; 2694 uint32_t _cf = 0; 2695 int _df = 1; 2696 uint32_t _flag_k = FK_NONE; 2697 uint32_t _flag_a = 0, _flag_b = 0; 2698 uint32_t _itail_tgt = 0; 2699 RECOMP_REGS_LOCALS 2700 RECOMP_ENTER(0x25092B98u); 2701 2702 L_25092B98: 2703 eax = MEM32(ebp + (-0x18)); /* 0x25092B98: mov eax, dword ptr [ebp - 0x18] */ 2704 _st[0] *= (double)*(float*)ADDR(0x25154110); /* 0x25092B9B: fmul dword ptr [0x25154110] */ 2705 MEM32(ebp + (-0x7C)) = eax; /* 0x25092BA1: mov dword ptr [ebp - 0x7c], eax */ 2706 MEM32(ebp + (-0x14)) = 0; /* 0x25092BA4: mov dword ptr [ebp - 0x14], 0 */ 2707 ecx = MEM32(ebp + (-0x14)); /* 0x25092BAB: mov ecx, dword ptr [ebp - 0x14] */ 2708 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x25092BAE: fstp dword ptr [ebp - 0x10] */ 2709 edx = MEM32(ebp + (-0x10)); /* 0x25092BB1: mov edx, dword ptr [ebp - 0x10] */ 2710 MEM32(ebp + (-0x78)) = ecx; /* 0x25092BB4: mov dword ptr [ebp - 0x78], ecx */ 2711 eax = edi; /* 0x25092BB7: mov eax, edi */ 2712 ecx = MEM32(eax); /* 0x25092BB9: mov ecx, dword ptr [eax] */ 2713 MEM32(ebp + (-0x88)) = ecx; /* 0x25092BBB: mov dword ptr [ebp - 0x88], ecx */ 2714 MEM32(ebp + (-0x74)) = edx; /* 0x25092BC1: mov dword ptr [ebp - 0x74], edx */ 2715 edx = MEM32(eax + 0x4); /* 0x25092BC4: mov edx, dword ptr [eax + 4] */ 2716 eax = MEM32(eax + 0x8); /* 0x25092BC7: mov eax, dword ptr [eax + 8] */ 2717 ecx = ebp + (-0x7C); /* 0x25092BCA: lea ecx, [ebp - 0x7c] */ 2718 PUSH32(esp, ecx); /* 0x25092BCD: push ecx */ 2719 ecx = ebp + (-0x88); /* 0x25092BCE: lea ecx, [ebp - 0x88] */ 2720 MEM32(ebp + (-0x84)) = edx; /* 0x25092BD4: mov dword ptr [ebp - 0x84], edx */ 2721 MEM32(ebp + (-0x80)) = eax; /* 0x25092BDA: mov dword ptr [ebp - 0x80], eax */ 2722 RECOMP_ICALL(MEM32(0x25151564)); /* 0x25092BDD: call dword ptr [0x25151564] */ 2723 RECOMP_FLAGS_IN(); 2724 edx = MEM32(eax); /* 0x25092BE3: mov edx, dword ptr [eax] */ 2725 MEM32(ebp + (-0x70)) = edx; /* 0x25092BE5: mov dword ptr [ebp - 0x70], edx */ 2726 ecx = MEM32(eax + 0x4); /* 0x25092BE8: mov ecx, dword ptr [eax + 4] */ 2727 MEM32(ebp + (-0x6C)) = ecx; /* 0x25092BEB: mov dword ptr [ebp - 0x6c], ecx */ 2728 edx = MEM32(eax + 0x8); /* 0x25092BEE: mov edx, dword ptr [eax + 8] */ 2729 eax = edi; /* 0x25092BF1: mov eax, edi */ 2730 ecx = MEM32(eax); /* 0x25092BF3: mov ecx, dword ptr [eax] */ 2731 MEM32(ebp + (-0x94)) = ecx; /* 0x25092BF5: mov dword ptr [ebp - 0x94], ecx */ 2732 MEM32(ebp + (-0x68)) = edx; /* 0x25092BFB: mov dword ptr [ebp - 0x68], edx */ 2733 edx = MEM32(eax + 0x4); /* 0x25092BFE: mov edx, dword ptr [eax + 4] */ 2734 eax = MEM32(eax + 0x8); /* 0x25092C01: mov eax, dword ptr [eax + 8] */ 2735 ecx = ebp + (-0x70); /* 0x25092C04: lea ecx, [ebp - 0x70] */ 2736 PUSH32(esp, ecx); /* 0x25092C07: push ecx */ 2737 ecx = ebp + (-0x94); /* 0x25092C08: lea ecx, [ebp - 0x94] */ 2738 MEM32(ebp + (-0x90)) = edx; /* 0x25092C0E: mov dword ptr [ebp - 0x90], edx */ 2739 MEM32(ebp + (-0x8C)) = eax; /* 0x25092C14: mov dword ptr [ebp - 0x8c], eax */ 2740 RECOMP_ICALL(MEM32(0x25151564)); /* 0x25092C1A: call dword ptr [0x25151564] */ 2741 RECOMP_FLAGS_IN(); 2742 fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x25092C20: fld dword ptr [edi + 0xc] */ 2743 edx = MEM32(eax); /* 0x25092C23: mov edx, dword ptr [eax] */ 2744 _st[0] += _st[0]; /* 0x25092C25: fadd st(0), st(0) */ 2745 MEM32(ebp + (-0x54)) = edx; /* 0x25092C27: mov dword ptr [ebp - 0x54], edx */ 2746 ecx = MEM32(eax + 0x4); /* 0x25092C2A: mov ecx, dword ptr [eax + 4] */ 2747 MEM32(ebp + (-0x50)) = ecx; /* 0x25092C2D: mov dword ptr [ebp - 0x50], ecx */ 2748 edx = MEM32(eax + 0x8); /* 0x25092C30: mov edx, dword ptr [eax + 8] */ 2749 PUSH32(esp, ecx); /* 0x25092C33: push ecx */ 2750 ecx = ebp + (-0x70); /* 0x25092C34: lea ecx, [ebp - 0x70] */ 2751 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x25092C37: fstp dword ptr [esp] */ 2752 MEM32(ebp + (-0x4C)) = edx; /* 0x25092C3A: mov dword ptr [ebp - 0x4c], edx */ 2753 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092C3D: call dword ptr [0x25151510] */ 2754 RECOMP_FLAGS_IN(); 2755 PUSH32(esp, 0x40000000u); /* 0x25092C43: push 0x40000000 */ 2756 ecx = ebp + (-0x54); /* 0x25092C48: lea ecx, [ebp - 0x54] */ 2757 RECOMP_ICALL(MEM32(0x25151510)); /* 0x25092C4B: call dword ptr [0x25151510] */ 2758 RECOMP_FLAGS_IN(); 2759 eax = ebp + (-0x70); /* 0x25092C51: lea eax, [ebp - 0x70] */ 2760 PUSH32(esp, eax); /* 0x25092C54: push eax */ 2761 ecx = ebp + (-0x7C); /* 0x25092C55: lea ecx, [ebp - 0x7c] */ 2762 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092C58: call dword ptr [0x251514f8] */ 2763 RECOMP_FLAGS_IN(); 2764 ecx = ebp + (-0x54); /* 0x25092C5E: lea ecx, [ebp - 0x54] */ 2765 PUSH32(esp, ecx); /* 0x25092C61: push ecx */ 2766 ecx = ebp + (-0x7C); /* 0x25092C62: lea ecx, [ebp - 0x7c] */ 2767 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25092C65: call dword ptr [0x251514f8] */ 2768 RECOMP_FLAGS_IN(); 2769 fp_push(*(float*)&MEM32(esi)); /* 0x25092C6B: fld dword ptr [esi] */ 2770 _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x25092C6D: fsub dword ptr [ebp - 0x7c] */ 2771 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x25092C70: fstp dword ptr [esi] */ 2772 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x25092C72: fld dword ptr [esi + 4] */ 2773 _st[0] -= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x25092C75: fsub dword ptr [ebp - 0x78] */ 2774 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x25092C78: fstp dword ptr [esi + 4] */ 2775 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x25092C7B: fld dword ptr [esi + 8] */ 2776 _st[0] -= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x25092C7E: fsub dword ptr [ebp - 0x74] */ 2777 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x25092C81: fstp dword ptr [esi + 8] */ 2778 SET_LO8(eax, MEM8(ebx + 0x33)); /* 0x25092C84: mov al, byte ptr [ebx + 0x33] */ 2779 /* test LO8(eax), LO8(eax) */ /* 0x25092C87: test al, al */ 2780 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2781 _cf = 0; 2782 _flag_k = FK_NARROW(FK_TEST, 24); 2783 ecx = MEM32(ebp + 0x10); /* 0x25092C89: mov ecx, dword ptr [ebp + 0x10] */ 2784 edi = POP32_VAL(esp); /* 0x25092C8C: pop edi */ 2785 esi = POP32_VAL(esp); /* 0x25092C8D: pop esi */ 2786 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CB4; /* 0x25092C8E: je 0x25092cb4 */ 2787 L_25092C90: 2788 fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x25092C90: fld dword ptr [ebp + 0x18] */ 2789 _st[0] *= (double)*(float*)ADDR(0x25151860); /* 0x25092C93: fmul dword ptr [0x25151860] */ 2790 _st[0] += (double)*(float*)ADDR(ecx); /* 0x25092C99: fadd dword ptr [ecx] */ 2791 fp_push(*(float*)&MEM32(0x25155B98)); /* 0x25092C9B: fld dword ptr [0x25155b98] */ 2792 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x25092CA1: fcomp st(1) */ 2793 fp_pop(); 2794 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092CA3: fnstsw ax */ 2795 /* test HI8(eax), 1 */ /* 0x25092CA5: test ah, 1 */ 2796 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2797 _cf = 0; 2798 _flag_k = FK_NARROW(FK_TEST, 24); 2799 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CB2; /* 0x25092CA8: je 0x25092cb2 */ 2800 L_25092CAA: 2801 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25092CAA: fstp st(0) */ 2802 fp_push(*(float*)&MEM32(0x25155B98)); /* 0x25092CAC: fld dword ptr [0x25155b98] */ 2803 L_25092CB2: 2804 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x25092CB2: fstp dword ptr [ecx] */ 2805 L_25092CB4: 2806 SET_LO8(eax, MEM8(ebx + 0x32)); /* 0x25092CB4: mov al, byte ptr [ebx + 0x32] */ 2807 /* test LO8(eax), LO8(eax) */ /* 0x25092CB7: test al, al */ 2808 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2809 _cf = 0; 2810 _flag_k = FK_NARROW(FK_TEST, 24); 2811 ebx = POP32_VAL(esp); /* 0x25092CB9: pop ebx */ 2812 if (TEST_Z(_flag_a, _flag_b)) goto L_25092CE0; /* 0x25092CBA: je 0x25092ce0 */ 2813 L_25092CBC: 2814 fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x25092CBC: fld dword ptr [ebp + 0x18] */ 2815 _st[0] *= (double)*(float*)ADDR(0x25151860); /* 0x25092CBF: fmul dword ptr [0x25151860] */ 2816 _st[0] = (double)*(float*)ADDR(ecx) - _st[0]; /* 0x25092CC5: fsubr dword ptr [ecx] */ 2817 fp_push(*(float*)&MEM32(0x25153518)); /* 0x25092CC7: fld dword ptr [0x25153518] */ 2818 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x25092CCD: fcomp st(1) */ 2819 fp_pop(); 2820 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092CCF: fnstsw ax */ 2821 /* test HI8(eax), 0x41u */ /* 0x25092CD1: test ah, 0x41 */ 2822 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2823 _cf = 0; 2824 _flag_k = FK_NARROW(FK_TEST, 24); 2825 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092CDE; /* 0x25092CD4: jne 0x25092cde */ 2826 L_25092CD6: 2827 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25092CD6: fstp st(0) */ 2828 fp_push(*(float*)&MEM32(0x25153518)); /* 0x25092CD8: fld dword ptr [0x25153518] */ 2829 L_25092CDE: 2830 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x25092CDE: fstp dword ptr [ecx] */ 2831 L_25092CE0: 2832 ecx = MEM32(ebp + (-0xC)); /* 0x25092CE0: mov ecx, dword ptr [ebp - 0xc] */ 2833 MEM32(FS_BASE + (0)) = ecx; /* 0x25092CE3: mov dword ptr fs:[0], ecx */ 2834 esp = ebp; /* 0x25092CEA: mov esp, ebp */ 2835 ebp = POP32_VAL(esp); /* 0x25092CEC: pop ebp */ 2836 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x25092CED: ret 0x14 */ 2837 RECOMP_REGS_OUT(); 2838 } 2839 2840 void sub_25092CF0(void) { 2841 int _fpu_cmp = 0; 2842 uint32_t _cf = 0; 2843 int _df = 1; 2844 uint32_t _flag_k = FK_NONE; 2845 uint32_t _flag_a = 0, _flag_b = 0; 2846 uint32_t _itail_tgt = 0; 2847 RECOMP_REGS_LOCALS 2848 RECOMP_ENTER(0x25092CF0u); 2849 2850 L_25092CF0: 2851 PUSH32(esp, ebp); /* 0x25092CF0: push ebp */ 2852 ebp = esp; /* 0x25092CF1: mov ebp, esp */ 2853 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x60u); 2854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2855 esp = esp - 0x60u; /* 0x25092CF3: sub esp, 0x60 */ 2856 _flag_k = FK_CMP; 2857 PUSH32(esp, ebx); /* 0x25092CF6: push ebx */ 2858 PUSH32(esp, esi); /* 0x25092CF7: push esi */ 2859 esi = MEM32(ebp + 0x14); /* 0x25092CF8: mov esi, dword ptr [ebp + 0x14] */ 2860 eax = MEM32(esi + 0x18); /* 0x25092CFB: mov eax, dword ptr [esi + 0x18] */ 2861 PUSH32(esp, edi); /* 0x25092CFE: push edi */ 2862 edi = ecx; /* 0x25092CFF: mov edi, ecx */ 2863 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8000u); 2864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2865 eax = eax - 0x8000u; /* 0x25092D01: sub eax, 0x8000 */ 2866 _flag_k = FK_CMP; 2867 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2868 ecx = 0; /* 0x25092D06: xor ecx, ecx */ 2869 _cf = 0; 2870 _flag_k = FK_TEST; 2871 /* cmp eax, ecx */ /* 0x25092D08: cmp eax, ecx */ 2872 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2874 _flag_k = FK_CMP; 2875 MEM32(ebp + 0x14) = eax; /* 0x25092D0A: mov dword ptr [ebp + 0x14], eax */ 2876 if (CMP_LE(_flag_a, _flag_b)) goto L_25092D16; /* 0x25092D0D: jle 0x25092d16 */ 2877 L_25092D0F: 2878 /* cmp eax, 3 */ /* 0x25092D0F: cmp eax, 3 */ 2879 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 2880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2881 _flag_k = FK_CMP; 2882 if (CMP_L(_flag_a, _flag_b)) goto L_25092D1D; /* 0x25092D12: jl 0x25092d1d */ 2883 L_25092D14: 2884 /* cmp eax, ecx */ /* 0x25092D14: cmp eax, ecx */ 2885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2887 _flag_k = FK_CMP; 2888 L_25092D16: 2889 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_25092D20; /* 0x25092D16: jge 0x25092d20 */ 2890 L_25092D18: 2891 /* cmp eax, 0xFFFFFFFDu */ /* 0x25092D18: cmp eax, -3 */ 2892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 2893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2894 _flag_k = FK_CMP; 2895 if (CMP_LE(_flag_a, _flag_b)) goto L_25092D20; /* 0x25092D1B: jle 0x25092d20 */ 2896 L_25092D1D: 2897 MEM32(ebp + 0x14) = ecx; /* 0x25092D1D: mov dword ptr [ebp + 0x14], ecx */ 2898 L_25092D20: 2899 eax = MEM32(esi + 0x1C); /* 0x25092D20: mov eax, dword ptr [esi + 0x1c] */ 2900 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8000u); 2901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2902 eax = eax - 0x8000u; /* 0x25092D23: sub eax, 0x8000 */ 2903 _flag_k = FK_CMP; 2904 /* cmp eax, ecx */ /* 0x25092D28: cmp eax, ecx */ 2905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2907 _flag_k = FK_CMP; 2908 MEM32(ebp + (-0x4)) = eax; /* 0x25092D2A: mov dword ptr [ebp - 4], eax */ 2909 if (CMP_LE(_flag_a, _flag_b)) goto L_25092D36; /* 0x25092D2D: jle 0x25092d36 */ 2910 L_25092D2F: 2911 /* cmp eax, 3 */ /* 0x25092D2F: cmp eax, 3 */ 2912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 2913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2914 _flag_k = FK_CMP; 2915 if (CMP_L(_flag_a, _flag_b)) goto L_25092D3D; /* 0x25092D32: jl 0x25092d3d */ 2916 L_25092D34: 2917 /* cmp eax, ecx */ /* 0x25092D34: cmp eax, ecx */ 2918 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2920 _flag_k = FK_CMP; 2921 L_25092D36: 2922 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_25092D40; /* 0x25092D36: jge 0x25092d40 */ 2923 L_25092D38: 2924 /* cmp eax, 0xFFFFFFFDu */ /* 0x25092D38: cmp eax, -3 */ 2925 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 2926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2927 _flag_k = FK_CMP; 2928 if (CMP_LE(_flag_a, _flag_b)) goto L_25092D40; /* 0x25092D3B: jle 0x25092d40 */ 2929 L_25092D3D: 2930 MEM32(ebp + (-0x4)) = ecx; /* 0x25092D3D: mov dword ptr [ebp - 4], ecx */ 2931 L_25092D40: 2932 eax = MEM32(esi + 0x8); /* 0x25092D40: mov eax, dword ptr [esi + 8] */ 2933 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8000u); 2934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2935 eax = eax - 0x8000u; /* 0x25092D43: sub eax, 0x8000 */ 2936 _flag_k = FK_CMP; 2937 /* cmp eax, ecx */ /* 0x25092D48: cmp eax, ecx */ 2938 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2940 _flag_k = FK_CMP; 2941 MEM32(ebp + (-0x8)) = eax; /* 0x25092D4A: mov dword ptr [ebp - 8], eax */ 2942 if (CMP_LE(_flag_a, _flag_b)) goto L_25092D56; /* 0x25092D4D: jle 0x25092d56 */ 2943 L_25092D4F: 2944 /* cmp eax, 3 */ /* 0x25092D4F: cmp eax, 3 */ 2945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 2946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2947 _flag_k = FK_CMP; 2948 if (CMP_L(_flag_a, _flag_b)) goto L_25092D5D; /* 0x25092D52: jl 0x25092d5d */ 2949 L_25092D54: 2950 /* cmp eax, ecx */ /* 0x25092D54: cmp eax, ecx */ 2951 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2953 _flag_k = FK_CMP; 2954 L_25092D56: 2955 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_25092D60; /* 0x25092D56: jge 0x25092d60 */ 2956 L_25092D58: 2957 /* cmp eax, 0xFFFFFFFDu */ /* 0x25092D58: cmp eax, -3 */ 2958 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 2959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2960 _flag_k = FK_CMP; 2961 if (CMP_LE(_flag_a, _flag_b)) goto L_25092D60; /* 0x25092D5B: jle 0x25092d60 */ 2962 L_25092D5D: 2963 MEM32(ebp + (-0x8)) = ecx; /* 0x25092D5D: mov dword ptr [ebp - 8], ecx */ 2964 L_25092D60: 2965 eax = MEM32(esi + 0x4); /* 0x25092D60: mov eax, dword ptr [esi + 4] */ 2966 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8000u); 2967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2968 eax = eax - 0x8000u; /* 0x25092D63: sub eax, 0x8000 */ 2969 _flag_k = FK_CMP; 2970 /* cmp eax, ecx */ /* 0x25092D68: cmp eax, ecx */ 2971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2973 _flag_k = FK_CMP; 2974 MEM32(ebp + (-0xC)) = eax; /* 0x25092D6A: mov dword ptr [ebp - 0xc], eax */ 2975 if (CMP_LE(_flag_a, _flag_b)) goto L_25092D76; /* 0x25092D6D: jle 0x25092d76 */ 2976 L_25092D6F: 2977 /* cmp eax, 3 */ /* 0x25092D6F: cmp eax, 3 */ 2978 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 2979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2980 _flag_k = FK_CMP; 2981 if (CMP_L(_flag_a, _flag_b)) goto L_25092D7D; /* 0x25092D72: jl 0x25092d7d */ 2982 L_25092D74: 2983 /* cmp eax, ecx */ /* 0x25092D74: cmp eax, ecx */ 2984 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2986 _flag_k = FK_CMP; 2987 L_25092D76: 2988 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_25092D80; /* 0x25092D76: jge 0x25092d80 */ 2989 L_25092D78: 2990 /* cmp eax, 0xFFFFFFFDu */ /* 0x25092D78: cmp eax, -3 */ 2991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 2992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2993 _flag_k = FK_CMP; 2994 if (CMP_LE(_flag_a, _flag_b)) goto L_25092D80; /* 0x25092D7B: jle 0x25092d80 */ 2995 L_25092D7D: 2996 MEM32(ebp + (-0xC)) = ecx; /* 0x25092D7D: mov dword ptr [ebp - 0xc], ecx */ 2997 L_25092D80: 2998 eax = MEM32(esi + 0x14); /* 0x25092D80: mov eax, dword ptr [esi + 0x14] */ 2999 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8000u); 3000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3001 eax = eax - 0x8000u; /* 0x25092D83: sub eax, 0x8000 */ 3002 _flag_k = FK_CMP; 3003 /* cmp eax, ecx */ /* 0x25092D88: cmp eax, ecx */ 3004 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3006 _flag_k = FK_CMP; 3007 MEM32(ebp + (-0x10)) = eax; /* 0x25092D8A: mov dword ptr [ebp - 0x10], eax */ 3008 if (CMP_LE(_flag_a, _flag_b)) goto L_25092D96; /* 0x25092D8D: jle 0x25092d96 */ 3009 L_25092D8F: 3010 /* cmp eax, 3 */ /* 0x25092D8F: cmp eax, 3 */ 3011 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 3012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3013 _flag_k = FK_CMP; 3014 if (CMP_L(_flag_a, _flag_b)) goto L_25092D9D; /* 0x25092D92: jl 0x25092d9d */ 3015 L_25092D94: 3016 /* cmp eax, ecx */ /* 0x25092D94: cmp eax, ecx */ 3017 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3019 _flag_k = FK_CMP; 3020 L_25092D96: 3021 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_25092DA0; /* 0x25092D96: jge 0x25092da0 */ 3022 L_25092D98: 3023 /* cmp eax, 0xFFFFFFFDu */ /* 0x25092D98: cmp eax, -3 */ 3024 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 3025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3026 _flag_k = FK_CMP; 3027 if (CMP_LE(_flag_a, _flag_b)) goto L_25092DA0; /* 0x25092D9B: jle 0x25092da0 */ 3028 L_25092D9D: 3029 MEM32(ebp + (-0x10)) = ecx; /* 0x25092D9D: mov dword ptr [ebp - 0x10], ecx */ 3030 L_25092DA0: 3031 eax = MEM32(esi); /* 0x25092DA0: mov eax, dword ptr [esi] */ 3032 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8000u); 3033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3034 eax = eax - 0x8000u; /* 0x25092DA2: sub eax, 0x8000 */ 3035 _flag_k = FK_CMP; 3036 /* cmp eax, ecx */ /* 0x25092DA7: cmp eax, ecx */ 3037 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3039 _flag_k = FK_CMP; 3040 MEM32(ebp + (-0x14)) = eax; /* 0x25092DA9: mov dword ptr [ebp - 0x14], eax */ 3041 if (CMP_LE(_flag_a, _flag_b)) goto L_25092DB5; /* 0x25092DAC: jle 0x25092db5 */ 3042 L_25092DAE: 3043 /* cmp eax, 3 */ /* 0x25092DAE: cmp eax, 3 */ 3044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 3045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3046 _flag_k = FK_CMP; 3047 if (CMP_L(_flag_a, _flag_b)) goto L_25092DBC; /* 0x25092DB1: jl 0x25092dbc */ 3048 L_25092DB3: 3049 /* cmp eax, ecx */ /* 0x25092DB3: cmp eax, ecx */ 3050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3052 _flag_k = FK_CMP; 3053 L_25092DB5: 3054 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_25092DBF; /* 0x25092DB5: jge 0x25092dbf */ 3055 L_25092DB7: 3056 /* cmp eax, 0xFFFFFFFDu */ /* 0x25092DB7: cmp eax, -3 */ 3057 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 3058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3059 _flag_k = FK_CMP; 3060 if (CMP_LE(_flag_a, _flag_b)) goto L_25092DBF; /* 0x25092DBA: jle 0x25092dbf */ 3061 L_25092DBC: 3062 MEM32(ebp + (-0x14)) = ecx; /* 0x25092DBC: mov dword ptr [ebp - 0x14], ecx */ 3063 L_25092DBF: 3064 fp_push((double)(int32_t)MEM32(ebp + 0x14)); /* 0x25092DBF: fild dword ptr [ebp + 0x14] */ 3065 ebx = MEM32(ebp + 0xC); /* 0x25092DC2: mov ebx, dword ptr [ebp + 0xc] */ 3066 PUSH32(esp, ebx); /* 0x25092DC5: push ebx */ 3067 _st[0] *= (double)*(float*)ADDR(0x25155BA8); /* 0x25092DC6: fmul dword ptr [0x25155ba8] */ 3068 _st[0] *= (double)*(float*)ADDR(edi + 0x30); /* 0x25092DCC: fmul dword ptr [edi + 0x30] */ 3069 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x25092DCF: fmul dword ptr [ebp + 0x18] */ 3070 _st[0] *= (double)*(float*)ADDR(0x25151F1C); /* 0x25092DD2: fmul dword ptr [0x25151f1c] */ 3071 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x25092DD8: fstp dword ptr [ebp - 0x2c] */ 3072 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x25092DDB: fild dword ptr [ebp - 4] */ 3073 eax = MEM32(ebp + (-0x2C)); /* 0x25092DDE: mov eax, dword ptr [ebp - 0x2c] */ 3074 MEM32(ebp + (-0x3C)) = eax; /* 0x25092DE1: mov dword ptr [ebp - 0x3c], eax */ 3075 _st[0] *= (double)*(float*)ADDR(0x25155BA8); /* 0x25092DE4: fmul dword ptr [0x25155ba8] */ 3076 _st[0] *= (double)*(float*)ADDR(edi + 0x30); /* 0x25092DEA: fmul dword ptr [edi + 0x30] */ 3077 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x25092DED: fmul dword ptr [ebp + 0x18] */ 3078 _st[0] *= (double)*(float*)ADDR(0x25151F1C); /* 0x25092DF0: fmul dword ptr [0x25151f1c] */ 3079 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x25092DF6: fstp dword ptr [ebp - 0x28] */ 3080 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x25092DF9: fild dword ptr [ebp - 8] */ 3081 ecx = MEM32(ebp + (-0x28)); /* 0x25092DFC: mov ecx, dword ptr [ebp - 0x28] */ 3082 MEM32(ebp + (-0x38)) = ecx; /* 0x25092DFF: mov dword ptr [ebp - 0x38], ecx */ 3083 ecx = ebp + (-0x3C); /* 0x25092E02: lea ecx, [ebp - 0x3c] */ 3084 _st[0] *= (double)*(float*)ADDR(0x25155BA8); /* 0x25092E05: fmul dword ptr [0x25155ba8] */ 3085 _st[0] = -_st[0]; /* 0x25092E0B: fchs */ 3086 _st[0] *= (double)*(float*)ADDR(edi + 0x30); /* 0x25092E0D: fmul dword ptr [edi + 0x30] */ 3087 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x25092E10: fmul dword ptr [ebp + 0x18] */ 3088 _st[0] *= (double)*(float*)ADDR(0x25151F1C); /* 0x25092E13: fmul dword ptr [0x25151f1c] */ 3089 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x25092E19: fstp dword ptr [ebp - 0x24] */ 3090 edx = MEM32(ebp + (-0x24)); /* 0x25092E1C: mov edx, dword ptr [ebp - 0x24] */ 3091 MEM32(ebp + (-0x34)) = edx; /* 0x25092E1F: mov dword ptr [ebp - 0x34], edx */ 3092 RECOMP_ICALL(MEM32(0x2515157C)); /* 0x25092E22: call dword ptr [0x2515157c] */ 3093 RECOMP_FLAGS_IN(); 3094 ecx = MEM32(eax); /* 0x25092E28: mov ecx, dword ptr [eax] */ 3095 edx = MEM32(eax + 0x4); /* 0x25092E2A: mov edx, dword ptr [eax + 4] */ 3096 eax = MEM32(eax + 0x8); /* 0x25092E2D: mov eax, dword ptr [eax + 8] */ 3097 MEM32(ebp + (-0x2C)) = ecx; /* 0x25092E30: mov dword ptr [ebp - 0x2c], ecx */ 3098 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x25092E33: fld dword ptr [ebp - 0x2c] */ 3099 MEM32(ebp + (-0x24)) = eax; /* 0x25092E36: mov dword ptr [ebp - 0x24], eax */ 3100 eax = MEM32(ebp + 0x8); /* 0x25092E39: mov eax, dword ptr [ebp + 8] */ 3101 _st[0] += (double)*(float*)ADDR(eax); /* 0x25092E3C: fadd dword ptr [eax] */ 3102 MEM32(ebp + (-0x28)) = edx; /* 0x25092E3E: mov dword ptr [ebp - 0x28], edx */ 3103 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x25092E41: fstp dword ptr [eax] */ 3104 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x25092E43: fld dword ptr [ebp - 0x28] */ 3105 _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x25092E46: fadd dword ptr [eax + 4] */ 3106 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x25092E49: fstp dword ptr [eax + 4] */ 3107 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x25092E4C: fld dword ptr [ebp - 0x24] */ 3108 _st[0] += (double)*(float*)ADDR(eax + 0x8); /* 0x25092E4F: fadd dword ptr [eax + 8] */ 3109 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x25092E52: fstp dword ptr [eax + 8] */ 3110 fp_push((double)(int32_t)MEM32(ebp + (-0xC))); /* 0x25092E55: fild dword ptr [ebp - 0xc] */ 3111 _st[0] *= (double)*(float*)ADDR(0x25155BA8); /* 0x25092E58: fmul dword ptr [0x25155ba8] */ 3112 _st[0] = -_st[0]; /* 0x25092E5E: fchs */ 3113 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x25092E60: fstp dword ptr [ebp + 0x14] */ 3114 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x25092E63: fild dword ptr [ebp - 0x10] */ 3115 ecx = MEM32(ebp + 0x14); /* 0x25092E66: mov ecx, dword ptr [ebp + 0x14] */ 3116 PUSH32(esp, ecx); /* 0x25092E69: push ecx */ 3117 _st[0] *= (double)*(float*)ADDR(0x25155BA8); /* 0x25092E6A: fmul dword ptr [0x25155ba8] */ 3118 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x25092E70: fstp dword ptr [ebp + 0xc] */ 3119 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x25092E73: fild dword ptr [ebp - 0x14] */ 3120 _st[0] *= (double)*(float*)ADDR(0x25155BA8); /* 0x25092E76: fmul dword ptr [0x25155ba8] */ 3121 _st[0] = -_st[0]; /* 0x25092E7C: fchs */ 3122 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x25092E7E: fstp dword ptr [ebp + 8] */ 3123 RECOMP_ICALL(0x25093240u); /* 0x25092E81: call 0x25093240 */ /* not lifted */ 3124 RECOMP_FLAGS_IN(); 3125 fp_push(*(double*)ADDR(0x25155BB0)); /* 0x25092E86: fld qword ptr [0x25155bb0] */ 3126 RECOMP_ICALL(0x251381A6u); /* 0x25092E8C: call 0x251381a6 */ /* not lifted */ 3127 RECOMP_FLAGS_IN(); 3128 { double _v = fp_pop(); *(double*)ADDR(ebp + (-0x18)) = _v; } /* 0x25092E91: fstp qword ptr [ebp - 0x18] */ 3129 edx = MEM32(ebp + 0x14); /* 0x25092E94: mov edx, dword ptr [ebp + 0x14] */ 3130 PUSH32(esp, edx); /* 0x25092E97: push edx */ 3131 RECOMP_ICALL(0x25093200u); /* 0x25092E98: call 0x25093200 */ /* not lifted */ 3132 RECOMP_FLAGS_IN(); 3133 _st[0] *= *(double*)ADDR(ebp + (-0x18)); /* 0x25092E9D: fmul qword ptr [ebp - 0x18] */ 3134 eax = MEM32(ebp + 0xC); /* 0x25092EA0: mov eax, dword ptr [ebp + 0xc] */ 3135 PUSH32(esp, eax); /* 0x25092EA3: push eax */ 3136 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x25092EA4: fstp dword ptr [ebp + 0x14] */ 3137 RECOMP_ICALL(0x25093240u); /* 0x25092EA7: call 0x25093240 */ /* not lifted */ 3138 RECOMP_FLAGS_IN(); 3139 fp_push(*(double*)ADDR(0x25155BB0)); /* 0x25092EAC: fld qword ptr [0x25155bb0] */ 3140 RECOMP_ICALL(0x251381A6u); /* 0x25092EB2: call 0x251381a6 */ /* not lifted */ 3141 RECOMP_FLAGS_IN(); 3142 { double _v = fp_pop(); *(double*)ADDR(ebp + (-0x18)) = _v; } /* 0x25092EB7: fstp qword ptr [ebp - 0x18] */ 3143 ecx = MEM32(ebp + 0xC); /* 0x25092EBA: mov ecx, dword ptr [ebp + 0xc] */ 3144 PUSH32(esp, ecx); /* 0x25092EBD: push ecx */ 3145 RECOMP_ICALL(0x25093200u); /* 0x25092EBE: call 0x25093200 */ /* not lifted */ 3146 RECOMP_FLAGS_IN(); 3147 _st[0] *= *(double*)ADDR(ebp + (-0x18)); /* 0x25092EC3: fmul qword ptr [ebp - 0x18] */ 3148 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x25092EC6: fld dword ptr [ebp + 0x14] */ 3149 edx = MEM32(ebp + 0x8); /* 0x25092EC9: mov edx, dword ptr [ebp + 8] */ 3150 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x25092ECC: fmul dword ptr [ebp + 0x18] */ 3151 PUSH32(esp, edx); /* 0x25092ECF: push edx */ 3152 _st[0] *= (double)*(float*)ADDR(0x25152C04); /* 0x25092ED0: fmul dword ptr [0x25152c04] */ 3153 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x25092ED6: fstp dword ptr [ebp + 0x14] */ 3154 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x25092ED9: fmul dword ptr [ebp + 0x18] */ 3155 _st[0] *= (double)*(float*)ADDR(0x25152C04); /* 0x25092EDC: fmul dword ptr [0x25152c04] */ 3156 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x25092EE2: fstp dword ptr [ebp + 0xc] */ 3157 RECOMP_ICALL(0x25093240u); /* 0x25092EE5: call 0x25093240 */ /* not lifted */ 3158 RECOMP_FLAGS_IN(); 3159 fp_push(*(double*)ADDR(0x25155BB0)); /* 0x25092EEA: fld qword ptr [0x25155bb0] */ 3160 RECOMP_ICALL(0x251381A6u); /* 0x25092EF0: call 0x251381a6 */ /* not lifted */ 3161 RECOMP_FLAGS_IN(); 3162 { double _v = fp_pop(); *(double*)ADDR(ebp + (-0x18)) = _v; } /* 0x25092EF5: fstp qword ptr [ebp - 0x18] */ 3163 eax = MEM32(ebp + 0x8); /* 0x25092EF8: mov eax, dword ptr [ebp + 8] */ 3164 PUSH32(esp, eax); /* 0x25092EFB: push eax */ 3165 RECOMP_ICALL(0x25093200u); /* 0x25092EFC: call 0x25093200 */ /* not lifted */ 3166 RECOMP_FLAGS_IN(); 3167 _st[0] *= *(double*)ADDR(ebp + (-0x18)); /* 0x25092F01: fmul qword ptr [ebp - 0x18] */ 3168 SET_LO8(eax, MEM8(esi + 0x30)); /* 0x25092F04: mov al, byte ptr [esi + 0x30] */ 3169 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 3170 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3171 esp = esp + 0x18u; /* 0x25092F07: add esp, 0x18 */ 3172 _flag_k = FK_ADD; 3173 /* test LO8(eax), LO8(eax) */ /* 0x25092F0A: test al, al */ 3174 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3175 _cf = 0; 3176 _flag_k = FK_NARROW(FK_TEST, 24); 3177 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x25092F0C: fmul dword ptr [ebp + 0x18] */ 3178 _st[0] *= (double)*(float*)ADDR(0x25152C04); /* 0x25092F0F: fmul dword ptr [0x25152c04] */ 3179 if (TEST_Z(_flag_a, _flag_b)) goto L_25092F25; /* 0x25092F15: je 0x25092f25 */ 3180 L_25092F17: 3181 /* test MEM8(edi + 0x34), 1 */ /* 0x25092F17: test byte ptr [edi + 0x34], 1 */ 3182 _flag_a = (uint32_t)(MEM8(edi + 0x34)) << 24; _flag_b = (uint32_t)(1) << 24; 3183 _cf = 0; 3184 _flag_k = FK_NARROW(FK_TEST, 24); 3185 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092F25; /* 0x25092F1B: jne 0x25092f25 */ 3186 L_25092F1D: 3187 fp_push(*(float*)&MEM32(edi + 0x30)); /* 0x25092F1D: fld dword ptr [edi + 0x30] */ 3188 _st[0] += _st[0]; /* 0x25092F20: fadd st(0), st(0) */ 3189 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x30) = _v; } /* 0x25092F22: fstp dword ptr [edi + 0x30] */ 3190 L_25092F25: 3191 SET_LO8(eax, MEM8(esi + 0x31)); /* 0x25092F25: mov al, byte ptr [esi + 0x31] */ 3192 /* test LO8(eax), LO8(eax) */ /* 0x25092F28: test al, al */ 3193 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3194 _cf = 0; 3195 _flag_k = FK_NARROW(FK_TEST, 24); 3196 if (TEST_Z(_flag_a, _flag_b)) goto L_25092F3E; /* 0x25092F2A: je 0x25092f3e */ 3197 L_25092F2C: 3198 /* test MEM8(edi + 0x34), 2 */ /* 0x25092F2C: test byte ptr [edi + 0x34], 2 */ 3199 _flag_a = (uint32_t)(MEM8(edi + 0x34)) << 24; _flag_b = (uint32_t)(2) << 24; 3200 _cf = 0; 3201 _flag_k = FK_NARROW(FK_TEST, 24); 3202 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092F3E; /* 0x25092F30: jne 0x25092f3e */ 3203 L_25092F32: 3204 fp_push(*(float*)&MEM32(edi + 0x30)); /* 0x25092F32: fld dword ptr [edi + 0x30] */ 3205 _st[0] *= (double)*(float*)ADDR(0x25151788); /* 0x25092F35: fmul dword ptr [0x25151788] */ 3206 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x30) = _v; } /* 0x25092F3B: fstp dword ptr [edi + 0x30] */ 3207 L_25092F3E: 3208 SET_LO8(ecx, MEM8(esi + 0x30)); /* 0x25092F3E: mov cl, byte ptr [esi + 0x30] */ 3209 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25092F41: fcom dword ptr [0x2515177c] */ 3210 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3211 eax = 0; /* 0x25092F47: xor eax, eax */ 3212 _cf = 0; 3213 _flag_k = FK_TEST; 3214 /* test LO8(ecx), LO8(ecx) */ /* 0x25092F49: test cl, cl */ 3215 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3216 _cf = 0; 3217 _flag_k = FK_NARROW(FK_TEST, 24); 3218 ecx = MEM32(edi + 0x34); /* 0x25092F4B: mov ecx, dword ptr [edi + 0x34] */ 3219 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x25092F4E: setne al */ 3220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFEu); 3221 ecx = ecx & 0xFFFFFFFEu; /* 0x25092F51: and ecx, 0xfffffffe */ 3222 _cf = 0; 3223 _flag_k = FK_TEST; 3224 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 3225 eax = eax | ecx; /* 0x25092F54: or eax, ecx */ 3226 _cf = 0; 3227 _flag_k = FK_TEST; 3228 MEM32(edi + 0x34) = eax; /* 0x25092F56: mov dword ptr [edi + 0x34], eax */ 3229 SET_LO8(edx, MEM8(esi + 0x31)); /* 0x25092F59: mov dl, byte ptr [esi + 0x31] */ 3230 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3231 _cf = (LO8(edx)) != 0; 3232 SET_LO8(edx, (uint32_t)(-(int32_t)LO8(edx))); /* 0x25092F5C: neg dl */ 3233 _flag_k = FK_NARROW(FK_CMP, 24); 3234 { uint32_t _sa = edx, _sb = edx, _sc = _cf; /* 0x25092F5E: sbb edx, edx */ 3235 edx = _sc ? 0xFFFFFFFFu : 0; 3236 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3237 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3238 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 3239 eax = eax & 0xFFFFFFFDu; /* 0x25092F60: and eax, 0xfffffffd */ 3240 _cf = 0; 3241 _flag_k = FK_TEST; 3242 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 3243 edx = edx & 2; /* 0x25092F63: and edx, 2 */ 3244 _cf = 0; 3245 _flag_k = FK_TEST; 3246 _flag_a = (uint32_t)((edx | eax)); _flag_b = (uint32_t)((edx | eax)); 3247 edx = edx | eax; /* 0x25092F66: or edx, eax */ 3248 _cf = 0; 3249 _flag_k = FK_TEST; 3250 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092F68: fnstsw ax */ 3251 MEM32(edi + 0x34) = edx; /* 0x25092F6A: mov dword ptr [edi + 0x34], edx */ 3252 /* test HI8(eax), 1 */ /* 0x25092F6D: test ah, 1 */ 3253 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3254 _cf = 0; 3255 _flag_k = FK_NARROW(FK_TEST, 24); 3256 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092F87; /* 0x25092F70: jne 0x25092f87 */ 3257 L_25092F72: 3258 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x25151790)); /* 0x25092F72: fcom qword ptr [0x25151790] */ 3259 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092F78: fnstsw ax */ 3260 /* test HI8(eax), 1 */ /* 0x25092F7A: test ah, 1 */ 3261 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3262 _cf = 0; 3263 _flag_k = FK_NARROW(FK_TEST, 24); 3264 if (TEST_Z(_flag_a, _flag_b)) goto L_25092F87; /* 0x25092F7D: je 0x25092f87 */ 3265 L_25092F7F: 3266 _st[0] *= (double)*(float*)ADDR(0x25151788); /* 0x25092F7F: fmul dword ptr [0x25151788] */ 3267 goto L_25092FA8; /* 0x25092F85: jmp 0x25092fa8 */ 3268 L_25092F87: 3269 _st[0] *= (double)*(float*)ADDR(0x25151784); /* 0x25092F87: fmul dword ptr [0x25151784] */ 3270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3272 esp = esp - 8; /* 0x25092F8D: sub esp, 8 */ 3273 _flag_k = FK_CMP; 3274 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x25092F90: fst dword ptr [ebp + 0x18] */ 3275 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x25092F93: fstp qword ptr [esp] */ 3276 RECOMP_ICALL(MEM32(0x25151260)); /* 0x25092F96: call dword ptr [0x25151260] */ 3277 RECOMP_FLAGS_IN(); 3278 _st[0] = (double)*(float*)ADDR(ebp + 0x18) - _st[0]; /* 0x25092F9C: fsubr dword ptr [ebp + 0x18] */ 3279 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3280 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3281 esp = esp + 8; /* 0x25092F9F: add esp, 8 */ 3282 _flag_k = FK_ADD; 3283 _st[0] *= (double)*(float*)ADDR(0x25151780); /* 0x25092FA2: fmul dword ptr [0x25151780] */ 3284 L_25092FA8: 3285 fp_push(_st[0]); /* 0x25092FA8: fld st(0) */ 3286 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x25092FAA: fsin */ 3287 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x25092FAC: fld dword ptr [0x2515177c] */ 3288 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x25092FB2: fst dword ptr [ebp - 0x50] */ 3289 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x25092FB5: fstp dword ptr [ebp - 0x4c] */ 3290 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x25092FB8: fstp dword ptr [ebp - 0x48] */ 3291 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x25092FBB: fcos */ 3292 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x25092FBD: fstp dword ptr [ebp - 0x44] */ 3293 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x25092FC0: fld dword ptr [ebp + 0xc] */ 3294 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25092FC3: fcomp dword ptr [0x2515177c] */ 3295 fp_pop(); 3296 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092FC9: fnstsw ax */ 3297 /* test HI8(eax), 1 */ /* 0x25092FCB: test ah, 1 */ 3298 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3299 _cf = 0; 3300 _flag_k = FK_NARROW(FK_TEST, 24); 3301 if (TEST_NZ(_flag_a, _flag_b)) goto L_25092FEB; /* 0x25092FCE: jne 0x25092feb */ 3302 L_25092FD0: 3303 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x25092FD0: fld dword ptr [ebp + 0xc] */ 3304 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x25151790)); /* 0x25092FD3: fcomp qword ptr [0x25151790] */ 3305 fp_pop(); 3306 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25092FD9: fnstsw ax */ 3307 /* test HI8(eax), 1 */ /* 0x25092FDB: test ah, 1 */ 3308 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3309 _cf = 0; 3310 _flag_k = FK_NARROW(FK_TEST, 24); 3311 if (TEST_Z(_flag_a, _flag_b)) goto L_25092FEB; /* 0x25092FDE: je 0x25092feb */ 3312 L_25092FE0: 3313 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x25092FE0: fld dword ptr [ebp + 0xc] */ 3314 _st[0] *= (double)*(float*)ADDR(0x25151788); /* 0x25092FE3: fmul dword ptr [0x25151788] */ 3315 goto L_2509300F; /* 0x25092FE9: jmp 0x2509300f */ 3316 L_25092FEB: 3317 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x25092FEB: fld dword ptr [ebp + 0xc] */ 3318 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3320 esp = esp - 8; /* 0x25092FEE: sub esp, 8 */ 3321 _flag_k = FK_CMP; 3322 _st[0] *= (double)*(float*)ADDR(0x25151784); /* 0x25092FF1: fmul dword ptr [0x25151784] */ 3323 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x25092FF7: fst dword ptr [ebp + 0x18] */ 3324 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x25092FFA: fstp qword ptr [esp] */ 3325 RECOMP_ICALL(MEM32(0x25151260)); /* 0x25092FFD: call dword ptr [0x25151260] */ 3326 RECOMP_FLAGS_IN(); 3327 _st[0] = (double)*(float*)ADDR(ebp + 0x18) - _st[0]; /* 0x25093003: fsubr dword ptr [ebp + 0x18] */ 3328 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3330 esp = esp + 8; /* 0x25093006: add esp, 8 */ 3331 _flag_k = FK_ADD; 3332 _st[0] *= (double)*(float*)ADDR(0x25151780); /* 0x25093009: fmul dword ptr [0x25151780] */ 3333 L_2509300F: 3334 fp_push(_st[0]); /* 0x2509300F: fld st(0) */ 3335 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x25093011: fsin */ 3336 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x25093013: fld dword ptr [0x2515177c] */ 3337 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x25093019: fst dword ptr [ebp + 0x18] */ 3338 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x2509301C: fstp dword ptr [ebp - 0x30] */ 3339 eax = MEM32(ebp + 0x18); /* 0x2509301F: mov eax, dword ptr [ebp + 0x18] */ 3340 MEM32(ebp + (-0x28)) = eax; /* 0x25093022: mov dword ptr [ebp - 0x28], eax */ 3341 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x25093025: fstp dword ptr [ebp - 0x2c] */ 3342 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x25093028: fcos */ 3343 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x2509302A: fstp dword ptr [ebp - 0x24] */ 3344 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x2509302D: fld dword ptr [ebp + 0x14] */ 3345 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25093030: fcomp dword ptr [0x2515177c] */ 3346 fp_pop(); 3347 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25093036: fnstsw ax */ 3348 /* test HI8(eax), 1 */ /* 0x25093038: test ah, 1 */ 3349 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3350 _cf = 0; 3351 _flag_k = FK_NARROW(FK_TEST, 24); 3352 if (TEST_NZ(_flag_a, _flag_b)) goto L_25093058; /* 0x2509303B: jne 0x25093058 */ 3353 L_2509303D: 3354 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x2509303D: fld dword ptr [ebp + 0x14] */ 3355 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x25151790)); /* 0x25093040: fcomp qword ptr [0x25151790] */ 3356 fp_pop(); 3357 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25093046: fnstsw ax */ 3358 /* test HI8(eax), 1 */ /* 0x25093048: test ah, 1 */ 3359 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3360 _cf = 0; 3361 _flag_k = FK_NARROW(FK_TEST, 24); 3362 if (TEST_Z(_flag_a, _flag_b)) goto L_25093058; /* 0x2509304B: je 0x25093058 */ 3363 L_2509304D: 3364 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x2509304D: fld dword ptr [ebp + 0x14] */ 3365 _st[0] *= (double)*(float*)ADDR(0x25151788); /* 0x25093050: fmul dword ptr [0x25151788] */ 3366 goto L_2509307C; /* 0x25093056: jmp 0x2509307c */ 3367 L_25093058: 3368 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x25093058: fld dword ptr [ebp + 0x14] */ 3369 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3371 esp = esp - 8; /* 0x2509305B: sub esp, 8 */ 3372 _flag_k = FK_CMP; 3373 _st[0] *= (double)*(float*)ADDR(0x25151784); /* 0x2509305E: fmul dword ptr [0x25151784] */ 3374 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x25093064: fst dword ptr [ebp + 0x18] */ 3375 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x25093067: fstp qword ptr [esp] */ 3376 RECOMP_ICALL(MEM32(0x25151260)); /* 0x2509306A: call dword ptr [0x25151260] */ 3377 RECOMP_FLAGS_IN(); 3378 _st[0] = (double)*(float*)ADDR(ebp + 0x18) - _st[0]; /* 0x25093070: fsubr dword ptr [ebp + 0x18] */ 3379 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3380 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3381 esp = esp + 8; /* 0x25093073: add esp, 8 */ 3382 _flag_k = FK_ADD; 3383 _st[0] *= (double)*(float*)ADDR(0x25151780); /* 0x25093076: fmul dword ptr [0x25151780] */ 3384 L_2509307C: 3385 fp_push(_st[0]); /* 0x2509307C: fld st(0) */ 3386 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x2509307E: fsin */ 3387 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x25093080: fstp dword ptr [ebp - 0x40] */ 3388 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x25093083: fld dword ptr [0x2515177c] */ 3389 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x25093089: fst dword ptr [ebp - 0x3c] */ 3390 ecx = MEM32(ebp + (-0x40)); /* 0x2509308C: mov ecx, dword ptr [ebp - 0x40] */ 3391 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x2509308F: fstp dword ptr [ebp - 0x38] */ 3392 MEM32(ebp + (-0x20)) = ecx; /* 0x25093092: mov dword ptr [ebp - 0x20], ecx */ 3393 edx = MEM32(ebp + (-0x3C)); /* 0x25093095: mov edx, dword ptr [ebp - 0x3c] */ 3394 eax = MEM32(ebp + (-0x38)); /* 0x25093098: mov eax, dword ptr [ebp - 0x38] */ 3395 MEM32(ebp + (-0x1C)) = edx; /* 0x2509309B: mov dword ptr [ebp - 0x1c], edx */ 3396 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x2509309E: fcos */ 3397 edx = ebp + (-0x30); /* 0x250930A0: lea edx, [ebp - 0x30] */ 3398 PUSH32(esp, edx); /* 0x250930A3: push edx */ 3399 MEM32(ebp + (-0x18)) = eax; /* 0x250930A4: mov dword ptr [ebp - 0x18], eax */ 3400 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x250930A7: fstp dword ptr [ebp - 0x34] */ 3401 ecx = MEM32(ebp + (-0x34)); /* 0x250930AA: mov ecx, dword ptr [ebp - 0x34] */ 3402 MEM32(ebp + (-0x14)) = ecx; /* 0x250930AD: mov dword ptr [ebp - 0x14], ecx */ 3403 ecx = ebp + (-0x20); /* 0x250930B0: lea ecx, [ebp - 0x20] */ 3404 RECOMP_ICALL(MEM32(0x25151508)); /* 0x250930B3: call dword ptr [0x25151508] */ 3405 RECOMP_FLAGS_IN(); 3406 ecx = MEM32(eax); /* 0x250930B9: mov ecx, dword ptr [eax] */ 3407 edx = MEM32(eax + 0x4); /* 0x250930BB: mov edx, dword ptr [eax + 4] */ 3408 MEM32(ebp + (-0x60)) = ecx; /* 0x250930BE: mov dword ptr [ebp - 0x60], ecx */ 3409 ecx = MEM32(eax + 0x8); /* 0x250930C1: mov ecx, dword ptr [eax + 8] */ 3410 MEM32(ebp + (-0x5C)) = edx; /* 0x250930C4: mov dword ptr [ebp - 0x5c], edx */ 3411 edx = MEM32(eax + 0xC); /* 0x250930C7: mov edx, dword ptr [eax + 0xc] */ 3412 eax = ebp + (-0x50); /* 0x250930CA: lea eax, [ebp - 0x50] */ 3413 MEM32(ebp + (-0x58)) = ecx; /* 0x250930CD: mov dword ptr [ebp - 0x58], ecx */ 3414 PUSH32(esp, eax); /* 0x250930D0: push eax */ 3415 ecx = ebp + (-0x60); /* 0x250930D1: lea ecx, [ebp - 0x60] */ 3416 MEM32(ebp + (-0x54)) = edx; /* 0x250930D4: mov dword ptr [ebp - 0x54], edx */ 3417 RECOMP_ICALL(MEM32(0x25151508)); /* 0x250930D7: call dword ptr [0x25151508] */ 3418 RECOMP_FLAGS_IN(); 3419 ecx = MEM32(eax); /* 0x250930DD: mov ecx, dword ptr [eax] */ 3420 edx = MEM32(eax + 0x4); /* 0x250930DF: mov edx, dword ptr [eax + 4] */ 3421 MEM32(ebp + (-0x40)) = ecx; /* 0x250930E2: mov dword ptr [ebp - 0x40], ecx */ 3422 ecx = MEM32(eax + 0x8); /* 0x250930E5: mov ecx, dword ptr [eax + 8] */ 3423 MEM32(ebp + (-0x3C)) = edx; /* 0x250930E8: mov dword ptr [ebp - 0x3c], edx */ 3424 edx = MEM32(eax + 0xC); /* 0x250930EB: mov edx, dword ptr [eax + 0xc] */ 3425 MEM32(ebp + (-0x38)) = ecx; /* 0x250930EE: mov dword ptr [ebp - 0x38], ecx */ 3426 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x250930F1: fld dword ptr [ebp - 0x38] */ 3427 _st[0] *= (double)*(float*)ADDR(ebx + 0x4); /* 0x250930F4: fmul dword ptr [ebx + 4] */ 3428 MEM32(ebp + (-0x34)) = edx; /* 0x250930F7: mov dword ptr [ebp - 0x34], edx */ 3429 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x250930FA: fld dword ptr [ebp - 0x34] */ 3430 _st[0] *= (double)*(float*)ADDR(ebx); /* 0x250930FD: fmul dword ptr [ebx] */ 3431 { double _v = fp_pop(); _st[0] += _v; } /* 0x250930FF: faddp st(1) */ 3432 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x25093101: fld dword ptr [ebp - 0x3c] */ 3433 _st[0] *= (double)*(float*)ADDR(ebx + 0x8); /* 0x25093104: fmul dword ptr [ebx + 8] */ 3434 { double _v = fp_pop(); _st[0] -= _v; } /* 0x25093107: fsubp st(1) */ 3435 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x25093109: fld dword ptr [ebp - 0x40] */ 3436 _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x2509310C: fmul dword ptr [ebx + 0xc] */ 3437 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509310F: faddp st(1) */ 3438 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x25093111: fld dword ptr [ebp - 0x3c] */ 3439 _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x25093114: fmul dword ptr [ebx + 0xc] */ 3440 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25093117: fld dword ptr [ebp - 0x34] */ 3441 _st[0] *= (double)*(float*)ADDR(ebx + 0x4); /* 0x2509311A: fmul dword ptr [ebx + 4] */ 3442 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509311D: faddp st(1) */ 3443 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x2509311F: fld dword ptr [ebp - 0x40] */ 3444 _st[0] *= (double)*(float*)ADDR(ebx + 0x8); /* 0x25093122: fmul dword ptr [ebx + 8] */ 3445 { double _v = fp_pop(); _st[0] += _v; } /* 0x25093125: faddp st(1) */ 3446 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x25093127: fld dword ptr [ebp - 0x38] */ 3447 _st[0] *= (double)*(float*)ADDR(ebx); /* 0x2509312A: fmul dword ptr [ebx] */ 3448 { double _v = fp_pop(); _st[0] -= _v; } /* 0x2509312C: fsubp st(1) */ 3449 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x2509312E: fld dword ptr [ebp - 0x3c] */ 3450 _st[0] *= (double)*(float*)ADDR(ebx); /* 0x25093131: fmul dword ptr [ebx] */ 3451 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x25093133: fld dword ptr [ebp - 0x40] */ 3452 _st[0] *= (double)*(float*)ADDR(ebx + 0x4); /* 0x25093136: fmul dword ptr [ebx + 4] */ 3453 { double _v = fp_pop(); _st[0] -= _v; } /* 0x25093139: fsubp st(1) */ 3454 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x2509313B: fld dword ptr [ebp - 0x38] */ 3455 _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x2509313E: fmul dword ptr [ebx + 0xc] */ 3456 { double _v = fp_pop(); _st[0] += _v; } /* 0x25093141: faddp st(1) */ 3457 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25093143: fld dword ptr [ebp - 0x34] */ 3458 _st[0] *= (double)*(float*)ADDR(ebx + 0x8); /* 0x25093146: fmul dword ptr [ebx + 8] */ 3459 { double _v = fp_pop(); _st[0] += _v; } /* 0x25093149: faddp st(1) */ 3460 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x2509314B: fld dword ptr [ebp - 0x34] */ 3461 _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x2509314E: fmul dword ptr [ebx + 0xc] */ 3462 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x25093151: fld dword ptr [ebp - 0x40] */ 3463 _st[0] *= (double)*(float*)ADDR(ebx); /* 0x25093154: fmul dword ptr [ebx] */ 3464 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x25093156: fld dword ptr [ebp - 0x3c] */ 3465 _st[0] *= (double)*(float*)ADDR(ebx + 0x4); /* 0x25093159: fmul dword ptr [ebx + 4] */ 3466 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509315C: faddp st(1) */ 3467 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x2509315E: fld dword ptr [ebp - 0x38] */ 3468 _st[0] *= (double)*(float*)ADDR(ebx + 0x8); /* 0x25093161: fmul dword ptr [ebx + 8] */ 3469 edi = POP32_VAL(esp); /* 0x25093164: pop edi */ 3470 esi = POP32_VAL(esp); /* 0x25093165: pop esi */ 3471 { double _v = fp_pop(); _st[0] += _v; } /* 0x25093166: faddp st(1) */ 3472 { double _v = fp_pop(); _st[0] -= _v; } /* 0x25093168: fsubp st(1) */ 3473 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x2509316A: fstp dword ptr [ebp - 0x34] */ 3474 fp_push(_st[2]); /* 0x2509316D: fld st(2) */ 3475 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x2509316F: fstp dword ptr [ebp - 0x40] */ 3476 eax = MEM32(ebp + (-0x40)); /* 0x25093172: mov eax, dword ptr [ebp - 0x40] */ 3477 fp_push(_st[1]); /* 0x25093175: fld st(1) */ 3478 MEM32(ebp + (-0x30)) = eax; /* 0x25093177: mov dword ptr [ebp - 0x30], eax */ 3479 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x2509317A: fstp dword ptr [ebp - 0x3c] */ 3480 ecx = MEM32(ebp + (-0x3C)); /* 0x2509317D: mov ecx, dword ptr [ebp - 0x3c] */ 3481 eax = MEM32(ebp + (-0x34)); /* 0x25093180: mov eax, dword ptr [ebp - 0x34] */ 3482 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x25093183: fst dword ptr [ebp - 0x38] */ 3483 edx = MEM32(ebp + (-0x38)); /* 0x25093186: mov edx, dword ptr [ebp - 0x38] */ 3484 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25093189: fld dword ptr [ebp - 0x34] */ 3485 MEM32(ebp + (-0x2C)) = ecx; /* 0x2509318C: mov dword ptr [ebp - 0x2c], ecx */ 3486 _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x2509318F: fmul dword ptr [ebp - 0x34] */ 3487 MEM32(ebp + (-0x28)) = edx; /* 0x25093192: mov dword ptr [ebp - 0x28], edx */ 3488 fp_push(_st[1]); /* 0x25093195: fld st(1) */ 3489 MEM32(ebp + (-0x24)) = eax; /* 0x25093197: mov dword ptr [ebp - 0x24], eax */ 3490 _st[0] *= _st[2]; /* 0x2509319A: fmul st(2) */ 3491 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509319C: faddp st(1) */ 3492 fp_push(_st[2]); /* 0x2509319E: fld st(2) */ 3493 _st[0] *= _st[3]; /* 0x250931A0: fmul st(3) */ 3494 { double _v = fp_pop(); _st[0] += _v; } /* 0x250931A2: faddp st(1) */ 3495 fp_push(_st[3]); /* 0x250931A4: fld st(3) */ 3496 _st[0] *= _st[4]; /* 0x250931A6: fmul st(4) */ 3497 { double _v = fp_pop(); _st[0] += _v; } /* 0x250931A8: faddp st(1) */ 3498 _st[0] = sqrt(_st[0]); /* 0x250931AA: fsqrt */ 3499 { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x250931AC: fstp st(2) */ 3500 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250931AE: fstp st(0) */ 3501 _st[0] = (double)*(float*)ADDR(0x251517A4) / _st[0]; /* 0x250931B0: fdivr dword ptr [0x251517a4] */ 3502 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x18) = _v; } /* 0x250931B6: fstp dword ptr [ebp + 0x18] */ 3503 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x250931B9: fmul dword ptr [ebp + 0x18] */ 3504 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x250931BC: fstp dword ptr [ebp - 0x30] */ 3505 ecx = MEM32(ebp + (-0x30)); /* 0x250931BF: mov ecx, dword ptr [ebp - 0x30] */ 3506 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x250931C2: fld dword ptr [ebp - 0x2c] */ 3507 MEM32(ebx) = ecx; /* 0x250931C5: mov dword ptr [ebx], ecx */ 3508 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x250931C7: fmul dword ptr [ebp + 0x18] */ 3509 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x250931CA: fstp dword ptr [ebp - 0x2c] */ 3510 edx = MEM32(ebp + (-0x2C)); /* 0x250931CD: mov edx, dword ptr [ebp - 0x2c] */ 3511 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x250931D0: fld dword ptr [ebp - 0x28] */ 3512 MEM32(ebx + 0x4) = edx; /* 0x250931D3: mov dword ptr [ebx + 4], edx */ 3513 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x250931D6: fmul dword ptr [ebp + 0x18] */ 3514 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x250931D9: fstp dword ptr [ebp - 0x28] */ 3515 eax = MEM32(ebp + (-0x28)); /* 0x250931DC: mov eax, dword ptr [ebp - 0x28] */ 3516 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x250931DF: fld dword ptr [ebp - 0x24] */ 3517 MEM32(ebx + 0x8) = eax; /* 0x250931E2: mov dword ptr [ebx + 8], eax */ 3518 _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x250931E5: fmul dword ptr [ebp + 0x18] */ 3519 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x250931E8: fstp dword ptr [ebp - 0x24] */ 3520 ecx = MEM32(ebp + (-0x24)); /* 0x250931EB: mov ecx, dword ptr [ebp - 0x24] */ 3521 MEM32(ebx + 0xC) = ecx; /* 0x250931EE: mov dword ptr [ebx + 0xc], ecx */ 3522 ebx = POP32_VAL(esp); /* 0x250931F1: pop ebx */ 3523 esp = ebp; /* 0x250931F2: mov esp, ebp */ 3524 ebp = POP32_VAL(esp); /* 0x250931F4: pop ebp */ 3525 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x250931F5: ret 0x14 */ 3526 RECOMP_REGS_OUT(); 3527 } 3528 3529 void sub_25093200(void) { 3530 int _fpu_cmp = 0; 3531 uint32_t _cf = 0; 3532 int _df = 1; 3533 uint32_t _flag_k = FK_NONE; 3534 uint32_t _flag_a = 0, _flag_b = 0; 3535 uint32_t _itail_tgt = 0; 3536 RECOMP_REGS_LOCALS 3537 RECOMP_ENTER(0x25093200u); 3538 3539 L_25093200: 3540 PUSH32(esp, ebp); /* 0x25093200: push ebp */ 3541 ebp = esp; /* 0x25093201: mov ebp, esp */ 3542 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x25093203: fld dword ptr [ebp + 8] */ 3543 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25093206: fcomp dword ptr [0x2515177c] */ 3544 fp_pop(); 3545 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509320C: fnstsw ax */ 3546 /* test HI8(eax), 1 */ /* 0x2509320E: test ah, 1 */ 3547 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3548 _cf = 0; 3549 _flag_k = FK_NARROW(FK_TEST, 24); 3550 if (TEST_Z(_flag_a, _flag_b)) goto L_2509321B; /* 0x25093211: je 0x2509321b */ 3551 L_25093213: 3552 fp_push(*(float*)&MEM32(0x2515176C)); /* 0x25093213: fld dword ptr [0x2515176c] */ 3553 ebp = POP32_VAL(esp); /* 0x25093219: pop ebp */ 3554 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509321A: ret */ 3555 L_2509321B: 3556 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2509321B: fld dword ptr [ebp + 8] */ 3557 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x2509321E: fcomp dword ptr [0x2515177c] */ 3558 fp_pop(); 3559 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25093224: fnstsw ax */ 3560 /* test HI8(eax), 0x41u */ /* 0x25093226: test ah, 0x41 */ 3561 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3562 _cf = 0; 3563 _flag_k = FK_NARROW(FK_TEST, 24); 3564 if (TEST_NZ(_flag_a, _flag_b)) goto L_25093233; /* 0x25093229: jne 0x25093233 */ 3565 L_2509322B: 3566 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2509322B: fld dword ptr [0x251517a4] */ 3567 ebp = POP32_VAL(esp); /* 0x25093231: pop ebp */ 3568 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25093232: ret */ 3569 L_25093233: 3570 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x25093233: fld dword ptr [0x2515177c] */ 3571 ebp = POP32_VAL(esp); /* 0x25093239: pop ebp */ 3572 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509323A: ret */ 3573 RECOMP_REGS_OUT(); 3574 } 3575 3576 void sub_25093240(void) { 3577 int _fpu_cmp = 0; 3578 uint32_t _cf = 0; 3579 int _df = 1; 3580 uint32_t _flag_k = FK_NONE; 3581 uint32_t _flag_a = 0, _flag_b = 0; 3582 uint32_t _itail_tgt = 0; 3583 RECOMP_REGS_LOCALS 3584 RECOMP_ENTER(0x25093240u); 3585 3586 L_25093240: 3587 PUSH32(esp, ebp); /* 0x25093240: push ebp */ 3588 ebp = esp; /* 0x25093241: mov ebp, esp */ 3589 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x25093243: fld dword ptr [ebp + 8] */ 3590 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25093246: fcomp dword ptr [0x2515177c] */ 3591 fp_pop(); 3592 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2509324C: fld dword ptr [ebp + 8] */ 3593 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509324F: fnstsw ax */ 3594 /* test HI8(eax), 1 */ /* 0x25093251: test ah, 1 */ 3595 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3596 _cf = 0; 3597 _flag_k = FK_NARROW(FK_TEST, 24); 3598 if (TEST_Z(_flag_a, _flag_b)) goto L_25093258; /* 0x25093254: je 0x25093258 */ 3599 L_25093256: 3600 _st[0] = -_st[0]; /* 0x25093256: fchs */ 3601 L_25093258: 3602 ebp = POP32_VAL(esp); /* 0x25093258: pop ebp */ 3603 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25093259: ret */ 3604 RECOMP_REGS_OUT(); 3605 } 3606 3607 void sub_25093260(void) { 3608 int _fpu_cmp = 0; 3609 uint32_t _cf = 0; 3610 int _df = 1; 3611 uint32_t _flag_k = FK_NONE; 3612 uint32_t _flag_a = 0, _flag_b = 0; 3613 uint32_t _itail_tgt = 0; 3614 RECOMP_REGS_LOCALS 3615 RECOMP_ENTER(0x25093260u); 3616 3617 L_25093260: 3618 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25093260: ret 8 */ 3619 RECOMP_REGS_OUT(); 3620 } 3621 3622 void sub_25093270(void) { 3623 int _fpu_cmp = 0; 3624 uint32_t _cf = 0; 3625 int _df = 1; 3626 uint32_t _flag_k = FK_NONE; 3627 uint32_t _flag_a = 0, _flag_b = 0; 3628 uint32_t _itail_tgt = 0; 3629 RECOMP_REGS_LOCALS 3630 RECOMP_ENTER(0x25093270u); 3631 3632 L_25093270: 3633 PUSH32(esp, ebp); /* 0x25093270: push ebp */ 3634 ebp = esp; /* 0x25093271: mov ebp, esp */ 3635 PUSH32(esp, 0xFFFFFFFFu); /* 0x25093273: push -1 */ 3636 PUSH32(esp, 0x25149573u); /* 0x25093275: push 0x25149573 */ 3637 eax = MEM32(FS_BASE + (0)); /* 0x2509327A: mov eax, dword ptr fs:[0] */ 3638 PUSH32(esp, eax); /* 0x25093280: push eax */ 3639 MEM32(FS_BASE + (0)) = esp; /* 0x25093281: mov dword ptr fs:[0], esp */ 3640 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3642 esp = esp - 0x1Cu; /* 0x25093288: sub esp, 0x1c */ 3643 _flag_k = FK_CMP; 3644 eax = MEM32(ebp + 0x18); /* 0x2509328B: mov eax, dword ptr [ebp + 0x18] */ 3645 PUSH32(esp, ebx); /* 0x2509328E: push ebx */ 3646 PUSH32(esp, esi); /* 0x2509328F: push esi */ 3647 PUSH32(esp, edi); /* 0x25093290: push edi */ 3648 edi = MEM32(ebp + 0x14); /* 0x25093291: mov edi, dword ptr [ebp + 0x14] */ 3649 PUSH32(esp, eax); /* 0x25093294: push eax */ 3650 esi = ecx; /* 0x25093295: mov esi, ecx */ 3651 PUSH32(esp, edi); /* 0x25093297: push edi */ 3652 MEM32(ebp + (-0x28)) = esi; /* 0x25093298: mov dword ptr [ebp - 0x28], esi */ 3653 RECOMP_ICALL(0x250DA9D0u); /* 0x2509329B: call 0x250da9d0 */ /* not lifted */ 3654 RECOMP_FLAGS_IN(); 3655 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3656 ebx = 0; /* 0x250932A0: xor ebx, ebx */ 3657 _cf = 0; 3658 _flag_k = FK_TEST; 3659 /* cmp edi, ebx */ /* 0x250932A2: cmp edi, ebx */ 3660 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3662 _flag_k = FK_CMP; 3663 edi = MEM32(ebp + 0x8); /* 0x250932A4: mov edi, dword ptr [ebp + 8] */ 3664 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250932A7: setne cl */ 3665 MEM32(esi + 0x1D4) = ebx; /* 0x250932AA: mov dword ptr [esi + 0x1d4], ebx */ 3666 MEM32(esi + 0x1D8) = ebx; /* 0x250932B0: mov dword ptr [esi + 0x1d8], ebx */ 3667 MEM32(esi + 0x1DC) = ebx; /* 0x250932B6: mov dword ptr [esi + 0x1dc], ebx */ 3668 MEM32(esi + 0x1E0) = ebx; /* 0x250932BC: mov dword ptr [esi + 0x1e0], ebx */ 3669 MEM8(esi + 0x1E4) = (uint8_t)(LO8(ecx)); /* 0x250932C2: mov byte ptr [esi + 0x1e4], cl */ 3670 MEM32(esi + 0x1E8) = ebx; /* 0x250932C8: mov dword ptr [esi + 0x1e8], ebx */ 3671 MEM32(esi + 0x1EC) = ebx; /* 0x250932CE: mov dword ptr [esi + 0x1ec], ebx */ 3672 MEM8(esi + 0x1F0) = (uint8_t)(LO8(ebx)); /* 0x250932D4: mov byte ptr [esi + 0x1f0], bl */ 3673 MEM32(esi) = 0x25155C1Cu; /* 0x250932DA: mov dword ptr [esi], 0x25155c1c */ 3674 MEM32(esi + 0x8) = 0x25155C0Cu; /* 0x250932E0: mov dword ptr [esi + 8], 0x25155c0c */ 3675 MEM32(esi + 0x20) = 0x25155BFCu; /* 0x250932E7: mov dword ptr [esi + 0x20], 0x25155bfc */ 3676 MEM32(esi + 0x38) = 0x25155BECu; /* 0x250932EE: mov dword ptr [esi + 0x38], 0x25155bec */ 3677 MEM32(esi + 0x50) = 0x25155BDCu; /* 0x250932F5: mov dword ptr [esi + 0x50], 0x25155bdc */ 3678 MEM32(esi + 0x138) = 0x25155BCCu; /* 0x250932FC: mov dword ptr [esi + 0x138], 0x25155bcc */ 3679 MEM32(esi + 0x150) = 0x25155BBCu; /* 0x25093306: mov dword ptr [esi + 0x150], 0x25155bbc */ 3680 eax = MEM32(edi + 0x4); /* 0x25093310: mov eax, dword ptr [edi + 4] */ 3681 /* cmp eax, ebx */ /* 0x25093313: cmp eax, ebx */ 3682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3684 _flag_k = FK_CMP; 3685 MEM32(ebp + (-0x4)) = ebx; /* 0x25093315: mov dword ptr [ebp - 4], ebx */ 3686 if (CMP_NE(_flag_a, _flag_b)) goto L_2509331E; /* 0x25093318: jne 0x2509331e */ 3687 L_2509331A: 3688 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3689 edx = 0; /* 0x2509331A: xor edx, edx */ 3690 _cf = 0; 3691 _flag_k = FK_TEST; 3692 goto L_25093333; /* 0x2509331C: jmp 0x25093333 */ 3693 L_2509331E: 3694 ecx = MEM32(edi + 0x8); /* 0x2509331E: mov ecx, dword ptr [edi + 8] */ 3695 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3697 ecx = ecx - eax; /* 0x25093321: sub ecx, eax */ 3698 _flag_k = FK_CMP; 3699 eax = 0x2AAAAAABu; /* 0x25093323: mov eax, 0x2aaaaaab */ 3700 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x25093328: imul ecx */ 3701 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3702 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3703 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2509332A: sar edx, 1 */ 3704 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3705 edx = (uint32_t)((int32_t)edx >> 1u); 3706 eax = edx; /* 0x2509332C: mov eax, edx */ 3707 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2509332E: shr eax, 0x1f */ 3708 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3709 eax = eax >> 31u; /* 0x2509332E: shr eax, 0x1f */ 3710 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3712 edx = edx + eax; /* 0x25093331: add edx, eax */ 3713 _flag_k = FK_ADD; 3714 L_25093333: 3715 /* cmp edx, ebx */ /* 0x25093333: cmp edx, ebx */ 3716 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 3717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3718 _flag_k = FK_CMP; 3719 MEM32(esi + 0x1D8) = edx; /* 0x25093335: mov dword ptr [esi + 0x1d8], edx */ 3720 if (CMP_NE(_flag_a, _flag_b)) goto L_25093349; /* 0x2509333B: jne 0x25093349 */ 3721 L_2509333D: 3722 ecx = esi; /* 0x2509333D: mov ecx, esi */ 3723 RECOMP_ICALL(0x250940C0u); /* 0x2509333F: call 0x250940c0 */ /* not lifted */ 3724 RECOMP_FLAGS_IN(); 3725 goto L_25093565; /* 0x25093344: jmp 0x25093565 */ 3726 L_25093349: 3727 ecx = edx * 4; /* 0x25093349: lea ecx, [edx*4] */ 3728 PUSH32(esp, ecx); /* 0x25093350: push ecx */ 3729 RECOMP_ICALL(0x251380D0u); /* 0x25093351: call 0x251380d0 */ /* not lifted */ 3730 RECOMP_FLAGS_IN(); 3731 ebx = MEM32(esi + 0x1D8); /* 0x25093356: mov ebx, dword ptr [esi + 0x1d8] */ 3732 if (1u) _cf = (((ebx) >> 31) & 1u); /* 0x2509335C: shl ebx, 1 */ 3733 if (1u) { _flag_a = recomp_flags_pack((ebx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3734 ebx = ebx << 1u; /* 0x2509335C: shl ebx, 1 */ 3735 edx = ebx + ebx * 2; /* 0x2509335E: lea edx, [ebx + ebx*2] */ 3736 if (3u) _cf = (((edx) >> 29) & 1u); /* 0x25093361: shl edx, 3 */ 3737 if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3738 edx = edx << 3u; /* 0x25093361: shl edx, 3 */ 3739 PUSH32(esp, edx); /* 0x25093364: push edx */ 3740 MEM32(esi + 0x1DC) = eax; /* 0x25093365: mov dword ptr [esi + 0x1dc], eax */ 3741 RECOMP_ICALL(0x251380D0u); /* 0x2509336B: call 0x251380d0 */ /* not lifted */ 3742 RECOMP_FLAGS_IN(); 3743 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3745 esp = esp + 8; /* 0x25093370: add esp, 8 */ 3746 _flag_k = FK_ADD; 3747 MEM32(ebp + (-0x24)) = eax; /* 0x25093373: mov dword ptr [ebp - 0x24], eax */ 3748 /* test eax, eax */ /* 0x25093376: test eax, eax */ 3749 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3750 _cf = 0; 3751 _flag_k = FK_TEST; 3752 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x25093378: mov byte ptr [ebp - 4], 1 */ 3753 if (TEST_Z(_flag_a, _flag_b)) goto L_250933A1; /* 0x2509337C: je 0x250933a1 */ 3754 L_2509337E: 3755 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3756 ebx = ebx - 1; /* 0x2509337E: dec ebx */ 3757 _flag_k = FK_DEC; 3758 /* test ebx, ebx */ /* 0x2509337F: test ebx, ebx */ 3759 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3760 _cf = 0; 3761 _flag_k = FK_TEST; 3762 MEM32(ebp + 0x18) = eax; /* 0x25093381: mov dword ptr [ebp + 0x18], eax */ 3763 if (TEST_S(_flag_a, _flag_b)) goto L_250933A3; /* 0x25093384: jl 0x250933a3 */ 3764 L_25093386: 3765 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3766 ebx = ebx + 1; /* 0x25093386: inc ebx */ 3767 _flag_k = FK_INC; 3768 L_25093387: 3769 ecx = MEM32(ebp + 0x18); /* 0x25093387: mov ecx, dword ptr [ebp + 0x18] */ 3770 RECOMP_ICALL(MEM32(0x25151518)); /* 0x2509338A: call dword ptr [0x25151518] */ 3771 RECOMP_FLAGS_IN(); 3772 ecx = MEM32(ebp + 0x18); /* 0x25093390: mov ecx, dword ptr [ebp + 0x18] */ 3773 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 3774 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3775 ecx = ecx + 0x18u; /* 0x25093393: add ecx, 0x18 */ 3776 _flag_k = FK_ADD; 3777 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3778 ebx = ebx - 1; /* 0x25093396: dec ebx */ 3779 _flag_k = FK_DEC; 3780 MEM32(ebp + 0x18) = ecx; /* 0x25093397: mov dword ptr [ebp + 0x18], ecx */ 3781 RECOMP_BACKEDGE(); 3782 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_25093387; /* 0x2509339A: jne 0x25093387 */ 3783 L_2509339C: 3784 eax = MEM32(ebp + (-0x24)); /* 0x2509339C: mov eax, dword ptr [ebp - 0x24] */ 3785 goto L_250933A3; /* 0x2509339F: jmp 0x250933a3 */ 3786 L_250933A1: 3787 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3788 eax = 0; /* 0x250933A1: xor eax, eax */ 3789 _cf = 0; 3790 _flag_k = FK_TEST; 3791 L_250933A3: 3792 MEM32(esi + 0x1E0) = eax; /* 0x250933A3: mov dword ptr [esi + 0x1e0], eax */ 3793 eax = MEM32(esi + 0x1D8); /* 0x250933A9: mov eax, dword ptr [esi + 0x1d8] */ 3794 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3795 ebx = 0; /* 0x250933AF: xor ebx, ebx */ 3796 _cf = 0; 3797 _flag_k = FK_TEST; 3798 /* cmp eax, ebx */ /* 0x250933B1: cmp eax, ebx */ 3799 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3800 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3801 _flag_k = FK_CMP; 3802 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x250933B3: mov byte ptr [ebp - 4], 0 */ 3803 MEM32(ebp + (-0x20)) = ebx; /* 0x250933B7: mov dword ptr [ebp - 0x20], ebx */ 3804 MEM32(ebp + (-0x24)) = eax; /* 0x250933BA: mov dword ptr [ebp - 0x24], eax */ 3805 if (CMP_LE(_flag_a, _flag_b)) goto L_25093530; /* 0x250933BD: jle 0x25093530 */ 3806 L_250933C3: 3807 eax = eax + eax * 2; /* 0x250933C3: lea eax, [eax + eax*2] */ 3808 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x250933C6: shl eax, 3 */ 3809 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3810 eax = eax << 3u; /* 0x250933C6: shl eax, 3 */ 3811 MEM32(ebp + (-0x14)) = eax; /* 0x250933C9: mov dword ptr [ebp - 0x14], eax */ 3812 MEM32(ebp + (-0x18)) = ebx; /* 0x250933CC: mov dword ptr [ebp - 0x18], ebx */ 3813 goto L_250933D7; /* 0x250933CF: jmp 0x250933d7 */ 3814 L_250933D1: 3815 eax = MEM32(ebp + (-0x14)); /* 0x250933D1: mov eax, dword ptr [ebp - 0x14] */ 3816 edi = MEM32(ebp + 0x8); /* 0x250933D4: mov edi, dword ptr [ebp + 8] */ 3817 L_250933D7: 3818 edx = MEM32(edi + 0x4); /* 0x250933D7: mov edx, dword ptr [edi + 4] */ 3819 edi = MEM32(esi + 0x1E0); /* 0x250933DA: mov edi, dword ptr [esi + 0x1e0] */ 3820 ecx = ebx; /* 0x250933E0: mov ecx, ebx */ 3821 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3823 ecx = ecx + edx; /* 0x250933E2: add ecx, edx */ 3824 _flag_k = FK_ADD; 3825 edx = MEM32(ebp + (-0x18)); /* 0x250933E4: mov edx, dword ptr [ebp - 0x18] */ 3826 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3828 edx = edx + edi; /* 0x250933E7: add edx, edi */ 3829 _flag_k = FK_ADD; 3830 edi = MEM32(ecx); /* 0x250933E9: mov edi, dword ptr [ecx] */ 3831 MEM32(edx) = edi; /* 0x250933EB: mov dword ptr [edx], edi */ 3832 edi = MEM32(ecx + 0x4); /* 0x250933ED: mov edi, dword ptr [ecx + 4] */ 3833 MEM32(edx + 0x4) = edi; /* 0x250933F0: mov dword ptr [edx + 4], edi */ 3834 ecx = MEM32(ecx + 0x8); /* 0x250933F3: mov ecx, dword ptr [ecx + 8] */ 3835 MEM32(edx + 0x8) = ecx; /* 0x250933F6: mov dword ptr [edx + 8], ecx */ 3836 ecx = MEM32(ebp + 0xC); /* 0x250933F9: mov ecx, dword ptr [ebp + 0xc] */ 3837 edi = MEM32(ecx + 0x4); /* 0x250933FC: mov edi, dword ptr [ecx + 4] */ 3838 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x1E0)); 3839 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3840 eax = eax + MEM32(esi + 0x1E0); /* 0x250933FF: add eax, dword ptr [esi + 0x1e0] */ 3841 _flag_k = FK_ADD; 3842 edx = ebx; /* 0x25093405: mov edx, ebx */ 3843 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3844 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3845 edx = edx + edi; /* 0x25093407: add edx, edi */ 3846 _flag_k = FK_ADD; 3847 ecx = MEM32(edx); /* 0x25093409: mov ecx, dword ptr [edx] */ 3848 MEM32(eax) = ecx; /* 0x2509340B: mov dword ptr [eax], ecx */ 3849 ecx = MEM32(edx + 0x4); /* 0x2509340D: mov ecx, dword ptr [edx + 4] */ 3850 MEM32(eax + 0x4) = ecx; /* 0x25093410: mov dword ptr [eax + 4], ecx */ 3851 edx = MEM32(edx + 0x8); /* 0x25093413: mov edx, dword ptr [edx + 8] */ 3852 MEM32(eax + 0x8) = edx; /* 0x25093416: mov dword ptr [eax + 8], edx */ 3853 eax = MEM32(ebp + 0x10); /* 0x25093419: mov eax, dword ptr [ebp + 0x10] */ 3854 ecx = MEM32(eax + 0x4); /* 0x2509341C: mov ecx, dword ptr [eax + 4] */ 3855 fp_push(*(float*)&MEM32(ebx + ecx + 0x8)); /* 0x2509341F: fld dword ptr [ebx + ecx + 8] */ 3856 edi = ebx + ecx; /* 0x25093423: lea edi, [ebx + ecx] */ 3857 _st[0] *= (double)*(float*)ADDR(0x25151928); /* 0x25093426: fmul dword ptr [0x25151928] */ 3858 MEM32(ebp + (-0x1C)) = edi; /* 0x2509342C: mov dword ptr [ebp - 0x1c], edi */ 3859 RECOMP_ICALL(0x251380E8u); /* 0x2509342F: call 0x251380e8 */ /* not lifted */ 3860 RECOMP_FLAGS_IN(); 3861 fp_push(*(float*)&MEM32(edi + 0x4)); /* 0x25093434: fld dword ptr [edi + 4] */ 3862 _st[0] *= (double)*(float*)ADDR(0x25151928); /* 0x25093437: fmul dword ptr [0x25151928] */ 3863 MEM8(ebp + (-0xD)) = (uint8_t)(LO8(eax)); /* 0x2509343D: mov byte ptr [ebp - 0xd], al */ 3864 RECOMP_ICALL(0x251380E8u); /* 0x25093440: call 0x251380e8 */ /* not lifted */ 3865 RECOMP_FLAGS_IN(); 3866 edx = MEM32(ebp + (-0x1C)); /* 0x25093445: mov edx, dword ptr [ebp - 0x1c] */ 3867 fp_push(*(float*)&MEM32(edx)); /* 0x25093448: fld dword ptr [edx] */ 3868 edi = MEM32(ebp + (-0x18)); /* 0x2509344A: mov edi, dword ptr [ebp - 0x18] */ 3869 _st[0] *= (double)*(float*)ADDR(0x25151928); /* 0x2509344D: fmul dword ptr [0x25151928] */ 3870 MEM8(ebp + 0x1B) = (uint8_t)(LO8(eax)); /* 0x25093453: mov byte ptr [ebp + 0x1b], al */ 3871 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x1E0)); 3872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3873 edi = edi + MEM32(esi + 0x1E0); /* 0x25093456: add edi, dword ptr [esi + 0x1e0] */ 3874 _flag_k = FK_ADD; 3875 RECOMP_ICALL(0x251380E8u); /* 0x2509345C: call 0x251380e8 */ /* not lifted */ 3876 RECOMP_FLAGS_IN(); 3877 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x25093461: mov cl, byte ptr [ebp - 0xd] */ 3878 edx = MEM32(ebp + 0x10); /* 0x25093464: mov edx, dword ptr [ebp + 0x10] */ 3879 MEM8(edi + 0xE) = (uint8_t)(LO8(eax)); /* 0x25093467: mov byte ptr [edi + 0xe], al */ 3880 SET_LO8(eax, MEM8(ebp + 0x1B)); /* 0x2509346A: mov al, byte ptr [ebp + 0x1b] */ 3881 MEM8(edi + 0xD) = (uint8_t)(LO8(eax)); /* 0x2509346D: mov byte ptr [edi + 0xd], al */ 3882 MEM8(edi + 0xC) = (uint8_t)(LO8(ecx)); /* 0x25093470: mov byte ptr [edi + 0xc], cl */ 3883 eax = MEM32(edx + 0x4); /* 0x25093473: mov eax, dword ptr [edx + 4] */ 3884 fp_push(*(float*)&MEM32(ebx + eax + 0x8)); /* 0x25093476: fld dword ptr [ebx + eax + 8] */ 3885 edi = ebx + eax; /* 0x2509347A: lea edi, [ebx + eax] */ 3886 _st[0] *= (double)*(float*)ADDR(0x25151928); /* 0x2509347D: fmul dword ptr [0x25151928] */ 3887 MEM32(ebp + (-0x1C)) = edi; /* 0x25093483: mov dword ptr [ebp - 0x1c], edi */ 3888 RECOMP_ICALL(0x251380E8u); /* 0x25093486: call 0x251380e8 */ /* not lifted */ 3889 RECOMP_FLAGS_IN(); 3890 fp_push(*(float*)&MEM32(edi + 0x4)); /* 0x2509348B: fld dword ptr [edi + 4] */ 3891 _st[0] *= (double)*(float*)ADDR(0x25151928); /* 0x2509348E: fmul dword ptr [0x25151928] */ 3892 MEM8(ebp + (-0xD)) = (uint8_t)(LO8(eax)); /* 0x25093494: mov byte ptr [ebp - 0xd], al */ 3893 RECOMP_ICALL(0x251380E8u); /* 0x25093497: call 0x251380e8 */ /* not lifted */ 3894 RECOMP_FLAGS_IN(); 3895 ecx = MEM32(ebp + (-0x1C)); /* 0x2509349C: mov ecx, dword ptr [ebp - 0x1c] */ 3896 fp_push(*(float*)&MEM32(ecx)); /* 0x2509349F: fld dword ptr [ecx] */ 3897 edx = MEM32(esi + 0x1E0); /* 0x250934A1: mov edx, dword ptr [esi + 0x1e0] */ 3898 _st[0] *= (double)*(float*)ADDR(0x25151928); /* 0x250934A7: fmul dword ptr [0x25151928] */ 3899 edi = MEM32(ebp + (-0x14)); /* 0x250934AD: mov edi, dword ptr [ebp - 0x14] */ 3900 MEM8(ebp + 0x1B) = (uint8_t)(LO8(eax)); /* 0x250934B0: mov byte ptr [ebp + 0x1b], al */ 3901 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 3902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3903 edi = edi + edx; /* 0x250934B3: add edi, edx */ 3904 _flag_k = FK_ADD; 3905 RECOMP_ICALL(0x251380E8u); /* 0x250934B5: call 0x251380e8 */ /* not lifted */ 3906 RECOMP_FLAGS_IN(); 3907 SET_LO8(edx, MEM8(ebp + 0x1B)); /* 0x250934BA: mov dl, byte ptr [ebp + 0x1b] */ 3908 MEM8(edi + 0xE) = (uint8_t)(LO8(eax)); /* 0x250934BD: mov byte ptr [edi + 0xe], al */ 3909 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x250934C0: mov al, byte ptr [ebp - 0xd] */ 3910 MEM8(edi + 0xD) = (uint8_t)(LO8(edx)); /* 0x250934C3: mov byte ptr [edi + 0xd], dl */ 3911 edx = MEM32(ebp + (-0x18)); /* 0x250934C6: mov edx, dword ptr [ebp - 0x18] */ 3912 MEM8(edi + 0xC) = (uint8_t)(LO8(eax)); /* 0x250934C9: mov byte ptr [edi + 0xc], al */ 3913 ecx = MEM32(esi + 0x1E0); /* 0x250934CC: mov ecx, dword ptr [esi + 0x1e0] */ 3914 eax = edx; /* 0x250934D2: mov eax, edx */ 3915 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3917 eax = eax + ecx; /* 0x250934D4: add eax, ecx */ 3918 _flag_k = FK_ADD; 3919 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3920 ecx = 0; /* 0x250934D6: xor ecx, ecx */ 3921 _cf = 0; 3922 _flag_k = FK_TEST; 3923 MEM32(eax + 0x10) = ecx; /* 0x250934D8: mov dword ptr [eax + 0x10], ecx */ 3924 MEM32(eax + 0x14) = ecx; /* 0x250934DB: mov dword ptr [eax + 0x14], ecx */ 3925 eax = MEM32(ebp + (-0x14)); /* 0x250934DE: mov eax, dword ptr [ebp - 0x14] */ 3926 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x1E0)); 3927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3928 eax = eax + MEM32(esi + 0x1E0); /* 0x250934E1: add eax, dword ptr [esi + 0x1e0] */ 3929 _flag_k = FK_ADD; 3930 edi = MEM32(ebp + (-0x24)); /* 0x250934E7: mov edi, dword ptr [ebp - 0x24] */ 3931 ecx = 0x3F800000u; /* 0x250934EA: mov ecx, 0x3f800000 */ 3932 MEM32(eax + 0x10) = ecx; /* 0x250934EF: mov dword ptr [eax + 0x10], ecx */ 3933 MEM32(eax + 0x14) = ecx; /* 0x250934F2: mov dword ptr [eax + 0x14], ecx */ 3934 eax = MEM32(ebp + (-0x20)); /* 0x250934F5: mov eax, dword ptr [ebp - 0x20] */ 3935 ecx = MEM32(esi + 0x1DC); /* 0x250934F8: mov ecx, dword ptr [esi + 0x1dc] */ 3936 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u); 3937 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3938 edx = edx + 0x18u; /* 0x250934FE: add edx, 0x18 */ 3939 _flag_k = FK_ADD; 3940 ecx = ecx + eax * 4; /* 0x25093501: lea ecx, [ecx + eax*4] */ 3941 MEM32(ebp + (-0x18)) = edx; /* 0x25093504: mov dword ptr [ebp - 0x18], edx */ 3942 edx = MEM32(ebp + (-0x14)); /* 0x25093507: mov edx, dword ptr [ebp - 0x14] */ 3943 MEM16(ecx) = (uint16_t)(LO16(eax)); /* 0x2509350A: mov word ptr [ecx], ax */ 3944 MEM16(ecx + 0x2) = (uint16_t)(LO16(edi)); /* 0x2509350D: mov word ptr [ecx + 2], di */ 3945 ecx = MEM32(esi + 0x1D8); /* 0x25093511: mov ecx, dword ptr [esi + 0x1d8] */ 3946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3947 eax = eax + 1; /* 0x25093517: inc eax */ 3948 _flag_k = FK_INC; 3949 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 3950 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3951 ebx = ebx + 0xCu; /* 0x25093518: add ebx, 0xc */ 3952 _flag_k = FK_ADD; 3953 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 3954 edi = edi + 1; /* 0x2509351B: inc edi */ 3955 _flag_k = FK_INC; 3956 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u); 3957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3958 edx = edx + 0x18u; /* 0x2509351C: add edx, 0x18 */ 3959 _flag_k = FK_ADD; 3960 /* cmp eax, ecx */ /* 0x2509351F: cmp eax, ecx */ 3961 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3963 _flag_k = FK_CMP; 3964 MEM32(ebp + (-0x20)) = eax; /* 0x25093521: mov dword ptr [ebp - 0x20], eax */ 3965 MEM32(ebp + (-0x24)) = edi; /* 0x25093524: mov dword ptr [ebp - 0x24], edi */ 3966 MEM32(ebp + (-0x14)) = edx; /* 0x25093527: mov dword ptr [ebp - 0x14], edx */ 3967 RECOMP_BACKEDGE(); 3968 if (CMP_L(_flag_a, _flag_b)) goto L_250933D1; /* 0x2509352A: jl 0x250933d1 */ 3969 L_25093530: 3970 edx = MEM32(ebp + 0x14); /* 0x25093530: mov edx, dword ptr [ebp + 0x14] */ 3971 /* test edx, edx */ /* 0x25093533: test edx, edx */ 3972 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3973 _cf = 0; 3974 _flag_k = FK_TEST; 3975 SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x25093535: setne dl */ 3976 PUSH32(esp, 2); /* 0x25093538: push 2 */ 3977 MEM8(esi + 0x1E4) = (uint8_t)(LO8(edx)); /* 0x2509353A: mov byte ptr [esi + 0x1e4], dl */ 3978 RECOMP_ICALL(0x25074DB0u); /* 0x25093540: call 0x25074db0 */ /* not lifted */ 3979 RECOMP_FLAGS_IN(); 3980 ecx = eax; /* 0x25093545: mov ecx, eax */ 3981 RECOMP_ICALL(0x25074EA0u); /* 0x25093547: call 0x25074ea0 */ /* not lifted */ 3982 RECOMP_FLAGS_IN(); 3983 PUSH32(esp, 8); /* 0x2509354C: push 8 */ 3984 ecx = esi; /* 0x2509354E: mov ecx, esi */ 3985 MEM32(esi + 0x1E8) = eax; /* 0x25093550: mov dword ptr [esi + 0x1e8], eax */ 3986 RECOMP_ICALL(0x250DDB50u); /* 0x25093556: call 0x250ddb50 */ /* not lifted */ 3987 RECOMP_FLAGS_IN(); 3988 MEM32(esi + 0x1EC) = 1; /* 0x2509355B: mov dword ptr [esi + 0x1ec], 1 */ 3989 L_25093565: 3990 ecx = MEM32(ebp + (-0xC)); /* 0x25093565: mov ecx, dword ptr [ebp - 0xc] */ 3991 edi = POP32_VAL(esp); /* 0x25093568: pop edi */ 3992 eax = esi; /* 0x25093569: mov eax, esi */ 3993 esi = POP32_VAL(esp); /* 0x2509356B: pop esi */ 3994 ebx = POP32_VAL(esp); /* 0x2509356C: pop ebx */ 3995 MEM32(FS_BASE + (0)) = ecx; /* 0x2509356D: mov dword ptr fs:[0], ecx */ 3996 esp = ebp; /* 0x25093574: mov esp, ebp */ 3997 ebp = POP32_VAL(esp); /* 0x25093576: pop ebp */ 3998 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x25093577: ret 0x14 */ 3999 RECOMP_REGS_OUT(); 4000 } 4001 4002 void sub_25093565(void) { 4003 int _fpu_cmp = 0; 4004 uint32_t _cf = 0; 4005 int _df = 1; 4006 uint32_t _flag_k = FK_NONE; 4007 uint32_t _flag_a = 0, _flag_b = 0; 4008 uint32_t _itail_tgt = 0; 4009 RECOMP_REGS_LOCALS 4010 RECOMP_ENTER(0x25093565u); 4011 4012 L_25093565: 4013 ecx = MEM32(ebp + (-0xC)); /* 0x25093565: mov ecx, dword ptr [ebp - 0xc] */ 4014 edi = POP32_VAL(esp); /* 0x25093568: pop edi */ 4015 eax = esi; /* 0x25093569: mov eax, esi */ 4016 esi = POP32_VAL(esp); /* 0x2509356B: pop esi */ 4017 ebx = POP32_VAL(esp); /* 0x2509356C: pop ebx */ 4018 MEM32(FS_BASE + (0)) = ecx; /* 0x2509356D: mov dword ptr fs:[0], ecx */ 4019 esp = ebp; /* 0x25093574: mov esp, ebp */ 4020 ebp = POP32_VAL(esp); /* 0x25093576: pop ebp */ 4021 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x25093577: ret 0x14 */ 4022 RECOMP_REGS_OUT(); 4023 } 4024 4025 void sub_25093580(void) { 4026 int _fpu_cmp = 0; 4027 uint32_t _cf = 0; 4028 int _df = 1; 4029 uint32_t _flag_k = FK_NONE; 4030 uint32_t _flag_a = 0, _flag_b = 0; 4031 uint32_t _itail_tgt = 0; 4032 RECOMP_REGS_LOCALS 4033 RECOMP_ENTER(0x25093580u); 4034 4035 L_25093580: 4036 PUSH32(esp, ebp); /* 0x25093580: push ebp */ 4037 ebp = esp; /* 0x25093581: mov ebp, esp */ 4038 PUSH32(esp, 0xFFFFFFFFu); /* 0x25093583: push -1 */ 4039 PUSH32(esp, 0x25149588u); /* 0x25093585: push 0x25149588 */ 4040 eax = MEM32(FS_BASE + (0)); /* 0x2509358A: mov eax, dword ptr fs:[0] */ 4041 PUSH32(esp, eax); /* 0x25093590: push eax */ 4042 MEM32(FS_BASE + (0)) = esp; /* 0x25093591: mov dword ptr fs:[0], esp */ 4043 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x6Cu); 4044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4045 esp = esp - 0x6Cu; /* 0x25093598: sub esp, 0x6c */ 4046 _flag_k = FK_CMP; 4047 eax = MEM32(ebp + 0x14); /* 0x2509359B: mov eax, dword ptr [ebp + 0x14] */ 4048 PUSH32(esp, ebx); /* 0x2509359E: push ebx */ 4049 PUSH32(esp, esi); /* 0x2509359F: push esi */ 4050 PUSH32(esp, edi); /* 0x250935A0: push edi */ 4051 edi = MEM32(ebp + 0x10); /* 0x250935A1: mov edi, dword ptr [ebp + 0x10] */ 4052 PUSH32(esp, eax); /* 0x250935A4: push eax */ 4053 esi = ecx; /* 0x250935A5: mov esi, ecx */ 4054 PUSH32(esp, edi); /* 0x250935A7: push edi */ 4055 MEM32(ebp + (-0x24)) = esi; /* 0x250935A8: mov dword ptr [ebp - 0x24], esi */ 4056 RECOMP_ICALL(0x250DA9D0u); /* 0x250935AB: call 0x250da9d0 */ /* not lifted */ 4057 RECOMP_FLAGS_IN(); 4058 eax = MEM32(ebp + 0x8); /* 0x250935B0: mov eax, dword ptr [ebp + 8] */ 4059 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4060 ebx = 0; /* 0x250935B3: xor ebx, ebx */ 4061 _cf = 0; 4062 _flag_k = FK_TEST; 4063 /* cmp edi, ebx */ /* 0x250935B5: cmp edi, ebx */ 4064 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4066 _flag_k = FK_CMP; 4067 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250935B7: setne cl */ 4068 /* cmp eax, ebx */ /* 0x250935BA: cmp eax, ebx */ 4069 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4071 _flag_k = FK_CMP; 4072 MEM32(ebp + (-0x4)) = ebx; /* 0x250935BC: mov dword ptr [ebp - 4], ebx */ 4073 MEM32(esi + 0x1D4) = ebx; /* 0x250935BF: mov dword ptr [esi + 0x1d4], ebx */ 4074 MEM32(esi + 0x1DC) = ebx; /* 0x250935C5: mov dword ptr [esi + 0x1dc], ebx */ 4075 MEM32(esi + 0x1E0) = ebx; /* 0x250935CB: mov dword ptr [esi + 0x1e0], ebx */ 4076 MEM8(esi + 0x1E4) = (uint8_t)(LO8(ecx)); /* 0x250935D1: mov byte ptr [esi + 0x1e4], cl */ 4077 MEM32(esi + 0x1E8) = ebx; /* 0x250935D7: mov dword ptr [esi + 0x1e8], ebx */ 4078 MEM32(esi + 0x1EC) = ebx; /* 0x250935DD: mov dword ptr [esi + 0x1ec], ebx */ 4079 MEM8(esi + 0x1F0) = (uint8_t)(LO8(ebx)); /* 0x250935E3: mov byte ptr [esi + 0x1f0], bl */ 4080 MEM32(esi) = 0x25155C1Cu; /* 0x250935E9: mov dword ptr [esi], 0x25155c1c */ 4081 MEM32(esi + 0x8) = 0x25155C0Cu; /* 0x250935EF: mov dword ptr [esi + 8], 0x25155c0c */ 4082 MEM32(esi + 0x20) = 0x25155BFCu; /* 0x250935F6: mov dword ptr [esi + 0x20], 0x25155bfc */ 4083 MEM32(esi + 0x38) = 0x25155BECu; /* 0x250935FD: mov dword ptr [esi + 0x38], 0x25155bec */ 4084 MEM32(esi + 0x50) = 0x25155BDCu; /* 0x25093604: mov dword ptr [esi + 0x50], 0x25155bdc */ 4085 MEM32(esi + 0x138) = 0x25155BCCu; /* 0x2509360B: mov dword ptr [esi + 0x138], 0x25155bcc */ 4086 MEM32(esi + 0x150) = 0x25155BBCu; /* 0x25093615: mov dword ptr [esi + 0x150], 0x25155bbc */ 4087 MEM32(esi + 0x1D8) = eax; /* 0x2509361F: mov dword ptr [esi + 0x1d8], eax */ 4088 if (CMP_NE(_flag_a, _flag_b)) goto L_25093633; /* 0x25093625: jne 0x25093633 */ 4089 L_25093627: 4090 ecx = esi; /* 0x25093627: mov ecx, esi */ 4091 RECOMP_ICALL(0x250940C0u); /* 0x25093629: call 0x250940c0 */ /* not lifted */ 4092 RECOMP_FLAGS_IN(); 4093 goto L_250938EF; /* 0x2509362E: jmp 0x250938ef */ 4094 L_25093633: 4095 edx = MEM32(ebp + 0xC); /* 0x25093633: mov edx, dword ptr [ebp + 0xc] */ 4096 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x25093636: shl eax, 2 */ 4097 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4098 eax = eax << 2u; /* 0x25093636: shl eax, 2 */ 4099 PUSH32(esp, eax); /* 0x25093639: push eax */ 4100 MEM32(esi + 0x1D4) = edx; /* 0x2509363A: mov dword ptr [esi + 0x1d4], edx */ 4101 RECOMP_ICALL(0x251380D0u); /* 0x25093640: call 0x251380d0 */ /* not lifted */ 4102 RECOMP_FLAGS_IN(); 4103 edi = MEM32(esi + 0x1D8); /* 0x25093645: mov edi, dword ptr [esi + 0x1d8] */ 4104 if (1u) _cf = (((edi) >> 31) & 1u); /* 0x2509364B: shl edi, 1 */ 4105 if (1u) { _flag_a = recomp_flags_pack((edi << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4106 edi = edi << 1u; /* 0x2509364B: shl edi, 1 */ 4107 ecx = edi + edi * 2; /* 0x2509364D: lea ecx, [edi + edi*2] */ 4108 if (3u) _cf = (((ecx) >> 29) & 1u); /* 0x25093650: shl ecx, 3 */ 4109 if (3u) { _flag_a = recomp_flags_pack((ecx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4110 ecx = ecx << 3u; /* 0x25093650: shl ecx, 3 */ 4111 PUSH32(esp, ecx); /* 0x25093653: push ecx */ 4112 MEM32(esi + 0x1DC) = eax; /* 0x25093654: mov dword ptr [esi + 0x1dc], eax */ 4113 RECOMP_ICALL(0x251380D0u); /* 0x2509365A: call 0x251380d0 */ /* not lifted */ 4114 RECOMP_FLAGS_IN(); 4115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4117 esp = esp + 8; /* 0x2509365F: add esp, 8 */ 4118 _flag_k = FK_ADD; 4119 /* cmp eax, ebx */ /* 0x25093662: cmp eax, ebx */ 4120 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4122 _flag_k = FK_CMP; 4123 if (CMP_EQ(_flag_a, _flag_b)) goto L_25093681; /* 0x25093664: je 0x25093681 */ 4124 L_25093666: 4125 edx = edi + (-0x1); /* 0x25093666: lea edx, [edi - 1] */ 4126 /* cmp edx, ebx */ /* 0x25093669: cmp edx, ebx */ 4127 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 4128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4129 _flag_k = FK_CMP; 4130 if (CMP_L(_flag_a, _flag_b)) goto L_25093683; /* 0x2509366B: jl 0x25093683 */ 4131 L_2509366D: 4132 ecx = eax + 0x8; /* 0x2509366D: lea ecx, [eax + 8] */ 4133 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4134 edx = edx + 1; /* 0x25093670: inc edx */ 4135 _flag_k = FK_INC; 4136 L_25093671: 4137 MEM32(ecx + (-0x8)) = ebx; /* 0x25093671: mov dword ptr [ecx - 8], ebx */ 4138 MEM32(ecx + (-0x4)) = ebx; /* 0x25093674: mov dword ptr [ecx - 4], ebx */ 4139 MEM32(ecx) = ebx; /* 0x25093677: mov dword ptr [ecx], ebx */ 4140 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 4141 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4142 ecx = ecx + 0x18u; /* 0x25093679: add ecx, 0x18 */ 4143 _flag_k = FK_ADD; 4144 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4145 edx = edx - 1; /* 0x2509367C: dec edx */ 4146 _flag_k = FK_DEC; 4147 RECOMP_BACKEDGE(); 4148 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_25093671; /* 0x2509367D: jne 0x25093671 */ 4149 L_2509367F: 4150 goto L_25093683; /* 0x2509367F: jmp 0x25093683 */ 4151 L_25093681: 4152 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4153 eax = 0; /* 0x25093681: xor eax, eax */ 4154 _cf = 0; 4155 _flag_k = FK_TEST; 4156 L_25093683: 4157 edi = MEM32(esi + 0x1D8); /* 0x25093683: mov edi, dword ptr [esi + 0x1d8] */ 4158 /* cmp edi, ebx */ /* 0x25093689: cmp edi, ebx */ 4159 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4160 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4161 _flag_k = FK_CMP; 4162 MEM32(esi + 0x1E0) = eax; /* 0x2509368B: mov dword ptr [esi + 0x1e0], eax */ 4163 MEM32(ebp + (-0x1C)) = ebx; /* 0x25093691: mov dword ptr [ebp - 0x1c], ebx */ 4164 MEM32(ebp + (-0x20)) = edi; /* 0x25093694: mov dword ptr [ebp - 0x20], edi */ 4165 if (CMP_LE(_flag_a, _flag_b)) goto L_250938BC; /* 0x25093697: jle 0x250938bc */ 4166 L_2509369D: 4167 fp_push(*(double*)ADDR(0x25155880)); /* 0x2509369D: fld qword ptr [0x25155880] */ 4168 edi = edi + edi * 2; /* 0x250936A3: lea edi, [edi + edi*2] */ 4169 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x250936A6: fcos */ 4170 MEM32(ebp + (-0x3C)) = 0; /* 0x250936A8: mov dword ptr [ebp - 0x3c], 0 */ 4171 MEM32(ebp + (-0x38)) = 0; /* 0x250936AF: mov dword ptr [ebp - 0x38], 0 */ 4172 if (3u) _cf = (((edi) >> 29) & 1u); /* 0x250936B6: shl edi, 3 */ 4173 if (3u) { _flag_a = recomp_flags_pack((edi << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4174 edi = edi << 3u; /* 0x250936B6: shl edi, 3 */ 4175 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x250936B9: fstp dword ptr [ebp + 8] */ 4176 fp_push(*(double*)ADDR(0x25155880)); /* 0x250936BC: fld qword ptr [0x25155880] */ 4177 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x250936C2: fsin */ 4178 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x250936C4: fstp dword ptr [ebp + 0x14] */ 4179 L_250936C7: 4180 RECOMP_ICALL(MEM32(0x25151264)); /* 0x250936C7: call dword ptr [0x25151264] */ 4181 RECOMP_FLAGS_IN(); 4182 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x250936CD: cdq */ 4183 ecx = 0x8CA0u; /* 0x250936CE: mov ecx, 0x8ca0 */ 4184 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x250936D3: idiv ecx */ 4185 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 4186 else { eax = 0; edx = 0; } } 4187 MEM32(ebp + 0xC) = edx; /* 0x250936D5: mov dword ptr [ebp + 0xc], edx */ 4188 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x250936D8: fild dword ptr [ebp + 0xc] */ 4189 _st[0] *= (double)*(float*)ADDR(0x25151868); /* 0x250936DB: fmul dword ptr [0x25151868] */ 4190 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x250936E1: fstp dword ptr [ebp - 0x10] */ 4191 RECOMP_ICALL(MEM32(0x25151264)); /* 0x250936E4: call dword ptr [0x25151264] */ 4192 RECOMP_FLAGS_IN(); 4193 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x250936EA: cdq */ 4194 ecx = 0x8CA0u; /* 0x250936EB: mov ecx, 0x8ca0 */ 4195 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x250936F0: idiv ecx */ 4196 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 4197 else { eax = 0; edx = 0; } } 4198 ecx = ebp + (-0x78); /* 0x250936F2: lea ecx, [ebp - 0x78] */ 4199 MEM32(ebp + 0xC) = edx; /* 0x250936F5: mov dword ptr [ebp + 0xc], edx */ 4200 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x250936F8: fild dword ptr [ebp + 0xc] */ 4201 _st[0] *= (double)*(float*)ADDR(0x25151868); /* 0x250936FB: fmul dword ptr [0x25151868] */ 4202 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x25093701: fstp dword ptr [ebp + 0xc] */ 4203 RECOMP_ICALL(MEM32(0x251515A4)); /* 0x25093704: call dword ptr [0x251515a4] */ 4204 RECOMP_FLAGS_IN(); 4205 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x2509370A: fld dword ptr [ebp + 0xc] */ 4206 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x2509370D: fcos */ 4207 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2509370F: fld dword ptr [ebp - 0x10] */ 4208 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x25093712: fcos */ 4209 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x25093714: fld dword ptr [ebp + 0xc] */ 4210 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x25093717: fsin */ 4211 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x25093719: fld dword ptr [ebp - 0x10] */ 4212 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x2509371C: fsin */ 4213 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2509371E: fld dword ptr [ebp + 8] */ 4214 _st[0] *= _st[3]; /* 0x25093721: fmul st(3) */ 4215 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x25093723: fstp dword ptr [ebp - 0x14] */ 4216 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x25093726: fld dword ptr [ebp + 0x14] */ 4217 _st[0] *= _st[3]; /* 0x25093729: fmul st(3) */ 4218 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x2509372B: fstp dword ptr [ebp + 0xc] */ 4219 fp_push(_st[0]); /* 0x2509372E: fld st(0) */ 4220 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x25093730: fmul dword ptr [ebp + 8] */ 4221 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x25093733: fstp dword ptr [ebp - 0x10] */ 4222 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x25093736: fld dword ptr [ebp + 0x14] */ 4223 _st[0] *= _st[1]; /* 0x25093739: fmul st(1) */ 4224 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2509373B: fst dword ptr [ebp - 0x18] */ 4225 _st[0] *= _st[2]; /* 0x2509373E: fmul st(2) */ 4226 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x25093740: fadd dword ptr [ebp - 0x14] */ 4227 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x25093743: fstp dword ptr [ebp - 0x78] */ 4228 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x25093746: fld dword ptr [ebp - 0x10] */ 4229 _st[0] *= _st[2]; /* 0x25093749: fmul st(2) */ 4230 _st[0] -= (double)*(float*)ADDR(ebp + 0xC); /* 0x2509374B: fsub dword ptr [ebp + 0xc] */ 4231 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x2509374E: fstp dword ptr [ebp - 0x74] */ 4232 _st[0] *= _st[3]; /* 0x25093751: fmul st(3) */ 4233 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x25093753: fstp dword ptr [ebp - 0x70] */ 4234 fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x25093756: fld dword ptr [ebp + 0x14] */ 4235 _st[0] *= _st[3]; /* 0x25093759: fmul st(3) */ 4236 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x2509375B: fstp dword ptr [ebp - 0x6c] */ 4237 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2509375E: fld dword ptr [ebp + 8] */ 4238 _st[0] *= _st[3]; /* 0x25093761: fmul st(3) */ 4239 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x25093763: fstp dword ptr [ebp - 0x68] */ 4240 fp_push(_st[0]); /* 0x25093766: fld st(0) */ 4241 _st[0] = -_st[0]; /* 0x25093768: fchs */ 4242 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x2509376A: fstp dword ptr [ebp - 0x64] */ 4243 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x2509376D: fld dword ptr [ebp + 0xc] */ 4244 _st[0] *= _st[1]; /* 0x25093770: fmul st(1) */ 4245 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x25093772: fsub dword ptr [ebp - 0x10] */ 4246 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x25093775: fstp dword ptr [ebp - 0x60] */ 4247 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x25093778: fld dword ptr [ebp - 0x14] */ 4248 _st[0] *= _st[1]; /* 0x2509377B: fmul st(1) */ 4249 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2509377D: fadd dword ptr [ebp - 0x18] */ 4250 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x25093780: fstp dword ptr [ebp - 0x5c] */ 4251 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25093783: fstp st(0) */ 4252 _st[0] *= _st[1]; /* 0x25093785: fmul st(1) */ 4253 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x25093787: fstp dword ptr [ebp - 0x58] */ 4254 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2509378A: fstp st(0) */ 4255 RECOMP_ICALL(MEM32(0x25151264)); /* 0x2509378C: call dword ptr [0x25151264] */ 4256 RECOMP_FLAGS_IN(); 4257 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x25093792: cdq */ 4258 ecx = 0x3E8u; /* 0x25093793: mov ecx, 0x3e8 */ 4259 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x25093798: idiv ecx */ 4260 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 4261 else { eax = 0; edx = 0; } } 4262 MEM32(ebp + 0xC) = edx; /* 0x2509379A: mov dword ptr [ebp + 0xc], edx */ 4263 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x2509379D: fild dword ptr [ebp + 0xc] */ 4264 fp_push(*(float*)&MEM32(esi + 0x1D4)); /* 0x250937A0: fld dword ptr [esi + 0x1d4] */ 4265 RECOMP_ICALL(0x251381A0u); /* 0x250937A6: call 0x251381a0 */ /* not lifted */ 4266 RECOMP_FLAGS_IN(); 4267 edx = MEM32(ebp + (-0x3C)); /* 0x250937AB: mov edx, dword ptr [ebp - 0x3c] */ 4268 eax = MEM32(ebp + (-0x38)); /* 0x250937AE: mov eax, dword ptr [ebp - 0x38] */ 4269 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x250937B1: fstp dword ptr [ebp - 0x34] */ 4270 MEM32(ebp + (-0x54)) = edx; /* 0x250937B4: mov dword ptr [ebp - 0x54], edx */ 4271 ecx = MEM32(ebp + (-0x34)); /* 0x250937B7: mov ecx, dword ptr [ebp - 0x34] */ 4272 edx = ebp + (-0x78); /* 0x250937BA: lea edx, [ebp - 0x78] */ 4273 MEM32(ebp + (-0x4C)) = ecx; /* 0x250937BD: mov dword ptr [ebp - 0x4c], ecx */ 4274 PUSH32(esp, edx); /* 0x250937C0: push edx */ 4275 ecx = ebp + (-0x54); /* 0x250937C1: lea ecx, [ebp - 0x54] */ 4276 MEM32(ebp + (-0x50)) = eax; /* 0x250937C4: mov dword ptr [ebp - 0x50], eax */ 4277 RECOMP_ICALL(MEM32(0x2515159C)); /* 0x250937C7: call dword ptr [0x2515159c] */ 4278 RECOMP_FLAGS_IN(); 4279 edx = eax; /* 0x250937CD: mov edx, eax */ 4280 eax = MEM32(edx); /* 0x250937CF: mov eax, dword ptr [edx] */ 4281 ecx = MEM32(edx + 0x4); /* 0x250937D1: mov ecx, dword ptr [edx + 4] */ 4282 edx = MEM32(edx + 0x8); /* 0x250937D4: mov edx, dword ptr [edx + 8] */ 4283 MEM32(ebp + (-0x40)) = edx; /* 0x250937D7: mov dword ptr [ebp - 0x40], edx */ 4284 MEM32(ebp + (-0x48)) = eax; /* 0x250937DA: mov dword ptr [ebp - 0x48], eax */ 4285 MEM32(ebp + (-0x30)) = eax; /* 0x250937DD: mov dword ptr [ebp - 0x30], eax */ 4286 MEM32(ebp + (-0x44)) = ecx; /* 0x250937E0: mov dword ptr [ebp - 0x44], ecx */ 4287 edx = ebx; /* 0x250937E3: mov edx, ebx */ 4288 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x1E0)); 4289 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4290 edx = edx + MEM32(esi + 0x1E0); /* 0x250937E5: add edx, dword ptr [esi + 0x1e0] */ 4291 _flag_k = FK_ADD; 4292 MEM32(edx) = eax; /* 0x250937EB: mov dword ptr [edx], eax */ 4293 MEM32(edx + 0x4) = ecx; /* 0x250937ED: mov dword ptr [edx + 4], ecx */ 4294 ecx = MEM32(ebp + (-0x40)); /* 0x250937F0: mov ecx, dword ptr [ebp - 0x40] */ 4295 eax = MEM32(ebp + (-0x44)); /* 0x250937F3: mov eax, dword ptr [ebp - 0x44] */ 4296 MEM32(edx + 0x8) = ecx; /* 0x250937F6: mov dword ptr [edx + 8], ecx */ 4297 MEM32(ebp + (-0x2C)) = eax; /* 0x250937F9: mov dword ptr [ebp - 0x2c], eax */ 4298 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x250937FC: fld dword ptr [ebp - 0x2c] */ 4299 _st[0] += (double)*(float*)ADDR(0x25151788); /* 0x250937FF: fadd dword ptr [0x25151788] */ 4300 MEM32(ebp + (-0x28)) = ecx; /* 0x25093805: mov dword ptr [ebp - 0x28], ecx */ 4301 ecx = MEM32(ebp + (-0x48)); /* 0x25093808: mov ecx, dword ptr [ebp - 0x48] */ 4302 edx = MEM32(ebp + (-0x28)); /* 0x2509380B: mov edx, dword ptr [ebp - 0x28] */ 4303 MEM32(ebp + (-0x30)) = ecx; /* 0x2509380E: mov dword ptr [ebp - 0x30], ecx */ 4304 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x25093811: fstp dword ptr [ebp - 0x2c] */ 4305 ecx = MEM32(esi + 0x1E0); /* 0x25093814: mov ecx, dword ptr [esi + 0x1e0] */ 4306 MEM32(ebp + (-0x28)) = edx; /* 0x2509381A: mov dword ptr [ebp - 0x28], edx */ 4307 edx = MEM32(ebp + (-0x2C)); /* 0x2509381D: mov edx, dword ptr [ebp - 0x2c] */ 4308 eax = edi; /* 0x25093820: mov eax, edi */ 4309 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4311 eax = eax + ecx; /* 0x25093822: add eax, ecx */ 4312 _flag_k = FK_ADD; 4313 ecx = MEM32(ebp + (-0x30)); /* 0x25093824: mov ecx, dword ptr [ebp - 0x30] */ 4314 MEM32(eax) = ecx; /* 0x25093827: mov dword ptr [eax], ecx */ 4315 ecx = MEM32(ebp + (-0x28)); /* 0x25093829: mov ecx, dword ptr [ebp - 0x28] */ 4316 MEM32(eax + 0x4) = edx; /* 0x2509382C: mov dword ptr [eax + 4], edx */ 4317 MEM32(eax + 0x8) = ecx; /* 0x2509382F: mov dword ptr [eax + 8], ecx */ 4318 edx = MEM32(esi + 0x1E0); /* 0x25093832: mov edx, dword ptr [esi + 0x1e0] */ 4319 eax = ebx; /* 0x25093838: mov eax, ebx */ 4320 MEM8(eax + edx + 0xE) = (uint8_t)(0xFFu); /* 0x2509383A: mov byte ptr [eax + edx + 0xe], 0xff */ 4321 MEM8(eax + edx + 0xD) = (uint8_t)(0); /* 0x2509383F: mov byte ptr [eax + edx + 0xd], 0 */ 4322 MEM8(eax + edx + 0xC) = (uint8_t)(0); /* 0x25093844: mov byte ptr [eax + edx + 0xc], 0 */ 4323 ecx = MEM32(esi + 0x1E0); /* 0x25093849: mov ecx, dword ptr [esi + 0x1e0] */ 4324 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4326 eax = eax + edx; /* 0x2509384F: add eax, edx */ 4327 _flag_k = FK_ADD; 4328 eax = edi; /* 0x25093851: mov eax, edi */ 4329 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4330 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4331 eax = eax + ecx; /* 0x25093853: add eax, ecx */ 4332 _flag_k = FK_ADD; 4333 MEM8(eax + 0xE) = (uint8_t)(0xFFu); /* 0x25093855: mov byte ptr [eax + 0xe], 0xff */ 4334 MEM8(eax + 0xD) = (uint8_t)(0); /* 0x25093859: mov byte ptr [eax + 0xd], 0 */ 4335 MEM8(eax + 0xC) = (uint8_t)(0); /* 0x2509385D: mov byte ptr [eax + 0xc], 0 */ 4336 edx = MEM32(esi + 0x1E0); /* 0x25093861: mov edx, dword ptr [esi + 0x1e0] */ 4337 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4338 ecx = 0; /* 0x25093867: xor ecx, ecx */ 4339 _cf = 0; 4340 _flag_k = FK_TEST; 4341 eax = ebx; /* 0x25093869: mov eax, ebx */ 4342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4343 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4344 eax = eax + edx; /* 0x2509386B: add eax, edx */ 4345 _flag_k = FK_ADD; 4346 MEM32(eax + 0x10) = ecx; /* 0x2509386D: mov dword ptr [eax + 0x10], ecx */ 4347 MEM32(eax + 0x14) = ecx; /* 0x25093870: mov dword ptr [eax + 0x14], ecx */ 4348 ecx = MEM32(esi + 0x1E0); /* 0x25093873: mov ecx, dword ptr [esi + 0x1e0] */ 4349 eax = edi; /* 0x25093879: mov eax, edi */ 4350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4352 eax = eax + ecx; /* 0x2509387B: add eax, ecx */ 4353 _flag_k = FK_ADD; 4354 ecx = 0x3F800000u; /* 0x2509387D: mov ecx, 0x3f800000 */ 4355 MEM32(eax + 0x10) = ecx; /* 0x25093882: mov dword ptr [eax + 0x10], ecx */ 4356 MEM32(eax + 0x14) = ecx; /* 0x25093885: mov dword ptr [eax + 0x14], ecx */ 4357 edx = MEM32(esi + 0x1DC); /* 0x25093888: mov edx, dword ptr [esi + 0x1dc] */ 4358 ecx = MEM32(ebp + (-0x1C)); /* 0x2509388E: mov ecx, dword ptr [ebp - 0x1c] */ 4359 eax = edx + ecx * 4; /* 0x25093891: lea eax, [edx + ecx*4] */ 4360 edx = MEM32(ebp + (-0x20)); /* 0x25093894: mov edx, dword ptr [ebp - 0x20] */ 4361 MEM16(eax) = (uint16_t)(LO16(ecx)); /* 0x25093897: mov word ptr [eax], cx */ 4362 MEM16(eax + 0x2) = (uint16_t)(LO16(edx)); /* 0x2509389A: mov word ptr [eax + 2], dx */ 4363 eax = MEM32(esi + 0x1D8); /* 0x2509389E: mov eax, dword ptr [esi + 0x1d8] */ 4364 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4365 ecx = ecx + 1; /* 0x250938A4: inc ecx */ 4366 _flag_k = FK_INC; 4367 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x18u); 4368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4369 ebx = ebx + 0x18u; /* 0x250938A5: add ebx, 0x18 */ 4370 _flag_k = FK_ADD; 4371 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4372 edx = edx + 1; /* 0x250938A8: inc edx */ 4373 _flag_k = FK_INC; 4374 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u); 4375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4376 edi = edi + 0x18u; /* 0x250938A9: add edi, 0x18 */ 4377 _flag_k = FK_ADD; 4378 /* cmp ecx, eax */ /* 0x250938AC: cmp ecx, eax */ 4379 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4381 _flag_k = FK_CMP; 4382 MEM32(ebp + (-0x1C)) = ecx; /* 0x250938AE: mov dword ptr [ebp - 0x1c], ecx */ 4383 MEM32(ebp + (-0x20)) = edx; /* 0x250938B1: mov dword ptr [ebp - 0x20], edx */ 4384 RECOMP_BACKEDGE(); 4385 if (CMP_L(_flag_a, _flag_b)) goto L_250936C7; /* 0x250938B4: jl 0x250936c7 */ 4386 L_250938BA: 4387 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4388 ebx = 0; /* 0x250938BA: xor ebx, ebx */ 4389 _cf = 0; 4390 _flag_k = FK_TEST; 4391 L_250938BC: 4392 /* cmp MEM32(ebp + 0x10), ebx */ /* 0x250938BC: cmp dword ptr [ebp + 0x10], ebx */ 4393 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(ebx); 4394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4395 _flag_k = FK_CMP; 4396 SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250938BF: setne al */ 4397 PUSH32(esp, 2); /* 0x250938C2: push 2 */ 4398 MEM8(esi + 0x1E4) = (uint8_t)(LO8(eax)); /* 0x250938C4: mov byte ptr [esi + 0x1e4], al */ 4399 RECOMP_ICALL(0x25074DB0u); /* 0x250938CA: call 0x25074db0 */ /* not lifted */ 4400 RECOMP_FLAGS_IN(); 4401 ecx = eax; /* 0x250938CF: mov ecx, eax */ 4402 RECOMP_ICALL(0x25074EA0u); /* 0x250938D1: call 0x25074ea0 */ /* not lifted */ 4403 RECOMP_FLAGS_IN(); 4404 PUSH32(esp, 8); /* 0x250938D6: push 8 */ 4405 ecx = esi; /* 0x250938D8: mov ecx, esi */ 4406 MEM32(esi + 0x1E8) = eax; /* 0x250938DA: mov dword ptr [esi + 0x1e8], eax */ 4407 RECOMP_ICALL(0x250DDB50u); /* 0x250938E0: call 0x250ddb50 */ /* not lifted */ 4408 RECOMP_FLAGS_IN(); 4409 MEM32(esi + 0x1EC) = 2; /* 0x250938E5: mov dword ptr [esi + 0x1ec], 2 */ 4410 L_250938EF: 4411 ecx = MEM32(ebp + (-0xC)); /* 0x250938EF: mov ecx, dword ptr [ebp - 0xc] */ 4412 edi = POP32_VAL(esp); /* 0x250938F2: pop edi */ 4413 eax = esi; /* 0x250938F3: mov eax, esi */ 4414 esi = POP32_VAL(esp); /* 0x250938F5: pop esi */ 4415 ebx = POP32_VAL(esp); /* 0x250938F6: pop ebx */ 4416 MEM32(FS_BASE + (0)) = ecx; /* 0x250938F7: mov dword ptr fs:[0], ecx */ 4417 esp = ebp; /* 0x250938FE: mov esp, ebp */ 4418 ebp = POP32_VAL(esp); /* 0x25093900: pop ebp */ 4419 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25093901: ret 0x10 */ 4420 RECOMP_REGS_OUT(); 4421 } 4422 4423 void sub_250938EF(void) { 4424 int _fpu_cmp = 0; 4425 uint32_t _cf = 0; 4426 int _df = 1; 4427 uint32_t _flag_k = FK_NONE; 4428 uint32_t _flag_a = 0, _flag_b = 0; 4429 uint32_t _itail_tgt = 0; 4430 RECOMP_REGS_LOCALS 4431 RECOMP_ENTER(0x250938EFu); 4432 4433 L_250938EF: 4434 ecx = MEM32(ebp + (-0xC)); /* 0x250938EF: mov ecx, dword ptr [ebp - 0xc] */ 4435 edi = POP32_VAL(esp); /* 0x250938F2: pop edi */ 4436 eax = esi; /* 0x250938F3: mov eax, esi */ 4437 esi = POP32_VAL(esp); /* 0x250938F5: pop esi */ 4438 ebx = POP32_VAL(esp); /* 0x250938F6: pop ebx */ 4439 MEM32(FS_BASE + (0)) = ecx; /* 0x250938F7: mov dword ptr fs:[0], ecx */ 4440 esp = ebp; /* 0x250938FE: mov esp, ebp */ 4441 ebp = POP32_VAL(esp); /* 0x25093900: pop ebp */ 4442 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25093901: ret 0x10 */ 4443 RECOMP_REGS_OUT(); 4444 } 4445 4446 void sub_25093910(void) { 4447 int _fpu_cmp = 0; 4448 uint32_t _cf = 0; 4449 int _df = 1; 4450 uint32_t _flag_k = FK_NONE; 4451 uint32_t _flag_a = 0, _flag_b = 0; 4452 uint32_t _itail_tgt = 0; 4453 RECOMP_REGS_LOCALS 4454 RECOMP_ENTER(0x25093910u); 4455 4456 L_25093910: 4457 PUSH32(esp, esi); /* 0x25093910: push esi */ 4458 esi = ecx; /* 0x25093911: mov esi, ecx */ 4459 eax = MEM32(esi + 0x1DC); /* 0x25093913: mov eax, dword ptr [esi + 0x1dc] */ 4460 /* test eax, eax */ /* 0x25093919: test eax, eax */ 4461 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4462 _cf = 0; 4463 _flag_k = FK_TEST; 4464 MEM32(esi) = 0x25155C1Cu; /* 0x2509391B: mov dword ptr [esi], 0x25155c1c */ 4465 MEM32(esi + 0x8) = 0x25155C0Cu; /* 0x25093921: mov dword ptr [esi + 8], 0x25155c0c */ 4466 MEM32(esi + 0x20) = 0x25155BFCu; /* 0x25093928: mov dword ptr [esi + 0x20], 0x25155bfc */ 4467 MEM32(esi + 0x38) = 0x25155BECu; /* 0x2509392F: mov dword ptr [esi + 0x38], 0x25155bec */ 4468 MEM32(esi + 0x50) = 0x25155BDCu; /* 0x25093936: mov dword ptr [esi + 0x50], 0x25155bdc */ 4469 MEM32(esi + 0x138) = 0x25155BCCu; /* 0x2509393D: mov dword ptr [esi + 0x138], 0x25155bcc */ 4470 MEM32(esi + 0x150) = 0x25155BBCu; /* 0x25093947: mov dword ptr [esi + 0x150], 0x25155bbc */ 4471 if (TEST_Z(_flag_a, _flag_b)) goto L_25093966; /* 0x25093951: je 0x25093966 */ 4472 L_25093953: 4473 PUSH32(esp, eax); /* 0x25093953: push eax */ 4474 RECOMP_ICALL(0x25137EECu); /* 0x25093954: call 0x25137eec */ /* not lifted */ 4475 RECOMP_FLAGS_IN(); 4476 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4478 esp = esp + 4; /* 0x25093959: add esp, 4 */ 4479 _flag_k = FK_ADD; 4480 MEM32(esi + 0x1DC) = 0; /* 0x2509395C: mov dword ptr [esi + 0x1dc], 0 */ 4481 L_25093966: 4482 eax = MEM32(esi + 0x1E0); /* 0x25093966: mov eax, dword ptr [esi + 0x1e0] */ 4483 /* test eax, eax */ /* 0x2509396C: test eax, eax */ 4484 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4485 _cf = 0; 4486 _flag_k = FK_TEST; 4487 if (TEST_Z(_flag_a, _flag_b)) goto L_25093983; /* 0x2509396E: je 0x25093983 */ 4488 L_25093970: 4489 PUSH32(esp, eax); /* 0x25093970: push eax */ 4490 RECOMP_ICALL(0x25137EECu); /* 0x25093971: call 0x25137eec */ /* not lifted */ 4491 RECOMP_FLAGS_IN(); 4492 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4493 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4494 esp = esp + 4; /* 0x25093976: add esp, 4 */ 4495 _flag_k = FK_ADD; 4496 MEM32(esi + 0x1E0) = 0; /* 0x25093979: mov dword ptr [esi + 0x1e0], 0 */ 4497 L_25093983: 4498 ecx = esi; /* 0x25093983: mov ecx, esi */ 4499 RECOMP_ICALL(0x250DB0B0u); /* 0x25093985: call 0x250db0b0 */ /* not lifted */ 4500 RECOMP_FLAGS_IN(); 4501 esi = POP32_VAL(esp); /* 0x2509398A: pop esi */ 4502 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509398B: ret */ 4503 RECOMP_REGS_OUT(); 4504 } 4505 4506 void sub_25093990(void) { 4507 int _fpu_cmp = 0; 4508 uint32_t _cf = 0; 4509 int _df = 1; 4510 uint32_t _flag_k = FK_NONE; 4511 uint32_t _flag_a = 0, _flag_b = 0; 4512 uint32_t _itail_tgt = 0; 4513 RECOMP_REGS_LOCALS 4514 RECOMP_ENTER(0x25093990u); 4515 4516 L_25093990: 4517 PUSH32(esp, ebp); /* 0x25093990: push ebp */ 4518 ebp = esp; /* 0x25093991: mov ebp, esp */ 4519 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4521 esp = esp - 0xCu; /* 0x25093993: sub esp, 0xc */ 4522 _flag_k = FK_CMP; 4523 PUSH32(esp, ebx); /* 0x25093996: push ebx */ 4524 PUSH32(esp, esi); /* 0x25093997: push esi */ 4525 esi = ecx; /* 0x25093998: mov esi, ecx */ 4526 eax = MEM32(esi + 0x1D8); /* 0x2509399A: mov eax, dword ptr [esi + 0x1d8] */ 4527 /* test eax, eax */ /* 0x250939A0: test eax, eax */ 4528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4529 _cf = 0; 4530 _flag_k = FK_TEST; 4531 PUSH32(esp, edi); /* 0x250939A2: push edi */ 4532 if (TEST_Z(_flag_a, _flag_b)) goto L_25093CAC; /* 0x250939A3: je 0x25093cac */ 4533 L_250939A9: 4534 ebx = MEM32(ebp + 0x8); /* 0x250939A9: mov ebx, dword ptr [ebp + 8] */ 4535 edi = MEM32(ebx + 0x4); /* 0x250939AC: mov edi, dword ptr [ebx + 4] */ 4536 /* test edi, edi */ /* 0x250939AF: test edi, edi */ 4537 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4538 _cf = 0; 4539 _flag_k = FK_TEST; 4540 if (TEST_NZ(_flag_a, _flag_b)) goto L_250939B7; /* 0x250939B1: jne 0x250939b7 */ 4541 L_250939B3: 4542 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4543 edx = 0; /* 0x250939B3: xor edx, edx */ 4544 _cf = 0; 4545 _flag_k = FK_TEST; 4546 goto L_250939CC; /* 0x250939B5: jmp 0x250939cc */ 4547 L_250939B7: 4548 ecx = MEM32(ebx + 0x8); /* 0x250939B7: mov ecx, dword ptr [ebx + 8] */ 4549 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4551 ecx = ecx - edi; /* 0x250939BA: sub ecx, edi */ 4552 _flag_k = FK_CMP; 4553 eax = 0x2AAAAAABu; /* 0x250939BC: mov eax, 0x2aaaaaab */ 4554 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x250939C1: imul ecx */ 4555 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4556 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4557 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x250939C3: sar edx, 1 */ 4558 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4559 edx = (uint32_t)((int32_t)edx >> 1u); 4560 eax = edx; /* 0x250939C5: mov eax, edx */ 4561 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x250939C7: shr eax, 0x1f */ 4562 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4563 eax = eax >> 31u; /* 0x250939C7: shr eax, 0x1f */ 4564 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4566 edx = edx + eax; /* 0x250939CA: add edx, eax */ 4567 _flag_k = FK_ADD; 4568 L_250939CC: 4569 /* cmp MEM32(esi + 0x1D8), edx */ /* 0x250939CC: cmp dword ptr [esi + 0x1d8], edx */ 4570 _flag_a = (uint32_t)(MEM32(esi + 0x1D8)); _flag_b = (uint32_t)(edx); 4571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4572 _flag_k = FK_CMP; 4573 if (CMP_B(_flag_a, _flag_b)) goto L_25093B0C; /* 0x250939D2: jb 0x25093b0c */ 4574 L_250939D8: 4575 /* test edi, edi */ /* 0x250939D8: test edi, edi */ 4576 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4577 _cf = 0; 4578 _flag_k = FK_TEST; 4579 if (TEST_NZ(_flag_a, _flag_b)) goto L_250939E0; /* 0x250939DA: jne 0x250939e0 */ 4580 L_250939DC: 4581 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4582 edx = 0; /* 0x250939DC: xor edx, edx */ 4583 _cf = 0; 4584 _flag_k = FK_TEST; 4585 goto L_250939F5; /* 0x250939DE: jmp 0x250939f5 */ 4586 L_250939E0: 4587 ecx = MEM32(ebx + 0x8); /* 0x250939E0: mov ecx, dword ptr [ebx + 8] */ 4588 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4590 ecx = ecx - edi; /* 0x250939E3: sub ecx, edi */ 4591 _flag_k = FK_CMP; 4592 eax = 0x2AAAAAABu; /* 0x250939E5: mov eax, 0x2aaaaaab */ 4593 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x250939EA: imul ecx */ 4594 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4595 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4596 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x250939EC: sar edx, 1 */ 4597 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4598 edx = (uint32_t)((int32_t)edx >> 1u); 4599 ecx = edx; /* 0x250939EE: mov ecx, edx */ 4600 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x250939F0: shr ecx, 0x1f */ 4601 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4602 ecx = ecx >> 31u; /* 0x250939F0: shr ecx, 0x1f */ 4603 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4605 edx = edx + ecx; /* 0x250939F3: add edx, ecx */ 4606 _flag_k = FK_ADD; 4607 L_250939F5: 4608 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4609 edi = 0; /* 0x250939F5: xor edi, edi */ 4610 _cf = 0; 4611 _flag_k = FK_TEST; 4612 /* cmp edx, edi */ /* 0x250939F7: cmp edx, edi */ 4613 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 4614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4615 _flag_k = FK_CMP; 4616 ebx = edx; /* 0x250939F9: mov ebx, edx */ 4617 MEM32(esi + 0x1D8) = edx; /* 0x250939FB: mov dword ptr [esi + 0x1d8], edx */ 4618 MEM32(ebp + (-0x8)) = edi; /* 0x25093A01: mov dword ptr [ebp - 8], edi */ 4619 MEM32(ebp + (-0xC)) = ebx; /* 0x25093A04: mov dword ptr [ebp - 0xc], ebx */ 4620 if (CMP_LE(_flag_a, _flag_b)) goto L_25093CAC; /* 0x25093A07: jle 0x25093cac */ 4621 L_25093A0D: 4622 ebx = ebx + ebx * 2; /* 0x25093A0D: lea ebx, [ebx + ebx*2] */ 4623 if (3u) _cf = (((ebx) >> 29) & 1u); /* 0x25093A10: shl ebx, 3 */ 4624 if (3u) { _flag_a = recomp_flags_pack((ebx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4625 ebx = ebx << 3u; /* 0x25093A10: shl ebx, 3 */ 4626 MEM32(ebp + (-0x4)) = edi; /* 0x25093A13: mov dword ptr [ebp - 4], edi */ 4627 L_25093A16: 4628 eax = MEM32(ebp + 0x8); /* 0x25093A16: mov eax, dword ptr [ebp + 8] */ 4629 ecx = MEM32(eax + 0x4); /* 0x25093A19: mov ecx, dword ptr [eax + 4] */ 4630 eax = MEM32(esi + 0x1E0); /* 0x25093A1C: mov eax, dword ptr [esi + 0x1e0] */ 4631 edx = edi; /* 0x25093A22: mov edx, edi */ 4632 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4634 edx = edx + ecx; /* 0x25093A24: add edx, ecx */ 4635 _flag_k = FK_ADD; 4636 ecx = MEM32(ebp + (-0x4)); /* 0x25093A26: mov ecx, dword ptr [ebp - 4] */ 4637 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4638 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4639 ecx = ecx + eax; /* 0x25093A29: add ecx, eax */ 4640 _flag_k = FK_ADD; 4641 eax = MEM32(edx); /* 0x25093A2B: mov eax, dword ptr [edx] */ 4642 MEM32(ecx) = eax; /* 0x25093A2D: mov dword ptr [ecx], eax */ 4643 eax = MEM32(edx + 0x4); /* 0x25093A2F: mov eax, dword ptr [edx + 4] */ 4644 MEM32(ecx + 0x4) = eax; /* 0x25093A32: mov dword ptr [ecx + 4], eax */ 4645 edx = MEM32(edx + 0x8); /* 0x25093A35: mov edx, dword ptr [edx + 8] */ 4646 MEM32(ecx + 0x8) = edx; /* 0x25093A38: mov dword ptr [ecx + 8], edx */ 4647 ecx = MEM32(ebp + 0xC); /* 0x25093A3B: mov ecx, dword ptr [ebp + 0xc] */ 4648 edx = MEM32(ecx + 0x4); /* 0x25093A3E: mov edx, dword ptr [ecx + 4] */ 4649 ecx = MEM32(esi + 0x1E0); /* 0x25093A41: mov ecx, dword ptr [esi + 0x1e0] */ 4650 eax = edi; /* 0x25093A47: mov eax, edi */ 4651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4652 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4653 eax = eax + edx; /* 0x25093A49: add eax, edx */ 4654 _flag_k = FK_ADD; 4655 edx = ebx; /* 0x25093A4B: mov edx, ebx */ 4656 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4658 edx = edx + ecx; /* 0x25093A4D: add edx, ecx */ 4659 _flag_k = FK_ADD; 4660 ecx = MEM32(eax); /* 0x25093A4F: mov ecx, dword ptr [eax] */ 4661 MEM32(edx) = ecx; /* 0x25093A51: mov dword ptr [edx], ecx */ 4662 ecx = MEM32(eax + 0x4); /* 0x25093A53: mov ecx, dword ptr [eax + 4] */ 4663 MEM32(edx + 0x4) = ecx; /* 0x25093A56: mov dword ptr [edx + 4], ecx */ 4664 eax = MEM32(eax + 0x8); /* 0x25093A59: mov eax, dword ptr [eax + 8] */ 4665 MEM32(edx + 0x8) = eax; /* 0x25093A5C: mov dword ptr [edx + 8], eax */ 4666 edx = MEM32(ebp + 0x10); /* 0x25093A5F: mov edx, dword ptr [ebp + 0x10] */ 4667 eax = MEM32(edx + 0x4); /* 0x25093A62: mov eax, dword ptr [edx + 4] */ 4668 ecx = edi; /* 0x25093A65: mov ecx, edi */ 4669 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4671 ecx = ecx + eax; /* 0x25093A67: add ecx, eax */ 4672 _flag_k = FK_ADD; 4673 eax = MEM32(esi + 0x1E0); /* 0x25093A69: mov eax, dword ptr [esi + 0x1e0] */ 4674 PUSH32(esp, 0x3F800000u); /* 0x25093A6F: push 0x3f800000 */ 4675 PUSH32(esp, ecx); /* 0x25093A74: push ecx */ 4676 ecx = MEM32(ebp + (-0x4)); /* 0x25093A75: mov ecx, dword ptr [ebp - 4] */ 4677 ecx = ecx + eax + 0xC; /* 0x25093A78: lea ecx, [ecx + eax + 0xc] */ 4678 RECOMP_ICALL(0x2510C080u); /* 0x25093A7C: call 0x2510c080 */ /* not lifted */ 4679 RECOMP_FLAGS_IN(); 4680 eax = MEM32(ebp + 0x10); /* 0x25093A81: mov eax, dword ptr [ebp + 0x10] */ 4681 ecx = MEM32(eax + 0x4); /* 0x25093A84: mov ecx, dword ptr [eax + 4] */ 4682 edx = edi; /* 0x25093A87: mov edx, edi */ 4683 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4685 edx = edx + ecx; /* 0x25093A89: add edx, ecx */ 4686 _flag_k = FK_ADD; 4687 ecx = MEM32(esi + 0x1E0); /* 0x25093A8B: mov ecx, dword ptr [esi + 0x1e0] */ 4688 PUSH32(esp, 0x3F800000u); /* 0x25093A91: push 0x3f800000 */ 4689 PUSH32(esp, edx); /* 0x25093A96: push edx */ 4690 ecx = ebx + ecx + 0xC; /* 0x25093A97: lea ecx, [ebx + ecx + 0xc] */ 4691 RECOMP_ICALL(0x2510C080u); /* 0x25093A9B: call 0x2510c080 */ /* not lifted */ 4692 RECOMP_FLAGS_IN(); 4693 ecx = MEM32(esi + 0x1E0); /* 0x25093AA0: mov ecx, dword ptr [esi + 0x1e0] */ 4694 eax = MEM32(ebp + (-0x4)); /* 0x25093AA6: mov eax, dword ptr [ebp - 4] */ 4695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4697 eax = eax + ecx; /* 0x25093AA9: add eax, ecx */ 4698 _flag_k = FK_ADD; 4699 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4700 ecx = 0; /* 0x25093AAB: xor ecx, ecx */ 4701 _cf = 0; 4702 _flag_k = FK_TEST; 4703 MEM32(eax + 0x10) = ecx; /* 0x25093AAD: mov dword ptr [eax + 0x10], ecx */ 4704 MEM32(eax + 0x14) = ecx; /* 0x25093AB0: mov dword ptr [eax + 0x14], ecx */ 4705 edx = MEM32(esi + 0x1E0); /* 0x25093AB3: mov edx, dword ptr [esi + 0x1e0] */ 4706 eax = ebx; /* 0x25093AB9: mov eax, ebx */ 4707 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4709 eax = eax + edx; /* 0x25093ABB: add eax, edx */ 4710 _flag_k = FK_ADD; 4711 ecx = 0x3F800000u; /* 0x25093ABD: mov ecx, 0x3f800000 */ 4712 MEM32(eax + 0x10) = ecx; /* 0x25093AC2: mov dword ptr [eax + 0x10], ecx */ 4713 MEM32(eax + 0x14) = ecx; /* 0x25093AC5: mov dword ptr [eax + 0x14], ecx */ 4714 edx = MEM32(esi + 0x1DC); /* 0x25093AC8: mov edx, dword ptr [esi + 0x1dc] */ 4715 eax = MEM32(ebp + (-0x8)); /* 0x25093ACE: mov eax, dword ptr [ebp - 8] */ 4716 ecx = edx + eax * 4; /* 0x25093AD1: lea ecx, [edx + eax*4] */ 4717 edx = MEM32(ebp + (-0xC)); /* 0x25093AD4: mov edx, dword ptr [ebp - 0xc] */ 4718 MEM16(ecx) = (uint16_t)(LO16(eax)); /* 0x25093AD7: mov word ptr [ecx], ax */ 4719 MEM16(ecx + 0x2) = (uint16_t)(LO16(edx)); /* 0x25093ADA: mov word ptr [ecx + 2], dx */ 4720 ecx = MEM32(ebp + (-0x4)); /* 0x25093ADE: mov ecx, dword ptr [ebp - 4] */ 4721 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 4722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4723 ecx = ecx + 0x18u; /* 0x25093AE1: add ecx, 0x18 */ 4724 _flag_k = FK_ADD; 4725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4726 eax = eax + 1; /* 0x25093AE4: inc eax */ 4727 _flag_k = FK_INC; 4728 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 4729 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4730 edi = edi + 0xCu; /* 0x25093AE5: add edi, 0xc */ 4731 _flag_k = FK_ADD; 4732 MEM32(ebp + (-0x4)) = ecx; /* 0x25093AE8: mov dword ptr [ebp - 4], ecx */ 4733 ecx = MEM32(esi + 0x1D8); /* 0x25093AEB: mov ecx, dword ptr [esi + 0x1d8] */ 4734 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4735 edx = edx + 1; /* 0x25093AF1: inc edx */ 4736 _flag_k = FK_INC; 4737 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x18u); 4738 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4739 ebx = ebx + 0x18u; /* 0x25093AF2: add ebx, 0x18 */ 4740 _flag_k = FK_ADD; 4741 /* cmp eax, ecx */ /* 0x25093AF5: cmp eax, ecx */ 4742 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4744 _flag_k = FK_CMP; 4745 MEM32(ebp + (-0x8)) = eax; /* 0x25093AF7: mov dword ptr [ebp - 8], eax */ 4746 MEM32(ebp + (-0xC)) = edx; /* 0x25093AFA: mov dword ptr [ebp - 0xc], edx */ 4747 RECOMP_BACKEDGE(); 4748 if (CMP_L(_flag_a, _flag_b)) goto L_25093A16; /* 0x25093AFD: jl 0x25093a16 */ 4749 L_25093B03: 4750 edi = POP32_VAL(esp); /* 0x25093B03: pop edi */ 4751 esi = POP32_VAL(esp); /* 0x25093B04: pop esi */ 4752 ebx = POP32_VAL(esp); /* 0x25093B05: pop ebx */ 4753 esp = ebp; /* 0x25093B06: mov esp, ebp */ 4754 ebp = POP32_VAL(esp); /* 0x25093B08: pop ebp */ 4755 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x25093B09: ret 0xc */ 4756 L_25093B0C: 4757 eax = MEM32(esi + 0x1DC); /* 0x25093B0C: mov eax, dword ptr [esi + 0x1dc] */ 4758 PUSH32(esp, eax); /* 0x25093B12: push eax */ 4759 RECOMP_ICALL(0x25137EECu); /* 0x25093B13: call 0x25137eec */ /* not lifted */ 4760 RECOMP_FLAGS_IN(); 4761 ecx = MEM32(esi + 0x1E0); /* 0x25093B18: mov ecx, dword ptr [esi + 0x1e0] */ 4762 PUSH32(esp, ecx); /* 0x25093B1E: push ecx */ 4763 RECOMP_ICALL(0x25137EECu); /* 0x25093B1F: call 0x25137eec */ /* not lifted */ 4764 RECOMP_FLAGS_IN(); 4765 eax = MEM32(ebx + 0x4); /* 0x25093B24: mov eax, dword ptr [ebx + 4] */ 4766 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4767 edi = 0; /* 0x25093B27: xor edi, edi */ 4768 _cf = 0; 4769 _flag_k = FK_TEST; 4770 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4771 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4772 esp = esp + 8; /* 0x25093B29: add esp, 8 */ 4773 _flag_k = FK_ADD; 4774 /* cmp eax, edi */ /* 0x25093B2C: cmp eax, edi */ 4775 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4777 _flag_k = FK_CMP; 4778 if (CMP_NE(_flag_a, _flag_b)) goto L_25093B34; /* 0x25093B2E: jne 0x25093b34 */ 4779 L_25093B30: 4780 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4781 edx = 0; /* 0x25093B30: xor edx, edx */ 4782 _cf = 0; 4783 _flag_k = FK_TEST; 4784 goto L_25093B49; /* 0x25093B32: jmp 0x25093b49 */ 4785 L_25093B34: 4786 ecx = MEM32(ebx + 0x8); /* 0x25093B34: mov ecx, dword ptr [ebx + 8] */ 4787 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4789 ecx = ecx - eax; /* 0x25093B37: sub ecx, eax */ 4790 _flag_k = FK_CMP; 4791 eax = 0x2AAAAAABu; /* 0x25093B39: mov eax, 0x2aaaaaab */ 4792 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x25093B3E: imul ecx */ 4793 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4794 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4795 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x25093B40: sar edx, 1 */ 4796 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4797 edx = (uint32_t)((int32_t)edx >> 1u); 4798 eax = edx; /* 0x25093B42: mov eax, edx */ 4799 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x25093B44: shr eax, 0x1f */ 4800 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4801 eax = eax >> 31u; /* 0x25093B44: shr eax, 0x1f */ 4802 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4803 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4804 edx = edx + eax; /* 0x25093B47: add edx, eax */ 4805 _flag_k = FK_ADD; 4806 L_25093B49: 4807 ecx = edx * 4; /* 0x25093B49: lea ecx, [edx*4] */ 4808 PUSH32(esp, ecx); /* 0x25093B50: push ecx */ 4809 MEM32(esi + 0x1D8) = edx; /* 0x25093B51: mov dword ptr [esi + 0x1d8], edx */ 4810 RECOMP_ICALL(0x251380D0u); /* 0x25093B57: call 0x251380d0 */ /* not lifted */ 4811 RECOMP_FLAGS_IN(); 4812 ebx = MEM32(esi + 0x1D8); /* 0x25093B5C: mov ebx, dword ptr [esi + 0x1d8] */ 4813 if (1u) _cf = (((ebx) >> 31) & 1u); /* 0x25093B62: shl ebx, 1 */ 4814 if (1u) { _flag_a = recomp_flags_pack((ebx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4815 ebx = ebx << 1u; /* 0x25093B62: shl ebx, 1 */ 4816 edx = ebx + ebx * 2; /* 0x25093B64: lea edx, [ebx + ebx*2] */ 4817 if (3u) _cf = (((edx) >> 29) & 1u); /* 0x25093B67: shl edx, 3 */ 4818 if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4819 edx = edx << 3u; /* 0x25093B67: shl edx, 3 */ 4820 PUSH32(esp, edx); /* 0x25093B6A: push edx */ 4821 MEM32(esi + 0x1DC) = eax; /* 0x25093B6B: mov dword ptr [esi + 0x1dc], eax */ 4822 RECOMP_ICALL(0x251380D0u); /* 0x25093B71: call 0x251380d0 */ /* not lifted */ 4823 RECOMP_FLAGS_IN(); 4824 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4825 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4826 esp = esp + 8; /* 0x25093B76: add esp, 8 */ 4827 _flag_k = FK_ADD; 4828 /* cmp eax, edi */ /* 0x25093B79: cmp eax, edi */ 4829 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4831 _flag_k = FK_CMP; 4832 if (CMP_EQ(_flag_a, _flag_b)) goto L_25093B98; /* 0x25093B7B: je 0x25093b98 */ 4833 L_25093B7D: 4834 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 4835 ebx = ebx - 1; /* 0x25093B7D: dec ebx */ 4836 _flag_k = FK_DEC; 4837 /* cmp ebx, edi */ /* 0x25093B7E: cmp ebx, edi */ 4838 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 4839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4840 _flag_k = FK_CMP; 4841 if (CMP_L(_flag_a, _flag_b)) goto L_25093B9A; /* 0x25093B80: jl 0x25093b9a */ 4842 L_25093B82: 4843 ecx = eax + 0x8; /* 0x25093B82: lea ecx, [eax + 8] */ 4844 edx = ebx + 0x1; /* 0x25093B85: lea edx, [ebx + 1] */ 4845 L_25093B88: 4846 MEM32(ecx + (-0x8)) = edi; /* 0x25093B88: mov dword ptr [ecx - 8], edi */ 4847 MEM32(ecx + (-0x4)) = edi; /* 0x25093B8B: mov dword ptr [ecx - 4], edi */ 4848 MEM32(ecx) = edi; /* 0x25093B8E: mov dword ptr [ecx], edi */ 4849 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 4850 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4851 ecx = ecx + 0x18u; /* 0x25093B90: add ecx, 0x18 */ 4852 _flag_k = FK_ADD; 4853 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4854 edx = edx - 1; /* 0x25093B93: dec edx */ 4855 _flag_k = FK_DEC; 4856 RECOMP_BACKEDGE(); 4857 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_25093B88; /* 0x25093B94: jne 0x25093b88 */ 4858 L_25093B96: 4859 goto L_25093B9A; /* 0x25093B96: jmp 0x25093b9a */ 4860 L_25093B98: 4861 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4862 eax = 0; /* 0x25093B98: xor eax, eax */ 4863 _cf = 0; 4864 _flag_k = FK_TEST; 4865 L_25093B9A: 4866 ebx = MEM32(esi + 0x1D8); /* 0x25093B9A: mov ebx, dword ptr [esi + 0x1d8] */ 4867 /* cmp ebx, edi */ /* 0x25093BA0: cmp ebx, edi */ 4868 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 4869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4870 _flag_k = FK_CMP; 4871 MEM32(esi + 0x1E0) = eax; /* 0x25093BA2: mov dword ptr [esi + 0x1e0], eax */ 4872 MEM32(ebp + (-0xC)) = edi; /* 0x25093BA8: mov dword ptr [ebp - 0xc], edi */ 4873 MEM32(ebp + (-0x8)) = ebx; /* 0x25093BAB: mov dword ptr [ebp - 8], ebx */ 4874 if (CMP_LE(_flag_a, _flag_b)) goto L_25093CAC; /* 0x25093BAE: jle 0x25093cac */ 4875 L_25093BB4: 4876 ebx = ebx + ebx * 2; /* 0x25093BB4: lea ebx, [ebx + ebx*2] */ 4877 if (3u) _cf = (((ebx) >> 29) & 1u); /* 0x25093BB7: shl ebx, 3 */ 4878 if (3u) { _flag_a = recomp_flags_pack((ebx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4879 ebx = ebx << 3u; /* 0x25093BB7: shl ebx, 3 */ 4880 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4881 edi = 0; /* 0x25093BBA: xor edi, edi */ 4882 _cf = 0; 4883 _flag_k = FK_TEST; 4884 MEM32(ebp + (-0x4)) = edi; /* 0x25093BBC: mov dword ptr [ebp - 4], edi */ 4885 L_25093BBF: 4886 ecx = MEM32(ebp + 0x8); /* 0x25093BBF: mov ecx, dword ptr [ebp + 8] */ 4887 edx = MEM32(ecx + 0x4); /* 0x25093BC2: mov edx, dword ptr [ecx + 4] */ 4888 ecx = MEM32(esi + 0x1E0); /* 0x25093BC5: mov ecx, dword ptr [esi + 0x1e0] */ 4889 eax = edi; /* 0x25093BCB: mov eax, edi */ 4890 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4892 eax = eax + edx; /* 0x25093BCD: add eax, edx */ 4893 _flag_k = FK_ADD; 4894 edx = MEM32(ebp + (-0x4)); /* 0x25093BCF: mov edx, dword ptr [ebp - 4] */ 4895 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4897 edx = edx + ecx; /* 0x25093BD2: add edx, ecx */ 4898 _flag_k = FK_ADD; 4899 ecx = MEM32(eax); /* 0x25093BD4: mov ecx, dword ptr [eax] */ 4900 MEM32(edx) = ecx; /* 0x25093BD6: mov dword ptr [edx], ecx */ 4901 ecx = MEM32(eax + 0x4); /* 0x25093BD8: mov ecx, dword ptr [eax + 4] */ 4902 MEM32(edx + 0x4) = ecx; /* 0x25093BDB: mov dword ptr [edx + 4], ecx */ 4903 eax = MEM32(eax + 0x8); /* 0x25093BDE: mov eax, dword ptr [eax + 8] */ 4904 MEM32(edx + 0x8) = eax; /* 0x25093BE1: mov dword ptr [edx + 8], eax */ 4905 edx = MEM32(ebp + 0xC); /* 0x25093BE4: mov edx, dword ptr [ebp + 0xc] */ 4906 eax = MEM32(edx + 0x4); /* 0x25093BE7: mov eax, dword ptr [edx + 4] */ 4907 edx = MEM32(esi + 0x1E0); /* 0x25093BEA: mov edx, dword ptr [esi + 0x1e0] */ 4908 ecx = edi; /* 0x25093BF0: mov ecx, edi */ 4909 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4910 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4911 ecx = ecx + eax; /* 0x25093BF2: add ecx, eax */ 4912 _flag_k = FK_ADD; 4913 eax = ebx; /* 0x25093BF4: mov eax, ebx */ 4914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4915 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4916 eax = eax + edx; /* 0x25093BF6: add eax, edx */ 4917 _flag_k = FK_ADD; 4918 edx = MEM32(ecx); /* 0x25093BF8: mov edx, dword ptr [ecx] */ 4919 MEM32(eax) = edx; /* 0x25093BFA: mov dword ptr [eax], edx */ 4920 edx = MEM32(ecx + 0x4); /* 0x25093BFC: mov edx, dword ptr [ecx + 4] */ 4921 MEM32(eax + 0x4) = edx; /* 0x25093BFF: mov dword ptr [eax + 4], edx */ 4922 ecx = MEM32(ecx + 0x8); /* 0x25093C02: mov ecx, dword ptr [ecx + 8] */ 4923 MEM32(eax + 0x8) = ecx; /* 0x25093C05: mov dword ptr [eax + 8], ecx */ 4924 eax = MEM32(ebp + 0x10); /* 0x25093C08: mov eax, dword ptr [ebp + 0x10] */ 4925 ecx = MEM32(eax + 0x4); /* 0x25093C0B: mov ecx, dword ptr [eax + 4] */ 4926 edx = edi; /* 0x25093C0E: mov edx, edi */ 4927 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4928 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4929 edx = edx + ecx; /* 0x25093C10: add edx, ecx */ 4930 _flag_k = FK_ADD; 4931 ecx = MEM32(esi + 0x1E0); /* 0x25093C12: mov ecx, dword ptr [esi + 0x1e0] */ 4932 PUSH32(esp, 0x3F800000u); /* 0x25093C18: push 0x3f800000 */ 4933 PUSH32(esp, edx); /* 0x25093C1D: push edx */ 4934 edx = MEM32(ebp + (-0x4)); /* 0x25093C1E: mov edx, dword ptr [ebp - 4] */ 4935 ecx = edx + ecx + 0xC; /* 0x25093C21: lea ecx, [edx + ecx + 0xc] */ 4936 RECOMP_ICALL(0x2510C080u); /* 0x25093C25: call 0x2510c080 */ /* not lifted */ 4937 RECOMP_FLAGS_IN(); 4938 ecx = MEM32(ebp + 0x10); /* 0x25093C2A: mov ecx, dword ptr [ebp + 0x10] */ 4939 edx = MEM32(ecx + 0x4); /* 0x25093C2D: mov edx, dword ptr [ecx + 4] */ 4940 eax = edi; /* 0x25093C30: mov eax, edi */ 4941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4943 eax = eax + edx; /* 0x25093C32: add eax, edx */ 4944 _flag_k = FK_ADD; 4945 edx = MEM32(esi + 0x1E0); /* 0x25093C34: mov edx, dword ptr [esi + 0x1e0] */ 4946 PUSH32(esp, 0x3F800000u); /* 0x25093C3A: push 0x3f800000 */ 4947 PUSH32(esp, eax); /* 0x25093C3F: push eax */ 4948 ecx = ebx + edx + 0xC; /* 0x25093C40: lea ecx, [ebx + edx + 0xc] */ 4949 RECOMP_ICALL(0x2510C080u); /* 0x25093C44: call 0x2510c080 */ /* not lifted */ 4950 RECOMP_FLAGS_IN(); 4951 ecx = MEM32(esi + 0x1E0); /* 0x25093C49: mov ecx, dword ptr [esi + 0x1e0] */ 4952 eax = MEM32(ebp + (-0x4)); /* 0x25093C4F: mov eax, dword ptr [ebp - 4] */ 4953 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4954 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4955 eax = eax + ecx; /* 0x25093C52: add eax, ecx */ 4956 _flag_k = FK_ADD; 4957 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4958 ecx = 0; /* 0x25093C54: xor ecx, ecx */ 4959 _cf = 0; 4960 _flag_k = FK_TEST; 4961 MEM32(eax + 0x10) = ecx; /* 0x25093C56: mov dword ptr [eax + 0x10], ecx */ 4962 MEM32(eax + 0x14) = ecx; /* 0x25093C59: mov dword ptr [eax + 0x14], ecx */ 4963 edx = MEM32(esi + 0x1E0); /* 0x25093C5C: mov edx, dword ptr [esi + 0x1e0] */ 4964 eax = ebx; /* 0x25093C62: mov eax, ebx */ 4965 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4966 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4967 eax = eax + edx; /* 0x25093C64: add eax, edx */ 4968 _flag_k = FK_ADD; 4969 edx = MEM32(ebp + (-0x8)); /* 0x25093C66: mov edx, dword ptr [ebp - 8] */ 4970 ecx = 0x3F800000u; /* 0x25093C69: mov ecx, 0x3f800000 */ 4971 MEM32(eax + 0x10) = ecx; /* 0x25093C6E: mov dword ptr [eax + 0x10], ecx */ 4972 MEM32(eax + 0x14) = ecx; /* 0x25093C71: mov dword ptr [eax + 0x14], ecx */ 4973 eax = MEM32(ebp + (-0xC)); /* 0x25093C74: mov eax, dword ptr [ebp - 0xc] */ 4974 ecx = MEM32(esi + 0x1DC); /* 0x25093C77: mov ecx, dword ptr [esi + 0x1dc] */ 4975 ecx = ecx + eax * 4; /* 0x25093C7D: lea ecx, [ecx + eax*4] */ 4976 MEM16(ecx) = (uint16_t)(LO16(eax)); /* 0x25093C80: mov word ptr [ecx], ax */ 4977 MEM16(ecx + 0x2) = (uint16_t)(LO16(edx)); /* 0x25093C83: mov word ptr [ecx + 2], dx */ 4978 ecx = MEM32(ebp + (-0x4)); /* 0x25093C87: mov ecx, dword ptr [ebp - 4] */ 4979 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 4980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4981 ecx = ecx + 0x18u; /* 0x25093C8A: add ecx, 0x18 */ 4982 _flag_k = FK_ADD; 4983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4984 eax = eax + 1; /* 0x25093C8D: inc eax */ 4985 _flag_k = FK_INC; 4986 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 4987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4988 edi = edi + 0xCu; /* 0x25093C8E: add edi, 0xc */ 4989 _flag_k = FK_ADD; 4990 MEM32(ebp + (-0x4)) = ecx; /* 0x25093C91: mov dword ptr [ebp - 4], ecx */ 4991 ecx = MEM32(esi + 0x1D8); /* 0x25093C94: mov ecx, dword ptr [esi + 0x1d8] */ 4992 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4993 edx = edx + 1; /* 0x25093C9A: inc edx */ 4994 _flag_k = FK_INC; 4995 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x18u); 4996 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4997 ebx = ebx + 0x18u; /* 0x25093C9B: add ebx, 0x18 */ 4998 _flag_k = FK_ADD; 4999 /* cmp eax, ecx */ /* 0x25093C9E: cmp eax, ecx */ 5000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5002 _flag_k = FK_CMP; 5003 MEM32(ebp + (-0xC)) = eax; /* 0x25093CA0: mov dword ptr [ebp - 0xc], eax */ 5004 MEM32(ebp + (-0x8)) = edx; /* 0x25093CA3: mov dword ptr [ebp - 8], edx */ 5005 RECOMP_BACKEDGE(); 5006 if (CMP_L(_flag_a, _flag_b)) goto L_25093BBF; /* 0x25093CA6: jl 0x25093bbf */ 5007 L_25093CAC: 5008 edi = POP32_VAL(esp); /* 0x25093CAC: pop edi */ 5009 esi = POP32_VAL(esp); /* 0x25093CAD: pop esi */ 5010 ebx = POP32_VAL(esp); /* 0x25093CAE: pop ebx */ 5011 esp = ebp; /* 0x25093CAF: mov esp, ebp */ 5012 ebp = POP32_VAL(esp); /* 0x25093CB1: pop ebp */ 5013 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x25093CB2: ret 0xc */ 5014 RECOMP_REGS_OUT(); 5015 } 5016 5017 void sub_25093CC0(void) { 5018 int _fpu_cmp = 0; 5019 uint32_t _cf = 0; 5020 int _df = 1; 5021 uint32_t _flag_k = FK_NONE; 5022 uint32_t _flag_a = 0, _flag_b = 0; 5023 uint32_t _itail_tgt = 0; 5024 RECOMP_REGS_LOCALS 5025 RECOMP_ENTER(0x25093CC0u); 5026 5027 L_25093CC0: 5028 PUSH32(esp, ebp); /* 0x25093CC0: push ebp */ 5029 ebp = esp; /* 0x25093CC1: mov ebp, esp */ 5030 PUSH32(esp, 0xFFFFFFFFu); /* 0x25093CC3: push -1 */ 5031 PUSH32(esp, 0x251495D7u); /* 0x25093CC5: push 0x251495d7 */ 5032 eax = MEM32(FS_BASE + (0)); /* 0x25093CCA: mov eax, dword ptr fs:[0] */ 5033 PUSH32(esp, eax); /* 0x25093CD0: push eax */ 5034 MEM32(FS_BASE + (0)) = esp; /* 0x25093CD1: mov dword ptr fs:[0], esp */ 5035 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xB8u); 5036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5037 esp = esp - 0xB8u; /* 0x25093CD8: sub esp, 0xb8 */ 5038 _flag_k = FK_CMP; 5039 PUSH32(esp, ebx); /* 0x25093CDE: push ebx */ 5040 ebx = ecx; /* 0x25093CDF: mov ebx, ecx */ 5041 eax = MEM32(ebx + 0x1D8); /* 0x25093CE1: mov eax, dword ptr [ebx + 0x1d8] */ 5042 /* test eax, eax */ /* 0x25093CE7: test eax, eax */ 5043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5044 _cf = 0; 5045 _flag_k = FK_TEST; 5046 MEM32(ebp + (-0x14)) = ebx; /* 0x25093CE9: mov dword ptr [ebp - 0x14], ebx */ 5047 if (TEST_Z(_flag_a, _flag_b)) goto L_2509406A; /* 0x25093CEC: je 0x2509406a */ 5048 L_25093CF2: 5049 eax = MEM32(ebx + 0x1E8); /* 0x25093CF2: mov eax, dword ptr [ebx + 0x1e8] */ 5050 ecx = MEM32(ebp + 0x8); /* 0x25093CF8: mov ecx, dword ptr [ebp + 8] */ 5051 PUSH32(esp, esi); /* 0x25093CFB: push esi */ 5052 PUSH32(esp, edi); /* 0x25093CFC: push edi */ 5053 PUSH32(esp, eax); /* 0x25093CFD: push eax */ 5054 RECOMP_ICALL(0x250DFDA0u); /* 0x25093CFE: call 0x250dfda0 */ /* not lifted */ 5055 RECOMP_FLAGS_IN(); 5056 SET_LO8(eax, MEM8(ebx + 0x1F0)); /* 0x25093D03: mov al, byte ptr [ebx + 0x1f0] */ 5057 /* test LO8(eax), LO8(eax) */ /* 0x25093D09: test al, al */ 5058 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5059 _cf = 0; 5060 _flag_k = FK_NARROW(FK_TEST, 24); 5061 if (TEST_Z(_flag_a, _flag_b)) goto L_25093D4F; /* 0x25093D0B: je 0x25093d4f */ 5062 L_25093D0D: 5063 ecx = 0x10u; /* 0x25093D0D: mov ecx, 0x10 */ 5064 esi = 0x2524C5B8u; /* 0x25093D12: mov esi, 0x2524c5b8 */ 5065 edi = ebp + (-0xC4); /* 0x25093D17: lea edi, [ebp - 0xc4] */ 5066 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25093D1D: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5067 ecx = ebp + (-0xC4); /* 0x25093D1F: lea ecx, [ebp - 0xc4] */ 5068 MEM32(ebp + (-0x4)) = 0; /* 0x25093D25: mov dword ptr [ebp - 4], 0 */ 5069 RECOMP_ICALL(MEM32(0x25151514)); /* 0x25093D2C: call dword ptr [0x25151514] */ 5070 RECOMP_FLAGS_IN(); 5071 ecx = ebp + (-0xC4); /* 0x25093D32: lea ecx, [ebp - 0xc4] */ 5072 PUSH32(esp, ecx); /* 0x25093D38: push ecx */ 5073 ecx = MEM32(0x25238B58); /* 0x25093D39: mov ecx, dword ptr [0x25238b58] */ 5074 PUSH32(esp, 1); /* 0x25093D3F: push 1 */ 5075 RECOMP_ICALL(0x250E8950u); /* 0x25093D41: call 0x250e8950 */ /* not lifted */ 5076 RECOMP_FLAGS_IN(); 5077 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25093D46: mov dword ptr [ebp - 4], 0xffffffff */ 5078 goto L_25093D64; /* 0x25093D4D: jmp 0x25093d64 */ 5079 L_25093D4F: 5080 ecx = ebx; /* 0x25093D4F: mov ecx, ebx */ 5081 RECOMP_ICALL(0x250E2EC0u); /* 0x25093D51: call 0x250e2ec0 */ /* not lifted */ 5082 RECOMP_FLAGS_IN(); 5083 ecx = MEM32(0x25238B58); /* 0x25093D56: mov ecx, dword ptr [0x25238b58] */ 5084 PUSH32(esp, eax); /* 0x25093D5C: push eax */ 5085 PUSH32(esp, 1); /* 0x25093D5D: push 1 */ 5086 RECOMP_ICALL(0x250E8950u); /* 0x25093D5F: call 0x250e8950 */ /* not lifted */ 5087 RECOMP_FLAGS_IN(); 5088 L_25093D64: 5089 edx = MEM32(0x25238B94); /* 0x25093D64: mov edx, dword ptr [0x25238b94] */ 5090 ecx = MEM32(edx + 0x894); /* 0x25093D6A: mov ecx, dword ptr [edx + 0x894] */ 5091 eax = MEM32(ecx + 0x504); /* 0x25093D70: mov eax, dword ptr [ecx + 0x504] */ 5092 PUSH32(esp, 0xAu); /* 0x25093D76: push 0xa */ 5093 PUSH32(esp, 1); /* 0x25093D78: push 1 */ 5094 PUSH32(esp, 0xEu); /* 0x25093D7A: push 0xe */ 5095 MEM32(ebp + (-0x78)) = 0xEu; /* 0x25093D7C: mov dword ptr [ebp - 0x78], 0xe */ 5096 MEM32(ebp + (-0x20)) = eax; /* 0x25093D83: mov dword ptr [ebp - 0x20], eax */ 5097 MEM32(ebp + (-0x74)) = eax; /* 0x25093D86: mov dword ptr [ebp - 0x74], eax */ 5098 RECOMP_ICALL(0x250EFE90u); /* 0x25093D89: call 0x250efe90 */ /* not lifted */ 5099 RECOMP_FLAGS_IN(); 5100 MEM8(ebp + (-0x70)) = (uint8_t)(LO8(eax)); /* 0x25093D8E: mov byte ptr [ebp - 0x70], al */ 5101 eax = MEM32(0x25238B94); /* 0x25093D91: mov eax, dword ptr [0x25238b94] */ 5102 ecx = MEM32(eax + 0x894); /* 0x25093D96: mov ecx, dword ptr [eax + 0x894] */ 5103 eax = MEM32(ecx + 0x538); /* 0x25093D9C: mov eax, dword ptr [ecx + 0x538] */ 5104 PUSH32(esp, 0xAu); /* 0x25093DA2: push 0xa */ 5105 PUSH32(esp, 1); /* 0x25093DA4: push 1 */ 5106 PUSH32(esp, 0x1Bu); /* 0x25093DA6: push 0x1b */ 5107 MEM32(ebp + (-0x4)) = 1; /* 0x25093DA8: mov dword ptr [ebp - 4], 1 */ 5108 MEM32(ebp + (-0x60)) = 0x1Bu; /* 0x25093DAF: mov dword ptr [ebp - 0x60], 0x1b */ 5109 MEM32(ebp + (-0x44)) = eax; /* 0x25093DB6: mov dword ptr [ebp - 0x44], eax */ 5110 MEM32(ebp + (-0x5C)) = eax; /* 0x25093DB9: mov dword ptr [ebp - 0x5c], eax */ 5111 RECOMP_ICALL(0x250EFE90u); /* 0x25093DBC: call 0x250efe90 */ /* not lifted */ 5112 RECOMP_FLAGS_IN(); 5113 MEM8(ebp + (-0x58)) = (uint8_t)(LO8(eax)); /* 0x25093DC1: mov byte ptr [ebp - 0x58], al */ 5114 ecx = MEM32(0x25238B94); /* 0x25093DC4: mov ecx, dword ptr [0x25238b94] */ 5115 ecx = MEM32(ecx + 0x894); /* 0x25093DCA: mov ecx, dword ptr [ecx + 0x894] */ 5116 eax = MEM32(ecx + 0x53C); /* 0x25093DD0: mov eax, dword ptr [ecx + 0x53c] */ 5117 PUSH32(esp, 0xAu); /* 0x25093DD6: push 0xa */ 5118 PUSH32(esp, 0); /* 0x25093DD8: push 0 */ 5119 PUSH32(esp, 0x1Cu); /* 0x25093DDA: push 0x1c */ 5120 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x25093DDC: mov byte ptr [ebp - 4], 2 */ 5121 MEM32(ebp + (-0x84)) = 0x1Cu; /* 0x25093DE0: mov dword ptr [ebp - 0x84], 0x1c */ 5122 MEM32(ebp + (-0x34)) = eax; /* 0x25093DEA: mov dword ptr [ebp - 0x34], eax */ 5123 MEM32(ebp + (-0x80)) = eax; /* 0x25093DED: mov dword ptr [ebp - 0x80], eax */ 5124 RECOMP_ICALL(0x250EFE90u); /* 0x25093DF0: call 0x250efe90 */ /* not lifted */ 5125 RECOMP_FLAGS_IN(); 5126 MEM8(ebp + (-0x7C)) = (uint8_t)(LO8(eax)); /* 0x25093DF5: mov byte ptr [ebp - 0x7c], al */ 5127 edx = MEM32(0x25238B94); /* 0x25093DF8: mov edx, dword ptr [0x25238b94] */ 5128 ecx = MEM32(edx + 0x894); /* 0x25093DFE: mov ecx, dword ptr [edx + 0x894] */ 5129 eax = MEM32(ecx + 0x6F0); /* 0x25093E04: mov eax, dword ptr [ecx + 0x6f0] */ 5130 PUSH32(esp, 0xAu); /* 0x25093E0A: push 0xa */ 5131 PUSH32(esp, 0); /* 0x25093E0C: push 0 */ 5132 PUSH32(esp, 0x89u); /* 0x25093E0E: push 0x89 */ 5133 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x25093E13: mov byte ptr [ebp - 4], 3 */ 5134 MEM32(ebp + (-0x6C)) = 0x89u; /* 0x25093E17: mov dword ptr [ebp - 0x6c], 0x89 */ 5135 MEM32(ebp + (-0x48)) = eax; /* 0x25093E1E: mov dword ptr [ebp - 0x48], eax */ 5136 MEM32(ebp + (-0x68)) = eax; /* 0x25093E21: mov dword ptr [ebp - 0x68], eax */ 5137 RECOMP_ICALL(0x250EFE90u); /* 0x25093E24: call 0x250efe90 */ /* not lifted */ 5138 RECOMP_FLAGS_IN(); 5139 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x25093E29: mov byte ptr [ebp - 0x64], al */ 5140 eax = MEM32(0x25238B94); /* 0x25093E2C: mov eax, dword ptr [0x25238b94] */ 5141 ecx = MEM32(eax + 0x894); /* 0x25093E31: mov ecx, dword ptr [eax + 0x894] */ 5142 eax = MEM32(ecx + 0x6EC); /* 0x25093E37: mov eax, dword ptr [ecx + 0x6ec] */ 5143 PUSH32(esp, 0xAu); /* 0x25093E3D: push 0xa */ 5144 PUSH32(esp, 1); /* 0x25093E3F: push 1 */ 5145 PUSH32(esp, 0x88u); /* 0x25093E41: push 0x88 */ 5146 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x25093E46: mov byte ptr [ebp - 4], 4 */ 5147 MEM32(ebp + (-0x54)) = 0x88u; /* 0x25093E4A: mov dword ptr [ebp - 0x54], 0x88 */ 5148 MEM32(ebp + (-0x30)) = eax; /* 0x25093E51: mov dword ptr [ebp - 0x30], eax */ 5149 MEM32(ebp + (-0x50)) = eax; /* 0x25093E54: mov dword ptr [ebp - 0x50], eax */ 5150 RECOMP_ICALL(0x250EFE90u); /* 0x25093E57: call 0x250efe90 */ /* not lifted */ 5151 RECOMP_FLAGS_IN(); 5152 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(eax)); /* 0x25093E5C: mov byte ptr [ebp - 0x4c], al */ 5153 ecx = MEM32(ebp + 0x8); /* 0x25093E5F: mov ecx, dword ptr [ebp + 8] */ 5154 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x25093E62: mov byte ptr [ebp - 4], 5 */ 5155 RECOMP_ICALL(0x250E05D0u); /* 0x25093E66: call 0x250e05d0 */ /* not lifted */ 5156 RECOMP_FLAGS_IN(); 5157 ebx = MEM32(ebx + 0x1D8); /* 0x25093E6B: mov ebx, dword ptr [ebx + 0x1d8] */ 5158 if (1u) _cf = (((ebx) >> 31) & 1u); /* 0x25093E71: shl ebx, 1 */ 5159 if (1u) { _flag_a = recomp_flags_pack((ebx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5160 ebx = ebx << 1u; /* 0x25093E71: shl ebx, 1 */ 5161 RECOMP_ICALL(0x250F7690u); /* 0x25093E73: call 0x250f7690 */ /* not lifted */ 5162 RECOMP_FLAGS_IN(); 5163 ecx = ebp + (-0x1C); /* 0x25093E78: lea ecx, [ebp - 0x1c] */ 5164 PUSH32(esp, ecx); /* 0x25093E7B: push ecx */ 5165 PUSH32(esp, ebx); /* 0x25093E7C: push ebx */ 5166 PUSH32(esp, 0x18u); /* 0x25093E7D: push 0x18 */ 5167 PUSH32(esp, 0x142u); /* 0x25093E7F: push 0x142 */ 5168 ecx = eax; /* 0x25093E84: mov ecx, eax */ 5169 MEM32(ebp + (-0x10)) = eax; /* 0x25093E86: mov dword ptr [ebp - 0x10], eax */ 5170 MEM32(ebp + (-0x1C)) = 0; /* 0x25093E89: mov dword ptr [ebp - 0x1c], 0 */ 5171 RECOMP_ICALL(0x250F77E0u); /* 0x25093E90: call 0x250f77e0 */ /* not lifted */ 5172 RECOMP_FLAGS_IN(); 5173 MEM32(ebp + (-0x18)) = eax; /* 0x25093E95: mov dword ptr [ebp - 0x18], eax */ 5174 ecx = ebx + ebx * 2; /* 0x25093E98: lea ecx, [ebx + ebx*2] */ 5175 edx = MEM32(ebp + (-0x14)); /* 0x25093E9B: mov edx, dword ptr [ebp - 0x14] */ 5176 esi = MEM32(edx + 0x1E0); /* 0x25093E9E: mov esi, dword ptr [edx + 0x1e0] */ 5177 edi = MEM32(ebp + (-0x1C)); /* 0x25093EA4: mov edi, dword ptr [ebp - 0x1c] */ 5178 if (3u) _cf = (((ecx) >> 29) & 1u); /* 0x25093EA7: shl ecx, 3 */ 5179 if (3u) { _flag_a = recomp_flags_pack((ecx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5180 ecx = ecx << 3u; /* 0x25093EA7: shl ecx, 3 */ 5181 eax = ecx; /* 0x25093EAA: mov eax, ecx */ 5182 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x25093EAC: shr ecx, 2 */ 5183 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5184 ecx = ecx >> 2u; /* 0x25093EAC: shr ecx, 2 */ 5185 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25093EAF: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5186 ecx = eax; /* 0x25093EB1: mov ecx, eax */ 5187 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5188 ecx = ecx & 3; /* 0x25093EB3: and ecx, 3 */ 5189 _cf = 0; 5190 _flag_k = FK_TEST; 5191 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x25093EB6: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5192 edi = MEM32(ebp + (-0x10)); /* 0x25093EB8: mov edi, dword ptr [ebp - 0x10] */ 5193 PUSH32(esp, 0x142u); /* 0x25093EBB: push 0x142 */ 5194 ecx = edi; /* 0x25093EC0: mov ecx, edi */ 5195 RECOMP_ICALL(0x250F7820u); /* 0x25093EC2: call 0x250f7820 */ /* not lifted */ 5196 RECOMP_FLAGS_IN(); 5197 esi = MEM32(ebp + (-0x14)); /* 0x25093EC7: mov esi, dword ptr [ebp - 0x14] */ 5198 edx = MEM32(esi + 0x1D8); /* 0x25093ECA: mov edx, dword ptr [esi + 0x1d8] */ 5199 ecx = MEM32(0x25238B58); /* 0x25093ED0: mov ecx, dword ptr [0x25238b58] */ 5200 eax = MEM32(esi + 0x1DC); /* 0x25093ED6: mov eax, dword ptr [esi + 0x1dc] */ 5201 PUSH32(esp, 0); /* 0x25093EDC: push 0 */ 5202 if (1u) _cf = (((edx) >> 31) & 1u); /* 0x25093EDE: shl edx, 1 */ 5203 if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5204 edx = edx << 1u; /* 0x25093EDE: shl edx, 1 */ 5205 PUSH32(esp, edx); /* 0x25093EE0: push edx */ 5206 PUSH32(esp, eax); /* 0x25093EE1: push eax */ 5207 MEM32(ebp + (-0x10)) = ecx; /* 0x25093EE2: mov dword ptr [ebp - 0x10], ecx */ 5208 ecx = MEM32(ebp + (-0x18)); /* 0x25093EE5: mov ecx, dword ptr [ebp - 0x18] */ 5209 PUSH32(esp, ebx); /* 0x25093EE8: push ebx */ 5210 PUSH32(esp, ecx); /* 0x25093EE9: push ecx */ 5211 PUSH32(esp, 0x142u); /* 0x25093EEA: push 0x142 */ 5212 ecx = edi; /* 0x25093EEF: mov ecx, edi */ 5213 RECOMP_ICALL(0x250F7840u); /* 0x25093EF1: call 0x250f7840 */ /* not lifted */ 5214 RECOMP_FLAGS_IN(); 5215 ecx = MEM32(ebp + (-0x10)); /* 0x25093EF6: mov ecx, dword ptr [ebp - 0x10] */ 5216 PUSH32(esp, eax); /* 0x25093EF9: push eax */ 5217 RECOMP_ICALL(0x250E6C20u); /* 0x25093EFA: call 0x250e6c20 */ /* not lifted */ 5218 RECOMP_FLAGS_IN(); 5219 /* cmp MEM32(esi + 0x1EC), 2 */ /* 0x25093EFF: cmp dword ptr [esi + 0x1ec], 2 */ 5220 _flag_a = (uint32_t)(MEM32(esi + 0x1EC)); _flag_b = (uint32_t)(2); 5221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5222 _flag_k = FK_CMP; 5223 if (CMP_NE(_flag_a, _flag_b)) goto L_25093FA5; /* 0x25093F06: jne 0x25093fa5 */ 5224 L_25093F0C: 5225 eax = esi + 0x78; /* 0x25093F0C: lea eax, [esi + 0x78] */ 5226 edx = eax; /* 0x25093F0F: mov edx, eax */ 5227 ecx = MEM32(edx); /* 0x25093F11: mov ecx, dword ptr [edx] */ 5228 MEM32(ebp + (-0x40)) = ecx; /* 0x25093F13: mov dword ptr [ebp - 0x40], ecx */ 5229 ecx = MEM32(edx + 0x4); /* 0x25093F16: mov ecx, dword ptr [edx + 4] */ 5230 edx = MEM32(edx + 0x8); /* 0x25093F19: mov edx, dword ptr [edx + 8] */ 5231 MEM32(ebp + (-0x3C)) = ecx; /* 0x25093F1C: mov dword ptr [ebp - 0x3c], ecx */ 5232 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x25093F1F: fld dword ptr [ebp - 0x3c] */ 5233 _st[0] += (double)*(float*)ADDR(0x251517A4); /* 0x25093F22: fadd dword ptr [0x251517a4] */ 5234 ecx = MEM32(ebp + (-0x40)); /* 0x25093F28: mov ecx, dword ptr [ebp - 0x40] */ 5235 MEM32(ebp + (-0x38)) = edx; /* 0x25093F2B: mov dword ptr [ebp - 0x38], edx */ 5236 edx = ecx; /* 0x25093F2E: mov edx, ecx */ 5237 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x25093F30: fstp dword ptr [ebp - 0x28] */ 5238 MEM32(eax) = edx; /* 0x25093F33: mov dword ptr [eax], edx */ 5239 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x25093F35: fld dword ptr [ebp - 0x38] */ 5240 MEM32(ebp + (-0x2C)) = ecx; /* 0x25093F38: mov dword ptr [ebp - 0x2c], ecx */ 5241 _st[0] += (double)*(float*)ADDR(0x251517A4); /* 0x25093F3B: fadd dword ptr [0x251517a4] */ 5242 ecx = MEM32(ebp + (-0x28)); /* 0x25093F41: mov ecx, dword ptr [ebp - 0x28] */ 5243 MEM32(eax + 0x4) = ecx; /* 0x25093F44: mov dword ptr [eax + 4], ecx */ 5244 PUSH32(esp, 1); /* 0x25093F47: push 1 */ 5245 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x25093F49: fstp dword ptr [ebp - 0x24] */ 5246 edx = MEM32(ebp + (-0x24)); /* 0x25093F4C: mov edx, dword ptr [ebp - 0x24] */ 5247 MEM32(eax + 0x8) = edx; /* 0x25093F4F: mov dword ptr [eax + 8], edx */ 5248 eax = MEM32(esi); /* 0x25093F52: mov eax, dword ptr [esi] */ 5249 PUSH32(esp, 1); /* 0x25093F54: push 1 */ 5250 ecx = esi; /* 0x25093F56: mov ecx, esi */ 5251 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x25093F58: call dword ptr [eax + 0x2c] */ 5252 RECOMP_FLAGS_IN(); 5253 ecx = esi; /* 0x25093F5B: mov ecx, esi */ 5254 RECOMP_ICALL(0x250E2EC0u); /* 0x25093F5D: call 0x250e2ec0 */ /* not lifted */ 5255 RECOMP_FLAGS_IN(); 5256 ecx = MEM32(0x25238B58); /* 0x25093F62: mov ecx, dword ptr [0x25238b58] */ 5257 PUSH32(esp, eax); /* 0x25093F68: push eax */ 5258 PUSH32(esp, 1); /* 0x25093F69: push 1 */ 5259 RECOMP_ICALL(0x250E8950u); /* 0x25093F6B: call 0x250e8950 */ /* not lifted */ 5260 RECOMP_FLAGS_IN(); 5261 edx = MEM32(esi + 0x1D8); /* 0x25093F70: mov edx, dword ptr [esi + 0x1d8] */ 5262 ecx = MEM32(0x25238B58); /* 0x25093F76: mov ecx, dword ptr [0x25238b58] */ 5263 eax = MEM32(esi + 0x1DC); /* 0x25093F7C: mov eax, dword ptr [esi + 0x1dc] */ 5264 PUSH32(esp, 0); /* 0x25093F82: push 0 */ 5265 if (1u) _cf = (((edx) >> 31) & 1u); /* 0x25093F84: shl edx, 1 */ 5266 if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5267 edx = edx << 1u; /* 0x25093F84: shl edx, 1 */ 5268 PUSH32(esp, edx); /* 0x25093F86: push edx */ 5269 PUSH32(esp, eax); /* 0x25093F87: push eax */ 5270 MEM32(ebp + (-0x10)) = ecx; /* 0x25093F88: mov dword ptr [ebp - 0x10], ecx */ 5271 ecx = MEM32(ebp + (-0x18)); /* 0x25093F8B: mov ecx, dword ptr [ebp - 0x18] */ 5272 PUSH32(esp, ebx); /* 0x25093F8E: push ebx */ 5273 PUSH32(esp, ecx); /* 0x25093F8F: push ecx */ 5274 PUSH32(esp, 0x142u); /* 0x25093F90: push 0x142 */ 5275 ecx = edi; /* 0x25093F95: mov ecx, edi */ 5276 RECOMP_ICALL(0x250F7840u); /* 0x25093F97: call 0x250f7840 */ /* not lifted */ 5277 RECOMP_FLAGS_IN(); 5278 ecx = MEM32(ebp + (-0x10)); /* 0x25093F9C: mov ecx, dword ptr [ebp - 0x10] */ 5279 PUSH32(esp, eax); /* 0x25093F9F: push eax */ 5280 RECOMP_ICALL(0x250E6C20u); /* 0x25093FA0: call 0x250e6c20 */ /* not lifted */ 5281 RECOMP_FLAGS_IN(); 5282 L_25093FA5: 5283 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x25093FA5: mov al, byte ptr [ebp - 0x4c] */ 5284 /* test LO8(eax), LO8(eax) */ /* 0x25093FA8: test al, al */ 5285 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5286 _cf = 0; 5287 _flag_k = FK_NARROW(FK_TEST, 24); 5288 edi = POP32_VAL(esp); /* 0x25093FAA: pop edi */ 5289 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x25093FAB: mov byte ptr [ebp - 4], 4 */ 5290 esi = POP32_VAL(esp); /* 0x25093FAF: pop esi */ 5291 if (TEST_Z(_flag_a, _flag_b)) goto L_25093FCE; /* 0x25093FB0: je 0x25093fce */ 5292 L_25093FB2: 5293 eax = MEM32(ebp + (-0x30)); /* 0x25093FB2: mov eax, dword ptr [ebp - 0x30] */ 5294 edx = MEM32(0x25238B94); /* 0x25093FB5: mov edx, dword ptr [0x25238b94] */ 5295 ecx = MEM32(edx + 0x894); /* 0x25093FBB: mov ecx, dword ptr [edx + 0x894] */ 5296 PUSH32(esp, 2); /* 0x25093FC1: push 2 */ 5297 PUSH32(esp, eax); /* 0x25093FC3: push eax */ 5298 PUSH32(esp, 0x88u); /* 0x25093FC4: push 0x88 */ 5299 RECOMP_ICALL(0x250EFE90u); /* 0x25093FC9: call 0x250efe90 */ /* not lifted */ 5300 RECOMP_FLAGS_IN(); 5301 L_25093FCE: 5302 SET_LO8(eax, MEM8(ebp + (-0x64))); /* 0x25093FCE: mov al, byte ptr [ebp - 0x64] */ 5303 /* test LO8(eax), LO8(eax) */ /* 0x25093FD1: test al, al */ 5304 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5305 _cf = 0; 5306 _flag_k = FK_NARROW(FK_TEST, 24); 5307 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x25093FD3: mov byte ptr [ebp - 4], 3 */ 5308 if (TEST_Z(_flag_a, _flag_b)) goto L_25093FF5; /* 0x25093FD7: je 0x25093ff5 */ 5309 L_25093FD9: 5310 edx = MEM32(ebp + (-0x48)); /* 0x25093FD9: mov edx, dword ptr [ebp - 0x48] */ 5311 ecx = MEM32(0x25238B94); /* 0x25093FDC: mov ecx, dword ptr [0x25238b94] */ 5312 ecx = MEM32(ecx + 0x894); /* 0x25093FE2: mov ecx, dword ptr [ecx + 0x894] */ 5313 PUSH32(esp, 2); /* 0x25093FE8: push 2 */ 5314 PUSH32(esp, edx); /* 0x25093FEA: push edx */ 5315 PUSH32(esp, 0x89u); /* 0x25093FEB: push 0x89 */ 5316 RECOMP_ICALL(0x250EFE90u); /* 0x25093FF0: call 0x250efe90 */ /* not lifted */ 5317 RECOMP_FLAGS_IN(); 5318 L_25093FF5: 5319 SET_LO8(eax, MEM8(ebp + (-0x7C))); /* 0x25093FF5: mov al, byte ptr [ebp - 0x7c] */ 5320 /* test LO8(eax), LO8(eax) */ /* 0x25093FF8: test al, al */ 5321 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5322 _cf = 0; 5323 _flag_k = FK_NARROW(FK_TEST, 24); 5324 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x25093FFA: mov byte ptr [ebp - 4], 2 */ 5325 if (TEST_Z(_flag_a, _flag_b)) goto L_25094018; /* 0x25093FFE: je 0x25094018 */ 5326 L_25094000: 5327 edx = MEM32(ebp + (-0x34)); /* 0x25094000: mov edx, dword ptr [ebp - 0x34] */ 5328 eax = MEM32(0x25238B94); /* 0x25094003: mov eax, dword ptr [0x25238b94] */ 5329 ecx = MEM32(eax + 0x894); /* 0x25094008: mov ecx, dword ptr [eax + 0x894] */ 5330 PUSH32(esp, 2); /* 0x2509400E: push 2 */ 5331 PUSH32(esp, edx); /* 0x25094010: push edx */ 5332 PUSH32(esp, 0x1Cu); /* 0x25094011: push 0x1c */ 5333 RECOMP_ICALL(0x250EFE90u); /* 0x25094013: call 0x250efe90 */ /* not lifted */ 5334 RECOMP_FLAGS_IN(); 5335 L_25094018: 5336 SET_LO8(eax, MEM8(ebp + (-0x58))); /* 0x25094018: mov al, byte ptr [ebp - 0x58] */ 5337 /* test LO8(eax), LO8(eax) */ /* 0x2509401B: test al, al */ 5338 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5339 _cf = 0; 5340 _flag_k = FK_NARROW(FK_TEST, 24); 5341 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2509401D: mov byte ptr [ebp - 4], 1 */ 5342 if (TEST_Z(_flag_a, _flag_b)) goto L_2509403B; /* 0x25094021: je 0x2509403b */ 5343 L_25094023: 5344 edx = MEM32(ebp + (-0x44)); /* 0x25094023: mov edx, dword ptr [ebp - 0x44] */ 5345 eax = MEM32(0x25238B94); /* 0x25094026: mov eax, dword ptr [0x25238b94] */ 5346 ecx = MEM32(eax + 0x894); /* 0x2509402B: mov ecx, dword ptr [eax + 0x894] */ 5347 PUSH32(esp, 2); /* 0x25094031: push 2 */ 5348 PUSH32(esp, edx); /* 0x25094033: push edx */ 5349 PUSH32(esp, 0x1Bu); /* 0x25094034: push 0x1b */ 5350 RECOMP_ICALL(0x250EFE90u); /* 0x25094036: call 0x250efe90 */ /* not lifted */ 5351 RECOMP_FLAGS_IN(); 5352 L_2509403B: 5353 SET_LO8(eax, MEM8(ebp + (-0x70))); /* 0x2509403B: mov al, byte ptr [ebp - 0x70] */ 5354 /* test LO8(eax), LO8(eax) */ /* 0x2509403E: test al, al */ 5355 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5356 _cf = 0; 5357 _flag_k = FK_NARROW(FK_TEST, 24); 5358 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25094040: mov dword ptr [ebp - 4], 0xffffffff */ 5359 if (TEST_Z(_flag_a, _flag_b)) goto L_25094062; /* 0x25094047: je 0x25094062 */ 5360 L_25094049: 5361 eax = MEM32(ebp + (-0x20)); /* 0x25094049: mov eax, dword ptr [ebp - 0x20] */ 5362 ecx = MEM32(0x25238B94); /* 0x2509404C: mov ecx, dword ptr [0x25238b94] */ 5363 ecx = MEM32(ecx + 0x894); /* 0x25094052: mov ecx, dword ptr [ecx + 0x894] */ 5364 PUSH32(esp, 2); /* 0x25094058: push 2 */ 5365 PUSH32(esp, eax); /* 0x2509405A: push eax */ 5366 PUSH32(esp, 0xEu); /* 0x2509405B: push 0xe */ 5367 RECOMP_ICALL(0x250EFE90u); /* 0x2509405D: call 0x250efe90 */ /* not lifted */ 5368 RECOMP_FLAGS_IN(); 5369 L_25094062: 5370 ecx = MEM32(ebp + 0x8); /* 0x25094062: mov ecx, dword ptr [ebp + 8] */ 5371 RECOMP_ICALL(0x250E0360u); /* 0x25094065: call 0x250e0360 */ /* not lifted */ 5372 RECOMP_FLAGS_IN(); 5373 L_2509406A: 5374 ecx = MEM32(ebp + (-0xC)); /* 0x2509406A: mov ecx, dword ptr [ebp - 0xc] */ 5375 ebx = POP32_VAL(esp); /* 0x2509406D: pop ebx */ 5376 MEM32(FS_BASE + (0)) = ecx; /* 0x2509406E: mov dword ptr fs:[0], ecx */ 5377 esp = ebp; /* 0x25094075: mov esp, ebp */ 5378 ebp = POP32_VAL(esp); /* 0x25094077: pop ebp */ 5379 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25094078: ret 4 */ 5380 RECOMP_REGS_OUT(); 5381 } 5382 5383 void sub_25094080(void) { 5384 int _fpu_cmp = 0; 5385 uint32_t _cf = 0; 5386 int _df = 1; 5387 uint32_t _flag_k = FK_NONE; 5388 uint32_t _flag_a = 0, _flag_b = 0; 5389 uint32_t _itail_tgt = 0; 5390 RECOMP_REGS_LOCALS 5391 RECOMP_ENTER(0x25094080u); 5392 5393 L_25094080: 5394 PUSH32(esp, esi); /* 0x25094080: push esi */ 5395 esi = ecx; /* 0x25094081: mov esi, ecx */ 5396 eax = MEM32(esi + 0x1D8); /* 0x25094083: mov eax, dword ptr [esi + 0x1d8] */ 5397 /* test eax, eax */ /* 0x25094089: test eax, eax */ 5398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5399 _cf = 0; 5400 _flag_k = FK_TEST; 5401 if (TEST_Z(_flag_a, _flag_b)) goto L_250940B2; /* 0x2509408B: je 0x250940b2 */ 5402 L_2509408D: 5403 SET_LO8(eax, MEM8(esi + 0x1E4)); /* 0x2509408D: mov al, byte ptr [esi + 0x1e4] */ 5404 /* test LO8(eax), LO8(eax) */ /* 0x25094093: test al, al */ 5405 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5406 _cf = 0; 5407 _flag_k = FK_NARROW(FK_TEST, 24); 5408 if (TEST_NZ(_flag_a, _flag_b)) goto L_250940B2; /* 0x25094095: jne 0x250940b2 */ 5409 L_25094097: 5410 RECOMP_ICALL(0x25094150u); /* 0x25094097: call 0x25094150 */ /* not lifted */ 5411 RECOMP_FLAGS_IN(); 5412 ecx = eax; /* 0x2509409C: mov ecx, eax */ 5413 RECOMP_ICALL(0x25094220u); /* 0x2509409E: call 0x25094220 */ /* not lifted */ 5414 RECOMP_FLAGS_IN(); 5415 edx = MEM32(eax); /* 0x250940A3: mov edx, dword ptr [eax] */ 5416 PUSH32(esp, esi); /* 0x250940A5: push esi */ 5417 ecx = eax; /* 0x250940A6: mov ecx, eax */ 5418 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x250940A8: call dword ptr [edx + 0xc] */ 5419 RECOMP_FLAGS_IN(); 5420 MEM8(esi + 0x1E4) = (uint8_t)(1); /* 0x250940AB: mov byte ptr [esi + 0x1e4], 1 */ 5421 L_250940B2: 5422 esi = POP32_VAL(esp); /* 0x250940B2: pop esi */ 5423 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250940B3: ret */ 5424 RECOMP_REGS_OUT(); 5425 } 5426 5427 void sub_250940C0(void) { 5428 int _fpu_cmp = 0; 5429 uint32_t _cf = 0; 5430 int _df = 1; 5431 uint32_t _flag_k = FK_NONE; 5432 uint32_t _flag_a = 0, _flag_b = 0; 5433 uint32_t _itail_tgt = 0; 5434 RECOMP_REGS_LOCALS 5435 RECOMP_ENTER(0x250940C0u); 5436 5437 L_250940C0: 5438 PUSH32(esp, esi); /* 0x250940C0: push esi */ 5439 esi = ecx; /* 0x250940C1: mov esi, ecx */ 5440 SET_LO8(eax, MEM8(esi + 0x1E4)); /* 0x250940C3: mov al, byte ptr [esi + 0x1e4] */ 5441 /* test LO8(eax), LO8(eax) */ /* 0x250940C9: test al, al */ 5442 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5443 _cf = 0; 5444 _flag_k = FK_NARROW(FK_TEST, 24); 5445 if (TEST_Z(_flag_a, _flag_b)) goto L_250940E8; /* 0x250940CB: je 0x250940e8 */ 5446 L_250940CD: 5447 RECOMP_ICALL(0x25094150u); /* 0x250940CD: call 0x25094150 */ /* not lifted */ 5448 RECOMP_FLAGS_IN(); 5449 ecx = eax; /* 0x250940D2: mov ecx, eax */ 5450 RECOMP_ICALL(0x25094220u); /* 0x250940D4: call 0x25094220 */ /* not lifted */ 5451 RECOMP_FLAGS_IN(); 5452 edx = MEM32(eax); /* 0x250940D9: mov edx, dword ptr [eax] */ 5453 PUSH32(esp, esi); /* 0x250940DB: push esi */ 5454 ecx = eax; /* 0x250940DC: mov ecx, eax */ 5455 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x250940DE: call dword ptr [edx + 0x10] */ 5456 RECOMP_FLAGS_IN(); 5457 MEM8(esi + 0x1E4) = (uint8_t)(0); /* 0x250940E1: mov byte ptr [esi + 0x1e4], 0 */ 5458 L_250940E8: 5459 esi = POP32_VAL(esp); /* 0x250940E8: pop esi */ 5460 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250940E9: ret */ 5461 RECOMP_REGS_OUT(); 5462 } 5463 5464 void sub_250940F0(void) { 5465 int _fpu_cmp = 0; 5466 uint32_t _cf = 0; 5467 int _df = 1; 5468 uint32_t _flag_k = FK_NONE; 5469 uint32_t _flag_a = 0, _flag_b = 0; 5470 uint32_t _itail_tgt = 0; 5471 RECOMP_REGS_LOCALS 5472 RECOMP_ENTER(0x250940F0u); 5473 5474 goto L_250940F0; 5475 L_25001DA0: 5476 PUSH32(esp, ebp); /* 0x25001DA0: push ebp */ 5477 ebp = esp; /* 0x25001DA1: mov ebp, esp */ 5478 PUSH32(esp, ebx); /* 0x25001DA3: push ebx */ 5479 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25001DA4: mov bl, byte ptr [ebp + 8] */ 5480 /* test LO8(ebx), 2 */ /* 0x25001DA7: test bl, 2 */ 5481 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 5482 _cf = 0; 5483 _flag_k = FK_NARROW(FK_TEST, 24); 5484 PUSH32(esp, esi); /* 0x25001DAA: push esi */ 5485 esi = ecx; /* 0x25001DAB: mov esi, ecx */ 5486 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DDE; /* 0x25001DAD: je 0x25001dde */ 5487 L_25001DAF: 5488 eax = MEM32(esi + (-0x4)); /* 0x25001DAF: mov eax, dword ptr [esi - 4] */ 5489 PUSH32(esp, edi); /* 0x25001DB2: push edi */ 5490 PUSH32(esp, 0x25093910u); /* 0x25001DB3: push 0x25093910 */ 5491 edi = esi + (-0x4); /* 0x25001DB8: lea edi, [esi - 4] */ 5492 PUSH32(esp, eax); /* 0x25001DBB: push eax */ 5493 PUSH32(esp, 0x1F4u); /* 0x25001DBC: push 0x1f4 */ 5494 PUSH32(esp, esi); /* 0x25001DC1: push esi */ 5495 RECOMP_ICALL(0x25137F92u); /* 0x25001DC2: call 0x25137f92 */ /* not lifted */ 5496 RECOMP_FLAGS_IN(); 5497 /* test LO8(ebx), 1 */ /* 0x25001DC7: test bl, 1 */ 5498 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5499 _cf = 0; 5500 _flag_k = FK_NARROW(FK_TEST, 24); 5501 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DD5; /* 0x25001DCA: je 0x25001dd5 */ 5502 L_25001DCC: 5503 PUSH32(esp, edi); /* 0x25001DCC: push edi */ 5504 RECOMP_ICALL(0x25137EECu); /* 0x25001DCD: call 0x25137eec */ /* not lifted */ 5505 RECOMP_FLAGS_IN(); 5506 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5508 esp = esp + 4; /* 0x25001DD2: add esp, 4 */ 5509 _flag_k = FK_ADD; 5510 L_25001DD5: 5511 eax = edi; /* 0x25001DD5: mov eax, edi */ 5512 edi = POP32_VAL(esp); /* 0x25001DD7: pop edi */ 5513 esi = POP32_VAL(esp); /* 0x25001DD8: pop esi */ 5514 ebx = POP32_VAL(esp); /* 0x25001DD9: pop ebx */ 5515 ebp = POP32_VAL(esp); /* 0x25001DDA: pop ebp */ 5516 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DDB: ret 4 */ 5517 L_25001DDE: 5518 ecx = esi; /* 0x25001DDE: mov ecx, esi */ 5519 RECOMP_ICALL(0x25093910u); /* 0x25001DE0: call 0x25093910 */ /* not lifted */ 5520 RECOMP_FLAGS_IN(); 5521 /* test LO8(ebx), 1 */ /* 0x25001DE5: test bl, 1 */ 5522 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5523 _cf = 0; 5524 _flag_k = FK_NARROW(FK_TEST, 24); 5525 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DF3; /* 0x25001DE8: je 0x25001df3 */ 5526 L_25001DEA: 5527 PUSH32(esp, esi); /* 0x25001DEA: push esi */ 5528 RECOMP_ICALL(0x25137EECu); /* 0x25001DEB: call 0x25137eec */ /* not lifted */ 5529 RECOMP_FLAGS_IN(); 5530 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5531 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5532 esp = esp + 4; /* 0x25001DF0: add esp, 4 */ 5533 _flag_k = FK_ADD; 5534 L_25001DF3: 5535 eax = esi; /* 0x25001DF3: mov eax, esi */ 5536 esi = POP32_VAL(esp); /* 0x25001DF5: pop esi */ 5537 ebx = POP32_VAL(esp); /* 0x25001DF6: pop ebx */ 5538 ebp = POP32_VAL(esp); /* 0x25001DF7: pop ebp */ 5539 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DF8: ret 4 */ 5540 L_250940F0: 5541 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 5542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5543 ecx = ecx - 8; /* 0x250940F0: sub ecx, 8 */ 5544 _flag_k = FK_CMP; 5545 RECOMP_BACKEDGE(); 5546 goto L_25001DA0; /* 0x250940F3: jmp 0x25001da0 */ 5547 { RECOMP_REGS_OUT(); return; } /* end of function */ 5548 RECOMP_REGS_OUT(); 5549 } 5550 5551 void sub_25094100(void) { 5552 int _fpu_cmp = 0; 5553 uint32_t _cf = 0; 5554 int _df = 1; 5555 uint32_t _flag_k = FK_NONE; 5556 uint32_t _flag_a = 0, _flag_b = 0; 5557 uint32_t _itail_tgt = 0; 5558 RECOMP_REGS_LOCALS 5559 RECOMP_ENTER(0x25094100u); 5560 5561 goto L_25094100; 5562 L_25001DA0: 5563 PUSH32(esp, ebp); /* 0x25001DA0: push ebp */ 5564 ebp = esp; /* 0x25001DA1: mov ebp, esp */ 5565 PUSH32(esp, ebx); /* 0x25001DA3: push ebx */ 5566 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25001DA4: mov bl, byte ptr [ebp + 8] */ 5567 /* test LO8(ebx), 2 */ /* 0x25001DA7: test bl, 2 */ 5568 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 5569 _cf = 0; 5570 _flag_k = FK_NARROW(FK_TEST, 24); 5571 PUSH32(esp, esi); /* 0x25001DAA: push esi */ 5572 esi = ecx; /* 0x25001DAB: mov esi, ecx */ 5573 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DDE; /* 0x25001DAD: je 0x25001dde */ 5574 L_25001DAF: 5575 eax = MEM32(esi + (-0x4)); /* 0x25001DAF: mov eax, dword ptr [esi - 4] */ 5576 PUSH32(esp, edi); /* 0x25001DB2: push edi */ 5577 PUSH32(esp, 0x25093910u); /* 0x25001DB3: push 0x25093910 */ 5578 edi = esi + (-0x4); /* 0x25001DB8: lea edi, [esi - 4] */ 5579 PUSH32(esp, eax); /* 0x25001DBB: push eax */ 5580 PUSH32(esp, 0x1F4u); /* 0x25001DBC: push 0x1f4 */ 5581 PUSH32(esp, esi); /* 0x25001DC1: push esi */ 5582 RECOMP_ICALL(0x25137F92u); /* 0x25001DC2: call 0x25137f92 */ /* not lifted */ 5583 RECOMP_FLAGS_IN(); 5584 /* test LO8(ebx), 1 */ /* 0x25001DC7: test bl, 1 */ 5585 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5586 _cf = 0; 5587 _flag_k = FK_NARROW(FK_TEST, 24); 5588 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DD5; /* 0x25001DCA: je 0x25001dd5 */ 5589 L_25001DCC: 5590 PUSH32(esp, edi); /* 0x25001DCC: push edi */ 5591 RECOMP_ICALL(0x25137EECu); /* 0x25001DCD: call 0x25137eec */ /* not lifted */ 5592 RECOMP_FLAGS_IN(); 5593 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5594 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5595 esp = esp + 4; /* 0x25001DD2: add esp, 4 */ 5596 _flag_k = FK_ADD; 5597 L_25001DD5: 5598 eax = edi; /* 0x25001DD5: mov eax, edi */ 5599 edi = POP32_VAL(esp); /* 0x25001DD7: pop edi */ 5600 esi = POP32_VAL(esp); /* 0x25001DD8: pop esi */ 5601 ebx = POP32_VAL(esp); /* 0x25001DD9: pop ebx */ 5602 ebp = POP32_VAL(esp); /* 0x25001DDA: pop ebp */ 5603 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DDB: ret 4 */ 5604 L_25001DDE: 5605 ecx = esi; /* 0x25001DDE: mov ecx, esi */ 5606 RECOMP_ICALL(0x25093910u); /* 0x25001DE0: call 0x25093910 */ /* not lifted */ 5607 RECOMP_FLAGS_IN(); 5608 /* test LO8(ebx), 1 */ /* 0x25001DE5: test bl, 1 */ 5609 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5610 _cf = 0; 5611 _flag_k = FK_NARROW(FK_TEST, 24); 5612 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DF3; /* 0x25001DE8: je 0x25001df3 */ 5613 L_25001DEA: 5614 PUSH32(esp, esi); /* 0x25001DEA: push esi */ 5615 RECOMP_ICALL(0x25137EECu); /* 0x25001DEB: call 0x25137eec */ /* not lifted */ 5616 RECOMP_FLAGS_IN(); 5617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5619 esp = esp + 4; /* 0x25001DF0: add esp, 4 */ 5620 _flag_k = FK_ADD; 5621 L_25001DF3: 5622 eax = esi; /* 0x25001DF3: mov eax, esi */ 5623 esi = POP32_VAL(esp); /* 0x25001DF5: pop esi */ 5624 ebx = POP32_VAL(esp); /* 0x25001DF6: pop ebx */ 5625 ebp = POP32_VAL(esp); /* 0x25001DF7: pop ebp */ 5626 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DF8: ret 4 */ 5627 L_25094100: 5628 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 5629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5630 ecx = ecx - 0x20u; /* 0x25094100: sub ecx, 0x20 */ 5631 _flag_k = FK_CMP; 5632 RECOMP_BACKEDGE(); 5633 goto L_25001DA0; /* 0x25094103: jmp 0x25001da0 */ 5634 { RECOMP_REGS_OUT(); return; } /* end of function */ 5635 RECOMP_REGS_OUT(); 5636 } 5637 5638 void sub_25094110(void) { 5639 int _fpu_cmp = 0; 5640 uint32_t _cf = 0; 5641 int _df = 1; 5642 uint32_t _flag_k = FK_NONE; 5643 uint32_t _flag_a = 0, _flag_b = 0; 5644 uint32_t _itail_tgt = 0; 5645 RECOMP_REGS_LOCALS 5646 RECOMP_ENTER(0x25094110u); 5647 5648 goto L_25094110; 5649 L_25001DA0: 5650 PUSH32(esp, ebp); /* 0x25001DA0: push ebp */ 5651 ebp = esp; /* 0x25001DA1: mov ebp, esp */ 5652 PUSH32(esp, ebx); /* 0x25001DA3: push ebx */ 5653 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25001DA4: mov bl, byte ptr [ebp + 8] */ 5654 /* test LO8(ebx), 2 */ /* 0x25001DA7: test bl, 2 */ 5655 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 5656 _cf = 0; 5657 _flag_k = FK_NARROW(FK_TEST, 24); 5658 PUSH32(esp, esi); /* 0x25001DAA: push esi */ 5659 esi = ecx; /* 0x25001DAB: mov esi, ecx */ 5660 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DDE; /* 0x25001DAD: je 0x25001dde */ 5661 L_25001DAF: 5662 eax = MEM32(esi + (-0x4)); /* 0x25001DAF: mov eax, dword ptr [esi - 4] */ 5663 PUSH32(esp, edi); /* 0x25001DB2: push edi */ 5664 PUSH32(esp, 0x25093910u); /* 0x25001DB3: push 0x25093910 */ 5665 edi = esi + (-0x4); /* 0x25001DB8: lea edi, [esi - 4] */ 5666 PUSH32(esp, eax); /* 0x25001DBB: push eax */ 5667 PUSH32(esp, 0x1F4u); /* 0x25001DBC: push 0x1f4 */ 5668 PUSH32(esp, esi); /* 0x25001DC1: push esi */ 5669 RECOMP_ICALL(0x25137F92u); /* 0x25001DC2: call 0x25137f92 */ /* not lifted */ 5670 RECOMP_FLAGS_IN(); 5671 /* test LO8(ebx), 1 */ /* 0x25001DC7: test bl, 1 */ 5672 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5673 _cf = 0; 5674 _flag_k = FK_NARROW(FK_TEST, 24); 5675 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DD5; /* 0x25001DCA: je 0x25001dd5 */ 5676 L_25001DCC: 5677 PUSH32(esp, edi); /* 0x25001DCC: push edi */ 5678 RECOMP_ICALL(0x25137EECu); /* 0x25001DCD: call 0x25137eec */ /* not lifted */ 5679 RECOMP_FLAGS_IN(); 5680 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5681 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5682 esp = esp + 4; /* 0x25001DD2: add esp, 4 */ 5683 _flag_k = FK_ADD; 5684 L_25001DD5: 5685 eax = edi; /* 0x25001DD5: mov eax, edi */ 5686 edi = POP32_VAL(esp); /* 0x25001DD7: pop edi */ 5687 esi = POP32_VAL(esp); /* 0x25001DD8: pop esi */ 5688 ebx = POP32_VAL(esp); /* 0x25001DD9: pop ebx */ 5689 ebp = POP32_VAL(esp); /* 0x25001DDA: pop ebp */ 5690 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DDB: ret 4 */ 5691 L_25001DDE: 5692 ecx = esi; /* 0x25001DDE: mov ecx, esi */ 5693 RECOMP_ICALL(0x25093910u); /* 0x25001DE0: call 0x25093910 */ /* not lifted */ 5694 RECOMP_FLAGS_IN(); 5695 /* test LO8(ebx), 1 */ /* 0x25001DE5: test bl, 1 */ 5696 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5697 _cf = 0; 5698 _flag_k = FK_NARROW(FK_TEST, 24); 5699 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DF3; /* 0x25001DE8: je 0x25001df3 */ 5700 L_25001DEA: 5701 PUSH32(esp, esi); /* 0x25001DEA: push esi */ 5702 RECOMP_ICALL(0x25137EECu); /* 0x25001DEB: call 0x25137eec */ /* not lifted */ 5703 RECOMP_FLAGS_IN(); 5704 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5705 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5706 esp = esp + 4; /* 0x25001DF0: add esp, 4 */ 5707 _flag_k = FK_ADD; 5708 L_25001DF3: 5709 eax = esi; /* 0x25001DF3: mov eax, esi */ 5710 esi = POP32_VAL(esp); /* 0x25001DF5: pop esi */ 5711 ebx = POP32_VAL(esp); /* 0x25001DF6: pop ebx */ 5712 ebp = POP32_VAL(esp); /* 0x25001DF7: pop ebp */ 5713 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DF8: ret 4 */ 5714 L_25094110: 5715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 5716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5717 ecx = ecx - 0x38u; /* 0x25094110: sub ecx, 0x38 */ 5718 _flag_k = FK_CMP; 5719 RECOMP_BACKEDGE(); 5720 goto L_25001DA0; /* 0x25094113: jmp 0x25001da0 */ 5721 { RECOMP_REGS_OUT(); return; } /* end of function */ 5722 RECOMP_REGS_OUT(); 5723 } 5724 5725 void sub_25094120(void) { 5726 int _fpu_cmp = 0; 5727 uint32_t _cf = 0; 5728 int _df = 1; 5729 uint32_t _flag_k = FK_NONE; 5730 uint32_t _flag_a = 0, _flag_b = 0; 5731 uint32_t _itail_tgt = 0; 5732 RECOMP_REGS_LOCALS 5733 RECOMP_ENTER(0x25094120u); 5734 5735 goto L_25094120; 5736 L_25001DA0: 5737 PUSH32(esp, ebp); /* 0x25001DA0: push ebp */ 5738 ebp = esp; /* 0x25001DA1: mov ebp, esp */ 5739 PUSH32(esp, ebx); /* 0x25001DA3: push ebx */ 5740 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25001DA4: mov bl, byte ptr [ebp + 8] */ 5741 /* test LO8(ebx), 2 */ /* 0x25001DA7: test bl, 2 */ 5742 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 5743 _cf = 0; 5744 _flag_k = FK_NARROW(FK_TEST, 24); 5745 PUSH32(esp, esi); /* 0x25001DAA: push esi */ 5746 esi = ecx; /* 0x25001DAB: mov esi, ecx */ 5747 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DDE; /* 0x25001DAD: je 0x25001dde */ 5748 L_25001DAF: 5749 eax = MEM32(esi + (-0x4)); /* 0x25001DAF: mov eax, dword ptr [esi - 4] */ 5750 PUSH32(esp, edi); /* 0x25001DB2: push edi */ 5751 PUSH32(esp, 0x25093910u); /* 0x25001DB3: push 0x25093910 */ 5752 edi = esi + (-0x4); /* 0x25001DB8: lea edi, [esi - 4] */ 5753 PUSH32(esp, eax); /* 0x25001DBB: push eax */ 5754 PUSH32(esp, 0x1F4u); /* 0x25001DBC: push 0x1f4 */ 5755 PUSH32(esp, esi); /* 0x25001DC1: push esi */ 5756 RECOMP_ICALL(0x25137F92u); /* 0x25001DC2: call 0x25137f92 */ /* not lifted */ 5757 RECOMP_FLAGS_IN(); 5758 /* test LO8(ebx), 1 */ /* 0x25001DC7: test bl, 1 */ 5759 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5760 _cf = 0; 5761 _flag_k = FK_NARROW(FK_TEST, 24); 5762 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DD5; /* 0x25001DCA: je 0x25001dd5 */ 5763 L_25001DCC: 5764 PUSH32(esp, edi); /* 0x25001DCC: push edi */ 5765 RECOMP_ICALL(0x25137EECu); /* 0x25001DCD: call 0x25137eec */ /* not lifted */ 5766 RECOMP_FLAGS_IN(); 5767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5768 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5769 esp = esp + 4; /* 0x25001DD2: add esp, 4 */ 5770 _flag_k = FK_ADD; 5771 L_25001DD5: 5772 eax = edi; /* 0x25001DD5: mov eax, edi */ 5773 edi = POP32_VAL(esp); /* 0x25001DD7: pop edi */ 5774 esi = POP32_VAL(esp); /* 0x25001DD8: pop esi */ 5775 ebx = POP32_VAL(esp); /* 0x25001DD9: pop ebx */ 5776 ebp = POP32_VAL(esp); /* 0x25001DDA: pop ebp */ 5777 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DDB: ret 4 */ 5778 L_25001DDE: 5779 ecx = esi; /* 0x25001DDE: mov ecx, esi */ 5780 RECOMP_ICALL(0x25093910u); /* 0x25001DE0: call 0x25093910 */ /* not lifted */ 5781 RECOMP_FLAGS_IN(); 5782 /* test LO8(ebx), 1 */ /* 0x25001DE5: test bl, 1 */ 5783 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5784 _cf = 0; 5785 _flag_k = FK_NARROW(FK_TEST, 24); 5786 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DF3; /* 0x25001DE8: je 0x25001df3 */ 5787 L_25001DEA: 5788 PUSH32(esp, esi); /* 0x25001DEA: push esi */ 5789 RECOMP_ICALL(0x25137EECu); /* 0x25001DEB: call 0x25137eec */ /* not lifted */ 5790 RECOMP_FLAGS_IN(); 5791 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5792 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5793 esp = esp + 4; /* 0x25001DF0: add esp, 4 */ 5794 _flag_k = FK_ADD; 5795 L_25001DF3: 5796 eax = esi; /* 0x25001DF3: mov eax, esi */ 5797 esi = POP32_VAL(esp); /* 0x25001DF5: pop esi */ 5798 ebx = POP32_VAL(esp); /* 0x25001DF6: pop ebx */ 5799 ebp = POP32_VAL(esp); /* 0x25001DF7: pop ebp */ 5800 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DF8: ret 4 */ 5801 L_25094120: 5802 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 5803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5804 ecx = ecx - 0x50u; /* 0x25094120: sub ecx, 0x50 */ 5805 _flag_k = FK_CMP; 5806 RECOMP_BACKEDGE(); 5807 goto L_25001DA0; /* 0x25094123: jmp 0x25001da0 */ 5808 { RECOMP_REGS_OUT(); return; } /* end of function */ 5809 RECOMP_REGS_OUT(); 5810 } 5811 5812 void sub_25094130(void) { 5813 int _fpu_cmp = 0; 5814 uint32_t _cf = 0; 5815 int _df = 1; 5816 uint32_t _flag_k = FK_NONE; 5817 uint32_t _flag_a = 0, _flag_b = 0; 5818 uint32_t _itail_tgt = 0; 5819 RECOMP_REGS_LOCALS 5820 RECOMP_ENTER(0x25094130u); 5821 5822 goto L_25094130; 5823 L_25001DA0: 5824 PUSH32(esp, ebp); /* 0x25001DA0: push ebp */ 5825 ebp = esp; /* 0x25001DA1: mov ebp, esp */ 5826 PUSH32(esp, ebx); /* 0x25001DA3: push ebx */ 5827 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25001DA4: mov bl, byte ptr [ebp + 8] */ 5828 /* test LO8(ebx), 2 */ /* 0x25001DA7: test bl, 2 */ 5829 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 5830 _cf = 0; 5831 _flag_k = FK_NARROW(FK_TEST, 24); 5832 PUSH32(esp, esi); /* 0x25001DAA: push esi */ 5833 esi = ecx; /* 0x25001DAB: mov esi, ecx */ 5834 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DDE; /* 0x25001DAD: je 0x25001dde */ 5835 L_25001DAF: 5836 eax = MEM32(esi + (-0x4)); /* 0x25001DAF: mov eax, dword ptr [esi - 4] */ 5837 PUSH32(esp, edi); /* 0x25001DB2: push edi */ 5838 PUSH32(esp, 0x25093910u); /* 0x25001DB3: push 0x25093910 */ 5839 edi = esi + (-0x4); /* 0x25001DB8: lea edi, [esi - 4] */ 5840 PUSH32(esp, eax); /* 0x25001DBB: push eax */ 5841 PUSH32(esp, 0x1F4u); /* 0x25001DBC: push 0x1f4 */ 5842 PUSH32(esp, esi); /* 0x25001DC1: push esi */ 5843 RECOMP_ICALL(0x25137F92u); /* 0x25001DC2: call 0x25137f92 */ /* not lifted */ 5844 RECOMP_FLAGS_IN(); 5845 /* test LO8(ebx), 1 */ /* 0x25001DC7: test bl, 1 */ 5846 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5847 _cf = 0; 5848 _flag_k = FK_NARROW(FK_TEST, 24); 5849 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DD5; /* 0x25001DCA: je 0x25001dd5 */ 5850 L_25001DCC: 5851 PUSH32(esp, edi); /* 0x25001DCC: push edi */ 5852 RECOMP_ICALL(0x25137EECu); /* 0x25001DCD: call 0x25137eec */ /* not lifted */ 5853 RECOMP_FLAGS_IN(); 5854 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5855 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5856 esp = esp + 4; /* 0x25001DD2: add esp, 4 */ 5857 _flag_k = FK_ADD; 5858 L_25001DD5: 5859 eax = edi; /* 0x25001DD5: mov eax, edi */ 5860 edi = POP32_VAL(esp); /* 0x25001DD7: pop edi */ 5861 esi = POP32_VAL(esp); /* 0x25001DD8: pop esi */ 5862 ebx = POP32_VAL(esp); /* 0x25001DD9: pop ebx */ 5863 ebp = POP32_VAL(esp); /* 0x25001DDA: pop ebp */ 5864 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DDB: ret 4 */ 5865 L_25001DDE: 5866 ecx = esi; /* 0x25001DDE: mov ecx, esi */ 5867 RECOMP_ICALL(0x25093910u); /* 0x25001DE0: call 0x25093910 */ /* not lifted */ 5868 RECOMP_FLAGS_IN(); 5869 /* test LO8(ebx), 1 */ /* 0x25001DE5: test bl, 1 */ 5870 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5871 _cf = 0; 5872 _flag_k = FK_NARROW(FK_TEST, 24); 5873 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DF3; /* 0x25001DE8: je 0x25001df3 */ 5874 L_25001DEA: 5875 PUSH32(esp, esi); /* 0x25001DEA: push esi */ 5876 RECOMP_ICALL(0x25137EECu); /* 0x25001DEB: call 0x25137eec */ /* not lifted */ 5877 RECOMP_FLAGS_IN(); 5878 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5879 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5880 esp = esp + 4; /* 0x25001DF0: add esp, 4 */ 5881 _flag_k = FK_ADD; 5882 L_25001DF3: 5883 eax = esi; /* 0x25001DF3: mov eax, esi */ 5884 esi = POP32_VAL(esp); /* 0x25001DF5: pop esi */ 5885 ebx = POP32_VAL(esp); /* 0x25001DF6: pop ebx */ 5886 ebp = POP32_VAL(esp); /* 0x25001DF7: pop ebp */ 5887 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DF8: ret 4 */ 5888 L_25094130: 5889 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 5890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5891 ecx = ecx - 0x138u; /* 0x25094130: sub ecx, 0x138 */ 5892 _flag_k = FK_CMP; 5893 RECOMP_BACKEDGE(); 5894 goto L_25001DA0; /* 0x25094136: jmp 0x25001da0 */ 5895 { RECOMP_REGS_OUT(); return; } /* end of function */ 5896 RECOMP_REGS_OUT(); 5897 } 5898 5899 void sub_25094140(void) { 5900 int _fpu_cmp = 0; 5901 uint32_t _cf = 0; 5902 int _df = 1; 5903 uint32_t _flag_k = FK_NONE; 5904 uint32_t _flag_a = 0, _flag_b = 0; 5905 uint32_t _itail_tgt = 0; 5906 RECOMP_REGS_LOCALS 5907 RECOMP_ENTER(0x25094140u); 5908 5909 goto L_25094140; 5910 L_25001DA0: 5911 PUSH32(esp, ebp); /* 0x25001DA0: push ebp */ 5912 ebp = esp; /* 0x25001DA1: mov ebp, esp */ 5913 PUSH32(esp, ebx); /* 0x25001DA3: push ebx */ 5914 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25001DA4: mov bl, byte ptr [ebp + 8] */ 5915 /* test LO8(ebx), 2 */ /* 0x25001DA7: test bl, 2 */ 5916 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 5917 _cf = 0; 5918 _flag_k = FK_NARROW(FK_TEST, 24); 5919 PUSH32(esp, esi); /* 0x25001DAA: push esi */ 5920 esi = ecx; /* 0x25001DAB: mov esi, ecx */ 5921 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DDE; /* 0x25001DAD: je 0x25001dde */ 5922 L_25001DAF: 5923 eax = MEM32(esi + (-0x4)); /* 0x25001DAF: mov eax, dword ptr [esi - 4] */ 5924 PUSH32(esp, edi); /* 0x25001DB2: push edi */ 5925 PUSH32(esp, 0x25093910u); /* 0x25001DB3: push 0x25093910 */ 5926 edi = esi + (-0x4); /* 0x25001DB8: lea edi, [esi - 4] */ 5927 PUSH32(esp, eax); /* 0x25001DBB: push eax */ 5928 PUSH32(esp, 0x1F4u); /* 0x25001DBC: push 0x1f4 */ 5929 PUSH32(esp, esi); /* 0x25001DC1: push esi */ 5930 RECOMP_ICALL(0x25137F92u); /* 0x25001DC2: call 0x25137f92 */ /* not lifted */ 5931 RECOMP_FLAGS_IN(); 5932 /* test LO8(ebx), 1 */ /* 0x25001DC7: test bl, 1 */ 5933 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5934 _cf = 0; 5935 _flag_k = FK_NARROW(FK_TEST, 24); 5936 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DD5; /* 0x25001DCA: je 0x25001dd5 */ 5937 L_25001DCC: 5938 PUSH32(esp, edi); /* 0x25001DCC: push edi */ 5939 RECOMP_ICALL(0x25137EECu); /* 0x25001DCD: call 0x25137eec */ /* not lifted */ 5940 RECOMP_FLAGS_IN(); 5941 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5943 esp = esp + 4; /* 0x25001DD2: add esp, 4 */ 5944 _flag_k = FK_ADD; 5945 L_25001DD5: 5946 eax = edi; /* 0x25001DD5: mov eax, edi */ 5947 edi = POP32_VAL(esp); /* 0x25001DD7: pop edi */ 5948 esi = POP32_VAL(esp); /* 0x25001DD8: pop esi */ 5949 ebx = POP32_VAL(esp); /* 0x25001DD9: pop ebx */ 5950 ebp = POP32_VAL(esp); /* 0x25001DDA: pop ebp */ 5951 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DDB: ret 4 */ 5952 L_25001DDE: 5953 ecx = esi; /* 0x25001DDE: mov ecx, esi */ 5954 RECOMP_ICALL(0x25093910u); /* 0x25001DE0: call 0x25093910 */ /* not lifted */ 5955 RECOMP_FLAGS_IN(); 5956 /* test LO8(ebx), 1 */ /* 0x25001DE5: test bl, 1 */ 5957 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5958 _cf = 0; 5959 _flag_k = FK_NARROW(FK_TEST, 24); 5960 if (TEST_Z(_flag_a, _flag_b)) goto L_25001DF3; /* 0x25001DE8: je 0x25001df3 */ 5961 L_25001DEA: 5962 PUSH32(esp, esi); /* 0x25001DEA: push esi */ 5963 RECOMP_ICALL(0x25137EECu); /* 0x25001DEB: call 0x25137eec */ /* not lifted */ 5964 RECOMP_FLAGS_IN(); 5965 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5966 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5967 esp = esp + 4; /* 0x25001DF0: add esp, 4 */ 5968 _flag_k = FK_ADD; 5969 L_25001DF3: 5970 eax = esi; /* 0x25001DF3: mov eax, esi */ 5971 esi = POP32_VAL(esp); /* 0x25001DF5: pop esi */ 5972 ebx = POP32_VAL(esp); /* 0x25001DF6: pop ebx */ 5973 ebp = POP32_VAL(esp); /* 0x25001DF7: pop ebp */ 5974 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25001DF8: ret 4 */ 5975 L_25094140: 5976 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 5977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5978 ecx = ecx - 0x150u; /* 0x25094140: sub ecx, 0x150 */ 5979 _flag_k = FK_CMP; 5980 RECOMP_BACKEDGE(); 5981 goto L_25001DA0; /* 0x25094146: jmp 0x25001da0 */ 5982 { RECOMP_REGS_OUT(); return; } /* end of function */ 5983 RECOMP_REGS_OUT(); 5984 } 5985 5986 void sub_25094150(void) { 5987 int _fpu_cmp = 0; 5988 uint32_t _cf = 0; 5989 int _df = 1; 5990 uint32_t _flag_k = FK_NONE; 5991 uint32_t _flag_a = 0, _flag_b = 0; 5992 uint32_t _itail_tgt = 0; 5993 RECOMP_REGS_LOCALS 5994 RECOMP_ENTER(0x25094150u); 5995 5996 L_25094150: 5997 eax = MEM32(0x252382D8); /* 0x25094150: mov eax, dword ptr [0x252382d8] */ 5998 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094155: ret */ 5999 RECOMP_REGS_OUT(); 6000 } 6001 6002 void sub_25094160(void) { 6003 int _fpu_cmp = 0; 6004 uint32_t _cf = 0; 6005 int _df = 1; 6006 uint32_t _flag_k = FK_NONE; 6007 uint32_t _flag_a = 0, _flag_b = 0; 6008 uint32_t _itail_tgt = 0; 6009 RECOMP_REGS_LOCALS 6010 RECOMP_ENTER(0x25094160u); 6011 6012 L_25094160: 6013 PUSH32(esp, ebp); /* 0x25094160: push ebp */ 6014 ebp = esp; /* 0x25094161: mov ebp, esp */ 6015 PUSH32(esp, 0xFFFFFFFFu); /* 0x25094163: push -1 */ 6016 PUSH32(esp, 0x251495FBu); /* 0x25094165: push 0x251495fb */ 6017 eax = MEM32(FS_BASE + (0)); /* 0x2509416A: mov eax, dword ptr fs:[0] */ 6018 PUSH32(esp, eax); /* 0x25094170: push eax */ 6019 MEM32(FS_BASE + (0)) = esp; /* 0x25094171: mov dword ptr fs:[0], esp */ 6020 PUSH32(esp, ecx); /* 0x25094178: push ecx */ 6021 PUSH32(esp, esi); /* 0x25094179: push esi */ 6022 esi = ecx; /* 0x2509417A: mov esi, ecx */ 6023 PUSH32(esp, 0x138u); /* 0x2509417C: push 0x138 */ 6024 MEM32(0x252382D8) = esi; /* 0x25094181: mov dword ptr [0x252382d8], esi */ 6025 RECOMP_ICALL(0x251380D0u); /* 0x25094187: call 0x251380d0 */ /* not lifted */ 6026 RECOMP_FLAGS_IN(); 6027 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6028 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6029 esp = esp + 4; /* 0x2509418C: add esp, 4 */ 6030 _flag_k = FK_ADD; 6031 MEM32(ebp + (-0x10)) = eax; /* 0x2509418F: mov dword ptr [ebp - 0x10], eax */ 6032 /* test eax, eax */ /* 0x25094192: test eax, eax */ 6033 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6034 _cf = 0; 6035 _flag_k = FK_TEST; 6036 MEM32(ebp + (-0x4)) = 0; /* 0x25094194: mov dword ptr [ebp - 4], 0 */ 6037 if (TEST_Z(_flag_a, _flag_b)) goto L_250941BB; /* 0x2509419B: je 0x250941bb */ 6038 L_2509419D: 6039 PUSH32(esp, 0); /* 0x2509419D: push 0 */ 6040 PUSH32(esp, 0); /* 0x2509419F: push 0 */ 6041 ecx = eax; /* 0x250941A1: mov ecx, eax */ 6042 RECOMP_ICALL(0x250E1060u); /* 0x250941A3: call 0x250e1060 */ /* not lifted */ 6043 RECOMP_FLAGS_IN(); 6044 MEM32(esi) = eax; /* 0x250941A8: mov dword ptr [esi], eax */ 6045 eax = esi; /* 0x250941AA: mov eax, esi */ 6046 esi = POP32_VAL(esp); /* 0x250941AC: pop esi */ 6047 ecx = MEM32(ebp + (-0xC)); /* 0x250941AD: mov ecx, dword ptr [ebp - 0xc] */ 6048 MEM32(FS_BASE + (0)) = ecx; /* 0x250941B0: mov dword ptr fs:[0], ecx */ 6049 esp = ebp; /* 0x250941B7: mov esp, ebp */ 6050 ebp = POP32_VAL(esp); /* 0x250941B9: pop ebp */ 6051 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250941BA: ret */ 6052 L_250941BB: 6053 ecx = MEM32(ebp + (-0xC)); /* 0x250941BB: mov ecx, dword ptr [ebp - 0xc] */ 6054 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6055 eax = 0; /* 0x250941BE: xor eax, eax */ 6056 _cf = 0; 6057 _flag_k = FK_TEST; 6058 MEM32(esi) = eax; /* 0x250941C0: mov dword ptr [esi], eax */ 6059 eax = esi; /* 0x250941C2: mov eax, esi */ 6060 esi = POP32_VAL(esp); /* 0x250941C4: pop esi */ 6061 MEM32(FS_BASE + (0)) = ecx; /* 0x250941C5: mov dword ptr fs:[0], ecx */ 6062 esp = ebp; /* 0x250941CC: mov esp, ebp */ 6063 ebp = POP32_VAL(esp); /* 0x250941CE: pop ebp */ 6064 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250941CF: ret */ 6065 RECOMP_REGS_OUT(); 6066 } 6067 6068 void sub_250941D0(void) { 6069 int _fpu_cmp = 0; 6070 uint32_t _cf = 0; 6071 int _df = 1; 6072 uint32_t _flag_k = FK_NONE; 6073 uint32_t _flag_a = 0, _flag_b = 0; 6074 uint32_t _itail_tgt = 0; 6075 RECOMP_REGS_LOCALS 6076 RECOMP_ENTER(0x250941D0u); 6077 6078 L_250941D0: 6079 PUSH32(esp, esi); /* 0x250941D0: push esi */ 6080 esi = ecx; /* 0x250941D1: mov esi, ecx */ 6081 ecx = MEM32(esi); /* 0x250941D3: mov ecx, dword ptr [esi] */ 6082 /* test ecx, ecx */ /* 0x250941D5: test ecx, ecx */ 6083 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6084 _cf = 0; 6085 _flag_k = FK_TEST; 6086 if (TEST_Z(_flag_a, _flag_b)) goto L_250941DF; /* 0x250941D7: je 0x250941df */ 6087 L_250941D9: 6088 eax = MEM32(ecx); /* 0x250941D9: mov eax, dword ptr [ecx] */ 6089 PUSH32(esp, 1); /* 0x250941DB: push 1 */ 6090 RECOMP_ICALL(MEM32(eax)); /* 0x250941DD: call dword ptr [eax] */ 6091 RECOMP_FLAGS_IN(); 6092 L_250941DF: 6093 MEM32(esi) = 0; /* 0x250941DF: mov dword ptr [esi], 0 */ 6094 MEM32(0x252382D8) = 0; /* 0x250941E5: mov dword ptr [0x252382d8], 0 */ 6095 esi = POP32_VAL(esp); /* 0x250941EF: pop esi */ 6096 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250941F0: ret */ 6097 RECOMP_REGS_OUT(); 6098 } 6099 6100 void sub_25094200(void) { 6101 int _fpu_cmp = 0; 6102 uint32_t _cf = 0; 6103 int _df = 1; 6104 uint32_t _flag_k = FK_NONE; 6105 uint32_t _flag_a = 0, _flag_b = 0; 6106 uint32_t _itail_tgt = 0; 6107 RECOMP_REGS_LOCALS 6108 RECOMP_ENTER(0x25094200u); 6109 6110 L_25094200: 6111 PUSH32(esp, ebp); /* 0x25094200: push ebp */ 6112 ebp = esp; /* 0x25094201: mov ebp, esp */ 6113 ecx = MEM32(ecx); /* 0x25094203: mov ecx, dword ptr [ecx] */ 6114 edx = MEM32(ebp + 0x8); /* 0x25094205: mov edx, dword ptr [ebp + 8] */ 6115 eax = MEM32(ecx); /* 0x25094208: mov eax, dword ptr [ecx] */ 6116 PUSH32(esp, edx); /* 0x2509420A: push edx */ 6117 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2509420B: call dword ptr [eax + 0xc] */ 6118 RECOMP_FLAGS_IN(); 6119 ebp = POP32_VAL(esp); /* 0x2509420E: pop ebp */ 6120 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509420F: ret 4 */ 6121 RECOMP_REGS_OUT(); 6122 } 6123 6124 void sub_25094220(void) { 6125 int _fpu_cmp = 0; 6126 uint32_t _cf = 0; 6127 int _df = 1; 6128 uint32_t _flag_k = FK_NONE; 6129 uint32_t _flag_a = 0, _flag_b = 0; 6130 uint32_t _itail_tgt = 0; 6131 RECOMP_REGS_LOCALS 6132 RECOMP_ENTER(0x25094220u); 6133 6134 L_25094220: 6135 eax = MEM32(ecx); /* 0x25094220: mov eax, dword ptr [ecx] */ 6136 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094222: ret */ 6137 RECOMP_REGS_OUT(); 6138 } 6139 6140 void sub_25094230(void) { 6141 int _fpu_cmp = 0; 6142 uint32_t _cf = 0; 6143 int _df = 1; 6144 uint32_t _flag_k = FK_NONE; 6145 uint32_t _flag_a = 0, _flag_b = 0; 6146 uint32_t _itail_tgt = 0; 6147 RECOMP_REGS_LOCALS 6148 RECOMP_ENTER(0x25094230u); 6149 6150 L_25094230: 6151 PUSH32(esp, ebp); /* 0x25094230: push ebp */ 6152 ebp = esp; /* 0x25094231: mov ebp, esp */ 6153 eax = MEM32(ebp + 0x8); /* 0x25094233: mov eax, dword ptr [ebp + 8] */ 6154 ecx = MEM32(eax + 0x6C); /* 0x25094236: mov ecx, dword ptr [eax + 0x6c] */ 6155 edx = MEM32(ecx); /* 0x25094239: mov edx, dword ptr [ecx] */ 6156 PUSH32(esp, eax); /* 0x2509423B: push eax */ 6157 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2509423C: call dword ptr [edx + 0x10] */ 6158 RECOMP_FLAGS_IN(); 6159 ebp = POP32_VAL(esp); /* 0x2509423F: pop ebp */ 6160 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25094240: ret 4 */ 6161 RECOMP_REGS_OUT(); 6162 } 6163 6164 void sub_25094250(void) { 6165 int _fpu_cmp = 0; 6166 uint32_t _cf = 0; 6167 int _df = 1; 6168 uint32_t _flag_k = FK_NONE; 6169 uint32_t _flag_a = 0, _flag_b = 0; 6170 uint32_t _itail_tgt = 0; 6171 RECOMP_REGS_LOCALS 6172 RECOMP_ENTER(0x25094250u); 6173 6174 L_25094250: 6175 PUSH32(esp, ebp); /* 0x25094250: push ebp */ 6176 ebp = esp; /* 0x25094251: mov ebp, esp */ 6177 PUSH32(esp, 0xFFFFFFFFu); /* 0x25094253: push -1 */ 6178 PUSH32(esp, 0x2514961Bu); /* 0x25094255: push 0x2514961b */ 6179 eax = MEM32(FS_BASE + (0)); /* 0x2509425A: mov eax, dword ptr fs:[0] */ 6180 PUSH32(esp, eax); /* 0x25094260: push eax */ 6181 MEM32(FS_BASE + (0)) = esp; /* 0x25094261: mov dword ptr fs:[0], esp */ 6182 PUSH32(esp, ecx); /* 0x25094268: push ecx */ 6183 PUSH32(esp, esi); /* 0x25094269: push esi */ 6184 esi = ecx; /* 0x2509426A: mov esi, ecx */ 6185 ecx = MEM32(esi); /* 0x2509426C: mov ecx, dword ptr [esi] */ 6186 /* test ecx, ecx */ /* 0x2509426E: test ecx, ecx */ 6187 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6188 _cf = 0; 6189 _flag_k = FK_TEST; 6190 if (TEST_Z(_flag_a, _flag_b)) goto L_25094278; /* 0x25094270: je 0x25094278 */ 6191 L_25094272: 6192 eax = MEM32(ecx); /* 0x25094272: mov eax, dword ptr [ecx] */ 6193 PUSH32(esp, 1); /* 0x25094274: push 1 */ 6194 RECOMP_ICALL(MEM32(eax)); /* 0x25094276: call dword ptr [eax] */ 6195 RECOMP_FLAGS_IN(); 6196 L_25094278: 6197 PUSH32(esp, 0x138u); /* 0x25094278: push 0x138 */ 6198 RECOMP_ICALL(0x251380D0u); /* 0x2509427D: call 0x251380d0 */ /* not lifted */ 6199 RECOMP_FLAGS_IN(); 6200 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6202 esp = esp + 4; /* 0x25094282: add esp, 4 */ 6203 _flag_k = FK_ADD; 6204 MEM32(ebp + (-0x10)) = eax; /* 0x25094285: mov dword ptr [ebp - 0x10], eax */ 6205 /* test eax, eax */ /* 0x25094288: test eax, eax */ 6206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6207 _cf = 0; 6208 _flag_k = FK_TEST; 6209 MEM32(ebp + (-0x4)) = 0; /* 0x2509428A: mov dword ptr [ebp - 4], 0 */ 6210 if (TEST_Z(_flag_a, _flag_b)) goto L_250942AF; /* 0x25094291: je 0x250942af */ 6211 L_25094293: 6212 PUSH32(esp, 0); /* 0x25094293: push 0 */ 6213 PUSH32(esp, 0); /* 0x25094295: push 0 */ 6214 ecx = eax; /* 0x25094297: mov ecx, eax */ 6215 RECOMP_ICALL(0x250E1060u); /* 0x25094299: call 0x250e1060 */ /* not lifted */ 6216 RECOMP_FLAGS_IN(); 6217 MEM32(esi) = eax; /* 0x2509429E: mov dword ptr [esi], eax */ 6218 esi = POP32_VAL(esp); /* 0x250942A0: pop esi */ 6219 ecx = MEM32(ebp + (-0xC)); /* 0x250942A1: mov ecx, dword ptr [ebp - 0xc] */ 6220 MEM32(FS_BASE + (0)) = ecx; /* 0x250942A4: mov dword ptr fs:[0], ecx */ 6221 esp = ebp; /* 0x250942AB: mov esp, ebp */ 6222 ebp = POP32_VAL(esp); /* 0x250942AD: pop ebp */ 6223 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250942AE: ret */ 6224 L_250942AF: 6225 ecx = MEM32(ebp + (-0xC)); /* 0x250942AF: mov ecx, dword ptr [ebp - 0xc] */ 6226 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6227 eax = 0; /* 0x250942B2: xor eax, eax */ 6228 _cf = 0; 6229 _flag_k = FK_TEST; 6230 MEM32(esi) = eax; /* 0x250942B4: mov dword ptr [esi], eax */ 6231 esi = POP32_VAL(esp); /* 0x250942B6: pop esi */ 6232 MEM32(FS_BASE + (0)) = ecx; /* 0x250942B7: mov dword ptr fs:[0], ecx */ 6233 esp = ebp; /* 0x250942BE: mov esp, ebp */ 6234 ebp = POP32_VAL(esp); /* 0x250942C0: pop ebp */ 6235 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250942C1: ret */ 6236 RECOMP_REGS_OUT(); 6237 } 6238 6239 void sub_2509426E(void) { 6240 int _fpu_cmp = 0; 6241 uint32_t _cf = 0; 6242 int _df = 1; 6243 uint32_t _flag_k = FK_NONE; 6244 uint32_t _flag_a = 0, _flag_b = 0; 6245 uint32_t _itail_tgt = 0; 6246 RECOMP_REGS_LOCALS 6247 RECOMP_ENTER(0x2509426Eu); 6248 6249 L_2509426E: 6250 /* test ecx, ecx */ /* 0x2509426E: test ecx, ecx */ 6251 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6252 _cf = 0; 6253 _flag_k = FK_TEST; 6254 if (TEST_Z(_flag_a, _flag_b)) goto L_25094278; /* 0x25094270: je 0x25094278 */ 6255 L_25094272: 6256 eax = MEM32(ecx); /* 0x25094272: mov eax, dword ptr [ecx] */ 6257 PUSH32(esp, 1); /* 0x25094274: push 1 */ 6258 RECOMP_ICALL(MEM32(eax)); /* 0x25094276: call dword ptr [eax] */ 6259 RECOMP_FLAGS_IN(); 6260 L_25094278: 6261 PUSH32(esp, 0x138u); /* 0x25094278: push 0x138 */ 6262 RECOMP_ICALL(0x251380D0u); /* 0x2509427D: call 0x251380d0 */ /* not lifted */ 6263 RECOMP_FLAGS_IN(); 6264 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6265 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6266 esp = esp + 4; /* 0x25094282: add esp, 4 */ 6267 _flag_k = FK_ADD; 6268 MEM32(ebp + (-0x10)) = eax; /* 0x25094285: mov dword ptr [ebp - 0x10], eax */ 6269 /* test eax, eax */ /* 0x25094288: test eax, eax */ 6270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6271 _cf = 0; 6272 _flag_k = FK_TEST; 6273 MEM32(ebp + (-0x4)) = 0; /* 0x2509428A: mov dword ptr [ebp - 4], 0 */ 6274 if (TEST_Z(_flag_a, _flag_b)) goto L_250942AF; /* 0x25094291: je 0x250942af */ 6275 L_25094293: 6276 PUSH32(esp, 0); /* 0x25094293: push 0 */ 6277 PUSH32(esp, 0); /* 0x25094295: push 0 */ 6278 ecx = eax; /* 0x25094297: mov ecx, eax */ 6279 RECOMP_ICALL(0x250E1060u); /* 0x25094299: call 0x250e1060 */ /* not lifted */ 6280 RECOMP_FLAGS_IN(); 6281 MEM32(esi) = eax; /* 0x2509429E: mov dword ptr [esi], eax */ 6282 esi = POP32_VAL(esp); /* 0x250942A0: pop esi */ 6283 ecx = MEM32(ebp + (-0xC)); /* 0x250942A1: mov ecx, dword ptr [ebp - 0xc] */ 6284 MEM32(FS_BASE + (0)) = ecx; /* 0x250942A4: mov dword ptr fs:[0], ecx */ 6285 esp = ebp; /* 0x250942AB: mov esp, ebp */ 6286 ebp = POP32_VAL(esp); /* 0x250942AD: pop ebp */ 6287 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250942AE: ret */ 6288 L_250942AF: 6289 ecx = MEM32(ebp + (-0xC)); /* 0x250942AF: mov ecx, dword ptr [ebp - 0xc] */ 6290 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6291 eax = 0; /* 0x250942B2: xor eax, eax */ 6292 _cf = 0; 6293 _flag_k = FK_TEST; 6294 MEM32(esi) = eax; /* 0x250942B4: mov dword ptr [esi], eax */ 6295 esi = POP32_VAL(esp); /* 0x250942B6: pop esi */ 6296 MEM32(FS_BASE + (0)) = ecx; /* 0x250942B7: mov dword ptr fs:[0], ecx */ 6297 esp = ebp; /* 0x250942BE: mov esp, ebp */ 6298 ebp = POP32_VAL(esp); /* 0x250942C0: pop ebp */ 6299 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250942C1: ret */ 6300 RECOMP_REGS_OUT(); 6301 } 6302 6303 void sub_250942D0(void) { 6304 int _fpu_cmp = 0; 6305 uint32_t _cf = 0; 6306 int _df = 1; 6307 uint32_t _flag_k = FK_NONE; 6308 uint32_t _flag_a = 0, _flag_b = 0; 6309 uint32_t _itail_tgt = 0; 6310 RECOMP_REGS_LOCALS 6311 RECOMP_ENTER(0x250942D0u); 6312 6313 L_250942D0: 6314 SET_LO8(eax, MEM8(0x25238325)); /* 0x250942D0: mov al, byte ptr [0x25238325] */ 6315 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250942D5: ret */ 6316 RECOMP_REGS_OUT(); 6317 } 6318 6319 void sub_250942E0(void) { 6320 int _fpu_cmp = 0; 6321 uint32_t _cf = 0; 6322 int _df = 1; 6323 uint32_t _flag_k = FK_NONE; 6324 uint32_t _flag_a = 0, _flag_b = 0; 6325 uint32_t _itail_tgt = 0; 6326 RECOMP_REGS_LOCALS 6327 RECOMP_ENTER(0x250942E0u); 6328 6329 L_250942E0: 6330 goto L_250942F0; /* 0x250942E0: jmp 0x250942f0 */ 6331 L_250942F0: 6332 MEM32(0x25238318) = 0; /* 0x250942F0: mov dword ptr [0x25238318], 0 */ 6333 MEM32(0x2523831C) = 0; /* 0x250942FA: mov dword ptr [0x2523831c], 0 */ 6334 MEM32(0x25238320) = 0; /* 0x25094304: mov dword ptr [0x25238320], 0 */ 6335 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509430E: ret */ 6336 RECOMP_REGS_OUT(); 6337 } 6338 6339 void sub_250942F0(void) { 6340 int _fpu_cmp = 0; 6341 uint32_t _cf = 0; 6342 int _df = 1; 6343 uint32_t _flag_k = FK_NONE; 6344 uint32_t _flag_a = 0, _flag_b = 0; 6345 uint32_t _itail_tgt = 0; 6346 RECOMP_REGS_LOCALS 6347 RECOMP_ENTER(0x250942F0u); 6348 6349 L_250942F0: 6350 MEM32(0x25238318) = 0; /* 0x250942F0: mov dword ptr [0x25238318], 0 */ 6351 MEM32(0x2523831C) = 0; /* 0x250942FA: mov dword ptr [0x2523831c], 0 */ 6352 MEM32(0x25238320) = 0; /* 0x25094304: mov dword ptr [0x25238320], 0 */ 6353 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509430E: ret */ 6354 RECOMP_REGS_OUT(); 6355 } 6356 6357 void sub_25094310(void) { 6358 int _fpu_cmp = 0; 6359 uint32_t _cf = 0; 6360 int _df = 1; 6361 uint32_t _flag_k = FK_NONE; 6362 uint32_t _flag_a = 0, _flag_b = 0; 6363 uint32_t _itail_tgt = 0; 6364 RECOMP_REGS_LOCALS 6365 RECOMP_ENTER(0x25094310u); 6366 6367 L_25094310: 6368 goto L_25094320; /* 0x25094310: jmp 0x25094320 */ 6369 L_25094320: 6370 MEM32(0x25238308) = 0; /* 0x25094320: mov dword ptr [0x25238308], 0 */ 6371 MEM32(0x2523830C) = 0; /* 0x2509432A: mov dword ptr [0x2523830c], 0 */ 6372 MEM32(0x25238310) = 0; /* 0x25094334: mov dword ptr [0x25238310], 0 */ 6373 MEM32(0x25238314) = 0x3F800000u; /* 0x2509433E: mov dword ptr [0x25238314], 0x3f800000 */ 6374 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094348: ret */ 6375 RECOMP_REGS_OUT(); 6376 } 6377 6378 void sub_25094320(void) { 6379 int _fpu_cmp = 0; 6380 uint32_t _cf = 0; 6381 int _df = 1; 6382 uint32_t _flag_k = FK_NONE; 6383 uint32_t _flag_a = 0, _flag_b = 0; 6384 uint32_t _itail_tgt = 0; 6385 RECOMP_REGS_LOCALS 6386 RECOMP_ENTER(0x25094320u); 6387 6388 L_25094320: 6389 MEM32(0x25238308) = 0; /* 0x25094320: mov dword ptr [0x25238308], 0 */ 6390 MEM32(0x2523830C) = 0; /* 0x2509432A: mov dword ptr [0x2523830c], 0 */ 6391 MEM32(0x25238310) = 0; /* 0x25094334: mov dword ptr [0x25238310], 0 */ 6392 MEM32(0x25238314) = 0x3F800000u; /* 0x2509433E: mov dword ptr [0x25238314], 0x3f800000 */ 6393 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094348: ret */ 6394 RECOMP_REGS_OUT(); 6395 } 6396 6397 void sub_25094350(void) { 6398 int _fpu_cmp = 0; 6399 uint32_t _cf = 0; 6400 int _df = 1; 6401 uint32_t _flag_k = FK_NONE; 6402 uint32_t _flag_a = 0, _flag_b = 0; 6403 uint32_t _itail_tgt = 0; 6404 RECOMP_REGS_LOCALS 6405 RECOMP_ENTER(0x25094350u); 6406 6407 L_25094350: 6408 goto L_25094360; /* 0x25094350: jmp 0x25094360 */ 6409 L_25094360: 6410 MEM32(0x252382F8) = 0; /* 0x25094360: mov dword ptr [0x252382f8], 0 */ 6411 MEM32(0x252382FC) = 0; /* 0x2509436A: mov dword ptr [0x252382fc], 0 */ 6412 MEM32(0x25238300) = 0; /* 0x25094374: mov dword ptr [0x25238300], 0 */ 6413 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509437E: ret */ 6414 RECOMP_REGS_OUT(); 6415 } 6416 6417 void sub_25094360(void) { 6418 int _fpu_cmp = 0; 6419 uint32_t _cf = 0; 6420 int _df = 1; 6421 uint32_t _flag_k = FK_NONE; 6422 uint32_t _flag_a = 0, _flag_b = 0; 6423 uint32_t _itail_tgt = 0; 6424 RECOMP_REGS_LOCALS 6425 RECOMP_ENTER(0x25094360u); 6426 6427 L_25094360: 6428 MEM32(0x252382F8) = 0; /* 0x25094360: mov dword ptr [0x252382f8], 0 */ 6429 MEM32(0x252382FC) = 0; /* 0x2509436A: mov dword ptr [0x252382fc], 0 */ 6430 MEM32(0x25238300) = 0; /* 0x25094374: mov dword ptr [0x25238300], 0 */ 6431 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509437E: ret */ 6432 RECOMP_REGS_OUT(); 6433 } 6434 6435 void sub_25094380(void) { 6436 int _fpu_cmp = 0; 6437 uint32_t _cf = 0; 6438 int _df = 1; 6439 uint32_t _flag_k = FK_NONE; 6440 uint32_t _flag_a = 0, _flag_b = 0; 6441 uint32_t _itail_tgt = 0; 6442 RECOMP_REGS_LOCALS 6443 RECOMP_ENTER(0x25094380u); 6444 6445 L_25094380: 6446 goto L_25094390; /* 0x25094380: jmp 0x25094390 */ 6447 L_25094390: 6448 MEM32(0x252382E8) = 0; /* 0x25094390: mov dword ptr [0x252382e8], 0 */ 6449 MEM32(0x252382EC) = 0; /* 0x2509439A: mov dword ptr [0x252382ec], 0 */ 6450 MEM32(0x252382F0) = 0; /* 0x250943A4: mov dword ptr [0x252382f0], 0 */ 6451 MEM32(0x252382F4) = 0x3F800000u; /* 0x250943AE: mov dword ptr [0x252382f4], 0x3f800000 */ 6452 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250943B8: ret */ 6453 RECOMP_REGS_OUT(); 6454 } 6455 6456 void sub_25094390(void) { 6457 int _fpu_cmp = 0; 6458 uint32_t _cf = 0; 6459 int _df = 1; 6460 uint32_t _flag_k = FK_NONE; 6461 uint32_t _flag_a = 0, _flag_b = 0; 6462 uint32_t _itail_tgt = 0; 6463 RECOMP_REGS_LOCALS 6464 RECOMP_ENTER(0x25094390u); 6465 6466 L_25094390: 6467 MEM32(0x252382E8) = 0; /* 0x25094390: mov dword ptr [0x252382e8], 0 */ 6468 MEM32(0x252382EC) = 0; /* 0x2509439A: mov dword ptr [0x252382ec], 0 */ 6469 MEM32(0x252382F0) = 0; /* 0x250943A4: mov dword ptr [0x252382f0], 0 */ 6470 MEM32(0x252382F4) = 0x3F800000u; /* 0x250943AE: mov dword ptr [0x252382f4], 0x3f800000 */ 6471 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250943B8: ret */ 6472 RECOMP_REGS_OUT(); 6473 } 6474 6475 void sub_250943C0(void) { 6476 int _fpu_cmp = 0; 6477 uint32_t _cf = 0; 6478 int _df = 1; 6479 uint32_t _flag_k = FK_NONE; 6480 uint32_t _flag_a = 0, _flag_b = 0; 6481 uint32_t _itail_tgt = 0; 6482 RECOMP_REGS_LOCALS 6483 RECOMP_ENTER(0x250943C0u); 6484 6485 L_250943C0: 6486 PUSH32(esp, ebp); /* 0x250943C0: push ebp */ 6487 ebp = esp; /* 0x250943C1: mov ebp, esp */ 6488 PUSH32(esp, 0xFFFFFFFFu); /* 0x250943C3: push -1 */ 6489 PUSH32(esp, 0x2514963Bu); /* 0x250943C5: push 0x2514963b */ 6490 eax = MEM32(FS_BASE + (0)); /* 0x250943CA: mov eax, dword ptr fs:[0] */ 6491 PUSH32(esp, eax); /* 0x250943D0: push eax */ 6492 MEM32(FS_BASE + (0)) = esp; /* 0x250943D1: mov dword ptr fs:[0], esp */ 6493 PUSH32(esp, ecx); /* 0x250943D8: push ecx */ 6494 eax = MEM32(ebp + 0x8); /* 0x250943D9: mov eax, dword ptr [ebp + 8] */ 6495 PUSH32(esp, esi); /* 0x250943DC: push esi */ 6496 esi = ecx; /* 0x250943DD: mov esi, ecx */ 6497 PUSH32(esp, edi); /* 0x250943DF: push edi */ 6498 MEM32(esi) = 0; /* 0x250943E0: mov dword ptr [esi], 0 */ 6499 PUSH32(esp, 0x198u); /* 0x250943E6: push 0x198 */ 6500 MEM32(0x252382E0) = eax; /* 0x250943EB: mov dword ptr [0x252382e0], eax */ 6501 RECOMP_ICALL(0x251380D0u); /* 0x250943F0: call 0x251380d0 */ /* not lifted */ 6502 RECOMP_FLAGS_IN(); 6503 edi = eax; /* 0x250943F5: mov edi, eax */ 6504 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6505 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6506 esp = esp + 4; /* 0x250943F7: add esp, 4 */ 6507 _flag_k = FK_ADD; 6508 MEM32(ebp + (-0x10)) = edi; /* 0x250943FA: mov dword ptr [ebp - 0x10], edi */ 6509 /* test edi, edi */ /* 0x250943FD: test edi, edi */ 6510 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6511 _cf = 0; 6512 _flag_k = FK_TEST; 6513 MEM32(ebp + (-0x4)) = 0; /* 0x250943FF: mov dword ptr [ebp - 4], 0 */ 6514 if (TEST_Z(_flag_a, _flag_b)) goto L_25094430; /* 0x25094406: je 0x25094430 */ 6515 L_25094408: 6516 PUSH32(esp, 0); /* 0x25094408: push 0 */ 6517 RECOMP_ICALL(0x25094150u); /* 0x2509440A: call 0x25094150 */ /* not lifted */ 6518 RECOMP_FLAGS_IN(); 6519 ecx = eax; /* 0x2509440F: mov ecx, eax */ 6520 RECOMP_ICALL(0x25094220u); /* 0x25094411: call 0x25094220 */ /* not lifted */ 6521 RECOMP_FLAGS_IN(); 6522 ecx = MEM32(ebp + 0x14); /* 0x25094416: mov ecx, dword ptr [ebp + 0x14] */ 6523 edx = MEM32(ebp + 0x10); /* 0x25094419: mov edx, dword ptr [ebp + 0x10] */ 6524 PUSH32(esp, eax); /* 0x2509441C: push eax */ 6525 eax = MEM32(ebp + 0xC); /* 0x2509441D: mov eax, dword ptr [ebp + 0xc] */ 6526 PUSH32(esp, ecx); /* 0x25094420: push ecx */ 6527 ecx = MEM32(ebp + 0x8); /* 0x25094421: mov ecx, dword ptr [ebp + 8] */ 6528 PUSH32(esp, edx); /* 0x25094424: push edx */ 6529 PUSH32(esp, eax); /* 0x25094425: push eax */ 6530 PUSH32(esp, ecx); /* 0x25094426: push ecx */ 6531 ecx = edi; /* 0x25094427: mov ecx, edi */ 6532 RECOMP_ICALL(0x250F0AA0u); /* 0x25094429: call 0x250f0aa0 */ /* not lifted */ 6533 RECOMP_FLAGS_IN(); 6534 goto L_25094432; /* 0x2509442E: jmp 0x25094432 */ 6535 L_25094430: 6536 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6537 eax = 0; /* 0x25094430: xor eax, eax */ 6538 _cf = 0; 6539 _flag_k = FK_TEST; 6540 L_25094432: 6541 ecx = esi; /* 0x25094432: mov ecx, esi */ 6542 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25094434: mov dword ptr [ebp - 4], 0xffffffff */ 6543 MEM32(esi) = eax; /* 0x2509443B: mov dword ptr [esi], eax */ 6544 RECOMP_ICALL(0x250946E0u); /* 0x2509443D: call 0x250946e0 */ /* not lifted */ 6545 RECOMP_FLAGS_IN(); 6546 ecx = MEM32(ebp + (-0xC)); /* 0x25094442: mov ecx, dword ptr [ebp - 0xc] */ 6547 edi = POP32_VAL(esp); /* 0x25094445: pop edi */ 6548 eax = esi; /* 0x25094446: mov eax, esi */ 6549 esi = POP32_VAL(esp); /* 0x25094448: pop esi */ 6550 MEM32(FS_BASE + (0)) = ecx; /* 0x25094449: mov dword ptr fs:[0], ecx */ 6551 esp = ebp; /* 0x25094450: mov esp, ebp */ 6552 ebp = POP32_VAL(esp); /* 0x25094452: pop ebp */ 6553 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25094453: ret 0x10 */ 6554 RECOMP_REGS_OUT(); 6555 } 6556 6557 void sub_25094460(void) { 6558 int _fpu_cmp = 0; 6559 uint32_t _cf = 0; 6560 int _df = 1; 6561 uint32_t _flag_k = FK_NONE; 6562 uint32_t _flag_a = 0, _flag_b = 0; 6563 uint32_t _itail_tgt = 0; 6564 RECOMP_REGS_LOCALS 6565 RECOMP_ENTER(0x25094460u); 6566 6567 L_25094460: 6568 PUSH32(esp, esi); /* 0x25094460: push esi */ 6569 PUSH32(esp, 0); /* 0x25094461: push 0 */ 6570 esi = ecx; /* 0x25094463: mov esi, ecx */ 6571 RECOMP_ICALL(0x250A4C30u); /* 0x25094465: call 0x250a4c30 */ /* not lifted */ 6572 RECOMP_FLAGS_IN(); 6573 ecx = eax; /* 0x2509446A: mov ecx, eax */ 6574 RECOMP_ICALL(0x250A4FE0u); /* 0x2509446C: call 0x250a4fe0 */ /* not lifted */ 6575 RECOMP_FLAGS_IN(); 6576 eax = MEM32(esi); /* 0x25094471: mov eax, dword ptr [esi] */ 6577 ecx = MEM32(eax + 0x6C); /* 0x25094473: mov ecx, dword ptr [eax + 0x6c] */ 6578 edx = MEM32(ecx); /* 0x25094476: mov edx, dword ptr [ecx] */ 6579 PUSH32(esp, eax); /* 0x25094478: push eax */ 6580 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x25094479: call dword ptr [edx + 0x10] */ 6581 RECOMP_FLAGS_IN(); 6582 ecx = MEM32(esi); /* 0x2509447C: mov ecx, dword ptr [esi] */ 6583 /* test ecx, ecx */ /* 0x2509447E: test ecx, ecx */ 6584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6585 _cf = 0; 6586 _flag_k = FK_TEST; 6587 if (TEST_Z(_flag_a, _flag_b)) goto L_25094488; /* 0x25094480: je 0x25094488 */ 6588 L_25094482: 6589 eax = MEM32(ecx); /* 0x25094482: mov eax, dword ptr [ecx] */ 6590 PUSH32(esp, 1); /* 0x25094484: push 1 */ 6591 RECOMP_ICALL(MEM32(eax)); /* 0x25094486: call dword ptr [eax] */ 6592 RECOMP_FLAGS_IN(); 6593 L_25094488: 6594 MEM32(esi) = 0; /* 0x25094488: mov dword ptr [esi], 0 */ 6595 esi = POP32_VAL(esp); /* 0x2509448E: pop esi */ 6596 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509448F: ret */ 6597 RECOMP_REGS_OUT(); 6598 } 6599 6600 void sub_25094490(void) { 6601 int _fpu_cmp = 0; 6602 uint32_t _cf = 0; 6603 int _df = 1; 6604 uint32_t _flag_k = FK_NONE; 6605 uint32_t _flag_a = 0, _flag_b = 0; 6606 uint32_t _itail_tgt = 0; 6607 RECOMP_REGS_LOCALS 6608 RECOMP_ENTER(0x25094490u); 6609 6610 L_25094490: 6611 PUSH32(esp, ebp); /* 0x25094490: push ebp */ 6612 ebp = esp; /* 0x25094491: mov ebp, esp */ 6613 PUSH32(esp, ecx); /* 0x25094493: push ecx */ 6614 PUSH32(esp, esi); /* 0x25094494: push esi */ 6615 PUSH32(esp, edi); /* 0x25094495: push edi */ 6616 esi = ecx; /* 0x25094496: mov esi, ecx */ 6617 RECOMP_ICALL(0x2507F900u); /* 0x25094498: call 0x2507f900 */ /* not lifted */ 6618 RECOMP_FLAGS_IN(); 6619 eax = MEM32(eax + 0x718); /* 0x2509449D: mov eax, dword ptr [eax + 0x718] */ 6620 ecx = eax + 0xC; /* 0x250944A3: lea ecx, [eax + 0xc] */ 6621 eax = MEM32(ebp + 0x8); /* 0x250944A6: mov eax, dword ptr [ebp + 8] */ 6622 edx = eax; /* 0x250944A9: mov edx, eax */ 6623 edi = MEM32(edx); /* 0x250944AB: mov edi, dword ptr [edx] */ 6624 MEM32(ecx) = edi; /* 0x250944AD: mov dword ptr [ecx], edi */ 6625 edi = MEM32(edx + 0x4); /* 0x250944AF: mov edi, dword ptr [edx + 4] */ 6626 MEM32(ecx + 0x4) = edi; /* 0x250944B2: mov dword ptr [ecx + 4], edi */ 6627 edx = MEM32(edx + 0x8); /* 0x250944B5: mov edx, dword ptr [edx + 8] */ 6628 MEM32(ecx + 0x8) = edx; /* 0x250944B8: mov dword ptr [ecx + 8], edx */ 6629 ecx = MEM32(0x25238328); /* 0x250944BB: mov ecx, dword ptr [0x25238328] */ 6630 /* test ecx, ecx */ /* 0x250944C1: test ecx, ecx */ 6631 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6632 _cf = 0; 6633 _flag_k = FK_TEST; 6634 if (TEST_Z(_flag_a, _flag_b)) goto L_250945A1; /* 0x250944C3: je 0x250945a1 */ 6635 L_250944C9: 6636 RECOMP_ICALL(MEM32(0x251513AC)); /* 0x250944C9: call dword ptr [0x251513ac] */ 6637 RECOMP_FLAGS_IN(); 6638 eax = MEM32(eax + 0x14); /* 0x250944CF: mov eax, dword ptr [eax + 0x14] */ 6639 ecx = MEM32(eax); /* 0x250944D2: mov ecx, dword ptr [eax] */ 6640 MEM32(ebp + 0x8) = ecx; /* 0x250944D4: mov dword ptr [ebp + 8], ecx */ 6641 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x250944D7: fld dword ptr [ebp + 8] */ 6642 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25151924)); /* 0x250944DA: fcomp dword ptr [0x25151924] */ 6643 fp_pop(); 6644 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250944E0: fnstsw ax */ 6645 /* test HI8(eax), 0x41u */ /* 0x250944E2: test ah, 0x41 */ 6646 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 6647 _cf = 0; 6648 _flag_k = FK_NARROW(FK_TEST, 24); 6649 if (TEST_NZ(_flag_a, _flag_b)) goto L_250944EE; /* 0x250944E5: jne 0x250944ee */ 6650 L_250944E7: 6651 MEM32(ebp + 0x8) = 0x3E800000u; /* 0x250944E7: mov dword ptr [ebp + 8], 0x3e800000 */ 6652 L_250944EE: 6653 eax = MEM32(esi); /* 0x250944EE: mov eax, dword ptr [esi] */ 6654 fp_push(*(float*)&MEM32(eax + 0x140)); /* 0x250944F0: fld dword ptr [eax + 0x140] */ 6655 edx = MEM32(ebp + 0x8); /* 0x250944F6: mov edx, dword ptr [ebp + 8] */ 6656 _st[0] -= (double)*(float*)ADDR(eax + 0x138); /* 0x250944F9: fsub dword ptr [eax + 0x138] */ 6657 ecx = MEM32(0x25238328); /* 0x250944FF: mov ecx, dword ptr [0x25238328] */ 6658 PUSH32(esp, edx); /* 0x25094505: push edx */ 6659 eax = ebp + (-0x4); /* 0x25094506: lea eax, [ebp - 4] */ 6660 _st[0] *= (double)*(float*)ADDR(0x25151788); /* 0x25094509: fmul dword ptr [0x25151788] */ 6661 PUSH32(esp, eax); /* 0x2509450F: push eax */ 6662 PUSH32(esp, 0x25238308u); /* 0x25094510: push 0x25238308 */ 6663 fp_push(1.0); /* 0x25094515: fld1 */ 6664 { double _x = fp_pop(); _st[0] = atan2(_st[0], _x); } /* 0x25094517: fpatan */ 6665 PUSH32(esp, 0x25238318u); /* 0x25094519: push 0x25238318 */ 6666 _st[0] += _st[0]; /* 0x2509451E: fadd st(0), st(0) */ 6667 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x25094520: fstp dword ptr [ebp - 4] */ 6668 RECOMP_ICALL(0x250922E0u); /* 0x25094523: call 0x250922e0 */ /* not lifted */ 6669 RECOMP_FLAGS_IN(); 6670 ecx = esi; /* 0x25094528: mov ecx, esi */ 6671 RECOMP_ICALL(0x25094720u); /* 0x2509452A: call 0x25094720 */ /* not lifted */ 6672 RECOMP_FLAGS_IN(); 6673 _st[0] = fabs(_st[0]); /* 0x2509452F: fabs */ 6674 PUSH32(esp, ecx); /* 0x25094531: push ecx */ 6675 ecx = MEM32(ebp + (-0x4)); /* 0x25094532: mov ecx, dword ptr [ebp - 4] */ 6676 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x25094535: fstp dword ptr [esp] */ 6677 PUSH32(esp, ecx); /* 0x25094538: push ecx */ 6678 ecx = MEM32(esi); /* 0x25094539: mov ecx, dword ptr [esi] */ 6679 RECOMP_ICALL(0x250F0D40u); /* 0x2509453B: call 0x250f0d40 */ /* not lifted */ 6680 RECOMP_FLAGS_IN(); 6681 ecx = MEM32(esi); /* 0x25094540: mov ecx, dword ptr [esi] */ 6682 eax = MEM32(0x25238318); /* 0x25094542: mov eax, dword ptr [0x25238318] */ 6683 edx = ecx + 0x78; /* 0x25094547: lea edx, [ecx + 0x78] */ 6684 MEM32(edx) = eax; /* 0x2509454A: mov dword ptr [edx], eax */ 6685 eax = MEM32(0x2523831C); /* 0x2509454C: mov eax, dword ptr [0x2523831c] */ 6686 MEM32(edx + 0x4) = eax; /* 0x25094551: mov dword ptr [edx + 4], eax */ 6687 eax = MEM32(0x25238320); /* 0x25094554: mov eax, dword ptr [0x25238320] */ 6688 PUSH32(esp, 1); /* 0x25094559: push 1 */ 6689 MEM32(edx + 0x8) = eax; /* 0x2509455B: mov dword ptr [edx + 8], eax */ 6690 edx = MEM32(ecx); /* 0x2509455E: mov edx, dword ptr [ecx] */ 6691 PUSH32(esp, 1); /* 0x25094560: push 1 */ 6692 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x25094562: call dword ptr [edx + 0x2c] */ 6693 RECOMP_FLAGS_IN(); 6694 ecx = MEM32(esi); /* 0x25094565: mov ecx, dword ptr [esi] */ 6695 edx = MEM32(0x25238308); /* 0x25094567: mov edx, dword ptr [0x25238308] */ 6696 eax = ecx + 0x84; /* 0x2509456D: lea eax, [ecx + 0x84] */ 6697 MEM32(eax) = edx; /* 0x25094573: mov dword ptr [eax], edx */ 6698 edx = MEM32(0x2523830C); /* 0x25094575: mov edx, dword ptr [0x2523830c] */ 6699 MEM32(eax + 0x4) = edx; /* 0x2509457B: mov dword ptr [eax + 4], edx */ 6700 edx = MEM32(0x25238310); /* 0x2509457E: mov edx, dword ptr [0x25238310] */ 6701 MEM32(eax + 0x8) = edx; /* 0x25094584: mov dword ptr [eax + 8], edx */ 6702 edx = MEM32(0x25238314); /* 0x25094587: mov edx, dword ptr [0x25238314] */ 6703 PUSH32(esp, 1); /* 0x2509458D: push 1 */ 6704 MEM32(eax + 0xC) = edx; /* 0x2509458F: mov dword ptr [eax + 0xc], edx */ 6705 eax = MEM32(ecx); /* 0x25094592: mov eax, dword ptr [ecx] */ 6706 PUSH32(esp, 2); /* 0x25094594: push 2 */ 6707 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x25094596: call dword ptr [eax + 0x2c] */ 6708 RECOMP_FLAGS_IN(); 6709 edi = POP32_VAL(esp); /* 0x25094599: pop edi */ 6710 esi = POP32_VAL(esp); /* 0x2509459A: pop esi */ 6711 esp = ebp; /* 0x2509459B: mov esp, ebp */ 6712 ebp = POP32_VAL(esp); /* 0x2509459D: pop ebp */ 6713 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509459E: ret 4 */ 6714 L_250945A1: 6715 ecx = eax; /* 0x250945A1: mov ecx, eax */ 6716 edx = MEM32(ecx); /* 0x250945A3: mov edx, dword ptr [ecx] */ 6717 MEM32(0x25238318) = edx; /* 0x250945A5: mov dword ptr [0x25238318], edx */ 6718 edx = MEM32(ecx + 0x4); /* 0x250945AB: mov edx, dword ptr [ecx + 4] */ 6719 MEM32(0x2523831C) = edx; /* 0x250945AE: mov dword ptr [0x2523831c], edx */ 6720 ecx = MEM32(ecx + 0x8); /* 0x250945B4: mov ecx, dword ptr [ecx + 8] */ 6721 MEM32(0x25238320) = ecx; /* 0x250945B7: mov dword ptr [0x25238320], ecx */ 6722 SET_LO8(ecx, MEM8(0x25238324)); /* 0x250945BD: mov cl, byte ptr [0x25238324] */ 6723 /* test LO8(ecx), LO8(ecx) */ /* 0x250945C3: test cl, cl */ 6724 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6725 _cf = 0; 6726 _flag_k = FK_NARROW(FK_TEST, 24); 6727 ecx = MEM32(esi); /* 0x250945C5: mov ecx, dword ptr [esi] */ 6728 edx = ecx + 0x78; /* 0x250945C7: lea edx, [ecx + 0x78] */ 6729 if (TEST_Z(_flag_a, _flag_b)) goto L_250945F4; /* 0x250945CA: je 0x250945f4 */ 6730 L_250945CC: 6731 eax = MEM32(0x252382F8); /* 0x250945CC: mov eax, dword ptr [0x252382f8] */ 6732 MEM32(edx) = eax; /* 0x250945D1: mov dword ptr [edx], eax */ 6733 eax = MEM32(0x252382FC); /* 0x250945D3: mov eax, dword ptr [0x252382fc] */ 6734 MEM32(edx + 0x4) = eax; /* 0x250945D8: mov dword ptr [edx + 4], eax */ 6735 eax = MEM32(0x25238300); /* 0x250945DB: mov eax, dword ptr [0x25238300] */ 6736 PUSH32(esp, 1); /* 0x250945E0: push 1 */ 6737 MEM32(edx + 0x8) = eax; /* 0x250945E2: mov dword ptr [edx + 8], eax */ 6738 edx = MEM32(ecx); /* 0x250945E5: mov edx, dword ptr [ecx] */ 6739 PUSH32(esp, 1); /* 0x250945E7: push 1 */ 6740 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x250945E9: call dword ptr [edx + 0x2c] */ 6741 RECOMP_FLAGS_IN(); 6742 edi = POP32_VAL(esp); /* 0x250945EC: pop edi */ 6743 esi = POP32_VAL(esp); /* 0x250945ED: pop esi */ 6744 esp = ebp; /* 0x250945EE: mov esp, ebp */ 6745 ebp = POP32_VAL(esp); /* 0x250945F0: pop ebp */ 6746 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250945F1: ret 4 */ 6747 L_250945F4: 6748 esi = MEM32(eax); /* 0x250945F4: mov esi, dword ptr [eax] */ 6749 MEM32(edx) = esi; /* 0x250945F6: mov dword ptr [edx], esi */ 6750 esi = MEM32(eax + 0x4); /* 0x250945F8: mov esi, dword ptr [eax + 4] */ 6751 MEM32(edx + 0x4) = esi; /* 0x250945FB: mov dword ptr [edx + 4], esi */ 6752 eax = MEM32(eax + 0x8); /* 0x250945FE: mov eax, dword ptr [eax + 8] */ 6753 PUSH32(esp, 1); /* 0x25094601: push 1 */ 6754 MEM32(edx + 0x8) = eax; /* 0x25094603: mov dword ptr [edx + 8], eax */ 6755 edx = MEM32(ecx); /* 0x25094606: mov edx, dword ptr [ecx] */ 6756 PUSH32(esp, 1); /* 0x25094608: push 1 */ 6757 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x2509460A: call dword ptr [edx + 0x2c] */ 6758 RECOMP_FLAGS_IN(); 6759 edi = POP32_VAL(esp); /* 0x2509460D: pop edi */ 6760 esi = POP32_VAL(esp); /* 0x2509460E: pop esi */ 6761 esp = ebp; /* 0x2509460F: mov esp, ebp */ 6762 ebp = POP32_VAL(esp); /* 0x25094611: pop ebp */ 6763 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25094612: ret 4 */ 6764 RECOMP_REGS_OUT(); 6765 } 6766 6767 void sub_25094620(void) { 6768 int _fpu_cmp = 0; 6769 uint32_t _cf = 0; 6770 int _df = 1; 6771 uint32_t _flag_k = FK_NONE; 6772 uint32_t _flag_a = 0, _flag_b = 0; 6773 uint32_t _itail_tgt = 0; 6774 RECOMP_REGS_LOCALS 6775 RECOMP_ENTER(0x25094620u); 6776 6777 L_25094620: 6778 PUSH32(esp, ebp); /* 0x25094620: push ebp */ 6779 ebp = esp; /* 0x25094621: mov ebp, esp */ 6780 eax = MEM32(0x25238328); /* 0x25094623: mov eax, dword ptr [0x25238328] */ 6781 /* test eax, eax */ /* 0x25094628: test eax, eax */ 6782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6783 _cf = 0; 6784 _flag_k = FK_TEST; 6785 PUSH32(esp, esi); /* 0x2509462A: push esi */ 6786 if (TEST_NZ(_flag_a, _flag_b)) goto L_250946C1; /* 0x2509462B: jne 0x250946c1 */ 6787 L_25094631: 6788 eax = MEM32(ebp + 0x8); /* 0x25094631: mov eax, dword ptr [ebp + 8] */ 6789 edx = eax; /* 0x25094634: mov edx, eax */ 6790 esi = MEM32(edx); /* 0x25094636: mov esi, dword ptr [edx] */ 6791 MEM32(0x25238308) = esi; /* 0x25094638: mov dword ptr [0x25238308], esi */ 6792 esi = MEM32(edx + 0x4); /* 0x2509463E: mov esi, dword ptr [edx + 4] */ 6793 MEM32(0x2523830C) = esi; /* 0x25094641: mov dword ptr [0x2523830c], esi */ 6794 esi = MEM32(edx + 0x8); /* 0x25094647: mov esi, dword ptr [edx + 8] */ 6795 MEM32(0x25238310) = esi; /* 0x2509464A: mov dword ptr [0x25238310], esi */ 6796 edx = MEM32(edx + 0xC); /* 0x25094650: mov edx, dword ptr [edx + 0xc] */ 6797 MEM32(0x25238314) = edx; /* 0x25094653: mov dword ptr [0x25238314], edx */ 6798 SET_LO8(edx, MEM8(0x25238324)); /* 0x25094659: mov dl, byte ptr [0x25238324] */ 6799 /* test LO8(edx), LO8(edx) */ /* 0x2509465F: test dl, dl */ 6800 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6801 _cf = 0; 6802 _flag_k = FK_NARROW(FK_TEST, 24); 6803 ecx = MEM32(ecx); /* 0x25094661: mov ecx, dword ptr [ecx] */ 6804 if (TEST_Z(_flag_a, _flag_b)) goto L_2509469C; /* 0x25094663: je 0x2509469c */ 6805 L_25094665: 6806 edx = MEM32(0x252382E8); /* 0x25094665: mov edx, dword ptr [0x252382e8] */ 6807 eax = ecx + 0x84; /* 0x2509466B: lea eax, [ecx + 0x84] */ 6808 MEM32(eax) = edx; /* 0x25094671: mov dword ptr [eax], edx */ 6809 edx = MEM32(0x252382EC); /* 0x25094673: mov edx, dword ptr [0x252382ec] */ 6810 MEM32(eax + 0x4) = edx; /* 0x25094679: mov dword ptr [eax + 4], edx */ 6811 edx = MEM32(0x252382F0); /* 0x2509467C: mov edx, dword ptr [0x252382f0] */ 6812 MEM32(eax + 0x8) = edx; /* 0x25094682: mov dword ptr [eax + 8], edx */ 6813 edx = MEM32(0x252382F4); /* 0x25094685: mov edx, dword ptr [0x252382f4] */ 6814 PUSH32(esp, 1); /* 0x2509468B: push 1 */ 6815 MEM32(eax + 0xC) = edx; /* 0x2509468D: mov dword ptr [eax + 0xc], edx */ 6816 eax = MEM32(ecx); /* 0x25094690: mov eax, dword ptr [ecx] */ 6817 PUSH32(esp, 2); /* 0x25094692: push 2 */ 6818 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x25094694: call dword ptr [eax + 0x2c] */ 6819 RECOMP_FLAGS_IN(); 6820 esi = POP32_VAL(esp); /* 0x25094697: pop esi */ 6821 ebp = POP32_VAL(esp); /* 0x25094698: pop ebp */ 6822 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25094699: ret 4 */ 6823 L_2509469C: 6824 esi = MEM32(eax); /* 0x2509469C: mov esi, dword ptr [eax] */ 6825 edx = ecx + 0x84; /* 0x2509469E: lea edx, [ecx + 0x84] */ 6826 MEM32(edx) = esi; /* 0x250946A4: mov dword ptr [edx], esi */ 6827 esi = MEM32(eax + 0x4); /* 0x250946A6: mov esi, dword ptr [eax + 4] */ 6828 MEM32(edx + 0x4) = esi; /* 0x250946A9: mov dword ptr [edx + 4], esi */ 6829 esi = MEM32(eax + 0x8); /* 0x250946AC: mov esi, dword ptr [eax + 8] */ 6830 MEM32(edx + 0x8) = esi; /* 0x250946AF: mov dword ptr [edx + 8], esi */ 6831 eax = MEM32(eax + 0xC); /* 0x250946B2: mov eax, dword ptr [eax + 0xc] */ 6832 PUSH32(esp, 1); /* 0x250946B5: push 1 */ 6833 MEM32(edx + 0xC) = eax; /* 0x250946B7: mov dword ptr [edx + 0xc], eax */ 6834 edx = MEM32(ecx); /* 0x250946BA: mov edx, dword ptr [ecx] */ 6835 PUSH32(esp, 2); /* 0x250946BC: push 2 */ 6836 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x250946BE: call dword ptr [edx + 0x2c] */ 6837 RECOMP_FLAGS_IN(); 6838 L_250946C1: 6839 esi = POP32_VAL(esp); /* 0x250946C1: pop esi */ 6840 ebp = POP32_VAL(esp); /* 0x250946C2: pop ebp */ 6841 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250946C3: ret 4 */ 6842 RECOMP_REGS_OUT(); 6843 } 6844 6845 void sub_250946D0(void) { 6846 int _fpu_cmp = 0; 6847 uint32_t _cf = 0; 6848 int _df = 1; 6849 uint32_t _flag_k = FK_NONE; 6850 uint32_t _flag_a = 0, _flag_b = 0; 6851 uint32_t _itail_tgt = 0; 6852 RECOMP_REGS_LOCALS 6853 RECOMP_ENTER(0x250946D0u); 6854 6855 L_250946D0: 6856 eax = MEM32(ecx); /* 0x250946D0: mov eax, dword ptr [ecx] */ 6857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x84u); 6858 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6859 eax = eax + 0x84u; /* 0x250946D2: add eax, 0x84 */ 6860 _flag_k = FK_ADD; 6861 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250946D7: ret */ 6862 RECOMP_REGS_OUT(); 6863 } 6864 6865 void sub_250946E0(void) { 6866 int _fpu_cmp = 0; 6867 uint32_t _cf = 0; 6868 int _df = 1; 6869 uint32_t _flag_k = FK_NONE; 6870 uint32_t _flag_a = 0, _flag_b = 0; 6871 uint32_t _itail_tgt = 0; 6872 RECOMP_REGS_LOCALS 6873 RECOMP_ENTER(0x250946E0u); 6874 6875 L_250946E0: 6876 eax = MEM32(ecx); /* 0x250946E0: mov eax, dword ptr [ecx] */ 6877 PUSH32(esp, eax); /* 0x250946E2: push eax */ 6878 RECOMP_ICALL(0x250A4C30u); /* 0x250946E3: call 0x250a4c30 */ /* not lifted */ 6879 RECOMP_FLAGS_IN(); 6880 ecx = eax; /* 0x250946E8: mov ecx, eax */ 6881 RECOMP_ICALL(0x250A4FE0u); /* 0x250946EA: call 0x250a4fe0 */ /* not lifted */ 6882 RECOMP_FLAGS_IN(); 6883 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250946EF: ret */ 6884 RECOMP_REGS_OUT(); 6885 } 6886 6887 void sub_250946F0(void) { 6888 int _fpu_cmp = 0; 6889 uint32_t _cf = 0; 6890 int _df = 1; 6891 uint32_t _flag_k = FK_NONE; 6892 uint32_t _flag_a = 0, _flag_b = 0; 6893 uint32_t _itail_tgt = 0; 6894 RECOMP_REGS_LOCALS 6895 RECOMP_ENTER(0x250946F0u); 6896 6897 L_250946F0: 6898 PUSH32(esp, ebp); /* 0x250946F0: push ebp */ 6899 ebp = esp; /* 0x250946F1: mov ebp, esp */ 6900 eax = MEM32(ebp + 0x8); /* 0x250946F3: mov eax, dword ptr [ebp + 8] */ 6901 edx = MEM32(ebp + 0xC); /* 0x250946F6: mov edx, dword ptr [ebp + 0xc] */ 6902 PUSH32(esp, edx); /* 0x250946F9: push edx */ 6903 MEM32(0x252382E0) = eax; /* 0x250946FA: mov dword ptr [0x252382e0], eax */ 6904 ecx = MEM32(ecx); /* 0x250946FF: mov ecx, dword ptr [ecx] */ 6905 PUSH32(esp, eax); /* 0x25094701: push eax */ 6906 RECOMP_ICALL(0x250F0D40u); /* 0x25094702: call 0x250f0d40 */ /* not lifted */ 6907 RECOMP_FLAGS_IN(); 6908 ebp = POP32_VAL(esp); /* 0x25094707: pop ebp */ 6909 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25094708: ret 8 */ 6910 RECOMP_REGS_OUT(); 6911 } 6912 6913 void sub_25094710(void) { 6914 int _fpu_cmp = 0; 6915 uint32_t _cf = 0; 6916 int _df = 1; 6917 uint32_t _flag_k = FK_NONE; 6918 uint32_t _flag_a = 0, _flag_b = 0; 6919 uint32_t _itail_tgt = 0; 6920 RECOMP_REGS_LOCALS 6921 RECOMP_ENTER(0x25094710u); 6922 6923 L_25094710: 6924 eax = MEM32(ecx); /* 0x25094710: mov eax, dword ptr [ecx] */ 6925 fp_push(*(float*)&MEM32(eax + 0x14C)); /* 0x25094712: fld dword ptr [eax + 0x14c] */ 6926 _st[0] -= (double)*(float*)ADDR(eax + 0x148); /* 0x25094718: fsub dword ptr [eax + 0x148] */ 6927 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509471E: ret */ 6928 RECOMP_REGS_OUT(); 6929 } 6930 6931 void sub_25094720(void) { 6932 int _fpu_cmp = 0; 6933 uint32_t _cf = 0; 6934 int _df = 1; 6935 uint32_t _flag_k = FK_NONE; 6936 uint32_t _flag_a = 0, _flag_b = 0; 6937 uint32_t _itail_tgt = 0; 6938 RECOMP_REGS_LOCALS 6939 RECOMP_ENTER(0x25094720u); 6940 6941 L_25094720: 6942 PUSH32(esp, ebp); /* 0x25094720: push ebp */ 6943 ebp = esp; /* 0x25094721: mov ebp, esp */ 6944 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6946 esp = esp - 0x10u; /* 0x25094723: sub esp, 0x10 */ 6947 _flag_k = FK_CMP; 6948 ecx = MEM32(ecx); /* 0x25094726: mov ecx, dword ptr [ecx] */ 6949 eax = ebp + (-0xC); /* 0x25094728: lea eax, [ebp - 0xc] */ 6950 PUSH32(esp, eax); /* 0x2509472B: push eax */ 6951 edx = ebp + (-0x4); /* 0x2509472C: lea edx, [ebp - 4] */ 6952 PUSH32(esp, edx); /* 0x2509472F: push edx */ 6953 eax = ebp + (-0x10); /* 0x25094730: lea eax, [ebp - 0x10] */ 6954 PUSH32(esp, eax); /* 0x25094733: push eax */ 6955 edx = ebp + (-0x8); /* 0x25094734: lea edx, [ebp - 8] */ 6956 PUSH32(esp, edx); /* 0x25094737: push edx */ 6957 RECOMP_ICALL(0x250F0CD0u); /* 0x25094738: call 0x250f0cd0 */ /* not lifted */ 6958 RECOMP_FLAGS_IN(); 6959 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x2509473D: fld dword ptr [ebp - 4] */ 6960 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x25094740: fsub dword ptr [ebp - 8] */ 6961 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x25094743: fld dword ptr [ebp - 0xc] */ 6962 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x25094746: fsub dword ptr [ebp - 0x10] */ 6963 { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x25094749: fdivp st(1) */ 6964 esp = ebp; /* 0x2509474B: mov esp, ebp */ 6965 ebp = POP32_VAL(esp); /* 0x2509474D: pop ebp */ 6966 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509474E: ret */ 6967 RECOMP_REGS_OUT(); 6968 } 6969 6970 void sub_25094750(void) { 6971 int _fpu_cmp = 0; 6972 uint32_t _cf = 0; 6973 int _df = 1; 6974 uint32_t _flag_k = FK_NONE; 6975 uint32_t _flag_a = 0, _flag_b = 0; 6976 uint32_t _itail_tgt = 0; 6977 RECOMP_REGS_LOCALS 6978 RECOMP_ENTER(0x25094750u); 6979 6980 L_25094750: 6981 PUSH32(esp, ebp); /* 0x25094750: push ebp */ 6982 ebp = esp; /* 0x25094751: mov ebp, esp */ 6983 eax = MEM32(ebp + 0x8); /* 0x25094753: mov eax, dword ptr [ebp + 8] */ 6984 ecx = MEM32(eax); /* 0x25094756: mov ecx, dword ptr [eax] */ 6985 MEM32(0x252382F8) = ecx; /* 0x25094758: mov dword ptr [0x252382f8], ecx */ 6986 edx = MEM32(eax + 0x4); /* 0x2509475E: mov edx, dword ptr [eax + 4] */ 6987 ecx = MEM32(ebp + 0xC); /* 0x25094761: mov ecx, dword ptr [ebp + 0xc] */ 6988 MEM32(0x252382FC) = edx; /* 0x25094764: mov dword ptr [0x252382fc], edx */ 6989 eax = MEM32(eax + 0x8); /* 0x2509476A: mov eax, dword ptr [eax + 8] */ 6990 MEM32(0x25238300) = eax; /* 0x2509476D: mov dword ptr [0x25238300], eax */ 6991 edx = MEM32(ecx); /* 0x25094772: mov edx, dword ptr [ecx] */ 6992 MEM32(0x252382E8) = edx; /* 0x25094774: mov dword ptr [0x252382e8], edx */ 6993 eax = MEM32(ecx + 0x4); /* 0x2509477A: mov eax, dword ptr [ecx + 4] */ 6994 MEM32(0x252382EC) = eax; /* 0x2509477D: mov dword ptr [0x252382ec], eax */ 6995 edx = MEM32(ecx + 0x8); /* 0x25094782: mov edx, dword ptr [ecx + 8] */ 6996 MEM32(0x252382F0) = edx; /* 0x25094785: mov dword ptr [0x252382f0], edx */ 6997 eax = MEM32(ecx + 0xC); /* 0x2509478B: mov eax, dword ptr [ecx + 0xc] */ 6998 MEM32(0x252382F4) = eax; /* 0x2509478E: mov dword ptr [0x252382f4], eax */ 6999 ebp = POP32_VAL(esp); /* 0x25094793: pop ebp */ 7000 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094794: ret */ 7001 RECOMP_REGS_OUT(); 7002 } 7003 7004 void sub_250947A0(void) { 7005 int _fpu_cmp = 0; 7006 uint32_t _cf = 0; 7007 int _df = 1; 7008 uint32_t _flag_k = FK_NONE; 7009 uint32_t _flag_a = 0, _flag_b = 0; 7010 uint32_t _itail_tgt = 0; 7011 RECOMP_REGS_LOCALS 7012 RECOMP_ENTER(0x250947A0u); 7013 7014 L_250947A0: 7015 PUSH32(esp, ebp); /* 0x250947A0: push ebp */ 7016 ebp = esp; /* 0x250947A1: mov ebp, esp */ 7017 ecx = MEM32(0x2523831C); /* 0x250947A3: mov ecx, dword ptr [0x2523831c] */ 7018 edx = MEM32(0x25238320); /* 0x250947A9: mov edx, dword ptr [0x25238320] */ 7019 eax = MEM32(0x25238318); /* 0x250947AF: mov eax, dword ptr [0x25238318] */ 7020 MEM32(0x252382FC) = ecx; /* 0x250947B4: mov dword ptr [0x252382fc], ecx */ 7021 ecx = MEM32(0x25238308); /* 0x250947BA: mov ecx, dword ptr [0x25238308] */ 7022 MEM32(0x25238300) = edx; /* 0x250947C0: mov dword ptr [0x25238300], edx */ 7023 edx = MEM32(0x2523830C); /* 0x250947C6: mov edx, dword ptr [0x2523830c] */ 7024 MEM32(0x252382E8) = ecx; /* 0x250947CC: mov dword ptr [0x252382e8], ecx */ 7025 ecx = MEM32(0x25238310); /* 0x250947D2: mov ecx, dword ptr [0x25238310] */ 7026 MEM32(0x252382EC) = edx; /* 0x250947D8: mov dword ptr [0x252382ec], edx */ 7027 edx = MEM32(0x25238314); /* 0x250947DE: mov edx, dword ptr [0x25238314] */ 7028 MEM32(0x252382F0) = ecx; /* 0x250947E4: mov dword ptr [0x252382f0], ecx */ 7029 ecx = MEM32(ebp + 0x8); /* 0x250947EA: mov ecx, dword ptr [ebp + 8] */ 7030 MEM32(0x252382F8) = eax; /* 0x250947ED: mov dword ptr [0x252382f8], eax */ 7031 MEM32(0x252382F4) = edx; /* 0x250947F2: mov dword ptr [0x252382f4], edx */ 7032 MEM32(ecx) = eax; /* 0x250947F8: mov dword ptr [ecx], eax */ 7033 edx = MEM32(0x2523831C); /* 0x250947FA: mov edx, dword ptr [0x2523831c] */ 7034 MEM32(ecx + 0x4) = edx; /* 0x25094800: mov dword ptr [ecx + 4], edx */ 7035 eax = MEM32(0x25238320); /* 0x25094803: mov eax, dword ptr [0x25238320] */ 7036 MEM32(ecx + 0x8) = eax; /* 0x25094808: mov dword ptr [ecx + 8], eax */ 7037 edx = MEM32(0x25238308); /* 0x2509480B: mov edx, dword ptr [0x25238308] */ 7038 ecx = MEM32(ebp + 0xC); /* 0x25094811: mov ecx, dword ptr [ebp + 0xc] */ 7039 MEM32(ecx) = edx; /* 0x25094814: mov dword ptr [ecx], edx */ 7040 eax = MEM32(0x2523830C); /* 0x25094816: mov eax, dword ptr [0x2523830c] */ 7041 MEM32(ecx + 0x4) = eax; /* 0x2509481B: mov dword ptr [ecx + 4], eax */ 7042 edx = MEM32(0x25238310); /* 0x2509481E: mov edx, dword ptr [0x25238310] */ 7043 MEM32(ecx + 0x8) = edx; /* 0x25094824: mov dword ptr [ecx + 8], edx */ 7044 eax = MEM32(0x25238314); /* 0x25094827: mov eax, dword ptr [0x25238314] */ 7045 MEM32(ecx + 0xC) = eax; /* 0x2509482C: mov dword ptr [ecx + 0xc], eax */ 7046 ebp = POP32_VAL(esp); /* 0x2509482F: pop ebp */ 7047 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094830: ret */ 7048 RECOMP_REGS_OUT(); 7049 } 7050 7051 void sub_25094840(void) { 7052 int _fpu_cmp = 0; 7053 uint32_t _cf = 0; 7054 int _df = 1; 7055 uint32_t _flag_k = FK_NONE; 7056 uint32_t _flag_a = 0, _flag_b = 0; 7057 uint32_t _itail_tgt = 0; 7058 RECOMP_REGS_LOCALS 7059 RECOMP_ENTER(0x25094840u); 7060 7061 L_25094840: 7062 PUSH32(esp, ebp); /* 0x25094840: push ebp */ 7063 ebp = esp; /* 0x25094841: mov ebp, esp */ 7064 PUSH32(esp, ecx); /* 0x25094843: push ecx */ 7065 RECOMP_ICALL(0x250A4C30u); /* 0x25094844: call 0x250a4c30 */ /* not lifted */ 7066 RECOMP_FLAGS_IN(); 7067 ecx = eax; /* 0x25094849: mov ecx, eax */ 7068 RECOMP_ICALL(0x250A4FD0u); /* 0x2509484B: call 0x250a4fd0 */ /* not lifted */ 7069 RECOMP_FLAGS_IN(); 7070 fp_push(*(float*)&MEM32(eax + 0x14C)); /* 0x25094850: fld dword ptr [eax + 0x14c] */ 7071 _st[0] += (double)*(float*)ADDR(0x25151920); /* 0x25094856: fadd dword ptr [0x25151920] */ 7072 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2509485C: fstp dword ptr [ebp - 4] */ 7073 RECOMP_ICALL(0x250A4C30u); /* 0x2509485F: call 0x250a4c30 */ /* not lifted */ 7074 RECOMP_FLAGS_IN(); 7075 ecx = eax; /* 0x25094864: mov ecx, eax */ 7076 RECOMP_ICALL(0x250A4FD0u); /* 0x25094866: call 0x250a4fd0 */ /* not lifted */ 7077 RECOMP_FLAGS_IN(); 7078 ecx = MEM32(ebp + (-0x4)); /* 0x2509486B: mov ecx, dword ptr [ebp - 4] */ 7079 MEM32(eax + 0x14C) = ecx; /* 0x2509486E: mov dword ptr [eax + 0x14c], ecx */ 7080 esp = ebp; /* 0x25094874: mov esp, ebp */ 7081 ebp = POP32_VAL(esp); /* 0x25094876: pop ebp */ 7082 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094877: ret */ 7083 RECOMP_REGS_OUT(); 7084 } 7085 7086 void sub_25094880(void) { 7087 int _fpu_cmp = 0; 7088 uint32_t _cf = 0; 7089 int _df = 1; 7090 uint32_t _flag_k = FK_NONE; 7091 uint32_t _flag_a = 0, _flag_b = 0; 7092 uint32_t _itail_tgt = 0; 7093 RECOMP_REGS_LOCALS 7094 RECOMP_ENTER(0x25094880u); 7095 7096 L_25094880: 7097 PUSH32(esp, ebp); /* 0x25094880: push ebp */ 7098 ebp = esp; /* 0x25094881: mov ebp, esp */ 7099 PUSH32(esp, ecx); /* 0x25094883: push ecx */ 7100 RECOMP_ICALL(0x250A4C30u); /* 0x25094884: call 0x250a4c30 */ /* not lifted */ 7101 RECOMP_FLAGS_IN(); 7102 ecx = eax; /* 0x25094889: mov ecx, eax */ 7103 RECOMP_ICALL(0x250A4FD0u); /* 0x2509488B: call 0x250a4fd0 */ /* not lifted */ 7104 RECOMP_FLAGS_IN(); 7105 fp_push(*(float*)&MEM32(eax + 0x14C)); /* 0x25094890: fld dword ptr [eax + 0x14c] */ 7106 _st[0] -= (double)*(float*)ADDR(0x25151920); /* 0x25094896: fsub dword ptr [0x25151920] */ 7107 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2509489C: fstp dword ptr [ebp - 4] */ 7108 RECOMP_ICALL(0x250A4C30u); /* 0x2509489F: call 0x250a4c30 */ /* not lifted */ 7109 RECOMP_FLAGS_IN(); 7110 ecx = eax; /* 0x250948A4: mov ecx, eax */ 7111 RECOMP_ICALL(0x250A4FD0u); /* 0x250948A6: call 0x250a4fd0 */ /* not lifted */ 7112 RECOMP_FLAGS_IN(); 7113 ecx = MEM32(ebp + (-0x4)); /* 0x250948AB: mov ecx, dword ptr [ebp - 4] */ 7114 MEM32(eax + 0x14C) = ecx; /* 0x250948AE: mov dword ptr [eax + 0x14c], ecx */ 7115 esp = ebp; /* 0x250948B4: mov esp, ebp */ 7116 ebp = POP32_VAL(esp); /* 0x250948B6: pop ebp */ 7117 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250948B7: ret */ 7118 RECOMP_REGS_OUT(); 7119 } 7120 7121 void sub_250948C0(void) { 7122 int _fpu_cmp = 0; 7123 uint32_t _cf = 0; 7124 int _df = 1; 7125 uint32_t _flag_k = FK_NONE; 7126 uint32_t _flag_a = 0, _flag_b = 0; 7127 uint32_t _itail_tgt = 0; 7128 RECOMP_REGS_LOCALS 7129 RECOMP_ENTER(0x250948C0u); 7130 7131 L_250948C0: 7132 PUSH32(esp, ebp); /* 0x250948C0: push ebp */ 7133 ebp = esp; /* 0x250948C1: mov ebp, esp */ 7134 PUSH32(esp, 0xFFFFFFFFu); /* 0x250948C3: push -1 */ 7135 PUSH32(esp, 0x2514965Bu); /* 0x250948C5: push 0x2514965b */ 7136 eax = MEM32(FS_BASE + (0)); /* 0x250948CA: mov eax, dword ptr fs:[0] */ 7137 PUSH32(esp, eax); /* 0x250948D0: push eax */ 7138 MEM32(FS_BASE + (0)) = esp; /* 0x250948D1: mov dword ptr fs:[0], esp */ 7139 PUSH32(esp, ecx); /* 0x250948D8: push ecx */ 7140 SET_LO8(eax, MEM8(0x25238325)); /* 0x250948D9: mov al, byte ptr [0x25238325] */ 7141 PUSH32(esp, ebx); /* 0x250948DE: push ebx */ 7142 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7143 ebx = 0; /* 0x250948DF: xor ebx, ebx */ 7144 _cf = 0; 7145 _flag_k = FK_TEST; 7146 /* cmp LO8(eax), LO8(ebx) */ /* 0x250948E1: cmp al, bl */ 7147 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7149 _flag_k = FK_NARROW(FK_CMP, 24); 7150 if (CMP_NE(_flag_a, _flag_b)) goto L_2509495C; /* 0x250948E3: jne 0x2509495c */ 7151 L_250948E5: 7152 PUSH32(esp, 0x1Cu); /* 0x250948E5: push 0x1c */ 7153 RECOMP_ICALL(0x251380D0u); /* 0x250948E7: call 0x251380d0 */ /* not lifted */ 7154 RECOMP_FLAGS_IN(); 7155 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7156 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7157 esp = esp + 4; /* 0x250948EC: add esp, 4 */ 7158 _flag_k = FK_ADD; 7159 MEM32(ebp + (-0x10)) = eax; /* 0x250948EF: mov dword ptr [ebp - 0x10], eax */ 7160 /* cmp eax, ebx */ /* 0x250948F2: cmp eax, ebx */ 7161 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7163 _flag_k = FK_CMP; 7164 MEM32(ebp + (-0x4)) = ebx; /* 0x250948F4: mov dword ptr [ebp - 4], ebx */ 7165 if (CMP_EQ(_flag_a, _flag_b)) goto L_25094903; /* 0x250948F7: je 0x25094903 */ 7166 L_250948F9: 7167 PUSH32(esp, ebx); /* 0x250948F9: push ebx */ 7168 ecx = eax; /* 0x250948FA: mov ecx, eax */ 7169 RECOMP_ICALL(0x25091F70u); /* 0x250948FC: call 0x25091f70 */ /* not lifted */ 7170 RECOMP_FLAGS_IN(); 7171 goto L_25094905; /* 0x25094901: jmp 0x25094905 */ 7172 L_25094903: 7173 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7174 eax = 0; /* 0x25094903: xor eax, eax */ 7175 _cf = 0; 7176 _flag_k = FK_TEST; 7177 L_25094905: 7178 MEM32(0x25238328) = eax; /* 0x25094905: mov dword ptr [0x25238328], eax */ 7179 ecx = MEM32(eax + 0x8); /* 0x2509490A: mov ecx, dword ptr [eax + 8] */ 7180 /* cmp ecx, ebx */ /* 0x2509490D: cmp ecx, ebx */ 7181 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 7182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7183 _flag_k = FK_CMP; 7184 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2509490F: mov dword ptr [ebp - 4], 0xffffffff */ 7185 if (CMP_EQ(_flag_a, _flag_b)) goto L_25094925; /* 0x25094916: je 0x25094925 */ 7186 L_25094918: 7187 edx = MEM32(eax + 0xC); /* 0x25094918: mov edx, dword ptr [eax + 0xc] */ 7188 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7190 edx = edx - ecx; /* 0x2509491B: sub edx, ecx */ 7191 _flag_k = FK_CMP; 7192 /* test edx, 0xFFFFFFFCu */ /* 0x2509491D: test edx, 0xfffffffc */ 7193 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu); 7194 _cf = 0; 7195 _flag_k = FK_TEST; 7196 if (TEST_NZ(_flag_a, _flag_b)) goto L_25094946; /* 0x25094923: jne 0x25094946 */ 7197 L_25094925: 7198 /* cmp eax, ebx */ /* 0x25094925: cmp eax, ebx */ 7199 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7201 _flag_k = FK_CMP; 7202 if (CMP_EQ(_flag_a, _flag_b)) goto L_25094931; /* 0x25094927: je 0x25094931 */ 7203 L_25094929: 7204 edx = MEM32(eax); /* 0x25094929: mov edx, dword ptr [eax] */ 7205 PUSH32(esp, 1); /* 0x2509492B: push 1 */ 7206 ecx = eax; /* 0x2509492D: mov ecx, eax */ 7207 RECOMP_ICALL(MEM32(edx)); /* 0x2509492F: call dword ptr [edx] */ 7208 RECOMP_FLAGS_IN(); 7209 L_25094931: 7210 MEM32(0x25238328) = ebx; /* 0x25094931: mov dword ptr [0x25238328], ebx */ 7211 ebx = POP32_VAL(esp); /* 0x25094937: pop ebx */ 7212 ecx = MEM32(ebp + (-0xC)); /* 0x25094938: mov ecx, dword ptr [ebp - 0xc] */ 7213 MEM32(FS_BASE + (0)) = ecx; /* 0x2509493B: mov dword ptr fs:[0], ecx */ 7214 esp = ebp; /* 0x25094942: mov esp, ebp */ 7215 ebp = POP32_VAL(esp); /* 0x25094944: pop ebp */ 7216 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094945: ret */ 7217 L_25094946: 7218 MEM8(0x25238325) = (uint8_t)(1); /* 0x25094946: mov byte ptr [0x25238325], 1 */ 7219 ebx = POP32_VAL(esp); /* 0x2509494D: pop ebx */ 7220 ecx = MEM32(ebp + (-0xC)); /* 0x2509494E: mov ecx, dword ptr [ebp - 0xc] */ 7221 MEM32(FS_BASE + (0)) = ecx; /* 0x25094951: mov dword ptr fs:[0], ecx */ 7222 esp = ebp; /* 0x25094958: mov esp, ebp */ 7223 ebp = POP32_VAL(esp); /* 0x2509495A: pop ebp */ 7224 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509495B: ret */ 7225 L_2509495C: 7226 ecx = MEM32(0x25238328); /* 0x2509495C: mov ecx, dword ptr [0x25238328] */ 7227 /* cmp ecx, ebx */ /* 0x25094962: cmp ecx, ebx */ 7228 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 7229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7230 _flag_k = FK_CMP; 7231 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509496C; /* 0x25094964: je 0x2509496c */ 7232 L_25094966: 7233 eax = MEM32(ecx); /* 0x25094966: mov eax, dword ptr [ecx] */ 7234 PUSH32(esp, 1); /* 0x25094968: push 1 */ 7235 RECOMP_ICALL(MEM32(eax)); /* 0x2509496A: call dword ptr [eax] */ 7236 RECOMP_FLAGS_IN(); 7237 L_2509496C: 7238 ecx = MEM32(ebp + (-0xC)); /* 0x2509496C: mov ecx, dword ptr [ebp - 0xc] */ 7239 MEM32(0x25238328) = ebx; /* 0x2509496F: mov dword ptr [0x25238328], ebx */ 7240 MEM8(0x25238325) = (uint8_t)(LO8(ebx)); /* 0x25094975: mov byte ptr [0x25238325], bl */ 7241 ebx = POP32_VAL(esp); /* 0x2509497B: pop ebx */ 7242 MEM32(FS_BASE + (0)) = ecx; /* 0x2509497C: mov dword ptr fs:[0], ecx */ 7243 esp = ebp; /* 0x25094983: mov esp, ebp */ 7244 ebp = POP32_VAL(esp); /* 0x25094985: pop ebp */ 7245 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094986: ret */ 7246 RECOMP_REGS_OUT(); 7247 } 7248 7249 void sub_25094990(void) { 7250 int _fpu_cmp = 0; 7251 uint32_t _cf = 0; 7252 int _df = 1; 7253 uint32_t _flag_k = FK_NONE; 7254 uint32_t _flag_a = 0, _flag_b = 0; 7255 uint32_t _itail_tgt = 0; 7256 RECOMP_REGS_LOCALS 7257 RECOMP_ENTER(0x25094990u); 7258 7259 L_25094990: 7260 goto L_250949A0; /* 0x25094990: jmp 0x250949a0 */ 7261 L_250949A0: 7262 MEM32(0x2523838C) = 0x251B43C4u; /* 0x250949A0: mov dword ptr [0x2523838c], 0x251b43c4 */ 7263 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250949AA: ret */ 7264 RECOMP_REGS_OUT(); 7265 } 7266 7267 void sub_250949A0(void) { 7268 int _fpu_cmp = 0; 7269 uint32_t _cf = 0; 7270 int _df = 1; 7271 uint32_t _flag_k = FK_NONE; 7272 uint32_t _flag_a = 0, _flag_b = 0; 7273 uint32_t _itail_tgt = 0; 7274 RECOMP_REGS_LOCALS 7275 RECOMP_ENTER(0x250949A0u); 7276 7277 L_250949A0: 7278 MEM32(0x2523838C) = 0x251B43C4u; /* 0x250949A0: mov dword ptr [0x2523838c], 0x251b43c4 */ 7279 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250949AA: ret */ 7280 RECOMP_REGS_OUT(); 7281 } 7282 7283 void sub_250949B0(void) { 7284 int _fpu_cmp = 0; 7285 uint32_t _cf = 0; 7286 int _df = 1; 7287 uint32_t _flag_k = FK_NONE; 7288 uint32_t _flag_a = 0, _flag_b = 0; 7289 uint32_t _itail_tgt = 0; 7290 RECOMP_REGS_LOCALS 7291 RECOMP_ENTER(0x250949B0u); 7292 7293 L_250949B0: 7294 goto L_250949C0; /* 0x250949B0: jmp 0x250949c0 */ 7295 L_250949C0: 7296 MEM32(0x25238388) = 0x251B43F8u; /* 0x250949C0: mov dword ptr [0x25238388], 0x251b43f8 */ 7297 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250949CA: ret */ 7298 RECOMP_REGS_OUT(); 7299 } 7300 7301 void sub_250949C0(void) { 7302 int _fpu_cmp = 0; 7303 uint32_t _cf = 0; 7304 int _df = 1; 7305 uint32_t _flag_k = FK_NONE; 7306 uint32_t _flag_a = 0, _flag_b = 0; 7307 uint32_t _itail_tgt = 0; 7308 RECOMP_REGS_LOCALS 7309 RECOMP_ENTER(0x250949C0u); 7310 7311 L_250949C0: 7312 MEM32(0x25238388) = 0x251B43F8u; /* 0x250949C0: mov dword ptr [0x25238388], 0x251b43f8 */ 7313 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250949CA: ret */ 7314 RECOMP_REGS_OUT(); 7315 } 7316 7317 void sub_250949D0(void) { 7318 int _fpu_cmp = 0; 7319 uint32_t _cf = 0; 7320 int _df = 1; 7321 uint32_t _flag_k = FK_NONE; 7322 uint32_t _flag_a = 0, _flag_b = 0; 7323 uint32_t _itail_tgt = 0; 7324 RECOMP_REGS_LOCALS 7325 RECOMP_ENTER(0x250949D0u); 7326 7327 L_250949D0: 7328 goto L_250949E0; /* 0x250949D0: jmp 0x250949e0 */ 7329 L_250949E0: 7330 MEM32(0x25238384) = 0x251B4434u; /* 0x250949E0: mov dword ptr [0x25238384], 0x251b4434 */ 7331 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250949EA: ret */ 7332 RECOMP_REGS_OUT(); 7333 } 7334 7335 void sub_250949E0(void) { 7336 int _fpu_cmp = 0; 7337 uint32_t _cf = 0; 7338 int _df = 1; 7339 uint32_t _flag_k = FK_NONE; 7340 uint32_t _flag_a = 0, _flag_b = 0; 7341 uint32_t _itail_tgt = 0; 7342 RECOMP_REGS_LOCALS 7343 RECOMP_ENTER(0x250949E0u); 7344 7345 L_250949E0: 7346 MEM32(0x25238384) = 0x251B4434u; /* 0x250949E0: mov dword ptr [0x25238384], 0x251b4434 */ 7347 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250949EA: ret */ 7348 RECOMP_REGS_OUT(); 7349 } 7350 7351 void sub_250949F0(void) { 7352 int _fpu_cmp = 0; 7353 uint32_t _cf = 0; 7354 int _df = 1; 7355 uint32_t _flag_k = FK_NONE; 7356 uint32_t _flag_a = 0, _flag_b = 0; 7357 uint32_t _itail_tgt = 0; 7358 RECOMP_REGS_LOCALS 7359 RECOMP_ENTER(0x250949F0u); 7360 7361 L_250949F0: 7362 goto L_25094A00; /* 0x250949F0: jmp 0x25094a00 */ 7363 L_25094A00: 7364 MEM32(0x25238380) = 0x251B4468u; /* 0x25094A00: mov dword ptr [0x25238380], 0x251b4468 */ 7365 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094A0A: ret */ 7366 RECOMP_REGS_OUT(); 7367 } 7368 7369 void sub_25094A00(void) { 7370 int _fpu_cmp = 0; 7371 uint32_t _cf = 0; 7372 int _df = 1; 7373 uint32_t _flag_k = FK_NONE; 7374 uint32_t _flag_a = 0, _flag_b = 0; 7375 uint32_t _itail_tgt = 0; 7376 RECOMP_REGS_LOCALS 7377 RECOMP_ENTER(0x25094A00u); 7378 7379 L_25094A00: 7380 MEM32(0x25238380) = 0x251B4468u; /* 0x25094A00: mov dword ptr [0x25238380], 0x251b4468 */ 7381 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094A0A: ret */ 7382 RECOMP_REGS_OUT(); 7383 } 7384 7385 void sub_25094A10(void) { 7386 int _fpu_cmp = 0; 7387 uint32_t _cf = 0; 7388 int _df = 1; 7389 uint32_t _flag_k = FK_NONE; 7390 uint32_t _flag_a = 0, _flag_b = 0; 7391 uint32_t _itail_tgt = 0; 7392 RECOMP_REGS_LOCALS 7393 RECOMP_ENTER(0x25094A10u); 7394 7395 L_25094A10: 7396 goto L_25094A20; /* 0x25094A10: jmp 0x25094a20 */ 7397 L_25094A20: 7398 MEM32(0x2523837C) = 0x251B449Cu; /* 0x25094A20: mov dword ptr [0x2523837c], 0x251b449c */ 7399 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094A2A: ret */ 7400 RECOMP_REGS_OUT(); 7401 } 7402 7403 void sub_25094A20(void) { 7404 int _fpu_cmp = 0; 7405 uint32_t _cf = 0; 7406 int _df = 1; 7407 uint32_t _flag_k = FK_NONE; 7408 uint32_t _flag_a = 0, _flag_b = 0; 7409 uint32_t _itail_tgt = 0; 7410 RECOMP_REGS_LOCALS 7411 RECOMP_ENTER(0x25094A20u); 7412 7413 L_25094A20: 7414 MEM32(0x2523837C) = 0x251B449Cu; /* 0x25094A20: mov dword ptr [0x2523837c], 0x251b449c */ 7415 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094A2A: ret */ 7416 RECOMP_REGS_OUT(); 7417 } 7418 7419 void sub_25094A30(void) { 7420 int _fpu_cmp = 0; 7421 uint32_t _cf = 0; 7422 int _df = 1; 7423 uint32_t _flag_k = FK_NONE; 7424 uint32_t _flag_a = 0, _flag_b = 0; 7425 uint32_t _itail_tgt = 0; 7426 RECOMP_REGS_LOCALS 7427 RECOMP_ENTER(0x25094A30u); 7428 7429 L_25094A30: 7430 goto L_25094A40; /* 0x25094A30: jmp 0x25094a40 */ 7431 L_25094A40: 7432 MEM32(0x25238378) = 0x251B44D0u; /* 0x25094A40: mov dword ptr [0x25238378], 0x251b44d0 */ 7433 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094A4A: ret */ 7434 RECOMP_REGS_OUT(); 7435 } 7436 7437 void sub_25094A40(void) { 7438 int _fpu_cmp = 0; 7439 uint32_t _cf = 0; 7440 int _df = 1; 7441 uint32_t _flag_k = FK_NONE; 7442 uint32_t _flag_a = 0, _flag_b = 0; 7443 uint32_t _itail_tgt = 0; 7444 RECOMP_REGS_LOCALS 7445 RECOMP_ENTER(0x25094A40u); 7446 7447 L_25094A40: 7448 MEM32(0x25238378) = 0x251B44D0u; /* 0x25094A40: mov dword ptr [0x25238378], 0x251b44d0 */ 7449 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094A4A: ret */ 7450 RECOMP_REGS_OUT(); 7451 } 7452 7453 void sub_25094A50(void) { 7454 int _fpu_cmp = 0; 7455 uint32_t _cf = 0; 7456 int _df = 1; 7457 uint32_t _flag_k = FK_NONE; 7458 uint32_t _flag_a = 0, _flag_b = 0; 7459 uint32_t _itail_tgt = 0; 7460 RECOMP_REGS_LOCALS 7461 RECOMP_ENTER(0x25094A50u); 7462 7463 L_25094A50: 7464 goto L_25094A60; /* 0x25094A50: jmp 0x25094a60 */ 7465 L_25094A60: 7466 MEM32(0x25238374) = 0x251B4508u; /* 0x25094A60: mov dword ptr [0x25238374], 0x251b4508 */ 7467 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094A6A: ret */ 7468 RECOMP_REGS_OUT(); 7469 } 7470 7471 void sub_25094A60(void) { 7472 int _fpu_cmp = 0; 7473 uint32_t _cf = 0; 7474 int _df = 1; 7475 uint32_t _flag_k = FK_NONE; 7476 uint32_t _flag_a = 0, _flag_b = 0; 7477 uint32_t _itail_tgt = 0; 7478 RECOMP_REGS_LOCALS 7479 RECOMP_ENTER(0x25094A60u); 7480 7481 L_25094A60: 7482 MEM32(0x25238374) = 0x251B4508u; /* 0x25094A60: mov dword ptr [0x25238374], 0x251b4508 */ 7483 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094A6A: ret */ 7484 RECOMP_REGS_OUT(); 7485 } 7486 7487 void sub_25094A70(void) { 7488 int _fpu_cmp = 0; 7489 uint32_t _cf = 0; 7490 int _df = 1; 7491 uint32_t _flag_k = FK_NONE; 7492 uint32_t _flag_a = 0, _flag_b = 0; 7493 uint32_t _itail_tgt = 0; 7494 RECOMP_REGS_LOCALS 7495 RECOMP_ENTER(0x25094A70u); 7496 7497 L_25094A70: 7498 goto L_25094A80; /* 0x25094A70: jmp 0x25094a80 */ 7499 L_25094A80: 7500 MEM32(0x25238370) = 0x251B4544u; /* 0x25094A80: mov dword ptr [0x25238370], 0x251b4544 */ 7501 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094A8A: ret */ 7502 RECOMP_REGS_OUT(); 7503 } 7504 7505 void sub_25094A80(void) { 7506 int _fpu_cmp = 0; 7507 uint32_t _cf = 0; 7508 int _df = 1; 7509 uint32_t _flag_k = FK_NONE; 7510 uint32_t _flag_a = 0, _flag_b = 0; 7511 uint32_t _itail_tgt = 0; 7512 RECOMP_REGS_LOCALS 7513 RECOMP_ENTER(0x25094A80u); 7514 7515 L_25094A80: 7516 MEM32(0x25238370) = 0x251B4544u; /* 0x25094A80: mov dword ptr [0x25238370], 0x251b4544 */ 7517 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094A8A: ret */ 7518 RECOMP_REGS_OUT(); 7519 } 7520 7521 void sub_25094A90(void) { 7522 int _fpu_cmp = 0; 7523 uint32_t _cf = 0; 7524 int _df = 1; 7525 uint32_t _flag_k = FK_NONE; 7526 uint32_t _flag_a = 0, _flag_b = 0; 7527 uint32_t _itail_tgt = 0; 7528 RECOMP_REGS_LOCALS 7529 RECOMP_ENTER(0x25094A90u); 7530 7531 L_25094A90: 7532 goto L_25094AA0; /* 0x25094A90: jmp 0x25094aa0 */ 7533 L_25094AA0: 7534 MEM32(0x2523836C) = 0x251B457Cu; /* 0x25094AA0: mov dword ptr [0x2523836c], 0x251b457c */ 7535 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094AAA: ret */ 7536 RECOMP_REGS_OUT(); 7537 } 7538 7539 void sub_25094AA0(void) { 7540 int _fpu_cmp = 0; 7541 uint32_t _cf = 0; 7542 int _df = 1; 7543 uint32_t _flag_k = FK_NONE; 7544 uint32_t _flag_a = 0, _flag_b = 0; 7545 uint32_t _itail_tgt = 0; 7546 RECOMP_REGS_LOCALS 7547 RECOMP_ENTER(0x25094AA0u); 7548 7549 L_25094AA0: 7550 MEM32(0x2523836C) = 0x251B457Cu; /* 0x25094AA0: mov dword ptr [0x2523836c], 0x251b457c */ 7551 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094AAA: ret */ 7552 RECOMP_REGS_OUT(); 7553 } 7554 7555 void sub_25094AB0(void) { 7556 int _fpu_cmp = 0; 7557 uint32_t _cf = 0; 7558 int _df = 1; 7559 uint32_t _flag_k = FK_NONE; 7560 uint32_t _flag_a = 0, _flag_b = 0; 7561 uint32_t _itail_tgt = 0; 7562 RECOMP_REGS_LOCALS 7563 RECOMP_ENTER(0x25094AB0u); 7564 7565 L_25094AB0: 7566 goto L_25094AC0; /* 0x25094AB0: jmp 0x25094ac0 */ 7567 L_25094AC0: 7568 MEM32(0x25238368) = 0x251B45B0u; /* 0x25094AC0: mov dword ptr [0x25238368], 0x251b45b0 */ 7569 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094ACA: ret */ 7570 RECOMP_REGS_OUT(); 7571 } 7572 7573 void sub_25094AC0(void) { 7574 int _fpu_cmp = 0; 7575 uint32_t _cf = 0; 7576 int _df = 1; 7577 uint32_t _flag_k = FK_NONE; 7578 uint32_t _flag_a = 0, _flag_b = 0; 7579 uint32_t _itail_tgt = 0; 7580 RECOMP_REGS_LOCALS 7581 RECOMP_ENTER(0x25094AC0u); 7582 7583 L_25094AC0: 7584 MEM32(0x25238368) = 0x251B45B0u; /* 0x25094AC0: mov dword ptr [0x25238368], 0x251b45b0 */ 7585 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094ACA: ret */ 7586 RECOMP_REGS_OUT(); 7587 } 7588 7589 void sub_25094AD0(void) { 7590 int _fpu_cmp = 0; 7591 uint32_t _cf = 0; 7592 int _df = 1; 7593 uint32_t _flag_k = FK_NONE; 7594 uint32_t _flag_a = 0, _flag_b = 0; 7595 uint32_t _itail_tgt = 0; 7596 RECOMP_REGS_LOCALS 7597 RECOMP_ENTER(0x25094AD0u); 7598 7599 L_25094AD0: 7600 goto L_25094AE0; /* 0x25094AD0: jmp 0x25094ae0 */ 7601 L_25094AE0: 7602 MEM32(0x25238364) = 0x251B45ECu; /* 0x25094AE0: mov dword ptr [0x25238364], 0x251b45ec */ 7603 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094AEA: ret */ 7604 RECOMP_REGS_OUT(); 7605 } 7606 7607 void sub_25094AE0(void) { 7608 int _fpu_cmp = 0; 7609 uint32_t _cf = 0; 7610 int _df = 1; 7611 uint32_t _flag_k = FK_NONE; 7612 uint32_t _flag_a = 0, _flag_b = 0; 7613 uint32_t _itail_tgt = 0; 7614 RECOMP_REGS_LOCALS 7615 RECOMP_ENTER(0x25094AE0u); 7616 7617 L_25094AE0: 7618 MEM32(0x25238364) = 0x251B45ECu; /* 0x25094AE0: mov dword ptr [0x25238364], 0x251b45ec */ 7619 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094AEA: ret */ 7620 RECOMP_REGS_OUT(); 7621 } 7622 7623 void sub_25094AF0(void) { 7624 int _fpu_cmp = 0; 7625 uint32_t _cf = 0; 7626 int _df = 1; 7627 uint32_t _flag_k = FK_NONE; 7628 uint32_t _flag_a = 0, _flag_b = 0; 7629 uint32_t _itail_tgt = 0; 7630 RECOMP_REGS_LOCALS 7631 RECOMP_ENTER(0x25094AF0u); 7632 7633 L_25094AF0: 7634 goto L_25094B00; /* 0x25094AF0: jmp 0x25094b00 */ 7635 L_25094B00: 7636 MEM32(0x25238360) = 0x251B4624u; /* 0x25094B00: mov dword ptr [0x25238360], 0x251b4624 */ 7637 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094B0A: ret */ 7638 RECOMP_REGS_OUT(); 7639 } 7640 7641 void sub_25094B00(void) { 7642 int _fpu_cmp = 0; 7643 uint32_t _cf = 0; 7644 int _df = 1; 7645 uint32_t _flag_k = FK_NONE; 7646 uint32_t _flag_a = 0, _flag_b = 0; 7647 uint32_t _itail_tgt = 0; 7648 RECOMP_REGS_LOCALS 7649 RECOMP_ENTER(0x25094B00u); 7650 7651 L_25094B00: 7652 MEM32(0x25238360) = 0x251B4624u; /* 0x25094B00: mov dword ptr [0x25238360], 0x251b4624 */ 7653 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094B0A: ret */ 7654 RECOMP_REGS_OUT(); 7655 } 7656 7657 void sub_25094B10(void) { 7658 int _fpu_cmp = 0; 7659 uint32_t _cf = 0; 7660 int _df = 1; 7661 uint32_t _flag_k = FK_NONE; 7662 uint32_t _flag_a = 0, _flag_b = 0; 7663 uint32_t _itail_tgt = 0; 7664 RECOMP_REGS_LOCALS 7665 RECOMP_ENTER(0x25094B10u); 7666 7667 L_25094B10: 7668 goto L_25094B20; /* 0x25094B10: jmp 0x25094b20 */ 7669 L_25094B20: 7670 MEM32(0x2523835C) = 0x251B4660u; /* 0x25094B20: mov dword ptr [0x2523835c], 0x251b4660 */ 7671 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094B2A: ret */ 7672 RECOMP_REGS_OUT(); 7673 } 7674 7675 void sub_25094B20(void) { 7676 int _fpu_cmp = 0; 7677 uint32_t _cf = 0; 7678 int _df = 1; 7679 uint32_t _flag_k = FK_NONE; 7680 uint32_t _flag_a = 0, _flag_b = 0; 7681 uint32_t _itail_tgt = 0; 7682 RECOMP_REGS_LOCALS 7683 RECOMP_ENTER(0x25094B20u); 7684 7685 L_25094B20: 7686 MEM32(0x2523835C) = 0x251B4660u; /* 0x25094B20: mov dword ptr [0x2523835c], 0x251b4660 */ 7687 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094B2A: ret */ 7688 RECOMP_REGS_OUT(); 7689 } 7690 7691 void sub_25094B30(void) { 7692 int _fpu_cmp = 0; 7693 uint32_t _cf = 0; 7694 int _df = 1; 7695 uint32_t _flag_k = FK_NONE; 7696 uint32_t _flag_a = 0, _flag_b = 0; 7697 uint32_t _itail_tgt = 0; 7698 RECOMP_REGS_LOCALS 7699 RECOMP_ENTER(0x25094B30u); 7700 7701 L_25094B30: 7702 goto L_25094B40; /* 0x25094B30: jmp 0x25094b40 */ 7703 L_25094B40: 7704 MEM32(0x25238358) = 0x251B469Cu; /* 0x25094B40: mov dword ptr [0x25238358], 0x251b469c */ 7705 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25094B4A: ret */ 7706 RECOMP_REGS_OUT(); 7707 }