client/game/mmr.dll/lifted-0001.c (1015534B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #if defined(RECOMP_PORTABLE) && !defined(_WIN32) 4 #include "linux_music.h" 5 #endif 6 #include <math.h> 7 #include <stdio.h> 8 #include <stdlib.h> 9 #include <string.h> 10 11 void sub_3A004340(void) { 12 int _fpu_cmp = 0; 13 uint32_t _cf = 0; 14 int _df = 1; 15 uint32_t _flag_k = FK_NONE; 16 uint32_t _flag_a = 0, _flag_b = 0; 17 uint32_t _itail_tgt = 0; 18 RECOMP_REGS_LOCALS 19 RECOMP_ENTER(0x3A004340u); 20 21 L_3A004340: 22 SET_LO8(eax, MEM8(ecx)); /* 0x3A004340: mov al, byte ptr [ecx] */ 23 if (6u) _cf = (((LO8(eax)) >> 5) & 1u); /* 0x3A004342: shr al, 6 */ 24 if (6u) { _flag_a = recomp_flags_pack(((uint32_t)((LO8(eax) >> 6u)) << 24), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 25 SET_LO8(eax, LO8(eax) >> 6u); /* 0x3A004342: shr al, 6 */ 26 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 27 SET_LO8(eax, LO8(eax) & 1); /* 0x3A004345: and al, 1 */ 28 _cf = 0; 29 _flag_k = FK_NARROW(FK_TEST, 24); 30 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004347: ret */ 31 RECOMP_REGS_OUT(); 32 } 33 34 void sub_3A004350(void) { 35 int _fpu_cmp = 0; 36 uint32_t _cf = 0; 37 int _df = 1; 38 uint32_t _flag_k = FK_NONE; 39 uint32_t _flag_a = 0, _flag_b = 0; 40 uint32_t _itail_tgt = 0; 41 RECOMP_REGS_LOCALS 42 RECOMP_ENTER(0x3A004350u); 43 44 L_3A004350: 45 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 46 eax = 0; /* 0x3A004350: xor eax, eax */ 47 _cf = 0; 48 _flag_k = FK_TEST; 49 SET_LO8(eax, MEM8(ecx + 0x7)); /* 0x3A004352: mov al, byte ptr [ecx + 7] */ 50 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu); 51 eax = eax & 0x1Fu; /* 0x3A004355: and eax, 0x1f */ 52 _cf = 0; 53 _flag_k = FK_TEST; 54 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004358: ret */ 55 RECOMP_REGS_OUT(); 56 } 57 58 void sub_3A004360(void) { 59 int _fpu_cmp = 0; 60 uint32_t _cf = 0; 61 int _df = 1; 62 uint32_t _flag_k = FK_NONE; 63 uint32_t _flag_a = 0, _flag_b = 0; 64 uint32_t _itail_tgt = 0; 65 RECOMP_REGS_LOCALS 66 RECOMP_ENTER(0x3A004360u); 67 68 L_3A004360: 69 SET_LO8(eax, MEM8(ecx)); /* 0x3A004360: mov al, byte ptr [ecx] */ 70 if (7u) _cf = (((LO8(eax)) >> 6) & 1u); /* 0x3A004362: shr al, 7 */ 71 if (7u) { _flag_a = recomp_flags_pack(((uint32_t)((LO8(eax) >> 7u)) << 24), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 72 SET_LO8(eax, LO8(eax) >> 7u); /* 0x3A004362: shr al, 7 */ 73 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004365: ret */ 74 RECOMP_REGS_OUT(); 75 } 76 77 void sub_3A004370(void) { 78 int _fpu_cmp = 0; 79 uint32_t _cf = 0; 80 int _df = 1; 81 uint32_t _flag_k = FK_NONE; 82 uint32_t _flag_a = 0, _flag_b = 0; 83 uint32_t _itail_tgt = 0; 84 RECOMP_REGS_LOCALS 85 RECOMP_ENTER(0x3A004370u); 86 87 L_3A004370: 88 fp_push(*(float*)&MEM32(ecx + 0xC8)); /* 0x3A004370: fld dword ptr [ecx + 0xc8] */ 89 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004376: ret */ 90 RECOMP_REGS_OUT(); 91 } 92 93 void sub_3A004380(void) { 94 int _fpu_cmp = 0; 95 uint32_t _cf = 0; 96 int _df = 1; 97 uint32_t _flag_k = FK_NONE; 98 uint32_t _flag_a = 0, _flag_b = 0; 99 uint32_t _itail_tgt = 0; 100 RECOMP_REGS_LOCALS 101 RECOMP_ENTER(0x3A004380u); 102 103 L_3A004380: 104 fp_push(*(float*)&MEM32(ecx + 0xCC)); /* 0x3A004380: fld dword ptr [ecx + 0xcc] */ 105 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004386: ret */ 106 RECOMP_REGS_OUT(); 107 } 108 109 void sub_3A004390(void) { 110 int _fpu_cmp = 0; 111 uint32_t _cf = 0; 112 int _df = 1; 113 uint32_t _flag_k = FK_NONE; 114 uint32_t _flag_a = 0, _flag_b = 0; 115 uint32_t _itail_tgt = 0; 116 RECOMP_REGS_LOCALS 117 RECOMP_ENTER(0x3A004390u); 118 119 L_3A004390: 120 SET_LO8(eax, MEM8(ecx + 0x4)); /* 0x3A004390: mov al, byte ptr [ecx + 4] */ 121 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004393: ret */ 122 RECOMP_REGS_OUT(); 123 } 124 125 void sub_3A0043A0(void) { 126 int _fpu_cmp = 0; 127 uint32_t _cf = 0; 128 int _df = 1; 129 uint32_t _flag_k = FK_NONE; 130 uint32_t _flag_a = 0, _flag_b = 0; 131 uint32_t _itail_tgt = 0; 132 RECOMP_REGS_LOCALS 133 RECOMP_ENTER(0x3A0043A0u); 134 135 L_3A0043A0: 136 SET_LO8(eax, MEM8(ecx + 0x5)); /* 0x3A0043A0: mov al, byte ptr [ecx + 5] */ 137 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0043A3: ret */ 138 RECOMP_REGS_OUT(); 139 } 140 141 void sub_3A0043B0(void) { 142 int _fpu_cmp = 0; 143 uint32_t _cf = 0; 144 int _df = 1; 145 uint32_t _flag_k = FK_NONE; 146 uint32_t _flag_a = 0, _flag_b = 0; 147 uint32_t _itail_tgt = 0; 148 RECOMP_REGS_LOCALS 149 RECOMP_ENTER(0x3A0043B0u); 150 151 L_3A0043B0: 152 SET_LO8(eax, MEM8(ecx + 0x1)); /* 0x3A0043B0: mov al, byte ptr [ecx + 1] */ 153 if (7u) _cf = (((LO8(eax)) >> 6) & 1u); /* 0x3A0043B3: shr al, 7 */ 154 if (7u) { _flag_a = recomp_flags_pack(((uint32_t)((LO8(eax) >> 7u)) << 24), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 155 SET_LO8(eax, LO8(eax) >> 7u); /* 0x3A0043B3: shr al, 7 */ 156 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0043B6: ret */ 157 RECOMP_REGS_OUT(); 158 } 159 160 void sub_3A0043C0(void) { 161 int _fpu_cmp = 0; 162 uint32_t _cf = 0; 163 int _df = 1; 164 uint32_t _flag_k = FK_NONE; 165 uint32_t _flag_a = 0, _flag_b = 0; 166 uint32_t _itail_tgt = 0; 167 RECOMP_REGS_LOCALS 168 RECOMP_ENTER(0x3A0043C0u); 169 170 L_3A0043C0: 171 fp_push(*(float*)&MEM32(ecx + 0xD0)); /* 0x3A0043C0: fld dword ptr [ecx + 0xd0] */ 172 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0043C6: ret */ 173 RECOMP_REGS_OUT(); 174 } 175 176 void sub_3A0043D0(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(0x3A0043D0u); 185 186 L_3A0043D0: 187 fp_push(*(float*)&MEM32(ecx + 0xD4)); /* 0x3A0043D0: fld dword ptr [ecx + 0xd4] */ 188 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0043D6: ret */ 189 RECOMP_REGS_OUT(); 190 } 191 192 void sub_3A0043E0(void) { 193 int _fpu_cmp = 0; 194 uint32_t _cf = 0; 195 int _df = 1; 196 uint32_t _flag_k = FK_NONE; 197 uint32_t _flag_a = 0, _flag_b = 0; 198 uint32_t _itail_tgt = 0; 199 RECOMP_REGS_LOCALS 200 RECOMP_ENTER(0x3A0043E0u); 201 202 L_3A0043E0: 203 SET_LO8(eax, MEM8(ecx + 0x6)); /* 0x3A0043E0: mov al, byte ptr [ecx + 6] */ 204 if (7u) _cf = (((LO8(eax)) >> 6) & 1u); /* 0x3A0043E3: shr al, 7 */ 205 if (7u) { _flag_a = recomp_flags_pack(((uint32_t)((LO8(eax) >> 7u)) << 24), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 206 SET_LO8(eax, LO8(eax) >> 7u); /* 0x3A0043E3: shr al, 7 */ 207 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0043E6: ret */ 208 RECOMP_REGS_OUT(); 209 } 210 211 void sub_3A0043F0(void) { 212 int _fpu_cmp = 0; 213 uint32_t _cf = 0; 214 int _df = 1; 215 uint32_t _flag_k = FK_NONE; 216 uint32_t _flag_a = 0, _flag_b = 0; 217 uint32_t _itail_tgt = 0; 218 RECOMP_REGS_LOCALS 219 RECOMP_ENTER(0x3A0043F0u); 220 221 L_3A0043F0: 222 PUSH32(esp, ebp); /* 0x3A0043F0: push ebp */ 223 ebp = esp; /* 0x3A0043F1: mov ebp, esp */ 224 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 226 esp = esp - 8; /* 0x3A0043F3: sub esp, 8 */ 227 _flag_k = FK_CMP; 228 PUSH32(esp, ebx); /* 0x3A0043F6: push ebx */ 229 PUSH32(esp, esi); /* 0x3A0043F7: push esi */ 230 esi = ecx; /* 0x3A0043F8: mov esi, ecx */ 231 ecx = MEM32(esi + 0x10); /* 0x3A0043FA: mov ecx, dword ptr [esi + 0x10] */ 232 /* test ecx, ecx */ /* 0x3A0043FD: test ecx, ecx */ 233 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 234 _cf = 0; 235 _flag_k = FK_TEST; 236 PUSH32(esp, edi); /* 0x3A0043FF: push edi */ 237 edi = MEM32(esi + 0x4); /* 0x3A004400: mov edi, dword ptr [esi + 4] */ 238 eax = MEM32(edi); /* 0x3A004403: mov eax, dword ptr [edi] */ 239 MEM32(ebp + (-0x4)) = eax; /* 0x3A004405: mov dword ptr [ebp - 4], eax */ 240 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004465; /* 0x3A004408: je 0x3a004465 */ 241 L_3A00440A: 242 ecx = eax; /* 0x3A00440A: mov ecx, eax */ 243 /* cmp eax, ecx */ /* 0x3A00440C: cmp eax, ecx */ 244 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 246 _flag_k = FK_CMP; 247 if (CMP_NE(_flag_a, _flag_b)) goto L_3A004465; /* 0x3A00440E: jne 0x3a004465 */ 248 L_3A004410: 249 /* cmp edi, edi */ /* 0x3A004410: cmp edi, edi */ 250 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 252 _flag_k = FK_CMP; 253 if (CMP_NE(_flag_a, _flag_b)) goto L_3A004465; /* 0x3A004412: jne 0x3a004465 */ 254 L_3A004414: 255 ebx = MEM32(edi + 0x4); /* 0x3A004414: mov ebx, dword ptr [edi + 4] */ 256 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3A004417: cmp ebx, dword ptr [esi + 8] */ 257 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 259 _flag_k = FK_CMP; 260 edi = ebx; /* 0x3A00441A: mov edi, ebx */ 261 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00443D; /* 0x3A00441C: je 0x3a00443d */ 262 L_3A00441E: 263 eax = MEM32(edi + 0x8); /* 0x3A00441E: mov eax, dword ptr [edi + 8] */ 264 PUSH32(esp, eax); /* 0x3A004421: push eax */ 265 ecx = esi; /* 0x3A004422: mov ecx, esi */ 266 RECOMP_ICALL(0x3A006C00u); /* 0x3A004424: call 0x3a006c00 */ /* not lifted */ 267 RECOMP_FLAGS_IN(); 268 edi = MEM32(edi); /* 0x3A004429: mov edi, dword ptr [edi] */ 269 PUSH32(esp, ebx); /* 0x3A00442B: push ebx */ 270 RECOMP_ICALL(0x3A008F76u); /* 0x3A00442C: call 0x3a008f76 */ /* not lifted */ 271 RECOMP_FLAGS_IN(); 272 eax = MEM32(esi + 0x8); /* 0x3A004431: mov eax, dword ptr [esi + 8] */ 273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 275 esp = esp + 4; /* 0x3A004434: add esp, 4 */ 276 _flag_k = FK_ADD; 277 /* cmp edi, eax */ /* 0x3A004437: cmp edi, eax */ 278 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 280 _flag_k = FK_CMP; 281 ebx = edi; /* 0x3A004439: mov ebx, edi */ 282 RECOMP_BACKEDGE(); 283 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00441E; /* 0x3A00443B: jne 0x3a00441e */ 284 L_3A00443D: 285 ecx = MEM32(esi + 0x4); /* 0x3A00443D: mov ecx, dword ptr [esi + 4] */ 286 edx = MEM32(esi + 0x8); /* 0x3A004440: mov edx, dword ptr [esi + 8] */ 287 MEM32(ecx + 0x4) = edx; /* 0x3A004443: mov dword ptr [ecx + 4], edx */ 288 eax = MEM32(esi + 0x4); /* 0x3A004446: mov eax, dword ptr [esi + 4] */ 289 MEM32(esi + 0x10) = 0; /* 0x3A004449: mov dword ptr [esi + 0x10], 0 */ 290 MEM32(eax) = eax; /* 0x3A004450: mov dword ptr [eax], eax */ 291 eax = MEM32(esi + 0x4); /* 0x3A004452: mov eax, dword ptr [esi + 4] */ 292 MEM32(eax + 0x8) = eax; /* 0x3A004455: mov dword ptr [eax + 8], eax */ 293 eax = ebp + (-0x8); /* 0x3A004458: lea eax, [ebp - 8] */ 294 PUSH32(esp, eax); /* 0x3A00445B: push eax */ 295 ecx = esi; /* 0x3A00445C: mov ecx, esi */ 296 RECOMP_ICALL(0x3A005A50u); /* 0x3A00445E: call 0x3a005a50 */ /* not lifted */ 297 RECOMP_FLAGS_IN(); 298 goto L_3A004486; /* 0x3A004463: jmp 0x3a004486 */ 299 L_3A004465: 300 /* cmp eax, edi */ /* 0x3A004465: cmp eax, edi */ 301 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 303 _flag_k = FK_CMP; 304 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004486; /* 0x3A004467: je 0x3a004486 */ 305 L_3A004469: 306 ecx = ebp + (-0x4); /* 0x3A004469: lea ecx, [ebp - 4] */ 307 ebx = eax; /* 0x3A00446C: mov ebx, eax */ 308 RECOMP_ICALL(0x3A0072D0u); /* 0x3A00446E: call 0x3a0072d0 */ /* not lifted */ 309 RECOMP_FLAGS_IN(); 310 PUSH32(esp, ebx); /* 0x3A004473: push ebx */ 311 ecx = ebp + (-0x8); /* 0x3A004474: lea ecx, [ebp - 8] */ 312 PUSH32(esp, ecx); /* 0x3A004477: push ecx */ 313 ecx = esi; /* 0x3A004478: mov ecx, esi */ 314 RECOMP_ICALL(0x3A006840u); /* 0x3A00447A: call 0x3a006840 */ /* not lifted */ 315 RECOMP_FLAGS_IN(); 316 eax = MEM32(ebp + (-0x4)); /* 0x3A00447F: mov eax, dword ptr [ebp - 4] */ 317 /* cmp eax, edi */ /* 0x3A004482: cmp eax, edi */ 318 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 320 _flag_k = FK_CMP; 321 RECOMP_BACKEDGE(); 322 if (CMP_NE(_flag_a, _flag_b)) goto L_3A004469; /* 0x3A004484: jne 0x3a004469 */ 323 L_3A004486: 324 edx = MEM32(esi + 0x4); /* 0x3A004486: mov edx, dword ptr [esi + 4] */ 325 PUSH32(esp, edx); /* 0x3A004489: push edx */ 326 RECOMP_ICALL(0x3A008F76u); /* 0x3A00448A: call 0x3a008f76 */ /* not lifted */ 327 RECOMP_FLAGS_IN(); 328 eax = MEM32(esi + 0x8); /* 0x3A00448F: mov eax, dword ptr [esi + 8] */ 329 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 330 edi = 0; /* 0x3A004492: xor edi, edi */ 331 _cf = 0; 332 _flag_k = FK_TEST; 333 PUSH32(esp, eax); /* 0x3A004494: push eax */ 334 MEM32(esi + 0x4) = edi; /* 0x3A004495: mov dword ptr [esi + 4], edi */ 335 MEM32(esi + 0x10) = edi; /* 0x3A004498: mov dword ptr [esi + 0x10], edi */ 336 RECOMP_ICALL(0x3A008F76u); /* 0x3A00449B: call 0x3a008f76 */ /* not lifted */ 337 RECOMP_FLAGS_IN(); 338 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 340 esp = esp + 8; /* 0x3A0044A0: add esp, 8 */ 341 _flag_k = FK_ADD; 342 MEM32(esi + 0x8) = edi; /* 0x3A0044A3: mov dword ptr [esi + 8], edi */ 343 edi = POP32_VAL(esp); /* 0x3A0044A6: pop edi */ 344 esi = POP32_VAL(esp); /* 0x3A0044A7: pop esi */ 345 ebx = POP32_VAL(esp); /* 0x3A0044A8: pop ebx */ 346 esp = ebp; /* 0x3A0044A9: mov esp, ebp */ 347 ebp = POP32_VAL(esp); /* 0x3A0044AB: pop ebp */ 348 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0044AC: ret */ 349 RECOMP_REGS_OUT(); 350 } 351 352 void sub_3A004486(void) { 353 int _fpu_cmp = 0; 354 uint32_t _cf = 0; 355 int _df = 1; 356 uint32_t _flag_k = FK_NONE; 357 uint32_t _flag_a = 0, _flag_b = 0; 358 uint32_t _itail_tgt = 0; 359 RECOMP_REGS_LOCALS 360 RECOMP_ENTER(0x3A004486u); 361 362 L_3A004486: 363 edx = MEM32(esi + 0x4); /* 0x3A004486: mov edx, dword ptr [esi + 4] */ 364 PUSH32(esp, edx); /* 0x3A004489: push edx */ 365 RECOMP_ICALL(0x3A008F76u); /* 0x3A00448A: call 0x3a008f76 */ /* not lifted */ 366 RECOMP_FLAGS_IN(); 367 eax = MEM32(esi + 0x8); /* 0x3A00448F: mov eax, dword ptr [esi + 8] */ 368 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 369 edi = 0; /* 0x3A004492: xor edi, edi */ 370 _cf = 0; 371 _flag_k = FK_TEST; 372 PUSH32(esp, eax); /* 0x3A004494: push eax */ 373 MEM32(esi + 0x4) = edi; /* 0x3A004495: mov dword ptr [esi + 4], edi */ 374 MEM32(esi + 0x10) = edi; /* 0x3A004498: mov dword ptr [esi + 0x10], edi */ 375 RECOMP_ICALL(0x3A008F76u); /* 0x3A00449B: call 0x3a008f76 */ /* not lifted */ 376 RECOMP_FLAGS_IN(); 377 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 378 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 379 esp = esp + 8; /* 0x3A0044A0: add esp, 8 */ 380 _flag_k = FK_ADD; 381 MEM32(esi + 0x8) = edi; /* 0x3A0044A3: mov dword ptr [esi + 8], edi */ 382 edi = POP32_VAL(esp); /* 0x3A0044A6: pop edi */ 383 esi = POP32_VAL(esp); /* 0x3A0044A7: pop esi */ 384 ebx = POP32_VAL(esp); /* 0x3A0044A8: pop ebx */ 385 esp = ebp; /* 0x3A0044A9: mov esp, ebp */ 386 ebp = POP32_VAL(esp); /* 0x3A0044AB: pop ebp */ 387 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0044AC: ret */ 388 RECOMP_REGS_OUT(); 389 } 390 391 void sub_3A0044B0(void) { 392 int _fpu_cmp = 0; 393 uint32_t _cf = 0; 394 int _df = 1; 395 uint32_t _flag_k = FK_NONE; 396 uint32_t _flag_a = 0, _flag_b = 0; 397 uint32_t _itail_tgt = 0; 398 RECOMP_REGS_LOCALS 399 RECOMP_ENTER(0x3A0044B0u); 400 401 L_3A0044B0: 402 PUSH32(esp, ebp); /* 0x3A0044B0: push ebp */ 403 ebp = esp; /* 0x3A0044B1: mov ebp, esp */ 404 PUSH32(esp, ecx); /* 0x3A0044B3: push ecx */ 405 edx = MEM32(ecx + 0xA8); /* 0x3A0044B4: mov edx, dword ptr [ecx + 0xa8] */ 406 PUSH32(esp, ebx); /* 0x3A0044BA: push ebx */ 407 PUSH32(esp, esi); /* 0x3A0044BB: push esi */ 408 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 409 esi = 0; /* 0x3A0044BC: xor esi, esi */ 410 _cf = 0; 411 _flag_k = FK_TEST; 412 /* cmp edx, esi */ /* 0x3A0044BE: cmp edx, esi */ 413 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 415 _flag_k = FK_CMP; 416 MEM32(ebp + (-0x4)) = edx; /* 0x3A0044C0: mov dword ptr [ebp - 4], edx */ 417 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0044D1; /* 0x3A0044C3: jne 0x3a0044d1 */ 418 L_3A0044C5: 419 MEM32(ecx + 0x94) = esi; /* 0x3A0044C5: mov dword ptr [ecx + 0x94], esi */ 420 esi = POP32_VAL(esp); /* 0x3A0044CB: pop esi */ 421 ebx = POP32_VAL(esp); /* 0x3A0044CC: pop ebx */ 422 esp = ebp; /* 0x3A0044CD: mov esp, ebp */ 423 ebp = POP32_VAL(esp); /* 0x3A0044CF: pop ebp */ 424 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0044D0: ret */ 425 L_3A0044D1: 426 ebx = MEM32(0x3A00D2D8); /* 0x3A0044D1: mov ebx, dword ptr [0x3a00d2d8] */ 427 /* cmp ebx, esi */ /* 0x3A0044D7: cmp ebx, esi */ 428 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 430 _flag_k = FK_CMP; 431 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0044E7; /* 0x3A0044D9: jne 0x3a0044e7 */ 432 L_3A0044DB: 433 MEM32(ecx + 0x94) = esi; /* 0x3A0044DB: mov dword ptr [ecx + 0x94], esi */ 434 esi = POP32_VAL(esp); /* 0x3A0044E1: pop esi */ 435 ebx = POP32_VAL(esp); /* 0x3A0044E2: pop ebx */ 436 esp = ebp; /* 0x3A0044E3: mov esp, ebp */ 437 ebp = POP32_VAL(esp); /* 0x3A0044E5: pop ebp */ 438 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0044E6: ret */ 439 L_3A0044E7: 440 eax = MEM32(ecx + 0xAC); /* 0x3A0044E7: mov eax, dword ptr [ecx + 0xac] */ 441 /* cmp eax, esi */ /* 0x3A0044ED: cmp eax, esi */ 442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 444 _flag_k = FK_CMP; 445 PUSH32(esp, edi); /* 0x3A0044EF: push edi */ 446 if (CMP_NE(_flag_a, _flag_b)) goto L_3A004514; /* 0x3A0044F0: jne 0x3a004514 */ 447 L_3A0044F2: 448 /* cmp MEM32(ecx + 0x78), esi */ /* 0x3A0044F2: cmp dword ptr [ecx + 0x78], esi */ 449 _flag_a = (uint32_t)(MEM32(ecx + 0x78)); _flag_b = (uint32_t)(esi); 450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 451 _flag_k = FK_CMP; 452 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004510; /* 0x3A0044F5: je 0x3a004510 */ 453 L_3A0044F7: 454 eax = MEM32(ecx + 0x7C); /* 0x3A0044F7: mov eax, dword ptr [ecx + 0x7c] */ 455 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 456 eax = eax + 1; /* 0x3A0044FA: inc eax */ 457 _flag_k = FK_INC; 458 MEM32(ecx + 0x94) = eax; /* 0x3A0044FB: mov dword ptr [ecx + 0x94], eax */ 459 MEM32(ecx + 0xC0) = 0x41C80000u; /* 0x3A004501: mov dword ptr [ecx + 0xc0], 0x41c80000 */ 460 goto L_3A00469B; /* 0x3A00450B: jmp 0x3a00469b */ 461 L_3A004510: 462 /* cmp eax, esi */ /* 0x3A004510: cmp eax, esi */ 463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 465 _flag_k = FK_CMP; 466 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004534; /* 0x3A004512: je 0x3a004534 */ 467 L_3A004514: 468 /* cmp MEM32(ecx + 0x78), esi */ /* 0x3A004514: cmp dword ptr [ecx + 0x78], esi */ 469 _flag_a = (uint32_t)(MEM32(ecx + 0x78)); _flag_b = (uint32_t)(esi); 470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 471 _flag_k = FK_CMP; 472 if (CMP_NE(_flag_a, _flag_b)) goto L_3A004534; /* 0x3A004517: jne 0x3a004534 */ 473 L_3A004519: 474 edx = MEM32(ecx + 0x7C); /* 0x3A004519: mov edx, dword ptr [ecx + 0x7c] */ 475 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 477 edx = edx + 4; /* 0x3A00451C: add edx, 4 */ 478 _flag_k = FK_ADD; 479 MEM32(ecx + 0x94) = edx; /* 0x3A00451F: mov dword ptr [ecx + 0x94], edx */ 480 MEM32(ecx + 0xC0) = 0x40A00000u; /* 0x3A004525: mov dword ptr [ecx + 0xc0], 0x40a00000 */ 481 goto L_3A00469B; /* 0x3A00452F: jmp 0x3a00469b */ 482 L_3A004534: 483 /* cmp edx, 1 */ /* 0x3A004534: cmp edx, 1 */ 484 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 486 _flag_k = FK_CMP; 487 if (CMP_G(_flag_a, _flag_b)) goto L_3A004544; /* 0x3A004537: jg 0x3a004544 */ 488 L_3A004539: 489 MEM32(ecx + 0x94) = esi; /* 0x3A004539: mov dword ptr [ecx + 0x94], esi */ 490 goto L_3A00469B; /* 0x3A00453F: jmp 0x3a00469b */ 491 L_3A004544: 492 esi = MEM32(ecx + 0x9C); /* 0x3A004544: mov esi, dword ptr [ecx + 0x9c] */ 493 edi = MEM32(ecx + 0x84); /* 0x3A00454A: mov edi, dword ptr [ecx + 0x84] */ 494 /* cmp esi, edi */ /* 0x3A004550: cmp esi, edi */ 495 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 497 _flag_k = FK_CMP; 498 edx = 0x64u; /* 0x3A004552: mov edx, 0x64 */ 499 if (CMP_LE(_flag_a, _flag_b)) goto L_3A00456E; /* 0x3A004557: jle 0x3a00456e */ 500 L_3A004559: 501 eax = edi + edi * 4; /* 0x3A004559: lea eax, [edi + edi*4] */ 502 eax = eax + eax * 4; /* 0x3A00455C: lea eax, [eax + eax*4] */ 503 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3A00455F: shl eax, 2 */ 504 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 505 eax = eax << 2u; /* 0x3A00455F: shl eax, 2 */ 506 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A004562: cdq */ 507 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)esi; /* 0x3A004563: idiv esi */ 508 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 509 else { eax = 0; edx = 0; } } 510 edx = 0xC8u; /* 0x3A004565: mov edx, 0xc8 */ 511 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 513 edx = edx - eax; /* 0x3A00456A: sub edx, eax */ 514 _flag_k = FK_CMP; 515 goto L_3A00457E; /* 0x3A00456C: jmp 0x3a00457e */ 516 L_3A00456E: 517 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_3A00459D; /* 0x3A00456E: jge 0x3a00459d */ 518 L_3A004570: 519 eax = esi + esi * 4; /* 0x3A004570: lea eax, [esi + esi*4] */ 520 eax = eax + eax * 4; /* 0x3A004573: lea eax, [eax + eax*4] */ 521 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3A004576: shl eax, 2 */ 522 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 523 eax = eax << 2u; /* 0x3A004576: shl eax, 2 */ 524 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A004579: cdq */ 525 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)edi; /* 0x3A00457A: idiv edi */ 526 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 527 else { eax = 0; edx = 0; } } 528 edx = eax; /* 0x3A00457C: mov edx, eax */ 529 L_3A00457E: 530 /* cmp edx, 0x19u */ /* 0x3A00457E: cmp edx, 0x19 */ 531 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x19u); 532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 533 _flag_k = FK_CMP; 534 if (CMP_L(_flag_a, _flag_b)) goto L_3A004691; /* 0x3A004581: jl 0x3a004691 */ 535 L_3A004587: 536 /* cmp edx, 0x64u */ /* 0x3A004587: cmp edx, 0x64 */ 537 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x64u); 538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 539 _flag_k = FK_CMP; 540 if (CMP_GE(_flag_a, _flag_b)) goto L_3A004595; /* 0x3A00458A: jge 0x3a004595 */ 541 L_3A00458C: 542 /* cmp ebx, 3 */ /* 0x3A00458C: cmp ebx, 3 */ 543 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(3); 544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 545 _flag_k = FK_CMP; 546 if (CMP_L(_flag_a, _flag_b)) goto L_3A004691; /* 0x3A00458F: jl 0x3a004691 */ 547 L_3A004595: 548 /* cmp edx, 0x96u */ /* 0x3A004595: cmp edx, 0x96 */ 549 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x96u); 550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 551 _flag_k = FK_CMP; 552 if (CMP_GE(_flag_a, _flag_b)) goto L_3A0045A6; /* 0x3A00459B: jge 0x3a0045a6 */ 553 L_3A00459D: 554 /* cmp ebx, 2 */ /* 0x3A00459D: cmp ebx, 2 */ 555 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(2); 556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 557 _flag_k = FK_CMP; 558 if (CMP_L(_flag_a, _flag_b)) goto L_3A004691; /* 0x3A0045A0: jl 0x3a004691 */ 559 L_3A0045A6: 560 /* cmp edx, 0x64u */ /* 0x3A0045A6: cmp edx, 0x64 */ 561 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x64u); 562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 563 _flag_k = FK_CMP; 564 if (CMP_GE(_flag_a, _flag_b)) goto L_3A0045C4; /* 0x3A0045A9: jge 0x3a0045c4 */ 565 L_3A0045AB: 566 SET_LO8(eax, MEM8(ecx + 0xA0)); /* 0x3A0045AB: mov al, byte ptr [ecx + 0xa0] */ 567 /* test LO8(eax), LO8(eax) */ /* 0x3A0045B1: test al, al */ 568 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 569 _cf = 0; 570 _flag_k = FK_NARROW(FK_TEST, 24); 571 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0045C4; /* 0x3A0045B3: je 0x3a0045c4 */ 572 L_3A0045B5: 573 MEM32(ecx + 0x94) = 0xAu; /* 0x3A0045B5: mov dword ptr [ecx + 0x94], 0xa */ 574 goto L_3A00469B; /* 0x3A0045BF: jmp 0x3a00469b */ 575 L_3A0045C4: 576 eax = MEM32(ecx + 0xB0); /* 0x3A0045C4: mov eax, dword ptr [ecx + 0xb0] */ 577 /* test eax, eax */ /* 0x3A0045CA: test eax, eax */ 578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 579 _cf = 0; 580 _flag_k = FK_TEST; 581 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0045F3; /* 0x3A0045CC: je 0x3a0045f3 */ 582 L_3A0045CE: 583 eax = MEM32(ecx + 0x8C); /* 0x3A0045CE: mov eax, dword ptr [ecx + 0x8c] */ 584 /* test eax, eax */ /* 0x3A0045D4: test eax, eax */ 585 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 586 _cf = 0; 587 _flag_k = FK_TEST; 588 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0045F3; /* 0x3A0045D6: jne 0x3a0045f3 */ 589 L_3A0045D8: 590 eax = MEM32(ecx + 0x7C); /* 0x3A0045D8: mov eax, dword ptr [ecx + 0x7c] */ 591 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 592 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 593 eax = eax + 7; /* 0x3A0045DB: add eax, 7 */ 594 _flag_k = FK_ADD; 595 MEM32(ecx + 0x94) = eax; /* 0x3A0045DE: mov dword ptr [ecx + 0x94], eax */ 596 MEM32(ecx + 0xC0) = 0x41A00000u; /* 0x3A0045E4: mov dword ptr [ecx + 0xc0], 0x41a00000 */ 597 goto L_3A00469B; /* 0x3A0045EE: jmp 0x3a00469b */ 598 L_3A0045F3: 599 eax = MEM32(ecx + 0x78); /* 0x3A0045F3: mov eax, dword ptr [ecx + 0x78] */ 600 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8C)); 601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 602 eax = eax - MEM32(ecx + 0x8C); /* 0x3A0045F6: sub eax, dword ptr [ecx + 0x8c] */ 603 _flag_k = FK_CMP; 604 /* cmp eax, 0xFFFFFFE2u */ /* 0x3A0045FC: cmp eax, -0x1e */ 605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFE2u); 606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 607 _flag_k = FK_CMP; 608 if (CMP_LE(_flag_a, _flag_b)) goto L_3A004615; /* 0x3A0045FF: jle 0x3a004615 */ 609 L_3A004601: 610 /* cmp eax, 0x1Eu */ /* 0x3A004601: cmp eax, 0x1e */ 611 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 613 _flag_k = FK_CMP; 614 if (CMP_GE(_flag_a, _flag_b)) goto L_3A004615; /* 0x3A004604: jge 0x3a004615 */ 615 L_3A004606: 616 MEM32(ecx + 0x94) = 0xAu; /* 0x3A004606: mov dword ptr [ecx + 0x94], 0xa */ 617 goto L_3A00469B; /* 0x3A004610: jmp 0x3a00469b */ 618 L_3A004615: 619 /* cmp eax, 0x3Cu */ /* 0x3A004615: cmp eax, 0x3c */ 620 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3Cu); 621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 622 _flag_k = FK_CMP; 623 if (CMP_L(_flag_a, _flag_b)) goto L_3A00462E; /* 0x3A004618: jl 0x3a00462e */ 624 L_3A00461A: 625 /* cmp edx, 0x85u */ /* 0x3A00461A: cmp edx, 0x85 */ 626 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x85u); 627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 628 _flag_k = FK_CMP; 629 if (CMP_LE(_flag_a, _flag_b)) goto L_3A004647; /* 0x3A004620: jle 0x3a004647 */ 630 L_3A004622: 631 MEM32(ecx + 0x94) = 0xDu; /* 0x3A004622: mov dword ptr [ecx + 0x94], 0xd */ 632 goto L_3A00469B; /* 0x3A00462C: jmp 0x3a00469b */ 633 L_3A00462E: 634 /* cmp eax, 0x1Eu */ /* 0x3A00462E: cmp eax, 0x1e */ 635 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 637 _flag_k = FK_CMP; 638 if (CMP_L(_flag_a, _flag_b)) goto L_3A004653; /* 0x3A004631: jl 0x3a004653 */ 639 L_3A004633: 640 /* cmp edx, 0x85u */ /* 0x3A004633: cmp edx, 0x85 */ 641 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x85u); 642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 643 _flag_k = FK_CMP; 644 if (CMP_LE(_flag_a, _flag_b)) goto L_3A004647; /* 0x3A004639: jle 0x3a004647 */ 645 L_3A00463B: 646 MEM32(ecx + 0x94) = 0xCu; /* 0x3A00463B: mov dword ptr [ecx + 0x94], 0xc */ 647 goto L_3A00469B; /* 0x3A004645: jmp 0x3a00469b */ 648 L_3A004647: 649 MEM32(ecx + 0x94) = 0xBu; /* 0x3A004647: mov dword ptr [ecx + 0x94], 0xb */ 650 goto L_3A00469B; /* 0x3A004651: jmp 0x3a00469b */ 651 L_3A004653: 652 /* cmp eax, 0xFFFFFFC4u */ /* 0x3A004653: cmp eax, -0x3c */ 653 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 655 _flag_k = FK_CMP; 656 if (CMP_G(_flag_a, _flag_b)) goto L_3A00466C; /* 0x3A004656: jg 0x3a00466c */ 657 L_3A004658: 658 /* cmp edx, 0x85u */ /* 0x3A004658: cmp edx, 0x85 */ 659 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x85u); 660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 661 _flag_k = FK_CMP; 662 if (CMP_LE(_flag_a, _flag_b)) goto L_3A004685; /* 0x3A00465E: jle 0x3a004685 */ 663 L_3A004660: 664 MEM32(ecx + 0x94) = 0x10u; /* 0x3A004660: mov dword ptr [ecx + 0x94], 0x10 */ 665 goto L_3A00469B; /* 0x3A00466A: jmp 0x3a00469b */ 666 L_3A00466C: 667 /* cmp eax, 0xFFFFFFE2u */ /* 0x3A00466C: cmp eax, -0x1e */ 668 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFE2u); 669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 670 _flag_k = FK_CMP; 671 if (CMP_G(_flag_a, _flag_b)) goto L_3A004691; /* 0x3A00466F: jg 0x3a004691 */ 672 L_3A004671: 673 /* cmp edx, 0x85u */ /* 0x3A004671: cmp edx, 0x85 */ 674 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x85u); 675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 676 _flag_k = FK_CMP; 677 if (CMP_LE(_flag_a, _flag_b)) goto L_3A004685; /* 0x3A004677: jle 0x3a004685 */ 678 L_3A004679: 679 MEM32(ecx + 0x94) = 0xFu; /* 0x3A004679: mov dword ptr [ecx + 0x94], 0xf */ 680 goto L_3A00469B; /* 0x3A004683: jmp 0x3a00469b */ 681 L_3A004685: 682 MEM32(ecx + 0x94) = 0xEu; /* 0x3A004685: mov dword ptr [ecx + 0x94], 0xe */ 683 goto L_3A00469B; /* 0x3A00468F: jmp 0x3a00469b */ 684 L_3A004691: 685 MEM32(ecx + 0x94) = 0; /* 0x3A004691: mov dword ptr [ecx + 0x94], 0 */ 686 L_3A00469B: 687 edx = MEM32(ecx + 0x78); /* 0x3A00469B: mov edx, dword ptr [ecx + 0x78] */ 688 MEM32(ecx + 0xAC) = edx; /* 0x3A00469E: mov dword ptr [ecx + 0xac], edx */ 689 edx = MEM32(ebp + (-0x4)); /* 0x3A0046A4: mov edx, dword ptr [ebp - 4] */ 690 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 691 eax = 0; /* 0x3A0046A7: xor eax, eax */ 692 _cf = 0; 693 _flag_k = FK_TEST; 694 /* cmp edx, 1 */ /* 0x3A0046A9: cmp edx, 1 */ 695 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 697 _flag_k = FK_CMP; 698 MEM32(ecx + 0x78) = eax; /* 0x3A0046AC: mov dword ptr [ecx + 0x78], eax */ 699 edi = POP32_VAL(esp); /* 0x3A0046AF: pop edi */ 700 if (CMP_LE(_flag_a, _flag_b)) goto L_3A0046E2; /* 0x3A0046B0: jle 0x3a0046e2 */ 701 L_3A0046B2: 702 edx = MEM32(ecx + 0x98); /* 0x3A0046B2: mov edx, dword ptr [ecx + 0x98] */ 703 MEM32(ecx + 0xA4) = edx; /* 0x3A0046B8: mov dword ptr [ecx + 0xa4], edx */ 704 edx = MEM32(ecx + 0x8C); /* 0x3A0046BE: mov edx, dword ptr [ecx + 0x8c] */ 705 MEM32(ecx + 0xB0) = edx; /* 0x3A0046C4: mov dword ptr [ecx + 0xb0], edx */ 706 edx = MEM32(ecx + 0x90); /* 0x3A0046CA: mov edx, dword ptr [ecx + 0x90] */ 707 MEM32(ecx + 0xB4) = edx; /* 0x3A0046D0: mov dword ptr [ecx + 0xb4], edx */ 708 edx = MEM32(ecx + 0x9C); /* 0x3A0046D6: mov edx, dword ptr [ecx + 0x9c] */ 709 MEM32(ecx + 0xB8) = edx; /* 0x3A0046DC: mov dword ptr [ecx + 0xb8], edx */ 710 L_3A0046E2: 711 esi = POP32_VAL(esp); /* 0x3A0046E2: pop esi */ 712 MEM32(ecx + 0x8C) = eax; /* 0x3A0046E3: mov dword ptr [ecx + 0x8c], eax */ 713 MEM32(ecx + 0x90) = eax; /* 0x3A0046E9: mov dword ptr [ecx + 0x90], eax */ 714 MEM32(ecx + 0x9C) = eax; /* 0x3A0046EF: mov dword ptr [ecx + 0x9c], eax */ 715 ebx = POP32_VAL(esp); /* 0x3A0046F5: pop ebx */ 716 esp = ebp; /* 0x3A0046F6: mov esp, ebp */ 717 ebp = POP32_VAL(esp); /* 0x3A0046F8: pop ebp */ 718 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0046F9: ret */ 719 RECOMP_REGS_OUT(); 720 } 721 722 void sub_3A00469B(void) { 723 int _fpu_cmp = 0; 724 uint32_t _cf = 0; 725 int _df = 1; 726 uint32_t _flag_k = FK_NONE; 727 uint32_t _flag_a = 0, _flag_b = 0; 728 uint32_t _itail_tgt = 0; 729 RECOMP_REGS_LOCALS 730 RECOMP_ENTER(0x3A00469Bu); 731 732 L_3A00469B: 733 edx = MEM32(ecx + 0x78); /* 0x3A00469B: mov edx, dword ptr [ecx + 0x78] */ 734 MEM32(ecx + 0xAC) = edx; /* 0x3A00469E: mov dword ptr [ecx + 0xac], edx */ 735 edx = MEM32(ebp + (-0x4)); /* 0x3A0046A4: mov edx, dword ptr [ebp - 4] */ 736 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 737 eax = 0; /* 0x3A0046A7: xor eax, eax */ 738 _cf = 0; 739 _flag_k = FK_TEST; 740 /* cmp edx, 1 */ /* 0x3A0046A9: cmp edx, 1 */ 741 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 743 _flag_k = FK_CMP; 744 MEM32(ecx + 0x78) = eax; /* 0x3A0046AC: mov dword ptr [ecx + 0x78], eax */ 745 edi = POP32_VAL(esp); /* 0x3A0046AF: pop edi */ 746 if (CMP_LE(_flag_a, _flag_b)) goto L_3A0046E2; /* 0x3A0046B0: jle 0x3a0046e2 */ 747 L_3A0046B2: 748 edx = MEM32(ecx + 0x98); /* 0x3A0046B2: mov edx, dword ptr [ecx + 0x98] */ 749 MEM32(ecx + 0xA4) = edx; /* 0x3A0046B8: mov dword ptr [ecx + 0xa4], edx */ 750 edx = MEM32(ecx + 0x8C); /* 0x3A0046BE: mov edx, dword ptr [ecx + 0x8c] */ 751 MEM32(ecx + 0xB0) = edx; /* 0x3A0046C4: mov dword ptr [ecx + 0xb0], edx */ 752 edx = MEM32(ecx + 0x90); /* 0x3A0046CA: mov edx, dword ptr [ecx + 0x90] */ 753 MEM32(ecx + 0xB4) = edx; /* 0x3A0046D0: mov dword ptr [ecx + 0xb4], edx */ 754 edx = MEM32(ecx + 0x9C); /* 0x3A0046D6: mov edx, dword ptr [ecx + 0x9c] */ 755 MEM32(ecx + 0xB8) = edx; /* 0x3A0046DC: mov dword ptr [ecx + 0xb8], edx */ 756 L_3A0046E2: 757 esi = POP32_VAL(esp); /* 0x3A0046E2: pop esi */ 758 MEM32(ecx + 0x8C) = eax; /* 0x3A0046E3: mov dword ptr [ecx + 0x8c], eax */ 759 MEM32(ecx + 0x90) = eax; /* 0x3A0046E9: mov dword ptr [ecx + 0x90], eax */ 760 MEM32(ecx + 0x9C) = eax; /* 0x3A0046EF: mov dword ptr [ecx + 0x9c], eax */ 761 ebx = POP32_VAL(esp); /* 0x3A0046F5: pop ebx */ 762 esp = ebp; /* 0x3A0046F6: mov esp, ebp */ 763 ebp = POP32_VAL(esp); /* 0x3A0046F8: pop ebp */ 764 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0046F9: ret */ 765 RECOMP_REGS_OUT(); 766 } 767 768 void sub_3A004700(void) { 769 int _fpu_cmp = 0; 770 uint32_t _cf = 0; 771 int _df = 1; 772 uint32_t _flag_k = FK_NONE; 773 uint32_t _flag_a = 0, _flag_b = 0; 774 uint32_t _itail_tgt = 0; 775 RECOMP_REGS_LOCALS 776 RECOMP_ENTER(0x3A004700u); 777 778 L_3A004700: 779 #if defined(RECOMP_PORTABLE) && !defined(_WIN32) 780 if (!linux_music_worker) { linux_music_mute(ecx, MEM8(esp + 4)); esp += 8; RECOMP_REGS_OUT(); return; } 781 #endif 782 PUSH32(esp, ebp); /* 0x3A004700: push ebp */ 783 ebp = esp; /* 0x3A004701: mov ebp, esp */ 784 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x3A004703: mov al, byte ptr [ebp + 8] */ 785 /* test LO8(eax), LO8(eax) */ /* 0x3A004706: test al, al */ 786 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 787 _cf = 0; 788 _flag_k = FK_NARROW(FK_TEST, 24); 789 PUSH32(esp, edi); /* 0x3A004708: push edi */ 790 edi = ecx; /* 0x3A004709: mov edi, ecx */ 791 MEM8(edi + 0x108) = (uint8_t)(LO8(eax)); /* 0x3A00470B: mov byte ptr [edi + 0x108], al */ 792 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004766; /* 0x3A004711: je 0x3a004766 */ 793 L_3A004713: 794 ecx = MEM32(0x3A00D2DC); /* 0x3A004713: mov ecx, dword ptr [0x3a00d2dc] */ 795 /* test ecx, ecx */ /* 0x3A004719: test ecx, ecx */ 796 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 797 _cf = 0; 798 _flag_k = FK_TEST; 799 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00475F; /* 0x3A00471B: je 0x3a00475f */ 800 L_3A00471D: 801 eax = MEM32(edi + 0x60); /* 0x3A00471D: mov eax, dword ptr [edi + 0x60] */ 802 /* test eax, eax */ /* 0x3A004720: test eax, eax */ 803 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 804 _cf = 0; 805 _flag_k = FK_TEST; 806 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00475F; /* 0x3A004722: je 0x3a00475f */ 807 L_3A004724: 808 PUSH32(esp, esi); /* 0x3A004724: push esi */ 809 PUSH32(esp, 1); /* 0x3A004725: push 1 */ 810 PUSH32(esp, 1); /* 0x3A004727: push 1 */ 811 RECOMP_ICALL(MEM32(0x3A00A164)); /* 0x3A004729: call dword ptr [0x3a00a164] */ 812 RECOMP_FLAGS_IN(); 813 esi = MEM32(0x3A00D2DC); /* 0x3A00472F: mov esi, dword ptr [0x3a00d2dc] */ 814 /* test esi, esi */ /* 0x3A004735: test esi, esi */ 815 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 816 _cf = 0; 817 _flag_k = FK_TEST; 818 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00474A; /* 0x3A004737: je 0x3a00474a */ 819 L_3A004739: 820 ecx = esi; /* 0x3A004739: mov ecx, esi */ 821 RECOMP_ICALL(MEM32(0x3A00A168)); /* 0x3A00473B: call dword ptr [0x3a00a168] */ 822 RECOMP_FLAGS_IN(); 823 PUSH32(esp, esi); /* 0x3A004741: push esi */ 824 RECOMP_ICALL(0x3A008F76u); /* 0x3A004742: call 0x3a008f76 */ /* not lifted */ 825 RECOMP_FLAGS_IN(); 826 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 828 esp = esp + 4; /* 0x3A004747: add esp, 4 */ 829 _flag_k = FK_ADD; 830 L_3A00474A: 831 MEM32(0x3A00D2DC) = 0; /* 0x3A00474A: mov dword ptr [0x3a00d2dc], 0 */ 832 ecx = MEM32(edi + 0x60); /* 0x3A004754: mov ecx, dword ptr [edi + 0x60] */ 833 PUSH32(esp, 0); /* 0x3A004757: push 0 */ 834 RECOMP_ICALL(0x3A008D40u); /* 0x3A004759: call 0x3a008d40 */ /* not lifted */ 835 RECOMP_FLAGS_IN(); 836 esi = POP32_VAL(esp); /* 0x3A00475E: pop esi */ 837 L_3A00475F: 838 MEM32(edi + 0x74) = 0xFFFFFFFFu; /* 0x3A00475F: mov dword ptr [edi + 0x74], 0xffffffff */ 839 L_3A004766: 840 edi = POP32_VAL(esp); /* 0x3A004766: pop edi */ 841 ebp = POP32_VAL(esp); /* 0x3A004767: pop ebp */ 842 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A004768: ret 4 */ 843 RECOMP_REGS_OUT(); 844 } 845 846 void sub_3A004770(void) { 847 int _fpu_cmp = 0; 848 uint32_t _cf = 0; 849 int _df = 1; 850 uint32_t _flag_k = FK_NONE; 851 uint32_t _flag_a = 0, _flag_b = 0; 852 uint32_t _itail_tgt = 0; 853 RECOMP_REGS_LOCALS 854 RECOMP_ENTER(0x3A004770u); 855 856 L_3A004770: 857 PUSH32(esp, ebp); /* 0x3A004770: push ebp */ 858 ebp = esp; /* 0x3A004771: mov ebp, esp */ 859 PUSH32(esp, 0xFFFFFFFFu); /* 0x3A004773: push -1 */ 860 PUSH32(esp, 0x3A0092F3u); /* 0x3A004775: push 0x3a0092f3 */ 861 eax = MEM32(FS_BASE + (0)); /* 0x3A00477A: mov eax, dword ptr fs:[0] */ 862 PUSH32(esp, eax); /* 0x3A004780: push eax */ 863 MEM32(FS_BASE + (0)) = esp; /* 0x3A004781: mov dword ptr fs:[0], esp */ 864 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x148u); 865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 866 esp = esp - 0x148u; /* 0x3A004788: sub esp, 0x148 */ 867 _flag_k = FK_CMP; 868 eax = MEM32(0x3A00D2DC); /* 0x3A00478E: mov eax, dword ptr [0x3a00d2dc] */ 869 PUSH32(esp, esi); /* 0x3A004793: push esi */ 870 PUSH32(esp, edi); /* 0x3A004794: push edi */ 871 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 872 edi = 0; /* 0x3A004795: xor edi, edi */ 873 _cf = 0; 874 _flag_k = FK_TEST; 875 /* cmp eax, edi */ /* 0x3A004797: cmp eax, edi */ 876 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 878 _flag_k = FK_CMP; 879 esi = ecx; /* 0x3A004799: mov esi, ecx */ 880 MEM32(ebp + (-0x14)) = edi; /* 0x3A00479B: mov dword ptr [ebp - 0x14], edi */ 881 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0049F4; /* 0x3A00479E: jne 0x3a0049f4 */ 882 L_3A0047A4: 883 RECOMP_ICALL(MEM32(0x3A00A0CC)); /* 0x3A0047A4: call dword ptr [0x3a00a0cc] */ 884 RECOMP_FLAGS_IN(); 885 PUSH32(esp, eax); /* 0x3A0047AA: push eax */ 886 eax = ebp + (-0x154); /* 0x3A0047AB: lea eax, [ebp - 0x154] */ 887 PUSH32(esp, 0x3A00D198u); /* 0x3A0047B1: push 0x3a00d198 */ 888 PUSH32(esp, eax); /* 0x3A0047B6: push eax */ 889 RECOMP_ICALL(MEM32(0x3A00A058)); /* 0x3A0047B7: call dword ptr [0x3a00a058] */ 890 RECOMP_FLAGS_IN(); 891 ecx = ebp + (-0x4C); /* 0x3A0047BD: lea ecx, [ebp - 0x4c] */ 892 PUSH32(esp, ecx); /* 0x3A0047C0: push ecx */ 893 edx = ebp + (-0x154); /* 0x3A0047C1: lea edx, [ebp - 0x154] */ 894 PUSH32(esp, edx); /* 0x3A0047C7: push edx */ 895 RECOMP_ICALL(MEM32(0x3A00A038)); /* 0x3A0047C8: call dword ptr [0x3a00a038] */ 896 RECOMP_FLAGS_IN(); 897 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 898 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 899 esp = esp + 0x14u; /* 0x3A0047CE: add esp, 0x14 */ 900 _flag_k = FK_ADD; 901 /* test eax, eax */ /* 0x3A0047D1: test eax, eax */ 902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 903 _cf = 0; 904 _flag_k = FK_TEST; 905 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00486F; /* 0x3A0047D3: jne 0x3a00486f */ 906 L_3A0047D9: 907 /* cmp MEM32(esi + 0x60), edi */ /* 0x3A0047D9: cmp dword ptr [esi + 0x60], edi */ 908 _flag_a = (uint32_t)(MEM32(esi + 0x60)); _flag_b = (uint32_t)(edi); 909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 910 _flag_k = FK_CMP; 911 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00486F; /* 0x3A0047DC: je 0x3a00486f */ 912 L_3A0047E2: 913 PUSH32(esp, ebx); /* 0x3A0047E2: push ebx */ 914 PUSH32(esp, 0xD0u); /* 0x3A0047E3: push 0xd0 */ 915 RECOMP_ICALL(0x3A008FD0u); /* 0x3A0047E8: call 0x3a008fd0 */ /* not lifted */ 916 RECOMP_FLAGS_IN(); 917 ebx = eax; /* 0x3A0047ED: mov ebx, eax */ 918 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 919 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 920 esp = esp + 4; /* 0x3A0047EF: add esp, 4 */ 921 _flag_k = FK_ADD; 922 MEM32(ebp + (-0x28)) = ebx; /* 0x3A0047F2: mov dword ptr [ebp - 0x28], ebx */ 923 /* cmp ebx, edi */ /* 0x3A0047F5: cmp ebx, edi */ 924 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 926 _flag_k = FK_CMP; 927 MEM32(ebp + (-0x4)) = edi; /* 0x3A0047F7: mov dword ptr [ebp - 4], edi */ 928 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00484F; /* 0x3A0047FA: je 0x3a00484f */ 929 L_3A0047FC: 930 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3A0047FC: mov al, byte ptr [ebp - 0xd] */ 931 PUSH32(esp, edi); /* 0x3A0047FF: push edi */ 932 ecx = ebp + (-0x24); /* 0x3A004800: lea ecx, [ebp - 0x24] */ 933 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(eax)); /* 0x3A004803: mov byte ptr [ebp - 0x24], al */ 934 RECOMP_ICALL(MEM32(0x3A00A008)); /* 0x3A004806: call dword ptr [0x3a00a008] */ 935 RECOMP_FLAGS_IN(); 936 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 937 ecx = ecx | 0xFFFFFFFFu; /* 0x3A00480C: or ecx, 0xffffffff */ 938 _cf = 0; 939 _flag_k = FK_TEST; 940 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 941 eax = 0; /* 0x3A00480F: xor eax, eax */ 942 _cf = 0; 943 _flag_k = FK_TEST; 944 edi = ebp + (-0x154); /* 0x3A004811: lea edi, [ebp - 0x154] */ 945 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3A004817: repne scasb al, byte ptr es:[edi] */ 946 ecx = ~ecx; /* 0x3A004819: not ecx */ 947 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 948 ecx = ecx - 1; /* 0x3A00481B: dec ecx */ 949 _flag_k = FK_DEC; 950 PUSH32(esp, ecx); /* 0x3A00481C: push ecx */ 951 ecx = ebp + (-0x154); /* 0x3A00481D: lea ecx, [ebp - 0x154] */ 952 PUSH32(esp, ecx); /* 0x3A004823: push ecx */ 953 ecx = ebp + (-0x24); /* 0x3A004824: lea ecx, [ebp - 0x24] */ 954 RECOMP_ICALL(MEM32(0x3A00A00C)); /* 0x3A004827: call dword ptr [0x3a00a00c] */ 955 RECOMP_FLAGS_IN(); 956 MEM32(ebp + (-0x14)) = 1; /* 0x3A00482D: mov dword ptr [ebp - 0x14], 1 */ 957 ecx = MEM32(esi + 0x60); /* 0x3A004834: mov ecx, dword ptr [esi + 0x60] */ 958 edx = ebp + (-0x24); /* 0x3A004837: lea edx, [ebp - 0x24] */ 959 PUSH32(esp, edx); /* 0x3A00483A: push edx */ 960 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3A00483B: mov byte ptr [ebp - 4], 1 */ 961 RECOMP_ICALL(0x3A008420u); /* 0x3A00483F: call 0x3a008420 */ /* not lifted */ 962 RECOMP_FLAGS_IN(); 963 PUSH32(esp, eax); /* 0x3A004844: push eax */ 964 ecx = ebx; /* 0x3A004845: mov ecx, ebx */ 965 RECOMP_ICALL(MEM32(0x3A00A15C)); /* 0x3A004847: call dword ptr [0x3a00a15c] */ 966 RECOMP_FLAGS_IN(); 967 goto L_3A004851; /* 0x3A00484D: jmp 0x3a004851 */ 968 L_3A00484F: 969 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 970 eax = 0; /* 0x3A00484F: xor eax, eax */ 971 _cf = 0; 972 _flag_k = FK_TEST; 973 L_3A004851: 974 MEM32(0x3A00D2DC) = eax; /* 0x3A004851: mov dword ptr [0x3a00d2dc], eax */ 975 /* test MEM8(ebp + (-0x14)), 1 */ /* 0x3A004856: test byte ptr [ebp - 0x14], 1 */ 976 _flag_a = (uint32_t)(MEM8(ebp + (-0x14))) << 24; _flag_b = (uint32_t)(1) << 24; 977 _cf = 0; 978 _flag_k = FK_NARROW(FK_TEST, 24); 979 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3A00485A: mov dword ptr [ebp - 4], 0xffffffff */ 980 ebx = POP32_VAL(esp); /* 0x3A004861: pop ebx */ 981 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00486F; /* 0x3A004862: je 0x3a00486f */ 982 L_3A004864: 983 PUSH32(esp, 1); /* 0x3A004864: push 1 */ 984 ecx = ebp + (-0x24); /* 0x3A004866: lea ecx, [ebp - 0x24] */ 985 RECOMP_ICALL(MEM32(0x3A00A008)); /* 0x3A004869: call dword ptr [0x3a00a008] */ 986 RECOMP_FLAGS_IN(); 987 L_3A00486F: 988 eax = MEM32(0x3A00D2DC); /* 0x3A00486F: mov eax, dword ptr [0x3a00d2dc] */ 989 /* test eax, eax */ /* 0x3A004874: test eax, eax */ 990 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 991 _cf = 0; 992 _flag_k = FK_TEST; 993 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0049F4; /* 0x3A004876: je 0x3a0049f4 */ 994 L_3A00487C: 995 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 996 eax = eax | 0xFFFFFFFFu; /* 0x3A00487C: or eax, 0xffffffff */ 997 _cf = 0; 998 _flag_k = FK_TEST; 999 edi = esi + 0xC4; /* 0x3A00487F: lea edi, [esi + 0xc4] */ 1000 ecx = 0x11u; /* 0x3A004885: mov ecx, 0x11 */ 1001 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3A00488A: 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; } 1002 eax = MEM32(0x3A00D2DC); /* 0x3A00488C: mov eax, dword ptr [0x3a00d2dc] */ 1003 ecx = MEM32(eax + 0x18); /* 0x3A004891: mov ecx, dword ptr [eax + 0x18] */ 1004 /* test ecx, ecx */ /* 0x3A004894: test ecx, ecx */ 1005 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1006 _cf = 0; 1007 _flag_k = FK_TEST; 1008 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0049F4; /* 0x3A004896: je 0x3a0049f4 */ 1009 L_3A00489C: 1010 edi = MEM32(0x3A00A150); /* 0x3A00489C: mov edi, dword ptr [0x3a00a150] */ 1011 PUSH32(esp, 0x3A00D180u); /* 0x3A0048A2: push 0x3a00d180 */ 1012 RECOMP_ICALL(edi); /* 0x3A0048A7: call edi */ 1013 RECOMP_FLAGS_IN(); 1014 MEM32(esi + 0xC8) = eax; /* 0x3A0048A9: mov dword ptr [esi + 0xc8], eax */ 1015 ecx = MEM32(0x3A00D2DC); /* 0x3A0048AF: mov ecx, dword ptr [0x3a00d2dc] */ 1016 ecx = MEM32(ecx + 0x18); /* 0x3A0048B5: mov ecx, dword ptr [ecx + 0x18] */ 1017 PUSH32(esp, 0x3A00D16Cu); /* 0x3A0048B8: push 0x3a00d16c */ 1018 RECOMP_ICALL(edi); /* 0x3A0048BD: call edi */ 1019 RECOMP_FLAGS_IN(); 1020 MEM32(esi + 0xCC) = eax; /* 0x3A0048BF: mov dword ptr [esi + 0xcc], eax */ 1021 edx = MEM32(0x3A00D2DC); /* 0x3A0048C5: mov edx, dword ptr [0x3a00d2dc] */ 1022 ecx = MEM32(edx + 0x18); /* 0x3A0048CB: mov ecx, dword ptr [edx + 0x18] */ 1023 PUSH32(esp, 0x3A00D158u); /* 0x3A0048CE: push 0x3a00d158 */ 1024 RECOMP_ICALL(edi); /* 0x3A0048D3: call edi */ 1025 RECOMP_FLAGS_IN(); 1026 MEM32(esi + 0xD0) = eax; /* 0x3A0048D5: mov dword ptr [esi + 0xd0], eax */ 1027 eax = MEM32(0x3A00D2DC); /* 0x3A0048DB: mov eax, dword ptr [0x3a00d2dc] */ 1028 ecx = MEM32(eax + 0x18); /* 0x3A0048E0: mov ecx, dword ptr [eax + 0x18] */ 1029 PUSH32(esp, 0x3A00D144u); /* 0x3A0048E3: push 0x3a00d144 */ 1030 RECOMP_ICALL(edi); /* 0x3A0048E8: call edi */ 1031 RECOMP_FLAGS_IN(); 1032 MEM32(esi + 0xD4) = eax; /* 0x3A0048EA: mov dword ptr [esi + 0xd4], eax */ 1033 ecx = MEM32(0x3A00D2DC); /* 0x3A0048F0: mov ecx, dword ptr [0x3a00d2dc] */ 1034 ecx = MEM32(ecx + 0x18); /* 0x3A0048F6: mov ecx, dword ptr [ecx + 0x18] */ 1035 PUSH32(esp, 0x3A00D130u); /* 0x3A0048F9: push 0x3a00d130 */ 1036 RECOMP_ICALL(edi); /* 0x3A0048FE: call edi */ 1037 RECOMP_FLAGS_IN(); 1038 MEM32(esi + 0xD8) = eax; /* 0x3A004900: mov dword ptr [esi + 0xd8], eax */ 1039 edx = MEM32(0x3A00D2DC); /* 0x3A004906: mov edx, dword ptr [0x3a00d2dc] */ 1040 ecx = MEM32(edx + 0x18); /* 0x3A00490C: mov ecx, dword ptr [edx + 0x18] */ 1041 PUSH32(esp, 0x3A00D11Cu); /* 0x3A00490F: push 0x3a00d11c */ 1042 RECOMP_ICALL(edi); /* 0x3A004914: call edi */ 1043 RECOMP_FLAGS_IN(); 1044 MEM32(esi + 0xDC) = eax; /* 0x3A004916: mov dword ptr [esi + 0xdc], eax */ 1045 eax = MEM32(0x3A00D2DC); /* 0x3A00491C: mov eax, dword ptr [0x3a00d2dc] */ 1046 ecx = MEM32(eax + 0x18); /* 0x3A004921: mov ecx, dword ptr [eax + 0x18] */ 1047 PUSH32(esp, 0x3A00D104u); /* 0x3A004924: push 0x3a00d104 */ 1048 RECOMP_ICALL(edi); /* 0x3A004929: call edi */ 1049 RECOMP_FLAGS_IN(); 1050 MEM32(esi + 0xE0) = eax; /* 0x3A00492B: mov dword ptr [esi + 0xe0], eax */ 1051 ecx = MEM32(0x3A00D2DC); /* 0x3A004931: mov ecx, dword ptr [0x3a00d2dc] */ 1052 ecx = MEM32(ecx + 0x18); /* 0x3A004937: mov ecx, dword ptr [ecx + 0x18] */ 1053 PUSH32(esp, 0x3A00D104u); /* 0x3A00493A: push 0x3a00d104 */ 1054 RECOMP_ICALL(edi); /* 0x3A00493F: call edi */ 1055 RECOMP_FLAGS_IN(); 1056 MEM32(esi + 0xE4) = eax; /* 0x3A004941: mov dword ptr [esi + 0xe4], eax */ 1057 edx = MEM32(0x3A00D2DC); /* 0x3A004947: mov edx, dword ptr [0x3a00d2dc] */ 1058 ecx = MEM32(edx + 0x18); /* 0x3A00494D: mov ecx, dword ptr [edx + 0x18] */ 1059 PUSH32(esp, 0x3A00D104u); /* 0x3A004950: push 0x3a00d104 */ 1060 RECOMP_ICALL(edi); /* 0x3A004955: call edi */ 1061 RECOMP_FLAGS_IN(); 1062 MEM32(esi + 0xE8) = eax; /* 0x3A004957: mov dword ptr [esi + 0xe8], eax */ 1063 eax = MEM32(0x3A00D2DC); /* 0x3A00495D: mov eax, dword ptr [0x3a00d2dc] */ 1064 ecx = MEM32(eax + 0x18); /* 0x3A004962: mov ecx, dword ptr [eax + 0x18] */ 1065 PUSH32(esp, 0x3A00D0F4u); /* 0x3A004965: push 0x3a00d0f4 */ 1066 RECOMP_ICALL(edi); /* 0x3A00496A: call edi */ 1067 RECOMP_FLAGS_IN(); 1068 MEM32(esi + 0xEC) = eax; /* 0x3A00496C: mov dword ptr [esi + 0xec], eax */ 1069 ecx = MEM32(0x3A00D2DC); /* 0x3A004972: mov ecx, dword ptr [0x3a00d2dc] */ 1070 ecx = MEM32(ecx + 0x18); /* 0x3A004978: mov ecx, dword ptr [ecx + 0x18] */ 1071 PUSH32(esp, 0x3A00D0DCu); /* 0x3A00497B: push 0x3a00d0dc */ 1072 RECOMP_ICALL(edi); /* 0x3A004980: call edi */ 1073 RECOMP_FLAGS_IN(); 1074 MEM32(esi + 0xF0) = eax; /* 0x3A004982: mov dword ptr [esi + 0xf0], eax */ 1075 edx = MEM32(0x3A00D2DC); /* 0x3A004988: mov edx, dword ptr [0x3a00d2dc] */ 1076 ecx = MEM32(edx + 0x18); /* 0x3A00498E: mov ecx, dword ptr [edx + 0x18] */ 1077 PUSH32(esp, 0x3A00D0C0u); /* 0x3A004991: push 0x3a00d0c0 */ 1078 RECOMP_ICALL(edi); /* 0x3A004996: call edi */ 1079 RECOMP_FLAGS_IN(); 1080 MEM32(esi + 0xF4) = eax; /* 0x3A004998: mov dword ptr [esi + 0xf4], eax */ 1081 eax = MEM32(0x3A00D2DC); /* 0x3A00499E: mov eax, dword ptr [0x3a00d2dc] */ 1082 ecx = MEM32(eax + 0x18); /* 0x3A0049A3: mov ecx, dword ptr [eax + 0x18] */ 1083 PUSH32(esp, 0x3A00D0A4u); /* 0x3A0049A6: push 0x3a00d0a4 */ 1084 RECOMP_ICALL(edi); /* 0x3A0049AB: call edi */ 1085 RECOMP_FLAGS_IN(); 1086 MEM32(esi + 0xF8) = eax; /* 0x3A0049AD: mov dword ptr [esi + 0xf8], eax */ 1087 ecx = MEM32(0x3A00D2DC); /* 0x3A0049B3: mov ecx, dword ptr [0x3a00d2dc] */ 1088 ecx = MEM32(ecx + 0x18); /* 0x3A0049B9: mov ecx, dword ptr [ecx + 0x18] */ 1089 PUSH32(esp, 0x3A00D090u); /* 0x3A0049BC: push 0x3a00d090 */ 1090 RECOMP_ICALL(edi); /* 0x3A0049C1: call edi */ 1091 RECOMP_FLAGS_IN(); 1092 MEM32(esi + 0xFC) = eax; /* 0x3A0049C3: mov dword ptr [esi + 0xfc], eax */ 1093 edx = MEM32(0x3A00D2DC); /* 0x3A0049C9: mov edx, dword ptr [0x3a00d2dc] */ 1094 ecx = MEM32(edx + 0x18); /* 0x3A0049CF: mov ecx, dword ptr [edx + 0x18] */ 1095 PUSH32(esp, 0x3A00D074u); /* 0x3A0049D2: push 0x3a00d074 */ 1096 RECOMP_ICALL(edi); /* 0x3A0049D7: call edi */ 1097 RECOMP_FLAGS_IN(); 1098 MEM32(esi + 0x100) = eax; /* 0x3A0049D9: mov dword ptr [esi + 0x100], eax */ 1099 eax = MEM32(0x3A00D2DC); /* 0x3A0049DF: mov eax, dword ptr [0x3a00d2dc] */ 1100 ecx = MEM32(eax + 0x18); /* 0x3A0049E4: mov ecx, dword ptr [eax + 0x18] */ 1101 PUSH32(esp, 0x3A00D05Cu); /* 0x3A0049E7: push 0x3a00d05c */ 1102 RECOMP_ICALL(edi); /* 0x3A0049EC: call edi */ 1103 RECOMP_FLAGS_IN(); 1104 MEM32(esi + 0x104) = eax; /* 0x3A0049EE: mov dword ptr [esi + 0x104], eax */ 1105 L_3A0049F4: 1106 ecx = MEM32(ebp + (-0xC)); /* 0x3A0049F4: mov ecx, dword ptr [ebp - 0xc] */ 1107 edi = POP32_VAL(esp); /* 0x3A0049F7: pop edi */ 1108 esi = POP32_VAL(esp); /* 0x3A0049F8: pop esi */ 1109 MEM32(FS_BASE + (0)) = ecx; /* 0x3A0049F9: mov dword ptr fs:[0], ecx */ 1110 esp = ebp; /* 0x3A004A00: mov esp, ebp */ 1111 ebp = POP32_VAL(esp); /* 0x3A004A02: pop ebp */ 1112 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004A03: ret */ 1113 RECOMP_REGS_OUT(); 1114 } 1115 1116 void sub_3A004A10(void) { 1117 int _fpu_cmp = 0; 1118 uint32_t _cf = 0; 1119 int _df = 1; 1120 uint32_t _flag_k = FK_NONE; 1121 uint32_t _flag_a = 0, _flag_b = 0; 1122 uint32_t _itail_tgt = 0; 1123 RECOMP_REGS_LOCALS 1124 RECOMP_ENTER(0x3A004A10u); 1125 1126 L_3A004A10: 1127 #if defined(RECOMP_PORTABLE) && !defined(_WIN32) 1128 if (!linux_music_worker) { linux_music_event(ecx, MEM32(esp + 4)); esp += 8; RECOMP_REGS_OUT(); return; } 1129 #endif 1130 PUSH32(esp, ebp); /* 0x3A004A10: push ebp */ 1131 ebp = esp; /* 0x3A004A11: mov ebp, esp */ 1132 PUSH32(esp, esi); /* 0x3A004A13: push esi */ 1133 esi = ecx; /* 0x3A004A14: mov esi, ecx */ 1134 SET_LO8(eax, MEM8(esi + 0x108)); /* 0x3A004A16: mov al, byte ptr [esi + 0x108] */ 1135 /* test LO8(eax), LO8(eax) */ /* 0x3A004A1C: test al, al */ 1136 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1137 _cf = 0; 1138 _flag_k = FK_NARROW(FK_TEST, 24); 1139 PUSH32(esp, edi); /* 0x3A004A1E: push edi */ 1140 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A004AC9; /* 0x3A004A1F: jne 0x3a004ac9 */ 1141 L_3A004A25: 1142 eax = MEM32(esi + 0x94); /* 0x3A004A25: mov eax, dword ptr [esi + 0x94] */ 1143 /* cmp eax, 0x10u */ /* 0x3A004A2B: cmp eax, 0x10 */ 1144 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 1145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1146 _flag_k = FK_CMP; 1147 if (CMP_G(_flag_a, _flag_b)) goto L_3A004A3D; /* 0x3A004A2E: jg 0x3a004a3d */ 1148 L_3A004A30: 1149 /* test eax, eax */ /* 0x3A004A30: test eax, eax */ 1150 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1151 _cf = 0; 1152 _flag_k = FK_TEST; 1153 if (TEST_LE(_flag_a, _flag_b)) goto L_3A004A3D; /* 0x3A004A32: jle 0x3a004a3d */ 1154 L_3A004A34: 1155 edi = MEM32(esi + eax * 4 + 0xC4); /* 0x3A004A34: mov edi, dword ptr [esi + eax*4 + 0xc4] */ 1156 goto L_3A004A40; /* 0x3A004A3B: jmp 0x3a004a40 */ 1157 L_3A004A3D: 1158 edi = MEM32(ebp + 0x8); /* 0x3A004A3D: mov edi, dword ptr [ebp + 8] */ 1159 L_3A004A40: 1160 ecx = MEM32(0x3A00D2DC); /* 0x3A004A40: mov ecx, dword ptr [0x3a00d2dc] */ 1161 /* test ecx, ecx */ /* 0x3A004A46: test ecx, ecx */ 1162 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1163 _cf = 0; 1164 _flag_k = FK_TEST; 1165 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004A83; /* 0x3A004A48: je 0x3a004a83 */ 1166 L_3A004A4A: 1167 /* cmp MEM32(esi + 0x74), edi */ /* 0x3A004A4A: cmp dword ptr [esi + 0x74], edi */ 1168 _flag_a = (uint32_t)(MEM32(esi + 0x74)); _flag_b = (uint32_t)(edi); 1169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1170 _flag_k = FK_CMP; 1171 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004AC9; /* 0x3A004A4D: je 0x3a004ac9 */ 1172 L_3A004A4F: 1173 /* cmp edi, 0xFFFFu */ /* 0x3A004A4F: cmp edi, 0xffff */ 1174 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu); 1175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1176 _flag_k = FK_CMP; 1177 if (CMP_NE(_flag_a, _flag_b)) goto L_3A004A6A; /* 0x3A004A55: jne 0x3a004a6a */ 1178 L_3A004A57: 1179 SET_LO8(eax, 1); /* 0x3A004A57: mov al, 1 */ 1180 PUSH32(esp, eax); /* 0x3A004A59: push eax */ 1181 PUSH32(esp, edi); /* 0x3A004A5A: push edi */ 1182 RECOMP_ICALL(MEM32(0x3A00A154)); /* 0x3A004A5B: call dword ptr [0x3a00a154] */ 1183 RECOMP_FLAGS_IN(); 1184 MEM32(esi + 0x74) = edi; /* 0x3A004A61: mov dword ptr [esi + 0x74], edi */ 1185 edi = POP32_VAL(esp); /* 0x3A004A64: pop edi */ 1186 esi = POP32_VAL(esp); /* 0x3A004A65: pop esi */ 1187 ebp = POP32_VAL(esp); /* 0x3A004A66: pop ebp */ 1188 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A004A67: ret 4 */ 1189 L_3A004A6A: 1190 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1191 eax = 0; /* 0x3A004A6A: xor eax, eax */ 1192 _cf = 0; 1193 _flag_k = FK_TEST; 1194 SET_LO8(eax, MEM8(esi + 0x109)); /* 0x3A004A6C: mov al, byte ptr [esi + 0x109] */ 1195 PUSH32(esp, eax); /* 0x3A004A72: push eax */ 1196 PUSH32(esp, edi); /* 0x3A004A73: push edi */ 1197 RECOMP_ICALL(MEM32(0x3A00A154)); /* 0x3A004A74: call dword ptr [0x3a00a154] */ 1198 RECOMP_FLAGS_IN(); 1199 MEM32(esi + 0x74) = edi; /* 0x3A004A7A: mov dword ptr [esi + 0x74], edi */ 1200 edi = POP32_VAL(esp); /* 0x3A004A7D: pop edi */ 1201 esi = POP32_VAL(esp); /* 0x3A004A7E: pop esi */ 1202 ebp = POP32_VAL(esp); /* 0x3A004A7F: pop ebp */ 1203 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A004A80: ret 4 */ 1204 L_3A004A83: 1205 ecx = esi; /* 0x3A004A83: mov ecx, esi */ 1206 RECOMP_ICALL(0x3A004770u); /* 0x3A004A85: call 0x3a004770 */ /* not lifted */ 1207 RECOMP_FLAGS_IN(); 1208 eax = MEM32(0x3A00D2DC); /* 0x3A004A8A: mov eax, dword ptr [0x3a00d2dc] */ 1209 /* test eax, eax */ /* 0x3A004A8F: test eax, eax */ 1210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1211 _cf = 0; 1212 _flag_k = FK_TEST; 1213 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004AC9; /* 0x3A004A91: je 0x3a004ac9 */ 1214 L_3A004A93: 1215 ecx = MEM32(esi + 0x60); /* 0x3A004A93: mov ecx, dword ptr [esi + 0x60] */ 1216 /* test ecx, ecx */ /* 0x3A004A96: test ecx, ecx */ 1217 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1218 _cf = 0; 1219 _flag_k = FK_TEST; 1220 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004AC9; /* 0x3A004A98: je 0x3a004ac9 */ 1221 L_3A004A9A: 1222 PUSH32(esp, eax); /* 0x3A004A9A: push eax */ 1223 RECOMP_ICALL(0x3A008D40u); /* 0x3A004A9B: call 0x3a008d40 */ /* not lifted */ 1224 RECOMP_FLAGS_IN(); 1225 ecx = MEM32(0x3A00D2DC); /* 0x3A004AA0: mov ecx, dword ptr [0x3a00d2dc] */ 1226 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1227 eax = 0; /* 0x3A004AA6: xor eax, eax */ 1228 _cf = 0; 1229 _flag_k = FK_TEST; 1230 SET_LO8(eax, MEM8(esi + 0x109)); /* 0x3A004AA8: mov al, byte ptr [esi + 0x109] */ 1231 PUSH32(esp, eax); /* 0x3A004AAE: push eax */ 1232 PUSH32(esp, edi); /* 0x3A004AAF: push edi */ 1233 RECOMP_ICALL(MEM32(0x3A00A154)); /* 0x3A004AB0: call dword ptr [0x3a00a154] */ 1234 RECOMP_FLAGS_IN(); 1235 ecx = MEM32(0x3A00D2DC); /* 0x3A004AB6: mov ecx, dword ptr [0x3a00d2dc] */ 1236 PUSH32(esp, 1); /* 0x3A004ABC: push 1 */ 1237 PUSH32(esp, 0); /* 0x3A004ABE: push 0 */ 1238 RECOMP_ICALL(MEM32(0x3A00A158)); /* 0x3A004AC0: call dword ptr [0x3a00a158] */ 1239 RECOMP_FLAGS_IN(); 1240 MEM32(esi + 0x74) = edi; /* 0x3A004AC6: mov dword ptr [esi + 0x74], edi */ 1241 L_3A004AC9: 1242 edi = POP32_VAL(esp); /* 0x3A004AC9: pop edi */ 1243 esi = POP32_VAL(esp); /* 0x3A004ACA: pop esi */ 1244 ebp = POP32_VAL(esp); /* 0x3A004ACB: pop ebp */ 1245 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A004ACC: ret 4 */ 1246 RECOMP_REGS_OUT(); 1247 } 1248 1249 void sub_3A004AD0(void) { 1250 int _fpu_cmp = 0; 1251 uint32_t _cf = 0; 1252 int _df = 1; 1253 uint32_t _flag_k = FK_NONE; 1254 uint32_t _flag_a = 0, _flag_b = 0; 1255 uint32_t _itail_tgt = 0; 1256 RECOMP_REGS_LOCALS 1257 RECOMP_ENTER(0x3A004AD0u); 1258 1259 L_3A004AD0: 1260 #if defined(RECOMP_PORTABLE) && !defined(_WIN32) 1261 if (!linux_music_worker) { linux_music_start(ecx); esp += 4; RECOMP_REGS_OUT(); return; } 1262 #endif 1263 PUSH32(esp, esi); /* 0x3A004AD0: push esi */ 1264 esi = ecx; /* 0x3A004AD1: mov esi, ecx */ 1265 RECOMP_ICALL(0x3A004770u); /* 0x3A004AD3: call 0x3a004770 */ /* not lifted */ 1266 RECOMP_FLAGS_IN(); 1267 eax = MEM32(0x3A00D2DC); /* 0x3A004AD8: mov eax, dword ptr [0x3a00d2dc] */ 1268 /* test eax, eax */ /* 0x3A004ADD: test eax, eax */ 1269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1270 _cf = 0; 1271 _flag_k = FK_TEST; 1272 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004AF7; /* 0x3A004ADF: je 0x3a004af7 */ 1273 L_3A004AE1: 1274 ecx = MEM32(eax + 0x18); /* 0x3A004AE1: mov ecx, dword ptr [eax + 0x18] */ 1275 PUSH32(esp, 0x3A00D1B8u); /* 0x3A004AE4: push 0x3a00d1b8 */ 1276 RECOMP_ICALL(MEM32(0x3A00A150)); /* 0x3A004AE9: call dword ptr [0x3a00a150] */ 1277 RECOMP_FLAGS_IN(); 1278 PUSH32(esp, eax); /* 0x3A004AEF: push eax */ 1279 ecx = esi; /* 0x3A004AF0: mov ecx, esi */ 1280 RECOMP_ICALL(0x3A004A10u); /* 0x3A004AF2: call 0x3a004a10 */ /* not lifted */ 1281 RECOMP_FLAGS_IN(); 1282 L_3A004AF7: 1283 esi = POP32_VAL(esp); /* 0x3A004AF7: pop esi */ 1284 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004AF8: ret */ 1285 RECOMP_REGS_OUT(); 1286 } 1287 1288 void sub_3A004B00(void) { 1289 int _fpu_cmp = 0; 1290 uint32_t _cf = 0; 1291 int _df = 1; 1292 uint32_t _flag_k = FK_NONE; 1293 uint32_t _flag_a = 0, _flag_b = 0; 1294 uint32_t _itail_tgt = 0; 1295 RECOMP_REGS_LOCALS 1296 RECOMP_ENTER(0x3A004B00u); 1297 1298 L_3A004B00: 1299 PUSH32(esp, ebp); /* 0x3A004B00: push ebp */ 1300 ebp = esp; /* 0x3A004B01: mov ebp, esp */ 1301 PUSH32(esp, ecx); /* 0x3A004B03: push ecx */ 1302 SET_LO8(eax, MEM8(ecx + 0x6B)); /* 0x3A004B04: mov al, byte ptr [ecx + 0x6b] */ 1303 /* test LO8(eax), LO8(eax) */ /* 0x3A004B07: test al, al */ 1304 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1305 _cf = 0; 1306 _flag_k = FK_NARROW(FK_TEST, 24); 1307 MEM32(ebp + (-0x4)) = ecx; /* 0x3A004B09: mov dword ptr [ebp - 4], ecx */ 1308 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A004B6E; /* 0x3A004B0C: jne 0x3a004b6e */ 1309 L_3A004B0E: 1310 PUSH32(esp, ebx); /* 0x3A004B0E: push ebx */ 1311 ebx = MEM32(0x3A00A0CC); /* 0x3A004B0F: mov ebx, dword ptr [0x3a00a0cc] */ 1312 PUSH32(esp, esi); /* 0x3A004B15: push esi */ 1313 PUSH32(esp, edi); /* 0x3A004B16: push edi */ 1314 RECOMP_ICALL(ebx); /* 0x3A004B17: call ebx */ 1315 RECOMP_FLAGS_IN(); 1316 edi = eax; /* 0x3A004B19: mov edi, eax */ 1317 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1318 ecx = ecx | 0xFFFFFFFFu; /* 0x3A004B1B: or ecx, 0xffffffff */ 1319 _cf = 0; 1320 _flag_k = FK_TEST; 1321 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1322 eax = 0; /* 0x3A004B1E: xor eax, eax */ 1323 _cf = 0; 1324 _flag_k = FK_TEST; 1325 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3A004B20: repne scasb al, byte ptr es:[edi] */ 1326 ecx = ~ecx; /* 0x3A004B22: not ecx */ 1327 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x63u); 1328 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1329 ecx = ecx + 0x63u; /* 0x3A004B24: add ecx, 0x63 */ 1330 _flag_k = FK_ADD; 1331 PUSH32(esp, ecx); /* 0x3A004B27: push ecx */ 1332 RECOMP_ICALL(0x3A008FD0u); /* 0x3A004B28: call 0x3a008fd0 */ /* not lifted */ 1333 RECOMP_FLAGS_IN(); 1334 esi = eax; /* 0x3A004B2D: mov esi, eax */ 1335 RECOMP_ICALL(ebx); /* 0x3A004B2F: call ebx */ 1336 RECOMP_FLAGS_IN(); 1337 PUSH32(esp, eax); /* 0x3A004B31: push eax */ 1338 PUSH32(esp, 0x3A00D1C8u); /* 0x3A004B32: push 0x3a00d1c8 */ 1339 PUSH32(esp, esi); /* 0x3A004B37: push esi */ 1340 RECOMP_ICALL(MEM32(0x3A00A058)); /* 0x3A004B38: call dword ptr [0x3a00a058] */ 1341 RECOMP_FLAGS_IN(); 1342 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1343 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1344 esp = esp + 0x10u; /* 0x3A004B3E: add esp, 0x10 */ 1345 _flag_k = FK_ADD; 1346 RECOMP_ICALL(ebx); /* 0x3A004B41: call ebx */ 1347 RECOMP_FLAGS_IN(); 1348 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1349 ecx = ecx | 0xFFFFFFFFu; /* 0x3A004B43: or ecx, 0xffffffff */ 1350 _cf = 0; 1351 _flag_k = FK_TEST; 1352 edi = eax; /* 0x3A004B46: mov edi, eax */ 1353 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1354 eax = 0; /* 0x3A004B48: xor eax, eax */ 1355 _cf = 0; 1356 _flag_k = FK_TEST; 1357 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3A004B4A: repne scasb al, byte ptr es:[edi] */ 1358 edi = MEM32(ebp + (-0x4)); /* 0x3A004B4C: mov edi, dword ptr [ebp - 4] */ 1359 ecx = ~ecx; /* 0x3A004B4F: not ecx */ 1360 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1361 ecx = ecx - 1; /* 0x3A004B51: dec ecx */ 1362 _flag_k = FK_DEC; 1363 MEM8(ecx + esi + 0x63) = (uint8_t)(LO8(eax)); /* 0x3A004B52: mov byte ptr [ecx + esi + 0x63], al */ 1364 PUSH32(esp, esi); /* 0x3A004B56: push esi */ 1365 ecx = edi; /* 0x3A004B57: mov ecx, edi */ 1366 RECOMP_ICALL(0x3A003850u); /* 0x3A004B59: call 0x3a003850 */ /* not lifted */ 1367 RECOMP_FLAGS_IN(); 1368 PUSH32(esp, esi); /* 0x3A004B5E: push esi */ 1369 RECOMP_ICALL(0x3A008F76u); /* 0x3A004B5F: call 0x3a008f76 */ /* not lifted */ 1370 RECOMP_FLAGS_IN(); 1371 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1372 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1373 esp = esp + 4; /* 0x3A004B64: add esp, 4 */ 1374 _flag_k = FK_ADD; 1375 MEM8(edi + 0x6B) = (uint8_t)(1); /* 0x3A004B67: mov byte ptr [edi + 0x6b], 1 */ 1376 edi = POP32_VAL(esp); /* 0x3A004B6B: pop edi */ 1377 esi = POP32_VAL(esp); /* 0x3A004B6C: pop esi */ 1378 ebx = POP32_VAL(esp); /* 0x3A004B6D: pop ebx */ 1379 L_3A004B6E: 1380 esp = ebp; /* 0x3A004B6E: mov esp, ebp */ 1381 ebp = POP32_VAL(esp); /* 0x3A004B70: pop ebp */ 1382 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004B71: ret */ 1383 RECOMP_REGS_OUT(); 1384 } 1385 1386 void sub_3A004B80(void) { 1387 int _fpu_cmp = 0; 1388 uint32_t _cf = 0; 1389 int _df = 1; 1390 uint32_t _flag_k = FK_NONE; 1391 uint32_t _flag_a = 0, _flag_b = 0; 1392 uint32_t _itail_tgt = 0; 1393 RECOMP_REGS_LOCALS 1394 RECOMP_ENTER(0x3A004B80u); 1395 1396 L_3A004B80: 1397 PUSH32(esp, ebp); /* 0x3A004B80: push ebp */ 1398 ebp = esp; /* 0x3A004B81: mov ebp, esp */ 1399 PUSH32(esp, ecx); /* 0x3A004B83: push ecx */ 1400 SET_LO8(eax, MEM8(ecx + 0x6A)); /* 0x3A004B84: mov al, byte ptr [ecx + 0x6a] */ 1401 /* test LO8(eax), LO8(eax) */ /* 0x3A004B87: test al, al */ 1402 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1403 _cf = 0; 1404 _flag_k = FK_NARROW(FK_TEST, 24); 1405 MEM32(ebp + (-0x4)) = ecx; /* 0x3A004B89: mov dword ptr [ebp - 4], ecx */ 1406 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A004BEE; /* 0x3A004B8C: jne 0x3a004bee */ 1407 L_3A004B8E: 1408 PUSH32(esp, ebx); /* 0x3A004B8E: push ebx */ 1409 ebx = MEM32(0x3A00A0CC); /* 0x3A004B8F: mov ebx, dword ptr [0x3a00a0cc] */ 1410 PUSH32(esp, esi); /* 0x3A004B95: push esi */ 1411 PUSH32(esp, edi); /* 0x3A004B96: push edi */ 1412 RECOMP_ICALL(ebx); /* 0x3A004B97: call ebx */ 1413 RECOMP_FLAGS_IN(); 1414 edi = eax; /* 0x3A004B99: mov edi, eax */ 1415 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1416 ecx = ecx | 0xFFFFFFFFu; /* 0x3A004B9B: or ecx, 0xffffffff */ 1417 _cf = 0; 1418 _flag_k = FK_TEST; 1419 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1420 eax = 0; /* 0x3A004B9E: xor eax, eax */ 1421 _cf = 0; 1422 _flag_k = FK_TEST; 1423 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3A004BA0: repne scasb al, byte ptr es:[edi] */ 1424 ecx = ~ecx; /* 0x3A004BA2: not ecx */ 1425 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x63u); 1426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1427 ecx = ecx + 0x63u; /* 0x3A004BA4: add ecx, 0x63 */ 1428 _flag_k = FK_ADD; 1429 PUSH32(esp, ecx); /* 0x3A004BA7: push ecx */ 1430 RECOMP_ICALL(0x3A008FD0u); /* 0x3A004BA8: call 0x3a008fd0 */ /* not lifted */ 1431 RECOMP_FLAGS_IN(); 1432 esi = eax; /* 0x3A004BAD: mov esi, eax */ 1433 RECOMP_ICALL(ebx); /* 0x3A004BAF: call ebx */ 1434 RECOMP_FLAGS_IN(); 1435 PUSH32(esp, eax); /* 0x3A004BB1: push eax */ 1436 PUSH32(esp, 0x3A00D1F0u); /* 0x3A004BB2: push 0x3a00d1f0 */ 1437 PUSH32(esp, esi); /* 0x3A004BB7: push esi */ 1438 RECOMP_ICALL(MEM32(0x3A00A058)); /* 0x3A004BB8: call dword ptr [0x3a00a058] */ 1439 RECOMP_FLAGS_IN(); 1440 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1441 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1442 esp = esp + 0x10u; /* 0x3A004BBE: add esp, 0x10 */ 1443 _flag_k = FK_ADD; 1444 RECOMP_ICALL(ebx); /* 0x3A004BC1: call ebx */ 1445 RECOMP_FLAGS_IN(); 1446 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1447 ecx = ecx | 0xFFFFFFFFu; /* 0x3A004BC3: or ecx, 0xffffffff */ 1448 _cf = 0; 1449 _flag_k = FK_TEST; 1450 edi = eax; /* 0x3A004BC6: mov edi, eax */ 1451 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1452 eax = 0; /* 0x3A004BC8: xor eax, eax */ 1453 _cf = 0; 1454 _flag_k = FK_TEST; 1455 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3A004BCA: repne scasb al, byte ptr es:[edi] */ 1456 edi = MEM32(ebp + (-0x4)); /* 0x3A004BCC: mov edi, dword ptr [ebp - 4] */ 1457 ecx = ~ecx; /* 0x3A004BCF: not ecx */ 1458 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1459 ecx = ecx - 1; /* 0x3A004BD1: dec ecx */ 1460 _flag_k = FK_DEC; 1461 MEM8(ecx + esi + 0x63) = (uint8_t)(LO8(eax)); /* 0x3A004BD2: mov byte ptr [ecx + esi + 0x63], al */ 1462 PUSH32(esp, esi); /* 0x3A004BD6: push esi */ 1463 ecx = edi; /* 0x3A004BD7: mov ecx, edi */ 1464 RECOMP_ICALL(0x3A003850u); /* 0x3A004BD9: call 0x3a003850 */ /* not lifted */ 1465 RECOMP_FLAGS_IN(); 1466 PUSH32(esp, esi); /* 0x3A004BDE: push esi */ 1467 RECOMP_ICALL(0x3A008F76u); /* 0x3A004BDF: call 0x3a008f76 */ /* not lifted */ 1468 RECOMP_FLAGS_IN(); 1469 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1471 esp = esp + 4; /* 0x3A004BE4: add esp, 4 */ 1472 _flag_k = FK_ADD; 1473 MEM8(edi + 0x6A) = (uint8_t)(1); /* 0x3A004BE7: mov byte ptr [edi + 0x6a], 1 */ 1474 edi = POP32_VAL(esp); /* 0x3A004BEB: pop edi */ 1475 esi = POP32_VAL(esp); /* 0x3A004BEC: pop esi */ 1476 ebx = POP32_VAL(esp); /* 0x3A004BED: pop ebx */ 1477 L_3A004BEE: 1478 esp = ebp; /* 0x3A004BEE: mov esp, ebp */ 1479 ebp = POP32_VAL(esp); /* 0x3A004BF0: pop ebp */ 1480 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004BF1: ret */ 1481 RECOMP_REGS_OUT(); 1482 } 1483 1484 void sub_3A004C00(void) { 1485 int _fpu_cmp = 0; 1486 uint32_t _cf = 0; 1487 int _df = 1; 1488 uint32_t _flag_k = FK_NONE; 1489 uint32_t _flag_a = 0, _flag_b = 0; 1490 uint32_t _itail_tgt = 0; 1491 RECOMP_REGS_LOCALS 1492 RECOMP_ENTER(0x3A004C00u); 1493 1494 L_3A004C00: 1495 #if defined(RECOMP_PORTABLE) && !defined(_WIN32) 1496 if (!linux_music_worker) { linux_music_zone(ecx, MEM32(esp + 4), MEM32(esp + 8)); esp += 12; RECOMP_REGS_OUT(); return; } 1497 #endif 1498 PUSH32(esp, ebp); /* 0x3A004C00: push ebp */ 1499 ebp = esp; /* 0x3A004C01: mov ebp, esp */ 1500 PUSH32(esp, esi); /* 0x3A004C03: push esi */ 1501 esi = ecx; /* 0x3A004C04: mov esi, ecx */ 1502 SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3A004C06: mov al, byte ptr [esi + 4] */ 1503 /* test LO8(eax), LO8(eax) */ /* 0x3A004C09: test al, al */ 1504 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1505 _cf = 0; 1506 _flag_k = FK_NARROW(FK_TEST, 24); 1507 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004C53; /* 0x3A004C0B: je 0x3a004c53 */ 1508 L_3A004C0D: 1509 eax = MEM32(ebp + 0x8); /* 0x3A004C0D: mov eax, dword ptr [ebp + 8] */ 1510 MEM32(esi + 0x64) = eax; /* 0x3A004C10: mov dword ptr [esi + 0x64], eax */ 1511 eax = MEM32(ebp + 0xC); /* 0x3A004C13: mov eax, dword ptr [ebp + 0xc] */ 1512 /* cmp eax, 0xFFFFFC71u */ /* 0x3A004C16: cmp eax, 0xfffffc71 */ 1513 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFC71u); 1514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1515 _flag_k = FK_CMP; 1516 if (CMP_NE(_flag_a, _flag_b)) goto L_3A004C46; /* 0x3A004C1B: jne 0x3a004c46 */ 1517 L_3A004C1D: 1518 eax = MEM32(0x3A00D2E0); /* 0x3A004C1D: mov eax, dword ptr [0x3a00d2e0] */ 1519 /* test eax, eax */ /* 0x3A004C22: test eax, eax */ 1520 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1521 _cf = 0; 1522 _flag_k = FK_TEST; 1523 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A004C46; /* 0x3A004C24: jne 0x3a004c46 */ 1524 L_3A004C26: 1525 eax = MEM32(0x3A00D2DC); /* 0x3A004C26: mov eax, dword ptr [0x3a00d2dc] */ 1526 /* test eax, eax */ /* 0x3A004C2B: test eax, eax */ 1527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1528 _cf = 0; 1529 _flag_k = FK_TEST; 1530 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004C5C; /* 0x3A004C2D: je 0x3a004c5c */ 1531 L_3A004C2F: 1532 ecx = MEM32(eax + 0x18); /* 0x3A004C2F: mov ecx, dword ptr [eax + 0x18] */ 1533 PUSH32(esp, 0x3A00D21Cu); /* 0x3A004C32: push 0x3a00d21c */ 1534 RECOMP_ICALL(MEM32(0x3A00A150)); /* 0x3A004C37: call dword ptr [0x3a00a150] */ 1535 RECOMP_FLAGS_IN(); 1536 /* test eax, eax */ /* 0x3A004C3D: test eax, eax */ 1537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1538 _cf = 0; 1539 _flag_k = FK_TEST; 1540 MEM32(0x3A00D2E0) = eax; /* 0x3A004C3F: mov dword ptr [0x3a00d2e0], eax */ 1541 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004C5C; /* 0x3A004C44: je 0x3a004c5c */ 1542 L_3A004C46: 1543 PUSH32(esp, eax); /* 0x3A004C46: push eax */ 1544 ecx = esi; /* 0x3A004C47: mov ecx, esi */ 1545 RECOMP_ICALL(0x3A004A10u); /* 0x3A004C49: call 0x3a004a10 */ /* not lifted */ 1546 RECOMP_FLAGS_IN(); 1547 esi = POP32_VAL(esp); /* 0x3A004C4E: pop esi */ 1548 ebp = POP32_VAL(esp); /* 0x3A004C4F: pop ebp */ 1549 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A004C50: ret 8 */ 1550 L_3A004C53: 1551 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1552 eax = eax | 0xFFFFFFFFu; /* 0x3A004C53: or eax, 0xffffffff */ 1553 _cf = 0; 1554 _flag_k = FK_TEST; 1555 MEM32(esi + 0x64) = eax; /* 0x3A004C56: mov dword ptr [esi + 0x64], eax */ 1556 MEM32(esi + 0x74) = eax; /* 0x3A004C59: mov dword ptr [esi + 0x74], eax */ 1557 L_3A004C5C: 1558 esi = POP32_VAL(esp); /* 0x3A004C5C: pop esi */ 1559 ebp = POP32_VAL(esp); /* 0x3A004C5D: pop ebp */ 1560 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A004C5E: ret 8 */ 1561 RECOMP_REGS_OUT(); 1562 } 1563 1564 void sub_3A004C70(void) { 1565 int _fpu_cmp = 0; 1566 uint32_t _cf = 0; 1567 int _df = 1; 1568 uint32_t _flag_k = FK_NONE; 1569 uint32_t _flag_a = 0, _flag_b = 0; 1570 uint32_t _itail_tgt = 0; 1571 RECOMP_REGS_LOCALS 1572 RECOMP_ENTER(0x3A004C70u); 1573 1574 L_3A004C70: 1575 PUSH32(esp, ebp); /* 0x3A004C70: push ebp */ 1576 ebp = esp; /* 0x3A004C71: mov ebp, esp */ 1577 PUSH32(esp, esi); /* 0x3A004C73: push esi */ 1578 esi = ecx; /* 0x3A004C74: mov esi, ecx */ 1579 ecx = MEM32(esi + 0x60); /* 0x3A004C76: mov ecx, dword ptr [esi + 0x60] */ 1580 /* test ecx, ecx */ /* 0x3A004C79: test ecx, ecx */ 1581 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1582 _cf = 0; 1583 _flag_k = FK_TEST; 1584 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004CD8; /* 0x3A004C7B: je 0x3a004cd8 */ 1585 L_3A004C7D: 1586 RECOMP_ICALL(0x3A008410u); /* 0x3A004C7D: call 0x3a008410 */ /* not lifted */ 1587 RECOMP_FLAGS_IN(); 1588 /* test LO8(eax), LO8(eax) */ /* 0x3A004C82: test al, al */ 1589 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1590 _cf = 0; 1591 _flag_k = FK_NARROW(FK_TEST, 24); 1592 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004CD8; /* 0x3A004C84: je 0x3a004cd8 */ 1593 L_3A004C86: 1594 SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3A004C86: mov al, byte ptr [esi + 4] */ 1595 /* test LO8(eax), LO8(eax) */ /* 0x3A004C89: test al, al */ 1596 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1597 _cf = 0; 1598 _flag_k = FK_NARROW(FK_TEST, 24); 1599 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004CD8; /* 0x3A004C8B: je 0x3a004cd8 */ 1600 L_3A004C8D: 1601 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3A004C8D: fld dword ptr [ebp + 8] */ 1602 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A180)); /* 0x3A004C90: fcomp dword ptr [0x3a00a180] */ 1603 fp_pop(); 1604 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A004C96: fnstsw ax */ 1605 /* test HI8(eax), 0x41u */ /* 0x3A004C98: test ah, 0x41 */ 1606 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1607 _cf = 0; 1608 _flag_k = FK_NARROW(FK_TEST, 24); 1609 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A004CB5; /* 0x3A004C9B: jne 0x3a004cb5 */ 1610 L_3A004C9D: 1611 ecx = MEM32(esi + 0x60); /* 0x3A004C9D: mov ecx, dword ptr [esi + 0x60] */ 1612 MEM32(ebp + 0x8) = 0x3F800000u; /* 0x3A004CA0: mov dword ptr [ebp + 8], 0x3f800000 */ 1613 eax = MEM32(ebp + 0x8); /* 0x3A004CA7: mov eax, dword ptr [ebp + 8] */ 1614 PUSH32(esp, eax); /* 0x3A004CAA: push eax */ 1615 RECOMP_ICALL(0x3A008620u); /* 0x3A004CAB: call 0x3a008620 */ /* not lifted */ 1616 RECOMP_FLAGS_IN(); 1617 esi = POP32_VAL(esp); /* 0x3A004CB0: pop esi */ 1618 ebp = POP32_VAL(esp); /* 0x3A004CB1: pop ebp */ 1619 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A004CB2: ret 4 */ 1620 L_3A004CB5: 1621 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3A004CB5: fld dword ptr [ebp + 8] */ 1622 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A004CB8: fcomp dword ptr [0x3a00a178] */ 1623 fp_pop(); 1624 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A004CBE: fnstsw ax */ 1625 /* test HI8(eax), 1 */ /* 0x3A004CC0: test ah, 1 */ 1626 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1627 _cf = 0; 1628 _flag_k = FK_NARROW(FK_TEST, 24); 1629 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004CCC; /* 0x3A004CC3: je 0x3a004ccc */ 1630 L_3A004CC5: 1631 MEM32(ebp + 0x8) = 0; /* 0x3A004CC5: mov dword ptr [ebp + 8], 0 */ 1632 L_3A004CCC: 1633 eax = MEM32(ebp + 0x8); /* 0x3A004CCC: mov eax, dword ptr [ebp + 8] */ 1634 ecx = MEM32(esi + 0x60); /* 0x3A004CCF: mov ecx, dword ptr [esi + 0x60] */ 1635 PUSH32(esp, eax); /* 0x3A004CD2: push eax */ 1636 RECOMP_ICALL(0x3A008620u); /* 0x3A004CD3: call 0x3a008620 */ /* not lifted */ 1637 RECOMP_FLAGS_IN(); 1638 L_3A004CD8: 1639 esi = POP32_VAL(esp); /* 0x3A004CD8: pop esi */ 1640 ebp = POP32_VAL(esp); /* 0x3A004CD9: pop ebp */ 1641 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A004CDA: ret 4 */ 1642 RECOMP_REGS_OUT(); 1643 } 1644 1645 void sub_3A004CE0(void) { 1646 int _fpu_cmp = 0; 1647 uint32_t _cf = 0; 1648 int _df = 1; 1649 uint32_t _flag_k = FK_NONE; 1650 uint32_t _flag_a = 0, _flag_b = 0; 1651 uint32_t _itail_tgt = 0; 1652 RECOMP_REGS_LOCALS 1653 RECOMP_ENTER(0x3A004CE0u); 1654 1655 L_3A004CE0: 1656 PUSH32(esp, esi); /* 0x3A004CE0: push esi */ 1657 esi = ecx; /* 0x3A004CE1: mov esi, ecx */ 1658 ecx = MEM32(esi + 0x60); /* 0x3A004CE3: mov ecx, dword ptr [esi + 0x60] */ 1659 PUSH32(esp, edi); /* 0x3A004CE6: push edi */ 1660 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1661 edi = 0; /* 0x3A004CE7: xor edi, edi */ 1662 _cf = 0; 1663 _flag_k = FK_TEST; 1664 /* cmp ecx, edi */ /* 0x3A004CE9: cmp ecx, edi */ 1665 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1667 _flag_k = FK_CMP; 1668 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004D1C; /* 0x3A004CEB: je 0x3a004d1c */ 1669 L_3A004CED: 1670 RECOMP_ICALL(0x3A008410u); /* 0x3A004CED: call 0x3a008410 */ /* not lifted */ 1671 RECOMP_FLAGS_IN(); 1672 /* test LO8(eax), LO8(eax) */ /* 0x3A004CF2: test al, al */ 1673 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1674 _cf = 0; 1675 _flag_k = FK_NARROW(FK_TEST, 24); 1676 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A004D1C; /* 0x3A004CF4: jne 0x3a004d1c */ 1677 L_3A004CF6: 1678 ecx = MEM32(esi + 0x60); /* 0x3A004CF6: mov ecx, dword ptr [esi + 0x60] */ 1679 RECOMP_ICALL(0x3A008310u); /* 0x3A004CF9: call 0x3a008310 */ /* not lifted */ 1680 RECOMP_FLAGS_IN(); 1681 ecx = MEM32(esi + 0x60); /* 0x3A004CFE: mov ecx, dword ptr [esi + 0x60] */ 1682 RECOMP_ICALL(0x3A008410u); /* 0x3A004D01: call 0x3a008410 */ /* not lifted */ 1683 RECOMP_FLAGS_IN(); 1684 /* test LO8(eax), LO8(eax) */ /* 0x3A004D06: test al, al */ 1685 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1686 _cf = 0; 1687 _flag_k = FK_NARROW(FK_TEST, 24); 1688 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004D1C; /* 0x3A004D08: je 0x3a004d1c */ 1689 L_3A004D0A: 1690 ecx = MEM32(esi + 0x60); /* 0x3A004D0A: mov ecx, dword ptr [esi + 0x60] */ 1691 MEM8(esi + 0x4) = (uint8_t)(1); /* 0x3A004D0D: mov byte ptr [esi + 4], 1 */ 1692 eax = MEM32(0x3A00D038); /* 0x3A004D11: mov eax, dword ptr [0x3a00d038] */ 1693 PUSH32(esp, eax); /* 0x3A004D16: push eax */ 1694 RECOMP_ICALL(0x3A008620u); /* 0x3A004D17: call 0x3a008620 */ /* not lifted */ 1695 RECOMP_FLAGS_IN(); 1696 L_3A004D1C: 1697 SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3A004D1C: mov al, byte ptr [esi + 4] */ 1698 MEM32(esi + 0x58) = edi; /* 0x3A004D1F: mov dword ptr [esi + 0x58], edi */ 1699 edi = POP32_VAL(esp); /* 0x3A004D22: pop edi */ 1700 esi = POP32_VAL(esp); /* 0x3A004D23: pop esi */ 1701 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004D24: ret */ 1702 RECOMP_REGS_OUT(); 1703 } 1704 1705 void sub_3A004D30(void) { 1706 int _fpu_cmp = 0; 1707 uint32_t _cf = 0; 1708 int _df = 1; 1709 uint32_t _flag_k = FK_NONE; 1710 uint32_t _flag_a = 0, _flag_b = 0; 1711 uint32_t _itail_tgt = 0; 1712 RECOMP_REGS_LOCALS 1713 RECOMP_ENTER(0x3A004D30u); 1714 1715 L_3A004D30: 1716 PUSH32(esp, ebx); /* 0x3A004D30: push ebx */ 1717 PUSH32(esp, esi); /* 0x3A004D31: push esi */ 1718 esi = ecx; /* 0x3A004D32: mov esi, ecx */ 1719 SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3A004D34: mov al, byte ptr [esi + 4] */ 1720 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1721 ebx = 0; /* 0x3A004D37: xor ebx, ebx */ 1722 _cf = 0; 1723 _flag_k = FK_TEST; 1724 /* cmp LO8(eax), LO8(ebx) */ /* 0x3A004D39: cmp al, bl */ 1725 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1727 _flag_k = FK_NARROW(FK_CMP, 24); 1728 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004D89; /* 0x3A004D3B: je 0x3a004d89 */ 1729 L_3A004D3D: 1730 #if defined(RECOMP_PORTABLE) && !defined(_WIN32) 1731 linux_music_shutdown(esi); goto L_3A004D82; 1732 #endif 1733 ecx = MEM32(0x3A00D2DC); /* 0x3A004D3D: mov ecx, dword ptr [0x3a00d2dc] */ 1734 /* cmp ecx, ebx */ /* 0x3A004D43: cmp ecx, ebx */ 1735 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1737 _flag_k = FK_CMP; 1738 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004D82; /* 0x3A004D45: je 0x3a004d82 */ 1739 L_3A004D47: 1740 /* cmp MEM32(esi + 0x60), ebx */ /* 0x3A004D47: cmp dword ptr [esi + 0x60], ebx */ 1741 _flag_a = (uint32_t)(MEM32(esi + 0x60)); _flag_b = (uint32_t)(ebx); 1742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1743 _flag_k = FK_CMP; 1744 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004D82; /* 0x3A004D4A: je 0x3a004d82 */ 1745 L_3A004D4C: 1746 PUSH32(esp, edi); /* 0x3A004D4C: push edi */ 1747 PUSH32(esp, 1); /* 0x3A004D4D: push 1 */ 1748 PUSH32(esp, 1); /* 0x3A004D4F: push 1 */ 1749 RECOMP_ICALL(MEM32(0x3A00A164)); /* 0x3A004D51: call dword ptr [0x3a00a164] */ 1750 RECOMP_FLAGS_IN(); 1751 edi = MEM32(0x3A00D2DC); /* 0x3A004D57: mov edi, dword ptr [0x3a00d2dc] */ 1752 /* cmp edi, ebx */ /* 0x3A004D5D: cmp edi, ebx */ 1753 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1755 _flag_k = FK_CMP; 1756 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004D72; /* 0x3A004D5F: je 0x3a004d72 */ 1757 L_3A004D61: 1758 ecx = edi; /* 0x3A004D61: mov ecx, edi */ 1759 RECOMP_ICALL(MEM32(0x3A00A168)); /* 0x3A004D63: call dword ptr [0x3a00a168] */ 1760 RECOMP_FLAGS_IN(); 1761 PUSH32(esp, edi); /* 0x3A004D69: push edi */ 1762 RECOMP_ICALL(0x3A008F76u); /* 0x3A004D6A: call 0x3a008f76 */ /* not lifted */ 1763 RECOMP_FLAGS_IN(); 1764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1766 esp = esp + 4; /* 0x3A004D6F: add esp, 4 */ 1767 _flag_k = FK_ADD; 1768 L_3A004D72: 1769 MEM32(0x3A00D2DC) = ebx; /* 0x3A004D72: mov dword ptr [0x3a00d2dc], ebx */ 1770 ecx = MEM32(esi + 0x60); /* 0x3A004D78: mov ecx, dword ptr [esi + 0x60] */ 1771 PUSH32(esp, ebx); /* 0x3A004D7B: push ebx */ 1772 RECOMP_ICALL(0x3A008D40u); /* 0x3A004D7C: call 0x3a008d40 */ /* not lifted */ 1773 RECOMP_FLAGS_IN(); 1774 edi = POP32_VAL(esp); /* 0x3A004D81: pop edi */ 1775 L_3A004D82: 1776 ecx = esi; /* 0x3A004D82: mov ecx, esi */ 1777 RECOMP_ICALL(0x3A005870u); /* 0x3A004D84: call 0x3a005870 */ /* not lifted */ 1778 RECOMP_FLAGS_IN(); 1779 L_3A004D89: 1780 ecx = MEM32(esi + 0x60); /* 0x3A004D89: mov ecx, dword ptr [esi + 0x60] */ 1781 /* cmp ecx, ebx */ /* 0x3A004D8C: cmp ecx, ebx */ 1782 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1784 _flag_k = FK_CMP; 1785 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004DA6; /* 0x3A004D8E: je 0x3a004da6 */ 1786 L_3A004D90: 1787 RECOMP_ICALL(0x3A008410u); /* 0x3A004D90: call 0x3a008410 */ /* not lifted */ 1788 RECOMP_FLAGS_IN(); 1789 /* test LO8(eax), LO8(eax) */ /* 0x3A004D95: test al, al */ 1790 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1791 _cf = 0; 1792 _flag_k = FK_NARROW(FK_TEST, 24); 1793 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004DA6; /* 0x3A004D97: je 0x3a004da6 */ 1794 L_3A004D99: 1795 /* cmp MEM8(esi + 0x4), LO8(ebx) */ /* 0x3A004D99: cmp byte ptr [esi + 4], bl */ 1796 _flag_a = (uint32_t)(MEM8(esi + 0x4)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1798 _flag_k = FK_NARROW(FK_CMP, 24); 1799 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004DA6; /* 0x3A004D9C: je 0x3a004da6 */ 1800 L_3A004D9E: 1801 ecx = MEM32(esi + 0x60); /* 0x3A004D9E: mov ecx, dword ptr [esi + 0x60] */ 1802 RECOMP_ICALL(0x3A0083E0u); /* 0x3A004DA1: call 0x3a0083e0 */ /* not lifted */ 1803 RECOMP_FLAGS_IN(); 1804 L_3A004DA6: 1805 MEM8(esi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x3A004DA6: mov byte ptr [esi + 4], bl */ 1806 esi = POP32_VAL(esp); /* 0x3A004DA9: pop esi */ 1807 ebx = POP32_VAL(esp); /* 0x3A004DAA: pop ebx */ 1808 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A004DAB: ret */ 1809 RECOMP_REGS_OUT(); 1810 } 1811 1812 void sub_3A004DB0(void) { 1813 int _fpu_cmp = 0; 1814 uint32_t _cf = 0; 1815 int _df = 1; 1816 uint32_t _flag_k = FK_NONE; 1817 uint32_t _flag_a = 0, _flag_b = 0; 1818 uint32_t _itail_tgt = 0; 1819 RECOMP_REGS_LOCALS 1820 RECOMP_ENTER(0x3A004DB0u); 1821 1822 L_3A004DB0: 1823 PUSH32(esp, ebp); /* 0x3A004DB0: push ebp */ 1824 ebp = esp; /* 0x3A004DB1: mov ebp, esp */ 1825 PUSH32(esp, esi); /* 0x3A004DB3: push esi */ 1826 PUSH32(esp, edi); /* 0x3A004DB4: push edi */ 1827 edi = MEM32(ebp + 0x8); /* 0x3A004DB5: mov edi, dword ptr [ebp + 8] */ 1828 /* test edi, edi */ /* 0x3A004DB8: test edi, edi */ 1829 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1830 _cf = 0; 1831 _flag_k = FK_TEST; 1832 esi = ecx; /* 0x3A004DBA: mov esi, ecx */ 1833 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004E28; /* 0x3A004DBC: je 0x3a004e28 */ 1834 L_3A004DBE: 1835 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3A004DBE: fld dword ptr [ebp + 0xc] */ 1836 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A004DC1: fcomp dword ptr [0x3a00a178] */ 1837 fp_pop(); 1838 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A004DC7: fnstsw ax */ 1839 /* test HI8(eax), 1 */ /* 0x3A004DC9: test ah, 1 */ 1840 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1841 _cf = 0; 1842 _flag_k = FK_NARROW(FK_TEST, 24); 1843 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004DD7; /* 0x3A004DCC: je 0x3a004dd7 */ 1844 L_3A004DCE: 1845 MEM32(ebp + 0xC) = 0; /* 0x3A004DCE: mov dword ptr [ebp + 0xc], 0 */ 1846 goto L_3A004DEE; /* 0x3A004DD5: jmp 0x3a004dee */ 1847 L_3A004DD7: 1848 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3A004DD7: fld dword ptr [ebp + 0xc] */ 1849 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A180)); /* 0x3A004DDA: fcomp dword ptr [0x3a00a180] */ 1850 fp_pop(); 1851 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A004DE0: fnstsw ax */ 1852 /* test HI8(eax), 0x41u */ /* 0x3A004DE2: test ah, 0x41 */ 1853 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1854 _cf = 0; 1855 _flag_k = FK_NARROW(FK_TEST, 24); 1856 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A004DEE; /* 0x3A004DE5: jne 0x3a004dee */ 1857 L_3A004DE7: 1858 MEM32(ebp + 0xC) = 0x3F800000u; /* 0x3A004DE7: mov dword ptr [ebp + 0xc], 0x3f800000 */ 1859 L_3A004DEE: 1860 SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3A004DEE: mov al, byte ptr [esi + 4] */ 1861 /* test LO8(eax), LO8(eax) */ /* 0x3A004DF1: test al, al */ 1862 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1863 _cf = 0; 1864 _flag_k = FK_NARROW(FK_TEST, 24); 1865 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004E28; /* 0x3A004DF3: je 0x3a004e28 */ 1866 L_3A004DF5: 1867 ecx = MEM32(esi + 0x60); /* 0x3A004DF5: mov ecx, dword ptr [esi + 0x60] */ 1868 /* test ecx, ecx */ /* 0x3A004DF8: test ecx, ecx */ 1869 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1870 _cf = 0; 1871 _flag_k = FK_TEST; 1872 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004E28; /* 0x3A004DFA: je 0x3a004e28 */ 1873 L_3A004DFC: 1874 eax = MEM32(edi + 0x1A8); /* 0x3A004DFC: mov eax, dword ptr [edi + 0x1a8] */ 1875 PUSH32(esp, eax); /* 0x3A004E02: push eax */ 1876 RECOMP_ICALL(0x3A008610u); /* 0x3A004E03: call 0x3a008610 */ /* not lifted */ 1877 RECOMP_FLAGS_IN(); 1878 /* test LO8(eax), LO8(eax) */ /* 0x3A004E08: test al, al */ 1879 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1880 _cf = 0; 1881 _flag_k = FK_NARROW(FK_TEST, 24); 1882 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004E28; /* 0x3A004E0A: je 0x3a004e28 */ 1883 L_3A004E0C: 1884 fp_push(*(float*)&MEM32(0x3A00D030)); /* 0x3A004E0C: fld dword ptr [0x3a00d030] */ 1885 PUSH32(esp, ecx); /* 0x3A004E12: push ecx */ 1886 _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x3A004E13: fmul dword ptr [ebp + 0xc] */ 1887 ecx = MEM32(edi + 0x1A8); /* 0x3A004E16: mov ecx, dword ptr [edi + 0x1a8] */ 1888 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3A004E1C: fstp dword ptr [esp] */ 1889 PUSH32(esp, ecx); /* 0x3A004E1F: push ecx */ 1890 ecx = MEM32(esi + 0x60); /* 0x3A004E20: mov ecx, dword ptr [esi + 0x60] */ 1891 RECOMP_ICALL(0x3A008680u); /* 0x3A004E23: call 0x3a008680 */ /* not lifted */ 1892 RECOMP_FLAGS_IN(); 1893 L_3A004E28: 1894 edi = POP32_VAL(esp); /* 0x3A004E28: pop edi */ 1895 esi = POP32_VAL(esp); /* 0x3A004E29: pop esi */ 1896 ebp = POP32_VAL(esp); /* 0x3A004E2A: pop ebp */ 1897 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A004E2B: ret 8 */ 1898 RECOMP_REGS_OUT(); 1899 } 1900 1901 void sub_3A004E30(void) { 1902 int _fpu_cmp = 0; 1903 uint32_t _cf = 0; 1904 int _df = 1; 1905 uint32_t _flag_k = FK_NONE; 1906 uint32_t _flag_a = 0, _flag_b = 0; 1907 uint32_t _itail_tgt = 0; 1908 RECOMP_REGS_LOCALS 1909 RECOMP_ENTER(0x3A004E30u); 1910 1911 L_3A004E30: 1912 PUSH32(esp, ebp); /* 0x3A004E30: push ebp */ 1913 ebp = esp; /* 0x3A004E31: mov ebp, esp */ 1914 eax = 0x1010u; /* 0x3A004E33: mov eax, 0x1010 */ 1915 RECOMP_ICALL(0x3A008FE0u); /* 0x3A004E38: call 0x3a008fe0 */ /* not lifted */ 1916 RECOMP_FLAGS_IN(); 1917 PUSH32(esp, ebx); /* 0x3A004E3D: push ebx */ 1918 eax = ecx; /* 0x3A004E3E: mov eax, ecx */ 1919 ecx = MEM32(eax + 0xC); /* 0x3A004E40: mov ecx, dword ptr [eax + 0xc] */ 1920 PUSH32(esp, esi); /* 0x3A004E43: push esi */ 1921 PUSH32(esp, edi); /* 0x3A004E44: push edi */ 1922 edi = MEM32(ecx + 0x4); /* 0x3A004E45: mov edi, dword ptr [ecx + 4] */ 1923 ecx = MEM32(edi); /* 0x3A004E48: mov ecx, dword ptr [edi] */ 1924 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1925 edx = 0; /* 0x3A004E4A: xor edx, edx */ 1926 _cf = 0; 1927 _flag_k = FK_TEST; 1928 /* cmp ecx, edi */ /* 0x3A004E4C: cmp ecx, edi */ 1929 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1931 _flag_k = FK_CMP; 1932 MEM32(ebp + (-0x8)) = eax; /* 0x3A004E4E: mov dword ptr [ebp - 8], eax */ 1933 MEM32(ebp + (-0xC)) = edx; /* 0x3A004E51: mov dword ptr [ebp - 0xc], edx */ 1934 MEM32(ebp + (-0x4)) = edx; /* 0x3A004E54: mov dword ptr [ebp - 4], edx */ 1935 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004EA4; /* 0x3A004E57: je 0x3a004ea4 */ 1936 L_3A004E59: 1937 ebx = MEM32(eax + 0x5C); /* 0x3A004E59: mov ebx, dword ptr [eax + 0x5c] */ 1938 esi = ebp + (-0x100C); /* 0x3A004E5C: lea esi, [ebp - 0x100c] */ 1939 L_3A004E62: 1940 eax = MEM32(ecx + 0x8); /* 0x3A004E62: mov eax, dword ptr [ecx + 8] */ 1941 /* cmp ebx, eax */ /* 0x3A004E65: cmp ebx, eax */ 1942 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1944 _flag_k = FK_CMP; 1945 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004E9E; /* 0x3A004E67: je 0x3a004e9e */ 1946 L_3A004E69: 1947 /* cmp MEM8(eax + 0x166), 0 */ /* 0x3A004E69: cmp byte ptr [eax + 0x166], 0 */ 1948 _flag_a = (uint32_t)(MEM8(eax + 0x166)) << 24; _flag_b = (uint32_t)(0) << 24; 1949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1950 _flag_k = FK_NARROW(FK_CMP, 24); 1951 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A004E9E; /* 0x3A004E70: je 0x3a004e9e */ 1952 L_3A004E72: 1953 /* cmp MEM8(eax + 0x15A), 0 */ /* 0x3A004E72: cmp byte ptr [eax + 0x15a], 0 */ 1954 _flag_a = (uint32_t)(MEM8(eax + 0x15A)) << 24; _flag_b = (uint32_t)(0) << 24; 1955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1956 _flag_k = FK_NARROW(FK_CMP, 24); 1957 if (CMP_NE(_flag_a, _flag_b)) goto L_3A004E9E; /* 0x3A004E79: jne 0x3a004e9e */ 1958 L_3A004E7B: 1959 /* cmp MEM32(ebp + (-0x4)), 0x200u */ /* 0x3A004E7B: cmp dword ptr [ebp - 4], 0x200 */ 1960 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x200u); 1961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1962 _flag_k = FK_CMP; 1963 if (CMP_GE(_flag_a, _flag_b)) goto L_3A004E9B; /* 0x3A004E82: jge 0x3a004e9b */ 1964 L_3A004E84: 1965 edx = MEM32(eax + 0x270); /* 0x3A004E84: mov edx, dword ptr [eax + 0x270] */ 1966 MEM32(esi + (-0x4)) = eax; /* 0x3A004E8A: mov dword ptr [esi - 4], eax */ 1967 MEM32(esi) = edx; /* 0x3A004E8D: mov dword ptr [esi], edx */ 1968 edx = MEM32(ebp + (-0x4)); /* 0x3A004E8F: mov edx, dword ptr [ebp - 4] */ 1969 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1970 edx = edx + 1; /* 0x3A004E92: inc edx */ 1971 _flag_k = FK_INC; 1972 MEM32(ebp + (-0x4)) = edx; /* 0x3A004E93: mov dword ptr [ebp - 4], edx */ 1973 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 1974 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1975 esi = esi + 8; /* 0x3A004E96: add esi, 8 */ 1976 _flag_k = FK_ADD; 1977 goto L_3A004E9E; /* 0x3A004E99: jmp 0x3a004e9e */ 1978 L_3A004E9B: 1979 edx = MEM32(ebp + (-0x4)); /* 0x3A004E9B: mov edx, dword ptr [ebp - 4] */ 1980 L_3A004E9E: 1981 ecx = MEM32(ecx); /* 0x3A004E9E: mov ecx, dword ptr [ecx] */ 1982 /* cmp ecx, edi */ /* 0x3A004EA0: cmp ecx, edi */ 1983 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1985 _flag_k = FK_CMP; 1986 RECOMP_BACKEDGE(); 1987 if (CMP_NE(_flag_a, _flag_b)) goto L_3A004E62; /* 0x3A004EA2: jne 0x3a004e62 */ 1988 L_3A004EA4: 1989 /* cmp edx, 1 */ /* 0x3A004EA4: cmp edx, 1 */ 1990 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1992 _flag_k = FK_CMP; 1993 SET_LO8(ebx, 1); /* 0x3A004EA7: mov bl, 1 */ 1994 if (CMP_LE(_flag_a, _flag_b)) goto L_3A004EDA; /* 0x3A004EA9: jle 0x3a004eda */ 1995 L_3A004EAB: 1996 eax = ebp + (-0x100C); /* 0x3A004EAB: lea eax, [ebp - 0x100c] */ 1997 edi = edx + (-0x1); /* 0x3A004EB1: lea edi, [edx - 1] */ 1998 L_3A004EB4: 1999 ecx = MEM32(eax + 0x8); /* 0x3A004EB4: mov ecx, dword ptr [eax + 8] */ 2000 esi = MEM32(eax); /* 0x3A004EB7: mov esi, dword ptr [eax] */ 2001 /* cmp ecx, esi */ /* 0x3A004EB9: cmp ecx, esi */ 2002 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 2003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2004 _flag_k = FK_CMP; 2005 if (CMP_AE(_flag_a, _flag_b)) goto L_3A004ED0; /* 0x3A004EBB: jae 0x3a004ed0 */ 2006 L_3A004EBD: 2007 MEM32(eax + 0x8) = esi; /* 0x3A004EBD: mov dword ptr [eax + 8], esi */ 2008 MEM32(eax) = ecx; /* 0x3A004EC0: mov dword ptr [eax], ecx */ 2009 esi = MEM32(eax + (-0x4)); /* 0x3A004EC2: mov esi, dword ptr [eax - 4] */ 2010 ecx = MEM32(eax + 0x4); /* 0x3A004EC5: mov ecx, dword ptr [eax + 4] */ 2011 MEM32(eax + 0x4) = esi; /* 0x3A004EC8: mov dword ptr [eax + 4], esi */ 2012 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2013 SET_LO8(ebx, 0); /* 0x3A004ECB: xor bl, bl */ 2014 _cf = 0; 2015 _flag_k = FK_NARROW(FK_TEST, 24); 2016 MEM32(eax + (-0x4)) = ecx; /* 0x3A004ECD: mov dword ptr [eax - 4], ecx */ 2017 L_3A004ED0: 2018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 2019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2020 eax = eax + 8; /* 0x3A004ED0: add eax, 8 */ 2021 _flag_k = FK_ADD; 2022 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2023 edi = edi - 1; /* 0x3A004ED3: dec edi */ 2024 _flag_k = FK_DEC; 2025 RECOMP_BACKEDGE(); 2026 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3A004EB4; /* 0x3A004ED4: jne 0x3a004eb4 */ 2027 L_3A004ED6: 2028 /* test LO8(ebx), LO8(ebx) */ /* 0x3A004ED6: test bl, bl */ 2029 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2030 _cf = 0; 2031 _flag_k = FK_NARROW(FK_TEST, 24); 2032 RECOMP_BACKEDGE(); 2033 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004EA4; /* 0x3A004ED8: je 0x3a004ea4 */ 2034 L_3A004EDA: 2035 /* test edx, edx */ /* 0x3A004EDA: test edx, edx */ 2036 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2037 _cf = 0; 2038 _flag_k = FK_TEST; 2039 MEM32(ebp + (-0x10)) = 0; /* 0x3A004EDC: mov dword ptr [ebp - 0x10], 0 */ 2040 if (TEST_LE(_flag_a, _flag_b)) goto L_3A004F33; /* 0x3A004EE3: jle 0x3a004f33 */ 2041 L_3A004EE5: 2042 eax = MEM32(ebp + (-0x8)); /* 0x3A004EE5: mov eax, dword ptr [ebp - 8] */ 2043 eax = MEM32(eax + 0x50); /* 0x3A004EE8: mov eax, dword ptr [eax + 0x50] */ 2044 ebx = ebp + (-0x1010); /* 0x3A004EEB: lea ebx, [ebp - 0x1010] */ 2045 L_3A004EF1: 2046 edi = MEM32(ebx); /* 0x3A004EF1: mov edi, dword ptr [ebx] */ 2047 ecx = MEM32(ebp + (-0x8)); /* 0x3A004EF3: mov ecx, dword ptr [ebp - 8] */ 2048 PUSH32(esp, edi); /* 0x3A004EF6: push edi */ 2049 esi = eax; /* 0x3A004EF7: mov esi, eax */ 2050 RECOMP_ICALL(0x3A003770u); /* 0x3A004EF9: call 0x3a003770 */ /* not lifted */ 2051 RECOMP_FLAGS_IN(); 2052 PUSH32(esp, 0xBF800000u); /* 0x3A004EFE: push 0xbf800000 */ 2053 PUSH32(esp, edi); /* 0x3A004F03: push edi */ 2054 edi = MEM32(ebp + (-0x8)); /* 0x3A004F04: mov edi, dword ptr [ebp - 8] */ 2055 ecx = edi; /* 0x3A004F07: mov ecx, edi */ 2056 RECOMP_ICALL(0x3A005790u); /* 0x3A004F09: call 0x3a005790 */ /* not lifted */ 2057 RECOMP_FLAGS_IN(); 2058 eax = MEM32(edi + 0x50); /* 0x3A004F0E: mov eax, dword ptr [edi + 0x50] */ 2059 ecx = MEM32(ebp + (-0xC)); /* 0x3A004F11: mov ecx, dword ptr [ebp - 0xc] */ 2060 edx = MEM32(ebp + 0x8); /* 0x3A004F14: mov edx, dword ptr [ebp + 8] */ 2061 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2063 esi = esi - eax; /* 0x3A004F17: sub esi, eax */ 2064 _flag_k = FK_CMP; 2065 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 2066 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2067 ecx = ecx + esi; /* 0x3A004F19: add ecx, esi */ 2068 _flag_k = FK_ADD; 2069 /* cmp ecx, edx */ /* 0x3A004F1B: cmp ecx, edx */ 2070 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2072 _flag_k = FK_CMP; 2073 MEM32(ebp + (-0xC)) = ecx; /* 0x3A004F1D: mov dword ptr [ebp - 0xc], ecx */ 2074 if (CMP_A(_flag_a, _flag_b)) goto L_3A004F33; /* 0x3A004F20: ja 0x3a004f33 */ 2075 L_3A004F22: 2076 ecx = MEM32(ebp + (-0x10)); /* 0x3A004F22: mov ecx, dword ptr [ebp - 0x10] */ 2077 edx = MEM32(ebp + (-0x4)); /* 0x3A004F25: mov edx, dword ptr [ebp - 4] */ 2078 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2079 ecx = ecx + 1; /* 0x3A004F28: inc ecx */ 2080 _flag_k = FK_INC; 2081 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 2082 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2083 ebx = ebx + 8; /* 0x3A004F29: add ebx, 8 */ 2084 _flag_k = FK_ADD; 2085 /* cmp ecx, edx */ /* 0x3A004F2C: cmp ecx, edx */ 2086 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2088 _flag_k = FK_CMP; 2089 MEM32(ebp + (-0x10)) = ecx; /* 0x3A004F2E: mov dword ptr [ebp - 0x10], ecx */ 2090 RECOMP_BACKEDGE(); 2091 if (CMP_L(_flag_a, _flag_b)) goto L_3A004EF1; /* 0x3A004F31: jl 0x3a004ef1 */ 2092 L_3A004F33: 2093 edi = POP32_VAL(esp); /* 0x3A004F33: pop edi */ 2094 esi = POP32_VAL(esp); /* 0x3A004F34: pop esi */ 2095 ebx = POP32_VAL(esp); /* 0x3A004F35: pop ebx */ 2096 esp = ebp; /* 0x3A004F36: mov esp, ebp */ 2097 ebp = POP32_VAL(esp); /* 0x3A004F38: pop ebp */ 2098 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A004F39: ret 4 */ 2099 RECOMP_REGS_OUT(); 2100 } 2101 2102 void sub_3A004F40(void) { 2103 int _fpu_cmp = 0; 2104 uint32_t _cf = 0; 2105 int _df = 1; 2106 uint32_t _flag_k = FK_NONE; 2107 uint32_t _flag_a = 0, _flag_b = 0; 2108 uint32_t _itail_tgt = 0; 2109 RECOMP_REGS_LOCALS 2110 RECOMP_ENTER(0x3A004F40u); 2111 2112 L_3A004F40: 2113 PUSH32(esp, ebp); /* 0x3A004F40: push ebp */ 2114 ebp = esp; /* 0x3A004F41: mov ebp, esp */ 2115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x814u); 2116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2117 esp = esp - 0x814u; /* 0x3A004F43: sub esp, 0x814 */ 2118 _flag_k = FK_CMP; 2119 PUSH32(esp, ebx); /* 0x3A004F49: push ebx */ 2120 PUSH32(esp, esi); /* 0x3A004F4A: push esi */ 2121 PUSH32(esp, edi); /* 0x3A004F4B: push edi */ 2122 edi = ecx; /* 0x3A004F4C: mov edi, ecx */ 2123 SET_LO8(eax, MEM8(edi + 0x4)); /* 0x3A004F4E: mov al, byte ptr [edi + 4] */ 2124 /* test LO8(eax), LO8(eax) */ /* 0x3A004F51: test al, al */ 2125 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2126 _cf = 0; 2127 _flag_k = FK_NARROW(FK_TEST, 24); 2128 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0051CA; /* 0x3A004F53: je 0x3a0051ca */ 2129 L_3A004F59: 2130 ecx = MEM32(edi + 0x60); /* 0x3A004F59: mov ecx, dword ptr [edi + 0x60] */ 2131 /* test ecx, ecx */ /* 0x3A004F5C: test ecx, ecx */ 2132 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2133 _cf = 0; 2134 _flag_k = FK_TEST; 2135 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004F77; /* 0x3A004F5E: je 0x3a004f77 */ 2136 L_3A004F60: 2137 RECOMP_ICALL(0x3A008410u); /* 0x3A004F60: call 0x3a008410 */ /* not lifted */ 2138 RECOMP_FLAGS_IN(); 2139 /* test LO8(eax), LO8(eax) */ /* 0x3A004F65: test al, al */ 2140 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2141 _cf = 0; 2142 _flag_k = FK_NARROW(FK_TEST, 24); 2143 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004F77; /* 0x3A004F67: je 0x3a004f77 */ 2144 L_3A004F69: 2145 eax = MEM32(0x3A00D038); /* 0x3A004F69: mov eax, dword ptr [0x3a00d038] */ 2146 ecx = MEM32(edi + 0x60); /* 0x3A004F6E: mov ecx, dword ptr [edi + 0x60] */ 2147 PUSH32(esp, eax); /* 0x3A004F71: push eax */ 2148 RECOMP_ICALL(0x3A008620u); /* 0x3A004F72: call 0x3a008620 */ /* not lifted */ 2149 RECOMP_FLAGS_IN(); 2150 L_3A004F77: 2151 RECOMP_ICALL(MEM32(0x3A00A08C)); /* 0x3A004F77: call dword ptr [0x3a00a08c] */ 2152 RECOMP_FLAGS_IN(); 2153 ecx = MEM32(eax + 0x14); /* 0x3A004F7D: mov ecx, dword ptr [eax + 0x14] */ 2154 edx = MEM32(ecx); /* 0x3A004F80: mov edx, dword ptr [ecx] */ 2155 MEM32(ebp + (-0x8)) = edx; /* 0x3A004F82: mov dword ptr [ebp - 8], edx */ 2156 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3A004F85: fld dword ptr [ebp - 8] */ 2157 _st[0] += (double)*(float*)ADDR(edi + 0x6C); /* 0x3A004F88: fadd dword ptr [edi + 0x6c] */ 2158 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A180)); /* 0x3A004F8B: fcom dword ptr [0x3a00a180] */ 2159 { float _v = (float)_st[0]; *(float*)ADDR(edi + 0x6C) = _v; } /* 0x3A004F91: fst dword ptr [edi + 0x6c] */ 2160 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A004F94: fnstsw ax */ 2161 /* test HI8(eax), 0x41u */ /* 0x3A004F96: test ah, 0x41 */ 2162 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2163 _cf = 0; 2164 _flag_k = FK_NARROW(FK_TEST, 24); 2165 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A004FB9; /* 0x3A004F99: jne 0x3a004fb9 */ 2166 L_3A004F9B: 2167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2169 esp = esp - 8; /* 0x3A004F9B: sub esp, 8 */ 2170 _flag_k = FK_CMP; 2171 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3A004F9E: fstp qword ptr [esp] */ 2172 RECOMP_ICALL(MEM32(0x3A00A028)); /* 0x3A004FA1: call dword ptr [0x3a00a028] */ 2173 RECOMP_FLAGS_IN(); 2174 eax = MEM32(edi + 0x70); /* 0x3A004FA7: mov eax, dword ptr [edi + 0x70] */ 2175 _st[0] = (double)*(float*)ADDR(edi + 0x6C) - _st[0]; /* 0x3A004FAA: fsubr dword ptr [edi + 0x6c] */ 2176 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2177 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2178 esp = esp + 8; /* 0x3A004FAD: add esp, 8 */ 2179 _flag_k = FK_ADD; 2180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2181 eax = eax + 1; /* 0x3A004FB0: inc eax */ 2182 _flag_k = FK_INC; 2183 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x6C) = _v; } /* 0x3A004FB1: fstp dword ptr [edi + 0x6c] */ 2184 MEM32(edi + 0x70) = eax; /* 0x3A004FB4: mov dword ptr [edi + 0x70], eax */ 2185 goto L_3A004FBB; /* 0x3A004FB7: jmp 0x3a004fbb */ 2186 L_3A004FB9: 2187 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3A004FB9: fstp st(0) */ 2188 L_3A004FBB: 2189 #if defined(RECOMP_PORTABLE) && !defined(_WIN32) 2190 linux_music_volume(edi); goto L_3A004FE1; 2191 #endif 2192 ecx = MEM32(0x3A00D2DC); /* 0x3A004FBB: mov ecx, dword ptr [0x3a00d2dc] */ 2193 /* test ecx, ecx */ /* 0x3A004FC1: test ecx, ecx */ 2194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2195 _cf = 0; 2196 _flag_k = FK_TEST; 2197 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004FE1; /* 0x3A004FC3: je 0x3a004fe1 */ 2198 L_3A004FC5: 2199 SET_LO8(eax, MEM8(0x3A00D040)); /* 0x3A004FC5: mov al, byte ptr [0x3a00d040] */ 2200 /* test LO8(eax), LO8(eax) */ /* 0x3A004FCA: test al, al */ 2201 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2202 _cf = 0; 2203 _flag_k = FK_NARROW(FK_TEST, 24); 2204 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004FE1; /* 0x3A004FCC: je 0x3a004fe1 */ 2205 L_3A004FCE: 2206 eax = MEM32(0x3A00D03C); /* 0x3A004FCE: mov eax, dword ptr [0x3a00d03c] */ 2207 PUSH32(esp, eax); /* 0x3A004FD3: push eax */ 2208 RECOMP_ICALL(MEM32(0x3A00A160)); /* 0x3A004FD4: call dword ptr [0x3a00a160] */ 2209 RECOMP_FLAGS_IN(); 2210 MEM8(0x3A00D040) = (uint8_t)(0); /* 0x3A004FDA: mov byte ptr [0x3a00d040], 0 */ 2211 L_3A004FE1: 2212 fp_push(*(float*)&MEM32(edi + 0xC0)); /* 0x3A004FE1: fld dword ptr [edi + 0xc0] */ 2213 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A004FE7: fcomp dword ptr [0x3a00a178] */ 2214 fp_pop(); 2215 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A004FED: fnstsw ax */ 2216 /* test HI8(eax), 0x41u */ /* 0x3A004FEF: test ah, 0x41 */ 2217 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2218 _cf = 0; 2219 _flag_k = FK_NARROW(FK_TEST, 24); 2220 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005003; /* 0x3A004FF2: jne 0x3a005003 */ 2221 L_3A004FF4: 2222 fp_push(*(float*)&MEM32(edi + 0xC0)); /* 0x3A004FF4: fld dword ptr [edi + 0xc0] */ 2223 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3A004FFA: fsub dword ptr [ebp - 8] */ 2224 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0xC0) = _v; } /* 0x3A004FFD: fstp dword ptr [edi + 0xc0] */ 2225 L_3A005003: 2226 fp_push(*(float*)&MEM32(edi + 0xC0)); /* 0x3A005003: fld dword ptr [edi + 0xc0] */ 2227 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005009: fcomp dword ptr [0x3a00a178] */ 2228 fp_pop(); 2229 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00500F: fnstsw ax */ 2230 /* test HI8(eax), 0x41u */ /* 0x3A005011: test ah, 0x41 */ 2231 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2232 _cf = 0; 2233 _flag_k = FK_NARROW(FK_TEST, 24); 2234 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00501D; /* 0x3A005014: je 0x3a00501d */ 2235 L_3A005016: 2236 ecx = edi; /* 0x3A005016: mov ecx, edi */ 2237 RECOMP_ICALL(0x3A0044B0u); /* 0x3A005018: call 0x3a0044b0 */ /* not lifted */ 2238 RECOMP_FLAGS_IN(); 2239 L_3A00501D: 2240 edx = MEM32(edi + 0x58); /* 0x3A00501D: mov edx, dword ptr [edi + 0x58] */ 2241 ecx = MEM32(edi + 0x48); /* 0x3A005020: mov ecx, dword ptr [edi + 0x48] */ 2242 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2243 edx = edx + 1; /* 0x3A005023: inc edx */ 2244 _flag_k = FK_INC; 2245 MEM32(edi + 0xA8) = 0; /* 0x3A005024: mov dword ptr [edi + 0xa8], 0 */ 2246 MEM32(edi + 0x58) = edx; /* 0x3A00502E: mov dword ptr [edi + 0x58], edx */ 2247 eax = MEM32(ecx + 0x4); /* 0x3A005031: mov eax, dword ptr [ecx + 4] */ 2248 esi = MEM32(eax); /* 0x3A005034: mov esi, dword ptr [eax] */ 2249 /* cmp esi, eax */ /* 0x3A005036: cmp esi, eax */ 2250 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2252 _flag_k = FK_CMP; 2253 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0050E7; /* 0x3A005038: je 0x3a0050e7 */ 2254 L_3A00503E: 2255 fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x3A00503E: fld dword ptr [esi + 0x24] */ 2256 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3A005041: fsub dword ptr [ebp - 8] */ 2257 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x24) = _v; } /* 0x3A005044: fst dword ptr [esi + 0x24] */ 2258 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005047: fcomp dword ptr [0x3a00a178] */ 2259 fp_pop(); 2260 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00504D: fnstsw ax */ 2261 /* test HI8(eax), 0x41u */ /* 0x3A00504F: test ah, 0x41 */ 2262 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2263 _cf = 0; 2264 _flag_k = FK_NARROW(FK_TEST, 24); 2265 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005063; /* 0x3A005052: jne 0x3a005063 */ 2266 L_3A005054: 2267 edx = MEM32(edi + 0x48); /* 0x3A005054: mov edx, dword ptr [edi + 0x48] */ 2268 esi = MEM32(esi); /* 0x3A005057: mov esi, dword ptr [esi] */ 2269 /* cmp esi, MEM32(edx + 0x4) */ /* 0x3A005059: cmp esi, dword ptr [edx + 4] */ 2270 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2272 _flag_k = FK_CMP; 2273 RECOMP_BACKEDGE(); 2274 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00503E; /* 0x3A00505C: jne 0x3a00503e */ 2275 L_3A00505E: 2276 goto L_3A0050E7; /* 0x3A00505E: jmp 0x3a0050e7 */ 2277 L_3A005063: 2278 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2280 esp = esp - 0xCu; /* 0x3A005063: sub esp, 0xc */ 2281 _flag_k = FK_CMP; 2282 eax = esp; /* 0x3A005066: mov eax, esp */ 2283 PUSH32(esp, 0); /* 0x3A005068: push 0 */ 2284 PUSH32(esp, 1); /* 0x3A00506A: push 1 */ 2285 PUSH32(esp, 0x64u); /* 0x3A00506C: push 0x64 */ 2286 MEM32(ebp + (-0x14)) = 0; /* 0x3A00506E: mov dword ptr [ebp - 0x14], 0 */ 2287 ecx = MEM32(ebp + (-0x14)); /* 0x3A005075: mov ecx, dword ptr [ebp - 0x14] */ 2288 MEM32(eax) = ecx; /* 0x3A005078: mov dword ptr [eax], ecx */ 2289 PUSH32(esp, 0); /* 0x3A00507A: push 0 */ 2290 MEM32(ebp + (-0x10)) = 0; /* 0x3A00507C: mov dword ptr [ebp - 0x10], 0 */ 2291 edx = MEM32(ebp + (-0x10)); /* 0x3A005083: mov edx, dword ptr [ebp - 0x10] */ 2292 MEM32(eax + 0x4) = edx; /* 0x3A005086: mov dword ptr [eax + 4], edx */ 2293 edx = MEM32(esi + 0x20); /* 0x3A005089: mov edx, dword ptr [esi + 0x20] */ 2294 PUSH32(esp, edx); /* 0x3A00508C: push edx */ 2295 MEM32(ebp + (-0xC)) = 0; /* 0x3A00508D: mov dword ptr [ebp - 0xc], 0 */ 2296 ecx = MEM32(ebp + (-0xC)); /* 0x3A005094: mov ecx, dword ptr [ebp - 0xc] */ 2297 MEM32(eax + 0x8) = ecx; /* 0x3A005097: mov dword ptr [eax + 8], ecx */ 2298 eax = MEM32(esi + 0x1C); /* 0x3A00509A: mov eax, dword ptr [esi + 0x1c] */ 2299 PUSH32(esp, eax); /* 0x3A00509D: push eax */ 2300 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2302 esp = esp - 0xCu; /* 0x3A00509E: sub esp, 0xc */ 2303 _flag_k = FK_CMP; 2304 ecx = esi + 0x10; /* 0x3A0050A1: lea ecx, [esi + 0x10] */ 2305 eax = MEM32(ecx); /* 0x3A0050A4: mov eax, dword ptr [ecx] */ 2306 edx = esp; /* 0x3A0050A6: mov edx, esp */ 2307 MEM32(edx) = eax; /* 0x3A0050A8: mov dword ptr [edx], eax */ 2308 eax = MEM32(ecx + 0x4); /* 0x3A0050AA: mov eax, dword ptr [ecx + 4] */ 2309 ecx = MEM32(ecx + 0x8); /* 0x3A0050AD: mov ecx, dword ptr [ecx + 8] */ 2310 MEM32(edx + 0x4) = eax; /* 0x3A0050B0: mov dword ptr [edx + 4], eax */ 2311 eax = MEM32(esi + 0x8); /* 0x3A0050B3: mov eax, dword ptr [esi + 8] */ 2312 MEM32(edx + 0x8) = ecx; /* 0x3A0050B6: mov dword ptr [edx + 8], ecx */ 2313 edx = MEM32(esi + 0xC); /* 0x3A0050B9: mov edx, dword ptr [esi + 0xc] */ 2314 PUSH32(esp, edx); /* 0x3A0050BC: push edx */ 2315 PUSH32(esp, eax); /* 0x3A0050BD: push eax */ 2316 ecx = edi; /* 0x3A0050BE: mov ecx, edi */ 2317 RECOMP_ICALL(0x3A002360u); /* 0x3A0050C0: call 0x3a002360 */ /* not lifted */ 2318 RECOMP_FLAGS_IN(); 2319 ecx = MEM32(esi + 0x4); /* 0x3A0050C5: mov ecx, dword ptr [esi + 4] */ 2320 edx = MEM32(esi); /* 0x3A0050C8: mov edx, dword ptr [esi] */ 2321 ebx = MEM32(edi + 0x48); /* 0x3A0050CA: mov ebx, dword ptr [edi + 0x48] */ 2322 MEM32(ecx) = edx; /* 0x3A0050CD: mov dword ptr [ecx], edx */ 2323 eax = MEM32(esi); /* 0x3A0050CF: mov eax, dword ptr [esi] */ 2324 ecx = MEM32(esi + 0x4); /* 0x3A0050D1: mov ecx, dword ptr [esi + 4] */ 2325 PUSH32(esp, esi); /* 0x3A0050D4: push esi */ 2326 MEM32(eax + 0x4) = ecx; /* 0x3A0050D5: mov dword ptr [eax + 4], ecx */ 2327 RECOMP_ICALL(0x3A008F76u); /* 0x3A0050D8: call 0x3a008f76 */ /* not lifted */ 2328 RECOMP_FLAGS_IN(); 2329 eax = MEM32(ebx + 0x8); /* 0x3A0050DD: mov eax, dword ptr [ebx + 8] */ 2330 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2331 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2332 esp = esp + 4; /* 0x3A0050E0: add esp, 4 */ 2333 _flag_k = FK_ADD; 2334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2335 eax = eax - 1; /* 0x3A0050E3: dec eax */ 2336 _flag_k = FK_DEC; 2337 MEM32(ebx + 0x8) = eax; /* 0x3A0050E4: mov dword ptr [ebx + 8], eax */ 2338 L_3A0050E7: 2339 eax = MEM32(edi + 0x44); /* 0x3A0050E7: mov eax, dword ptr [edi + 0x44] */ 2340 ecx = MEM32(eax + 0x4); /* 0x3A0050EA: mov ecx, dword ptr [eax + 4] */ 2341 eax = MEM32(ecx); /* 0x3A0050ED: mov eax, dword ptr [ecx] */ 2342 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2343 edx = 0; /* 0x3A0050EF: xor edx, edx */ 2344 _cf = 0; 2345 _flag_k = FK_TEST; 2346 /* cmp eax, ecx */ /* 0x3A0050F1: cmp eax, ecx */ 2347 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2349 _flag_k = FK_CMP; 2350 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005112; /* 0x3A0050F3: je 0x3a005112 */ 2351 L_3A0050F5: 2352 esi = ebp + (-0x814); /* 0x3A0050F5: lea esi, [ebp - 0x814] */ 2353 L_3A0050FB: 2354 /* cmp edx, 0x1FFu */ /* 0x3A0050FB: cmp edx, 0x1ff */ 2355 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1FFu); 2356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2357 _flag_k = FK_CMP; 2358 if (CMP_GE(_flag_a, _flag_b)) goto L_3A005112; /* 0x3A005101: jge 0x3a005112 */ 2359 L_3A005103: 2360 ebx = MEM32(eax + 0x8); /* 0x3A005103: mov ebx, dword ptr [eax + 8] */ 2361 eax = MEM32(eax); /* 0x3A005106: mov eax, dword ptr [eax] */ 2362 MEM32(esi) = ebx; /* 0x3A005108: mov dword ptr [esi], ebx */ 2363 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2364 edx = edx + 1; /* 0x3A00510A: inc edx */ 2365 _flag_k = FK_INC; 2366 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2367 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2368 esi = esi + 4; /* 0x3A00510B: add esi, 4 */ 2369 _flag_k = FK_ADD; 2370 /* cmp eax, ecx */ /* 0x3A00510E: cmp eax, ecx */ 2371 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2373 _flag_k = FK_CMP; 2374 RECOMP_BACKEDGE(); 2375 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0050FB; /* 0x3A005110: jne 0x3a0050fb */ 2376 L_3A005112: 2377 /* test edx, edx */ /* 0x3A005112: test edx, edx */ 2378 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2379 _cf = 0; 2380 _flag_k = FK_TEST; 2381 if (TEST_LE(_flag_a, _flag_b)) goto L_3A00512E; /* 0x3A005114: jle 0x3a00512e */ 2382 L_3A005116: 2383 esi = ebp + (-0x814); /* 0x3A005116: lea esi, [ebp - 0x814] */ 2384 ebx = edx; /* 0x3A00511C: mov ebx, edx */ 2385 L_3A00511E: 2386 ecx = MEM32(esi); /* 0x3A00511E: mov ecx, dword ptr [esi] */ 2387 PUSH32(esp, ecx); /* 0x3A005120: push ecx */ 2388 ecx = edi; /* 0x3A005121: mov ecx, edi */ 2389 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005123: call 0x3a0051e0 */ /* not lifted */ 2390 RECOMP_FLAGS_IN(); 2391 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2392 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2393 esi = esi + 4; /* 0x3A005128: add esi, 4 */ 2394 _flag_k = FK_ADD; 2395 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 2396 ebx = ebx - 1; /* 0x3A00512B: dec ebx */ 2397 _flag_k = FK_DEC; 2398 RECOMP_BACKEDGE(); 2399 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3A00511E; /* 0x3A00512C: jne 0x3a00511e */ 2400 L_3A00512E: 2401 edx = MEM32(edi + 0x10); /* 0x3A00512E: mov edx, dword ptr [edi + 0x10] */ 2402 ecx = MEM32(edx + 0x4); /* 0x3A005131: mov ecx, dword ptr [edx + 4] */ 2403 eax = MEM32(ecx); /* 0x3A005134: mov eax, dword ptr [ecx] */ 2404 /* cmp eax, ecx */ /* 0x3A005136: cmp eax, ecx */ 2405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2407 _flag_k = FK_CMP; 2408 MEM32(ebp + (-0x4)) = eax; /* 0x3A005138: mov dword ptr [ebp - 4], eax */ 2409 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005186; /* 0x3A00513B: je 0x3a005186 */ 2410 L_3A00513D: 2411 goto L_3A005142; /* 0x3A00513D: jmp 0x3a005142 */ 2412 L_3A00513F: 2413 eax = MEM32(ebp + (-0x4)); /* 0x3A00513F: mov eax, dword ptr [ebp - 4] */ 2414 L_3A005142: 2415 esi = MEM32(eax + 0x8); /* 0x3A005142: mov esi, dword ptr [eax + 8] */ 2416 /* test esi, esi */ /* 0x3A005145: test esi, esi */ 2417 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2418 _cf = 0; 2419 _flag_k = FK_TEST; 2420 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005179; /* 0x3A005147: je 0x3a005179 */ 2421 L_3A005149: 2422 SET_LO8(ecx, MEM8(esi + 0xC)); /* 0x3A005149: mov cl, byte ptr [esi + 0xc] */ 2423 /* test LO8(ecx), LO8(ecx) */ /* 0x3A00514C: test cl, cl */ 2424 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2425 _cf = 0; 2426 _flag_k = FK_NARROW(FK_TEST, 24); 2427 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005175; /* 0x3A00514E: je 0x3a005175 */ 2428 L_3A005150: 2429 SET_LO8(ecx, MEM8(esi + 0x6)); /* 0x3A005150: mov cl, byte ptr [esi + 6] */ 2430 /* test LO8(ecx), LO8(ecx) */ /* 0x3A005153: test cl, cl */ 2431 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2432 _cf = 0; 2433 _flag_k = FK_NARROW(FK_TEST, 24); 2434 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005175; /* 0x3A005155: je 0x3a005175 */ 2435 L_3A005157: 2436 ebx = MEM32(esi + 0x20); /* 0x3A005157: mov ebx, dword ptr [esi + 0x20] */ 2437 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A00515A: call dword ptr [0x3a00a040] */ 2438 RECOMP_FLAGS_IN(); 2439 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A005160: cdq */ 2440 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x3A005161: idiv ebx */ 2441 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 2442 else { eax = 0; edx = 0; } } 2443 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3A005163: cmp edx, dword ptr [esi + 8] */ 2444 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2446 _flag_k = FK_CMP; 2447 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00516F; /* 0x3A005166: jne 0x3a00516f */ 2448 L_3A005168: 2449 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2450 edx = edx + 1; /* 0x3A005168: inc edx */ 2451 _flag_k = FK_INC; 2452 /* cmp edx, ebx */ /* 0x3A005169: cmp edx, ebx */ 2453 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 2454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2455 _flag_k = FK_CMP; 2456 if (CMP_L(_flag_a, _flag_b)) goto L_3A00516F; /* 0x3A00516B: jl 0x3a00516f */ 2457 L_3A00516D: 2458 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2459 edx = 0; /* 0x3A00516D: xor edx, edx */ 2460 _cf = 0; 2461 _flag_k = FK_TEST; 2462 L_3A00516F: 2463 eax = MEM32(ebp + (-0x4)); /* 0x3A00516F: mov eax, dword ptr [ebp - 4] */ 2464 MEM32(esi + 0x8) = edx; /* 0x3A005172: mov dword ptr [esi + 8], edx */ 2465 L_3A005175: 2466 MEM8(esi + 0x6) = (uint8_t)(0); /* 0x3A005175: mov byte ptr [esi + 6], 0 */ 2467 L_3A005179: 2468 ecx = MEM32(edi + 0x10); /* 0x3A005179: mov ecx, dword ptr [edi + 0x10] */ 2469 eax = MEM32(eax); /* 0x3A00517C: mov eax, dword ptr [eax] */ 2470 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A00517E: cmp eax, dword ptr [ecx + 4] */ 2471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2473 _flag_k = FK_CMP; 2474 MEM32(ebp + (-0x4)) = eax; /* 0x3A005181: mov dword ptr [ebp - 4], eax */ 2475 RECOMP_BACKEDGE(); 2476 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00513F; /* 0x3A005184: jne 0x3a00513f */ 2477 L_3A005186: 2478 ebx = MEM32(edi + 0x10); /* 0x3A005186: mov ebx, dword ptr [edi + 0x10] */ 2479 eax = MEM32(ebx + 0x4); /* 0x3A005189: mov eax, dword ptr [ebx + 4] */ 2480 esi = MEM32(eax); /* 0x3A00518C: mov esi, dword ptr [eax] */ 2481 /* cmp esi, eax */ /* 0x3A00518E: cmp esi, eax */ 2482 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2484 _flag_k = FK_CMP; 2485 MEM32(ebp + (-0x4)) = eax; /* 0x3A005190: mov dword ptr [ebp - 4], eax */ 2486 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0051BF; /* 0x3A005193: je 0x3a0051bf */ 2487 L_3A005195: 2488 eax = esi; /* 0x3A005195: mov eax, esi */ 2489 edx = MEM32(eax + 0x4); /* 0x3A005197: mov edx, dword ptr [eax + 4] */ 2490 ecx = MEM32(eax); /* 0x3A00519A: mov ecx, dword ptr [eax] */ 2491 esi = MEM32(esi); /* 0x3A00519C: mov esi, dword ptr [esi] */ 2492 MEM32(edx) = ecx; /* 0x3A00519E: mov dword ptr [edx], ecx */ 2493 edx = MEM32(eax); /* 0x3A0051A0: mov edx, dword ptr [eax] */ 2494 ecx = MEM32(eax + 0x4); /* 0x3A0051A2: mov ecx, dword ptr [eax + 4] */ 2495 PUSH32(esp, eax); /* 0x3A0051A5: push eax */ 2496 MEM32(edx + 0x4) = ecx; /* 0x3A0051A6: mov dword ptr [edx + 4], ecx */ 2497 RECOMP_ICALL(0x3A008F76u); /* 0x3A0051A9: call 0x3a008f76 */ /* not lifted */ 2498 RECOMP_FLAGS_IN(); 2499 ecx = MEM32(ebx + 0x8); /* 0x3A0051AE: mov ecx, dword ptr [ebx + 8] */ 2500 eax = MEM32(ebp + (-0x4)); /* 0x3A0051B1: mov eax, dword ptr [ebp - 4] */ 2501 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2502 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2503 esp = esp + 4; /* 0x3A0051B4: add esp, 4 */ 2504 _flag_k = FK_ADD; 2505 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2506 ecx = ecx - 1; /* 0x3A0051B7: dec ecx */ 2507 _flag_k = FK_DEC; 2508 /* cmp esi, eax */ /* 0x3A0051B8: cmp esi, eax */ 2509 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2511 _flag_k = FK_CMP; 2512 MEM32(ebx + 0x8) = ecx; /* 0x3A0051BA: mov dword ptr [ebx + 8], ecx */ 2513 RECOMP_BACKEDGE(); 2514 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005195; /* 0x3A0051BD: jne 0x3a005195 */ 2515 L_3A0051BF: 2516 edx = MEM32(ebp + (-0x8)); /* 0x3A0051BF: mov edx, dword ptr [ebp - 8] */ 2517 PUSH32(esp, edx); /* 0x3A0051C2: push edx */ 2518 ecx = edi; /* 0x3A0051C3: mov ecx, edi */ 2519 RECOMP_ICALL(0x3A003130u); /* 0x3A0051C5: call 0x3a003130 */ /* not lifted */ 2520 RECOMP_FLAGS_IN(); 2521 L_3A0051CA: 2522 edi = POP32_VAL(esp); /* 0x3A0051CA: pop edi */ 2523 esi = POP32_VAL(esp); /* 0x3A0051CB: pop esi */ 2524 ebx = POP32_VAL(esp); /* 0x3A0051CC: pop ebx */ 2525 esp = ebp; /* 0x3A0051CD: mov esp, ebp */ 2526 ebp = POP32_VAL(esp); /* 0x3A0051CF: pop ebp */ 2527 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0051D0: ret */ 2528 RECOMP_REGS_OUT(); 2529 } 2530 2531 void sub_3A004FBB(void) { 2532 int _fpu_cmp = 0; 2533 uint32_t _cf = 0; 2534 int _df = 1; 2535 uint32_t _flag_k = FK_NONE; 2536 uint32_t _flag_a = 0, _flag_b = 0; 2537 uint32_t _itail_tgt = 0; 2538 RECOMP_REGS_LOCALS 2539 RECOMP_ENTER(0x3A004FBBu); 2540 2541 L_3A004FBB: 2542 #if defined(RECOMP_PORTABLE) && !defined(_WIN32) 2543 linux_music_volume(edi); goto L_3A004FE1; 2544 #endif 2545 ecx = MEM32(0x3A00D2DC); /* 0x3A004FBB: mov ecx, dword ptr [0x3a00d2dc] */ 2546 /* test ecx, ecx */ /* 0x3A004FC1: test ecx, ecx */ 2547 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2548 _cf = 0; 2549 _flag_k = FK_TEST; 2550 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004FE1; /* 0x3A004FC3: je 0x3a004fe1 */ 2551 L_3A004FC5: 2552 SET_LO8(eax, MEM8(0x3A00D040)); /* 0x3A004FC5: mov al, byte ptr [0x3a00d040] */ 2553 /* test LO8(eax), LO8(eax) */ /* 0x3A004FCA: test al, al */ 2554 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2555 _cf = 0; 2556 _flag_k = FK_NARROW(FK_TEST, 24); 2557 if (TEST_Z(_flag_a, _flag_b)) goto L_3A004FE1; /* 0x3A004FCC: je 0x3a004fe1 */ 2558 L_3A004FCE: 2559 eax = MEM32(0x3A00D03C); /* 0x3A004FCE: mov eax, dword ptr [0x3a00d03c] */ 2560 PUSH32(esp, eax); /* 0x3A004FD3: push eax */ 2561 RECOMP_ICALL(MEM32(0x3A00A160)); /* 0x3A004FD4: call dword ptr [0x3a00a160] */ 2562 RECOMP_FLAGS_IN(); 2563 MEM8(0x3A00D040) = (uint8_t)(0); /* 0x3A004FDA: mov byte ptr [0x3a00d040], 0 */ 2564 L_3A004FE1: 2565 fp_push(*(float*)&MEM32(edi + 0xC0)); /* 0x3A004FE1: fld dword ptr [edi + 0xc0] */ 2566 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A004FE7: fcomp dword ptr [0x3a00a178] */ 2567 fp_pop(); 2568 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A004FED: fnstsw ax */ 2569 /* test HI8(eax), 0x41u */ /* 0x3A004FEF: test ah, 0x41 */ 2570 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2571 _cf = 0; 2572 _flag_k = FK_NARROW(FK_TEST, 24); 2573 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005003; /* 0x3A004FF2: jne 0x3a005003 */ 2574 L_3A004FF4: 2575 fp_push(*(float*)&MEM32(edi + 0xC0)); /* 0x3A004FF4: fld dword ptr [edi + 0xc0] */ 2576 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3A004FFA: fsub dword ptr [ebp - 8] */ 2577 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0xC0) = _v; } /* 0x3A004FFD: fstp dword ptr [edi + 0xc0] */ 2578 L_3A005003: 2579 fp_push(*(float*)&MEM32(edi + 0xC0)); /* 0x3A005003: fld dword ptr [edi + 0xc0] */ 2580 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005009: fcomp dword ptr [0x3a00a178] */ 2581 fp_pop(); 2582 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00500F: fnstsw ax */ 2583 /* test HI8(eax), 0x41u */ /* 0x3A005011: test ah, 0x41 */ 2584 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2585 _cf = 0; 2586 _flag_k = FK_NARROW(FK_TEST, 24); 2587 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00501D; /* 0x3A005014: je 0x3a00501d */ 2588 L_3A005016: 2589 ecx = edi; /* 0x3A005016: mov ecx, edi */ 2590 RECOMP_ICALL(0x3A0044B0u); /* 0x3A005018: call 0x3a0044b0 */ /* not lifted */ 2591 RECOMP_FLAGS_IN(); 2592 L_3A00501D: 2593 edx = MEM32(edi + 0x58); /* 0x3A00501D: mov edx, dword ptr [edi + 0x58] */ 2594 ecx = MEM32(edi + 0x48); /* 0x3A005020: mov ecx, dword ptr [edi + 0x48] */ 2595 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2596 edx = edx + 1; /* 0x3A005023: inc edx */ 2597 _flag_k = FK_INC; 2598 MEM32(edi + 0xA8) = 0; /* 0x3A005024: mov dword ptr [edi + 0xa8], 0 */ 2599 MEM32(edi + 0x58) = edx; /* 0x3A00502E: mov dword ptr [edi + 0x58], edx */ 2600 eax = MEM32(ecx + 0x4); /* 0x3A005031: mov eax, dword ptr [ecx + 4] */ 2601 esi = MEM32(eax); /* 0x3A005034: mov esi, dword ptr [eax] */ 2602 /* cmp esi, eax */ /* 0x3A005036: cmp esi, eax */ 2603 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2605 _flag_k = FK_CMP; 2606 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0050E7; /* 0x3A005038: je 0x3a0050e7 */ 2607 L_3A00503E: 2608 fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x3A00503E: fld dword ptr [esi + 0x24] */ 2609 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3A005041: fsub dword ptr [ebp - 8] */ 2610 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x24) = _v; } /* 0x3A005044: fst dword ptr [esi + 0x24] */ 2611 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005047: fcomp dword ptr [0x3a00a178] */ 2612 fp_pop(); 2613 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00504D: fnstsw ax */ 2614 /* test HI8(eax), 0x41u */ /* 0x3A00504F: test ah, 0x41 */ 2615 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2616 _cf = 0; 2617 _flag_k = FK_NARROW(FK_TEST, 24); 2618 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005063; /* 0x3A005052: jne 0x3a005063 */ 2619 L_3A005054: 2620 edx = MEM32(edi + 0x48); /* 0x3A005054: mov edx, dword ptr [edi + 0x48] */ 2621 esi = MEM32(esi); /* 0x3A005057: mov esi, dword ptr [esi] */ 2622 /* cmp esi, MEM32(edx + 0x4) */ /* 0x3A005059: cmp esi, dword ptr [edx + 4] */ 2623 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2625 _flag_k = FK_CMP; 2626 RECOMP_BACKEDGE(); 2627 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00503E; /* 0x3A00505C: jne 0x3a00503e */ 2628 L_3A00505E: 2629 goto L_3A0050E7; /* 0x3A00505E: jmp 0x3a0050e7 */ 2630 L_3A005063: 2631 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2633 esp = esp - 0xCu; /* 0x3A005063: sub esp, 0xc */ 2634 _flag_k = FK_CMP; 2635 eax = esp; /* 0x3A005066: mov eax, esp */ 2636 PUSH32(esp, 0); /* 0x3A005068: push 0 */ 2637 PUSH32(esp, 1); /* 0x3A00506A: push 1 */ 2638 PUSH32(esp, 0x64u); /* 0x3A00506C: push 0x64 */ 2639 MEM32(ebp + (-0x14)) = 0; /* 0x3A00506E: mov dword ptr [ebp - 0x14], 0 */ 2640 ecx = MEM32(ebp + (-0x14)); /* 0x3A005075: mov ecx, dword ptr [ebp - 0x14] */ 2641 MEM32(eax) = ecx; /* 0x3A005078: mov dword ptr [eax], ecx */ 2642 PUSH32(esp, 0); /* 0x3A00507A: push 0 */ 2643 MEM32(ebp + (-0x10)) = 0; /* 0x3A00507C: mov dword ptr [ebp - 0x10], 0 */ 2644 edx = MEM32(ebp + (-0x10)); /* 0x3A005083: mov edx, dword ptr [ebp - 0x10] */ 2645 MEM32(eax + 0x4) = edx; /* 0x3A005086: mov dword ptr [eax + 4], edx */ 2646 edx = MEM32(esi + 0x20); /* 0x3A005089: mov edx, dword ptr [esi + 0x20] */ 2647 PUSH32(esp, edx); /* 0x3A00508C: push edx */ 2648 MEM32(ebp + (-0xC)) = 0; /* 0x3A00508D: mov dword ptr [ebp - 0xc], 0 */ 2649 ecx = MEM32(ebp + (-0xC)); /* 0x3A005094: mov ecx, dword ptr [ebp - 0xc] */ 2650 MEM32(eax + 0x8) = ecx; /* 0x3A005097: mov dword ptr [eax + 8], ecx */ 2651 eax = MEM32(esi + 0x1C); /* 0x3A00509A: mov eax, dword ptr [esi + 0x1c] */ 2652 PUSH32(esp, eax); /* 0x3A00509D: push eax */ 2653 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2655 esp = esp - 0xCu; /* 0x3A00509E: sub esp, 0xc */ 2656 _flag_k = FK_CMP; 2657 ecx = esi + 0x10; /* 0x3A0050A1: lea ecx, [esi + 0x10] */ 2658 eax = MEM32(ecx); /* 0x3A0050A4: mov eax, dword ptr [ecx] */ 2659 edx = esp; /* 0x3A0050A6: mov edx, esp */ 2660 MEM32(edx) = eax; /* 0x3A0050A8: mov dword ptr [edx], eax */ 2661 eax = MEM32(ecx + 0x4); /* 0x3A0050AA: mov eax, dword ptr [ecx + 4] */ 2662 ecx = MEM32(ecx + 0x8); /* 0x3A0050AD: mov ecx, dword ptr [ecx + 8] */ 2663 MEM32(edx + 0x4) = eax; /* 0x3A0050B0: mov dword ptr [edx + 4], eax */ 2664 eax = MEM32(esi + 0x8); /* 0x3A0050B3: mov eax, dword ptr [esi + 8] */ 2665 MEM32(edx + 0x8) = ecx; /* 0x3A0050B6: mov dword ptr [edx + 8], ecx */ 2666 edx = MEM32(esi + 0xC); /* 0x3A0050B9: mov edx, dword ptr [esi + 0xc] */ 2667 PUSH32(esp, edx); /* 0x3A0050BC: push edx */ 2668 PUSH32(esp, eax); /* 0x3A0050BD: push eax */ 2669 ecx = edi; /* 0x3A0050BE: mov ecx, edi */ 2670 RECOMP_ICALL(0x3A002360u); /* 0x3A0050C0: call 0x3a002360 */ /* not lifted */ 2671 RECOMP_FLAGS_IN(); 2672 ecx = MEM32(esi + 0x4); /* 0x3A0050C5: mov ecx, dword ptr [esi + 4] */ 2673 edx = MEM32(esi); /* 0x3A0050C8: mov edx, dword ptr [esi] */ 2674 ebx = MEM32(edi + 0x48); /* 0x3A0050CA: mov ebx, dword ptr [edi + 0x48] */ 2675 MEM32(ecx) = edx; /* 0x3A0050CD: mov dword ptr [ecx], edx */ 2676 eax = MEM32(esi); /* 0x3A0050CF: mov eax, dword ptr [esi] */ 2677 ecx = MEM32(esi + 0x4); /* 0x3A0050D1: mov ecx, dword ptr [esi + 4] */ 2678 PUSH32(esp, esi); /* 0x3A0050D4: push esi */ 2679 MEM32(eax + 0x4) = ecx; /* 0x3A0050D5: mov dword ptr [eax + 4], ecx */ 2680 RECOMP_ICALL(0x3A008F76u); /* 0x3A0050D8: call 0x3a008f76 */ /* not lifted */ 2681 RECOMP_FLAGS_IN(); 2682 eax = MEM32(ebx + 0x8); /* 0x3A0050DD: mov eax, dword ptr [ebx + 8] */ 2683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2685 esp = esp + 4; /* 0x3A0050E0: add esp, 4 */ 2686 _flag_k = FK_ADD; 2687 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2688 eax = eax - 1; /* 0x3A0050E3: dec eax */ 2689 _flag_k = FK_DEC; 2690 MEM32(ebx + 0x8) = eax; /* 0x3A0050E4: mov dword ptr [ebx + 8], eax */ 2691 L_3A0050E7: 2692 eax = MEM32(edi + 0x44); /* 0x3A0050E7: mov eax, dword ptr [edi + 0x44] */ 2693 ecx = MEM32(eax + 0x4); /* 0x3A0050EA: mov ecx, dword ptr [eax + 4] */ 2694 eax = MEM32(ecx); /* 0x3A0050ED: mov eax, dword ptr [ecx] */ 2695 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2696 edx = 0; /* 0x3A0050EF: xor edx, edx */ 2697 _cf = 0; 2698 _flag_k = FK_TEST; 2699 /* cmp eax, ecx */ /* 0x3A0050F1: cmp eax, ecx */ 2700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2702 _flag_k = FK_CMP; 2703 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005112; /* 0x3A0050F3: je 0x3a005112 */ 2704 L_3A0050F5: 2705 esi = ebp + (-0x814); /* 0x3A0050F5: lea esi, [ebp - 0x814] */ 2706 L_3A0050FB: 2707 /* cmp edx, 0x1FFu */ /* 0x3A0050FB: cmp edx, 0x1ff */ 2708 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1FFu); 2709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2710 _flag_k = FK_CMP; 2711 if (CMP_GE(_flag_a, _flag_b)) goto L_3A005112; /* 0x3A005101: jge 0x3a005112 */ 2712 L_3A005103: 2713 ebx = MEM32(eax + 0x8); /* 0x3A005103: mov ebx, dword ptr [eax + 8] */ 2714 eax = MEM32(eax); /* 0x3A005106: mov eax, dword ptr [eax] */ 2715 MEM32(esi) = ebx; /* 0x3A005108: mov dword ptr [esi], ebx */ 2716 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2717 edx = edx + 1; /* 0x3A00510A: inc edx */ 2718 _flag_k = FK_INC; 2719 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2720 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2721 esi = esi + 4; /* 0x3A00510B: add esi, 4 */ 2722 _flag_k = FK_ADD; 2723 /* cmp eax, ecx */ /* 0x3A00510E: cmp eax, ecx */ 2724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2726 _flag_k = FK_CMP; 2727 RECOMP_BACKEDGE(); 2728 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0050FB; /* 0x3A005110: jne 0x3a0050fb */ 2729 L_3A005112: 2730 /* test edx, edx */ /* 0x3A005112: test edx, edx */ 2731 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2732 _cf = 0; 2733 _flag_k = FK_TEST; 2734 if (TEST_LE(_flag_a, _flag_b)) goto L_3A00512E; /* 0x3A005114: jle 0x3a00512e */ 2735 L_3A005116: 2736 esi = ebp + (-0x814); /* 0x3A005116: lea esi, [ebp - 0x814] */ 2737 ebx = edx; /* 0x3A00511C: mov ebx, edx */ 2738 L_3A00511E: 2739 ecx = MEM32(esi); /* 0x3A00511E: mov ecx, dword ptr [esi] */ 2740 PUSH32(esp, ecx); /* 0x3A005120: push ecx */ 2741 ecx = edi; /* 0x3A005121: mov ecx, edi */ 2742 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005123: call 0x3a0051e0 */ /* not lifted */ 2743 RECOMP_FLAGS_IN(); 2744 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2746 esi = esi + 4; /* 0x3A005128: add esi, 4 */ 2747 _flag_k = FK_ADD; 2748 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 2749 ebx = ebx - 1; /* 0x3A00512B: dec ebx */ 2750 _flag_k = FK_DEC; 2751 RECOMP_BACKEDGE(); 2752 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3A00511E; /* 0x3A00512C: jne 0x3a00511e */ 2753 L_3A00512E: 2754 edx = MEM32(edi + 0x10); /* 0x3A00512E: mov edx, dword ptr [edi + 0x10] */ 2755 ecx = MEM32(edx + 0x4); /* 0x3A005131: mov ecx, dword ptr [edx + 4] */ 2756 eax = MEM32(ecx); /* 0x3A005134: mov eax, dword ptr [ecx] */ 2757 /* cmp eax, ecx */ /* 0x3A005136: cmp eax, ecx */ 2758 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2760 _flag_k = FK_CMP; 2761 MEM32(ebp + (-0x4)) = eax; /* 0x3A005138: mov dword ptr [ebp - 4], eax */ 2762 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005186; /* 0x3A00513B: je 0x3a005186 */ 2763 L_3A00513D: 2764 goto L_3A005142; /* 0x3A00513D: jmp 0x3a005142 */ 2765 L_3A00513F: 2766 eax = MEM32(ebp + (-0x4)); /* 0x3A00513F: mov eax, dword ptr [ebp - 4] */ 2767 L_3A005142: 2768 esi = MEM32(eax + 0x8); /* 0x3A005142: mov esi, dword ptr [eax + 8] */ 2769 /* test esi, esi */ /* 0x3A005145: test esi, esi */ 2770 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2771 _cf = 0; 2772 _flag_k = FK_TEST; 2773 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005179; /* 0x3A005147: je 0x3a005179 */ 2774 L_3A005149: 2775 SET_LO8(ecx, MEM8(esi + 0xC)); /* 0x3A005149: mov cl, byte ptr [esi + 0xc] */ 2776 /* test LO8(ecx), LO8(ecx) */ /* 0x3A00514C: test cl, cl */ 2777 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2778 _cf = 0; 2779 _flag_k = FK_NARROW(FK_TEST, 24); 2780 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005175; /* 0x3A00514E: je 0x3a005175 */ 2781 L_3A005150: 2782 SET_LO8(ecx, MEM8(esi + 0x6)); /* 0x3A005150: mov cl, byte ptr [esi + 6] */ 2783 /* test LO8(ecx), LO8(ecx) */ /* 0x3A005153: test cl, cl */ 2784 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2785 _cf = 0; 2786 _flag_k = FK_NARROW(FK_TEST, 24); 2787 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005175; /* 0x3A005155: je 0x3a005175 */ 2788 L_3A005157: 2789 ebx = MEM32(esi + 0x20); /* 0x3A005157: mov ebx, dword ptr [esi + 0x20] */ 2790 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A00515A: call dword ptr [0x3a00a040] */ 2791 RECOMP_FLAGS_IN(); 2792 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A005160: cdq */ 2793 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x3A005161: idiv ebx */ 2794 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 2795 else { eax = 0; edx = 0; } } 2796 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3A005163: cmp edx, dword ptr [esi + 8] */ 2797 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2799 _flag_k = FK_CMP; 2800 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00516F; /* 0x3A005166: jne 0x3a00516f */ 2801 L_3A005168: 2802 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2803 edx = edx + 1; /* 0x3A005168: inc edx */ 2804 _flag_k = FK_INC; 2805 /* cmp edx, ebx */ /* 0x3A005169: cmp edx, ebx */ 2806 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 2807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2808 _flag_k = FK_CMP; 2809 if (CMP_L(_flag_a, _flag_b)) goto L_3A00516F; /* 0x3A00516B: jl 0x3a00516f */ 2810 L_3A00516D: 2811 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2812 edx = 0; /* 0x3A00516D: xor edx, edx */ 2813 _cf = 0; 2814 _flag_k = FK_TEST; 2815 L_3A00516F: 2816 eax = MEM32(ebp + (-0x4)); /* 0x3A00516F: mov eax, dword ptr [ebp - 4] */ 2817 MEM32(esi + 0x8) = edx; /* 0x3A005172: mov dword ptr [esi + 8], edx */ 2818 L_3A005175: 2819 MEM8(esi + 0x6) = (uint8_t)(0); /* 0x3A005175: mov byte ptr [esi + 6], 0 */ 2820 L_3A005179: 2821 ecx = MEM32(edi + 0x10); /* 0x3A005179: mov ecx, dword ptr [edi + 0x10] */ 2822 eax = MEM32(eax); /* 0x3A00517C: mov eax, dword ptr [eax] */ 2823 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A00517E: cmp eax, dword ptr [ecx + 4] */ 2824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2826 _flag_k = FK_CMP; 2827 MEM32(ebp + (-0x4)) = eax; /* 0x3A005181: mov dword ptr [ebp - 4], eax */ 2828 RECOMP_BACKEDGE(); 2829 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00513F; /* 0x3A005184: jne 0x3a00513f */ 2830 L_3A005186: 2831 ebx = MEM32(edi + 0x10); /* 0x3A005186: mov ebx, dword ptr [edi + 0x10] */ 2832 eax = MEM32(ebx + 0x4); /* 0x3A005189: mov eax, dword ptr [ebx + 4] */ 2833 esi = MEM32(eax); /* 0x3A00518C: mov esi, dword ptr [eax] */ 2834 /* cmp esi, eax */ /* 0x3A00518E: cmp esi, eax */ 2835 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2837 _flag_k = FK_CMP; 2838 MEM32(ebp + (-0x4)) = eax; /* 0x3A005190: mov dword ptr [ebp - 4], eax */ 2839 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0051BF; /* 0x3A005193: je 0x3a0051bf */ 2840 L_3A005195: 2841 eax = esi; /* 0x3A005195: mov eax, esi */ 2842 edx = MEM32(eax + 0x4); /* 0x3A005197: mov edx, dword ptr [eax + 4] */ 2843 ecx = MEM32(eax); /* 0x3A00519A: mov ecx, dword ptr [eax] */ 2844 esi = MEM32(esi); /* 0x3A00519C: mov esi, dword ptr [esi] */ 2845 MEM32(edx) = ecx; /* 0x3A00519E: mov dword ptr [edx], ecx */ 2846 edx = MEM32(eax); /* 0x3A0051A0: mov edx, dword ptr [eax] */ 2847 ecx = MEM32(eax + 0x4); /* 0x3A0051A2: mov ecx, dword ptr [eax + 4] */ 2848 PUSH32(esp, eax); /* 0x3A0051A5: push eax */ 2849 MEM32(edx + 0x4) = ecx; /* 0x3A0051A6: mov dword ptr [edx + 4], ecx */ 2850 RECOMP_ICALL(0x3A008F76u); /* 0x3A0051A9: call 0x3a008f76 */ /* not lifted */ 2851 RECOMP_FLAGS_IN(); 2852 ecx = MEM32(ebx + 0x8); /* 0x3A0051AE: mov ecx, dword ptr [ebx + 8] */ 2853 eax = MEM32(ebp + (-0x4)); /* 0x3A0051B1: mov eax, dword ptr [ebp - 4] */ 2854 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2855 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2856 esp = esp + 4; /* 0x3A0051B4: add esp, 4 */ 2857 _flag_k = FK_ADD; 2858 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2859 ecx = ecx - 1; /* 0x3A0051B7: dec ecx */ 2860 _flag_k = FK_DEC; 2861 /* cmp esi, eax */ /* 0x3A0051B8: cmp esi, eax */ 2862 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2864 _flag_k = FK_CMP; 2865 MEM32(ebx + 0x8) = ecx; /* 0x3A0051BA: mov dword ptr [ebx + 8], ecx */ 2866 RECOMP_BACKEDGE(); 2867 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005195; /* 0x3A0051BD: jne 0x3a005195 */ 2868 L_3A0051BF: 2869 edx = MEM32(ebp + (-0x8)); /* 0x3A0051BF: mov edx, dword ptr [ebp - 8] */ 2870 PUSH32(esp, edx); /* 0x3A0051C2: push edx */ 2871 ecx = edi; /* 0x3A0051C3: mov ecx, edi */ 2872 RECOMP_ICALL(0x3A003130u); /* 0x3A0051C5: call 0x3a003130 */ /* not lifted */ 2873 RECOMP_FLAGS_IN(); 2874 edi = POP32_VAL(esp); /* 0x3A0051CA: pop edi */ 2875 esi = POP32_VAL(esp); /* 0x3A0051CB: pop esi */ 2876 ebx = POP32_VAL(esp); /* 0x3A0051CC: pop ebx */ 2877 esp = ebp; /* 0x3A0051CD: mov esp, ebp */ 2878 ebp = POP32_VAL(esp); /* 0x3A0051CF: pop ebp */ 2879 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0051D0: ret */ 2880 RECOMP_REGS_OUT(); 2881 } 2882 2883 void sub_3A0050E7(void) { 2884 int _fpu_cmp = 0; 2885 uint32_t _cf = 0; 2886 int _df = 1; 2887 uint32_t _flag_k = FK_NONE; 2888 uint32_t _flag_a = 0, _flag_b = 0; 2889 uint32_t _itail_tgt = 0; 2890 RECOMP_REGS_LOCALS 2891 RECOMP_ENTER(0x3A0050E7u); 2892 2893 L_3A0050E7: 2894 eax = MEM32(edi + 0x44); /* 0x3A0050E7: mov eax, dword ptr [edi + 0x44] */ 2895 ecx = MEM32(eax + 0x4); /* 0x3A0050EA: mov ecx, dword ptr [eax + 4] */ 2896 eax = MEM32(ecx); /* 0x3A0050ED: mov eax, dword ptr [ecx] */ 2897 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2898 edx = 0; /* 0x3A0050EF: xor edx, edx */ 2899 _cf = 0; 2900 _flag_k = FK_TEST; 2901 /* cmp eax, ecx */ /* 0x3A0050F1: cmp eax, ecx */ 2902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2904 _flag_k = FK_CMP; 2905 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005112; /* 0x3A0050F3: je 0x3a005112 */ 2906 L_3A0050F5: 2907 esi = ebp + (-0x814); /* 0x3A0050F5: lea esi, [ebp - 0x814] */ 2908 L_3A0050FB: 2909 /* cmp edx, 0x1FFu */ /* 0x3A0050FB: cmp edx, 0x1ff */ 2910 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1FFu); 2911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2912 _flag_k = FK_CMP; 2913 if (CMP_GE(_flag_a, _flag_b)) goto L_3A005112; /* 0x3A005101: jge 0x3a005112 */ 2914 L_3A005103: 2915 ebx = MEM32(eax + 0x8); /* 0x3A005103: mov ebx, dword ptr [eax + 8] */ 2916 eax = MEM32(eax); /* 0x3A005106: mov eax, dword ptr [eax] */ 2917 MEM32(esi) = ebx; /* 0x3A005108: mov dword ptr [esi], ebx */ 2918 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2919 edx = edx + 1; /* 0x3A00510A: inc edx */ 2920 _flag_k = FK_INC; 2921 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2923 esi = esi + 4; /* 0x3A00510B: add esi, 4 */ 2924 _flag_k = FK_ADD; 2925 /* cmp eax, ecx */ /* 0x3A00510E: cmp eax, ecx */ 2926 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2928 _flag_k = FK_CMP; 2929 RECOMP_BACKEDGE(); 2930 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0050FB; /* 0x3A005110: jne 0x3a0050fb */ 2931 L_3A005112: 2932 /* test edx, edx */ /* 0x3A005112: test edx, edx */ 2933 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2934 _cf = 0; 2935 _flag_k = FK_TEST; 2936 if (TEST_LE(_flag_a, _flag_b)) goto L_3A00512E; /* 0x3A005114: jle 0x3a00512e */ 2937 L_3A005116: 2938 esi = ebp + (-0x814); /* 0x3A005116: lea esi, [ebp - 0x814] */ 2939 ebx = edx; /* 0x3A00511C: mov ebx, edx */ 2940 L_3A00511E: 2941 ecx = MEM32(esi); /* 0x3A00511E: mov ecx, dword ptr [esi] */ 2942 PUSH32(esp, ecx); /* 0x3A005120: push ecx */ 2943 ecx = edi; /* 0x3A005121: mov ecx, edi */ 2944 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005123: call 0x3a0051e0 */ /* not lifted */ 2945 RECOMP_FLAGS_IN(); 2946 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2947 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2948 esi = esi + 4; /* 0x3A005128: add esi, 4 */ 2949 _flag_k = FK_ADD; 2950 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 2951 ebx = ebx - 1; /* 0x3A00512B: dec ebx */ 2952 _flag_k = FK_DEC; 2953 RECOMP_BACKEDGE(); 2954 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3A00511E; /* 0x3A00512C: jne 0x3a00511e */ 2955 L_3A00512E: 2956 edx = MEM32(edi + 0x10); /* 0x3A00512E: mov edx, dword ptr [edi + 0x10] */ 2957 ecx = MEM32(edx + 0x4); /* 0x3A005131: mov ecx, dword ptr [edx + 4] */ 2958 eax = MEM32(ecx); /* 0x3A005134: mov eax, dword ptr [ecx] */ 2959 /* cmp eax, ecx */ /* 0x3A005136: cmp eax, ecx */ 2960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2962 _flag_k = FK_CMP; 2963 MEM32(ebp + (-0x4)) = eax; /* 0x3A005138: mov dword ptr [ebp - 4], eax */ 2964 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005186; /* 0x3A00513B: je 0x3a005186 */ 2965 L_3A00513D: 2966 goto L_3A005142; /* 0x3A00513D: jmp 0x3a005142 */ 2967 L_3A00513F: 2968 eax = MEM32(ebp + (-0x4)); /* 0x3A00513F: mov eax, dword ptr [ebp - 4] */ 2969 L_3A005142: 2970 esi = MEM32(eax + 0x8); /* 0x3A005142: mov esi, dword ptr [eax + 8] */ 2971 /* test esi, esi */ /* 0x3A005145: test esi, esi */ 2972 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2973 _cf = 0; 2974 _flag_k = FK_TEST; 2975 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005179; /* 0x3A005147: je 0x3a005179 */ 2976 L_3A005149: 2977 SET_LO8(ecx, MEM8(esi + 0xC)); /* 0x3A005149: mov cl, byte ptr [esi + 0xc] */ 2978 /* test LO8(ecx), LO8(ecx) */ /* 0x3A00514C: test cl, cl */ 2979 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2980 _cf = 0; 2981 _flag_k = FK_NARROW(FK_TEST, 24); 2982 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005175; /* 0x3A00514E: je 0x3a005175 */ 2983 L_3A005150: 2984 SET_LO8(ecx, MEM8(esi + 0x6)); /* 0x3A005150: mov cl, byte ptr [esi + 6] */ 2985 /* test LO8(ecx), LO8(ecx) */ /* 0x3A005153: test cl, cl */ 2986 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2987 _cf = 0; 2988 _flag_k = FK_NARROW(FK_TEST, 24); 2989 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005175; /* 0x3A005155: je 0x3a005175 */ 2990 L_3A005157: 2991 ebx = MEM32(esi + 0x20); /* 0x3A005157: mov ebx, dword ptr [esi + 0x20] */ 2992 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A00515A: call dword ptr [0x3a00a040] */ 2993 RECOMP_FLAGS_IN(); 2994 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A005160: cdq */ 2995 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x3A005161: idiv ebx */ 2996 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 2997 else { eax = 0; edx = 0; } } 2998 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3A005163: cmp edx, dword ptr [esi + 8] */ 2999 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3001 _flag_k = FK_CMP; 3002 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00516F; /* 0x3A005166: jne 0x3a00516f */ 3003 L_3A005168: 3004 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3005 edx = edx + 1; /* 0x3A005168: inc edx */ 3006 _flag_k = FK_INC; 3007 /* cmp edx, ebx */ /* 0x3A005169: cmp edx, ebx */ 3008 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 3009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3010 _flag_k = FK_CMP; 3011 if (CMP_L(_flag_a, _flag_b)) goto L_3A00516F; /* 0x3A00516B: jl 0x3a00516f */ 3012 L_3A00516D: 3013 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3014 edx = 0; /* 0x3A00516D: xor edx, edx */ 3015 _cf = 0; 3016 _flag_k = FK_TEST; 3017 L_3A00516F: 3018 eax = MEM32(ebp + (-0x4)); /* 0x3A00516F: mov eax, dword ptr [ebp - 4] */ 3019 MEM32(esi + 0x8) = edx; /* 0x3A005172: mov dword ptr [esi + 8], edx */ 3020 L_3A005175: 3021 MEM8(esi + 0x6) = (uint8_t)(0); /* 0x3A005175: mov byte ptr [esi + 6], 0 */ 3022 L_3A005179: 3023 ecx = MEM32(edi + 0x10); /* 0x3A005179: mov ecx, dword ptr [edi + 0x10] */ 3024 eax = MEM32(eax); /* 0x3A00517C: mov eax, dword ptr [eax] */ 3025 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A00517E: cmp eax, dword ptr [ecx + 4] */ 3026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3028 _flag_k = FK_CMP; 3029 MEM32(ebp + (-0x4)) = eax; /* 0x3A005181: mov dword ptr [ebp - 4], eax */ 3030 RECOMP_BACKEDGE(); 3031 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00513F; /* 0x3A005184: jne 0x3a00513f */ 3032 L_3A005186: 3033 ebx = MEM32(edi + 0x10); /* 0x3A005186: mov ebx, dword ptr [edi + 0x10] */ 3034 eax = MEM32(ebx + 0x4); /* 0x3A005189: mov eax, dword ptr [ebx + 4] */ 3035 esi = MEM32(eax); /* 0x3A00518C: mov esi, dword ptr [eax] */ 3036 /* cmp esi, eax */ /* 0x3A00518E: cmp esi, eax */ 3037 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3039 _flag_k = FK_CMP; 3040 MEM32(ebp + (-0x4)) = eax; /* 0x3A005190: mov dword ptr [ebp - 4], eax */ 3041 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0051BF; /* 0x3A005193: je 0x3a0051bf */ 3042 L_3A005195: 3043 eax = esi; /* 0x3A005195: mov eax, esi */ 3044 edx = MEM32(eax + 0x4); /* 0x3A005197: mov edx, dword ptr [eax + 4] */ 3045 ecx = MEM32(eax); /* 0x3A00519A: mov ecx, dword ptr [eax] */ 3046 esi = MEM32(esi); /* 0x3A00519C: mov esi, dword ptr [esi] */ 3047 MEM32(edx) = ecx; /* 0x3A00519E: mov dword ptr [edx], ecx */ 3048 edx = MEM32(eax); /* 0x3A0051A0: mov edx, dword ptr [eax] */ 3049 ecx = MEM32(eax + 0x4); /* 0x3A0051A2: mov ecx, dword ptr [eax + 4] */ 3050 PUSH32(esp, eax); /* 0x3A0051A5: push eax */ 3051 MEM32(edx + 0x4) = ecx; /* 0x3A0051A6: mov dword ptr [edx + 4], ecx */ 3052 RECOMP_ICALL(0x3A008F76u); /* 0x3A0051A9: call 0x3a008f76 */ /* not lifted */ 3053 RECOMP_FLAGS_IN(); 3054 ecx = MEM32(ebx + 0x8); /* 0x3A0051AE: mov ecx, dword ptr [ebx + 8] */ 3055 eax = MEM32(ebp + (-0x4)); /* 0x3A0051B1: mov eax, dword ptr [ebp - 4] */ 3056 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3057 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3058 esp = esp + 4; /* 0x3A0051B4: add esp, 4 */ 3059 _flag_k = FK_ADD; 3060 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3061 ecx = ecx - 1; /* 0x3A0051B7: dec ecx */ 3062 _flag_k = FK_DEC; 3063 /* cmp esi, eax */ /* 0x3A0051B8: cmp esi, eax */ 3064 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3066 _flag_k = FK_CMP; 3067 MEM32(ebx + 0x8) = ecx; /* 0x3A0051BA: mov dword ptr [ebx + 8], ecx */ 3068 RECOMP_BACKEDGE(); 3069 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005195; /* 0x3A0051BD: jne 0x3a005195 */ 3070 L_3A0051BF: 3071 edx = MEM32(ebp + (-0x8)); /* 0x3A0051BF: mov edx, dword ptr [ebp - 8] */ 3072 PUSH32(esp, edx); /* 0x3A0051C2: push edx */ 3073 ecx = edi; /* 0x3A0051C3: mov ecx, edi */ 3074 RECOMP_ICALL(0x3A003130u); /* 0x3A0051C5: call 0x3a003130 */ /* not lifted */ 3075 RECOMP_FLAGS_IN(); 3076 edi = POP32_VAL(esp); /* 0x3A0051CA: pop edi */ 3077 esi = POP32_VAL(esp); /* 0x3A0051CB: pop esi */ 3078 ebx = POP32_VAL(esp); /* 0x3A0051CC: pop ebx */ 3079 esp = ebp; /* 0x3A0051CD: mov esp, ebp */ 3080 ebp = POP32_VAL(esp); /* 0x3A0051CF: pop ebp */ 3081 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0051D0: ret */ 3082 RECOMP_REGS_OUT(); 3083 } 3084 3085 void sub_3A00513F(void) { 3086 int _fpu_cmp = 0; 3087 uint32_t _cf = 0; 3088 int _df = 1; 3089 uint32_t _flag_k = FK_NONE; 3090 uint32_t _flag_a = 0, _flag_b = 0; 3091 uint32_t _itail_tgt = 0; 3092 RECOMP_REGS_LOCALS 3093 RECOMP_ENTER(0x3A00513Fu); 3094 3095 L_3A00513F: 3096 eax = MEM32(ebp + (-0x4)); /* 0x3A00513F: mov eax, dword ptr [ebp - 4] */ 3097 esi = MEM32(eax + 0x8); /* 0x3A005142: mov esi, dword ptr [eax + 8] */ 3098 /* test esi, esi */ /* 0x3A005145: test esi, esi */ 3099 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3100 _cf = 0; 3101 _flag_k = FK_TEST; 3102 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005179; /* 0x3A005147: je 0x3a005179 */ 3103 L_3A005149: 3104 SET_LO8(ecx, MEM8(esi + 0xC)); /* 0x3A005149: mov cl, byte ptr [esi + 0xc] */ 3105 /* test LO8(ecx), LO8(ecx) */ /* 0x3A00514C: test cl, cl */ 3106 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3107 _cf = 0; 3108 _flag_k = FK_NARROW(FK_TEST, 24); 3109 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005175; /* 0x3A00514E: je 0x3a005175 */ 3110 L_3A005150: 3111 SET_LO8(ecx, MEM8(esi + 0x6)); /* 0x3A005150: mov cl, byte ptr [esi + 6] */ 3112 /* test LO8(ecx), LO8(ecx) */ /* 0x3A005153: test cl, cl */ 3113 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3114 _cf = 0; 3115 _flag_k = FK_NARROW(FK_TEST, 24); 3116 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005175; /* 0x3A005155: je 0x3a005175 */ 3117 L_3A005157: 3118 ebx = MEM32(esi + 0x20); /* 0x3A005157: mov ebx, dword ptr [esi + 0x20] */ 3119 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A00515A: call dword ptr [0x3a00a040] */ 3120 RECOMP_FLAGS_IN(); 3121 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A005160: cdq */ 3122 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x3A005161: idiv ebx */ 3123 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 3124 else { eax = 0; edx = 0; } } 3125 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3A005163: cmp edx, dword ptr [esi + 8] */ 3126 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3128 _flag_k = FK_CMP; 3129 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00516F; /* 0x3A005166: jne 0x3a00516f */ 3130 L_3A005168: 3131 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3132 edx = edx + 1; /* 0x3A005168: inc edx */ 3133 _flag_k = FK_INC; 3134 /* cmp edx, ebx */ /* 0x3A005169: cmp edx, ebx */ 3135 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 3136 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3137 _flag_k = FK_CMP; 3138 if (CMP_L(_flag_a, _flag_b)) goto L_3A00516F; /* 0x3A00516B: jl 0x3a00516f */ 3139 L_3A00516D: 3140 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3141 edx = 0; /* 0x3A00516D: xor edx, edx */ 3142 _cf = 0; 3143 _flag_k = FK_TEST; 3144 L_3A00516F: 3145 eax = MEM32(ebp + (-0x4)); /* 0x3A00516F: mov eax, dword ptr [ebp - 4] */ 3146 MEM32(esi + 0x8) = edx; /* 0x3A005172: mov dword ptr [esi + 8], edx */ 3147 L_3A005175: 3148 MEM8(esi + 0x6) = (uint8_t)(0); /* 0x3A005175: mov byte ptr [esi + 6], 0 */ 3149 L_3A005179: 3150 ecx = MEM32(edi + 0x10); /* 0x3A005179: mov ecx, dword ptr [edi + 0x10] */ 3151 eax = MEM32(eax); /* 0x3A00517C: mov eax, dword ptr [eax] */ 3152 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A00517E: cmp eax, dword ptr [ecx + 4] */ 3153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3155 _flag_k = FK_CMP; 3156 MEM32(ebp + (-0x4)) = eax; /* 0x3A005181: mov dword ptr [ebp - 4], eax */ 3157 RECOMP_BACKEDGE(); 3158 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00513F; /* 0x3A005184: jne 0x3a00513f */ 3159 L_3A005186: 3160 ebx = MEM32(edi + 0x10); /* 0x3A005186: mov ebx, dword ptr [edi + 0x10] */ 3161 eax = MEM32(ebx + 0x4); /* 0x3A005189: mov eax, dword ptr [ebx + 4] */ 3162 esi = MEM32(eax); /* 0x3A00518C: mov esi, dword ptr [eax] */ 3163 /* cmp esi, eax */ /* 0x3A00518E: cmp esi, eax */ 3164 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3166 _flag_k = FK_CMP; 3167 MEM32(ebp + (-0x4)) = eax; /* 0x3A005190: mov dword ptr [ebp - 4], eax */ 3168 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0051BF; /* 0x3A005193: je 0x3a0051bf */ 3169 L_3A005195: 3170 eax = esi; /* 0x3A005195: mov eax, esi */ 3171 edx = MEM32(eax + 0x4); /* 0x3A005197: mov edx, dword ptr [eax + 4] */ 3172 ecx = MEM32(eax); /* 0x3A00519A: mov ecx, dword ptr [eax] */ 3173 esi = MEM32(esi); /* 0x3A00519C: mov esi, dword ptr [esi] */ 3174 MEM32(edx) = ecx; /* 0x3A00519E: mov dword ptr [edx], ecx */ 3175 edx = MEM32(eax); /* 0x3A0051A0: mov edx, dword ptr [eax] */ 3176 ecx = MEM32(eax + 0x4); /* 0x3A0051A2: mov ecx, dword ptr [eax + 4] */ 3177 PUSH32(esp, eax); /* 0x3A0051A5: push eax */ 3178 MEM32(edx + 0x4) = ecx; /* 0x3A0051A6: mov dword ptr [edx + 4], ecx */ 3179 RECOMP_ICALL(0x3A008F76u); /* 0x3A0051A9: call 0x3a008f76 */ /* not lifted */ 3180 RECOMP_FLAGS_IN(); 3181 ecx = MEM32(ebx + 0x8); /* 0x3A0051AE: mov ecx, dword ptr [ebx + 8] */ 3182 eax = MEM32(ebp + (-0x4)); /* 0x3A0051B1: mov eax, dword ptr [ebp - 4] */ 3183 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3184 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3185 esp = esp + 4; /* 0x3A0051B4: add esp, 4 */ 3186 _flag_k = FK_ADD; 3187 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3188 ecx = ecx - 1; /* 0x3A0051B7: dec ecx */ 3189 _flag_k = FK_DEC; 3190 /* cmp esi, eax */ /* 0x3A0051B8: cmp esi, eax */ 3191 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3193 _flag_k = FK_CMP; 3194 MEM32(ebx + 0x8) = ecx; /* 0x3A0051BA: mov dword ptr [ebx + 8], ecx */ 3195 RECOMP_BACKEDGE(); 3196 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005195; /* 0x3A0051BD: jne 0x3a005195 */ 3197 L_3A0051BF: 3198 edx = MEM32(ebp + (-0x8)); /* 0x3A0051BF: mov edx, dword ptr [ebp - 8] */ 3199 PUSH32(esp, edx); /* 0x3A0051C2: push edx */ 3200 ecx = edi; /* 0x3A0051C3: mov ecx, edi */ 3201 RECOMP_ICALL(0x3A003130u); /* 0x3A0051C5: call 0x3a003130 */ /* not lifted */ 3202 RECOMP_FLAGS_IN(); 3203 edi = POP32_VAL(esp); /* 0x3A0051CA: pop edi */ 3204 esi = POP32_VAL(esp); /* 0x3A0051CB: pop esi */ 3205 ebx = POP32_VAL(esp); /* 0x3A0051CC: pop ebx */ 3206 esp = ebp; /* 0x3A0051CD: mov esp, ebp */ 3207 ebp = POP32_VAL(esp); /* 0x3A0051CF: pop ebp */ 3208 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0051D0: ret */ 3209 RECOMP_REGS_OUT(); 3210 } 3211 3212 void sub_3A005142(void) { 3213 int _fpu_cmp = 0; 3214 uint32_t _cf = 0; 3215 int _df = 1; 3216 uint32_t _flag_k = FK_NONE; 3217 uint32_t _flag_a = 0, _flag_b = 0; 3218 uint32_t _itail_tgt = 0; 3219 RECOMP_REGS_LOCALS 3220 RECOMP_ENTER(0x3A005142u); 3221 3222 goto L_3A005142; 3223 L_3A00513F: 3224 eax = MEM32(ebp + (-0x4)); /* 0x3A00513F: mov eax, dword ptr [ebp - 4] */ 3225 L_3A005142: 3226 esi = MEM32(eax + 0x8); /* 0x3A005142: mov esi, dword ptr [eax + 8] */ 3227 /* test esi, esi */ /* 0x3A005145: test esi, esi */ 3228 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3229 _cf = 0; 3230 _flag_k = FK_TEST; 3231 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005179; /* 0x3A005147: je 0x3a005179 */ 3232 L_3A005149: 3233 SET_LO8(ecx, MEM8(esi + 0xC)); /* 0x3A005149: mov cl, byte ptr [esi + 0xc] */ 3234 /* test LO8(ecx), LO8(ecx) */ /* 0x3A00514C: test cl, cl */ 3235 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3236 _cf = 0; 3237 _flag_k = FK_NARROW(FK_TEST, 24); 3238 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005175; /* 0x3A00514E: je 0x3a005175 */ 3239 L_3A005150: 3240 SET_LO8(ecx, MEM8(esi + 0x6)); /* 0x3A005150: mov cl, byte ptr [esi + 6] */ 3241 /* test LO8(ecx), LO8(ecx) */ /* 0x3A005153: test cl, cl */ 3242 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3243 _cf = 0; 3244 _flag_k = FK_NARROW(FK_TEST, 24); 3245 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005175; /* 0x3A005155: je 0x3a005175 */ 3246 L_3A005157: 3247 ebx = MEM32(esi + 0x20); /* 0x3A005157: mov ebx, dword ptr [esi + 0x20] */ 3248 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A00515A: call dword ptr [0x3a00a040] */ 3249 RECOMP_FLAGS_IN(); 3250 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A005160: cdq */ 3251 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x3A005161: idiv ebx */ 3252 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 3253 else { eax = 0; edx = 0; } } 3254 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3A005163: cmp edx, dword ptr [esi + 8] */ 3255 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3257 _flag_k = FK_CMP; 3258 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00516F; /* 0x3A005166: jne 0x3a00516f */ 3259 L_3A005168: 3260 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3261 edx = edx + 1; /* 0x3A005168: inc edx */ 3262 _flag_k = FK_INC; 3263 /* cmp edx, ebx */ /* 0x3A005169: cmp edx, ebx */ 3264 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 3265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3266 _flag_k = FK_CMP; 3267 if (CMP_L(_flag_a, _flag_b)) goto L_3A00516F; /* 0x3A00516B: jl 0x3a00516f */ 3268 L_3A00516D: 3269 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3270 edx = 0; /* 0x3A00516D: xor edx, edx */ 3271 _cf = 0; 3272 _flag_k = FK_TEST; 3273 L_3A00516F: 3274 eax = MEM32(ebp + (-0x4)); /* 0x3A00516F: mov eax, dword ptr [ebp - 4] */ 3275 MEM32(esi + 0x8) = edx; /* 0x3A005172: mov dword ptr [esi + 8], edx */ 3276 L_3A005175: 3277 MEM8(esi + 0x6) = (uint8_t)(0); /* 0x3A005175: mov byte ptr [esi + 6], 0 */ 3278 L_3A005179: 3279 ecx = MEM32(edi + 0x10); /* 0x3A005179: mov ecx, dword ptr [edi + 0x10] */ 3280 eax = MEM32(eax); /* 0x3A00517C: mov eax, dword ptr [eax] */ 3281 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A00517E: cmp eax, dword ptr [ecx + 4] */ 3282 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3284 _flag_k = FK_CMP; 3285 MEM32(ebp + (-0x4)) = eax; /* 0x3A005181: mov dword ptr [ebp - 4], eax */ 3286 RECOMP_BACKEDGE(); 3287 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00513F; /* 0x3A005184: jne 0x3a00513f */ 3288 L_3A005186: 3289 ebx = MEM32(edi + 0x10); /* 0x3A005186: mov ebx, dword ptr [edi + 0x10] */ 3290 eax = MEM32(ebx + 0x4); /* 0x3A005189: mov eax, dword ptr [ebx + 4] */ 3291 esi = MEM32(eax); /* 0x3A00518C: mov esi, dword ptr [eax] */ 3292 /* cmp esi, eax */ /* 0x3A00518E: cmp esi, eax */ 3293 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3295 _flag_k = FK_CMP; 3296 MEM32(ebp + (-0x4)) = eax; /* 0x3A005190: mov dword ptr [ebp - 4], eax */ 3297 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0051BF; /* 0x3A005193: je 0x3a0051bf */ 3298 L_3A005195: 3299 eax = esi; /* 0x3A005195: mov eax, esi */ 3300 edx = MEM32(eax + 0x4); /* 0x3A005197: mov edx, dword ptr [eax + 4] */ 3301 ecx = MEM32(eax); /* 0x3A00519A: mov ecx, dword ptr [eax] */ 3302 esi = MEM32(esi); /* 0x3A00519C: mov esi, dword ptr [esi] */ 3303 MEM32(edx) = ecx; /* 0x3A00519E: mov dword ptr [edx], ecx */ 3304 edx = MEM32(eax); /* 0x3A0051A0: mov edx, dword ptr [eax] */ 3305 ecx = MEM32(eax + 0x4); /* 0x3A0051A2: mov ecx, dword ptr [eax + 4] */ 3306 PUSH32(esp, eax); /* 0x3A0051A5: push eax */ 3307 MEM32(edx + 0x4) = ecx; /* 0x3A0051A6: mov dword ptr [edx + 4], ecx */ 3308 RECOMP_ICALL(0x3A008F76u); /* 0x3A0051A9: call 0x3a008f76 */ /* not lifted */ 3309 RECOMP_FLAGS_IN(); 3310 ecx = MEM32(ebx + 0x8); /* 0x3A0051AE: mov ecx, dword ptr [ebx + 8] */ 3311 eax = MEM32(ebp + (-0x4)); /* 0x3A0051B1: mov eax, dword ptr [ebp - 4] */ 3312 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3313 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3314 esp = esp + 4; /* 0x3A0051B4: add esp, 4 */ 3315 _flag_k = FK_ADD; 3316 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3317 ecx = ecx - 1; /* 0x3A0051B7: dec ecx */ 3318 _flag_k = FK_DEC; 3319 /* cmp esi, eax */ /* 0x3A0051B8: cmp esi, eax */ 3320 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3322 _flag_k = FK_CMP; 3323 MEM32(ebx + 0x8) = ecx; /* 0x3A0051BA: mov dword ptr [ebx + 8], ecx */ 3324 RECOMP_BACKEDGE(); 3325 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005195; /* 0x3A0051BD: jne 0x3a005195 */ 3326 L_3A0051BF: 3327 edx = MEM32(ebp + (-0x8)); /* 0x3A0051BF: mov edx, dword ptr [ebp - 8] */ 3328 PUSH32(esp, edx); /* 0x3A0051C2: push edx */ 3329 ecx = edi; /* 0x3A0051C3: mov ecx, edi */ 3330 RECOMP_ICALL(0x3A003130u); /* 0x3A0051C5: call 0x3a003130 */ /* not lifted */ 3331 RECOMP_FLAGS_IN(); 3332 edi = POP32_VAL(esp); /* 0x3A0051CA: pop edi */ 3333 esi = POP32_VAL(esp); /* 0x3A0051CB: pop esi */ 3334 ebx = POP32_VAL(esp); /* 0x3A0051CC: pop ebx */ 3335 esp = ebp; /* 0x3A0051CD: mov esp, ebp */ 3336 ebp = POP32_VAL(esp); /* 0x3A0051CF: pop ebp */ 3337 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0051D0: ret */ 3338 RECOMP_REGS_OUT(); 3339 } 3340 3341 void sub_3A0051E0(void) { 3342 int _fpu_cmp = 0; 3343 uint32_t _cf = 0; 3344 int _df = 1; 3345 uint32_t _flag_k = FK_NONE; 3346 uint32_t _flag_a = 0, _flag_b = 0; 3347 uint32_t _itail_tgt = 0; 3348 RECOMP_REGS_LOCALS 3349 RECOMP_ENTER(0x3A0051E0u); 3350 3351 L_3A0051E0: 3352 PUSH32(esp, ebp); /* 0x3A0051E0: push ebp */ 3353 ebp = esp; /* 0x3A0051E1: mov ebp, esp */ 3354 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 3355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3356 esp = esp - 0x34u; /* 0x3A0051E3: sub esp, 0x34 */ 3357 _flag_k = FK_CMP; 3358 PUSH32(esp, ebx); /* 0x3A0051E6: push ebx */ 3359 PUSH32(esp, esi); /* 0x3A0051E7: push esi */ 3360 PUSH32(esp, edi); /* 0x3A0051E8: push edi */ 3361 ebx = ecx; /* 0x3A0051E9: mov ebx, ecx */ 3362 RECOMP_ICALL(MEM32(0x3A00A08C)); /* 0x3A0051EB: call dword ptr [0x3a00a08c] */ 3363 RECOMP_FLAGS_IN(); 3364 eax = MEM32(eax + 0x14); /* 0x3A0051F1: mov eax, dword ptr [eax + 0x14] */ 3365 edi = MEM32(ebp + 0x8); /* 0x3A0051F4: mov edi, dword ptr [ebp + 8] */ 3366 ecx = MEM32(eax); /* 0x3A0051F7: mov ecx, dword ptr [eax] */ 3367 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3368 esi = 0; /* 0x3A0051F9: xor esi, esi */ 3369 _cf = 0; 3370 _flag_k = FK_TEST; 3371 /* cmp edi, esi */ /* 0x3A0051FB: cmp edi, esi */ 3372 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 3373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3374 _flag_k = FK_CMP; 3375 MEM32(ebp + (-0x4)) = ecx; /* 0x3A0051FD: mov dword ptr [ebp - 4], ecx */ 3376 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00562F; /* 0x3A005200: je 0x3a00562f */ 3377 L_3A005206: 3378 SET_LO8(eax, MEM8(edi + 0x15A)); /* 0x3A005206: mov al, byte ptr [edi + 0x15a] */ 3379 /* test LO8(eax), LO8(eax) */ /* 0x3A00520C: test al, al */ 3380 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3381 _cf = 0; 3382 _flag_k = FK_NARROW(FK_TEST, 24); 3383 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005219; /* 0x3A00520E: je 0x3a005219 */ 3384 L_3A005210: 3385 edx = MEM32(ebx + 0x58); /* 0x3A005210: mov edx, dword ptr [ebx + 0x58] */ 3386 MEM32(edi + 0x270) = edx; /* 0x3A005213: mov dword ptr [edi + 0x270], edx */ 3387 L_3A005219: 3388 ecx = MEM32(ebx + 0x60); /* 0x3A005219: mov ecx, dword ptr [ebx + 0x60] */ 3389 /* cmp ecx, esi */ /* 0x3A00521C: cmp ecx, esi */ 3390 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 3391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3392 _flag_k = FK_CMP; 3393 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00524A; /* 0x3A00521E: je 0x3a00524a */ 3394 L_3A005220: 3395 eax = MEM32(edi + 0x1A8); /* 0x3A005220: mov eax, dword ptr [edi + 0x1a8] */ 3396 PUSH32(esp, eax); /* 0x3A005226: push eax */ 3397 RECOMP_ICALL(0x3A008C90u); /* 0x3A005227: call 0x3a008c90 */ /* not lifted */ 3398 RECOMP_FLAGS_IN(); 3399 /* test LO8(eax), LO8(eax) */ /* 0x3A00522C: test al, al */ 3400 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3401 _cf = 0; 3402 _flag_k = FK_NARROW(FK_TEST, 24); 3403 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00524A; /* 0x3A00522E: je 0x3a00524a */ 3404 L_3A005230: 3405 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3A005230: fld dword ptr [ebp - 4] */ 3406 _st[0] += (double)*(float*)ADDR(edi + 0x198); /* 0x3A005233: fadd dword ptr [edi + 0x198] */ 3407 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x198) = _v; } /* 0x3A005239: fstp dword ptr [edi + 0x198] */ 3408 ecx = MEM32(ebx + 0x58); /* 0x3A00523F: mov ecx, dword ptr [ebx + 0x58] */ 3409 MEM32(edi + 0x270) = ecx; /* 0x3A005242: mov dword ptr [edi + 0x270], ecx */ 3410 goto L_3A005250; /* 0x3A005248: jmp 0x3a005250 */ 3411 L_3A00524A: 3412 MEM32(edi + 0x198) = esi; /* 0x3A00524A: mov dword ptr [edi + 0x198], esi */ 3413 L_3A005250: 3414 fp_push(*(float*)&MEM32(edi + 0x190)); /* 0x3A005250: fld dword ptr [edi + 0x190] */ 3415 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005256: fcomp dword ptr [0x3a00a178] */ 3416 fp_pop(); 3417 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00525C: fnstsw ax */ 3418 /* test HI8(eax), 0x41u */ /* 0x3A00525E: test ah, 0x41 */ 3419 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3420 _cf = 0; 3421 _flag_k = FK_NARROW(FK_TEST, 24); 3422 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00528E; /* 0x3A005261: jne 0x3a00528e */ 3423 L_3A005263: 3424 fp_push(*(float*)&MEM32(edi + 0x190)); /* 0x3A005263: fld dword ptr [edi + 0x190] */ 3425 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3A005269: fsub dword ptr [ebp - 4] */ 3426 { float _v = (float)_st[0]; *(float*)ADDR(edi + 0x190) = _v; } /* 0x3A00526C: fst dword ptr [edi + 0x190] */ 3427 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005272: fcomp dword ptr [0x3a00a178] */ 3428 fp_pop(); 3429 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005278: fnstsw ax */ 3430 /* test HI8(eax), 0x41u */ /* 0x3A00527A: test ah, 0x41 */ 3431 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3432 _cf = 0; 3433 _flag_k = FK_NARROW(FK_TEST, 24); 3434 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00528E; /* 0x3A00527D: je 0x3a00528e */ 3435 L_3A00527F: 3436 PUSH32(esp, esi); /* 0x3A00527F: push esi */ 3437 PUSH32(esp, edi); /* 0x3A005280: push edi */ 3438 ecx = ebx; /* 0x3A005281: mov ecx, ebx */ 3439 MEM32(edi + 0x190) = esi; /* 0x3A005283: mov dword ptr [edi + 0x190], esi */ 3440 RECOMP_ICALL(0x3A005790u); /* 0x3A005289: call 0x3a005790 */ /* not lifted */ 3441 RECOMP_FLAGS_IN(); 3442 L_3A00528E: 3443 fp_push(*(float*)&MEM32(edi + 0x17C)); /* 0x3A00528E: fld dword ptr [edi + 0x17c] */ 3444 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005294: fcomp dword ptr [0x3a00a178] */ 3445 fp_pop(); 3446 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00529A: fnstsw ax */ 3447 /* test HI8(eax), 0x41u */ /* 0x3A00529C: test ah, 0x41 */ 3448 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3449 _cf = 0; 3450 _flag_k = FK_NARROW(FK_TEST, 24); 3451 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00542D; /* 0x3A00529F: jne 0x3a00542d */ 3452 L_3A0052A5: 3453 SET_LO8(eax, MEM8(edi + 0x15A)); /* 0x3A0052A5: mov al, byte ptr [edi + 0x15a] */ 3454 /* test LO8(eax), LO8(eax) */ /* 0x3A0052AB: test al, al */ 3455 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3456 _cf = 0; 3457 _flag_k = FK_NARROW(FK_TEST, 24); 3458 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0052BA; /* 0x3A0052AD: jne 0x3a0052ba */ 3459 L_3A0052AF: 3460 MEM32(edi + 0x17C) = esi; /* 0x3A0052AF: mov dword ptr [edi + 0x17c], esi */ 3461 goto L_3A00542D; /* 0x3A0052B5: jmp 0x3a00542d */ 3462 L_3A0052BA: 3463 fp_push(*(float*)&MEM32(edi + 0x17C)); /* 0x3A0052BA: fld dword ptr [edi + 0x17c] */ 3464 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3A0052C0: fsub dword ptr [ebp - 4] */ 3465 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3A0052C3: fstp dword ptr [ebp + 8] */ 3466 fp_push(*(float*)&MEM32(edi + 0x40)); /* 0x3A0052C6: fld dword ptr [edi + 0x40] */ 3467 edx = MEM32(ebp + 0x8); /* 0x3A0052C9: mov edx, dword ptr [ebp + 8] */ 3468 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A0052CC: fcomp dword ptr [0x3a00a178] */ 3469 fp_pop(); 3470 MEM32(edi + 0x17C) = edx; /* 0x3A0052D2: mov dword ptr [edi + 0x17c], edx */ 3471 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A0052D8: fnstsw ax */ 3472 /* test HI8(eax), 0x41u */ /* 0x3A0052DA: test ah, 0x41 */ 3473 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3474 _cf = 0; 3475 _flag_k = FK_NARROW(FK_TEST, 24); 3476 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00531B; /* 0x3A0052DD: jne 0x3a00531b */ 3477 L_3A0052DF: 3478 fp_push(*(float*)&MEM32(edi + 0x160)); /* 0x3A0052DF: fld dword ptr [edi + 0x160] */ 3479 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A180)); /* 0x3A0052E5: fcomp dword ptr [0x3a00a180] */ 3480 fp_pop(); 3481 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A0052EB: fnstsw ax */ 3482 /* test HI8(eax), 1 */ /* 0x3A0052ED: test ah, 1 */ 3483 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3484 _cf = 0; 3485 _flag_k = FK_NARROW(FK_TEST, 24); 3486 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00531B; /* 0x3A0052F0: je 0x3a00531b */ 3487 L_3A0052F2: 3488 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3A0052F2: fld dword ptr [ebp - 4] */ 3489 _st[0] /= (double)*(float*)ADDR(edi + 0x40); /* 0x3A0052F5: fdiv dword ptr [edi + 0x40] */ 3490 _st[0] += (double)*(float*)ADDR(edi + 0x160); /* 0x3A0052F8: fadd dword ptr [edi + 0x160] */ 3491 { float _v = (float)_st[0]; *(float*)ADDR(edi + 0x160) = _v; } /* 0x3A0052FE: fst dword ptr [edi + 0x160] */ 3492 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A180)); /* 0x3A005304: fcomp dword ptr [0x3a00a180] */ 3493 fp_pop(); 3494 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00530A: fnstsw ax */ 3495 /* test HI8(eax), 0x41u */ /* 0x3A00530C: test ah, 0x41 */ 3496 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3497 _cf = 0; 3498 _flag_k = FK_NARROW(FK_TEST, 24); 3499 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00531B; /* 0x3A00530F: jne 0x3a00531b */ 3500 L_3A005311: 3501 MEM32(edi + 0x160) = 0x3F800000u; /* 0x3A005311: mov dword ptr [edi + 0x160], 0x3f800000 */ 3502 L_3A00531B: 3503 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3A00531B: fld dword ptr [ebp + 8] */ 3504 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A00531E: fcomp dword ptr [0x3a00a178] */ 3505 fp_pop(); 3506 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005324: fnstsw ax */ 3507 /* test HI8(eax), 0x41u */ /* 0x3A005326: test ah, 0x41 */ 3508 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3509 _cf = 0; 3510 _flag_k = FK_NARROW(FK_TEST, 24); 3511 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00533E; /* 0x3A005329: je 0x3a00533e */ 3512 L_3A00532B: 3513 PUSH32(esp, edi); /* 0x3A00532B: push edi */ 3514 ecx = ebx; /* 0x3A00532C: mov ecx, ebx */ 3515 MEM32(edi + 0x17C) = esi; /* 0x3A00532E: mov dword ptr [edi + 0x17c], esi */ 3516 RECOMP_ICALL(0x3A003770u); /* 0x3A005334: call 0x3a003770 */ /* not lifted */ 3517 RECOMP_FLAGS_IN(); 3518 goto L_3A00542D; /* 0x3A005339: jmp 0x3a00542d */ 3519 L_3A00533E: 3520 fp_push(*(float*)&MEM32(edi + 0x168)); /* 0x3A00533E: fld dword ptr [edi + 0x168] */ 3521 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005344: fcomp dword ptr [0x3a00a178] */ 3522 fp_pop(); 3523 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00534A: fnstsw ax */ 3524 /* test HI8(eax), 0x41u */ /* 0x3A00534C: test ah, 0x41 */ 3525 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3526 _cf = 0; 3527 _flag_k = FK_NARROW(FK_TEST, 24); 3528 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0053C2; /* 0x3A00534F: jne 0x3a0053c2 */ 3529 L_3A005351: 3530 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3A005351: fld dword ptr [ebp + 8] */ 3531 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x168)); /* 0x3A005354: fcomp dword ptr [edi + 0x168] */ 3532 fp_pop(); 3533 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00535A: fnstsw ax */ 3534 /* test HI8(eax), 1 */ /* 0x3A00535C: test ah, 1 */ 3535 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3536 _cf = 0; 3537 _flag_k = FK_NARROW(FK_TEST, 24); 3538 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0053C2; /* 0x3A00535F: je 0x3a0053c2 */ 3539 L_3A005361: 3540 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3A005361: fld dword ptr [ebp + 8] */ 3541 _st[0] *= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005364: fmul dword ptr [edi + 0x15c] */ 3542 _st[0] /= (double)*(float*)ADDR(edi + 0x168); /* 0x3A00536A: fdiv dword ptr [edi + 0x168] */ 3543 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3A005370: fst dword ptr [ebp + 8] */ 3544 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A180)); /* 0x3A005373: fcomp dword ptr [0x3a00a180] */ 3545 fp_pop(); 3546 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005379: fnstsw ax */ 3547 /* test HI8(eax), 0x41u */ /* 0x3A00537B: test ah, 0x41 */ 3548 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3549 _cf = 0; 3550 _flag_k = FK_NARROW(FK_TEST, 24); 3551 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005389; /* 0x3A00537E: jne 0x3a005389 */ 3552 L_3A005380: 3553 MEM32(ebp + 0x8) = 0x3F800000u; /* 0x3A005380: mov dword ptr [ebp + 8], 0x3f800000 */ 3554 goto L_3A0053A0; /* 0x3A005387: jmp 0x3a0053a0 */ 3555 L_3A005389: 3556 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3A005389: fld dword ptr [ebp + 8] */ 3557 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A00538C: fcomp dword ptr [0x3a00a178] */ 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); /* 0x3A005392: fnstsw ax */ 3560 /* test HI8(eax), 1 */ /* 0x3A005394: test ah, 1 */ 3561 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3562 _cf = 0; 3563 _flag_k = FK_NARROW(FK_TEST, 24); 3564 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0053A0; /* 0x3A005397: je 0x3a0053a0 */ 3565 L_3A005399: 3566 MEM32(ebp + 0x8) = 0; /* 0x3A005399: mov dword ptr [ebp + 8], 0 */ 3567 L_3A0053A0: 3568 fp_push(*(float*)&MEM32(edi + 0x40)); /* 0x3A0053A0: fld dword ptr [edi + 0x40] */ 3569 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A0053A3: fcomp dword ptr [0x3a00a178] */ 3570 fp_pop(); 3571 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A0053A9: fnstsw ax */ 3572 /* test HI8(eax), 0x41u */ /* 0x3A0053AB: test ah, 0x41 */ 3573 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3574 _cf = 0; 3575 _flag_k = FK_NARROW(FK_TEST, 24); 3576 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0053BC; /* 0x3A0053AE: jne 0x3a0053bc */ 3577 L_3A0053B0: 3578 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3A0053B0: fld dword ptr [ebp + 8] */ 3579 _st[0] *= (double)*(float*)ADDR(edi + 0x160); /* 0x3A0053B3: fmul dword ptr [edi + 0x160] */ 3580 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3A0053B9: fstp dword ptr [ebp + 8] */ 3581 L_3A0053BC: 3582 eax = MEM32(ebp + 0x8); /* 0x3A0053BC: mov eax, dword ptr [ebp + 8] */ 3583 PUSH32(esp, eax); /* 0x3A0053BF: push eax */ 3584 goto L_3A005425; /* 0x3A0053C0: jmp 0x3a005425 */ 3585 L_3A0053C2: 3586 fp_push(*(float*)&MEM32(edi + 0x40)); /* 0x3A0053C2: fld dword ptr [edi + 0x40] */ 3587 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A0053C5: fcomp dword ptr [0x3a00a178] */ 3588 fp_pop(); 3589 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A0053CB: fnstsw ax */ 3590 /* test HI8(eax), 0x41u */ /* 0x3A0053CD: test ah, 0x41 */ 3591 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3592 _cf = 0; 3593 _flag_k = FK_NARROW(FK_TEST, 24); 3594 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00542D; /* 0x3A0053D0: jne 0x3a00542d */ 3595 L_3A0053D2: 3596 fp_push(*(float*)&MEM32(edi + 0x160)); /* 0x3A0053D2: fld dword ptr [edi + 0x160] */ 3597 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A180)); /* 0x3A0053D8: fcomp dword ptr [0x3a00a180] */ 3598 fp_pop(); 3599 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A0053DE: fnstsw ax */ 3600 /* test HI8(eax), 1 */ /* 0x3A0053E0: test ah, 1 */ 3601 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3602 _cf = 0; 3603 _flag_k = FK_NARROW(FK_TEST, 24); 3604 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00542D; /* 0x3A0053E3: je 0x3a00542d */ 3605 L_3A0053E5: 3606 fp_push(*(float*)&MEM32(edi + 0x15C)); /* 0x3A0053E5: fld dword ptr [edi + 0x15c] */ 3607 _st[0] *= (double)*(float*)ADDR(edi + 0x160); /* 0x3A0053EB: fmul dword ptr [edi + 0x160] */ 3608 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3A0053F1: fst dword ptr [ebp + 8] */ 3609 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A180)); /* 0x3A0053F4: fcomp dword ptr [0x3a00a180] */ 3610 fp_pop(); 3611 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A0053FA: fnstsw ax */ 3612 /* test HI8(eax), 0x41u */ /* 0x3A0053FC: test ah, 0x41 */ 3613 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3614 _cf = 0; 3615 _flag_k = FK_NARROW(FK_TEST, 24); 3616 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00540A; /* 0x3A0053FF: jne 0x3a00540a */ 3617 L_3A005401: 3618 MEM32(ebp + 0x8) = 0x3F800000u; /* 0x3A005401: mov dword ptr [ebp + 8], 0x3f800000 */ 3619 goto L_3A005421; /* 0x3A005408: jmp 0x3a005421 */ 3620 L_3A00540A: 3621 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3A00540A: fld dword ptr [ebp + 8] */ 3622 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A00540D: fcomp dword ptr [0x3a00a178] */ 3623 fp_pop(); 3624 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005413: fnstsw ax */ 3625 /* test HI8(eax), 1 */ /* 0x3A005415: test ah, 1 */ 3626 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3627 _cf = 0; 3628 _flag_k = FK_NARROW(FK_TEST, 24); 3629 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005421; /* 0x3A005418: je 0x3a005421 */ 3630 L_3A00541A: 3631 MEM32(ebp + 0x8) = 0; /* 0x3A00541A: mov dword ptr [ebp + 8], 0 */ 3632 L_3A005421: 3633 ecx = MEM32(ebp + 0x8); /* 0x3A005421: mov ecx, dword ptr [ebp + 8] */ 3634 PUSH32(esp, ecx); /* 0x3A005424: push ecx */ 3635 L_3A005425: 3636 PUSH32(esp, edi); /* 0x3A005425: push edi */ 3637 ecx = ebx; /* 0x3A005426: mov ecx, ebx */ 3638 RECOMP_ICALL(0x3A004DB0u); /* 0x3A005428: call 0x3a004db0 */ /* not lifted */ 3639 RECOMP_FLAGS_IN(); 3640 L_3A00542D: 3641 SET_LO8(eax, MEM8(edi + 0x15A)); /* 0x3A00542D: mov al, byte ptr [edi + 0x15a] */ 3642 /* test LO8(eax), LO8(eax) */ /* 0x3A005433: test al, al */ 3643 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3644 _cf = 0; 3645 _flag_k = FK_NARROW(FK_TEST, 24); 3646 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00562F; /* 0x3A005435: je 0x3a00562f */ 3647 L_3A00543B: 3648 eax = MEM32(edi + 0x20); /* 0x3A00543B: mov eax, dword ptr [edi + 0x20] */ 3649 /* cmp eax, esi */ /* 0x3A00543E: cmp eax, esi */ 3650 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3652 _flag_k = FK_CMP; 3653 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00562F; /* 0x3A005440: je 0x3a00562f */ 3654 L_3A005446: 3655 MEM32(ebp + 0x8) = esi; /* 0x3A005446: mov dword ptr [ebp + 8], esi */ 3656 if (CMP_LE(_flag_a, _flag_b)) goto L_3A00562F; /* 0x3A005449: jle 0x3a00562f */ 3657 L_3A00544F: 3658 edx = MEM32(edi + 0x28); /* 0x3A00544F: mov edx, dword ptr [edi + 0x28] */ 3659 eax = MEM32(ebp + 0x8); /* 0x3A005452: mov eax, dword ptr [ebp + 8] */ 3660 esi = MEM32(edx + eax * 4); /* 0x3A005455: mov esi, dword ptr [edx + eax*4] */ 3661 /* test esi, esi */ /* 0x3A005458: test esi, esi */ 3662 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3663 _cf = 0; 3664 _flag_k = FK_TEST; 3665 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00545A: je 0x3a005615 */ 3666 L_3A005460: 3667 SET_LO8(eax, MEM8(edi + 0x18)); /* 0x3A005460: mov al, byte ptr [edi + 0x18] */ 3668 /* test LO8(eax), LO8(eax) */ /* 0x3A005463: test al, al */ 3669 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3670 _cf = 0; 3671 _flag_k = FK_NARROW(FK_TEST, 24); 3672 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005533; /* 0x3A005465: je 0x3a005533 */ 3673 L_3A00546B: 3674 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3A00546B: fld dword ptr [ebp - 4] */ 3675 _st[0] += (double)*(float*)ADDR(esi + 0x1C); /* 0x3A00546E: fadd dword ptr [esi + 0x1c] */ 3676 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005471: fst dword ptr [esi + 0x1c] */ 3677 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005474: fld dword ptr [esi + 0x14] */ 3678 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005477: fsub dword ptr [esi + 0x10] */ 3679 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00547A: fld dword ptr [0x3a00a180] */ 3680 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005480: fsub dword ptr [edi + 0x15c] */ 3681 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005486: fmulp st(1) */ 3682 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005488: fadd dword ptr [esi + 0x10] */ 3683 fp_xch(1); /* 0x3A00548B: fxch st(1) */ 3684 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3A00548D: fcompp */ 3685 fp_pop(); fp_pop(); 3686 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00548F: fnstsw ax */ 3687 /* test HI8(eax), 0x41u */ /* 0x3A005491: test ah, 0x41 */ 3688 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3689 _cf = 0; 3690 _flag_k = FK_NARROW(FK_TEST, 24); 3691 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005494: jne 0x3a005615 */ 3692 L_3A00549A: 3693 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A00549A: mov al, byte ptr [edi + 0x4c] */ 3694 /* test LO8(eax), LO8(eax) */ /* 0x3A00549D: test al, al */ 3695 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3696 _cf = 0; 3697 _flag_k = FK_NARROW(FK_TEST, 24); 3698 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0054AC; /* 0x3A00549F: je 0x3a0054ac */ 3699 L_3A0054A1: 3700 ecx = MEM32(edi + 0x17C); /* 0x3A0054A1: mov ecx, dword ptr [edi + 0x17c] */ 3701 MEM32(ebp + (-0x8)) = ecx; /* 0x3A0054A7: mov dword ptr [ebp - 8], ecx */ 3702 goto L_3A0054B3; /* 0x3A0054AA: jmp 0x3a0054b3 */ 3703 L_3A0054AC: 3704 MEM32(ebp + (-0x8)) = 0; /* 0x3A0054AC: mov dword ptr [ebp - 8], 0 */ 3705 L_3A0054B3: 3706 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3708 esp = esp - 0xCu; /* 0x3A0054B3: sub esp, 0xc */ 3709 _flag_k = FK_CMP; 3710 edx = esp; /* 0x3A0054B6: mov edx, esp */ 3711 PUSH32(esp, 0); /* 0x3A0054B8: push 0 */ 3712 PUSH32(esp, 1); /* 0x3A0054BA: push 1 */ 3713 PUSH32(esp, 0x64u); /* 0x3A0054BC: push 0x64 */ 3714 PUSH32(esp, 0); /* 0x3A0054BE: push 0 */ 3715 MEM32(ebp + (-0x1C)) = 0; /* 0x3A0054C0: mov dword ptr [ebp - 0x1c], 0 */ 3716 eax = MEM32(ebp + (-0x1C)); /* 0x3A0054C7: mov eax, dword ptr [ebp - 0x1c] */ 3717 MEM32(edx) = eax; /* 0x3A0054CA: mov dword ptr [edx], eax */ 3718 MEM32(ebp + (-0x18)) = 0; /* 0x3A0054CC: mov dword ptr [ebp - 0x18], 0 */ 3719 ecx = MEM32(ebp + (-0x18)); /* 0x3A0054D3: mov ecx, dword ptr [ebp - 0x18] */ 3720 MEM32(edx + 0x4) = ecx; /* 0x3A0054D6: mov dword ptr [edx + 4], ecx */ 3721 ecx = MEM32(ebp + (-0x8)); /* 0x3A0054D9: mov ecx, dword ptr [ebp - 8] */ 3722 PUSH32(esp, 0); /* 0x3A0054DC: push 0 */ 3723 PUSH32(esp, ecx); /* 0x3A0054DE: push ecx */ 3724 MEM32(ebp + (-0x14)) = 0; /* 0x3A0054DF: mov dword ptr [ebp - 0x14], 0 */ 3725 eax = MEM32(ebp + (-0x14)); /* 0x3A0054E6: mov eax, dword ptr [ebp - 0x14] */ 3726 MEM32(edx + 0x8) = eax; /* 0x3A0054E9: mov dword ptr [edx + 8], eax */ 3727 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3729 esp = esp - 0xCu; /* 0x3A0054EC: sub esp, 0xc */ 3730 _flag_k = FK_CMP; 3731 edx = edi + 0x170; /* 0x3A0054EF: lea edx, [edi + 0x170] */ 3732 ecx = MEM32(edx); /* 0x3A0054F5: mov ecx, dword ptr [edx] */ 3733 eax = esp; /* 0x3A0054F7: mov eax, esp */ 3734 MEM32(eax) = ecx; /* 0x3A0054F9: mov dword ptr [eax], ecx */ 3735 ecx = MEM32(edx + 0x4); /* 0x3A0054FB: mov ecx, dword ptr [edx + 4] */ 3736 edx = MEM32(edx + 0x8); /* 0x3A0054FE: mov edx, dword ptr [edx + 8] */ 3737 MEM32(eax + 0x4) = ecx; /* 0x3A005501: mov dword ptr [eax + 4], ecx */ 3738 PUSH32(esp, 0x3F800000u); /* 0x3A005504: push 0x3f800000 */ 3739 PUSH32(esp, esi); /* 0x3A005509: push esi */ 3740 ecx = ebx; /* 0x3A00550A: mov ecx, ebx */ 3741 MEM32(eax + 0x8) = edx; /* 0x3A00550C: mov dword ptr [eax + 8], edx */ 3742 RECOMP_ICALL(0x3A002360u); /* 0x3A00550F: call 0x3a002360 */ /* not lifted */ 3743 RECOMP_FLAGS_IN(); 3744 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005514: fld dword ptr [esi + 0x14] */ 3745 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005517: fsub dword ptr [esi + 0x10] */ 3746 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00551A: fld dword ptr [0x3a00a180] */ 3747 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005520: fsub dword ptr [edi + 0x15c] */ 3748 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005526: fmulp st(1) */ 3749 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005528: fadd dword ptr [esi + 0x10] */ 3750 _st[0] = (double)*(float*)ADDR(esi + 0x1C) - _st[0]; /* 0x3A00552B: fsubr dword ptr [esi + 0x1c] */ 3751 goto L_3A005612; /* 0x3A00552E: jmp 0x3a005612 */ 3752 L_3A005533: 3753 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005533: fld dword ptr [esi + 0x1c] */ 3754 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005536: fcomp dword ptr [0x3a00a178] */ 3755 fp_pop(); 3756 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00553C: fnstsw ax */ 3757 /* test HI8(eax), 0x41u */ /* 0x3A00553E: test ah, 0x41 */ 3758 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3759 _cf = 0; 3760 _flag_k = FK_NARROW(FK_TEST, 24); 3761 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005541: jne 0x3a005615 */ 3762 L_3A005547: 3763 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005547: fld dword ptr [esi + 0x1c] */ 3764 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3A00554A: fsub dword ptr [ebp - 4] */ 3765 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A00554D: fst dword ptr [esi + 0x1c] */ 3766 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005550: fcomp dword ptr [0x3a00a178] */ 3767 fp_pop(); 3768 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005556: fnstsw ax */ 3769 /* test HI8(eax), 0x41u */ /* 0x3A005558: test ah, 0x41 */ 3770 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3771 _cf = 0; 3772 _flag_k = FK_NARROW(FK_TEST, 24); 3773 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00555B: je 0x3a005615 */ 3774 L_3A005561: 3775 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A005561: mov al, byte ptr [edi + 0x4c] */ 3776 /* test LO8(eax), LO8(eax) */ /* 0x3A005564: test al, al */ 3777 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3778 _cf = 0; 3779 _flag_k = FK_NARROW(FK_TEST, 24); 3780 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005573; /* 0x3A005566: je 0x3a005573 */ 3781 L_3A005568: 3782 eax = MEM32(edi + 0x17C); /* 0x3A005568: mov eax, dword ptr [edi + 0x17c] */ 3783 MEM32(ebp + (-0xC)) = eax; /* 0x3A00556E: mov dword ptr [ebp - 0xc], eax */ 3784 goto L_3A00557A; /* 0x3A005571: jmp 0x3a00557a */ 3785 L_3A005573: 3786 MEM32(ebp + (-0xC)) = 0; /* 0x3A005573: mov dword ptr [ebp - 0xc], 0 */ 3787 L_3A00557A: 3788 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3790 esp = esp - 0xCu; /* 0x3A00557A: sub esp, 0xc */ 3791 _flag_k = FK_CMP; 3792 ecx = esp; /* 0x3A00557D: mov ecx, esp */ 3793 PUSH32(esp, 0); /* 0x3A00557F: push 0 */ 3794 PUSH32(esp, 1); /* 0x3A005581: push 1 */ 3795 PUSH32(esp, 0x64u); /* 0x3A005583: push 0x64 */ 3796 PUSH32(esp, 0); /* 0x3A005585: push 0 */ 3797 MEM32(ebp + (-0x28)) = 0; /* 0x3A005587: mov dword ptr [ebp - 0x28], 0 */ 3798 edx = MEM32(ebp + (-0x28)); /* 0x3A00558E: mov edx, dword ptr [ebp - 0x28] */ 3799 MEM32(ecx) = edx; /* 0x3A005591: mov dword ptr [ecx], edx */ 3800 MEM32(ebp + (-0x24)) = 0; /* 0x3A005593: mov dword ptr [ebp - 0x24], 0 */ 3801 eax = MEM32(ebp + (-0x24)); /* 0x3A00559A: mov eax, dword ptr [ebp - 0x24] */ 3802 MEM32(ecx + 0x4) = eax; /* 0x3A00559D: mov dword ptr [ecx + 4], eax */ 3803 eax = MEM32(ebp + (-0xC)); /* 0x3A0055A0: mov eax, dword ptr [ebp - 0xc] */ 3804 PUSH32(esp, 0); /* 0x3A0055A3: push 0 */ 3805 PUSH32(esp, eax); /* 0x3A0055A5: push eax */ 3806 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3808 esp = esp - 0xCu; /* 0x3A0055A6: sub esp, 0xc */ 3809 _flag_k = FK_CMP; 3810 MEM32(ebp + (-0x20)) = 0; /* 0x3A0055A9: mov dword ptr [ebp - 0x20], 0 */ 3811 edx = MEM32(ebp + (-0x20)); /* 0x3A0055B0: mov edx, dword ptr [ebp - 0x20] */ 3812 MEM32(ecx + 0x8) = edx; /* 0x3A0055B3: mov dword ptr [ecx + 8], edx */ 3813 ecx = esp; /* 0x3A0055B6: mov ecx, esp */ 3814 MEM32(ebp + (-0x34)) = 0; /* 0x3A0055B8: mov dword ptr [ebp - 0x34], 0 */ 3815 edx = MEM32(ebp + (-0x34)); /* 0x3A0055BF: mov edx, dword ptr [ebp - 0x34] */ 3816 MEM32(ecx) = edx; /* 0x3A0055C2: mov dword ptr [ecx], edx */ 3817 MEM32(ebp + (-0x30)) = 0; /* 0x3A0055C4: mov dword ptr [ebp - 0x30], 0 */ 3818 eax = MEM32(ebp + (-0x30)); /* 0x3A0055CB: mov eax, dword ptr [ebp - 0x30] */ 3819 MEM32(ecx + 0x4) = eax; /* 0x3A0055CE: mov dword ptr [ecx + 4], eax */ 3820 eax = MEM32(edi + 0x15C); /* 0x3A0055D1: mov eax, dword ptr [edi + 0x15c] */ 3821 MEM32(ebp + (-0x2C)) = 0; /* 0x3A0055D7: mov dword ptr [ebp - 0x2c], 0 */ 3822 edx = MEM32(ebp + (-0x2C)); /* 0x3A0055DE: mov edx, dword ptr [ebp - 0x2c] */ 3823 PUSH32(esp, eax); /* 0x3A0055E1: push eax */ 3824 MEM32(ecx + 0x8) = edx; /* 0x3A0055E2: mov dword ptr [ecx + 8], edx */ 3825 PUSH32(esp, esi); /* 0x3A0055E5: push esi */ 3826 ecx = ebx; /* 0x3A0055E6: mov ecx, ebx */ 3827 RECOMP_ICALL(0x3A002360u); /* 0x3A0055E8: call 0x3a002360 */ /* not lifted */ 3828 RECOMP_FLAGS_IN(); 3829 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A0055ED: call dword ptr [0x3a00a040] */ 3830 RECOMP_FLAGS_IN(); 3831 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A0055F3: cdq */ 3832 ecx = 0x3E8u; /* 0x3A0055F4: mov ecx, 0x3e8 */ 3833 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3A0055F9: idiv ecx */ 3834 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 3835 else { eax = 0; edx = 0; } } 3836 MEM32(ebp + (-0x10)) = edx; /* 0x3A0055FB: mov dword ptr [ebp - 0x10], edx */ 3837 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3A0055FE: fild dword ptr [ebp - 0x10] */ 3838 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005601: fld dword ptr [esi + 0x14] */ 3839 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005604: fsub dword ptr [esi + 0x10] */ 3840 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005607: fmulp st(1) */ 3841 _st[0] *= (double)*(float*)ADDR(0x3A00A174); /* 0x3A005609: fmul dword ptr [0x3a00a174] */ 3842 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A00560F: fadd dword ptr [esi + 0x10] */ 3843 L_3A005612: 3844 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005612: fstp dword ptr [esi + 0x1c] */ 3845 L_3A005615: 3846 PUSH32(esp, esi); /* 0x3A005615: push esi */ 3847 ecx = ebx; /* 0x3A005616: mov ecx, ebx */ 3848 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005618: call 0x3a0051e0 */ /* not lifted */ 3849 RECOMP_FLAGS_IN(); 3850 eax = MEM32(ebp + 0x8); /* 0x3A00561D: mov eax, dword ptr [ebp + 8] */ 3851 ecx = MEM32(edi + 0x20); /* 0x3A005620: mov ecx, dword ptr [edi + 0x20] */ 3852 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3853 eax = eax + 1; /* 0x3A005623: inc eax */ 3854 _flag_k = FK_INC; 3855 /* cmp eax, ecx */ /* 0x3A005624: cmp eax, ecx */ 3856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3858 _flag_k = FK_CMP; 3859 MEM32(ebp + 0x8) = eax; /* 0x3A005626: mov dword ptr [ebp + 8], eax */ 3860 RECOMP_BACKEDGE(); 3861 if (CMP_L(_flag_a, _flag_b)) goto L_3A00544F; /* 0x3A005629: jl 0x3a00544f */ 3862 L_3A00562F: 3863 edi = POP32_VAL(esp); /* 0x3A00562F: pop edi */ 3864 esi = POP32_VAL(esp); /* 0x3A005630: pop esi */ 3865 ebx = POP32_VAL(esp); /* 0x3A005631: pop ebx */ 3866 esp = ebp; /* 0x3A005632: mov esp, ebp */ 3867 ebp = POP32_VAL(esp); /* 0x3A005634: pop ebp */ 3868 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A005635: ret 4 */ 3869 RECOMP_REGS_OUT(); 3870 } 3871 3872 void sub_3A00542D(void) { 3873 int _fpu_cmp = 0; 3874 uint32_t _cf = 0; 3875 int _df = 1; 3876 uint32_t _flag_k = FK_NONE; 3877 uint32_t _flag_a = 0, _flag_b = 0; 3878 uint32_t _itail_tgt = 0; 3879 RECOMP_REGS_LOCALS 3880 RECOMP_ENTER(0x3A00542Du); 3881 3882 L_3A00542D: 3883 SET_LO8(eax, MEM8(edi + 0x15A)); /* 0x3A00542D: mov al, byte ptr [edi + 0x15a] */ 3884 /* test LO8(eax), LO8(eax) */ /* 0x3A005433: test al, al */ 3885 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3886 _cf = 0; 3887 _flag_k = FK_NARROW(FK_TEST, 24); 3888 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00562F; /* 0x3A005435: je 0x3a00562f */ 3889 L_3A00543B: 3890 eax = MEM32(edi + 0x20); /* 0x3A00543B: mov eax, dword ptr [edi + 0x20] */ 3891 /* cmp eax, esi */ /* 0x3A00543E: cmp eax, esi */ 3892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3894 _flag_k = FK_CMP; 3895 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00562F; /* 0x3A005440: je 0x3a00562f */ 3896 L_3A005446: 3897 MEM32(ebp + 0x8) = esi; /* 0x3A005446: mov dword ptr [ebp + 8], esi */ 3898 if (CMP_LE(_flag_a, _flag_b)) goto L_3A00562F; /* 0x3A005449: jle 0x3a00562f */ 3899 L_3A00544F: 3900 edx = MEM32(edi + 0x28); /* 0x3A00544F: mov edx, dword ptr [edi + 0x28] */ 3901 eax = MEM32(ebp + 0x8); /* 0x3A005452: mov eax, dword ptr [ebp + 8] */ 3902 esi = MEM32(edx + eax * 4); /* 0x3A005455: mov esi, dword ptr [edx + eax*4] */ 3903 /* test esi, esi */ /* 0x3A005458: test esi, esi */ 3904 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3905 _cf = 0; 3906 _flag_k = FK_TEST; 3907 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00545A: je 0x3a005615 */ 3908 L_3A005460: 3909 SET_LO8(eax, MEM8(edi + 0x18)); /* 0x3A005460: mov al, byte ptr [edi + 0x18] */ 3910 /* test LO8(eax), LO8(eax) */ /* 0x3A005463: test al, al */ 3911 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3912 _cf = 0; 3913 _flag_k = FK_NARROW(FK_TEST, 24); 3914 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005533; /* 0x3A005465: je 0x3a005533 */ 3915 L_3A00546B: 3916 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3A00546B: fld dword ptr [ebp - 4] */ 3917 _st[0] += (double)*(float*)ADDR(esi + 0x1C); /* 0x3A00546E: fadd dword ptr [esi + 0x1c] */ 3918 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005471: fst dword ptr [esi + 0x1c] */ 3919 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005474: fld dword ptr [esi + 0x14] */ 3920 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005477: fsub dword ptr [esi + 0x10] */ 3921 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00547A: fld dword ptr [0x3a00a180] */ 3922 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005480: fsub dword ptr [edi + 0x15c] */ 3923 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005486: fmulp st(1) */ 3924 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005488: fadd dword ptr [esi + 0x10] */ 3925 fp_xch(1); /* 0x3A00548B: fxch st(1) */ 3926 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3A00548D: fcompp */ 3927 fp_pop(); fp_pop(); 3928 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00548F: fnstsw ax */ 3929 /* test HI8(eax), 0x41u */ /* 0x3A005491: test ah, 0x41 */ 3930 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3931 _cf = 0; 3932 _flag_k = FK_NARROW(FK_TEST, 24); 3933 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005494: jne 0x3a005615 */ 3934 L_3A00549A: 3935 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A00549A: mov al, byte ptr [edi + 0x4c] */ 3936 /* test LO8(eax), LO8(eax) */ /* 0x3A00549D: test al, al */ 3937 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3938 _cf = 0; 3939 _flag_k = FK_NARROW(FK_TEST, 24); 3940 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0054AC; /* 0x3A00549F: je 0x3a0054ac */ 3941 L_3A0054A1: 3942 ecx = MEM32(edi + 0x17C); /* 0x3A0054A1: mov ecx, dword ptr [edi + 0x17c] */ 3943 MEM32(ebp + (-0x8)) = ecx; /* 0x3A0054A7: mov dword ptr [ebp - 8], ecx */ 3944 goto L_3A0054B3; /* 0x3A0054AA: jmp 0x3a0054b3 */ 3945 L_3A0054AC: 3946 MEM32(ebp + (-0x8)) = 0; /* 0x3A0054AC: mov dword ptr [ebp - 8], 0 */ 3947 L_3A0054B3: 3948 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3950 esp = esp - 0xCu; /* 0x3A0054B3: sub esp, 0xc */ 3951 _flag_k = FK_CMP; 3952 edx = esp; /* 0x3A0054B6: mov edx, esp */ 3953 PUSH32(esp, 0); /* 0x3A0054B8: push 0 */ 3954 PUSH32(esp, 1); /* 0x3A0054BA: push 1 */ 3955 PUSH32(esp, 0x64u); /* 0x3A0054BC: push 0x64 */ 3956 PUSH32(esp, 0); /* 0x3A0054BE: push 0 */ 3957 MEM32(ebp + (-0x1C)) = 0; /* 0x3A0054C0: mov dword ptr [ebp - 0x1c], 0 */ 3958 eax = MEM32(ebp + (-0x1C)); /* 0x3A0054C7: mov eax, dword ptr [ebp - 0x1c] */ 3959 MEM32(edx) = eax; /* 0x3A0054CA: mov dword ptr [edx], eax */ 3960 MEM32(ebp + (-0x18)) = 0; /* 0x3A0054CC: mov dword ptr [ebp - 0x18], 0 */ 3961 ecx = MEM32(ebp + (-0x18)); /* 0x3A0054D3: mov ecx, dword ptr [ebp - 0x18] */ 3962 MEM32(edx + 0x4) = ecx; /* 0x3A0054D6: mov dword ptr [edx + 4], ecx */ 3963 ecx = MEM32(ebp + (-0x8)); /* 0x3A0054D9: mov ecx, dword ptr [ebp - 8] */ 3964 PUSH32(esp, 0); /* 0x3A0054DC: push 0 */ 3965 PUSH32(esp, ecx); /* 0x3A0054DE: push ecx */ 3966 MEM32(ebp + (-0x14)) = 0; /* 0x3A0054DF: mov dword ptr [ebp - 0x14], 0 */ 3967 eax = MEM32(ebp + (-0x14)); /* 0x3A0054E6: mov eax, dword ptr [ebp - 0x14] */ 3968 MEM32(edx + 0x8) = eax; /* 0x3A0054E9: mov dword ptr [edx + 8], eax */ 3969 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3971 esp = esp - 0xCu; /* 0x3A0054EC: sub esp, 0xc */ 3972 _flag_k = FK_CMP; 3973 edx = edi + 0x170; /* 0x3A0054EF: lea edx, [edi + 0x170] */ 3974 ecx = MEM32(edx); /* 0x3A0054F5: mov ecx, dword ptr [edx] */ 3975 eax = esp; /* 0x3A0054F7: mov eax, esp */ 3976 MEM32(eax) = ecx; /* 0x3A0054F9: mov dword ptr [eax], ecx */ 3977 ecx = MEM32(edx + 0x4); /* 0x3A0054FB: mov ecx, dword ptr [edx + 4] */ 3978 edx = MEM32(edx + 0x8); /* 0x3A0054FE: mov edx, dword ptr [edx + 8] */ 3979 MEM32(eax + 0x4) = ecx; /* 0x3A005501: mov dword ptr [eax + 4], ecx */ 3980 PUSH32(esp, 0x3F800000u); /* 0x3A005504: push 0x3f800000 */ 3981 PUSH32(esp, esi); /* 0x3A005509: push esi */ 3982 ecx = ebx; /* 0x3A00550A: mov ecx, ebx */ 3983 MEM32(eax + 0x8) = edx; /* 0x3A00550C: mov dword ptr [eax + 8], edx */ 3984 RECOMP_ICALL(0x3A002360u); /* 0x3A00550F: call 0x3a002360 */ /* not lifted */ 3985 RECOMP_FLAGS_IN(); 3986 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005514: fld dword ptr [esi + 0x14] */ 3987 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005517: fsub dword ptr [esi + 0x10] */ 3988 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00551A: fld dword ptr [0x3a00a180] */ 3989 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005520: fsub dword ptr [edi + 0x15c] */ 3990 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005526: fmulp st(1) */ 3991 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005528: fadd dword ptr [esi + 0x10] */ 3992 _st[0] = (double)*(float*)ADDR(esi + 0x1C) - _st[0]; /* 0x3A00552B: fsubr dword ptr [esi + 0x1c] */ 3993 goto L_3A005612; /* 0x3A00552E: jmp 0x3a005612 */ 3994 L_3A005533: 3995 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005533: fld dword ptr [esi + 0x1c] */ 3996 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005536: fcomp dword ptr [0x3a00a178] */ 3997 fp_pop(); 3998 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00553C: fnstsw ax */ 3999 /* test HI8(eax), 0x41u */ /* 0x3A00553E: test ah, 0x41 */ 4000 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4001 _cf = 0; 4002 _flag_k = FK_NARROW(FK_TEST, 24); 4003 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005541: jne 0x3a005615 */ 4004 L_3A005547: 4005 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005547: fld dword ptr [esi + 0x1c] */ 4006 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3A00554A: fsub dword ptr [ebp - 4] */ 4007 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A00554D: fst dword ptr [esi + 0x1c] */ 4008 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005550: fcomp dword ptr [0x3a00a178] */ 4009 fp_pop(); 4010 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005556: fnstsw ax */ 4011 /* test HI8(eax), 0x41u */ /* 0x3A005558: test ah, 0x41 */ 4012 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4013 _cf = 0; 4014 _flag_k = FK_NARROW(FK_TEST, 24); 4015 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00555B: je 0x3a005615 */ 4016 L_3A005561: 4017 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A005561: mov al, byte ptr [edi + 0x4c] */ 4018 /* test LO8(eax), LO8(eax) */ /* 0x3A005564: test al, al */ 4019 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4020 _cf = 0; 4021 _flag_k = FK_NARROW(FK_TEST, 24); 4022 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005573; /* 0x3A005566: je 0x3a005573 */ 4023 L_3A005568: 4024 eax = MEM32(edi + 0x17C); /* 0x3A005568: mov eax, dword ptr [edi + 0x17c] */ 4025 MEM32(ebp + (-0xC)) = eax; /* 0x3A00556E: mov dword ptr [ebp - 0xc], eax */ 4026 goto L_3A00557A; /* 0x3A005571: jmp 0x3a00557a */ 4027 L_3A005573: 4028 MEM32(ebp + (-0xC)) = 0; /* 0x3A005573: mov dword ptr [ebp - 0xc], 0 */ 4029 L_3A00557A: 4030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4032 esp = esp - 0xCu; /* 0x3A00557A: sub esp, 0xc */ 4033 _flag_k = FK_CMP; 4034 ecx = esp; /* 0x3A00557D: mov ecx, esp */ 4035 PUSH32(esp, 0); /* 0x3A00557F: push 0 */ 4036 PUSH32(esp, 1); /* 0x3A005581: push 1 */ 4037 PUSH32(esp, 0x64u); /* 0x3A005583: push 0x64 */ 4038 PUSH32(esp, 0); /* 0x3A005585: push 0 */ 4039 MEM32(ebp + (-0x28)) = 0; /* 0x3A005587: mov dword ptr [ebp - 0x28], 0 */ 4040 edx = MEM32(ebp + (-0x28)); /* 0x3A00558E: mov edx, dword ptr [ebp - 0x28] */ 4041 MEM32(ecx) = edx; /* 0x3A005591: mov dword ptr [ecx], edx */ 4042 MEM32(ebp + (-0x24)) = 0; /* 0x3A005593: mov dword ptr [ebp - 0x24], 0 */ 4043 eax = MEM32(ebp + (-0x24)); /* 0x3A00559A: mov eax, dword ptr [ebp - 0x24] */ 4044 MEM32(ecx + 0x4) = eax; /* 0x3A00559D: mov dword ptr [ecx + 4], eax */ 4045 eax = MEM32(ebp + (-0xC)); /* 0x3A0055A0: mov eax, dword ptr [ebp - 0xc] */ 4046 PUSH32(esp, 0); /* 0x3A0055A3: push 0 */ 4047 PUSH32(esp, eax); /* 0x3A0055A5: push eax */ 4048 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4050 esp = esp - 0xCu; /* 0x3A0055A6: sub esp, 0xc */ 4051 _flag_k = FK_CMP; 4052 MEM32(ebp + (-0x20)) = 0; /* 0x3A0055A9: mov dword ptr [ebp - 0x20], 0 */ 4053 edx = MEM32(ebp + (-0x20)); /* 0x3A0055B0: mov edx, dword ptr [ebp - 0x20] */ 4054 MEM32(ecx + 0x8) = edx; /* 0x3A0055B3: mov dword ptr [ecx + 8], edx */ 4055 ecx = esp; /* 0x3A0055B6: mov ecx, esp */ 4056 MEM32(ebp + (-0x34)) = 0; /* 0x3A0055B8: mov dword ptr [ebp - 0x34], 0 */ 4057 edx = MEM32(ebp + (-0x34)); /* 0x3A0055BF: mov edx, dword ptr [ebp - 0x34] */ 4058 MEM32(ecx) = edx; /* 0x3A0055C2: mov dword ptr [ecx], edx */ 4059 MEM32(ebp + (-0x30)) = 0; /* 0x3A0055C4: mov dword ptr [ebp - 0x30], 0 */ 4060 eax = MEM32(ebp + (-0x30)); /* 0x3A0055CB: mov eax, dword ptr [ebp - 0x30] */ 4061 MEM32(ecx + 0x4) = eax; /* 0x3A0055CE: mov dword ptr [ecx + 4], eax */ 4062 eax = MEM32(edi + 0x15C); /* 0x3A0055D1: mov eax, dword ptr [edi + 0x15c] */ 4063 MEM32(ebp + (-0x2C)) = 0; /* 0x3A0055D7: mov dword ptr [ebp - 0x2c], 0 */ 4064 edx = MEM32(ebp + (-0x2C)); /* 0x3A0055DE: mov edx, dword ptr [ebp - 0x2c] */ 4065 PUSH32(esp, eax); /* 0x3A0055E1: push eax */ 4066 MEM32(ecx + 0x8) = edx; /* 0x3A0055E2: mov dword ptr [ecx + 8], edx */ 4067 PUSH32(esp, esi); /* 0x3A0055E5: push esi */ 4068 ecx = ebx; /* 0x3A0055E6: mov ecx, ebx */ 4069 RECOMP_ICALL(0x3A002360u); /* 0x3A0055E8: call 0x3a002360 */ /* not lifted */ 4070 RECOMP_FLAGS_IN(); 4071 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A0055ED: call dword ptr [0x3a00a040] */ 4072 RECOMP_FLAGS_IN(); 4073 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A0055F3: cdq */ 4074 ecx = 0x3E8u; /* 0x3A0055F4: mov ecx, 0x3e8 */ 4075 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3A0055F9: idiv ecx */ 4076 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 4077 else { eax = 0; edx = 0; } } 4078 MEM32(ebp + (-0x10)) = edx; /* 0x3A0055FB: mov dword ptr [ebp - 0x10], edx */ 4079 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3A0055FE: fild dword ptr [ebp - 0x10] */ 4080 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005601: fld dword ptr [esi + 0x14] */ 4081 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005604: fsub dword ptr [esi + 0x10] */ 4082 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005607: fmulp st(1) */ 4083 _st[0] *= (double)*(float*)ADDR(0x3A00A174); /* 0x3A005609: fmul dword ptr [0x3a00a174] */ 4084 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A00560F: fadd dword ptr [esi + 0x10] */ 4085 L_3A005612: 4086 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005612: fstp dword ptr [esi + 0x1c] */ 4087 L_3A005615: 4088 PUSH32(esp, esi); /* 0x3A005615: push esi */ 4089 ecx = ebx; /* 0x3A005616: mov ecx, ebx */ 4090 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005618: call 0x3a0051e0 */ /* not lifted */ 4091 RECOMP_FLAGS_IN(); 4092 eax = MEM32(ebp + 0x8); /* 0x3A00561D: mov eax, dword ptr [ebp + 8] */ 4093 ecx = MEM32(edi + 0x20); /* 0x3A005620: mov ecx, dword ptr [edi + 0x20] */ 4094 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4095 eax = eax + 1; /* 0x3A005623: inc eax */ 4096 _flag_k = FK_INC; 4097 /* cmp eax, ecx */ /* 0x3A005624: cmp eax, ecx */ 4098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4100 _flag_k = FK_CMP; 4101 MEM32(ebp + 0x8) = eax; /* 0x3A005626: mov dword ptr [ebp + 8], eax */ 4102 RECOMP_BACKEDGE(); 4103 if (CMP_L(_flag_a, _flag_b)) goto L_3A00544F; /* 0x3A005629: jl 0x3a00544f */ 4104 L_3A00562F: 4105 edi = POP32_VAL(esp); /* 0x3A00562F: pop edi */ 4106 esi = POP32_VAL(esp); /* 0x3A005630: pop esi */ 4107 ebx = POP32_VAL(esp); /* 0x3A005631: pop ebx */ 4108 esp = ebp; /* 0x3A005632: mov esp, ebp */ 4109 ebp = POP32_VAL(esp); /* 0x3A005634: pop ebp */ 4110 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A005635: ret 4 */ 4111 RECOMP_REGS_OUT(); 4112 } 4113 4114 void sub_3A00544F(void) { 4115 int _fpu_cmp = 0; 4116 uint32_t _cf = 0; 4117 int _df = 1; 4118 uint32_t _flag_k = FK_NONE; 4119 uint32_t _flag_a = 0, _flag_b = 0; 4120 uint32_t _itail_tgt = 0; 4121 RECOMP_REGS_LOCALS 4122 RECOMP_ENTER(0x3A00544Fu); 4123 4124 L_3A00544F: 4125 edx = MEM32(edi + 0x28); /* 0x3A00544F: mov edx, dword ptr [edi + 0x28] */ 4126 eax = MEM32(ebp + 0x8); /* 0x3A005452: mov eax, dword ptr [ebp + 8] */ 4127 esi = MEM32(edx + eax * 4); /* 0x3A005455: mov esi, dword ptr [edx + eax*4] */ 4128 /* test esi, esi */ /* 0x3A005458: test esi, esi */ 4129 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4130 _cf = 0; 4131 _flag_k = FK_TEST; 4132 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00545A: je 0x3a005615 */ 4133 L_3A005460: 4134 SET_LO8(eax, MEM8(edi + 0x18)); /* 0x3A005460: mov al, byte ptr [edi + 0x18] */ 4135 /* test LO8(eax), LO8(eax) */ /* 0x3A005463: test al, al */ 4136 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4137 _cf = 0; 4138 _flag_k = FK_NARROW(FK_TEST, 24); 4139 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005533; /* 0x3A005465: je 0x3a005533 */ 4140 L_3A00546B: 4141 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3A00546B: fld dword ptr [ebp - 4] */ 4142 _st[0] += (double)*(float*)ADDR(esi + 0x1C); /* 0x3A00546E: fadd dword ptr [esi + 0x1c] */ 4143 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005471: fst dword ptr [esi + 0x1c] */ 4144 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005474: fld dword ptr [esi + 0x14] */ 4145 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005477: fsub dword ptr [esi + 0x10] */ 4146 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00547A: fld dword ptr [0x3a00a180] */ 4147 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005480: fsub dword ptr [edi + 0x15c] */ 4148 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005486: fmulp st(1) */ 4149 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005488: fadd dword ptr [esi + 0x10] */ 4150 fp_xch(1); /* 0x3A00548B: fxch st(1) */ 4151 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3A00548D: fcompp */ 4152 fp_pop(); fp_pop(); 4153 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00548F: fnstsw ax */ 4154 /* test HI8(eax), 0x41u */ /* 0x3A005491: test ah, 0x41 */ 4155 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4156 _cf = 0; 4157 _flag_k = FK_NARROW(FK_TEST, 24); 4158 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005494: jne 0x3a005615 */ 4159 L_3A00549A: 4160 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A00549A: mov al, byte ptr [edi + 0x4c] */ 4161 /* test LO8(eax), LO8(eax) */ /* 0x3A00549D: test al, al */ 4162 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4163 _cf = 0; 4164 _flag_k = FK_NARROW(FK_TEST, 24); 4165 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0054AC; /* 0x3A00549F: je 0x3a0054ac */ 4166 L_3A0054A1: 4167 ecx = MEM32(edi + 0x17C); /* 0x3A0054A1: mov ecx, dword ptr [edi + 0x17c] */ 4168 MEM32(ebp + (-0x8)) = ecx; /* 0x3A0054A7: mov dword ptr [ebp - 8], ecx */ 4169 goto L_3A0054B3; /* 0x3A0054AA: jmp 0x3a0054b3 */ 4170 L_3A0054AC: 4171 MEM32(ebp + (-0x8)) = 0; /* 0x3A0054AC: mov dword ptr [ebp - 8], 0 */ 4172 L_3A0054B3: 4173 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4175 esp = esp - 0xCu; /* 0x3A0054B3: sub esp, 0xc */ 4176 _flag_k = FK_CMP; 4177 edx = esp; /* 0x3A0054B6: mov edx, esp */ 4178 PUSH32(esp, 0); /* 0x3A0054B8: push 0 */ 4179 PUSH32(esp, 1); /* 0x3A0054BA: push 1 */ 4180 PUSH32(esp, 0x64u); /* 0x3A0054BC: push 0x64 */ 4181 PUSH32(esp, 0); /* 0x3A0054BE: push 0 */ 4182 MEM32(ebp + (-0x1C)) = 0; /* 0x3A0054C0: mov dword ptr [ebp - 0x1c], 0 */ 4183 eax = MEM32(ebp + (-0x1C)); /* 0x3A0054C7: mov eax, dword ptr [ebp - 0x1c] */ 4184 MEM32(edx) = eax; /* 0x3A0054CA: mov dword ptr [edx], eax */ 4185 MEM32(ebp + (-0x18)) = 0; /* 0x3A0054CC: mov dword ptr [ebp - 0x18], 0 */ 4186 ecx = MEM32(ebp + (-0x18)); /* 0x3A0054D3: mov ecx, dword ptr [ebp - 0x18] */ 4187 MEM32(edx + 0x4) = ecx; /* 0x3A0054D6: mov dword ptr [edx + 4], ecx */ 4188 ecx = MEM32(ebp + (-0x8)); /* 0x3A0054D9: mov ecx, dword ptr [ebp - 8] */ 4189 PUSH32(esp, 0); /* 0x3A0054DC: push 0 */ 4190 PUSH32(esp, ecx); /* 0x3A0054DE: push ecx */ 4191 MEM32(ebp + (-0x14)) = 0; /* 0x3A0054DF: mov dword ptr [ebp - 0x14], 0 */ 4192 eax = MEM32(ebp + (-0x14)); /* 0x3A0054E6: mov eax, dword ptr [ebp - 0x14] */ 4193 MEM32(edx + 0x8) = eax; /* 0x3A0054E9: mov dword ptr [edx + 8], eax */ 4194 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4196 esp = esp - 0xCu; /* 0x3A0054EC: sub esp, 0xc */ 4197 _flag_k = FK_CMP; 4198 edx = edi + 0x170; /* 0x3A0054EF: lea edx, [edi + 0x170] */ 4199 ecx = MEM32(edx); /* 0x3A0054F5: mov ecx, dword ptr [edx] */ 4200 eax = esp; /* 0x3A0054F7: mov eax, esp */ 4201 MEM32(eax) = ecx; /* 0x3A0054F9: mov dword ptr [eax], ecx */ 4202 ecx = MEM32(edx + 0x4); /* 0x3A0054FB: mov ecx, dword ptr [edx + 4] */ 4203 edx = MEM32(edx + 0x8); /* 0x3A0054FE: mov edx, dword ptr [edx + 8] */ 4204 MEM32(eax + 0x4) = ecx; /* 0x3A005501: mov dword ptr [eax + 4], ecx */ 4205 PUSH32(esp, 0x3F800000u); /* 0x3A005504: push 0x3f800000 */ 4206 PUSH32(esp, esi); /* 0x3A005509: push esi */ 4207 ecx = ebx; /* 0x3A00550A: mov ecx, ebx */ 4208 MEM32(eax + 0x8) = edx; /* 0x3A00550C: mov dword ptr [eax + 8], edx */ 4209 RECOMP_ICALL(0x3A002360u); /* 0x3A00550F: call 0x3a002360 */ /* not lifted */ 4210 RECOMP_FLAGS_IN(); 4211 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005514: fld dword ptr [esi + 0x14] */ 4212 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005517: fsub dword ptr [esi + 0x10] */ 4213 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00551A: fld dword ptr [0x3a00a180] */ 4214 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005520: fsub dword ptr [edi + 0x15c] */ 4215 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005526: fmulp st(1) */ 4216 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005528: fadd dword ptr [esi + 0x10] */ 4217 _st[0] = (double)*(float*)ADDR(esi + 0x1C) - _st[0]; /* 0x3A00552B: fsubr dword ptr [esi + 0x1c] */ 4218 goto L_3A005612; /* 0x3A00552E: jmp 0x3a005612 */ 4219 L_3A005533: 4220 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005533: fld dword ptr [esi + 0x1c] */ 4221 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005536: fcomp dword ptr [0x3a00a178] */ 4222 fp_pop(); 4223 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00553C: fnstsw ax */ 4224 /* test HI8(eax), 0x41u */ /* 0x3A00553E: test ah, 0x41 */ 4225 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4226 _cf = 0; 4227 _flag_k = FK_NARROW(FK_TEST, 24); 4228 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005541: jne 0x3a005615 */ 4229 L_3A005547: 4230 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005547: fld dword ptr [esi + 0x1c] */ 4231 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3A00554A: fsub dword ptr [ebp - 4] */ 4232 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A00554D: fst dword ptr [esi + 0x1c] */ 4233 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005550: fcomp dword ptr [0x3a00a178] */ 4234 fp_pop(); 4235 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005556: fnstsw ax */ 4236 /* test HI8(eax), 0x41u */ /* 0x3A005558: test ah, 0x41 */ 4237 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4238 _cf = 0; 4239 _flag_k = FK_NARROW(FK_TEST, 24); 4240 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00555B: je 0x3a005615 */ 4241 L_3A005561: 4242 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A005561: mov al, byte ptr [edi + 0x4c] */ 4243 /* test LO8(eax), LO8(eax) */ /* 0x3A005564: test al, al */ 4244 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4245 _cf = 0; 4246 _flag_k = FK_NARROW(FK_TEST, 24); 4247 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005573; /* 0x3A005566: je 0x3a005573 */ 4248 L_3A005568: 4249 eax = MEM32(edi + 0x17C); /* 0x3A005568: mov eax, dword ptr [edi + 0x17c] */ 4250 MEM32(ebp + (-0xC)) = eax; /* 0x3A00556E: mov dword ptr [ebp - 0xc], eax */ 4251 goto L_3A00557A; /* 0x3A005571: jmp 0x3a00557a */ 4252 L_3A005573: 4253 MEM32(ebp + (-0xC)) = 0; /* 0x3A005573: mov dword ptr [ebp - 0xc], 0 */ 4254 L_3A00557A: 4255 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4257 esp = esp - 0xCu; /* 0x3A00557A: sub esp, 0xc */ 4258 _flag_k = FK_CMP; 4259 ecx = esp; /* 0x3A00557D: mov ecx, esp */ 4260 PUSH32(esp, 0); /* 0x3A00557F: push 0 */ 4261 PUSH32(esp, 1); /* 0x3A005581: push 1 */ 4262 PUSH32(esp, 0x64u); /* 0x3A005583: push 0x64 */ 4263 PUSH32(esp, 0); /* 0x3A005585: push 0 */ 4264 MEM32(ebp + (-0x28)) = 0; /* 0x3A005587: mov dword ptr [ebp - 0x28], 0 */ 4265 edx = MEM32(ebp + (-0x28)); /* 0x3A00558E: mov edx, dword ptr [ebp - 0x28] */ 4266 MEM32(ecx) = edx; /* 0x3A005591: mov dword ptr [ecx], edx */ 4267 MEM32(ebp + (-0x24)) = 0; /* 0x3A005593: mov dword ptr [ebp - 0x24], 0 */ 4268 eax = MEM32(ebp + (-0x24)); /* 0x3A00559A: mov eax, dword ptr [ebp - 0x24] */ 4269 MEM32(ecx + 0x4) = eax; /* 0x3A00559D: mov dword ptr [ecx + 4], eax */ 4270 eax = MEM32(ebp + (-0xC)); /* 0x3A0055A0: mov eax, dword ptr [ebp - 0xc] */ 4271 PUSH32(esp, 0); /* 0x3A0055A3: push 0 */ 4272 PUSH32(esp, eax); /* 0x3A0055A5: push eax */ 4273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4275 esp = esp - 0xCu; /* 0x3A0055A6: sub esp, 0xc */ 4276 _flag_k = FK_CMP; 4277 MEM32(ebp + (-0x20)) = 0; /* 0x3A0055A9: mov dword ptr [ebp - 0x20], 0 */ 4278 edx = MEM32(ebp + (-0x20)); /* 0x3A0055B0: mov edx, dword ptr [ebp - 0x20] */ 4279 MEM32(ecx + 0x8) = edx; /* 0x3A0055B3: mov dword ptr [ecx + 8], edx */ 4280 ecx = esp; /* 0x3A0055B6: mov ecx, esp */ 4281 MEM32(ebp + (-0x34)) = 0; /* 0x3A0055B8: mov dword ptr [ebp - 0x34], 0 */ 4282 edx = MEM32(ebp + (-0x34)); /* 0x3A0055BF: mov edx, dword ptr [ebp - 0x34] */ 4283 MEM32(ecx) = edx; /* 0x3A0055C2: mov dword ptr [ecx], edx */ 4284 MEM32(ebp + (-0x30)) = 0; /* 0x3A0055C4: mov dword ptr [ebp - 0x30], 0 */ 4285 eax = MEM32(ebp + (-0x30)); /* 0x3A0055CB: mov eax, dword ptr [ebp - 0x30] */ 4286 MEM32(ecx + 0x4) = eax; /* 0x3A0055CE: mov dword ptr [ecx + 4], eax */ 4287 eax = MEM32(edi + 0x15C); /* 0x3A0055D1: mov eax, dword ptr [edi + 0x15c] */ 4288 MEM32(ebp + (-0x2C)) = 0; /* 0x3A0055D7: mov dword ptr [ebp - 0x2c], 0 */ 4289 edx = MEM32(ebp + (-0x2C)); /* 0x3A0055DE: mov edx, dword ptr [ebp - 0x2c] */ 4290 PUSH32(esp, eax); /* 0x3A0055E1: push eax */ 4291 MEM32(ecx + 0x8) = edx; /* 0x3A0055E2: mov dword ptr [ecx + 8], edx */ 4292 PUSH32(esp, esi); /* 0x3A0055E5: push esi */ 4293 ecx = ebx; /* 0x3A0055E6: mov ecx, ebx */ 4294 RECOMP_ICALL(0x3A002360u); /* 0x3A0055E8: call 0x3a002360 */ /* not lifted */ 4295 RECOMP_FLAGS_IN(); 4296 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A0055ED: call dword ptr [0x3a00a040] */ 4297 RECOMP_FLAGS_IN(); 4298 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A0055F3: cdq */ 4299 ecx = 0x3E8u; /* 0x3A0055F4: mov ecx, 0x3e8 */ 4300 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3A0055F9: idiv ecx */ 4301 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 4302 else { eax = 0; edx = 0; } } 4303 MEM32(ebp + (-0x10)) = edx; /* 0x3A0055FB: mov dword ptr [ebp - 0x10], edx */ 4304 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3A0055FE: fild dword ptr [ebp - 0x10] */ 4305 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005601: fld dword ptr [esi + 0x14] */ 4306 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005604: fsub dword ptr [esi + 0x10] */ 4307 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005607: fmulp st(1) */ 4308 _st[0] *= (double)*(float*)ADDR(0x3A00A174); /* 0x3A005609: fmul dword ptr [0x3a00a174] */ 4309 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A00560F: fadd dword ptr [esi + 0x10] */ 4310 L_3A005612: 4311 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005612: fstp dword ptr [esi + 0x1c] */ 4312 L_3A005615: 4313 PUSH32(esp, esi); /* 0x3A005615: push esi */ 4314 ecx = ebx; /* 0x3A005616: mov ecx, ebx */ 4315 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005618: call 0x3a0051e0 */ /* not lifted */ 4316 RECOMP_FLAGS_IN(); 4317 eax = MEM32(ebp + 0x8); /* 0x3A00561D: mov eax, dword ptr [ebp + 8] */ 4318 ecx = MEM32(edi + 0x20); /* 0x3A005620: mov ecx, dword ptr [edi + 0x20] */ 4319 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4320 eax = eax + 1; /* 0x3A005623: inc eax */ 4321 _flag_k = FK_INC; 4322 /* cmp eax, ecx */ /* 0x3A005624: cmp eax, ecx */ 4323 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4325 _flag_k = FK_CMP; 4326 MEM32(ebp + 0x8) = eax; /* 0x3A005626: mov dword ptr [ebp + 8], eax */ 4327 RECOMP_BACKEDGE(); 4328 if (CMP_L(_flag_a, _flag_b)) goto L_3A00544F; /* 0x3A005629: jl 0x3a00544f */ 4329 L_3A00562F: 4330 edi = POP32_VAL(esp); /* 0x3A00562F: pop edi */ 4331 esi = POP32_VAL(esp); /* 0x3A005630: pop esi */ 4332 ebx = POP32_VAL(esp); /* 0x3A005631: pop ebx */ 4333 esp = ebp; /* 0x3A005632: mov esp, ebp */ 4334 ebp = POP32_VAL(esp); /* 0x3A005634: pop ebp */ 4335 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A005635: ret 4 */ 4336 RECOMP_REGS_OUT(); 4337 } 4338 4339 void sub_3A0054B3(void) { 4340 int _fpu_cmp = 0; 4341 uint32_t _cf = 0; 4342 int _df = 1; 4343 uint32_t _flag_k = FK_NONE; 4344 uint32_t _flag_a = 0, _flag_b = 0; 4345 uint32_t _itail_tgt = 0; 4346 RECOMP_REGS_LOCALS 4347 RECOMP_ENTER(0x3A0054B3u); 4348 4349 goto L_3A0054B3; 4350 L_3A00544F: 4351 edx = MEM32(edi + 0x28); /* 0x3A00544F: mov edx, dword ptr [edi + 0x28] */ 4352 eax = MEM32(ebp + 0x8); /* 0x3A005452: mov eax, dword ptr [ebp + 8] */ 4353 esi = MEM32(edx + eax * 4); /* 0x3A005455: mov esi, dword ptr [edx + eax*4] */ 4354 /* test esi, esi */ /* 0x3A005458: test esi, esi */ 4355 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4356 _cf = 0; 4357 _flag_k = FK_TEST; 4358 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00545A: je 0x3a005615 */ 4359 L_3A005460: 4360 SET_LO8(eax, MEM8(edi + 0x18)); /* 0x3A005460: mov al, byte ptr [edi + 0x18] */ 4361 /* test LO8(eax), LO8(eax) */ /* 0x3A005463: test al, al */ 4362 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4363 _cf = 0; 4364 _flag_k = FK_NARROW(FK_TEST, 24); 4365 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005533; /* 0x3A005465: je 0x3a005533 */ 4366 L_3A00546B: 4367 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3A00546B: fld dword ptr [ebp - 4] */ 4368 _st[0] += (double)*(float*)ADDR(esi + 0x1C); /* 0x3A00546E: fadd dword ptr [esi + 0x1c] */ 4369 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005471: fst dword ptr [esi + 0x1c] */ 4370 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005474: fld dword ptr [esi + 0x14] */ 4371 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005477: fsub dword ptr [esi + 0x10] */ 4372 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00547A: fld dword ptr [0x3a00a180] */ 4373 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005480: fsub dword ptr [edi + 0x15c] */ 4374 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005486: fmulp st(1) */ 4375 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005488: fadd dword ptr [esi + 0x10] */ 4376 fp_xch(1); /* 0x3A00548B: fxch st(1) */ 4377 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3A00548D: fcompp */ 4378 fp_pop(); fp_pop(); 4379 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00548F: fnstsw ax */ 4380 /* test HI8(eax), 0x41u */ /* 0x3A005491: test ah, 0x41 */ 4381 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4382 _cf = 0; 4383 _flag_k = FK_NARROW(FK_TEST, 24); 4384 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005494: jne 0x3a005615 */ 4385 L_3A00549A: 4386 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A00549A: mov al, byte ptr [edi + 0x4c] */ 4387 /* test LO8(eax), LO8(eax) */ /* 0x3A00549D: test al, al */ 4388 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4389 _cf = 0; 4390 _flag_k = FK_NARROW(FK_TEST, 24); 4391 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0054AC; /* 0x3A00549F: je 0x3a0054ac */ 4392 L_3A0054A1: 4393 ecx = MEM32(edi + 0x17C); /* 0x3A0054A1: mov ecx, dword ptr [edi + 0x17c] */ 4394 MEM32(ebp + (-0x8)) = ecx; /* 0x3A0054A7: mov dword ptr [ebp - 8], ecx */ 4395 goto L_3A0054B3; /* 0x3A0054AA: jmp 0x3a0054b3 */ 4396 L_3A0054AC: 4397 MEM32(ebp + (-0x8)) = 0; /* 0x3A0054AC: mov dword ptr [ebp - 8], 0 */ 4398 L_3A0054B3: 4399 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4401 esp = esp - 0xCu; /* 0x3A0054B3: sub esp, 0xc */ 4402 _flag_k = FK_CMP; 4403 edx = esp; /* 0x3A0054B6: mov edx, esp */ 4404 PUSH32(esp, 0); /* 0x3A0054B8: push 0 */ 4405 PUSH32(esp, 1); /* 0x3A0054BA: push 1 */ 4406 PUSH32(esp, 0x64u); /* 0x3A0054BC: push 0x64 */ 4407 PUSH32(esp, 0); /* 0x3A0054BE: push 0 */ 4408 MEM32(ebp + (-0x1C)) = 0; /* 0x3A0054C0: mov dword ptr [ebp - 0x1c], 0 */ 4409 eax = MEM32(ebp + (-0x1C)); /* 0x3A0054C7: mov eax, dword ptr [ebp - 0x1c] */ 4410 MEM32(edx) = eax; /* 0x3A0054CA: mov dword ptr [edx], eax */ 4411 MEM32(ebp + (-0x18)) = 0; /* 0x3A0054CC: mov dword ptr [ebp - 0x18], 0 */ 4412 ecx = MEM32(ebp + (-0x18)); /* 0x3A0054D3: mov ecx, dword ptr [ebp - 0x18] */ 4413 MEM32(edx + 0x4) = ecx; /* 0x3A0054D6: mov dword ptr [edx + 4], ecx */ 4414 ecx = MEM32(ebp + (-0x8)); /* 0x3A0054D9: mov ecx, dword ptr [ebp - 8] */ 4415 PUSH32(esp, 0); /* 0x3A0054DC: push 0 */ 4416 PUSH32(esp, ecx); /* 0x3A0054DE: push ecx */ 4417 MEM32(ebp + (-0x14)) = 0; /* 0x3A0054DF: mov dword ptr [ebp - 0x14], 0 */ 4418 eax = MEM32(ebp + (-0x14)); /* 0x3A0054E6: mov eax, dword ptr [ebp - 0x14] */ 4419 MEM32(edx + 0x8) = eax; /* 0x3A0054E9: mov dword ptr [edx + 8], eax */ 4420 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4422 esp = esp - 0xCu; /* 0x3A0054EC: sub esp, 0xc */ 4423 _flag_k = FK_CMP; 4424 edx = edi + 0x170; /* 0x3A0054EF: lea edx, [edi + 0x170] */ 4425 ecx = MEM32(edx); /* 0x3A0054F5: mov ecx, dword ptr [edx] */ 4426 eax = esp; /* 0x3A0054F7: mov eax, esp */ 4427 MEM32(eax) = ecx; /* 0x3A0054F9: mov dword ptr [eax], ecx */ 4428 ecx = MEM32(edx + 0x4); /* 0x3A0054FB: mov ecx, dword ptr [edx + 4] */ 4429 edx = MEM32(edx + 0x8); /* 0x3A0054FE: mov edx, dword ptr [edx + 8] */ 4430 MEM32(eax + 0x4) = ecx; /* 0x3A005501: mov dword ptr [eax + 4], ecx */ 4431 PUSH32(esp, 0x3F800000u); /* 0x3A005504: push 0x3f800000 */ 4432 PUSH32(esp, esi); /* 0x3A005509: push esi */ 4433 ecx = ebx; /* 0x3A00550A: mov ecx, ebx */ 4434 MEM32(eax + 0x8) = edx; /* 0x3A00550C: mov dword ptr [eax + 8], edx */ 4435 RECOMP_ICALL(0x3A002360u); /* 0x3A00550F: call 0x3a002360 */ /* not lifted */ 4436 RECOMP_FLAGS_IN(); 4437 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005514: fld dword ptr [esi + 0x14] */ 4438 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005517: fsub dword ptr [esi + 0x10] */ 4439 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00551A: fld dword ptr [0x3a00a180] */ 4440 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005520: fsub dword ptr [edi + 0x15c] */ 4441 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005526: fmulp st(1) */ 4442 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005528: fadd dword ptr [esi + 0x10] */ 4443 _st[0] = (double)*(float*)ADDR(esi + 0x1C) - _st[0]; /* 0x3A00552B: fsubr dword ptr [esi + 0x1c] */ 4444 goto L_3A005612; /* 0x3A00552E: jmp 0x3a005612 */ 4445 L_3A005533: 4446 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005533: fld dword ptr [esi + 0x1c] */ 4447 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005536: fcomp dword ptr [0x3a00a178] */ 4448 fp_pop(); 4449 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00553C: fnstsw ax */ 4450 /* test HI8(eax), 0x41u */ /* 0x3A00553E: test ah, 0x41 */ 4451 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4452 _cf = 0; 4453 _flag_k = FK_NARROW(FK_TEST, 24); 4454 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005541: jne 0x3a005615 */ 4455 L_3A005547: 4456 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005547: fld dword ptr [esi + 0x1c] */ 4457 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3A00554A: fsub dword ptr [ebp - 4] */ 4458 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A00554D: fst dword ptr [esi + 0x1c] */ 4459 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005550: fcomp dword ptr [0x3a00a178] */ 4460 fp_pop(); 4461 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005556: fnstsw ax */ 4462 /* test HI8(eax), 0x41u */ /* 0x3A005558: test ah, 0x41 */ 4463 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4464 _cf = 0; 4465 _flag_k = FK_NARROW(FK_TEST, 24); 4466 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00555B: je 0x3a005615 */ 4467 L_3A005561: 4468 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A005561: mov al, byte ptr [edi + 0x4c] */ 4469 /* test LO8(eax), LO8(eax) */ /* 0x3A005564: test al, al */ 4470 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4471 _cf = 0; 4472 _flag_k = FK_NARROW(FK_TEST, 24); 4473 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005573; /* 0x3A005566: je 0x3a005573 */ 4474 L_3A005568: 4475 eax = MEM32(edi + 0x17C); /* 0x3A005568: mov eax, dword ptr [edi + 0x17c] */ 4476 MEM32(ebp + (-0xC)) = eax; /* 0x3A00556E: mov dword ptr [ebp - 0xc], eax */ 4477 goto L_3A00557A; /* 0x3A005571: jmp 0x3a00557a */ 4478 L_3A005573: 4479 MEM32(ebp + (-0xC)) = 0; /* 0x3A005573: mov dword ptr [ebp - 0xc], 0 */ 4480 L_3A00557A: 4481 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4483 esp = esp - 0xCu; /* 0x3A00557A: sub esp, 0xc */ 4484 _flag_k = FK_CMP; 4485 ecx = esp; /* 0x3A00557D: mov ecx, esp */ 4486 PUSH32(esp, 0); /* 0x3A00557F: push 0 */ 4487 PUSH32(esp, 1); /* 0x3A005581: push 1 */ 4488 PUSH32(esp, 0x64u); /* 0x3A005583: push 0x64 */ 4489 PUSH32(esp, 0); /* 0x3A005585: push 0 */ 4490 MEM32(ebp + (-0x28)) = 0; /* 0x3A005587: mov dword ptr [ebp - 0x28], 0 */ 4491 edx = MEM32(ebp + (-0x28)); /* 0x3A00558E: mov edx, dword ptr [ebp - 0x28] */ 4492 MEM32(ecx) = edx; /* 0x3A005591: mov dword ptr [ecx], edx */ 4493 MEM32(ebp + (-0x24)) = 0; /* 0x3A005593: mov dword ptr [ebp - 0x24], 0 */ 4494 eax = MEM32(ebp + (-0x24)); /* 0x3A00559A: mov eax, dword ptr [ebp - 0x24] */ 4495 MEM32(ecx + 0x4) = eax; /* 0x3A00559D: mov dword ptr [ecx + 4], eax */ 4496 eax = MEM32(ebp + (-0xC)); /* 0x3A0055A0: mov eax, dword ptr [ebp - 0xc] */ 4497 PUSH32(esp, 0); /* 0x3A0055A3: push 0 */ 4498 PUSH32(esp, eax); /* 0x3A0055A5: push eax */ 4499 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4501 esp = esp - 0xCu; /* 0x3A0055A6: sub esp, 0xc */ 4502 _flag_k = FK_CMP; 4503 MEM32(ebp + (-0x20)) = 0; /* 0x3A0055A9: mov dword ptr [ebp - 0x20], 0 */ 4504 edx = MEM32(ebp + (-0x20)); /* 0x3A0055B0: mov edx, dword ptr [ebp - 0x20] */ 4505 MEM32(ecx + 0x8) = edx; /* 0x3A0055B3: mov dword ptr [ecx + 8], edx */ 4506 ecx = esp; /* 0x3A0055B6: mov ecx, esp */ 4507 MEM32(ebp + (-0x34)) = 0; /* 0x3A0055B8: mov dword ptr [ebp - 0x34], 0 */ 4508 edx = MEM32(ebp + (-0x34)); /* 0x3A0055BF: mov edx, dword ptr [ebp - 0x34] */ 4509 MEM32(ecx) = edx; /* 0x3A0055C2: mov dword ptr [ecx], edx */ 4510 MEM32(ebp + (-0x30)) = 0; /* 0x3A0055C4: mov dword ptr [ebp - 0x30], 0 */ 4511 eax = MEM32(ebp + (-0x30)); /* 0x3A0055CB: mov eax, dword ptr [ebp - 0x30] */ 4512 MEM32(ecx + 0x4) = eax; /* 0x3A0055CE: mov dword ptr [ecx + 4], eax */ 4513 eax = MEM32(edi + 0x15C); /* 0x3A0055D1: mov eax, dword ptr [edi + 0x15c] */ 4514 MEM32(ebp + (-0x2C)) = 0; /* 0x3A0055D7: mov dword ptr [ebp - 0x2c], 0 */ 4515 edx = MEM32(ebp + (-0x2C)); /* 0x3A0055DE: mov edx, dword ptr [ebp - 0x2c] */ 4516 PUSH32(esp, eax); /* 0x3A0055E1: push eax */ 4517 MEM32(ecx + 0x8) = edx; /* 0x3A0055E2: mov dword ptr [ecx + 8], edx */ 4518 PUSH32(esp, esi); /* 0x3A0055E5: push esi */ 4519 ecx = ebx; /* 0x3A0055E6: mov ecx, ebx */ 4520 RECOMP_ICALL(0x3A002360u); /* 0x3A0055E8: call 0x3a002360 */ /* not lifted */ 4521 RECOMP_FLAGS_IN(); 4522 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A0055ED: call dword ptr [0x3a00a040] */ 4523 RECOMP_FLAGS_IN(); 4524 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A0055F3: cdq */ 4525 ecx = 0x3E8u; /* 0x3A0055F4: mov ecx, 0x3e8 */ 4526 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3A0055F9: idiv ecx */ 4527 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 4528 else { eax = 0; edx = 0; } } 4529 MEM32(ebp + (-0x10)) = edx; /* 0x3A0055FB: mov dword ptr [ebp - 0x10], edx */ 4530 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3A0055FE: fild dword ptr [ebp - 0x10] */ 4531 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005601: fld dword ptr [esi + 0x14] */ 4532 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005604: fsub dword ptr [esi + 0x10] */ 4533 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005607: fmulp st(1) */ 4534 _st[0] *= (double)*(float*)ADDR(0x3A00A174); /* 0x3A005609: fmul dword ptr [0x3a00a174] */ 4535 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A00560F: fadd dword ptr [esi + 0x10] */ 4536 L_3A005612: 4537 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005612: fstp dword ptr [esi + 0x1c] */ 4538 L_3A005615: 4539 PUSH32(esp, esi); /* 0x3A005615: push esi */ 4540 ecx = ebx; /* 0x3A005616: mov ecx, ebx */ 4541 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005618: call 0x3a0051e0 */ /* not lifted */ 4542 RECOMP_FLAGS_IN(); 4543 eax = MEM32(ebp + 0x8); /* 0x3A00561D: mov eax, dword ptr [ebp + 8] */ 4544 ecx = MEM32(edi + 0x20); /* 0x3A005620: mov ecx, dword ptr [edi + 0x20] */ 4545 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4546 eax = eax + 1; /* 0x3A005623: inc eax */ 4547 _flag_k = FK_INC; 4548 /* cmp eax, ecx */ /* 0x3A005624: cmp eax, ecx */ 4549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4551 _flag_k = FK_CMP; 4552 MEM32(ebp + 0x8) = eax; /* 0x3A005626: mov dword ptr [ebp + 8], eax */ 4553 RECOMP_BACKEDGE(); 4554 if (CMP_L(_flag_a, _flag_b)) goto L_3A00544F; /* 0x3A005629: jl 0x3a00544f */ 4555 L_3A00562F: 4556 edi = POP32_VAL(esp); /* 0x3A00562F: pop edi */ 4557 esi = POP32_VAL(esp); /* 0x3A005630: pop esi */ 4558 ebx = POP32_VAL(esp); /* 0x3A005631: pop ebx */ 4559 esp = ebp; /* 0x3A005632: mov esp, ebp */ 4560 ebp = POP32_VAL(esp); /* 0x3A005634: pop ebp */ 4561 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A005635: ret 4 */ 4562 RECOMP_REGS_OUT(); 4563 } 4564 4565 void sub_3A0054D3(void) { 4566 int _fpu_cmp = 0; 4567 uint32_t _cf = 0; 4568 int _df = 1; 4569 uint32_t _flag_k = FK_NONE; 4570 uint32_t _flag_a = 0, _flag_b = 0; 4571 uint32_t _itail_tgt = 0; 4572 RECOMP_REGS_LOCALS 4573 RECOMP_ENTER(0x3A0054D3u); 4574 4575 goto L_3A0054D3; 4576 L_3A00544F: 4577 edx = MEM32(edi + 0x28); /* 0x3A00544F: mov edx, dword ptr [edi + 0x28] */ 4578 eax = MEM32(ebp + 0x8); /* 0x3A005452: mov eax, dword ptr [ebp + 8] */ 4579 esi = MEM32(edx + eax * 4); /* 0x3A005455: mov esi, dword ptr [edx + eax*4] */ 4580 /* test esi, esi */ /* 0x3A005458: test esi, esi */ 4581 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4582 _cf = 0; 4583 _flag_k = FK_TEST; 4584 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00545A: je 0x3a005615 */ 4585 L_3A005460: 4586 SET_LO8(eax, MEM8(edi + 0x18)); /* 0x3A005460: mov al, byte ptr [edi + 0x18] */ 4587 /* test LO8(eax), LO8(eax) */ /* 0x3A005463: test al, al */ 4588 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4589 _cf = 0; 4590 _flag_k = FK_NARROW(FK_TEST, 24); 4591 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005533; /* 0x3A005465: je 0x3a005533 */ 4592 L_3A00546B: 4593 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3A00546B: fld dword ptr [ebp - 4] */ 4594 _st[0] += (double)*(float*)ADDR(esi + 0x1C); /* 0x3A00546E: fadd dword ptr [esi + 0x1c] */ 4595 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005471: fst dword ptr [esi + 0x1c] */ 4596 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005474: fld dword ptr [esi + 0x14] */ 4597 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005477: fsub dword ptr [esi + 0x10] */ 4598 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00547A: fld dword ptr [0x3a00a180] */ 4599 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005480: fsub dword ptr [edi + 0x15c] */ 4600 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005486: fmulp st(1) */ 4601 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005488: fadd dword ptr [esi + 0x10] */ 4602 fp_xch(1); /* 0x3A00548B: fxch st(1) */ 4603 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3A00548D: fcompp */ 4604 fp_pop(); fp_pop(); 4605 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00548F: fnstsw ax */ 4606 /* test HI8(eax), 0x41u */ /* 0x3A005491: test ah, 0x41 */ 4607 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4608 _cf = 0; 4609 _flag_k = FK_NARROW(FK_TEST, 24); 4610 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005494: jne 0x3a005615 */ 4611 L_3A00549A: 4612 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A00549A: mov al, byte ptr [edi + 0x4c] */ 4613 /* test LO8(eax), LO8(eax) */ /* 0x3A00549D: test al, al */ 4614 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4615 _cf = 0; 4616 _flag_k = FK_NARROW(FK_TEST, 24); 4617 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0054AC; /* 0x3A00549F: je 0x3a0054ac */ 4618 L_3A0054A1: 4619 ecx = MEM32(edi + 0x17C); /* 0x3A0054A1: mov ecx, dword ptr [edi + 0x17c] */ 4620 MEM32(ebp + (-0x8)) = ecx; /* 0x3A0054A7: mov dword ptr [ebp - 8], ecx */ 4621 goto L_3A0054B3; /* 0x3A0054AA: jmp 0x3a0054b3 */ 4622 L_3A0054AC: 4623 MEM32(ebp + (-0x8)) = 0; /* 0x3A0054AC: mov dword ptr [ebp - 8], 0 */ 4624 L_3A0054B3: 4625 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4627 esp = esp - 0xCu; /* 0x3A0054B3: sub esp, 0xc */ 4628 _flag_k = FK_CMP; 4629 edx = esp; /* 0x3A0054B6: mov edx, esp */ 4630 PUSH32(esp, 0); /* 0x3A0054B8: push 0 */ 4631 PUSH32(esp, 1); /* 0x3A0054BA: push 1 */ 4632 PUSH32(esp, 0x64u); /* 0x3A0054BC: push 0x64 */ 4633 PUSH32(esp, 0); /* 0x3A0054BE: push 0 */ 4634 MEM32(ebp + (-0x1C)) = 0; /* 0x3A0054C0: mov dword ptr [ebp - 0x1c], 0 */ 4635 eax = MEM32(ebp + (-0x1C)); /* 0x3A0054C7: mov eax, dword ptr [ebp - 0x1c] */ 4636 MEM32(edx) = eax; /* 0x3A0054CA: mov dword ptr [edx], eax */ 4637 MEM32(ebp + (-0x18)) = 0; /* 0x3A0054CC: mov dword ptr [ebp - 0x18], 0 */ 4638 L_3A0054D3: 4639 ecx = MEM32(ebp + (-0x18)); /* 0x3A0054D3: mov ecx, dword ptr [ebp - 0x18] */ 4640 MEM32(edx + 0x4) = ecx; /* 0x3A0054D6: mov dword ptr [edx + 4], ecx */ 4641 ecx = MEM32(ebp + (-0x8)); /* 0x3A0054D9: mov ecx, dword ptr [ebp - 8] */ 4642 PUSH32(esp, 0); /* 0x3A0054DC: push 0 */ 4643 PUSH32(esp, ecx); /* 0x3A0054DE: push ecx */ 4644 MEM32(ebp + (-0x14)) = 0; /* 0x3A0054DF: mov dword ptr [ebp - 0x14], 0 */ 4645 eax = MEM32(ebp + (-0x14)); /* 0x3A0054E6: mov eax, dword ptr [ebp - 0x14] */ 4646 MEM32(edx + 0x8) = eax; /* 0x3A0054E9: mov dword ptr [edx + 8], eax */ 4647 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4649 esp = esp - 0xCu; /* 0x3A0054EC: sub esp, 0xc */ 4650 _flag_k = FK_CMP; 4651 edx = edi + 0x170; /* 0x3A0054EF: lea edx, [edi + 0x170] */ 4652 ecx = MEM32(edx); /* 0x3A0054F5: mov ecx, dword ptr [edx] */ 4653 eax = esp; /* 0x3A0054F7: mov eax, esp */ 4654 MEM32(eax) = ecx; /* 0x3A0054F9: mov dword ptr [eax], ecx */ 4655 ecx = MEM32(edx + 0x4); /* 0x3A0054FB: mov ecx, dword ptr [edx + 4] */ 4656 edx = MEM32(edx + 0x8); /* 0x3A0054FE: mov edx, dword ptr [edx + 8] */ 4657 MEM32(eax + 0x4) = ecx; /* 0x3A005501: mov dword ptr [eax + 4], ecx */ 4658 PUSH32(esp, 0x3F800000u); /* 0x3A005504: push 0x3f800000 */ 4659 PUSH32(esp, esi); /* 0x3A005509: push esi */ 4660 ecx = ebx; /* 0x3A00550A: mov ecx, ebx */ 4661 MEM32(eax + 0x8) = edx; /* 0x3A00550C: mov dword ptr [eax + 8], edx */ 4662 RECOMP_ICALL(0x3A002360u); /* 0x3A00550F: call 0x3a002360 */ /* not lifted */ 4663 RECOMP_FLAGS_IN(); 4664 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005514: fld dword ptr [esi + 0x14] */ 4665 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005517: fsub dword ptr [esi + 0x10] */ 4666 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00551A: fld dword ptr [0x3a00a180] */ 4667 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005520: fsub dword ptr [edi + 0x15c] */ 4668 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005526: fmulp st(1) */ 4669 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005528: fadd dword ptr [esi + 0x10] */ 4670 _st[0] = (double)*(float*)ADDR(esi + 0x1C) - _st[0]; /* 0x3A00552B: fsubr dword ptr [esi + 0x1c] */ 4671 goto L_3A005612; /* 0x3A00552E: jmp 0x3a005612 */ 4672 L_3A005533: 4673 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005533: fld dword ptr [esi + 0x1c] */ 4674 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005536: fcomp dword ptr [0x3a00a178] */ 4675 fp_pop(); 4676 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00553C: fnstsw ax */ 4677 /* test HI8(eax), 0x41u */ /* 0x3A00553E: test ah, 0x41 */ 4678 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4679 _cf = 0; 4680 _flag_k = FK_NARROW(FK_TEST, 24); 4681 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005541: jne 0x3a005615 */ 4682 L_3A005547: 4683 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005547: fld dword ptr [esi + 0x1c] */ 4684 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3A00554A: fsub dword ptr [ebp - 4] */ 4685 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A00554D: fst dword ptr [esi + 0x1c] */ 4686 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005550: fcomp dword ptr [0x3a00a178] */ 4687 fp_pop(); 4688 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005556: fnstsw ax */ 4689 /* test HI8(eax), 0x41u */ /* 0x3A005558: test ah, 0x41 */ 4690 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4691 _cf = 0; 4692 _flag_k = FK_NARROW(FK_TEST, 24); 4693 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00555B: je 0x3a005615 */ 4694 L_3A005561: 4695 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A005561: mov al, byte ptr [edi + 0x4c] */ 4696 /* test LO8(eax), LO8(eax) */ /* 0x3A005564: test al, al */ 4697 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4698 _cf = 0; 4699 _flag_k = FK_NARROW(FK_TEST, 24); 4700 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005573; /* 0x3A005566: je 0x3a005573 */ 4701 L_3A005568: 4702 eax = MEM32(edi + 0x17C); /* 0x3A005568: mov eax, dword ptr [edi + 0x17c] */ 4703 MEM32(ebp + (-0xC)) = eax; /* 0x3A00556E: mov dword ptr [ebp - 0xc], eax */ 4704 goto L_3A00557A; /* 0x3A005571: jmp 0x3a00557a */ 4705 L_3A005573: 4706 MEM32(ebp + (-0xC)) = 0; /* 0x3A005573: mov dword ptr [ebp - 0xc], 0 */ 4707 L_3A00557A: 4708 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4710 esp = esp - 0xCu; /* 0x3A00557A: sub esp, 0xc */ 4711 _flag_k = FK_CMP; 4712 ecx = esp; /* 0x3A00557D: mov ecx, esp */ 4713 PUSH32(esp, 0); /* 0x3A00557F: push 0 */ 4714 PUSH32(esp, 1); /* 0x3A005581: push 1 */ 4715 PUSH32(esp, 0x64u); /* 0x3A005583: push 0x64 */ 4716 PUSH32(esp, 0); /* 0x3A005585: push 0 */ 4717 MEM32(ebp + (-0x28)) = 0; /* 0x3A005587: mov dword ptr [ebp - 0x28], 0 */ 4718 edx = MEM32(ebp + (-0x28)); /* 0x3A00558E: mov edx, dword ptr [ebp - 0x28] */ 4719 MEM32(ecx) = edx; /* 0x3A005591: mov dword ptr [ecx], edx */ 4720 MEM32(ebp + (-0x24)) = 0; /* 0x3A005593: mov dword ptr [ebp - 0x24], 0 */ 4721 eax = MEM32(ebp + (-0x24)); /* 0x3A00559A: mov eax, dword ptr [ebp - 0x24] */ 4722 MEM32(ecx + 0x4) = eax; /* 0x3A00559D: mov dword ptr [ecx + 4], eax */ 4723 eax = MEM32(ebp + (-0xC)); /* 0x3A0055A0: mov eax, dword ptr [ebp - 0xc] */ 4724 PUSH32(esp, 0); /* 0x3A0055A3: push 0 */ 4725 PUSH32(esp, eax); /* 0x3A0055A5: push eax */ 4726 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4728 esp = esp - 0xCu; /* 0x3A0055A6: sub esp, 0xc */ 4729 _flag_k = FK_CMP; 4730 MEM32(ebp + (-0x20)) = 0; /* 0x3A0055A9: mov dword ptr [ebp - 0x20], 0 */ 4731 edx = MEM32(ebp + (-0x20)); /* 0x3A0055B0: mov edx, dword ptr [ebp - 0x20] */ 4732 MEM32(ecx + 0x8) = edx; /* 0x3A0055B3: mov dword ptr [ecx + 8], edx */ 4733 ecx = esp; /* 0x3A0055B6: mov ecx, esp */ 4734 MEM32(ebp + (-0x34)) = 0; /* 0x3A0055B8: mov dword ptr [ebp - 0x34], 0 */ 4735 edx = MEM32(ebp + (-0x34)); /* 0x3A0055BF: mov edx, dword ptr [ebp - 0x34] */ 4736 MEM32(ecx) = edx; /* 0x3A0055C2: mov dword ptr [ecx], edx */ 4737 MEM32(ebp + (-0x30)) = 0; /* 0x3A0055C4: mov dword ptr [ebp - 0x30], 0 */ 4738 eax = MEM32(ebp + (-0x30)); /* 0x3A0055CB: mov eax, dword ptr [ebp - 0x30] */ 4739 MEM32(ecx + 0x4) = eax; /* 0x3A0055CE: mov dword ptr [ecx + 4], eax */ 4740 eax = MEM32(edi + 0x15C); /* 0x3A0055D1: mov eax, dword ptr [edi + 0x15c] */ 4741 MEM32(ebp + (-0x2C)) = 0; /* 0x3A0055D7: mov dword ptr [ebp - 0x2c], 0 */ 4742 edx = MEM32(ebp + (-0x2C)); /* 0x3A0055DE: mov edx, dword ptr [ebp - 0x2c] */ 4743 PUSH32(esp, eax); /* 0x3A0055E1: push eax */ 4744 MEM32(ecx + 0x8) = edx; /* 0x3A0055E2: mov dword ptr [ecx + 8], edx */ 4745 PUSH32(esp, esi); /* 0x3A0055E5: push esi */ 4746 ecx = ebx; /* 0x3A0055E6: mov ecx, ebx */ 4747 RECOMP_ICALL(0x3A002360u); /* 0x3A0055E8: call 0x3a002360 */ /* not lifted */ 4748 RECOMP_FLAGS_IN(); 4749 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A0055ED: call dword ptr [0x3a00a040] */ 4750 RECOMP_FLAGS_IN(); 4751 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A0055F3: cdq */ 4752 ecx = 0x3E8u; /* 0x3A0055F4: mov ecx, 0x3e8 */ 4753 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3A0055F9: idiv ecx */ 4754 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 4755 else { eax = 0; edx = 0; } } 4756 MEM32(ebp + (-0x10)) = edx; /* 0x3A0055FB: mov dword ptr [ebp - 0x10], edx */ 4757 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3A0055FE: fild dword ptr [ebp - 0x10] */ 4758 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005601: fld dword ptr [esi + 0x14] */ 4759 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005604: fsub dword ptr [esi + 0x10] */ 4760 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005607: fmulp st(1) */ 4761 _st[0] *= (double)*(float*)ADDR(0x3A00A174); /* 0x3A005609: fmul dword ptr [0x3a00a174] */ 4762 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A00560F: fadd dword ptr [esi + 0x10] */ 4763 L_3A005612: 4764 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005612: fstp dword ptr [esi + 0x1c] */ 4765 L_3A005615: 4766 PUSH32(esp, esi); /* 0x3A005615: push esi */ 4767 ecx = ebx; /* 0x3A005616: mov ecx, ebx */ 4768 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005618: call 0x3a0051e0 */ /* not lifted */ 4769 RECOMP_FLAGS_IN(); 4770 eax = MEM32(ebp + 0x8); /* 0x3A00561D: mov eax, dword ptr [ebp + 8] */ 4771 ecx = MEM32(edi + 0x20); /* 0x3A005620: mov ecx, dword ptr [edi + 0x20] */ 4772 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4773 eax = eax + 1; /* 0x3A005623: inc eax */ 4774 _flag_k = FK_INC; 4775 /* cmp eax, ecx */ /* 0x3A005624: cmp eax, ecx */ 4776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4778 _flag_k = FK_CMP; 4779 MEM32(ebp + 0x8) = eax; /* 0x3A005626: mov dword ptr [ebp + 8], eax */ 4780 RECOMP_BACKEDGE(); 4781 if (CMP_L(_flag_a, _flag_b)) goto L_3A00544F; /* 0x3A005629: jl 0x3a00544f */ 4782 L_3A00562F: 4783 edi = POP32_VAL(esp); /* 0x3A00562F: pop edi */ 4784 esi = POP32_VAL(esp); /* 0x3A005630: pop esi */ 4785 ebx = POP32_VAL(esp); /* 0x3A005631: pop ebx */ 4786 esp = ebp; /* 0x3A005632: mov esp, ebp */ 4787 ebp = POP32_VAL(esp); /* 0x3A005634: pop ebp */ 4788 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A005635: ret 4 */ 4789 RECOMP_REGS_OUT(); 4790 } 4791 4792 void sub_3A005533(void) { 4793 int _fpu_cmp = 0; 4794 uint32_t _cf = 0; 4795 int _df = 1; 4796 uint32_t _flag_k = FK_NONE; 4797 uint32_t _flag_a = 0, _flag_b = 0; 4798 uint32_t _itail_tgt = 0; 4799 RECOMP_REGS_LOCALS 4800 RECOMP_ENTER(0x3A005533u); 4801 4802 goto L_3A005533; 4803 L_3A00544F: 4804 edx = MEM32(edi + 0x28); /* 0x3A00544F: mov edx, dword ptr [edi + 0x28] */ 4805 eax = MEM32(ebp + 0x8); /* 0x3A005452: mov eax, dword ptr [ebp + 8] */ 4806 esi = MEM32(edx + eax * 4); /* 0x3A005455: mov esi, dword ptr [edx + eax*4] */ 4807 /* test esi, esi */ /* 0x3A005458: test esi, esi */ 4808 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4809 _cf = 0; 4810 _flag_k = FK_TEST; 4811 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00545A: je 0x3a005615 */ 4812 L_3A005460: 4813 SET_LO8(eax, MEM8(edi + 0x18)); /* 0x3A005460: mov al, byte ptr [edi + 0x18] */ 4814 /* test LO8(eax), LO8(eax) */ /* 0x3A005463: test al, al */ 4815 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4816 _cf = 0; 4817 _flag_k = FK_NARROW(FK_TEST, 24); 4818 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005533; /* 0x3A005465: je 0x3a005533 */ 4819 L_3A00546B: 4820 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3A00546B: fld dword ptr [ebp - 4] */ 4821 _st[0] += (double)*(float*)ADDR(esi + 0x1C); /* 0x3A00546E: fadd dword ptr [esi + 0x1c] */ 4822 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005471: fst dword ptr [esi + 0x1c] */ 4823 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005474: fld dword ptr [esi + 0x14] */ 4824 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005477: fsub dword ptr [esi + 0x10] */ 4825 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00547A: fld dword ptr [0x3a00a180] */ 4826 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005480: fsub dword ptr [edi + 0x15c] */ 4827 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005486: fmulp st(1) */ 4828 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005488: fadd dword ptr [esi + 0x10] */ 4829 fp_xch(1); /* 0x3A00548B: fxch st(1) */ 4830 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3A00548D: fcompp */ 4831 fp_pop(); fp_pop(); 4832 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00548F: fnstsw ax */ 4833 /* test HI8(eax), 0x41u */ /* 0x3A005491: test ah, 0x41 */ 4834 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4835 _cf = 0; 4836 _flag_k = FK_NARROW(FK_TEST, 24); 4837 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005494: jne 0x3a005615 */ 4838 L_3A00549A: 4839 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A00549A: mov al, byte ptr [edi + 0x4c] */ 4840 /* test LO8(eax), LO8(eax) */ /* 0x3A00549D: test al, al */ 4841 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4842 _cf = 0; 4843 _flag_k = FK_NARROW(FK_TEST, 24); 4844 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0054AC; /* 0x3A00549F: je 0x3a0054ac */ 4845 L_3A0054A1: 4846 ecx = MEM32(edi + 0x17C); /* 0x3A0054A1: mov ecx, dword ptr [edi + 0x17c] */ 4847 MEM32(ebp + (-0x8)) = ecx; /* 0x3A0054A7: mov dword ptr [ebp - 8], ecx */ 4848 goto L_3A0054B3; /* 0x3A0054AA: jmp 0x3a0054b3 */ 4849 L_3A0054AC: 4850 MEM32(ebp + (-0x8)) = 0; /* 0x3A0054AC: mov dword ptr [ebp - 8], 0 */ 4851 L_3A0054B3: 4852 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4854 esp = esp - 0xCu; /* 0x3A0054B3: sub esp, 0xc */ 4855 _flag_k = FK_CMP; 4856 edx = esp; /* 0x3A0054B6: mov edx, esp */ 4857 PUSH32(esp, 0); /* 0x3A0054B8: push 0 */ 4858 PUSH32(esp, 1); /* 0x3A0054BA: push 1 */ 4859 PUSH32(esp, 0x64u); /* 0x3A0054BC: push 0x64 */ 4860 PUSH32(esp, 0); /* 0x3A0054BE: push 0 */ 4861 MEM32(ebp + (-0x1C)) = 0; /* 0x3A0054C0: mov dword ptr [ebp - 0x1c], 0 */ 4862 eax = MEM32(ebp + (-0x1C)); /* 0x3A0054C7: mov eax, dword ptr [ebp - 0x1c] */ 4863 MEM32(edx) = eax; /* 0x3A0054CA: mov dword ptr [edx], eax */ 4864 MEM32(ebp + (-0x18)) = 0; /* 0x3A0054CC: mov dword ptr [ebp - 0x18], 0 */ 4865 ecx = MEM32(ebp + (-0x18)); /* 0x3A0054D3: mov ecx, dword ptr [ebp - 0x18] */ 4866 MEM32(edx + 0x4) = ecx; /* 0x3A0054D6: mov dword ptr [edx + 4], ecx */ 4867 ecx = MEM32(ebp + (-0x8)); /* 0x3A0054D9: mov ecx, dword ptr [ebp - 8] */ 4868 PUSH32(esp, 0); /* 0x3A0054DC: push 0 */ 4869 PUSH32(esp, ecx); /* 0x3A0054DE: push ecx */ 4870 MEM32(ebp + (-0x14)) = 0; /* 0x3A0054DF: mov dword ptr [ebp - 0x14], 0 */ 4871 eax = MEM32(ebp + (-0x14)); /* 0x3A0054E6: mov eax, dword ptr [ebp - 0x14] */ 4872 MEM32(edx + 0x8) = eax; /* 0x3A0054E9: mov dword ptr [edx + 8], eax */ 4873 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4875 esp = esp - 0xCu; /* 0x3A0054EC: sub esp, 0xc */ 4876 _flag_k = FK_CMP; 4877 edx = edi + 0x170; /* 0x3A0054EF: lea edx, [edi + 0x170] */ 4878 ecx = MEM32(edx); /* 0x3A0054F5: mov ecx, dword ptr [edx] */ 4879 eax = esp; /* 0x3A0054F7: mov eax, esp */ 4880 MEM32(eax) = ecx; /* 0x3A0054F9: mov dword ptr [eax], ecx */ 4881 ecx = MEM32(edx + 0x4); /* 0x3A0054FB: mov ecx, dword ptr [edx + 4] */ 4882 edx = MEM32(edx + 0x8); /* 0x3A0054FE: mov edx, dword ptr [edx + 8] */ 4883 MEM32(eax + 0x4) = ecx; /* 0x3A005501: mov dword ptr [eax + 4], ecx */ 4884 PUSH32(esp, 0x3F800000u); /* 0x3A005504: push 0x3f800000 */ 4885 PUSH32(esp, esi); /* 0x3A005509: push esi */ 4886 ecx = ebx; /* 0x3A00550A: mov ecx, ebx */ 4887 MEM32(eax + 0x8) = edx; /* 0x3A00550C: mov dword ptr [eax + 8], edx */ 4888 RECOMP_ICALL(0x3A002360u); /* 0x3A00550F: call 0x3a002360 */ /* not lifted */ 4889 RECOMP_FLAGS_IN(); 4890 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005514: fld dword ptr [esi + 0x14] */ 4891 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005517: fsub dword ptr [esi + 0x10] */ 4892 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00551A: fld dword ptr [0x3a00a180] */ 4893 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005520: fsub dword ptr [edi + 0x15c] */ 4894 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005526: fmulp st(1) */ 4895 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005528: fadd dword ptr [esi + 0x10] */ 4896 _st[0] = (double)*(float*)ADDR(esi + 0x1C) - _st[0]; /* 0x3A00552B: fsubr dword ptr [esi + 0x1c] */ 4897 goto L_3A005612; /* 0x3A00552E: jmp 0x3a005612 */ 4898 L_3A005533: 4899 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005533: fld dword ptr [esi + 0x1c] */ 4900 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005536: fcomp dword ptr [0x3a00a178] */ 4901 fp_pop(); 4902 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00553C: fnstsw ax */ 4903 /* test HI8(eax), 0x41u */ /* 0x3A00553E: test ah, 0x41 */ 4904 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4905 _cf = 0; 4906 _flag_k = FK_NARROW(FK_TEST, 24); 4907 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005541: jne 0x3a005615 */ 4908 L_3A005547: 4909 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005547: fld dword ptr [esi + 0x1c] */ 4910 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3A00554A: fsub dword ptr [ebp - 4] */ 4911 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A00554D: fst dword ptr [esi + 0x1c] */ 4912 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005550: fcomp dword ptr [0x3a00a178] */ 4913 fp_pop(); 4914 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005556: fnstsw ax */ 4915 /* test HI8(eax), 0x41u */ /* 0x3A005558: test ah, 0x41 */ 4916 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4917 _cf = 0; 4918 _flag_k = FK_NARROW(FK_TEST, 24); 4919 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00555B: je 0x3a005615 */ 4920 L_3A005561: 4921 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A005561: mov al, byte ptr [edi + 0x4c] */ 4922 /* test LO8(eax), LO8(eax) */ /* 0x3A005564: test al, al */ 4923 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4924 _cf = 0; 4925 _flag_k = FK_NARROW(FK_TEST, 24); 4926 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005573; /* 0x3A005566: je 0x3a005573 */ 4927 L_3A005568: 4928 eax = MEM32(edi + 0x17C); /* 0x3A005568: mov eax, dword ptr [edi + 0x17c] */ 4929 MEM32(ebp + (-0xC)) = eax; /* 0x3A00556E: mov dword ptr [ebp - 0xc], eax */ 4930 goto L_3A00557A; /* 0x3A005571: jmp 0x3a00557a */ 4931 L_3A005573: 4932 MEM32(ebp + (-0xC)) = 0; /* 0x3A005573: mov dword ptr [ebp - 0xc], 0 */ 4933 L_3A00557A: 4934 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4936 esp = esp - 0xCu; /* 0x3A00557A: sub esp, 0xc */ 4937 _flag_k = FK_CMP; 4938 ecx = esp; /* 0x3A00557D: mov ecx, esp */ 4939 PUSH32(esp, 0); /* 0x3A00557F: push 0 */ 4940 PUSH32(esp, 1); /* 0x3A005581: push 1 */ 4941 PUSH32(esp, 0x64u); /* 0x3A005583: push 0x64 */ 4942 PUSH32(esp, 0); /* 0x3A005585: push 0 */ 4943 MEM32(ebp + (-0x28)) = 0; /* 0x3A005587: mov dword ptr [ebp - 0x28], 0 */ 4944 edx = MEM32(ebp + (-0x28)); /* 0x3A00558E: mov edx, dword ptr [ebp - 0x28] */ 4945 MEM32(ecx) = edx; /* 0x3A005591: mov dword ptr [ecx], edx */ 4946 MEM32(ebp + (-0x24)) = 0; /* 0x3A005593: mov dword ptr [ebp - 0x24], 0 */ 4947 eax = MEM32(ebp + (-0x24)); /* 0x3A00559A: mov eax, dword ptr [ebp - 0x24] */ 4948 MEM32(ecx + 0x4) = eax; /* 0x3A00559D: mov dword ptr [ecx + 4], eax */ 4949 eax = MEM32(ebp + (-0xC)); /* 0x3A0055A0: mov eax, dword ptr [ebp - 0xc] */ 4950 PUSH32(esp, 0); /* 0x3A0055A3: push 0 */ 4951 PUSH32(esp, eax); /* 0x3A0055A5: push eax */ 4952 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4954 esp = esp - 0xCu; /* 0x3A0055A6: sub esp, 0xc */ 4955 _flag_k = FK_CMP; 4956 MEM32(ebp + (-0x20)) = 0; /* 0x3A0055A9: mov dword ptr [ebp - 0x20], 0 */ 4957 edx = MEM32(ebp + (-0x20)); /* 0x3A0055B0: mov edx, dword ptr [ebp - 0x20] */ 4958 MEM32(ecx + 0x8) = edx; /* 0x3A0055B3: mov dword ptr [ecx + 8], edx */ 4959 ecx = esp; /* 0x3A0055B6: mov ecx, esp */ 4960 MEM32(ebp + (-0x34)) = 0; /* 0x3A0055B8: mov dword ptr [ebp - 0x34], 0 */ 4961 edx = MEM32(ebp + (-0x34)); /* 0x3A0055BF: mov edx, dword ptr [ebp - 0x34] */ 4962 MEM32(ecx) = edx; /* 0x3A0055C2: mov dword ptr [ecx], edx */ 4963 MEM32(ebp + (-0x30)) = 0; /* 0x3A0055C4: mov dword ptr [ebp - 0x30], 0 */ 4964 eax = MEM32(ebp + (-0x30)); /* 0x3A0055CB: mov eax, dword ptr [ebp - 0x30] */ 4965 MEM32(ecx + 0x4) = eax; /* 0x3A0055CE: mov dword ptr [ecx + 4], eax */ 4966 eax = MEM32(edi + 0x15C); /* 0x3A0055D1: mov eax, dword ptr [edi + 0x15c] */ 4967 MEM32(ebp + (-0x2C)) = 0; /* 0x3A0055D7: mov dword ptr [ebp - 0x2c], 0 */ 4968 edx = MEM32(ebp + (-0x2C)); /* 0x3A0055DE: mov edx, dword ptr [ebp - 0x2c] */ 4969 PUSH32(esp, eax); /* 0x3A0055E1: push eax */ 4970 MEM32(ecx + 0x8) = edx; /* 0x3A0055E2: mov dword ptr [ecx + 8], edx */ 4971 PUSH32(esp, esi); /* 0x3A0055E5: push esi */ 4972 ecx = ebx; /* 0x3A0055E6: mov ecx, ebx */ 4973 RECOMP_ICALL(0x3A002360u); /* 0x3A0055E8: call 0x3a002360 */ /* not lifted */ 4974 RECOMP_FLAGS_IN(); 4975 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A0055ED: call dword ptr [0x3a00a040] */ 4976 RECOMP_FLAGS_IN(); 4977 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A0055F3: cdq */ 4978 ecx = 0x3E8u; /* 0x3A0055F4: mov ecx, 0x3e8 */ 4979 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3A0055F9: idiv ecx */ 4980 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 4981 else { eax = 0; edx = 0; } } 4982 MEM32(ebp + (-0x10)) = edx; /* 0x3A0055FB: mov dword ptr [ebp - 0x10], edx */ 4983 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3A0055FE: fild dword ptr [ebp - 0x10] */ 4984 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005601: fld dword ptr [esi + 0x14] */ 4985 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005604: fsub dword ptr [esi + 0x10] */ 4986 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005607: fmulp st(1) */ 4987 _st[0] *= (double)*(float*)ADDR(0x3A00A174); /* 0x3A005609: fmul dword ptr [0x3a00a174] */ 4988 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A00560F: fadd dword ptr [esi + 0x10] */ 4989 L_3A005612: 4990 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005612: fstp dword ptr [esi + 0x1c] */ 4991 L_3A005615: 4992 PUSH32(esp, esi); /* 0x3A005615: push esi */ 4993 ecx = ebx; /* 0x3A005616: mov ecx, ebx */ 4994 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005618: call 0x3a0051e0 */ /* not lifted */ 4995 RECOMP_FLAGS_IN(); 4996 eax = MEM32(ebp + 0x8); /* 0x3A00561D: mov eax, dword ptr [ebp + 8] */ 4997 ecx = MEM32(edi + 0x20); /* 0x3A005620: mov ecx, dword ptr [edi + 0x20] */ 4998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4999 eax = eax + 1; /* 0x3A005623: inc eax */ 5000 _flag_k = FK_INC; 5001 /* cmp eax, ecx */ /* 0x3A005624: cmp eax, ecx */ 5002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5004 _flag_k = FK_CMP; 5005 MEM32(ebp + 0x8) = eax; /* 0x3A005626: mov dword ptr [ebp + 8], eax */ 5006 RECOMP_BACKEDGE(); 5007 if (CMP_L(_flag_a, _flag_b)) goto L_3A00544F; /* 0x3A005629: jl 0x3a00544f */ 5008 L_3A00562F: 5009 edi = POP32_VAL(esp); /* 0x3A00562F: pop edi */ 5010 esi = POP32_VAL(esp); /* 0x3A005630: pop esi */ 5011 ebx = POP32_VAL(esp); /* 0x3A005631: pop ebx */ 5012 esp = ebp; /* 0x3A005632: mov esp, ebp */ 5013 ebp = POP32_VAL(esp); /* 0x3A005634: pop ebp */ 5014 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A005635: ret 4 */ 5015 RECOMP_REGS_OUT(); 5016 } 5017 5018 void sub_3A00557A(void) { 5019 int _fpu_cmp = 0; 5020 uint32_t _cf = 0; 5021 int _df = 1; 5022 uint32_t _flag_k = FK_NONE; 5023 uint32_t _flag_a = 0, _flag_b = 0; 5024 uint32_t _itail_tgt = 0; 5025 RECOMP_REGS_LOCALS 5026 RECOMP_ENTER(0x3A00557Au); 5027 5028 goto L_3A00557A; 5029 L_3A00544F: 5030 edx = MEM32(edi + 0x28); /* 0x3A00544F: mov edx, dword ptr [edi + 0x28] */ 5031 eax = MEM32(ebp + 0x8); /* 0x3A005452: mov eax, dword ptr [ebp + 8] */ 5032 esi = MEM32(edx + eax * 4); /* 0x3A005455: mov esi, dword ptr [edx + eax*4] */ 5033 /* test esi, esi */ /* 0x3A005458: test esi, esi */ 5034 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5035 _cf = 0; 5036 _flag_k = FK_TEST; 5037 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00545A: je 0x3a005615 */ 5038 L_3A005460: 5039 SET_LO8(eax, MEM8(edi + 0x18)); /* 0x3A005460: mov al, byte ptr [edi + 0x18] */ 5040 /* test LO8(eax), LO8(eax) */ /* 0x3A005463: test al, al */ 5041 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5042 _cf = 0; 5043 _flag_k = FK_NARROW(FK_TEST, 24); 5044 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005533; /* 0x3A005465: je 0x3a005533 */ 5045 L_3A00546B: 5046 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3A00546B: fld dword ptr [ebp - 4] */ 5047 _st[0] += (double)*(float*)ADDR(esi + 0x1C); /* 0x3A00546E: fadd dword ptr [esi + 0x1c] */ 5048 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005471: fst dword ptr [esi + 0x1c] */ 5049 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005474: fld dword ptr [esi + 0x14] */ 5050 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005477: fsub dword ptr [esi + 0x10] */ 5051 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00547A: fld dword ptr [0x3a00a180] */ 5052 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005480: fsub dword ptr [edi + 0x15c] */ 5053 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005486: fmulp st(1) */ 5054 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005488: fadd dword ptr [esi + 0x10] */ 5055 fp_xch(1); /* 0x3A00548B: fxch st(1) */ 5056 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3A00548D: fcompp */ 5057 fp_pop(); fp_pop(); 5058 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00548F: fnstsw ax */ 5059 /* test HI8(eax), 0x41u */ /* 0x3A005491: test ah, 0x41 */ 5060 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5061 _cf = 0; 5062 _flag_k = FK_NARROW(FK_TEST, 24); 5063 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005494: jne 0x3a005615 */ 5064 L_3A00549A: 5065 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A00549A: mov al, byte ptr [edi + 0x4c] */ 5066 /* test LO8(eax), LO8(eax) */ /* 0x3A00549D: test al, al */ 5067 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5068 _cf = 0; 5069 _flag_k = FK_NARROW(FK_TEST, 24); 5070 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0054AC; /* 0x3A00549F: je 0x3a0054ac */ 5071 L_3A0054A1: 5072 ecx = MEM32(edi + 0x17C); /* 0x3A0054A1: mov ecx, dword ptr [edi + 0x17c] */ 5073 MEM32(ebp + (-0x8)) = ecx; /* 0x3A0054A7: mov dword ptr [ebp - 8], ecx */ 5074 goto L_3A0054B3; /* 0x3A0054AA: jmp 0x3a0054b3 */ 5075 L_3A0054AC: 5076 MEM32(ebp + (-0x8)) = 0; /* 0x3A0054AC: mov dword ptr [ebp - 8], 0 */ 5077 L_3A0054B3: 5078 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5080 esp = esp - 0xCu; /* 0x3A0054B3: sub esp, 0xc */ 5081 _flag_k = FK_CMP; 5082 edx = esp; /* 0x3A0054B6: mov edx, esp */ 5083 PUSH32(esp, 0); /* 0x3A0054B8: push 0 */ 5084 PUSH32(esp, 1); /* 0x3A0054BA: push 1 */ 5085 PUSH32(esp, 0x64u); /* 0x3A0054BC: push 0x64 */ 5086 PUSH32(esp, 0); /* 0x3A0054BE: push 0 */ 5087 MEM32(ebp + (-0x1C)) = 0; /* 0x3A0054C0: mov dword ptr [ebp - 0x1c], 0 */ 5088 eax = MEM32(ebp + (-0x1C)); /* 0x3A0054C7: mov eax, dword ptr [ebp - 0x1c] */ 5089 MEM32(edx) = eax; /* 0x3A0054CA: mov dword ptr [edx], eax */ 5090 MEM32(ebp + (-0x18)) = 0; /* 0x3A0054CC: mov dword ptr [ebp - 0x18], 0 */ 5091 ecx = MEM32(ebp + (-0x18)); /* 0x3A0054D3: mov ecx, dword ptr [ebp - 0x18] */ 5092 MEM32(edx + 0x4) = ecx; /* 0x3A0054D6: mov dword ptr [edx + 4], ecx */ 5093 ecx = MEM32(ebp + (-0x8)); /* 0x3A0054D9: mov ecx, dword ptr [ebp - 8] */ 5094 PUSH32(esp, 0); /* 0x3A0054DC: push 0 */ 5095 PUSH32(esp, ecx); /* 0x3A0054DE: push ecx */ 5096 MEM32(ebp + (-0x14)) = 0; /* 0x3A0054DF: mov dword ptr [ebp - 0x14], 0 */ 5097 eax = MEM32(ebp + (-0x14)); /* 0x3A0054E6: mov eax, dword ptr [ebp - 0x14] */ 5098 MEM32(edx + 0x8) = eax; /* 0x3A0054E9: mov dword ptr [edx + 8], eax */ 5099 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5101 esp = esp - 0xCu; /* 0x3A0054EC: sub esp, 0xc */ 5102 _flag_k = FK_CMP; 5103 edx = edi + 0x170; /* 0x3A0054EF: lea edx, [edi + 0x170] */ 5104 ecx = MEM32(edx); /* 0x3A0054F5: mov ecx, dword ptr [edx] */ 5105 eax = esp; /* 0x3A0054F7: mov eax, esp */ 5106 MEM32(eax) = ecx; /* 0x3A0054F9: mov dword ptr [eax], ecx */ 5107 ecx = MEM32(edx + 0x4); /* 0x3A0054FB: mov ecx, dword ptr [edx + 4] */ 5108 edx = MEM32(edx + 0x8); /* 0x3A0054FE: mov edx, dword ptr [edx + 8] */ 5109 MEM32(eax + 0x4) = ecx; /* 0x3A005501: mov dword ptr [eax + 4], ecx */ 5110 PUSH32(esp, 0x3F800000u); /* 0x3A005504: push 0x3f800000 */ 5111 PUSH32(esp, esi); /* 0x3A005509: push esi */ 5112 ecx = ebx; /* 0x3A00550A: mov ecx, ebx */ 5113 MEM32(eax + 0x8) = edx; /* 0x3A00550C: mov dword ptr [eax + 8], edx */ 5114 RECOMP_ICALL(0x3A002360u); /* 0x3A00550F: call 0x3a002360 */ /* not lifted */ 5115 RECOMP_FLAGS_IN(); 5116 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005514: fld dword ptr [esi + 0x14] */ 5117 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005517: fsub dword ptr [esi + 0x10] */ 5118 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00551A: fld dword ptr [0x3a00a180] */ 5119 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005520: fsub dword ptr [edi + 0x15c] */ 5120 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005526: fmulp st(1) */ 5121 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005528: fadd dword ptr [esi + 0x10] */ 5122 _st[0] = (double)*(float*)ADDR(esi + 0x1C) - _st[0]; /* 0x3A00552B: fsubr dword ptr [esi + 0x1c] */ 5123 goto L_3A005612; /* 0x3A00552E: jmp 0x3a005612 */ 5124 L_3A005533: 5125 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005533: fld dword ptr [esi + 0x1c] */ 5126 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005536: fcomp dword ptr [0x3a00a178] */ 5127 fp_pop(); 5128 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00553C: fnstsw ax */ 5129 /* test HI8(eax), 0x41u */ /* 0x3A00553E: test ah, 0x41 */ 5130 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5131 _cf = 0; 5132 _flag_k = FK_NARROW(FK_TEST, 24); 5133 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005541: jne 0x3a005615 */ 5134 L_3A005547: 5135 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005547: fld dword ptr [esi + 0x1c] */ 5136 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3A00554A: fsub dword ptr [ebp - 4] */ 5137 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A00554D: fst dword ptr [esi + 0x1c] */ 5138 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005550: fcomp dword ptr [0x3a00a178] */ 5139 fp_pop(); 5140 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005556: fnstsw ax */ 5141 /* test HI8(eax), 0x41u */ /* 0x3A005558: test ah, 0x41 */ 5142 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5143 _cf = 0; 5144 _flag_k = FK_NARROW(FK_TEST, 24); 5145 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00555B: je 0x3a005615 */ 5146 L_3A005561: 5147 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A005561: mov al, byte ptr [edi + 0x4c] */ 5148 /* test LO8(eax), LO8(eax) */ /* 0x3A005564: test al, al */ 5149 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5150 _cf = 0; 5151 _flag_k = FK_NARROW(FK_TEST, 24); 5152 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005573; /* 0x3A005566: je 0x3a005573 */ 5153 L_3A005568: 5154 eax = MEM32(edi + 0x17C); /* 0x3A005568: mov eax, dword ptr [edi + 0x17c] */ 5155 MEM32(ebp + (-0xC)) = eax; /* 0x3A00556E: mov dword ptr [ebp - 0xc], eax */ 5156 goto L_3A00557A; /* 0x3A005571: jmp 0x3a00557a */ 5157 L_3A005573: 5158 MEM32(ebp + (-0xC)) = 0; /* 0x3A005573: mov dword ptr [ebp - 0xc], 0 */ 5159 L_3A00557A: 5160 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5162 esp = esp - 0xCu; /* 0x3A00557A: sub esp, 0xc */ 5163 _flag_k = FK_CMP; 5164 ecx = esp; /* 0x3A00557D: mov ecx, esp */ 5165 PUSH32(esp, 0); /* 0x3A00557F: push 0 */ 5166 PUSH32(esp, 1); /* 0x3A005581: push 1 */ 5167 PUSH32(esp, 0x64u); /* 0x3A005583: push 0x64 */ 5168 PUSH32(esp, 0); /* 0x3A005585: push 0 */ 5169 MEM32(ebp + (-0x28)) = 0; /* 0x3A005587: mov dword ptr [ebp - 0x28], 0 */ 5170 edx = MEM32(ebp + (-0x28)); /* 0x3A00558E: mov edx, dword ptr [ebp - 0x28] */ 5171 MEM32(ecx) = edx; /* 0x3A005591: mov dword ptr [ecx], edx */ 5172 MEM32(ebp + (-0x24)) = 0; /* 0x3A005593: mov dword ptr [ebp - 0x24], 0 */ 5173 eax = MEM32(ebp + (-0x24)); /* 0x3A00559A: mov eax, dword ptr [ebp - 0x24] */ 5174 MEM32(ecx + 0x4) = eax; /* 0x3A00559D: mov dword ptr [ecx + 4], eax */ 5175 eax = MEM32(ebp + (-0xC)); /* 0x3A0055A0: mov eax, dword ptr [ebp - 0xc] */ 5176 PUSH32(esp, 0); /* 0x3A0055A3: push 0 */ 5177 PUSH32(esp, eax); /* 0x3A0055A5: push eax */ 5178 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5180 esp = esp - 0xCu; /* 0x3A0055A6: sub esp, 0xc */ 5181 _flag_k = FK_CMP; 5182 MEM32(ebp + (-0x20)) = 0; /* 0x3A0055A9: mov dword ptr [ebp - 0x20], 0 */ 5183 edx = MEM32(ebp + (-0x20)); /* 0x3A0055B0: mov edx, dword ptr [ebp - 0x20] */ 5184 MEM32(ecx + 0x8) = edx; /* 0x3A0055B3: mov dword ptr [ecx + 8], edx */ 5185 ecx = esp; /* 0x3A0055B6: mov ecx, esp */ 5186 MEM32(ebp + (-0x34)) = 0; /* 0x3A0055B8: mov dword ptr [ebp - 0x34], 0 */ 5187 edx = MEM32(ebp + (-0x34)); /* 0x3A0055BF: mov edx, dword ptr [ebp - 0x34] */ 5188 MEM32(ecx) = edx; /* 0x3A0055C2: mov dword ptr [ecx], edx */ 5189 MEM32(ebp + (-0x30)) = 0; /* 0x3A0055C4: mov dword ptr [ebp - 0x30], 0 */ 5190 eax = MEM32(ebp + (-0x30)); /* 0x3A0055CB: mov eax, dword ptr [ebp - 0x30] */ 5191 MEM32(ecx + 0x4) = eax; /* 0x3A0055CE: mov dword ptr [ecx + 4], eax */ 5192 eax = MEM32(edi + 0x15C); /* 0x3A0055D1: mov eax, dword ptr [edi + 0x15c] */ 5193 MEM32(ebp + (-0x2C)) = 0; /* 0x3A0055D7: mov dword ptr [ebp - 0x2c], 0 */ 5194 edx = MEM32(ebp + (-0x2C)); /* 0x3A0055DE: mov edx, dword ptr [ebp - 0x2c] */ 5195 PUSH32(esp, eax); /* 0x3A0055E1: push eax */ 5196 MEM32(ecx + 0x8) = edx; /* 0x3A0055E2: mov dword ptr [ecx + 8], edx */ 5197 PUSH32(esp, esi); /* 0x3A0055E5: push esi */ 5198 ecx = ebx; /* 0x3A0055E6: mov ecx, ebx */ 5199 RECOMP_ICALL(0x3A002360u); /* 0x3A0055E8: call 0x3a002360 */ /* not lifted */ 5200 RECOMP_FLAGS_IN(); 5201 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A0055ED: call dword ptr [0x3a00a040] */ 5202 RECOMP_FLAGS_IN(); 5203 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A0055F3: cdq */ 5204 ecx = 0x3E8u; /* 0x3A0055F4: mov ecx, 0x3e8 */ 5205 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3A0055F9: idiv ecx */ 5206 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5207 else { eax = 0; edx = 0; } } 5208 MEM32(ebp + (-0x10)) = edx; /* 0x3A0055FB: mov dword ptr [ebp - 0x10], edx */ 5209 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3A0055FE: fild dword ptr [ebp - 0x10] */ 5210 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005601: fld dword ptr [esi + 0x14] */ 5211 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005604: fsub dword ptr [esi + 0x10] */ 5212 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005607: fmulp st(1) */ 5213 _st[0] *= (double)*(float*)ADDR(0x3A00A174); /* 0x3A005609: fmul dword ptr [0x3a00a174] */ 5214 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A00560F: fadd dword ptr [esi + 0x10] */ 5215 L_3A005612: 5216 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005612: fstp dword ptr [esi + 0x1c] */ 5217 L_3A005615: 5218 PUSH32(esp, esi); /* 0x3A005615: push esi */ 5219 ecx = ebx; /* 0x3A005616: mov ecx, ebx */ 5220 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005618: call 0x3a0051e0 */ /* not lifted */ 5221 RECOMP_FLAGS_IN(); 5222 eax = MEM32(ebp + 0x8); /* 0x3A00561D: mov eax, dword ptr [ebp + 8] */ 5223 ecx = MEM32(edi + 0x20); /* 0x3A005620: mov ecx, dword ptr [edi + 0x20] */ 5224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5225 eax = eax + 1; /* 0x3A005623: inc eax */ 5226 _flag_k = FK_INC; 5227 /* cmp eax, ecx */ /* 0x3A005624: cmp eax, ecx */ 5228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5230 _flag_k = FK_CMP; 5231 MEM32(ebp + 0x8) = eax; /* 0x3A005626: mov dword ptr [ebp + 8], eax */ 5232 RECOMP_BACKEDGE(); 5233 if (CMP_L(_flag_a, _flag_b)) goto L_3A00544F; /* 0x3A005629: jl 0x3a00544f */ 5234 L_3A00562F: 5235 edi = POP32_VAL(esp); /* 0x3A00562F: pop edi */ 5236 esi = POP32_VAL(esp); /* 0x3A005630: pop esi */ 5237 ebx = POP32_VAL(esp); /* 0x3A005631: pop ebx */ 5238 esp = ebp; /* 0x3A005632: mov esp, ebp */ 5239 ebp = POP32_VAL(esp); /* 0x3A005634: pop ebp */ 5240 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A005635: ret 4 */ 5241 RECOMP_REGS_OUT(); 5242 } 5243 5244 void sub_3A005612(void) { 5245 int _fpu_cmp = 0; 5246 uint32_t _cf = 0; 5247 int _df = 1; 5248 uint32_t _flag_k = FK_NONE; 5249 uint32_t _flag_a = 0, _flag_b = 0; 5250 uint32_t _itail_tgt = 0; 5251 RECOMP_REGS_LOCALS 5252 RECOMP_ENTER(0x3A005612u); 5253 5254 goto L_3A005612; 5255 L_3A00544F: 5256 edx = MEM32(edi + 0x28); /* 0x3A00544F: mov edx, dword ptr [edi + 0x28] */ 5257 eax = MEM32(ebp + 0x8); /* 0x3A005452: mov eax, dword ptr [ebp + 8] */ 5258 esi = MEM32(edx + eax * 4); /* 0x3A005455: mov esi, dword ptr [edx + eax*4] */ 5259 /* test esi, esi */ /* 0x3A005458: test esi, esi */ 5260 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5261 _cf = 0; 5262 _flag_k = FK_TEST; 5263 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00545A: je 0x3a005615 */ 5264 L_3A005460: 5265 SET_LO8(eax, MEM8(edi + 0x18)); /* 0x3A005460: mov al, byte ptr [edi + 0x18] */ 5266 /* test LO8(eax), LO8(eax) */ /* 0x3A005463: test al, al */ 5267 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5268 _cf = 0; 5269 _flag_k = FK_NARROW(FK_TEST, 24); 5270 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005533; /* 0x3A005465: je 0x3a005533 */ 5271 L_3A00546B: 5272 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3A00546B: fld dword ptr [ebp - 4] */ 5273 _st[0] += (double)*(float*)ADDR(esi + 0x1C); /* 0x3A00546E: fadd dword ptr [esi + 0x1c] */ 5274 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005471: fst dword ptr [esi + 0x1c] */ 5275 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005474: fld dword ptr [esi + 0x14] */ 5276 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005477: fsub dword ptr [esi + 0x10] */ 5277 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00547A: fld dword ptr [0x3a00a180] */ 5278 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005480: fsub dword ptr [edi + 0x15c] */ 5279 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005486: fmulp st(1) */ 5280 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005488: fadd dword ptr [esi + 0x10] */ 5281 fp_xch(1); /* 0x3A00548B: fxch st(1) */ 5282 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3A00548D: fcompp */ 5283 fp_pop(); fp_pop(); 5284 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00548F: fnstsw ax */ 5285 /* test HI8(eax), 0x41u */ /* 0x3A005491: test ah, 0x41 */ 5286 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5287 _cf = 0; 5288 _flag_k = FK_NARROW(FK_TEST, 24); 5289 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005494: jne 0x3a005615 */ 5290 L_3A00549A: 5291 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A00549A: mov al, byte ptr [edi + 0x4c] */ 5292 /* test LO8(eax), LO8(eax) */ /* 0x3A00549D: test al, al */ 5293 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5294 _cf = 0; 5295 _flag_k = FK_NARROW(FK_TEST, 24); 5296 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0054AC; /* 0x3A00549F: je 0x3a0054ac */ 5297 L_3A0054A1: 5298 ecx = MEM32(edi + 0x17C); /* 0x3A0054A1: mov ecx, dword ptr [edi + 0x17c] */ 5299 MEM32(ebp + (-0x8)) = ecx; /* 0x3A0054A7: mov dword ptr [ebp - 8], ecx */ 5300 goto L_3A0054B3; /* 0x3A0054AA: jmp 0x3a0054b3 */ 5301 L_3A0054AC: 5302 MEM32(ebp + (-0x8)) = 0; /* 0x3A0054AC: mov dword ptr [ebp - 8], 0 */ 5303 L_3A0054B3: 5304 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5306 esp = esp - 0xCu; /* 0x3A0054B3: sub esp, 0xc */ 5307 _flag_k = FK_CMP; 5308 edx = esp; /* 0x3A0054B6: mov edx, esp */ 5309 PUSH32(esp, 0); /* 0x3A0054B8: push 0 */ 5310 PUSH32(esp, 1); /* 0x3A0054BA: push 1 */ 5311 PUSH32(esp, 0x64u); /* 0x3A0054BC: push 0x64 */ 5312 PUSH32(esp, 0); /* 0x3A0054BE: push 0 */ 5313 MEM32(ebp + (-0x1C)) = 0; /* 0x3A0054C0: mov dword ptr [ebp - 0x1c], 0 */ 5314 eax = MEM32(ebp + (-0x1C)); /* 0x3A0054C7: mov eax, dword ptr [ebp - 0x1c] */ 5315 MEM32(edx) = eax; /* 0x3A0054CA: mov dword ptr [edx], eax */ 5316 MEM32(ebp + (-0x18)) = 0; /* 0x3A0054CC: mov dword ptr [ebp - 0x18], 0 */ 5317 ecx = MEM32(ebp + (-0x18)); /* 0x3A0054D3: mov ecx, dword ptr [ebp - 0x18] */ 5318 MEM32(edx + 0x4) = ecx; /* 0x3A0054D6: mov dword ptr [edx + 4], ecx */ 5319 ecx = MEM32(ebp + (-0x8)); /* 0x3A0054D9: mov ecx, dword ptr [ebp - 8] */ 5320 PUSH32(esp, 0); /* 0x3A0054DC: push 0 */ 5321 PUSH32(esp, ecx); /* 0x3A0054DE: push ecx */ 5322 MEM32(ebp + (-0x14)) = 0; /* 0x3A0054DF: mov dword ptr [ebp - 0x14], 0 */ 5323 eax = MEM32(ebp + (-0x14)); /* 0x3A0054E6: mov eax, dword ptr [ebp - 0x14] */ 5324 MEM32(edx + 0x8) = eax; /* 0x3A0054E9: mov dword ptr [edx + 8], eax */ 5325 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5327 esp = esp - 0xCu; /* 0x3A0054EC: sub esp, 0xc */ 5328 _flag_k = FK_CMP; 5329 edx = edi + 0x170; /* 0x3A0054EF: lea edx, [edi + 0x170] */ 5330 ecx = MEM32(edx); /* 0x3A0054F5: mov ecx, dword ptr [edx] */ 5331 eax = esp; /* 0x3A0054F7: mov eax, esp */ 5332 MEM32(eax) = ecx; /* 0x3A0054F9: mov dword ptr [eax], ecx */ 5333 ecx = MEM32(edx + 0x4); /* 0x3A0054FB: mov ecx, dword ptr [edx + 4] */ 5334 edx = MEM32(edx + 0x8); /* 0x3A0054FE: mov edx, dword ptr [edx + 8] */ 5335 MEM32(eax + 0x4) = ecx; /* 0x3A005501: mov dword ptr [eax + 4], ecx */ 5336 PUSH32(esp, 0x3F800000u); /* 0x3A005504: push 0x3f800000 */ 5337 PUSH32(esp, esi); /* 0x3A005509: push esi */ 5338 ecx = ebx; /* 0x3A00550A: mov ecx, ebx */ 5339 MEM32(eax + 0x8) = edx; /* 0x3A00550C: mov dword ptr [eax + 8], edx */ 5340 RECOMP_ICALL(0x3A002360u); /* 0x3A00550F: call 0x3a002360 */ /* not lifted */ 5341 RECOMP_FLAGS_IN(); 5342 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005514: fld dword ptr [esi + 0x14] */ 5343 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005517: fsub dword ptr [esi + 0x10] */ 5344 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00551A: fld dword ptr [0x3a00a180] */ 5345 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005520: fsub dword ptr [edi + 0x15c] */ 5346 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005526: fmulp st(1) */ 5347 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005528: fadd dword ptr [esi + 0x10] */ 5348 _st[0] = (double)*(float*)ADDR(esi + 0x1C) - _st[0]; /* 0x3A00552B: fsubr dword ptr [esi + 0x1c] */ 5349 goto L_3A005612; /* 0x3A00552E: jmp 0x3a005612 */ 5350 L_3A005533: 5351 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005533: fld dword ptr [esi + 0x1c] */ 5352 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005536: fcomp dword ptr [0x3a00a178] */ 5353 fp_pop(); 5354 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00553C: fnstsw ax */ 5355 /* test HI8(eax), 0x41u */ /* 0x3A00553E: test ah, 0x41 */ 5356 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5357 _cf = 0; 5358 _flag_k = FK_NARROW(FK_TEST, 24); 5359 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005541: jne 0x3a005615 */ 5360 L_3A005547: 5361 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005547: fld dword ptr [esi + 0x1c] */ 5362 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3A00554A: fsub dword ptr [ebp - 4] */ 5363 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A00554D: fst dword ptr [esi + 0x1c] */ 5364 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005550: fcomp dword ptr [0x3a00a178] */ 5365 fp_pop(); 5366 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005556: fnstsw ax */ 5367 /* test HI8(eax), 0x41u */ /* 0x3A005558: test ah, 0x41 */ 5368 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5369 _cf = 0; 5370 _flag_k = FK_NARROW(FK_TEST, 24); 5371 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00555B: je 0x3a005615 */ 5372 L_3A005561: 5373 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A005561: mov al, byte ptr [edi + 0x4c] */ 5374 /* test LO8(eax), LO8(eax) */ /* 0x3A005564: test al, al */ 5375 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5376 _cf = 0; 5377 _flag_k = FK_NARROW(FK_TEST, 24); 5378 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005573; /* 0x3A005566: je 0x3a005573 */ 5379 L_3A005568: 5380 eax = MEM32(edi + 0x17C); /* 0x3A005568: mov eax, dword ptr [edi + 0x17c] */ 5381 MEM32(ebp + (-0xC)) = eax; /* 0x3A00556E: mov dword ptr [ebp - 0xc], eax */ 5382 goto L_3A00557A; /* 0x3A005571: jmp 0x3a00557a */ 5383 L_3A005573: 5384 MEM32(ebp + (-0xC)) = 0; /* 0x3A005573: mov dword ptr [ebp - 0xc], 0 */ 5385 L_3A00557A: 5386 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5388 esp = esp - 0xCu; /* 0x3A00557A: sub esp, 0xc */ 5389 _flag_k = FK_CMP; 5390 ecx = esp; /* 0x3A00557D: mov ecx, esp */ 5391 PUSH32(esp, 0); /* 0x3A00557F: push 0 */ 5392 PUSH32(esp, 1); /* 0x3A005581: push 1 */ 5393 PUSH32(esp, 0x64u); /* 0x3A005583: push 0x64 */ 5394 PUSH32(esp, 0); /* 0x3A005585: push 0 */ 5395 MEM32(ebp + (-0x28)) = 0; /* 0x3A005587: mov dword ptr [ebp - 0x28], 0 */ 5396 edx = MEM32(ebp + (-0x28)); /* 0x3A00558E: mov edx, dword ptr [ebp - 0x28] */ 5397 MEM32(ecx) = edx; /* 0x3A005591: mov dword ptr [ecx], edx */ 5398 MEM32(ebp + (-0x24)) = 0; /* 0x3A005593: mov dword ptr [ebp - 0x24], 0 */ 5399 eax = MEM32(ebp + (-0x24)); /* 0x3A00559A: mov eax, dword ptr [ebp - 0x24] */ 5400 MEM32(ecx + 0x4) = eax; /* 0x3A00559D: mov dword ptr [ecx + 4], eax */ 5401 eax = MEM32(ebp + (-0xC)); /* 0x3A0055A0: mov eax, dword ptr [ebp - 0xc] */ 5402 PUSH32(esp, 0); /* 0x3A0055A3: push 0 */ 5403 PUSH32(esp, eax); /* 0x3A0055A5: push eax */ 5404 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5406 esp = esp - 0xCu; /* 0x3A0055A6: sub esp, 0xc */ 5407 _flag_k = FK_CMP; 5408 MEM32(ebp + (-0x20)) = 0; /* 0x3A0055A9: mov dword ptr [ebp - 0x20], 0 */ 5409 edx = MEM32(ebp + (-0x20)); /* 0x3A0055B0: mov edx, dword ptr [ebp - 0x20] */ 5410 MEM32(ecx + 0x8) = edx; /* 0x3A0055B3: mov dword ptr [ecx + 8], edx */ 5411 ecx = esp; /* 0x3A0055B6: mov ecx, esp */ 5412 MEM32(ebp + (-0x34)) = 0; /* 0x3A0055B8: mov dword ptr [ebp - 0x34], 0 */ 5413 edx = MEM32(ebp + (-0x34)); /* 0x3A0055BF: mov edx, dword ptr [ebp - 0x34] */ 5414 MEM32(ecx) = edx; /* 0x3A0055C2: mov dword ptr [ecx], edx */ 5415 MEM32(ebp + (-0x30)) = 0; /* 0x3A0055C4: mov dword ptr [ebp - 0x30], 0 */ 5416 eax = MEM32(ebp + (-0x30)); /* 0x3A0055CB: mov eax, dword ptr [ebp - 0x30] */ 5417 MEM32(ecx + 0x4) = eax; /* 0x3A0055CE: mov dword ptr [ecx + 4], eax */ 5418 eax = MEM32(edi + 0x15C); /* 0x3A0055D1: mov eax, dword ptr [edi + 0x15c] */ 5419 MEM32(ebp + (-0x2C)) = 0; /* 0x3A0055D7: mov dword ptr [ebp - 0x2c], 0 */ 5420 edx = MEM32(ebp + (-0x2C)); /* 0x3A0055DE: mov edx, dword ptr [ebp - 0x2c] */ 5421 PUSH32(esp, eax); /* 0x3A0055E1: push eax */ 5422 MEM32(ecx + 0x8) = edx; /* 0x3A0055E2: mov dword ptr [ecx + 8], edx */ 5423 PUSH32(esp, esi); /* 0x3A0055E5: push esi */ 5424 ecx = ebx; /* 0x3A0055E6: mov ecx, ebx */ 5425 RECOMP_ICALL(0x3A002360u); /* 0x3A0055E8: call 0x3a002360 */ /* not lifted */ 5426 RECOMP_FLAGS_IN(); 5427 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A0055ED: call dword ptr [0x3a00a040] */ 5428 RECOMP_FLAGS_IN(); 5429 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A0055F3: cdq */ 5430 ecx = 0x3E8u; /* 0x3A0055F4: mov ecx, 0x3e8 */ 5431 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3A0055F9: idiv ecx */ 5432 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5433 else { eax = 0; edx = 0; } } 5434 MEM32(ebp + (-0x10)) = edx; /* 0x3A0055FB: mov dword ptr [ebp - 0x10], edx */ 5435 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3A0055FE: fild dword ptr [ebp - 0x10] */ 5436 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005601: fld dword ptr [esi + 0x14] */ 5437 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005604: fsub dword ptr [esi + 0x10] */ 5438 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005607: fmulp st(1) */ 5439 _st[0] *= (double)*(float*)ADDR(0x3A00A174); /* 0x3A005609: fmul dword ptr [0x3a00a174] */ 5440 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A00560F: fadd dword ptr [esi + 0x10] */ 5441 L_3A005612: 5442 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005612: fstp dword ptr [esi + 0x1c] */ 5443 L_3A005615: 5444 PUSH32(esp, esi); /* 0x3A005615: push esi */ 5445 ecx = ebx; /* 0x3A005616: mov ecx, ebx */ 5446 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005618: call 0x3a0051e0 */ /* not lifted */ 5447 RECOMP_FLAGS_IN(); 5448 eax = MEM32(ebp + 0x8); /* 0x3A00561D: mov eax, dword ptr [ebp + 8] */ 5449 ecx = MEM32(edi + 0x20); /* 0x3A005620: mov ecx, dword ptr [edi + 0x20] */ 5450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5451 eax = eax + 1; /* 0x3A005623: inc eax */ 5452 _flag_k = FK_INC; 5453 /* cmp eax, ecx */ /* 0x3A005624: cmp eax, ecx */ 5454 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5456 _flag_k = FK_CMP; 5457 MEM32(ebp + 0x8) = eax; /* 0x3A005626: mov dword ptr [ebp + 8], eax */ 5458 RECOMP_BACKEDGE(); 5459 if (CMP_L(_flag_a, _flag_b)) goto L_3A00544F; /* 0x3A005629: jl 0x3a00544f */ 5460 L_3A00562F: 5461 edi = POP32_VAL(esp); /* 0x3A00562F: pop edi */ 5462 esi = POP32_VAL(esp); /* 0x3A005630: pop esi */ 5463 ebx = POP32_VAL(esp); /* 0x3A005631: pop ebx */ 5464 esp = ebp; /* 0x3A005632: mov esp, ebp */ 5465 ebp = POP32_VAL(esp); /* 0x3A005634: pop ebp */ 5466 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A005635: ret 4 */ 5467 RECOMP_REGS_OUT(); 5468 } 5469 5470 void sub_3A005615(void) { 5471 int _fpu_cmp = 0; 5472 uint32_t _cf = 0; 5473 int _df = 1; 5474 uint32_t _flag_k = FK_NONE; 5475 uint32_t _flag_a = 0, _flag_b = 0; 5476 uint32_t _itail_tgt = 0; 5477 RECOMP_REGS_LOCALS 5478 RECOMP_ENTER(0x3A005615u); 5479 5480 goto L_3A005615; 5481 L_3A00544F: 5482 edx = MEM32(edi + 0x28); /* 0x3A00544F: mov edx, dword ptr [edi + 0x28] */ 5483 eax = MEM32(ebp + 0x8); /* 0x3A005452: mov eax, dword ptr [ebp + 8] */ 5484 esi = MEM32(edx + eax * 4); /* 0x3A005455: mov esi, dword ptr [edx + eax*4] */ 5485 /* test esi, esi */ /* 0x3A005458: test esi, esi */ 5486 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5487 _cf = 0; 5488 _flag_k = FK_TEST; 5489 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00545A: je 0x3a005615 */ 5490 L_3A005460: 5491 SET_LO8(eax, MEM8(edi + 0x18)); /* 0x3A005460: mov al, byte ptr [edi + 0x18] */ 5492 /* test LO8(eax), LO8(eax) */ /* 0x3A005463: test al, al */ 5493 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5494 _cf = 0; 5495 _flag_k = FK_NARROW(FK_TEST, 24); 5496 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005533; /* 0x3A005465: je 0x3a005533 */ 5497 L_3A00546B: 5498 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3A00546B: fld dword ptr [ebp - 4] */ 5499 _st[0] += (double)*(float*)ADDR(esi + 0x1C); /* 0x3A00546E: fadd dword ptr [esi + 0x1c] */ 5500 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005471: fst dword ptr [esi + 0x1c] */ 5501 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005474: fld dword ptr [esi + 0x14] */ 5502 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005477: fsub dword ptr [esi + 0x10] */ 5503 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00547A: fld dword ptr [0x3a00a180] */ 5504 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005480: fsub dword ptr [edi + 0x15c] */ 5505 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005486: fmulp st(1) */ 5506 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005488: fadd dword ptr [esi + 0x10] */ 5507 fp_xch(1); /* 0x3A00548B: fxch st(1) */ 5508 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3A00548D: fcompp */ 5509 fp_pop(); fp_pop(); 5510 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00548F: fnstsw ax */ 5511 /* test HI8(eax), 0x41u */ /* 0x3A005491: test ah, 0x41 */ 5512 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5513 _cf = 0; 5514 _flag_k = FK_NARROW(FK_TEST, 24); 5515 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005494: jne 0x3a005615 */ 5516 L_3A00549A: 5517 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A00549A: mov al, byte ptr [edi + 0x4c] */ 5518 /* test LO8(eax), LO8(eax) */ /* 0x3A00549D: test al, al */ 5519 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5520 _cf = 0; 5521 _flag_k = FK_NARROW(FK_TEST, 24); 5522 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0054AC; /* 0x3A00549F: je 0x3a0054ac */ 5523 L_3A0054A1: 5524 ecx = MEM32(edi + 0x17C); /* 0x3A0054A1: mov ecx, dword ptr [edi + 0x17c] */ 5525 MEM32(ebp + (-0x8)) = ecx; /* 0x3A0054A7: mov dword ptr [ebp - 8], ecx */ 5526 goto L_3A0054B3; /* 0x3A0054AA: jmp 0x3a0054b3 */ 5527 L_3A0054AC: 5528 MEM32(ebp + (-0x8)) = 0; /* 0x3A0054AC: mov dword ptr [ebp - 8], 0 */ 5529 L_3A0054B3: 5530 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5532 esp = esp - 0xCu; /* 0x3A0054B3: sub esp, 0xc */ 5533 _flag_k = FK_CMP; 5534 edx = esp; /* 0x3A0054B6: mov edx, esp */ 5535 PUSH32(esp, 0); /* 0x3A0054B8: push 0 */ 5536 PUSH32(esp, 1); /* 0x3A0054BA: push 1 */ 5537 PUSH32(esp, 0x64u); /* 0x3A0054BC: push 0x64 */ 5538 PUSH32(esp, 0); /* 0x3A0054BE: push 0 */ 5539 MEM32(ebp + (-0x1C)) = 0; /* 0x3A0054C0: mov dword ptr [ebp - 0x1c], 0 */ 5540 eax = MEM32(ebp + (-0x1C)); /* 0x3A0054C7: mov eax, dword ptr [ebp - 0x1c] */ 5541 MEM32(edx) = eax; /* 0x3A0054CA: mov dword ptr [edx], eax */ 5542 MEM32(ebp + (-0x18)) = 0; /* 0x3A0054CC: mov dword ptr [ebp - 0x18], 0 */ 5543 ecx = MEM32(ebp + (-0x18)); /* 0x3A0054D3: mov ecx, dword ptr [ebp - 0x18] */ 5544 MEM32(edx + 0x4) = ecx; /* 0x3A0054D6: mov dword ptr [edx + 4], ecx */ 5545 ecx = MEM32(ebp + (-0x8)); /* 0x3A0054D9: mov ecx, dword ptr [ebp - 8] */ 5546 PUSH32(esp, 0); /* 0x3A0054DC: push 0 */ 5547 PUSH32(esp, ecx); /* 0x3A0054DE: push ecx */ 5548 MEM32(ebp + (-0x14)) = 0; /* 0x3A0054DF: mov dword ptr [ebp - 0x14], 0 */ 5549 eax = MEM32(ebp + (-0x14)); /* 0x3A0054E6: mov eax, dword ptr [ebp - 0x14] */ 5550 MEM32(edx + 0x8) = eax; /* 0x3A0054E9: mov dword ptr [edx + 8], eax */ 5551 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5553 esp = esp - 0xCu; /* 0x3A0054EC: sub esp, 0xc */ 5554 _flag_k = FK_CMP; 5555 edx = edi + 0x170; /* 0x3A0054EF: lea edx, [edi + 0x170] */ 5556 ecx = MEM32(edx); /* 0x3A0054F5: mov ecx, dword ptr [edx] */ 5557 eax = esp; /* 0x3A0054F7: mov eax, esp */ 5558 MEM32(eax) = ecx; /* 0x3A0054F9: mov dword ptr [eax], ecx */ 5559 ecx = MEM32(edx + 0x4); /* 0x3A0054FB: mov ecx, dword ptr [edx + 4] */ 5560 edx = MEM32(edx + 0x8); /* 0x3A0054FE: mov edx, dword ptr [edx + 8] */ 5561 MEM32(eax + 0x4) = ecx; /* 0x3A005501: mov dword ptr [eax + 4], ecx */ 5562 PUSH32(esp, 0x3F800000u); /* 0x3A005504: push 0x3f800000 */ 5563 PUSH32(esp, esi); /* 0x3A005509: push esi */ 5564 ecx = ebx; /* 0x3A00550A: mov ecx, ebx */ 5565 MEM32(eax + 0x8) = edx; /* 0x3A00550C: mov dword ptr [eax + 8], edx */ 5566 RECOMP_ICALL(0x3A002360u); /* 0x3A00550F: call 0x3a002360 */ /* not lifted */ 5567 RECOMP_FLAGS_IN(); 5568 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005514: fld dword ptr [esi + 0x14] */ 5569 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005517: fsub dword ptr [esi + 0x10] */ 5570 fp_push(*(float*)&MEM32(0x3A00A180)); /* 0x3A00551A: fld dword ptr [0x3a00a180] */ 5571 _st[0] -= (double)*(float*)ADDR(edi + 0x15C); /* 0x3A005520: fsub dword ptr [edi + 0x15c] */ 5572 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005526: fmulp st(1) */ 5573 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A005528: fadd dword ptr [esi + 0x10] */ 5574 _st[0] = (double)*(float*)ADDR(esi + 0x1C) - _st[0]; /* 0x3A00552B: fsubr dword ptr [esi + 0x1c] */ 5575 goto L_3A005612; /* 0x3A00552E: jmp 0x3a005612 */ 5576 L_3A005533: 5577 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005533: fld dword ptr [esi + 0x1c] */ 5578 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005536: fcomp dword ptr [0x3a00a178] */ 5579 fp_pop(); 5580 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A00553C: fnstsw ax */ 5581 /* test HI8(eax), 0x41u */ /* 0x3A00553E: test ah, 0x41 */ 5582 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5583 _cf = 0; 5584 _flag_k = FK_NARROW(FK_TEST, 24); 5585 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A005541: jne 0x3a005615 */ 5586 L_3A005547: 5587 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x3A005547: fld dword ptr [esi + 0x1c] */ 5588 _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3A00554A: fsub dword ptr [ebp - 4] */ 5589 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A00554D: fst dword ptr [esi + 0x1c] */ 5590 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3A00A178)); /* 0x3A005550: fcomp dword ptr [0x3a00a178] */ 5591 fp_pop(); 5592 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3A005556: fnstsw ax */ 5593 /* test HI8(eax), 0x41u */ /* 0x3A005558: test ah, 0x41 */ 5594 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5595 _cf = 0; 5596 _flag_k = FK_NARROW(FK_TEST, 24); 5597 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005615; /* 0x3A00555B: je 0x3a005615 */ 5598 L_3A005561: 5599 SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3A005561: mov al, byte ptr [edi + 0x4c] */ 5600 /* test LO8(eax), LO8(eax) */ /* 0x3A005564: test al, al */ 5601 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5602 _cf = 0; 5603 _flag_k = FK_NARROW(FK_TEST, 24); 5604 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005573; /* 0x3A005566: je 0x3a005573 */ 5605 L_3A005568: 5606 eax = MEM32(edi + 0x17C); /* 0x3A005568: mov eax, dword ptr [edi + 0x17c] */ 5607 MEM32(ebp + (-0xC)) = eax; /* 0x3A00556E: mov dword ptr [ebp - 0xc], eax */ 5608 goto L_3A00557A; /* 0x3A005571: jmp 0x3a00557a */ 5609 L_3A005573: 5610 MEM32(ebp + (-0xC)) = 0; /* 0x3A005573: mov dword ptr [ebp - 0xc], 0 */ 5611 L_3A00557A: 5612 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5614 esp = esp - 0xCu; /* 0x3A00557A: sub esp, 0xc */ 5615 _flag_k = FK_CMP; 5616 ecx = esp; /* 0x3A00557D: mov ecx, esp */ 5617 PUSH32(esp, 0); /* 0x3A00557F: push 0 */ 5618 PUSH32(esp, 1); /* 0x3A005581: push 1 */ 5619 PUSH32(esp, 0x64u); /* 0x3A005583: push 0x64 */ 5620 PUSH32(esp, 0); /* 0x3A005585: push 0 */ 5621 MEM32(ebp + (-0x28)) = 0; /* 0x3A005587: mov dword ptr [ebp - 0x28], 0 */ 5622 edx = MEM32(ebp + (-0x28)); /* 0x3A00558E: mov edx, dword ptr [ebp - 0x28] */ 5623 MEM32(ecx) = edx; /* 0x3A005591: mov dword ptr [ecx], edx */ 5624 MEM32(ebp + (-0x24)) = 0; /* 0x3A005593: mov dword ptr [ebp - 0x24], 0 */ 5625 eax = MEM32(ebp + (-0x24)); /* 0x3A00559A: mov eax, dword ptr [ebp - 0x24] */ 5626 MEM32(ecx + 0x4) = eax; /* 0x3A00559D: mov dword ptr [ecx + 4], eax */ 5627 eax = MEM32(ebp + (-0xC)); /* 0x3A0055A0: mov eax, dword ptr [ebp - 0xc] */ 5628 PUSH32(esp, 0); /* 0x3A0055A3: push 0 */ 5629 PUSH32(esp, eax); /* 0x3A0055A5: push eax */ 5630 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5632 esp = esp - 0xCu; /* 0x3A0055A6: sub esp, 0xc */ 5633 _flag_k = FK_CMP; 5634 MEM32(ebp + (-0x20)) = 0; /* 0x3A0055A9: mov dword ptr [ebp - 0x20], 0 */ 5635 edx = MEM32(ebp + (-0x20)); /* 0x3A0055B0: mov edx, dword ptr [ebp - 0x20] */ 5636 MEM32(ecx + 0x8) = edx; /* 0x3A0055B3: mov dword ptr [ecx + 8], edx */ 5637 ecx = esp; /* 0x3A0055B6: mov ecx, esp */ 5638 MEM32(ebp + (-0x34)) = 0; /* 0x3A0055B8: mov dword ptr [ebp - 0x34], 0 */ 5639 edx = MEM32(ebp + (-0x34)); /* 0x3A0055BF: mov edx, dword ptr [ebp - 0x34] */ 5640 MEM32(ecx) = edx; /* 0x3A0055C2: mov dword ptr [ecx], edx */ 5641 MEM32(ebp + (-0x30)) = 0; /* 0x3A0055C4: mov dword ptr [ebp - 0x30], 0 */ 5642 eax = MEM32(ebp + (-0x30)); /* 0x3A0055CB: mov eax, dword ptr [ebp - 0x30] */ 5643 MEM32(ecx + 0x4) = eax; /* 0x3A0055CE: mov dword ptr [ecx + 4], eax */ 5644 eax = MEM32(edi + 0x15C); /* 0x3A0055D1: mov eax, dword ptr [edi + 0x15c] */ 5645 MEM32(ebp + (-0x2C)) = 0; /* 0x3A0055D7: mov dword ptr [ebp - 0x2c], 0 */ 5646 edx = MEM32(ebp + (-0x2C)); /* 0x3A0055DE: mov edx, dword ptr [ebp - 0x2c] */ 5647 PUSH32(esp, eax); /* 0x3A0055E1: push eax */ 5648 MEM32(ecx + 0x8) = edx; /* 0x3A0055E2: mov dword ptr [ecx + 8], edx */ 5649 PUSH32(esp, esi); /* 0x3A0055E5: push esi */ 5650 ecx = ebx; /* 0x3A0055E6: mov ecx, ebx */ 5651 RECOMP_ICALL(0x3A002360u); /* 0x3A0055E8: call 0x3a002360 */ /* not lifted */ 5652 RECOMP_FLAGS_IN(); 5653 RECOMP_ICALL(MEM32(0x3A00A040)); /* 0x3A0055ED: call dword ptr [0x3a00a040] */ 5654 RECOMP_FLAGS_IN(); 5655 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3A0055F3: cdq */ 5656 ecx = 0x3E8u; /* 0x3A0055F4: mov ecx, 0x3e8 */ 5657 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3A0055F9: idiv ecx */ 5658 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5659 else { eax = 0; edx = 0; } } 5660 MEM32(ebp + (-0x10)) = edx; /* 0x3A0055FB: mov dword ptr [ebp - 0x10], edx */ 5661 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3A0055FE: fild dword ptr [ebp - 0x10] */ 5662 fp_push(*(float*)&MEM32(esi + 0x14)); /* 0x3A005601: fld dword ptr [esi + 0x14] */ 5663 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x3A005604: fsub dword ptr [esi + 0x10] */ 5664 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3A005607: fmulp st(1) */ 5665 _st[0] *= (double)*(float*)ADDR(0x3A00A174); /* 0x3A005609: fmul dword ptr [0x3a00a174] */ 5666 _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x3A00560F: fadd dword ptr [esi + 0x10] */ 5667 L_3A005612: 5668 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x1C) = _v; } /* 0x3A005612: fstp dword ptr [esi + 0x1c] */ 5669 L_3A005615: 5670 PUSH32(esp, esi); /* 0x3A005615: push esi */ 5671 ecx = ebx; /* 0x3A005616: mov ecx, ebx */ 5672 RECOMP_ICALL(0x3A0051E0u); /* 0x3A005618: call 0x3a0051e0 */ /* not lifted */ 5673 RECOMP_FLAGS_IN(); 5674 eax = MEM32(ebp + 0x8); /* 0x3A00561D: mov eax, dword ptr [ebp + 8] */ 5675 ecx = MEM32(edi + 0x20); /* 0x3A005620: mov ecx, dword ptr [edi + 0x20] */ 5676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5677 eax = eax + 1; /* 0x3A005623: inc eax */ 5678 _flag_k = FK_INC; 5679 /* cmp eax, ecx */ /* 0x3A005624: cmp eax, ecx */ 5680 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5682 _flag_k = FK_CMP; 5683 MEM32(ebp + 0x8) = eax; /* 0x3A005626: mov dword ptr [ebp + 8], eax */ 5684 RECOMP_BACKEDGE(); 5685 if (CMP_L(_flag_a, _flag_b)) goto L_3A00544F; /* 0x3A005629: jl 0x3a00544f */ 5686 L_3A00562F: 5687 edi = POP32_VAL(esp); /* 0x3A00562F: pop edi */ 5688 esi = POP32_VAL(esp); /* 0x3A005630: pop esi */ 5689 ebx = POP32_VAL(esp); /* 0x3A005631: pop ebx */ 5690 esp = ebp; /* 0x3A005632: mov esp, ebp */ 5691 ebp = POP32_VAL(esp); /* 0x3A005634: pop ebp */ 5692 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A005635: ret 4 */ 5693 RECOMP_REGS_OUT(); 5694 } 5695 5696 void sub_3A005640(void) { 5697 int _fpu_cmp = 0; 5698 uint32_t _cf = 0; 5699 int _df = 1; 5700 uint32_t _flag_k = FK_NONE; 5701 uint32_t _flag_a = 0, _flag_b = 0; 5702 uint32_t _itail_tgt = 0; 5703 RECOMP_REGS_LOCALS 5704 RECOMP_ENTER(0x3A005640u); 5705 5706 L_3A005640: 5707 PUSH32(esp, ebp); /* 0x3A005640: push ebp */ 5708 ebp = esp; /* 0x3A005641: mov ebp, esp */ 5709 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 5710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5711 esp = esp - 0x28u; /* 0x3A005643: sub esp, 0x28 */ 5712 _flag_k = FK_CMP; 5713 PUSH32(esp, ebx); /* 0x3A005646: push ebx */ 5714 PUSH32(esp, esi); /* 0x3A005647: push esi */ 5715 esi = ecx; /* 0x3A005648: mov esi, ecx */ 5716 SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3A00564A: mov al, byte ptr [esi + 4] */ 5717 /* test LO8(eax), LO8(eax) */ /* 0x3A00564D: test al, al */ 5718 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5719 _cf = 0; 5720 _flag_k = FK_NARROW(FK_TEST, 24); 5721 PUSH32(esp, edi); /* 0x3A00564F: push edi */ 5722 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005786; /* 0x3A005650: je 0x3a005786 */ 5723 L_3A005656: 5724 ebx = MEM32(ebp + 0x8); /* 0x3A005656: mov ebx, dword ptr [ebp + 8] */ 5725 /* test ebx, ebx */ /* 0x3A005659: test ebx, ebx */ 5726 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5727 _cf = 0; 5728 _flag_k = FK_TEST; 5729 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005786; /* 0x3A00565B: je 0x3a005786 */ 5730 L_3A005661: 5731 SET_LO8(eax, MEM8(ebx + 0x166)); /* 0x3A005661: mov al, byte ptr [ebx + 0x166] */ 5732 /* test LO8(eax), LO8(eax) */ /* 0x3A005667: test al, al */ 5733 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5734 _cf = 0; 5735 _flag_k = FK_NARROW(FK_TEST, 24); 5736 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005786; /* 0x3A005669: jne 0x3a005786 */ 5737 L_3A00566F: 5738 SET_LO8(eax, MEM8(ebx + 0x54)); /* 0x3A00566F: mov al, byte ptr [ebx + 0x54] */ 5739 /* test LO8(eax), LO8(eax) */ /* 0x3A005672: test al, al */ 5740 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5741 _cf = 0; 5742 _flag_k = FK_NARROW(FK_TEST, 24); 5743 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005776; /* 0x3A005674: je 0x3a005776 */ 5744 L_3A00567A: 5745 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x55u); 5746 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5747 ebx = ebx + 0x55u; /* 0x3A00567A: add ebx, 0x55 */ 5748 _flag_k = FK_ADD; 5749 RECOMP_ICALL(MEM32(0x3A00A0CC)); /* 0x3A00567D: call dword ptr [0x3a00a0cc] */ 5750 RECOMP_FLAGS_IN(); 5751 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5752 ecx = ecx | 0xFFFFFFFFu; /* 0x3A005683: or ecx, 0xffffffff */ 5753 _cf = 0; 5754 _flag_k = FK_TEST; 5755 edi = eax; /* 0x3A005686: mov edi, eax */ 5756 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5757 eax = 0; /* 0x3A005688: xor eax, eax */ 5758 _cf = 0; 5759 _flag_k = FK_TEST; 5760 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3A00568A: repne scasb al, byte ptr es:[edi] */ 5761 ecx = ~ecx; /* 0x3A00568C: not ecx */ 5762 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5763 ecx = ecx - 1; /* 0x3A00568E: dec ecx */ 5764 _flag_k = FK_DEC; 5765 edx = ecx; /* 0x3A00568F: mov edx, ecx */ 5766 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5767 ecx = ecx | 0xFFFFFFFFu; /* 0x3A005691: or ecx, 0xffffffff */ 5768 _cf = 0; 5769 _flag_k = FK_TEST; 5770 edi = ebx; /* 0x3A005694: mov edi, ebx */ 5771 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3A005696: repne scasb al, byte ptr es:[edi] */ 5772 ecx = ~ecx; /* 0x3A005698: not ecx */ 5773 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5774 ecx = ecx - 1; /* 0x3A00569A: dec ecx */ 5775 _flag_k = FK_DEC; 5776 eax = edx + ecx + 0x32; /* 0x3A00569B: lea eax, [edx + ecx + 0x32] */ 5777 PUSH32(esp, eax); /* 0x3A00569F: push eax */ 5778 RECOMP_ICALL(0x3A008FD0u); /* 0x3A0056A0: call 0x3a008fd0 */ /* not lifted */ 5779 RECOMP_FLAGS_IN(); 5780 edi = MEM32(0x3A00A0CC); /* 0x3A0056A5: mov edi, dword ptr [0x3a00a0cc] */ 5781 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5782 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5783 esp = esp + 4; /* 0x3A0056AB: add esp, 4 */ 5784 _flag_k = FK_ADD; 5785 PUSH32(esp, ebx); /* 0x3A0056AE: push ebx */ 5786 MEM32(ebp + (-0x4)) = eax; /* 0x3A0056AF: mov dword ptr [ebp - 4], eax */ 5787 RECOMP_ICALL(edi); /* 0x3A0056B2: call edi */ 5788 RECOMP_FLAGS_IN(); 5789 ecx = MEM32(ebp + (-0x4)); /* 0x3A0056B4: mov ecx, dword ptr [ebp - 4] */ 5790 PUSH32(esp, eax); /* 0x3A0056B7: push eax */ 5791 PUSH32(esp, 0x3A00D230u); /* 0x3A0056B8: push 0x3a00d230 */ 5792 PUSH32(esp, ecx); /* 0x3A0056BD: push ecx */ 5793 RECOMP_ICALL(MEM32(0x3A00A058)); /* 0x3A0056BE: call dword ptr [0x3a00a058] */ 5794 RECOMP_FLAGS_IN(); 5795 RECOMP_ICALL(edi); /* 0x3A0056C4: call edi */ 5796 RECOMP_FLAGS_IN(); 5797 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5798 ecx = ecx | 0xFFFFFFFFu; /* 0x3A0056C6: or ecx, 0xffffffff */ 5799 _cf = 0; 5800 _flag_k = FK_TEST; 5801 edi = eax; /* 0x3A0056C9: mov edi, eax */ 5802 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5803 eax = 0; /* 0x3A0056CB: xor eax, eax */ 5804 _cf = 0; 5805 _flag_k = FK_TEST; 5806 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3A0056CD: repne scasb al, byte ptr es:[edi] */ 5807 ecx = ~ecx; /* 0x3A0056CF: not ecx */ 5808 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5809 ecx = ecx - 1; /* 0x3A0056D1: dec ecx */ 5810 _flag_k = FK_DEC; 5811 edx = ecx; /* 0x3A0056D2: mov edx, ecx */ 5812 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5813 ecx = ecx | 0xFFFFFFFFu; /* 0x3A0056D4: or ecx, 0xffffffff */ 5814 _cf = 0; 5815 _flag_k = FK_TEST; 5816 edi = ebx; /* 0x3A0056D7: mov edi, ebx */ 5817 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3A0056D9: repne scasb al, byte ptr es:[edi] */ 5818 edi = MEM32(ebp + (-0x4)); /* 0x3A0056DB: mov edi, dword ptr [ebp - 4] */ 5819 ecx = ~ecx; /* 0x3A0056DE: not ecx */ 5820 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5821 ecx = ecx - 1; /* 0x3A0056E0: dec ecx */ 5822 _flag_k = FK_DEC; 5823 eax = edi; /* 0x3A0056E1: mov eax, edi */ 5824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5825 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5826 eax = eax + edx; /* 0x3A0056E3: add eax, edx */ 5827 _flag_k = FK_ADD; 5828 MEM8(ecx + eax + 0x31) = (uint8_t)(0); /* 0x3A0056E5: mov byte ptr [ecx + eax + 0x31], 0 */ 5829 ecx = ebp + (-0x28); /* 0x3A0056EA: lea ecx, [ebp - 0x28] */ 5830 PUSH32(esp, ecx); /* 0x3A0056ED: push ecx */ 5831 PUSH32(esp, edi); /* 0x3A0056EE: push edi */ 5832 #ifdef __EMSCRIPTEN__ 5833 /* Cache accounting must not lock a file while the audio worker downloads it. */ 5834 extern int ao_sound_file_size(const char *filename); 5835 int sound_size = ao_sound_file_size((const char *)ADDR(edi)); 5836 MEM32(ebp - 0x14) = sound_size; 5837 eax = sound_size < 0 ? UINT32_MAX : 0; 5838 #else 5839 RECOMP_ICALL(MEM32(0x3A00A038)); /* 0x3A0056EF: call dword ptr [0x3a00a038] */ 5840 RECOMP_FLAGS_IN(); 5841 #endif 5842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5844 esp = esp + 0x18u; /* 0x3A0056F5: add esp, 0x18 */ 5845 _flag_k = FK_ADD; 5846 /* test eax, eax */ /* 0x3A0056F8: test eax, eax */ 5847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5848 _cf = 0; 5849 _flag_k = FK_TEST; 5850 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00570E; /* 0x3A0056FA: je 0x3a00570e */ 5851 L_3A0056FC: 5852 PUSH32(esp, edi); /* 0x3A0056FC: push edi */ 5853 RECOMP_ICALL(0x3A008F76u); /* 0x3A0056FD: call 0x3a008f76 */ /* not lifted */ 5854 RECOMP_FLAGS_IN(); 5855 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5857 esp = esp + 4; /* 0x3A005702: add esp, 4 */ 5858 _flag_k = FK_ADD; 5859 edi = POP32_VAL(esp); /* 0x3A005705: pop edi */ 5860 esi = POP32_VAL(esp); /* 0x3A005706: pop esi */ 5861 ebx = POP32_VAL(esp); /* 0x3A005707: pop ebx */ 5862 esp = ebp; /* 0x3A005708: mov esp, ebp */ 5863 ebp = POP32_VAL(esp); /* 0x3A00570A: pop ebp */ 5864 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A00570B: ret 8 */ 5865 L_3A00570E: 5866 eax = MEM32(ebp + (-0x14)); /* 0x3A00570E: mov eax, dword ptr [ebp - 0x14] */ 5867 ebx = MEM32(ebp + 0x8); /* 0x3A005711: mov ebx, dword ptr [ebp + 8] */ 5868 MEM32(ebx + 0x26C) = eax; /* 0x3A005714: mov dword ptr [ebx + 0x26c], eax */ 5869 ecx = MEM32(esi + 0x50); /* 0x3A00571A: mov ecx, dword ptr [esi + 0x50] */ 5870 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5872 ecx = ecx + eax; /* 0x3A00571D: add ecx, eax */ 5873 _flag_k = FK_ADD; 5874 eax = ecx; /* 0x3A00571F: mov eax, ecx */ 5875 MEM32(esi + 0x50) = ecx; /* 0x3A005721: mov dword ptr [esi + 0x50], ecx */ 5876 ecx = MEM32(esi + 0x54); /* 0x3A005724: mov ecx, dword ptr [esi + 0x54] */ 5877 /* cmp eax, ecx */ /* 0x3A005727: cmp eax, ecx */ 5878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5880 _flag_k = FK_CMP; 5881 if (CMP_BE(_flag_a, _flag_b)) goto L_3A00574D; /* 0x3A005729: jbe 0x3a00574d */ 5882 L_3A00572B: 5883 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x3A00572B: mov dl, byte ptr [ebp + 0xc] */ 5884 /* test LO8(edx), LO8(edx) */ /* 0x3A00572E: test dl, dl */ 5885 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5886 _cf = 0; 5887 _flag_k = FK_NARROW(FK_TEST, 24); 5888 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005735; /* 0x3A005730: jne 0x3a005735 */ 5889 L_3A005732: 5890 MEM32(esi + 0x5C) = ebx; /* 0x3A005732: mov dword ptr [esi + 0x5c], ebx */ 5891 L_3A005735: 5892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5894 eax = eax - ecx; /* 0x3A005735: sub eax, ecx */ 5895 _flag_k = FK_CMP; 5896 PUSH32(esp, eax); /* 0x3A005737: push eax */ 5897 ecx = esi; /* 0x3A005738: mov ecx, esi */ 5898 RECOMP_ICALL(0x3A004E30u); /* 0x3A00573A: call 0x3a004e30 */ /* not lifted */ 5899 RECOMP_FLAGS_IN(); 5900 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x3A00573F: mov al, byte ptr [ebp + 0xc] */ 5901 /* test LO8(eax), LO8(eax) */ /* 0x3A005742: test al, al */ 5902 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5903 _cf = 0; 5904 _flag_k = FK_NARROW(FK_TEST, 24); 5905 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00574D; /* 0x3A005744: jne 0x3a00574d */ 5906 L_3A005746: 5907 MEM32(esi + 0x5C) = 0; /* 0x3A005746: mov dword ptr [esi + 0x5c], 0 */ 5908 L_3A00574D: 5909 ecx = MEM32(esi + 0x60); /* 0x3A00574D: mov ecx, dword ptr [esi + 0x60] */ 5910 /* test ecx, ecx */ /* 0x3A005750: test ecx, ecx */ 5911 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5912 _cf = 0; 5913 _flag_k = FK_TEST; 5914 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00576A; /* 0x3A005752: je 0x3a00576a */ 5915 L_3A005754: 5916 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5917 edx = 0; /* 0x3A005754: xor edx, edx */ 5918 _cf = 0; 5919 _flag_k = FK_TEST; 5920 SET_LO8(edx, MEM8(ebx + 0x194)); /* 0x3A005756: mov dl, byte ptr [ebx + 0x194] */ 5921 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1A8u); 5922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5923 ebx = ebx + 0x1A8u; /* 0x3A00575C: add ebx, 0x1a8 */ 5924 _flag_k = FK_ADD; 5925 PUSH32(esp, edx); /* 0x3A005762: push edx */ 5926 PUSH32(esp, edi); /* 0x3A005763: push edi */ 5927 PUSH32(esp, ebx); /* 0x3A005764: push ebx */ 5928 RECOMP_ICALL(0x3A008430u); /* 0x3A005765: call 0x3a008430 */ /* not lifted */ 5929 RECOMP_FLAGS_IN(); 5930 L_3A00576A: 5931 PUSH32(esp, edi); /* 0x3A00576A: push edi */ 5932 RECOMP_ICALL(0x3A008F76u); /* 0x3A00576B: call 0x3a008f76 */ /* not lifted */ 5933 RECOMP_FLAGS_IN(); 5934 ebx = MEM32(ebp + 0x8); /* 0x3A005770: mov ebx, dword ptr [ebp + 8] */ 5935 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5936 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5937 esp = esp + 4; /* 0x3A005773: add esp, 4 */ 5938 _flag_k = FK_ADD; 5939 L_3A005776: 5940 MEM8(ebx + 0x166) = (uint8_t)(1); /* 0x3A005776: mov byte ptr [ebx + 0x166], 1 */ 5941 eax = MEM32(esi + 0x58); /* 0x3A00577D: mov eax, dword ptr [esi + 0x58] */ 5942 MEM32(ebx + 0x270) = eax; /* 0x3A005780: mov dword ptr [ebx + 0x270], eax */ 5943 L_3A005786: 5944 edi = POP32_VAL(esp); /* 0x3A005786: pop edi */ 5945 esi = POP32_VAL(esp); /* 0x3A005787: pop esi */ 5946 ebx = POP32_VAL(esp); /* 0x3A005788: pop ebx */ 5947 esp = ebp; /* 0x3A005789: mov esp, ebp */ 5948 ebp = POP32_VAL(esp); /* 0x3A00578B: pop ebp */ 5949 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A00578C: ret 8 */ 5950 RECOMP_REGS_OUT(); 5951 } 5952 5953 void sub_3A005790(void) { 5954 int _fpu_cmp = 0; 5955 uint32_t _cf = 0; 5956 int _df = 1; 5957 uint32_t _flag_k = FK_NONE; 5958 uint32_t _flag_a = 0, _flag_b = 0; 5959 uint32_t _itail_tgt = 0; 5960 RECOMP_REGS_LOCALS 5961 RECOMP_ENTER(0x3A005790u); 5962 5963 L_3A005790: 5964 PUSH32(esp, ebp); /* 0x3A005790: push ebp */ 5965 ebp = esp; /* 0x3A005791: mov ebp, esp */ 5966 PUSH32(esp, ebx); /* 0x3A005793: push ebx */ 5967 ebx = ecx; /* 0x3A005794: mov ebx, ecx */ 5968 SET_LO8(eax, MEM8(ebx + 0x4)); /* 0x3A005796: mov al, byte ptr [ebx + 4] */ 5969 /* test LO8(eax), LO8(eax) */ /* 0x3A005799: test al, al */ 5970 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5971 _cf = 0; 5972 _flag_k = FK_NARROW(FK_TEST, 24); 5973 PUSH32(esp, esi); /* 0x3A00579B: push esi */ 5974 PUSH32(esp, edi); /* 0x3A00579C: push edi */ 5975 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005861; /* 0x3A00579D: je 0x3a005861 */ 5976 L_3A0057A3: 5977 esi = MEM32(ebp + 0x8); /* 0x3A0057A3: mov esi, dword ptr [ebp + 8] */ 5978 /* test esi, esi */ /* 0x3A0057A6: test esi, esi */ 5979 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5980 _cf = 0; 5981 _flag_k = FK_TEST; 5982 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005861; /* 0x3A0057A8: je 0x3a005861 */ 5983 L_3A0057AE: 5984 SET_LO8(eax, MEM8(esi + 0x166)); /* 0x3A0057AE: mov al, byte ptr [esi + 0x166] */ 5985 /* test LO8(eax), LO8(eax) */ /* 0x3A0057B4: test al, al */ 5986 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5987 _cf = 0; 5988 _flag_k = FK_NARROW(FK_TEST, 24); 5989 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005861; /* 0x3A0057B6: je 0x3a005861 */ 5990 L_3A0057BC: 5991 PUSH32(esp, esi); /* 0x3A0057BC: push esi */ 5992 RECOMP_ICALL(0x3A003770u); /* 0x3A0057BD: call 0x3a003770 */ /* not lifted */ 5993 RECOMP_FLAGS_IN(); 5994 ecx = MEM32(ebx + 0x60); /* 0x3A0057C2: mov ecx, dword ptr [ebx + 0x60] */ 5995 /* test ecx, ecx */ /* 0x3A0057C5: test ecx, ecx */ 5996 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5997 _cf = 0; 5998 _flag_k = FK_TEST; 5999 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005803; /* 0x3A0057C7: je 0x3a005803 */ 6000 L_3A0057C9: 6001 eax = MEM32(esi + 0x1A8); /* 0x3A0057C9: mov eax, dword ptr [esi + 0x1a8] */ 6002 edi = esi + 0x1A8; /* 0x3A0057CF: lea edi, [esi + 0x1a8] */ 6003 PUSH32(esp, eax); /* 0x3A0057D5: push eax */ 6004 RECOMP_ICALL(0x3A008610u); /* 0x3A0057D6: call 0x3a008610 */ /* not lifted */ 6005 RECOMP_FLAGS_IN(); 6006 /* test LO8(eax), LO8(eax) */ /* 0x3A0057DB: test al, al */ 6007 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6008 _cf = 0; 6009 _flag_k = FK_NARROW(FK_TEST, 24); 6010 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005803; /* 0x3A0057DD: je 0x3a005803 */ 6011 L_3A0057DF: 6012 ecx = MEM32(ebx + 0x60); /* 0x3A0057DF: mov ecx, dword ptr [ebx + 0x60] */ 6013 PUSH32(esp, 1); /* 0x3A0057E2: push 1 */ 6014 PUSH32(esp, edi); /* 0x3A0057E4: push edi */ 6015 RECOMP_ICALL(0x3A008540u); /* 0x3A0057E5: call 0x3a008540 */ /* not lifted */ 6016 RECOMP_FLAGS_IN(); 6017 ecx = MEM32(esi + 0x26C); /* 0x3A0057EA: mov ecx, dword ptr [esi + 0x26c] */ 6018 MEM32(edi) = 0; /* 0x3A0057F0: mov dword ptr [edi], 0 */ 6019 _flag_a = (uint32_t)(MEM32(ebx + 0x50)); _flag_b = (uint32_t)(ecx); 6020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6021 MEM32(ebx + 0x50) = MEM32(ebx + 0x50) - ecx; /* 0x3A0057F6: sub dword ptr [ebx + 0x50], ecx */ 6022 _flag_k = FK_CMP; 6023 MEM32(esi + 0x26C) = 0; /* 0x3A0057F9: mov dword ptr [esi + 0x26c], 0 */ 6024 L_3A005803: 6025 eax = MEM32(esi + 0x20); /* 0x3A005803: mov eax, dword ptr [esi + 0x20] */ 6026 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6027 edi = 0; /* 0x3A005806: xor edi, edi */ 6028 _cf = 0; 6029 _flag_k = FK_TEST; 6030 /* test eax, eax */ /* 0x3A005808: test eax, eax */ 6031 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6032 _cf = 0; 6033 _flag_k = FK_TEST; 6034 MEM8(esi + 0x15A) = (uint8_t)(0); /* 0x3A00580A: mov byte ptr [esi + 0x15a], 0 */ 6035 MEM8(esi + 0x166) = (uint8_t)(0); /* 0x3A005811: mov byte ptr [esi + 0x166], 0 */ 6036 if (TEST_LE(_flag_a, _flag_b)) goto L_3A005834; /* 0x3A005818: jle 0x3a005834 */ 6037 L_3A00581A: 6038 edx = MEM32(ebp + 0xC); /* 0x3A00581A: mov edx, dword ptr [ebp + 0xc] */ 6039 eax = MEM32(esi + 0x28); /* 0x3A00581D: mov eax, dword ptr [esi + 0x28] */ 6040 ecx = MEM32(eax + edi * 4); /* 0x3A005820: mov ecx, dword ptr [eax + edi*4] */ 6041 PUSH32(esp, edx); /* 0x3A005823: push edx */ 6042 PUSH32(esp, ecx); /* 0x3A005824: push ecx */ 6043 ecx = ebx; /* 0x3A005825: mov ecx, ebx */ 6044 RECOMP_ICALL(0x3A005790u); /* 0x3A005827: call 0x3a005790 */ /* not lifted */ 6045 RECOMP_FLAGS_IN(); 6046 eax = MEM32(esi + 0x20); /* 0x3A00582C: mov eax, dword ptr [esi + 0x20] */ 6047 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 6048 edi = edi + 1; /* 0x3A00582F: inc edi */ 6049 _flag_k = FK_INC; 6050 /* cmp edi, eax */ /* 0x3A005830: cmp edi, eax */ 6051 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6053 _flag_k = FK_CMP; 6054 RECOMP_BACKEDGE(); 6055 if (CMP_L(_flag_a, _flag_b)) goto L_3A00581A; /* 0x3A005832: jl 0x3a00581a */ 6056 L_3A005834: 6057 SET_LO8(eax, MEM8(esi + 0x258)); /* 0x3A005834: mov al, byte ptr [esi + 0x258] */ 6058 /* test LO8(eax), LO8(eax) */ /* 0x3A00583A: test al, al */ 6059 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6060 _cf = 0; 6061 _flag_k = FK_NARROW(FK_TEST, 24); 6062 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005861; /* 0x3A00583C: je 0x3a005861 */ 6063 L_3A00583E: 6064 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1ACu); 6065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6066 esi = esi + 0x1ACu; /* 0x3A00583E: add esi, 0x1ac */ 6067 _flag_k = FK_ADD; 6068 edi = 0x2Bu; /* 0x3A005844: mov edi, 0x2b */ 6069 L_3A005849: 6070 eax = MEM32(esi); /* 0x3A005849: mov eax, dword ptr [esi] */ 6071 /* test eax, eax */ /* 0x3A00584B: test eax, eax */ 6072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6073 _cf = 0; 6074 _flag_k = FK_TEST; 6075 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00585B; /* 0x3A00584D: je 0x3a00585b */ 6076 L_3A00584F: 6077 edx = MEM32(ebp + 0xC); /* 0x3A00584F: mov edx, dword ptr [ebp + 0xc] */ 6078 PUSH32(esp, edx); /* 0x3A005852: push edx */ 6079 PUSH32(esp, eax); /* 0x3A005853: push eax */ 6080 ecx = ebx; /* 0x3A005854: mov ecx, ebx */ 6081 RECOMP_ICALL(0x3A005790u); /* 0x3A005856: call 0x3a005790 */ /* not lifted */ 6082 RECOMP_FLAGS_IN(); 6083 L_3A00585B: 6084 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 6085 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6086 esi = esi + 4; /* 0x3A00585B: add esi, 4 */ 6087 _flag_k = FK_ADD; 6088 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 6089 edi = edi - 1; /* 0x3A00585E: dec edi */ 6090 _flag_k = FK_DEC; 6091 RECOMP_BACKEDGE(); 6092 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3A005849; /* 0x3A00585F: jne 0x3a005849 */ 6093 L_3A005861: 6094 edi = POP32_VAL(esp); /* 0x3A005861: pop edi */ 6095 esi = POP32_VAL(esp); /* 0x3A005862: pop esi */ 6096 ebx = POP32_VAL(esp); /* 0x3A005863: pop ebx */ 6097 ebp = POP32_VAL(esp); /* 0x3A005864: pop ebp */ 6098 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A005865: ret 8 */ 6099 RECOMP_REGS_OUT(); 6100 } 6101 6102 void sub_3A005870(void) { 6103 int _fpu_cmp = 0; 6104 uint32_t _cf = 0; 6105 int _df = 1; 6106 uint32_t _flag_k = FK_NONE; 6107 uint32_t _flag_a = 0, _flag_b = 0; 6108 uint32_t _itail_tgt = 0; 6109 RECOMP_REGS_LOCALS 6110 RECOMP_ENTER(0x3A005870u); 6111 6112 L_3A005870: 6113 PUSH32(esp, ebx); /* 0x3A005870: push ebx */ 6114 ebx = ecx; /* 0x3A005871: mov ebx, ecx */ 6115 eax = MEM32(ebx + 0xC); /* 0x3A005873: mov eax, dword ptr [ebx + 0xc] */ 6116 /* test eax, eax */ /* 0x3A005876: test eax, eax */ 6117 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6118 _cf = 0; 6119 _flag_k = FK_TEST; 6120 PUSH32(esp, esi); /* 0x3A005878: push esi */ 6121 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0058AC; /* 0x3A005879: je 0x3a0058ac */ 6122 L_3A00587B: 6123 eax = MEM32(eax + 0x4); /* 0x3A00587B: mov eax, dword ptr [eax + 4] */ 6124 esi = MEM32(eax); /* 0x3A00587E: mov esi, dword ptr [eax] */ 6125 /* cmp esi, eax */ /* 0x3A005880: cmp esi, eax */ 6126 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6128 _flag_k = FK_CMP; 6129 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0058AC; /* 0x3A005882: je 0x3a0058ac */ 6130 L_3A005884: 6131 PUSH32(esp, edi); /* 0x3A005884: push edi */ 6132 L_3A005885: 6133 edi = MEM32(esi + 0x8); /* 0x3A005885: mov edi, dword ptr [esi + 8] */ 6134 /* test edi, edi */ /* 0x3A005888: test edi, edi */ 6135 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6136 _cf = 0; 6137 _flag_k = FK_TEST; 6138 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0058A1; /* 0x3A00588A: je 0x3a0058a1 */ 6139 L_3A00588C: 6140 PUSH32(esp, edi); /* 0x3A00588C: push edi */ 6141 ecx = ebx; /* 0x3A00588D: mov ecx, ebx */ 6142 RECOMP_ICALL(0x3A003770u); /* 0x3A00588F: call 0x3a003770 */ /* not lifted */ 6143 RECOMP_FLAGS_IN(); 6144 PUSH32(esp, 0xBF800000u); /* 0x3A005894: push 0xbf800000 */ 6145 PUSH32(esp, edi); /* 0x3A005899: push edi */ 6146 ecx = ebx; /* 0x3A00589A: mov ecx, ebx */ 6147 RECOMP_ICALL(0x3A005790u); /* 0x3A00589C: call 0x3a005790 */ /* not lifted */ 6148 RECOMP_FLAGS_IN(); 6149 L_3A0058A1: 6150 eax = MEM32(ebx + 0xC); /* 0x3A0058A1: mov eax, dword ptr [ebx + 0xc] */ 6151 esi = MEM32(esi); /* 0x3A0058A4: mov esi, dword ptr [esi] */ 6152 /* cmp esi, MEM32(eax + 0x4) */ /* 0x3A0058A6: cmp esi, dword ptr [eax + 4] */ 6153 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 6154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6155 _flag_k = FK_CMP; 6156 RECOMP_BACKEDGE(); 6157 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005885; /* 0x3A0058A9: jne 0x3a005885 */ 6158 L_3A0058AB: 6159 edi = POP32_VAL(esp); /* 0x3A0058AB: pop edi */ 6160 L_3A0058AC: 6161 esi = POP32_VAL(esp); /* 0x3A0058AC: pop esi */ 6162 ebx = POP32_VAL(esp); /* 0x3A0058AD: pop ebx */ 6163 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0058AE: ret */ 6164 RECOMP_REGS_OUT(); 6165 } 6166 6167 void sub_3A0058B0(void) { 6168 int _fpu_cmp = 0; 6169 uint32_t _cf = 0; 6170 int _df = 1; 6171 uint32_t _flag_k = FK_NONE; 6172 uint32_t _flag_a = 0, _flag_b = 0; 6173 uint32_t _itail_tgt = 0; 6174 RECOMP_REGS_LOCALS 6175 RECOMP_ENTER(0x3A0058B0u); 6176 6177 L_3A0058B0: 6178 PUSH32(esp, esi); /* 0x3A0058B0: push esi */ 6179 PUSH32(esp, edi); /* 0x3A0058B1: push edi */ 6180 edi = ecx; /* 0x3A0058B2: mov edi, ecx */ 6181 eax = MEM32(edi + 0xC); /* 0x3A0058B4: mov eax, dword ptr [edi + 0xc] */ 6182 eax = MEM32(eax + 0x4); /* 0x3A0058B7: mov eax, dword ptr [eax + 4] */ 6183 esi = MEM32(eax); /* 0x3A0058BA: mov esi, dword ptr [eax] */ 6184 /* cmp esi, eax */ /* 0x3A0058BC: cmp esi, eax */ 6185 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6187 _flag_k = FK_CMP; 6188 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0058D5; /* 0x3A0058BE: je 0x3a0058d5 */ 6189 L_3A0058C0: 6190 ecx = MEM32(esi + 0x8); /* 0x3A0058C0: mov ecx, dword ptr [esi + 8] */ 6191 PUSH32(esp, ecx); /* 0x3A0058C3: push ecx */ 6192 ecx = edi; /* 0x3A0058C4: mov ecx, edi */ 6193 RECOMP_ICALL(0x3A003770u); /* 0x3A0058C6: call 0x3a003770 */ /* not lifted */ 6194 RECOMP_FLAGS_IN(); 6195 edx = MEM32(edi + 0xC); /* 0x3A0058CB: mov edx, dword ptr [edi + 0xc] */ 6196 esi = MEM32(esi); /* 0x3A0058CE: mov esi, dword ptr [esi] */ 6197 /* cmp esi, MEM32(edx + 0x4) */ /* 0x3A0058D0: cmp esi, dword ptr [edx + 4] */ 6198 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6200 _flag_k = FK_CMP; 6201 RECOMP_BACKEDGE(); 6202 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0058C0; /* 0x3A0058D3: jne 0x3a0058c0 */ 6203 L_3A0058D5: 6204 edi = POP32_VAL(esp); /* 0x3A0058D5: pop edi */ 6205 esi = POP32_VAL(esp); /* 0x3A0058D6: pop esi */ 6206 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A0058D7: ret */ 6207 RECOMP_REGS_OUT(); 6208 } 6209 6210 void sub_3A0058E0(void) { 6211 int _fpu_cmp = 0; 6212 uint32_t _cf = 0; 6213 int _df = 1; 6214 uint32_t _flag_k = FK_NONE; 6215 uint32_t _flag_a = 0, _flag_b = 0; 6216 uint32_t _itail_tgt = 0; 6217 RECOMP_REGS_LOCALS 6218 RECOMP_ENTER(0x3A0058E0u); 6219 6220 L_3A0058E0: 6221 SET_LO8(edx, MEM8(ecx + 0x109)); /* 0x3A0058E0: mov dl, byte ptr [ecx + 0x109] */ 6222 /* test LO8(edx), LO8(edx) */ /* 0x3A0058E6: test dl, dl */ 6223 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6224 _cf = 0; 6225 _flag_k = FK_NARROW(FK_TEST, 24); 6226 SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3A0058E8: sete al */ 6227 /* test LO8(eax), LO8(eax) */ /* 0x3A0058EB: test al, al */ 6228 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6229 _cf = 0; 6230 _flag_k = FK_NARROW(FK_TEST, 24); 6231 MEM8(ecx + 0x109) = (uint8_t)(LO8(eax)); /* 0x3A0058ED: mov byte ptr [ecx + 0x109], al */ 6232 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00590F; /* 0x3A0058F3: je 0x3a00590f */ 6233 L_3A0058F5: 6234 PUSH32(esp, 0x1Bu); /* 0x3A0058F5: push 0x1b */ 6235 PUSH32(esp, 0x3A00D260u); /* 0x3A0058F7: push 0x3a00d260 */ 6236 PUSH32(esp, 0x3Fu); /* 0x3A0058FC: push 0x3f */ 6237 PUSH32(esp, 3); /* 0x3A0058FE: push 3 */ 6238 RECOMP_ICALL(MEM32(0x3A00A098)); /* 0x3A005900: call dword ptr [0x3a00a098] */ 6239 RECOMP_FLAGS_IN(); 6240 ecx = eax; /* 0x3A005906: mov ecx, eax */ 6241 RECOMP_ICALL(MEM32(0x3A00A088)); /* 0x3A005908: call dword ptr [0x3a00a088] */ 6242 RECOMP_FLAGS_IN(); 6243 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A00590E: ret */ 6244 L_3A00590F: 6245 PUSH32(esp, 0x21u); /* 0x3A00590F: push 0x21 */ 6246 PUSH32(esp, 0x3A00D23Cu); /* 0x3A005911: push 0x3a00d23c */ 6247 PUSH32(esp, 0x3Fu); /* 0x3A005916: push 0x3f */ 6248 PUSH32(esp, 3); /* 0x3A005918: push 3 */ 6249 RECOMP_ICALL(MEM32(0x3A00A098)); /* 0x3A00591A: call dword ptr [0x3a00a098] */ 6250 RECOMP_FLAGS_IN(); 6251 ecx = eax; /* 0x3A005920: mov ecx, eax */ 6252 RECOMP_ICALL(MEM32(0x3A00A088)); /* 0x3A005922: call dword ptr [0x3a00a088] */ 6253 RECOMP_FLAGS_IN(); 6254 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A005928: ret */ 6255 RECOMP_REGS_OUT(); 6256 } 6257 6258 void sub_3A005930(void) { 6259 int _fpu_cmp = 0; 6260 uint32_t _cf = 0; 6261 int _df = 1; 6262 uint32_t _flag_k = FK_NONE; 6263 uint32_t _flag_a = 0, _flag_b = 0; 6264 uint32_t _itail_tgt = 0; 6265 RECOMP_REGS_LOCALS 6266 RECOMP_ENTER(0x3A005930u); 6267 6268 L_3A005930: 6269 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A005930: ret 4 */ 6270 RECOMP_REGS_OUT(); 6271 } 6272 6273 void sub_3A005940(void) { 6274 int _fpu_cmp = 0; 6275 uint32_t _cf = 0; 6276 int _df = 1; 6277 uint32_t _flag_k = FK_NONE; 6278 uint32_t _flag_a = 0, _flag_b = 0; 6279 uint32_t _itail_tgt = 0; 6280 RECOMP_REGS_LOCALS 6281 RECOMP_ENTER(0x3A005940u); 6282 6283 L_3A005940: 6284 PUSH32(esp, ebp); /* 0x3A005940: push ebp */ 6285 ebp = esp; /* 0x3A005941: mov ebp, esp */ 6286 eax = MEM32(ebp + 0x14); /* 0x3A005943: mov eax, dword ptr [ebp + 0x14] */ 6287 /* test eax, eax */ /* 0x3A005946: test eax, eax */ 6288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6289 _cf = 0; 6290 _flag_k = FK_TEST; 6291 if (TEST_S(_flag_a, _flag_b)) goto L_3A00594F; /* 0x3A005948: jl 0x3a00594f */ 6292 L_3A00594A: 6293 /* cmp eax, 2 */ /* 0x3A00594A: cmp eax, 2 */ 6294 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6296 _flag_k = FK_CMP; 6297 if (CMP_LE(_flag_a, _flag_b)) goto L_3A005951; /* 0x3A00594D: jle 0x3a005951 */ 6298 L_3A00594F: 6299 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6300 eax = 0; /* 0x3A00594F: xor eax, eax */ 6301 _cf = 0; 6302 _flag_k = FK_TEST; 6303 L_3A005951: 6304 PUSH32(esp, ebx); /* 0x3A005951: push ebx */ 6305 PUSH32(esp, esi); /* 0x3A005952: push esi */ 6306 esi = MEM32(ebp + 0x10); /* 0x3A005953: mov esi, dword ptr [ebp + 0x10] */ 6307 /* test esi, esi */ /* 0x3A005956: test esi, esi */ 6308 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6309 _cf = 0; 6310 _flag_k = FK_TEST; 6311 PUSH32(esp, edi); /* 0x3A005958: push edi */ 6312 if (TEST_NS(_flag_a, _flag_b)) goto L_3A00595D; /* 0x3A005959: jge 0x3a00595d */ 6313 L_3A00595B: 6314 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6315 esi = 0; /* 0x3A00595B: xor esi, esi */ 6316 _cf = 0; 6317 _flag_k = FK_TEST; 6318 L_3A00595D: 6319 SET_LO8(edx, MEM8(ebp + 0x8)); /* 0x3A00595D: mov dl, byte ptr [ebp + 8] */ 6320 /* test LO8(edx), LO8(edx) */ /* 0x3A005960: test dl, dl */ 6321 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6322 _cf = 0; 6323 _flag_k = FK_NARROW(FK_TEST, 24); 6324 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005999; /* 0x3A005962: je 0x3a005999 */ 6325 L_3A005964: 6326 edx = MEM32(ebp + 0xC); /* 0x3A005964: mov edx, dword ptr [ebp + 0xc] */ 6327 MEM32(ecx + 0x7C) = eax; /* 0x3A005967: mov dword ptr [ecx + 0x7c], eax */ 6328 eax = MEM32(ebp + 0x20); /* 0x3A00596A: mov eax, dword ptr [ebp + 0x20] */ 6329 MEM32(ecx + 0x84) = eax; /* 0x3A00596D: mov dword ptr [ecx + 0x84], eax */ 6330 eax = MEM32(ecx + 0xA8); /* 0x3A005973: mov eax, dword ptr [ecx + 0xa8] */ 6331 edi = POP32_VAL(esp); /* 0x3A005979: pop edi */ 6332 MEM32(ecx + 0x78) = edx; /* 0x3A00597A: mov dword ptr [ecx + 0x78], edx */ 6333 SET_LO8(edx, MEM8(ebp + 0x1C)); /* 0x3A00597D: mov dl, byte ptr [ebp + 0x1c] */ 6334 MEM32(ecx + 0x80) = esi; /* 0x3A005980: mov dword ptr [ecx + 0x80], esi */ 6335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6336 eax = eax + 1; /* 0x3A005986: inc eax */ 6337 _flag_k = FK_INC; 6338 esi = POP32_VAL(esp); /* 0x3A005987: pop esi */ 6339 MEM8(ecx + 0x88) = (uint8_t)(LO8(edx)); /* 0x3A005988: mov byte ptr [ecx + 0x88], dl */ 6340 MEM32(ecx + 0xA8) = eax; /* 0x3A00598E: mov dword ptr [ecx + 0xa8], eax */ 6341 ebx = POP32_VAL(esp); /* 0x3A005994: pop ebx */ 6342 ebp = POP32_VAL(esp); /* 0x3A005995: pop ebp */ 6343 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x3A005996: ret 0x1c */ 6344 L_3A005999: 6345 eax = MEM32(ecx + 0xA4); /* 0x3A005999: mov eax, dword ptr [ecx + 0xa4] */ 6346 edi = MEM32(ebp + 0x18); /* 0x3A00599F: mov edi, dword ptr [ebp + 0x18] */ 6347 /* cmp edi, eax */ /* 0x3A0059A2: cmp edi, eax */ 6348 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6350 _flag_k = FK_CMP; 6351 eax = MEM32(ebp + 0xC); /* 0x3A0059A4: mov eax, dword ptr [ebp + 0xc] */ 6352 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0059CA; /* 0x3A0059A7: jne 0x3a0059ca */ 6353 L_3A0059A9: 6354 /* test eax, eax */ /* 0x3A0059A9: test eax, eax */ 6355 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6356 _cf = 0; 6357 _flag_k = FK_TEST; 6358 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0059CA; /* 0x3A0059AB: jne 0x3a0059ca */ 6359 L_3A0059AD: 6360 MEM32(ecx + 0x8C) = eax; /* 0x3A0059AD: mov dword ptr [ecx + 0x8c], eax */ 6361 eax = MEM32(ebp + 0x20); /* 0x3A0059B3: mov eax, dword ptr [ebp + 0x20] */ 6362 MEM32(ecx + 0x90) = esi; /* 0x3A0059B6: mov dword ptr [ecx + 0x90], esi */ 6363 MEM32(ecx + 0x98) = edi; /* 0x3A0059BC: mov dword ptr [ecx + 0x98], edi */ 6364 MEM32(ecx + 0x9C) = eax; /* 0x3A0059C2: mov dword ptr [ecx + 0x9c], eax */ 6365 goto L_3A005A32; /* 0x3A0059C8: jmp 0x3a005a32 */ 6366 L_3A0059CA: 6367 ebx = MEM32(ecx + 0x9C); /* 0x3A0059CA: mov ebx, dword ptr [ecx + 0x9c] */ 6368 edx = MEM32(ebp + 0x20); /* 0x3A0059D0: mov edx, dword ptr [ebp + 0x20] */ 6369 /* cmp ebx, edx */ /* 0x3A0059D3: cmp ebx, edx */ 6370 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 6371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6372 _flag_k = FK_CMP; 6373 if (CMP_GE(_flag_a, _flag_b)) goto L_3A005A12; /* 0x3A0059D5: jge 0x3a005a12 */ 6374 L_3A0059D7: 6375 /* test eax, eax */ /* 0x3A0059D7: test eax, eax */ 6376 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6377 _cf = 0; 6378 _flag_k = FK_TEST; 6379 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005A10; /* 0x3A0059D9: je 0x3a005a10 */ 6380 L_3A0059DB: 6381 MEM32(ecx + 0x8C) = eax; /* 0x3A0059DB: mov dword ptr [ecx + 0x8c], eax */ 6382 SET_LO8(eax, MEM8(ebp + 0x1C)); /* 0x3A0059E1: mov al, byte ptr [ebp + 0x1c] */ 6383 MEM8(ecx + 0xA0) = (uint8_t)(LO8(eax)); /* 0x3A0059E4: mov byte ptr [ecx + 0xa0], al */ 6384 eax = MEM32(ecx + 0xA8); /* 0x3A0059EA: mov eax, dword ptr [ecx + 0xa8] */ 6385 MEM32(ecx + 0x98) = edi; /* 0x3A0059F0: mov dword ptr [ecx + 0x98], edi */ 6386 edi = POP32_VAL(esp); /* 0x3A0059F6: pop edi */ 6387 MEM32(ecx + 0x90) = esi; /* 0x3A0059F7: mov dword ptr [ecx + 0x90], esi */ 6388 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6389 eax = eax + 1; /* 0x3A0059FD: inc eax */ 6390 _flag_k = FK_INC; 6391 esi = POP32_VAL(esp); /* 0x3A0059FE: pop esi */ 6392 MEM32(ecx + 0x9C) = edx; /* 0x3A0059FF: mov dword ptr [ecx + 0x9c], edx */ 6393 MEM32(ecx + 0xA8) = eax; /* 0x3A005A05: mov dword ptr [ecx + 0xa8], eax */ 6394 ebx = POP32_VAL(esp); /* 0x3A005A0B: pop ebx */ 6395 ebp = POP32_VAL(esp); /* 0x3A005A0C: pop ebp */ 6396 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x3A005A0D: ret 0x1c */ 6397 L_3A005A10: 6398 /* cmp ebx, edx */ /* 0x3A005A10: cmp ebx, edx */ 6399 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 6400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6401 _flag_k = FK_CMP; 6402 L_3A005A12: 6403 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3A005A3B; /* 0x3A005A12: jne 0x3a005a3b */ 6404 L_3A005A14: 6405 /* test eax, eax */ /* 0x3A005A14: test eax, eax */ 6406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6407 _cf = 0; 6408 _flag_k = FK_TEST; 6409 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005A3B; /* 0x3A005A16: je 0x3a005a3b */ 6410 L_3A005A18: 6411 /* cmp MEM32(ecx + 0x8C), eax */ /* 0x3A005A18: cmp dword ptr [ecx + 0x8c], eax */ 6412 _flag_a = (uint32_t)(MEM32(ecx + 0x8C)); _flag_b = (uint32_t)(eax); 6413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6414 _flag_k = FK_CMP; 6415 if (CMP_GE(_flag_a, _flag_b)) goto L_3A005A3B; /* 0x3A005A1E: jge 0x3a005a3b */ 6416 L_3A005A20: 6417 MEM32(ecx + 0x8C) = eax; /* 0x3A005A20: mov dword ptr [ecx + 0x8c], eax */ 6418 MEM32(ecx + 0x98) = edi; /* 0x3A005A26: mov dword ptr [ecx + 0x98], edi */ 6419 MEM32(ecx + 0x9C) = edx; /* 0x3A005A2C: mov dword ptr [ecx + 0x9c], edx */ 6420 L_3A005A32: 6421 SET_LO8(edx, MEM8(ebp + 0x1C)); /* 0x3A005A32: mov dl, byte ptr [ebp + 0x1c] */ 6422 MEM8(ecx + 0xA0) = (uint8_t)(LO8(edx)); /* 0x3A005A35: mov byte ptr [ecx + 0xa0], dl */ 6423 L_3A005A3B: 6424 eax = MEM32(ecx + 0xA8); /* 0x3A005A3B: mov eax, dword ptr [ecx + 0xa8] */ 6425 edi = POP32_VAL(esp); /* 0x3A005A41: pop edi */ 6426 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6427 eax = eax + 1; /* 0x3A005A42: inc eax */ 6428 _flag_k = FK_INC; 6429 esi = POP32_VAL(esp); /* 0x3A005A43: pop esi */ 6430 MEM32(ecx + 0xA8) = eax; /* 0x3A005A44: mov dword ptr [ecx + 0xa8], eax */ 6431 ebx = POP32_VAL(esp); /* 0x3A005A4A: pop ebx */ 6432 ebp = POP32_VAL(esp); /* 0x3A005A4B: pop ebp */ 6433 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x3A005A4C: ret 0x1c */ 6434 RECOMP_REGS_OUT(); 6435 } 6436 6437 void sub_3A005A50(void) { 6438 int _fpu_cmp = 0; 6439 uint32_t _cf = 0; 6440 int _df = 1; 6441 uint32_t _flag_k = FK_NONE; 6442 uint32_t _flag_a = 0, _flag_b = 0; 6443 uint32_t _itail_tgt = 0; 6444 RECOMP_REGS_LOCALS 6445 RECOMP_ENTER(0x3A005A50u); 6446 6447 L_3A005A50: 6448 PUSH32(esp, ebp); /* 0x3A005A50: push ebp */ 6449 ebp = esp; /* 0x3A005A51: mov ebp, esp */ 6450 eax = MEM32(ecx + 0x4); /* 0x3A005A53: mov eax, dword ptr [ecx + 4] */ 6451 ecx = MEM32(eax); /* 0x3A005A56: mov ecx, dword ptr [eax] */ 6452 eax = MEM32(ebp + 0x8); /* 0x3A005A58: mov eax, dword ptr [ebp + 8] */ 6453 MEM32(eax) = ecx; /* 0x3A005A5B: mov dword ptr [eax], ecx */ 6454 ebp = POP32_VAL(esp); /* 0x3A005A5D: pop ebp */ 6455 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A005A5E: ret 4 */ 6456 RECOMP_REGS_OUT(); 6457 } 6458 6459 void sub_3A005A70(void) { 6460 int _fpu_cmp = 0; 6461 uint32_t _cf = 0; 6462 int _df = 1; 6463 uint32_t _flag_k = FK_NONE; 6464 uint32_t _flag_a = 0, _flag_b = 0; 6465 uint32_t _itail_tgt = 0; 6466 RECOMP_REGS_LOCALS 6467 RECOMP_ENTER(0x3A005A70u); 6468 6469 L_3A005A70: 6470 PUSH32(esp, ebx); /* 0x3A005A70: push ebx */ 6471 PUSH32(esp, esi); /* 0x3A005A71: push esi */ 6472 PUSH32(esp, edi); /* 0x3A005A72: push edi */ 6473 edi = ecx; /* 0x3A005A73: mov edi, ecx */ 6474 ebx = MEM32(edi + 0x4); /* 0x3A005A75: mov ebx, dword ptr [edi + 4] */ 6475 esi = MEM32(ebx); /* 0x3A005A78: mov esi, dword ptr [ebx] */ 6476 /* cmp esi, ebx */ /* 0x3A005A7A: cmp esi, ebx */ 6477 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6479 _flag_k = FK_CMP; 6480 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005AA5; /* 0x3A005A7C: je 0x3a005aa5 */ 6481 L_3A005A7E: 6482 eax = esi; /* 0x3A005A7E: mov eax, esi */ 6483 ecx = MEM32(eax + 0x4); /* 0x3A005A80: mov ecx, dword ptr [eax + 4] */ 6484 edx = MEM32(eax); /* 0x3A005A83: mov edx, dword ptr [eax] */ 6485 esi = MEM32(esi); /* 0x3A005A85: mov esi, dword ptr [esi] */ 6486 MEM32(ecx) = edx; /* 0x3A005A87: mov dword ptr [ecx], edx */ 6487 ecx = MEM32(eax); /* 0x3A005A89: mov ecx, dword ptr [eax] */ 6488 edx = MEM32(eax + 0x4); /* 0x3A005A8B: mov edx, dword ptr [eax + 4] */ 6489 PUSH32(esp, eax); /* 0x3A005A8E: push eax */ 6490 MEM32(ecx + 0x4) = edx; /* 0x3A005A8F: mov dword ptr [ecx + 4], edx */ 6491 RECOMP_ICALL(0x3A008F76u); /* 0x3A005A92: call 0x3a008f76 */ /* not lifted */ 6492 RECOMP_FLAGS_IN(); 6493 ecx = MEM32(edi + 0x8); /* 0x3A005A97: mov ecx, dword ptr [edi + 8] */ 6494 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6495 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6496 esp = esp + 4; /* 0x3A005A9A: add esp, 4 */ 6497 _flag_k = FK_ADD; 6498 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6499 ecx = ecx - 1; /* 0x3A005A9D: dec ecx */ 6500 _flag_k = FK_DEC; 6501 /* cmp esi, ebx */ /* 0x3A005A9E: cmp esi, ebx */ 6502 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6504 _flag_k = FK_CMP; 6505 MEM32(edi + 0x8) = ecx; /* 0x3A005AA0: mov dword ptr [edi + 8], ecx */ 6506 RECOMP_BACKEDGE(); 6507 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005A7E; /* 0x3A005AA3: jne 0x3a005a7e */ 6508 L_3A005AA5: 6509 eax = MEM32(edi + 0x4); /* 0x3A005AA5: mov eax, dword ptr [edi + 4] */ 6510 PUSH32(esp, eax); /* 0x3A005AA8: push eax */ 6511 RECOMP_ICALL(0x3A008F76u); /* 0x3A005AA9: call 0x3a008f76 */ /* not lifted */ 6512 RECOMP_FLAGS_IN(); 6513 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6514 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6515 esp = esp + 4; /* 0x3A005AAE: add esp, 4 */ 6516 _flag_k = FK_ADD; 6517 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6518 eax = 0; /* 0x3A005AB1: xor eax, eax */ 6519 _cf = 0; 6520 _flag_k = FK_TEST; 6521 MEM32(edi + 0x4) = eax; /* 0x3A005AB3: mov dword ptr [edi + 4], eax */ 6522 MEM32(edi + 0x8) = eax; /* 0x3A005AB6: mov dword ptr [edi + 8], eax */ 6523 edi = POP32_VAL(esp); /* 0x3A005AB9: pop edi */ 6524 esi = POP32_VAL(esp); /* 0x3A005ABA: pop esi */ 6525 ebx = POP32_VAL(esp); /* 0x3A005ABB: pop ebx */ 6526 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A005ABC: ret */ 6527 RECOMP_REGS_OUT(); 6528 } 6529 6530 void sub_3A005AC0(void) { 6531 int _fpu_cmp = 0; 6532 uint32_t _cf = 0; 6533 int _df = 1; 6534 uint32_t _flag_k = FK_NONE; 6535 uint32_t _flag_a = 0, _flag_b = 0; 6536 uint32_t _itail_tgt = 0; 6537 RECOMP_REGS_LOCALS 6538 RECOMP_ENTER(0x3A005AC0u); 6539 6540 L_3A005AC0: 6541 PUSH32(esp, ebp); /* 0x3A005AC0: push ebp */ 6542 ebp = esp; /* 0x3A005AC1: mov ebp, esp */ 6543 eax = MEM32(ebp + 0xC); /* 0x3A005AC3: mov eax, dword ptr [ebp + 0xc] */ 6544 edx = MEM32(eax); /* 0x3A005AC6: mov edx, dword ptr [eax] */ 6545 PUSH32(esp, esi); /* 0x3A005AC8: push esi */ 6546 esi = ecx; /* 0x3A005AC9: mov esi, ecx */ 6547 ecx = MEM32(eax + 0x4); /* 0x3A005ACB: mov ecx, dword ptr [eax + 4] */ 6548 PUSH32(esp, edi); /* 0x3A005ACE: push edi */ 6549 edi = MEM32(eax); /* 0x3A005ACF: mov edi, dword ptr [eax] */ 6550 MEM32(ecx) = edx; /* 0x3A005AD1: mov dword ptr [ecx], edx */ 6551 ecx = MEM32(eax); /* 0x3A005AD3: mov ecx, dword ptr [eax] */ 6552 edx = MEM32(eax + 0x4); /* 0x3A005AD5: mov edx, dword ptr [eax + 4] */ 6553 PUSH32(esp, eax); /* 0x3A005AD8: push eax */ 6554 MEM32(ecx + 0x4) = edx; /* 0x3A005AD9: mov dword ptr [ecx + 4], edx */ 6555 RECOMP_ICALL(0x3A008F76u); /* 0x3A005ADC: call 0x3a008f76 */ /* not lifted */ 6556 RECOMP_FLAGS_IN(); 6557 eax = MEM32(esi + 0x8); /* 0x3A005AE1: mov eax, dword ptr [esi + 8] */ 6558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6560 esp = esp + 4; /* 0x3A005AE4: add esp, 4 */ 6561 _flag_k = FK_ADD; 6562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6563 eax = eax - 1; /* 0x3A005AE7: dec eax */ 6564 _flag_k = FK_DEC; 6565 MEM32(esi + 0x8) = eax; /* 0x3A005AE8: mov dword ptr [esi + 8], eax */ 6566 eax = MEM32(ebp + 0x8); /* 0x3A005AEB: mov eax, dword ptr [ebp + 8] */ 6567 MEM32(eax) = edi; /* 0x3A005AEE: mov dword ptr [eax], edi */ 6568 edi = POP32_VAL(esp); /* 0x3A005AF0: pop edi */ 6569 esi = POP32_VAL(esp); /* 0x3A005AF1: pop esi */ 6570 ebp = POP32_VAL(esp); /* 0x3A005AF2: pop ebp */ 6571 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A005AF3: ret 8 */ 6572 RECOMP_REGS_OUT(); 6573 } 6574 6575 void sub_3A005B00(void) { 6576 int _fpu_cmp = 0; 6577 uint32_t _cf = 0; 6578 int _df = 1; 6579 uint32_t _flag_k = FK_NONE; 6580 uint32_t _flag_a = 0, _flag_b = 0; 6581 uint32_t _itail_tgt = 0; 6582 RECOMP_REGS_LOCALS 6583 RECOMP_ENTER(0x3A005B00u); 6584 6585 L_3A005B00: 6586 PUSH32(esp, ebp); /* 0x3A005B00: push ebp */ 6587 ebp = esp; /* 0x3A005B01: mov ebp, esp */ 6588 PUSH32(esp, ebx); /* 0x3A005B03: push ebx */ 6589 ebx = MEM32(ebp + 0x10); /* 0x3A005B04: mov ebx, dword ptr [ebp + 0x10] */ 6590 PUSH32(esp, esi); /* 0x3A005B07: push esi */ 6591 esi = ecx; /* 0x3A005B08: mov esi, ecx */ 6592 eax = MEM32(esi + 0x10); /* 0x3A005B0A: mov eax, dword ptr [esi + 0x10] */ 6593 /* test eax, eax */ /* 0x3A005B0D: test eax, eax */ 6594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6595 _cf = 0; 6596 _flag_k = FK_TEST; 6597 ecx = MEM32(ebp + 0xC); /* 0x3A005B0F: mov ecx, dword ptr [ebp + 0xc] */ 6598 PUSH32(esp, edi); /* 0x3A005B12: push edi */ 6599 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005B75; /* 0x3A005B13: je 0x3a005b75 */ 6600 L_3A005B15: 6601 eax = MEM32(esi + 0x4); /* 0x3A005B15: mov eax, dword ptr [esi + 4] */ 6602 /* cmp ecx, MEM32(eax) */ /* 0x3A005B18: cmp ecx, dword ptr [eax] */ 6603 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 6604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6605 _flag_k = FK_CMP; 6606 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005B75; /* 0x3A005B1A: jne 0x3a005b75 */ 6607 L_3A005B1C: 6608 /* cmp ebx, eax */ /* 0x3A005B1C: cmp ebx, eax */ 6609 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6611 _flag_k = FK_CMP; 6612 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005B75; /* 0x3A005B1E: jne 0x3a005b75 */ 6613 L_3A005B20: 6614 ebx = MEM32(eax + 0x4); /* 0x3A005B20: mov ebx, dword ptr [eax + 4] */ 6615 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3A005B23: cmp ebx, dword ptr [esi + 8] */ 6616 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6618 _flag_k = FK_CMP; 6619 edi = ebx; /* 0x3A005B26: mov edi, ebx */ 6620 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005B49; /* 0x3A005B28: je 0x3a005b49 */ 6621 L_3A005B2A: 6622 eax = MEM32(edi + 0x8); /* 0x3A005B2A: mov eax, dword ptr [edi + 8] */ 6623 PUSH32(esp, eax); /* 0x3A005B2D: push eax */ 6624 ecx = esi; /* 0x3A005B2E: mov ecx, esi */ 6625 RECOMP_ICALL(0x3A0060F0u); /* 0x3A005B30: call 0x3a0060f0 */ /* not lifted */ 6626 RECOMP_FLAGS_IN(); 6627 edi = MEM32(edi); /* 0x3A005B35: mov edi, dword ptr [edi] */ 6628 PUSH32(esp, ebx); /* 0x3A005B37: push ebx */ 6629 RECOMP_ICALL(0x3A008F76u); /* 0x3A005B38: call 0x3a008f76 */ /* not lifted */ 6630 RECOMP_FLAGS_IN(); 6631 eax = MEM32(esi + 0x8); /* 0x3A005B3D: mov eax, dword ptr [esi + 8] */ 6632 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6634 esp = esp + 4; /* 0x3A005B40: add esp, 4 */ 6635 _flag_k = FK_ADD; 6636 /* cmp edi, eax */ /* 0x3A005B43: cmp edi, eax */ 6637 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6639 _flag_k = FK_CMP; 6640 ebx = edi; /* 0x3A005B45: mov ebx, edi */ 6641 RECOMP_BACKEDGE(); 6642 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005B2A; /* 0x3A005B47: jne 0x3a005b2a */ 6643 L_3A005B49: 6644 ecx = MEM32(esi + 0x4); /* 0x3A005B49: mov ecx, dword ptr [esi + 4] */ 6645 edx = MEM32(esi + 0x8); /* 0x3A005B4C: mov edx, dword ptr [esi + 8] */ 6646 MEM32(ecx + 0x4) = edx; /* 0x3A005B4F: mov dword ptr [ecx + 4], edx */ 6647 eax = MEM32(esi + 0x4); /* 0x3A005B52: mov eax, dword ptr [esi + 4] */ 6648 MEM32(esi + 0x10) = 0; /* 0x3A005B55: mov dword ptr [esi + 0x10], 0 */ 6649 MEM32(eax) = eax; /* 0x3A005B5C: mov dword ptr [eax], eax */ 6650 eax = MEM32(esi + 0x4); /* 0x3A005B5E: mov eax, dword ptr [esi + 4] */ 6651 MEM32(eax + 0x8) = eax; /* 0x3A005B61: mov dword ptr [eax + 8], eax */ 6652 eax = MEM32(esi + 0x4); /* 0x3A005B64: mov eax, dword ptr [esi + 4] */ 6653 ecx = MEM32(eax); /* 0x3A005B67: mov ecx, dword ptr [eax] */ 6654 eax = MEM32(ebp + 0x8); /* 0x3A005B69: mov eax, dword ptr [ebp + 8] */ 6655 edi = POP32_VAL(esp); /* 0x3A005B6C: pop edi */ 6656 esi = POP32_VAL(esp); /* 0x3A005B6D: pop esi */ 6657 MEM32(eax) = ecx; /* 0x3A005B6E: mov dword ptr [eax], ecx */ 6658 ebx = POP32_VAL(esp); /* 0x3A005B70: pop ebx */ 6659 ebp = POP32_VAL(esp); /* 0x3A005B71: pop ebp */ 6660 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3A005B72: ret 0xc */ 6661 L_3A005B75: 6662 /* cmp ecx, ebx */ /* 0x3A005B75: cmp ecx, ebx */ 6663 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6665 _flag_k = FK_CMP; 6666 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005B96; /* 0x3A005B77: je 0x3a005b96 */ 6667 L_3A005B79: 6668 edi = ecx; /* 0x3A005B79: mov edi, ecx */ 6669 ecx = ebp + 0xC; /* 0x3A005B7B: lea ecx, [ebp + 0xc] */ 6670 RECOMP_ICALL(0x3A0072D0u); /* 0x3A005B7E: call 0x3a0072d0 */ /* not lifted */ 6671 RECOMP_FLAGS_IN(); 6672 PUSH32(esp, edi); /* 0x3A005B83: push edi */ 6673 ecx = ebp + 0x10; /* 0x3A005B84: lea ecx, [ebp + 0x10] */ 6674 PUSH32(esp, ecx); /* 0x3A005B87: push ecx */ 6675 ecx = esi; /* 0x3A005B88: mov ecx, esi */ 6676 RECOMP_ICALL(0x3A006840u); /* 0x3A005B8A: call 0x3a006840 */ /* not lifted */ 6677 RECOMP_FLAGS_IN(); 6678 ecx = MEM32(ebp + 0xC); /* 0x3A005B8F: mov ecx, dword ptr [ebp + 0xc] */ 6679 /* cmp ecx, ebx */ /* 0x3A005B92: cmp ecx, ebx */ 6680 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6682 _flag_k = FK_CMP; 6683 RECOMP_BACKEDGE(); 6684 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005B79; /* 0x3A005B94: jne 0x3a005b79 */ 6685 L_3A005B96: 6686 eax = MEM32(ebp + 0x8); /* 0x3A005B96: mov eax, dword ptr [ebp + 8] */ 6687 edi = POP32_VAL(esp); /* 0x3A005B99: pop edi */ 6688 esi = POP32_VAL(esp); /* 0x3A005B9A: pop esi */ 6689 MEM32(eax) = ecx; /* 0x3A005B9B: mov dword ptr [eax], ecx */ 6690 ebx = POP32_VAL(esp); /* 0x3A005B9D: pop ebx */ 6691 ebp = POP32_VAL(esp); /* 0x3A005B9E: pop ebp */ 6692 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3A005B9F: ret 0xc */ 6693 RECOMP_REGS_OUT(); 6694 } 6695 6696 void sub_3A005BB0(void) { 6697 int _fpu_cmp = 0; 6698 uint32_t _cf = 0; 6699 int _df = 1; 6700 uint32_t _flag_k = FK_NONE; 6701 uint32_t _flag_a = 0, _flag_b = 0; 6702 uint32_t _itail_tgt = 0; 6703 RECOMP_REGS_LOCALS 6704 RECOMP_ENTER(0x3A005BB0u); 6705 6706 L_3A005BB0: 6707 PUSH32(esp, ebp); /* 0x3A005BB0: push ebp */ 6708 ebp = esp; /* 0x3A005BB1: mov ebp, esp */ 6709 PUSH32(esp, ebx); /* 0x3A005BB3: push ebx */ 6710 ebx = MEM32(ebp + 0x10); /* 0x3A005BB4: mov ebx, dword ptr [ebp + 0x10] */ 6711 PUSH32(esp, esi); /* 0x3A005BB7: push esi */ 6712 esi = ecx; /* 0x3A005BB8: mov esi, ecx */ 6713 eax = MEM32(esi + 0x10); /* 0x3A005BBA: mov eax, dword ptr [esi + 0x10] */ 6714 /* test eax, eax */ /* 0x3A005BBD: test eax, eax */ 6715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6716 _cf = 0; 6717 _flag_k = FK_TEST; 6718 ecx = MEM32(ebp + 0xC); /* 0x3A005BBF: mov ecx, dword ptr [ebp + 0xc] */ 6719 PUSH32(esp, edi); /* 0x3A005BC2: push edi */ 6720 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005C25; /* 0x3A005BC3: je 0x3a005c25 */ 6721 L_3A005BC5: 6722 eax = MEM32(esi + 0x4); /* 0x3A005BC5: mov eax, dword ptr [esi + 4] */ 6723 /* cmp ecx, MEM32(eax) */ /* 0x3A005BC8: cmp ecx, dword ptr [eax] */ 6724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 6725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6726 _flag_k = FK_CMP; 6727 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005C25; /* 0x3A005BCA: jne 0x3a005c25 */ 6728 L_3A005BCC: 6729 /* cmp ebx, eax */ /* 0x3A005BCC: cmp ebx, eax */ 6730 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6732 _flag_k = FK_CMP; 6733 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005C25; /* 0x3A005BCE: jne 0x3a005c25 */ 6734 L_3A005BD0: 6735 ebx = MEM32(eax + 0x4); /* 0x3A005BD0: mov ebx, dword ptr [eax + 4] */ 6736 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3A005BD3: cmp ebx, dword ptr [esi + 8] */ 6737 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6739 _flag_k = FK_CMP; 6740 edi = ebx; /* 0x3A005BD6: mov edi, ebx */ 6741 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005BF9; /* 0x3A005BD8: je 0x3a005bf9 */ 6742 L_3A005BDA: 6743 eax = MEM32(edi + 0x8); /* 0x3A005BDA: mov eax, dword ptr [edi + 8] */ 6744 PUSH32(esp, eax); /* 0x3A005BDD: push eax */ 6745 ecx = esi; /* 0x3A005BDE: mov ecx, esi */ 6746 RECOMP_ICALL(0x3A0067A0u); /* 0x3A005BE0: call 0x3a0067a0 */ /* not lifted */ 6747 RECOMP_FLAGS_IN(); 6748 edi = MEM32(edi); /* 0x3A005BE5: mov edi, dword ptr [edi] */ 6749 PUSH32(esp, ebx); /* 0x3A005BE7: push ebx */ 6750 RECOMP_ICALL(0x3A008F76u); /* 0x3A005BE8: call 0x3a008f76 */ /* not lifted */ 6751 RECOMP_FLAGS_IN(); 6752 eax = MEM32(esi + 0x8); /* 0x3A005BED: mov eax, dword ptr [esi + 8] */ 6753 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6755 esp = esp + 4; /* 0x3A005BF0: add esp, 4 */ 6756 _flag_k = FK_ADD; 6757 /* cmp edi, eax */ /* 0x3A005BF3: cmp edi, eax */ 6758 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6760 _flag_k = FK_CMP; 6761 ebx = edi; /* 0x3A005BF5: mov ebx, edi */ 6762 RECOMP_BACKEDGE(); 6763 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005BDA; /* 0x3A005BF7: jne 0x3a005bda */ 6764 L_3A005BF9: 6765 ecx = MEM32(esi + 0x4); /* 0x3A005BF9: mov ecx, dword ptr [esi + 4] */ 6766 edx = MEM32(esi + 0x8); /* 0x3A005BFC: mov edx, dword ptr [esi + 8] */ 6767 MEM32(ecx + 0x4) = edx; /* 0x3A005BFF: mov dword ptr [ecx + 4], edx */ 6768 eax = MEM32(esi + 0x4); /* 0x3A005C02: mov eax, dword ptr [esi + 4] */ 6769 MEM32(esi + 0x10) = 0; /* 0x3A005C05: mov dword ptr [esi + 0x10], 0 */ 6770 MEM32(eax) = eax; /* 0x3A005C0C: mov dword ptr [eax], eax */ 6771 eax = MEM32(esi + 0x4); /* 0x3A005C0E: mov eax, dword ptr [esi + 4] */ 6772 MEM32(eax + 0x8) = eax; /* 0x3A005C11: mov dword ptr [eax + 8], eax */ 6773 eax = MEM32(esi + 0x4); /* 0x3A005C14: mov eax, dword ptr [esi + 4] */ 6774 ecx = MEM32(eax); /* 0x3A005C17: mov ecx, dword ptr [eax] */ 6775 eax = MEM32(ebp + 0x8); /* 0x3A005C19: mov eax, dword ptr [ebp + 8] */ 6776 edi = POP32_VAL(esp); /* 0x3A005C1C: pop edi */ 6777 esi = POP32_VAL(esp); /* 0x3A005C1D: pop esi */ 6778 MEM32(eax) = ecx; /* 0x3A005C1E: mov dword ptr [eax], ecx */ 6779 ebx = POP32_VAL(esp); /* 0x3A005C20: pop ebx */ 6780 ebp = POP32_VAL(esp); /* 0x3A005C21: pop ebp */ 6781 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3A005C22: ret 0xc */ 6782 L_3A005C25: 6783 /* cmp ecx, ebx */ /* 0x3A005C25: cmp ecx, ebx */ 6784 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6786 _flag_k = FK_CMP; 6787 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005C46; /* 0x3A005C27: je 0x3a005c46 */ 6788 L_3A005C29: 6789 edi = ecx; /* 0x3A005C29: mov edi, ecx */ 6790 ecx = ebp + 0xC; /* 0x3A005C2B: lea ecx, [ebp + 0xc] */ 6791 RECOMP_ICALL(0x3A005C60u); /* 0x3A005C2E: call 0x3a005c60 */ /* not lifted */ 6792 RECOMP_FLAGS_IN(); 6793 PUSH32(esp, edi); /* 0x3A005C33: push edi */ 6794 ecx = ebp + 0x10; /* 0x3A005C34: lea ecx, [ebp + 0x10] */ 6795 PUSH32(esp, ecx); /* 0x3A005C37: push ecx */ 6796 ecx = esi; /* 0x3A005C38: mov ecx, esi */ 6797 RECOMP_ICALL(0x3A0063E0u); /* 0x3A005C3A: call 0x3a0063e0 */ /* not lifted */ 6798 RECOMP_FLAGS_IN(); 6799 ecx = MEM32(ebp + 0xC); /* 0x3A005C3F: mov ecx, dword ptr [ebp + 0xc] */ 6800 /* cmp ecx, ebx */ /* 0x3A005C42: cmp ecx, ebx */ 6801 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6803 _flag_k = FK_CMP; 6804 RECOMP_BACKEDGE(); 6805 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005C29; /* 0x3A005C44: jne 0x3a005c29 */ 6806 L_3A005C46: 6807 eax = MEM32(ebp + 0x8); /* 0x3A005C46: mov eax, dword ptr [ebp + 8] */ 6808 edi = POP32_VAL(esp); /* 0x3A005C49: pop edi */ 6809 esi = POP32_VAL(esp); /* 0x3A005C4A: pop esi */ 6810 MEM32(eax) = ecx; /* 0x3A005C4B: mov dword ptr [eax], ecx */ 6811 ebx = POP32_VAL(esp); /* 0x3A005C4D: pop ebx */ 6812 ebp = POP32_VAL(esp); /* 0x3A005C4E: pop ebp */ 6813 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3A005C4F: ret 0xc */ 6814 RECOMP_REGS_OUT(); 6815 } 6816 6817 void sub_3A005C60(void) { 6818 int _fpu_cmp = 0; 6819 uint32_t _cf = 0; 6820 int _df = 1; 6821 uint32_t _flag_k = FK_NONE; 6822 uint32_t _flag_a = 0, _flag_b = 0; 6823 uint32_t _itail_tgt = 0; 6824 RECOMP_REGS_LOCALS 6825 RECOMP_ENTER(0x3A005C60u); 6826 6827 L_3A005C60: 6828 eax = MEM32(ecx); /* 0x3A005C60: mov eax, dword ptr [ecx] */ 6829 edx = MEM32(eax + 0x8); /* 0x3A005C62: mov edx, dword ptr [eax + 8] */ 6830 PUSH32(esp, ebx); /* 0x3A005C65: push ebx */ 6831 SET_LO8(ebx, MEM8(edx + 0x29)); /* 0x3A005C66: mov bl, byte ptr [edx + 0x29] */ 6832 /* test LO8(ebx), LO8(ebx) */ /* 0x3A005C69: test bl, bl */ 6833 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6834 _cf = 0; 6835 _flag_k = FK_NARROW(FK_TEST, 24); 6836 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005C85; /* 0x3A005C6B: jne 0x3a005c85 */ 6837 L_3A005C6D: 6838 eax = MEM32(edx); /* 0x3A005C6D: mov eax, dword ptr [edx] */ 6839 SET_LO8(ebx, MEM8(eax + 0x29)); /* 0x3A005C6F: mov bl, byte ptr [eax + 0x29] */ 6840 /* test LO8(ebx), LO8(ebx) */ /* 0x3A005C72: test bl, bl */ 6841 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6842 _cf = 0; 6843 _flag_k = FK_NARROW(FK_TEST, 24); 6844 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005C81; /* 0x3A005C74: jne 0x3a005c81 */ 6845 L_3A005C76: 6846 edx = eax; /* 0x3A005C76: mov edx, eax */ 6847 eax = MEM32(edx); /* 0x3A005C78: mov eax, dword ptr [edx] */ 6848 SET_LO8(ebx, MEM8(eax + 0x29)); /* 0x3A005C7A: mov bl, byte ptr [eax + 0x29] */ 6849 /* test LO8(ebx), LO8(ebx) */ /* 0x3A005C7D: test bl, bl */ 6850 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6851 _cf = 0; 6852 _flag_k = FK_NARROW(FK_TEST, 24); 6853 RECOMP_BACKEDGE(); 6854 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005C76; /* 0x3A005C7F: je 0x3a005c76 */ 6855 L_3A005C81: 6856 MEM32(ecx) = edx; /* 0x3A005C81: mov dword ptr [ecx], edx */ 6857 ebx = POP32_VAL(esp); /* 0x3A005C83: pop ebx */ 6858 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A005C84: ret */ 6859 L_3A005C85: 6860 eax = MEM32(eax + 0x4); /* 0x3A005C85: mov eax, dword ptr [eax + 4] */ 6861 edx = MEM32(ecx); /* 0x3A005C88: mov edx, dword ptr [ecx] */ 6862 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3A005C8A: cmp edx, dword ptr [eax + 8] */ 6863 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6865 _flag_k = FK_CMP; 6866 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005C9B; /* 0x3A005C8D: jne 0x3a005c9b */ 6867 L_3A005C8F: 6868 MEM32(ecx) = eax; /* 0x3A005C8F: mov dword ptr [ecx], eax */ 6869 eax = MEM32(eax + 0x4); /* 0x3A005C91: mov eax, dword ptr [eax + 4] */ 6870 edx = MEM32(ecx); /* 0x3A005C94: mov edx, dword ptr [ecx] */ 6871 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3A005C96: cmp edx, dword ptr [eax + 8] */ 6872 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6874 _flag_k = FK_CMP; 6875 RECOMP_BACKEDGE(); 6876 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005C8F; /* 0x3A005C99: je 0x3a005c8f */ 6877 L_3A005C9B: 6878 edx = MEM32(ecx); /* 0x3A005C9B: mov edx, dword ptr [ecx] */ 6879 /* cmp MEM32(edx + 0x8), eax */ /* 0x3A005C9D: cmp dword ptr [edx + 8], eax */ 6880 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 6881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6882 _flag_k = FK_CMP; 6883 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005CA4; /* 0x3A005CA0: je 0x3a005ca4 */ 6884 L_3A005CA2: 6885 MEM32(ecx) = eax; /* 0x3A005CA2: mov dword ptr [ecx], eax */ 6886 L_3A005CA4: 6887 ebx = POP32_VAL(esp); /* 0x3A005CA4: pop ebx */ 6888 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A005CA5: ret */ 6889 RECOMP_REGS_OUT(); 6890 } 6891 6892 void sub_3A005CB0(void) { 6893 int _fpu_cmp = 0; 6894 uint32_t _cf = 0; 6895 int _df = 1; 6896 uint32_t _flag_k = FK_NONE; 6897 uint32_t _flag_a = 0, _flag_b = 0; 6898 uint32_t _itail_tgt = 0; 6899 RECOMP_REGS_LOCALS 6900 RECOMP_ENTER(0x3A005CB0u); 6901 6902 L_3A005CB0: 6903 PUSH32(esp, ebp); /* 0x3A005CB0: push ebp */ 6904 ebp = esp; /* 0x3A005CB1: mov ebp, esp */ 6905 PUSH32(esp, ebx); /* 0x3A005CB3: push ebx */ 6906 PUSH32(esp, esi); /* 0x3A005CB4: push esi */ 6907 esi = MEM32(ebp + 0xC); /* 0x3A005CB5: mov esi, dword ptr [ebp + 0xc] */ 6908 PUSH32(esp, edi); /* 0x3A005CB8: push edi */ 6909 edi = MEM32(esi + 0x4); /* 0x3A005CB9: mov edi, dword ptr [esi + 4] */ 6910 PUSH32(esp, 0xCu); /* 0x3A005CBC: push 0xc */ 6911 ebx = ecx; /* 0x3A005CBE: mov ebx, ecx */ 6912 RECOMP_ICALL(0x3A008FD0u); /* 0x3A005CC0: call 0x3a008fd0 */ /* not lifted */ 6913 RECOMP_FLAGS_IN(); 6914 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6915 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6916 esp = esp + 4; /* 0x3A005CC5: add esp, 4 */ 6917 _flag_k = FK_ADD; 6918 /* test esi, esi */ /* 0x3A005CC8: test esi, esi */ 6919 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6920 _cf = 0; 6921 _flag_k = FK_TEST; 6922 ecx = esi; /* 0x3A005CCA: mov ecx, esi */ 6923 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005CD0; /* 0x3A005CCC: jne 0x3a005cd0 */ 6924 L_3A005CCE: 6925 ecx = eax; /* 0x3A005CCE: mov ecx, eax */ 6926 L_3A005CD0: 6927 /* test edi, edi */ /* 0x3A005CD0: test edi, edi */ 6928 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6929 _cf = 0; 6930 _flag_k = FK_TEST; 6931 MEM32(eax) = ecx; /* 0x3A005CD2: mov dword ptr [eax], ecx */ 6932 ecx = edi; /* 0x3A005CD4: mov ecx, edi */ 6933 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005CDA; /* 0x3A005CD6: jne 0x3a005cda */ 6934 L_3A005CD8: 6935 ecx = eax; /* 0x3A005CD8: mov ecx, eax */ 6936 L_3A005CDA: 6937 MEM32(eax + 0x4) = ecx; /* 0x3A005CDA: mov dword ptr [eax + 4], ecx */ 6938 MEM32(esi + 0x4) = eax; /* 0x3A005CDD: mov dword ptr [esi + 4], eax */ 6939 ecx = MEM32(eax + 0x4); /* 0x3A005CE0: mov ecx, dword ptr [eax + 4] */ 6940 MEM32(ecx) = eax; /* 0x3A005CE3: mov dword ptr [ecx], eax */ 6941 ecx = eax + 0x8; /* 0x3A005CE5: lea ecx, [eax + 8] */ 6942 /* test ecx, ecx */ /* 0x3A005CE8: test ecx, ecx */ 6943 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6944 _cf = 0; 6945 _flag_k = FK_TEST; 6946 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005CF3; /* 0x3A005CEA: je 0x3a005cf3 */ 6947 L_3A005CEC: 6948 edx = MEM32(ebp + 0x10); /* 0x3A005CEC: mov edx, dword ptr [ebp + 0x10] */ 6949 edx = MEM32(edx); /* 0x3A005CEF: mov edx, dword ptr [edx] */ 6950 MEM32(ecx) = edx; /* 0x3A005CF1: mov dword ptr [ecx], edx */ 6951 L_3A005CF3: 6952 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(1); 6953 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 1; /* 0x3A005CF3: inc dword ptr [ebx + 8] */ 6954 _flag_k = FK_INC; 6955 ecx = MEM32(ebp + 0x8); /* 0x3A005CF6: mov ecx, dword ptr [ebp + 8] */ 6956 edi = POP32_VAL(esp); /* 0x3A005CF9: pop edi */ 6957 esi = POP32_VAL(esp); /* 0x3A005CFA: pop esi */ 6958 MEM32(ecx) = eax; /* 0x3A005CFB: mov dword ptr [ecx], eax */ 6959 eax = ecx; /* 0x3A005CFD: mov eax, ecx */ 6960 ebx = POP32_VAL(esp); /* 0x3A005CFF: pop ebx */ 6961 ebp = POP32_VAL(esp); /* 0x3A005D00: pop ebp */ 6962 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3A005D01: ret 0xc */ 6963 RECOMP_REGS_OUT(); 6964 } 6965 6966 void sub_3A005D10(void) { 6967 int _fpu_cmp = 0; 6968 uint32_t _cf = 0; 6969 int _df = 1; 6970 uint32_t _flag_k = FK_NONE; 6971 uint32_t _flag_a = 0, _flag_b = 0; 6972 uint32_t _itail_tgt = 0; 6973 RECOMP_REGS_LOCALS 6974 RECOMP_ENTER(0x3A005D10u); 6975 6976 L_3A005D10: 6977 PUSH32(esp, ebp); /* 0x3A005D10: push ebp */ 6978 ebp = esp; /* 0x3A005D11: mov ebp, esp */ 6979 PUSH32(esp, ebx); /* 0x3A005D13: push ebx */ 6980 ebx = MEM32(ebp + 0x10); /* 0x3A005D14: mov ebx, dword ptr [ebp + 0x10] */ 6981 PUSH32(esp, esi); /* 0x3A005D17: push esi */ 6982 esi = MEM32(ebp + 0xC); /* 0x3A005D18: mov esi, dword ptr [ebp + 0xc] */ 6983 /* cmp esi, ebx */ /* 0x3A005D1B: cmp esi, ebx */ 6984 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6986 _flag_k = FK_CMP; 6987 PUSH32(esp, edi); /* 0x3A005D1D: push edi */ 6988 edi = ecx; /* 0x3A005D1E: mov edi, ecx */ 6989 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005D49; /* 0x3A005D20: je 0x3a005d49 */ 6990 L_3A005D22: 6991 eax = esi; /* 0x3A005D22: mov eax, esi */ 6992 ecx = MEM32(eax + 0x4); /* 0x3A005D24: mov ecx, dword ptr [eax + 4] */ 6993 edx = MEM32(eax); /* 0x3A005D27: mov edx, dword ptr [eax] */ 6994 esi = MEM32(esi); /* 0x3A005D29: mov esi, dword ptr [esi] */ 6995 MEM32(ecx) = edx; /* 0x3A005D2B: mov dword ptr [ecx], edx */ 6996 ecx = MEM32(eax); /* 0x3A005D2D: mov ecx, dword ptr [eax] */ 6997 edx = MEM32(eax + 0x4); /* 0x3A005D2F: mov edx, dword ptr [eax + 4] */ 6998 PUSH32(esp, eax); /* 0x3A005D32: push eax */ 6999 MEM32(ecx + 0x4) = edx; /* 0x3A005D33: mov dword ptr [ecx + 4], edx */ 7000 RECOMP_ICALL(0x3A008F76u); /* 0x3A005D36: call 0x3a008f76 */ /* not lifted */ 7001 RECOMP_FLAGS_IN(); 7002 ecx = MEM32(edi + 0x8); /* 0x3A005D3B: mov ecx, dword ptr [edi + 8] */ 7003 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7005 esp = esp + 4; /* 0x3A005D3E: add esp, 4 */ 7006 _flag_k = FK_ADD; 7007 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7008 ecx = ecx - 1; /* 0x3A005D41: dec ecx */ 7009 _flag_k = FK_DEC; 7010 /* cmp esi, ebx */ /* 0x3A005D42: cmp esi, ebx */ 7011 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 7012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7013 _flag_k = FK_CMP; 7014 MEM32(edi + 0x8) = ecx; /* 0x3A005D44: mov dword ptr [edi + 8], ecx */ 7015 RECOMP_BACKEDGE(); 7016 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005D22; /* 0x3A005D47: jne 0x3a005d22 */ 7017 L_3A005D49: 7018 eax = MEM32(ebp + 0x8); /* 0x3A005D49: mov eax, dword ptr [ebp + 8] */ 7019 edi = POP32_VAL(esp); /* 0x3A005D4C: pop edi */ 7020 MEM32(eax) = esi; /* 0x3A005D4D: mov dword ptr [eax], esi */ 7021 esi = POP32_VAL(esp); /* 0x3A005D4F: pop esi */ 7022 ebx = POP32_VAL(esp); /* 0x3A005D50: pop ebx */ 7023 ebp = POP32_VAL(esp); /* 0x3A005D51: pop ebp */ 7024 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3A005D52: ret 0xc */ 7025 RECOMP_REGS_OUT(); 7026 } 7027 7028 void sub_3A005D60(void) { 7029 int _fpu_cmp = 0; 7030 uint32_t _cf = 0; 7031 int _df = 1; 7032 uint32_t _flag_k = FK_NONE; 7033 uint32_t _flag_a = 0, _flag_b = 0; 7034 uint32_t _itail_tgt = 0; 7035 RECOMP_REGS_LOCALS 7036 RECOMP_ENTER(0x3A005D60u); 7037 7038 L_3A005D60: 7039 PUSH32(esp, ebp); /* 0x3A005D60: push ebp */ 7040 ebp = esp; /* 0x3A005D61: mov ebp, esp */ 7041 PUSH32(esp, 0xCu); /* 0x3A005D63: push 0xc */ 7042 RECOMP_ICALL(0x3A008FD0u); /* 0x3A005D65: call 0x3a008fd0 */ /* not lifted */ 7043 RECOMP_FLAGS_IN(); 7044 ecx = MEM32(ebp + 0x8); /* 0x3A005D6A: mov ecx, dword ptr [ebp + 8] */ 7045 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7046 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7047 esp = esp + 4; /* 0x3A005D6D: add esp, 4 */ 7048 _flag_k = FK_ADD; 7049 /* test ecx, ecx */ /* 0x3A005D70: test ecx, ecx */ 7050 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7051 _cf = 0; 7052 _flag_k = FK_TEST; 7053 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005D76; /* 0x3A005D72: jne 0x3a005d76 */ 7054 L_3A005D74: 7055 ecx = eax; /* 0x3A005D74: mov ecx, eax */ 7056 L_3A005D76: 7057 MEM32(eax) = ecx; /* 0x3A005D76: mov dword ptr [eax], ecx */ 7058 ecx = MEM32(ebp + 0xC); /* 0x3A005D78: mov ecx, dword ptr [ebp + 0xc] */ 7059 /* test ecx, ecx */ /* 0x3A005D7B: test ecx, ecx */ 7060 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7061 _cf = 0; 7062 _flag_k = FK_TEST; 7063 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005D86; /* 0x3A005D7D: je 0x3a005d86 */ 7064 L_3A005D7F: 7065 MEM32(eax + 0x4) = ecx; /* 0x3A005D7F: mov dword ptr [eax + 4], ecx */ 7066 ebp = POP32_VAL(esp); /* 0x3A005D82: pop ebp */ 7067 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A005D83: ret 8 */ 7068 L_3A005D86: 7069 MEM32(eax + 0x4) = eax; /* 0x3A005D86: mov dword ptr [eax + 4], eax */ 7070 ebp = POP32_VAL(esp); /* 0x3A005D89: pop ebp */ 7071 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A005D8A: ret 8 */ 7072 RECOMP_REGS_OUT(); 7073 } 7074 7075 void sub_3A005D90(void) { 7076 int _fpu_cmp = 0; 7077 uint32_t _cf = 0; 7078 int _df = 1; 7079 uint32_t _flag_k = FK_NONE; 7080 uint32_t _flag_a = 0, _flag_b = 0; 7081 uint32_t _itail_tgt = 0; 7082 RECOMP_REGS_LOCALS 7083 RECOMP_ENTER(0x3A005D90u); 7084 7085 L_3A005D90: 7086 PUSH32(esp, ebp); /* 0x3A005D90: push ebp */ 7087 ebp = esp; /* 0x3A005D91: mov ebp, esp */ 7088 PUSH32(esp, ebx); /* 0x3A005D93: push ebx */ 7089 PUSH32(esp, esi); /* 0x3A005D94: push esi */ 7090 esi = MEM32(ebp + 0xC); /* 0x3A005D95: mov esi, dword ptr [ebp + 0xc] */ 7091 PUSH32(esp, edi); /* 0x3A005D98: push edi */ 7092 edi = MEM32(esi + 0x4); /* 0x3A005D99: mov edi, dword ptr [esi + 4] */ 7093 PUSH32(esp, 0x28u); /* 0x3A005D9C: push 0x28 */ 7094 ebx = ecx; /* 0x3A005D9E: mov ebx, ecx */ 7095 RECOMP_ICALL(0x3A008FD0u); /* 0x3A005DA0: call 0x3a008fd0 */ /* not lifted */ 7096 RECOMP_FLAGS_IN(); 7097 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7099 esp = esp + 4; /* 0x3A005DA5: add esp, 4 */ 7100 _flag_k = FK_ADD; 7101 /* test esi, esi */ /* 0x3A005DA8: test esi, esi */ 7102 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7103 _cf = 0; 7104 _flag_k = FK_TEST; 7105 ecx = esi; /* 0x3A005DAA: mov ecx, esi */ 7106 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005DB0; /* 0x3A005DAC: jne 0x3a005db0 */ 7107 L_3A005DAE: 7108 ecx = eax; /* 0x3A005DAE: mov ecx, eax */ 7109 L_3A005DB0: 7110 /* test edi, edi */ /* 0x3A005DB0: test edi, edi */ 7111 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7112 _cf = 0; 7113 _flag_k = FK_TEST; 7114 MEM32(eax) = ecx; /* 0x3A005DB2: mov dword ptr [eax], ecx */ 7115 ecx = edi; /* 0x3A005DB4: mov ecx, edi */ 7116 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005DBA; /* 0x3A005DB6: jne 0x3a005dba */ 7117 L_3A005DB8: 7118 ecx = eax; /* 0x3A005DB8: mov ecx, eax */ 7119 L_3A005DBA: 7120 MEM32(eax + 0x4) = ecx; /* 0x3A005DBA: mov dword ptr [eax + 4], ecx */ 7121 MEM32(esi + 0x4) = eax; /* 0x3A005DBD: mov dword ptr [esi + 4], eax */ 7122 ecx = MEM32(eax + 0x4); /* 0x3A005DC0: mov ecx, dword ptr [eax + 4] */ 7123 edi = eax + 0x8; /* 0x3A005DC3: lea edi, [eax + 8] */ 7124 /* test edi, edi */ /* 0x3A005DC6: test edi, edi */ 7125 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7126 _cf = 0; 7127 _flag_k = FK_TEST; 7128 MEM32(ecx) = eax; /* 0x3A005DC8: mov dword ptr [ecx], eax */ 7129 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005DD6; /* 0x3A005DCA: je 0x3a005dd6 */ 7130 L_3A005DCC: 7131 esi = MEM32(ebp + 0x10); /* 0x3A005DCC: mov esi, dword ptr [ebp + 0x10] */ 7132 ecx = 8; /* 0x3A005DCF: mov ecx, 8 */ 7133 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3A005DD4: 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; } 7134 L_3A005DD6: 7135 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(1); 7136 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 1; /* 0x3A005DD6: inc dword ptr [ebx + 8] */ 7137 _flag_k = FK_INC; 7138 ecx = MEM32(ebp + 0x8); /* 0x3A005DD9: mov ecx, dword ptr [ebp + 8] */ 7139 edi = POP32_VAL(esp); /* 0x3A005DDC: pop edi */ 7140 esi = POP32_VAL(esp); /* 0x3A005DDD: pop esi */ 7141 MEM32(ecx) = eax; /* 0x3A005DDE: mov dword ptr [ecx], eax */ 7142 eax = ecx; /* 0x3A005DE0: mov eax, ecx */ 7143 ebx = POP32_VAL(esp); /* 0x3A005DE2: pop ebx */ 7144 ebp = POP32_VAL(esp); /* 0x3A005DE3: pop ebp */ 7145 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3A005DE4: ret 0xc */ 7146 RECOMP_REGS_OUT(); 7147 } 7148 7149 void sub_3A005DF0(void) { 7150 int _fpu_cmp = 0; 7151 uint32_t _cf = 0; 7152 int _df = 1; 7153 uint32_t _flag_k = FK_NONE; 7154 uint32_t _flag_a = 0, _flag_b = 0; 7155 uint32_t _itail_tgt = 0; 7156 RECOMP_REGS_LOCALS 7157 RECOMP_ENTER(0x3A005DF0u); 7158 7159 L_3A005DF0: 7160 PUSH32(esp, ebp); /* 0x3A005DF0: push ebp */ 7161 ebp = esp; /* 0x3A005DF1: mov ebp, esp */ 7162 PUSH32(esp, ebx); /* 0x3A005DF3: push ebx */ 7163 ebx = MEM32(ebp + 0x10); /* 0x3A005DF4: mov ebx, dword ptr [ebp + 0x10] */ 7164 PUSH32(esp, esi); /* 0x3A005DF7: push esi */ 7165 esi = ecx; /* 0x3A005DF8: mov esi, ecx */ 7166 eax = MEM32(esi + 0x10); /* 0x3A005DFA: mov eax, dword ptr [esi + 0x10] */ 7167 /* test eax, eax */ /* 0x3A005DFD: test eax, eax */ 7168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7169 _cf = 0; 7170 _flag_k = FK_TEST; 7171 ecx = MEM32(ebp + 0xC); /* 0x3A005DFF: mov ecx, dword ptr [ebp + 0xc] */ 7172 PUSH32(esp, edi); /* 0x3A005E02: push edi */ 7173 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005E65; /* 0x3A005E03: je 0x3a005e65 */ 7174 L_3A005E05: 7175 eax = MEM32(esi + 0x4); /* 0x3A005E05: mov eax, dword ptr [esi + 4] */ 7176 /* cmp ecx, MEM32(eax) */ /* 0x3A005E08: cmp ecx, dword ptr [eax] */ 7177 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 7178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7179 _flag_k = FK_CMP; 7180 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005E65; /* 0x3A005E0A: jne 0x3a005e65 */ 7181 L_3A005E0C: 7182 /* cmp ebx, eax */ /* 0x3A005E0C: cmp ebx, eax */ 7183 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7185 _flag_k = FK_CMP; 7186 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005E65; /* 0x3A005E0E: jne 0x3a005e65 */ 7187 L_3A005E10: 7188 ebx = MEM32(eax + 0x4); /* 0x3A005E10: mov ebx, dword ptr [eax + 4] */ 7189 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3A005E13: cmp ebx, dword ptr [esi + 8] */ 7190 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7192 _flag_k = FK_CMP; 7193 edi = ebx; /* 0x3A005E16: mov edi, ebx */ 7194 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005E39; /* 0x3A005E18: je 0x3a005e39 */ 7195 L_3A005E1A: 7196 eax = MEM32(edi + 0x8); /* 0x3A005E1A: mov eax, dword ptr [edi + 8] */ 7197 PUSH32(esp, eax); /* 0x3A005E1D: push eax */ 7198 ecx = esi; /* 0x3A005E1E: mov ecx, esi */ 7199 RECOMP_ICALL(0x3A006C00u); /* 0x3A005E20: call 0x3a006c00 */ /* not lifted */ 7200 RECOMP_FLAGS_IN(); 7201 edi = MEM32(edi); /* 0x3A005E25: mov edi, dword ptr [edi] */ 7202 PUSH32(esp, ebx); /* 0x3A005E27: push ebx */ 7203 RECOMP_ICALL(0x3A008F76u); /* 0x3A005E28: call 0x3a008f76 */ /* not lifted */ 7204 RECOMP_FLAGS_IN(); 7205 eax = MEM32(esi + 0x8); /* 0x3A005E2D: mov eax, dword ptr [esi + 8] */ 7206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7208 esp = esp + 4; /* 0x3A005E30: add esp, 4 */ 7209 _flag_k = FK_ADD; 7210 /* cmp edi, eax */ /* 0x3A005E33: cmp edi, eax */ 7211 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7213 _flag_k = FK_CMP; 7214 ebx = edi; /* 0x3A005E35: mov ebx, edi */ 7215 RECOMP_BACKEDGE(); 7216 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005E1A; /* 0x3A005E37: jne 0x3a005e1a */ 7217 L_3A005E39: 7218 ecx = MEM32(esi + 0x4); /* 0x3A005E39: mov ecx, dword ptr [esi + 4] */ 7219 edx = MEM32(esi + 0x8); /* 0x3A005E3C: mov edx, dword ptr [esi + 8] */ 7220 MEM32(ecx + 0x4) = edx; /* 0x3A005E3F: mov dword ptr [ecx + 4], edx */ 7221 eax = MEM32(esi + 0x4); /* 0x3A005E42: mov eax, dword ptr [esi + 4] */ 7222 MEM32(esi + 0x10) = 0; /* 0x3A005E45: mov dword ptr [esi + 0x10], 0 */ 7223 MEM32(eax) = eax; /* 0x3A005E4C: mov dword ptr [eax], eax */ 7224 eax = MEM32(esi + 0x4); /* 0x3A005E4E: mov eax, dword ptr [esi + 4] */ 7225 MEM32(eax + 0x8) = eax; /* 0x3A005E51: mov dword ptr [eax + 8], eax */ 7226 eax = MEM32(esi + 0x4); /* 0x3A005E54: mov eax, dword ptr [esi + 4] */ 7227 ecx = MEM32(eax); /* 0x3A005E57: mov ecx, dword ptr [eax] */ 7228 eax = MEM32(ebp + 0x8); /* 0x3A005E59: mov eax, dword ptr [ebp + 8] */ 7229 edi = POP32_VAL(esp); /* 0x3A005E5C: pop edi */ 7230 esi = POP32_VAL(esp); /* 0x3A005E5D: pop esi */ 7231 MEM32(eax) = ecx; /* 0x3A005E5E: mov dword ptr [eax], ecx */ 7232 ebx = POP32_VAL(esp); /* 0x3A005E60: pop ebx */ 7233 ebp = POP32_VAL(esp); /* 0x3A005E61: pop ebp */ 7234 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3A005E62: ret 0xc */ 7235 L_3A005E65: 7236 /* cmp ecx, ebx */ /* 0x3A005E65: cmp ecx, ebx */ 7237 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 7238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7239 _flag_k = FK_CMP; 7240 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005E86; /* 0x3A005E67: je 0x3a005e86 */ 7241 L_3A005E69: 7242 edi = ecx; /* 0x3A005E69: mov edi, ecx */ 7243 ecx = ebp + 0xC; /* 0x3A005E6B: lea ecx, [ebp + 0xc] */ 7244 RECOMP_ICALL(0x3A0072D0u); /* 0x3A005E6E: call 0x3a0072d0 */ /* not lifted */ 7245 RECOMP_FLAGS_IN(); 7246 PUSH32(esp, edi); /* 0x3A005E73: push edi */ 7247 ecx = ebp + 0x10; /* 0x3A005E74: lea ecx, [ebp + 0x10] */ 7248 PUSH32(esp, ecx); /* 0x3A005E77: push ecx */ 7249 ecx = esi; /* 0x3A005E78: mov ecx, esi */ 7250 RECOMP_ICALL(0x3A006840u); /* 0x3A005E7A: call 0x3a006840 */ /* not lifted */ 7251 RECOMP_FLAGS_IN(); 7252 ecx = MEM32(ebp + 0xC); /* 0x3A005E7F: mov ecx, dword ptr [ebp + 0xc] */ 7253 /* cmp ecx, ebx */ /* 0x3A005E82: cmp ecx, ebx */ 7254 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 7255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7256 _flag_k = FK_CMP; 7257 RECOMP_BACKEDGE(); 7258 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005E69; /* 0x3A005E84: jne 0x3a005e69 */ 7259 L_3A005E86: 7260 eax = MEM32(ebp + 0x8); /* 0x3A005E86: mov eax, dword ptr [ebp + 8] */ 7261 edi = POP32_VAL(esp); /* 0x3A005E89: pop edi */ 7262 esi = POP32_VAL(esp); /* 0x3A005E8A: pop esi */ 7263 MEM32(eax) = ecx; /* 0x3A005E8B: mov dword ptr [eax], ecx */ 7264 ebx = POP32_VAL(esp); /* 0x3A005E8D: pop ebx */ 7265 ebp = POP32_VAL(esp); /* 0x3A005E8E: pop ebp */ 7266 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3A005E8F: ret 0xc */ 7267 RECOMP_REGS_OUT(); 7268 } 7269 7270 void sub_3A005EA0(void) { 7271 int _fpu_cmp = 0; 7272 uint32_t _cf = 0; 7273 int _df = 1; 7274 uint32_t _flag_k = FK_NONE; 7275 uint32_t _flag_a = 0, _flag_b = 0; 7276 uint32_t _itail_tgt = 0; 7277 RECOMP_REGS_LOCALS 7278 RECOMP_ENTER(0x3A005EA0u); 7279 7280 L_3A005EA0: 7281 PUSH32(esp, ebp); /* 0x3A005EA0: push ebp */ 7282 ebp = esp; /* 0x3A005EA1: mov ebp, esp */ 7283 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7285 esp = esp - 0xCu; /* 0x3A005EA3: sub esp, 0xc */ 7286 _flag_k = FK_CMP; 7287 PUSH32(esp, ebx); /* 0x3A005EA6: push ebx */ 7288 PUSH32(esp, esi); /* 0x3A005EA7: push esi */ 7289 PUSH32(esp, edi); /* 0x3A005EA8: push edi */ 7290 edi = ecx; /* 0x3A005EA9: mov edi, ecx */ 7291 ecx = MEM32(edi + 0x4); /* 0x3A005EAB: mov ecx, dword ptr [edi + 4] */ 7292 ebx = MEM32(ecx + 0x4); /* 0x3A005EAE: mov ebx, dword ptr [ecx + 4] */ 7293 edx = MEM32(edi + 0x8); /* 0x3A005EB1: mov edx, dword ptr [edi + 8] */ 7294 /* cmp ebx, edx */ /* 0x3A005EB4: cmp ebx, edx */ 7295 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 7296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7297 _flag_k = FK_CMP; 7298 esi = ecx; /* 0x3A005EB6: mov esi, ecx */ 7299 SET_LO8(eax, 1); /* 0x3A005EB8: mov al, 1 */ 7300 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005EDE; /* 0x3A005EBA: je 0x3a005ede */ 7301 L_3A005EBC: 7302 eax = MEM32(ebp + 0xC); /* 0x3A005EBC: mov eax, dword ptr [ebp + 0xc] */ 7303 eax = MEM32(eax); /* 0x3A005EBF: mov eax, dword ptr [eax] */ 7304 MEM32(ebp + (-0x8)) = eax; /* 0x3A005EC1: mov dword ptr [ebp - 8], eax */ 7305 L_3A005EC4: 7306 eax = MEM32(ebp + (-0x8)); /* 0x3A005EC4: mov eax, dword ptr [ebp - 8] */ 7307 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x3A005EC7: cmp eax, dword ptr [ebx + 0xc] */ 7308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 7309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7310 _flag_k = FK_CMP; 7311 esi = ebx; /* 0x3A005ECA: mov esi, ebx */ 7312 SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x3A005ECC: setl al */ 7313 /* test LO8(eax), LO8(eax) */ /* 0x3A005ECF: test al, al */ 7314 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7315 _cf = 0; 7316 _flag_k = FK_NARROW(FK_TEST, 24); 7317 if (TEST_Z(_flag_a, _flag_b)) goto L_3A005ED7; /* 0x3A005ED1: je 0x3a005ed7 */ 7318 L_3A005ED3: 7319 ebx = MEM32(ebx); /* 0x3A005ED3: mov ebx, dword ptr [ebx] */ 7320 goto L_3A005EDA; /* 0x3A005ED5: jmp 0x3a005eda */ 7321 L_3A005ED7: 7322 ebx = MEM32(ebx + 0x8); /* 0x3A005ED7: mov ebx, dword ptr [ebx + 8] */ 7323 L_3A005EDA: 7324 /* cmp ebx, edx */ /* 0x3A005EDA: cmp ebx, edx */ 7325 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 7326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7327 _flag_k = FK_CMP; 7328 RECOMP_BACKEDGE(); 7329 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005EC4; /* 0x3A005EDC: jne 0x3a005ec4 */ 7330 L_3A005EDE: 7331 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x3A005EDE: mov dl, byte ptr [edi + 0xc] */ 7332 /* test LO8(edx), LO8(edx) */ /* 0x3A005EE1: test dl, dl */ 7333 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7334 _cf = 0; 7335 _flag_k = FK_NARROW(FK_TEST, 24); 7336 if (TEST_Z(_flag_a, _flag_b)) goto L_3A006059; /* 0x3A005EE3: je 0x3a006059 */ 7337 L_3A005EE9: 7338 PUSH32(esp, 0); /* 0x3A005EE9: push 0 */ 7339 PUSH32(esp, esi); /* 0x3A005EEB: push esi */ 7340 ecx = edi; /* 0x3A005EEC: mov ecx, edi */ 7341 RECOMP_ICALL(0x3A0071E0u); /* 0x3A005EEE: call 0x3a0071e0 */ /* not lifted */ 7342 RECOMP_FLAGS_IN(); 7343 ecx = MEM32(edi + 0x8); /* 0x3A005EF3: mov ecx, dword ptr [edi + 8] */ 7344 MEM32(eax) = ecx; /* 0x3A005EF6: mov dword ptr [eax], ecx */ 7345 edx = MEM32(edi + 0x8); /* 0x3A005EF8: mov edx, dword ptr [edi + 8] */ 7346 ecx = MEM32(ebp + 0xC); /* 0x3A005EFB: mov ecx, dword ptr [ebp + 0xc] */ 7347 MEM32(ebp + (-0x4)) = eax; /* 0x3A005EFE: mov dword ptr [ebp - 4], eax */ 7348 MEM32(eax + 0x8) = edx; /* 0x3A005F01: mov dword ptr [eax + 8], edx */ 7349 PUSH32(esp, ecx); /* 0x3A005F04: push ecx */ 7350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 7351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7352 eax = eax + 0xCu; /* 0x3A005F05: add eax, 0xc */ 7353 _flag_k = FK_ADD; 7354 PUSH32(esp, eax); /* 0x3A005F08: push eax */ 7355 RECOMP_ICALL(0x3A007360u); /* 0x3A005F09: call 0x3a007360 */ /* not lifted */ 7356 RECOMP_FLAGS_IN(); 7357 ecx = MEM32(edi + 0x10); /* 0x3A005F0E: mov ecx, dword ptr [edi + 0x10] */ 7358 eax = MEM32(edi + 0x4); /* 0x3A005F11: mov eax, dword ptr [edi + 4] */ 7359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7361 esp = esp + 8; /* 0x3A005F14: add esp, 8 */ 7362 _flag_k = FK_ADD; 7363 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7364 ecx = ecx + 1; /* 0x3A005F17: inc ecx */ 7365 _flag_k = FK_INC; 7366 /* cmp esi, eax */ /* 0x3A005F18: cmp esi, eax */ 7367 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7369 _flag_k = FK_CMP; 7370 MEM32(edi + 0x10) = ecx; /* 0x3A005F1A: mov dword ptr [edi + 0x10], ecx */ 7371 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A005F41; /* 0x3A005F1D: je 0x3a005f41 */ 7372 L_3A005F1F: 7373 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3A005F1F: cmp ebx, dword ptr [edi + 8] */ 7374 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7376 _flag_k = FK_CMP; 7377 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005F41; /* 0x3A005F22: jne 0x3a005f41 */ 7378 L_3A005F24: 7379 edx = MEM32(ebp + 0xC); /* 0x3A005F24: mov edx, dword ptr [ebp + 0xc] */ 7380 eax = MEM32(edx); /* 0x3A005F27: mov eax, dword ptr [edx] */ 7381 /* cmp eax, MEM32(esi + 0xC) */ /* 0x3A005F29: cmp eax, dword ptr [esi + 0xc] */ 7382 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 7383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7384 _flag_k = FK_CMP; 7385 if (CMP_L(_flag_a, _flag_b)) goto L_3A005F41; /* 0x3A005F2C: jl 0x3a005f41 */ 7386 L_3A005F2E: 7387 ebx = MEM32(ebp + (-0x4)); /* 0x3A005F2E: mov ebx, dword ptr [ebp - 4] */ 7388 MEM32(esi + 0x8) = ebx; /* 0x3A005F31: mov dword ptr [esi + 8], ebx */ 7389 eax = MEM32(edi + 0x4); /* 0x3A005F34: mov eax, dword ptr [edi + 4] */ 7390 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3A005F37: cmp esi, dword ptr [eax + 8] */ 7391 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7393 _flag_k = FK_CMP; 7394 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005F64; /* 0x3A005F3A: jne 0x3a005f64 */ 7395 L_3A005F3C: 7396 MEM32(eax + 0x8) = ebx; /* 0x3A005F3C: mov dword ptr [eax + 8], ebx */ 7397 goto L_3A005F64; /* 0x3A005F3F: jmp 0x3a005f64 */ 7398 L_3A005F41: 7399 ecx = MEM32(ebp + (-0x4)); /* 0x3A005F41: mov ecx, dword ptr [ebp - 4] */ 7400 MEM32(esi) = ecx; /* 0x3A005F44: mov dword ptr [esi], ecx */ 7401 eax = MEM32(edi + 0x4); /* 0x3A005F46: mov eax, dword ptr [edi + 4] */ 7402 /* cmp esi, eax */ /* 0x3A005F49: cmp esi, eax */ 7403 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7405 _flag_k = FK_CMP; 7406 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005F58; /* 0x3A005F4B: jne 0x3a005f58 */ 7407 L_3A005F4D: 7408 MEM32(eax + 0x4) = ecx; /* 0x3A005F4D: mov dword ptr [eax + 4], ecx */ 7409 edx = MEM32(edi + 0x4); /* 0x3A005F50: mov edx, dword ptr [edi + 4] */ 7410 MEM32(edx + 0x8) = ecx; /* 0x3A005F53: mov dword ptr [edx + 8], ecx */ 7411 goto L_3A005F61; /* 0x3A005F56: jmp 0x3a005f61 */ 7412 L_3A005F58: 7413 /* cmp esi, MEM32(eax) */ /* 0x3A005F58: cmp esi, dword ptr [eax] */ 7414 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 7415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7416 _flag_k = FK_CMP; 7417 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005F61; /* 0x3A005F5A: jne 0x3a005f61 */ 7418 L_3A005F5C: 7419 ecx = MEM32(ebp + (-0x4)); /* 0x3A005F5C: mov ecx, dword ptr [ebp - 4] */ 7420 MEM32(eax) = ecx; /* 0x3A005F5F: mov dword ptr [eax], ecx */ 7421 L_3A005F61: 7422 ebx = MEM32(ebp + (-0x4)); /* 0x3A005F61: mov ebx, dword ptr [ebp - 4] */ 7423 L_3A005F64: 7424 edx = MEM32(edi + 0x4); /* 0x3A005F64: mov edx, dword ptr [edi + 4] */ 7425 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x3A005F67: cmp ebx, dword ptr [edx + 4] */ 7426 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7428 _flag_k = FK_CMP; 7429 esi = ebx; /* 0x3A005F6A: mov esi, ebx */ 7430 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006037; /* 0x3A005F6C: je 0x3a006037 */ 7431 L_3A005F72: 7432 eax = MEM32(esi + 0x4); /* 0x3A005F72: mov eax, dword ptr [esi + 4] */ 7433 SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x3A005F75: mov cl, byte ptr [eax + 0x14] */ 7434 /* test LO8(ecx), LO8(ecx) */ /* 0x3A005F78: test cl, cl */ 7435 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7436 _cf = 0; 7437 _flag_k = FK_NARROW(FK_TEST, 24); 7438 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006037; /* 0x3A005F7A: jne 0x3a006037 */ 7439 L_3A005F80: 7440 edx = MEM32(eax + 0x4); /* 0x3A005F80: mov edx, dword ptr [eax + 4] */ 7441 ecx = MEM32(edx); /* 0x3A005F83: mov ecx, dword ptr [edx] */ 7442 /* cmp eax, ecx */ /* 0x3A005F85: cmp eax, ecx */ 7443 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7445 _flag_k = FK_CMP; 7446 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005FDD; /* 0x3A005F87: jne 0x3a005fdd */ 7447 L_3A005F89: 7448 ecx = MEM32(edx + 0x8); /* 0x3A005F89: mov ecx, dword ptr [edx + 8] */ 7449 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A005F8C: mov dl, byte ptr [ecx + 0x14] */ 7450 /* test LO8(edx), LO8(edx) */ /* 0x3A005F8F: test dl, dl */ 7451 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7452 _cf = 0; 7453 _flag_k = FK_NARROW(FK_TEST, 24); 7454 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005FAD; /* 0x3A005F91: jne 0x3a005fad */ 7455 L_3A005F93: 7456 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3A005F93: mov byte ptr [eax + 0x14], 1 */ 7457 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3A005F97: mov byte ptr [ecx + 0x14], 1 */ 7458 eax = MEM32(esi + 0x4); /* 0x3A005F9B: mov eax, dword ptr [esi + 4] */ 7459 ecx = MEM32(eax + 0x4); /* 0x3A005F9E: mov ecx, dword ptr [eax + 4] */ 7460 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A005FA1: mov byte ptr [ecx + 0x14], 0 */ 7461 edx = MEM32(esi + 0x4); /* 0x3A005FA5: mov edx, dword ptr [esi + 4] */ 7462 esi = MEM32(edx + 0x4); /* 0x3A005FA8: mov esi, dword ptr [edx + 4] */ 7463 goto L_3A00602B; /* 0x3A005FAB: jmp 0x3a00602b */ 7464 L_3A005FAD: 7465 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3A005FAD: cmp esi, dword ptr [eax + 8] */ 7466 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7468 _flag_k = FK_CMP; 7469 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005FBC; /* 0x3A005FB0: jne 0x3a005fbc */ 7470 L_3A005FB2: 7471 esi = eax; /* 0x3A005FB2: mov esi, eax */ 7472 PUSH32(esp, esi); /* 0x3A005FB4: push esi */ 7473 ecx = edi; /* 0x3A005FB5: mov ecx, edi */ 7474 RECOMP_ICALL(0x3A007120u); /* 0x3A005FB7: call 0x3a007120 */ /* not lifted */ 7475 RECOMP_FLAGS_IN(); 7476 L_3A005FBC: 7477 eax = MEM32(esi + 0x4); /* 0x3A005FBC: mov eax, dword ptr [esi + 4] */ 7478 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3A005FBF: mov byte ptr [eax + 0x14], 1 */ 7479 ecx = MEM32(esi + 0x4); /* 0x3A005FC3: mov ecx, dword ptr [esi + 4] */ 7480 edx = MEM32(ecx + 0x4); /* 0x3A005FC6: mov edx, dword ptr [ecx + 4] */ 7481 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3A005FC9: mov byte ptr [edx + 0x14], 0 */ 7482 eax = MEM32(esi + 0x4); /* 0x3A005FCD: mov eax, dword ptr [esi + 4] */ 7483 ecx = MEM32(eax + 0x4); /* 0x3A005FD0: mov ecx, dword ptr [eax + 4] */ 7484 PUSH32(esp, ecx); /* 0x3A005FD3: push ecx */ 7485 ecx = edi; /* 0x3A005FD4: mov ecx, edi */ 7486 RECOMP_ICALL(0x3A007180u); /* 0x3A005FD6: call 0x3a007180 */ /* not lifted */ 7487 RECOMP_FLAGS_IN(); 7488 goto L_3A00602B; /* 0x3A005FDB: jmp 0x3a00602b */ 7489 L_3A005FDD: 7490 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A005FDD: mov dl, byte ptr [ecx + 0x14] */ 7491 /* test LO8(edx), LO8(edx) */ /* 0x3A005FE0: test dl, dl */ 7492 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7493 _cf = 0; 7494 _flag_k = FK_NARROW(FK_TEST, 24); 7495 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A005FFE; /* 0x3A005FE2: jne 0x3a005ffe */ 7496 L_3A005FE4: 7497 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3A005FE4: mov byte ptr [eax + 0x14], 1 */ 7498 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3A005FE8: mov byte ptr [ecx + 0x14], 1 */ 7499 edx = MEM32(esi + 0x4); /* 0x3A005FEC: mov edx, dword ptr [esi + 4] */ 7500 eax = MEM32(edx + 0x4); /* 0x3A005FEF: mov eax, dword ptr [edx + 4] */ 7501 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x3A005FF2: mov byte ptr [eax + 0x14], 0 */ 7502 ecx = MEM32(esi + 0x4); /* 0x3A005FF6: mov ecx, dword ptr [esi + 4] */ 7503 esi = MEM32(ecx + 0x4); /* 0x3A005FF9: mov esi, dword ptr [ecx + 4] */ 7504 goto L_3A00602B; /* 0x3A005FFC: jmp 0x3a00602b */ 7505 L_3A005FFE: 7506 /* cmp esi, MEM32(eax) */ /* 0x3A005FFE: cmp esi, dword ptr [eax] */ 7507 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 7508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7509 _flag_k = FK_CMP; 7510 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00600C; /* 0x3A006000: jne 0x3a00600c */ 7511 L_3A006002: 7512 esi = eax; /* 0x3A006002: mov esi, eax */ 7513 PUSH32(esp, esi); /* 0x3A006004: push esi */ 7514 ecx = edi; /* 0x3A006005: mov ecx, edi */ 7515 RECOMP_ICALL(0x3A007180u); /* 0x3A006007: call 0x3a007180 */ /* not lifted */ 7516 RECOMP_FLAGS_IN(); 7517 L_3A00600C: 7518 edx = MEM32(esi + 0x4); /* 0x3A00600C: mov edx, dword ptr [esi + 4] */ 7519 MEM8(edx + 0x14) = (uint8_t)(1); /* 0x3A00600F: mov byte ptr [edx + 0x14], 1 */ 7520 eax = MEM32(esi + 0x4); /* 0x3A006013: mov eax, dword ptr [esi + 4] */ 7521 ecx = MEM32(eax + 0x4); /* 0x3A006016: mov ecx, dword ptr [eax + 4] */ 7522 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006019: mov byte ptr [ecx + 0x14], 0 */ 7523 edx = MEM32(esi + 0x4); /* 0x3A00601D: mov edx, dword ptr [esi + 4] */ 7524 eax = MEM32(edx + 0x4); /* 0x3A006020: mov eax, dword ptr [edx + 4] */ 7525 PUSH32(esp, eax); /* 0x3A006023: push eax */ 7526 ecx = edi; /* 0x3A006024: mov ecx, edi */ 7527 RECOMP_ICALL(0x3A007120u); /* 0x3A006026: call 0x3a007120 */ /* not lifted */ 7528 RECOMP_FLAGS_IN(); 7529 L_3A00602B: 7530 ecx = MEM32(edi + 0x4); /* 0x3A00602B: mov ecx, dword ptr [edi + 4] */ 7531 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3A00602E: cmp esi, dword ptr [ecx + 4] */ 7532 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7534 _flag_k = FK_CMP; 7535 RECOMP_BACKEDGE(); 7536 if (CMP_NE(_flag_a, _flag_b)) goto L_3A005F72; /* 0x3A006031: jne 0x3a005f72 */ 7537 L_3A006037: 7538 edx = MEM32(edi + 0x4); /* 0x3A006037: mov edx, dword ptr [edi + 4] */ 7539 eax = MEM32(edx + 0x4); /* 0x3A00603A: mov eax, dword ptr [edx + 4] */ 7540 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3A00603D: mov byte ptr [eax + 0x14], 1 */ 7541 eax = MEM32(ebp + 0x8); /* 0x3A006041: mov eax, dword ptr [ebp + 8] */ 7542 edi = POP32_VAL(esp); /* 0x3A006044: pop edi */ 7543 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3A006045: mov byte ptr [ebp - 8], 1 */ 7544 ecx = MEM32(ebp + (-0x8)); /* 0x3A006049: mov ecx, dword ptr [ebp - 8] */ 7545 MEM32(eax) = ebx; /* 0x3A00604C: mov dword ptr [eax], ebx */ 7546 esi = POP32_VAL(esp); /* 0x3A00604E: pop esi */ 7547 MEM32(eax + 0x4) = ecx; /* 0x3A00604F: mov dword ptr [eax + 4], ecx */ 7548 ebx = POP32_VAL(esp); /* 0x3A006052: pop ebx */ 7549 esp = ebp; /* 0x3A006053: mov esp, ebp */ 7550 ebp = POP32_VAL(esp); /* 0x3A006055: pop ebp */ 7551 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006056: ret 8 */ 7552 L_3A006059: 7553 /* test LO8(eax), LO8(eax) */ /* 0x3A006059: test al, al */ 7554 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7555 _cf = 0; 7556 _flag_k = FK_NARROW(FK_TEST, 24); 7557 edx = esi; /* 0x3A00605B: mov edx, esi */ 7558 MEM32(ebp + (-0x8)) = edx; /* 0x3A00605D: mov dword ptr [ebp - 8], edx */ 7559 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00609C; /* 0x3A006060: je 0x3a00609c */ 7560 L_3A006062: 7561 /* cmp esi, MEM32(ecx) */ /* 0x3A006062: cmp esi, dword ptr [ecx] */ 7562 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 7563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7564 _flag_k = FK_CMP; 7565 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006091; /* 0x3A006064: jne 0x3a006091 */ 7566 L_3A006066: 7567 edx = MEM32(ebp + 0xC); /* 0x3A006066: mov edx, dword ptr [ebp + 0xc] */ 7568 PUSH32(esp, edx); /* 0x3A006069: push edx */ 7569 PUSH32(esp, esi); /* 0x3A00606A: push esi */ 7570 PUSH32(esp, ebx); /* 0x3A00606B: push ebx */ 7571 eax = ebp + 0xC; /* 0x3A00606C: lea eax, [ebp + 0xc] */ 7572 PUSH32(esp, eax); /* 0x3A00606F: push eax */ 7573 ecx = edi; /* 0x3A006070: mov ecx, edi */ 7574 RECOMP_ICALL(0x3A006C40u); /* 0x3A006072: call 0x3a006c40 */ /* not lifted */ 7575 RECOMP_FLAGS_IN(); 7576 ecx = MEM32(eax); /* 0x3A006077: mov ecx, dword ptr [eax] */ 7577 eax = MEM32(ebp + 0x8); /* 0x3A006079: mov eax, dword ptr [ebp + 8] */ 7578 edi = POP32_VAL(esp); /* 0x3A00607C: pop edi */ 7579 MEM32(eax) = ecx; /* 0x3A00607D: mov dword ptr [eax], ecx */ 7580 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3A00607F: mov byte ptr [ebp - 8], 1 */ 7581 ecx = MEM32(ebp + (-0x8)); /* 0x3A006083: mov ecx, dword ptr [ebp - 8] */ 7582 esi = POP32_VAL(esp); /* 0x3A006086: pop esi */ 7583 MEM32(eax + 0x4) = ecx; /* 0x3A006087: mov dword ptr [eax + 4], ecx */ 7584 ebx = POP32_VAL(esp); /* 0x3A00608A: pop ebx */ 7585 esp = ebp; /* 0x3A00608B: mov esp, ebp */ 7586 ebp = POP32_VAL(esp); /* 0x3A00608D: pop ebp */ 7587 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A00608E: ret 8 */ 7588 L_3A006091: 7589 ecx = ebp + (-0x8); /* 0x3A006091: lea ecx, [ebp - 8] */ 7590 RECOMP_ICALL(0x3A007270u); /* 0x3A006094: call 0x3a007270 */ /* not lifted */ 7591 RECOMP_FLAGS_IN(); 7592 edx = MEM32(ebp + (-0x8)); /* 0x3A006099: mov edx, dword ptr [ebp - 8] */ 7593 L_3A00609C: 7594 ecx = MEM32(edx + 0xC); /* 0x3A00609C: mov ecx, dword ptr [edx + 0xc] */ 7595 eax = MEM32(ebp + 0xC); /* 0x3A00609F: mov eax, dword ptr [ebp + 0xc] */ 7596 /* cmp ecx, MEM32(eax) */ /* 0x3A0060A2: cmp ecx, dword ptr [eax] */ 7597 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 7598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7599 _flag_k = FK_CMP; 7600 if (CMP_GE(_flag_a, _flag_b)) goto L_3A0060CE; /* 0x3A0060A4: jge 0x3a0060ce */ 7601 L_3A0060A6: 7602 PUSH32(esp, eax); /* 0x3A0060A6: push eax */ 7603 PUSH32(esp, esi); /* 0x3A0060A7: push esi */ 7604 PUSH32(esp, ebx); /* 0x3A0060A8: push ebx */ 7605 edx = ebp + 0xC; /* 0x3A0060A9: lea edx, [ebp + 0xc] */ 7606 PUSH32(esp, edx); /* 0x3A0060AC: push edx */ 7607 ecx = edi; /* 0x3A0060AD: mov ecx, edi */ 7608 RECOMP_ICALL(0x3A006C40u); /* 0x3A0060AF: call 0x3a006c40 */ /* not lifted */ 7609 RECOMP_FLAGS_IN(); 7610 ecx = MEM32(eax); /* 0x3A0060B4: mov ecx, dword ptr [eax] */ 7611 eax = MEM32(ebp + 0x8); /* 0x3A0060B6: mov eax, dword ptr [ebp + 8] */ 7612 edi = POP32_VAL(esp); /* 0x3A0060B9: pop edi */ 7613 MEM32(eax) = ecx; /* 0x3A0060BA: mov dword ptr [eax], ecx */ 7614 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3A0060BC: mov byte ptr [ebp - 8], 1 */ 7615 ecx = MEM32(ebp + (-0x8)); /* 0x3A0060C0: mov ecx, dword ptr [ebp - 8] */ 7616 esi = POP32_VAL(esp); /* 0x3A0060C3: pop esi */ 7617 MEM32(eax + 0x4) = ecx; /* 0x3A0060C4: mov dword ptr [eax + 4], ecx */ 7618 ebx = POP32_VAL(esp); /* 0x3A0060C7: pop ebx */ 7619 esp = ebp; /* 0x3A0060C8: mov esp, ebp */ 7620 ebp = POP32_VAL(esp); /* 0x3A0060CA: pop ebp */ 7621 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A0060CB: ret 8 */ 7622 L_3A0060CE: 7623 eax = MEM32(ebp + 0x8); /* 0x3A0060CE: mov eax, dword ptr [ebp + 8] */ 7624 edi = POP32_VAL(esp); /* 0x3A0060D1: pop edi */ 7625 MEM32(eax) = edx; /* 0x3A0060D2: mov dword ptr [eax], edx */ 7626 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x3A0060D4: mov byte ptr [ebp - 8], 0 */ 7627 edx = MEM32(ebp + (-0x8)); /* 0x3A0060D8: mov edx, dword ptr [ebp - 8] */ 7628 esi = POP32_VAL(esp); /* 0x3A0060DB: pop esi */ 7629 MEM32(eax + 0x4) = edx; /* 0x3A0060DC: mov dword ptr [eax + 4], edx */ 7630 ebx = POP32_VAL(esp); /* 0x3A0060DF: pop ebx */ 7631 esp = ebp; /* 0x3A0060E0: mov esp, ebp */ 7632 ebp = POP32_VAL(esp); /* 0x3A0060E2: pop ebp */ 7633 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A0060E3: ret 8 */ 7634 RECOMP_REGS_OUT(); 7635 } 7636 7637 void sub_3A0060F0(void) { 7638 int _fpu_cmp = 0; 7639 uint32_t _cf = 0; 7640 int _df = 1; 7641 uint32_t _flag_k = FK_NONE; 7642 uint32_t _flag_a = 0, _flag_b = 0; 7643 uint32_t _itail_tgt = 0; 7644 RECOMP_REGS_LOCALS 7645 RECOMP_ENTER(0x3A0060F0u); 7646 7647 L_3A0060F0: 7648 PUSH32(esp, ebp); /* 0x3A0060F0: push ebp */ 7649 ebp = esp; /* 0x3A0060F1: mov ebp, esp */ 7650 PUSH32(esp, ebx); /* 0x3A0060F3: push ebx */ 7651 PUSH32(esp, esi); /* 0x3A0060F4: push esi */ 7652 ebx = ecx; /* 0x3A0060F5: mov ebx, ecx */ 7653 eax = MEM32(ebx + 0x8); /* 0x3A0060F7: mov eax, dword ptr [ebx + 8] */ 7654 PUSH32(esp, edi); /* 0x3A0060FA: push edi */ 7655 edi = MEM32(ebp + 0x8); /* 0x3A0060FB: mov edi, dword ptr [ebp + 8] */ 7656 /* cmp edi, eax */ /* 0x3A0060FE: cmp edi, eax */ 7657 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7659 _flag_k = FK_CMP; 7660 esi = edi; /* 0x3A006100: mov esi, edi */ 7661 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006123; /* 0x3A006102: je 0x3a006123 */ 7662 L_3A006104: 7663 eax = MEM32(esi + 0x8); /* 0x3A006104: mov eax, dword ptr [esi + 8] */ 7664 PUSH32(esp, eax); /* 0x3A006107: push eax */ 7665 ecx = ebx; /* 0x3A006108: mov ecx, ebx */ 7666 RECOMP_ICALL(0x3A0060F0u); /* 0x3A00610A: call 0x3a0060f0 */ /* not lifted */ 7667 RECOMP_FLAGS_IN(); 7668 esi = MEM32(esi); /* 0x3A00610F: mov esi, dword ptr [esi] */ 7669 PUSH32(esp, edi); /* 0x3A006111: push edi */ 7670 RECOMP_ICALL(0x3A008F76u); /* 0x3A006112: call 0x3a008f76 */ /* not lifted */ 7671 RECOMP_FLAGS_IN(); 7672 eax = MEM32(ebx + 0x8); /* 0x3A006117: mov eax, dword ptr [ebx + 8] */ 7673 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7674 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7675 esp = esp + 4; /* 0x3A00611A: add esp, 4 */ 7676 _flag_k = FK_ADD; 7677 /* cmp esi, eax */ /* 0x3A00611D: cmp esi, eax */ 7678 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7680 _flag_k = FK_CMP; 7681 edi = esi; /* 0x3A00611F: mov edi, esi */ 7682 RECOMP_BACKEDGE(); 7683 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006104; /* 0x3A006121: jne 0x3a006104 */ 7684 L_3A006123: 7685 edi = POP32_VAL(esp); /* 0x3A006123: pop edi */ 7686 esi = POP32_VAL(esp); /* 0x3A006124: pop esi */ 7687 ebx = POP32_VAL(esp); /* 0x3A006125: pop ebx */ 7688 ebp = POP32_VAL(esp); /* 0x3A006126: pop ebp */ 7689 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A006127: ret 4 */ 7690 RECOMP_REGS_OUT(); 7691 } 7692 7693 void sub_3A006130(void) { 7694 int _fpu_cmp = 0; 7695 uint32_t _cf = 0; 7696 int _df = 1; 7697 uint32_t _flag_k = FK_NONE; 7698 uint32_t _flag_a = 0, _flag_b = 0; 7699 uint32_t _itail_tgt = 0; 7700 RECOMP_REGS_LOCALS 7701 RECOMP_ENTER(0x3A006130u); 7702 7703 L_3A006130: 7704 PUSH32(esp, ebx); /* 0x3A006130: push ebx */ 7705 PUSH32(esp, esi); /* 0x3A006131: push esi */ 7706 PUSH32(esp, edi); /* 0x3A006132: push edi */ 7707 PUSH32(esp, 0x18u); /* 0x3A006133: push 0x18 */ 7708 esi = ecx; /* 0x3A006135: mov esi, ecx */ 7709 RECOMP_ICALL(0x3A008FD0u); /* 0x3A006137: call 0x3a008fd0 */ /* not lifted */ 7710 RECOMP_FLAGS_IN(); 7711 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7712 ebx = 0; /* 0x3A00613C: xor ebx, ebx */ 7713 _cf = 0; 7714 _flag_k = FK_TEST; 7715 MEM32(eax + 0x4) = ebx; /* 0x3A00613E: mov dword ptr [eax + 4], ebx */ 7716 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3A006141: mov byte ptr [eax + 0x15], bl */ 7717 SET_LO8(ecx, 1); /* 0x3A006144: mov cl, 1 */ 7718 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3A006146: mov byte ptr [eax + 0x14], cl */ 7719 MEM32(esi + 0x8) = eax; /* 0x3A006149: mov dword ptr [esi + 8], eax */ 7720 MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x3A00614C: mov byte ptr [eax + 0x15], cl */ 7721 eax = MEM32(esi + 0x8); /* 0x3A00614F: mov eax, dword ptr [esi + 8] */ 7722 MEM32(eax) = ebx; /* 0x3A006152: mov dword ptr [eax], ebx */ 7723 ecx = MEM32(esi + 0x8); /* 0x3A006154: mov ecx, dword ptr [esi + 8] */ 7724 MEM32(ecx + 0x8) = ebx; /* 0x3A006157: mov dword ptr [ecx + 8], ebx */ 7725 edi = MEM32(esi + 0x8); /* 0x3A00615A: mov edi, dword ptr [esi + 8] */ 7726 PUSH32(esp, 0x18u); /* 0x3A00615D: push 0x18 */ 7727 RECOMP_ICALL(0x3A008FD0u); /* 0x3A00615F: call 0x3a008fd0 */ /* not lifted */ 7728 RECOMP_FLAGS_IN(); 7729 MEM32(eax + 0x4) = edi; /* 0x3A006164: mov dword ptr [eax + 4], edi */ 7730 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006167: mov byte ptr [eax + 0x14], bl */ 7731 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3A00616A: mov byte ptr [eax + 0x15], bl */ 7732 MEM32(esi + 0x4) = eax; /* 0x3A00616D: mov dword ptr [esi + 4], eax */ 7733 MEM32(eax) = eax; /* 0x3A006170: mov dword ptr [eax], eax */ 7734 eax = MEM32(esi + 0x4); /* 0x3A006172: mov eax, dword ptr [esi + 4] */ 7735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7737 esp = esp + 8; /* 0x3A006175: add esp, 8 */ 7738 _flag_k = FK_ADD; 7739 edi = POP32_VAL(esp); /* 0x3A006178: pop edi */ 7740 MEM32(eax + 0x8) = eax; /* 0x3A006179: mov dword ptr [eax + 8], eax */ 7741 MEM32(esi + 0x10) = ebx; /* 0x3A00617C: mov dword ptr [esi + 0x10], ebx */ 7742 esi = POP32_VAL(esp); /* 0x3A00617F: pop esi */ 7743 ebx = POP32_VAL(esp); /* 0x3A006180: pop ebx */ 7744 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A006181: ret */ 7745 RECOMP_REGS_OUT(); 7746 } 7747 7748 void sub_3A006190(void) { 7749 int _fpu_cmp = 0; 7750 uint32_t _cf = 0; 7751 int _df = 1; 7752 uint32_t _flag_k = FK_NONE; 7753 uint32_t _flag_a = 0, _flag_b = 0; 7754 uint32_t _itail_tgt = 0; 7755 RECOMP_REGS_LOCALS 7756 RECOMP_ENTER(0x3A006190u); 7757 7758 L_3A006190: 7759 PUSH32(esp, ebp); /* 0x3A006190: push ebp */ 7760 ebp = esp; /* 0x3A006191: mov ebp, esp */ 7761 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7763 esp = esp - 0xCu; /* 0x3A006193: sub esp, 0xc */ 7764 _flag_k = FK_CMP; 7765 PUSH32(esp, ebx); /* 0x3A006196: push ebx */ 7766 PUSH32(esp, esi); /* 0x3A006197: push esi */ 7767 PUSH32(esp, edi); /* 0x3A006198: push edi */ 7768 edi = ecx; /* 0x3A006199: mov edi, ecx */ 7769 ecx = MEM32(edi + 0x4); /* 0x3A00619B: mov ecx, dword ptr [edi + 4] */ 7770 ebx = MEM32(ecx + 0x4); /* 0x3A00619E: mov ebx, dword ptr [ecx + 4] */ 7771 edx = MEM32(edi + 0x8); /* 0x3A0061A1: mov edx, dword ptr [edi + 8] */ 7772 /* cmp ebx, edx */ /* 0x3A0061A4: cmp ebx, edx */ 7773 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 7774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7775 _flag_k = FK_CMP; 7776 esi = ecx; /* 0x3A0061A6: mov esi, ecx */ 7777 SET_LO8(eax, 1); /* 0x3A0061A8: mov al, 1 */ 7778 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0061CE; /* 0x3A0061AA: je 0x3a0061ce */ 7779 L_3A0061AC: 7780 eax = MEM32(ebp + 0xC); /* 0x3A0061AC: mov eax, dword ptr [ebp + 0xc] */ 7781 eax = MEM32(eax); /* 0x3A0061AF: mov eax, dword ptr [eax] */ 7782 MEM32(ebp + (-0x8)) = eax; /* 0x3A0061B1: mov dword ptr [ebp - 8], eax */ 7783 L_3A0061B4: 7784 eax = MEM32(ebp + (-0x8)); /* 0x3A0061B4: mov eax, dword ptr [ebp - 8] */ 7785 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x3A0061B7: cmp eax, dword ptr [ebx + 0xc] */ 7786 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 7787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7788 _flag_k = FK_CMP; 7789 esi = ebx; /* 0x3A0061BA: mov esi, ebx */ 7790 SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x3A0061BC: setl al */ 7791 /* test LO8(eax), LO8(eax) */ /* 0x3A0061BF: test al, al */ 7792 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7793 _cf = 0; 7794 _flag_k = FK_NARROW(FK_TEST, 24); 7795 if (TEST_Z(_flag_a, _flag_b)) goto L_3A0061C7; /* 0x3A0061C1: je 0x3a0061c7 */ 7796 L_3A0061C3: 7797 ebx = MEM32(ebx); /* 0x3A0061C3: mov ebx, dword ptr [ebx] */ 7798 goto L_3A0061CA; /* 0x3A0061C5: jmp 0x3a0061ca */ 7799 L_3A0061C7: 7800 ebx = MEM32(ebx + 0x8); /* 0x3A0061C7: mov ebx, dword ptr [ebx + 8] */ 7801 L_3A0061CA: 7802 /* cmp ebx, edx */ /* 0x3A0061CA: cmp ebx, edx */ 7803 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 7804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7805 _flag_k = FK_CMP; 7806 RECOMP_BACKEDGE(); 7807 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0061B4; /* 0x3A0061CC: jne 0x3a0061b4 */ 7808 L_3A0061CE: 7809 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x3A0061CE: mov dl, byte ptr [edi + 0xc] */ 7810 /* test LO8(edx), LO8(edx) */ /* 0x3A0061D1: test dl, dl */ 7811 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7812 _cf = 0; 7813 _flag_k = FK_NARROW(FK_TEST, 24); 7814 if (TEST_Z(_flag_a, _flag_b)) goto L_3A006349; /* 0x3A0061D3: je 0x3a006349 */ 7815 L_3A0061D9: 7816 PUSH32(esp, 0); /* 0x3A0061D9: push 0 */ 7817 PUSH32(esp, esi); /* 0x3A0061DB: push esi */ 7818 ecx = edi; /* 0x3A0061DC: mov ecx, edi */ 7819 RECOMP_ICALL(0x3A0070F0u); /* 0x3A0061DE: call 0x3a0070f0 */ /* not lifted */ 7820 RECOMP_FLAGS_IN(); 7821 ecx = MEM32(edi + 0x8); /* 0x3A0061E3: mov ecx, dword ptr [edi + 8] */ 7822 MEM32(eax) = ecx; /* 0x3A0061E6: mov dword ptr [eax], ecx */ 7823 edx = MEM32(edi + 0x8); /* 0x3A0061E8: mov edx, dword ptr [edi + 8] */ 7824 ecx = MEM32(ebp + 0xC); /* 0x3A0061EB: mov ecx, dword ptr [ebp + 0xc] */ 7825 MEM32(ebp + (-0x4)) = eax; /* 0x3A0061EE: mov dword ptr [ebp - 4], eax */ 7826 MEM32(eax + 0x8) = edx; /* 0x3A0061F1: mov dword ptr [eax + 8], edx */ 7827 PUSH32(esp, ecx); /* 0x3A0061F4: push ecx */ 7828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 7829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7830 eax = eax + 0xCu; /* 0x3A0061F5: add eax, 0xc */ 7831 _flag_k = FK_ADD; 7832 PUSH32(esp, eax); /* 0x3A0061F8: push eax */ 7833 RECOMP_ICALL(0x3A007340u); /* 0x3A0061F9: call 0x3a007340 */ /* not lifted */ 7834 RECOMP_FLAGS_IN(); 7835 ecx = MEM32(edi + 0x10); /* 0x3A0061FE: mov ecx, dword ptr [edi + 0x10] */ 7836 eax = MEM32(edi + 0x4); /* 0x3A006201: mov eax, dword ptr [edi + 4] */ 7837 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7839 esp = esp + 8; /* 0x3A006204: add esp, 8 */ 7840 _flag_k = FK_ADD; 7841 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7842 ecx = ecx + 1; /* 0x3A006207: inc ecx */ 7843 _flag_k = FK_INC; 7844 /* cmp esi, eax */ /* 0x3A006208: cmp esi, eax */ 7845 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7847 _flag_k = FK_CMP; 7848 MEM32(edi + 0x10) = ecx; /* 0x3A00620A: mov dword ptr [edi + 0x10], ecx */ 7849 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006231; /* 0x3A00620D: je 0x3a006231 */ 7850 L_3A00620F: 7851 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3A00620F: cmp ebx, dword ptr [edi + 8] */ 7852 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7854 _flag_k = FK_CMP; 7855 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006231; /* 0x3A006212: jne 0x3a006231 */ 7856 L_3A006214: 7857 edx = MEM32(ebp + 0xC); /* 0x3A006214: mov edx, dword ptr [ebp + 0xc] */ 7858 eax = MEM32(edx); /* 0x3A006217: mov eax, dword ptr [edx] */ 7859 /* cmp eax, MEM32(esi + 0xC) */ /* 0x3A006219: cmp eax, dword ptr [esi + 0xc] */ 7860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 7861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7862 _flag_k = FK_CMP; 7863 if (CMP_L(_flag_a, _flag_b)) goto L_3A006231; /* 0x3A00621C: jl 0x3a006231 */ 7864 L_3A00621E: 7865 ebx = MEM32(ebp + (-0x4)); /* 0x3A00621E: mov ebx, dword ptr [ebp - 4] */ 7866 MEM32(esi + 0x8) = ebx; /* 0x3A006221: mov dword ptr [esi + 8], ebx */ 7867 eax = MEM32(edi + 0x4); /* 0x3A006224: mov eax, dword ptr [edi + 4] */ 7868 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3A006227: cmp esi, dword ptr [eax + 8] */ 7869 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7871 _flag_k = FK_CMP; 7872 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006254; /* 0x3A00622A: jne 0x3a006254 */ 7873 L_3A00622C: 7874 MEM32(eax + 0x8) = ebx; /* 0x3A00622C: mov dword ptr [eax + 8], ebx */ 7875 goto L_3A006254; /* 0x3A00622F: jmp 0x3a006254 */ 7876 L_3A006231: 7877 ecx = MEM32(ebp + (-0x4)); /* 0x3A006231: mov ecx, dword ptr [ebp - 4] */ 7878 MEM32(esi) = ecx; /* 0x3A006234: mov dword ptr [esi], ecx */ 7879 eax = MEM32(edi + 0x4); /* 0x3A006236: mov eax, dword ptr [edi + 4] */ 7880 /* cmp esi, eax */ /* 0x3A006239: cmp esi, eax */ 7881 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7883 _flag_k = FK_CMP; 7884 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006248; /* 0x3A00623B: jne 0x3a006248 */ 7885 L_3A00623D: 7886 MEM32(eax + 0x4) = ecx; /* 0x3A00623D: mov dword ptr [eax + 4], ecx */ 7887 edx = MEM32(edi + 0x4); /* 0x3A006240: mov edx, dword ptr [edi + 4] */ 7888 MEM32(edx + 0x8) = ecx; /* 0x3A006243: mov dword ptr [edx + 8], ecx */ 7889 goto L_3A006251; /* 0x3A006246: jmp 0x3a006251 */ 7890 L_3A006248: 7891 /* cmp esi, MEM32(eax) */ /* 0x3A006248: cmp esi, dword ptr [eax] */ 7892 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 7893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7894 _flag_k = FK_CMP; 7895 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006251; /* 0x3A00624A: jne 0x3a006251 */ 7896 L_3A00624C: 7897 ecx = MEM32(ebp + (-0x4)); /* 0x3A00624C: mov ecx, dword ptr [ebp - 4] */ 7898 MEM32(eax) = ecx; /* 0x3A00624F: mov dword ptr [eax], ecx */ 7899 L_3A006251: 7900 ebx = MEM32(ebp + (-0x4)); /* 0x3A006251: mov ebx, dword ptr [ebp - 4] */ 7901 L_3A006254: 7902 edx = MEM32(edi + 0x4); /* 0x3A006254: mov edx, dword ptr [edi + 4] */ 7903 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x3A006257: cmp ebx, dword ptr [edx + 4] */ 7904 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7906 _flag_k = FK_CMP; 7907 esi = ebx; /* 0x3A00625A: mov esi, ebx */ 7908 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006327; /* 0x3A00625C: je 0x3a006327 */ 7909 L_3A006262: 7910 eax = MEM32(esi + 0x4); /* 0x3A006262: mov eax, dword ptr [esi + 4] */ 7911 SET_LO8(ecx, MEM8(eax + 0x28)); /* 0x3A006265: mov cl, byte ptr [eax + 0x28] */ 7912 /* test LO8(ecx), LO8(ecx) */ /* 0x3A006268: test cl, cl */ 7913 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7914 _cf = 0; 7915 _flag_k = FK_NARROW(FK_TEST, 24); 7916 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006327; /* 0x3A00626A: jne 0x3a006327 */ 7917 L_3A006270: 7918 edx = MEM32(eax + 0x4); /* 0x3A006270: mov edx, dword ptr [eax + 4] */ 7919 ecx = MEM32(edx); /* 0x3A006273: mov ecx, dword ptr [edx] */ 7920 /* cmp eax, ecx */ /* 0x3A006275: cmp eax, ecx */ 7921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7923 _flag_k = FK_CMP; 7924 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0062CD; /* 0x3A006277: jne 0x3a0062cd */ 7925 L_3A006279: 7926 ecx = MEM32(edx + 0x8); /* 0x3A006279: mov ecx, dword ptr [edx + 8] */ 7927 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A00627C: mov dl, byte ptr [ecx + 0x28] */ 7928 /* test LO8(edx), LO8(edx) */ /* 0x3A00627F: test dl, dl */ 7929 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7930 _cf = 0; 7931 _flag_k = FK_NARROW(FK_TEST, 24); 7932 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00629D; /* 0x3A006281: jne 0x3a00629d */ 7933 L_3A006283: 7934 MEM8(eax + 0x28) = (uint8_t)(1); /* 0x3A006283: mov byte ptr [eax + 0x28], 1 */ 7935 MEM8(ecx + 0x28) = (uint8_t)(1); /* 0x3A006287: mov byte ptr [ecx + 0x28], 1 */ 7936 eax = MEM32(esi + 0x4); /* 0x3A00628B: mov eax, dword ptr [esi + 4] */ 7937 ecx = MEM32(eax + 0x4); /* 0x3A00628E: mov ecx, dword ptr [eax + 4] */ 7938 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006291: mov byte ptr [ecx + 0x28], 0 */ 7939 edx = MEM32(esi + 0x4); /* 0x3A006295: mov edx, dword ptr [esi + 4] */ 7940 esi = MEM32(edx + 0x4); /* 0x3A006298: mov esi, dword ptr [edx + 4] */ 7941 goto L_3A00631B; /* 0x3A00629B: jmp 0x3a00631b */ 7942 L_3A00629D: 7943 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3A00629D: cmp esi, dword ptr [eax + 8] */ 7944 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7946 _flag_k = FK_CMP; 7947 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0062AC; /* 0x3A0062A0: jne 0x3a0062ac */ 7948 L_3A0062A2: 7949 esi = eax; /* 0x3A0062A2: mov esi, eax */ 7950 PUSH32(esp, esi); /* 0x3A0062A4: push esi */ 7951 ecx = edi; /* 0x3A0062A5: mov ecx, edi */ 7952 RECOMP_ICALL(0x3A007120u); /* 0x3A0062A7: call 0x3a007120 */ /* not lifted */ 7953 RECOMP_FLAGS_IN(); 7954 L_3A0062AC: 7955 eax = MEM32(esi + 0x4); /* 0x3A0062AC: mov eax, dword ptr [esi + 4] */ 7956 MEM8(eax + 0x28) = (uint8_t)(1); /* 0x3A0062AF: mov byte ptr [eax + 0x28], 1 */ 7957 ecx = MEM32(esi + 0x4); /* 0x3A0062B3: mov ecx, dword ptr [esi + 4] */ 7958 edx = MEM32(ecx + 0x4); /* 0x3A0062B6: mov edx, dword ptr [ecx + 4] */ 7959 MEM8(edx + 0x28) = (uint8_t)(0); /* 0x3A0062B9: mov byte ptr [edx + 0x28], 0 */ 7960 eax = MEM32(esi + 0x4); /* 0x3A0062BD: mov eax, dword ptr [esi + 4] */ 7961 ecx = MEM32(eax + 0x4); /* 0x3A0062C0: mov ecx, dword ptr [eax + 4] */ 7962 PUSH32(esp, ecx); /* 0x3A0062C3: push ecx */ 7963 ecx = edi; /* 0x3A0062C4: mov ecx, edi */ 7964 RECOMP_ICALL(0x3A007180u); /* 0x3A0062C6: call 0x3a007180 */ /* not lifted */ 7965 RECOMP_FLAGS_IN(); 7966 goto L_3A00631B; /* 0x3A0062CB: jmp 0x3a00631b */ 7967 L_3A0062CD: 7968 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0062CD: mov dl, byte ptr [ecx + 0x28] */ 7969 /* test LO8(edx), LO8(edx) */ /* 0x3A0062D0: test dl, dl */ 7970 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7971 _cf = 0; 7972 _flag_k = FK_NARROW(FK_TEST, 24); 7973 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0062EE; /* 0x3A0062D2: jne 0x3a0062ee */ 7974 L_3A0062D4: 7975 MEM8(eax + 0x28) = (uint8_t)(1); /* 0x3A0062D4: mov byte ptr [eax + 0x28], 1 */ 7976 MEM8(ecx + 0x28) = (uint8_t)(1); /* 0x3A0062D8: mov byte ptr [ecx + 0x28], 1 */ 7977 edx = MEM32(esi + 0x4); /* 0x3A0062DC: mov edx, dword ptr [esi + 4] */ 7978 eax = MEM32(edx + 0x4); /* 0x3A0062DF: mov eax, dword ptr [edx + 4] */ 7979 MEM8(eax + 0x28) = (uint8_t)(0); /* 0x3A0062E2: mov byte ptr [eax + 0x28], 0 */ 7980 ecx = MEM32(esi + 0x4); /* 0x3A0062E6: mov ecx, dword ptr [esi + 4] */ 7981 esi = MEM32(ecx + 0x4); /* 0x3A0062E9: mov esi, dword ptr [ecx + 4] */ 7982 goto L_3A00631B; /* 0x3A0062EC: jmp 0x3a00631b */ 7983 L_3A0062EE: 7984 /* cmp esi, MEM32(eax) */ /* 0x3A0062EE: cmp esi, dword ptr [eax] */ 7985 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 7986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7987 _flag_k = FK_CMP; 7988 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0062FC; /* 0x3A0062F0: jne 0x3a0062fc */ 7989 L_3A0062F2: 7990 esi = eax; /* 0x3A0062F2: mov esi, eax */ 7991 PUSH32(esp, esi); /* 0x3A0062F4: push esi */ 7992 ecx = edi; /* 0x3A0062F5: mov ecx, edi */ 7993 RECOMP_ICALL(0x3A007180u); /* 0x3A0062F7: call 0x3a007180 */ /* not lifted */ 7994 RECOMP_FLAGS_IN(); 7995 L_3A0062FC: 7996 edx = MEM32(esi + 0x4); /* 0x3A0062FC: mov edx, dword ptr [esi + 4] */ 7997 MEM8(edx + 0x28) = (uint8_t)(1); /* 0x3A0062FF: mov byte ptr [edx + 0x28], 1 */ 7998 eax = MEM32(esi + 0x4); /* 0x3A006303: mov eax, dword ptr [esi + 4] */ 7999 ecx = MEM32(eax + 0x4); /* 0x3A006306: mov ecx, dword ptr [eax + 4] */ 8000 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006309: mov byte ptr [ecx + 0x28], 0 */ 8001 edx = MEM32(esi + 0x4); /* 0x3A00630D: mov edx, dword ptr [esi + 4] */ 8002 eax = MEM32(edx + 0x4); /* 0x3A006310: mov eax, dword ptr [edx + 4] */ 8003 PUSH32(esp, eax); /* 0x3A006313: push eax */ 8004 ecx = edi; /* 0x3A006314: mov ecx, edi */ 8005 RECOMP_ICALL(0x3A007120u); /* 0x3A006316: call 0x3a007120 */ /* not lifted */ 8006 RECOMP_FLAGS_IN(); 8007 L_3A00631B: 8008 ecx = MEM32(edi + 0x4); /* 0x3A00631B: mov ecx, dword ptr [edi + 4] */ 8009 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3A00631E: cmp esi, dword ptr [ecx + 4] */ 8010 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8012 _flag_k = FK_CMP; 8013 RECOMP_BACKEDGE(); 8014 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006262; /* 0x3A006321: jne 0x3a006262 */ 8015 L_3A006327: 8016 edx = MEM32(edi + 0x4); /* 0x3A006327: mov edx, dword ptr [edi + 4] */ 8017 eax = MEM32(edx + 0x4); /* 0x3A00632A: mov eax, dword ptr [edx + 4] */ 8018 MEM8(eax + 0x28) = (uint8_t)(1); /* 0x3A00632D: mov byte ptr [eax + 0x28], 1 */ 8019 eax = MEM32(ebp + 0x8); /* 0x3A006331: mov eax, dword ptr [ebp + 8] */ 8020 edi = POP32_VAL(esp); /* 0x3A006334: pop edi */ 8021 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3A006335: mov byte ptr [ebp - 8], 1 */ 8022 ecx = MEM32(ebp + (-0x8)); /* 0x3A006339: mov ecx, dword ptr [ebp - 8] */ 8023 MEM32(eax) = ebx; /* 0x3A00633C: mov dword ptr [eax], ebx */ 8024 esi = POP32_VAL(esp); /* 0x3A00633E: pop esi */ 8025 MEM32(eax + 0x4) = ecx; /* 0x3A00633F: mov dword ptr [eax + 4], ecx */ 8026 ebx = POP32_VAL(esp); /* 0x3A006342: pop ebx */ 8027 esp = ebp; /* 0x3A006343: mov esp, ebp */ 8028 ebp = POP32_VAL(esp); /* 0x3A006345: pop ebp */ 8029 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006346: ret 8 */ 8030 L_3A006349: 8031 /* test LO8(eax), LO8(eax) */ /* 0x3A006349: test al, al */ 8032 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8033 _cf = 0; 8034 _flag_k = FK_NARROW(FK_TEST, 24); 8035 edx = esi; /* 0x3A00634B: mov edx, esi */ 8036 MEM32(ebp + (-0x8)) = edx; /* 0x3A00634D: mov dword ptr [ebp - 8], edx */ 8037 if (TEST_Z(_flag_a, _flag_b)) goto L_3A00638C; /* 0x3A006350: je 0x3a00638c */ 8038 L_3A006352: 8039 /* cmp esi, MEM32(ecx) */ /* 0x3A006352: cmp esi, dword ptr [ecx] */ 8040 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 8041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8042 _flag_k = FK_CMP; 8043 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006381; /* 0x3A006354: jne 0x3a006381 */ 8044 L_3A006356: 8045 edx = MEM32(ebp + 0xC); /* 0x3A006356: mov edx, dword ptr [ebp + 0xc] */ 8046 PUSH32(esp, edx); /* 0x3A006359: push edx */ 8047 PUSH32(esp, esi); /* 0x3A00635A: push esi */ 8048 PUSH32(esp, ebx); /* 0x3A00635B: push ebx */ 8049 eax = ebp + 0xC; /* 0x3A00635C: lea eax, [ebp + 0xc] */ 8050 PUSH32(esp, eax); /* 0x3A00635F: push eax */ 8051 ecx = edi; /* 0x3A006360: mov ecx, edi */ 8052 RECOMP_ICALL(0x3A006E80u); /* 0x3A006362: call 0x3a006e80 */ /* not lifted */ 8053 RECOMP_FLAGS_IN(); 8054 ecx = MEM32(eax); /* 0x3A006367: mov ecx, dword ptr [eax] */ 8055 eax = MEM32(ebp + 0x8); /* 0x3A006369: mov eax, dword ptr [ebp + 8] */ 8056 edi = POP32_VAL(esp); /* 0x3A00636C: pop edi */ 8057 MEM32(eax) = ecx; /* 0x3A00636D: mov dword ptr [eax], ecx */ 8058 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3A00636F: mov byte ptr [ebp - 8], 1 */ 8059 ecx = MEM32(ebp + (-0x8)); /* 0x3A006373: mov ecx, dword ptr [ebp - 8] */ 8060 esi = POP32_VAL(esp); /* 0x3A006376: pop esi */ 8061 MEM32(eax + 0x4) = ecx; /* 0x3A006377: mov dword ptr [eax + 4], ecx */ 8062 ebx = POP32_VAL(esp); /* 0x3A00637A: pop ebx */ 8063 esp = ebp; /* 0x3A00637B: mov esp, ebp */ 8064 ebp = POP32_VAL(esp); /* 0x3A00637D: pop ebp */ 8065 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A00637E: ret 8 */ 8066 L_3A006381: 8067 ecx = ebp + (-0x8); /* 0x3A006381: lea ecx, [ebp - 8] */ 8068 RECOMP_ICALL(0x3A007210u); /* 0x3A006384: call 0x3a007210 */ /* not lifted */ 8069 RECOMP_FLAGS_IN(); 8070 edx = MEM32(ebp + (-0x8)); /* 0x3A006389: mov edx, dword ptr [ebp - 8] */ 8071 L_3A00638C: 8072 ecx = MEM32(edx + 0xC); /* 0x3A00638C: mov ecx, dword ptr [edx + 0xc] */ 8073 eax = MEM32(ebp + 0xC); /* 0x3A00638F: mov eax, dword ptr [ebp + 0xc] */ 8074 /* cmp ecx, MEM32(eax) */ /* 0x3A006392: cmp ecx, dword ptr [eax] */ 8075 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 8076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8077 _flag_k = FK_CMP; 8078 if (CMP_GE(_flag_a, _flag_b)) goto L_3A0063BE; /* 0x3A006394: jge 0x3a0063be */ 8079 L_3A006396: 8080 PUSH32(esp, eax); /* 0x3A006396: push eax */ 8081 PUSH32(esp, esi); /* 0x3A006397: push esi */ 8082 PUSH32(esp, ebx); /* 0x3A006398: push ebx */ 8083 edx = ebp + 0xC; /* 0x3A006399: lea edx, [ebp + 0xc] */ 8084 PUSH32(esp, edx); /* 0x3A00639C: push edx */ 8085 ecx = edi; /* 0x3A00639D: mov ecx, edi */ 8086 RECOMP_ICALL(0x3A006E80u); /* 0x3A00639F: call 0x3a006e80 */ /* not lifted */ 8087 RECOMP_FLAGS_IN(); 8088 ecx = MEM32(eax); /* 0x3A0063A4: mov ecx, dword ptr [eax] */ 8089 eax = MEM32(ebp + 0x8); /* 0x3A0063A6: mov eax, dword ptr [ebp + 8] */ 8090 edi = POP32_VAL(esp); /* 0x3A0063A9: pop edi */ 8091 MEM32(eax) = ecx; /* 0x3A0063AA: mov dword ptr [eax], ecx */ 8092 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3A0063AC: mov byte ptr [ebp - 8], 1 */ 8093 ecx = MEM32(ebp + (-0x8)); /* 0x3A0063B0: mov ecx, dword ptr [ebp - 8] */ 8094 esi = POP32_VAL(esp); /* 0x3A0063B3: pop esi */ 8095 MEM32(eax + 0x4) = ecx; /* 0x3A0063B4: mov dword ptr [eax + 4], ecx */ 8096 ebx = POP32_VAL(esp); /* 0x3A0063B7: pop ebx */ 8097 esp = ebp; /* 0x3A0063B8: mov esp, ebp */ 8098 ebp = POP32_VAL(esp); /* 0x3A0063BA: pop ebp */ 8099 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A0063BB: ret 8 */ 8100 L_3A0063BE: 8101 eax = MEM32(ebp + 0x8); /* 0x3A0063BE: mov eax, dword ptr [ebp + 8] */ 8102 edi = POP32_VAL(esp); /* 0x3A0063C1: pop edi */ 8103 MEM32(eax) = edx; /* 0x3A0063C2: mov dword ptr [eax], edx */ 8104 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x3A0063C4: mov byte ptr [ebp - 8], 0 */ 8105 edx = MEM32(ebp + (-0x8)); /* 0x3A0063C8: mov edx, dword ptr [ebp - 8] */ 8106 esi = POP32_VAL(esp); /* 0x3A0063CB: pop esi */ 8107 MEM32(eax + 0x4) = edx; /* 0x3A0063CC: mov dword ptr [eax + 4], edx */ 8108 ebx = POP32_VAL(esp); /* 0x3A0063CF: pop ebx */ 8109 esp = ebp; /* 0x3A0063D0: mov esp, ebp */ 8110 ebp = POP32_VAL(esp); /* 0x3A0063D2: pop ebp */ 8111 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A0063D3: ret 8 */ 8112 RECOMP_REGS_OUT(); 8113 } 8114 8115 void sub_3A0063E0(void) { 8116 int _fpu_cmp = 0; 8117 uint32_t _cf = 0; 8118 int _df = 1; 8119 uint32_t _flag_k = FK_NONE; 8120 uint32_t _flag_a = 0, _flag_b = 0; 8121 uint32_t _itail_tgt = 0; 8122 RECOMP_REGS_LOCALS 8123 RECOMP_ENTER(0x3A0063E0u); 8124 8125 L_3A0063E0: 8126 PUSH32(esp, ebp); /* 0x3A0063E0: push ebp */ 8127 ebp = esp; /* 0x3A0063E1: mov ebp, esp */ 8128 PUSH32(esp, ecx); /* 0x3A0063E3: push ecx */ 8129 PUSH32(esp, ebx); /* 0x3A0063E4: push ebx */ 8130 PUSH32(esp, esi); /* 0x3A0063E5: push esi */ 8131 esi = MEM32(ebp + 0xC); /* 0x3A0063E6: mov esi, dword ptr [ebp + 0xc] */ 8132 PUSH32(esp, edi); /* 0x3A0063E9: push edi */ 8133 edi = ecx; /* 0x3A0063EA: mov edi, ecx */ 8134 ecx = ebp + 0xC; /* 0x3A0063EC: lea ecx, [ebp + 0xc] */ 8135 RECOMP_ICALL(0x3A005C60u); /* 0x3A0063EF: call 0x3a005c60 */ /* not lifted */ 8136 RECOMP_FLAGS_IN(); 8137 edx = MEM32(esi); /* 0x3A0063F4: mov edx, dword ptr [esi] */ 8138 eax = MEM32(edi + 0x8); /* 0x3A0063F6: mov eax, dword ptr [edi + 8] */ 8139 /* cmp edx, eax */ /* 0x3A0063F9: cmp edx, eax */ 8140 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8142 _flag_k = FK_CMP; 8143 MEM32(ebp + (-0x4)) = esi; /* 0x3A0063FB: mov dword ptr [ebp - 4], esi */ 8144 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006420; /* 0x3A0063FE: jne 0x3a006420 */ 8145 L_3A006400: 8146 eax = MEM32(esi + 0x8); /* 0x3A006400: mov eax, dword ptr [esi + 8] */ 8147 L_3A006403: 8148 ecx = MEM32(ebp + (-0x4)); /* 0x3A006403: mov ecx, dword ptr [ebp - 4] */ 8149 edx = MEM32(ecx + 0x4); /* 0x3A006406: mov edx, dword ptr [ecx + 4] */ 8150 MEM32(eax + 0x4) = edx; /* 0x3A006409: mov dword ptr [eax + 4], edx */ 8151 ecx = MEM32(edi + 0x4); /* 0x3A00640C: mov ecx, dword ptr [edi + 4] */ 8152 /* cmp MEM32(ecx + 0x4), esi */ /* 0x3A00640F: cmp dword ptr [ecx + 4], esi */ 8153 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 8154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8155 _flag_k = FK_CMP; 8156 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0064A3; /* 0x3A006412: jne 0x3a0064a3 */ 8157 L_3A006418: 8158 MEM32(ecx + 0x4) = eax; /* 0x3A006418: mov dword ptr [ecx + 4], eax */ 8159 goto L_3A0064B1; /* 0x3A00641B: jmp 0x3a0064b1 */ 8160 L_3A006420: 8161 ecx = MEM32(esi + 0x8); /* 0x3A006420: mov ecx, dword ptr [esi + 8] */ 8162 /* cmp ecx, eax */ /* 0x3A006423: cmp ecx, eax */ 8163 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8165 _flag_k = FK_CMP; 8166 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00642B; /* 0x3A006425: jne 0x3a00642b */ 8167 L_3A006427: 8168 eax = edx; /* 0x3A006427: mov eax, edx */ 8169 RECOMP_BACKEDGE(); 8170 goto L_3A006403; /* 0x3A006429: jmp 0x3a006403 */ 8171 L_3A00642B: 8172 eax = MEM32(ecx); /* 0x3A00642B: mov eax, dword ptr [ecx] */ 8173 SET_LO8(ebx, MEM8(eax + 0x29)); /* 0x3A00642D: mov bl, byte ptr [eax + 0x29] */ 8174 /* test LO8(ebx), LO8(ebx) */ /* 0x3A006430: test bl, bl */ 8175 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8176 _cf = 0; 8177 _flag_k = FK_NARROW(FK_TEST, 24); 8178 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00643F; /* 0x3A006432: jne 0x3a00643f */ 8179 L_3A006434: 8180 ecx = eax; /* 0x3A006434: mov ecx, eax */ 8181 eax = MEM32(ecx); /* 0x3A006436: mov eax, dword ptr [ecx] */ 8182 SET_LO8(ebx, MEM8(eax + 0x29)); /* 0x3A006438: mov bl, byte ptr [eax + 0x29] */ 8183 /* test LO8(ebx), LO8(ebx) */ /* 0x3A00643B: test bl, bl */ 8184 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8185 _cf = 0; 8186 _flag_k = FK_NARROW(FK_TEST, 24); 8187 RECOMP_BACKEDGE(); 8188 if (TEST_Z(_flag_a, _flag_b)) goto L_3A006434; /* 0x3A00643D: je 0x3a006434 */ 8189 L_3A00643F: 8190 /* cmp ecx, esi */ /* 0x3A00643F: cmp ecx, esi */ 8191 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 8192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8193 _flag_k = FK_CMP; 8194 eax = MEM32(ecx + 0x8); /* 0x3A006441: mov eax, dword ptr [ecx + 8] */ 8195 MEM32(ebp + (-0x4)) = ecx; /* 0x3A006444: mov dword ptr [ebp - 4], ecx */ 8196 RECOMP_BACKEDGE(); 8197 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006403; /* 0x3A006447: je 0x3a006403 */ 8198 L_3A006449: 8199 MEM32(edx + 0x4) = ecx; /* 0x3A006449: mov dword ptr [edx + 4], ecx */ 8200 edx = MEM32(esi); /* 0x3A00644C: mov edx, dword ptr [esi] */ 8201 MEM32(ecx) = edx; /* 0x3A00644E: mov dword ptr [ecx], edx */ 8202 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006450: cmp ecx, dword ptr [esi + 8] */ 8203 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8205 _flag_k = FK_CMP; 8206 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00645A; /* 0x3A006453: jne 0x3a00645a */ 8207 L_3A006455: 8208 MEM32(eax + 0x4) = ecx; /* 0x3A006455: mov dword ptr [eax + 4], ecx */ 8209 goto L_3A006471; /* 0x3A006458: jmp 0x3a006471 */ 8210 L_3A00645A: 8211 edx = MEM32(ecx + 0x4); /* 0x3A00645A: mov edx, dword ptr [ecx + 4] */ 8212 MEM32(eax + 0x4) = edx; /* 0x3A00645D: mov dword ptr [eax + 4], edx */ 8213 edx = MEM32(ecx + 0x4); /* 0x3A006460: mov edx, dword ptr [ecx + 4] */ 8214 MEM32(edx) = eax; /* 0x3A006463: mov dword ptr [edx], eax */ 8215 edx = MEM32(esi + 0x8); /* 0x3A006465: mov edx, dword ptr [esi + 8] */ 8216 MEM32(ecx + 0x8) = edx; /* 0x3A006468: mov dword ptr [ecx + 8], edx */ 8217 edx = MEM32(esi + 0x8); /* 0x3A00646B: mov edx, dword ptr [esi + 8] */ 8218 MEM32(edx + 0x4) = ecx; /* 0x3A00646E: mov dword ptr [edx + 4], ecx */ 8219 L_3A006471: 8220 edx = MEM32(edi + 0x4); /* 0x3A006471: mov edx, dword ptr [edi + 4] */ 8221 /* cmp MEM32(edx + 0x4), esi */ /* 0x3A006474: cmp dword ptr [edx + 4], esi */ 8222 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 8223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8224 _flag_k = FK_CMP; 8225 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00647E; /* 0x3A006477: jne 0x3a00647e */ 8226 L_3A006479: 8227 MEM32(edx + 0x4) = ecx; /* 0x3A006479: mov dword ptr [edx + 4], ecx */ 8228 goto L_3A00648C; /* 0x3A00647C: jmp 0x3a00648c */ 8229 L_3A00647E: 8230 edx = MEM32(esi + 0x4); /* 0x3A00647E: mov edx, dword ptr [esi + 4] */ 8231 /* cmp MEM32(edx), esi */ /* 0x3A006481: cmp dword ptr [edx], esi */ 8232 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 8233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8234 _flag_k = FK_CMP; 8235 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006489; /* 0x3A006483: jne 0x3a006489 */ 8236 L_3A006485: 8237 MEM32(edx) = ecx; /* 0x3A006485: mov dword ptr [edx], ecx */ 8238 goto L_3A00648C; /* 0x3A006487: jmp 0x3a00648c */ 8239 L_3A006489: 8240 MEM32(edx + 0x8) = ecx; /* 0x3A006489: mov dword ptr [edx + 8], ecx */ 8241 L_3A00648C: 8242 edx = MEM32(esi + 0x4); /* 0x3A00648C: mov edx, dword ptr [esi + 4] */ 8243 MEM32(ecx + 0x4) = edx; /* 0x3A00648F: mov dword ptr [ecx + 4], edx */ 8244 SET_LO8(ebx, MEM8(esi + 0x28)); /* 0x3A006492: mov bl, byte ptr [esi + 0x28] */ 8245 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006495: mov dl, byte ptr [ecx + 0x28] */ 8246 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006498: mov byte ptr [ecx + 0x28], bl */ 8247 MEM8(esi + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00649B: mov byte ptr [esi + 0x28], dl */ 8248 MEM32(ebp + (-0x4)) = esi; /* 0x3A00649E: mov dword ptr [ebp - 4], esi */ 8249 goto L_3A006508; /* 0x3A0064A1: jmp 0x3a006508 */ 8250 L_3A0064A3: 8251 ecx = MEM32(esi + 0x4); /* 0x3A0064A3: mov ecx, dword ptr [esi + 4] */ 8252 /* cmp MEM32(ecx), esi */ /* 0x3A0064A6: cmp dword ptr [ecx], esi */ 8253 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 8254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8255 _flag_k = FK_CMP; 8256 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0064AE; /* 0x3A0064A8: jne 0x3a0064ae */ 8257 L_3A0064AA: 8258 MEM32(ecx) = eax; /* 0x3A0064AA: mov dword ptr [ecx], eax */ 8259 goto L_3A0064B1; /* 0x3A0064AC: jmp 0x3a0064b1 */ 8260 L_3A0064AE: 8261 MEM32(ecx + 0x8) = eax; /* 0x3A0064AE: mov dword ptr [ecx + 8], eax */ 8262 L_3A0064B1: 8263 ebx = MEM32(edi + 0x4); /* 0x3A0064B1: mov ebx, dword ptr [edi + 4] */ 8264 /* cmp MEM32(ebx), esi */ /* 0x3A0064B4: cmp dword ptr [ebx], esi */ 8265 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 8266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8267 _flag_k = FK_CMP; 8268 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0064DB; /* 0x3A0064B6: jne 0x3a0064db */ 8269 L_3A0064B8: 8270 ecx = MEM32(esi + 0x8); /* 0x3A0064B8: mov ecx, dword ptr [esi + 8] */ 8271 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3A0064BB: cmp ecx, dword ptr [edi + 8] */ 8272 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8274 _flag_k = FK_CMP; 8275 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0064C5; /* 0x3A0064BE: jne 0x3a0064c5 */ 8276 L_3A0064C0: 8277 edx = MEM32(esi + 0x4); /* 0x3A0064C0: mov edx, dword ptr [esi + 4] */ 8278 goto L_3A0064D9; /* 0x3A0064C3: jmp 0x3a0064d9 */ 8279 L_3A0064C5: 8280 ecx = MEM32(eax); /* 0x3A0064C5: mov ecx, dword ptr [eax] */ 8281 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3A0064C7: cmp byte ptr [ecx + 0x29], 0 */ 8282 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 8283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8284 _flag_k = FK_NARROW(FK_CMP, 24); 8285 edx = eax; /* 0x3A0064CB: mov edx, eax */ 8286 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0064D9; /* 0x3A0064CD: jne 0x3a0064d9 */ 8287 L_3A0064CF: 8288 edx = ecx; /* 0x3A0064CF: mov edx, ecx */ 8289 ecx = MEM32(edx); /* 0x3A0064D1: mov ecx, dword ptr [edx] */ 8290 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3A0064D3: cmp byte ptr [ecx + 0x29], 0 */ 8291 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 8292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8293 _flag_k = FK_NARROW(FK_CMP, 24); 8294 RECOMP_BACKEDGE(); 8295 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0064CF; /* 0x3A0064D7: je 0x3a0064cf */ 8296 L_3A0064D9: 8297 MEM32(ebx) = edx; /* 0x3A0064D9: mov dword ptr [ebx], edx */ 8298 L_3A0064DB: 8299 ebx = MEM32(edi + 0x4); /* 0x3A0064DB: mov ebx, dword ptr [edi + 4] */ 8300 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3A0064DE: cmp dword ptr [ebx + 8], esi */ 8301 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 8302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8303 _flag_k = FK_CMP; 8304 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006508; /* 0x3A0064E1: jne 0x3a006508 */ 8305 L_3A0064E3: 8306 ecx = MEM32(esi); /* 0x3A0064E3: mov ecx, dword ptr [esi] */ 8307 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3A0064E5: cmp ecx, dword ptr [edi + 8] */ 8308 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8310 _flag_k = FK_CMP; 8311 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0064EF; /* 0x3A0064E8: jne 0x3a0064ef */ 8312 L_3A0064EA: 8313 edx = MEM32(esi + 0x4); /* 0x3A0064EA: mov edx, dword ptr [esi + 4] */ 8314 goto L_3A006505; /* 0x3A0064ED: jmp 0x3a006505 */ 8315 L_3A0064EF: 8316 ecx = MEM32(eax + 0x8); /* 0x3A0064EF: mov ecx, dword ptr [eax + 8] */ 8317 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3A0064F2: cmp byte ptr [ecx + 0x29], 0 */ 8318 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 8319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8320 _flag_k = FK_NARROW(FK_CMP, 24); 8321 edx = eax; /* 0x3A0064F6: mov edx, eax */ 8322 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006505; /* 0x3A0064F8: jne 0x3a006505 */ 8323 L_3A0064FA: 8324 edx = ecx; /* 0x3A0064FA: mov edx, ecx */ 8325 ecx = MEM32(edx + 0x8); /* 0x3A0064FC: mov ecx, dword ptr [edx + 8] */ 8326 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3A0064FF: cmp byte ptr [ecx + 0x29], 0 */ 8327 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 8328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8329 _flag_k = FK_NARROW(FK_CMP, 24); 8330 RECOMP_BACKEDGE(); 8331 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0064FA; /* 0x3A006503: je 0x3a0064fa */ 8332 L_3A006505: 8333 MEM32(ebx + 0x8) = edx; /* 0x3A006505: mov dword ptr [ebx + 8], edx */ 8334 L_3A006508: 8335 ecx = MEM32(ebp + (-0x4)); /* 0x3A006508: mov ecx, dword ptr [ebp - 4] */ 8336 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A00650B: mov dl, byte ptr [ecx + 0x28] */ 8337 SET_LO8(ebx, 1); /* 0x3A00650E: mov bl, 1 */ 8338 /* cmp LO8(edx), LO8(ebx) */ /* 0x3A006510: cmp dl, bl */ 8339 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8341 _flag_k = FK_NARROW(FK_CMP, 24); 8342 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006775; /* 0x3A006512: jne 0x3a006775 */ 8343 L_3A006518: 8344 edx = MEM32(edi + 0x4); /* 0x3A006518: mov edx, dword ptr [edi + 4] */ 8345 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3A00651B: cmp eax, dword ptr [edx + 4] */ 8346 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8348 _flag_k = FK_CMP; 8349 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A00651E: je 0x3a006772 */ 8350 L_3A006524: 8351 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3A006524: cmp byte ptr [eax + 0x28], bl */ 8352 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8354 _flag_k = FK_NARROW(FK_CMP, 24); 8355 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A006527: jne 0x3a006772 */ 8356 L_3A00652D: 8357 edx = MEM32(eax + 0x4); /* 0x3A00652D: mov edx, dword ptr [eax + 4] */ 8358 ecx = MEM32(edx); /* 0x3A006530: mov ecx, dword ptr [edx] */ 8359 /* cmp eax, ecx */ /* 0x3A006532: cmp eax, ecx */ 8360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8362 _flag_k = FK_CMP; 8363 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065A4; /* 0x3A006534: jne 0x3a0065a4 */ 8364 L_3A006536: 8365 ecx = MEM32(edx + 0x8); /* 0x3A006536: mov ecx, dword ptr [edx + 8] */ 8366 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006539: mov dl, byte ptr [ecx + 0x28] */ 8367 /* test LO8(edx), LO8(edx) */ /* 0x3A00653C: test dl, dl */ 8368 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8369 _cf = 0; 8370 _flag_k = FK_NARROW(FK_TEST, 24); 8371 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00658B; /* 0x3A00653E: jne 0x3a00658b */ 8372 L_3A006540: 8373 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006540: mov byte ptr [ecx + 0x28], bl */ 8374 ecx = MEM32(eax + 0x4); /* 0x3A006543: mov ecx, dword ptr [eax + 4] */ 8375 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006546: mov byte ptr [ecx + 0x28], 0 */ 8376 ecx = MEM32(eax + 0x4); /* 0x3A00654A: mov ecx, dword ptr [eax + 4] */ 8377 edx = MEM32(ecx + 0x8); /* 0x3A00654D: mov edx, dword ptr [ecx + 8] */ 8378 esi = MEM32(edx); /* 0x3A006550: mov esi, dword ptr [edx] */ 8379 MEM32(ecx + 0x8) = esi; /* 0x3A006552: mov dword ptr [ecx + 8], esi */ 8380 esi = MEM32(edx); /* 0x3A006555: mov esi, dword ptr [edx] */ 8381 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006557: cmp esi, dword ptr [edi + 8] */ 8382 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8384 _flag_k = FK_CMP; 8385 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00655F; /* 0x3A00655A: je 0x3a00655f */ 8386 L_3A00655C: 8387 MEM32(esi + 0x4) = ecx; /* 0x3A00655C: mov dword ptr [esi + 4], ecx */ 8388 L_3A00655F: 8389 esi = MEM32(ecx + 0x4); /* 0x3A00655F: mov esi, dword ptr [ecx + 4] */ 8390 MEM32(edx + 0x4) = esi; /* 0x3A006562: mov dword ptr [edx + 4], esi */ 8391 esi = MEM32(edi + 0x4); /* 0x3A006565: mov esi, dword ptr [edi + 4] */ 8392 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006568: cmp ecx, dword ptr [esi + 4] */ 8393 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8395 _flag_k = FK_CMP; 8396 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006572; /* 0x3A00656B: jne 0x3a006572 */ 8397 L_3A00656D: 8398 MEM32(esi + 0x4) = edx; /* 0x3A00656D: mov dword ptr [esi + 4], edx */ 8399 goto L_3A006580; /* 0x3A006570: jmp 0x3a006580 */ 8400 L_3A006572: 8401 esi = MEM32(ecx + 0x4); /* 0x3A006572: mov esi, dword ptr [ecx + 4] */ 8402 /* cmp ecx, MEM32(esi) */ /* 0x3A006575: cmp ecx, dword ptr [esi] */ 8403 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8405 _flag_k = FK_CMP; 8406 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00657D; /* 0x3A006577: jne 0x3a00657d */ 8407 L_3A006579: 8408 MEM32(esi) = edx; /* 0x3A006579: mov dword ptr [esi], edx */ 8409 goto L_3A006580; /* 0x3A00657B: jmp 0x3a006580 */ 8410 L_3A00657D: 8411 MEM32(esi + 0x8) = edx; /* 0x3A00657D: mov dword ptr [esi + 8], edx */ 8412 L_3A006580: 8413 MEM32(edx) = ecx; /* 0x3A006580: mov dword ptr [edx], ecx */ 8414 MEM32(ecx + 0x4) = edx; /* 0x3A006582: mov dword ptr [ecx + 4], edx */ 8415 edx = MEM32(eax + 0x4); /* 0x3A006585: mov edx, dword ptr [eax + 4] */ 8416 ecx = MEM32(edx + 0x8); /* 0x3A006588: mov ecx, dword ptr [edx + 8] */ 8417 L_3A00658B: 8418 edx = MEM32(ecx); /* 0x3A00658B: mov edx, dword ptr [ecx] */ 8419 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A00658D: cmp byte ptr [edx + 0x28], bl */ 8420 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8422 _flag_k = FK_NARROW(FK_CMP, 24); 8423 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A006590: jne 0x3a006626 */ 8424 L_3A006596: 8425 edx = MEM32(ecx + 0x8); /* 0x3A006596: mov edx, dword ptr [ecx + 8] */ 8426 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006599: cmp byte ptr [edx + 0x28], bl */ 8427 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8429 _flag_k = FK_NARROW(FK_CMP, 24); 8430 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A00659C: jne 0x3a006626 */ 8431 L_3A0065A2: 8432 goto L_3A00660E; /* 0x3A0065A2: jmp 0x3a00660e */ 8433 L_3A0065A4: 8434 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0065A4: mov dl, byte ptr [ecx + 0x28] */ 8435 /* test LO8(edx), LO8(edx) */ /* 0x3A0065A7: test dl, dl */ 8436 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8437 _cf = 0; 8438 _flag_k = FK_NARROW(FK_TEST, 24); 8439 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0065F7; /* 0x3A0065A9: jne 0x3a0065f7 */ 8440 L_3A0065AB: 8441 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0065AB: mov byte ptr [ecx + 0x28], bl */ 8442 ecx = MEM32(eax + 0x4); /* 0x3A0065AE: mov ecx, dword ptr [eax + 4] */ 8443 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0065B1: mov byte ptr [ecx + 0x28], 0 */ 8444 ecx = MEM32(eax + 0x4); /* 0x3A0065B5: mov ecx, dword ptr [eax + 4] */ 8445 edx = MEM32(ecx); /* 0x3A0065B8: mov edx, dword ptr [ecx] */ 8446 esi = MEM32(edx + 0x8); /* 0x3A0065BA: mov esi, dword ptr [edx + 8] */ 8447 MEM32(ecx) = esi; /* 0x3A0065BD: mov dword ptr [ecx], esi */ 8448 esi = MEM32(edx + 0x8); /* 0x3A0065BF: mov esi, dword ptr [edx + 8] */ 8449 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0065C2: cmp esi, dword ptr [edi + 8] */ 8450 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8452 _flag_k = FK_CMP; 8453 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0065CA; /* 0x3A0065C5: je 0x3a0065ca */ 8454 L_3A0065C7: 8455 MEM32(esi + 0x4) = ecx; /* 0x3A0065C7: mov dword ptr [esi + 4], ecx */ 8456 L_3A0065CA: 8457 esi = MEM32(ecx + 0x4); /* 0x3A0065CA: mov esi, dword ptr [ecx + 4] */ 8458 MEM32(edx + 0x4) = esi; /* 0x3A0065CD: mov dword ptr [edx + 4], esi */ 8459 esi = MEM32(edi + 0x4); /* 0x3A0065D0: mov esi, dword ptr [edi + 4] */ 8460 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0065D3: cmp ecx, dword ptr [esi + 4] */ 8461 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8463 _flag_k = FK_CMP; 8464 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065DD; /* 0x3A0065D6: jne 0x3a0065dd */ 8465 L_3A0065D8: 8466 MEM32(esi + 0x4) = edx; /* 0x3A0065D8: mov dword ptr [esi + 4], edx */ 8467 goto L_3A0065EC; /* 0x3A0065DB: jmp 0x3a0065ec */ 8468 L_3A0065DD: 8469 esi = MEM32(ecx + 0x4); /* 0x3A0065DD: mov esi, dword ptr [ecx + 4] */ 8470 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0065E0: cmp ecx, dword ptr [esi + 8] */ 8471 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8473 _flag_k = FK_CMP; 8474 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065EA; /* 0x3A0065E3: jne 0x3a0065ea */ 8475 L_3A0065E5: 8476 MEM32(esi + 0x8) = edx; /* 0x3A0065E5: mov dword ptr [esi + 8], edx */ 8477 goto L_3A0065EC; /* 0x3A0065E8: jmp 0x3a0065ec */ 8478 L_3A0065EA: 8479 MEM32(esi) = edx; /* 0x3A0065EA: mov dword ptr [esi], edx */ 8480 L_3A0065EC: 8481 MEM32(edx + 0x8) = ecx; /* 0x3A0065EC: mov dword ptr [edx + 8], ecx */ 8482 MEM32(ecx + 0x4) = edx; /* 0x3A0065EF: mov dword ptr [ecx + 4], edx */ 8483 edx = MEM32(eax + 0x4); /* 0x3A0065F2: mov edx, dword ptr [eax + 4] */ 8484 ecx = MEM32(edx); /* 0x3A0065F5: mov ecx, dword ptr [edx] */ 8485 L_3A0065F7: 8486 edx = MEM32(ecx + 0x8); /* 0x3A0065F7: mov edx, dword ptr [ecx + 8] */ 8487 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0065FA: cmp byte ptr [edx + 0x28], bl */ 8488 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8490 _flag_k = FK_NARROW(FK_CMP, 24); 8491 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A0065FD: jne 0x3a0066d3 */ 8492 L_3A006603: 8493 edx = MEM32(ecx); /* 0x3A006603: mov edx, dword ptr [ecx] */ 8494 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006605: cmp byte ptr [edx + 0x28], bl */ 8495 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8497 _flag_k = FK_NARROW(FK_CMP, 24); 8498 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A006608: jne 0x3a0066d3 */ 8499 L_3A00660E: 8500 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A00660E: mov byte ptr [ecx + 0x28], 0 */ 8501 ecx = MEM32(edi + 0x4); /* 0x3A006612: mov ecx, dword ptr [edi + 4] */ 8502 eax = MEM32(eax + 0x4); /* 0x3A006615: mov eax, dword ptr [eax + 4] */ 8503 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006618: cmp eax, dword ptr [ecx + 4] */ 8504 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8506 _flag_k = FK_CMP; 8507 RECOMP_BACKEDGE(); 8508 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006524; /* 0x3A00661B: jne 0x3a006524 */ 8509 L_3A006621: 8510 goto L_3A006772; /* 0x3A006621: jmp 0x3a006772 */ 8511 L_3A006626: 8512 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 8513 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 8514 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8516 _flag_k = FK_NARROW(FK_CMP, 24); 8517 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 8518 L_3A00662E: 8519 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 8520 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 8521 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 8522 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 8523 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 8524 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 8525 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 8526 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 8527 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8529 _flag_k = FK_CMP; 8530 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 8531 L_3A006646: 8532 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 8533 L_3A006649: 8534 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 8535 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 8536 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 8537 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 8538 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8540 _flag_k = FK_CMP; 8541 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 8542 L_3A006657: 8543 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 8544 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 8545 L_3A00665C: 8546 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 8547 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 8548 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8550 _flag_k = FK_CMP; 8551 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 8552 L_3A006664: 8553 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 8554 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 8555 L_3A006669: 8556 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 8557 L_3A00666B: 8558 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 8559 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 8560 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 8561 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 8562 L_3A006677: 8563 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 8564 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 8565 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 8566 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 8567 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 8568 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 8569 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 8570 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 8571 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 8572 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 8573 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 8574 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 8575 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 8576 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8578 _flag_k = FK_CMP; 8579 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 8580 L_3A00669E: 8581 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 8582 L_3A0066A1: 8583 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 8584 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 8585 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 8586 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 8587 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8589 _flag_k = FK_CMP; 8590 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 8591 L_3A0066AF: 8592 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 8593 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 8594 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 8595 L_3A0066B9: 8596 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 8597 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 8598 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8600 _flag_k = FK_CMP; 8601 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 8602 L_3A0066C0: 8603 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 8604 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 8605 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 8606 L_3A0066C9: 8607 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 8608 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 8609 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 8610 L_3A0066D3: 8611 edx = MEM32(ecx); /* 0x3A0066D3: mov edx, dword ptr [ecx] */ 8612 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0066D5: cmp byte ptr [edx + 0x28], bl */ 8613 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8615 _flag_k = FK_NARROW(FK_CMP, 24); 8616 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006721; /* 0x3A0066D8: jne 0x3a006721 */ 8617 L_3A0066DA: 8618 edx = MEM32(ecx + 0x8); /* 0x3A0066DA: mov edx, dword ptr [ecx + 8] */ 8619 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0066DD: mov byte ptr [edx + 0x28], bl */ 8620 edx = MEM32(ecx + 0x8); /* 0x3A0066E0: mov edx, dword ptr [ecx + 8] */ 8621 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0066E3: mov byte ptr [ecx + 0x28], 0 */ 8622 esi = MEM32(edx); /* 0x3A0066E7: mov esi, dword ptr [edx] */ 8623 MEM32(ecx + 0x8) = esi; /* 0x3A0066E9: mov dword ptr [ecx + 8], esi */ 8624 esi = MEM32(edx); /* 0x3A0066EC: mov esi, dword ptr [edx] */ 8625 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0066EE: cmp esi, dword ptr [edi + 8] */ 8626 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8628 _flag_k = FK_CMP; 8629 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066F6; /* 0x3A0066F1: je 0x3a0066f6 */ 8630 L_3A0066F3: 8631 MEM32(esi + 0x4) = ecx; /* 0x3A0066F3: mov dword ptr [esi + 4], ecx */ 8632 L_3A0066F6: 8633 esi = MEM32(ecx + 0x4); /* 0x3A0066F6: mov esi, dword ptr [ecx + 4] */ 8634 MEM32(edx + 0x4) = esi; /* 0x3A0066F9: mov dword ptr [edx + 4], esi */ 8635 esi = MEM32(edi + 0x4); /* 0x3A0066FC: mov esi, dword ptr [edi + 4] */ 8636 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066FF: cmp ecx, dword ptr [esi + 4] */ 8637 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8639 _flag_k = FK_CMP; 8640 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006709; /* 0x3A006702: jne 0x3a006709 */ 8641 L_3A006704: 8642 MEM32(esi + 0x4) = edx; /* 0x3A006704: mov dword ptr [esi + 4], edx */ 8643 goto L_3A006717; /* 0x3A006707: jmp 0x3a006717 */ 8644 L_3A006709: 8645 esi = MEM32(ecx + 0x4); /* 0x3A006709: mov esi, dword ptr [ecx + 4] */ 8646 /* cmp ecx, MEM32(esi) */ /* 0x3A00670C: cmp ecx, dword ptr [esi] */ 8647 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8649 _flag_k = FK_CMP; 8650 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006714; /* 0x3A00670E: jne 0x3a006714 */ 8651 L_3A006710: 8652 MEM32(esi) = edx; /* 0x3A006710: mov dword ptr [esi], edx */ 8653 goto L_3A006717; /* 0x3A006712: jmp 0x3a006717 */ 8654 L_3A006714: 8655 MEM32(esi + 0x8) = edx; /* 0x3A006714: mov dword ptr [esi + 8], edx */ 8656 L_3A006717: 8657 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 8658 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 8659 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 8660 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 8661 L_3A006721: 8662 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 8663 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 8664 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 8665 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 8666 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 8667 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 8668 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 8669 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 8670 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 8671 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 8672 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 8673 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 8674 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 8675 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8677 _flag_k = FK_CMP; 8678 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 8679 L_3A006747: 8680 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 8681 L_3A00674A: 8682 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 8683 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 8684 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 8685 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 8686 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8688 _flag_k = FK_CMP; 8689 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 8690 L_3A006758: 8691 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 8692 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 8693 L_3A00675D: 8694 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 8695 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 8696 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8698 _flag_k = FK_CMP; 8699 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 8700 L_3A006765: 8701 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 8702 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 8703 L_3A00676A: 8704 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 8705 L_3A00676C: 8706 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 8707 L_3A00676F: 8708 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 8709 L_3A006772: 8710 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 8711 L_3A006775: 8712 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 8713 PUSH32(esp, edx); /* 0x3A006778: push edx */ 8714 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 8715 RECOMP_FLAGS_IN(); 8716 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 8717 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 8718 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8720 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 8721 _flag_k = FK_ADD; 8722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8723 eax = eax - 1; /* 0x3A006787: dec eax */ 8724 _flag_k = FK_DEC; 8725 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 8726 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 8727 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 8728 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 8729 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 8730 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 8731 esp = ebp; /* 0x3A006793: mov esp, ebp */ 8732 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 8733 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 8734 RECOMP_REGS_OUT(); 8735 } 8736 8737 void sub_3A0064B1(void) { 8738 int _fpu_cmp = 0; 8739 uint32_t _cf = 0; 8740 int _df = 1; 8741 uint32_t _flag_k = FK_NONE; 8742 uint32_t _flag_a = 0, _flag_b = 0; 8743 uint32_t _itail_tgt = 0; 8744 RECOMP_REGS_LOCALS 8745 RECOMP_ENTER(0x3A0064B1u); 8746 8747 L_3A0064B1: 8748 ebx = MEM32(edi + 0x4); /* 0x3A0064B1: mov ebx, dword ptr [edi + 4] */ 8749 /* cmp MEM32(ebx), esi */ /* 0x3A0064B4: cmp dword ptr [ebx], esi */ 8750 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 8751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8752 _flag_k = FK_CMP; 8753 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0064DB; /* 0x3A0064B6: jne 0x3a0064db */ 8754 L_3A0064B8: 8755 ecx = MEM32(esi + 0x8); /* 0x3A0064B8: mov ecx, dword ptr [esi + 8] */ 8756 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3A0064BB: cmp ecx, dword ptr [edi + 8] */ 8757 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8759 _flag_k = FK_CMP; 8760 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0064C5; /* 0x3A0064BE: jne 0x3a0064c5 */ 8761 L_3A0064C0: 8762 edx = MEM32(esi + 0x4); /* 0x3A0064C0: mov edx, dword ptr [esi + 4] */ 8763 goto L_3A0064D9; /* 0x3A0064C3: jmp 0x3a0064d9 */ 8764 L_3A0064C5: 8765 ecx = MEM32(eax); /* 0x3A0064C5: mov ecx, dword ptr [eax] */ 8766 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3A0064C7: cmp byte ptr [ecx + 0x29], 0 */ 8767 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 8768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8769 _flag_k = FK_NARROW(FK_CMP, 24); 8770 edx = eax; /* 0x3A0064CB: mov edx, eax */ 8771 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0064D9; /* 0x3A0064CD: jne 0x3a0064d9 */ 8772 L_3A0064CF: 8773 edx = ecx; /* 0x3A0064CF: mov edx, ecx */ 8774 ecx = MEM32(edx); /* 0x3A0064D1: mov ecx, dword ptr [edx] */ 8775 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3A0064D3: cmp byte ptr [ecx + 0x29], 0 */ 8776 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 8777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8778 _flag_k = FK_NARROW(FK_CMP, 24); 8779 RECOMP_BACKEDGE(); 8780 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0064CF; /* 0x3A0064D7: je 0x3a0064cf */ 8781 L_3A0064D9: 8782 MEM32(ebx) = edx; /* 0x3A0064D9: mov dword ptr [ebx], edx */ 8783 L_3A0064DB: 8784 ebx = MEM32(edi + 0x4); /* 0x3A0064DB: mov ebx, dword ptr [edi + 4] */ 8785 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3A0064DE: cmp dword ptr [ebx + 8], esi */ 8786 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 8787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8788 _flag_k = FK_CMP; 8789 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006508; /* 0x3A0064E1: jne 0x3a006508 */ 8790 L_3A0064E3: 8791 ecx = MEM32(esi); /* 0x3A0064E3: mov ecx, dword ptr [esi] */ 8792 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3A0064E5: cmp ecx, dword ptr [edi + 8] */ 8793 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8795 _flag_k = FK_CMP; 8796 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0064EF; /* 0x3A0064E8: jne 0x3a0064ef */ 8797 L_3A0064EA: 8798 edx = MEM32(esi + 0x4); /* 0x3A0064EA: mov edx, dword ptr [esi + 4] */ 8799 goto L_3A006505; /* 0x3A0064ED: jmp 0x3a006505 */ 8800 L_3A0064EF: 8801 ecx = MEM32(eax + 0x8); /* 0x3A0064EF: mov ecx, dword ptr [eax + 8] */ 8802 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3A0064F2: cmp byte ptr [ecx + 0x29], 0 */ 8803 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 8804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8805 _flag_k = FK_NARROW(FK_CMP, 24); 8806 edx = eax; /* 0x3A0064F6: mov edx, eax */ 8807 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006505; /* 0x3A0064F8: jne 0x3a006505 */ 8808 L_3A0064FA: 8809 edx = ecx; /* 0x3A0064FA: mov edx, ecx */ 8810 ecx = MEM32(edx + 0x8); /* 0x3A0064FC: mov ecx, dword ptr [edx + 8] */ 8811 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3A0064FF: cmp byte ptr [ecx + 0x29], 0 */ 8812 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 8813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8814 _flag_k = FK_NARROW(FK_CMP, 24); 8815 RECOMP_BACKEDGE(); 8816 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0064FA; /* 0x3A006503: je 0x3a0064fa */ 8817 L_3A006505: 8818 MEM32(ebx + 0x8) = edx; /* 0x3A006505: mov dword ptr [ebx + 8], edx */ 8819 L_3A006508: 8820 ecx = MEM32(ebp + (-0x4)); /* 0x3A006508: mov ecx, dword ptr [ebp - 4] */ 8821 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A00650B: mov dl, byte ptr [ecx + 0x28] */ 8822 SET_LO8(ebx, 1); /* 0x3A00650E: mov bl, 1 */ 8823 /* cmp LO8(edx), LO8(ebx) */ /* 0x3A006510: cmp dl, bl */ 8824 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8826 _flag_k = FK_NARROW(FK_CMP, 24); 8827 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006775; /* 0x3A006512: jne 0x3a006775 */ 8828 L_3A006518: 8829 edx = MEM32(edi + 0x4); /* 0x3A006518: mov edx, dword ptr [edi + 4] */ 8830 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3A00651B: cmp eax, dword ptr [edx + 4] */ 8831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8833 _flag_k = FK_CMP; 8834 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A00651E: je 0x3a006772 */ 8835 L_3A006524: 8836 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3A006524: cmp byte ptr [eax + 0x28], bl */ 8837 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8839 _flag_k = FK_NARROW(FK_CMP, 24); 8840 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A006527: jne 0x3a006772 */ 8841 L_3A00652D: 8842 edx = MEM32(eax + 0x4); /* 0x3A00652D: mov edx, dword ptr [eax + 4] */ 8843 ecx = MEM32(edx); /* 0x3A006530: mov ecx, dword ptr [edx] */ 8844 /* cmp eax, ecx */ /* 0x3A006532: cmp eax, ecx */ 8845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8847 _flag_k = FK_CMP; 8848 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065A4; /* 0x3A006534: jne 0x3a0065a4 */ 8849 L_3A006536: 8850 ecx = MEM32(edx + 0x8); /* 0x3A006536: mov ecx, dword ptr [edx + 8] */ 8851 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006539: mov dl, byte ptr [ecx + 0x28] */ 8852 /* test LO8(edx), LO8(edx) */ /* 0x3A00653C: test dl, dl */ 8853 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8854 _cf = 0; 8855 _flag_k = FK_NARROW(FK_TEST, 24); 8856 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00658B; /* 0x3A00653E: jne 0x3a00658b */ 8857 L_3A006540: 8858 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006540: mov byte ptr [ecx + 0x28], bl */ 8859 ecx = MEM32(eax + 0x4); /* 0x3A006543: mov ecx, dword ptr [eax + 4] */ 8860 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006546: mov byte ptr [ecx + 0x28], 0 */ 8861 ecx = MEM32(eax + 0x4); /* 0x3A00654A: mov ecx, dword ptr [eax + 4] */ 8862 edx = MEM32(ecx + 0x8); /* 0x3A00654D: mov edx, dword ptr [ecx + 8] */ 8863 esi = MEM32(edx); /* 0x3A006550: mov esi, dword ptr [edx] */ 8864 MEM32(ecx + 0x8) = esi; /* 0x3A006552: mov dword ptr [ecx + 8], esi */ 8865 esi = MEM32(edx); /* 0x3A006555: mov esi, dword ptr [edx] */ 8866 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006557: cmp esi, dword ptr [edi + 8] */ 8867 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8869 _flag_k = FK_CMP; 8870 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00655F; /* 0x3A00655A: je 0x3a00655f */ 8871 L_3A00655C: 8872 MEM32(esi + 0x4) = ecx; /* 0x3A00655C: mov dword ptr [esi + 4], ecx */ 8873 L_3A00655F: 8874 esi = MEM32(ecx + 0x4); /* 0x3A00655F: mov esi, dword ptr [ecx + 4] */ 8875 MEM32(edx + 0x4) = esi; /* 0x3A006562: mov dword ptr [edx + 4], esi */ 8876 esi = MEM32(edi + 0x4); /* 0x3A006565: mov esi, dword ptr [edi + 4] */ 8877 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006568: cmp ecx, dword ptr [esi + 4] */ 8878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8880 _flag_k = FK_CMP; 8881 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006572; /* 0x3A00656B: jne 0x3a006572 */ 8882 L_3A00656D: 8883 MEM32(esi + 0x4) = edx; /* 0x3A00656D: mov dword ptr [esi + 4], edx */ 8884 goto L_3A006580; /* 0x3A006570: jmp 0x3a006580 */ 8885 L_3A006572: 8886 esi = MEM32(ecx + 0x4); /* 0x3A006572: mov esi, dword ptr [ecx + 4] */ 8887 /* cmp ecx, MEM32(esi) */ /* 0x3A006575: cmp ecx, dword ptr [esi] */ 8888 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8890 _flag_k = FK_CMP; 8891 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00657D; /* 0x3A006577: jne 0x3a00657d */ 8892 L_3A006579: 8893 MEM32(esi) = edx; /* 0x3A006579: mov dword ptr [esi], edx */ 8894 goto L_3A006580; /* 0x3A00657B: jmp 0x3a006580 */ 8895 L_3A00657D: 8896 MEM32(esi + 0x8) = edx; /* 0x3A00657D: mov dword ptr [esi + 8], edx */ 8897 L_3A006580: 8898 MEM32(edx) = ecx; /* 0x3A006580: mov dword ptr [edx], ecx */ 8899 MEM32(ecx + 0x4) = edx; /* 0x3A006582: mov dword ptr [ecx + 4], edx */ 8900 edx = MEM32(eax + 0x4); /* 0x3A006585: mov edx, dword ptr [eax + 4] */ 8901 ecx = MEM32(edx + 0x8); /* 0x3A006588: mov ecx, dword ptr [edx + 8] */ 8902 L_3A00658B: 8903 edx = MEM32(ecx); /* 0x3A00658B: mov edx, dword ptr [ecx] */ 8904 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A00658D: cmp byte ptr [edx + 0x28], bl */ 8905 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8907 _flag_k = FK_NARROW(FK_CMP, 24); 8908 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A006590: jne 0x3a006626 */ 8909 L_3A006596: 8910 edx = MEM32(ecx + 0x8); /* 0x3A006596: mov edx, dword ptr [ecx + 8] */ 8911 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006599: cmp byte ptr [edx + 0x28], bl */ 8912 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8914 _flag_k = FK_NARROW(FK_CMP, 24); 8915 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A00659C: jne 0x3a006626 */ 8916 L_3A0065A2: 8917 goto L_3A00660E; /* 0x3A0065A2: jmp 0x3a00660e */ 8918 L_3A0065A4: 8919 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0065A4: mov dl, byte ptr [ecx + 0x28] */ 8920 /* test LO8(edx), LO8(edx) */ /* 0x3A0065A7: test dl, dl */ 8921 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8922 _cf = 0; 8923 _flag_k = FK_NARROW(FK_TEST, 24); 8924 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0065F7; /* 0x3A0065A9: jne 0x3a0065f7 */ 8925 L_3A0065AB: 8926 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0065AB: mov byte ptr [ecx + 0x28], bl */ 8927 ecx = MEM32(eax + 0x4); /* 0x3A0065AE: mov ecx, dword ptr [eax + 4] */ 8928 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0065B1: mov byte ptr [ecx + 0x28], 0 */ 8929 ecx = MEM32(eax + 0x4); /* 0x3A0065B5: mov ecx, dword ptr [eax + 4] */ 8930 edx = MEM32(ecx); /* 0x3A0065B8: mov edx, dword ptr [ecx] */ 8931 esi = MEM32(edx + 0x8); /* 0x3A0065BA: mov esi, dword ptr [edx + 8] */ 8932 MEM32(ecx) = esi; /* 0x3A0065BD: mov dword ptr [ecx], esi */ 8933 esi = MEM32(edx + 0x8); /* 0x3A0065BF: mov esi, dword ptr [edx + 8] */ 8934 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0065C2: cmp esi, dword ptr [edi + 8] */ 8935 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8937 _flag_k = FK_CMP; 8938 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0065CA; /* 0x3A0065C5: je 0x3a0065ca */ 8939 L_3A0065C7: 8940 MEM32(esi + 0x4) = ecx; /* 0x3A0065C7: mov dword ptr [esi + 4], ecx */ 8941 L_3A0065CA: 8942 esi = MEM32(ecx + 0x4); /* 0x3A0065CA: mov esi, dword ptr [ecx + 4] */ 8943 MEM32(edx + 0x4) = esi; /* 0x3A0065CD: mov dword ptr [edx + 4], esi */ 8944 esi = MEM32(edi + 0x4); /* 0x3A0065D0: mov esi, dword ptr [edi + 4] */ 8945 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0065D3: cmp ecx, dword ptr [esi + 4] */ 8946 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8948 _flag_k = FK_CMP; 8949 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065DD; /* 0x3A0065D6: jne 0x3a0065dd */ 8950 L_3A0065D8: 8951 MEM32(esi + 0x4) = edx; /* 0x3A0065D8: mov dword ptr [esi + 4], edx */ 8952 goto L_3A0065EC; /* 0x3A0065DB: jmp 0x3a0065ec */ 8953 L_3A0065DD: 8954 esi = MEM32(ecx + 0x4); /* 0x3A0065DD: mov esi, dword ptr [ecx + 4] */ 8955 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0065E0: cmp ecx, dword ptr [esi + 8] */ 8956 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8958 _flag_k = FK_CMP; 8959 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065EA; /* 0x3A0065E3: jne 0x3a0065ea */ 8960 L_3A0065E5: 8961 MEM32(esi + 0x8) = edx; /* 0x3A0065E5: mov dword ptr [esi + 8], edx */ 8962 goto L_3A0065EC; /* 0x3A0065E8: jmp 0x3a0065ec */ 8963 L_3A0065EA: 8964 MEM32(esi) = edx; /* 0x3A0065EA: mov dword ptr [esi], edx */ 8965 L_3A0065EC: 8966 MEM32(edx + 0x8) = ecx; /* 0x3A0065EC: mov dword ptr [edx + 8], ecx */ 8967 MEM32(ecx + 0x4) = edx; /* 0x3A0065EF: mov dword ptr [ecx + 4], edx */ 8968 edx = MEM32(eax + 0x4); /* 0x3A0065F2: mov edx, dword ptr [eax + 4] */ 8969 ecx = MEM32(edx); /* 0x3A0065F5: mov ecx, dword ptr [edx] */ 8970 L_3A0065F7: 8971 edx = MEM32(ecx + 0x8); /* 0x3A0065F7: mov edx, dword ptr [ecx + 8] */ 8972 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0065FA: cmp byte ptr [edx + 0x28], bl */ 8973 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8975 _flag_k = FK_NARROW(FK_CMP, 24); 8976 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A0065FD: jne 0x3a0066d3 */ 8977 L_3A006603: 8978 edx = MEM32(ecx); /* 0x3A006603: mov edx, dword ptr [ecx] */ 8979 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006605: cmp byte ptr [edx + 0x28], bl */ 8980 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8982 _flag_k = FK_NARROW(FK_CMP, 24); 8983 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A006608: jne 0x3a0066d3 */ 8984 L_3A00660E: 8985 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A00660E: mov byte ptr [ecx + 0x28], 0 */ 8986 ecx = MEM32(edi + 0x4); /* 0x3A006612: mov ecx, dword ptr [edi + 4] */ 8987 eax = MEM32(eax + 0x4); /* 0x3A006615: mov eax, dword ptr [eax + 4] */ 8988 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006618: cmp eax, dword ptr [ecx + 4] */ 8989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8991 _flag_k = FK_CMP; 8992 RECOMP_BACKEDGE(); 8993 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006524; /* 0x3A00661B: jne 0x3a006524 */ 8994 L_3A006621: 8995 goto L_3A006772; /* 0x3A006621: jmp 0x3a006772 */ 8996 L_3A006626: 8997 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 8998 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 8999 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9001 _flag_k = FK_NARROW(FK_CMP, 24); 9002 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 9003 L_3A00662E: 9004 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 9005 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 9006 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 9007 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 9008 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 9009 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 9010 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 9011 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 9012 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9014 _flag_k = FK_CMP; 9015 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 9016 L_3A006646: 9017 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 9018 L_3A006649: 9019 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 9020 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 9021 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 9022 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 9023 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9025 _flag_k = FK_CMP; 9026 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 9027 L_3A006657: 9028 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 9029 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 9030 L_3A00665C: 9031 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 9032 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 9033 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9035 _flag_k = FK_CMP; 9036 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 9037 L_3A006664: 9038 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 9039 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 9040 L_3A006669: 9041 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 9042 L_3A00666B: 9043 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 9044 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 9045 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 9046 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 9047 L_3A006677: 9048 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 9049 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 9050 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 9051 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 9052 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 9053 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 9054 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 9055 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 9056 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 9057 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 9058 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 9059 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 9060 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 9061 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9063 _flag_k = FK_CMP; 9064 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 9065 L_3A00669E: 9066 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 9067 L_3A0066A1: 9068 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 9069 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 9070 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 9071 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 9072 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9074 _flag_k = FK_CMP; 9075 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 9076 L_3A0066AF: 9077 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 9078 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 9079 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 9080 L_3A0066B9: 9081 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 9082 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 9083 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9085 _flag_k = FK_CMP; 9086 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 9087 L_3A0066C0: 9088 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 9089 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 9090 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 9091 L_3A0066C9: 9092 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 9093 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 9094 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 9095 L_3A0066D3: 9096 edx = MEM32(ecx); /* 0x3A0066D3: mov edx, dword ptr [ecx] */ 9097 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0066D5: cmp byte ptr [edx + 0x28], bl */ 9098 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9100 _flag_k = FK_NARROW(FK_CMP, 24); 9101 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006721; /* 0x3A0066D8: jne 0x3a006721 */ 9102 L_3A0066DA: 9103 edx = MEM32(ecx + 0x8); /* 0x3A0066DA: mov edx, dword ptr [ecx + 8] */ 9104 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0066DD: mov byte ptr [edx + 0x28], bl */ 9105 edx = MEM32(ecx + 0x8); /* 0x3A0066E0: mov edx, dword ptr [ecx + 8] */ 9106 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0066E3: mov byte ptr [ecx + 0x28], 0 */ 9107 esi = MEM32(edx); /* 0x3A0066E7: mov esi, dword ptr [edx] */ 9108 MEM32(ecx + 0x8) = esi; /* 0x3A0066E9: mov dword ptr [ecx + 8], esi */ 9109 esi = MEM32(edx); /* 0x3A0066EC: mov esi, dword ptr [edx] */ 9110 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0066EE: cmp esi, dword ptr [edi + 8] */ 9111 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9113 _flag_k = FK_CMP; 9114 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066F6; /* 0x3A0066F1: je 0x3a0066f6 */ 9115 L_3A0066F3: 9116 MEM32(esi + 0x4) = ecx; /* 0x3A0066F3: mov dword ptr [esi + 4], ecx */ 9117 L_3A0066F6: 9118 esi = MEM32(ecx + 0x4); /* 0x3A0066F6: mov esi, dword ptr [ecx + 4] */ 9119 MEM32(edx + 0x4) = esi; /* 0x3A0066F9: mov dword ptr [edx + 4], esi */ 9120 esi = MEM32(edi + 0x4); /* 0x3A0066FC: mov esi, dword ptr [edi + 4] */ 9121 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066FF: cmp ecx, dword ptr [esi + 4] */ 9122 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9124 _flag_k = FK_CMP; 9125 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006709; /* 0x3A006702: jne 0x3a006709 */ 9126 L_3A006704: 9127 MEM32(esi + 0x4) = edx; /* 0x3A006704: mov dword ptr [esi + 4], edx */ 9128 goto L_3A006717; /* 0x3A006707: jmp 0x3a006717 */ 9129 L_3A006709: 9130 esi = MEM32(ecx + 0x4); /* 0x3A006709: mov esi, dword ptr [ecx + 4] */ 9131 /* cmp ecx, MEM32(esi) */ /* 0x3A00670C: cmp ecx, dword ptr [esi] */ 9132 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9134 _flag_k = FK_CMP; 9135 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006714; /* 0x3A00670E: jne 0x3a006714 */ 9136 L_3A006710: 9137 MEM32(esi) = edx; /* 0x3A006710: mov dword ptr [esi], edx */ 9138 goto L_3A006717; /* 0x3A006712: jmp 0x3a006717 */ 9139 L_3A006714: 9140 MEM32(esi + 0x8) = edx; /* 0x3A006714: mov dword ptr [esi + 8], edx */ 9141 L_3A006717: 9142 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 9143 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 9144 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 9145 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 9146 L_3A006721: 9147 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 9148 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 9149 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 9150 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 9151 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 9152 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 9153 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 9154 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 9155 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 9156 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 9157 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 9158 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 9159 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 9160 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9162 _flag_k = FK_CMP; 9163 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 9164 L_3A006747: 9165 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 9166 L_3A00674A: 9167 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 9168 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 9169 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 9170 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 9171 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9173 _flag_k = FK_CMP; 9174 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 9175 L_3A006758: 9176 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 9177 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 9178 L_3A00675D: 9179 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 9180 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 9181 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9183 _flag_k = FK_CMP; 9184 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 9185 L_3A006765: 9186 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 9187 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 9188 L_3A00676A: 9189 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 9190 L_3A00676C: 9191 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 9192 L_3A00676F: 9193 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 9194 L_3A006772: 9195 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 9196 L_3A006775: 9197 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 9198 PUSH32(esp, edx); /* 0x3A006778: push edx */ 9199 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 9200 RECOMP_FLAGS_IN(); 9201 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 9202 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 9203 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9204 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9205 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 9206 _flag_k = FK_ADD; 9207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9208 eax = eax - 1; /* 0x3A006787: dec eax */ 9209 _flag_k = FK_DEC; 9210 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 9211 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 9212 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 9213 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 9214 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 9215 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 9216 esp = ebp; /* 0x3A006793: mov esp, ebp */ 9217 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 9218 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 9219 RECOMP_REGS_OUT(); 9220 } 9221 9222 void sub_3A0064D9(void) { 9223 int _fpu_cmp = 0; 9224 uint32_t _cf = 0; 9225 int _df = 1; 9226 uint32_t _flag_k = FK_NONE; 9227 uint32_t _flag_a = 0, _flag_b = 0; 9228 uint32_t _itail_tgt = 0; 9229 RECOMP_REGS_LOCALS 9230 RECOMP_ENTER(0x3A0064D9u); 9231 9232 L_3A0064D9: 9233 MEM32(ebx) = edx; /* 0x3A0064D9: mov dword ptr [ebx], edx */ 9234 ebx = MEM32(edi + 0x4); /* 0x3A0064DB: mov ebx, dword ptr [edi + 4] */ 9235 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3A0064DE: cmp dword ptr [ebx + 8], esi */ 9236 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 9237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9238 _flag_k = FK_CMP; 9239 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006508; /* 0x3A0064E1: jne 0x3a006508 */ 9240 L_3A0064E3: 9241 ecx = MEM32(esi); /* 0x3A0064E3: mov ecx, dword ptr [esi] */ 9242 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3A0064E5: cmp ecx, dword ptr [edi + 8] */ 9243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9245 _flag_k = FK_CMP; 9246 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0064EF; /* 0x3A0064E8: jne 0x3a0064ef */ 9247 L_3A0064EA: 9248 edx = MEM32(esi + 0x4); /* 0x3A0064EA: mov edx, dword ptr [esi + 4] */ 9249 goto L_3A006505; /* 0x3A0064ED: jmp 0x3a006505 */ 9250 L_3A0064EF: 9251 ecx = MEM32(eax + 0x8); /* 0x3A0064EF: mov ecx, dword ptr [eax + 8] */ 9252 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3A0064F2: cmp byte ptr [ecx + 0x29], 0 */ 9253 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 9254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9255 _flag_k = FK_NARROW(FK_CMP, 24); 9256 edx = eax; /* 0x3A0064F6: mov edx, eax */ 9257 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006505; /* 0x3A0064F8: jne 0x3a006505 */ 9258 L_3A0064FA: 9259 edx = ecx; /* 0x3A0064FA: mov edx, ecx */ 9260 ecx = MEM32(edx + 0x8); /* 0x3A0064FC: mov ecx, dword ptr [edx + 8] */ 9261 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3A0064FF: cmp byte ptr [ecx + 0x29], 0 */ 9262 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 9263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9264 _flag_k = FK_NARROW(FK_CMP, 24); 9265 RECOMP_BACKEDGE(); 9266 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0064FA; /* 0x3A006503: je 0x3a0064fa */ 9267 L_3A006505: 9268 MEM32(ebx + 0x8) = edx; /* 0x3A006505: mov dword ptr [ebx + 8], edx */ 9269 L_3A006508: 9270 ecx = MEM32(ebp + (-0x4)); /* 0x3A006508: mov ecx, dword ptr [ebp - 4] */ 9271 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A00650B: mov dl, byte ptr [ecx + 0x28] */ 9272 SET_LO8(ebx, 1); /* 0x3A00650E: mov bl, 1 */ 9273 /* cmp LO8(edx), LO8(ebx) */ /* 0x3A006510: cmp dl, bl */ 9274 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9276 _flag_k = FK_NARROW(FK_CMP, 24); 9277 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006775; /* 0x3A006512: jne 0x3a006775 */ 9278 L_3A006518: 9279 edx = MEM32(edi + 0x4); /* 0x3A006518: mov edx, dword ptr [edi + 4] */ 9280 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3A00651B: cmp eax, dword ptr [edx + 4] */ 9281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9283 _flag_k = FK_CMP; 9284 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A00651E: je 0x3a006772 */ 9285 L_3A006524: 9286 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3A006524: cmp byte ptr [eax + 0x28], bl */ 9287 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9289 _flag_k = FK_NARROW(FK_CMP, 24); 9290 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A006527: jne 0x3a006772 */ 9291 L_3A00652D: 9292 edx = MEM32(eax + 0x4); /* 0x3A00652D: mov edx, dword ptr [eax + 4] */ 9293 ecx = MEM32(edx); /* 0x3A006530: mov ecx, dword ptr [edx] */ 9294 /* cmp eax, ecx */ /* 0x3A006532: cmp eax, ecx */ 9295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9297 _flag_k = FK_CMP; 9298 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065A4; /* 0x3A006534: jne 0x3a0065a4 */ 9299 L_3A006536: 9300 ecx = MEM32(edx + 0x8); /* 0x3A006536: mov ecx, dword ptr [edx + 8] */ 9301 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006539: mov dl, byte ptr [ecx + 0x28] */ 9302 /* test LO8(edx), LO8(edx) */ /* 0x3A00653C: test dl, dl */ 9303 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9304 _cf = 0; 9305 _flag_k = FK_NARROW(FK_TEST, 24); 9306 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00658B; /* 0x3A00653E: jne 0x3a00658b */ 9307 L_3A006540: 9308 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006540: mov byte ptr [ecx + 0x28], bl */ 9309 ecx = MEM32(eax + 0x4); /* 0x3A006543: mov ecx, dword ptr [eax + 4] */ 9310 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006546: mov byte ptr [ecx + 0x28], 0 */ 9311 ecx = MEM32(eax + 0x4); /* 0x3A00654A: mov ecx, dword ptr [eax + 4] */ 9312 edx = MEM32(ecx + 0x8); /* 0x3A00654D: mov edx, dword ptr [ecx + 8] */ 9313 esi = MEM32(edx); /* 0x3A006550: mov esi, dword ptr [edx] */ 9314 MEM32(ecx + 0x8) = esi; /* 0x3A006552: mov dword ptr [ecx + 8], esi */ 9315 esi = MEM32(edx); /* 0x3A006555: mov esi, dword ptr [edx] */ 9316 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006557: cmp esi, dword ptr [edi + 8] */ 9317 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9319 _flag_k = FK_CMP; 9320 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00655F; /* 0x3A00655A: je 0x3a00655f */ 9321 L_3A00655C: 9322 MEM32(esi + 0x4) = ecx; /* 0x3A00655C: mov dword ptr [esi + 4], ecx */ 9323 L_3A00655F: 9324 esi = MEM32(ecx + 0x4); /* 0x3A00655F: mov esi, dword ptr [ecx + 4] */ 9325 MEM32(edx + 0x4) = esi; /* 0x3A006562: mov dword ptr [edx + 4], esi */ 9326 esi = MEM32(edi + 0x4); /* 0x3A006565: mov esi, dword ptr [edi + 4] */ 9327 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006568: cmp ecx, dword ptr [esi + 4] */ 9328 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9330 _flag_k = FK_CMP; 9331 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006572; /* 0x3A00656B: jne 0x3a006572 */ 9332 L_3A00656D: 9333 MEM32(esi + 0x4) = edx; /* 0x3A00656D: mov dword ptr [esi + 4], edx */ 9334 goto L_3A006580; /* 0x3A006570: jmp 0x3a006580 */ 9335 L_3A006572: 9336 esi = MEM32(ecx + 0x4); /* 0x3A006572: mov esi, dword ptr [ecx + 4] */ 9337 /* cmp ecx, MEM32(esi) */ /* 0x3A006575: cmp ecx, dword ptr [esi] */ 9338 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9340 _flag_k = FK_CMP; 9341 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00657D; /* 0x3A006577: jne 0x3a00657d */ 9342 L_3A006579: 9343 MEM32(esi) = edx; /* 0x3A006579: mov dword ptr [esi], edx */ 9344 goto L_3A006580; /* 0x3A00657B: jmp 0x3a006580 */ 9345 L_3A00657D: 9346 MEM32(esi + 0x8) = edx; /* 0x3A00657D: mov dword ptr [esi + 8], edx */ 9347 L_3A006580: 9348 MEM32(edx) = ecx; /* 0x3A006580: mov dword ptr [edx], ecx */ 9349 MEM32(ecx + 0x4) = edx; /* 0x3A006582: mov dword ptr [ecx + 4], edx */ 9350 edx = MEM32(eax + 0x4); /* 0x3A006585: mov edx, dword ptr [eax + 4] */ 9351 ecx = MEM32(edx + 0x8); /* 0x3A006588: mov ecx, dword ptr [edx + 8] */ 9352 L_3A00658B: 9353 edx = MEM32(ecx); /* 0x3A00658B: mov edx, dword ptr [ecx] */ 9354 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A00658D: cmp byte ptr [edx + 0x28], bl */ 9355 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9357 _flag_k = FK_NARROW(FK_CMP, 24); 9358 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A006590: jne 0x3a006626 */ 9359 L_3A006596: 9360 edx = MEM32(ecx + 0x8); /* 0x3A006596: mov edx, dword ptr [ecx + 8] */ 9361 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006599: cmp byte ptr [edx + 0x28], bl */ 9362 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9364 _flag_k = FK_NARROW(FK_CMP, 24); 9365 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A00659C: jne 0x3a006626 */ 9366 L_3A0065A2: 9367 goto L_3A00660E; /* 0x3A0065A2: jmp 0x3a00660e */ 9368 L_3A0065A4: 9369 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0065A4: mov dl, byte ptr [ecx + 0x28] */ 9370 /* test LO8(edx), LO8(edx) */ /* 0x3A0065A7: test dl, dl */ 9371 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9372 _cf = 0; 9373 _flag_k = FK_NARROW(FK_TEST, 24); 9374 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0065F7; /* 0x3A0065A9: jne 0x3a0065f7 */ 9375 L_3A0065AB: 9376 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0065AB: mov byte ptr [ecx + 0x28], bl */ 9377 ecx = MEM32(eax + 0x4); /* 0x3A0065AE: mov ecx, dword ptr [eax + 4] */ 9378 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0065B1: mov byte ptr [ecx + 0x28], 0 */ 9379 ecx = MEM32(eax + 0x4); /* 0x3A0065B5: mov ecx, dword ptr [eax + 4] */ 9380 edx = MEM32(ecx); /* 0x3A0065B8: mov edx, dword ptr [ecx] */ 9381 esi = MEM32(edx + 0x8); /* 0x3A0065BA: mov esi, dword ptr [edx + 8] */ 9382 MEM32(ecx) = esi; /* 0x3A0065BD: mov dword ptr [ecx], esi */ 9383 esi = MEM32(edx + 0x8); /* 0x3A0065BF: mov esi, dword ptr [edx + 8] */ 9384 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0065C2: cmp esi, dword ptr [edi + 8] */ 9385 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9387 _flag_k = FK_CMP; 9388 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0065CA; /* 0x3A0065C5: je 0x3a0065ca */ 9389 L_3A0065C7: 9390 MEM32(esi + 0x4) = ecx; /* 0x3A0065C7: mov dword ptr [esi + 4], ecx */ 9391 L_3A0065CA: 9392 esi = MEM32(ecx + 0x4); /* 0x3A0065CA: mov esi, dword ptr [ecx + 4] */ 9393 MEM32(edx + 0x4) = esi; /* 0x3A0065CD: mov dword ptr [edx + 4], esi */ 9394 esi = MEM32(edi + 0x4); /* 0x3A0065D0: mov esi, dword ptr [edi + 4] */ 9395 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0065D3: cmp ecx, dword ptr [esi + 4] */ 9396 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9398 _flag_k = FK_CMP; 9399 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065DD; /* 0x3A0065D6: jne 0x3a0065dd */ 9400 L_3A0065D8: 9401 MEM32(esi + 0x4) = edx; /* 0x3A0065D8: mov dword ptr [esi + 4], edx */ 9402 goto L_3A0065EC; /* 0x3A0065DB: jmp 0x3a0065ec */ 9403 L_3A0065DD: 9404 esi = MEM32(ecx + 0x4); /* 0x3A0065DD: mov esi, dword ptr [ecx + 4] */ 9405 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0065E0: cmp ecx, dword ptr [esi + 8] */ 9406 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9408 _flag_k = FK_CMP; 9409 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065EA; /* 0x3A0065E3: jne 0x3a0065ea */ 9410 L_3A0065E5: 9411 MEM32(esi + 0x8) = edx; /* 0x3A0065E5: mov dword ptr [esi + 8], edx */ 9412 goto L_3A0065EC; /* 0x3A0065E8: jmp 0x3a0065ec */ 9413 L_3A0065EA: 9414 MEM32(esi) = edx; /* 0x3A0065EA: mov dword ptr [esi], edx */ 9415 L_3A0065EC: 9416 MEM32(edx + 0x8) = ecx; /* 0x3A0065EC: mov dword ptr [edx + 8], ecx */ 9417 MEM32(ecx + 0x4) = edx; /* 0x3A0065EF: mov dword ptr [ecx + 4], edx */ 9418 edx = MEM32(eax + 0x4); /* 0x3A0065F2: mov edx, dword ptr [eax + 4] */ 9419 ecx = MEM32(edx); /* 0x3A0065F5: mov ecx, dword ptr [edx] */ 9420 L_3A0065F7: 9421 edx = MEM32(ecx + 0x8); /* 0x3A0065F7: mov edx, dword ptr [ecx + 8] */ 9422 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0065FA: cmp byte ptr [edx + 0x28], bl */ 9423 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9425 _flag_k = FK_NARROW(FK_CMP, 24); 9426 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A0065FD: jne 0x3a0066d3 */ 9427 L_3A006603: 9428 edx = MEM32(ecx); /* 0x3A006603: mov edx, dword ptr [ecx] */ 9429 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006605: cmp byte ptr [edx + 0x28], bl */ 9430 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9432 _flag_k = FK_NARROW(FK_CMP, 24); 9433 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A006608: jne 0x3a0066d3 */ 9434 L_3A00660E: 9435 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A00660E: mov byte ptr [ecx + 0x28], 0 */ 9436 ecx = MEM32(edi + 0x4); /* 0x3A006612: mov ecx, dword ptr [edi + 4] */ 9437 eax = MEM32(eax + 0x4); /* 0x3A006615: mov eax, dword ptr [eax + 4] */ 9438 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006618: cmp eax, dword ptr [ecx + 4] */ 9439 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9441 _flag_k = FK_CMP; 9442 RECOMP_BACKEDGE(); 9443 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006524; /* 0x3A00661B: jne 0x3a006524 */ 9444 L_3A006621: 9445 goto L_3A006772; /* 0x3A006621: jmp 0x3a006772 */ 9446 L_3A006626: 9447 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 9448 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 9449 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9451 _flag_k = FK_NARROW(FK_CMP, 24); 9452 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 9453 L_3A00662E: 9454 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 9455 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 9456 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 9457 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 9458 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 9459 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 9460 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 9461 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 9462 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9464 _flag_k = FK_CMP; 9465 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 9466 L_3A006646: 9467 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 9468 L_3A006649: 9469 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 9470 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 9471 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 9472 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 9473 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9475 _flag_k = FK_CMP; 9476 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 9477 L_3A006657: 9478 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 9479 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 9480 L_3A00665C: 9481 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 9482 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 9483 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9485 _flag_k = FK_CMP; 9486 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 9487 L_3A006664: 9488 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 9489 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 9490 L_3A006669: 9491 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 9492 L_3A00666B: 9493 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 9494 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 9495 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 9496 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 9497 L_3A006677: 9498 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 9499 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 9500 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 9501 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 9502 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 9503 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 9504 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 9505 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 9506 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 9507 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 9508 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 9509 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 9510 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 9511 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9513 _flag_k = FK_CMP; 9514 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 9515 L_3A00669E: 9516 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 9517 L_3A0066A1: 9518 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 9519 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 9520 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 9521 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 9522 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9524 _flag_k = FK_CMP; 9525 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 9526 L_3A0066AF: 9527 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 9528 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 9529 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 9530 L_3A0066B9: 9531 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 9532 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 9533 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9535 _flag_k = FK_CMP; 9536 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 9537 L_3A0066C0: 9538 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 9539 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 9540 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 9541 L_3A0066C9: 9542 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 9543 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 9544 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 9545 L_3A0066D3: 9546 edx = MEM32(ecx); /* 0x3A0066D3: mov edx, dword ptr [ecx] */ 9547 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0066D5: cmp byte ptr [edx + 0x28], bl */ 9548 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9550 _flag_k = FK_NARROW(FK_CMP, 24); 9551 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006721; /* 0x3A0066D8: jne 0x3a006721 */ 9552 L_3A0066DA: 9553 edx = MEM32(ecx + 0x8); /* 0x3A0066DA: mov edx, dword ptr [ecx + 8] */ 9554 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0066DD: mov byte ptr [edx + 0x28], bl */ 9555 edx = MEM32(ecx + 0x8); /* 0x3A0066E0: mov edx, dword ptr [ecx + 8] */ 9556 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0066E3: mov byte ptr [ecx + 0x28], 0 */ 9557 esi = MEM32(edx); /* 0x3A0066E7: mov esi, dword ptr [edx] */ 9558 MEM32(ecx + 0x8) = esi; /* 0x3A0066E9: mov dword ptr [ecx + 8], esi */ 9559 esi = MEM32(edx); /* 0x3A0066EC: mov esi, dword ptr [edx] */ 9560 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0066EE: cmp esi, dword ptr [edi + 8] */ 9561 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9563 _flag_k = FK_CMP; 9564 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066F6; /* 0x3A0066F1: je 0x3a0066f6 */ 9565 L_3A0066F3: 9566 MEM32(esi + 0x4) = ecx; /* 0x3A0066F3: mov dword ptr [esi + 4], ecx */ 9567 L_3A0066F6: 9568 esi = MEM32(ecx + 0x4); /* 0x3A0066F6: mov esi, dword ptr [ecx + 4] */ 9569 MEM32(edx + 0x4) = esi; /* 0x3A0066F9: mov dword ptr [edx + 4], esi */ 9570 esi = MEM32(edi + 0x4); /* 0x3A0066FC: mov esi, dword ptr [edi + 4] */ 9571 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066FF: cmp ecx, dword ptr [esi + 4] */ 9572 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9574 _flag_k = FK_CMP; 9575 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006709; /* 0x3A006702: jne 0x3a006709 */ 9576 L_3A006704: 9577 MEM32(esi + 0x4) = edx; /* 0x3A006704: mov dword ptr [esi + 4], edx */ 9578 goto L_3A006717; /* 0x3A006707: jmp 0x3a006717 */ 9579 L_3A006709: 9580 esi = MEM32(ecx + 0x4); /* 0x3A006709: mov esi, dword ptr [ecx + 4] */ 9581 /* cmp ecx, MEM32(esi) */ /* 0x3A00670C: cmp ecx, dword ptr [esi] */ 9582 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9584 _flag_k = FK_CMP; 9585 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006714; /* 0x3A00670E: jne 0x3a006714 */ 9586 L_3A006710: 9587 MEM32(esi) = edx; /* 0x3A006710: mov dword ptr [esi], edx */ 9588 goto L_3A006717; /* 0x3A006712: jmp 0x3a006717 */ 9589 L_3A006714: 9590 MEM32(esi + 0x8) = edx; /* 0x3A006714: mov dword ptr [esi + 8], edx */ 9591 L_3A006717: 9592 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 9593 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 9594 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 9595 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 9596 L_3A006721: 9597 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 9598 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 9599 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 9600 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 9601 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 9602 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 9603 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 9604 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 9605 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 9606 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 9607 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 9608 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 9609 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 9610 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9612 _flag_k = FK_CMP; 9613 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 9614 L_3A006747: 9615 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 9616 L_3A00674A: 9617 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 9618 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 9619 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 9620 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 9621 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9623 _flag_k = FK_CMP; 9624 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 9625 L_3A006758: 9626 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 9627 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 9628 L_3A00675D: 9629 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 9630 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 9631 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9633 _flag_k = FK_CMP; 9634 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 9635 L_3A006765: 9636 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 9637 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 9638 L_3A00676A: 9639 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 9640 L_3A00676C: 9641 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 9642 L_3A00676F: 9643 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 9644 L_3A006772: 9645 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 9646 L_3A006775: 9647 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 9648 PUSH32(esp, edx); /* 0x3A006778: push edx */ 9649 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 9650 RECOMP_FLAGS_IN(); 9651 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 9652 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 9653 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9655 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 9656 _flag_k = FK_ADD; 9657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9658 eax = eax - 1; /* 0x3A006787: dec eax */ 9659 _flag_k = FK_DEC; 9660 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 9661 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 9662 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 9663 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 9664 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 9665 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 9666 esp = ebp; /* 0x3A006793: mov esp, ebp */ 9667 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 9668 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 9669 RECOMP_REGS_OUT(); 9670 } 9671 9672 void sub_3A006505(void) { 9673 int _fpu_cmp = 0; 9674 uint32_t _cf = 0; 9675 int _df = 1; 9676 uint32_t _flag_k = FK_NONE; 9677 uint32_t _flag_a = 0, _flag_b = 0; 9678 uint32_t _itail_tgt = 0; 9679 RECOMP_REGS_LOCALS 9680 RECOMP_ENTER(0x3A006505u); 9681 9682 L_3A006505: 9683 MEM32(ebx + 0x8) = edx; /* 0x3A006505: mov dword ptr [ebx + 8], edx */ 9684 ecx = MEM32(ebp + (-0x4)); /* 0x3A006508: mov ecx, dword ptr [ebp - 4] */ 9685 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A00650B: mov dl, byte ptr [ecx + 0x28] */ 9686 SET_LO8(ebx, 1); /* 0x3A00650E: mov bl, 1 */ 9687 /* cmp LO8(edx), LO8(ebx) */ /* 0x3A006510: cmp dl, bl */ 9688 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9690 _flag_k = FK_NARROW(FK_CMP, 24); 9691 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006775; /* 0x3A006512: jne 0x3a006775 */ 9692 L_3A006518: 9693 edx = MEM32(edi + 0x4); /* 0x3A006518: mov edx, dword ptr [edi + 4] */ 9694 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3A00651B: cmp eax, dword ptr [edx + 4] */ 9695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9697 _flag_k = FK_CMP; 9698 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A00651E: je 0x3a006772 */ 9699 L_3A006524: 9700 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3A006524: cmp byte ptr [eax + 0x28], bl */ 9701 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9703 _flag_k = FK_NARROW(FK_CMP, 24); 9704 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A006527: jne 0x3a006772 */ 9705 L_3A00652D: 9706 edx = MEM32(eax + 0x4); /* 0x3A00652D: mov edx, dword ptr [eax + 4] */ 9707 ecx = MEM32(edx); /* 0x3A006530: mov ecx, dword ptr [edx] */ 9708 /* cmp eax, ecx */ /* 0x3A006532: cmp eax, ecx */ 9709 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9711 _flag_k = FK_CMP; 9712 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065A4; /* 0x3A006534: jne 0x3a0065a4 */ 9713 L_3A006536: 9714 ecx = MEM32(edx + 0x8); /* 0x3A006536: mov ecx, dword ptr [edx + 8] */ 9715 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006539: mov dl, byte ptr [ecx + 0x28] */ 9716 /* test LO8(edx), LO8(edx) */ /* 0x3A00653C: test dl, dl */ 9717 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9718 _cf = 0; 9719 _flag_k = FK_NARROW(FK_TEST, 24); 9720 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00658B; /* 0x3A00653E: jne 0x3a00658b */ 9721 L_3A006540: 9722 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006540: mov byte ptr [ecx + 0x28], bl */ 9723 ecx = MEM32(eax + 0x4); /* 0x3A006543: mov ecx, dword ptr [eax + 4] */ 9724 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006546: mov byte ptr [ecx + 0x28], 0 */ 9725 ecx = MEM32(eax + 0x4); /* 0x3A00654A: mov ecx, dword ptr [eax + 4] */ 9726 edx = MEM32(ecx + 0x8); /* 0x3A00654D: mov edx, dword ptr [ecx + 8] */ 9727 esi = MEM32(edx); /* 0x3A006550: mov esi, dword ptr [edx] */ 9728 MEM32(ecx + 0x8) = esi; /* 0x3A006552: mov dword ptr [ecx + 8], esi */ 9729 esi = MEM32(edx); /* 0x3A006555: mov esi, dword ptr [edx] */ 9730 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006557: cmp esi, dword ptr [edi + 8] */ 9731 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9733 _flag_k = FK_CMP; 9734 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00655F; /* 0x3A00655A: je 0x3a00655f */ 9735 L_3A00655C: 9736 MEM32(esi + 0x4) = ecx; /* 0x3A00655C: mov dword ptr [esi + 4], ecx */ 9737 L_3A00655F: 9738 esi = MEM32(ecx + 0x4); /* 0x3A00655F: mov esi, dword ptr [ecx + 4] */ 9739 MEM32(edx + 0x4) = esi; /* 0x3A006562: mov dword ptr [edx + 4], esi */ 9740 esi = MEM32(edi + 0x4); /* 0x3A006565: mov esi, dword ptr [edi + 4] */ 9741 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006568: cmp ecx, dword ptr [esi + 4] */ 9742 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9744 _flag_k = FK_CMP; 9745 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006572; /* 0x3A00656B: jne 0x3a006572 */ 9746 L_3A00656D: 9747 MEM32(esi + 0x4) = edx; /* 0x3A00656D: mov dword ptr [esi + 4], edx */ 9748 goto L_3A006580; /* 0x3A006570: jmp 0x3a006580 */ 9749 L_3A006572: 9750 esi = MEM32(ecx + 0x4); /* 0x3A006572: mov esi, dword ptr [ecx + 4] */ 9751 /* cmp ecx, MEM32(esi) */ /* 0x3A006575: cmp ecx, dword ptr [esi] */ 9752 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9754 _flag_k = FK_CMP; 9755 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00657D; /* 0x3A006577: jne 0x3a00657d */ 9756 L_3A006579: 9757 MEM32(esi) = edx; /* 0x3A006579: mov dword ptr [esi], edx */ 9758 goto L_3A006580; /* 0x3A00657B: jmp 0x3a006580 */ 9759 L_3A00657D: 9760 MEM32(esi + 0x8) = edx; /* 0x3A00657D: mov dword ptr [esi + 8], edx */ 9761 L_3A006580: 9762 MEM32(edx) = ecx; /* 0x3A006580: mov dword ptr [edx], ecx */ 9763 MEM32(ecx + 0x4) = edx; /* 0x3A006582: mov dword ptr [ecx + 4], edx */ 9764 edx = MEM32(eax + 0x4); /* 0x3A006585: mov edx, dword ptr [eax + 4] */ 9765 ecx = MEM32(edx + 0x8); /* 0x3A006588: mov ecx, dword ptr [edx + 8] */ 9766 L_3A00658B: 9767 edx = MEM32(ecx); /* 0x3A00658B: mov edx, dword ptr [ecx] */ 9768 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A00658D: cmp byte ptr [edx + 0x28], bl */ 9769 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9771 _flag_k = FK_NARROW(FK_CMP, 24); 9772 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A006590: jne 0x3a006626 */ 9773 L_3A006596: 9774 edx = MEM32(ecx + 0x8); /* 0x3A006596: mov edx, dword ptr [ecx + 8] */ 9775 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006599: cmp byte ptr [edx + 0x28], bl */ 9776 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9778 _flag_k = FK_NARROW(FK_CMP, 24); 9779 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A00659C: jne 0x3a006626 */ 9780 L_3A0065A2: 9781 goto L_3A00660E; /* 0x3A0065A2: jmp 0x3a00660e */ 9782 L_3A0065A4: 9783 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0065A4: mov dl, byte ptr [ecx + 0x28] */ 9784 /* test LO8(edx), LO8(edx) */ /* 0x3A0065A7: test dl, dl */ 9785 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9786 _cf = 0; 9787 _flag_k = FK_NARROW(FK_TEST, 24); 9788 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0065F7; /* 0x3A0065A9: jne 0x3a0065f7 */ 9789 L_3A0065AB: 9790 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0065AB: mov byte ptr [ecx + 0x28], bl */ 9791 ecx = MEM32(eax + 0x4); /* 0x3A0065AE: mov ecx, dword ptr [eax + 4] */ 9792 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0065B1: mov byte ptr [ecx + 0x28], 0 */ 9793 ecx = MEM32(eax + 0x4); /* 0x3A0065B5: mov ecx, dword ptr [eax + 4] */ 9794 edx = MEM32(ecx); /* 0x3A0065B8: mov edx, dword ptr [ecx] */ 9795 esi = MEM32(edx + 0x8); /* 0x3A0065BA: mov esi, dword ptr [edx + 8] */ 9796 MEM32(ecx) = esi; /* 0x3A0065BD: mov dword ptr [ecx], esi */ 9797 esi = MEM32(edx + 0x8); /* 0x3A0065BF: mov esi, dword ptr [edx + 8] */ 9798 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0065C2: cmp esi, dword ptr [edi + 8] */ 9799 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9800 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9801 _flag_k = FK_CMP; 9802 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0065CA; /* 0x3A0065C5: je 0x3a0065ca */ 9803 L_3A0065C7: 9804 MEM32(esi + 0x4) = ecx; /* 0x3A0065C7: mov dword ptr [esi + 4], ecx */ 9805 L_3A0065CA: 9806 esi = MEM32(ecx + 0x4); /* 0x3A0065CA: mov esi, dword ptr [ecx + 4] */ 9807 MEM32(edx + 0x4) = esi; /* 0x3A0065CD: mov dword ptr [edx + 4], esi */ 9808 esi = MEM32(edi + 0x4); /* 0x3A0065D0: mov esi, dword ptr [edi + 4] */ 9809 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0065D3: cmp ecx, dword ptr [esi + 4] */ 9810 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9812 _flag_k = FK_CMP; 9813 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065DD; /* 0x3A0065D6: jne 0x3a0065dd */ 9814 L_3A0065D8: 9815 MEM32(esi + 0x4) = edx; /* 0x3A0065D8: mov dword ptr [esi + 4], edx */ 9816 goto L_3A0065EC; /* 0x3A0065DB: jmp 0x3a0065ec */ 9817 L_3A0065DD: 9818 esi = MEM32(ecx + 0x4); /* 0x3A0065DD: mov esi, dword ptr [ecx + 4] */ 9819 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0065E0: cmp ecx, dword ptr [esi + 8] */ 9820 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9821 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9822 _flag_k = FK_CMP; 9823 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065EA; /* 0x3A0065E3: jne 0x3a0065ea */ 9824 L_3A0065E5: 9825 MEM32(esi + 0x8) = edx; /* 0x3A0065E5: mov dword ptr [esi + 8], edx */ 9826 goto L_3A0065EC; /* 0x3A0065E8: jmp 0x3a0065ec */ 9827 L_3A0065EA: 9828 MEM32(esi) = edx; /* 0x3A0065EA: mov dword ptr [esi], edx */ 9829 L_3A0065EC: 9830 MEM32(edx + 0x8) = ecx; /* 0x3A0065EC: mov dword ptr [edx + 8], ecx */ 9831 MEM32(ecx + 0x4) = edx; /* 0x3A0065EF: mov dword ptr [ecx + 4], edx */ 9832 edx = MEM32(eax + 0x4); /* 0x3A0065F2: mov edx, dword ptr [eax + 4] */ 9833 ecx = MEM32(edx); /* 0x3A0065F5: mov ecx, dword ptr [edx] */ 9834 L_3A0065F7: 9835 edx = MEM32(ecx + 0x8); /* 0x3A0065F7: mov edx, dword ptr [ecx + 8] */ 9836 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0065FA: cmp byte ptr [edx + 0x28], bl */ 9837 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9839 _flag_k = FK_NARROW(FK_CMP, 24); 9840 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A0065FD: jne 0x3a0066d3 */ 9841 L_3A006603: 9842 edx = MEM32(ecx); /* 0x3A006603: mov edx, dword ptr [ecx] */ 9843 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006605: cmp byte ptr [edx + 0x28], bl */ 9844 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9846 _flag_k = FK_NARROW(FK_CMP, 24); 9847 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A006608: jne 0x3a0066d3 */ 9848 L_3A00660E: 9849 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A00660E: mov byte ptr [ecx + 0x28], 0 */ 9850 ecx = MEM32(edi + 0x4); /* 0x3A006612: mov ecx, dword ptr [edi + 4] */ 9851 eax = MEM32(eax + 0x4); /* 0x3A006615: mov eax, dword ptr [eax + 4] */ 9852 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006618: cmp eax, dword ptr [ecx + 4] */ 9853 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9855 _flag_k = FK_CMP; 9856 RECOMP_BACKEDGE(); 9857 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006524; /* 0x3A00661B: jne 0x3a006524 */ 9858 L_3A006621: 9859 goto L_3A006772; /* 0x3A006621: jmp 0x3a006772 */ 9860 L_3A006626: 9861 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 9862 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 9863 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9865 _flag_k = FK_NARROW(FK_CMP, 24); 9866 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 9867 L_3A00662E: 9868 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 9869 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 9870 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 9871 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 9872 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 9873 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 9874 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 9875 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 9876 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9878 _flag_k = FK_CMP; 9879 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 9880 L_3A006646: 9881 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 9882 L_3A006649: 9883 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 9884 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 9885 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 9886 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 9887 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9889 _flag_k = FK_CMP; 9890 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 9891 L_3A006657: 9892 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 9893 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 9894 L_3A00665C: 9895 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 9896 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 9897 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9899 _flag_k = FK_CMP; 9900 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 9901 L_3A006664: 9902 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 9903 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 9904 L_3A006669: 9905 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 9906 L_3A00666B: 9907 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 9908 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 9909 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 9910 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 9911 L_3A006677: 9912 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 9913 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 9914 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 9915 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 9916 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 9917 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 9918 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 9919 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 9920 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 9921 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 9922 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 9923 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 9924 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 9925 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9927 _flag_k = FK_CMP; 9928 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 9929 L_3A00669E: 9930 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 9931 L_3A0066A1: 9932 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 9933 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 9934 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 9935 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 9936 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9938 _flag_k = FK_CMP; 9939 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 9940 L_3A0066AF: 9941 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 9942 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 9943 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 9944 L_3A0066B9: 9945 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 9946 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 9947 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9949 _flag_k = FK_CMP; 9950 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 9951 L_3A0066C0: 9952 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 9953 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 9954 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 9955 L_3A0066C9: 9956 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 9957 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 9958 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 9959 L_3A0066D3: 9960 edx = MEM32(ecx); /* 0x3A0066D3: mov edx, dword ptr [ecx] */ 9961 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0066D5: cmp byte ptr [edx + 0x28], bl */ 9962 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9964 _flag_k = FK_NARROW(FK_CMP, 24); 9965 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006721; /* 0x3A0066D8: jne 0x3a006721 */ 9966 L_3A0066DA: 9967 edx = MEM32(ecx + 0x8); /* 0x3A0066DA: mov edx, dword ptr [ecx + 8] */ 9968 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0066DD: mov byte ptr [edx + 0x28], bl */ 9969 edx = MEM32(ecx + 0x8); /* 0x3A0066E0: mov edx, dword ptr [ecx + 8] */ 9970 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0066E3: mov byte ptr [ecx + 0x28], 0 */ 9971 esi = MEM32(edx); /* 0x3A0066E7: mov esi, dword ptr [edx] */ 9972 MEM32(ecx + 0x8) = esi; /* 0x3A0066E9: mov dword ptr [ecx + 8], esi */ 9973 esi = MEM32(edx); /* 0x3A0066EC: mov esi, dword ptr [edx] */ 9974 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0066EE: cmp esi, dword ptr [edi + 8] */ 9975 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9977 _flag_k = FK_CMP; 9978 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066F6; /* 0x3A0066F1: je 0x3a0066f6 */ 9979 L_3A0066F3: 9980 MEM32(esi + 0x4) = ecx; /* 0x3A0066F3: mov dword ptr [esi + 4], ecx */ 9981 L_3A0066F6: 9982 esi = MEM32(ecx + 0x4); /* 0x3A0066F6: mov esi, dword ptr [ecx + 4] */ 9983 MEM32(edx + 0x4) = esi; /* 0x3A0066F9: mov dword ptr [edx + 4], esi */ 9984 esi = MEM32(edi + 0x4); /* 0x3A0066FC: mov esi, dword ptr [edi + 4] */ 9985 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066FF: cmp ecx, dword ptr [esi + 4] */ 9986 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9987 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9988 _flag_k = FK_CMP; 9989 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006709; /* 0x3A006702: jne 0x3a006709 */ 9990 L_3A006704: 9991 MEM32(esi + 0x4) = edx; /* 0x3A006704: mov dword ptr [esi + 4], edx */ 9992 goto L_3A006717; /* 0x3A006707: jmp 0x3a006717 */ 9993 L_3A006709: 9994 esi = MEM32(ecx + 0x4); /* 0x3A006709: mov esi, dword ptr [ecx + 4] */ 9995 /* cmp ecx, MEM32(esi) */ /* 0x3A00670C: cmp ecx, dword ptr [esi] */ 9996 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9998 _flag_k = FK_CMP; 9999 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006714; /* 0x3A00670E: jne 0x3a006714 */ 10000 L_3A006710: 10001 MEM32(esi) = edx; /* 0x3A006710: mov dword ptr [esi], edx */ 10002 goto L_3A006717; /* 0x3A006712: jmp 0x3a006717 */ 10003 L_3A006714: 10004 MEM32(esi + 0x8) = edx; /* 0x3A006714: mov dword ptr [esi + 8], edx */ 10005 L_3A006717: 10006 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 10007 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 10008 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 10009 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 10010 L_3A006721: 10011 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 10012 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 10013 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 10014 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 10015 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 10016 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 10017 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 10018 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 10019 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 10020 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 10021 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 10022 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 10023 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 10024 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10026 _flag_k = FK_CMP; 10027 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 10028 L_3A006747: 10029 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 10030 L_3A00674A: 10031 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 10032 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 10033 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 10034 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 10035 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10037 _flag_k = FK_CMP; 10038 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 10039 L_3A006758: 10040 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 10041 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 10042 L_3A00675D: 10043 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 10044 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 10045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10047 _flag_k = FK_CMP; 10048 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 10049 L_3A006765: 10050 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 10051 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 10052 L_3A00676A: 10053 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 10054 L_3A00676C: 10055 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 10056 L_3A00676F: 10057 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 10058 L_3A006772: 10059 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 10060 L_3A006775: 10061 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 10062 PUSH32(esp, edx); /* 0x3A006778: push edx */ 10063 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 10064 RECOMP_FLAGS_IN(); 10065 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 10066 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 10067 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10068 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10069 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 10070 _flag_k = FK_ADD; 10071 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10072 eax = eax - 1; /* 0x3A006787: dec eax */ 10073 _flag_k = FK_DEC; 10074 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 10075 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 10076 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 10077 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 10078 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 10079 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 10080 esp = ebp; /* 0x3A006793: mov esp, ebp */ 10081 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 10082 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 10083 RECOMP_REGS_OUT(); 10084 } 10085 10086 void sub_3A006524(void) { 10087 int _fpu_cmp = 0; 10088 uint32_t _cf = 0; 10089 int _df = 1; 10090 uint32_t _flag_k = FK_NONE; 10091 uint32_t _flag_a = 0, _flag_b = 0; 10092 uint32_t _itail_tgt = 0; 10093 RECOMP_REGS_LOCALS 10094 RECOMP_ENTER(0x3A006524u); 10095 10096 L_3A006524: 10097 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3A006524: cmp byte ptr [eax + 0x28], bl */ 10098 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10100 _flag_k = FK_NARROW(FK_CMP, 24); 10101 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A006527: jne 0x3a006772 */ 10102 L_3A00652D: 10103 edx = MEM32(eax + 0x4); /* 0x3A00652D: mov edx, dword ptr [eax + 4] */ 10104 ecx = MEM32(edx); /* 0x3A006530: mov ecx, dword ptr [edx] */ 10105 /* cmp eax, ecx */ /* 0x3A006532: cmp eax, ecx */ 10106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10108 _flag_k = FK_CMP; 10109 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065A4; /* 0x3A006534: jne 0x3a0065a4 */ 10110 L_3A006536: 10111 ecx = MEM32(edx + 0x8); /* 0x3A006536: mov ecx, dword ptr [edx + 8] */ 10112 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006539: mov dl, byte ptr [ecx + 0x28] */ 10113 /* test LO8(edx), LO8(edx) */ /* 0x3A00653C: test dl, dl */ 10114 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10115 _cf = 0; 10116 _flag_k = FK_NARROW(FK_TEST, 24); 10117 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00658B; /* 0x3A00653E: jne 0x3a00658b */ 10118 L_3A006540: 10119 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006540: mov byte ptr [ecx + 0x28], bl */ 10120 ecx = MEM32(eax + 0x4); /* 0x3A006543: mov ecx, dword ptr [eax + 4] */ 10121 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006546: mov byte ptr [ecx + 0x28], 0 */ 10122 ecx = MEM32(eax + 0x4); /* 0x3A00654A: mov ecx, dword ptr [eax + 4] */ 10123 edx = MEM32(ecx + 0x8); /* 0x3A00654D: mov edx, dword ptr [ecx + 8] */ 10124 esi = MEM32(edx); /* 0x3A006550: mov esi, dword ptr [edx] */ 10125 MEM32(ecx + 0x8) = esi; /* 0x3A006552: mov dword ptr [ecx + 8], esi */ 10126 esi = MEM32(edx); /* 0x3A006555: mov esi, dword ptr [edx] */ 10127 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006557: cmp esi, dword ptr [edi + 8] */ 10128 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10130 _flag_k = FK_CMP; 10131 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00655F; /* 0x3A00655A: je 0x3a00655f */ 10132 L_3A00655C: 10133 MEM32(esi + 0x4) = ecx; /* 0x3A00655C: mov dword ptr [esi + 4], ecx */ 10134 L_3A00655F: 10135 esi = MEM32(ecx + 0x4); /* 0x3A00655F: mov esi, dword ptr [ecx + 4] */ 10136 MEM32(edx + 0x4) = esi; /* 0x3A006562: mov dword ptr [edx + 4], esi */ 10137 esi = MEM32(edi + 0x4); /* 0x3A006565: mov esi, dword ptr [edi + 4] */ 10138 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006568: cmp ecx, dword ptr [esi + 4] */ 10139 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10141 _flag_k = FK_CMP; 10142 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006572; /* 0x3A00656B: jne 0x3a006572 */ 10143 L_3A00656D: 10144 MEM32(esi + 0x4) = edx; /* 0x3A00656D: mov dword ptr [esi + 4], edx */ 10145 goto L_3A006580; /* 0x3A006570: jmp 0x3a006580 */ 10146 L_3A006572: 10147 esi = MEM32(ecx + 0x4); /* 0x3A006572: mov esi, dword ptr [ecx + 4] */ 10148 /* cmp ecx, MEM32(esi) */ /* 0x3A006575: cmp ecx, dword ptr [esi] */ 10149 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10151 _flag_k = FK_CMP; 10152 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00657D; /* 0x3A006577: jne 0x3a00657d */ 10153 L_3A006579: 10154 MEM32(esi) = edx; /* 0x3A006579: mov dword ptr [esi], edx */ 10155 goto L_3A006580; /* 0x3A00657B: jmp 0x3a006580 */ 10156 L_3A00657D: 10157 MEM32(esi + 0x8) = edx; /* 0x3A00657D: mov dword ptr [esi + 8], edx */ 10158 L_3A006580: 10159 MEM32(edx) = ecx; /* 0x3A006580: mov dword ptr [edx], ecx */ 10160 MEM32(ecx + 0x4) = edx; /* 0x3A006582: mov dword ptr [ecx + 4], edx */ 10161 edx = MEM32(eax + 0x4); /* 0x3A006585: mov edx, dword ptr [eax + 4] */ 10162 ecx = MEM32(edx + 0x8); /* 0x3A006588: mov ecx, dword ptr [edx + 8] */ 10163 L_3A00658B: 10164 edx = MEM32(ecx); /* 0x3A00658B: mov edx, dword ptr [ecx] */ 10165 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A00658D: cmp byte ptr [edx + 0x28], bl */ 10166 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10168 _flag_k = FK_NARROW(FK_CMP, 24); 10169 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A006590: jne 0x3a006626 */ 10170 L_3A006596: 10171 edx = MEM32(ecx + 0x8); /* 0x3A006596: mov edx, dword ptr [ecx + 8] */ 10172 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006599: cmp byte ptr [edx + 0x28], bl */ 10173 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10175 _flag_k = FK_NARROW(FK_CMP, 24); 10176 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A00659C: jne 0x3a006626 */ 10177 L_3A0065A2: 10178 goto L_3A00660E; /* 0x3A0065A2: jmp 0x3a00660e */ 10179 L_3A0065A4: 10180 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0065A4: mov dl, byte ptr [ecx + 0x28] */ 10181 /* test LO8(edx), LO8(edx) */ /* 0x3A0065A7: test dl, dl */ 10182 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10183 _cf = 0; 10184 _flag_k = FK_NARROW(FK_TEST, 24); 10185 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0065F7; /* 0x3A0065A9: jne 0x3a0065f7 */ 10186 L_3A0065AB: 10187 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0065AB: mov byte ptr [ecx + 0x28], bl */ 10188 ecx = MEM32(eax + 0x4); /* 0x3A0065AE: mov ecx, dword ptr [eax + 4] */ 10189 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0065B1: mov byte ptr [ecx + 0x28], 0 */ 10190 ecx = MEM32(eax + 0x4); /* 0x3A0065B5: mov ecx, dword ptr [eax + 4] */ 10191 edx = MEM32(ecx); /* 0x3A0065B8: mov edx, dword ptr [ecx] */ 10192 esi = MEM32(edx + 0x8); /* 0x3A0065BA: mov esi, dword ptr [edx + 8] */ 10193 MEM32(ecx) = esi; /* 0x3A0065BD: mov dword ptr [ecx], esi */ 10194 esi = MEM32(edx + 0x8); /* 0x3A0065BF: mov esi, dword ptr [edx + 8] */ 10195 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0065C2: cmp esi, dword ptr [edi + 8] */ 10196 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10198 _flag_k = FK_CMP; 10199 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0065CA; /* 0x3A0065C5: je 0x3a0065ca */ 10200 L_3A0065C7: 10201 MEM32(esi + 0x4) = ecx; /* 0x3A0065C7: mov dword ptr [esi + 4], ecx */ 10202 L_3A0065CA: 10203 esi = MEM32(ecx + 0x4); /* 0x3A0065CA: mov esi, dword ptr [ecx + 4] */ 10204 MEM32(edx + 0x4) = esi; /* 0x3A0065CD: mov dword ptr [edx + 4], esi */ 10205 esi = MEM32(edi + 0x4); /* 0x3A0065D0: mov esi, dword ptr [edi + 4] */ 10206 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0065D3: cmp ecx, dword ptr [esi + 4] */ 10207 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10209 _flag_k = FK_CMP; 10210 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065DD; /* 0x3A0065D6: jne 0x3a0065dd */ 10211 L_3A0065D8: 10212 MEM32(esi + 0x4) = edx; /* 0x3A0065D8: mov dword ptr [esi + 4], edx */ 10213 goto L_3A0065EC; /* 0x3A0065DB: jmp 0x3a0065ec */ 10214 L_3A0065DD: 10215 esi = MEM32(ecx + 0x4); /* 0x3A0065DD: mov esi, dword ptr [ecx + 4] */ 10216 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0065E0: cmp ecx, dword ptr [esi + 8] */ 10217 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10219 _flag_k = FK_CMP; 10220 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065EA; /* 0x3A0065E3: jne 0x3a0065ea */ 10221 L_3A0065E5: 10222 MEM32(esi + 0x8) = edx; /* 0x3A0065E5: mov dword ptr [esi + 8], edx */ 10223 goto L_3A0065EC; /* 0x3A0065E8: jmp 0x3a0065ec */ 10224 L_3A0065EA: 10225 MEM32(esi) = edx; /* 0x3A0065EA: mov dword ptr [esi], edx */ 10226 L_3A0065EC: 10227 MEM32(edx + 0x8) = ecx; /* 0x3A0065EC: mov dword ptr [edx + 8], ecx */ 10228 MEM32(ecx + 0x4) = edx; /* 0x3A0065EF: mov dword ptr [ecx + 4], edx */ 10229 edx = MEM32(eax + 0x4); /* 0x3A0065F2: mov edx, dword ptr [eax + 4] */ 10230 ecx = MEM32(edx); /* 0x3A0065F5: mov ecx, dword ptr [edx] */ 10231 L_3A0065F7: 10232 edx = MEM32(ecx + 0x8); /* 0x3A0065F7: mov edx, dword ptr [ecx + 8] */ 10233 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0065FA: cmp byte ptr [edx + 0x28], bl */ 10234 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10236 _flag_k = FK_NARROW(FK_CMP, 24); 10237 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A0065FD: jne 0x3a0066d3 */ 10238 L_3A006603: 10239 edx = MEM32(ecx); /* 0x3A006603: mov edx, dword ptr [ecx] */ 10240 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006605: cmp byte ptr [edx + 0x28], bl */ 10241 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10243 _flag_k = FK_NARROW(FK_CMP, 24); 10244 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A006608: jne 0x3a0066d3 */ 10245 L_3A00660E: 10246 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A00660E: mov byte ptr [ecx + 0x28], 0 */ 10247 ecx = MEM32(edi + 0x4); /* 0x3A006612: mov ecx, dword ptr [edi + 4] */ 10248 eax = MEM32(eax + 0x4); /* 0x3A006615: mov eax, dword ptr [eax + 4] */ 10249 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006618: cmp eax, dword ptr [ecx + 4] */ 10250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10252 _flag_k = FK_CMP; 10253 RECOMP_BACKEDGE(); 10254 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006524; /* 0x3A00661B: jne 0x3a006524 */ 10255 L_3A006621: 10256 goto L_3A006772; /* 0x3A006621: jmp 0x3a006772 */ 10257 L_3A006626: 10258 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 10259 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 10260 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10262 _flag_k = FK_NARROW(FK_CMP, 24); 10263 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 10264 L_3A00662E: 10265 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 10266 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 10267 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 10268 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 10269 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 10270 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 10271 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 10272 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 10273 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10275 _flag_k = FK_CMP; 10276 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 10277 L_3A006646: 10278 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 10279 L_3A006649: 10280 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 10281 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 10282 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 10283 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 10284 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10286 _flag_k = FK_CMP; 10287 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 10288 L_3A006657: 10289 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 10290 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 10291 L_3A00665C: 10292 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 10293 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 10294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10296 _flag_k = FK_CMP; 10297 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 10298 L_3A006664: 10299 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 10300 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 10301 L_3A006669: 10302 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 10303 L_3A00666B: 10304 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 10305 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 10306 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 10307 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 10308 L_3A006677: 10309 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 10310 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 10311 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 10312 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 10313 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 10314 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 10315 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 10316 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 10317 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 10318 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 10319 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 10320 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 10321 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 10322 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10324 _flag_k = FK_CMP; 10325 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 10326 L_3A00669E: 10327 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 10328 L_3A0066A1: 10329 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 10330 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 10331 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 10332 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 10333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10335 _flag_k = FK_CMP; 10336 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 10337 L_3A0066AF: 10338 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 10339 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 10340 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 10341 L_3A0066B9: 10342 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 10343 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 10344 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10346 _flag_k = FK_CMP; 10347 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 10348 L_3A0066C0: 10349 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 10350 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 10351 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 10352 L_3A0066C9: 10353 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 10354 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 10355 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 10356 L_3A0066D3: 10357 edx = MEM32(ecx); /* 0x3A0066D3: mov edx, dword ptr [ecx] */ 10358 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0066D5: cmp byte ptr [edx + 0x28], bl */ 10359 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10361 _flag_k = FK_NARROW(FK_CMP, 24); 10362 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006721; /* 0x3A0066D8: jne 0x3a006721 */ 10363 L_3A0066DA: 10364 edx = MEM32(ecx + 0x8); /* 0x3A0066DA: mov edx, dword ptr [ecx + 8] */ 10365 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0066DD: mov byte ptr [edx + 0x28], bl */ 10366 edx = MEM32(ecx + 0x8); /* 0x3A0066E0: mov edx, dword ptr [ecx + 8] */ 10367 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0066E3: mov byte ptr [ecx + 0x28], 0 */ 10368 esi = MEM32(edx); /* 0x3A0066E7: mov esi, dword ptr [edx] */ 10369 MEM32(ecx + 0x8) = esi; /* 0x3A0066E9: mov dword ptr [ecx + 8], esi */ 10370 esi = MEM32(edx); /* 0x3A0066EC: mov esi, dword ptr [edx] */ 10371 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0066EE: cmp esi, dword ptr [edi + 8] */ 10372 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10374 _flag_k = FK_CMP; 10375 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066F6; /* 0x3A0066F1: je 0x3a0066f6 */ 10376 L_3A0066F3: 10377 MEM32(esi + 0x4) = ecx; /* 0x3A0066F3: mov dword ptr [esi + 4], ecx */ 10378 L_3A0066F6: 10379 esi = MEM32(ecx + 0x4); /* 0x3A0066F6: mov esi, dword ptr [ecx + 4] */ 10380 MEM32(edx + 0x4) = esi; /* 0x3A0066F9: mov dword ptr [edx + 4], esi */ 10381 esi = MEM32(edi + 0x4); /* 0x3A0066FC: mov esi, dword ptr [edi + 4] */ 10382 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066FF: cmp ecx, dword ptr [esi + 4] */ 10383 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10385 _flag_k = FK_CMP; 10386 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006709; /* 0x3A006702: jne 0x3a006709 */ 10387 L_3A006704: 10388 MEM32(esi + 0x4) = edx; /* 0x3A006704: mov dword ptr [esi + 4], edx */ 10389 goto L_3A006717; /* 0x3A006707: jmp 0x3a006717 */ 10390 L_3A006709: 10391 esi = MEM32(ecx + 0x4); /* 0x3A006709: mov esi, dword ptr [ecx + 4] */ 10392 /* cmp ecx, MEM32(esi) */ /* 0x3A00670C: cmp ecx, dword ptr [esi] */ 10393 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10395 _flag_k = FK_CMP; 10396 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006714; /* 0x3A00670E: jne 0x3a006714 */ 10397 L_3A006710: 10398 MEM32(esi) = edx; /* 0x3A006710: mov dword ptr [esi], edx */ 10399 goto L_3A006717; /* 0x3A006712: jmp 0x3a006717 */ 10400 L_3A006714: 10401 MEM32(esi + 0x8) = edx; /* 0x3A006714: mov dword ptr [esi + 8], edx */ 10402 L_3A006717: 10403 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 10404 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 10405 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 10406 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 10407 L_3A006721: 10408 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 10409 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 10410 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 10411 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 10412 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 10413 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 10414 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 10415 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 10416 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 10417 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 10418 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 10419 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 10420 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 10421 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10423 _flag_k = FK_CMP; 10424 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 10425 L_3A006747: 10426 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 10427 L_3A00674A: 10428 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 10429 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 10430 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 10431 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 10432 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10434 _flag_k = FK_CMP; 10435 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 10436 L_3A006758: 10437 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 10438 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 10439 L_3A00675D: 10440 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 10441 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 10442 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10444 _flag_k = FK_CMP; 10445 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 10446 L_3A006765: 10447 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 10448 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 10449 L_3A00676A: 10450 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 10451 L_3A00676C: 10452 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 10453 L_3A00676F: 10454 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 10455 L_3A006772: 10456 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 10457 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 10458 PUSH32(esp, edx); /* 0x3A006778: push edx */ 10459 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 10460 RECOMP_FLAGS_IN(); 10461 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 10462 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 10463 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10464 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10465 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 10466 _flag_k = FK_ADD; 10467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10468 eax = eax - 1; /* 0x3A006787: dec eax */ 10469 _flag_k = FK_DEC; 10470 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 10471 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 10472 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 10473 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 10474 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 10475 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 10476 esp = ebp; /* 0x3A006793: mov esp, ebp */ 10477 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 10478 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 10479 RECOMP_REGS_OUT(); 10480 } 10481 10482 void sub_3A006580(void) { 10483 int _fpu_cmp = 0; 10484 uint32_t _cf = 0; 10485 int _df = 1; 10486 uint32_t _flag_k = FK_NONE; 10487 uint32_t _flag_a = 0, _flag_b = 0; 10488 uint32_t _itail_tgt = 0; 10489 RECOMP_REGS_LOCALS 10490 RECOMP_ENTER(0x3A006580u); 10491 10492 goto L_3A006580; 10493 L_3A006524: 10494 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3A006524: cmp byte ptr [eax + 0x28], bl */ 10495 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10497 _flag_k = FK_NARROW(FK_CMP, 24); 10498 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A006527: jne 0x3a006772 */ 10499 L_3A00652D: 10500 edx = MEM32(eax + 0x4); /* 0x3A00652D: mov edx, dword ptr [eax + 4] */ 10501 ecx = MEM32(edx); /* 0x3A006530: mov ecx, dword ptr [edx] */ 10502 /* cmp eax, ecx */ /* 0x3A006532: cmp eax, ecx */ 10503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10505 _flag_k = FK_CMP; 10506 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065A4; /* 0x3A006534: jne 0x3a0065a4 */ 10507 L_3A006536: 10508 ecx = MEM32(edx + 0x8); /* 0x3A006536: mov ecx, dword ptr [edx + 8] */ 10509 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006539: mov dl, byte ptr [ecx + 0x28] */ 10510 /* test LO8(edx), LO8(edx) */ /* 0x3A00653C: test dl, dl */ 10511 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10512 _cf = 0; 10513 _flag_k = FK_NARROW(FK_TEST, 24); 10514 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00658B; /* 0x3A00653E: jne 0x3a00658b */ 10515 L_3A006540: 10516 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006540: mov byte ptr [ecx + 0x28], bl */ 10517 ecx = MEM32(eax + 0x4); /* 0x3A006543: mov ecx, dword ptr [eax + 4] */ 10518 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006546: mov byte ptr [ecx + 0x28], 0 */ 10519 ecx = MEM32(eax + 0x4); /* 0x3A00654A: mov ecx, dword ptr [eax + 4] */ 10520 edx = MEM32(ecx + 0x8); /* 0x3A00654D: mov edx, dword ptr [ecx + 8] */ 10521 esi = MEM32(edx); /* 0x3A006550: mov esi, dword ptr [edx] */ 10522 MEM32(ecx + 0x8) = esi; /* 0x3A006552: mov dword ptr [ecx + 8], esi */ 10523 esi = MEM32(edx); /* 0x3A006555: mov esi, dword ptr [edx] */ 10524 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006557: cmp esi, dword ptr [edi + 8] */ 10525 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10527 _flag_k = FK_CMP; 10528 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00655F; /* 0x3A00655A: je 0x3a00655f */ 10529 L_3A00655C: 10530 MEM32(esi + 0x4) = ecx; /* 0x3A00655C: mov dword ptr [esi + 4], ecx */ 10531 L_3A00655F: 10532 esi = MEM32(ecx + 0x4); /* 0x3A00655F: mov esi, dword ptr [ecx + 4] */ 10533 MEM32(edx + 0x4) = esi; /* 0x3A006562: mov dword ptr [edx + 4], esi */ 10534 esi = MEM32(edi + 0x4); /* 0x3A006565: mov esi, dword ptr [edi + 4] */ 10535 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006568: cmp ecx, dword ptr [esi + 4] */ 10536 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10538 _flag_k = FK_CMP; 10539 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006572; /* 0x3A00656B: jne 0x3a006572 */ 10540 L_3A00656D: 10541 MEM32(esi + 0x4) = edx; /* 0x3A00656D: mov dword ptr [esi + 4], edx */ 10542 goto L_3A006580; /* 0x3A006570: jmp 0x3a006580 */ 10543 L_3A006572: 10544 esi = MEM32(ecx + 0x4); /* 0x3A006572: mov esi, dword ptr [ecx + 4] */ 10545 /* cmp ecx, MEM32(esi) */ /* 0x3A006575: cmp ecx, dword ptr [esi] */ 10546 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10548 _flag_k = FK_CMP; 10549 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00657D; /* 0x3A006577: jne 0x3a00657d */ 10550 L_3A006579: 10551 MEM32(esi) = edx; /* 0x3A006579: mov dword ptr [esi], edx */ 10552 goto L_3A006580; /* 0x3A00657B: jmp 0x3a006580 */ 10553 L_3A00657D: 10554 MEM32(esi + 0x8) = edx; /* 0x3A00657D: mov dword ptr [esi + 8], edx */ 10555 L_3A006580: 10556 MEM32(edx) = ecx; /* 0x3A006580: mov dword ptr [edx], ecx */ 10557 MEM32(ecx + 0x4) = edx; /* 0x3A006582: mov dword ptr [ecx + 4], edx */ 10558 edx = MEM32(eax + 0x4); /* 0x3A006585: mov edx, dword ptr [eax + 4] */ 10559 ecx = MEM32(edx + 0x8); /* 0x3A006588: mov ecx, dword ptr [edx + 8] */ 10560 L_3A00658B: 10561 edx = MEM32(ecx); /* 0x3A00658B: mov edx, dword ptr [ecx] */ 10562 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A00658D: cmp byte ptr [edx + 0x28], bl */ 10563 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10565 _flag_k = FK_NARROW(FK_CMP, 24); 10566 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A006590: jne 0x3a006626 */ 10567 L_3A006596: 10568 edx = MEM32(ecx + 0x8); /* 0x3A006596: mov edx, dword ptr [ecx + 8] */ 10569 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006599: cmp byte ptr [edx + 0x28], bl */ 10570 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10572 _flag_k = FK_NARROW(FK_CMP, 24); 10573 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A00659C: jne 0x3a006626 */ 10574 L_3A0065A2: 10575 goto L_3A00660E; /* 0x3A0065A2: jmp 0x3a00660e */ 10576 L_3A0065A4: 10577 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0065A4: mov dl, byte ptr [ecx + 0x28] */ 10578 /* test LO8(edx), LO8(edx) */ /* 0x3A0065A7: test dl, dl */ 10579 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10580 _cf = 0; 10581 _flag_k = FK_NARROW(FK_TEST, 24); 10582 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0065F7; /* 0x3A0065A9: jne 0x3a0065f7 */ 10583 L_3A0065AB: 10584 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0065AB: mov byte ptr [ecx + 0x28], bl */ 10585 ecx = MEM32(eax + 0x4); /* 0x3A0065AE: mov ecx, dword ptr [eax + 4] */ 10586 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0065B1: mov byte ptr [ecx + 0x28], 0 */ 10587 ecx = MEM32(eax + 0x4); /* 0x3A0065B5: mov ecx, dword ptr [eax + 4] */ 10588 edx = MEM32(ecx); /* 0x3A0065B8: mov edx, dword ptr [ecx] */ 10589 esi = MEM32(edx + 0x8); /* 0x3A0065BA: mov esi, dword ptr [edx + 8] */ 10590 MEM32(ecx) = esi; /* 0x3A0065BD: mov dword ptr [ecx], esi */ 10591 esi = MEM32(edx + 0x8); /* 0x3A0065BF: mov esi, dword ptr [edx + 8] */ 10592 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0065C2: cmp esi, dword ptr [edi + 8] */ 10593 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10595 _flag_k = FK_CMP; 10596 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0065CA; /* 0x3A0065C5: je 0x3a0065ca */ 10597 L_3A0065C7: 10598 MEM32(esi + 0x4) = ecx; /* 0x3A0065C7: mov dword ptr [esi + 4], ecx */ 10599 L_3A0065CA: 10600 esi = MEM32(ecx + 0x4); /* 0x3A0065CA: mov esi, dword ptr [ecx + 4] */ 10601 MEM32(edx + 0x4) = esi; /* 0x3A0065CD: mov dword ptr [edx + 4], esi */ 10602 esi = MEM32(edi + 0x4); /* 0x3A0065D0: mov esi, dword ptr [edi + 4] */ 10603 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0065D3: cmp ecx, dword ptr [esi + 4] */ 10604 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10606 _flag_k = FK_CMP; 10607 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065DD; /* 0x3A0065D6: jne 0x3a0065dd */ 10608 L_3A0065D8: 10609 MEM32(esi + 0x4) = edx; /* 0x3A0065D8: mov dword ptr [esi + 4], edx */ 10610 goto L_3A0065EC; /* 0x3A0065DB: jmp 0x3a0065ec */ 10611 L_3A0065DD: 10612 esi = MEM32(ecx + 0x4); /* 0x3A0065DD: mov esi, dword ptr [ecx + 4] */ 10613 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0065E0: cmp ecx, dword ptr [esi + 8] */ 10614 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10616 _flag_k = FK_CMP; 10617 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065EA; /* 0x3A0065E3: jne 0x3a0065ea */ 10618 L_3A0065E5: 10619 MEM32(esi + 0x8) = edx; /* 0x3A0065E5: mov dword ptr [esi + 8], edx */ 10620 goto L_3A0065EC; /* 0x3A0065E8: jmp 0x3a0065ec */ 10621 L_3A0065EA: 10622 MEM32(esi) = edx; /* 0x3A0065EA: mov dword ptr [esi], edx */ 10623 L_3A0065EC: 10624 MEM32(edx + 0x8) = ecx; /* 0x3A0065EC: mov dword ptr [edx + 8], ecx */ 10625 MEM32(ecx + 0x4) = edx; /* 0x3A0065EF: mov dword ptr [ecx + 4], edx */ 10626 edx = MEM32(eax + 0x4); /* 0x3A0065F2: mov edx, dword ptr [eax + 4] */ 10627 ecx = MEM32(edx); /* 0x3A0065F5: mov ecx, dword ptr [edx] */ 10628 L_3A0065F7: 10629 edx = MEM32(ecx + 0x8); /* 0x3A0065F7: mov edx, dword ptr [ecx + 8] */ 10630 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0065FA: cmp byte ptr [edx + 0x28], bl */ 10631 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10633 _flag_k = FK_NARROW(FK_CMP, 24); 10634 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A0065FD: jne 0x3a0066d3 */ 10635 L_3A006603: 10636 edx = MEM32(ecx); /* 0x3A006603: mov edx, dword ptr [ecx] */ 10637 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006605: cmp byte ptr [edx + 0x28], bl */ 10638 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10640 _flag_k = FK_NARROW(FK_CMP, 24); 10641 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A006608: jne 0x3a0066d3 */ 10642 L_3A00660E: 10643 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A00660E: mov byte ptr [ecx + 0x28], 0 */ 10644 ecx = MEM32(edi + 0x4); /* 0x3A006612: mov ecx, dword ptr [edi + 4] */ 10645 eax = MEM32(eax + 0x4); /* 0x3A006615: mov eax, dword ptr [eax + 4] */ 10646 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006618: cmp eax, dword ptr [ecx + 4] */ 10647 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10649 _flag_k = FK_CMP; 10650 RECOMP_BACKEDGE(); 10651 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006524; /* 0x3A00661B: jne 0x3a006524 */ 10652 L_3A006621: 10653 goto L_3A006772; /* 0x3A006621: jmp 0x3a006772 */ 10654 L_3A006626: 10655 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 10656 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 10657 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10659 _flag_k = FK_NARROW(FK_CMP, 24); 10660 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 10661 L_3A00662E: 10662 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 10663 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 10664 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 10665 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 10666 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 10667 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 10668 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 10669 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 10670 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10672 _flag_k = FK_CMP; 10673 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 10674 L_3A006646: 10675 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 10676 L_3A006649: 10677 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 10678 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 10679 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 10680 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 10681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10683 _flag_k = FK_CMP; 10684 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 10685 L_3A006657: 10686 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 10687 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 10688 L_3A00665C: 10689 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 10690 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 10691 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10693 _flag_k = FK_CMP; 10694 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 10695 L_3A006664: 10696 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 10697 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 10698 L_3A006669: 10699 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 10700 L_3A00666B: 10701 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 10702 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 10703 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 10704 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 10705 L_3A006677: 10706 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 10707 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 10708 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 10709 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 10710 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 10711 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 10712 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 10713 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 10714 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 10715 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 10716 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 10717 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 10718 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 10719 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10721 _flag_k = FK_CMP; 10722 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 10723 L_3A00669E: 10724 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 10725 L_3A0066A1: 10726 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 10727 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 10728 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 10729 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 10730 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10732 _flag_k = FK_CMP; 10733 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 10734 L_3A0066AF: 10735 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 10736 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 10737 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 10738 L_3A0066B9: 10739 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 10740 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 10741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10743 _flag_k = FK_CMP; 10744 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 10745 L_3A0066C0: 10746 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 10747 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 10748 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 10749 L_3A0066C9: 10750 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 10751 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 10752 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 10753 L_3A0066D3: 10754 edx = MEM32(ecx); /* 0x3A0066D3: mov edx, dword ptr [ecx] */ 10755 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0066D5: cmp byte ptr [edx + 0x28], bl */ 10756 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10758 _flag_k = FK_NARROW(FK_CMP, 24); 10759 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006721; /* 0x3A0066D8: jne 0x3a006721 */ 10760 L_3A0066DA: 10761 edx = MEM32(ecx + 0x8); /* 0x3A0066DA: mov edx, dword ptr [ecx + 8] */ 10762 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0066DD: mov byte ptr [edx + 0x28], bl */ 10763 edx = MEM32(ecx + 0x8); /* 0x3A0066E0: mov edx, dword ptr [ecx + 8] */ 10764 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0066E3: mov byte ptr [ecx + 0x28], 0 */ 10765 esi = MEM32(edx); /* 0x3A0066E7: mov esi, dword ptr [edx] */ 10766 MEM32(ecx + 0x8) = esi; /* 0x3A0066E9: mov dword ptr [ecx + 8], esi */ 10767 esi = MEM32(edx); /* 0x3A0066EC: mov esi, dword ptr [edx] */ 10768 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0066EE: cmp esi, dword ptr [edi + 8] */ 10769 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10771 _flag_k = FK_CMP; 10772 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066F6; /* 0x3A0066F1: je 0x3a0066f6 */ 10773 L_3A0066F3: 10774 MEM32(esi + 0x4) = ecx; /* 0x3A0066F3: mov dword ptr [esi + 4], ecx */ 10775 L_3A0066F6: 10776 esi = MEM32(ecx + 0x4); /* 0x3A0066F6: mov esi, dword ptr [ecx + 4] */ 10777 MEM32(edx + 0x4) = esi; /* 0x3A0066F9: mov dword ptr [edx + 4], esi */ 10778 esi = MEM32(edi + 0x4); /* 0x3A0066FC: mov esi, dword ptr [edi + 4] */ 10779 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066FF: cmp ecx, dword ptr [esi + 4] */ 10780 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10782 _flag_k = FK_CMP; 10783 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006709; /* 0x3A006702: jne 0x3a006709 */ 10784 L_3A006704: 10785 MEM32(esi + 0x4) = edx; /* 0x3A006704: mov dword ptr [esi + 4], edx */ 10786 goto L_3A006717; /* 0x3A006707: jmp 0x3a006717 */ 10787 L_3A006709: 10788 esi = MEM32(ecx + 0x4); /* 0x3A006709: mov esi, dword ptr [ecx + 4] */ 10789 /* cmp ecx, MEM32(esi) */ /* 0x3A00670C: cmp ecx, dword ptr [esi] */ 10790 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10792 _flag_k = FK_CMP; 10793 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006714; /* 0x3A00670E: jne 0x3a006714 */ 10794 L_3A006710: 10795 MEM32(esi) = edx; /* 0x3A006710: mov dword ptr [esi], edx */ 10796 goto L_3A006717; /* 0x3A006712: jmp 0x3a006717 */ 10797 L_3A006714: 10798 MEM32(esi + 0x8) = edx; /* 0x3A006714: mov dword ptr [esi + 8], edx */ 10799 L_3A006717: 10800 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 10801 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 10802 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 10803 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 10804 L_3A006721: 10805 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 10806 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 10807 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 10808 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 10809 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 10810 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 10811 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 10812 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 10813 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 10814 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 10815 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 10816 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 10817 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 10818 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10820 _flag_k = FK_CMP; 10821 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 10822 L_3A006747: 10823 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 10824 L_3A00674A: 10825 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 10826 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 10827 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 10828 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 10829 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10831 _flag_k = FK_CMP; 10832 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 10833 L_3A006758: 10834 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 10835 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 10836 L_3A00675D: 10837 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 10838 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 10839 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10841 _flag_k = FK_CMP; 10842 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 10843 L_3A006765: 10844 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 10845 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 10846 L_3A00676A: 10847 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 10848 L_3A00676C: 10849 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 10850 L_3A00676F: 10851 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 10852 L_3A006772: 10853 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 10854 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 10855 PUSH32(esp, edx); /* 0x3A006778: push edx */ 10856 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 10857 RECOMP_FLAGS_IN(); 10858 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 10859 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 10860 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10861 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10862 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 10863 _flag_k = FK_ADD; 10864 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10865 eax = eax - 1; /* 0x3A006787: dec eax */ 10866 _flag_k = FK_DEC; 10867 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 10868 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 10869 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 10870 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 10871 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 10872 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 10873 esp = ebp; /* 0x3A006793: mov esp, ebp */ 10874 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 10875 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 10876 RECOMP_REGS_OUT(); 10877 } 10878 10879 void sub_3A00658B(void) { 10880 int _fpu_cmp = 0; 10881 uint32_t _cf = 0; 10882 int _df = 1; 10883 uint32_t _flag_k = FK_NONE; 10884 uint32_t _flag_a = 0, _flag_b = 0; 10885 uint32_t _itail_tgt = 0; 10886 RECOMP_REGS_LOCALS 10887 RECOMP_ENTER(0x3A00658Bu); 10888 10889 goto L_3A00658B; 10890 L_3A006524: 10891 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3A006524: cmp byte ptr [eax + 0x28], bl */ 10892 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10894 _flag_k = FK_NARROW(FK_CMP, 24); 10895 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A006527: jne 0x3a006772 */ 10896 L_3A00652D: 10897 edx = MEM32(eax + 0x4); /* 0x3A00652D: mov edx, dword ptr [eax + 4] */ 10898 ecx = MEM32(edx); /* 0x3A006530: mov ecx, dword ptr [edx] */ 10899 /* cmp eax, ecx */ /* 0x3A006532: cmp eax, ecx */ 10900 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10902 _flag_k = FK_CMP; 10903 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065A4; /* 0x3A006534: jne 0x3a0065a4 */ 10904 L_3A006536: 10905 ecx = MEM32(edx + 0x8); /* 0x3A006536: mov ecx, dword ptr [edx + 8] */ 10906 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006539: mov dl, byte ptr [ecx + 0x28] */ 10907 /* test LO8(edx), LO8(edx) */ /* 0x3A00653C: test dl, dl */ 10908 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10909 _cf = 0; 10910 _flag_k = FK_NARROW(FK_TEST, 24); 10911 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00658B; /* 0x3A00653E: jne 0x3a00658b */ 10912 L_3A006540: 10913 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006540: mov byte ptr [ecx + 0x28], bl */ 10914 ecx = MEM32(eax + 0x4); /* 0x3A006543: mov ecx, dword ptr [eax + 4] */ 10915 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006546: mov byte ptr [ecx + 0x28], 0 */ 10916 ecx = MEM32(eax + 0x4); /* 0x3A00654A: mov ecx, dword ptr [eax + 4] */ 10917 edx = MEM32(ecx + 0x8); /* 0x3A00654D: mov edx, dword ptr [ecx + 8] */ 10918 esi = MEM32(edx); /* 0x3A006550: mov esi, dword ptr [edx] */ 10919 MEM32(ecx + 0x8) = esi; /* 0x3A006552: mov dword ptr [ecx + 8], esi */ 10920 esi = MEM32(edx); /* 0x3A006555: mov esi, dword ptr [edx] */ 10921 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006557: cmp esi, dword ptr [edi + 8] */ 10922 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10924 _flag_k = FK_CMP; 10925 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00655F; /* 0x3A00655A: je 0x3a00655f */ 10926 L_3A00655C: 10927 MEM32(esi + 0x4) = ecx; /* 0x3A00655C: mov dword ptr [esi + 4], ecx */ 10928 L_3A00655F: 10929 esi = MEM32(ecx + 0x4); /* 0x3A00655F: mov esi, dword ptr [ecx + 4] */ 10930 MEM32(edx + 0x4) = esi; /* 0x3A006562: mov dword ptr [edx + 4], esi */ 10931 esi = MEM32(edi + 0x4); /* 0x3A006565: mov esi, dword ptr [edi + 4] */ 10932 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006568: cmp ecx, dword ptr [esi + 4] */ 10933 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10935 _flag_k = FK_CMP; 10936 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006572; /* 0x3A00656B: jne 0x3a006572 */ 10937 L_3A00656D: 10938 MEM32(esi + 0x4) = edx; /* 0x3A00656D: mov dword ptr [esi + 4], edx */ 10939 goto L_3A006580; /* 0x3A006570: jmp 0x3a006580 */ 10940 L_3A006572: 10941 esi = MEM32(ecx + 0x4); /* 0x3A006572: mov esi, dword ptr [ecx + 4] */ 10942 /* cmp ecx, MEM32(esi) */ /* 0x3A006575: cmp ecx, dword ptr [esi] */ 10943 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10945 _flag_k = FK_CMP; 10946 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00657D; /* 0x3A006577: jne 0x3a00657d */ 10947 L_3A006579: 10948 MEM32(esi) = edx; /* 0x3A006579: mov dword ptr [esi], edx */ 10949 goto L_3A006580; /* 0x3A00657B: jmp 0x3a006580 */ 10950 L_3A00657D: 10951 MEM32(esi + 0x8) = edx; /* 0x3A00657D: mov dword ptr [esi + 8], edx */ 10952 L_3A006580: 10953 MEM32(edx) = ecx; /* 0x3A006580: mov dword ptr [edx], ecx */ 10954 MEM32(ecx + 0x4) = edx; /* 0x3A006582: mov dword ptr [ecx + 4], edx */ 10955 edx = MEM32(eax + 0x4); /* 0x3A006585: mov edx, dword ptr [eax + 4] */ 10956 ecx = MEM32(edx + 0x8); /* 0x3A006588: mov ecx, dword ptr [edx + 8] */ 10957 L_3A00658B: 10958 edx = MEM32(ecx); /* 0x3A00658B: mov edx, dword ptr [ecx] */ 10959 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A00658D: cmp byte ptr [edx + 0x28], bl */ 10960 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10962 _flag_k = FK_NARROW(FK_CMP, 24); 10963 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A006590: jne 0x3a006626 */ 10964 L_3A006596: 10965 edx = MEM32(ecx + 0x8); /* 0x3A006596: mov edx, dword ptr [ecx + 8] */ 10966 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006599: cmp byte ptr [edx + 0x28], bl */ 10967 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10969 _flag_k = FK_NARROW(FK_CMP, 24); 10970 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A00659C: jne 0x3a006626 */ 10971 L_3A0065A2: 10972 goto L_3A00660E; /* 0x3A0065A2: jmp 0x3a00660e */ 10973 L_3A0065A4: 10974 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0065A4: mov dl, byte ptr [ecx + 0x28] */ 10975 /* test LO8(edx), LO8(edx) */ /* 0x3A0065A7: test dl, dl */ 10976 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10977 _cf = 0; 10978 _flag_k = FK_NARROW(FK_TEST, 24); 10979 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0065F7; /* 0x3A0065A9: jne 0x3a0065f7 */ 10980 L_3A0065AB: 10981 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0065AB: mov byte ptr [ecx + 0x28], bl */ 10982 ecx = MEM32(eax + 0x4); /* 0x3A0065AE: mov ecx, dword ptr [eax + 4] */ 10983 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0065B1: mov byte ptr [ecx + 0x28], 0 */ 10984 ecx = MEM32(eax + 0x4); /* 0x3A0065B5: mov ecx, dword ptr [eax + 4] */ 10985 edx = MEM32(ecx); /* 0x3A0065B8: mov edx, dword ptr [ecx] */ 10986 esi = MEM32(edx + 0x8); /* 0x3A0065BA: mov esi, dword ptr [edx + 8] */ 10987 MEM32(ecx) = esi; /* 0x3A0065BD: mov dword ptr [ecx], esi */ 10988 esi = MEM32(edx + 0x8); /* 0x3A0065BF: mov esi, dword ptr [edx + 8] */ 10989 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0065C2: cmp esi, dword ptr [edi + 8] */ 10990 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10992 _flag_k = FK_CMP; 10993 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0065CA; /* 0x3A0065C5: je 0x3a0065ca */ 10994 L_3A0065C7: 10995 MEM32(esi + 0x4) = ecx; /* 0x3A0065C7: mov dword ptr [esi + 4], ecx */ 10996 L_3A0065CA: 10997 esi = MEM32(ecx + 0x4); /* 0x3A0065CA: mov esi, dword ptr [ecx + 4] */ 10998 MEM32(edx + 0x4) = esi; /* 0x3A0065CD: mov dword ptr [edx + 4], esi */ 10999 esi = MEM32(edi + 0x4); /* 0x3A0065D0: mov esi, dword ptr [edi + 4] */ 11000 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0065D3: cmp ecx, dword ptr [esi + 4] */ 11001 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11003 _flag_k = FK_CMP; 11004 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065DD; /* 0x3A0065D6: jne 0x3a0065dd */ 11005 L_3A0065D8: 11006 MEM32(esi + 0x4) = edx; /* 0x3A0065D8: mov dword ptr [esi + 4], edx */ 11007 goto L_3A0065EC; /* 0x3A0065DB: jmp 0x3a0065ec */ 11008 L_3A0065DD: 11009 esi = MEM32(ecx + 0x4); /* 0x3A0065DD: mov esi, dword ptr [ecx + 4] */ 11010 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0065E0: cmp ecx, dword ptr [esi + 8] */ 11011 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11013 _flag_k = FK_CMP; 11014 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065EA; /* 0x3A0065E3: jne 0x3a0065ea */ 11015 L_3A0065E5: 11016 MEM32(esi + 0x8) = edx; /* 0x3A0065E5: mov dword ptr [esi + 8], edx */ 11017 goto L_3A0065EC; /* 0x3A0065E8: jmp 0x3a0065ec */ 11018 L_3A0065EA: 11019 MEM32(esi) = edx; /* 0x3A0065EA: mov dword ptr [esi], edx */ 11020 L_3A0065EC: 11021 MEM32(edx + 0x8) = ecx; /* 0x3A0065EC: mov dword ptr [edx + 8], ecx */ 11022 MEM32(ecx + 0x4) = edx; /* 0x3A0065EF: mov dword ptr [ecx + 4], edx */ 11023 edx = MEM32(eax + 0x4); /* 0x3A0065F2: mov edx, dword ptr [eax + 4] */ 11024 ecx = MEM32(edx); /* 0x3A0065F5: mov ecx, dword ptr [edx] */ 11025 L_3A0065F7: 11026 edx = MEM32(ecx + 0x8); /* 0x3A0065F7: mov edx, dword ptr [ecx + 8] */ 11027 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0065FA: cmp byte ptr [edx + 0x28], bl */ 11028 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11030 _flag_k = FK_NARROW(FK_CMP, 24); 11031 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A0065FD: jne 0x3a0066d3 */ 11032 L_3A006603: 11033 edx = MEM32(ecx); /* 0x3A006603: mov edx, dword ptr [ecx] */ 11034 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006605: cmp byte ptr [edx + 0x28], bl */ 11035 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11037 _flag_k = FK_NARROW(FK_CMP, 24); 11038 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A006608: jne 0x3a0066d3 */ 11039 L_3A00660E: 11040 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A00660E: mov byte ptr [ecx + 0x28], 0 */ 11041 ecx = MEM32(edi + 0x4); /* 0x3A006612: mov ecx, dword ptr [edi + 4] */ 11042 eax = MEM32(eax + 0x4); /* 0x3A006615: mov eax, dword ptr [eax + 4] */ 11043 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006618: cmp eax, dword ptr [ecx + 4] */ 11044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11046 _flag_k = FK_CMP; 11047 RECOMP_BACKEDGE(); 11048 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006524; /* 0x3A00661B: jne 0x3a006524 */ 11049 L_3A006621: 11050 goto L_3A006772; /* 0x3A006621: jmp 0x3a006772 */ 11051 L_3A006626: 11052 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 11053 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 11054 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11056 _flag_k = FK_NARROW(FK_CMP, 24); 11057 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 11058 L_3A00662E: 11059 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 11060 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 11061 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 11062 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 11063 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 11064 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 11065 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 11066 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 11067 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11069 _flag_k = FK_CMP; 11070 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 11071 L_3A006646: 11072 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 11073 L_3A006649: 11074 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 11075 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 11076 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 11077 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 11078 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11080 _flag_k = FK_CMP; 11081 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 11082 L_3A006657: 11083 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 11084 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 11085 L_3A00665C: 11086 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 11087 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 11088 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11090 _flag_k = FK_CMP; 11091 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 11092 L_3A006664: 11093 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 11094 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 11095 L_3A006669: 11096 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 11097 L_3A00666B: 11098 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 11099 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 11100 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 11101 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 11102 L_3A006677: 11103 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 11104 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 11105 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 11106 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 11107 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 11108 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 11109 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 11110 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 11111 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 11112 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 11113 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 11114 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 11115 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 11116 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11118 _flag_k = FK_CMP; 11119 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 11120 L_3A00669E: 11121 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 11122 L_3A0066A1: 11123 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 11124 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 11125 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 11126 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 11127 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11129 _flag_k = FK_CMP; 11130 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 11131 L_3A0066AF: 11132 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 11133 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 11134 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 11135 L_3A0066B9: 11136 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 11137 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 11138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11140 _flag_k = FK_CMP; 11141 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 11142 L_3A0066C0: 11143 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 11144 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 11145 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 11146 L_3A0066C9: 11147 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 11148 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 11149 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 11150 L_3A0066D3: 11151 edx = MEM32(ecx); /* 0x3A0066D3: mov edx, dword ptr [ecx] */ 11152 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0066D5: cmp byte ptr [edx + 0x28], bl */ 11153 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11155 _flag_k = FK_NARROW(FK_CMP, 24); 11156 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006721; /* 0x3A0066D8: jne 0x3a006721 */ 11157 L_3A0066DA: 11158 edx = MEM32(ecx + 0x8); /* 0x3A0066DA: mov edx, dword ptr [ecx + 8] */ 11159 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0066DD: mov byte ptr [edx + 0x28], bl */ 11160 edx = MEM32(ecx + 0x8); /* 0x3A0066E0: mov edx, dword ptr [ecx + 8] */ 11161 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0066E3: mov byte ptr [ecx + 0x28], 0 */ 11162 esi = MEM32(edx); /* 0x3A0066E7: mov esi, dword ptr [edx] */ 11163 MEM32(ecx + 0x8) = esi; /* 0x3A0066E9: mov dword ptr [ecx + 8], esi */ 11164 esi = MEM32(edx); /* 0x3A0066EC: mov esi, dword ptr [edx] */ 11165 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0066EE: cmp esi, dword ptr [edi + 8] */ 11166 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11168 _flag_k = FK_CMP; 11169 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066F6; /* 0x3A0066F1: je 0x3a0066f6 */ 11170 L_3A0066F3: 11171 MEM32(esi + 0x4) = ecx; /* 0x3A0066F3: mov dword ptr [esi + 4], ecx */ 11172 L_3A0066F6: 11173 esi = MEM32(ecx + 0x4); /* 0x3A0066F6: mov esi, dword ptr [ecx + 4] */ 11174 MEM32(edx + 0x4) = esi; /* 0x3A0066F9: mov dword ptr [edx + 4], esi */ 11175 esi = MEM32(edi + 0x4); /* 0x3A0066FC: mov esi, dword ptr [edi + 4] */ 11176 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066FF: cmp ecx, dword ptr [esi + 4] */ 11177 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11179 _flag_k = FK_CMP; 11180 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006709; /* 0x3A006702: jne 0x3a006709 */ 11181 L_3A006704: 11182 MEM32(esi + 0x4) = edx; /* 0x3A006704: mov dword ptr [esi + 4], edx */ 11183 goto L_3A006717; /* 0x3A006707: jmp 0x3a006717 */ 11184 L_3A006709: 11185 esi = MEM32(ecx + 0x4); /* 0x3A006709: mov esi, dword ptr [ecx + 4] */ 11186 /* cmp ecx, MEM32(esi) */ /* 0x3A00670C: cmp ecx, dword ptr [esi] */ 11187 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11189 _flag_k = FK_CMP; 11190 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006714; /* 0x3A00670E: jne 0x3a006714 */ 11191 L_3A006710: 11192 MEM32(esi) = edx; /* 0x3A006710: mov dword ptr [esi], edx */ 11193 goto L_3A006717; /* 0x3A006712: jmp 0x3a006717 */ 11194 L_3A006714: 11195 MEM32(esi + 0x8) = edx; /* 0x3A006714: mov dword ptr [esi + 8], edx */ 11196 L_3A006717: 11197 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 11198 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 11199 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 11200 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 11201 L_3A006721: 11202 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 11203 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 11204 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 11205 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 11206 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 11207 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 11208 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 11209 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 11210 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 11211 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 11212 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 11213 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 11214 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 11215 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11217 _flag_k = FK_CMP; 11218 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 11219 L_3A006747: 11220 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 11221 L_3A00674A: 11222 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 11223 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 11224 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 11225 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 11226 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11228 _flag_k = FK_CMP; 11229 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 11230 L_3A006758: 11231 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 11232 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 11233 L_3A00675D: 11234 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 11235 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 11236 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11238 _flag_k = FK_CMP; 11239 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 11240 L_3A006765: 11241 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 11242 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 11243 L_3A00676A: 11244 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 11245 L_3A00676C: 11246 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 11247 L_3A00676F: 11248 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 11249 L_3A006772: 11250 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 11251 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 11252 PUSH32(esp, edx); /* 0x3A006778: push edx */ 11253 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 11254 RECOMP_FLAGS_IN(); 11255 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 11256 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 11257 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11259 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 11260 _flag_k = FK_ADD; 11261 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11262 eax = eax - 1; /* 0x3A006787: dec eax */ 11263 _flag_k = FK_DEC; 11264 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 11265 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 11266 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 11267 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 11268 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 11269 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 11270 esp = ebp; /* 0x3A006793: mov esp, ebp */ 11271 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 11272 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 11273 RECOMP_REGS_OUT(); 11274 } 11275 11276 void sub_3A0065A4(void) { 11277 int _fpu_cmp = 0; 11278 uint32_t _cf = 0; 11279 int _df = 1; 11280 uint32_t _flag_k = FK_NONE; 11281 uint32_t _flag_a = 0, _flag_b = 0; 11282 uint32_t _itail_tgt = 0; 11283 RECOMP_REGS_LOCALS 11284 RECOMP_ENTER(0x3A0065A4u); 11285 11286 goto L_3A0065A4; 11287 L_3A006524: 11288 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3A006524: cmp byte ptr [eax + 0x28], bl */ 11289 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11291 _flag_k = FK_NARROW(FK_CMP, 24); 11292 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A006527: jne 0x3a006772 */ 11293 L_3A00652D: 11294 edx = MEM32(eax + 0x4); /* 0x3A00652D: mov edx, dword ptr [eax + 4] */ 11295 ecx = MEM32(edx); /* 0x3A006530: mov ecx, dword ptr [edx] */ 11296 /* cmp eax, ecx */ /* 0x3A006532: cmp eax, ecx */ 11297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11299 _flag_k = FK_CMP; 11300 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065A4; /* 0x3A006534: jne 0x3a0065a4 */ 11301 L_3A006536: 11302 ecx = MEM32(edx + 0x8); /* 0x3A006536: mov ecx, dword ptr [edx + 8] */ 11303 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006539: mov dl, byte ptr [ecx + 0x28] */ 11304 /* test LO8(edx), LO8(edx) */ /* 0x3A00653C: test dl, dl */ 11305 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11306 _cf = 0; 11307 _flag_k = FK_NARROW(FK_TEST, 24); 11308 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00658B; /* 0x3A00653E: jne 0x3a00658b */ 11309 L_3A006540: 11310 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006540: mov byte ptr [ecx + 0x28], bl */ 11311 ecx = MEM32(eax + 0x4); /* 0x3A006543: mov ecx, dword ptr [eax + 4] */ 11312 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006546: mov byte ptr [ecx + 0x28], 0 */ 11313 ecx = MEM32(eax + 0x4); /* 0x3A00654A: mov ecx, dword ptr [eax + 4] */ 11314 edx = MEM32(ecx + 0x8); /* 0x3A00654D: mov edx, dword ptr [ecx + 8] */ 11315 esi = MEM32(edx); /* 0x3A006550: mov esi, dword ptr [edx] */ 11316 MEM32(ecx + 0x8) = esi; /* 0x3A006552: mov dword ptr [ecx + 8], esi */ 11317 esi = MEM32(edx); /* 0x3A006555: mov esi, dword ptr [edx] */ 11318 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006557: cmp esi, dword ptr [edi + 8] */ 11319 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11321 _flag_k = FK_CMP; 11322 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00655F; /* 0x3A00655A: je 0x3a00655f */ 11323 L_3A00655C: 11324 MEM32(esi + 0x4) = ecx; /* 0x3A00655C: mov dword ptr [esi + 4], ecx */ 11325 L_3A00655F: 11326 esi = MEM32(ecx + 0x4); /* 0x3A00655F: mov esi, dword ptr [ecx + 4] */ 11327 MEM32(edx + 0x4) = esi; /* 0x3A006562: mov dword ptr [edx + 4], esi */ 11328 esi = MEM32(edi + 0x4); /* 0x3A006565: mov esi, dword ptr [edi + 4] */ 11329 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006568: cmp ecx, dword ptr [esi + 4] */ 11330 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11332 _flag_k = FK_CMP; 11333 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006572; /* 0x3A00656B: jne 0x3a006572 */ 11334 L_3A00656D: 11335 MEM32(esi + 0x4) = edx; /* 0x3A00656D: mov dword ptr [esi + 4], edx */ 11336 goto L_3A006580; /* 0x3A006570: jmp 0x3a006580 */ 11337 L_3A006572: 11338 esi = MEM32(ecx + 0x4); /* 0x3A006572: mov esi, dword ptr [ecx + 4] */ 11339 /* cmp ecx, MEM32(esi) */ /* 0x3A006575: cmp ecx, dword ptr [esi] */ 11340 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11342 _flag_k = FK_CMP; 11343 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00657D; /* 0x3A006577: jne 0x3a00657d */ 11344 L_3A006579: 11345 MEM32(esi) = edx; /* 0x3A006579: mov dword ptr [esi], edx */ 11346 goto L_3A006580; /* 0x3A00657B: jmp 0x3a006580 */ 11347 L_3A00657D: 11348 MEM32(esi + 0x8) = edx; /* 0x3A00657D: mov dword ptr [esi + 8], edx */ 11349 L_3A006580: 11350 MEM32(edx) = ecx; /* 0x3A006580: mov dword ptr [edx], ecx */ 11351 MEM32(ecx + 0x4) = edx; /* 0x3A006582: mov dword ptr [ecx + 4], edx */ 11352 edx = MEM32(eax + 0x4); /* 0x3A006585: mov edx, dword ptr [eax + 4] */ 11353 ecx = MEM32(edx + 0x8); /* 0x3A006588: mov ecx, dword ptr [edx + 8] */ 11354 L_3A00658B: 11355 edx = MEM32(ecx); /* 0x3A00658B: mov edx, dword ptr [ecx] */ 11356 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A00658D: cmp byte ptr [edx + 0x28], bl */ 11357 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11359 _flag_k = FK_NARROW(FK_CMP, 24); 11360 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A006590: jne 0x3a006626 */ 11361 L_3A006596: 11362 edx = MEM32(ecx + 0x8); /* 0x3A006596: mov edx, dword ptr [ecx + 8] */ 11363 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006599: cmp byte ptr [edx + 0x28], bl */ 11364 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11366 _flag_k = FK_NARROW(FK_CMP, 24); 11367 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A00659C: jne 0x3a006626 */ 11368 L_3A0065A2: 11369 goto L_3A00660E; /* 0x3A0065A2: jmp 0x3a00660e */ 11370 L_3A0065A4: 11371 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0065A4: mov dl, byte ptr [ecx + 0x28] */ 11372 /* test LO8(edx), LO8(edx) */ /* 0x3A0065A7: test dl, dl */ 11373 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11374 _cf = 0; 11375 _flag_k = FK_NARROW(FK_TEST, 24); 11376 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0065F7; /* 0x3A0065A9: jne 0x3a0065f7 */ 11377 L_3A0065AB: 11378 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0065AB: mov byte ptr [ecx + 0x28], bl */ 11379 ecx = MEM32(eax + 0x4); /* 0x3A0065AE: mov ecx, dword ptr [eax + 4] */ 11380 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0065B1: mov byte ptr [ecx + 0x28], 0 */ 11381 ecx = MEM32(eax + 0x4); /* 0x3A0065B5: mov ecx, dword ptr [eax + 4] */ 11382 edx = MEM32(ecx); /* 0x3A0065B8: mov edx, dword ptr [ecx] */ 11383 esi = MEM32(edx + 0x8); /* 0x3A0065BA: mov esi, dword ptr [edx + 8] */ 11384 MEM32(ecx) = esi; /* 0x3A0065BD: mov dword ptr [ecx], esi */ 11385 esi = MEM32(edx + 0x8); /* 0x3A0065BF: mov esi, dword ptr [edx + 8] */ 11386 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0065C2: cmp esi, dword ptr [edi + 8] */ 11387 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11389 _flag_k = FK_CMP; 11390 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0065CA; /* 0x3A0065C5: je 0x3a0065ca */ 11391 L_3A0065C7: 11392 MEM32(esi + 0x4) = ecx; /* 0x3A0065C7: mov dword ptr [esi + 4], ecx */ 11393 L_3A0065CA: 11394 esi = MEM32(ecx + 0x4); /* 0x3A0065CA: mov esi, dword ptr [ecx + 4] */ 11395 MEM32(edx + 0x4) = esi; /* 0x3A0065CD: mov dword ptr [edx + 4], esi */ 11396 esi = MEM32(edi + 0x4); /* 0x3A0065D0: mov esi, dword ptr [edi + 4] */ 11397 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0065D3: cmp ecx, dword ptr [esi + 4] */ 11398 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11400 _flag_k = FK_CMP; 11401 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065DD; /* 0x3A0065D6: jne 0x3a0065dd */ 11402 L_3A0065D8: 11403 MEM32(esi + 0x4) = edx; /* 0x3A0065D8: mov dword ptr [esi + 4], edx */ 11404 goto L_3A0065EC; /* 0x3A0065DB: jmp 0x3a0065ec */ 11405 L_3A0065DD: 11406 esi = MEM32(ecx + 0x4); /* 0x3A0065DD: mov esi, dword ptr [ecx + 4] */ 11407 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0065E0: cmp ecx, dword ptr [esi + 8] */ 11408 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11409 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11410 _flag_k = FK_CMP; 11411 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065EA; /* 0x3A0065E3: jne 0x3a0065ea */ 11412 L_3A0065E5: 11413 MEM32(esi + 0x8) = edx; /* 0x3A0065E5: mov dword ptr [esi + 8], edx */ 11414 goto L_3A0065EC; /* 0x3A0065E8: jmp 0x3a0065ec */ 11415 L_3A0065EA: 11416 MEM32(esi) = edx; /* 0x3A0065EA: mov dword ptr [esi], edx */ 11417 L_3A0065EC: 11418 MEM32(edx + 0x8) = ecx; /* 0x3A0065EC: mov dword ptr [edx + 8], ecx */ 11419 MEM32(ecx + 0x4) = edx; /* 0x3A0065EF: mov dword ptr [ecx + 4], edx */ 11420 edx = MEM32(eax + 0x4); /* 0x3A0065F2: mov edx, dword ptr [eax + 4] */ 11421 ecx = MEM32(edx); /* 0x3A0065F5: mov ecx, dword ptr [edx] */ 11422 L_3A0065F7: 11423 edx = MEM32(ecx + 0x8); /* 0x3A0065F7: mov edx, dword ptr [ecx + 8] */ 11424 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0065FA: cmp byte ptr [edx + 0x28], bl */ 11425 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11427 _flag_k = FK_NARROW(FK_CMP, 24); 11428 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A0065FD: jne 0x3a0066d3 */ 11429 L_3A006603: 11430 edx = MEM32(ecx); /* 0x3A006603: mov edx, dword ptr [ecx] */ 11431 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006605: cmp byte ptr [edx + 0x28], bl */ 11432 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11434 _flag_k = FK_NARROW(FK_CMP, 24); 11435 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A006608: jne 0x3a0066d3 */ 11436 L_3A00660E: 11437 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A00660E: mov byte ptr [ecx + 0x28], 0 */ 11438 ecx = MEM32(edi + 0x4); /* 0x3A006612: mov ecx, dword ptr [edi + 4] */ 11439 eax = MEM32(eax + 0x4); /* 0x3A006615: mov eax, dword ptr [eax + 4] */ 11440 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006618: cmp eax, dword ptr [ecx + 4] */ 11441 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11443 _flag_k = FK_CMP; 11444 RECOMP_BACKEDGE(); 11445 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006524; /* 0x3A00661B: jne 0x3a006524 */ 11446 L_3A006621: 11447 goto L_3A006772; /* 0x3A006621: jmp 0x3a006772 */ 11448 L_3A006626: 11449 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 11450 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 11451 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11453 _flag_k = FK_NARROW(FK_CMP, 24); 11454 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 11455 L_3A00662E: 11456 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 11457 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 11458 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 11459 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 11460 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 11461 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 11462 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 11463 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 11464 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11466 _flag_k = FK_CMP; 11467 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 11468 L_3A006646: 11469 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 11470 L_3A006649: 11471 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 11472 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 11473 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 11474 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 11475 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11477 _flag_k = FK_CMP; 11478 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 11479 L_3A006657: 11480 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 11481 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 11482 L_3A00665C: 11483 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 11484 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 11485 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11486 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11487 _flag_k = FK_CMP; 11488 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 11489 L_3A006664: 11490 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 11491 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 11492 L_3A006669: 11493 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 11494 L_3A00666B: 11495 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 11496 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 11497 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 11498 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 11499 L_3A006677: 11500 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 11501 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 11502 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 11503 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 11504 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 11505 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 11506 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 11507 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 11508 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 11509 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 11510 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 11511 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 11512 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 11513 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11515 _flag_k = FK_CMP; 11516 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 11517 L_3A00669E: 11518 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 11519 L_3A0066A1: 11520 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 11521 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 11522 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 11523 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 11524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11526 _flag_k = FK_CMP; 11527 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 11528 L_3A0066AF: 11529 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 11530 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 11531 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 11532 L_3A0066B9: 11533 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 11534 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 11535 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11537 _flag_k = FK_CMP; 11538 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 11539 L_3A0066C0: 11540 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 11541 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 11542 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 11543 L_3A0066C9: 11544 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 11545 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 11546 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 11547 L_3A0066D3: 11548 edx = MEM32(ecx); /* 0x3A0066D3: mov edx, dword ptr [ecx] */ 11549 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0066D5: cmp byte ptr [edx + 0x28], bl */ 11550 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11552 _flag_k = FK_NARROW(FK_CMP, 24); 11553 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006721; /* 0x3A0066D8: jne 0x3a006721 */ 11554 L_3A0066DA: 11555 edx = MEM32(ecx + 0x8); /* 0x3A0066DA: mov edx, dword ptr [ecx + 8] */ 11556 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0066DD: mov byte ptr [edx + 0x28], bl */ 11557 edx = MEM32(ecx + 0x8); /* 0x3A0066E0: mov edx, dword ptr [ecx + 8] */ 11558 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0066E3: mov byte ptr [ecx + 0x28], 0 */ 11559 esi = MEM32(edx); /* 0x3A0066E7: mov esi, dword ptr [edx] */ 11560 MEM32(ecx + 0x8) = esi; /* 0x3A0066E9: mov dword ptr [ecx + 8], esi */ 11561 esi = MEM32(edx); /* 0x3A0066EC: mov esi, dword ptr [edx] */ 11562 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0066EE: cmp esi, dword ptr [edi + 8] */ 11563 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11565 _flag_k = FK_CMP; 11566 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066F6; /* 0x3A0066F1: je 0x3a0066f6 */ 11567 L_3A0066F3: 11568 MEM32(esi + 0x4) = ecx; /* 0x3A0066F3: mov dword ptr [esi + 4], ecx */ 11569 L_3A0066F6: 11570 esi = MEM32(ecx + 0x4); /* 0x3A0066F6: mov esi, dword ptr [ecx + 4] */ 11571 MEM32(edx + 0x4) = esi; /* 0x3A0066F9: mov dword ptr [edx + 4], esi */ 11572 esi = MEM32(edi + 0x4); /* 0x3A0066FC: mov esi, dword ptr [edi + 4] */ 11573 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066FF: cmp ecx, dword ptr [esi + 4] */ 11574 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11576 _flag_k = FK_CMP; 11577 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006709; /* 0x3A006702: jne 0x3a006709 */ 11578 L_3A006704: 11579 MEM32(esi + 0x4) = edx; /* 0x3A006704: mov dword ptr [esi + 4], edx */ 11580 goto L_3A006717; /* 0x3A006707: jmp 0x3a006717 */ 11581 L_3A006709: 11582 esi = MEM32(ecx + 0x4); /* 0x3A006709: mov esi, dword ptr [ecx + 4] */ 11583 /* cmp ecx, MEM32(esi) */ /* 0x3A00670C: cmp ecx, dword ptr [esi] */ 11584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11586 _flag_k = FK_CMP; 11587 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006714; /* 0x3A00670E: jne 0x3a006714 */ 11588 L_3A006710: 11589 MEM32(esi) = edx; /* 0x3A006710: mov dword ptr [esi], edx */ 11590 goto L_3A006717; /* 0x3A006712: jmp 0x3a006717 */ 11591 L_3A006714: 11592 MEM32(esi + 0x8) = edx; /* 0x3A006714: mov dword ptr [esi + 8], edx */ 11593 L_3A006717: 11594 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 11595 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 11596 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 11597 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 11598 L_3A006721: 11599 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 11600 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 11601 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 11602 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 11603 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 11604 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 11605 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 11606 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 11607 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 11608 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 11609 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 11610 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 11611 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 11612 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11614 _flag_k = FK_CMP; 11615 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 11616 L_3A006747: 11617 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 11618 L_3A00674A: 11619 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 11620 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 11621 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 11622 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 11623 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11625 _flag_k = FK_CMP; 11626 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 11627 L_3A006758: 11628 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 11629 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 11630 L_3A00675D: 11631 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 11632 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 11633 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11635 _flag_k = FK_CMP; 11636 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 11637 L_3A006765: 11638 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 11639 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 11640 L_3A00676A: 11641 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 11642 L_3A00676C: 11643 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 11644 L_3A00676F: 11645 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 11646 L_3A006772: 11647 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 11648 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 11649 PUSH32(esp, edx); /* 0x3A006778: push edx */ 11650 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 11651 RECOMP_FLAGS_IN(); 11652 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 11653 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 11654 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11655 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11656 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 11657 _flag_k = FK_ADD; 11658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11659 eax = eax - 1; /* 0x3A006787: dec eax */ 11660 _flag_k = FK_DEC; 11661 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 11662 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 11663 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 11664 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 11665 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 11666 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 11667 esp = ebp; /* 0x3A006793: mov esp, ebp */ 11668 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 11669 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 11670 RECOMP_REGS_OUT(); 11671 } 11672 11673 void sub_3A0065EC(void) { 11674 int _fpu_cmp = 0; 11675 uint32_t _cf = 0; 11676 int _df = 1; 11677 uint32_t _flag_k = FK_NONE; 11678 uint32_t _flag_a = 0, _flag_b = 0; 11679 uint32_t _itail_tgt = 0; 11680 RECOMP_REGS_LOCALS 11681 RECOMP_ENTER(0x3A0065ECu); 11682 11683 goto L_3A0065EC; 11684 L_3A006524: 11685 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3A006524: cmp byte ptr [eax + 0x28], bl */ 11686 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11688 _flag_k = FK_NARROW(FK_CMP, 24); 11689 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A006527: jne 0x3a006772 */ 11690 L_3A00652D: 11691 edx = MEM32(eax + 0x4); /* 0x3A00652D: mov edx, dword ptr [eax + 4] */ 11692 ecx = MEM32(edx); /* 0x3A006530: mov ecx, dword ptr [edx] */ 11693 /* cmp eax, ecx */ /* 0x3A006532: cmp eax, ecx */ 11694 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11696 _flag_k = FK_CMP; 11697 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065A4; /* 0x3A006534: jne 0x3a0065a4 */ 11698 L_3A006536: 11699 ecx = MEM32(edx + 0x8); /* 0x3A006536: mov ecx, dword ptr [edx + 8] */ 11700 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006539: mov dl, byte ptr [ecx + 0x28] */ 11701 /* test LO8(edx), LO8(edx) */ /* 0x3A00653C: test dl, dl */ 11702 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11703 _cf = 0; 11704 _flag_k = FK_NARROW(FK_TEST, 24); 11705 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00658B; /* 0x3A00653E: jne 0x3a00658b */ 11706 L_3A006540: 11707 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006540: mov byte ptr [ecx + 0x28], bl */ 11708 ecx = MEM32(eax + 0x4); /* 0x3A006543: mov ecx, dword ptr [eax + 4] */ 11709 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006546: mov byte ptr [ecx + 0x28], 0 */ 11710 ecx = MEM32(eax + 0x4); /* 0x3A00654A: mov ecx, dword ptr [eax + 4] */ 11711 edx = MEM32(ecx + 0x8); /* 0x3A00654D: mov edx, dword ptr [ecx + 8] */ 11712 esi = MEM32(edx); /* 0x3A006550: mov esi, dword ptr [edx] */ 11713 MEM32(ecx + 0x8) = esi; /* 0x3A006552: mov dword ptr [ecx + 8], esi */ 11714 esi = MEM32(edx); /* 0x3A006555: mov esi, dword ptr [edx] */ 11715 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006557: cmp esi, dword ptr [edi + 8] */ 11716 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11718 _flag_k = FK_CMP; 11719 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00655F; /* 0x3A00655A: je 0x3a00655f */ 11720 L_3A00655C: 11721 MEM32(esi + 0x4) = ecx; /* 0x3A00655C: mov dword ptr [esi + 4], ecx */ 11722 L_3A00655F: 11723 esi = MEM32(ecx + 0x4); /* 0x3A00655F: mov esi, dword ptr [ecx + 4] */ 11724 MEM32(edx + 0x4) = esi; /* 0x3A006562: mov dword ptr [edx + 4], esi */ 11725 esi = MEM32(edi + 0x4); /* 0x3A006565: mov esi, dword ptr [edi + 4] */ 11726 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006568: cmp ecx, dword ptr [esi + 4] */ 11727 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11729 _flag_k = FK_CMP; 11730 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006572; /* 0x3A00656B: jne 0x3a006572 */ 11731 L_3A00656D: 11732 MEM32(esi + 0x4) = edx; /* 0x3A00656D: mov dword ptr [esi + 4], edx */ 11733 goto L_3A006580; /* 0x3A006570: jmp 0x3a006580 */ 11734 L_3A006572: 11735 esi = MEM32(ecx + 0x4); /* 0x3A006572: mov esi, dword ptr [ecx + 4] */ 11736 /* cmp ecx, MEM32(esi) */ /* 0x3A006575: cmp ecx, dword ptr [esi] */ 11737 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11739 _flag_k = FK_CMP; 11740 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00657D; /* 0x3A006577: jne 0x3a00657d */ 11741 L_3A006579: 11742 MEM32(esi) = edx; /* 0x3A006579: mov dword ptr [esi], edx */ 11743 goto L_3A006580; /* 0x3A00657B: jmp 0x3a006580 */ 11744 L_3A00657D: 11745 MEM32(esi + 0x8) = edx; /* 0x3A00657D: mov dword ptr [esi + 8], edx */ 11746 L_3A006580: 11747 MEM32(edx) = ecx; /* 0x3A006580: mov dword ptr [edx], ecx */ 11748 MEM32(ecx + 0x4) = edx; /* 0x3A006582: mov dword ptr [ecx + 4], edx */ 11749 edx = MEM32(eax + 0x4); /* 0x3A006585: mov edx, dword ptr [eax + 4] */ 11750 ecx = MEM32(edx + 0x8); /* 0x3A006588: mov ecx, dword ptr [edx + 8] */ 11751 L_3A00658B: 11752 edx = MEM32(ecx); /* 0x3A00658B: mov edx, dword ptr [ecx] */ 11753 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A00658D: cmp byte ptr [edx + 0x28], bl */ 11754 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11756 _flag_k = FK_NARROW(FK_CMP, 24); 11757 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A006590: jne 0x3a006626 */ 11758 L_3A006596: 11759 edx = MEM32(ecx + 0x8); /* 0x3A006596: mov edx, dword ptr [ecx + 8] */ 11760 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006599: cmp byte ptr [edx + 0x28], bl */ 11761 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11763 _flag_k = FK_NARROW(FK_CMP, 24); 11764 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A00659C: jne 0x3a006626 */ 11765 L_3A0065A2: 11766 goto L_3A00660E; /* 0x3A0065A2: jmp 0x3a00660e */ 11767 L_3A0065A4: 11768 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0065A4: mov dl, byte ptr [ecx + 0x28] */ 11769 /* test LO8(edx), LO8(edx) */ /* 0x3A0065A7: test dl, dl */ 11770 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11771 _cf = 0; 11772 _flag_k = FK_NARROW(FK_TEST, 24); 11773 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0065F7; /* 0x3A0065A9: jne 0x3a0065f7 */ 11774 L_3A0065AB: 11775 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0065AB: mov byte ptr [ecx + 0x28], bl */ 11776 ecx = MEM32(eax + 0x4); /* 0x3A0065AE: mov ecx, dword ptr [eax + 4] */ 11777 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0065B1: mov byte ptr [ecx + 0x28], 0 */ 11778 ecx = MEM32(eax + 0x4); /* 0x3A0065B5: mov ecx, dword ptr [eax + 4] */ 11779 edx = MEM32(ecx); /* 0x3A0065B8: mov edx, dword ptr [ecx] */ 11780 esi = MEM32(edx + 0x8); /* 0x3A0065BA: mov esi, dword ptr [edx + 8] */ 11781 MEM32(ecx) = esi; /* 0x3A0065BD: mov dword ptr [ecx], esi */ 11782 esi = MEM32(edx + 0x8); /* 0x3A0065BF: mov esi, dword ptr [edx + 8] */ 11783 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0065C2: cmp esi, dword ptr [edi + 8] */ 11784 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11786 _flag_k = FK_CMP; 11787 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0065CA; /* 0x3A0065C5: je 0x3a0065ca */ 11788 L_3A0065C7: 11789 MEM32(esi + 0x4) = ecx; /* 0x3A0065C7: mov dword ptr [esi + 4], ecx */ 11790 L_3A0065CA: 11791 esi = MEM32(ecx + 0x4); /* 0x3A0065CA: mov esi, dword ptr [ecx + 4] */ 11792 MEM32(edx + 0x4) = esi; /* 0x3A0065CD: mov dword ptr [edx + 4], esi */ 11793 esi = MEM32(edi + 0x4); /* 0x3A0065D0: mov esi, dword ptr [edi + 4] */ 11794 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0065D3: cmp ecx, dword ptr [esi + 4] */ 11795 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11797 _flag_k = FK_CMP; 11798 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065DD; /* 0x3A0065D6: jne 0x3a0065dd */ 11799 L_3A0065D8: 11800 MEM32(esi + 0x4) = edx; /* 0x3A0065D8: mov dword ptr [esi + 4], edx */ 11801 goto L_3A0065EC; /* 0x3A0065DB: jmp 0x3a0065ec */ 11802 L_3A0065DD: 11803 esi = MEM32(ecx + 0x4); /* 0x3A0065DD: mov esi, dword ptr [ecx + 4] */ 11804 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0065E0: cmp ecx, dword ptr [esi + 8] */ 11805 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11807 _flag_k = FK_CMP; 11808 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065EA; /* 0x3A0065E3: jne 0x3a0065ea */ 11809 L_3A0065E5: 11810 MEM32(esi + 0x8) = edx; /* 0x3A0065E5: mov dword ptr [esi + 8], edx */ 11811 goto L_3A0065EC; /* 0x3A0065E8: jmp 0x3a0065ec */ 11812 L_3A0065EA: 11813 MEM32(esi) = edx; /* 0x3A0065EA: mov dword ptr [esi], edx */ 11814 L_3A0065EC: 11815 MEM32(edx + 0x8) = ecx; /* 0x3A0065EC: mov dword ptr [edx + 8], ecx */ 11816 MEM32(ecx + 0x4) = edx; /* 0x3A0065EF: mov dword ptr [ecx + 4], edx */ 11817 edx = MEM32(eax + 0x4); /* 0x3A0065F2: mov edx, dword ptr [eax + 4] */ 11818 ecx = MEM32(edx); /* 0x3A0065F5: mov ecx, dword ptr [edx] */ 11819 L_3A0065F7: 11820 edx = MEM32(ecx + 0x8); /* 0x3A0065F7: mov edx, dword ptr [ecx + 8] */ 11821 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0065FA: cmp byte ptr [edx + 0x28], bl */ 11822 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11824 _flag_k = FK_NARROW(FK_CMP, 24); 11825 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A0065FD: jne 0x3a0066d3 */ 11826 L_3A006603: 11827 edx = MEM32(ecx); /* 0x3A006603: mov edx, dword ptr [ecx] */ 11828 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006605: cmp byte ptr [edx + 0x28], bl */ 11829 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11831 _flag_k = FK_NARROW(FK_CMP, 24); 11832 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A006608: jne 0x3a0066d3 */ 11833 L_3A00660E: 11834 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A00660E: mov byte ptr [ecx + 0x28], 0 */ 11835 ecx = MEM32(edi + 0x4); /* 0x3A006612: mov ecx, dword ptr [edi + 4] */ 11836 eax = MEM32(eax + 0x4); /* 0x3A006615: mov eax, dword ptr [eax + 4] */ 11837 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006618: cmp eax, dword ptr [ecx + 4] */ 11838 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11840 _flag_k = FK_CMP; 11841 RECOMP_BACKEDGE(); 11842 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006524; /* 0x3A00661B: jne 0x3a006524 */ 11843 L_3A006621: 11844 goto L_3A006772; /* 0x3A006621: jmp 0x3a006772 */ 11845 L_3A006626: 11846 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 11847 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 11848 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11850 _flag_k = FK_NARROW(FK_CMP, 24); 11851 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 11852 L_3A00662E: 11853 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 11854 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 11855 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 11856 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 11857 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 11858 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 11859 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 11860 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 11861 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11863 _flag_k = FK_CMP; 11864 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 11865 L_3A006646: 11866 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 11867 L_3A006649: 11868 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 11869 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 11870 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 11871 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 11872 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11874 _flag_k = FK_CMP; 11875 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 11876 L_3A006657: 11877 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 11878 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 11879 L_3A00665C: 11880 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 11881 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 11882 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11884 _flag_k = FK_CMP; 11885 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 11886 L_3A006664: 11887 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 11888 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 11889 L_3A006669: 11890 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 11891 L_3A00666B: 11892 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 11893 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 11894 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 11895 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 11896 L_3A006677: 11897 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 11898 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 11899 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 11900 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 11901 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 11902 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 11903 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 11904 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 11905 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 11906 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 11907 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 11908 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 11909 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 11910 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11912 _flag_k = FK_CMP; 11913 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 11914 L_3A00669E: 11915 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 11916 L_3A0066A1: 11917 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 11918 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 11919 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 11920 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 11921 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11923 _flag_k = FK_CMP; 11924 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 11925 L_3A0066AF: 11926 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 11927 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 11928 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 11929 L_3A0066B9: 11930 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 11931 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 11932 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11934 _flag_k = FK_CMP; 11935 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 11936 L_3A0066C0: 11937 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 11938 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 11939 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 11940 L_3A0066C9: 11941 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 11942 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 11943 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 11944 L_3A0066D3: 11945 edx = MEM32(ecx); /* 0x3A0066D3: mov edx, dword ptr [ecx] */ 11946 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0066D5: cmp byte ptr [edx + 0x28], bl */ 11947 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11949 _flag_k = FK_NARROW(FK_CMP, 24); 11950 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006721; /* 0x3A0066D8: jne 0x3a006721 */ 11951 L_3A0066DA: 11952 edx = MEM32(ecx + 0x8); /* 0x3A0066DA: mov edx, dword ptr [ecx + 8] */ 11953 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0066DD: mov byte ptr [edx + 0x28], bl */ 11954 edx = MEM32(ecx + 0x8); /* 0x3A0066E0: mov edx, dword ptr [ecx + 8] */ 11955 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0066E3: mov byte ptr [ecx + 0x28], 0 */ 11956 esi = MEM32(edx); /* 0x3A0066E7: mov esi, dword ptr [edx] */ 11957 MEM32(ecx + 0x8) = esi; /* 0x3A0066E9: mov dword ptr [ecx + 8], esi */ 11958 esi = MEM32(edx); /* 0x3A0066EC: mov esi, dword ptr [edx] */ 11959 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0066EE: cmp esi, dword ptr [edi + 8] */ 11960 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11962 _flag_k = FK_CMP; 11963 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066F6; /* 0x3A0066F1: je 0x3a0066f6 */ 11964 L_3A0066F3: 11965 MEM32(esi + 0x4) = ecx; /* 0x3A0066F3: mov dword ptr [esi + 4], ecx */ 11966 L_3A0066F6: 11967 esi = MEM32(ecx + 0x4); /* 0x3A0066F6: mov esi, dword ptr [ecx + 4] */ 11968 MEM32(edx + 0x4) = esi; /* 0x3A0066F9: mov dword ptr [edx + 4], esi */ 11969 esi = MEM32(edi + 0x4); /* 0x3A0066FC: mov esi, dword ptr [edi + 4] */ 11970 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066FF: cmp ecx, dword ptr [esi + 4] */ 11971 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11973 _flag_k = FK_CMP; 11974 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006709; /* 0x3A006702: jne 0x3a006709 */ 11975 L_3A006704: 11976 MEM32(esi + 0x4) = edx; /* 0x3A006704: mov dword ptr [esi + 4], edx */ 11977 goto L_3A006717; /* 0x3A006707: jmp 0x3a006717 */ 11978 L_3A006709: 11979 esi = MEM32(ecx + 0x4); /* 0x3A006709: mov esi, dword ptr [ecx + 4] */ 11980 /* cmp ecx, MEM32(esi) */ /* 0x3A00670C: cmp ecx, dword ptr [esi] */ 11981 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11983 _flag_k = FK_CMP; 11984 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006714; /* 0x3A00670E: jne 0x3a006714 */ 11985 L_3A006710: 11986 MEM32(esi) = edx; /* 0x3A006710: mov dword ptr [esi], edx */ 11987 goto L_3A006717; /* 0x3A006712: jmp 0x3a006717 */ 11988 L_3A006714: 11989 MEM32(esi + 0x8) = edx; /* 0x3A006714: mov dword ptr [esi + 8], edx */ 11990 L_3A006717: 11991 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 11992 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 11993 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 11994 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 11995 L_3A006721: 11996 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 11997 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 11998 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 11999 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 12000 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 12001 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 12002 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 12003 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 12004 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 12005 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 12006 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 12007 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 12008 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 12009 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12011 _flag_k = FK_CMP; 12012 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 12013 L_3A006747: 12014 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 12015 L_3A00674A: 12016 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 12017 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 12018 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 12019 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 12020 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12022 _flag_k = FK_CMP; 12023 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 12024 L_3A006758: 12025 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 12026 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 12027 L_3A00675D: 12028 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 12029 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 12030 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12032 _flag_k = FK_CMP; 12033 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 12034 L_3A006765: 12035 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 12036 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 12037 L_3A00676A: 12038 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 12039 L_3A00676C: 12040 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 12041 L_3A00676F: 12042 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 12043 L_3A006772: 12044 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 12045 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 12046 PUSH32(esp, edx); /* 0x3A006778: push edx */ 12047 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 12048 RECOMP_FLAGS_IN(); 12049 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 12050 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 12051 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12052 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12053 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 12054 _flag_k = FK_ADD; 12055 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12056 eax = eax - 1; /* 0x3A006787: dec eax */ 12057 _flag_k = FK_DEC; 12058 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 12059 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 12060 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 12061 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 12062 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 12063 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 12064 esp = ebp; /* 0x3A006793: mov esp, ebp */ 12065 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 12066 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 12067 RECOMP_REGS_OUT(); 12068 } 12069 12070 void sub_3A0065F7(void) { 12071 int _fpu_cmp = 0; 12072 uint32_t _cf = 0; 12073 int _df = 1; 12074 uint32_t _flag_k = FK_NONE; 12075 uint32_t _flag_a = 0, _flag_b = 0; 12076 uint32_t _itail_tgt = 0; 12077 RECOMP_REGS_LOCALS 12078 RECOMP_ENTER(0x3A0065F7u); 12079 12080 goto L_3A0065F7; 12081 L_3A006524: 12082 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3A006524: cmp byte ptr [eax + 0x28], bl */ 12083 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12085 _flag_k = FK_NARROW(FK_CMP, 24); 12086 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A006527: jne 0x3a006772 */ 12087 L_3A00652D: 12088 edx = MEM32(eax + 0x4); /* 0x3A00652D: mov edx, dword ptr [eax + 4] */ 12089 ecx = MEM32(edx); /* 0x3A006530: mov ecx, dword ptr [edx] */ 12090 /* cmp eax, ecx */ /* 0x3A006532: cmp eax, ecx */ 12091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12093 _flag_k = FK_CMP; 12094 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065A4; /* 0x3A006534: jne 0x3a0065a4 */ 12095 L_3A006536: 12096 ecx = MEM32(edx + 0x8); /* 0x3A006536: mov ecx, dword ptr [edx + 8] */ 12097 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006539: mov dl, byte ptr [ecx + 0x28] */ 12098 /* test LO8(edx), LO8(edx) */ /* 0x3A00653C: test dl, dl */ 12099 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12100 _cf = 0; 12101 _flag_k = FK_NARROW(FK_TEST, 24); 12102 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00658B; /* 0x3A00653E: jne 0x3a00658b */ 12103 L_3A006540: 12104 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006540: mov byte ptr [ecx + 0x28], bl */ 12105 ecx = MEM32(eax + 0x4); /* 0x3A006543: mov ecx, dword ptr [eax + 4] */ 12106 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006546: mov byte ptr [ecx + 0x28], 0 */ 12107 ecx = MEM32(eax + 0x4); /* 0x3A00654A: mov ecx, dword ptr [eax + 4] */ 12108 edx = MEM32(ecx + 0x8); /* 0x3A00654D: mov edx, dword ptr [ecx + 8] */ 12109 esi = MEM32(edx); /* 0x3A006550: mov esi, dword ptr [edx] */ 12110 MEM32(ecx + 0x8) = esi; /* 0x3A006552: mov dword ptr [ecx + 8], esi */ 12111 esi = MEM32(edx); /* 0x3A006555: mov esi, dword ptr [edx] */ 12112 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006557: cmp esi, dword ptr [edi + 8] */ 12113 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12115 _flag_k = FK_CMP; 12116 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00655F; /* 0x3A00655A: je 0x3a00655f */ 12117 L_3A00655C: 12118 MEM32(esi + 0x4) = ecx; /* 0x3A00655C: mov dword ptr [esi + 4], ecx */ 12119 L_3A00655F: 12120 esi = MEM32(ecx + 0x4); /* 0x3A00655F: mov esi, dword ptr [ecx + 4] */ 12121 MEM32(edx + 0x4) = esi; /* 0x3A006562: mov dword ptr [edx + 4], esi */ 12122 esi = MEM32(edi + 0x4); /* 0x3A006565: mov esi, dword ptr [edi + 4] */ 12123 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006568: cmp ecx, dword ptr [esi + 4] */ 12124 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12126 _flag_k = FK_CMP; 12127 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006572; /* 0x3A00656B: jne 0x3a006572 */ 12128 L_3A00656D: 12129 MEM32(esi + 0x4) = edx; /* 0x3A00656D: mov dword ptr [esi + 4], edx */ 12130 goto L_3A006580; /* 0x3A006570: jmp 0x3a006580 */ 12131 L_3A006572: 12132 esi = MEM32(ecx + 0x4); /* 0x3A006572: mov esi, dword ptr [ecx + 4] */ 12133 /* cmp ecx, MEM32(esi) */ /* 0x3A006575: cmp ecx, dword ptr [esi] */ 12134 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12136 _flag_k = FK_CMP; 12137 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00657D; /* 0x3A006577: jne 0x3a00657d */ 12138 L_3A006579: 12139 MEM32(esi) = edx; /* 0x3A006579: mov dword ptr [esi], edx */ 12140 goto L_3A006580; /* 0x3A00657B: jmp 0x3a006580 */ 12141 L_3A00657D: 12142 MEM32(esi + 0x8) = edx; /* 0x3A00657D: mov dword ptr [esi + 8], edx */ 12143 L_3A006580: 12144 MEM32(edx) = ecx; /* 0x3A006580: mov dword ptr [edx], ecx */ 12145 MEM32(ecx + 0x4) = edx; /* 0x3A006582: mov dword ptr [ecx + 4], edx */ 12146 edx = MEM32(eax + 0x4); /* 0x3A006585: mov edx, dword ptr [eax + 4] */ 12147 ecx = MEM32(edx + 0x8); /* 0x3A006588: mov ecx, dword ptr [edx + 8] */ 12148 L_3A00658B: 12149 edx = MEM32(ecx); /* 0x3A00658B: mov edx, dword ptr [ecx] */ 12150 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A00658D: cmp byte ptr [edx + 0x28], bl */ 12151 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12153 _flag_k = FK_NARROW(FK_CMP, 24); 12154 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A006590: jne 0x3a006626 */ 12155 L_3A006596: 12156 edx = MEM32(ecx + 0x8); /* 0x3A006596: mov edx, dword ptr [ecx + 8] */ 12157 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006599: cmp byte ptr [edx + 0x28], bl */ 12158 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12160 _flag_k = FK_NARROW(FK_CMP, 24); 12161 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A00659C: jne 0x3a006626 */ 12162 L_3A0065A2: 12163 goto L_3A00660E; /* 0x3A0065A2: jmp 0x3a00660e */ 12164 L_3A0065A4: 12165 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0065A4: mov dl, byte ptr [ecx + 0x28] */ 12166 /* test LO8(edx), LO8(edx) */ /* 0x3A0065A7: test dl, dl */ 12167 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12168 _cf = 0; 12169 _flag_k = FK_NARROW(FK_TEST, 24); 12170 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0065F7; /* 0x3A0065A9: jne 0x3a0065f7 */ 12171 L_3A0065AB: 12172 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0065AB: mov byte ptr [ecx + 0x28], bl */ 12173 ecx = MEM32(eax + 0x4); /* 0x3A0065AE: mov ecx, dword ptr [eax + 4] */ 12174 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0065B1: mov byte ptr [ecx + 0x28], 0 */ 12175 ecx = MEM32(eax + 0x4); /* 0x3A0065B5: mov ecx, dword ptr [eax + 4] */ 12176 edx = MEM32(ecx); /* 0x3A0065B8: mov edx, dword ptr [ecx] */ 12177 esi = MEM32(edx + 0x8); /* 0x3A0065BA: mov esi, dword ptr [edx + 8] */ 12178 MEM32(ecx) = esi; /* 0x3A0065BD: mov dword ptr [ecx], esi */ 12179 esi = MEM32(edx + 0x8); /* 0x3A0065BF: mov esi, dword ptr [edx + 8] */ 12180 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0065C2: cmp esi, dword ptr [edi + 8] */ 12181 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12183 _flag_k = FK_CMP; 12184 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0065CA; /* 0x3A0065C5: je 0x3a0065ca */ 12185 L_3A0065C7: 12186 MEM32(esi + 0x4) = ecx; /* 0x3A0065C7: mov dword ptr [esi + 4], ecx */ 12187 L_3A0065CA: 12188 esi = MEM32(ecx + 0x4); /* 0x3A0065CA: mov esi, dword ptr [ecx + 4] */ 12189 MEM32(edx + 0x4) = esi; /* 0x3A0065CD: mov dword ptr [edx + 4], esi */ 12190 esi = MEM32(edi + 0x4); /* 0x3A0065D0: mov esi, dword ptr [edi + 4] */ 12191 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0065D3: cmp ecx, dword ptr [esi + 4] */ 12192 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12194 _flag_k = FK_CMP; 12195 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065DD; /* 0x3A0065D6: jne 0x3a0065dd */ 12196 L_3A0065D8: 12197 MEM32(esi + 0x4) = edx; /* 0x3A0065D8: mov dword ptr [esi + 4], edx */ 12198 goto L_3A0065EC; /* 0x3A0065DB: jmp 0x3a0065ec */ 12199 L_3A0065DD: 12200 esi = MEM32(ecx + 0x4); /* 0x3A0065DD: mov esi, dword ptr [ecx + 4] */ 12201 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0065E0: cmp ecx, dword ptr [esi + 8] */ 12202 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12204 _flag_k = FK_CMP; 12205 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065EA; /* 0x3A0065E3: jne 0x3a0065ea */ 12206 L_3A0065E5: 12207 MEM32(esi + 0x8) = edx; /* 0x3A0065E5: mov dword ptr [esi + 8], edx */ 12208 goto L_3A0065EC; /* 0x3A0065E8: jmp 0x3a0065ec */ 12209 L_3A0065EA: 12210 MEM32(esi) = edx; /* 0x3A0065EA: mov dword ptr [esi], edx */ 12211 L_3A0065EC: 12212 MEM32(edx + 0x8) = ecx; /* 0x3A0065EC: mov dword ptr [edx + 8], ecx */ 12213 MEM32(ecx + 0x4) = edx; /* 0x3A0065EF: mov dword ptr [ecx + 4], edx */ 12214 edx = MEM32(eax + 0x4); /* 0x3A0065F2: mov edx, dword ptr [eax + 4] */ 12215 ecx = MEM32(edx); /* 0x3A0065F5: mov ecx, dword ptr [edx] */ 12216 L_3A0065F7: 12217 edx = MEM32(ecx + 0x8); /* 0x3A0065F7: mov edx, dword ptr [ecx + 8] */ 12218 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0065FA: cmp byte ptr [edx + 0x28], bl */ 12219 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12221 _flag_k = FK_NARROW(FK_CMP, 24); 12222 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A0065FD: jne 0x3a0066d3 */ 12223 L_3A006603: 12224 edx = MEM32(ecx); /* 0x3A006603: mov edx, dword ptr [ecx] */ 12225 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006605: cmp byte ptr [edx + 0x28], bl */ 12226 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12228 _flag_k = FK_NARROW(FK_CMP, 24); 12229 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A006608: jne 0x3a0066d3 */ 12230 L_3A00660E: 12231 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A00660E: mov byte ptr [ecx + 0x28], 0 */ 12232 ecx = MEM32(edi + 0x4); /* 0x3A006612: mov ecx, dword ptr [edi + 4] */ 12233 eax = MEM32(eax + 0x4); /* 0x3A006615: mov eax, dword ptr [eax + 4] */ 12234 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006618: cmp eax, dword ptr [ecx + 4] */ 12235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12237 _flag_k = FK_CMP; 12238 RECOMP_BACKEDGE(); 12239 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006524; /* 0x3A00661B: jne 0x3a006524 */ 12240 L_3A006621: 12241 goto L_3A006772; /* 0x3A006621: jmp 0x3a006772 */ 12242 L_3A006626: 12243 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 12244 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 12245 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12247 _flag_k = FK_NARROW(FK_CMP, 24); 12248 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 12249 L_3A00662E: 12250 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 12251 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 12252 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 12253 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 12254 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 12255 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 12256 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 12257 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 12258 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12260 _flag_k = FK_CMP; 12261 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 12262 L_3A006646: 12263 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 12264 L_3A006649: 12265 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 12266 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 12267 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 12268 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 12269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12271 _flag_k = FK_CMP; 12272 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 12273 L_3A006657: 12274 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 12275 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 12276 L_3A00665C: 12277 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 12278 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 12279 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12281 _flag_k = FK_CMP; 12282 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 12283 L_3A006664: 12284 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 12285 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 12286 L_3A006669: 12287 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 12288 L_3A00666B: 12289 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 12290 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 12291 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 12292 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 12293 L_3A006677: 12294 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 12295 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 12296 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 12297 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 12298 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 12299 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 12300 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 12301 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 12302 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 12303 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 12304 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 12305 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 12306 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 12307 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12309 _flag_k = FK_CMP; 12310 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 12311 L_3A00669E: 12312 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 12313 L_3A0066A1: 12314 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 12315 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 12316 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 12317 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 12318 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12320 _flag_k = FK_CMP; 12321 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 12322 L_3A0066AF: 12323 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 12324 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 12325 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 12326 L_3A0066B9: 12327 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 12328 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 12329 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12331 _flag_k = FK_CMP; 12332 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 12333 L_3A0066C0: 12334 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 12335 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 12336 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 12337 L_3A0066C9: 12338 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 12339 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 12340 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 12341 L_3A0066D3: 12342 edx = MEM32(ecx); /* 0x3A0066D3: mov edx, dword ptr [ecx] */ 12343 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0066D5: cmp byte ptr [edx + 0x28], bl */ 12344 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12346 _flag_k = FK_NARROW(FK_CMP, 24); 12347 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006721; /* 0x3A0066D8: jne 0x3a006721 */ 12348 L_3A0066DA: 12349 edx = MEM32(ecx + 0x8); /* 0x3A0066DA: mov edx, dword ptr [ecx + 8] */ 12350 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0066DD: mov byte ptr [edx + 0x28], bl */ 12351 edx = MEM32(ecx + 0x8); /* 0x3A0066E0: mov edx, dword ptr [ecx + 8] */ 12352 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0066E3: mov byte ptr [ecx + 0x28], 0 */ 12353 esi = MEM32(edx); /* 0x3A0066E7: mov esi, dword ptr [edx] */ 12354 MEM32(ecx + 0x8) = esi; /* 0x3A0066E9: mov dword ptr [ecx + 8], esi */ 12355 esi = MEM32(edx); /* 0x3A0066EC: mov esi, dword ptr [edx] */ 12356 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0066EE: cmp esi, dword ptr [edi + 8] */ 12357 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12359 _flag_k = FK_CMP; 12360 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066F6; /* 0x3A0066F1: je 0x3a0066f6 */ 12361 L_3A0066F3: 12362 MEM32(esi + 0x4) = ecx; /* 0x3A0066F3: mov dword ptr [esi + 4], ecx */ 12363 L_3A0066F6: 12364 esi = MEM32(ecx + 0x4); /* 0x3A0066F6: mov esi, dword ptr [ecx + 4] */ 12365 MEM32(edx + 0x4) = esi; /* 0x3A0066F9: mov dword ptr [edx + 4], esi */ 12366 esi = MEM32(edi + 0x4); /* 0x3A0066FC: mov esi, dword ptr [edi + 4] */ 12367 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066FF: cmp ecx, dword ptr [esi + 4] */ 12368 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12370 _flag_k = FK_CMP; 12371 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006709; /* 0x3A006702: jne 0x3a006709 */ 12372 L_3A006704: 12373 MEM32(esi + 0x4) = edx; /* 0x3A006704: mov dword ptr [esi + 4], edx */ 12374 goto L_3A006717; /* 0x3A006707: jmp 0x3a006717 */ 12375 L_3A006709: 12376 esi = MEM32(ecx + 0x4); /* 0x3A006709: mov esi, dword ptr [ecx + 4] */ 12377 /* cmp ecx, MEM32(esi) */ /* 0x3A00670C: cmp ecx, dword ptr [esi] */ 12378 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12380 _flag_k = FK_CMP; 12381 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006714; /* 0x3A00670E: jne 0x3a006714 */ 12382 L_3A006710: 12383 MEM32(esi) = edx; /* 0x3A006710: mov dword ptr [esi], edx */ 12384 goto L_3A006717; /* 0x3A006712: jmp 0x3a006717 */ 12385 L_3A006714: 12386 MEM32(esi + 0x8) = edx; /* 0x3A006714: mov dword ptr [esi + 8], edx */ 12387 L_3A006717: 12388 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 12389 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 12390 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 12391 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 12392 L_3A006721: 12393 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 12394 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 12395 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 12396 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 12397 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 12398 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 12399 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 12400 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 12401 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 12402 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 12403 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 12404 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 12405 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 12406 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12408 _flag_k = FK_CMP; 12409 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 12410 L_3A006747: 12411 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 12412 L_3A00674A: 12413 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 12414 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 12415 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 12416 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 12417 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12419 _flag_k = FK_CMP; 12420 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 12421 L_3A006758: 12422 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 12423 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 12424 L_3A00675D: 12425 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 12426 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 12427 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12429 _flag_k = FK_CMP; 12430 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 12431 L_3A006765: 12432 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 12433 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 12434 L_3A00676A: 12435 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 12436 L_3A00676C: 12437 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 12438 L_3A00676F: 12439 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 12440 L_3A006772: 12441 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 12442 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 12443 PUSH32(esp, edx); /* 0x3A006778: push edx */ 12444 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 12445 RECOMP_FLAGS_IN(); 12446 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 12447 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 12448 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12449 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12450 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 12451 _flag_k = FK_ADD; 12452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12453 eax = eax - 1; /* 0x3A006787: dec eax */ 12454 _flag_k = FK_DEC; 12455 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 12456 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 12457 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 12458 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 12459 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 12460 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 12461 esp = ebp; /* 0x3A006793: mov esp, ebp */ 12462 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 12463 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 12464 RECOMP_REGS_OUT(); 12465 } 12466 12467 void sub_3A00660E(void) { 12468 int _fpu_cmp = 0; 12469 uint32_t _cf = 0; 12470 int _df = 1; 12471 uint32_t _flag_k = FK_NONE; 12472 uint32_t _flag_a = 0, _flag_b = 0; 12473 uint32_t _itail_tgt = 0; 12474 RECOMP_REGS_LOCALS 12475 RECOMP_ENTER(0x3A00660Eu); 12476 12477 goto L_3A00660E; 12478 L_3A006524: 12479 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3A006524: cmp byte ptr [eax + 0x28], bl */ 12480 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12482 _flag_k = FK_NARROW(FK_CMP, 24); 12483 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006772; /* 0x3A006527: jne 0x3a006772 */ 12484 L_3A00652D: 12485 edx = MEM32(eax + 0x4); /* 0x3A00652D: mov edx, dword ptr [eax + 4] */ 12486 ecx = MEM32(edx); /* 0x3A006530: mov ecx, dword ptr [edx] */ 12487 /* cmp eax, ecx */ /* 0x3A006532: cmp eax, ecx */ 12488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12490 _flag_k = FK_CMP; 12491 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065A4; /* 0x3A006534: jne 0x3a0065a4 */ 12492 L_3A006536: 12493 ecx = MEM32(edx + 0x8); /* 0x3A006536: mov ecx, dword ptr [edx + 8] */ 12494 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A006539: mov dl, byte ptr [ecx + 0x28] */ 12495 /* test LO8(edx), LO8(edx) */ /* 0x3A00653C: test dl, dl */ 12496 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12497 _cf = 0; 12498 _flag_k = FK_NARROW(FK_TEST, 24); 12499 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00658B; /* 0x3A00653E: jne 0x3a00658b */ 12500 L_3A006540: 12501 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006540: mov byte ptr [ecx + 0x28], bl */ 12502 ecx = MEM32(eax + 0x4); /* 0x3A006543: mov ecx, dword ptr [eax + 4] */ 12503 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006546: mov byte ptr [ecx + 0x28], 0 */ 12504 ecx = MEM32(eax + 0x4); /* 0x3A00654A: mov ecx, dword ptr [eax + 4] */ 12505 edx = MEM32(ecx + 0x8); /* 0x3A00654D: mov edx, dword ptr [ecx + 8] */ 12506 esi = MEM32(edx); /* 0x3A006550: mov esi, dword ptr [edx] */ 12507 MEM32(ecx + 0x8) = esi; /* 0x3A006552: mov dword ptr [ecx + 8], esi */ 12508 esi = MEM32(edx); /* 0x3A006555: mov esi, dword ptr [edx] */ 12509 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006557: cmp esi, dword ptr [edi + 8] */ 12510 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12512 _flag_k = FK_CMP; 12513 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00655F; /* 0x3A00655A: je 0x3a00655f */ 12514 L_3A00655C: 12515 MEM32(esi + 0x4) = ecx; /* 0x3A00655C: mov dword ptr [esi + 4], ecx */ 12516 L_3A00655F: 12517 esi = MEM32(ecx + 0x4); /* 0x3A00655F: mov esi, dword ptr [ecx + 4] */ 12518 MEM32(edx + 0x4) = esi; /* 0x3A006562: mov dword ptr [edx + 4], esi */ 12519 esi = MEM32(edi + 0x4); /* 0x3A006565: mov esi, dword ptr [edi + 4] */ 12520 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006568: cmp ecx, dword ptr [esi + 4] */ 12521 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12523 _flag_k = FK_CMP; 12524 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006572; /* 0x3A00656B: jne 0x3a006572 */ 12525 L_3A00656D: 12526 MEM32(esi + 0x4) = edx; /* 0x3A00656D: mov dword ptr [esi + 4], edx */ 12527 goto L_3A006580; /* 0x3A006570: jmp 0x3a006580 */ 12528 L_3A006572: 12529 esi = MEM32(ecx + 0x4); /* 0x3A006572: mov esi, dword ptr [ecx + 4] */ 12530 /* cmp ecx, MEM32(esi) */ /* 0x3A006575: cmp ecx, dword ptr [esi] */ 12531 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12533 _flag_k = FK_CMP; 12534 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00657D; /* 0x3A006577: jne 0x3a00657d */ 12535 L_3A006579: 12536 MEM32(esi) = edx; /* 0x3A006579: mov dword ptr [esi], edx */ 12537 goto L_3A006580; /* 0x3A00657B: jmp 0x3a006580 */ 12538 L_3A00657D: 12539 MEM32(esi + 0x8) = edx; /* 0x3A00657D: mov dword ptr [esi + 8], edx */ 12540 L_3A006580: 12541 MEM32(edx) = ecx; /* 0x3A006580: mov dword ptr [edx], ecx */ 12542 MEM32(ecx + 0x4) = edx; /* 0x3A006582: mov dword ptr [ecx + 4], edx */ 12543 edx = MEM32(eax + 0x4); /* 0x3A006585: mov edx, dword ptr [eax + 4] */ 12544 ecx = MEM32(edx + 0x8); /* 0x3A006588: mov ecx, dword ptr [edx + 8] */ 12545 L_3A00658B: 12546 edx = MEM32(ecx); /* 0x3A00658B: mov edx, dword ptr [ecx] */ 12547 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A00658D: cmp byte ptr [edx + 0x28], bl */ 12548 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12550 _flag_k = FK_NARROW(FK_CMP, 24); 12551 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A006590: jne 0x3a006626 */ 12552 L_3A006596: 12553 edx = MEM32(ecx + 0x8); /* 0x3A006596: mov edx, dword ptr [ecx + 8] */ 12554 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006599: cmp byte ptr [edx + 0x28], bl */ 12555 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12557 _flag_k = FK_NARROW(FK_CMP, 24); 12558 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006626; /* 0x3A00659C: jne 0x3a006626 */ 12559 L_3A0065A2: 12560 goto L_3A00660E; /* 0x3A0065A2: jmp 0x3a00660e */ 12561 L_3A0065A4: 12562 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3A0065A4: mov dl, byte ptr [ecx + 0x28] */ 12563 /* test LO8(edx), LO8(edx) */ /* 0x3A0065A7: test dl, dl */ 12564 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12565 _cf = 0; 12566 _flag_k = FK_NARROW(FK_TEST, 24); 12567 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0065F7; /* 0x3A0065A9: jne 0x3a0065f7 */ 12568 L_3A0065AB: 12569 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0065AB: mov byte ptr [ecx + 0x28], bl */ 12570 ecx = MEM32(eax + 0x4); /* 0x3A0065AE: mov ecx, dword ptr [eax + 4] */ 12571 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0065B1: mov byte ptr [ecx + 0x28], 0 */ 12572 ecx = MEM32(eax + 0x4); /* 0x3A0065B5: mov ecx, dword ptr [eax + 4] */ 12573 edx = MEM32(ecx); /* 0x3A0065B8: mov edx, dword ptr [ecx] */ 12574 esi = MEM32(edx + 0x8); /* 0x3A0065BA: mov esi, dword ptr [edx + 8] */ 12575 MEM32(ecx) = esi; /* 0x3A0065BD: mov dword ptr [ecx], esi */ 12576 esi = MEM32(edx + 0x8); /* 0x3A0065BF: mov esi, dword ptr [edx + 8] */ 12577 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0065C2: cmp esi, dword ptr [edi + 8] */ 12578 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12580 _flag_k = FK_CMP; 12581 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0065CA; /* 0x3A0065C5: je 0x3a0065ca */ 12582 L_3A0065C7: 12583 MEM32(esi + 0x4) = ecx; /* 0x3A0065C7: mov dword ptr [esi + 4], ecx */ 12584 L_3A0065CA: 12585 esi = MEM32(ecx + 0x4); /* 0x3A0065CA: mov esi, dword ptr [ecx + 4] */ 12586 MEM32(edx + 0x4) = esi; /* 0x3A0065CD: mov dword ptr [edx + 4], esi */ 12587 esi = MEM32(edi + 0x4); /* 0x3A0065D0: mov esi, dword ptr [edi + 4] */ 12588 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0065D3: cmp ecx, dword ptr [esi + 4] */ 12589 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12591 _flag_k = FK_CMP; 12592 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065DD; /* 0x3A0065D6: jne 0x3a0065dd */ 12593 L_3A0065D8: 12594 MEM32(esi + 0x4) = edx; /* 0x3A0065D8: mov dword ptr [esi + 4], edx */ 12595 goto L_3A0065EC; /* 0x3A0065DB: jmp 0x3a0065ec */ 12596 L_3A0065DD: 12597 esi = MEM32(ecx + 0x4); /* 0x3A0065DD: mov esi, dword ptr [ecx + 4] */ 12598 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0065E0: cmp ecx, dword ptr [esi + 8] */ 12599 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12600 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12601 _flag_k = FK_CMP; 12602 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0065EA; /* 0x3A0065E3: jne 0x3a0065ea */ 12603 L_3A0065E5: 12604 MEM32(esi + 0x8) = edx; /* 0x3A0065E5: mov dword ptr [esi + 8], edx */ 12605 goto L_3A0065EC; /* 0x3A0065E8: jmp 0x3a0065ec */ 12606 L_3A0065EA: 12607 MEM32(esi) = edx; /* 0x3A0065EA: mov dword ptr [esi], edx */ 12608 L_3A0065EC: 12609 MEM32(edx + 0x8) = ecx; /* 0x3A0065EC: mov dword ptr [edx + 8], ecx */ 12610 MEM32(ecx + 0x4) = edx; /* 0x3A0065EF: mov dword ptr [ecx + 4], edx */ 12611 edx = MEM32(eax + 0x4); /* 0x3A0065F2: mov edx, dword ptr [eax + 4] */ 12612 ecx = MEM32(edx); /* 0x3A0065F5: mov ecx, dword ptr [edx] */ 12613 L_3A0065F7: 12614 edx = MEM32(ecx + 0x8); /* 0x3A0065F7: mov edx, dword ptr [ecx + 8] */ 12615 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0065FA: cmp byte ptr [edx + 0x28], bl */ 12616 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12618 _flag_k = FK_NARROW(FK_CMP, 24); 12619 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A0065FD: jne 0x3a0066d3 */ 12620 L_3A006603: 12621 edx = MEM32(ecx); /* 0x3A006603: mov edx, dword ptr [ecx] */ 12622 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006605: cmp byte ptr [edx + 0x28], bl */ 12623 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12625 _flag_k = FK_NARROW(FK_CMP, 24); 12626 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066D3; /* 0x3A006608: jne 0x3a0066d3 */ 12627 L_3A00660E: 12628 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A00660E: mov byte ptr [ecx + 0x28], 0 */ 12629 ecx = MEM32(edi + 0x4); /* 0x3A006612: mov ecx, dword ptr [edi + 4] */ 12630 eax = MEM32(eax + 0x4); /* 0x3A006615: mov eax, dword ptr [eax + 4] */ 12631 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006618: cmp eax, dword ptr [ecx + 4] */ 12632 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12634 _flag_k = FK_CMP; 12635 RECOMP_BACKEDGE(); 12636 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006524; /* 0x3A00661B: jne 0x3a006524 */ 12637 L_3A006621: 12638 goto L_3A006772; /* 0x3A006621: jmp 0x3a006772 */ 12639 L_3A006626: 12640 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 12641 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 12642 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12644 _flag_k = FK_NARROW(FK_CMP, 24); 12645 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 12646 L_3A00662E: 12647 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 12648 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 12649 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 12650 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 12651 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 12652 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 12653 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 12654 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 12655 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12657 _flag_k = FK_CMP; 12658 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 12659 L_3A006646: 12660 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 12661 L_3A006649: 12662 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 12663 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 12664 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 12665 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 12666 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12668 _flag_k = FK_CMP; 12669 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 12670 L_3A006657: 12671 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 12672 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 12673 L_3A00665C: 12674 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 12675 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 12676 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12678 _flag_k = FK_CMP; 12679 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 12680 L_3A006664: 12681 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 12682 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 12683 L_3A006669: 12684 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 12685 L_3A00666B: 12686 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 12687 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 12688 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 12689 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 12690 L_3A006677: 12691 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 12692 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 12693 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 12694 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 12695 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 12696 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 12697 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 12698 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 12699 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 12700 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 12701 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 12702 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 12703 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 12704 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12706 _flag_k = FK_CMP; 12707 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 12708 L_3A00669E: 12709 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 12710 L_3A0066A1: 12711 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 12712 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 12713 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 12714 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 12715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12717 _flag_k = FK_CMP; 12718 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 12719 L_3A0066AF: 12720 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 12721 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 12722 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 12723 L_3A0066B9: 12724 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 12725 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 12726 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12728 _flag_k = FK_CMP; 12729 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 12730 L_3A0066C0: 12731 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 12732 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 12733 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 12734 L_3A0066C9: 12735 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 12736 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 12737 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 12738 L_3A0066D3: 12739 edx = MEM32(ecx); /* 0x3A0066D3: mov edx, dword ptr [ecx] */ 12740 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A0066D5: cmp byte ptr [edx + 0x28], bl */ 12741 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12743 _flag_k = FK_NARROW(FK_CMP, 24); 12744 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006721; /* 0x3A0066D8: jne 0x3a006721 */ 12745 L_3A0066DA: 12746 edx = MEM32(ecx + 0x8); /* 0x3A0066DA: mov edx, dword ptr [ecx + 8] */ 12747 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A0066DD: mov byte ptr [edx + 0x28], bl */ 12748 edx = MEM32(ecx + 0x8); /* 0x3A0066E0: mov edx, dword ptr [ecx + 8] */ 12749 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A0066E3: mov byte ptr [ecx + 0x28], 0 */ 12750 esi = MEM32(edx); /* 0x3A0066E7: mov esi, dword ptr [edx] */ 12751 MEM32(ecx + 0x8) = esi; /* 0x3A0066E9: mov dword ptr [ecx + 8], esi */ 12752 esi = MEM32(edx); /* 0x3A0066EC: mov esi, dword ptr [edx] */ 12753 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0066EE: cmp esi, dword ptr [edi + 8] */ 12754 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12756 _flag_k = FK_CMP; 12757 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066F6; /* 0x3A0066F1: je 0x3a0066f6 */ 12758 L_3A0066F3: 12759 MEM32(esi + 0x4) = ecx; /* 0x3A0066F3: mov dword ptr [esi + 4], ecx */ 12760 L_3A0066F6: 12761 esi = MEM32(ecx + 0x4); /* 0x3A0066F6: mov esi, dword ptr [ecx + 4] */ 12762 MEM32(edx + 0x4) = esi; /* 0x3A0066F9: mov dword ptr [edx + 4], esi */ 12763 esi = MEM32(edi + 0x4); /* 0x3A0066FC: mov esi, dword ptr [edi + 4] */ 12764 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066FF: cmp ecx, dword ptr [esi + 4] */ 12765 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12767 _flag_k = FK_CMP; 12768 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006709; /* 0x3A006702: jne 0x3a006709 */ 12769 L_3A006704: 12770 MEM32(esi + 0x4) = edx; /* 0x3A006704: mov dword ptr [esi + 4], edx */ 12771 goto L_3A006717; /* 0x3A006707: jmp 0x3a006717 */ 12772 L_3A006709: 12773 esi = MEM32(ecx + 0x4); /* 0x3A006709: mov esi, dword ptr [ecx + 4] */ 12774 /* cmp ecx, MEM32(esi) */ /* 0x3A00670C: cmp ecx, dword ptr [esi] */ 12775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12777 _flag_k = FK_CMP; 12778 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006714; /* 0x3A00670E: jne 0x3a006714 */ 12779 L_3A006710: 12780 MEM32(esi) = edx; /* 0x3A006710: mov dword ptr [esi], edx */ 12781 goto L_3A006717; /* 0x3A006712: jmp 0x3a006717 */ 12782 L_3A006714: 12783 MEM32(esi + 0x8) = edx; /* 0x3A006714: mov dword ptr [esi + 8], edx */ 12784 L_3A006717: 12785 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 12786 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 12787 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 12788 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 12789 L_3A006721: 12790 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 12791 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 12792 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 12793 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 12794 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 12795 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 12796 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 12797 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 12798 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 12799 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 12800 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 12801 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 12802 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 12803 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12805 _flag_k = FK_CMP; 12806 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 12807 L_3A006747: 12808 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 12809 L_3A00674A: 12810 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 12811 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 12812 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 12813 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 12814 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12816 _flag_k = FK_CMP; 12817 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 12818 L_3A006758: 12819 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 12820 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 12821 L_3A00675D: 12822 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 12823 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 12824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12826 _flag_k = FK_CMP; 12827 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 12828 L_3A006765: 12829 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 12830 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 12831 L_3A00676A: 12832 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 12833 L_3A00676C: 12834 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 12835 L_3A00676F: 12836 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 12837 L_3A006772: 12838 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 12839 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 12840 PUSH32(esp, edx); /* 0x3A006778: push edx */ 12841 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 12842 RECOMP_FLAGS_IN(); 12843 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 12844 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 12845 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12847 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 12848 _flag_k = FK_ADD; 12849 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12850 eax = eax - 1; /* 0x3A006787: dec eax */ 12851 _flag_k = FK_DEC; 12852 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 12853 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 12854 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 12855 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 12856 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 12857 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 12858 esp = ebp; /* 0x3A006793: mov esp, ebp */ 12859 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 12860 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 12861 RECOMP_REGS_OUT(); 12862 } 12863 12864 void sub_3A006626(void) { 12865 int _fpu_cmp = 0; 12866 uint32_t _cf = 0; 12867 int _df = 1; 12868 uint32_t _flag_k = FK_NONE; 12869 uint32_t _flag_a = 0, _flag_b = 0; 12870 uint32_t _itail_tgt = 0; 12871 RECOMP_REGS_LOCALS 12872 RECOMP_ENTER(0x3A006626u); 12873 12874 L_3A006626: 12875 edx = MEM32(ecx + 0x8); /* 0x3A006626: mov edx, dword ptr [ecx + 8] */ 12876 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3A006629: cmp byte ptr [edx + 0x28], bl */ 12877 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12879 _flag_k = FK_NARROW(FK_CMP, 24); 12880 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006677; /* 0x3A00662C: jne 0x3a006677 */ 12881 L_3A00662E: 12882 edx = MEM32(ecx); /* 0x3A00662E: mov edx, dword ptr [ecx] */ 12883 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006630: mov byte ptr [edx + 0x28], bl */ 12884 edx = MEM32(ecx); /* 0x3A006633: mov edx, dword ptr [ecx] */ 12885 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3A006635: mov byte ptr [ecx + 0x28], 0 */ 12886 esi = MEM32(edx + 0x8); /* 0x3A006639: mov esi, dword ptr [edx + 8] */ 12887 MEM32(ecx) = esi; /* 0x3A00663C: mov dword ptr [ecx], esi */ 12888 esi = MEM32(edx + 0x8); /* 0x3A00663E: mov esi, dword ptr [edx + 8] */ 12889 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006641: cmp esi, dword ptr [edi + 8] */ 12890 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12892 _flag_k = FK_CMP; 12893 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006649; /* 0x3A006644: je 0x3a006649 */ 12894 L_3A006646: 12895 MEM32(esi + 0x4) = ecx; /* 0x3A006646: mov dword ptr [esi + 4], ecx */ 12896 L_3A006649: 12897 esi = MEM32(ecx + 0x4); /* 0x3A006649: mov esi, dword ptr [ecx + 4] */ 12898 MEM32(edx + 0x4) = esi; /* 0x3A00664C: mov dword ptr [edx + 4], esi */ 12899 esi = MEM32(edi + 0x4); /* 0x3A00664F: mov esi, dword ptr [edi + 4] */ 12900 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006652: cmp ecx, dword ptr [esi + 4] */ 12901 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12903 _flag_k = FK_CMP; 12904 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00665C; /* 0x3A006655: jne 0x3a00665c */ 12905 L_3A006657: 12906 MEM32(esi + 0x4) = edx; /* 0x3A006657: mov dword ptr [esi + 4], edx */ 12907 goto L_3A00666B; /* 0x3A00665A: jmp 0x3a00666b */ 12908 L_3A00665C: 12909 esi = MEM32(ecx + 0x4); /* 0x3A00665C: mov esi, dword ptr [ecx + 4] */ 12910 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A00665F: cmp ecx, dword ptr [esi + 8] */ 12911 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12913 _flag_k = FK_CMP; 12914 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006669; /* 0x3A006662: jne 0x3a006669 */ 12915 L_3A006664: 12916 MEM32(esi + 0x8) = edx; /* 0x3A006664: mov dword ptr [esi + 8], edx */ 12917 goto L_3A00666B; /* 0x3A006667: jmp 0x3a00666b */ 12918 L_3A006669: 12919 MEM32(esi) = edx; /* 0x3A006669: mov dword ptr [esi], edx */ 12920 L_3A00666B: 12921 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 12922 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 12923 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 12924 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 12925 L_3A006677: 12926 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 12927 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 12928 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 12929 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 12930 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 12931 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 12932 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 12933 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 12934 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 12935 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 12936 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 12937 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 12938 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 12939 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12941 _flag_k = FK_CMP; 12942 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 12943 L_3A00669E: 12944 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 12945 L_3A0066A1: 12946 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 12947 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 12948 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 12949 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 12950 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12952 _flag_k = FK_CMP; 12953 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 12954 L_3A0066AF: 12955 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 12956 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 12957 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 12958 L_3A0066B9: 12959 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 12960 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 12961 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12963 _flag_k = FK_CMP; 12964 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 12965 L_3A0066C0: 12966 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 12967 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 12968 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 12969 L_3A0066C9: 12970 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 12971 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 12972 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 12973 L_3A00676F: 12974 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 12975 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 12976 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 12977 PUSH32(esp, edx); /* 0x3A006778: push edx */ 12978 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 12979 RECOMP_FLAGS_IN(); 12980 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 12981 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 12982 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12984 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 12985 _flag_k = FK_ADD; 12986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12987 eax = eax - 1; /* 0x3A006787: dec eax */ 12988 _flag_k = FK_DEC; 12989 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 12990 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 12991 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 12992 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 12993 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 12994 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 12995 esp = ebp; /* 0x3A006793: mov esp, ebp */ 12996 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 12997 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 12998 RECOMP_REGS_OUT(); 12999 } 13000 13001 void sub_3A00666B(void) { 13002 int _fpu_cmp = 0; 13003 uint32_t _cf = 0; 13004 int _df = 1; 13005 uint32_t _flag_k = FK_NONE; 13006 uint32_t _flag_a = 0, _flag_b = 0; 13007 uint32_t _itail_tgt = 0; 13008 RECOMP_REGS_LOCALS 13009 RECOMP_ENTER(0x3A00666Bu); 13010 13011 L_3A00666B: 13012 MEM32(edx + 0x8) = ecx; /* 0x3A00666B: mov dword ptr [edx + 8], ecx */ 13013 MEM32(ecx + 0x4) = edx; /* 0x3A00666E: mov dword ptr [ecx + 4], edx */ 13014 ecx = MEM32(eax + 0x4); /* 0x3A006671: mov ecx, dword ptr [eax + 4] */ 13015 ecx = MEM32(ecx + 0x8); /* 0x3A006674: mov ecx, dword ptr [ecx + 8] */ 13016 edx = MEM32(eax + 0x4); /* 0x3A006677: mov edx, dword ptr [eax + 4] */ 13017 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A00667A: mov dl, byte ptr [edx + 0x28] */ 13018 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A00667D: mov byte ptr [ecx + 0x28], dl */ 13019 edx = MEM32(eax + 0x4); /* 0x3A006680: mov edx, dword ptr [eax + 4] */ 13020 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006683: mov byte ptr [edx + 0x28], bl */ 13021 ecx = MEM32(ecx + 0x8); /* 0x3A006686: mov ecx, dword ptr [ecx + 8] */ 13022 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006689: mov byte ptr [ecx + 0x28], bl */ 13023 ecx = MEM32(eax + 0x4); /* 0x3A00668C: mov ecx, dword ptr [eax + 4] */ 13024 edx = MEM32(ecx + 0x8); /* 0x3A00668F: mov edx, dword ptr [ecx + 8] */ 13025 esi = MEM32(edx); /* 0x3A006692: mov esi, dword ptr [edx] */ 13026 MEM32(ecx + 0x8) = esi; /* 0x3A006694: mov dword ptr [ecx + 8], esi */ 13027 esi = MEM32(edx); /* 0x3A006697: mov esi, dword ptr [edx] */ 13028 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006699: cmp esi, dword ptr [edi + 8] */ 13029 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13031 _flag_k = FK_CMP; 13032 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0066A1; /* 0x3A00669C: je 0x3a0066a1 */ 13033 L_3A00669E: 13034 MEM32(esi + 0x4) = ecx; /* 0x3A00669E: mov dword ptr [esi + 4], ecx */ 13035 L_3A0066A1: 13036 esi = MEM32(ecx + 0x4); /* 0x3A0066A1: mov esi, dword ptr [ecx + 4] */ 13037 MEM32(edx + 0x4) = esi; /* 0x3A0066A4: mov dword ptr [edx + 4], esi */ 13038 esi = MEM32(edi + 0x4); /* 0x3A0066A7: mov esi, dword ptr [edi + 4] */ 13039 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0066AA: cmp ecx, dword ptr [esi + 4] */ 13040 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13042 _flag_k = FK_CMP; 13043 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066B9; /* 0x3A0066AD: jne 0x3a0066b9 */ 13044 L_3A0066AF: 13045 MEM32(esi + 0x4) = edx; /* 0x3A0066AF: mov dword ptr [esi + 4], edx */ 13046 MEM32(edx) = ecx; /* 0x3A0066B2: mov dword ptr [edx], ecx */ 13047 goto L_3A00676F; /* 0x3A0066B4: jmp 0x3a00676f */ 13048 L_3A0066B9: 13049 esi = MEM32(ecx + 0x4); /* 0x3A0066B9: mov esi, dword ptr [ecx + 4] */ 13050 /* cmp ecx, MEM32(esi) */ /* 0x3A0066BC: cmp ecx, dword ptr [esi] */ 13051 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13053 _flag_k = FK_CMP; 13054 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0066C9; /* 0x3A0066BE: jne 0x3a0066c9 */ 13055 L_3A0066C0: 13056 MEM32(esi) = edx; /* 0x3A0066C0: mov dword ptr [esi], edx */ 13057 MEM32(edx) = ecx; /* 0x3A0066C2: mov dword ptr [edx], ecx */ 13058 goto L_3A00676F; /* 0x3A0066C4: jmp 0x3a00676f */ 13059 L_3A0066C9: 13060 MEM32(esi + 0x8) = edx; /* 0x3A0066C9: mov dword ptr [esi + 8], edx */ 13061 MEM32(edx) = ecx; /* 0x3A0066CC: mov dword ptr [edx], ecx */ 13062 goto L_3A00676F; /* 0x3A0066CE: jmp 0x3a00676f */ 13063 L_3A00676F: 13064 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 13065 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 13066 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 13067 PUSH32(esp, edx); /* 0x3A006778: push edx */ 13068 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 13069 RECOMP_FLAGS_IN(); 13070 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 13071 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 13072 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13073 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13074 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 13075 _flag_k = FK_ADD; 13076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13077 eax = eax - 1; /* 0x3A006787: dec eax */ 13078 _flag_k = FK_DEC; 13079 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 13080 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 13081 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 13082 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 13083 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 13084 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 13085 esp = ebp; /* 0x3A006793: mov esp, ebp */ 13086 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 13087 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 13088 RECOMP_REGS_OUT(); 13089 } 13090 13091 void sub_3A006717(void) { 13092 int _fpu_cmp = 0; 13093 uint32_t _cf = 0; 13094 int _df = 1; 13095 uint32_t _flag_k = FK_NONE; 13096 uint32_t _flag_a = 0, _flag_b = 0; 13097 uint32_t _itail_tgt = 0; 13098 RECOMP_REGS_LOCALS 13099 RECOMP_ENTER(0x3A006717u); 13100 13101 L_3A006717: 13102 MEM32(edx) = ecx; /* 0x3A006717: mov dword ptr [edx], ecx */ 13103 MEM32(ecx + 0x4) = edx; /* 0x3A006719: mov dword ptr [ecx + 4], edx */ 13104 ecx = MEM32(eax + 0x4); /* 0x3A00671C: mov ecx, dword ptr [eax + 4] */ 13105 ecx = MEM32(ecx); /* 0x3A00671F: mov ecx, dword ptr [ecx] */ 13106 edx = MEM32(eax + 0x4); /* 0x3A006721: mov edx, dword ptr [eax + 4] */ 13107 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3A006724: mov dl, byte ptr [edx + 0x28] */ 13108 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3A006727: mov byte ptr [ecx + 0x28], dl */ 13109 edx = MEM32(eax + 0x4); /* 0x3A00672A: mov edx, dword ptr [eax + 4] */ 13110 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A00672D: mov byte ptr [edx + 0x28], bl */ 13111 ecx = MEM32(ecx); /* 0x3A006730: mov ecx, dword ptr [ecx] */ 13112 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006732: mov byte ptr [ecx + 0x28], bl */ 13113 ecx = MEM32(eax + 0x4); /* 0x3A006735: mov ecx, dword ptr [eax + 4] */ 13114 edx = MEM32(ecx); /* 0x3A006738: mov edx, dword ptr [ecx] */ 13115 esi = MEM32(edx + 0x8); /* 0x3A00673A: mov esi, dword ptr [edx + 8] */ 13116 MEM32(ecx) = esi; /* 0x3A00673D: mov dword ptr [ecx], esi */ 13117 esi = MEM32(edx + 0x8); /* 0x3A00673F: mov esi, dword ptr [edx + 8] */ 13118 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006742: cmp esi, dword ptr [edi + 8] */ 13119 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13121 _flag_k = FK_CMP; 13122 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00674A; /* 0x3A006745: je 0x3a00674a */ 13123 L_3A006747: 13124 MEM32(esi + 0x4) = ecx; /* 0x3A006747: mov dword ptr [esi + 4], ecx */ 13125 L_3A00674A: 13126 esi = MEM32(ecx + 0x4); /* 0x3A00674A: mov esi, dword ptr [ecx + 4] */ 13127 MEM32(edx + 0x4) = esi; /* 0x3A00674D: mov dword ptr [edx + 4], esi */ 13128 esi = MEM32(edi + 0x4); /* 0x3A006750: mov esi, dword ptr [edi + 4] */ 13129 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006753: cmp ecx, dword ptr [esi + 4] */ 13130 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13132 _flag_k = FK_CMP; 13133 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00675D; /* 0x3A006756: jne 0x3a00675d */ 13134 L_3A006758: 13135 MEM32(esi + 0x4) = edx; /* 0x3A006758: mov dword ptr [esi + 4], edx */ 13136 goto L_3A00676C; /* 0x3A00675B: jmp 0x3a00676c */ 13137 L_3A00675D: 13138 esi = MEM32(ecx + 0x4); /* 0x3A00675D: mov esi, dword ptr [ecx + 4] */ 13139 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006760: cmp ecx, dword ptr [esi + 8] */ 13140 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13142 _flag_k = FK_CMP; 13143 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00676A; /* 0x3A006763: jne 0x3a00676a */ 13144 L_3A006765: 13145 MEM32(esi + 0x8) = edx; /* 0x3A006765: mov dword ptr [esi + 8], edx */ 13146 goto L_3A00676C; /* 0x3A006768: jmp 0x3a00676c */ 13147 L_3A00676A: 13148 MEM32(esi) = edx; /* 0x3A00676A: mov dword ptr [esi], edx */ 13149 L_3A00676C: 13150 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 13151 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 13152 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 13153 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 13154 PUSH32(esp, edx); /* 0x3A006778: push edx */ 13155 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 13156 RECOMP_FLAGS_IN(); 13157 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 13158 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 13159 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13160 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13161 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 13162 _flag_k = FK_ADD; 13163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13164 eax = eax - 1; /* 0x3A006787: dec eax */ 13165 _flag_k = FK_DEC; 13166 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 13167 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 13168 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 13169 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 13170 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 13171 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 13172 esp = ebp; /* 0x3A006793: mov esp, ebp */ 13173 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 13174 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 13175 RECOMP_REGS_OUT(); 13176 } 13177 13178 void sub_3A00676C(void) { 13179 int _fpu_cmp = 0; 13180 uint32_t _cf = 0; 13181 int _df = 1; 13182 uint32_t _flag_k = FK_NONE; 13183 uint32_t _flag_a = 0, _flag_b = 0; 13184 uint32_t _itail_tgt = 0; 13185 RECOMP_REGS_LOCALS 13186 RECOMP_ENTER(0x3A00676Cu); 13187 13188 L_3A00676C: 13189 MEM32(edx + 0x8) = ecx; /* 0x3A00676C: mov dword ptr [edx + 8], ecx */ 13190 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 13191 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 13192 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 13193 PUSH32(esp, edx); /* 0x3A006778: push edx */ 13194 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 13195 RECOMP_FLAGS_IN(); 13196 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 13197 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 13198 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13200 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 13201 _flag_k = FK_ADD; 13202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13203 eax = eax - 1; /* 0x3A006787: dec eax */ 13204 _flag_k = FK_DEC; 13205 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 13206 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 13207 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 13208 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 13209 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 13210 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 13211 esp = ebp; /* 0x3A006793: mov esp, ebp */ 13212 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 13213 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 13214 RECOMP_REGS_OUT(); 13215 } 13216 13217 void sub_3A00676F(void) { 13218 int _fpu_cmp = 0; 13219 uint32_t _cf = 0; 13220 int _df = 1; 13221 uint32_t _flag_k = FK_NONE; 13222 uint32_t _flag_a = 0, _flag_b = 0; 13223 uint32_t _itail_tgt = 0; 13224 RECOMP_REGS_LOCALS 13225 RECOMP_ENTER(0x3A00676Fu); 13226 13227 L_3A00676F: 13228 MEM32(ecx + 0x4) = edx; /* 0x3A00676F: mov dword ptr [ecx + 4], edx */ 13229 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 13230 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 13231 PUSH32(esp, edx); /* 0x3A006778: push edx */ 13232 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 13233 RECOMP_FLAGS_IN(); 13234 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 13235 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 13236 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13238 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 13239 _flag_k = FK_ADD; 13240 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13241 eax = eax - 1; /* 0x3A006787: dec eax */ 13242 _flag_k = FK_DEC; 13243 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 13244 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 13245 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 13246 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 13247 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 13248 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 13249 esp = ebp; /* 0x3A006793: mov esp, ebp */ 13250 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 13251 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 13252 RECOMP_REGS_OUT(); 13253 } 13254 13255 void sub_3A006772(void) { 13256 int _fpu_cmp = 0; 13257 uint32_t _cf = 0; 13258 int _df = 1; 13259 uint32_t _flag_k = FK_NONE; 13260 uint32_t _flag_a = 0, _flag_b = 0; 13261 uint32_t _itail_tgt = 0; 13262 RECOMP_REGS_LOCALS 13263 RECOMP_ENTER(0x3A006772u); 13264 13265 L_3A006772: 13266 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006772: mov byte ptr [eax + 0x28], bl */ 13267 edx = MEM32(ebp + (-0x4)); /* 0x3A006775: mov edx, dword ptr [ebp - 4] */ 13268 PUSH32(esp, edx); /* 0x3A006778: push edx */ 13269 RECOMP_ICALL(0x3A008F76u); /* 0x3A006779: call 0x3a008f76 */ /* not lifted */ 13270 RECOMP_FLAGS_IN(); 13271 eax = MEM32(edi + 0x10); /* 0x3A00677E: mov eax, dword ptr [edi + 0x10] */ 13272 ecx = MEM32(ebp + 0xC); /* 0x3A006781: mov ecx, dword ptr [ebp + 0xc] */ 13273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13275 esp = esp + 4; /* 0x3A006784: add esp, 4 */ 13276 _flag_k = FK_ADD; 13277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13278 eax = eax - 1; /* 0x3A006787: dec eax */ 13279 _flag_k = FK_DEC; 13280 MEM32(edi + 0x10) = eax; /* 0x3A006788: mov dword ptr [edi + 0x10], eax */ 13281 eax = MEM32(ebp + 0x8); /* 0x3A00678B: mov eax, dword ptr [ebp + 8] */ 13282 edi = POP32_VAL(esp); /* 0x3A00678E: pop edi */ 13283 esi = POP32_VAL(esp); /* 0x3A00678F: pop esi */ 13284 MEM32(eax) = ecx; /* 0x3A006790: mov dword ptr [eax], ecx */ 13285 ebx = POP32_VAL(esp); /* 0x3A006792: pop ebx */ 13286 esp = ebp; /* 0x3A006793: mov esp, ebp */ 13287 ebp = POP32_VAL(esp); /* 0x3A006795: pop ebp */ 13288 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006796: ret 8 */ 13289 RECOMP_REGS_OUT(); 13290 } 13291 13292 void sub_3A0067A0(void) { 13293 int _fpu_cmp = 0; 13294 uint32_t _cf = 0; 13295 int _df = 1; 13296 uint32_t _flag_k = FK_NONE; 13297 uint32_t _flag_a = 0, _flag_b = 0; 13298 uint32_t _itail_tgt = 0; 13299 RECOMP_REGS_LOCALS 13300 RECOMP_ENTER(0x3A0067A0u); 13301 13302 L_3A0067A0: 13303 PUSH32(esp, ebp); /* 0x3A0067A0: push ebp */ 13304 ebp = esp; /* 0x3A0067A1: mov ebp, esp */ 13305 PUSH32(esp, ebx); /* 0x3A0067A3: push ebx */ 13306 PUSH32(esp, esi); /* 0x3A0067A4: push esi */ 13307 ebx = ecx; /* 0x3A0067A5: mov ebx, ecx */ 13308 eax = MEM32(ebx + 0x8); /* 0x3A0067A7: mov eax, dword ptr [ebx + 8] */ 13309 PUSH32(esp, edi); /* 0x3A0067AA: push edi */ 13310 edi = MEM32(ebp + 0x8); /* 0x3A0067AB: mov edi, dword ptr [ebp + 8] */ 13311 /* cmp edi, eax */ /* 0x3A0067AE: cmp edi, eax */ 13312 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13314 _flag_k = FK_CMP; 13315 esi = edi; /* 0x3A0067B0: mov esi, edi */ 13316 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0067D3; /* 0x3A0067B2: je 0x3a0067d3 */ 13317 L_3A0067B4: 13318 eax = MEM32(esi + 0x8); /* 0x3A0067B4: mov eax, dword ptr [esi + 8] */ 13319 PUSH32(esp, eax); /* 0x3A0067B7: push eax */ 13320 ecx = ebx; /* 0x3A0067B8: mov ecx, ebx */ 13321 RECOMP_ICALL(0x3A0067A0u); /* 0x3A0067BA: call 0x3a0067a0 */ /* not lifted */ 13322 RECOMP_FLAGS_IN(); 13323 esi = MEM32(esi); /* 0x3A0067BF: mov esi, dword ptr [esi] */ 13324 PUSH32(esp, edi); /* 0x3A0067C1: push edi */ 13325 RECOMP_ICALL(0x3A008F76u); /* 0x3A0067C2: call 0x3a008f76 */ /* not lifted */ 13326 RECOMP_FLAGS_IN(); 13327 eax = MEM32(ebx + 0x8); /* 0x3A0067C7: mov eax, dword ptr [ebx + 8] */ 13328 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13330 esp = esp + 4; /* 0x3A0067CA: add esp, 4 */ 13331 _flag_k = FK_ADD; 13332 /* cmp esi, eax */ /* 0x3A0067CD: cmp esi, eax */ 13333 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13335 _flag_k = FK_CMP; 13336 edi = esi; /* 0x3A0067CF: mov edi, esi */ 13337 RECOMP_BACKEDGE(); 13338 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0067B4; /* 0x3A0067D1: jne 0x3a0067b4 */ 13339 L_3A0067D3: 13340 edi = POP32_VAL(esp); /* 0x3A0067D3: pop edi */ 13341 esi = POP32_VAL(esp); /* 0x3A0067D4: pop esi */ 13342 ebx = POP32_VAL(esp); /* 0x3A0067D5: pop ebx */ 13343 ebp = POP32_VAL(esp); /* 0x3A0067D6: pop ebp */ 13344 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A0067D7: ret 4 */ 13345 RECOMP_REGS_OUT(); 13346 } 13347 13348 void sub_3A0067E0(void) { 13349 int _fpu_cmp = 0; 13350 uint32_t _cf = 0; 13351 int _df = 1; 13352 uint32_t _flag_k = FK_NONE; 13353 uint32_t _flag_a = 0, _flag_b = 0; 13354 uint32_t _itail_tgt = 0; 13355 RECOMP_REGS_LOCALS 13356 RECOMP_ENTER(0x3A0067E0u); 13357 13358 L_3A0067E0: 13359 PUSH32(esp, ebx); /* 0x3A0067E0: push ebx */ 13360 PUSH32(esp, esi); /* 0x3A0067E1: push esi */ 13361 PUSH32(esp, edi); /* 0x3A0067E2: push edi */ 13362 PUSH32(esp, 0x2Cu); /* 0x3A0067E3: push 0x2c */ 13363 esi = ecx; /* 0x3A0067E5: mov esi, ecx */ 13364 RECOMP_ICALL(0x3A008FD0u); /* 0x3A0067E7: call 0x3a008fd0 */ /* not lifted */ 13365 RECOMP_FLAGS_IN(); 13366 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13367 ebx = 0; /* 0x3A0067EC: xor ebx, ebx */ 13368 _cf = 0; 13369 _flag_k = FK_TEST; 13370 MEM32(eax + 0x4) = ebx; /* 0x3A0067EE: mov dword ptr [eax + 4], ebx */ 13371 MEM8(eax + 0x29) = (uint8_t)(LO8(ebx)); /* 0x3A0067F1: mov byte ptr [eax + 0x29], bl */ 13372 SET_LO8(ecx, 1); /* 0x3A0067F4: mov cl, 1 */ 13373 MEM8(eax + 0x28) = (uint8_t)(LO8(ecx)); /* 0x3A0067F6: mov byte ptr [eax + 0x28], cl */ 13374 MEM32(esi + 0x8) = eax; /* 0x3A0067F9: mov dword ptr [esi + 8], eax */ 13375 MEM8(eax + 0x29) = (uint8_t)(LO8(ecx)); /* 0x3A0067FC: mov byte ptr [eax + 0x29], cl */ 13376 eax = MEM32(esi + 0x8); /* 0x3A0067FF: mov eax, dword ptr [esi + 8] */ 13377 MEM32(eax) = ebx; /* 0x3A006802: mov dword ptr [eax], ebx */ 13378 ecx = MEM32(esi + 0x8); /* 0x3A006804: mov ecx, dword ptr [esi + 8] */ 13379 MEM32(ecx + 0x8) = ebx; /* 0x3A006807: mov dword ptr [ecx + 8], ebx */ 13380 edi = MEM32(esi + 0x8); /* 0x3A00680A: mov edi, dword ptr [esi + 8] */ 13381 PUSH32(esp, 0x2Cu); /* 0x3A00680D: push 0x2c */ 13382 RECOMP_ICALL(0x3A008FD0u); /* 0x3A00680F: call 0x3a008fd0 */ /* not lifted */ 13383 RECOMP_FLAGS_IN(); 13384 MEM32(eax + 0x4) = edi; /* 0x3A006814: mov dword ptr [eax + 4], edi */ 13385 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3A006817: mov byte ptr [eax + 0x28], bl */ 13386 MEM8(eax + 0x29) = (uint8_t)(LO8(ebx)); /* 0x3A00681A: mov byte ptr [eax + 0x29], bl */ 13387 MEM32(esi + 0x4) = eax; /* 0x3A00681D: mov dword ptr [esi + 4], eax */ 13388 MEM32(eax) = eax; /* 0x3A006820: mov dword ptr [eax], eax */ 13389 eax = MEM32(esi + 0x4); /* 0x3A006822: mov eax, dword ptr [esi + 4] */ 13390 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13392 esp = esp + 8; /* 0x3A006825: add esp, 8 */ 13393 _flag_k = FK_ADD; 13394 edi = POP32_VAL(esp); /* 0x3A006828: pop edi */ 13395 MEM32(eax + 0x8) = eax; /* 0x3A006829: mov dword ptr [eax + 8], eax */ 13396 MEM32(esi + 0x10) = ebx; /* 0x3A00682C: mov dword ptr [esi + 0x10], ebx */ 13397 esi = POP32_VAL(esp); /* 0x3A00682F: pop esi */ 13398 ebx = POP32_VAL(esp); /* 0x3A006830: pop ebx */ 13399 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3A006831: ret */ 13400 RECOMP_REGS_OUT(); 13401 } 13402 13403 void sub_3A006840(void) { 13404 int _fpu_cmp = 0; 13405 uint32_t _cf = 0; 13406 int _df = 1; 13407 uint32_t _flag_k = FK_NONE; 13408 uint32_t _flag_a = 0, _flag_b = 0; 13409 uint32_t _itail_tgt = 0; 13410 RECOMP_REGS_LOCALS 13411 RECOMP_ENTER(0x3A006840u); 13412 13413 L_3A006840: 13414 PUSH32(esp, ebp); /* 0x3A006840: push ebp */ 13415 ebp = esp; /* 0x3A006841: mov ebp, esp */ 13416 PUSH32(esp, ecx); /* 0x3A006843: push ecx */ 13417 PUSH32(esp, ebx); /* 0x3A006844: push ebx */ 13418 PUSH32(esp, esi); /* 0x3A006845: push esi */ 13419 esi = MEM32(ebp + 0xC); /* 0x3A006846: mov esi, dword ptr [ebp + 0xc] */ 13420 PUSH32(esp, edi); /* 0x3A006849: push edi */ 13421 edi = ecx; /* 0x3A00684A: mov edi, ecx */ 13422 ecx = ebp + 0xC; /* 0x3A00684C: lea ecx, [ebp + 0xc] */ 13423 RECOMP_ICALL(0x3A0072D0u); /* 0x3A00684F: call 0x3a0072d0 */ /* not lifted */ 13424 RECOMP_FLAGS_IN(); 13425 edx = MEM32(esi); /* 0x3A006854: mov edx, dword ptr [esi] */ 13426 eax = MEM32(edi + 0x8); /* 0x3A006856: mov eax, dword ptr [edi + 8] */ 13427 /* cmp edx, eax */ /* 0x3A006859: cmp edx, eax */ 13428 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13430 _flag_k = FK_CMP; 13431 MEM32(ebp + (-0x4)) = esi; /* 0x3A00685B: mov dword ptr [ebp - 4], esi */ 13432 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006880; /* 0x3A00685E: jne 0x3a006880 */ 13433 L_3A006860: 13434 eax = MEM32(esi + 0x8); /* 0x3A006860: mov eax, dword ptr [esi + 8] */ 13435 L_3A006863: 13436 ecx = MEM32(ebp + (-0x4)); /* 0x3A006863: mov ecx, dword ptr [ebp - 4] */ 13437 edx = MEM32(ecx + 0x4); /* 0x3A006866: mov edx, dword ptr [ecx + 4] */ 13438 MEM32(eax + 0x4) = edx; /* 0x3A006869: mov dword ptr [eax + 4], edx */ 13439 ecx = MEM32(edi + 0x4); /* 0x3A00686C: mov ecx, dword ptr [edi + 4] */ 13440 /* cmp MEM32(ecx + 0x4), esi */ /* 0x3A00686F: cmp dword ptr [ecx + 4], esi */ 13441 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 13442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13443 _flag_k = FK_CMP; 13444 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006903; /* 0x3A006872: jne 0x3a006903 */ 13445 L_3A006878: 13446 MEM32(ecx + 0x4) = eax; /* 0x3A006878: mov dword ptr [ecx + 4], eax */ 13447 goto L_3A006911; /* 0x3A00687B: jmp 0x3a006911 */ 13448 L_3A006880: 13449 ecx = MEM32(esi + 0x8); /* 0x3A006880: mov ecx, dword ptr [esi + 8] */ 13450 /* cmp ecx, eax */ /* 0x3A006883: cmp ecx, eax */ 13451 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 13452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13453 _flag_k = FK_CMP; 13454 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00688B; /* 0x3A006885: jne 0x3a00688b */ 13455 L_3A006887: 13456 eax = edx; /* 0x3A006887: mov eax, edx */ 13457 RECOMP_BACKEDGE(); 13458 goto L_3A006863; /* 0x3A006889: jmp 0x3a006863 */ 13459 L_3A00688B: 13460 eax = MEM32(ecx); /* 0x3A00688B: mov eax, dword ptr [ecx] */ 13461 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3A00688D: mov bl, byte ptr [eax + 0x15] */ 13462 /* test LO8(ebx), LO8(ebx) */ /* 0x3A006890: test bl, bl */ 13463 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13464 _cf = 0; 13465 _flag_k = FK_NARROW(FK_TEST, 24); 13466 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A00689F; /* 0x3A006892: jne 0x3a00689f */ 13467 L_3A006894: 13468 ecx = eax; /* 0x3A006894: mov ecx, eax */ 13469 eax = MEM32(ecx); /* 0x3A006896: mov eax, dword ptr [ecx] */ 13470 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3A006898: mov bl, byte ptr [eax + 0x15] */ 13471 /* test LO8(ebx), LO8(ebx) */ /* 0x3A00689B: test bl, bl */ 13472 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13473 _cf = 0; 13474 _flag_k = FK_NARROW(FK_TEST, 24); 13475 RECOMP_BACKEDGE(); 13476 if (TEST_Z(_flag_a, _flag_b)) goto L_3A006894; /* 0x3A00689D: je 0x3a006894 */ 13477 L_3A00689F: 13478 /* cmp ecx, esi */ /* 0x3A00689F: cmp ecx, esi */ 13479 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 13480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13481 _flag_k = FK_CMP; 13482 eax = MEM32(ecx + 0x8); /* 0x3A0068A1: mov eax, dword ptr [ecx + 8] */ 13483 MEM32(ebp + (-0x4)) = ecx; /* 0x3A0068A4: mov dword ptr [ebp - 4], ecx */ 13484 RECOMP_BACKEDGE(); 13485 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006863; /* 0x3A0068A7: je 0x3a006863 */ 13486 L_3A0068A9: 13487 MEM32(edx + 0x4) = ecx; /* 0x3A0068A9: mov dword ptr [edx + 4], ecx */ 13488 edx = MEM32(esi); /* 0x3A0068AC: mov edx, dword ptr [esi] */ 13489 MEM32(ecx) = edx; /* 0x3A0068AE: mov dword ptr [ecx], edx */ 13490 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A0068B0: cmp ecx, dword ptr [esi + 8] */ 13491 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13493 _flag_k = FK_CMP; 13494 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0068BA; /* 0x3A0068B3: jne 0x3a0068ba */ 13495 L_3A0068B5: 13496 MEM32(eax + 0x4) = ecx; /* 0x3A0068B5: mov dword ptr [eax + 4], ecx */ 13497 goto L_3A0068D1; /* 0x3A0068B8: jmp 0x3a0068d1 */ 13498 L_3A0068BA: 13499 edx = MEM32(ecx + 0x4); /* 0x3A0068BA: mov edx, dword ptr [ecx + 4] */ 13500 MEM32(eax + 0x4) = edx; /* 0x3A0068BD: mov dword ptr [eax + 4], edx */ 13501 edx = MEM32(ecx + 0x4); /* 0x3A0068C0: mov edx, dword ptr [ecx + 4] */ 13502 MEM32(edx) = eax; /* 0x3A0068C3: mov dword ptr [edx], eax */ 13503 edx = MEM32(esi + 0x8); /* 0x3A0068C5: mov edx, dword ptr [esi + 8] */ 13504 MEM32(ecx + 0x8) = edx; /* 0x3A0068C8: mov dword ptr [ecx + 8], edx */ 13505 edx = MEM32(esi + 0x8); /* 0x3A0068CB: mov edx, dword ptr [esi + 8] */ 13506 MEM32(edx + 0x4) = ecx; /* 0x3A0068CE: mov dword ptr [edx + 4], ecx */ 13507 L_3A0068D1: 13508 edx = MEM32(edi + 0x4); /* 0x3A0068D1: mov edx, dword ptr [edi + 4] */ 13509 /* cmp MEM32(edx + 0x4), esi */ /* 0x3A0068D4: cmp dword ptr [edx + 4], esi */ 13510 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 13511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13512 _flag_k = FK_CMP; 13513 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0068DE; /* 0x3A0068D7: jne 0x3a0068de */ 13514 L_3A0068D9: 13515 MEM32(edx + 0x4) = ecx; /* 0x3A0068D9: mov dword ptr [edx + 4], ecx */ 13516 goto L_3A0068EC; /* 0x3A0068DC: jmp 0x3a0068ec */ 13517 L_3A0068DE: 13518 edx = MEM32(esi + 0x4); /* 0x3A0068DE: mov edx, dword ptr [esi + 4] */ 13519 /* cmp MEM32(edx), esi */ /* 0x3A0068E1: cmp dword ptr [edx], esi */ 13520 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 13521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13522 _flag_k = FK_CMP; 13523 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0068E9; /* 0x3A0068E3: jne 0x3a0068e9 */ 13524 L_3A0068E5: 13525 MEM32(edx) = ecx; /* 0x3A0068E5: mov dword ptr [edx], ecx */ 13526 goto L_3A0068EC; /* 0x3A0068E7: jmp 0x3a0068ec */ 13527 L_3A0068E9: 13528 MEM32(edx + 0x8) = ecx; /* 0x3A0068E9: mov dword ptr [edx + 8], ecx */ 13529 L_3A0068EC: 13530 edx = MEM32(esi + 0x4); /* 0x3A0068EC: mov edx, dword ptr [esi + 4] */ 13531 MEM32(ecx + 0x4) = edx; /* 0x3A0068EF: mov dword ptr [ecx + 4], edx */ 13532 SET_LO8(ebx, MEM8(esi + 0x14)); /* 0x3A0068F2: mov bl, byte ptr [esi + 0x14] */ 13533 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A0068F5: mov dl, byte ptr [ecx + 0x14] */ 13534 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0068F8: mov byte ptr [ecx + 0x14], bl */ 13535 MEM8(esi + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A0068FB: mov byte ptr [esi + 0x14], dl */ 13536 MEM32(ebp + (-0x4)) = esi; /* 0x3A0068FE: mov dword ptr [ebp - 4], esi */ 13537 goto L_3A006968; /* 0x3A006901: jmp 0x3a006968 */ 13538 L_3A006903: 13539 ecx = MEM32(esi + 0x4); /* 0x3A006903: mov ecx, dword ptr [esi + 4] */ 13540 /* cmp MEM32(ecx), esi */ /* 0x3A006906: cmp dword ptr [ecx], esi */ 13541 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 13542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13543 _flag_k = FK_CMP; 13544 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00690E; /* 0x3A006908: jne 0x3a00690e */ 13545 L_3A00690A: 13546 MEM32(ecx) = eax; /* 0x3A00690A: mov dword ptr [ecx], eax */ 13547 goto L_3A006911; /* 0x3A00690C: jmp 0x3a006911 */ 13548 L_3A00690E: 13549 MEM32(ecx + 0x8) = eax; /* 0x3A00690E: mov dword ptr [ecx + 8], eax */ 13550 L_3A006911: 13551 ebx = MEM32(edi + 0x4); /* 0x3A006911: mov ebx, dword ptr [edi + 4] */ 13552 /* cmp MEM32(ebx), esi */ /* 0x3A006914: cmp dword ptr [ebx], esi */ 13553 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 13554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13555 _flag_k = FK_CMP; 13556 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00693B; /* 0x3A006916: jne 0x3a00693b */ 13557 L_3A006918: 13558 ecx = MEM32(esi + 0x8); /* 0x3A006918: mov ecx, dword ptr [esi + 8] */ 13559 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3A00691B: cmp ecx, dword ptr [edi + 8] */ 13560 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13562 _flag_k = FK_CMP; 13563 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006925; /* 0x3A00691E: jne 0x3a006925 */ 13564 L_3A006920: 13565 edx = MEM32(esi + 0x4); /* 0x3A006920: mov edx, dword ptr [esi + 4] */ 13566 goto L_3A006939; /* 0x3A006923: jmp 0x3a006939 */ 13567 L_3A006925: 13568 ecx = MEM32(eax); /* 0x3A006925: mov ecx, dword ptr [eax] */ 13569 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3A006927: cmp byte ptr [ecx + 0x15], 0 */ 13570 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 13571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13572 _flag_k = FK_NARROW(FK_CMP, 24); 13573 edx = eax; /* 0x3A00692B: mov edx, eax */ 13574 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006939; /* 0x3A00692D: jne 0x3a006939 */ 13575 L_3A00692F: 13576 edx = ecx; /* 0x3A00692F: mov edx, ecx */ 13577 ecx = MEM32(edx); /* 0x3A006931: mov ecx, dword ptr [edx] */ 13578 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3A006933: cmp byte ptr [ecx + 0x15], 0 */ 13579 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 13580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13581 _flag_k = FK_NARROW(FK_CMP, 24); 13582 RECOMP_BACKEDGE(); 13583 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00692F; /* 0x3A006937: je 0x3a00692f */ 13584 L_3A006939: 13585 MEM32(ebx) = edx; /* 0x3A006939: mov dword ptr [ebx], edx */ 13586 L_3A00693B: 13587 ebx = MEM32(edi + 0x4); /* 0x3A00693B: mov ebx, dword ptr [edi + 4] */ 13588 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3A00693E: cmp dword ptr [ebx + 8], esi */ 13589 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 13590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13591 _flag_k = FK_CMP; 13592 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006968; /* 0x3A006941: jne 0x3a006968 */ 13593 L_3A006943: 13594 ecx = MEM32(esi); /* 0x3A006943: mov ecx, dword ptr [esi] */ 13595 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3A006945: cmp ecx, dword ptr [edi + 8] */ 13596 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13598 _flag_k = FK_CMP; 13599 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00694F; /* 0x3A006948: jne 0x3a00694f */ 13600 L_3A00694A: 13601 edx = MEM32(esi + 0x4); /* 0x3A00694A: mov edx, dword ptr [esi + 4] */ 13602 goto L_3A006965; /* 0x3A00694D: jmp 0x3a006965 */ 13603 L_3A00694F: 13604 ecx = MEM32(eax + 0x8); /* 0x3A00694F: mov ecx, dword ptr [eax + 8] */ 13605 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3A006952: cmp byte ptr [ecx + 0x15], 0 */ 13606 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 13607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13608 _flag_k = FK_NARROW(FK_CMP, 24); 13609 edx = eax; /* 0x3A006956: mov edx, eax */ 13610 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006965; /* 0x3A006958: jne 0x3a006965 */ 13611 L_3A00695A: 13612 edx = ecx; /* 0x3A00695A: mov edx, ecx */ 13613 ecx = MEM32(edx + 0x8); /* 0x3A00695C: mov ecx, dword ptr [edx + 8] */ 13614 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3A00695F: cmp byte ptr [ecx + 0x15], 0 */ 13615 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 13616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13617 _flag_k = FK_NARROW(FK_CMP, 24); 13618 RECOMP_BACKEDGE(); 13619 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00695A; /* 0x3A006963: je 0x3a00695a */ 13620 L_3A006965: 13621 MEM32(ebx + 0x8) = edx; /* 0x3A006965: mov dword ptr [ebx + 8], edx */ 13622 L_3A006968: 13623 ecx = MEM32(ebp + (-0x4)); /* 0x3A006968: mov ecx, dword ptr [ebp - 4] */ 13624 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A00696B: mov dl, byte ptr [ecx + 0x14] */ 13625 SET_LO8(ebx, 1); /* 0x3A00696E: mov bl, 1 */ 13626 /* cmp LO8(edx), LO8(ebx) */ /* 0x3A006970: cmp dl, bl */ 13627 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13629 _flag_k = FK_NARROW(FK_CMP, 24); 13630 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD5; /* 0x3A006972: jne 0x3a006bd5 */ 13631 L_3A006978: 13632 edx = MEM32(edi + 0x4); /* 0x3A006978: mov edx, dword ptr [edi + 4] */ 13633 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3A00697B: cmp eax, dword ptr [edx + 4] */ 13634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13636 _flag_k = FK_CMP; 13637 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A00697E: je 0x3a006bd2 */ 13638 L_3A006984: 13639 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x3A006984: cmp byte ptr [eax + 0x14], bl */ 13640 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13642 _flag_k = FK_NARROW(FK_CMP, 24); 13643 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A006987: jne 0x3a006bd2 */ 13644 L_3A00698D: 13645 edx = MEM32(eax + 0x4); /* 0x3A00698D: mov edx, dword ptr [eax + 4] */ 13646 ecx = MEM32(edx); /* 0x3A006990: mov ecx, dword ptr [edx] */ 13647 /* cmp eax, ecx */ /* 0x3A006992: cmp eax, ecx */ 13648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13650 _flag_k = FK_CMP; 13651 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A04; /* 0x3A006994: jne 0x3a006a04 */ 13652 L_3A006996: 13653 ecx = MEM32(edx + 0x8); /* 0x3A006996: mov ecx, dword ptr [edx + 8] */ 13654 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006999: mov dl, byte ptr [ecx + 0x14] */ 13655 /* test LO8(edx), LO8(edx) */ /* 0x3A00699C: test dl, dl */ 13656 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13657 _cf = 0; 13658 _flag_k = FK_NARROW(FK_TEST, 24); 13659 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0069EB; /* 0x3A00699E: jne 0x3a0069eb */ 13660 L_3A0069A0: 13661 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0069A0: mov byte ptr [ecx + 0x14], bl */ 13662 ecx = MEM32(eax + 0x4); /* 0x3A0069A3: mov ecx, dword ptr [eax + 4] */ 13663 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A0069A6: mov byte ptr [ecx + 0x14], 0 */ 13664 ecx = MEM32(eax + 0x4); /* 0x3A0069AA: mov ecx, dword ptr [eax + 4] */ 13665 edx = MEM32(ecx + 0x8); /* 0x3A0069AD: mov edx, dword ptr [ecx + 8] */ 13666 esi = MEM32(edx); /* 0x3A0069B0: mov esi, dword ptr [edx] */ 13667 MEM32(ecx + 0x8) = esi; /* 0x3A0069B2: mov dword ptr [ecx + 8], esi */ 13668 esi = MEM32(edx); /* 0x3A0069B5: mov esi, dword ptr [edx] */ 13669 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0069B7: cmp esi, dword ptr [edi + 8] */ 13670 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13672 _flag_k = FK_CMP; 13673 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0069BF; /* 0x3A0069BA: je 0x3a0069bf */ 13674 L_3A0069BC: 13675 MEM32(esi + 0x4) = ecx; /* 0x3A0069BC: mov dword ptr [esi + 4], ecx */ 13676 L_3A0069BF: 13677 esi = MEM32(ecx + 0x4); /* 0x3A0069BF: mov esi, dword ptr [ecx + 4] */ 13678 MEM32(edx + 0x4) = esi; /* 0x3A0069C2: mov dword ptr [edx + 4], esi */ 13679 esi = MEM32(edi + 0x4); /* 0x3A0069C5: mov esi, dword ptr [edi + 4] */ 13680 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0069C8: cmp ecx, dword ptr [esi + 4] */ 13681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13683 _flag_k = FK_CMP; 13684 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069D2; /* 0x3A0069CB: jne 0x3a0069d2 */ 13685 L_3A0069CD: 13686 MEM32(esi + 0x4) = edx; /* 0x3A0069CD: mov dword ptr [esi + 4], edx */ 13687 goto L_3A0069E0; /* 0x3A0069D0: jmp 0x3a0069e0 */ 13688 L_3A0069D2: 13689 esi = MEM32(ecx + 0x4); /* 0x3A0069D2: mov esi, dword ptr [ecx + 4] */ 13690 /* cmp ecx, MEM32(esi) */ /* 0x3A0069D5: cmp ecx, dword ptr [esi] */ 13691 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13693 _flag_k = FK_CMP; 13694 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069DD; /* 0x3A0069D7: jne 0x3a0069dd */ 13695 L_3A0069D9: 13696 MEM32(esi) = edx; /* 0x3A0069D9: mov dword ptr [esi], edx */ 13697 goto L_3A0069E0; /* 0x3A0069DB: jmp 0x3a0069e0 */ 13698 L_3A0069DD: 13699 MEM32(esi + 0x8) = edx; /* 0x3A0069DD: mov dword ptr [esi + 8], edx */ 13700 L_3A0069E0: 13701 MEM32(edx) = ecx; /* 0x3A0069E0: mov dword ptr [edx], ecx */ 13702 MEM32(ecx + 0x4) = edx; /* 0x3A0069E2: mov dword ptr [ecx + 4], edx */ 13703 edx = MEM32(eax + 0x4); /* 0x3A0069E5: mov edx, dword ptr [eax + 4] */ 13704 ecx = MEM32(edx + 0x8); /* 0x3A0069E8: mov ecx, dword ptr [edx + 8] */ 13705 L_3A0069EB: 13706 edx = MEM32(ecx); /* 0x3A0069EB: mov edx, dword ptr [ecx] */ 13707 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069ED: cmp byte ptr [edx + 0x14], bl */ 13708 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13710 _flag_k = FK_NARROW(FK_CMP, 24); 13711 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069F0: jne 0x3a006a86 */ 13712 L_3A0069F6: 13713 edx = MEM32(ecx + 0x8); /* 0x3A0069F6: mov edx, dword ptr [ecx + 8] */ 13714 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069F9: cmp byte ptr [edx + 0x14], bl */ 13715 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13717 _flag_k = FK_NARROW(FK_CMP, 24); 13718 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069FC: jne 0x3a006a86 */ 13719 L_3A006A02: 13720 goto L_3A006A6E; /* 0x3A006A02: jmp 0x3a006a6e */ 13721 L_3A006A04: 13722 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006A04: mov dl, byte ptr [ecx + 0x14] */ 13723 /* test LO8(edx), LO8(edx) */ /* 0x3A006A07: test dl, dl */ 13724 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13725 _cf = 0; 13726 _flag_k = FK_NARROW(FK_TEST, 24); 13727 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006A57; /* 0x3A006A09: jne 0x3a006a57 */ 13728 L_3A006A0B: 13729 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A0B: mov byte ptr [ecx + 0x14], bl */ 13730 ecx = MEM32(eax + 0x4); /* 0x3A006A0E: mov ecx, dword ptr [eax + 4] */ 13731 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A11: mov byte ptr [ecx + 0x14], 0 */ 13732 ecx = MEM32(eax + 0x4); /* 0x3A006A15: mov ecx, dword ptr [eax + 4] */ 13733 edx = MEM32(ecx); /* 0x3A006A18: mov edx, dword ptr [ecx] */ 13734 esi = MEM32(edx + 0x8); /* 0x3A006A1A: mov esi, dword ptr [edx + 8] */ 13735 MEM32(ecx) = esi; /* 0x3A006A1D: mov dword ptr [ecx], esi */ 13736 esi = MEM32(edx + 0x8); /* 0x3A006A1F: mov esi, dword ptr [edx + 8] */ 13737 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006A22: cmp esi, dword ptr [edi + 8] */ 13738 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13740 _flag_k = FK_CMP; 13741 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006A2A; /* 0x3A006A25: je 0x3a006a2a */ 13742 L_3A006A27: 13743 MEM32(esi + 0x4) = ecx; /* 0x3A006A27: mov dword ptr [esi + 4], ecx */ 13744 L_3A006A2A: 13745 esi = MEM32(ecx + 0x4); /* 0x3A006A2A: mov esi, dword ptr [ecx + 4] */ 13746 MEM32(edx + 0x4) = esi; /* 0x3A006A2D: mov dword ptr [edx + 4], esi */ 13747 esi = MEM32(edi + 0x4); /* 0x3A006A30: mov esi, dword ptr [edi + 4] */ 13748 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006A33: cmp ecx, dword ptr [esi + 4] */ 13749 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13751 _flag_k = FK_CMP; 13752 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A3D; /* 0x3A006A36: jne 0x3a006a3d */ 13753 L_3A006A38: 13754 MEM32(esi + 0x4) = edx; /* 0x3A006A38: mov dword ptr [esi + 4], edx */ 13755 goto L_3A006A4C; /* 0x3A006A3B: jmp 0x3a006a4c */ 13756 L_3A006A3D: 13757 esi = MEM32(ecx + 0x4); /* 0x3A006A3D: mov esi, dword ptr [ecx + 4] */ 13758 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006A40: cmp ecx, dword ptr [esi + 8] */ 13759 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13761 _flag_k = FK_CMP; 13762 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A4A; /* 0x3A006A43: jne 0x3a006a4a */ 13763 L_3A006A45: 13764 MEM32(esi + 0x8) = edx; /* 0x3A006A45: mov dword ptr [esi + 8], edx */ 13765 goto L_3A006A4C; /* 0x3A006A48: jmp 0x3a006a4c */ 13766 L_3A006A4A: 13767 MEM32(esi) = edx; /* 0x3A006A4A: mov dword ptr [esi], edx */ 13768 L_3A006A4C: 13769 MEM32(edx + 0x8) = ecx; /* 0x3A006A4C: mov dword ptr [edx + 8], ecx */ 13770 MEM32(ecx + 0x4) = edx; /* 0x3A006A4F: mov dword ptr [ecx + 4], edx */ 13771 edx = MEM32(eax + 0x4); /* 0x3A006A52: mov edx, dword ptr [eax + 4] */ 13772 ecx = MEM32(edx); /* 0x3A006A55: mov ecx, dword ptr [edx] */ 13773 L_3A006A57: 13774 edx = MEM32(ecx + 0x8); /* 0x3A006A57: mov edx, dword ptr [ecx + 8] */ 13775 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A5A: cmp byte ptr [edx + 0x14], bl */ 13776 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13778 _flag_k = FK_NARROW(FK_CMP, 24); 13779 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A5D: jne 0x3a006b33 */ 13780 L_3A006A63: 13781 edx = MEM32(ecx); /* 0x3A006A63: mov edx, dword ptr [ecx] */ 13782 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A65: cmp byte ptr [edx + 0x14], bl */ 13783 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13785 _flag_k = FK_NARROW(FK_CMP, 24); 13786 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A68: jne 0x3a006b33 */ 13787 L_3A006A6E: 13788 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A6E: mov byte ptr [ecx + 0x14], 0 */ 13789 ecx = MEM32(edi + 0x4); /* 0x3A006A72: mov ecx, dword ptr [edi + 4] */ 13790 eax = MEM32(eax + 0x4); /* 0x3A006A75: mov eax, dword ptr [eax + 4] */ 13791 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006A78: cmp eax, dword ptr [ecx + 4] */ 13792 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13794 _flag_k = FK_CMP; 13795 RECOMP_BACKEDGE(); 13796 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006984; /* 0x3A006A7B: jne 0x3a006984 */ 13797 L_3A006A81: 13798 goto L_3A006BD2; /* 0x3A006A81: jmp 0x3a006bd2 */ 13799 L_3A006A86: 13800 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 13801 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 13802 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13804 _flag_k = FK_NARROW(FK_CMP, 24); 13805 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 13806 L_3A006A8E: 13807 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 13808 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 13809 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 13810 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 13811 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 13812 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 13813 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 13814 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 13815 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13817 _flag_k = FK_CMP; 13818 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 13819 L_3A006AA6: 13820 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 13821 L_3A006AA9: 13822 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 13823 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 13824 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 13825 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 13826 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13828 _flag_k = FK_CMP; 13829 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 13830 L_3A006AB7: 13831 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 13832 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 13833 L_3A006ABC: 13834 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 13835 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 13836 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13838 _flag_k = FK_CMP; 13839 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 13840 L_3A006AC4: 13841 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 13842 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 13843 L_3A006AC9: 13844 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 13845 L_3A006ACB: 13846 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 13847 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 13848 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 13849 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 13850 L_3A006AD7: 13851 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 13852 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 13853 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 13854 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 13855 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 13856 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 13857 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 13858 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 13859 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 13860 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 13861 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 13862 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 13863 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 13864 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13866 _flag_k = FK_CMP; 13867 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 13868 L_3A006AFE: 13869 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 13870 L_3A006B01: 13871 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 13872 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 13873 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 13874 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 13875 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13877 _flag_k = FK_CMP; 13878 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 13879 L_3A006B0F: 13880 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 13881 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 13882 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 13883 L_3A006B19: 13884 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 13885 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 13886 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13888 _flag_k = FK_CMP; 13889 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 13890 L_3A006B20: 13891 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 13892 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 13893 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 13894 L_3A006B29: 13895 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 13896 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 13897 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 13898 L_3A006B33: 13899 edx = MEM32(ecx); /* 0x3A006B33: mov edx, dword ptr [ecx] */ 13900 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006B35: cmp byte ptr [edx + 0x14], bl */ 13901 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13903 _flag_k = FK_NARROW(FK_CMP, 24); 13904 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B81; /* 0x3A006B38: jne 0x3a006b81 */ 13905 L_3A006B3A: 13906 edx = MEM32(ecx + 0x8); /* 0x3A006B3A: mov edx, dword ptr [ecx + 8] */ 13907 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B3D: mov byte ptr [edx + 0x14], bl */ 13908 edx = MEM32(ecx + 0x8); /* 0x3A006B40: mov edx, dword ptr [ecx + 8] */ 13909 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006B43: mov byte ptr [ecx + 0x14], 0 */ 13910 esi = MEM32(edx); /* 0x3A006B47: mov esi, dword ptr [edx] */ 13911 MEM32(ecx + 0x8) = esi; /* 0x3A006B49: mov dword ptr [ecx + 8], esi */ 13912 esi = MEM32(edx); /* 0x3A006B4C: mov esi, dword ptr [edx] */ 13913 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006B4E: cmp esi, dword ptr [edi + 8] */ 13914 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13916 _flag_k = FK_CMP; 13917 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B56; /* 0x3A006B51: je 0x3a006b56 */ 13918 L_3A006B53: 13919 MEM32(esi + 0x4) = ecx; /* 0x3A006B53: mov dword ptr [esi + 4], ecx */ 13920 L_3A006B56: 13921 esi = MEM32(ecx + 0x4); /* 0x3A006B56: mov esi, dword ptr [ecx + 4] */ 13922 MEM32(edx + 0x4) = esi; /* 0x3A006B59: mov dword ptr [edx + 4], esi */ 13923 esi = MEM32(edi + 0x4); /* 0x3A006B5C: mov esi, dword ptr [edi + 4] */ 13924 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B5F: cmp ecx, dword ptr [esi + 4] */ 13925 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13927 _flag_k = FK_CMP; 13928 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B69; /* 0x3A006B62: jne 0x3a006b69 */ 13929 L_3A006B64: 13930 MEM32(esi + 0x4) = edx; /* 0x3A006B64: mov dword ptr [esi + 4], edx */ 13931 goto L_3A006B77; /* 0x3A006B67: jmp 0x3a006b77 */ 13932 L_3A006B69: 13933 esi = MEM32(ecx + 0x4); /* 0x3A006B69: mov esi, dword ptr [ecx + 4] */ 13934 /* cmp ecx, MEM32(esi) */ /* 0x3A006B6C: cmp ecx, dword ptr [esi] */ 13935 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13937 _flag_k = FK_CMP; 13938 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B74; /* 0x3A006B6E: jne 0x3a006b74 */ 13939 L_3A006B70: 13940 MEM32(esi) = edx; /* 0x3A006B70: mov dword ptr [esi], edx */ 13941 goto L_3A006B77; /* 0x3A006B72: jmp 0x3a006b77 */ 13942 L_3A006B74: 13943 MEM32(esi + 0x8) = edx; /* 0x3A006B74: mov dword ptr [esi + 8], edx */ 13944 L_3A006B77: 13945 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 13946 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 13947 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 13948 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 13949 L_3A006B81: 13950 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 13951 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 13952 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 13953 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 13954 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 13955 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 13956 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 13957 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 13958 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 13959 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 13960 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 13961 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 13962 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 13963 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13965 _flag_k = FK_CMP; 13966 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 13967 L_3A006BA7: 13968 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 13969 L_3A006BAA: 13970 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 13971 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 13972 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 13973 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 13974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13976 _flag_k = FK_CMP; 13977 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 13978 L_3A006BB8: 13979 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 13980 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 13981 L_3A006BBD: 13982 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 13983 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 13984 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13986 _flag_k = FK_CMP; 13987 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 13988 L_3A006BC5: 13989 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 13990 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 13991 L_3A006BCA: 13992 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 13993 L_3A006BCC: 13994 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 13995 L_3A006BCF: 13996 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 13997 L_3A006BD2: 13998 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 13999 L_3A006BD5: 14000 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 14001 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 14002 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 14003 RECOMP_FLAGS_IN(); 14004 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 14005 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 14006 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14008 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 14009 _flag_k = FK_ADD; 14010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14011 eax = eax - 1; /* 0x3A006BE7: dec eax */ 14012 _flag_k = FK_DEC; 14013 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 14014 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 14015 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 14016 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 14017 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 14018 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 14019 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 14020 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 14021 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 14022 RECOMP_REGS_OUT(); 14023 } 14024 14025 void sub_3A006911(void) { 14026 int _fpu_cmp = 0; 14027 uint32_t _cf = 0; 14028 int _df = 1; 14029 uint32_t _flag_k = FK_NONE; 14030 uint32_t _flag_a = 0, _flag_b = 0; 14031 uint32_t _itail_tgt = 0; 14032 RECOMP_REGS_LOCALS 14033 RECOMP_ENTER(0x3A006911u); 14034 14035 L_3A006911: 14036 ebx = MEM32(edi + 0x4); /* 0x3A006911: mov ebx, dword ptr [edi + 4] */ 14037 /* cmp MEM32(ebx), esi */ /* 0x3A006914: cmp dword ptr [ebx], esi */ 14038 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 14039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14040 _flag_k = FK_CMP; 14041 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00693B; /* 0x3A006916: jne 0x3a00693b */ 14042 L_3A006918: 14043 ecx = MEM32(esi + 0x8); /* 0x3A006918: mov ecx, dword ptr [esi + 8] */ 14044 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3A00691B: cmp ecx, dword ptr [edi + 8] */ 14045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14047 _flag_k = FK_CMP; 14048 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006925; /* 0x3A00691E: jne 0x3a006925 */ 14049 L_3A006920: 14050 edx = MEM32(esi + 0x4); /* 0x3A006920: mov edx, dword ptr [esi + 4] */ 14051 goto L_3A006939; /* 0x3A006923: jmp 0x3a006939 */ 14052 L_3A006925: 14053 ecx = MEM32(eax); /* 0x3A006925: mov ecx, dword ptr [eax] */ 14054 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3A006927: cmp byte ptr [ecx + 0x15], 0 */ 14055 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 14056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14057 _flag_k = FK_NARROW(FK_CMP, 24); 14058 edx = eax; /* 0x3A00692B: mov edx, eax */ 14059 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006939; /* 0x3A00692D: jne 0x3a006939 */ 14060 L_3A00692F: 14061 edx = ecx; /* 0x3A00692F: mov edx, ecx */ 14062 ecx = MEM32(edx); /* 0x3A006931: mov ecx, dword ptr [edx] */ 14063 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3A006933: cmp byte ptr [ecx + 0x15], 0 */ 14064 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 14065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14066 _flag_k = FK_NARROW(FK_CMP, 24); 14067 RECOMP_BACKEDGE(); 14068 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00692F; /* 0x3A006937: je 0x3a00692f */ 14069 L_3A006939: 14070 MEM32(ebx) = edx; /* 0x3A006939: mov dword ptr [ebx], edx */ 14071 L_3A00693B: 14072 ebx = MEM32(edi + 0x4); /* 0x3A00693B: mov ebx, dword ptr [edi + 4] */ 14073 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3A00693E: cmp dword ptr [ebx + 8], esi */ 14074 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 14075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14076 _flag_k = FK_CMP; 14077 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006968; /* 0x3A006941: jne 0x3a006968 */ 14078 L_3A006943: 14079 ecx = MEM32(esi); /* 0x3A006943: mov ecx, dword ptr [esi] */ 14080 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3A006945: cmp ecx, dword ptr [edi + 8] */ 14081 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14083 _flag_k = FK_CMP; 14084 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00694F; /* 0x3A006948: jne 0x3a00694f */ 14085 L_3A00694A: 14086 edx = MEM32(esi + 0x4); /* 0x3A00694A: mov edx, dword ptr [esi + 4] */ 14087 goto L_3A006965; /* 0x3A00694D: jmp 0x3a006965 */ 14088 L_3A00694F: 14089 ecx = MEM32(eax + 0x8); /* 0x3A00694F: mov ecx, dword ptr [eax + 8] */ 14090 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3A006952: cmp byte ptr [ecx + 0x15], 0 */ 14091 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 14092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14093 _flag_k = FK_NARROW(FK_CMP, 24); 14094 edx = eax; /* 0x3A006956: mov edx, eax */ 14095 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006965; /* 0x3A006958: jne 0x3a006965 */ 14096 L_3A00695A: 14097 edx = ecx; /* 0x3A00695A: mov edx, ecx */ 14098 ecx = MEM32(edx + 0x8); /* 0x3A00695C: mov ecx, dword ptr [edx + 8] */ 14099 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3A00695F: cmp byte ptr [ecx + 0x15], 0 */ 14100 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 14101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14102 _flag_k = FK_NARROW(FK_CMP, 24); 14103 RECOMP_BACKEDGE(); 14104 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00695A; /* 0x3A006963: je 0x3a00695a */ 14105 L_3A006965: 14106 MEM32(ebx + 0x8) = edx; /* 0x3A006965: mov dword ptr [ebx + 8], edx */ 14107 L_3A006968: 14108 ecx = MEM32(ebp + (-0x4)); /* 0x3A006968: mov ecx, dword ptr [ebp - 4] */ 14109 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A00696B: mov dl, byte ptr [ecx + 0x14] */ 14110 SET_LO8(ebx, 1); /* 0x3A00696E: mov bl, 1 */ 14111 /* cmp LO8(edx), LO8(ebx) */ /* 0x3A006970: cmp dl, bl */ 14112 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14114 _flag_k = FK_NARROW(FK_CMP, 24); 14115 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD5; /* 0x3A006972: jne 0x3a006bd5 */ 14116 L_3A006978: 14117 edx = MEM32(edi + 0x4); /* 0x3A006978: mov edx, dword ptr [edi + 4] */ 14118 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3A00697B: cmp eax, dword ptr [edx + 4] */ 14119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 14120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14121 _flag_k = FK_CMP; 14122 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A00697E: je 0x3a006bd2 */ 14123 L_3A006984: 14124 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x3A006984: cmp byte ptr [eax + 0x14], bl */ 14125 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14127 _flag_k = FK_NARROW(FK_CMP, 24); 14128 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A006987: jne 0x3a006bd2 */ 14129 L_3A00698D: 14130 edx = MEM32(eax + 0x4); /* 0x3A00698D: mov edx, dword ptr [eax + 4] */ 14131 ecx = MEM32(edx); /* 0x3A006990: mov ecx, dword ptr [edx] */ 14132 /* cmp eax, ecx */ /* 0x3A006992: cmp eax, ecx */ 14133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14135 _flag_k = FK_CMP; 14136 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A04; /* 0x3A006994: jne 0x3a006a04 */ 14137 L_3A006996: 14138 ecx = MEM32(edx + 0x8); /* 0x3A006996: mov ecx, dword ptr [edx + 8] */ 14139 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006999: mov dl, byte ptr [ecx + 0x14] */ 14140 /* test LO8(edx), LO8(edx) */ /* 0x3A00699C: test dl, dl */ 14141 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14142 _cf = 0; 14143 _flag_k = FK_NARROW(FK_TEST, 24); 14144 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0069EB; /* 0x3A00699E: jne 0x3a0069eb */ 14145 L_3A0069A0: 14146 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0069A0: mov byte ptr [ecx + 0x14], bl */ 14147 ecx = MEM32(eax + 0x4); /* 0x3A0069A3: mov ecx, dword ptr [eax + 4] */ 14148 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A0069A6: mov byte ptr [ecx + 0x14], 0 */ 14149 ecx = MEM32(eax + 0x4); /* 0x3A0069AA: mov ecx, dword ptr [eax + 4] */ 14150 edx = MEM32(ecx + 0x8); /* 0x3A0069AD: mov edx, dword ptr [ecx + 8] */ 14151 esi = MEM32(edx); /* 0x3A0069B0: mov esi, dword ptr [edx] */ 14152 MEM32(ecx + 0x8) = esi; /* 0x3A0069B2: mov dword ptr [ecx + 8], esi */ 14153 esi = MEM32(edx); /* 0x3A0069B5: mov esi, dword ptr [edx] */ 14154 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0069B7: cmp esi, dword ptr [edi + 8] */ 14155 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14157 _flag_k = FK_CMP; 14158 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0069BF; /* 0x3A0069BA: je 0x3a0069bf */ 14159 L_3A0069BC: 14160 MEM32(esi + 0x4) = ecx; /* 0x3A0069BC: mov dword ptr [esi + 4], ecx */ 14161 L_3A0069BF: 14162 esi = MEM32(ecx + 0x4); /* 0x3A0069BF: mov esi, dword ptr [ecx + 4] */ 14163 MEM32(edx + 0x4) = esi; /* 0x3A0069C2: mov dword ptr [edx + 4], esi */ 14164 esi = MEM32(edi + 0x4); /* 0x3A0069C5: mov esi, dword ptr [edi + 4] */ 14165 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0069C8: cmp ecx, dword ptr [esi + 4] */ 14166 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14168 _flag_k = FK_CMP; 14169 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069D2; /* 0x3A0069CB: jne 0x3a0069d2 */ 14170 L_3A0069CD: 14171 MEM32(esi + 0x4) = edx; /* 0x3A0069CD: mov dword ptr [esi + 4], edx */ 14172 goto L_3A0069E0; /* 0x3A0069D0: jmp 0x3a0069e0 */ 14173 L_3A0069D2: 14174 esi = MEM32(ecx + 0x4); /* 0x3A0069D2: mov esi, dword ptr [ecx + 4] */ 14175 /* cmp ecx, MEM32(esi) */ /* 0x3A0069D5: cmp ecx, dword ptr [esi] */ 14176 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14178 _flag_k = FK_CMP; 14179 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069DD; /* 0x3A0069D7: jne 0x3a0069dd */ 14180 L_3A0069D9: 14181 MEM32(esi) = edx; /* 0x3A0069D9: mov dword ptr [esi], edx */ 14182 goto L_3A0069E0; /* 0x3A0069DB: jmp 0x3a0069e0 */ 14183 L_3A0069DD: 14184 MEM32(esi + 0x8) = edx; /* 0x3A0069DD: mov dword ptr [esi + 8], edx */ 14185 L_3A0069E0: 14186 MEM32(edx) = ecx; /* 0x3A0069E0: mov dword ptr [edx], ecx */ 14187 MEM32(ecx + 0x4) = edx; /* 0x3A0069E2: mov dword ptr [ecx + 4], edx */ 14188 edx = MEM32(eax + 0x4); /* 0x3A0069E5: mov edx, dword ptr [eax + 4] */ 14189 ecx = MEM32(edx + 0x8); /* 0x3A0069E8: mov ecx, dword ptr [edx + 8] */ 14190 L_3A0069EB: 14191 edx = MEM32(ecx); /* 0x3A0069EB: mov edx, dword ptr [ecx] */ 14192 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069ED: cmp byte ptr [edx + 0x14], bl */ 14193 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14195 _flag_k = FK_NARROW(FK_CMP, 24); 14196 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069F0: jne 0x3a006a86 */ 14197 L_3A0069F6: 14198 edx = MEM32(ecx + 0x8); /* 0x3A0069F6: mov edx, dword ptr [ecx + 8] */ 14199 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069F9: cmp byte ptr [edx + 0x14], bl */ 14200 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14202 _flag_k = FK_NARROW(FK_CMP, 24); 14203 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069FC: jne 0x3a006a86 */ 14204 L_3A006A02: 14205 goto L_3A006A6E; /* 0x3A006A02: jmp 0x3a006a6e */ 14206 L_3A006A04: 14207 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006A04: mov dl, byte ptr [ecx + 0x14] */ 14208 /* test LO8(edx), LO8(edx) */ /* 0x3A006A07: test dl, dl */ 14209 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14210 _cf = 0; 14211 _flag_k = FK_NARROW(FK_TEST, 24); 14212 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006A57; /* 0x3A006A09: jne 0x3a006a57 */ 14213 L_3A006A0B: 14214 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A0B: mov byte ptr [ecx + 0x14], bl */ 14215 ecx = MEM32(eax + 0x4); /* 0x3A006A0E: mov ecx, dword ptr [eax + 4] */ 14216 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A11: mov byte ptr [ecx + 0x14], 0 */ 14217 ecx = MEM32(eax + 0x4); /* 0x3A006A15: mov ecx, dword ptr [eax + 4] */ 14218 edx = MEM32(ecx); /* 0x3A006A18: mov edx, dword ptr [ecx] */ 14219 esi = MEM32(edx + 0x8); /* 0x3A006A1A: mov esi, dword ptr [edx + 8] */ 14220 MEM32(ecx) = esi; /* 0x3A006A1D: mov dword ptr [ecx], esi */ 14221 esi = MEM32(edx + 0x8); /* 0x3A006A1F: mov esi, dword ptr [edx + 8] */ 14222 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006A22: cmp esi, dword ptr [edi + 8] */ 14223 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14225 _flag_k = FK_CMP; 14226 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006A2A; /* 0x3A006A25: je 0x3a006a2a */ 14227 L_3A006A27: 14228 MEM32(esi + 0x4) = ecx; /* 0x3A006A27: mov dword ptr [esi + 4], ecx */ 14229 L_3A006A2A: 14230 esi = MEM32(ecx + 0x4); /* 0x3A006A2A: mov esi, dword ptr [ecx + 4] */ 14231 MEM32(edx + 0x4) = esi; /* 0x3A006A2D: mov dword ptr [edx + 4], esi */ 14232 esi = MEM32(edi + 0x4); /* 0x3A006A30: mov esi, dword ptr [edi + 4] */ 14233 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006A33: cmp ecx, dword ptr [esi + 4] */ 14234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14236 _flag_k = FK_CMP; 14237 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A3D; /* 0x3A006A36: jne 0x3a006a3d */ 14238 L_3A006A38: 14239 MEM32(esi + 0x4) = edx; /* 0x3A006A38: mov dword ptr [esi + 4], edx */ 14240 goto L_3A006A4C; /* 0x3A006A3B: jmp 0x3a006a4c */ 14241 L_3A006A3D: 14242 esi = MEM32(ecx + 0x4); /* 0x3A006A3D: mov esi, dword ptr [ecx + 4] */ 14243 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006A40: cmp ecx, dword ptr [esi + 8] */ 14244 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14246 _flag_k = FK_CMP; 14247 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A4A; /* 0x3A006A43: jne 0x3a006a4a */ 14248 L_3A006A45: 14249 MEM32(esi + 0x8) = edx; /* 0x3A006A45: mov dword ptr [esi + 8], edx */ 14250 goto L_3A006A4C; /* 0x3A006A48: jmp 0x3a006a4c */ 14251 L_3A006A4A: 14252 MEM32(esi) = edx; /* 0x3A006A4A: mov dword ptr [esi], edx */ 14253 L_3A006A4C: 14254 MEM32(edx + 0x8) = ecx; /* 0x3A006A4C: mov dword ptr [edx + 8], ecx */ 14255 MEM32(ecx + 0x4) = edx; /* 0x3A006A4F: mov dword ptr [ecx + 4], edx */ 14256 edx = MEM32(eax + 0x4); /* 0x3A006A52: mov edx, dword ptr [eax + 4] */ 14257 ecx = MEM32(edx); /* 0x3A006A55: mov ecx, dword ptr [edx] */ 14258 L_3A006A57: 14259 edx = MEM32(ecx + 0x8); /* 0x3A006A57: mov edx, dword ptr [ecx + 8] */ 14260 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A5A: cmp byte ptr [edx + 0x14], bl */ 14261 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14263 _flag_k = FK_NARROW(FK_CMP, 24); 14264 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A5D: jne 0x3a006b33 */ 14265 L_3A006A63: 14266 edx = MEM32(ecx); /* 0x3A006A63: mov edx, dword ptr [ecx] */ 14267 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A65: cmp byte ptr [edx + 0x14], bl */ 14268 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14270 _flag_k = FK_NARROW(FK_CMP, 24); 14271 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A68: jne 0x3a006b33 */ 14272 L_3A006A6E: 14273 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A6E: mov byte ptr [ecx + 0x14], 0 */ 14274 ecx = MEM32(edi + 0x4); /* 0x3A006A72: mov ecx, dword ptr [edi + 4] */ 14275 eax = MEM32(eax + 0x4); /* 0x3A006A75: mov eax, dword ptr [eax + 4] */ 14276 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006A78: cmp eax, dword ptr [ecx + 4] */ 14277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14279 _flag_k = FK_CMP; 14280 RECOMP_BACKEDGE(); 14281 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006984; /* 0x3A006A7B: jne 0x3a006984 */ 14282 L_3A006A81: 14283 goto L_3A006BD2; /* 0x3A006A81: jmp 0x3a006bd2 */ 14284 L_3A006A86: 14285 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 14286 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 14287 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14289 _flag_k = FK_NARROW(FK_CMP, 24); 14290 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 14291 L_3A006A8E: 14292 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 14293 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 14294 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 14295 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 14296 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 14297 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 14298 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 14299 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 14300 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14302 _flag_k = FK_CMP; 14303 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 14304 L_3A006AA6: 14305 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 14306 L_3A006AA9: 14307 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 14308 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 14309 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 14310 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 14311 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14313 _flag_k = FK_CMP; 14314 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 14315 L_3A006AB7: 14316 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 14317 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 14318 L_3A006ABC: 14319 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 14320 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 14321 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14323 _flag_k = FK_CMP; 14324 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 14325 L_3A006AC4: 14326 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 14327 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 14328 L_3A006AC9: 14329 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 14330 L_3A006ACB: 14331 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 14332 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 14333 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 14334 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 14335 L_3A006AD7: 14336 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 14337 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 14338 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 14339 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 14340 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 14341 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 14342 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 14343 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 14344 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 14345 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 14346 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 14347 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 14348 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 14349 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14351 _flag_k = FK_CMP; 14352 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 14353 L_3A006AFE: 14354 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 14355 L_3A006B01: 14356 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 14357 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 14358 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 14359 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 14360 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14362 _flag_k = FK_CMP; 14363 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 14364 L_3A006B0F: 14365 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 14366 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 14367 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 14368 L_3A006B19: 14369 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 14370 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 14371 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14373 _flag_k = FK_CMP; 14374 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 14375 L_3A006B20: 14376 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 14377 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 14378 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 14379 L_3A006B29: 14380 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 14381 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 14382 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 14383 L_3A006B33: 14384 edx = MEM32(ecx); /* 0x3A006B33: mov edx, dword ptr [ecx] */ 14385 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006B35: cmp byte ptr [edx + 0x14], bl */ 14386 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14388 _flag_k = FK_NARROW(FK_CMP, 24); 14389 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B81; /* 0x3A006B38: jne 0x3a006b81 */ 14390 L_3A006B3A: 14391 edx = MEM32(ecx + 0x8); /* 0x3A006B3A: mov edx, dword ptr [ecx + 8] */ 14392 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B3D: mov byte ptr [edx + 0x14], bl */ 14393 edx = MEM32(ecx + 0x8); /* 0x3A006B40: mov edx, dword ptr [ecx + 8] */ 14394 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006B43: mov byte ptr [ecx + 0x14], 0 */ 14395 esi = MEM32(edx); /* 0x3A006B47: mov esi, dword ptr [edx] */ 14396 MEM32(ecx + 0x8) = esi; /* 0x3A006B49: mov dword ptr [ecx + 8], esi */ 14397 esi = MEM32(edx); /* 0x3A006B4C: mov esi, dword ptr [edx] */ 14398 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006B4E: cmp esi, dword ptr [edi + 8] */ 14399 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14401 _flag_k = FK_CMP; 14402 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B56; /* 0x3A006B51: je 0x3a006b56 */ 14403 L_3A006B53: 14404 MEM32(esi + 0x4) = ecx; /* 0x3A006B53: mov dword ptr [esi + 4], ecx */ 14405 L_3A006B56: 14406 esi = MEM32(ecx + 0x4); /* 0x3A006B56: mov esi, dword ptr [ecx + 4] */ 14407 MEM32(edx + 0x4) = esi; /* 0x3A006B59: mov dword ptr [edx + 4], esi */ 14408 esi = MEM32(edi + 0x4); /* 0x3A006B5C: mov esi, dword ptr [edi + 4] */ 14409 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B5F: cmp ecx, dword ptr [esi + 4] */ 14410 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14412 _flag_k = FK_CMP; 14413 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B69; /* 0x3A006B62: jne 0x3a006b69 */ 14414 L_3A006B64: 14415 MEM32(esi + 0x4) = edx; /* 0x3A006B64: mov dword ptr [esi + 4], edx */ 14416 goto L_3A006B77; /* 0x3A006B67: jmp 0x3a006b77 */ 14417 L_3A006B69: 14418 esi = MEM32(ecx + 0x4); /* 0x3A006B69: mov esi, dword ptr [ecx + 4] */ 14419 /* cmp ecx, MEM32(esi) */ /* 0x3A006B6C: cmp ecx, dword ptr [esi] */ 14420 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14422 _flag_k = FK_CMP; 14423 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B74; /* 0x3A006B6E: jne 0x3a006b74 */ 14424 L_3A006B70: 14425 MEM32(esi) = edx; /* 0x3A006B70: mov dword ptr [esi], edx */ 14426 goto L_3A006B77; /* 0x3A006B72: jmp 0x3a006b77 */ 14427 L_3A006B74: 14428 MEM32(esi + 0x8) = edx; /* 0x3A006B74: mov dword ptr [esi + 8], edx */ 14429 L_3A006B77: 14430 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 14431 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 14432 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 14433 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 14434 L_3A006B81: 14435 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 14436 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 14437 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 14438 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 14439 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 14440 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 14441 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 14442 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 14443 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 14444 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 14445 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 14446 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 14447 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 14448 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14450 _flag_k = FK_CMP; 14451 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 14452 L_3A006BA7: 14453 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 14454 L_3A006BAA: 14455 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 14456 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 14457 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 14458 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 14459 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14461 _flag_k = FK_CMP; 14462 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 14463 L_3A006BB8: 14464 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 14465 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 14466 L_3A006BBD: 14467 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 14468 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 14469 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14471 _flag_k = FK_CMP; 14472 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 14473 L_3A006BC5: 14474 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 14475 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 14476 L_3A006BCA: 14477 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 14478 L_3A006BCC: 14479 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 14480 L_3A006BCF: 14481 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 14482 L_3A006BD2: 14483 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 14484 L_3A006BD5: 14485 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 14486 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 14487 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 14488 RECOMP_FLAGS_IN(); 14489 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 14490 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 14491 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14492 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14493 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 14494 _flag_k = FK_ADD; 14495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14496 eax = eax - 1; /* 0x3A006BE7: dec eax */ 14497 _flag_k = FK_DEC; 14498 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 14499 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 14500 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 14501 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 14502 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 14503 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 14504 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 14505 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 14506 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 14507 RECOMP_REGS_OUT(); 14508 } 14509 14510 void sub_3A006939(void) { 14511 int _fpu_cmp = 0; 14512 uint32_t _cf = 0; 14513 int _df = 1; 14514 uint32_t _flag_k = FK_NONE; 14515 uint32_t _flag_a = 0, _flag_b = 0; 14516 uint32_t _itail_tgt = 0; 14517 RECOMP_REGS_LOCALS 14518 RECOMP_ENTER(0x3A006939u); 14519 14520 L_3A006939: 14521 MEM32(ebx) = edx; /* 0x3A006939: mov dword ptr [ebx], edx */ 14522 ebx = MEM32(edi + 0x4); /* 0x3A00693B: mov ebx, dword ptr [edi + 4] */ 14523 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3A00693E: cmp dword ptr [ebx + 8], esi */ 14524 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 14525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14526 _flag_k = FK_CMP; 14527 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006968; /* 0x3A006941: jne 0x3a006968 */ 14528 L_3A006943: 14529 ecx = MEM32(esi); /* 0x3A006943: mov ecx, dword ptr [esi] */ 14530 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3A006945: cmp ecx, dword ptr [edi + 8] */ 14531 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14533 _flag_k = FK_CMP; 14534 if (CMP_NE(_flag_a, _flag_b)) goto L_3A00694F; /* 0x3A006948: jne 0x3a00694f */ 14535 L_3A00694A: 14536 edx = MEM32(esi + 0x4); /* 0x3A00694A: mov edx, dword ptr [esi + 4] */ 14537 goto L_3A006965; /* 0x3A00694D: jmp 0x3a006965 */ 14538 L_3A00694F: 14539 ecx = MEM32(eax + 0x8); /* 0x3A00694F: mov ecx, dword ptr [eax + 8] */ 14540 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3A006952: cmp byte ptr [ecx + 0x15], 0 */ 14541 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 14542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14543 _flag_k = FK_NARROW(FK_CMP, 24); 14544 edx = eax; /* 0x3A006956: mov edx, eax */ 14545 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006965; /* 0x3A006958: jne 0x3a006965 */ 14546 L_3A00695A: 14547 edx = ecx; /* 0x3A00695A: mov edx, ecx */ 14548 ecx = MEM32(edx + 0x8); /* 0x3A00695C: mov ecx, dword ptr [edx + 8] */ 14549 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3A00695F: cmp byte ptr [ecx + 0x15], 0 */ 14550 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 14551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14552 _flag_k = FK_NARROW(FK_CMP, 24); 14553 RECOMP_BACKEDGE(); 14554 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A00695A; /* 0x3A006963: je 0x3a00695a */ 14555 L_3A006965: 14556 MEM32(ebx + 0x8) = edx; /* 0x3A006965: mov dword ptr [ebx + 8], edx */ 14557 L_3A006968: 14558 ecx = MEM32(ebp + (-0x4)); /* 0x3A006968: mov ecx, dword ptr [ebp - 4] */ 14559 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A00696B: mov dl, byte ptr [ecx + 0x14] */ 14560 SET_LO8(ebx, 1); /* 0x3A00696E: mov bl, 1 */ 14561 /* cmp LO8(edx), LO8(ebx) */ /* 0x3A006970: cmp dl, bl */ 14562 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14564 _flag_k = FK_NARROW(FK_CMP, 24); 14565 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD5; /* 0x3A006972: jne 0x3a006bd5 */ 14566 L_3A006978: 14567 edx = MEM32(edi + 0x4); /* 0x3A006978: mov edx, dword ptr [edi + 4] */ 14568 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3A00697B: cmp eax, dword ptr [edx + 4] */ 14569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 14570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14571 _flag_k = FK_CMP; 14572 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A00697E: je 0x3a006bd2 */ 14573 L_3A006984: 14574 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x3A006984: cmp byte ptr [eax + 0x14], bl */ 14575 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14577 _flag_k = FK_NARROW(FK_CMP, 24); 14578 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A006987: jne 0x3a006bd2 */ 14579 L_3A00698D: 14580 edx = MEM32(eax + 0x4); /* 0x3A00698D: mov edx, dword ptr [eax + 4] */ 14581 ecx = MEM32(edx); /* 0x3A006990: mov ecx, dword ptr [edx] */ 14582 /* cmp eax, ecx */ /* 0x3A006992: cmp eax, ecx */ 14583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14585 _flag_k = FK_CMP; 14586 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A04; /* 0x3A006994: jne 0x3a006a04 */ 14587 L_3A006996: 14588 ecx = MEM32(edx + 0x8); /* 0x3A006996: mov ecx, dword ptr [edx + 8] */ 14589 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006999: mov dl, byte ptr [ecx + 0x14] */ 14590 /* test LO8(edx), LO8(edx) */ /* 0x3A00699C: test dl, dl */ 14591 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14592 _cf = 0; 14593 _flag_k = FK_NARROW(FK_TEST, 24); 14594 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0069EB; /* 0x3A00699E: jne 0x3a0069eb */ 14595 L_3A0069A0: 14596 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0069A0: mov byte ptr [ecx + 0x14], bl */ 14597 ecx = MEM32(eax + 0x4); /* 0x3A0069A3: mov ecx, dword ptr [eax + 4] */ 14598 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A0069A6: mov byte ptr [ecx + 0x14], 0 */ 14599 ecx = MEM32(eax + 0x4); /* 0x3A0069AA: mov ecx, dword ptr [eax + 4] */ 14600 edx = MEM32(ecx + 0x8); /* 0x3A0069AD: mov edx, dword ptr [ecx + 8] */ 14601 esi = MEM32(edx); /* 0x3A0069B0: mov esi, dword ptr [edx] */ 14602 MEM32(ecx + 0x8) = esi; /* 0x3A0069B2: mov dword ptr [ecx + 8], esi */ 14603 esi = MEM32(edx); /* 0x3A0069B5: mov esi, dword ptr [edx] */ 14604 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0069B7: cmp esi, dword ptr [edi + 8] */ 14605 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14607 _flag_k = FK_CMP; 14608 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0069BF; /* 0x3A0069BA: je 0x3a0069bf */ 14609 L_3A0069BC: 14610 MEM32(esi + 0x4) = ecx; /* 0x3A0069BC: mov dword ptr [esi + 4], ecx */ 14611 L_3A0069BF: 14612 esi = MEM32(ecx + 0x4); /* 0x3A0069BF: mov esi, dword ptr [ecx + 4] */ 14613 MEM32(edx + 0x4) = esi; /* 0x3A0069C2: mov dword ptr [edx + 4], esi */ 14614 esi = MEM32(edi + 0x4); /* 0x3A0069C5: mov esi, dword ptr [edi + 4] */ 14615 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0069C8: cmp ecx, dword ptr [esi + 4] */ 14616 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14618 _flag_k = FK_CMP; 14619 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069D2; /* 0x3A0069CB: jne 0x3a0069d2 */ 14620 L_3A0069CD: 14621 MEM32(esi + 0x4) = edx; /* 0x3A0069CD: mov dword ptr [esi + 4], edx */ 14622 goto L_3A0069E0; /* 0x3A0069D0: jmp 0x3a0069e0 */ 14623 L_3A0069D2: 14624 esi = MEM32(ecx + 0x4); /* 0x3A0069D2: mov esi, dword ptr [ecx + 4] */ 14625 /* cmp ecx, MEM32(esi) */ /* 0x3A0069D5: cmp ecx, dword ptr [esi] */ 14626 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14628 _flag_k = FK_CMP; 14629 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069DD; /* 0x3A0069D7: jne 0x3a0069dd */ 14630 L_3A0069D9: 14631 MEM32(esi) = edx; /* 0x3A0069D9: mov dword ptr [esi], edx */ 14632 goto L_3A0069E0; /* 0x3A0069DB: jmp 0x3a0069e0 */ 14633 L_3A0069DD: 14634 MEM32(esi + 0x8) = edx; /* 0x3A0069DD: mov dword ptr [esi + 8], edx */ 14635 L_3A0069E0: 14636 MEM32(edx) = ecx; /* 0x3A0069E0: mov dword ptr [edx], ecx */ 14637 MEM32(ecx + 0x4) = edx; /* 0x3A0069E2: mov dword ptr [ecx + 4], edx */ 14638 edx = MEM32(eax + 0x4); /* 0x3A0069E5: mov edx, dword ptr [eax + 4] */ 14639 ecx = MEM32(edx + 0x8); /* 0x3A0069E8: mov ecx, dword ptr [edx + 8] */ 14640 L_3A0069EB: 14641 edx = MEM32(ecx); /* 0x3A0069EB: mov edx, dword ptr [ecx] */ 14642 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069ED: cmp byte ptr [edx + 0x14], bl */ 14643 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14645 _flag_k = FK_NARROW(FK_CMP, 24); 14646 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069F0: jne 0x3a006a86 */ 14647 L_3A0069F6: 14648 edx = MEM32(ecx + 0x8); /* 0x3A0069F6: mov edx, dword ptr [ecx + 8] */ 14649 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069F9: cmp byte ptr [edx + 0x14], bl */ 14650 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14652 _flag_k = FK_NARROW(FK_CMP, 24); 14653 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069FC: jne 0x3a006a86 */ 14654 L_3A006A02: 14655 goto L_3A006A6E; /* 0x3A006A02: jmp 0x3a006a6e */ 14656 L_3A006A04: 14657 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006A04: mov dl, byte ptr [ecx + 0x14] */ 14658 /* test LO8(edx), LO8(edx) */ /* 0x3A006A07: test dl, dl */ 14659 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14660 _cf = 0; 14661 _flag_k = FK_NARROW(FK_TEST, 24); 14662 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006A57; /* 0x3A006A09: jne 0x3a006a57 */ 14663 L_3A006A0B: 14664 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A0B: mov byte ptr [ecx + 0x14], bl */ 14665 ecx = MEM32(eax + 0x4); /* 0x3A006A0E: mov ecx, dword ptr [eax + 4] */ 14666 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A11: mov byte ptr [ecx + 0x14], 0 */ 14667 ecx = MEM32(eax + 0x4); /* 0x3A006A15: mov ecx, dword ptr [eax + 4] */ 14668 edx = MEM32(ecx); /* 0x3A006A18: mov edx, dword ptr [ecx] */ 14669 esi = MEM32(edx + 0x8); /* 0x3A006A1A: mov esi, dword ptr [edx + 8] */ 14670 MEM32(ecx) = esi; /* 0x3A006A1D: mov dword ptr [ecx], esi */ 14671 esi = MEM32(edx + 0x8); /* 0x3A006A1F: mov esi, dword ptr [edx + 8] */ 14672 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006A22: cmp esi, dword ptr [edi + 8] */ 14673 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14675 _flag_k = FK_CMP; 14676 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006A2A; /* 0x3A006A25: je 0x3a006a2a */ 14677 L_3A006A27: 14678 MEM32(esi + 0x4) = ecx; /* 0x3A006A27: mov dword ptr [esi + 4], ecx */ 14679 L_3A006A2A: 14680 esi = MEM32(ecx + 0x4); /* 0x3A006A2A: mov esi, dword ptr [ecx + 4] */ 14681 MEM32(edx + 0x4) = esi; /* 0x3A006A2D: mov dword ptr [edx + 4], esi */ 14682 esi = MEM32(edi + 0x4); /* 0x3A006A30: mov esi, dword ptr [edi + 4] */ 14683 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006A33: cmp ecx, dword ptr [esi + 4] */ 14684 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14686 _flag_k = FK_CMP; 14687 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A3D; /* 0x3A006A36: jne 0x3a006a3d */ 14688 L_3A006A38: 14689 MEM32(esi + 0x4) = edx; /* 0x3A006A38: mov dword ptr [esi + 4], edx */ 14690 goto L_3A006A4C; /* 0x3A006A3B: jmp 0x3a006a4c */ 14691 L_3A006A3D: 14692 esi = MEM32(ecx + 0x4); /* 0x3A006A3D: mov esi, dword ptr [ecx + 4] */ 14693 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006A40: cmp ecx, dword ptr [esi + 8] */ 14694 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14696 _flag_k = FK_CMP; 14697 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A4A; /* 0x3A006A43: jne 0x3a006a4a */ 14698 L_3A006A45: 14699 MEM32(esi + 0x8) = edx; /* 0x3A006A45: mov dword ptr [esi + 8], edx */ 14700 goto L_3A006A4C; /* 0x3A006A48: jmp 0x3a006a4c */ 14701 L_3A006A4A: 14702 MEM32(esi) = edx; /* 0x3A006A4A: mov dword ptr [esi], edx */ 14703 L_3A006A4C: 14704 MEM32(edx + 0x8) = ecx; /* 0x3A006A4C: mov dword ptr [edx + 8], ecx */ 14705 MEM32(ecx + 0x4) = edx; /* 0x3A006A4F: mov dword ptr [ecx + 4], edx */ 14706 edx = MEM32(eax + 0x4); /* 0x3A006A52: mov edx, dword ptr [eax + 4] */ 14707 ecx = MEM32(edx); /* 0x3A006A55: mov ecx, dword ptr [edx] */ 14708 L_3A006A57: 14709 edx = MEM32(ecx + 0x8); /* 0x3A006A57: mov edx, dword ptr [ecx + 8] */ 14710 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A5A: cmp byte ptr [edx + 0x14], bl */ 14711 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14713 _flag_k = FK_NARROW(FK_CMP, 24); 14714 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A5D: jne 0x3a006b33 */ 14715 L_3A006A63: 14716 edx = MEM32(ecx); /* 0x3A006A63: mov edx, dword ptr [ecx] */ 14717 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A65: cmp byte ptr [edx + 0x14], bl */ 14718 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14720 _flag_k = FK_NARROW(FK_CMP, 24); 14721 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A68: jne 0x3a006b33 */ 14722 L_3A006A6E: 14723 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A6E: mov byte ptr [ecx + 0x14], 0 */ 14724 ecx = MEM32(edi + 0x4); /* 0x3A006A72: mov ecx, dword ptr [edi + 4] */ 14725 eax = MEM32(eax + 0x4); /* 0x3A006A75: mov eax, dword ptr [eax + 4] */ 14726 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006A78: cmp eax, dword ptr [ecx + 4] */ 14727 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14729 _flag_k = FK_CMP; 14730 RECOMP_BACKEDGE(); 14731 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006984; /* 0x3A006A7B: jne 0x3a006984 */ 14732 L_3A006A81: 14733 goto L_3A006BD2; /* 0x3A006A81: jmp 0x3a006bd2 */ 14734 L_3A006A86: 14735 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 14736 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 14737 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14739 _flag_k = FK_NARROW(FK_CMP, 24); 14740 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 14741 L_3A006A8E: 14742 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 14743 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 14744 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 14745 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 14746 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 14747 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 14748 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 14749 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 14750 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14752 _flag_k = FK_CMP; 14753 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 14754 L_3A006AA6: 14755 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 14756 L_3A006AA9: 14757 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 14758 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 14759 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 14760 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 14761 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14763 _flag_k = FK_CMP; 14764 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 14765 L_3A006AB7: 14766 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 14767 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 14768 L_3A006ABC: 14769 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 14770 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 14771 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14773 _flag_k = FK_CMP; 14774 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 14775 L_3A006AC4: 14776 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 14777 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 14778 L_3A006AC9: 14779 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 14780 L_3A006ACB: 14781 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 14782 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 14783 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 14784 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 14785 L_3A006AD7: 14786 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 14787 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 14788 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 14789 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 14790 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 14791 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 14792 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 14793 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 14794 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 14795 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 14796 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 14797 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 14798 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 14799 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14800 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14801 _flag_k = FK_CMP; 14802 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 14803 L_3A006AFE: 14804 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 14805 L_3A006B01: 14806 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 14807 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 14808 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 14809 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 14810 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14812 _flag_k = FK_CMP; 14813 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 14814 L_3A006B0F: 14815 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 14816 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 14817 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 14818 L_3A006B19: 14819 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 14820 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 14821 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14823 _flag_k = FK_CMP; 14824 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 14825 L_3A006B20: 14826 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 14827 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 14828 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 14829 L_3A006B29: 14830 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 14831 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 14832 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 14833 L_3A006B33: 14834 edx = MEM32(ecx); /* 0x3A006B33: mov edx, dword ptr [ecx] */ 14835 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006B35: cmp byte ptr [edx + 0x14], bl */ 14836 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14838 _flag_k = FK_NARROW(FK_CMP, 24); 14839 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B81; /* 0x3A006B38: jne 0x3a006b81 */ 14840 L_3A006B3A: 14841 edx = MEM32(ecx + 0x8); /* 0x3A006B3A: mov edx, dword ptr [ecx + 8] */ 14842 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B3D: mov byte ptr [edx + 0x14], bl */ 14843 edx = MEM32(ecx + 0x8); /* 0x3A006B40: mov edx, dword ptr [ecx + 8] */ 14844 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006B43: mov byte ptr [ecx + 0x14], 0 */ 14845 esi = MEM32(edx); /* 0x3A006B47: mov esi, dword ptr [edx] */ 14846 MEM32(ecx + 0x8) = esi; /* 0x3A006B49: mov dword ptr [ecx + 8], esi */ 14847 esi = MEM32(edx); /* 0x3A006B4C: mov esi, dword ptr [edx] */ 14848 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006B4E: cmp esi, dword ptr [edi + 8] */ 14849 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14850 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14851 _flag_k = FK_CMP; 14852 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B56; /* 0x3A006B51: je 0x3a006b56 */ 14853 L_3A006B53: 14854 MEM32(esi + 0x4) = ecx; /* 0x3A006B53: mov dword ptr [esi + 4], ecx */ 14855 L_3A006B56: 14856 esi = MEM32(ecx + 0x4); /* 0x3A006B56: mov esi, dword ptr [ecx + 4] */ 14857 MEM32(edx + 0x4) = esi; /* 0x3A006B59: mov dword ptr [edx + 4], esi */ 14858 esi = MEM32(edi + 0x4); /* 0x3A006B5C: mov esi, dword ptr [edi + 4] */ 14859 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B5F: cmp ecx, dword ptr [esi + 4] */ 14860 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14862 _flag_k = FK_CMP; 14863 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B69; /* 0x3A006B62: jne 0x3a006b69 */ 14864 L_3A006B64: 14865 MEM32(esi + 0x4) = edx; /* 0x3A006B64: mov dword ptr [esi + 4], edx */ 14866 goto L_3A006B77; /* 0x3A006B67: jmp 0x3a006b77 */ 14867 L_3A006B69: 14868 esi = MEM32(ecx + 0x4); /* 0x3A006B69: mov esi, dword ptr [ecx + 4] */ 14869 /* cmp ecx, MEM32(esi) */ /* 0x3A006B6C: cmp ecx, dword ptr [esi] */ 14870 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14872 _flag_k = FK_CMP; 14873 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B74; /* 0x3A006B6E: jne 0x3a006b74 */ 14874 L_3A006B70: 14875 MEM32(esi) = edx; /* 0x3A006B70: mov dword ptr [esi], edx */ 14876 goto L_3A006B77; /* 0x3A006B72: jmp 0x3a006b77 */ 14877 L_3A006B74: 14878 MEM32(esi + 0x8) = edx; /* 0x3A006B74: mov dword ptr [esi + 8], edx */ 14879 L_3A006B77: 14880 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 14881 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 14882 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 14883 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 14884 L_3A006B81: 14885 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 14886 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 14887 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 14888 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 14889 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 14890 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 14891 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 14892 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 14893 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 14894 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 14895 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 14896 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 14897 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 14898 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14900 _flag_k = FK_CMP; 14901 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 14902 L_3A006BA7: 14903 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 14904 L_3A006BAA: 14905 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 14906 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 14907 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 14908 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 14909 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14911 _flag_k = FK_CMP; 14912 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 14913 L_3A006BB8: 14914 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 14915 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 14916 L_3A006BBD: 14917 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 14918 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 14919 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14921 _flag_k = FK_CMP; 14922 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 14923 L_3A006BC5: 14924 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 14925 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 14926 L_3A006BCA: 14927 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 14928 L_3A006BCC: 14929 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 14930 L_3A006BCF: 14931 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 14932 L_3A006BD2: 14933 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 14934 L_3A006BD5: 14935 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 14936 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 14937 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 14938 RECOMP_FLAGS_IN(); 14939 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 14940 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 14941 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14943 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 14944 _flag_k = FK_ADD; 14945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14946 eax = eax - 1; /* 0x3A006BE7: dec eax */ 14947 _flag_k = FK_DEC; 14948 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 14949 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 14950 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 14951 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 14952 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 14953 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 14954 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 14955 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 14956 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 14957 RECOMP_REGS_OUT(); 14958 } 14959 14960 void sub_3A006965(void) { 14961 int _fpu_cmp = 0; 14962 uint32_t _cf = 0; 14963 int _df = 1; 14964 uint32_t _flag_k = FK_NONE; 14965 uint32_t _flag_a = 0, _flag_b = 0; 14966 uint32_t _itail_tgt = 0; 14967 RECOMP_REGS_LOCALS 14968 RECOMP_ENTER(0x3A006965u); 14969 14970 L_3A006965: 14971 MEM32(ebx + 0x8) = edx; /* 0x3A006965: mov dword ptr [ebx + 8], edx */ 14972 ecx = MEM32(ebp + (-0x4)); /* 0x3A006968: mov ecx, dword ptr [ebp - 4] */ 14973 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A00696B: mov dl, byte ptr [ecx + 0x14] */ 14974 SET_LO8(ebx, 1); /* 0x3A00696E: mov bl, 1 */ 14975 /* cmp LO8(edx), LO8(ebx) */ /* 0x3A006970: cmp dl, bl */ 14976 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14978 _flag_k = FK_NARROW(FK_CMP, 24); 14979 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD5; /* 0x3A006972: jne 0x3a006bd5 */ 14980 L_3A006978: 14981 edx = MEM32(edi + 0x4); /* 0x3A006978: mov edx, dword ptr [edi + 4] */ 14982 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3A00697B: cmp eax, dword ptr [edx + 4] */ 14983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 14984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14985 _flag_k = FK_CMP; 14986 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A00697E: je 0x3a006bd2 */ 14987 L_3A006984: 14988 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x3A006984: cmp byte ptr [eax + 0x14], bl */ 14989 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14991 _flag_k = FK_NARROW(FK_CMP, 24); 14992 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A006987: jne 0x3a006bd2 */ 14993 L_3A00698D: 14994 edx = MEM32(eax + 0x4); /* 0x3A00698D: mov edx, dword ptr [eax + 4] */ 14995 ecx = MEM32(edx); /* 0x3A006990: mov ecx, dword ptr [edx] */ 14996 /* cmp eax, ecx */ /* 0x3A006992: cmp eax, ecx */ 14997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14999 _flag_k = FK_CMP; 15000 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A04; /* 0x3A006994: jne 0x3a006a04 */ 15001 L_3A006996: 15002 ecx = MEM32(edx + 0x8); /* 0x3A006996: mov ecx, dword ptr [edx + 8] */ 15003 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006999: mov dl, byte ptr [ecx + 0x14] */ 15004 /* test LO8(edx), LO8(edx) */ /* 0x3A00699C: test dl, dl */ 15005 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15006 _cf = 0; 15007 _flag_k = FK_NARROW(FK_TEST, 24); 15008 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0069EB; /* 0x3A00699E: jne 0x3a0069eb */ 15009 L_3A0069A0: 15010 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0069A0: mov byte ptr [ecx + 0x14], bl */ 15011 ecx = MEM32(eax + 0x4); /* 0x3A0069A3: mov ecx, dword ptr [eax + 4] */ 15012 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A0069A6: mov byte ptr [ecx + 0x14], 0 */ 15013 ecx = MEM32(eax + 0x4); /* 0x3A0069AA: mov ecx, dword ptr [eax + 4] */ 15014 edx = MEM32(ecx + 0x8); /* 0x3A0069AD: mov edx, dword ptr [ecx + 8] */ 15015 esi = MEM32(edx); /* 0x3A0069B0: mov esi, dword ptr [edx] */ 15016 MEM32(ecx + 0x8) = esi; /* 0x3A0069B2: mov dword ptr [ecx + 8], esi */ 15017 esi = MEM32(edx); /* 0x3A0069B5: mov esi, dword ptr [edx] */ 15018 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0069B7: cmp esi, dword ptr [edi + 8] */ 15019 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15021 _flag_k = FK_CMP; 15022 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0069BF; /* 0x3A0069BA: je 0x3a0069bf */ 15023 L_3A0069BC: 15024 MEM32(esi + 0x4) = ecx; /* 0x3A0069BC: mov dword ptr [esi + 4], ecx */ 15025 L_3A0069BF: 15026 esi = MEM32(ecx + 0x4); /* 0x3A0069BF: mov esi, dword ptr [ecx + 4] */ 15027 MEM32(edx + 0x4) = esi; /* 0x3A0069C2: mov dword ptr [edx + 4], esi */ 15028 esi = MEM32(edi + 0x4); /* 0x3A0069C5: mov esi, dword ptr [edi + 4] */ 15029 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0069C8: cmp ecx, dword ptr [esi + 4] */ 15030 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15032 _flag_k = FK_CMP; 15033 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069D2; /* 0x3A0069CB: jne 0x3a0069d2 */ 15034 L_3A0069CD: 15035 MEM32(esi + 0x4) = edx; /* 0x3A0069CD: mov dword ptr [esi + 4], edx */ 15036 goto L_3A0069E0; /* 0x3A0069D0: jmp 0x3a0069e0 */ 15037 L_3A0069D2: 15038 esi = MEM32(ecx + 0x4); /* 0x3A0069D2: mov esi, dword ptr [ecx + 4] */ 15039 /* cmp ecx, MEM32(esi) */ /* 0x3A0069D5: cmp ecx, dword ptr [esi] */ 15040 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15042 _flag_k = FK_CMP; 15043 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069DD; /* 0x3A0069D7: jne 0x3a0069dd */ 15044 L_3A0069D9: 15045 MEM32(esi) = edx; /* 0x3A0069D9: mov dword ptr [esi], edx */ 15046 goto L_3A0069E0; /* 0x3A0069DB: jmp 0x3a0069e0 */ 15047 L_3A0069DD: 15048 MEM32(esi + 0x8) = edx; /* 0x3A0069DD: mov dword ptr [esi + 8], edx */ 15049 L_3A0069E0: 15050 MEM32(edx) = ecx; /* 0x3A0069E0: mov dword ptr [edx], ecx */ 15051 MEM32(ecx + 0x4) = edx; /* 0x3A0069E2: mov dword ptr [ecx + 4], edx */ 15052 edx = MEM32(eax + 0x4); /* 0x3A0069E5: mov edx, dword ptr [eax + 4] */ 15053 ecx = MEM32(edx + 0x8); /* 0x3A0069E8: mov ecx, dword ptr [edx + 8] */ 15054 L_3A0069EB: 15055 edx = MEM32(ecx); /* 0x3A0069EB: mov edx, dword ptr [ecx] */ 15056 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069ED: cmp byte ptr [edx + 0x14], bl */ 15057 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15059 _flag_k = FK_NARROW(FK_CMP, 24); 15060 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069F0: jne 0x3a006a86 */ 15061 L_3A0069F6: 15062 edx = MEM32(ecx + 0x8); /* 0x3A0069F6: mov edx, dword ptr [ecx + 8] */ 15063 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069F9: cmp byte ptr [edx + 0x14], bl */ 15064 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15066 _flag_k = FK_NARROW(FK_CMP, 24); 15067 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069FC: jne 0x3a006a86 */ 15068 L_3A006A02: 15069 goto L_3A006A6E; /* 0x3A006A02: jmp 0x3a006a6e */ 15070 L_3A006A04: 15071 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006A04: mov dl, byte ptr [ecx + 0x14] */ 15072 /* test LO8(edx), LO8(edx) */ /* 0x3A006A07: test dl, dl */ 15073 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15074 _cf = 0; 15075 _flag_k = FK_NARROW(FK_TEST, 24); 15076 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006A57; /* 0x3A006A09: jne 0x3a006a57 */ 15077 L_3A006A0B: 15078 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A0B: mov byte ptr [ecx + 0x14], bl */ 15079 ecx = MEM32(eax + 0x4); /* 0x3A006A0E: mov ecx, dword ptr [eax + 4] */ 15080 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A11: mov byte ptr [ecx + 0x14], 0 */ 15081 ecx = MEM32(eax + 0x4); /* 0x3A006A15: mov ecx, dword ptr [eax + 4] */ 15082 edx = MEM32(ecx); /* 0x3A006A18: mov edx, dword ptr [ecx] */ 15083 esi = MEM32(edx + 0x8); /* 0x3A006A1A: mov esi, dword ptr [edx + 8] */ 15084 MEM32(ecx) = esi; /* 0x3A006A1D: mov dword ptr [ecx], esi */ 15085 esi = MEM32(edx + 0x8); /* 0x3A006A1F: mov esi, dword ptr [edx + 8] */ 15086 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006A22: cmp esi, dword ptr [edi + 8] */ 15087 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15089 _flag_k = FK_CMP; 15090 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006A2A; /* 0x3A006A25: je 0x3a006a2a */ 15091 L_3A006A27: 15092 MEM32(esi + 0x4) = ecx; /* 0x3A006A27: mov dword ptr [esi + 4], ecx */ 15093 L_3A006A2A: 15094 esi = MEM32(ecx + 0x4); /* 0x3A006A2A: mov esi, dword ptr [ecx + 4] */ 15095 MEM32(edx + 0x4) = esi; /* 0x3A006A2D: mov dword ptr [edx + 4], esi */ 15096 esi = MEM32(edi + 0x4); /* 0x3A006A30: mov esi, dword ptr [edi + 4] */ 15097 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006A33: cmp ecx, dword ptr [esi + 4] */ 15098 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15100 _flag_k = FK_CMP; 15101 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A3D; /* 0x3A006A36: jne 0x3a006a3d */ 15102 L_3A006A38: 15103 MEM32(esi + 0x4) = edx; /* 0x3A006A38: mov dword ptr [esi + 4], edx */ 15104 goto L_3A006A4C; /* 0x3A006A3B: jmp 0x3a006a4c */ 15105 L_3A006A3D: 15106 esi = MEM32(ecx + 0x4); /* 0x3A006A3D: mov esi, dword ptr [ecx + 4] */ 15107 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006A40: cmp ecx, dword ptr [esi + 8] */ 15108 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15110 _flag_k = FK_CMP; 15111 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A4A; /* 0x3A006A43: jne 0x3a006a4a */ 15112 L_3A006A45: 15113 MEM32(esi + 0x8) = edx; /* 0x3A006A45: mov dword ptr [esi + 8], edx */ 15114 goto L_3A006A4C; /* 0x3A006A48: jmp 0x3a006a4c */ 15115 L_3A006A4A: 15116 MEM32(esi) = edx; /* 0x3A006A4A: mov dword ptr [esi], edx */ 15117 L_3A006A4C: 15118 MEM32(edx + 0x8) = ecx; /* 0x3A006A4C: mov dword ptr [edx + 8], ecx */ 15119 MEM32(ecx + 0x4) = edx; /* 0x3A006A4F: mov dword ptr [ecx + 4], edx */ 15120 edx = MEM32(eax + 0x4); /* 0x3A006A52: mov edx, dword ptr [eax + 4] */ 15121 ecx = MEM32(edx); /* 0x3A006A55: mov ecx, dword ptr [edx] */ 15122 L_3A006A57: 15123 edx = MEM32(ecx + 0x8); /* 0x3A006A57: mov edx, dword ptr [ecx + 8] */ 15124 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A5A: cmp byte ptr [edx + 0x14], bl */ 15125 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15127 _flag_k = FK_NARROW(FK_CMP, 24); 15128 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A5D: jne 0x3a006b33 */ 15129 L_3A006A63: 15130 edx = MEM32(ecx); /* 0x3A006A63: mov edx, dword ptr [ecx] */ 15131 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A65: cmp byte ptr [edx + 0x14], bl */ 15132 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15134 _flag_k = FK_NARROW(FK_CMP, 24); 15135 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A68: jne 0x3a006b33 */ 15136 L_3A006A6E: 15137 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A6E: mov byte ptr [ecx + 0x14], 0 */ 15138 ecx = MEM32(edi + 0x4); /* 0x3A006A72: mov ecx, dword ptr [edi + 4] */ 15139 eax = MEM32(eax + 0x4); /* 0x3A006A75: mov eax, dword ptr [eax + 4] */ 15140 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006A78: cmp eax, dword ptr [ecx + 4] */ 15141 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 15142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15143 _flag_k = FK_CMP; 15144 RECOMP_BACKEDGE(); 15145 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006984; /* 0x3A006A7B: jne 0x3a006984 */ 15146 L_3A006A81: 15147 goto L_3A006BD2; /* 0x3A006A81: jmp 0x3a006bd2 */ 15148 L_3A006A86: 15149 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 15150 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 15151 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15153 _flag_k = FK_NARROW(FK_CMP, 24); 15154 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 15155 L_3A006A8E: 15156 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 15157 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 15158 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 15159 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 15160 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 15161 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 15162 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 15163 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 15164 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15166 _flag_k = FK_CMP; 15167 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 15168 L_3A006AA6: 15169 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 15170 L_3A006AA9: 15171 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 15172 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 15173 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 15174 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 15175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15177 _flag_k = FK_CMP; 15178 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 15179 L_3A006AB7: 15180 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 15181 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 15182 L_3A006ABC: 15183 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 15184 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 15185 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15187 _flag_k = FK_CMP; 15188 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 15189 L_3A006AC4: 15190 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 15191 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 15192 L_3A006AC9: 15193 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 15194 L_3A006ACB: 15195 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 15196 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 15197 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 15198 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 15199 L_3A006AD7: 15200 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 15201 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 15202 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 15203 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 15204 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 15205 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 15206 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 15207 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 15208 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 15209 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 15210 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 15211 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 15212 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 15213 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15215 _flag_k = FK_CMP; 15216 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 15217 L_3A006AFE: 15218 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 15219 L_3A006B01: 15220 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 15221 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 15222 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 15223 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 15224 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15226 _flag_k = FK_CMP; 15227 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 15228 L_3A006B0F: 15229 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 15230 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 15231 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 15232 L_3A006B19: 15233 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 15234 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 15235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15237 _flag_k = FK_CMP; 15238 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 15239 L_3A006B20: 15240 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 15241 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 15242 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 15243 L_3A006B29: 15244 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 15245 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 15246 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 15247 L_3A006B33: 15248 edx = MEM32(ecx); /* 0x3A006B33: mov edx, dword ptr [ecx] */ 15249 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006B35: cmp byte ptr [edx + 0x14], bl */ 15250 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15252 _flag_k = FK_NARROW(FK_CMP, 24); 15253 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B81; /* 0x3A006B38: jne 0x3a006b81 */ 15254 L_3A006B3A: 15255 edx = MEM32(ecx + 0x8); /* 0x3A006B3A: mov edx, dword ptr [ecx + 8] */ 15256 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B3D: mov byte ptr [edx + 0x14], bl */ 15257 edx = MEM32(ecx + 0x8); /* 0x3A006B40: mov edx, dword ptr [ecx + 8] */ 15258 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006B43: mov byte ptr [ecx + 0x14], 0 */ 15259 esi = MEM32(edx); /* 0x3A006B47: mov esi, dword ptr [edx] */ 15260 MEM32(ecx + 0x8) = esi; /* 0x3A006B49: mov dword ptr [ecx + 8], esi */ 15261 esi = MEM32(edx); /* 0x3A006B4C: mov esi, dword ptr [edx] */ 15262 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006B4E: cmp esi, dword ptr [edi + 8] */ 15263 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15265 _flag_k = FK_CMP; 15266 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B56; /* 0x3A006B51: je 0x3a006b56 */ 15267 L_3A006B53: 15268 MEM32(esi + 0x4) = ecx; /* 0x3A006B53: mov dword ptr [esi + 4], ecx */ 15269 L_3A006B56: 15270 esi = MEM32(ecx + 0x4); /* 0x3A006B56: mov esi, dword ptr [ecx + 4] */ 15271 MEM32(edx + 0x4) = esi; /* 0x3A006B59: mov dword ptr [edx + 4], esi */ 15272 esi = MEM32(edi + 0x4); /* 0x3A006B5C: mov esi, dword ptr [edi + 4] */ 15273 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B5F: cmp ecx, dword ptr [esi + 4] */ 15274 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15276 _flag_k = FK_CMP; 15277 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B69; /* 0x3A006B62: jne 0x3a006b69 */ 15278 L_3A006B64: 15279 MEM32(esi + 0x4) = edx; /* 0x3A006B64: mov dword ptr [esi + 4], edx */ 15280 goto L_3A006B77; /* 0x3A006B67: jmp 0x3a006b77 */ 15281 L_3A006B69: 15282 esi = MEM32(ecx + 0x4); /* 0x3A006B69: mov esi, dword ptr [ecx + 4] */ 15283 /* cmp ecx, MEM32(esi) */ /* 0x3A006B6C: cmp ecx, dword ptr [esi] */ 15284 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15286 _flag_k = FK_CMP; 15287 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B74; /* 0x3A006B6E: jne 0x3a006b74 */ 15288 L_3A006B70: 15289 MEM32(esi) = edx; /* 0x3A006B70: mov dword ptr [esi], edx */ 15290 goto L_3A006B77; /* 0x3A006B72: jmp 0x3a006b77 */ 15291 L_3A006B74: 15292 MEM32(esi + 0x8) = edx; /* 0x3A006B74: mov dword ptr [esi + 8], edx */ 15293 L_3A006B77: 15294 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 15295 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 15296 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 15297 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 15298 L_3A006B81: 15299 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 15300 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 15301 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 15302 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 15303 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 15304 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 15305 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 15306 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 15307 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 15308 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 15309 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 15310 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 15311 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 15312 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15314 _flag_k = FK_CMP; 15315 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 15316 L_3A006BA7: 15317 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 15318 L_3A006BAA: 15319 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 15320 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 15321 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 15322 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 15323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15325 _flag_k = FK_CMP; 15326 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 15327 L_3A006BB8: 15328 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 15329 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 15330 L_3A006BBD: 15331 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 15332 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 15333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15335 _flag_k = FK_CMP; 15336 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 15337 L_3A006BC5: 15338 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 15339 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 15340 L_3A006BCA: 15341 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 15342 L_3A006BCC: 15343 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 15344 L_3A006BCF: 15345 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 15346 L_3A006BD2: 15347 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 15348 L_3A006BD5: 15349 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 15350 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 15351 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 15352 RECOMP_FLAGS_IN(); 15353 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 15354 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 15355 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15356 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15357 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 15358 _flag_k = FK_ADD; 15359 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15360 eax = eax - 1; /* 0x3A006BE7: dec eax */ 15361 _flag_k = FK_DEC; 15362 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 15363 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 15364 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 15365 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 15366 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 15367 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 15368 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 15369 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 15370 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 15371 RECOMP_REGS_OUT(); 15372 } 15373 15374 void sub_3A006984(void) { 15375 int _fpu_cmp = 0; 15376 uint32_t _cf = 0; 15377 int _df = 1; 15378 uint32_t _flag_k = FK_NONE; 15379 uint32_t _flag_a = 0, _flag_b = 0; 15380 uint32_t _itail_tgt = 0; 15381 RECOMP_REGS_LOCALS 15382 RECOMP_ENTER(0x3A006984u); 15383 15384 L_3A006984: 15385 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x3A006984: cmp byte ptr [eax + 0x14], bl */ 15386 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15388 _flag_k = FK_NARROW(FK_CMP, 24); 15389 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A006987: jne 0x3a006bd2 */ 15390 L_3A00698D: 15391 edx = MEM32(eax + 0x4); /* 0x3A00698D: mov edx, dword ptr [eax + 4] */ 15392 ecx = MEM32(edx); /* 0x3A006990: mov ecx, dword ptr [edx] */ 15393 /* cmp eax, ecx */ /* 0x3A006992: cmp eax, ecx */ 15394 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15396 _flag_k = FK_CMP; 15397 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A04; /* 0x3A006994: jne 0x3a006a04 */ 15398 L_3A006996: 15399 ecx = MEM32(edx + 0x8); /* 0x3A006996: mov ecx, dword ptr [edx + 8] */ 15400 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006999: mov dl, byte ptr [ecx + 0x14] */ 15401 /* test LO8(edx), LO8(edx) */ /* 0x3A00699C: test dl, dl */ 15402 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15403 _cf = 0; 15404 _flag_k = FK_NARROW(FK_TEST, 24); 15405 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0069EB; /* 0x3A00699E: jne 0x3a0069eb */ 15406 L_3A0069A0: 15407 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0069A0: mov byte ptr [ecx + 0x14], bl */ 15408 ecx = MEM32(eax + 0x4); /* 0x3A0069A3: mov ecx, dword ptr [eax + 4] */ 15409 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A0069A6: mov byte ptr [ecx + 0x14], 0 */ 15410 ecx = MEM32(eax + 0x4); /* 0x3A0069AA: mov ecx, dword ptr [eax + 4] */ 15411 edx = MEM32(ecx + 0x8); /* 0x3A0069AD: mov edx, dword ptr [ecx + 8] */ 15412 esi = MEM32(edx); /* 0x3A0069B0: mov esi, dword ptr [edx] */ 15413 MEM32(ecx + 0x8) = esi; /* 0x3A0069B2: mov dword ptr [ecx + 8], esi */ 15414 esi = MEM32(edx); /* 0x3A0069B5: mov esi, dword ptr [edx] */ 15415 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0069B7: cmp esi, dword ptr [edi + 8] */ 15416 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15418 _flag_k = FK_CMP; 15419 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0069BF; /* 0x3A0069BA: je 0x3a0069bf */ 15420 L_3A0069BC: 15421 MEM32(esi + 0x4) = ecx; /* 0x3A0069BC: mov dword ptr [esi + 4], ecx */ 15422 L_3A0069BF: 15423 esi = MEM32(ecx + 0x4); /* 0x3A0069BF: mov esi, dword ptr [ecx + 4] */ 15424 MEM32(edx + 0x4) = esi; /* 0x3A0069C2: mov dword ptr [edx + 4], esi */ 15425 esi = MEM32(edi + 0x4); /* 0x3A0069C5: mov esi, dword ptr [edi + 4] */ 15426 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0069C8: cmp ecx, dword ptr [esi + 4] */ 15427 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15429 _flag_k = FK_CMP; 15430 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069D2; /* 0x3A0069CB: jne 0x3a0069d2 */ 15431 L_3A0069CD: 15432 MEM32(esi + 0x4) = edx; /* 0x3A0069CD: mov dword ptr [esi + 4], edx */ 15433 goto L_3A0069E0; /* 0x3A0069D0: jmp 0x3a0069e0 */ 15434 L_3A0069D2: 15435 esi = MEM32(ecx + 0x4); /* 0x3A0069D2: mov esi, dword ptr [ecx + 4] */ 15436 /* cmp ecx, MEM32(esi) */ /* 0x3A0069D5: cmp ecx, dword ptr [esi] */ 15437 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15439 _flag_k = FK_CMP; 15440 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069DD; /* 0x3A0069D7: jne 0x3a0069dd */ 15441 L_3A0069D9: 15442 MEM32(esi) = edx; /* 0x3A0069D9: mov dword ptr [esi], edx */ 15443 goto L_3A0069E0; /* 0x3A0069DB: jmp 0x3a0069e0 */ 15444 L_3A0069DD: 15445 MEM32(esi + 0x8) = edx; /* 0x3A0069DD: mov dword ptr [esi + 8], edx */ 15446 L_3A0069E0: 15447 MEM32(edx) = ecx; /* 0x3A0069E0: mov dword ptr [edx], ecx */ 15448 MEM32(ecx + 0x4) = edx; /* 0x3A0069E2: mov dword ptr [ecx + 4], edx */ 15449 edx = MEM32(eax + 0x4); /* 0x3A0069E5: mov edx, dword ptr [eax + 4] */ 15450 ecx = MEM32(edx + 0x8); /* 0x3A0069E8: mov ecx, dword ptr [edx + 8] */ 15451 L_3A0069EB: 15452 edx = MEM32(ecx); /* 0x3A0069EB: mov edx, dword ptr [ecx] */ 15453 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069ED: cmp byte ptr [edx + 0x14], bl */ 15454 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15456 _flag_k = FK_NARROW(FK_CMP, 24); 15457 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069F0: jne 0x3a006a86 */ 15458 L_3A0069F6: 15459 edx = MEM32(ecx + 0x8); /* 0x3A0069F6: mov edx, dword ptr [ecx + 8] */ 15460 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069F9: cmp byte ptr [edx + 0x14], bl */ 15461 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15463 _flag_k = FK_NARROW(FK_CMP, 24); 15464 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069FC: jne 0x3a006a86 */ 15465 L_3A006A02: 15466 goto L_3A006A6E; /* 0x3A006A02: jmp 0x3a006a6e */ 15467 L_3A006A04: 15468 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006A04: mov dl, byte ptr [ecx + 0x14] */ 15469 /* test LO8(edx), LO8(edx) */ /* 0x3A006A07: test dl, dl */ 15470 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15471 _cf = 0; 15472 _flag_k = FK_NARROW(FK_TEST, 24); 15473 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006A57; /* 0x3A006A09: jne 0x3a006a57 */ 15474 L_3A006A0B: 15475 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A0B: mov byte ptr [ecx + 0x14], bl */ 15476 ecx = MEM32(eax + 0x4); /* 0x3A006A0E: mov ecx, dword ptr [eax + 4] */ 15477 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A11: mov byte ptr [ecx + 0x14], 0 */ 15478 ecx = MEM32(eax + 0x4); /* 0x3A006A15: mov ecx, dword ptr [eax + 4] */ 15479 edx = MEM32(ecx); /* 0x3A006A18: mov edx, dword ptr [ecx] */ 15480 esi = MEM32(edx + 0x8); /* 0x3A006A1A: mov esi, dword ptr [edx + 8] */ 15481 MEM32(ecx) = esi; /* 0x3A006A1D: mov dword ptr [ecx], esi */ 15482 esi = MEM32(edx + 0x8); /* 0x3A006A1F: mov esi, dword ptr [edx + 8] */ 15483 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006A22: cmp esi, dword ptr [edi + 8] */ 15484 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15486 _flag_k = FK_CMP; 15487 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006A2A; /* 0x3A006A25: je 0x3a006a2a */ 15488 L_3A006A27: 15489 MEM32(esi + 0x4) = ecx; /* 0x3A006A27: mov dword ptr [esi + 4], ecx */ 15490 L_3A006A2A: 15491 esi = MEM32(ecx + 0x4); /* 0x3A006A2A: mov esi, dword ptr [ecx + 4] */ 15492 MEM32(edx + 0x4) = esi; /* 0x3A006A2D: mov dword ptr [edx + 4], esi */ 15493 esi = MEM32(edi + 0x4); /* 0x3A006A30: mov esi, dword ptr [edi + 4] */ 15494 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006A33: cmp ecx, dword ptr [esi + 4] */ 15495 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15497 _flag_k = FK_CMP; 15498 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A3D; /* 0x3A006A36: jne 0x3a006a3d */ 15499 L_3A006A38: 15500 MEM32(esi + 0x4) = edx; /* 0x3A006A38: mov dword ptr [esi + 4], edx */ 15501 goto L_3A006A4C; /* 0x3A006A3B: jmp 0x3a006a4c */ 15502 L_3A006A3D: 15503 esi = MEM32(ecx + 0x4); /* 0x3A006A3D: mov esi, dword ptr [ecx + 4] */ 15504 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006A40: cmp ecx, dword ptr [esi + 8] */ 15505 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15507 _flag_k = FK_CMP; 15508 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A4A; /* 0x3A006A43: jne 0x3a006a4a */ 15509 L_3A006A45: 15510 MEM32(esi + 0x8) = edx; /* 0x3A006A45: mov dword ptr [esi + 8], edx */ 15511 goto L_3A006A4C; /* 0x3A006A48: jmp 0x3a006a4c */ 15512 L_3A006A4A: 15513 MEM32(esi) = edx; /* 0x3A006A4A: mov dword ptr [esi], edx */ 15514 L_3A006A4C: 15515 MEM32(edx + 0x8) = ecx; /* 0x3A006A4C: mov dword ptr [edx + 8], ecx */ 15516 MEM32(ecx + 0x4) = edx; /* 0x3A006A4F: mov dword ptr [ecx + 4], edx */ 15517 edx = MEM32(eax + 0x4); /* 0x3A006A52: mov edx, dword ptr [eax + 4] */ 15518 ecx = MEM32(edx); /* 0x3A006A55: mov ecx, dword ptr [edx] */ 15519 L_3A006A57: 15520 edx = MEM32(ecx + 0x8); /* 0x3A006A57: mov edx, dword ptr [ecx + 8] */ 15521 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A5A: cmp byte ptr [edx + 0x14], bl */ 15522 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15524 _flag_k = FK_NARROW(FK_CMP, 24); 15525 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A5D: jne 0x3a006b33 */ 15526 L_3A006A63: 15527 edx = MEM32(ecx); /* 0x3A006A63: mov edx, dword ptr [ecx] */ 15528 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A65: cmp byte ptr [edx + 0x14], bl */ 15529 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15531 _flag_k = FK_NARROW(FK_CMP, 24); 15532 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A68: jne 0x3a006b33 */ 15533 L_3A006A6E: 15534 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A6E: mov byte ptr [ecx + 0x14], 0 */ 15535 ecx = MEM32(edi + 0x4); /* 0x3A006A72: mov ecx, dword ptr [edi + 4] */ 15536 eax = MEM32(eax + 0x4); /* 0x3A006A75: mov eax, dword ptr [eax + 4] */ 15537 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006A78: cmp eax, dword ptr [ecx + 4] */ 15538 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 15539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15540 _flag_k = FK_CMP; 15541 RECOMP_BACKEDGE(); 15542 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006984; /* 0x3A006A7B: jne 0x3a006984 */ 15543 L_3A006A81: 15544 goto L_3A006BD2; /* 0x3A006A81: jmp 0x3a006bd2 */ 15545 L_3A006A86: 15546 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 15547 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 15548 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15550 _flag_k = FK_NARROW(FK_CMP, 24); 15551 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 15552 L_3A006A8E: 15553 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 15554 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 15555 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 15556 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 15557 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 15558 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 15559 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 15560 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 15561 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15563 _flag_k = FK_CMP; 15564 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 15565 L_3A006AA6: 15566 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 15567 L_3A006AA9: 15568 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 15569 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 15570 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 15571 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 15572 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15574 _flag_k = FK_CMP; 15575 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 15576 L_3A006AB7: 15577 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 15578 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 15579 L_3A006ABC: 15580 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 15581 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 15582 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15584 _flag_k = FK_CMP; 15585 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 15586 L_3A006AC4: 15587 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 15588 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 15589 L_3A006AC9: 15590 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 15591 L_3A006ACB: 15592 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 15593 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 15594 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 15595 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 15596 L_3A006AD7: 15597 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 15598 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 15599 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 15600 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 15601 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 15602 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 15603 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 15604 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 15605 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 15606 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 15607 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 15608 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 15609 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 15610 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15612 _flag_k = FK_CMP; 15613 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 15614 L_3A006AFE: 15615 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 15616 L_3A006B01: 15617 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 15618 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 15619 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 15620 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 15621 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15623 _flag_k = FK_CMP; 15624 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 15625 L_3A006B0F: 15626 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 15627 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 15628 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 15629 L_3A006B19: 15630 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 15631 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 15632 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15634 _flag_k = FK_CMP; 15635 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 15636 L_3A006B20: 15637 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 15638 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 15639 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 15640 L_3A006B29: 15641 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 15642 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 15643 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 15644 L_3A006B33: 15645 edx = MEM32(ecx); /* 0x3A006B33: mov edx, dword ptr [ecx] */ 15646 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006B35: cmp byte ptr [edx + 0x14], bl */ 15647 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15649 _flag_k = FK_NARROW(FK_CMP, 24); 15650 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B81; /* 0x3A006B38: jne 0x3a006b81 */ 15651 L_3A006B3A: 15652 edx = MEM32(ecx + 0x8); /* 0x3A006B3A: mov edx, dword ptr [ecx + 8] */ 15653 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B3D: mov byte ptr [edx + 0x14], bl */ 15654 edx = MEM32(ecx + 0x8); /* 0x3A006B40: mov edx, dword ptr [ecx + 8] */ 15655 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006B43: mov byte ptr [ecx + 0x14], 0 */ 15656 esi = MEM32(edx); /* 0x3A006B47: mov esi, dword ptr [edx] */ 15657 MEM32(ecx + 0x8) = esi; /* 0x3A006B49: mov dword ptr [ecx + 8], esi */ 15658 esi = MEM32(edx); /* 0x3A006B4C: mov esi, dword ptr [edx] */ 15659 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006B4E: cmp esi, dword ptr [edi + 8] */ 15660 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15662 _flag_k = FK_CMP; 15663 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B56; /* 0x3A006B51: je 0x3a006b56 */ 15664 L_3A006B53: 15665 MEM32(esi + 0x4) = ecx; /* 0x3A006B53: mov dword ptr [esi + 4], ecx */ 15666 L_3A006B56: 15667 esi = MEM32(ecx + 0x4); /* 0x3A006B56: mov esi, dword ptr [ecx + 4] */ 15668 MEM32(edx + 0x4) = esi; /* 0x3A006B59: mov dword ptr [edx + 4], esi */ 15669 esi = MEM32(edi + 0x4); /* 0x3A006B5C: mov esi, dword ptr [edi + 4] */ 15670 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B5F: cmp ecx, dword ptr [esi + 4] */ 15671 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15673 _flag_k = FK_CMP; 15674 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B69; /* 0x3A006B62: jne 0x3a006b69 */ 15675 L_3A006B64: 15676 MEM32(esi + 0x4) = edx; /* 0x3A006B64: mov dword ptr [esi + 4], edx */ 15677 goto L_3A006B77; /* 0x3A006B67: jmp 0x3a006b77 */ 15678 L_3A006B69: 15679 esi = MEM32(ecx + 0x4); /* 0x3A006B69: mov esi, dword ptr [ecx + 4] */ 15680 /* cmp ecx, MEM32(esi) */ /* 0x3A006B6C: cmp ecx, dword ptr [esi] */ 15681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15683 _flag_k = FK_CMP; 15684 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B74; /* 0x3A006B6E: jne 0x3a006b74 */ 15685 L_3A006B70: 15686 MEM32(esi) = edx; /* 0x3A006B70: mov dword ptr [esi], edx */ 15687 goto L_3A006B77; /* 0x3A006B72: jmp 0x3a006b77 */ 15688 L_3A006B74: 15689 MEM32(esi + 0x8) = edx; /* 0x3A006B74: mov dword ptr [esi + 8], edx */ 15690 L_3A006B77: 15691 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 15692 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 15693 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 15694 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 15695 L_3A006B81: 15696 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 15697 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 15698 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 15699 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 15700 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 15701 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 15702 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 15703 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 15704 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 15705 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 15706 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 15707 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 15708 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 15709 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15711 _flag_k = FK_CMP; 15712 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 15713 L_3A006BA7: 15714 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 15715 L_3A006BAA: 15716 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 15717 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 15718 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 15719 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 15720 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15722 _flag_k = FK_CMP; 15723 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 15724 L_3A006BB8: 15725 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 15726 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 15727 L_3A006BBD: 15728 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 15729 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 15730 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15732 _flag_k = FK_CMP; 15733 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 15734 L_3A006BC5: 15735 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 15736 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 15737 L_3A006BCA: 15738 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 15739 L_3A006BCC: 15740 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 15741 L_3A006BCF: 15742 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 15743 L_3A006BD2: 15744 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 15745 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 15746 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 15747 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 15748 RECOMP_FLAGS_IN(); 15749 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 15750 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 15751 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15753 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 15754 _flag_k = FK_ADD; 15755 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15756 eax = eax - 1; /* 0x3A006BE7: dec eax */ 15757 _flag_k = FK_DEC; 15758 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 15759 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 15760 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 15761 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 15762 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 15763 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 15764 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 15765 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 15766 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 15767 RECOMP_REGS_OUT(); 15768 } 15769 15770 void sub_3A0069E0(void) { 15771 int _fpu_cmp = 0; 15772 uint32_t _cf = 0; 15773 int _df = 1; 15774 uint32_t _flag_k = FK_NONE; 15775 uint32_t _flag_a = 0, _flag_b = 0; 15776 uint32_t _itail_tgt = 0; 15777 RECOMP_REGS_LOCALS 15778 RECOMP_ENTER(0x3A0069E0u); 15779 15780 goto L_3A0069E0; 15781 L_3A006984: 15782 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x3A006984: cmp byte ptr [eax + 0x14], bl */ 15783 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15785 _flag_k = FK_NARROW(FK_CMP, 24); 15786 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A006987: jne 0x3a006bd2 */ 15787 L_3A00698D: 15788 edx = MEM32(eax + 0x4); /* 0x3A00698D: mov edx, dword ptr [eax + 4] */ 15789 ecx = MEM32(edx); /* 0x3A006990: mov ecx, dword ptr [edx] */ 15790 /* cmp eax, ecx */ /* 0x3A006992: cmp eax, ecx */ 15791 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15793 _flag_k = FK_CMP; 15794 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A04; /* 0x3A006994: jne 0x3a006a04 */ 15795 L_3A006996: 15796 ecx = MEM32(edx + 0x8); /* 0x3A006996: mov ecx, dword ptr [edx + 8] */ 15797 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006999: mov dl, byte ptr [ecx + 0x14] */ 15798 /* test LO8(edx), LO8(edx) */ /* 0x3A00699C: test dl, dl */ 15799 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15800 _cf = 0; 15801 _flag_k = FK_NARROW(FK_TEST, 24); 15802 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0069EB; /* 0x3A00699E: jne 0x3a0069eb */ 15803 L_3A0069A0: 15804 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0069A0: mov byte ptr [ecx + 0x14], bl */ 15805 ecx = MEM32(eax + 0x4); /* 0x3A0069A3: mov ecx, dword ptr [eax + 4] */ 15806 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A0069A6: mov byte ptr [ecx + 0x14], 0 */ 15807 ecx = MEM32(eax + 0x4); /* 0x3A0069AA: mov ecx, dword ptr [eax + 4] */ 15808 edx = MEM32(ecx + 0x8); /* 0x3A0069AD: mov edx, dword ptr [ecx + 8] */ 15809 esi = MEM32(edx); /* 0x3A0069B0: mov esi, dword ptr [edx] */ 15810 MEM32(ecx + 0x8) = esi; /* 0x3A0069B2: mov dword ptr [ecx + 8], esi */ 15811 esi = MEM32(edx); /* 0x3A0069B5: mov esi, dword ptr [edx] */ 15812 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0069B7: cmp esi, dword ptr [edi + 8] */ 15813 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15815 _flag_k = FK_CMP; 15816 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0069BF; /* 0x3A0069BA: je 0x3a0069bf */ 15817 L_3A0069BC: 15818 MEM32(esi + 0x4) = ecx; /* 0x3A0069BC: mov dword ptr [esi + 4], ecx */ 15819 L_3A0069BF: 15820 esi = MEM32(ecx + 0x4); /* 0x3A0069BF: mov esi, dword ptr [ecx + 4] */ 15821 MEM32(edx + 0x4) = esi; /* 0x3A0069C2: mov dword ptr [edx + 4], esi */ 15822 esi = MEM32(edi + 0x4); /* 0x3A0069C5: mov esi, dword ptr [edi + 4] */ 15823 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0069C8: cmp ecx, dword ptr [esi + 4] */ 15824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15826 _flag_k = FK_CMP; 15827 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069D2; /* 0x3A0069CB: jne 0x3a0069d2 */ 15828 L_3A0069CD: 15829 MEM32(esi + 0x4) = edx; /* 0x3A0069CD: mov dword ptr [esi + 4], edx */ 15830 goto L_3A0069E0; /* 0x3A0069D0: jmp 0x3a0069e0 */ 15831 L_3A0069D2: 15832 esi = MEM32(ecx + 0x4); /* 0x3A0069D2: mov esi, dword ptr [ecx + 4] */ 15833 /* cmp ecx, MEM32(esi) */ /* 0x3A0069D5: cmp ecx, dword ptr [esi] */ 15834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15836 _flag_k = FK_CMP; 15837 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069DD; /* 0x3A0069D7: jne 0x3a0069dd */ 15838 L_3A0069D9: 15839 MEM32(esi) = edx; /* 0x3A0069D9: mov dword ptr [esi], edx */ 15840 goto L_3A0069E0; /* 0x3A0069DB: jmp 0x3a0069e0 */ 15841 L_3A0069DD: 15842 MEM32(esi + 0x8) = edx; /* 0x3A0069DD: mov dword ptr [esi + 8], edx */ 15843 L_3A0069E0: 15844 MEM32(edx) = ecx; /* 0x3A0069E0: mov dword ptr [edx], ecx */ 15845 MEM32(ecx + 0x4) = edx; /* 0x3A0069E2: mov dword ptr [ecx + 4], edx */ 15846 edx = MEM32(eax + 0x4); /* 0x3A0069E5: mov edx, dword ptr [eax + 4] */ 15847 ecx = MEM32(edx + 0x8); /* 0x3A0069E8: mov ecx, dword ptr [edx + 8] */ 15848 L_3A0069EB: 15849 edx = MEM32(ecx); /* 0x3A0069EB: mov edx, dword ptr [ecx] */ 15850 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069ED: cmp byte ptr [edx + 0x14], bl */ 15851 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15853 _flag_k = FK_NARROW(FK_CMP, 24); 15854 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069F0: jne 0x3a006a86 */ 15855 L_3A0069F6: 15856 edx = MEM32(ecx + 0x8); /* 0x3A0069F6: mov edx, dword ptr [ecx + 8] */ 15857 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069F9: cmp byte ptr [edx + 0x14], bl */ 15858 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15860 _flag_k = FK_NARROW(FK_CMP, 24); 15861 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069FC: jne 0x3a006a86 */ 15862 L_3A006A02: 15863 goto L_3A006A6E; /* 0x3A006A02: jmp 0x3a006a6e */ 15864 L_3A006A04: 15865 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006A04: mov dl, byte ptr [ecx + 0x14] */ 15866 /* test LO8(edx), LO8(edx) */ /* 0x3A006A07: test dl, dl */ 15867 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15868 _cf = 0; 15869 _flag_k = FK_NARROW(FK_TEST, 24); 15870 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006A57; /* 0x3A006A09: jne 0x3a006a57 */ 15871 L_3A006A0B: 15872 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A0B: mov byte ptr [ecx + 0x14], bl */ 15873 ecx = MEM32(eax + 0x4); /* 0x3A006A0E: mov ecx, dword ptr [eax + 4] */ 15874 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A11: mov byte ptr [ecx + 0x14], 0 */ 15875 ecx = MEM32(eax + 0x4); /* 0x3A006A15: mov ecx, dword ptr [eax + 4] */ 15876 edx = MEM32(ecx); /* 0x3A006A18: mov edx, dword ptr [ecx] */ 15877 esi = MEM32(edx + 0x8); /* 0x3A006A1A: mov esi, dword ptr [edx + 8] */ 15878 MEM32(ecx) = esi; /* 0x3A006A1D: mov dword ptr [ecx], esi */ 15879 esi = MEM32(edx + 0x8); /* 0x3A006A1F: mov esi, dword ptr [edx + 8] */ 15880 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006A22: cmp esi, dword ptr [edi + 8] */ 15881 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15883 _flag_k = FK_CMP; 15884 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006A2A; /* 0x3A006A25: je 0x3a006a2a */ 15885 L_3A006A27: 15886 MEM32(esi + 0x4) = ecx; /* 0x3A006A27: mov dword ptr [esi + 4], ecx */ 15887 L_3A006A2A: 15888 esi = MEM32(ecx + 0x4); /* 0x3A006A2A: mov esi, dword ptr [ecx + 4] */ 15889 MEM32(edx + 0x4) = esi; /* 0x3A006A2D: mov dword ptr [edx + 4], esi */ 15890 esi = MEM32(edi + 0x4); /* 0x3A006A30: mov esi, dword ptr [edi + 4] */ 15891 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006A33: cmp ecx, dword ptr [esi + 4] */ 15892 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15894 _flag_k = FK_CMP; 15895 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A3D; /* 0x3A006A36: jne 0x3a006a3d */ 15896 L_3A006A38: 15897 MEM32(esi + 0x4) = edx; /* 0x3A006A38: mov dword ptr [esi + 4], edx */ 15898 goto L_3A006A4C; /* 0x3A006A3B: jmp 0x3a006a4c */ 15899 L_3A006A3D: 15900 esi = MEM32(ecx + 0x4); /* 0x3A006A3D: mov esi, dword ptr [ecx + 4] */ 15901 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006A40: cmp ecx, dword ptr [esi + 8] */ 15902 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15904 _flag_k = FK_CMP; 15905 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A4A; /* 0x3A006A43: jne 0x3a006a4a */ 15906 L_3A006A45: 15907 MEM32(esi + 0x8) = edx; /* 0x3A006A45: mov dword ptr [esi + 8], edx */ 15908 goto L_3A006A4C; /* 0x3A006A48: jmp 0x3a006a4c */ 15909 L_3A006A4A: 15910 MEM32(esi) = edx; /* 0x3A006A4A: mov dword ptr [esi], edx */ 15911 L_3A006A4C: 15912 MEM32(edx + 0x8) = ecx; /* 0x3A006A4C: mov dword ptr [edx + 8], ecx */ 15913 MEM32(ecx + 0x4) = edx; /* 0x3A006A4F: mov dword ptr [ecx + 4], edx */ 15914 edx = MEM32(eax + 0x4); /* 0x3A006A52: mov edx, dword ptr [eax + 4] */ 15915 ecx = MEM32(edx); /* 0x3A006A55: mov ecx, dword ptr [edx] */ 15916 L_3A006A57: 15917 edx = MEM32(ecx + 0x8); /* 0x3A006A57: mov edx, dword ptr [ecx + 8] */ 15918 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A5A: cmp byte ptr [edx + 0x14], bl */ 15919 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15921 _flag_k = FK_NARROW(FK_CMP, 24); 15922 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A5D: jne 0x3a006b33 */ 15923 L_3A006A63: 15924 edx = MEM32(ecx); /* 0x3A006A63: mov edx, dword ptr [ecx] */ 15925 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A65: cmp byte ptr [edx + 0x14], bl */ 15926 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15928 _flag_k = FK_NARROW(FK_CMP, 24); 15929 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A68: jne 0x3a006b33 */ 15930 L_3A006A6E: 15931 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A6E: mov byte ptr [ecx + 0x14], 0 */ 15932 ecx = MEM32(edi + 0x4); /* 0x3A006A72: mov ecx, dword ptr [edi + 4] */ 15933 eax = MEM32(eax + 0x4); /* 0x3A006A75: mov eax, dword ptr [eax + 4] */ 15934 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006A78: cmp eax, dword ptr [ecx + 4] */ 15935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 15936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15937 _flag_k = FK_CMP; 15938 RECOMP_BACKEDGE(); 15939 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006984; /* 0x3A006A7B: jne 0x3a006984 */ 15940 L_3A006A81: 15941 goto L_3A006BD2; /* 0x3A006A81: jmp 0x3a006bd2 */ 15942 L_3A006A86: 15943 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 15944 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 15945 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15947 _flag_k = FK_NARROW(FK_CMP, 24); 15948 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 15949 L_3A006A8E: 15950 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 15951 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 15952 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 15953 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 15954 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 15955 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 15956 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 15957 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 15958 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15960 _flag_k = FK_CMP; 15961 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 15962 L_3A006AA6: 15963 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 15964 L_3A006AA9: 15965 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 15966 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 15967 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 15968 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 15969 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15971 _flag_k = FK_CMP; 15972 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 15973 L_3A006AB7: 15974 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 15975 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 15976 L_3A006ABC: 15977 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 15978 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 15979 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15981 _flag_k = FK_CMP; 15982 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 15983 L_3A006AC4: 15984 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 15985 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 15986 L_3A006AC9: 15987 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 15988 L_3A006ACB: 15989 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 15990 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 15991 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 15992 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 15993 L_3A006AD7: 15994 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 15995 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 15996 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 15997 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 15998 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 15999 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 16000 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 16001 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 16002 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 16003 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 16004 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 16005 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 16006 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 16007 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16009 _flag_k = FK_CMP; 16010 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 16011 L_3A006AFE: 16012 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 16013 L_3A006B01: 16014 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 16015 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 16016 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 16017 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 16018 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16020 _flag_k = FK_CMP; 16021 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 16022 L_3A006B0F: 16023 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 16024 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 16025 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 16026 L_3A006B19: 16027 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 16028 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 16029 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16031 _flag_k = FK_CMP; 16032 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 16033 L_3A006B20: 16034 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 16035 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 16036 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 16037 L_3A006B29: 16038 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 16039 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 16040 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 16041 L_3A006B33: 16042 edx = MEM32(ecx); /* 0x3A006B33: mov edx, dword ptr [ecx] */ 16043 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006B35: cmp byte ptr [edx + 0x14], bl */ 16044 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16046 _flag_k = FK_NARROW(FK_CMP, 24); 16047 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B81; /* 0x3A006B38: jne 0x3a006b81 */ 16048 L_3A006B3A: 16049 edx = MEM32(ecx + 0x8); /* 0x3A006B3A: mov edx, dword ptr [ecx + 8] */ 16050 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B3D: mov byte ptr [edx + 0x14], bl */ 16051 edx = MEM32(ecx + 0x8); /* 0x3A006B40: mov edx, dword ptr [ecx + 8] */ 16052 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006B43: mov byte ptr [ecx + 0x14], 0 */ 16053 esi = MEM32(edx); /* 0x3A006B47: mov esi, dword ptr [edx] */ 16054 MEM32(ecx + 0x8) = esi; /* 0x3A006B49: mov dword ptr [ecx + 8], esi */ 16055 esi = MEM32(edx); /* 0x3A006B4C: mov esi, dword ptr [edx] */ 16056 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006B4E: cmp esi, dword ptr [edi + 8] */ 16057 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16059 _flag_k = FK_CMP; 16060 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B56; /* 0x3A006B51: je 0x3a006b56 */ 16061 L_3A006B53: 16062 MEM32(esi + 0x4) = ecx; /* 0x3A006B53: mov dword ptr [esi + 4], ecx */ 16063 L_3A006B56: 16064 esi = MEM32(ecx + 0x4); /* 0x3A006B56: mov esi, dword ptr [ecx + 4] */ 16065 MEM32(edx + 0x4) = esi; /* 0x3A006B59: mov dword ptr [edx + 4], esi */ 16066 esi = MEM32(edi + 0x4); /* 0x3A006B5C: mov esi, dword ptr [edi + 4] */ 16067 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B5F: cmp ecx, dword ptr [esi + 4] */ 16068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16070 _flag_k = FK_CMP; 16071 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B69; /* 0x3A006B62: jne 0x3a006b69 */ 16072 L_3A006B64: 16073 MEM32(esi + 0x4) = edx; /* 0x3A006B64: mov dword ptr [esi + 4], edx */ 16074 goto L_3A006B77; /* 0x3A006B67: jmp 0x3a006b77 */ 16075 L_3A006B69: 16076 esi = MEM32(ecx + 0x4); /* 0x3A006B69: mov esi, dword ptr [ecx + 4] */ 16077 /* cmp ecx, MEM32(esi) */ /* 0x3A006B6C: cmp ecx, dword ptr [esi] */ 16078 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16080 _flag_k = FK_CMP; 16081 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B74; /* 0x3A006B6E: jne 0x3a006b74 */ 16082 L_3A006B70: 16083 MEM32(esi) = edx; /* 0x3A006B70: mov dword ptr [esi], edx */ 16084 goto L_3A006B77; /* 0x3A006B72: jmp 0x3a006b77 */ 16085 L_3A006B74: 16086 MEM32(esi + 0x8) = edx; /* 0x3A006B74: mov dword ptr [esi + 8], edx */ 16087 L_3A006B77: 16088 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 16089 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 16090 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 16091 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 16092 L_3A006B81: 16093 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 16094 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 16095 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 16096 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 16097 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 16098 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 16099 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 16100 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 16101 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 16102 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 16103 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 16104 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 16105 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 16106 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16108 _flag_k = FK_CMP; 16109 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 16110 L_3A006BA7: 16111 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 16112 L_3A006BAA: 16113 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 16114 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 16115 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 16116 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 16117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16119 _flag_k = FK_CMP; 16120 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 16121 L_3A006BB8: 16122 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 16123 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 16124 L_3A006BBD: 16125 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 16126 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 16127 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16129 _flag_k = FK_CMP; 16130 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 16131 L_3A006BC5: 16132 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 16133 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 16134 L_3A006BCA: 16135 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 16136 L_3A006BCC: 16137 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 16138 L_3A006BCF: 16139 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 16140 L_3A006BD2: 16141 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 16142 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 16143 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 16144 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 16145 RECOMP_FLAGS_IN(); 16146 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 16147 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 16148 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16149 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16150 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 16151 _flag_k = FK_ADD; 16152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16153 eax = eax - 1; /* 0x3A006BE7: dec eax */ 16154 _flag_k = FK_DEC; 16155 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 16156 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 16157 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 16158 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 16159 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 16160 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 16161 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 16162 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 16163 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 16164 RECOMP_REGS_OUT(); 16165 } 16166 16167 void sub_3A0069EB(void) { 16168 int _fpu_cmp = 0; 16169 uint32_t _cf = 0; 16170 int _df = 1; 16171 uint32_t _flag_k = FK_NONE; 16172 uint32_t _flag_a = 0, _flag_b = 0; 16173 uint32_t _itail_tgt = 0; 16174 RECOMP_REGS_LOCALS 16175 RECOMP_ENTER(0x3A0069EBu); 16176 16177 goto L_3A0069EB; 16178 L_3A006984: 16179 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x3A006984: cmp byte ptr [eax + 0x14], bl */ 16180 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16182 _flag_k = FK_NARROW(FK_CMP, 24); 16183 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A006987: jne 0x3a006bd2 */ 16184 L_3A00698D: 16185 edx = MEM32(eax + 0x4); /* 0x3A00698D: mov edx, dword ptr [eax + 4] */ 16186 ecx = MEM32(edx); /* 0x3A006990: mov ecx, dword ptr [edx] */ 16187 /* cmp eax, ecx */ /* 0x3A006992: cmp eax, ecx */ 16188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 16189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16190 _flag_k = FK_CMP; 16191 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A04; /* 0x3A006994: jne 0x3a006a04 */ 16192 L_3A006996: 16193 ecx = MEM32(edx + 0x8); /* 0x3A006996: mov ecx, dword ptr [edx + 8] */ 16194 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006999: mov dl, byte ptr [ecx + 0x14] */ 16195 /* test LO8(edx), LO8(edx) */ /* 0x3A00699C: test dl, dl */ 16196 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16197 _cf = 0; 16198 _flag_k = FK_NARROW(FK_TEST, 24); 16199 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0069EB; /* 0x3A00699E: jne 0x3a0069eb */ 16200 L_3A0069A0: 16201 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0069A0: mov byte ptr [ecx + 0x14], bl */ 16202 ecx = MEM32(eax + 0x4); /* 0x3A0069A3: mov ecx, dword ptr [eax + 4] */ 16203 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A0069A6: mov byte ptr [ecx + 0x14], 0 */ 16204 ecx = MEM32(eax + 0x4); /* 0x3A0069AA: mov ecx, dword ptr [eax + 4] */ 16205 edx = MEM32(ecx + 0x8); /* 0x3A0069AD: mov edx, dword ptr [ecx + 8] */ 16206 esi = MEM32(edx); /* 0x3A0069B0: mov esi, dword ptr [edx] */ 16207 MEM32(ecx + 0x8) = esi; /* 0x3A0069B2: mov dword ptr [ecx + 8], esi */ 16208 esi = MEM32(edx); /* 0x3A0069B5: mov esi, dword ptr [edx] */ 16209 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0069B7: cmp esi, dword ptr [edi + 8] */ 16210 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16212 _flag_k = FK_CMP; 16213 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0069BF; /* 0x3A0069BA: je 0x3a0069bf */ 16214 L_3A0069BC: 16215 MEM32(esi + 0x4) = ecx; /* 0x3A0069BC: mov dword ptr [esi + 4], ecx */ 16216 L_3A0069BF: 16217 esi = MEM32(ecx + 0x4); /* 0x3A0069BF: mov esi, dword ptr [ecx + 4] */ 16218 MEM32(edx + 0x4) = esi; /* 0x3A0069C2: mov dword ptr [edx + 4], esi */ 16219 esi = MEM32(edi + 0x4); /* 0x3A0069C5: mov esi, dword ptr [edi + 4] */ 16220 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0069C8: cmp ecx, dword ptr [esi + 4] */ 16221 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16223 _flag_k = FK_CMP; 16224 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069D2; /* 0x3A0069CB: jne 0x3a0069d2 */ 16225 L_3A0069CD: 16226 MEM32(esi + 0x4) = edx; /* 0x3A0069CD: mov dword ptr [esi + 4], edx */ 16227 goto L_3A0069E0; /* 0x3A0069D0: jmp 0x3a0069e0 */ 16228 L_3A0069D2: 16229 esi = MEM32(ecx + 0x4); /* 0x3A0069D2: mov esi, dword ptr [ecx + 4] */ 16230 /* cmp ecx, MEM32(esi) */ /* 0x3A0069D5: cmp ecx, dword ptr [esi] */ 16231 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16233 _flag_k = FK_CMP; 16234 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069DD; /* 0x3A0069D7: jne 0x3a0069dd */ 16235 L_3A0069D9: 16236 MEM32(esi) = edx; /* 0x3A0069D9: mov dword ptr [esi], edx */ 16237 goto L_3A0069E0; /* 0x3A0069DB: jmp 0x3a0069e0 */ 16238 L_3A0069DD: 16239 MEM32(esi + 0x8) = edx; /* 0x3A0069DD: mov dword ptr [esi + 8], edx */ 16240 L_3A0069E0: 16241 MEM32(edx) = ecx; /* 0x3A0069E0: mov dword ptr [edx], ecx */ 16242 MEM32(ecx + 0x4) = edx; /* 0x3A0069E2: mov dword ptr [ecx + 4], edx */ 16243 edx = MEM32(eax + 0x4); /* 0x3A0069E5: mov edx, dword ptr [eax + 4] */ 16244 ecx = MEM32(edx + 0x8); /* 0x3A0069E8: mov ecx, dword ptr [edx + 8] */ 16245 L_3A0069EB: 16246 edx = MEM32(ecx); /* 0x3A0069EB: mov edx, dword ptr [ecx] */ 16247 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069ED: cmp byte ptr [edx + 0x14], bl */ 16248 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16250 _flag_k = FK_NARROW(FK_CMP, 24); 16251 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069F0: jne 0x3a006a86 */ 16252 L_3A0069F6: 16253 edx = MEM32(ecx + 0x8); /* 0x3A0069F6: mov edx, dword ptr [ecx + 8] */ 16254 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069F9: cmp byte ptr [edx + 0x14], bl */ 16255 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16257 _flag_k = FK_NARROW(FK_CMP, 24); 16258 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069FC: jne 0x3a006a86 */ 16259 L_3A006A02: 16260 goto L_3A006A6E; /* 0x3A006A02: jmp 0x3a006a6e */ 16261 L_3A006A04: 16262 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006A04: mov dl, byte ptr [ecx + 0x14] */ 16263 /* test LO8(edx), LO8(edx) */ /* 0x3A006A07: test dl, dl */ 16264 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16265 _cf = 0; 16266 _flag_k = FK_NARROW(FK_TEST, 24); 16267 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006A57; /* 0x3A006A09: jne 0x3a006a57 */ 16268 L_3A006A0B: 16269 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A0B: mov byte ptr [ecx + 0x14], bl */ 16270 ecx = MEM32(eax + 0x4); /* 0x3A006A0E: mov ecx, dword ptr [eax + 4] */ 16271 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A11: mov byte ptr [ecx + 0x14], 0 */ 16272 ecx = MEM32(eax + 0x4); /* 0x3A006A15: mov ecx, dword ptr [eax + 4] */ 16273 edx = MEM32(ecx); /* 0x3A006A18: mov edx, dword ptr [ecx] */ 16274 esi = MEM32(edx + 0x8); /* 0x3A006A1A: mov esi, dword ptr [edx + 8] */ 16275 MEM32(ecx) = esi; /* 0x3A006A1D: mov dword ptr [ecx], esi */ 16276 esi = MEM32(edx + 0x8); /* 0x3A006A1F: mov esi, dword ptr [edx + 8] */ 16277 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006A22: cmp esi, dword ptr [edi + 8] */ 16278 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16280 _flag_k = FK_CMP; 16281 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006A2A; /* 0x3A006A25: je 0x3a006a2a */ 16282 L_3A006A27: 16283 MEM32(esi + 0x4) = ecx; /* 0x3A006A27: mov dword ptr [esi + 4], ecx */ 16284 L_3A006A2A: 16285 esi = MEM32(ecx + 0x4); /* 0x3A006A2A: mov esi, dword ptr [ecx + 4] */ 16286 MEM32(edx + 0x4) = esi; /* 0x3A006A2D: mov dword ptr [edx + 4], esi */ 16287 esi = MEM32(edi + 0x4); /* 0x3A006A30: mov esi, dword ptr [edi + 4] */ 16288 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006A33: cmp ecx, dword ptr [esi + 4] */ 16289 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16291 _flag_k = FK_CMP; 16292 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A3D; /* 0x3A006A36: jne 0x3a006a3d */ 16293 L_3A006A38: 16294 MEM32(esi + 0x4) = edx; /* 0x3A006A38: mov dword ptr [esi + 4], edx */ 16295 goto L_3A006A4C; /* 0x3A006A3B: jmp 0x3a006a4c */ 16296 L_3A006A3D: 16297 esi = MEM32(ecx + 0x4); /* 0x3A006A3D: mov esi, dword ptr [ecx + 4] */ 16298 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006A40: cmp ecx, dword ptr [esi + 8] */ 16299 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16301 _flag_k = FK_CMP; 16302 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A4A; /* 0x3A006A43: jne 0x3a006a4a */ 16303 L_3A006A45: 16304 MEM32(esi + 0x8) = edx; /* 0x3A006A45: mov dword ptr [esi + 8], edx */ 16305 goto L_3A006A4C; /* 0x3A006A48: jmp 0x3a006a4c */ 16306 L_3A006A4A: 16307 MEM32(esi) = edx; /* 0x3A006A4A: mov dword ptr [esi], edx */ 16308 L_3A006A4C: 16309 MEM32(edx + 0x8) = ecx; /* 0x3A006A4C: mov dword ptr [edx + 8], ecx */ 16310 MEM32(ecx + 0x4) = edx; /* 0x3A006A4F: mov dword ptr [ecx + 4], edx */ 16311 edx = MEM32(eax + 0x4); /* 0x3A006A52: mov edx, dword ptr [eax + 4] */ 16312 ecx = MEM32(edx); /* 0x3A006A55: mov ecx, dword ptr [edx] */ 16313 L_3A006A57: 16314 edx = MEM32(ecx + 0x8); /* 0x3A006A57: mov edx, dword ptr [ecx + 8] */ 16315 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A5A: cmp byte ptr [edx + 0x14], bl */ 16316 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16318 _flag_k = FK_NARROW(FK_CMP, 24); 16319 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A5D: jne 0x3a006b33 */ 16320 L_3A006A63: 16321 edx = MEM32(ecx); /* 0x3A006A63: mov edx, dword ptr [ecx] */ 16322 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A65: cmp byte ptr [edx + 0x14], bl */ 16323 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16325 _flag_k = FK_NARROW(FK_CMP, 24); 16326 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A68: jne 0x3a006b33 */ 16327 L_3A006A6E: 16328 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A6E: mov byte ptr [ecx + 0x14], 0 */ 16329 ecx = MEM32(edi + 0x4); /* 0x3A006A72: mov ecx, dword ptr [edi + 4] */ 16330 eax = MEM32(eax + 0x4); /* 0x3A006A75: mov eax, dword ptr [eax + 4] */ 16331 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006A78: cmp eax, dword ptr [ecx + 4] */ 16332 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 16333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16334 _flag_k = FK_CMP; 16335 RECOMP_BACKEDGE(); 16336 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006984; /* 0x3A006A7B: jne 0x3a006984 */ 16337 L_3A006A81: 16338 goto L_3A006BD2; /* 0x3A006A81: jmp 0x3a006bd2 */ 16339 L_3A006A86: 16340 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 16341 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 16342 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16344 _flag_k = FK_NARROW(FK_CMP, 24); 16345 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 16346 L_3A006A8E: 16347 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 16348 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 16349 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 16350 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 16351 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 16352 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 16353 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 16354 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 16355 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16357 _flag_k = FK_CMP; 16358 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 16359 L_3A006AA6: 16360 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 16361 L_3A006AA9: 16362 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 16363 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 16364 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 16365 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 16366 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16368 _flag_k = FK_CMP; 16369 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 16370 L_3A006AB7: 16371 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 16372 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 16373 L_3A006ABC: 16374 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 16375 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 16376 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16378 _flag_k = FK_CMP; 16379 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 16380 L_3A006AC4: 16381 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 16382 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 16383 L_3A006AC9: 16384 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 16385 L_3A006ACB: 16386 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 16387 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 16388 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 16389 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 16390 L_3A006AD7: 16391 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 16392 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 16393 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 16394 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 16395 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 16396 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 16397 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 16398 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 16399 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 16400 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 16401 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 16402 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 16403 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 16404 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16406 _flag_k = FK_CMP; 16407 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 16408 L_3A006AFE: 16409 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 16410 L_3A006B01: 16411 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 16412 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 16413 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 16414 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 16415 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16417 _flag_k = FK_CMP; 16418 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 16419 L_3A006B0F: 16420 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 16421 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 16422 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 16423 L_3A006B19: 16424 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 16425 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 16426 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16428 _flag_k = FK_CMP; 16429 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 16430 L_3A006B20: 16431 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 16432 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 16433 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 16434 L_3A006B29: 16435 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 16436 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 16437 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 16438 L_3A006B33: 16439 edx = MEM32(ecx); /* 0x3A006B33: mov edx, dword ptr [ecx] */ 16440 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006B35: cmp byte ptr [edx + 0x14], bl */ 16441 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16443 _flag_k = FK_NARROW(FK_CMP, 24); 16444 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B81; /* 0x3A006B38: jne 0x3a006b81 */ 16445 L_3A006B3A: 16446 edx = MEM32(ecx + 0x8); /* 0x3A006B3A: mov edx, dword ptr [ecx + 8] */ 16447 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B3D: mov byte ptr [edx + 0x14], bl */ 16448 edx = MEM32(ecx + 0x8); /* 0x3A006B40: mov edx, dword ptr [ecx + 8] */ 16449 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006B43: mov byte ptr [ecx + 0x14], 0 */ 16450 esi = MEM32(edx); /* 0x3A006B47: mov esi, dword ptr [edx] */ 16451 MEM32(ecx + 0x8) = esi; /* 0x3A006B49: mov dword ptr [ecx + 8], esi */ 16452 esi = MEM32(edx); /* 0x3A006B4C: mov esi, dword ptr [edx] */ 16453 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006B4E: cmp esi, dword ptr [edi + 8] */ 16454 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16456 _flag_k = FK_CMP; 16457 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B56; /* 0x3A006B51: je 0x3a006b56 */ 16458 L_3A006B53: 16459 MEM32(esi + 0x4) = ecx; /* 0x3A006B53: mov dword ptr [esi + 4], ecx */ 16460 L_3A006B56: 16461 esi = MEM32(ecx + 0x4); /* 0x3A006B56: mov esi, dword ptr [ecx + 4] */ 16462 MEM32(edx + 0x4) = esi; /* 0x3A006B59: mov dword ptr [edx + 4], esi */ 16463 esi = MEM32(edi + 0x4); /* 0x3A006B5C: mov esi, dword ptr [edi + 4] */ 16464 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B5F: cmp ecx, dword ptr [esi + 4] */ 16465 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16467 _flag_k = FK_CMP; 16468 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B69; /* 0x3A006B62: jne 0x3a006b69 */ 16469 L_3A006B64: 16470 MEM32(esi + 0x4) = edx; /* 0x3A006B64: mov dword ptr [esi + 4], edx */ 16471 goto L_3A006B77; /* 0x3A006B67: jmp 0x3a006b77 */ 16472 L_3A006B69: 16473 esi = MEM32(ecx + 0x4); /* 0x3A006B69: mov esi, dword ptr [ecx + 4] */ 16474 /* cmp ecx, MEM32(esi) */ /* 0x3A006B6C: cmp ecx, dword ptr [esi] */ 16475 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16477 _flag_k = FK_CMP; 16478 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B74; /* 0x3A006B6E: jne 0x3a006b74 */ 16479 L_3A006B70: 16480 MEM32(esi) = edx; /* 0x3A006B70: mov dword ptr [esi], edx */ 16481 goto L_3A006B77; /* 0x3A006B72: jmp 0x3a006b77 */ 16482 L_3A006B74: 16483 MEM32(esi + 0x8) = edx; /* 0x3A006B74: mov dword ptr [esi + 8], edx */ 16484 L_3A006B77: 16485 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 16486 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 16487 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 16488 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 16489 L_3A006B81: 16490 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 16491 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 16492 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 16493 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 16494 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 16495 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 16496 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 16497 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 16498 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 16499 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 16500 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 16501 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 16502 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 16503 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16505 _flag_k = FK_CMP; 16506 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 16507 L_3A006BA7: 16508 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 16509 L_3A006BAA: 16510 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 16511 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 16512 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 16513 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 16514 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16516 _flag_k = FK_CMP; 16517 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 16518 L_3A006BB8: 16519 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 16520 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 16521 L_3A006BBD: 16522 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 16523 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 16524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16526 _flag_k = FK_CMP; 16527 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 16528 L_3A006BC5: 16529 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 16530 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 16531 L_3A006BCA: 16532 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 16533 L_3A006BCC: 16534 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 16535 L_3A006BCF: 16536 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 16537 L_3A006BD2: 16538 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 16539 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 16540 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 16541 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 16542 RECOMP_FLAGS_IN(); 16543 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 16544 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 16545 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16547 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 16548 _flag_k = FK_ADD; 16549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16550 eax = eax - 1; /* 0x3A006BE7: dec eax */ 16551 _flag_k = FK_DEC; 16552 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 16553 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 16554 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 16555 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 16556 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 16557 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 16558 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 16559 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 16560 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 16561 RECOMP_REGS_OUT(); 16562 } 16563 16564 void sub_3A006A04(void) { 16565 int _fpu_cmp = 0; 16566 uint32_t _cf = 0; 16567 int _df = 1; 16568 uint32_t _flag_k = FK_NONE; 16569 uint32_t _flag_a = 0, _flag_b = 0; 16570 uint32_t _itail_tgt = 0; 16571 RECOMP_REGS_LOCALS 16572 RECOMP_ENTER(0x3A006A04u); 16573 16574 goto L_3A006A04; 16575 L_3A006984: 16576 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x3A006984: cmp byte ptr [eax + 0x14], bl */ 16577 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16579 _flag_k = FK_NARROW(FK_CMP, 24); 16580 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A006987: jne 0x3a006bd2 */ 16581 L_3A00698D: 16582 edx = MEM32(eax + 0x4); /* 0x3A00698D: mov edx, dword ptr [eax + 4] */ 16583 ecx = MEM32(edx); /* 0x3A006990: mov ecx, dword ptr [edx] */ 16584 /* cmp eax, ecx */ /* 0x3A006992: cmp eax, ecx */ 16585 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 16586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16587 _flag_k = FK_CMP; 16588 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A04; /* 0x3A006994: jne 0x3a006a04 */ 16589 L_3A006996: 16590 ecx = MEM32(edx + 0x8); /* 0x3A006996: mov ecx, dword ptr [edx + 8] */ 16591 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006999: mov dl, byte ptr [ecx + 0x14] */ 16592 /* test LO8(edx), LO8(edx) */ /* 0x3A00699C: test dl, dl */ 16593 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16594 _cf = 0; 16595 _flag_k = FK_NARROW(FK_TEST, 24); 16596 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0069EB; /* 0x3A00699E: jne 0x3a0069eb */ 16597 L_3A0069A0: 16598 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0069A0: mov byte ptr [ecx + 0x14], bl */ 16599 ecx = MEM32(eax + 0x4); /* 0x3A0069A3: mov ecx, dword ptr [eax + 4] */ 16600 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A0069A6: mov byte ptr [ecx + 0x14], 0 */ 16601 ecx = MEM32(eax + 0x4); /* 0x3A0069AA: mov ecx, dword ptr [eax + 4] */ 16602 edx = MEM32(ecx + 0x8); /* 0x3A0069AD: mov edx, dword ptr [ecx + 8] */ 16603 esi = MEM32(edx); /* 0x3A0069B0: mov esi, dword ptr [edx] */ 16604 MEM32(ecx + 0x8) = esi; /* 0x3A0069B2: mov dword ptr [ecx + 8], esi */ 16605 esi = MEM32(edx); /* 0x3A0069B5: mov esi, dword ptr [edx] */ 16606 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0069B7: cmp esi, dword ptr [edi + 8] */ 16607 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16609 _flag_k = FK_CMP; 16610 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0069BF; /* 0x3A0069BA: je 0x3a0069bf */ 16611 L_3A0069BC: 16612 MEM32(esi + 0x4) = ecx; /* 0x3A0069BC: mov dword ptr [esi + 4], ecx */ 16613 L_3A0069BF: 16614 esi = MEM32(ecx + 0x4); /* 0x3A0069BF: mov esi, dword ptr [ecx + 4] */ 16615 MEM32(edx + 0x4) = esi; /* 0x3A0069C2: mov dword ptr [edx + 4], esi */ 16616 esi = MEM32(edi + 0x4); /* 0x3A0069C5: mov esi, dword ptr [edi + 4] */ 16617 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0069C8: cmp ecx, dword ptr [esi + 4] */ 16618 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16620 _flag_k = FK_CMP; 16621 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069D2; /* 0x3A0069CB: jne 0x3a0069d2 */ 16622 L_3A0069CD: 16623 MEM32(esi + 0x4) = edx; /* 0x3A0069CD: mov dword ptr [esi + 4], edx */ 16624 goto L_3A0069E0; /* 0x3A0069D0: jmp 0x3a0069e0 */ 16625 L_3A0069D2: 16626 esi = MEM32(ecx + 0x4); /* 0x3A0069D2: mov esi, dword ptr [ecx + 4] */ 16627 /* cmp ecx, MEM32(esi) */ /* 0x3A0069D5: cmp ecx, dword ptr [esi] */ 16628 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16630 _flag_k = FK_CMP; 16631 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069DD; /* 0x3A0069D7: jne 0x3a0069dd */ 16632 L_3A0069D9: 16633 MEM32(esi) = edx; /* 0x3A0069D9: mov dword ptr [esi], edx */ 16634 goto L_3A0069E0; /* 0x3A0069DB: jmp 0x3a0069e0 */ 16635 L_3A0069DD: 16636 MEM32(esi + 0x8) = edx; /* 0x3A0069DD: mov dword ptr [esi + 8], edx */ 16637 L_3A0069E0: 16638 MEM32(edx) = ecx; /* 0x3A0069E0: mov dword ptr [edx], ecx */ 16639 MEM32(ecx + 0x4) = edx; /* 0x3A0069E2: mov dword ptr [ecx + 4], edx */ 16640 edx = MEM32(eax + 0x4); /* 0x3A0069E5: mov edx, dword ptr [eax + 4] */ 16641 ecx = MEM32(edx + 0x8); /* 0x3A0069E8: mov ecx, dword ptr [edx + 8] */ 16642 L_3A0069EB: 16643 edx = MEM32(ecx); /* 0x3A0069EB: mov edx, dword ptr [ecx] */ 16644 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069ED: cmp byte ptr [edx + 0x14], bl */ 16645 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16647 _flag_k = FK_NARROW(FK_CMP, 24); 16648 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069F0: jne 0x3a006a86 */ 16649 L_3A0069F6: 16650 edx = MEM32(ecx + 0x8); /* 0x3A0069F6: mov edx, dword ptr [ecx + 8] */ 16651 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069F9: cmp byte ptr [edx + 0x14], bl */ 16652 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16654 _flag_k = FK_NARROW(FK_CMP, 24); 16655 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069FC: jne 0x3a006a86 */ 16656 L_3A006A02: 16657 goto L_3A006A6E; /* 0x3A006A02: jmp 0x3a006a6e */ 16658 L_3A006A04: 16659 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006A04: mov dl, byte ptr [ecx + 0x14] */ 16660 /* test LO8(edx), LO8(edx) */ /* 0x3A006A07: test dl, dl */ 16661 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16662 _cf = 0; 16663 _flag_k = FK_NARROW(FK_TEST, 24); 16664 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006A57; /* 0x3A006A09: jne 0x3a006a57 */ 16665 L_3A006A0B: 16666 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A0B: mov byte ptr [ecx + 0x14], bl */ 16667 ecx = MEM32(eax + 0x4); /* 0x3A006A0E: mov ecx, dword ptr [eax + 4] */ 16668 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A11: mov byte ptr [ecx + 0x14], 0 */ 16669 ecx = MEM32(eax + 0x4); /* 0x3A006A15: mov ecx, dword ptr [eax + 4] */ 16670 edx = MEM32(ecx); /* 0x3A006A18: mov edx, dword ptr [ecx] */ 16671 esi = MEM32(edx + 0x8); /* 0x3A006A1A: mov esi, dword ptr [edx + 8] */ 16672 MEM32(ecx) = esi; /* 0x3A006A1D: mov dword ptr [ecx], esi */ 16673 esi = MEM32(edx + 0x8); /* 0x3A006A1F: mov esi, dword ptr [edx + 8] */ 16674 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006A22: cmp esi, dword ptr [edi + 8] */ 16675 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16677 _flag_k = FK_CMP; 16678 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006A2A; /* 0x3A006A25: je 0x3a006a2a */ 16679 L_3A006A27: 16680 MEM32(esi + 0x4) = ecx; /* 0x3A006A27: mov dword ptr [esi + 4], ecx */ 16681 L_3A006A2A: 16682 esi = MEM32(ecx + 0x4); /* 0x3A006A2A: mov esi, dword ptr [ecx + 4] */ 16683 MEM32(edx + 0x4) = esi; /* 0x3A006A2D: mov dword ptr [edx + 4], esi */ 16684 esi = MEM32(edi + 0x4); /* 0x3A006A30: mov esi, dword ptr [edi + 4] */ 16685 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006A33: cmp ecx, dword ptr [esi + 4] */ 16686 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16688 _flag_k = FK_CMP; 16689 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A3D; /* 0x3A006A36: jne 0x3a006a3d */ 16690 L_3A006A38: 16691 MEM32(esi + 0x4) = edx; /* 0x3A006A38: mov dword ptr [esi + 4], edx */ 16692 goto L_3A006A4C; /* 0x3A006A3B: jmp 0x3a006a4c */ 16693 L_3A006A3D: 16694 esi = MEM32(ecx + 0x4); /* 0x3A006A3D: mov esi, dword ptr [ecx + 4] */ 16695 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006A40: cmp ecx, dword ptr [esi + 8] */ 16696 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16698 _flag_k = FK_CMP; 16699 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A4A; /* 0x3A006A43: jne 0x3a006a4a */ 16700 L_3A006A45: 16701 MEM32(esi + 0x8) = edx; /* 0x3A006A45: mov dword ptr [esi + 8], edx */ 16702 goto L_3A006A4C; /* 0x3A006A48: jmp 0x3a006a4c */ 16703 L_3A006A4A: 16704 MEM32(esi) = edx; /* 0x3A006A4A: mov dword ptr [esi], edx */ 16705 L_3A006A4C: 16706 MEM32(edx + 0x8) = ecx; /* 0x3A006A4C: mov dword ptr [edx + 8], ecx */ 16707 MEM32(ecx + 0x4) = edx; /* 0x3A006A4F: mov dword ptr [ecx + 4], edx */ 16708 edx = MEM32(eax + 0x4); /* 0x3A006A52: mov edx, dword ptr [eax + 4] */ 16709 ecx = MEM32(edx); /* 0x3A006A55: mov ecx, dword ptr [edx] */ 16710 L_3A006A57: 16711 edx = MEM32(ecx + 0x8); /* 0x3A006A57: mov edx, dword ptr [ecx + 8] */ 16712 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A5A: cmp byte ptr [edx + 0x14], bl */ 16713 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16715 _flag_k = FK_NARROW(FK_CMP, 24); 16716 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A5D: jne 0x3a006b33 */ 16717 L_3A006A63: 16718 edx = MEM32(ecx); /* 0x3A006A63: mov edx, dword ptr [ecx] */ 16719 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A65: cmp byte ptr [edx + 0x14], bl */ 16720 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16722 _flag_k = FK_NARROW(FK_CMP, 24); 16723 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A68: jne 0x3a006b33 */ 16724 L_3A006A6E: 16725 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A6E: mov byte ptr [ecx + 0x14], 0 */ 16726 ecx = MEM32(edi + 0x4); /* 0x3A006A72: mov ecx, dword ptr [edi + 4] */ 16727 eax = MEM32(eax + 0x4); /* 0x3A006A75: mov eax, dword ptr [eax + 4] */ 16728 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006A78: cmp eax, dword ptr [ecx + 4] */ 16729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 16730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16731 _flag_k = FK_CMP; 16732 RECOMP_BACKEDGE(); 16733 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006984; /* 0x3A006A7B: jne 0x3a006984 */ 16734 L_3A006A81: 16735 goto L_3A006BD2; /* 0x3A006A81: jmp 0x3a006bd2 */ 16736 L_3A006A86: 16737 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 16738 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 16739 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16741 _flag_k = FK_NARROW(FK_CMP, 24); 16742 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 16743 L_3A006A8E: 16744 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 16745 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 16746 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 16747 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 16748 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 16749 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 16750 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 16751 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 16752 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16754 _flag_k = FK_CMP; 16755 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 16756 L_3A006AA6: 16757 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 16758 L_3A006AA9: 16759 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 16760 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 16761 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 16762 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 16763 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16765 _flag_k = FK_CMP; 16766 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 16767 L_3A006AB7: 16768 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 16769 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 16770 L_3A006ABC: 16771 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 16772 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 16773 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16775 _flag_k = FK_CMP; 16776 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 16777 L_3A006AC4: 16778 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 16779 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 16780 L_3A006AC9: 16781 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 16782 L_3A006ACB: 16783 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 16784 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 16785 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 16786 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 16787 L_3A006AD7: 16788 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 16789 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 16790 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 16791 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 16792 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 16793 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 16794 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 16795 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 16796 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 16797 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 16798 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 16799 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 16800 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 16801 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16803 _flag_k = FK_CMP; 16804 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 16805 L_3A006AFE: 16806 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 16807 L_3A006B01: 16808 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 16809 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 16810 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 16811 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 16812 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16814 _flag_k = FK_CMP; 16815 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 16816 L_3A006B0F: 16817 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 16818 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 16819 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 16820 L_3A006B19: 16821 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 16822 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 16823 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16825 _flag_k = FK_CMP; 16826 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 16827 L_3A006B20: 16828 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 16829 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 16830 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 16831 L_3A006B29: 16832 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 16833 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 16834 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 16835 L_3A006B33: 16836 edx = MEM32(ecx); /* 0x3A006B33: mov edx, dword ptr [ecx] */ 16837 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006B35: cmp byte ptr [edx + 0x14], bl */ 16838 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16840 _flag_k = FK_NARROW(FK_CMP, 24); 16841 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B81; /* 0x3A006B38: jne 0x3a006b81 */ 16842 L_3A006B3A: 16843 edx = MEM32(ecx + 0x8); /* 0x3A006B3A: mov edx, dword ptr [ecx + 8] */ 16844 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B3D: mov byte ptr [edx + 0x14], bl */ 16845 edx = MEM32(ecx + 0x8); /* 0x3A006B40: mov edx, dword ptr [ecx + 8] */ 16846 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006B43: mov byte ptr [ecx + 0x14], 0 */ 16847 esi = MEM32(edx); /* 0x3A006B47: mov esi, dword ptr [edx] */ 16848 MEM32(ecx + 0x8) = esi; /* 0x3A006B49: mov dword ptr [ecx + 8], esi */ 16849 esi = MEM32(edx); /* 0x3A006B4C: mov esi, dword ptr [edx] */ 16850 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006B4E: cmp esi, dword ptr [edi + 8] */ 16851 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16853 _flag_k = FK_CMP; 16854 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B56; /* 0x3A006B51: je 0x3a006b56 */ 16855 L_3A006B53: 16856 MEM32(esi + 0x4) = ecx; /* 0x3A006B53: mov dword ptr [esi + 4], ecx */ 16857 L_3A006B56: 16858 esi = MEM32(ecx + 0x4); /* 0x3A006B56: mov esi, dword ptr [ecx + 4] */ 16859 MEM32(edx + 0x4) = esi; /* 0x3A006B59: mov dword ptr [edx + 4], esi */ 16860 esi = MEM32(edi + 0x4); /* 0x3A006B5C: mov esi, dword ptr [edi + 4] */ 16861 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B5F: cmp ecx, dword ptr [esi + 4] */ 16862 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16864 _flag_k = FK_CMP; 16865 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B69; /* 0x3A006B62: jne 0x3a006b69 */ 16866 L_3A006B64: 16867 MEM32(esi + 0x4) = edx; /* 0x3A006B64: mov dword ptr [esi + 4], edx */ 16868 goto L_3A006B77; /* 0x3A006B67: jmp 0x3a006b77 */ 16869 L_3A006B69: 16870 esi = MEM32(ecx + 0x4); /* 0x3A006B69: mov esi, dword ptr [ecx + 4] */ 16871 /* cmp ecx, MEM32(esi) */ /* 0x3A006B6C: cmp ecx, dword ptr [esi] */ 16872 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16874 _flag_k = FK_CMP; 16875 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B74; /* 0x3A006B6E: jne 0x3a006b74 */ 16876 L_3A006B70: 16877 MEM32(esi) = edx; /* 0x3A006B70: mov dword ptr [esi], edx */ 16878 goto L_3A006B77; /* 0x3A006B72: jmp 0x3a006b77 */ 16879 L_3A006B74: 16880 MEM32(esi + 0x8) = edx; /* 0x3A006B74: mov dword ptr [esi + 8], edx */ 16881 L_3A006B77: 16882 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 16883 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 16884 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 16885 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 16886 L_3A006B81: 16887 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 16888 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 16889 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 16890 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 16891 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 16892 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 16893 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 16894 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 16895 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 16896 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 16897 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 16898 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 16899 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 16900 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16902 _flag_k = FK_CMP; 16903 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 16904 L_3A006BA7: 16905 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 16906 L_3A006BAA: 16907 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 16908 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 16909 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 16910 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 16911 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16913 _flag_k = FK_CMP; 16914 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 16915 L_3A006BB8: 16916 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 16917 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 16918 L_3A006BBD: 16919 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 16920 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 16921 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16923 _flag_k = FK_CMP; 16924 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 16925 L_3A006BC5: 16926 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 16927 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 16928 L_3A006BCA: 16929 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 16930 L_3A006BCC: 16931 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 16932 L_3A006BCF: 16933 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 16934 L_3A006BD2: 16935 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 16936 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 16937 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 16938 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 16939 RECOMP_FLAGS_IN(); 16940 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 16941 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 16942 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16943 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16944 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 16945 _flag_k = FK_ADD; 16946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16947 eax = eax - 1; /* 0x3A006BE7: dec eax */ 16948 _flag_k = FK_DEC; 16949 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 16950 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 16951 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 16952 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 16953 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 16954 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 16955 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 16956 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 16957 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 16958 RECOMP_REGS_OUT(); 16959 } 16960 16961 void sub_3A006A4C(void) { 16962 int _fpu_cmp = 0; 16963 uint32_t _cf = 0; 16964 int _df = 1; 16965 uint32_t _flag_k = FK_NONE; 16966 uint32_t _flag_a = 0, _flag_b = 0; 16967 uint32_t _itail_tgt = 0; 16968 RECOMP_REGS_LOCALS 16969 RECOMP_ENTER(0x3A006A4Cu); 16970 16971 goto L_3A006A4C; 16972 L_3A006984: 16973 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x3A006984: cmp byte ptr [eax + 0x14], bl */ 16974 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16976 _flag_k = FK_NARROW(FK_CMP, 24); 16977 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A006987: jne 0x3a006bd2 */ 16978 L_3A00698D: 16979 edx = MEM32(eax + 0x4); /* 0x3A00698D: mov edx, dword ptr [eax + 4] */ 16980 ecx = MEM32(edx); /* 0x3A006990: mov ecx, dword ptr [edx] */ 16981 /* cmp eax, ecx */ /* 0x3A006992: cmp eax, ecx */ 16982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 16983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16984 _flag_k = FK_CMP; 16985 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A04; /* 0x3A006994: jne 0x3a006a04 */ 16986 L_3A006996: 16987 ecx = MEM32(edx + 0x8); /* 0x3A006996: mov ecx, dword ptr [edx + 8] */ 16988 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006999: mov dl, byte ptr [ecx + 0x14] */ 16989 /* test LO8(edx), LO8(edx) */ /* 0x3A00699C: test dl, dl */ 16990 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16991 _cf = 0; 16992 _flag_k = FK_NARROW(FK_TEST, 24); 16993 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0069EB; /* 0x3A00699E: jne 0x3a0069eb */ 16994 L_3A0069A0: 16995 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0069A0: mov byte ptr [ecx + 0x14], bl */ 16996 ecx = MEM32(eax + 0x4); /* 0x3A0069A3: mov ecx, dword ptr [eax + 4] */ 16997 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A0069A6: mov byte ptr [ecx + 0x14], 0 */ 16998 ecx = MEM32(eax + 0x4); /* 0x3A0069AA: mov ecx, dword ptr [eax + 4] */ 16999 edx = MEM32(ecx + 0x8); /* 0x3A0069AD: mov edx, dword ptr [ecx + 8] */ 17000 esi = MEM32(edx); /* 0x3A0069B0: mov esi, dword ptr [edx] */ 17001 MEM32(ecx + 0x8) = esi; /* 0x3A0069B2: mov dword ptr [ecx + 8], esi */ 17002 esi = MEM32(edx); /* 0x3A0069B5: mov esi, dword ptr [edx] */ 17003 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0069B7: cmp esi, dword ptr [edi + 8] */ 17004 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17006 _flag_k = FK_CMP; 17007 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0069BF; /* 0x3A0069BA: je 0x3a0069bf */ 17008 L_3A0069BC: 17009 MEM32(esi + 0x4) = ecx; /* 0x3A0069BC: mov dword ptr [esi + 4], ecx */ 17010 L_3A0069BF: 17011 esi = MEM32(ecx + 0x4); /* 0x3A0069BF: mov esi, dword ptr [ecx + 4] */ 17012 MEM32(edx + 0x4) = esi; /* 0x3A0069C2: mov dword ptr [edx + 4], esi */ 17013 esi = MEM32(edi + 0x4); /* 0x3A0069C5: mov esi, dword ptr [edi + 4] */ 17014 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0069C8: cmp ecx, dword ptr [esi + 4] */ 17015 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17017 _flag_k = FK_CMP; 17018 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069D2; /* 0x3A0069CB: jne 0x3a0069d2 */ 17019 L_3A0069CD: 17020 MEM32(esi + 0x4) = edx; /* 0x3A0069CD: mov dword ptr [esi + 4], edx */ 17021 goto L_3A0069E0; /* 0x3A0069D0: jmp 0x3a0069e0 */ 17022 L_3A0069D2: 17023 esi = MEM32(ecx + 0x4); /* 0x3A0069D2: mov esi, dword ptr [ecx + 4] */ 17024 /* cmp ecx, MEM32(esi) */ /* 0x3A0069D5: cmp ecx, dword ptr [esi] */ 17025 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17027 _flag_k = FK_CMP; 17028 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069DD; /* 0x3A0069D7: jne 0x3a0069dd */ 17029 L_3A0069D9: 17030 MEM32(esi) = edx; /* 0x3A0069D9: mov dword ptr [esi], edx */ 17031 goto L_3A0069E0; /* 0x3A0069DB: jmp 0x3a0069e0 */ 17032 L_3A0069DD: 17033 MEM32(esi + 0x8) = edx; /* 0x3A0069DD: mov dword ptr [esi + 8], edx */ 17034 L_3A0069E0: 17035 MEM32(edx) = ecx; /* 0x3A0069E0: mov dword ptr [edx], ecx */ 17036 MEM32(ecx + 0x4) = edx; /* 0x3A0069E2: mov dword ptr [ecx + 4], edx */ 17037 edx = MEM32(eax + 0x4); /* 0x3A0069E5: mov edx, dword ptr [eax + 4] */ 17038 ecx = MEM32(edx + 0x8); /* 0x3A0069E8: mov ecx, dword ptr [edx + 8] */ 17039 L_3A0069EB: 17040 edx = MEM32(ecx); /* 0x3A0069EB: mov edx, dword ptr [ecx] */ 17041 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069ED: cmp byte ptr [edx + 0x14], bl */ 17042 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17044 _flag_k = FK_NARROW(FK_CMP, 24); 17045 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069F0: jne 0x3a006a86 */ 17046 L_3A0069F6: 17047 edx = MEM32(ecx + 0x8); /* 0x3A0069F6: mov edx, dword ptr [ecx + 8] */ 17048 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069F9: cmp byte ptr [edx + 0x14], bl */ 17049 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17051 _flag_k = FK_NARROW(FK_CMP, 24); 17052 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069FC: jne 0x3a006a86 */ 17053 L_3A006A02: 17054 goto L_3A006A6E; /* 0x3A006A02: jmp 0x3a006a6e */ 17055 L_3A006A04: 17056 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006A04: mov dl, byte ptr [ecx + 0x14] */ 17057 /* test LO8(edx), LO8(edx) */ /* 0x3A006A07: test dl, dl */ 17058 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 17059 _cf = 0; 17060 _flag_k = FK_NARROW(FK_TEST, 24); 17061 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006A57; /* 0x3A006A09: jne 0x3a006a57 */ 17062 L_3A006A0B: 17063 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A0B: mov byte ptr [ecx + 0x14], bl */ 17064 ecx = MEM32(eax + 0x4); /* 0x3A006A0E: mov ecx, dword ptr [eax + 4] */ 17065 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A11: mov byte ptr [ecx + 0x14], 0 */ 17066 ecx = MEM32(eax + 0x4); /* 0x3A006A15: mov ecx, dword ptr [eax + 4] */ 17067 edx = MEM32(ecx); /* 0x3A006A18: mov edx, dword ptr [ecx] */ 17068 esi = MEM32(edx + 0x8); /* 0x3A006A1A: mov esi, dword ptr [edx + 8] */ 17069 MEM32(ecx) = esi; /* 0x3A006A1D: mov dword ptr [ecx], esi */ 17070 esi = MEM32(edx + 0x8); /* 0x3A006A1F: mov esi, dword ptr [edx + 8] */ 17071 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006A22: cmp esi, dword ptr [edi + 8] */ 17072 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17074 _flag_k = FK_CMP; 17075 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006A2A; /* 0x3A006A25: je 0x3a006a2a */ 17076 L_3A006A27: 17077 MEM32(esi + 0x4) = ecx; /* 0x3A006A27: mov dword ptr [esi + 4], ecx */ 17078 L_3A006A2A: 17079 esi = MEM32(ecx + 0x4); /* 0x3A006A2A: mov esi, dword ptr [ecx + 4] */ 17080 MEM32(edx + 0x4) = esi; /* 0x3A006A2D: mov dword ptr [edx + 4], esi */ 17081 esi = MEM32(edi + 0x4); /* 0x3A006A30: mov esi, dword ptr [edi + 4] */ 17082 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006A33: cmp ecx, dword ptr [esi + 4] */ 17083 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17085 _flag_k = FK_CMP; 17086 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A3D; /* 0x3A006A36: jne 0x3a006a3d */ 17087 L_3A006A38: 17088 MEM32(esi + 0x4) = edx; /* 0x3A006A38: mov dword ptr [esi + 4], edx */ 17089 goto L_3A006A4C; /* 0x3A006A3B: jmp 0x3a006a4c */ 17090 L_3A006A3D: 17091 esi = MEM32(ecx + 0x4); /* 0x3A006A3D: mov esi, dword ptr [ecx + 4] */ 17092 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006A40: cmp ecx, dword ptr [esi + 8] */ 17093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17095 _flag_k = FK_CMP; 17096 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A4A; /* 0x3A006A43: jne 0x3a006a4a */ 17097 L_3A006A45: 17098 MEM32(esi + 0x8) = edx; /* 0x3A006A45: mov dword ptr [esi + 8], edx */ 17099 goto L_3A006A4C; /* 0x3A006A48: jmp 0x3a006a4c */ 17100 L_3A006A4A: 17101 MEM32(esi) = edx; /* 0x3A006A4A: mov dword ptr [esi], edx */ 17102 L_3A006A4C: 17103 MEM32(edx + 0x8) = ecx; /* 0x3A006A4C: mov dword ptr [edx + 8], ecx */ 17104 MEM32(ecx + 0x4) = edx; /* 0x3A006A4F: mov dword ptr [ecx + 4], edx */ 17105 edx = MEM32(eax + 0x4); /* 0x3A006A52: mov edx, dword ptr [eax + 4] */ 17106 ecx = MEM32(edx); /* 0x3A006A55: mov ecx, dword ptr [edx] */ 17107 L_3A006A57: 17108 edx = MEM32(ecx + 0x8); /* 0x3A006A57: mov edx, dword ptr [ecx + 8] */ 17109 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A5A: cmp byte ptr [edx + 0x14], bl */ 17110 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17112 _flag_k = FK_NARROW(FK_CMP, 24); 17113 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A5D: jne 0x3a006b33 */ 17114 L_3A006A63: 17115 edx = MEM32(ecx); /* 0x3A006A63: mov edx, dword ptr [ecx] */ 17116 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A65: cmp byte ptr [edx + 0x14], bl */ 17117 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17119 _flag_k = FK_NARROW(FK_CMP, 24); 17120 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A68: jne 0x3a006b33 */ 17121 L_3A006A6E: 17122 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A6E: mov byte ptr [ecx + 0x14], 0 */ 17123 ecx = MEM32(edi + 0x4); /* 0x3A006A72: mov ecx, dword ptr [edi + 4] */ 17124 eax = MEM32(eax + 0x4); /* 0x3A006A75: mov eax, dword ptr [eax + 4] */ 17125 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006A78: cmp eax, dword ptr [ecx + 4] */ 17126 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 17127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17128 _flag_k = FK_CMP; 17129 RECOMP_BACKEDGE(); 17130 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006984; /* 0x3A006A7B: jne 0x3a006984 */ 17131 L_3A006A81: 17132 goto L_3A006BD2; /* 0x3A006A81: jmp 0x3a006bd2 */ 17133 L_3A006A86: 17134 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 17135 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 17136 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17138 _flag_k = FK_NARROW(FK_CMP, 24); 17139 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 17140 L_3A006A8E: 17141 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 17142 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 17143 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 17144 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 17145 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 17146 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 17147 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 17148 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 17149 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17151 _flag_k = FK_CMP; 17152 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 17153 L_3A006AA6: 17154 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 17155 L_3A006AA9: 17156 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 17157 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 17158 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 17159 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 17160 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17162 _flag_k = FK_CMP; 17163 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 17164 L_3A006AB7: 17165 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 17166 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 17167 L_3A006ABC: 17168 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 17169 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 17170 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17172 _flag_k = FK_CMP; 17173 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 17174 L_3A006AC4: 17175 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 17176 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 17177 L_3A006AC9: 17178 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 17179 L_3A006ACB: 17180 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 17181 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 17182 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 17183 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 17184 L_3A006AD7: 17185 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 17186 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 17187 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 17188 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 17189 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 17190 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 17191 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 17192 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 17193 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 17194 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 17195 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 17196 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 17197 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 17198 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17200 _flag_k = FK_CMP; 17201 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 17202 L_3A006AFE: 17203 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 17204 L_3A006B01: 17205 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 17206 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 17207 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 17208 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 17209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17211 _flag_k = FK_CMP; 17212 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 17213 L_3A006B0F: 17214 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 17215 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 17216 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 17217 L_3A006B19: 17218 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 17219 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 17220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17222 _flag_k = FK_CMP; 17223 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 17224 L_3A006B20: 17225 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 17226 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 17227 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 17228 L_3A006B29: 17229 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 17230 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 17231 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 17232 L_3A006B33: 17233 edx = MEM32(ecx); /* 0x3A006B33: mov edx, dword ptr [ecx] */ 17234 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006B35: cmp byte ptr [edx + 0x14], bl */ 17235 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17237 _flag_k = FK_NARROW(FK_CMP, 24); 17238 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B81; /* 0x3A006B38: jne 0x3a006b81 */ 17239 L_3A006B3A: 17240 edx = MEM32(ecx + 0x8); /* 0x3A006B3A: mov edx, dword ptr [ecx + 8] */ 17241 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B3D: mov byte ptr [edx + 0x14], bl */ 17242 edx = MEM32(ecx + 0x8); /* 0x3A006B40: mov edx, dword ptr [ecx + 8] */ 17243 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006B43: mov byte ptr [ecx + 0x14], 0 */ 17244 esi = MEM32(edx); /* 0x3A006B47: mov esi, dword ptr [edx] */ 17245 MEM32(ecx + 0x8) = esi; /* 0x3A006B49: mov dword ptr [ecx + 8], esi */ 17246 esi = MEM32(edx); /* 0x3A006B4C: mov esi, dword ptr [edx] */ 17247 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006B4E: cmp esi, dword ptr [edi + 8] */ 17248 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17250 _flag_k = FK_CMP; 17251 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B56; /* 0x3A006B51: je 0x3a006b56 */ 17252 L_3A006B53: 17253 MEM32(esi + 0x4) = ecx; /* 0x3A006B53: mov dword ptr [esi + 4], ecx */ 17254 L_3A006B56: 17255 esi = MEM32(ecx + 0x4); /* 0x3A006B56: mov esi, dword ptr [ecx + 4] */ 17256 MEM32(edx + 0x4) = esi; /* 0x3A006B59: mov dword ptr [edx + 4], esi */ 17257 esi = MEM32(edi + 0x4); /* 0x3A006B5C: mov esi, dword ptr [edi + 4] */ 17258 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B5F: cmp ecx, dword ptr [esi + 4] */ 17259 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17261 _flag_k = FK_CMP; 17262 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B69; /* 0x3A006B62: jne 0x3a006b69 */ 17263 L_3A006B64: 17264 MEM32(esi + 0x4) = edx; /* 0x3A006B64: mov dword ptr [esi + 4], edx */ 17265 goto L_3A006B77; /* 0x3A006B67: jmp 0x3a006b77 */ 17266 L_3A006B69: 17267 esi = MEM32(ecx + 0x4); /* 0x3A006B69: mov esi, dword ptr [ecx + 4] */ 17268 /* cmp ecx, MEM32(esi) */ /* 0x3A006B6C: cmp ecx, dword ptr [esi] */ 17269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17271 _flag_k = FK_CMP; 17272 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B74; /* 0x3A006B6E: jne 0x3a006b74 */ 17273 L_3A006B70: 17274 MEM32(esi) = edx; /* 0x3A006B70: mov dword ptr [esi], edx */ 17275 goto L_3A006B77; /* 0x3A006B72: jmp 0x3a006b77 */ 17276 L_3A006B74: 17277 MEM32(esi + 0x8) = edx; /* 0x3A006B74: mov dword ptr [esi + 8], edx */ 17278 L_3A006B77: 17279 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 17280 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 17281 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 17282 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 17283 L_3A006B81: 17284 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 17285 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 17286 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 17287 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 17288 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 17289 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 17290 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 17291 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 17292 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 17293 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 17294 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 17295 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 17296 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 17297 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17299 _flag_k = FK_CMP; 17300 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 17301 L_3A006BA7: 17302 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 17303 L_3A006BAA: 17304 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 17305 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 17306 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 17307 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 17308 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17310 _flag_k = FK_CMP; 17311 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 17312 L_3A006BB8: 17313 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 17314 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 17315 L_3A006BBD: 17316 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 17317 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 17318 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17320 _flag_k = FK_CMP; 17321 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 17322 L_3A006BC5: 17323 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 17324 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 17325 L_3A006BCA: 17326 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 17327 L_3A006BCC: 17328 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 17329 L_3A006BCF: 17330 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 17331 L_3A006BD2: 17332 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 17333 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 17334 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 17335 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 17336 RECOMP_FLAGS_IN(); 17337 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 17338 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 17339 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17340 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17341 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 17342 _flag_k = FK_ADD; 17343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17344 eax = eax - 1; /* 0x3A006BE7: dec eax */ 17345 _flag_k = FK_DEC; 17346 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 17347 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 17348 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 17349 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 17350 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 17351 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 17352 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 17353 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 17354 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 17355 RECOMP_REGS_OUT(); 17356 } 17357 17358 void sub_3A006A57(void) { 17359 int _fpu_cmp = 0; 17360 uint32_t _cf = 0; 17361 int _df = 1; 17362 uint32_t _flag_k = FK_NONE; 17363 uint32_t _flag_a = 0, _flag_b = 0; 17364 uint32_t _itail_tgt = 0; 17365 RECOMP_REGS_LOCALS 17366 RECOMP_ENTER(0x3A006A57u); 17367 17368 goto L_3A006A57; 17369 L_3A006984: 17370 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x3A006984: cmp byte ptr [eax + 0x14], bl */ 17371 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17373 _flag_k = FK_NARROW(FK_CMP, 24); 17374 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A006987: jne 0x3a006bd2 */ 17375 L_3A00698D: 17376 edx = MEM32(eax + 0x4); /* 0x3A00698D: mov edx, dword ptr [eax + 4] */ 17377 ecx = MEM32(edx); /* 0x3A006990: mov ecx, dword ptr [edx] */ 17378 /* cmp eax, ecx */ /* 0x3A006992: cmp eax, ecx */ 17379 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 17380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17381 _flag_k = FK_CMP; 17382 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A04; /* 0x3A006994: jne 0x3a006a04 */ 17383 L_3A006996: 17384 ecx = MEM32(edx + 0x8); /* 0x3A006996: mov ecx, dword ptr [edx + 8] */ 17385 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006999: mov dl, byte ptr [ecx + 0x14] */ 17386 /* test LO8(edx), LO8(edx) */ /* 0x3A00699C: test dl, dl */ 17387 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 17388 _cf = 0; 17389 _flag_k = FK_NARROW(FK_TEST, 24); 17390 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0069EB; /* 0x3A00699E: jne 0x3a0069eb */ 17391 L_3A0069A0: 17392 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0069A0: mov byte ptr [ecx + 0x14], bl */ 17393 ecx = MEM32(eax + 0x4); /* 0x3A0069A3: mov ecx, dword ptr [eax + 4] */ 17394 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A0069A6: mov byte ptr [ecx + 0x14], 0 */ 17395 ecx = MEM32(eax + 0x4); /* 0x3A0069AA: mov ecx, dword ptr [eax + 4] */ 17396 edx = MEM32(ecx + 0x8); /* 0x3A0069AD: mov edx, dword ptr [ecx + 8] */ 17397 esi = MEM32(edx); /* 0x3A0069B0: mov esi, dword ptr [edx] */ 17398 MEM32(ecx + 0x8) = esi; /* 0x3A0069B2: mov dword ptr [ecx + 8], esi */ 17399 esi = MEM32(edx); /* 0x3A0069B5: mov esi, dword ptr [edx] */ 17400 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0069B7: cmp esi, dword ptr [edi + 8] */ 17401 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17403 _flag_k = FK_CMP; 17404 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0069BF; /* 0x3A0069BA: je 0x3a0069bf */ 17405 L_3A0069BC: 17406 MEM32(esi + 0x4) = ecx; /* 0x3A0069BC: mov dword ptr [esi + 4], ecx */ 17407 L_3A0069BF: 17408 esi = MEM32(ecx + 0x4); /* 0x3A0069BF: mov esi, dword ptr [ecx + 4] */ 17409 MEM32(edx + 0x4) = esi; /* 0x3A0069C2: mov dword ptr [edx + 4], esi */ 17410 esi = MEM32(edi + 0x4); /* 0x3A0069C5: mov esi, dword ptr [edi + 4] */ 17411 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0069C8: cmp ecx, dword ptr [esi + 4] */ 17412 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17414 _flag_k = FK_CMP; 17415 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069D2; /* 0x3A0069CB: jne 0x3a0069d2 */ 17416 L_3A0069CD: 17417 MEM32(esi + 0x4) = edx; /* 0x3A0069CD: mov dword ptr [esi + 4], edx */ 17418 goto L_3A0069E0; /* 0x3A0069D0: jmp 0x3a0069e0 */ 17419 L_3A0069D2: 17420 esi = MEM32(ecx + 0x4); /* 0x3A0069D2: mov esi, dword ptr [ecx + 4] */ 17421 /* cmp ecx, MEM32(esi) */ /* 0x3A0069D5: cmp ecx, dword ptr [esi] */ 17422 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17424 _flag_k = FK_CMP; 17425 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069DD; /* 0x3A0069D7: jne 0x3a0069dd */ 17426 L_3A0069D9: 17427 MEM32(esi) = edx; /* 0x3A0069D9: mov dword ptr [esi], edx */ 17428 goto L_3A0069E0; /* 0x3A0069DB: jmp 0x3a0069e0 */ 17429 L_3A0069DD: 17430 MEM32(esi + 0x8) = edx; /* 0x3A0069DD: mov dword ptr [esi + 8], edx */ 17431 L_3A0069E0: 17432 MEM32(edx) = ecx; /* 0x3A0069E0: mov dword ptr [edx], ecx */ 17433 MEM32(ecx + 0x4) = edx; /* 0x3A0069E2: mov dword ptr [ecx + 4], edx */ 17434 edx = MEM32(eax + 0x4); /* 0x3A0069E5: mov edx, dword ptr [eax + 4] */ 17435 ecx = MEM32(edx + 0x8); /* 0x3A0069E8: mov ecx, dword ptr [edx + 8] */ 17436 L_3A0069EB: 17437 edx = MEM32(ecx); /* 0x3A0069EB: mov edx, dword ptr [ecx] */ 17438 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069ED: cmp byte ptr [edx + 0x14], bl */ 17439 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17441 _flag_k = FK_NARROW(FK_CMP, 24); 17442 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069F0: jne 0x3a006a86 */ 17443 L_3A0069F6: 17444 edx = MEM32(ecx + 0x8); /* 0x3A0069F6: mov edx, dword ptr [ecx + 8] */ 17445 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069F9: cmp byte ptr [edx + 0x14], bl */ 17446 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17448 _flag_k = FK_NARROW(FK_CMP, 24); 17449 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069FC: jne 0x3a006a86 */ 17450 L_3A006A02: 17451 goto L_3A006A6E; /* 0x3A006A02: jmp 0x3a006a6e */ 17452 L_3A006A04: 17453 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006A04: mov dl, byte ptr [ecx + 0x14] */ 17454 /* test LO8(edx), LO8(edx) */ /* 0x3A006A07: test dl, dl */ 17455 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 17456 _cf = 0; 17457 _flag_k = FK_NARROW(FK_TEST, 24); 17458 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006A57; /* 0x3A006A09: jne 0x3a006a57 */ 17459 L_3A006A0B: 17460 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A0B: mov byte ptr [ecx + 0x14], bl */ 17461 ecx = MEM32(eax + 0x4); /* 0x3A006A0E: mov ecx, dword ptr [eax + 4] */ 17462 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A11: mov byte ptr [ecx + 0x14], 0 */ 17463 ecx = MEM32(eax + 0x4); /* 0x3A006A15: mov ecx, dword ptr [eax + 4] */ 17464 edx = MEM32(ecx); /* 0x3A006A18: mov edx, dword ptr [ecx] */ 17465 esi = MEM32(edx + 0x8); /* 0x3A006A1A: mov esi, dword ptr [edx + 8] */ 17466 MEM32(ecx) = esi; /* 0x3A006A1D: mov dword ptr [ecx], esi */ 17467 esi = MEM32(edx + 0x8); /* 0x3A006A1F: mov esi, dword ptr [edx + 8] */ 17468 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006A22: cmp esi, dword ptr [edi + 8] */ 17469 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17471 _flag_k = FK_CMP; 17472 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006A2A; /* 0x3A006A25: je 0x3a006a2a */ 17473 L_3A006A27: 17474 MEM32(esi + 0x4) = ecx; /* 0x3A006A27: mov dword ptr [esi + 4], ecx */ 17475 L_3A006A2A: 17476 esi = MEM32(ecx + 0x4); /* 0x3A006A2A: mov esi, dword ptr [ecx + 4] */ 17477 MEM32(edx + 0x4) = esi; /* 0x3A006A2D: mov dword ptr [edx + 4], esi */ 17478 esi = MEM32(edi + 0x4); /* 0x3A006A30: mov esi, dword ptr [edi + 4] */ 17479 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006A33: cmp ecx, dword ptr [esi + 4] */ 17480 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17482 _flag_k = FK_CMP; 17483 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A3D; /* 0x3A006A36: jne 0x3a006a3d */ 17484 L_3A006A38: 17485 MEM32(esi + 0x4) = edx; /* 0x3A006A38: mov dword ptr [esi + 4], edx */ 17486 goto L_3A006A4C; /* 0x3A006A3B: jmp 0x3a006a4c */ 17487 L_3A006A3D: 17488 esi = MEM32(ecx + 0x4); /* 0x3A006A3D: mov esi, dword ptr [ecx + 4] */ 17489 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006A40: cmp ecx, dword ptr [esi + 8] */ 17490 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17492 _flag_k = FK_CMP; 17493 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A4A; /* 0x3A006A43: jne 0x3a006a4a */ 17494 L_3A006A45: 17495 MEM32(esi + 0x8) = edx; /* 0x3A006A45: mov dword ptr [esi + 8], edx */ 17496 goto L_3A006A4C; /* 0x3A006A48: jmp 0x3a006a4c */ 17497 L_3A006A4A: 17498 MEM32(esi) = edx; /* 0x3A006A4A: mov dword ptr [esi], edx */ 17499 L_3A006A4C: 17500 MEM32(edx + 0x8) = ecx; /* 0x3A006A4C: mov dword ptr [edx + 8], ecx */ 17501 MEM32(ecx + 0x4) = edx; /* 0x3A006A4F: mov dword ptr [ecx + 4], edx */ 17502 edx = MEM32(eax + 0x4); /* 0x3A006A52: mov edx, dword ptr [eax + 4] */ 17503 ecx = MEM32(edx); /* 0x3A006A55: mov ecx, dword ptr [edx] */ 17504 L_3A006A57: 17505 edx = MEM32(ecx + 0x8); /* 0x3A006A57: mov edx, dword ptr [ecx + 8] */ 17506 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A5A: cmp byte ptr [edx + 0x14], bl */ 17507 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17509 _flag_k = FK_NARROW(FK_CMP, 24); 17510 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A5D: jne 0x3a006b33 */ 17511 L_3A006A63: 17512 edx = MEM32(ecx); /* 0x3A006A63: mov edx, dword ptr [ecx] */ 17513 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A65: cmp byte ptr [edx + 0x14], bl */ 17514 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17516 _flag_k = FK_NARROW(FK_CMP, 24); 17517 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A68: jne 0x3a006b33 */ 17518 L_3A006A6E: 17519 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A6E: mov byte ptr [ecx + 0x14], 0 */ 17520 ecx = MEM32(edi + 0x4); /* 0x3A006A72: mov ecx, dword ptr [edi + 4] */ 17521 eax = MEM32(eax + 0x4); /* 0x3A006A75: mov eax, dword ptr [eax + 4] */ 17522 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006A78: cmp eax, dword ptr [ecx + 4] */ 17523 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 17524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17525 _flag_k = FK_CMP; 17526 RECOMP_BACKEDGE(); 17527 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006984; /* 0x3A006A7B: jne 0x3a006984 */ 17528 L_3A006A81: 17529 goto L_3A006BD2; /* 0x3A006A81: jmp 0x3a006bd2 */ 17530 L_3A006A86: 17531 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 17532 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 17533 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17535 _flag_k = FK_NARROW(FK_CMP, 24); 17536 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 17537 L_3A006A8E: 17538 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 17539 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 17540 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 17541 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 17542 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 17543 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 17544 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 17545 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 17546 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17548 _flag_k = FK_CMP; 17549 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 17550 L_3A006AA6: 17551 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 17552 L_3A006AA9: 17553 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 17554 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 17555 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 17556 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 17557 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17559 _flag_k = FK_CMP; 17560 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 17561 L_3A006AB7: 17562 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 17563 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 17564 L_3A006ABC: 17565 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 17566 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 17567 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17569 _flag_k = FK_CMP; 17570 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 17571 L_3A006AC4: 17572 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 17573 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 17574 L_3A006AC9: 17575 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 17576 L_3A006ACB: 17577 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 17578 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 17579 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 17580 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 17581 L_3A006AD7: 17582 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 17583 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 17584 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 17585 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 17586 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 17587 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 17588 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 17589 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 17590 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 17591 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 17592 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 17593 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 17594 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 17595 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17597 _flag_k = FK_CMP; 17598 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 17599 L_3A006AFE: 17600 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 17601 L_3A006B01: 17602 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 17603 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 17604 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 17605 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 17606 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17608 _flag_k = FK_CMP; 17609 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 17610 L_3A006B0F: 17611 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 17612 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 17613 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 17614 L_3A006B19: 17615 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 17616 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 17617 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17619 _flag_k = FK_CMP; 17620 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 17621 L_3A006B20: 17622 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 17623 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 17624 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 17625 L_3A006B29: 17626 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 17627 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 17628 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 17629 L_3A006B33: 17630 edx = MEM32(ecx); /* 0x3A006B33: mov edx, dword ptr [ecx] */ 17631 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006B35: cmp byte ptr [edx + 0x14], bl */ 17632 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17634 _flag_k = FK_NARROW(FK_CMP, 24); 17635 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B81; /* 0x3A006B38: jne 0x3a006b81 */ 17636 L_3A006B3A: 17637 edx = MEM32(ecx + 0x8); /* 0x3A006B3A: mov edx, dword ptr [ecx + 8] */ 17638 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B3D: mov byte ptr [edx + 0x14], bl */ 17639 edx = MEM32(ecx + 0x8); /* 0x3A006B40: mov edx, dword ptr [ecx + 8] */ 17640 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006B43: mov byte ptr [ecx + 0x14], 0 */ 17641 esi = MEM32(edx); /* 0x3A006B47: mov esi, dword ptr [edx] */ 17642 MEM32(ecx + 0x8) = esi; /* 0x3A006B49: mov dword ptr [ecx + 8], esi */ 17643 esi = MEM32(edx); /* 0x3A006B4C: mov esi, dword ptr [edx] */ 17644 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006B4E: cmp esi, dword ptr [edi + 8] */ 17645 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17647 _flag_k = FK_CMP; 17648 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B56; /* 0x3A006B51: je 0x3a006b56 */ 17649 L_3A006B53: 17650 MEM32(esi + 0x4) = ecx; /* 0x3A006B53: mov dword ptr [esi + 4], ecx */ 17651 L_3A006B56: 17652 esi = MEM32(ecx + 0x4); /* 0x3A006B56: mov esi, dword ptr [ecx + 4] */ 17653 MEM32(edx + 0x4) = esi; /* 0x3A006B59: mov dword ptr [edx + 4], esi */ 17654 esi = MEM32(edi + 0x4); /* 0x3A006B5C: mov esi, dword ptr [edi + 4] */ 17655 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B5F: cmp ecx, dword ptr [esi + 4] */ 17656 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17658 _flag_k = FK_CMP; 17659 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B69; /* 0x3A006B62: jne 0x3a006b69 */ 17660 L_3A006B64: 17661 MEM32(esi + 0x4) = edx; /* 0x3A006B64: mov dword ptr [esi + 4], edx */ 17662 goto L_3A006B77; /* 0x3A006B67: jmp 0x3a006b77 */ 17663 L_3A006B69: 17664 esi = MEM32(ecx + 0x4); /* 0x3A006B69: mov esi, dword ptr [ecx + 4] */ 17665 /* cmp ecx, MEM32(esi) */ /* 0x3A006B6C: cmp ecx, dword ptr [esi] */ 17666 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17668 _flag_k = FK_CMP; 17669 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B74; /* 0x3A006B6E: jne 0x3a006b74 */ 17670 L_3A006B70: 17671 MEM32(esi) = edx; /* 0x3A006B70: mov dword ptr [esi], edx */ 17672 goto L_3A006B77; /* 0x3A006B72: jmp 0x3a006b77 */ 17673 L_3A006B74: 17674 MEM32(esi + 0x8) = edx; /* 0x3A006B74: mov dword ptr [esi + 8], edx */ 17675 L_3A006B77: 17676 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 17677 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 17678 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 17679 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 17680 L_3A006B81: 17681 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 17682 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 17683 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 17684 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 17685 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 17686 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 17687 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 17688 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 17689 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 17690 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 17691 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 17692 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 17693 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 17694 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17696 _flag_k = FK_CMP; 17697 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 17698 L_3A006BA7: 17699 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 17700 L_3A006BAA: 17701 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 17702 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 17703 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 17704 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 17705 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17707 _flag_k = FK_CMP; 17708 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 17709 L_3A006BB8: 17710 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 17711 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 17712 L_3A006BBD: 17713 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 17714 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 17715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17717 _flag_k = FK_CMP; 17718 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 17719 L_3A006BC5: 17720 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 17721 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 17722 L_3A006BCA: 17723 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 17724 L_3A006BCC: 17725 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 17726 L_3A006BCF: 17727 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 17728 L_3A006BD2: 17729 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 17730 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 17731 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 17732 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 17733 RECOMP_FLAGS_IN(); 17734 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 17735 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 17736 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17738 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 17739 _flag_k = FK_ADD; 17740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17741 eax = eax - 1; /* 0x3A006BE7: dec eax */ 17742 _flag_k = FK_DEC; 17743 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 17744 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 17745 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 17746 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 17747 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 17748 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 17749 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 17750 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 17751 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 17752 RECOMP_REGS_OUT(); 17753 } 17754 17755 void sub_3A006A6E(void) { 17756 int _fpu_cmp = 0; 17757 uint32_t _cf = 0; 17758 int _df = 1; 17759 uint32_t _flag_k = FK_NONE; 17760 uint32_t _flag_a = 0, _flag_b = 0; 17761 uint32_t _itail_tgt = 0; 17762 RECOMP_REGS_LOCALS 17763 RECOMP_ENTER(0x3A006A6Eu); 17764 17765 goto L_3A006A6E; 17766 L_3A006984: 17767 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x3A006984: cmp byte ptr [eax + 0x14], bl */ 17768 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17770 _flag_k = FK_NARROW(FK_CMP, 24); 17771 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BD2; /* 0x3A006987: jne 0x3a006bd2 */ 17772 L_3A00698D: 17773 edx = MEM32(eax + 0x4); /* 0x3A00698D: mov edx, dword ptr [eax + 4] */ 17774 ecx = MEM32(edx); /* 0x3A006990: mov ecx, dword ptr [edx] */ 17775 /* cmp eax, ecx */ /* 0x3A006992: cmp eax, ecx */ 17776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 17777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17778 _flag_k = FK_CMP; 17779 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A04; /* 0x3A006994: jne 0x3a006a04 */ 17780 L_3A006996: 17781 ecx = MEM32(edx + 0x8); /* 0x3A006996: mov ecx, dword ptr [edx + 8] */ 17782 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006999: mov dl, byte ptr [ecx + 0x14] */ 17783 /* test LO8(edx), LO8(edx) */ /* 0x3A00699C: test dl, dl */ 17784 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 17785 _cf = 0; 17786 _flag_k = FK_NARROW(FK_TEST, 24); 17787 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A0069EB; /* 0x3A00699E: jne 0x3a0069eb */ 17788 L_3A0069A0: 17789 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A0069A0: mov byte ptr [ecx + 0x14], bl */ 17790 ecx = MEM32(eax + 0x4); /* 0x3A0069A3: mov ecx, dword ptr [eax + 4] */ 17791 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A0069A6: mov byte ptr [ecx + 0x14], 0 */ 17792 ecx = MEM32(eax + 0x4); /* 0x3A0069AA: mov ecx, dword ptr [eax + 4] */ 17793 edx = MEM32(ecx + 0x8); /* 0x3A0069AD: mov edx, dword ptr [ecx + 8] */ 17794 esi = MEM32(edx); /* 0x3A0069B0: mov esi, dword ptr [edx] */ 17795 MEM32(ecx + 0x8) = esi; /* 0x3A0069B2: mov dword ptr [ecx + 8], esi */ 17796 esi = MEM32(edx); /* 0x3A0069B5: mov esi, dword ptr [edx] */ 17797 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A0069B7: cmp esi, dword ptr [edi + 8] */ 17798 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17800 _flag_k = FK_CMP; 17801 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A0069BF; /* 0x3A0069BA: je 0x3a0069bf */ 17802 L_3A0069BC: 17803 MEM32(esi + 0x4) = ecx; /* 0x3A0069BC: mov dword ptr [esi + 4], ecx */ 17804 L_3A0069BF: 17805 esi = MEM32(ecx + 0x4); /* 0x3A0069BF: mov esi, dword ptr [ecx + 4] */ 17806 MEM32(edx + 0x4) = esi; /* 0x3A0069C2: mov dword ptr [edx + 4], esi */ 17807 esi = MEM32(edi + 0x4); /* 0x3A0069C5: mov esi, dword ptr [edi + 4] */ 17808 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A0069C8: cmp ecx, dword ptr [esi + 4] */ 17809 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17810 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17811 _flag_k = FK_CMP; 17812 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069D2; /* 0x3A0069CB: jne 0x3a0069d2 */ 17813 L_3A0069CD: 17814 MEM32(esi + 0x4) = edx; /* 0x3A0069CD: mov dword ptr [esi + 4], edx */ 17815 goto L_3A0069E0; /* 0x3A0069D0: jmp 0x3a0069e0 */ 17816 L_3A0069D2: 17817 esi = MEM32(ecx + 0x4); /* 0x3A0069D2: mov esi, dword ptr [ecx + 4] */ 17818 /* cmp ecx, MEM32(esi) */ /* 0x3A0069D5: cmp ecx, dword ptr [esi] */ 17819 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17821 _flag_k = FK_CMP; 17822 if (CMP_NE(_flag_a, _flag_b)) goto L_3A0069DD; /* 0x3A0069D7: jne 0x3a0069dd */ 17823 L_3A0069D9: 17824 MEM32(esi) = edx; /* 0x3A0069D9: mov dword ptr [esi], edx */ 17825 goto L_3A0069E0; /* 0x3A0069DB: jmp 0x3a0069e0 */ 17826 L_3A0069DD: 17827 MEM32(esi + 0x8) = edx; /* 0x3A0069DD: mov dword ptr [esi + 8], edx */ 17828 L_3A0069E0: 17829 MEM32(edx) = ecx; /* 0x3A0069E0: mov dword ptr [edx], ecx */ 17830 MEM32(ecx + 0x4) = edx; /* 0x3A0069E2: mov dword ptr [ecx + 4], edx */ 17831 edx = MEM32(eax + 0x4); /* 0x3A0069E5: mov edx, dword ptr [eax + 4] */ 17832 ecx = MEM32(edx + 0x8); /* 0x3A0069E8: mov ecx, dword ptr [edx + 8] */ 17833 L_3A0069EB: 17834 edx = MEM32(ecx); /* 0x3A0069EB: mov edx, dword ptr [ecx] */ 17835 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069ED: cmp byte ptr [edx + 0x14], bl */ 17836 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17838 _flag_k = FK_NARROW(FK_CMP, 24); 17839 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069F0: jne 0x3a006a86 */ 17840 L_3A0069F6: 17841 edx = MEM32(ecx + 0x8); /* 0x3A0069F6: mov edx, dword ptr [ecx + 8] */ 17842 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A0069F9: cmp byte ptr [edx + 0x14], bl */ 17843 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17845 _flag_k = FK_NARROW(FK_CMP, 24); 17846 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A86; /* 0x3A0069FC: jne 0x3a006a86 */ 17847 L_3A006A02: 17848 goto L_3A006A6E; /* 0x3A006A02: jmp 0x3a006a6e */ 17849 L_3A006A04: 17850 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3A006A04: mov dl, byte ptr [ecx + 0x14] */ 17851 /* test LO8(edx), LO8(edx) */ /* 0x3A006A07: test dl, dl */ 17852 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 17853 _cf = 0; 17854 _flag_k = FK_NARROW(FK_TEST, 24); 17855 if (TEST_NZ(_flag_a, _flag_b)) goto L_3A006A57; /* 0x3A006A09: jne 0x3a006a57 */ 17856 L_3A006A0B: 17857 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A0B: mov byte ptr [ecx + 0x14], bl */ 17858 ecx = MEM32(eax + 0x4); /* 0x3A006A0E: mov ecx, dword ptr [eax + 4] */ 17859 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A11: mov byte ptr [ecx + 0x14], 0 */ 17860 ecx = MEM32(eax + 0x4); /* 0x3A006A15: mov ecx, dword ptr [eax + 4] */ 17861 edx = MEM32(ecx); /* 0x3A006A18: mov edx, dword ptr [ecx] */ 17862 esi = MEM32(edx + 0x8); /* 0x3A006A1A: mov esi, dword ptr [edx + 8] */ 17863 MEM32(ecx) = esi; /* 0x3A006A1D: mov dword ptr [ecx], esi */ 17864 esi = MEM32(edx + 0x8); /* 0x3A006A1F: mov esi, dword ptr [edx + 8] */ 17865 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006A22: cmp esi, dword ptr [edi + 8] */ 17866 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17868 _flag_k = FK_CMP; 17869 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006A2A; /* 0x3A006A25: je 0x3a006a2a */ 17870 L_3A006A27: 17871 MEM32(esi + 0x4) = ecx; /* 0x3A006A27: mov dword ptr [esi + 4], ecx */ 17872 L_3A006A2A: 17873 esi = MEM32(ecx + 0x4); /* 0x3A006A2A: mov esi, dword ptr [ecx + 4] */ 17874 MEM32(edx + 0x4) = esi; /* 0x3A006A2D: mov dword ptr [edx + 4], esi */ 17875 esi = MEM32(edi + 0x4); /* 0x3A006A30: mov esi, dword ptr [edi + 4] */ 17876 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006A33: cmp ecx, dword ptr [esi + 4] */ 17877 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17879 _flag_k = FK_CMP; 17880 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A3D; /* 0x3A006A36: jne 0x3a006a3d */ 17881 L_3A006A38: 17882 MEM32(esi + 0x4) = edx; /* 0x3A006A38: mov dword ptr [esi + 4], edx */ 17883 goto L_3A006A4C; /* 0x3A006A3B: jmp 0x3a006a4c */ 17884 L_3A006A3D: 17885 esi = MEM32(ecx + 0x4); /* 0x3A006A3D: mov esi, dword ptr [ecx + 4] */ 17886 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006A40: cmp ecx, dword ptr [esi + 8] */ 17887 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17889 _flag_k = FK_CMP; 17890 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006A4A; /* 0x3A006A43: jne 0x3a006a4a */ 17891 L_3A006A45: 17892 MEM32(esi + 0x8) = edx; /* 0x3A006A45: mov dword ptr [esi + 8], edx */ 17893 goto L_3A006A4C; /* 0x3A006A48: jmp 0x3a006a4c */ 17894 L_3A006A4A: 17895 MEM32(esi) = edx; /* 0x3A006A4A: mov dword ptr [esi], edx */ 17896 L_3A006A4C: 17897 MEM32(edx + 0x8) = ecx; /* 0x3A006A4C: mov dword ptr [edx + 8], ecx */ 17898 MEM32(ecx + 0x4) = edx; /* 0x3A006A4F: mov dword ptr [ecx + 4], edx */ 17899 edx = MEM32(eax + 0x4); /* 0x3A006A52: mov edx, dword ptr [eax + 4] */ 17900 ecx = MEM32(edx); /* 0x3A006A55: mov ecx, dword ptr [edx] */ 17901 L_3A006A57: 17902 edx = MEM32(ecx + 0x8); /* 0x3A006A57: mov edx, dword ptr [ecx + 8] */ 17903 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A5A: cmp byte ptr [edx + 0x14], bl */ 17904 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17906 _flag_k = FK_NARROW(FK_CMP, 24); 17907 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A5D: jne 0x3a006b33 */ 17908 L_3A006A63: 17909 edx = MEM32(ecx); /* 0x3A006A63: mov edx, dword ptr [ecx] */ 17910 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A65: cmp byte ptr [edx + 0x14], bl */ 17911 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17913 _flag_k = FK_NARROW(FK_CMP, 24); 17914 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B33; /* 0x3A006A68: jne 0x3a006b33 */ 17915 L_3A006A6E: 17916 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A6E: mov byte ptr [ecx + 0x14], 0 */ 17917 ecx = MEM32(edi + 0x4); /* 0x3A006A72: mov ecx, dword ptr [edi + 4] */ 17918 eax = MEM32(eax + 0x4); /* 0x3A006A75: mov eax, dword ptr [eax + 4] */ 17919 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3A006A78: cmp eax, dword ptr [ecx + 4] */ 17920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 17921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17922 _flag_k = FK_CMP; 17923 RECOMP_BACKEDGE(); 17924 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006984; /* 0x3A006A7B: jne 0x3a006984 */ 17925 L_3A006A81: 17926 goto L_3A006BD2; /* 0x3A006A81: jmp 0x3a006bd2 */ 17927 L_3A006A86: 17928 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 17929 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 17930 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17932 _flag_k = FK_NARROW(FK_CMP, 24); 17933 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 17934 L_3A006A8E: 17935 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 17936 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 17937 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 17938 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 17939 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 17940 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 17941 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 17942 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 17943 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17945 _flag_k = FK_CMP; 17946 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 17947 L_3A006AA6: 17948 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 17949 L_3A006AA9: 17950 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 17951 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 17952 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 17953 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 17954 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17956 _flag_k = FK_CMP; 17957 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 17958 L_3A006AB7: 17959 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 17960 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 17961 L_3A006ABC: 17962 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 17963 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 17964 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17966 _flag_k = FK_CMP; 17967 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 17968 L_3A006AC4: 17969 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 17970 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 17971 L_3A006AC9: 17972 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 17973 L_3A006ACB: 17974 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 17975 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 17976 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 17977 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 17978 L_3A006AD7: 17979 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 17980 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 17981 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 17982 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 17983 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 17984 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 17985 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 17986 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 17987 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 17988 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 17989 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 17990 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 17991 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 17992 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17994 _flag_k = FK_CMP; 17995 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 17996 L_3A006AFE: 17997 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 17998 L_3A006B01: 17999 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 18000 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 18001 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 18002 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 18003 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18005 _flag_k = FK_CMP; 18006 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 18007 L_3A006B0F: 18008 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 18009 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 18010 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 18011 L_3A006B19: 18012 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 18013 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 18014 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 18015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18016 _flag_k = FK_CMP; 18017 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 18018 L_3A006B20: 18019 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 18020 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 18021 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 18022 L_3A006B29: 18023 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 18024 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 18025 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 18026 L_3A006B33: 18027 edx = MEM32(ecx); /* 0x3A006B33: mov edx, dword ptr [ecx] */ 18028 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006B35: cmp byte ptr [edx + 0x14], bl */ 18029 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18031 _flag_k = FK_NARROW(FK_CMP, 24); 18032 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B81; /* 0x3A006B38: jne 0x3a006b81 */ 18033 L_3A006B3A: 18034 edx = MEM32(ecx + 0x8); /* 0x3A006B3A: mov edx, dword ptr [ecx + 8] */ 18035 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B3D: mov byte ptr [edx + 0x14], bl */ 18036 edx = MEM32(ecx + 0x8); /* 0x3A006B40: mov edx, dword ptr [ecx + 8] */ 18037 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006B43: mov byte ptr [ecx + 0x14], 0 */ 18038 esi = MEM32(edx); /* 0x3A006B47: mov esi, dword ptr [edx] */ 18039 MEM32(ecx + 0x8) = esi; /* 0x3A006B49: mov dword ptr [ecx + 8], esi */ 18040 esi = MEM32(edx); /* 0x3A006B4C: mov esi, dword ptr [edx] */ 18041 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006B4E: cmp esi, dword ptr [edi + 8] */ 18042 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18044 _flag_k = FK_CMP; 18045 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B56; /* 0x3A006B51: je 0x3a006b56 */ 18046 L_3A006B53: 18047 MEM32(esi + 0x4) = ecx; /* 0x3A006B53: mov dword ptr [esi + 4], ecx */ 18048 L_3A006B56: 18049 esi = MEM32(ecx + 0x4); /* 0x3A006B56: mov esi, dword ptr [ecx + 4] */ 18050 MEM32(edx + 0x4) = esi; /* 0x3A006B59: mov dword ptr [edx + 4], esi */ 18051 esi = MEM32(edi + 0x4); /* 0x3A006B5C: mov esi, dword ptr [edi + 4] */ 18052 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B5F: cmp ecx, dword ptr [esi + 4] */ 18053 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18055 _flag_k = FK_CMP; 18056 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B69; /* 0x3A006B62: jne 0x3a006b69 */ 18057 L_3A006B64: 18058 MEM32(esi + 0x4) = edx; /* 0x3A006B64: mov dword ptr [esi + 4], edx */ 18059 goto L_3A006B77; /* 0x3A006B67: jmp 0x3a006b77 */ 18060 L_3A006B69: 18061 esi = MEM32(ecx + 0x4); /* 0x3A006B69: mov esi, dword ptr [ecx + 4] */ 18062 /* cmp ecx, MEM32(esi) */ /* 0x3A006B6C: cmp ecx, dword ptr [esi] */ 18063 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 18064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18065 _flag_k = FK_CMP; 18066 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B74; /* 0x3A006B6E: jne 0x3a006b74 */ 18067 L_3A006B70: 18068 MEM32(esi) = edx; /* 0x3A006B70: mov dword ptr [esi], edx */ 18069 goto L_3A006B77; /* 0x3A006B72: jmp 0x3a006b77 */ 18070 L_3A006B74: 18071 MEM32(esi + 0x8) = edx; /* 0x3A006B74: mov dword ptr [esi + 8], edx */ 18072 L_3A006B77: 18073 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 18074 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 18075 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 18076 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 18077 L_3A006B81: 18078 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 18079 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 18080 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 18081 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 18082 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 18083 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 18084 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 18085 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 18086 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 18087 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 18088 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 18089 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 18090 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 18091 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18093 _flag_k = FK_CMP; 18094 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 18095 L_3A006BA7: 18096 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 18097 L_3A006BAA: 18098 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 18099 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 18100 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 18101 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 18102 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18104 _flag_k = FK_CMP; 18105 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 18106 L_3A006BB8: 18107 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 18108 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 18109 L_3A006BBD: 18110 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 18111 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 18112 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 18113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18114 _flag_k = FK_CMP; 18115 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 18116 L_3A006BC5: 18117 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 18118 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 18119 L_3A006BCA: 18120 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 18121 L_3A006BCC: 18122 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 18123 L_3A006BCF: 18124 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 18125 L_3A006BD2: 18126 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 18127 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 18128 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 18129 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 18130 RECOMP_FLAGS_IN(); 18131 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 18132 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 18133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18135 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 18136 _flag_k = FK_ADD; 18137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18138 eax = eax - 1; /* 0x3A006BE7: dec eax */ 18139 _flag_k = FK_DEC; 18140 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 18141 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 18142 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 18143 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 18144 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 18145 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 18146 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 18147 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 18148 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 18149 RECOMP_REGS_OUT(); 18150 } 18151 18152 void sub_3A006A86(void) { 18153 int _fpu_cmp = 0; 18154 uint32_t _cf = 0; 18155 int _df = 1; 18156 uint32_t _flag_k = FK_NONE; 18157 uint32_t _flag_a = 0, _flag_b = 0; 18158 uint32_t _itail_tgt = 0; 18159 RECOMP_REGS_LOCALS 18160 RECOMP_ENTER(0x3A006A86u); 18161 18162 L_3A006A86: 18163 edx = MEM32(ecx + 0x8); /* 0x3A006A86: mov edx, dword ptr [ecx + 8] */ 18164 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3A006A89: cmp byte ptr [edx + 0x14], bl */ 18165 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18167 _flag_k = FK_NARROW(FK_CMP, 24); 18168 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AD7; /* 0x3A006A8C: jne 0x3a006ad7 */ 18169 L_3A006A8E: 18170 edx = MEM32(ecx); /* 0x3A006A8E: mov edx, dword ptr [ecx] */ 18171 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006A90: mov byte ptr [edx + 0x14], bl */ 18172 edx = MEM32(ecx); /* 0x3A006A93: mov edx, dword ptr [ecx] */ 18173 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3A006A95: mov byte ptr [ecx + 0x14], 0 */ 18174 esi = MEM32(edx + 0x8); /* 0x3A006A99: mov esi, dword ptr [edx + 8] */ 18175 MEM32(ecx) = esi; /* 0x3A006A9C: mov dword ptr [ecx], esi */ 18176 esi = MEM32(edx + 0x8); /* 0x3A006A9E: mov esi, dword ptr [edx + 8] */ 18177 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AA1: cmp esi, dword ptr [edi + 8] */ 18178 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18180 _flag_k = FK_CMP; 18181 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006AA9; /* 0x3A006AA4: je 0x3a006aa9 */ 18182 L_3A006AA6: 18183 MEM32(esi + 0x4) = ecx; /* 0x3A006AA6: mov dword ptr [esi + 4], ecx */ 18184 L_3A006AA9: 18185 esi = MEM32(ecx + 0x4); /* 0x3A006AA9: mov esi, dword ptr [ecx + 4] */ 18186 MEM32(edx + 0x4) = esi; /* 0x3A006AAC: mov dword ptr [edx + 4], esi */ 18187 esi = MEM32(edi + 0x4); /* 0x3A006AAF: mov esi, dword ptr [edi + 4] */ 18188 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006AB2: cmp ecx, dword ptr [esi + 4] */ 18189 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18191 _flag_k = FK_CMP; 18192 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006ABC; /* 0x3A006AB5: jne 0x3a006abc */ 18193 L_3A006AB7: 18194 MEM32(esi + 0x4) = edx; /* 0x3A006AB7: mov dword ptr [esi + 4], edx */ 18195 goto L_3A006ACB; /* 0x3A006ABA: jmp 0x3a006acb */ 18196 L_3A006ABC: 18197 esi = MEM32(ecx + 0x4); /* 0x3A006ABC: mov esi, dword ptr [ecx + 4] */ 18198 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006ABF: cmp ecx, dword ptr [esi + 8] */ 18199 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 18200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18201 _flag_k = FK_CMP; 18202 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006AC9; /* 0x3A006AC2: jne 0x3a006ac9 */ 18203 L_3A006AC4: 18204 MEM32(esi + 0x8) = edx; /* 0x3A006AC4: mov dword ptr [esi + 8], edx */ 18205 goto L_3A006ACB; /* 0x3A006AC7: jmp 0x3a006acb */ 18206 L_3A006AC9: 18207 MEM32(esi) = edx; /* 0x3A006AC9: mov dword ptr [esi], edx */ 18208 L_3A006ACB: 18209 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 18210 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 18211 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 18212 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 18213 L_3A006AD7: 18214 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 18215 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 18216 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 18217 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 18218 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 18219 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 18220 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 18221 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 18222 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 18223 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 18224 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 18225 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 18226 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 18227 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18229 _flag_k = FK_CMP; 18230 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 18231 L_3A006AFE: 18232 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 18233 L_3A006B01: 18234 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 18235 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 18236 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 18237 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 18238 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18240 _flag_k = FK_CMP; 18241 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 18242 L_3A006B0F: 18243 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 18244 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 18245 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 18246 L_3A006B19: 18247 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 18248 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 18249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 18250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18251 _flag_k = FK_CMP; 18252 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 18253 L_3A006B20: 18254 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 18255 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 18256 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 18257 L_3A006B29: 18258 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 18259 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 18260 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 18261 L_3A006BCF: 18262 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 18263 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 18264 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 18265 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 18266 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 18267 RECOMP_FLAGS_IN(); 18268 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 18269 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 18270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18272 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 18273 _flag_k = FK_ADD; 18274 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18275 eax = eax - 1; /* 0x3A006BE7: dec eax */ 18276 _flag_k = FK_DEC; 18277 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 18278 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 18279 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 18280 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 18281 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 18282 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 18283 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 18284 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 18285 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 18286 RECOMP_REGS_OUT(); 18287 } 18288 18289 void sub_3A006ACB(void) { 18290 int _fpu_cmp = 0; 18291 uint32_t _cf = 0; 18292 int _df = 1; 18293 uint32_t _flag_k = FK_NONE; 18294 uint32_t _flag_a = 0, _flag_b = 0; 18295 uint32_t _itail_tgt = 0; 18296 RECOMP_REGS_LOCALS 18297 RECOMP_ENTER(0x3A006ACBu); 18298 18299 L_3A006ACB: 18300 MEM32(edx + 0x8) = ecx; /* 0x3A006ACB: mov dword ptr [edx + 8], ecx */ 18301 MEM32(ecx + 0x4) = edx; /* 0x3A006ACE: mov dword ptr [ecx + 4], edx */ 18302 ecx = MEM32(eax + 0x4); /* 0x3A006AD1: mov ecx, dword ptr [eax + 4] */ 18303 ecx = MEM32(ecx + 0x8); /* 0x3A006AD4: mov ecx, dword ptr [ecx + 8] */ 18304 edx = MEM32(eax + 0x4); /* 0x3A006AD7: mov edx, dword ptr [eax + 4] */ 18305 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006ADA: mov dl, byte ptr [edx + 0x14] */ 18306 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006ADD: mov byte ptr [ecx + 0x14], dl */ 18307 edx = MEM32(eax + 0x4); /* 0x3A006AE0: mov edx, dword ptr [eax + 4] */ 18308 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE3: mov byte ptr [edx + 0x14], bl */ 18309 ecx = MEM32(ecx + 0x8); /* 0x3A006AE6: mov ecx, dword ptr [ecx + 8] */ 18310 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006AE9: mov byte ptr [ecx + 0x14], bl */ 18311 ecx = MEM32(eax + 0x4); /* 0x3A006AEC: mov ecx, dword ptr [eax + 4] */ 18312 edx = MEM32(ecx + 0x8); /* 0x3A006AEF: mov edx, dword ptr [ecx + 8] */ 18313 esi = MEM32(edx); /* 0x3A006AF2: mov esi, dword ptr [edx] */ 18314 MEM32(ecx + 0x8) = esi; /* 0x3A006AF4: mov dword ptr [ecx + 8], esi */ 18315 esi = MEM32(edx); /* 0x3A006AF7: mov esi, dword ptr [edx] */ 18316 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006AF9: cmp esi, dword ptr [edi + 8] */ 18317 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18319 _flag_k = FK_CMP; 18320 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006B01; /* 0x3A006AFC: je 0x3a006b01 */ 18321 L_3A006AFE: 18322 MEM32(esi + 0x4) = ecx; /* 0x3A006AFE: mov dword ptr [esi + 4], ecx */ 18323 L_3A006B01: 18324 esi = MEM32(ecx + 0x4); /* 0x3A006B01: mov esi, dword ptr [ecx + 4] */ 18325 MEM32(edx + 0x4) = esi; /* 0x3A006B04: mov dword ptr [edx + 4], esi */ 18326 esi = MEM32(edi + 0x4); /* 0x3A006B07: mov esi, dword ptr [edi + 4] */ 18327 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006B0A: cmp ecx, dword ptr [esi + 4] */ 18328 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18330 _flag_k = FK_CMP; 18331 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B19; /* 0x3A006B0D: jne 0x3a006b19 */ 18332 L_3A006B0F: 18333 MEM32(esi + 0x4) = edx; /* 0x3A006B0F: mov dword ptr [esi + 4], edx */ 18334 MEM32(edx) = ecx; /* 0x3A006B12: mov dword ptr [edx], ecx */ 18335 goto L_3A006BCF; /* 0x3A006B14: jmp 0x3a006bcf */ 18336 L_3A006B19: 18337 esi = MEM32(ecx + 0x4); /* 0x3A006B19: mov esi, dword ptr [ecx + 4] */ 18338 /* cmp ecx, MEM32(esi) */ /* 0x3A006B1C: cmp ecx, dword ptr [esi] */ 18339 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 18340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18341 _flag_k = FK_CMP; 18342 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006B29; /* 0x3A006B1E: jne 0x3a006b29 */ 18343 L_3A006B20: 18344 MEM32(esi) = edx; /* 0x3A006B20: mov dword ptr [esi], edx */ 18345 MEM32(edx) = ecx; /* 0x3A006B22: mov dword ptr [edx], ecx */ 18346 goto L_3A006BCF; /* 0x3A006B24: jmp 0x3a006bcf */ 18347 L_3A006B29: 18348 MEM32(esi + 0x8) = edx; /* 0x3A006B29: mov dword ptr [esi + 8], edx */ 18349 MEM32(edx) = ecx; /* 0x3A006B2C: mov dword ptr [edx], ecx */ 18350 goto L_3A006BCF; /* 0x3A006B2E: jmp 0x3a006bcf */ 18351 L_3A006BCF: 18352 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 18353 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 18354 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 18355 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 18356 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 18357 RECOMP_FLAGS_IN(); 18358 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 18359 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 18360 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18361 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18362 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 18363 _flag_k = FK_ADD; 18364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18365 eax = eax - 1; /* 0x3A006BE7: dec eax */ 18366 _flag_k = FK_DEC; 18367 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 18368 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 18369 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 18370 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 18371 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 18372 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 18373 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 18374 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 18375 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 18376 RECOMP_REGS_OUT(); 18377 } 18378 18379 void sub_3A006B77(void) { 18380 int _fpu_cmp = 0; 18381 uint32_t _cf = 0; 18382 int _df = 1; 18383 uint32_t _flag_k = FK_NONE; 18384 uint32_t _flag_a = 0, _flag_b = 0; 18385 uint32_t _itail_tgt = 0; 18386 RECOMP_REGS_LOCALS 18387 RECOMP_ENTER(0x3A006B77u); 18388 18389 L_3A006B77: 18390 MEM32(edx) = ecx; /* 0x3A006B77: mov dword ptr [edx], ecx */ 18391 MEM32(ecx + 0x4) = edx; /* 0x3A006B79: mov dword ptr [ecx + 4], edx */ 18392 ecx = MEM32(eax + 0x4); /* 0x3A006B7C: mov ecx, dword ptr [eax + 4] */ 18393 ecx = MEM32(ecx); /* 0x3A006B7F: mov ecx, dword ptr [ecx] */ 18394 edx = MEM32(eax + 0x4); /* 0x3A006B81: mov edx, dword ptr [eax + 4] */ 18395 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3A006B84: mov dl, byte ptr [edx + 0x14] */ 18396 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x3A006B87: mov byte ptr [ecx + 0x14], dl */ 18397 edx = MEM32(eax + 0x4); /* 0x3A006B8A: mov edx, dword ptr [eax + 4] */ 18398 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B8D: mov byte ptr [edx + 0x14], bl */ 18399 ecx = MEM32(ecx); /* 0x3A006B90: mov ecx, dword ptr [ecx] */ 18400 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006B92: mov byte ptr [ecx + 0x14], bl */ 18401 ecx = MEM32(eax + 0x4); /* 0x3A006B95: mov ecx, dword ptr [eax + 4] */ 18402 edx = MEM32(ecx); /* 0x3A006B98: mov edx, dword ptr [ecx] */ 18403 esi = MEM32(edx + 0x8); /* 0x3A006B9A: mov esi, dword ptr [edx + 8] */ 18404 MEM32(ecx) = esi; /* 0x3A006B9D: mov dword ptr [ecx], esi */ 18405 esi = MEM32(edx + 0x8); /* 0x3A006B9F: mov esi, dword ptr [edx + 8] */ 18406 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3A006BA2: cmp esi, dword ptr [edi + 8] */ 18407 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18409 _flag_k = FK_CMP; 18410 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006BAA; /* 0x3A006BA5: je 0x3a006baa */ 18411 L_3A006BA7: 18412 MEM32(esi + 0x4) = ecx; /* 0x3A006BA7: mov dword ptr [esi + 4], ecx */ 18413 L_3A006BAA: 18414 esi = MEM32(ecx + 0x4); /* 0x3A006BAA: mov esi, dword ptr [ecx + 4] */ 18415 MEM32(edx + 0x4) = esi; /* 0x3A006BAD: mov dword ptr [edx + 4], esi */ 18416 esi = MEM32(edi + 0x4); /* 0x3A006BB0: mov esi, dword ptr [edi + 4] */ 18417 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3A006BB3: cmp ecx, dword ptr [esi + 4] */ 18418 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18420 _flag_k = FK_CMP; 18421 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BBD; /* 0x3A006BB6: jne 0x3a006bbd */ 18422 L_3A006BB8: 18423 MEM32(esi + 0x4) = edx; /* 0x3A006BB8: mov dword ptr [esi + 4], edx */ 18424 goto L_3A006BCC; /* 0x3A006BBB: jmp 0x3a006bcc */ 18425 L_3A006BBD: 18426 esi = MEM32(ecx + 0x4); /* 0x3A006BBD: mov esi, dword ptr [ecx + 4] */ 18427 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3A006BC0: cmp ecx, dword ptr [esi + 8] */ 18428 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 18429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18430 _flag_k = FK_CMP; 18431 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006BCA; /* 0x3A006BC3: jne 0x3a006bca */ 18432 L_3A006BC5: 18433 MEM32(esi + 0x8) = edx; /* 0x3A006BC5: mov dword ptr [esi + 8], edx */ 18434 goto L_3A006BCC; /* 0x3A006BC8: jmp 0x3a006bcc */ 18435 L_3A006BCA: 18436 MEM32(esi) = edx; /* 0x3A006BCA: mov dword ptr [esi], edx */ 18437 L_3A006BCC: 18438 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 18439 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 18440 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 18441 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 18442 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 18443 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 18444 RECOMP_FLAGS_IN(); 18445 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 18446 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 18447 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18449 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 18450 _flag_k = FK_ADD; 18451 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18452 eax = eax - 1; /* 0x3A006BE7: dec eax */ 18453 _flag_k = FK_DEC; 18454 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 18455 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 18456 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 18457 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 18458 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 18459 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 18460 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 18461 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 18462 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 18463 RECOMP_REGS_OUT(); 18464 } 18465 18466 void sub_3A006BCC(void) { 18467 int _fpu_cmp = 0; 18468 uint32_t _cf = 0; 18469 int _df = 1; 18470 uint32_t _flag_k = FK_NONE; 18471 uint32_t _flag_a = 0, _flag_b = 0; 18472 uint32_t _itail_tgt = 0; 18473 RECOMP_REGS_LOCALS 18474 RECOMP_ENTER(0x3A006BCCu); 18475 18476 L_3A006BCC: 18477 MEM32(edx + 0x8) = ecx; /* 0x3A006BCC: mov dword ptr [edx + 8], ecx */ 18478 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 18479 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 18480 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 18481 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 18482 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 18483 RECOMP_FLAGS_IN(); 18484 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 18485 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 18486 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18488 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 18489 _flag_k = FK_ADD; 18490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18491 eax = eax - 1; /* 0x3A006BE7: dec eax */ 18492 _flag_k = FK_DEC; 18493 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 18494 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 18495 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 18496 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 18497 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 18498 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 18499 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 18500 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 18501 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 18502 RECOMP_REGS_OUT(); 18503 } 18504 18505 void sub_3A006BCF(void) { 18506 int _fpu_cmp = 0; 18507 uint32_t _cf = 0; 18508 int _df = 1; 18509 uint32_t _flag_k = FK_NONE; 18510 uint32_t _flag_a = 0, _flag_b = 0; 18511 uint32_t _itail_tgt = 0; 18512 RECOMP_REGS_LOCALS 18513 RECOMP_ENTER(0x3A006BCFu); 18514 18515 L_3A006BCF: 18516 MEM32(ecx + 0x4) = edx; /* 0x3A006BCF: mov dword ptr [ecx + 4], edx */ 18517 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 18518 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 18519 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 18520 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 18521 RECOMP_FLAGS_IN(); 18522 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 18523 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 18524 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18525 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18526 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 18527 _flag_k = FK_ADD; 18528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18529 eax = eax - 1; /* 0x3A006BE7: dec eax */ 18530 _flag_k = FK_DEC; 18531 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 18532 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 18533 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 18534 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 18535 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 18536 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 18537 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 18538 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 18539 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 18540 RECOMP_REGS_OUT(); 18541 } 18542 18543 void sub_3A006BD2(void) { 18544 int _fpu_cmp = 0; 18545 uint32_t _cf = 0; 18546 int _df = 1; 18547 uint32_t _flag_k = FK_NONE; 18548 uint32_t _flag_a = 0, _flag_b = 0; 18549 uint32_t _itail_tgt = 0; 18550 RECOMP_REGS_LOCALS 18551 RECOMP_ENTER(0x3A006BD2u); 18552 18553 L_3A006BD2: 18554 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3A006BD2: mov byte ptr [eax + 0x14], bl */ 18555 edx = MEM32(ebp + (-0x4)); /* 0x3A006BD5: mov edx, dword ptr [ebp - 4] */ 18556 PUSH32(esp, edx); /* 0x3A006BD8: push edx */ 18557 RECOMP_ICALL(0x3A008F76u); /* 0x3A006BD9: call 0x3a008f76 */ /* not lifted */ 18558 RECOMP_FLAGS_IN(); 18559 eax = MEM32(edi + 0x10); /* 0x3A006BDE: mov eax, dword ptr [edi + 0x10] */ 18560 ecx = MEM32(ebp + 0xC); /* 0x3A006BE1: mov ecx, dword ptr [ebp + 0xc] */ 18561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18563 esp = esp + 4; /* 0x3A006BE4: add esp, 4 */ 18564 _flag_k = FK_ADD; 18565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18566 eax = eax - 1; /* 0x3A006BE7: dec eax */ 18567 _flag_k = FK_DEC; 18568 MEM32(edi + 0x10) = eax; /* 0x3A006BE8: mov dword ptr [edi + 0x10], eax */ 18569 eax = MEM32(ebp + 0x8); /* 0x3A006BEB: mov eax, dword ptr [ebp + 8] */ 18570 edi = POP32_VAL(esp); /* 0x3A006BEE: pop edi */ 18571 esi = POP32_VAL(esp); /* 0x3A006BEF: pop esi */ 18572 MEM32(eax) = ecx; /* 0x3A006BF0: mov dword ptr [eax], ecx */ 18573 ebx = POP32_VAL(esp); /* 0x3A006BF2: pop ebx */ 18574 esp = ebp; /* 0x3A006BF3: mov esp, ebp */ 18575 ebp = POP32_VAL(esp); /* 0x3A006BF5: pop ebp */ 18576 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3A006BF6: ret 8 */ 18577 RECOMP_REGS_OUT(); 18578 } 18579 18580 void sub_3A006C00(void) { 18581 int _fpu_cmp = 0; 18582 uint32_t _cf = 0; 18583 int _df = 1; 18584 uint32_t _flag_k = FK_NONE; 18585 uint32_t _flag_a = 0, _flag_b = 0; 18586 uint32_t _itail_tgt = 0; 18587 RECOMP_REGS_LOCALS 18588 RECOMP_ENTER(0x3A006C00u); 18589 18590 L_3A006C00: 18591 PUSH32(esp, ebp); /* 0x3A006C00: push ebp */ 18592 ebp = esp; /* 0x3A006C01: mov ebp, esp */ 18593 PUSH32(esp, ebx); /* 0x3A006C03: push ebx */ 18594 PUSH32(esp, esi); /* 0x3A006C04: push esi */ 18595 ebx = ecx; /* 0x3A006C05: mov ebx, ecx */ 18596 eax = MEM32(ebx + 0x8); /* 0x3A006C07: mov eax, dword ptr [ebx + 8] */ 18597 PUSH32(esp, edi); /* 0x3A006C0A: push edi */ 18598 edi = MEM32(ebp + 0x8); /* 0x3A006C0B: mov edi, dword ptr [ebp + 8] */ 18599 /* cmp edi, eax */ /* 0x3A006C0E: cmp edi, eax */ 18600 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18602 _flag_k = FK_CMP; 18603 esi = edi; /* 0x3A006C10: mov esi, edi */ 18604 if (CMP_EQ(_flag_a, _flag_b)) goto L_3A006C33; /* 0x3A006C12: je 0x3a006c33 */ 18605 L_3A006C14: 18606 eax = MEM32(esi + 0x8); /* 0x3A006C14: mov eax, dword ptr [esi + 8] */ 18607 PUSH32(esp, eax); /* 0x3A006C17: push eax */ 18608 ecx = ebx; /* 0x3A006C18: mov ecx, ebx */ 18609 RECOMP_ICALL(0x3A006C00u); /* 0x3A006C1A: call 0x3a006c00 */ /* not lifted */ 18610 RECOMP_FLAGS_IN(); 18611 esi = MEM32(esi); /* 0x3A006C1F: mov esi, dword ptr [esi] */ 18612 PUSH32(esp, edi); /* 0x3A006C21: push edi */ 18613 RECOMP_ICALL(0x3A008F76u); /* 0x3A006C22: call 0x3a008f76 */ /* not lifted */ 18614 RECOMP_FLAGS_IN(); 18615 eax = MEM32(ebx + 0x8); /* 0x3A006C27: mov eax, dword ptr [ebx + 8] */ 18616 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18617 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18618 esp = esp + 4; /* 0x3A006C2A: add esp, 4 */ 18619 _flag_k = FK_ADD; 18620 /* cmp esi, eax */ /* 0x3A006C2D: cmp esi, eax */ 18621 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 18622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18623 _flag_k = FK_CMP; 18624 edi = esi; /* 0x3A006C2F: mov edi, esi */ 18625 RECOMP_BACKEDGE(); 18626 if (CMP_NE(_flag_a, _flag_b)) goto L_3A006C14; /* 0x3A006C31: jne 0x3a006c14 */ 18627 L_3A006C33: 18628 edi = POP32_VAL(esp); /* 0x3A006C33: pop edi */ 18629 esi = POP32_VAL(esp); /* 0x3A006C34: pop esi */ 18630 ebx = POP32_VAL(esp); /* 0x3A006C35: pop ebx */ 18631 ebp = POP32_VAL(esp); /* 0x3A006C36: pop ebp */ 18632 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3A006C37: ret 4 */ 18633 RECOMP_REGS_OUT(); 18634 }