client/game/hr.dll/lifted-0000.c (36083B)
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_32001000(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(0x32001000u); 17 18 L_32001000: 19 PUSH32(esp, esi); /* 0x32001000: push esi */ 20 esi = ecx; /* 0x32001001: mov esi, ecx */ 21 MEM32(esi) = 0; /* 0x32001003: mov dword ptr [esi], 0 */ 22 MEM32(esi + 0x4) = 0; /* 0x32001009: mov dword ptr [esi + 4], 0 */ 23 RECOMP_ICALL(0x320011B0u); /* 0x32001010: call 0x320011b0 */ /* not lifted */ 24 RECOMP_FLAGS_IN(); 25 eax = MEM32(esi); /* 0x32001015: mov eax, dword ptr [esi] */ 26 MEM32(esi + 0x4) = eax; /* 0x32001017: mov dword ptr [esi + 4], eax */ 27 eax = esi; /* 0x3200101A: mov eax, esi */ 28 esi = POP32_VAL(esp); /* 0x3200101C: pop esi */ 29 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3200101D: ret */ 30 RECOMP_REGS_OUT(); 31 } 32 33 void sub_32001020(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(0x32001020u); 42 43 L_32001020: 44 PUSH32(esp, esi); /* 0x32001020: push esi */ 45 esi = ecx; /* 0x32001021: mov esi, ecx */ 46 RECOMP_ICALL(0x320011B0u); /* 0x32001023: call 0x320011b0 */ /* not lifted */ 47 RECOMP_FLAGS_IN(); 48 eax = MEM32(esi); /* 0x32001028: mov eax, dword ptr [esi] */ 49 MEM32(esi + 0x4) = eax; /* 0x3200102A: mov dword ptr [esi + 4], eax */ 50 esi = POP32_VAL(esp); /* 0x3200102D: pop esi */ 51 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3200102E: ret */ 52 RECOMP_REGS_OUT(); 53 } 54 55 void sub_32001030(void) { 56 int _fpu_cmp = 0; 57 uint32_t _cf = 0; 58 int _df = 1; 59 uint32_t _flag_k = FK_NONE; 60 uint32_t _flag_a = 0, _flag_b = 0; 61 uint32_t _itail_tgt = 0; 62 RECOMP_REGS_LOCALS 63 RECOMP_ENTER(0x32001030u); 64 65 L_32001030: 66 PUSH32(esp, ebp); /* 0x32001030: push ebp */ 67 ebp = esp; /* 0x32001031: mov ebp, esp */ 68 PUSH32(esp, ecx); /* 0x32001033: push ecx */ 69 PUSH32(esp, esi); /* 0x32001034: push esi */ 70 esi = ecx; /* 0x32001035: mov esi, ecx */ 71 RECOMP_ICALL(0x320011B0u); /* 0x32001037: call 0x320011b0 */ /* not lifted */ 72 RECOMP_FLAGS_IN(); 73 eax = esi + 0x4; /* 0x3200103C: lea eax, [esi + 4] */ 74 ecx = ebp + (-0x4); /* 0x3200103F: lea ecx, [ebp - 4] */ 75 PUSH32(esp, eax); /* 0x32001042: push eax */ 76 PUSH32(esp, esi); /* 0x32001043: push esi */ 77 PUSH32(esp, ecx); /* 0x32001044: push ecx */ 78 RECOMP_ICALL(0x32001110u); /* 0x32001045: call 0x32001110 */ /* not lifted */ 79 RECOMP_FLAGS_IN(); 80 edx = MEM32(eax); /* 0x3200104A: mov edx, dword ptr [eax] */ 81 eax = MEM32(ebp + 0x8); /* 0x3200104C: mov eax, dword ptr [ebp + 8] */ 82 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 83 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 84 esp = esp + 0xCu; /* 0x3200104F: add esp, 0xc */ 85 _flag_k = FK_ADD; 86 MEM32(eax) = edx; /* 0x32001052: mov dword ptr [eax], edx */ 87 esi = POP32_VAL(esp); /* 0x32001054: pop esi */ 88 esp = ebp; /* 0x32001055: mov esp, ebp */ 89 ebp = POP32_VAL(esp); /* 0x32001057: pop ebp */ 90 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x32001058: ret 4 */ 91 RECOMP_REGS_OUT(); 92 } 93 94 void sub_32001060(void) { 95 int _fpu_cmp = 0; 96 uint32_t _cf = 0; 97 int _df = 1; 98 uint32_t _flag_k = FK_NONE; 99 uint32_t _flag_a = 0, _flag_b = 0; 100 uint32_t _itail_tgt = 0; 101 RECOMP_REGS_LOCALS 102 RECOMP_ENTER(0x32001060u); 103 104 L_32001060: 105 MEM32(ecx) = 0; /* 0x32001060: mov dword ptr [ecx], 0 */ 106 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x32001066: ret */ 107 RECOMP_REGS_OUT(); 108 } 109 110 void sub_32001070(void) { 111 int _fpu_cmp = 0; 112 uint32_t _cf = 0; 113 int _df = 1; 114 uint32_t _flag_k = FK_NONE; 115 uint32_t _flag_a = 0, _flag_b = 0; 116 uint32_t _itail_tgt = 0; 117 RECOMP_REGS_LOCALS 118 RECOMP_ENTER(0x32001070u); 119 120 L_32001070: 121 PUSH32(esp, ebp); /* 0x32001070: push ebp */ 122 ebp = esp; /* 0x32001071: mov ebp, esp */ 123 eax = ecx; /* 0x32001073: mov eax, ecx */ 124 ecx = MEM32(ebp + 0x8); /* 0x32001075: mov ecx, dword ptr [ebp + 8] */ 125 MEM32(eax) = ecx; /* 0x32001078: mov dword ptr [eax], ecx */ 126 ebp = POP32_VAL(esp); /* 0x3200107A: pop ebp */ 127 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3200107B: ret 4 */ 128 RECOMP_REGS_OUT(); 129 } 130 131 void sub_32001080(void) { 132 int _fpu_cmp = 0; 133 uint32_t _cf = 0; 134 int _df = 1; 135 uint32_t _flag_k = FK_NONE; 136 uint32_t _flag_a = 0, _flag_b = 0; 137 uint32_t _itail_tgt = 0; 138 RECOMP_REGS_LOCALS 139 RECOMP_ENTER(0x32001080u); 140 141 L_32001080: 142 PUSH32(esp, ebp); /* 0x32001080: push ebp */ 143 ebp = esp; /* 0x32001081: mov ebp, esp */ 144 eax = ecx; /* 0x32001083: mov eax, ecx */ 145 ecx = MEM32(ebp + 0x8); /* 0x32001085: mov ecx, dword ptr [ebp + 8] */ 146 edx = MEM32(ecx); /* 0x32001088: mov edx, dword ptr [ecx] */ 147 MEM32(eax) = edx; /* 0x3200108A: mov dword ptr [eax], edx */ 148 ebp = POP32_VAL(esp); /* 0x3200108C: pop ebp */ 149 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3200108D: ret 4 */ 150 RECOMP_REGS_OUT(); 151 } 152 153 void sub_32001090(void) { 154 int _fpu_cmp = 0; 155 uint32_t _cf = 0; 156 int _df = 1; 157 uint32_t _flag_k = FK_NONE; 158 uint32_t _flag_a = 0, _flag_b = 0; 159 uint32_t _itail_tgt = 0; 160 RECOMP_REGS_LOCALS 161 RECOMP_ENTER(0x32001090u); 162 163 L_32001090: 164 PUSH32(esp, ebp); /* 0x32001090: push ebp */ 165 ebp = esp; /* 0x32001091: mov ebp, esp */ 166 eax = ecx; /* 0x32001093: mov eax, ecx */ 167 ecx = MEM32(ebp + 0x8); /* 0x32001095: mov ecx, dword ptr [ebp + 8] */ 168 fp_push(*(float*)&MEM32(ecx)); /* 0x32001098: fld dword ptr [ecx] */ 169 _st[0] += (double)*(float*)ADDR(eax); /* 0x3200109A: fadd dword ptr [eax] */ 170 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3200109C: fstp dword ptr [eax] */ 171 ebp = POP32_VAL(esp); /* 0x3200109E: pop ebp */ 172 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3200109F: ret 4 */ 173 RECOMP_REGS_OUT(); 174 } 175 176 void sub_320010B0(void) { 177 int _fpu_cmp = 0; 178 uint32_t _cf = 0; 179 int _df = 1; 180 uint32_t _flag_k = FK_NONE; 181 uint32_t _flag_a = 0, _flag_b = 0; 182 uint32_t _itail_tgt = 0; 183 RECOMP_REGS_LOCALS 184 RECOMP_ENTER(0x320010B0u); 185 186 L_320010B0: 187 PUSH32(esp, ebp); /* 0x320010B0: push ebp */ 188 ebp = esp; /* 0x320010B1: mov ebp, esp */ 189 eax = ecx; /* 0x320010B3: mov eax, ecx */ 190 ecx = MEM32(ebp + 0x8); /* 0x320010B5: mov ecx, dword ptr [ebp + 8] */ 191 fp_push(*(float*)&MEM32(eax)); /* 0x320010B8: fld dword ptr [eax] */ 192 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x320010BA: fsub dword ptr [ecx] */ 193 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x320010BC: fstp dword ptr [eax] */ 194 ebp = POP32_VAL(esp); /* 0x320010BE: pop ebp */ 195 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x320010BF: ret 4 */ 196 RECOMP_REGS_OUT(); 197 } 198 199 void sub_320010D0(void) { 200 int _fpu_cmp = 0; 201 uint32_t _cf = 0; 202 int _df = 1; 203 uint32_t _flag_k = FK_NONE; 204 uint32_t _flag_a = 0, _flag_b = 0; 205 uint32_t _itail_tgt = 0; 206 RECOMP_REGS_LOCALS 207 RECOMP_ENTER(0x320010D0u); 208 209 L_320010D0: 210 PUSH32(esp, ebp); /* 0x320010D0: push ebp */ 211 ebp = esp; /* 0x320010D1: mov ebp, esp */ 212 eax = ecx; /* 0x320010D3: mov eax, ecx */ 213 ecx = MEM32(ebp + 0x8); /* 0x320010D5: mov ecx, dword ptr [ebp + 8] */ 214 edx = MEM32(ecx); /* 0x320010D8: mov edx, dword ptr [ecx] */ 215 MEM32(eax) = edx; /* 0x320010DA: mov dword ptr [eax], edx */ 216 ecx = MEM32(ecx + 0x4); /* 0x320010DC: mov ecx, dword ptr [ecx + 4] */ 217 MEM32(eax + 0x4) = ecx; /* 0x320010DF: mov dword ptr [eax + 4], ecx */ 218 ebp = POP32_VAL(esp); /* 0x320010E2: pop ebp */ 219 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x320010E3: ret 4 */ 220 RECOMP_REGS_OUT(); 221 } 222 223 void sub_320010F0(void) { 224 int _fpu_cmp = 0; 225 uint32_t _cf = 0; 226 int _df = 1; 227 uint32_t _flag_k = FK_NONE; 228 uint32_t _flag_a = 0, _flag_b = 0; 229 uint32_t _itail_tgt = 0; 230 RECOMP_REGS_LOCALS 231 RECOMP_ENTER(0x320010F0u); 232 233 L_320010F0: 234 PUSH32(esp, ebp); /* 0x320010F0: push ebp */ 235 ebp = esp; /* 0x320010F1: mov ebp, esp */ 236 eax = MEM32(ebp + 0xC); /* 0x320010F3: mov eax, dword ptr [ebp + 0xc] */ 237 ecx = MEM32(ebp + 0x10); /* 0x320010F6: mov ecx, dword ptr [ebp + 0x10] */ 238 fp_push(*(float*)&MEM32(eax)); /* 0x320010F9: fld dword ptr [eax] */ 239 eax = MEM32(ebp + 0x8); /* 0x320010FB: mov eax, dword ptr [ebp + 8] */ 240 _st[0] += (double)*(float*)ADDR(ecx); /* 0x320010FE: fadd dword ptr [ecx] */ 241 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x32001100: fstp dword ptr [eax] */ 242 ebp = POP32_VAL(esp); /* 0x32001102: pop ebp */ 243 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x32001103: ret */ 244 RECOMP_REGS_OUT(); 245 } 246 247 void sub_32001110(void) { 248 int _fpu_cmp = 0; 249 uint32_t _cf = 0; 250 int _df = 1; 251 uint32_t _flag_k = FK_NONE; 252 uint32_t _flag_a = 0, _flag_b = 0; 253 uint32_t _itail_tgt = 0; 254 RECOMP_REGS_LOCALS 255 RECOMP_ENTER(0x32001110u); 256 257 L_32001110: 258 PUSH32(esp, ebp); /* 0x32001110: push ebp */ 259 ebp = esp; /* 0x32001111: mov ebp, esp */ 260 eax = MEM32(ebp + 0xC); /* 0x32001113: mov eax, dword ptr [ebp + 0xc] */ 261 ecx = MEM32(ebp + 0x10); /* 0x32001116: mov ecx, dword ptr [ebp + 0x10] */ 262 fp_push(*(float*)&MEM32(eax)); /* 0x32001119: fld dword ptr [eax] */ 263 eax = MEM32(ebp + 0x8); /* 0x3200111B: mov eax, dword ptr [ebp + 8] */ 264 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x3200111E: fsub dword ptr [ecx] */ 265 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x32001120: fstp dword ptr [eax] */ 266 ebp = POP32_VAL(esp); /* 0x32001122: pop ebp */ 267 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x32001123: ret */ 268 RECOMP_REGS_OUT(); 269 } 270 271 void sub_32001130(void) { 272 int _fpu_cmp = 0; 273 uint32_t _cf = 0; 274 int _df = 1; 275 uint32_t _flag_k = FK_NONE; 276 uint32_t _flag_a = 0, _flag_b = 0; 277 uint32_t _itail_tgt = 0; 278 RECOMP_REGS_LOCALS 279 RECOMP_ENTER(0x32001130u); 280 281 L_32001130: 282 PUSH32(esp, ebp); /* 0x32001130: push ebp */ 283 ebp = esp; /* 0x32001131: mov ebp, esp */ 284 eax = MEM32(ebp + 0x8); /* 0x32001133: mov eax, dword ptr [ebp + 8] */ 285 ecx = MEM32(ebp + 0xC); /* 0x32001136: mov ecx, dword ptr [ebp + 0xc] */ 286 fp_push(*(float*)&MEM32(eax)); /* 0x32001139: fld dword ptr [eax] */ 287 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx)); /* 0x3200113B: fcomp dword ptr [ecx] */ 288 fp_pop(); 289 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3200113D: fnstsw ax */ 290 /* test HI8(eax), 1 */ /* 0x3200113F: test ah, 1 */ 291 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 292 _cf = 0; 293 _flag_k = FK_NARROW(FK_TEST, 24); 294 if (TEST_Z(_flag_a, _flag_b)) goto L_3200114B; /* 0x32001142: je 0x3200114b */ 295 L_32001144: 296 eax = 1; /* 0x32001144: mov eax, 1 */ 297 ebp = POP32_VAL(esp); /* 0x32001149: pop ebp */ 298 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3200114A: ret */ 299 L_3200114B: 300 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 301 eax = 0; /* 0x3200114B: xor eax, eax */ 302 _cf = 0; 303 _flag_k = FK_TEST; 304 ebp = POP32_VAL(esp); /* 0x3200114D: pop ebp */ 305 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3200114E: ret */ 306 RECOMP_REGS_OUT(); 307 } 308 309 void sub_32001150(void) { 310 int _fpu_cmp = 0; 311 uint32_t _cf = 0; 312 int _df = 1; 313 uint32_t _flag_k = FK_NONE; 314 uint32_t _flag_a = 0, _flag_b = 0; 315 uint32_t _itail_tgt = 0; 316 RECOMP_REGS_LOCALS 317 RECOMP_ENTER(0x32001150u); 318 319 L_32001150: 320 PUSH32(esp, ebp); /* 0x32001150: push ebp */ 321 ebp = esp; /* 0x32001151: mov ebp, esp */ 322 eax = MEM32(ebp + 0x8); /* 0x32001153: mov eax, dword ptr [ebp + 8] */ 323 ecx = MEM32(ebp + 0xC); /* 0x32001156: mov ecx, dword ptr [ebp + 0xc] */ 324 fp_push(*(float*)&MEM32(eax)); /* 0x32001159: fld dword ptr [eax] */ 325 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx)); /* 0x3200115B: fcomp dword ptr [ecx] */ 326 fp_pop(); 327 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3200115D: fnstsw ax */ 328 /* test HI8(eax), 0x41u */ /* 0x3200115F: test ah, 0x41 */ 329 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 330 _cf = 0; 331 _flag_k = FK_NARROW(FK_TEST, 24); 332 if (TEST_NZ(_flag_a, _flag_b)) goto L_3200116B; /* 0x32001162: jne 0x3200116b */ 333 L_32001164: 334 eax = 1; /* 0x32001164: mov eax, 1 */ 335 ebp = POP32_VAL(esp); /* 0x32001169: pop ebp */ 336 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3200116A: ret */ 337 L_3200116B: 338 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 339 eax = 0; /* 0x3200116B: xor eax, eax */ 340 _cf = 0; 341 _flag_k = FK_TEST; 342 ebp = POP32_VAL(esp); /* 0x3200116D: pop ebp */ 343 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3200116E: ret */ 344 RECOMP_REGS_OUT(); 345 } 346 347 void sub_32001170(void) { 348 int _fpu_cmp = 0; 349 uint32_t _cf = 0; 350 int _df = 1; 351 uint32_t _flag_k = FK_NONE; 352 uint32_t _flag_a = 0, _flag_b = 0; 353 uint32_t _itail_tgt = 0; 354 RECOMP_REGS_LOCALS 355 RECOMP_ENTER(0x32001170u); 356 357 L_32001170: 358 PUSH32(esp, ebp); /* 0x32001170: push ebp */ 359 ebp = esp; /* 0x32001171: mov ebp, esp */ 360 eax = MEM32(ebp + 0x8); /* 0x32001173: mov eax, dword ptr [ebp + 8] */ 361 ecx = MEM32(ebp + 0xC); /* 0x32001176: mov ecx, dword ptr [ebp + 0xc] */ 362 fp_push(*(float*)&MEM32(eax)); /* 0x32001179: fld dword ptr [eax] */ 363 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx)); /* 0x3200117B: fcomp dword ptr [ecx] */ 364 fp_pop(); 365 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3200117D: fnstsw ax */ 366 /* test HI8(eax), 0x41u */ /* 0x3200117F: test ah, 0x41 */ 367 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 368 _cf = 0; 369 _flag_k = FK_NARROW(FK_TEST, 24); 370 if (TEST_Z(_flag_a, _flag_b)) goto L_3200118B; /* 0x32001182: je 0x3200118b */ 371 L_32001184: 372 eax = 1; /* 0x32001184: mov eax, 1 */ 373 ebp = POP32_VAL(esp); /* 0x32001189: pop ebp */ 374 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3200118A: ret */ 375 L_3200118B: 376 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 377 eax = 0; /* 0x3200118B: xor eax, eax */ 378 _cf = 0; 379 _flag_k = FK_TEST; 380 ebp = POP32_VAL(esp); /* 0x3200118D: pop ebp */ 381 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3200118E: ret */ 382 RECOMP_REGS_OUT(); 383 } 384 385 void sub_32001190(void) { 386 int _fpu_cmp = 0; 387 uint32_t _cf = 0; 388 int _df = 1; 389 uint32_t _flag_k = FK_NONE; 390 uint32_t _flag_a = 0, _flag_b = 0; 391 uint32_t _itail_tgt = 0; 392 RECOMP_REGS_LOCALS 393 RECOMP_ENTER(0x32001190u); 394 395 L_32001190: 396 PUSH32(esp, ebp); /* 0x32001190: push ebp */ 397 ebp = esp; /* 0x32001191: mov ebp, esp */ 398 eax = MEM32(ebp + 0x8); /* 0x32001193: mov eax, dword ptr [ebp + 8] */ 399 ecx = MEM32(ebp + 0xC); /* 0x32001196: mov ecx, dword ptr [ebp + 0xc] */ 400 fp_push(*(float*)&MEM32(eax)); /* 0x32001199: fld dword ptr [eax] */ 401 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx)); /* 0x3200119B: fcomp dword ptr [ecx] */ 402 fp_pop(); 403 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3200119D: fnstsw ax */ 404 /* test HI8(eax), 1 */ /* 0x3200119F: test ah, 1 */ 405 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 406 _cf = 0; 407 _flag_k = FK_NARROW(FK_TEST, 24); 408 if (TEST_NZ(_flag_a, _flag_b)) goto L_320011AB; /* 0x320011A2: jne 0x320011ab */ 409 L_320011A4: 410 eax = 1; /* 0x320011A4: mov eax, 1 */ 411 ebp = POP32_VAL(esp); /* 0x320011A9: pop ebp */ 412 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x320011AA: ret */ 413 L_320011AB: 414 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 415 eax = 0; /* 0x320011AB: xor eax, eax */ 416 _cf = 0; 417 _flag_k = FK_TEST; 418 ebp = POP32_VAL(esp); /* 0x320011AD: pop ebp */ 419 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x320011AE: ret */ 420 RECOMP_REGS_OUT(); 421 } 422 423 void sub_320011B0(void) { 424 int _fpu_cmp = 0; 425 uint32_t _cf = 0; 426 int _df = 1; 427 uint32_t _flag_k = FK_NONE; 428 uint32_t _flag_a = 0, _flag_b = 0; 429 uint32_t _itail_tgt = 0; 430 RECOMP_REGS_LOCALS 431 RECOMP_ENTER(0x320011B0u); 432 433 L_320011B0: 434 PUSH32(esp, ebp); /* 0x320011B0: push ebp */ 435 ebp = esp; /* 0x320011B1: mov ebp, esp */ 436 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 438 esp = esp - 8; /* 0x320011B3: sub esp, 8 */ 439 _flag_k = FK_CMP; 440 SET_LO8(eax, MEM8(0x32003010)); /* 0x320011B6: mov al, byte ptr [0x32003010] */ 441 PUSH32(esp, esi); /* 0x320011BB: push esi */ 442 PUSH32(esp, edi); /* 0x320011BC: push edi */ 443 edi = MEM32(0x32002020); /* 0x320011BD: mov edi, dword ptr [0x32002020] */ 444 /* test LO8(eax), LO8(eax) */ /* 0x320011C3: test al, al */ 445 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 446 _cf = 0; 447 _flag_k = FK_NARROW(FK_TEST, 24); 448 esi = ecx; /* 0x320011C5: mov esi, ecx */ 449 if (TEST_Z(_flag_a, _flag_b)) goto L_320011D7; /* 0x320011C7: je 0x320011d7 */ 450 L_320011C9: 451 RECOMP_ICALL(edi); /* 0x320011C9: call edi */ 452 RECOMP_FLAGS_IN(); 453 MEM32(0x32003020) = eax; /* 0x320011CB: mov dword ptr [0x32003020], eax */ 454 MEM8(0x32003010) = (uint8_t)(0); /* 0x320011D0: mov byte ptr [0x32003010], 0 */ 455 L_320011D7: 456 RECOMP_ICALL(edi); /* 0x320011D7: call edi */ 457 RECOMP_FLAGS_IN(); 458 ecx = MEM32(0x32003020); /* 0x320011D9: mov ecx, dword ptr [0x32003020] */ 459 MEM32(ebp + (-0x4)) = 0; /* 0x320011DF: mov dword ptr [ebp - 4], 0 */ 460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 462 eax = eax - ecx; /* 0x320011E6: sub eax, ecx */ 463 _flag_k = FK_CMP; 464 edi = POP32_VAL(esp); /* 0x320011E8: pop edi */ 465 MEM32(ebp + (-0x8)) = eax; /* 0x320011E9: mov dword ptr [ebp - 8], eax */ 466 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x320011EC: fild qword ptr [ebp - 8] */ 467 _st[0] *= (double)*(float*)ADDR(0x32002028); /* 0x320011EF: fmul dword ptr [0x32002028] */ 468 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x320011F5: fstp dword ptr [esi] */ 469 esi = POP32_VAL(esp); /* 0x320011F7: pop esi */ 470 esp = ebp; /* 0x320011F8: mov esp, ebp */ 471 ebp = POP32_VAL(esp); /* 0x320011FA: pop ebp */ 472 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x320011FB: ret */ 473 RECOMP_REGS_OUT(); 474 } 475 476 void sub_32001200(void) { 477 int _fpu_cmp = 0; 478 uint32_t _cf = 0; 479 int _df = 1; 480 uint32_t _flag_k = FK_NONE; 481 uint32_t _flag_a = 0, _flag_b = 0; 482 uint32_t _itail_tgt = 0; 483 RECOMP_REGS_LOCALS 484 RECOMP_ENTER(0x32001200u); 485 486 L_32001200: 487 fp_push(*(float*)&MEM32(ecx)); /* 0x32001200: fld dword ptr [ecx] */ 488 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x32001202: ret */ 489 RECOMP_REGS_OUT(); 490 } 491 492 void sub_32001210(void) { 493 int _fpu_cmp = 0; 494 uint32_t _cf = 0; 495 int _df = 1; 496 uint32_t _flag_k = FK_NONE; 497 uint32_t _flag_a = 0, _flag_b = 0; 498 uint32_t _itail_tgt = 0; 499 RECOMP_REGS_LOCALS 500 RECOMP_ENTER(0x32001210u); 501 502 L_32001210: 503 fp_push(*(float*)&MEM32(ecx)); /* 0x32001210: fld dword ptr [ecx] */ 504 L_32001212: 505 _st[0] *= (double)*(float*)ADDR(0x3200202C); /* 0x32001212: fmul dword ptr [0x3200202c] */ 506 L_32001218: 507 goto L_32001230; /* 0x32001218: jmp 0x32001230 */ 508 L_32001230: 509 { _itail_tgt = (uint32_t)(MEM32(0x32002014)); goto _ljump; } 510 { RECOMP_REGS_OUT(); return; } /* end of function */ 511 _ljump: 512 switch (_itail_tgt) { 513 case 0x32001210u: goto L_32001210; 514 case 0x32001212u: goto L_32001212; 515 case 0x32001218u: goto L_32001218; 516 case 0x32001230u: goto L_32001230; 517 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 518 } 519 RECOMP_REGS_OUT(); 520 } 521 522 void sub_32001220(void) { 523 int _fpu_cmp = 0; 524 uint32_t _cf = 0; 525 int _df = 1; 526 uint32_t _flag_k = FK_NONE; 527 uint32_t _flag_a = 0, _flag_b = 0; 528 uint32_t _itail_tgt = 0; 529 RECOMP_REGS_LOCALS 530 RECOMP_ENTER(0x32001220u); 531 532 L_32001220: 533 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x32001220: ret */ 534 RECOMP_REGS_OUT(); 535 } 536 537 void sub_32001230(void) { 538 int _fpu_cmp = 0; 539 uint32_t _cf = 0; 540 int _df = 1; 541 uint32_t _flag_k = FK_NONE; 542 uint32_t _flag_a = 0, _flag_b = 0; 543 uint32_t _itail_tgt = 0; 544 RECOMP_REGS_LOCALS 545 RECOMP_ENTER(0x32001230u); 546 547 L_32001230: 548 { _itail_tgt = (uint32_t)(MEM32(0x32002014)); goto _ljump; } 549 { RECOMP_REGS_OUT(); return; } /* end of function */ 550 _ljump: 551 switch (_itail_tgt) { 552 case 0x32001230u: goto L_32001230; 553 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 554 } 555 RECOMP_REGS_OUT(); 556 } 557 558 void sub_32001236(void) { 559 int _fpu_cmp = 0; 560 uint32_t _cf = 0; 561 int _df = 1; 562 uint32_t _flag_k = FK_NONE; 563 uint32_t _flag_a = 0, _flag_b = 0; 564 uint32_t _itail_tgt = 0; 565 RECOMP_REGS_LOCALS 566 RECOMP_ENTER(0x32001236u); 567 568 L_32001236: 569 eax = MEM32(esp + 0x8); /* 0x32001236: mov eax, dword ptr [esp + 8] */ 570 /* test eax, eax */ /* 0x3200123A: test eax, eax */ 571 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 572 _cf = 0; 573 _flag_k = FK_TEST; 574 if (TEST_NZ(_flag_a, _flag_b)) goto L_3200124C; /* 0x3200123C: jne 0x3200124c */ 575 L_3200123E: 576 /* cmp MEM32(0x32003024), eax */ /* 0x3200123E: cmp dword ptr [0x32003024], eax */ 577 _flag_a = (uint32_t)(MEM32(0x32003024)); _flag_b = (uint32_t)(eax); 578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 579 _flag_k = FK_CMP; 580 if (CMP_LE(_flag_a, _flag_b)) goto L_32001274; /* 0x32001244: jle 0x32001274 */ 581 L_32001246: 582 _flag_a = (uint32_t)(MEM32(0x32003024)); _flag_b = (uint32_t)(1); 583 MEM32(0x32003024) = MEM32(0x32003024) - 1; /* 0x32001246: dec dword ptr [0x32003024] */ 584 _flag_k = FK_DEC; 585 L_3200124C: 586 ecx = MEM32(0x32002018); /* 0x3200124C: mov ecx, dword ptr [0x32002018] */ 587 /* cmp eax, 1 */ /* 0x32001252: cmp eax, 1 */ 588 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 590 _flag_k = FK_CMP; 591 ecx = MEM32(ecx); /* 0x32001255: mov ecx, dword ptr [ecx] */ 592 MEM32(0x32003028) = ecx; /* 0x32001257: mov dword ptr [0x32003028], ecx */ 593 if (CMP_NE(_flag_a, _flag_b)) goto L_3200129E; /* 0x3200125D: jne 0x3200129e */ 594 L_3200125F: 595 PUSH32(esp, 0x80u); /* 0x3200125F: push 0x80 */ 596 RECOMP_ICALL(MEM32(0x32002010)); /* 0x32001264: call dword ptr [0x32002010] */ 597 RECOMP_FLAGS_IN(); 598 /* test eax, eax */ /* 0x3200126A: test eax, eax */ 599 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 600 _cf = 0; 601 _flag_k = FK_TEST; 602 ecx = POP32_VAL(esp); /* 0x3200126C: pop ecx */ 603 MEM32(0x32003030) = eax; /* 0x3200126D: mov dword ptr [0x32003030], eax */ 604 if (TEST_NZ(_flag_a, _flag_b)) goto L_32001278; /* 0x32001272: jne 0x32001278 */ 605 L_32001274: 606 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 607 eax = 0; /* 0x32001274: xor eax, eax */ 608 _cf = 0; 609 _flag_k = FK_TEST; 610 goto L_320012DE; /* 0x32001276: jmp 0x320012de */ 611 L_32001278: 612 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 613 MEM32(eax) = MEM32(eax) & 0; /* 0x32001278: and dword ptr [eax], 0 */ 614 _cf = 0; 615 _flag_k = FK_TEST; 616 eax = MEM32(0x32003030); /* 0x3200127B: mov eax, dword ptr [0x32003030] */ 617 PUSH32(esp, 0x32003004u); /* 0x32001280: push 0x32003004 */ 618 PUSH32(esp, 0x32003000u); /* 0x32001285: push 0x32003000 */ 619 MEM32(0x3200302C) = eax; /* 0x3200128A: mov dword ptr [0x3200302c], eax */ 620 RECOMP_ICALL(0x3200137Eu); /* 0x3200128F: call 0x3200137e */ /* not lifted */ 621 RECOMP_FLAGS_IN(); 622 _flag_a = (uint32_t)(MEM32(0x32003024)); _flag_b = (uint32_t)(1); 623 MEM32(0x32003024) = MEM32(0x32003024) + 1; /* 0x32001294: inc dword ptr [0x32003024] */ 624 _flag_k = FK_INC; 625 ecx = POP32_VAL(esp); /* 0x3200129A: pop ecx */ 626 ecx = POP32_VAL(esp); /* 0x3200129B: pop ecx */ 627 goto L_320012DB; /* 0x3200129C: jmp 0x320012db */ 628 L_3200129E: 629 /* test eax, eax */ /* 0x3200129E: test eax, eax */ 630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 631 _cf = 0; 632 _flag_k = FK_TEST; 633 if (TEST_NZ(_flag_a, _flag_b)) goto L_320012DB; /* 0x320012A0: jne 0x320012db */ 634 L_320012A2: 635 eax = MEM32(0x32003030); /* 0x320012A2: mov eax, dword ptr [0x32003030] */ 636 /* test eax, eax */ /* 0x320012A7: test eax, eax */ 637 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 638 _cf = 0; 639 _flag_k = FK_TEST; 640 if (TEST_Z(_flag_a, _flag_b)) goto L_320012DB; /* 0x320012A9: je 0x320012db */ 641 L_320012AB: 642 ecx = MEM32(0x3200302C); /* 0x320012AB: mov ecx, dword ptr [0x3200302c] */ 643 PUSH32(esp, esi); /* 0x320012B1: push esi */ 644 esi = ecx + (-0x4); /* 0x320012B2: lea esi, [ecx - 4] */ 645 L_320012B5: 646 /* cmp esi, eax */ /* 0x320012B5: cmp esi, eax */ 647 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 649 _flag_k = FK_CMP; 650 if (CMP_B(_flag_a, _flag_b)) goto L_320012CB; /* 0x320012B7: jb 0x320012cb */ 651 L_320012B9: 652 ecx = MEM32(esi); /* 0x320012B9: mov ecx, dword ptr [esi] */ 653 /* test ecx, ecx */ /* 0x320012BB: test ecx, ecx */ 654 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 655 _cf = 0; 656 _flag_k = FK_TEST; 657 if (TEST_Z(_flag_a, _flag_b)) goto L_320012C6; /* 0x320012BD: je 0x320012c6 */ 658 L_320012BF: 659 RECOMP_ICALL(ecx); /* 0x320012BF: call ecx */ 660 RECOMP_FLAGS_IN(); 661 eax = MEM32(0x32003030); /* 0x320012C1: mov eax, dword ptr [0x32003030] */ 662 L_320012C6: 663 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 665 esi = esi - 4; /* 0x320012C6: sub esi, 4 */ 666 _flag_k = FK_CMP; 667 RECOMP_BACKEDGE(); 668 goto L_320012B5; /* 0x320012C9: jmp 0x320012b5 */ 669 L_320012CB: 670 PUSH32(esp, eax); /* 0x320012CB: push eax */ 671 RECOMP_ICALL(MEM32(0x32002008)); /* 0x320012CC: call dword ptr [0x32002008] */ 672 RECOMP_FLAGS_IN(); 673 _flag_a = (uint32_t)(MEM32(0x32003030)); _flag_b = (uint32_t)(0); 674 MEM32(0x32003030) = MEM32(0x32003030) & 0; /* 0x320012D2: and dword ptr [0x32003030], 0 */ 675 _cf = 0; 676 _flag_k = FK_TEST; 677 ecx = POP32_VAL(esp); /* 0x320012D9: pop ecx */ 678 esi = POP32_VAL(esp); /* 0x320012DA: pop esi */ 679 L_320012DB: 680 PUSH32(esp, 1); /* 0x320012DB: push 1 */ 681 eax = POP32_VAL(esp); /* 0x320012DD: pop eax */ 682 L_320012DE: 683 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x320012DE: ret 0xc */ 684 RECOMP_REGS_OUT(); 685 } 686 687 void sub_320012E1(void) { 688 int _fpu_cmp = 0; 689 uint32_t _cf = 0; 690 int _df = 1; 691 uint32_t _flag_k = FK_NONE; 692 uint32_t _flag_a = 0, _flag_b = 0; 693 uint32_t _itail_tgt = 0; 694 RECOMP_REGS_LOCALS 695 RECOMP_ENTER(0x320012E1u); 696 697 L_320012E1: 698 PUSH32(esp, ebp); /* 0x320012E1: push ebp */ 699 ebp = esp; /* 0x320012E2: mov ebp, esp */ 700 PUSH32(esp, ebx); /* 0x320012E4: push ebx */ 701 ebx = MEM32(ebp + 0x8); /* 0x320012E5: mov ebx, dword ptr [ebp + 8] */ 702 PUSH32(esp, esi); /* 0x320012E8: push esi */ 703 esi = MEM32(ebp + 0xC); /* 0x320012E9: mov esi, dword ptr [ebp + 0xc] */ 704 PUSH32(esp, edi); /* 0x320012EC: push edi */ 705 edi = MEM32(ebp + 0x10); /* 0x320012ED: mov edi, dword ptr [ebp + 0x10] */ 706 /* test esi, esi */ /* 0x320012F0: test esi, esi */ 707 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 708 _cf = 0; 709 _flag_k = FK_TEST; 710 if (TEST_NZ(_flag_a, _flag_b)) goto L_320012FD; /* 0x320012F2: jne 0x320012fd */ 711 L_320012F4: 712 /* cmp MEM32(0x32003024), 0 */ /* 0x320012F4: cmp dword ptr [0x32003024], 0 */ 713 _flag_a = (uint32_t)(MEM32(0x32003024)); _flag_b = (uint32_t)(0); 714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 715 _flag_k = FK_CMP; 716 goto L_32001323; /* 0x320012FB: jmp 0x32001323 */ 717 L_320012FD: 718 /* cmp esi, 1 */ /* 0x320012FD: cmp esi, 1 */ 719 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 721 _flag_k = FK_CMP; 722 if (CMP_EQ(_flag_a, _flag_b)) goto L_32001307; /* 0x32001300: je 0x32001307 */ 723 L_32001302: 724 /* cmp esi, 2 */ /* 0x32001302: cmp esi, 2 */ 725 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 727 _flag_k = FK_CMP; 728 if (CMP_NE(_flag_a, _flag_b)) goto L_32001329; /* 0x32001305: jne 0x32001329 */ 729 L_32001307: 730 eax = MEM32(0x32003034); /* 0x32001307: mov eax, dword ptr [0x32003034] */ 731 /* test eax, eax */ /* 0x3200130C: test eax, eax */ 732 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 733 _cf = 0; 734 _flag_k = FK_TEST; 735 if (TEST_Z(_flag_a, _flag_b)) goto L_32001319; /* 0x3200130E: je 0x32001319 */ 736 L_32001310: 737 PUSH32(esp, edi); /* 0x32001310: push edi */ 738 PUSH32(esp, esi); /* 0x32001311: push esi */ 739 PUSH32(esp, ebx); /* 0x32001312: push ebx */ 740 RECOMP_ICALL(eax); /* 0x32001313: call eax */ 741 RECOMP_FLAGS_IN(); 742 /* test eax, eax */ /* 0x32001315: test eax, eax */ 743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 744 _cf = 0; 745 _flag_k = FK_TEST; 746 if (TEST_Z(_flag_a, _flag_b)) goto L_32001325; /* 0x32001317: je 0x32001325 */ 747 L_32001319: 748 PUSH32(esp, edi); /* 0x32001319: push edi */ 749 PUSH32(esp, esi); /* 0x3200131A: push esi */ 750 PUSH32(esp, ebx); /* 0x3200131B: push ebx */ 751 RECOMP_ICALL(0x32001236u); /* 0x3200131C: call 0x32001236 */ /* not lifted */ 752 RECOMP_FLAGS_IN(); 753 /* test eax, eax */ /* 0x32001321: test eax, eax */ 754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 755 _cf = 0; 756 _flag_k = FK_TEST; 757 L_32001323: 758 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_32001329; /* 0x32001323: jne 0x32001329 */ 759 L_32001325: 760 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 761 eax = 0; /* 0x32001325: xor eax, eax */ 762 _cf = 0; 763 _flag_k = FK_TEST; 764 goto L_32001377; /* 0x32001327: jmp 0x32001377 */ 765 L_32001329: 766 PUSH32(esp, edi); /* 0x32001329: push edi */ 767 PUSH32(esp, esi); /* 0x3200132A: push esi */ 768 PUSH32(esp, ebx); /* 0x3200132B: push ebx */ 769 RECOMP_ICALL(0x32001384u); /* 0x3200132C: call 0x32001384 */ /* not lifted */ 770 RECOMP_FLAGS_IN(); 771 /* cmp esi, 1 */ /* 0x32001331: cmp esi, 1 */ 772 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 774 _flag_k = FK_CMP; 775 MEM32(ebp + 0xC) = eax; /* 0x32001334: mov dword ptr [ebp + 0xc], eax */ 776 if (CMP_NE(_flag_a, _flag_b)) goto L_32001345; /* 0x32001337: jne 0x32001345 */ 777 L_32001339: 778 /* test eax, eax */ /* 0x32001339: test eax, eax */ 779 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 780 _cf = 0; 781 _flag_k = FK_TEST; 782 if (TEST_NZ(_flag_a, _flag_b)) goto L_32001374; /* 0x3200133B: jne 0x32001374 */ 783 L_3200133D: 784 PUSH32(esp, edi); /* 0x3200133D: push edi */ 785 PUSH32(esp, eax); /* 0x3200133E: push eax */ 786 PUSH32(esp, ebx); /* 0x3200133F: push ebx */ 787 RECOMP_ICALL(0x32001236u); /* 0x32001340: call 0x32001236 */ /* not lifted */ 788 RECOMP_FLAGS_IN(); 789 L_32001345: 790 /* test esi, esi */ /* 0x32001345: test esi, esi */ 791 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 792 _cf = 0; 793 _flag_k = FK_TEST; 794 if (TEST_Z(_flag_a, _flag_b)) goto L_3200134E; /* 0x32001347: je 0x3200134e */ 795 L_32001349: 796 /* cmp esi, 3 */ /* 0x32001349: cmp esi, 3 */ 797 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3); 798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 799 _flag_k = FK_CMP; 800 if (CMP_NE(_flag_a, _flag_b)) goto L_32001374; /* 0x3200134C: jne 0x32001374 */ 801 L_3200134E: 802 PUSH32(esp, edi); /* 0x3200134E: push edi */ 803 PUSH32(esp, esi); /* 0x3200134F: push esi */ 804 PUSH32(esp, ebx); /* 0x32001350: push ebx */ 805 RECOMP_ICALL(0x32001236u); /* 0x32001351: call 0x32001236 */ /* not lifted */ 806 RECOMP_FLAGS_IN(); 807 /* test eax, eax */ /* 0x32001356: test eax, eax */ 808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 809 _cf = 0; 810 _flag_k = FK_TEST; 811 if (TEST_NZ(_flag_a, _flag_b)) goto L_3200135D; /* 0x32001358: jne 0x3200135d */ 812 L_3200135A: 813 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(eax); 814 MEM32(ebp + 0xC) = MEM32(ebp + 0xC) & eax; /* 0x3200135A: and dword ptr [ebp + 0xc], eax */ 815 _cf = 0; 816 _flag_k = FK_TEST; 817 L_3200135D: 818 /* cmp MEM32(ebp + 0xC), 0 */ /* 0x3200135D: cmp dword ptr [ebp + 0xc], 0 */ 819 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(0); 820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 821 _flag_k = FK_CMP; 822 if (CMP_EQ(_flag_a, _flag_b)) goto L_32001374; /* 0x32001361: je 0x32001374 */ 823 L_32001363: 824 eax = MEM32(0x32003034); /* 0x32001363: mov eax, dword ptr [0x32003034] */ 825 /* test eax, eax */ /* 0x32001368: test eax, eax */ 826 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 827 _cf = 0; 828 _flag_k = FK_TEST; 829 if (TEST_Z(_flag_a, _flag_b)) goto L_32001374; /* 0x3200136A: je 0x32001374 */ 830 L_3200136C: 831 PUSH32(esp, edi); /* 0x3200136C: push edi */ 832 PUSH32(esp, esi); /* 0x3200136D: push esi */ 833 PUSH32(esp, ebx); /* 0x3200136E: push ebx */ 834 RECOMP_ICALL(eax); /* 0x3200136F: call eax */ 835 RECOMP_FLAGS_IN(); 836 MEM32(ebp + 0xC) = eax; /* 0x32001371: mov dword ptr [ebp + 0xc], eax */ 837 L_32001374: 838 eax = MEM32(ebp + 0xC); /* 0x32001374: mov eax, dword ptr [ebp + 0xc] */ 839 L_32001377: 840 edi = POP32_VAL(esp); /* 0x32001377: pop edi */ 841 esi = POP32_VAL(esp); /* 0x32001378: pop esi */ 842 ebx = POP32_VAL(esp); /* 0x32001379: pop ebx */ 843 ebp = POP32_VAL(esp); /* 0x3200137A: pop ebp */ 844 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3200137B: ret 0xc */ 845 RECOMP_REGS_OUT(); 846 } 847 848 void sub_3200137E(void) { 849 int _fpu_cmp = 0; 850 uint32_t _cf = 0; 851 int _df = 1; 852 uint32_t _flag_k = FK_NONE; 853 uint32_t _flag_a = 0, _flag_b = 0; 854 uint32_t _itail_tgt = 0; 855 RECOMP_REGS_LOCALS 856 RECOMP_ENTER(0x3200137Eu); 857 858 L_3200137E: 859 { _itail_tgt = (uint32_t)(MEM32(0x3200200C)); goto _ljump; } 860 { RECOMP_REGS_OUT(); return; } /* end of function */ 861 _ljump: 862 switch (_itail_tgt) { 863 case 0x3200137Eu: goto L_3200137E; 864 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 865 } 866 RECOMP_REGS_OUT(); 867 } 868 869 void sub_32001384(void) { 870 int _fpu_cmp = 0; 871 uint32_t _cf = 0; 872 int _df = 1; 873 uint32_t _flag_k = FK_NONE; 874 uint32_t _flag_a = 0, _flag_b = 0; 875 uint32_t _itail_tgt = 0; 876 RECOMP_REGS_LOCALS 877 RECOMP_ENTER(0x32001384u); 878 879 L_32001384: 880 /* cmp MEM32(esp + 0x8), 1 */ /* 0x32001384: cmp dword ptr [esp + 8], 1 */ 881 _flag_a = (uint32_t)(MEM32(esp + 0x8)); _flag_b = (uint32_t)(1); 882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 883 _flag_k = FK_CMP; 884 if (CMP_NE(_flag_a, _flag_b)) goto L_3200139E; /* 0x32001389: jne 0x3200139e */ 885 L_3200138B: 886 /* cmp MEM32(0x32003034), 0 */ /* 0x3200138B: cmp dword ptr [0x32003034], 0 */ 887 _flag_a = (uint32_t)(MEM32(0x32003034)); _flag_b = (uint32_t)(0); 888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 889 _flag_k = FK_CMP; 890 if (CMP_NE(_flag_a, _flag_b)) goto L_3200139E; /* 0x32001392: jne 0x3200139e */ 891 L_32001394: 892 PUSH32(esp, MEM32(esp + 0x4)); /* 0x32001394: push dword ptr [esp + 4] */ 893 RECOMP_ICALL(MEM32(0x32002000)); /* 0x32001398: call dword ptr [0x32002000] */ 894 RECOMP_FLAGS_IN(); 895 L_3200139E: 896 PUSH32(esp, 1); /* 0x3200139E: push 1 */ 897 eax = POP32_VAL(esp); /* 0x320013A0: pop eax */ 898 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x320013A1: ret 0xc */ 899 RECOMP_REGS_OUT(); 900 }