client/game/nnr.dll/lifted-0001.c (764819B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include <math.h> 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 void sub_3C003840(void) { 9 int _fpu_cmp = 0; 10 uint32_t _cf = 0; 11 int _df = 1; 12 uint32_t _flag_k = FK_NONE; 13 uint32_t _flag_a = 0, _flag_b = 0; 14 uint32_t _itail_tgt = 0; 15 RECOMP_REGS_LOCALS 16 RECOMP_ENTER(0x3C003840u); 17 18 L_3C003840: 19 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C003840: ret */ 20 RECOMP_REGS_OUT(); 21 } 22 23 void sub_3C003850(void) { 24 int _fpu_cmp = 0; 25 uint32_t _cf = 0; 26 int _df = 1; 27 uint32_t _flag_k = FK_NONE; 28 uint32_t _flag_a = 0, _flag_b = 0; 29 uint32_t _itail_tgt = 0; 30 RECOMP_REGS_LOCALS 31 RECOMP_ENTER(0x3C003850u); 32 33 L_3C003850: 34 PUSH32(esp, ebp); /* 0x3C003850: push ebp */ 35 ebp = esp; /* 0x3C003851: mov ebp, esp */ 36 PUSH32(esp, esi); /* 0x3C003853: push esi */ 37 esi = ecx; /* 0x3C003854: mov esi, ecx */ 38 RECOMP_ICALL(0x3C003550u); /* 0x3C003856: call 0x3c003550 */ /* not lifted */ 39 RECOMP_FLAGS_IN(); 40 /* test MEM8(ebp + 0x8), 1 */ /* 0x3C00385B: test byte ptr [ebp + 8], 1 */ 41 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 42 _cf = 0; 43 _flag_k = FK_NARROW(FK_TEST, 24); 44 if (TEST_Z(_flag_a, _flag_b)) goto L_3C00386A; /* 0x3C00385F: je 0x3c00386a */ 45 L_3C003861: 46 PUSH32(esp, esi); /* 0x3C003861: push esi */ 47 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003862: call 0x3c0089de */ /* not lifted */ 48 RECOMP_FLAGS_IN(); 49 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 50 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 51 esp = esp + 4; /* 0x3C003867: add esp, 4 */ 52 _flag_k = FK_ADD; 53 L_3C00386A: 54 eax = esi; /* 0x3C00386A: mov eax, esi */ 55 esi = POP32_VAL(esp); /* 0x3C00386C: pop esi */ 56 ebp = POP32_VAL(esp); /* 0x3C00386D: pop ebp */ 57 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C00386E: ret 4 */ 58 RECOMP_REGS_OUT(); 59 } 60 61 void sub_3C003880(void) { 62 int _fpu_cmp = 0; 63 uint32_t _cf = 0; 64 int _df = 1; 65 uint32_t _flag_k = FK_NONE; 66 uint32_t _flag_a = 0, _flag_b = 0; 67 uint32_t _itail_tgt = 0; 68 RECOMP_REGS_LOCALS 69 RECOMP_ENTER(0x3C003880u); 70 71 L_3C003880: 72 PUSH32(esp, ebp); /* 0x3C003880: push ebp */ 73 ebp = esp; /* 0x3C003881: mov ebp, esp */ 74 PUSH32(esp, 0xFFFFFFFFu); /* 0x3C003883: push -1 */ 75 PUSH32(esp, 0x3C008DB1u); /* 0x3C003885: push 0x3c008db1 */ 76 eax = MEM32(FS_BASE + (0)); /* 0x3C00388A: mov eax, dword ptr fs:[0] */ 77 PUSH32(esp, eax); /* 0x3C003890: push eax */ 78 MEM32(FS_BASE + (0)) = esp; /* 0x3C003891: mov dword ptr fs:[0], esp */ 79 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 80 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 81 esp = esp - 8; /* 0x3C003898: sub esp, 8 */ 82 _flag_k = FK_CMP; 83 PUSH32(esp, ebx); /* 0x3C00389B: push ebx */ 84 PUSH32(esp, esi); /* 0x3C00389C: push esi */ 85 esi = ecx; /* 0x3C00389D: mov esi, ecx */ 86 PUSH32(esp, edi); /* 0x3C00389F: push edi */ 87 edi = MEM32(esi + 0x4); /* 0x3C0038A0: mov edi, dword ptr [esi + 4] */ 88 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 89 ebx = 0; /* 0x3C0038A3: xor ebx, ebx */ 90 _cf = 0; 91 _flag_k = FK_TEST; 92 /* cmp edi, ebx */ /* 0x3C0038A5: cmp edi, ebx */ 93 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 94 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 95 _flag_k = FK_CMP; 96 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0038B9; /* 0x3C0038A7: je 0x3c0038b9 */ 97 L_3C0038A9: 98 ecx = edi; /* 0x3C0038A9: mov ecx, edi */ 99 RECOMP_ICALL(0x3C0015F0u); /* 0x3C0038AB: call 0x3c0015f0 */ /* not lifted */ 100 RECOMP_FLAGS_IN(); 101 PUSH32(esp, edi); /* 0x3C0038B0: push edi */ 102 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0038B1: call 0x3c0089de */ /* not lifted */ 103 RECOMP_FLAGS_IN(); 104 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 105 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 106 esp = esp + 4; /* 0x3C0038B6: add esp, 4 */ 107 _flag_k = FK_ADD; 108 L_3C0038B9: 109 PUSH32(esp, 1); /* 0x3C0038B9: push 1 */ 110 RECOMP_ICALL(0x3C008B40u); /* 0x3C0038BB: call 0x3c008b40 */ /* not lifted */ 111 RECOMP_FLAGS_IN(); 112 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 113 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 114 esp = esp + 4; /* 0x3C0038C0: add esp, 4 */ 115 _flag_k = FK_ADD; 116 MEM32(ebp + (-0x14)) = eax; /* 0x3C0038C3: mov dword ptr [ebp - 0x14], eax */ 117 /* cmp eax, ebx */ /* 0x3C0038C6: cmp eax, ebx */ 118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 120 _flag_k = FK_CMP; 121 MEM32(ebp + (-0x4)) = ebx; /* 0x3C0038C8: mov dword ptr [ebp - 4], ebx */ 122 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0038D6; /* 0x3C0038CB: je 0x3c0038d6 */ 123 L_3C0038CD: 124 ecx = eax; /* 0x3C0038CD: mov ecx, eax */ 125 RECOMP_ICALL(0x3C0015E0u); /* 0x3C0038CF: call 0x3c0015e0 */ /* not lifted */ 126 RECOMP_FLAGS_IN(); 127 goto L_3C0038D8; /* 0x3C0038D4: jmp 0x3c0038d8 */ 128 L_3C0038D6: 129 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 130 eax = 0; /* 0x3C0038D6: xor eax, eax */ 131 _cf = 0; 132 _flag_k = FK_TEST; 133 L_3C0038D8: 134 ecx = MEM32(esi + 0x8); /* 0x3C0038D8: mov ecx, dword ptr [esi + 8] */ 135 /* cmp ecx, ebx */ /* 0x3C0038DB: cmp ecx, ebx */ 136 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 138 _flag_k = FK_CMP; 139 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0038DD: mov dword ptr [ebp - 4], 0xffffffff */ 140 MEM32(esi + 0x4) = eax; /* 0x3C0038E4: mov dword ptr [esi + 4], eax */ 141 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0038EF; /* 0x3C0038E7: je 0x3c0038ef */ 142 L_3C0038E9: 143 eax = MEM32(ecx); /* 0x3C0038E9: mov eax, dword ptr [ecx] */ 144 PUSH32(esp, 1); /* 0x3C0038EB: push 1 */ 145 RECOMP_ICALL(MEM32(eax)); /* 0x3C0038ED: call dword ptr [eax] */ 146 RECOMP_FLAGS_IN(); 147 L_3C0038EF: 148 PUSH32(esp, 0x14u); /* 0x3C0038EF: push 0x14 */ 149 RECOMP_ICALL(0x3C008B40u); /* 0x3C0038F1: call 0x3c008b40 */ /* not lifted */ 150 RECOMP_FLAGS_IN(); 151 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 152 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 153 esp = esp + 4; /* 0x3C0038F6: add esp, 4 */ 154 _flag_k = FK_ADD; 155 /* cmp eax, ebx */ /* 0x3C0038F9: cmp eax, ebx */ 156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 158 _flag_k = FK_CMP; 159 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003914; /* 0x3C0038FB: je 0x3c003914 */ 160 L_3C0038FD: 161 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3C0038FD: mov cl, byte ptr [ebp - 0xd] */ 162 MEM8(eax + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3C003900: mov byte ptr [eax + 4], cl */ 163 MEM32(eax + 0x8) = ebx; /* 0x3C003903: mov dword ptr [eax + 8], ebx */ 164 MEM32(eax + 0xC) = ebx; /* 0x3C003906: mov dword ptr [eax + 0xc], ebx */ 165 MEM32(eax + 0x10) = ebx; /* 0x3C003909: mov dword ptr [eax + 0x10], ebx */ 166 MEM32(eax) = 0x3C0091ACu; /* 0x3C00390C: mov dword ptr [eax], 0x3c0091ac */ 167 goto L_3C003916; /* 0x3C003912: jmp 0x3c003916 */ 168 L_3C003914: 169 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 170 eax = 0; /* 0x3C003914: xor eax, eax */ 171 _cf = 0; 172 _flag_k = FK_TEST; 173 L_3C003916: 174 ecx = MEM32(esi + 0xC); /* 0x3C003916: mov ecx, dword ptr [esi + 0xc] */ 175 /* cmp ecx, ebx */ /* 0x3C003919: cmp ecx, ebx */ 176 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 178 _flag_k = FK_CMP; 179 MEM32(esi + 0x8) = eax; /* 0x3C00391B: mov dword ptr [esi + 8], eax */ 180 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003989; /* 0x3C00391E: jne 0x3c003989 */ 181 L_3C003920: 182 PUSH32(esp, 0x38u); /* 0x3C003920: push 0x38 */ 183 RECOMP_ICALL(0x3C008B40u); /* 0x3C003922: call 0x3c008b40 */ /* not lifted */ 184 RECOMP_FLAGS_IN(); 185 edi = eax; /* 0x3C003927: mov edi, eax */ 186 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 188 esp = esp + 4; /* 0x3C003929: add esp, 4 */ 189 _flag_k = FK_ADD; 190 MEM32(ebp + (-0x14)) = edi; /* 0x3C00392C: mov dword ptr [ebp - 0x14], edi */ 191 /* cmp edi, ebx */ /* 0x3C00392F: cmp edi, ebx */ 192 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 194 _flag_k = FK_CMP; 195 MEM32(ebp + (-0x4)) = 1; /* 0x3C003931: mov dword ptr [ebp - 4], 1 */ 196 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00395C; /* 0x3C003938: je 0x3c00395c */ 197 L_3C00393A: 198 edx = MEM32(esi + 0x20); /* 0x3C00393A: mov edx, dword ptr [esi + 0x20] */ 199 eax = MEM32(esi + 0x1C); /* 0x3C00393D: mov eax, dword ptr [esi + 0x1c] */ 200 ecx = MEM32(esi + 0x18); /* 0x3C003940: mov ecx, dword ptr [esi + 0x18] */ 201 PUSH32(esp, edx); /* 0x3C003943: push edx */ 202 edx = MEM32(esi + 0x14); /* 0x3C003944: mov edx, dword ptr [esi + 0x14] */ 203 PUSH32(esp, eax); /* 0x3C003947: push eax */ 204 PUSH32(esp, ecx); /* 0x3C003948: push ecx */ 205 PUSH32(esp, edx); /* 0x3C003949: push edx */ 206 ecx = edi; /* 0x3C00394A: mov ecx, edi */ 207 RECOMP_ICALL(MEM32(0x3C0090D4)); /* 0x3C00394C: call dword ptr [0x3c0090d4] */ 208 RECOMP_FLAGS_IN(); 209 MEM32(edi) = 0x3C0091F8u; /* 0x3C003952: mov dword ptr [edi], 0x3c0091f8 */ 210 ecx = edi; /* 0x3C003958: mov ecx, edi */ 211 goto L_3C00395E; /* 0x3C00395A: jmp 0x3c00395e */ 212 L_3C00395C: 213 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 214 ecx = 0; /* 0x3C00395C: xor ecx, ecx */ 215 _cf = 0; 216 _flag_k = FK_TEST; 217 L_3C00395E: 218 PUSH32(esp, 0x40A00000u); /* 0x3C00395E: push 0x40a00000 */ 219 PUSH32(esp, 1); /* 0x3C003963: push 1 */ 220 PUSH32(esp, 1); /* 0x3C003965: push 1 */ 221 MEM32(esi + 0xC) = ecx; /* 0x3C003967: mov dword ptr [esi + 0xc], ecx */ 222 eax = MEM32(ecx); /* 0x3C00396A: mov eax, dword ptr [ecx] */ 223 PUSH32(esp, 0xAu); /* 0x3C00396C: push 0xa */ 224 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C00396E: mov dword ptr [ebp - 4], 0xffffffff */ 225 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x3C003975: call dword ptr [eax + 8] */ 226 RECOMP_FLAGS_IN(); 227 edi = POP32_VAL(esp); /* 0x3C003978: pop edi */ 228 esi = POP32_VAL(esp); /* 0x3C003979: pop esi */ 229 ebx = POP32_VAL(esp); /* 0x3C00397A: pop ebx */ 230 ecx = MEM32(ebp + (-0xC)); /* 0x3C00397B: mov ecx, dword ptr [ebp - 0xc] */ 231 MEM32(FS_BASE + (0)) = ecx; /* 0x3C00397E: mov dword ptr fs:[0], ecx */ 232 esp = ebp; /* 0x3C003985: mov esp, ebp */ 233 ebp = POP32_VAL(esp); /* 0x3C003987: pop ebp */ 234 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C003988: ret */ 235 L_3C003989: 236 edx = MEM32(ecx); /* 0x3C003989: mov edx, dword ptr [ecx] */ 237 PUSH32(esp, 1); /* 0x3C00398B: push 1 */ 238 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3C00398D: call dword ptr [edx + 4] */ 239 RECOMP_FLAGS_IN(); 240 PUSH32(esp, 0x38u); /* 0x3C003990: push 0x38 */ 241 RECOMP_ICALL(0x3C008B40u); /* 0x3C003992: call 0x3c008b40 */ /* not lifted */ 242 RECOMP_FLAGS_IN(); 243 edi = eax; /* 0x3C003997: mov edi, eax */ 244 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 245 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 246 esp = esp + 4; /* 0x3C003999: add esp, 4 */ 247 _flag_k = FK_ADD; 248 MEM32(ebp + (-0x14)) = edi; /* 0x3C00399C: mov dword ptr [ebp - 0x14], edi */ 249 /* cmp edi, ebx */ /* 0x3C00399F: cmp edi, ebx */ 250 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 252 _flag_k = FK_CMP; 253 MEM32(ebp + (-0x4)) = 2; /* 0x3C0039A1: mov dword ptr [ebp - 4], 2 */ 254 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0039CC; /* 0x3C0039A8: je 0x3c0039cc */ 255 L_3C0039AA: 256 eax = MEM32(esi + 0x20); /* 0x3C0039AA: mov eax, dword ptr [esi + 0x20] */ 257 ecx = MEM32(esi + 0x1C); /* 0x3C0039AD: mov ecx, dword ptr [esi + 0x1c] */ 258 edx = MEM32(esi + 0x18); /* 0x3C0039B0: mov edx, dword ptr [esi + 0x18] */ 259 PUSH32(esp, eax); /* 0x3C0039B3: push eax */ 260 eax = MEM32(esi + 0x14); /* 0x3C0039B4: mov eax, dword ptr [esi + 0x14] */ 261 PUSH32(esp, ecx); /* 0x3C0039B7: push ecx */ 262 PUSH32(esp, edx); /* 0x3C0039B8: push edx */ 263 PUSH32(esp, eax); /* 0x3C0039B9: push eax */ 264 ecx = edi; /* 0x3C0039BA: mov ecx, edi */ 265 RECOMP_ICALL(MEM32(0x3C0090D4)); /* 0x3C0039BC: call dword ptr [0x3c0090d4] */ 266 RECOMP_FLAGS_IN(); 267 MEM32(edi) = 0x3C0091F8u; /* 0x3C0039C2: mov dword ptr [edi], 0x3c0091f8 */ 268 ecx = edi; /* 0x3C0039C8: mov ecx, edi */ 269 goto L_3C0039CE; /* 0x3C0039CA: jmp 0x3c0039ce */ 270 L_3C0039CC: 271 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 272 ecx = 0; /* 0x3C0039CC: xor ecx, ecx */ 273 _cf = 0; 274 _flag_k = FK_TEST; 275 L_3C0039CE: 276 PUSH32(esp, 0x40A00000u); /* 0x3C0039CE: push 0x40a00000 */ 277 PUSH32(esp, 1); /* 0x3C0039D3: push 1 */ 278 PUSH32(esp, 1); /* 0x3C0039D5: push 1 */ 279 MEM32(esi + 0xC) = ecx; /* 0x3C0039D7: mov dword ptr [esi + 0xc], ecx */ 280 edx = MEM32(ecx); /* 0x3C0039DA: mov edx, dword ptr [ecx] */ 281 PUSH32(esp, 0xAu); /* 0x3C0039DC: push 0xa */ 282 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0039DE: mov dword ptr [ebp - 4], 0xffffffff */ 283 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3C0039E5: call dword ptr [edx + 8] */ 284 RECOMP_FLAGS_IN(); 285 ecx = MEM32(ebp + (-0xC)); /* 0x3C0039E8: mov ecx, dword ptr [ebp - 0xc] */ 286 edi = POP32_VAL(esp); /* 0x3C0039EB: pop edi */ 287 esi = POP32_VAL(esp); /* 0x3C0039EC: pop esi */ 288 ebx = POP32_VAL(esp); /* 0x3C0039ED: pop ebx */ 289 MEM32(FS_BASE + (0)) = ecx; /* 0x3C0039EE: mov dword ptr fs:[0], ecx */ 290 esp = ebp; /* 0x3C0039F5: mov esp, ebp */ 291 ebp = POP32_VAL(esp); /* 0x3C0039F7: pop ebp */ 292 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0039F8: ret */ 293 RECOMP_REGS_OUT(); 294 } 295 296 void sub_3C003A00(void) { 297 int _fpu_cmp = 0; 298 uint32_t _cf = 0; 299 int _df = 1; 300 uint32_t _flag_k = FK_NONE; 301 uint32_t _flag_a = 0, _flag_b = 0; 302 uint32_t _itail_tgt = 0; 303 RECOMP_REGS_LOCALS 304 RECOMP_ENTER(0x3C003A00u); 305 306 L_3C003A00: 307 PUSH32(esp, ebp); /* 0x3C003A00: push ebp */ 308 ebp = esp; /* 0x3C003A01: mov ebp, esp */ 309 PUSH32(esp, esi); /* 0x3C003A03: push esi */ 310 esi = ecx; /* 0x3C003A04: mov esi, ecx */ 311 RECOMP_ICALL(MEM32(0x3C0090D8)); /* 0x3C003A06: call dword ptr [0x3c0090d8] */ 312 RECOMP_FLAGS_IN(); 313 /* test MEM8(ebp + 0x8), 1 */ /* 0x3C003A0C: test byte ptr [ebp + 8], 1 */ 314 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 315 _cf = 0; 316 _flag_k = FK_NARROW(FK_TEST, 24); 317 if (TEST_Z(_flag_a, _flag_b)) goto L_3C003A1B; /* 0x3C003A10: je 0x3c003a1b */ 318 L_3C003A12: 319 PUSH32(esp, esi); /* 0x3C003A12: push esi */ 320 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003A13: call 0x3c0089de */ /* not lifted */ 321 RECOMP_FLAGS_IN(); 322 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 324 esp = esp + 4; /* 0x3C003A18: add esp, 4 */ 325 _flag_k = FK_ADD; 326 L_3C003A1B: 327 eax = esi; /* 0x3C003A1B: mov eax, esi */ 328 esi = POP32_VAL(esp); /* 0x3C003A1D: pop esi */ 329 ebp = POP32_VAL(esp); /* 0x3C003A1E: pop ebp */ 330 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C003A1F: ret 4 */ 331 RECOMP_REGS_OUT(); 332 } 333 334 void sub_3C003A30(void) { 335 int _fpu_cmp = 0; 336 uint32_t _cf = 0; 337 int _df = 1; 338 uint32_t _flag_k = FK_NONE; 339 uint32_t _flag_a = 0, _flag_b = 0; 340 uint32_t _itail_tgt = 0; 341 RECOMP_REGS_LOCALS 342 RECOMP_ENTER(0x3C003A30u); 343 344 L_3C003A30: 345 PUSH32(esp, ebp); /* 0x3C003A30: push ebp */ 346 ebp = esp; /* 0x3C003A31: mov ebp, esp */ 347 PUSH32(esp, esi); /* 0x3C003A33: push esi */ 348 esi = ecx; /* 0x3C003A34: mov esi, ecx */ 349 ecx = MEM32(esi + 0xC); /* 0x3C003A36: mov ecx, dword ptr [esi + 0xc] */ 350 /* test ecx, ecx */ /* 0x3C003A39: test ecx, ecx */ 351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 352 _cf = 0; 353 _flag_k = FK_TEST; 354 if (TEST_Z(_flag_a, _flag_b)) goto L_3C003A4F; /* 0x3C003A3B: je 0x3c003a4f */ 355 L_3C003A3D: 356 eax = MEM32(ecx); /* 0x3C003A3D: mov eax, dword ptr [ecx] */ 357 PUSH32(esp, 1); /* 0x3C003A3F: push 1 */ 358 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3C003A41: call dword ptr [eax + 4] */ 359 RECOMP_FLAGS_IN(); 360 ecx = MEM32(ebp + 0x8); /* 0x3C003A44: mov ecx, dword ptr [ebp + 8] */ 361 MEM32(esi + 0xC) = ecx; /* 0x3C003A47: mov dword ptr [esi + 0xc], ecx */ 362 esi = POP32_VAL(esp); /* 0x3C003A4A: pop esi */ 363 ebp = POP32_VAL(esp); /* 0x3C003A4B: pop ebp */ 364 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C003A4C: ret 4 */ 365 L_3C003A4F: 366 edx = MEM32(ebp + 0x8); /* 0x3C003A4F: mov edx, dword ptr [ebp + 8] */ 367 MEM32(esi + 0xC) = edx; /* 0x3C003A52: mov dword ptr [esi + 0xc], edx */ 368 esi = POP32_VAL(esp); /* 0x3C003A55: pop esi */ 369 ebp = POP32_VAL(esp); /* 0x3C003A56: pop ebp */ 370 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C003A57: ret 4 */ 371 RECOMP_REGS_OUT(); 372 } 373 374 void sub_3C003A60(void) { 375 int _fpu_cmp = 0; 376 uint32_t _cf = 0; 377 int _df = 1; 378 uint32_t _flag_k = FK_NONE; 379 uint32_t _flag_a = 0, _flag_b = 0; 380 uint32_t _itail_tgt = 0; 381 RECOMP_REGS_LOCALS 382 RECOMP_ENTER(0x3C003A60u); 383 384 L_3C003A60: 385 PUSH32(esp, ebp); /* 0x3C003A60: push ebp */ 386 ebp = esp; /* 0x3C003A61: mov ebp, esp */ 387 eax = MEM32(ebp + 0x10); /* 0x3C003A63: mov eax, dword ptr [ebp + 0x10] */ 388 edx = MEM32(ebp + 0x14); /* 0x3C003A66: mov edx, dword ptr [ebp + 0x14] */ 389 MEM32(ecx + 0x1C) = eax; /* 0x3C003A69: mov dword ptr [ecx + 0x1c], eax */ 390 eax = MEM32(ebp + 0x8); /* 0x3C003A6C: mov eax, dword ptr [ebp + 8] */ 391 MEM32(ecx + 0x20) = edx; /* 0x3C003A6F: mov dword ptr [ecx + 0x20], edx */ 392 edx = MEM32(ebp + 0xC); /* 0x3C003A72: mov edx, dword ptr [ebp + 0xc] */ 393 MEM32(ecx + 0x14) = eax; /* 0x3C003A75: mov dword ptr [ecx + 0x14], eax */ 394 MEM32(ecx + 0x18) = edx; /* 0x3C003A78: mov dword ptr [ecx + 0x18], edx */ 395 ebp = POP32_VAL(esp); /* 0x3C003A7B: pop ebp */ 396 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C003A7C: ret 0x10 */ 397 RECOMP_REGS_OUT(); 398 } 399 400 void sub_3C003A80(void) { 401 int _fpu_cmp = 0; 402 uint32_t _cf = 0; 403 int _df = 1; 404 uint32_t _flag_k = FK_NONE; 405 uint32_t _flag_a = 0, _flag_b = 0; 406 uint32_t _itail_tgt = 0; 407 RECOMP_REGS_LOCALS 408 RECOMP_ENTER(0x3C003A80u); 409 410 L_3C003A80: 411 PUSH32(esp, ebp); /* 0x3C003A80: push ebp */ 412 ebp = esp; /* 0x3C003A81: mov ebp, esp */ 413 PUSH32(esp, esi); /* 0x3C003A83: push esi */ 414 PUSH32(esp, edi); /* 0x3C003A84: push edi */ 415 edi = MEM32(ebp + 0x8); /* 0x3C003A85: mov edi, dword ptr [ebp + 8] */ 416 esi = ecx; /* 0x3C003A88: mov esi, ecx */ 417 ecx = MEM32(esi + 0x8); /* 0x3C003A8A: mov ecx, dword ptr [esi + 8] */ 418 PUSH32(esp, edi); /* 0x3C003A8D: push edi */ 419 RECOMP_ICALL(0x3C006650u); /* 0x3C003A8E: call 0x3c006650 */ /* not lifted */ 420 RECOMP_FLAGS_IN(); 421 ecx = MEM32(esi + 0xC); /* 0x3C003A93: mov ecx, dword ptr [esi + 0xc] */ 422 eax = MEM32(ecx); /* 0x3C003A96: mov eax, dword ptr [ecx] */ 423 PUSH32(esp, edi); /* 0x3C003A98: push edi */ 424 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C003A99: call dword ptr [eax + 0xc] */ 425 RECOMP_FLAGS_IN(); 426 edi = POP32_VAL(esp); /* 0x3C003A9C: pop edi */ 427 esi = POP32_VAL(esp); /* 0x3C003A9D: pop esi */ 428 ebp = POP32_VAL(esp); /* 0x3C003A9E: pop ebp */ 429 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C003A9F: ret 4 */ 430 RECOMP_REGS_OUT(); 431 } 432 433 void sub_3C003AB0(void) { 434 int _fpu_cmp = 0; 435 uint32_t _cf = 0; 436 int _df = 1; 437 uint32_t _flag_k = FK_NONE; 438 uint32_t _flag_a = 0, _flag_b = 0; 439 uint32_t _itail_tgt = 0; 440 RECOMP_REGS_LOCALS 441 RECOMP_ENTER(0x3C003AB0u); 442 443 L_3C003AB0: 444 PUSH32(esp, ebp); /* 0x3C003AB0: push ebp */ 445 ebp = esp; /* 0x3C003AB1: mov ebp, esp */ 446 PUSH32(esp, esi); /* 0x3C003AB3: push esi */ 447 esi = MEM32(ebp + 0x8); /* 0x3C003AB4: mov esi, dword ptr [ebp + 8] */ 448 PUSH32(esp, edi); /* 0x3C003AB7: push edi */ 449 edi = ecx; /* 0x3C003AB8: mov edi, ecx */ 450 ecx = MEM32(edi + 0x8); /* 0x3C003ABA: mov ecx, dword ptr [edi + 8] */ 451 PUSH32(esp, esi); /* 0x3C003ABD: push esi */ 452 RECOMP_ICALL(0x3C006810u); /* 0x3C003ABE: call 0x3c006810 */ /* not lifted */ 453 RECOMP_FLAGS_IN(); 454 ecx = MEM32(edi + 0xC); /* 0x3C003AC3: mov ecx, dword ptr [edi + 0xc] */ 455 eax = MEM32(ecx); /* 0x3C003AC6: mov eax, dword ptr [ecx] */ 456 PUSH32(esp, esi); /* 0x3C003AC8: push esi */ 457 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x3C003AC9: call dword ptr [eax + 0x14] */ 458 RECOMP_FLAGS_IN(); 459 /* test esi, esi */ /* 0x3C003ACC: test esi, esi */ 460 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 461 _cf = 0; 462 _flag_k = FK_TEST; 463 if (TEST_Z(_flag_a, _flag_b)) goto L_3C003AD9; /* 0x3C003ACE: je 0x3c003ad9 */ 464 L_3C003AD0: 465 edx = MEM32(esi); /* 0x3C003AD0: mov edx, dword ptr [esi] */ 466 PUSH32(esp, 1); /* 0x3C003AD2: push 1 */ 467 ecx = esi; /* 0x3C003AD4: mov ecx, esi */ 468 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3C003AD6: call dword ptr [edx + 0x18] */ 469 RECOMP_FLAGS_IN(); 470 L_3C003AD9: 471 edi = POP32_VAL(esp); /* 0x3C003AD9: pop edi */ 472 esi = POP32_VAL(esp); /* 0x3C003ADA: pop esi */ 473 ebp = POP32_VAL(esp); /* 0x3C003ADB: pop ebp */ 474 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C003ADC: ret 4 */ 475 RECOMP_REGS_OUT(); 476 } 477 478 void sub_3C003AE0(void) { 479 int _fpu_cmp = 0; 480 uint32_t _cf = 0; 481 int _df = 1; 482 uint32_t _flag_k = FK_NONE; 483 uint32_t _flag_a = 0, _flag_b = 0; 484 uint32_t _itail_tgt = 0; 485 RECOMP_REGS_LOCALS 486 RECOMP_ENTER(0x3C003AE0u); 487 488 L_3C003AE0: 489 PUSH32(esp, ebp); /* 0x3C003AE0: push ebp */ 490 ebp = esp; /* 0x3C003AE1: mov ebp, esp */ 491 PUSH32(esp, 0xFFFFFFFFu); /* 0x3C003AE3: push -1 */ 492 PUSH32(esp, 0x3C008DD3u); /* 0x3C003AE5: push 0x3c008dd3 */ 493 eax = MEM32(FS_BASE + (0)); /* 0x3C003AEA: mov eax, dword ptr fs:[0] */ 494 PUSH32(esp, eax); /* 0x3C003AF0: push eax */ 495 MEM32(FS_BASE + (0)) = esp; /* 0x3C003AF1: mov dword ptr fs:[0], esp */ 496 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x7Cu); 497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 498 esp = esp - 0x7Cu; /* 0x3C003AF8: sub esp, 0x7c */ 499 _flag_k = FK_CMP; 500 PUSH32(esp, ebx); /* 0x3C003AFB: push ebx */ 501 PUSH32(esp, esi); /* 0x3C003AFC: push esi */ 502 PUSH32(esp, edi); /* 0x3C003AFD: push edi */ 503 edi = ecx; /* 0x3C003AFE: mov edi, ecx */ 504 RECOMP_ICALL(0x3C003880u); /* 0x3C003B00: call 0x3c003880 */ /* not lifted */ 505 RECOMP_FLAGS_IN(); 506 ebx = MEM32(ebp + 0x1C); /* 0x3C003B05: mov ebx, dword ptr [ebp + 0x1c] */ 507 /* test ebx, ebx */ /* 0x3C003B08: test ebx, ebx */ 508 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 509 _cf = 0; 510 _flag_k = FK_TEST; 511 if (TEST_Z(_flag_a, _flag_b)) goto L_3C003B17; /* 0x3C003B0A: je 0x3c003b17 */ 512 L_3C003B0C: 513 eax = MEM32(ebx); /* 0x3C003B0C: mov eax, dword ptr [ebx] */ 514 PUSH32(esp, 0); /* 0x3C003B0E: push 0 */ 515 PUSH32(esp, 0); /* 0x3C003B10: push 0 */ 516 ecx = ebx; /* 0x3C003B12: mov ecx, ebx */ 517 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3C003B14: call dword ptr [eax + 4] */ 518 RECOMP_FLAGS_IN(); 519 L_3C003B17: 520 eax = MEM32(edi + 0x14); /* 0x3C003B17: mov eax, dword ptr [edi + 0x14] */ 521 MEM32(ebp + (-0x18)) = eax; /* 0x3C003B1A: mov dword ptr [ebp - 0x18], eax */ 522 fp_push((double)(int32_t)MEM32(ebp + (-0x18))); /* 0x3C003B1D: fild dword ptr [ebp - 0x18] */ 523 ecx = MEM32(edi + 0x18); /* 0x3C003B20: mov ecx, dword ptr [edi + 0x18] */ 524 /* test ecx, ecx */ /* 0x3C003B23: test ecx, ecx */ 525 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 526 _cf = 0; 527 _flag_k = FK_TEST; 528 MEM32(ebp + (-0x14)) = ecx; /* 0x3C003B25: mov dword ptr [ebp - 0x14], ecx */ 529 _st[0] = (double)*(float*)ADDR(edi + 0x1C) / _st[0]; /* 0x3C003B28: fdivr dword ptr [edi + 0x1c] */ 530 esi = MEM32(ebp + 0x8); /* 0x3C003B2B: mov esi, dword ptr [ebp + 8] */ 531 MEM32(ebp + (-0x10)) = 0; /* 0x3C003B2E: mov dword ptr [ebp - 0x10], 0 */ 532 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3C003B35: fstp dword ptr [ebp - 0x18] */ 533 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x3C003B38: fild dword ptr [ebp - 0x14] */ 534 _st[0] = (double)*(float*)ADDR(edi + 0x20) / _st[0]; /* 0x3C003B3B: fdivr dword ptr [edi + 0x20] */ 535 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C003B3E: fstp dword ptr [ebp - 0x14] */ 536 if (TEST_LE(_flag_a, _flag_b)) goto L_3C003BEB; /* 0x3C003B41: jle 0x3c003beb */ 537 L_3C003B47: 538 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 539 ebx = 0; /* 0x3C003B47: xor ebx, ebx */ 540 _cf = 0; 541 _flag_k = FK_TEST; 542 /* test eax, eax */ /* 0x3C003B49: test eax, eax */ 543 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 544 _cf = 0; 545 _flag_k = FK_TEST; 546 MEM32(ebp + 0x8) = ebx; /* 0x3C003B4B: mov dword ptr [ebp + 8], ebx */ 547 if (TEST_LE(_flag_a, _flag_b)) goto L_3C003BD6; /* 0x3C003B4E: jle 0x3c003bd6 */ 548 L_3C003B54: 549 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3C003B54: fild dword ptr [ebp - 0x10] */ 550 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3C003B57: fmul dword ptr [ebp - 0x14] */ 551 _st[0] += (double)*(float*)ADDR(0x3C0091BC); /* 0x3C003B5A: fadd dword ptr [0x3c0091bc] */ 552 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3C003B60: fstp dword ptr [ebp - 0x1c] */ 553 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3C003B63: fld dword ptr [ebp - 0x18] */ 554 _st[0] *= (double)*(float*)ADDR(0x3C00918C); /* 0x3C003B66: fmul dword ptr [0x3c00918c] */ 555 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3C003B6C: fstp dword ptr [ebp - 0x20] */ 556 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C003B6F: fld dword ptr [ebp - 0x14] */ 557 _st[0] *= (double)*(float*)ADDR(0x3C00918C); /* 0x3C003B72: fmul dword ptr [0x3c00918c] */ 558 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3C003B78: fstp dword ptr [ebp - 0x24] */ 559 L_3C003B7B: 560 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x3C003B7B: fild dword ptr [ebp + 8] */ 561 ecx = MEM32(ebp + (-0x1C)); /* 0x3C003B7E: mov ecx, dword ptr [ebp - 0x1c] */ 562 eax = MEM32(esi + 0x8); /* 0x3C003B81: mov eax, dword ptr [esi + 8] */ 563 edx = ebp + (-0x34); /* 0x3C003B84: lea edx, [ebp - 0x34] */ 564 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3C003B87: fmul dword ptr [ebp - 0x18] */ 565 PUSH32(esp, edx); /* 0x3C003B8A: push edx */ 566 PUSH32(esp, 1); /* 0x3C003B8B: push 1 */ 567 MEM32(ebp + (-0x2C)) = ecx; /* 0x3C003B8D: mov dword ptr [ebp - 0x2c], ecx */ 568 _st[0] += (double)*(float*)ADDR(0x3C0091BC); /* 0x3C003B90: fadd dword ptr [0x3c0091bc] */ 569 PUSH32(esp, eax); /* 0x3C003B96: push eax */ 570 ecx = esi; /* 0x3C003B97: mov ecx, esi */ 571 MEM32(ebp + (-0x30)) = 0; /* 0x3C003B99: mov dword ptr [ebp - 0x30], 0 */ 572 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3C003BA0: fstp dword ptr [ebp - 0x34] */ 573 RECOMP_ICALL(0x3C002080u); /* 0x3C003BA3: call 0x3c002080 */ /* not lifted */ 574 RECOMP_FLAGS_IN(); 575 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3C003BA8: fld dword ptr [ebp - 0x20] */ 576 eax = MEM32(esi + 0x8); /* 0x3C003BAB: mov eax, dword ptr [esi + 8] */ 577 _st[0] += (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3C003BAE: fadd dword ptr [ebp - 0x34] */ 578 ecx = ebp + (-0x34); /* 0x3C003BB1: lea ecx, [ebp - 0x34] */ 579 PUSH32(esp, ecx); /* 0x3C003BB4: push ecx */ 580 PUSH32(esp, 1); /* 0x3C003BB5: push 1 */ 581 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3C003BB7: fstp dword ptr [ebp - 0x34] */ 582 PUSH32(esp, eax); /* 0x3C003BBA: push eax */ 583 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3C003BBB: fld dword ptr [ebp - 0x24] */ 584 ecx = esi; /* 0x3C003BBE: mov ecx, esi */ 585 _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x3C003BC0: fadd dword ptr [ebp - 0x2c] */ 586 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3C003BC3: fstp dword ptr [ebp - 0x2c] */ 587 RECOMP_ICALL(0x3C002080u); /* 0x3C003BC6: call 0x3c002080 */ /* not lifted */ 588 RECOMP_FLAGS_IN(); 589 eax = MEM32(edi + 0x14); /* 0x3C003BCB: mov eax, dword ptr [edi + 0x14] */ 590 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 591 ebx = ebx + 1; /* 0x3C003BCE: inc ebx */ 592 _flag_k = FK_INC; 593 /* cmp ebx, eax */ /* 0x3C003BCF: cmp ebx, eax */ 594 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 596 _flag_k = FK_CMP; 597 MEM32(ebp + 0x8) = ebx; /* 0x3C003BD1: mov dword ptr [ebp + 8], ebx */ 598 RECOMP_BACKEDGE(); 599 if (CMP_L(_flag_a, _flag_b)) goto L_3C003B7B; /* 0x3C003BD4: jl 0x3c003b7b */ 600 L_3C003BD6: 601 ecx = MEM32(ebp + (-0x10)); /* 0x3C003BD6: mov ecx, dword ptr [ebp - 0x10] */ 602 edx = MEM32(edi + 0x18); /* 0x3C003BD9: mov edx, dword ptr [edi + 0x18] */ 603 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 604 ecx = ecx + 1; /* 0x3C003BDC: inc ecx */ 605 _flag_k = FK_INC; 606 /* cmp ecx, edx */ /* 0x3C003BDD: cmp ecx, edx */ 607 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 609 _flag_k = FK_CMP; 610 MEM32(ebp + (-0x10)) = ecx; /* 0x3C003BDF: mov dword ptr [ebp - 0x10], ecx */ 611 RECOMP_BACKEDGE(); 612 if (CMP_L(_flag_a, _flag_b)) goto L_3C003B47; /* 0x3C003BE2: jl 0x3c003b47 */ 613 L_3C003BE8: 614 ebx = MEM32(ebp + 0x1C); /* 0x3C003BE8: mov ebx, dword ptr [ebp + 0x1c] */ 615 L_3C003BEB: 616 /* test ebx, ebx */ /* 0x3C003BEB: test ebx, ebx */ 617 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 618 _cf = 0; 619 _flag_k = FK_TEST; 620 if (TEST_Z(_flag_a, _flag_b)) goto L_3C003BFD; /* 0x3C003BED: je 0x3c003bfd */ 621 L_3C003BEF: 622 edx = MEM32(ebx); /* 0x3C003BEF: mov edx, dword ptr [ebx] */ 623 PUSH32(esp, 0x3D4CCCCDu); /* 0x3C003BF1: push 0x3d4ccccd */ 624 PUSH32(esp, 0); /* 0x3C003BF6: push 0 */ 625 ecx = ebx; /* 0x3C003BF8: mov ecx, ebx */ 626 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3C003BFA: call dword ptr [edx + 4] */ 627 RECOMP_FLAGS_IN(); 628 L_3C003BFD: 629 eax = MEM32(ebp + 0x14); /* 0x3C003BFD: mov eax, dword ptr [ebp + 0x14] */ 630 ecx = MEM32(ebp + 0xC); /* 0x3C003C00: mov ecx, dword ptr [ebp + 0xc] */ 631 PUSH32(esp, eax); /* 0x3C003C03: push eax */ 632 PUSH32(esp, ecx); /* 0x3C003C04: push ecx */ 633 PUSH32(esp, esi); /* 0x3C003C05: push esi */ 634 ecx = edi; /* 0x3C003C06: mov ecx, edi */ 635 RECOMP_ICALL(0x3C004550u); /* 0x3C003C08: call 0x3c004550 */ /* not lifted */ 636 RECOMP_FLAGS_IN(); 637 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 638 esi = 0; /* 0x3C003C0D: xor esi, esi */ 639 _cf = 0; 640 _flag_k = FK_TEST; 641 /* cmp ebx, esi */ /* 0x3C003C0F: cmp ebx, esi */ 642 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 644 _flag_k = FK_CMP; 645 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003C20; /* 0x3C003C11: je 0x3c003c20 */ 646 L_3C003C13: 647 edx = MEM32(ebx); /* 0x3C003C13: mov edx, dword ptr [ebx] */ 648 PUSH32(esp, 0x3DCCCCCDu); /* 0x3C003C15: push 0x3dcccccd */ 649 PUSH32(esp, esi); /* 0x3C003C1A: push esi */ 650 ecx = ebx; /* 0x3C003C1B: mov ecx, ebx */ 651 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3C003C1D: call dword ptr [edx + 4] */ 652 RECOMP_FLAGS_IN(); 653 L_3C003C20: 654 eax = MEM32(0x3C0090DC); /* 0x3C003C20: mov eax, dword ptr [0x3c0090dc] */ 655 ecx = MEM32(ebp + 0x10); /* 0x3C003C25: mov ecx, dword ptr [ebp + 0x10] */ 656 SET_LO8(edx, MEM8(ebp + 0x23)); /* 0x3C003C28: mov dl, byte ptr [ebp + 0x23] */ 657 MEM32(ebp + (-0x54)) = eax; /* 0x3C003C2B: mov dword ptr [ebp - 0x54], eax */ 658 SET_LO8(eax, MEM8(ebp + 0x23)); /* 0x3C003C2E: mov al, byte ptr [ebp + 0x23] */ 659 MEM32(ebp + (-0x4C)) = ecx; /* 0x3C003C31: mov dword ptr [ebp - 0x4c], ecx */ 660 ecx = ebp + (-0x48); /* 0x3C003C34: lea ecx, [ebp - 0x48] */ 661 MEM32(ebp + (-0x50)) = edi; /* 0x3C003C37: mov dword ptr [ebp - 0x50], edi */ 662 MEM8(ebp + (-0x48)) = (uint8_t)(LO8(edx)); /* 0x3C003C3A: mov byte ptr [ebp - 0x48], dl */ 663 MEM8(ebp + (-0x47)) = (uint8_t)(LO8(eax)); /* 0x3C003C3D: mov byte ptr [ebp - 0x47], al */ 664 MEM8(ebp + (-0x3C)) = (uint8_t)(0); /* 0x3C003C40: mov byte ptr [ebp - 0x3c], 0 */ 665 RECOMP_ICALL(0x3C005AD0u); /* 0x3C003C44: call 0x3c005ad0 */ /* not lifted */ 666 RECOMP_FLAGS_IN(); 667 MEM32(ebp + (-0x54)) = 0x3C0092A4u; /* 0x3C003C49: mov dword ptr [ebp - 0x54], 0x3c0092a4 */ 668 ecx = MEM32(edi + 0xC); /* 0x3C003C50: mov ecx, dword ptr [edi + 0xc] */ 669 edx = MEM32(ecx); /* 0x3C003C53: mov edx, dword ptr [ecx] */ 670 eax = ebp + (-0x54); /* 0x3C003C55: lea eax, [ebp - 0x54] */ 671 PUSH32(esp, eax); /* 0x3C003C58: push eax */ 672 MEM32(ebp + (-0x4)) = esi; /* 0x3C003C59: mov dword ptr [ebp - 4], esi */ 673 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3C003C5C: call dword ptr [edx + 0x38] */ 674 RECOMP_FLAGS_IN(); 675 /* cmp ebx, esi */ /* 0x3C003C5F: cmp ebx, esi */ 676 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 678 _flag_k = FK_CMP; 679 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003C70; /* 0x3C003C61: je 0x3c003c70 */ 680 L_3C003C63: 681 edx = MEM32(ebx); /* 0x3C003C63: mov edx, dword ptr [ebx] */ 682 PUSH32(esp, 0x3E19999Au); /* 0x3C003C65: push 0x3e19999a */ 683 PUSH32(esp, esi); /* 0x3C003C6A: push esi */ 684 ecx = ebx; /* 0x3C003C6B: mov ecx, ebx */ 685 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3C003C6D: call dword ptr [edx + 4] */ 686 RECOMP_FLAGS_IN(); 687 L_3C003C70: 688 eax = ebp + 0x8; /* 0x3C003C70: lea eax, [ebp + 8] */ 689 PUSH32(esp, eax); /* 0x3C003C73: push eax */ 690 ecx = ebp + (-0x48); /* 0x3C003C74: lea ecx, [ebp - 0x48] */ 691 RECOMP_ICALL(0x3C005110u); /* 0x3C003C77: call 0x3c005110 */ /* not lifted */ 692 RECOMP_FLAGS_IN(); 693 eax = MEM32(eax); /* 0x3C003C7C: mov eax, dword ptr [eax] */ 694 ecx = MEM32(ebp + (-0x44)); /* 0x3C003C7E: mov ecx, dword ptr [ebp - 0x44] */ 695 /* cmp eax, ecx */ /* 0x3C003C81: cmp eax, ecx */ 696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 698 _flag_k = FK_CMP; 699 MEM32(ebp + 0x1C) = eax; /* 0x3C003C83: mov dword ptr [ebp + 0x1c], eax */ 700 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003CA6; /* 0x3C003C86: je 0x3c003ca6 */ 701 L_3C003C88: 702 ecx = MEM32(eax + 0xC); /* 0x3C003C88: mov ecx, dword ptr [eax + 0xc] */ 703 PUSH32(esp, ecx); /* 0x3C003C8B: push ecx */ 704 ecx = MEM32(ebp + (-0x50)); /* 0x3C003C8C: mov ecx, dword ptr [ebp - 0x50] */ 705 RECOMP_ICALL(0x3C003AB0u); /* 0x3C003C8F: call 0x3c003ab0 */ /* not lifted */ 706 RECOMP_FLAGS_IN(); 707 ecx = ebp + 0x1C; /* 0x3C003C94: lea ecx, [ebp + 0x1c] */ 708 RECOMP_ICALL(0x3C005430u); /* 0x3C003C97: call 0x3c005430 */ /* not lifted */ 709 RECOMP_FLAGS_IN(); 710 eax = MEM32(ebp + 0x1C); /* 0x3C003C9C: mov eax, dword ptr [ebp + 0x1c] */ 711 ecx = MEM32(ebp + (-0x44)); /* 0x3C003C9F: mov ecx, dword ptr [ebp - 0x44] */ 712 /* cmp eax, ecx */ /* 0x3C003CA2: cmp eax, ecx */ 713 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 715 _flag_k = FK_CMP; 716 RECOMP_BACKEDGE(); 717 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003C88; /* 0x3C003CA4: jne 0x3c003c88 */ 718 L_3C003CA6: 719 eax = MEM32(ecx); /* 0x3C003CA6: mov eax, dword ptr [ecx] */ 720 PUSH32(esp, ecx); /* 0x3C003CA8: push ecx */ 721 PUSH32(esp, eax); /* 0x3C003CA9: push eax */ 722 edx = ebp + 0x8; /* 0x3C003CAA: lea edx, [ebp + 8] */ 723 PUSH32(esp, edx); /* 0x3C003CAD: push edx */ 724 ecx = ebp + (-0x48); /* 0x3C003CAE: lea ecx, [ebp - 0x48] */ 725 RECOMP_ICALL(0x3C005380u); /* 0x3C003CB1: call 0x3c005380 */ /* not lifted */ 726 RECOMP_FLAGS_IN(); 727 /* cmp ebx, esi */ /* 0x3C003CB6: cmp ebx, esi */ 728 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 730 _flag_k = FK_CMP; 731 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003CC7; /* 0x3C003CB8: je 0x3c003cc7 */ 732 L_3C003CBA: 733 eax = MEM32(ebx); /* 0x3C003CBA: mov eax, dword ptr [ebx] */ 734 PUSH32(esp, 0x3E4CCCCDu); /* 0x3C003CBC: push 0x3e4ccccd */ 735 PUSH32(esp, esi); /* 0x3C003CC1: push esi */ 736 ecx = ebx; /* 0x3C003CC2: mov ecx, ebx */ 737 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3C003CC4: call dword ptr [eax + 4] */ 738 RECOMP_FLAGS_IN(); 739 L_3C003CC7: 740 ecx = MEM32(edi + 0xC); /* 0x3C003CC7: mov ecx, dword ptr [edi + 0xc] */ 741 eax = ebp + (-0x28); /* 0x3C003CCA: lea eax, [ebp - 0x28] */ 742 MEM32(ebp + (-0x28)) = 0x3C00929Cu; /* 0x3C003CCD: mov dword ptr [ebp - 0x28], 0x3c00929c */ 743 edx = MEM32(ecx); /* 0x3C003CD4: mov edx, dword ptr [ecx] */ 744 PUSH32(esp, eax); /* 0x3C003CD6: push eax */ 745 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3C003CD7: call dword ptr [edx + 0x38] */ 746 RECOMP_FLAGS_IN(); 747 /* cmp ebx, esi */ /* 0x3C003CDA: cmp ebx, esi */ 748 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 750 _flag_k = FK_CMP; 751 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003CEB; /* 0x3C003CDC: je 0x3c003ceb */ 752 L_3C003CDE: 753 edx = MEM32(ebx); /* 0x3C003CDE: mov edx, dword ptr [ebx] */ 754 PUSH32(esp, 0x3E800000u); /* 0x3C003CE0: push 0x3e800000 */ 755 PUSH32(esp, esi); /* 0x3C003CE5: push esi */ 756 ecx = ebx; /* 0x3C003CE6: mov ecx, ebx */ 757 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3C003CE8: call dword ptr [edx + 4] */ 758 RECOMP_FLAGS_IN(); 759 L_3C003CEB: 760 eax = MEM32(edi + 0x10); /* 0x3C003CEB: mov eax, dword ptr [edi + 0x10] */ 761 SET_LO8(ecx, MEM8(ebp + 0x20)); /* 0x3C003CEE: mov cl, byte ptr [ebp + 0x20] */ 762 MEM32(ebp + (-0x84)) = 0; /* 0x3C003CF1: mov dword ptr [ebp - 0x84], 0 */ 763 MEM32(ebp + (-0x80)) = 0; /* 0x3C003CFB: mov dword ptr [ebp - 0x80], 0 */ 764 MEM32(ebp + (-0x7C)) = 0; /* 0x3C003D02: mov dword ptr [ebp - 0x7c], 0 */ 765 MEM32(ebp + (-0x78)) = 0; /* 0x3C003D09: mov dword ptr [ebp - 0x78], 0 */ 766 MEM32(ebp + (-0x74)) = 0; /* 0x3C003D10: mov dword ptr [ebp - 0x74], 0 */ 767 MEM32(ebp + (-0x70)) = 0; /* 0x3C003D17: mov dword ptr [ebp - 0x70], 0 */ 768 MEM32(ebp + (-0x6C)) = eax; /* 0x3C003D1E: mov dword ptr [ebp - 0x6c], eax */ 769 MEM32(ebp + (-0x68)) = 0x3ECCCCCDu; /* 0x3C003D21: mov dword ptr [ebp - 0x68], 0x3ecccccd */ 770 MEM32(ebp + (-0x64)) = 0x3F490FDBu; /* 0x3C003D28: mov dword ptr [ebp - 0x64], 0x3f490fdb */ 771 MEM32(ebp + (-0x60)) = 0x3F800000u; /* 0x3C003D2F: mov dword ptr [ebp - 0x60], 0x3f800000 */ 772 MEM8(ebp + (-0x5C)) = (uint8_t)(LO8(ecx)); /* 0x3C003D36: mov byte ptr [ebp - 0x5c], cl */ 773 MEM32(ebp + (-0x58)) = esi; /* 0x3C003D39: mov dword ptr [ebp - 0x58], esi */ 774 MEM32(ebp + (-0x88)) = 0x3C009290u; /* 0x3C003D3C: mov dword ptr [ebp - 0x88], 0x3c009290 */ 775 /* cmp eax, esi */ /* 0x3C003D46: cmp eax, esi */ 776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 778 _flag_k = FK_CMP; 779 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3C003D48: mov byte ptr [ebp - 4], 1 */ 780 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003D69; /* 0x3C003D4C: je 0x3c003d69 */ 781 L_3C003D4E: 782 ecx = MEM32(edi + 0x8); /* 0x3C003D4E: mov ecx, dword ptr [edi + 8] */ 783 PUSH32(esp, 0x3F666666u); /* 0x3C003D51: push 0x3f666666 */ 784 PUSH32(esp, 0x3E800000u); /* 0x3C003D56: push 0x3e800000 */ 785 PUSH32(esp, ebx); /* 0x3C003D5B: push ebx */ 786 edx = ebp + (-0x88); /* 0x3C003D5C: lea edx, [ebp - 0x88] */ 787 PUSH32(esp, edx); /* 0x3C003D62: push edx */ 788 PUSH32(esp, eax); /* 0x3C003D63: push eax */ 789 RECOMP_ICALL(0x3C006A30u); /* 0x3C003D64: call 0x3c006a30 */ /* not lifted */ 790 RECOMP_FLAGS_IN(); 791 L_3C003D69: 792 eax = MEM32(ebp + 0x18); /* 0x3C003D69: mov eax, dword ptr [ebp + 0x18] */ 793 ecx = MEM32(edi + 0x8); /* 0x3C003D6C: mov ecx, dword ptr [edi + 8] */ 794 PUSH32(esp, eax); /* 0x3C003D6F: push eax */ 795 RECOMP_ICALL(0x3C006A00u); /* 0x3C003D70: call 0x3c006a00 */ /* not lifted */ 796 RECOMP_FLAGS_IN(); 797 /* cmp ebx, esi */ /* 0x3C003D75: cmp ebx, esi */ 798 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 800 _flag_k = FK_CMP; 801 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003D93; /* 0x3C003D77: je 0x3c003d93 */ 802 L_3C003D79: 803 edx = MEM32(ebx); /* 0x3C003D79: mov edx, dword ptr [ebx] */ 804 PUSH32(esp, 0x3F733333u); /* 0x3C003D7B: push 0x3f733333 */ 805 PUSH32(esp, esi); /* 0x3C003D80: push esi */ 806 ecx = ebx; /* 0x3C003D81: mov ecx, ebx */ 807 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3C003D83: call dword ptr [edx + 4] */ 808 RECOMP_FLAGS_IN(); 809 eax = MEM32(ebx); /* 0x3C003D86: mov eax, dword ptr [ebx] */ 810 PUSH32(esp, 0x3F800000u); /* 0x3C003D88: push 0x3f800000 */ 811 PUSH32(esp, esi); /* 0x3C003D8D: push esi */ 812 ecx = ebx; /* 0x3C003D8E: mov ecx, ebx */ 813 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3C003D90: call dword ptr [eax + 4] */ 814 RECOMP_FLAGS_IN(); 815 L_3C003D93: 816 eax = MEM32(ebp + (-0x44)); /* 0x3C003D93: mov eax, dword ptr [ebp - 0x44] */ 817 MEM32(ebp + (-0x88)) = 0x3C009284u; /* 0x3C003D96: mov dword ptr [ebp - 0x88], 0x3c009284 */ 818 MEM32(ebp + (-0x54)) = 0x3C0092A4u; /* 0x3C003DA0: mov dword ptr [ebp - 0x54], 0x3c0092a4 */ 819 ecx = MEM32(eax); /* 0x3C003DA7: mov ecx, dword ptr [eax] */ 820 PUSH32(esp, eax); /* 0x3C003DA9: push eax */ 821 PUSH32(esp, ecx); /* 0x3C003DAA: push ecx */ 822 ecx = ebp + 0x20; /* 0x3C003DAB: lea ecx, [ebp + 0x20] */ 823 PUSH32(esp, ecx); /* 0x3C003DAE: push ecx */ 824 ecx = ebp + (-0x48); /* 0x3C003DAF: lea ecx, [ebp - 0x48] */ 825 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C003DB2: mov dword ptr [ebp - 4], 0xffffffff */ 826 RECOMP_ICALL(0x3C005380u); /* 0x3C003DB9: call 0x3c005380 */ /* not lifted */ 827 RECOMP_FLAGS_IN(); 828 edx = MEM32(ebp + (-0x44)); /* 0x3C003DBE: mov edx, dword ptr [ebp - 0x44] */ 829 PUSH32(esp, edx); /* 0x3C003DC1: push edx */ 830 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003DC2: call 0x3c0089de */ /* not lifted */ 831 RECOMP_FLAGS_IN(); 832 eax = MEM32(ebp + (-0x40)); /* 0x3C003DC7: mov eax, dword ptr [ebp - 0x40] */ 833 PUSH32(esp, eax); /* 0x3C003DCA: push eax */ 834 MEM32(ebp + (-0x44)) = esi; /* 0x3C003DCB: mov dword ptr [ebp - 0x44], esi */ 835 MEM32(ebp + (-0x38)) = esi; /* 0x3C003DCE: mov dword ptr [ebp - 0x38], esi */ 836 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003DD1: call 0x3c0089de */ /* not lifted */ 837 RECOMP_FLAGS_IN(); 838 ecx = MEM32(ebp + (-0xC)); /* 0x3C003DD6: mov ecx, dword ptr [ebp - 0xc] */ 839 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 840 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 841 esp = esp + 8; /* 0x3C003DD9: add esp, 8 */ 842 _flag_k = FK_ADD; 843 edi = POP32_VAL(esp); /* 0x3C003DDC: pop edi */ 844 esi = POP32_VAL(esp); /* 0x3C003DDD: pop esi */ 845 ebx = POP32_VAL(esp); /* 0x3C003DDE: pop ebx */ 846 MEM32(FS_BASE + (0)) = ecx; /* 0x3C003DDF: mov dword ptr fs:[0], ecx */ 847 esp = ebp; /* 0x3C003DE6: mov esp, ebp */ 848 ebp = POP32_VAL(esp); /* 0x3C003DE8: pop ebp */ 849 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x3C003DE9: ret 0x1c */ 850 RECOMP_REGS_OUT(); 851 } 852 853 void sub_3C003DF0(void) { 854 int _fpu_cmp = 0; 855 uint32_t _cf = 0; 856 int _df = 1; 857 uint32_t _flag_k = FK_NONE; 858 uint32_t _flag_a = 0, _flag_b = 0; 859 uint32_t _itail_tgt = 0; 860 RECOMP_REGS_LOCALS 861 RECOMP_ENTER(0x3C003DF0u); 862 863 L_3C003DF0: 864 PUSH32(esp, ebp); /* 0x3C003DF0: push ebp */ 865 ebp = esp; /* 0x3C003DF1: mov ebp, esp */ 866 /* test MEM8(ebp + 0x8), 1 */ /* 0x3C003DF3: test byte ptr [ebp + 8], 1 */ 867 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 868 _cf = 0; 869 _flag_k = FK_NARROW(FK_TEST, 24); 870 PUSH32(esp, esi); /* 0x3C003DF7: push esi */ 871 esi = ecx; /* 0x3C003DF8: mov esi, ecx */ 872 MEM32(esi) = 0x3C009284u; /* 0x3C003DFA: mov dword ptr [esi], 0x3c009284 */ 873 if (TEST_Z(_flag_a, _flag_b)) goto L_3C003E0B; /* 0x3C003E00: je 0x3c003e0b */ 874 L_3C003E02: 875 PUSH32(esp, esi); /* 0x3C003E02: push esi */ 876 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003E03: call 0x3c0089de */ /* not lifted */ 877 RECOMP_FLAGS_IN(); 878 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 879 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 880 esp = esp + 4; /* 0x3C003E08: add esp, 4 */ 881 _flag_k = FK_ADD; 882 L_3C003E0B: 883 eax = esi; /* 0x3C003E0B: mov eax, esi */ 884 esi = POP32_VAL(esp); /* 0x3C003E0D: pop esi */ 885 ebp = POP32_VAL(esp); /* 0x3C003E0E: pop ebp */ 886 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C003E0F: ret 4 */ 887 RECOMP_REGS_OUT(); 888 } 889 890 void sub_3C003E20(void) { 891 int _fpu_cmp = 0; 892 uint32_t _cf = 0; 893 int _df = 1; 894 uint32_t _flag_k = FK_NONE; 895 uint32_t _flag_a = 0, _flag_b = 0; 896 uint32_t _itail_tgt = 0; 897 RECOMP_REGS_LOCALS 898 RECOMP_ENTER(0x3C003E20u); 899 900 L_3C003E20: 901 PUSH32(esp, ebp); /* 0x3C003E20: push ebp */ 902 ebp = esp; /* 0x3C003E21: mov ebp, esp */ 903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 905 esp = esp - 0x18u; /* 0x3C003E23: sub esp, 0x18 */ 906 _flag_k = FK_CMP; 907 PUSH32(esp, ebx); /* 0x3C003E26: push ebx */ 908 PUSH32(esp, esi); /* 0x3C003E27: push esi */ 909 PUSH32(esp, edi); /* 0x3C003E28: push edi */ 910 edi = MEM32(ebp + 0x8); /* 0x3C003E29: mov edi, dword ptr [ebp + 8] */ 911 eax = MEM32(edi); /* 0x3C003E2C: mov eax, dword ptr [edi] */ 912 ecx = edi; /* 0x3C003E2E: mov ecx, edi */ 913 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C003E30: call dword ptr [eax + 0xc] */ 914 RECOMP_FLAGS_IN(); 915 ebx = MEM32(ebp + 0xC); /* 0x3C003E33: mov ebx, dword ptr [ebp + 0xc] */ 916 edx = MEM32(ebx); /* 0x3C003E36: mov edx, dword ptr [ebx] */ 917 ecx = ebx; /* 0x3C003E38: mov ecx, ebx */ 918 esi = eax; /* 0x3C003E3A: mov esi, eax */ 919 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C003E3C: call dword ptr [edx + 0xc] */ 920 RECOMP_FLAGS_IN(); 921 ecx = MEM32(eax); /* 0x3C003E3F: mov ecx, dword ptr [eax] */ 922 edx = MEM32(eax + 0x4); /* 0x3C003E41: mov edx, dword ptr [eax + 4] */ 923 eax = MEM32(eax + 0x8); /* 0x3C003E44: mov eax, dword ptr [eax + 8] */ 924 MEM32(ebp + (-0xC)) = ecx; /* 0x3C003E47: mov dword ptr [ebp - 0xc], ecx */ 925 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C003E4A: fld dword ptr [ebp - 0xc] */ 926 _st[0] -= (double)*(float*)ADDR(esi); /* 0x3C003E4D: fsub dword ptr [esi] */ 927 MEM32(ebp + (-0x8)) = edx; /* 0x3C003E4F: mov dword ptr [ebp - 8], edx */ 928 MEM32(ebp + (-0x4)) = eax; /* 0x3C003E52: mov dword ptr [ebp - 4], eax */ 929 PUSH32(esp, 0x14u); /* 0x3C003E55: push 0x14 */ 930 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3C003E57: fstp dword ptr [ebp - 0xc] */ 931 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C003E5A: fld dword ptr [ebp - 8] */ 932 _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x3C003E5D: fsub dword ptr [esi + 4] */ 933 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C003E60: fstp dword ptr [ebp - 8] */ 934 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C003E63: fld dword ptr [ebp - 4] */ 935 _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3C003E66: fsub dword ptr [esi + 8] */ 936 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3C003E69: fstp dword ptr [ebp - 4] */ 937 RECOMP_ICALL(0x3C008B40u); /* 0x3C003E6C: call 0x3c008b40 */ /* not lifted */ 938 RECOMP_FLAGS_IN(); 939 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 940 esi = 0; /* 0x3C003E71: xor esi, esi */ 941 _cf = 0; 942 _flag_k = FK_TEST; 943 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 944 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 945 esp = esp + 4; /* 0x3C003E73: add esp, 4 */ 946 _flag_k = FK_ADD; 947 /* cmp eax, esi */ /* 0x3C003E76: cmp eax, esi */ 948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 950 _flag_k = FK_CMP; 951 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003EB0; /* 0x3C003E78: je 0x3c003eb0 */ 952 L_3C003E7A: 953 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C003E7A: fld dword ptr [ebp - 4] */ 954 edx = MEM32(ebp + (-0xC)); /* 0x3C003E7D: mov edx, dword ptr [ebp - 0xc] */ 955 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3C003E80: fmul dword ptr [ebp - 4] */ 956 ecx = eax + 0x4; /* 0x3C003E83: lea ecx, [eax + 4] */ 957 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C003E86: fld dword ptr [ebp - 8] */ 958 MEM32(ecx) = edx; /* 0x3C003E89: mov dword ptr [ecx], edx */ 959 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3C003E8B: fmul dword ptr [ebp - 8] */ 960 edx = MEM32(ebp + (-0x8)); /* 0x3C003E8E: mov edx, dword ptr [ebp - 8] */ 961 MEM32(ecx + 0x4) = edx; /* 0x3C003E91: mov dword ptr [ecx + 4], edx */ 962 edx = MEM32(ebp + (-0x4)); /* 0x3C003E94: mov edx, dword ptr [ebp - 4] */ 963 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C003E97: faddp st(1) */ 964 MEM32(ecx + 0x8) = edx; /* 0x3C003E99: mov dword ptr [ecx + 8], edx */ 965 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C003E9C: fld dword ptr [ebp - 0xc] */ 966 MEM32(eax + 0x10) = ebx; /* 0x3C003E9F: mov dword ptr [eax + 0x10], ebx */ 967 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3C003EA2: fmul dword ptr [ebp - 0xc] */ 968 MEM32(ebp + 0x8) = eax; /* 0x3C003EA5: mov dword ptr [ebp + 8], eax */ 969 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C003EA8: faddp st(1) */ 970 _st[0] = sqrt(_st[0]); /* 0x3C003EAA: fsqrt */ 971 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3C003EAC: fstp dword ptr [eax] */ 972 goto L_3C003EB3; /* 0x3C003EAE: jmp 0x3c003eb3 */ 973 L_3C003EB0: 974 MEM32(ebp + 0x8) = esi; /* 0x3C003EB0: mov dword ptr [ebp + 8], esi */ 975 L_3C003EB3: 976 PUSH32(esp, 0x14u); /* 0x3C003EB3: push 0x14 */ 977 RECOMP_ICALL(0x3C008B40u); /* 0x3C003EB5: call 0x3c008b40 */ /* not lifted */ 978 RECOMP_FLAGS_IN(); 979 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 981 esp = esp + 4; /* 0x3C003EBA: add esp, 4 */ 982 _flag_k = FK_ADD; 983 /* cmp eax, esi */ /* 0x3C003EBD: cmp eax, esi */ 984 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 986 _flag_k = FK_CMP; 987 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003F0C; /* 0x3C003EBF: je 0x3c003f0c */ 988 L_3C003EC1: 989 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C003EC1: fld dword ptr [ebp - 0xc] */ 990 ecx = eax + 0x4; /* 0x3C003EC4: lea ecx, [eax + 4] */ 991 _st[0] = -_st[0]; /* 0x3C003EC7: fchs */ 992 MEM32(eax + 0x10) = edi; /* 0x3C003EC9: mov dword ptr [eax + 0x10], edi */ 993 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3C003ECC: fstp dword ptr [ebp - 0x18] */ 994 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C003ECF: fld dword ptr [ebp - 8] */ 995 edx = MEM32(ebp + (-0x18)); /* 0x3C003ED2: mov edx, dword ptr [ebp - 0x18] */ 996 _st[0] = -_st[0]; /* 0x3C003ED5: fchs */ 997 MEM32(ecx) = edx; /* 0x3C003ED7: mov dword ptr [ecx], edx */ 998 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C003ED9: fstp dword ptr [ebp - 0x14] */ 999 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C003EDC: fld dword ptr [ebp - 4] */ 1000 edx = MEM32(ebp + (-0x14)); /* 0x3C003EDF: mov edx, dword ptr [ebp - 0x14] */ 1001 _st[0] = -_st[0]; /* 0x3C003EE2: fchs */ 1002 MEM32(ecx + 0x4) = edx; /* 0x3C003EE4: mov dword ptr [ecx + 4], edx */ 1003 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3C003EE7: fstp dword ptr [ebp - 0x10] */ 1004 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C003EEA: fld dword ptr [ebp - 4] */ 1005 edx = MEM32(ebp + (-0x10)); /* 0x3C003EED: mov edx, dword ptr [ebp - 0x10] */ 1006 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3C003EF0: fmul dword ptr [ebp - 4] */ 1007 MEM32(ecx + 0x8) = edx; /* 0x3C003EF3: mov dword ptr [ecx + 8], edx */ 1008 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C003EF6: fld dword ptr [ebp - 8] */ 1009 esi = eax; /* 0x3C003EF9: mov esi, eax */ 1010 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3C003EFB: fmul dword ptr [ebp - 8] */ 1011 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C003EFE: faddp st(1) */ 1012 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C003F00: fld dword ptr [ebp - 0xc] */ 1013 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3C003F03: fmul dword ptr [ebp - 0xc] */ 1014 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C003F06: faddp st(1) */ 1015 _st[0] = sqrt(_st[0]); /* 0x3C003F08: fsqrt */ 1016 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3C003F0A: fstp dword ptr [eax] */ 1017 L_3C003F0C: 1018 eax = MEM32(ebp + 0x8); /* 0x3C003F0C: mov eax, dword ptr [ebp + 8] */ 1019 edx = ebp + 0x8; /* 0x3C003F0F: lea edx, [ebp + 8] */ 1020 PUSH32(esp, edx); /* 0x3C003F12: push edx */ 1021 ecx = edi + 0x2C; /* 0x3C003F13: lea ecx, [edi + 0x2c] */ 1022 MEM32(ebp + 0x8) = eax; /* 0x3C003F16: mov dword ptr [ebp + 8], eax */ 1023 eax = MEM32(ecx + 0x8); /* 0x3C003F19: mov eax, dword ptr [ecx + 8] */ 1024 PUSH32(esp, 1); /* 0x3C003F1C: push 1 */ 1025 PUSH32(esp, eax); /* 0x3C003F1E: push eax */ 1026 RECOMP_ICALL(0x3C005480u); /* 0x3C003F1F: call 0x3c005480 */ /* not lifted */ 1027 RECOMP_FLAGS_IN(); 1028 eax = MEM32(ebx + 0x34); /* 0x3C003F24: mov eax, dword ptr [ebx + 0x34] */ 1029 edx = ebp + 0x8; /* 0x3C003F27: lea edx, [ebp + 8] */ 1030 PUSH32(esp, edx); /* 0x3C003F2A: push edx */ 1031 ecx = ebx + 0x2C; /* 0x3C003F2B: lea ecx, [ebx + 0x2c] */ 1032 PUSH32(esp, 1); /* 0x3C003F2E: push 1 */ 1033 PUSH32(esp, eax); /* 0x3C003F30: push eax */ 1034 MEM32(ebp + 0x8) = esi; /* 0x3C003F31: mov dword ptr [ebp + 8], esi */ 1035 RECOMP_ICALL(0x3C005480u); /* 0x3C003F34: call 0x3c005480 */ /* not lifted */ 1036 RECOMP_FLAGS_IN(); 1037 edi = POP32_VAL(esp); /* 0x3C003F39: pop edi */ 1038 esi = POP32_VAL(esp); /* 0x3C003F3A: pop esi */ 1039 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1040 eax = 0; /* 0x3C003F3B: xor eax, eax */ 1041 _cf = 0; 1042 _flag_k = FK_TEST; 1043 ebx = POP32_VAL(esp); /* 0x3C003F3D: pop ebx */ 1044 esp = ebp; /* 0x3C003F3E: mov esp, ebp */ 1045 ebp = POP32_VAL(esp); /* 0x3C003F40: pop ebp */ 1046 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C003F41: ret 8 */ 1047 RECOMP_REGS_OUT(); 1048 } 1049 1050 void sub_3C003F50(void) { 1051 int _fpu_cmp = 0; 1052 uint32_t _cf = 0; 1053 int _df = 1; 1054 uint32_t _flag_k = FK_NONE; 1055 uint32_t _flag_a = 0, _flag_b = 0; 1056 uint32_t _itail_tgt = 0; 1057 RECOMP_REGS_LOCALS 1058 RECOMP_ENTER(0x3C003F50u); 1059 1060 L_3C003F50: 1061 PUSH32(esp, ebp); /* 0x3C003F50: push ebp */ 1062 ebp = esp; /* 0x3C003F51: mov ebp, esp */ 1063 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1065 esp = esp - 8; /* 0x3C003F53: sub esp, 8 */ 1066 _flag_k = FK_CMP; 1067 PUSH32(esp, ebx); /* 0x3C003F56: push ebx */ 1068 PUSH32(esp, esi); /* 0x3C003F57: push esi */ 1069 esi = ecx + 0xC; /* 0x3C003F58: lea esi, [ecx + 0xc] */ 1070 MEM32(ecx) = 0x3C0092A4u; /* 0x3C003F5B: mov dword ptr [ecx], 0x3c0092a4 */ 1071 ecx = MEM32(esi + 0x10); /* 0x3C003F61: mov ecx, dword ptr [esi + 0x10] */ 1072 /* test ecx, ecx */ /* 0x3C003F64: test ecx, ecx */ 1073 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1074 _cf = 0; 1075 _flag_k = FK_TEST; 1076 PUSH32(esp, edi); /* 0x3C003F66: push edi */ 1077 edi = MEM32(esi + 0x4); /* 0x3C003F67: mov edi, dword ptr [esi + 4] */ 1078 eax = MEM32(edi); /* 0x3C003F6A: mov eax, dword ptr [edi] */ 1079 MEM32(ebp + (-0x4)) = eax; /* 0x3C003F6C: mov dword ptr [ebp - 4], eax */ 1080 if (TEST_Z(_flag_a, _flag_b)) goto L_3C003FCC; /* 0x3C003F6F: je 0x3c003fcc */ 1081 L_3C003F71: 1082 ecx = eax; /* 0x3C003F71: mov ecx, eax */ 1083 /* cmp eax, ecx */ /* 0x3C003F73: cmp eax, ecx */ 1084 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1086 _flag_k = FK_CMP; 1087 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003FCC; /* 0x3C003F75: jne 0x3c003fcc */ 1088 L_3C003F77: 1089 /* cmp edi, edi */ /* 0x3C003F77: cmp edi, edi */ 1090 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1092 _flag_k = FK_CMP; 1093 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003FCC; /* 0x3C003F79: jne 0x3c003fcc */ 1094 L_3C003F7B: 1095 ebx = MEM32(edi + 0x4); /* 0x3C003F7B: mov ebx, dword ptr [edi + 4] */ 1096 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C003F7E: cmp ebx, dword ptr [esi + 8] */ 1097 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1099 _flag_k = FK_CMP; 1100 edi = ebx; /* 0x3C003F81: mov edi, ebx */ 1101 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003FA4; /* 0x3C003F83: je 0x3c003fa4 */ 1102 L_3C003F85: 1103 eax = MEM32(edi + 0x8); /* 0x3C003F85: mov eax, dword ptr [edi + 8] */ 1104 PUSH32(esp, eax); /* 0x3C003F88: push eax */ 1105 ecx = esi; /* 0x3C003F89: mov ecx, esi */ 1106 RECOMP_ICALL(0x3C005A90u); /* 0x3C003F8B: call 0x3c005a90 */ /* not lifted */ 1107 RECOMP_FLAGS_IN(); 1108 edi = MEM32(edi); /* 0x3C003F90: mov edi, dword ptr [edi] */ 1109 PUSH32(esp, ebx); /* 0x3C003F92: push ebx */ 1110 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003F93: call 0x3c0089de */ /* not lifted */ 1111 RECOMP_FLAGS_IN(); 1112 eax = MEM32(esi + 0x8); /* 0x3C003F98: mov eax, dword ptr [esi + 8] */ 1113 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1115 esp = esp + 4; /* 0x3C003F9B: add esp, 4 */ 1116 _flag_k = FK_ADD; 1117 /* cmp edi, eax */ /* 0x3C003F9E: cmp edi, eax */ 1118 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1120 _flag_k = FK_CMP; 1121 ebx = edi; /* 0x3C003FA0: mov ebx, edi */ 1122 RECOMP_BACKEDGE(); 1123 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003F85; /* 0x3C003FA2: jne 0x3c003f85 */ 1124 L_3C003FA4: 1125 ecx = MEM32(esi + 0x4); /* 0x3C003FA4: mov ecx, dword ptr [esi + 4] */ 1126 edx = MEM32(esi + 0x8); /* 0x3C003FA7: mov edx, dword ptr [esi + 8] */ 1127 MEM32(ecx + 0x4) = edx; /* 0x3C003FAA: mov dword ptr [ecx + 4], edx */ 1128 eax = MEM32(esi + 0x4); /* 0x3C003FAD: mov eax, dword ptr [esi + 4] */ 1129 MEM32(esi + 0x10) = 0; /* 0x3C003FB0: mov dword ptr [esi + 0x10], 0 */ 1130 MEM32(eax) = eax; /* 0x3C003FB7: mov dword ptr [eax], eax */ 1131 eax = MEM32(esi + 0x4); /* 0x3C003FB9: mov eax, dword ptr [esi + 4] */ 1132 MEM32(eax + 0x8) = eax; /* 0x3C003FBC: mov dword ptr [eax + 8], eax */ 1133 eax = ebp + (-0x8); /* 0x3C003FBF: lea eax, [ebp - 8] */ 1134 PUSH32(esp, eax); /* 0x3C003FC2: push eax */ 1135 ecx = esi; /* 0x3C003FC3: mov ecx, esi */ 1136 RECOMP_ICALL(0x3C005110u); /* 0x3C003FC5: call 0x3c005110 */ /* not lifted */ 1137 RECOMP_FLAGS_IN(); 1138 goto L_3C003FED; /* 0x3C003FCA: jmp 0x3c003fed */ 1139 L_3C003FCC: 1140 /* cmp eax, edi */ /* 0x3C003FCC: cmp eax, edi */ 1141 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1143 _flag_k = FK_CMP; 1144 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003FED; /* 0x3C003FCE: je 0x3c003fed */ 1145 L_3C003FD0: 1146 ecx = ebp + (-0x4); /* 0x3C003FD0: lea ecx, [ebp - 4] */ 1147 ebx = eax; /* 0x3C003FD3: mov ebx, eax */ 1148 RECOMP_ICALL(0x3C005430u); /* 0x3C003FD5: call 0x3c005430 */ /* not lifted */ 1149 RECOMP_FLAGS_IN(); 1150 PUSH32(esp, ebx); /* 0x3C003FDA: push ebx */ 1151 ecx = ebp + (-0x8); /* 0x3C003FDB: lea ecx, [ebp - 8] */ 1152 PUSH32(esp, ecx); /* 0x3C003FDE: push ecx */ 1153 ecx = esi; /* 0x3C003FDF: mov ecx, esi */ 1154 RECOMP_ICALL(0x3C005690u); /* 0x3C003FE1: call 0x3c005690 */ /* not lifted */ 1155 RECOMP_FLAGS_IN(); 1156 eax = MEM32(ebp + (-0x4)); /* 0x3C003FE6: mov eax, dword ptr [ebp - 4] */ 1157 /* cmp eax, edi */ /* 0x3C003FE9: cmp eax, edi */ 1158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1160 _flag_k = FK_CMP; 1161 RECOMP_BACKEDGE(); 1162 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003FD0; /* 0x3C003FEB: jne 0x3c003fd0 */ 1163 L_3C003FED: 1164 edx = MEM32(esi + 0x4); /* 0x3C003FED: mov edx, dword ptr [esi + 4] */ 1165 PUSH32(esp, edx); /* 0x3C003FF0: push edx */ 1166 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003FF1: call 0x3c0089de */ /* not lifted */ 1167 RECOMP_FLAGS_IN(); 1168 eax = MEM32(esi + 0x8); /* 0x3C003FF6: mov eax, dword ptr [esi + 8] */ 1169 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1170 edi = 0; /* 0x3C003FF9: xor edi, edi */ 1171 _cf = 0; 1172 _flag_k = FK_TEST; 1173 PUSH32(esp, eax); /* 0x3C003FFB: push eax */ 1174 MEM32(esi + 0x4) = edi; /* 0x3C003FFC: mov dword ptr [esi + 4], edi */ 1175 MEM32(esi + 0x10) = edi; /* 0x3C003FFF: mov dword ptr [esi + 0x10], edi */ 1176 RECOMP_ICALL(0x3C0089DEu); /* 0x3C004002: call 0x3c0089de */ /* not lifted */ 1177 RECOMP_FLAGS_IN(); 1178 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1180 esp = esp + 8; /* 0x3C004007: add esp, 8 */ 1181 _flag_k = FK_ADD; 1182 MEM32(esi + 0x8) = edi; /* 0x3C00400A: mov dword ptr [esi + 8], edi */ 1183 edi = POP32_VAL(esp); /* 0x3C00400D: pop edi */ 1184 esi = POP32_VAL(esp); /* 0x3C00400E: pop esi */ 1185 ebx = POP32_VAL(esp); /* 0x3C00400F: pop ebx */ 1186 esp = ebp; /* 0x3C004010: mov esp, ebp */ 1187 ebp = POP32_VAL(esp); /* 0x3C004012: pop ebp */ 1188 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004013: ret */ 1189 RECOMP_REGS_OUT(); 1190 } 1191 1192 void sub_3C003FED(void) { 1193 int _fpu_cmp = 0; 1194 uint32_t _cf = 0; 1195 int _df = 1; 1196 uint32_t _flag_k = FK_NONE; 1197 uint32_t _flag_a = 0, _flag_b = 0; 1198 uint32_t _itail_tgt = 0; 1199 RECOMP_REGS_LOCALS 1200 RECOMP_ENTER(0x3C003FEDu); 1201 1202 L_3C003FED: 1203 edx = MEM32(esi + 0x4); /* 0x3C003FED: mov edx, dword ptr [esi + 4] */ 1204 PUSH32(esp, edx); /* 0x3C003FF0: push edx */ 1205 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003FF1: call 0x3c0089de */ /* not lifted */ 1206 RECOMP_FLAGS_IN(); 1207 eax = MEM32(esi + 0x8); /* 0x3C003FF6: mov eax, dword ptr [esi + 8] */ 1208 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1209 edi = 0; /* 0x3C003FF9: xor edi, edi */ 1210 _cf = 0; 1211 _flag_k = FK_TEST; 1212 PUSH32(esp, eax); /* 0x3C003FFB: push eax */ 1213 MEM32(esi + 0x4) = edi; /* 0x3C003FFC: mov dword ptr [esi + 4], edi */ 1214 MEM32(esi + 0x10) = edi; /* 0x3C003FFF: mov dword ptr [esi + 0x10], edi */ 1215 RECOMP_ICALL(0x3C0089DEu); /* 0x3C004002: call 0x3c0089de */ /* not lifted */ 1216 RECOMP_FLAGS_IN(); 1217 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1218 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1219 esp = esp + 8; /* 0x3C004007: add esp, 8 */ 1220 _flag_k = FK_ADD; 1221 MEM32(esi + 0x8) = edi; /* 0x3C00400A: mov dword ptr [esi + 8], edi */ 1222 edi = POP32_VAL(esp); /* 0x3C00400D: pop edi */ 1223 esi = POP32_VAL(esp); /* 0x3C00400E: pop esi */ 1224 ebx = POP32_VAL(esp); /* 0x3C00400F: pop ebx */ 1225 esp = ebp; /* 0x3C004010: mov esp, ebp */ 1226 ebp = POP32_VAL(esp); /* 0x3C004012: pop ebp */ 1227 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004013: ret */ 1228 RECOMP_REGS_OUT(); 1229 } 1230 1231 void sub_3C004020(void) { 1232 int _fpu_cmp = 0; 1233 uint32_t _cf = 0; 1234 int _df = 1; 1235 uint32_t _flag_k = FK_NONE; 1236 uint32_t _flag_a = 0, _flag_b = 0; 1237 uint32_t _itail_tgt = 0; 1238 RECOMP_REGS_LOCALS 1239 RECOMP_ENTER(0x3C004020u); 1240 1241 L_3C004020: 1242 PUSH32(esp, ebp); /* 0x3C004020: push ebp */ 1243 ebp = esp; /* 0x3C004021: mov ebp, esp */ 1244 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 1245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1246 esp = esp - 0x30u; /* 0x3C004023: sub esp, 0x30 */ 1247 _flag_k = FK_CMP; 1248 PUSH32(esp, ebx); /* 0x3C004026: push ebx */ 1249 ebx = MEM32(ebp + 0xC); /* 0x3C004027: mov ebx, dword ptr [ebp + 0xc] */ 1250 eax = MEM32(ebx); /* 0x3C00402A: mov eax, dword ptr [ebx] */ 1251 PUSH32(esp, esi); /* 0x3C00402C: push esi */ 1252 PUSH32(esp, edi); /* 0x3C00402D: push edi */ 1253 edi = ecx; /* 0x3C00402E: mov edi, ecx */ 1254 ecx = ebx; /* 0x3C004030: mov ecx, ebx */ 1255 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C004032: call dword ptr [eax + 0xc] */ 1256 RECOMP_FLAGS_IN(); 1257 esi = MEM32(ebp + 0x8); /* 0x3C004035: mov esi, dword ptr [ebp + 8] */ 1258 edx = MEM32(esi); /* 0x3C004038: mov edx, dword ptr [esi] */ 1259 ecx = esi; /* 0x3C00403A: mov ecx, esi */ 1260 MEM32(ebp + 0xC) = eax; /* 0x3C00403C: mov dword ptr [ebp + 0xc], eax */ 1261 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C00403F: call dword ptr [edx + 0xc] */ 1262 RECOMP_FLAGS_IN(); 1263 ecx = MEM32(ebp + 0xC); /* 0x3C004042: mov ecx, dword ptr [ebp + 0xc] */ 1264 fp_push(*(float*)&MEM32(ecx)); /* 0x3C004045: fld dword ptr [ecx] */ 1265 edx = MEM32(ebx); /* 0x3C004047: mov edx, dword ptr [ebx] */ 1266 _st[0] -= (double)*(float*)ADDR(eax); /* 0x3C004049: fsub dword ptr [eax] */ 1267 ecx = ebx; /* 0x3C00404B: mov ecx, ebx */ 1268 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3C00404D: fstp dword ptr [ebp + 0xc] */ 1269 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C004050: call dword ptr [edx + 0xc] */ 1270 RECOMP_FLAGS_IN(); 1271 edx = eax; /* 0x3C004053: mov edx, eax */ 1272 eax = MEM32(esi); /* 0x3C004055: mov eax, dword ptr [esi] */ 1273 ecx = esi; /* 0x3C004057: mov ecx, esi */ 1274 MEM32(ebp + (-0x4)) = edx; /* 0x3C004059: mov dword ptr [ebp - 4], edx */ 1275 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C00405C: call dword ptr [eax + 0xc] */ 1276 RECOMP_FLAGS_IN(); 1277 ecx = MEM32(ebp + (-0x4)); /* 0x3C00405F: mov ecx, dword ptr [ebp - 4] */ 1278 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x3C004062: fld dword ptr [ecx + 8] */ 1279 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x3C004065: fsub dword ptr [eax + 8] */ 1280 fp_push(_st[0]); /* 0x3C004068: fld st(0) */ 1281 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3C00406A: fmulp st(1) */ 1282 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3C00406C: fld dword ptr [ebp + 0xc] */ 1283 _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x3C00406F: fmul dword ptr [ebp + 0xc] */ 1284 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C004072: faddp st(1) */ 1285 _st[0] = sqrt(_st[0]); /* 0x3C004074: fsqrt */ 1286 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x8)); /* 0x3C004076: fcomp dword ptr [edi + 8] */ 1287 fp_pop(); 1288 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004079: fnstsw ax */ 1289 /* test HI8(eax), 1 */ /* 0x3C00407B: test ah, 1 */ 1290 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1291 _cf = 0; 1292 _flag_k = FK_NARROW(FK_TEST, 24); 1293 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0041A0; /* 0x3C00407E: je 0x3c0041a0 */ 1294 L_3C004084: 1295 eax = MEM32(edi + 0x10); /* 0x3C004084: mov eax, dword ptr [edi + 0x10] */ 1296 edx = esi; /* 0x3C004087: mov edx, esi */ 1297 ecx = ebp + (-0x4); /* 0x3C004089: lea ecx, [ebp - 4] */ 1298 MEM32(ebp + (-0x4)) = edx; /* 0x3C00408C: mov dword ptr [ebp - 4], edx */ 1299 PUSH32(esp, ecx); /* 0x3C00408F: push ecx */ 1300 edx = ebp + (-0xC); /* 0x3C004090: lea edx, [ebp - 0xc] */ 1301 esi = edi + 0xC; /* 0x3C004093: lea esi, [edi + 0xc] */ 1302 PUSH32(esp, edx); /* 0x3C004096: push edx */ 1303 ecx = esi; /* 0x3C004097: mov ecx, esi */ 1304 MEM32(ebp + 0xC) = ebx; /* 0x3C004099: mov dword ptr [ebp + 0xc], ebx */ 1305 MEM32(ebp + (-0x10)) = eax; /* 0x3C00409C: mov dword ptr [ebp - 0x10], eax */ 1306 RECOMP_ICALL(0x3C005A50u); /* 0x3C00409F: call 0x3c005a50 */ /* not lifted */ 1307 RECOMP_FLAGS_IN(); 1308 eax = MEM32(eax); /* 0x3C0040A4: mov eax, dword ptr [eax] */ 1309 ecx = MEM32(esi + 0x4); /* 0x3C0040A6: mov ecx, dword ptr [esi + 4] */ 1310 /* cmp eax, ecx */ /* 0x3C0040A9: cmp eax, ecx */ 1311 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1313 _flag_k = FK_CMP; 1314 MEM32(ebp + (-0x8)) = eax; /* 0x3C0040AB: mov dword ptr [ebp - 8], eax */ 1315 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0040BD; /* 0x3C0040AE: je 0x3c0040bd */ 1316 L_3C0040B0: 1317 edx = MEM32(ebp + (-0x4)); /* 0x3C0040B0: mov edx, dword ptr [ebp - 4] */ 1318 /* cmp edx, MEM32(eax + 0xC) */ /* 0x3C0040B3: cmp edx, dword ptr [eax + 0xc] */ 1319 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 1320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1321 _flag_k = FK_CMP; 1322 if (CMP_B(_flag_a, _flag_b)) goto L_3C0040BD; /* 0x3C0040B6: jb 0x3c0040bd */ 1323 L_3C0040B8: 1324 eax = ebp + (-0x8); /* 0x3C0040B8: lea eax, [ebp - 8] */ 1325 goto L_3C0040C3; /* 0x3C0040BB: jmp 0x3c0040c3 */ 1326 L_3C0040BD: 1327 MEM32(ebp + (-0xC)) = ecx; /* 0x3C0040BD: mov dword ptr [ebp - 0xc], ecx */ 1328 eax = ebp + (-0xC); /* 0x3C0040C0: lea eax, [ebp - 0xc] */ 1329 L_3C0040C3: 1330 ecx = MEM32(ebp + (-0x10)); /* 0x3C0040C3: mov ecx, dword ptr [ebp - 0x10] */ 1331 /* cmp MEM32(eax), ecx */ /* 0x3C0040C6: cmp dword ptr [eax], ecx */ 1332 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ecx); 1333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1334 _flag_k = FK_CMP; 1335 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0041A0; /* 0x3C0040C8: jne 0x3c0041a0 */ 1336 L_3C0040CE: 1337 edi = MEM32(edi + 0x10); /* 0x3C0040CE: mov edi, dword ptr [edi + 0x10] */ 1338 edx = ebp + 0xC; /* 0x3C0040D1: lea edx, [ebp + 0xc] */ 1339 PUSH32(esp, edx); /* 0x3C0040D4: push edx */ 1340 ecx = esi; /* 0x3C0040D5: mov ecx, esi */ 1341 RECOMP_ICALL(0x3C005DA0u); /* 0x3C0040D7: call 0x3c005da0 */ /* not lifted */ 1342 RECOMP_FLAGS_IN(); 1343 ecx = MEM32(esi + 0x4); /* 0x3C0040DC: mov ecx, dword ptr [esi + 4] */ 1344 /* cmp eax, ecx */ /* 0x3C0040DF: cmp eax, ecx */ 1345 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1347 _flag_k = FK_CMP; 1348 MEM32(ebp + (-0x10)) = eax; /* 0x3C0040E1: mov dword ptr [ebp - 0x10], eax */ 1349 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0040F3; /* 0x3C0040E4: je 0x3c0040f3 */ 1350 L_3C0040E6: 1351 edx = MEM32(ebp + 0xC); /* 0x3C0040E6: mov edx, dword ptr [ebp + 0xc] */ 1352 /* cmp edx, MEM32(eax + 0xC) */ /* 0x3C0040E9: cmp edx, dword ptr [eax + 0xc] */ 1353 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 1354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1355 _flag_k = FK_CMP; 1356 if (CMP_B(_flag_a, _flag_b)) goto L_3C0040F3; /* 0x3C0040EC: jb 0x3c0040f3 */ 1357 L_3C0040EE: 1358 eax = ebp + (-0x10); /* 0x3C0040EE: lea eax, [ebp - 0x10] */ 1359 goto L_3C0040F9; /* 0x3C0040F1: jmp 0x3c0040f9 */ 1360 L_3C0040F3: 1361 MEM32(ebp + (-0xC)) = ecx; /* 0x3C0040F3: mov dword ptr [ebp - 0xc], ecx */ 1362 eax = ebp + (-0xC); /* 0x3C0040F6: lea eax, [ebp - 0xc] */ 1363 L_3C0040F9: 1364 /* cmp MEM32(eax), edi */ /* 0x3C0040F9: cmp dword ptr [eax], edi */ 1365 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi); 1366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1367 _flag_k = FK_CMP; 1368 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0041A0; /* 0x3C0040FB: jne 0x3c0041a0 */ 1369 L_3C004101: 1370 eax = ebp + 0xC; /* 0x3C004101: lea eax, [ebp + 0xc] */ 1371 PUSH32(esp, eax); /* 0x3C004104: push eax */ 1372 ecx = ebp + (-0x14); /* 0x3C004105: lea ecx, [ebp - 0x14] */ 1373 PUSH32(esp, ecx); /* 0x3C004108: push ecx */ 1374 ecx = esi; /* 0x3C004109: mov ecx, esi */ 1375 RECOMP_ICALL(0x3C005130u); /* 0x3C00410B: call 0x3c005130 */ /* not lifted */ 1376 RECOMP_FLAGS_IN(); 1377 edx = MEM32(ebx); /* 0x3C004110: mov edx, dword ptr [ebx] */ 1378 ecx = ebx; /* 0x3C004112: mov ecx, ebx */ 1379 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C004114: call dword ptr [edx + 0xc] */ 1380 RECOMP_FLAGS_IN(); 1381 ecx = MEM32(ebp + 0x8); /* 0x3C004117: mov ecx, dword ptr [ebp + 8] */ 1382 esi = eax; /* 0x3C00411A: mov esi, eax */ 1383 eax = MEM32(ecx); /* 0x3C00411C: mov eax, dword ptr [ecx] */ 1384 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C00411E: call dword ptr [eax + 0xc] */ 1385 RECOMP_FLAGS_IN(); 1386 ecx = MEM32(esi); /* 0x3C004121: mov ecx, dword ptr [esi] */ 1387 edx = MEM32(esi + 0x4); /* 0x3C004123: mov edx, dword ptr [esi + 4] */ 1388 MEM32(ebp + (-0x18)) = ecx; /* 0x3C004126: mov dword ptr [ebp - 0x18], ecx */ 1389 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3C004129: fld dword ptr [ebp - 0x18] */ 1390 _st[0] += (double)*(float*)ADDR(eax); /* 0x3C00412C: fadd dword ptr [eax] */ 1391 ecx = MEM32(esi + 0x8); /* 0x3C00412E: mov ecx, dword ptr [esi + 8] */ 1392 MEM32(ebp + (-0x14)) = edx; /* 0x3C004131: mov dword ptr [ebp - 0x14], edx */ 1393 MEM32(ebp + (-0x10)) = ecx; /* 0x3C004134: mov dword ptr [ebp - 0x10], ecx */ 1394 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3C004137: fstp dword ptr [ebp - 0x18] */ 1395 edx = MEM32(ebp + (-0x18)); /* 0x3C00413A: mov edx, dword ptr [ebp - 0x18] */ 1396 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C00413D: fld dword ptr [ebp - 0x14] */ 1397 MEM32(ebp + (-0x24)) = edx; /* 0x3C004140: mov dword ptr [ebp - 0x24], edx */ 1398 _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x3C004143: fadd dword ptr [eax + 4] */ 1399 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C004146: fstp dword ptr [ebp - 0x14] */ 1400 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3C004149: fld dword ptr [ebp - 0x10] */ 1401 _st[0] += (double)*(float*)ADDR(eax + 0x8); /* 0x3C00414C: fadd dword ptr [eax + 8] */ 1402 eax = MEM32(ebp + (-0x14)); /* 0x3C00414F: mov eax, dword ptr [ebp - 0x14] */ 1403 MEM32(ebp + (-0x20)) = eax; /* 0x3C004152: mov dword ptr [ebp - 0x20], eax */ 1404 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3C004155: fstp dword ptr [ebp - 0x10] */ 1405 ecx = MEM32(ebp + (-0x10)); /* 0x3C004158: mov ecx, dword ptr [ebp - 0x10] */ 1406 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3C00415B: fld dword ptr [ebp - 0x18] */ 1407 MEM32(ebp + (-0x1C)) = ecx; /* 0x3C00415E: mov dword ptr [ebp - 0x1c], ecx */ 1408 _st[0] *= (double)*(float*)ADDR(0x3C00918C); /* 0x3C004161: fmul dword ptr [0x3c00918c] */ 1409 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3C004167: fstp dword ptr [ebp - 0x24] */ 1410 edx = MEM32(ebp + (-0x24)); /* 0x3C00416A: mov edx, dword ptr [ebp - 0x24] */ 1411 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3C00416D: fld dword ptr [ebp - 0x20] */ 1412 MEM32(ebp + (-0x30)) = edx; /* 0x3C004170: mov dword ptr [ebp - 0x30], edx */ 1413 _st[0] *= (double)*(float*)ADDR(0x3C00918C); /* 0x3C004173: fmul dword ptr [0x3c00918c] */ 1414 edx = ebp + (-0x30); /* 0x3C004179: lea edx, [ebp - 0x30] */ 1415 PUSH32(esp, edx); /* 0x3C00417C: push edx */ 1416 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3C00417D: fstp dword ptr [ebp - 0x20] */ 1417 eax = MEM32(ebp + (-0x20)); /* 0x3C004180: mov eax, dword ptr [ebp - 0x20] */ 1418 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3C004183: fld dword ptr [ebp - 0x1c] */ 1419 MEM32(ebp + (-0x2C)) = eax; /* 0x3C004186: mov dword ptr [ebp - 0x2c], eax */ 1420 _st[0] *= (double)*(float*)ADDR(0x3C00918C); /* 0x3C004189: fmul dword ptr [0x3c00918c] */ 1421 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3C00418F: fstp dword ptr [ebp - 0x1c] */ 1422 ecx = MEM32(ebp + (-0x1C)); /* 0x3C004192: mov ecx, dword ptr [ebp - 0x1c] */ 1423 MEM32(ebp + (-0x28)) = ecx; /* 0x3C004195: mov dword ptr [ebp - 0x28], ecx */ 1424 ecx = MEM32(ebp + (-0x4)); /* 0x3C004198: mov ecx, dword ptr [ebp - 4] */ 1425 RECOMP_ICALL(0x3C007C00u); /* 0x3C00419B: call 0x3c007c00 */ /* not lifted */ 1426 RECOMP_FLAGS_IN(); 1427 L_3C0041A0: 1428 edi = POP32_VAL(esp); /* 0x3C0041A0: pop edi */ 1429 esi = POP32_VAL(esp); /* 0x3C0041A1: pop esi */ 1430 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1431 eax = 0; /* 0x3C0041A2: xor eax, eax */ 1432 _cf = 0; 1433 _flag_k = FK_TEST; 1434 ebx = POP32_VAL(esp); /* 0x3C0041A4: pop ebx */ 1435 esp = ebp; /* 0x3C0041A5: mov esp, ebp */ 1436 ebp = POP32_VAL(esp); /* 0x3C0041A7: pop ebp */ 1437 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C0041A8: ret 8 */ 1438 RECOMP_REGS_OUT(); 1439 } 1440 1441 void sub_3C0041B0(void) { 1442 int _fpu_cmp = 0; 1443 uint32_t _cf = 0; 1444 int _df = 1; 1445 uint32_t _flag_k = FK_NONE; 1446 uint32_t _flag_a = 0, _flag_b = 0; 1447 uint32_t _itail_tgt = 0; 1448 RECOMP_REGS_LOCALS 1449 RECOMP_ENTER(0x3C0041B0u); 1450 1451 L_3C0041B0: 1452 PUSH32(esp, ebp); /* 0x3C0041B0: push ebp */ 1453 ebp = esp; /* 0x3C0041B1: mov ebp, esp */ 1454 PUSH32(esp, esi); /* 0x3C0041B3: push esi */ 1455 esi = ecx; /* 0x3C0041B4: mov esi, ecx */ 1456 RECOMP_ICALL(0x3C003F50u); /* 0x3C0041B6: call 0x3c003f50 */ /* not lifted */ 1457 RECOMP_FLAGS_IN(); 1458 /* test MEM8(ebp + 0x8), 1 */ /* 0x3C0041BB: test byte ptr [ebp + 8], 1 */ 1459 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1460 _cf = 0; 1461 _flag_k = FK_NARROW(FK_TEST, 24); 1462 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0041CA; /* 0x3C0041BF: je 0x3c0041ca */ 1463 L_3C0041C1: 1464 PUSH32(esp, esi); /* 0x3C0041C1: push esi */ 1465 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0041C2: call 0x3c0089de */ /* not lifted */ 1466 RECOMP_FLAGS_IN(); 1467 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1468 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1469 esp = esp + 4; /* 0x3C0041C7: add esp, 4 */ 1470 _flag_k = FK_ADD; 1471 L_3C0041CA: 1472 eax = esi; /* 0x3C0041CA: mov eax, esi */ 1473 esi = POP32_VAL(esp); /* 0x3C0041CC: pop esi */ 1474 ebp = POP32_VAL(esp); /* 0x3C0041CD: pop ebp */ 1475 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0041CE: ret 4 */ 1476 RECOMP_REGS_OUT(); 1477 } 1478 1479 void sub_3C0041E0(void) { 1480 int _fpu_cmp = 0; 1481 uint32_t _cf = 0; 1482 int _df = 1; 1483 uint32_t _flag_k = FK_NONE; 1484 uint32_t _flag_a = 0, _flag_b = 0; 1485 uint32_t _itail_tgt = 0; 1486 RECOMP_REGS_LOCALS 1487 RECOMP_ENTER(0x3C0041E0u); 1488 1489 L_3C0041E0: 1490 PUSH32(esp, ebp); /* 0x3C0041E0: push ebp */ 1491 ebp = esp; /* 0x3C0041E1: mov ebp, esp */ 1492 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu); 1493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1494 esp = esp - 0x3Cu; /* 0x3C0041E3: sub esp, 0x3c */ 1495 _flag_k = FK_CMP; 1496 eax = MEM32(ebp + 0xC); /* 0x3C0041E6: mov eax, dword ptr [ebp + 0xc] */ 1497 PUSH32(esp, ebx); /* 0x3C0041E9: push ebx */ 1498 PUSH32(esp, esi); /* 0x3C0041EA: push esi */ 1499 esi = ecx; /* 0x3C0041EB: mov esi, ecx */ 1500 ecx = MEM32(eax); /* 0x3C0041ED: mov ecx, dword ptr [eax] */ 1501 edx = MEM32(eax + 0x4); /* 0x3C0041EF: mov edx, dword ptr [eax + 4] */ 1502 eax = MEM32(eax + 0x8); /* 0x3C0041F2: mov eax, dword ptr [eax + 8] */ 1503 MEM32(ebp + (-0xC)) = ecx; /* 0x3C0041F5: mov dword ptr [ebp - 0xc], ecx */ 1504 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C0041F8: fld dword ptr [ebp - 0xc] */ 1505 MEM32(ebp + (-0x4)) = eax; /* 0x3C0041FB: mov dword ptr [ebp - 4], eax */ 1506 eax = MEM32(ebp + 0x8); /* 0x3C0041FE: mov eax, dword ptr [ebp + 8] */ 1507 _st[0] -= (double)*(float*)ADDR(eax); /* 0x3C004201: fsub dword ptr [eax] */ 1508 MEM32(ebp + (-0x8)) = edx; /* 0x3C004203: mov dword ptr [ebp - 8], edx */ 1509 PUSH32(esp, edi); /* 0x3C004206: push edi */ 1510 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3C004207: fstp dword ptr [ebp - 0xc] */ 1511 ecx = MEM32(ebp + (-0xC)); /* 0x3C00420A: mov ecx, dword ptr [ebp - 0xc] */ 1512 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C00420D: fld dword ptr [ebp - 8] */ 1513 MEM32(ebp + (-0x18)) = ecx; /* 0x3C004210: mov dword ptr [ebp - 0x18], ecx */ 1514 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x3C004213: fsub dword ptr [eax + 4] */ 1515 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C004216: fstp dword ptr [ebp - 8] */ 1516 edx = MEM32(ebp + (-0x8)); /* 0x3C004219: mov edx, dword ptr [ebp - 8] */ 1517 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C00421C: fld dword ptr [ebp - 4] */ 1518 MEM32(ebp + (-0x14)) = edx; /* 0x3C00421F: mov dword ptr [ebp - 0x14], edx */ 1519 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x3C004222: fsub dword ptr [eax + 8] */ 1520 edx = eax; /* 0x3C004225: mov edx, eax */ 1521 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3C004227: fstp dword ptr [ebp - 4] */ 1522 ecx = MEM32(ebp + (-0x4)); /* 0x3C00422A: mov ecx, dword ptr [ebp - 4] */ 1523 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C00422D: fld dword ptr [ebp - 4] */ 1524 MEM32(ebp + (-0x10)) = ecx; /* 0x3C004230: mov dword ptr [ebp - 0x10], ecx */ 1525 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3C004233: fmul dword ptr [ebp - 4] */ 1526 ecx = MEM32(edx); /* 0x3C004236: mov ecx, dword ptr [edx] */ 1527 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C004238: fld dword ptr [ebp - 0xc] */ 1528 MEM32(ebp + (-0x30)) = ecx; /* 0x3C00423B: mov dword ptr [ebp - 0x30], ecx */ 1529 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3C00423E: fmul dword ptr [ebp - 0xc] */ 1530 ecx = MEM32(edx + 0x4); /* 0x3C004241: mov ecx, dword ptr [edx + 4] */ 1531 edx = MEM32(edx + 0x8); /* 0x3C004244: mov edx, dword ptr [edx + 8] */ 1532 MEM32(ebp + (-0x2C)) = ecx; /* 0x3C004247: mov dword ptr [ebp - 0x2c], ecx */ 1533 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C00424A: faddp st(1) */ 1534 MEM32(ebp + (-0x28)) = edx; /* 0x3C00424C: mov dword ptr [ebp - 0x28], edx */ 1535 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C00424F: fld dword ptr [ebp - 8] */ 1536 edx = MEM32(eax); /* 0x3C004252: mov edx, dword ptr [eax] */ 1537 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3C004254: fmul dword ptr [ebp - 8] */ 1538 MEM32(ebp + (-0x24)) = edx; /* 0x3C004257: mov dword ptr [ebp - 0x24], edx */ 1539 edx = MEM32(eax + 0x8); /* 0x3C00425A: mov edx, dword ptr [eax + 8] */ 1540 MEM32(ebp + (-0x1C)) = edx; /* 0x3C00425D: mov dword ptr [ebp - 0x1c], edx */ 1541 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C004260: faddp st(1) */ 1542 _st[0] = sqrt(_st[0]); /* 0x3C004262: fsqrt */ 1543 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3C004264: fstp dword ptr [ebp + 8] */ 1544 fp_push(*(float*)&MEM32(0x3C0091E0)); /* 0x3C004267: fld dword ptr [0x3c0091e0] */ 1545 _st[0] /= (double)*(float*)ADDR(ebp + 0x8); /* 0x3C00426D: fdiv dword ptr [ebp + 8] */ 1546 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C004270: fld dword ptr [ebp - 0xc] */ 1547 _st[0] *= _st[1]; /* 0x3C004273: fmul st(1) */ 1548 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3C004275: fstp dword ptr [ebp - 0x18] */ 1549 edi = MEM32(ebp + (-0x18)); /* 0x3C004278: mov edi, dword ptr [ebp - 0x18] */ 1550 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C00427B: fld dword ptr [ebp - 0x14] */ 1551 MEM32(ebp + (-0xC)) = edi; /* 0x3C00427E: mov dword ptr [ebp - 0xc], edi */ 1552 _st[0] *= _st[1]; /* 0x3C004281: fmul st(1) */ 1553 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C004283: fstp dword ptr [ebp - 0x14] */ 1554 ebx = MEM32(ebp + (-0x14)); /* 0x3C004286: mov ebx, dword ptr [ebp - 0x14] */ 1555 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3C004289: fld dword ptr [ebp - 0x10] */ 1556 MEM32(ebp + (-0x8)) = ebx; /* 0x3C00428C: mov dword ptr [ebp - 8], ebx */ 1557 _st[0] *= _st[1]; /* 0x3C00428F: fmul st(1) */ 1558 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3C004291: fstp dword ptr [ebp - 0x10] */ 1559 ecx = MEM32(ebp + (-0x10)); /* 0x3C004294: mov ecx, dword ptr [ebp - 0x10] */ 1560 MEM32(ebp + (-0x4)) = ecx; /* 0x3C004297: mov dword ptr [ebp - 4], ecx */ 1561 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C00429A: fstp st(0) */ 1562 ecx = MEM32(eax + 0x4); /* 0x3C00429C: mov ecx, dword ptr [eax + 4] */ 1563 fp_push(*(float*)&MEM32(esi + 0x28)); /* 0x3C00429F: fld dword ptr [esi + 0x28] */ 1564 MEM32(ebp + (-0x20)) = ecx; /* 0x3C0042A2: mov dword ptr [ebp - 0x20], ecx */ 1565 fp_push(_st[0]); /* 0x3C0042A5: fld st(0) */ 1566 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3C0042A7: fmul dword ptr [ebp - 0x18] */ 1567 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3C0042AA: fstp dword ptr [ebp - 0xc] */ 1568 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C0042AD: fld dword ptr [ebp - 8] */ 1569 _st[0] *= _st[1]; /* 0x3C0042B0: fmul st(1) */ 1570 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C0042B2: fstp dword ptr [ebp - 8] */ 1571 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3C0042B5: fmul dword ptr [ebp - 4] */ 1572 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3C0042B8: fld dword ptr [ebp - 0x24] */ 1573 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3C0042BB: fadd dword ptr [ebp - 0xc] */ 1574 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3C0042BE: fstp dword ptr [ebp - 0x24] */ 1575 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3C0042C1: fld dword ptr [ebp - 0x20] */ 1576 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3C0042C4: fadd dword ptr [ebp - 8] */ 1577 eax = MEM32(ebp + (-0x24)); /* 0x3C0042C7: mov eax, dword ptr [ebp - 0x24] */ 1578 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3C0042CA: fstp dword ptr [ebp - 0x20] */ 1579 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3C0042CD: fld dword ptr [ebp - 0x1c] */ 1580 ecx = MEM32(ebp + (-0x20)); /* 0x3C0042D0: mov ecx, dword ptr [ebp - 0x20] */ 1581 _st[0] += _st[1]; /* 0x3C0042D3: fadd st(1) */ 1582 MEM32(ebp + (-0xC)) = eax; /* 0x3C0042D5: mov dword ptr [ebp - 0xc], eax */ 1583 SET_LO8(eax, MEM8(esi + 0x2C)); /* 0x3C0042D8: mov al, byte ptr [esi + 0x2c] */ 1584 /* test LO8(eax), LO8(eax) */ /* 0x3C0042DB: test al, al */ 1585 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1586 _cf = 0; 1587 _flag_k = FK_NARROW(FK_TEST, 24); 1588 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3C0042DD: fstp dword ptr [ebp - 0x1c] */ 1589 edx = MEM32(ebp + (-0x1C)); /* 0x3C0042E0: mov edx, dword ptr [ebp - 0x1c] */ 1590 MEM32(ebp + (-0x8)) = ecx; /* 0x3C0042E3: mov dword ptr [ebp - 8], ecx */ 1591 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C0042E6: fstp st(0) */ 1592 MEM32(ebp + (-0x4)) = edx; /* 0x3C0042E8: mov dword ptr [ebp - 4], edx */ 1593 MEM32(ebp + 0xC) = 0; /* 0x3C0042EB: mov dword ptr [ebp + 0xc], 0 */ 1594 if (TEST_Z(_flag_a, _flag_b)) goto L_3C00439E; /* 0x3C0042F2: je 0x3c00439e */ 1595 L_3C0042F8: 1596 eax = MEM32(esi + 0x30); /* 0x3C0042F8: mov eax, dword ptr [esi + 0x30] */ 1597 PUSH32(esp, eax); /* 0x3C0042FB: push eax */ 1598 eax = MEM32(esi + 0x1C); /* 0x3C0042FC: mov eax, dword ptr [esi + 0x1c] */ 1599 ecx = ebp + (-0x24); /* 0x3C0042FF: lea ecx, [ebp - 0x24] */ 1600 PUSH32(esp, ecx); /* 0x3C004302: push ecx */ 1601 edx = ebp + (-0x30); /* 0x3C004303: lea edx, [ebp - 0x30] */ 1602 PUSH32(esp, edx); /* 0x3C004306: push edx */ 1603 PUSH32(esp, eax); /* 0x3C004307: push eax */ 1604 MEM32(ebp + (-0x24)) = 0; /* 0x3C004308: mov dword ptr [ebp - 0x24], 0 */ 1605 MEM32(ebp + (-0x20)) = 0; /* 0x3C00430F: mov dword ptr [ebp - 0x20], 0 */ 1606 MEM32(ebp + (-0x1C)) = 0; /* 0x3C004316: mov dword ptr [ebp - 0x1c], 0 */ 1607 RECOMP_ICALL(0x3C002BD0u); /* 0x3C00431D: call 0x3c002bd0 */ /* not lifted */ 1608 RECOMP_FLAGS_IN(); 1609 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3C004322: fld dword ptr [ebp - 0x20] */ 1610 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C00918C)); /* 0x3C004325: fcomp dword ptr [0x3c00918c] */ 1611 fp_pop(); 1612 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1614 esp = esp + 0x10u; /* 0x3C00432B: add esp, 0x10 */ 1615 _flag_k = FK_ADD; 1616 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C00432E: fnstsw ax */ 1617 /* test HI8(eax), 1 */ /* 0x3C004330: test ah, 1 */ 1618 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1619 _cf = 0; 1620 _flag_k = FK_NARROW(FK_TEST, 24); 1621 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004340; /* 0x3C004333: je 0x3c004340 */ 1622 L_3C004335: 1623 edi = POP32_VAL(esp); /* 0x3C004335: pop edi */ 1624 esi = POP32_VAL(esp); /* 0x3C004336: pop esi */ 1625 SET_LO8(eax, 1); /* 0x3C004337: mov al, 1 */ 1626 ebx = POP32_VAL(esp); /* 0x3C004339: pop ebx */ 1627 esp = ebp; /* 0x3C00433A: mov esp, ebp */ 1628 ebp = POP32_VAL(esp); /* 0x3C00433C: pop ebp */ 1629 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C00433D: ret 8 */ 1630 L_3C004340: 1631 ecx = MEM32(esi + 0x30); /* 0x3C004340: mov ecx, dword ptr [esi + 0x30] */ 1632 PUSH32(esp, ecx); /* 0x3C004343: push ecx */ 1633 ecx = MEM32(esi + 0x1C); /* 0x3C004344: mov ecx, dword ptr [esi + 0x1c] */ 1634 edx = ebp + (-0x24); /* 0x3C004347: lea edx, [ebp - 0x24] */ 1635 PUSH32(esp, edx); /* 0x3C00434A: push edx */ 1636 eax = ebp + (-0xC); /* 0x3C00434B: lea eax, [ebp - 0xc] */ 1637 PUSH32(esp, eax); /* 0x3C00434E: push eax */ 1638 PUSH32(esp, ecx); /* 0x3C00434F: push ecx */ 1639 RECOMP_ICALL(0x3C002BD0u); /* 0x3C004350: call 0x3c002bd0 */ /* not lifted */ 1640 RECOMP_FLAGS_IN(); 1641 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3C004355: fld dword ptr [ebp - 0x20] */ 1642 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C00918C)); /* 0x3C004358: fcomp dword ptr [0x3c00918c] */ 1643 fp_pop(); 1644 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1646 esp = esp + 0x10u; /* 0x3C00435E: add esp, 0x10 */ 1647 _flag_k = FK_ADD; 1648 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004361: fnstsw ax */ 1649 /* test HI8(eax), 1 */ /* 0x3C004363: test ah, 1 */ 1650 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1651 _cf = 0; 1652 _flag_k = FK_NARROW(FK_TEST, 24); 1653 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004373; /* 0x3C004366: je 0x3c004373 */ 1654 L_3C004368: 1655 edi = POP32_VAL(esp); /* 0x3C004368: pop edi */ 1656 esi = POP32_VAL(esp); /* 0x3C004369: pop esi */ 1657 SET_LO8(eax, 1); /* 0x3C00436A: mov al, 1 */ 1658 ebx = POP32_VAL(esp); /* 0x3C00436C: pop ebx */ 1659 esp = ebp; /* 0x3C00436D: mov esp, ebp */ 1660 ebp = POP32_VAL(esp); /* 0x3C00436F: pop ebp */ 1661 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C004370: ret 8 */ 1662 L_3C004373: 1663 edx = MEM32(esi + 0x30); /* 0x3C004373: mov edx, dword ptr [esi + 0x30] */ 1664 eax = MEM32(esi + 0x1C); /* 0x3C004376: mov eax, dword ptr [esi + 0x1c] */ 1665 PUSH32(esp, edx); /* 0x3C004379: push edx */ 1666 PUSH32(esp, eax); /* 0x3C00437A: push eax */ 1667 ecx = ebp + (-0xC); /* 0x3C00437B: lea ecx, [ebp - 0xc] */ 1668 PUSH32(esp, ecx); /* 0x3C00437E: push ecx */ 1669 edx = ebp + (-0x30); /* 0x3C00437F: lea edx, [ebp - 0x30] */ 1670 PUSH32(esp, edx); /* 0x3C004382: push edx */ 1671 RECOMP_ICALL(0x3C002E50u); /* 0x3C004383: call 0x3c002e50 */ /* not lifted */ 1672 RECOMP_FLAGS_IN(); 1673 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1674 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1675 esp = esp + 0x10u; /* 0x3C004388: add esp, 0x10 */ 1676 _flag_k = FK_ADD; 1677 /* test LO8(eax), LO8(eax) */ /* 0x3C00438B: test al, al */ 1678 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1679 _cf = 0; 1680 _flag_k = FK_NARROW(FK_TEST, 24); 1681 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C004514; /* 0x3C00438D: jne 0x3c004514 */ 1682 L_3C004393: 1683 edi = POP32_VAL(esp); /* 0x3C004393: pop edi */ 1684 esi = POP32_VAL(esp); /* 0x3C004394: pop esi */ 1685 SET_LO8(eax, 1); /* 0x3C004395: mov al, 1 */ 1686 ebx = POP32_VAL(esp); /* 0x3C004397: pop ebx */ 1687 esp = ebp; /* 0x3C004398: mov esp, ebp */ 1688 ebp = POP32_VAL(esp); /* 0x3C00439A: pop ebp */ 1689 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C00439B: ret 8 */ 1690 L_3C00439E: 1691 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C00439E: fld dword ptr [ebp - 0x14] */ 1692 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C00918C)); /* 0x3C0043A1: fcomp dword ptr [0x3c00918c] */ 1693 fp_pop(); 1694 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C0043A7: fnstsw ax */ 1695 /* test HI8(eax), 0x41u */ /* 0x3C0043A9: test ah, 0x41 */ 1696 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1697 _cf = 0; 1698 _flag_k = FK_NARROW(FK_TEST, 24); 1699 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0043B9; /* 0x3C0043AC: jne 0x3c0043b9 */ 1700 L_3C0043AE: 1701 edi = POP32_VAL(esp); /* 0x3C0043AE: pop edi */ 1702 esi = POP32_VAL(esp); /* 0x3C0043AF: pop esi */ 1703 SET_LO8(eax, 1); /* 0x3C0043B0: mov al, 1 */ 1704 ebx = POP32_VAL(esp); /* 0x3C0043B2: pop ebx */ 1705 esp = ebp; /* 0x3C0043B3: mov esp, ebp */ 1706 ebp = POP32_VAL(esp); /* 0x3C0043B5: pop ebp */ 1707 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C0043B6: ret 8 */ 1708 L_3C0043B9: 1709 fp_push(*(float*)&MEM32(0x3C0091C8)); /* 0x3C0043B9: fld dword ptr [0x3c0091c8] */ 1710 MEM32(ebp + (-0x3C)) = 0; /* 0x3C0043BF: mov dword ptr [ebp - 0x3c], 0 */ 1711 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x3C0043C6: fcomp dword ptr [ebp + 8] */ 1712 fp_pop(); 1713 MEM32(ebp + (-0x38)) = 0; /* 0x3C0043C9: mov dword ptr [ebp - 0x38], 0 */ 1714 MEM32(ebp + (-0x34)) = 0; /* 0x3C0043D0: mov dword ptr [ebp - 0x34], 0 */ 1715 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C0043D7: fnstsw ax */ 1716 /* test HI8(eax), 1 */ /* 0x3C0043D9: test ah, 1 */ 1717 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1718 _cf = 0; 1719 _flag_k = FK_NARROW(FK_TEST, 24); 1720 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004514; /* 0x3C0043DC: je 0x3c004514 */ 1721 L_3C0043E2: 1722 eax = MEM32(esi + 0x30); /* 0x3C0043E2: mov eax, dword ptr [esi + 0x30] */ 1723 PUSH32(esp, eax); /* 0x3C0043E5: push eax */ 1724 eax = MEM32(esi + 0x1C); /* 0x3C0043E6: mov eax, dword ptr [esi + 0x1c] */ 1725 ecx = ebp + (-0x3C); /* 0x3C0043E9: lea ecx, [ebp - 0x3c] */ 1726 PUSH32(esp, ecx); /* 0x3C0043EC: push ecx */ 1727 edx = ebp + (-0x30); /* 0x3C0043ED: lea edx, [ebp - 0x30] */ 1728 PUSH32(esp, edx); /* 0x3C0043F0: push edx */ 1729 PUSH32(esp, eax); /* 0x3C0043F1: push eax */ 1730 RECOMP_ICALL(0x3C002BD0u); /* 0x3C0043F2: call 0x3c002bd0 */ /* not lifted */ 1731 RECOMP_FLAGS_IN(); 1732 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3C0043F7: fld dword ptr [ebp - 0x38] */ 1733 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C00918C)); /* 0x3C0043FA: fcomp dword ptr [0x3c00918c] */ 1734 fp_pop(); 1735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1737 esp = esp + 0x10u; /* 0x3C004400: add esp, 0x10 */ 1738 _flag_k = FK_ADD; 1739 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004403: fnstsw ax */ 1740 /* test HI8(eax), 1 */ /* 0x3C004405: test ah, 1 */ 1741 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1742 _cf = 0; 1743 _flag_k = FK_NARROW(FK_TEST, 24); 1744 RECOMP_BACKEDGE(); 1745 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0043AE; /* 0x3C004408: jne 0x3c0043ae */ 1746 L_3C00440A: 1747 ecx = MEM32(esi + 0x30); /* 0x3C00440A: mov ecx, dword ptr [esi + 0x30] */ 1748 PUSH32(esp, ecx); /* 0x3C00440D: push ecx */ 1749 ecx = MEM32(esi + 0x1C); /* 0x3C00440E: mov ecx, dword ptr [esi + 0x1c] */ 1750 edx = ebp + (-0x3C); /* 0x3C004411: lea edx, [ebp - 0x3c] */ 1751 PUSH32(esp, edx); /* 0x3C004414: push edx */ 1752 eax = ebp + (-0xC); /* 0x3C004415: lea eax, [ebp - 0xc] */ 1753 PUSH32(esp, eax); /* 0x3C004418: push eax */ 1754 PUSH32(esp, ecx); /* 0x3C004419: push ecx */ 1755 RECOMP_ICALL(0x3C002BD0u); /* 0x3C00441A: call 0x3c002bd0 */ /* not lifted */ 1756 RECOMP_FLAGS_IN(); 1757 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3C00441F: fld dword ptr [ebp - 0x38] */ 1758 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C00918C)); /* 0x3C004422: fcomp dword ptr [0x3c00918c] */ 1759 fp_pop(); 1760 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1761 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1762 esp = esp + 0x10u; /* 0x3C004428: add esp, 0x10 */ 1763 _flag_k = FK_ADD; 1764 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C00442B: fnstsw ax */ 1765 /* test HI8(eax), 1 */ /* 0x3C00442D: test ah, 1 */ 1766 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1767 _cf = 0; 1768 _flag_k = FK_NARROW(FK_TEST, 24); 1769 RECOMP_BACKEDGE(); 1770 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0043AE; /* 0x3C004430: jne 0x3c0043ae */ 1771 L_3C004436: 1772 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3C004436: fld dword ptr [ebp + 0xc] */ 1773 _st[0] += (double)*(float*)ADDR(esi + 0x28); /* 0x3C004439: fadd dword ptr [esi + 0x28] */ 1774 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3C00443C: fstp dword ptr [ebp + 0xc] */ 1775 fp_push(*(float*)&MEM32(esi + 0x28)); /* 0x3C00443F: fld dword ptr [esi + 0x28] */ 1776 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3C004442: fld dword ptr [ebp + 0xc] */ 1777 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x3C004445: fcomp dword ptr [ebp + 8] */ 1778 fp_pop(); 1779 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004448: fnstsw ax */ 1780 /* test HI8(eax), 0x41u */ /* 0x3C00444A: test ah, 0x41 */ 1781 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1782 _cf = 0; 1783 _flag_k = FK_NARROW(FK_TEST, 24); 1784 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C004457; /* 0x3C00444D: jne 0x3c004457 */ 1785 L_3C00444F: 1786 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C00444F: fstp st(0) */ 1787 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3C004451: fld dword ptr [ebp + 8] */ 1788 _st[0] -= (double)*(float*)ADDR(ebp + 0xC); /* 0x3C004454: fsub dword ptr [ebp + 0xc] */ 1789 L_3C004457: 1790 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3C004457: fld dword ptr [ebp - 0x2c] */ 1791 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3C00445A: fsub dword ptr [ebp - 8] */ 1792 _st[0] = fabs(_st[0]); /* 0x3C00445D: fabs */ 1793 { double _v = fp_pop(); _st[0] = _st[0] == 0.0 ? _v : _v / _st[0]; } /* 0x3C00445F: fdivrp st(1) */ 1794 fp_push(1.0); /* 0x3C004461: fld1 */ 1795 { double _x = fp_pop(); _st[0] = atan2(_st[0], _x); } /* 0x3C004463: fpatan */ 1796 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x24)); /* 0x3C004465: fcomp dword ptr [esi + 0x24] */ 1797 fp_pop(); 1798 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004468: fnstsw ax */ 1799 /* test HI8(eax), 0x41u */ /* 0x3C00446A: test ah, 0x41 */ 1800 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1801 _cf = 0; 1802 _flag_k = FK_NARROW(FK_TEST, 24); 1803 RECOMP_BACKEDGE(); 1804 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0043AE; /* 0x3C00446D: je 0x3c0043ae */ 1805 L_3C004473: 1806 edx = MEM32(esi + 0x30); /* 0x3C004473: mov edx, dword ptr [esi + 0x30] */ 1807 eax = MEM32(esi + 0x1C); /* 0x3C004476: mov eax, dword ptr [esi + 0x1c] */ 1808 PUSH32(esp, edx); /* 0x3C004479: push edx */ 1809 PUSH32(esp, eax); /* 0x3C00447A: push eax */ 1810 ecx = ebp + (-0xC); /* 0x3C00447B: lea ecx, [ebp - 0xc] */ 1811 PUSH32(esp, ecx); /* 0x3C00447E: push ecx */ 1812 edx = ebp + (-0x30); /* 0x3C00447F: lea edx, [ebp - 0x30] */ 1813 PUSH32(esp, edx); /* 0x3C004482: push edx */ 1814 RECOMP_ICALL(0x3C002E50u); /* 0x3C004483: call 0x3c002e50 */ /* not lifted */ 1815 RECOMP_FLAGS_IN(); 1816 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1817 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1818 esp = esp + 0x10u; /* 0x3C004488: add esp, 0x10 */ 1819 _flag_k = FK_ADD; 1820 /* test LO8(eax), LO8(eax) */ /* 0x3C00448B: test al, al */ 1821 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1822 _cf = 0; 1823 _flag_k = FK_NARROW(FK_TEST, 24); 1824 RECOMP_BACKEDGE(); 1825 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0043AE; /* 0x3C00448D: je 0x3c0043ae */ 1826 L_3C004493: 1827 eax = MEM32(esi + 0x30); /* 0x3C004493: mov eax, dword ptr [esi + 0x30] */ 1828 ecx = MEM32(esi + 0x1C); /* 0x3C004496: mov ecx, dword ptr [esi + 0x1c] */ 1829 PUSH32(esp, eax); /* 0x3C004499: push eax */ 1830 PUSH32(esp, ecx); /* 0x3C00449A: push ecx */ 1831 edx = ebp + (-0x30); /* 0x3C00449B: lea edx, [ebp - 0x30] */ 1832 PUSH32(esp, edx); /* 0x3C00449E: push edx */ 1833 eax = ebp + (-0xC); /* 0x3C00449F: lea eax, [ebp - 0xc] */ 1834 PUSH32(esp, eax); /* 0x3C0044A2: push eax */ 1835 RECOMP_ICALL(0x3C002E50u); /* 0x3C0044A3: call 0x3c002e50 */ /* not lifted */ 1836 RECOMP_FLAGS_IN(); 1837 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1839 esp = esp + 0x10u; /* 0x3C0044A8: add esp, 0x10 */ 1840 _flag_k = FK_ADD; 1841 /* test LO8(eax), LO8(eax) */ /* 0x3C0044AB: test al, al */ 1842 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1843 _cf = 0; 1844 _flag_k = FK_NARROW(FK_TEST, 24); 1845 RECOMP_BACKEDGE(); 1846 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0043AE; /* 0x3C0044AD: je 0x3c0043ae */ 1847 L_3C0044B3: 1848 fp_push(*(float*)&MEM32(esi + 0x28)); /* 0x3C0044B3: fld dword ptr [esi + 0x28] */ 1849 ecx = MEM32(ebp + (-0xC)); /* 0x3C0044B6: mov ecx, dword ptr [ebp - 0xc] */ 1850 fp_push(_st[0]); /* 0x3C0044B9: fld st(0) */ 1851 edx = MEM32(ebp + (-0x8)); /* 0x3C0044BB: mov edx, dword ptr [ebp - 8] */ 1852 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3C0044BE: fmul dword ptr [ebp - 0x18] */ 1853 eax = MEM32(ebp + (-0x4)); /* 0x3C0044C1: mov eax, dword ptr [ebp - 4] */ 1854 MEM32(ebp + (-0x24)) = edi; /* 0x3C0044C4: mov dword ptr [ebp - 0x24], edi */ 1855 MEM32(ebp + (-0x20)) = ebx; /* 0x3C0044C7: mov dword ptr [ebp - 0x20], ebx */ 1856 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3C0044CA: fstp dword ptr [ebp - 0x24] */ 1857 MEM32(ebp + (-0x30)) = ecx; /* 0x3C0044CD: mov dword ptr [ebp - 0x30], ecx */ 1858 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3C0044D0: fld dword ptr [ebp - 0x20] */ 1859 ecx = MEM32(ebp + (-0x10)); /* 0x3C0044D3: mov ecx, dword ptr [ebp - 0x10] */ 1860 _st[0] *= _st[1]; /* 0x3C0044D6: fmul st(1) */ 1861 MEM32(ebp + (-0x1C)) = ecx; /* 0x3C0044D8: mov dword ptr [ebp - 0x1c], ecx */ 1862 MEM32(ebp + (-0x28)) = eax; /* 0x3C0044DB: mov dword ptr [ebp - 0x28], eax */ 1863 MEM32(ebp + (-0x2C)) = edx; /* 0x3C0044DE: mov dword ptr [ebp - 0x2c], edx */ 1864 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3C0044E1: fstp dword ptr [ebp - 0x20] */ 1865 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3C0044E4: fmul dword ptr [ebp - 0x1c] */ 1866 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3C0044E7: fld dword ptr [ebp - 0x24] */ 1867 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3C0044EA: fadd dword ptr [ebp - 0xc] */ 1868 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3C0044ED: fstp dword ptr [ebp - 0xc] */ 1869 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3C0044F0: fld dword ptr [ebp - 0x20] */ 1870 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3C0044F3: fadd dword ptr [ebp - 8] */ 1871 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C0044F6: fstp dword ptr [ebp - 8] */ 1872 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C0044F9: fld dword ptr [ebp - 4] */ 1873 _st[0] += _st[1]; /* 0x3C0044FC: fadd st(1) */ 1874 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3C0044FE: fstp dword ptr [ebp - 4] */ 1875 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C004501: fstp st(0) */ 1876 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3C004503: fld dword ptr [ebp + 0xc] */ 1877 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x3C004506: fcomp dword ptr [ebp + 8] */ 1878 fp_pop(); 1879 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004509: fnstsw ax */ 1880 /* test HI8(eax), 1 */ /* 0x3C00450B: test ah, 1 */ 1881 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1882 _cf = 0; 1883 _flag_k = FK_NARROW(FK_TEST, 24); 1884 RECOMP_BACKEDGE(); 1885 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0043E2; /* 0x3C00450E: jne 0x3c0043e2 */ 1886 L_3C004514: 1887 edi = POP32_VAL(esp); /* 0x3C004514: pop edi */ 1888 esi = POP32_VAL(esp); /* 0x3C004515: pop esi */ 1889 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 1890 SET_LO8(eax, 0); /* 0x3C004516: xor al, al */ 1891 _cf = 0; 1892 _flag_k = FK_NARROW(FK_TEST, 24); 1893 ebx = POP32_VAL(esp); /* 0x3C004518: pop ebx */ 1894 esp = ebp; /* 0x3C004519: mov esp, ebp */ 1895 ebp = POP32_VAL(esp); /* 0x3C00451B: pop ebp */ 1896 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C00451C: ret 8 */ 1897 RECOMP_REGS_OUT(); 1898 } 1899 1900 void sub_3C004520(void) { 1901 int _fpu_cmp = 0; 1902 uint32_t _cf = 0; 1903 int _df = 1; 1904 uint32_t _flag_k = FK_NONE; 1905 uint32_t _flag_a = 0, _flag_b = 0; 1906 uint32_t _itail_tgt = 0; 1907 RECOMP_REGS_LOCALS 1908 RECOMP_ENTER(0x3C004520u); 1909 1910 L_3C004520: 1911 PUSH32(esp, ebp); /* 0x3C004520: push ebp */ 1912 ebp = esp; /* 0x3C004521: mov ebp, esp */ 1913 PUSH32(esp, esi); /* 0x3C004523: push esi */ 1914 esi = ecx; /* 0x3C004524: mov esi, ecx */ 1915 RECOMP_ICALL(0x3C004AC0u); /* 0x3C004526: call 0x3c004ac0 */ /* not lifted */ 1916 RECOMP_FLAGS_IN(); 1917 /* test MEM8(ebp + 0x8), 1 */ /* 0x3C00452B: test byte ptr [ebp + 8], 1 */ 1918 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1919 _cf = 0; 1920 _flag_k = FK_NARROW(FK_TEST, 24); 1921 if (TEST_Z(_flag_a, _flag_b)) goto L_3C00453A; /* 0x3C00452F: je 0x3c00453a */ 1922 L_3C004531: 1923 PUSH32(esp, esi); /* 0x3C004531: push esi */ 1924 RECOMP_ICALL(0x3C0089DEu); /* 0x3C004532: call 0x3c0089de */ /* not lifted */ 1925 RECOMP_FLAGS_IN(); 1926 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1928 esp = esp + 4; /* 0x3C004537: add esp, 4 */ 1929 _flag_k = FK_ADD; 1930 L_3C00453A: 1931 eax = esi; /* 0x3C00453A: mov eax, esi */ 1932 esi = POP32_VAL(esp); /* 0x3C00453C: pop esi */ 1933 ebp = POP32_VAL(esp); /* 0x3C00453D: pop ebp */ 1934 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C00453E: ret 4 */ 1935 RECOMP_REGS_OUT(); 1936 } 1937 1938 void sub_3C004550(void) { 1939 int _fpu_cmp = 0; 1940 uint32_t _cf = 0; 1941 int _df = 1; 1942 uint32_t _flag_k = FK_NONE; 1943 uint32_t _flag_a = 0, _flag_b = 0; 1944 uint32_t _itail_tgt = 0; 1945 RECOMP_REGS_LOCALS 1946 RECOMP_ENTER(0x3C004550u); 1947 1948 L_3C004550: 1949 PUSH32(esp, ebp); /* 0x3C004550: push ebp */ 1950 ebp = esp; /* 0x3C004551: mov ebp, esp */ 1951 PUSH32(esp, 0xFFFFFFFFu); /* 0x3C004553: push -1 */ 1952 PUSH32(esp, 0x3C008DEBu); /* 0x3C004555: push 0x3c008deb */ 1953 eax = MEM32(FS_BASE + (0)); /* 0x3C00455A: mov eax, dword ptr fs:[0] */ 1954 PUSH32(esp, eax); /* 0x3C004560: push eax */ 1955 MEM32(FS_BASE + (0)) = esp; /* 0x3C004561: mov dword ptr fs:[0], esp */ 1956 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 1957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1958 esp = esp - 0x68u; /* 0x3C004568: sub esp, 0x68 */ 1959 _flag_k = FK_CMP; 1960 eax = MEM32(ebp + 0x8); /* 0x3C00456B: mov eax, dword ptr [ebp + 8] */ 1961 PUSH32(esp, esi); /* 0x3C00456E: push esi */ 1962 esi = MEM32(eax + 0x4); /* 0x3C00456F: mov esi, dword ptr [eax + 4] */ 1963 PUSH32(esp, edi); /* 0x3C004572: push edi */ 1964 edi = ecx; /* 0x3C004573: mov edi, ecx */ 1965 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C004575: cmp esi, dword ptr [eax + 8] */ 1966 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1968 _flag_k = FK_CMP; 1969 MEM32(ebp + (-0x10)) = esi; /* 0x3C004578: mov dword ptr [ebp - 0x10], esi */ 1970 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0047DC; /* 0x3C00457B: je 0x3c0047dc */ 1971 L_3C004581: 1972 PUSH32(esp, ebx); /* 0x3C004581: push ebx */ 1973 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1974 ebx = 0; /* 0x3C004582: xor ebx, ebx */ 1975 _cf = 0; 1976 _flag_k = FK_TEST; 1977 L_3C004584: 1978 eax = esi; /* 0x3C004584: mov eax, esi */ 1979 ecx = MEM32(eax); /* 0x3C004586: mov ecx, dword ptr [eax] */ 1980 edx = MEM32(eax + 0x4); /* 0x3C004588: mov edx, dword ptr [eax + 4] */ 1981 eax = MEM32(eax + 0x8); /* 0x3C00458B: mov eax, dword ptr [eax + 8] */ 1982 MEM32(ebp + (-0x38)) = ecx; /* 0x3C00458E: mov dword ptr [ebp - 0x38], ecx */ 1983 ecx = MEM32(edi + 0x10); /* 0x3C004591: mov ecx, dword ptr [edi + 0x10] */ 1984 /* cmp ecx, ebx */ /* 0x3C004594: cmp ecx, ebx */ 1985 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1987 _flag_k = FK_CMP; 1988 MEM32(ebp + (-0x34)) = edx; /* 0x3C004596: mov dword ptr [ebp - 0x34], edx */ 1989 MEM32(ebp + (-0x30)) = eax; /* 0x3C004599: mov dword ptr [ebp - 0x30], eax */ 1990 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00471E; /* 0x3C00459C: je 0x3c00471e */ 1991 L_3C0045A2: 1992 edx = esi; /* 0x3C0045A2: mov edx, esi */ 1993 eax = MEM32(edx); /* 0x3C0045A4: mov eax, dword ptr [edx] */ 1994 MEM32(ebp + (-0x20)) = eax; /* 0x3C0045A6: mov dword ptr [ebp - 0x20], eax */ 1995 eax = MEM32(edx + 0x4); /* 0x3C0045A9: mov eax, dword ptr [edx + 4] */ 1996 edx = MEM32(edx + 0x8); /* 0x3C0045AC: mov edx, dword ptr [edx + 8] */ 1997 MEM32(ebp + (-0x1C)) = eax; /* 0x3C0045AF: mov dword ptr [ebp - 0x1c], eax */ 1998 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3C0045B2: fld dword ptr [ebp - 0x1c] */ 1999 _st[0] -= (double)*(float*)ADDR(0x3C0091BC); /* 0x3C0045B5: fsub dword ptr [0x3c0091bc] */ 2000 eax = MEM32(ebp + (-0x20)); /* 0x3C0045BB: mov eax, dword ptr [ebp - 0x20] */ 2001 MEM32(ebp + (-0x18)) = edx; /* 0x3C0045BE: mov dword ptr [ebp - 0x18], edx */ 2002 MEM32(ebp + (-0x18)) = edx; /* 0x3C0045C1: mov dword ptr [ebp - 0x18], edx */ 2003 MEM32(ebp + (-0x44)) = eax; /* 0x3C0045C4: mov dword ptr [ebp - 0x44], eax */ 2004 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3C0045C7: fstp dword ptr [ebp - 0x1c] */ 2005 edx = MEM32(ebp + (-0x1C)); /* 0x3C0045CA: mov edx, dword ptr [ebp - 0x1c] */ 2006 MEM32(ebp + (-0x20)) = eax; /* 0x3C0045CD: mov dword ptr [ebp - 0x20], eax */ 2007 eax = MEM32(ebp + (-0x18)); /* 0x3C0045D0: mov eax, dword ptr [ebp - 0x18] */ 2008 MEM32(ebp + (-0x3C)) = eax; /* 0x3C0045D3: mov dword ptr [ebp - 0x3c], eax */ 2009 MEM32(ebp + (-0x40)) = edx; /* 0x3C0045D6: mov dword ptr [ebp - 0x40], edx */ 2010 edx = esi; /* 0x3C0045D9: mov edx, esi */ 2011 eax = MEM32(edx); /* 0x3C0045DB: mov eax, dword ptr [edx] */ 2012 MEM32(ebp + (-0x2C)) = eax; /* 0x3C0045DD: mov dword ptr [ebp - 0x2c], eax */ 2013 eax = MEM32(edx + 0x4); /* 0x3C0045E0: mov eax, dword ptr [edx + 4] */ 2014 edx = MEM32(edx + 0x8); /* 0x3C0045E3: mov edx, dword ptr [edx + 8] */ 2015 MEM32(ebp + (-0x28)) = eax; /* 0x3C0045E6: mov dword ptr [ebp - 0x28], eax */ 2016 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3C0045E9: fld dword ptr [ebp - 0x28] */ 2017 eax = MEM32(ebp + (-0x2C)); /* 0x3C0045EC: mov eax, dword ptr [ebp - 0x2c] */ 2018 _st[0] += (double)*(float*)ADDR(0x3C0091BC); /* 0x3C0045EF: fadd dword ptr [0x3c0091bc] */ 2019 MEM32(ebp + (-0x50)) = eax; /* 0x3C0045F5: mov dword ptr [ebp - 0x50], eax */ 2020 MEM32(ebp + (-0x2C)) = eax; /* 0x3C0045F8: mov dword ptr [ebp - 0x2c], eax */ 2021 MEM32(ebp + (-0x24)) = edx; /* 0x3C0045FB: mov dword ptr [ebp - 0x24], edx */ 2022 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3C0045FE: fstp dword ptr [ebp - 0x28] */ 2023 MEM32(ebp + (-0x24)) = edx; /* 0x3C004601: mov dword ptr [ebp - 0x24], edx */ 2024 eax = MEM32(ebp + (-0x24)); /* 0x3C004604: mov eax, dword ptr [ebp - 0x24] */ 2025 edx = MEM32(ebp + (-0x28)); /* 0x3C004607: mov edx, dword ptr [ebp - 0x28] */ 2026 PUSH32(esp, ebx); /* 0x3C00460A: push ebx */ 2027 MEM32(ebp + (-0x48)) = eax; /* 0x3C00460B: mov dword ptr [ebp - 0x48], eax */ 2028 PUSH32(esp, 1); /* 0x3C00460E: push 1 */ 2029 eax = ebp + (-0x74); /* 0x3C004610: lea eax, [ebp - 0x74] */ 2030 PUSH32(esp, eax); /* 0x3C004613: push eax */ 2031 eax = ebp + (-0x5C); /* 0x3C004614: lea eax, [ebp - 0x5c] */ 2032 PUSH32(esp, eax); /* 0x3C004617: push eax */ 2033 eax = ebp + (-0x44); /* 0x3C004618: lea eax, [ebp - 0x44] */ 2034 PUSH32(esp, eax); /* 0x3C00461B: push eax */ 2035 eax = ebp + (-0x50); /* 0x3C00461C: lea eax, [ebp - 0x50] */ 2036 MEM32(ebp + (-0x5C)) = 0; /* 0x3C00461F: mov dword ptr [ebp - 0x5c], 0 */ 2037 MEM32(ebp + (-0x58)) = 0; /* 0x3C004626: mov dword ptr [ebp - 0x58], 0 */ 2038 MEM32(ebp + (-0x54)) = 0; /* 0x3C00462D: mov dword ptr [ebp - 0x54], 0 */ 2039 MEM32(ebp + (-0x74)) = 0; /* 0x3C004634: mov dword ptr [ebp - 0x74], 0 */ 2040 MEM32(ebp + (-0x70)) = 0; /* 0x3C00463B: mov dword ptr [ebp - 0x70], 0 */ 2041 MEM32(ebp + (-0x6C)) = 0; /* 0x3C004642: mov dword ptr [ebp - 0x6c], 0 */ 2042 MEM32(ebp + (-0x4C)) = edx; /* 0x3C004649: mov dword ptr [ebp - 0x4c], edx */ 2043 edx = MEM32(ecx); /* 0x3C00464C: mov edx, dword ptr [ecx] */ 2044 PUSH32(esp, eax); /* 0x3C00464E: push eax */ 2045 MEM32(ebp + (-0x64)) = 0x3E4CCCCDu; /* 0x3C00464F: mov dword ptr [ebp - 0x64], 0x3e4ccccd */ 2046 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3C004656: call dword ptr [edx + 0x10] */ 2047 RECOMP_FLAGS_IN(); 2048 /* test LO8(eax), LO8(eax) */ /* 0x3C004659: test al, al */ 2049 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2050 _cf = 0; 2051 _flag_k = FK_NARROW(FK_TEST, 24); 2052 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0046FE; /* 0x3C00465B: jne 0x3c0046fe */ 2053 L_3C004661: 2054 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x3C004661: fld dword ptr [ebp - 0x64] */ 2055 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C0092B8)); /* 0x3C004664: fcomp dword ptr [0x3c0092b8] */ 2056 fp_pop(); 2057 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C00466A: fnstsw ax */ 2058 /* test HI8(eax), 1 */ /* 0x3C00466C: test ah, 1 */ 2059 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2060 _cf = 0; 2061 _flag_k = FK_NARROW(FK_TEST, 24); 2062 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0046FE; /* 0x3C00466F: je 0x3c0046fe */ 2063 L_3C004675: 2064 eax = MEM32(ebp + (-0x38)); /* 0x3C004675: mov eax, dword ptr [ebp - 0x38] */ 2065 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x3C004678: fld dword ptr [ebp - 0x64] */ 2066 edx = MEM32(ebp + (-0x30)); /* 0x3C00467B: mov edx, dword ptr [ebp - 0x30] */ 2067 _st[0] += _st[0]; /* 0x3C00467E: fadd st(0), st(0) */ 2068 ecx = MEM32(ebp + (-0x34)); /* 0x3C004680: mov ecx, dword ptr [ebp - 0x34] */ 2069 MEM32(ebp + (-0x1C)) = ecx; /* 0x3C004683: mov dword ptr [ebp - 0x1c], ecx */ 2070 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x3C004686: fstp dword ptr [ebp - 0x64] */ 2071 esi = eax; /* 0x3C004689: mov esi, eax */ 2072 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3C00468B: fld dword ptr [ebp - 0x1c] */ 2073 MEM32(ebp + (-0x20)) = eax; /* 0x3C00468E: mov dword ptr [ebp - 0x20], eax */ 2074 _st[0] -= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x3C004691: fsub dword ptr [ebp - 0x64] */ 2075 MEM32(ebp + (-0x18)) = edx; /* 0x3C004694: mov dword ptr [ebp - 0x18], edx */ 2076 MEM32(ebp + (-0x20)) = esi; /* 0x3C004697: mov dword ptr [ebp - 0x20], esi */ 2077 esi = edx; /* 0x3C00469A: mov esi, edx */ 2078 MEM32(ebp + (-0x18)) = esi; /* 0x3C00469C: mov dword ptr [ebp - 0x18], esi */ 2079 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3C00469F: fstp dword ptr [ebp - 0x1c] */ 2080 esi = eax; /* 0x3C0046A2: mov esi, eax */ 2081 MEM32(ebp + (-0x44)) = esi; /* 0x3C0046A4: mov dword ptr [ebp - 0x44], esi */ 2082 esi = MEM32(ebp + (-0x1C)); /* 0x3C0046A7: mov esi, dword ptr [ebp - 0x1c] */ 2083 MEM32(ebp + (-0x28)) = ecx; /* 0x3C0046AA: mov dword ptr [ebp - 0x28], ecx */ 2084 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3C0046AD: fld dword ptr [ebp - 0x28] */ 2085 _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x3C0046B0: fadd dword ptr [ebp - 0x64] */ 2086 MEM32(ebp + (-0x24)) = edx; /* 0x3C0046B3: mov dword ptr [ebp - 0x24], edx */ 2087 PUSH32(esp, ebx); /* 0x3C0046B6: push ebx */ 2088 MEM32(ebp + (-0x48)) = edx; /* 0x3C0046B7: mov dword ptr [ebp - 0x48], edx */ 2089 MEM32(ebp + (-0x24)) = edx; /* 0x3C0046BA: mov dword ptr [ebp - 0x24], edx */ 2090 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3C0046BD: fstp dword ptr [ebp - 0x28] */ 2091 MEM32(ebp + (-0x40)) = esi; /* 0x3C0046C0: mov dword ptr [ebp - 0x40], esi */ 2092 esi = edx; /* 0x3C0046C3: mov esi, edx */ 2093 PUSH32(esp, 1); /* 0x3C0046C5: push 1 */ 2094 edx = ebp + (-0x74); /* 0x3C0046C7: lea edx, [ebp - 0x74] */ 2095 PUSH32(esp, edx); /* 0x3C0046CA: push edx */ 2096 ecx = eax; /* 0x3C0046CB: mov ecx, eax */ 2097 MEM32(ebp + (-0x2C)) = eax; /* 0x3C0046CD: mov dword ptr [ebp - 0x2c], eax */ 2098 edx = ebp + (-0x5C); /* 0x3C0046D0: lea edx, [ebp - 0x5c] */ 2099 PUSH32(esp, edx); /* 0x3C0046D3: push edx */ 2100 MEM32(ebp + (-0x2C)) = ecx; /* 0x3C0046D4: mov dword ptr [ebp - 0x2c], ecx */ 2101 ecx = MEM32(ebp + (-0x28)); /* 0x3C0046D7: mov ecx, dword ptr [ebp - 0x28] */ 2102 edx = ebp + (-0x44); /* 0x3C0046DA: lea edx, [ebp - 0x44] */ 2103 MEM32(ebp + (-0x4C)) = ecx; /* 0x3C0046DD: mov dword ptr [ebp - 0x4c], ecx */ 2104 ecx = MEM32(edi + 0x10); /* 0x3C0046E0: mov ecx, dword ptr [edi + 0x10] */ 2105 PUSH32(esp, edx); /* 0x3C0046E3: push edx */ 2106 edx = ebp + (-0x50); /* 0x3C0046E4: lea edx, [ebp - 0x50] */ 2107 MEM32(ebp + (-0x3C)) = esi; /* 0x3C0046E7: mov dword ptr [ebp - 0x3c], esi */ 2108 MEM32(ebp + (-0x50)) = eax; /* 0x3C0046EA: mov dword ptr [ebp - 0x50], eax */ 2109 eax = MEM32(ecx); /* 0x3C0046ED: mov eax, dword ptr [ecx] */ 2110 PUSH32(esp, edx); /* 0x3C0046EF: push edx */ 2111 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x3C0046F0: call dword ptr [eax + 0x10] */ 2112 RECOMP_FLAGS_IN(); 2113 /* test LO8(eax), LO8(eax) */ /* 0x3C0046F3: test al, al */ 2114 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2115 _cf = 0; 2116 _flag_k = FK_NARROW(FK_TEST, 24); 2117 esi = MEM32(ebp + (-0x10)); /* 0x3C0046F5: mov esi, dword ptr [ebp - 0x10] */ 2118 RECOMP_BACKEDGE(); 2119 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004661; /* 0x3C0046F8: je 0x3c004661 */ 2120 L_3C0046FE: 2121 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x3C0046FE: fld dword ptr [ebp - 0x58] */ 2122 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3C0092B0)); /* 0x3C004701: fcomp qword ptr [0x3c0092b0] */ 2123 fp_pop(); 2124 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004707: fnstsw ax */ 2125 /* test HI8(eax), 1 */ /* 0x3C004709: test ah, 1 */ 2126 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2127 _cf = 0; 2128 _flag_k = FK_NARROW(FK_TEST, 24); 2129 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004715; /* 0x3C00470C: je 0x3c004715 */ 2130 L_3C00470E: 2131 MEM32(ebp + (-0x58)) = 0; /* 0x3C00470E: mov dword ptr [ebp - 0x58], 0 */ 2132 L_3C004715: 2133 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x3C004715: fld dword ptr [ebp - 0x58] */ 2134 _st[0] += (double)*(float*)ADDR(ebp + 0x10); /* 0x3C004718: fadd dword ptr [ebp + 0x10] */ 2135 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3C00471B: fstp dword ptr [ebp - 0x34] */ 2136 L_3C00471E: 2137 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3C00471E: fld dword ptr [ebp - 0x38] */ 2138 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3C0092B0)); /* 0x3C004721: fcomp qword ptr [0x3c0092b0] */ 2139 fp_pop(); 2140 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004727: fnstsw ax */ 2141 /* test HI8(eax), 1 */ /* 0x3C004729: test ah, 1 */ 2142 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2143 _cf = 0; 2144 _flag_k = FK_NARROW(FK_TEST, 24); 2145 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0047C7; /* 0x3C00472C: jne 0x3c0047c7 */ 2146 L_3C004732: 2147 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3C004732: fld dword ptr [ebp - 0x38] */ 2148 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x1C)); /* 0x3C004735: fcomp dword ptr [edi + 0x1c] */ 2149 fp_pop(); 2150 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004738: fnstsw ax */ 2151 /* test HI8(eax), 1 */ /* 0x3C00473A: test ah, 1 */ 2152 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2153 _cf = 0; 2154 _flag_k = FK_NARROW(FK_TEST, 24); 2155 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0047C7; /* 0x3C00473D: je 0x3c0047c7 */ 2156 L_3C004743: 2157 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3C004743: fld dword ptr [ebp - 0x30] */ 2158 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3C0092B0)); /* 0x3C004746: fcomp qword ptr [0x3c0092b0] */ 2159 fp_pop(); 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); /* 0x3C00474C: fnstsw ax */ 2161 /* test HI8(eax), 1 */ /* 0x3C00474E: test ah, 1 */ 2162 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2163 _cf = 0; 2164 _flag_k = FK_NARROW(FK_TEST, 24); 2165 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0047C7; /* 0x3C004751: jne 0x3c0047c7 */ 2166 L_3C004753: 2167 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3C004753: fld dword ptr [ebp - 0x30] */ 2168 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x20)); /* 0x3C004756: fcomp dword ptr [edi + 0x20] */ 2169 fp_pop(); 2170 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004759: fnstsw ax */ 2171 /* test HI8(eax), 1 */ /* 0x3C00475B: test ah, 1 */ 2172 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2173 _cf = 0; 2174 _flag_k = FK_NARROW(FK_TEST, 24); 2175 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0047C7; /* 0x3C00475E: je 0x3c0047c7 */ 2176 L_3C004760: 2177 PUSH32(esp, 0x3Cu); /* 0x3C004760: push 0x3c */ 2178 RECOMP_ICALL(0x3C008B40u); /* 0x3C004762: call 0x3c008b40 */ /* not lifted */ 2179 RECOMP_FLAGS_IN(); 2180 esi = eax; /* 0x3C004767: mov esi, eax */ 2181 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2183 esp = esp + 4; /* 0x3C004769: add esp, 4 */ 2184 _flag_k = FK_ADD; 2185 MEM32(ebp + (-0x14)) = esi; /* 0x3C00476C: mov dword ptr [ebp - 0x14], esi */ 2186 /* cmp esi, ebx */ /* 0x3C00476F: cmp esi, ebx */ 2187 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2189 _flag_k = FK_CMP; 2190 MEM32(ebp + (-0x4)) = ebx; /* 0x3C004771: mov dword ptr [ebp - 4], ebx */ 2191 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00479E; /* 0x3C004774: je 0x3c00479e */ 2192 L_3C004776: 2193 ecx = esi; /* 0x3C004776: mov ecx, esi */ 2194 RECOMP_ICALL(MEM32(0x3C009138)); /* 0x3C004778: call dword ptr [0x3c009138] */ 2195 RECOMP_FLAGS_IN(); 2196 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3C00477E: mov al, byte ptr [ebp + 0xb] */ 2197 MEM32(esi + 0x20) = ebx; /* 0x3C004781: mov dword ptr [esi + 0x20], ebx */ 2198 MEM32(esi + 0x24) = ebx; /* 0x3C004784: mov dword ptr [esi + 0x24], ebx */ 2199 MEM32(esi + 0x28) = ebx; /* 0x3C004787: mov dword ptr [esi + 0x28], ebx */ 2200 MEM8(esi + 0x2C) = (uint8_t)(LO8(eax)); /* 0x3C00478A: mov byte ptr [esi + 0x2c], al */ 2201 MEM32(esi + 0x30) = ebx; /* 0x3C00478D: mov dword ptr [esi + 0x30], ebx */ 2202 MEM32(esi + 0x34) = ebx; /* 0x3C004790: mov dword ptr [esi + 0x34], ebx */ 2203 MEM32(esi + 0x38) = ebx; /* 0x3C004793: mov dword ptr [esi + 0x38], ebx */ 2204 MEM32(esi) = 0x3C009170u; /* 0x3C004796: mov dword ptr [esi], 0x3c009170 */ 2205 goto L_3C0047A0; /* 0x3C00479C: jmp 0x3c0047a0 */ 2206 L_3C00479E: 2207 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2208 esi = 0; /* 0x3C00479E: xor esi, esi */ 2209 _cf = 0; 2210 _flag_k = FK_TEST; 2211 L_3C0047A0: 2212 ecx = MEM32(edi + 0x8); /* 0x3C0047A0: mov ecx, dword ptr [edi + 8] */ 2213 PUSH32(esp, esi); /* 0x3C0047A3: push esi */ 2214 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0047A4: mov dword ptr [ebp - 4], 0xffffffff */ 2215 RECOMP_ICALL(0x3C006650u); /* 0x3C0047AB: call 0x3c006650 */ /* not lifted */ 2216 RECOMP_FLAGS_IN(); 2217 ecx = MEM32(edi + 0xC); /* 0x3C0047B0: mov ecx, dword ptr [edi + 0xc] */ 2218 edx = MEM32(ecx); /* 0x3C0047B3: mov edx, dword ptr [ecx] */ 2219 PUSH32(esp, esi); /* 0x3C0047B5: push esi */ 2220 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C0047B6: call dword ptr [edx + 0xc] */ 2221 RECOMP_FLAGS_IN(); 2222 eax = ebp + (-0x38); /* 0x3C0047B9: lea eax, [ebp - 0x38] */ 2223 PUSH32(esp, eax); /* 0x3C0047BC: push eax */ 2224 ecx = esi; /* 0x3C0047BD: mov ecx, esi */ 2225 RECOMP_ICALL(0x3C007C00u); /* 0x3C0047BF: call 0x3c007c00 */ /* not lifted */ 2226 RECOMP_FLAGS_IN(); 2227 esi = MEM32(ebp + (-0x10)); /* 0x3C0047C4: mov esi, dword ptr [ebp - 0x10] */ 2228 L_3C0047C7: 2229 ecx = MEM32(ebp + 0x8); /* 0x3C0047C7: mov ecx, dword ptr [ebp + 8] */ 2230 eax = MEM32(ecx + 0x8); /* 0x3C0047CA: mov eax, dword ptr [ecx + 8] */ 2231 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 2232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2233 esi = esi + 0xCu; /* 0x3C0047CD: add esi, 0xc */ 2234 _flag_k = FK_ADD; 2235 /* cmp esi, eax */ /* 0x3C0047D0: cmp esi, eax */ 2236 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2238 _flag_k = FK_CMP; 2239 MEM32(ebp + (-0x10)) = esi; /* 0x3C0047D2: mov dword ptr [ebp - 0x10], esi */ 2240 RECOMP_BACKEDGE(); 2241 if (CMP_NE(_flag_a, _flag_b)) goto L_3C004584; /* 0x3C0047D5: jne 0x3c004584 */ 2242 L_3C0047DB: 2243 ebx = POP32_VAL(esp); /* 0x3C0047DB: pop ebx */ 2244 L_3C0047DC: 2245 ecx = MEM32(ebp + (-0xC)); /* 0x3C0047DC: mov ecx, dword ptr [ebp - 0xc] */ 2246 edi = POP32_VAL(esp); /* 0x3C0047DF: pop edi */ 2247 esi = POP32_VAL(esp); /* 0x3C0047E0: pop esi */ 2248 MEM32(FS_BASE + (0)) = ecx; /* 0x3C0047E1: mov dword ptr fs:[0], ecx */ 2249 esp = ebp; /* 0x3C0047E8: mov esp, ebp */ 2250 ebp = POP32_VAL(esp); /* 0x3C0047EA: pop ebp */ 2251 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C0047EB: ret 0xc */ 2252 RECOMP_REGS_OUT(); 2253 } 2254 2255 void sub_3C0047F0(void) { 2256 int _fpu_cmp = 0; 2257 uint32_t _cf = 0; 2258 int _df = 1; 2259 uint32_t _flag_k = FK_NONE; 2260 uint32_t _flag_a = 0, _flag_b = 0; 2261 uint32_t _itail_tgt = 0; 2262 RECOMP_REGS_LOCALS 2263 RECOMP_ENTER(0x3C0047F0u); 2264 2265 L_3C0047F0: 2266 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0047F0: ret 4 */ 2267 RECOMP_REGS_OUT(); 2268 } 2269 2270 void sub_3C004800(void) { 2271 int _fpu_cmp = 0; 2272 uint32_t _cf = 0; 2273 int _df = 1; 2274 uint32_t _flag_k = FK_NONE; 2275 uint32_t _flag_a = 0, _flag_b = 0; 2276 uint32_t _itail_tgt = 0; 2277 RECOMP_REGS_LOCALS 2278 RECOMP_ENTER(0x3C004800u); 2279 2280 L_3C004800: 2281 eax = MEM32(ecx + 0x8); /* 0x3C004800: mov eax, dword ptr [ecx + 8] */ 2282 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004803: ret */ 2283 RECOMP_REGS_OUT(); 2284 } 2285 2286 void sub_3C004810(void) { 2287 int _fpu_cmp = 0; 2288 uint32_t _cf = 0; 2289 int _df = 1; 2290 uint32_t _flag_k = FK_NONE; 2291 uint32_t _flag_a = 0, _flag_b = 0; 2292 uint32_t _itail_tgt = 0; 2293 RECOMP_REGS_LOCALS 2294 RECOMP_ENTER(0x3C004810u); 2295 2296 L_3C004810: 2297 PUSH32(esp, ebp); /* 0x3C004810: push ebp */ 2298 ebp = esp; /* 0x3C004811: mov ebp, esp */ 2299 eax = MEM32(ebp + 0x8); /* 0x3C004813: mov eax, dword ptr [ebp + 8] */ 2300 ecx = MEM32(ecx + 0x8); /* 0x3C004816: mov ecx, dword ptr [ecx + 8] */ 2301 PUSH32(esp, eax); /* 0x3C004819: push eax */ 2302 RECOMP_ICALL(0x3C006AB0u); /* 0x3C00481A: call 0x3c006ab0 */ /* not lifted */ 2303 RECOMP_FLAGS_IN(); 2304 ebp = POP32_VAL(esp); /* 0x3C00481F: pop ebp */ 2305 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C004820: ret 4 */ 2306 RECOMP_REGS_OUT(); 2307 } 2308 2309 void sub_3C004830(void) { 2310 int _fpu_cmp = 0; 2311 uint32_t _cf = 0; 2312 int _df = 1; 2313 uint32_t _flag_k = FK_NONE; 2314 uint32_t _flag_a = 0, _flag_b = 0; 2315 uint32_t _itail_tgt = 0; 2316 RECOMP_REGS_LOCALS 2317 RECOMP_ENTER(0x3C004830u); 2318 2319 L_3C004830: 2320 PUSH32(esp, ebp); /* 0x3C004830: push ebp */ 2321 ebp = esp; /* 0x3C004831: mov ebp, esp */ 2322 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2324 esp = esp - 8; /* 0x3C004833: sub esp, 8 */ 2325 _flag_k = FK_CMP; 2326 PUSH32(esp, esi); /* 0x3C004836: push esi */ 2327 esi = ecx; /* 0x3C004837: mov esi, ecx */ 2328 RECOMP_ICALL(0x3C003880u); /* 0x3C004839: call 0x3c003880 */ /* not lifted */ 2329 RECOMP_FLAGS_IN(); 2330 eax = MEM32(ebp + 0x8); /* 0x3C00483E: mov eax, dword ptr [ebp + 8] */ 2331 ecx = MEM32(esi + 0x8); /* 0x3C004841: mov ecx, dword ptr [esi + 8] */ 2332 PUSH32(esp, eax); /* 0x3C004844: push eax */ 2333 RECOMP_ICALL(0x3C006D30u); /* 0x3C004845: call 0x3c006d30 */ /* not lifted */ 2334 RECOMP_FLAGS_IN(); 2335 ecx = MEM32(esi + 0xC); /* 0x3C00484A: mov ecx, dword ptr [esi + 0xc] */ 2336 edx = ebp + (-0x8); /* 0x3C00484D: lea edx, [ebp - 8] */ 2337 MEM32(ebp + (-0x4)) = ecx; /* 0x3C004850: mov dword ptr [ebp - 4], ecx */ 2338 ecx = MEM32(esi + 0x8); /* 0x3C004853: mov ecx, dword ptr [esi + 8] */ 2339 PUSH32(esp, edx); /* 0x3C004856: push edx */ 2340 MEM32(ebp + (-0x8)) = 0x3C0092C0u; /* 0x3C004857: mov dword ptr [ebp - 8], 0x3c0092c0 */ 2341 RECOMP_ICALL(0x3C006920u); /* 0x3C00485E: call 0x3c006920 */ /* not lifted */ 2342 RECOMP_FLAGS_IN(); 2343 MEM32(esi + 0x10) = 0; /* 0x3C004863: mov dword ptr [esi + 0x10], 0 */ 2344 esi = POP32_VAL(esp); /* 0x3C00486A: pop esi */ 2345 esp = ebp; /* 0x3C00486B: mov esp, ebp */ 2346 ebp = POP32_VAL(esp); /* 0x3C00486D: pop ebp */ 2347 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C00486E: ret 4 */ 2348 RECOMP_REGS_OUT(); 2349 } 2350 2351 void sub_3C004880(void) { 2352 int _fpu_cmp = 0; 2353 uint32_t _cf = 0; 2354 int _df = 1; 2355 uint32_t _flag_k = FK_NONE; 2356 uint32_t _flag_a = 0, _flag_b = 0; 2357 uint32_t _itail_tgt = 0; 2358 RECOMP_REGS_LOCALS 2359 RECOMP_ENTER(0x3C004880u); 2360 2361 L_3C004880: 2362 PUSH32(esp, ebp); /* 0x3C004880: push ebp */ 2363 ebp = esp; /* 0x3C004881: mov ebp, esp */ 2364 ecx = MEM32(ecx + 0x4); /* 0x3C004883: mov ecx, dword ptr [ecx + 4] */ 2365 eax = MEM32(ecx); /* 0x3C004886: mov eax, dword ptr [ecx] */ 2366 PUSH32(esp, esi); /* 0x3C004888: push esi */ 2367 esi = MEM32(ebp + 0x8); /* 0x3C004889: mov esi, dword ptr [ebp + 8] */ 2368 PUSH32(esp, esi); /* 0x3C00488C: push esi */ 2369 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C00488D: call dword ptr [eax + 0xc] */ 2370 RECOMP_FLAGS_IN(); 2371 ecx = esi; /* 0x3C004890: mov ecx, esi */ 2372 RECOMP_ICALL(0x3C007C50u); /* 0x3C004892: call 0x3c007c50 */ /* not lifted */ 2373 RECOMP_FLAGS_IN(); 2374 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2375 eax = 0; /* 0x3C004897: xor eax, eax */ 2376 _cf = 0; 2377 _flag_k = FK_TEST; 2378 esi = POP32_VAL(esp); /* 0x3C004899: pop esi */ 2379 ebp = POP32_VAL(esp); /* 0x3C00489A: pop ebp */ 2380 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C00489B: ret 4 */ 2381 RECOMP_REGS_OUT(); 2382 } 2383 2384 void sub_3C0048A0(void) { 2385 int _fpu_cmp = 0; 2386 uint32_t _cf = 0; 2387 int _df = 1; 2388 uint32_t _flag_k = FK_NONE; 2389 uint32_t _flag_a = 0, _flag_b = 0; 2390 uint32_t _itail_tgt = 0; 2391 RECOMP_REGS_LOCALS 2392 RECOMP_ENTER(0x3C0048A0u); 2393 2394 L_3C0048A0: 2395 PUSH32(esp, ebp); /* 0x3C0048A0: push ebp */ 2396 ebp = esp; /* 0x3C0048A1: mov ebp, esp */ 2397 PUSH32(esp, 0xFFFFFFFFu); /* 0x3C0048A3: push -1 */ 2398 PUSH32(esp, 0x3C008E20u); /* 0x3C0048A5: push 0x3c008e20 */ 2399 eax = MEM32(FS_BASE + (0)); /* 0x3C0048AA: mov eax, dword ptr fs:[0] */ 2400 PUSH32(esp, eax); /* 0x3C0048B0: push eax */ 2401 MEM32(FS_BASE + (0)) = esp; /* 0x3C0048B1: mov dword ptr fs:[0], esp */ 2402 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 2403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2404 esp = esp - 0x68u; /* 0x3C0048B8: sub esp, 0x68 */ 2405 _flag_k = FK_CMP; 2406 PUSH32(esp, ebx); /* 0x3C0048BB: push ebx */ 2407 PUSH32(esp, esi); /* 0x3C0048BC: push esi */ 2408 PUSH32(esp, edi); /* 0x3C0048BD: push edi */ 2409 esi = ecx; /* 0x3C0048BE: mov esi, ecx */ 2410 RECOMP_ICALL(0x3C003880u); /* 0x3C0048C0: call 0x3c003880 */ /* not lifted */ 2411 RECOMP_FLAGS_IN(); 2412 ecx = MEM32(esi + 0xC); /* 0x3C0048C5: mov ecx, dword ptr [esi + 0xc] */ 2413 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2414 edi = 0; /* 0x3C0048C8: xor edi, edi */ 2415 _cf = 0; 2416 _flag_k = FK_TEST; 2417 /* cmp ecx, edi */ /* 0x3C0048CA: cmp ecx, edi */ 2418 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2420 _flag_k = FK_CMP; 2421 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0048D5; /* 0x3C0048CC: je 0x3c0048d5 */ 2422 L_3C0048CE: 2423 eax = MEM32(ecx); /* 0x3C0048CE: mov eax, dword ptr [ecx] */ 2424 PUSH32(esp, 1); /* 0x3C0048D0: push 1 */ 2425 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3C0048D2: call dword ptr [eax + 4] */ 2426 RECOMP_FLAGS_IN(); 2427 L_3C0048D5: 2428 ecx = MEM32(ebp + 0x24); /* 0x3C0048D5: mov ecx, dword ptr [ebp + 0x24] */ 2429 edx = MEM32(ebp + 0x8); /* 0x3C0048D8: mov edx, dword ptr [ebp + 8] */ 2430 PUSH32(esp, ecx); /* 0x3C0048DB: push ecx */ 2431 PUSH32(esp, edx); /* 0x3C0048DC: push edx */ 2432 RECOMP_ICALL(MEM32(0x3C0090E0)); /* 0x3C0048DD: call dword ptr [0x3c0090e0] */ 2433 RECOMP_FLAGS_IN(); 2434 MEM32(esi + 0xC) = eax; /* 0x3C0048E3: mov dword ptr [esi + 0xc], eax */ 2435 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x3C0048E6: mov al, byte ptr [ebp + 0x13] */ 2436 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2437 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2438 esp = esp + 8; /* 0x3C0048E9: add esp, 8 */ 2439 _flag_k = FK_ADD; 2440 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x3C0048EC: mov byte ptr [ebp - 0x20], al */ 2441 MEM32(ebp + (-0x1C)) = edi; /* 0x3C0048EF: mov dword ptr [ebp - 0x1c], edi */ 2442 MEM32(ebp + (-0x18)) = edi; /* 0x3C0048F2: mov dword ptr [ebp - 0x18], edi */ 2443 MEM32(ebp + (-0x14)) = edi; /* 0x3C0048F5: mov dword ptr [ebp - 0x14], edi */ 2444 eax = MEM32(ebp + 0x10); /* 0x3C0048F8: mov eax, dword ptr [ebp + 0x10] */ 2445 ecx = MEM32(eax + 0x8); /* 0x3C0048FB: mov ecx, dword ptr [eax + 8] */ 2446 MEM32(ebp + (-0x4)) = edi; /* 0x3C0048FE: mov dword ptr [ebp - 4], edi */ 2447 edi = MEM32(eax + 0x4); /* 0x3C004901: mov edi, dword ptr [eax + 4] */ 2448 /* cmp edi, ecx */ /* 0x3C004904: cmp edi, ecx */ 2449 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2451 _flag_k = FK_CMP; 2452 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00492A; /* 0x3C004906: je 0x3c00492a */ 2453 L_3C004908: 2454 ebx = edi + 0x4; /* 0x3C004908: lea ebx, [edi + 4] */ 2455 L_3C00490B: 2456 ecx = MEM32(ebp + (-0x18)); /* 0x3C00490B: mov ecx, dword ptr [ebp - 0x18] */ 2457 PUSH32(esp, ebx); /* 0x3C00490E: push ebx */ 2458 PUSH32(esp, 1); /* 0x3C00490F: push 1 */ 2459 PUSH32(esp, ecx); /* 0x3C004911: push ecx */ 2460 ecx = ebp + (-0x20); /* 0x3C004912: lea ecx, [ebp - 0x20] */ 2461 RECOMP_ICALL(0x3C002080u); /* 0x3C004915: call 0x3c002080 */ /* not lifted */ 2462 RECOMP_FLAGS_IN(); 2463 edx = MEM32(ebp + 0x10); /* 0x3C00491A: mov edx, dword ptr [ebp + 0x10] */ 2464 eax = MEM32(edx + 0x8); /* 0x3C00491D: mov eax, dword ptr [edx + 8] */ 2465 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 2466 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2467 edi = edi + 0x10u; /* 0x3C004920: add edi, 0x10 */ 2468 _flag_k = FK_ADD; 2469 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 2470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2471 ebx = ebx + 0x10u; /* 0x3C004923: add ebx, 0x10 */ 2472 _flag_k = FK_ADD; 2473 /* cmp edi, eax */ /* 0x3C004926: cmp edi, eax */ 2474 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2476 _flag_k = FK_CMP; 2477 RECOMP_BACKEDGE(); 2478 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00490B; /* 0x3C004928: jne 0x3c00490b */ 2479 L_3C00492A: 2480 eax = MEM32(ebp + 0xC); /* 0x3C00492A: mov eax, dword ptr [ebp + 0xc] */ 2481 ebx = MEM32(eax + 0x8); /* 0x3C00492D: mov ebx, dword ptr [eax + 8] */ 2482 edi = MEM32(eax + 0x4); /* 0x3C004930: mov edi, dword ptr [eax + 4] */ 2483 /* cmp edi, ebx */ /* 0x3C004933: cmp edi, ebx */ 2484 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2486 _flag_k = FK_CMP; 2487 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00494D; /* 0x3C004935: je 0x3c00494d */ 2488 L_3C004937: 2489 eax = MEM32(ebp + (-0x18)); /* 0x3C004937: mov eax, dword ptr [ebp - 0x18] */ 2490 PUSH32(esp, edi); /* 0x3C00493A: push edi */ 2491 PUSH32(esp, 1); /* 0x3C00493B: push 1 */ 2492 PUSH32(esp, eax); /* 0x3C00493D: push eax */ 2493 ecx = ebp + (-0x20); /* 0x3C00493E: lea ecx, [ebp - 0x20] */ 2494 RECOMP_ICALL(0x3C002080u); /* 0x3C004941: call 0x3c002080 */ /* not lifted */ 2495 RECOMP_FLAGS_IN(); 2496 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 2497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2498 edi = edi + 0xCu; /* 0x3C004946: add edi, 0xc */ 2499 _flag_k = FK_ADD; 2500 /* cmp edi, ebx */ /* 0x3C004949: cmp edi, ebx */ 2501 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2503 _flag_k = FK_CMP; 2504 RECOMP_BACKEDGE(); 2505 if (CMP_NE(_flag_a, _flag_b)) goto L_3C004937; /* 0x3C00494B: jne 0x3c004937 */ 2506 L_3C00494D: 2507 ecx = MEM32(ebp + 0x18); /* 0x3C00494D: mov ecx, dword ptr [ebp + 0x18] */ 2508 edx = MEM32(ebp + 0x14); /* 0x3C004950: mov edx, dword ptr [ebp + 0x14] */ 2509 PUSH32(esp, ecx); /* 0x3C004953: push ecx */ 2510 PUSH32(esp, edx); /* 0x3C004954: push edx */ 2511 eax = ebp + (-0x20); /* 0x3C004955: lea eax, [ebp - 0x20] */ 2512 PUSH32(esp, eax); /* 0x3C004958: push eax */ 2513 ecx = esi; /* 0x3C004959: mov ecx, esi */ 2514 RECOMP_ICALL(0x3C004550u); /* 0x3C00495B: call 0x3c004550 */ /* not lifted */ 2515 RECOMP_FLAGS_IN(); 2516 ecx = MEM32(0x3C0090DC); /* 0x3C004960: mov ecx, dword ptr [0x3c0090dc] */ 2517 edx = MEM32(ebp + 0x20); /* 0x3C004966: mov edx, dword ptr [ebp + 0x20] */ 2518 eax = ebp + 0x13; /* 0x3C004969: lea eax, [ebp + 0x13] */ 2519 PUSH32(esp, eax); /* 0x3C00496C: push eax */ 2520 MEM32(ebp + (-0x40)) = ecx; /* 0x3C00496D: mov dword ptr [ebp - 0x40], ecx */ 2521 PUSH32(esp, 0); /* 0x3C004970: push 0 */ 2522 ecx = ebp + 0x27; /* 0x3C004972: lea ecx, [ebp + 0x27] */ 2523 PUSH32(esp, ecx); /* 0x3C004975: push ecx */ 2524 ecx = ebp + (-0x34); /* 0x3C004976: lea ecx, [ebp - 0x34] */ 2525 MEM32(ebp + (-0x3C)) = esi; /* 0x3C004979: mov dword ptr [ebp - 0x3c], esi */ 2526 MEM32(ebp + (-0x38)) = edx; /* 0x3C00497C: mov dword ptr [ebp - 0x38], edx */ 2527 RECOMP_ICALL(0x3C0050A0u); /* 0x3C00497F: call 0x3c0050a0 */ /* not lifted */ 2528 RECOMP_FLAGS_IN(); 2529 MEM32(ebp + (-0x40)) = 0x3C0092A4u; /* 0x3C004984: mov dword ptr [ebp - 0x40], 0x3c0092a4 */ 2530 ecx = MEM32(esi + 0xC); /* 0x3C00498B: mov ecx, dword ptr [esi + 0xc] */ 2531 edx = MEM32(ecx); /* 0x3C00498E: mov edx, dword ptr [ecx] */ 2532 eax = ebp + (-0x40); /* 0x3C004990: lea eax, [ebp - 0x40] */ 2533 PUSH32(esp, eax); /* 0x3C004993: push eax */ 2534 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3C004994: mov byte ptr [ebp - 4], 1 */ 2535 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3C004998: call dword ptr [edx + 0x38] */ 2536 RECOMP_FLAGS_IN(); 2537 ecx = ebp + 0xC; /* 0x3C00499B: lea ecx, [ebp + 0xc] */ 2538 PUSH32(esp, ecx); /* 0x3C00499E: push ecx */ 2539 ecx = ebp + (-0x34); /* 0x3C00499F: lea ecx, [ebp - 0x34] */ 2540 RECOMP_ICALL(0x3C005110u); /* 0x3C0049A2: call 0x3c005110 */ /* not lifted */ 2541 RECOMP_FLAGS_IN(); 2542 eax = MEM32(eax); /* 0x3C0049A7: mov eax, dword ptr [eax] */ 2543 ecx = MEM32(ebp + (-0x30)); /* 0x3C0049A9: mov ecx, dword ptr [ebp - 0x30] */ 2544 /* cmp eax, ecx */ /* 0x3C0049AC: cmp eax, ecx */ 2545 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2547 _flag_k = FK_CMP; 2548 MEM32(ebp + 0x8) = eax; /* 0x3C0049AE: mov dword ptr [ebp + 8], eax */ 2549 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0049D1; /* 0x3C0049B1: je 0x3c0049d1 */ 2550 L_3C0049B3: 2551 edx = MEM32(eax + 0xC); /* 0x3C0049B3: mov edx, dword ptr [eax + 0xc] */ 2552 ecx = MEM32(ebp + (-0x3C)); /* 0x3C0049B6: mov ecx, dword ptr [ebp - 0x3c] */ 2553 PUSH32(esp, edx); /* 0x3C0049B9: push edx */ 2554 RECOMP_ICALL(0x3C003AB0u); /* 0x3C0049BA: call 0x3c003ab0 */ /* not lifted */ 2555 RECOMP_FLAGS_IN(); 2556 ecx = ebp + 0x8; /* 0x3C0049BF: lea ecx, [ebp + 8] */ 2557 RECOMP_ICALL(0x3C005430u); /* 0x3C0049C2: call 0x3c005430 */ /* not lifted */ 2558 RECOMP_FLAGS_IN(); 2559 eax = MEM32(ebp + 0x8); /* 0x3C0049C7: mov eax, dword ptr [ebp + 8] */ 2560 ecx = MEM32(ebp + (-0x30)); /* 0x3C0049CA: mov ecx, dword ptr [ebp - 0x30] */ 2561 /* cmp eax, ecx */ /* 0x3C0049CD: cmp eax, ecx */ 2562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2564 _flag_k = FK_CMP; 2565 RECOMP_BACKEDGE(); 2566 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0049B3; /* 0x3C0049CF: jne 0x3c0049b3 */ 2567 L_3C0049D1: 2568 PUSH32(esp, ecx); /* 0x3C0049D1: push ecx */ 2569 eax = ebp + 0xC; /* 0x3C0049D2: lea eax, [ebp + 0xc] */ 2570 PUSH32(esp, eax); /* 0x3C0049D5: push eax */ 2571 ecx = ebp + (-0x34); /* 0x3C0049D6: lea ecx, [ebp - 0x34] */ 2572 RECOMP_ICALL(0x3C005110u); /* 0x3C0049D9: call 0x3c005110 */ /* not lifted */ 2573 RECOMP_FLAGS_IN(); 2574 ecx = MEM32(eax); /* 0x3C0049DE: mov ecx, dword ptr [eax] */ 2575 PUSH32(esp, ecx); /* 0x3C0049E0: push ecx */ 2576 edx = ebp + 0x18; /* 0x3C0049E1: lea edx, [ebp + 0x18] */ 2577 PUSH32(esp, edx); /* 0x3C0049E4: push edx */ 2578 ecx = ebp + (-0x34); /* 0x3C0049E5: lea ecx, [ebp - 0x34] */ 2579 RECOMP_ICALL(0x3C005380u); /* 0x3C0049E8: call 0x3c005380 */ /* not lifted */ 2580 RECOMP_FLAGS_IN(); 2581 ecx = MEM32(esi + 0xC); /* 0x3C0049ED: mov ecx, dword ptr [esi + 0xc] */ 2582 edx = ebp + (-0x10); /* 0x3C0049F0: lea edx, [ebp - 0x10] */ 2583 MEM32(ebp + (-0x10)) = 0x3C00929Cu; /* 0x3C0049F3: mov dword ptr [ebp - 0x10], 0x3c00929c */ 2584 eax = MEM32(ecx); /* 0x3C0049FA: mov eax, dword ptr [ecx] */ 2585 PUSH32(esp, edx); /* 0x3C0049FC: push edx */ 2586 RECOMP_ICALL(MEM32(eax + 0x38)); /* 0x3C0049FD: call dword ptr [eax + 0x38] */ 2587 RECOMP_FLAGS_IN(); 2588 edi = MEM32(esi + 0x10); /* 0x3C004A00: mov edi, dword ptr [esi + 0x10] */ 2589 ebx = 0x3C009284u; /* 0x3C004A03: mov ebx, 0x3c009284 */ 2590 MEM32(ebp + (-0x74)) = ebx; /* 0x3C004A08: mov dword ptr [ebp - 0x74], ebx */ 2591 ecx = ebp + (-0x64); /* 0x3C004A0B: lea ecx, [ebp - 0x64] */ 2592 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3C004A0E: mov byte ptr [ebp - 4], 2 */ 2593 MEM32(ebp + (-0x70)) = 0; /* 0x3C004A12: mov dword ptr [ebp - 0x70], 0 */ 2594 MEM32(ebp + (-0x6C)) = 0; /* 0x3C004A19: mov dword ptr [ebp - 0x6c], 0 */ 2595 MEM32(ebp + (-0x68)) = 0; /* 0x3C004A20: mov dword ptr [ebp - 0x68], 0 */ 2596 RECOMP_ICALL(MEM32(0x3C009090)); /* 0x3C004A27: call dword ptr [0x3c009090] */ 2597 RECOMP_FLAGS_IN(); 2598 MEM32(ebp + (-0x58)) = edi; /* 0x3C004A2D: mov dword ptr [ebp - 0x58], edi */ 2599 MEM32(ebp + (-0x54)) = 0x3ECCCCCDu; /* 0x3C004A30: mov dword ptr [ebp - 0x54], 0x3ecccccd */ 2600 MEM32(ebp + (-0x50)) = 0x3F490FDBu; /* 0x3C004A37: mov dword ptr [ebp - 0x50], 0x3f490fdb */ 2601 MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x3C004A3E: mov dword ptr [ebp - 0x4c], 0x3f800000 */ 2602 MEM8(ebp + (-0x48)) = (uint8_t)(0); /* 0x3C004A45: mov byte ptr [ebp - 0x48], 0 */ 2603 MEM32(ebp + (-0x44)) = 0; /* 0x3C004A49: mov dword ptr [ebp - 0x44], 0 */ 2604 MEM32(ebp + (-0x74)) = 0x3C009290u; /* 0x3C004A50: mov dword ptr [ebp - 0x74], 0x3c009290 */ 2605 eax = MEM32(esi + 0x10); /* 0x3C004A57: mov eax, dword ptr [esi + 0x10] */ 2606 /* test eax, eax */ /* 0x3C004A5A: test eax, eax */ 2607 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2608 _cf = 0; 2609 _flag_k = FK_TEST; 2610 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3C004A5C: mov byte ptr [ebp - 4], 3 */ 2611 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004A75; /* 0x3C004A60: je 0x3c004a75 */ 2612 L_3C004A62: 2613 PUSH32(esp, 0); /* 0x3C004A62: push 0 */ 2614 PUSH32(esp, 0); /* 0x3C004A64: push 0 */ 2615 PUSH32(esp, 0); /* 0x3C004A66: push 0 */ 2616 ecx = ebp + (-0x74); /* 0x3C004A68: lea ecx, [ebp - 0x74] */ 2617 PUSH32(esp, ecx); /* 0x3C004A6B: push ecx */ 2618 ecx = MEM32(esi + 0x8); /* 0x3C004A6C: mov ecx, dword ptr [esi + 8] */ 2619 PUSH32(esp, eax); /* 0x3C004A6F: push eax */ 2620 RECOMP_ICALL(0x3C006A30u); /* 0x3C004A70: call 0x3c006a30 */ /* not lifted */ 2621 RECOMP_FLAGS_IN(); 2622 L_3C004A75: 2623 edx = MEM32(ebp + 0x1C); /* 0x3C004A75: mov edx, dword ptr [ebp + 0x1c] */ 2624 ecx = MEM32(esi + 0x8); /* 0x3C004A78: mov ecx, dword ptr [esi + 8] */ 2625 PUSH32(esp, edx); /* 0x3C004A7B: push edx */ 2626 RECOMP_ICALL(0x3C006A00u); /* 0x3C004A7C: call 0x3c006a00 */ /* not lifted */ 2627 RECOMP_FLAGS_IN(); 2628 ecx = ebp + (-0x34); /* 0x3C004A81: lea ecx, [ebp - 0x34] */ 2629 MEM32(ebp + (-0x74)) = ebx; /* 0x3C004A84: mov dword ptr [ebp - 0x74], ebx */ 2630 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C004A87: mov byte ptr [ebp - 4], 0 */ 2631 MEM32(ebp + (-0x40)) = 0x3C0092A4u; /* 0x3C004A8B: mov dword ptr [ebp - 0x40], 0x3c0092a4 */ 2632 RECOMP_ICALL(0x3C004FE0u); /* 0x3C004A92: call 0x3c004fe0 */ /* not lifted */ 2633 RECOMP_FLAGS_IN(); 2634 eax = MEM32(ebp + (-0x1C)); /* 0x3C004A97: mov eax, dword ptr [ebp - 0x1c] */ 2635 PUSH32(esp, eax); /* 0x3C004A9A: push eax */ 2636 RECOMP_ICALL(0x3C0089DEu); /* 0x3C004A9B: call 0x3c0089de */ /* not lifted */ 2637 RECOMP_FLAGS_IN(); 2638 ecx = MEM32(ebp + (-0xC)); /* 0x3C004AA0: mov ecx, dword ptr [ebp - 0xc] */ 2639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2641 esp = esp + 4; /* 0x3C004AA3: add esp, 4 */ 2642 _flag_k = FK_ADD; 2643 edi = POP32_VAL(esp); /* 0x3C004AA6: pop edi */ 2644 esi = POP32_VAL(esp); /* 0x3C004AA7: pop esi */ 2645 ebx = POP32_VAL(esp); /* 0x3C004AA8: pop ebx */ 2646 MEM32(FS_BASE + (0)) = ecx; /* 0x3C004AA9: mov dword ptr fs:[0], ecx */ 2647 esp = ebp; /* 0x3C004AB0: mov esp, ebp */ 2648 ebp = POP32_VAL(esp); /* 0x3C004AB2: pop ebp */ 2649 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x3C004AB3: ret 0x20 */ 2650 RECOMP_REGS_OUT(); 2651 } 2652 2653 void sub_3C004AC0(void) { 2654 int _fpu_cmp = 0; 2655 uint32_t _cf = 0; 2656 int _df = 1; 2657 uint32_t _flag_k = FK_NONE; 2658 uint32_t _flag_a = 0, _flag_b = 0; 2659 uint32_t _itail_tgt = 0; 2660 RECOMP_REGS_LOCALS 2661 RECOMP_ENTER(0x3C004AC0u); 2662 2663 L_3C004AC0: 2664 MEM32(ecx) = 0x3C009284u; /* 0x3C004AC0: mov dword ptr [ecx], 0x3c009284 */ 2665 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004AC6: ret */ 2666 RECOMP_REGS_OUT(); 2667 } 2668 2669 void sub_3C004AD0(void) { 2670 int _fpu_cmp = 0; 2671 uint32_t _cf = 0; 2672 int _df = 1; 2673 uint32_t _flag_k = FK_NONE; 2674 uint32_t _flag_a = 0, _flag_b = 0; 2675 uint32_t _itail_tgt = 0; 2676 RECOMP_REGS_LOCALS 2677 RECOMP_ENTER(0x3C004AD0u); 2678 2679 L_3C004AD0: 2680 PUSH32(esp, ebp); /* 0x3C004AD0: push ebp */ 2681 ebp = esp; /* 0x3C004AD1: mov ebp, esp */ 2682 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 2683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2684 esp = esp - 0x38u; /* 0x3C004AD3: sub esp, 0x38 */ 2685 _flag_k = FK_CMP; 2686 PUSH32(esp, ebx); /* 0x3C004AD6: push ebx */ 2687 PUSH32(esp, esi); /* 0x3C004AD7: push esi */ 2688 PUSH32(esp, edi); /* 0x3C004AD8: push edi */ 2689 PUSH32(esp, 0); /* 0x3C004AD9: push 0 */ 2690 PUSH32(esp, 0x3C00D318u); /* 0x3C004ADB: push 0x3c00d318 */ 2691 esi = ecx; /* 0x3C004AE0: mov esi, ecx */ 2692 eax = MEM32(esi + 0xC); /* 0x3C004AE2: mov eax, dword ptr [esi + 0xc] */ 2693 PUSH32(esp, 0x3C00D1D0u); /* 0x3C004AE5: push 0x3c00d1d0 */ 2694 PUSH32(esp, 0); /* 0x3C004AEA: push 0 */ 2695 PUSH32(esp, eax); /* 0x3C004AEC: push eax */ 2696 RECOMP_ICALL(0x3C008B4Cu); /* 0x3C004AED: call 0x3c008b4c */ /* not lifted */ 2697 RECOMP_FLAGS_IN(); 2698 ebx = MEM32(ebp + 0x18); /* 0x3C004AF2: mov ebx, dword ptr [ebp + 0x18] */ 2699 edi = MEM32(ebp + 0x8); /* 0x3C004AF5: mov edi, dword ptr [ebp + 8] */ 2700 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2702 esp = esp + 0x14u; /* 0x3C004AF8: add esp, 0x14 */ 2703 _flag_k = FK_ADD; 2704 /* test eax, eax */ /* 0x3C004AFB: test eax, eax */ 2705 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2706 _cf = 0; 2707 _flag_k = FK_TEST; 2708 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004B37; /* 0x3C004AFD: je 0x3c004b37 */ 2709 L_3C004AFF: 2710 ecx = MEM32(edi + 0xC); /* 0x3C004AFF: mov ecx, dword ptr [edi + 0xc] */ 2711 PUSH32(esp, 0); /* 0x3C004B02: push 0 */ 2712 PUSH32(esp, 0x3C00D318u); /* 0x3C004B04: push 0x3c00d318 */ 2713 PUSH32(esp, 0x3C00D1D0u); /* 0x3C004B09: push 0x3c00d1d0 */ 2714 PUSH32(esp, 0); /* 0x3C004B0E: push 0 */ 2715 PUSH32(esp, ecx); /* 0x3C004B10: push ecx */ 2716 RECOMP_ICALL(0x3C008B4Cu); /* 0x3C004B11: call 0x3c008b4c */ /* not lifted */ 2717 RECOMP_FLAGS_IN(); 2718 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2720 esp = esp + 0x14u; /* 0x3C004B16: add esp, 0x14 */ 2721 _flag_k = FK_ADD; 2722 /* test eax, eax */ /* 0x3C004B19: test eax, eax */ 2723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2724 _cf = 0; 2725 _flag_k = FK_TEST; 2726 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004B37; /* 0x3C004B1B: je 0x3c004b37 */ 2727 L_3C004B1D: 2728 edx = MEM32(ebp + 0x14); /* 0x3C004B1D: mov edx, dword ptr [ebp + 0x14] */ 2729 eax = MEM32(ebp + 0x10); /* 0x3C004B20: mov eax, dword ptr [ebp + 0x10] */ 2730 ecx = MEM32(ebp + 0xC); /* 0x3C004B23: mov ecx, dword ptr [ebp + 0xc] */ 2731 PUSH32(esp, ebx); /* 0x3C004B26: push ebx */ 2732 PUSH32(esp, edx); /* 0x3C004B27: push edx */ 2733 edx = MEM32(edi + 0xC); /* 0x3C004B28: mov edx, dword ptr [edi + 0xc] */ 2734 PUSH32(esp, eax); /* 0x3C004B2B: push eax */ 2735 PUSH32(esp, ecx); /* 0x3C004B2C: push ecx */ 2736 ecx = MEM32(esi + 0xC); /* 0x3C004B2D: mov ecx, dword ptr [esi + 0xc] */ 2737 PUSH32(esp, edx); /* 0x3C004B30: push edx */ 2738 RECOMP_ICALL(MEM32(0x3C0090E4)); /* 0x3C004B31: call dword ptr [0x3c0090e4] */ 2739 RECOMP_FLAGS_IN(); 2740 L_3C004B37: 2741 fp_push((double)(int32_t)MEM32(ebp + 0x14)); /* 0x3C004B37: fild dword ptr [ebp + 0x14] */ 2742 eax = MEM32(esi + 0xC); /* 0x3C004B3A: mov eax, dword ptr [esi + 0xc] */ 2743 ecx = MEM32(ebp + 0x10); /* 0x3C004B3D: mov ecx, dword ptr [ebp + 0x10] */ 2744 edx = MEM32(ebp + 0x14); /* 0x3C004B40: mov edx, dword ptr [ebp + 0x14] */ 2745 _st[0] *= (double)*(float*)ADDR(0x3C0092E0); /* 0x3C004B43: fmul dword ptr [0x3c0092e0] */ 2746 MEM32(ebp + (-0x34)) = eax; /* 0x3C004B49: mov dword ptr [ebp - 0x34], eax */ 2747 MEM32(ebp + (-0x30)) = ecx; /* 0x3C004B4C: mov dword ptr [ebp - 0x30], ecx */ 2748 MEM32(ebp + (-0x2C)) = edx; /* 0x3C004B4F: mov dword ptr [ebp - 0x2c], edx */ 2749 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C0091C8)); /* 0x3C004B52: fcom dword ptr [0x3c0091c8] */ 2750 MEM32(ebp + (-0x28)) = ebx; /* 0x3C004B58: mov dword ptr [ebp - 0x28], ebx */ 2751 MEM32(ebp + (-0x24)) = 0; /* 0x3C004B5B: mov dword ptr [ebp - 0x24], 0 */ 2752 MEM32(ebp + (-0x20)) = 0; /* 0x3C004B62: mov dword ptr [ebp - 0x20], 0 */ 2753 MEM32(ebp + (-0x1C)) = 0; /* 0x3C004B69: mov dword ptr [ebp - 0x1c], 0 */ 2754 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004B70: fnstsw ax */ 2755 MEM32(ebp + (-0x18)) = 0x3F800000u; /* 0x3C004B72: mov dword ptr [ebp - 0x18], 0x3f800000 */ 2756 MEM8(ebp + (-0x14)) = (uint8_t)(1); /* 0x3C004B79: mov byte ptr [ebp - 0x14], 1 */ 2757 /* test HI8(eax), 1 */ /* 0x3C004B7D: test ah, 1 */ 2758 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2759 _cf = 0; 2760 _flag_k = FK_NARROW(FK_TEST, 24); 2761 MEM32(ebp + (-0x38)) = 0x3C0092DCu; /* 0x3C004B80: mov dword ptr [ebp - 0x38], 0x3c0092dc */ 2762 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C004B9E; /* 0x3C004B87: jne 0x3c004b9e */ 2763 L_3C004B89: 2764 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3C0092D0)); /* 0x3C004B89: fcom qword ptr [0x3c0092d0] */ 2765 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004B8F: fnstsw ax */ 2766 /* test HI8(eax), 1 */ /* 0x3C004B91: test ah, 1 */ 2767 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2768 _cf = 0; 2769 _flag_k = FK_NARROW(FK_TEST, 24); 2770 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004B9E; /* 0x3C004B94: je 0x3c004b9e */ 2771 L_3C004B96: 2772 _st[0] *= (double)*(float*)ADDR(0x3C00918C); /* 0x3C004B96: fmul dword ptr [0x3c00918c] */ 2773 goto L_3C004BBF; /* 0x3C004B9C: jmp 0x3c004bbf */ 2774 L_3C004B9E: 2775 _st[0] *= (double)*(float*)ADDR(0x3C0092C8); /* 0x3C004B9E: fmul dword ptr [0x3c0092c8] */ 2776 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2778 esp = esp - 8; /* 0x3C004BA4: sub esp, 8 */ 2779 _flag_k = FK_CMP; 2780 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x14) = _v; } /* 0x3C004BA7: fst dword ptr [ebp + 0x14] */ 2781 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3C004BAA: fstp qword ptr [esp] */ 2782 RECOMP_ICALL(MEM32(0x3C009038)); /* 0x3C004BAD: call dword ptr [0x3c009038] */ 2783 RECOMP_FLAGS_IN(); 2784 _st[0] = (double)*(float*)ADDR(ebp + 0x14) - _st[0]; /* 0x3C004BB3: fsubr dword ptr [ebp + 0x14] */ 2785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2787 esp = esp + 8; /* 0x3C004BB6: add esp, 8 */ 2788 _flag_k = FK_ADD; 2789 _st[0] *= (double)*(float*)ADDR(0x3C0092C4); /* 0x3C004BB9: fmul dword ptr [0x3c0092c4] */ 2790 L_3C004BBF: 2791 fp_push(_st[0]); /* 0x3C004BBF: fld st(0) */ 2792 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3C004BC1: fsin */ 2793 fp_push(*(float*)&MEM32(0x3C0091C8)); /* 0x3C004BC3: fld dword ptr [0x3c0091c8] */ 2794 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x14) = _v; } /* 0x3C004BC9: fst dword ptr [ebp + 0x14] */ 2795 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3C004BCC: fstp dword ptr [ebp - 0x10] */ 2796 eax = MEM32(ebp + 0x14); /* 0x3C004BCF: mov eax, dword ptr [ebp + 0x14] */ 2797 ecx = MEM32(ebp + (-0x10)); /* 0x3C004BD2: mov ecx, dword ptr [ebp - 0x10] */ 2798 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3C004BD5: fstp dword ptr [ebp - 0xc] */ 2799 edx = MEM32(ebp + (-0xC)); /* 0x3C004BD8: mov edx, dword ptr [ebp - 0xc] */ 2800 MEM32(ebp + (-0x24)) = ecx; /* 0x3C004BDB: mov dword ptr [ebp - 0x24], ecx */ 2801 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3C004BDE: fcos */ 2802 MEM32(ebp + (-0x20)) = edx; /* 0x3C004BE0: mov dword ptr [ebp - 0x20], edx */ 2803 edx = ebp + (-0x38); /* 0x3C004BE3: lea edx, [ebp - 0x38] */ 2804 MEM32(ebp + (-0x8)) = eax; /* 0x3C004BE6: mov dword ptr [ebp - 8], eax */ 2805 MEM32(ebp + (-0x1C)) = eax; /* 0x3C004BE9: mov dword ptr [ebp - 0x1c], eax */ 2806 eax = MEM32(edi + 0x8); /* 0x3C004BEC: mov eax, dword ptr [edi + 8] */ 2807 PUSH32(esp, edx); /* 0x3C004BEF: push edx */ 2808 PUSH32(esp, eax); /* 0x3C004BF0: push eax */ 2809 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3C004BF1: fstp dword ptr [ebp - 4] */ 2810 ecx = MEM32(ebp + (-0x4)); /* 0x3C004BF4: mov ecx, dword ptr [ebp - 4] */ 2811 MEM32(ebp + (-0x18)) = ecx; /* 0x3C004BF7: mov dword ptr [ebp - 0x18], ecx */ 2812 ecx = MEM32(esi + 0x8); /* 0x3C004BFA: mov ecx, dword ptr [esi + 8] */ 2813 RECOMP_ICALL(0x3C0063E0u); /* 0x3C004BFD: call 0x3c0063e0 */ /* not lifted */ 2814 RECOMP_FLAGS_IN(); 2815 edi = POP32_VAL(esp); /* 0x3C004C02: pop edi */ 2816 esi = POP32_VAL(esp); /* 0x3C004C03: pop esi */ 2817 ebx = POP32_VAL(esp); /* 0x3C004C04: pop ebx */ 2818 esp = ebp; /* 0x3C004C05: mov esp, ebp */ 2819 ebp = POP32_VAL(esp); /* 0x3C004C07: pop ebp */ 2820 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C004C08: ret 0x14 */ 2821 RECOMP_REGS_OUT(); 2822 } 2823 2824 void sub_3C004C10(void) { 2825 int _fpu_cmp = 0; 2826 uint32_t _cf = 0; 2827 int _df = 1; 2828 uint32_t _flag_k = FK_NONE; 2829 uint32_t _flag_a = 0, _flag_b = 0; 2830 uint32_t _itail_tgt = 0; 2831 RECOMP_REGS_LOCALS 2832 RECOMP_ENTER(0x3C004C10u); 2833 2834 L_3C004C10: 2835 PUSH32(esp, ebp); /* 0x3C004C10: push ebp */ 2836 ebp = esp; /* 0x3C004C11: mov ebp, esp */ 2837 PUSH32(esp, esi); /* 0x3C004C13: push esi */ 2838 esi = ecx; /* 0x3C004C14: mov esi, ecx */ 2839 eax = MEM32(esi + 0x10); /* 0x3C004C16: mov eax, dword ptr [esi + 0x10] */ 2840 edx = MEM32(esi + 0x8); /* 0x3C004C19: mov edx, dword ptr [esi + 8] */ 2841 PUSH32(esp, edi); /* 0x3C004C1C: push edi */ 2842 edi = MEM32(ebp + 0x8); /* 0x3C004C1D: mov edi, dword ptr [ebp + 8] */ 2843 PUSH32(esp, eax); /* 0x3C004C20: push eax */ 2844 ecx = esi + 0x14; /* 0x3C004C21: lea ecx, [esi + 0x14] */ 2845 PUSH32(esp, ecx); /* 0x3C004C24: push ecx */ 2846 PUSH32(esp, edx); /* 0x3C004C25: push edx */ 2847 ecx = edi; /* 0x3C004C26: mov ecx, edi */ 2848 RECOMP_ICALL(0x3C0085F0u); /* 0x3C004C28: call 0x3c0085f0 */ /* not lifted */ 2849 RECOMP_FLAGS_IN(); 2850 ecx = MEM32(esi + 0x4); /* 0x3C004C2D: mov ecx, dword ptr [esi + 4] */ 2851 /* test ecx, ecx */ /* 0x3C004C30: test ecx, ecx */ 2852 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2853 _cf = 0; 2854 _flag_k = FK_TEST; 2855 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004C41; /* 0x3C004C32: je 0x3c004c41 */ 2856 L_3C004C34: 2857 SET_LO8(eax, MEM8(esi + 0x24)); /* 0x3C004C34: mov al, byte ptr [esi + 0x24] */ 2858 /* test LO8(eax), LO8(eax) */ /* 0x3C004C37: test al, al */ 2859 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2860 _cf = 0; 2861 _flag_k = FK_NARROW(FK_TEST, 24); 2862 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004C41; /* 0x3C004C39: je 0x3c004c41 */ 2863 L_3C004C3B: 2864 eax = MEM32(ecx); /* 0x3C004C3B: mov eax, dword ptr [ecx] */ 2865 PUSH32(esp, edi); /* 0x3C004C3D: push edi */ 2866 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C004C3E: call dword ptr [eax + 0xc] */ 2867 RECOMP_FLAGS_IN(); 2868 L_3C004C41: 2869 ecx = edi; /* 0x3C004C41: mov ecx, edi */ 2870 RECOMP_ICALL(0x3C007C50u); /* 0x3C004C43: call 0x3c007c50 */ /* not lifted */ 2871 RECOMP_FLAGS_IN(); 2872 eax = MEM32(esi + 0x4); /* 0x3C004C48: mov eax, dword ptr [esi + 4] */ 2873 /* test eax, eax */ /* 0x3C004C4B: test eax, eax */ 2874 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2875 _cf = 0; 2876 _flag_k = FK_TEST; 2877 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004C56; /* 0x3C004C4D: je 0x3c004c56 */ 2878 L_3C004C4F: 2879 edx = MEM32(edi); /* 0x3C004C4F: mov edx, dword ptr [edi] */ 2880 ecx = edi; /* 0x3C004C51: mov ecx, edi */ 2881 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3C004C53: call dword ptr [edx + 4] */ 2882 RECOMP_FLAGS_IN(); 2883 L_3C004C56: 2884 edi = POP32_VAL(esp); /* 0x3C004C56: pop edi */ 2885 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2886 eax = 0; /* 0x3C004C57: xor eax, eax */ 2887 _cf = 0; 2888 _flag_k = FK_TEST; 2889 esi = POP32_VAL(esp); /* 0x3C004C59: pop esi */ 2890 ebp = POP32_VAL(esp); /* 0x3C004C5A: pop ebp */ 2891 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C004C5B: ret 4 */ 2892 RECOMP_REGS_OUT(); 2893 } 2894 2895 void sub_3C004C60(void) { 2896 int _fpu_cmp = 0; 2897 uint32_t _cf = 0; 2898 int _df = 1; 2899 uint32_t _flag_k = FK_NONE; 2900 uint32_t _flag_a = 0, _flag_b = 0; 2901 uint32_t _itail_tgt = 0; 2902 RECOMP_REGS_LOCALS 2903 RECOMP_ENTER(0x3C004C60u); 2904 2905 L_3C004C60: 2906 PUSH32(esp, ebp); /* 0x3C004C60: push ebp */ 2907 ebp = esp; /* 0x3C004C61: mov ebp, esp */ 2908 PUSH32(esp, ecx); /* 0x3C004C63: push ecx */ 2909 ecx = MEM32(ecx + 0xC); /* 0x3C004C64: mov ecx, dword ptr [ecx + 0xc] */ 2910 edx = ebp + (-0x4); /* 0x3C004C67: lea edx, [ebp - 4] */ 2911 MEM32(ebp + (-0x4)) = 0x3C0092E8u; /* 0x3C004C6A: mov dword ptr [ebp - 4], 0x3c0092e8 */ 2912 eax = MEM32(ecx); /* 0x3C004C71: mov eax, dword ptr [ecx] */ 2913 PUSH32(esp, edx); /* 0x3C004C73: push edx */ 2914 RECOMP_ICALL(MEM32(eax + 0x38)); /* 0x3C004C74: call dword ptr [eax + 0x38] */ 2915 RECOMP_FLAGS_IN(); 2916 esp = ebp; /* 0x3C004C77: mov esp, ebp */ 2917 ebp = POP32_VAL(esp); /* 0x3C004C79: pop ebp */ 2918 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004C7A: ret */ 2919 RECOMP_REGS_OUT(); 2920 } 2921 2922 void sub_3C004C80(void) { 2923 int _fpu_cmp = 0; 2924 uint32_t _cf = 0; 2925 int _df = 1; 2926 uint32_t _flag_k = FK_NONE; 2927 uint32_t _flag_a = 0, _flag_b = 0; 2928 uint32_t _itail_tgt = 0; 2929 RECOMP_REGS_LOCALS 2930 RECOMP_ENTER(0x3C004C80u); 2931 2932 L_3C004C80: 2933 PUSH32(esp, ebp); /* 0x3C004C80: push ebp */ 2934 ebp = esp; /* 0x3C004C81: mov ebp, esp */ 2935 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2937 esp = esp - 0x18u; /* 0x3C004C83: sub esp, 0x18 */ 2938 _flag_k = FK_CMP; 2939 PUSH32(esp, ebx); /* 0x3C004C86: push ebx */ 2940 PUSH32(esp, esi); /* 0x3C004C87: push esi */ 2941 PUSH32(esp, edi); /* 0x3C004C88: push edi */ 2942 edi = MEM32(ebp + 0x8); /* 0x3C004C89: mov edi, dword ptr [ebp + 8] */ 2943 eax = MEM32(edi); /* 0x3C004C8C: mov eax, dword ptr [edi] */ 2944 ecx = edi; /* 0x3C004C8E: mov ecx, edi */ 2945 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C004C90: call dword ptr [eax + 0xc] */ 2946 RECOMP_FLAGS_IN(); 2947 ebx = MEM32(ebp + 0xC); /* 0x3C004C93: mov ebx, dword ptr [ebp + 0xc] */ 2948 edx = MEM32(ebx); /* 0x3C004C96: mov edx, dword ptr [ebx] */ 2949 ecx = ebx; /* 0x3C004C98: mov ecx, ebx */ 2950 esi = eax; /* 0x3C004C9A: mov esi, eax */ 2951 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C004C9C: call dword ptr [edx + 0xc] */ 2952 RECOMP_FLAGS_IN(); 2953 ecx = MEM32(eax); /* 0x3C004C9F: mov ecx, dword ptr [eax] */ 2954 edx = MEM32(eax + 0x4); /* 0x3C004CA1: mov edx, dword ptr [eax + 4] */ 2955 eax = MEM32(eax + 0x8); /* 0x3C004CA4: mov eax, dword ptr [eax + 8] */ 2956 MEM32(ebp + (-0xC)) = ecx; /* 0x3C004CA7: mov dword ptr [ebp - 0xc], ecx */ 2957 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C004CAA: fld dword ptr [ebp - 0xc] */ 2958 _st[0] -= (double)*(float*)ADDR(esi); /* 0x3C004CAD: fsub dword ptr [esi] */ 2959 MEM32(ebp + (-0x8)) = edx; /* 0x3C004CAF: mov dword ptr [ebp - 8], edx */ 2960 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C004CB2: fld dword ptr [ebp - 8] */ 2961 MEM32(ebp + (-0x4)) = eax; /* 0x3C004CB5: mov dword ptr [ebp - 4], eax */ 2962 _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x3C004CB8: fsub dword ptr [esi + 4] */ 2963 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C004CBB: fld dword ptr [ebp - 4] */ 2964 _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3C004CBE: fsub dword ptr [esi + 8] */ 2965 fp_push(_st[0]); /* 0x3C004CC1: fld st(0) */ 2966 _st[0] *= _st[1]; /* 0x3C004CC3: fmul st(1) */ 2967 fp_push(_st[2]); /* 0x3C004CC5: fld st(2) */ 2968 _st[0] *= _st[3]; /* 0x3C004CC7: fmul st(3) */ 2969 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C004CC9: faddp st(1) */ 2970 fp_push(_st[3]); /* 0x3C004CCB: fld st(3) */ 2971 _st[0] *= _st[4]; /* 0x3C004CCD: fmul st(4) */ 2972 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C004CCF: faddp st(1) */ 2973 _st[0] = sqrt(_st[0]); /* 0x3C004CD1: fsqrt */ 2974 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3C004CD3: fstp st(3) */ 2975 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C004CD5: fstp st(0) */ 2976 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C004CD7: fstp st(0) */ 2977 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C0092EC)); /* 0x3C004CD9: fcomp dword ptr [0x3c0092ec] */ 2978 fp_pop(); 2979 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004CDF: fnstsw ax */ 2980 /* test HI8(eax), 1 */ /* 0x3C004CE1: test ah, 1 */ 2981 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2982 _cf = 0; 2983 _flag_k = FK_NARROW(FK_TEST, 24); 2984 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004DF4; /* 0x3C004CE4: je 0x3c004df4 */ 2985 L_3C004CEA: 2986 edx = MEM32(edi); /* 0x3C004CEA: mov edx, dword ptr [edi] */ 2987 ecx = edi; /* 0x3C004CEC: mov ecx, edi */ 2988 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C004CEE: call dword ptr [edx + 0xc] */ 2989 RECOMP_FLAGS_IN(); 2990 esi = eax; /* 0x3C004CF1: mov esi, eax */ 2991 eax = MEM32(ebx); /* 0x3C004CF3: mov eax, dword ptr [ebx] */ 2992 ecx = ebx; /* 0x3C004CF5: mov ecx, ebx */ 2993 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C004CF7: call dword ptr [eax + 0xc] */ 2994 RECOMP_FLAGS_IN(); 2995 ecx = MEM32(eax); /* 0x3C004CFA: mov ecx, dword ptr [eax] */ 2996 edx = MEM32(eax + 0x4); /* 0x3C004CFC: mov edx, dword ptr [eax + 4] */ 2997 eax = MEM32(eax + 0x8); /* 0x3C004CFF: mov eax, dword ptr [eax + 8] */ 2998 MEM32(ebp + (-0xC)) = ecx; /* 0x3C004D02: mov dword ptr [ebp - 0xc], ecx */ 2999 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C004D05: fld dword ptr [ebp - 0xc] */ 3000 _st[0] -= (double)*(float*)ADDR(esi); /* 0x3C004D08: fsub dword ptr [esi] */ 3001 MEM32(ebp + (-0x8)) = edx; /* 0x3C004D0A: mov dword ptr [ebp - 8], edx */ 3002 MEM32(ebp + (-0x4)) = eax; /* 0x3C004D0D: mov dword ptr [ebp - 4], eax */ 3003 PUSH32(esp, 0x14u); /* 0x3C004D10: push 0x14 */ 3004 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3C004D12: fstp dword ptr [ebp - 0xc] */ 3005 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C004D15: fld dword ptr [ebp - 8] */ 3006 _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x3C004D18: fsub dword ptr [esi + 4] */ 3007 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C004D1B: fstp dword ptr [ebp - 8] */ 3008 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C004D1E: fld dword ptr [ebp - 4] */ 3009 _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3C004D21: fsub dword ptr [esi + 8] */ 3010 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3C004D24: fstp dword ptr [ebp - 4] */ 3011 RECOMP_ICALL(0x3C008B40u); /* 0x3C004D27: call 0x3c008b40 */ /* not lifted */ 3012 RECOMP_FLAGS_IN(); 3013 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3014 esi = 0; /* 0x3C004D2C: xor esi, esi */ 3015 _cf = 0; 3016 _flag_k = FK_TEST; 3017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3019 esp = esp + 4; /* 0x3C004D2E: add esp, 4 */ 3020 _flag_k = FK_ADD; 3021 /* cmp eax, esi */ /* 0x3C004D31: cmp eax, esi */ 3022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3024 _flag_k = FK_CMP; 3025 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C004D6B; /* 0x3C004D33: je 0x3c004d6b */ 3026 L_3C004D35: 3027 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C004D35: fld dword ptr [ebp - 4] */ 3028 edx = MEM32(ebp + (-0xC)); /* 0x3C004D38: mov edx, dword ptr [ebp - 0xc] */ 3029 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3C004D3B: fmul dword ptr [ebp - 4] */ 3030 ecx = eax + 0x4; /* 0x3C004D3E: lea ecx, [eax + 4] */ 3031 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C004D41: fld dword ptr [ebp - 8] */ 3032 MEM32(ecx) = edx; /* 0x3C004D44: mov dword ptr [ecx], edx */ 3033 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3C004D46: fmul dword ptr [ebp - 8] */ 3034 edx = MEM32(ebp + (-0x8)); /* 0x3C004D49: mov edx, dword ptr [ebp - 8] */ 3035 MEM32(ecx + 0x4) = edx; /* 0x3C004D4C: mov dword ptr [ecx + 4], edx */ 3036 edx = MEM32(ebp + (-0x4)); /* 0x3C004D4F: mov edx, dword ptr [ebp - 4] */ 3037 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C004D52: faddp st(1) */ 3038 MEM32(ecx + 0x8) = edx; /* 0x3C004D54: mov dword ptr [ecx + 8], edx */ 3039 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C004D57: fld dword ptr [ebp - 0xc] */ 3040 MEM32(eax + 0x10) = ebx; /* 0x3C004D5A: mov dword ptr [eax + 0x10], ebx */ 3041 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3C004D5D: fmul dword ptr [ebp - 0xc] */ 3042 MEM32(ebp + 0x8) = eax; /* 0x3C004D60: mov dword ptr [ebp + 8], eax */ 3043 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C004D63: faddp st(1) */ 3044 _st[0] = sqrt(_st[0]); /* 0x3C004D65: fsqrt */ 3045 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3C004D67: fstp dword ptr [eax] */ 3046 goto L_3C004D6E; /* 0x3C004D69: jmp 0x3c004d6e */ 3047 L_3C004D6B: 3048 MEM32(ebp + 0x8) = esi; /* 0x3C004D6B: mov dword ptr [ebp + 8], esi */ 3049 L_3C004D6E: 3050 PUSH32(esp, 0x14u); /* 0x3C004D6E: push 0x14 */ 3051 RECOMP_ICALL(0x3C008B40u); /* 0x3C004D70: call 0x3c008b40 */ /* not lifted */ 3052 RECOMP_FLAGS_IN(); 3053 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3054 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3055 esp = esp + 4; /* 0x3C004D75: add esp, 4 */ 3056 _flag_k = FK_ADD; 3057 /* cmp eax, esi */ /* 0x3C004D78: cmp eax, esi */ 3058 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3060 _flag_k = FK_CMP; 3061 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C004DC7; /* 0x3C004D7A: je 0x3c004dc7 */ 3062 L_3C004D7C: 3063 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C004D7C: fld dword ptr [ebp - 0xc] */ 3064 ecx = eax + 0x4; /* 0x3C004D7F: lea ecx, [eax + 4] */ 3065 _st[0] = -_st[0]; /* 0x3C004D82: fchs */ 3066 MEM32(eax + 0x10) = edi; /* 0x3C004D84: mov dword ptr [eax + 0x10], edi */ 3067 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3C004D87: fstp dword ptr [ebp - 0x18] */ 3068 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C004D8A: fld dword ptr [ebp - 8] */ 3069 edx = MEM32(ebp + (-0x18)); /* 0x3C004D8D: mov edx, dword ptr [ebp - 0x18] */ 3070 _st[0] = -_st[0]; /* 0x3C004D90: fchs */ 3071 MEM32(ecx) = edx; /* 0x3C004D92: mov dword ptr [ecx], edx */ 3072 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C004D94: fstp dword ptr [ebp - 0x14] */ 3073 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C004D97: fld dword ptr [ebp - 4] */ 3074 edx = MEM32(ebp + (-0x14)); /* 0x3C004D9A: mov edx, dword ptr [ebp - 0x14] */ 3075 _st[0] = -_st[0]; /* 0x3C004D9D: fchs */ 3076 MEM32(ecx + 0x4) = edx; /* 0x3C004D9F: mov dword ptr [ecx + 4], edx */ 3077 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3C004DA2: fstp dword ptr [ebp - 0x10] */ 3078 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C004DA5: fld dword ptr [ebp - 4] */ 3079 edx = MEM32(ebp + (-0x10)); /* 0x3C004DA8: mov edx, dword ptr [ebp - 0x10] */ 3080 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3C004DAB: fmul dword ptr [ebp - 4] */ 3081 MEM32(ecx + 0x8) = edx; /* 0x3C004DAE: mov dword ptr [ecx + 8], edx */ 3082 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C004DB1: fld dword ptr [ebp - 8] */ 3083 esi = eax; /* 0x3C004DB4: mov esi, eax */ 3084 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3C004DB6: fmul dword ptr [ebp - 8] */ 3085 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C004DB9: faddp st(1) */ 3086 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C004DBB: fld dword ptr [ebp - 0xc] */ 3087 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3C004DBE: fmul dword ptr [ebp - 0xc] */ 3088 { double _v = fp_pop(); _st[0] += _v; } /* 0x3C004DC1: faddp st(1) */ 3089 _st[0] = sqrt(_st[0]); /* 0x3C004DC3: fsqrt */ 3090 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x3C004DC5: fstp dword ptr [eax] */ 3091 L_3C004DC7: 3092 eax = MEM32(ebp + 0x8); /* 0x3C004DC7: mov eax, dword ptr [ebp + 8] */ 3093 edx = ebp + 0x8; /* 0x3C004DCA: lea edx, [ebp + 8] */ 3094 PUSH32(esp, edx); /* 0x3C004DCD: push edx */ 3095 ecx = edi + 0x2C; /* 0x3C004DCE: lea ecx, [edi + 0x2c] */ 3096 MEM32(ebp + 0x8) = eax; /* 0x3C004DD1: mov dword ptr [ebp + 8], eax */ 3097 eax = MEM32(ecx + 0x8); /* 0x3C004DD4: mov eax, dword ptr [ecx + 8] */ 3098 PUSH32(esp, 1); /* 0x3C004DD7: push 1 */ 3099 PUSH32(esp, eax); /* 0x3C004DD9: push eax */ 3100 RECOMP_ICALL(0x3C005480u); /* 0x3C004DDA: call 0x3c005480 */ /* not lifted */ 3101 RECOMP_FLAGS_IN(); 3102 eax = MEM32(ebx + 0x34); /* 0x3C004DDF: mov eax, dword ptr [ebx + 0x34] */ 3103 edx = ebp + 0x8; /* 0x3C004DE2: lea edx, [ebp + 8] */ 3104 PUSH32(esp, edx); /* 0x3C004DE5: push edx */ 3105 ecx = ebx + 0x2C; /* 0x3C004DE6: lea ecx, [ebx + 0x2c] */ 3106 PUSH32(esp, 1); /* 0x3C004DE9: push 1 */ 3107 PUSH32(esp, eax); /* 0x3C004DEB: push eax */ 3108 MEM32(ebp + 0x8) = esi; /* 0x3C004DEC: mov dword ptr [ebp + 8], esi */ 3109 RECOMP_ICALL(0x3C005480u); /* 0x3C004DEF: call 0x3c005480 */ /* not lifted */ 3110 RECOMP_FLAGS_IN(); 3111 L_3C004DF4: 3112 edi = POP32_VAL(esp); /* 0x3C004DF4: pop edi */ 3113 esi = POP32_VAL(esp); /* 0x3C004DF5: pop esi */ 3114 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3115 eax = 0; /* 0x3C004DF6: xor eax, eax */ 3116 _cf = 0; 3117 _flag_k = FK_TEST; 3118 ebx = POP32_VAL(esp); /* 0x3C004DF8: pop ebx */ 3119 esp = ebp; /* 0x3C004DF9: mov esp, ebp */ 3120 ebp = POP32_VAL(esp); /* 0x3C004DFB: pop ebp */ 3121 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C004DFC: ret 8 */ 3122 RECOMP_REGS_OUT(); 3123 } 3124 3125 void sub_3C004E00(void) { 3126 int _fpu_cmp = 0; 3127 uint32_t _cf = 0; 3128 int _df = 1; 3129 uint32_t _flag_k = FK_NONE; 3130 uint32_t _flag_a = 0, _flag_b = 0; 3131 uint32_t _itail_tgt = 0; 3132 RECOMP_REGS_LOCALS 3133 RECOMP_ENTER(0x3C004E00u); 3134 3135 L_3C004E00: 3136 PUSH32(esp, ebp); /* 0x3C004E00: push ebp */ 3137 ebp = esp; /* 0x3C004E01: mov ebp, esp */ 3138 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 3139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3140 esp = esp - 0x38u; /* 0x3C004E03: sub esp, 0x38 */ 3141 _flag_k = FK_CMP; 3142 PUSH32(esp, ebx); /* 0x3C004E06: push ebx */ 3143 PUSH32(esp, esi); /* 0x3C004E07: push esi */ 3144 PUSH32(esp, edi); /* 0x3C004E08: push edi */ 3145 PUSH32(esp, 0); /* 0x3C004E09: push 0 */ 3146 PUSH32(esp, 0x3C00D318u); /* 0x3C004E0B: push 0x3c00d318 */ 3147 esi = ecx; /* 0x3C004E10: mov esi, ecx */ 3148 eax = MEM32(esi + 0xC); /* 0x3C004E12: mov eax, dword ptr [esi + 0xc] */ 3149 PUSH32(esp, 0x3C00D1D0u); /* 0x3C004E15: push 0x3c00d1d0 */ 3150 PUSH32(esp, 0); /* 0x3C004E1A: push 0 */ 3151 PUSH32(esp, eax); /* 0x3C004E1C: push eax */ 3152 RECOMP_ICALL(0x3C008B4Cu); /* 0x3C004E1D: call 0x3c008b4c */ /* not lifted */ 3153 RECOMP_FLAGS_IN(); 3154 edi = MEM32(ebp + 0x10); /* 0x3C004E22: mov edi, dword ptr [ebp + 0x10] */ 3155 ebx = MEM32(ebp + 0xC); /* 0x3C004E25: mov ebx, dword ptr [ebp + 0xc] */ 3156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3158 esp = esp + 0x14u; /* 0x3C004E28: add esp, 0x14 */ 3159 _flag_k = FK_ADD; 3160 /* test eax, eax */ /* 0x3C004E2B: test eax, eax */ 3161 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3162 _cf = 0; 3163 _flag_k = FK_TEST; 3164 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004E3E; /* 0x3C004E2D: je 0x3c004e3e */ 3165 L_3C004E2F: 3166 ecx = MEM32(ebp + 0x8); /* 0x3C004E2F: mov ecx, dword ptr [ebp + 8] */ 3167 PUSH32(esp, edi); /* 0x3C004E32: push edi */ 3168 PUSH32(esp, ebx); /* 0x3C004E33: push ebx */ 3169 PUSH32(esp, ecx); /* 0x3C004E34: push ecx */ 3170 ecx = MEM32(esi + 0xC); /* 0x3C004E35: mov ecx, dword ptr [esi + 0xc] */ 3171 RECOMP_ICALL(MEM32(0x3C0090E8)); /* 0x3C004E38: call dword ptr [0x3c0090e8] */ 3172 RECOMP_FLAGS_IN(); 3173 L_3C004E3E: 3174 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x3C004E3E: fild dword ptr [ebp + 0xc] */ 3175 eax = MEM32(ebp + 0x8); /* 0x3C004E41: mov eax, dword ptr [ebp + 8] */ 3176 edx = MEM32(esi + 0xC); /* 0x3C004E44: mov edx, dword ptr [esi + 0xc] */ 3177 MEM32(ebp + (-0x30)) = eax; /* 0x3C004E47: mov dword ptr [ebp - 0x30], eax */ 3178 _st[0] *= (double)*(float*)ADDR(0x3C0092E0); /* 0x3C004E4A: fmul dword ptr [0x3c0092e0] */ 3179 MEM32(ebp + (-0x34)) = edx; /* 0x3C004E50: mov dword ptr [ebp - 0x34], edx */ 3180 MEM32(ebp + (-0x2C)) = ebx; /* 0x3C004E53: mov dword ptr [ebp - 0x2c], ebx */ 3181 MEM32(ebp + (-0x28)) = edi; /* 0x3C004E56: mov dword ptr [ebp - 0x28], edi */ 3182 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C0091C8)); /* 0x3C004E59: fcom dword ptr [0x3c0091c8] */ 3183 MEM32(ebp + (-0x24)) = 0; /* 0x3C004E5F: mov dword ptr [ebp - 0x24], 0 */ 3184 MEM32(ebp + (-0x20)) = 0; /* 0x3C004E66: mov dword ptr [ebp - 0x20], 0 */ 3185 MEM32(ebp + (-0x1C)) = 0; /* 0x3C004E6D: mov dword ptr [ebp - 0x1c], 0 */ 3186 MEM32(ebp + (-0x18)) = 0x3F800000u; /* 0x3C004E74: mov dword ptr [ebp - 0x18], 0x3f800000 */ 3187 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004E7B: fnstsw ax */ 3188 MEM8(ebp + (-0x14)) = (uint8_t)(0); /* 0x3C004E7D: mov byte ptr [ebp - 0x14], 0 */ 3189 MEM32(ebp + (-0x38)) = 0x3C0092DCu; /* 0x3C004E81: mov dword ptr [ebp - 0x38], 0x3c0092dc */ 3190 /* test HI8(eax), 1 */ /* 0x3C004E88: test ah, 1 */ 3191 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3192 _cf = 0; 3193 _flag_k = FK_NARROW(FK_TEST, 24); 3194 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C004EA2; /* 0x3C004E8B: jne 0x3c004ea2 */ 3195 L_3C004E8D: 3196 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3C0092D0)); /* 0x3C004E8D: fcom qword ptr [0x3c0092d0] */ 3197 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C004E93: fnstsw ax */ 3198 /* test HI8(eax), 1 */ /* 0x3C004E95: test ah, 1 */ 3199 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3200 _cf = 0; 3201 _flag_k = FK_NARROW(FK_TEST, 24); 3202 if (TEST_Z(_flag_a, _flag_b)) goto L_3C004EA2; /* 0x3C004E98: je 0x3c004ea2 */ 3203 L_3C004E9A: 3204 _st[0] *= (double)*(float*)ADDR(0x3C00918C); /* 0x3C004E9A: fmul dword ptr [0x3c00918c] */ 3205 goto L_3C004EC3; /* 0x3C004EA0: jmp 0x3c004ec3 */ 3206 L_3C004EA2: 3207 _st[0] *= (double)*(float*)ADDR(0x3C0092C8); /* 0x3C004EA2: fmul dword ptr [0x3c0092c8] */ 3208 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3210 esp = esp - 8; /* 0x3C004EA8: sub esp, 8 */ 3211 _flag_k = FK_CMP; 3212 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3C004EAB: fst dword ptr [ebp + 8] */ 3213 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3C004EAE: fstp qword ptr [esp] */ 3214 RECOMP_ICALL(MEM32(0x3C009038)); /* 0x3C004EB1: call dword ptr [0x3c009038] */ 3215 RECOMP_FLAGS_IN(); 3216 _st[0] = (double)*(float*)ADDR(ebp + 0x8) - _st[0]; /* 0x3C004EB7: fsubr dword ptr [ebp + 8] */ 3217 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3218 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3219 esp = esp + 8; /* 0x3C004EBA: add esp, 8 */ 3220 _flag_k = FK_ADD; 3221 _st[0] *= (double)*(float*)ADDR(0x3C0092C4); /* 0x3C004EBD: fmul dword ptr [0x3c0092c4] */ 3222 L_3C004EC3: 3223 fp_push(_st[0]); /* 0x3C004EC3: fld st(0) */ 3224 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3C004EC5: fsin */ 3225 fp_push(*(float*)&MEM32(0x3C0091C8)); /* 0x3C004EC7: fld dword ptr [0x3c0091c8] */ 3226 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3C004ECD: fst dword ptr [ebp + 8] */ 3227 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3C004ED0: fstp dword ptr [ebp - 0x10] */ 3228 ecx = MEM32(ebp + 0x8); /* 0x3C004ED3: mov ecx, dword ptr [ebp + 8] */ 3229 edx = MEM32(ebp + (-0x10)); /* 0x3C004ED6: mov edx, dword ptr [ebp - 0x10] */ 3230 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3C004ED9: fstp dword ptr [ebp - 0xc] */ 3231 eax = MEM32(ebp + (-0xC)); /* 0x3C004EDC: mov eax, dword ptr [ebp - 0xc] */ 3232 MEM32(ebp + (-0x20)) = eax; /* 0x3C004EDF: mov dword ptr [ebp - 0x20], eax */ 3233 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3C004EE2: fcos */ 3234 MEM32(ebp + (-0x24)) = edx; /* 0x3C004EE4: mov dword ptr [ebp - 0x24], edx */ 3235 eax = ebp + (-0x38); /* 0x3C004EE7: lea eax, [ebp - 0x38] */ 3236 MEM32(ebp + (-0x8)) = ecx; /* 0x3C004EEA: mov dword ptr [ebp - 8], ecx */ 3237 MEM32(ebp + (-0x1C)) = ecx; /* 0x3C004EED: mov dword ptr [ebp - 0x1c], ecx */ 3238 ecx = MEM32(esi + 0x8); /* 0x3C004EF0: mov ecx, dword ptr [esi + 8] */ 3239 PUSH32(esp, eax); /* 0x3C004EF3: push eax */ 3240 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3C004EF4: fstp dword ptr [ebp - 4] */ 3241 edx = MEM32(ebp + (-0x4)); /* 0x3C004EF7: mov edx, dword ptr [ebp - 4] */ 3242 MEM32(ebp + (-0x18)) = edx; /* 0x3C004EFA: mov dword ptr [ebp - 0x18], edx */ 3243 RECOMP_ICALL(0x3C006610u); /* 0x3C004EFD: call 0x3c006610 */ /* not lifted */ 3244 RECOMP_FLAGS_IN(); 3245 edi = POP32_VAL(esp); /* 0x3C004F02: pop edi */ 3246 esi = POP32_VAL(esp); /* 0x3C004F03: pop esi */ 3247 ebx = POP32_VAL(esp); /* 0x3C004F04: pop ebx */ 3248 esp = ebp; /* 0x3C004F05: mov esp, ebp */ 3249 ebp = POP32_VAL(esp); /* 0x3C004F07: pop ebp */ 3250 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C004F08: ret 0xc */ 3251 RECOMP_REGS_OUT(); 3252 } 3253 3254 void sub_3C004F10(void) { 3255 int _fpu_cmp = 0; 3256 uint32_t _cf = 0; 3257 int _df = 1; 3258 uint32_t _flag_k = FK_NONE; 3259 uint32_t _flag_a = 0, _flag_b = 0; 3260 uint32_t _itail_tgt = 0; 3261 RECOMP_REGS_LOCALS 3262 RECOMP_ENTER(0x3C004F10u); 3263 3264 L_3C004F10: 3265 PUSH32(esp, ebp); /* 0x3C004F10: push ebp */ 3266 ebp = esp; /* 0x3C004F11: mov ebp, esp */ 3267 eax = ecx; /* 0x3C004F13: mov eax, ecx */ 3268 ecx = MEM32(ebp + 0x8); /* 0x3C004F15: mov ecx, dword ptr [ebp + 8] */ 3269 SET_LO8(edx, MEM8(ecx)); /* 0x3C004F18: mov dl, byte ptr [ecx] */ 3270 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3271 ecx = 0; /* 0x3C004F1A: xor ecx, ecx */ 3272 _cf = 0; 3273 _flag_k = FK_TEST; 3274 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x3C004F1C: mov byte ptr [eax], dl */ 3275 MEM32(eax + 0x4) = ecx; /* 0x3C004F1E: mov dword ptr [eax + 4], ecx */ 3276 MEM32(eax + 0x8) = ecx; /* 0x3C004F21: mov dword ptr [eax + 8], ecx */ 3277 MEM32(eax + 0xC) = ecx; /* 0x3C004F24: mov dword ptr [eax + 0xc], ecx */ 3278 ebp = POP32_VAL(esp); /* 0x3C004F27: pop ebp */ 3279 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C004F28: ret 4 */ 3280 RECOMP_REGS_OUT(); 3281 } 3282 3283 void sub_3C004F30(void) { 3284 int _fpu_cmp = 0; 3285 uint32_t _cf = 0; 3286 int _df = 1; 3287 uint32_t _flag_k = FK_NONE; 3288 uint32_t _flag_a = 0, _flag_b = 0; 3289 uint32_t _itail_tgt = 0; 3290 RECOMP_REGS_LOCALS 3291 RECOMP_ENTER(0x3C004F30u); 3292 3293 L_3C004F30: 3294 edx = MEM32(ecx + 0x4); /* 0x3C004F30: mov edx, dword ptr [ecx + 4] */ 3295 /* test edx, edx */ /* 0x3C004F33: test edx, edx */ 3296 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3297 _cf = 0; 3298 _flag_k = FK_TEST; 3299 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C004F3A; /* 0x3C004F35: jne 0x3c004f3a */ 3300 L_3C004F37: 3301 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3302 eax = 0; /* 0x3C004F37: xor eax, eax */ 3303 _cf = 0; 3304 _flag_k = FK_TEST; 3305 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004F39: ret */ 3306 L_3C004F3A: 3307 eax = MEM32(ecx + 0x8); /* 0x3C004F3A: mov eax, dword ptr [ecx + 8] */ 3308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3310 eax = eax - edx; /* 0x3C004F3D: sub eax, edx */ 3311 _flag_k = FK_CMP; 3312 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3C004F3F: sar eax, 2 */ 3313 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3314 eax = (uint32_t)((int32_t)eax >> 2u); 3315 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004F42: ret */ 3316 RECOMP_REGS_OUT(); 3317 } 3318 3319 void sub_3C004F50(void) { 3320 int _fpu_cmp = 0; 3321 uint32_t _cf = 0; 3322 int _df = 1; 3323 uint32_t _flag_k = FK_NONE; 3324 uint32_t _flag_a = 0, _flag_b = 0; 3325 uint32_t _itail_tgt = 0; 3326 RECOMP_REGS_LOCALS 3327 RECOMP_ENTER(0x3C004F50u); 3328 3329 L_3C004F50: 3330 PUSH32(esp, ebp); /* 0x3C004F50: push ebp */ 3331 ebp = esp; /* 0x3C004F51: mov ebp, esp */ 3332 PUSH32(esp, ecx); /* 0x3C004F53: push ecx */ 3333 PUSH32(esp, esi); /* 0x3C004F54: push esi */ 3334 esi = ecx; /* 0x3C004F55: mov esi, ecx */ 3335 eax = MEM32(esi + 0x4); /* 0x3C004F57: mov eax, dword ptr [esi + 4] */ 3336 PUSH32(esp, eax); /* 0x3C004F5A: push eax */ 3337 MEM32(ebp + (-0x4)) = eax; /* 0x3C004F5B: mov dword ptr [ebp - 4], eax */ 3338 RECOMP_ICALL(0x3C0089DEu); /* 0x3C004F5E: call 0x3c0089de */ /* not lifted */ 3339 RECOMP_FLAGS_IN(); 3340 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3341 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3342 esp = esp + 4; /* 0x3C004F63: add esp, 4 */ 3343 _flag_k = FK_ADD; 3344 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3345 eax = 0; /* 0x3C004F66: xor eax, eax */ 3346 _cf = 0; 3347 _flag_k = FK_TEST; 3348 MEM32(esi + 0x4) = eax; /* 0x3C004F68: mov dword ptr [esi + 4], eax */ 3349 MEM32(esi + 0x8) = eax; /* 0x3C004F6B: mov dword ptr [esi + 8], eax */ 3350 MEM32(esi + 0xC) = eax; /* 0x3C004F6E: mov dword ptr [esi + 0xc], eax */ 3351 esi = POP32_VAL(esp); /* 0x3C004F71: pop esi */ 3352 esp = ebp; /* 0x3C004F72: mov esp, ebp */ 3353 ebp = POP32_VAL(esp); /* 0x3C004F74: pop ebp */ 3354 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004F75: ret */ 3355 RECOMP_REGS_OUT(); 3356 } 3357 3358 void sub_3C004F80(void) { 3359 int _fpu_cmp = 0; 3360 uint32_t _cf = 0; 3361 int _df = 1; 3362 uint32_t _flag_k = FK_NONE; 3363 uint32_t _flag_a = 0, _flag_b = 0; 3364 uint32_t _itail_tgt = 0; 3365 RECOMP_REGS_LOCALS 3366 RECOMP_ENTER(0x3C004F80u); 3367 3368 L_3C004F80: 3369 PUSH32(esp, ebp); /* 0x3C004F80: push ebp */ 3370 ebp = esp; /* 0x3C004F81: mov ebp, esp */ 3371 PUSH32(esp, ecx); /* 0x3C004F83: push ecx */ 3372 eax = MEM32(ebp + 0x8); /* 0x3C004F84: mov eax, dword ptr [ebp + 8] */ 3373 PUSH32(esp, edi); /* 0x3C004F87: push edi */ 3374 edi = MEM32(ecx + 0x8); /* 0x3C004F88: mov edi, dword ptr [ecx + 8] */ 3375 edx = eax + 0xC; /* 0x3C004F8B: lea edx, [eax + 0xc] */ 3376 /* cmp edx, edi */ /* 0x3C004F8E: cmp edx, edi */ 3377 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3379 _flag_k = FK_CMP; 3380 MEM32(ebp + (-0x4)) = ecx; /* 0x3C004F90: mov dword ptr [ebp - 4], ecx */ 3381 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C004FBD; /* 0x3C004F93: je 0x3c004fbd */ 3382 L_3C004F95: 3383 PUSH32(esp, ebx); /* 0x3C004F95: push ebx */ 3384 PUSH32(esp, esi); /* 0x3C004F96: push esi */ 3385 esi = edx + (-0xC); /* 0x3C004F97: lea esi, [edx - 0xc] */ 3386 L_3C004F9A: 3387 ecx = edx; /* 0x3C004F9A: mov ecx, edx */ 3388 ebx = MEM32(ecx); /* 0x3C004F9C: mov ebx, dword ptr [ecx] */ 3389 eax = esi; /* 0x3C004F9E: mov eax, esi */ 3390 MEM32(eax) = ebx; /* 0x3C004FA0: mov dword ptr [eax], ebx */ 3391 ebx = MEM32(ecx + 0x4); /* 0x3C004FA2: mov ebx, dword ptr [ecx + 4] */ 3392 MEM32(eax + 0x4) = ebx; /* 0x3C004FA5: mov dword ptr [eax + 4], ebx */ 3393 ecx = MEM32(ecx + 0x8); /* 0x3C004FA8: mov ecx, dword ptr [ecx + 8] */ 3394 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu); 3395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3396 edx = edx + 0xCu; /* 0x3C004FAB: add edx, 0xc */ 3397 _flag_k = FK_ADD; 3398 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 3399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3400 esi = esi + 0xCu; /* 0x3C004FAE: add esi, 0xc */ 3401 _flag_k = FK_ADD; 3402 /* cmp edx, edi */ /* 0x3C004FB1: cmp edx, edi */ 3403 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3405 _flag_k = FK_CMP; 3406 MEM32(eax + 0x8) = ecx; /* 0x3C004FB3: mov dword ptr [eax + 8], ecx */ 3407 RECOMP_BACKEDGE(); 3408 if (CMP_NE(_flag_a, _flag_b)) goto L_3C004F9A; /* 0x3C004FB6: jne 0x3c004f9a */ 3409 L_3C004FB8: 3410 ecx = MEM32(ebp + (-0x4)); /* 0x3C004FB8: mov ecx, dword ptr [ebp - 4] */ 3411 esi = POP32_VAL(esp); /* 0x3C004FBB: pop esi */ 3412 ebx = POP32_VAL(esp); /* 0x3C004FBC: pop ebx */ 3413 L_3C004FBD: 3414 eax = MEM32(ecx + 0x8); /* 0x3C004FBD: mov eax, dword ptr [ecx + 8] */ 3415 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF4u); 3416 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3417 eax = eax + 0xFFFFFFF4u; /* 0x3C004FC0: add eax, -0xc */ 3418 _flag_k = FK_ADD; 3419 MEM32(ebp + (-0x4)) = eax; /* 0x3C004FC3: mov dword ptr [ebp - 4], eax */ 3420 MEM32(ecx + 0x8) = eax; /* 0x3C004FC6: mov dword ptr [ecx + 8], eax */ 3421 eax = MEM32(ebp + 0x8); /* 0x3C004FC9: mov eax, dword ptr [ebp + 8] */ 3422 edi = POP32_VAL(esp); /* 0x3C004FCC: pop edi */ 3423 esp = ebp; /* 0x3C004FCD: mov esp, ebp */ 3424 ebp = POP32_VAL(esp); /* 0x3C004FCF: pop ebp */ 3425 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C004FD0: ret 4 */ 3426 RECOMP_REGS_OUT(); 3427 } 3428 3429 void sub_3C004FE0(void) { 3430 int _fpu_cmp = 0; 3431 uint32_t _cf = 0; 3432 int _df = 1; 3433 uint32_t _flag_k = FK_NONE; 3434 uint32_t _flag_a = 0, _flag_b = 0; 3435 uint32_t _itail_tgt = 0; 3436 RECOMP_REGS_LOCALS 3437 RECOMP_ENTER(0x3C004FE0u); 3438 3439 L_3C004FE0: 3440 PUSH32(esp, ebp); /* 0x3C004FE0: push ebp */ 3441 ebp = esp; /* 0x3C004FE1: mov ebp, esp */ 3442 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3444 esp = esp - 8; /* 0x3C004FE3: sub esp, 8 */ 3445 _flag_k = FK_CMP; 3446 PUSH32(esp, ebx); /* 0x3C004FE6: push ebx */ 3447 PUSH32(esp, esi); /* 0x3C004FE7: push esi */ 3448 esi = ecx; /* 0x3C004FE8: mov esi, ecx */ 3449 ecx = MEM32(esi + 0x10); /* 0x3C004FEA: mov ecx, dword ptr [esi + 0x10] */ 3450 /* test ecx, ecx */ /* 0x3C004FED: test ecx, ecx */ 3451 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3452 _cf = 0; 3453 _flag_k = FK_TEST; 3454 PUSH32(esp, edi); /* 0x3C004FEF: push edi */ 3455 edi = MEM32(esi + 0x4); /* 0x3C004FF0: mov edi, dword ptr [esi + 4] */ 3456 eax = MEM32(edi); /* 0x3C004FF3: mov eax, dword ptr [edi] */ 3457 MEM32(ebp + (-0x4)) = eax; /* 0x3C004FF5: mov dword ptr [ebp - 4], eax */ 3458 if (TEST_Z(_flag_a, _flag_b)) goto L_3C00504A; /* 0x3C004FF8: je 0x3c00504a */ 3459 L_3C004FFA: 3460 ecx = eax; /* 0x3C004FFA: mov ecx, eax */ 3461 /* cmp eax, ecx */ /* 0x3C004FFC: cmp eax, ecx */ 3462 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3464 _flag_k = FK_CMP; 3465 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00504A; /* 0x3C004FFE: jne 0x3c00504a */ 3466 L_3C005000: 3467 /* cmp edi, edi */ /* 0x3C005000: cmp edi, edi */ 3468 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3470 _flag_k = FK_CMP; 3471 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00504A; /* 0x3C005002: jne 0x3c00504a */ 3472 L_3C005004: 3473 ebx = MEM32(edi + 0x4); /* 0x3C005004: mov ebx, dword ptr [edi + 4] */ 3474 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C005007: cmp ebx, dword ptr [esi + 8] */ 3475 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3477 _flag_k = FK_CMP; 3478 edi = ebx; /* 0x3C00500A: mov edi, ebx */ 3479 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00502D; /* 0x3C00500C: je 0x3c00502d */ 3480 L_3C00500E: 3481 eax = MEM32(edi + 0x8); /* 0x3C00500E: mov eax, dword ptr [edi + 8] */ 3482 PUSH32(esp, eax); /* 0x3C005011: push eax */ 3483 ecx = esi; /* 0x3C005012: mov ecx, esi */ 3484 RECOMP_ICALL(0x3C005A90u); /* 0x3C005014: call 0x3c005a90 */ /* not lifted */ 3485 RECOMP_FLAGS_IN(); 3486 edi = MEM32(edi); /* 0x3C005019: mov edi, dword ptr [edi] */ 3487 PUSH32(esp, ebx); /* 0x3C00501B: push ebx */ 3488 RECOMP_ICALL(0x3C0089DEu); /* 0x3C00501C: call 0x3c0089de */ /* not lifted */ 3489 RECOMP_FLAGS_IN(); 3490 eax = MEM32(esi + 0x8); /* 0x3C005021: mov eax, dword ptr [esi + 8] */ 3491 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3492 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3493 esp = esp + 4; /* 0x3C005024: add esp, 4 */ 3494 _flag_k = FK_ADD; 3495 /* cmp edi, eax */ /* 0x3C005027: cmp edi, eax */ 3496 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3498 _flag_k = FK_CMP; 3499 ebx = edi; /* 0x3C005029: mov ebx, edi */ 3500 RECOMP_BACKEDGE(); 3501 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00500E; /* 0x3C00502B: jne 0x3c00500e */ 3502 L_3C00502D: 3503 ecx = MEM32(esi + 0x4); /* 0x3C00502D: mov ecx, dword ptr [esi + 4] */ 3504 edx = MEM32(esi + 0x8); /* 0x3C005030: mov edx, dword ptr [esi + 8] */ 3505 MEM32(ecx + 0x4) = edx; /* 0x3C005033: mov dword ptr [ecx + 4], edx */ 3506 eax = MEM32(esi + 0x4); /* 0x3C005036: mov eax, dword ptr [esi + 4] */ 3507 MEM32(esi + 0x10) = 0; /* 0x3C005039: mov dword ptr [esi + 0x10], 0 */ 3508 MEM32(eax) = eax; /* 0x3C005040: mov dword ptr [eax], eax */ 3509 eax = MEM32(esi + 0x4); /* 0x3C005042: mov eax, dword ptr [esi + 4] */ 3510 MEM32(eax + 0x8) = eax; /* 0x3C005045: mov dword ptr [eax + 8], eax */ 3511 goto L_3C00506B; /* 0x3C005048: jmp 0x3c00506b */ 3512 L_3C00504A: 3513 /* cmp eax, edi */ /* 0x3C00504A: cmp eax, edi */ 3514 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3516 _flag_k = FK_CMP; 3517 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00506B; /* 0x3C00504C: je 0x3c00506b */ 3518 L_3C00504E: 3519 ecx = ebp + (-0x4); /* 0x3C00504E: lea ecx, [ebp - 4] */ 3520 ebx = eax; /* 0x3C005051: mov ebx, eax */ 3521 RECOMP_ICALL(0x3C005430u); /* 0x3C005053: call 0x3c005430 */ /* not lifted */ 3522 RECOMP_FLAGS_IN(); 3523 PUSH32(esp, ebx); /* 0x3C005058: push ebx */ 3524 eax = ebp + (-0x8); /* 0x3C005059: lea eax, [ebp - 8] */ 3525 PUSH32(esp, eax); /* 0x3C00505C: push eax */ 3526 ecx = esi; /* 0x3C00505D: mov ecx, esi */ 3527 RECOMP_ICALL(0x3C005690u); /* 0x3C00505F: call 0x3c005690 */ /* not lifted */ 3528 RECOMP_FLAGS_IN(); 3529 eax = MEM32(ebp + (-0x4)); /* 0x3C005064: mov eax, dword ptr [ebp - 4] */ 3530 /* cmp eax, edi */ /* 0x3C005067: cmp eax, edi */ 3531 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3533 _flag_k = FK_CMP; 3534 RECOMP_BACKEDGE(); 3535 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00504E; /* 0x3C005069: jne 0x3c00504e */ 3536 L_3C00506B: 3537 ecx = MEM32(esi + 0x4); /* 0x3C00506B: mov ecx, dword ptr [esi + 4] */ 3538 PUSH32(esp, ecx); /* 0x3C00506E: push ecx */ 3539 RECOMP_ICALL(0x3C0089DEu); /* 0x3C00506F: call 0x3c0089de */ /* not lifted */ 3540 RECOMP_FLAGS_IN(); 3541 edx = MEM32(esi + 0x8); /* 0x3C005074: mov edx, dword ptr [esi + 8] */ 3542 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3543 edi = 0; /* 0x3C005077: xor edi, edi */ 3544 _cf = 0; 3545 _flag_k = FK_TEST; 3546 PUSH32(esp, edx); /* 0x3C005079: push edx */ 3547 MEM32(esi + 0x4) = edi; /* 0x3C00507A: mov dword ptr [esi + 4], edi */ 3548 MEM32(esi + 0x10) = edi; /* 0x3C00507D: mov dword ptr [esi + 0x10], edi */ 3549 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005080: call 0x3c0089de */ /* not lifted */ 3550 RECOMP_FLAGS_IN(); 3551 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3553 esp = esp + 8; /* 0x3C005085: add esp, 8 */ 3554 _flag_k = FK_ADD; 3555 MEM32(esi + 0x8) = edi; /* 0x3C005088: mov dword ptr [esi + 8], edi */ 3556 edi = POP32_VAL(esp); /* 0x3C00508B: pop edi */ 3557 esi = POP32_VAL(esp); /* 0x3C00508C: pop esi */ 3558 ebx = POP32_VAL(esp); /* 0x3C00508D: pop ebx */ 3559 esp = ebp; /* 0x3C00508E: mov esp, ebp */ 3560 ebp = POP32_VAL(esp); /* 0x3C005090: pop ebp */ 3561 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005091: ret */ 3562 RECOMP_REGS_OUT(); 3563 } 3564 3565 void sub_3C0050A0(void) { 3566 int _fpu_cmp = 0; 3567 uint32_t _cf = 0; 3568 int _df = 1; 3569 uint32_t _flag_k = FK_NONE; 3570 uint32_t _flag_a = 0, _flag_b = 0; 3571 uint32_t _itail_tgt = 0; 3572 RECOMP_REGS_LOCALS 3573 RECOMP_ENTER(0x3C0050A0u); 3574 3575 L_3C0050A0: 3576 PUSH32(esp, ebp); /* 0x3C0050A0: push ebp */ 3577 ebp = esp; /* 0x3C0050A1: mov ebp, esp */ 3578 eax = MEM32(ebp + 0x10); /* 0x3C0050A3: mov eax, dword ptr [ebp + 0x10] */ 3579 edx = MEM32(ebp + 0x8); /* 0x3C0050A6: mov edx, dword ptr [ebp + 8] */ 3580 PUSH32(esp, ebx); /* 0x3C0050A9: push ebx */ 3581 PUSH32(esp, esi); /* 0x3C0050AA: push esi */ 3582 esi = ecx; /* 0x3C0050AB: mov esi, ecx */ 3583 SET_LO8(ecx, MEM8(eax)); /* 0x3C0050AD: mov cl, byte ptr [eax] */ 3584 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3C0050AF: mov byte ptr [esi], cl */ 3585 SET_LO8(eax, MEM8(edx)); /* 0x3C0050B1: mov al, byte ptr [edx] */ 3586 SET_LO8(ecx, MEM8(ebp + 0xC)); /* 0x3C0050B3: mov cl, byte ptr [ebp + 0xc] */ 3587 PUSH32(esp, edi); /* 0x3C0050B6: push edi */ 3588 PUSH32(esp, 0x14u); /* 0x3C0050B7: push 0x14 */ 3589 MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x3C0050B9: mov byte ptr [esi + 1], al */ 3590 MEM8(esi + 0xC) = (uint8_t)(LO8(ecx)); /* 0x3C0050BC: mov byte ptr [esi + 0xc], cl */ 3591 RECOMP_ICALL(0x3C008B40u); /* 0x3C0050BF: call 0x3c008b40 */ /* not lifted */ 3592 RECOMP_FLAGS_IN(); 3593 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3594 ebx = 0; /* 0x3C0050C4: xor ebx, ebx */ 3595 _cf = 0; 3596 _flag_k = FK_TEST; 3597 MEM32(eax + 0x4) = ebx; /* 0x3C0050C6: mov dword ptr [eax + 4], ebx */ 3598 MEM8(eax + 0x11) = (uint8_t)(LO8(ebx)); /* 0x3C0050C9: mov byte ptr [eax + 0x11], bl */ 3599 SET_LO8(ecx, 1); /* 0x3C0050CC: mov cl, 1 */ 3600 MEM8(eax + 0x10) = (uint8_t)(LO8(ecx)); /* 0x3C0050CE: mov byte ptr [eax + 0x10], cl */ 3601 MEM32(esi + 0x8) = eax; /* 0x3C0050D1: mov dword ptr [esi + 8], eax */ 3602 MEM8(eax + 0x11) = (uint8_t)(LO8(ecx)); /* 0x3C0050D4: mov byte ptr [eax + 0x11], cl */ 3603 edx = MEM32(esi + 0x8); /* 0x3C0050D7: mov edx, dword ptr [esi + 8] */ 3604 MEM32(edx) = ebx; /* 0x3C0050DA: mov dword ptr [edx], ebx */ 3605 eax = MEM32(esi + 0x8); /* 0x3C0050DC: mov eax, dword ptr [esi + 8] */ 3606 MEM32(eax + 0x8) = ebx; /* 0x3C0050DF: mov dword ptr [eax + 8], ebx */ 3607 edi = MEM32(esi + 0x8); /* 0x3C0050E2: mov edi, dword ptr [esi + 8] */ 3608 PUSH32(esp, 0x14u); /* 0x3C0050E5: push 0x14 */ 3609 RECOMP_ICALL(0x3C008B40u); /* 0x3C0050E7: call 0x3c008b40 */ /* not lifted */ 3610 RECOMP_FLAGS_IN(); 3611 MEM32(eax + 0x4) = edi; /* 0x3C0050EC: mov dword ptr [eax + 4], edi */ 3612 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0050EF: mov byte ptr [eax + 0x10], bl */ 3613 MEM8(eax + 0x11) = (uint8_t)(LO8(ebx)); /* 0x3C0050F2: mov byte ptr [eax + 0x11], bl */ 3614 MEM32(esi + 0x4) = eax; /* 0x3C0050F5: mov dword ptr [esi + 4], eax */ 3615 MEM32(eax) = eax; /* 0x3C0050F8: mov dword ptr [eax], eax */ 3616 eax = MEM32(esi + 0x4); /* 0x3C0050FA: mov eax, dword ptr [esi + 4] */ 3617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3619 esp = esp + 8; /* 0x3C0050FD: add esp, 8 */ 3620 _flag_k = FK_ADD; 3621 MEM32(eax + 0x8) = eax; /* 0x3C005100: mov dword ptr [eax + 8], eax */ 3622 edi = POP32_VAL(esp); /* 0x3C005103: pop edi */ 3623 MEM32(esi + 0x10) = ebx; /* 0x3C005104: mov dword ptr [esi + 0x10], ebx */ 3624 eax = esi; /* 0x3C005107: mov eax, esi */ 3625 esi = POP32_VAL(esp); /* 0x3C005109: pop esi */ 3626 ebx = POP32_VAL(esp); /* 0x3C00510A: pop ebx */ 3627 ebp = POP32_VAL(esp); /* 0x3C00510B: pop ebp */ 3628 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C00510C: ret 0xc */ 3629 RECOMP_REGS_OUT(); 3630 } 3631 3632 void sub_3C005110(void) { 3633 int _fpu_cmp = 0; 3634 uint32_t _cf = 0; 3635 int _df = 1; 3636 uint32_t _flag_k = FK_NONE; 3637 uint32_t _flag_a = 0, _flag_b = 0; 3638 uint32_t _itail_tgt = 0; 3639 RECOMP_REGS_LOCALS 3640 RECOMP_ENTER(0x3C005110u); 3641 3642 L_3C005110: 3643 PUSH32(esp, ebp); /* 0x3C005110: push ebp */ 3644 ebp = esp; /* 0x3C005111: mov ebp, esp */ 3645 eax = MEM32(ecx + 0x4); /* 0x3C005113: mov eax, dword ptr [ecx + 4] */ 3646 ecx = MEM32(eax); /* 0x3C005116: mov ecx, dword ptr [eax] */ 3647 eax = MEM32(ebp + 0x8); /* 0x3C005118: mov eax, dword ptr [ebp + 8] */ 3648 MEM32(eax) = ecx; /* 0x3C00511B: mov dword ptr [eax], ecx */ 3649 ebp = POP32_VAL(esp); /* 0x3C00511D: pop ebp */ 3650 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C00511E: ret 4 */ 3651 RECOMP_REGS_OUT(); 3652 } 3653 3654 void sub_3C005130(void) { 3655 int _fpu_cmp = 0; 3656 uint32_t _cf = 0; 3657 int _df = 1; 3658 uint32_t _flag_k = FK_NONE; 3659 uint32_t _flag_a = 0, _flag_b = 0; 3660 uint32_t _itail_tgt = 0; 3661 RECOMP_REGS_LOCALS 3662 RECOMP_ENTER(0x3C005130u); 3663 3664 L_3C005130: 3665 PUSH32(esp, ebp); /* 0x3C005130: push ebp */ 3666 ebp = esp; /* 0x3C005131: mov ebp, esp */ 3667 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3669 esp = esp - 0xCu; /* 0x3C005133: sub esp, 0xc */ 3670 _flag_k = FK_CMP; 3671 PUSH32(esp, ebx); /* 0x3C005136: push ebx */ 3672 PUSH32(esp, esi); /* 0x3C005137: push esi */ 3673 PUSH32(esp, edi); /* 0x3C005138: push edi */ 3674 edi = ecx; /* 0x3C005139: mov edi, ecx */ 3675 ecx = MEM32(edi + 0x4); /* 0x3C00513B: mov ecx, dword ptr [edi + 4] */ 3676 ebx = MEM32(ecx + 0x4); /* 0x3C00513E: mov ebx, dword ptr [ecx + 4] */ 3677 edx = MEM32(edi + 0x8); /* 0x3C005141: mov edx, dword ptr [edi + 8] */ 3678 /* cmp ebx, edx */ /* 0x3C005144: cmp ebx, edx */ 3679 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 3680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3681 _flag_k = FK_CMP; 3682 esi = ecx; /* 0x3C005146: mov esi, ecx */ 3683 SET_LO8(eax, 1); /* 0x3C005148: mov al, 1 */ 3684 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00516E; /* 0x3C00514A: je 0x3c00516e */ 3685 L_3C00514C: 3686 eax = MEM32(ebp + 0xC); /* 0x3C00514C: mov eax, dword ptr [ebp + 0xc] */ 3687 eax = MEM32(eax); /* 0x3C00514F: mov eax, dword ptr [eax] */ 3688 MEM32(ebp + (-0x8)) = eax; /* 0x3C005151: mov dword ptr [ebp - 8], eax */ 3689 L_3C005154: 3690 eax = MEM32(ebp + (-0x8)); /* 0x3C005154: mov eax, dword ptr [ebp - 8] */ 3691 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x3C005157: cmp eax, dword ptr [ebx + 0xc] */ 3692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 3693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3694 _flag_k = FK_CMP; 3695 esi = ebx; /* 0x3C00515A: mov esi, ebx */ 3696 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3C00515C: setb al */ 3697 /* test LO8(eax), LO8(eax) */ /* 0x3C00515F: test al, al */ 3698 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3699 _cf = 0; 3700 _flag_k = FK_NARROW(FK_TEST, 24); 3701 if (TEST_Z(_flag_a, _flag_b)) goto L_3C005167; /* 0x3C005161: je 0x3c005167 */ 3702 L_3C005163: 3703 ebx = MEM32(ebx); /* 0x3C005163: mov ebx, dword ptr [ebx] */ 3704 goto L_3C00516A; /* 0x3C005165: jmp 0x3c00516a */ 3705 L_3C005167: 3706 ebx = MEM32(ebx + 0x8); /* 0x3C005167: mov ebx, dword ptr [ebx + 8] */ 3707 L_3C00516A: 3708 /* cmp ebx, edx */ /* 0x3C00516A: cmp ebx, edx */ 3709 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 3710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3711 _flag_k = FK_CMP; 3712 RECOMP_BACKEDGE(); 3713 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005154; /* 0x3C00516C: jne 0x3c005154 */ 3714 L_3C00516E: 3715 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x3C00516E: mov dl, byte ptr [edi + 0xc] */ 3716 /* test LO8(edx), LO8(edx) */ /* 0x3C005171: test dl, dl */ 3717 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3718 _cf = 0; 3719 _flag_k = FK_NARROW(FK_TEST, 24); 3720 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0052E9; /* 0x3C005173: je 0x3c0052e9 */ 3721 L_3C005179: 3722 PUSH32(esp, 0); /* 0x3C005179: push 0 */ 3723 PUSH32(esp, esi); /* 0x3C00517B: push esi */ 3724 ecx = edi; /* 0x3C00517C: mov ecx, edi */ 3725 RECOMP_ICALL(0x3C005E30u); /* 0x3C00517E: call 0x3c005e30 */ /* not lifted */ 3726 RECOMP_FLAGS_IN(); 3727 ecx = MEM32(edi + 0x8); /* 0x3C005183: mov ecx, dword ptr [edi + 8] */ 3728 MEM32(eax) = ecx; /* 0x3C005186: mov dword ptr [eax], ecx */ 3729 edx = MEM32(edi + 0x8); /* 0x3C005188: mov edx, dword ptr [edi + 8] */ 3730 ecx = MEM32(ebp + 0xC); /* 0x3C00518B: mov ecx, dword ptr [ebp + 0xc] */ 3731 MEM32(ebp + (-0x4)) = eax; /* 0x3C00518E: mov dword ptr [ebp - 4], eax */ 3732 MEM32(eax + 0x8) = edx; /* 0x3C005191: mov dword ptr [eax + 8], edx */ 3733 PUSH32(esp, ecx); /* 0x3C005194: push ecx */ 3734 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 3735 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3736 eax = eax + 0xCu; /* 0x3C005195: add eax, 0xc */ 3737 _flag_k = FK_ADD; 3738 PUSH32(esp, eax); /* 0x3C005198: push eax */ 3739 RECOMP_ICALL(0x3C005EC0u); /* 0x3C005199: call 0x3c005ec0 */ /* not lifted */ 3740 RECOMP_FLAGS_IN(); 3741 ecx = MEM32(edi + 0x10); /* 0x3C00519E: mov ecx, dword ptr [edi + 0x10] */ 3742 eax = MEM32(edi + 0x4); /* 0x3C0051A1: mov eax, dword ptr [edi + 4] */ 3743 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3745 esp = esp + 8; /* 0x3C0051A4: add esp, 8 */ 3746 _flag_k = FK_ADD; 3747 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3748 ecx = ecx + 1; /* 0x3C0051A7: inc ecx */ 3749 _flag_k = FK_INC; 3750 /* cmp esi, eax */ /* 0x3C0051A8: cmp esi, eax */ 3751 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3753 _flag_k = FK_CMP; 3754 MEM32(edi + 0x10) = ecx; /* 0x3C0051AA: mov dword ptr [edi + 0x10], ecx */ 3755 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0051D1; /* 0x3C0051AD: je 0x3c0051d1 */ 3756 L_3C0051AF: 3757 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3C0051AF: cmp ebx, dword ptr [edi + 8] */ 3758 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3760 _flag_k = FK_CMP; 3761 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0051D1; /* 0x3C0051B2: jne 0x3c0051d1 */ 3762 L_3C0051B4: 3763 edx = MEM32(ebp + 0xC); /* 0x3C0051B4: mov edx, dword ptr [ebp + 0xc] */ 3764 eax = MEM32(edx); /* 0x3C0051B7: mov eax, dword ptr [edx] */ 3765 /* cmp eax, MEM32(esi + 0xC) */ /* 0x3C0051B9: cmp eax, dword ptr [esi + 0xc] */ 3766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 3767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3768 _flag_k = FK_CMP; 3769 if (CMP_B(_flag_a, _flag_b)) goto L_3C0051D1; /* 0x3C0051BC: jb 0x3c0051d1 */ 3770 L_3C0051BE: 3771 ebx = MEM32(ebp + (-0x4)); /* 0x3C0051BE: mov ebx, dword ptr [ebp - 4] */ 3772 MEM32(esi + 0x8) = ebx; /* 0x3C0051C1: mov dword ptr [esi + 8], ebx */ 3773 eax = MEM32(edi + 0x4); /* 0x3C0051C4: mov eax, dword ptr [edi + 4] */ 3774 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C0051C7: cmp esi, dword ptr [eax + 8] */ 3775 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3777 _flag_k = FK_CMP; 3778 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0051F4; /* 0x3C0051CA: jne 0x3c0051f4 */ 3779 L_3C0051CC: 3780 MEM32(eax + 0x8) = ebx; /* 0x3C0051CC: mov dword ptr [eax + 8], ebx */ 3781 goto L_3C0051F4; /* 0x3C0051CF: jmp 0x3c0051f4 */ 3782 L_3C0051D1: 3783 ecx = MEM32(ebp + (-0x4)); /* 0x3C0051D1: mov ecx, dword ptr [ebp - 4] */ 3784 MEM32(esi) = ecx; /* 0x3C0051D4: mov dword ptr [esi], ecx */ 3785 eax = MEM32(edi + 0x4); /* 0x3C0051D6: mov eax, dword ptr [edi + 4] */ 3786 /* cmp esi, eax */ /* 0x3C0051D9: cmp esi, eax */ 3787 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3789 _flag_k = FK_CMP; 3790 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0051E8; /* 0x3C0051DB: jne 0x3c0051e8 */ 3791 L_3C0051DD: 3792 MEM32(eax + 0x4) = ecx; /* 0x3C0051DD: mov dword ptr [eax + 4], ecx */ 3793 edx = MEM32(edi + 0x4); /* 0x3C0051E0: mov edx, dword ptr [edi + 4] */ 3794 MEM32(edx + 0x8) = ecx; /* 0x3C0051E3: mov dword ptr [edx + 8], ecx */ 3795 goto L_3C0051F1; /* 0x3C0051E6: jmp 0x3c0051f1 */ 3796 L_3C0051E8: 3797 /* cmp esi, MEM32(eax) */ /* 0x3C0051E8: cmp esi, dword ptr [eax] */ 3798 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 3799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3800 _flag_k = FK_CMP; 3801 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0051F1; /* 0x3C0051EA: jne 0x3c0051f1 */ 3802 L_3C0051EC: 3803 ecx = MEM32(ebp + (-0x4)); /* 0x3C0051EC: mov ecx, dword ptr [ebp - 4] */ 3804 MEM32(eax) = ecx; /* 0x3C0051EF: mov dword ptr [eax], ecx */ 3805 L_3C0051F1: 3806 ebx = MEM32(ebp + (-0x4)); /* 0x3C0051F1: mov ebx, dword ptr [ebp - 4] */ 3807 L_3C0051F4: 3808 edx = MEM32(edi + 0x4); /* 0x3C0051F4: mov edx, dword ptr [edi + 4] */ 3809 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x3C0051F7: cmp ebx, dword ptr [edx + 4] */ 3810 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3812 _flag_k = FK_CMP; 3813 esi = ebx; /* 0x3C0051FA: mov esi, ebx */ 3814 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0052C7; /* 0x3C0051FC: je 0x3c0052c7 */ 3815 L_3C005202: 3816 eax = MEM32(esi + 0x4); /* 0x3C005202: mov eax, dword ptr [esi + 4] */ 3817 SET_LO8(ecx, MEM8(eax + 0x10)); /* 0x3C005205: mov cl, byte ptr [eax + 0x10] */ 3818 /* test LO8(ecx), LO8(ecx) */ /* 0x3C005208: test cl, cl */ 3819 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3820 _cf = 0; 3821 _flag_k = FK_NARROW(FK_TEST, 24); 3822 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0052C7; /* 0x3C00520A: jne 0x3c0052c7 */ 3823 L_3C005210: 3824 edx = MEM32(eax + 0x4); /* 0x3C005210: mov edx, dword ptr [eax + 4] */ 3825 ecx = MEM32(edx); /* 0x3C005213: mov ecx, dword ptr [edx] */ 3826 /* cmp eax, ecx */ /* 0x3C005215: cmp eax, ecx */ 3827 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3829 _flag_k = FK_CMP; 3830 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00526D; /* 0x3C005217: jne 0x3c00526d */ 3831 L_3C005219: 3832 ecx = MEM32(edx + 0x8); /* 0x3C005219: mov ecx, dword ptr [edx + 8] */ 3833 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C00521C: mov dl, byte ptr [ecx + 0x10] */ 3834 /* test LO8(edx), LO8(edx) */ /* 0x3C00521F: test dl, dl */ 3835 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3836 _cf = 0; 3837 _flag_k = FK_NARROW(FK_TEST, 24); 3838 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00523D; /* 0x3C005221: jne 0x3c00523d */ 3839 L_3C005223: 3840 MEM8(eax + 0x10) = (uint8_t)(1); /* 0x3C005223: mov byte ptr [eax + 0x10], 1 */ 3841 MEM8(ecx + 0x10) = (uint8_t)(1); /* 0x3C005227: mov byte ptr [ecx + 0x10], 1 */ 3842 eax = MEM32(esi + 0x4); /* 0x3C00522B: mov eax, dword ptr [esi + 4] */ 3843 ecx = MEM32(eax + 0x4); /* 0x3C00522E: mov ecx, dword ptr [eax + 4] */ 3844 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005231: mov byte ptr [ecx + 0x10], 0 */ 3845 edx = MEM32(esi + 0x4); /* 0x3C005235: mov edx, dword ptr [esi + 4] */ 3846 esi = MEM32(edx + 0x4); /* 0x3C005238: mov esi, dword ptr [edx + 4] */ 3847 goto L_3C0052BB; /* 0x3C00523B: jmp 0x3c0052bb */ 3848 L_3C00523D: 3849 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C00523D: cmp esi, dword ptr [eax + 8] */ 3850 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3852 _flag_k = FK_CMP; 3853 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00524C; /* 0x3C005240: jne 0x3c00524c */ 3854 L_3C005242: 3855 esi = eax; /* 0x3C005242: mov esi, eax */ 3856 PUSH32(esp, esi); /* 0x3C005244: push esi */ 3857 ecx = edi; /* 0x3C005245: mov ecx, edi */ 3858 RECOMP_ICALL(0x3C005DD0u); /* 0x3C005247: call 0x3c005dd0 */ /* not lifted */ 3859 RECOMP_FLAGS_IN(); 3860 L_3C00524C: 3861 eax = MEM32(esi + 0x4); /* 0x3C00524C: mov eax, dword ptr [esi + 4] */ 3862 MEM8(eax + 0x10) = (uint8_t)(1); /* 0x3C00524F: mov byte ptr [eax + 0x10], 1 */ 3863 ecx = MEM32(esi + 0x4); /* 0x3C005253: mov ecx, dword ptr [esi + 4] */ 3864 edx = MEM32(ecx + 0x4); /* 0x3C005256: mov edx, dword ptr [ecx + 4] */ 3865 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005259: mov byte ptr [edx + 0x10], 0 */ 3866 eax = MEM32(esi + 0x4); /* 0x3C00525D: mov eax, dword ptr [esi + 4] */ 3867 ecx = MEM32(eax + 0x4); /* 0x3C005260: mov ecx, dword ptr [eax + 4] */ 3868 PUSH32(esp, ecx); /* 0x3C005263: push ecx */ 3869 ecx = edi; /* 0x3C005264: mov ecx, edi */ 3870 RECOMP_ICALL(0x3C007780u); /* 0x3C005266: call 0x3c007780 */ /* not lifted */ 3871 RECOMP_FLAGS_IN(); 3872 goto L_3C0052BB; /* 0x3C00526B: jmp 0x3c0052bb */ 3873 L_3C00526D: 3874 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C00526D: mov dl, byte ptr [ecx + 0x10] */ 3875 /* test LO8(edx), LO8(edx) */ /* 0x3C005270: test dl, dl */ 3876 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3877 _cf = 0; 3878 _flag_k = FK_NARROW(FK_TEST, 24); 3879 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00528E; /* 0x3C005272: jne 0x3c00528e */ 3880 L_3C005274: 3881 MEM8(eax + 0x10) = (uint8_t)(1); /* 0x3C005274: mov byte ptr [eax + 0x10], 1 */ 3882 MEM8(ecx + 0x10) = (uint8_t)(1); /* 0x3C005278: mov byte ptr [ecx + 0x10], 1 */ 3883 edx = MEM32(esi + 0x4); /* 0x3C00527C: mov edx, dword ptr [esi + 4] */ 3884 eax = MEM32(edx + 0x4); /* 0x3C00527F: mov eax, dword ptr [edx + 4] */ 3885 MEM8(eax + 0x10) = (uint8_t)(0); /* 0x3C005282: mov byte ptr [eax + 0x10], 0 */ 3886 ecx = MEM32(esi + 0x4); /* 0x3C005286: mov ecx, dword ptr [esi + 4] */ 3887 esi = MEM32(ecx + 0x4); /* 0x3C005289: mov esi, dword ptr [ecx + 4] */ 3888 goto L_3C0052BB; /* 0x3C00528C: jmp 0x3c0052bb */ 3889 L_3C00528E: 3890 /* cmp esi, MEM32(eax) */ /* 0x3C00528E: cmp esi, dword ptr [eax] */ 3891 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 3892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3893 _flag_k = FK_CMP; 3894 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00529C; /* 0x3C005290: jne 0x3c00529c */ 3895 L_3C005292: 3896 esi = eax; /* 0x3C005292: mov esi, eax */ 3897 PUSH32(esp, esi); /* 0x3C005294: push esi */ 3898 ecx = edi; /* 0x3C005295: mov ecx, edi */ 3899 RECOMP_ICALL(0x3C007780u); /* 0x3C005297: call 0x3c007780 */ /* not lifted */ 3900 RECOMP_FLAGS_IN(); 3901 L_3C00529C: 3902 edx = MEM32(esi + 0x4); /* 0x3C00529C: mov edx, dword ptr [esi + 4] */ 3903 MEM8(edx + 0x10) = (uint8_t)(1); /* 0x3C00529F: mov byte ptr [edx + 0x10], 1 */ 3904 eax = MEM32(esi + 0x4); /* 0x3C0052A3: mov eax, dword ptr [esi + 4] */ 3905 ecx = MEM32(eax + 0x4); /* 0x3C0052A6: mov ecx, dword ptr [eax + 4] */ 3906 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0052A9: mov byte ptr [ecx + 0x10], 0 */ 3907 edx = MEM32(esi + 0x4); /* 0x3C0052AD: mov edx, dword ptr [esi + 4] */ 3908 eax = MEM32(edx + 0x4); /* 0x3C0052B0: mov eax, dword ptr [edx + 4] */ 3909 PUSH32(esp, eax); /* 0x3C0052B3: push eax */ 3910 ecx = edi; /* 0x3C0052B4: mov ecx, edi */ 3911 RECOMP_ICALL(0x3C005DD0u); /* 0x3C0052B6: call 0x3c005dd0 */ /* not lifted */ 3912 RECOMP_FLAGS_IN(); 3913 L_3C0052BB: 3914 ecx = MEM32(edi + 0x4); /* 0x3C0052BB: mov ecx, dword ptr [edi + 4] */ 3915 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3C0052BE: cmp esi, dword ptr [ecx + 4] */ 3916 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3918 _flag_k = FK_CMP; 3919 RECOMP_BACKEDGE(); 3920 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005202; /* 0x3C0052C1: jne 0x3c005202 */ 3921 L_3C0052C7: 3922 edx = MEM32(edi + 0x4); /* 0x3C0052C7: mov edx, dword ptr [edi + 4] */ 3923 eax = MEM32(edx + 0x4); /* 0x3C0052CA: mov eax, dword ptr [edx + 4] */ 3924 MEM8(eax + 0x10) = (uint8_t)(1); /* 0x3C0052CD: mov byte ptr [eax + 0x10], 1 */ 3925 eax = MEM32(ebp + 0x8); /* 0x3C0052D1: mov eax, dword ptr [ebp + 8] */ 3926 edi = POP32_VAL(esp); /* 0x3C0052D4: pop edi */ 3927 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3C0052D5: mov byte ptr [ebp - 8], 1 */ 3928 ecx = MEM32(ebp + (-0x8)); /* 0x3C0052D9: mov ecx, dword ptr [ebp - 8] */ 3929 MEM32(eax) = ebx; /* 0x3C0052DC: mov dword ptr [eax], ebx */ 3930 esi = POP32_VAL(esp); /* 0x3C0052DE: pop esi */ 3931 MEM32(eax + 0x4) = ecx; /* 0x3C0052DF: mov dword ptr [eax + 4], ecx */ 3932 ebx = POP32_VAL(esp); /* 0x3C0052E2: pop ebx */ 3933 esp = ebp; /* 0x3C0052E3: mov esp, ebp */ 3934 ebp = POP32_VAL(esp); /* 0x3C0052E5: pop ebp */ 3935 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C0052E6: ret 8 */ 3936 L_3C0052E9: 3937 /* test LO8(eax), LO8(eax) */ /* 0x3C0052E9: test al, al */ 3938 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3939 _cf = 0; 3940 _flag_k = FK_NARROW(FK_TEST, 24); 3941 edx = esi; /* 0x3C0052EB: mov edx, esi */ 3942 MEM32(ebp + (-0x8)) = edx; /* 0x3C0052ED: mov dword ptr [ebp - 8], edx */ 3943 if (TEST_Z(_flag_a, _flag_b)) goto L_3C00532C; /* 0x3C0052F0: je 0x3c00532c */ 3944 L_3C0052F2: 3945 /* cmp esi, MEM32(ecx) */ /* 0x3C0052F2: cmp esi, dword ptr [ecx] */ 3946 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 3947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3948 _flag_k = FK_CMP; 3949 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005321; /* 0x3C0052F4: jne 0x3c005321 */ 3950 L_3C0052F6: 3951 edx = MEM32(ebp + 0xC); /* 0x3C0052F6: mov edx, dword ptr [ebp + 0xc] */ 3952 PUSH32(esp, edx); /* 0x3C0052F9: push edx */ 3953 PUSH32(esp, esi); /* 0x3C0052FA: push esi */ 3954 PUSH32(esp, ebx); /* 0x3C0052FB: push ebx */ 3955 eax = ebp + 0xC; /* 0x3C0052FC: lea eax, [ebp + 0xc] */ 3956 PUSH32(esp, eax); /* 0x3C0052FF: push eax */ 3957 ecx = edi; /* 0x3C005300: mov ecx, edi */ 3958 RECOMP_ICALL(0x3C005B30u); /* 0x3C005302: call 0x3c005b30 */ /* not lifted */ 3959 RECOMP_FLAGS_IN(); 3960 ecx = MEM32(eax); /* 0x3C005307: mov ecx, dword ptr [eax] */ 3961 eax = MEM32(ebp + 0x8); /* 0x3C005309: mov eax, dword ptr [ebp + 8] */ 3962 edi = POP32_VAL(esp); /* 0x3C00530C: pop edi */ 3963 MEM32(eax) = ecx; /* 0x3C00530D: mov dword ptr [eax], ecx */ 3964 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3C00530F: mov byte ptr [ebp - 8], 1 */ 3965 ecx = MEM32(ebp + (-0x8)); /* 0x3C005313: mov ecx, dword ptr [ebp - 8] */ 3966 esi = POP32_VAL(esp); /* 0x3C005316: pop esi */ 3967 MEM32(eax + 0x4) = ecx; /* 0x3C005317: mov dword ptr [eax + 4], ecx */ 3968 ebx = POP32_VAL(esp); /* 0x3C00531A: pop ebx */ 3969 esp = ebp; /* 0x3C00531B: mov esp, ebp */ 3970 ebp = POP32_VAL(esp); /* 0x3C00531D: pop ebp */ 3971 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C00531E: ret 8 */ 3972 L_3C005321: 3973 ecx = ebp + (-0x8); /* 0x3C005321: lea ecx, [ebp - 8] */ 3974 RECOMP_ICALL(0x3C005E60u); /* 0x3C005324: call 0x3c005e60 */ /* not lifted */ 3975 RECOMP_FLAGS_IN(); 3976 edx = MEM32(ebp + (-0x8)); /* 0x3C005329: mov edx, dword ptr [ebp - 8] */ 3977 L_3C00532C: 3978 ecx = MEM32(edx + 0xC); /* 0x3C00532C: mov ecx, dword ptr [edx + 0xc] */ 3979 eax = MEM32(ebp + 0xC); /* 0x3C00532F: mov eax, dword ptr [ebp + 0xc] */ 3980 /* cmp ecx, MEM32(eax) */ /* 0x3C005332: cmp ecx, dword ptr [eax] */ 3981 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 3982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3983 _flag_k = FK_CMP; 3984 if (CMP_AE(_flag_a, _flag_b)) goto L_3C00535E; /* 0x3C005334: jae 0x3c00535e */ 3985 L_3C005336: 3986 PUSH32(esp, eax); /* 0x3C005336: push eax */ 3987 PUSH32(esp, esi); /* 0x3C005337: push esi */ 3988 PUSH32(esp, ebx); /* 0x3C005338: push ebx */ 3989 edx = ebp + 0xC; /* 0x3C005339: lea edx, [ebp + 0xc] */ 3990 PUSH32(esp, edx); /* 0x3C00533C: push edx */ 3991 ecx = edi; /* 0x3C00533D: mov ecx, edi */ 3992 RECOMP_ICALL(0x3C005B30u); /* 0x3C00533F: call 0x3c005b30 */ /* not lifted */ 3993 RECOMP_FLAGS_IN(); 3994 ecx = MEM32(eax); /* 0x3C005344: mov ecx, dword ptr [eax] */ 3995 eax = MEM32(ebp + 0x8); /* 0x3C005346: mov eax, dword ptr [ebp + 8] */ 3996 edi = POP32_VAL(esp); /* 0x3C005349: pop edi */ 3997 MEM32(eax) = ecx; /* 0x3C00534A: mov dword ptr [eax], ecx */ 3998 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3C00534C: mov byte ptr [ebp - 8], 1 */ 3999 ecx = MEM32(ebp + (-0x8)); /* 0x3C005350: mov ecx, dword ptr [ebp - 8] */ 4000 esi = POP32_VAL(esp); /* 0x3C005353: pop esi */ 4001 MEM32(eax + 0x4) = ecx; /* 0x3C005354: mov dword ptr [eax + 4], ecx */ 4002 ebx = POP32_VAL(esp); /* 0x3C005357: pop ebx */ 4003 esp = ebp; /* 0x3C005358: mov esp, ebp */ 4004 ebp = POP32_VAL(esp); /* 0x3C00535A: pop ebp */ 4005 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C00535B: ret 8 */ 4006 L_3C00535E: 4007 eax = MEM32(ebp + 0x8); /* 0x3C00535E: mov eax, dword ptr [ebp + 8] */ 4008 edi = POP32_VAL(esp); /* 0x3C005361: pop edi */ 4009 MEM32(eax) = edx; /* 0x3C005362: mov dword ptr [eax], edx */ 4010 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x3C005364: mov byte ptr [ebp - 8], 0 */ 4011 edx = MEM32(ebp + (-0x8)); /* 0x3C005368: mov edx, dword ptr [ebp - 8] */ 4012 esi = POP32_VAL(esp); /* 0x3C00536B: pop esi */ 4013 MEM32(eax + 0x4) = edx; /* 0x3C00536C: mov dword ptr [eax + 4], edx */ 4014 ebx = POP32_VAL(esp); /* 0x3C00536F: pop ebx */ 4015 esp = ebp; /* 0x3C005370: mov esp, ebp */ 4016 ebp = POP32_VAL(esp); /* 0x3C005372: pop ebp */ 4017 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005373: ret 8 */ 4018 RECOMP_REGS_OUT(); 4019 } 4020 4021 void sub_3C005380(void) { 4022 int _fpu_cmp = 0; 4023 uint32_t _cf = 0; 4024 int _df = 1; 4025 uint32_t _flag_k = FK_NONE; 4026 uint32_t _flag_a = 0, _flag_b = 0; 4027 uint32_t _itail_tgt = 0; 4028 RECOMP_REGS_LOCALS 4029 RECOMP_ENTER(0x3C005380u); 4030 4031 L_3C005380: 4032 PUSH32(esp, ebp); /* 0x3C005380: push ebp */ 4033 ebp = esp; /* 0x3C005381: mov ebp, esp */ 4034 PUSH32(esp, ebx); /* 0x3C005383: push ebx */ 4035 ebx = MEM32(ebp + 0x10); /* 0x3C005384: mov ebx, dword ptr [ebp + 0x10] */ 4036 PUSH32(esp, esi); /* 0x3C005387: push esi */ 4037 esi = ecx; /* 0x3C005388: mov esi, ecx */ 4038 eax = MEM32(esi + 0x10); /* 0x3C00538A: mov eax, dword ptr [esi + 0x10] */ 4039 /* test eax, eax */ /* 0x3C00538D: test eax, eax */ 4040 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4041 _cf = 0; 4042 _flag_k = FK_TEST; 4043 ecx = MEM32(ebp + 0xC); /* 0x3C00538F: mov ecx, dword ptr [ebp + 0xc] */ 4044 PUSH32(esp, edi); /* 0x3C005392: push edi */ 4045 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0053F5; /* 0x3C005393: je 0x3c0053f5 */ 4046 L_3C005395: 4047 eax = MEM32(esi + 0x4); /* 0x3C005395: mov eax, dword ptr [esi + 4] */ 4048 /* cmp ecx, MEM32(eax) */ /* 0x3C005398: cmp ecx, dword ptr [eax] */ 4049 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 4050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4051 _flag_k = FK_CMP; 4052 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0053F5; /* 0x3C00539A: jne 0x3c0053f5 */ 4053 L_3C00539C: 4054 /* cmp ebx, eax */ /* 0x3C00539C: cmp ebx, eax */ 4055 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4057 _flag_k = FK_CMP; 4058 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0053F5; /* 0x3C00539E: jne 0x3c0053f5 */ 4059 L_3C0053A0: 4060 ebx = MEM32(eax + 0x4); /* 0x3C0053A0: mov ebx, dword ptr [eax + 4] */ 4061 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C0053A3: cmp ebx, dword ptr [esi + 8] */ 4062 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4064 _flag_k = FK_CMP; 4065 edi = ebx; /* 0x3C0053A6: mov edi, ebx */ 4066 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0053C9; /* 0x3C0053A8: je 0x3c0053c9 */ 4067 L_3C0053AA: 4068 eax = MEM32(edi + 0x8); /* 0x3C0053AA: mov eax, dword ptr [edi + 8] */ 4069 PUSH32(esp, eax); /* 0x3C0053AD: push eax */ 4070 ecx = esi; /* 0x3C0053AE: mov ecx, esi */ 4071 RECOMP_ICALL(0x3C005A90u); /* 0x3C0053B0: call 0x3c005a90 */ /* not lifted */ 4072 RECOMP_FLAGS_IN(); 4073 edi = MEM32(edi); /* 0x3C0053B5: mov edi, dword ptr [edi] */ 4074 PUSH32(esp, ebx); /* 0x3C0053B7: push ebx */ 4075 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0053B8: call 0x3c0089de */ /* not lifted */ 4076 RECOMP_FLAGS_IN(); 4077 eax = MEM32(esi + 0x8); /* 0x3C0053BD: mov eax, dword ptr [esi + 8] */ 4078 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4079 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4080 esp = esp + 4; /* 0x3C0053C0: add esp, 4 */ 4081 _flag_k = FK_ADD; 4082 /* cmp edi, eax */ /* 0x3C0053C3: cmp edi, eax */ 4083 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4085 _flag_k = FK_CMP; 4086 ebx = edi; /* 0x3C0053C5: mov ebx, edi */ 4087 RECOMP_BACKEDGE(); 4088 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0053AA; /* 0x3C0053C7: jne 0x3c0053aa */ 4089 L_3C0053C9: 4090 ecx = MEM32(esi + 0x4); /* 0x3C0053C9: mov ecx, dword ptr [esi + 4] */ 4091 edx = MEM32(esi + 0x8); /* 0x3C0053CC: mov edx, dword ptr [esi + 8] */ 4092 MEM32(ecx + 0x4) = edx; /* 0x3C0053CF: mov dword ptr [ecx + 4], edx */ 4093 eax = MEM32(esi + 0x4); /* 0x3C0053D2: mov eax, dword ptr [esi + 4] */ 4094 MEM32(esi + 0x10) = 0; /* 0x3C0053D5: mov dword ptr [esi + 0x10], 0 */ 4095 MEM32(eax) = eax; /* 0x3C0053DC: mov dword ptr [eax], eax */ 4096 eax = MEM32(esi + 0x4); /* 0x3C0053DE: mov eax, dword ptr [esi + 4] */ 4097 MEM32(eax + 0x8) = eax; /* 0x3C0053E1: mov dword ptr [eax + 8], eax */ 4098 eax = MEM32(esi + 0x4); /* 0x3C0053E4: mov eax, dword ptr [esi + 4] */ 4099 ecx = MEM32(eax); /* 0x3C0053E7: mov ecx, dword ptr [eax] */ 4100 eax = MEM32(ebp + 0x8); /* 0x3C0053E9: mov eax, dword ptr [ebp + 8] */ 4101 edi = POP32_VAL(esp); /* 0x3C0053EC: pop edi */ 4102 esi = POP32_VAL(esp); /* 0x3C0053ED: pop esi */ 4103 MEM32(eax) = ecx; /* 0x3C0053EE: mov dword ptr [eax], ecx */ 4104 ebx = POP32_VAL(esp); /* 0x3C0053F0: pop ebx */ 4105 ebp = POP32_VAL(esp); /* 0x3C0053F1: pop ebp */ 4106 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C0053F2: ret 0xc */ 4107 L_3C0053F5: 4108 /* cmp ecx, ebx */ /* 0x3C0053F5: cmp ecx, ebx */ 4109 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4111 _flag_k = FK_CMP; 4112 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005416; /* 0x3C0053F7: je 0x3c005416 */ 4113 L_3C0053F9: 4114 edi = ecx; /* 0x3C0053F9: mov edi, ecx */ 4115 ecx = ebp + 0xC; /* 0x3C0053FB: lea ecx, [ebp + 0xc] */ 4116 RECOMP_ICALL(0x3C005430u); /* 0x3C0053FE: call 0x3c005430 */ /* not lifted */ 4117 RECOMP_FLAGS_IN(); 4118 PUSH32(esp, edi); /* 0x3C005403: push edi */ 4119 ecx = ebp + 0x10; /* 0x3C005404: lea ecx, [ebp + 0x10] */ 4120 PUSH32(esp, ecx); /* 0x3C005407: push ecx */ 4121 ecx = esi; /* 0x3C005408: mov ecx, esi */ 4122 RECOMP_ICALL(0x3C005690u); /* 0x3C00540A: call 0x3c005690 */ /* not lifted */ 4123 RECOMP_FLAGS_IN(); 4124 ecx = MEM32(ebp + 0xC); /* 0x3C00540F: mov ecx, dword ptr [ebp + 0xc] */ 4125 /* cmp ecx, ebx */ /* 0x3C005412: cmp ecx, ebx */ 4126 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4128 _flag_k = FK_CMP; 4129 RECOMP_BACKEDGE(); 4130 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0053F9; /* 0x3C005414: jne 0x3c0053f9 */ 4131 L_3C005416: 4132 eax = MEM32(ebp + 0x8); /* 0x3C005416: mov eax, dword ptr [ebp + 8] */ 4133 edi = POP32_VAL(esp); /* 0x3C005419: pop edi */ 4134 esi = POP32_VAL(esp); /* 0x3C00541A: pop esi */ 4135 MEM32(eax) = ecx; /* 0x3C00541B: mov dword ptr [eax], ecx */ 4136 ebx = POP32_VAL(esp); /* 0x3C00541D: pop ebx */ 4137 ebp = POP32_VAL(esp); /* 0x3C00541E: pop ebp */ 4138 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C00541F: ret 0xc */ 4139 RECOMP_REGS_OUT(); 4140 } 4141 4142 void sub_3C005430(void) { 4143 int _fpu_cmp = 0; 4144 uint32_t _cf = 0; 4145 int _df = 1; 4146 uint32_t _flag_k = FK_NONE; 4147 uint32_t _flag_a = 0, _flag_b = 0; 4148 uint32_t _itail_tgt = 0; 4149 RECOMP_REGS_LOCALS 4150 RECOMP_ENTER(0x3C005430u); 4151 4152 L_3C005430: 4153 eax = MEM32(ecx); /* 0x3C005430: mov eax, dword ptr [ecx] */ 4154 edx = MEM32(eax + 0x8); /* 0x3C005432: mov edx, dword ptr [eax + 8] */ 4155 PUSH32(esp, ebx); /* 0x3C005435: push ebx */ 4156 SET_LO8(ebx, MEM8(edx + 0x11)); /* 0x3C005436: mov bl, byte ptr [edx + 0x11] */ 4157 /* test LO8(ebx), LO8(ebx) */ /* 0x3C005439: test bl, bl */ 4158 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4159 _cf = 0; 4160 _flag_k = FK_NARROW(FK_TEST, 24); 4161 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005455; /* 0x3C00543B: jne 0x3c005455 */ 4162 L_3C00543D: 4163 eax = MEM32(edx); /* 0x3C00543D: mov eax, dword ptr [edx] */ 4164 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x3C00543F: mov bl, byte ptr [eax + 0x11] */ 4165 /* test LO8(ebx), LO8(ebx) */ /* 0x3C005442: test bl, bl */ 4166 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4167 _cf = 0; 4168 _flag_k = FK_NARROW(FK_TEST, 24); 4169 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005451; /* 0x3C005444: jne 0x3c005451 */ 4170 L_3C005446: 4171 edx = eax; /* 0x3C005446: mov edx, eax */ 4172 eax = MEM32(edx); /* 0x3C005448: mov eax, dword ptr [edx] */ 4173 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x3C00544A: mov bl, byte ptr [eax + 0x11] */ 4174 /* test LO8(ebx), LO8(ebx) */ /* 0x3C00544D: test bl, bl */ 4175 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4176 _cf = 0; 4177 _flag_k = FK_NARROW(FK_TEST, 24); 4178 RECOMP_BACKEDGE(); 4179 if (TEST_Z(_flag_a, _flag_b)) goto L_3C005446; /* 0x3C00544F: je 0x3c005446 */ 4180 L_3C005451: 4181 MEM32(ecx) = edx; /* 0x3C005451: mov dword ptr [ecx], edx */ 4182 ebx = POP32_VAL(esp); /* 0x3C005453: pop ebx */ 4183 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005454: ret */ 4184 L_3C005455: 4185 eax = MEM32(eax + 0x4); /* 0x3C005455: mov eax, dword ptr [eax + 4] */ 4186 edx = MEM32(ecx); /* 0x3C005458: mov edx, dword ptr [ecx] */ 4187 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3C00545A: cmp edx, dword ptr [eax + 8] */ 4188 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 4189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4190 _flag_k = FK_CMP; 4191 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00546B; /* 0x3C00545D: jne 0x3c00546b */ 4192 L_3C00545F: 4193 MEM32(ecx) = eax; /* 0x3C00545F: mov dword ptr [ecx], eax */ 4194 eax = MEM32(eax + 0x4); /* 0x3C005461: mov eax, dword ptr [eax + 4] */ 4195 edx = MEM32(ecx); /* 0x3C005464: mov edx, dword ptr [ecx] */ 4196 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3C005466: cmp edx, dword ptr [eax + 8] */ 4197 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 4198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4199 _flag_k = FK_CMP; 4200 RECOMP_BACKEDGE(); 4201 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00545F; /* 0x3C005469: je 0x3c00545f */ 4202 L_3C00546B: 4203 edx = MEM32(ecx); /* 0x3C00546B: mov edx, dword ptr [ecx] */ 4204 /* cmp MEM32(edx + 0x8), eax */ /* 0x3C00546D: cmp dword ptr [edx + 8], eax */ 4205 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 4206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4207 _flag_k = FK_CMP; 4208 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005474; /* 0x3C005470: je 0x3c005474 */ 4209 L_3C005472: 4210 MEM32(ecx) = eax; /* 0x3C005472: mov dword ptr [ecx], eax */ 4211 L_3C005474: 4212 ebx = POP32_VAL(esp); /* 0x3C005474: pop ebx */ 4213 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005475: ret */ 4214 RECOMP_REGS_OUT(); 4215 } 4216 4217 void sub_3C005480(void) { 4218 int _fpu_cmp = 0; 4219 uint32_t _cf = 0; 4220 int _df = 1; 4221 uint32_t _flag_k = FK_NONE; 4222 uint32_t _flag_a = 0, _flag_b = 0; 4223 uint32_t _itail_tgt = 0; 4224 RECOMP_REGS_LOCALS 4225 RECOMP_ENTER(0x3C005480u); 4226 4227 L_3C005480: 4228 PUSH32(esp, ebp); /* 0x3C005480: push ebp */ 4229 ebp = esp; /* 0x3C005481: mov ebp, esp */ 4230 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4232 esp = esp - 0xCu; /* 0x3C005483: sub esp, 0xc */ 4233 _flag_k = FK_CMP; 4234 PUSH32(esp, ebx); /* 0x3C005486: push ebx */ 4235 ebx = ecx; /* 0x3C005487: mov ebx, ecx */ 4236 eax = MEM32(ebx + 0x8); /* 0x3C005489: mov eax, dword ptr [ebx + 8] */ 4237 ecx = MEM32(ebx + 0xC); /* 0x3C00548C: mov ecx, dword ptr [ebx + 0xc] */ 4238 PUSH32(esp, esi); /* 0x3C00548F: push esi */ 4239 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4241 ecx = ecx - eax; /* 0x3C005490: sub ecx, eax */ 4242 _flag_k = FK_CMP; 4243 PUSH32(esp, edi); /* 0x3C005492: push edi */ 4244 edi = MEM32(ebp + 0xC); /* 0x3C005493: mov edi, dword ptr [ebp + 0xc] */ 4245 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C005496: sar ecx, 2 */ 4246 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4247 ecx = (uint32_t)((int32_t)ecx >> 2u); 4248 /* cmp ecx, edi */ /* 0x3C005499: cmp ecx, edi */ 4249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4251 _flag_k = FK_CMP; 4252 MEM32(ebp + (-0x4)) = ebx; /* 0x3C00549B: mov dword ptr [ebp - 4], ebx */ 4253 if (CMP_AE(_flag_a, _flag_b)) goto L_3C0055A5; /* 0x3C00549E: jae 0x3c0055a5 */ 4254 L_3C0054A4: 4255 edx = MEM32(ebx + 0x4); /* 0x3C0054A4: mov edx, dword ptr [ebx + 4] */ 4256 /* test edx, edx */ /* 0x3C0054A7: test edx, edx */ 4257 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4258 _cf = 0; 4259 _flag_k = FK_TEST; 4260 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0054B6; /* 0x3C0054A9: je 0x3c0054b6 */ 4261 L_3C0054AB: 4262 ecx = eax; /* 0x3C0054AB: mov ecx, eax */ 4263 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4265 ecx = ecx - edx; /* 0x3C0054AD: sub ecx, edx */ 4266 _flag_k = FK_CMP; 4267 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C0054AF: sar ecx, 2 */ 4268 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4269 ecx = (uint32_t)((int32_t)ecx >> 2u); 4270 /* cmp edi, ecx */ /* 0x3C0054B2: cmp edi, ecx */ 4271 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4273 _flag_k = FK_CMP; 4274 if (CMP_B(_flag_a, _flag_b)) goto L_3C0054B8; /* 0x3C0054B4: jb 0x3c0054b8 */ 4275 L_3C0054B6: 4276 ecx = edi; /* 0x3C0054B6: mov ecx, edi */ 4277 L_3C0054B8: 4278 /* test edx, edx */ /* 0x3C0054B8: test edx, edx */ 4279 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4280 _cf = 0; 4281 _flag_k = FK_TEST; 4282 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0054C0; /* 0x3C0054BA: jne 0x3c0054c0 */ 4283 L_3C0054BC: 4284 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4285 eax = 0; /* 0x3C0054BC: xor eax, eax */ 4286 _cf = 0; 4287 _flag_k = FK_TEST; 4288 goto L_3C0054C5; /* 0x3C0054BE: jmp 0x3c0054c5 */ 4289 L_3C0054C0: 4290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4292 eax = eax - edx; /* 0x3C0054C0: sub eax, edx */ 4293 _flag_k = FK_CMP; 4294 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3C0054C2: sar eax, 2 */ 4295 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4296 eax = (uint32_t)((int32_t)eax >> 2u); 4297 L_3C0054C5: 4298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4300 eax = eax + ecx; /* 0x3C0054C5: add eax, ecx */ 4301 _flag_k = FK_ADD; 4302 /* test eax, eax */ /* 0x3C0054C7: test eax, eax */ 4303 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4304 _cf = 0; 4305 _flag_k = FK_TEST; 4306 MEM32(ebp + (-0xC)) = eax; /* 0x3C0054C9: mov dword ptr [ebp - 0xc], eax */ 4307 if (TEST_NS(_flag_a, _flag_b)) goto L_3C0054D0; /* 0x3C0054CC: jge 0x3c0054d0 */ 4308 L_3C0054CE: 4309 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4310 eax = 0; /* 0x3C0054CE: xor eax, eax */ 4311 _cf = 0; 4312 _flag_k = FK_TEST; 4313 L_3C0054D0: 4314 edx = eax * 4; /* 0x3C0054D0: lea edx, [eax*4] */ 4315 PUSH32(esp, edx); /* 0x3C0054D7: push edx */ 4316 RECOMP_ICALL(0x3C008B40u); /* 0x3C0054D8: call 0x3c008b40 */ /* not lifted */ 4317 RECOMP_FLAGS_IN(); 4318 MEM32(ebp + (-0x8)) = eax; /* 0x3C0054DD: mov dword ptr [ebp - 8], eax */ 4319 ecx = eax; /* 0x3C0054E0: mov ecx, eax */ 4320 eax = MEM32(ebx + 0x4); /* 0x3C0054E2: mov eax, dword ptr [ebx + 4] */ 4321 ebx = MEM32(ebp + 0x8); /* 0x3C0054E5: mov ebx, dword ptr [ebp + 8] */ 4322 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4324 esp = esp + 4; /* 0x3C0054E8: add esp, 4 */ 4325 _flag_k = FK_ADD; 4326 /* cmp eax, ebx */ /* 0x3C0054EB: cmp eax, ebx */ 4327 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4329 _flag_k = FK_CMP; 4330 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005501; /* 0x3C0054ED: je 0x3c005501 */ 4331 L_3C0054EF: 4332 /* test ecx, ecx */ /* 0x3C0054EF: test ecx, ecx */ 4333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4334 _cf = 0; 4335 _flag_k = FK_TEST; 4336 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0054F7; /* 0x3C0054F1: je 0x3c0054f7 */ 4337 L_3C0054F3: 4338 edx = MEM32(eax); /* 0x3C0054F3: mov edx, dword ptr [eax] */ 4339 MEM32(ecx) = edx; /* 0x3C0054F5: mov dword ptr [ecx], edx */ 4340 L_3C0054F7: 4341 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4342 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4343 eax = eax + 4; /* 0x3C0054F7: add eax, 4 */ 4344 _flag_k = FK_ADD; 4345 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4346 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4347 ecx = ecx + 4; /* 0x3C0054FA: add ecx, 4 */ 4348 _flag_k = FK_ADD; 4349 /* cmp eax, ebx */ /* 0x3C0054FD: cmp eax, ebx */ 4350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4352 _flag_k = FK_CMP; 4353 RECOMP_BACKEDGE(); 4354 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0054EF; /* 0x3C0054FF: jne 0x3c0054ef */ 4355 L_3C005501: 4356 /* test edi, edi */ /* 0x3C005501: test edi, edi */ 4357 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4358 _cf = 0; 4359 _flag_k = FK_TEST; 4360 eax = ecx; /* 0x3C005503: mov eax, ecx */ 4361 if (TEST_Z(_flag_a, _flag_b)) goto L_3C00551A; /* 0x3C005505: jbe 0x3c00551a */ 4362 L_3C005507: 4363 edx = edi; /* 0x3C005507: mov edx, edi */ 4364 L_3C005509: 4365 /* test eax, eax */ /* 0x3C005509: test eax, eax */ 4366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4367 _cf = 0; 4368 _flag_k = FK_TEST; 4369 if (TEST_Z(_flag_a, _flag_b)) goto L_3C005514; /* 0x3C00550B: je 0x3c005514 */ 4370 L_3C00550D: 4371 esi = MEM32(ebp + 0x10); /* 0x3C00550D: mov esi, dword ptr [ebp + 0x10] */ 4372 esi = MEM32(esi); /* 0x3C005510: mov esi, dword ptr [esi] */ 4373 MEM32(eax) = esi; /* 0x3C005512: mov dword ptr [eax], esi */ 4374 L_3C005514: 4375 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4377 eax = eax + 4; /* 0x3C005514: add eax, 4 */ 4378 _flag_k = FK_ADD; 4379 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4380 edx = edx - 1; /* 0x3C005517: dec edx */ 4381 _flag_k = FK_DEC; 4382 RECOMP_BACKEDGE(); 4383 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3C005509; /* 0x3C005518: jne 0x3c005509 */ 4384 L_3C00551A: 4385 eax = MEM32(ebp + (-0x4)); /* 0x3C00551A: mov eax, dword ptr [ebp - 4] */ 4386 esi = edi * 4; /* 0x3C00551D: lea esi, [edi*4] */ 4387 edi = MEM32(eax + 0x8); /* 0x3C005524: mov edi, dword ptr [eax + 8] */ 4388 /* cmp ebx, edi */ /* 0x3C005527: cmp ebx, edi */ 4389 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 4390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4391 _flag_k = FK_CMP; 4392 edx = esi + ecx; /* 0x3C005529: lea edx, [esi + ecx] */ 4393 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005548; /* 0x3C00552C: je 0x3c005548 */ 4394 L_3C00552E: 4395 eax = edx; /* 0x3C00552E: mov eax, edx */ 4396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4398 eax = eax - esi; /* 0x3C005530: sub eax, esi */ 4399 _flag_k = FK_CMP; 4400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4402 eax = eax - ecx; /* 0x3C005532: sub eax, ecx */ 4403 _flag_k = FK_CMP; 4404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4406 eax = eax + ebx; /* 0x3C005534: add eax, ebx */ 4407 _flag_k = FK_ADD; 4408 L_3C005536: 4409 /* test edx, edx */ /* 0x3C005536: test edx, edx */ 4410 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4411 _cf = 0; 4412 _flag_k = FK_TEST; 4413 if (TEST_Z(_flag_a, _flag_b)) goto L_3C00553E; /* 0x3C005538: je 0x3c00553e */ 4414 L_3C00553A: 4415 ecx = MEM32(eax); /* 0x3C00553A: mov ecx, dword ptr [eax] */ 4416 MEM32(edx) = ecx; /* 0x3C00553C: mov dword ptr [edx], ecx */ 4417 L_3C00553E: 4418 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4419 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4420 eax = eax + 4; /* 0x3C00553E: add eax, 4 */ 4421 _flag_k = FK_ADD; 4422 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 4423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4424 edx = edx + 4; /* 0x3C005541: add edx, 4 */ 4425 _flag_k = FK_ADD; 4426 /* cmp eax, edi */ /* 0x3C005544: cmp eax, edi */ 4427 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4429 _flag_k = FK_CMP; 4430 RECOMP_BACKEDGE(); 4431 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005536; /* 0x3C005546: jne 0x3c005536 */ 4432 L_3C005548: 4433 esi = MEM32(ebp + (-0x4)); /* 0x3C005548: mov esi, dword ptr [ebp - 4] */ 4434 eax = MEM32(esi + 0x4); /* 0x3C00554B: mov eax, dword ptr [esi + 4] */ 4435 PUSH32(esp, eax); /* 0x3C00554E: push eax */ 4436 MEM32(ebp + 0x10) = eax; /* 0x3C00554F: mov dword ptr [ebp + 0x10], eax */ 4437 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005552: call 0x3c0089de */ /* not lifted */ 4438 RECOMP_FLAGS_IN(); 4439 edx = MEM32(ebp + (-0x8)); /* 0x3C005557: mov edx, dword ptr [ebp - 8] */ 4440 eax = MEM32(ebp + (-0xC)); /* 0x3C00555A: mov eax, dword ptr [ebp - 0xc] */ 4441 ecx = edx + eax * 4; /* 0x3C00555D: lea ecx, [edx + eax*4] */ 4442 MEM32(esi + 0xC) = ecx; /* 0x3C005560: mov dword ptr [esi + 0xc], ecx */ 4443 ecx = MEM32(esi + 0x4); /* 0x3C005563: mov ecx, dword ptr [esi + 4] */ 4444 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4445 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4446 esp = esp + 4; /* 0x3C005566: add esp, 4 */ 4447 _flag_k = FK_ADD; 4448 /* test ecx, ecx */ /* 0x3C005569: test ecx, ecx */ 4449 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4450 _cf = 0; 4451 _flag_k = FK_TEST; 4452 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005586; /* 0x3C00556B: jne 0x3c005586 */ 4453 L_3C00556D: 4454 ecx = MEM32(ebp + 0xC); /* 0x3C00556D: mov ecx, dword ptr [ebp + 0xc] */ 4455 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4456 eax = 0; /* 0x3C005570: xor eax, eax */ 4457 _cf = 0; 4458 _flag_k = FK_TEST; 4459 eax = ecx; /* 0x3C005572: mov eax, ecx */ 4460 eax = edx + eax * 4; /* 0x3C005574: lea eax, [edx + eax*4] */ 4461 edi = POP32_VAL(esp); /* 0x3C005577: pop edi */ 4462 MEM32(esi + 0x8) = eax; /* 0x3C005578: mov dword ptr [esi + 8], eax */ 4463 MEM32(esi + 0x4) = edx; /* 0x3C00557B: mov dword ptr [esi + 4], edx */ 4464 esi = POP32_VAL(esp); /* 0x3C00557E: pop esi */ 4465 ebx = POP32_VAL(esp); /* 0x3C00557F: pop ebx */ 4466 esp = ebp; /* 0x3C005580: mov esp, ebp */ 4467 ebp = POP32_VAL(esp); /* 0x3C005582: pop ebp */ 4468 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C005583: ret 0xc */ 4469 L_3C005586: 4470 eax = MEM32(esi + 0x8); /* 0x3C005586: mov eax, dword ptr [esi + 8] */ 4471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4473 eax = eax - ecx; /* 0x3C005589: sub eax, ecx */ 4474 _flag_k = FK_CMP; 4475 ecx = MEM32(ebp + 0xC); /* 0x3C00558B: mov ecx, dword ptr [ebp + 0xc] */ 4476 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3C00558E: sar eax, 2 */ 4477 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4478 eax = (uint32_t)((int32_t)eax >> 2u); 4479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4481 eax = eax + ecx; /* 0x3C005591: add eax, ecx */ 4482 _flag_k = FK_ADD; 4483 eax = edx + eax * 4; /* 0x3C005593: lea eax, [edx + eax*4] */ 4484 edi = POP32_VAL(esp); /* 0x3C005596: pop edi */ 4485 MEM32(esi + 0x8) = eax; /* 0x3C005597: mov dword ptr [esi + 8], eax */ 4486 MEM32(esi + 0x4) = edx; /* 0x3C00559A: mov dword ptr [esi + 4], edx */ 4487 esi = POP32_VAL(esp); /* 0x3C00559D: pop esi */ 4488 ebx = POP32_VAL(esp); /* 0x3C00559E: pop ebx */ 4489 esp = ebp; /* 0x3C00559F: mov esp, ebp */ 4490 ebp = POP32_VAL(esp); /* 0x3C0055A1: pop ebp */ 4491 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C0055A2: ret 0xc */ 4492 L_3C0055A5: 4493 edx = MEM32(ebp + 0x8); /* 0x3C0055A5: mov edx, dword ptr [ebp + 8] */ 4494 ecx = eax; /* 0x3C0055A8: mov ecx, eax */ 4495 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4497 ecx = ecx - edx; /* 0x3C0055AA: sub ecx, edx */ 4498 _flag_k = FK_CMP; 4499 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C0055AC: sar ecx, 2 */ 4500 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4501 ecx = (uint32_t)((int32_t)ecx >> 2u); 4502 /* cmp ecx, edi */ /* 0x3C0055AF: cmp ecx, edi */ 4503 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4505 _flag_k = FK_CMP; 4506 if (CMP_AE(_flag_a, _flag_b)) goto L_3C005626; /* 0x3C0055B1: jae 0x3c005626 */ 4507 L_3C0055B3: 4508 esi = edi * 4; /* 0x3C0055B3: lea esi, [edi*4] */ 4509 MEM32(ebp + 0xC) = esi; /* 0x3C0055BA: mov dword ptr [ebp + 0xc], esi */ 4510 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 4511 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4512 esi = esi + edx; /* 0x3C0055BD: add esi, edx */ 4513 _flag_k = FK_ADD; 4514 /* cmp edx, eax */ /* 0x3C0055BF: cmp edx, eax */ 4515 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4517 _flag_k = FK_CMP; 4518 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0055DF; /* 0x3C0055C1: je 0x3c0055df */ 4519 L_3C0055C3: 4520 ebx = MEM32(ebp + 0xC); /* 0x3C0055C3: mov ebx, dword ptr [ebp + 0xc] */ 4521 ecx = esi; /* 0x3C0055C6: mov ecx, esi */ 4522 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4524 ecx = ecx - ebx; /* 0x3C0055C8: sub ecx, ebx */ 4525 _flag_k = FK_CMP; 4526 L_3C0055CA: 4527 /* test esi, esi */ /* 0x3C0055CA: test esi, esi */ 4528 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4529 _cf = 0; 4530 _flag_k = FK_TEST; 4531 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0055D2; /* 0x3C0055CC: je 0x3c0055d2 */ 4532 L_3C0055CE: 4533 ebx = MEM32(ecx); /* 0x3C0055CE: mov ebx, dword ptr [ecx] */ 4534 MEM32(esi) = ebx; /* 0x3C0055D0: mov dword ptr [esi], ebx */ 4535 L_3C0055D2: 4536 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4537 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4538 ecx = ecx + 4; /* 0x3C0055D2: add ecx, 4 */ 4539 _flag_k = FK_ADD; 4540 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4541 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4542 esi = esi + 4; /* 0x3C0055D5: add esi, 4 */ 4543 _flag_k = FK_ADD; 4544 /* cmp ecx, eax */ /* 0x3C0055D8: cmp ecx, eax */ 4545 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4547 _flag_k = FK_CMP; 4548 RECOMP_BACKEDGE(); 4549 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0055CA; /* 0x3C0055DA: jne 0x3c0055ca */ 4550 L_3C0055DC: 4551 ebx = MEM32(ebp + (-0x4)); /* 0x3C0055DC: mov ebx, dword ptr [ebp - 4] */ 4552 L_3C0055DF: 4553 eax = MEM32(ebx + 0x8); /* 0x3C0055DF: mov eax, dword ptr [ebx + 8] */ 4554 esi = MEM32(ebp + 0x10); /* 0x3C0055E2: mov esi, dword ptr [ebp + 0x10] */ 4555 ecx = eax; /* 0x3C0055E5: mov ecx, eax */ 4556 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4558 ecx = ecx - edx; /* 0x3C0055E7: sub ecx, edx */ 4559 _flag_k = FK_CMP; 4560 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C0055E9: sar ecx, 2 */ 4561 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4562 ecx = (uint32_t)((int32_t)ecx >> 2u); 4563 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4565 edi = edi - ecx; /* 0x3C0055EC: sub edi, ecx */ 4566 _flag_k = FK_CMP; 4567 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3C0055FE; /* 0x3C0055EE: je 0x3c0055fe */ 4568 L_3C0055F0: 4569 /* test eax, eax */ /* 0x3C0055F0: test eax, eax */ 4570 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4571 _cf = 0; 4572 _flag_k = FK_TEST; 4573 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0055F8; /* 0x3C0055F2: je 0x3c0055f8 */ 4574 L_3C0055F4: 4575 ecx = MEM32(esi); /* 0x3C0055F4: mov ecx, dword ptr [esi] */ 4576 MEM32(eax) = ecx; /* 0x3C0055F6: mov dword ptr [eax], ecx */ 4577 L_3C0055F8: 4578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4579 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4580 eax = eax + 4; /* 0x3C0055F8: add eax, 4 */ 4581 _flag_k = FK_ADD; 4582 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4583 edi = edi - 1; /* 0x3C0055FB: dec edi */ 4584 _flag_k = FK_DEC; 4585 RECOMP_BACKEDGE(); 4586 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3C0055F0; /* 0x3C0055FC: jne 0x3c0055f0 */ 4587 L_3C0055FE: 4588 ecx = MEM32(ebx + 0x8); /* 0x3C0055FE: mov ecx, dword ptr [ebx + 8] */ 4589 /* cmp edx, ecx */ /* 0x3C005601: cmp edx, ecx */ 4590 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4592 _flag_k = FK_CMP; 4593 eax = edx; /* 0x3C005603: mov eax, edx */ 4594 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005612; /* 0x3C005605: je 0x3c005612 */ 4595 L_3C005607: 4596 edx = MEM32(esi); /* 0x3C005607: mov edx, dword ptr [esi] */ 4597 MEM32(eax) = edx; /* 0x3C005609: mov dword ptr [eax], edx */ 4598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4600 eax = eax + 4; /* 0x3C00560B: add eax, 4 */ 4601 _flag_k = FK_ADD; 4602 /* cmp eax, ecx */ /* 0x3C00560E: cmp eax, ecx */ 4603 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4605 _flag_k = FK_CMP; 4606 RECOMP_BACKEDGE(); 4607 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005607; /* 0x3C005610: jne 0x3c005607 */ 4608 L_3C005612: 4609 ecx = MEM32(ebx + 0x8); /* 0x3C005612: mov ecx, dword ptr [ebx + 8] */ 4610 eax = MEM32(ebp + 0xC); /* 0x3C005615: mov eax, dword ptr [ebp + 0xc] */ 4611 edi = POP32_VAL(esp); /* 0x3C005618: pop edi */ 4612 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4614 ecx = ecx + eax; /* 0x3C005619: add ecx, eax */ 4615 _flag_k = FK_ADD; 4616 esi = POP32_VAL(esp); /* 0x3C00561B: pop esi */ 4617 MEM32(ebx + 0x8) = ecx; /* 0x3C00561C: mov dword ptr [ebx + 8], ecx */ 4618 ebx = POP32_VAL(esp); /* 0x3C00561F: pop ebx */ 4619 esp = ebp; /* 0x3C005620: mov esp, ebp */ 4620 ebp = POP32_VAL(esp); /* 0x3C005622: pop ebp */ 4621 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C005623: ret 0xc */ 4622 L_3C005626: 4623 /* test edi, edi */ /* 0x3C005626: test edi, edi */ 4624 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4625 _cf = 0; 4626 _flag_k = FK_TEST; 4627 if (TEST_Z(_flag_a, _flag_b)) goto L_3C005680; /* 0x3C005628: jbe 0x3c005680 */ 4628 L_3C00562A: 4629 if (2u) _cf = (((edi) >> 30) & 1u); /* 0x3C00562A: shl edi, 2 */ 4630 if (2u) { _flag_a = recomp_flags_pack((edi << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4631 edi = edi << 2u; /* 0x3C00562A: shl edi, 2 */ 4632 ecx = eax; /* 0x3C00562D: mov ecx, eax */ 4633 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4635 ecx = ecx - edi; /* 0x3C00562F: sub ecx, edi */ 4636 _flag_k = FK_CMP; 4637 /* cmp ecx, eax */ /* 0x3C005631: cmp ecx, eax */ 4638 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4640 _flag_k = FK_CMP; 4641 esi = eax; /* 0x3C005633: mov esi, eax */ 4642 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00564C; /* 0x3C005635: je 0x3c00564c */ 4643 L_3C005637: 4644 /* test esi, esi */ /* 0x3C005637: test esi, esi */ 4645 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4646 _cf = 0; 4647 _flag_k = FK_TEST; 4648 if (TEST_Z(_flag_a, _flag_b)) goto L_3C005642; /* 0x3C005639: je 0x3c005642 */ 4649 L_3C00563B: 4650 ebx = MEM32(ecx); /* 0x3C00563B: mov ebx, dword ptr [ecx] */ 4651 MEM32(esi) = ebx; /* 0x3C00563D: mov dword ptr [esi], ebx */ 4652 ebx = MEM32(ebp + (-0x4)); /* 0x3C00563F: mov ebx, dword ptr [ebp - 4] */ 4653 L_3C005642: 4654 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4655 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4656 ecx = ecx + 4; /* 0x3C005642: add ecx, 4 */ 4657 _flag_k = FK_ADD; 4658 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4660 esi = esi + 4; /* 0x3C005645: add esi, 4 */ 4661 _flag_k = FK_ADD; 4662 /* cmp ecx, eax */ /* 0x3C005648: cmp ecx, eax */ 4663 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4665 _flag_k = FK_CMP; 4666 RECOMP_BACKEDGE(); 4667 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005637; /* 0x3C00564A: jne 0x3c005637 */ 4668 L_3C00564C: 4669 ecx = MEM32(ebx + 0x8); /* 0x3C00564C: mov ecx, dword ptr [ebx + 8] */ 4670 eax = ecx; /* 0x3C00564F: mov eax, ecx */ 4671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4673 eax = eax - edi; /* 0x3C005651: sub eax, edi */ 4674 _flag_k = FK_CMP; 4675 /* cmp edx, eax */ /* 0x3C005653: cmp edx, eax */ 4676 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4678 _flag_k = FK_CMP; 4679 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005666; /* 0x3C005655: je 0x3c005666 */ 4680 L_3C005657: 4681 esi = MEM32(eax + (-0x4)); /* 0x3C005657: mov esi, dword ptr [eax - 4] */ 4682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4684 eax = eax - 4; /* 0x3C00565A: sub eax, 4 */ 4685 _flag_k = FK_CMP; 4686 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4688 ecx = ecx - 4; /* 0x3C00565D: sub ecx, 4 */ 4689 _flag_k = FK_CMP; 4690 /* cmp eax, edx */ /* 0x3C005660: cmp eax, edx */ 4691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4693 _flag_k = FK_CMP; 4694 MEM32(ecx) = esi; /* 0x3C005662: mov dword ptr [ecx], esi */ 4695 RECOMP_BACKEDGE(); 4696 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005657; /* 0x3C005664: jne 0x3c005657 */ 4697 L_3C005666: 4698 ecx = edi + edx; /* 0x3C005666: lea ecx, [edi + edx] */ 4699 /* cmp edx, ecx */ /* 0x3C005669: cmp edx, ecx */ 4700 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4702 _flag_k = FK_CMP; 4703 eax = edx; /* 0x3C00566B: mov eax, edx */ 4704 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00567D; /* 0x3C00566D: je 0x3c00567d */ 4705 L_3C00566F: 4706 edx = MEM32(ebp + 0x10); /* 0x3C00566F: mov edx, dword ptr [ebp + 0x10] */ 4707 L_3C005672: 4708 esi = MEM32(edx); /* 0x3C005672: mov esi, dword ptr [edx] */ 4709 MEM32(eax) = esi; /* 0x3C005674: mov dword ptr [eax], esi */ 4710 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4712 eax = eax + 4; /* 0x3C005676: add eax, 4 */ 4713 _flag_k = FK_ADD; 4714 /* cmp eax, ecx */ /* 0x3C005679: cmp eax, ecx */ 4715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4717 _flag_k = FK_CMP; 4718 RECOMP_BACKEDGE(); 4719 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005672; /* 0x3C00567B: jne 0x3c005672 */ 4720 L_3C00567D: 4721 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(edi); 4722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4723 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + edi; /* 0x3C00567D: add dword ptr [ebx + 8], edi */ 4724 _flag_k = FK_ADD; 4725 L_3C005680: 4726 edi = POP32_VAL(esp); /* 0x3C005680: pop edi */ 4727 esi = POP32_VAL(esp); /* 0x3C005681: pop esi */ 4728 ebx = POP32_VAL(esp); /* 0x3C005682: pop ebx */ 4729 esp = ebp; /* 0x3C005683: mov esp, ebp */ 4730 ebp = POP32_VAL(esp); /* 0x3C005685: pop ebp */ 4731 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C005686: ret 0xc */ 4732 RECOMP_REGS_OUT(); 4733 } 4734 4735 void sub_3C005690(void) { 4736 int _fpu_cmp = 0; 4737 uint32_t _cf = 0; 4738 int _df = 1; 4739 uint32_t _flag_k = FK_NONE; 4740 uint32_t _flag_a = 0, _flag_b = 0; 4741 uint32_t _itail_tgt = 0; 4742 RECOMP_REGS_LOCALS 4743 RECOMP_ENTER(0x3C005690u); 4744 4745 L_3C005690: 4746 PUSH32(esp, ebp); /* 0x3C005690: push ebp */ 4747 ebp = esp; /* 0x3C005691: mov ebp, esp */ 4748 PUSH32(esp, ecx); /* 0x3C005693: push ecx */ 4749 PUSH32(esp, ebx); /* 0x3C005694: push ebx */ 4750 PUSH32(esp, esi); /* 0x3C005695: push esi */ 4751 esi = MEM32(ebp + 0xC); /* 0x3C005696: mov esi, dword ptr [ebp + 0xc] */ 4752 PUSH32(esp, edi); /* 0x3C005699: push edi */ 4753 edi = ecx; /* 0x3C00569A: mov edi, ecx */ 4754 ecx = ebp + 0xC; /* 0x3C00569C: lea ecx, [ebp + 0xc] */ 4755 RECOMP_ICALL(0x3C005430u); /* 0x3C00569F: call 0x3c005430 */ /* not lifted */ 4756 RECOMP_FLAGS_IN(); 4757 edx = MEM32(esi); /* 0x3C0056A4: mov edx, dword ptr [esi] */ 4758 eax = MEM32(edi + 0x8); /* 0x3C0056A6: mov eax, dword ptr [edi + 8] */ 4759 /* cmp edx, eax */ /* 0x3C0056A9: cmp edx, eax */ 4760 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4762 _flag_k = FK_CMP; 4763 MEM32(ebp + (-0x4)) = esi; /* 0x3C0056AB: mov dword ptr [ebp - 4], esi */ 4764 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0056D0; /* 0x3C0056AE: jne 0x3c0056d0 */ 4765 L_3C0056B0: 4766 eax = MEM32(esi + 0x8); /* 0x3C0056B0: mov eax, dword ptr [esi + 8] */ 4767 L_3C0056B3: 4768 ecx = MEM32(ebp + (-0x4)); /* 0x3C0056B3: mov ecx, dword ptr [ebp - 4] */ 4769 edx = MEM32(ecx + 0x4); /* 0x3C0056B6: mov edx, dword ptr [ecx + 4] */ 4770 MEM32(eax + 0x4) = edx; /* 0x3C0056B9: mov dword ptr [eax + 4], edx */ 4771 ecx = MEM32(edi + 0x4); /* 0x3C0056BC: mov ecx, dword ptr [edi + 4] */ 4772 /* cmp MEM32(ecx + 0x4), esi */ /* 0x3C0056BF: cmp dword ptr [ecx + 4], esi */ 4773 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 4774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4775 _flag_k = FK_CMP; 4776 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005753; /* 0x3C0056C2: jne 0x3c005753 */ 4777 L_3C0056C8: 4778 MEM32(ecx + 0x4) = eax; /* 0x3C0056C8: mov dword ptr [ecx + 4], eax */ 4779 goto L_3C005761; /* 0x3C0056CB: jmp 0x3c005761 */ 4780 L_3C0056D0: 4781 ecx = MEM32(esi + 0x8); /* 0x3C0056D0: mov ecx, dword ptr [esi + 8] */ 4782 /* cmp ecx, eax */ /* 0x3C0056D3: cmp ecx, eax */ 4783 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4785 _flag_k = FK_CMP; 4786 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0056DB; /* 0x3C0056D5: jne 0x3c0056db */ 4787 L_3C0056D7: 4788 eax = edx; /* 0x3C0056D7: mov eax, edx */ 4789 RECOMP_BACKEDGE(); 4790 goto L_3C0056B3; /* 0x3C0056D9: jmp 0x3c0056b3 */ 4791 L_3C0056DB: 4792 eax = MEM32(ecx); /* 0x3C0056DB: mov eax, dword ptr [ecx] */ 4793 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x3C0056DD: mov bl, byte ptr [eax + 0x11] */ 4794 /* test LO8(ebx), LO8(ebx) */ /* 0x3C0056E0: test bl, bl */ 4795 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4796 _cf = 0; 4797 _flag_k = FK_NARROW(FK_TEST, 24); 4798 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0056EF; /* 0x3C0056E2: jne 0x3c0056ef */ 4799 L_3C0056E4: 4800 ecx = eax; /* 0x3C0056E4: mov ecx, eax */ 4801 eax = MEM32(ecx); /* 0x3C0056E6: mov eax, dword ptr [ecx] */ 4802 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x3C0056E8: mov bl, byte ptr [eax + 0x11] */ 4803 /* test LO8(ebx), LO8(ebx) */ /* 0x3C0056EB: test bl, bl */ 4804 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4805 _cf = 0; 4806 _flag_k = FK_NARROW(FK_TEST, 24); 4807 RECOMP_BACKEDGE(); 4808 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0056E4; /* 0x3C0056ED: je 0x3c0056e4 */ 4809 L_3C0056EF: 4810 /* cmp ecx, esi */ /* 0x3C0056EF: cmp ecx, esi */ 4811 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 4812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4813 _flag_k = FK_CMP; 4814 eax = MEM32(ecx + 0x8); /* 0x3C0056F1: mov eax, dword ptr [ecx + 8] */ 4815 MEM32(ebp + (-0x4)) = ecx; /* 0x3C0056F4: mov dword ptr [ebp - 4], ecx */ 4816 RECOMP_BACKEDGE(); 4817 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0056B3; /* 0x3C0056F7: je 0x3c0056b3 */ 4818 L_3C0056F9: 4819 MEM32(edx + 0x4) = ecx; /* 0x3C0056F9: mov dword ptr [edx + 4], ecx */ 4820 edx = MEM32(esi); /* 0x3C0056FC: mov edx, dword ptr [esi] */ 4821 MEM32(ecx) = edx; /* 0x3C0056FE: mov dword ptr [ecx], edx */ 4822 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005700: cmp ecx, dword ptr [esi + 8] */ 4823 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4825 _flag_k = FK_CMP; 4826 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00570A; /* 0x3C005703: jne 0x3c00570a */ 4827 L_3C005705: 4828 MEM32(eax + 0x4) = ecx; /* 0x3C005705: mov dword ptr [eax + 4], ecx */ 4829 goto L_3C005721; /* 0x3C005708: jmp 0x3c005721 */ 4830 L_3C00570A: 4831 edx = MEM32(ecx + 0x4); /* 0x3C00570A: mov edx, dword ptr [ecx + 4] */ 4832 MEM32(eax + 0x4) = edx; /* 0x3C00570D: mov dword ptr [eax + 4], edx */ 4833 edx = MEM32(ecx + 0x4); /* 0x3C005710: mov edx, dword ptr [ecx + 4] */ 4834 MEM32(edx) = eax; /* 0x3C005713: mov dword ptr [edx], eax */ 4835 edx = MEM32(esi + 0x8); /* 0x3C005715: mov edx, dword ptr [esi + 8] */ 4836 MEM32(ecx + 0x8) = edx; /* 0x3C005718: mov dword ptr [ecx + 8], edx */ 4837 edx = MEM32(esi + 0x8); /* 0x3C00571B: mov edx, dword ptr [esi + 8] */ 4838 MEM32(edx + 0x4) = ecx; /* 0x3C00571E: mov dword ptr [edx + 4], ecx */ 4839 L_3C005721: 4840 edx = MEM32(edi + 0x4); /* 0x3C005721: mov edx, dword ptr [edi + 4] */ 4841 /* cmp MEM32(edx + 0x4), esi */ /* 0x3C005724: cmp dword ptr [edx + 4], esi */ 4842 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 4843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4844 _flag_k = FK_CMP; 4845 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00572E; /* 0x3C005727: jne 0x3c00572e */ 4846 L_3C005729: 4847 MEM32(edx + 0x4) = ecx; /* 0x3C005729: mov dword ptr [edx + 4], ecx */ 4848 goto L_3C00573C; /* 0x3C00572C: jmp 0x3c00573c */ 4849 L_3C00572E: 4850 edx = MEM32(esi + 0x4); /* 0x3C00572E: mov edx, dword ptr [esi + 4] */ 4851 /* cmp MEM32(edx), esi */ /* 0x3C005731: cmp dword ptr [edx], esi */ 4852 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 4853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4854 _flag_k = FK_CMP; 4855 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005739; /* 0x3C005733: jne 0x3c005739 */ 4856 L_3C005735: 4857 MEM32(edx) = ecx; /* 0x3C005735: mov dword ptr [edx], ecx */ 4858 goto L_3C00573C; /* 0x3C005737: jmp 0x3c00573c */ 4859 L_3C005739: 4860 MEM32(edx + 0x8) = ecx; /* 0x3C005739: mov dword ptr [edx + 8], ecx */ 4861 L_3C00573C: 4862 edx = MEM32(esi + 0x4); /* 0x3C00573C: mov edx, dword ptr [esi + 4] */ 4863 MEM32(ecx + 0x4) = edx; /* 0x3C00573F: mov dword ptr [ecx + 4], edx */ 4864 SET_LO8(ebx, MEM8(esi + 0x10)); /* 0x3C005742: mov bl, byte ptr [esi + 0x10] */ 4865 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005745: mov dl, byte ptr [ecx + 0x10] */ 4866 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005748: mov byte ptr [ecx + 0x10], bl */ 4867 MEM8(esi + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00574B: mov byte ptr [esi + 0x10], dl */ 4868 MEM32(ebp + (-0x4)) = esi; /* 0x3C00574E: mov dword ptr [ebp - 4], esi */ 4869 goto L_3C0057B8; /* 0x3C005751: jmp 0x3c0057b8 */ 4870 L_3C005753: 4871 ecx = MEM32(esi + 0x4); /* 0x3C005753: mov ecx, dword ptr [esi + 4] */ 4872 /* cmp MEM32(ecx), esi */ /* 0x3C005756: cmp dword ptr [ecx], esi */ 4873 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 4874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4875 _flag_k = FK_CMP; 4876 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00575E; /* 0x3C005758: jne 0x3c00575e */ 4877 L_3C00575A: 4878 MEM32(ecx) = eax; /* 0x3C00575A: mov dword ptr [ecx], eax */ 4879 goto L_3C005761; /* 0x3C00575C: jmp 0x3c005761 */ 4880 L_3C00575E: 4881 MEM32(ecx + 0x8) = eax; /* 0x3C00575E: mov dword ptr [ecx + 8], eax */ 4882 L_3C005761: 4883 ebx = MEM32(edi + 0x4); /* 0x3C005761: mov ebx, dword ptr [edi + 4] */ 4884 /* cmp MEM32(ebx), esi */ /* 0x3C005764: cmp dword ptr [ebx], esi */ 4885 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 4886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4887 _flag_k = FK_CMP; 4888 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00578B; /* 0x3C005766: jne 0x3c00578b */ 4889 L_3C005768: 4890 ecx = MEM32(esi + 0x8); /* 0x3C005768: mov ecx, dword ptr [esi + 8] */ 4891 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C00576B: cmp ecx, dword ptr [edi + 8] */ 4892 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4894 _flag_k = FK_CMP; 4895 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005775; /* 0x3C00576E: jne 0x3c005775 */ 4896 L_3C005770: 4897 edx = MEM32(esi + 0x4); /* 0x3C005770: mov edx, dword ptr [esi + 4] */ 4898 goto L_3C005789; /* 0x3C005773: jmp 0x3c005789 */ 4899 L_3C005775: 4900 ecx = MEM32(eax); /* 0x3C005775: mov ecx, dword ptr [eax] */ 4901 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x3C005777: cmp byte ptr [ecx + 0x11], 0 */ 4902 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 4903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4904 _flag_k = FK_NARROW(FK_CMP, 24); 4905 edx = eax; /* 0x3C00577B: mov edx, eax */ 4906 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005789; /* 0x3C00577D: jne 0x3c005789 */ 4907 L_3C00577F: 4908 edx = ecx; /* 0x3C00577F: mov edx, ecx */ 4909 ecx = MEM32(edx); /* 0x3C005781: mov ecx, dword ptr [edx] */ 4910 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x3C005783: cmp byte ptr [ecx + 0x11], 0 */ 4911 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 4912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4913 _flag_k = FK_NARROW(FK_CMP, 24); 4914 RECOMP_BACKEDGE(); 4915 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00577F; /* 0x3C005787: je 0x3c00577f */ 4916 L_3C005789: 4917 MEM32(ebx) = edx; /* 0x3C005789: mov dword ptr [ebx], edx */ 4918 L_3C00578B: 4919 ebx = MEM32(edi + 0x4); /* 0x3C00578B: mov ebx, dword ptr [edi + 4] */ 4920 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3C00578E: cmp dword ptr [ebx + 8], esi */ 4921 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 4922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4923 _flag_k = FK_CMP; 4924 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057B8; /* 0x3C005791: jne 0x3c0057b8 */ 4925 L_3C005793: 4926 ecx = MEM32(esi); /* 0x3C005793: mov ecx, dword ptr [esi] */ 4927 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005795: cmp ecx, dword ptr [edi + 8] */ 4928 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4930 _flag_k = FK_CMP; 4931 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00579F; /* 0x3C005798: jne 0x3c00579f */ 4932 L_3C00579A: 4933 edx = MEM32(esi + 0x4); /* 0x3C00579A: mov edx, dword ptr [esi + 4] */ 4934 goto L_3C0057B5; /* 0x3C00579D: jmp 0x3c0057b5 */ 4935 L_3C00579F: 4936 ecx = MEM32(eax + 0x8); /* 0x3C00579F: mov ecx, dword ptr [eax + 8] */ 4937 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x3C0057A2: cmp byte ptr [ecx + 0x11], 0 */ 4938 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 4939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4940 _flag_k = FK_NARROW(FK_CMP, 24); 4941 edx = eax; /* 0x3C0057A6: mov edx, eax */ 4942 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057B5; /* 0x3C0057A8: jne 0x3c0057b5 */ 4943 L_3C0057AA: 4944 edx = ecx; /* 0x3C0057AA: mov edx, ecx */ 4945 ecx = MEM32(edx + 0x8); /* 0x3C0057AC: mov ecx, dword ptr [edx + 8] */ 4946 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x3C0057AF: cmp byte ptr [ecx + 0x11], 0 */ 4947 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 4948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4949 _flag_k = FK_NARROW(FK_CMP, 24); 4950 RECOMP_BACKEDGE(); 4951 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0057AA; /* 0x3C0057B3: je 0x3c0057aa */ 4952 L_3C0057B5: 4953 MEM32(ebx + 0x8) = edx; /* 0x3C0057B5: mov dword ptr [ebx + 8], edx */ 4954 L_3C0057B8: 4955 ecx = MEM32(ebp + (-0x4)); /* 0x3C0057B8: mov ecx, dword ptr [ebp - 4] */ 4956 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057BB: mov dl, byte ptr [ecx + 0x10] */ 4957 SET_LO8(ebx, 1); /* 0x3C0057BE: mov bl, 1 */ 4958 /* cmp LO8(edx), LO8(ebx) */ /* 0x3C0057C0: cmp dl, bl */ 4959 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4961 _flag_k = FK_NARROW(FK_CMP, 24); 4962 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A25; /* 0x3C0057C2: jne 0x3c005a25 */ 4963 L_3C0057C8: 4964 edx = MEM32(edi + 0x4); /* 0x3C0057C8: mov edx, dword ptr [edi + 4] */ 4965 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C0057CB: cmp eax, dword ptr [edx + 4] */ 4966 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 4967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4968 _flag_k = FK_CMP; 4969 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057CE: je 0x3c005a22 */ 4970 L_3C0057D4: 4971 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x3C0057D4: cmp byte ptr [eax + 0x10], bl */ 4972 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4974 _flag_k = FK_NARROW(FK_CMP, 24); 4975 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057D7: jne 0x3c005a22 */ 4976 L_3C0057DD: 4977 edx = MEM32(eax + 0x4); /* 0x3C0057DD: mov edx, dword ptr [eax + 4] */ 4978 ecx = MEM32(edx); /* 0x3C0057E0: mov ecx, dword ptr [edx] */ 4979 /* cmp eax, ecx */ /* 0x3C0057E2: cmp eax, ecx */ 4980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4982 _flag_k = FK_CMP; 4983 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005854; /* 0x3C0057E4: jne 0x3c005854 */ 4984 L_3C0057E6: 4985 ecx = MEM32(edx + 0x8); /* 0x3C0057E6: mov ecx, dword ptr [edx + 8] */ 4986 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057E9: mov dl, byte ptr [ecx + 0x10] */ 4987 /* test LO8(edx), LO8(edx) */ /* 0x3C0057EC: test dl, dl */ 4988 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4989 _cf = 0; 4990 _flag_k = FK_NARROW(FK_TEST, 24); 4991 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00583B; /* 0x3C0057EE: jne 0x3c00583b */ 4992 L_3C0057F0: 4993 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0057F0: mov byte ptr [ecx + 0x10], bl */ 4994 ecx = MEM32(eax + 0x4); /* 0x3C0057F3: mov ecx, dword ptr [eax + 4] */ 4995 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0057F6: mov byte ptr [ecx + 0x10], 0 */ 4996 ecx = MEM32(eax + 0x4); /* 0x3C0057FA: mov ecx, dword ptr [eax + 4] */ 4997 edx = MEM32(ecx + 0x8); /* 0x3C0057FD: mov edx, dword ptr [ecx + 8] */ 4998 esi = MEM32(edx); /* 0x3C005800: mov esi, dword ptr [edx] */ 4999 MEM32(ecx + 0x8) = esi; /* 0x3C005802: mov dword ptr [ecx + 8], esi */ 5000 esi = MEM32(edx); /* 0x3C005805: mov esi, dword ptr [edx] */ 5001 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005807: cmp esi, dword ptr [edi + 8] */ 5002 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5004 _flag_k = FK_CMP; 5005 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00580F; /* 0x3C00580A: je 0x3c00580f */ 5006 L_3C00580C: 5007 MEM32(esi + 0x4) = ecx; /* 0x3C00580C: mov dword ptr [esi + 4], ecx */ 5008 L_3C00580F: 5009 esi = MEM32(ecx + 0x4); /* 0x3C00580F: mov esi, dword ptr [ecx + 4] */ 5010 MEM32(edx + 0x4) = esi; /* 0x3C005812: mov dword ptr [edx + 4], esi */ 5011 esi = MEM32(edi + 0x4); /* 0x3C005815: mov esi, dword ptr [edi + 4] */ 5012 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005818: cmp ecx, dword ptr [esi + 4] */ 5013 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5015 _flag_k = FK_CMP; 5016 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005822; /* 0x3C00581B: jne 0x3c005822 */ 5017 L_3C00581D: 5018 MEM32(esi + 0x4) = edx; /* 0x3C00581D: mov dword ptr [esi + 4], edx */ 5019 goto L_3C005830; /* 0x3C005820: jmp 0x3c005830 */ 5020 L_3C005822: 5021 esi = MEM32(ecx + 0x4); /* 0x3C005822: mov esi, dword ptr [ecx + 4] */ 5022 /* cmp ecx, MEM32(esi) */ /* 0x3C005825: cmp ecx, dword ptr [esi] */ 5023 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5025 _flag_k = FK_CMP; 5026 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00582D; /* 0x3C005827: jne 0x3c00582d */ 5027 L_3C005829: 5028 MEM32(esi) = edx; /* 0x3C005829: mov dword ptr [esi], edx */ 5029 goto L_3C005830; /* 0x3C00582B: jmp 0x3c005830 */ 5030 L_3C00582D: 5031 MEM32(esi + 0x8) = edx; /* 0x3C00582D: mov dword ptr [esi + 8], edx */ 5032 L_3C005830: 5033 MEM32(edx) = ecx; /* 0x3C005830: mov dword ptr [edx], ecx */ 5034 MEM32(ecx + 0x4) = edx; /* 0x3C005832: mov dword ptr [ecx + 4], edx */ 5035 edx = MEM32(eax + 0x4); /* 0x3C005835: mov edx, dword ptr [eax + 4] */ 5036 ecx = MEM32(edx + 0x8); /* 0x3C005838: mov ecx, dword ptr [edx + 8] */ 5037 L_3C00583B: 5038 edx = MEM32(ecx); /* 0x3C00583B: mov edx, dword ptr [ecx] */ 5039 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C00583D: cmp byte ptr [edx + 0x10], bl */ 5040 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5042 _flag_k = FK_NARROW(FK_CMP, 24); 5043 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C005840: jne 0x3c0058d6 */ 5044 L_3C005846: 5045 edx = MEM32(ecx + 0x8); /* 0x3C005846: mov edx, dword ptr [ecx + 8] */ 5046 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005849: cmp byte ptr [edx + 0x10], bl */ 5047 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5049 _flag_k = FK_NARROW(FK_CMP, 24); 5050 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C00584C: jne 0x3c0058d6 */ 5051 L_3C005852: 5052 goto L_3C0058BE; /* 0x3C005852: jmp 0x3c0058be */ 5053 L_3C005854: 5054 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005854: mov dl, byte ptr [ecx + 0x10] */ 5055 /* test LO8(edx), LO8(edx) */ /* 0x3C005857: test dl, dl */ 5056 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5057 _cf = 0; 5058 _flag_k = FK_NARROW(FK_TEST, 24); 5059 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0058A7; /* 0x3C005859: jne 0x3c0058a7 */ 5060 L_3C00585B: 5061 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00585B: mov byte ptr [ecx + 0x10], bl */ 5062 ecx = MEM32(eax + 0x4); /* 0x3C00585E: mov ecx, dword ptr [eax + 4] */ 5063 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005861: mov byte ptr [ecx + 0x10], 0 */ 5064 ecx = MEM32(eax + 0x4); /* 0x3C005865: mov ecx, dword ptr [eax + 4] */ 5065 edx = MEM32(ecx); /* 0x3C005868: mov edx, dword ptr [ecx] */ 5066 esi = MEM32(edx + 0x8); /* 0x3C00586A: mov esi, dword ptr [edx + 8] */ 5067 MEM32(ecx) = esi; /* 0x3C00586D: mov dword ptr [ecx], esi */ 5068 esi = MEM32(edx + 0x8); /* 0x3C00586F: mov esi, dword ptr [edx + 8] */ 5069 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005872: cmp esi, dword ptr [edi + 8] */ 5070 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5072 _flag_k = FK_CMP; 5073 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00587A; /* 0x3C005875: je 0x3c00587a */ 5074 L_3C005877: 5075 MEM32(esi + 0x4) = ecx; /* 0x3C005877: mov dword ptr [esi + 4], ecx */ 5076 L_3C00587A: 5077 esi = MEM32(ecx + 0x4); /* 0x3C00587A: mov esi, dword ptr [ecx + 4] */ 5078 MEM32(edx + 0x4) = esi; /* 0x3C00587D: mov dword ptr [edx + 4], esi */ 5079 esi = MEM32(edi + 0x4); /* 0x3C005880: mov esi, dword ptr [edi + 4] */ 5080 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005883: cmp ecx, dword ptr [esi + 4] */ 5081 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5083 _flag_k = FK_CMP; 5084 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00588D; /* 0x3C005886: jne 0x3c00588d */ 5085 L_3C005888: 5086 MEM32(esi + 0x4) = edx; /* 0x3C005888: mov dword ptr [esi + 4], edx */ 5087 goto L_3C00589C; /* 0x3C00588B: jmp 0x3c00589c */ 5088 L_3C00588D: 5089 esi = MEM32(ecx + 0x4); /* 0x3C00588D: mov esi, dword ptr [ecx + 4] */ 5090 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005890: cmp ecx, dword ptr [esi + 8] */ 5091 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5093 _flag_k = FK_CMP; 5094 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00589A; /* 0x3C005893: jne 0x3c00589a */ 5095 L_3C005895: 5096 MEM32(esi + 0x8) = edx; /* 0x3C005895: mov dword ptr [esi + 8], edx */ 5097 goto L_3C00589C; /* 0x3C005898: jmp 0x3c00589c */ 5098 L_3C00589A: 5099 MEM32(esi) = edx; /* 0x3C00589A: mov dword ptr [esi], edx */ 5100 L_3C00589C: 5101 MEM32(edx + 0x8) = ecx; /* 0x3C00589C: mov dword ptr [edx + 8], ecx */ 5102 MEM32(ecx + 0x4) = edx; /* 0x3C00589F: mov dword ptr [ecx + 4], edx */ 5103 edx = MEM32(eax + 0x4); /* 0x3C0058A2: mov edx, dword ptr [eax + 4] */ 5104 ecx = MEM32(edx); /* 0x3C0058A5: mov ecx, dword ptr [edx] */ 5105 L_3C0058A7: 5106 edx = MEM32(ecx + 0x8); /* 0x3C0058A7: mov edx, dword ptr [ecx + 8] */ 5107 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058AA: cmp byte ptr [edx + 0x10], bl */ 5108 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5110 _flag_k = FK_NARROW(FK_CMP, 24); 5111 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058AD: jne 0x3c005983 */ 5112 L_3C0058B3: 5113 edx = MEM32(ecx); /* 0x3C0058B3: mov edx, dword ptr [ecx] */ 5114 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058B5: cmp byte ptr [edx + 0x10], bl */ 5115 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5117 _flag_k = FK_NARROW(FK_CMP, 24); 5118 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058B8: jne 0x3c005983 */ 5119 L_3C0058BE: 5120 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058BE: mov byte ptr [ecx + 0x10], 0 */ 5121 ecx = MEM32(edi + 0x4); /* 0x3C0058C2: mov ecx, dword ptr [edi + 4] */ 5122 eax = MEM32(eax + 0x4); /* 0x3C0058C5: mov eax, dword ptr [eax + 4] */ 5123 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C0058C8: cmp eax, dword ptr [ecx + 4] */ 5124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5126 _flag_k = FK_CMP; 5127 RECOMP_BACKEDGE(); 5128 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057D4; /* 0x3C0058CB: jne 0x3c0057d4 */ 5129 L_3C0058D1: 5130 goto L_3C005A22; /* 0x3C0058D1: jmp 0x3c005a22 */ 5131 L_3C0058D6: 5132 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 5133 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 5134 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5136 _flag_k = FK_NARROW(FK_CMP, 24); 5137 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 5138 L_3C0058DE: 5139 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 5140 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 5141 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 5142 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 5143 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 5144 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 5145 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 5146 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 5147 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5149 _flag_k = FK_CMP; 5150 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 5151 L_3C0058F6: 5152 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 5153 L_3C0058F9: 5154 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 5155 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 5156 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 5157 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 5158 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5160 _flag_k = FK_CMP; 5161 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 5162 L_3C005907: 5163 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 5164 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 5165 L_3C00590C: 5166 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 5167 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 5168 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5170 _flag_k = FK_CMP; 5171 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 5172 L_3C005914: 5173 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 5174 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 5175 L_3C005919: 5176 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 5177 L_3C00591B: 5178 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 5179 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 5180 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 5181 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 5182 L_3C005927: 5183 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 5184 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 5185 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 5186 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 5187 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 5188 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 5189 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 5190 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 5191 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 5192 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 5193 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 5194 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 5195 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 5196 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5198 _flag_k = FK_CMP; 5199 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 5200 L_3C00594E: 5201 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 5202 L_3C005951: 5203 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 5204 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 5205 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 5206 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 5207 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5209 _flag_k = FK_CMP; 5210 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 5211 L_3C00595F: 5212 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 5213 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 5214 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 5215 L_3C005969: 5216 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 5217 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 5218 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5220 _flag_k = FK_CMP; 5221 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 5222 L_3C005970: 5223 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 5224 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 5225 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 5226 L_3C005979: 5227 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 5228 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 5229 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 5230 L_3C005983: 5231 edx = MEM32(ecx); /* 0x3C005983: mov edx, dword ptr [ecx] */ 5232 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005985: cmp byte ptr [edx + 0x10], bl */ 5233 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5235 _flag_k = FK_NARROW(FK_CMP, 24); 5236 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059D1; /* 0x3C005988: jne 0x3c0059d1 */ 5237 L_3C00598A: 5238 edx = MEM32(ecx + 0x8); /* 0x3C00598A: mov edx, dword ptr [ecx + 8] */ 5239 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00598D: mov byte ptr [edx + 0x10], bl */ 5240 edx = MEM32(ecx + 0x8); /* 0x3C005990: mov edx, dword ptr [ecx + 8] */ 5241 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005993: mov byte ptr [ecx + 0x10], 0 */ 5242 esi = MEM32(edx); /* 0x3C005997: mov esi, dword ptr [edx] */ 5243 MEM32(ecx + 0x8) = esi; /* 0x3C005999: mov dword ptr [ecx + 8], esi */ 5244 esi = MEM32(edx); /* 0x3C00599C: mov esi, dword ptr [edx] */ 5245 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C00599E: cmp esi, dword ptr [edi + 8] */ 5246 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5248 _flag_k = FK_CMP; 5249 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059A6; /* 0x3C0059A1: je 0x3c0059a6 */ 5250 L_3C0059A3: 5251 MEM32(esi + 0x4) = ecx; /* 0x3C0059A3: mov dword ptr [esi + 4], ecx */ 5252 L_3C0059A6: 5253 esi = MEM32(ecx + 0x4); /* 0x3C0059A6: mov esi, dword ptr [ecx + 4] */ 5254 MEM32(edx + 0x4) = esi; /* 0x3C0059A9: mov dword ptr [edx + 4], esi */ 5255 esi = MEM32(edi + 0x4); /* 0x3C0059AC: mov esi, dword ptr [edi + 4] */ 5256 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C0059AF: cmp ecx, dword ptr [esi + 4] */ 5257 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5259 _flag_k = FK_CMP; 5260 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059B9; /* 0x3C0059B2: jne 0x3c0059b9 */ 5261 L_3C0059B4: 5262 MEM32(esi + 0x4) = edx; /* 0x3C0059B4: mov dword ptr [esi + 4], edx */ 5263 goto L_3C0059C7; /* 0x3C0059B7: jmp 0x3c0059c7 */ 5264 L_3C0059B9: 5265 esi = MEM32(ecx + 0x4); /* 0x3C0059B9: mov esi, dword ptr [ecx + 4] */ 5266 /* cmp ecx, MEM32(esi) */ /* 0x3C0059BC: cmp ecx, dword ptr [esi] */ 5267 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5269 _flag_k = FK_CMP; 5270 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059C4; /* 0x3C0059BE: jne 0x3c0059c4 */ 5271 L_3C0059C0: 5272 MEM32(esi) = edx; /* 0x3C0059C0: mov dword ptr [esi], edx */ 5273 goto L_3C0059C7; /* 0x3C0059C2: jmp 0x3c0059c7 */ 5274 L_3C0059C4: 5275 MEM32(esi + 0x8) = edx; /* 0x3C0059C4: mov dword ptr [esi + 8], edx */ 5276 L_3C0059C7: 5277 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 5278 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 5279 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 5280 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 5281 L_3C0059D1: 5282 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 5283 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 5284 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 5285 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 5286 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 5287 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 5288 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 5289 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 5290 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 5291 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 5292 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 5293 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 5294 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 5295 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5297 _flag_k = FK_CMP; 5298 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 5299 L_3C0059F7: 5300 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 5301 L_3C0059FA: 5302 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 5303 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 5304 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 5305 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 5306 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5308 _flag_k = FK_CMP; 5309 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 5310 L_3C005A08: 5311 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 5312 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 5313 L_3C005A0D: 5314 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 5315 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 5316 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5318 _flag_k = FK_CMP; 5319 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 5320 L_3C005A15: 5321 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 5322 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 5323 L_3C005A1A: 5324 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 5325 L_3C005A1C: 5326 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 5327 L_3C005A1F: 5328 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 5329 L_3C005A22: 5330 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 5331 L_3C005A25: 5332 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 5333 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 5334 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 5335 RECOMP_FLAGS_IN(); 5336 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 5337 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 5338 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5340 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 5341 _flag_k = FK_ADD; 5342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5343 eax = eax - 1; /* 0x3C005A37: dec eax */ 5344 _flag_k = FK_DEC; 5345 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 5346 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 5347 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 5348 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 5349 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 5350 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 5351 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 5352 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 5353 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 5354 RECOMP_REGS_OUT(); 5355 } 5356 5357 void sub_3C005761(void) { 5358 int _fpu_cmp = 0; 5359 uint32_t _cf = 0; 5360 int _df = 1; 5361 uint32_t _flag_k = FK_NONE; 5362 uint32_t _flag_a = 0, _flag_b = 0; 5363 uint32_t _itail_tgt = 0; 5364 RECOMP_REGS_LOCALS 5365 RECOMP_ENTER(0x3C005761u); 5366 5367 L_3C005761: 5368 ebx = MEM32(edi + 0x4); /* 0x3C005761: mov ebx, dword ptr [edi + 4] */ 5369 /* cmp MEM32(ebx), esi */ /* 0x3C005764: cmp dword ptr [ebx], esi */ 5370 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 5371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5372 _flag_k = FK_CMP; 5373 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00578B; /* 0x3C005766: jne 0x3c00578b */ 5374 L_3C005768: 5375 ecx = MEM32(esi + 0x8); /* 0x3C005768: mov ecx, dword ptr [esi + 8] */ 5376 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C00576B: cmp ecx, dword ptr [edi + 8] */ 5377 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5379 _flag_k = FK_CMP; 5380 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005775; /* 0x3C00576E: jne 0x3c005775 */ 5381 L_3C005770: 5382 edx = MEM32(esi + 0x4); /* 0x3C005770: mov edx, dword ptr [esi + 4] */ 5383 goto L_3C005789; /* 0x3C005773: jmp 0x3c005789 */ 5384 L_3C005775: 5385 ecx = MEM32(eax); /* 0x3C005775: mov ecx, dword ptr [eax] */ 5386 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x3C005777: cmp byte ptr [ecx + 0x11], 0 */ 5387 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 5388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5389 _flag_k = FK_NARROW(FK_CMP, 24); 5390 edx = eax; /* 0x3C00577B: mov edx, eax */ 5391 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005789; /* 0x3C00577D: jne 0x3c005789 */ 5392 L_3C00577F: 5393 edx = ecx; /* 0x3C00577F: mov edx, ecx */ 5394 ecx = MEM32(edx); /* 0x3C005781: mov ecx, dword ptr [edx] */ 5395 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x3C005783: cmp byte ptr [ecx + 0x11], 0 */ 5396 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 5397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5398 _flag_k = FK_NARROW(FK_CMP, 24); 5399 RECOMP_BACKEDGE(); 5400 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00577F; /* 0x3C005787: je 0x3c00577f */ 5401 L_3C005789: 5402 MEM32(ebx) = edx; /* 0x3C005789: mov dword ptr [ebx], edx */ 5403 L_3C00578B: 5404 ebx = MEM32(edi + 0x4); /* 0x3C00578B: mov ebx, dword ptr [edi + 4] */ 5405 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3C00578E: cmp dword ptr [ebx + 8], esi */ 5406 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 5407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5408 _flag_k = FK_CMP; 5409 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057B8; /* 0x3C005791: jne 0x3c0057b8 */ 5410 L_3C005793: 5411 ecx = MEM32(esi); /* 0x3C005793: mov ecx, dword ptr [esi] */ 5412 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005795: cmp ecx, dword ptr [edi + 8] */ 5413 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5415 _flag_k = FK_CMP; 5416 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00579F; /* 0x3C005798: jne 0x3c00579f */ 5417 L_3C00579A: 5418 edx = MEM32(esi + 0x4); /* 0x3C00579A: mov edx, dword ptr [esi + 4] */ 5419 goto L_3C0057B5; /* 0x3C00579D: jmp 0x3c0057b5 */ 5420 L_3C00579F: 5421 ecx = MEM32(eax + 0x8); /* 0x3C00579F: mov ecx, dword ptr [eax + 8] */ 5422 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x3C0057A2: cmp byte ptr [ecx + 0x11], 0 */ 5423 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 5424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5425 _flag_k = FK_NARROW(FK_CMP, 24); 5426 edx = eax; /* 0x3C0057A6: mov edx, eax */ 5427 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057B5; /* 0x3C0057A8: jne 0x3c0057b5 */ 5428 L_3C0057AA: 5429 edx = ecx; /* 0x3C0057AA: mov edx, ecx */ 5430 ecx = MEM32(edx + 0x8); /* 0x3C0057AC: mov ecx, dword ptr [edx + 8] */ 5431 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x3C0057AF: cmp byte ptr [ecx + 0x11], 0 */ 5432 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 5433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5434 _flag_k = FK_NARROW(FK_CMP, 24); 5435 RECOMP_BACKEDGE(); 5436 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0057AA; /* 0x3C0057B3: je 0x3c0057aa */ 5437 L_3C0057B5: 5438 MEM32(ebx + 0x8) = edx; /* 0x3C0057B5: mov dword ptr [ebx + 8], edx */ 5439 L_3C0057B8: 5440 ecx = MEM32(ebp + (-0x4)); /* 0x3C0057B8: mov ecx, dword ptr [ebp - 4] */ 5441 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057BB: mov dl, byte ptr [ecx + 0x10] */ 5442 SET_LO8(ebx, 1); /* 0x3C0057BE: mov bl, 1 */ 5443 /* cmp LO8(edx), LO8(ebx) */ /* 0x3C0057C0: cmp dl, bl */ 5444 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5446 _flag_k = FK_NARROW(FK_CMP, 24); 5447 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A25; /* 0x3C0057C2: jne 0x3c005a25 */ 5448 L_3C0057C8: 5449 edx = MEM32(edi + 0x4); /* 0x3C0057C8: mov edx, dword ptr [edi + 4] */ 5450 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C0057CB: cmp eax, dword ptr [edx + 4] */ 5451 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5453 _flag_k = FK_CMP; 5454 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057CE: je 0x3c005a22 */ 5455 L_3C0057D4: 5456 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x3C0057D4: cmp byte ptr [eax + 0x10], bl */ 5457 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5459 _flag_k = FK_NARROW(FK_CMP, 24); 5460 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057D7: jne 0x3c005a22 */ 5461 L_3C0057DD: 5462 edx = MEM32(eax + 0x4); /* 0x3C0057DD: mov edx, dword ptr [eax + 4] */ 5463 ecx = MEM32(edx); /* 0x3C0057E0: mov ecx, dword ptr [edx] */ 5464 /* cmp eax, ecx */ /* 0x3C0057E2: cmp eax, ecx */ 5465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5467 _flag_k = FK_CMP; 5468 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005854; /* 0x3C0057E4: jne 0x3c005854 */ 5469 L_3C0057E6: 5470 ecx = MEM32(edx + 0x8); /* 0x3C0057E6: mov ecx, dword ptr [edx + 8] */ 5471 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057E9: mov dl, byte ptr [ecx + 0x10] */ 5472 /* test LO8(edx), LO8(edx) */ /* 0x3C0057EC: test dl, dl */ 5473 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5474 _cf = 0; 5475 _flag_k = FK_NARROW(FK_TEST, 24); 5476 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00583B; /* 0x3C0057EE: jne 0x3c00583b */ 5477 L_3C0057F0: 5478 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0057F0: mov byte ptr [ecx + 0x10], bl */ 5479 ecx = MEM32(eax + 0x4); /* 0x3C0057F3: mov ecx, dword ptr [eax + 4] */ 5480 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0057F6: mov byte ptr [ecx + 0x10], 0 */ 5481 ecx = MEM32(eax + 0x4); /* 0x3C0057FA: mov ecx, dword ptr [eax + 4] */ 5482 edx = MEM32(ecx + 0x8); /* 0x3C0057FD: mov edx, dword ptr [ecx + 8] */ 5483 esi = MEM32(edx); /* 0x3C005800: mov esi, dword ptr [edx] */ 5484 MEM32(ecx + 0x8) = esi; /* 0x3C005802: mov dword ptr [ecx + 8], esi */ 5485 esi = MEM32(edx); /* 0x3C005805: mov esi, dword ptr [edx] */ 5486 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005807: cmp esi, dword ptr [edi + 8] */ 5487 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5489 _flag_k = FK_CMP; 5490 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00580F; /* 0x3C00580A: je 0x3c00580f */ 5491 L_3C00580C: 5492 MEM32(esi + 0x4) = ecx; /* 0x3C00580C: mov dword ptr [esi + 4], ecx */ 5493 L_3C00580F: 5494 esi = MEM32(ecx + 0x4); /* 0x3C00580F: mov esi, dword ptr [ecx + 4] */ 5495 MEM32(edx + 0x4) = esi; /* 0x3C005812: mov dword ptr [edx + 4], esi */ 5496 esi = MEM32(edi + 0x4); /* 0x3C005815: mov esi, dword ptr [edi + 4] */ 5497 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005818: cmp ecx, dword ptr [esi + 4] */ 5498 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5500 _flag_k = FK_CMP; 5501 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005822; /* 0x3C00581B: jne 0x3c005822 */ 5502 L_3C00581D: 5503 MEM32(esi + 0x4) = edx; /* 0x3C00581D: mov dword ptr [esi + 4], edx */ 5504 goto L_3C005830; /* 0x3C005820: jmp 0x3c005830 */ 5505 L_3C005822: 5506 esi = MEM32(ecx + 0x4); /* 0x3C005822: mov esi, dword ptr [ecx + 4] */ 5507 /* cmp ecx, MEM32(esi) */ /* 0x3C005825: cmp ecx, dword ptr [esi] */ 5508 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5510 _flag_k = FK_CMP; 5511 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00582D; /* 0x3C005827: jne 0x3c00582d */ 5512 L_3C005829: 5513 MEM32(esi) = edx; /* 0x3C005829: mov dword ptr [esi], edx */ 5514 goto L_3C005830; /* 0x3C00582B: jmp 0x3c005830 */ 5515 L_3C00582D: 5516 MEM32(esi + 0x8) = edx; /* 0x3C00582D: mov dword ptr [esi + 8], edx */ 5517 L_3C005830: 5518 MEM32(edx) = ecx; /* 0x3C005830: mov dword ptr [edx], ecx */ 5519 MEM32(ecx + 0x4) = edx; /* 0x3C005832: mov dword ptr [ecx + 4], edx */ 5520 edx = MEM32(eax + 0x4); /* 0x3C005835: mov edx, dword ptr [eax + 4] */ 5521 ecx = MEM32(edx + 0x8); /* 0x3C005838: mov ecx, dword ptr [edx + 8] */ 5522 L_3C00583B: 5523 edx = MEM32(ecx); /* 0x3C00583B: mov edx, dword ptr [ecx] */ 5524 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C00583D: cmp byte ptr [edx + 0x10], bl */ 5525 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5527 _flag_k = FK_NARROW(FK_CMP, 24); 5528 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C005840: jne 0x3c0058d6 */ 5529 L_3C005846: 5530 edx = MEM32(ecx + 0x8); /* 0x3C005846: mov edx, dword ptr [ecx + 8] */ 5531 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005849: cmp byte ptr [edx + 0x10], bl */ 5532 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5534 _flag_k = FK_NARROW(FK_CMP, 24); 5535 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C00584C: jne 0x3c0058d6 */ 5536 L_3C005852: 5537 goto L_3C0058BE; /* 0x3C005852: jmp 0x3c0058be */ 5538 L_3C005854: 5539 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005854: mov dl, byte ptr [ecx + 0x10] */ 5540 /* test LO8(edx), LO8(edx) */ /* 0x3C005857: test dl, dl */ 5541 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5542 _cf = 0; 5543 _flag_k = FK_NARROW(FK_TEST, 24); 5544 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0058A7; /* 0x3C005859: jne 0x3c0058a7 */ 5545 L_3C00585B: 5546 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00585B: mov byte ptr [ecx + 0x10], bl */ 5547 ecx = MEM32(eax + 0x4); /* 0x3C00585E: mov ecx, dword ptr [eax + 4] */ 5548 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005861: mov byte ptr [ecx + 0x10], 0 */ 5549 ecx = MEM32(eax + 0x4); /* 0x3C005865: mov ecx, dword ptr [eax + 4] */ 5550 edx = MEM32(ecx); /* 0x3C005868: mov edx, dword ptr [ecx] */ 5551 esi = MEM32(edx + 0x8); /* 0x3C00586A: mov esi, dword ptr [edx + 8] */ 5552 MEM32(ecx) = esi; /* 0x3C00586D: mov dword ptr [ecx], esi */ 5553 esi = MEM32(edx + 0x8); /* 0x3C00586F: mov esi, dword ptr [edx + 8] */ 5554 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005872: cmp esi, dword ptr [edi + 8] */ 5555 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5557 _flag_k = FK_CMP; 5558 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00587A; /* 0x3C005875: je 0x3c00587a */ 5559 L_3C005877: 5560 MEM32(esi + 0x4) = ecx; /* 0x3C005877: mov dword ptr [esi + 4], ecx */ 5561 L_3C00587A: 5562 esi = MEM32(ecx + 0x4); /* 0x3C00587A: mov esi, dword ptr [ecx + 4] */ 5563 MEM32(edx + 0x4) = esi; /* 0x3C00587D: mov dword ptr [edx + 4], esi */ 5564 esi = MEM32(edi + 0x4); /* 0x3C005880: mov esi, dword ptr [edi + 4] */ 5565 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005883: cmp ecx, dword ptr [esi + 4] */ 5566 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5568 _flag_k = FK_CMP; 5569 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00588D; /* 0x3C005886: jne 0x3c00588d */ 5570 L_3C005888: 5571 MEM32(esi + 0x4) = edx; /* 0x3C005888: mov dword ptr [esi + 4], edx */ 5572 goto L_3C00589C; /* 0x3C00588B: jmp 0x3c00589c */ 5573 L_3C00588D: 5574 esi = MEM32(ecx + 0x4); /* 0x3C00588D: mov esi, dword ptr [ecx + 4] */ 5575 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005890: cmp ecx, dword ptr [esi + 8] */ 5576 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5578 _flag_k = FK_CMP; 5579 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00589A; /* 0x3C005893: jne 0x3c00589a */ 5580 L_3C005895: 5581 MEM32(esi + 0x8) = edx; /* 0x3C005895: mov dword ptr [esi + 8], edx */ 5582 goto L_3C00589C; /* 0x3C005898: jmp 0x3c00589c */ 5583 L_3C00589A: 5584 MEM32(esi) = edx; /* 0x3C00589A: mov dword ptr [esi], edx */ 5585 L_3C00589C: 5586 MEM32(edx + 0x8) = ecx; /* 0x3C00589C: mov dword ptr [edx + 8], ecx */ 5587 MEM32(ecx + 0x4) = edx; /* 0x3C00589F: mov dword ptr [ecx + 4], edx */ 5588 edx = MEM32(eax + 0x4); /* 0x3C0058A2: mov edx, dword ptr [eax + 4] */ 5589 ecx = MEM32(edx); /* 0x3C0058A5: mov ecx, dword ptr [edx] */ 5590 L_3C0058A7: 5591 edx = MEM32(ecx + 0x8); /* 0x3C0058A7: mov edx, dword ptr [ecx + 8] */ 5592 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058AA: cmp byte ptr [edx + 0x10], bl */ 5593 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5595 _flag_k = FK_NARROW(FK_CMP, 24); 5596 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058AD: jne 0x3c005983 */ 5597 L_3C0058B3: 5598 edx = MEM32(ecx); /* 0x3C0058B3: mov edx, dword ptr [ecx] */ 5599 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058B5: cmp byte ptr [edx + 0x10], bl */ 5600 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5602 _flag_k = FK_NARROW(FK_CMP, 24); 5603 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058B8: jne 0x3c005983 */ 5604 L_3C0058BE: 5605 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058BE: mov byte ptr [ecx + 0x10], 0 */ 5606 ecx = MEM32(edi + 0x4); /* 0x3C0058C2: mov ecx, dword ptr [edi + 4] */ 5607 eax = MEM32(eax + 0x4); /* 0x3C0058C5: mov eax, dword ptr [eax + 4] */ 5608 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C0058C8: cmp eax, dword ptr [ecx + 4] */ 5609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5611 _flag_k = FK_CMP; 5612 RECOMP_BACKEDGE(); 5613 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057D4; /* 0x3C0058CB: jne 0x3c0057d4 */ 5614 L_3C0058D1: 5615 goto L_3C005A22; /* 0x3C0058D1: jmp 0x3c005a22 */ 5616 L_3C0058D6: 5617 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 5618 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 5619 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5620 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5621 _flag_k = FK_NARROW(FK_CMP, 24); 5622 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 5623 L_3C0058DE: 5624 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 5625 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 5626 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 5627 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 5628 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 5629 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 5630 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 5631 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 5632 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5634 _flag_k = FK_CMP; 5635 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 5636 L_3C0058F6: 5637 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 5638 L_3C0058F9: 5639 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 5640 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 5641 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 5642 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 5643 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5645 _flag_k = FK_CMP; 5646 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 5647 L_3C005907: 5648 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 5649 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 5650 L_3C00590C: 5651 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 5652 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 5653 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5655 _flag_k = FK_CMP; 5656 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 5657 L_3C005914: 5658 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 5659 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 5660 L_3C005919: 5661 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 5662 L_3C00591B: 5663 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 5664 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 5665 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 5666 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 5667 L_3C005927: 5668 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 5669 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 5670 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 5671 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 5672 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 5673 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 5674 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 5675 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 5676 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 5677 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 5678 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 5679 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 5680 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 5681 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5683 _flag_k = FK_CMP; 5684 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 5685 L_3C00594E: 5686 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 5687 L_3C005951: 5688 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 5689 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 5690 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 5691 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 5692 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5694 _flag_k = FK_CMP; 5695 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 5696 L_3C00595F: 5697 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 5698 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 5699 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 5700 L_3C005969: 5701 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 5702 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 5703 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5705 _flag_k = FK_CMP; 5706 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 5707 L_3C005970: 5708 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 5709 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 5710 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 5711 L_3C005979: 5712 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 5713 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 5714 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 5715 L_3C005983: 5716 edx = MEM32(ecx); /* 0x3C005983: mov edx, dword ptr [ecx] */ 5717 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005985: cmp byte ptr [edx + 0x10], bl */ 5718 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5720 _flag_k = FK_NARROW(FK_CMP, 24); 5721 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059D1; /* 0x3C005988: jne 0x3c0059d1 */ 5722 L_3C00598A: 5723 edx = MEM32(ecx + 0x8); /* 0x3C00598A: mov edx, dword ptr [ecx + 8] */ 5724 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00598D: mov byte ptr [edx + 0x10], bl */ 5725 edx = MEM32(ecx + 0x8); /* 0x3C005990: mov edx, dword ptr [ecx + 8] */ 5726 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005993: mov byte ptr [ecx + 0x10], 0 */ 5727 esi = MEM32(edx); /* 0x3C005997: mov esi, dword ptr [edx] */ 5728 MEM32(ecx + 0x8) = esi; /* 0x3C005999: mov dword ptr [ecx + 8], esi */ 5729 esi = MEM32(edx); /* 0x3C00599C: mov esi, dword ptr [edx] */ 5730 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C00599E: cmp esi, dword ptr [edi + 8] */ 5731 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5733 _flag_k = FK_CMP; 5734 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059A6; /* 0x3C0059A1: je 0x3c0059a6 */ 5735 L_3C0059A3: 5736 MEM32(esi + 0x4) = ecx; /* 0x3C0059A3: mov dword ptr [esi + 4], ecx */ 5737 L_3C0059A6: 5738 esi = MEM32(ecx + 0x4); /* 0x3C0059A6: mov esi, dword ptr [ecx + 4] */ 5739 MEM32(edx + 0x4) = esi; /* 0x3C0059A9: mov dword ptr [edx + 4], esi */ 5740 esi = MEM32(edi + 0x4); /* 0x3C0059AC: mov esi, dword ptr [edi + 4] */ 5741 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C0059AF: cmp ecx, dword ptr [esi + 4] */ 5742 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5744 _flag_k = FK_CMP; 5745 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059B9; /* 0x3C0059B2: jne 0x3c0059b9 */ 5746 L_3C0059B4: 5747 MEM32(esi + 0x4) = edx; /* 0x3C0059B4: mov dword ptr [esi + 4], edx */ 5748 goto L_3C0059C7; /* 0x3C0059B7: jmp 0x3c0059c7 */ 5749 L_3C0059B9: 5750 esi = MEM32(ecx + 0x4); /* 0x3C0059B9: mov esi, dword ptr [ecx + 4] */ 5751 /* cmp ecx, MEM32(esi) */ /* 0x3C0059BC: cmp ecx, dword ptr [esi] */ 5752 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5754 _flag_k = FK_CMP; 5755 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059C4; /* 0x3C0059BE: jne 0x3c0059c4 */ 5756 L_3C0059C0: 5757 MEM32(esi) = edx; /* 0x3C0059C0: mov dword ptr [esi], edx */ 5758 goto L_3C0059C7; /* 0x3C0059C2: jmp 0x3c0059c7 */ 5759 L_3C0059C4: 5760 MEM32(esi + 0x8) = edx; /* 0x3C0059C4: mov dword ptr [esi + 8], edx */ 5761 L_3C0059C7: 5762 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 5763 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 5764 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 5765 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 5766 L_3C0059D1: 5767 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 5768 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 5769 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 5770 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 5771 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 5772 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 5773 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 5774 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 5775 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 5776 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 5777 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 5778 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 5779 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 5780 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5782 _flag_k = FK_CMP; 5783 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 5784 L_3C0059F7: 5785 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 5786 L_3C0059FA: 5787 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 5788 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 5789 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 5790 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 5791 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5793 _flag_k = FK_CMP; 5794 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 5795 L_3C005A08: 5796 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 5797 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 5798 L_3C005A0D: 5799 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 5800 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 5801 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5803 _flag_k = FK_CMP; 5804 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 5805 L_3C005A15: 5806 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 5807 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 5808 L_3C005A1A: 5809 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 5810 L_3C005A1C: 5811 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 5812 L_3C005A1F: 5813 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 5814 L_3C005A22: 5815 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 5816 L_3C005A25: 5817 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 5818 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 5819 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 5820 RECOMP_FLAGS_IN(); 5821 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 5822 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 5823 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5824 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5825 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 5826 _flag_k = FK_ADD; 5827 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5828 eax = eax - 1; /* 0x3C005A37: dec eax */ 5829 _flag_k = FK_DEC; 5830 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 5831 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 5832 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 5833 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 5834 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 5835 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 5836 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 5837 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 5838 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 5839 RECOMP_REGS_OUT(); 5840 } 5841 5842 void sub_3C005789(void) { 5843 int _fpu_cmp = 0; 5844 uint32_t _cf = 0; 5845 int _df = 1; 5846 uint32_t _flag_k = FK_NONE; 5847 uint32_t _flag_a = 0, _flag_b = 0; 5848 uint32_t _itail_tgt = 0; 5849 RECOMP_REGS_LOCALS 5850 RECOMP_ENTER(0x3C005789u); 5851 5852 L_3C005789: 5853 MEM32(ebx) = edx; /* 0x3C005789: mov dword ptr [ebx], edx */ 5854 ebx = MEM32(edi + 0x4); /* 0x3C00578B: mov ebx, dword ptr [edi + 4] */ 5855 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3C00578E: cmp dword ptr [ebx + 8], esi */ 5856 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 5857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5858 _flag_k = FK_CMP; 5859 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057B8; /* 0x3C005791: jne 0x3c0057b8 */ 5860 L_3C005793: 5861 ecx = MEM32(esi); /* 0x3C005793: mov ecx, dword ptr [esi] */ 5862 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005795: cmp ecx, dword ptr [edi + 8] */ 5863 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5865 _flag_k = FK_CMP; 5866 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00579F; /* 0x3C005798: jne 0x3c00579f */ 5867 L_3C00579A: 5868 edx = MEM32(esi + 0x4); /* 0x3C00579A: mov edx, dword ptr [esi + 4] */ 5869 goto L_3C0057B5; /* 0x3C00579D: jmp 0x3c0057b5 */ 5870 L_3C00579F: 5871 ecx = MEM32(eax + 0x8); /* 0x3C00579F: mov ecx, dword ptr [eax + 8] */ 5872 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x3C0057A2: cmp byte ptr [ecx + 0x11], 0 */ 5873 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 5874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5875 _flag_k = FK_NARROW(FK_CMP, 24); 5876 edx = eax; /* 0x3C0057A6: mov edx, eax */ 5877 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057B5; /* 0x3C0057A8: jne 0x3c0057b5 */ 5878 L_3C0057AA: 5879 edx = ecx; /* 0x3C0057AA: mov edx, ecx */ 5880 ecx = MEM32(edx + 0x8); /* 0x3C0057AC: mov ecx, dword ptr [edx + 8] */ 5881 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x3C0057AF: cmp byte ptr [ecx + 0x11], 0 */ 5882 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 5883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5884 _flag_k = FK_NARROW(FK_CMP, 24); 5885 RECOMP_BACKEDGE(); 5886 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0057AA; /* 0x3C0057B3: je 0x3c0057aa */ 5887 L_3C0057B5: 5888 MEM32(ebx + 0x8) = edx; /* 0x3C0057B5: mov dword ptr [ebx + 8], edx */ 5889 L_3C0057B8: 5890 ecx = MEM32(ebp + (-0x4)); /* 0x3C0057B8: mov ecx, dword ptr [ebp - 4] */ 5891 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057BB: mov dl, byte ptr [ecx + 0x10] */ 5892 SET_LO8(ebx, 1); /* 0x3C0057BE: mov bl, 1 */ 5893 /* cmp LO8(edx), LO8(ebx) */ /* 0x3C0057C0: cmp dl, bl */ 5894 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5896 _flag_k = FK_NARROW(FK_CMP, 24); 5897 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A25; /* 0x3C0057C2: jne 0x3c005a25 */ 5898 L_3C0057C8: 5899 edx = MEM32(edi + 0x4); /* 0x3C0057C8: mov edx, dword ptr [edi + 4] */ 5900 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C0057CB: cmp eax, dword ptr [edx + 4] */ 5901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5903 _flag_k = FK_CMP; 5904 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057CE: je 0x3c005a22 */ 5905 L_3C0057D4: 5906 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x3C0057D4: cmp byte ptr [eax + 0x10], bl */ 5907 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5909 _flag_k = FK_NARROW(FK_CMP, 24); 5910 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057D7: jne 0x3c005a22 */ 5911 L_3C0057DD: 5912 edx = MEM32(eax + 0x4); /* 0x3C0057DD: mov edx, dword ptr [eax + 4] */ 5913 ecx = MEM32(edx); /* 0x3C0057E0: mov ecx, dword ptr [edx] */ 5914 /* cmp eax, ecx */ /* 0x3C0057E2: cmp eax, ecx */ 5915 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5917 _flag_k = FK_CMP; 5918 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005854; /* 0x3C0057E4: jne 0x3c005854 */ 5919 L_3C0057E6: 5920 ecx = MEM32(edx + 0x8); /* 0x3C0057E6: mov ecx, dword ptr [edx + 8] */ 5921 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057E9: mov dl, byte ptr [ecx + 0x10] */ 5922 /* test LO8(edx), LO8(edx) */ /* 0x3C0057EC: test dl, dl */ 5923 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5924 _cf = 0; 5925 _flag_k = FK_NARROW(FK_TEST, 24); 5926 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00583B; /* 0x3C0057EE: jne 0x3c00583b */ 5927 L_3C0057F0: 5928 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0057F0: mov byte ptr [ecx + 0x10], bl */ 5929 ecx = MEM32(eax + 0x4); /* 0x3C0057F3: mov ecx, dword ptr [eax + 4] */ 5930 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0057F6: mov byte ptr [ecx + 0x10], 0 */ 5931 ecx = MEM32(eax + 0x4); /* 0x3C0057FA: mov ecx, dword ptr [eax + 4] */ 5932 edx = MEM32(ecx + 0x8); /* 0x3C0057FD: mov edx, dword ptr [ecx + 8] */ 5933 esi = MEM32(edx); /* 0x3C005800: mov esi, dword ptr [edx] */ 5934 MEM32(ecx + 0x8) = esi; /* 0x3C005802: mov dword ptr [ecx + 8], esi */ 5935 esi = MEM32(edx); /* 0x3C005805: mov esi, dword ptr [edx] */ 5936 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005807: cmp esi, dword ptr [edi + 8] */ 5937 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5939 _flag_k = FK_CMP; 5940 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00580F; /* 0x3C00580A: je 0x3c00580f */ 5941 L_3C00580C: 5942 MEM32(esi + 0x4) = ecx; /* 0x3C00580C: mov dword ptr [esi + 4], ecx */ 5943 L_3C00580F: 5944 esi = MEM32(ecx + 0x4); /* 0x3C00580F: mov esi, dword ptr [ecx + 4] */ 5945 MEM32(edx + 0x4) = esi; /* 0x3C005812: mov dword ptr [edx + 4], esi */ 5946 esi = MEM32(edi + 0x4); /* 0x3C005815: mov esi, dword ptr [edi + 4] */ 5947 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005818: cmp ecx, dword ptr [esi + 4] */ 5948 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5950 _flag_k = FK_CMP; 5951 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005822; /* 0x3C00581B: jne 0x3c005822 */ 5952 L_3C00581D: 5953 MEM32(esi + 0x4) = edx; /* 0x3C00581D: mov dword ptr [esi + 4], edx */ 5954 goto L_3C005830; /* 0x3C005820: jmp 0x3c005830 */ 5955 L_3C005822: 5956 esi = MEM32(ecx + 0x4); /* 0x3C005822: mov esi, dword ptr [ecx + 4] */ 5957 /* cmp ecx, MEM32(esi) */ /* 0x3C005825: cmp ecx, dword ptr [esi] */ 5958 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5960 _flag_k = FK_CMP; 5961 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00582D; /* 0x3C005827: jne 0x3c00582d */ 5962 L_3C005829: 5963 MEM32(esi) = edx; /* 0x3C005829: mov dword ptr [esi], edx */ 5964 goto L_3C005830; /* 0x3C00582B: jmp 0x3c005830 */ 5965 L_3C00582D: 5966 MEM32(esi + 0x8) = edx; /* 0x3C00582D: mov dword ptr [esi + 8], edx */ 5967 L_3C005830: 5968 MEM32(edx) = ecx; /* 0x3C005830: mov dword ptr [edx], ecx */ 5969 MEM32(ecx + 0x4) = edx; /* 0x3C005832: mov dword ptr [ecx + 4], edx */ 5970 edx = MEM32(eax + 0x4); /* 0x3C005835: mov edx, dword ptr [eax + 4] */ 5971 ecx = MEM32(edx + 0x8); /* 0x3C005838: mov ecx, dword ptr [edx + 8] */ 5972 L_3C00583B: 5973 edx = MEM32(ecx); /* 0x3C00583B: mov edx, dword ptr [ecx] */ 5974 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C00583D: cmp byte ptr [edx + 0x10], bl */ 5975 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5977 _flag_k = FK_NARROW(FK_CMP, 24); 5978 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C005840: jne 0x3c0058d6 */ 5979 L_3C005846: 5980 edx = MEM32(ecx + 0x8); /* 0x3C005846: mov edx, dword ptr [ecx + 8] */ 5981 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005849: cmp byte ptr [edx + 0x10], bl */ 5982 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5984 _flag_k = FK_NARROW(FK_CMP, 24); 5985 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C00584C: jne 0x3c0058d6 */ 5986 L_3C005852: 5987 goto L_3C0058BE; /* 0x3C005852: jmp 0x3c0058be */ 5988 L_3C005854: 5989 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005854: mov dl, byte ptr [ecx + 0x10] */ 5990 /* test LO8(edx), LO8(edx) */ /* 0x3C005857: test dl, dl */ 5991 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5992 _cf = 0; 5993 _flag_k = FK_NARROW(FK_TEST, 24); 5994 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0058A7; /* 0x3C005859: jne 0x3c0058a7 */ 5995 L_3C00585B: 5996 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00585B: mov byte ptr [ecx + 0x10], bl */ 5997 ecx = MEM32(eax + 0x4); /* 0x3C00585E: mov ecx, dword ptr [eax + 4] */ 5998 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005861: mov byte ptr [ecx + 0x10], 0 */ 5999 ecx = MEM32(eax + 0x4); /* 0x3C005865: mov ecx, dword ptr [eax + 4] */ 6000 edx = MEM32(ecx); /* 0x3C005868: mov edx, dword ptr [ecx] */ 6001 esi = MEM32(edx + 0x8); /* 0x3C00586A: mov esi, dword ptr [edx + 8] */ 6002 MEM32(ecx) = esi; /* 0x3C00586D: mov dword ptr [ecx], esi */ 6003 esi = MEM32(edx + 0x8); /* 0x3C00586F: mov esi, dword ptr [edx + 8] */ 6004 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005872: cmp esi, dword ptr [edi + 8] */ 6005 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6007 _flag_k = FK_CMP; 6008 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00587A; /* 0x3C005875: je 0x3c00587a */ 6009 L_3C005877: 6010 MEM32(esi + 0x4) = ecx; /* 0x3C005877: mov dword ptr [esi + 4], ecx */ 6011 L_3C00587A: 6012 esi = MEM32(ecx + 0x4); /* 0x3C00587A: mov esi, dword ptr [ecx + 4] */ 6013 MEM32(edx + 0x4) = esi; /* 0x3C00587D: mov dword ptr [edx + 4], esi */ 6014 esi = MEM32(edi + 0x4); /* 0x3C005880: mov esi, dword ptr [edi + 4] */ 6015 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005883: cmp ecx, dword ptr [esi + 4] */ 6016 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6018 _flag_k = FK_CMP; 6019 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00588D; /* 0x3C005886: jne 0x3c00588d */ 6020 L_3C005888: 6021 MEM32(esi + 0x4) = edx; /* 0x3C005888: mov dword ptr [esi + 4], edx */ 6022 goto L_3C00589C; /* 0x3C00588B: jmp 0x3c00589c */ 6023 L_3C00588D: 6024 esi = MEM32(ecx + 0x4); /* 0x3C00588D: mov esi, dword ptr [ecx + 4] */ 6025 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005890: cmp ecx, dword ptr [esi + 8] */ 6026 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6028 _flag_k = FK_CMP; 6029 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00589A; /* 0x3C005893: jne 0x3c00589a */ 6030 L_3C005895: 6031 MEM32(esi + 0x8) = edx; /* 0x3C005895: mov dword ptr [esi + 8], edx */ 6032 goto L_3C00589C; /* 0x3C005898: jmp 0x3c00589c */ 6033 L_3C00589A: 6034 MEM32(esi) = edx; /* 0x3C00589A: mov dword ptr [esi], edx */ 6035 L_3C00589C: 6036 MEM32(edx + 0x8) = ecx; /* 0x3C00589C: mov dword ptr [edx + 8], ecx */ 6037 MEM32(ecx + 0x4) = edx; /* 0x3C00589F: mov dword ptr [ecx + 4], edx */ 6038 edx = MEM32(eax + 0x4); /* 0x3C0058A2: mov edx, dword ptr [eax + 4] */ 6039 ecx = MEM32(edx); /* 0x3C0058A5: mov ecx, dword ptr [edx] */ 6040 L_3C0058A7: 6041 edx = MEM32(ecx + 0x8); /* 0x3C0058A7: mov edx, dword ptr [ecx + 8] */ 6042 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058AA: cmp byte ptr [edx + 0x10], bl */ 6043 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6045 _flag_k = FK_NARROW(FK_CMP, 24); 6046 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058AD: jne 0x3c005983 */ 6047 L_3C0058B3: 6048 edx = MEM32(ecx); /* 0x3C0058B3: mov edx, dword ptr [ecx] */ 6049 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058B5: cmp byte ptr [edx + 0x10], bl */ 6050 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6052 _flag_k = FK_NARROW(FK_CMP, 24); 6053 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058B8: jne 0x3c005983 */ 6054 L_3C0058BE: 6055 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058BE: mov byte ptr [ecx + 0x10], 0 */ 6056 ecx = MEM32(edi + 0x4); /* 0x3C0058C2: mov ecx, dword ptr [edi + 4] */ 6057 eax = MEM32(eax + 0x4); /* 0x3C0058C5: mov eax, dword ptr [eax + 4] */ 6058 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C0058C8: cmp eax, dword ptr [ecx + 4] */ 6059 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6061 _flag_k = FK_CMP; 6062 RECOMP_BACKEDGE(); 6063 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057D4; /* 0x3C0058CB: jne 0x3c0057d4 */ 6064 L_3C0058D1: 6065 goto L_3C005A22; /* 0x3C0058D1: jmp 0x3c005a22 */ 6066 L_3C0058D6: 6067 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 6068 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 6069 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6071 _flag_k = FK_NARROW(FK_CMP, 24); 6072 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 6073 L_3C0058DE: 6074 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 6075 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 6076 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 6077 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 6078 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 6079 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 6080 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 6081 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 6082 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6084 _flag_k = FK_CMP; 6085 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 6086 L_3C0058F6: 6087 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 6088 L_3C0058F9: 6089 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 6090 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 6091 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 6092 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 6093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6095 _flag_k = FK_CMP; 6096 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 6097 L_3C005907: 6098 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 6099 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 6100 L_3C00590C: 6101 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 6102 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 6103 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6105 _flag_k = FK_CMP; 6106 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 6107 L_3C005914: 6108 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 6109 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 6110 L_3C005919: 6111 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 6112 L_3C00591B: 6113 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 6114 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 6115 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 6116 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 6117 L_3C005927: 6118 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 6119 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 6120 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 6121 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 6122 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 6123 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 6124 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 6125 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 6126 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 6127 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 6128 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 6129 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 6130 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 6131 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6133 _flag_k = FK_CMP; 6134 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 6135 L_3C00594E: 6136 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 6137 L_3C005951: 6138 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 6139 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 6140 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 6141 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 6142 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6144 _flag_k = FK_CMP; 6145 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 6146 L_3C00595F: 6147 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 6148 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 6149 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 6150 L_3C005969: 6151 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 6152 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 6153 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6155 _flag_k = FK_CMP; 6156 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 6157 L_3C005970: 6158 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 6159 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 6160 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 6161 L_3C005979: 6162 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 6163 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 6164 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 6165 L_3C005983: 6166 edx = MEM32(ecx); /* 0x3C005983: mov edx, dword ptr [ecx] */ 6167 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005985: cmp byte ptr [edx + 0x10], bl */ 6168 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6170 _flag_k = FK_NARROW(FK_CMP, 24); 6171 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059D1; /* 0x3C005988: jne 0x3c0059d1 */ 6172 L_3C00598A: 6173 edx = MEM32(ecx + 0x8); /* 0x3C00598A: mov edx, dword ptr [ecx + 8] */ 6174 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00598D: mov byte ptr [edx + 0x10], bl */ 6175 edx = MEM32(ecx + 0x8); /* 0x3C005990: mov edx, dword ptr [ecx + 8] */ 6176 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005993: mov byte ptr [ecx + 0x10], 0 */ 6177 esi = MEM32(edx); /* 0x3C005997: mov esi, dword ptr [edx] */ 6178 MEM32(ecx + 0x8) = esi; /* 0x3C005999: mov dword ptr [ecx + 8], esi */ 6179 esi = MEM32(edx); /* 0x3C00599C: mov esi, dword ptr [edx] */ 6180 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C00599E: cmp esi, dword ptr [edi + 8] */ 6181 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6183 _flag_k = FK_CMP; 6184 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059A6; /* 0x3C0059A1: je 0x3c0059a6 */ 6185 L_3C0059A3: 6186 MEM32(esi + 0x4) = ecx; /* 0x3C0059A3: mov dword ptr [esi + 4], ecx */ 6187 L_3C0059A6: 6188 esi = MEM32(ecx + 0x4); /* 0x3C0059A6: mov esi, dword ptr [ecx + 4] */ 6189 MEM32(edx + 0x4) = esi; /* 0x3C0059A9: mov dword ptr [edx + 4], esi */ 6190 esi = MEM32(edi + 0x4); /* 0x3C0059AC: mov esi, dword ptr [edi + 4] */ 6191 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C0059AF: cmp ecx, dword ptr [esi + 4] */ 6192 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6194 _flag_k = FK_CMP; 6195 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059B9; /* 0x3C0059B2: jne 0x3c0059b9 */ 6196 L_3C0059B4: 6197 MEM32(esi + 0x4) = edx; /* 0x3C0059B4: mov dword ptr [esi + 4], edx */ 6198 goto L_3C0059C7; /* 0x3C0059B7: jmp 0x3c0059c7 */ 6199 L_3C0059B9: 6200 esi = MEM32(ecx + 0x4); /* 0x3C0059B9: mov esi, dword ptr [ecx + 4] */ 6201 /* cmp ecx, MEM32(esi) */ /* 0x3C0059BC: cmp ecx, dword ptr [esi] */ 6202 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6204 _flag_k = FK_CMP; 6205 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059C4; /* 0x3C0059BE: jne 0x3c0059c4 */ 6206 L_3C0059C0: 6207 MEM32(esi) = edx; /* 0x3C0059C0: mov dword ptr [esi], edx */ 6208 goto L_3C0059C7; /* 0x3C0059C2: jmp 0x3c0059c7 */ 6209 L_3C0059C4: 6210 MEM32(esi + 0x8) = edx; /* 0x3C0059C4: mov dword ptr [esi + 8], edx */ 6211 L_3C0059C7: 6212 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 6213 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 6214 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 6215 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 6216 L_3C0059D1: 6217 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 6218 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 6219 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 6220 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 6221 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 6222 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 6223 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 6224 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 6225 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 6226 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 6227 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 6228 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 6229 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 6230 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6232 _flag_k = FK_CMP; 6233 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 6234 L_3C0059F7: 6235 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 6236 L_3C0059FA: 6237 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 6238 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 6239 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 6240 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 6241 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6243 _flag_k = FK_CMP; 6244 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 6245 L_3C005A08: 6246 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 6247 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 6248 L_3C005A0D: 6249 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 6250 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 6251 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6253 _flag_k = FK_CMP; 6254 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 6255 L_3C005A15: 6256 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 6257 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 6258 L_3C005A1A: 6259 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 6260 L_3C005A1C: 6261 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 6262 L_3C005A1F: 6263 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 6264 L_3C005A22: 6265 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 6266 L_3C005A25: 6267 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 6268 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 6269 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 6270 RECOMP_FLAGS_IN(); 6271 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 6272 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 6273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6275 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 6276 _flag_k = FK_ADD; 6277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6278 eax = eax - 1; /* 0x3C005A37: dec eax */ 6279 _flag_k = FK_DEC; 6280 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 6281 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 6282 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 6283 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 6284 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 6285 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 6286 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 6287 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 6288 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 6289 RECOMP_REGS_OUT(); 6290 } 6291 6292 void sub_3C0057B5(void) { 6293 int _fpu_cmp = 0; 6294 uint32_t _cf = 0; 6295 int _df = 1; 6296 uint32_t _flag_k = FK_NONE; 6297 uint32_t _flag_a = 0, _flag_b = 0; 6298 uint32_t _itail_tgt = 0; 6299 RECOMP_REGS_LOCALS 6300 RECOMP_ENTER(0x3C0057B5u); 6301 6302 L_3C0057B5: 6303 MEM32(ebx + 0x8) = edx; /* 0x3C0057B5: mov dword ptr [ebx + 8], edx */ 6304 ecx = MEM32(ebp + (-0x4)); /* 0x3C0057B8: mov ecx, dword ptr [ebp - 4] */ 6305 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057BB: mov dl, byte ptr [ecx + 0x10] */ 6306 SET_LO8(ebx, 1); /* 0x3C0057BE: mov bl, 1 */ 6307 /* cmp LO8(edx), LO8(ebx) */ /* 0x3C0057C0: cmp dl, bl */ 6308 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6310 _flag_k = FK_NARROW(FK_CMP, 24); 6311 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A25; /* 0x3C0057C2: jne 0x3c005a25 */ 6312 L_3C0057C8: 6313 edx = MEM32(edi + 0x4); /* 0x3C0057C8: mov edx, dword ptr [edi + 4] */ 6314 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C0057CB: cmp eax, dword ptr [edx + 4] */ 6315 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6317 _flag_k = FK_CMP; 6318 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057CE: je 0x3c005a22 */ 6319 L_3C0057D4: 6320 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x3C0057D4: cmp byte ptr [eax + 0x10], bl */ 6321 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6323 _flag_k = FK_NARROW(FK_CMP, 24); 6324 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057D7: jne 0x3c005a22 */ 6325 L_3C0057DD: 6326 edx = MEM32(eax + 0x4); /* 0x3C0057DD: mov edx, dword ptr [eax + 4] */ 6327 ecx = MEM32(edx); /* 0x3C0057E0: mov ecx, dword ptr [edx] */ 6328 /* cmp eax, ecx */ /* 0x3C0057E2: cmp eax, ecx */ 6329 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6331 _flag_k = FK_CMP; 6332 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005854; /* 0x3C0057E4: jne 0x3c005854 */ 6333 L_3C0057E6: 6334 ecx = MEM32(edx + 0x8); /* 0x3C0057E6: mov ecx, dword ptr [edx + 8] */ 6335 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057E9: mov dl, byte ptr [ecx + 0x10] */ 6336 /* test LO8(edx), LO8(edx) */ /* 0x3C0057EC: test dl, dl */ 6337 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6338 _cf = 0; 6339 _flag_k = FK_NARROW(FK_TEST, 24); 6340 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00583B; /* 0x3C0057EE: jne 0x3c00583b */ 6341 L_3C0057F0: 6342 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0057F0: mov byte ptr [ecx + 0x10], bl */ 6343 ecx = MEM32(eax + 0x4); /* 0x3C0057F3: mov ecx, dword ptr [eax + 4] */ 6344 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0057F6: mov byte ptr [ecx + 0x10], 0 */ 6345 ecx = MEM32(eax + 0x4); /* 0x3C0057FA: mov ecx, dword ptr [eax + 4] */ 6346 edx = MEM32(ecx + 0x8); /* 0x3C0057FD: mov edx, dword ptr [ecx + 8] */ 6347 esi = MEM32(edx); /* 0x3C005800: mov esi, dword ptr [edx] */ 6348 MEM32(ecx + 0x8) = esi; /* 0x3C005802: mov dword ptr [ecx + 8], esi */ 6349 esi = MEM32(edx); /* 0x3C005805: mov esi, dword ptr [edx] */ 6350 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005807: cmp esi, dword ptr [edi + 8] */ 6351 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6353 _flag_k = FK_CMP; 6354 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00580F; /* 0x3C00580A: je 0x3c00580f */ 6355 L_3C00580C: 6356 MEM32(esi + 0x4) = ecx; /* 0x3C00580C: mov dword ptr [esi + 4], ecx */ 6357 L_3C00580F: 6358 esi = MEM32(ecx + 0x4); /* 0x3C00580F: mov esi, dword ptr [ecx + 4] */ 6359 MEM32(edx + 0x4) = esi; /* 0x3C005812: mov dword ptr [edx + 4], esi */ 6360 esi = MEM32(edi + 0x4); /* 0x3C005815: mov esi, dword ptr [edi + 4] */ 6361 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005818: cmp ecx, dword ptr [esi + 4] */ 6362 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6364 _flag_k = FK_CMP; 6365 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005822; /* 0x3C00581B: jne 0x3c005822 */ 6366 L_3C00581D: 6367 MEM32(esi + 0x4) = edx; /* 0x3C00581D: mov dword ptr [esi + 4], edx */ 6368 goto L_3C005830; /* 0x3C005820: jmp 0x3c005830 */ 6369 L_3C005822: 6370 esi = MEM32(ecx + 0x4); /* 0x3C005822: mov esi, dword ptr [ecx + 4] */ 6371 /* cmp ecx, MEM32(esi) */ /* 0x3C005825: cmp ecx, dword ptr [esi] */ 6372 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6374 _flag_k = FK_CMP; 6375 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00582D; /* 0x3C005827: jne 0x3c00582d */ 6376 L_3C005829: 6377 MEM32(esi) = edx; /* 0x3C005829: mov dword ptr [esi], edx */ 6378 goto L_3C005830; /* 0x3C00582B: jmp 0x3c005830 */ 6379 L_3C00582D: 6380 MEM32(esi + 0x8) = edx; /* 0x3C00582D: mov dword ptr [esi + 8], edx */ 6381 L_3C005830: 6382 MEM32(edx) = ecx; /* 0x3C005830: mov dword ptr [edx], ecx */ 6383 MEM32(ecx + 0x4) = edx; /* 0x3C005832: mov dword ptr [ecx + 4], edx */ 6384 edx = MEM32(eax + 0x4); /* 0x3C005835: mov edx, dword ptr [eax + 4] */ 6385 ecx = MEM32(edx + 0x8); /* 0x3C005838: mov ecx, dword ptr [edx + 8] */ 6386 L_3C00583B: 6387 edx = MEM32(ecx); /* 0x3C00583B: mov edx, dword ptr [ecx] */ 6388 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C00583D: cmp byte ptr [edx + 0x10], bl */ 6389 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6391 _flag_k = FK_NARROW(FK_CMP, 24); 6392 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C005840: jne 0x3c0058d6 */ 6393 L_3C005846: 6394 edx = MEM32(ecx + 0x8); /* 0x3C005846: mov edx, dword ptr [ecx + 8] */ 6395 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005849: cmp byte ptr [edx + 0x10], bl */ 6396 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6398 _flag_k = FK_NARROW(FK_CMP, 24); 6399 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C00584C: jne 0x3c0058d6 */ 6400 L_3C005852: 6401 goto L_3C0058BE; /* 0x3C005852: jmp 0x3c0058be */ 6402 L_3C005854: 6403 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005854: mov dl, byte ptr [ecx + 0x10] */ 6404 /* test LO8(edx), LO8(edx) */ /* 0x3C005857: test dl, dl */ 6405 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6406 _cf = 0; 6407 _flag_k = FK_NARROW(FK_TEST, 24); 6408 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0058A7; /* 0x3C005859: jne 0x3c0058a7 */ 6409 L_3C00585B: 6410 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00585B: mov byte ptr [ecx + 0x10], bl */ 6411 ecx = MEM32(eax + 0x4); /* 0x3C00585E: mov ecx, dword ptr [eax + 4] */ 6412 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005861: mov byte ptr [ecx + 0x10], 0 */ 6413 ecx = MEM32(eax + 0x4); /* 0x3C005865: mov ecx, dword ptr [eax + 4] */ 6414 edx = MEM32(ecx); /* 0x3C005868: mov edx, dword ptr [ecx] */ 6415 esi = MEM32(edx + 0x8); /* 0x3C00586A: mov esi, dword ptr [edx + 8] */ 6416 MEM32(ecx) = esi; /* 0x3C00586D: mov dword ptr [ecx], esi */ 6417 esi = MEM32(edx + 0x8); /* 0x3C00586F: mov esi, dword ptr [edx + 8] */ 6418 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005872: cmp esi, dword ptr [edi + 8] */ 6419 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6421 _flag_k = FK_CMP; 6422 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00587A; /* 0x3C005875: je 0x3c00587a */ 6423 L_3C005877: 6424 MEM32(esi + 0x4) = ecx; /* 0x3C005877: mov dword ptr [esi + 4], ecx */ 6425 L_3C00587A: 6426 esi = MEM32(ecx + 0x4); /* 0x3C00587A: mov esi, dword ptr [ecx + 4] */ 6427 MEM32(edx + 0x4) = esi; /* 0x3C00587D: mov dword ptr [edx + 4], esi */ 6428 esi = MEM32(edi + 0x4); /* 0x3C005880: mov esi, dword ptr [edi + 4] */ 6429 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005883: cmp ecx, dword ptr [esi + 4] */ 6430 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6432 _flag_k = FK_CMP; 6433 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00588D; /* 0x3C005886: jne 0x3c00588d */ 6434 L_3C005888: 6435 MEM32(esi + 0x4) = edx; /* 0x3C005888: mov dword ptr [esi + 4], edx */ 6436 goto L_3C00589C; /* 0x3C00588B: jmp 0x3c00589c */ 6437 L_3C00588D: 6438 esi = MEM32(ecx + 0x4); /* 0x3C00588D: mov esi, dword ptr [ecx + 4] */ 6439 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005890: cmp ecx, dword ptr [esi + 8] */ 6440 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6442 _flag_k = FK_CMP; 6443 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00589A; /* 0x3C005893: jne 0x3c00589a */ 6444 L_3C005895: 6445 MEM32(esi + 0x8) = edx; /* 0x3C005895: mov dword ptr [esi + 8], edx */ 6446 goto L_3C00589C; /* 0x3C005898: jmp 0x3c00589c */ 6447 L_3C00589A: 6448 MEM32(esi) = edx; /* 0x3C00589A: mov dword ptr [esi], edx */ 6449 L_3C00589C: 6450 MEM32(edx + 0x8) = ecx; /* 0x3C00589C: mov dword ptr [edx + 8], ecx */ 6451 MEM32(ecx + 0x4) = edx; /* 0x3C00589F: mov dword ptr [ecx + 4], edx */ 6452 edx = MEM32(eax + 0x4); /* 0x3C0058A2: mov edx, dword ptr [eax + 4] */ 6453 ecx = MEM32(edx); /* 0x3C0058A5: mov ecx, dword ptr [edx] */ 6454 L_3C0058A7: 6455 edx = MEM32(ecx + 0x8); /* 0x3C0058A7: mov edx, dword ptr [ecx + 8] */ 6456 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058AA: cmp byte ptr [edx + 0x10], bl */ 6457 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6459 _flag_k = FK_NARROW(FK_CMP, 24); 6460 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058AD: jne 0x3c005983 */ 6461 L_3C0058B3: 6462 edx = MEM32(ecx); /* 0x3C0058B3: mov edx, dword ptr [ecx] */ 6463 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058B5: cmp byte ptr [edx + 0x10], bl */ 6464 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6466 _flag_k = FK_NARROW(FK_CMP, 24); 6467 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058B8: jne 0x3c005983 */ 6468 L_3C0058BE: 6469 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058BE: mov byte ptr [ecx + 0x10], 0 */ 6470 ecx = MEM32(edi + 0x4); /* 0x3C0058C2: mov ecx, dword ptr [edi + 4] */ 6471 eax = MEM32(eax + 0x4); /* 0x3C0058C5: mov eax, dword ptr [eax + 4] */ 6472 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C0058C8: cmp eax, dword ptr [ecx + 4] */ 6473 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6475 _flag_k = FK_CMP; 6476 RECOMP_BACKEDGE(); 6477 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057D4; /* 0x3C0058CB: jne 0x3c0057d4 */ 6478 L_3C0058D1: 6479 goto L_3C005A22; /* 0x3C0058D1: jmp 0x3c005a22 */ 6480 L_3C0058D6: 6481 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 6482 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 6483 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6485 _flag_k = FK_NARROW(FK_CMP, 24); 6486 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 6487 L_3C0058DE: 6488 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 6489 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 6490 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 6491 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 6492 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 6493 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 6494 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 6495 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 6496 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6498 _flag_k = FK_CMP; 6499 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 6500 L_3C0058F6: 6501 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 6502 L_3C0058F9: 6503 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 6504 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 6505 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 6506 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 6507 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6509 _flag_k = FK_CMP; 6510 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 6511 L_3C005907: 6512 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 6513 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 6514 L_3C00590C: 6515 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 6516 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 6517 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6519 _flag_k = FK_CMP; 6520 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 6521 L_3C005914: 6522 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 6523 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 6524 L_3C005919: 6525 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 6526 L_3C00591B: 6527 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 6528 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 6529 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 6530 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 6531 L_3C005927: 6532 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 6533 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 6534 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 6535 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 6536 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 6537 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 6538 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 6539 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 6540 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 6541 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 6542 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 6543 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 6544 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 6545 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6547 _flag_k = FK_CMP; 6548 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 6549 L_3C00594E: 6550 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 6551 L_3C005951: 6552 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 6553 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 6554 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 6555 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 6556 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6558 _flag_k = FK_CMP; 6559 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 6560 L_3C00595F: 6561 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 6562 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 6563 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 6564 L_3C005969: 6565 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 6566 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 6567 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6569 _flag_k = FK_CMP; 6570 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 6571 L_3C005970: 6572 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 6573 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 6574 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 6575 L_3C005979: 6576 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 6577 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 6578 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 6579 L_3C005983: 6580 edx = MEM32(ecx); /* 0x3C005983: mov edx, dword ptr [ecx] */ 6581 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005985: cmp byte ptr [edx + 0x10], bl */ 6582 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6584 _flag_k = FK_NARROW(FK_CMP, 24); 6585 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059D1; /* 0x3C005988: jne 0x3c0059d1 */ 6586 L_3C00598A: 6587 edx = MEM32(ecx + 0x8); /* 0x3C00598A: mov edx, dword ptr [ecx + 8] */ 6588 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00598D: mov byte ptr [edx + 0x10], bl */ 6589 edx = MEM32(ecx + 0x8); /* 0x3C005990: mov edx, dword ptr [ecx + 8] */ 6590 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005993: mov byte ptr [ecx + 0x10], 0 */ 6591 esi = MEM32(edx); /* 0x3C005997: mov esi, dword ptr [edx] */ 6592 MEM32(ecx + 0x8) = esi; /* 0x3C005999: mov dword ptr [ecx + 8], esi */ 6593 esi = MEM32(edx); /* 0x3C00599C: mov esi, dword ptr [edx] */ 6594 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C00599E: cmp esi, dword ptr [edi + 8] */ 6595 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6597 _flag_k = FK_CMP; 6598 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059A6; /* 0x3C0059A1: je 0x3c0059a6 */ 6599 L_3C0059A3: 6600 MEM32(esi + 0x4) = ecx; /* 0x3C0059A3: mov dword ptr [esi + 4], ecx */ 6601 L_3C0059A6: 6602 esi = MEM32(ecx + 0x4); /* 0x3C0059A6: mov esi, dword ptr [ecx + 4] */ 6603 MEM32(edx + 0x4) = esi; /* 0x3C0059A9: mov dword ptr [edx + 4], esi */ 6604 esi = MEM32(edi + 0x4); /* 0x3C0059AC: mov esi, dword ptr [edi + 4] */ 6605 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C0059AF: cmp ecx, dword ptr [esi + 4] */ 6606 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6608 _flag_k = FK_CMP; 6609 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059B9; /* 0x3C0059B2: jne 0x3c0059b9 */ 6610 L_3C0059B4: 6611 MEM32(esi + 0x4) = edx; /* 0x3C0059B4: mov dword ptr [esi + 4], edx */ 6612 goto L_3C0059C7; /* 0x3C0059B7: jmp 0x3c0059c7 */ 6613 L_3C0059B9: 6614 esi = MEM32(ecx + 0x4); /* 0x3C0059B9: mov esi, dword ptr [ecx + 4] */ 6615 /* cmp ecx, MEM32(esi) */ /* 0x3C0059BC: cmp ecx, dword ptr [esi] */ 6616 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6618 _flag_k = FK_CMP; 6619 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059C4; /* 0x3C0059BE: jne 0x3c0059c4 */ 6620 L_3C0059C0: 6621 MEM32(esi) = edx; /* 0x3C0059C0: mov dword ptr [esi], edx */ 6622 goto L_3C0059C7; /* 0x3C0059C2: jmp 0x3c0059c7 */ 6623 L_3C0059C4: 6624 MEM32(esi + 0x8) = edx; /* 0x3C0059C4: mov dword ptr [esi + 8], edx */ 6625 L_3C0059C7: 6626 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 6627 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 6628 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 6629 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 6630 L_3C0059D1: 6631 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 6632 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 6633 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 6634 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 6635 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 6636 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 6637 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 6638 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 6639 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 6640 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 6641 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 6642 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 6643 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 6644 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6646 _flag_k = FK_CMP; 6647 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 6648 L_3C0059F7: 6649 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 6650 L_3C0059FA: 6651 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 6652 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 6653 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 6654 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 6655 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6657 _flag_k = FK_CMP; 6658 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 6659 L_3C005A08: 6660 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 6661 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 6662 L_3C005A0D: 6663 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 6664 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 6665 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6667 _flag_k = FK_CMP; 6668 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 6669 L_3C005A15: 6670 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 6671 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 6672 L_3C005A1A: 6673 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 6674 L_3C005A1C: 6675 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 6676 L_3C005A1F: 6677 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 6678 L_3C005A22: 6679 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 6680 L_3C005A25: 6681 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 6682 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 6683 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 6684 RECOMP_FLAGS_IN(); 6685 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 6686 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 6687 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6689 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 6690 _flag_k = FK_ADD; 6691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6692 eax = eax - 1; /* 0x3C005A37: dec eax */ 6693 _flag_k = FK_DEC; 6694 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 6695 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 6696 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 6697 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 6698 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 6699 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 6700 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 6701 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 6702 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 6703 RECOMP_REGS_OUT(); 6704 } 6705 6706 void sub_3C0057D4(void) { 6707 int _fpu_cmp = 0; 6708 uint32_t _cf = 0; 6709 int _df = 1; 6710 uint32_t _flag_k = FK_NONE; 6711 uint32_t _flag_a = 0, _flag_b = 0; 6712 uint32_t _itail_tgt = 0; 6713 RECOMP_REGS_LOCALS 6714 RECOMP_ENTER(0x3C0057D4u); 6715 6716 L_3C0057D4: 6717 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x3C0057D4: cmp byte ptr [eax + 0x10], bl */ 6718 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6720 _flag_k = FK_NARROW(FK_CMP, 24); 6721 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057D7: jne 0x3c005a22 */ 6722 L_3C0057DD: 6723 edx = MEM32(eax + 0x4); /* 0x3C0057DD: mov edx, dword ptr [eax + 4] */ 6724 ecx = MEM32(edx); /* 0x3C0057E0: mov ecx, dword ptr [edx] */ 6725 /* cmp eax, ecx */ /* 0x3C0057E2: cmp eax, ecx */ 6726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6728 _flag_k = FK_CMP; 6729 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005854; /* 0x3C0057E4: jne 0x3c005854 */ 6730 L_3C0057E6: 6731 ecx = MEM32(edx + 0x8); /* 0x3C0057E6: mov ecx, dword ptr [edx + 8] */ 6732 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057E9: mov dl, byte ptr [ecx + 0x10] */ 6733 /* test LO8(edx), LO8(edx) */ /* 0x3C0057EC: test dl, dl */ 6734 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6735 _cf = 0; 6736 _flag_k = FK_NARROW(FK_TEST, 24); 6737 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00583B; /* 0x3C0057EE: jne 0x3c00583b */ 6738 L_3C0057F0: 6739 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0057F0: mov byte ptr [ecx + 0x10], bl */ 6740 ecx = MEM32(eax + 0x4); /* 0x3C0057F3: mov ecx, dword ptr [eax + 4] */ 6741 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0057F6: mov byte ptr [ecx + 0x10], 0 */ 6742 ecx = MEM32(eax + 0x4); /* 0x3C0057FA: mov ecx, dword ptr [eax + 4] */ 6743 edx = MEM32(ecx + 0x8); /* 0x3C0057FD: mov edx, dword ptr [ecx + 8] */ 6744 esi = MEM32(edx); /* 0x3C005800: mov esi, dword ptr [edx] */ 6745 MEM32(ecx + 0x8) = esi; /* 0x3C005802: mov dword ptr [ecx + 8], esi */ 6746 esi = MEM32(edx); /* 0x3C005805: mov esi, dword ptr [edx] */ 6747 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005807: cmp esi, dword ptr [edi + 8] */ 6748 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6750 _flag_k = FK_CMP; 6751 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00580F; /* 0x3C00580A: je 0x3c00580f */ 6752 L_3C00580C: 6753 MEM32(esi + 0x4) = ecx; /* 0x3C00580C: mov dword ptr [esi + 4], ecx */ 6754 L_3C00580F: 6755 esi = MEM32(ecx + 0x4); /* 0x3C00580F: mov esi, dword ptr [ecx + 4] */ 6756 MEM32(edx + 0x4) = esi; /* 0x3C005812: mov dword ptr [edx + 4], esi */ 6757 esi = MEM32(edi + 0x4); /* 0x3C005815: mov esi, dword ptr [edi + 4] */ 6758 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005818: cmp ecx, dword ptr [esi + 4] */ 6759 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6761 _flag_k = FK_CMP; 6762 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005822; /* 0x3C00581B: jne 0x3c005822 */ 6763 L_3C00581D: 6764 MEM32(esi + 0x4) = edx; /* 0x3C00581D: mov dword ptr [esi + 4], edx */ 6765 goto L_3C005830; /* 0x3C005820: jmp 0x3c005830 */ 6766 L_3C005822: 6767 esi = MEM32(ecx + 0x4); /* 0x3C005822: mov esi, dword ptr [ecx + 4] */ 6768 /* cmp ecx, MEM32(esi) */ /* 0x3C005825: cmp ecx, dword ptr [esi] */ 6769 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6771 _flag_k = FK_CMP; 6772 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00582D; /* 0x3C005827: jne 0x3c00582d */ 6773 L_3C005829: 6774 MEM32(esi) = edx; /* 0x3C005829: mov dword ptr [esi], edx */ 6775 goto L_3C005830; /* 0x3C00582B: jmp 0x3c005830 */ 6776 L_3C00582D: 6777 MEM32(esi + 0x8) = edx; /* 0x3C00582D: mov dword ptr [esi + 8], edx */ 6778 L_3C005830: 6779 MEM32(edx) = ecx; /* 0x3C005830: mov dword ptr [edx], ecx */ 6780 MEM32(ecx + 0x4) = edx; /* 0x3C005832: mov dword ptr [ecx + 4], edx */ 6781 edx = MEM32(eax + 0x4); /* 0x3C005835: mov edx, dword ptr [eax + 4] */ 6782 ecx = MEM32(edx + 0x8); /* 0x3C005838: mov ecx, dword ptr [edx + 8] */ 6783 L_3C00583B: 6784 edx = MEM32(ecx); /* 0x3C00583B: mov edx, dword ptr [ecx] */ 6785 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C00583D: cmp byte ptr [edx + 0x10], bl */ 6786 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6788 _flag_k = FK_NARROW(FK_CMP, 24); 6789 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C005840: jne 0x3c0058d6 */ 6790 L_3C005846: 6791 edx = MEM32(ecx + 0x8); /* 0x3C005846: mov edx, dword ptr [ecx + 8] */ 6792 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005849: cmp byte ptr [edx + 0x10], bl */ 6793 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6795 _flag_k = FK_NARROW(FK_CMP, 24); 6796 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C00584C: jne 0x3c0058d6 */ 6797 L_3C005852: 6798 goto L_3C0058BE; /* 0x3C005852: jmp 0x3c0058be */ 6799 L_3C005854: 6800 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005854: mov dl, byte ptr [ecx + 0x10] */ 6801 /* test LO8(edx), LO8(edx) */ /* 0x3C005857: test dl, dl */ 6802 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6803 _cf = 0; 6804 _flag_k = FK_NARROW(FK_TEST, 24); 6805 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0058A7; /* 0x3C005859: jne 0x3c0058a7 */ 6806 L_3C00585B: 6807 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00585B: mov byte ptr [ecx + 0x10], bl */ 6808 ecx = MEM32(eax + 0x4); /* 0x3C00585E: mov ecx, dword ptr [eax + 4] */ 6809 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005861: mov byte ptr [ecx + 0x10], 0 */ 6810 ecx = MEM32(eax + 0x4); /* 0x3C005865: mov ecx, dword ptr [eax + 4] */ 6811 edx = MEM32(ecx); /* 0x3C005868: mov edx, dword ptr [ecx] */ 6812 esi = MEM32(edx + 0x8); /* 0x3C00586A: mov esi, dword ptr [edx + 8] */ 6813 MEM32(ecx) = esi; /* 0x3C00586D: mov dword ptr [ecx], esi */ 6814 esi = MEM32(edx + 0x8); /* 0x3C00586F: mov esi, dword ptr [edx + 8] */ 6815 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005872: cmp esi, dword ptr [edi + 8] */ 6816 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6818 _flag_k = FK_CMP; 6819 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00587A; /* 0x3C005875: je 0x3c00587a */ 6820 L_3C005877: 6821 MEM32(esi + 0x4) = ecx; /* 0x3C005877: mov dword ptr [esi + 4], ecx */ 6822 L_3C00587A: 6823 esi = MEM32(ecx + 0x4); /* 0x3C00587A: mov esi, dword ptr [ecx + 4] */ 6824 MEM32(edx + 0x4) = esi; /* 0x3C00587D: mov dword ptr [edx + 4], esi */ 6825 esi = MEM32(edi + 0x4); /* 0x3C005880: mov esi, dword ptr [edi + 4] */ 6826 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005883: cmp ecx, dword ptr [esi + 4] */ 6827 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6829 _flag_k = FK_CMP; 6830 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00588D; /* 0x3C005886: jne 0x3c00588d */ 6831 L_3C005888: 6832 MEM32(esi + 0x4) = edx; /* 0x3C005888: mov dword ptr [esi + 4], edx */ 6833 goto L_3C00589C; /* 0x3C00588B: jmp 0x3c00589c */ 6834 L_3C00588D: 6835 esi = MEM32(ecx + 0x4); /* 0x3C00588D: mov esi, dword ptr [ecx + 4] */ 6836 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005890: cmp ecx, dword ptr [esi + 8] */ 6837 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6839 _flag_k = FK_CMP; 6840 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00589A; /* 0x3C005893: jne 0x3c00589a */ 6841 L_3C005895: 6842 MEM32(esi + 0x8) = edx; /* 0x3C005895: mov dword ptr [esi + 8], edx */ 6843 goto L_3C00589C; /* 0x3C005898: jmp 0x3c00589c */ 6844 L_3C00589A: 6845 MEM32(esi) = edx; /* 0x3C00589A: mov dword ptr [esi], edx */ 6846 L_3C00589C: 6847 MEM32(edx + 0x8) = ecx; /* 0x3C00589C: mov dword ptr [edx + 8], ecx */ 6848 MEM32(ecx + 0x4) = edx; /* 0x3C00589F: mov dword ptr [ecx + 4], edx */ 6849 edx = MEM32(eax + 0x4); /* 0x3C0058A2: mov edx, dword ptr [eax + 4] */ 6850 ecx = MEM32(edx); /* 0x3C0058A5: mov ecx, dword ptr [edx] */ 6851 L_3C0058A7: 6852 edx = MEM32(ecx + 0x8); /* 0x3C0058A7: mov edx, dword ptr [ecx + 8] */ 6853 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058AA: cmp byte ptr [edx + 0x10], bl */ 6854 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6856 _flag_k = FK_NARROW(FK_CMP, 24); 6857 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058AD: jne 0x3c005983 */ 6858 L_3C0058B3: 6859 edx = MEM32(ecx); /* 0x3C0058B3: mov edx, dword ptr [ecx] */ 6860 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058B5: cmp byte ptr [edx + 0x10], bl */ 6861 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6863 _flag_k = FK_NARROW(FK_CMP, 24); 6864 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058B8: jne 0x3c005983 */ 6865 L_3C0058BE: 6866 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058BE: mov byte ptr [ecx + 0x10], 0 */ 6867 ecx = MEM32(edi + 0x4); /* 0x3C0058C2: mov ecx, dword ptr [edi + 4] */ 6868 eax = MEM32(eax + 0x4); /* 0x3C0058C5: mov eax, dword ptr [eax + 4] */ 6869 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C0058C8: cmp eax, dword ptr [ecx + 4] */ 6870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6872 _flag_k = FK_CMP; 6873 RECOMP_BACKEDGE(); 6874 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057D4; /* 0x3C0058CB: jne 0x3c0057d4 */ 6875 L_3C0058D1: 6876 goto L_3C005A22; /* 0x3C0058D1: jmp 0x3c005a22 */ 6877 L_3C0058D6: 6878 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 6879 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 6880 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6882 _flag_k = FK_NARROW(FK_CMP, 24); 6883 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 6884 L_3C0058DE: 6885 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 6886 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 6887 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 6888 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 6889 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 6890 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 6891 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 6892 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 6893 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6894 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6895 _flag_k = FK_CMP; 6896 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 6897 L_3C0058F6: 6898 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 6899 L_3C0058F9: 6900 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 6901 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 6902 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 6903 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 6904 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6906 _flag_k = FK_CMP; 6907 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 6908 L_3C005907: 6909 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 6910 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 6911 L_3C00590C: 6912 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 6913 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 6914 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6916 _flag_k = FK_CMP; 6917 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 6918 L_3C005914: 6919 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 6920 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 6921 L_3C005919: 6922 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 6923 L_3C00591B: 6924 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 6925 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 6926 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 6927 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 6928 L_3C005927: 6929 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 6930 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 6931 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 6932 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 6933 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 6934 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 6935 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 6936 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 6937 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 6938 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 6939 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 6940 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 6941 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 6942 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6944 _flag_k = FK_CMP; 6945 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 6946 L_3C00594E: 6947 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 6948 L_3C005951: 6949 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 6950 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 6951 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 6952 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 6953 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6955 _flag_k = FK_CMP; 6956 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 6957 L_3C00595F: 6958 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 6959 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 6960 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 6961 L_3C005969: 6962 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 6963 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 6964 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6966 _flag_k = FK_CMP; 6967 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 6968 L_3C005970: 6969 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 6970 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 6971 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 6972 L_3C005979: 6973 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 6974 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 6975 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 6976 L_3C005983: 6977 edx = MEM32(ecx); /* 0x3C005983: mov edx, dword ptr [ecx] */ 6978 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005985: cmp byte ptr [edx + 0x10], bl */ 6979 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6981 _flag_k = FK_NARROW(FK_CMP, 24); 6982 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059D1; /* 0x3C005988: jne 0x3c0059d1 */ 6983 L_3C00598A: 6984 edx = MEM32(ecx + 0x8); /* 0x3C00598A: mov edx, dword ptr [ecx + 8] */ 6985 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00598D: mov byte ptr [edx + 0x10], bl */ 6986 edx = MEM32(ecx + 0x8); /* 0x3C005990: mov edx, dword ptr [ecx + 8] */ 6987 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005993: mov byte ptr [ecx + 0x10], 0 */ 6988 esi = MEM32(edx); /* 0x3C005997: mov esi, dword ptr [edx] */ 6989 MEM32(ecx + 0x8) = esi; /* 0x3C005999: mov dword ptr [ecx + 8], esi */ 6990 esi = MEM32(edx); /* 0x3C00599C: mov esi, dword ptr [edx] */ 6991 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C00599E: cmp esi, dword ptr [edi + 8] */ 6992 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6994 _flag_k = FK_CMP; 6995 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059A6; /* 0x3C0059A1: je 0x3c0059a6 */ 6996 L_3C0059A3: 6997 MEM32(esi + 0x4) = ecx; /* 0x3C0059A3: mov dword ptr [esi + 4], ecx */ 6998 L_3C0059A6: 6999 esi = MEM32(ecx + 0x4); /* 0x3C0059A6: mov esi, dword ptr [ecx + 4] */ 7000 MEM32(edx + 0x4) = esi; /* 0x3C0059A9: mov dword ptr [edx + 4], esi */ 7001 esi = MEM32(edi + 0x4); /* 0x3C0059AC: mov esi, dword ptr [edi + 4] */ 7002 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C0059AF: cmp ecx, dword ptr [esi + 4] */ 7003 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7005 _flag_k = FK_CMP; 7006 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059B9; /* 0x3C0059B2: jne 0x3c0059b9 */ 7007 L_3C0059B4: 7008 MEM32(esi + 0x4) = edx; /* 0x3C0059B4: mov dword ptr [esi + 4], edx */ 7009 goto L_3C0059C7; /* 0x3C0059B7: jmp 0x3c0059c7 */ 7010 L_3C0059B9: 7011 esi = MEM32(ecx + 0x4); /* 0x3C0059B9: mov esi, dword ptr [ecx + 4] */ 7012 /* cmp ecx, MEM32(esi) */ /* 0x3C0059BC: cmp ecx, dword ptr [esi] */ 7013 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7015 _flag_k = FK_CMP; 7016 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059C4; /* 0x3C0059BE: jne 0x3c0059c4 */ 7017 L_3C0059C0: 7018 MEM32(esi) = edx; /* 0x3C0059C0: mov dword ptr [esi], edx */ 7019 goto L_3C0059C7; /* 0x3C0059C2: jmp 0x3c0059c7 */ 7020 L_3C0059C4: 7021 MEM32(esi + 0x8) = edx; /* 0x3C0059C4: mov dword ptr [esi + 8], edx */ 7022 L_3C0059C7: 7023 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 7024 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 7025 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 7026 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 7027 L_3C0059D1: 7028 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 7029 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 7030 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 7031 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 7032 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 7033 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 7034 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 7035 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 7036 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 7037 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 7038 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 7039 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 7040 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 7041 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7043 _flag_k = FK_CMP; 7044 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 7045 L_3C0059F7: 7046 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 7047 L_3C0059FA: 7048 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 7049 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 7050 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 7051 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 7052 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7054 _flag_k = FK_CMP; 7055 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 7056 L_3C005A08: 7057 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 7058 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 7059 L_3C005A0D: 7060 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 7061 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 7062 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7064 _flag_k = FK_CMP; 7065 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 7066 L_3C005A15: 7067 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 7068 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 7069 L_3C005A1A: 7070 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 7071 L_3C005A1C: 7072 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 7073 L_3C005A1F: 7074 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 7075 L_3C005A22: 7076 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 7077 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 7078 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 7079 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 7080 RECOMP_FLAGS_IN(); 7081 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 7082 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 7083 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7084 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7085 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 7086 _flag_k = FK_ADD; 7087 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7088 eax = eax - 1; /* 0x3C005A37: dec eax */ 7089 _flag_k = FK_DEC; 7090 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 7091 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 7092 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 7093 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 7094 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 7095 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 7096 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 7097 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 7098 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 7099 RECOMP_REGS_OUT(); 7100 } 7101 7102 void sub_3C005830(void) { 7103 int _fpu_cmp = 0; 7104 uint32_t _cf = 0; 7105 int _df = 1; 7106 uint32_t _flag_k = FK_NONE; 7107 uint32_t _flag_a = 0, _flag_b = 0; 7108 uint32_t _itail_tgt = 0; 7109 RECOMP_REGS_LOCALS 7110 RECOMP_ENTER(0x3C005830u); 7111 7112 goto L_3C005830; 7113 L_3C0057D4: 7114 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x3C0057D4: cmp byte ptr [eax + 0x10], bl */ 7115 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7117 _flag_k = FK_NARROW(FK_CMP, 24); 7118 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057D7: jne 0x3c005a22 */ 7119 L_3C0057DD: 7120 edx = MEM32(eax + 0x4); /* 0x3C0057DD: mov edx, dword ptr [eax + 4] */ 7121 ecx = MEM32(edx); /* 0x3C0057E0: mov ecx, dword ptr [edx] */ 7122 /* cmp eax, ecx */ /* 0x3C0057E2: cmp eax, ecx */ 7123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7125 _flag_k = FK_CMP; 7126 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005854; /* 0x3C0057E4: jne 0x3c005854 */ 7127 L_3C0057E6: 7128 ecx = MEM32(edx + 0x8); /* 0x3C0057E6: mov ecx, dword ptr [edx + 8] */ 7129 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057E9: mov dl, byte ptr [ecx + 0x10] */ 7130 /* test LO8(edx), LO8(edx) */ /* 0x3C0057EC: test dl, dl */ 7131 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7132 _cf = 0; 7133 _flag_k = FK_NARROW(FK_TEST, 24); 7134 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00583B; /* 0x3C0057EE: jne 0x3c00583b */ 7135 L_3C0057F0: 7136 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0057F0: mov byte ptr [ecx + 0x10], bl */ 7137 ecx = MEM32(eax + 0x4); /* 0x3C0057F3: mov ecx, dword ptr [eax + 4] */ 7138 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0057F6: mov byte ptr [ecx + 0x10], 0 */ 7139 ecx = MEM32(eax + 0x4); /* 0x3C0057FA: mov ecx, dword ptr [eax + 4] */ 7140 edx = MEM32(ecx + 0x8); /* 0x3C0057FD: mov edx, dword ptr [ecx + 8] */ 7141 esi = MEM32(edx); /* 0x3C005800: mov esi, dword ptr [edx] */ 7142 MEM32(ecx + 0x8) = esi; /* 0x3C005802: mov dword ptr [ecx + 8], esi */ 7143 esi = MEM32(edx); /* 0x3C005805: mov esi, dword ptr [edx] */ 7144 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005807: cmp esi, dword ptr [edi + 8] */ 7145 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7147 _flag_k = FK_CMP; 7148 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00580F; /* 0x3C00580A: je 0x3c00580f */ 7149 L_3C00580C: 7150 MEM32(esi + 0x4) = ecx; /* 0x3C00580C: mov dword ptr [esi + 4], ecx */ 7151 L_3C00580F: 7152 esi = MEM32(ecx + 0x4); /* 0x3C00580F: mov esi, dword ptr [ecx + 4] */ 7153 MEM32(edx + 0x4) = esi; /* 0x3C005812: mov dword ptr [edx + 4], esi */ 7154 esi = MEM32(edi + 0x4); /* 0x3C005815: mov esi, dword ptr [edi + 4] */ 7155 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005818: cmp ecx, dword ptr [esi + 4] */ 7156 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7158 _flag_k = FK_CMP; 7159 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005822; /* 0x3C00581B: jne 0x3c005822 */ 7160 L_3C00581D: 7161 MEM32(esi + 0x4) = edx; /* 0x3C00581D: mov dword ptr [esi + 4], edx */ 7162 goto L_3C005830; /* 0x3C005820: jmp 0x3c005830 */ 7163 L_3C005822: 7164 esi = MEM32(ecx + 0x4); /* 0x3C005822: mov esi, dword ptr [ecx + 4] */ 7165 /* cmp ecx, MEM32(esi) */ /* 0x3C005825: cmp ecx, dword ptr [esi] */ 7166 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7168 _flag_k = FK_CMP; 7169 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00582D; /* 0x3C005827: jne 0x3c00582d */ 7170 L_3C005829: 7171 MEM32(esi) = edx; /* 0x3C005829: mov dword ptr [esi], edx */ 7172 goto L_3C005830; /* 0x3C00582B: jmp 0x3c005830 */ 7173 L_3C00582D: 7174 MEM32(esi + 0x8) = edx; /* 0x3C00582D: mov dword ptr [esi + 8], edx */ 7175 L_3C005830: 7176 MEM32(edx) = ecx; /* 0x3C005830: mov dword ptr [edx], ecx */ 7177 MEM32(ecx + 0x4) = edx; /* 0x3C005832: mov dword ptr [ecx + 4], edx */ 7178 edx = MEM32(eax + 0x4); /* 0x3C005835: mov edx, dword ptr [eax + 4] */ 7179 ecx = MEM32(edx + 0x8); /* 0x3C005838: mov ecx, dword ptr [edx + 8] */ 7180 L_3C00583B: 7181 edx = MEM32(ecx); /* 0x3C00583B: mov edx, dword ptr [ecx] */ 7182 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C00583D: cmp byte ptr [edx + 0x10], bl */ 7183 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7185 _flag_k = FK_NARROW(FK_CMP, 24); 7186 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C005840: jne 0x3c0058d6 */ 7187 L_3C005846: 7188 edx = MEM32(ecx + 0x8); /* 0x3C005846: mov edx, dword ptr [ecx + 8] */ 7189 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005849: cmp byte ptr [edx + 0x10], bl */ 7190 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7192 _flag_k = FK_NARROW(FK_CMP, 24); 7193 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C00584C: jne 0x3c0058d6 */ 7194 L_3C005852: 7195 goto L_3C0058BE; /* 0x3C005852: jmp 0x3c0058be */ 7196 L_3C005854: 7197 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005854: mov dl, byte ptr [ecx + 0x10] */ 7198 /* test LO8(edx), LO8(edx) */ /* 0x3C005857: test dl, dl */ 7199 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7200 _cf = 0; 7201 _flag_k = FK_NARROW(FK_TEST, 24); 7202 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0058A7; /* 0x3C005859: jne 0x3c0058a7 */ 7203 L_3C00585B: 7204 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00585B: mov byte ptr [ecx + 0x10], bl */ 7205 ecx = MEM32(eax + 0x4); /* 0x3C00585E: mov ecx, dword ptr [eax + 4] */ 7206 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005861: mov byte ptr [ecx + 0x10], 0 */ 7207 ecx = MEM32(eax + 0x4); /* 0x3C005865: mov ecx, dword ptr [eax + 4] */ 7208 edx = MEM32(ecx); /* 0x3C005868: mov edx, dword ptr [ecx] */ 7209 esi = MEM32(edx + 0x8); /* 0x3C00586A: mov esi, dword ptr [edx + 8] */ 7210 MEM32(ecx) = esi; /* 0x3C00586D: mov dword ptr [ecx], esi */ 7211 esi = MEM32(edx + 0x8); /* 0x3C00586F: mov esi, dword ptr [edx + 8] */ 7212 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005872: cmp esi, dword ptr [edi + 8] */ 7213 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7215 _flag_k = FK_CMP; 7216 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00587A; /* 0x3C005875: je 0x3c00587a */ 7217 L_3C005877: 7218 MEM32(esi + 0x4) = ecx; /* 0x3C005877: mov dword ptr [esi + 4], ecx */ 7219 L_3C00587A: 7220 esi = MEM32(ecx + 0x4); /* 0x3C00587A: mov esi, dword ptr [ecx + 4] */ 7221 MEM32(edx + 0x4) = esi; /* 0x3C00587D: mov dword ptr [edx + 4], esi */ 7222 esi = MEM32(edi + 0x4); /* 0x3C005880: mov esi, dword ptr [edi + 4] */ 7223 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005883: cmp ecx, dword ptr [esi + 4] */ 7224 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7226 _flag_k = FK_CMP; 7227 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00588D; /* 0x3C005886: jne 0x3c00588d */ 7228 L_3C005888: 7229 MEM32(esi + 0x4) = edx; /* 0x3C005888: mov dword ptr [esi + 4], edx */ 7230 goto L_3C00589C; /* 0x3C00588B: jmp 0x3c00589c */ 7231 L_3C00588D: 7232 esi = MEM32(ecx + 0x4); /* 0x3C00588D: mov esi, dword ptr [ecx + 4] */ 7233 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005890: cmp ecx, dword ptr [esi + 8] */ 7234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7236 _flag_k = FK_CMP; 7237 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00589A; /* 0x3C005893: jne 0x3c00589a */ 7238 L_3C005895: 7239 MEM32(esi + 0x8) = edx; /* 0x3C005895: mov dword ptr [esi + 8], edx */ 7240 goto L_3C00589C; /* 0x3C005898: jmp 0x3c00589c */ 7241 L_3C00589A: 7242 MEM32(esi) = edx; /* 0x3C00589A: mov dword ptr [esi], edx */ 7243 L_3C00589C: 7244 MEM32(edx + 0x8) = ecx; /* 0x3C00589C: mov dword ptr [edx + 8], ecx */ 7245 MEM32(ecx + 0x4) = edx; /* 0x3C00589F: mov dword ptr [ecx + 4], edx */ 7246 edx = MEM32(eax + 0x4); /* 0x3C0058A2: mov edx, dword ptr [eax + 4] */ 7247 ecx = MEM32(edx); /* 0x3C0058A5: mov ecx, dword ptr [edx] */ 7248 L_3C0058A7: 7249 edx = MEM32(ecx + 0x8); /* 0x3C0058A7: mov edx, dword ptr [ecx + 8] */ 7250 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058AA: cmp byte ptr [edx + 0x10], bl */ 7251 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7253 _flag_k = FK_NARROW(FK_CMP, 24); 7254 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058AD: jne 0x3c005983 */ 7255 L_3C0058B3: 7256 edx = MEM32(ecx); /* 0x3C0058B3: mov edx, dword ptr [ecx] */ 7257 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058B5: cmp byte ptr [edx + 0x10], bl */ 7258 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7260 _flag_k = FK_NARROW(FK_CMP, 24); 7261 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058B8: jne 0x3c005983 */ 7262 L_3C0058BE: 7263 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058BE: mov byte ptr [ecx + 0x10], 0 */ 7264 ecx = MEM32(edi + 0x4); /* 0x3C0058C2: mov ecx, dword ptr [edi + 4] */ 7265 eax = MEM32(eax + 0x4); /* 0x3C0058C5: mov eax, dword ptr [eax + 4] */ 7266 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C0058C8: cmp eax, dword ptr [ecx + 4] */ 7267 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7269 _flag_k = FK_CMP; 7270 RECOMP_BACKEDGE(); 7271 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057D4; /* 0x3C0058CB: jne 0x3c0057d4 */ 7272 L_3C0058D1: 7273 goto L_3C005A22; /* 0x3C0058D1: jmp 0x3c005a22 */ 7274 L_3C0058D6: 7275 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 7276 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 7277 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7279 _flag_k = FK_NARROW(FK_CMP, 24); 7280 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 7281 L_3C0058DE: 7282 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 7283 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 7284 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 7285 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 7286 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 7287 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 7288 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 7289 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 7290 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7292 _flag_k = FK_CMP; 7293 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 7294 L_3C0058F6: 7295 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 7296 L_3C0058F9: 7297 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 7298 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 7299 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 7300 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 7301 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7303 _flag_k = FK_CMP; 7304 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 7305 L_3C005907: 7306 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 7307 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 7308 L_3C00590C: 7309 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 7310 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 7311 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7313 _flag_k = FK_CMP; 7314 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 7315 L_3C005914: 7316 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 7317 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 7318 L_3C005919: 7319 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 7320 L_3C00591B: 7321 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 7322 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 7323 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 7324 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 7325 L_3C005927: 7326 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 7327 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 7328 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 7329 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 7330 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 7331 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 7332 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 7333 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 7334 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 7335 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 7336 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 7337 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 7338 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 7339 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7341 _flag_k = FK_CMP; 7342 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 7343 L_3C00594E: 7344 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 7345 L_3C005951: 7346 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 7347 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 7348 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 7349 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 7350 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7352 _flag_k = FK_CMP; 7353 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 7354 L_3C00595F: 7355 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 7356 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 7357 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 7358 L_3C005969: 7359 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 7360 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 7361 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7363 _flag_k = FK_CMP; 7364 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 7365 L_3C005970: 7366 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 7367 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 7368 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 7369 L_3C005979: 7370 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 7371 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 7372 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 7373 L_3C005983: 7374 edx = MEM32(ecx); /* 0x3C005983: mov edx, dword ptr [ecx] */ 7375 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005985: cmp byte ptr [edx + 0x10], bl */ 7376 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7378 _flag_k = FK_NARROW(FK_CMP, 24); 7379 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059D1; /* 0x3C005988: jne 0x3c0059d1 */ 7380 L_3C00598A: 7381 edx = MEM32(ecx + 0x8); /* 0x3C00598A: mov edx, dword ptr [ecx + 8] */ 7382 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00598D: mov byte ptr [edx + 0x10], bl */ 7383 edx = MEM32(ecx + 0x8); /* 0x3C005990: mov edx, dword ptr [ecx + 8] */ 7384 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005993: mov byte ptr [ecx + 0x10], 0 */ 7385 esi = MEM32(edx); /* 0x3C005997: mov esi, dword ptr [edx] */ 7386 MEM32(ecx + 0x8) = esi; /* 0x3C005999: mov dword ptr [ecx + 8], esi */ 7387 esi = MEM32(edx); /* 0x3C00599C: mov esi, dword ptr [edx] */ 7388 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C00599E: cmp esi, dword ptr [edi + 8] */ 7389 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7391 _flag_k = FK_CMP; 7392 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059A6; /* 0x3C0059A1: je 0x3c0059a6 */ 7393 L_3C0059A3: 7394 MEM32(esi + 0x4) = ecx; /* 0x3C0059A3: mov dword ptr [esi + 4], ecx */ 7395 L_3C0059A6: 7396 esi = MEM32(ecx + 0x4); /* 0x3C0059A6: mov esi, dword ptr [ecx + 4] */ 7397 MEM32(edx + 0x4) = esi; /* 0x3C0059A9: mov dword ptr [edx + 4], esi */ 7398 esi = MEM32(edi + 0x4); /* 0x3C0059AC: mov esi, dword ptr [edi + 4] */ 7399 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C0059AF: cmp ecx, dword ptr [esi + 4] */ 7400 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7402 _flag_k = FK_CMP; 7403 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059B9; /* 0x3C0059B2: jne 0x3c0059b9 */ 7404 L_3C0059B4: 7405 MEM32(esi + 0x4) = edx; /* 0x3C0059B4: mov dword ptr [esi + 4], edx */ 7406 goto L_3C0059C7; /* 0x3C0059B7: jmp 0x3c0059c7 */ 7407 L_3C0059B9: 7408 esi = MEM32(ecx + 0x4); /* 0x3C0059B9: mov esi, dword ptr [ecx + 4] */ 7409 /* cmp ecx, MEM32(esi) */ /* 0x3C0059BC: cmp ecx, dword ptr [esi] */ 7410 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7412 _flag_k = FK_CMP; 7413 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059C4; /* 0x3C0059BE: jne 0x3c0059c4 */ 7414 L_3C0059C0: 7415 MEM32(esi) = edx; /* 0x3C0059C0: mov dword ptr [esi], edx */ 7416 goto L_3C0059C7; /* 0x3C0059C2: jmp 0x3c0059c7 */ 7417 L_3C0059C4: 7418 MEM32(esi + 0x8) = edx; /* 0x3C0059C4: mov dword ptr [esi + 8], edx */ 7419 L_3C0059C7: 7420 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 7421 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 7422 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 7423 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 7424 L_3C0059D1: 7425 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 7426 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 7427 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 7428 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 7429 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 7430 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 7431 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 7432 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 7433 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 7434 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 7435 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 7436 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 7437 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 7438 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7440 _flag_k = FK_CMP; 7441 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 7442 L_3C0059F7: 7443 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 7444 L_3C0059FA: 7445 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 7446 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 7447 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 7448 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 7449 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7451 _flag_k = FK_CMP; 7452 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 7453 L_3C005A08: 7454 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 7455 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 7456 L_3C005A0D: 7457 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 7458 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 7459 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7461 _flag_k = FK_CMP; 7462 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 7463 L_3C005A15: 7464 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 7465 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 7466 L_3C005A1A: 7467 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 7468 L_3C005A1C: 7469 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 7470 L_3C005A1F: 7471 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 7472 L_3C005A22: 7473 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 7474 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 7475 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 7476 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 7477 RECOMP_FLAGS_IN(); 7478 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 7479 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 7480 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7481 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7482 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 7483 _flag_k = FK_ADD; 7484 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7485 eax = eax - 1; /* 0x3C005A37: dec eax */ 7486 _flag_k = FK_DEC; 7487 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 7488 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 7489 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 7490 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 7491 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 7492 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 7493 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 7494 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 7495 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 7496 RECOMP_REGS_OUT(); 7497 } 7498 7499 void sub_3C00583B(void) { 7500 int _fpu_cmp = 0; 7501 uint32_t _cf = 0; 7502 int _df = 1; 7503 uint32_t _flag_k = FK_NONE; 7504 uint32_t _flag_a = 0, _flag_b = 0; 7505 uint32_t _itail_tgt = 0; 7506 RECOMP_REGS_LOCALS 7507 RECOMP_ENTER(0x3C00583Bu); 7508 7509 goto L_3C00583B; 7510 L_3C0057D4: 7511 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x3C0057D4: cmp byte ptr [eax + 0x10], bl */ 7512 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7514 _flag_k = FK_NARROW(FK_CMP, 24); 7515 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057D7: jne 0x3c005a22 */ 7516 L_3C0057DD: 7517 edx = MEM32(eax + 0x4); /* 0x3C0057DD: mov edx, dword ptr [eax + 4] */ 7518 ecx = MEM32(edx); /* 0x3C0057E0: mov ecx, dword ptr [edx] */ 7519 /* cmp eax, ecx */ /* 0x3C0057E2: cmp eax, ecx */ 7520 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7522 _flag_k = FK_CMP; 7523 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005854; /* 0x3C0057E4: jne 0x3c005854 */ 7524 L_3C0057E6: 7525 ecx = MEM32(edx + 0x8); /* 0x3C0057E6: mov ecx, dword ptr [edx + 8] */ 7526 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057E9: mov dl, byte ptr [ecx + 0x10] */ 7527 /* test LO8(edx), LO8(edx) */ /* 0x3C0057EC: test dl, dl */ 7528 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7529 _cf = 0; 7530 _flag_k = FK_NARROW(FK_TEST, 24); 7531 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00583B; /* 0x3C0057EE: jne 0x3c00583b */ 7532 L_3C0057F0: 7533 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0057F0: mov byte ptr [ecx + 0x10], bl */ 7534 ecx = MEM32(eax + 0x4); /* 0x3C0057F3: mov ecx, dword ptr [eax + 4] */ 7535 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0057F6: mov byte ptr [ecx + 0x10], 0 */ 7536 ecx = MEM32(eax + 0x4); /* 0x3C0057FA: mov ecx, dword ptr [eax + 4] */ 7537 edx = MEM32(ecx + 0x8); /* 0x3C0057FD: mov edx, dword ptr [ecx + 8] */ 7538 esi = MEM32(edx); /* 0x3C005800: mov esi, dword ptr [edx] */ 7539 MEM32(ecx + 0x8) = esi; /* 0x3C005802: mov dword ptr [ecx + 8], esi */ 7540 esi = MEM32(edx); /* 0x3C005805: mov esi, dword ptr [edx] */ 7541 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005807: cmp esi, dword ptr [edi + 8] */ 7542 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7544 _flag_k = FK_CMP; 7545 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00580F; /* 0x3C00580A: je 0x3c00580f */ 7546 L_3C00580C: 7547 MEM32(esi + 0x4) = ecx; /* 0x3C00580C: mov dword ptr [esi + 4], ecx */ 7548 L_3C00580F: 7549 esi = MEM32(ecx + 0x4); /* 0x3C00580F: mov esi, dword ptr [ecx + 4] */ 7550 MEM32(edx + 0x4) = esi; /* 0x3C005812: mov dword ptr [edx + 4], esi */ 7551 esi = MEM32(edi + 0x4); /* 0x3C005815: mov esi, dword ptr [edi + 4] */ 7552 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005818: cmp ecx, dword ptr [esi + 4] */ 7553 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7555 _flag_k = FK_CMP; 7556 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005822; /* 0x3C00581B: jne 0x3c005822 */ 7557 L_3C00581D: 7558 MEM32(esi + 0x4) = edx; /* 0x3C00581D: mov dword ptr [esi + 4], edx */ 7559 goto L_3C005830; /* 0x3C005820: jmp 0x3c005830 */ 7560 L_3C005822: 7561 esi = MEM32(ecx + 0x4); /* 0x3C005822: mov esi, dword ptr [ecx + 4] */ 7562 /* cmp ecx, MEM32(esi) */ /* 0x3C005825: cmp ecx, dword ptr [esi] */ 7563 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7565 _flag_k = FK_CMP; 7566 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00582D; /* 0x3C005827: jne 0x3c00582d */ 7567 L_3C005829: 7568 MEM32(esi) = edx; /* 0x3C005829: mov dword ptr [esi], edx */ 7569 goto L_3C005830; /* 0x3C00582B: jmp 0x3c005830 */ 7570 L_3C00582D: 7571 MEM32(esi + 0x8) = edx; /* 0x3C00582D: mov dword ptr [esi + 8], edx */ 7572 L_3C005830: 7573 MEM32(edx) = ecx; /* 0x3C005830: mov dword ptr [edx], ecx */ 7574 MEM32(ecx + 0x4) = edx; /* 0x3C005832: mov dword ptr [ecx + 4], edx */ 7575 edx = MEM32(eax + 0x4); /* 0x3C005835: mov edx, dword ptr [eax + 4] */ 7576 ecx = MEM32(edx + 0x8); /* 0x3C005838: mov ecx, dword ptr [edx + 8] */ 7577 L_3C00583B: 7578 edx = MEM32(ecx); /* 0x3C00583B: mov edx, dword ptr [ecx] */ 7579 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C00583D: cmp byte ptr [edx + 0x10], bl */ 7580 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7582 _flag_k = FK_NARROW(FK_CMP, 24); 7583 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C005840: jne 0x3c0058d6 */ 7584 L_3C005846: 7585 edx = MEM32(ecx + 0x8); /* 0x3C005846: mov edx, dword ptr [ecx + 8] */ 7586 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005849: cmp byte ptr [edx + 0x10], bl */ 7587 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7589 _flag_k = FK_NARROW(FK_CMP, 24); 7590 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C00584C: jne 0x3c0058d6 */ 7591 L_3C005852: 7592 goto L_3C0058BE; /* 0x3C005852: jmp 0x3c0058be */ 7593 L_3C005854: 7594 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005854: mov dl, byte ptr [ecx + 0x10] */ 7595 /* test LO8(edx), LO8(edx) */ /* 0x3C005857: test dl, dl */ 7596 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7597 _cf = 0; 7598 _flag_k = FK_NARROW(FK_TEST, 24); 7599 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0058A7; /* 0x3C005859: jne 0x3c0058a7 */ 7600 L_3C00585B: 7601 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00585B: mov byte ptr [ecx + 0x10], bl */ 7602 ecx = MEM32(eax + 0x4); /* 0x3C00585E: mov ecx, dword ptr [eax + 4] */ 7603 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005861: mov byte ptr [ecx + 0x10], 0 */ 7604 ecx = MEM32(eax + 0x4); /* 0x3C005865: mov ecx, dword ptr [eax + 4] */ 7605 edx = MEM32(ecx); /* 0x3C005868: mov edx, dword ptr [ecx] */ 7606 esi = MEM32(edx + 0x8); /* 0x3C00586A: mov esi, dword ptr [edx + 8] */ 7607 MEM32(ecx) = esi; /* 0x3C00586D: mov dword ptr [ecx], esi */ 7608 esi = MEM32(edx + 0x8); /* 0x3C00586F: mov esi, dword ptr [edx + 8] */ 7609 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005872: cmp esi, dword ptr [edi + 8] */ 7610 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7612 _flag_k = FK_CMP; 7613 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00587A; /* 0x3C005875: je 0x3c00587a */ 7614 L_3C005877: 7615 MEM32(esi + 0x4) = ecx; /* 0x3C005877: mov dword ptr [esi + 4], ecx */ 7616 L_3C00587A: 7617 esi = MEM32(ecx + 0x4); /* 0x3C00587A: mov esi, dword ptr [ecx + 4] */ 7618 MEM32(edx + 0x4) = esi; /* 0x3C00587D: mov dword ptr [edx + 4], esi */ 7619 esi = MEM32(edi + 0x4); /* 0x3C005880: mov esi, dword ptr [edi + 4] */ 7620 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005883: cmp ecx, dword ptr [esi + 4] */ 7621 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7623 _flag_k = FK_CMP; 7624 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00588D; /* 0x3C005886: jne 0x3c00588d */ 7625 L_3C005888: 7626 MEM32(esi + 0x4) = edx; /* 0x3C005888: mov dword ptr [esi + 4], edx */ 7627 goto L_3C00589C; /* 0x3C00588B: jmp 0x3c00589c */ 7628 L_3C00588D: 7629 esi = MEM32(ecx + 0x4); /* 0x3C00588D: mov esi, dword ptr [ecx + 4] */ 7630 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005890: cmp ecx, dword ptr [esi + 8] */ 7631 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7633 _flag_k = FK_CMP; 7634 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00589A; /* 0x3C005893: jne 0x3c00589a */ 7635 L_3C005895: 7636 MEM32(esi + 0x8) = edx; /* 0x3C005895: mov dword ptr [esi + 8], edx */ 7637 goto L_3C00589C; /* 0x3C005898: jmp 0x3c00589c */ 7638 L_3C00589A: 7639 MEM32(esi) = edx; /* 0x3C00589A: mov dword ptr [esi], edx */ 7640 L_3C00589C: 7641 MEM32(edx + 0x8) = ecx; /* 0x3C00589C: mov dword ptr [edx + 8], ecx */ 7642 MEM32(ecx + 0x4) = edx; /* 0x3C00589F: mov dword ptr [ecx + 4], edx */ 7643 edx = MEM32(eax + 0x4); /* 0x3C0058A2: mov edx, dword ptr [eax + 4] */ 7644 ecx = MEM32(edx); /* 0x3C0058A5: mov ecx, dword ptr [edx] */ 7645 L_3C0058A7: 7646 edx = MEM32(ecx + 0x8); /* 0x3C0058A7: mov edx, dword ptr [ecx + 8] */ 7647 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058AA: cmp byte ptr [edx + 0x10], bl */ 7648 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7650 _flag_k = FK_NARROW(FK_CMP, 24); 7651 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058AD: jne 0x3c005983 */ 7652 L_3C0058B3: 7653 edx = MEM32(ecx); /* 0x3C0058B3: mov edx, dword ptr [ecx] */ 7654 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058B5: cmp byte ptr [edx + 0x10], bl */ 7655 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7657 _flag_k = FK_NARROW(FK_CMP, 24); 7658 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058B8: jne 0x3c005983 */ 7659 L_3C0058BE: 7660 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058BE: mov byte ptr [ecx + 0x10], 0 */ 7661 ecx = MEM32(edi + 0x4); /* 0x3C0058C2: mov ecx, dword ptr [edi + 4] */ 7662 eax = MEM32(eax + 0x4); /* 0x3C0058C5: mov eax, dword ptr [eax + 4] */ 7663 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C0058C8: cmp eax, dword ptr [ecx + 4] */ 7664 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7666 _flag_k = FK_CMP; 7667 RECOMP_BACKEDGE(); 7668 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057D4; /* 0x3C0058CB: jne 0x3c0057d4 */ 7669 L_3C0058D1: 7670 goto L_3C005A22; /* 0x3C0058D1: jmp 0x3c005a22 */ 7671 L_3C0058D6: 7672 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 7673 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 7674 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7676 _flag_k = FK_NARROW(FK_CMP, 24); 7677 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 7678 L_3C0058DE: 7679 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 7680 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 7681 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 7682 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 7683 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 7684 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 7685 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 7686 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 7687 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7689 _flag_k = FK_CMP; 7690 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 7691 L_3C0058F6: 7692 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 7693 L_3C0058F9: 7694 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 7695 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 7696 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 7697 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 7698 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7700 _flag_k = FK_CMP; 7701 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 7702 L_3C005907: 7703 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 7704 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 7705 L_3C00590C: 7706 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 7707 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 7708 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7710 _flag_k = FK_CMP; 7711 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 7712 L_3C005914: 7713 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 7714 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 7715 L_3C005919: 7716 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 7717 L_3C00591B: 7718 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 7719 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 7720 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 7721 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 7722 L_3C005927: 7723 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 7724 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 7725 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 7726 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 7727 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 7728 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 7729 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 7730 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 7731 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 7732 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 7733 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 7734 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 7735 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 7736 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7738 _flag_k = FK_CMP; 7739 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 7740 L_3C00594E: 7741 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 7742 L_3C005951: 7743 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 7744 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 7745 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 7746 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 7747 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7749 _flag_k = FK_CMP; 7750 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 7751 L_3C00595F: 7752 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 7753 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 7754 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 7755 L_3C005969: 7756 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 7757 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 7758 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7760 _flag_k = FK_CMP; 7761 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 7762 L_3C005970: 7763 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 7764 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 7765 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 7766 L_3C005979: 7767 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 7768 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 7769 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 7770 L_3C005983: 7771 edx = MEM32(ecx); /* 0x3C005983: mov edx, dword ptr [ecx] */ 7772 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005985: cmp byte ptr [edx + 0x10], bl */ 7773 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7775 _flag_k = FK_NARROW(FK_CMP, 24); 7776 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059D1; /* 0x3C005988: jne 0x3c0059d1 */ 7777 L_3C00598A: 7778 edx = MEM32(ecx + 0x8); /* 0x3C00598A: mov edx, dword ptr [ecx + 8] */ 7779 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00598D: mov byte ptr [edx + 0x10], bl */ 7780 edx = MEM32(ecx + 0x8); /* 0x3C005990: mov edx, dword ptr [ecx + 8] */ 7781 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005993: mov byte ptr [ecx + 0x10], 0 */ 7782 esi = MEM32(edx); /* 0x3C005997: mov esi, dword ptr [edx] */ 7783 MEM32(ecx + 0x8) = esi; /* 0x3C005999: mov dword ptr [ecx + 8], esi */ 7784 esi = MEM32(edx); /* 0x3C00599C: mov esi, dword ptr [edx] */ 7785 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C00599E: cmp esi, dword ptr [edi + 8] */ 7786 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7788 _flag_k = FK_CMP; 7789 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059A6; /* 0x3C0059A1: je 0x3c0059a6 */ 7790 L_3C0059A3: 7791 MEM32(esi + 0x4) = ecx; /* 0x3C0059A3: mov dword ptr [esi + 4], ecx */ 7792 L_3C0059A6: 7793 esi = MEM32(ecx + 0x4); /* 0x3C0059A6: mov esi, dword ptr [ecx + 4] */ 7794 MEM32(edx + 0x4) = esi; /* 0x3C0059A9: mov dword ptr [edx + 4], esi */ 7795 esi = MEM32(edi + 0x4); /* 0x3C0059AC: mov esi, dword ptr [edi + 4] */ 7796 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C0059AF: cmp ecx, dword ptr [esi + 4] */ 7797 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7799 _flag_k = FK_CMP; 7800 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059B9; /* 0x3C0059B2: jne 0x3c0059b9 */ 7801 L_3C0059B4: 7802 MEM32(esi + 0x4) = edx; /* 0x3C0059B4: mov dword ptr [esi + 4], edx */ 7803 goto L_3C0059C7; /* 0x3C0059B7: jmp 0x3c0059c7 */ 7804 L_3C0059B9: 7805 esi = MEM32(ecx + 0x4); /* 0x3C0059B9: mov esi, dword ptr [ecx + 4] */ 7806 /* cmp ecx, MEM32(esi) */ /* 0x3C0059BC: cmp ecx, dword ptr [esi] */ 7807 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7809 _flag_k = FK_CMP; 7810 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059C4; /* 0x3C0059BE: jne 0x3c0059c4 */ 7811 L_3C0059C0: 7812 MEM32(esi) = edx; /* 0x3C0059C0: mov dword ptr [esi], edx */ 7813 goto L_3C0059C7; /* 0x3C0059C2: jmp 0x3c0059c7 */ 7814 L_3C0059C4: 7815 MEM32(esi + 0x8) = edx; /* 0x3C0059C4: mov dword ptr [esi + 8], edx */ 7816 L_3C0059C7: 7817 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 7818 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 7819 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 7820 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 7821 L_3C0059D1: 7822 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 7823 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 7824 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 7825 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 7826 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 7827 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 7828 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 7829 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 7830 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 7831 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 7832 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 7833 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 7834 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 7835 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7837 _flag_k = FK_CMP; 7838 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 7839 L_3C0059F7: 7840 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 7841 L_3C0059FA: 7842 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 7843 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 7844 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 7845 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 7846 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7848 _flag_k = FK_CMP; 7849 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 7850 L_3C005A08: 7851 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 7852 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 7853 L_3C005A0D: 7854 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 7855 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 7856 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7858 _flag_k = FK_CMP; 7859 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 7860 L_3C005A15: 7861 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 7862 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 7863 L_3C005A1A: 7864 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 7865 L_3C005A1C: 7866 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 7867 L_3C005A1F: 7868 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 7869 L_3C005A22: 7870 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 7871 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 7872 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 7873 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 7874 RECOMP_FLAGS_IN(); 7875 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 7876 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 7877 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7878 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7879 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 7880 _flag_k = FK_ADD; 7881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7882 eax = eax - 1; /* 0x3C005A37: dec eax */ 7883 _flag_k = FK_DEC; 7884 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 7885 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 7886 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 7887 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 7888 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 7889 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 7890 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 7891 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 7892 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 7893 RECOMP_REGS_OUT(); 7894 } 7895 7896 void sub_3C005854(void) { 7897 int _fpu_cmp = 0; 7898 uint32_t _cf = 0; 7899 int _df = 1; 7900 uint32_t _flag_k = FK_NONE; 7901 uint32_t _flag_a = 0, _flag_b = 0; 7902 uint32_t _itail_tgt = 0; 7903 RECOMP_REGS_LOCALS 7904 RECOMP_ENTER(0x3C005854u); 7905 7906 goto L_3C005854; 7907 L_3C0057D4: 7908 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x3C0057D4: cmp byte ptr [eax + 0x10], bl */ 7909 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7911 _flag_k = FK_NARROW(FK_CMP, 24); 7912 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057D7: jne 0x3c005a22 */ 7913 L_3C0057DD: 7914 edx = MEM32(eax + 0x4); /* 0x3C0057DD: mov edx, dword ptr [eax + 4] */ 7915 ecx = MEM32(edx); /* 0x3C0057E0: mov ecx, dword ptr [edx] */ 7916 /* cmp eax, ecx */ /* 0x3C0057E2: cmp eax, ecx */ 7917 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7919 _flag_k = FK_CMP; 7920 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005854; /* 0x3C0057E4: jne 0x3c005854 */ 7921 L_3C0057E6: 7922 ecx = MEM32(edx + 0x8); /* 0x3C0057E6: mov ecx, dword ptr [edx + 8] */ 7923 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057E9: mov dl, byte ptr [ecx + 0x10] */ 7924 /* test LO8(edx), LO8(edx) */ /* 0x3C0057EC: test dl, dl */ 7925 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7926 _cf = 0; 7927 _flag_k = FK_NARROW(FK_TEST, 24); 7928 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00583B; /* 0x3C0057EE: jne 0x3c00583b */ 7929 L_3C0057F0: 7930 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0057F0: mov byte ptr [ecx + 0x10], bl */ 7931 ecx = MEM32(eax + 0x4); /* 0x3C0057F3: mov ecx, dword ptr [eax + 4] */ 7932 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0057F6: mov byte ptr [ecx + 0x10], 0 */ 7933 ecx = MEM32(eax + 0x4); /* 0x3C0057FA: mov ecx, dword ptr [eax + 4] */ 7934 edx = MEM32(ecx + 0x8); /* 0x3C0057FD: mov edx, dword ptr [ecx + 8] */ 7935 esi = MEM32(edx); /* 0x3C005800: mov esi, dword ptr [edx] */ 7936 MEM32(ecx + 0x8) = esi; /* 0x3C005802: mov dword ptr [ecx + 8], esi */ 7937 esi = MEM32(edx); /* 0x3C005805: mov esi, dword ptr [edx] */ 7938 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005807: cmp esi, dword ptr [edi + 8] */ 7939 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7941 _flag_k = FK_CMP; 7942 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00580F; /* 0x3C00580A: je 0x3c00580f */ 7943 L_3C00580C: 7944 MEM32(esi + 0x4) = ecx; /* 0x3C00580C: mov dword ptr [esi + 4], ecx */ 7945 L_3C00580F: 7946 esi = MEM32(ecx + 0x4); /* 0x3C00580F: mov esi, dword ptr [ecx + 4] */ 7947 MEM32(edx + 0x4) = esi; /* 0x3C005812: mov dword ptr [edx + 4], esi */ 7948 esi = MEM32(edi + 0x4); /* 0x3C005815: mov esi, dword ptr [edi + 4] */ 7949 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005818: cmp ecx, dword ptr [esi + 4] */ 7950 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7952 _flag_k = FK_CMP; 7953 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005822; /* 0x3C00581B: jne 0x3c005822 */ 7954 L_3C00581D: 7955 MEM32(esi + 0x4) = edx; /* 0x3C00581D: mov dword ptr [esi + 4], edx */ 7956 goto L_3C005830; /* 0x3C005820: jmp 0x3c005830 */ 7957 L_3C005822: 7958 esi = MEM32(ecx + 0x4); /* 0x3C005822: mov esi, dword ptr [ecx + 4] */ 7959 /* cmp ecx, MEM32(esi) */ /* 0x3C005825: cmp ecx, dword ptr [esi] */ 7960 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7962 _flag_k = FK_CMP; 7963 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00582D; /* 0x3C005827: jne 0x3c00582d */ 7964 L_3C005829: 7965 MEM32(esi) = edx; /* 0x3C005829: mov dword ptr [esi], edx */ 7966 goto L_3C005830; /* 0x3C00582B: jmp 0x3c005830 */ 7967 L_3C00582D: 7968 MEM32(esi + 0x8) = edx; /* 0x3C00582D: mov dword ptr [esi + 8], edx */ 7969 L_3C005830: 7970 MEM32(edx) = ecx; /* 0x3C005830: mov dword ptr [edx], ecx */ 7971 MEM32(ecx + 0x4) = edx; /* 0x3C005832: mov dword ptr [ecx + 4], edx */ 7972 edx = MEM32(eax + 0x4); /* 0x3C005835: mov edx, dword ptr [eax + 4] */ 7973 ecx = MEM32(edx + 0x8); /* 0x3C005838: mov ecx, dword ptr [edx + 8] */ 7974 L_3C00583B: 7975 edx = MEM32(ecx); /* 0x3C00583B: mov edx, dword ptr [ecx] */ 7976 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C00583D: cmp byte ptr [edx + 0x10], bl */ 7977 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7979 _flag_k = FK_NARROW(FK_CMP, 24); 7980 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C005840: jne 0x3c0058d6 */ 7981 L_3C005846: 7982 edx = MEM32(ecx + 0x8); /* 0x3C005846: mov edx, dword ptr [ecx + 8] */ 7983 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005849: cmp byte ptr [edx + 0x10], bl */ 7984 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7986 _flag_k = FK_NARROW(FK_CMP, 24); 7987 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C00584C: jne 0x3c0058d6 */ 7988 L_3C005852: 7989 goto L_3C0058BE; /* 0x3C005852: jmp 0x3c0058be */ 7990 L_3C005854: 7991 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005854: mov dl, byte ptr [ecx + 0x10] */ 7992 /* test LO8(edx), LO8(edx) */ /* 0x3C005857: test dl, dl */ 7993 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7994 _cf = 0; 7995 _flag_k = FK_NARROW(FK_TEST, 24); 7996 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0058A7; /* 0x3C005859: jne 0x3c0058a7 */ 7997 L_3C00585B: 7998 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00585B: mov byte ptr [ecx + 0x10], bl */ 7999 ecx = MEM32(eax + 0x4); /* 0x3C00585E: mov ecx, dword ptr [eax + 4] */ 8000 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005861: mov byte ptr [ecx + 0x10], 0 */ 8001 ecx = MEM32(eax + 0x4); /* 0x3C005865: mov ecx, dword ptr [eax + 4] */ 8002 edx = MEM32(ecx); /* 0x3C005868: mov edx, dword ptr [ecx] */ 8003 esi = MEM32(edx + 0x8); /* 0x3C00586A: mov esi, dword ptr [edx + 8] */ 8004 MEM32(ecx) = esi; /* 0x3C00586D: mov dword ptr [ecx], esi */ 8005 esi = MEM32(edx + 0x8); /* 0x3C00586F: mov esi, dword ptr [edx + 8] */ 8006 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005872: cmp esi, dword ptr [edi + 8] */ 8007 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8009 _flag_k = FK_CMP; 8010 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00587A; /* 0x3C005875: je 0x3c00587a */ 8011 L_3C005877: 8012 MEM32(esi + 0x4) = ecx; /* 0x3C005877: mov dword ptr [esi + 4], ecx */ 8013 L_3C00587A: 8014 esi = MEM32(ecx + 0x4); /* 0x3C00587A: mov esi, dword ptr [ecx + 4] */ 8015 MEM32(edx + 0x4) = esi; /* 0x3C00587D: mov dword ptr [edx + 4], esi */ 8016 esi = MEM32(edi + 0x4); /* 0x3C005880: mov esi, dword ptr [edi + 4] */ 8017 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005883: cmp ecx, dword ptr [esi + 4] */ 8018 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8020 _flag_k = FK_CMP; 8021 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00588D; /* 0x3C005886: jne 0x3c00588d */ 8022 L_3C005888: 8023 MEM32(esi + 0x4) = edx; /* 0x3C005888: mov dword ptr [esi + 4], edx */ 8024 goto L_3C00589C; /* 0x3C00588B: jmp 0x3c00589c */ 8025 L_3C00588D: 8026 esi = MEM32(ecx + 0x4); /* 0x3C00588D: mov esi, dword ptr [ecx + 4] */ 8027 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005890: cmp ecx, dword ptr [esi + 8] */ 8028 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8030 _flag_k = FK_CMP; 8031 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00589A; /* 0x3C005893: jne 0x3c00589a */ 8032 L_3C005895: 8033 MEM32(esi + 0x8) = edx; /* 0x3C005895: mov dword ptr [esi + 8], edx */ 8034 goto L_3C00589C; /* 0x3C005898: jmp 0x3c00589c */ 8035 L_3C00589A: 8036 MEM32(esi) = edx; /* 0x3C00589A: mov dword ptr [esi], edx */ 8037 L_3C00589C: 8038 MEM32(edx + 0x8) = ecx; /* 0x3C00589C: mov dword ptr [edx + 8], ecx */ 8039 MEM32(ecx + 0x4) = edx; /* 0x3C00589F: mov dword ptr [ecx + 4], edx */ 8040 edx = MEM32(eax + 0x4); /* 0x3C0058A2: mov edx, dword ptr [eax + 4] */ 8041 ecx = MEM32(edx); /* 0x3C0058A5: mov ecx, dword ptr [edx] */ 8042 L_3C0058A7: 8043 edx = MEM32(ecx + 0x8); /* 0x3C0058A7: mov edx, dword ptr [ecx + 8] */ 8044 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058AA: cmp byte ptr [edx + 0x10], bl */ 8045 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8047 _flag_k = FK_NARROW(FK_CMP, 24); 8048 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058AD: jne 0x3c005983 */ 8049 L_3C0058B3: 8050 edx = MEM32(ecx); /* 0x3C0058B3: mov edx, dword ptr [ecx] */ 8051 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058B5: cmp byte ptr [edx + 0x10], bl */ 8052 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8054 _flag_k = FK_NARROW(FK_CMP, 24); 8055 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058B8: jne 0x3c005983 */ 8056 L_3C0058BE: 8057 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058BE: mov byte ptr [ecx + 0x10], 0 */ 8058 ecx = MEM32(edi + 0x4); /* 0x3C0058C2: mov ecx, dword ptr [edi + 4] */ 8059 eax = MEM32(eax + 0x4); /* 0x3C0058C5: mov eax, dword ptr [eax + 4] */ 8060 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C0058C8: cmp eax, dword ptr [ecx + 4] */ 8061 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8063 _flag_k = FK_CMP; 8064 RECOMP_BACKEDGE(); 8065 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057D4; /* 0x3C0058CB: jne 0x3c0057d4 */ 8066 L_3C0058D1: 8067 goto L_3C005A22; /* 0x3C0058D1: jmp 0x3c005a22 */ 8068 L_3C0058D6: 8069 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 8070 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 8071 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8073 _flag_k = FK_NARROW(FK_CMP, 24); 8074 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 8075 L_3C0058DE: 8076 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 8077 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 8078 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 8079 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 8080 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 8081 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 8082 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 8083 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 8084 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8086 _flag_k = FK_CMP; 8087 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 8088 L_3C0058F6: 8089 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 8090 L_3C0058F9: 8091 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 8092 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 8093 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 8094 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 8095 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8097 _flag_k = FK_CMP; 8098 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 8099 L_3C005907: 8100 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 8101 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 8102 L_3C00590C: 8103 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 8104 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 8105 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8107 _flag_k = FK_CMP; 8108 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 8109 L_3C005914: 8110 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 8111 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 8112 L_3C005919: 8113 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 8114 L_3C00591B: 8115 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 8116 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 8117 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 8118 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 8119 L_3C005927: 8120 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 8121 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 8122 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 8123 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 8124 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 8125 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 8126 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 8127 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 8128 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 8129 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 8130 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 8131 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 8132 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 8133 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8135 _flag_k = FK_CMP; 8136 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 8137 L_3C00594E: 8138 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 8139 L_3C005951: 8140 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 8141 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 8142 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 8143 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 8144 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8146 _flag_k = FK_CMP; 8147 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 8148 L_3C00595F: 8149 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 8150 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 8151 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 8152 L_3C005969: 8153 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 8154 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 8155 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8157 _flag_k = FK_CMP; 8158 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 8159 L_3C005970: 8160 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 8161 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 8162 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 8163 L_3C005979: 8164 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 8165 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 8166 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 8167 L_3C005983: 8168 edx = MEM32(ecx); /* 0x3C005983: mov edx, dword ptr [ecx] */ 8169 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005985: cmp byte ptr [edx + 0x10], bl */ 8170 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8172 _flag_k = FK_NARROW(FK_CMP, 24); 8173 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059D1; /* 0x3C005988: jne 0x3c0059d1 */ 8174 L_3C00598A: 8175 edx = MEM32(ecx + 0x8); /* 0x3C00598A: mov edx, dword ptr [ecx + 8] */ 8176 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00598D: mov byte ptr [edx + 0x10], bl */ 8177 edx = MEM32(ecx + 0x8); /* 0x3C005990: mov edx, dword ptr [ecx + 8] */ 8178 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005993: mov byte ptr [ecx + 0x10], 0 */ 8179 esi = MEM32(edx); /* 0x3C005997: mov esi, dword ptr [edx] */ 8180 MEM32(ecx + 0x8) = esi; /* 0x3C005999: mov dword ptr [ecx + 8], esi */ 8181 esi = MEM32(edx); /* 0x3C00599C: mov esi, dword ptr [edx] */ 8182 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C00599E: cmp esi, dword ptr [edi + 8] */ 8183 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8185 _flag_k = FK_CMP; 8186 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059A6; /* 0x3C0059A1: je 0x3c0059a6 */ 8187 L_3C0059A3: 8188 MEM32(esi + 0x4) = ecx; /* 0x3C0059A3: mov dword ptr [esi + 4], ecx */ 8189 L_3C0059A6: 8190 esi = MEM32(ecx + 0x4); /* 0x3C0059A6: mov esi, dword ptr [ecx + 4] */ 8191 MEM32(edx + 0x4) = esi; /* 0x3C0059A9: mov dword ptr [edx + 4], esi */ 8192 esi = MEM32(edi + 0x4); /* 0x3C0059AC: mov esi, dword ptr [edi + 4] */ 8193 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C0059AF: cmp ecx, dword ptr [esi + 4] */ 8194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8196 _flag_k = FK_CMP; 8197 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059B9; /* 0x3C0059B2: jne 0x3c0059b9 */ 8198 L_3C0059B4: 8199 MEM32(esi + 0x4) = edx; /* 0x3C0059B4: mov dword ptr [esi + 4], edx */ 8200 goto L_3C0059C7; /* 0x3C0059B7: jmp 0x3c0059c7 */ 8201 L_3C0059B9: 8202 esi = MEM32(ecx + 0x4); /* 0x3C0059B9: mov esi, dword ptr [ecx + 4] */ 8203 /* cmp ecx, MEM32(esi) */ /* 0x3C0059BC: cmp ecx, dword ptr [esi] */ 8204 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8206 _flag_k = FK_CMP; 8207 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059C4; /* 0x3C0059BE: jne 0x3c0059c4 */ 8208 L_3C0059C0: 8209 MEM32(esi) = edx; /* 0x3C0059C0: mov dword ptr [esi], edx */ 8210 goto L_3C0059C7; /* 0x3C0059C2: jmp 0x3c0059c7 */ 8211 L_3C0059C4: 8212 MEM32(esi + 0x8) = edx; /* 0x3C0059C4: mov dword ptr [esi + 8], edx */ 8213 L_3C0059C7: 8214 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 8215 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 8216 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 8217 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 8218 L_3C0059D1: 8219 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 8220 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 8221 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 8222 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 8223 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 8224 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 8225 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 8226 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 8227 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 8228 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 8229 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 8230 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 8231 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 8232 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8234 _flag_k = FK_CMP; 8235 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 8236 L_3C0059F7: 8237 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 8238 L_3C0059FA: 8239 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 8240 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 8241 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 8242 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 8243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8245 _flag_k = FK_CMP; 8246 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 8247 L_3C005A08: 8248 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 8249 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 8250 L_3C005A0D: 8251 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 8252 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 8253 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 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_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 8257 L_3C005A15: 8258 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 8259 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 8260 L_3C005A1A: 8261 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 8262 L_3C005A1C: 8263 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 8264 L_3C005A1F: 8265 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 8266 L_3C005A22: 8267 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 8268 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 8269 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 8270 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 8271 RECOMP_FLAGS_IN(); 8272 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 8273 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 8274 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8275 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8276 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 8277 _flag_k = FK_ADD; 8278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8279 eax = eax - 1; /* 0x3C005A37: dec eax */ 8280 _flag_k = FK_DEC; 8281 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 8282 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 8283 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 8284 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 8285 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 8286 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 8287 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 8288 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 8289 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 8290 RECOMP_REGS_OUT(); 8291 } 8292 8293 void sub_3C00589C(void) { 8294 int _fpu_cmp = 0; 8295 uint32_t _cf = 0; 8296 int _df = 1; 8297 uint32_t _flag_k = FK_NONE; 8298 uint32_t _flag_a = 0, _flag_b = 0; 8299 uint32_t _itail_tgt = 0; 8300 RECOMP_REGS_LOCALS 8301 RECOMP_ENTER(0x3C00589Cu); 8302 8303 goto L_3C00589C; 8304 L_3C0057D4: 8305 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x3C0057D4: cmp byte ptr [eax + 0x10], bl */ 8306 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8308 _flag_k = FK_NARROW(FK_CMP, 24); 8309 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057D7: jne 0x3c005a22 */ 8310 L_3C0057DD: 8311 edx = MEM32(eax + 0x4); /* 0x3C0057DD: mov edx, dword ptr [eax + 4] */ 8312 ecx = MEM32(edx); /* 0x3C0057E0: mov ecx, dword ptr [edx] */ 8313 /* cmp eax, ecx */ /* 0x3C0057E2: cmp eax, ecx */ 8314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8316 _flag_k = FK_CMP; 8317 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005854; /* 0x3C0057E4: jne 0x3c005854 */ 8318 L_3C0057E6: 8319 ecx = MEM32(edx + 0x8); /* 0x3C0057E6: mov ecx, dword ptr [edx + 8] */ 8320 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057E9: mov dl, byte ptr [ecx + 0x10] */ 8321 /* test LO8(edx), LO8(edx) */ /* 0x3C0057EC: test dl, dl */ 8322 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8323 _cf = 0; 8324 _flag_k = FK_NARROW(FK_TEST, 24); 8325 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00583B; /* 0x3C0057EE: jne 0x3c00583b */ 8326 L_3C0057F0: 8327 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0057F0: mov byte ptr [ecx + 0x10], bl */ 8328 ecx = MEM32(eax + 0x4); /* 0x3C0057F3: mov ecx, dword ptr [eax + 4] */ 8329 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0057F6: mov byte ptr [ecx + 0x10], 0 */ 8330 ecx = MEM32(eax + 0x4); /* 0x3C0057FA: mov ecx, dword ptr [eax + 4] */ 8331 edx = MEM32(ecx + 0x8); /* 0x3C0057FD: mov edx, dword ptr [ecx + 8] */ 8332 esi = MEM32(edx); /* 0x3C005800: mov esi, dword ptr [edx] */ 8333 MEM32(ecx + 0x8) = esi; /* 0x3C005802: mov dword ptr [ecx + 8], esi */ 8334 esi = MEM32(edx); /* 0x3C005805: mov esi, dword ptr [edx] */ 8335 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005807: cmp esi, dword ptr [edi + 8] */ 8336 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8338 _flag_k = FK_CMP; 8339 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00580F; /* 0x3C00580A: je 0x3c00580f */ 8340 L_3C00580C: 8341 MEM32(esi + 0x4) = ecx; /* 0x3C00580C: mov dword ptr [esi + 4], ecx */ 8342 L_3C00580F: 8343 esi = MEM32(ecx + 0x4); /* 0x3C00580F: mov esi, dword ptr [ecx + 4] */ 8344 MEM32(edx + 0x4) = esi; /* 0x3C005812: mov dword ptr [edx + 4], esi */ 8345 esi = MEM32(edi + 0x4); /* 0x3C005815: mov esi, dword ptr [edi + 4] */ 8346 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005818: cmp ecx, dword ptr [esi + 4] */ 8347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8349 _flag_k = FK_CMP; 8350 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005822; /* 0x3C00581B: jne 0x3c005822 */ 8351 L_3C00581D: 8352 MEM32(esi + 0x4) = edx; /* 0x3C00581D: mov dword ptr [esi + 4], edx */ 8353 goto L_3C005830; /* 0x3C005820: jmp 0x3c005830 */ 8354 L_3C005822: 8355 esi = MEM32(ecx + 0x4); /* 0x3C005822: mov esi, dword ptr [ecx + 4] */ 8356 /* cmp ecx, MEM32(esi) */ /* 0x3C005825: cmp ecx, dword ptr [esi] */ 8357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8359 _flag_k = FK_CMP; 8360 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00582D; /* 0x3C005827: jne 0x3c00582d */ 8361 L_3C005829: 8362 MEM32(esi) = edx; /* 0x3C005829: mov dword ptr [esi], edx */ 8363 goto L_3C005830; /* 0x3C00582B: jmp 0x3c005830 */ 8364 L_3C00582D: 8365 MEM32(esi + 0x8) = edx; /* 0x3C00582D: mov dword ptr [esi + 8], edx */ 8366 L_3C005830: 8367 MEM32(edx) = ecx; /* 0x3C005830: mov dword ptr [edx], ecx */ 8368 MEM32(ecx + 0x4) = edx; /* 0x3C005832: mov dword ptr [ecx + 4], edx */ 8369 edx = MEM32(eax + 0x4); /* 0x3C005835: mov edx, dword ptr [eax + 4] */ 8370 ecx = MEM32(edx + 0x8); /* 0x3C005838: mov ecx, dword ptr [edx + 8] */ 8371 L_3C00583B: 8372 edx = MEM32(ecx); /* 0x3C00583B: mov edx, dword ptr [ecx] */ 8373 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C00583D: cmp byte ptr [edx + 0x10], bl */ 8374 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8376 _flag_k = FK_NARROW(FK_CMP, 24); 8377 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C005840: jne 0x3c0058d6 */ 8378 L_3C005846: 8379 edx = MEM32(ecx + 0x8); /* 0x3C005846: mov edx, dword ptr [ecx + 8] */ 8380 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005849: cmp byte ptr [edx + 0x10], bl */ 8381 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8383 _flag_k = FK_NARROW(FK_CMP, 24); 8384 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C00584C: jne 0x3c0058d6 */ 8385 L_3C005852: 8386 goto L_3C0058BE; /* 0x3C005852: jmp 0x3c0058be */ 8387 L_3C005854: 8388 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005854: mov dl, byte ptr [ecx + 0x10] */ 8389 /* test LO8(edx), LO8(edx) */ /* 0x3C005857: test dl, dl */ 8390 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8391 _cf = 0; 8392 _flag_k = FK_NARROW(FK_TEST, 24); 8393 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0058A7; /* 0x3C005859: jne 0x3c0058a7 */ 8394 L_3C00585B: 8395 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00585B: mov byte ptr [ecx + 0x10], bl */ 8396 ecx = MEM32(eax + 0x4); /* 0x3C00585E: mov ecx, dword ptr [eax + 4] */ 8397 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005861: mov byte ptr [ecx + 0x10], 0 */ 8398 ecx = MEM32(eax + 0x4); /* 0x3C005865: mov ecx, dword ptr [eax + 4] */ 8399 edx = MEM32(ecx); /* 0x3C005868: mov edx, dword ptr [ecx] */ 8400 esi = MEM32(edx + 0x8); /* 0x3C00586A: mov esi, dword ptr [edx + 8] */ 8401 MEM32(ecx) = esi; /* 0x3C00586D: mov dword ptr [ecx], esi */ 8402 esi = MEM32(edx + 0x8); /* 0x3C00586F: mov esi, dword ptr [edx + 8] */ 8403 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005872: cmp esi, dword ptr [edi + 8] */ 8404 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8406 _flag_k = FK_CMP; 8407 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00587A; /* 0x3C005875: je 0x3c00587a */ 8408 L_3C005877: 8409 MEM32(esi + 0x4) = ecx; /* 0x3C005877: mov dword ptr [esi + 4], ecx */ 8410 L_3C00587A: 8411 esi = MEM32(ecx + 0x4); /* 0x3C00587A: mov esi, dword ptr [ecx + 4] */ 8412 MEM32(edx + 0x4) = esi; /* 0x3C00587D: mov dword ptr [edx + 4], esi */ 8413 esi = MEM32(edi + 0x4); /* 0x3C005880: mov esi, dword ptr [edi + 4] */ 8414 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005883: cmp ecx, dword ptr [esi + 4] */ 8415 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8417 _flag_k = FK_CMP; 8418 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00588D; /* 0x3C005886: jne 0x3c00588d */ 8419 L_3C005888: 8420 MEM32(esi + 0x4) = edx; /* 0x3C005888: mov dword ptr [esi + 4], edx */ 8421 goto L_3C00589C; /* 0x3C00588B: jmp 0x3c00589c */ 8422 L_3C00588D: 8423 esi = MEM32(ecx + 0x4); /* 0x3C00588D: mov esi, dword ptr [ecx + 4] */ 8424 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005890: cmp ecx, dword ptr [esi + 8] */ 8425 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8427 _flag_k = FK_CMP; 8428 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00589A; /* 0x3C005893: jne 0x3c00589a */ 8429 L_3C005895: 8430 MEM32(esi + 0x8) = edx; /* 0x3C005895: mov dword ptr [esi + 8], edx */ 8431 goto L_3C00589C; /* 0x3C005898: jmp 0x3c00589c */ 8432 L_3C00589A: 8433 MEM32(esi) = edx; /* 0x3C00589A: mov dword ptr [esi], edx */ 8434 L_3C00589C: 8435 MEM32(edx + 0x8) = ecx; /* 0x3C00589C: mov dword ptr [edx + 8], ecx */ 8436 MEM32(ecx + 0x4) = edx; /* 0x3C00589F: mov dword ptr [ecx + 4], edx */ 8437 edx = MEM32(eax + 0x4); /* 0x3C0058A2: mov edx, dword ptr [eax + 4] */ 8438 ecx = MEM32(edx); /* 0x3C0058A5: mov ecx, dword ptr [edx] */ 8439 L_3C0058A7: 8440 edx = MEM32(ecx + 0x8); /* 0x3C0058A7: mov edx, dword ptr [ecx + 8] */ 8441 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058AA: cmp byte ptr [edx + 0x10], bl */ 8442 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8444 _flag_k = FK_NARROW(FK_CMP, 24); 8445 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058AD: jne 0x3c005983 */ 8446 L_3C0058B3: 8447 edx = MEM32(ecx); /* 0x3C0058B3: mov edx, dword ptr [ecx] */ 8448 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058B5: cmp byte ptr [edx + 0x10], bl */ 8449 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8451 _flag_k = FK_NARROW(FK_CMP, 24); 8452 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058B8: jne 0x3c005983 */ 8453 L_3C0058BE: 8454 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058BE: mov byte ptr [ecx + 0x10], 0 */ 8455 ecx = MEM32(edi + 0x4); /* 0x3C0058C2: mov ecx, dword ptr [edi + 4] */ 8456 eax = MEM32(eax + 0x4); /* 0x3C0058C5: mov eax, dword ptr [eax + 4] */ 8457 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C0058C8: cmp eax, dword ptr [ecx + 4] */ 8458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8460 _flag_k = FK_CMP; 8461 RECOMP_BACKEDGE(); 8462 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057D4; /* 0x3C0058CB: jne 0x3c0057d4 */ 8463 L_3C0058D1: 8464 goto L_3C005A22; /* 0x3C0058D1: jmp 0x3c005a22 */ 8465 L_3C0058D6: 8466 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 8467 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 8468 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8470 _flag_k = FK_NARROW(FK_CMP, 24); 8471 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 8472 L_3C0058DE: 8473 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 8474 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 8475 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 8476 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 8477 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 8478 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 8479 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 8480 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 8481 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8483 _flag_k = FK_CMP; 8484 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 8485 L_3C0058F6: 8486 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 8487 L_3C0058F9: 8488 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 8489 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 8490 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 8491 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 8492 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8494 _flag_k = FK_CMP; 8495 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 8496 L_3C005907: 8497 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 8498 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 8499 L_3C00590C: 8500 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 8501 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 8502 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8504 _flag_k = FK_CMP; 8505 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 8506 L_3C005914: 8507 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 8508 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 8509 L_3C005919: 8510 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 8511 L_3C00591B: 8512 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 8513 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 8514 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 8515 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 8516 L_3C005927: 8517 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 8518 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 8519 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 8520 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 8521 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 8522 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 8523 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 8524 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 8525 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 8526 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 8527 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 8528 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 8529 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 8530 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8532 _flag_k = FK_CMP; 8533 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 8534 L_3C00594E: 8535 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 8536 L_3C005951: 8537 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 8538 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 8539 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 8540 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 8541 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8543 _flag_k = FK_CMP; 8544 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 8545 L_3C00595F: 8546 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 8547 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 8548 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 8549 L_3C005969: 8550 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 8551 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 8552 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8554 _flag_k = FK_CMP; 8555 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 8556 L_3C005970: 8557 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 8558 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 8559 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 8560 L_3C005979: 8561 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 8562 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 8563 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 8564 L_3C005983: 8565 edx = MEM32(ecx); /* 0x3C005983: mov edx, dword ptr [ecx] */ 8566 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005985: cmp byte ptr [edx + 0x10], bl */ 8567 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8569 _flag_k = FK_NARROW(FK_CMP, 24); 8570 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059D1; /* 0x3C005988: jne 0x3c0059d1 */ 8571 L_3C00598A: 8572 edx = MEM32(ecx + 0x8); /* 0x3C00598A: mov edx, dword ptr [ecx + 8] */ 8573 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00598D: mov byte ptr [edx + 0x10], bl */ 8574 edx = MEM32(ecx + 0x8); /* 0x3C005990: mov edx, dword ptr [ecx + 8] */ 8575 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005993: mov byte ptr [ecx + 0x10], 0 */ 8576 esi = MEM32(edx); /* 0x3C005997: mov esi, dword ptr [edx] */ 8577 MEM32(ecx + 0x8) = esi; /* 0x3C005999: mov dword ptr [ecx + 8], esi */ 8578 esi = MEM32(edx); /* 0x3C00599C: mov esi, dword ptr [edx] */ 8579 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C00599E: cmp esi, dword ptr [edi + 8] */ 8580 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8582 _flag_k = FK_CMP; 8583 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059A6; /* 0x3C0059A1: je 0x3c0059a6 */ 8584 L_3C0059A3: 8585 MEM32(esi + 0x4) = ecx; /* 0x3C0059A3: mov dword ptr [esi + 4], ecx */ 8586 L_3C0059A6: 8587 esi = MEM32(ecx + 0x4); /* 0x3C0059A6: mov esi, dword ptr [ecx + 4] */ 8588 MEM32(edx + 0x4) = esi; /* 0x3C0059A9: mov dword ptr [edx + 4], esi */ 8589 esi = MEM32(edi + 0x4); /* 0x3C0059AC: mov esi, dword ptr [edi + 4] */ 8590 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C0059AF: cmp ecx, dword ptr [esi + 4] */ 8591 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8593 _flag_k = FK_CMP; 8594 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059B9; /* 0x3C0059B2: jne 0x3c0059b9 */ 8595 L_3C0059B4: 8596 MEM32(esi + 0x4) = edx; /* 0x3C0059B4: mov dword ptr [esi + 4], edx */ 8597 goto L_3C0059C7; /* 0x3C0059B7: jmp 0x3c0059c7 */ 8598 L_3C0059B9: 8599 esi = MEM32(ecx + 0x4); /* 0x3C0059B9: mov esi, dword ptr [ecx + 4] */ 8600 /* cmp ecx, MEM32(esi) */ /* 0x3C0059BC: cmp ecx, dword ptr [esi] */ 8601 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8603 _flag_k = FK_CMP; 8604 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059C4; /* 0x3C0059BE: jne 0x3c0059c4 */ 8605 L_3C0059C0: 8606 MEM32(esi) = edx; /* 0x3C0059C0: mov dword ptr [esi], edx */ 8607 goto L_3C0059C7; /* 0x3C0059C2: jmp 0x3c0059c7 */ 8608 L_3C0059C4: 8609 MEM32(esi + 0x8) = edx; /* 0x3C0059C4: mov dword ptr [esi + 8], edx */ 8610 L_3C0059C7: 8611 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 8612 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 8613 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 8614 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 8615 L_3C0059D1: 8616 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 8617 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 8618 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 8619 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 8620 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 8621 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 8622 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 8623 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 8624 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 8625 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 8626 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 8627 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 8628 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 8629 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8631 _flag_k = FK_CMP; 8632 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 8633 L_3C0059F7: 8634 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 8635 L_3C0059FA: 8636 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 8637 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 8638 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 8639 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 8640 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8642 _flag_k = FK_CMP; 8643 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 8644 L_3C005A08: 8645 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 8646 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 8647 L_3C005A0D: 8648 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 8649 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 8650 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8652 _flag_k = FK_CMP; 8653 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 8654 L_3C005A15: 8655 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 8656 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 8657 L_3C005A1A: 8658 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 8659 L_3C005A1C: 8660 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 8661 L_3C005A1F: 8662 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 8663 L_3C005A22: 8664 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 8665 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 8666 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 8667 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 8668 RECOMP_FLAGS_IN(); 8669 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 8670 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 8671 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8673 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 8674 _flag_k = FK_ADD; 8675 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8676 eax = eax - 1; /* 0x3C005A37: dec eax */ 8677 _flag_k = FK_DEC; 8678 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 8679 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 8680 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 8681 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 8682 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 8683 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 8684 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 8685 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 8686 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 8687 RECOMP_REGS_OUT(); 8688 } 8689 8690 void sub_3C0058A7(void) { 8691 int _fpu_cmp = 0; 8692 uint32_t _cf = 0; 8693 int _df = 1; 8694 uint32_t _flag_k = FK_NONE; 8695 uint32_t _flag_a = 0, _flag_b = 0; 8696 uint32_t _itail_tgt = 0; 8697 RECOMP_REGS_LOCALS 8698 RECOMP_ENTER(0x3C0058A7u); 8699 8700 goto L_3C0058A7; 8701 L_3C0057D4: 8702 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x3C0057D4: cmp byte ptr [eax + 0x10], bl */ 8703 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8705 _flag_k = FK_NARROW(FK_CMP, 24); 8706 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057D7: jne 0x3c005a22 */ 8707 L_3C0057DD: 8708 edx = MEM32(eax + 0x4); /* 0x3C0057DD: mov edx, dword ptr [eax + 4] */ 8709 ecx = MEM32(edx); /* 0x3C0057E0: mov ecx, dword ptr [edx] */ 8710 /* cmp eax, ecx */ /* 0x3C0057E2: cmp eax, ecx */ 8711 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8713 _flag_k = FK_CMP; 8714 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005854; /* 0x3C0057E4: jne 0x3c005854 */ 8715 L_3C0057E6: 8716 ecx = MEM32(edx + 0x8); /* 0x3C0057E6: mov ecx, dword ptr [edx + 8] */ 8717 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057E9: mov dl, byte ptr [ecx + 0x10] */ 8718 /* test LO8(edx), LO8(edx) */ /* 0x3C0057EC: test dl, dl */ 8719 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8720 _cf = 0; 8721 _flag_k = FK_NARROW(FK_TEST, 24); 8722 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00583B; /* 0x3C0057EE: jne 0x3c00583b */ 8723 L_3C0057F0: 8724 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0057F0: mov byte ptr [ecx + 0x10], bl */ 8725 ecx = MEM32(eax + 0x4); /* 0x3C0057F3: mov ecx, dword ptr [eax + 4] */ 8726 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0057F6: mov byte ptr [ecx + 0x10], 0 */ 8727 ecx = MEM32(eax + 0x4); /* 0x3C0057FA: mov ecx, dword ptr [eax + 4] */ 8728 edx = MEM32(ecx + 0x8); /* 0x3C0057FD: mov edx, dword ptr [ecx + 8] */ 8729 esi = MEM32(edx); /* 0x3C005800: mov esi, dword ptr [edx] */ 8730 MEM32(ecx + 0x8) = esi; /* 0x3C005802: mov dword ptr [ecx + 8], esi */ 8731 esi = MEM32(edx); /* 0x3C005805: mov esi, dword ptr [edx] */ 8732 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005807: cmp esi, dword ptr [edi + 8] */ 8733 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8735 _flag_k = FK_CMP; 8736 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00580F; /* 0x3C00580A: je 0x3c00580f */ 8737 L_3C00580C: 8738 MEM32(esi + 0x4) = ecx; /* 0x3C00580C: mov dword ptr [esi + 4], ecx */ 8739 L_3C00580F: 8740 esi = MEM32(ecx + 0x4); /* 0x3C00580F: mov esi, dword ptr [ecx + 4] */ 8741 MEM32(edx + 0x4) = esi; /* 0x3C005812: mov dword ptr [edx + 4], esi */ 8742 esi = MEM32(edi + 0x4); /* 0x3C005815: mov esi, dword ptr [edi + 4] */ 8743 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005818: cmp ecx, dword ptr [esi + 4] */ 8744 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8746 _flag_k = FK_CMP; 8747 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005822; /* 0x3C00581B: jne 0x3c005822 */ 8748 L_3C00581D: 8749 MEM32(esi + 0x4) = edx; /* 0x3C00581D: mov dword ptr [esi + 4], edx */ 8750 goto L_3C005830; /* 0x3C005820: jmp 0x3c005830 */ 8751 L_3C005822: 8752 esi = MEM32(ecx + 0x4); /* 0x3C005822: mov esi, dword ptr [ecx + 4] */ 8753 /* cmp ecx, MEM32(esi) */ /* 0x3C005825: cmp ecx, dword ptr [esi] */ 8754 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8756 _flag_k = FK_CMP; 8757 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00582D; /* 0x3C005827: jne 0x3c00582d */ 8758 L_3C005829: 8759 MEM32(esi) = edx; /* 0x3C005829: mov dword ptr [esi], edx */ 8760 goto L_3C005830; /* 0x3C00582B: jmp 0x3c005830 */ 8761 L_3C00582D: 8762 MEM32(esi + 0x8) = edx; /* 0x3C00582D: mov dword ptr [esi + 8], edx */ 8763 L_3C005830: 8764 MEM32(edx) = ecx; /* 0x3C005830: mov dword ptr [edx], ecx */ 8765 MEM32(ecx + 0x4) = edx; /* 0x3C005832: mov dword ptr [ecx + 4], edx */ 8766 edx = MEM32(eax + 0x4); /* 0x3C005835: mov edx, dword ptr [eax + 4] */ 8767 ecx = MEM32(edx + 0x8); /* 0x3C005838: mov ecx, dword ptr [edx + 8] */ 8768 L_3C00583B: 8769 edx = MEM32(ecx); /* 0x3C00583B: mov edx, dword ptr [ecx] */ 8770 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C00583D: cmp byte ptr [edx + 0x10], bl */ 8771 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8773 _flag_k = FK_NARROW(FK_CMP, 24); 8774 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C005840: jne 0x3c0058d6 */ 8775 L_3C005846: 8776 edx = MEM32(ecx + 0x8); /* 0x3C005846: mov edx, dword ptr [ecx + 8] */ 8777 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005849: cmp byte ptr [edx + 0x10], bl */ 8778 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8780 _flag_k = FK_NARROW(FK_CMP, 24); 8781 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C00584C: jne 0x3c0058d6 */ 8782 L_3C005852: 8783 goto L_3C0058BE; /* 0x3C005852: jmp 0x3c0058be */ 8784 L_3C005854: 8785 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005854: mov dl, byte ptr [ecx + 0x10] */ 8786 /* test LO8(edx), LO8(edx) */ /* 0x3C005857: test dl, dl */ 8787 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8788 _cf = 0; 8789 _flag_k = FK_NARROW(FK_TEST, 24); 8790 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0058A7; /* 0x3C005859: jne 0x3c0058a7 */ 8791 L_3C00585B: 8792 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00585B: mov byte ptr [ecx + 0x10], bl */ 8793 ecx = MEM32(eax + 0x4); /* 0x3C00585E: mov ecx, dword ptr [eax + 4] */ 8794 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005861: mov byte ptr [ecx + 0x10], 0 */ 8795 ecx = MEM32(eax + 0x4); /* 0x3C005865: mov ecx, dword ptr [eax + 4] */ 8796 edx = MEM32(ecx); /* 0x3C005868: mov edx, dword ptr [ecx] */ 8797 esi = MEM32(edx + 0x8); /* 0x3C00586A: mov esi, dword ptr [edx + 8] */ 8798 MEM32(ecx) = esi; /* 0x3C00586D: mov dword ptr [ecx], esi */ 8799 esi = MEM32(edx + 0x8); /* 0x3C00586F: mov esi, dword ptr [edx + 8] */ 8800 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005872: cmp esi, dword ptr [edi + 8] */ 8801 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8803 _flag_k = FK_CMP; 8804 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00587A; /* 0x3C005875: je 0x3c00587a */ 8805 L_3C005877: 8806 MEM32(esi + 0x4) = ecx; /* 0x3C005877: mov dword ptr [esi + 4], ecx */ 8807 L_3C00587A: 8808 esi = MEM32(ecx + 0x4); /* 0x3C00587A: mov esi, dword ptr [ecx + 4] */ 8809 MEM32(edx + 0x4) = esi; /* 0x3C00587D: mov dword ptr [edx + 4], esi */ 8810 esi = MEM32(edi + 0x4); /* 0x3C005880: mov esi, dword ptr [edi + 4] */ 8811 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005883: cmp ecx, dword ptr [esi + 4] */ 8812 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8814 _flag_k = FK_CMP; 8815 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00588D; /* 0x3C005886: jne 0x3c00588d */ 8816 L_3C005888: 8817 MEM32(esi + 0x4) = edx; /* 0x3C005888: mov dword ptr [esi + 4], edx */ 8818 goto L_3C00589C; /* 0x3C00588B: jmp 0x3c00589c */ 8819 L_3C00588D: 8820 esi = MEM32(ecx + 0x4); /* 0x3C00588D: mov esi, dword ptr [ecx + 4] */ 8821 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005890: cmp ecx, dword ptr [esi + 8] */ 8822 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8824 _flag_k = FK_CMP; 8825 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00589A; /* 0x3C005893: jne 0x3c00589a */ 8826 L_3C005895: 8827 MEM32(esi + 0x8) = edx; /* 0x3C005895: mov dword ptr [esi + 8], edx */ 8828 goto L_3C00589C; /* 0x3C005898: jmp 0x3c00589c */ 8829 L_3C00589A: 8830 MEM32(esi) = edx; /* 0x3C00589A: mov dword ptr [esi], edx */ 8831 L_3C00589C: 8832 MEM32(edx + 0x8) = ecx; /* 0x3C00589C: mov dword ptr [edx + 8], ecx */ 8833 MEM32(ecx + 0x4) = edx; /* 0x3C00589F: mov dword ptr [ecx + 4], edx */ 8834 edx = MEM32(eax + 0x4); /* 0x3C0058A2: mov edx, dword ptr [eax + 4] */ 8835 ecx = MEM32(edx); /* 0x3C0058A5: mov ecx, dword ptr [edx] */ 8836 L_3C0058A7: 8837 edx = MEM32(ecx + 0x8); /* 0x3C0058A7: mov edx, dword ptr [ecx + 8] */ 8838 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058AA: cmp byte ptr [edx + 0x10], bl */ 8839 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8841 _flag_k = FK_NARROW(FK_CMP, 24); 8842 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058AD: jne 0x3c005983 */ 8843 L_3C0058B3: 8844 edx = MEM32(ecx); /* 0x3C0058B3: mov edx, dword ptr [ecx] */ 8845 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058B5: cmp byte ptr [edx + 0x10], bl */ 8846 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8848 _flag_k = FK_NARROW(FK_CMP, 24); 8849 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058B8: jne 0x3c005983 */ 8850 L_3C0058BE: 8851 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058BE: mov byte ptr [ecx + 0x10], 0 */ 8852 ecx = MEM32(edi + 0x4); /* 0x3C0058C2: mov ecx, dword ptr [edi + 4] */ 8853 eax = MEM32(eax + 0x4); /* 0x3C0058C5: mov eax, dword ptr [eax + 4] */ 8854 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C0058C8: cmp eax, dword ptr [ecx + 4] */ 8855 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8857 _flag_k = FK_CMP; 8858 RECOMP_BACKEDGE(); 8859 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057D4; /* 0x3C0058CB: jne 0x3c0057d4 */ 8860 L_3C0058D1: 8861 goto L_3C005A22; /* 0x3C0058D1: jmp 0x3c005a22 */ 8862 L_3C0058D6: 8863 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 8864 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 8865 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8867 _flag_k = FK_NARROW(FK_CMP, 24); 8868 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 8869 L_3C0058DE: 8870 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 8871 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 8872 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 8873 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 8874 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 8875 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 8876 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 8877 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 8878 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8880 _flag_k = FK_CMP; 8881 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 8882 L_3C0058F6: 8883 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 8884 L_3C0058F9: 8885 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 8886 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 8887 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 8888 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 8889 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8891 _flag_k = FK_CMP; 8892 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 8893 L_3C005907: 8894 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 8895 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 8896 L_3C00590C: 8897 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 8898 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 8899 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8901 _flag_k = FK_CMP; 8902 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 8903 L_3C005914: 8904 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 8905 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 8906 L_3C005919: 8907 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 8908 L_3C00591B: 8909 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 8910 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 8911 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 8912 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 8913 L_3C005927: 8914 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 8915 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 8916 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 8917 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 8918 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 8919 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 8920 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 8921 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 8922 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 8923 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 8924 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 8925 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 8926 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 8927 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8929 _flag_k = FK_CMP; 8930 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 8931 L_3C00594E: 8932 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 8933 L_3C005951: 8934 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 8935 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 8936 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 8937 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 8938 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8940 _flag_k = FK_CMP; 8941 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 8942 L_3C00595F: 8943 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 8944 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 8945 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 8946 L_3C005969: 8947 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 8948 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 8949 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8951 _flag_k = FK_CMP; 8952 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 8953 L_3C005970: 8954 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 8955 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 8956 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 8957 L_3C005979: 8958 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 8959 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 8960 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 8961 L_3C005983: 8962 edx = MEM32(ecx); /* 0x3C005983: mov edx, dword ptr [ecx] */ 8963 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005985: cmp byte ptr [edx + 0x10], bl */ 8964 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8966 _flag_k = FK_NARROW(FK_CMP, 24); 8967 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059D1; /* 0x3C005988: jne 0x3c0059d1 */ 8968 L_3C00598A: 8969 edx = MEM32(ecx + 0x8); /* 0x3C00598A: mov edx, dword ptr [ecx + 8] */ 8970 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00598D: mov byte ptr [edx + 0x10], bl */ 8971 edx = MEM32(ecx + 0x8); /* 0x3C005990: mov edx, dword ptr [ecx + 8] */ 8972 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005993: mov byte ptr [ecx + 0x10], 0 */ 8973 esi = MEM32(edx); /* 0x3C005997: mov esi, dword ptr [edx] */ 8974 MEM32(ecx + 0x8) = esi; /* 0x3C005999: mov dword ptr [ecx + 8], esi */ 8975 esi = MEM32(edx); /* 0x3C00599C: mov esi, dword ptr [edx] */ 8976 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C00599E: cmp esi, dword ptr [edi + 8] */ 8977 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8979 _flag_k = FK_CMP; 8980 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059A6; /* 0x3C0059A1: je 0x3c0059a6 */ 8981 L_3C0059A3: 8982 MEM32(esi + 0x4) = ecx; /* 0x3C0059A3: mov dword ptr [esi + 4], ecx */ 8983 L_3C0059A6: 8984 esi = MEM32(ecx + 0x4); /* 0x3C0059A6: mov esi, dword ptr [ecx + 4] */ 8985 MEM32(edx + 0x4) = esi; /* 0x3C0059A9: mov dword ptr [edx + 4], esi */ 8986 esi = MEM32(edi + 0x4); /* 0x3C0059AC: mov esi, dword ptr [edi + 4] */ 8987 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C0059AF: cmp ecx, dword ptr [esi + 4] */ 8988 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8990 _flag_k = FK_CMP; 8991 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059B9; /* 0x3C0059B2: jne 0x3c0059b9 */ 8992 L_3C0059B4: 8993 MEM32(esi + 0x4) = edx; /* 0x3C0059B4: mov dword ptr [esi + 4], edx */ 8994 goto L_3C0059C7; /* 0x3C0059B7: jmp 0x3c0059c7 */ 8995 L_3C0059B9: 8996 esi = MEM32(ecx + 0x4); /* 0x3C0059B9: mov esi, dword ptr [ecx + 4] */ 8997 /* cmp ecx, MEM32(esi) */ /* 0x3C0059BC: cmp ecx, dword ptr [esi] */ 8998 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9000 _flag_k = FK_CMP; 9001 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059C4; /* 0x3C0059BE: jne 0x3c0059c4 */ 9002 L_3C0059C0: 9003 MEM32(esi) = edx; /* 0x3C0059C0: mov dword ptr [esi], edx */ 9004 goto L_3C0059C7; /* 0x3C0059C2: jmp 0x3c0059c7 */ 9005 L_3C0059C4: 9006 MEM32(esi + 0x8) = edx; /* 0x3C0059C4: mov dword ptr [esi + 8], edx */ 9007 L_3C0059C7: 9008 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 9009 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 9010 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 9011 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 9012 L_3C0059D1: 9013 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 9014 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 9015 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 9016 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 9017 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 9018 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 9019 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 9020 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 9021 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 9022 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 9023 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 9024 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 9025 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 9026 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9028 _flag_k = FK_CMP; 9029 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 9030 L_3C0059F7: 9031 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 9032 L_3C0059FA: 9033 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 9034 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 9035 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 9036 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 9037 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9039 _flag_k = FK_CMP; 9040 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 9041 L_3C005A08: 9042 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 9043 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 9044 L_3C005A0D: 9045 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 9046 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 9047 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9049 _flag_k = FK_CMP; 9050 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 9051 L_3C005A15: 9052 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 9053 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 9054 L_3C005A1A: 9055 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 9056 L_3C005A1C: 9057 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 9058 L_3C005A1F: 9059 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 9060 L_3C005A22: 9061 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 9062 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 9063 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 9064 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 9065 RECOMP_FLAGS_IN(); 9066 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 9067 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 9068 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9069 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9070 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 9071 _flag_k = FK_ADD; 9072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9073 eax = eax - 1; /* 0x3C005A37: dec eax */ 9074 _flag_k = FK_DEC; 9075 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 9076 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 9077 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 9078 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 9079 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 9080 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 9081 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 9082 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 9083 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 9084 RECOMP_REGS_OUT(); 9085 } 9086 9087 void sub_3C0058BE(void) { 9088 int _fpu_cmp = 0; 9089 uint32_t _cf = 0; 9090 int _df = 1; 9091 uint32_t _flag_k = FK_NONE; 9092 uint32_t _flag_a = 0, _flag_b = 0; 9093 uint32_t _itail_tgt = 0; 9094 RECOMP_REGS_LOCALS 9095 RECOMP_ENTER(0x3C0058BEu); 9096 9097 goto L_3C0058BE; 9098 L_3C0057D4: 9099 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x3C0057D4: cmp byte ptr [eax + 0x10], bl */ 9100 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9102 _flag_k = FK_NARROW(FK_CMP, 24); 9103 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A22; /* 0x3C0057D7: jne 0x3c005a22 */ 9104 L_3C0057DD: 9105 edx = MEM32(eax + 0x4); /* 0x3C0057DD: mov edx, dword ptr [eax + 4] */ 9106 ecx = MEM32(edx); /* 0x3C0057E0: mov ecx, dword ptr [edx] */ 9107 /* cmp eax, ecx */ /* 0x3C0057E2: cmp eax, ecx */ 9108 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9110 _flag_k = FK_CMP; 9111 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005854; /* 0x3C0057E4: jne 0x3c005854 */ 9112 L_3C0057E6: 9113 ecx = MEM32(edx + 0x8); /* 0x3C0057E6: mov ecx, dword ptr [edx + 8] */ 9114 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C0057E9: mov dl, byte ptr [ecx + 0x10] */ 9115 /* test LO8(edx), LO8(edx) */ /* 0x3C0057EC: test dl, dl */ 9116 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9117 _cf = 0; 9118 _flag_k = FK_NARROW(FK_TEST, 24); 9119 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00583B; /* 0x3C0057EE: jne 0x3c00583b */ 9120 L_3C0057F0: 9121 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0057F0: mov byte ptr [ecx + 0x10], bl */ 9122 ecx = MEM32(eax + 0x4); /* 0x3C0057F3: mov ecx, dword ptr [eax + 4] */ 9123 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0057F6: mov byte ptr [ecx + 0x10], 0 */ 9124 ecx = MEM32(eax + 0x4); /* 0x3C0057FA: mov ecx, dword ptr [eax + 4] */ 9125 edx = MEM32(ecx + 0x8); /* 0x3C0057FD: mov edx, dword ptr [ecx + 8] */ 9126 esi = MEM32(edx); /* 0x3C005800: mov esi, dword ptr [edx] */ 9127 MEM32(ecx + 0x8) = esi; /* 0x3C005802: mov dword ptr [ecx + 8], esi */ 9128 esi = MEM32(edx); /* 0x3C005805: mov esi, dword ptr [edx] */ 9129 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005807: cmp esi, dword ptr [edi + 8] */ 9130 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9132 _flag_k = FK_CMP; 9133 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00580F; /* 0x3C00580A: je 0x3c00580f */ 9134 L_3C00580C: 9135 MEM32(esi + 0x4) = ecx; /* 0x3C00580C: mov dword ptr [esi + 4], ecx */ 9136 L_3C00580F: 9137 esi = MEM32(ecx + 0x4); /* 0x3C00580F: mov esi, dword ptr [ecx + 4] */ 9138 MEM32(edx + 0x4) = esi; /* 0x3C005812: mov dword ptr [edx + 4], esi */ 9139 esi = MEM32(edi + 0x4); /* 0x3C005815: mov esi, dword ptr [edi + 4] */ 9140 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005818: cmp ecx, dword ptr [esi + 4] */ 9141 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9143 _flag_k = FK_CMP; 9144 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005822; /* 0x3C00581B: jne 0x3c005822 */ 9145 L_3C00581D: 9146 MEM32(esi + 0x4) = edx; /* 0x3C00581D: mov dword ptr [esi + 4], edx */ 9147 goto L_3C005830; /* 0x3C005820: jmp 0x3c005830 */ 9148 L_3C005822: 9149 esi = MEM32(ecx + 0x4); /* 0x3C005822: mov esi, dword ptr [ecx + 4] */ 9150 /* cmp ecx, MEM32(esi) */ /* 0x3C005825: cmp ecx, dword ptr [esi] */ 9151 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9153 _flag_k = FK_CMP; 9154 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00582D; /* 0x3C005827: jne 0x3c00582d */ 9155 L_3C005829: 9156 MEM32(esi) = edx; /* 0x3C005829: mov dword ptr [esi], edx */ 9157 goto L_3C005830; /* 0x3C00582B: jmp 0x3c005830 */ 9158 L_3C00582D: 9159 MEM32(esi + 0x8) = edx; /* 0x3C00582D: mov dword ptr [esi + 8], edx */ 9160 L_3C005830: 9161 MEM32(edx) = ecx; /* 0x3C005830: mov dword ptr [edx], ecx */ 9162 MEM32(ecx + 0x4) = edx; /* 0x3C005832: mov dword ptr [ecx + 4], edx */ 9163 edx = MEM32(eax + 0x4); /* 0x3C005835: mov edx, dword ptr [eax + 4] */ 9164 ecx = MEM32(edx + 0x8); /* 0x3C005838: mov ecx, dword ptr [edx + 8] */ 9165 L_3C00583B: 9166 edx = MEM32(ecx); /* 0x3C00583B: mov edx, dword ptr [ecx] */ 9167 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C00583D: cmp byte ptr [edx + 0x10], bl */ 9168 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9170 _flag_k = FK_NARROW(FK_CMP, 24); 9171 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C005840: jne 0x3c0058d6 */ 9172 L_3C005846: 9173 edx = MEM32(ecx + 0x8); /* 0x3C005846: mov edx, dword ptr [ecx + 8] */ 9174 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005849: cmp byte ptr [edx + 0x10], bl */ 9175 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9177 _flag_k = FK_NARROW(FK_CMP, 24); 9178 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0058D6; /* 0x3C00584C: jne 0x3c0058d6 */ 9179 L_3C005852: 9180 goto L_3C0058BE; /* 0x3C005852: jmp 0x3c0058be */ 9181 L_3C005854: 9182 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005854: mov dl, byte ptr [ecx + 0x10] */ 9183 /* test LO8(edx), LO8(edx) */ /* 0x3C005857: test dl, dl */ 9184 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9185 _cf = 0; 9186 _flag_k = FK_NARROW(FK_TEST, 24); 9187 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0058A7; /* 0x3C005859: jne 0x3c0058a7 */ 9188 L_3C00585B: 9189 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00585B: mov byte ptr [ecx + 0x10], bl */ 9190 ecx = MEM32(eax + 0x4); /* 0x3C00585E: mov ecx, dword ptr [eax + 4] */ 9191 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005861: mov byte ptr [ecx + 0x10], 0 */ 9192 ecx = MEM32(eax + 0x4); /* 0x3C005865: mov ecx, dword ptr [eax + 4] */ 9193 edx = MEM32(ecx); /* 0x3C005868: mov edx, dword ptr [ecx] */ 9194 esi = MEM32(edx + 0x8); /* 0x3C00586A: mov esi, dword ptr [edx + 8] */ 9195 MEM32(ecx) = esi; /* 0x3C00586D: mov dword ptr [ecx], esi */ 9196 esi = MEM32(edx + 0x8); /* 0x3C00586F: mov esi, dword ptr [edx + 8] */ 9197 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005872: cmp esi, dword ptr [edi + 8] */ 9198 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9200 _flag_k = FK_CMP; 9201 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00587A; /* 0x3C005875: je 0x3c00587a */ 9202 L_3C005877: 9203 MEM32(esi + 0x4) = ecx; /* 0x3C005877: mov dword ptr [esi + 4], ecx */ 9204 L_3C00587A: 9205 esi = MEM32(ecx + 0x4); /* 0x3C00587A: mov esi, dword ptr [ecx + 4] */ 9206 MEM32(edx + 0x4) = esi; /* 0x3C00587D: mov dword ptr [edx + 4], esi */ 9207 esi = MEM32(edi + 0x4); /* 0x3C005880: mov esi, dword ptr [edi + 4] */ 9208 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005883: cmp ecx, dword ptr [esi + 4] */ 9209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9211 _flag_k = FK_CMP; 9212 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00588D; /* 0x3C005886: jne 0x3c00588d */ 9213 L_3C005888: 9214 MEM32(esi + 0x4) = edx; /* 0x3C005888: mov dword ptr [esi + 4], edx */ 9215 goto L_3C00589C; /* 0x3C00588B: jmp 0x3c00589c */ 9216 L_3C00588D: 9217 esi = MEM32(ecx + 0x4); /* 0x3C00588D: mov esi, dword ptr [ecx + 4] */ 9218 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005890: cmp ecx, dword ptr [esi + 8] */ 9219 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9221 _flag_k = FK_CMP; 9222 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00589A; /* 0x3C005893: jne 0x3c00589a */ 9223 L_3C005895: 9224 MEM32(esi + 0x8) = edx; /* 0x3C005895: mov dword ptr [esi + 8], edx */ 9225 goto L_3C00589C; /* 0x3C005898: jmp 0x3c00589c */ 9226 L_3C00589A: 9227 MEM32(esi) = edx; /* 0x3C00589A: mov dword ptr [esi], edx */ 9228 L_3C00589C: 9229 MEM32(edx + 0x8) = ecx; /* 0x3C00589C: mov dword ptr [edx + 8], ecx */ 9230 MEM32(ecx + 0x4) = edx; /* 0x3C00589F: mov dword ptr [ecx + 4], edx */ 9231 edx = MEM32(eax + 0x4); /* 0x3C0058A2: mov edx, dword ptr [eax + 4] */ 9232 ecx = MEM32(edx); /* 0x3C0058A5: mov ecx, dword ptr [edx] */ 9233 L_3C0058A7: 9234 edx = MEM32(ecx + 0x8); /* 0x3C0058A7: mov edx, dword ptr [ecx + 8] */ 9235 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058AA: cmp byte ptr [edx + 0x10], bl */ 9236 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9238 _flag_k = FK_NARROW(FK_CMP, 24); 9239 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058AD: jne 0x3c005983 */ 9240 L_3C0058B3: 9241 edx = MEM32(ecx); /* 0x3C0058B3: mov edx, dword ptr [ecx] */ 9242 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058B5: cmp byte ptr [edx + 0x10], bl */ 9243 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9245 _flag_k = FK_NARROW(FK_CMP, 24); 9246 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005983; /* 0x3C0058B8: jne 0x3c005983 */ 9247 L_3C0058BE: 9248 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058BE: mov byte ptr [ecx + 0x10], 0 */ 9249 ecx = MEM32(edi + 0x4); /* 0x3C0058C2: mov ecx, dword ptr [edi + 4] */ 9250 eax = MEM32(eax + 0x4); /* 0x3C0058C5: mov eax, dword ptr [eax + 4] */ 9251 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C0058C8: cmp eax, dword ptr [ecx + 4] */ 9252 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9254 _flag_k = FK_CMP; 9255 RECOMP_BACKEDGE(); 9256 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0057D4; /* 0x3C0058CB: jne 0x3c0057d4 */ 9257 L_3C0058D1: 9258 goto L_3C005A22; /* 0x3C0058D1: jmp 0x3c005a22 */ 9259 L_3C0058D6: 9260 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 9261 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 9262 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9264 _flag_k = FK_NARROW(FK_CMP, 24); 9265 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 9266 L_3C0058DE: 9267 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 9268 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 9269 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 9270 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 9271 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 9272 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 9273 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 9274 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 9275 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9277 _flag_k = FK_CMP; 9278 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 9279 L_3C0058F6: 9280 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 9281 L_3C0058F9: 9282 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 9283 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 9284 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 9285 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 9286 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9288 _flag_k = FK_CMP; 9289 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 9290 L_3C005907: 9291 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 9292 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 9293 L_3C00590C: 9294 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 9295 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 9296 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9298 _flag_k = FK_CMP; 9299 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 9300 L_3C005914: 9301 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 9302 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 9303 L_3C005919: 9304 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 9305 L_3C00591B: 9306 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 9307 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 9308 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 9309 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 9310 L_3C005927: 9311 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 9312 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 9313 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 9314 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 9315 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 9316 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 9317 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 9318 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 9319 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 9320 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 9321 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 9322 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 9323 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 9324 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9326 _flag_k = FK_CMP; 9327 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 9328 L_3C00594E: 9329 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 9330 L_3C005951: 9331 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 9332 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 9333 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 9334 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 9335 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9337 _flag_k = FK_CMP; 9338 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 9339 L_3C00595F: 9340 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 9341 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 9342 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 9343 L_3C005969: 9344 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 9345 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 9346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9348 _flag_k = FK_CMP; 9349 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 9350 L_3C005970: 9351 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 9352 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 9353 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 9354 L_3C005979: 9355 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 9356 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 9357 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 9358 L_3C005983: 9359 edx = MEM32(ecx); /* 0x3C005983: mov edx, dword ptr [ecx] */ 9360 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C005985: cmp byte ptr [edx + 0x10], bl */ 9361 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9363 _flag_k = FK_NARROW(FK_CMP, 24); 9364 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059D1; /* 0x3C005988: jne 0x3c0059d1 */ 9365 L_3C00598A: 9366 edx = MEM32(ecx + 0x8); /* 0x3C00598A: mov edx, dword ptr [ecx + 8] */ 9367 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C00598D: mov byte ptr [edx + 0x10], bl */ 9368 edx = MEM32(ecx + 0x8); /* 0x3C005990: mov edx, dword ptr [ecx + 8] */ 9369 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005993: mov byte ptr [ecx + 0x10], 0 */ 9370 esi = MEM32(edx); /* 0x3C005997: mov esi, dword ptr [edx] */ 9371 MEM32(ecx + 0x8) = esi; /* 0x3C005999: mov dword ptr [ecx + 8], esi */ 9372 esi = MEM32(edx); /* 0x3C00599C: mov esi, dword ptr [edx] */ 9373 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C00599E: cmp esi, dword ptr [edi + 8] */ 9374 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9376 _flag_k = FK_CMP; 9377 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059A6; /* 0x3C0059A1: je 0x3c0059a6 */ 9378 L_3C0059A3: 9379 MEM32(esi + 0x4) = ecx; /* 0x3C0059A3: mov dword ptr [esi + 4], ecx */ 9380 L_3C0059A6: 9381 esi = MEM32(ecx + 0x4); /* 0x3C0059A6: mov esi, dword ptr [ecx + 4] */ 9382 MEM32(edx + 0x4) = esi; /* 0x3C0059A9: mov dword ptr [edx + 4], esi */ 9383 esi = MEM32(edi + 0x4); /* 0x3C0059AC: mov esi, dword ptr [edi + 4] */ 9384 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C0059AF: cmp ecx, dword ptr [esi + 4] */ 9385 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9387 _flag_k = FK_CMP; 9388 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059B9; /* 0x3C0059B2: jne 0x3c0059b9 */ 9389 L_3C0059B4: 9390 MEM32(esi + 0x4) = edx; /* 0x3C0059B4: mov dword ptr [esi + 4], edx */ 9391 goto L_3C0059C7; /* 0x3C0059B7: jmp 0x3c0059c7 */ 9392 L_3C0059B9: 9393 esi = MEM32(ecx + 0x4); /* 0x3C0059B9: mov esi, dword ptr [ecx + 4] */ 9394 /* cmp ecx, MEM32(esi) */ /* 0x3C0059BC: cmp ecx, dword ptr [esi] */ 9395 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9397 _flag_k = FK_CMP; 9398 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0059C4; /* 0x3C0059BE: jne 0x3c0059c4 */ 9399 L_3C0059C0: 9400 MEM32(esi) = edx; /* 0x3C0059C0: mov dword ptr [esi], edx */ 9401 goto L_3C0059C7; /* 0x3C0059C2: jmp 0x3c0059c7 */ 9402 L_3C0059C4: 9403 MEM32(esi + 0x8) = edx; /* 0x3C0059C4: mov dword ptr [esi + 8], edx */ 9404 L_3C0059C7: 9405 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 9406 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 9407 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 9408 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 9409 L_3C0059D1: 9410 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 9411 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 9412 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 9413 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 9414 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 9415 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 9416 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 9417 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 9418 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 9419 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 9420 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 9421 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 9422 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 9423 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9425 _flag_k = FK_CMP; 9426 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 9427 L_3C0059F7: 9428 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 9429 L_3C0059FA: 9430 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 9431 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 9432 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 9433 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 9434 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9436 _flag_k = FK_CMP; 9437 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 9438 L_3C005A08: 9439 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 9440 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 9441 L_3C005A0D: 9442 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 9443 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 9444 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9446 _flag_k = FK_CMP; 9447 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 9448 L_3C005A15: 9449 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 9450 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 9451 L_3C005A1A: 9452 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 9453 L_3C005A1C: 9454 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 9455 L_3C005A1F: 9456 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 9457 L_3C005A22: 9458 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 9459 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 9460 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 9461 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 9462 RECOMP_FLAGS_IN(); 9463 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 9464 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 9465 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9466 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9467 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 9468 _flag_k = FK_ADD; 9469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9470 eax = eax - 1; /* 0x3C005A37: dec eax */ 9471 _flag_k = FK_DEC; 9472 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 9473 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 9474 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 9475 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 9476 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 9477 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 9478 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 9479 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 9480 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 9481 RECOMP_REGS_OUT(); 9482 } 9483 9484 void sub_3C0058D6(void) { 9485 int _fpu_cmp = 0; 9486 uint32_t _cf = 0; 9487 int _df = 1; 9488 uint32_t _flag_k = FK_NONE; 9489 uint32_t _flag_a = 0, _flag_b = 0; 9490 uint32_t _itail_tgt = 0; 9491 RECOMP_REGS_LOCALS 9492 RECOMP_ENTER(0x3C0058D6u); 9493 9494 L_3C0058D6: 9495 edx = MEM32(ecx + 0x8); /* 0x3C0058D6: mov edx, dword ptr [ecx + 8] */ 9496 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x3C0058D9: cmp byte ptr [edx + 0x10], bl */ 9497 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9499 _flag_k = FK_NARROW(FK_CMP, 24); 9500 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005927; /* 0x3C0058DC: jne 0x3c005927 */ 9501 L_3C0058DE: 9502 edx = MEM32(ecx); /* 0x3C0058DE: mov edx, dword ptr [ecx] */ 9503 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0058E0: mov byte ptr [edx + 0x10], bl */ 9504 edx = MEM32(ecx); /* 0x3C0058E3: mov edx, dword ptr [ecx] */ 9505 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C0058E5: mov byte ptr [ecx + 0x10], 0 */ 9506 esi = MEM32(edx + 0x8); /* 0x3C0058E9: mov esi, dword ptr [edx + 8] */ 9507 MEM32(ecx) = esi; /* 0x3C0058EC: mov dword ptr [ecx], esi */ 9508 esi = MEM32(edx + 0x8); /* 0x3C0058EE: mov esi, dword ptr [edx + 8] */ 9509 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0058F1: cmp esi, dword ptr [edi + 8] */ 9510 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9512 _flag_k = FK_CMP; 9513 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0058F9; /* 0x3C0058F4: je 0x3c0058f9 */ 9514 L_3C0058F6: 9515 MEM32(esi + 0x4) = ecx; /* 0x3C0058F6: mov dword ptr [esi + 4], ecx */ 9516 L_3C0058F9: 9517 esi = MEM32(ecx + 0x4); /* 0x3C0058F9: mov esi, dword ptr [ecx + 4] */ 9518 MEM32(edx + 0x4) = esi; /* 0x3C0058FC: mov dword ptr [edx + 4], esi */ 9519 esi = MEM32(edi + 0x4); /* 0x3C0058FF: mov esi, dword ptr [edi + 4] */ 9520 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005902: cmp ecx, dword ptr [esi + 4] */ 9521 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9523 _flag_k = FK_CMP; 9524 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00590C; /* 0x3C005905: jne 0x3c00590c */ 9525 L_3C005907: 9526 MEM32(esi + 0x4) = edx; /* 0x3C005907: mov dword ptr [esi + 4], edx */ 9527 goto L_3C00591B; /* 0x3C00590A: jmp 0x3c00591b */ 9528 L_3C00590C: 9529 esi = MEM32(ecx + 0x4); /* 0x3C00590C: mov esi, dword ptr [ecx + 4] */ 9530 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C00590F: cmp ecx, dword ptr [esi + 8] */ 9531 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9533 _flag_k = FK_CMP; 9534 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005919; /* 0x3C005912: jne 0x3c005919 */ 9535 L_3C005914: 9536 MEM32(esi + 0x8) = edx; /* 0x3C005914: mov dword ptr [esi + 8], edx */ 9537 goto L_3C00591B; /* 0x3C005917: jmp 0x3c00591b */ 9538 L_3C005919: 9539 MEM32(esi) = edx; /* 0x3C005919: mov dword ptr [esi], edx */ 9540 L_3C00591B: 9541 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 9542 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 9543 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 9544 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 9545 L_3C005927: 9546 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 9547 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 9548 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 9549 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 9550 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 9551 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 9552 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 9553 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 9554 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 9555 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 9556 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 9557 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 9558 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 9559 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9561 _flag_k = FK_CMP; 9562 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 9563 L_3C00594E: 9564 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 9565 L_3C005951: 9566 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 9567 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 9568 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 9569 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 9570 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9572 _flag_k = FK_CMP; 9573 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 9574 L_3C00595F: 9575 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 9576 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 9577 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 9578 L_3C005969: 9579 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 9580 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 9581 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9583 _flag_k = FK_CMP; 9584 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 9585 L_3C005970: 9586 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 9587 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 9588 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 9589 L_3C005979: 9590 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 9591 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 9592 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 9593 L_3C005A1F: 9594 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 9595 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 9596 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 9597 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 9598 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 9599 RECOMP_FLAGS_IN(); 9600 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 9601 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 9602 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9603 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9604 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 9605 _flag_k = FK_ADD; 9606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9607 eax = eax - 1; /* 0x3C005A37: dec eax */ 9608 _flag_k = FK_DEC; 9609 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 9610 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 9611 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 9612 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 9613 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 9614 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 9615 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 9616 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 9617 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 9618 RECOMP_REGS_OUT(); 9619 } 9620 9621 void sub_3C00591B(void) { 9622 int _fpu_cmp = 0; 9623 uint32_t _cf = 0; 9624 int _df = 1; 9625 uint32_t _flag_k = FK_NONE; 9626 uint32_t _flag_a = 0, _flag_b = 0; 9627 uint32_t _itail_tgt = 0; 9628 RECOMP_REGS_LOCALS 9629 RECOMP_ENTER(0x3C00591Bu); 9630 9631 L_3C00591B: 9632 MEM32(edx + 0x8) = ecx; /* 0x3C00591B: mov dword ptr [edx + 8], ecx */ 9633 MEM32(ecx + 0x4) = edx; /* 0x3C00591E: mov dword ptr [ecx + 4], edx */ 9634 ecx = MEM32(eax + 0x4); /* 0x3C005921: mov ecx, dword ptr [eax + 4] */ 9635 ecx = MEM32(ecx + 0x8); /* 0x3C005924: mov ecx, dword ptr [ecx + 8] */ 9636 edx = MEM32(eax + 0x4); /* 0x3C005927: mov edx, dword ptr [eax + 4] */ 9637 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C00592A: mov dl, byte ptr [edx + 0x10] */ 9638 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C00592D: mov byte ptr [ecx + 0x10], dl */ 9639 edx = MEM32(eax + 0x4); /* 0x3C005930: mov edx, dword ptr [eax + 4] */ 9640 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005933: mov byte ptr [edx + 0x10], bl */ 9641 ecx = MEM32(ecx + 0x8); /* 0x3C005936: mov ecx, dword ptr [ecx + 8] */ 9642 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005939: mov byte ptr [ecx + 0x10], bl */ 9643 ecx = MEM32(eax + 0x4); /* 0x3C00593C: mov ecx, dword ptr [eax + 4] */ 9644 edx = MEM32(ecx + 0x8); /* 0x3C00593F: mov edx, dword ptr [ecx + 8] */ 9645 esi = MEM32(edx); /* 0x3C005942: mov esi, dword ptr [edx] */ 9646 MEM32(ecx + 0x8) = esi; /* 0x3C005944: mov dword ptr [ecx + 8], esi */ 9647 esi = MEM32(edx); /* 0x3C005947: mov esi, dword ptr [edx] */ 9648 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C005949: cmp esi, dword ptr [edi + 8] */ 9649 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9651 _flag_k = FK_CMP; 9652 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005951; /* 0x3C00594C: je 0x3c005951 */ 9653 L_3C00594E: 9654 MEM32(esi + 0x4) = ecx; /* 0x3C00594E: mov dword ptr [esi + 4], ecx */ 9655 L_3C005951: 9656 esi = MEM32(ecx + 0x4); /* 0x3C005951: mov esi, dword ptr [ecx + 4] */ 9657 MEM32(edx + 0x4) = esi; /* 0x3C005954: mov dword ptr [edx + 4], esi */ 9658 esi = MEM32(edi + 0x4); /* 0x3C005957: mov esi, dword ptr [edi + 4] */ 9659 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C00595A: cmp ecx, dword ptr [esi + 4] */ 9660 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9662 _flag_k = FK_CMP; 9663 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005969; /* 0x3C00595D: jne 0x3c005969 */ 9664 L_3C00595F: 9665 MEM32(esi + 0x4) = edx; /* 0x3C00595F: mov dword ptr [esi + 4], edx */ 9666 MEM32(edx) = ecx; /* 0x3C005962: mov dword ptr [edx], ecx */ 9667 goto L_3C005A1F; /* 0x3C005964: jmp 0x3c005a1f */ 9668 L_3C005969: 9669 esi = MEM32(ecx + 0x4); /* 0x3C005969: mov esi, dword ptr [ecx + 4] */ 9670 /* cmp ecx, MEM32(esi) */ /* 0x3C00596C: cmp ecx, dword ptr [esi] */ 9671 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9673 _flag_k = FK_CMP; 9674 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005979; /* 0x3C00596E: jne 0x3c005979 */ 9675 L_3C005970: 9676 MEM32(esi) = edx; /* 0x3C005970: mov dword ptr [esi], edx */ 9677 MEM32(edx) = ecx; /* 0x3C005972: mov dword ptr [edx], ecx */ 9678 goto L_3C005A1F; /* 0x3C005974: jmp 0x3c005a1f */ 9679 L_3C005979: 9680 MEM32(esi + 0x8) = edx; /* 0x3C005979: mov dword ptr [esi + 8], edx */ 9681 MEM32(edx) = ecx; /* 0x3C00597C: mov dword ptr [edx], ecx */ 9682 goto L_3C005A1F; /* 0x3C00597E: jmp 0x3c005a1f */ 9683 L_3C005A1F: 9684 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 9685 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 9686 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 9687 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 9688 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 9689 RECOMP_FLAGS_IN(); 9690 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 9691 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 9692 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9693 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9694 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 9695 _flag_k = FK_ADD; 9696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9697 eax = eax - 1; /* 0x3C005A37: dec eax */ 9698 _flag_k = FK_DEC; 9699 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 9700 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 9701 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 9702 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 9703 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 9704 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 9705 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 9706 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 9707 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 9708 RECOMP_REGS_OUT(); 9709 } 9710 9711 void sub_3C0059C7(void) { 9712 int _fpu_cmp = 0; 9713 uint32_t _cf = 0; 9714 int _df = 1; 9715 uint32_t _flag_k = FK_NONE; 9716 uint32_t _flag_a = 0, _flag_b = 0; 9717 uint32_t _itail_tgt = 0; 9718 RECOMP_REGS_LOCALS 9719 RECOMP_ENTER(0x3C0059C7u); 9720 9721 L_3C0059C7: 9722 MEM32(edx) = ecx; /* 0x3C0059C7: mov dword ptr [edx], ecx */ 9723 MEM32(ecx + 0x4) = edx; /* 0x3C0059C9: mov dword ptr [ecx + 4], edx */ 9724 ecx = MEM32(eax + 0x4); /* 0x3C0059CC: mov ecx, dword ptr [eax + 4] */ 9725 ecx = MEM32(ecx); /* 0x3C0059CF: mov ecx, dword ptr [ecx] */ 9726 edx = MEM32(eax + 0x4); /* 0x3C0059D1: mov edx, dword ptr [eax + 4] */ 9727 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x3C0059D4: mov dl, byte ptr [edx + 0x10] */ 9728 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C0059D7: mov byte ptr [ecx + 0x10], dl */ 9729 edx = MEM32(eax + 0x4); /* 0x3C0059DA: mov edx, dword ptr [eax + 4] */ 9730 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059DD: mov byte ptr [edx + 0x10], bl */ 9731 ecx = MEM32(ecx); /* 0x3C0059E0: mov ecx, dword ptr [ecx] */ 9732 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C0059E2: mov byte ptr [ecx + 0x10], bl */ 9733 ecx = MEM32(eax + 0x4); /* 0x3C0059E5: mov ecx, dword ptr [eax + 4] */ 9734 edx = MEM32(ecx); /* 0x3C0059E8: mov edx, dword ptr [ecx] */ 9735 esi = MEM32(edx + 0x8); /* 0x3C0059EA: mov esi, dword ptr [edx + 8] */ 9736 MEM32(ecx) = esi; /* 0x3C0059ED: mov dword ptr [ecx], esi */ 9737 esi = MEM32(edx + 0x8); /* 0x3C0059EF: mov esi, dword ptr [edx + 8] */ 9738 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3C0059F2: cmp esi, dword ptr [edi + 8] */ 9739 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9741 _flag_k = FK_CMP; 9742 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0059FA; /* 0x3C0059F5: je 0x3c0059fa */ 9743 L_3C0059F7: 9744 MEM32(esi + 0x4) = ecx; /* 0x3C0059F7: mov dword ptr [esi + 4], ecx */ 9745 L_3C0059FA: 9746 esi = MEM32(ecx + 0x4); /* 0x3C0059FA: mov esi, dword ptr [ecx + 4] */ 9747 MEM32(edx + 0x4) = esi; /* 0x3C0059FD: mov dword ptr [edx + 4], esi */ 9748 esi = MEM32(edi + 0x4); /* 0x3C005A00: mov esi, dword ptr [edi + 4] */ 9749 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3C005A03: cmp ecx, dword ptr [esi + 4] */ 9750 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9752 _flag_k = FK_CMP; 9753 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A0D; /* 0x3C005A06: jne 0x3c005a0d */ 9754 L_3C005A08: 9755 MEM32(esi + 0x4) = edx; /* 0x3C005A08: mov dword ptr [esi + 4], edx */ 9756 goto L_3C005A1C; /* 0x3C005A0B: jmp 0x3c005a1c */ 9757 L_3C005A0D: 9758 esi = MEM32(ecx + 0x4); /* 0x3C005A0D: mov esi, dword ptr [ecx + 4] */ 9759 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3C005A10: cmp ecx, dword ptr [esi + 8] */ 9760 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9762 _flag_k = FK_CMP; 9763 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A1A; /* 0x3C005A13: jne 0x3c005a1a */ 9764 L_3C005A15: 9765 MEM32(esi + 0x8) = edx; /* 0x3C005A15: mov dword ptr [esi + 8], edx */ 9766 goto L_3C005A1C; /* 0x3C005A18: jmp 0x3c005a1c */ 9767 L_3C005A1A: 9768 MEM32(esi) = edx; /* 0x3C005A1A: mov dword ptr [esi], edx */ 9769 L_3C005A1C: 9770 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 9771 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 9772 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 9773 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 9774 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 9775 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 9776 RECOMP_FLAGS_IN(); 9777 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 9778 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 9779 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9781 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 9782 _flag_k = FK_ADD; 9783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9784 eax = eax - 1; /* 0x3C005A37: dec eax */ 9785 _flag_k = FK_DEC; 9786 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 9787 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 9788 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 9789 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 9790 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 9791 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 9792 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 9793 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 9794 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 9795 RECOMP_REGS_OUT(); 9796 } 9797 9798 void sub_3C005A1C(void) { 9799 int _fpu_cmp = 0; 9800 uint32_t _cf = 0; 9801 int _df = 1; 9802 uint32_t _flag_k = FK_NONE; 9803 uint32_t _flag_a = 0, _flag_b = 0; 9804 uint32_t _itail_tgt = 0; 9805 RECOMP_REGS_LOCALS 9806 RECOMP_ENTER(0x3C005A1Cu); 9807 9808 L_3C005A1C: 9809 MEM32(edx + 0x8) = ecx; /* 0x3C005A1C: mov dword ptr [edx + 8], ecx */ 9810 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 9811 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 9812 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 9813 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 9814 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 9815 RECOMP_FLAGS_IN(); 9816 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 9817 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 9818 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9819 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9820 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 9821 _flag_k = FK_ADD; 9822 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9823 eax = eax - 1; /* 0x3C005A37: dec eax */ 9824 _flag_k = FK_DEC; 9825 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 9826 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 9827 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 9828 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 9829 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 9830 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 9831 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 9832 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 9833 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 9834 RECOMP_REGS_OUT(); 9835 } 9836 9837 void sub_3C005A1F(void) { 9838 int _fpu_cmp = 0; 9839 uint32_t _cf = 0; 9840 int _df = 1; 9841 uint32_t _flag_k = FK_NONE; 9842 uint32_t _flag_a = 0, _flag_b = 0; 9843 uint32_t _itail_tgt = 0; 9844 RECOMP_REGS_LOCALS 9845 RECOMP_ENTER(0x3C005A1Fu); 9846 9847 L_3C005A1F: 9848 MEM32(ecx + 0x4) = edx; /* 0x3C005A1F: mov dword ptr [ecx + 4], edx */ 9849 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 9850 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 9851 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 9852 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 9853 RECOMP_FLAGS_IN(); 9854 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 9855 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 9856 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9858 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 9859 _flag_k = FK_ADD; 9860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9861 eax = eax - 1; /* 0x3C005A37: dec eax */ 9862 _flag_k = FK_DEC; 9863 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 9864 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 9865 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 9866 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 9867 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 9868 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 9869 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 9870 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 9871 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 9872 RECOMP_REGS_OUT(); 9873 } 9874 9875 void sub_3C005A22(void) { 9876 int _fpu_cmp = 0; 9877 uint32_t _cf = 0; 9878 int _df = 1; 9879 uint32_t _flag_k = FK_NONE; 9880 uint32_t _flag_a = 0, _flag_b = 0; 9881 uint32_t _itail_tgt = 0; 9882 RECOMP_REGS_LOCALS 9883 RECOMP_ENTER(0x3C005A22u); 9884 9885 L_3C005A22: 9886 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005A22: mov byte ptr [eax + 0x10], bl */ 9887 edx = MEM32(ebp + (-0x4)); /* 0x3C005A25: mov edx, dword ptr [ebp - 4] */ 9888 PUSH32(esp, edx); /* 0x3C005A28: push edx */ 9889 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005A29: call 0x3c0089de */ /* not lifted */ 9890 RECOMP_FLAGS_IN(); 9891 eax = MEM32(edi + 0x10); /* 0x3C005A2E: mov eax, dword ptr [edi + 0x10] */ 9892 ecx = MEM32(ebp + 0xC); /* 0x3C005A31: mov ecx, dword ptr [ebp + 0xc] */ 9893 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9894 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9895 esp = esp + 4; /* 0x3C005A34: add esp, 4 */ 9896 _flag_k = FK_ADD; 9897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9898 eax = eax - 1; /* 0x3C005A37: dec eax */ 9899 _flag_k = FK_DEC; 9900 MEM32(edi + 0x10) = eax; /* 0x3C005A38: mov dword ptr [edi + 0x10], eax */ 9901 eax = MEM32(ebp + 0x8); /* 0x3C005A3B: mov eax, dword ptr [ebp + 8] */ 9902 edi = POP32_VAL(esp); /* 0x3C005A3E: pop edi */ 9903 esi = POP32_VAL(esp); /* 0x3C005A3F: pop esi */ 9904 MEM32(eax) = ecx; /* 0x3C005A40: mov dword ptr [eax], ecx */ 9905 ebx = POP32_VAL(esp); /* 0x3C005A42: pop ebx */ 9906 esp = ebp; /* 0x3C005A43: mov esp, ebp */ 9907 ebp = POP32_VAL(esp); /* 0x3C005A45: pop ebp */ 9908 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A46: ret 8 */ 9909 RECOMP_REGS_OUT(); 9910 } 9911 9912 void sub_3C005A50(void) { 9913 int _fpu_cmp = 0; 9914 uint32_t _cf = 0; 9915 int _df = 1; 9916 uint32_t _flag_k = FK_NONE; 9917 uint32_t _flag_a = 0, _flag_b = 0; 9918 uint32_t _itail_tgt = 0; 9919 RECOMP_REGS_LOCALS 9920 RECOMP_ENTER(0x3C005A50u); 9921 9922 L_3C005A50: 9923 PUSH32(esp, ebp); /* 0x3C005A50: push ebp */ 9924 ebp = esp; /* 0x3C005A51: mov ebp, esp */ 9925 edx = MEM32(ecx + 0x4); /* 0x3C005A53: mov edx, dword ptr [ecx + 4] */ 9926 eax = MEM32(edx + 0x4); /* 0x3C005A56: mov eax, dword ptr [edx + 4] */ 9927 ecx = MEM32(ecx + 0x8); /* 0x3C005A59: mov ecx, dword ptr [ecx + 8] */ 9928 /* cmp eax, ecx */ /* 0x3C005A5C: cmp eax, ecx */ 9929 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9931 _flag_k = FK_CMP; 9932 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005A82; /* 0x3C005A5E: je 0x3c005a82 */ 9933 L_3C005A60: 9934 PUSH32(esp, esi); /* 0x3C005A60: push esi */ 9935 esi = MEM32(ebp + 0xC); /* 0x3C005A61: mov esi, dword ptr [ebp + 0xc] */ 9936 esi = MEM32(esi); /* 0x3C005A64: mov esi, dword ptr [esi] */ 9937 L_3C005A66: 9938 /* cmp MEM32(eax + 0xC), esi */ /* 0x3C005A66: cmp dword ptr [eax + 0xc], esi */ 9939 _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(esi); 9940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9941 _flag_k = FK_CMP; 9942 if (CMP_AE(_flag_a, _flag_b)) goto L_3C005A70; /* 0x3C005A69: jae 0x3c005a70 */ 9943 L_3C005A6B: 9944 eax = MEM32(eax + 0x8); /* 0x3C005A6B: mov eax, dword ptr [eax + 8] */ 9945 goto L_3C005A74; /* 0x3C005A6E: jmp 0x3c005a74 */ 9946 L_3C005A70: 9947 edx = eax; /* 0x3C005A70: mov edx, eax */ 9948 eax = MEM32(eax); /* 0x3C005A72: mov eax, dword ptr [eax] */ 9949 L_3C005A74: 9950 /* cmp eax, ecx */ /* 0x3C005A74: cmp eax, ecx */ 9951 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9953 _flag_k = FK_CMP; 9954 RECOMP_BACKEDGE(); 9955 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005A66; /* 0x3C005A76: jne 0x3c005a66 */ 9956 L_3C005A78: 9957 eax = MEM32(ebp + 0x8); /* 0x3C005A78: mov eax, dword ptr [ebp + 8] */ 9958 MEM32(eax) = edx; /* 0x3C005A7B: mov dword ptr [eax], edx */ 9959 esi = POP32_VAL(esp); /* 0x3C005A7D: pop esi */ 9960 ebp = POP32_VAL(esp); /* 0x3C005A7E: pop ebp */ 9961 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A7F: ret 8 */ 9962 L_3C005A82: 9963 eax = MEM32(ebp + 0x8); /* 0x3C005A82: mov eax, dword ptr [ebp + 8] */ 9964 MEM32(eax) = edx; /* 0x3C005A85: mov dword ptr [eax], edx */ 9965 ebp = POP32_VAL(esp); /* 0x3C005A87: pop ebp */ 9966 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005A88: ret 8 */ 9967 RECOMP_REGS_OUT(); 9968 } 9969 9970 void sub_3C005A90(void) { 9971 int _fpu_cmp = 0; 9972 uint32_t _cf = 0; 9973 int _df = 1; 9974 uint32_t _flag_k = FK_NONE; 9975 uint32_t _flag_a = 0, _flag_b = 0; 9976 uint32_t _itail_tgt = 0; 9977 RECOMP_REGS_LOCALS 9978 RECOMP_ENTER(0x3C005A90u); 9979 9980 L_3C005A90: 9981 PUSH32(esp, ebp); /* 0x3C005A90: push ebp */ 9982 ebp = esp; /* 0x3C005A91: mov ebp, esp */ 9983 PUSH32(esp, ebx); /* 0x3C005A93: push ebx */ 9984 PUSH32(esp, esi); /* 0x3C005A94: push esi */ 9985 ebx = ecx; /* 0x3C005A95: mov ebx, ecx */ 9986 eax = MEM32(ebx + 0x8); /* 0x3C005A97: mov eax, dword ptr [ebx + 8] */ 9987 PUSH32(esp, edi); /* 0x3C005A9A: push edi */ 9988 edi = MEM32(ebp + 0x8); /* 0x3C005A9B: mov edi, dword ptr [ebp + 8] */ 9989 /* cmp edi, eax */ /* 0x3C005A9E: cmp edi, eax */ 9990 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9992 _flag_k = FK_CMP; 9993 esi = edi; /* 0x3C005AA0: mov esi, edi */ 9994 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005AC3; /* 0x3C005AA2: je 0x3c005ac3 */ 9995 L_3C005AA4: 9996 eax = MEM32(esi + 0x8); /* 0x3C005AA4: mov eax, dword ptr [esi + 8] */ 9997 PUSH32(esp, eax); /* 0x3C005AA7: push eax */ 9998 ecx = ebx; /* 0x3C005AA8: mov ecx, ebx */ 9999 RECOMP_ICALL(0x3C005A90u); /* 0x3C005AAA: call 0x3c005a90 */ /* not lifted */ 10000 RECOMP_FLAGS_IN(); 10001 esi = MEM32(esi); /* 0x3C005AAF: mov esi, dword ptr [esi] */ 10002 PUSH32(esp, edi); /* 0x3C005AB1: push edi */ 10003 RECOMP_ICALL(0x3C0089DEu); /* 0x3C005AB2: call 0x3c0089de */ /* not lifted */ 10004 RECOMP_FLAGS_IN(); 10005 eax = MEM32(ebx + 0x8); /* 0x3C005AB7: mov eax, dword ptr [ebx + 8] */ 10006 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10008 esp = esp + 4; /* 0x3C005ABA: add esp, 4 */ 10009 _flag_k = FK_ADD; 10010 /* cmp esi, eax */ /* 0x3C005ABD: cmp esi, eax */ 10011 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 10012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10013 _flag_k = FK_CMP; 10014 edi = esi; /* 0x3C005ABF: mov edi, esi */ 10015 RECOMP_BACKEDGE(); 10016 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005AA4; /* 0x3C005AC1: jne 0x3c005aa4 */ 10017 L_3C005AC3: 10018 edi = POP32_VAL(esp); /* 0x3C005AC3: pop edi */ 10019 esi = POP32_VAL(esp); /* 0x3C005AC4: pop esi */ 10020 ebx = POP32_VAL(esp); /* 0x3C005AC5: pop ebx */ 10021 ebp = POP32_VAL(esp); /* 0x3C005AC6: pop ebp */ 10022 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C005AC7: ret 4 */ 10023 RECOMP_REGS_OUT(); 10024 } 10025 10026 void sub_3C005AD0(void) { 10027 int _fpu_cmp = 0; 10028 uint32_t _cf = 0; 10029 int _df = 1; 10030 uint32_t _flag_k = FK_NONE; 10031 uint32_t _flag_a = 0, _flag_b = 0; 10032 uint32_t _itail_tgt = 0; 10033 RECOMP_REGS_LOCALS 10034 RECOMP_ENTER(0x3C005AD0u); 10035 10036 L_3C005AD0: 10037 PUSH32(esp, ebx); /* 0x3C005AD0: push ebx */ 10038 PUSH32(esp, esi); /* 0x3C005AD1: push esi */ 10039 PUSH32(esp, edi); /* 0x3C005AD2: push edi */ 10040 PUSH32(esp, 0x14u); /* 0x3C005AD3: push 0x14 */ 10041 esi = ecx; /* 0x3C005AD5: mov esi, ecx */ 10042 RECOMP_ICALL(0x3C008B40u); /* 0x3C005AD7: call 0x3c008b40 */ /* not lifted */ 10043 RECOMP_FLAGS_IN(); 10044 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10045 ebx = 0; /* 0x3C005ADC: xor ebx, ebx */ 10046 _cf = 0; 10047 _flag_k = FK_TEST; 10048 MEM32(eax + 0x4) = ebx; /* 0x3C005ADE: mov dword ptr [eax + 4], ebx */ 10049 MEM8(eax + 0x11) = (uint8_t)(LO8(ebx)); /* 0x3C005AE1: mov byte ptr [eax + 0x11], bl */ 10050 SET_LO8(ecx, 1); /* 0x3C005AE4: mov cl, 1 */ 10051 MEM8(eax + 0x10) = (uint8_t)(LO8(ecx)); /* 0x3C005AE6: mov byte ptr [eax + 0x10], cl */ 10052 MEM32(esi + 0x8) = eax; /* 0x3C005AE9: mov dword ptr [esi + 8], eax */ 10053 MEM8(eax + 0x11) = (uint8_t)(LO8(ecx)); /* 0x3C005AEC: mov byte ptr [eax + 0x11], cl */ 10054 eax = MEM32(esi + 0x8); /* 0x3C005AEF: mov eax, dword ptr [esi + 8] */ 10055 MEM32(eax) = ebx; /* 0x3C005AF2: mov dword ptr [eax], ebx */ 10056 ecx = MEM32(esi + 0x8); /* 0x3C005AF4: mov ecx, dword ptr [esi + 8] */ 10057 MEM32(ecx + 0x8) = ebx; /* 0x3C005AF7: mov dword ptr [ecx + 8], ebx */ 10058 edi = MEM32(esi + 0x8); /* 0x3C005AFA: mov edi, dword ptr [esi + 8] */ 10059 PUSH32(esp, 0x14u); /* 0x3C005AFD: push 0x14 */ 10060 RECOMP_ICALL(0x3C008B40u); /* 0x3C005AFF: call 0x3c008b40 */ /* not lifted */ 10061 RECOMP_FLAGS_IN(); 10062 MEM32(eax + 0x4) = edi; /* 0x3C005B04: mov dword ptr [eax + 4], edi */ 10063 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005B07: mov byte ptr [eax + 0x10], bl */ 10064 MEM8(eax + 0x11) = (uint8_t)(LO8(ebx)); /* 0x3C005B0A: mov byte ptr [eax + 0x11], bl */ 10065 MEM32(esi + 0x4) = eax; /* 0x3C005B0D: mov dword ptr [esi + 4], eax */ 10066 MEM32(eax) = eax; /* 0x3C005B10: mov dword ptr [eax], eax */ 10067 eax = MEM32(esi + 0x4); /* 0x3C005B12: mov eax, dword ptr [esi + 4] */ 10068 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10069 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10070 esp = esp + 8; /* 0x3C005B15: add esp, 8 */ 10071 _flag_k = FK_ADD; 10072 edi = POP32_VAL(esp); /* 0x3C005B18: pop edi */ 10073 MEM32(eax + 0x8) = eax; /* 0x3C005B19: mov dword ptr [eax + 8], eax */ 10074 MEM32(esi + 0x10) = ebx; /* 0x3C005B1C: mov dword ptr [esi + 0x10], ebx */ 10075 esi = POP32_VAL(esp); /* 0x3C005B1F: pop esi */ 10076 ebx = POP32_VAL(esp); /* 0x3C005B20: pop ebx */ 10077 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005B21: ret */ 10078 RECOMP_REGS_OUT(); 10079 } 10080 10081 void sub_3C005B30(void) { 10082 int _fpu_cmp = 0; 10083 uint32_t _cf = 0; 10084 int _df = 1; 10085 uint32_t _flag_k = FK_NONE; 10086 uint32_t _flag_a = 0, _flag_b = 0; 10087 uint32_t _itail_tgt = 0; 10088 RECOMP_REGS_LOCALS 10089 RECOMP_ENTER(0x3C005B30u); 10090 10091 L_3C005B30: 10092 PUSH32(esp, ebp); /* 0x3C005B30: push ebp */ 10093 ebp = esp; /* 0x3C005B31: mov ebp, esp */ 10094 PUSH32(esp, ecx); /* 0x3C005B33: push ecx */ 10095 PUSH32(esp, ebx); /* 0x3C005B34: push ebx */ 10096 PUSH32(esp, esi); /* 0x3C005B35: push esi */ 10097 PUSH32(esp, edi); /* 0x3C005B36: push edi */ 10098 PUSH32(esp, 0x14u); /* 0x3C005B37: push 0x14 */ 10099 esi = ecx; /* 0x3C005B39: mov esi, ecx */ 10100 RECOMP_ICALL(0x3C008B40u); /* 0x3C005B3B: call 0x3c008b40 */ /* not lifted */ 10101 RECOMP_FLAGS_IN(); 10102 edi = MEM32(ebp + 0x10); /* 0x3C005B40: mov edi, dword ptr [ebp + 0x10] */ 10103 ebx = MEM32(ebp + 0x14); /* 0x3C005B43: mov ebx, dword ptr [ebp + 0x14] */ 10104 MEM32(eax + 0x4) = edi; /* 0x3C005B46: mov dword ptr [eax + 4], edi */ 10105 MEM8(eax + 0x10) = (uint8_t)(0); /* 0x3C005B49: mov byte ptr [eax + 0x10], 0 */ 10106 MEM8(eax + 0x11) = (uint8_t)(0); /* 0x3C005B4D: mov byte ptr [eax + 0x11], 0 */ 10107 ecx = MEM32(esi + 0x8); /* 0x3C005B51: mov ecx, dword ptr [esi + 8] */ 10108 MEM32(eax) = ecx; /* 0x3C005B54: mov dword ptr [eax], ecx */ 10109 edx = MEM32(esi + 0x8); /* 0x3C005B56: mov edx, dword ptr [esi + 8] */ 10110 MEM32(ebp + (-0x4)) = eax; /* 0x3C005B59: mov dword ptr [ebp - 4], eax */ 10111 MEM32(eax + 0x8) = edx; /* 0x3C005B5C: mov dword ptr [eax + 8], edx */ 10112 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 10113 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10114 eax = eax + 0xCu; /* 0x3C005B5F: add eax, 0xc */ 10115 _flag_k = FK_ADD; 10116 PUSH32(esp, ebx); /* 0x3C005B62: push ebx */ 10117 PUSH32(esp, eax); /* 0x3C005B63: push eax */ 10118 RECOMP_ICALL(0x3C005EC0u); /* 0x3C005B64: call 0x3c005ec0 */ /* not lifted */ 10119 RECOMP_FLAGS_IN(); 10120 ecx = MEM32(esi + 0x10); /* 0x3C005B69: mov ecx, dword ptr [esi + 0x10] */ 10121 eax = MEM32(esi + 0x4); /* 0x3C005B6C: mov eax, dword ptr [esi + 4] */ 10122 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10123 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10124 esp = esp + 0xCu; /* 0x3C005B6F: add esp, 0xc */ 10125 _flag_k = FK_ADD; 10126 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10127 ecx = ecx + 1; /* 0x3C005B72: inc ecx */ 10128 _flag_k = FK_INC; 10129 /* cmp edi, eax */ /* 0x3C005B73: cmp edi, eax */ 10130 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10132 _flag_k = FK_CMP; 10133 MEM32(esi + 0x10) = ecx; /* 0x3C005B75: mov dword ptr [esi + 0x10], ecx */ 10134 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005B9C; /* 0x3C005B78: je 0x3c005b9c */ 10135 L_3C005B7A: 10136 eax = MEM32(ebp + 0xC); /* 0x3C005B7A: mov eax, dword ptr [ebp + 0xc] */ 10137 /* cmp eax, MEM32(esi + 0x8) */ /* 0x3C005B7D: cmp eax, dword ptr [esi + 8] */ 10138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10140 _flag_k = FK_CMP; 10141 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005B9C; /* 0x3C005B80: jne 0x3c005b9c */ 10142 L_3C005B82: 10143 ecx = MEM32(ebx); /* 0x3C005B82: mov ecx, dword ptr [ebx] */ 10144 /* cmp ecx, MEM32(edi + 0xC) */ /* 0x3C005B84: cmp ecx, dword ptr [edi + 0xc] */ 10145 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 10146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10147 _flag_k = FK_CMP; 10148 if (CMP_B(_flag_a, _flag_b)) goto L_3C005B9C; /* 0x3C005B87: jb 0x3c005b9c */ 10149 L_3C005B89: 10150 ecx = MEM32(ebp + (-0x4)); /* 0x3C005B89: mov ecx, dword ptr [ebp - 4] */ 10151 MEM32(edi + 0x8) = ecx; /* 0x3C005B8C: mov dword ptr [edi + 8], ecx */ 10152 eax = MEM32(esi + 0x4); /* 0x3C005B8F: mov eax, dword ptr [esi + 4] */ 10153 /* cmp edi, MEM32(eax + 0x8) */ /* 0x3C005B92: cmp edi, dword ptr [eax + 8] */ 10154 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 10155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10156 _flag_k = FK_CMP; 10157 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BBC; /* 0x3C005B95: jne 0x3c005bbc */ 10158 L_3C005B97: 10159 MEM32(eax + 0x8) = ecx; /* 0x3C005B97: mov dword ptr [eax + 8], ecx */ 10160 goto L_3C005BBC; /* 0x3C005B9A: jmp 0x3c005bbc */ 10161 L_3C005B9C: 10162 ecx = MEM32(ebp + (-0x4)); /* 0x3C005B9C: mov ecx, dword ptr [ebp - 4] */ 10163 MEM32(edi) = ecx; /* 0x3C005B9F: mov dword ptr [edi], ecx */ 10164 eax = MEM32(esi + 0x4); /* 0x3C005BA1: mov eax, dword ptr [esi + 4] */ 10165 /* cmp edi, eax */ /* 0x3C005BA4: cmp edi, eax */ 10166 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10168 _flag_k = FK_CMP; 10169 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BB3; /* 0x3C005BA6: jne 0x3c005bb3 */ 10170 L_3C005BA8: 10171 MEM32(eax + 0x4) = ecx; /* 0x3C005BA8: mov dword ptr [eax + 4], ecx */ 10172 edx = MEM32(esi + 0x4); /* 0x3C005BAB: mov edx, dword ptr [esi + 4] */ 10173 MEM32(edx + 0x8) = ecx; /* 0x3C005BAE: mov dword ptr [edx + 8], ecx */ 10174 goto L_3C005BBC; /* 0x3C005BB1: jmp 0x3c005bbc */ 10175 L_3C005BB3: 10176 /* cmp edi, MEM32(eax) */ /* 0x3C005BB3: cmp edi, dword ptr [eax] */ 10177 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 10178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10179 _flag_k = FK_CMP; 10180 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BBC; /* 0x3C005BB5: jne 0x3c005bbc */ 10181 L_3C005BB7: 10182 ecx = MEM32(ebp + (-0x4)); /* 0x3C005BB7: mov ecx, dword ptr [ebp - 4] */ 10183 MEM32(eax) = ecx; /* 0x3C005BBA: mov dword ptr [eax], ecx */ 10184 L_3C005BBC: 10185 edx = MEM32(esi + 0x4); /* 0x3C005BBC: mov edx, dword ptr [esi + 4] */ 10186 eax = MEM32(ebp + (-0x4)); /* 0x3C005BBF: mov eax, dword ptr [ebp - 4] */ 10187 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005BC2: cmp eax, dword ptr [edx + 4] */ 10188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10190 _flag_k = FK_CMP; 10191 SET_LO8(ebx, 1); /* 0x3C005BC5: mov bl, 1 */ 10192 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D4D; /* 0x3C005BC7: je 0x3c005d4d */ 10193 L_3C005BCD: 10194 ecx = MEM32(eax + 0x4); /* 0x3C005BCD: mov ecx, dword ptr [eax + 4] */ 10195 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005BD0: mov dl, byte ptr [ecx + 0x10] */ 10196 /* test LO8(edx), LO8(edx) */ /* 0x3C005BD3: test dl, dl */ 10197 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10198 _cf = 0; 10199 _flag_k = FK_NARROW(FK_TEST, 24); 10200 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005D4D; /* 0x3C005BD5: jne 0x3c005d4d */ 10201 L_3C005BDB: 10202 edi = MEM32(ecx + 0x4); /* 0x3C005BDB: mov edi, dword ptr [ecx + 4] */ 10203 edx = MEM32(edi); /* 0x3C005BDE: mov edx, dword ptr [edi] */ 10204 /* cmp ecx, edx */ /* 0x3C005BE0: cmp ecx, edx */ 10205 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10207 _flag_k = FK_CMP; 10208 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CA9; /* 0x3C005BE2: jne 0x3c005ca9 */ 10209 L_3C005BE8: 10210 edx = MEM32(edi + 0x8); /* 0x3C005BE8: mov edx, dword ptr [edi + 8] */ 10211 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005BEB: cmp byte ptr [edx + 0x10], 0 */ 10212 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 10213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10214 _flag_k = FK_NARROW(FK_CMP, 24); 10215 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C0C; /* 0x3C005BEF: jne 0x3c005c0c */ 10216 L_3C005BF1: 10217 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF1: mov byte ptr [ecx + 0x10], bl */ 10218 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF4: mov byte ptr [edx + 0x10], bl */ 10219 ecx = MEM32(eax + 0x4); /* 0x3C005BF7: mov ecx, dword ptr [eax + 4] */ 10220 edx = MEM32(ecx + 0x4); /* 0x3C005BFA: mov edx, dword ptr [ecx + 4] */ 10221 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005BFD: mov byte ptr [edx + 0x10], 0 */ 10222 eax = MEM32(eax + 0x4); /* 0x3C005C01: mov eax, dword ptr [eax + 4] */ 10223 eax = MEM32(eax + 0x4); /* 0x3C005C04: mov eax, dword ptr [eax + 4] */ 10224 goto L_3C005D41; /* 0x3C005C07: jmp 0x3c005d41 */ 10225 L_3C005C0C: 10226 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3C005C0C: cmp eax, dword ptr [ecx + 8] */ 10227 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 10228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10229 _flag_k = FK_CMP; 10230 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C4B; /* 0x3C005C0F: jne 0x3c005c4b */ 10231 L_3C005C11: 10232 eax = ecx; /* 0x3C005C11: mov eax, ecx */ 10233 ecx = MEM32(eax + 0x8); /* 0x3C005C13: mov ecx, dword ptr [eax + 8] */ 10234 edx = MEM32(ecx); /* 0x3C005C16: mov edx, dword ptr [ecx] */ 10235 MEM32(eax + 0x8) = edx; /* 0x3C005C18: mov dword ptr [eax + 8], edx */ 10236 edx = MEM32(ecx); /* 0x3C005C1B: mov edx, dword ptr [ecx] */ 10237 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005C1D: cmp edx, dword ptr [esi + 8] */ 10238 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10240 _flag_k = FK_CMP; 10241 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C25; /* 0x3C005C20: je 0x3c005c25 */ 10242 L_3C005C22: 10243 MEM32(edx + 0x4) = eax; /* 0x3C005C22: mov dword ptr [edx + 4], eax */ 10244 L_3C005C25: 10245 edx = MEM32(eax + 0x4); /* 0x3C005C25: mov edx, dword ptr [eax + 4] */ 10246 MEM32(ecx + 0x4) = edx; /* 0x3C005C28: mov dword ptr [ecx + 4], edx */ 10247 edx = MEM32(esi + 0x4); /* 0x3C005C2B: mov edx, dword ptr [esi + 4] */ 10248 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005C2E: cmp eax, dword ptr [edx + 4] */ 10249 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10251 _flag_k = FK_CMP; 10252 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C38; /* 0x3C005C31: jne 0x3c005c38 */ 10253 L_3C005C33: 10254 MEM32(edx + 0x4) = ecx; /* 0x3C005C33: mov dword ptr [edx + 4], ecx */ 10255 goto L_3C005C46; /* 0x3C005C36: jmp 0x3c005c46 */ 10256 L_3C005C38: 10257 edx = MEM32(eax + 0x4); /* 0x3C005C38: mov edx, dword ptr [eax + 4] */ 10258 /* cmp eax, MEM32(edx) */ /* 0x3C005C3B: cmp eax, dword ptr [edx] */ 10259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 10260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10261 _flag_k = FK_CMP; 10262 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C43; /* 0x3C005C3D: jne 0x3c005c43 */ 10263 L_3C005C3F: 10264 MEM32(edx) = ecx; /* 0x3C005C3F: mov dword ptr [edx], ecx */ 10265 goto L_3C005C46; /* 0x3C005C41: jmp 0x3c005c46 */ 10266 L_3C005C43: 10267 MEM32(edx + 0x8) = ecx; /* 0x3C005C43: mov dword ptr [edx + 8], ecx */ 10268 L_3C005C46: 10269 MEM32(ecx) = eax; /* 0x3C005C46: mov dword ptr [ecx], eax */ 10270 MEM32(eax + 0x4) = ecx; /* 0x3C005C48: mov dword ptr [eax + 4], ecx */ 10271 L_3C005C4B: 10272 ecx = MEM32(eax + 0x4); /* 0x3C005C4B: mov ecx, dword ptr [eax + 4] */ 10273 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005C4E: mov byte ptr [ecx + 0x10], bl */ 10274 edx = MEM32(eax + 0x4); /* 0x3C005C51: mov edx, dword ptr [eax + 4] */ 10275 ecx = MEM32(edx + 0x4); /* 0x3C005C54: mov ecx, dword ptr [edx + 4] */ 10276 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005C57: mov byte ptr [ecx + 0x10], 0 */ 10277 edx = MEM32(eax + 0x4); /* 0x3C005C5B: mov edx, dword ptr [eax + 4] */ 10278 ecx = MEM32(edx + 0x4); /* 0x3C005C5E: mov ecx, dword ptr [edx + 4] */ 10279 edx = MEM32(ecx); /* 0x3C005C61: mov edx, dword ptr [ecx] */ 10280 edi = MEM32(edx + 0x8); /* 0x3C005C63: mov edi, dword ptr [edx + 8] */ 10281 MEM32(ecx) = edi; /* 0x3C005C66: mov dword ptr [ecx], edi */ 10282 edi = MEM32(edx + 0x8); /* 0x3C005C68: mov edi, dword ptr [edx + 8] */ 10283 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005C6B: cmp edi, dword ptr [esi + 8] */ 10284 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10286 _flag_k = FK_CMP; 10287 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C73; /* 0x3C005C6E: je 0x3c005c73 */ 10288 L_3C005C70: 10289 MEM32(edi + 0x4) = ecx; /* 0x3C005C70: mov dword ptr [edi + 4], ecx */ 10290 L_3C005C73: 10291 edi = MEM32(ecx + 0x4); /* 0x3C005C73: mov edi, dword ptr [ecx + 4] */ 10292 MEM32(edx + 0x4) = edi; /* 0x3C005C76: mov dword ptr [edx + 4], edi */ 10293 edi = MEM32(esi + 0x4); /* 0x3C005C79: mov edi, dword ptr [esi + 4] */ 10294 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005C7C: cmp ecx, dword ptr [edi + 4] */ 10295 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10297 _flag_k = FK_CMP; 10298 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C8C; /* 0x3C005C7F: jne 0x3c005c8c */ 10299 L_3C005C81: 10300 MEM32(edi + 0x4) = edx; /* 0x3C005C81: mov dword ptr [edi + 4], edx */ 10301 MEM32(edx + 0x8) = ecx; /* 0x3C005C84: mov dword ptr [edx + 8], ecx */ 10302 goto L_3C005D3E; /* 0x3C005C87: jmp 0x3c005d3e */ 10303 L_3C005C8C: 10304 edi = MEM32(ecx + 0x4); /* 0x3C005C8C: mov edi, dword ptr [ecx + 4] */ 10305 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005C8F: cmp ecx, dword ptr [edi + 8] */ 10306 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10308 _flag_k = FK_CMP; 10309 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C9F; /* 0x3C005C92: jne 0x3c005c9f */ 10310 L_3C005C94: 10311 MEM32(edi + 0x8) = edx; /* 0x3C005C94: mov dword ptr [edi + 8], edx */ 10312 MEM32(edx + 0x8) = ecx; /* 0x3C005C97: mov dword ptr [edx + 8], ecx */ 10313 goto L_3C005D3E; /* 0x3C005C9A: jmp 0x3c005d3e */ 10314 L_3C005C9F: 10315 MEM32(edi) = edx; /* 0x3C005C9F: mov dword ptr [edi], edx */ 10316 MEM32(edx + 0x8) = ecx; /* 0x3C005CA1: mov dword ptr [edx + 8], ecx */ 10317 goto L_3C005D3E; /* 0x3C005CA4: jmp 0x3c005d3e */ 10318 L_3C005CA9: 10319 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005CA9: cmp byte ptr [edx + 0x10], 0 */ 10320 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 10321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10322 _flag_k = FK_NARROW(FK_CMP, 24); 10323 RECOMP_BACKEDGE(); 10324 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005BF1; /* 0x3C005CAD: je 0x3c005bf1 */ 10325 L_3C005CB3: 10326 /* cmp eax, MEM32(ecx) */ /* 0x3C005CB3: cmp eax, dword ptr [ecx] */ 10327 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 10328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10329 _flag_k = FK_CMP; 10330 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CF3; /* 0x3C005CB5: jne 0x3c005cf3 */ 10331 L_3C005CB7: 10332 eax = ecx; /* 0x3C005CB7: mov eax, ecx */ 10333 ecx = MEM32(eax); /* 0x3C005CB9: mov ecx, dword ptr [eax] */ 10334 edx = MEM32(ecx + 0x8); /* 0x3C005CBB: mov edx, dword ptr [ecx + 8] */ 10335 MEM32(eax) = edx; /* 0x3C005CBE: mov dword ptr [eax], edx */ 10336 edx = MEM32(ecx + 0x8); /* 0x3C005CC0: mov edx, dword ptr [ecx + 8] */ 10337 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005CC3: cmp edx, dword ptr [esi + 8] */ 10338 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10340 _flag_k = FK_CMP; 10341 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005CCB; /* 0x3C005CC6: je 0x3c005ccb */ 10342 L_3C005CC8: 10343 MEM32(edx + 0x4) = eax; /* 0x3C005CC8: mov dword ptr [edx + 4], eax */ 10344 L_3C005CCB: 10345 edx = MEM32(eax + 0x4); /* 0x3C005CCB: mov edx, dword ptr [eax + 4] */ 10346 MEM32(ecx + 0x4) = edx; /* 0x3C005CCE: mov dword ptr [ecx + 4], edx */ 10347 edx = MEM32(esi + 0x4); /* 0x3C005CD1: mov edx, dword ptr [esi + 4] */ 10348 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005CD4: cmp eax, dword ptr [edx + 4] */ 10349 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10351 _flag_k = FK_CMP; 10352 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CDE; /* 0x3C005CD7: jne 0x3c005cde */ 10353 L_3C005CD9: 10354 MEM32(edx + 0x4) = ecx; /* 0x3C005CD9: mov dword ptr [edx + 4], ecx */ 10355 goto L_3C005CED; /* 0x3C005CDC: jmp 0x3c005ced */ 10356 L_3C005CDE: 10357 edx = MEM32(eax + 0x4); /* 0x3C005CDE: mov edx, dword ptr [eax + 4] */ 10358 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3C005CE1: cmp eax, dword ptr [edx + 8] */ 10359 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 10360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10361 _flag_k = FK_CMP; 10362 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CEB; /* 0x3C005CE4: jne 0x3c005ceb */ 10363 L_3C005CE6: 10364 MEM32(edx + 0x8) = ecx; /* 0x3C005CE6: mov dword ptr [edx + 8], ecx */ 10365 goto L_3C005CED; /* 0x3C005CE9: jmp 0x3c005ced */ 10366 L_3C005CEB: 10367 MEM32(edx) = ecx; /* 0x3C005CEB: mov dword ptr [edx], ecx */ 10368 L_3C005CED: 10369 MEM32(ecx + 0x8) = eax; /* 0x3C005CED: mov dword ptr [ecx + 8], eax */ 10370 MEM32(eax + 0x4) = ecx; /* 0x3C005CF0: mov dword ptr [eax + 4], ecx */ 10371 L_3C005CF3: 10372 ecx = MEM32(eax + 0x4); /* 0x3C005CF3: mov ecx, dword ptr [eax + 4] */ 10373 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005CF6: mov byte ptr [ecx + 0x10], bl */ 10374 edx = MEM32(eax + 0x4); /* 0x3C005CF9: mov edx, dword ptr [eax + 4] */ 10375 ecx = MEM32(edx + 0x4); /* 0x3C005CFC: mov ecx, dword ptr [edx + 4] */ 10376 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005CFF: mov byte ptr [ecx + 0x10], 0 */ 10377 edx = MEM32(eax + 0x4); /* 0x3C005D03: mov edx, dword ptr [eax + 4] */ 10378 ecx = MEM32(edx + 0x4); /* 0x3C005D06: mov ecx, dword ptr [edx + 4] */ 10379 edx = MEM32(ecx + 0x8); /* 0x3C005D09: mov edx, dword ptr [ecx + 8] */ 10380 edi = MEM32(edx); /* 0x3C005D0C: mov edi, dword ptr [edx] */ 10381 MEM32(ecx + 0x8) = edi; /* 0x3C005D0E: mov dword ptr [ecx + 8], edi */ 10382 edi = MEM32(edx); /* 0x3C005D11: mov edi, dword ptr [edx] */ 10383 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005D13: cmp edi, dword ptr [esi + 8] */ 10384 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10386 _flag_k = FK_CMP; 10387 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D1B; /* 0x3C005D16: je 0x3c005d1b */ 10388 L_3C005D18: 10389 MEM32(edi + 0x4) = ecx; /* 0x3C005D18: mov dword ptr [edi + 4], ecx */ 10390 L_3C005D1B: 10391 edi = MEM32(ecx + 0x4); /* 0x3C005D1B: mov edi, dword ptr [ecx + 4] */ 10392 MEM32(edx + 0x4) = edi; /* 0x3C005D1E: mov dword ptr [edx + 4], edi */ 10393 edi = MEM32(esi + 0x4); /* 0x3C005D21: mov edi, dword ptr [esi + 4] */ 10394 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005D24: cmp ecx, dword ptr [edi + 4] */ 10395 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10397 _flag_k = FK_CMP; 10398 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D2E; /* 0x3C005D27: jne 0x3c005d2e */ 10399 L_3C005D29: 10400 MEM32(edi + 0x4) = edx; /* 0x3C005D29: mov dword ptr [edi + 4], edx */ 10401 goto L_3C005D3C; /* 0x3C005D2C: jmp 0x3c005d3c */ 10402 L_3C005D2E: 10403 edi = MEM32(ecx + 0x4); /* 0x3C005D2E: mov edi, dword ptr [ecx + 4] */ 10404 /* cmp ecx, MEM32(edi) */ /* 0x3C005D31: cmp ecx, dword ptr [edi] */ 10405 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 10406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10407 _flag_k = FK_CMP; 10408 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D39; /* 0x3C005D33: jne 0x3c005d39 */ 10409 L_3C005D35: 10410 MEM32(edi) = edx; /* 0x3C005D35: mov dword ptr [edi], edx */ 10411 goto L_3C005D3C; /* 0x3C005D37: jmp 0x3c005d3c */ 10412 L_3C005D39: 10413 MEM32(edi + 0x8) = edx; /* 0x3C005D39: mov dword ptr [edi + 8], edx */ 10414 L_3C005D3C: 10415 MEM32(edx) = ecx; /* 0x3C005D3C: mov dword ptr [edx], ecx */ 10416 L_3C005D3E: 10417 MEM32(ecx + 0x4) = edx; /* 0x3C005D3E: mov dword ptr [ecx + 4], edx */ 10418 L_3C005D41: 10419 ecx = MEM32(esi + 0x4); /* 0x3C005D41: mov ecx, dword ptr [esi + 4] */ 10420 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C005D44: cmp eax, dword ptr [ecx + 4] */ 10421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10423 _flag_k = FK_CMP; 10424 RECOMP_BACKEDGE(); 10425 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BCD; /* 0x3C005D47: jne 0x3c005bcd */ 10426 L_3C005D4D: 10427 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 10428 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 10429 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 10430 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 10431 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 10432 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 10433 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 10434 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 10435 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 10436 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 10437 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 10438 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 10439 RECOMP_REGS_OUT(); 10440 } 10441 10442 void sub_3C005BCD(void) { 10443 int _fpu_cmp = 0; 10444 uint32_t _cf = 0; 10445 int _df = 1; 10446 uint32_t _flag_k = FK_NONE; 10447 uint32_t _flag_a = 0, _flag_b = 0; 10448 uint32_t _itail_tgt = 0; 10449 RECOMP_REGS_LOCALS 10450 RECOMP_ENTER(0x3C005BCDu); 10451 10452 L_3C005BCD: 10453 ecx = MEM32(eax + 0x4); /* 0x3C005BCD: mov ecx, dword ptr [eax + 4] */ 10454 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005BD0: mov dl, byte ptr [ecx + 0x10] */ 10455 /* test LO8(edx), LO8(edx) */ /* 0x3C005BD3: test dl, dl */ 10456 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10457 _cf = 0; 10458 _flag_k = FK_NARROW(FK_TEST, 24); 10459 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005D4D; /* 0x3C005BD5: jne 0x3c005d4d */ 10460 L_3C005BDB: 10461 edi = MEM32(ecx + 0x4); /* 0x3C005BDB: mov edi, dword ptr [ecx + 4] */ 10462 edx = MEM32(edi); /* 0x3C005BDE: mov edx, dword ptr [edi] */ 10463 /* cmp ecx, edx */ /* 0x3C005BE0: cmp ecx, edx */ 10464 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10466 _flag_k = FK_CMP; 10467 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CA9; /* 0x3C005BE2: jne 0x3c005ca9 */ 10468 L_3C005BE8: 10469 edx = MEM32(edi + 0x8); /* 0x3C005BE8: mov edx, dword ptr [edi + 8] */ 10470 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005BEB: cmp byte ptr [edx + 0x10], 0 */ 10471 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 10472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10473 _flag_k = FK_NARROW(FK_CMP, 24); 10474 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C0C; /* 0x3C005BEF: jne 0x3c005c0c */ 10475 L_3C005BF1: 10476 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF1: mov byte ptr [ecx + 0x10], bl */ 10477 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF4: mov byte ptr [edx + 0x10], bl */ 10478 ecx = MEM32(eax + 0x4); /* 0x3C005BF7: mov ecx, dword ptr [eax + 4] */ 10479 edx = MEM32(ecx + 0x4); /* 0x3C005BFA: mov edx, dword ptr [ecx + 4] */ 10480 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005BFD: mov byte ptr [edx + 0x10], 0 */ 10481 eax = MEM32(eax + 0x4); /* 0x3C005C01: mov eax, dword ptr [eax + 4] */ 10482 eax = MEM32(eax + 0x4); /* 0x3C005C04: mov eax, dword ptr [eax + 4] */ 10483 goto L_3C005D41; /* 0x3C005C07: jmp 0x3c005d41 */ 10484 L_3C005C0C: 10485 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3C005C0C: cmp eax, dword ptr [ecx + 8] */ 10486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 10487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10488 _flag_k = FK_CMP; 10489 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C4B; /* 0x3C005C0F: jne 0x3c005c4b */ 10490 L_3C005C11: 10491 eax = ecx; /* 0x3C005C11: mov eax, ecx */ 10492 ecx = MEM32(eax + 0x8); /* 0x3C005C13: mov ecx, dword ptr [eax + 8] */ 10493 edx = MEM32(ecx); /* 0x3C005C16: mov edx, dword ptr [ecx] */ 10494 MEM32(eax + 0x8) = edx; /* 0x3C005C18: mov dword ptr [eax + 8], edx */ 10495 edx = MEM32(ecx); /* 0x3C005C1B: mov edx, dword ptr [ecx] */ 10496 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005C1D: cmp edx, dword ptr [esi + 8] */ 10497 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10499 _flag_k = FK_CMP; 10500 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C25; /* 0x3C005C20: je 0x3c005c25 */ 10501 L_3C005C22: 10502 MEM32(edx + 0x4) = eax; /* 0x3C005C22: mov dword ptr [edx + 4], eax */ 10503 L_3C005C25: 10504 edx = MEM32(eax + 0x4); /* 0x3C005C25: mov edx, dword ptr [eax + 4] */ 10505 MEM32(ecx + 0x4) = edx; /* 0x3C005C28: mov dword ptr [ecx + 4], edx */ 10506 edx = MEM32(esi + 0x4); /* 0x3C005C2B: mov edx, dword ptr [esi + 4] */ 10507 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005C2E: cmp eax, dword ptr [edx + 4] */ 10508 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10510 _flag_k = FK_CMP; 10511 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C38; /* 0x3C005C31: jne 0x3c005c38 */ 10512 L_3C005C33: 10513 MEM32(edx + 0x4) = ecx; /* 0x3C005C33: mov dword ptr [edx + 4], ecx */ 10514 goto L_3C005C46; /* 0x3C005C36: jmp 0x3c005c46 */ 10515 L_3C005C38: 10516 edx = MEM32(eax + 0x4); /* 0x3C005C38: mov edx, dword ptr [eax + 4] */ 10517 /* cmp eax, MEM32(edx) */ /* 0x3C005C3B: cmp eax, dword ptr [edx] */ 10518 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 10519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10520 _flag_k = FK_CMP; 10521 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C43; /* 0x3C005C3D: jne 0x3c005c43 */ 10522 L_3C005C3F: 10523 MEM32(edx) = ecx; /* 0x3C005C3F: mov dword ptr [edx], ecx */ 10524 goto L_3C005C46; /* 0x3C005C41: jmp 0x3c005c46 */ 10525 L_3C005C43: 10526 MEM32(edx + 0x8) = ecx; /* 0x3C005C43: mov dword ptr [edx + 8], ecx */ 10527 L_3C005C46: 10528 MEM32(ecx) = eax; /* 0x3C005C46: mov dword ptr [ecx], eax */ 10529 MEM32(eax + 0x4) = ecx; /* 0x3C005C48: mov dword ptr [eax + 4], ecx */ 10530 L_3C005C4B: 10531 ecx = MEM32(eax + 0x4); /* 0x3C005C4B: mov ecx, dword ptr [eax + 4] */ 10532 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005C4E: mov byte ptr [ecx + 0x10], bl */ 10533 edx = MEM32(eax + 0x4); /* 0x3C005C51: mov edx, dword ptr [eax + 4] */ 10534 ecx = MEM32(edx + 0x4); /* 0x3C005C54: mov ecx, dword ptr [edx + 4] */ 10535 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005C57: mov byte ptr [ecx + 0x10], 0 */ 10536 edx = MEM32(eax + 0x4); /* 0x3C005C5B: mov edx, dword ptr [eax + 4] */ 10537 ecx = MEM32(edx + 0x4); /* 0x3C005C5E: mov ecx, dword ptr [edx + 4] */ 10538 edx = MEM32(ecx); /* 0x3C005C61: mov edx, dword ptr [ecx] */ 10539 edi = MEM32(edx + 0x8); /* 0x3C005C63: mov edi, dword ptr [edx + 8] */ 10540 MEM32(ecx) = edi; /* 0x3C005C66: mov dword ptr [ecx], edi */ 10541 edi = MEM32(edx + 0x8); /* 0x3C005C68: mov edi, dword ptr [edx + 8] */ 10542 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005C6B: cmp edi, dword ptr [esi + 8] */ 10543 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10545 _flag_k = FK_CMP; 10546 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C73; /* 0x3C005C6E: je 0x3c005c73 */ 10547 L_3C005C70: 10548 MEM32(edi + 0x4) = ecx; /* 0x3C005C70: mov dword ptr [edi + 4], ecx */ 10549 L_3C005C73: 10550 edi = MEM32(ecx + 0x4); /* 0x3C005C73: mov edi, dword ptr [ecx + 4] */ 10551 MEM32(edx + 0x4) = edi; /* 0x3C005C76: mov dword ptr [edx + 4], edi */ 10552 edi = MEM32(esi + 0x4); /* 0x3C005C79: mov edi, dword ptr [esi + 4] */ 10553 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005C7C: cmp ecx, dword ptr [edi + 4] */ 10554 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10556 _flag_k = FK_CMP; 10557 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C8C; /* 0x3C005C7F: jne 0x3c005c8c */ 10558 L_3C005C81: 10559 MEM32(edi + 0x4) = edx; /* 0x3C005C81: mov dword ptr [edi + 4], edx */ 10560 MEM32(edx + 0x8) = ecx; /* 0x3C005C84: mov dword ptr [edx + 8], ecx */ 10561 goto L_3C005D3E; /* 0x3C005C87: jmp 0x3c005d3e */ 10562 L_3C005C8C: 10563 edi = MEM32(ecx + 0x4); /* 0x3C005C8C: mov edi, dword ptr [ecx + 4] */ 10564 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005C8F: cmp ecx, dword ptr [edi + 8] */ 10565 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10567 _flag_k = FK_CMP; 10568 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C9F; /* 0x3C005C92: jne 0x3c005c9f */ 10569 L_3C005C94: 10570 MEM32(edi + 0x8) = edx; /* 0x3C005C94: mov dword ptr [edi + 8], edx */ 10571 MEM32(edx + 0x8) = ecx; /* 0x3C005C97: mov dword ptr [edx + 8], ecx */ 10572 goto L_3C005D3E; /* 0x3C005C9A: jmp 0x3c005d3e */ 10573 L_3C005C9F: 10574 MEM32(edi) = edx; /* 0x3C005C9F: mov dword ptr [edi], edx */ 10575 MEM32(edx + 0x8) = ecx; /* 0x3C005CA1: mov dword ptr [edx + 8], ecx */ 10576 goto L_3C005D3E; /* 0x3C005CA4: jmp 0x3c005d3e */ 10577 L_3C005CA9: 10578 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005CA9: cmp byte ptr [edx + 0x10], 0 */ 10579 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 10580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10581 _flag_k = FK_NARROW(FK_CMP, 24); 10582 RECOMP_BACKEDGE(); 10583 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005BF1; /* 0x3C005CAD: je 0x3c005bf1 */ 10584 L_3C005CB3: 10585 /* cmp eax, MEM32(ecx) */ /* 0x3C005CB3: cmp eax, dword ptr [ecx] */ 10586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 10587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10588 _flag_k = FK_CMP; 10589 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CF3; /* 0x3C005CB5: jne 0x3c005cf3 */ 10590 L_3C005CB7: 10591 eax = ecx; /* 0x3C005CB7: mov eax, ecx */ 10592 ecx = MEM32(eax); /* 0x3C005CB9: mov ecx, dword ptr [eax] */ 10593 edx = MEM32(ecx + 0x8); /* 0x3C005CBB: mov edx, dword ptr [ecx + 8] */ 10594 MEM32(eax) = edx; /* 0x3C005CBE: mov dword ptr [eax], edx */ 10595 edx = MEM32(ecx + 0x8); /* 0x3C005CC0: mov edx, dword ptr [ecx + 8] */ 10596 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005CC3: cmp edx, dword ptr [esi + 8] */ 10597 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10599 _flag_k = FK_CMP; 10600 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005CCB; /* 0x3C005CC6: je 0x3c005ccb */ 10601 L_3C005CC8: 10602 MEM32(edx + 0x4) = eax; /* 0x3C005CC8: mov dword ptr [edx + 4], eax */ 10603 L_3C005CCB: 10604 edx = MEM32(eax + 0x4); /* 0x3C005CCB: mov edx, dword ptr [eax + 4] */ 10605 MEM32(ecx + 0x4) = edx; /* 0x3C005CCE: mov dword ptr [ecx + 4], edx */ 10606 edx = MEM32(esi + 0x4); /* 0x3C005CD1: mov edx, dword ptr [esi + 4] */ 10607 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005CD4: cmp eax, dword ptr [edx + 4] */ 10608 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10610 _flag_k = FK_CMP; 10611 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CDE; /* 0x3C005CD7: jne 0x3c005cde */ 10612 L_3C005CD9: 10613 MEM32(edx + 0x4) = ecx; /* 0x3C005CD9: mov dword ptr [edx + 4], ecx */ 10614 goto L_3C005CED; /* 0x3C005CDC: jmp 0x3c005ced */ 10615 L_3C005CDE: 10616 edx = MEM32(eax + 0x4); /* 0x3C005CDE: mov edx, dword ptr [eax + 4] */ 10617 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3C005CE1: cmp eax, dword ptr [edx + 8] */ 10618 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 10619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10620 _flag_k = FK_CMP; 10621 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CEB; /* 0x3C005CE4: jne 0x3c005ceb */ 10622 L_3C005CE6: 10623 MEM32(edx + 0x8) = ecx; /* 0x3C005CE6: mov dword ptr [edx + 8], ecx */ 10624 goto L_3C005CED; /* 0x3C005CE9: jmp 0x3c005ced */ 10625 L_3C005CEB: 10626 MEM32(edx) = ecx; /* 0x3C005CEB: mov dword ptr [edx], ecx */ 10627 L_3C005CED: 10628 MEM32(ecx + 0x8) = eax; /* 0x3C005CED: mov dword ptr [ecx + 8], eax */ 10629 MEM32(eax + 0x4) = ecx; /* 0x3C005CF0: mov dword ptr [eax + 4], ecx */ 10630 L_3C005CF3: 10631 ecx = MEM32(eax + 0x4); /* 0x3C005CF3: mov ecx, dword ptr [eax + 4] */ 10632 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005CF6: mov byte ptr [ecx + 0x10], bl */ 10633 edx = MEM32(eax + 0x4); /* 0x3C005CF9: mov edx, dword ptr [eax + 4] */ 10634 ecx = MEM32(edx + 0x4); /* 0x3C005CFC: mov ecx, dword ptr [edx + 4] */ 10635 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005CFF: mov byte ptr [ecx + 0x10], 0 */ 10636 edx = MEM32(eax + 0x4); /* 0x3C005D03: mov edx, dword ptr [eax + 4] */ 10637 ecx = MEM32(edx + 0x4); /* 0x3C005D06: mov ecx, dword ptr [edx + 4] */ 10638 edx = MEM32(ecx + 0x8); /* 0x3C005D09: mov edx, dword ptr [ecx + 8] */ 10639 edi = MEM32(edx); /* 0x3C005D0C: mov edi, dword ptr [edx] */ 10640 MEM32(ecx + 0x8) = edi; /* 0x3C005D0E: mov dword ptr [ecx + 8], edi */ 10641 edi = MEM32(edx); /* 0x3C005D11: mov edi, dword ptr [edx] */ 10642 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005D13: cmp edi, dword ptr [esi + 8] */ 10643 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10645 _flag_k = FK_CMP; 10646 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D1B; /* 0x3C005D16: je 0x3c005d1b */ 10647 L_3C005D18: 10648 MEM32(edi + 0x4) = ecx; /* 0x3C005D18: mov dword ptr [edi + 4], ecx */ 10649 L_3C005D1B: 10650 edi = MEM32(ecx + 0x4); /* 0x3C005D1B: mov edi, dword ptr [ecx + 4] */ 10651 MEM32(edx + 0x4) = edi; /* 0x3C005D1E: mov dword ptr [edx + 4], edi */ 10652 edi = MEM32(esi + 0x4); /* 0x3C005D21: mov edi, dword ptr [esi + 4] */ 10653 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005D24: cmp ecx, dword ptr [edi + 4] */ 10654 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10656 _flag_k = FK_CMP; 10657 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D2E; /* 0x3C005D27: jne 0x3c005d2e */ 10658 L_3C005D29: 10659 MEM32(edi + 0x4) = edx; /* 0x3C005D29: mov dword ptr [edi + 4], edx */ 10660 goto L_3C005D3C; /* 0x3C005D2C: jmp 0x3c005d3c */ 10661 L_3C005D2E: 10662 edi = MEM32(ecx + 0x4); /* 0x3C005D2E: mov edi, dword ptr [ecx + 4] */ 10663 /* cmp ecx, MEM32(edi) */ /* 0x3C005D31: cmp ecx, dword ptr [edi] */ 10664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 10665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10666 _flag_k = FK_CMP; 10667 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D39; /* 0x3C005D33: jne 0x3c005d39 */ 10668 L_3C005D35: 10669 MEM32(edi) = edx; /* 0x3C005D35: mov dword ptr [edi], edx */ 10670 goto L_3C005D3C; /* 0x3C005D37: jmp 0x3c005d3c */ 10671 L_3C005D39: 10672 MEM32(edi + 0x8) = edx; /* 0x3C005D39: mov dword ptr [edi + 8], edx */ 10673 L_3C005D3C: 10674 MEM32(edx) = ecx; /* 0x3C005D3C: mov dword ptr [edx], ecx */ 10675 L_3C005D3E: 10676 MEM32(ecx + 0x4) = edx; /* 0x3C005D3E: mov dword ptr [ecx + 4], edx */ 10677 L_3C005D41: 10678 ecx = MEM32(esi + 0x4); /* 0x3C005D41: mov ecx, dword ptr [esi + 4] */ 10679 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C005D44: cmp eax, dword ptr [ecx + 4] */ 10680 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10682 _flag_k = FK_CMP; 10683 RECOMP_BACKEDGE(); 10684 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BCD; /* 0x3C005D47: jne 0x3c005bcd */ 10685 L_3C005D4D: 10686 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 10687 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 10688 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 10689 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 10690 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 10691 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 10692 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 10693 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 10694 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 10695 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 10696 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 10697 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 10698 RECOMP_REGS_OUT(); 10699 } 10700 10701 void sub_3C005BF1(void) { 10702 int _fpu_cmp = 0; 10703 uint32_t _cf = 0; 10704 int _df = 1; 10705 uint32_t _flag_k = FK_NONE; 10706 uint32_t _flag_a = 0, _flag_b = 0; 10707 uint32_t _itail_tgt = 0; 10708 RECOMP_REGS_LOCALS 10709 RECOMP_ENTER(0x3C005BF1u); 10710 10711 goto L_3C005BF1; 10712 L_3C005BCD: 10713 ecx = MEM32(eax + 0x4); /* 0x3C005BCD: mov ecx, dword ptr [eax + 4] */ 10714 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005BD0: mov dl, byte ptr [ecx + 0x10] */ 10715 /* test LO8(edx), LO8(edx) */ /* 0x3C005BD3: test dl, dl */ 10716 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10717 _cf = 0; 10718 _flag_k = FK_NARROW(FK_TEST, 24); 10719 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005D4D; /* 0x3C005BD5: jne 0x3c005d4d */ 10720 L_3C005BDB: 10721 edi = MEM32(ecx + 0x4); /* 0x3C005BDB: mov edi, dword ptr [ecx + 4] */ 10722 edx = MEM32(edi); /* 0x3C005BDE: mov edx, dword ptr [edi] */ 10723 /* cmp ecx, edx */ /* 0x3C005BE0: cmp ecx, edx */ 10724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10726 _flag_k = FK_CMP; 10727 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CA9; /* 0x3C005BE2: jne 0x3c005ca9 */ 10728 L_3C005BE8: 10729 edx = MEM32(edi + 0x8); /* 0x3C005BE8: mov edx, dword ptr [edi + 8] */ 10730 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005BEB: cmp byte ptr [edx + 0x10], 0 */ 10731 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 10732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10733 _flag_k = FK_NARROW(FK_CMP, 24); 10734 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C0C; /* 0x3C005BEF: jne 0x3c005c0c */ 10735 L_3C005BF1: 10736 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF1: mov byte ptr [ecx + 0x10], bl */ 10737 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF4: mov byte ptr [edx + 0x10], bl */ 10738 ecx = MEM32(eax + 0x4); /* 0x3C005BF7: mov ecx, dword ptr [eax + 4] */ 10739 edx = MEM32(ecx + 0x4); /* 0x3C005BFA: mov edx, dword ptr [ecx + 4] */ 10740 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005BFD: mov byte ptr [edx + 0x10], 0 */ 10741 eax = MEM32(eax + 0x4); /* 0x3C005C01: mov eax, dword ptr [eax + 4] */ 10742 eax = MEM32(eax + 0x4); /* 0x3C005C04: mov eax, dword ptr [eax + 4] */ 10743 goto L_3C005D41; /* 0x3C005C07: jmp 0x3c005d41 */ 10744 L_3C005C0C: 10745 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3C005C0C: cmp eax, dword ptr [ecx + 8] */ 10746 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 10747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10748 _flag_k = FK_CMP; 10749 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C4B; /* 0x3C005C0F: jne 0x3c005c4b */ 10750 L_3C005C11: 10751 eax = ecx; /* 0x3C005C11: mov eax, ecx */ 10752 ecx = MEM32(eax + 0x8); /* 0x3C005C13: mov ecx, dword ptr [eax + 8] */ 10753 edx = MEM32(ecx); /* 0x3C005C16: mov edx, dword ptr [ecx] */ 10754 MEM32(eax + 0x8) = edx; /* 0x3C005C18: mov dword ptr [eax + 8], edx */ 10755 edx = MEM32(ecx); /* 0x3C005C1B: mov edx, dword ptr [ecx] */ 10756 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005C1D: cmp edx, dword ptr [esi + 8] */ 10757 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10759 _flag_k = FK_CMP; 10760 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C25; /* 0x3C005C20: je 0x3c005c25 */ 10761 L_3C005C22: 10762 MEM32(edx + 0x4) = eax; /* 0x3C005C22: mov dword ptr [edx + 4], eax */ 10763 L_3C005C25: 10764 edx = MEM32(eax + 0x4); /* 0x3C005C25: mov edx, dword ptr [eax + 4] */ 10765 MEM32(ecx + 0x4) = edx; /* 0x3C005C28: mov dword ptr [ecx + 4], edx */ 10766 edx = MEM32(esi + 0x4); /* 0x3C005C2B: mov edx, dword ptr [esi + 4] */ 10767 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005C2E: cmp eax, dword ptr [edx + 4] */ 10768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10770 _flag_k = FK_CMP; 10771 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C38; /* 0x3C005C31: jne 0x3c005c38 */ 10772 L_3C005C33: 10773 MEM32(edx + 0x4) = ecx; /* 0x3C005C33: mov dword ptr [edx + 4], ecx */ 10774 goto L_3C005C46; /* 0x3C005C36: jmp 0x3c005c46 */ 10775 L_3C005C38: 10776 edx = MEM32(eax + 0x4); /* 0x3C005C38: mov edx, dword ptr [eax + 4] */ 10777 /* cmp eax, MEM32(edx) */ /* 0x3C005C3B: cmp eax, dword ptr [edx] */ 10778 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 10779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10780 _flag_k = FK_CMP; 10781 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C43; /* 0x3C005C3D: jne 0x3c005c43 */ 10782 L_3C005C3F: 10783 MEM32(edx) = ecx; /* 0x3C005C3F: mov dword ptr [edx], ecx */ 10784 goto L_3C005C46; /* 0x3C005C41: jmp 0x3c005c46 */ 10785 L_3C005C43: 10786 MEM32(edx + 0x8) = ecx; /* 0x3C005C43: mov dword ptr [edx + 8], ecx */ 10787 L_3C005C46: 10788 MEM32(ecx) = eax; /* 0x3C005C46: mov dword ptr [ecx], eax */ 10789 MEM32(eax + 0x4) = ecx; /* 0x3C005C48: mov dword ptr [eax + 4], ecx */ 10790 L_3C005C4B: 10791 ecx = MEM32(eax + 0x4); /* 0x3C005C4B: mov ecx, dword ptr [eax + 4] */ 10792 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005C4E: mov byte ptr [ecx + 0x10], bl */ 10793 edx = MEM32(eax + 0x4); /* 0x3C005C51: mov edx, dword ptr [eax + 4] */ 10794 ecx = MEM32(edx + 0x4); /* 0x3C005C54: mov ecx, dword ptr [edx + 4] */ 10795 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005C57: mov byte ptr [ecx + 0x10], 0 */ 10796 edx = MEM32(eax + 0x4); /* 0x3C005C5B: mov edx, dword ptr [eax + 4] */ 10797 ecx = MEM32(edx + 0x4); /* 0x3C005C5E: mov ecx, dword ptr [edx + 4] */ 10798 edx = MEM32(ecx); /* 0x3C005C61: mov edx, dword ptr [ecx] */ 10799 edi = MEM32(edx + 0x8); /* 0x3C005C63: mov edi, dword ptr [edx + 8] */ 10800 MEM32(ecx) = edi; /* 0x3C005C66: mov dword ptr [ecx], edi */ 10801 edi = MEM32(edx + 0x8); /* 0x3C005C68: mov edi, dword ptr [edx + 8] */ 10802 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005C6B: cmp edi, dword ptr [esi + 8] */ 10803 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10805 _flag_k = FK_CMP; 10806 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C73; /* 0x3C005C6E: je 0x3c005c73 */ 10807 L_3C005C70: 10808 MEM32(edi + 0x4) = ecx; /* 0x3C005C70: mov dword ptr [edi + 4], ecx */ 10809 L_3C005C73: 10810 edi = MEM32(ecx + 0x4); /* 0x3C005C73: mov edi, dword ptr [ecx + 4] */ 10811 MEM32(edx + 0x4) = edi; /* 0x3C005C76: mov dword ptr [edx + 4], edi */ 10812 edi = MEM32(esi + 0x4); /* 0x3C005C79: mov edi, dword ptr [esi + 4] */ 10813 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005C7C: cmp ecx, dword ptr [edi + 4] */ 10814 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10816 _flag_k = FK_CMP; 10817 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C8C; /* 0x3C005C7F: jne 0x3c005c8c */ 10818 L_3C005C81: 10819 MEM32(edi + 0x4) = edx; /* 0x3C005C81: mov dword ptr [edi + 4], edx */ 10820 MEM32(edx + 0x8) = ecx; /* 0x3C005C84: mov dword ptr [edx + 8], ecx */ 10821 goto L_3C005D3E; /* 0x3C005C87: jmp 0x3c005d3e */ 10822 L_3C005C8C: 10823 edi = MEM32(ecx + 0x4); /* 0x3C005C8C: mov edi, dword ptr [ecx + 4] */ 10824 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005C8F: cmp ecx, dword ptr [edi + 8] */ 10825 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10827 _flag_k = FK_CMP; 10828 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C9F; /* 0x3C005C92: jne 0x3c005c9f */ 10829 L_3C005C94: 10830 MEM32(edi + 0x8) = edx; /* 0x3C005C94: mov dword ptr [edi + 8], edx */ 10831 MEM32(edx + 0x8) = ecx; /* 0x3C005C97: mov dword ptr [edx + 8], ecx */ 10832 goto L_3C005D3E; /* 0x3C005C9A: jmp 0x3c005d3e */ 10833 L_3C005C9F: 10834 MEM32(edi) = edx; /* 0x3C005C9F: mov dword ptr [edi], edx */ 10835 MEM32(edx + 0x8) = ecx; /* 0x3C005CA1: mov dword ptr [edx + 8], ecx */ 10836 goto L_3C005D3E; /* 0x3C005CA4: jmp 0x3c005d3e */ 10837 L_3C005CA9: 10838 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005CA9: cmp byte ptr [edx + 0x10], 0 */ 10839 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 10840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10841 _flag_k = FK_NARROW(FK_CMP, 24); 10842 RECOMP_BACKEDGE(); 10843 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005BF1; /* 0x3C005CAD: je 0x3c005bf1 */ 10844 L_3C005CB3: 10845 /* cmp eax, MEM32(ecx) */ /* 0x3C005CB3: cmp eax, dword ptr [ecx] */ 10846 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 10847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10848 _flag_k = FK_CMP; 10849 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CF3; /* 0x3C005CB5: jne 0x3c005cf3 */ 10850 L_3C005CB7: 10851 eax = ecx; /* 0x3C005CB7: mov eax, ecx */ 10852 ecx = MEM32(eax); /* 0x3C005CB9: mov ecx, dword ptr [eax] */ 10853 edx = MEM32(ecx + 0x8); /* 0x3C005CBB: mov edx, dword ptr [ecx + 8] */ 10854 MEM32(eax) = edx; /* 0x3C005CBE: mov dword ptr [eax], edx */ 10855 edx = MEM32(ecx + 0x8); /* 0x3C005CC0: mov edx, dword ptr [ecx + 8] */ 10856 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005CC3: cmp edx, dword ptr [esi + 8] */ 10857 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10859 _flag_k = FK_CMP; 10860 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005CCB; /* 0x3C005CC6: je 0x3c005ccb */ 10861 L_3C005CC8: 10862 MEM32(edx + 0x4) = eax; /* 0x3C005CC8: mov dword ptr [edx + 4], eax */ 10863 L_3C005CCB: 10864 edx = MEM32(eax + 0x4); /* 0x3C005CCB: mov edx, dword ptr [eax + 4] */ 10865 MEM32(ecx + 0x4) = edx; /* 0x3C005CCE: mov dword ptr [ecx + 4], edx */ 10866 edx = MEM32(esi + 0x4); /* 0x3C005CD1: mov edx, dword ptr [esi + 4] */ 10867 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005CD4: cmp eax, dword ptr [edx + 4] */ 10868 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10870 _flag_k = FK_CMP; 10871 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CDE; /* 0x3C005CD7: jne 0x3c005cde */ 10872 L_3C005CD9: 10873 MEM32(edx + 0x4) = ecx; /* 0x3C005CD9: mov dword ptr [edx + 4], ecx */ 10874 goto L_3C005CED; /* 0x3C005CDC: jmp 0x3c005ced */ 10875 L_3C005CDE: 10876 edx = MEM32(eax + 0x4); /* 0x3C005CDE: mov edx, dword ptr [eax + 4] */ 10877 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3C005CE1: cmp eax, dword ptr [edx + 8] */ 10878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 10879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10880 _flag_k = FK_CMP; 10881 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CEB; /* 0x3C005CE4: jne 0x3c005ceb */ 10882 L_3C005CE6: 10883 MEM32(edx + 0x8) = ecx; /* 0x3C005CE6: mov dword ptr [edx + 8], ecx */ 10884 goto L_3C005CED; /* 0x3C005CE9: jmp 0x3c005ced */ 10885 L_3C005CEB: 10886 MEM32(edx) = ecx; /* 0x3C005CEB: mov dword ptr [edx], ecx */ 10887 L_3C005CED: 10888 MEM32(ecx + 0x8) = eax; /* 0x3C005CED: mov dword ptr [ecx + 8], eax */ 10889 MEM32(eax + 0x4) = ecx; /* 0x3C005CF0: mov dword ptr [eax + 4], ecx */ 10890 L_3C005CF3: 10891 ecx = MEM32(eax + 0x4); /* 0x3C005CF3: mov ecx, dword ptr [eax + 4] */ 10892 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005CF6: mov byte ptr [ecx + 0x10], bl */ 10893 edx = MEM32(eax + 0x4); /* 0x3C005CF9: mov edx, dword ptr [eax + 4] */ 10894 ecx = MEM32(edx + 0x4); /* 0x3C005CFC: mov ecx, dword ptr [edx + 4] */ 10895 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005CFF: mov byte ptr [ecx + 0x10], 0 */ 10896 edx = MEM32(eax + 0x4); /* 0x3C005D03: mov edx, dword ptr [eax + 4] */ 10897 ecx = MEM32(edx + 0x4); /* 0x3C005D06: mov ecx, dword ptr [edx + 4] */ 10898 edx = MEM32(ecx + 0x8); /* 0x3C005D09: mov edx, dword ptr [ecx + 8] */ 10899 edi = MEM32(edx); /* 0x3C005D0C: mov edi, dword ptr [edx] */ 10900 MEM32(ecx + 0x8) = edi; /* 0x3C005D0E: mov dword ptr [ecx + 8], edi */ 10901 edi = MEM32(edx); /* 0x3C005D11: mov edi, dword ptr [edx] */ 10902 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005D13: cmp edi, dword ptr [esi + 8] */ 10903 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10905 _flag_k = FK_CMP; 10906 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D1B; /* 0x3C005D16: je 0x3c005d1b */ 10907 L_3C005D18: 10908 MEM32(edi + 0x4) = ecx; /* 0x3C005D18: mov dword ptr [edi + 4], ecx */ 10909 L_3C005D1B: 10910 edi = MEM32(ecx + 0x4); /* 0x3C005D1B: mov edi, dword ptr [ecx + 4] */ 10911 MEM32(edx + 0x4) = edi; /* 0x3C005D1E: mov dword ptr [edx + 4], edi */ 10912 edi = MEM32(esi + 0x4); /* 0x3C005D21: mov edi, dword ptr [esi + 4] */ 10913 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005D24: cmp ecx, dword ptr [edi + 4] */ 10914 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10916 _flag_k = FK_CMP; 10917 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D2E; /* 0x3C005D27: jne 0x3c005d2e */ 10918 L_3C005D29: 10919 MEM32(edi + 0x4) = edx; /* 0x3C005D29: mov dword ptr [edi + 4], edx */ 10920 goto L_3C005D3C; /* 0x3C005D2C: jmp 0x3c005d3c */ 10921 L_3C005D2E: 10922 edi = MEM32(ecx + 0x4); /* 0x3C005D2E: mov edi, dword ptr [ecx + 4] */ 10923 /* cmp ecx, MEM32(edi) */ /* 0x3C005D31: cmp ecx, dword ptr [edi] */ 10924 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 10925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10926 _flag_k = FK_CMP; 10927 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D39; /* 0x3C005D33: jne 0x3c005d39 */ 10928 L_3C005D35: 10929 MEM32(edi) = edx; /* 0x3C005D35: mov dword ptr [edi], edx */ 10930 goto L_3C005D3C; /* 0x3C005D37: jmp 0x3c005d3c */ 10931 L_3C005D39: 10932 MEM32(edi + 0x8) = edx; /* 0x3C005D39: mov dword ptr [edi + 8], edx */ 10933 L_3C005D3C: 10934 MEM32(edx) = ecx; /* 0x3C005D3C: mov dword ptr [edx], ecx */ 10935 L_3C005D3E: 10936 MEM32(ecx + 0x4) = edx; /* 0x3C005D3E: mov dword ptr [ecx + 4], edx */ 10937 L_3C005D41: 10938 ecx = MEM32(esi + 0x4); /* 0x3C005D41: mov ecx, dword ptr [esi + 4] */ 10939 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C005D44: cmp eax, dword ptr [ecx + 4] */ 10940 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10942 _flag_k = FK_CMP; 10943 RECOMP_BACKEDGE(); 10944 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BCD; /* 0x3C005D47: jne 0x3c005bcd */ 10945 L_3C005D4D: 10946 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 10947 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 10948 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 10949 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 10950 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 10951 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 10952 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 10953 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 10954 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 10955 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 10956 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 10957 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 10958 RECOMP_REGS_OUT(); 10959 } 10960 10961 void sub_3C005C46(void) { 10962 int _fpu_cmp = 0; 10963 uint32_t _cf = 0; 10964 int _df = 1; 10965 uint32_t _flag_k = FK_NONE; 10966 uint32_t _flag_a = 0, _flag_b = 0; 10967 uint32_t _itail_tgt = 0; 10968 RECOMP_REGS_LOCALS 10969 RECOMP_ENTER(0x3C005C46u); 10970 10971 goto L_3C005C46; 10972 L_3C005BCD: 10973 ecx = MEM32(eax + 0x4); /* 0x3C005BCD: mov ecx, dword ptr [eax + 4] */ 10974 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005BD0: mov dl, byte ptr [ecx + 0x10] */ 10975 /* test LO8(edx), LO8(edx) */ /* 0x3C005BD3: 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_3C005D4D; /* 0x3C005BD5: jne 0x3c005d4d */ 10980 L_3C005BDB: 10981 edi = MEM32(ecx + 0x4); /* 0x3C005BDB: mov edi, dword ptr [ecx + 4] */ 10982 edx = MEM32(edi); /* 0x3C005BDE: mov edx, dword ptr [edi] */ 10983 /* cmp ecx, edx */ /* 0x3C005BE0: cmp ecx, edx */ 10984 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10986 _flag_k = FK_CMP; 10987 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CA9; /* 0x3C005BE2: jne 0x3c005ca9 */ 10988 L_3C005BE8: 10989 edx = MEM32(edi + 0x8); /* 0x3C005BE8: mov edx, dword ptr [edi + 8] */ 10990 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005BEB: cmp byte ptr [edx + 0x10], 0 */ 10991 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 10992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10993 _flag_k = FK_NARROW(FK_CMP, 24); 10994 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C0C; /* 0x3C005BEF: jne 0x3c005c0c */ 10995 L_3C005BF1: 10996 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF1: mov byte ptr [ecx + 0x10], bl */ 10997 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF4: mov byte ptr [edx + 0x10], bl */ 10998 ecx = MEM32(eax + 0x4); /* 0x3C005BF7: mov ecx, dword ptr [eax + 4] */ 10999 edx = MEM32(ecx + 0x4); /* 0x3C005BFA: mov edx, dword ptr [ecx + 4] */ 11000 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005BFD: mov byte ptr [edx + 0x10], 0 */ 11001 eax = MEM32(eax + 0x4); /* 0x3C005C01: mov eax, dword ptr [eax + 4] */ 11002 eax = MEM32(eax + 0x4); /* 0x3C005C04: mov eax, dword ptr [eax + 4] */ 11003 goto L_3C005D41; /* 0x3C005C07: jmp 0x3c005d41 */ 11004 L_3C005C0C: 11005 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3C005C0C: cmp eax, dword ptr [ecx + 8] */ 11006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 11007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11008 _flag_k = FK_CMP; 11009 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C4B; /* 0x3C005C0F: jne 0x3c005c4b */ 11010 L_3C005C11: 11011 eax = ecx; /* 0x3C005C11: mov eax, ecx */ 11012 ecx = MEM32(eax + 0x8); /* 0x3C005C13: mov ecx, dword ptr [eax + 8] */ 11013 edx = MEM32(ecx); /* 0x3C005C16: mov edx, dword ptr [ecx] */ 11014 MEM32(eax + 0x8) = edx; /* 0x3C005C18: mov dword ptr [eax + 8], edx */ 11015 edx = MEM32(ecx); /* 0x3C005C1B: mov edx, dword ptr [ecx] */ 11016 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005C1D: cmp edx, dword ptr [esi + 8] */ 11017 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11019 _flag_k = FK_CMP; 11020 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C25; /* 0x3C005C20: je 0x3c005c25 */ 11021 L_3C005C22: 11022 MEM32(edx + 0x4) = eax; /* 0x3C005C22: mov dword ptr [edx + 4], eax */ 11023 L_3C005C25: 11024 edx = MEM32(eax + 0x4); /* 0x3C005C25: mov edx, dword ptr [eax + 4] */ 11025 MEM32(ecx + 0x4) = edx; /* 0x3C005C28: mov dword ptr [ecx + 4], edx */ 11026 edx = MEM32(esi + 0x4); /* 0x3C005C2B: mov edx, dword ptr [esi + 4] */ 11027 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005C2E: cmp eax, dword ptr [edx + 4] */ 11028 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11030 _flag_k = FK_CMP; 11031 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C38; /* 0x3C005C31: jne 0x3c005c38 */ 11032 L_3C005C33: 11033 MEM32(edx + 0x4) = ecx; /* 0x3C005C33: mov dword ptr [edx + 4], ecx */ 11034 goto L_3C005C46; /* 0x3C005C36: jmp 0x3c005c46 */ 11035 L_3C005C38: 11036 edx = MEM32(eax + 0x4); /* 0x3C005C38: mov edx, dword ptr [eax + 4] */ 11037 /* cmp eax, MEM32(edx) */ /* 0x3C005C3B: cmp eax, dword ptr [edx] */ 11038 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 11039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11040 _flag_k = FK_CMP; 11041 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C43; /* 0x3C005C3D: jne 0x3c005c43 */ 11042 L_3C005C3F: 11043 MEM32(edx) = ecx; /* 0x3C005C3F: mov dword ptr [edx], ecx */ 11044 goto L_3C005C46; /* 0x3C005C41: jmp 0x3c005c46 */ 11045 L_3C005C43: 11046 MEM32(edx + 0x8) = ecx; /* 0x3C005C43: mov dword ptr [edx + 8], ecx */ 11047 L_3C005C46: 11048 MEM32(ecx) = eax; /* 0x3C005C46: mov dword ptr [ecx], eax */ 11049 MEM32(eax + 0x4) = ecx; /* 0x3C005C48: mov dword ptr [eax + 4], ecx */ 11050 L_3C005C4B: 11051 ecx = MEM32(eax + 0x4); /* 0x3C005C4B: mov ecx, dword ptr [eax + 4] */ 11052 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005C4E: mov byte ptr [ecx + 0x10], bl */ 11053 edx = MEM32(eax + 0x4); /* 0x3C005C51: mov edx, dword ptr [eax + 4] */ 11054 ecx = MEM32(edx + 0x4); /* 0x3C005C54: mov ecx, dword ptr [edx + 4] */ 11055 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005C57: mov byte ptr [ecx + 0x10], 0 */ 11056 edx = MEM32(eax + 0x4); /* 0x3C005C5B: mov edx, dword ptr [eax + 4] */ 11057 ecx = MEM32(edx + 0x4); /* 0x3C005C5E: mov ecx, dword ptr [edx + 4] */ 11058 edx = MEM32(ecx); /* 0x3C005C61: mov edx, dword ptr [ecx] */ 11059 edi = MEM32(edx + 0x8); /* 0x3C005C63: mov edi, dword ptr [edx + 8] */ 11060 MEM32(ecx) = edi; /* 0x3C005C66: mov dword ptr [ecx], edi */ 11061 edi = MEM32(edx + 0x8); /* 0x3C005C68: mov edi, dword ptr [edx + 8] */ 11062 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005C6B: cmp edi, dword ptr [esi + 8] */ 11063 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11065 _flag_k = FK_CMP; 11066 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C73; /* 0x3C005C6E: je 0x3c005c73 */ 11067 L_3C005C70: 11068 MEM32(edi + 0x4) = ecx; /* 0x3C005C70: mov dword ptr [edi + 4], ecx */ 11069 L_3C005C73: 11070 edi = MEM32(ecx + 0x4); /* 0x3C005C73: mov edi, dword ptr [ecx + 4] */ 11071 MEM32(edx + 0x4) = edi; /* 0x3C005C76: mov dword ptr [edx + 4], edi */ 11072 edi = MEM32(esi + 0x4); /* 0x3C005C79: mov edi, dword ptr [esi + 4] */ 11073 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005C7C: cmp ecx, dword ptr [edi + 4] */ 11074 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11076 _flag_k = FK_CMP; 11077 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C8C; /* 0x3C005C7F: jne 0x3c005c8c */ 11078 L_3C005C81: 11079 MEM32(edi + 0x4) = edx; /* 0x3C005C81: mov dword ptr [edi + 4], edx */ 11080 MEM32(edx + 0x8) = ecx; /* 0x3C005C84: mov dword ptr [edx + 8], ecx */ 11081 goto L_3C005D3E; /* 0x3C005C87: jmp 0x3c005d3e */ 11082 L_3C005C8C: 11083 edi = MEM32(ecx + 0x4); /* 0x3C005C8C: mov edi, dword ptr [ecx + 4] */ 11084 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005C8F: cmp ecx, dword ptr [edi + 8] */ 11085 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11087 _flag_k = FK_CMP; 11088 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C9F; /* 0x3C005C92: jne 0x3c005c9f */ 11089 L_3C005C94: 11090 MEM32(edi + 0x8) = edx; /* 0x3C005C94: mov dword ptr [edi + 8], edx */ 11091 MEM32(edx + 0x8) = ecx; /* 0x3C005C97: mov dword ptr [edx + 8], ecx */ 11092 goto L_3C005D3E; /* 0x3C005C9A: jmp 0x3c005d3e */ 11093 L_3C005C9F: 11094 MEM32(edi) = edx; /* 0x3C005C9F: mov dword ptr [edi], edx */ 11095 MEM32(edx + 0x8) = ecx; /* 0x3C005CA1: mov dword ptr [edx + 8], ecx */ 11096 goto L_3C005D3E; /* 0x3C005CA4: jmp 0x3c005d3e */ 11097 L_3C005CA9: 11098 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005CA9: cmp byte ptr [edx + 0x10], 0 */ 11099 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 11100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11101 _flag_k = FK_NARROW(FK_CMP, 24); 11102 RECOMP_BACKEDGE(); 11103 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005BF1; /* 0x3C005CAD: je 0x3c005bf1 */ 11104 L_3C005CB3: 11105 /* cmp eax, MEM32(ecx) */ /* 0x3C005CB3: cmp eax, dword ptr [ecx] */ 11106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 11107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11108 _flag_k = FK_CMP; 11109 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CF3; /* 0x3C005CB5: jne 0x3c005cf3 */ 11110 L_3C005CB7: 11111 eax = ecx; /* 0x3C005CB7: mov eax, ecx */ 11112 ecx = MEM32(eax); /* 0x3C005CB9: mov ecx, dword ptr [eax] */ 11113 edx = MEM32(ecx + 0x8); /* 0x3C005CBB: mov edx, dword ptr [ecx + 8] */ 11114 MEM32(eax) = edx; /* 0x3C005CBE: mov dword ptr [eax], edx */ 11115 edx = MEM32(ecx + 0x8); /* 0x3C005CC0: mov edx, dword ptr [ecx + 8] */ 11116 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005CC3: cmp edx, dword ptr [esi + 8] */ 11117 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11119 _flag_k = FK_CMP; 11120 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005CCB; /* 0x3C005CC6: je 0x3c005ccb */ 11121 L_3C005CC8: 11122 MEM32(edx + 0x4) = eax; /* 0x3C005CC8: mov dword ptr [edx + 4], eax */ 11123 L_3C005CCB: 11124 edx = MEM32(eax + 0x4); /* 0x3C005CCB: mov edx, dword ptr [eax + 4] */ 11125 MEM32(ecx + 0x4) = edx; /* 0x3C005CCE: mov dword ptr [ecx + 4], edx */ 11126 edx = MEM32(esi + 0x4); /* 0x3C005CD1: mov edx, dword ptr [esi + 4] */ 11127 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005CD4: cmp eax, dword ptr [edx + 4] */ 11128 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11130 _flag_k = FK_CMP; 11131 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CDE; /* 0x3C005CD7: jne 0x3c005cde */ 11132 L_3C005CD9: 11133 MEM32(edx + 0x4) = ecx; /* 0x3C005CD9: mov dword ptr [edx + 4], ecx */ 11134 goto L_3C005CED; /* 0x3C005CDC: jmp 0x3c005ced */ 11135 L_3C005CDE: 11136 edx = MEM32(eax + 0x4); /* 0x3C005CDE: mov edx, dword ptr [eax + 4] */ 11137 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3C005CE1: cmp eax, dword ptr [edx + 8] */ 11138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 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_3C005CEB; /* 0x3C005CE4: jne 0x3c005ceb */ 11142 L_3C005CE6: 11143 MEM32(edx + 0x8) = ecx; /* 0x3C005CE6: mov dword ptr [edx + 8], ecx */ 11144 goto L_3C005CED; /* 0x3C005CE9: jmp 0x3c005ced */ 11145 L_3C005CEB: 11146 MEM32(edx) = ecx; /* 0x3C005CEB: mov dword ptr [edx], ecx */ 11147 L_3C005CED: 11148 MEM32(ecx + 0x8) = eax; /* 0x3C005CED: mov dword ptr [ecx + 8], eax */ 11149 MEM32(eax + 0x4) = ecx; /* 0x3C005CF0: mov dword ptr [eax + 4], ecx */ 11150 L_3C005CF3: 11151 ecx = MEM32(eax + 0x4); /* 0x3C005CF3: mov ecx, dword ptr [eax + 4] */ 11152 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005CF6: mov byte ptr [ecx + 0x10], bl */ 11153 edx = MEM32(eax + 0x4); /* 0x3C005CF9: mov edx, dword ptr [eax + 4] */ 11154 ecx = MEM32(edx + 0x4); /* 0x3C005CFC: mov ecx, dword ptr [edx + 4] */ 11155 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005CFF: mov byte ptr [ecx + 0x10], 0 */ 11156 edx = MEM32(eax + 0x4); /* 0x3C005D03: mov edx, dword ptr [eax + 4] */ 11157 ecx = MEM32(edx + 0x4); /* 0x3C005D06: mov ecx, dword ptr [edx + 4] */ 11158 edx = MEM32(ecx + 0x8); /* 0x3C005D09: mov edx, dword ptr [ecx + 8] */ 11159 edi = MEM32(edx); /* 0x3C005D0C: mov edi, dword ptr [edx] */ 11160 MEM32(ecx + 0x8) = edi; /* 0x3C005D0E: mov dword ptr [ecx + 8], edi */ 11161 edi = MEM32(edx); /* 0x3C005D11: mov edi, dword ptr [edx] */ 11162 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005D13: cmp edi, dword ptr [esi + 8] */ 11163 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11165 _flag_k = FK_CMP; 11166 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D1B; /* 0x3C005D16: je 0x3c005d1b */ 11167 L_3C005D18: 11168 MEM32(edi + 0x4) = ecx; /* 0x3C005D18: mov dword ptr [edi + 4], ecx */ 11169 L_3C005D1B: 11170 edi = MEM32(ecx + 0x4); /* 0x3C005D1B: mov edi, dword ptr [ecx + 4] */ 11171 MEM32(edx + 0x4) = edi; /* 0x3C005D1E: mov dword ptr [edx + 4], edi */ 11172 edi = MEM32(esi + 0x4); /* 0x3C005D21: mov edi, dword ptr [esi + 4] */ 11173 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005D24: cmp ecx, dword ptr [edi + 4] */ 11174 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11176 _flag_k = FK_CMP; 11177 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D2E; /* 0x3C005D27: jne 0x3c005d2e */ 11178 L_3C005D29: 11179 MEM32(edi + 0x4) = edx; /* 0x3C005D29: mov dword ptr [edi + 4], edx */ 11180 goto L_3C005D3C; /* 0x3C005D2C: jmp 0x3c005d3c */ 11181 L_3C005D2E: 11182 edi = MEM32(ecx + 0x4); /* 0x3C005D2E: mov edi, dword ptr [ecx + 4] */ 11183 /* cmp ecx, MEM32(edi) */ /* 0x3C005D31: cmp ecx, dword ptr [edi] */ 11184 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 11185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11186 _flag_k = FK_CMP; 11187 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D39; /* 0x3C005D33: jne 0x3c005d39 */ 11188 L_3C005D35: 11189 MEM32(edi) = edx; /* 0x3C005D35: mov dword ptr [edi], edx */ 11190 goto L_3C005D3C; /* 0x3C005D37: jmp 0x3c005d3c */ 11191 L_3C005D39: 11192 MEM32(edi + 0x8) = edx; /* 0x3C005D39: mov dword ptr [edi + 8], edx */ 11193 L_3C005D3C: 11194 MEM32(edx) = ecx; /* 0x3C005D3C: mov dword ptr [edx], ecx */ 11195 L_3C005D3E: 11196 MEM32(ecx + 0x4) = edx; /* 0x3C005D3E: mov dword ptr [ecx + 4], edx */ 11197 L_3C005D41: 11198 ecx = MEM32(esi + 0x4); /* 0x3C005D41: mov ecx, dword ptr [esi + 4] */ 11199 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C005D44: cmp eax, dword ptr [ecx + 4] */ 11200 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11202 _flag_k = FK_CMP; 11203 RECOMP_BACKEDGE(); 11204 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BCD; /* 0x3C005D47: jne 0x3c005bcd */ 11205 L_3C005D4D: 11206 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 11207 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 11208 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 11209 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 11210 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 11211 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 11212 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 11213 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 11214 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 11215 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 11216 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 11217 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 11218 RECOMP_REGS_OUT(); 11219 } 11220 11221 void sub_3C005C4B(void) { 11222 int _fpu_cmp = 0; 11223 uint32_t _cf = 0; 11224 int _df = 1; 11225 uint32_t _flag_k = FK_NONE; 11226 uint32_t _flag_a = 0, _flag_b = 0; 11227 uint32_t _itail_tgt = 0; 11228 RECOMP_REGS_LOCALS 11229 RECOMP_ENTER(0x3C005C4Bu); 11230 11231 goto L_3C005C4B; 11232 L_3C005BCD: 11233 ecx = MEM32(eax + 0x4); /* 0x3C005BCD: mov ecx, dword ptr [eax + 4] */ 11234 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005BD0: mov dl, byte ptr [ecx + 0x10] */ 11235 /* test LO8(edx), LO8(edx) */ /* 0x3C005BD3: test dl, dl */ 11236 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11237 _cf = 0; 11238 _flag_k = FK_NARROW(FK_TEST, 24); 11239 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005D4D; /* 0x3C005BD5: jne 0x3c005d4d */ 11240 L_3C005BDB: 11241 edi = MEM32(ecx + 0x4); /* 0x3C005BDB: mov edi, dword ptr [ecx + 4] */ 11242 edx = MEM32(edi); /* 0x3C005BDE: mov edx, dword ptr [edi] */ 11243 /* cmp ecx, edx */ /* 0x3C005BE0: cmp ecx, edx */ 11244 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11246 _flag_k = FK_CMP; 11247 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CA9; /* 0x3C005BE2: jne 0x3c005ca9 */ 11248 L_3C005BE8: 11249 edx = MEM32(edi + 0x8); /* 0x3C005BE8: mov edx, dword ptr [edi + 8] */ 11250 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005BEB: cmp byte ptr [edx + 0x10], 0 */ 11251 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 11252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11253 _flag_k = FK_NARROW(FK_CMP, 24); 11254 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C0C; /* 0x3C005BEF: jne 0x3c005c0c */ 11255 L_3C005BF1: 11256 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF1: mov byte ptr [ecx + 0x10], bl */ 11257 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF4: mov byte ptr [edx + 0x10], bl */ 11258 ecx = MEM32(eax + 0x4); /* 0x3C005BF7: mov ecx, dword ptr [eax + 4] */ 11259 edx = MEM32(ecx + 0x4); /* 0x3C005BFA: mov edx, dword ptr [ecx + 4] */ 11260 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005BFD: mov byte ptr [edx + 0x10], 0 */ 11261 eax = MEM32(eax + 0x4); /* 0x3C005C01: mov eax, dword ptr [eax + 4] */ 11262 eax = MEM32(eax + 0x4); /* 0x3C005C04: mov eax, dword ptr [eax + 4] */ 11263 goto L_3C005D41; /* 0x3C005C07: jmp 0x3c005d41 */ 11264 L_3C005C0C: 11265 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3C005C0C: cmp eax, dword ptr [ecx + 8] */ 11266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 11267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11268 _flag_k = FK_CMP; 11269 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C4B; /* 0x3C005C0F: jne 0x3c005c4b */ 11270 L_3C005C11: 11271 eax = ecx; /* 0x3C005C11: mov eax, ecx */ 11272 ecx = MEM32(eax + 0x8); /* 0x3C005C13: mov ecx, dword ptr [eax + 8] */ 11273 edx = MEM32(ecx); /* 0x3C005C16: mov edx, dword ptr [ecx] */ 11274 MEM32(eax + 0x8) = edx; /* 0x3C005C18: mov dword ptr [eax + 8], edx */ 11275 edx = MEM32(ecx); /* 0x3C005C1B: mov edx, dword ptr [ecx] */ 11276 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005C1D: cmp edx, dword ptr [esi + 8] */ 11277 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11279 _flag_k = FK_CMP; 11280 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C25; /* 0x3C005C20: je 0x3c005c25 */ 11281 L_3C005C22: 11282 MEM32(edx + 0x4) = eax; /* 0x3C005C22: mov dword ptr [edx + 4], eax */ 11283 L_3C005C25: 11284 edx = MEM32(eax + 0x4); /* 0x3C005C25: mov edx, dword ptr [eax + 4] */ 11285 MEM32(ecx + 0x4) = edx; /* 0x3C005C28: mov dword ptr [ecx + 4], edx */ 11286 edx = MEM32(esi + 0x4); /* 0x3C005C2B: mov edx, dword ptr [esi + 4] */ 11287 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005C2E: cmp eax, dword ptr [edx + 4] */ 11288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11290 _flag_k = FK_CMP; 11291 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C38; /* 0x3C005C31: jne 0x3c005c38 */ 11292 L_3C005C33: 11293 MEM32(edx + 0x4) = ecx; /* 0x3C005C33: mov dword ptr [edx + 4], ecx */ 11294 goto L_3C005C46; /* 0x3C005C36: jmp 0x3c005c46 */ 11295 L_3C005C38: 11296 edx = MEM32(eax + 0x4); /* 0x3C005C38: mov edx, dword ptr [eax + 4] */ 11297 /* cmp eax, MEM32(edx) */ /* 0x3C005C3B: cmp eax, dword ptr [edx] */ 11298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 11299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11300 _flag_k = FK_CMP; 11301 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C43; /* 0x3C005C3D: jne 0x3c005c43 */ 11302 L_3C005C3F: 11303 MEM32(edx) = ecx; /* 0x3C005C3F: mov dword ptr [edx], ecx */ 11304 goto L_3C005C46; /* 0x3C005C41: jmp 0x3c005c46 */ 11305 L_3C005C43: 11306 MEM32(edx + 0x8) = ecx; /* 0x3C005C43: mov dword ptr [edx + 8], ecx */ 11307 L_3C005C46: 11308 MEM32(ecx) = eax; /* 0x3C005C46: mov dword ptr [ecx], eax */ 11309 MEM32(eax + 0x4) = ecx; /* 0x3C005C48: mov dword ptr [eax + 4], ecx */ 11310 L_3C005C4B: 11311 ecx = MEM32(eax + 0x4); /* 0x3C005C4B: mov ecx, dword ptr [eax + 4] */ 11312 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005C4E: mov byte ptr [ecx + 0x10], bl */ 11313 edx = MEM32(eax + 0x4); /* 0x3C005C51: mov edx, dword ptr [eax + 4] */ 11314 ecx = MEM32(edx + 0x4); /* 0x3C005C54: mov ecx, dword ptr [edx + 4] */ 11315 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005C57: mov byte ptr [ecx + 0x10], 0 */ 11316 edx = MEM32(eax + 0x4); /* 0x3C005C5B: mov edx, dword ptr [eax + 4] */ 11317 ecx = MEM32(edx + 0x4); /* 0x3C005C5E: mov ecx, dword ptr [edx + 4] */ 11318 edx = MEM32(ecx); /* 0x3C005C61: mov edx, dword ptr [ecx] */ 11319 edi = MEM32(edx + 0x8); /* 0x3C005C63: mov edi, dword ptr [edx + 8] */ 11320 MEM32(ecx) = edi; /* 0x3C005C66: mov dword ptr [ecx], edi */ 11321 edi = MEM32(edx + 0x8); /* 0x3C005C68: mov edi, dword ptr [edx + 8] */ 11322 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005C6B: cmp edi, dword ptr [esi + 8] */ 11323 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11325 _flag_k = FK_CMP; 11326 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C73; /* 0x3C005C6E: je 0x3c005c73 */ 11327 L_3C005C70: 11328 MEM32(edi + 0x4) = ecx; /* 0x3C005C70: mov dword ptr [edi + 4], ecx */ 11329 L_3C005C73: 11330 edi = MEM32(ecx + 0x4); /* 0x3C005C73: mov edi, dword ptr [ecx + 4] */ 11331 MEM32(edx + 0x4) = edi; /* 0x3C005C76: mov dword ptr [edx + 4], edi */ 11332 edi = MEM32(esi + 0x4); /* 0x3C005C79: mov edi, dword ptr [esi + 4] */ 11333 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005C7C: cmp ecx, dword ptr [edi + 4] */ 11334 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11336 _flag_k = FK_CMP; 11337 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C8C; /* 0x3C005C7F: jne 0x3c005c8c */ 11338 L_3C005C81: 11339 MEM32(edi + 0x4) = edx; /* 0x3C005C81: mov dword ptr [edi + 4], edx */ 11340 MEM32(edx + 0x8) = ecx; /* 0x3C005C84: mov dword ptr [edx + 8], ecx */ 11341 goto L_3C005D3E; /* 0x3C005C87: jmp 0x3c005d3e */ 11342 L_3C005C8C: 11343 edi = MEM32(ecx + 0x4); /* 0x3C005C8C: mov edi, dword ptr [ecx + 4] */ 11344 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005C8F: cmp ecx, dword ptr [edi + 8] */ 11345 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11347 _flag_k = FK_CMP; 11348 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C9F; /* 0x3C005C92: jne 0x3c005c9f */ 11349 L_3C005C94: 11350 MEM32(edi + 0x8) = edx; /* 0x3C005C94: mov dword ptr [edi + 8], edx */ 11351 MEM32(edx + 0x8) = ecx; /* 0x3C005C97: mov dword ptr [edx + 8], ecx */ 11352 goto L_3C005D3E; /* 0x3C005C9A: jmp 0x3c005d3e */ 11353 L_3C005C9F: 11354 MEM32(edi) = edx; /* 0x3C005C9F: mov dword ptr [edi], edx */ 11355 MEM32(edx + 0x8) = ecx; /* 0x3C005CA1: mov dword ptr [edx + 8], ecx */ 11356 goto L_3C005D3E; /* 0x3C005CA4: jmp 0x3c005d3e */ 11357 L_3C005CA9: 11358 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005CA9: cmp byte ptr [edx + 0x10], 0 */ 11359 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 11360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11361 _flag_k = FK_NARROW(FK_CMP, 24); 11362 RECOMP_BACKEDGE(); 11363 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005BF1; /* 0x3C005CAD: je 0x3c005bf1 */ 11364 L_3C005CB3: 11365 /* cmp eax, MEM32(ecx) */ /* 0x3C005CB3: cmp eax, dword ptr [ecx] */ 11366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 11367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11368 _flag_k = FK_CMP; 11369 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CF3; /* 0x3C005CB5: jne 0x3c005cf3 */ 11370 L_3C005CB7: 11371 eax = ecx; /* 0x3C005CB7: mov eax, ecx */ 11372 ecx = MEM32(eax); /* 0x3C005CB9: mov ecx, dword ptr [eax] */ 11373 edx = MEM32(ecx + 0x8); /* 0x3C005CBB: mov edx, dword ptr [ecx + 8] */ 11374 MEM32(eax) = edx; /* 0x3C005CBE: mov dword ptr [eax], edx */ 11375 edx = MEM32(ecx + 0x8); /* 0x3C005CC0: mov edx, dword ptr [ecx + 8] */ 11376 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005CC3: cmp edx, dword ptr [esi + 8] */ 11377 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11379 _flag_k = FK_CMP; 11380 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005CCB; /* 0x3C005CC6: je 0x3c005ccb */ 11381 L_3C005CC8: 11382 MEM32(edx + 0x4) = eax; /* 0x3C005CC8: mov dword ptr [edx + 4], eax */ 11383 L_3C005CCB: 11384 edx = MEM32(eax + 0x4); /* 0x3C005CCB: mov edx, dword ptr [eax + 4] */ 11385 MEM32(ecx + 0x4) = edx; /* 0x3C005CCE: mov dword ptr [ecx + 4], edx */ 11386 edx = MEM32(esi + 0x4); /* 0x3C005CD1: mov edx, dword ptr [esi + 4] */ 11387 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005CD4: cmp eax, dword ptr [edx + 4] */ 11388 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11390 _flag_k = FK_CMP; 11391 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CDE; /* 0x3C005CD7: jne 0x3c005cde */ 11392 L_3C005CD9: 11393 MEM32(edx + 0x4) = ecx; /* 0x3C005CD9: mov dword ptr [edx + 4], ecx */ 11394 goto L_3C005CED; /* 0x3C005CDC: jmp 0x3c005ced */ 11395 L_3C005CDE: 11396 edx = MEM32(eax + 0x4); /* 0x3C005CDE: mov edx, dword ptr [eax + 4] */ 11397 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3C005CE1: cmp eax, dword ptr [edx + 8] */ 11398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 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_3C005CEB; /* 0x3C005CE4: jne 0x3c005ceb */ 11402 L_3C005CE6: 11403 MEM32(edx + 0x8) = ecx; /* 0x3C005CE6: mov dword ptr [edx + 8], ecx */ 11404 goto L_3C005CED; /* 0x3C005CE9: jmp 0x3c005ced */ 11405 L_3C005CEB: 11406 MEM32(edx) = ecx; /* 0x3C005CEB: mov dword ptr [edx], ecx */ 11407 L_3C005CED: 11408 MEM32(ecx + 0x8) = eax; /* 0x3C005CED: mov dword ptr [ecx + 8], eax */ 11409 MEM32(eax + 0x4) = ecx; /* 0x3C005CF0: mov dword ptr [eax + 4], ecx */ 11410 L_3C005CF3: 11411 ecx = MEM32(eax + 0x4); /* 0x3C005CF3: mov ecx, dword ptr [eax + 4] */ 11412 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005CF6: mov byte ptr [ecx + 0x10], bl */ 11413 edx = MEM32(eax + 0x4); /* 0x3C005CF9: mov edx, dword ptr [eax + 4] */ 11414 ecx = MEM32(edx + 0x4); /* 0x3C005CFC: mov ecx, dword ptr [edx + 4] */ 11415 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005CFF: mov byte ptr [ecx + 0x10], 0 */ 11416 edx = MEM32(eax + 0x4); /* 0x3C005D03: mov edx, dword ptr [eax + 4] */ 11417 ecx = MEM32(edx + 0x4); /* 0x3C005D06: mov ecx, dword ptr [edx + 4] */ 11418 edx = MEM32(ecx + 0x8); /* 0x3C005D09: mov edx, dword ptr [ecx + 8] */ 11419 edi = MEM32(edx); /* 0x3C005D0C: mov edi, dword ptr [edx] */ 11420 MEM32(ecx + 0x8) = edi; /* 0x3C005D0E: mov dword ptr [ecx + 8], edi */ 11421 edi = MEM32(edx); /* 0x3C005D11: mov edi, dword ptr [edx] */ 11422 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005D13: cmp edi, dword ptr [esi + 8] */ 11423 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11425 _flag_k = FK_CMP; 11426 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D1B; /* 0x3C005D16: je 0x3c005d1b */ 11427 L_3C005D18: 11428 MEM32(edi + 0x4) = ecx; /* 0x3C005D18: mov dword ptr [edi + 4], ecx */ 11429 L_3C005D1B: 11430 edi = MEM32(ecx + 0x4); /* 0x3C005D1B: mov edi, dword ptr [ecx + 4] */ 11431 MEM32(edx + 0x4) = edi; /* 0x3C005D1E: mov dword ptr [edx + 4], edi */ 11432 edi = MEM32(esi + 0x4); /* 0x3C005D21: mov edi, dword ptr [esi + 4] */ 11433 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005D24: cmp ecx, dword ptr [edi + 4] */ 11434 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11436 _flag_k = FK_CMP; 11437 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D2E; /* 0x3C005D27: jne 0x3c005d2e */ 11438 L_3C005D29: 11439 MEM32(edi + 0x4) = edx; /* 0x3C005D29: mov dword ptr [edi + 4], edx */ 11440 goto L_3C005D3C; /* 0x3C005D2C: jmp 0x3c005d3c */ 11441 L_3C005D2E: 11442 edi = MEM32(ecx + 0x4); /* 0x3C005D2E: mov edi, dword ptr [ecx + 4] */ 11443 /* cmp ecx, MEM32(edi) */ /* 0x3C005D31: cmp ecx, dword ptr [edi] */ 11444 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 11445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11446 _flag_k = FK_CMP; 11447 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D39; /* 0x3C005D33: jne 0x3c005d39 */ 11448 L_3C005D35: 11449 MEM32(edi) = edx; /* 0x3C005D35: mov dword ptr [edi], edx */ 11450 goto L_3C005D3C; /* 0x3C005D37: jmp 0x3c005d3c */ 11451 L_3C005D39: 11452 MEM32(edi + 0x8) = edx; /* 0x3C005D39: mov dword ptr [edi + 8], edx */ 11453 L_3C005D3C: 11454 MEM32(edx) = ecx; /* 0x3C005D3C: mov dword ptr [edx], ecx */ 11455 L_3C005D3E: 11456 MEM32(ecx + 0x4) = edx; /* 0x3C005D3E: mov dword ptr [ecx + 4], edx */ 11457 L_3C005D41: 11458 ecx = MEM32(esi + 0x4); /* 0x3C005D41: mov ecx, dword ptr [esi + 4] */ 11459 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C005D44: cmp eax, dword ptr [ecx + 4] */ 11460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11462 _flag_k = FK_CMP; 11463 RECOMP_BACKEDGE(); 11464 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BCD; /* 0x3C005D47: jne 0x3c005bcd */ 11465 L_3C005D4D: 11466 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 11467 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 11468 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 11469 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 11470 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 11471 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 11472 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 11473 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 11474 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 11475 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 11476 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 11477 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 11478 RECOMP_REGS_OUT(); 11479 } 11480 11481 void sub_3C005CA9(void) { 11482 int _fpu_cmp = 0; 11483 uint32_t _cf = 0; 11484 int _df = 1; 11485 uint32_t _flag_k = FK_NONE; 11486 uint32_t _flag_a = 0, _flag_b = 0; 11487 uint32_t _itail_tgt = 0; 11488 RECOMP_REGS_LOCALS 11489 RECOMP_ENTER(0x3C005CA9u); 11490 11491 goto L_3C005CA9; 11492 L_3C005BCD: 11493 ecx = MEM32(eax + 0x4); /* 0x3C005BCD: mov ecx, dword ptr [eax + 4] */ 11494 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005BD0: mov dl, byte ptr [ecx + 0x10] */ 11495 /* test LO8(edx), LO8(edx) */ /* 0x3C005BD3: test dl, dl */ 11496 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11497 _cf = 0; 11498 _flag_k = FK_NARROW(FK_TEST, 24); 11499 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005D4D; /* 0x3C005BD5: jne 0x3c005d4d */ 11500 L_3C005BDB: 11501 edi = MEM32(ecx + 0x4); /* 0x3C005BDB: mov edi, dword ptr [ecx + 4] */ 11502 edx = MEM32(edi); /* 0x3C005BDE: mov edx, dword ptr [edi] */ 11503 /* cmp ecx, edx */ /* 0x3C005BE0: cmp ecx, edx */ 11504 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11506 _flag_k = FK_CMP; 11507 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CA9; /* 0x3C005BE2: jne 0x3c005ca9 */ 11508 L_3C005BE8: 11509 edx = MEM32(edi + 0x8); /* 0x3C005BE8: mov edx, dword ptr [edi + 8] */ 11510 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005BEB: cmp byte ptr [edx + 0x10], 0 */ 11511 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 11512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11513 _flag_k = FK_NARROW(FK_CMP, 24); 11514 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C0C; /* 0x3C005BEF: jne 0x3c005c0c */ 11515 L_3C005BF1: 11516 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF1: mov byte ptr [ecx + 0x10], bl */ 11517 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF4: mov byte ptr [edx + 0x10], bl */ 11518 ecx = MEM32(eax + 0x4); /* 0x3C005BF7: mov ecx, dword ptr [eax + 4] */ 11519 edx = MEM32(ecx + 0x4); /* 0x3C005BFA: mov edx, dword ptr [ecx + 4] */ 11520 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005BFD: mov byte ptr [edx + 0x10], 0 */ 11521 eax = MEM32(eax + 0x4); /* 0x3C005C01: mov eax, dword ptr [eax + 4] */ 11522 eax = MEM32(eax + 0x4); /* 0x3C005C04: mov eax, dword ptr [eax + 4] */ 11523 goto L_3C005D41; /* 0x3C005C07: jmp 0x3c005d41 */ 11524 L_3C005C0C: 11525 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3C005C0C: cmp eax, dword ptr [ecx + 8] */ 11526 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 11527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11528 _flag_k = FK_CMP; 11529 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C4B; /* 0x3C005C0F: jne 0x3c005c4b */ 11530 L_3C005C11: 11531 eax = ecx; /* 0x3C005C11: mov eax, ecx */ 11532 ecx = MEM32(eax + 0x8); /* 0x3C005C13: mov ecx, dword ptr [eax + 8] */ 11533 edx = MEM32(ecx); /* 0x3C005C16: mov edx, dword ptr [ecx] */ 11534 MEM32(eax + 0x8) = edx; /* 0x3C005C18: mov dword ptr [eax + 8], edx */ 11535 edx = MEM32(ecx); /* 0x3C005C1B: mov edx, dword ptr [ecx] */ 11536 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005C1D: cmp edx, dword ptr [esi + 8] */ 11537 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11539 _flag_k = FK_CMP; 11540 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C25; /* 0x3C005C20: je 0x3c005c25 */ 11541 L_3C005C22: 11542 MEM32(edx + 0x4) = eax; /* 0x3C005C22: mov dword ptr [edx + 4], eax */ 11543 L_3C005C25: 11544 edx = MEM32(eax + 0x4); /* 0x3C005C25: mov edx, dword ptr [eax + 4] */ 11545 MEM32(ecx + 0x4) = edx; /* 0x3C005C28: mov dword ptr [ecx + 4], edx */ 11546 edx = MEM32(esi + 0x4); /* 0x3C005C2B: mov edx, dword ptr [esi + 4] */ 11547 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005C2E: cmp eax, dword ptr [edx + 4] */ 11548 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11550 _flag_k = FK_CMP; 11551 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C38; /* 0x3C005C31: jne 0x3c005c38 */ 11552 L_3C005C33: 11553 MEM32(edx + 0x4) = ecx; /* 0x3C005C33: mov dword ptr [edx + 4], ecx */ 11554 goto L_3C005C46; /* 0x3C005C36: jmp 0x3c005c46 */ 11555 L_3C005C38: 11556 edx = MEM32(eax + 0x4); /* 0x3C005C38: mov edx, dword ptr [eax + 4] */ 11557 /* cmp eax, MEM32(edx) */ /* 0x3C005C3B: cmp eax, dword ptr [edx] */ 11558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 11559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11560 _flag_k = FK_CMP; 11561 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C43; /* 0x3C005C3D: jne 0x3c005c43 */ 11562 L_3C005C3F: 11563 MEM32(edx) = ecx; /* 0x3C005C3F: mov dword ptr [edx], ecx */ 11564 goto L_3C005C46; /* 0x3C005C41: jmp 0x3c005c46 */ 11565 L_3C005C43: 11566 MEM32(edx + 0x8) = ecx; /* 0x3C005C43: mov dword ptr [edx + 8], ecx */ 11567 L_3C005C46: 11568 MEM32(ecx) = eax; /* 0x3C005C46: mov dword ptr [ecx], eax */ 11569 MEM32(eax + 0x4) = ecx; /* 0x3C005C48: mov dword ptr [eax + 4], ecx */ 11570 L_3C005C4B: 11571 ecx = MEM32(eax + 0x4); /* 0x3C005C4B: mov ecx, dword ptr [eax + 4] */ 11572 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005C4E: mov byte ptr [ecx + 0x10], bl */ 11573 edx = MEM32(eax + 0x4); /* 0x3C005C51: mov edx, dword ptr [eax + 4] */ 11574 ecx = MEM32(edx + 0x4); /* 0x3C005C54: mov ecx, dword ptr [edx + 4] */ 11575 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005C57: mov byte ptr [ecx + 0x10], 0 */ 11576 edx = MEM32(eax + 0x4); /* 0x3C005C5B: mov edx, dword ptr [eax + 4] */ 11577 ecx = MEM32(edx + 0x4); /* 0x3C005C5E: mov ecx, dword ptr [edx + 4] */ 11578 edx = MEM32(ecx); /* 0x3C005C61: mov edx, dword ptr [ecx] */ 11579 edi = MEM32(edx + 0x8); /* 0x3C005C63: mov edi, dword ptr [edx + 8] */ 11580 MEM32(ecx) = edi; /* 0x3C005C66: mov dword ptr [ecx], edi */ 11581 edi = MEM32(edx + 0x8); /* 0x3C005C68: mov edi, dword ptr [edx + 8] */ 11582 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005C6B: cmp edi, dword ptr [esi + 8] */ 11583 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11585 _flag_k = FK_CMP; 11586 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C73; /* 0x3C005C6E: je 0x3c005c73 */ 11587 L_3C005C70: 11588 MEM32(edi + 0x4) = ecx; /* 0x3C005C70: mov dword ptr [edi + 4], ecx */ 11589 L_3C005C73: 11590 edi = MEM32(ecx + 0x4); /* 0x3C005C73: mov edi, dword ptr [ecx + 4] */ 11591 MEM32(edx + 0x4) = edi; /* 0x3C005C76: mov dword ptr [edx + 4], edi */ 11592 edi = MEM32(esi + 0x4); /* 0x3C005C79: mov edi, dword ptr [esi + 4] */ 11593 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005C7C: cmp ecx, dword ptr [edi + 4] */ 11594 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11596 _flag_k = FK_CMP; 11597 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C8C; /* 0x3C005C7F: jne 0x3c005c8c */ 11598 L_3C005C81: 11599 MEM32(edi + 0x4) = edx; /* 0x3C005C81: mov dword ptr [edi + 4], edx */ 11600 MEM32(edx + 0x8) = ecx; /* 0x3C005C84: mov dword ptr [edx + 8], ecx */ 11601 goto L_3C005D3E; /* 0x3C005C87: jmp 0x3c005d3e */ 11602 L_3C005C8C: 11603 edi = MEM32(ecx + 0x4); /* 0x3C005C8C: mov edi, dword ptr [ecx + 4] */ 11604 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005C8F: cmp ecx, dword ptr [edi + 8] */ 11605 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11607 _flag_k = FK_CMP; 11608 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C9F; /* 0x3C005C92: jne 0x3c005c9f */ 11609 L_3C005C94: 11610 MEM32(edi + 0x8) = edx; /* 0x3C005C94: mov dword ptr [edi + 8], edx */ 11611 MEM32(edx + 0x8) = ecx; /* 0x3C005C97: mov dword ptr [edx + 8], ecx */ 11612 goto L_3C005D3E; /* 0x3C005C9A: jmp 0x3c005d3e */ 11613 L_3C005C9F: 11614 MEM32(edi) = edx; /* 0x3C005C9F: mov dword ptr [edi], edx */ 11615 MEM32(edx + 0x8) = ecx; /* 0x3C005CA1: mov dword ptr [edx + 8], ecx */ 11616 goto L_3C005D3E; /* 0x3C005CA4: jmp 0x3c005d3e */ 11617 L_3C005CA9: 11618 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005CA9: cmp byte ptr [edx + 0x10], 0 */ 11619 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 11620 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11621 _flag_k = FK_NARROW(FK_CMP, 24); 11622 RECOMP_BACKEDGE(); 11623 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005BF1; /* 0x3C005CAD: je 0x3c005bf1 */ 11624 L_3C005CB3: 11625 /* cmp eax, MEM32(ecx) */ /* 0x3C005CB3: cmp eax, dword ptr [ecx] */ 11626 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 11627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11628 _flag_k = FK_CMP; 11629 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CF3; /* 0x3C005CB5: jne 0x3c005cf3 */ 11630 L_3C005CB7: 11631 eax = ecx; /* 0x3C005CB7: mov eax, ecx */ 11632 ecx = MEM32(eax); /* 0x3C005CB9: mov ecx, dword ptr [eax] */ 11633 edx = MEM32(ecx + 0x8); /* 0x3C005CBB: mov edx, dword ptr [ecx + 8] */ 11634 MEM32(eax) = edx; /* 0x3C005CBE: mov dword ptr [eax], edx */ 11635 edx = MEM32(ecx + 0x8); /* 0x3C005CC0: mov edx, dword ptr [ecx + 8] */ 11636 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005CC3: cmp edx, dword ptr [esi + 8] */ 11637 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11639 _flag_k = FK_CMP; 11640 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005CCB; /* 0x3C005CC6: je 0x3c005ccb */ 11641 L_3C005CC8: 11642 MEM32(edx + 0x4) = eax; /* 0x3C005CC8: mov dword ptr [edx + 4], eax */ 11643 L_3C005CCB: 11644 edx = MEM32(eax + 0x4); /* 0x3C005CCB: mov edx, dword ptr [eax + 4] */ 11645 MEM32(ecx + 0x4) = edx; /* 0x3C005CCE: mov dword ptr [ecx + 4], edx */ 11646 edx = MEM32(esi + 0x4); /* 0x3C005CD1: mov edx, dword ptr [esi + 4] */ 11647 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005CD4: cmp eax, dword ptr [edx + 4] */ 11648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11650 _flag_k = FK_CMP; 11651 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CDE; /* 0x3C005CD7: jne 0x3c005cde */ 11652 L_3C005CD9: 11653 MEM32(edx + 0x4) = ecx; /* 0x3C005CD9: mov dword ptr [edx + 4], ecx */ 11654 goto L_3C005CED; /* 0x3C005CDC: jmp 0x3c005ced */ 11655 L_3C005CDE: 11656 edx = MEM32(eax + 0x4); /* 0x3C005CDE: mov edx, dword ptr [eax + 4] */ 11657 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3C005CE1: cmp eax, dword ptr [edx + 8] */ 11658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 11659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11660 _flag_k = FK_CMP; 11661 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CEB; /* 0x3C005CE4: jne 0x3c005ceb */ 11662 L_3C005CE6: 11663 MEM32(edx + 0x8) = ecx; /* 0x3C005CE6: mov dword ptr [edx + 8], ecx */ 11664 goto L_3C005CED; /* 0x3C005CE9: jmp 0x3c005ced */ 11665 L_3C005CEB: 11666 MEM32(edx) = ecx; /* 0x3C005CEB: mov dword ptr [edx], ecx */ 11667 L_3C005CED: 11668 MEM32(ecx + 0x8) = eax; /* 0x3C005CED: mov dword ptr [ecx + 8], eax */ 11669 MEM32(eax + 0x4) = ecx; /* 0x3C005CF0: mov dword ptr [eax + 4], ecx */ 11670 L_3C005CF3: 11671 ecx = MEM32(eax + 0x4); /* 0x3C005CF3: mov ecx, dword ptr [eax + 4] */ 11672 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005CF6: mov byte ptr [ecx + 0x10], bl */ 11673 edx = MEM32(eax + 0x4); /* 0x3C005CF9: mov edx, dword ptr [eax + 4] */ 11674 ecx = MEM32(edx + 0x4); /* 0x3C005CFC: mov ecx, dword ptr [edx + 4] */ 11675 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005CFF: mov byte ptr [ecx + 0x10], 0 */ 11676 edx = MEM32(eax + 0x4); /* 0x3C005D03: mov edx, dword ptr [eax + 4] */ 11677 ecx = MEM32(edx + 0x4); /* 0x3C005D06: mov ecx, dword ptr [edx + 4] */ 11678 edx = MEM32(ecx + 0x8); /* 0x3C005D09: mov edx, dword ptr [ecx + 8] */ 11679 edi = MEM32(edx); /* 0x3C005D0C: mov edi, dword ptr [edx] */ 11680 MEM32(ecx + 0x8) = edi; /* 0x3C005D0E: mov dword ptr [ecx + 8], edi */ 11681 edi = MEM32(edx); /* 0x3C005D11: mov edi, dword ptr [edx] */ 11682 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005D13: cmp edi, dword ptr [esi + 8] */ 11683 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11685 _flag_k = FK_CMP; 11686 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D1B; /* 0x3C005D16: je 0x3c005d1b */ 11687 L_3C005D18: 11688 MEM32(edi + 0x4) = ecx; /* 0x3C005D18: mov dword ptr [edi + 4], ecx */ 11689 L_3C005D1B: 11690 edi = MEM32(ecx + 0x4); /* 0x3C005D1B: mov edi, dword ptr [ecx + 4] */ 11691 MEM32(edx + 0x4) = edi; /* 0x3C005D1E: mov dword ptr [edx + 4], edi */ 11692 edi = MEM32(esi + 0x4); /* 0x3C005D21: mov edi, dword ptr [esi + 4] */ 11693 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005D24: cmp ecx, dword ptr [edi + 4] */ 11694 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 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_3C005D2E; /* 0x3C005D27: jne 0x3c005d2e */ 11698 L_3C005D29: 11699 MEM32(edi + 0x4) = edx; /* 0x3C005D29: mov dword ptr [edi + 4], edx */ 11700 goto L_3C005D3C; /* 0x3C005D2C: jmp 0x3c005d3c */ 11701 L_3C005D2E: 11702 edi = MEM32(ecx + 0x4); /* 0x3C005D2E: mov edi, dword ptr [ecx + 4] */ 11703 /* cmp ecx, MEM32(edi) */ /* 0x3C005D31: cmp ecx, dword ptr [edi] */ 11704 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 11705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11706 _flag_k = FK_CMP; 11707 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D39; /* 0x3C005D33: jne 0x3c005d39 */ 11708 L_3C005D35: 11709 MEM32(edi) = edx; /* 0x3C005D35: mov dword ptr [edi], edx */ 11710 goto L_3C005D3C; /* 0x3C005D37: jmp 0x3c005d3c */ 11711 L_3C005D39: 11712 MEM32(edi + 0x8) = edx; /* 0x3C005D39: mov dword ptr [edi + 8], edx */ 11713 L_3C005D3C: 11714 MEM32(edx) = ecx; /* 0x3C005D3C: mov dword ptr [edx], ecx */ 11715 L_3C005D3E: 11716 MEM32(ecx + 0x4) = edx; /* 0x3C005D3E: mov dword ptr [ecx + 4], edx */ 11717 L_3C005D41: 11718 ecx = MEM32(esi + 0x4); /* 0x3C005D41: mov ecx, dword ptr [esi + 4] */ 11719 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C005D44: cmp eax, dword ptr [ecx + 4] */ 11720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11722 _flag_k = FK_CMP; 11723 RECOMP_BACKEDGE(); 11724 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BCD; /* 0x3C005D47: jne 0x3c005bcd */ 11725 L_3C005D4D: 11726 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 11727 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 11728 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 11729 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 11730 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 11731 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 11732 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 11733 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 11734 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 11735 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 11736 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 11737 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 11738 RECOMP_REGS_OUT(); 11739 } 11740 11741 void sub_3C005CED(void) { 11742 int _fpu_cmp = 0; 11743 uint32_t _cf = 0; 11744 int _df = 1; 11745 uint32_t _flag_k = FK_NONE; 11746 uint32_t _flag_a = 0, _flag_b = 0; 11747 uint32_t _itail_tgt = 0; 11748 RECOMP_REGS_LOCALS 11749 RECOMP_ENTER(0x3C005CEDu); 11750 11751 goto L_3C005CED; 11752 L_3C005BCD: 11753 ecx = MEM32(eax + 0x4); /* 0x3C005BCD: mov ecx, dword ptr [eax + 4] */ 11754 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005BD0: mov dl, byte ptr [ecx + 0x10] */ 11755 /* test LO8(edx), LO8(edx) */ /* 0x3C005BD3: test dl, dl */ 11756 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11757 _cf = 0; 11758 _flag_k = FK_NARROW(FK_TEST, 24); 11759 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005D4D; /* 0x3C005BD5: jne 0x3c005d4d */ 11760 L_3C005BDB: 11761 edi = MEM32(ecx + 0x4); /* 0x3C005BDB: mov edi, dword ptr [ecx + 4] */ 11762 edx = MEM32(edi); /* 0x3C005BDE: mov edx, dword ptr [edi] */ 11763 /* cmp ecx, edx */ /* 0x3C005BE0: cmp ecx, edx */ 11764 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11766 _flag_k = FK_CMP; 11767 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CA9; /* 0x3C005BE2: jne 0x3c005ca9 */ 11768 L_3C005BE8: 11769 edx = MEM32(edi + 0x8); /* 0x3C005BE8: mov edx, dword ptr [edi + 8] */ 11770 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005BEB: cmp byte ptr [edx + 0x10], 0 */ 11771 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 11772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11773 _flag_k = FK_NARROW(FK_CMP, 24); 11774 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C0C; /* 0x3C005BEF: jne 0x3c005c0c */ 11775 L_3C005BF1: 11776 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF1: mov byte ptr [ecx + 0x10], bl */ 11777 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF4: mov byte ptr [edx + 0x10], bl */ 11778 ecx = MEM32(eax + 0x4); /* 0x3C005BF7: mov ecx, dword ptr [eax + 4] */ 11779 edx = MEM32(ecx + 0x4); /* 0x3C005BFA: mov edx, dword ptr [ecx + 4] */ 11780 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005BFD: mov byte ptr [edx + 0x10], 0 */ 11781 eax = MEM32(eax + 0x4); /* 0x3C005C01: mov eax, dword ptr [eax + 4] */ 11782 eax = MEM32(eax + 0x4); /* 0x3C005C04: mov eax, dword ptr [eax + 4] */ 11783 goto L_3C005D41; /* 0x3C005C07: jmp 0x3c005d41 */ 11784 L_3C005C0C: 11785 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3C005C0C: cmp eax, dword ptr [ecx + 8] */ 11786 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 11787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11788 _flag_k = FK_CMP; 11789 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C4B; /* 0x3C005C0F: jne 0x3c005c4b */ 11790 L_3C005C11: 11791 eax = ecx; /* 0x3C005C11: mov eax, ecx */ 11792 ecx = MEM32(eax + 0x8); /* 0x3C005C13: mov ecx, dword ptr [eax + 8] */ 11793 edx = MEM32(ecx); /* 0x3C005C16: mov edx, dword ptr [ecx] */ 11794 MEM32(eax + 0x8) = edx; /* 0x3C005C18: mov dword ptr [eax + 8], edx */ 11795 edx = MEM32(ecx); /* 0x3C005C1B: mov edx, dword ptr [ecx] */ 11796 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005C1D: cmp edx, dword ptr [esi + 8] */ 11797 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11799 _flag_k = FK_CMP; 11800 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C25; /* 0x3C005C20: je 0x3c005c25 */ 11801 L_3C005C22: 11802 MEM32(edx + 0x4) = eax; /* 0x3C005C22: mov dword ptr [edx + 4], eax */ 11803 L_3C005C25: 11804 edx = MEM32(eax + 0x4); /* 0x3C005C25: mov edx, dword ptr [eax + 4] */ 11805 MEM32(ecx + 0x4) = edx; /* 0x3C005C28: mov dword ptr [ecx + 4], edx */ 11806 edx = MEM32(esi + 0x4); /* 0x3C005C2B: mov edx, dword ptr [esi + 4] */ 11807 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005C2E: cmp eax, dword ptr [edx + 4] */ 11808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11810 _flag_k = FK_CMP; 11811 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C38; /* 0x3C005C31: jne 0x3c005c38 */ 11812 L_3C005C33: 11813 MEM32(edx + 0x4) = ecx; /* 0x3C005C33: mov dword ptr [edx + 4], ecx */ 11814 goto L_3C005C46; /* 0x3C005C36: jmp 0x3c005c46 */ 11815 L_3C005C38: 11816 edx = MEM32(eax + 0x4); /* 0x3C005C38: mov edx, dword ptr [eax + 4] */ 11817 /* cmp eax, MEM32(edx) */ /* 0x3C005C3B: cmp eax, dword ptr [edx] */ 11818 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 11819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11820 _flag_k = FK_CMP; 11821 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C43; /* 0x3C005C3D: jne 0x3c005c43 */ 11822 L_3C005C3F: 11823 MEM32(edx) = ecx; /* 0x3C005C3F: mov dword ptr [edx], ecx */ 11824 goto L_3C005C46; /* 0x3C005C41: jmp 0x3c005c46 */ 11825 L_3C005C43: 11826 MEM32(edx + 0x8) = ecx; /* 0x3C005C43: mov dword ptr [edx + 8], ecx */ 11827 L_3C005C46: 11828 MEM32(ecx) = eax; /* 0x3C005C46: mov dword ptr [ecx], eax */ 11829 MEM32(eax + 0x4) = ecx; /* 0x3C005C48: mov dword ptr [eax + 4], ecx */ 11830 L_3C005C4B: 11831 ecx = MEM32(eax + 0x4); /* 0x3C005C4B: mov ecx, dword ptr [eax + 4] */ 11832 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005C4E: mov byte ptr [ecx + 0x10], bl */ 11833 edx = MEM32(eax + 0x4); /* 0x3C005C51: mov edx, dword ptr [eax + 4] */ 11834 ecx = MEM32(edx + 0x4); /* 0x3C005C54: mov ecx, dword ptr [edx + 4] */ 11835 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005C57: mov byte ptr [ecx + 0x10], 0 */ 11836 edx = MEM32(eax + 0x4); /* 0x3C005C5B: mov edx, dword ptr [eax + 4] */ 11837 ecx = MEM32(edx + 0x4); /* 0x3C005C5E: mov ecx, dword ptr [edx + 4] */ 11838 edx = MEM32(ecx); /* 0x3C005C61: mov edx, dword ptr [ecx] */ 11839 edi = MEM32(edx + 0x8); /* 0x3C005C63: mov edi, dword ptr [edx + 8] */ 11840 MEM32(ecx) = edi; /* 0x3C005C66: mov dword ptr [ecx], edi */ 11841 edi = MEM32(edx + 0x8); /* 0x3C005C68: mov edi, dword ptr [edx + 8] */ 11842 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005C6B: cmp edi, dword ptr [esi + 8] */ 11843 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11845 _flag_k = FK_CMP; 11846 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C73; /* 0x3C005C6E: je 0x3c005c73 */ 11847 L_3C005C70: 11848 MEM32(edi + 0x4) = ecx; /* 0x3C005C70: mov dword ptr [edi + 4], ecx */ 11849 L_3C005C73: 11850 edi = MEM32(ecx + 0x4); /* 0x3C005C73: mov edi, dword ptr [ecx + 4] */ 11851 MEM32(edx + 0x4) = edi; /* 0x3C005C76: mov dword ptr [edx + 4], edi */ 11852 edi = MEM32(esi + 0x4); /* 0x3C005C79: mov edi, dword ptr [esi + 4] */ 11853 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005C7C: cmp ecx, dword ptr [edi + 4] */ 11854 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11856 _flag_k = FK_CMP; 11857 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C8C; /* 0x3C005C7F: jne 0x3c005c8c */ 11858 L_3C005C81: 11859 MEM32(edi + 0x4) = edx; /* 0x3C005C81: mov dword ptr [edi + 4], edx */ 11860 MEM32(edx + 0x8) = ecx; /* 0x3C005C84: mov dword ptr [edx + 8], ecx */ 11861 goto L_3C005D3E; /* 0x3C005C87: jmp 0x3c005d3e */ 11862 L_3C005C8C: 11863 edi = MEM32(ecx + 0x4); /* 0x3C005C8C: mov edi, dword ptr [ecx + 4] */ 11864 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005C8F: cmp ecx, dword ptr [edi + 8] */ 11865 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11867 _flag_k = FK_CMP; 11868 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C9F; /* 0x3C005C92: jne 0x3c005c9f */ 11869 L_3C005C94: 11870 MEM32(edi + 0x8) = edx; /* 0x3C005C94: mov dword ptr [edi + 8], edx */ 11871 MEM32(edx + 0x8) = ecx; /* 0x3C005C97: mov dword ptr [edx + 8], ecx */ 11872 goto L_3C005D3E; /* 0x3C005C9A: jmp 0x3c005d3e */ 11873 L_3C005C9F: 11874 MEM32(edi) = edx; /* 0x3C005C9F: mov dword ptr [edi], edx */ 11875 MEM32(edx + 0x8) = ecx; /* 0x3C005CA1: mov dword ptr [edx + 8], ecx */ 11876 goto L_3C005D3E; /* 0x3C005CA4: jmp 0x3c005d3e */ 11877 L_3C005CA9: 11878 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005CA9: cmp byte ptr [edx + 0x10], 0 */ 11879 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 11880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11881 _flag_k = FK_NARROW(FK_CMP, 24); 11882 RECOMP_BACKEDGE(); 11883 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005BF1; /* 0x3C005CAD: je 0x3c005bf1 */ 11884 L_3C005CB3: 11885 /* cmp eax, MEM32(ecx) */ /* 0x3C005CB3: cmp eax, dword ptr [ecx] */ 11886 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 11887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11888 _flag_k = FK_CMP; 11889 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CF3; /* 0x3C005CB5: jne 0x3c005cf3 */ 11890 L_3C005CB7: 11891 eax = ecx; /* 0x3C005CB7: mov eax, ecx */ 11892 ecx = MEM32(eax); /* 0x3C005CB9: mov ecx, dword ptr [eax] */ 11893 edx = MEM32(ecx + 0x8); /* 0x3C005CBB: mov edx, dword ptr [ecx + 8] */ 11894 MEM32(eax) = edx; /* 0x3C005CBE: mov dword ptr [eax], edx */ 11895 edx = MEM32(ecx + 0x8); /* 0x3C005CC0: mov edx, dword ptr [ecx + 8] */ 11896 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005CC3: cmp edx, dword ptr [esi + 8] */ 11897 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11899 _flag_k = FK_CMP; 11900 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005CCB; /* 0x3C005CC6: je 0x3c005ccb */ 11901 L_3C005CC8: 11902 MEM32(edx + 0x4) = eax; /* 0x3C005CC8: mov dword ptr [edx + 4], eax */ 11903 L_3C005CCB: 11904 edx = MEM32(eax + 0x4); /* 0x3C005CCB: mov edx, dword ptr [eax + 4] */ 11905 MEM32(ecx + 0x4) = edx; /* 0x3C005CCE: mov dword ptr [ecx + 4], edx */ 11906 edx = MEM32(esi + 0x4); /* 0x3C005CD1: mov edx, dword ptr [esi + 4] */ 11907 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005CD4: cmp eax, dword ptr [edx + 4] */ 11908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11910 _flag_k = FK_CMP; 11911 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CDE; /* 0x3C005CD7: jne 0x3c005cde */ 11912 L_3C005CD9: 11913 MEM32(edx + 0x4) = ecx; /* 0x3C005CD9: mov dword ptr [edx + 4], ecx */ 11914 goto L_3C005CED; /* 0x3C005CDC: jmp 0x3c005ced */ 11915 L_3C005CDE: 11916 edx = MEM32(eax + 0x4); /* 0x3C005CDE: mov edx, dword ptr [eax + 4] */ 11917 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3C005CE1: cmp eax, dword ptr [edx + 8] */ 11918 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 11919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11920 _flag_k = FK_CMP; 11921 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CEB; /* 0x3C005CE4: jne 0x3c005ceb */ 11922 L_3C005CE6: 11923 MEM32(edx + 0x8) = ecx; /* 0x3C005CE6: mov dword ptr [edx + 8], ecx */ 11924 goto L_3C005CED; /* 0x3C005CE9: jmp 0x3c005ced */ 11925 L_3C005CEB: 11926 MEM32(edx) = ecx; /* 0x3C005CEB: mov dword ptr [edx], ecx */ 11927 L_3C005CED: 11928 MEM32(ecx + 0x8) = eax; /* 0x3C005CED: mov dword ptr [ecx + 8], eax */ 11929 MEM32(eax + 0x4) = ecx; /* 0x3C005CF0: mov dword ptr [eax + 4], ecx */ 11930 L_3C005CF3: 11931 ecx = MEM32(eax + 0x4); /* 0x3C005CF3: mov ecx, dword ptr [eax + 4] */ 11932 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005CF6: mov byte ptr [ecx + 0x10], bl */ 11933 edx = MEM32(eax + 0x4); /* 0x3C005CF9: mov edx, dword ptr [eax + 4] */ 11934 ecx = MEM32(edx + 0x4); /* 0x3C005CFC: mov ecx, dword ptr [edx + 4] */ 11935 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005CFF: mov byte ptr [ecx + 0x10], 0 */ 11936 edx = MEM32(eax + 0x4); /* 0x3C005D03: mov edx, dword ptr [eax + 4] */ 11937 ecx = MEM32(edx + 0x4); /* 0x3C005D06: mov ecx, dword ptr [edx + 4] */ 11938 edx = MEM32(ecx + 0x8); /* 0x3C005D09: mov edx, dword ptr [ecx + 8] */ 11939 edi = MEM32(edx); /* 0x3C005D0C: mov edi, dword ptr [edx] */ 11940 MEM32(ecx + 0x8) = edi; /* 0x3C005D0E: mov dword ptr [ecx + 8], edi */ 11941 edi = MEM32(edx); /* 0x3C005D11: mov edi, dword ptr [edx] */ 11942 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005D13: cmp edi, dword ptr [esi + 8] */ 11943 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11945 _flag_k = FK_CMP; 11946 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D1B; /* 0x3C005D16: je 0x3c005d1b */ 11947 L_3C005D18: 11948 MEM32(edi + 0x4) = ecx; /* 0x3C005D18: mov dword ptr [edi + 4], ecx */ 11949 L_3C005D1B: 11950 edi = MEM32(ecx + 0x4); /* 0x3C005D1B: mov edi, dword ptr [ecx + 4] */ 11951 MEM32(edx + 0x4) = edi; /* 0x3C005D1E: mov dword ptr [edx + 4], edi */ 11952 edi = MEM32(esi + 0x4); /* 0x3C005D21: mov edi, dword ptr [esi + 4] */ 11953 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005D24: cmp ecx, dword ptr [edi + 4] */ 11954 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11956 _flag_k = FK_CMP; 11957 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D2E; /* 0x3C005D27: jne 0x3c005d2e */ 11958 L_3C005D29: 11959 MEM32(edi + 0x4) = edx; /* 0x3C005D29: mov dword ptr [edi + 4], edx */ 11960 goto L_3C005D3C; /* 0x3C005D2C: jmp 0x3c005d3c */ 11961 L_3C005D2E: 11962 edi = MEM32(ecx + 0x4); /* 0x3C005D2E: mov edi, dword ptr [ecx + 4] */ 11963 /* cmp ecx, MEM32(edi) */ /* 0x3C005D31: cmp ecx, dword ptr [edi] */ 11964 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 11965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11966 _flag_k = FK_CMP; 11967 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D39; /* 0x3C005D33: jne 0x3c005d39 */ 11968 L_3C005D35: 11969 MEM32(edi) = edx; /* 0x3C005D35: mov dword ptr [edi], edx */ 11970 goto L_3C005D3C; /* 0x3C005D37: jmp 0x3c005d3c */ 11971 L_3C005D39: 11972 MEM32(edi + 0x8) = edx; /* 0x3C005D39: mov dword ptr [edi + 8], edx */ 11973 L_3C005D3C: 11974 MEM32(edx) = ecx; /* 0x3C005D3C: mov dword ptr [edx], ecx */ 11975 L_3C005D3E: 11976 MEM32(ecx + 0x4) = edx; /* 0x3C005D3E: mov dword ptr [ecx + 4], edx */ 11977 L_3C005D41: 11978 ecx = MEM32(esi + 0x4); /* 0x3C005D41: mov ecx, dword ptr [esi + 4] */ 11979 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C005D44: cmp eax, dword ptr [ecx + 4] */ 11980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11982 _flag_k = FK_CMP; 11983 RECOMP_BACKEDGE(); 11984 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BCD; /* 0x3C005D47: jne 0x3c005bcd */ 11985 L_3C005D4D: 11986 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 11987 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 11988 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 11989 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 11990 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 11991 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 11992 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 11993 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 11994 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 11995 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 11996 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 11997 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 11998 RECOMP_REGS_OUT(); 11999 } 12000 12001 void sub_3C005CF3(void) { 12002 int _fpu_cmp = 0; 12003 uint32_t _cf = 0; 12004 int _df = 1; 12005 uint32_t _flag_k = FK_NONE; 12006 uint32_t _flag_a = 0, _flag_b = 0; 12007 uint32_t _itail_tgt = 0; 12008 RECOMP_REGS_LOCALS 12009 RECOMP_ENTER(0x3C005CF3u); 12010 12011 goto L_3C005CF3; 12012 L_3C005BCD: 12013 ecx = MEM32(eax + 0x4); /* 0x3C005BCD: mov ecx, dword ptr [eax + 4] */ 12014 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005BD0: mov dl, byte ptr [ecx + 0x10] */ 12015 /* test LO8(edx), LO8(edx) */ /* 0x3C005BD3: test dl, dl */ 12016 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12017 _cf = 0; 12018 _flag_k = FK_NARROW(FK_TEST, 24); 12019 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005D4D; /* 0x3C005BD5: jne 0x3c005d4d */ 12020 L_3C005BDB: 12021 edi = MEM32(ecx + 0x4); /* 0x3C005BDB: mov edi, dword ptr [ecx + 4] */ 12022 edx = MEM32(edi); /* 0x3C005BDE: mov edx, dword ptr [edi] */ 12023 /* cmp ecx, edx */ /* 0x3C005BE0: cmp ecx, edx */ 12024 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12026 _flag_k = FK_CMP; 12027 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CA9; /* 0x3C005BE2: jne 0x3c005ca9 */ 12028 L_3C005BE8: 12029 edx = MEM32(edi + 0x8); /* 0x3C005BE8: mov edx, dword ptr [edi + 8] */ 12030 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005BEB: cmp byte ptr [edx + 0x10], 0 */ 12031 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 12032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12033 _flag_k = FK_NARROW(FK_CMP, 24); 12034 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C0C; /* 0x3C005BEF: jne 0x3c005c0c */ 12035 L_3C005BF1: 12036 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF1: mov byte ptr [ecx + 0x10], bl */ 12037 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF4: mov byte ptr [edx + 0x10], bl */ 12038 ecx = MEM32(eax + 0x4); /* 0x3C005BF7: mov ecx, dword ptr [eax + 4] */ 12039 edx = MEM32(ecx + 0x4); /* 0x3C005BFA: mov edx, dword ptr [ecx + 4] */ 12040 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005BFD: mov byte ptr [edx + 0x10], 0 */ 12041 eax = MEM32(eax + 0x4); /* 0x3C005C01: mov eax, dword ptr [eax + 4] */ 12042 eax = MEM32(eax + 0x4); /* 0x3C005C04: mov eax, dword ptr [eax + 4] */ 12043 goto L_3C005D41; /* 0x3C005C07: jmp 0x3c005d41 */ 12044 L_3C005C0C: 12045 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3C005C0C: cmp eax, dword ptr [ecx + 8] */ 12046 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 12047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12048 _flag_k = FK_CMP; 12049 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C4B; /* 0x3C005C0F: jne 0x3c005c4b */ 12050 L_3C005C11: 12051 eax = ecx; /* 0x3C005C11: mov eax, ecx */ 12052 ecx = MEM32(eax + 0x8); /* 0x3C005C13: mov ecx, dword ptr [eax + 8] */ 12053 edx = MEM32(ecx); /* 0x3C005C16: mov edx, dword ptr [ecx] */ 12054 MEM32(eax + 0x8) = edx; /* 0x3C005C18: mov dword ptr [eax + 8], edx */ 12055 edx = MEM32(ecx); /* 0x3C005C1B: mov edx, dword ptr [ecx] */ 12056 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005C1D: cmp edx, dword ptr [esi + 8] */ 12057 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12059 _flag_k = FK_CMP; 12060 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C25; /* 0x3C005C20: je 0x3c005c25 */ 12061 L_3C005C22: 12062 MEM32(edx + 0x4) = eax; /* 0x3C005C22: mov dword ptr [edx + 4], eax */ 12063 L_3C005C25: 12064 edx = MEM32(eax + 0x4); /* 0x3C005C25: mov edx, dword ptr [eax + 4] */ 12065 MEM32(ecx + 0x4) = edx; /* 0x3C005C28: mov dword ptr [ecx + 4], edx */ 12066 edx = MEM32(esi + 0x4); /* 0x3C005C2B: mov edx, dword ptr [esi + 4] */ 12067 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005C2E: cmp eax, dword ptr [edx + 4] */ 12068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12070 _flag_k = FK_CMP; 12071 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C38; /* 0x3C005C31: jne 0x3c005c38 */ 12072 L_3C005C33: 12073 MEM32(edx + 0x4) = ecx; /* 0x3C005C33: mov dword ptr [edx + 4], ecx */ 12074 goto L_3C005C46; /* 0x3C005C36: jmp 0x3c005c46 */ 12075 L_3C005C38: 12076 edx = MEM32(eax + 0x4); /* 0x3C005C38: mov edx, dword ptr [eax + 4] */ 12077 /* cmp eax, MEM32(edx) */ /* 0x3C005C3B: cmp eax, dword ptr [edx] */ 12078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 12079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12080 _flag_k = FK_CMP; 12081 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C43; /* 0x3C005C3D: jne 0x3c005c43 */ 12082 L_3C005C3F: 12083 MEM32(edx) = ecx; /* 0x3C005C3F: mov dword ptr [edx], ecx */ 12084 goto L_3C005C46; /* 0x3C005C41: jmp 0x3c005c46 */ 12085 L_3C005C43: 12086 MEM32(edx + 0x8) = ecx; /* 0x3C005C43: mov dword ptr [edx + 8], ecx */ 12087 L_3C005C46: 12088 MEM32(ecx) = eax; /* 0x3C005C46: mov dword ptr [ecx], eax */ 12089 MEM32(eax + 0x4) = ecx; /* 0x3C005C48: mov dword ptr [eax + 4], ecx */ 12090 L_3C005C4B: 12091 ecx = MEM32(eax + 0x4); /* 0x3C005C4B: mov ecx, dword ptr [eax + 4] */ 12092 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005C4E: mov byte ptr [ecx + 0x10], bl */ 12093 edx = MEM32(eax + 0x4); /* 0x3C005C51: mov edx, dword ptr [eax + 4] */ 12094 ecx = MEM32(edx + 0x4); /* 0x3C005C54: mov ecx, dword ptr [edx + 4] */ 12095 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005C57: mov byte ptr [ecx + 0x10], 0 */ 12096 edx = MEM32(eax + 0x4); /* 0x3C005C5B: mov edx, dword ptr [eax + 4] */ 12097 ecx = MEM32(edx + 0x4); /* 0x3C005C5E: mov ecx, dword ptr [edx + 4] */ 12098 edx = MEM32(ecx); /* 0x3C005C61: mov edx, dword ptr [ecx] */ 12099 edi = MEM32(edx + 0x8); /* 0x3C005C63: mov edi, dword ptr [edx + 8] */ 12100 MEM32(ecx) = edi; /* 0x3C005C66: mov dword ptr [ecx], edi */ 12101 edi = MEM32(edx + 0x8); /* 0x3C005C68: mov edi, dword ptr [edx + 8] */ 12102 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005C6B: cmp edi, dword ptr [esi + 8] */ 12103 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12105 _flag_k = FK_CMP; 12106 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C73; /* 0x3C005C6E: je 0x3c005c73 */ 12107 L_3C005C70: 12108 MEM32(edi + 0x4) = ecx; /* 0x3C005C70: mov dword ptr [edi + 4], ecx */ 12109 L_3C005C73: 12110 edi = MEM32(ecx + 0x4); /* 0x3C005C73: mov edi, dword ptr [ecx + 4] */ 12111 MEM32(edx + 0x4) = edi; /* 0x3C005C76: mov dword ptr [edx + 4], edi */ 12112 edi = MEM32(esi + 0x4); /* 0x3C005C79: mov edi, dword ptr [esi + 4] */ 12113 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005C7C: cmp ecx, dword ptr [edi + 4] */ 12114 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12116 _flag_k = FK_CMP; 12117 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C8C; /* 0x3C005C7F: jne 0x3c005c8c */ 12118 L_3C005C81: 12119 MEM32(edi + 0x4) = edx; /* 0x3C005C81: mov dword ptr [edi + 4], edx */ 12120 MEM32(edx + 0x8) = ecx; /* 0x3C005C84: mov dword ptr [edx + 8], ecx */ 12121 goto L_3C005D3E; /* 0x3C005C87: jmp 0x3c005d3e */ 12122 L_3C005C8C: 12123 edi = MEM32(ecx + 0x4); /* 0x3C005C8C: mov edi, dword ptr [ecx + 4] */ 12124 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005C8F: cmp ecx, dword ptr [edi + 8] */ 12125 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12127 _flag_k = FK_CMP; 12128 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C9F; /* 0x3C005C92: jne 0x3c005c9f */ 12129 L_3C005C94: 12130 MEM32(edi + 0x8) = edx; /* 0x3C005C94: mov dword ptr [edi + 8], edx */ 12131 MEM32(edx + 0x8) = ecx; /* 0x3C005C97: mov dword ptr [edx + 8], ecx */ 12132 goto L_3C005D3E; /* 0x3C005C9A: jmp 0x3c005d3e */ 12133 L_3C005C9F: 12134 MEM32(edi) = edx; /* 0x3C005C9F: mov dword ptr [edi], edx */ 12135 MEM32(edx + 0x8) = ecx; /* 0x3C005CA1: mov dword ptr [edx + 8], ecx */ 12136 goto L_3C005D3E; /* 0x3C005CA4: jmp 0x3c005d3e */ 12137 L_3C005CA9: 12138 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005CA9: cmp byte ptr [edx + 0x10], 0 */ 12139 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 12140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12141 _flag_k = FK_NARROW(FK_CMP, 24); 12142 RECOMP_BACKEDGE(); 12143 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005BF1; /* 0x3C005CAD: je 0x3c005bf1 */ 12144 L_3C005CB3: 12145 /* cmp eax, MEM32(ecx) */ /* 0x3C005CB3: cmp eax, dword ptr [ecx] */ 12146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 12147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12148 _flag_k = FK_CMP; 12149 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CF3; /* 0x3C005CB5: jne 0x3c005cf3 */ 12150 L_3C005CB7: 12151 eax = ecx; /* 0x3C005CB7: mov eax, ecx */ 12152 ecx = MEM32(eax); /* 0x3C005CB9: mov ecx, dword ptr [eax] */ 12153 edx = MEM32(ecx + 0x8); /* 0x3C005CBB: mov edx, dword ptr [ecx + 8] */ 12154 MEM32(eax) = edx; /* 0x3C005CBE: mov dword ptr [eax], edx */ 12155 edx = MEM32(ecx + 0x8); /* 0x3C005CC0: mov edx, dword ptr [ecx + 8] */ 12156 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005CC3: cmp edx, dword ptr [esi + 8] */ 12157 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12159 _flag_k = FK_CMP; 12160 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005CCB; /* 0x3C005CC6: je 0x3c005ccb */ 12161 L_3C005CC8: 12162 MEM32(edx + 0x4) = eax; /* 0x3C005CC8: mov dword ptr [edx + 4], eax */ 12163 L_3C005CCB: 12164 edx = MEM32(eax + 0x4); /* 0x3C005CCB: mov edx, dword ptr [eax + 4] */ 12165 MEM32(ecx + 0x4) = edx; /* 0x3C005CCE: mov dword ptr [ecx + 4], edx */ 12166 edx = MEM32(esi + 0x4); /* 0x3C005CD1: mov edx, dword ptr [esi + 4] */ 12167 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005CD4: cmp eax, dword ptr [edx + 4] */ 12168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12170 _flag_k = FK_CMP; 12171 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CDE; /* 0x3C005CD7: jne 0x3c005cde */ 12172 L_3C005CD9: 12173 MEM32(edx + 0x4) = ecx; /* 0x3C005CD9: mov dword ptr [edx + 4], ecx */ 12174 goto L_3C005CED; /* 0x3C005CDC: jmp 0x3c005ced */ 12175 L_3C005CDE: 12176 edx = MEM32(eax + 0x4); /* 0x3C005CDE: mov edx, dword ptr [eax + 4] */ 12177 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3C005CE1: cmp eax, dword ptr [edx + 8] */ 12178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 12179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12180 _flag_k = FK_CMP; 12181 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CEB; /* 0x3C005CE4: jne 0x3c005ceb */ 12182 L_3C005CE6: 12183 MEM32(edx + 0x8) = ecx; /* 0x3C005CE6: mov dword ptr [edx + 8], ecx */ 12184 goto L_3C005CED; /* 0x3C005CE9: jmp 0x3c005ced */ 12185 L_3C005CEB: 12186 MEM32(edx) = ecx; /* 0x3C005CEB: mov dword ptr [edx], ecx */ 12187 L_3C005CED: 12188 MEM32(ecx + 0x8) = eax; /* 0x3C005CED: mov dword ptr [ecx + 8], eax */ 12189 MEM32(eax + 0x4) = ecx; /* 0x3C005CF0: mov dword ptr [eax + 4], ecx */ 12190 L_3C005CF3: 12191 ecx = MEM32(eax + 0x4); /* 0x3C005CF3: mov ecx, dword ptr [eax + 4] */ 12192 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005CF6: mov byte ptr [ecx + 0x10], bl */ 12193 edx = MEM32(eax + 0x4); /* 0x3C005CF9: mov edx, dword ptr [eax + 4] */ 12194 ecx = MEM32(edx + 0x4); /* 0x3C005CFC: mov ecx, dword ptr [edx + 4] */ 12195 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005CFF: mov byte ptr [ecx + 0x10], 0 */ 12196 edx = MEM32(eax + 0x4); /* 0x3C005D03: mov edx, dword ptr [eax + 4] */ 12197 ecx = MEM32(edx + 0x4); /* 0x3C005D06: mov ecx, dword ptr [edx + 4] */ 12198 edx = MEM32(ecx + 0x8); /* 0x3C005D09: mov edx, dword ptr [ecx + 8] */ 12199 edi = MEM32(edx); /* 0x3C005D0C: mov edi, dword ptr [edx] */ 12200 MEM32(ecx + 0x8) = edi; /* 0x3C005D0E: mov dword ptr [ecx + 8], edi */ 12201 edi = MEM32(edx); /* 0x3C005D11: mov edi, dword ptr [edx] */ 12202 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005D13: cmp edi, dword ptr [esi + 8] */ 12203 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12205 _flag_k = FK_CMP; 12206 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D1B; /* 0x3C005D16: je 0x3c005d1b */ 12207 L_3C005D18: 12208 MEM32(edi + 0x4) = ecx; /* 0x3C005D18: mov dword ptr [edi + 4], ecx */ 12209 L_3C005D1B: 12210 edi = MEM32(ecx + 0x4); /* 0x3C005D1B: mov edi, dword ptr [ecx + 4] */ 12211 MEM32(edx + 0x4) = edi; /* 0x3C005D1E: mov dword ptr [edx + 4], edi */ 12212 edi = MEM32(esi + 0x4); /* 0x3C005D21: mov edi, dword ptr [esi + 4] */ 12213 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005D24: cmp ecx, dword ptr [edi + 4] */ 12214 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12216 _flag_k = FK_CMP; 12217 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D2E; /* 0x3C005D27: jne 0x3c005d2e */ 12218 L_3C005D29: 12219 MEM32(edi + 0x4) = edx; /* 0x3C005D29: mov dword ptr [edi + 4], edx */ 12220 goto L_3C005D3C; /* 0x3C005D2C: jmp 0x3c005d3c */ 12221 L_3C005D2E: 12222 edi = MEM32(ecx + 0x4); /* 0x3C005D2E: mov edi, dword ptr [ecx + 4] */ 12223 /* cmp ecx, MEM32(edi) */ /* 0x3C005D31: cmp ecx, dword ptr [edi] */ 12224 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 12225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12226 _flag_k = FK_CMP; 12227 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D39; /* 0x3C005D33: jne 0x3c005d39 */ 12228 L_3C005D35: 12229 MEM32(edi) = edx; /* 0x3C005D35: mov dword ptr [edi], edx */ 12230 goto L_3C005D3C; /* 0x3C005D37: jmp 0x3c005d3c */ 12231 L_3C005D39: 12232 MEM32(edi + 0x8) = edx; /* 0x3C005D39: mov dword ptr [edi + 8], edx */ 12233 L_3C005D3C: 12234 MEM32(edx) = ecx; /* 0x3C005D3C: mov dword ptr [edx], ecx */ 12235 L_3C005D3E: 12236 MEM32(ecx + 0x4) = edx; /* 0x3C005D3E: mov dword ptr [ecx + 4], edx */ 12237 L_3C005D41: 12238 ecx = MEM32(esi + 0x4); /* 0x3C005D41: mov ecx, dword ptr [esi + 4] */ 12239 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C005D44: cmp eax, dword ptr [ecx + 4] */ 12240 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12242 _flag_k = FK_CMP; 12243 RECOMP_BACKEDGE(); 12244 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BCD; /* 0x3C005D47: jne 0x3c005bcd */ 12245 L_3C005D4D: 12246 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 12247 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 12248 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 12249 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 12250 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 12251 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 12252 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 12253 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 12254 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 12255 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 12256 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 12257 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 12258 RECOMP_REGS_OUT(); 12259 } 12260 12261 void sub_3C005D3C(void) { 12262 int _fpu_cmp = 0; 12263 uint32_t _cf = 0; 12264 int _df = 1; 12265 uint32_t _flag_k = FK_NONE; 12266 uint32_t _flag_a = 0, _flag_b = 0; 12267 uint32_t _itail_tgt = 0; 12268 RECOMP_REGS_LOCALS 12269 RECOMP_ENTER(0x3C005D3Cu); 12270 12271 goto L_3C005D3C; 12272 L_3C005BCD: 12273 ecx = MEM32(eax + 0x4); /* 0x3C005BCD: mov ecx, dword ptr [eax + 4] */ 12274 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005BD0: mov dl, byte ptr [ecx + 0x10] */ 12275 /* test LO8(edx), LO8(edx) */ /* 0x3C005BD3: test dl, dl */ 12276 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12277 _cf = 0; 12278 _flag_k = FK_NARROW(FK_TEST, 24); 12279 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005D4D; /* 0x3C005BD5: jne 0x3c005d4d */ 12280 L_3C005BDB: 12281 edi = MEM32(ecx + 0x4); /* 0x3C005BDB: mov edi, dword ptr [ecx + 4] */ 12282 edx = MEM32(edi); /* 0x3C005BDE: mov edx, dword ptr [edi] */ 12283 /* cmp ecx, edx */ /* 0x3C005BE0: cmp ecx, edx */ 12284 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12286 _flag_k = FK_CMP; 12287 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CA9; /* 0x3C005BE2: jne 0x3c005ca9 */ 12288 L_3C005BE8: 12289 edx = MEM32(edi + 0x8); /* 0x3C005BE8: mov edx, dword ptr [edi + 8] */ 12290 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005BEB: cmp byte ptr [edx + 0x10], 0 */ 12291 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 12292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12293 _flag_k = FK_NARROW(FK_CMP, 24); 12294 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C0C; /* 0x3C005BEF: jne 0x3c005c0c */ 12295 L_3C005BF1: 12296 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF1: mov byte ptr [ecx + 0x10], bl */ 12297 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF4: mov byte ptr [edx + 0x10], bl */ 12298 ecx = MEM32(eax + 0x4); /* 0x3C005BF7: mov ecx, dword ptr [eax + 4] */ 12299 edx = MEM32(ecx + 0x4); /* 0x3C005BFA: mov edx, dword ptr [ecx + 4] */ 12300 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005BFD: mov byte ptr [edx + 0x10], 0 */ 12301 eax = MEM32(eax + 0x4); /* 0x3C005C01: mov eax, dword ptr [eax + 4] */ 12302 eax = MEM32(eax + 0x4); /* 0x3C005C04: mov eax, dword ptr [eax + 4] */ 12303 goto L_3C005D41; /* 0x3C005C07: jmp 0x3c005d41 */ 12304 L_3C005C0C: 12305 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3C005C0C: cmp eax, dword ptr [ecx + 8] */ 12306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 12307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12308 _flag_k = FK_CMP; 12309 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C4B; /* 0x3C005C0F: jne 0x3c005c4b */ 12310 L_3C005C11: 12311 eax = ecx; /* 0x3C005C11: mov eax, ecx */ 12312 ecx = MEM32(eax + 0x8); /* 0x3C005C13: mov ecx, dword ptr [eax + 8] */ 12313 edx = MEM32(ecx); /* 0x3C005C16: mov edx, dword ptr [ecx] */ 12314 MEM32(eax + 0x8) = edx; /* 0x3C005C18: mov dword ptr [eax + 8], edx */ 12315 edx = MEM32(ecx); /* 0x3C005C1B: mov edx, dword ptr [ecx] */ 12316 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005C1D: cmp edx, dword ptr [esi + 8] */ 12317 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12319 _flag_k = FK_CMP; 12320 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C25; /* 0x3C005C20: je 0x3c005c25 */ 12321 L_3C005C22: 12322 MEM32(edx + 0x4) = eax; /* 0x3C005C22: mov dword ptr [edx + 4], eax */ 12323 L_3C005C25: 12324 edx = MEM32(eax + 0x4); /* 0x3C005C25: mov edx, dword ptr [eax + 4] */ 12325 MEM32(ecx + 0x4) = edx; /* 0x3C005C28: mov dword ptr [ecx + 4], edx */ 12326 edx = MEM32(esi + 0x4); /* 0x3C005C2B: mov edx, dword ptr [esi + 4] */ 12327 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005C2E: cmp eax, dword ptr [edx + 4] */ 12328 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12330 _flag_k = FK_CMP; 12331 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C38; /* 0x3C005C31: jne 0x3c005c38 */ 12332 L_3C005C33: 12333 MEM32(edx + 0x4) = ecx; /* 0x3C005C33: mov dword ptr [edx + 4], ecx */ 12334 goto L_3C005C46; /* 0x3C005C36: jmp 0x3c005c46 */ 12335 L_3C005C38: 12336 edx = MEM32(eax + 0x4); /* 0x3C005C38: mov edx, dword ptr [eax + 4] */ 12337 /* cmp eax, MEM32(edx) */ /* 0x3C005C3B: cmp eax, dword ptr [edx] */ 12338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 12339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12340 _flag_k = FK_CMP; 12341 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C43; /* 0x3C005C3D: jne 0x3c005c43 */ 12342 L_3C005C3F: 12343 MEM32(edx) = ecx; /* 0x3C005C3F: mov dword ptr [edx], ecx */ 12344 goto L_3C005C46; /* 0x3C005C41: jmp 0x3c005c46 */ 12345 L_3C005C43: 12346 MEM32(edx + 0x8) = ecx; /* 0x3C005C43: mov dword ptr [edx + 8], ecx */ 12347 L_3C005C46: 12348 MEM32(ecx) = eax; /* 0x3C005C46: mov dword ptr [ecx], eax */ 12349 MEM32(eax + 0x4) = ecx; /* 0x3C005C48: mov dword ptr [eax + 4], ecx */ 12350 L_3C005C4B: 12351 ecx = MEM32(eax + 0x4); /* 0x3C005C4B: mov ecx, dword ptr [eax + 4] */ 12352 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005C4E: mov byte ptr [ecx + 0x10], bl */ 12353 edx = MEM32(eax + 0x4); /* 0x3C005C51: mov edx, dword ptr [eax + 4] */ 12354 ecx = MEM32(edx + 0x4); /* 0x3C005C54: mov ecx, dword ptr [edx + 4] */ 12355 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005C57: mov byte ptr [ecx + 0x10], 0 */ 12356 edx = MEM32(eax + 0x4); /* 0x3C005C5B: mov edx, dword ptr [eax + 4] */ 12357 ecx = MEM32(edx + 0x4); /* 0x3C005C5E: mov ecx, dword ptr [edx + 4] */ 12358 edx = MEM32(ecx); /* 0x3C005C61: mov edx, dword ptr [ecx] */ 12359 edi = MEM32(edx + 0x8); /* 0x3C005C63: mov edi, dword ptr [edx + 8] */ 12360 MEM32(ecx) = edi; /* 0x3C005C66: mov dword ptr [ecx], edi */ 12361 edi = MEM32(edx + 0x8); /* 0x3C005C68: mov edi, dword ptr [edx + 8] */ 12362 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005C6B: cmp edi, dword ptr [esi + 8] */ 12363 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12365 _flag_k = FK_CMP; 12366 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C73; /* 0x3C005C6E: je 0x3c005c73 */ 12367 L_3C005C70: 12368 MEM32(edi + 0x4) = ecx; /* 0x3C005C70: mov dword ptr [edi + 4], ecx */ 12369 L_3C005C73: 12370 edi = MEM32(ecx + 0x4); /* 0x3C005C73: mov edi, dword ptr [ecx + 4] */ 12371 MEM32(edx + 0x4) = edi; /* 0x3C005C76: mov dword ptr [edx + 4], edi */ 12372 edi = MEM32(esi + 0x4); /* 0x3C005C79: mov edi, dword ptr [esi + 4] */ 12373 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005C7C: cmp ecx, dword ptr [edi + 4] */ 12374 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12376 _flag_k = FK_CMP; 12377 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C8C; /* 0x3C005C7F: jne 0x3c005c8c */ 12378 L_3C005C81: 12379 MEM32(edi + 0x4) = edx; /* 0x3C005C81: mov dword ptr [edi + 4], edx */ 12380 MEM32(edx + 0x8) = ecx; /* 0x3C005C84: mov dword ptr [edx + 8], ecx */ 12381 goto L_3C005D3E; /* 0x3C005C87: jmp 0x3c005d3e */ 12382 L_3C005C8C: 12383 edi = MEM32(ecx + 0x4); /* 0x3C005C8C: mov edi, dword ptr [ecx + 4] */ 12384 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005C8F: cmp ecx, dword ptr [edi + 8] */ 12385 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12387 _flag_k = FK_CMP; 12388 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C9F; /* 0x3C005C92: jne 0x3c005c9f */ 12389 L_3C005C94: 12390 MEM32(edi + 0x8) = edx; /* 0x3C005C94: mov dword ptr [edi + 8], edx */ 12391 MEM32(edx + 0x8) = ecx; /* 0x3C005C97: mov dword ptr [edx + 8], ecx */ 12392 goto L_3C005D3E; /* 0x3C005C9A: jmp 0x3c005d3e */ 12393 L_3C005C9F: 12394 MEM32(edi) = edx; /* 0x3C005C9F: mov dword ptr [edi], edx */ 12395 MEM32(edx + 0x8) = ecx; /* 0x3C005CA1: mov dword ptr [edx + 8], ecx */ 12396 goto L_3C005D3E; /* 0x3C005CA4: jmp 0x3c005d3e */ 12397 L_3C005CA9: 12398 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005CA9: cmp byte ptr [edx + 0x10], 0 */ 12399 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 12400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12401 _flag_k = FK_NARROW(FK_CMP, 24); 12402 RECOMP_BACKEDGE(); 12403 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005BF1; /* 0x3C005CAD: je 0x3c005bf1 */ 12404 L_3C005CB3: 12405 /* cmp eax, MEM32(ecx) */ /* 0x3C005CB3: cmp eax, dword ptr [ecx] */ 12406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 12407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12408 _flag_k = FK_CMP; 12409 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CF3; /* 0x3C005CB5: jne 0x3c005cf3 */ 12410 L_3C005CB7: 12411 eax = ecx; /* 0x3C005CB7: mov eax, ecx */ 12412 ecx = MEM32(eax); /* 0x3C005CB9: mov ecx, dword ptr [eax] */ 12413 edx = MEM32(ecx + 0x8); /* 0x3C005CBB: mov edx, dword ptr [ecx + 8] */ 12414 MEM32(eax) = edx; /* 0x3C005CBE: mov dword ptr [eax], edx */ 12415 edx = MEM32(ecx + 0x8); /* 0x3C005CC0: mov edx, dword ptr [ecx + 8] */ 12416 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005CC3: cmp edx, dword ptr [esi + 8] */ 12417 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12419 _flag_k = FK_CMP; 12420 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005CCB; /* 0x3C005CC6: je 0x3c005ccb */ 12421 L_3C005CC8: 12422 MEM32(edx + 0x4) = eax; /* 0x3C005CC8: mov dword ptr [edx + 4], eax */ 12423 L_3C005CCB: 12424 edx = MEM32(eax + 0x4); /* 0x3C005CCB: mov edx, dword ptr [eax + 4] */ 12425 MEM32(ecx + 0x4) = edx; /* 0x3C005CCE: mov dword ptr [ecx + 4], edx */ 12426 edx = MEM32(esi + 0x4); /* 0x3C005CD1: mov edx, dword ptr [esi + 4] */ 12427 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005CD4: cmp eax, dword ptr [edx + 4] */ 12428 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12430 _flag_k = FK_CMP; 12431 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CDE; /* 0x3C005CD7: jne 0x3c005cde */ 12432 L_3C005CD9: 12433 MEM32(edx + 0x4) = ecx; /* 0x3C005CD9: mov dword ptr [edx + 4], ecx */ 12434 goto L_3C005CED; /* 0x3C005CDC: jmp 0x3c005ced */ 12435 L_3C005CDE: 12436 edx = MEM32(eax + 0x4); /* 0x3C005CDE: mov edx, dword ptr [eax + 4] */ 12437 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3C005CE1: cmp eax, dword ptr [edx + 8] */ 12438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 12439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12440 _flag_k = FK_CMP; 12441 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CEB; /* 0x3C005CE4: jne 0x3c005ceb */ 12442 L_3C005CE6: 12443 MEM32(edx + 0x8) = ecx; /* 0x3C005CE6: mov dword ptr [edx + 8], ecx */ 12444 goto L_3C005CED; /* 0x3C005CE9: jmp 0x3c005ced */ 12445 L_3C005CEB: 12446 MEM32(edx) = ecx; /* 0x3C005CEB: mov dword ptr [edx], ecx */ 12447 L_3C005CED: 12448 MEM32(ecx + 0x8) = eax; /* 0x3C005CED: mov dword ptr [ecx + 8], eax */ 12449 MEM32(eax + 0x4) = ecx; /* 0x3C005CF0: mov dword ptr [eax + 4], ecx */ 12450 L_3C005CF3: 12451 ecx = MEM32(eax + 0x4); /* 0x3C005CF3: mov ecx, dword ptr [eax + 4] */ 12452 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005CF6: mov byte ptr [ecx + 0x10], bl */ 12453 edx = MEM32(eax + 0x4); /* 0x3C005CF9: mov edx, dword ptr [eax + 4] */ 12454 ecx = MEM32(edx + 0x4); /* 0x3C005CFC: mov ecx, dword ptr [edx + 4] */ 12455 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005CFF: mov byte ptr [ecx + 0x10], 0 */ 12456 edx = MEM32(eax + 0x4); /* 0x3C005D03: mov edx, dword ptr [eax + 4] */ 12457 ecx = MEM32(edx + 0x4); /* 0x3C005D06: mov ecx, dword ptr [edx + 4] */ 12458 edx = MEM32(ecx + 0x8); /* 0x3C005D09: mov edx, dword ptr [ecx + 8] */ 12459 edi = MEM32(edx); /* 0x3C005D0C: mov edi, dword ptr [edx] */ 12460 MEM32(ecx + 0x8) = edi; /* 0x3C005D0E: mov dword ptr [ecx + 8], edi */ 12461 edi = MEM32(edx); /* 0x3C005D11: mov edi, dword ptr [edx] */ 12462 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005D13: cmp edi, dword ptr [esi + 8] */ 12463 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12465 _flag_k = FK_CMP; 12466 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D1B; /* 0x3C005D16: je 0x3c005d1b */ 12467 L_3C005D18: 12468 MEM32(edi + 0x4) = ecx; /* 0x3C005D18: mov dword ptr [edi + 4], ecx */ 12469 L_3C005D1B: 12470 edi = MEM32(ecx + 0x4); /* 0x3C005D1B: mov edi, dword ptr [ecx + 4] */ 12471 MEM32(edx + 0x4) = edi; /* 0x3C005D1E: mov dword ptr [edx + 4], edi */ 12472 edi = MEM32(esi + 0x4); /* 0x3C005D21: mov edi, dword ptr [esi + 4] */ 12473 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005D24: cmp ecx, dword ptr [edi + 4] */ 12474 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12476 _flag_k = FK_CMP; 12477 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D2E; /* 0x3C005D27: jne 0x3c005d2e */ 12478 L_3C005D29: 12479 MEM32(edi + 0x4) = edx; /* 0x3C005D29: mov dword ptr [edi + 4], edx */ 12480 goto L_3C005D3C; /* 0x3C005D2C: jmp 0x3c005d3c */ 12481 L_3C005D2E: 12482 edi = MEM32(ecx + 0x4); /* 0x3C005D2E: mov edi, dword ptr [ecx + 4] */ 12483 /* cmp ecx, MEM32(edi) */ /* 0x3C005D31: cmp ecx, dword ptr [edi] */ 12484 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 12485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12486 _flag_k = FK_CMP; 12487 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D39; /* 0x3C005D33: jne 0x3c005d39 */ 12488 L_3C005D35: 12489 MEM32(edi) = edx; /* 0x3C005D35: mov dword ptr [edi], edx */ 12490 goto L_3C005D3C; /* 0x3C005D37: jmp 0x3c005d3c */ 12491 L_3C005D39: 12492 MEM32(edi + 0x8) = edx; /* 0x3C005D39: mov dword ptr [edi + 8], edx */ 12493 L_3C005D3C: 12494 MEM32(edx) = ecx; /* 0x3C005D3C: mov dword ptr [edx], ecx */ 12495 L_3C005D3E: 12496 MEM32(ecx + 0x4) = edx; /* 0x3C005D3E: mov dword ptr [ecx + 4], edx */ 12497 L_3C005D41: 12498 ecx = MEM32(esi + 0x4); /* 0x3C005D41: mov ecx, dword ptr [esi + 4] */ 12499 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C005D44: cmp eax, dword ptr [ecx + 4] */ 12500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12502 _flag_k = FK_CMP; 12503 RECOMP_BACKEDGE(); 12504 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BCD; /* 0x3C005D47: jne 0x3c005bcd */ 12505 L_3C005D4D: 12506 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 12507 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 12508 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 12509 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 12510 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 12511 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 12512 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 12513 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 12514 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 12515 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 12516 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 12517 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 12518 RECOMP_REGS_OUT(); 12519 } 12520 12521 void sub_3C005D3E(void) { 12522 int _fpu_cmp = 0; 12523 uint32_t _cf = 0; 12524 int _df = 1; 12525 uint32_t _flag_k = FK_NONE; 12526 uint32_t _flag_a = 0, _flag_b = 0; 12527 uint32_t _itail_tgt = 0; 12528 RECOMP_REGS_LOCALS 12529 RECOMP_ENTER(0x3C005D3Eu); 12530 12531 goto L_3C005D3E; 12532 L_3C005BCD: 12533 ecx = MEM32(eax + 0x4); /* 0x3C005BCD: mov ecx, dword ptr [eax + 4] */ 12534 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005BD0: mov dl, byte ptr [ecx + 0x10] */ 12535 /* test LO8(edx), LO8(edx) */ /* 0x3C005BD3: test dl, dl */ 12536 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12537 _cf = 0; 12538 _flag_k = FK_NARROW(FK_TEST, 24); 12539 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005D4D; /* 0x3C005BD5: jne 0x3c005d4d */ 12540 L_3C005BDB: 12541 edi = MEM32(ecx + 0x4); /* 0x3C005BDB: mov edi, dword ptr [ecx + 4] */ 12542 edx = MEM32(edi); /* 0x3C005BDE: mov edx, dword ptr [edi] */ 12543 /* cmp ecx, edx */ /* 0x3C005BE0: cmp ecx, edx */ 12544 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12546 _flag_k = FK_CMP; 12547 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CA9; /* 0x3C005BE2: jne 0x3c005ca9 */ 12548 L_3C005BE8: 12549 edx = MEM32(edi + 0x8); /* 0x3C005BE8: mov edx, dword ptr [edi + 8] */ 12550 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005BEB: cmp byte ptr [edx + 0x10], 0 */ 12551 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 12552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12553 _flag_k = FK_NARROW(FK_CMP, 24); 12554 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C0C; /* 0x3C005BEF: jne 0x3c005c0c */ 12555 L_3C005BF1: 12556 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF1: mov byte ptr [ecx + 0x10], bl */ 12557 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF4: mov byte ptr [edx + 0x10], bl */ 12558 ecx = MEM32(eax + 0x4); /* 0x3C005BF7: mov ecx, dword ptr [eax + 4] */ 12559 edx = MEM32(ecx + 0x4); /* 0x3C005BFA: mov edx, dword ptr [ecx + 4] */ 12560 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005BFD: mov byte ptr [edx + 0x10], 0 */ 12561 eax = MEM32(eax + 0x4); /* 0x3C005C01: mov eax, dword ptr [eax + 4] */ 12562 eax = MEM32(eax + 0x4); /* 0x3C005C04: mov eax, dword ptr [eax + 4] */ 12563 goto L_3C005D41; /* 0x3C005C07: jmp 0x3c005d41 */ 12564 L_3C005C0C: 12565 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3C005C0C: cmp eax, dword ptr [ecx + 8] */ 12566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 12567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12568 _flag_k = FK_CMP; 12569 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C4B; /* 0x3C005C0F: jne 0x3c005c4b */ 12570 L_3C005C11: 12571 eax = ecx; /* 0x3C005C11: mov eax, ecx */ 12572 ecx = MEM32(eax + 0x8); /* 0x3C005C13: mov ecx, dword ptr [eax + 8] */ 12573 edx = MEM32(ecx); /* 0x3C005C16: mov edx, dword ptr [ecx] */ 12574 MEM32(eax + 0x8) = edx; /* 0x3C005C18: mov dword ptr [eax + 8], edx */ 12575 edx = MEM32(ecx); /* 0x3C005C1B: mov edx, dword ptr [ecx] */ 12576 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005C1D: cmp edx, dword ptr [esi + 8] */ 12577 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12579 _flag_k = FK_CMP; 12580 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C25; /* 0x3C005C20: je 0x3c005c25 */ 12581 L_3C005C22: 12582 MEM32(edx + 0x4) = eax; /* 0x3C005C22: mov dword ptr [edx + 4], eax */ 12583 L_3C005C25: 12584 edx = MEM32(eax + 0x4); /* 0x3C005C25: mov edx, dword ptr [eax + 4] */ 12585 MEM32(ecx + 0x4) = edx; /* 0x3C005C28: mov dword ptr [ecx + 4], edx */ 12586 edx = MEM32(esi + 0x4); /* 0x3C005C2B: mov edx, dword ptr [esi + 4] */ 12587 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005C2E: cmp eax, dword ptr [edx + 4] */ 12588 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12590 _flag_k = FK_CMP; 12591 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C38; /* 0x3C005C31: jne 0x3c005c38 */ 12592 L_3C005C33: 12593 MEM32(edx + 0x4) = ecx; /* 0x3C005C33: mov dword ptr [edx + 4], ecx */ 12594 goto L_3C005C46; /* 0x3C005C36: jmp 0x3c005c46 */ 12595 L_3C005C38: 12596 edx = MEM32(eax + 0x4); /* 0x3C005C38: mov edx, dword ptr [eax + 4] */ 12597 /* cmp eax, MEM32(edx) */ /* 0x3C005C3B: cmp eax, dword ptr [edx] */ 12598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 12599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12600 _flag_k = FK_CMP; 12601 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C43; /* 0x3C005C3D: jne 0x3c005c43 */ 12602 L_3C005C3F: 12603 MEM32(edx) = ecx; /* 0x3C005C3F: mov dword ptr [edx], ecx */ 12604 goto L_3C005C46; /* 0x3C005C41: jmp 0x3c005c46 */ 12605 L_3C005C43: 12606 MEM32(edx + 0x8) = ecx; /* 0x3C005C43: mov dword ptr [edx + 8], ecx */ 12607 L_3C005C46: 12608 MEM32(ecx) = eax; /* 0x3C005C46: mov dword ptr [ecx], eax */ 12609 MEM32(eax + 0x4) = ecx; /* 0x3C005C48: mov dword ptr [eax + 4], ecx */ 12610 L_3C005C4B: 12611 ecx = MEM32(eax + 0x4); /* 0x3C005C4B: mov ecx, dword ptr [eax + 4] */ 12612 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005C4E: mov byte ptr [ecx + 0x10], bl */ 12613 edx = MEM32(eax + 0x4); /* 0x3C005C51: mov edx, dword ptr [eax + 4] */ 12614 ecx = MEM32(edx + 0x4); /* 0x3C005C54: mov ecx, dword ptr [edx + 4] */ 12615 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005C57: mov byte ptr [ecx + 0x10], 0 */ 12616 edx = MEM32(eax + 0x4); /* 0x3C005C5B: mov edx, dword ptr [eax + 4] */ 12617 ecx = MEM32(edx + 0x4); /* 0x3C005C5E: mov ecx, dword ptr [edx + 4] */ 12618 edx = MEM32(ecx); /* 0x3C005C61: mov edx, dword ptr [ecx] */ 12619 edi = MEM32(edx + 0x8); /* 0x3C005C63: mov edi, dword ptr [edx + 8] */ 12620 MEM32(ecx) = edi; /* 0x3C005C66: mov dword ptr [ecx], edi */ 12621 edi = MEM32(edx + 0x8); /* 0x3C005C68: mov edi, dword ptr [edx + 8] */ 12622 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005C6B: cmp edi, dword ptr [esi + 8] */ 12623 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12625 _flag_k = FK_CMP; 12626 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C73; /* 0x3C005C6E: je 0x3c005c73 */ 12627 L_3C005C70: 12628 MEM32(edi + 0x4) = ecx; /* 0x3C005C70: mov dword ptr [edi + 4], ecx */ 12629 L_3C005C73: 12630 edi = MEM32(ecx + 0x4); /* 0x3C005C73: mov edi, dword ptr [ecx + 4] */ 12631 MEM32(edx + 0x4) = edi; /* 0x3C005C76: mov dword ptr [edx + 4], edi */ 12632 edi = MEM32(esi + 0x4); /* 0x3C005C79: mov edi, dword ptr [esi + 4] */ 12633 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005C7C: cmp ecx, dword ptr [edi + 4] */ 12634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12636 _flag_k = FK_CMP; 12637 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C8C; /* 0x3C005C7F: jne 0x3c005c8c */ 12638 L_3C005C81: 12639 MEM32(edi + 0x4) = edx; /* 0x3C005C81: mov dword ptr [edi + 4], edx */ 12640 MEM32(edx + 0x8) = ecx; /* 0x3C005C84: mov dword ptr [edx + 8], ecx */ 12641 goto L_3C005D3E; /* 0x3C005C87: jmp 0x3c005d3e */ 12642 L_3C005C8C: 12643 edi = MEM32(ecx + 0x4); /* 0x3C005C8C: mov edi, dword ptr [ecx + 4] */ 12644 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005C8F: cmp ecx, dword ptr [edi + 8] */ 12645 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12647 _flag_k = FK_CMP; 12648 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C9F; /* 0x3C005C92: jne 0x3c005c9f */ 12649 L_3C005C94: 12650 MEM32(edi + 0x8) = edx; /* 0x3C005C94: mov dword ptr [edi + 8], edx */ 12651 MEM32(edx + 0x8) = ecx; /* 0x3C005C97: mov dword ptr [edx + 8], ecx */ 12652 goto L_3C005D3E; /* 0x3C005C9A: jmp 0x3c005d3e */ 12653 L_3C005C9F: 12654 MEM32(edi) = edx; /* 0x3C005C9F: mov dword ptr [edi], edx */ 12655 MEM32(edx + 0x8) = ecx; /* 0x3C005CA1: mov dword ptr [edx + 8], ecx */ 12656 goto L_3C005D3E; /* 0x3C005CA4: jmp 0x3c005d3e */ 12657 L_3C005CA9: 12658 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005CA9: cmp byte ptr [edx + 0x10], 0 */ 12659 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 12660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12661 _flag_k = FK_NARROW(FK_CMP, 24); 12662 RECOMP_BACKEDGE(); 12663 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005BF1; /* 0x3C005CAD: je 0x3c005bf1 */ 12664 L_3C005CB3: 12665 /* cmp eax, MEM32(ecx) */ /* 0x3C005CB3: cmp eax, dword ptr [ecx] */ 12666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 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_3C005CF3; /* 0x3C005CB5: jne 0x3c005cf3 */ 12670 L_3C005CB7: 12671 eax = ecx; /* 0x3C005CB7: mov eax, ecx */ 12672 ecx = MEM32(eax); /* 0x3C005CB9: mov ecx, dword ptr [eax] */ 12673 edx = MEM32(ecx + 0x8); /* 0x3C005CBB: mov edx, dword ptr [ecx + 8] */ 12674 MEM32(eax) = edx; /* 0x3C005CBE: mov dword ptr [eax], edx */ 12675 edx = MEM32(ecx + 0x8); /* 0x3C005CC0: mov edx, dword ptr [ecx + 8] */ 12676 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005CC3: cmp edx, dword ptr [esi + 8] */ 12677 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12679 _flag_k = FK_CMP; 12680 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005CCB; /* 0x3C005CC6: je 0x3c005ccb */ 12681 L_3C005CC8: 12682 MEM32(edx + 0x4) = eax; /* 0x3C005CC8: mov dword ptr [edx + 4], eax */ 12683 L_3C005CCB: 12684 edx = MEM32(eax + 0x4); /* 0x3C005CCB: mov edx, dword ptr [eax + 4] */ 12685 MEM32(ecx + 0x4) = edx; /* 0x3C005CCE: mov dword ptr [ecx + 4], edx */ 12686 edx = MEM32(esi + 0x4); /* 0x3C005CD1: mov edx, dword ptr [esi + 4] */ 12687 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005CD4: cmp eax, dword ptr [edx + 4] */ 12688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12690 _flag_k = FK_CMP; 12691 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CDE; /* 0x3C005CD7: jne 0x3c005cde */ 12692 L_3C005CD9: 12693 MEM32(edx + 0x4) = ecx; /* 0x3C005CD9: mov dword ptr [edx + 4], ecx */ 12694 goto L_3C005CED; /* 0x3C005CDC: jmp 0x3c005ced */ 12695 L_3C005CDE: 12696 edx = MEM32(eax + 0x4); /* 0x3C005CDE: mov edx, dword ptr [eax + 4] */ 12697 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3C005CE1: cmp eax, dword ptr [edx + 8] */ 12698 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 12699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12700 _flag_k = FK_CMP; 12701 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CEB; /* 0x3C005CE4: jne 0x3c005ceb */ 12702 L_3C005CE6: 12703 MEM32(edx + 0x8) = ecx; /* 0x3C005CE6: mov dword ptr [edx + 8], ecx */ 12704 goto L_3C005CED; /* 0x3C005CE9: jmp 0x3c005ced */ 12705 L_3C005CEB: 12706 MEM32(edx) = ecx; /* 0x3C005CEB: mov dword ptr [edx], ecx */ 12707 L_3C005CED: 12708 MEM32(ecx + 0x8) = eax; /* 0x3C005CED: mov dword ptr [ecx + 8], eax */ 12709 MEM32(eax + 0x4) = ecx; /* 0x3C005CF0: mov dword ptr [eax + 4], ecx */ 12710 L_3C005CF3: 12711 ecx = MEM32(eax + 0x4); /* 0x3C005CF3: mov ecx, dword ptr [eax + 4] */ 12712 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005CF6: mov byte ptr [ecx + 0x10], bl */ 12713 edx = MEM32(eax + 0x4); /* 0x3C005CF9: mov edx, dword ptr [eax + 4] */ 12714 ecx = MEM32(edx + 0x4); /* 0x3C005CFC: mov ecx, dword ptr [edx + 4] */ 12715 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005CFF: mov byte ptr [ecx + 0x10], 0 */ 12716 edx = MEM32(eax + 0x4); /* 0x3C005D03: mov edx, dword ptr [eax + 4] */ 12717 ecx = MEM32(edx + 0x4); /* 0x3C005D06: mov ecx, dword ptr [edx + 4] */ 12718 edx = MEM32(ecx + 0x8); /* 0x3C005D09: mov edx, dword ptr [ecx + 8] */ 12719 edi = MEM32(edx); /* 0x3C005D0C: mov edi, dword ptr [edx] */ 12720 MEM32(ecx + 0x8) = edi; /* 0x3C005D0E: mov dword ptr [ecx + 8], edi */ 12721 edi = MEM32(edx); /* 0x3C005D11: mov edi, dword ptr [edx] */ 12722 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005D13: cmp edi, dword ptr [esi + 8] */ 12723 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12725 _flag_k = FK_CMP; 12726 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D1B; /* 0x3C005D16: je 0x3c005d1b */ 12727 L_3C005D18: 12728 MEM32(edi + 0x4) = ecx; /* 0x3C005D18: mov dword ptr [edi + 4], ecx */ 12729 L_3C005D1B: 12730 edi = MEM32(ecx + 0x4); /* 0x3C005D1B: mov edi, dword ptr [ecx + 4] */ 12731 MEM32(edx + 0x4) = edi; /* 0x3C005D1E: mov dword ptr [edx + 4], edi */ 12732 edi = MEM32(esi + 0x4); /* 0x3C005D21: mov edi, dword ptr [esi + 4] */ 12733 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005D24: cmp ecx, dword ptr [edi + 4] */ 12734 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12736 _flag_k = FK_CMP; 12737 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D2E; /* 0x3C005D27: jne 0x3c005d2e */ 12738 L_3C005D29: 12739 MEM32(edi + 0x4) = edx; /* 0x3C005D29: mov dword ptr [edi + 4], edx */ 12740 goto L_3C005D3C; /* 0x3C005D2C: jmp 0x3c005d3c */ 12741 L_3C005D2E: 12742 edi = MEM32(ecx + 0x4); /* 0x3C005D2E: mov edi, dword ptr [ecx + 4] */ 12743 /* cmp ecx, MEM32(edi) */ /* 0x3C005D31: cmp ecx, dword ptr [edi] */ 12744 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 12745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12746 _flag_k = FK_CMP; 12747 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D39; /* 0x3C005D33: jne 0x3c005d39 */ 12748 L_3C005D35: 12749 MEM32(edi) = edx; /* 0x3C005D35: mov dword ptr [edi], edx */ 12750 goto L_3C005D3C; /* 0x3C005D37: jmp 0x3c005d3c */ 12751 L_3C005D39: 12752 MEM32(edi + 0x8) = edx; /* 0x3C005D39: mov dword ptr [edi + 8], edx */ 12753 L_3C005D3C: 12754 MEM32(edx) = ecx; /* 0x3C005D3C: mov dword ptr [edx], ecx */ 12755 L_3C005D3E: 12756 MEM32(ecx + 0x4) = edx; /* 0x3C005D3E: mov dword ptr [ecx + 4], edx */ 12757 L_3C005D41: 12758 ecx = MEM32(esi + 0x4); /* 0x3C005D41: mov ecx, dword ptr [esi + 4] */ 12759 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C005D44: cmp eax, dword ptr [ecx + 4] */ 12760 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12762 _flag_k = FK_CMP; 12763 RECOMP_BACKEDGE(); 12764 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BCD; /* 0x3C005D47: jne 0x3c005bcd */ 12765 L_3C005D4D: 12766 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 12767 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 12768 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 12769 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 12770 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 12771 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 12772 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 12773 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 12774 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 12775 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 12776 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 12777 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 12778 RECOMP_REGS_OUT(); 12779 } 12780 12781 void sub_3C005D41(void) { 12782 int _fpu_cmp = 0; 12783 uint32_t _cf = 0; 12784 int _df = 1; 12785 uint32_t _flag_k = FK_NONE; 12786 uint32_t _flag_a = 0, _flag_b = 0; 12787 uint32_t _itail_tgt = 0; 12788 RECOMP_REGS_LOCALS 12789 RECOMP_ENTER(0x3C005D41u); 12790 12791 goto L_3C005D41; 12792 L_3C005BCD: 12793 ecx = MEM32(eax + 0x4); /* 0x3C005BCD: mov ecx, dword ptr [eax + 4] */ 12794 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x3C005BD0: mov dl, byte ptr [ecx + 0x10] */ 12795 /* test LO8(edx), LO8(edx) */ /* 0x3C005BD3: test dl, dl */ 12796 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12797 _cf = 0; 12798 _flag_k = FK_NARROW(FK_TEST, 24); 12799 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005D4D; /* 0x3C005BD5: jne 0x3c005d4d */ 12800 L_3C005BDB: 12801 edi = MEM32(ecx + 0x4); /* 0x3C005BDB: mov edi, dword ptr [ecx + 4] */ 12802 edx = MEM32(edi); /* 0x3C005BDE: mov edx, dword ptr [edi] */ 12803 /* cmp ecx, edx */ /* 0x3C005BE0: cmp ecx, edx */ 12804 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12806 _flag_k = FK_CMP; 12807 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CA9; /* 0x3C005BE2: jne 0x3c005ca9 */ 12808 L_3C005BE8: 12809 edx = MEM32(edi + 0x8); /* 0x3C005BE8: mov edx, dword ptr [edi + 8] */ 12810 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005BEB: cmp byte ptr [edx + 0x10], 0 */ 12811 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 12812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12813 _flag_k = FK_NARROW(FK_CMP, 24); 12814 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C0C; /* 0x3C005BEF: jne 0x3c005c0c */ 12815 L_3C005BF1: 12816 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF1: mov byte ptr [ecx + 0x10], bl */ 12817 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005BF4: mov byte ptr [edx + 0x10], bl */ 12818 ecx = MEM32(eax + 0x4); /* 0x3C005BF7: mov ecx, dword ptr [eax + 4] */ 12819 edx = MEM32(ecx + 0x4); /* 0x3C005BFA: mov edx, dword ptr [ecx + 4] */ 12820 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x3C005BFD: mov byte ptr [edx + 0x10], 0 */ 12821 eax = MEM32(eax + 0x4); /* 0x3C005C01: mov eax, dword ptr [eax + 4] */ 12822 eax = MEM32(eax + 0x4); /* 0x3C005C04: mov eax, dword ptr [eax + 4] */ 12823 goto L_3C005D41; /* 0x3C005C07: jmp 0x3c005d41 */ 12824 L_3C005C0C: 12825 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3C005C0C: cmp eax, dword ptr [ecx + 8] */ 12826 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 12827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12828 _flag_k = FK_CMP; 12829 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C4B; /* 0x3C005C0F: jne 0x3c005c4b */ 12830 L_3C005C11: 12831 eax = ecx; /* 0x3C005C11: mov eax, ecx */ 12832 ecx = MEM32(eax + 0x8); /* 0x3C005C13: mov ecx, dword ptr [eax + 8] */ 12833 edx = MEM32(ecx); /* 0x3C005C16: mov edx, dword ptr [ecx] */ 12834 MEM32(eax + 0x8) = edx; /* 0x3C005C18: mov dword ptr [eax + 8], edx */ 12835 edx = MEM32(ecx); /* 0x3C005C1B: mov edx, dword ptr [ecx] */ 12836 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005C1D: cmp edx, dword ptr [esi + 8] */ 12837 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12839 _flag_k = FK_CMP; 12840 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C25; /* 0x3C005C20: je 0x3c005c25 */ 12841 L_3C005C22: 12842 MEM32(edx + 0x4) = eax; /* 0x3C005C22: mov dword ptr [edx + 4], eax */ 12843 L_3C005C25: 12844 edx = MEM32(eax + 0x4); /* 0x3C005C25: mov edx, dword ptr [eax + 4] */ 12845 MEM32(ecx + 0x4) = edx; /* 0x3C005C28: mov dword ptr [ecx + 4], edx */ 12846 edx = MEM32(esi + 0x4); /* 0x3C005C2B: mov edx, dword ptr [esi + 4] */ 12847 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005C2E: cmp eax, dword ptr [edx + 4] */ 12848 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12850 _flag_k = FK_CMP; 12851 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C38; /* 0x3C005C31: jne 0x3c005c38 */ 12852 L_3C005C33: 12853 MEM32(edx + 0x4) = ecx; /* 0x3C005C33: mov dword ptr [edx + 4], ecx */ 12854 goto L_3C005C46; /* 0x3C005C36: jmp 0x3c005c46 */ 12855 L_3C005C38: 12856 edx = MEM32(eax + 0x4); /* 0x3C005C38: mov edx, dword ptr [eax + 4] */ 12857 /* cmp eax, MEM32(edx) */ /* 0x3C005C3B: cmp eax, dword ptr [edx] */ 12858 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 12859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12860 _flag_k = FK_CMP; 12861 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C43; /* 0x3C005C3D: jne 0x3c005c43 */ 12862 L_3C005C3F: 12863 MEM32(edx) = ecx; /* 0x3C005C3F: mov dword ptr [edx], ecx */ 12864 goto L_3C005C46; /* 0x3C005C41: jmp 0x3c005c46 */ 12865 L_3C005C43: 12866 MEM32(edx + 0x8) = ecx; /* 0x3C005C43: mov dword ptr [edx + 8], ecx */ 12867 L_3C005C46: 12868 MEM32(ecx) = eax; /* 0x3C005C46: mov dword ptr [ecx], eax */ 12869 MEM32(eax + 0x4) = ecx; /* 0x3C005C48: mov dword ptr [eax + 4], ecx */ 12870 L_3C005C4B: 12871 ecx = MEM32(eax + 0x4); /* 0x3C005C4B: mov ecx, dword ptr [eax + 4] */ 12872 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005C4E: mov byte ptr [ecx + 0x10], bl */ 12873 edx = MEM32(eax + 0x4); /* 0x3C005C51: mov edx, dword ptr [eax + 4] */ 12874 ecx = MEM32(edx + 0x4); /* 0x3C005C54: mov ecx, dword ptr [edx + 4] */ 12875 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005C57: mov byte ptr [ecx + 0x10], 0 */ 12876 edx = MEM32(eax + 0x4); /* 0x3C005C5B: mov edx, dword ptr [eax + 4] */ 12877 ecx = MEM32(edx + 0x4); /* 0x3C005C5E: mov ecx, dword ptr [edx + 4] */ 12878 edx = MEM32(ecx); /* 0x3C005C61: mov edx, dword ptr [ecx] */ 12879 edi = MEM32(edx + 0x8); /* 0x3C005C63: mov edi, dword ptr [edx + 8] */ 12880 MEM32(ecx) = edi; /* 0x3C005C66: mov dword ptr [ecx], edi */ 12881 edi = MEM32(edx + 0x8); /* 0x3C005C68: mov edi, dword ptr [edx + 8] */ 12882 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005C6B: cmp edi, dword ptr [esi + 8] */ 12883 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12885 _flag_k = FK_CMP; 12886 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005C73; /* 0x3C005C6E: je 0x3c005c73 */ 12887 L_3C005C70: 12888 MEM32(edi + 0x4) = ecx; /* 0x3C005C70: mov dword ptr [edi + 4], ecx */ 12889 L_3C005C73: 12890 edi = MEM32(ecx + 0x4); /* 0x3C005C73: mov edi, dword ptr [ecx + 4] */ 12891 MEM32(edx + 0x4) = edi; /* 0x3C005C76: mov dword ptr [edx + 4], edi */ 12892 edi = MEM32(esi + 0x4); /* 0x3C005C79: mov edi, dword ptr [esi + 4] */ 12893 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005C7C: cmp ecx, dword ptr [edi + 4] */ 12894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12896 _flag_k = FK_CMP; 12897 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C8C; /* 0x3C005C7F: jne 0x3c005c8c */ 12898 L_3C005C81: 12899 MEM32(edi + 0x4) = edx; /* 0x3C005C81: mov dword ptr [edi + 4], edx */ 12900 MEM32(edx + 0x8) = ecx; /* 0x3C005C84: mov dword ptr [edx + 8], ecx */ 12901 goto L_3C005D3E; /* 0x3C005C87: jmp 0x3c005d3e */ 12902 L_3C005C8C: 12903 edi = MEM32(ecx + 0x4); /* 0x3C005C8C: mov edi, dword ptr [ecx + 4] */ 12904 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3C005C8F: cmp ecx, dword ptr [edi + 8] */ 12905 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12907 _flag_k = FK_CMP; 12908 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005C9F; /* 0x3C005C92: jne 0x3c005c9f */ 12909 L_3C005C94: 12910 MEM32(edi + 0x8) = edx; /* 0x3C005C94: mov dword ptr [edi + 8], edx */ 12911 MEM32(edx + 0x8) = ecx; /* 0x3C005C97: mov dword ptr [edx + 8], ecx */ 12912 goto L_3C005D3E; /* 0x3C005C9A: jmp 0x3c005d3e */ 12913 L_3C005C9F: 12914 MEM32(edi) = edx; /* 0x3C005C9F: mov dword ptr [edi], edx */ 12915 MEM32(edx + 0x8) = ecx; /* 0x3C005CA1: mov dword ptr [edx + 8], ecx */ 12916 goto L_3C005D3E; /* 0x3C005CA4: jmp 0x3c005d3e */ 12917 L_3C005CA9: 12918 /* cmp MEM8(edx + 0x10), 0 */ /* 0x3C005CA9: cmp byte ptr [edx + 0x10], 0 */ 12919 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 12920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12921 _flag_k = FK_NARROW(FK_CMP, 24); 12922 RECOMP_BACKEDGE(); 12923 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005BF1; /* 0x3C005CAD: je 0x3c005bf1 */ 12924 L_3C005CB3: 12925 /* cmp eax, MEM32(ecx) */ /* 0x3C005CB3: cmp eax, dword ptr [ecx] */ 12926 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 12927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12928 _flag_k = FK_CMP; 12929 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CF3; /* 0x3C005CB5: jne 0x3c005cf3 */ 12930 L_3C005CB7: 12931 eax = ecx; /* 0x3C005CB7: mov eax, ecx */ 12932 ecx = MEM32(eax); /* 0x3C005CB9: mov ecx, dword ptr [eax] */ 12933 edx = MEM32(ecx + 0x8); /* 0x3C005CBB: mov edx, dword ptr [ecx + 8] */ 12934 MEM32(eax) = edx; /* 0x3C005CBE: mov dword ptr [eax], edx */ 12935 edx = MEM32(ecx + 0x8); /* 0x3C005CC0: mov edx, dword ptr [ecx + 8] */ 12936 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3C005CC3: cmp edx, dword ptr [esi + 8] */ 12937 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12939 _flag_k = FK_CMP; 12940 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005CCB; /* 0x3C005CC6: je 0x3c005ccb */ 12941 L_3C005CC8: 12942 MEM32(edx + 0x4) = eax; /* 0x3C005CC8: mov dword ptr [edx + 4], eax */ 12943 L_3C005CCB: 12944 edx = MEM32(eax + 0x4); /* 0x3C005CCB: mov edx, dword ptr [eax + 4] */ 12945 MEM32(ecx + 0x4) = edx; /* 0x3C005CCE: mov dword ptr [ecx + 4], edx */ 12946 edx = MEM32(esi + 0x4); /* 0x3C005CD1: mov edx, dword ptr [esi + 4] */ 12947 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3C005CD4: cmp eax, dword ptr [edx + 4] */ 12948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12950 _flag_k = FK_CMP; 12951 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CDE; /* 0x3C005CD7: jne 0x3c005cde */ 12952 L_3C005CD9: 12953 MEM32(edx + 0x4) = ecx; /* 0x3C005CD9: mov dword ptr [edx + 4], ecx */ 12954 goto L_3C005CED; /* 0x3C005CDC: jmp 0x3c005ced */ 12955 L_3C005CDE: 12956 edx = MEM32(eax + 0x4); /* 0x3C005CDE: mov edx, dword ptr [eax + 4] */ 12957 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3C005CE1: cmp eax, dword ptr [edx + 8] */ 12958 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 12959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12960 _flag_k = FK_CMP; 12961 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005CEB; /* 0x3C005CE4: jne 0x3c005ceb */ 12962 L_3C005CE6: 12963 MEM32(edx + 0x8) = ecx; /* 0x3C005CE6: mov dword ptr [edx + 8], ecx */ 12964 goto L_3C005CED; /* 0x3C005CE9: jmp 0x3c005ced */ 12965 L_3C005CEB: 12966 MEM32(edx) = ecx; /* 0x3C005CEB: mov dword ptr [edx], ecx */ 12967 L_3C005CED: 12968 MEM32(ecx + 0x8) = eax; /* 0x3C005CED: mov dword ptr [ecx + 8], eax */ 12969 MEM32(eax + 0x4) = ecx; /* 0x3C005CF0: mov dword ptr [eax + 4], ecx */ 12970 L_3C005CF3: 12971 ecx = MEM32(eax + 0x4); /* 0x3C005CF3: mov ecx, dword ptr [eax + 4] */ 12972 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005CF6: mov byte ptr [ecx + 0x10], bl */ 12973 edx = MEM32(eax + 0x4); /* 0x3C005CF9: mov edx, dword ptr [eax + 4] */ 12974 ecx = MEM32(edx + 0x4); /* 0x3C005CFC: mov ecx, dword ptr [edx + 4] */ 12975 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x3C005CFF: mov byte ptr [ecx + 0x10], 0 */ 12976 edx = MEM32(eax + 0x4); /* 0x3C005D03: mov edx, dword ptr [eax + 4] */ 12977 ecx = MEM32(edx + 0x4); /* 0x3C005D06: mov ecx, dword ptr [edx + 4] */ 12978 edx = MEM32(ecx + 0x8); /* 0x3C005D09: mov edx, dword ptr [ecx + 8] */ 12979 edi = MEM32(edx); /* 0x3C005D0C: mov edi, dword ptr [edx] */ 12980 MEM32(ecx + 0x8) = edi; /* 0x3C005D0E: mov dword ptr [ecx + 8], edi */ 12981 edi = MEM32(edx); /* 0x3C005D11: mov edi, dword ptr [edx] */ 12982 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3C005D13: cmp edi, dword ptr [esi + 8] */ 12983 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12985 _flag_k = FK_CMP; 12986 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D1B; /* 0x3C005D16: je 0x3c005d1b */ 12987 L_3C005D18: 12988 MEM32(edi + 0x4) = ecx; /* 0x3C005D18: mov dword ptr [edi + 4], ecx */ 12989 L_3C005D1B: 12990 edi = MEM32(ecx + 0x4); /* 0x3C005D1B: mov edi, dword ptr [ecx + 4] */ 12991 MEM32(edx + 0x4) = edi; /* 0x3C005D1E: mov dword ptr [edx + 4], edi */ 12992 edi = MEM32(esi + 0x4); /* 0x3C005D21: mov edi, dword ptr [esi + 4] */ 12993 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3C005D24: cmp ecx, dword ptr [edi + 4] */ 12994 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12996 _flag_k = FK_CMP; 12997 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D2E; /* 0x3C005D27: jne 0x3c005d2e */ 12998 L_3C005D29: 12999 MEM32(edi + 0x4) = edx; /* 0x3C005D29: mov dword ptr [edi + 4], edx */ 13000 goto L_3C005D3C; /* 0x3C005D2C: jmp 0x3c005d3c */ 13001 L_3C005D2E: 13002 edi = MEM32(ecx + 0x4); /* 0x3C005D2E: mov edi, dword ptr [ecx + 4] */ 13003 /* cmp ecx, MEM32(edi) */ /* 0x3C005D31: cmp ecx, dword ptr [edi] */ 13004 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 13005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13006 _flag_k = FK_CMP; 13007 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D39; /* 0x3C005D33: jne 0x3c005d39 */ 13008 L_3C005D35: 13009 MEM32(edi) = edx; /* 0x3C005D35: mov dword ptr [edi], edx */ 13010 goto L_3C005D3C; /* 0x3C005D37: jmp 0x3c005d3c */ 13011 L_3C005D39: 13012 MEM32(edi + 0x8) = edx; /* 0x3C005D39: mov dword ptr [edi + 8], edx */ 13013 L_3C005D3C: 13014 MEM32(edx) = ecx; /* 0x3C005D3C: mov dword ptr [edx], ecx */ 13015 L_3C005D3E: 13016 MEM32(ecx + 0x4) = edx; /* 0x3C005D3E: mov dword ptr [ecx + 4], edx */ 13017 L_3C005D41: 13018 ecx = MEM32(esi + 0x4); /* 0x3C005D41: mov ecx, dword ptr [esi + 4] */ 13019 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3C005D44: cmp eax, dword ptr [ecx + 4] */ 13020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13022 _flag_k = FK_CMP; 13023 RECOMP_BACKEDGE(); 13024 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005BCD; /* 0x3C005D47: jne 0x3c005bcd */ 13025 L_3C005D4D: 13026 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 13027 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 13028 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 13029 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 13030 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 13031 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 13032 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 13033 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 13034 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 13035 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 13036 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 13037 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 13038 RECOMP_REGS_OUT(); 13039 } 13040 13041 void sub_3C005D4D(void) { 13042 int _fpu_cmp = 0; 13043 uint32_t _cf = 0; 13044 int _df = 1; 13045 uint32_t _flag_k = FK_NONE; 13046 uint32_t _flag_a = 0, _flag_b = 0; 13047 uint32_t _itail_tgt = 0; 13048 RECOMP_REGS_LOCALS 13049 RECOMP_ENTER(0x3C005D4Du); 13050 13051 L_3C005D4D: 13052 edx = MEM32(esi + 0x4); /* 0x3C005D4D: mov edx, dword ptr [esi + 4] */ 13053 eax = MEM32(edx + 0x4); /* 0x3C005D50: mov eax, dword ptr [edx + 4] */ 13054 ecx = MEM32(ebp + (-0x4)); /* 0x3C005D53: mov ecx, dword ptr [ebp - 4] */ 13055 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3C005D56: mov byte ptr [eax + 0x10], bl */ 13056 eax = MEM32(ebp + 0x8); /* 0x3C005D59: mov eax, dword ptr [ebp + 8] */ 13057 edi = POP32_VAL(esp); /* 0x3C005D5C: pop edi */ 13058 esi = POP32_VAL(esp); /* 0x3C005D5D: pop esi */ 13059 MEM32(eax) = ecx; /* 0x3C005D5E: mov dword ptr [eax], ecx */ 13060 ebx = POP32_VAL(esp); /* 0x3C005D60: pop ebx */ 13061 esp = ebp; /* 0x3C005D61: mov esp, ebp */ 13062 ebp = POP32_VAL(esp); /* 0x3C005D63: pop ebp */ 13063 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C005D64: ret 0x10 */ 13064 RECOMP_REGS_OUT(); 13065 } 13066 13067 void sub_3C005D70(void) { 13068 int _fpu_cmp = 0; 13069 uint32_t _cf = 0; 13070 int _df = 1; 13071 uint32_t _flag_k = FK_NONE; 13072 uint32_t _flag_a = 0, _flag_b = 0; 13073 uint32_t _itail_tgt = 0; 13074 RECOMP_REGS_LOCALS 13075 RECOMP_ENTER(0x3C005D70u); 13076 13077 L_3C005D70: 13078 PUSH32(esp, ebp); /* 0x3C005D70: push ebp */ 13079 ebp = esp; /* 0x3C005D71: mov ebp, esp */ 13080 ecx = MEM32(ebp + 0x8); /* 0x3C005D73: mov ecx, dword ptr [ebp + 8] */ 13081 edx = MEM32(ebp + 0xC); /* 0x3C005D76: mov edx, dword ptr [ebp + 0xc] */ 13082 /* cmp ecx, edx */ /* 0x3C005D79: cmp ecx, edx */ 13083 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13085 _flag_k = FK_CMP; 13086 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005D98; /* 0x3C005D7B: je 0x3c005d98 */ 13087 L_3C005D7D: 13088 eax = MEM32(ebp + 0x10); /* 0x3C005D7D: mov eax, dword ptr [ebp + 0x10] */ 13089 PUSH32(esp, esi); /* 0x3C005D80: push esi */ 13090 L_3C005D81: 13091 /* test eax, eax */ /* 0x3C005D81: test eax, eax */ 13092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13093 _cf = 0; 13094 _flag_k = FK_TEST; 13095 if (TEST_Z(_flag_a, _flag_b)) goto L_3C005D89; /* 0x3C005D83: je 0x3c005d89 */ 13096 L_3C005D85: 13097 esi = MEM32(ecx); /* 0x3C005D85: mov esi, dword ptr [ecx] */ 13098 MEM32(eax) = esi; /* 0x3C005D87: mov dword ptr [eax], esi */ 13099 L_3C005D89: 13100 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 13101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13102 ecx = ecx + 4; /* 0x3C005D89: add ecx, 4 */ 13103 _flag_k = FK_ADD; 13104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 13105 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13106 eax = eax + 4; /* 0x3C005D8C: add eax, 4 */ 13107 _flag_k = FK_ADD; 13108 /* cmp ecx, edx */ /* 0x3C005D8F: cmp ecx, edx */ 13109 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13111 _flag_k = FK_CMP; 13112 RECOMP_BACKEDGE(); 13113 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005D81; /* 0x3C005D91: jne 0x3c005d81 */ 13114 L_3C005D93: 13115 esi = POP32_VAL(esp); /* 0x3C005D93: pop esi */ 13116 ebp = POP32_VAL(esp); /* 0x3C005D94: pop ebp */ 13117 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C005D95: ret 0xc */ 13118 L_3C005D98: 13119 eax = MEM32(ebp + 0x10); /* 0x3C005D98: mov eax, dword ptr [ebp + 0x10] */ 13120 ebp = POP32_VAL(esp); /* 0x3C005D9B: pop ebp */ 13121 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C005D9C: ret 0xc */ 13122 RECOMP_REGS_OUT(); 13123 } 13124 13125 void sub_3C005DA0(void) { 13126 int _fpu_cmp = 0; 13127 uint32_t _cf = 0; 13128 int _df = 1; 13129 uint32_t _flag_k = FK_NONE; 13130 uint32_t _flag_a = 0, _flag_b = 0; 13131 uint32_t _itail_tgt = 0; 13132 RECOMP_REGS_LOCALS 13133 RECOMP_ENTER(0x3C005DA0u); 13134 13135 L_3C005DA0: 13136 PUSH32(esp, ebp); /* 0x3C005DA0: push ebp */ 13137 ebp = esp; /* 0x3C005DA1: mov ebp, esp */ 13138 eax = MEM32(ecx + 0x4); /* 0x3C005DA3: mov eax, dword ptr [ecx + 4] */ 13139 edx = MEM32(eax + 0x4); /* 0x3C005DA6: mov edx, dword ptr [eax + 4] */ 13140 ecx = MEM32(ecx + 0x8); /* 0x3C005DA9: mov ecx, dword ptr [ecx + 8] */ 13141 /* cmp edx, ecx */ /* 0x3C005DAC: cmp edx, ecx */ 13142 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13144 _flag_k = FK_CMP; 13145 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005DC9; /* 0x3C005DAE: je 0x3c005dc9 */ 13146 L_3C005DB0: 13147 PUSH32(esp, esi); /* 0x3C005DB0: push esi */ 13148 esi = MEM32(ebp + 0x8); /* 0x3C005DB1: mov esi, dword ptr [ebp + 8] */ 13149 esi = MEM32(esi); /* 0x3C005DB4: mov esi, dword ptr [esi] */ 13150 L_3C005DB6: 13151 /* cmp MEM32(edx + 0xC), esi */ /* 0x3C005DB6: cmp dword ptr [edx + 0xc], esi */ 13152 _flag_a = (uint32_t)(MEM32(edx + 0xC)); _flag_b = (uint32_t)(esi); 13153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13154 _flag_k = FK_CMP; 13155 if (CMP_AE(_flag_a, _flag_b)) goto L_3C005DC0; /* 0x3C005DB9: jae 0x3c005dc0 */ 13156 L_3C005DBB: 13157 edx = MEM32(edx + 0x8); /* 0x3C005DBB: mov edx, dword ptr [edx + 8] */ 13158 goto L_3C005DC4; /* 0x3C005DBE: jmp 0x3c005dc4 */ 13159 L_3C005DC0: 13160 eax = edx; /* 0x3C005DC0: mov eax, edx */ 13161 edx = MEM32(edx); /* 0x3C005DC2: mov edx, dword ptr [edx] */ 13162 L_3C005DC4: 13163 /* cmp edx, ecx */ /* 0x3C005DC4: cmp edx, ecx */ 13164 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13166 _flag_k = FK_CMP; 13167 RECOMP_BACKEDGE(); 13168 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005DB6; /* 0x3C005DC6: jne 0x3c005db6 */ 13169 L_3C005DC8: 13170 esi = POP32_VAL(esp); /* 0x3C005DC8: pop esi */ 13171 L_3C005DC9: 13172 ebp = POP32_VAL(esp); /* 0x3C005DC9: pop ebp */ 13173 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C005DCA: ret 4 */ 13174 RECOMP_REGS_OUT(); 13175 } 13176 13177 void sub_3C005DD0(void) { 13178 int _fpu_cmp = 0; 13179 uint32_t _cf = 0; 13180 int _df = 1; 13181 uint32_t _flag_k = FK_NONE; 13182 uint32_t _flag_a = 0, _flag_b = 0; 13183 uint32_t _itail_tgt = 0; 13184 RECOMP_REGS_LOCALS 13185 RECOMP_ENTER(0x3C005DD0u); 13186 13187 L_3C005DD0: 13188 PUSH32(esp, ebp); /* 0x3C005DD0: push ebp */ 13189 ebp = esp; /* 0x3C005DD1: mov ebp, esp */ 13190 edx = MEM32(ebp + 0x8); /* 0x3C005DD3: mov edx, dword ptr [ebp + 8] */ 13191 eax = MEM32(edx + 0x8); /* 0x3C005DD6: mov eax, dword ptr [edx + 8] */ 13192 PUSH32(esp, esi); /* 0x3C005DD9: push esi */ 13193 esi = MEM32(eax); /* 0x3C005DDA: mov esi, dword ptr [eax] */ 13194 MEM32(edx + 0x8) = esi; /* 0x3C005DDC: mov dword ptr [edx + 8], esi */ 13195 esi = MEM32(eax); /* 0x3C005DDF: mov esi, dword ptr [eax] */ 13196 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x3C005DE1: cmp esi, dword ptr [ecx + 8] */ 13197 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 13198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13199 _flag_k = FK_CMP; 13200 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005DE9; /* 0x3C005DE4: je 0x3c005de9 */ 13201 L_3C005DE6: 13202 MEM32(esi + 0x4) = edx; /* 0x3C005DE6: mov dword ptr [esi + 4], edx */ 13203 L_3C005DE9: 13204 esi = MEM32(edx + 0x4); /* 0x3C005DE9: mov esi, dword ptr [edx + 4] */ 13205 MEM32(eax + 0x4) = esi; /* 0x3C005DEC: mov dword ptr [eax + 4], esi */ 13206 ecx = MEM32(ecx + 0x4); /* 0x3C005DEF: mov ecx, dword ptr [ecx + 4] */ 13207 /* cmp edx, MEM32(ecx + 0x4) */ /* 0x3C005DF2: cmp edx, dword ptr [ecx + 4] */ 13208 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13210 _flag_k = FK_CMP; 13211 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005E04; /* 0x3C005DF5: jne 0x3c005e04 */ 13212 L_3C005DF7: 13213 MEM32(ecx + 0x4) = eax; /* 0x3C005DF7: mov dword ptr [ecx + 4], eax */ 13214 MEM32(eax) = edx; /* 0x3C005DFA: mov dword ptr [eax], edx */ 13215 MEM32(edx + 0x4) = eax; /* 0x3C005DFC: mov dword ptr [edx + 4], eax */ 13216 esi = POP32_VAL(esp); /* 0x3C005DFF: pop esi */ 13217 ebp = POP32_VAL(esp); /* 0x3C005E00: pop ebp */ 13218 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C005E01: ret 4 */ 13219 L_3C005E04: 13220 ecx = MEM32(edx + 0x4); /* 0x3C005E04: mov ecx, dword ptr [edx + 4] */ 13221 /* cmp edx, MEM32(ecx) */ /* 0x3C005E07: cmp edx, dword ptr [ecx] */ 13222 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx)); 13223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13224 _flag_k = FK_CMP; 13225 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005E17; /* 0x3C005E09: jne 0x3c005e17 */ 13226 L_3C005E0B: 13227 MEM32(ecx) = eax; /* 0x3C005E0B: mov dword ptr [ecx], eax */ 13228 MEM32(eax) = edx; /* 0x3C005E0D: mov dword ptr [eax], edx */ 13229 MEM32(edx + 0x4) = eax; /* 0x3C005E0F: mov dword ptr [edx + 4], eax */ 13230 esi = POP32_VAL(esp); /* 0x3C005E12: pop esi */ 13231 ebp = POP32_VAL(esp); /* 0x3C005E13: pop ebp */ 13232 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C005E14: ret 4 */ 13233 L_3C005E17: 13234 MEM32(ecx + 0x8) = eax; /* 0x3C005E17: mov dword ptr [ecx + 8], eax */ 13235 MEM32(eax) = edx; /* 0x3C005E1A: mov dword ptr [eax], edx */ 13236 MEM32(edx + 0x4) = eax; /* 0x3C005E1C: mov dword ptr [edx + 4], eax */ 13237 esi = POP32_VAL(esp); /* 0x3C005E1F: pop esi */ 13238 ebp = POP32_VAL(esp); /* 0x3C005E20: pop ebp */ 13239 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C005E21: ret 4 */ 13240 RECOMP_REGS_OUT(); 13241 } 13242 13243 void sub_3C005E30(void) { 13244 int _fpu_cmp = 0; 13245 uint32_t _cf = 0; 13246 int _df = 1; 13247 uint32_t _flag_k = FK_NONE; 13248 uint32_t _flag_a = 0, _flag_b = 0; 13249 uint32_t _itail_tgt = 0; 13250 RECOMP_REGS_LOCALS 13251 RECOMP_ENTER(0x3C005E30u); 13252 13253 L_3C005E30: 13254 PUSH32(esp, ebp); /* 0x3C005E30: push ebp */ 13255 ebp = esp; /* 0x3C005E31: mov ebp, esp */ 13256 PUSH32(esp, 0x14u); /* 0x3C005E33: push 0x14 */ 13257 RECOMP_ICALL(0x3C008B40u); /* 0x3C005E35: call 0x3c008b40 */ /* not lifted */ 13258 RECOMP_FLAGS_IN(); 13259 ecx = MEM32(ebp + 0x8); /* 0x3C005E3A: mov ecx, dword ptr [ebp + 8] */ 13260 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x3C005E3D: mov dl, byte ptr [ebp + 0xc] */ 13261 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13262 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13263 esp = esp + 4; /* 0x3C005E40: add esp, 4 */ 13264 _flag_k = FK_ADD; 13265 MEM32(eax + 0x4) = ecx; /* 0x3C005E43: mov dword ptr [eax + 4], ecx */ 13266 MEM8(eax + 0x10) = (uint8_t)(LO8(edx)); /* 0x3C005E46: mov byte ptr [eax + 0x10], dl */ 13267 MEM8(eax + 0x11) = (uint8_t)(0); /* 0x3C005E49: mov byte ptr [eax + 0x11], 0 */ 13268 ebp = POP32_VAL(esp); /* 0x3C005E4D: pop ebp */ 13269 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C005E4E: ret 8 */ 13270 RECOMP_REGS_OUT(); 13271 } 13272 13273 void sub_3C005E60(void) { 13274 int _fpu_cmp = 0; 13275 uint32_t _cf = 0; 13276 int _df = 1; 13277 uint32_t _flag_k = FK_NONE; 13278 uint32_t _flag_a = 0, _flag_b = 0; 13279 uint32_t _itail_tgt = 0; 13280 RECOMP_REGS_LOCALS 13281 RECOMP_ENTER(0x3C005E60u); 13282 13283 L_3C005E60: 13284 eax = MEM32(ecx); /* 0x3C005E60: mov eax, dword ptr [ecx] */ 13285 SET_LO8(edx, MEM8(eax + 0x10)); /* 0x3C005E62: mov dl, byte ptr [eax + 0x10] */ 13286 /* test LO8(edx), LO8(edx) */ /* 0x3C005E65: test dl, dl */ 13287 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13288 _cf = 0; 13289 _flag_k = FK_NARROW(FK_TEST, 24); 13290 PUSH32(esp, ebx); /* 0x3C005E67: push ebx */ 13291 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005E79; /* 0x3C005E68: jne 0x3c005e79 */ 13292 L_3C005E6A: 13293 edx = MEM32(eax + 0x4); /* 0x3C005E6A: mov edx, dword ptr [eax + 4] */ 13294 /* cmp MEM32(edx + 0x4), eax */ /* 0x3C005E6D: cmp dword ptr [edx + 4], eax */ 13295 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(eax); 13296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13297 _flag_k = FK_CMP; 13298 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005E79; /* 0x3C005E70: jne 0x3c005e79 */ 13299 L_3C005E72: 13300 eax = MEM32(eax + 0x8); /* 0x3C005E72: mov eax, dword ptr [eax + 8] */ 13301 MEM32(ecx) = eax; /* 0x3C005E75: mov dword ptr [ecx], eax */ 13302 ebx = POP32_VAL(esp); /* 0x3C005E77: pop ebx */ 13303 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005E78: ret */ 13304 L_3C005E79: 13305 edx = MEM32(eax); /* 0x3C005E79: mov edx, dword ptr [eax] */ 13306 SET_LO8(ebx, MEM8(edx + 0x11)); /* 0x3C005E7B: mov bl, byte ptr [edx + 0x11] */ 13307 /* test LO8(ebx), LO8(ebx) */ /* 0x3C005E7E: test bl, bl */ 13308 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13309 _cf = 0; 13310 _flag_k = FK_NARROW(FK_TEST, 24); 13311 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005E9C; /* 0x3C005E80: jne 0x3c005e9c */ 13312 L_3C005E82: 13313 eax = MEM32(edx + 0x8); /* 0x3C005E82: mov eax, dword ptr [edx + 8] */ 13314 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x3C005E85: mov bl, byte ptr [eax + 0x11] */ 13315 /* test LO8(ebx), LO8(ebx) */ /* 0x3C005E88: test bl, bl */ 13316 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13317 _cf = 0; 13318 _flag_k = FK_NARROW(FK_TEST, 24); 13319 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C005E98; /* 0x3C005E8A: jne 0x3c005e98 */ 13320 L_3C005E8C: 13321 edx = eax; /* 0x3C005E8C: mov edx, eax */ 13322 eax = MEM32(edx + 0x8); /* 0x3C005E8E: mov eax, dword ptr [edx + 8] */ 13323 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x3C005E91: mov bl, byte ptr [eax + 0x11] */ 13324 /* test LO8(ebx), LO8(ebx) */ /* 0x3C005E94: test bl, bl */ 13325 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13326 _cf = 0; 13327 _flag_k = FK_NARROW(FK_TEST, 24); 13328 RECOMP_BACKEDGE(); 13329 if (TEST_Z(_flag_a, _flag_b)) goto L_3C005E8C; /* 0x3C005E96: je 0x3c005e8c */ 13330 L_3C005E98: 13331 MEM32(ecx) = edx; /* 0x3C005E98: mov dword ptr [ecx], edx */ 13332 ebx = POP32_VAL(esp); /* 0x3C005E9A: pop ebx */ 13333 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005E9B: ret */ 13334 L_3C005E9C: 13335 eax = MEM32(eax + 0x4); /* 0x3C005E9C: mov eax, dword ptr [eax + 4] */ 13336 edx = MEM32(ecx); /* 0x3C005E9F: mov edx, dword ptr [ecx] */ 13337 /* cmp edx, MEM32(eax) */ /* 0x3C005EA1: cmp edx, dword ptr [eax] */ 13338 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 13339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13340 _flag_k = FK_CMP; 13341 if (CMP_NE(_flag_a, _flag_b)) goto L_3C005EB0; /* 0x3C005EA3: jne 0x3c005eb0 */ 13342 L_3C005EA5: 13343 MEM32(ecx) = eax; /* 0x3C005EA5: mov dword ptr [ecx], eax */ 13344 eax = MEM32(eax + 0x4); /* 0x3C005EA7: mov eax, dword ptr [eax + 4] */ 13345 edx = MEM32(ecx); /* 0x3C005EAA: mov edx, dword ptr [ecx] */ 13346 /* cmp edx, MEM32(eax) */ /* 0x3C005EAC: cmp edx, dword ptr [eax] */ 13347 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 13348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13349 _flag_k = FK_CMP; 13350 RECOMP_BACKEDGE(); 13351 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C005EA5; /* 0x3C005EAE: je 0x3c005ea5 */ 13352 L_3C005EB0: 13353 MEM32(ecx) = eax; /* 0x3C005EB0: mov dword ptr [ecx], eax */ 13354 ebx = POP32_VAL(esp); /* 0x3C005EB2: pop ebx */ 13355 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005EB3: ret */ 13356 RECOMP_REGS_OUT(); 13357 } 13358 13359 void sub_3C005EC0(void) { 13360 int _fpu_cmp = 0; 13361 uint32_t _cf = 0; 13362 int _df = 1; 13363 uint32_t _flag_k = FK_NONE; 13364 uint32_t _flag_a = 0, _flag_b = 0; 13365 uint32_t _itail_tgt = 0; 13366 RECOMP_REGS_LOCALS 13367 RECOMP_ENTER(0x3C005EC0u); 13368 13369 L_3C005EC0: 13370 PUSH32(esp, ebp); /* 0x3C005EC0: push ebp */ 13371 ebp = esp; /* 0x3C005EC1: mov ebp, esp */ 13372 eax = MEM32(ebp + 0x8); /* 0x3C005EC3: mov eax, dword ptr [ebp + 8] */ 13373 /* test eax, eax */ /* 0x3C005EC6: test eax, eax */ 13374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13375 _cf = 0; 13376 _flag_k = FK_TEST; 13377 if (TEST_Z(_flag_a, _flag_b)) goto L_3C005ED1; /* 0x3C005EC8: je 0x3c005ed1 */ 13378 L_3C005ECA: 13379 ecx = MEM32(ebp + 0xC); /* 0x3C005ECA: mov ecx, dword ptr [ebp + 0xc] */ 13380 edx = MEM32(ecx); /* 0x3C005ECD: mov edx, dword ptr [ecx] */ 13381 MEM32(eax) = edx; /* 0x3C005ECF: mov dword ptr [eax], edx */ 13382 L_3C005ED1: 13383 ebp = POP32_VAL(esp); /* 0x3C005ED1: pop ebp */ 13384 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005ED2: ret */ 13385 RECOMP_REGS_OUT(); 13386 } 13387 13388 void sub_3C005EE0(void) { 13389 int _fpu_cmp = 0; 13390 uint32_t _cf = 0; 13391 int _df = 1; 13392 uint32_t _flag_k = FK_NONE; 13393 uint32_t _flag_a = 0, _flag_b = 0; 13394 uint32_t _itail_tgt = 0; 13395 RECOMP_REGS_LOCALS 13396 RECOMP_ENTER(0x3C005EE0u); 13397 13398 L_3C005EE0: 13399 PUSH32(esp, ebp); /* 0x3C005EE0: push ebp */ 13400 ebp = esp; /* 0x3C005EE1: mov ebp, esp */ 13401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13403 esp = esp - 0xCu; /* 0x3C005EE3: sub esp, 0xc */ 13404 _flag_k = FK_CMP; 13405 ecx = MEM32(ebp + 0x8); /* 0x3C005EE6: mov ecx, dword ptr [ebp + 8] */ 13406 eax = MEM32(ebp + 0xC); /* 0x3C005EE9: mov eax, dword ptr [ebp + 0xc] */ 13407 /* cmp ecx, eax */ /* 0x3C005EEC: cmp ecx, eax */ 13408 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 13409 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13410 _flag_k = FK_CMP; 13411 if (CMP_AE(_flag_a, _flag_b)) goto L_3C005F34; /* 0x3C005EEE: jae 0x3c005f34 */ 13412 L_3C005EF0: 13413 PUSH32(esp, ebx); /* 0x3C005EF0: push ebx */ 13414 PUSH32(esp, esi); /* 0x3C005EF1: push esi */ 13415 PUSH32(esp, edi); /* 0x3C005EF2: push edi */ 13416 L_3C005EF3: 13417 esi = ecx; /* 0x3C005EF3: mov esi, ecx */ 13418 edx = MEM32(esi); /* 0x3C005EF5: mov edx, dword ptr [esi] */ 13419 edi = MEM32(esi + 0x4); /* 0x3C005EF7: mov edi, dword ptr [esi + 4] */ 13420 esi = MEM32(esi + 0x8); /* 0x3C005EFA: mov esi, dword ptr [esi + 8] */ 13421 MEM32(ebp + (-0x4)) = esi; /* 0x3C005EFD: mov dword ptr [ebp - 4], esi */ 13422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 13423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13424 eax = eax - 0xCu; /* 0x3C005F00: sub eax, 0xc */ 13425 _flag_k = FK_CMP; 13426 MEM32(ebp + (-0x8)) = edi; /* 0x3C005F03: mov dword ptr [ebp - 8], edi */ 13427 esi = eax; /* 0x3C005F06: mov esi, eax */ 13428 ebx = MEM32(esi); /* 0x3C005F08: mov ebx, dword ptr [esi] */ 13429 edi = ecx; /* 0x3C005F0A: mov edi, ecx */ 13430 MEM32(edi) = ebx; /* 0x3C005F0C: mov dword ptr [edi], ebx */ 13431 ebx = MEM32(esi + 0x4); /* 0x3C005F0E: mov ebx, dword ptr [esi + 4] */ 13432 MEM32(edi + 0x4) = ebx; /* 0x3C005F11: mov dword ptr [edi + 4], ebx */ 13433 esi = MEM32(esi + 0x8); /* 0x3C005F14: mov esi, dword ptr [esi + 8] */ 13434 MEM32(edi + 0x8) = esi; /* 0x3C005F17: mov dword ptr [edi + 8], esi */ 13435 esi = eax; /* 0x3C005F1A: mov esi, eax */ 13436 MEM32(esi) = edx; /* 0x3C005F1C: mov dword ptr [esi], edx */ 13437 edx = MEM32(ebp + (-0x8)); /* 0x3C005F1E: mov edx, dword ptr [ebp - 8] */ 13438 MEM32(esi + 0x4) = edx; /* 0x3C005F21: mov dword ptr [esi + 4], edx */ 13439 edx = MEM32(ebp + (-0x4)); /* 0x3C005F24: mov edx, dword ptr [ebp - 4] */ 13440 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 13441 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13442 ecx = ecx + 0xCu; /* 0x3C005F27: add ecx, 0xc */ 13443 _flag_k = FK_ADD; 13444 /* cmp ecx, eax */ /* 0x3C005F2A: cmp ecx, eax */ 13445 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 13446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13447 _flag_k = FK_CMP; 13448 MEM32(esi + 0x8) = edx; /* 0x3C005F2C: mov dword ptr [esi + 8], edx */ 13449 RECOMP_BACKEDGE(); 13450 if (CMP_B(_flag_a, _flag_b)) goto L_3C005EF3; /* 0x3C005F2F: jb 0x3c005ef3 */ 13451 L_3C005F31: 13452 edi = POP32_VAL(esp); /* 0x3C005F31: pop edi */ 13453 esi = POP32_VAL(esp); /* 0x3C005F32: pop esi */ 13454 ebx = POP32_VAL(esp); /* 0x3C005F33: pop ebx */ 13455 L_3C005F34: 13456 esp = ebp; /* 0x3C005F34: mov esp, ebp */ 13457 ebp = POP32_VAL(esp); /* 0x3C005F36: pop ebp */ 13458 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005F37: ret */ 13459 RECOMP_REGS_OUT(); 13460 } 13461 13462 void sub_3C005F40(void) { 13463 int _fpu_cmp = 0; 13464 uint32_t _cf = 0; 13465 int _df = 1; 13466 uint32_t _flag_k = FK_NONE; 13467 uint32_t _flag_a = 0, _flag_b = 0; 13468 uint32_t _itail_tgt = 0; 13469 RECOMP_REGS_LOCALS 13470 RECOMP_ENTER(0x3C005F40u); 13471 13472 L_3C005F40: 13473 RECOMP_ICALL(0x3C005F50u); /* 0x3C005F40: call 0x3c005f50 */ /* not lifted */ 13474 RECOMP_FLAGS_IN(); 13475 goto L_3C005F60; /* 0x3C005F45: jmp 0x3c005f60 */ 13476 L_3C005F60: 13477 PUSH32(esp, 0x3C005F70u); /* 0x3C005F60: push 0x3c005f70 */ 13478 RECOMP_ICALL(0x3C008A15u); /* 0x3C005F65: call 0x3c008a15 */ /* not lifted */ 13479 RECOMP_FLAGS_IN(); 13480 ecx = POP32_VAL(esp); /* 0x3C005F6A: pop ecx */ 13481 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005F6B: ret */ 13482 RECOMP_REGS_OUT(); 13483 } 13484 13485 void sub_3C005F50(void) { 13486 int _fpu_cmp = 0; 13487 uint32_t _cf = 0; 13488 int _df = 1; 13489 uint32_t _flag_k = FK_NONE; 13490 uint32_t _flag_a = 0, _flag_b = 0; 13491 uint32_t _itail_tgt = 0; 13492 RECOMP_REGS_LOCALS 13493 RECOMP_ENTER(0x3C005F50u); 13494 13495 L_3C005F50: 13496 ecx = 0x3C00D389u; /* 0x3C005F50: mov ecx, 0x3c00d389 */ 13497 L_3C005F55: 13498 { _itail_tgt = (uint32_t)(MEM32(0x3C009014)); goto _ljump; } 13499 { RECOMP_REGS_OUT(); return; } /* end of function */ 13500 _ljump: 13501 switch (_itail_tgt) { 13502 case 0x3C005F50u: goto L_3C005F50; 13503 case 0x3C005F55u: goto L_3C005F55; 13504 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 13505 } 13506 RECOMP_REGS_OUT(); 13507 } 13508 13509 void sub_3C005F60(void) { 13510 int _fpu_cmp = 0; 13511 uint32_t _cf = 0; 13512 int _df = 1; 13513 uint32_t _flag_k = FK_NONE; 13514 uint32_t _flag_a = 0, _flag_b = 0; 13515 uint32_t _itail_tgt = 0; 13516 RECOMP_REGS_LOCALS 13517 RECOMP_ENTER(0x3C005F60u); 13518 13519 L_3C005F60: 13520 PUSH32(esp, 0x3C005F70u); /* 0x3C005F60: push 0x3c005f70 */ 13521 RECOMP_ICALL(0x3C008A15u); /* 0x3C005F65: call 0x3c008a15 */ /* not lifted */ 13522 RECOMP_FLAGS_IN(); 13523 ecx = POP32_VAL(esp); /* 0x3C005F6A: pop ecx */ 13524 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005F6B: ret */ 13525 RECOMP_REGS_OUT(); 13526 } 13527 13528 void sub_3C005F70(void) { 13529 int _fpu_cmp = 0; 13530 uint32_t _cf = 0; 13531 int _df = 1; 13532 uint32_t _flag_k = FK_NONE; 13533 uint32_t _flag_a = 0, _flag_b = 0; 13534 uint32_t _itail_tgt = 0; 13535 RECOMP_REGS_LOCALS 13536 RECOMP_ENTER(0x3C005F70u); 13537 13538 L_3C005F70: 13539 ecx = 0x3C00D389u; /* 0x3C005F70: mov ecx, 0x3c00d389 */ 13540 L_3C005F75: 13541 { _itail_tgt = (uint32_t)(MEM32(0x3C009008)); goto _ljump; } 13542 { RECOMP_REGS_OUT(); return; } /* end of function */ 13543 _ljump: 13544 switch (_itail_tgt) { 13545 case 0x3C005F70u: goto L_3C005F70; 13546 case 0x3C005F75u: goto L_3C005F75; 13547 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 13548 } 13549 RECOMP_REGS_OUT(); 13550 } 13551 13552 void sub_3C005F80(void) { 13553 int _fpu_cmp = 0; 13554 uint32_t _cf = 0; 13555 int _df = 1; 13556 uint32_t _flag_k = FK_NONE; 13557 uint32_t _flag_a = 0, _flag_b = 0; 13558 uint32_t _itail_tgt = 0; 13559 RECOMP_REGS_LOCALS 13560 RECOMP_ENTER(0x3C005F80u); 13561 13562 L_3C005F80: 13563 RECOMP_ICALL(0x3C005F90u); /* 0x3C005F80: call 0x3c005f90 */ /* not lifted */ 13564 RECOMP_FLAGS_IN(); 13565 goto L_3C005FA0; /* 0x3C005F85: jmp 0x3c005fa0 */ 13566 L_3C005FA0: 13567 PUSH32(esp, 0x3C005FB0u); /* 0x3C005FA0: push 0x3c005fb0 */ 13568 RECOMP_ICALL(0x3C008A15u); /* 0x3C005FA5: call 0x3c008a15 */ /* not lifted */ 13569 RECOMP_FLAGS_IN(); 13570 ecx = POP32_VAL(esp); /* 0x3C005FAA: pop ecx */ 13571 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005FAB: ret */ 13572 RECOMP_REGS_OUT(); 13573 } 13574 13575 void sub_3C005F90(void) { 13576 int _fpu_cmp = 0; 13577 uint32_t _cf = 0; 13578 int _df = 1; 13579 uint32_t _flag_k = FK_NONE; 13580 uint32_t _flag_a = 0, _flag_b = 0; 13581 uint32_t _itail_tgt = 0; 13582 RECOMP_REGS_LOCALS 13583 RECOMP_ENTER(0x3C005F90u); 13584 13585 L_3C005F90: 13586 ecx = 0x3C00D388u; /* 0x3C005F90: mov ecx, 0x3c00d388 */ 13587 L_3C005F95: 13588 { _itail_tgt = (uint32_t)(MEM32(0x3C00900C)); goto _ljump; } 13589 { RECOMP_REGS_OUT(); return; } /* end of function */ 13590 _ljump: 13591 switch (_itail_tgt) { 13592 case 0x3C005F90u: goto L_3C005F90; 13593 case 0x3C005F95u: goto L_3C005F95; 13594 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 13595 } 13596 RECOMP_REGS_OUT(); 13597 } 13598 13599 void sub_3C005FA0(void) { 13600 int _fpu_cmp = 0; 13601 uint32_t _cf = 0; 13602 int _df = 1; 13603 uint32_t _flag_k = FK_NONE; 13604 uint32_t _flag_a = 0, _flag_b = 0; 13605 uint32_t _itail_tgt = 0; 13606 RECOMP_REGS_LOCALS 13607 RECOMP_ENTER(0x3C005FA0u); 13608 13609 L_3C005FA0: 13610 PUSH32(esp, 0x3C005FB0u); /* 0x3C005FA0: push 0x3c005fb0 */ 13611 RECOMP_ICALL(0x3C008A15u); /* 0x3C005FA5: call 0x3c008a15 */ /* not lifted */ 13612 RECOMP_FLAGS_IN(); 13613 ecx = POP32_VAL(esp); /* 0x3C005FAA: pop ecx */ 13614 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005FAB: ret */ 13615 RECOMP_REGS_OUT(); 13616 } 13617 13618 void sub_3C005FB0(void) { 13619 int _fpu_cmp = 0; 13620 uint32_t _cf = 0; 13621 int _df = 1; 13622 uint32_t _flag_k = FK_NONE; 13623 uint32_t _flag_a = 0, _flag_b = 0; 13624 uint32_t _itail_tgt = 0; 13625 RECOMP_REGS_LOCALS 13626 RECOMP_ENTER(0x3C005FB0u); 13627 13628 L_3C005FB0: 13629 ecx = 0x3C00D388u; /* 0x3C005FB0: mov ecx, 0x3c00d388 */ 13630 L_3C005FB5: 13631 { _itail_tgt = (uint32_t)(MEM32(0x3C009010)); goto _ljump; } 13632 { RECOMP_REGS_OUT(); return; } /* end of function */ 13633 _ljump: 13634 switch (_itail_tgt) { 13635 case 0x3C005FB0u: goto L_3C005FB0; 13636 case 0x3C005FB5u: goto L_3C005FB5; 13637 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 13638 } 13639 RECOMP_REGS_OUT(); 13640 } 13641 13642 void sub_3C005FC0(void) { 13643 int _fpu_cmp = 0; 13644 uint32_t _cf = 0; 13645 int _df = 1; 13646 uint32_t _flag_k = FK_NONE; 13647 uint32_t _flag_a = 0, _flag_b = 0; 13648 uint32_t _itail_tgt = 0; 13649 RECOMP_REGS_LOCALS 13650 RECOMP_ENTER(0x3C005FC0u); 13651 13652 L_3C005FC0: 13653 eax = ecx; /* 0x3C005FC0: mov eax, ecx */ 13654 MEM32(eax) = 0x3C00915Cu; /* 0x3C005FC2: mov dword ptr [eax], 0x3c00915c */ 13655 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005FC8: ret */ 13656 RECOMP_REGS_OUT(); 13657 } 13658 13659 void sub_3C005FD0(void) { 13660 int _fpu_cmp = 0; 13661 uint32_t _cf = 0; 13662 int _df = 1; 13663 uint32_t _flag_k = FK_NONE; 13664 uint32_t _flag_a = 0, _flag_b = 0; 13665 uint32_t _itail_tgt = 0; 13666 RECOMP_REGS_LOCALS 13667 RECOMP_ENTER(0x3C005FD0u); 13668 13669 L_3C005FD0: 13670 MEM32(ecx) = 0x3C00915Cu; /* 0x3C005FD0: mov dword ptr [ecx], 0x3c00915c */ 13671 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005FD6: ret */ 13672 RECOMP_REGS_OUT(); 13673 } 13674 13675 void sub_3C005FE0(void) { 13676 int _fpu_cmp = 0; 13677 uint32_t _cf = 0; 13678 int _df = 1; 13679 uint32_t _flag_k = FK_NONE; 13680 uint32_t _flag_a = 0, _flag_b = 0; 13681 uint32_t _itail_tgt = 0; 13682 RECOMP_REGS_LOCALS 13683 RECOMP_ENTER(0x3C005FE0u); 13684 13685 L_3C005FE0: 13686 RECOMP_ICALL(0x3C005FF0u); /* 0x3C005FE0: call 0x3c005ff0 */ /* not lifted */ 13687 RECOMP_FLAGS_IN(); 13688 goto L_3C006000; /* 0x3C005FE5: jmp 0x3c006000 */ 13689 L_3C006000: 13690 PUSH32(esp, 0x3C006010u); /* 0x3C006000: push 0x3c006010 */ 13691 RECOMP_ICALL(0x3C008A15u); /* 0x3C006005: call 0x3c008a15 */ /* not lifted */ 13692 RECOMP_FLAGS_IN(); 13693 ecx = POP32_VAL(esp); /* 0x3C00600A: pop ecx */ 13694 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00600B: ret */ 13695 RECOMP_REGS_OUT(); 13696 } 13697 13698 void sub_3C005FF0(void) { 13699 int _fpu_cmp = 0; 13700 uint32_t _cf = 0; 13701 int _df = 1; 13702 uint32_t _flag_k = FK_NONE; 13703 uint32_t _flag_a = 0, _flag_b = 0; 13704 uint32_t _itail_tgt = 0; 13705 RECOMP_REGS_LOCALS 13706 RECOMP_ENTER(0x3C005FF0u); 13707 13708 L_3C005FF0: 13709 ecx = 0x3C00D38Du; /* 0x3C005FF0: mov ecx, 0x3c00d38d */ 13710 L_3C005FF5: 13711 { _itail_tgt = (uint32_t)(MEM32(0x3C009014)); goto _ljump; } 13712 { RECOMP_REGS_OUT(); return; } /* end of function */ 13713 _ljump: 13714 switch (_itail_tgt) { 13715 case 0x3C005FF0u: goto L_3C005FF0; 13716 case 0x3C005FF5u: goto L_3C005FF5; 13717 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 13718 } 13719 RECOMP_REGS_OUT(); 13720 } 13721 13722 void sub_3C006000(void) { 13723 int _fpu_cmp = 0; 13724 uint32_t _cf = 0; 13725 int _df = 1; 13726 uint32_t _flag_k = FK_NONE; 13727 uint32_t _flag_a = 0, _flag_b = 0; 13728 uint32_t _itail_tgt = 0; 13729 RECOMP_REGS_LOCALS 13730 RECOMP_ENTER(0x3C006000u); 13731 13732 L_3C006000: 13733 PUSH32(esp, 0x3C006010u); /* 0x3C006000: push 0x3c006010 */ 13734 RECOMP_ICALL(0x3C008A15u); /* 0x3C006005: call 0x3c008a15 */ /* not lifted */ 13735 RECOMP_FLAGS_IN(); 13736 ecx = POP32_VAL(esp); /* 0x3C00600A: pop ecx */ 13737 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00600B: ret */ 13738 RECOMP_REGS_OUT(); 13739 } 13740 13741 void sub_3C006010(void) { 13742 int _fpu_cmp = 0; 13743 uint32_t _cf = 0; 13744 int _df = 1; 13745 uint32_t _flag_k = FK_NONE; 13746 uint32_t _flag_a = 0, _flag_b = 0; 13747 uint32_t _itail_tgt = 0; 13748 RECOMP_REGS_LOCALS 13749 RECOMP_ENTER(0x3C006010u); 13750 13751 L_3C006010: 13752 ecx = 0x3C00D38Du; /* 0x3C006010: mov ecx, 0x3c00d38d */ 13753 L_3C006015: 13754 { _itail_tgt = (uint32_t)(MEM32(0x3C009008)); goto _ljump; } 13755 { RECOMP_REGS_OUT(); return; } /* end of function */ 13756 _ljump: 13757 switch (_itail_tgt) { 13758 case 0x3C006010u: goto L_3C006010; 13759 case 0x3C006015u: goto L_3C006015; 13760 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 13761 } 13762 RECOMP_REGS_OUT(); 13763 } 13764 13765 void sub_3C006020(void) { 13766 int _fpu_cmp = 0; 13767 uint32_t _cf = 0; 13768 int _df = 1; 13769 uint32_t _flag_k = FK_NONE; 13770 uint32_t _flag_a = 0, _flag_b = 0; 13771 uint32_t _itail_tgt = 0; 13772 RECOMP_REGS_LOCALS 13773 RECOMP_ENTER(0x3C006020u); 13774 13775 L_3C006020: 13776 RECOMP_ICALL(0x3C006030u); /* 0x3C006020: call 0x3c006030 */ /* not lifted */ 13777 RECOMP_FLAGS_IN(); 13778 goto L_3C006040; /* 0x3C006025: jmp 0x3c006040 */ 13779 L_3C006040: 13780 PUSH32(esp, 0x3C006050u); /* 0x3C006040: push 0x3c006050 */ 13781 RECOMP_ICALL(0x3C008A15u); /* 0x3C006045: call 0x3c008a15 */ /* not lifted */ 13782 RECOMP_FLAGS_IN(); 13783 ecx = POP32_VAL(esp); /* 0x3C00604A: pop ecx */ 13784 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00604B: ret */ 13785 RECOMP_REGS_OUT(); 13786 } 13787 13788 void sub_3C006030(void) { 13789 int _fpu_cmp = 0; 13790 uint32_t _cf = 0; 13791 int _df = 1; 13792 uint32_t _flag_k = FK_NONE; 13793 uint32_t _flag_a = 0, _flag_b = 0; 13794 uint32_t _itail_tgt = 0; 13795 RECOMP_REGS_LOCALS 13796 RECOMP_ENTER(0x3C006030u); 13797 13798 L_3C006030: 13799 ecx = 0x3C00D38Cu; /* 0x3C006030: mov ecx, 0x3c00d38c */ 13800 L_3C006035: 13801 { _itail_tgt = (uint32_t)(MEM32(0x3C00900C)); goto _ljump; } 13802 { RECOMP_REGS_OUT(); return; } /* end of function */ 13803 _ljump: 13804 switch (_itail_tgt) { 13805 case 0x3C006030u: goto L_3C006030; 13806 case 0x3C006035u: goto L_3C006035; 13807 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 13808 } 13809 RECOMP_REGS_OUT(); 13810 } 13811 13812 void sub_3C006040(void) { 13813 int _fpu_cmp = 0; 13814 uint32_t _cf = 0; 13815 int _df = 1; 13816 uint32_t _flag_k = FK_NONE; 13817 uint32_t _flag_a = 0, _flag_b = 0; 13818 uint32_t _itail_tgt = 0; 13819 RECOMP_REGS_LOCALS 13820 RECOMP_ENTER(0x3C006040u); 13821 13822 L_3C006040: 13823 PUSH32(esp, 0x3C006050u); /* 0x3C006040: push 0x3c006050 */ 13824 RECOMP_ICALL(0x3C008A15u); /* 0x3C006045: call 0x3c008a15 */ /* not lifted */ 13825 RECOMP_FLAGS_IN(); 13826 ecx = POP32_VAL(esp); /* 0x3C00604A: pop ecx */ 13827 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00604B: ret */ 13828 RECOMP_REGS_OUT(); 13829 } 13830 13831 void sub_3C006050(void) { 13832 int _fpu_cmp = 0; 13833 uint32_t _cf = 0; 13834 int _df = 1; 13835 uint32_t _flag_k = FK_NONE; 13836 uint32_t _flag_a = 0, _flag_b = 0; 13837 uint32_t _itail_tgt = 0; 13838 RECOMP_REGS_LOCALS 13839 RECOMP_ENTER(0x3C006050u); 13840 13841 L_3C006050: 13842 ecx = 0x3C00D38Cu; /* 0x3C006050: mov ecx, 0x3c00d38c */ 13843 L_3C006055: 13844 { _itail_tgt = (uint32_t)(MEM32(0x3C009010)); goto _ljump; } 13845 { RECOMP_REGS_OUT(); return; } /* end of function */ 13846 _ljump: 13847 switch (_itail_tgt) { 13848 case 0x3C006050u: goto L_3C006050; 13849 case 0x3C006055u: goto L_3C006055; 13850 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 13851 } 13852 RECOMP_REGS_OUT(); 13853 } 13854 13855 void sub_3C006060(void) { 13856 int _fpu_cmp = 0; 13857 uint32_t _cf = 0; 13858 int _df = 1; 13859 uint32_t _flag_k = FK_NONE; 13860 uint32_t _flag_a = 0, _flag_b = 0; 13861 uint32_t _itail_tgt = 0; 13862 RECOMP_REGS_LOCALS 13863 RECOMP_ENTER(0x3C006060u); 13864 13865 L_3C006060: 13866 PUSH32(esp, ebp); /* 0x3C006060: push ebp */ 13867 ebp = esp; /* 0x3C006061: mov ebp, esp */ 13868 PUSH32(esp, 0xFFFFFFFFu); /* 0x3C006063: push -1 */ 13869 PUSH32(esp, 0x3C008E3Bu); /* 0x3C006065: push 0x3c008e3b */ 13870 eax = MEM32(FS_BASE + (0)); /* 0x3C00606A: mov eax, dword ptr fs:[0] */ 13871 PUSH32(esp, eax); /* 0x3C006070: push eax */ 13872 MEM32(FS_BASE + (0)) = esp; /* 0x3C006071: mov dword ptr fs:[0], esp */ 13873 PUSH32(esp, ecx); /* 0x3C006078: push ecx */ 13874 PUSH32(esp, ebx); /* 0x3C006079: push ebx */ 13875 PUSH32(esp, esi); /* 0x3C00607A: push esi */ 13876 esi = ecx; /* 0x3C00607B: mov esi, ecx */ 13877 PUSH32(esp, edi); /* 0x3C00607D: push edi */ 13878 MEM32(ebp + (-0x10)) = esi; /* 0x3C00607E: mov dword ptr [ebp - 0x10], esi */ 13879 MEM32(esi) = 0x3C0091ACu; /* 0x3C006081: mov dword ptr [esi], 0x3c0091ac */ 13880 edi = MEM32(esi + 0x8); /* 0x3C006087: mov edi, dword ptr [esi + 8] */ 13881 eax = MEM32(esi + 0xC); /* 0x3C00608A: mov eax, dword ptr [esi + 0xc] */ 13882 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13883 ebx = 0; /* 0x3C00608D: xor ebx, ebx */ 13884 _cf = 0; 13885 _flag_k = FK_TEST; 13886 /* cmp edi, eax */ /* 0x3C00608F: cmp edi, eax */ 13887 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13889 _flag_k = FK_CMP; 13890 MEM32(ebp + (-0x4)) = ebx; /* 0x3C006091: mov dword ptr [ebp - 4], ebx */ 13891 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0060AD; /* 0x3C006094: je 0x3c0060ad */ 13892 L_3C006096: 13893 ecx = MEM32(edi); /* 0x3C006096: mov ecx, dword ptr [edi] */ 13894 /* cmp ecx, ebx */ /* 0x3C006098: cmp ecx, ebx */ 13895 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 13896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13897 _flag_k = FK_CMP; 13898 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0060A3; /* 0x3C00609A: je 0x3c0060a3 */ 13899 L_3C00609C: 13900 eax = MEM32(ecx); /* 0x3C00609C: mov eax, dword ptr [ecx] */ 13901 PUSH32(esp, 1); /* 0x3C00609E: push 1 */ 13902 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x3C0060A0: call dword ptr [eax + 0x18] */ 13903 RECOMP_FLAGS_IN(); 13904 L_3C0060A3: 13905 eax = MEM32(esi + 0xC); /* 0x3C0060A3: mov eax, dword ptr [esi + 0xc] */ 13906 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 13907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13908 edi = edi + 4; /* 0x3C0060A6: add edi, 4 */ 13909 _flag_k = FK_ADD; 13910 /* cmp edi, eax */ /* 0x3C0060A9: cmp edi, eax */ 13911 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13913 _flag_k = FK_CMP; 13914 RECOMP_BACKEDGE(); 13915 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006096; /* 0x3C0060AB: jne 0x3c006096 */ 13916 L_3C0060AD: 13917 eax = MEM32(esi + 0x8); /* 0x3C0060AD: mov eax, dword ptr [esi + 8] */ 13918 PUSH32(esp, eax); /* 0x3C0060B0: push eax */ 13919 MEM32(ebp + (-0x10)) = eax; /* 0x3C0060B1: mov dword ptr [ebp - 0x10], eax */ 13920 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0060B4: call 0x3c0089de */ /* not lifted */ 13921 RECOMP_FLAGS_IN(); 13922 ecx = MEM32(ebp + (-0xC)); /* 0x3C0060B9: mov ecx, dword ptr [ebp - 0xc] */ 13923 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13924 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13925 esp = esp + 4; /* 0x3C0060BC: add esp, 4 */ 13926 _flag_k = FK_ADD; 13927 MEM32(esi + 0x8) = ebx; /* 0x3C0060BF: mov dword ptr [esi + 8], ebx */ 13928 MEM32(esi + 0xC) = ebx; /* 0x3C0060C2: mov dword ptr [esi + 0xc], ebx */ 13929 MEM32(esi + 0x10) = ebx; /* 0x3C0060C5: mov dword ptr [esi + 0x10], ebx */ 13930 edi = POP32_VAL(esp); /* 0x3C0060C8: pop edi */ 13931 esi = POP32_VAL(esp); /* 0x3C0060C9: pop esi */ 13932 ebx = POP32_VAL(esp); /* 0x3C0060CA: pop ebx */ 13933 MEM32(FS_BASE + (0)) = ecx; /* 0x3C0060CB: mov dword ptr fs:[0], ecx */ 13934 esp = ebp; /* 0x3C0060D2: mov esp, ebp */ 13935 ebp = POP32_VAL(esp); /* 0x3C0060D4: pop ebp */ 13936 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0060D5: ret */ 13937 RECOMP_REGS_OUT(); 13938 } 13939 13940 void sub_3C0060E0(void) { 13941 int _fpu_cmp = 0; 13942 uint32_t _cf = 0; 13943 int _df = 1; 13944 uint32_t _flag_k = FK_NONE; 13945 uint32_t _flag_a = 0, _flag_b = 0; 13946 uint32_t _itail_tgt = 0; 13947 RECOMP_REGS_LOCALS 13948 RECOMP_ENTER(0x3C0060E0u); 13949 13950 L_3C0060E0: 13951 PUSH32(esp, ebp); /* 0x3C0060E0: push ebp */ 13952 ebp = esp; /* 0x3C0060E1: mov ebp, esp */ 13953 PUSH32(esp, 0xFFFFFFFFu); /* 0x3C0060E3: push -1 */ 13954 PUSH32(esp, 0x3C008E6Eu); /* 0x3C0060E5: push 0x3c008e6e */ 13955 eax = MEM32(FS_BASE + (0)); /* 0x3C0060EA: mov eax, dword ptr fs:[0] */ 13956 PUSH32(esp, eax); /* 0x3C0060F0: push eax */ 13957 MEM32(FS_BASE + (0)) = esp; /* 0x3C0060F1: mov dword ptr fs:[0], esp */ 13958 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 13959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13960 esp = esp - 0x50u; /* 0x3C0060F8: sub esp, 0x50 */ 13961 _flag_k = FK_CMP; 13962 PUSH32(esp, ebx); /* 0x3C0060FB: push ebx */ 13963 PUSH32(esp, esi); /* 0x3C0060FC: push esi */ 13964 PUSH32(esp, edi); /* 0x3C0060FD: push edi */ 13965 esi = ecx; /* 0x3C0060FE: mov esi, ecx */ 13966 PUSH32(esp, 0x14u); /* 0x3C006100: push 0x14 */ 13967 MEM32(ebp + (-0x14)) = esi; /* 0x3C006102: mov dword ptr [ebp - 0x14], esi */ 13968 RECOMP_ICALL(0x3C008B40u); /* 0x3C006105: call 0x3c008b40 */ /* not lifted */ 13969 RECOMP_FLAGS_IN(); 13970 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13971 ebx = 0; /* 0x3C00610A: xor ebx, ebx */ 13972 _cf = 0; 13973 _flag_k = FK_TEST; 13974 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13975 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13976 esp = esp + 4; /* 0x3C00610C: add esp, 4 */ 13977 _flag_k = FK_ADD; 13978 /* cmp eax, ebx */ /* 0x3C00610F: cmp eax, ebx */ 13979 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 13980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13981 _flag_k = FK_CMP; 13982 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00612D; /* 0x3C006111: je 0x3c00612d */ 13983 L_3C006113: 13984 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3C006113: mov cl, byte ptr [ebp - 0xd] */ 13985 MEM8(eax + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3C006116: mov byte ptr [eax + 4], cl */ 13986 MEM32(eax + 0x8) = ebx; /* 0x3C006119: mov dword ptr [eax + 8], ebx */ 13987 MEM32(eax + 0xC) = ebx; /* 0x3C00611C: mov dword ptr [eax + 0xc], ebx */ 13988 MEM32(eax + 0x10) = ebx; /* 0x3C00611F: mov dword ptr [eax + 0x10], ebx */ 13989 MEM32(eax) = 0x3C0091ACu; /* 0x3C006122: mov dword ptr [eax], 0x3c0091ac */ 13990 MEM32(ebp + (-0x1C)) = eax; /* 0x3C006128: mov dword ptr [ebp - 0x1c], eax */ 13991 goto L_3C006130; /* 0x3C00612B: jmp 0x3c006130 */ 13992 L_3C00612D: 13993 MEM32(ebp + (-0x1C)) = ebx; /* 0x3C00612D: mov dword ptr [ebp - 0x1c], ebx */ 13994 L_3C006130: 13995 edx = ebp + (-0xD); /* 0x3C006130: lea edx, [ebp - 0xd] */ 13996 PUSH32(esp, edx); /* 0x3C006133: push edx */ 13997 PUSH32(esp, ebx); /* 0x3C006134: push ebx */ 13998 eax = ebp + (-0xE); /* 0x3C006135: lea eax, [ebp - 0xe] */ 13999 PUSH32(esp, eax); /* 0x3C006138: push eax */ 14000 ecx = ebp + (-0x5C); /* 0x3C006139: lea ecx, [ebp - 0x5c] */ 14001 RECOMP_ICALL(0x3C006F50u); /* 0x3C00613C: call 0x3c006f50 */ /* not lifted */ 14002 RECOMP_FLAGS_IN(); 14003 edi = MEM32(esi + 0x8); /* 0x3C006141: mov edi, dword ptr [esi + 8] */ 14004 eax = MEM32(esi + 0xC); /* 0x3C006144: mov eax, dword ptr [esi + 0xc] */ 14005 /* cmp edi, eax */ /* 0x3C006147: cmp edi, eax */ 14006 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14008 _flag_k = FK_CMP; 14009 MEM32(ebp + (-0x4)) = ebx; /* 0x3C006149: mov dword ptr [ebp - 4], ebx */ 14010 MEM32(ebp + (-0x18)) = edi; /* 0x3C00614C: mov dword ptr [ebp - 0x18], edi */ 14011 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0061E6; /* 0x3C00614F: je 0x3c0061e6 */ 14012 L_3C006155: 14013 PUSH32(esp, 0x3Cu); /* 0x3C006155: push 0x3c */ 14014 RECOMP_ICALL(0x3C008B40u); /* 0x3C006157: call 0x3c008b40 */ /* not lifted */ 14015 RECOMP_FLAGS_IN(); 14016 esi = eax; /* 0x3C00615C: mov esi, eax */ 14017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14019 esp = esp + 4; /* 0x3C00615E: add esp, 4 */ 14020 _flag_k = FK_ADD; 14021 MEM32(ebp + (-0x28)) = esi; /* 0x3C006161: mov dword ptr [ebp - 0x28], esi */ 14022 /* cmp esi, ebx */ /* 0x3C006164: cmp esi, ebx */ 14023 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 14024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14025 _flag_k = FK_CMP; 14026 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3C006166: mov byte ptr [ebp - 4], 1 */ 14027 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0061AA; /* 0x3C00616A: je 0x3c0061aa */ 14028 L_3C00616C: 14029 ecx = MEM32(edi); /* 0x3C00616C: mov ecx, dword ptr [edi] */ 14030 edx = MEM32(ecx); /* 0x3C00616E: mov edx, dword ptr [ecx] */ 14031 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C006170: call dword ptr [edx + 0xc] */ 14032 RECOMP_FLAGS_IN(); 14033 ecx = esi; /* 0x3C006173: mov ecx, esi */ 14034 edi = eax; /* 0x3C006175: mov edi, eax */ 14035 RECOMP_ICALL(MEM32(0x3C009138)); /* 0x3C006177: call dword ptr [0x3c009138] */ 14036 RECOMP_FLAGS_IN(); 14037 ecx = MEM32(edi); /* 0x3C00617D: mov ecx, dword ptr [edi] */ 14038 eax = esi + 0x20; /* 0x3C00617F: lea eax, [esi + 0x20] */ 14039 MEM32(eax) = ecx; /* 0x3C006182: mov dword ptr [eax], ecx */ 14040 edx = MEM32(edi + 0x4); /* 0x3C006184: mov edx, dword ptr [edi + 4] */ 14041 MEM32(eax + 0x4) = edx; /* 0x3C006187: mov dword ptr [eax + 4], edx */ 14042 ecx = MEM32(edi + 0x8); /* 0x3C00618A: mov ecx, dword ptr [edi + 8] */ 14043 SET_LO8(edx, MEM8(ebp + (-0xE))); /* 0x3C00618D: mov dl, byte ptr [ebp - 0xe] */ 14044 edi = MEM32(ebp + (-0x18)); /* 0x3C006190: mov edi, dword ptr [ebp - 0x18] */ 14045 MEM32(eax + 0x8) = ecx; /* 0x3C006193: mov dword ptr [eax + 8], ecx */ 14046 MEM8(esi + 0x2C) = (uint8_t)(LO8(edx)); /* 0x3C006196: mov byte ptr [esi + 0x2c], dl */ 14047 MEM32(esi + 0x30) = ebx; /* 0x3C006199: mov dword ptr [esi + 0x30], ebx */ 14048 MEM32(esi + 0x34) = ebx; /* 0x3C00619C: mov dword ptr [esi + 0x34], ebx */ 14049 MEM32(esi + 0x38) = ebx; /* 0x3C00619F: mov dword ptr [esi + 0x38], ebx */ 14050 MEM32(esi) = 0x3C009170u; /* 0x3C0061A2: mov dword ptr [esi], 0x3c009170 */ 14051 goto L_3C0061AC; /* 0x3C0061A8: jmp 0x3c0061ac */ 14052 L_3C0061AA: 14053 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14054 esi = 0; /* 0x3C0061AA: xor esi, esi */ 14055 _cf = 0; 14056 _flag_k = FK_TEST; 14057 L_3C0061AC: 14058 ecx = MEM32(ebp + (-0x1C)); /* 0x3C0061AC: mov ecx, dword ptr [ebp - 0x1c] */ 14059 PUSH32(esp, esi); /* 0x3C0061AF: push esi */ 14060 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3C0061B0: mov byte ptr [ebp - 4], bl */ 14061 RECOMP_ICALL(0x3C006650u); /* 0x3C0061B3: call 0x3c006650 */ /* not lifted */ 14062 RECOMP_FLAGS_IN(); 14063 eax = MEM32(edi); /* 0x3C0061B8: mov eax, dword ptr [edi] */ 14064 MEM32(ebp + (-0x24)) = eax; /* 0x3C0061BA: mov dword ptr [ebp - 0x24], eax */ 14065 eax = ebp + (-0x24); /* 0x3C0061BD: lea eax, [ebp - 0x24] */ 14066 PUSH32(esp, eax); /* 0x3C0061C0: push eax */ 14067 ecx = ebp + (-0x38); /* 0x3C0061C1: lea ecx, [ebp - 0x38] */ 14068 PUSH32(esp, ecx); /* 0x3C0061C4: push ecx */ 14069 ecx = ebp + (-0x5C); /* 0x3C0061C5: lea ecx, [ebp - 0x5c] */ 14070 MEM32(ebp + (-0x20)) = esi; /* 0x3C0061C8: mov dword ptr [ebp - 0x20], esi */ 14071 RECOMP_ICALL(0x3C006FC0u); /* 0x3C0061CB: call 0x3c006fc0 */ /* not lifted */ 14072 RECOMP_FLAGS_IN(); 14073 edx = MEM32(ebp + (-0x14)); /* 0x3C0061D0: mov edx, dword ptr [ebp - 0x14] */ 14074 eax = MEM32(edx + 0xC); /* 0x3C0061D3: mov eax, dword ptr [edx + 0xc] */ 14075 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 14076 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14077 edi = edi + 4; /* 0x3C0061D6: add edi, 4 */ 14078 _flag_k = FK_ADD; 14079 /* cmp edi, eax */ /* 0x3C0061D9: cmp edi, eax */ 14080 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14081 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14082 _flag_k = FK_CMP; 14083 MEM32(ebp + (-0x18)) = edi; /* 0x3C0061DB: mov dword ptr [ebp - 0x18], edi */ 14084 RECOMP_BACKEDGE(); 14085 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006155; /* 0x3C0061DE: jne 0x3c006155 */ 14086 L_3C0061E4: 14087 esi = edx; /* 0x3C0061E4: mov esi, edx */ 14088 L_3C0061E6: 14089 eax = MEM32(ebp + (-0x14)); /* 0x3C0061E6: mov eax, dword ptr [ebp - 0x14] */ 14090 esi = MEM32(esi + 0x8); /* 0x3C0061E9: mov esi, dword ptr [esi + 8] */ 14091 /* cmp esi, MEM32(eax + 0xC) */ /* 0x3C0061EC: cmp esi, dword ptr [eax + 0xc] */ 14092 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 14093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14094 _flag_k = FK_CMP; 14095 MEM32(ebp + (-0x18)) = esi; /* 0x3C0061EF: mov dword ptr [ebp - 0x18], esi */ 14096 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0062CE; /* 0x3C0061F2: je 0x3c0062ce */ 14097 L_3C0061F8: 14098 ecx = MEM32(esi); /* 0x3C0061F8: mov ecx, dword ptr [esi] */ 14099 edx = ebp + (-0x30); /* 0x3C0061FA: lea edx, [ebp - 0x30] */ 14100 PUSH32(esp, edx); /* 0x3C0061FD: push edx */ 14101 eax = ebp + (-0x40); /* 0x3C0061FE: lea eax, [ebp - 0x40] */ 14102 MEM32(ebp + (-0x30)) = ecx; /* 0x3C006201: mov dword ptr [ebp - 0x30], ecx */ 14103 PUSH32(esp, eax); /* 0x3C006204: push eax */ 14104 ecx = ebp + (-0x5C); /* 0x3C006205: lea ecx, [ebp - 0x5c] */ 14105 MEM32(ebp + (-0x2C)) = ebx; /* 0x3C006208: mov dword ptr [ebp - 0x2c], ebx */ 14106 RECOMP_ICALL(0x3C006E60u); /* 0x3C00620B: call 0x3c006e60 */ /* not lifted */ 14107 RECOMP_FLAGS_IN(); 14108 eax = MEM32(eax); /* 0x3C006210: mov eax, dword ptr [eax] */ 14109 ecx = MEM32(eax + 0x10); /* 0x3C006212: mov ecx, dword ptr [eax + 0x10] */ 14110 eax = MEM32(esi); /* 0x3C006215: mov eax, dword ptr [esi] */ 14111 edi = MEM32(eax + 0x30); /* 0x3C006217: mov edi, dword ptr [eax + 0x30] */ 14112 /* cmp edi, MEM32(eax + 0x34) */ /* 0x3C00621A: cmp edi, dword ptr [eax + 0x34] */ 14113 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x34)); 14114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14115 _flag_k = FK_CMP; 14116 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0062BA; /* 0x3C00621D: je 0x3c0062ba */ 14117 L_3C006223: 14118 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x2Cu); 14119 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14120 ecx = ecx + 0x2Cu; /* 0x3C006223: add ecx, 0x2c */ 14121 _flag_k = FK_ADD; 14122 MEM32(ebp + (-0x28)) = ecx; /* 0x3C006226: mov dword ptr [ebp - 0x28], ecx */ 14123 L_3C006229: 14124 PUSH32(esp, 0x14u); /* 0x3C006229: push 0x14 */ 14125 RECOMP_ICALL(0x3C008B40u); /* 0x3C00622B: call 0x3c008b40 */ /* not lifted */ 14126 RECOMP_FLAGS_IN(); 14127 esi = eax; /* 0x3C006230: mov esi, eax */ 14128 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14129 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14130 esp = esp + 4; /* 0x3C006232: add esp, 4 */ 14131 _flag_k = FK_ADD; 14132 MEM32(ebp + (-0x20)) = esi; /* 0x3C006235: mov dword ptr [ebp - 0x20], esi */ 14133 /* cmp esi, ebx */ /* 0x3C006238: cmp esi, ebx */ 14134 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 14135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14136 _flag_k = FK_CMP; 14137 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3C00623A: mov byte ptr [ebp - 4], 2 */ 14138 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00628A; /* 0x3C00623E: je 0x3c00628a */ 14139 L_3C006240: 14140 eax = MEM32(edi); /* 0x3C006240: mov eax, dword ptr [edi] */ 14141 ecx = MEM32(eax + 0x10); /* 0x3C006242: mov ecx, dword ptr [eax + 0x10] */ 14142 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 14143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14144 eax = eax + 0x10u; /* 0x3C006245: add eax, 0x10 */ 14145 _flag_k = FK_ADD; 14146 edx = ebp + (-0x38); /* 0x3C006248: lea edx, [ebp - 0x38] */ 14147 PUSH32(esp, edx); /* 0x3C00624B: push edx */ 14148 eax = ebp + (-0x48); /* 0x3C00624C: lea eax, [ebp - 0x48] */ 14149 MEM32(ebp + (-0x38)) = ecx; /* 0x3C00624F: mov dword ptr [ebp - 0x38], ecx */ 14150 PUSH32(esp, eax); /* 0x3C006252: push eax */ 14151 ecx = ebp + (-0x5C); /* 0x3C006253: lea ecx, [ebp - 0x5c] */ 14152 MEM32(ebp + (-0x34)) = ebx; /* 0x3C006256: mov dword ptr [ebp - 0x34], ebx */ 14153 RECOMP_ICALL(0x3C006E60u); /* 0x3C006259: call 0x3c006e60 */ /* not lifted */ 14154 RECOMP_FLAGS_IN(); 14155 edx = MEM32(edi); /* 0x3C00625E: mov edx, dword ptr [edi] */ 14156 fp_push(*(float*)&MEM32(edx)); /* 0x3C006260: fld dword ptr [edx] */ 14157 eax = MEM32(eax); /* 0x3C006262: mov eax, dword ptr [eax] */ 14158 ecx = edx + 0x4; /* 0x3C006264: lea ecx, [edx + 4] */ 14159 edx = MEM32(eax + 0x10); /* 0x3C006267: mov edx, dword ptr [eax + 0x10] */ 14160 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3C00626A: fstp dword ptr [esi] */ 14161 MEM32(ebp + (-0x20)) = edx; /* 0x3C00626C: mov dword ptr [ebp - 0x20], edx */ 14162 edx = MEM32(ecx); /* 0x3C00626F: mov edx, dword ptr [ecx] */ 14163 eax = esi + 0x4; /* 0x3C006271: lea eax, [esi + 4] */ 14164 MEM32(eax) = edx; /* 0x3C006274: mov dword ptr [eax], edx */ 14165 edx = MEM32(ecx + 0x4); /* 0x3C006276: mov edx, dword ptr [ecx + 4] */ 14166 MEM32(eax + 0x4) = edx; /* 0x3C006279: mov dword ptr [eax + 4], edx */ 14167 ecx = MEM32(ecx + 0x8); /* 0x3C00627C: mov ecx, dword ptr [ecx + 8] */ 14168 edx = MEM32(ebp + (-0x20)); /* 0x3C00627F: mov edx, dword ptr [ebp - 0x20] */ 14169 MEM32(eax + 0x8) = ecx; /* 0x3C006282: mov dword ptr [eax + 8], ecx */ 14170 MEM32(esi + 0x10) = edx; /* 0x3C006285: mov dword ptr [esi + 0x10], edx */ 14171 goto L_3C00628C; /* 0x3C006288: jmp 0x3c00628c */ 14172 L_3C00628A: 14173 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14174 esi = 0; /* 0x3C00628A: xor esi, esi */ 14175 _cf = 0; 14176 _flag_k = FK_TEST; 14177 L_3C00628C: 14178 ecx = MEM32(ebp + (-0x28)); /* 0x3C00628C: mov ecx, dword ptr [ebp - 0x28] */ 14179 eax = MEM32(ecx + 0x8); /* 0x3C00628F: mov eax, dword ptr [ecx + 8] */ 14180 edx = ebp + (-0x20); /* 0x3C006292: lea edx, [ebp - 0x20] */ 14181 PUSH32(esp, edx); /* 0x3C006295: push edx */ 14182 PUSH32(esp, 1); /* 0x3C006296: push 1 */ 14183 PUSH32(esp, eax); /* 0x3C006298: push eax */ 14184 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3C006299: mov byte ptr [ebp - 4], bl */ 14185 MEM32(ebp + (-0x20)) = esi; /* 0x3C00629C: mov dword ptr [ebp - 0x20], esi */ 14186 RECOMP_ICALL(0x3C005480u); /* 0x3C00629F: call 0x3c005480 */ /* not lifted */ 14187 RECOMP_FLAGS_IN(); 14188 eax = MEM32(ebp + (-0x18)); /* 0x3C0062A4: mov eax, dword ptr [ebp - 0x18] */ 14189 ecx = MEM32(eax); /* 0x3C0062A7: mov ecx, dword ptr [eax] */ 14190 eax = MEM32(ecx + 0x34); /* 0x3C0062A9: mov eax, dword ptr [ecx + 0x34] */ 14191 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 14192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14193 edi = edi + 4; /* 0x3C0062AC: add edi, 4 */ 14194 _flag_k = FK_ADD; 14195 /* cmp edi, eax */ /* 0x3C0062AF: cmp edi, eax */ 14196 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14198 _flag_k = FK_CMP; 14199 RECOMP_BACKEDGE(); 14200 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006229; /* 0x3C0062B1: jne 0x3c006229 */ 14201 L_3C0062B7: 14202 esi = MEM32(ebp + (-0x18)); /* 0x3C0062B7: mov esi, dword ptr [ebp - 0x18] */ 14203 L_3C0062BA: 14204 edx = MEM32(ebp + (-0x14)); /* 0x3C0062BA: mov edx, dword ptr [ebp - 0x14] */ 14205 eax = MEM32(edx + 0xC); /* 0x3C0062BD: mov eax, dword ptr [edx + 0xc] */ 14206 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 14207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14208 esi = esi + 4; /* 0x3C0062C0: add esi, 4 */ 14209 _flag_k = FK_ADD; 14210 /* cmp esi, eax */ /* 0x3C0062C3: cmp esi, eax */ 14211 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 14212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14213 _flag_k = FK_CMP; 14214 MEM32(ebp + (-0x18)) = esi; /* 0x3C0062C5: mov dword ptr [ebp - 0x18], esi */ 14215 RECOMP_BACKEDGE(); 14216 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0061F8; /* 0x3C0062C8: jne 0x3c0061f8 */ 14217 L_3C0062CE: 14218 eax = MEM32(ebp + (-0x58)); /* 0x3C0062CE: mov eax, dword ptr [ebp - 0x58] */ 14219 ecx = MEM32(eax); /* 0x3C0062D1: mov ecx, dword ptr [eax] */ 14220 PUSH32(esp, eax); /* 0x3C0062D3: push eax */ 14221 PUSH32(esp, ecx); /* 0x3C0062D4: push ecx */ 14222 eax = ebp + (-0x28); /* 0x3C0062D5: lea eax, [ebp - 0x28] */ 14223 PUSH32(esp, eax); /* 0x3C0062D8: push eax */ 14224 ecx = ebp + (-0x5C); /* 0x3C0062D9: lea ecx, [ebp - 0x5c] */ 14225 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0062DC: mov dword ptr [ebp - 4], 0xffffffff */ 14226 RECOMP_ICALL(0x3C007210u); /* 0x3C0062E3: call 0x3c007210 */ /* not lifted */ 14227 RECOMP_FLAGS_IN(); 14228 ecx = MEM32(ebp + (-0x58)); /* 0x3C0062E8: mov ecx, dword ptr [ebp - 0x58] */ 14229 PUSH32(esp, ecx); /* 0x3C0062EB: push ecx */ 14230 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0062EC: call 0x3c0089de */ /* not lifted */ 14231 RECOMP_FLAGS_IN(); 14232 edx = MEM32(ebp + (-0x54)); /* 0x3C0062F1: mov edx, dword ptr [ebp - 0x54] */ 14233 PUSH32(esp, edx); /* 0x3C0062F4: push edx */ 14234 MEM32(ebp + (-0x58)) = ebx; /* 0x3C0062F5: mov dword ptr [ebp - 0x58], ebx */ 14235 MEM32(ebp + (-0x4C)) = ebx; /* 0x3C0062F8: mov dword ptr [ebp - 0x4c], ebx */ 14236 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0062FB: call 0x3c0089de */ /* not lifted */ 14237 RECOMP_FLAGS_IN(); 14238 ecx = MEM32(ebp + (-0xC)); /* 0x3C006300: mov ecx, dword ptr [ebp - 0xc] */ 14239 eax = MEM32(ebp + (-0x1C)); /* 0x3C006303: mov eax, dword ptr [ebp - 0x1c] */ 14240 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14241 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14242 esp = esp + 8; /* 0x3C006306: add esp, 8 */ 14243 _flag_k = FK_ADD; 14244 edi = POP32_VAL(esp); /* 0x3C006309: pop edi */ 14245 esi = POP32_VAL(esp); /* 0x3C00630A: pop esi */ 14246 ebx = POP32_VAL(esp); /* 0x3C00630B: pop ebx */ 14247 MEM32(FS_BASE + (0)) = ecx; /* 0x3C00630C: mov dword ptr fs:[0], ecx */ 14248 esp = ebp; /* 0x3C006313: mov esp, ebp */ 14249 ebp = POP32_VAL(esp); /* 0x3C006315: pop ebp */ 14250 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C006316: ret */ 14251 RECOMP_REGS_OUT(); 14252 }