client/game/kkr.dll/lifted-0091.c (776211B)
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_361415F0(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(0x361415F0u); 17 18 L_361415F0: 19 PUSH32(esp, ebp); /* 0x361415F0: push ebp */ 20 ebp = esp; /* 0x361415F1: mov ebp, esp */ 21 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 22 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23 esp = esp - 0xCu; /* 0x361415F3: sub esp, 0xc */ 24 _flag_k = FK_CMP; 25 eax = MEM32(ecx + 0x8); /* 0x361415F6: mov eax, dword ptr [ecx + 8] */ 26 edx = MEM32(ecx + 0xC); /* 0x361415F9: mov edx, dword ptr [ecx + 0xc] */ 27 PUSH32(esp, ebx); /* 0x361415FC: push ebx */ 28 PUSH32(esp, esi); /* 0x361415FD: push esi */ 29 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 30 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31 edx = edx - eax; /* 0x361415FE: sub edx, eax */ 32 _flag_k = FK_CMP; 33 PUSH32(esp, edi); /* 0x36141600: push edi */ 34 edi = MEM32(ebp + 0xC); /* 0x36141601: mov edi, dword ptr [ebp + 0xc] */ 35 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36141604: sar edx, 4 */ 36 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37 edx = (uint32_t)((int32_t)edx >> 4u); 38 /* cmp edx, edi */ /* 0x36141607: cmp edx, edi */ 39 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 40 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41 _flag_k = FK_CMP; 42 MEM32(ebp + (-0x4)) = ecx; /* 0x36141609: mov dword ptr [ebp - 4], ecx */ 43 if (CMP_AE(_flag_a, _flag_b)) goto L_36141766; /* 0x3614160C: jae 0x36141766 */ 44 L_36141612: 45 edx = MEM32(ecx + 0x4); /* 0x36141612: mov edx, dword ptr [ecx + 4] */ 46 /* test edx, edx */ /* 0x36141615: test edx, edx */ 47 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 48 _cf = 0; 49 _flag_k = FK_TEST; 50 if (TEST_Z(_flag_a, _flag_b)) goto L_36141624; /* 0x36141617: je 0x36141624 */ 51 L_36141619: 52 ecx = eax; /* 0x36141619: mov ecx, eax */ 53 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 54 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 55 ecx = ecx - edx; /* 0x3614161B: sub ecx, edx */ 56 _flag_k = FK_CMP; 57 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x3614161D: sar ecx, 4 */ 58 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 59 ecx = (uint32_t)((int32_t)ecx >> 4u); 60 /* cmp edi, ecx */ /* 0x36141620: cmp edi, ecx */ 61 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 62 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 63 _flag_k = FK_CMP; 64 if (CMP_B(_flag_a, _flag_b)) goto L_36141626; /* 0x36141622: jb 0x36141626 */ 65 L_36141624: 66 ecx = edi; /* 0x36141624: mov ecx, edi */ 67 L_36141626: 68 /* test edx, edx */ /* 0x36141626: test edx, edx */ 69 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 70 _cf = 0; 71 _flag_k = FK_TEST; 72 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614162E; /* 0x36141628: jne 0x3614162e */ 73 L_3614162A: 74 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 75 eax = 0; /* 0x3614162A: xor eax, eax */ 76 _cf = 0; 77 _flag_k = FK_TEST; 78 goto L_36141633; /* 0x3614162C: jmp 0x36141633 */ 79 L_3614162E: 80 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 81 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 82 eax = eax - edx; /* 0x3614162E: sub eax, edx */ 83 _flag_k = FK_CMP; 84 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x36141630: sar eax, 4 */ 85 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 86 eax = (uint32_t)((int32_t)eax >> 4u); 87 L_36141633: 88 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 89 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 90 eax = eax + ecx; /* 0x36141633: add eax, ecx */ 91 _flag_k = FK_ADD; 92 /* test eax, eax */ /* 0x36141635: test eax, eax */ 93 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 94 _cf = 0; 95 _flag_k = FK_TEST; 96 MEM32(ebp + (-0x8)) = eax; /* 0x36141637: mov dword ptr [ebp - 8], eax */ 97 if (TEST_NS(_flag_a, _flag_b)) goto L_3614163E; /* 0x3614163A: jge 0x3614163e */ 98 L_3614163C: 99 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 100 eax = 0; /* 0x3614163C: xor eax, eax */ 101 _cf = 0; 102 _flag_k = FK_TEST; 103 L_3614163E: 104 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3614163E: shl eax, 4 */ 105 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 106 eax = eax << 4u; /* 0x3614163E: shl eax, 4 */ 107 PUSH32(esp, eax); /* 0x36141641: push eax */ 108 RECOMP_ICALL(0x3615FD6Au); /* 0x36141642: call 0x3615fd6a */ /* not lifted */ 109 RECOMP_FLAGS_IN(); 110 ecx = MEM32(ebp + 0x8); /* 0x36141647: mov ecx, dword ptr [ebp + 8] */ 111 MEM32(ebp + (-0xC)) = eax; /* 0x3614164A: mov dword ptr [ebp - 0xc], eax */ 112 edx = eax; /* 0x3614164D: mov edx, eax */ 113 eax = MEM32(ebp + (-0x4)); /* 0x3614164F: mov eax, dword ptr [ebp - 4] */ 114 eax = MEM32(eax + 0x4); /* 0x36141652: mov eax, dword ptr [eax + 4] */ 115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 117 esp = esp + 4; /* 0x36141655: add esp, 4 */ 118 _flag_k = FK_ADD; 119 /* cmp eax, ecx */ /* 0x36141658: cmp eax, ecx */ 120 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 122 _flag_k = FK_CMP; 123 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141687; /* 0x3614165A: je 0x36141687 */ 124 L_3614165C: 125 /* test edx, edx */ /* 0x3614165C: test edx, edx */ 126 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 127 _cf = 0; 128 _flag_k = FK_TEST; 129 if (TEST_Z(_flag_a, _flag_b)) goto L_3614167A; /* 0x3614165E: je 0x3614167a */ 130 L_36141660: 131 ecx = eax; /* 0x36141660: mov ecx, eax */ 132 ebx = MEM32(ecx); /* 0x36141662: mov ebx, dword ptr [ecx] */ 133 esi = edx; /* 0x36141664: mov esi, edx */ 134 MEM32(esi) = ebx; /* 0x36141666: mov dword ptr [esi], ebx */ 135 ebx = MEM32(ecx + 0x4); /* 0x36141668: mov ebx, dword ptr [ecx + 4] */ 136 MEM32(esi + 0x4) = ebx; /* 0x3614166B: mov dword ptr [esi + 4], ebx */ 137 ebx = MEM32(ecx + 0x8); /* 0x3614166E: mov ebx, dword ptr [ecx + 8] */ 138 MEM32(esi + 0x8) = ebx; /* 0x36141671: mov dword ptr [esi + 8], ebx */ 139 ecx = MEM32(ecx + 0xC); /* 0x36141674: mov ecx, dword ptr [ecx + 0xc] */ 140 MEM32(esi + 0xC) = ecx; /* 0x36141677: mov dword ptr [esi + 0xc], ecx */ 141 L_3614167A: 142 ecx = MEM32(ebp + 0x8); /* 0x3614167A: mov ecx, dword ptr [ebp + 8] */ 143 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 144 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 145 eax = eax + 0x10u; /* 0x3614167D: add eax, 0x10 */ 146 _flag_k = FK_ADD; 147 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 149 edx = edx + 0x10u; /* 0x36141680: add edx, 0x10 */ 150 _flag_k = FK_ADD; 151 /* cmp eax, ecx */ /* 0x36141683: cmp eax, ecx */ 152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 154 _flag_k = FK_CMP; 155 RECOMP_BACKEDGE(); 156 if (CMP_NE(_flag_a, _flag_b)) goto L_3614165C; /* 0x36141685: jne 0x3614165c */ 157 L_36141687: 158 /* test edi, edi */ /* 0x36141687: test edi, edi */ 159 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 160 _cf = 0; 161 _flag_k = FK_TEST; 162 eax = edx; /* 0x36141689: mov eax, edx */ 163 if (TEST_Z(_flag_a, _flag_b)) goto L_361416BB; /* 0x3614168B: jbe 0x361416bb */ 164 L_3614168D: 165 MEM32(ebp + 0xC) = edi; /* 0x3614168D: mov dword ptr [ebp + 0xc], edi */ 166 L_36141690: 167 /* test eax, eax */ /* 0x36141690: test eax, eax */ 168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 169 _cf = 0; 170 _flag_k = FK_TEST; 171 if (TEST_Z(_flag_a, _flag_b)) goto L_361416AF; /* 0x36141692: je 0x361416af */ 172 L_36141694: 173 ecx = MEM32(ebp + 0x10); /* 0x36141694: mov ecx, dword ptr [ebp + 0x10] */ 174 ebx = MEM32(ecx); /* 0x36141697: mov ebx, dword ptr [ecx] */ 175 esi = eax; /* 0x36141699: mov esi, eax */ 176 MEM32(esi) = ebx; /* 0x3614169B: mov dword ptr [esi], ebx */ 177 ebx = MEM32(ecx + 0x4); /* 0x3614169D: mov ebx, dword ptr [ecx + 4] */ 178 MEM32(esi + 0x4) = ebx; /* 0x361416A0: mov dword ptr [esi + 4], ebx */ 179 ebx = MEM32(ecx + 0x8); /* 0x361416A3: mov ebx, dword ptr [ecx + 8] */ 180 MEM32(esi + 0x8) = ebx; /* 0x361416A6: mov dword ptr [esi + 8], ebx */ 181 ecx = MEM32(ecx + 0xC); /* 0x361416A9: mov ecx, dword ptr [ecx + 0xc] */ 182 MEM32(esi + 0xC) = ecx; /* 0x361416AC: mov dword ptr [esi + 0xc], ecx */ 183 L_361416AF: 184 ecx = MEM32(ebp + 0xC); /* 0x361416AF: mov ecx, dword ptr [ebp + 0xc] */ 185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 187 eax = eax + 0x10u; /* 0x361416B2: add eax, 0x10 */ 188 _flag_k = FK_ADD; 189 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 190 ecx = ecx - 1; /* 0x361416B5: dec ecx */ 191 _flag_k = FK_DEC; 192 MEM32(ebp + 0xC) = ecx; /* 0x361416B6: mov dword ptr [ebp + 0xc], ecx */ 193 RECOMP_BACKEDGE(); 194 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36141690; /* 0x361416B9: jne 0x36141690 */ 195 L_361416BB: 196 eax = MEM32(ebp + (-0x4)); /* 0x361416BB: mov eax, dword ptr [ebp - 4] */ 197 ebx = MEM32(eax + 0x8); /* 0x361416BE: mov ebx, dword ptr [eax + 8] */ 198 eax = MEM32(ebp + 0x8); /* 0x361416C1: mov eax, dword ptr [ebp + 8] */ 199 ecx = edi; /* 0x361416C4: mov ecx, edi */ 200 if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x361416C6: shl ecx, 4 */ 201 if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 202 ecx = ecx << 4u; /* 0x361416C6: shl ecx, 4 */ 203 /* cmp eax, ebx */ /* 0x361416C9: cmp eax, ebx */ 204 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 206 _flag_k = FK_CMP; 207 esi = ecx + edx; /* 0x361416CB: lea esi, [ecx + edx] */ 208 MEM32(ebp + 0x10) = ebx; /* 0x361416CE: mov dword ptr [ebp + 0x10], ebx */ 209 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141709; /* 0x361416D1: je 0x36141709 */ 210 L_361416D3: 211 eax = esi; /* 0x361416D3: mov eax, esi */ 212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 214 eax = eax - ecx; /* 0x361416D5: sub eax, ecx */ 215 _flag_k = FK_CMP; 216 ecx = MEM32(ebp + 0x8); /* 0x361416D7: mov ecx, dword ptr [ebp + 8] */ 217 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 219 eax = eax - edx; /* 0x361416DA: sub eax, edx */ 220 _flag_k = FK_CMP; 221 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 222 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 223 eax = eax + ecx; /* 0x361416DC: add eax, ecx */ 224 _flag_k = FK_ADD; 225 L_361416DE: 226 /* test esi, esi */ /* 0x361416DE: test esi, esi */ 227 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 228 _cf = 0; 229 _flag_k = FK_TEST; 230 if (TEST_Z(_flag_a, _flag_b)) goto L_361416FF; /* 0x361416E0: je 0x361416ff */ 231 L_361416E2: 232 ecx = eax; /* 0x361416E2: mov ecx, eax */ 233 ebx = MEM32(ecx); /* 0x361416E4: mov ebx, dword ptr [ecx] */ 234 edx = esi; /* 0x361416E6: mov edx, esi */ 235 MEM32(edx) = ebx; /* 0x361416E8: mov dword ptr [edx], ebx */ 236 ebx = MEM32(ecx + 0x4); /* 0x361416EA: mov ebx, dword ptr [ecx + 4] */ 237 MEM32(edx + 0x4) = ebx; /* 0x361416ED: mov dword ptr [edx + 4], ebx */ 238 ebx = MEM32(ecx + 0x8); /* 0x361416F0: mov ebx, dword ptr [ecx + 8] */ 239 MEM32(edx + 0x8) = ebx; /* 0x361416F3: mov dword ptr [edx + 8], ebx */ 240 ecx = MEM32(ecx + 0xC); /* 0x361416F6: mov ecx, dword ptr [ecx + 0xc] */ 241 ebx = MEM32(ebp + 0x10); /* 0x361416F9: mov ebx, dword ptr [ebp + 0x10] */ 242 MEM32(edx + 0xC) = ecx; /* 0x361416FC: mov dword ptr [edx + 0xc], ecx */ 243 L_361416FF: 244 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 245 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 246 eax = eax + 0x10u; /* 0x361416FF: add eax, 0x10 */ 247 _flag_k = FK_ADD; 248 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 250 esi = esi + 0x10u; /* 0x36141702: add esi, 0x10 */ 251 _flag_k = FK_ADD; 252 /* cmp eax, ebx */ /* 0x36141705: cmp eax, ebx */ 253 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 255 _flag_k = FK_CMP; 256 RECOMP_BACKEDGE(); 257 if (CMP_NE(_flag_a, _flag_b)) goto L_361416DE; /* 0x36141707: jne 0x361416de */ 258 L_36141709: 259 esi = MEM32(ebp + (-0x4)); /* 0x36141709: mov esi, dword ptr [ebp - 4] */ 260 eax = MEM32(esi + 0x4); /* 0x3614170C: mov eax, dword ptr [esi + 4] */ 261 PUSH32(esp, eax); /* 0x3614170F: push eax */ 262 MEM32(ebp + 0x8) = eax; /* 0x36141710: mov dword ptr [ebp + 8], eax */ 263 RECOMP_ICALL(0x3615FCC4u); /* 0x36141713: call 0x3615fcc4 */ /* not lifted */ 264 RECOMP_FLAGS_IN(); 265 eax = MEM32(ebp + (-0x8)); /* 0x36141718: mov eax, dword ptr [ebp - 8] */ 266 edx = MEM32(ebp + (-0xC)); /* 0x3614171B: mov edx, dword ptr [ebp - 0xc] */ 267 ecx = MEM32(esi + 0x4); /* 0x3614171E: mov ecx, dword ptr [esi + 4] */ 268 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36141721: shl eax, 4 */ 269 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 270 eax = eax << 4u; /* 0x36141721: shl eax, 4 */ 271 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 272 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 273 eax = eax + edx; /* 0x36141724: add eax, edx */ 274 _flag_k = FK_ADD; 275 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 276 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 277 esp = esp + 4; /* 0x36141726: add esp, 4 */ 278 _flag_k = FK_ADD; 279 /* test ecx, ecx */ /* 0x36141729: test ecx, ecx */ 280 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 281 _cf = 0; 282 _flag_k = FK_TEST; 283 MEM32(esi + 0xC) = eax; /* 0x3614172B: mov dword ptr [esi + 0xc], eax */ 284 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141748; /* 0x3614172E: jne 0x36141748 */ 285 L_36141730: 286 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 287 eax = 0; /* 0x36141730: xor eax, eax */ 288 _cf = 0; 289 _flag_k = FK_TEST; 290 eax = edi; /* 0x36141732: mov eax, edi */ 291 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36141734: shl eax, 4 */ 292 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 293 eax = eax << 4u; /* 0x36141734: shl eax, 4 */ 294 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 295 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 296 eax = eax + edx; /* 0x36141737: add eax, edx */ 297 _flag_k = FK_ADD; 298 edi = POP32_VAL(esp); /* 0x36141739: pop edi */ 299 MEM32(esi + 0x8) = eax; /* 0x3614173A: mov dword ptr [esi + 8], eax */ 300 MEM32(esi + 0x4) = edx; /* 0x3614173D: mov dword ptr [esi + 4], edx */ 301 esi = POP32_VAL(esp); /* 0x36141740: pop esi */ 302 ebx = POP32_VAL(esp); /* 0x36141741: pop ebx */ 303 esp = ebp; /* 0x36141742: mov esp, ebp */ 304 ebp = POP32_VAL(esp); /* 0x36141744: pop ebp */ 305 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36141745: ret 0xc */ 306 L_36141748: 307 eax = MEM32(esi + 0x8); /* 0x36141748: mov eax, dword ptr [esi + 8] */ 308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 310 eax = eax - ecx; /* 0x3614174B: sub eax, ecx */ 311 _flag_k = FK_CMP; 312 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3614174D: sar eax, 4 */ 313 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 314 eax = (uint32_t)((int32_t)eax >> 4u); 315 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 316 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 317 eax = eax + edi; /* 0x36141750: add eax, edi */ 318 _flag_k = FK_ADD; 319 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36141752: shl eax, 4 */ 320 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 321 eax = eax << 4u; /* 0x36141752: shl eax, 4 */ 322 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 324 eax = eax + edx; /* 0x36141755: add eax, edx */ 325 _flag_k = FK_ADD; 326 edi = POP32_VAL(esp); /* 0x36141757: pop edi */ 327 MEM32(esi + 0x8) = eax; /* 0x36141758: mov dword ptr [esi + 8], eax */ 328 MEM32(esi + 0x4) = edx; /* 0x3614175B: mov dword ptr [esi + 4], edx */ 329 esi = POP32_VAL(esp); /* 0x3614175E: pop esi */ 330 ebx = POP32_VAL(esp); /* 0x3614175F: pop ebx */ 331 esp = ebp; /* 0x36141760: mov esp, ebp */ 332 ebp = POP32_VAL(esp); /* 0x36141762: pop ebp */ 333 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36141763: ret 0xc */ 334 L_36141766: 335 edx = MEM32(ebp + 0x8); /* 0x36141766: mov edx, dword ptr [ebp + 8] */ 336 esi = eax; /* 0x36141769: mov esi, eax */ 337 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 339 esi = esi - edx; /* 0x3614176B: sub esi, edx */ 340 _flag_k = FK_CMP; 341 if (4u) _cf = (((esi) >> 3) & 1u); /* 0x3614176D: sar esi, 4 */ 342 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 343 esi = (uint32_t)((int32_t)esi >> 4u); 344 /* cmp esi, edi */ /* 0x36141770: cmp esi, edi */ 345 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 347 _flag_k = FK_CMP; 348 if (CMP_AE(_flag_a, _flag_b)) goto L_36141841; /* 0x36141772: jae 0x36141841 */ 349 L_36141778: 350 ebx = edi; /* 0x36141778: mov ebx, edi */ 351 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x3614177A: shl ebx, 4 */ 352 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 353 ebx = ebx << 4u; /* 0x3614177A: shl ebx, 4 */ 354 /* cmp edx, eax */ /* 0x3614177D: cmp edx, eax */ 355 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 357 _flag_k = FK_CMP; 358 esi = ebx + edx; /* 0x3614177F: lea esi, [ebx + edx] */ 359 MEM32(ebp + 0x8) = ebx; /* 0x36141782: mov dword ptr [ebp + 8], ebx */ 360 MEM32(ebp + (-0x8)) = esi; /* 0x36141785: mov dword ptr [ebp - 8], esi */ 361 if (CMP_EQ(_flag_a, _flag_b)) goto L_361417C3; /* 0x36141788: je 0x361417c3 */ 362 L_3614178A: 363 ecx = esi; /* 0x3614178A: mov ecx, esi */ 364 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 366 ecx = ecx - ebx; /* 0x3614178C: sub ecx, ebx */ 367 _flag_k = FK_CMP; 368 L_3614178E: 369 /* test esi, esi */ /* 0x3614178E: test esi, esi */ 370 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 371 _cf = 0; 372 _flag_k = FK_TEST; 373 if (TEST_Z(_flag_a, _flag_b)) goto L_361417B3; /* 0x36141790: je 0x361417b3 */ 374 L_36141792: 375 edi = ecx; /* 0x36141792: mov edi, ecx */ 376 ebx = MEM32(edi); /* 0x36141794: mov ebx, dword ptr [edi] */ 377 MEM32(esi) = ebx; /* 0x36141796: mov dword ptr [esi], ebx */ 378 ebx = MEM32(edi + 0x4); /* 0x36141798: mov ebx, dword ptr [edi + 4] */ 379 MEM32(esi + 0x4) = ebx; /* 0x3614179B: mov dword ptr [esi + 4], ebx */ 380 ebx = MEM32(edi + 0x8); /* 0x3614179E: mov ebx, dword ptr [edi + 8] */ 381 MEM32(esi + 0x8) = ebx; /* 0x361417A1: mov dword ptr [esi + 8], ebx */ 382 edi = MEM32(edi + 0xC); /* 0x361417A4: mov edi, dword ptr [edi + 0xc] */ 383 ebx = MEM32(ebp + 0x8); /* 0x361417A7: mov ebx, dword ptr [ebp + 8] */ 384 MEM32(esi + 0xC) = edi; /* 0x361417AA: mov dword ptr [esi + 0xc], edi */ 385 esi = MEM32(ebp + (-0x8)); /* 0x361417AD: mov esi, dword ptr [ebp - 8] */ 386 edi = MEM32(ebp + 0xC); /* 0x361417B0: mov edi, dword ptr [ebp + 0xc] */ 387 L_361417B3: 388 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 389 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 390 esi = esi + 0x10u; /* 0x361417B3: add esi, 0x10 */ 391 _flag_k = FK_ADD; 392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 393 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 394 ecx = ecx + 0x10u; /* 0x361417B6: add ecx, 0x10 */ 395 _flag_k = FK_ADD; 396 /* cmp ecx, eax */ /* 0x361417B9: cmp ecx, eax */ 397 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 399 _flag_k = FK_CMP; 400 MEM32(ebp + (-0x8)) = esi; /* 0x361417BB: mov dword ptr [ebp - 8], esi */ 401 RECOMP_BACKEDGE(); 402 if (CMP_NE(_flag_a, _flag_b)) goto L_3614178E; /* 0x361417BE: jne 0x3614178e */ 403 L_361417C0: 404 ecx = MEM32(ebp + (-0x4)); /* 0x361417C0: mov ecx, dword ptr [ebp - 4] */ 405 L_361417C3: 406 eax = MEM32(ecx + 0x8); /* 0x361417C3: mov eax, dword ptr [ecx + 8] */ 407 esi = eax; /* 0x361417C6: mov esi, eax */ 408 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 409 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 410 esi = esi - edx; /* 0x361417C8: sub esi, edx */ 411 _flag_k = FK_CMP; 412 if (4u) _cf = (((esi) >> 3) & 1u); /* 0x361417CA: sar esi, 4 */ 413 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 414 esi = (uint32_t)((int32_t)esi >> 4u); 415 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 417 edi = edi - esi; /* 0x361417CD: sub edi, esi */ 418 _flag_k = FK_CMP; 419 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_36141802; /* 0x361417CF: je 0x36141802 */ 420 L_361417D1: 421 MEM32(ebp + 0x8) = edi; /* 0x361417D1: mov dword ptr [ebp + 8], edi */ 422 L_361417D4: 423 /* test eax, eax */ /* 0x361417D4: test eax, eax */ 424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 425 _cf = 0; 426 _flag_k = FK_TEST; 427 if (TEST_Z(_flag_a, _flag_b)) goto L_361417F6; /* 0x361417D6: je 0x361417f6 */ 428 L_361417D8: 429 ecx = MEM32(ebp + 0x10); /* 0x361417D8: mov ecx, dword ptr [ebp + 0x10] */ 430 edi = MEM32(ecx); /* 0x361417DB: mov edi, dword ptr [ecx] */ 431 esi = eax; /* 0x361417DD: mov esi, eax */ 432 MEM32(esi) = edi; /* 0x361417DF: mov dword ptr [esi], edi */ 433 edi = MEM32(ecx + 0x4); /* 0x361417E1: mov edi, dword ptr [ecx + 4] */ 434 MEM32(esi + 0x4) = edi; /* 0x361417E4: mov dword ptr [esi + 4], edi */ 435 edi = MEM32(ecx + 0x8); /* 0x361417E7: mov edi, dword ptr [ecx + 8] */ 436 MEM32(esi + 0x8) = edi; /* 0x361417EA: mov dword ptr [esi + 8], edi */ 437 ecx = MEM32(ecx + 0xC); /* 0x361417ED: mov ecx, dword ptr [ecx + 0xc] */ 438 MEM32(esi + 0xC) = ecx; /* 0x361417F0: mov dword ptr [esi + 0xc], ecx */ 439 ecx = MEM32(ebp + (-0x4)); /* 0x361417F3: mov ecx, dword ptr [ebp - 4] */ 440 L_361417F6: 441 esi = MEM32(ebp + 0x8); /* 0x361417F6: mov esi, dword ptr [ebp + 8] */ 442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 443 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 444 eax = eax + 0x10u; /* 0x361417F9: add eax, 0x10 */ 445 _flag_k = FK_ADD; 446 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 447 esi = esi - 1; /* 0x361417FC: dec esi */ 448 _flag_k = FK_DEC; 449 MEM32(ebp + 0x8) = esi; /* 0x361417FD: mov dword ptr [ebp + 8], esi */ 450 RECOMP_BACKEDGE(); 451 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361417D4; /* 0x36141800: jne 0x361417d4 */ 452 L_36141802: 453 ecx = MEM32(ecx + 0x8); /* 0x36141802: mov ecx, dword ptr [ecx + 8] */ 454 /* cmp edx, ecx */ /* 0x36141805: cmp edx, ecx */ 455 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 457 _flag_k = FK_CMP; 458 eax = edx; /* 0x36141807: mov eax, edx */ 459 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614182D; /* 0x36141809: je 0x3614182d */ 460 L_3614180B: 461 edx = MEM32(ebp + 0x10); /* 0x3614180B: mov edx, dword ptr [ebp + 0x10] */ 462 edi = MEM32(edx); /* 0x3614180E: mov edi, dword ptr [edx] */ 463 esi = eax; /* 0x36141810: mov esi, eax */ 464 MEM32(esi) = edi; /* 0x36141812: mov dword ptr [esi], edi */ 465 edi = MEM32(edx + 0x4); /* 0x36141814: mov edi, dword ptr [edx + 4] */ 466 MEM32(esi + 0x4) = edi; /* 0x36141817: mov dword ptr [esi + 4], edi */ 467 edi = MEM32(edx + 0x8); /* 0x3614181A: mov edi, dword ptr [edx + 8] */ 468 MEM32(esi + 0x8) = edi; /* 0x3614181D: mov dword ptr [esi + 8], edi */ 469 edx = MEM32(edx + 0xC); /* 0x36141820: mov edx, dword ptr [edx + 0xc] */ 470 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 471 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 472 eax = eax + 0x10u; /* 0x36141823: add eax, 0x10 */ 473 _flag_k = FK_ADD; 474 /* cmp eax, ecx */ /* 0x36141826: cmp eax, ecx */ 475 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 477 _flag_k = FK_CMP; 478 MEM32(esi + 0xC) = edx; /* 0x36141828: mov dword ptr [esi + 0xc], edx */ 479 RECOMP_BACKEDGE(); 480 if (CMP_NE(_flag_a, _flag_b)) goto L_3614180B; /* 0x3614182B: jne 0x3614180b */ 481 L_3614182D: 482 eax = MEM32(ebp + (-0x4)); /* 0x3614182D: mov eax, dword ptr [ebp - 4] */ 483 ecx = MEM32(eax + 0x8); /* 0x36141830: mov ecx, dword ptr [eax + 8] */ 484 edi = POP32_VAL(esp); /* 0x36141833: pop edi */ 485 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 486 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 487 ecx = ecx + ebx; /* 0x36141834: add ecx, ebx */ 488 _flag_k = FK_ADD; 489 esi = POP32_VAL(esp); /* 0x36141836: pop esi */ 490 MEM32(eax + 0x8) = ecx; /* 0x36141837: mov dword ptr [eax + 8], ecx */ 491 ebx = POP32_VAL(esp); /* 0x3614183A: pop ebx */ 492 esp = ebp; /* 0x3614183B: mov esp, ebp */ 493 ebp = POP32_VAL(esp); /* 0x3614183D: pop ebp */ 494 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3614183E: ret 0xc */ 495 L_36141841: 496 /* test edi, edi */ /* 0x36141841: test edi, edi */ 497 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 498 _cf = 0; 499 _flag_k = FK_TEST; 500 if (TEST_Z(_flag_a, _flag_b)) goto L_361418F1; /* 0x36141843: jbe 0x361418f1 */ 501 L_36141849: 502 if (4u) _cf = (((edi) >> 28) & 1u); /* 0x36141849: shl edi, 4 */ 503 if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 504 edi = edi << 4u; /* 0x36141849: shl edi, 4 */ 505 ecx = eax; /* 0x3614184C: mov ecx, eax */ 506 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 508 ecx = ecx - edi; /* 0x3614184E: sub ecx, edi */ 509 _flag_k = FK_CMP; 510 /* cmp ecx, eax */ /* 0x36141850: cmp ecx, eax */ 511 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 513 _flag_k = FK_CMP; 514 esi = eax; /* 0x36141852: mov esi, eax */ 515 MEM32(ebp + 0xC) = esi; /* 0x36141854: mov dword ptr [ebp + 0xc], esi */ 516 MEM32(ebp + 0x8) = edi; /* 0x36141857: mov dword ptr [ebp + 8], edi */ 517 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614188B; /* 0x3614185A: je 0x3614188b */ 518 L_3614185C: 519 /* test esi, esi */ /* 0x3614185C: test esi, esi */ 520 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 521 _cf = 0; 522 _flag_k = FK_TEST; 523 if (TEST_Z(_flag_a, _flag_b)) goto L_3614187E; /* 0x3614185E: je 0x3614187e */ 524 L_36141860: 525 edi = ecx; /* 0x36141860: mov edi, ecx */ 526 ebx = MEM32(edi); /* 0x36141862: mov ebx, dword ptr [edi] */ 527 MEM32(esi) = ebx; /* 0x36141864: mov dword ptr [esi], ebx */ 528 ebx = MEM32(edi + 0x4); /* 0x36141866: mov ebx, dword ptr [edi + 4] */ 529 MEM32(esi + 0x4) = ebx; /* 0x36141869: mov dword ptr [esi + 4], ebx */ 530 ebx = MEM32(edi + 0x8); /* 0x3614186C: mov ebx, dword ptr [edi + 8] */ 531 MEM32(esi + 0x8) = ebx; /* 0x3614186F: mov dword ptr [esi + 8], ebx */ 532 edi = MEM32(edi + 0xC); /* 0x36141872: mov edi, dword ptr [edi + 0xc] */ 533 MEM32(esi + 0xC) = edi; /* 0x36141875: mov dword ptr [esi + 0xc], edi */ 534 esi = MEM32(ebp + 0xC); /* 0x36141878: mov esi, dword ptr [ebp + 0xc] */ 535 edi = MEM32(ebp + 0x8); /* 0x3614187B: mov edi, dword ptr [ebp + 8] */ 536 L_3614187E: 537 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 538 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 539 esi = esi + 0x10u; /* 0x3614187E: add esi, 0x10 */ 540 _flag_k = FK_ADD; 541 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 543 ecx = ecx + 0x10u; /* 0x36141881: add ecx, 0x10 */ 544 _flag_k = FK_ADD; 545 /* cmp ecx, eax */ /* 0x36141884: cmp ecx, eax */ 546 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 548 _flag_k = FK_CMP; 549 MEM32(ebp + 0xC) = esi; /* 0x36141886: mov dword ptr [ebp + 0xc], esi */ 550 RECOMP_BACKEDGE(); 551 if (CMP_NE(_flag_a, _flag_b)) goto L_3614185C; /* 0x36141889: jne 0x3614185c */ 552 L_3614188B: 553 eax = MEM32(ebp + (-0x4)); /* 0x3614188B: mov eax, dword ptr [ebp - 4] */ 554 ecx = MEM32(eax + 0x8); /* 0x3614188E: mov ecx, dword ptr [eax + 8] */ 555 eax = ecx; /* 0x36141891: mov eax, ecx */ 556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 558 eax = eax - edi; /* 0x36141893: sub eax, edi */ 559 _flag_k = FK_CMP; 560 /* cmp edx, eax */ /* 0x36141895: cmp edx, eax */ 561 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 563 _flag_k = FK_CMP; 564 if (CMP_EQ(_flag_a, _flag_b)) goto L_361418C0; /* 0x36141897: je 0x361418c0 */ 565 L_36141899: 566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 568 eax = eax - 0x10u; /* 0x36141899: sub eax, 0x10 */ 569 _flag_k = FK_CMP; 570 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 572 ecx = ecx - 0x10u; /* 0x3614189C: sub ecx, 0x10 */ 573 _flag_k = FK_CMP; 574 /* cmp eax, edx */ /* 0x3614189F: cmp eax, edx */ 575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 577 _flag_k = FK_CMP; 578 esi = eax; /* 0x361418A1: mov esi, eax */ 579 ebx = MEM32(esi); /* 0x361418A3: mov ebx, dword ptr [esi] */ 580 edi = ecx; /* 0x361418A5: mov edi, ecx */ 581 MEM32(edi) = ebx; /* 0x361418A7: mov dword ptr [edi], ebx */ 582 ebx = MEM32(esi + 0x4); /* 0x361418A9: mov ebx, dword ptr [esi + 4] */ 583 MEM32(edi + 0x4) = ebx; /* 0x361418AC: mov dword ptr [edi + 4], ebx */ 584 ebx = MEM32(esi + 0x8); /* 0x361418AF: mov ebx, dword ptr [esi + 8] */ 585 MEM32(edi + 0x8) = ebx; /* 0x361418B2: mov dword ptr [edi + 8], ebx */ 586 esi = MEM32(esi + 0xC); /* 0x361418B5: mov esi, dword ptr [esi + 0xc] */ 587 MEM32(edi + 0xC) = esi; /* 0x361418B8: mov dword ptr [edi + 0xc], esi */ 588 RECOMP_BACKEDGE(); 589 if (CMP_NE(_flag_a, _flag_b)) goto L_36141899; /* 0x361418BB: jne 0x36141899 */ 590 L_361418BD: 591 edi = MEM32(ebp + 0x8); /* 0x361418BD: mov edi, dword ptr [ebp + 8] */ 592 L_361418C0: 593 ecx = edi + edx; /* 0x361418C0: lea ecx, [edi + edx] */ 594 /* cmp edx, ecx */ /* 0x361418C3: cmp edx, ecx */ 595 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 597 _flag_k = FK_CMP; 598 eax = edx; /* 0x361418C5: mov eax, edx */ 599 if (CMP_EQ(_flag_a, _flag_b)) goto L_361418EB; /* 0x361418C7: je 0x361418eb */ 600 L_361418C9: 601 edx = MEM32(ebp + 0x10); /* 0x361418C9: mov edx, dword ptr [ebp + 0x10] */ 602 ebx = MEM32(edx); /* 0x361418CC: mov ebx, dword ptr [edx] */ 603 esi = eax; /* 0x361418CE: mov esi, eax */ 604 MEM32(esi) = ebx; /* 0x361418D0: mov dword ptr [esi], ebx */ 605 ebx = MEM32(edx + 0x4); /* 0x361418D2: mov ebx, dword ptr [edx + 4] */ 606 MEM32(esi + 0x4) = ebx; /* 0x361418D5: mov dword ptr [esi + 4], ebx */ 607 ebx = MEM32(edx + 0x8); /* 0x361418D8: mov ebx, dword ptr [edx + 8] */ 608 MEM32(esi + 0x8) = ebx; /* 0x361418DB: mov dword ptr [esi + 8], ebx */ 609 edx = MEM32(edx + 0xC); /* 0x361418DE: mov edx, dword ptr [edx + 0xc] */ 610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 611 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 612 eax = eax + 0x10u; /* 0x361418E1: add eax, 0x10 */ 613 _flag_k = FK_ADD; 614 /* cmp eax, ecx */ /* 0x361418E4: cmp eax, ecx */ 615 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 617 _flag_k = FK_CMP; 618 MEM32(esi + 0xC) = edx; /* 0x361418E6: mov dword ptr [esi + 0xc], edx */ 619 RECOMP_BACKEDGE(); 620 if (CMP_NE(_flag_a, _flag_b)) goto L_361418C9; /* 0x361418E9: jne 0x361418c9 */ 621 L_361418EB: 622 eax = MEM32(ebp + (-0x4)); /* 0x361418EB: mov eax, dword ptr [ebp - 4] */ 623 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(edi); 624 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 625 MEM32(eax + 0x8) = MEM32(eax + 0x8) + edi; /* 0x361418EE: add dword ptr [eax + 8], edi */ 626 _flag_k = FK_ADD; 627 L_361418F1: 628 edi = POP32_VAL(esp); /* 0x361418F1: pop edi */ 629 esi = POP32_VAL(esp); /* 0x361418F2: pop esi */ 630 ebx = POP32_VAL(esp); /* 0x361418F3: pop ebx */ 631 esp = ebp; /* 0x361418F4: mov esp, ebp */ 632 ebp = POP32_VAL(esp); /* 0x361418F6: pop ebp */ 633 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361418F7: ret 0xc */ 634 RECOMP_REGS_OUT(); 635 } 636 637 void sub_36141900(void) { 638 int _fpu_cmp = 0; 639 uint32_t _cf = 0; 640 int _df = 1; 641 uint32_t _flag_k = FK_NONE; 642 uint32_t _flag_a = 0, _flag_b = 0; 643 uint32_t _itail_tgt = 0; 644 RECOMP_REGS_LOCALS 645 RECOMP_ENTER(0x36141900u); 646 647 L_36141900: 648 PUSH32(esp, ebp); /* 0x36141900: push ebp */ 649 ebp = esp; /* 0x36141901: mov ebp, esp */ 650 ecx = MEM32(ebp + 0x8); /* 0x36141903: mov ecx, dword ptr [ebp + 8] */ 651 edx = MEM32(ebp + 0xC); /* 0x36141906: mov edx, dword ptr [ebp + 0xc] */ 652 /* cmp ecx, edx */ /* 0x36141909: cmp ecx, edx */ 653 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 655 _flag_k = FK_CMP; 656 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141928; /* 0x3614190B: je 0x36141928 */ 657 L_3614190D: 658 eax = MEM32(ebp + 0x10); /* 0x3614190D: mov eax, dword ptr [ebp + 0x10] */ 659 PUSH32(esp, esi); /* 0x36141910: push esi */ 660 L_36141911: 661 /* test eax, eax */ /* 0x36141911: test eax, eax */ 662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 663 _cf = 0; 664 _flag_k = FK_TEST; 665 if (TEST_Z(_flag_a, _flag_b)) goto L_36141919; /* 0x36141913: je 0x36141919 */ 666 L_36141915: 667 esi = MEM32(ecx); /* 0x36141915: mov esi, dword ptr [ecx] */ 668 MEM32(eax) = esi; /* 0x36141917: mov dword ptr [eax], esi */ 669 L_36141919: 670 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 671 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 672 ecx = ecx + 4; /* 0x36141919: add ecx, 4 */ 673 _flag_k = FK_ADD; 674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 676 eax = eax + 4; /* 0x3614191C: add eax, 4 */ 677 _flag_k = FK_ADD; 678 /* cmp ecx, edx */ /* 0x3614191F: cmp ecx, edx */ 679 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 681 _flag_k = FK_CMP; 682 RECOMP_BACKEDGE(); 683 if (CMP_NE(_flag_a, _flag_b)) goto L_36141911; /* 0x36141921: jne 0x36141911 */ 684 L_36141923: 685 esi = POP32_VAL(esp); /* 0x36141923: pop esi */ 686 ebp = POP32_VAL(esp); /* 0x36141924: pop ebp */ 687 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36141925: ret 0xc */ 688 L_36141928: 689 eax = MEM32(ebp + 0x10); /* 0x36141928: mov eax, dword ptr [ebp + 0x10] */ 690 ebp = POP32_VAL(esp); /* 0x3614192B: pop ebp */ 691 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3614192C: ret 0xc */ 692 RECOMP_REGS_OUT(); 693 } 694 695 void sub_36141930(void) { 696 int _fpu_cmp = 0; 697 uint32_t _cf = 0; 698 int _df = 1; 699 uint32_t _flag_k = FK_NONE; 700 uint32_t _flag_a = 0, _flag_b = 0; 701 uint32_t _itail_tgt = 0; 702 RECOMP_REGS_LOCALS 703 RECOMP_ENTER(0x36141930u); 704 705 L_36141930: 706 PUSH32(esp, ebp); /* 0x36141930: push ebp */ 707 ebp = esp; /* 0x36141931: mov ebp, esp */ 708 PUSH32(esp, ecx); /* 0x36141933: push ecx */ 709 PUSH32(esp, ebx); /* 0x36141934: push ebx */ 710 PUSH32(esp, esi); /* 0x36141935: push esi */ 711 PUSH32(esp, edi); /* 0x36141936: push edi */ 712 PUSH32(esp, 0x24u); /* 0x36141937: push 0x24 */ 713 esi = ecx; /* 0x36141939: mov esi, ecx */ 714 RECOMP_ICALL(0x3615FD6Au); /* 0x3614193B: call 0x3615fd6a */ /* not lifted */ 715 RECOMP_FLAGS_IN(); 716 edi = MEM32(ebp + 0x10); /* 0x36141940: mov edi, dword ptr [ebp + 0x10] */ 717 ebx = MEM32(ebp + 0x14); /* 0x36141943: mov ebx, dword ptr [ebp + 0x14] */ 718 MEM32(eax + 0x4) = edi; /* 0x36141946: mov dword ptr [eax + 4], edi */ 719 MEM8(eax + 0x20) = (uint8_t)(0); /* 0x36141949: mov byte ptr [eax + 0x20], 0 */ 720 MEM8(eax + 0x21) = (uint8_t)(0); /* 0x3614194D: mov byte ptr [eax + 0x21], 0 */ 721 ecx = MEM32(esi + 0x8); /* 0x36141951: mov ecx, dword ptr [esi + 8] */ 722 MEM32(eax) = ecx; /* 0x36141954: mov dword ptr [eax], ecx */ 723 edx = MEM32(esi + 0x8); /* 0x36141956: mov edx, dword ptr [esi + 8] */ 724 MEM32(ebp + (-0x4)) = eax; /* 0x36141959: mov dword ptr [ebp - 4], eax */ 725 MEM32(eax + 0x8) = edx; /* 0x3614195C: mov dword ptr [eax + 8], edx */ 726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 727 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 728 eax = eax + 0xCu; /* 0x3614195F: add eax, 0xc */ 729 _flag_k = FK_ADD; 730 PUSH32(esp, ebx); /* 0x36141962: push ebx */ 731 PUSH32(esp, eax); /* 0x36141963: push eax */ 732 RECOMP_ICALL(0x36141C80u); /* 0x36141964: call 0x36141c80 */ /* not lifted */ 733 RECOMP_FLAGS_IN(); 734 ecx = MEM32(esi + 0x10); /* 0x36141969: mov ecx, dword ptr [esi + 0x10] */ 735 eax = MEM32(esi + 0x4); /* 0x3614196C: mov eax, dword ptr [esi + 4] */ 736 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 738 esp = esp + 0xCu; /* 0x3614196F: add esp, 0xc */ 739 _flag_k = FK_ADD; 740 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 741 ecx = ecx + 1; /* 0x36141972: inc ecx */ 742 _flag_k = FK_INC; 743 /* cmp edi, eax */ /* 0x36141973: cmp edi, eax */ 744 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 746 _flag_k = FK_CMP; 747 MEM32(esi + 0x10) = ecx; /* 0x36141975: mov dword ptr [esi + 0x10], ecx */ 748 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614199C; /* 0x36141978: je 0x3614199c */ 749 L_3614197A: 750 eax = MEM32(ebp + 0xC); /* 0x3614197A: mov eax, dword ptr [ebp + 0xc] */ 751 /* cmp eax, MEM32(esi + 0x8) */ /* 0x3614197D: cmp eax, dword ptr [esi + 8] */ 752 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 754 _flag_k = FK_CMP; 755 if (CMP_NE(_flag_a, _flag_b)) goto L_3614199C; /* 0x36141980: jne 0x3614199c */ 756 L_36141982: 757 ecx = MEM32(ebx); /* 0x36141982: mov ecx, dword ptr [ebx] */ 758 /* cmp ecx, MEM32(edi + 0xC) */ /* 0x36141984: cmp ecx, dword ptr [edi + 0xc] */ 759 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 761 _flag_k = FK_CMP; 762 if (CMP_B(_flag_a, _flag_b)) goto L_3614199C; /* 0x36141987: jb 0x3614199c */ 763 L_36141989: 764 ecx = MEM32(ebp + (-0x4)); /* 0x36141989: mov ecx, dword ptr [ebp - 4] */ 765 MEM32(edi + 0x8) = ecx; /* 0x3614198C: mov dword ptr [edi + 8], ecx */ 766 eax = MEM32(esi + 0x4); /* 0x3614198F: mov eax, dword ptr [esi + 4] */ 767 /* cmp edi, MEM32(eax + 0x8) */ /* 0x36141992: cmp edi, dword ptr [eax + 8] */ 768 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 770 _flag_k = FK_CMP; 771 if (CMP_NE(_flag_a, _flag_b)) goto L_361419BC; /* 0x36141995: jne 0x361419bc */ 772 L_36141997: 773 MEM32(eax + 0x8) = ecx; /* 0x36141997: mov dword ptr [eax + 8], ecx */ 774 goto L_361419BC; /* 0x3614199A: jmp 0x361419bc */ 775 L_3614199C: 776 ecx = MEM32(ebp + (-0x4)); /* 0x3614199C: mov ecx, dword ptr [ebp - 4] */ 777 MEM32(edi) = ecx; /* 0x3614199F: mov dword ptr [edi], ecx */ 778 eax = MEM32(esi + 0x4); /* 0x361419A1: mov eax, dword ptr [esi + 4] */ 779 /* cmp edi, eax */ /* 0x361419A4: cmp edi, eax */ 780 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 782 _flag_k = FK_CMP; 783 if (CMP_NE(_flag_a, _flag_b)) goto L_361419B3; /* 0x361419A6: jne 0x361419b3 */ 784 L_361419A8: 785 MEM32(eax + 0x4) = ecx; /* 0x361419A8: mov dword ptr [eax + 4], ecx */ 786 edx = MEM32(esi + 0x4); /* 0x361419AB: mov edx, dword ptr [esi + 4] */ 787 MEM32(edx + 0x8) = ecx; /* 0x361419AE: mov dword ptr [edx + 8], ecx */ 788 goto L_361419BC; /* 0x361419B1: jmp 0x361419bc */ 789 L_361419B3: 790 /* cmp edi, MEM32(eax) */ /* 0x361419B3: cmp edi, dword ptr [eax] */ 791 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 793 _flag_k = FK_CMP; 794 if (CMP_NE(_flag_a, _flag_b)) goto L_361419BC; /* 0x361419B5: jne 0x361419bc */ 795 L_361419B7: 796 ecx = MEM32(ebp + (-0x4)); /* 0x361419B7: mov ecx, dword ptr [ebp - 4] */ 797 MEM32(eax) = ecx; /* 0x361419BA: mov dword ptr [eax], ecx */ 798 L_361419BC: 799 edx = MEM32(esi + 0x4); /* 0x361419BC: mov edx, dword ptr [esi + 4] */ 800 eax = MEM32(ebp + (-0x4)); /* 0x361419BF: mov eax, dword ptr [ebp - 4] */ 801 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361419C2: cmp eax, dword ptr [edx + 4] */ 802 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 804 _flag_k = FK_CMP; 805 SET_LO8(ebx, 1); /* 0x361419C5: mov bl, 1 */ 806 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419C7: je 0x36141b4d */ 807 L_361419CD: 808 ecx = MEM32(eax + 0x4); /* 0x361419CD: mov ecx, dword ptr [eax + 4] */ 809 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361419D0: mov dl, byte ptr [ecx + 0x20] */ 810 /* test LO8(edx), LO8(edx) */ /* 0x361419D3: test dl, dl */ 811 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 812 _cf = 0; 813 _flag_k = FK_NARROW(FK_TEST, 24); 814 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419D5: jne 0x36141b4d */ 815 L_361419DB: 816 edi = MEM32(ecx + 0x4); /* 0x361419DB: mov edi, dword ptr [ecx + 4] */ 817 edx = MEM32(edi); /* 0x361419DE: mov edx, dword ptr [edi] */ 818 /* cmp ecx, edx */ /* 0x361419E0: cmp ecx, edx */ 819 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 821 _flag_k = FK_CMP; 822 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AA9; /* 0x361419E2: jne 0x36141aa9 */ 823 L_361419E8: 824 edx = MEM32(edi + 0x8); /* 0x361419E8: mov edx, dword ptr [edi + 8] */ 825 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361419EB: cmp byte ptr [edx + 0x20], 0 */ 826 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 828 _flag_k = FK_NARROW(FK_CMP, 24); 829 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A0C; /* 0x361419EF: jne 0x36141a0c */ 830 L_361419F1: 831 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F1: mov byte ptr [ecx + 0x20], bl */ 832 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F4: mov byte ptr [edx + 0x20], bl */ 833 ecx = MEM32(eax + 0x4); /* 0x361419F7: mov ecx, dword ptr [eax + 4] */ 834 edx = MEM32(ecx + 0x4); /* 0x361419FA: mov edx, dword ptr [ecx + 4] */ 835 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361419FD: mov byte ptr [edx + 0x20], 0 */ 836 eax = MEM32(eax + 0x4); /* 0x36141A01: mov eax, dword ptr [eax + 4] */ 837 eax = MEM32(eax + 0x4); /* 0x36141A04: mov eax, dword ptr [eax + 4] */ 838 goto L_36141B41; /* 0x36141A07: jmp 0x36141b41 */ 839 L_36141A0C: 840 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36141A0C: cmp eax, dword ptr [ecx + 8] */ 841 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 843 _flag_k = FK_CMP; 844 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A4B; /* 0x36141A0F: jne 0x36141a4b */ 845 L_36141A11: 846 eax = ecx; /* 0x36141A11: mov eax, ecx */ 847 ecx = MEM32(eax + 0x8); /* 0x36141A13: mov ecx, dword ptr [eax + 8] */ 848 edx = MEM32(ecx); /* 0x36141A16: mov edx, dword ptr [ecx] */ 849 MEM32(eax + 0x8) = edx; /* 0x36141A18: mov dword ptr [eax + 8], edx */ 850 edx = MEM32(ecx); /* 0x36141A1B: mov edx, dword ptr [ecx] */ 851 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141A1D: cmp edx, dword ptr [esi + 8] */ 852 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 854 _flag_k = FK_CMP; 855 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A25; /* 0x36141A20: je 0x36141a25 */ 856 L_36141A22: 857 MEM32(edx + 0x4) = eax; /* 0x36141A22: mov dword ptr [edx + 4], eax */ 858 L_36141A25: 859 edx = MEM32(eax + 0x4); /* 0x36141A25: mov edx, dword ptr [eax + 4] */ 860 MEM32(ecx + 0x4) = edx; /* 0x36141A28: mov dword ptr [ecx + 4], edx */ 861 edx = MEM32(esi + 0x4); /* 0x36141A2B: mov edx, dword ptr [esi + 4] */ 862 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141A2E: cmp eax, dword ptr [edx + 4] */ 863 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 865 _flag_k = FK_CMP; 866 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A38; /* 0x36141A31: jne 0x36141a38 */ 867 L_36141A33: 868 MEM32(edx + 0x4) = ecx; /* 0x36141A33: mov dword ptr [edx + 4], ecx */ 869 goto L_36141A46; /* 0x36141A36: jmp 0x36141a46 */ 870 L_36141A38: 871 edx = MEM32(eax + 0x4); /* 0x36141A38: mov edx, dword ptr [eax + 4] */ 872 /* cmp eax, MEM32(edx) */ /* 0x36141A3B: cmp eax, dword ptr [edx] */ 873 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 875 _flag_k = FK_CMP; 876 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A43; /* 0x36141A3D: jne 0x36141a43 */ 877 L_36141A3F: 878 MEM32(edx) = ecx; /* 0x36141A3F: mov dword ptr [edx], ecx */ 879 goto L_36141A46; /* 0x36141A41: jmp 0x36141a46 */ 880 L_36141A43: 881 MEM32(edx + 0x8) = ecx; /* 0x36141A43: mov dword ptr [edx + 8], ecx */ 882 L_36141A46: 883 MEM32(ecx) = eax; /* 0x36141A46: mov dword ptr [ecx], eax */ 884 MEM32(eax + 0x4) = ecx; /* 0x36141A48: mov dword ptr [eax + 4], ecx */ 885 L_36141A4B: 886 ecx = MEM32(eax + 0x4); /* 0x36141A4B: mov ecx, dword ptr [eax + 4] */ 887 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141A4E: mov byte ptr [ecx + 0x20], bl */ 888 edx = MEM32(eax + 0x4); /* 0x36141A51: mov edx, dword ptr [eax + 4] */ 889 ecx = MEM32(edx + 0x4); /* 0x36141A54: mov ecx, dword ptr [edx + 4] */ 890 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141A57: mov byte ptr [ecx + 0x20], 0 */ 891 edx = MEM32(eax + 0x4); /* 0x36141A5B: mov edx, dword ptr [eax + 4] */ 892 ecx = MEM32(edx + 0x4); /* 0x36141A5E: mov ecx, dword ptr [edx + 4] */ 893 edx = MEM32(ecx); /* 0x36141A61: mov edx, dword ptr [ecx] */ 894 edi = MEM32(edx + 0x8); /* 0x36141A63: mov edi, dword ptr [edx + 8] */ 895 MEM32(ecx) = edi; /* 0x36141A66: mov dword ptr [ecx], edi */ 896 edi = MEM32(edx + 0x8); /* 0x36141A68: mov edi, dword ptr [edx + 8] */ 897 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141A6B: cmp edi, dword ptr [esi + 8] */ 898 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 900 _flag_k = FK_CMP; 901 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A73; /* 0x36141A6E: je 0x36141a73 */ 902 L_36141A70: 903 MEM32(edi + 0x4) = ecx; /* 0x36141A70: mov dword ptr [edi + 4], ecx */ 904 L_36141A73: 905 edi = MEM32(ecx + 0x4); /* 0x36141A73: mov edi, dword ptr [ecx + 4] */ 906 MEM32(edx + 0x4) = edi; /* 0x36141A76: mov dword ptr [edx + 4], edi */ 907 edi = MEM32(esi + 0x4); /* 0x36141A79: mov edi, dword ptr [esi + 4] */ 908 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141A7C: cmp ecx, dword ptr [edi + 4] */ 909 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 911 _flag_k = FK_CMP; 912 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A8C; /* 0x36141A7F: jne 0x36141a8c */ 913 L_36141A81: 914 MEM32(edi + 0x4) = edx; /* 0x36141A81: mov dword ptr [edi + 4], edx */ 915 MEM32(edx + 0x8) = ecx; /* 0x36141A84: mov dword ptr [edx + 8], ecx */ 916 goto L_36141B3E; /* 0x36141A87: jmp 0x36141b3e */ 917 L_36141A8C: 918 edi = MEM32(ecx + 0x4); /* 0x36141A8C: mov edi, dword ptr [ecx + 4] */ 919 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36141A8F: cmp ecx, dword ptr [edi + 8] */ 920 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 922 _flag_k = FK_CMP; 923 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A9F; /* 0x36141A92: jne 0x36141a9f */ 924 L_36141A94: 925 MEM32(edi + 0x8) = edx; /* 0x36141A94: mov dword ptr [edi + 8], edx */ 926 MEM32(edx + 0x8) = ecx; /* 0x36141A97: mov dword ptr [edx + 8], ecx */ 927 goto L_36141B3E; /* 0x36141A9A: jmp 0x36141b3e */ 928 L_36141A9F: 929 MEM32(edi) = edx; /* 0x36141A9F: mov dword ptr [edi], edx */ 930 MEM32(edx + 0x8) = ecx; /* 0x36141AA1: mov dword ptr [edx + 8], ecx */ 931 goto L_36141B3E; /* 0x36141AA4: jmp 0x36141b3e */ 932 L_36141AA9: 933 /* cmp MEM8(edx + 0x20), 0 */ /* 0x36141AA9: cmp byte ptr [edx + 0x20], 0 */ 934 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 936 _flag_k = FK_NARROW(FK_CMP, 24); 937 RECOMP_BACKEDGE(); 938 if (CMP_EQ(_flag_a, _flag_b)) goto L_361419F1; /* 0x36141AAD: je 0x361419f1 */ 939 L_36141AB3: 940 /* cmp eax, MEM32(ecx) */ /* 0x36141AB3: cmp eax, dword ptr [ecx] */ 941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 943 _flag_k = FK_CMP; 944 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AF3; /* 0x36141AB5: jne 0x36141af3 */ 945 L_36141AB7: 946 eax = ecx; /* 0x36141AB7: mov eax, ecx */ 947 ecx = MEM32(eax); /* 0x36141AB9: mov ecx, dword ptr [eax] */ 948 edx = MEM32(ecx + 0x8); /* 0x36141ABB: mov edx, dword ptr [ecx + 8] */ 949 MEM32(eax) = edx; /* 0x36141ABE: mov dword ptr [eax], edx */ 950 edx = MEM32(ecx + 0x8); /* 0x36141AC0: mov edx, dword ptr [ecx + 8] */ 951 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141AC3: cmp edx, dword ptr [esi + 8] */ 952 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 954 _flag_k = FK_CMP; 955 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141ACB; /* 0x36141AC6: je 0x36141acb */ 956 L_36141AC8: 957 MEM32(edx + 0x4) = eax; /* 0x36141AC8: mov dword ptr [edx + 4], eax */ 958 L_36141ACB: 959 edx = MEM32(eax + 0x4); /* 0x36141ACB: mov edx, dword ptr [eax + 4] */ 960 MEM32(ecx + 0x4) = edx; /* 0x36141ACE: mov dword ptr [ecx + 4], edx */ 961 edx = MEM32(esi + 0x4); /* 0x36141AD1: mov edx, dword ptr [esi + 4] */ 962 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141AD4: cmp eax, dword ptr [edx + 4] */ 963 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 965 _flag_k = FK_CMP; 966 if (CMP_NE(_flag_a, _flag_b)) goto L_36141ADE; /* 0x36141AD7: jne 0x36141ade */ 967 L_36141AD9: 968 MEM32(edx + 0x4) = ecx; /* 0x36141AD9: mov dword ptr [edx + 4], ecx */ 969 goto L_36141AED; /* 0x36141ADC: jmp 0x36141aed */ 970 L_36141ADE: 971 edx = MEM32(eax + 0x4); /* 0x36141ADE: mov edx, dword ptr [eax + 4] */ 972 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36141AE1: cmp eax, dword ptr [edx + 8] */ 973 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 975 _flag_k = FK_CMP; 976 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AEB; /* 0x36141AE4: jne 0x36141aeb */ 977 L_36141AE6: 978 MEM32(edx + 0x8) = ecx; /* 0x36141AE6: mov dword ptr [edx + 8], ecx */ 979 goto L_36141AED; /* 0x36141AE9: jmp 0x36141aed */ 980 L_36141AEB: 981 MEM32(edx) = ecx; /* 0x36141AEB: mov dword ptr [edx], ecx */ 982 L_36141AED: 983 MEM32(ecx + 0x8) = eax; /* 0x36141AED: mov dword ptr [ecx + 8], eax */ 984 MEM32(eax + 0x4) = ecx; /* 0x36141AF0: mov dword ptr [eax + 4], ecx */ 985 L_36141AF3: 986 ecx = MEM32(eax + 0x4); /* 0x36141AF3: mov ecx, dword ptr [eax + 4] */ 987 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141AF6: mov byte ptr [ecx + 0x20], bl */ 988 edx = MEM32(eax + 0x4); /* 0x36141AF9: mov edx, dword ptr [eax + 4] */ 989 ecx = MEM32(edx + 0x4); /* 0x36141AFC: mov ecx, dword ptr [edx + 4] */ 990 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141AFF: mov byte ptr [ecx + 0x20], 0 */ 991 edx = MEM32(eax + 0x4); /* 0x36141B03: mov edx, dword ptr [eax + 4] */ 992 ecx = MEM32(edx + 0x4); /* 0x36141B06: mov ecx, dword ptr [edx + 4] */ 993 edx = MEM32(ecx + 0x8); /* 0x36141B09: mov edx, dword ptr [ecx + 8] */ 994 edi = MEM32(edx); /* 0x36141B0C: mov edi, dword ptr [edx] */ 995 MEM32(ecx + 0x8) = edi; /* 0x36141B0E: mov dword ptr [ecx + 8], edi */ 996 edi = MEM32(edx); /* 0x36141B11: mov edi, dword ptr [edx] */ 997 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141B13: cmp edi, dword ptr [esi + 8] */ 998 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1000 _flag_k = FK_CMP; 1001 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B1B; /* 0x36141B16: je 0x36141b1b */ 1002 L_36141B18: 1003 MEM32(edi + 0x4) = ecx; /* 0x36141B18: mov dword ptr [edi + 4], ecx */ 1004 L_36141B1B: 1005 edi = MEM32(ecx + 0x4); /* 0x36141B1B: mov edi, dword ptr [ecx + 4] */ 1006 MEM32(edx + 0x4) = edi; /* 0x36141B1E: mov dword ptr [edx + 4], edi */ 1007 edi = MEM32(esi + 0x4); /* 0x36141B21: mov edi, dword ptr [esi + 4] */ 1008 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141B24: cmp ecx, dword ptr [edi + 4] */ 1009 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1011 _flag_k = FK_CMP; 1012 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B2E; /* 0x36141B27: jne 0x36141b2e */ 1013 L_36141B29: 1014 MEM32(edi + 0x4) = edx; /* 0x36141B29: mov dword ptr [edi + 4], edx */ 1015 goto L_36141B3C; /* 0x36141B2C: jmp 0x36141b3c */ 1016 L_36141B2E: 1017 edi = MEM32(ecx + 0x4); /* 0x36141B2E: mov edi, dword ptr [ecx + 4] */ 1018 /* cmp ecx, MEM32(edi) */ /* 0x36141B31: cmp ecx, dword ptr [edi] */ 1019 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1021 _flag_k = FK_CMP; 1022 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B39; /* 0x36141B33: jne 0x36141b39 */ 1023 L_36141B35: 1024 MEM32(edi) = edx; /* 0x36141B35: mov dword ptr [edi], edx */ 1025 goto L_36141B3C; /* 0x36141B37: jmp 0x36141b3c */ 1026 L_36141B39: 1027 MEM32(edi + 0x8) = edx; /* 0x36141B39: mov dword ptr [edi + 8], edx */ 1028 L_36141B3C: 1029 MEM32(edx) = ecx; /* 0x36141B3C: mov dword ptr [edx], ecx */ 1030 L_36141B3E: 1031 MEM32(ecx + 0x4) = edx; /* 0x36141B3E: mov dword ptr [ecx + 4], edx */ 1032 L_36141B41: 1033 ecx = MEM32(esi + 0x4); /* 0x36141B41: mov ecx, dword ptr [esi + 4] */ 1034 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36141B44: cmp eax, dword ptr [ecx + 4] */ 1035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1037 _flag_k = FK_CMP; 1038 RECOMP_BACKEDGE(); 1039 if (CMP_NE(_flag_a, _flag_b)) goto L_361419CD; /* 0x36141B47: jne 0x361419cd */ 1040 L_36141B4D: 1041 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 1042 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 1043 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 1044 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 1045 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 1046 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 1047 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 1048 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 1049 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 1050 esp = ebp; /* 0x36141B61: mov esp, ebp */ 1051 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 1052 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 1053 RECOMP_REGS_OUT(); 1054 } 1055 1056 void sub_361419CD(void) { 1057 int _fpu_cmp = 0; 1058 uint32_t _cf = 0; 1059 int _df = 1; 1060 uint32_t _flag_k = FK_NONE; 1061 uint32_t _flag_a = 0, _flag_b = 0; 1062 uint32_t _itail_tgt = 0; 1063 RECOMP_REGS_LOCALS 1064 RECOMP_ENTER(0x361419CDu); 1065 1066 L_361419CD: 1067 ecx = MEM32(eax + 0x4); /* 0x361419CD: mov ecx, dword ptr [eax + 4] */ 1068 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361419D0: mov dl, byte ptr [ecx + 0x20] */ 1069 /* test LO8(edx), LO8(edx) */ /* 0x361419D3: test dl, dl */ 1070 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1071 _cf = 0; 1072 _flag_k = FK_NARROW(FK_TEST, 24); 1073 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419D5: jne 0x36141b4d */ 1074 L_361419DB: 1075 edi = MEM32(ecx + 0x4); /* 0x361419DB: mov edi, dword ptr [ecx + 4] */ 1076 edx = MEM32(edi); /* 0x361419DE: mov edx, dword ptr [edi] */ 1077 /* cmp ecx, edx */ /* 0x361419E0: cmp ecx, edx */ 1078 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1080 _flag_k = FK_CMP; 1081 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AA9; /* 0x361419E2: jne 0x36141aa9 */ 1082 L_361419E8: 1083 edx = MEM32(edi + 0x8); /* 0x361419E8: mov edx, dword ptr [edi + 8] */ 1084 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361419EB: cmp byte ptr [edx + 0x20], 0 */ 1085 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1087 _flag_k = FK_NARROW(FK_CMP, 24); 1088 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A0C; /* 0x361419EF: jne 0x36141a0c */ 1089 L_361419F1: 1090 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F1: mov byte ptr [ecx + 0x20], bl */ 1091 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F4: mov byte ptr [edx + 0x20], bl */ 1092 ecx = MEM32(eax + 0x4); /* 0x361419F7: mov ecx, dword ptr [eax + 4] */ 1093 edx = MEM32(ecx + 0x4); /* 0x361419FA: mov edx, dword ptr [ecx + 4] */ 1094 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361419FD: mov byte ptr [edx + 0x20], 0 */ 1095 eax = MEM32(eax + 0x4); /* 0x36141A01: mov eax, dword ptr [eax + 4] */ 1096 eax = MEM32(eax + 0x4); /* 0x36141A04: mov eax, dword ptr [eax + 4] */ 1097 goto L_36141B41; /* 0x36141A07: jmp 0x36141b41 */ 1098 L_36141A0C: 1099 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36141A0C: cmp eax, dword ptr [ecx + 8] */ 1100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1102 _flag_k = FK_CMP; 1103 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A4B; /* 0x36141A0F: jne 0x36141a4b */ 1104 L_36141A11: 1105 eax = ecx; /* 0x36141A11: mov eax, ecx */ 1106 ecx = MEM32(eax + 0x8); /* 0x36141A13: mov ecx, dword ptr [eax + 8] */ 1107 edx = MEM32(ecx); /* 0x36141A16: mov edx, dword ptr [ecx] */ 1108 MEM32(eax + 0x8) = edx; /* 0x36141A18: mov dword ptr [eax + 8], edx */ 1109 edx = MEM32(ecx); /* 0x36141A1B: mov edx, dword ptr [ecx] */ 1110 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141A1D: cmp edx, dword ptr [esi + 8] */ 1111 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1113 _flag_k = FK_CMP; 1114 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A25; /* 0x36141A20: je 0x36141a25 */ 1115 L_36141A22: 1116 MEM32(edx + 0x4) = eax; /* 0x36141A22: mov dword ptr [edx + 4], eax */ 1117 L_36141A25: 1118 edx = MEM32(eax + 0x4); /* 0x36141A25: mov edx, dword ptr [eax + 4] */ 1119 MEM32(ecx + 0x4) = edx; /* 0x36141A28: mov dword ptr [ecx + 4], edx */ 1120 edx = MEM32(esi + 0x4); /* 0x36141A2B: mov edx, dword ptr [esi + 4] */ 1121 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141A2E: cmp eax, dword ptr [edx + 4] */ 1122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1124 _flag_k = FK_CMP; 1125 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A38; /* 0x36141A31: jne 0x36141a38 */ 1126 L_36141A33: 1127 MEM32(edx + 0x4) = ecx; /* 0x36141A33: mov dword ptr [edx + 4], ecx */ 1128 goto L_36141A46; /* 0x36141A36: jmp 0x36141a46 */ 1129 L_36141A38: 1130 edx = MEM32(eax + 0x4); /* 0x36141A38: mov edx, dword ptr [eax + 4] */ 1131 /* cmp eax, MEM32(edx) */ /* 0x36141A3B: cmp eax, dword ptr [edx] */ 1132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1134 _flag_k = FK_CMP; 1135 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A43; /* 0x36141A3D: jne 0x36141a43 */ 1136 L_36141A3F: 1137 MEM32(edx) = ecx; /* 0x36141A3F: mov dword ptr [edx], ecx */ 1138 goto L_36141A46; /* 0x36141A41: jmp 0x36141a46 */ 1139 L_36141A43: 1140 MEM32(edx + 0x8) = ecx; /* 0x36141A43: mov dword ptr [edx + 8], ecx */ 1141 L_36141A46: 1142 MEM32(ecx) = eax; /* 0x36141A46: mov dword ptr [ecx], eax */ 1143 MEM32(eax + 0x4) = ecx; /* 0x36141A48: mov dword ptr [eax + 4], ecx */ 1144 L_36141A4B: 1145 ecx = MEM32(eax + 0x4); /* 0x36141A4B: mov ecx, dword ptr [eax + 4] */ 1146 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141A4E: mov byte ptr [ecx + 0x20], bl */ 1147 edx = MEM32(eax + 0x4); /* 0x36141A51: mov edx, dword ptr [eax + 4] */ 1148 ecx = MEM32(edx + 0x4); /* 0x36141A54: mov ecx, dword ptr [edx + 4] */ 1149 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141A57: mov byte ptr [ecx + 0x20], 0 */ 1150 edx = MEM32(eax + 0x4); /* 0x36141A5B: mov edx, dword ptr [eax + 4] */ 1151 ecx = MEM32(edx + 0x4); /* 0x36141A5E: mov ecx, dword ptr [edx + 4] */ 1152 edx = MEM32(ecx); /* 0x36141A61: mov edx, dword ptr [ecx] */ 1153 edi = MEM32(edx + 0x8); /* 0x36141A63: mov edi, dword ptr [edx + 8] */ 1154 MEM32(ecx) = edi; /* 0x36141A66: mov dword ptr [ecx], edi */ 1155 edi = MEM32(edx + 0x8); /* 0x36141A68: mov edi, dword ptr [edx + 8] */ 1156 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141A6B: cmp edi, dword ptr [esi + 8] */ 1157 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1159 _flag_k = FK_CMP; 1160 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A73; /* 0x36141A6E: je 0x36141a73 */ 1161 L_36141A70: 1162 MEM32(edi + 0x4) = ecx; /* 0x36141A70: mov dword ptr [edi + 4], ecx */ 1163 L_36141A73: 1164 edi = MEM32(ecx + 0x4); /* 0x36141A73: mov edi, dword ptr [ecx + 4] */ 1165 MEM32(edx + 0x4) = edi; /* 0x36141A76: mov dword ptr [edx + 4], edi */ 1166 edi = MEM32(esi + 0x4); /* 0x36141A79: mov edi, dword ptr [esi + 4] */ 1167 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141A7C: cmp ecx, dword ptr [edi + 4] */ 1168 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1170 _flag_k = FK_CMP; 1171 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A8C; /* 0x36141A7F: jne 0x36141a8c */ 1172 L_36141A81: 1173 MEM32(edi + 0x4) = edx; /* 0x36141A81: mov dword ptr [edi + 4], edx */ 1174 MEM32(edx + 0x8) = ecx; /* 0x36141A84: mov dword ptr [edx + 8], ecx */ 1175 goto L_36141B3E; /* 0x36141A87: jmp 0x36141b3e */ 1176 L_36141A8C: 1177 edi = MEM32(ecx + 0x4); /* 0x36141A8C: mov edi, dword ptr [ecx + 4] */ 1178 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36141A8F: cmp ecx, dword ptr [edi + 8] */ 1179 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1181 _flag_k = FK_CMP; 1182 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A9F; /* 0x36141A92: jne 0x36141a9f */ 1183 L_36141A94: 1184 MEM32(edi + 0x8) = edx; /* 0x36141A94: mov dword ptr [edi + 8], edx */ 1185 MEM32(edx + 0x8) = ecx; /* 0x36141A97: mov dword ptr [edx + 8], ecx */ 1186 goto L_36141B3E; /* 0x36141A9A: jmp 0x36141b3e */ 1187 L_36141A9F: 1188 MEM32(edi) = edx; /* 0x36141A9F: mov dword ptr [edi], edx */ 1189 MEM32(edx + 0x8) = ecx; /* 0x36141AA1: mov dword ptr [edx + 8], ecx */ 1190 goto L_36141B3E; /* 0x36141AA4: jmp 0x36141b3e */ 1191 L_36141AA9: 1192 /* cmp MEM8(edx + 0x20), 0 */ /* 0x36141AA9: cmp byte ptr [edx + 0x20], 0 */ 1193 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1195 _flag_k = FK_NARROW(FK_CMP, 24); 1196 RECOMP_BACKEDGE(); 1197 if (CMP_EQ(_flag_a, _flag_b)) goto L_361419F1; /* 0x36141AAD: je 0x361419f1 */ 1198 L_36141AB3: 1199 /* cmp eax, MEM32(ecx) */ /* 0x36141AB3: cmp eax, dword ptr [ecx] */ 1200 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1202 _flag_k = FK_CMP; 1203 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AF3; /* 0x36141AB5: jne 0x36141af3 */ 1204 L_36141AB7: 1205 eax = ecx; /* 0x36141AB7: mov eax, ecx */ 1206 ecx = MEM32(eax); /* 0x36141AB9: mov ecx, dword ptr [eax] */ 1207 edx = MEM32(ecx + 0x8); /* 0x36141ABB: mov edx, dword ptr [ecx + 8] */ 1208 MEM32(eax) = edx; /* 0x36141ABE: mov dword ptr [eax], edx */ 1209 edx = MEM32(ecx + 0x8); /* 0x36141AC0: mov edx, dword ptr [ecx + 8] */ 1210 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141AC3: cmp edx, dword ptr [esi + 8] */ 1211 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1213 _flag_k = FK_CMP; 1214 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141ACB; /* 0x36141AC6: je 0x36141acb */ 1215 L_36141AC8: 1216 MEM32(edx + 0x4) = eax; /* 0x36141AC8: mov dword ptr [edx + 4], eax */ 1217 L_36141ACB: 1218 edx = MEM32(eax + 0x4); /* 0x36141ACB: mov edx, dword ptr [eax + 4] */ 1219 MEM32(ecx + 0x4) = edx; /* 0x36141ACE: mov dword ptr [ecx + 4], edx */ 1220 edx = MEM32(esi + 0x4); /* 0x36141AD1: mov edx, dword ptr [esi + 4] */ 1221 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141AD4: cmp eax, dword ptr [edx + 4] */ 1222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1224 _flag_k = FK_CMP; 1225 if (CMP_NE(_flag_a, _flag_b)) goto L_36141ADE; /* 0x36141AD7: jne 0x36141ade */ 1226 L_36141AD9: 1227 MEM32(edx + 0x4) = ecx; /* 0x36141AD9: mov dword ptr [edx + 4], ecx */ 1228 goto L_36141AED; /* 0x36141ADC: jmp 0x36141aed */ 1229 L_36141ADE: 1230 edx = MEM32(eax + 0x4); /* 0x36141ADE: mov edx, dword ptr [eax + 4] */ 1231 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36141AE1: cmp eax, dword ptr [edx + 8] */ 1232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1234 _flag_k = FK_CMP; 1235 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AEB; /* 0x36141AE4: jne 0x36141aeb */ 1236 L_36141AE6: 1237 MEM32(edx + 0x8) = ecx; /* 0x36141AE6: mov dword ptr [edx + 8], ecx */ 1238 goto L_36141AED; /* 0x36141AE9: jmp 0x36141aed */ 1239 L_36141AEB: 1240 MEM32(edx) = ecx; /* 0x36141AEB: mov dword ptr [edx], ecx */ 1241 L_36141AED: 1242 MEM32(ecx + 0x8) = eax; /* 0x36141AED: mov dword ptr [ecx + 8], eax */ 1243 MEM32(eax + 0x4) = ecx; /* 0x36141AF0: mov dword ptr [eax + 4], ecx */ 1244 L_36141AF3: 1245 ecx = MEM32(eax + 0x4); /* 0x36141AF3: mov ecx, dword ptr [eax + 4] */ 1246 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141AF6: mov byte ptr [ecx + 0x20], bl */ 1247 edx = MEM32(eax + 0x4); /* 0x36141AF9: mov edx, dword ptr [eax + 4] */ 1248 ecx = MEM32(edx + 0x4); /* 0x36141AFC: mov ecx, dword ptr [edx + 4] */ 1249 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141AFF: mov byte ptr [ecx + 0x20], 0 */ 1250 edx = MEM32(eax + 0x4); /* 0x36141B03: mov edx, dword ptr [eax + 4] */ 1251 ecx = MEM32(edx + 0x4); /* 0x36141B06: mov ecx, dword ptr [edx + 4] */ 1252 edx = MEM32(ecx + 0x8); /* 0x36141B09: mov edx, dword ptr [ecx + 8] */ 1253 edi = MEM32(edx); /* 0x36141B0C: mov edi, dword ptr [edx] */ 1254 MEM32(ecx + 0x8) = edi; /* 0x36141B0E: mov dword ptr [ecx + 8], edi */ 1255 edi = MEM32(edx); /* 0x36141B11: mov edi, dword ptr [edx] */ 1256 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141B13: cmp edi, dword ptr [esi + 8] */ 1257 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1259 _flag_k = FK_CMP; 1260 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B1B; /* 0x36141B16: je 0x36141b1b */ 1261 L_36141B18: 1262 MEM32(edi + 0x4) = ecx; /* 0x36141B18: mov dword ptr [edi + 4], ecx */ 1263 L_36141B1B: 1264 edi = MEM32(ecx + 0x4); /* 0x36141B1B: mov edi, dword ptr [ecx + 4] */ 1265 MEM32(edx + 0x4) = edi; /* 0x36141B1E: mov dword ptr [edx + 4], edi */ 1266 edi = MEM32(esi + 0x4); /* 0x36141B21: mov edi, dword ptr [esi + 4] */ 1267 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141B24: cmp ecx, dword ptr [edi + 4] */ 1268 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1270 _flag_k = FK_CMP; 1271 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B2E; /* 0x36141B27: jne 0x36141b2e */ 1272 L_36141B29: 1273 MEM32(edi + 0x4) = edx; /* 0x36141B29: mov dword ptr [edi + 4], edx */ 1274 goto L_36141B3C; /* 0x36141B2C: jmp 0x36141b3c */ 1275 L_36141B2E: 1276 edi = MEM32(ecx + 0x4); /* 0x36141B2E: mov edi, dword ptr [ecx + 4] */ 1277 /* cmp ecx, MEM32(edi) */ /* 0x36141B31: cmp ecx, dword ptr [edi] */ 1278 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1280 _flag_k = FK_CMP; 1281 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B39; /* 0x36141B33: jne 0x36141b39 */ 1282 L_36141B35: 1283 MEM32(edi) = edx; /* 0x36141B35: mov dword ptr [edi], edx */ 1284 goto L_36141B3C; /* 0x36141B37: jmp 0x36141b3c */ 1285 L_36141B39: 1286 MEM32(edi + 0x8) = edx; /* 0x36141B39: mov dword ptr [edi + 8], edx */ 1287 L_36141B3C: 1288 MEM32(edx) = ecx; /* 0x36141B3C: mov dword ptr [edx], ecx */ 1289 L_36141B3E: 1290 MEM32(ecx + 0x4) = edx; /* 0x36141B3E: mov dword ptr [ecx + 4], edx */ 1291 L_36141B41: 1292 ecx = MEM32(esi + 0x4); /* 0x36141B41: mov ecx, dword ptr [esi + 4] */ 1293 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36141B44: cmp eax, dword ptr [ecx + 4] */ 1294 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1296 _flag_k = FK_CMP; 1297 RECOMP_BACKEDGE(); 1298 if (CMP_NE(_flag_a, _flag_b)) goto L_361419CD; /* 0x36141B47: jne 0x361419cd */ 1299 L_36141B4D: 1300 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 1301 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 1302 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 1303 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 1304 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 1305 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 1306 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 1307 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 1308 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 1309 esp = ebp; /* 0x36141B61: mov esp, ebp */ 1310 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 1311 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 1312 RECOMP_REGS_OUT(); 1313 } 1314 1315 void sub_361419F1(void) { 1316 int _fpu_cmp = 0; 1317 uint32_t _cf = 0; 1318 int _df = 1; 1319 uint32_t _flag_k = FK_NONE; 1320 uint32_t _flag_a = 0, _flag_b = 0; 1321 uint32_t _itail_tgt = 0; 1322 RECOMP_REGS_LOCALS 1323 RECOMP_ENTER(0x361419F1u); 1324 1325 goto L_361419F1; 1326 L_361419CD: 1327 ecx = MEM32(eax + 0x4); /* 0x361419CD: mov ecx, dword ptr [eax + 4] */ 1328 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361419D0: mov dl, byte ptr [ecx + 0x20] */ 1329 /* test LO8(edx), LO8(edx) */ /* 0x361419D3: test dl, dl */ 1330 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1331 _cf = 0; 1332 _flag_k = FK_NARROW(FK_TEST, 24); 1333 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419D5: jne 0x36141b4d */ 1334 L_361419DB: 1335 edi = MEM32(ecx + 0x4); /* 0x361419DB: mov edi, dword ptr [ecx + 4] */ 1336 edx = MEM32(edi); /* 0x361419DE: mov edx, dword ptr [edi] */ 1337 /* cmp ecx, edx */ /* 0x361419E0: cmp ecx, edx */ 1338 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1340 _flag_k = FK_CMP; 1341 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AA9; /* 0x361419E2: jne 0x36141aa9 */ 1342 L_361419E8: 1343 edx = MEM32(edi + 0x8); /* 0x361419E8: mov edx, dword ptr [edi + 8] */ 1344 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361419EB: cmp byte ptr [edx + 0x20], 0 */ 1345 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1347 _flag_k = FK_NARROW(FK_CMP, 24); 1348 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A0C; /* 0x361419EF: jne 0x36141a0c */ 1349 L_361419F1: 1350 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F1: mov byte ptr [ecx + 0x20], bl */ 1351 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F4: mov byte ptr [edx + 0x20], bl */ 1352 ecx = MEM32(eax + 0x4); /* 0x361419F7: mov ecx, dword ptr [eax + 4] */ 1353 edx = MEM32(ecx + 0x4); /* 0x361419FA: mov edx, dword ptr [ecx + 4] */ 1354 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361419FD: mov byte ptr [edx + 0x20], 0 */ 1355 eax = MEM32(eax + 0x4); /* 0x36141A01: mov eax, dword ptr [eax + 4] */ 1356 eax = MEM32(eax + 0x4); /* 0x36141A04: mov eax, dword ptr [eax + 4] */ 1357 goto L_36141B41; /* 0x36141A07: jmp 0x36141b41 */ 1358 L_36141A0C: 1359 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36141A0C: cmp eax, dword ptr [ecx + 8] */ 1360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1362 _flag_k = FK_CMP; 1363 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A4B; /* 0x36141A0F: jne 0x36141a4b */ 1364 L_36141A11: 1365 eax = ecx; /* 0x36141A11: mov eax, ecx */ 1366 ecx = MEM32(eax + 0x8); /* 0x36141A13: mov ecx, dword ptr [eax + 8] */ 1367 edx = MEM32(ecx); /* 0x36141A16: mov edx, dword ptr [ecx] */ 1368 MEM32(eax + 0x8) = edx; /* 0x36141A18: mov dword ptr [eax + 8], edx */ 1369 edx = MEM32(ecx); /* 0x36141A1B: mov edx, dword ptr [ecx] */ 1370 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141A1D: cmp edx, dword ptr [esi + 8] */ 1371 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1373 _flag_k = FK_CMP; 1374 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A25; /* 0x36141A20: je 0x36141a25 */ 1375 L_36141A22: 1376 MEM32(edx + 0x4) = eax; /* 0x36141A22: mov dword ptr [edx + 4], eax */ 1377 L_36141A25: 1378 edx = MEM32(eax + 0x4); /* 0x36141A25: mov edx, dword ptr [eax + 4] */ 1379 MEM32(ecx + 0x4) = edx; /* 0x36141A28: mov dword ptr [ecx + 4], edx */ 1380 edx = MEM32(esi + 0x4); /* 0x36141A2B: mov edx, dword ptr [esi + 4] */ 1381 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141A2E: cmp eax, dword ptr [edx + 4] */ 1382 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1384 _flag_k = FK_CMP; 1385 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A38; /* 0x36141A31: jne 0x36141a38 */ 1386 L_36141A33: 1387 MEM32(edx + 0x4) = ecx; /* 0x36141A33: mov dword ptr [edx + 4], ecx */ 1388 goto L_36141A46; /* 0x36141A36: jmp 0x36141a46 */ 1389 L_36141A38: 1390 edx = MEM32(eax + 0x4); /* 0x36141A38: mov edx, dword ptr [eax + 4] */ 1391 /* cmp eax, MEM32(edx) */ /* 0x36141A3B: cmp eax, dword ptr [edx] */ 1392 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1394 _flag_k = FK_CMP; 1395 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A43; /* 0x36141A3D: jne 0x36141a43 */ 1396 L_36141A3F: 1397 MEM32(edx) = ecx; /* 0x36141A3F: mov dword ptr [edx], ecx */ 1398 goto L_36141A46; /* 0x36141A41: jmp 0x36141a46 */ 1399 L_36141A43: 1400 MEM32(edx + 0x8) = ecx; /* 0x36141A43: mov dword ptr [edx + 8], ecx */ 1401 L_36141A46: 1402 MEM32(ecx) = eax; /* 0x36141A46: mov dword ptr [ecx], eax */ 1403 MEM32(eax + 0x4) = ecx; /* 0x36141A48: mov dword ptr [eax + 4], ecx */ 1404 L_36141A4B: 1405 ecx = MEM32(eax + 0x4); /* 0x36141A4B: mov ecx, dword ptr [eax + 4] */ 1406 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141A4E: mov byte ptr [ecx + 0x20], bl */ 1407 edx = MEM32(eax + 0x4); /* 0x36141A51: mov edx, dword ptr [eax + 4] */ 1408 ecx = MEM32(edx + 0x4); /* 0x36141A54: mov ecx, dword ptr [edx + 4] */ 1409 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141A57: mov byte ptr [ecx + 0x20], 0 */ 1410 edx = MEM32(eax + 0x4); /* 0x36141A5B: mov edx, dword ptr [eax + 4] */ 1411 ecx = MEM32(edx + 0x4); /* 0x36141A5E: mov ecx, dword ptr [edx + 4] */ 1412 edx = MEM32(ecx); /* 0x36141A61: mov edx, dword ptr [ecx] */ 1413 edi = MEM32(edx + 0x8); /* 0x36141A63: mov edi, dword ptr [edx + 8] */ 1414 MEM32(ecx) = edi; /* 0x36141A66: mov dword ptr [ecx], edi */ 1415 edi = MEM32(edx + 0x8); /* 0x36141A68: mov edi, dword ptr [edx + 8] */ 1416 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141A6B: cmp edi, dword ptr [esi + 8] */ 1417 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1419 _flag_k = FK_CMP; 1420 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A73; /* 0x36141A6E: je 0x36141a73 */ 1421 L_36141A70: 1422 MEM32(edi + 0x4) = ecx; /* 0x36141A70: mov dword ptr [edi + 4], ecx */ 1423 L_36141A73: 1424 edi = MEM32(ecx + 0x4); /* 0x36141A73: mov edi, dword ptr [ecx + 4] */ 1425 MEM32(edx + 0x4) = edi; /* 0x36141A76: mov dword ptr [edx + 4], edi */ 1426 edi = MEM32(esi + 0x4); /* 0x36141A79: mov edi, dword ptr [esi + 4] */ 1427 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141A7C: cmp ecx, dword ptr [edi + 4] */ 1428 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1430 _flag_k = FK_CMP; 1431 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A8C; /* 0x36141A7F: jne 0x36141a8c */ 1432 L_36141A81: 1433 MEM32(edi + 0x4) = edx; /* 0x36141A81: mov dword ptr [edi + 4], edx */ 1434 MEM32(edx + 0x8) = ecx; /* 0x36141A84: mov dword ptr [edx + 8], ecx */ 1435 goto L_36141B3E; /* 0x36141A87: jmp 0x36141b3e */ 1436 L_36141A8C: 1437 edi = MEM32(ecx + 0x4); /* 0x36141A8C: mov edi, dword ptr [ecx + 4] */ 1438 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36141A8F: cmp ecx, dword ptr [edi + 8] */ 1439 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1441 _flag_k = FK_CMP; 1442 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A9F; /* 0x36141A92: jne 0x36141a9f */ 1443 L_36141A94: 1444 MEM32(edi + 0x8) = edx; /* 0x36141A94: mov dword ptr [edi + 8], edx */ 1445 MEM32(edx + 0x8) = ecx; /* 0x36141A97: mov dword ptr [edx + 8], ecx */ 1446 goto L_36141B3E; /* 0x36141A9A: jmp 0x36141b3e */ 1447 L_36141A9F: 1448 MEM32(edi) = edx; /* 0x36141A9F: mov dword ptr [edi], edx */ 1449 MEM32(edx + 0x8) = ecx; /* 0x36141AA1: mov dword ptr [edx + 8], ecx */ 1450 goto L_36141B3E; /* 0x36141AA4: jmp 0x36141b3e */ 1451 L_36141AA9: 1452 /* cmp MEM8(edx + 0x20), 0 */ /* 0x36141AA9: cmp byte ptr [edx + 0x20], 0 */ 1453 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1455 _flag_k = FK_NARROW(FK_CMP, 24); 1456 RECOMP_BACKEDGE(); 1457 if (CMP_EQ(_flag_a, _flag_b)) goto L_361419F1; /* 0x36141AAD: je 0x361419f1 */ 1458 L_36141AB3: 1459 /* cmp eax, MEM32(ecx) */ /* 0x36141AB3: cmp eax, dword ptr [ecx] */ 1460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1462 _flag_k = FK_CMP; 1463 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AF3; /* 0x36141AB5: jne 0x36141af3 */ 1464 L_36141AB7: 1465 eax = ecx; /* 0x36141AB7: mov eax, ecx */ 1466 ecx = MEM32(eax); /* 0x36141AB9: mov ecx, dword ptr [eax] */ 1467 edx = MEM32(ecx + 0x8); /* 0x36141ABB: mov edx, dword ptr [ecx + 8] */ 1468 MEM32(eax) = edx; /* 0x36141ABE: mov dword ptr [eax], edx */ 1469 edx = MEM32(ecx + 0x8); /* 0x36141AC0: mov edx, dword ptr [ecx + 8] */ 1470 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141AC3: cmp edx, dword ptr [esi + 8] */ 1471 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1473 _flag_k = FK_CMP; 1474 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141ACB; /* 0x36141AC6: je 0x36141acb */ 1475 L_36141AC8: 1476 MEM32(edx + 0x4) = eax; /* 0x36141AC8: mov dword ptr [edx + 4], eax */ 1477 L_36141ACB: 1478 edx = MEM32(eax + 0x4); /* 0x36141ACB: mov edx, dword ptr [eax + 4] */ 1479 MEM32(ecx + 0x4) = edx; /* 0x36141ACE: mov dword ptr [ecx + 4], edx */ 1480 edx = MEM32(esi + 0x4); /* 0x36141AD1: mov edx, dword ptr [esi + 4] */ 1481 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141AD4: cmp eax, dword ptr [edx + 4] */ 1482 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1484 _flag_k = FK_CMP; 1485 if (CMP_NE(_flag_a, _flag_b)) goto L_36141ADE; /* 0x36141AD7: jne 0x36141ade */ 1486 L_36141AD9: 1487 MEM32(edx + 0x4) = ecx; /* 0x36141AD9: mov dword ptr [edx + 4], ecx */ 1488 goto L_36141AED; /* 0x36141ADC: jmp 0x36141aed */ 1489 L_36141ADE: 1490 edx = MEM32(eax + 0x4); /* 0x36141ADE: mov edx, dword ptr [eax + 4] */ 1491 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36141AE1: cmp eax, dword ptr [edx + 8] */ 1492 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1494 _flag_k = FK_CMP; 1495 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AEB; /* 0x36141AE4: jne 0x36141aeb */ 1496 L_36141AE6: 1497 MEM32(edx + 0x8) = ecx; /* 0x36141AE6: mov dword ptr [edx + 8], ecx */ 1498 goto L_36141AED; /* 0x36141AE9: jmp 0x36141aed */ 1499 L_36141AEB: 1500 MEM32(edx) = ecx; /* 0x36141AEB: mov dword ptr [edx], ecx */ 1501 L_36141AED: 1502 MEM32(ecx + 0x8) = eax; /* 0x36141AED: mov dword ptr [ecx + 8], eax */ 1503 MEM32(eax + 0x4) = ecx; /* 0x36141AF0: mov dword ptr [eax + 4], ecx */ 1504 L_36141AF3: 1505 ecx = MEM32(eax + 0x4); /* 0x36141AF3: mov ecx, dword ptr [eax + 4] */ 1506 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141AF6: mov byte ptr [ecx + 0x20], bl */ 1507 edx = MEM32(eax + 0x4); /* 0x36141AF9: mov edx, dword ptr [eax + 4] */ 1508 ecx = MEM32(edx + 0x4); /* 0x36141AFC: mov ecx, dword ptr [edx + 4] */ 1509 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141AFF: mov byte ptr [ecx + 0x20], 0 */ 1510 edx = MEM32(eax + 0x4); /* 0x36141B03: mov edx, dword ptr [eax + 4] */ 1511 ecx = MEM32(edx + 0x4); /* 0x36141B06: mov ecx, dword ptr [edx + 4] */ 1512 edx = MEM32(ecx + 0x8); /* 0x36141B09: mov edx, dword ptr [ecx + 8] */ 1513 edi = MEM32(edx); /* 0x36141B0C: mov edi, dword ptr [edx] */ 1514 MEM32(ecx + 0x8) = edi; /* 0x36141B0E: mov dword ptr [ecx + 8], edi */ 1515 edi = MEM32(edx); /* 0x36141B11: mov edi, dword ptr [edx] */ 1516 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141B13: cmp edi, dword ptr [esi + 8] */ 1517 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1519 _flag_k = FK_CMP; 1520 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B1B; /* 0x36141B16: je 0x36141b1b */ 1521 L_36141B18: 1522 MEM32(edi + 0x4) = ecx; /* 0x36141B18: mov dword ptr [edi + 4], ecx */ 1523 L_36141B1B: 1524 edi = MEM32(ecx + 0x4); /* 0x36141B1B: mov edi, dword ptr [ecx + 4] */ 1525 MEM32(edx + 0x4) = edi; /* 0x36141B1E: mov dword ptr [edx + 4], edi */ 1526 edi = MEM32(esi + 0x4); /* 0x36141B21: mov edi, dword ptr [esi + 4] */ 1527 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141B24: cmp ecx, dword ptr [edi + 4] */ 1528 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1530 _flag_k = FK_CMP; 1531 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B2E; /* 0x36141B27: jne 0x36141b2e */ 1532 L_36141B29: 1533 MEM32(edi + 0x4) = edx; /* 0x36141B29: mov dword ptr [edi + 4], edx */ 1534 goto L_36141B3C; /* 0x36141B2C: jmp 0x36141b3c */ 1535 L_36141B2E: 1536 edi = MEM32(ecx + 0x4); /* 0x36141B2E: mov edi, dword ptr [ecx + 4] */ 1537 /* cmp ecx, MEM32(edi) */ /* 0x36141B31: cmp ecx, dword ptr [edi] */ 1538 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1540 _flag_k = FK_CMP; 1541 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B39; /* 0x36141B33: jne 0x36141b39 */ 1542 L_36141B35: 1543 MEM32(edi) = edx; /* 0x36141B35: mov dword ptr [edi], edx */ 1544 goto L_36141B3C; /* 0x36141B37: jmp 0x36141b3c */ 1545 L_36141B39: 1546 MEM32(edi + 0x8) = edx; /* 0x36141B39: mov dword ptr [edi + 8], edx */ 1547 L_36141B3C: 1548 MEM32(edx) = ecx; /* 0x36141B3C: mov dword ptr [edx], ecx */ 1549 L_36141B3E: 1550 MEM32(ecx + 0x4) = edx; /* 0x36141B3E: mov dword ptr [ecx + 4], edx */ 1551 L_36141B41: 1552 ecx = MEM32(esi + 0x4); /* 0x36141B41: mov ecx, dword ptr [esi + 4] */ 1553 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36141B44: cmp eax, dword ptr [ecx + 4] */ 1554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1556 _flag_k = FK_CMP; 1557 RECOMP_BACKEDGE(); 1558 if (CMP_NE(_flag_a, _flag_b)) goto L_361419CD; /* 0x36141B47: jne 0x361419cd */ 1559 L_36141B4D: 1560 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 1561 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 1562 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 1563 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 1564 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 1565 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 1566 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 1567 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 1568 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 1569 esp = ebp; /* 0x36141B61: mov esp, ebp */ 1570 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 1571 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 1572 RECOMP_REGS_OUT(); 1573 } 1574 1575 void sub_36141A46(void) { 1576 int _fpu_cmp = 0; 1577 uint32_t _cf = 0; 1578 int _df = 1; 1579 uint32_t _flag_k = FK_NONE; 1580 uint32_t _flag_a = 0, _flag_b = 0; 1581 uint32_t _itail_tgt = 0; 1582 RECOMP_REGS_LOCALS 1583 RECOMP_ENTER(0x36141A46u); 1584 1585 goto L_36141A46; 1586 L_361419CD: 1587 ecx = MEM32(eax + 0x4); /* 0x361419CD: mov ecx, dword ptr [eax + 4] */ 1588 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361419D0: mov dl, byte ptr [ecx + 0x20] */ 1589 /* test LO8(edx), LO8(edx) */ /* 0x361419D3: test dl, dl */ 1590 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1591 _cf = 0; 1592 _flag_k = FK_NARROW(FK_TEST, 24); 1593 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419D5: jne 0x36141b4d */ 1594 L_361419DB: 1595 edi = MEM32(ecx + 0x4); /* 0x361419DB: mov edi, dword ptr [ecx + 4] */ 1596 edx = MEM32(edi); /* 0x361419DE: mov edx, dword ptr [edi] */ 1597 /* cmp ecx, edx */ /* 0x361419E0: cmp ecx, edx */ 1598 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1600 _flag_k = FK_CMP; 1601 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AA9; /* 0x361419E2: jne 0x36141aa9 */ 1602 L_361419E8: 1603 edx = MEM32(edi + 0x8); /* 0x361419E8: mov edx, dword ptr [edi + 8] */ 1604 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361419EB: cmp byte ptr [edx + 0x20], 0 */ 1605 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1607 _flag_k = FK_NARROW(FK_CMP, 24); 1608 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A0C; /* 0x361419EF: jne 0x36141a0c */ 1609 L_361419F1: 1610 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F1: mov byte ptr [ecx + 0x20], bl */ 1611 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F4: mov byte ptr [edx + 0x20], bl */ 1612 ecx = MEM32(eax + 0x4); /* 0x361419F7: mov ecx, dword ptr [eax + 4] */ 1613 edx = MEM32(ecx + 0x4); /* 0x361419FA: mov edx, dword ptr [ecx + 4] */ 1614 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361419FD: mov byte ptr [edx + 0x20], 0 */ 1615 eax = MEM32(eax + 0x4); /* 0x36141A01: mov eax, dword ptr [eax + 4] */ 1616 eax = MEM32(eax + 0x4); /* 0x36141A04: mov eax, dword ptr [eax + 4] */ 1617 goto L_36141B41; /* 0x36141A07: jmp 0x36141b41 */ 1618 L_36141A0C: 1619 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36141A0C: cmp eax, dword ptr [ecx + 8] */ 1620 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1622 _flag_k = FK_CMP; 1623 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A4B; /* 0x36141A0F: jne 0x36141a4b */ 1624 L_36141A11: 1625 eax = ecx; /* 0x36141A11: mov eax, ecx */ 1626 ecx = MEM32(eax + 0x8); /* 0x36141A13: mov ecx, dword ptr [eax + 8] */ 1627 edx = MEM32(ecx); /* 0x36141A16: mov edx, dword ptr [ecx] */ 1628 MEM32(eax + 0x8) = edx; /* 0x36141A18: mov dword ptr [eax + 8], edx */ 1629 edx = MEM32(ecx); /* 0x36141A1B: mov edx, dword ptr [ecx] */ 1630 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141A1D: cmp edx, dword ptr [esi + 8] */ 1631 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1633 _flag_k = FK_CMP; 1634 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A25; /* 0x36141A20: je 0x36141a25 */ 1635 L_36141A22: 1636 MEM32(edx + 0x4) = eax; /* 0x36141A22: mov dword ptr [edx + 4], eax */ 1637 L_36141A25: 1638 edx = MEM32(eax + 0x4); /* 0x36141A25: mov edx, dword ptr [eax + 4] */ 1639 MEM32(ecx + 0x4) = edx; /* 0x36141A28: mov dword ptr [ecx + 4], edx */ 1640 edx = MEM32(esi + 0x4); /* 0x36141A2B: mov edx, dword ptr [esi + 4] */ 1641 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141A2E: cmp eax, dword ptr [edx + 4] */ 1642 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1644 _flag_k = FK_CMP; 1645 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A38; /* 0x36141A31: jne 0x36141a38 */ 1646 L_36141A33: 1647 MEM32(edx + 0x4) = ecx; /* 0x36141A33: mov dword ptr [edx + 4], ecx */ 1648 goto L_36141A46; /* 0x36141A36: jmp 0x36141a46 */ 1649 L_36141A38: 1650 edx = MEM32(eax + 0x4); /* 0x36141A38: mov edx, dword ptr [eax + 4] */ 1651 /* cmp eax, MEM32(edx) */ /* 0x36141A3B: cmp eax, dword ptr [edx] */ 1652 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1654 _flag_k = FK_CMP; 1655 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A43; /* 0x36141A3D: jne 0x36141a43 */ 1656 L_36141A3F: 1657 MEM32(edx) = ecx; /* 0x36141A3F: mov dword ptr [edx], ecx */ 1658 goto L_36141A46; /* 0x36141A41: jmp 0x36141a46 */ 1659 L_36141A43: 1660 MEM32(edx + 0x8) = ecx; /* 0x36141A43: mov dword ptr [edx + 8], ecx */ 1661 L_36141A46: 1662 MEM32(ecx) = eax; /* 0x36141A46: mov dword ptr [ecx], eax */ 1663 MEM32(eax + 0x4) = ecx; /* 0x36141A48: mov dword ptr [eax + 4], ecx */ 1664 L_36141A4B: 1665 ecx = MEM32(eax + 0x4); /* 0x36141A4B: mov ecx, dword ptr [eax + 4] */ 1666 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141A4E: mov byte ptr [ecx + 0x20], bl */ 1667 edx = MEM32(eax + 0x4); /* 0x36141A51: mov edx, dword ptr [eax + 4] */ 1668 ecx = MEM32(edx + 0x4); /* 0x36141A54: mov ecx, dword ptr [edx + 4] */ 1669 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141A57: mov byte ptr [ecx + 0x20], 0 */ 1670 edx = MEM32(eax + 0x4); /* 0x36141A5B: mov edx, dword ptr [eax + 4] */ 1671 ecx = MEM32(edx + 0x4); /* 0x36141A5E: mov ecx, dword ptr [edx + 4] */ 1672 edx = MEM32(ecx); /* 0x36141A61: mov edx, dword ptr [ecx] */ 1673 edi = MEM32(edx + 0x8); /* 0x36141A63: mov edi, dword ptr [edx + 8] */ 1674 MEM32(ecx) = edi; /* 0x36141A66: mov dword ptr [ecx], edi */ 1675 edi = MEM32(edx + 0x8); /* 0x36141A68: mov edi, dword ptr [edx + 8] */ 1676 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141A6B: cmp edi, dword ptr [esi + 8] */ 1677 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1679 _flag_k = FK_CMP; 1680 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A73; /* 0x36141A6E: je 0x36141a73 */ 1681 L_36141A70: 1682 MEM32(edi + 0x4) = ecx; /* 0x36141A70: mov dword ptr [edi + 4], ecx */ 1683 L_36141A73: 1684 edi = MEM32(ecx + 0x4); /* 0x36141A73: mov edi, dword ptr [ecx + 4] */ 1685 MEM32(edx + 0x4) = edi; /* 0x36141A76: mov dword ptr [edx + 4], edi */ 1686 edi = MEM32(esi + 0x4); /* 0x36141A79: mov edi, dword ptr [esi + 4] */ 1687 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141A7C: cmp ecx, dword ptr [edi + 4] */ 1688 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1690 _flag_k = FK_CMP; 1691 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A8C; /* 0x36141A7F: jne 0x36141a8c */ 1692 L_36141A81: 1693 MEM32(edi + 0x4) = edx; /* 0x36141A81: mov dword ptr [edi + 4], edx */ 1694 MEM32(edx + 0x8) = ecx; /* 0x36141A84: mov dword ptr [edx + 8], ecx */ 1695 goto L_36141B3E; /* 0x36141A87: jmp 0x36141b3e */ 1696 L_36141A8C: 1697 edi = MEM32(ecx + 0x4); /* 0x36141A8C: mov edi, dword ptr [ecx + 4] */ 1698 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36141A8F: cmp ecx, dword ptr [edi + 8] */ 1699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1701 _flag_k = FK_CMP; 1702 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A9F; /* 0x36141A92: jne 0x36141a9f */ 1703 L_36141A94: 1704 MEM32(edi + 0x8) = edx; /* 0x36141A94: mov dword ptr [edi + 8], edx */ 1705 MEM32(edx + 0x8) = ecx; /* 0x36141A97: mov dword ptr [edx + 8], ecx */ 1706 goto L_36141B3E; /* 0x36141A9A: jmp 0x36141b3e */ 1707 L_36141A9F: 1708 MEM32(edi) = edx; /* 0x36141A9F: mov dword ptr [edi], edx */ 1709 MEM32(edx + 0x8) = ecx; /* 0x36141AA1: mov dword ptr [edx + 8], ecx */ 1710 goto L_36141B3E; /* 0x36141AA4: jmp 0x36141b3e */ 1711 L_36141AA9: 1712 /* cmp MEM8(edx + 0x20), 0 */ /* 0x36141AA9: cmp byte ptr [edx + 0x20], 0 */ 1713 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1715 _flag_k = FK_NARROW(FK_CMP, 24); 1716 RECOMP_BACKEDGE(); 1717 if (CMP_EQ(_flag_a, _flag_b)) goto L_361419F1; /* 0x36141AAD: je 0x361419f1 */ 1718 L_36141AB3: 1719 /* cmp eax, MEM32(ecx) */ /* 0x36141AB3: cmp eax, dword ptr [ecx] */ 1720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1722 _flag_k = FK_CMP; 1723 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AF3; /* 0x36141AB5: jne 0x36141af3 */ 1724 L_36141AB7: 1725 eax = ecx; /* 0x36141AB7: mov eax, ecx */ 1726 ecx = MEM32(eax); /* 0x36141AB9: mov ecx, dword ptr [eax] */ 1727 edx = MEM32(ecx + 0x8); /* 0x36141ABB: mov edx, dword ptr [ecx + 8] */ 1728 MEM32(eax) = edx; /* 0x36141ABE: mov dword ptr [eax], edx */ 1729 edx = MEM32(ecx + 0x8); /* 0x36141AC0: mov edx, dword ptr [ecx + 8] */ 1730 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141AC3: cmp edx, dword ptr [esi + 8] */ 1731 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1733 _flag_k = FK_CMP; 1734 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141ACB; /* 0x36141AC6: je 0x36141acb */ 1735 L_36141AC8: 1736 MEM32(edx + 0x4) = eax; /* 0x36141AC8: mov dword ptr [edx + 4], eax */ 1737 L_36141ACB: 1738 edx = MEM32(eax + 0x4); /* 0x36141ACB: mov edx, dword ptr [eax + 4] */ 1739 MEM32(ecx + 0x4) = edx; /* 0x36141ACE: mov dword ptr [ecx + 4], edx */ 1740 edx = MEM32(esi + 0x4); /* 0x36141AD1: mov edx, dword ptr [esi + 4] */ 1741 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141AD4: cmp eax, dword ptr [edx + 4] */ 1742 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1744 _flag_k = FK_CMP; 1745 if (CMP_NE(_flag_a, _flag_b)) goto L_36141ADE; /* 0x36141AD7: jne 0x36141ade */ 1746 L_36141AD9: 1747 MEM32(edx + 0x4) = ecx; /* 0x36141AD9: mov dword ptr [edx + 4], ecx */ 1748 goto L_36141AED; /* 0x36141ADC: jmp 0x36141aed */ 1749 L_36141ADE: 1750 edx = MEM32(eax + 0x4); /* 0x36141ADE: mov edx, dword ptr [eax + 4] */ 1751 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36141AE1: cmp eax, dword ptr [edx + 8] */ 1752 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1754 _flag_k = FK_CMP; 1755 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AEB; /* 0x36141AE4: jne 0x36141aeb */ 1756 L_36141AE6: 1757 MEM32(edx + 0x8) = ecx; /* 0x36141AE6: mov dword ptr [edx + 8], ecx */ 1758 goto L_36141AED; /* 0x36141AE9: jmp 0x36141aed */ 1759 L_36141AEB: 1760 MEM32(edx) = ecx; /* 0x36141AEB: mov dword ptr [edx], ecx */ 1761 L_36141AED: 1762 MEM32(ecx + 0x8) = eax; /* 0x36141AED: mov dword ptr [ecx + 8], eax */ 1763 MEM32(eax + 0x4) = ecx; /* 0x36141AF0: mov dword ptr [eax + 4], ecx */ 1764 L_36141AF3: 1765 ecx = MEM32(eax + 0x4); /* 0x36141AF3: mov ecx, dword ptr [eax + 4] */ 1766 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141AF6: mov byte ptr [ecx + 0x20], bl */ 1767 edx = MEM32(eax + 0x4); /* 0x36141AF9: mov edx, dword ptr [eax + 4] */ 1768 ecx = MEM32(edx + 0x4); /* 0x36141AFC: mov ecx, dword ptr [edx + 4] */ 1769 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141AFF: mov byte ptr [ecx + 0x20], 0 */ 1770 edx = MEM32(eax + 0x4); /* 0x36141B03: mov edx, dword ptr [eax + 4] */ 1771 ecx = MEM32(edx + 0x4); /* 0x36141B06: mov ecx, dword ptr [edx + 4] */ 1772 edx = MEM32(ecx + 0x8); /* 0x36141B09: mov edx, dword ptr [ecx + 8] */ 1773 edi = MEM32(edx); /* 0x36141B0C: mov edi, dword ptr [edx] */ 1774 MEM32(ecx + 0x8) = edi; /* 0x36141B0E: mov dword ptr [ecx + 8], edi */ 1775 edi = MEM32(edx); /* 0x36141B11: mov edi, dword ptr [edx] */ 1776 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141B13: cmp edi, dword ptr [esi + 8] */ 1777 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1779 _flag_k = FK_CMP; 1780 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B1B; /* 0x36141B16: je 0x36141b1b */ 1781 L_36141B18: 1782 MEM32(edi + 0x4) = ecx; /* 0x36141B18: mov dword ptr [edi + 4], ecx */ 1783 L_36141B1B: 1784 edi = MEM32(ecx + 0x4); /* 0x36141B1B: mov edi, dword ptr [ecx + 4] */ 1785 MEM32(edx + 0x4) = edi; /* 0x36141B1E: mov dword ptr [edx + 4], edi */ 1786 edi = MEM32(esi + 0x4); /* 0x36141B21: mov edi, dword ptr [esi + 4] */ 1787 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141B24: cmp ecx, dword ptr [edi + 4] */ 1788 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1790 _flag_k = FK_CMP; 1791 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B2E; /* 0x36141B27: jne 0x36141b2e */ 1792 L_36141B29: 1793 MEM32(edi + 0x4) = edx; /* 0x36141B29: mov dword ptr [edi + 4], edx */ 1794 goto L_36141B3C; /* 0x36141B2C: jmp 0x36141b3c */ 1795 L_36141B2E: 1796 edi = MEM32(ecx + 0x4); /* 0x36141B2E: mov edi, dword ptr [ecx + 4] */ 1797 /* cmp ecx, MEM32(edi) */ /* 0x36141B31: cmp ecx, dword ptr [edi] */ 1798 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1800 _flag_k = FK_CMP; 1801 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B39; /* 0x36141B33: jne 0x36141b39 */ 1802 L_36141B35: 1803 MEM32(edi) = edx; /* 0x36141B35: mov dword ptr [edi], edx */ 1804 goto L_36141B3C; /* 0x36141B37: jmp 0x36141b3c */ 1805 L_36141B39: 1806 MEM32(edi + 0x8) = edx; /* 0x36141B39: mov dword ptr [edi + 8], edx */ 1807 L_36141B3C: 1808 MEM32(edx) = ecx; /* 0x36141B3C: mov dword ptr [edx], ecx */ 1809 L_36141B3E: 1810 MEM32(ecx + 0x4) = edx; /* 0x36141B3E: mov dword ptr [ecx + 4], edx */ 1811 L_36141B41: 1812 ecx = MEM32(esi + 0x4); /* 0x36141B41: mov ecx, dword ptr [esi + 4] */ 1813 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36141B44: cmp eax, dword ptr [ecx + 4] */ 1814 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1816 _flag_k = FK_CMP; 1817 RECOMP_BACKEDGE(); 1818 if (CMP_NE(_flag_a, _flag_b)) goto L_361419CD; /* 0x36141B47: jne 0x361419cd */ 1819 L_36141B4D: 1820 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 1821 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 1822 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 1823 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 1824 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 1825 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 1826 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 1827 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 1828 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 1829 esp = ebp; /* 0x36141B61: mov esp, ebp */ 1830 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 1831 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 1832 RECOMP_REGS_OUT(); 1833 } 1834 1835 void sub_36141A4B(void) { 1836 int _fpu_cmp = 0; 1837 uint32_t _cf = 0; 1838 int _df = 1; 1839 uint32_t _flag_k = FK_NONE; 1840 uint32_t _flag_a = 0, _flag_b = 0; 1841 uint32_t _itail_tgt = 0; 1842 RECOMP_REGS_LOCALS 1843 RECOMP_ENTER(0x36141A4Bu); 1844 1845 goto L_36141A4B; 1846 L_361419CD: 1847 ecx = MEM32(eax + 0x4); /* 0x361419CD: mov ecx, dword ptr [eax + 4] */ 1848 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361419D0: mov dl, byte ptr [ecx + 0x20] */ 1849 /* test LO8(edx), LO8(edx) */ /* 0x361419D3: test dl, dl */ 1850 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1851 _cf = 0; 1852 _flag_k = FK_NARROW(FK_TEST, 24); 1853 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419D5: jne 0x36141b4d */ 1854 L_361419DB: 1855 edi = MEM32(ecx + 0x4); /* 0x361419DB: mov edi, dword ptr [ecx + 4] */ 1856 edx = MEM32(edi); /* 0x361419DE: mov edx, dword ptr [edi] */ 1857 /* cmp ecx, edx */ /* 0x361419E0: cmp ecx, edx */ 1858 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1860 _flag_k = FK_CMP; 1861 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AA9; /* 0x361419E2: jne 0x36141aa9 */ 1862 L_361419E8: 1863 edx = MEM32(edi + 0x8); /* 0x361419E8: mov edx, dword ptr [edi + 8] */ 1864 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361419EB: cmp byte ptr [edx + 0x20], 0 */ 1865 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1867 _flag_k = FK_NARROW(FK_CMP, 24); 1868 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A0C; /* 0x361419EF: jne 0x36141a0c */ 1869 L_361419F1: 1870 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F1: mov byte ptr [ecx + 0x20], bl */ 1871 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F4: mov byte ptr [edx + 0x20], bl */ 1872 ecx = MEM32(eax + 0x4); /* 0x361419F7: mov ecx, dword ptr [eax + 4] */ 1873 edx = MEM32(ecx + 0x4); /* 0x361419FA: mov edx, dword ptr [ecx + 4] */ 1874 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361419FD: mov byte ptr [edx + 0x20], 0 */ 1875 eax = MEM32(eax + 0x4); /* 0x36141A01: mov eax, dword ptr [eax + 4] */ 1876 eax = MEM32(eax + 0x4); /* 0x36141A04: mov eax, dword ptr [eax + 4] */ 1877 goto L_36141B41; /* 0x36141A07: jmp 0x36141b41 */ 1878 L_36141A0C: 1879 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36141A0C: cmp eax, dword ptr [ecx + 8] */ 1880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1882 _flag_k = FK_CMP; 1883 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A4B; /* 0x36141A0F: jne 0x36141a4b */ 1884 L_36141A11: 1885 eax = ecx; /* 0x36141A11: mov eax, ecx */ 1886 ecx = MEM32(eax + 0x8); /* 0x36141A13: mov ecx, dword ptr [eax + 8] */ 1887 edx = MEM32(ecx); /* 0x36141A16: mov edx, dword ptr [ecx] */ 1888 MEM32(eax + 0x8) = edx; /* 0x36141A18: mov dword ptr [eax + 8], edx */ 1889 edx = MEM32(ecx); /* 0x36141A1B: mov edx, dword ptr [ecx] */ 1890 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141A1D: cmp edx, dword ptr [esi + 8] */ 1891 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1893 _flag_k = FK_CMP; 1894 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A25; /* 0x36141A20: je 0x36141a25 */ 1895 L_36141A22: 1896 MEM32(edx + 0x4) = eax; /* 0x36141A22: mov dword ptr [edx + 4], eax */ 1897 L_36141A25: 1898 edx = MEM32(eax + 0x4); /* 0x36141A25: mov edx, dword ptr [eax + 4] */ 1899 MEM32(ecx + 0x4) = edx; /* 0x36141A28: mov dword ptr [ecx + 4], edx */ 1900 edx = MEM32(esi + 0x4); /* 0x36141A2B: mov edx, dword ptr [esi + 4] */ 1901 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141A2E: cmp eax, dword ptr [edx + 4] */ 1902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1904 _flag_k = FK_CMP; 1905 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A38; /* 0x36141A31: jne 0x36141a38 */ 1906 L_36141A33: 1907 MEM32(edx + 0x4) = ecx; /* 0x36141A33: mov dword ptr [edx + 4], ecx */ 1908 goto L_36141A46; /* 0x36141A36: jmp 0x36141a46 */ 1909 L_36141A38: 1910 edx = MEM32(eax + 0x4); /* 0x36141A38: mov edx, dword ptr [eax + 4] */ 1911 /* cmp eax, MEM32(edx) */ /* 0x36141A3B: cmp eax, dword ptr [edx] */ 1912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1914 _flag_k = FK_CMP; 1915 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A43; /* 0x36141A3D: jne 0x36141a43 */ 1916 L_36141A3F: 1917 MEM32(edx) = ecx; /* 0x36141A3F: mov dword ptr [edx], ecx */ 1918 goto L_36141A46; /* 0x36141A41: jmp 0x36141a46 */ 1919 L_36141A43: 1920 MEM32(edx + 0x8) = ecx; /* 0x36141A43: mov dword ptr [edx + 8], ecx */ 1921 L_36141A46: 1922 MEM32(ecx) = eax; /* 0x36141A46: mov dword ptr [ecx], eax */ 1923 MEM32(eax + 0x4) = ecx; /* 0x36141A48: mov dword ptr [eax + 4], ecx */ 1924 L_36141A4B: 1925 ecx = MEM32(eax + 0x4); /* 0x36141A4B: mov ecx, dword ptr [eax + 4] */ 1926 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141A4E: mov byte ptr [ecx + 0x20], bl */ 1927 edx = MEM32(eax + 0x4); /* 0x36141A51: mov edx, dword ptr [eax + 4] */ 1928 ecx = MEM32(edx + 0x4); /* 0x36141A54: mov ecx, dword ptr [edx + 4] */ 1929 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141A57: mov byte ptr [ecx + 0x20], 0 */ 1930 edx = MEM32(eax + 0x4); /* 0x36141A5B: mov edx, dword ptr [eax + 4] */ 1931 ecx = MEM32(edx + 0x4); /* 0x36141A5E: mov ecx, dword ptr [edx + 4] */ 1932 edx = MEM32(ecx); /* 0x36141A61: mov edx, dword ptr [ecx] */ 1933 edi = MEM32(edx + 0x8); /* 0x36141A63: mov edi, dword ptr [edx + 8] */ 1934 MEM32(ecx) = edi; /* 0x36141A66: mov dword ptr [ecx], edi */ 1935 edi = MEM32(edx + 0x8); /* 0x36141A68: mov edi, dword ptr [edx + 8] */ 1936 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141A6B: cmp edi, dword ptr [esi + 8] */ 1937 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1939 _flag_k = FK_CMP; 1940 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A73; /* 0x36141A6E: je 0x36141a73 */ 1941 L_36141A70: 1942 MEM32(edi + 0x4) = ecx; /* 0x36141A70: mov dword ptr [edi + 4], ecx */ 1943 L_36141A73: 1944 edi = MEM32(ecx + 0x4); /* 0x36141A73: mov edi, dword ptr [ecx + 4] */ 1945 MEM32(edx + 0x4) = edi; /* 0x36141A76: mov dword ptr [edx + 4], edi */ 1946 edi = MEM32(esi + 0x4); /* 0x36141A79: mov edi, dword ptr [esi + 4] */ 1947 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141A7C: cmp ecx, dword ptr [edi + 4] */ 1948 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1950 _flag_k = FK_CMP; 1951 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A8C; /* 0x36141A7F: jne 0x36141a8c */ 1952 L_36141A81: 1953 MEM32(edi + 0x4) = edx; /* 0x36141A81: mov dword ptr [edi + 4], edx */ 1954 MEM32(edx + 0x8) = ecx; /* 0x36141A84: mov dword ptr [edx + 8], ecx */ 1955 goto L_36141B3E; /* 0x36141A87: jmp 0x36141b3e */ 1956 L_36141A8C: 1957 edi = MEM32(ecx + 0x4); /* 0x36141A8C: mov edi, dword ptr [ecx + 4] */ 1958 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36141A8F: cmp ecx, dword ptr [edi + 8] */ 1959 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1961 _flag_k = FK_CMP; 1962 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A9F; /* 0x36141A92: jne 0x36141a9f */ 1963 L_36141A94: 1964 MEM32(edi + 0x8) = edx; /* 0x36141A94: mov dword ptr [edi + 8], edx */ 1965 MEM32(edx + 0x8) = ecx; /* 0x36141A97: mov dword ptr [edx + 8], ecx */ 1966 goto L_36141B3E; /* 0x36141A9A: jmp 0x36141b3e */ 1967 L_36141A9F: 1968 MEM32(edi) = edx; /* 0x36141A9F: mov dword ptr [edi], edx */ 1969 MEM32(edx + 0x8) = ecx; /* 0x36141AA1: mov dword ptr [edx + 8], ecx */ 1970 goto L_36141B3E; /* 0x36141AA4: jmp 0x36141b3e */ 1971 L_36141AA9: 1972 /* cmp MEM8(edx + 0x20), 0 */ /* 0x36141AA9: cmp byte ptr [edx + 0x20], 0 */ 1973 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 1974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1975 _flag_k = FK_NARROW(FK_CMP, 24); 1976 RECOMP_BACKEDGE(); 1977 if (CMP_EQ(_flag_a, _flag_b)) goto L_361419F1; /* 0x36141AAD: je 0x361419f1 */ 1978 L_36141AB3: 1979 /* cmp eax, MEM32(ecx) */ /* 0x36141AB3: cmp eax, dword ptr [ecx] */ 1980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1982 _flag_k = FK_CMP; 1983 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AF3; /* 0x36141AB5: jne 0x36141af3 */ 1984 L_36141AB7: 1985 eax = ecx; /* 0x36141AB7: mov eax, ecx */ 1986 ecx = MEM32(eax); /* 0x36141AB9: mov ecx, dword ptr [eax] */ 1987 edx = MEM32(ecx + 0x8); /* 0x36141ABB: mov edx, dword ptr [ecx + 8] */ 1988 MEM32(eax) = edx; /* 0x36141ABE: mov dword ptr [eax], edx */ 1989 edx = MEM32(ecx + 0x8); /* 0x36141AC0: mov edx, dword ptr [ecx + 8] */ 1990 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141AC3: cmp edx, dword ptr [esi + 8] */ 1991 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1993 _flag_k = FK_CMP; 1994 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141ACB; /* 0x36141AC6: je 0x36141acb */ 1995 L_36141AC8: 1996 MEM32(edx + 0x4) = eax; /* 0x36141AC8: mov dword ptr [edx + 4], eax */ 1997 L_36141ACB: 1998 edx = MEM32(eax + 0x4); /* 0x36141ACB: mov edx, dword ptr [eax + 4] */ 1999 MEM32(ecx + 0x4) = edx; /* 0x36141ACE: mov dword ptr [ecx + 4], edx */ 2000 edx = MEM32(esi + 0x4); /* 0x36141AD1: mov edx, dword ptr [esi + 4] */ 2001 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141AD4: cmp eax, dword ptr [edx + 4] */ 2002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2004 _flag_k = FK_CMP; 2005 if (CMP_NE(_flag_a, _flag_b)) goto L_36141ADE; /* 0x36141AD7: jne 0x36141ade */ 2006 L_36141AD9: 2007 MEM32(edx + 0x4) = ecx; /* 0x36141AD9: mov dword ptr [edx + 4], ecx */ 2008 goto L_36141AED; /* 0x36141ADC: jmp 0x36141aed */ 2009 L_36141ADE: 2010 edx = MEM32(eax + 0x4); /* 0x36141ADE: mov edx, dword ptr [eax + 4] */ 2011 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36141AE1: cmp eax, dword ptr [edx + 8] */ 2012 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2014 _flag_k = FK_CMP; 2015 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AEB; /* 0x36141AE4: jne 0x36141aeb */ 2016 L_36141AE6: 2017 MEM32(edx + 0x8) = ecx; /* 0x36141AE6: mov dword ptr [edx + 8], ecx */ 2018 goto L_36141AED; /* 0x36141AE9: jmp 0x36141aed */ 2019 L_36141AEB: 2020 MEM32(edx) = ecx; /* 0x36141AEB: mov dword ptr [edx], ecx */ 2021 L_36141AED: 2022 MEM32(ecx + 0x8) = eax; /* 0x36141AED: mov dword ptr [ecx + 8], eax */ 2023 MEM32(eax + 0x4) = ecx; /* 0x36141AF0: mov dword ptr [eax + 4], ecx */ 2024 L_36141AF3: 2025 ecx = MEM32(eax + 0x4); /* 0x36141AF3: mov ecx, dword ptr [eax + 4] */ 2026 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141AF6: mov byte ptr [ecx + 0x20], bl */ 2027 edx = MEM32(eax + 0x4); /* 0x36141AF9: mov edx, dword ptr [eax + 4] */ 2028 ecx = MEM32(edx + 0x4); /* 0x36141AFC: mov ecx, dword ptr [edx + 4] */ 2029 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141AFF: mov byte ptr [ecx + 0x20], 0 */ 2030 edx = MEM32(eax + 0x4); /* 0x36141B03: mov edx, dword ptr [eax + 4] */ 2031 ecx = MEM32(edx + 0x4); /* 0x36141B06: mov ecx, dword ptr [edx + 4] */ 2032 edx = MEM32(ecx + 0x8); /* 0x36141B09: mov edx, dword ptr [ecx + 8] */ 2033 edi = MEM32(edx); /* 0x36141B0C: mov edi, dword ptr [edx] */ 2034 MEM32(ecx + 0x8) = edi; /* 0x36141B0E: mov dword ptr [ecx + 8], edi */ 2035 edi = MEM32(edx); /* 0x36141B11: mov edi, dword ptr [edx] */ 2036 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141B13: cmp edi, dword ptr [esi + 8] */ 2037 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2039 _flag_k = FK_CMP; 2040 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B1B; /* 0x36141B16: je 0x36141b1b */ 2041 L_36141B18: 2042 MEM32(edi + 0x4) = ecx; /* 0x36141B18: mov dword ptr [edi + 4], ecx */ 2043 L_36141B1B: 2044 edi = MEM32(ecx + 0x4); /* 0x36141B1B: mov edi, dword ptr [ecx + 4] */ 2045 MEM32(edx + 0x4) = edi; /* 0x36141B1E: mov dword ptr [edx + 4], edi */ 2046 edi = MEM32(esi + 0x4); /* 0x36141B21: mov edi, dword ptr [esi + 4] */ 2047 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141B24: cmp ecx, dword ptr [edi + 4] */ 2048 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2050 _flag_k = FK_CMP; 2051 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B2E; /* 0x36141B27: jne 0x36141b2e */ 2052 L_36141B29: 2053 MEM32(edi + 0x4) = edx; /* 0x36141B29: mov dword ptr [edi + 4], edx */ 2054 goto L_36141B3C; /* 0x36141B2C: jmp 0x36141b3c */ 2055 L_36141B2E: 2056 edi = MEM32(ecx + 0x4); /* 0x36141B2E: mov edi, dword ptr [ecx + 4] */ 2057 /* cmp ecx, MEM32(edi) */ /* 0x36141B31: cmp ecx, dword ptr [edi] */ 2058 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2060 _flag_k = FK_CMP; 2061 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B39; /* 0x36141B33: jne 0x36141b39 */ 2062 L_36141B35: 2063 MEM32(edi) = edx; /* 0x36141B35: mov dword ptr [edi], edx */ 2064 goto L_36141B3C; /* 0x36141B37: jmp 0x36141b3c */ 2065 L_36141B39: 2066 MEM32(edi + 0x8) = edx; /* 0x36141B39: mov dword ptr [edi + 8], edx */ 2067 L_36141B3C: 2068 MEM32(edx) = ecx; /* 0x36141B3C: mov dword ptr [edx], ecx */ 2069 L_36141B3E: 2070 MEM32(ecx + 0x4) = edx; /* 0x36141B3E: mov dword ptr [ecx + 4], edx */ 2071 L_36141B41: 2072 ecx = MEM32(esi + 0x4); /* 0x36141B41: mov ecx, dword ptr [esi + 4] */ 2073 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36141B44: cmp eax, dword ptr [ecx + 4] */ 2074 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2076 _flag_k = FK_CMP; 2077 RECOMP_BACKEDGE(); 2078 if (CMP_NE(_flag_a, _flag_b)) goto L_361419CD; /* 0x36141B47: jne 0x361419cd */ 2079 L_36141B4D: 2080 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 2081 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 2082 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 2083 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 2084 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 2085 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 2086 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 2087 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 2088 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 2089 esp = ebp; /* 0x36141B61: mov esp, ebp */ 2090 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 2091 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 2092 RECOMP_REGS_OUT(); 2093 } 2094 2095 void sub_36141AA9(void) { 2096 int _fpu_cmp = 0; 2097 uint32_t _cf = 0; 2098 int _df = 1; 2099 uint32_t _flag_k = FK_NONE; 2100 uint32_t _flag_a = 0, _flag_b = 0; 2101 uint32_t _itail_tgt = 0; 2102 RECOMP_REGS_LOCALS 2103 RECOMP_ENTER(0x36141AA9u); 2104 2105 goto L_36141AA9; 2106 L_361419CD: 2107 ecx = MEM32(eax + 0x4); /* 0x361419CD: mov ecx, dword ptr [eax + 4] */ 2108 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361419D0: mov dl, byte ptr [ecx + 0x20] */ 2109 /* test LO8(edx), LO8(edx) */ /* 0x361419D3: test dl, dl */ 2110 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2111 _cf = 0; 2112 _flag_k = FK_NARROW(FK_TEST, 24); 2113 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419D5: jne 0x36141b4d */ 2114 L_361419DB: 2115 edi = MEM32(ecx + 0x4); /* 0x361419DB: mov edi, dword ptr [ecx + 4] */ 2116 edx = MEM32(edi); /* 0x361419DE: mov edx, dword ptr [edi] */ 2117 /* cmp ecx, edx */ /* 0x361419E0: cmp ecx, edx */ 2118 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2120 _flag_k = FK_CMP; 2121 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AA9; /* 0x361419E2: jne 0x36141aa9 */ 2122 L_361419E8: 2123 edx = MEM32(edi + 0x8); /* 0x361419E8: mov edx, dword ptr [edi + 8] */ 2124 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361419EB: cmp byte ptr [edx + 0x20], 0 */ 2125 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 2126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2127 _flag_k = FK_NARROW(FK_CMP, 24); 2128 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A0C; /* 0x361419EF: jne 0x36141a0c */ 2129 L_361419F1: 2130 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F1: mov byte ptr [ecx + 0x20], bl */ 2131 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F4: mov byte ptr [edx + 0x20], bl */ 2132 ecx = MEM32(eax + 0x4); /* 0x361419F7: mov ecx, dword ptr [eax + 4] */ 2133 edx = MEM32(ecx + 0x4); /* 0x361419FA: mov edx, dword ptr [ecx + 4] */ 2134 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361419FD: mov byte ptr [edx + 0x20], 0 */ 2135 eax = MEM32(eax + 0x4); /* 0x36141A01: mov eax, dword ptr [eax + 4] */ 2136 eax = MEM32(eax + 0x4); /* 0x36141A04: mov eax, dword ptr [eax + 4] */ 2137 goto L_36141B41; /* 0x36141A07: jmp 0x36141b41 */ 2138 L_36141A0C: 2139 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36141A0C: cmp eax, dword ptr [ecx + 8] */ 2140 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2142 _flag_k = FK_CMP; 2143 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A4B; /* 0x36141A0F: jne 0x36141a4b */ 2144 L_36141A11: 2145 eax = ecx; /* 0x36141A11: mov eax, ecx */ 2146 ecx = MEM32(eax + 0x8); /* 0x36141A13: mov ecx, dword ptr [eax + 8] */ 2147 edx = MEM32(ecx); /* 0x36141A16: mov edx, dword ptr [ecx] */ 2148 MEM32(eax + 0x8) = edx; /* 0x36141A18: mov dword ptr [eax + 8], edx */ 2149 edx = MEM32(ecx); /* 0x36141A1B: mov edx, dword ptr [ecx] */ 2150 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141A1D: cmp edx, dword ptr [esi + 8] */ 2151 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2153 _flag_k = FK_CMP; 2154 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A25; /* 0x36141A20: je 0x36141a25 */ 2155 L_36141A22: 2156 MEM32(edx + 0x4) = eax; /* 0x36141A22: mov dword ptr [edx + 4], eax */ 2157 L_36141A25: 2158 edx = MEM32(eax + 0x4); /* 0x36141A25: mov edx, dword ptr [eax + 4] */ 2159 MEM32(ecx + 0x4) = edx; /* 0x36141A28: mov dword ptr [ecx + 4], edx */ 2160 edx = MEM32(esi + 0x4); /* 0x36141A2B: mov edx, dword ptr [esi + 4] */ 2161 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141A2E: cmp eax, dword ptr [edx + 4] */ 2162 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2164 _flag_k = FK_CMP; 2165 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A38; /* 0x36141A31: jne 0x36141a38 */ 2166 L_36141A33: 2167 MEM32(edx + 0x4) = ecx; /* 0x36141A33: mov dword ptr [edx + 4], ecx */ 2168 goto L_36141A46; /* 0x36141A36: jmp 0x36141a46 */ 2169 L_36141A38: 2170 edx = MEM32(eax + 0x4); /* 0x36141A38: mov edx, dword ptr [eax + 4] */ 2171 /* cmp eax, MEM32(edx) */ /* 0x36141A3B: cmp eax, dword ptr [edx] */ 2172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2174 _flag_k = FK_CMP; 2175 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A43; /* 0x36141A3D: jne 0x36141a43 */ 2176 L_36141A3F: 2177 MEM32(edx) = ecx; /* 0x36141A3F: mov dword ptr [edx], ecx */ 2178 goto L_36141A46; /* 0x36141A41: jmp 0x36141a46 */ 2179 L_36141A43: 2180 MEM32(edx + 0x8) = ecx; /* 0x36141A43: mov dword ptr [edx + 8], ecx */ 2181 L_36141A46: 2182 MEM32(ecx) = eax; /* 0x36141A46: mov dword ptr [ecx], eax */ 2183 MEM32(eax + 0x4) = ecx; /* 0x36141A48: mov dword ptr [eax + 4], ecx */ 2184 L_36141A4B: 2185 ecx = MEM32(eax + 0x4); /* 0x36141A4B: mov ecx, dword ptr [eax + 4] */ 2186 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141A4E: mov byte ptr [ecx + 0x20], bl */ 2187 edx = MEM32(eax + 0x4); /* 0x36141A51: mov edx, dword ptr [eax + 4] */ 2188 ecx = MEM32(edx + 0x4); /* 0x36141A54: mov ecx, dword ptr [edx + 4] */ 2189 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141A57: mov byte ptr [ecx + 0x20], 0 */ 2190 edx = MEM32(eax + 0x4); /* 0x36141A5B: mov edx, dword ptr [eax + 4] */ 2191 ecx = MEM32(edx + 0x4); /* 0x36141A5E: mov ecx, dword ptr [edx + 4] */ 2192 edx = MEM32(ecx); /* 0x36141A61: mov edx, dword ptr [ecx] */ 2193 edi = MEM32(edx + 0x8); /* 0x36141A63: mov edi, dword ptr [edx + 8] */ 2194 MEM32(ecx) = edi; /* 0x36141A66: mov dword ptr [ecx], edi */ 2195 edi = MEM32(edx + 0x8); /* 0x36141A68: mov edi, dword ptr [edx + 8] */ 2196 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141A6B: cmp edi, dword ptr [esi + 8] */ 2197 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2199 _flag_k = FK_CMP; 2200 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A73; /* 0x36141A6E: je 0x36141a73 */ 2201 L_36141A70: 2202 MEM32(edi + 0x4) = ecx; /* 0x36141A70: mov dword ptr [edi + 4], ecx */ 2203 L_36141A73: 2204 edi = MEM32(ecx + 0x4); /* 0x36141A73: mov edi, dword ptr [ecx + 4] */ 2205 MEM32(edx + 0x4) = edi; /* 0x36141A76: mov dword ptr [edx + 4], edi */ 2206 edi = MEM32(esi + 0x4); /* 0x36141A79: mov edi, dword ptr [esi + 4] */ 2207 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141A7C: cmp ecx, dword ptr [edi + 4] */ 2208 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2210 _flag_k = FK_CMP; 2211 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A8C; /* 0x36141A7F: jne 0x36141a8c */ 2212 L_36141A81: 2213 MEM32(edi + 0x4) = edx; /* 0x36141A81: mov dword ptr [edi + 4], edx */ 2214 MEM32(edx + 0x8) = ecx; /* 0x36141A84: mov dword ptr [edx + 8], ecx */ 2215 goto L_36141B3E; /* 0x36141A87: jmp 0x36141b3e */ 2216 L_36141A8C: 2217 edi = MEM32(ecx + 0x4); /* 0x36141A8C: mov edi, dword ptr [ecx + 4] */ 2218 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36141A8F: cmp ecx, dword ptr [edi + 8] */ 2219 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2221 _flag_k = FK_CMP; 2222 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A9F; /* 0x36141A92: jne 0x36141a9f */ 2223 L_36141A94: 2224 MEM32(edi + 0x8) = edx; /* 0x36141A94: mov dword ptr [edi + 8], edx */ 2225 MEM32(edx + 0x8) = ecx; /* 0x36141A97: mov dword ptr [edx + 8], ecx */ 2226 goto L_36141B3E; /* 0x36141A9A: jmp 0x36141b3e */ 2227 L_36141A9F: 2228 MEM32(edi) = edx; /* 0x36141A9F: mov dword ptr [edi], edx */ 2229 MEM32(edx + 0x8) = ecx; /* 0x36141AA1: mov dword ptr [edx + 8], ecx */ 2230 goto L_36141B3E; /* 0x36141AA4: jmp 0x36141b3e */ 2231 L_36141AA9: 2232 /* cmp MEM8(edx + 0x20), 0 */ /* 0x36141AA9: cmp byte ptr [edx + 0x20], 0 */ 2233 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 2234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2235 _flag_k = FK_NARROW(FK_CMP, 24); 2236 RECOMP_BACKEDGE(); 2237 if (CMP_EQ(_flag_a, _flag_b)) goto L_361419F1; /* 0x36141AAD: je 0x361419f1 */ 2238 L_36141AB3: 2239 /* cmp eax, MEM32(ecx) */ /* 0x36141AB3: cmp eax, dword ptr [ecx] */ 2240 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2242 _flag_k = FK_CMP; 2243 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AF3; /* 0x36141AB5: jne 0x36141af3 */ 2244 L_36141AB7: 2245 eax = ecx; /* 0x36141AB7: mov eax, ecx */ 2246 ecx = MEM32(eax); /* 0x36141AB9: mov ecx, dword ptr [eax] */ 2247 edx = MEM32(ecx + 0x8); /* 0x36141ABB: mov edx, dword ptr [ecx + 8] */ 2248 MEM32(eax) = edx; /* 0x36141ABE: mov dword ptr [eax], edx */ 2249 edx = MEM32(ecx + 0x8); /* 0x36141AC0: mov edx, dword ptr [ecx + 8] */ 2250 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141AC3: cmp edx, dword ptr [esi + 8] */ 2251 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2253 _flag_k = FK_CMP; 2254 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141ACB; /* 0x36141AC6: je 0x36141acb */ 2255 L_36141AC8: 2256 MEM32(edx + 0x4) = eax; /* 0x36141AC8: mov dword ptr [edx + 4], eax */ 2257 L_36141ACB: 2258 edx = MEM32(eax + 0x4); /* 0x36141ACB: mov edx, dword ptr [eax + 4] */ 2259 MEM32(ecx + 0x4) = edx; /* 0x36141ACE: mov dword ptr [ecx + 4], edx */ 2260 edx = MEM32(esi + 0x4); /* 0x36141AD1: mov edx, dword ptr [esi + 4] */ 2261 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141AD4: cmp eax, dword ptr [edx + 4] */ 2262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2264 _flag_k = FK_CMP; 2265 if (CMP_NE(_flag_a, _flag_b)) goto L_36141ADE; /* 0x36141AD7: jne 0x36141ade */ 2266 L_36141AD9: 2267 MEM32(edx + 0x4) = ecx; /* 0x36141AD9: mov dword ptr [edx + 4], ecx */ 2268 goto L_36141AED; /* 0x36141ADC: jmp 0x36141aed */ 2269 L_36141ADE: 2270 edx = MEM32(eax + 0x4); /* 0x36141ADE: mov edx, dword ptr [eax + 4] */ 2271 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36141AE1: cmp eax, dword ptr [edx + 8] */ 2272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2274 _flag_k = FK_CMP; 2275 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AEB; /* 0x36141AE4: jne 0x36141aeb */ 2276 L_36141AE6: 2277 MEM32(edx + 0x8) = ecx; /* 0x36141AE6: mov dword ptr [edx + 8], ecx */ 2278 goto L_36141AED; /* 0x36141AE9: jmp 0x36141aed */ 2279 L_36141AEB: 2280 MEM32(edx) = ecx; /* 0x36141AEB: mov dword ptr [edx], ecx */ 2281 L_36141AED: 2282 MEM32(ecx + 0x8) = eax; /* 0x36141AED: mov dword ptr [ecx + 8], eax */ 2283 MEM32(eax + 0x4) = ecx; /* 0x36141AF0: mov dword ptr [eax + 4], ecx */ 2284 L_36141AF3: 2285 ecx = MEM32(eax + 0x4); /* 0x36141AF3: mov ecx, dword ptr [eax + 4] */ 2286 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141AF6: mov byte ptr [ecx + 0x20], bl */ 2287 edx = MEM32(eax + 0x4); /* 0x36141AF9: mov edx, dword ptr [eax + 4] */ 2288 ecx = MEM32(edx + 0x4); /* 0x36141AFC: mov ecx, dword ptr [edx + 4] */ 2289 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141AFF: mov byte ptr [ecx + 0x20], 0 */ 2290 edx = MEM32(eax + 0x4); /* 0x36141B03: mov edx, dword ptr [eax + 4] */ 2291 ecx = MEM32(edx + 0x4); /* 0x36141B06: mov ecx, dword ptr [edx + 4] */ 2292 edx = MEM32(ecx + 0x8); /* 0x36141B09: mov edx, dword ptr [ecx + 8] */ 2293 edi = MEM32(edx); /* 0x36141B0C: mov edi, dword ptr [edx] */ 2294 MEM32(ecx + 0x8) = edi; /* 0x36141B0E: mov dword ptr [ecx + 8], edi */ 2295 edi = MEM32(edx); /* 0x36141B11: mov edi, dword ptr [edx] */ 2296 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141B13: cmp edi, dword ptr [esi + 8] */ 2297 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2299 _flag_k = FK_CMP; 2300 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B1B; /* 0x36141B16: je 0x36141b1b */ 2301 L_36141B18: 2302 MEM32(edi + 0x4) = ecx; /* 0x36141B18: mov dword ptr [edi + 4], ecx */ 2303 L_36141B1B: 2304 edi = MEM32(ecx + 0x4); /* 0x36141B1B: mov edi, dword ptr [ecx + 4] */ 2305 MEM32(edx + 0x4) = edi; /* 0x36141B1E: mov dword ptr [edx + 4], edi */ 2306 edi = MEM32(esi + 0x4); /* 0x36141B21: mov edi, dword ptr [esi + 4] */ 2307 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141B24: cmp ecx, dword ptr [edi + 4] */ 2308 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2310 _flag_k = FK_CMP; 2311 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B2E; /* 0x36141B27: jne 0x36141b2e */ 2312 L_36141B29: 2313 MEM32(edi + 0x4) = edx; /* 0x36141B29: mov dword ptr [edi + 4], edx */ 2314 goto L_36141B3C; /* 0x36141B2C: jmp 0x36141b3c */ 2315 L_36141B2E: 2316 edi = MEM32(ecx + 0x4); /* 0x36141B2E: mov edi, dword ptr [ecx + 4] */ 2317 /* cmp ecx, MEM32(edi) */ /* 0x36141B31: cmp ecx, dword ptr [edi] */ 2318 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2320 _flag_k = FK_CMP; 2321 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B39; /* 0x36141B33: jne 0x36141b39 */ 2322 L_36141B35: 2323 MEM32(edi) = edx; /* 0x36141B35: mov dword ptr [edi], edx */ 2324 goto L_36141B3C; /* 0x36141B37: jmp 0x36141b3c */ 2325 L_36141B39: 2326 MEM32(edi + 0x8) = edx; /* 0x36141B39: mov dword ptr [edi + 8], edx */ 2327 L_36141B3C: 2328 MEM32(edx) = ecx; /* 0x36141B3C: mov dword ptr [edx], ecx */ 2329 L_36141B3E: 2330 MEM32(ecx + 0x4) = edx; /* 0x36141B3E: mov dword ptr [ecx + 4], edx */ 2331 L_36141B41: 2332 ecx = MEM32(esi + 0x4); /* 0x36141B41: mov ecx, dword ptr [esi + 4] */ 2333 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36141B44: cmp eax, dword ptr [ecx + 4] */ 2334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2336 _flag_k = FK_CMP; 2337 RECOMP_BACKEDGE(); 2338 if (CMP_NE(_flag_a, _flag_b)) goto L_361419CD; /* 0x36141B47: jne 0x361419cd */ 2339 L_36141B4D: 2340 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 2341 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 2342 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 2343 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 2344 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 2345 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 2346 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 2347 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 2348 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 2349 esp = ebp; /* 0x36141B61: mov esp, ebp */ 2350 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 2351 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 2352 RECOMP_REGS_OUT(); 2353 } 2354 2355 void sub_36141AED(void) { 2356 int _fpu_cmp = 0; 2357 uint32_t _cf = 0; 2358 int _df = 1; 2359 uint32_t _flag_k = FK_NONE; 2360 uint32_t _flag_a = 0, _flag_b = 0; 2361 uint32_t _itail_tgt = 0; 2362 RECOMP_REGS_LOCALS 2363 RECOMP_ENTER(0x36141AEDu); 2364 2365 goto L_36141AED; 2366 L_361419CD: 2367 ecx = MEM32(eax + 0x4); /* 0x361419CD: mov ecx, dword ptr [eax + 4] */ 2368 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361419D0: mov dl, byte ptr [ecx + 0x20] */ 2369 /* test LO8(edx), LO8(edx) */ /* 0x361419D3: test dl, dl */ 2370 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2371 _cf = 0; 2372 _flag_k = FK_NARROW(FK_TEST, 24); 2373 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419D5: jne 0x36141b4d */ 2374 L_361419DB: 2375 edi = MEM32(ecx + 0x4); /* 0x361419DB: mov edi, dword ptr [ecx + 4] */ 2376 edx = MEM32(edi); /* 0x361419DE: mov edx, dword ptr [edi] */ 2377 /* cmp ecx, edx */ /* 0x361419E0: cmp ecx, edx */ 2378 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2380 _flag_k = FK_CMP; 2381 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AA9; /* 0x361419E2: jne 0x36141aa9 */ 2382 L_361419E8: 2383 edx = MEM32(edi + 0x8); /* 0x361419E8: mov edx, dword ptr [edi + 8] */ 2384 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361419EB: cmp byte ptr [edx + 0x20], 0 */ 2385 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 2386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2387 _flag_k = FK_NARROW(FK_CMP, 24); 2388 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A0C; /* 0x361419EF: jne 0x36141a0c */ 2389 L_361419F1: 2390 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F1: mov byte ptr [ecx + 0x20], bl */ 2391 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F4: mov byte ptr [edx + 0x20], bl */ 2392 ecx = MEM32(eax + 0x4); /* 0x361419F7: mov ecx, dword ptr [eax + 4] */ 2393 edx = MEM32(ecx + 0x4); /* 0x361419FA: mov edx, dword ptr [ecx + 4] */ 2394 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361419FD: mov byte ptr [edx + 0x20], 0 */ 2395 eax = MEM32(eax + 0x4); /* 0x36141A01: mov eax, dword ptr [eax + 4] */ 2396 eax = MEM32(eax + 0x4); /* 0x36141A04: mov eax, dword ptr [eax + 4] */ 2397 goto L_36141B41; /* 0x36141A07: jmp 0x36141b41 */ 2398 L_36141A0C: 2399 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36141A0C: cmp eax, dword ptr [ecx + 8] */ 2400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2402 _flag_k = FK_CMP; 2403 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A4B; /* 0x36141A0F: jne 0x36141a4b */ 2404 L_36141A11: 2405 eax = ecx; /* 0x36141A11: mov eax, ecx */ 2406 ecx = MEM32(eax + 0x8); /* 0x36141A13: mov ecx, dword ptr [eax + 8] */ 2407 edx = MEM32(ecx); /* 0x36141A16: mov edx, dword ptr [ecx] */ 2408 MEM32(eax + 0x8) = edx; /* 0x36141A18: mov dword ptr [eax + 8], edx */ 2409 edx = MEM32(ecx); /* 0x36141A1B: mov edx, dword ptr [ecx] */ 2410 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141A1D: cmp edx, dword ptr [esi + 8] */ 2411 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2413 _flag_k = FK_CMP; 2414 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A25; /* 0x36141A20: je 0x36141a25 */ 2415 L_36141A22: 2416 MEM32(edx + 0x4) = eax; /* 0x36141A22: mov dword ptr [edx + 4], eax */ 2417 L_36141A25: 2418 edx = MEM32(eax + 0x4); /* 0x36141A25: mov edx, dword ptr [eax + 4] */ 2419 MEM32(ecx + 0x4) = edx; /* 0x36141A28: mov dword ptr [ecx + 4], edx */ 2420 edx = MEM32(esi + 0x4); /* 0x36141A2B: mov edx, dword ptr [esi + 4] */ 2421 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141A2E: cmp eax, dword ptr [edx + 4] */ 2422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2424 _flag_k = FK_CMP; 2425 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A38; /* 0x36141A31: jne 0x36141a38 */ 2426 L_36141A33: 2427 MEM32(edx + 0x4) = ecx; /* 0x36141A33: mov dword ptr [edx + 4], ecx */ 2428 goto L_36141A46; /* 0x36141A36: jmp 0x36141a46 */ 2429 L_36141A38: 2430 edx = MEM32(eax + 0x4); /* 0x36141A38: mov edx, dword ptr [eax + 4] */ 2431 /* cmp eax, MEM32(edx) */ /* 0x36141A3B: cmp eax, dword ptr [edx] */ 2432 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2434 _flag_k = FK_CMP; 2435 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A43; /* 0x36141A3D: jne 0x36141a43 */ 2436 L_36141A3F: 2437 MEM32(edx) = ecx; /* 0x36141A3F: mov dword ptr [edx], ecx */ 2438 goto L_36141A46; /* 0x36141A41: jmp 0x36141a46 */ 2439 L_36141A43: 2440 MEM32(edx + 0x8) = ecx; /* 0x36141A43: mov dword ptr [edx + 8], ecx */ 2441 L_36141A46: 2442 MEM32(ecx) = eax; /* 0x36141A46: mov dword ptr [ecx], eax */ 2443 MEM32(eax + 0x4) = ecx; /* 0x36141A48: mov dword ptr [eax + 4], ecx */ 2444 L_36141A4B: 2445 ecx = MEM32(eax + 0x4); /* 0x36141A4B: mov ecx, dword ptr [eax + 4] */ 2446 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141A4E: mov byte ptr [ecx + 0x20], bl */ 2447 edx = MEM32(eax + 0x4); /* 0x36141A51: mov edx, dword ptr [eax + 4] */ 2448 ecx = MEM32(edx + 0x4); /* 0x36141A54: mov ecx, dword ptr [edx + 4] */ 2449 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141A57: mov byte ptr [ecx + 0x20], 0 */ 2450 edx = MEM32(eax + 0x4); /* 0x36141A5B: mov edx, dword ptr [eax + 4] */ 2451 ecx = MEM32(edx + 0x4); /* 0x36141A5E: mov ecx, dword ptr [edx + 4] */ 2452 edx = MEM32(ecx); /* 0x36141A61: mov edx, dword ptr [ecx] */ 2453 edi = MEM32(edx + 0x8); /* 0x36141A63: mov edi, dword ptr [edx + 8] */ 2454 MEM32(ecx) = edi; /* 0x36141A66: mov dword ptr [ecx], edi */ 2455 edi = MEM32(edx + 0x8); /* 0x36141A68: mov edi, dword ptr [edx + 8] */ 2456 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141A6B: cmp edi, dword ptr [esi + 8] */ 2457 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2459 _flag_k = FK_CMP; 2460 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A73; /* 0x36141A6E: je 0x36141a73 */ 2461 L_36141A70: 2462 MEM32(edi + 0x4) = ecx; /* 0x36141A70: mov dword ptr [edi + 4], ecx */ 2463 L_36141A73: 2464 edi = MEM32(ecx + 0x4); /* 0x36141A73: mov edi, dword ptr [ecx + 4] */ 2465 MEM32(edx + 0x4) = edi; /* 0x36141A76: mov dword ptr [edx + 4], edi */ 2466 edi = MEM32(esi + 0x4); /* 0x36141A79: mov edi, dword ptr [esi + 4] */ 2467 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141A7C: cmp ecx, dword ptr [edi + 4] */ 2468 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2470 _flag_k = FK_CMP; 2471 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A8C; /* 0x36141A7F: jne 0x36141a8c */ 2472 L_36141A81: 2473 MEM32(edi + 0x4) = edx; /* 0x36141A81: mov dword ptr [edi + 4], edx */ 2474 MEM32(edx + 0x8) = ecx; /* 0x36141A84: mov dword ptr [edx + 8], ecx */ 2475 goto L_36141B3E; /* 0x36141A87: jmp 0x36141b3e */ 2476 L_36141A8C: 2477 edi = MEM32(ecx + 0x4); /* 0x36141A8C: mov edi, dword ptr [ecx + 4] */ 2478 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36141A8F: cmp ecx, dword ptr [edi + 8] */ 2479 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2481 _flag_k = FK_CMP; 2482 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A9F; /* 0x36141A92: jne 0x36141a9f */ 2483 L_36141A94: 2484 MEM32(edi + 0x8) = edx; /* 0x36141A94: mov dword ptr [edi + 8], edx */ 2485 MEM32(edx + 0x8) = ecx; /* 0x36141A97: mov dword ptr [edx + 8], ecx */ 2486 goto L_36141B3E; /* 0x36141A9A: jmp 0x36141b3e */ 2487 L_36141A9F: 2488 MEM32(edi) = edx; /* 0x36141A9F: mov dword ptr [edi], edx */ 2489 MEM32(edx + 0x8) = ecx; /* 0x36141AA1: mov dword ptr [edx + 8], ecx */ 2490 goto L_36141B3E; /* 0x36141AA4: jmp 0x36141b3e */ 2491 L_36141AA9: 2492 /* cmp MEM8(edx + 0x20), 0 */ /* 0x36141AA9: cmp byte ptr [edx + 0x20], 0 */ 2493 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 2494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2495 _flag_k = FK_NARROW(FK_CMP, 24); 2496 RECOMP_BACKEDGE(); 2497 if (CMP_EQ(_flag_a, _flag_b)) goto L_361419F1; /* 0x36141AAD: je 0x361419f1 */ 2498 L_36141AB3: 2499 /* cmp eax, MEM32(ecx) */ /* 0x36141AB3: cmp eax, dword ptr [ecx] */ 2500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2502 _flag_k = FK_CMP; 2503 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AF3; /* 0x36141AB5: jne 0x36141af3 */ 2504 L_36141AB7: 2505 eax = ecx; /* 0x36141AB7: mov eax, ecx */ 2506 ecx = MEM32(eax); /* 0x36141AB9: mov ecx, dword ptr [eax] */ 2507 edx = MEM32(ecx + 0x8); /* 0x36141ABB: mov edx, dword ptr [ecx + 8] */ 2508 MEM32(eax) = edx; /* 0x36141ABE: mov dword ptr [eax], edx */ 2509 edx = MEM32(ecx + 0x8); /* 0x36141AC0: mov edx, dword ptr [ecx + 8] */ 2510 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141AC3: cmp edx, dword ptr [esi + 8] */ 2511 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2513 _flag_k = FK_CMP; 2514 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141ACB; /* 0x36141AC6: je 0x36141acb */ 2515 L_36141AC8: 2516 MEM32(edx + 0x4) = eax; /* 0x36141AC8: mov dword ptr [edx + 4], eax */ 2517 L_36141ACB: 2518 edx = MEM32(eax + 0x4); /* 0x36141ACB: mov edx, dword ptr [eax + 4] */ 2519 MEM32(ecx + 0x4) = edx; /* 0x36141ACE: mov dword ptr [ecx + 4], edx */ 2520 edx = MEM32(esi + 0x4); /* 0x36141AD1: mov edx, dword ptr [esi + 4] */ 2521 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141AD4: cmp eax, dword ptr [edx + 4] */ 2522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2524 _flag_k = FK_CMP; 2525 if (CMP_NE(_flag_a, _flag_b)) goto L_36141ADE; /* 0x36141AD7: jne 0x36141ade */ 2526 L_36141AD9: 2527 MEM32(edx + 0x4) = ecx; /* 0x36141AD9: mov dword ptr [edx + 4], ecx */ 2528 goto L_36141AED; /* 0x36141ADC: jmp 0x36141aed */ 2529 L_36141ADE: 2530 edx = MEM32(eax + 0x4); /* 0x36141ADE: mov edx, dword ptr [eax + 4] */ 2531 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36141AE1: cmp eax, dword ptr [edx + 8] */ 2532 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2534 _flag_k = FK_CMP; 2535 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AEB; /* 0x36141AE4: jne 0x36141aeb */ 2536 L_36141AE6: 2537 MEM32(edx + 0x8) = ecx; /* 0x36141AE6: mov dword ptr [edx + 8], ecx */ 2538 goto L_36141AED; /* 0x36141AE9: jmp 0x36141aed */ 2539 L_36141AEB: 2540 MEM32(edx) = ecx; /* 0x36141AEB: mov dword ptr [edx], ecx */ 2541 L_36141AED: 2542 MEM32(ecx + 0x8) = eax; /* 0x36141AED: mov dword ptr [ecx + 8], eax */ 2543 MEM32(eax + 0x4) = ecx; /* 0x36141AF0: mov dword ptr [eax + 4], ecx */ 2544 L_36141AF3: 2545 ecx = MEM32(eax + 0x4); /* 0x36141AF3: mov ecx, dword ptr [eax + 4] */ 2546 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141AF6: mov byte ptr [ecx + 0x20], bl */ 2547 edx = MEM32(eax + 0x4); /* 0x36141AF9: mov edx, dword ptr [eax + 4] */ 2548 ecx = MEM32(edx + 0x4); /* 0x36141AFC: mov ecx, dword ptr [edx + 4] */ 2549 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141AFF: mov byte ptr [ecx + 0x20], 0 */ 2550 edx = MEM32(eax + 0x4); /* 0x36141B03: mov edx, dword ptr [eax + 4] */ 2551 ecx = MEM32(edx + 0x4); /* 0x36141B06: mov ecx, dword ptr [edx + 4] */ 2552 edx = MEM32(ecx + 0x8); /* 0x36141B09: mov edx, dword ptr [ecx + 8] */ 2553 edi = MEM32(edx); /* 0x36141B0C: mov edi, dword ptr [edx] */ 2554 MEM32(ecx + 0x8) = edi; /* 0x36141B0E: mov dword ptr [ecx + 8], edi */ 2555 edi = MEM32(edx); /* 0x36141B11: mov edi, dword ptr [edx] */ 2556 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141B13: cmp edi, dword ptr [esi + 8] */ 2557 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2559 _flag_k = FK_CMP; 2560 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B1B; /* 0x36141B16: je 0x36141b1b */ 2561 L_36141B18: 2562 MEM32(edi + 0x4) = ecx; /* 0x36141B18: mov dword ptr [edi + 4], ecx */ 2563 L_36141B1B: 2564 edi = MEM32(ecx + 0x4); /* 0x36141B1B: mov edi, dword ptr [ecx + 4] */ 2565 MEM32(edx + 0x4) = edi; /* 0x36141B1E: mov dword ptr [edx + 4], edi */ 2566 edi = MEM32(esi + 0x4); /* 0x36141B21: mov edi, dword ptr [esi + 4] */ 2567 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141B24: cmp ecx, dword ptr [edi + 4] */ 2568 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2570 _flag_k = FK_CMP; 2571 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B2E; /* 0x36141B27: jne 0x36141b2e */ 2572 L_36141B29: 2573 MEM32(edi + 0x4) = edx; /* 0x36141B29: mov dword ptr [edi + 4], edx */ 2574 goto L_36141B3C; /* 0x36141B2C: jmp 0x36141b3c */ 2575 L_36141B2E: 2576 edi = MEM32(ecx + 0x4); /* 0x36141B2E: mov edi, dword ptr [ecx + 4] */ 2577 /* cmp ecx, MEM32(edi) */ /* 0x36141B31: cmp ecx, dword ptr [edi] */ 2578 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2580 _flag_k = FK_CMP; 2581 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B39; /* 0x36141B33: jne 0x36141b39 */ 2582 L_36141B35: 2583 MEM32(edi) = edx; /* 0x36141B35: mov dword ptr [edi], edx */ 2584 goto L_36141B3C; /* 0x36141B37: jmp 0x36141b3c */ 2585 L_36141B39: 2586 MEM32(edi + 0x8) = edx; /* 0x36141B39: mov dword ptr [edi + 8], edx */ 2587 L_36141B3C: 2588 MEM32(edx) = ecx; /* 0x36141B3C: mov dword ptr [edx], ecx */ 2589 L_36141B3E: 2590 MEM32(ecx + 0x4) = edx; /* 0x36141B3E: mov dword ptr [ecx + 4], edx */ 2591 L_36141B41: 2592 ecx = MEM32(esi + 0x4); /* 0x36141B41: mov ecx, dword ptr [esi + 4] */ 2593 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36141B44: cmp eax, dword ptr [ecx + 4] */ 2594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2596 _flag_k = FK_CMP; 2597 RECOMP_BACKEDGE(); 2598 if (CMP_NE(_flag_a, _flag_b)) goto L_361419CD; /* 0x36141B47: jne 0x361419cd */ 2599 L_36141B4D: 2600 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 2601 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 2602 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 2603 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 2604 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 2605 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 2606 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 2607 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 2608 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 2609 esp = ebp; /* 0x36141B61: mov esp, ebp */ 2610 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 2611 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 2612 RECOMP_REGS_OUT(); 2613 } 2614 2615 void sub_36141AF3(void) { 2616 int _fpu_cmp = 0; 2617 uint32_t _cf = 0; 2618 int _df = 1; 2619 uint32_t _flag_k = FK_NONE; 2620 uint32_t _flag_a = 0, _flag_b = 0; 2621 uint32_t _itail_tgt = 0; 2622 RECOMP_REGS_LOCALS 2623 RECOMP_ENTER(0x36141AF3u); 2624 2625 goto L_36141AF3; 2626 L_361419CD: 2627 ecx = MEM32(eax + 0x4); /* 0x361419CD: mov ecx, dword ptr [eax + 4] */ 2628 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361419D0: mov dl, byte ptr [ecx + 0x20] */ 2629 /* test LO8(edx), LO8(edx) */ /* 0x361419D3: test dl, dl */ 2630 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2631 _cf = 0; 2632 _flag_k = FK_NARROW(FK_TEST, 24); 2633 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419D5: jne 0x36141b4d */ 2634 L_361419DB: 2635 edi = MEM32(ecx + 0x4); /* 0x361419DB: mov edi, dword ptr [ecx + 4] */ 2636 edx = MEM32(edi); /* 0x361419DE: mov edx, dword ptr [edi] */ 2637 /* cmp ecx, edx */ /* 0x361419E0: cmp ecx, edx */ 2638 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2640 _flag_k = FK_CMP; 2641 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AA9; /* 0x361419E2: jne 0x36141aa9 */ 2642 L_361419E8: 2643 edx = MEM32(edi + 0x8); /* 0x361419E8: mov edx, dword ptr [edi + 8] */ 2644 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361419EB: cmp byte ptr [edx + 0x20], 0 */ 2645 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 2646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2647 _flag_k = FK_NARROW(FK_CMP, 24); 2648 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A0C; /* 0x361419EF: jne 0x36141a0c */ 2649 L_361419F1: 2650 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F1: mov byte ptr [ecx + 0x20], bl */ 2651 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F4: mov byte ptr [edx + 0x20], bl */ 2652 ecx = MEM32(eax + 0x4); /* 0x361419F7: mov ecx, dword ptr [eax + 4] */ 2653 edx = MEM32(ecx + 0x4); /* 0x361419FA: mov edx, dword ptr [ecx + 4] */ 2654 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361419FD: mov byte ptr [edx + 0x20], 0 */ 2655 eax = MEM32(eax + 0x4); /* 0x36141A01: mov eax, dword ptr [eax + 4] */ 2656 eax = MEM32(eax + 0x4); /* 0x36141A04: mov eax, dword ptr [eax + 4] */ 2657 goto L_36141B41; /* 0x36141A07: jmp 0x36141b41 */ 2658 L_36141A0C: 2659 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36141A0C: cmp eax, dword ptr [ecx + 8] */ 2660 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2662 _flag_k = FK_CMP; 2663 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A4B; /* 0x36141A0F: jne 0x36141a4b */ 2664 L_36141A11: 2665 eax = ecx; /* 0x36141A11: mov eax, ecx */ 2666 ecx = MEM32(eax + 0x8); /* 0x36141A13: mov ecx, dword ptr [eax + 8] */ 2667 edx = MEM32(ecx); /* 0x36141A16: mov edx, dword ptr [ecx] */ 2668 MEM32(eax + 0x8) = edx; /* 0x36141A18: mov dword ptr [eax + 8], edx */ 2669 edx = MEM32(ecx); /* 0x36141A1B: mov edx, dword ptr [ecx] */ 2670 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141A1D: cmp edx, dword ptr [esi + 8] */ 2671 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2673 _flag_k = FK_CMP; 2674 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A25; /* 0x36141A20: je 0x36141a25 */ 2675 L_36141A22: 2676 MEM32(edx + 0x4) = eax; /* 0x36141A22: mov dword ptr [edx + 4], eax */ 2677 L_36141A25: 2678 edx = MEM32(eax + 0x4); /* 0x36141A25: mov edx, dword ptr [eax + 4] */ 2679 MEM32(ecx + 0x4) = edx; /* 0x36141A28: mov dword ptr [ecx + 4], edx */ 2680 edx = MEM32(esi + 0x4); /* 0x36141A2B: mov edx, dword ptr [esi + 4] */ 2681 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141A2E: cmp eax, dword ptr [edx + 4] */ 2682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2684 _flag_k = FK_CMP; 2685 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A38; /* 0x36141A31: jne 0x36141a38 */ 2686 L_36141A33: 2687 MEM32(edx + 0x4) = ecx; /* 0x36141A33: mov dword ptr [edx + 4], ecx */ 2688 goto L_36141A46; /* 0x36141A36: jmp 0x36141a46 */ 2689 L_36141A38: 2690 edx = MEM32(eax + 0x4); /* 0x36141A38: mov edx, dword ptr [eax + 4] */ 2691 /* cmp eax, MEM32(edx) */ /* 0x36141A3B: cmp eax, dword ptr [edx] */ 2692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2694 _flag_k = FK_CMP; 2695 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A43; /* 0x36141A3D: jne 0x36141a43 */ 2696 L_36141A3F: 2697 MEM32(edx) = ecx; /* 0x36141A3F: mov dword ptr [edx], ecx */ 2698 goto L_36141A46; /* 0x36141A41: jmp 0x36141a46 */ 2699 L_36141A43: 2700 MEM32(edx + 0x8) = ecx; /* 0x36141A43: mov dword ptr [edx + 8], ecx */ 2701 L_36141A46: 2702 MEM32(ecx) = eax; /* 0x36141A46: mov dword ptr [ecx], eax */ 2703 MEM32(eax + 0x4) = ecx; /* 0x36141A48: mov dword ptr [eax + 4], ecx */ 2704 L_36141A4B: 2705 ecx = MEM32(eax + 0x4); /* 0x36141A4B: mov ecx, dword ptr [eax + 4] */ 2706 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141A4E: mov byte ptr [ecx + 0x20], bl */ 2707 edx = MEM32(eax + 0x4); /* 0x36141A51: mov edx, dword ptr [eax + 4] */ 2708 ecx = MEM32(edx + 0x4); /* 0x36141A54: mov ecx, dword ptr [edx + 4] */ 2709 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141A57: mov byte ptr [ecx + 0x20], 0 */ 2710 edx = MEM32(eax + 0x4); /* 0x36141A5B: mov edx, dword ptr [eax + 4] */ 2711 ecx = MEM32(edx + 0x4); /* 0x36141A5E: mov ecx, dword ptr [edx + 4] */ 2712 edx = MEM32(ecx); /* 0x36141A61: mov edx, dword ptr [ecx] */ 2713 edi = MEM32(edx + 0x8); /* 0x36141A63: mov edi, dword ptr [edx + 8] */ 2714 MEM32(ecx) = edi; /* 0x36141A66: mov dword ptr [ecx], edi */ 2715 edi = MEM32(edx + 0x8); /* 0x36141A68: mov edi, dword ptr [edx + 8] */ 2716 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141A6B: cmp edi, dword ptr [esi + 8] */ 2717 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2719 _flag_k = FK_CMP; 2720 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A73; /* 0x36141A6E: je 0x36141a73 */ 2721 L_36141A70: 2722 MEM32(edi + 0x4) = ecx; /* 0x36141A70: mov dword ptr [edi + 4], ecx */ 2723 L_36141A73: 2724 edi = MEM32(ecx + 0x4); /* 0x36141A73: mov edi, dword ptr [ecx + 4] */ 2725 MEM32(edx + 0x4) = edi; /* 0x36141A76: mov dword ptr [edx + 4], edi */ 2726 edi = MEM32(esi + 0x4); /* 0x36141A79: mov edi, dword ptr [esi + 4] */ 2727 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141A7C: cmp ecx, dword ptr [edi + 4] */ 2728 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2730 _flag_k = FK_CMP; 2731 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A8C; /* 0x36141A7F: jne 0x36141a8c */ 2732 L_36141A81: 2733 MEM32(edi + 0x4) = edx; /* 0x36141A81: mov dword ptr [edi + 4], edx */ 2734 MEM32(edx + 0x8) = ecx; /* 0x36141A84: mov dword ptr [edx + 8], ecx */ 2735 goto L_36141B3E; /* 0x36141A87: jmp 0x36141b3e */ 2736 L_36141A8C: 2737 edi = MEM32(ecx + 0x4); /* 0x36141A8C: mov edi, dword ptr [ecx + 4] */ 2738 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36141A8F: cmp ecx, dword ptr [edi + 8] */ 2739 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2741 _flag_k = FK_CMP; 2742 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A9F; /* 0x36141A92: jne 0x36141a9f */ 2743 L_36141A94: 2744 MEM32(edi + 0x8) = edx; /* 0x36141A94: mov dword ptr [edi + 8], edx */ 2745 MEM32(edx + 0x8) = ecx; /* 0x36141A97: mov dword ptr [edx + 8], ecx */ 2746 goto L_36141B3E; /* 0x36141A9A: jmp 0x36141b3e */ 2747 L_36141A9F: 2748 MEM32(edi) = edx; /* 0x36141A9F: mov dword ptr [edi], edx */ 2749 MEM32(edx + 0x8) = ecx; /* 0x36141AA1: mov dword ptr [edx + 8], ecx */ 2750 goto L_36141B3E; /* 0x36141AA4: jmp 0x36141b3e */ 2751 L_36141AA9: 2752 /* cmp MEM8(edx + 0x20), 0 */ /* 0x36141AA9: cmp byte ptr [edx + 0x20], 0 */ 2753 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 2754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2755 _flag_k = FK_NARROW(FK_CMP, 24); 2756 RECOMP_BACKEDGE(); 2757 if (CMP_EQ(_flag_a, _flag_b)) goto L_361419F1; /* 0x36141AAD: je 0x361419f1 */ 2758 L_36141AB3: 2759 /* cmp eax, MEM32(ecx) */ /* 0x36141AB3: cmp eax, dword ptr [ecx] */ 2760 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2762 _flag_k = FK_CMP; 2763 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AF3; /* 0x36141AB5: jne 0x36141af3 */ 2764 L_36141AB7: 2765 eax = ecx; /* 0x36141AB7: mov eax, ecx */ 2766 ecx = MEM32(eax); /* 0x36141AB9: mov ecx, dword ptr [eax] */ 2767 edx = MEM32(ecx + 0x8); /* 0x36141ABB: mov edx, dword ptr [ecx + 8] */ 2768 MEM32(eax) = edx; /* 0x36141ABE: mov dword ptr [eax], edx */ 2769 edx = MEM32(ecx + 0x8); /* 0x36141AC0: mov edx, dword ptr [ecx + 8] */ 2770 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141AC3: cmp edx, dword ptr [esi + 8] */ 2771 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2773 _flag_k = FK_CMP; 2774 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141ACB; /* 0x36141AC6: je 0x36141acb */ 2775 L_36141AC8: 2776 MEM32(edx + 0x4) = eax; /* 0x36141AC8: mov dword ptr [edx + 4], eax */ 2777 L_36141ACB: 2778 edx = MEM32(eax + 0x4); /* 0x36141ACB: mov edx, dword ptr [eax + 4] */ 2779 MEM32(ecx + 0x4) = edx; /* 0x36141ACE: mov dword ptr [ecx + 4], edx */ 2780 edx = MEM32(esi + 0x4); /* 0x36141AD1: mov edx, dword ptr [esi + 4] */ 2781 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141AD4: cmp eax, dword ptr [edx + 4] */ 2782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2784 _flag_k = FK_CMP; 2785 if (CMP_NE(_flag_a, _flag_b)) goto L_36141ADE; /* 0x36141AD7: jne 0x36141ade */ 2786 L_36141AD9: 2787 MEM32(edx + 0x4) = ecx; /* 0x36141AD9: mov dword ptr [edx + 4], ecx */ 2788 goto L_36141AED; /* 0x36141ADC: jmp 0x36141aed */ 2789 L_36141ADE: 2790 edx = MEM32(eax + 0x4); /* 0x36141ADE: mov edx, dword ptr [eax + 4] */ 2791 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36141AE1: cmp eax, dword ptr [edx + 8] */ 2792 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2794 _flag_k = FK_CMP; 2795 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AEB; /* 0x36141AE4: jne 0x36141aeb */ 2796 L_36141AE6: 2797 MEM32(edx + 0x8) = ecx; /* 0x36141AE6: mov dword ptr [edx + 8], ecx */ 2798 goto L_36141AED; /* 0x36141AE9: jmp 0x36141aed */ 2799 L_36141AEB: 2800 MEM32(edx) = ecx; /* 0x36141AEB: mov dword ptr [edx], ecx */ 2801 L_36141AED: 2802 MEM32(ecx + 0x8) = eax; /* 0x36141AED: mov dword ptr [ecx + 8], eax */ 2803 MEM32(eax + 0x4) = ecx; /* 0x36141AF0: mov dword ptr [eax + 4], ecx */ 2804 L_36141AF3: 2805 ecx = MEM32(eax + 0x4); /* 0x36141AF3: mov ecx, dword ptr [eax + 4] */ 2806 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141AF6: mov byte ptr [ecx + 0x20], bl */ 2807 edx = MEM32(eax + 0x4); /* 0x36141AF9: mov edx, dword ptr [eax + 4] */ 2808 ecx = MEM32(edx + 0x4); /* 0x36141AFC: mov ecx, dword ptr [edx + 4] */ 2809 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141AFF: mov byte ptr [ecx + 0x20], 0 */ 2810 edx = MEM32(eax + 0x4); /* 0x36141B03: mov edx, dword ptr [eax + 4] */ 2811 ecx = MEM32(edx + 0x4); /* 0x36141B06: mov ecx, dword ptr [edx + 4] */ 2812 edx = MEM32(ecx + 0x8); /* 0x36141B09: mov edx, dword ptr [ecx + 8] */ 2813 edi = MEM32(edx); /* 0x36141B0C: mov edi, dword ptr [edx] */ 2814 MEM32(ecx + 0x8) = edi; /* 0x36141B0E: mov dword ptr [ecx + 8], edi */ 2815 edi = MEM32(edx); /* 0x36141B11: mov edi, dword ptr [edx] */ 2816 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141B13: cmp edi, dword ptr [esi + 8] */ 2817 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2819 _flag_k = FK_CMP; 2820 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B1B; /* 0x36141B16: je 0x36141b1b */ 2821 L_36141B18: 2822 MEM32(edi + 0x4) = ecx; /* 0x36141B18: mov dword ptr [edi + 4], ecx */ 2823 L_36141B1B: 2824 edi = MEM32(ecx + 0x4); /* 0x36141B1B: mov edi, dword ptr [ecx + 4] */ 2825 MEM32(edx + 0x4) = edi; /* 0x36141B1E: mov dword ptr [edx + 4], edi */ 2826 edi = MEM32(esi + 0x4); /* 0x36141B21: mov edi, dword ptr [esi + 4] */ 2827 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141B24: cmp ecx, dword ptr [edi + 4] */ 2828 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2830 _flag_k = FK_CMP; 2831 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B2E; /* 0x36141B27: jne 0x36141b2e */ 2832 L_36141B29: 2833 MEM32(edi + 0x4) = edx; /* 0x36141B29: mov dword ptr [edi + 4], edx */ 2834 goto L_36141B3C; /* 0x36141B2C: jmp 0x36141b3c */ 2835 L_36141B2E: 2836 edi = MEM32(ecx + 0x4); /* 0x36141B2E: mov edi, dword ptr [ecx + 4] */ 2837 /* cmp ecx, MEM32(edi) */ /* 0x36141B31: cmp ecx, dword ptr [edi] */ 2838 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2840 _flag_k = FK_CMP; 2841 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B39; /* 0x36141B33: jne 0x36141b39 */ 2842 L_36141B35: 2843 MEM32(edi) = edx; /* 0x36141B35: mov dword ptr [edi], edx */ 2844 goto L_36141B3C; /* 0x36141B37: jmp 0x36141b3c */ 2845 L_36141B39: 2846 MEM32(edi + 0x8) = edx; /* 0x36141B39: mov dword ptr [edi + 8], edx */ 2847 L_36141B3C: 2848 MEM32(edx) = ecx; /* 0x36141B3C: mov dword ptr [edx], ecx */ 2849 L_36141B3E: 2850 MEM32(ecx + 0x4) = edx; /* 0x36141B3E: mov dword ptr [ecx + 4], edx */ 2851 L_36141B41: 2852 ecx = MEM32(esi + 0x4); /* 0x36141B41: mov ecx, dword ptr [esi + 4] */ 2853 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36141B44: cmp eax, dword ptr [ecx + 4] */ 2854 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2856 _flag_k = FK_CMP; 2857 RECOMP_BACKEDGE(); 2858 if (CMP_NE(_flag_a, _flag_b)) goto L_361419CD; /* 0x36141B47: jne 0x361419cd */ 2859 L_36141B4D: 2860 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 2861 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 2862 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 2863 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 2864 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 2865 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 2866 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 2867 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 2868 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 2869 esp = ebp; /* 0x36141B61: mov esp, ebp */ 2870 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 2871 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 2872 RECOMP_REGS_OUT(); 2873 } 2874 2875 void sub_36141B3C(void) { 2876 int _fpu_cmp = 0; 2877 uint32_t _cf = 0; 2878 int _df = 1; 2879 uint32_t _flag_k = FK_NONE; 2880 uint32_t _flag_a = 0, _flag_b = 0; 2881 uint32_t _itail_tgt = 0; 2882 RECOMP_REGS_LOCALS 2883 RECOMP_ENTER(0x36141B3Cu); 2884 2885 goto L_36141B3C; 2886 L_361419CD: 2887 ecx = MEM32(eax + 0x4); /* 0x361419CD: mov ecx, dword ptr [eax + 4] */ 2888 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361419D0: mov dl, byte ptr [ecx + 0x20] */ 2889 /* test LO8(edx), LO8(edx) */ /* 0x361419D3: test dl, dl */ 2890 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2891 _cf = 0; 2892 _flag_k = FK_NARROW(FK_TEST, 24); 2893 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419D5: jne 0x36141b4d */ 2894 L_361419DB: 2895 edi = MEM32(ecx + 0x4); /* 0x361419DB: mov edi, dword ptr [ecx + 4] */ 2896 edx = MEM32(edi); /* 0x361419DE: mov edx, dword ptr [edi] */ 2897 /* cmp ecx, edx */ /* 0x361419E0: cmp ecx, edx */ 2898 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2900 _flag_k = FK_CMP; 2901 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AA9; /* 0x361419E2: jne 0x36141aa9 */ 2902 L_361419E8: 2903 edx = MEM32(edi + 0x8); /* 0x361419E8: mov edx, dword ptr [edi + 8] */ 2904 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361419EB: cmp byte ptr [edx + 0x20], 0 */ 2905 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 2906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2907 _flag_k = FK_NARROW(FK_CMP, 24); 2908 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A0C; /* 0x361419EF: jne 0x36141a0c */ 2909 L_361419F1: 2910 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F1: mov byte ptr [ecx + 0x20], bl */ 2911 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F4: mov byte ptr [edx + 0x20], bl */ 2912 ecx = MEM32(eax + 0x4); /* 0x361419F7: mov ecx, dword ptr [eax + 4] */ 2913 edx = MEM32(ecx + 0x4); /* 0x361419FA: mov edx, dword ptr [ecx + 4] */ 2914 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361419FD: mov byte ptr [edx + 0x20], 0 */ 2915 eax = MEM32(eax + 0x4); /* 0x36141A01: mov eax, dword ptr [eax + 4] */ 2916 eax = MEM32(eax + 0x4); /* 0x36141A04: mov eax, dword ptr [eax + 4] */ 2917 goto L_36141B41; /* 0x36141A07: jmp 0x36141b41 */ 2918 L_36141A0C: 2919 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36141A0C: cmp eax, dword ptr [ecx + 8] */ 2920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2922 _flag_k = FK_CMP; 2923 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A4B; /* 0x36141A0F: jne 0x36141a4b */ 2924 L_36141A11: 2925 eax = ecx; /* 0x36141A11: mov eax, ecx */ 2926 ecx = MEM32(eax + 0x8); /* 0x36141A13: mov ecx, dword ptr [eax + 8] */ 2927 edx = MEM32(ecx); /* 0x36141A16: mov edx, dword ptr [ecx] */ 2928 MEM32(eax + 0x8) = edx; /* 0x36141A18: mov dword ptr [eax + 8], edx */ 2929 edx = MEM32(ecx); /* 0x36141A1B: mov edx, dword ptr [ecx] */ 2930 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141A1D: cmp edx, dword ptr [esi + 8] */ 2931 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2933 _flag_k = FK_CMP; 2934 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A25; /* 0x36141A20: je 0x36141a25 */ 2935 L_36141A22: 2936 MEM32(edx + 0x4) = eax; /* 0x36141A22: mov dword ptr [edx + 4], eax */ 2937 L_36141A25: 2938 edx = MEM32(eax + 0x4); /* 0x36141A25: mov edx, dword ptr [eax + 4] */ 2939 MEM32(ecx + 0x4) = edx; /* 0x36141A28: mov dword ptr [ecx + 4], edx */ 2940 edx = MEM32(esi + 0x4); /* 0x36141A2B: mov edx, dword ptr [esi + 4] */ 2941 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141A2E: cmp eax, dword ptr [edx + 4] */ 2942 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2944 _flag_k = FK_CMP; 2945 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A38; /* 0x36141A31: jne 0x36141a38 */ 2946 L_36141A33: 2947 MEM32(edx + 0x4) = ecx; /* 0x36141A33: mov dword ptr [edx + 4], ecx */ 2948 goto L_36141A46; /* 0x36141A36: jmp 0x36141a46 */ 2949 L_36141A38: 2950 edx = MEM32(eax + 0x4); /* 0x36141A38: mov edx, dword ptr [eax + 4] */ 2951 /* cmp eax, MEM32(edx) */ /* 0x36141A3B: cmp eax, dword ptr [edx] */ 2952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2954 _flag_k = FK_CMP; 2955 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A43; /* 0x36141A3D: jne 0x36141a43 */ 2956 L_36141A3F: 2957 MEM32(edx) = ecx; /* 0x36141A3F: mov dword ptr [edx], ecx */ 2958 goto L_36141A46; /* 0x36141A41: jmp 0x36141a46 */ 2959 L_36141A43: 2960 MEM32(edx + 0x8) = ecx; /* 0x36141A43: mov dword ptr [edx + 8], ecx */ 2961 L_36141A46: 2962 MEM32(ecx) = eax; /* 0x36141A46: mov dword ptr [ecx], eax */ 2963 MEM32(eax + 0x4) = ecx; /* 0x36141A48: mov dword ptr [eax + 4], ecx */ 2964 L_36141A4B: 2965 ecx = MEM32(eax + 0x4); /* 0x36141A4B: mov ecx, dword ptr [eax + 4] */ 2966 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141A4E: mov byte ptr [ecx + 0x20], bl */ 2967 edx = MEM32(eax + 0x4); /* 0x36141A51: mov edx, dword ptr [eax + 4] */ 2968 ecx = MEM32(edx + 0x4); /* 0x36141A54: mov ecx, dword ptr [edx + 4] */ 2969 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141A57: mov byte ptr [ecx + 0x20], 0 */ 2970 edx = MEM32(eax + 0x4); /* 0x36141A5B: mov edx, dword ptr [eax + 4] */ 2971 ecx = MEM32(edx + 0x4); /* 0x36141A5E: mov ecx, dword ptr [edx + 4] */ 2972 edx = MEM32(ecx); /* 0x36141A61: mov edx, dword ptr [ecx] */ 2973 edi = MEM32(edx + 0x8); /* 0x36141A63: mov edi, dword ptr [edx + 8] */ 2974 MEM32(ecx) = edi; /* 0x36141A66: mov dword ptr [ecx], edi */ 2975 edi = MEM32(edx + 0x8); /* 0x36141A68: mov edi, dword ptr [edx + 8] */ 2976 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141A6B: cmp edi, dword ptr [esi + 8] */ 2977 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2979 _flag_k = FK_CMP; 2980 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A73; /* 0x36141A6E: je 0x36141a73 */ 2981 L_36141A70: 2982 MEM32(edi + 0x4) = ecx; /* 0x36141A70: mov dword ptr [edi + 4], ecx */ 2983 L_36141A73: 2984 edi = MEM32(ecx + 0x4); /* 0x36141A73: mov edi, dword ptr [ecx + 4] */ 2985 MEM32(edx + 0x4) = edi; /* 0x36141A76: mov dword ptr [edx + 4], edi */ 2986 edi = MEM32(esi + 0x4); /* 0x36141A79: mov edi, dword ptr [esi + 4] */ 2987 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141A7C: cmp ecx, dword ptr [edi + 4] */ 2988 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2990 _flag_k = FK_CMP; 2991 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A8C; /* 0x36141A7F: jne 0x36141a8c */ 2992 L_36141A81: 2993 MEM32(edi + 0x4) = edx; /* 0x36141A81: mov dword ptr [edi + 4], edx */ 2994 MEM32(edx + 0x8) = ecx; /* 0x36141A84: mov dword ptr [edx + 8], ecx */ 2995 goto L_36141B3E; /* 0x36141A87: jmp 0x36141b3e */ 2996 L_36141A8C: 2997 edi = MEM32(ecx + 0x4); /* 0x36141A8C: mov edi, dword ptr [ecx + 4] */ 2998 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36141A8F: cmp ecx, dword ptr [edi + 8] */ 2999 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3001 _flag_k = FK_CMP; 3002 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A9F; /* 0x36141A92: jne 0x36141a9f */ 3003 L_36141A94: 3004 MEM32(edi + 0x8) = edx; /* 0x36141A94: mov dword ptr [edi + 8], edx */ 3005 MEM32(edx + 0x8) = ecx; /* 0x36141A97: mov dword ptr [edx + 8], ecx */ 3006 goto L_36141B3E; /* 0x36141A9A: jmp 0x36141b3e */ 3007 L_36141A9F: 3008 MEM32(edi) = edx; /* 0x36141A9F: mov dword ptr [edi], edx */ 3009 MEM32(edx + 0x8) = ecx; /* 0x36141AA1: mov dword ptr [edx + 8], ecx */ 3010 goto L_36141B3E; /* 0x36141AA4: jmp 0x36141b3e */ 3011 L_36141AA9: 3012 /* cmp MEM8(edx + 0x20), 0 */ /* 0x36141AA9: cmp byte ptr [edx + 0x20], 0 */ 3013 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 3014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3015 _flag_k = FK_NARROW(FK_CMP, 24); 3016 RECOMP_BACKEDGE(); 3017 if (CMP_EQ(_flag_a, _flag_b)) goto L_361419F1; /* 0x36141AAD: je 0x361419f1 */ 3018 L_36141AB3: 3019 /* cmp eax, MEM32(ecx) */ /* 0x36141AB3: cmp eax, dword ptr [ecx] */ 3020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 3021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3022 _flag_k = FK_CMP; 3023 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AF3; /* 0x36141AB5: jne 0x36141af3 */ 3024 L_36141AB7: 3025 eax = ecx; /* 0x36141AB7: mov eax, ecx */ 3026 ecx = MEM32(eax); /* 0x36141AB9: mov ecx, dword ptr [eax] */ 3027 edx = MEM32(ecx + 0x8); /* 0x36141ABB: mov edx, dword ptr [ecx + 8] */ 3028 MEM32(eax) = edx; /* 0x36141ABE: mov dword ptr [eax], edx */ 3029 edx = MEM32(ecx + 0x8); /* 0x36141AC0: mov edx, dword ptr [ecx + 8] */ 3030 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141AC3: cmp edx, dword ptr [esi + 8] */ 3031 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3033 _flag_k = FK_CMP; 3034 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141ACB; /* 0x36141AC6: je 0x36141acb */ 3035 L_36141AC8: 3036 MEM32(edx + 0x4) = eax; /* 0x36141AC8: mov dword ptr [edx + 4], eax */ 3037 L_36141ACB: 3038 edx = MEM32(eax + 0x4); /* 0x36141ACB: mov edx, dword ptr [eax + 4] */ 3039 MEM32(ecx + 0x4) = edx; /* 0x36141ACE: mov dword ptr [ecx + 4], edx */ 3040 edx = MEM32(esi + 0x4); /* 0x36141AD1: mov edx, dword ptr [esi + 4] */ 3041 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141AD4: cmp eax, dword ptr [edx + 4] */ 3042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3044 _flag_k = FK_CMP; 3045 if (CMP_NE(_flag_a, _flag_b)) goto L_36141ADE; /* 0x36141AD7: jne 0x36141ade */ 3046 L_36141AD9: 3047 MEM32(edx + 0x4) = ecx; /* 0x36141AD9: mov dword ptr [edx + 4], ecx */ 3048 goto L_36141AED; /* 0x36141ADC: jmp 0x36141aed */ 3049 L_36141ADE: 3050 edx = MEM32(eax + 0x4); /* 0x36141ADE: mov edx, dword ptr [eax + 4] */ 3051 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36141AE1: cmp eax, dword ptr [edx + 8] */ 3052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 3053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3054 _flag_k = FK_CMP; 3055 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AEB; /* 0x36141AE4: jne 0x36141aeb */ 3056 L_36141AE6: 3057 MEM32(edx + 0x8) = ecx; /* 0x36141AE6: mov dword ptr [edx + 8], ecx */ 3058 goto L_36141AED; /* 0x36141AE9: jmp 0x36141aed */ 3059 L_36141AEB: 3060 MEM32(edx) = ecx; /* 0x36141AEB: mov dword ptr [edx], ecx */ 3061 L_36141AED: 3062 MEM32(ecx + 0x8) = eax; /* 0x36141AED: mov dword ptr [ecx + 8], eax */ 3063 MEM32(eax + 0x4) = ecx; /* 0x36141AF0: mov dword ptr [eax + 4], ecx */ 3064 L_36141AF3: 3065 ecx = MEM32(eax + 0x4); /* 0x36141AF3: mov ecx, dword ptr [eax + 4] */ 3066 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141AF6: mov byte ptr [ecx + 0x20], bl */ 3067 edx = MEM32(eax + 0x4); /* 0x36141AF9: mov edx, dword ptr [eax + 4] */ 3068 ecx = MEM32(edx + 0x4); /* 0x36141AFC: mov ecx, dword ptr [edx + 4] */ 3069 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141AFF: mov byte ptr [ecx + 0x20], 0 */ 3070 edx = MEM32(eax + 0x4); /* 0x36141B03: mov edx, dword ptr [eax + 4] */ 3071 ecx = MEM32(edx + 0x4); /* 0x36141B06: mov ecx, dword ptr [edx + 4] */ 3072 edx = MEM32(ecx + 0x8); /* 0x36141B09: mov edx, dword ptr [ecx + 8] */ 3073 edi = MEM32(edx); /* 0x36141B0C: mov edi, dword ptr [edx] */ 3074 MEM32(ecx + 0x8) = edi; /* 0x36141B0E: mov dword ptr [ecx + 8], edi */ 3075 edi = MEM32(edx); /* 0x36141B11: mov edi, dword ptr [edx] */ 3076 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141B13: cmp edi, dword ptr [esi + 8] */ 3077 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3079 _flag_k = FK_CMP; 3080 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B1B; /* 0x36141B16: je 0x36141b1b */ 3081 L_36141B18: 3082 MEM32(edi + 0x4) = ecx; /* 0x36141B18: mov dword ptr [edi + 4], ecx */ 3083 L_36141B1B: 3084 edi = MEM32(ecx + 0x4); /* 0x36141B1B: mov edi, dword ptr [ecx + 4] */ 3085 MEM32(edx + 0x4) = edi; /* 0x36141B1E: mov dword ptr [edx + 4], edi */ 3086 edi = MEM32(esi + 0x4); /* 0x36141B21: mov edi, dword ptr [esi + 4] */ 3087 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141B24: cmp ecx, dword ptr [edi + 4] */ 3088 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3090 _flag_k = FK_CMP; 3091 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B2E; /* 0x36141B27: jne 0x36141b2e */ 3092 L_36141B29: 3093 MEM32(edi + 0x4) = edx; /* 0x36141B29: mov dword ptr [edi + 4], edx */ 3094 goto L_36141B3C; /* 0x36141B2C: jmp 0x36141b3c */ 3095 L_36141B2E: 3096 edi = MEM32(ecx + 0x4); /* 0x36141B2E: mov edi, dword ptr [ecx + 4] */ 3097 /* cmp ecx, MEM32(edi) */ /* 0x36141B31: cmp ecx, dword ptr [edi] */ 3098 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 3099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3100 _flag_k = FK_CMP; 3101 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B39; /* 0x36141B33: jne 0x36141b39 */ 3102 L_36141B35: 3103 MEM32(edi) = edx; /* 0x36141B35: mov dword ptr [edi], edx */ 3104 goto L_36141B3C; /* 0x36141B37: jmp 0x36141b3c */ 3105 L_36141B39: 3106 MEM32(edi + 0x8) = edx; /* 0x36141B39: mov dword ptr [edi + 8], edx */ 3107 L_36141B3C: 3108 MEM32(edx) = ecx; /* 0x36141B3C: mov dword ptr [edx], ecx */ 3109 L_36141B3E: 3110 MEM32(ecx + 0x4) = edx; /* 0x36141B3E: mov dword ptr [ecx + 4], edx */ 3111 L_36141B41: 3112 ecx = MEM32(esi + 0x4); /* 0x36141B41: mov ecx, dword ptr [esi + 4] */ 3113 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36141B44: cmp eax, dword ptr [ecx + 4] */ 3114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3116 _flag_k = FK_CMP; 3117 RECOMP_BACKEDGE(); 3118 if (CMP_NE(_flag_a, _flag_b)) goto L_361419CD; /* 0x36141B47: jne 0x361419cd */ 3119 L_36141B4D: 3120 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 3121 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 3122 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 3123 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 3124 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 3125 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 3126 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 3127 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 3128 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 3129 esp = ebp; /* 0x36141B61: mov esp, ebp */ 3130 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 3131 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 3132 RECOMP_REGS_OUT(); 3133 } 3134 3135 void sub_36141B3E(void) { 3136 int _fpu_cmp = 0; 3137 uint32_t _cf = 0; 3138 int _df = 1; 3139 uint32_t _flag_k = FK_NONE; 3140 uint32_t _flag_a = 0, _flag_b = 0; 3141 uint32_t _itail_tgt = 0; 3142 RECOMP_REGS_LOCALS 3143 RECOMP_ENTER(0x36141B3Eu); 3144 3145 goto L_36141B3E; 3146 L_361419CD: 3147 ecx = MEM32(eax + 0x4); /* 0x361419CD: mov ecx, dword ptr [eax + 4] */ 3148 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361419D0: mov dl, byte ptr [ecx + 0x20] */ 3149 /* test LO8(edx), LO8(edx) */ /* 0x361419D3: test dl, dl */ 3150 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3151 _cf = 0; 3152 _flag_k = FK_NARROW(FK_TEST, 24); 3153 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419D5: jne 0x36141b4d */ 3154 L_361419DB: 3155 edi = MEM32(ecx + 0x4); /* 0x361419DB: mov edi, dword ptr [ecx + 4] */ 3156 edx = MEM32(edi); /* 0x361419DE: mov edx, dword ptr [edi] */ 3157 /* cmp ecx, edx */ /* 0x361419E0: cmp ecx, edx */ 3158 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3160 _flag_k = FK_CMP; 3161 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AA9; /* 0x361419E2: jne 0x36141aa9 */ 3162 L_361419E8: 3163 edx = MEM32(edi + 0x8); /* 0x361419E8: mov edx, dword ptr [edi + 8] */ 3164 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361419EB: cmp byte ptr [edx + 0x20], 0 */ 3165 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 3166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3167 _flag_k = FK_NARROW(FK_CMP, 24); 3168 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A0C; /* 0x361419EF: jne 0x36141a0c */ 3169 L_361419F1: 3170 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F1: mov byte ptr [ecx + 0x20], bl */ 3171 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F4: mov byte ptr [edx + 0x20], bl */ 3172 ecx = MEM32(eax + 0x4); /* 0x361419F7: mov ecx, dword ptr [eax + 4] */ 3173 edx = MEM32(ecx + 0x4); /* 0x361419FA: mov edx, dword ptr [ecx + 4] */ 3174 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361419FD: mov byte ptr [edx + 0x20], 0 */ 3175 eax = MEM32(eax + 0x4); /* 0x36141A01: mov eax, dword ptr [eax + 4] */ 3176 eax = MEM32(eax + 0x4); /* 0x36141A04: mov eax, dword ptr [eax + 4] */ 3177 goto L_36141B41; /* 0x36141A07: jmp 0x36141b41 */ 3178 L_36141A0C: 3179 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36141A0C: cmp eax, dword ptr [ecx + 8] */ 3180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3182 _flag_k = FK_CMP; 3183 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A4B; /* 0x36141A0F: jne 0x36141a4b */ 3184 L_36141A11: 3185 eax = ecx; /* 0x36141A11: mov eax, ecx */ 3186 ecx = MEM32(eax + 0x8); /* 0x36141A13: mov ecx, dword ptr [eax + 8] */ 3187 edx = MEM32(ecx); /* 0x36141A16: mov edx, dword ptr [ecx] */ 3188 MEM32(eax + 0x8) = edx; /* 0x36141A18: mov dword ptr [eax + 8], edx */ 3189 edx = MEM32(ecx); /* 0x36141A1B: mov edx, dword ptr [ecx] */ 3190 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141A1D: cmp edx, dword ptr [esi + 8] */ 3191 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3193 _flag_k = FK_CMP; 3194 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A25; /* 0x36141A20: je 0x36141a25 */ 3195 L_36141A22: 3196 MEM32(edx + 0x4) = eax; /* 0x36141A22: mov dword ptr [edx + 4], eax */ 3197 L_36141A25: 3198 edx = MEM32(eax + 0x4); /* 0x36141A25: mov edx, dword ptr [eax + 4] */ 3199 MEM32(ecx + 0x4) = edx; /* 0x36141A28: mov dword ptr [ecx + 4], edx */ 3200 edx = MEM32(esi + 0x4); /* 0x36141A2B: mov edx, dword ptr [esi + 4] */ 3201 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141A2E: cmp eax, dword ptr [edx + 4] */ 3202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3204 _flag_k = FK_CMP; 3205 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A38; /* 0x36141A31: jne 0x36141a38 */ 3206 L_36141A33: 3207 MEM32(edx + 0x4) = ecx; /* 0x36141A33: mov dword ptr [edx + 4], ecx */ 3208 goto L_36141A46; /* 0x36141A36: jmp 0x36141a46 */ 3209 L_36141A38: 3210 edx = MEM32(eax + 0x4); /* 0x36141A38: mov edx, dword ptr [eax + 4] */ 3211 /* cmp eax, MEM32(edx) */ /* 0x36141A3B: cmp eax, dword ptr [edx] */ 3212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 3213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3214 _flag_k = FK_CMP; 3215 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A43; /* 0x36141A3D: jne 0x36141a43 */ 3216 L_36141A3F: 3217 MEM32(edx) = ecx; /* 0x36141A3F: mov dword ptr [edx], ecx */ 3218 goto L_36141A46; /* 0x36141A41: jmp 0x36141a46 */ 3219 L_36141A43: 3220 MEM32(edx + 0x8) = ecx; /* 0x36141A43: mov dword ptr [edx + 8], ecx */ 3221 L_36141A46: 3222 MEM32(ecx) = eax; /* 0x36141A46: mov dword ptr [ecx], eax */ 3223 MEM32(eax + 0x4) = ecx; /* 0x36141A48: mov dword ptr [eax + 4], ecx */ 3224 L_36141A4B: 3225 ecx = MEM32(eax + 0x4); /* 0x36141A4B: mov ecx, dword ptr [eax + 4] */ 3226 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141A4E: mov byte ptr [ecx + 0x20], bl */ 3227 edx = MEM32(eax + 0x4); /* 0x36141A51: mov edx, dword ptr [eax + 4] */ 3228 ecx = MEM32(edx + 0x4); /* 0x36141A54: mov ecx, dword ptr [edx + 4] */ 3229 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141A57: mov byte ptr [ecx + 0x20], 0 */ 3230 edx = MEM32(eax + 0x4); /* 0x36141A5B: mov edx, dword ptr [eax + 4] */ 3231 ecx = MEM32(edx + 0x4); /* 0x36141A5E: mov ecx, dword ptr [edx + 4] */ 3232 edx = MEM32(ecx); /* 0x36141A61: mov edx, dword ptr [ecx] */ 3233 edi = MEM32(edx + 0x8); /* 0x36141A63: mov edi, dword ptr [edx + 8] */ 3234 MEM32(ecx) = edi; /* 0x36141A66: mov dword ptr [ecx], edi */ 3235 edi = MEM32(edx + 0x8); /* 0x36141A68: mov edi, dword ptr [edx + 8] */ 3236 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141A6B: cmp edi, dword ptr [esi + 8] */ 3237 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3239 _flag_k = FK_CMP; 3240 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A73; /* 0x36141A6E: je 0x36141a73 */ 3241 L_36141A70: 3242 MEM32(edi + 0x4) = ecx; /* 0x36141A70: mov dword ptr [edi + 4], ecx */ 3243 L_36141A73: 3244 edi = MEM32(ecx + 0x4); /* 0x36141A73: mov edi, dword ptr [ecx + 4] */ 3245 MEM32(edx + 0x4) = edi; /* 0x36141A76: mov dword ptr [edx + 4], edi */ 3246 edi = MEM32(esi + 0x4); /* 0x36141A79: mov edi, dword ptr [esi + 4] */ 3247 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141A7C: cmp ecx, dword ptr [edi + 4] */ 3248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3250 _flag_k = FK_CMP; 3251 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A8C; /* 0x36141A7F: jne 0x36141a8c */ 3252 L_36141A81: 3253 MEM32(edi + 0x4) = edx; /* 0x36141A81: mov dword ptr [edi + 4], edx */ 3254 MEM32(edx + 0x8) = ecx; /* 0x36141A84: mov dword ptr [edx + 8], ecx */ 3255 goto L_36141B3E; /* 0x36141A87: jmp 0x36141b3e */ 3256 L_36141A8C: 3257 edi = MEM32(ecx + 0x4); /* 0x36141A8C: mov edi, dword ptr [ecx + 4] */ 3258 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36141A8F: cmp ecx, dword ptr [edi + 8] */ 3259 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3261 _flag_k = FK_CMP; 3262 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A9F; /* 0x36141A92: jne 0x36141a9f */ 3263 L_36141A94: 3264 MEM32(edi + 0x8) = edx; /* 0x36141A94: mov dword ptr [edi + 8], edx */ 3265 MEM32(edx + 0x8) = ecx; /* 0x36141A97: mov dword ptr [edx + 8], ecx */ 3266 goto L_36141B3E; /* 0x36141A9A: jmp 0x36141b3e */ 3267 L_36141A9F: 3268 MEM32(edi) = edx; /* 0x36141A9F: mov dword ptr [edi], edx */ 3269 MEM32(edx + 0x8) = ecx; /* 0x36141AA1: mov dword ptr [edx + 8], ecx */ 3270 goto L_36141B3E; /* 0x36141AA4: jmp 0x36141b3e */ 3271 L_36141AA9: 3272 /* cmp MEM8(edx + 0x20), 0 */ /* 0x36141AA9: cmp byte ptr [edx + 0x20], 0 */ 3273 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 3274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3275 _flag_k = FK_NARROW(FK_CMP, 24); 3276 RECOMP_BACKEDGE(); 3277 if (CMP_EQ(_flag_a, _flag_b)) goto L_361419F1; /* 0x36141AAD: je 0x361419f1 */ 3278 L_36141AB3: 3279 /* cmp eax, MEM32(ecx) */ /* 0x36141AB3: cmp eax, dword ptr [ecx] */ 3280 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 3281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3282 _flag_k = FK_CMP; 3283 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AF3; /* 0x36141AB5: jne 0x36141af3 */ 3284 L_36141AB7: 3285 eax = ecx; /* 0x36141AB7: mov eax, ecx */ 3286 ecx = MEM32(eax); /* 0x36141AB9: mov ecx, dword ptr [eax] */ 3287 edx = MEM32(ecx + 0x8); /* 0x36141ABB: mov edx, dword ptr [ecx + 8] */ 3288 MEM32(eax) = edx; /* 0x36141ABE: mov dword ptr [eax], edx */ 3289 edx = MEM32(ecx + 0x8); /* 0x36141AC0: mov edx, dword ptr [ecx + 8] */ 3290 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141AC3: cmp edx, dword ptr [esi + 8] */ 3291 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3293 _flag_k = FK_CMP; 3294 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141ACB; /* 0x36141AC6: je 0x36141acb */ 3295 L_36141AC8: 3296 MEM32(edx + 0x4) = eax; /* 0x36141AC8: mov dword ptr [edx + 4], eax */ 3297 L_36141ACB: 3298 edx = MEM32(eax + 0x4); /* 0x36141ACB: mov edx, dword ptr [eax + 4] */ 3299 MEM32(ecx + 0x4) = edx; /* 0x36141ACE: mov dword ptr [ecx + 4], edx */ 3300 edx = MEM32(esi + 0x4); /* 0x36141AD1: mov edx, dword ptr [esi + 4] */ 3301 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141AD4: cmp eax, dword ptr [edx + 4] */ 3302 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3304 _flag_k = FK_CMP; 3305 if (CMP_NE(_flag_a, _flag_b)) goto L_36141ADE; /* 0x36141AD7: jne 0x36141ade */ 3306 L_36141AD9: 3307 MEM32(edx + 0x4) = ecx; /* 0x36141AD9: mov dword ptr [edx + 4], ecx */ 3308 goto L_36141AED; /* 0x36141ADC: jmp 0x36141aed */ 3309 L_36141ADE: 3310 edx = MEM32(eax + 0x4); /* 0x36141ADE: mov edx, dword ptr [eax + 4] */ 3311 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36141AE1: cmp eax, dword ptr [edx + 8] */ 3312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 3313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3314 _flag_k = FK_CMP; 3315 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AEB; /* 0x36141AE4: jne 0x36141aeb */ 3316 L_36141AE6: 3317 MEM32(edx + 0x8) = ecx; /* 0x36141AE6: mov dword ptr [edx + 8], ecx */ 3318 goto L_36141AED; /* 0x36141AE9: jmp 0x36141aed */ 3319 L_36141AEB: 3320 MEM32(edx) = ecx; /* 0x36141AEB: mov dword ptr [edx], ecx */ 3321 L_36141AED: 3322 MEM32(ecx + 0x8) = eax; /* 0x36141AED: mov dword ptr [ecx + 8], eax */ 3323 MEM32(eax + 0x4) = ecx; /* 0x36141AF0: mov dword ptr [eax + 4], ecx */ 3324 L_36141AF3: 3325 ecx = MEM32(eax + 0x4); /* 0x36141AF3: mov ecx, dword ptr [eax + 4] */ 3326 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141AF6: mov byte ptr [ecx + 0x20], bl */ 3327 edx = MEM32(eax + 0x4); /* 0x36141AF9: mov edx, dword ptr [eax + 4] */ 3328 ecx = MEM32(edx + 0x4); /* 0x36141AFC: mov ecx, dword ptr [edx + 4] */ 3329 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141AFF: mov byte ptr [ecx + 0x20], 0 */ 3330 edx = MEM32(eax + 0x4); /* 0x36141B03: mov edx, dword ptr [eax + 4] */ 3331 ecx = MEM32(edx + 0x4); /* 0x36141B06: mov ecx, dword ptr [edx + 4] */ 3332 edx = MEM32(ecx + 0x8); /* 0x36141B09: mov edx, dword ptr [ecx + 8] */ 3333 edi = MEM32(edx); /* 0x36141B0C: mov edi, dword ptr [edx] */ 3334 MEM32(ecx + 0x8) = edi; /* 0x36141B0E: mov dword ptr [ecx + 8], edi */ 3335 edi = MEM32(edx); /* 0x36141B11: mov edi, dword ptr [edx] */ 3336 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141B13: cmp edi, dword ptr [esi + 8] */ 3337 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3339 _flag_k = FK_CMP; 3340 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B1B; /* 0x36141B16: je 0x36141b1b */ 3341 L_36141B18: 3342 MEM32(edi + 0x4) = ecx; /* 0x36141B18: mov dword ptr [edi + 4], ecx */ 3343 L_36141B1B: 3344 edi = MEM32(ecx + 0x4); /* 0x36141B1B: mov edi, dword ptr [ecx + 4] */ 3345 MEM32(edx + 0x4) = edi; /* 0x36141B1E: mov dword ptr [edx + 4], edi */ 3346 edi = MEM32(esi + 0x4); /* 0x36141B21: mov edi, dword ptr [esi + 4] */ 3347 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141B24: cmp ecx, dword ptr [edi + 4] */ 3348 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3350 _flag_k = FK_CMP; 3351 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B2E; /* 0x36141B27: jne 0x36141b2e */ 3352 L_36141B29: 3353 MEM32(edi + 0x4) = edx; /* 0x36141B29: mov dword ptr [edi + 4], edx */ 3354 goto L_36141B3C; /* 0x36141B2C: jmp 0x36141b3c */ 3355 L_36141B2E: 3356 edi = MEM32(ecx + 0x4); /* 0x36141B2E: mov edi, dword ptr [ecx + 4] */ 3357 /* cmp ecx, MEM32(edi) */ /* 0x36141B31: cmp ecx, dword ptr [edi] */ 3358 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 3359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3360 _flag_k = FK_CMP; 3361 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B39; /* 0x36141B33: jne 0x36141b39 */ 3362 L_36141B35: 3363 MEM32(edi) = edx; /* 0x36141B35: mov dword ptr [edi], edx */ 3364 goto L_36141B3C; /* 0x36141B37: jmp 0x36141b3c */ 3365 L_36141B39: 3366 MEM32(edi + 0x8) = edx; /* 0x36141B39: mov dword ptr [edi + 8], edx */ 3367 L_36141B3C: 3368 MEM32(edx) = ecx; /* 0x36141B3C: mov dword ptr [edx], ecx */ 3369 L_36141B3E: 3370 MEM32(ecx + 0x4) = edx; /* 0x36141B3E: mov dword ptr [ecx + 4], edx */ 3371 L_36141B41: 3372 ecx = MEM32(esi + 0x4); /* 0x36141B41: mov ecx, dword ptr [esi + 4] */ 3373 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36141B44: cmp eax, dword ptr [ecx + 4] */ 3374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3376 _flag_k = FK_CMP; 3377 RECOMP_BACKEDGE(); 3378 if (CMP_NE(_flag_a, _flag_b)) goto L_361419CD; /* 0x36141B47: jne 0x361419cd */ 3379 L_36141B4D: 3380 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 3381 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 3382 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 3383 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 3384 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 3385 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 3386 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 3387 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 3388 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 3389 esp = ebp; /* 0x36141B61: mov esp, ebp */ 3390 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 3391 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 3392 RECOMP_REGS_OUT(); 3393 } 3394 3395 void sub_36141B41(void) { 3396 int _fpu_cmp = 0; 3397 uint32_t _cf = 0; 3398 int _df = 1; 3399 uint32_t _flag_k = FK_NONE; 3400 uint32_t _flag_a = 0, _flag_b = 0; 3401 uint32_t _itail_tgt = 0; 3402 RECOMP_REGS_LOCALS 3403 RECOMP_ENTER(0x36141B41u); 3404 3405 goto L_36141B41; 3406 L_361419CD: 3407 ecx = MEM32(eax + 0x4); /* 0x361419CD: mov ecx, dword ptr [eax + 4] */ 3408 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361419D0: mov dl, byte ptr [ecx + 0x20] */ 3409 /* test LO8(edx), LO8(edx) */ /* 0x361419D3: test dl, dl */ 3410 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3411 _cf = 0; 3412 _flag_k = FK_NARROW(FK_TEST, 24); 3413 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B4D; /* 0x361419D5: jne 0x36141b4d */ 3414 L_361419DB: 3415 edi = MEM32(ecx + 0x4); /* 0x361419DB: mov edi, dword ptr [ecx + 4] */ 3416 edx = MEM32(edi); /* 0x361419DE: mov edx, dword ptr [edi] */ 3417 /* cmp ecx, edx */ /* 0x361419E0: cmp ecx, edx */ 3418 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3420 _flag_k = FK_CMP; 3421 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AA9; /* 0x361419E2: jne 0x36141aa9 */ 3422 L_361419E8: 3423 edx = MEM32(edi + 0x8); /* 0x361419E8: mov edx, dword ptr [edi + 8] */ 3424 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361419EB: cmp byte ptr [edx + 0x20], 0 */ 3425 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 3426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3427 _flag_k = FK_NARROW(FK_CMP, 24); 3428 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A0C; /* 0x361419EF: jne 0x36141a0c */ 3429 L_361419F1: 3430 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F1: mov byte ptr [ecx + 0x20], bl */ 3431 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361419F4: mov byte ptr [edx + 0x20], bl */ 3432 ecx = MEM32(eax + 0x4); /* 0x361419F7: mov ecx, dword ptr [eax + 4] */ 3433 edx = MEM32(ecx + 0x4); /* 0x361419FA: mov edx, dword ptr [ecx + 4] */ 3434 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361419FD: mov byte ptr [edx + 0x20], 0 */ 3435 eax = MEM32(eax + 0x4); /* 0x36141A01: mov eax, dword ptr [eax + 4] */ 3436 eax = MEM32(eax + 0x4); /* 0x36141A04: mov eax, dword ptr [eax + 4] */ 3437 goto L_36141B41; /* 0x36141A07: jmp 0x36141b41 */ 3438 L_36141A0C: 3439 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36141A0C: cmp eax, dword ptr [ecx + 8] */ 3440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3442 _flag_k = FK_CMP; 3443 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A4B; /* 0x36141A0F: jne 0x36141a4b */ 3444 L_36141A11: 3445 eax = ecx; /* 0x36141A11: mov eax, ecx */ 3446 ecx = MEM32(eax + 0x8); /* 0x36141A13: mov ecx, dword ptr [eax + 8] */ 3447 edx = MEM32(ecx); /* 0x36141A16: mov edx, dword ptr [ecx] */ 3448 MEM32(eax + 0x8) = edx; /* 0x36141A18: mov dword ptr [eax + 8], edx */ 3449 edx = MEM32(ecx); /* 0x36141A1B: mov edx, dword ptr [ecx] */ 3450 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141A1D: cmp edx, dword ptr [esi + 8] */ 3451 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3453 _flag_k = FK_CMP; 3454 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A25; /* 0x36141A20: je 0x36141a25 */ 3455 L_36141A22: 3456 MEM32(edx + 0x4) = eax; /* 0x36141A22: mov dword ptr [edx + 4], eax */ 3457 L_36141A25: 3458 edx = MEM32(eax + 0x4); /* 0x36141A25: mov edx, dword ptr [eax + 4] */ 3459 MEM32(ecx + 0x4) = edx; /* 0x36141A28: mov dword ptr [ecx + 4], edx */ 3460 edx = MEM32(esi + 0x4); /* 0x36141A2B: mov edx, dword ptr [esi + 4] */ 3461 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141A2E: cmp eax, dword ptr [edx + 4] */ 3462 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 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_36141A38; /* 0x36141A31: jne 0x36141a38 */ 3466 L_36141A33: 3467 MEM32(edx + 0x4) = ecx; /* 0x36141A33: mov dword ptr [edx + 4], ecx */ 3468 goto L_36141A46; /* 0x36141A36: jmp 0x36141a46 */ 3469 L_36141A38: 3470 edx = MEM32(eax + 0x4); /* 0x36141A38: mov edx, dword ptr [eax + 4] */ 3471 /* cmp eax, MEM32(edx) */ /* 0x36141A3B: cmp eax, dword ptr [edx] */ 3472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 3473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3474 _flag_k = FK_CMP; 3475 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A43; /* 0x36141A3D: jne 0x36141a43 */ 3476 L_36141A3F: 3477 MEM32(edx) = ecx; /* 0x36141A3F: mov dword ptr [edx], ecx */ 3478 goto L_36141A46; /* 0x36141A41: jmp 0x36141a46 */ 3479 L_36141A43: 3480 MEM32(edx + 0x8) = ecx; /* 0x36141A43: mov dword ptr [edx + 8], ecx */ 3481 L_36141A46: 3482 MEM32(ecx) = eax; /* 0x36141A46: mov dword ptr [ecx], eax */ 3483 MEM32(eax + 0x4) = ecx; /* 0x36141A48: mov dword ptr [eax + 4], ecx */ 3484 L_36141A4B: 3485 ecx = MEM32(eax + 0x4); /* 0x36141A4B: mov ecx, dword ptr [eax + 4] */ 3486 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141A4E: mov byte ptr [ecx + 0x20], bl */ 3487 edx = MEM32(eax + 0x4); /* 0x36141A51: mov edx, dword ptr [eax + 4] */ 3488 ecx = MEM32(edx + 0x4); /* 0x36141A54: mov ecx, dword ptr [edx + 4] */ 3489 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141A57: mov byte ptr [ecx + 0x20], 0 */ 3490 edx = MEM32(eax + 0x4); /* 0x36141A5B: mov edx, dword ptr [eax + 4] */ 3491 ecx = MEM32(edx + 0x4); /* 0x36141A5E: mov ecx, dword ptr [edx + 4] */ 3492 edx = MEM32(ecx); /* 0x36141A61: mov edx, dword ptr [ecx] */ 3493 edi = MEM32(edx + 0x8); /* 0x36141A63: mov edi, dword ptr [edx + 8] */ 3494 MEM32(ecx) = edi; /* 0x36141A66: mov dword ptr [ecx], edi */ 3495 edi = MEM32(edx + 0x8); /* 0x36141A68: mov edi, dword ptr [edx + 8] */ 3496 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141A6B: cmp edi, dword ptr [esi + 8] */ 3497 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3499 _flag_k = FK_CMP; 3500 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141A73; /* 0x36141A6E: je 0x36141a73 */ 3501 L_36141A70: 3502 MEM32(edi + 0x4) = ecx; /* 0x36141A70: mov dword ptr [edi + 4], ecx */ 3503 L_36141A73: 3504 edi = MEM32(ecx + 0x4); /* 0x36141A73: mov edi, dword ptr [ecx + 4] */ 3505 MEM32(edx + 0x4) = edi; /* 0x36141A76: mov dword ptr [edx + 4], edi */ 3506 edi = MEM32(esi + 0x4); /* 0x36141A79: mov edi, dword ptr [esi + 4] */ 3507 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141A7C: cmp ecx, dword ptr [edi + 4] */ 3508 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3510 _flag_k = FK_CMP; 3511 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A8C; /* 0x36141A7F: jne 0x36141a8c */ 3512 L_36141A81: 3513 MEM32(edi + 0x4) = edx; /* 0x36141A81: mov dword ptr [edi + 4], edx */ 3514 MEM32(edx + 0x8) = ecx; /* 0x36141A84: mov dword ptr [edx + 8], ecx */ 3515 goto L_36141B3E; /* 0x36141A87: jmp 0x36141b3e */ 3516 L_36141A8C: 3517 edi = MEM32(ecx + 0x4); /* 0x36141A8C: mov edi, dword ptr [ecx + 4] */ 3518 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36141A8F: cmp ecx, dword ptr [edi + 8] */ 3519 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3521 _flag_k = FK_CMP; 3522 if (CMP_NE(_flag_a, _flag_b)) goto L_36141A9F; /* 0x36141A92: jne 0x36141a9f */ 3523 L_36141A94: 3524 MEM32(edi + 0x8) = edx; /* 0x36141A94: mov dword ptr [edi + 8], edx */ 3525 MEM32(edx + 0x8) = ecx; /* 0x36141A97: mov dword ptr [edx + 8], ecx */ 3526 goto L_36141B3E; /* 0x36141A9A: jmp 0x36141b3e */ 3527 L_36141A9F: 3528 MEM32(edi) = edx; /* 0x36141A9F: mov dword ptr [edi], edx */ 3529 MEM32(edx + 0x8) = ecx; /* 0x36141AA1: mov dword ptr [edx + 8], ecx */ 3530 goto L_36141B3E; /* 0x36141AA4: jmp 0x36141b3e */ 3531 L_36141AA9: 3532 /* cmp MEM8(edx + 0x20), 0 */ /* 0x36141AA9: cmp byte ptr [edx + 0x20], 0 */ 3533 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 3534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3535 _flag_k = FK_NARROW(FK_CMP, 24); 3536 RECOMP_BACKEDGE(); 3537 if (CMP_EQ(_flag_a, _flag_b)) goto L_361419F1; /* 0x36141AAD: je 0x361419f1 */ 3538 L_36141AB3: 3539 /* cmp eax, MEM32(ecx) */ /* 0x36141AB3: cmp eax, dword ptr [ecx] */ 3540 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 3541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3542 _flag_k = FK_CMP; 3543 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AF3; /* 0x36141AB5: jne 0x36141af3 */ 3544 L_36141AB7: 3545 eax = ecx; /* 0x36141AB7: mov eax, ecx */ 3546 ecx = MEM32(eax); /* 0x36141AB9: mov ecx, dword ptr [eax] */ 3547 edx = MEM32(ecx + 0x8); /* 0x36141ABB: mov edx, dword ptr [ecx + 8] */ 3548 MEM32(eax) = edx; /* 0x36141ABE: mov dword ptr [eax], edx */ 3549 edx = MEM32(ecx + 0x8); /* 0x36141AC0: mov edx, dword ptr [ecx + 8] */ 3550 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36141AC3: cmp edx, dword ptr [esi + 8] */ 3551 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3553 _flag_k = FK_CMP; 3554 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141ACB; /* 0x36141AC6: je 0x36141acb */ 3555 L_36141AC8: 3556 MEM32(edx + 0x4) = eax; /* 0x36141AC8: mov dword ptr [edx + 4], eax */ 3557 L_36141ACB: 3558 edx = MEM32(eax + 0x4); /* 0x36141ACB: mov edx, dword ptr [eax + 4] */ 3559 MEM32(ecx + 0x4) = edx; /* 0x36141ACE: mov dword ptr [ecx + 4], edx */ 3560 edx = MEM32(esi + 0x4); /* 0x36141AD1: mov edx, dword ptr [esi + 4] */ 3561 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36141AD4: cmp eax, dword ptr [edx + 4] */ 3562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3564 _flag_k = FK_CMP; 3565 if (CMP_NE(_flag_a, _flag_b)) goto L_36141ADE; /* 0x36141AD7: jne 0x36141ade */ 3566 L_36141AD9: 3567 MEM32(edx + 0x4) = ecx; /* 0x36141AD9: mov dword ptr [edx + 4], ecx */ 3568 goto L_36141AED; /* 0x36141ADC: jmp 0x36141aed */ 3569 L_36141ADE: 3570 edx = MEM32(eax + 0x4); /* 0x36141ADE: mov edx, dword ptr [eax + 4] */ 3571 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36141AE1: cmp eax, dword ptr [edx + 8] */ 3572 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 3573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3574 _flag_k = FK_CMP; 3575 if (CMP_NE(_flag_a, _flag_b)) goto L_36141AEB; /* 0x36141AE4: jne 0x36141aeb */ 3576 L_36141AE6: 3577 MEM32(edx + 0x8) = ecx; /* 0x36141AE6: mov dword ptr [edx + 8], ecx */ 3578 goto L_36141AED; /* 0x36141AE9: jmp 0x36141aed */ 3579 L_36141AEB: 3580 MEM32(edx) = ecx; /* 0x36141AEB: mov dword ptr [edx], ecx */ 3581 L_36141AED: 3582 MEM32(ecx + 0x8) = eax; /* 0x36141AED: mov dword ptr [ecx + 8], eax */ 3583 MEM32(eax + 0x4) = ecx; /* 0x36141AF0: mov dword ptr [eax + 4], ecx */ 3584 L_36141AF3: 3585 ecx = MEM32(eax + 0x4); /* 0x36141AF3: mov ecx, dword ptr [eax + 4] */ 3586 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141AF6: mov byte ptr [ecx + 0x20], bl */ 3587 edx = MEM32(eax + 0x4); /* 0x36141AF9: mov edx, dword ptr [eax + 4] */ 3588 ecx = MEM32(edx + 0x4); /* 0x36141AFC: mov ecx, dword ptr [edx + 4] */ 3589 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36141AFF: mov byte ptr [ecx + 0x20], 0 */ 3590 edx = MEM32(eax + 0x4); /* 0x36141B03: mov edx, dword ptr [eax + 4] */ 3591 ecx = MEM32(edx + 0x4); /* 0x36141B06: mov ecx, dword ptr [edx + 4] */ 3592 edx = MEM32(ecx + 0x8); /* 0x36141B09: mov edx, dword ptr [ecx + 8] */ 3593 edi = MEM32(edx); /* 0x36141B0C: mov edi, dword ptr [edx] */ 3594 MEM32(ecx + 0x8) = edi; /* 0x36141B0E: mov dword ptr [ecx + 8], edi */ 3595 edi = MEM32(edx); /* 0x36141B11: mov edi, dword ptr [edx] */ 3596 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36141B13: cmp edi, dword ptr [esi + 8] */ 3597 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3599 _flag_k = FK_CMP; 3600 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141B1B; /* 0x36141B16: je 0x36141b1b */ 3601 L_36141B18: 3602 MEM32(edi + 0x4) = ecx; /* 0x36141B18: mov dword ptr [edi + 4], ecx */ 3603 L_36141B1B: 3604 edi = MEM32(ecx + 0x4); /* 0x36141B1B: mov edi, dword ptr [ecx + 4] */ 3605 MEM32(edx + 0x4) = edi; /* 0x36141B1E: mov dword ptr [edx + 4], edi */ 3606 edi = MEM32(esi + 0x4); /* 0x36141B21: mov edi, dword ptr [esi + 4] */ 3607 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36141B24: cmp ecx, dword ptr [edi + 4] */ 3608 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3610 _flag_k = FK_CMP; 3611 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B2E; /* 0x36141B27: jne 0x36141b2e */ 3612 L_36141B29: 3613 MEM32(edi + 0x4) = edx; /* 0x36141B29: mov dword ptr [edi + 4], edx */ 3614 goto L_36141B3C; /* 0x36141B2C: jmp 0x36141b3c */ 3615 L_36141B2E: 3616 edi = MEM32(ecx + 0x4); /* 0x36141B2E: mov edi, dword ptr [ecx + 4] */ 3617 /* cmp ecx, MEM32(edi) */ /* 0x36141B31: cmp ecx, dword ptr [edi] */ 3618 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 3619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3620 _flag_k = FK_CMP; 3621 if (CMP_NE(_flag_a, _flag_b)) goto L_36141B39; /* 0x36141B33: jne 0x36141b39 */ 3622 L_36141B35: 3623 MEM32(edi) = edx; /* 0x36141B35: mov dword ptr [edi], edx */ 3624 goto L_36141B3C; /* 0x36141B37: jmp 0x36141b3c */ 3625 L_36141B39: 3626 MEM32(edi + 0x8) = edx; /* 0x36141B39: mov dword ptr [edi + 8], edx */ 3627 L_36141B3C: 3628 MEM32(edx) = ecx; /* 0x36141B3C: mov dword ptr [edx], ecx */ 3629 L_36141B3E: 3630 MEM32(ecx + 0x4) = edx; /* 0x36141B3E: mov dword ptr [ecx + 4], edx */ 3631 L_36141B41: 3632 ecx = MEM32(esi + 0x4); /* 0x36141B41: mov ecx, dword ptr [esi + 4] */ 3633 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36141B44: cmp eax, dword ptr [ecx + 4] */ 3634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3636 _flag_k = FK_CMP; 3637 RECOMP_BACKEDGE(); 3638 if (CMP_NE(_flag_a, _flag_b)) goto L_361419CD; /* 0x36141B47: jne 0x361419cd */ 3639 L_36141B4D: 3640 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 3641 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 3642 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 3643 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 3644 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 3645 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 3646 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 3647 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 3648 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 3649 esp = ebp; /* 0x36141B61: mov esp, ebp */ 3650 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 3651 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 3652 RECOMP_REGS_OUT(); 3653 } 3654 3655 void sub_36141B4D(void) { 3656 int _fpu_cmp = 0; 3657 uint32_t _cf = 0; 3658 int _df = 1; 3659 uint32_t _flag_k = FK_NONE; 3660 uint32_t _flag_a = 0, _flag_b = 0; 3661 uint32_t _itail_tgt = 0; 3662 RECOMP_REGS_LOCALS 3663 RECOMP_ENTER(0x36141B4Du); 3664 3665 L_36141B4D: 3666 edx = MEM32(esi + 0x4); /* 0x36141B4D: mov edx, dword ptr [esi + 4] */ 3667 eax = MEM32(edx + 0x4); /* 0x36141B50: mov eax, dword ptr [edx + 4] */ 3668 ecx = MEM32(ebp + (-0x4)); /* 0x36141B53: mov ecx, dword ptr [ebp - 4] */ 3669 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36141B56: mov byte ptr [eax + 0x20], bl */ 3670 eax = MEM32(ebp + 0x8); /* 0x36141B59: mov eax, dword ptr [ebp + 8] */ 3671 edi = POP32_VAL(esp); /* 0x36141B5C: pop edi */ 3672 esi = POP32_VAL(esp); /* 0x36141B5D: pop esi */ 3673 MEM32(eax) = ecx; /* 0x36141B5E: mov dword ptr [eax], ecx */ 3674 ebx = POP32_VAL(esp); /* 0x36141B60: pop ebx */ 3675 esp = ebp; /* 0x36141B61: mov esp, ebp */ 3676 ebp = POP32_VAL(esp); /* 0x36141B63: pop ebp */ 3677 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36141B64: ret 0x10 */ 3678 RECOMP_REGS_OUT(); 3679 } 3680 3681 void sub_36141B70(void) { 3682 int _fpu_cmp = 0; 3683 uint32_t _cf = 0; 3684 int _df = 1; 3685 uint32_t _flag_k = FK_NONE; 3686 uint32_t _flag_a = 0, _flag_b = 0; 3687 uint32_t _itail_tgt = 0; 3688 RECOMP_REGS_LOCALS 3689 RECOMP_ENTER(0x36141B70u); 3690 3691 L_36141B70: 3692 edx = MEM32(ecx + 0x4); /* 0x36141B70: mov edx, dword ptr [ecx + 4] */ 3693 /* test edx, edx */ /* 0x36141B73: test edx, edx */ 3694 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3695 _cf = 0; 3696 _flag_k = FK_TEST; 3697 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141B7A; /* 0x36141B75: jne 0x36141b7a */ 3698 L_36141B77: 3699 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3700 eax = 0; /* 0x36141B77: xor eax, eax */ 3701 _cf = 0; 3702 _flag_k = FK_TEST; 3703 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36141B79: ret */ 3704 L_36141B7A: 3705 eax = MEM32(ecx + 0x8); /* 0x36141B7A: mov eax, dword ptr [ecx + 8] */ 3706 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3708 eax = eax - edx; /* 0x36141B7D: sub eax, edx */ 3709 _flag_k = FK_CMP; 3710 if (5u) _cf = (((eax) >> 4) & 1u); /* 0x36141B7F: sar eax, 5 */ 3711 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3712 eax = (uint32_t)((int32_t)eax >> 5u); 3713 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36141B82: ret */ 3714 RECOMP_REGS_OUT(); 3715 } 3716 3717 void sub_36141B90(void) { 3718 int _fpu_cmp = 0; 3719 uint32_t _cf = 0; 3720 int _df = 1; 3721 uint32_t _flag_k = FK_NONE; 3722 uint32_t _flag_a = 0, _flag_b = 0; 3723 uint32_t _itail_tgt = 0; 3724 RECOMP_REGS_LOCALS 3725 RECOMP_ENTER(0x36141B90u); 3726 3727 L_36141B90: 3728 PUSH32(esp, ebp); /* 0x36141B90: push ebp */ 3729 ebp = esp; /* 0x36141B91: mov ebp, esp */ 3730 edx = MEM32(ebp + 0x8); /* 0x36141B93: mov edx, dword ptr [ebp + 8] */ 3731 PUSH32(esp, ebx); /* 0x36141B96: push ebx */ 3732 ebx = MEM32(ebp + 0xC); /* 0x36141B97: mov ebx, dword ptr [ebp + 0xc] */ 3733 /* cmp edx, ebx */ /* 0x36141B9A: cmp edx, ebx */ 3734 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 3735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3736 _flag_k = FK_CMP; 3737 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141BC3; /* 0x36141B9C: je 0x36141bc3 */ 3738 L_36141B9E: 3739 eax = MEM32(ebp + 0x10); /* 0x36141B9E: mov eax, dword ptr [ebp + 0x10] */ 3740 PUSH32(esp, esi); /* 0x36141BA1: push esi */ 3741 PUSH32(esp, edi); /* 0x36141BA2: push edi */ 3742 L_36141BA3: 3743 /* test eax, eax */ /* 0x36141BA3: test eax, eax */ 3744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3745 _cf = 0; 3746 _flag_k = FK_TEST; 3747 if (TEST_Z(_flag_a, _flag_b)) goto L_36141BB2; /* 0x36141BA5: je 0x36141bb2 */ 3748 L_36141BA7: 3749 ecx = 8; /* 0x36141BA7: mov ecx, 8 */ 3750 esi = edx; /* 0x36141BAC: mov esi, edx */ 3751 edi = eax; /* 0x36141BAE: mov edi, eax */ 3752 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36141BB0: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3753 L_36141BB2: 3754 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x20u); 3755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3756 edx = edx + 0x20u; /* 0x36141BB2: add edx, 0x20 */ 3757 _flag_k = FK_ADD; 3758 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 3759 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3760 eax = eax + 0x20u; /* 0x36141BB5: add eax, 0x20 */ 3761 _flag_k = FK_ADD; 3762 /* cmp edx, ebx */ /* 0x36141BB8: cmp edx, ebx */ 3763 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 3764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3765 _flag_k = FK_CMP; 3766 RECOMP_BACKEDGE(); 3767 if (CMP_NE(_flag_a, _flag_b)) goto L_36141BA3; /* 0x36141BBA: jne 0x36141ba3 */ 3768 L_36141BBC: 3769 edi = POP32_VAL(esp); /* 0x36141BBC: pop edi */ 3770 esi = POP32_VAL(esp); /* 0x36141BBD: pop esi */ 3771 ebx = POP32_VAL(esp); /* 0x36141BBE: pop ebx */ 3772 ebp = POP32_VAL(esp); /* 0x36141BBF: pop ebp */ 3773 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36141BC0: ret 0xc */ 3774 L_36141BC3: 3775 eax = MEM32(ebp + 0x10); /* 0x36141BC3: mov eax, dword ptr [ebp + 0x10] */ 3776 ebx = POP32_VAL(esp); /* 0x36141BC6: pop ebx */ 3777 ebp = POP32_VAL(esp); /* 0x36141BC7: pop ebp */ 3778 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36141BC8: ret 0xc */ 3779 RECOMP_REGS_OUT(); 3780 } 3781 3782 void sub_36141BD0(void) { 3783 int _fpu_cmp = 0; 3784 uint32_t _cf = 0; 3785 int _df = 1; 3786 uint32_t _flag_k = FK_NONE; 3787 uint32_t _flag_a = 0, _flag_b = 0; 3788 uint32_t _itail_tgt = 0; 3789 RECOMP_REGS_LOCALS 3790 RECOMP_ENTER(0x36141BD0u); 3791 3792 L_36141BD0: 3793 PUSH32(esp, ebp); /* 0x36141BD0: push ebp */ 3794 ebp = esp; /* 0x36141BD1: mov ebp, esp */ 3795 eax = MEM32(ebp + 0xC); /* 0x36141BD3: mov eax, dword ptr [ebp + 0xc] */ 3796 /* test eax, eax */ /* 0x36141BD6: test eax, eax */ 3797 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3798 _cf = 0; 3799 _flag_k = FK_TEST; 3800 if (TEST_Z(_flag_a, _flag_b)) goto L_36141BFD; /* 0x36141BD8: jbe 0x36141bfd */ 3801 L_36141BDA: 3802 PUSH32(esp, ebx); /* 0x36141BDA: push ebx */ 3803 ebx = MEM32(ebp + 0x10); /* 0x36141BDB: mov ebx, dword ptr [ebp + 0x10] */ 3804 PUSH32(esp, esi); /* 0x36141BDE: push esi */ 3805 edx = eax; /* 0x36141BDF: mov edx, eax */ 3806 eax = MEM32(ebp + 0x8); /* 0x36141BE1: mov eax, dword ptr [ebp + 8] */ 3807 PUSH32(esp, edi); /* 0x36141BE4: push edi */ 3808 L_36141BE5: 3809 /* test eax, eax */ /* 0x36141BE5: test eax, eax */ 3810 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3811 _cf = 0; 3812 _flag_k = FK_TEST; 3813 if (TEST_Z(_flag_a, _flag_b)) goto L_36141BF4; /* 0x36141BE7: je 0x36141bf4 */ 3814 L_36141BE9: 3815 ecx = 8; /* 0x36141BE9: mov ecx, 8 */ 3816 esi = ebx; /* 0x36141BEE: mov esi, ebx */ 3817 edi = eax; /* 0x36141BF0: mov edi, eax */ 3818 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36141BF2: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3819 L_36141BF4: 3820 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 3821 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3822 eax = eax + 0x20u; /* 0x36141BF4: add eax, 0x20 */ 3823 _flag_k = FK_ADD; 3824 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3825 edx = edx - 1; /* 0x36141BF7: dec edx */ 3826 _flag_k = FK_DEC; 3827 RECOMP_BACKEDGE(); 3828 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36141BE5; /* 0x36141BF8: jne 0x36141be5 */ 3829 L_36141BFA: 3830 edi = POP32_VAL(esp); /* 0x36141BFA: pop edi */ 3831 esi = POP32_VAL(esp); /* 0x36141BFB: pop esi */ 3832 ebx = POP32_VAL(esp); /* 0x36141BFC: pop ebx */ 3833 L_36141BFD: 3834 ebp = POP32_VAL(esp); /* 0x36141BFD: pop ebp */ 3835 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36141BFE: ret 0xc */ 3836 RECOMP_REGS_OUT(); 3837 } 3838 3839 void sub_36141C10(void) { 3840 int _fpu_cmp = 0; 3841 uint32_t _cf = 0; 3842 int _df = 1; 3843 uint32_t _flag_k = FK_NONE; 3844 uint32_t _flag_a = 0, _flag_b = 0; 3845 uint32_t _itail_tgt = 0; 3846 RECOMP_REGS_LOCALS 3847 RECOMP_ENTER(0x36141C10u); 3848 3849 L_36141C10: 3850 PUSH32(esp, ebp); /* 0x36141C10: push ebp */ 3851 ebp = esp; /* 0x36141C11: mov ebp, esp */ 3852 ecx = MEM32(ebp + 0x8); /* 0x36141C13: mov ecx, dword ptr [ebp + 8] */ 3853 edx = MEM32(ebp + 0xC); /* 0x36141C16: mov edx, dword ptr [ebp + 0xc] */ 3854 /* cmp ecx, edx */ /* 0x36141C19: cmp ecx, edx */ 3855 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3857 _flag_k = FK_CMP; 3858 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141C34; /* 0x36141C1B: je 0x36141c34 */ 3859 L_36141C1D: 3860 eax = MEM32(ebp + 0x10); /* 0x36141C1D: mov eax, dword ptr [ebp + 0x10] */ 3861 PUSH32(esp, esi); /* 0x36141C20: push esi */ 3862 L_36141C21: 3863 SET_LO16(esi, MEM16(ecx)); /* 0x36141C21: mov si, word ptr [ecx] */ 3864 MEM16(eax) = (uint16_t)(LO16(esi)); /* 0x36141C24: mov word ptr [eax], si */ 3865 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 3866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3867 ecx = ecx + 2; /* 0x36141C27: add ecx, 2 */ 3868 _flag_k = FK_ADD; 3869 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 3870 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3871 eax = eax + 2; /* 0x36141C2A: add eax, 2 */ 3872 _flag_k = FK_ADD; 3873 /* cmp ecx, edx */ /* 0x36141C2D: cmp ecx, edx */ 3874 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3876 _flag_k = FK_CMP; 3877 RECOMP_BACKEDGE(); 3878 if (CMP_NE(_flag_a, _flag_b)) goto L_36141C21; /* 0x36141C2F: jne 0x36141c21 */ 3879 L_36141C31: 3880 esi = POP32_VAL(esp); /* 0x36141C31: pop esi */ 3881 ebp = POP32_VAL(esp); /* 0x36141C32: pop ebp */ 3882 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36141C33: ret */ 3883 L_36141C34: 3884 eax = MEM32(ebp + 0x10); /* 0x36141C34: mov eax, dword ptr [ebp + 0x10] */ 3885 ebp = POP32_VAL(esp); /* 0x36141C37: pop ebp */ 3886 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36141C38: ret */ 3887 RECOMP_REGS_OUT(); 3888 } 3889 3890 void sub_36141C40(void) { 3891 int _fpu_cmp = 0; 3892 uint32_t _cf = 0; 3893 int _df = 1; 3894 uint32_t _flag_k = FK_NONE; 3895 uint32_t _flag_a = 0, _flag_b = 0; 3896 uint32_t _itail_tgt = 0; 3897 RECOMP_REGS_LOCALS 3898 RECOMP_ENTER(0x36141C40u); 3899 3900 L_36141C40: 3901 PUSH32(esp, ebp); /* 0x36141C40: push ebp */ 3902 ebp = esp; /* 0x36141C41: mov ebp, esp */ 3903 ecx = MEM32(ebp + 0x8); /* 0x36141C43: mov ecx, dword ptr [ebp + 8] */ 3904 edx = MEM32(ebp + 0xC); /* 0x36141C46: mov edx, dword ptr [ebp + 0xc] */ 3905 /* cmp ecx, edx */ /* 0x36141C49: cmp ecx, edx */ 3906 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3908 _flag_k = FK_CMP; 3909 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141C76; /* 0x36141C4B: je 0x36141c76 */ 3910 L_36141C4D: 3911 eax = MEM32(ebp + 0x10); /* 0x36141C4D: mov eax, dword ptr [ebp + 0x10] */ 3912 PUSH32(esp, ebx); /* 0x36141C50: push ebx */ 3913 PUSH32(esp, esi); /* 0x36141C51: push esi */ 3914 PUSH32(esp, edi); /* 0x36141C52: push edi */ 3915 L_36141C53: 3916 esi = ecx; /* 0x36141C53: mov esi, ecx */ 3917 ebx = MEM32(esi); /* 0x36141C55: mov ebx, dword ptr [esi] */ 3918 edi = eax; /* 0x36141C57: mov edi, eax */ 3919 MEM32(edi) = ebx; /* 0x36141C59: mov dword ptr [edi], ebx */ 3920 ebx = MEM32(esi + 0x4); /* 0x36141C5B: mov ebx, dword ptr [esi + 4] */ 3921 MEM32(edi + 0x4) = ebx; /* 0x36141C5E: mov dword ptr [edi + 4], ebx */ 3922 esi = MEM32(esi + 0x8); /* 0x36141C61: mov esi, dword ptr [esi + 8] */ 3923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 3924 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3925 ecx = ecx + 0xCu; /* 0x36141C64: add ecx, 0xc */ 3926 _flag_k = FK_ADD; 3927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 3928 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3929 eax = eax + 0xCu; /* 0x36141C67: add eax, 0xc */ 3930 _flag_k = FK_ADD; 3931 /* cmp ecx, edx */ /* 0x36141C6A: cmp ecx, edx */ 3932 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3934 _flag_k = FK_CMP; 3935 MEM32(edi + 0x8) = esi; /* 0x36141C6C: mov dword ptr [edi + 8], esi */ 3936 RECOMP_BACKEDGE(); 3937 if (CMP_NE(_flag_a, _flag_b)) goto L_36141C53; /* 0x36141C6F: jne 0x36141c53 */ 3938 L_36141C71: 3939 edi = POP32_VAL(esp); /* 0x36141C71: pop edi */ 3940 esi = POP32_VAL(esp); /* 0x36141C72: pop esi */ 3941 ebx = POP32_VAL(esp); /* 0x36141C73: pop ebx */ 3942 ebp = POP32_VAL(esp); /* 0x36141C74: pop ebp */ 3943 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36141C75: ret */ 3944 L_36141C76: 3945 eax = MEM32(ebp + 0x10); /* 0x36141C76: mov eax, dword ptr [ebp + 0x10] */ 3946 ebp = POP32_VAL(esp); /* 0x36141C79: pop ebp */ 3947 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36141C7A: ret */ 3948 RECOMP_REGS_OUT(); 3949 } 3950 3951 void sub_36141C80(void) { 3952 int _fpu_cmp = 0; 3953 uint32_t _cf = 0; 3954 int _df = 1; 3955 uint32_t _flag_k = FK_NONE; 3956 uint32_t _flag_a = 0, _flag_b = 0; 3957 uint32_t _itail_tgt = 0; 3958 RECOMP_REGS_LOCALS 3959 RECOMP_ENTER(0x36141C80u); 3960 3961 L_36141C80: 3962 PUSH32(esp, ebp); /* 0x36141C80: push ebp */ 3963 ebp = esp; /* 0x36141C81: mov ebp, esp */ 3964 PUSH32(esp, 0xFFFFFFFFu); /* 0x36141C83: push -1 */ 3965 PUSH32(esp, 0x3616CD81u); /* 0x36141C85: push 0x3616cd81 */ 3966 eax = MEM32(FS_BASE + (0)); /* 0x36141C8A: mov eax, dword ptr fs:[0] */ 3967 PUSH32(esp, eax); /* 0x36141C90: push eax */ 3968 MEM32(FS_BASE + (0)) = esp; /* 0x36141C91: mov dword ptr fs:[0], esp */ 3969 PUSH32(esp, ecx); /* 0x36141C98: push ecx */ 3970 PUSH32(esp, edi); /* 0x36141C99: push edi */ 3971 edi = MEM32(ebp + 0x8); /* 0x36141C9A: mov edi, dword ptr [ebp + 8] */ 3972 MEM32(ebp + (-0x10)) = edi; /* 0x36141C9D: mov dword ptr [ebp - 0x10], edi */ 3973 /* test edi, edi */ /* 0x36141CA0: test edi, edi */ 3974 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3975 _cf = 0; 3976 _flag_k = FK_TEST; 3977 MEM32(ebp + (-0x4)) = 0; /* 0x36141CA2: mov dword ptr [ebp - 4], 0 */ 3978 if (TEST_Z(_flag_a, _flag_b)) goto L_36141D12; /* 0x36141CA9: je 0x36141d12 */ 3979 L_36141CAB: 3980 PUSH32(esp, ebx); /* 0x36141CAB: push ebx */ 3981 PUSH32(esp, esi); /* 0x36141CAC: push esi */ 3982 esi = MEM32(ebp + 0xC); /* 0x36141CAD: mov esi, dword ptr [ebp + 0xc] */ 3983 eax = MEM32(esi); /* 0x36141CB0: mov eax, dword ptr [esi] */ 3984 MEM32(edi) = eax; /* 0x36141CB2: mov dword ptr [edi], eax */ 3985 SET_LO8(ecx, MEM8(esi + 0x4)); /* 0x36141CB4: mov cl, byte ptr [esi + 4] */ 3986 MEM8(edi + 0x4) = (uint8_t)(LO8(ecx)); /* 0x36141CB7: mov byte ptr [edi + 4], cl */ 3987 ecx = MEM32(esi + 0x8); /* 0x36141CBA: mov ecx, dword ptr [esi + 8] */ 3988 /* test ecx, ecx */ /* 0x36141CBD: test ecx, ecx */ 3989 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3990 _cf = 0; 3991 _flag_k = FK_TEST; 3992 if (TEST_NZ(_flag_a, _flag_b)) goto L_36141CC5; /* 0x36141CBF: jne 0x36141cc5 */ 3993 L_36141CC1: 3994 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3995 eax = 0; /* 0x36141CC1: xor eax, eax */ 3996 _cf = 0; 3997 _flag_k = FK_TEST; 3998 goto L_36141CCD; /* 0x36141CC3: jmp 0x36141ccd */ 3999 L_36141CC5: 4000 eax = MEM32(esi + 0xC); /* 0x36141CC5: mov eax, dword ptr [esi + 0xc] */ 4001 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4003 eax = eax - ecx; /* 0x36141CC8: sub eax, ecx */ 4004 _flag_k = FK_CMP; 4005 if (5u) _cf = (((eax) >> 4) & 1u); /* 0x36141CCA: sar eax, 5 */ 4006 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4007 eax = (uint32_t)((int32_t)eax >> 5u); 4008 L_36141CCD: 4009 /* test eax, eax */ /* 0x36141CCD: test eax, eax */ 4010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4011 _cf = 0; 4012 _flag_k = FK_TEST; 4013 if (TEST_NS(_flag_a, _flag_b)) goto L_36141CD3; /* 0x36141CCF: jge 0x36141cd3 */ 4014 L_36141CD1: 4015 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4016 eax = 0; /* 0x36141CD1: xor eax, eax */ 4017 _cf = 0; 4018 _flag_k = FK_TEST; 4019 L_36141CD3: 4020 if (5u) _cf = (((eax) >> 27) & 1u); /* 0x36141CD3: shl eax, 5 */ 4021 if (5u) { _flag_a = recomp_flags_pack((eax << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4022 eax = eax << 5u; /* 0x36141CD3: shl eax, 5 */ 4023 PUSH32(esp, eax); /* 0x36141CD6: push eax */ 4024 RECOMP_ICALL(0x3615FD6Au); /* 0x36141CD7: call 0x3615fd6a */ /* not lifted */ 4025 RECOMP_FLAGS_IN(); 4026 MEM32(edi + 0x8) = eax; /* 0x36141CDC: mov dword ptr [edi + 8], eax */ 4027 ebx = MEM32(esi + 0xC); /* 0x36141CDF: mov ebx, dword ptr [esi + 0xc] */ 4028 edx = eax; /* 0x36141CE2: mov edx, eax */ 4029 eax = MEM32(esi + 0x8); /* 0x36141CE4: mov eax, dword ptr [esi + 8] */ 4030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4032 esp = esp + 4; /* 0x36141CE7: add esp, 4 */ 4033 _flag_k = FK_ADD; 4034 /* cmp eax, ebx */ /* 0x36141CEA: cmp eax, ebx */ 4035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4037 _flag_k = FK_CMP; 4038 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141D0A; /* 0x36141CEC: je 0x36141d0a */ 4039 L_36141CEE: 4040 /* test edx, edx */ /* 0x36141CEE: test edx, edx */ 4041 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4042 _cf = 0; 4043 _flag_k = FK_TEST; 4044 if (TEST_Z(_flag_a, _flag_b)) goto L_36141D00; /* 0x36141CF0: je 0x36141d00 */ 4045 L_36141CF2: 4046 ecx = 8; /* 0x36141CF2: mov ecx, 8 */ 4047 esi = eax; /* 0x36141CF7: mov esi, eax */ 4048 edi = edx; /* 0x36141CF9: mov edi, edx */ 4049 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36141CFB: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4050 edi = MEM32(ebp + 0x8); /* 0x36141CFD: mov edi, dword ptr [ebp + 8] */ 4051 L_36141D00: 4052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 4053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4054 eax = eax + 0x20u; /* 0x36141D00: add eax, 0x20 */ 4055 _flag_k = FK_ADD; 4056 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x20u); 4057 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4058 edx = edx + 0x20u; /* 0x36141D03: add edx, 0x20 */ 4059 _flag_k = FK_ADD; 4060 /* cmp eax, ebx */ /* 0x36141D06: cmp eax, ebx */ 4061 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4063 _flag_k = FK_CMP; 4064 RECOMP_BACKEDGE(); 4065 if (CMP_NE(_flag_a, _flag_b)) goto L_36141CEE; /* 0x36141D08: jne 0x36141cee */ 4066 L_36141D0A: 4067 esi = POP32_VAL(esp); /* 0x36141D0A: pop esi */ 4068 MEM32(edi + 0xC) = edx; /* 0x36141D0B: mov dword ptr [edi + 0xc], edx */ 4069 MEM32(edi + 0x10) = edx; /* 0x36141D0E: mov dword ptr [edi + 0x10], edx */ 4070 ebx = POP32_VAL(esp); /* 0x36141D11: pop ebx */ 4071 L_36141D12: 4072 ecx = MEM32(ebp + (-0xC)); /* 0x36141D12: mov ecx, dword ptr [ebp - 0xc] */ 4073 edi = POP32_VAL(esp); /* 0x36141D15: pop edi */ 4074 MEM32(FS_BASE + (0)) = ecx; /* 0x36141D16: mov dword ptr fs:[0], ecx */ 4075 esp = ebp; /* 0x36141D1D: mov esp, ebp */ 4076 ebp = POP32_VAL(esp); /* 0x36141D1F: pop ebp */ 4077 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36141D20: ret */ 4078 RECOMP_REGS_OUT(); 4079 } 4080 4081 void sub_36141D30(void) { 4082 int _fpu_cmp = 0; 4083 uint32_t _cf = 0; 4084 int _df = 1; 4085 uint32_t _flag_k = FK_NONE; 4086 uint32_t _flag_a = 0, _flag_b = 0; 4087 uint32_t _itail_tgt = 0; 4088 RECOMP_REGS_LOCALS 4089 RECOMP_ENTER(0x36141D30u); 4090 4091 L_36141D30: 4092 PUSH32(esp, ebp); /* 0x36141D30: push ebp */ 4093 ebp = esp; /* 0x36141D31: mov ebp, esp */ 4094 PUSH32(esp, 0xFFFFFFFFu); /* 0x36141D33: push -1 */ 4095 PUSH32(esp, 0x3616CDBFu); /* 0x36141D35: push 0x3616cdbf */ 4096 eax = MEM32(FS_BASE + (0)); /* 0x36141D3A: mov eax, dword ptr fs:[0] */ 4097 PUSH32(esp, eax); /* 0x36141D40: push eax */ 4098 MEM32(FS_BASE + (0)) = esp; /* 0x36141D41: mov dword ptr fs:[0], esp */ 4099 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 4100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4101 esp = esp - 0x2Cu; /* 0x36141D48: sub esp, 0x2c */ 4102 _flag_k = FK_CMP; 4103 PUSH32(esp, ebx); /* 0x36141D4B: push ebx */ 4104 PUSH32(esp, esi); /* 0x36141D4C: push esi */ 4105 esi = ecx; /* 0x36141D4D: mov esi, ecx */ 4106 PUSH32(esp, edi); /* 0x36141D4F: push edi */ 4107 MEM32(ebp + (-0x14)) = esi; /* 0x36141D50: mov dword ptr [ebp - 0x14], esi */ 4108 RECOMP_ICALL(MEM32(0x36170320)); /* 0x36141D53: call dword ptr [0x36170320] */ 4109 RECOMP_FLAGS_IN(); 4110 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4111 ebx = 0; /* 0x36141D59: xor ebx, ebx */ 4112 _cf = 0; 4113 _flag_k = FK_TEST; 4114 MEM32(ebp + (-0x4)) = ebx; /* 0x36141D5B: mov dword ptr [ebp - 4], ebx */ 4115 MEM32(esi) = 0x36178084u; /* 0x36141D5E: mov dword ptr [esi], 0x36178084 */ 4116 MEM32(esi + 0x20) = 0x3617807Cu; /* 0x36141D64: mov dword ptr [esi + 0x20], 0x3617807c */ 4117 MEM32(esi + 0x130) = 0xBF800000u; /* 0x36141D6B: mov dword ptr [esi + 0x130], 0xbf800000 */ 4118 MEM32(esi + 0x134) = ebx; /* 0x36141D75: mov dword ptr [esi + 0x134], ebx */ 4119 RECOMP_ICALL(MEM32(0x361700DC)); /* 0x36141D7B: call dword ptr [0x361700dc] */ 4120 RECOMP_FLAGS_IN(); 4121 ecx = eax; /* 0x36141D81: mov ecx, eax */ 4122 MEM32(esi + 0x13C) = eax; /* 0x36141D83: mov dword ptr [esi + 0x13c], eax */ 4123 RECOMP_ICALL(MEM32(0x361700C0)); /* 0x36141D89: call dword ptr [0x361700c0] */ 4124 RECOMP_FLAGS_IN(); 4125 MEM32(esi + 0x138) = eax; /* 0x36141D8F: mov dword ptr [esi + 0x138], eax */ 4126 edi = esi + 0x14C; /* 0x36141D95: lea edi, [esi + 0x14c] */ 4127 ecx = edi; /* 0x36141D9B: mov ecx, edi */ 4128 MEM32(ebp + (-0x4)) = 1; /* 0x36141D9D: mov dword ptr [ebp - 4], 1 */ 4129 MEM32(esi + 0x140) = ebx; /* 0x36141DA4: mov dword ptr [esi + 0x140], ebx */ 4130 MEM32(esi + 0x144) = ebx; /* 0x36141DAA: mov dword ptr [esi + 0x144], ebx */ 4131 MEM32(esi + 0x148) = ebx; /* 0x36141DB0: mov dword ptr [esi + 0x148], ebx */ 4132 RECOMP_ICALL(MEM32(0x36170174)); /* 0x36141DB6: call dword ptr [0x36170174] */ 4133 RECOMP_FLAGS_IN(); 4134 PUSH32(esp, ebx); /* 0x36141DBC: push ebx */ 4135 PUSH32(esp, ebx); /* 0x36141DBD: push ebx */ 4136 PUSH32(esp, ebx); /* 0x36141DBE: push ebx */ 4137 ecx = ebp + (-0x2C); /* 0x36141DBF: lea ecx, [ebp - 0x2c] */ 4138 MEM32(esi) = 0x36177FDCu; /* 0x36141DC2: mov dword ptr [esi], 0x36177fdc */ 4139 MEM32(esi + 0x20) = 0x36177FD4u; /* 0x36141DC8: mov dword ptr [esi + 0x20], 0x36177fd4 */ 4140 MEM32(esi + 0x15C) = ebx; /* 0x36141DCF: mov dword ptr [esi + 0x15c], ebx */ 4141 RECOMP_ICALL(MEM32(0x36170170)); /* 0x36141DD5: call dword ptr [0x36170170] */ 4142 RECOMP_FLAGS_IN(); 4143 ecx = MEM32(eax); /* 0x36141DDB: mov ecx, dword ptr [eax] */ 4144 MEM32(esi + 0x140) = ecx; /* 0x36141DDD: mov dword ptr [esi + 0x140], ecx */ 4145 edx = MEM32(eax + 0x4); /* 0x36141DE3: mov edx, dword ptr [eax + 4] */ 4146 PUSH32(esp, ebx); /* 0x36141DE6: push ebx */ 4147 MEM32(esi + 0x144) = edx; /* 0x36141DE7: mov dword ptr [esi + 0x144], edx */ 4148 eax = MEM32(eax + 0x8); /* 0x36141DED: mov eax, dword ptr [eax + 8] */ 4149 PUSH32(esp, ebx); /* 0x36141DF0: push ebx */ 4150 PUSH32(esp, ebx); /* 0x36141DF1: push ebx */ 4151 ecx = ebp + (-0x38); /* 0x36141DF2: lea ecx, [ebp - 0x38] */ 4152 MEM32(esi + 0x148) = eax; /* 0x36141DF5: mov dword ptr [esi + 0x148], eax */ 4153 MEM32(esi + 0x160) = ebx; /* 0x36141DFB: mov dword ptr [esi + 0x160], ebx */ 4154 MEM32(esi + 0x158) = ebx; /* 0x36141E01: mov dword ptr [esi + 0x158], ebx */ 4155 MEM8(esi + 0x164) = (uint8_t)(LO8(ebx)); /* 0x36141E07: mov byte ptr [esi + 0x164], bl */ 4156 MEM8(esi + 0x165) = (uint8_t)(LO8(ebx)); /* 0x36141E0D: mov byte ptr [esi + 0x165], bl */ 4157 MEM8(esi + 0x166) = (uint8_t)(LO8(ebx)); /* 0x36141E13: mov byte ptr [esi + 0x166], bl */ 4158 RECOMP_ICALL(MEM32(0x36170170)); /* 0x36141E19: call dword ptr [0x36170170] */ 4159 RECOMP_FLAGS_IN(); 4160 ecx = MEM32(eax); /* 0x36141E1F: mov ecx, dword ptr [eax] */ 4161 MEM32(edi) = ecx; /* 0x36141E21: mov dword ptr [edi], ecx */ 4162 edx = MEM32(eax + 0x4); /* 0x36141E23: mov edx, dword ptr [eax + 4] */ 4163 ecx = MEM32(ebp + 0x8); /* 0x36141E26: mov ecx, dword ptr [ebp + 8] */ 4164 MEM32(edi + 0x4) = edx; /* 0x36141E29: mov dword ptr [edi + 4], edx */ 4165 eax = MEM32(eax + 0x8); /* 0x36141E2C: mov eax, dword ptr [eax + 8] */ 4166 PUSH32(esp, 0x30u); /* 0x36141E2F: push 0x30 */ 4167 MEM32(edi + 0x8) = eax; /* 0x36141E31: mov dword ptr [edi + 8], eax */ 4168 MEM32(esi + 0x16C) = ecx; /* 0x36141E34: mov dword ptr [esi + 0x16c], ecx */ 4169 MEM32(esi + 0x168) = ebx; /* 0x36141E3A: mov dword ptr [esi + 0x168], ebx */ 4170 RECOMP_ICALL(0x3615FD6Au); /* 0x36141E40: call 0x3615fd6a */ /* not lifted */ 4171 RECOMP_FLAGS_IN(); 4172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4174 esp = esp + 4; /* 0x36141E45: add esp, 4 */ 4175 _flag_k = FK_ADD; 4176 MEM32(ebp + (-0x10)) = eax; /* 0x36141E48: mov dword ptr [ebp - 0x10], eax */ 4177 /* cmp eax, ebx */ /* 0x36141E4B: cmp eax, ebx */ 4178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4180 _flag_k = FK_CMP; 4181 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36141E4D: mov byte ptr [ebp - 4], 2 */ 4182 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141E5C; /* 0x36141E51: je 0x36141e5c */ 4183 L_36141E53: 4184 ecx = eax; /* 0x36141E53: mov ecx, eax */ 4185 RECOMP_ICALL(0x36139070u); /* 0x36141E55: call 0x36139070 */ /* not lifted */ 4186 RECOMP_FLAGS_IN(); 4187 goto L_36141E5E; /* 0x36141E5A: jmp 0x36141e5e */ 4188 L_36141E5C: 4189 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4190 eax = 0; /* 0x36141E5C: xor eax, eax */ 4191 _cf = 0; 4192 _flag_k = FK_TEST; 4193 L_36141E5E: 4194 PUSH32(esp, eax); /* 0x36141E5E: push eax */ 4195 ecx = esi; /* 0x36141E5F: mov ecx, esi */ 4196 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36141E61: mov byte ptr [ebp - 4], 1 */ 4197 RECOMP_ICALL(0x36139240u); /* 0x36141E65: call 0x36139240 */ /* not lifted */ 4198 RECOMP_FLAGS_IN(); 4199 MEM32(esi + 0x17C) = ebx; /* 0x36141E6A: mov dword ptr [esi + 0x17c], ebx */ 4200 MEM32(esi + 0x180) = ebx; /* 0x36141E70: mov dword ptr [esi + 0x180], ebx */ 4201 MEM32(esi + 0x184) = ebx; /* 0x36141E76: mov dword ptr [esi + 0x184], ebx */ 4202 MEM32(ebp + (-0x4)) = 3; /* 0x36141E7C: mov dword ptr [ebp - 4], 3 */ 4203 MEM32(esi) = 0x36178600u; /* 0x36141E83: mov dword ptr [esi], 0x36178600 */ 4204 MEM32(esi + 0x20) = 0x361785F8u; /* 0x36141E89: mov dword ptr [esi + 0x20], 0x361785f8 */ 4205 MEM32(esi + 0x170) = 2; /* 0x36141E90: mov dword ptr [esi + 0x170], 2 */ 4206 MEM32(esi + 0x174) = ebx; /* 0x36141E9A: mov dword ptr [esi + 0x174], ebx */ 4207 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36141EA0: call dword ptr [0x3616f254] */ 4208 RECOMP_FLAGS_IN(); 4209 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36141EA6: cdq */ 4210 ecx = 5; /* 0x36141EA7: mov ecx, 5 */ 4211 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36141EAC: idiv ecx */ 4212 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 4213 else { eax = 0; edx = 0; } } 4214 MEM32(ebp + (-0x20)) = 0; /* 0x36141EAE: mov dword ptr [ebp - 0x20], 0 */ 4215 MEM32(ebp + (-0x1C)) = 0; /* 0x36141EB5: mov dword ptr [ebp - 0x1c], 0 */ 4216 eax = MEM32(ebp + (-0x1C)); /* 0x36141EBC: mov eax, dword ptr [ebp - 0x1c] */ 4217 MEM32(ebp + (-0x18)) = 0; /* 0x36141EBF: mov dword ptr [ebp - 0x18], 0 */ 4218 ecx = MEM32(ebp + (-0x18)); /* 0x36141EC6: mov ecx, dword ptr [ebp - 0x18] */ 4219 MEM8(esi + 0x188) = (uint8_t)(LO8(ebx)); /* 0x36141EC9: mov byte ptr [esi + 0x188], bl */ 4220 MEM8(esi + 0x189) = (uint8_t)(LO8(ebx)); /* 0x36141ECF: mov byte ptr [esi + 0x189], bl */ 4221 MEM32(esi + 0x178) = edx; /* 0x36141ED5: mov dword ptr [esi + 0x178], edx */ 4222 edx = MEM32(ebp + (-0x20)); /* 0x36141EDB: mov edx, dword ptr [ebp - 0x20] */ 4223 MEM32(esi + 0x17C) = edx; /* 0x36141EDE: mov dword ptr [esi + 0x17c], edx */ 4224 MEM32(esi + 0x180) = eax; /* 0x36141EE4: mov dword ptr [esi + 0x180], eax */ 4225 MEM32(esi + 0x184) = ecx; /* 0x36141EEA: mov dword ptr [esi + 0x184], ecx */ 4226 ecx = esi; /* 0x36141EF0: mov ecx, esi */ 4227 RECOMP_ICALL(MEM32(0x3617031C)); /* 0x36141EF2: call dword ptr [0x3617031c] */ 4228 RECOMP_FLAGS_IN(); 4229 ecx = esi; /* 0x36141EF8: mov ecx, esi */ 4230 RECOMP_ICALL(MEM32(0x36170364)); /* 0x36141EFA: call dword ptr [0x36170364] */ 4231 RECOMP_FLAGS_IN(); 4232 PUSH32(esp, ebx); /* 0x36141F00: push ebx */ 4233 ecx = esi; /* 0x36141F01: mov ecx, esi */ 4234 RECOMP_ICALL(MEM32(0x36170238)); /* 0x36141F03: call dword ptr [0x36170238] */ 4235 RECOMP_FLAGS_IN(); 4236 /* cmp MEM8(0x3630D95C), LO8(ebx) */ /* 0x36141F09: cmp byte ptr [0x3630d95c], bl */ 4237 _flag_a = (uint32_t)(MEM8(0x3630D95C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4239 _flag_k = FK_NARROW(FK_CMP, 24); 4240 if (CMP_NE(_flag_a, _flag_b)) goto L_36141F18; /* 0x36141F0F: jne 0x36141f18 */ 4241 L_36141F11: 4242 ecx = esi; /* 0x36141F11: mov ecx, esi */ 4243 RECOMP_ICALL(0x36142750u); /* 0x36141F13: call 0x36142750 */ /* not lifted */ 4244 RECOMP_FLAGS_IN(); 4245 L_36141F18: 4246 edx = MEM32(0x3630D934); /* 0x36141F18: mov edx, dword ptr [0x3630d934] */ 4247 PUSH32(esp, edx); /* 0x36141F1E: push edx */ 4248 ecx = esi; /* 0x36141F1F: mov ecx, esi */ 4249 RECOMP_ICALL(MEM32(0x36170244)); /* 0x36141F21: call dword ptr [0x36170244] */ 4250 RECOMP_FLAGS_IN(); 4251 fp_push(*(float*)&MEM32(0x3630D938)); /* 0x36141F27: fld dword ptr [0x3630d938] */ 4252 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36141F2D: fst dword ptr [ebp - 0x10] */ 4253 eax = MEM32(ebp + (-0x10)); /* 0x36141F30: mov eax, dword ptr [ebp - 0x10] */ 4254 PUSH32(esp, eax); /* 0x36141F33: push eax */ 4255 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x15C) = _v; } /* 0x36141F34: fstp dword ptr [esi + 0x15c] */ 4256 ecx = esi; /* 0x36141F3A: mov ecx, esi */ 4257 RECOMP_ICALL(MEM32(0x3617025C)); /* 0x36141F3C: call dword ptr [0x3617025c] */ 4258 RECOMP_FLAGS_IN(); 4259 ecx = MEM32(0x3630D93C); /* 0x36141F42: mov ecx, dword ptr [0x3630d93c] */ 4260 PUSH32(esp, ecx); /* 0x36141F48: push ecx */ 4261 ecx = esi; /* 0x36141F49: mov ecx, esi */ 4262 RECOMP_ICALL(MEM32(0x36170234)); /* 0x36141F4B: call dword ptr [0x36170234] */ 4263 RECOMP_FLAGS_IN(); 4264 edx = MEM32(0x3630D940); /* 0x36141F51: mov edx, dword ptr [0x3630d940] */ 4265 PUSH32(esp, edx); /* 0x36141F57: push edx */ 4266 ecx = esi; /* 0x36141F58: mov ecx, esi */ 4267 RECOMP_ICALL(MEM32(0x36170260)); /* 0x36141F5A: call dword ptr [0x36170260] */ 4268 RECOMP_FLAGS_IN(); 4269 PUSH32(esp, 0x5Cu); /* 0x36141F60: push 0x5c */ 4270 RECOMP_ICALL(0x3615FD6Au); /* 0x36141F62: call 0x3615fd6a */ /* not lifted */ 4271 RECOMP_FLAGS_IN(); 4272 edi = eax; /* 0x36141F67: mov edi, eax */ 4273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4275 esp = esp + 4; /* 0x36141F69: add esp, 4 */ 4276 _flag_k = FK_ADD; 4277 MEM32(ebp + (-0x10)) = edi; /* 0x36141F6C: mov dword ptr [ebp - 0x10], edi */ 4278 /* cmp edi, ebx */ /* 0x36141F6F: cmp edi, ebx */ 4279 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4281 _flag_k = FK_CMP; 4282 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x36141F71: mov byte ptr [ebp - 4], 4 */ 4283 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141F91; /* 0x36141F75: je 0x36141f91 */ 4284 L_36141F77: 4285 eax = MEM32(ebp + 0x8); /* 0x36141F77: mov eax, dword ptr [ebp + 8] */ 4286 PUSH32(esp, 3); /* 0x36141F7A: push 3 */ 4287 PUSH32(esp, ebx); /* 0x36141F7C: push ebx */ 4288 PUSH32(esp, ebx); /* 0x36141F7D: push ebx */ 4289 PUSH32(esp, ebx); /* 0x36141F7E: push ebx */ 4290 PUSH32(esp, ebx); /* 0x36141F7F: push ebx */ 4291 PUSH32(esp, eax); /* 0x36141F80: push eax */ 4292 ecx = edi; /* 0x36141F81: mov ecx, edi */ 4293 RECOMP_ICALL(MEM32(0x3616F998)); /* 0x36141F83: call dword ptr [0x3616f998] */ 4294 RECOMP_FLAGS_IN(); 4295 MEM32(edi) = 0x361709C8u; /* 0x36141F89: mov dword ptr [edi], 0x361709c8 */ 4296 goto L_36141F93; /* 0x36141F8F: jmp 0x36141f93 */ 4297 L_36141F91: 4298 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4299 edi = 0; /* 0x36141F91: xor edi, edi */ 4300 _cf = 0; 4301 _flag_k = FK_TEST; 4302 L_36141F93: 4303 /* cmp edi, ebx */ /* 0x36141F93: cmp edi, ebx */ 4304 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4306 _flag_k = FK_CMP; 4307 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36141F95: mov byte ptr [ebp - 4], 3 */ 4308 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141FA5; /* 0x36141F99: je 0x36141fa5 */ 4309 L_36141F9B: 4310 PUSH32(esp, edi); /* 0x36141F9B: push edi */ 4311 ecx = esi; /* 0x36141F9C: mov ecx, esi */ 4312 RECOMP_ICALL(0x361420C0u); /* 0x36141F9E: call 0x361420c0 */ /* not lifted */ 4313 RECOMP_FLAGS_IN(); 4314 goto L_36141FB1; /* 0x36141FA3: jmp 0x36141fb1 */ 4315 L_36141FA5: 4316 MEM32(esi + 0x130) = ebx; /* 0x36141FA5: mov dword ptr [esi + 0x130], ebx */ 4317 MEM32(esi + 0x134) = ebx; /* 0x36141FAB: mov dword ptr [esi + 0x134], ebx */ 4318 L_36141FB1: 4319 ecx = MEM32(ebp + (-0xC)); /* 0x36141FB1: mov ecx, dword ptr [ebp - 0xc] */ 4320 edi = POP32_VAL(esp); /* 0x36141FB4: pop edi */ 4321 eax = esi; /* 0x36141FB5: mov eax, esi */ 4322 esi = POP32_VAL(esp); /* 0x36141FB7: pop esi */ 4323 ebx = POP32_VAL(esp); /* 0x36141FB8: pop ebx */ 4324 MEM32(FS_BASE + (0)) = ecx; /* 0x36141FB9: mov dword ptr fs:[0], ecx */ 4325 esp = ebp; /* 0x36141FC0: mov esp, ebp */ 4326 ebp = POP32_VAL(esp); /* 0x36141FC2: pop ebp */ 4327 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36141FC3: ret 4 */ 4328 RECOMP_REGS_OUT(); 4329 } 4330 4331 void sub_36141EC6(void) { 4332 int _fpu_cmp = 0; 4333 uint32_t _cf = 0; 4334 int _df = 1; 4335 uint32_t _flag_k = FK_NONE; 4336 uint32_t _flag_a = 0, _flag_b = 0; 4337 uint32_t _itail_tgt = 0; 4338 RECOMP_REGS_LOCALS 4339 RECOMP_ENTER(0x36141EC6u); 4340 4341 L_36141EC6: 4342 ecx = MEM32(ebp + (-0x18)); /* 0x36141EC6: mov ecx, dword ptr [ebp - 0x18] */ 4343 MEM8(esi + 0x188) = (uint8_t)(LO8(ebx)); /* 0x36141EC9: mov byte ptr [esi + 0x188], bl */ 4344 MEM8(esi + 0x189) = (uint8_t)(LO8(ebx)); /* 0x36141ECF: mov byte ptr [esi + 0x189], bl */ 4345 MEM32(esi + 0x178) = edx; /* 0x36141ED5: mov dword ptr [esi + 0x178], edx */ 4346 edx = MEM32(ebp + (-0x20)); /* 0x36141EDB: mov edx, dword ptr [ebp - 0x20] */ 4347 MEM32(esi + 0x17C) = edx; /* 0x36141EDE: mov dword ptr [esi + 0x17c], edx */ 4348 MEM32(esi + 0x180) = eax; /* 0x36141EE4: mov dword ptr [esi + 0x180], eax */ 4349 MEM32(esi + 0x184) = ecx; /* 0x36141EEA: mov dword ptr [esi + 0x184], ecx */ 4350 ecx = esi; /* 0x36141EF0: mov ecx, esi */ 4351 RECOMP_ICALL(MEM32(0x3617031C)); /* 0x36141EF2: call dword ptr [0x3617031c] */ 4352 RECOMP_FLAGS_IN(); 4353 ecx = esi; /* 0x36141EF8: mov ecx, esi */ 4354 RECOMP_ICALL(MEM32(0x36170364)); /* 0x36141EFA: call dword ptr [0x36170364] */ 4355 RECOMP_FLAGS_IN(); 4356 PUSH32(esp, ebx); /* 0x36141F00: push ebx */ 4357 ecx = esi; /* 0x36141F01: mov ecx, esi */ 4358 RECOMP_ICALL(MEM32(0x36170238)); /* 0x36141F03: call dword ptr [0x36170238] */ 4359 RECOMP_FLAGS_IN(); 4360 /* cmp MEM8(0x3630D95C), LO8(ebx) */ /* 0x36141F09: cmp byte ptr [0x3630d95c], bl */ 4361 _flag_a = (uint32_t)(MEM8(0x3630D95C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4363 _flag_k = FK_NARROW(FK_CMP, 24); 4364 if (CMP_NE(_flag_a, _flag_b)) goto L_36141F18; /* 0x36141F0F: jne 0x36141f18 */ 4365 L_36141F11: 4366 ecx = esi; /* 0x36141F11: mov ecx, esi */ 4367 RECOMP_ICALL(0x36142750u); /* 0x36141F13: call 0x36142750 */ /* not lifted */ 4368 RECOMP_FLAGS_IN(); 4369 L_36141F18: 4370 edx = MEM32(0x3630D934); /* 0x36141F18: mov edx, dword ptr [0x3630d934] */ 4371 PUSH32(esp, edx); /* 0x36141F1E: push edx */ 4372 ecx = esi; /* 0x36141F1F: mov ecx, esi */ 4373 RECOMP_ICALL(MEM32(0x36170244)); /* 0x36141F21: call dword ptr [0x36170244] */ 4374 RECOMP_FLAGS_IN(); 4375 fp_push(*(float*)&MEM32(0x3630D938)); /* 0x36141F27: fld dword ptr [0x3630d938] */ 4376 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36141F2D: fst dword ptr [ebp - 0x10] */ 4377 eax = MEM32(ebp + (-0x10)); /* 0x36141F30: mov eax, dword ptr [ebp - 0x10] */ 4378 PUSH32(esp, eax); /* 0x36141F33: push eax */ 4379 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x15C) = _v; } /* 0x36141F34: fstp dword ptr [esi + 0x15c] */ 4380 ecx = esi; /* 0x36141F3A: mov ecx, esi */ 4381 RECOMP_ICALL(MEM32(0x3617025C)); /* 0x36141F3C: call dword ptr [0x3617025c] */ 4382 RECOMP_FLAGS_IN(); 4383 ecx = MEM32(0x3630D93C); /* 0x36141F42: mov ecx, dword ptr [0x3630d93c] */ 4384 PUSH32(esp, ecx); /* 0x36141F48: push ecx */ 4385 ecx = esi; /* 0x36141F49: mov ecx, esi */ 4386 RECOMP_ICALL(MEM32(0x36170234)); /* 0x36141F4B: call dword ptr [0x36170234] */ 4387 RECOMP_FLAGS_IN(); 4388 edx = MEM32(0x3630D940); /* 0x36141F51: mov edx, dword ptr [0x3630d940] */ 4389 PUSH32(esp, edx); /* 0x36141F57: push edx */ 4390 ecx = esi; /* 0x36141F58: mov ecx, esi */ 4391 RECOMP_ICALL(MEM32(0x36170260)); /* 0x36141F5A: call dword ptr [0x36170260] */ 4392 RECOMP_FLAGS_IN(); 4393 PUSH32(esp, 0x5Cu); /* 0x36141F60: push 0x5c */ 4394 RECOMP_ICALL(0x3615FD6Au); /* 0x36141F62: call 0x3615fd6a */ /* not lifted */ 4395 RECOMP_FLAGS_IN(); 4396 edi = eax; /* 0x36141F67: mov edi, eax */ 4397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4399 esp = esp + 4; /* 0x36141F69: add esp, 4 */ 4400 _flag_k = FK_ADD; 4401 MEM32(ebp + (-0x10)) = edi; /* 0x36141F6C: mov dword ptr [ebp - 0x10], edi */ 4402 /* cmp edi, ebx */ /* 0x36141F6F: cmp edi, ebx */ 4403 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4405 _flag_k = FK_CMP; 4406 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x36141F71: mov byte ptr [ebp - 4], 4 */ 4407 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141F91; /* 0x36141F75: je 0x36141f91 */ 4408 L_36141F77: 4409 eax = MEM32(ebp + 0x8); /* 0x36141F77: mov eax, dword ptr [ebp + 8] */ 4410 PUSH32(esp, 3); /* 0x36141F7A: push 3 */ 4411 PUSH32(esp, ebx); /* 0x36141F7C: push ebx */ 4412 PUSH32(esp, ebx); /* 0x36141F7D: push ebx */ 4413 PUSH32(esp, ebx); /* 0x36141F7E: push ebx */ 4414 PUSH32(esp, ebx); /* 0x36141F7F: push ebx */ 4415 PUSH32(esp, eax); /* 0x36141F80: push eax */ 4416 ecx = edi; /* 0x36141F81: mov ecx, edi */ 4417 RECOMP_ICALL(MEM32(0x3616F998)); /* 0x36141F83: call dword ptr [0x3616f998] */ 4418 RECOMP_FLAGS_IN(); 4419 MEM32(edi) = 0x361709C8u; /* 0x36141F89: mov dword ptr [edi], 0x361709c8 */ 4420 goto L_36141F93; /* 0x36141F8F: jmp 0x36141f93 */ 4421 L_36141F91: 4422 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4423 edi = 0; /* 0x36141F91: xor edi, edi */ 4424 _cf = 0; 4425 _flag_k = FK_TEST; 4426 L_36141F93: 4427 /* cmp edi, ebx */ /* 0x36141F93: cmp edi, ebx */ 4428 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4430 _flag_k = FK_CMP; 4431 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36141F95: mov byte ptr [ebp - 4], 3 */ 4432 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141FA5; /* 0x36141F99: je 0x36141fa5 */ 4433 L_36141F9B: 4434 PUSH32(esp, edi); /* 0x36141F9B: push edi */ 4435 ecx = esi; /* 0x36141F9C: mov ecx, esi */ 4436 RECOMP_ICALL(0x361420C0u); /* 0x36141F9E: call 0x361420c0 */ /* not lifted */ 4437 RECOMP_FLAGS_IN(); 4438 goto L_36141FB1; /* 0x36141FA3: jmp 0x36141fb1 */ 4439 L_36141FA5: 4440 MEM32(esi + 0x130) = ebx; /* 0x36141FA5: mov dword ptr [esi + 0x130], ebx */ 4441 MEM32(esi + 0x134) = ebx; /* 0x36141FAB: mov dword ptr [esi + 0x134], ebx */ 4442 L_36141FB1: 4443 ecx = MEM32(ebp + (-0xC)); /* 0x36141FB1: mov ecx, dword ptr [ebp - 0xc] */ 4444 edi = POP32_VAL(esp); /* 0x36141FB4: pop edi */ 4445 eax = esi; /* 0x36141FB5: mov eax, esi */ 4446 esi = POP32_VAL(esp); /* 0x36141FB7: pop esi */ 4447 ebx = POP32_VAL(esp); /* 0x36141FB8: pop ebx */ 4448 MEM32(FS_BASE + (0)) = ecx; /* 0x36141FB9: mov dword ptr fs:[0], ecx */ 4449 esp = ebp; /* 0x36141FC0: mov esp, ebp */ 4450 ebp = POP32_VAL(esp); /* 0x36141FC2: pop ebp */ 4451 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36141FC3: ret 4 */ 4452 RECOMP_REGS_OUT(); 4453 } 4454 4455 void sub_36141F93(void) { 4456 int _fpu_cmp = 0; 4457 uint32_t _cf = 0; 4458 int _df = 1; 4459 uint32_t _flag_k = FK_NONE; 4460 uint32_t _flag_a = 0, _flag_b = 0; 4461 uint32_t _itail_tgt = 0; 4462 RECOMP_REGS_LOCALS 4463 RECOMP_ENTER(0x36141F93u); 4464 4465 L_36141F93: 4466 /* cmp edi, ebx */ /* 0x36141F93: cmp edi, ebx */ 4467 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4469 _flag_k = FK_CMP; 4470 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36141F95: mov byte ptr [ebp - 4], 3 */ 4471 if (CMP_EQ(_flag_a, _flag_b)) goto L_36141FA5; /* 0x36141F99: je 0x36141fa5 */ 4472 L_36141F9B: 4473 PUSH32(esp, edi); /* 0x36141F9B: push edi */ 4474 ecx = esi; /* 0x36141F9C: mov ecx, esi */ 4475 RECOMP_ICALL(0x361420C0u); /* 0x36141F9E: call 0x361420c0 */ /* not lifted */ 4476 RECOMP_FLAGS_IN(); 4477 goto L_36141FB1; /* 0x36141FA3: jmp 0x36141fb1 */ 4478 L_36141FA5: 4479 MEM32(esi + 0x130) = ebx; /* 0x36141FA5: mov dword ptr [esi + 0x130], ebx */ 4480 MEM32(esi + 0x134) = ebx; /* 0x36141FAB: mov dword ptr [esi + 0x134], ebx */ 4481 L_36141FB1: 4482 ecx = MEM32(ebp + (-0xC)); /* 0x36141FB1: mov ecx, dword ptr [ebp - 0xc] */ 4483 edi = POP32_VAL(esp); /* 0x36141FB4: pop edi */ 4484 eax = esi; /* 0x36141FB5: mov eax, esi */ 4485 esi = POP32_VAL(esp); /* 0x36141FB7: pop esi */ 4486 ebx = POP32_VAL(esp); /* 0x36141FB8: pop ebx */ 4487 MEM32(FS_BASE + (0)) = ecx; /* 0x36141FB9: mov dword ptr fs:[0], ecx */ 4488 esp = ebp; /* 0x36141FC0: mov esp, ebp */ 4489 ebp = POP32_VAL(esp); /* 0x36141FC2: pop ebp */ 4490 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36141FC3: ret 4 */ 4491 RECOMP_REGS_OUT(); 4492 } 4493 4494 void sub_36141FB1(void) { 4495 int _fpu_cmp = 0; 4496 uint32_t _cf = 0; 4497 int _df = 1; 4498 uint32_t _flag_k = FK_NONE; 4499 uint32_t _flag_a = 0, _flag_b = 0; 4500 uint32_t _itail_tgt = 0; 4501 RECOMP_REGS_LOCALS 4502 RECOMP_ENTER(0x36141FB1u); 4503 4504 L_36141FB1: 4505 ecx = MEM32(ebp + (-0xC)); /* 0x36141FB1: mov ecx, dword ptr [ebp - 0xc] */ 4506 edi = POP32_VAL(esp); /* 0x36141FB4: pop edi */ 4507 eax = esi; /* 0x36141FB5: mov eax, esi */ 4508 esi = POP32_VAL(esp); /* 0x36141FB7: pop esi */ 4509 ebx = POP32_VAL(esp); /* 0x36141FB8: pop ebx */ 4510 MEM32(FS_BASE + (0)) = ecx; /* 0x36141FB9: mov dword ptr fs:[0], ecx */ 4511 esp = ebp; /* 0x36141FC0: mov esp, ebp */ 4512 ebp = POP32_VAL(esp); /* 0x36141FC2: pop ebp */ 4513 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36141FC3: ret 4 */ 4514 RECOMP_REGS_OUT(); 4515 } 4516 4517 void sub_36141FD0(void) { 4518 int _fpu_cmp = 0; 4519 uint32_t _cf = 0; 4520 int _df = 1; 4521 uint32_t _flag_k = FK_NONE; 4522 uint32_t _flag_a = 0, _flag_b = 0; 4523 uint32_t _itail_tgt = 0; 4524 RECOMP_REGS_LOCALS 4525 RECOMP_ENTER(0x36141FD0u); 4526 4527 L_36141FD0: 4528 PUSH32(esp, ebp); /* 0x36141FD0: push ebp */ 4529 ebp = esp; /* 0x36141FD1: mov ebp, esp */ 4530 PUSH32(esp, esi); /* 0x36141FD3: push esi */ 4531 esi = ecx; /* 0x36141FD4: mov esi, ecx */ 4532 RECOMP_ICALL(0x36142000u); /* 0x36141FD6: call 0x36142000 */ /* not lifted */ 4533 RECOMP_FLAGS_IN(); 4534 /* test MEM8(ebp + 0x8), 1 */ /* 0x36141FDB: test byte ptr [ebp + 8], 1 */ 4535 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 4536 _cf = 0; 4537 _flag_k = FK_NARROW(FK_TEST, 24); 4538 if (TEST_Z(_flag_a, _flag_b)) goto L_36141FEA; /* 0x36141FDF: je 0x36141fea */ 4539 L_36141FE1: 4540 PUSH32(esp, esi); /* 0x36141FE1: push esi */ 4541 RECOMP_ICALL(0x3615FCC4u); /* 0x36141FE2: call 0x3615fcc4 */ /* not lifted */ 4542 RECOMP_FLAGS_IN(); 4543 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4544 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4545 esp = esp + 4; /* 0x36141FE7: add esp, 4 */ 4546 _flag_k = FK_ADD; 4547 L_36141FEA: 4548 eax = esi; /* 0x36141FEA: mov eax, esi */ 4549 esi = POP32_VAL(esp); /* 0x36141FEC: pop esi */ 4550 ebp = POP32_VAL(esp); /* 0x36141FED: pop ebp */ 4551 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36141FEE: ret 4 */ 4552 RECOMP_REGS_OUT(); 4553 } 4554 4555 void sub_36142000(void) { 4556 int _fpu_cmp = 0; 4557 uint32_t _cf = 0; 4558 int _df = 1; 4559 uint32_t _flag_k = FK_NONE; 4560 uint32_t _flag_a = 0, _flag_b = 0; 4561 uint32_t _itail_tgt = 0; 4562 RECOMP_REGS_LOCALS 4563 RECOMP_ENTER(0x36142000u); 4564 4565 L_36142000: 4566 PUSH32(esp, ebp); /* 0x36142000: push ebp */ 4567 ebp = esp; /* 0x36142001: mov ebp, esp */ 4568 PUSH32(esp, 0xFFFFFFFFu); /* 0x36142003: push -1 */ 4569 PUSH32(esp, 0x3616CDD8u); /* 0x36142005: push 0x3616cdd8 */ 4570 eax = MEM32(FS_BASE + (0)); /* 0x3614200A: mov eax, dword ptr fs:[0] */ 4571 PUSH32(esp, eax); /* 0x36142010: push eax */ 4572 MEM32(FS_BASE + (0)) = esp; /* 0x36142011: mov dword ptr fs:[0], esp */ 4573 PUSH32(esp, ecx); /* 0x36142018: push ecx */ 4574 PUSH32(esp, esi); /* 0x36142019: push esi */ 4575 esi = ecx; /* 0x3614201A: mov esi, ecx */ 4576 PUSH32(esp, edi); /* 0x3614201C: push edi */ 4577 MEM32(ebp + (-0x10)) = esi; /* 0x3614201D: mov dword ptr [ebp - 0x10], esi */ 4578 MEM32(esi) = 0x36177FDCu; /* 0x36142020: mov dword ptr [esi], 0x36177fdc */ 4579 MEM32(esi + 0x20) = 0x36177FD4u; /* 0x36142026: mov dword ptr [esi + 0x20], 0x36177fd4 */ 4580 MEM32(ebp + (-0x4)) = 0; /* 0x3614202D: mov dword ptr [ebp - 4], 0 */ 4581 RECOMP_ICALL(MEM32(0x36170368)); /* 0x36142034: call dword ptr [0x36170368] */ 4582 RECOMP_FLAGS_IN(); 4583 edi = eax; /* 0x3614203A: mov edi, eax */ 4584 /* test edi, edi */ /* 0x3614203C: test edi, edi */ 4585 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4586 _cf = 0; 4587 _flag_k = FK_TEST; 4588 if (TEST_Z(_flag_a, _flag_b)) goto L_3614206A; /* 0x3614203E: je 0x3614206a */ 4589 L_36142040: 4590 ecx = MEM32(edi + 0x18); /* 0x36142040: mov ecx, dword ptr [edi + 0x18] */ 4591 /* test ecx, ecx */ /* 0x36142043: test ecx, ecx */ 4592 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4593 _cf = 0; 4594 _flag_k = FK_TEST; 4595 MEM32(edi) = 0x36178118u; /* 0x36142045: mov dword ptr [edi], 0x36178118 */ 4596 MEM32(edi + 0x4) = 0x36178110u; /* 0x3614204B: mov dword ptr [edi + 4], 0x36178110 */ 4597 if (TEST_Z(_flag_a, _flag_b)) goto L_3614205A; /* 0x36142052: je 0x3614205a */ 4598 L_36142054: 4599 eax = MEM32(ecx); /* 0x36142054: mov eax, dword ptr [ecx] */ 4600 PUSH32(esp, 1); /* 0x36142056: push 1 */ 4601 RECOMP_ICALL(MEM32(eax)); /* 0x36142058: call dword ptr [eax] */ 4602 RECOMP_FLAGS_IN(); 4603 L_3614205A: 4604 PUSH32(esp, edi); /* 0x3614205A: push edi */ 4605 MEM32(edi + 0x18) = 0; /* 0x3614205B: mov dword ptr [edi + 0x18], 0 */ 4606 RECOMP_ICALL(0x3615FCC4u); /* 0x36142062: call 0x3615fcc4 */ /* not lifted */ 4607 RECOMP_FLAGS_IN(); 4608 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4609 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4610 esp = esp + 4; /* 0x36142067: add esp, 4 */ 4611 _flag_k = FK_ADD; 4612 L_3614206A: 4613 PUSH32(esp, 0); /* 0x3614206A: push 0 */ 4614 ecx = esi; /* 0x3614206C: mov ecx, esi */ 4615 RECOMP_ICALL(MEM32(0x36170328)); /* 0x3614206E: call dword ptr [0x36170328] */ 4616 RECOMP_FLAGS_IN(); 4617 ecx = MEM32(esi + 0x168); /* 0x36142074: mov ecx, dword ptr [esi + 0x168] */ 4618 /* test ecx, ecx */ /* 0x3614207A: test ecx, ecx */ 4619 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4620 _cf = 0; 4621 _flag_k = FK_TEST; 4622 if (TEST_Z(_flag_a, _flag_b)) goto L_36142084; /* 0x3614207C: je 0x36142084 */ 4623 L_3614207E: 4624 edx = MEM32(ecx); /* 0x3614207E: mov edx, dword ptr [ecx] */ 4625 PUSH32(esp, 1); /* 0x36142080: push 1 */ 4626 RECOMP_ICALL(MEM32(edx)); /* 0x36142082: call dword ptr [edx] */ 4627 RECOMP_FLAGS_IN(); 4628 L_36142084: 4629 ecx = esi; /* 0x36142084: mov ecx, esi */ 4630 MEM32(esi + 0x168) = 0; /* 0x36142086: mov dword ptr [esi + 0x168], 0 */ 4631 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36142090: mov dword ptr [ebp - 4], 0xffffffff */ 4632 MEM32(esi) = 0x36178084u; /* 0x36142097: mov dword ptr [esi], 0x36178084 */ 4633 MEM32(esi + 0x20) = 0x3617807Cu; /* 0x3614209D: mov dword ptr [esi + 0x20], 0x3617807c */ 4634 RECOMP_ICALL(MEM32(0x36170318)); /* 0x361420A4: call dword ptr [0x36170318] */ 4635 RECOMP_FLAGS_IN(); 4636 ecx = MEM32(ebp + (-0xC)); /* 0x361420AA: mov ecx, dword ptr [ebp - 0xc] */ 4637 edi = POP32_VAL(esp); /* 0x361420AD: pop edi */ 4638 esi = POP32_VAL(esp); /* 0x361420AE: pop esi */ 4639 MEM32(FS_BASE + (0)) = ecx; /* 0x361420AF: mov dword ptr fs:[0], ecx */ 4640 esp = ebp; /* 0x361420B6: mov esp, ebp */ 4641 ebp = POP32_VAL(esp); /* 0x361420B8: pop ebp */ 4642 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361420B9: ret */ 4643 RECOMP_REGS_OUT(); 4644 } 4645 4646 void sub_361420C0(void) { 4647 int _fpu_cmp = 0; 4648 uint32_t _cf = 0; 4649 int _df = 1; 4650 uint32_t _flag_k = FK_NONE; 4651 uint32_t _flag_a = 0, _flag_b = 0; 4652 uint32_t _itail_tgt = 0; 4653 RECOMP_REGS_LOCALS 4654 RECOMP_ENTER(0x361420C0u); 4655 4656 L_361420C0: 4657 PUSH32(esp, ebp); /* 0x361420C0: push ebp */ 4658 ebp = esp; /* 0x361420C1: mov ebp, esp */ 4659 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4661 esp = esp - 0x14u; /* 0x361420C3: sub esp, 0x14 */ 4662 _flag_k = FK_CMP; 4663 PUSH32(esp, ebx); /* 0x361420C6: push ebx */ 4664 ebx = MEM32(ebp + 0x8); /* 0x361420C7: mov ebx, dword ptr [ebp + 8] */ 4665 PUSH32(esp, esi); /* 0x361420CA: push esi */ 4666 PUSH32(esp, edi); /* 0x361420CB: push edi */ 4667 esi = ecx; /* 0x361420CC: mov esi, ecx */ 4668 PUSH32(esp, ebx); /* 0x361420CE: push ebx */ 4669 RECOMP_ICALL(0x361427C0u); /* 0x361420CF: call 0x361427c0 */ /* not lifted */ 4670 RECOMP_FLAGS_IN(); 4671 /* test LO8(eax), LO8(eax) */ /* 0x361420D4: test al, al */ 4672 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4673 _cf = 0; 4674 _flag_k = FK_NARROW(FK_TEST, 24); 4675 if (TEST_Z(_flag_a, _flag_b)) goto L_36142156; /* 0x361420D6: je 0x36142156 */ 4676 L_361420D8: 4677 edi = MEM32(0x36170368); /* 0x361420D8: mov edi, dword ptr [0x36170368] */ 4678 ecx = esi; /* 0x361420DE: mov ecx, esi */ 4679 RECOMP_ICALL(edi); /* 0x361420E0: call edi */ 4680 RECOMP_FLAGS_IN(); 4681 edx = MEM32(eax); /* 0x361420E2: mov edx, dword ptr [eax] */ 4682 ecx = ebx; /* 0x361420E4: mov ecx, ebx */ 4683 MEM32(ebp + (-0x4)) = eax; /* 0x361420E6: mov dword ptr [ebp - 4], eax */ 4684 MEM32(ebp + (-0x8)) = edx; /* 0x361420E9: mov dword ptr [ebp - 8], edx */ 4685 RECOMP_ICALL(MEM32(0x3616F970)); /* 0x361420EC: call dword ptr [0x3616f970] */ 4686 RECOMP_FLAGS_IN(); 4687 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x361420F2: fmul dword ptr [0x36170464] */ 4688 eax = MEM32(ebp + (-0x8)); /* 0x361420F8: mov eax, dword ptr [ebp - 8] */ 4689 PUSH32(esp, ecx); /* 0x361420FB: push ecx */ 4690 ecx = MEM32(ebp + (-0x4)); /* 0x361420FC: mov ecx, dword ptr [ebp - 4] */ 4691 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361420FF: fstp dword ptr [esp] */ 4692 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x36142102: call dword ptr [eax + 0x18] */ 4693 RECOMP_FLAGS_IN(); 4694 ecx = ebx; /* 0x36142105: mov ecx, ebx */ 4695 RECOMP_ICALL(MEM32(0x3616F970)); /* 0x36142107: call dword ptr [0x3616f970] */ 4696 RECOMP_FLAGS_IN(); 4697 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3614210D: fmul dword ptr [0x36170464] */ 4698 ecx = esi; /* 0x36142113: mov ecx, esi */ 4699 MEM32(ebp + (-0x14)) = 0; /* 0x36142115: mov dword ptr [ebp - 0x14], 0 */ 4700 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3614211C: fstp dword ptr [ebp - 0x10] */ 4701 MEM32(ebp + (-0xC)) = 0; /* 0x3614211F: mov dword ptr [ebp - 0xc], 0 */ 4702 RECOMP_ICALL(edi); /* 0x36142126: call edi */ 4703 RECOMP_FLAGS_IN(); 4704 edx = MEM32(eax); /* 0x36142128: mov edx, dword ptr [eax] */ 4705 ecx = ebp + (-0x14); /* 0x3614212A: lea ecx, [ebp - 0x14] */ 4706 PUSH32(esp, ecx); /* 0x3614212D: push ecx */ 4707 ecx = eax; /* 0x3614212E: mov ecx, eax */ 4708 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36142130: call dword ptr [edx + 0x14] */ 4709 RECOMP_FLAGS_IN(); 4710 eax = MEM32(esi + 0x170); /* 0x36142133: mov eax, dword ptr [esi + 0x170] */ 4711 /* cmp eax, 2 */ /* 0x36142139: cmp eax, 2 */ 4712 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4714 _flag_k = FK_CMP; 4715 if (CMP_NE(_flag_a, _flag_b)) goto L_36142144; /* 0x3614213C: jne 0x36142144 */ 4716 L_3614213E: 4717 PUSH32(esp, 0); /* 0x3614213E: push 0 */ 4718 PUSH32(esp, 0); /* 0x36142140: push 0 */ 4719 goto L_3614214B; /* 0x36142142: jmp 0x3614214b */ 4720 L_36142144: 4721 /* test eax, eax */ /* 0x36142144: test eax, eax */ 4722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4723 _cf = 0; 4724 _flag_k = FK_TEST; 4725 if (TEST_NZ(_flag_a, _flag_b)) goto L_36142156; /* 0x36142146: jne 0x36142156 */ 4726 L_36142148: 4727 PUSH32(esp, eax); /* 0x36142148: push eax */ 4728 PUSH32(esp, 1); /* 0x36142149: push 1 */ 4729 L_3614214B: 4730 ecx = esi; /* 0x3614214B: mov ecx, esi */ 4731 RECOMP_ICALL(edi); /* 0x3614214D: call edi */ 4732 RECOMP_FLAGS_IN(); 4733 ecx = eax; /* 0x3614214F: mov ecx, eax */ 4734 RECOMP_ICALL(0x3613A820u); /* 0x36142151: call 0x3613a820 */ /* not lifted */ 4735 RECOMP_FLAGS_IN(); 4736 L_36142156: 4737 edi = POP32_VAL(esp); /* 0x36142156: pop edi */ 4738 esi = POP32_VAL(esp); /* 0x36142157: pop esi */ 4739 SET_LO8(eax, 1); /* 0x36142158: mov al, 1 */ 4740 ebx = POP32_VAL(esp); /* 0x3614215A: pop ebx */ 4741 esp = ebp; /* 0x3614215B: mov esp, ebp */ 4742 ebp = POP32_VAL(esp); /* 0x3614215D: pop ebp */ 4743 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614215E: ret 4 */ 4744 RECOMP_REGS_OUT(); 4745 } 4746 4747 void sub_36142170(void) { 4748 int _fpu_cmp = 0; 4749 uint32_t _cf = 0; 4750 int _df = 1; 4751 uint32_t _flag_k = FK_NONE; 4752 uint32_t _flag_a = 0, _flag_b = 0; 4753 uint32_t _itail_tgt = 0; 4754 RECOMP_REGS_LOCALS 4755 RECOMP_ENTER(0x36142170u); 4756 4757 L_36142170: 4758 PUSH32(esp, ebp); /* 0x36142170: push ebp */ 4759 ebp = esp; /* 0x36142171: mov ebp, esp */ 4760 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 4761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4762 esp = esp - 0x34u; /* 0x36142173: sub esp, 0x34 */ 4763 _flag_k = FK_CMP; 4764 PUSH32(esp, ebx); /* 0x36142176: push ebx */ 4765 PUSH32(esp, esi); /* 0x36142177: push esi */ 4766 esi = ecx; /* 0x36142178: mov esi, ecx */ 4767 PUSH32(esp, edi); /* 0x3614217A: push edi */ 4768 edi = MEM32(ebp + 0x8); /* 0x3614217B: mov edi, dword ptr [ebp + 8] */ 4769 MEM32(ebp + (-0x34)) = 0; /* 0x3614217E: mov dword ptr [ebp - 0x34], 0 */ 4770 ecx = MEM32(ebp + (-0x34)); /* 0x36142185: mov ecx, dword ptr [ebp - 0x34] */ 4771 eax = edi; /* 0x36142188: mov eax, edi */ 4772 MEM32(eax) = ecx; /* 0x3614218A: mov dword ptr [eax], ecx */ 4773 MEM32(ebp + (-0x30)) = 0; /* 0x3614218C: mov dword ptr [ebp - 0x30], 0 */ 4774 edx = MEM32(ebp + (-0x30)); /* 0x36142193: mov edx, dword ptr [ebp - 0x30] */ 4775 MEM32(eax + 0x4) = edx; /* 0x36142196: mov dword ptr [eax + 4], edx */ 4776 MEM32(ebp + (-0x2C)) = 0; /* 0x36142199: mov dword ptr [ebp - 0x2c], 0 */ 4777 ecx = MEM32(ebp + (-0x2C)); /* 0x361421A0: mov ecx, dword ptr [ebp - 0x2c] */ 4778 MEM32(eax + 0x8) = ecx; /* 0x361421A3: mov dword ptr [eax + 8], ecx */ 4779 edx = MEM32(esi + 0x178); /* 0x361421A6: mov edx, dword ptr [esi + 0x178] */ 4780 eax = MEM32(esi + 0x170); /* 0x361421AC: mov eax, dword ptr [esi + 0x170] */ 4781 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4782 edx = edx + 1; /* 0x361421B2: inc edx */ 4783 _flag_k = FK_INC; 4784 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4785 ebx = 0; /* 0x361421B3: xor ebx, ebx */ 4786 _cf = 0; 4787 _flag_k = FK_TEST; 4788 /* cmp eax, ebx */ /* 0x361421B5: cmp eax, ebx */ 4789 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4791 _flag_k = FK_CMP; 4792 MEM32(ebp + (-0x10)) = 0; /* 0x361421B7: mov dword ptr [ebp - 0x10], 0 */ 4793 MEM32(ebp + (-0xC)) = 0; /* 0x361421BE: mov dword ptr [ebp - 0xc], 0 */ 4794 MEM32(ebp + (-0x8)) = 0; /* 0x361421C5: mov dword ptr [ebp - 8], 0 */ 4795 MEM32(esi + 0x178) = edx; /* 0x361421CC: mov dword ptr [esi + 0x178], edx */ 4796 if (CMP_NE(_flag_a, _flag_b)) goto L_36142450; /* 0x361421D2: jne 0x36142450 */ 4797 L_361421D8: 4798 edx = MEM32(0x3617032C); /* 0x361421D8: mov edx, dword ptr [0x3617032c] */ 4799 fp_push(*(float*)&MEM32(edx)); /* 0x361421DE: fld dword ptr [edx] */ 4800 _st[0] += (double)*(float*)ADDR(esi + 0x174); /* 0x361421E0: fadd dword ptr [esi + 0x174] */ 4801 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x174) = _v; } /* 0x361421E6: fst dword ptr [esi + 0x174] */ 4802 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170464)); /* 0x361421EC: fcomp dword ptr [0x36170464] */ 4803 fp_pop(); 4804 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361421F2: fnstsw ax */ 4805 /* test HI8(eax), 1 */ /* 0x361421F4: test ah, 1 */ 4806 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4807 _cf = 0; 4808 _flag_k = FK_NARROW(FK_TEST, 24); 4809 if (TEST_NZ(_flag_a, _flag_b)) goto L_36142379; /* 0x361421F7: jne 0x36142379 */ 4810 L_361421FD: 4811 eax = esi + 0x54; /* 0x361421FD: lea eax, [esi + 0x54] */ 4812 ecx = MEM32(eax); /* 0x36142200: mov ecx, dword ptr [eax] */ 4813 edx = MEM32(eax + 0x4); /* 0x36142202: mov edx, dword ptr [eax + 4] */ 4814 eax = MEM32(eax + 0x8); /* 0x36142205: mov eax, dword ptr [eax + 8] */ 4815 PUSH32(esp, 0xFFFFFFFFu); /* 0x36142208: push -1 */ 4816 MEM32(ebp + (-0x34)) = ecx; /* 0x3614220A: mov dword ptr [ebp - 0x34], ecx */ 4817 PUSH32(esp, 0xBF800000u); /* 0x3614220D: push 0xbf800000 */ 4818 MEM32(ebp + (-0x30)) = edx; /* 0x36142212: mov dword ptr [ebp - 0x30], edx */ 4819 ecx = ebp + (-0x4); /* 0x36142215: lea ecx, [ebp - 4] */ 4820 PUSH32(esp, ecx); /* 0x36142218: push ecx */ 4821 edx = ebp + (-0x10); /* 0x36142219: lea edx, [ebp - 0x10] */ 4822 MEM32(ebp + (-0x2C)) = eax; /* 0x3614221C: mov dword ptr [ebp - 0x2c], eax */ 4823 PUSH32(esp, edx); /* 0x3614221F: push edx */ 4824 edx = MEM32(esi); /* 0x36142220: mov edx, dword ptr [esi] */ 4825 eax = ebp + (-0x34); /* 0x36142222: lea eax, [ebp - 0x34] */ 4826 PUSH32(esp, eax); /* 0x36142225: push eax */ 4827 ecx = esi; /* 0x36142226: mov ecx, esi */ 4828 MEM32(esi + 0x174) = ebx; /* 0x36142228: mov dword ptr [esi + 0x174], ebx */ 4829 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x3614222E: call dword ptr [edx + 0x7c] */ 4830 RECOMP_FLAGS_IN(); 4831 ecx = eax; /* 0x36142231: mov ecx, eax */ 4832 RECOMP_ICALL(MEM32(0x3616FE6C)); /* 0x36142233: call dword ptr [0x3616fe6c] */ 4833 RECOMP_FLAGS_IN(); 4834 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142239: fcomp dword ptr [0x3617040c] */ 4835 fp_pop(); 4836 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614223F: fnstsw ax */ 4837 /* test HI8(eax), 0x41u */ /* 0x36142241: test ah, 0x41 */ 4838 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4839 _cf = 0; 4840 _flag_k = FK_NARROW(FK_TEST, 24); 4841 if (TEST_NZ(_flag_a, _flag_b)) goto L_36142301; /* 0x36142244: jne 0x36142301 */ 4842 L_3614224A: 4843 /* cmp MEM8(esi + 0x189), LO8(ebx) */ /* 0x3614224A: cmp byte ptr [esi + 0x189], bl */ 4844 _flag_a = (uint32_t)(MEM8(esi + 0x189)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4846 _flag_k = FK_NARROW(FK_CMP, 24); 4847 if (CMP_NE(_flag_a, _flag_b)) goto L_36142269; /* 0x36142250: jne 0x36142269 */ 4848 L_36142252: 4849 MEM32(esi + 0x130) = 0x41200000u; /* 0x36142252: mov dword ptr [esi + 0x130], 0x41200000 */ 4850 MEM32(esi + 0x134) = ebx; /* 0x3614225C: mov dword ptr [esi + 0x134], ebx */ 4851 MEM8(esi + 0x189) = (uint8_t)(1); /* 0x36142262: mov byte ptr [esi + 0x189], 1 */ 4852 L_36142269: 4853 fp_push(*(float*)&MEM32(esi + 0x15C)); /* 0x36142269: fld dword ptr [esi + 0x15c] */ 4854 eax = esi + 0x17C; /* 0x3614226F: lea eax, [esi + 0x17c] */ 4855 ecx = MEM32(eax); /* 0x36142275: mov ecx, dword ptr [eax] */ 4856 edx = MEM32(eax + 0x4); /* 0x36142277: mov edx, dword ptr [eax + 4] */ 4857 eax = MEM32(eax + 0x8); /* 0x3614227A: mov eax, dword ptr [eax + 8] */ 4858 MEM32(ebp + (-0x1C)) = ecx; /* 0x3614227D: mov dword ptr [ebp - 0x1c], ecx */ 4859 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36142280: fld dword ptr [ebp - 0x1c] */ 4860 _st[0] -= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x36142283: fsub dword ptr [ebp - 0x34] */ 4861 MEM32(ebp + (-0x18)) = edx; /* 0x36142286: mov dword ptr [ebp - 0x18], edx */ 4862 MEM32(ebp + (-0x14)) = eax; /* 0x36142289: mov dword ptr [ebp - 0x14], eax */ 4863 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3614228C: fstp dword ptr [ebp - 0x1c] */ 4864 ecx = MEM32(ebp + (-0x1C)); /* 0x3614228F: mov ecx, dword ptr [ebp - 0x1c] */ 4865 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36142292: fld dword ptr [ebp - 0x18] */ 4866 MEM32(ebp + (-0x28)) = ecx; /* 0x36142295: mov dword ptr [ebp - 0x28], ecx */ 4867 _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36142298: fsub dword ptr [ebp - 0x30] */ 4868 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3614229B: fstp dword ptr [ebp - 0x18] */ 4869 edx = MEM32(ebp + (-0x18)); /* 0x3614229E: mov edx, dword ptr [ebp - 0x18] */ 4870 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361422A1: fld dword ptr [ebp - 0x14] */ 4871 MEM32(ebp + (-0x24)) = edx; /* 0x361422A4: mov dword ptr [ebp - 0x24], edx */ 4872 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x361422A7: fsub dword ptr [ebp - 0x2c] */ 4873 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x361422AA: fstp dword ptr [ebp - 0x14] */ 4874 eax = MEM32(ebp + (-0x14)); /* 0x361422AD: mov eax, dword ptr [ebp - 0x14] */ 4875 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x361422B0: fld dword ptr [ebp - 0x1c] */ 4876 MEM32(ebp + (-0x20)) = eax; /* 0x361422B3: mov dword ptr [ebp - 0x20], eax */ 4877 _st[0] *= _st[1]; /* 0x361422B6: fmul st(1) */ 4878 eax = esi + 0x140; /* 0x361422B8: lea eax, [esi + 0x140] */ 4879 ecx = eax; /* 0x361422BE: mov ecx, eax */ 4880 PUSH32(esp, eax); /* 0x361422C0: push eax */ 4881 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361422C1: fstp dword ptr [ebp - 0x28] */ 4882 edx = MEM32(ebp + (-0x28)); /* 0x361422C4: mov edx, dword ptr [ebp - 0x28] */ 4883 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361422C7: fld dword ptr [ebp - 0x24] */ 4884 MEM32(ecx) = edx; /* 0x361422CA: mov dword ptr [ecx], edx */ 4885 _st[0] *= _st[1]; /* 0x361422CC: fmul st(1) */ 4886 PUSH32(esp, edi); /* 0x361422CE: push edi */ 4887 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361422CF: fstp dword ptr [ebp - 0x24] */ 4888 edx = MEM32(ebp + (-0x24)); /* 0x361422D2: mov edx, dword ptr [ebp - 0x24] */ 4889 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361422D5: fld dword ptr [ebp - 0x20] */ 4890 MEM32(ecx + 0x4) = edx; /* 0x361422D8: mov dword ptr [ecx + 4], edx */ 4891 _st[0] *= _st[1]; /* 0x361422DB: fmul st(1) */ 4892 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361422DD: fstp dword ptr [ebp - 0x20] */ 4893 edx = MEM32(ebp + (-0x20)); /* 0x361422E0: mov edx, dword ptr [ebp - 0x20] */ 4894 MEM32(ecx + 0x8) = edx; /* 0x361422E3: mov dword ptr [ecx + 8], edx */ 4895 ecx = esi; /* 0x361422E6: mov ecx, esi */ 4896 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361422E8: fstp st(0) */ 4897 RECOMP_ICALL(0x36142A60u); /* 0x361422EA: call 0x36142a60 */ /* not lifted */ 4898 RECOMP_FLAGS_IN(); 4899 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617813C)); /* 0x361422EF: fcomp dword ptr [0x3617813c] */ 4900 fp_pop(); 4901 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361422F5: fnstsw ax */ 4902 /* test HI8(eax), 0x41u */ /* 0x361422F7: test ah, 0x41 */ 4903 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4904 _cf = 0; 4905 _flag_k = FK_NARROW(FK_TEST, 24); 4906 if (TEST_NZ(_flag_a, _flag_b)) goto L_36142379; /* 0x361422FA: jne 0x36142379 */ 4907 L_361422FC: 4908 goto L_36142724; /* 0x361422FC: jmp 0x36142724 */ 4909 L_36142301: 4910 /* cmp MEM8(esi + 0x188), LO8(ebx) */ /* 0x36142301: cmp byte ptr [esi + 0x188], bl */ 4911 _flag_a = (uint32_t)(MEM8(esi + 0x188)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4913 _flag_k = FK_NARROW(FK_CMP, 24); 4914 if (CMP_NE(_flag_a, _flag_b)) goto L_36142344; /* 0x36142307: jne 0x36142344 */ 4915 L_36142309: 4916 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36142309: call dword ptr [0x3616f254] */ 4917 RECOMP_FLAGS_IN(); 4918 MEM32(ebp + 0x8) = eax; /* 0x3614230F: mov dword ptr [ebp + 8], eax */ 4919 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x36142312: fild dword ptr [ebp + 8] */ 4920 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x36142315: fmul dword ptr [0x36170438] */ 4921 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3630D954)); /* 0x3614231B: fcomp dword ptr [0x3630d954] */ 4922 fp_pop(); 4923 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142321: fnstsw ax */ 4924 /* test HI8(eax), 1 */ /* 0x36142323: test ah, 1 */ 4925 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4926 _cf = 0; 4927 _flag_k = FK_NARROW(FK_TEST, 24); 4928 if (TEST_Z(_flag_a, _flag_b)) goto L_36142344; /* 0x36142326: je 0x36142344 */ 4929 L_36142328: 4930 PUSH32(esp, 1); /* 0x36142328: push 1 */ 4931 PUSH32(esp, ebx); /* 0x3614232A: push ebx */ 4932 ecx = esi; /* 0x3614232B: mov ecx, esi */ 4933 RECOMP_ICALL(MEM32(0x36170368)); /* 0x3614232D: call dword ptr [0x36170368] */ 4934 RECOMP_FLAGS_IN(); 4935 ecx = eax; /* 0x36142333: mov ecx, eax */ 4936 RECOMP_ICALL(0x3613A820u); /* 0x36142335: call 0x3613a820 */ /* not lifted */ 4937 RECOMP_FLAGS_IN(); 4938 MEM32(esi + 0x170) = 1; /* 0x3614233A: mov dword ptr [esi + 0x170], 1 */ 4939 L_36142344: 4940 /* cmp MEM8(esi + 0x189), LO8(ebx) */ /* 0x36142344: cmp byte ptr [esi + 0x189], bl */ 4941 _flag_a = (uint32_t)(MEM8(esi + 0x189)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4943 _flag_k = FK_NARROW(FK_CMP, 24); 4944 if (CMP_EQ(_flag_a, _flag_b)) goto L_36142362; /* 0x3614234A: je 0x36142362 */ 4945 L_3614234C: 4946 MEM8(esi + 0x189) = (uint8_t)(LO8(ebx)); /* 0x3614234C: mov byte ptr [esi + 0x189], bl */ 4947 MEM32(esi + 0x130) = 0xBF800000u; /* 0x36142352: mov dword ptr [esi + 0x130], 0xbf800000 */ 4948 MEM32(esi + 0x134) = ebx; /* 0x3614235C: mov dword ptr [esi + 0x134], ebx */ 4949 L_36142362: 4950 ecx = MEM32(ebp + (-0x34)); /* 0x36142362: mov ecx, dword ptr [ebp - 0x34] */ 4951 edx = MEM32(ebp + (-0x30)); /* 0x36142365: mov edx, dword ptr [ebp - 0x30] */ 4952 eax = esi + 0x17C; /* 0x36142368: lea eax, [esi + 0x17c] */ 4953 MEM32(eax) = ecx; /* 0x3614236E: mov dword ptr [eax], ecx */ 4954 ecx = MEM32(ebp + (-0x2C)); /* 0x36142370: mov ecx, dword ptr [ebp - 0x2c] */ 4955 MEM32(eax + 0x4) = edx; /* 0x36142373: mov dword ptr [eax + 4], edx */ 4956 MEM32(eax + 0x8) = ecx; /* 0x36142376: mov dword ptr [eax + 8], ecx */ 4957 L_36142379: 4958 /* cmp MEM32(esi + 0x178), 5 */ /* 0x36142379: cmp dword ptr [esi + 0x178], 5 */ 4959 _flag_a = (uint32_t)(MEM32(esi + 0x178)); _flag_b = (uint32_t)(5); 4960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4961 _flag_k = FK_CMP; 4962 if (CMP_L(_flag_a, _flag_b)) goto L_36142407; /* 0x36142380: jl 0x36142407 */ 4963 L_36142386: 4964 edx = ebp + (-0x10); /* 0x36142386: lea edx, [ebp - 0x10] */ 4965 PUSH32(esp, edx); /* 0x36142389: push edx */ 4966 ecx = esi; /* 0x3614238A: mov ecx, esi */ 4967 MEM32(esi + 0x178) = ebx; /* 0x3614238C: mov dword ptr [esi + 0x178], ebx */ 4968 RECOMP_ICALL(0x36143140u); /* 0x36142392: call 0x36143140 */ /* not lifted */ 4969 RECOMP_FLAGS_IN(); 4970 /* cmp eax, 2 */ /* 0x36142397: cmp eax, 2 */ 4971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4973 _flag_k = FK_CMP; 4974 if (CMP_NE(_flag_a, _flag_b)) goto L_36142407; /* 0x3614239A: jne 0x36142407 */ 4975 L_3614239C: 4976 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3614239C: fld dword ptr [ebp - 0xc] */ 4977 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3614239F: fld dword ptr [ebp - 8] */ 4978 fp_push(*(float*)&MEM32(esi + 0x15C)); /* 0x361423A2: fld dword ptr [esi + 0x15c] */ 4979 fp_push(_st[1]); /* 0x361423A8: fld st(1) */ 4980 _st[0] *= _st[2]; /* 0x361423AA: fmul st(2) */ 4981 fp_push(_st[3]); /* 0x361423AC: fld st(3) */ 4982 _st[0] *= _st[4]; /* 0x361423AE: fmul st(4) */ 4983 { double _v = fp_pop(); _st[0] += _v; } /* 0x361423B0: faddp st(1) */ 4984 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361423B2: fld dword ptr [ebp - 0x10] */ 4985 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361423B5: fmul dword ptr [ebp - 0x10] */ 4986 { double _v = fp_pop(); _st[0] += _v; } /* 0x361423B8: faddp st(1) */ 4987 fp_push(_st[1]); /* 0x361423BA: fld st(1) */ 4988 _st[0] *= _st[2]; /* 0x361423BC: fmul st(2) */ 4989 _st[0] *= (double)*(float*)ADDR(0x361729C8); /* 0x361423BE: fmul dword ptr [0x361729c8] */ 4990 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x361423C4: fcompp */ 4991 fp_pop(); fp_pop(); 4992 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361423C6: fstp st(0) */ 4993 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361423C8: fnstsw ax */ 4994 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361423CA: fstp st(0) */ 4995 /* test HI8(eax), 1 */ /* 0x361423CC: test ah, 1 */ 4996 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4997 _cf = 0; 4998 _flag_k = FK_NARROW(FK_TEST, 24); 4999 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361423CF: fstp st(0) */ 5000 if (TEST_Z(_flag_a, _flag_b)) goto L_361423EA; /* 0x361423D1: je 0x361423ea */ 5001 L_361423D3: 5002 ecx = MEM32(ebp + (-0x10)); /* 0x361423D3: mov ecx, dword ptr [ebp - 0x10] */ 5003 edx = MEM32(ebp + (-0xC)); /* 0x361423D6: mov edx, dword ptr [ebp - 0xc] */ 5004 eax = esi + 0x140; /* 0x361423D9: lea eax, [esi + 0x140] */ 5005 MEM32(eax) = ecx; /* 0x361423DF: mov dword ptr [eax], ecx */ 5006 ecx = MEM32(ebp + (-0x8)); /* 0x361423E1: mov ecx, dword ptr [ebp - 8] */ 5007 MEM32(eax + 0x4) = edx; /* 0x361423E4: mov dword ptr [eax + 4], edx */ 5008 MEM32(eax + 0x8) = ecx; /* 0x361423E7: mov dword ptr [eax + 8], ecx */ 5009 L_361423EA: 5010 edx = ebp + (-0x10); /* 0x361423EA: lea edx, [ebp - 0x10] */ 5011 PUSH32(esp, edx); /* 0x361423ED: push edx */ 5012 PUSH32(esp, edi); /* 0x361423EE: push edi */ 5013 ecx = esi; /* 0x361423EF: mov ecx, esi */ 5014 RECOMP_ICALL(0x36142A60u); /* 0x361423F1: call 0x36142a60 */ /* not lifted */ 5015 RECOMP_FLAGS_IN(); 5016 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617813C)); /* 0x361423F6: fcomp dword ptr [0x3617813c] */ 5017 fp_pop(); 5018 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361423FC: fnstsw ax */ 5019 /* test HI8(eax), 0x41u */ /* 0x361423FE: test ah, 0x41 */ 5020 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5021 _cf = 0; 5022 _flag_k = FK_NARROW(FK_TEST, 24); 5023 if (TEST_Z(_flag_a, _flag_b)) goto L_36142724; /* 0x36142401: je 0x36142724 */ 5024 L_36142407: 5025 /* cmp MEM8(esi + 0x188), LO8(ebx) */ /* 0x36142407: cmp byte ptr [esi + 0x188], bl */ 5026 _flag_a = (uint32_t)(MEM8(esi + 0x188)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5028 _flag_k = FK_NARROW(FK_CMP, 24); 5029 if (CMP_EQ(_flag_a, _flag_b)) goto L_36142676; /* 0x3614240D: je 0x36142676 */ 5030 L_36142413: 5031 ecx = MEM32(0x3630D958); /* 0x36142413: mov ecx, dword ptr [0x3630d958] */ 5032 eax = ebp + (-0x10); /* 0x36142419: lea eax, [ebp - 0x10] */ 5033 PUSH32(esp, eax); /* 0x3614241C: push eax */ 5034 PUSH32(esp, ecx); /* 0x3614241D: push ecx */ 5035 ecx = esi; /* 0x3614241E: mov ecx, esi */ 5036 RECOMP_ICALL(0x36143330u); /* 0x36142420: call 0x36143330 */ /* not lifted */ 5037 RECOMP_FLAGS_IN(); 5038 /* cmp eax, 2 */ /* 0x36142425: cmp eax, 2 */ 5039 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5041 _flag_k = FK_CMP; 5042 if (CMP_NE(_flag_a, _flag_b)) goto L_36142670; /* 0x36142428: jne 0x36142670 */ 5043 L_3614242E: 5044 edx = ebp + (-0x10); /* 0x3614242E: lea edx, [ebp - 0x10] */ 5045 PUSH32(esp, edx); /* 0x36142431: push edx */ 5046 PUSH32(esp, edi); /* 0x36142432: push edi */ 5047 ecx = esi; /* 0x36142433: mov ecx, esi */ 5048 RECOMP_ICALL(0x36142A60u); /* 0x36142435: call 0x36142a60 */ /* not lifted */ 5049 RECOMP_FLAGS_IN(); 5050 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617813C)); /* 0x3614243A: fcomp dword ptr [0x3617813c] */ 5051 fp_pop(); 5052 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142440: fnstsw ax */ 5053 /* test HI8(eax), 0x41u */ /* 0x36142442: test ah, 0x41 */ 5054 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5055 _cf = 0; 5056 _flag_k = FK_NARROW(FK_TEST, 24); 5057 if (TEST_NZ(_flag_a, _flag_b)) goto L_36142676; /* 0x36142445: jne 0x36142676 */ 5058 L_3614244B: 5059 goto L_36142724; /* 0x3614244B: jmp 0x36142724 */ 5060 L_36142450: 5061 /* cmp eax, 2 */ /* 0x36142450: cmp eax, 2 */ 5062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5064 _flag_k = FK_CMP; 5065 if (CMP_NE(_flag_a, _flag_b)) goto L_36142639; /* 0x36142453: jne 0x36142639 */ 5066 L_36142459: 5067 edx = MEM32(0x3617032C); /* 0x36142459: mov edx, dword ptr [0x3617032c] */ 5068 fp_push(*(float*)&MEM32(edx)); /* 0x3614245F: fld dword ptr [edx] */ 5069 _st[0] += (double)*(float*)ADDR(esi + 0x174); /* 0x36142461: fadd dword ptr [esi + 0x174] */ 5070 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x174) = _v; } /* 0x36142467: fst dword ptr [esi + 0x174] */ 5071 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170464)); /* 0x3614246D: fcomp dword ptr [0x36170464] */ 5072 fp_pop(); 5073 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142473: fnstsw ax */ 5074 /* test HI8(eax), 1 */ /* 0x36142475: test ah, 1 */ 5075 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5076 _cf = 0; 5077 _flag_k = FK_NARROW(FK_TEST, 24); 5078 if (TEST_NZ(_flag_a, _flag_b)) goto L_36142665; /* 0x36142478: jne 0x36142665 */ 5079 L_3614247E: 5080 MEM32(esi + 0x174) = ebx; /* 0x3614247E: mov dword ptr [esi + 0x174], ebx */ 5081 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36142484: call dword ptr [0x3616f254] */ 5082 RECOMP_FLAGS_IN(); 5083 MEM32(ebp + 0x8) = eax; /* 0x3614248A: mov dword ptr [ebp + 8], eax */ 5084 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x3614248D: fild dword ptr [ebp + 8] */ 5085 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x36142490: fmul dword ptr [0x36170438] */ 5086 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3630D950)); /* 0x36142496: fcomp dword ptr [0x3630d950] */ 5087 fp_pop(); 5088 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614249C: fnstsw ax */ 5089 /* test HI8(eax), 1 */ /* 0x3614249E: test ah, 1 */ 5090 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5091 _cf = 0; 5092 _flag_k = FK_NARROW(FK_TEST, 24); 5093 if (TEST_Z(_flag_a, _flag_b)) goto L_361424C6; /* 0x361424A1: je 0x361424c6 */ 5094 L_361424A3: 5095 PUSH32(esp, ebx); /* 0x361424A3: push ebx */ 5096 PUSH32(esp, 1); /* 0x361424A4: push 1 */ 5097 ecx = esi; /* 0x361424A6: mov ecx, esi */ 5098 RECOMP_ICALL(MEM32(0x36170368)); /* 0x361424A8: call dword ptr [0x36170368] */ 5099 RECOMP_FLAGS_IN(); 5100 ecx = eax; /* 0x361424AE: mov ecx, eax */ 5101 RECOMP_ICALL(0x3613A820u); /* 0x361424B0: call 0x3613a820 */ /* not lifted */ 5102 RECOMP_FLAGS_IN(); 5103 edi = POP32_VAL(esp); /* 0x361424B5: pop edi */ 5104 MEM32(esi + 0x170) = ebx; /* 0x361424B6: mov dword ptr [esi + 0x170], ebx */ 5105 esi = POP32_VAL(esp); /* 0x361424BC: pop esi */ 5106 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5107 eax = 0; /* 0x361424BD: xor eax, eax */ 5108 _cf = 0; 5109 _flag_k = FK_TEST; 5110 ebx = POP32_VAL(esp); /* 0x361424BF: pop ebx */ 5111 esp = ebp; /* 0x361424C0: mov esp, ebp */ 5112 ebp = POP32_VAL(esp); /* 0x361424C2: pop ebp */ 5113 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361424C3: ret 4 */ 5114 L_361424C6: 5115 ecx = MEM32(0x3630D958); /* 0x361424C6: mov ecx, dword ptr [0x3630d958] */ 5116 eax = ebp + (-0x10); /* 0x361424CC: lea eax, [ebp - 0x10] */ 5117 PUSH32(esp, eax); /* 0x361424CF: push eax */ 5118 PUSH32(esp, ecx); /* 0x361424D0: push ecx */ 5119 ecx = esi; /* 0x361424D1: mov ecx, esi */ 5120 RECOMP_ICALL(0x36143330u); /* 0x361424D3: call 0x36143330 */ /* not lifted */ 5121 RECOMP_FLAGS_IN(); 5122 /* cmp eax, 2 */ /* 0x361424D8: cmp eax, 2 */ 5123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5125 _flag_k = FK_CMP; 5126 if (CMP_NE(_flag_a, _flag_b)) goto L_36142507; /* 0x361424DB: jne 0x36142507 */ 5127 L_361424DD: 5128 PUSH32(esp, ebx); /* 0x361424DD: push ebx */ 5129 PUSH32(esp, 1); /* 0x361424DE: push 1 */ 5130 ecx = esi; /* 0x361424E0: mov ecx, esi */ 5131 RECOMP_ICALL(MEM32(0x36170368)); /* 0x361424E2: call dword ptr [0x36170368] */ 5132 RECOMP_FLAGS_IN(); 5133 ecx = eax; /* 0x361424E8: mov ecx, eax */ 5134 RECOMP_ICALL(0x3613A820u); /* 0x361424EA: call 0x3613a820 */ /* not lifted */ 5135 RECOMP_FLAGS_IN(); 5136 edi = POP32_VAL(esp); /* 0x361424EF: pop edi */ 5137 MEM32(esi + 0x170) = ebx; /* 0x361424F0: mov dword ptr [esi + 0x170], ebx */ 5138 MEM8(esi + 0x188) = (uint8_t)(1); /* 0x361424F6: mov byte ptr [esi + 0x188], 1 */ 5139 esi = POP32_VAL(esp); /* 0x361424FD: pop esi */ 5140 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5141 eax = 0; /* 0x361424FE: xor eax, eax */ 5142 _cf = 0; 5143 _flag_k = FK_TEST; 5144 ebx = POP32_VAL(esp); /* 0x36142500: pop ebx */ 5145 esp = ebp; /* 0x36142501: mov esp, ebp */ 5146 ebp = POP32_VAL(esp); /* 0x36142503: pop ebp */ 5147 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36142504: ret 4 */ 5148 L_36142507: 5149 RECOMP_ICALL(0x360D1080u); /* 0x36142507: call 0x360d1080 */ /* not lifted */ 5150 RECOMP_FLAGS_IN(); 5151 /* cmp MEM32(eax + 0x8), ebx */ /* 0x3614250C: cmp dword ptr [eax + 8], ebx */ 5152 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ebx); 5153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5154 _flag_k = FK_CMP; 5155 if (CMP_NE(_flag_a, _flag_b)) goto L_36142665; /* 0x3614250F: jne 0x36142665 */ 5156 L_36142515: 5157 edx = esi + 0x54; /* 0x36142515: lea edx, [esi + 0x54] */ 5158 ecx = edx; /* 0x36142518: mov ecx, edx */ 5159 edi = MEM32(ecx); /* 0x3614251A: mov edi, dword ptr [ecx] */ 5160 MEM32(ebp + (-0x34)) = edi; /* 0x3614251C: mov dword ptr [ebp - 0x34], edi */ 5161 edi = MEM32(ecx + 0x4); /* 0x3614251F: mov edi, dword ptr [ecx + 4] */ 5162 ecx = MEM32(ecx + 0x8); /* 0x36142522: mov ecx, dword ptr [ecx + 8] */ 5163 MEM32(ebp + (-0x30)) = edi; /* 0x36142525: mov dword ptr [ebp - 0x30], edi */ 5164 edi = MEM32(eax + 0x4); /* 0x36142528: mov edi, dword ptr [eax + 4] */ 5165 MEM32(ebp + (-0x2C)) = ecx; /* 0x3614252B: mov dword ptr [ebp - 0x2c], ecx */ 5166 ecx = MEM32(edi); /* 0x3614252E: mov ecx, dword ptr [edi] */ 5167 /* cmp ecx, edi */ /* 0x36142530: cmp ecx, edi */ 5168 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5170 _flag_k = FK_CMP; 5171 if (CMP_EQ(_flag_a, _flag_b)) goto L_36142665; /* 0x36142532: je 0x36142665 */ 5172 L_36142538: 5173 eax = MEM32(ecx + 0x8); /* 0x36142538: mov eax, dword ptr [ecx + 8] */ 5174 ebx = MEM32(eax); /* 0x3614253B: mov ebx, dword ptr [eax] */ 5175 MEM32(ebp + (-0x28)) = ebx; /* 0x3614253D: mov dword ptr [ebp - 0x28], ebx */ 5176 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36142540: fld dword ptr [ebp - 0x28] */ 5177 _st[0] -= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x36142543: fsub dword ptr [ebp - 0x34] */ 5178 ebx = MEM32(eax + 0x4); /* 0x36142546: mov ebx, dword ptr [eax + 4] */ 5179 eax = MEM32(eax + 0x8); /* 0x36142549: mov eax, dword ptr [eax + 8] */ 5180 MEM32(ebp + (-0x24)) = ebx; /* 0x3614254C: mov dword ptr [ebp - 0x24], ebx */ 5181 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3614254F: fld dword ptr [ebp - 0x24] */ 5182 _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36142552: fsub dword ptr [ebp - 0x30] */ 5183 MEM32(ebp + (-0x20)) = eax; /* 0x36142555: mov dword ptr [ebp - 0x20], eax */ 5184 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36142558: fld dword ptr [ebp - 0x20] */ 5185 eax = MEM32(ecx + 0x8); /* 0x3614255B: mov eax, dword ptr [ecx + 8] */ 5186 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x3614255E: fsub dword ptr [ebp - 0x2c] */ 5187 fp_push(*(float*)&MEM32(eax + 0xC)); /* 0x36142561: fld dword ptr [eax + 0xc] */ 5188 fp_push(_st[1]); /* 0x36142564: fld st(1) */ 5189 _st[0] *= _st[2]; /* 0x36142566: fmul st(2) */ 5190 fp_push(_st[3]); /* 0x36142568: fld st(3) */ 5191 _st[0] *= _st[4]; /* 0x3614256A: fmul st(4) */ 5192 { double _v = fp_pop(); _st[0] += _v; } /* 0x3614256C: faddp st(1) */ 5193 fp_push(_st[4]); /* 0x3614256E: fld st(4) */ 5194 _st[0] *= _st[5]; /* 0x36142570: fmul st(5) */ 5195 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142572: faddp st(1) */ 5196 fp_push(_st[1]); /* 0x36142574: fld st(1) */ 5197 _st[0] *= _st[2]; /* 0x36142576: fmul st(2) */ 5198 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x36142578: fcompp */ 5199 fp_pop(); fp_pop(); 5200 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3614257A: fstp st(0) */ 5201 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3614257C: fstp st(0) */ 5202 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614257E: fnstsw ax */ 5203 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142580: fstp st(0) */ 5204 /* test HI8(eax), 0x41u */ /* 0x36142582: test ah, 0x41 */ 5205 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5206 _cf = 0; 5207 _flag_k = FK_NARROW(FK_TEST, 24); 5208 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142585: fstp st(0) */ 5209 if (TEST_Z(_flag_a, _flag_b)) goto L_3614259A; /* 0x36142587: je 0x3614259a */ 5210 L_36142589: 5211 ecx = MEM32(ecx); /* 0x36142589: mov ecx, dword ptr [ecx] */ 5212 /* cmp ecx, edi */ /* 0x3614258B: cmp ecx, edi */ 5213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5215 _flag_k = FK_CMP; 5216 RECOMP_BACKEDGE(); 5217 if (CMP_NE(_flag_a, _flag_b)) goto L_36142538; /* 0x3614258D: jne 0x36142538 */ 5218 L_3614258F: 5219 edi = POP32_VAL(esp); /* 0x3614258F: pop edi */ 5220 esi = POP32_VAL(esp); /* 0x36142590: pop esi */ 5221 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5222 eax = 0; /* 0x36142591: xor eax, eax */ 5223 _cf = 0; 5224 _flag_k = FK_TEST; 5225 ebx = POP32_VAL(esp); /* 0x36142593: pop ebx */ 5226 esp = ebp; /* 0x36142594: mov esp, ebp */ 5227 ebp = POP32_VAL(esp); /* 0x36142596: pop ebp */ 5228 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36142597: ret 4 */ 5229 L_3614259A: 5230 ecx = MEM32(ecx + 0x8); /* 0x3614259A: mov ecx, dword ptr [ecx + 8] */ 5231 fp_push(*(float*)&MEM32(esi + 0x15C)); /* 0x3614259D: fld dword ptr [esi + 0x15c] */ 5232 eax = MEM32(edx); /* 0x361425A3: mov eax, dword ptr [edx] */ 5233 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361425A5: fld dword ptr [ebp - 0x34] */ 5234 _st[0] -= (double)*(float*)ADDR(ecx); /* 0x361425A8: fsub dword ptr [ecx] */ 5235 MEM32(ebp + (-0x1C)) = eax; /* 0x361425AA: mov dword ptr [ebp - 0x1c], eax */ 5236 eax = MEM32(edx + 0x4); /* 0x361425AD: mov eax, dword ptr [edx + 4] */ 5237 edx = MEM32(edx + 0x8); /* 0x361425B0: mov edx, dword ptr [edx + 8] */ 5238 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361425B3: fstp dword ptr [ebp - 0x1c] */ 5239 MEM32(ebp + (-0x18)) = eax; /* 0x361425B6: mov dword ptr [ebp - 0x18], eax */ 5240 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361425B9: fld dword ptr [ebp - 0x18] */ 5241 eax = MEM32(ebp + (-0x1C)); /* 0x361425BC: mov eax, dword ptr [ebp - 0x1c] */ 5242 _st[0] -= (double)*(float*)ADDR(ecx + 0x4); /* 0x361425BF: fsub dword ptr [ecx + 4] */ 5243 MEM32(ebp + (-0x14)) = edx; /* 0x361425C2: mov dword ptr [ebp - 0x14], edx */ 5244 MEM32(ebp + (-0x28)) = eax; /* 0x361425C5: mov dword ptr [ebp - 0x28], eax */ 5245 eax = esi + 0x140; /* 0x361425C8: lea eax, [esi + 0x140] */ 5246 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361425CE: fstp dword ptr [ebp - 0x18] */ 5247 PUSH32(esp, 0); /* 0x361425D1: push 0 */ 5248 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361425D3: fld dword ptr [ebp - 0x14] */ 5249 PUSH32(esp, 1); /* 0x361425D6: push 1 */ 5250 _st[0] -= (double)*(float*)ADDR(ecx + 0x8); /* 0x361425D8: fsub dword ptr [ecx + 8] */ 5251 ecx = MEM32(ebp + (-0x18)); /* 0x361425DB: mov ecx, dword ptr [ebp - 0x18] */ 5252 MEM32(ebp + (-0x24)) = ecx; /* 0x361425DE: mov dword ptr [ebp - 0x24], ecx */ 5253 MEM32(esi + 0x170) = 0; /* 0x361425E1: mov dword ptr [esi + 0x170], 0 */ 5254 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x361425EB: fstp dword ptr [ebp - 0x14] */ 5255 edx = MEM32(ebp + (-0x14)); /* 0x361425EE: mov edx, dword ptr [ebp - 0x14] */ 5256 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x361425F1: fld dword ptr [ebp - 0x1c] */ 5257 MEM32(ebp + (-0x20)) = edx; /* 0x361425F4: mov dword ptr [ebp - 0x20], edx */ 5258 _st[0] *= _st[1]; /* 0x361425F7: fmul st(1) */ 5259 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361425F9: fstp dword ptr [ebp - 0x28] */ 5260 ecx = MEM32(ebp + (-0x28)); /* 0x361425FC: mov ecx, dword ptr [ebp - 0x28] */ 5261 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361425FF: fld dword ptr [ebp - 0x24] */ 5262 MEM32(eax) = ecx; /* 0x36142602: mov dword ptr [eax], ecx */ 5263 _st[0] *= _st[1]; /* 0x36142604: fmul st(1) */ 5264 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36142606: fstp dword ptr [ebp - 0x24] */ 5265 edx = MEM32(ebp + (-0x24)); /* 0x36142609: mov edx, dword ptr [ebp - 0x24] */ 5266 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3614260C: fld dword ptr [ebp - 0x20] */ 5267 MEM32(eax + 0x4) = edx; /* 0x3614260F: mov dword ptr [eax + 4], edx */ 5268 _st[0] *= _st[1]; /* 0x36142612: fmul st(1) */ 5269 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36142614: fstp dword ptr [ebp - 0x20] */ 5270 ecx = MEM32(ebp + (-0x20)); /* 0x36142617: mov ecx, dword ptr [ebp - 0x20] */ 5271 MEM32(eax + 0x8) = ecx; /* 0x3614261A: mov dword ptr [eax + 8], ecx */ 5272 ecx = esi; /* 0x3614261D: mov ecx, esi */ 5273 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3614261F: fstp st(0) */ 5274 RECOMP_ICALL(MEM32(0x36170368)); /* 0x36142621: call dword ptr [0x36170368] */ 5275 RECOMP_FLAGS_IN(); 5276 ecx = eax; /* 0x36142627: mov ecx, eax */ 5277 RECOMP_ICALL(0x3613A820u); /* 0x36142629: call 0x3613a820 */ /* not lifted */ 5278 RECOMP_FLAGS_IN(); 5279 edi = POP32_VAL(esp); /* 0x3614262E: pop edi */ 5280 esi = POP32_VAL(esp); /* 0x3614262F: pop esi */ 5281 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5282 eax = 0; /* 0x36142630: xor eax, eax */ 5283 _cf = 0; 5284 _flag_k = FK_TEST; 5285 ebx = POP32_VAL(esp); /* 0x36142632: pop ebx */ 5286 esp = ebp; /* 0x36142633: mov esp, ebp */ 5287 ebp = POP32_VAL(esp); /* 0x36142635: pop ebp */ 5288 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36142636: ret 4 */ 5289 L_36142639: 5290 /* cmp eax, 1 */ /* 0x36142639: cmp eax, 1 */ 5291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5293 _flag_k = FK_CMP; 5294 RECOMP_BACKEDGE(); 5295 if (CMP_NE(_flag_a, _flag_b)) goto L_36142379; /* 0x3614263C: jne 0x36142379 */ 5296 L_36142642: 5297 ecx = esi; /* 0x36142642: mov ecx, esi */ 5298 RECOMP_ICALL(MEM32(0x36170368)); /* 0x36142644: call dword ptr [0x36170368] */ 5299 RECOMP_FLAGS_IN(); 5300 /* cmp MEM32(eax + 0x28), ebx */ /* 0x3614264A: cmp dword ptr [eax + 0x28], ebx */ 5301 _flag_a = (uint32_t)(MEM32(eax + 0x28)); _flag_b = (uint32_t)(ebx); 5302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5303 _flag_k = FK_CMP; 5304 RECOMP_BACKEDGE(); 5305 if (CMP_NE(_flag_a, _flag_b)) goto L_36142379; /* 0x3614264D: jne 0x36142379 */ 5306 L_36142653: 5307 ecx = esi; /* 0x36142653: mov ecx, esi */ 5308 MEM32(esi + 0x170) = 2; /* 0x36142655: mov dword ptr [esi + 0x170], 2 */ 5309 RECOMP_ICALL(MEM32(0x36170344)); /* 0x3614265F: call dword ptr [0x36170344] */ 5310 RECOMP_FLAGS_IN(); 5311 L_36142665: 5312 edi = POP32_VAL(esp); /* 0x36142665: pop edi */ 5313 esi = POP32_VAL(esp); /* 0x36142666: pop esi */ 5314 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5315 eax = 0; /* 0x36142667: xor eax, eax */ 5316 _cf = 0; 5317 _flag_k = FK_TEST; 5318 ebx = POP32_VAL(esp); /* 0x36142669: pop ebx */ 5319 esp = ebp; /* 0x3614266A: mov esp, ebp */ 5320 ebp = POP32_VAL(esp); /* 0x3614266C: pop ebp */ 5321 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614266D: ret 4 */ 5322 L_36142670: 5323 MEM8(esi + 0x188) = (uint8_t)(LO8(ebx)); /* 0x36142670: mov byte ptr [esi + 0x188], bl */ 5324 L_36142676: 5325 eax = MEM32(esi + 0x158); /* 0x36142676: mov eax, dword ptr [esi + 0x158] */ 5326 /* cmp eax, ebx */ /* 0x3614267C: cmp eax, ebx */ 5327 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5329 _flag_k = FK_CMP; 5330 if (CMP_EQ(_flag_a, _flag_b)) goto L_361426F7; /* 0x3614267E: je 0x361426f7 */ 5331 L_36142680: 5332 ecx = ebp + (-0x10); /* 0x36142680: lea ecx, [ebp - 0x10] */ 5333 PUSH32(esp, ecx); /* 0x36142683: push ecx */ 5334 PUSH32(esp, eax); /* 0x36142684: push eax */ 5335 ecx = esi; /* 0x36142685: mov ecx, esi */ 5336 RECOMP_ICALL(0x361434B0u); /* 0x36142687: call 0x361434b0 */ /* not lifted */ 5337 RECOMP_FLAGS_IN(); 5338 /* cmp eax, 2 */ /* 0x3614268C: cmp eax, 2 */ 5339 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5341 _flag_k = FK_CMP; 5342 if (CMP_NE(_flag_a, _flag_b)) goto L_361426F7; /* 0x3614268F: jne 0x361426f7 */ 5343 L_36142691: 5344 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36142691: fld dword ptr [ebp - 0x10] */ 5345 edx = MEM32(ebp + (-0x10)); /* 0x36142694: mov edx, dword ptr [ebp - 0x10] */ 5346 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36142697: fmul dword ptr [0x36170464] */ 5347 eax = MEM32(ebp + (-0xC)); /* 0x3614269D: mov eax, dword ptr [ebp - 0xc] */ 5348 ecx = MEM32(ebp + (-0x8)); /* 0x361426A0: mov ecx, dword ptr [ebp - 8] */ 5349 MEM32(ebp + (-0x28)) = edx; /* 0x361426A3: mov dword ptr [ebp - 0x28], edx */ 5350 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361426A6: fstp dword ptr [ebp - 0x28] */ 5351 MEM32(ebp + (-0x24)) = eax; /* 0x361426A9: mov dword ptr [ebp - 0x24], eax */ 5352 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361426AC: fld dword ptr [ebp - 0x24] */ 5353 eax = MEM32(ebp + (-0x28)); /* 0x361426AF: mov eax, dword ptr [ebp - 0x28] */ 5354 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x361426B2: fmul dword ptr [0x36170464] */ 5355 MEM32(ebp + (-0x20)) = ecx; /* 0x361426B8: mov dword ptr [ebp - 0x20], ecx */ 5356 edx = esi + 0x140; /* 0x361426BB: lea edx, [esi + 0x140] */ 5357 MEM32(edx) = eax; /* 0x361426C1: mov dword ptr [edx], eax */ 5358 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361426C3: fstp dword ptr [ebp - 0x24] */ 5359 ecx = MEM32(ebp + (-0x24)); /* 0x361426C6: mov ecx, dword ptr [ebp - 0x24] */ 5360 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361426C9: fld dword ptr [ebp - 0x20] */ 5361 MEM32(edx + 0x4) = ecx; /* 0x361426CC: mov dword ptr [edx + 4], ecx */ 5362 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x361426CF: fmul dword ptr [0x36170464] */ 5363 ecx = ebp + (-0x10); /* 0x361426D5: lea ecx, [ebp - 0x10] */ 5364 PUSH32(esp, ecx); /* 0x361426D8: push ecx */ 5365 PUSH32(esp, edi); /* 0x361426D9: push edi */ 5366 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361426DA: fstp dword ptr [ebp - 0x20] */ 5367 eax = MEM32(ebp + (-0x20)); /* 0x361426DD: mov eax, dword ptr [ebp - 0x20] */ 5368 ecx = esi; /* 0x361426E0: mov ecx, esi */ 5369 MEM32(edx + 0x8) = eax; /* 0x361426E2: mov dword ptr [edx + 8], eax */ 5370 RECOMP_ICALL(0x36142A60u); /* 0x361426E5: call 0x36142a60 */ /* not lifted */ 5371 RECOMP_FLAGS_IN(); 5372 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617813C)); /* 0x361426EA: fcomp dword ptr [0x3617813c] */ 5373 fp_pop(); 5374 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361426F0: fnstsw ax */ 5375 /* test HI8(eax), 0x41u */ /* 0x361426F2: test ah, 0x41 */ 5376 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5377 _cf = 0; 5378 _flag_k = FK_NARROW(FK_TEST, 24); 5379 if (TEST_Z(_flag_a, _flag_b)) goto L_36142724; /* 0x361426F5: je 0x36142724 */ 5380 L_361426F7: 5381 eax = MEM32(0x3630D94C); /* 0x361426F7: mov eax, dword ptr [0x3630d94c] */ 5382 ecx = MEM32(0x3630D948); /* 0x361426FC: mov ecx, dword ptr [0x3630d948] */ 5383 edx = ebp + (-0x10); /* 0x36142702: lea edx, [ebp - 0x10] */ 5384 PUSH32(esp, edx); /* 0x36142705: push edx */ 5385 edx = MEM32(0x3630D944); /* 0x36142706: mov edx, dword ptr [0x3630d944] */ 5386 PUSH32(esp, eax); /* 0x3614270C: push eax */ 5387 PUSH32(esp, ecx); /* 0x3614270D: push ecx */ 5388 PUSH32(esp, edx); /* 0x3614270E: push edx */ 5389 ecx = esi; /* 0x3614270F: mov ecx, esi */ 5390 RECOMP_ICALL(0x36142F00u); /* 0x36142711: call 0x36142f00 */ /* not lifted */ 5391 RECOMP_FLAGS_IN(); 5392 eax = ebp + (-0x10); /* 0x36142716: lea eax, [ebp - 0x10] */ 5393 PUSH32(esp, eax); /* 0x36142719: push eax */ 5394 PUSH32(esp, edi); /* 0x3614271A: push edi */ 5395 ecx = esi; /* 0x3614271B: mov ecx, esi */ 5396 RECOMP_ICALL(0x36142A60u); /* 0x3614271D: call 0x36142a60 */ /* not lifted */ 5397 RECOMP_FLAGS_IN(); 5398 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142722: fstp st(0) */ 5399 L_36142724: 5400 fp_push(*(float*)&MEM32(esi + 0x15C)); /* 0x36142724: fld dword ptr [esi + 0x15c] */ 5401 eax = 2; /* 0x3614272A: mov eax, 2 */ 5402 fp_push(_st[0]); /* 0x3614272F: fld st(0) */ 5403 _st[0] *= (double)*(float*)ADDR(edi); /* 0x36142731: fmul dword ptr [edi] */ 5404 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36142733: fstp dword ptr [edi] */ 5405 fp_push(_st[0]); /* 0x36142735: fld st(0) */ 5406 _st[0] *= (double)*(float*)ADDR(edi + 0x4); /* 0x36142737: fmul dword ptr [edi + 4] */ 5407 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x3614273A: fstp dword ptr [edi + 4] */ 5408 _st[0] *= (double)*(float*)ADDR(edi + 0x8); /* 0x3614273D: fmul dword ptr [edi + 8] */ 5409 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x8) = _v; } /* 0x36142740: fstp dword ptr [edi + 8] */ 5410 edi = POP32_VAL(esp); /* 0x36142743: pop edi */ 5411 esi = POP32_VAL(esp); /* 0x36142744: pop esi */ 5412 ebx = POP32_VAL(esp); /* 0x36142745: pop ebx */ 5413 esp = ebp; /* 0x36142746: mov esp, ebp */ 5414 ebp = POP32_VAL(esp); /* 0x36142748: pop ebp */ 5415 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36142749: ret 4 */ 5416 RECOMP_REGS_OUT(); 5417 } 5418 5419 void sub_36142724(void) { 5420 int _fpu_cmp = 0; 5421 uint32_t _cf = 0; 5422 int _df = 1; 5423 uint32_t _flag_k = FK_NONE; 5424 uint32_t _flag_a = 0, _flag_b = 0; 5425 uint32_t _itail_tgt = 0; 5426 RECOMP_REGS_LOCALS 5427 RECOMP_ENTER(0x36142724u); 5428 5429 L_36142724: 5430 fp_push(*(float*)&MEM32(esi + 0x15C)); /* 0x36142724: fld dword ptr [esi + 0x15c] */ 5431 eax = 2; /* 0x3614272A: mov eax, 2 */ 5432 fp_push(_st[0]); /* 0x3614272F: fld st(0) */ 5433 _st[0] *= (double)*(float*)ADDR(edi); /* 0x36142731: fmul dword ptr [edi] */ 5434 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36142733: fstp dword ptr [edi] */ 5435 fp_push(_st[0]); /* 0x36142735: fld st(0) */ 5436 _st[0] *= (double)*(float*)ADDR(edi + 0x4); /* 0x36142737: fmul dword ptr [edi + 4] */ 5437 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x3614273A: fstp dword ptr [edi + 4] */ 5438 _st[0] *= (double)*(float*)ADDR(edi + 0x8); /* 0x3614273D: fmul dword ptr [edi + 8] */ 5439 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x8) = _v; } /* 0x36142740: fstp dword ptr [edi + 8] */ 5440 edi = POP32_VAL(esp); /* 0x36142743: pop edi */ 5441 esi = POP32_VAL(esp); /* 0x36142744: pop esi */ 5442 ebx = POP32_VAL(esp); /* 0x36142745: pop ebx */ 5443 esp = ebp; /* 0x36142746: mov esp, ebp */ 5444 ebp = POP32_VAL(esp); /* 0x36142748: pop ebp */ 5445 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36142749: ret 4 */ 5446 RECOMP_REGS_OUT(); 5447 } 5448 5449 void sub_36142750(void) { 5450 int _fpu_cmp = 0; 5451 uint32_t _cf = 0; 5452 int _df = 1; 5453 uint32_t _flag_k = FK_NONE; 5454 uint32_t _flag_a = 0, _flag_b = 0; 5455 uint32_t _itail_tgt = 0; 5456 RECOMP_REGS_LOCALS 5457 RECOMP_ENTER(0x36142750u); 5458 5459 L_36142750: 5460 MEM32(0x3630D934) = 0x40133333u; /* 0x36142750: mov dword ptr [0x3630d934], 0x40133333 */ 5461 MEM32(0x3630D938) = 0x41A00000u; /* 0x3614275A: mov dword ptr [0x3630d938], 0x41a00000 */ 5462 MEM32(0x3630D93C) = 0x3F800000u; /* 0x36142764: mov dword ptr [0x3630d93c], 0x3f800000 */ 5463 MEM32(0x3630D940) = 0x3F000000u; /* 0x3614276E: mov dword ptr [0x3630d940], 0x3f000000 */ 5464 MEM32(0x3630D944) = 0x41000000u; /* 0x36142778: mov dword ptr [0x3630d944], 0x41000000 */ 5465 MEM32(0x3630D948) = 0x3F800000u; /* 0x36142782: mov dword ptr [0x3630d948], 0x3f800000 */ 5466 MEM32(0x3630D94C) = 0x3FC00000u; /* 0x3614278C: mov dword ptr [0x3630d94c], 0x3fc00000 */ 5467 MEM32(0x3630D950) = 0x3DA3D70Au; /* 0x36142796: mov dword ptr [0x3630d950], 0x3da3d70a */ 5468 MEM32(0x3630D954) = 0x3E3851ECu; /* 0x361427A0: mov dword ptr [0x3630d954], 0x3e3851ec */ 5469 MEM32(0x3630D958) = 0x40A00000u; /* 0x361427AA: mov dword ptr [0x3630d958], 0x40a00000 */ 5470 MEM8(0x3630D95C) = (uint8_t)(1); /* 0x361427B4: mov byte ptr [0x3630d95c], 1 */ 5471 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361427BB: ret */ 5472 RECOMP_REGS_OUT(); 5473 } 5474 5475 void sub_361427C0(void) { 5476 int _fpu_cmp = 0; 5477 uint32_t _cf = 0; 5478 int _df = 1; 5479 uint32_t _flag_k = FK_NONE; 5480 uint32_t _flag_a = 0, _flag_b = 0; 5481 uint32_t _itail_tgt = 0; 5482 RECOMP_REGS_LOCALS 5483 RECOMP_ENTER(0x361427C0u); 5484 5485 L_361427C0: 5486 PUSH32(esp, ebp); /* 0x361427C0: push ebp */ 5487 ebp = esp; /* 0x361427C1: mov ebp, esp */ 5488 PUSH32(esp, edi); /* 0x361427C3: push edi */ 5489 edi = ecx; /* 0x361427C4: mov edi, ecx */ 5490 ecx = MEM32(ebp + 0x8); /* 0x361427C6: mov ecx, dword ptr [ebp + 8] */ 5491 eax = MEM32(ecx + 0x3C); /* 0x361427C9: mov eax, dword ptr [ecx + 0x3c] */ 5492 edx = MEM32(eax + 0x8); /* 0x361427CC: mov edx, dword ptr [eax + 8] */ 5493 /* cmp edx, MEM32(edi + 0x16C) */ /* 0x361427CF: cmp edx, dword ptr [edi + 0x16c] */ 5494 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(edi + 0x16C)); 5495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5496 _flag_k = FK_CMP; 5497 if (CMP_NE(_flag_a, _flag_b)) goto L_3614284C; /* 0x361427D5: jne 0x3614284c */ 5498 L_361427D7: 5499 SET_LO8(eax, MEM8(edi + 0x164)); /* 0x361427D7: mov al, byte ptr [edi + 0x164] */ 5500 /* test LO8(eax), LO8(eax) */ /* 0x361427DD: test al, al */ 5501 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5502 _cf = 0; 5503 _flag_k = FK_NARROW(FK_TEST, 24); 5504 if (TEST_Z(_flag_a, _flag_b)) goto L_361427E7; /* 0x361427DF: je 0x361427e7 */ 5505 L_361427E1: 5506 RECOMP_ICALL(MEM32(0x3616F5AC)); /* 0x361427E1: call dword ptr [0x3616f5ac] */ 5507 RECOMP_FLAGS_IN(); 5508 L_361427E7: 5509 PUSH32(esp, ebx); /* 0x361427E7: push ebx */ 5510 ebx = MEM32(0x36170368); /* 0x361427E8: mov ebx, dword ptr [0x36170368] */ 5511 PUSH32(esp, esi); /* 0x361427EE: push esi */ 5512 ecx = edi; /* 0x361427EF: mov ecx, edi */ 5513 RECOMP_ICALL(ebx); /* 0x361427F1: call ebx */ 5514 RECOMP_FLAGS_IN(); 5515 esi = eax; /* 0x361427F3: mov esi, eax */ 5516 ecx = MEM32(esi + 0x18); /* 0x361427F5: mov ecx, dword ptr [esi + 0x18] */ 5517 /* test ecx, ecx */ /* 0x361427F8: test ecx, ecx */ 5518 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5519 _cf = 0; 5520 _flag_k = FK_TEST; 5521 if (TEST_Z(_flag_a, _flag_b)) goto L_36142802; /* 0x361427FA: je 0x36142802 */ 5522 L_361427FC: 5523 eax = MEM32(ecx); /* 0x361427FC: mov eax, dword ptr [ecx] */ 5524 PUSH32(esp, 1); /* 0x361427FE: push 1 */ 5525 RECOMP_ICALL(MEM32(eax)); /* 0x36142800: call dword ptr [eax] */ 5526 RECOMP_FLAGS_IN(); 5527 L_36142802: 5528 ecx = MEM32(ebp + 0x8); /* 0x36142802: mov ecx, dword ptr [ebp + 8] */ 5529 MEM32(esi + 0x18) = ecx; /* 0x36142805: mov dword ptr [esi + 0x18], ecx */ 5530 ecx = edi; /* 0x36142808: mov ecx, edi */ 5531 RECOMP_ICALL(ebx); /* 0x3614280A: call ebx */ 5532 RECOMP_FLAGS_IN(); 5533 ecx = eax; /* 0x3614280C: mov ecx, eax */ 5534 edx = MEM32(ecx + 0x18); /* 0x3614280E: mov edx, dword ptr [ecx + 0x18] */ 5535 fp_push(*(float*)&MEM32(edx + 0x24)); /* 0x36142811: fld dword ptr [edx + 0x24] */ 5536 esi = POP32_VAL(esp); /* 0x36142814: pop esi */ 5537 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142815: fcomp dword ptr [0x3617040c] */ 5538 fp_pop(); 5539 ebx = POP32_VAL(esp); /* 0x3614281B: pop ebx */ 5540 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614281C: fnstsw ax */ 5541 /* test HI8(eax), 0x40u */ /* 0x3614281E: test ah, 0x40 */ 5542 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 5543 _cf = 0; 5544 _flag_k = FK_NARROW(FK_TEST, 24); 5545 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614282A; /* 0x36142821: jne 0x3614282a */ 5546 L_36142823: 5547 eax = 1; /* 0x36142823: mov eax, 1 */ 5548 goto L_3614282C; /* 0x36142828: jmp 0x3614282c */ 5549 L_3614282A: 5550 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5551 eax = 0; /* 0x3614282A: xor eax, eax */ 5552 _cf = 0; 5553 _flag_k = FK_TEST; 5554 L_3614282C: 5555 /* test LO8(eax), LO8(eax) */ /* 0x3614282C: test al, al */ 5556 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5557 _cf = 0; 5558 _flag_k = FK_NARROW(FK_TEST, 24); 5559 MEM8(ecx + 0x1C) = (uint8_t)(LO8(eax)); /* 0x3614282E: mov byte ptr [ecx + 0x1c], al */ 5560 if (TEST_Z(_flag_a, _flag_b)) goto L_3614283E; /* 0x36142831: je 0x3614283e */ 5561 L_36142833: 5562 eax = MEM32(ecx + 0x2C); /* 0x36142833: mov eax, dword ptr [ecx + 0x2c] */ 5563 PUSH32(esp, 0); /* 0x36142836: push 0 */ 5564 PUSH32(esp, eax); /* 0x36142838: push eax */ 5565 RECOMP_ICALL(0x3613A820u); /* 0x36142839: call 0x3613a820 */ /* not lifted */ 5566 RECOMP_FLAGS_IN(); 5567 L_3614283E: 5568 MEM8(edi + 0x166) = (uint8_t)(1); /* 0x3614283E: mov byte ptr [edi + 0x166], 1 */ 5569 SET_LO8(eax, 1); /* 0x36142845: mov al, 1 */ 5570 edi = POP32_VAL(esp); /* 0x36142847: pop edi */ 5571 ebp = POP32_VAL(esp); /* 0x36142848: pop ebp */ 5572 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36142849: ret 4 */ 5573 L_3614284C: 5574 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 5575 SET_LO8(eax, 0); /* 0x3614284C: xor al, al */ 5576 _cf = 0; 5577 _flag_k = FK_NARROW(FK_TEST, 24); 5578 edi = POP32_VAL(esp); /* 0x3614284E: pop edi */ 5579 ebp = POP32_VAL(esp); /* 0x3614284F: pop ebp */ 5580 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36142850: ret 4 */ 5581 RECOMP_REGS_OUT(); 5582 } 5583 5584 void sub_36142860(void) { 5585 int _fpu_cmp = 0; 5586 uint32_t _cf = 0; 5587 int _df = 1; 5588 uint32_t _flag_k = FK_NONE; 5589 uint32_t _flag_a = 0, _flag_b = 0; 5590 uint32_t _itail_tgt = 0; 5591 RECOMP_REGS_LOCALS 5592 RECOMP_ENTER(0x36142860u); 5593 5594 L_36142860: 5595 PUSH32(esp, ebp); /* 0x36142860: push ebp */ 5596 L_36142861: 5597 ebp = esp; /* 0x36142861: mov ebp, esp */ 5598 L_36142863: 5599 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5600 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5601 esp = esp - 0x18u; /* 0x36142863: sub esp, 0x18 */ 5602 _flag_k = FK_CMP; 5603 L_36142866: 5604 SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x36142866: mov al, byte ptr [ebp + 0x10] */ 5605 L_36142869: 5606 /* test LO8(eax), LO8(eax) */ /* 0x36142869: test al, al */ 5607 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5608 _cf = 0; 5609 _flag_k = FK_NARROW(FK_TEST, 24); 5610 L_3614286B: 5611 PUSH32(esp, ebx); /* 0x3614286B: push ebx */ 5612 L_3614286C: 5613 ebx = MEM32(0x36170368); /* 0x3614286C: mov ebx, dword ptr [0x36170368] */ 5614 L_36142872: 5615 PUSH32(esp, esi); /* 0x36142872: push esi */ 5616 L_36142873: 5617 PUSH32(esp, edi); /* 0x36142873: push edi */ 5618 L_36142874: 5619 esi = ecx; /* 0x36142874: mov esi, ecx */ 5620 L_36142876: 5621 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3614290E; /* 0x36142876: je 0x3614290e */ 5622 L_3614287C: 5623 edx = MEM32(esi); /* 0x3614287C: mov edx, dword ptr [esi] */ 5624 L_3614287E: 5625 eax = esi + 0x54; /* 0x3614287E: lea eax, [esi + 0x54] */ 5626 L_36142881: 5627 PUSH32(esp, eax); /* 0x36142881: push eax */ 5628 L_36142882: 5629 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x36142882: call dword ptr [edx + 0x7c] */ 5630 RECOMP_FLAGS_IN(); 5631 L_36142885: 5632 ecx = eax; /* 0x36142885: mov ecx, eax */ 5633 L_36142887: 5634 RECOMP_ICALL(MEM32(0x3616FD98)); /* 0x36142887: call dword ptr [0x3616fd98] */ 5635 RECOMP_FLAGS_IN(); 5636 L_3614288D: 5637 edi = eax; /* 0x3614288D: mov edi, eax */ 5638 L_3614288F: 5639 eax = MEM32(esi); /* 0x3614288F: mov eax, dword ptr [esi] */ 5640 L_36142891: 5641 ecx = esi; /* 0x36142891: mov ecx, esi */ 5642 L_36142893: 5643 RECOMP_ICALL(MEM32(eax + 0x90)); /* 0x36142893: call dword ptr [eax + 0x90] */ 5644 RECOMP_FLAGS_IN(); 5645 L_36142899: 5646 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5647 _cf = (LO8(eax)) != 0; 5648 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36142899: neg al */ 5649 _flag_k = FK_NARROW(FK_CMP, 24); 5650 L_3614289B: 5651 MEM8(esi + 0x165) = (uint8_t)(0); /* 0x3614289B: mov byte ptr [esi + 0x165], 0 */ 5652 L_361428A2: 5653 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361428A2: sbb eax, eax */ 5654 eax = _sc ? 0xFFFFFFFFu : 0; 5655 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5656 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5657 L_361428A4: 5658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 5659 eax = eax & 0x10u; /* 0x361428A4: and eax, 0x10 */ 5660 _cf = 0; 5661 _flag_k = FK_TEST; 5662 L_361428A7: 5663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(9); 5664 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5665 eax = eax + 9; /* 0x361428A7: add eax, 9 */ 5666 _flag_k = FK_ADD; 5667 L_361428AA: 5668 ecx = eax; /* 0x361428AA: mov ecx, eax */ 5669 L_361428AC: 5670 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5671 eax = 0; /* 0x361428AC: xor eax, eax */ 5672 _cf = 0; 5673 _flag_k = FK_TEST; 5674 L_361428AE: 5675 /* test ecx, ecx */ /* 0x361428AE: test ecx, ecx */ 5676 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5677 _cf = 0; 5678 _flag_k = FK_TEST; 5679 L_361428B0: 5680 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_LE, _cf)) goto L_361428CA; /* 0x361428B0: jle 0x361428ca */ 5681 L_361428B2: 5682 edx = MEM32(ebp + 0xC); /* 0x361428B2: mov edx, dword ptr [ebp + 0xc] */ 5683 L_361428B5: 5684 /* cmp MEM32(edx), edi */ /* 0x361428B5: cmp dword ptr [edx], edi */ 5685 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(edi); 5686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5687 _flag_k = FK_CMP; 5688 L_361428B7: 5689 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361428C3; /* 0x361428B7: je 0x361428c3 */ 5690 L_361428B9: 5691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5692 eax = eax + 1; /* 0x361428B9: inc eax */ 5693 _flag_k = FK_INC; 5694 L_361428BA: 5695 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 5696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5697 edx = edx + 4; /* 0x361428BA: add edx, 4 */ 5698 _flag_k = FK_ADD; 5699 L_361428BD: 5700 /* cmp eax, ecx */ /* 0x361428BD: cmp eax, ecx */ 5701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5703 _flag_k = FK_CMP; 5704 L_361428BF: 5705 RECOMP_BACKEDGE(); 5706 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_361428B5; /* 0x361428BF: jl 0x361428b5 */ 5707 L_361428C1: 5708 goto L_361428CA; /* 0x361428C1: jmp 0x361428ca */ 5709 L_361428C3: 5710 MEM8(esi + 0x165) = (uint8_t)(1); /* 0x361428C3: mov byte ptr [esi + 0x165], 1 */ 5711 L_361428CA: 5712 SET_LO8(eax, MEM8(esi + 0x164)); /* 0x361428CA: mov al, byte ptr [esi + 0x164] */ 5713 L_361428D0: 5714 /* test LO8(eax), LO8(eax) */ /* 0x361428D0: test al, al */ 5715 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5716 _cf = 0; 5717 _flag_k = FK_NARROW(FK_TEST, 24); 5718 L_361428D2: 5719 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361428F6; /* 0x361428D2: je 0x361428f6 */ 5720 L_361428D4: 5721 SET_LO8(eax, MEM8(esi + 0x165)); /* 0x361428D4: mov al, byte ptr [esi + 0x165] */ 5722 L_361428DA: 5723 /* test LO8(eax), LO8(eax) */ /* 0x361428DA: test al, al */ 5724 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5725 _cf = 0; 5726 _flag_k = FK_NARROW(FK_TEST, 24); 5727 L_361428DC: 5728 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3614291C; /* 0x361428DC: jne 0x3614291c */ 5729 L_361428DE: 5730 ecx = esi; /* 0x361428DE: mov ecx, esi */ 5731 L_361428E0: 5732 MEM8(esi + 0x164) = (uint8_t)(0); /* 0x361428E0: mov byte ptr [esi + 0x164], 0 */ 5733 L_361428E7: 5734 RECOMP_ICALL(ebx); /* 0x361428E7: call ebx */ 5735 RECOMP_FLAGS_IN(); 5736 L_361428E9: 5737 ecx = MEM32(eax + 0x18); /* 0x361428E9: mov ecx, dword ptr [eax + 0x18] */ 5738 L_361428EC: 5739 /* test ecx, ecx */ /* 0x361428EC: test ecx, ecx */ 5740 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5741 _cf = 0; 5742 _flag_k = FK_TEST; 5743 L_361428EE: 5744 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361428F6; /* 0x361428EE: je 0x361428f6 */ 5745 L_361428F0: 5746 RECOMP_ICALL(MEM32(0x3616F644)); /* 0x361428F0: call dword ptr [0x3616f644] */ 5747 RECOMP_FLAGS_IN(); 5748 L_361428F6: 5749 SET_LO8(eax, MEM8(esi + 0x165)); /* 0x361428F6: mov al, byte ptr [esi + 0x165] */ 5750 L_361428FC: 5751 /* test LO8(eax), LO8(eax) */ /* 0x361428FC: test al, al */ 5752 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5753 _cf = 0; 5754 _flag_k = FK_NARROW(FK_TEST, 24); 5755 L_361428FE: 5756 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3614291C; /* 0x361428FE: jne 0x3614291c */ 5757 L_36142900: 5758 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5759 eax = 0; /* 0x36142900: xor eax, eax */ 5760 _cf = 0; 5761 _flag_k = FK_TEST; 5762 L_36142902: 5763 MEM32(esi + 0x130) = eax; /* 0x36142902: mov dword ptr [esi + 0x130], eax */ 5764 L_36142908: 5765 MEM32(esi + 0x134) = eax; /* 0x36142908: mov dword ptr [esi + 0x134], eax */ 5766 L_3614290E: 5767 SET_LO8(eax, MEM8(esi + 0x165)); /* 0x3614290E: mov al, byte ptr [esi + 0x165] */ 5768 L_36142914: 5769 /* test LO8(eax), LO8(eax) */ /* 0x36142914: test al, al */ 5770 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5771 _cf = 0; 5772 _flag_k = FK_NARROW(FK_TEST, 24); 5773 L_36142916: 5774 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36142A34; /* 0x36142916: je 0x36142a34 */ 5775 L_3614291C: 5776 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x3614291C: mov al, byte ptr [ebp + 0x14] */ 5777 L_3614291F: 5778 /* test LO8(eax), LO8(eax) */ /* 0x3614291F: test al, al */ 5779 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5780 _cf = 0; 5781 _flag_k = FK_NARROW(FK_TEST, 24); 5782 L_36142921: 5783 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36142A06; /* 0x36142921: je 0x36142a06 */ 5784 L_36142927: 5785 edx = MEM32(esi); /* 0x36142927: mov edx, dword ptr [esi] */ 5786 L_36142929: 5787 ecx = esi; /* 0x36142929: mov ecx, esi */ 5788 L_3614292B: 5789 RECOMP_ICALL(MEM32(edx + 0x90)); /* 0x3614292B: call dword ptr [edx + 0x90] */ 5790 RECOMP_FLAGS_IN(); 5791 L_36142931: 5792 /* test LO8(eax), LO8(eax) */ /* 0x36142931: test al, al */ 5793 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5794 _cf = 0; 5795 _flag_k = FK_NARROW(FK_TEST, 24); 5796 L_36142933: 5797 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3614293D; /* 0x36142933: je 0x3614293d */ 5798 L_36142935: 5799 fp_push(*(float*)&MEM32(0x362E6C5C)); /* 0x36142935: fld dword ptr [0x362e6c5c] */ 5800 L_3614293B: 5801 goto L_36142943; /* 0x3614293B: jmp 0x36142943 */ 5802 L_3614293D: 5803 fp_push(*(float*)&MEM32(0x362E6C60)); /* 0x3614293D: fld dword ptr [0x362e6c60] */ 5804 L_36142943: 5805 fp_push(*(float*)&MEM32(esi + 0x54)); /* 0x36142943: fld dword ptr [esi + 0x54] */ 5806 L_36142946: 5807 MEM32(ebp + (-0x8)) = 0; /* 0x36142946: mov dword ptr [ebp - 8], 0 */ 5808 L_3614294D: 5809 ecx = MEM32(ebp + (-0x8)); /* 0x3614294D: mov ecx, dword ptr [ebp - 8] */ 5810 L_36142950: 5811 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36142950: fstp dword ptr [ebp - 0xc] */ 5812 L_36142953: 5813 fp_push(*(float*)&MEM32(esi + 0x5C)); /* 0x36142953: fld dword ptr [esi + 0x5c] */ 5814 L_36142956: 5815 eax = MEM32(ebp + (-0xC)); /* 0x36142956: mov eax, dword ptr [ebp - 0xc] */ 5816 L_36142959: 5817 MEM32(ebp + (-0x18)) = eax; /* 0x36142959: mov dword ptr [ebp - 0x18], eax */ 5818 L_3614295C: 5819 eax = MEM32(ebp + 0x18); /* 0x3614295C: mov eax, dword ptr [ebp + 0x18] */ 5820 L_3614295F: 5821 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3614295F: fstp dword ptr [ebp - 4] */ 5822 L_36142962: 5823 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36142962: fld dword ptr [ebp - 0xc] */ 5824 L_36142965: 5825 edx = MEM32(ebp + (-0x4)); /* 0x36142965: mov edx, dword ptr [ebp - 4] */ 5826 L_36142968: 5827 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36142968: fsub dword ptr [eax] */ 5828 L_3614296A: 5829 MEM32(ebp + (-0x14)) = ecx; /* 0x3614296A: mov dword ptr [ebp - 0x14], ecx */ 5830 L_3614296D: 5831 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3614296D: fld dword ptr [ebp - 0x14] */ 5832 L_36142970: 5833 MEM32(ebp + (-0x10)) = edx; /* 0x36142970: mov dword ptr [ebp - 0x10], edx */ 5834 L_36142973: 5835 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x36142973: fsub dword ptr [eax + 4] */ 5836 L_36142976: 5837 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36142976: fld dword ptr [ebp - 0x10] */ 5838 L_36142979: 5839 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x36142979: fsub dword ptr [eax + 8] */ 5840 L_3614297C: 5841 fp_push(_st[0]); /* 0x3614297C: fld st(0) */ 5842 L_3614297E: 5843 _st[0] *= _st[1]; /* 0x3614297E: fmul st(1) */ 5844 L_36142980: 5845 fp_push(_st[2]); /* 0x36142980: fld st(2) */ 5846 L_36142982: 5847 _st[0] *= _st[3]; /* 0x36142982: fmul st(3) */ 5848 L_36142984: 5849 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142984: faddp st(1) */ 5850 L_36142986: 5851 fp_push(_st[3]); /* 0x36142986: fld st(3) */ 5852 L_36142988: 5853 _st[0] *= _st[4]; /* 0x36142988: fmul st(4) */ 5854 L_3614298A: 5855 { double _v = fp_pop(); _st[0] += _v; } /* 0x3614298A: faddp st(1) */ 5856 L_3614298C: 5857 _fpu_cmp = FPU_CMP(_st[0], _st[4]); /* 0x3614298C: fcomp st(4) */ 5858 fp_pop(); 5859 L_3614298E: 5860 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3614298E: fstp st(0) */ 5861 L_36142990: 5862 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142990: fstp st(0) */ 5863 L_36142992: 5864 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142992: fnstsw ax */ 5865 L_36142994: 5866 SET_LO8(eax, MEM8(esi + 0x164)); /* 0x36142994: mov al, byte ptr [esi + 0x164] */ 5867 L_3614299A: 5868 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3614299A: fstp st(0) */ 5869 L_3614299C: 5870 /* test HI8(eax), 1 */ /* 0x3614299C: test ah, 1 */ 5871 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5872 _cf = 0; 5873 _flag_k = FK_NARROW(FK_TEST, 24); 5874 L_3614299F: 5875 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3614299F: fstp st(0) */ 5876 L_361429A1: 5877 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361429EA; /* 0x361429A1: je 0x361429ea */ 5878 L_361429A3: 5879 /* test LO8(eax), LO8(eax) */ /* 0x361429A3: test al, al */ 5880 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5881 _cf = 0; 5882 _flag_k = FK_NARROW(FK_TEST, 24); 5883 L_361429A5: 5884 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36142A06; /* 0x361429A5: jne 0x36142a06 */ 5885 L_361429A7: 5886 ecx = esi; /* 0x361429A7: mov ecx, esi */ 5887 L_361429A9: 5888 MEM8(esi + 0x164) = (uint8_t)(1); /* 0x361429A9: mov byte ptr [esi + 0x164], 1 */ 5889 L_361429B0: 5890 RECOMP_ICALL(ebx); /* 0x361429B0: call ebx */ 5891 RECOMP_FLAGS_IN(); 5892 L_361429B2: 5893 edi = eax; /* 0x361429B2: mov edi, eax */ 5894 L_361429B4: 5895 RECOMP_ICALL(MEM32(0x361700DC)); /* 0x361429B4: call dword ptr [0x361700dc] */ 5896 RECOMP_FLAGS_IN(); 5897 L_361429BA: 5898 /* test eax, eax */ /* 0x361429BA: test eax, eax */ 5899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5900 _cf = 0; 5901 _flag_k = FK_TEST; 5902 L_361429BC: 5903 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361429DB; /* 0x361429BC: je 0x361429db */ 5904 L_361429BE: 5905 eax = MEM32(eax + 0xEC); /* 0x361429BE: mov eax, dword ptr [eax + 0xec] */ 5906 L_361429C4: 5907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFBu); 5908 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5909 eax = eax + 0xFFFFFFFBu; /* 0x361429C4: add eax, -5 */ 5910 _flag_k = FK_ADD; 5911 L_361429C7: 5912 /* cmp eax, 0xBu */ /* 0x361429C7: cmp eax, 0xb */ 5913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 5914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5915 _flag_k = FK_CMP; 5916 L_361429CA: 5917 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_361429DB; /* 0x361429CA: ja 0x361429db */ 5918 L_361429CC: 5919 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5920 ecx = 0; /* 0x361429CC: xor ecx, ecx */ 5921 _cf = 0; 5922 _flag_k = FK_TEST; 5923 L_361429CE: 5924 SET_LO8(ecx, MEM8(eax + 0x36142A48)); /* 0x361429CE: mov cl, byte ptr [eax + 0x36142a48] */ 5925 L_361429D4: 5926 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x36142A40)); goto _ljump; } 5927 L_361429DB: 5928 ecx = MEM32(edi + 0x18); /* 0x361429DB: mov ecx, dword ptr [edi + 0x18] */ 5929 L_361429DE: 5930 /* test ecx, ecx */ /* 0x361429DE: test ecx, ecx */ 5931 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5932 _cf = 0; 5933 _flag_k = FK_TEST; 5934 L_361429E0: 5935 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36142A06; /* 0x361429E0: je 0x36142a06 */ 5936 L_361429E2: 5937 RECOMP_ICALL(MEM32(0x3616F5AC)); /* 0x361429E2: call dword ptr [0x3616f5ac] */ 5938 RECOMP_FLAGS_IN(); 5939 L_361429E8: 5940 goto L_36142A06; /* 0x361429E8: jmp 0x36142a06 */ 5941 L_361429EA: 5942 /* test LO8(eax), LO8(eax) */ /* 0x361429EA: test al, al */ 5943 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5944 _cf = 0; 5945 _flag_k = FK_NARROW(FK_TEST, 24); 5946 L_361429EC: 5947 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36142A06; /* 0x361429EC: je 0x36142a06 */ 5948 L_361429EE: 5949 ecx = esi; /* 0x361429EE: mov ecx, esi */ 5950 L_361429F0: 5951 MEM8(esi + 0x164) = (uint8_t)(0); /* 0x361429F0: mov byte ptr [esi + 0x164], 0 */ 5952 L_361429F7: 5953 RECOMP_ICALL(ebx); /* 0x361429F7: call ebx */ 5954 RECOMP_FLAGS_IN(); 5955 L_361429F9: 5956 ecx = MEM32(eax + 0x18); /* 0x361429F9: mov ecx, dword ptr [eax + 0x18] */ 5957 L_361429FC: 5958 /* test ecx, ecx */ /* 0x361429FC: test ecx, ecx */ 5959 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5960 _cf = 0; 5961 _flag_k = FK_TEST; 5962 L_361429FE: 5963 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36142A06; /* 0x361429FE: je 0x36142a06 */ 5964 L_36142A00: 5965 RECOMP_ICALL(MEM32(0x3616F644)); /* 0x36142A00: call dword ptr [0x3616f644] */ 5966 RECOMP_FLAGS_IN(); 5967 L_36142A06: 5968 SET_LO8(eax, MEM8(esi + 0x164)); /* 0x36142A06: mov al, byte ptr [esi + 0x164] */ 5969 L_36142A0C: 5970 /* test LO8(eax), LO8(eax) */ /* 0x36142A0C: test al, al */ 5971 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5972 _cf = 0; 5973 _flag_k = FK_NARROW(FK_TEST, 24); 5974 L_36142A0E: 5975 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36142A34; /* 0x36142A0E: je 0x36142a34 */ 5976 L_36142A10: 5977 edi = MEM32(ebp + 0x8); /* 0x36142A10: mov edi, dword ptr [ebp + 8] */ 5978 L_36142A13: 5979 PUSH32(esp, edi); /* 0x36142A13: push edi */ 5980 L_36142A14: 5981 ecx = esi; /* 0x36142A14: mov ecx, esi */ 5982 L_36142A16: 5983 RECOMP_ICALL(MEM32(0x36170330)); /* 0x36142A16: call dword ptr [0x36170330] */ 5984 RECOMP_FLAGS_IN(); 5985 L_36142A1C: 5986 /* test LO8(eax), LO8(eax) */ /* 0x36142A1C: test al, al */ 5987 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5988 _cf = 0; 5989 _flag_k = FK_NARROW(FK_TEST, 24); 5990 L_36142A1E: 5991 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36142A29; /* 0x36142A1E: jne 0x36142a29 */ 5992 L_36142A20: 5993 edi = POP32_VAL(esp); /* 0x36142A20: pop edi */ 5994 L_36142A21: 5995 esi = POP32_VAL(esp); /* 0x36142A21: pop esi */ 5996 L_36142A22: 5997 ebx = POP32_VAL(esp); /* 0x36142A22: pop ebx */ 5998 L_36142A23: 5999 esp = ebp; /* 0x36142A23: mov esp, ebp */ 6000 L_36142A25: 6001 ebp = POP32_VAL(esp); /* 0x36142A25: pop ebp */ 6002 L_36142A26: 6003 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36142A26: ret 0x14 */ 6004 L_36142A29: 6005 edx = MEM32(esi); /* 0x36142A29: mov edx, dword ptr [esi] */ 6006 L_36142A2B: 6007 PUSH32(esp, edi); /* 0x36142A2B: push edi */ 6008 L_36142A2C: 6009 ecx = esi; /* 0x36142A2C: mov ecx, esi */ 6010 L_36142A2E: 6011 RECOMP_ICALL(MEM32(edx + 0x8C)); /* 0x36142A2E: call dword ptr [edx + 0x8c] */ 6012 RECOMP_FLAGS_IN(); 6013 L_36142A34: 6014 edi = POP32_VAL(esp); /* 0x36142A34: pop edi */ 6015 L_36142A35: 6016 esi = POP32_VAL(esp); /* 0x36142A35: pop esi */ 6017 L_36142A36: 6018 SET_LO8(eax, 1); /* 0x36142A36: mov al, 1 */ 6019 L_36142A38: 6020 ebx = POP32_VAL(esp); /* 0x36142A38: pop ebx */ 6021 L_36142A39: 6022 esp = ebp; /* 0x36142A39: mov esp, ebp */ 6023 L_36142A3B: 6024 ebp = POP32_VAL(esp); /* 0x36142A3B: pop ebp */ 6025 L_36142A3C: 6026 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36142A3C: ret 0x14 */ 6027 _ljump: 6028 switch (_itail_tgt) { 6029 case 0x36142860u: goto L_36142860; 6030 case 0x36142861u: goto L_36142861; 6031 case 0x36142863u: goto L_36142863; 6032 case 0x36142866u: goto L_36142866; 6033 case 0x36142869u: goto L_36142869; 6034 case 0x3614286Bu: goto L_3614286B; 6035 case 0x3614286Cu: goto L_3614286C; 6036 case 0x36142872u: goto L_36142872; 6037 case 0x36142873u: goto L_36142873; 6038 case 0x36142874u: goto L_36142874; 6039 case 0x36142876u: goto L_36142876; 6040 case 0x3614287Cu: goto L_3614287C; 6041 case 0x3614287Eu: goto L_3614287E; 6042 case 0x36142881u: goto L_36142881; 6043 case 0x36142882u: goto L_36142882; 6044 case 0x36142885u: goto L_36142885; 6045 case 0x36142887u: goto L_36142887; 6046 case 0x3614288Du: goto L_3614288D; 6047 case 0x3614288Fu: goto L_3614288F; 6048 case 0x36142891u: goto L_36142891; 6049 case 0x36142893u: goto L_36142893; 6050 case 0x36142899u: goto L_36142899; 6051 case 0x3614289Bu: goto L_3614289B; 6052 case 0x361428A2u: goto L_361428A2; 6053 case 0x361428A4u: goto L_361428A4; 6054 case 0x361428A7u: goto L_361428A7; 6055 case 0x361428AAu: goto L_361428AA; 6056 case 0x361428ACu: goto L_361428AC; 6057 case 0x361428AEu: goto L_361428AE; 6058 case 0x361428B0u: goto L_361428B0; 6059 case 0x361428B2u: goto L_361428B2; 6060 case 0x361428B5u: goto L_361428B5; 6061 case 0x361428B7u: goto L_361428B7; 6062 case 0x361428B9u: goto L_361428B9; 6063 case 0x361428BAu: goto L_361428BA; 6064 case 0x361428BDu: goto L_361428BD; 6065 case 0x361428BFu: goto L_361428BF; 6066 case 0x361428C1u: goto L_361428C1; 6067 case 0x361428C3u: goto L_361428C3; 6068 case 0x361428CAu: goto L_361428CA; 6069 case 0x361428D0u: goto L_361428D0; 6070 case 0x361428D2u: goto L_361428D2; 6071 case 0x361428D4u: goto L_361428D4; 6072 case 0x361428DAu: goto L_361428DA; 6073 case 0x361428DCu: goto L_361428DC; 6074 case 0x361428DEu: goto L_361428DE; 6075 case 0x361428E0u: goto L_361428E0; 6076 case 0x361428E7u: goto L_361428E7; 6077 case 0x361428E9u: goto L_361428E9; 6078 case 0x361428ECu: goto L_361428EC; 6079 case 0x361428EEu: goto L_361428EE; 6080 case 0x361428F0u: goto L_361428F0; 6081 case 0x361428F6u: goto L_361428F6; 6082 case 0x361428FCu: goto L_361428FC; 6083 case 0x361428FEu: goto L_361428FE; 6084 case 0x36142900u: goto L_36142900; 6085 case 0x36142902u: goto L_36142902; 6086 case 0x36142908u: goto L_36142908; 6087 case 0x3614290Eu: goto L_3614290E; 6088 case 0x36142914u: goto L_36142914; 6089 case 0x36142916u: goto L_36142916; 6090 case 0x3614291Cu: goto L_3614291C; 6091 case 0x3614291Fu: goto L_3614291F; 6092 case 0x36142921u: goto L_36142921; 6093 case 0x36142927u: goto L_36142927; 6094 case 0x36142929u: goto L_36142929; 6095 case 0x3614292Bu: goto L_3614292B; 6096 case 0x36142931u: goto L_36142931; 6097 case 0x36142933u: goto L_36142933; 6098 case 0x36142935u: goto L_36142935; 6099 case 0x3614293Bu: goto L_3614293B; 6100 case 0x3614293Du: goto L_3614293D; 6101 case 0x36142943u: goto L_36142943; 6102 case 0x36142946u: goto L_36142946; 6103 case 0x3614294Du: goto L_3614294D; 6104 case 0x36142950u: goto L_36142950; 6105 case 0x36142953u: goto L_36142953; 6106 case 0x36142956u: goto L_36142956; 6107 case 0x36142959u: goto L_36142959; 6108 case 0x3614295Cu: goto L_3614295C; 6109 case 0x3614295Fu: goto L_3614295F; 6110 case 0x36142962u: goto L_36142962; 6111 case 0x36142965u: goto L_36142965; 6112 case 0x36142968u: goto L_36142968; 6113 case 0x3614296Au: goto L_3614296A; 6114 case 0x3614296Du: goto L_3614296D; 6115 case 0x36142970u: goto L_36142970; 6116 case 0x36142973u: goto L_36142973; 6117 case 0x36142976u: goto L_36142976; 6118 case 0x36142979u: goto L_36142979; 6119 case 0x3614297Cu: goto L_3614297C; 6120 case 0x3614297Eu: goto L_3614297E; 6121 case 0x36142980u: goto L_36142980; 6122 case 0x36142982u: goto L_36142982; 6123 case 0x36142984u: goto L_36142984; 6124 case 0x36142986u: goto L_36142986; 6125 case 0x36142988u: goto L_36142988; 6126 case 0x3614298Au: goto L_3614298A; 6127 case 0x3614298Cu: goto L_3614298C; 6128 case 0x3614298Eu: goto L_3614298E; 6129 case 0x36142990u: goto L_36142990; 6130 case 0x36142992u: goto L_36142992; 6131 case 0x36142994u: goto L_36142994; 6132 case 0x3614299Au: goto L_3614299A; 6133 case 0x3614299Cu: goto L_3614299C; 6134 case 0x3614299Fu: goto L_3614299F; 6135 case 0x361429A1u: goto L_361429A1; 6136 case 0x361429A3u: goto L_361429A3; 6137 case 0x361429A5u: goto L_361429A5; 6138 case 0x361429A7u: goto L_361429A7; 6139 case 0x361429A9u: goto L_361429A9; 6140 case 0x361429B0u: goto L_361429B0; 6141 case 0x361429B2u: goto L_361429B2; 6142 case 0x361429B4u: goto L_361429B4; 6143 case 0x361429BAu: goto L_361429BA; 6144 case 0x361429BCu: goto L_361429BC; 6145 case 0x361429BEu: goto L_361429BE; 6146 case 0x361429C4u: goto L_361429C4; 6147 case 0x361429C7u: goto L_361429C7; 6148 case 0x361429CAu: goto L_361429CA; 6149 case 0x361429CCu: goto L_361429CC; 6150 case 0x361429CEu: goto L_361429CE; 6151 case 0x361429D4u: goto L_361429D4; 6152 case 0x361429DBu: goto L_361429DB; 6153 case 0x361429DEu: goto L_361429DE; 6154 case 0x361429E0u: goto L_361429E0; 6155 case 0x361429E2u: goto L_361429E2; 6156 case 0x361429E8u: goto L_361429E8; 6157 case 0x361429EAu: goto L_361429EA; 6158 case 0x361429ECu: goto L_361429EC; 6159 case 0x361429EEu: goto L_361429EE; 6160 case 0x361429F0u: goto L_361429F0; 6161 case 0x361429F7u: goto L_361429F7; 6162 case 0x361429F9u: goto L_361429F9; 6163 case 0x361429FCu: goto L_361429FC; 6164 case 0x361429FEu: goto L_361429FE; 6165 case 0x36142A00u: goto L_36142A00; 6166 case 0x36142A06u: goto L_36142A06; 6167 case 0x36142A0Cu: goto L_36142A0C; 6168 case 0x36142A0Eu: goto L_36142A0E; 6169 case 0x36142A10u: goto L_36142A10; 6170 case 0x36142A13u: goto L_36142A13; 6171 case 0x36142A14u: goto L_36142A14; 6172 case 0x36142A16u: goto L_36142A16; 6173 case 0x36142A1Cu: goto L_36142A1C; 6174 case 0x36142A1Eu: goto L_36142A1E; 6175 case 0x36142A20u: goto L_36142A20; 6176 case 0x36142A21u: goto L_36142A21; 6177 case 0x36142A22u: goto L_36142A22; 6178 case 0x36142A23u: goto L_36142A23; 6179 case 0x36142A25u: goto L_36142A25; 6180 case 0x36142A26u: goto L_36142A26; 6181 case 0x36142A29u: goto L_36142A29; 6182 case 0x36142A2Bu: goto L_36142A2B; 6183 case 0x36142A2Cu: goto L_36142A2C; 6184 case 0x36142A2Eu: goto L_36142A2E; 6185 case 0x36142A34u: goto L_36142A34; 6186 case 0x36142A35u: goto L_36142A35; 6187 case 0x36142A36u: goto L_36142A36; 6188 case 0x36142A38u: goto L_36142A38; 6189 case 0x36142A39u: goto L_36142A39; 6190 case 0x36142A3Bu: goto L_36142A3B; 6191 case 0x36142A3Cu: goto L_36142A3C; 6192 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6193 } 6194 RECOMP_REGS_OUT(); 6195 } 6196 6197 void sub_36142A60(void) { 6198 int _fpu_cmp = 0; 6199 uint32_t _cf = 0; 6200 int _df = 1; 6201 uint32_t _flag_k = FK_NONE; 6202 uint32_t _flag_a = 0, _flag_b = 0; 6203 uint32_t _itail_tgt = 0; 6204 RECOMP_REGS_LOCALS 6205 RECOMP_ENTER(0x36142A60u); 6206 6207 L_36142A60: 6208 PUSH32(esp, ebp); /* 0x36142A60: push ebp */ 6209 ebp = esp; /* 0x36142A61: mov ebp, esp */ 6210 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6212 esp = esp - 0xCu; /* 0x36142A63: sub esp, 0xc */ 6213 _flag_k = FK_CMP; 6214 edx = MEM32(ebp + 0x8); /* 0x36142A66: mov edx, dword ptr [ebp + 8] */ 6215 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x36142A69: fld dword ptr [edx + 8] */ 6216 PUSH32(esp, esi); /* 0x36142A6C: push esi */ 6217 fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x36142A6D: fld dword ptr [edx + 4] */ 6218 esi = MEM32(ebp + 0xC); /* 0x36142A70: mov esi, dword ptr [ebp + 0xc] */ 6219 fp_push(*(float*)&MEM32(edx)); /* 0x36142A73: fld dword ptr [edx] */ 6220 fp_push(_st[0]); /* 0x36142A75: fld st(0) */ 6221 _st[0] *= _st[1]; /* 0x36142A77: fmul st(1) */ 6222 fp_push(_st[2]); /* 0x36142A79: fld st(2) */ 6223 _st[0] *= _st[3]; /* 0x36142A7B: fmul st(3) */ 6224 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142A7D: faddp st(1) */ 6225 fp_push(_st[3]); /* 0x36142A7F: fld st(3) */ 6226 _st[0] *= _st[4]; /* 0x36142A81: fmul st(4) */ 6227 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142A83: faddp st(1) */ 6228 _st[0] = sqrt(_st[0]); /* 0x36142A85: fsqrt */ 6229 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36142A87: fstp st(3) */ 6230 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142A89: fstp st(0) */ 6231 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142A8B: fstp st(0) */ 6232 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36142A8D: fsubr dword ptr [0x36170380] */ 6233 fp_push(*(float*)&MEM32(esi)); /* 0x36142A93: fld dword ptr [esi] */ 6234 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142A95: fcomp dword ptr [0x3617040c] */ 6235 fp_pop(); 6236 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142A9B: fnstsw ax */ 6237 /* test HI8(eax), 0x40u */ /* 0x36142A9D: test ah, 0x40 */ 6238 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6239 _cf = 0; 6240 _flag_k = FK_NARROW(FK_TEST, 24); 6241 if (TEST_Z(_flag_a, _flag_b)) goto L_36142ACF; /* 0x36142AA0: je 0x36142acf */ 6242 L_36142AA2: 6243 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x36142AA2: fld dword ptr [esi + 4] */ 6244 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142AA5: fcomp dword ptr [0x3617040c] */ 6245 fp_pop(); 6246 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142AAB: fnstsw ax */ 6247 /* test HI8(eax), 0x40u */ /* 0x36142AAD: test ah, 0x40 */ 6248 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6249 _cf = 0; 6250 _flag_k = FK_NARROW(FK_TEST, 24); 6251 if (TEST_Z(_flag_a, _flag_b)) goto L_36142ACF; /* 0x36142AB0: je 0x36142acf */ 6252 L_36142AB2: 6253 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36142AB2: fld dword ptr [esi + 8] */ 6254 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142AB5: fcomp dword ptr [0x3617040c] */ 6255 fp_pop(); 6256 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142ABB: fnstsw ax */ 6257 /* test HI8(eax), 0x40u */ /* 0x36142ABD: test ah, 0x40 */ 6258 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6259 _cf = 0; 6260 _flag_k = FK_NARROW(FK_TEST, 24); 6261 if (TEST_Z(_flag_a, _flag_b)) goto L_36142ACF; /* 0x36142AC0: je 0x36142acf */ 6262 L_36142AC2: 6263 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36142AC2: fsubr dword ptr [0x36170380] */ 6264 esi = POP32_VAL(esp); /* 0x36142AC8: pop esi */ 6265 esp = ebp; /* 0x36142AC9: mov esp, ebp */ 6266 ebp = POP32_VAL(esp); /* 0x36142ACB: pop ebp */ 6267 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36142ACC: ret 8 */ 6268 L_36142ACF: 6269 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36142ACF: fld dword ptr [esi + 8] */ 6270 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x36142AD2: fld dword ptr [esi + 4] */ 6271 fp_push(*(float*)&MEM32(esi)); /* 0x36142AD5: fld dword ptr [esi] */ 6272 fp_push(_st[2]); /* 0x36142AD7: fld st(2) */ 6273 { double _v = fp_pop(); _st[2] *= _v; } /* 0x36142AD9: fmulp st(3) */ 6274 fp_push(_st[1]); /* 0x36142ADB: fld st(1) */ 6275 _st[0] *= _st[2]; /* 0x36142ADD: fmul st(2) */ 6276 { double _v = fp_pop(); _st[2] += _v; } /* 0x36142ADF: faddp st(3) */ 6277 fp_push(_st[0]); /* 0x36142AE1: fld st(0) */ 6278 _st[0] *= _st[1]; /* 0x36142AE3: fmul st(1) */ 6279 { double _v = fp_pop(); _st[2] += _v; } /* 0x36142AE5: faddp st(3) */ 6280 fp_xch(2); /* 0x36142AE7: fxch st(2) */ 6281 _st[0] = sqrt(_st[0]); /* 0x36142AE9: fsqrt */ 6282 fp_xch(2); /* 0x36142AEB: fxch st(2) */ 6283 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142AED: fstp st(0) */ 6284 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142AEF: fstp st(0) */ 6285 _st[0] /= (double)*(float*)ADDR(ecx + 0x15C); /* 0x36142AF1: fdiv dword ptr [ecx + 0x15c] */ 6286 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x36142AF7: fcom st(1) */ 6287 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142AF9: fnstsw ax */ 6288 /* test HI8(eax), 0x41u */ /* 0x36142AFB: test ah, 0x41 */ 6289 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 6290 _cf = 0; 6291 _flag_k = FK_NARROW(FK_TEST, 24); 6292 if (TEST_NZ(_flag_a, _flag_b)) goto L_36142B75; /* 0x36142AFE: jne 0x36142b75 */ 6293 L_36142B00: 6294 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142B00: fstp st(0) */ 6295 fp_push(_st[0]); /* 0x36142B02: fld st(0) */ 6296 L_36142B04: 6297 eax = MEM32(esi); /* 0x36142B04: mov eax, dword ptr [esi] */ 6298 ecx = MEM32(esi + 0x4); /* 0x36142B06: mov ecx, dword ptr [esi + 4] */ 6299 MEM32(ebp + (-0xC)) = eax; /* 0x36142B09: mov dword ptr [ebp - 0xc], eax */ 6300 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36142B0C: fld dword ptr [ebp - 0xc] */ 6301 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36142B0F: fmul dword ptr [ebp - 0xc] */ 6302 eax = MEM32(esi + 0x8); /* 0x36142B12: mov eax, dword ptr [esi + 8] */ 6303 MEM32(ebp + (-0x8)) = ecx; /* 0x36142B15: mov dword ptr [ebp - 8], ecx */ 6304 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36142B18: fld dword ptr [ebp - 8] */ 6305 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36142B1B: fmul dword ptr [ebp - 8] */ 6306 MEM32(ebp + (-0x4)) = eax; /* 0x36142B1E: mov dword ptr [ebp - 4], eax */ 6307 esi = POP32_VAL(esp); /* 0x36142B21: pop esi */ 6308 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142B22: faddp st(1) */ 6309 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36142B24: fld dword ptr [ebp - 4] */ 6310 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36142B27: fmul dword ptr [ebp - 4] */ 6311 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142B2A: faddp st(1) */ 6312 _st[0] = sqrt(_st[0]); /* 0x36142B2C: fsqrt */ 6313 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36142B2E: fdivr dword ptr [0x36170380] */ 6314 _st[0] *= _st[1]; /* 0x36142B34: fmul st(1) */ 6315 fp_push(_st[0]); /* 0x36142B36: fld st(0) */ 6316 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36142B38: fmul dword ptr [ebp - 0xc] */ 6317 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36142B3B: fstp dword ptr [ebp - 0xc] */ 6318 fp_push(_st[0]); /* 0x36142B3E: fld st(0) */ 6319 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36142B40: fmul dword ptr [ebp - 8] */ 6320 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36142B43: fstp dword ptr [ebp - 8] */ 6321 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36142B46: fmul dword ptr [ebp - 4] */ 6322 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36142B49: fld dword ptr [ebp - 0xc] */ 6323 _st[0] += (double)*(float*)ADDR(edx); /* 0x36142B4C: fadd dword ptr [edx] */ 6324 { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x36142B4E: fstp dword ptr [edx] */ 6325 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36142B50: fld dword ptr [ebp - 8] */ 6326 _st[0] += (double)*(float*)ADDR(edx + 0x4); /* 0x36142B53: fadd dword ptr [edx + 4] */ 6327 { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x4) = _v; } /* 0x36142B56: fstp dword ptr [edx + 4] */ 6328 _st[0] += (double)*(float*)ADDR(edx + 0x8); /* 0x36142B59: fadd dword ptr [edx + 8] */ 6329 { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x8) = _v; } /* 0x36142B5C: fstp dword ptr [edx + 8] */ 6330 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36142B5F: fld dword ptr [0x36170380] */ 6331 { double _v = fp_pop(); _st[1] = _v - _st[1]; } /* 0x36142B65: fsubrp st(2) */ 6332 fp_xch(1); /* 0x36142B67: fxch st(1) */ 6333 _st[0] += _st[1]; /* 0x36142B69: fadd st(1) */ 6334 fp_xch(1); /* 0x36142B6B: fxch st(1) */ 6335 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142B6D: fstp st(0) */ 6336 esp = ebp; /* 0x36142B6F: mov esp, ebp */ 6337 ebp = POP32_VAL(esp); /* 0x36142B71: pop ebp */ 6338 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36142B72: ret 8 */ 6339 L_36142B75: 6340 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170EF0)); /* 0x36142B75: fcom dword ptr [0x36170ef0] */ 6341 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142B7B: fnstsw ax */ 6342 /* test HI8(eax), 1 */ /* 0x36142B7D: test ah, 1 */ 6343 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6344 _cf = 0; 6345 _flag_k = FK_NARROW(FK_TEST, 24); 6346 RECOMP_BACKEDGE(); 6347 if (TEST_Z(_flag_a, _flag_b)) goto L_36142B04; /* 0x36142B80: je 0x36142b04 */ 6348 L_36142B82: 6349 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142B82: fstp st(0) */ 6350 esi = POP32_VAL(esp); /* 0x36142B84: pop esi */ 6351 _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36142B85: fsubr dword ptr [0x36170380] */ 6352 esp = ebp; /* 0x36142B8B: mov esp, ebp */ 6353 ebp = POP32_VAL(esp); /* 0x36142B8D: pop ebp */ 6354 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36142B8E: ret 8 */ 6355 RECOMP_REGS_OUT(); 6356 } 6357 6358 void sub_36142BA0(void) { 6359 int _fpu_cmp = 0; 6360 uint32_t _cf = 0; 6361 int _df = 1; 6362 uint32_t _flag_k = FK_NONE; 6363 uint32_t _flag_a = 0, _flag_b = 0; 6364 uint32_t _itail_tgt = 0; 6365 RECOMP_REGS_LOCALS 6366 RECOMP_ENTER(0x36142BA0u); 6367 6368 L_36142BA0: 6369 PUSH32(esp, ebp); /* 0x36142BA0: push ebp */ 6370 L_36142BA1: 6371 ebp = esp; /* 0x36142BA1: mov ebp, esp */ 6372 L_36142BA3: 6373 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6375 esp = esp - 0xCu; /* 0x36142BA3: sub esp, 0xc */ 6376 _flag_k = FK_CMP; 6377 L_36142BA6: 6378 PUSH32(esp, esi); /* 0x36142BA6: push esi */ 6379 L_36142BA7: 6380 esi = ecx; /* 0x36142BA7: mov esi, ecx */ 6381 L_36142BA9: 6382 SET_LO8(eax, MEM8(esi + 0x166)); /* 0x36142BA9: mov al, byte ptr [esi + 0x166] */ 6383 L_36142BAF: 6384 /* test LO8(eax), LO8(eax) */ /* 0x36142BAF: test al, al */ 6385 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6386 _cf = 0; 6387 _flag_k = FK_NARROW(FK_TEST, 24); 6388 L_36142BB1: 6389 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36142C5A; /* 0x36142BB1: je 0x36142c5a */ 6390 L_36142BB7: 6391 PUSH32(esp, ebx); /* 0x36142BB7: push ebx */ 6392 L_36142BB8: 6393 ebx = MEM32(0x36170368); /* 0x36142BB8: mov ebx, dword ptr [0x36170368] */ 6394 L_36142BBE: 6395 PUSH32(esp, edi); /* 0x36142BBE: push edi */ 6396 L_36142BBF: 6397 RECOMP_ICALL(ebx); /* 0x36142BBF: call ebx */ 6398 RECOMP_FLAGS_IN(); 6399 L_36142BC1: 6400 edi = eax; /* 0x36142BC1: mov edi, eax */ 6401 L_36142BC3: 6402 RECOMP_ICALL(MEM32(0x361700DC)); /* 0x36142BC3: call dword ptr [0x361700dc] */ 6403 RECOMP_FLAGS_IN(); 6404 L_36142BC9: 6405 /* test eax, eax */ /* 0x36142BC9: test eax, eax */ 6406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6407 _cf = 0; 6408 _flag_k = FK_TEST; 6409 L_36142BCB: 6410 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36142C2D; /* 0x36142BCB: je 0x36142c2d */ 6411 L_36142BCD: 6412 eax = MEM32(eax + 0xEC); /* 0x36142BCD: mov eax, dword ptr [eax + 0xec] */ 6413 L_36142BD3: 6414 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFBu); 6415 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6416 eax = eax + 0xFFFFFFFBu; /* 0x36142BD3: add eax, -5 */ 6417 _flag_k = FK_ADD; 6418 L_36142BD6: 6419 /* cmp eax, 0xBu */ /* 0x36142BD6: cmp eax, 0xb */ 6420 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 6421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6422 _flag_k = FK_CMP; 6423 L_36142BD9: 6424 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36142C1C; /* 0x36142BD9: ja 0x36142c1c */ 6425 L_36142BDB: 6426 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6427 ecx = 0; /* 0x36142BDB: xor ecx, ecx */ 6428 _cf = 0; 6429 _flag_k = FK_TEST; 6430 L_36142BDD: 6431 SET_LO8(ecx, MEM8(eax + 0x36142C6C)); /* 0x36142BDD: mov cl, byte ptr [eax + 0x36142c6c] */ 6432 L_36142BE3: 6433 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x36142C64)); goto _ljump; } 6434 L_36142BEA: 6435 eax = esi + 0x54; /* 0x36142BEA: lea eax, [esi + 0x54] */ 6436 L_36142BED: 6437 edx = MEM32(eax); /* 0x36142BED: mov edx, dword ptr [eax] */ 6438 L_36142BEF: 6439 ecx = MEM32(eax + 0x4); /* 0x36142BEF: mov ecx, dword ptr [eax + 4] */ 6440 L_36142BF2: 6441 MEM32(ebp + (-0xC)) = edx; /* 0x36142BF2: mov dword ptr [ebp - 0xc], edx */ 6442 L_36142BF5: 6443 edx = MEM32(eax + 0x8); /* 0x36142BF5: mov edx, dword ptr [eax + 8] */ 6444 L_36142BF8: 6445 eax = ebp + (-0xC); /* 0x36142BF8: lea eax, [ebp - 0xc] */ 6446 L_36142BFB: 6447 PUSH32(esp, eax); /* 0x36142BFB: push eax */ 6448 L_36142BFC: 6449 MEM32(ebp + (-0x8)) = ecx; /* 0x36142BFC: mov dword ptr [ebp - 8], ecx */ 6450 L_36142BFF: 6451 MEM32(ebp + (-0x4)) = edx; /* 0x36142BFF: mov dword ptr [ebp - 4], edx */ 6452 L_36142C02: 6453 RECOMP_ICALL(0x360C7410u); /* 0x36142C02: call 0x360c7410 */ /* not lifted */ 6454 RECOMP_FLAGS_IN(); 6455 L_36142C07: 6456 ecx = eax; /* 0x36142C07: mov ecx, eax */ 6457 L_36142C09: 6458 RECOMP_ICALL(0x360C7B60u); /* 0x36142C09: call 0x360c7b60 */ /* not lifted */ 6459 RECOMP_FLAGS_IN(); 6460 L_36142C0E: 6461 PUSH32(esp, 0x3Du); /* 0x36142C0E: push 0x3d */ 6462 L_36142C10: 6463 RECOMP_ICALL(0x360C7410u); /* 0x36142C10: call 0x360c7410 */ /* not lifted */ 6464 RECOMP_FLAGS_IN(); 6465 L_36142C15: 6466 ecx = eax; /* 0x36142C15: mov ecx, eax */ 6467 L_36142C17: 6468 RECOMP_ICALL(0x360C7BE0u); /* 0x36142C17: call 0x360c7be0 */ /* not lifted */ 6469 RECOMP_FLAGS_IN(); 6470 L_36142C1C: 6471 ecx = MEM32(edi + 0x18); /* 0x36142C1C: mov ecx, dword ptr [edi + 0x18] */ 6472 L_36142C1F: 6473 /* test ecx, ecx */ /* 0x36142C1F: test ecx, ecx */ 6474 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6475 _cf = 0; 6476 _flag_k = FK_TEST; 6477 L_36142C21: 6478 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36142C2D; /* 0x36142C21: je 0x36142c2d */ 6479 L_36142C23: 6480 eax = esi + 0x54; /* 0x36142C23: lea eax, [esi + 0x54] */ 6481 L_36142C26: 6482 PUSH32(esp, eax); /* 0x36142C26: push eax */ 6483 L_36142C27: 6484 RECOMP_ICALL(MEM32(0x3616F608)); /* 0x36142C27: call dword ptr [0x3616f608] */ 6485 RECOMP_FLAGS_IN(); 6486 L_36142C2D: 6487 ecx = esi; /* 0x36142C2D: mov ecx, esi */ 6488 L_36142C2F: 6489 RECOMP_ICALL(MEM32(0x36170290)); /* 0x36142C2F: call dword ptr [0x36170290] */ 6490 RECOMP_FLAGS_IN(); 6491 L_36142C35: 6492 ecx = esi; /* 0x36142C35: mov ecx, esi */ 6493 L_36142C37: 6494 edi = eax; /* 0x36142C37: mov edi, eax */ 6495 L_36142C39: 6496 RECOMP_ICALL(ebx); /* 0x36142C39: call ebx */ 6497 RECOMP_FLAGS_IN(); 6498 L_36142C3B: 6499 ecx = MEM32(eax + 0x18); /* 0x36142C3B: mov ecx, dword ptr [eax + 0x18] */ 6500 L_36142C3E: 6501 /* test ecx, ecx */ /* 0x36142C3E: test ecx, ecx */ 6502 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6503 _cf = 0; 6504 _flag_k = FK_TEST; 6505 L_36142C40: 6506 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36142C49; /* 0x36142C40: je 0x36142c49 */ 6507 L_36142C42: 6508 PUSH32(esp, edi); /* 0x36142C42: push edi */ 6509 L_36142C43: 6510 RECOMP_ICALL(MEM32(0x3616F60C)); /* 0x36142C43: call dword ptr [0x3616f60c] */ 6511 RECOMP_FLAGS_IN(); 6512 L_36142C49: 6513 ecx = MEM32(ebp + 0x8); /* 0x36142C49: mov ecx, dword ptr [ebp + 8] */ 6514 L_36142C4C: 6515 PUSH32(esp, ecx); /* 0x36142C4C: push ecx */ 6516 L_36142C4D: 6517 ecx = esi; /* 0x36142C4D: mov ecx, esi */ 6518 L_36142C4F: 6519 RECOMP_ICALL(ebx); /* 0x36142C4F: call ebx */ 6520 RECOMP_FLAGS_IN(); 6521 L_36142C51: 6522 ecx = eax; /* 0x36142C51: mov ecx, eax */ 6523 L_36142C53: 6524 RECOMP_ICALL(0x3613A7A0u); /* 0x36142C53: call 0x3613a7a0 */ /* not lifted */ 6525 RECOMP_FLAGS_IN(); 6526 L_36142C58: 6527 edi = POP32_VAL(esp); /* 0x36142C58: pop edi */ 6528 L_36142C59: 6529 ebx = POP32_VAL(esp); /* 0x36142C59: pop ebx */ 6530 L_36142C5A: 6531 esi = POP32_VAL(esp); /* 0x36142C5A: pop esi */ 6532 L_36142C5B: 6533 esp = ebp; /* 0x36142C5B: mov esp, ebp */ 6534 L_36142C5D: 6535 ebp = POP32_VAL(esp); /* 0x36142C5D: pop ebp */ 6536 L_36142C5E: 6537 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36142C5E: ret 4 */ 6538 _ljump: 6539 switch (_itail_tgt) { 6540 case 0x36142BA0u: goto L_36142BA0; 6541 case 0x36142BA1u: goto L_36142BA1; 6542 case 0x36142BA3u: goto L_36142BA3; 6543 case 0x36142BA6u: goto L_36142BA6; 6544 case 0x36142BA7u: goto L_36142BA7; 6545 case 0x36142BA9u: goto L_36142BA9; 6546 case 0x36142BAFu: goto L_36142BAF; 6547 case 0x36142BB1u: goto L_36142BB1; 6548 case 0x36142BB7u: goto L_36142BB7; 6549 case 0x36142BB8u: goto L_36142BB8; 6550 case 0x36142BBEu: goto L_36142BBE; 6551 case 0x36142BBFu: goto L_36142BBF; 6552 case 0x36142BC1u: goto L_36142BC1; 6553 case 0x36142BC3u: goto L_36142BC3; 6554 case 0x36142BC9u: goto L_36142BC9; 6555 case 0x36142BCBu: goto L_36142BCB; 6556 case 0x36142BCDu: goto L_36142BCD; 6557 case 0x36142BD3u: goto L_36142BD3; 6558 case 0x36142BD6u: goto L_36142BD6; 6559 case 0x36142BD9u: goto L_36142BD9; 6560 case 0x36142BDBu: goto L_36142BDB; 6561 case 0x36142BDDu: goto L_36142BDD; 6562 case 0x36142BE3u: goto L_36142BE3; 6563 case 0x36142BEAu: goto L_36142BEA; 6564 case 0x36142BEDu: goto L_36142BED; 6565 case 0x36142BEFu: goto L_36142BEF; 6566 case 0x36142BF2u: goto L_36142BF2; 6567 case 0x36142BF5u: goto L_36142BF5; 6568 case 0x36142BF8u: goto L_36142BF8; 6569 case 0x36142BFBu: goto L_36142BFB; 6570 case 0x36142BFCu: goto L_36142BFC; 6571 case 0x36142BFFu: goto L_36142BFF; 6572 case 0x36142C02u: goto L_36142C02; 6573 case 0x36142C07u: goto L_36142C07; 6574 case 0x36142C09u: goto L_36142C09; 6575 case 0x36142C0Eu: goto L_36142C0E; 6576 case 0x36142C10u: goto L_36142C10; 6577 case 0x36142C15u: goto L_36142C15; 6578 case 0x36142C17u: goto L_36142C17; 6579 case 0x36142C1Cu: goto L_36142C1C; 6580 case 0x36142C1Fu: goto L_36142C1F; 6581 case 0x36142C21u: goto L_36142C21; 6582 case 0x36142C23u: goto L_36142C23; 6583 case 0x36142C26u: goto L_36142C26; 6584 case 0x36142C27u: goto L_36142C27; 6585 case 0x36142C2Du: goto L_36142C2D; 6586 case 0x36142C2Fu: goto L_36142C2F; 6587 case 0x36142C35u: goto L_36142C35; 6588 case 0x36142C37u: goto L_36142C37; 6589 case 0x36142C39u: goto L_36142C39; 6590 case 0x36142C3Bu: goto L_36142C3B; 6591 case 0x36142C3Eu: goto L_36142C3E; 6592 case 0x36142C40u: goto L_36142C40; 6593 case 0x36142C42u: goto L_36142C42; 6594 case 0x36142C43u: goto L_36142C43; 6595 case 0x36142C49u: goto L_36142C49; 6596 case 0x36142C4Cu: goto L_36142C4C; 6597 case 0x36142C4Du: goto L_36142C4D; 6598 case 0x36142C4Fu: goto L_36142C4F; 6599 case 0x36142C51u: goto L_36142C51; 6600 case 0x36142C53u: goto L_36142C53; 6601 case 0x36142C58u: goto L_36142C58; 6602 case 0x36142C59u: goto L_36142C59; 6603 case 0x36142C5Au: goto L_36142C5A; 6604 case 0x36142C5Bu: goto L_36142C5B; 6605 case 0x36142C5Du: goto L_36142C5D; 6606 case 0x36142C5Eu: goto L_36142C5E; 6607 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6608 } 6609 RECOMP_REGS_OUT(); 6610 } 6611 6612 void sub_36142C80(void) { 6613 int _fpu_cmp = 0; 6614 uint32_t _cf = 0; 6615 int _df = 1; 6616 uint32_t _flag_k = FK_NONE; 6617 uint32_t _flag_a = 0, _flag_b = 0; 6618 uint32_t _itail_tgt = 0; 6619 RECOMP_REGS_LOCALS 6620 RECOMP_ENTER(0x36142C80u); 6621 6622 L_36142C80: 6623 PUSH32(esp, ebp); /* 0x36142C80: push ebp */ 6624 ebp = esp; /* 0x36142C81: mov ebp, esp */ 6625 edx = MEM32(ebp + 0x8); /* 0x36142C83: mov edx, dword ptr [ebp + 8] */ 6626 eax = MEM32(ecx); /* 0x36142C86: mov eax, dword ptr [ecx] */ 6627 PUSH32(esp, edx); /* 0x36142C88: push edx */ 6628 RECOMP_ICALL(MEM32(eax + 0x98)); /* 0x36142C89: call dword ptr [eax + 0x98] */ 6629 RECOMP_FLAGS_IN(); 6630 ebp = POP32_VAL(esp); /* 0x36142C8F: pop ebp */ 6631 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36142C90: ret 4 */ 6632 RECOMP_REGS_OUT(); 6633 } 6634 6635 void sub_36142CA0(void) { 6636 int _fpu_cmp = 0; 6637 uint32_t _cf = 0; 6638 int _df = 1; 6639 uint32_t _flag_k = FK_NONE; 6640 uint32_t _flag_a = 0, _flag_b = 0; 6641 uint32_t _itail_tgt = 0; 6642 RECOMP_REGS_LOCALS 6643 RECOMP_ENTER(0x36142CA0u); 6644 6645 L_36142CA0: 6646 PUSH32(esp, ebp); /* 0x36142CA0: push ebp */ 6647 ebp = esp; /* 0x36142CA1: mov ebp, esp */ 6648 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 6649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6650 esp = esp - 0x30u; /* 0x36142CA3: sub esp, 0x30 */ 6651 _flag_k = FK_CMP; 6652 PUSH32(esp, esi); /* 0x36142CA6: push esi */ 6653 esi = MEM32(0x3616F254); /* 0x36142CA7: mov esi, dword ptr [0x3616f254] */ 6654 PUSH32(esp, edi); /* 0x36142CAD: push edi */ 6655 edi = ecx; /* 0x36142CAE: mov edi, ecx */ 6656 RECOMP_ICALL(esi); /* 0x36142CB0: call esi */ 6657 RECOMP_FLAGS_IN(); 6658 MEM32(ebp + (-0x8)) = eax; /* 0x36142CB2: mov dword ptr [ebp - 8], eax */ 6659 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x36142CB5: fild dword ptr [ebp - 8] */ 6660 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x36142CB8: fmul dword ptr [0x36170438] */ 6661 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x36142CBE: fsub dword ptr [0x36170464] */ 6662 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36142CC4: fstp dword ptr [ebp - 8] */ 6663 RECOMP_ICALL(esi); /* 0x36142CC7: call esi */ 6664 RECOMP_FLAGS_IN(); 6665 MEM32(ebp + (-0x4)) = eax; /* 0x36142CC9: mov dword ptr [ebp - 4], eax */ 6666 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x36142CCC: fild dword ptr [ebp - 4] */ 6667 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x36142CCF: fmul dword ptr [0x36170438] */ 6668 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x36142CD5: fsub dword ptr [0x36170464] */ 6669 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36142CDB: fstp dword ptr [ebp - 4] */ 6670 RECOMP_ICALL(esi); /* 0x36142CDE: call esi */ 6671 RECOMP_FLAGS_IN(); 6672 MEM32(ebp + (-0xC)) = eax; /* 0x36142CE0: mov dword ptr [ebp - 0xc], eax */ 6673 fp_push((double)(int32_t)MEM32(ebp + (-0xC))); /* 0x36142CE3: fild dword ptr [ebp - 0xc] */ 6674 eax = MEM32(ebp + (-0x4)); /* 0x36142CE6: mov eax, dword ptr [ebp - 4] */ 6675 ecx = MEM32(ebp + (-0x8)); /* 0x36142CE9: mov ecx, dword ptr [ebp - 8] */ 6676 MEM32(ebp + (-0x2C)) = eax; /* 0x36142CEC: mov dword ptr [ebp - 0x2c], eax */ 6677 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x36142CEF: fmul dword ptr [0x36170438] */ 6678 MEM32(ebp + (-0x28)) = ecx; /* 0x36142CF5: mov dword ptr [ebp - 0x28], ecx */ 6679 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x36142CF8: fsub dword ptr [0x36170464] */ 6680 fp_push(_st[0]); /* 0x36142CFE: fld st(0) */ 6681 _st[0] *= _st[1]; /* 0x36142D00: fmul st(1) */ 6682 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36142D02: fld dword ptr [ebp - 4] */ 6683 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36142D05: fmul dword ptr [ebp - 4] */ 6684 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142D08: faddp st(1) */ 6685 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36142D0A: fld dword ptr [ebp - 8] */ 6686 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36142D0D: fmul dword ptr [ebp - 8] */ 6687 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142D10: faddp st(1) */ 6688 _st[0] = sqrt(_st[0]); /* 0x36142D12: fsqrt */ 6689 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142D14: fcom dword ptr [0x3617040c] */ 6690 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142D1A: fnstsw ax */ 6691 /* test HI8(eax), 0x40u */ /* 0x36142D1C: test ah, 0x40 */ 6692 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6693 _cf = 0; 6694 _flag_k = FK_NARROW(FK_TEST, 24); 6695 if (TEST_NZ(_flag_a, _flag_b)) goto L_36142D38; /* 0x36142D1F: jne 0x36142d38 */ 6696 L_36142D21: 6697 _st[0] = (double)*(float*)ADDR(ebp + 0xC) / _st[0]; /* 0x36142D21: fdivr dword ptr [ebp + 0xc] */ 6698 fp_push(_st[0]); /* 0x36142D24: fld st(0) */ 6699 { double _v = fp_pop(); _st[1] *= _v; } /* 0x36142D26: fmulp st(2) */ 6700 fp_push(_st[0]); /* 0x36142D28: fld st(0) */ 6701 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36142D2A: fmul dword ptr [ebp - 4] */ 6702 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36142D2D: fstp dword ptr [ebp - 0x2c] */ 6703 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36142D30: fmul dword ptr [ebp - 8] */ 6704 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36142D33: fstp dword ptr [ebp - 0x28] */ 6705 goto L_36142D3A; /* 0x36142D36: jmp 0x36142d3a */ 6706 L_36142D38: 6707 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142D38: fstp st(0) */ 6708 L_36142D3A: 6709 _st[0] += (double)*(float*)ADDR(edi + 0x140); /* 0x36142D3A: fadd dword ptr [edi + 0x140] */ 6710 esi = edi + 0x140; /* 0x36142D40: lea esi, [edi + 0x140] */ 6711 ecx = edi + 0x60; /* 0x36142D46: lea ecx, [edi + 0x60] */ 6712 MEM32(ebp + (-0x24)) = 0; /* 0x36142D49: mov dword ptr [ebp - 0x24], 0 */ 6713 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36142D50: fstp dword ptr [esi] */ 6714 MEM32(ebp + (-0x20)) = 0; /* 0x36142D52: mov dword ptr [ebp - 0x20], 0 */ 6715 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36142D59: fld dword ptr [ebp - 0x2c] */ 6716 MEM32(ebp + (-0x1C)) = 0; /* 0x36142D5C: mov dword ptr [ebp - 0x1c], 0 */ 6717 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x36142D63: fadd dword ptr [esi + 4] */ 6718 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36142D66: fstp dword ptr [esi + 4] */ 6719 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36142D69: fld dword ptr [ebp - 0x28] */ 6720 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x36142D6C: fadd dword ptr [esi + 8] */ 6721 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36142D6F: fstp dword ptr [esi + 8] */ 6722 fp_push(*(float*)&MEM32(ecx)); /* 0x36142D72: fld dword ptr [ecx] */ 6723 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142D74: fcomp dword ptr [0x3617040c] */ 6724 fp_pop(); 6725 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142D7A: fnstsw ax */ 6726 /* test HI8(eax), 0x40u */ /* 0x36142D7C: test ah, 0x40 */ 6727 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6728 _cf = 0; 6729 _flag_k = FK_NARROW(FK_TEST, 24); 6730 if (TEST_Z(_flag_a, _flag_b)) goto L_36142DA1; /* 0x36142D7F: je 0x36142da1 */ 6731 L_36142D81: 6732 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36142D81: fld dword ptr [ecx + 4] */ 6733 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142D84: fcomp dword ptr [0x3617040c] */ 6734 fp_pop(); 6735 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142D8A: fnstsw ax */ 6736 /* test HI8(eax), 0x40u */ /* 0x36142D8C: test ah, 0x40 */ 6737 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6738 _cf = 0; 6739 _flag_k = FK_NARROW(FK_TEST, 24); 6740 if (TEST_Z(_flag_a, _flag_b)) goto L_36142DA1; /* 0x36142D8F: je 0x36142da1 */ 6741 L_36142D91: 6742 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x36142D91: fld dword ptr [ecx + 8] */ 6743 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142D94: fcomp dword ptr [0x3617040c] */ 6744 fp_pop(); 6745 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142D9A: fnstsw ax */ 6746 /* test HI8(eax), 0x40u */ /* 0x36142D9C: test ah, 0x40 */ 6747 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6748 _cf = 0; 6749 _flag_k = FK_NARROW(FK_TEST, 24); 6750 if (TEST_NZ(_flag_a, _flag_b)) goto L_36142DF2; /* 0x36142D9F: jne 0x36142df2 */ 6751 L_36142DA1: 6752 edx = MEM32(ecx); /* 0x36142DA1: mov edx, dword ptr [ecx] */ 6753 eax = MEM32(ecx + 0x4); /* 0x36142DA3: mov eax, dword ptr [ecx + 4] */ 6754 ecx = MEM32(ecx + 0x8); /* 0x36142DA6: mov ecx, dword ptr [ecx + 8] */ 6755 MEM32(ebp + (-0x10)) = ecx; /* 0x36142DA9: mov dword ptr [ebp - 0x10], ecx */ 6756 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36142DAC: fld dword ptr [ebp - 0x10] */ 6757 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36142DAF: fmul dword ptr [ebp - 0x10] */ 6758 MEM32(ebp + (-0x14)) = eax; /* 0x36142DB2: mov dword ptr [ebp - 0x14], eax */ 6759 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36142DB5: fld dword ptr [ebp - 0x14] */ 6760 MEM32(ebp + (-0x18)) = edx; /* 0x36142DB8: mov dword ptr [ebp - 0x18], edx */ 6761 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36142DBB: fmul dword ptr [ebp - 0x14] */ 6762 PUSH32(esp, ecx); /* 0x36142DBE: push ecx */ 6763 ecx = ebp + (-0x18); /* 0x36142DBF: lea ecx, [ebp - 0x18] */ 6764 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142DC2: faddp st(1) */ 6765 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36142DC4: fld dword ptr [ebp - 0x18] */ 6766 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36142DC7: fmul dword ptr [ebp - 0x18] */ 6767 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142DCA: faddp st(1) */ 6768 _st[0] = sqrt(_st[0]); /* 0x36142DCC: fsqrt */ 6769 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36142DCE: fdivr dword ptr [0x36170380] */ 6770 _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x36142DD4: fmul dword ptr [ebp + 0x10] */ 6771 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36142DD7: fstp dword ptr [esp] */ 6772 RECOMP_ICALL(MEM32(0x36170184)); /* 0x36142DDA: call dword ptr [0x36170184] */ 6773 RECOMP_FLAGS_IN(); 6774 edx = MEM32(ebp + (-0x18)); /* 0x36142DE0: mov edx, dword ptr [ebp - 0x18] */ 6775 eax = MEM32(ebp + (-0x14)); /* 0x36142DE3: mov eax, dword ptr [ebp - 0x14] */ 6776 ecx = MEM32(ebp + (-0x10)); /* 0x36142DE6: mov ecx, dword ptr [ebp - 0x10] */ 6777 MEM32(ebp + (-0x24)) = edx; /* 0x36142DE9: mov dword ptr [ebp - 0x24], edx */ 6778 MEM32(ebp + (-0x20)) = eax; /* 0x36142DEC: mov dword ptr [ebp - 0x20], eax */ 6779 MEM32(ebp + (-0x1C)) = ecx; /* 0x36142DEF: mov dword ptr [ebp - 0x1c], ecx */ 6780 L_36142DF2: 6781 edx = esi; /* 0x36142DF2: mov edx, esi */ 6782 eax = MEM32(edx); /* 0x36142DF4: mov eax, dword ptr [edx] */ 6783 ecx = MEM32(edx + 0x4); /* 0x36142DF6: mov ecx, dword ptr [edx + 4] */ 6784 edx = MEM32(edx + 0x8); /* 0x36142DF9: mov edx, dword ptr [edx + 8] */ 6785 MEM32(ebp + (-0x18)) = eax; /* 0x36142DFC: mov dword ptr [ebp - 0x18], eax */ 6786 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36142DFF: fld dword ptr [ebp - 0x18] */ 6787 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36142E02: fsub dword ptr [ebp - 0x24] */ 6788 MEM32(ebp + (-0x14)) = ecx; /* 0x36142E05: mov dword ptr [ebp - 0x14], ecx */ 6789 MEM32(ebp + (-0x10)) = edx; /* 0x36142E08: mov dword ptr [ebp - 0x10], edx */ 6790 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36142E0B: fstp dword ptr [ebp - 0x18] */ 6791 eax = MEM32(ebp + (-0x18)); /* 0x36142E0E: mov eax, dword ptr [ebp - 0x18] */ 6792 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36142E11: fld dword ptr [ebp - 0x14] */ 6793 MEM32(ebp + (-0x30)) = eax; /* 0x36142E14: mov dword ptr [ebp - 0x30], eax */ 6794 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36142E17: fsub dword ptr [ebp - 0x20] */ 6795 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36142E1A: fstp dword ptr [ebp - 0x14] */ 6796 ecx = MEM32(ebp + (-0x14)); /* 0x36142E1D: mov ecx, dword ptr [ebp - 0x14] */ 6797 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36142E20: fld dword ptr [ebp - 0x10] */ 6798 MEM32(ebp + (-0x2C)) = ecx; /* 0x36142E23: mov dword ptr [ebp - 0x2c], ecx */ 6799 _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36142E26: fsub dword ptr [ebp - 0x1c] */ 6800 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36142E29: fstp dword ptr [ebp - 0x10] */ 6801 edx = MEM32(ebp + (-0x10)); /* 0x36142E2C: mov edx, dword ptr [ebp - 0x10] */ 6802 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36142E2F: fld dword ptr [ebp - 0x18] */ 6803 MEM32(ebp + (-0x28)) = edx; /* 0x36142E32: mov dword ptr [ebp - 0x28], edx */ 6804 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142E35: fcomp dword ptr [0x3617040c] */ 6805 fp_pop(); 6806 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142E3B: fnstsw ax */ 6807 /* test HI8(eax), 0x40u */ /* 0x36142E3D: test ah, 0x40 */ 6808 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6809 _cf = 0; 6810 _flag_k = FK_NARROW(FK_TEST, 24); 6811 if (TEST_Z(_flag_a, _flag_b)) goto L_36142E62; /* 0x36142E40: je 0x36142e62 */ 6812 L_36142E42: 6813 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36142E42: fld dword ptr [ebp - 0x14] */ 6814 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142E45: fcomp dword ptr [0x3617040c] */ 6815 fp_pop(); 6816 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142E4B: fnstsw ax */ 6817 /* test HI8(eax), 0x40u */ /* 0x36142E4D: test ah, 0x40 */ 6818 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6819 _cf = 0; 6820 _flag_k = FK_NARROW(FK_TEST, 24); 6821 if (TEST_Z(_flag_a, _flag_b)) goto L_36142E62; /* 0x36142E50: je 0x36142e62 */ 6822 L_36142E52: 6823 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36142E52: fld dword ptr [ebp - 0x10] */ 6824 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142E55: fcomp dword ptr [0x3617040c] */ 6825 fp_pop(); 6826 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142E5B: fnstsw ax */ 6827 /* test HI8(eax), 0x40u */ /* 0x36142E5D: test ah, 0x40 */ 6828 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6829 _cf = 0; 6830 _flag_k = FK_NARROW(FK_TEST, 24); 6831 if (TEST_NZ(_flag_a, _flag_b)) goto L_36142E9D; /* 0x36142E60: jne 0x36142e9d */ 6832 L_36142E62: 6833 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36142E62: fld dword ptr [ebp - 0x10] */ 6834 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36142E65: fmul dword ptr [ebp - 0x10] */ 6835 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36142E68: fld dword ptr [ebp - 0x14] */ 6836 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36142E6B: fmul dword ptr [ebp - 0x14] */ 6837 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142E6E: faddp st(1) */ 6838 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36142E70: fld dword ptr [ebp - 0x18] */ 6839 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36142E73: fmul dword ptr [ebp - 0x18] */ 6840 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142E76: faddp st(1) */ 6841 _st[0] = sqrt(_st[0]); /* 0x36142E78: fsqrt */ 6842 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36142E7A: fdivr dword ptr [0x36170380] */ 6843 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36142E80: fld dword ptr [ebp + 8] */ 6844 _st[0] -= (double)*(float*)ADDR(ebp + 0xC); /* 0x36142E83: fsub dword ptr [ebp + 0xc] */ 6845 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36142E86: fmulp st(1) */ 6846 fp_push(_st[0]); /* 0x36142E88: fld st(0) */ 6847 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36142E8A: fmul dword ptr [ebp - 0x18] */ 6848 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36142E8D: fstp dword ptr [ebp - 0x30] */ 6849 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36142E90: fld dword ptr [ebp - 0x2c] */ 6850 _st[0] *= _st[1]; /* 0x36142E93: fmul st(1) */ 6851 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36142E95: fstp dword ptr [ebp - 0x2c] */ 6852 _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36142E98: fmul dword ptr [ebp - 0x28] */ 6853 goto L_36142EA0; /* 0x36142E9B: jmp 0x36142ea0 */ 6854 L_36142E9D: 6855 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36142E9D: fld dword ptr [ebp - 0x28] */ 6856 L_36142EA0: 6857 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36142EA0: fld dword ptr [ebp - 0x30] */ 6858 eax = MEM32(ebp + (-0x24)); /* 0x36142EA3: mov eax, dword ptr [ebp - 0x24] */ 6859 _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36142EA6: fadd dword ptr [ebp - 0x24] */ 6860 ecx = MEM32(ebp + (-0x20)); /* 0x36142EA9: mov ecx, dword ptr [ebp - 0x20] */ 6861 edx = MEM32(ebp + (-0x1C)); /* 0x36142EAC: mov edx, dword ptr [ebp - 0x1c] */ 6862 MEM32(ebp + (-0x18)) = eax; /* 0x36142EAF: mov dword ptr [ebp - 0x18], eax */ 6863 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36142EB2: fstp dword ptr [ebp - 0x18] */ 6864 eax = MEM32(ebp + (-0x18)); /* 0x36142EB5: mov eax, dword ptr [ebp - 0x18] */ 6865 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36142EB8: fld dword ptr [ebp - 0x2c] */ 6866 MEM32(ebp + (-0x14)) = ecx; /* 0x36142EBB: mov dword ptr [ebp - 0x14], ecx */ 6867 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36142EBE: fadd dword ptr [ebp - 0x14] */ 6868 MEM32(ebp + (-0x10)) = edx; /* 0x36142EC1: mov dword ptr [ebp - 0x10], edx */ 6869 MEM32(esi) = eax; /* 0x36142EC4: mov dword ptr [esi], eax */ 6870 edi = POP32_VAL(esp); /* 0x36142EC6: pop edi */ 6871 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36142EC7: fstp dword ptr [ebp - 0x14] */ 6872 ecx = MEM32(ebp + (-0x14)); /* 0x36142ECA: mov ecx, dword ptr [ebp - 0x14] */ 6873 MEM32(esi + 0x4) = ecx; /* 0x36142ECD: mov dword ptr [esi + 4], ecx */ 6874 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36142ED0: fadd dword ptr [ebp - 0x10] */ 6875 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36142ED3: fstp dword ptr [ebp - 0x10] */ 6876 edx = MEM32(ebp + (-0x10)); /* 0x36142ED6: mov edx, dword ptr [ebp - 0x10] */ 6877 MEM32(esi + 0x8) = edx; /* 0x36142ED9: mov dword ptr [esi + 8], edx */ 6878 esi = MEM32(ebp + 0x14); /* 0x36142EDC: mov esi, dword ptr [ebp + 0x14] */ 6879 MEM32(esi) = eax; /* 0x36142EDF: mov dword ptr [esi], eax */ 6880 MEM32(esi + 0x4) = ecx; /* 0x36142EE1: mov dword ptr [esi + 4], ecx */ 6881 MEM32(esi + 0x8) = edx; /* 0x36142EE4: mov dword ptr [esi + 8], edx */ 6882 eax = 2; /* 0x36142EE7: mov eax, 2 */ 6883 esi = POP32_VAL(esp); /* 0x36142EEC: pop esi */ 6884 esp = ebp; /* 0x36142EED: mov esp, ebp */ 6885 ebp = POP32_VAL(esp); /* 0x36142EEF: pop ebp */ 6886 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36142EF0: ret 0x10 */ 6887 RECOMP_REGS_OUT(); 6888 } 6889 6890 void sub_36142F00(void) { 6891 int _fpu_cmp = 0; 6892 uint32_t _cf = 0; 6893 int _df = 1; 6894 uint32_t _flag_k = FK_NONE; 6895 uint32_t _flag_a = 0, _flag_b = 0; 6896 uint32_t _itail_tgt = 0; 6897 RECOMP_REGS_LOCALS 6898 RECOMP_ENTER(0x36142F00u); 6899 6900 L_36142F00: 6901 PUSH32(esp, ebp); /* 0x36142F00: push ebp */ 6902 ebp = esp; /* 0x36142F01: mov ebp, esp */ 6903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 6904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6905 esp = esp - 0x2Cu; /* 0x36142F03: sub esp, 0x2c */ 6906 _flag_k = FK_CMP; 6907 PUSH32(esp, esi); /* 0x36142F06: push esi */ 6908 esi = MEM32(0x3616F254); /* 0x36142F07: mov esi, dword ptr [0x3616f254] */ 6909 PUSH32(esp, edi); /* 0x36142F0D: push edi */ 6910 edi = ecx; /* 0x36142F0E: mov edi, ecx */ 6911 RECOMP_ICALL(esi); /* 0x36142F10: call esi */ 6912 RECOMP_FLAGS_IN(); 6913 MEM32(ebp + (-0x4)) = eax; /* 0x36142F12: mov dword ptr [ebp - 4], eax */ 6914 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x36142F15: fild dword ptr [ebp - 4] */ 6915 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x36142F18: fmul dword ptr [0x36170438] */ 6916 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x36142F1E: fsub dword ptr [0x36170464] */ 6917 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36142F24: fstp dword ptr [ebp - 4] */ 6918 RECOMP_ICALL(esi); /* 0x36142F27: call esi */ 6919 RECOMP_FLAGS_IN(); 6920 MEM32(ebp + (-0x8)) = eax; /* 0x36142F29: mov dword ptr [ebp - 8], eax */ 6921 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x36142F2C: fild dword ptr [ebp - 8] */ 6922 eax = MEM32(ebp + (-0x4)); /* 0x36142F2F: mov eax, dword ptr [ebp - 4] */ 6923 MEM32(ebp + (-0x24)) = eax; /* 0x36142F32: mov dword ptr [ebp - 0x24], eax */ 6924 MEM32(ebp + (-0x28)) = 0; /* 0x36142F35: mov dword ptr [ebp - 0x28], 0 */ 6925 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x36142F3C: fmul dword ptr [0x36170438] */ 6926 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x36142F42: fsub dword ptr [0x36170464] */ 6927 fp_push(_st[0]); /* 0x36142F48: fld st(0) */ 6928 _st[0] *= _st[1]; /* 0x36142F4A: fmul st(1) */ 6929 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36142F4C: fld dword ptr [ebp - 4] */ 6930 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36142F4F: fmul dword ptr [ebp - 4] */ 6931 { double _v = fp_pop(); _st[0] += _v; } /* 0x36142F52: faddp st(1) */ 6932 _st[0] = sqrt(_st[0]); /* 0x36142F54: fsqrt */ 6933 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142F56: fcom dword ptr [0x3617040c] */ 6934 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142F5C: fnstsw ax */ 6935 /* test HI8(eax), 0x40u */ /* 0x36142F5E: test ah, 0x40 */ 6936 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6937 _cf = 0; 6938 _flag_k = FK_NARROW(FK_TEST, 24); 6939 if (TEST_NZ(_flag_a, _flag_b)) goto L_36142F7B; /* 0x36142F61: jne 0x36142f7b */ 6940 L_36142F63: 6941 _st[0] = (double)*(float*)ADDR(ebp + 0xC) / _st[0]; /* 0x36142F63: fdivr dword ptr [ebp + 0xc] */ 6942 MEM32(ebp + (-0x28)) = 0; /* 0x36142F66: mov dword ptr [ebp - 0x28], 0 */ 6943 fp_xch(1); /* 0x36142F6D: fxch st(1) */ 6944 _st[0] *= _st[1]; /* 0x36142F6F: fmul st(1) */ 6945 fp_xch(1); /* 0x36142F71: fxch st(1) */ 6946 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36142F73: fld dword ptr [ebp - 4] */ 6947 _st[0] *= _st[1]; /* 0x36142F76: fmul st(1) */ 6948 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36142F78: fstp dword ptr [ebp - 0x24] */ 6949 L_36142F7B: 6950 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36142F7B: fstp st(0) */ 6951 esi = edi + 0x140; /* 0x36142F7D: lea esi, [edi + 0x140] */ 6952 _st[0] += (double)*(float*)ADDR(esi); /* 0x36142F83: fadd dword ptr [esi] */ 6953 ecx = edi + 0x60; /* 0x36142F85: lea ecx, [edi + 0x60] */ 6954 MEM32(ebp + (-0x20)) = 0; /* 0x36142F88: mov dword ptr [ebp - 0x20], 0 */ 6955 MEM32(ebp + (-0x1C)) = 0; /* 0x36142F8F: mov dword ptr [ebp - 0x1c], 0 */ 6956 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36142F96: fstp dword ptr [esi] */ 6957 MEM32(ebp + (-0x18)) = 0; /* 0x36142F98: mov dword ptr [ebp - 0x18], 0 */ 6958 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36142F9F: fld dword ptr [ebp - 0x28] */ 6959 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x36142FA2: fadd dword ptr [esi + 4] */ 6960 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36142FA5: fstp dword ptr [esi + 4] */ 6961 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36142FA8: fld dword ptr [ebp - 0x24] */ 6962 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x36142FAB: fadd dword ptr [esi + 8] */ 6963 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36142FAE: fstp dword ptr [esi + 8] */ 6964 fp_push(*(float*)&MEM32(ecx)); /* 0x36142FB1: fld dword ptr [ecx] */ 6965 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142FB3: fcomp dword ptr [0x3617040c] */ 6966 fp_pop(); 6967 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142FB9: fnstsw ax */ 6968 /* test HI8(eax), 0x40u */ /* 0x36142FBB: test ah, 0x40 */ 6969 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6970 _cf = 0; 6971 _flag_k = FK_NARROW(FK_TEST, 24); 6972 if (TEST_Z(_flag_a, _flag_b)) goto L_36142FE0; /* 0x36142FBE: je 0x36142fe0 */ 6973 L_36142FC0: 6974 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36142FC0: fld dword ptr [ecx + 4] */ 6975 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142FC3: fcomp dword ptr [0x3617040c] */ 6976 fp_pop(); 6977 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142FC9: fnstsw ax */ 6978 /* test HI8(eax), 0x40u */ /* 0x36142FCB: test ah, 0x40 */ 6979 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6980 _cf = 0; 6981 _flag_k = FK_NARROW(FK_TEST, 24); 6982 if (TEST_Z(_flag_a, _flag_b)) goto L_36142FE0; /* 0x36142FCE: je 0x36142fe0 */ 6983 L_36142FD0: 6984 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x36142FD0: fld dword ptr [ecx + 8] */ 6985 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142FD3: fcomp dword ptr [0x3617040c] */ 6986 fp_pop(); 6987 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142FD9: fnstsw ax */ 6988 /* test HI8(eax), 0x40u */ /* 0x36142FDB: test ah, 0x40 */ 6989 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 6990 _cf = 0; 6991 _flag_k = FK_NARROW(FK_TEST, 24); 6992 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143031; /* 0x36142FDE: jne 0x36143031 */ 6993 L_36142FE0: 6994 edx = MEM32(ecx); /* 0x36142FE0: mov edx, dword ptr [ecx] */ 6995 eax = MEM32(ecx + 0x4); /* 0x36142FE2: mov eax, dword ptr [ecx + 4] */ 6996 ecx = MEM32(ecx + 0x8); /* 0x36142FE5: mov ecx, dword ptr [ecx + 8] */ 6997 MEM32(ebp + (-0xC)) = ecx; /* 0x36142FE8: mov dword ptr [ebp - 0xc], ecx */ 6998 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36142FEB: fld dword ptr [ebp - 0xc] */ 6999 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36142FEE: fmul dword ptr [ebp - 0xc] */ 7000 MEM32(ebp + (-0x10)) = eax; /* 0x36142FF1: mov dword ptr [ebp - 0x10], eax */ 7001 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36142FF4: fld dword ptr [ebp - 0x10] */ 7002 MEM32(ebp + (-0x14)) = edx; /* 0x36142FF7: mov dword ptr [ebp - 0x14], edx */ 7003 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36142FFA: fmul dword ptr [ebp - 0x10] */ 7004 PUSH32(esp, ecx); /* 0x36142FFD: push ecx */ 7005 ecx = ebp + (-0x14); /* 0x36142FFE: lea ecx, [ebp - 0x14] */ 7006 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143001: faddp st(1) */ 7007 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36143003: fld dword ptr [ebp - 0x14] */ 7008 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36143006: fmul dword ptr [ebp - 0x14] */ 7009 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143009: faddp st(1) */ 7010 _st[0] = sqrt(_st[0]); /* 0x3614300B: fsqrt */ 7011 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x3614300D: fdivr dword ptr [0x36170380] */ 7012 _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x36143013: fmul dword ptr [ebp + 0x10] */ 7013 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36143016: fstp dword ptr [esp] */ 7014 RECOMP_ICALL(MEM32(0x36170184)); /* 0x36143019: call dword ptr [0x36170184] */ 7015 RECOMP_FLAGS_IN(); 7016 edx = MEM32(ebp + (-0x14)); /* 0x3614301F: mov edx, dword ptr [ebp - 0x14] */ 7017 eax = MEM32(ebp + (-0x10)); /* 0x36143022: mov eax, dword ptr [ebp - 0x10] */ 7018 ecx = MEM32(ebp + (-0xC)); /* 0x36143025: mov ecx, dword ptr [ebp - 0xc] */ 7019 MEM32(ebp + (-0x20)) = edx; /* 0x36143028: mov dword ptr [ebp - 0x20], edx */ 7020 MEM32(ebp + (-0x1C)) = eax; /* 0x3614302B: mov dword ptr [ebp - 0x1c], eax */ 7021 MEM32(ebp + (-0x18)) = ecx; /* 0x3614302E: mov dword ptr [ebp - 0x18], ecx */ 7022 L_36143031: 7023 edx = esi; /* 0x36143031: mov edx, esi */ 7024 eax = MEM32(edx); /* 0x36143033: mov eax, dword ptr [edx] */ 7025 ecx = MEM32(edx + 0x4); /* 0x36143035: mov ecx, dword ptr [edx + 4] */ 7026 edx = MEM32(edx + 0x8); /* 0x36143038: mov edx, dword ptr [edx + 8] */ 7027 MEM32(ebp + (-0x14)) = eax; /* 0x3614303B: mov dword ptr [ebp - 0x14], eax */ 7028 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3614303E: fld dword ptr [ebp - 0x14] */ 7029 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36143041: fsub dword ptr [ebp - 0x20] */ 7030 MEM32(ebp + (-0x10)) = ecx; /* 0x36143044: mov dword ptr [ebp - 0x10], ecx */ 7031 MEM32(ebp + (-0xC)) = edx; /* 0x36143047: mov dword ptr [ebp - 0xc], edx */ 7032 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3614304A: fstp dword ptr [ebp - 0x14] */ 7033 eax = MEM32(ebp + (-0x14)); /* 0x3614304D: mov eax, dword ptr [ebp - 0x14] */ 7034 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36143050: fld dword ptr [ebp - 0x10] */ 7035 MEM32(ebp + (-0x2C)) = eax; /* 0x36143053: mov dword ptr [ebp - 0x2c], eax */ 7036 _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36143056: fsub dword ptr [ebp - 0x1c] */ 7037 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36143059: fstp dword ptr [ebp - 0x10] */ 7038 ecx = MEM32(ebp + (-0x10)); /* 0x3614305C: mov ecx, dword ptr [ebp - 0x10] */ 7039 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3614305F: fld dword ptr [ebp - 0xc] */ 7040 MEM32(ebp + (-0x28)) = ecx; /* 0x36143062: mov dword ptr [ebp - 0x28], ecx */ 7041 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36143065: fsub dword ptr [ebp - 0x18] */ 7042 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36143068: fstp dword ptr [ebp - 0xc] */ 7043 edx = MEM32(ebp + (-0xC)); /* 0x3614306B: mov edx, dword ptr [ebp - 0xc] */ 7044 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3614306E: fld dword ptr [ebp - 0x14] */ 7045 MEM32(ebp + (-0x24)) = edx; /* 0x36143071: mov dword ptr [ebp - 0x24], edx */ 7046 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143074: fcomp dword ptr [0x3617040c] */ 7047 fp_pop(); 7048 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614307A: fnstsw ax */ 7049 /* test HI8(eax), 0x40u */ /* 0x3614307C: test ah, 0x40 */ 7050 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7051 _cf = 0; 7052 _flag_k = FK_NARROW(FK_TEST, 24); 7053 if (TEST_Z(_flag_a, _flag_b)) goto L_361430A1; /* 0x3614307F: je 0x361430a1 */ 7054 L_36143081: 7055 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36143081: fld dword ptr [ebp - 0x10] */ 7056 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143084: fcomp dword ptr [0x3617040c] */ 7057 fp_pop(); 7058 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614308A: fnstsw ax */ 7059 /* test HI8(eax), 0x40u */ /* 0x3614308C: test ah, 0x40 */ 7060 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7061 _cf = 0; 7062 _flag_k = FK_NARROW(FK_TEST, 24); 7063 if (TEST_Z(_flag_a, _flag_b)) goto L_361430A1; /* 0x3614308F: je 0x361430a1 */ 7064 L_36143091: 7065 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36143091: fld dword ptr [ebp - 0xc] */ 7066 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143094: fcomp dword ptr [0x3617040c] */ 7067 fp_pop(); 7068 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614309A: fnstsw ax */ 7069 /* test HI8(eax), 0x40u */ /* 0x3614309C: test ah, 0x40 */ 7070 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7071 _cf = 0; 7072 _flag_k = FK_NARROW(FK_TEST, 24); 7073 if (TEST_NZ(_flag_a, _flag_b)) goto L_361430DC; /* 0x3614309F: jne 0x361430dc */ 7074 L_361430A1: 7075 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361430A1: fld dword ptr [ebp - 0xc] */ 7076 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x361430A4: fmul dword ptr [ebp - 0xc] */ 7077 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361430A7: fld dword ptr [ebp - 0x10] */ 7078 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361430AA: fmul dword ptr [ebp - 0x10] */ 7079 { double _v = fp_pop(); _st[0] += _v; } /* 0x361430AD: faddp st(1) */ 7080 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361430AF: fld dword ptr [ebp - 0x14] */ 7081 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361430B2: fmul dword ptr [ebp - 0x14] */ 7082 { double _v = fp_pop(); _st[0] += _v; } /* 0x361430B5: faddp st(1) */ 7083 _st[0] = sqrt(_st[0]); /* 0x361430B7: fsqrt */ 7084 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x361430B9: fdivr dword ptr [0x36170380] */ 7085 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x361430BF: fld dword ptr [ebp + 8] */ 7086 _st[0] -= (double)*(float*)ADDR(ebp + 0xC); /* 0x361430C2: fsub dword ptr [ebp + 0xc] */ 7087 { double _v = fp_pop(); _st[0] *= _v; } /* 0x361430C5: fmulp st(1) */ 7088 fp_push(_st[0]); /* 0x361430C7: fld st(0) */ 7089 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361430C9: fmul dword ptr [ebp - 0x14] */ 7090 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x361430CC: fstp dword ptr [ebp - 0x2c] */ 7091 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361430CF: fld dword ptr [ebp - 0x28] */ 7092 _st[0] *= _st[1]; /* 0x361430D2: fmul st(1) */ 7093 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361430D4: fstp dword ptr [ebp - 0x28] */ 7094 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x361430D7: fmul dword ptr [ebp - 0x24] */ 7095 goto L_361430DF; /* 0x361430DA: jmp 0x361430df */ 7096 L_361430DC: 7097 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361430DC: fld dword ptr [ebp - 0x24] */ 7098 L_361430DF: 7099 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x361430DF: fld dword ptr [ebp - 0x2c] */ 7100 eax = MEM32(ebp + (-0x20)); /* 0x361430E2: mov eax, dword ptr [ebp - 0x20] */ 7101 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x361430E5: fadd dword ptr [ebp - 0x20] */ 7102 ecx = MEM32(ebp + (-0x1C)); /* 0x361430E8: mov ecx, dword ptr [ebp - 0x1c] */ 7103 edx = MEM32(ebp + (-0x18)); /* 0x361430EB: mov edx, dword ptr [ebp - 0x18] */ 7104 MEM32(ebp + (-0x14)) = eax; /* 0x361430EE: mov dword ptr [ebp - 0x14], eax */ 7105 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x361430F1: fstp dword ptr [ebp - 0x14] */ 7106 eax = MEM32(ebp + (-0x14)); /* 0x361430F4: mov eax, dword ptr [ebp - 0x14] */ 7107 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361430F7: fld dword ptr [ebp - 0x28] */ 7108 MEM32(ebp + (-0x10)) = ecx; /* 0x361430FA: mov dword ptr [ebp - 0x10], ecx */ 7109 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361430FD: fadd dword ptr [ebp - 0x10] */ 7110 MEM32(ebp + (-0xC)) = edx; /* 0x36143100: mov dword ptr [ebp - 0xc], edx */ 7111 MEM32(esi) = eax; /* 0x36143103: mov dword ptr [esi], eax */ 7112 edi = POP32_VAL(esp); /* 0x36143105: pop edi */ 7113 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36143106: fstp dword ptr [ebp - 0x10] */ 7114 ecx = MEM32(ebp + (-0x10)); /* 0x36143109: mov ecx, dword ptr [ebp - 0x10] */ 7115 MEM32(esi + 0x4) = ecx; /* 0x3614310C: mov dword ptr [esi + 4], ecx */ 7116 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3614310F: fadd dword ptr [ebp - 0xc] */ 7117 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36143112: fstp dword ptr [ebp - 0xc] */ 7118 edx = MEM32(ebp + (-0xC)); /* 0x36143115: mov edx, dword ptr [ebp - 0xc] */ 7119 MEM32(esi + 0x8) = edx; /* 0x36143118: mov dword ptr [esi + 8], edx */ 7120 esi = MEM32(ebp + 0x14); /* 0x3614311B: mov esi, dword ptr [ebp + 0x14] */ 7121 MEM32(esi) = eax; /* 0x3614311E: mov dword ptr [esi], eax */ 7122 MEM32(esi + 0x4) = ecx; /* 0x36143120: mov dword ptr [esi + 4], ecx */ 7123 MEM32(esi + 0x8) = edx; /* 0x36143123: mov dword ptr [esi + 8], edx */ 7124 eax = 2; /* 0x36143126: mov eax, 2 */ 7125 esi = POP32_VAL(esp); /* 0x3614312B: pop esi */ 7126 esp = ebp; /* 0x3614312C: mov esp, ebp */ 7127 ebp = POP32_VAL(esp); /* 0x3614312E: pop ebp */ 7128 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614312F: ret 0x10 */ 7129 RECOMP_REGS_OUT(); 7130 } 7131 7132 void sub_36142F9F(void) { 7133 int _fpu_cmp = 0; 7134 uint32_t _cf = 0; 7135 int _df = 1; 7136 uint32_t _flag_k = FK_NONE; 7137 uint32_t _flag_a = 0, _flag_b = 0; 7138 uint32_t _itail_tgt = 0; 7139 RECOMP_REGS_LOCALS 7140 RECOMP_ENTER(0x36142F9Fu); 7141 7142 L_36142F9F: 7143 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36142F9F: fld dword ptr [ebp - 0x28] */ 7144 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x36142FA2: fadd dword ptr [esi + 4] */ 7145 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36142FA5: fstp dword ptr [esi + 4] */ 7146 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36142FA8: fld dword ptr [ebp - 0x24] */ 7147 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x36142FAB: fadd dword ptr [esi + 8] */ 7148 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36142FAE: fstp dword ptr [esi + 8] */ 7149 fp_push(*(float*)&MEM32(ecx)); /* 0x36142FB1: fld dword ptr [ecx] */ 7150 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142FB3: fcomp dword ptr [0x3617040c] */ 7151 fp_pop(); 7152 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142FB9: fnstsw ax */ 7153 /* test HI8(eax), 0x40u */ /* 0x36142FBB: test ah, 0x40 */ 7154 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7155 _cf = 0; 7156 _flag_k = FK_NARROW(FK_TEST, 24); 7157 if (TEST_Z(_flag_a, _flag_b)) goto L_36142FE0; /* 0x36142FBE: je 0x36142fe0 */ 7158 L_36142FC0: 7159 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36142FC0: fld dword ptr [ecx + 4] */ 7160 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142FC3: fcomp dword ptr [0x3617040c] */ 7161 fp_pop(); 7162 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142FC9: fnstsw ax */ 7163 /* test HI8(eax), 0x40u */ /* 0x36142FCB: test ah, 0x40 */ 7164 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7165 _cf = 0; 7166 _flag_k = FK_NARROW(FK_TEST, 24); 7167 if (TEST_Z(_flag_a, _flag_b)) goto L_36142FE0; /* 0x36142FCE: je 0x36142fe0 */ 7168 L_36142FD0: 7169 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x36142FD0: fld dword ptr [ecx + 8] */ 7170 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36142FD3: fcomp dword ptr [0x3617040c] */ 7171 fp_pop(); 7172 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36142FD9: fnstsw ax */ 7173 /* test HI8(eax), 0x40u */ /* 0x36142FDB: test ah, 0x40 */ 7174 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7175 _cf = 0; 7176 _flag_k = FK_NARROW(FK_TEST, 24); 7177 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143031; /* 0x36142FDE: jne 0x36143031 */ 7178 L_36142FE0: 7179 edx = MEM32(ecx); /* 0x36142FE0: mov edx, dword ptr [ecx] */ 7180 eax = MEM32(ecx + 0x4); /* 0x36142FE2: mov eax, dword ptr [ecx + 4] */ 7181 ecx = MEM32(ecx + 0x8); /* 0x36142FE5: mov ecx, dword ptr [ecx + 8] */ 7182 MEM32(ebp + (-0xC)) = ecx; /* 0x36142FE8: mov dword ptr [ebp - 0xc], ecx */ 7183 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36142FEB: fld dword ptr [ebp - 0xc] */ 7184 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36142FEE: fmul dword ptr [ebp - 0xc] */ 7185 MEM32(ebp + (-0x10)) = eax; /* 0x36142FF1: mov dword ptr [ebp - 0x10], eax */ 7186 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36142FF4: fld dword ptr [ebp - 0x10] */ 7187 MEM32(ebp + (-0x14)) = edx; /* 0x36142FF7: mov dword ptr [ebp - 0x14], edx */ 7188 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36142FFA: fmul dword ptr [ebp - 0x10] */ 7189 PUSH32(esp, ecx); /* 0x36142FFD: push ecx */ 7190 ecx = ebp + (-0x14); /* 0x36142FFE: lea ecx, [ebp - 0x14] */ 7191 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143001: faddp st(1) */ 7192 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36143003: fld dword ptr [ebp - 0x14] */ 7193 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36143006: fmul dword ptr [ebp - 0x14] */ 7194 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143009: faddp st(1) */ 7195 _st[0] = sqrt(_st[0]); /* 0x3614300B: fsqrt */ 7196 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x3614300D: fdivr dword ptr [0x36170380] */ 7197 _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x36143013: fmul dword ptr [ebp + 0x10] */ 7198 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36143016: fstp dword ptr [esp] */ 7199 RECOMP_ICALL(MEM32(0x36170184)); /* 0x36143019: call dword ptr [0x36170184] */ 7200 RECOMP_FLAGS_IN(); 7201 edx = MEM32(ebp + (-0x14)); /* 0x3614301F: mov edx, dword ptr [ebp - 0x14] */ 7202 eax = MEM32(ebp + (-0x10)); /* 0x36143022: mov eax, dword ptr [ebp - 0x10] */ 7203 ecx = MEM32(ebp + (-0xC)); /* 0x36143025: mov ecx, dword ptr [ebp - 0xc] */ 7204 MEM32(ebp + (-0x20)) = edx; /* 0x36143028: mov dword ptr [ebp - 0x20], edx */ 7205 MEM32(ebp + (-0x1C)) = eax; /* 0x3614302B: mov dword ptr [ebp - 0x1c], eax */ 7206 MEM32(ebp + (-0x18)) = ecx; /* 0x3614302E: mov dword ptr [ebp - 0x18], ecx */ 7207 L_36143031: 7208 edx = esi; /* 0x36143031: mov edx, esi */ 7209 eax = MEM32(edx); /* 0x36143033: mov eax, dword ptr [edx] */ 7210 ecx = MEM32(edx + 0x4); /* 0x36143035: mov ecx, dword ptr [edx + 4] */ 7211 edx = MEM32(edx + 0x8); /* 0x36143038: mov edx, dword ptr [edx + 8] */ 7212 MEM32(ebp + (-0x14)) = eax; /* 0x3614303B: mov dword ptr [ebp - 0x14], eax */ 7213 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3614303E: fld dword ptr [ebp - 0x14] */ 7214 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36143041: fsub dword ptr [ebp - 0x20] */ 7215 MEM32(ebp + (-0x10)) = ecx; /* 0x36143044: mov dword ptr [ebp - 0x10], ecx */ 7216 MEM32(ebp + (-0xC)) = edx; /* 0x36143047: mov dword ptr [ebp - 0xc], edx */ 7217 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3614304A: fstp dword ptr [ebp - 0x14] */ 7218 eax = MEM32(ebp + (-0x14)); /* 0x3614304D: mov eax, dword ptr [ebp - 0x14] */ 7219 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36143050: fld dword ptr [ebp - 0x10] */ 7220 MEM32(ebp + (-0x2C)) = eax; /* 0x36143053: mov dword ptr [ebp - 0x2c], eax */ 7221 _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36143056: fsub dword ptr [ebp - 0x1c] */ 7222 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36143059: fstp dword ptr [ebp - 0x10] */ 7223 ecx = MEM32(ebp + (-0x10)); /* 0x3614305C: mov ecx, dword ptr [ebp - 0x10] */ 7224 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3614305F: fld dword ptr [ebp - 0xc] */ 7225 MEM32(ebp + (-0x28)) = ecx; /* 0x36143062: mov dword ptr [ebp - 0x28], ecx */ 7226 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36143065: fsub dword ptr [ebp - 0x18] */ 7227 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36143068: fstp dword ptr [ebp - 0xc] */ 7228 edx = MEM32(ebp + (-0xC)); /* 0x3614306B: mov edx, dword ptr [ebp - 0xc] */ 7229 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3614306E: fld dword ptr [ebp - 0x14] */ 7230 MEM32(ebp + (-0x24)) = edx; /* 0x36143071: mov dword ptr [ebp - 0x24], edx */ 7231 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143074: fcomp dword ptr [0x3617040c] */ 7232 fp_pop(); 7233 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614307A: fnstsw ax */ 7234 /* test HI8(eax), 0x40u */ /* 0x3614307C: test ah, 0x40 */ 7235 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7236 _cf = 0; 7237 _flag_k = FK_NARROW(FK_TEST, 24); 7238 if (TEST_Z(_flag_a, _flag_b)) goto L_361430A1; /* 0x3614307F: je 0x361430a1 */ 7239 L_36143081: 7240 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36143081: fld dword ptr [ebp - 0x10] */ 7241 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143084: fcomp dword ptr [0x3617040c] */ 7242 fp_pop(); 7243 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614308A: fnstsw ax */ 7244 /* test HI8(eax), 0x40u */ /* 0x3614308C: test ah, 0x40 */ 7245 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7246 _cf = 0; 7247 _flag_k = FK_NARROW(FK_TEST, 24); 7248 if (TEST_Z(_flag_a, _flag_b)) goto L_361430A1; /* 0x3614308F: je 0x361430a1 */ 7249 L_36143091: 7250 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36143091: fld dword ptr [ebp - 0xc] */ 7251 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143094: fcomp dword ptr [0x3617040c] */ 7252 fp_pop(); 7253 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614309A: fnstsw ax */ 7254 /* test HI8(eax), 0x40u */ /* 0x3614309C: test ah, 0x40 */ 7255 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7256 _cf = 0; 7257 _flag_k = FK_NARROW(FK_TEST, 24); 7258 if (TEST_NZ(_flag_a, _flag_b)) goto L_361430DC; /* 0x3614309F: jne 0x361430dc */ 7259 L_361430A1: 7260 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361430A1: fld dword ptr [ebp - 0xc] */ 7261 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x361430A4: fmul dword ptr [ebp - 0xc] */ 7262 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361430A7: fld dword ptr [ebp - 0x10] */ 7263 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361430AA: fmul dword ptr [ebp - 0x10] */ 7264 { double _v = fp_pop(); _st[0] += _v; } /* 0x361430AD: faddp st(1) */ 7265 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361430AF: fld dword ptr [ebp - 0x14] */ 7266 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361430B2: fmul dword ptr [ebp - 0x14] */ 7267 { double _v = fp_pop(); _st[0] += _v; } /* 0x361430B5: faddp st(1) */ 7268 _st[0] = sqrt(_st[0]); /* 0x361430B7: fsqrt */ 7269 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x361430B9: fdivr dword ptr [0x36170380] */ 7270 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x361430BF: fld dword ptr [ebp + 8] */ 7271 _st[0] -= (double)*(float*)ADDR(ebp + 0xC); /* 0x361430C2: fsub dword ptr [ebp + 0xc] */ 7272 { double _v = fp_pop(); _st[0] *= _v; } /* 0x361430C5: fmulp st(1) */ 7273 fp_push(_st[0]); /* 0x361430C7: fld st(0) */ 7274 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361430C9: fmul dword ptr [ebp - 0x14] */ 7275 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x361430CC: fstp dword ptr [ebp - 0x2c] */ 7276 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361430CF: fld dword ptr [ebp - 0x28] */ 7277 _st[0] *= _st[1]; /* 0x361430D2: fmul st(1) */ 7278 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361430D4: fstp dword ptr [ebp - 0x28] */ 7279 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x361430D7: fmul dword ptr [ebp - 0x24] */ 7280 goto L_361430DF; /* 0x361430DA: jmp 0x361430df */ 7281 L_361430DC: 7282 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361430DC: fld dword ptr [ebp - 0x24] */ 7283 L_361430DF: 7284 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x361430DF: fld dword ptr [ebp - 0x2c] */ 7285 eax = MEM32(ebp + (-0x20)); /* 0x361430E2: mov eax, dword ptr [ebp - 0x20] */ 7286 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x361430E5: fadd dword ptr [ebp - 0x20] */ 7287 ecx = MEM32(ebp + (-0x1C)); /* 0x361430E8: mov ecx, dword ptr [ebp - 0x1c] */ 7288 edx = MEM32(ebp + (-0x18)); /* 0x361430EB: mov edx, dword ptr [ebp - 0x18] */ 7289 MEM32(ebp + (-0x14)) = eax; /* 0x361430EE: mov dword ptr [ebp - 0x14], eax */ 7290 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x361430F1: fstp dword ptr [ebp - 0x14] */ 7291 eax = MEM32(ebp + (-0x14)); /* 0x361430F4: mov eax, dword ptr [ebp - 0x14] */ 7292 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361430F7: fld dword ptr [ebp - 0x28] */ 7293 MEM32(ebp + (-0x10)) = ecx; /* 0x361430FA: mov dword ptr [ebp - 0x10], ecx */ 7294 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361430FD: fadd dword ptr [ebp - 0x10] */ 7295 MEM32(ebp + (-0xC)) = edx; /* 0x36143100: mov dword ptr [ebp - 0xc], edx */ 7296 MEM32(esi) = eax; /* 0x36143103: mov dword ptr [esi], eax */ 7297 edi = POP32_VAL(esp); /* 0x36143105: pop edi */ 7298 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36143106: fstp dword ptr [ebp - 0x10] */ 7299 ecx = MEM32(ebp + (-0x10)); /* 0x36143109: mov ecx, dword ptr [ebp - 0x10] */ 7300 MEM32(esi + 0x4) = ecx; /* 0x3614310C: mov dword ptr [esi + 4], ecx */ 7301 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3614310F: fadd dword ptr [ebp - 0xc] */ 7302 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36143112: fstp dword ptr [ebp - 0xc] */ 7303 edx = MEM32(ebp + (-0xC)); /* 0x36143115: mov edx, dword ptr [ebp - 0xc] */ 7304 MEM32(esi + 0x8) = edx; /* 0x36143118: mov dword ptr [esi + 8], edx */ 7305 esi = MEM32(ebp + 0x14); /* 0x3614311B: mov esi, dword ptr [ebp + 0x14] */ 7306 MEM32(esi) = eax; /* 0x3614311E: mov dword ptr [esi], eax */ 7307 MEM32(esi + 0x4) = ecx; /* 0x36143120: mov dword ptr [esi + 4], ecx */ 7308 MEM32(esi + 0x8) = edx; /* 0x36143123: mov dword ptr [esi + 8], edx */ 7309 eax = 2; /* 0x36143126: mov eax, 2 */ 7310 esi = POP32_VAL(esp); /* 0x3614312B: pop esi */ 7311 esp = ebp; /* 0x3614312C: mov esp, ebp */ 7312 ebp = POP32_VAL(esp); /* 0x3614312E: pop ebp */ 7313 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614312F: ret 0x10 */ 7314 RECOMP_REGS_OUT(); 7315 } 7316 7317 void sub_361430DF(void) { 7318 int _fpu_cmp = 0; 7319 uint32_t _cf = 0; 7320 int _df = 1; 7321 uint32_t _flag_k = FK_NONE; 7322 uint32_t _flag_a = 0, _flag_b = 0; 7323 uint32_t _itail_tgt = 0; 7324 RECOMP_REGS_LOCALS 7325 RECOMP_ENTER(0x361430DFu); 7326 7327 L_361430DF: 7328 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x361430DF: fld dword ptr [ebp - 0x2c] */ 7329 eax = MEM32(ebp + (-0x20)); /* 0x361430E2: mov eax, dword ptr [ebp - 0x20] */ 7330 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x361430E5: fadd dword ptr [ebp - 0x20] */ 7331 ecx = MEM32(ebp + (-0x1C)); /* 0x361430E8: mov ecx, dword ptr [ebp - 0x1c] */ 7332 edx = MEM32(ebp + (-0x18)); /* 0x361430EB: mov edx, dword ptr [ebp - 0x18] */ 7333 MEM32(ebp + (-0x14)) = eax; /* 0x361430EE: mov dword ptr [ebp - 0x14], eax */ 7334 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x361430F1: fstp dword ptr [ebp - 0x14] */ 7335 eax = MEM32(ebp + (-0x14)); /* 0x361430F4: mov eax, dword ptr [ebp - 0x14] */ 7336 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361430F7: fld dword ptr [ebp - 0x28] */ 7337 MEM32(ebp + (-0x10)) = ecx; /* 0x361430FA: mov dword ptr [ebp - 0x10], ecx */ 7338 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361430FD: fadd dword ptr [ebp - 0x10] */ 7339 MEM32(ebp + (-0xC)) = edx; /* 0x36143100: mov dword ptr [ebp - 0xc], edx */ 7340 MEM32(esi) = eax; /* 0x36143103: mov dword ptr [esi], eax */ 7341 edi = POP32_VAL(esp); /* 0x36143105: pop edi */ 7342 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36143106: fstp dword ptr [ebp - 0x10] */ 7343 ecx = MEM32(ebp + (-0x10)); /* 0x36143109: mov ecx, dword ptr [ebp - 0x10] */ 7344 MEM32(esi + 0x4) = ecx; /* 0x3614310C: mov dword ptr [esi + 4], ecx */ 7345 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3614310F: fadd dword ptr [ebp - 0xc] */ 7346 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36143112: fstp dword ptr [ebp - 0xc] */ 7347 edx = MEM32(ebp + (-0xC)); /* 0x36143115: mov edx, dword ptr [ebp - 0xc] */ 7348 MEM32(esi + 0x8) = edx; /* 0x36143118: mov dword ptr [esi + 8], edx */ 7349 esi = MEM32(ebp + 0x14); /* 0x3614311B: mov esi, dword ptr [ebp + 0x14] */ 7350 MEM32(esi) = eax; /* 0x3614311E: mov dword ptr [esi], eax */ 7351 MEM32(esi + 0x4) = ecx; /* 0x36143120: mov dword ptr [esi + 4], ecx */ 7352 MEM32(esi + 0x8) = edx; /* 0x36143123: mov dword ptr [esi + 8], edx */ 7353 eax = 2; /* 0x36143126: mov eax, 2 */ 7354 esi = POP32_VAL(esp); /* 0x3614312B: pop esi */ 7355 esp = ebp; /* 0x3614312C: mov esp, ebp */ 7356 ebp = POP32_VAL(esp); /* 0x3614312E: pop ebp */ 7357 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614312F: ret 0x10 */ 7358 RECOMP_REGS_OUT(); 7359 } 7360 7361 void sub_36143140(void) { 7362 int _fpu_cmp = 0; 7363 uint32_t _cf = 0; 7364 int _df = 1; 7365 uint32_t _flag_k = FK_NONE; 7366 uint32_t _flag_a = 0, _flag_b = 0; 7367 uint32_t _itail_tgt = 0; 7368 RECOMP_REGS_LOCALS 7369 RECOMP_ENTER(0x36143140u); 7370 7371 L_36143140: 7372 PUSH32(esp, ebp); /* 0x36143140: push ebp */ 7373 ebp = esp; /* 0x36143141: mov ebp, esp */ 7374 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x54u); 7375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7376 esp = esp - 0x54u; /* 0x36143143: sub esp, 0x54 */ 7377 _flag_k = FK_CMP; 7378 PUSH32(esp, esi); /* 0x36143146: push esi */ 7379 esi = ecx; /* 0x36143147: mov esi, ecx */ 7380 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x36143149: fld dword ptr [esi + 0x60] */ 7381 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3614314C: fcomp dword ptr [0x3617040c] */ 7382 fp_pop(); 7383 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36143152: fnstsw ax */ 7384 /* test HI8(eax), 0x40u */ /* 0x36143154: test ah, 0x40 */ 7385 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7386 _cf = 0; 7387 _flag_k = FK_NARROW(FK_TEST, 24); 7388 if (TEST_Z(_flag_a, _flag_b)) goto L_36143182; /* 0x36143157: je 0x36143182 */ 7389 L_36143159: 7390 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x36143159: fld dword ptr [esi + 0x64] */ 7391 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3614315C: fcomp dword ptr [0x3617040c] */ 7392 fp_pop(); 7393 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36143162: fnstsw ax */ 7394 /* test HI8(eax), 0x40u */ /* 0x36143164: test ah, 0x40 */ 7395 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7396 _cf = 0; 7397 _flag_k = FK_NARROW(FK_TEST, 24); 7398 if (TEST_Z(_flag_a, _flag_b)) goto L_36143182; /* 0x36143167: je 0x36143182 */ 7399 L_36143169: 7400 fp_push(*(float*)&MEM32(esi + 0x68)); /* 0x36143169: fld dword ptr [esi + 0x68] */ 7401 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3614316C: fcomp dword ptr [0x3617040c] */ 7402 fp_pop(); 7403 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36143172: fnstsw ax */ 7404 /* test HI8(eax), 0x40u */ /* 0x36143174: test ah, 0x40 */ 7405 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 7406 _cf = 0; 7407 _flag_k = FK_NARROW(FK_TEST, 24); 7408 if (TEST_Z(_flag_a, _flag_b)) goto L_36143182; /* 0x36143177: je 0x36143182 */ 7409 L_36143179: 7410 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7411 eax = 0; /* 0x36143179: xor eax, eax */ 7412 _cf = 0; 7413 _flag_k = FK_TEST; 7414 esi = POP32_VAL(esp); /* 0x3614317B: pop esi */ 7415 esp = ebp; /* 0x3614317C: mov esp, ebp */ 7416 ebp = POP32_VAL(esp); /* 0x3614317E: pop ebp */ 7417 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614317F: ret 4 */ 7418 L_36143182: 7419 eax = esi + 0x54; /* 0x36143182: lea eax, [esi + 0x54] */ 7420 ecx = eax; /* 0x36143185: mov ecx, eax */ 7421 edx = MEM32(ecx); /* 0x36143187: mov edx, dword ptr [ecx] */ 7422 MEM32(ebp + (-0x48)) = edx; /* 0x36143189: mov dword ptr [ebp - 0x48], edx */ 7423 edx = MEM32(ecx + 0x4); /* 0x3614318C: mov edx, dword ptr [ecx + 4] */ 7424 ecx = MEM32(ecx + 0x8); /* 0x3614318F: mov ecx, dword ptr [ecx + 8] */ 7425 MEM32(ebp + (-0x44)) = edx; /* 0x36143192: mov dword ptr [ebp - 0x44], edx */ 7426 edx = MEM32(eax); /* 0x36143195: mov edx, dword ptr [eax] */ 7427 MEM32(ebp + (-0x18)) = edx; /* 0x36143197: mov dword ptr [ebp - 0x18], edx */ 7428 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3614319A: fld dword ptr [ebp - 0x18] */ 7429 _st[0] += (double)*(float*)ADDR(esi + 0x60); /* 0x3614319D: fadd dword ptr [esi + 0x60] */ 7430 edx = MEM32(eax + 0x8); /* 0x361431A0: mov edx, dword ptr [eax + 8] */ 7431 MEM32(ebp + (-0x40)) = ecx; /* 0x361431A3: mov dword ptr [ebp - 0x40], ecx */ 7432 ecx = MEM32(eax + 0x4); /* 0x361431A6: mov ecx, dword ptr [eax + 4] */ 7433 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361431A9: fstp dword ptr [ebp - 0x18] */ 7434 MEM32(ebp + (-0x14)) = ecx; /* 0x361431AC: mov dword ptr [ebp - 0x14], ecx */ 7435 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361431AF: fld dword ptr [ebp - 0x14] */ 7436 MEM32(ebp + (-0x10)) = edx; /* 0x361431B2: mov dword ptr [ebp - 0x10], edx */ 7437 _st[0] += (double)*(float*)ADDR(esi + 0x64); /* 0x361431B5: fadd dword ptr [esi + 0x64] */ 7438 ecx = esi; /* 0x361431B8: mov ecx, esi */ 7439 MEM32(ebp + (-0x30)) = 0; /* 0x361431BA: mov dword ptr [ebp - 0x30], 0 */ 7440 MEM32(ebp + (-0x2C)) = 0; /* 0x361431C1: mov dword ptr [ebp - 0x2c], 0 */ 7441 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x361431C8: fstp dword ptr [ebp - 0x14] */ 7442 MEM32(ebp + (-0x28)) = 0; /* 0x361431CB: mov dword ptr [ebp - 0x28], 0 */ 7443 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361431D2: fld dword ptr [ebp - 0x10] */ 7444 MEM32(ebp + (-0x3C)) = 0; /* 0x361431D5: mov dword ptr [ebp - 0x3c], 0 */ 7445 _st[0] += (double)*(float*)ADDR(esi + 0x68); /* 0x361431DC: fadd dword ptr [esi + 0x68] */ 7446 MEM32(ebp + (-0x38)) = 0; /* 0x361431DF: mov dword ptr [ebp - 0x38], 0 */ 7447 MEM32(ebp + (-0x34)) = 0; /* 0x361431E6: mov dword ptr [ebp - 0x34], 0 */ 7448 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361431ED: fstp dword ptr [ebp - 0x10] */ 7449 RECOMP_ICALL(MEM32(0x36170334)); /* 0x361431F0: call dword ptr [0x36170334] */ 7450 RECOMP_FLAGS_IN(); 7451 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361431F6: fld dword ptr [ebp - 0x18] */ 7452 ecx = MEM32(ebp + (-0x18)); /* 0x361431F9: mov ecx, dword ptr [ebp - 0x18] */ 7453 _st[0] += (double)*(float*)ADDR(eax); /* 0x361431FC: fadd dword ptr [eax] */ 7454 edx = MEM32(ebp + (-0x14)); /* 0x361431FE: mov edx, dword ptr [ebp - 0x14] */ 7455 MEM32(ebp + (-0x24)) = ecx; /* 0x36143201: mov dword ptr [ebp - 0x24], ecx */ 7456 ecx = MEM32(ebp + (-0x10)); /* 0x36143204: mov ecx, dword ptr [ebp - 0x10] */ 7457 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36143207: fstp dword ptr [ebp - 0x24] */ 7458 MEM32(ebp + (-0x20)) = edx; /* 0x3614320A: mov dword ptr [ebp - 0x20], edx */ 7459 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3614320D: fld dword ptr [ebp - 0x20] */ 7460 edx = MEM32(ebp + (-0x24)); /* 0x36143210: mov edx, dword ptr [ebp - 0x24] */ 7461 _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x36143213: fadd dword ptr [eax + 4] */ 7462 MEM32(ebp + (-0x1C)) = ecx; /* 0x36143216: mov dword ptr [ebp - 0x1c], ecx */ 7463 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36143219: fstp dword ptr [ebp - 0x20] */ 7464 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3614321C: fld dword ptr [ebp - 0x1c] */ 7465 _st[0] += (double)*(float*)ADDR(eax + 0x8); /* 0x3614321F: fadd dword ptr [eax + 8] */ 7466 eax = MEM32(ebp + (-0x20)); /* 0x36143222: mov eax, dword ptr [ebp - 0x20] */ 7467 MEM32(ebp + (-0x54)) = edx; /* 0x36143225: mov dword ptr [ebp - 0x54], edx */ 7468 edx = MEM32(esi); /* 0x36143228: mov edx, dword ptr [esi] */ 7469 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3614322A: fstp dword ptr [ebp - 0x1c] */ 7470 ecx = MEM32(ebp + (-0x1C)); /* 0x3614322D: mov ecx, dword ptr [ebp - 0x1c] */ 7471 MEM32(ebp + (-0x4C)) = ecx; /* 0x36143230: mov dword ptr [ebp - 0x4c], ecx */ 7472 ecx = esi; /* 0x36143233: mov ecx, esi */ 7473 MEM32(ebp + (-0x50)) = eax; /* 0x36143235: mov dword ptr [ebp - 0x50], eax */ 7474 RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x36143238: call dword ptr [edx + 0x40] */ 7475 RECOMP_FLAGS_IN(); 7476 edx = MEM32(eax); /* 0x3614323B: mov edx, dword ptr [eax] */ 7477 PUSH32(esp, 0); /* 0x3614323D: push 0 */ 7478 PUSH32(esp, 1); /* 0x3614323F: push 1 */ 7479 ecx = ebp + (-0x3C); /* 0x36143241: lea ecx, [ebp - 0x3c] */ 7480 PUSH32(esp, ecx); /* 0x36143244: push ecx */ 7481 ecx = ebp + (-0x30); /* 0x36143245: lea ecx, [ebp - 0x30] */ 7482 PUSH32(esp, ecx); /* 0x36143248: push ecx */ 7483 ecx = ebp + (-0x54); /* 0x36143249: lea ecx, [ebp - 0x54] */ 7484 PUSH32(esp, ecx); /* 0x3614324C: push ecx */ 7485 ecx = ebp + (-0x48); /* 0x3614324D: lea ecx, [ebp - 0x48] */ 7486 PUSH32(esp, ecx); /* 0x36143250: push ecx */ 7487 ecx = eax; /* 0x36143251: mov ecx, eax */ 7488 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x36143253: call dword ptr [edx + 0x10] */ 7489 RECOMP_FLAGS_IN(); 7490 /* test LO8(eax), LO8(eax) */ /* 0x36143256: test al, al */ 7491 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7492 _cf = 0; 7493 _flag_k = FK_NARROW(FK_TEST, 24); 7494 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143263; /* 0x36143258: jne 0x36143263 */ 7495 L_3614325A: 7496 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7497 eax = 0; /* 0x3614325A: xor eax, eax */ 7498 _cf = 0; 7499 _flag_k = FK_TEST; 7500 esi = POP32_VAL(esp); /* 0x3614325C: pop esi */ 7501 esp = ebp; /* 0x3614325D: mov esp, ebp */ 7502 ebp = POP32_VAL(esp); /* 0x3614325F: pop ebp */ 7503 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36143260: ret 4 */ 7504 L_36143263: 7505 eax = MEM32(ebp + (-0x2C)); /* 0x36143263: mov eax, dword ptr [ebp - 0x2c] */ 7506 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36143266: fld dword ptr [ebp - 0x30] */ 7507 _st[0] -= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36143269: fsub dword ptr [ebp - 0x48] */ 7508 ecx = MEM32(ebp + (-0x28)); /* 0x3614326C: mov ecx, dword ptr [ebp - 0x28] */ 7509 MEM32(ebp + (-0x20)) = eax; /* 0x3614326F: mov dword ptr [ebp - 0x20], eax */ 7510 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36143272: fld dword ptr [ebp - 0x20] */ 7511 _st[0] -= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x36143275: fsub dword ptr [ebp - 0x44] */ 7512 MEM32(ebp + (-0x1C)) = ecx; /* 0x36143278: mov dword ptr [ebp - 0x1c], ecx */ 7513 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3614327B: fld dword ptr [ebp - 0x1c] */ 7514 ecx = MEM32(esi + 0x60); /* 0x3614327E: mov ecx, dword ptr [esi + 0x60] */ 7515 _st[0] -= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36143281: fsub dword ptr [ebp - 0x40] */ 7516 eax = MEM32(esi + 0x64); /* 0x36143284: mov eax, dword ptr [esi + 0x64] */ 7517 edx = MEM32(ebp + (-0x30)); /* 0x36143287: mov edx, dword ptr [ebp - 0x30] */ 7518 MEM32(ebp + (-0x4)) = ecx; /* 0x3614328A: mov dword ptr [ebp - 4], ecx */ 7519 fp_push(_st[0]); /* 0x3614328D: fld st(0) */ 7520 MEM32(ebp + (-0x8)) = eax; /* 0x3614328F: mov dword ptr [ebp - 8], eax */ 7521 _st[0] *= _st[1]; /* 0x36143292: fmul st(1) */ 7522 MEM32(ebp + (-0x24)) = edx; /* 0x36143294: mov dword ptr [ebp - 0x24], edx */ 7523 fp_push(_st[2]); /* 0x36143297: fld st(2) */ 7524 edx = MEM32(esi + 0x68); /* 0x36143299: mov edx, dword ptr [esi + 0x68] */ 7525 _st[0] *= _st[3]; /* 0x3614329C: fmul st(3) */ 7526 MEM32(ebp + (-0xC)) = edx; /* 0x3614329E: mov dword ptr [ebp - 0xc], edx */ 7527 edx = MEM32(ebp + (-0x3C)); /* 0x361432A1: mov edx, dword ptr [ebp - 0x3c] */ 7528 eax = MEM32(ebp + (-0x38)); /* 0x361432A4: mov eax, dword ptr [ebp - 0x38] */ 7529 { double _v = fp_pop(); _st[0] += _v; } /* 0x361432A7: faddp st(1) */ 7530 ecx = MEM32(ebp + (-0x34)); /* 0x361432A9: mov ecx, dword ptr [ebp - 0x34] */ 7531 fp_push(_st[3]); /* 0x361432AC: fld st(3) */ 7532 MEM32(ebp + (-0x24)) = edx; /* 0x361432AE: mov dword ptr [ebp - 0x24], edx */ 7533 _st[0] *= _st[4]; /* 0x361432B1: fmul st(4) */ 7534 edx = MEM32(ebp + 0x8); /* 0x361432B3: mov edx, dword ptr [ebp + 8] */ 7535 MEM32(ebp + (-0x20)) = eax; /* 0x361432B6: mov dword ptr [ebp - 0x20], eax */ 7536 MEM32(ebp + (-0x1C)) = ecx; /* 0x361432B9: mov dword ptr [ebp - 0x1c], ecx */ 7537 { double _v = fp_pop(); _st[0] += _v; } /* 0x361432BC: faddp st(1) */ 7538 _st[0] = sqrt(_st[0]); /* 0x361432BE: fsqrt */ 7539 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x361432C0: fstp st(3) */ 7540 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361432C2: fstp st(0) */ 7541 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361432C4: fstp st(0) */ 7542 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361432C6: fld dword ptr [ebp - 4] */ 7543 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x361432C9: fmul dword ptr [ebp - 4] */ 7544 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361432CC: fld dword ptr [ebp - 8] */ 7545 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x361432CF: fmul dword ptr [ebp - 8] */ 7546 { double _v = fp_pop(); _st[0] += _v; } /* 0x361432D2: faddp st(1) */ 7547 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361432D4: fld dword ptr [ebp - 0xc] */ 7548 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x361432D7: fmul dword ptr [ebp - 0xc] */ 7549 { double _v = fp_pop(); _st[0] += _v; } /* 0x361432DA: faddp st(1) */ 7550 _st[0] = sqrt(_st[0]); /* 0x361432DC: fsqrt */ 7551 fp_xch(1); /* 0x361432DE: fxch st(1) */ 7552 fp_xch(1); /* 0x361432E0: fxch st(1) */ 7553 { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x361432E2: fdivp st(1) */ 7554 _st[0] *= (double)*(float*)ADDR(esi + 0x15C); /* 0x361432E4: fmul dword ptr [esi + 0x15c] */ 7555 fp_push(_st[0]); /* 0x361432EA: fld st(0) */ 7556 esi = POP32_VAL(esp); /* 0x361432EC: pop esi */ 7557 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x361432ED: fmul dword ptr [ebp - 0x3c] */ 7558 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361432F0: fstp dword ptr [ebp - 0x24] */ 7559 eax = MEM32(ebp + (-0x24)); /* 0x361432F3: mov eax, dword ptr [ebp - 0x24] */ 7560 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361432F6: fld dword ptr [ebp - 0x20] */ 7561 MEM32(edx) = eax; /* 0x361432F9: mov dword ptr [edx], eax */ 7562 _st[0] *= _st[1]; /* 0x361432FB: fmul st(1) */ 7563 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361432FD: fstp dword ptr [ebp - 0x20] */ 7564 ecx = MEM32(ebp + (-0x20)); /* 0x36143300: mov ecx, dword ptr [ebp - 0x20] */ 7565 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36143303: fld dword ptr [ebp - 0x1c] */ 7566 MEM32(edx + 0x4) = ecx; /* 0x36143306: mov dword ptr [edx + 4], ecx */ 7567 _st[0] *= _st[1]; /* 0x36143309: fmul st(1) */ 7568 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3614330B: fstp dword ptr [ebp - 0x1c] */ 7569 eax = MEM32(ebp + (-0x1C)); /* 0x3614330E: mov eax, dword ptr [ebp - 0x1c] */ 7570 MEM32(edx + 0x8) = eax; /* 0x36143311: mov dword ptr [edx + 8], eax */ 7571 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36143314: fstp st(0) */ 7572 eax = 2; /* 0x36143316: mov eax, 2 */ 7573 esp = ebp; /* 0x3614331B: mov esp, ebp */ 7574 ebp = POP32_VAL(esp); /* 0x3614331D: pop ebp */ 7575 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614331E: ret 4 */ 7576 RECOMP_REGS_OUT(); 7577 } 7578 7579 void sub_36143330(void) { 7580 int _fpu_cmp = 0; 7581 uint32_t _cf = 0; 7582 int _df = 1; 7583 uint32_t _flag_k = FK_NONE; 7584 uint32_t _flag_a = 0, _flag_b = 0; 7585 uint32_t _itail_tgt = 0; 7586 RECOMP_REGS_LOCALS 7587 RECOMP_ENTER(0x36143330u); 7588 7589 L_36143330: 7590 PUSH32(esp, ebp); /* 0x36143330: push ebp */ 7591 ebp = esp; /* 0x36143331: mov ebp, esp */ 7592 PUSH32(esp, 0xFFFFFFFFu); /* 0x36143333: push -1 */ 7593 PUSH32(esp, 0x3616CDF8u); /* 0x36143335: push 0x3616cdf8 */ 7594 eax = MEM32(FS_BASE + (0)); /* 0x3614333A: mov eax, dword ptr fs:[0] */ 7595 PUSH32(esp, eax); /* 0x36143340: push eax */ 7596 MEM32(FS_BASE + (0)) = esp; /* 0x36143341: mov dword ptr fs:[0], esp */ 7597 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 7598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7599 esp = esp - 0x28u; /* 0x36143348: sub esp, 0x28 */ 7600 _flag_k = FK_CMP; 7601 PUSH32(esp, ebx); /* 0x3614334B: push ebx */ 7602 PUSH32(esp, esi); /* 0x3614334C: push esi */ 7603 esi = ecx; /* 0x3614334D: mov esi, ecx */ 7604 eax = esi + 0x54; /* 0x3614334F: lea eax, [esi + 0x54] */ 7605 ecx = MEM32(eax); /* 0x36143352: mov ecx, dword ptr [eax] */ 7606 edx = MEM32(eax + 0x4); /* 0x36143354: mov edx, dword ptr [eax + 4] */ 7607 eax = MEM32(eax + 0x8); /* 0x36143357: mov eax, dword ptr [eax + 8] */ 7608 MEM32(ebp + (-0x18)) = ecx; /* 0x3614335A: mov dword ptr [ebp - 0x18], ecx */ 7609 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3614335D: mov cl, byte ptr [ebp + 0xb] */ 7610 MEM32(ebp + (-0x10)) = eax; /* 0x36143360: mov dword ptr [ebp - 0x10], eax */ 7611 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7612 eax = 0; /* 0x36143363: xor eax, eax */ 7613 _cf = 0; 7614 _flag_k = FK_TEST; 7615 PUSH32(esp, edi); /* 0x36143365: push edi */ 7616 MEM32(ebp + (-0x14)) = edx; /* 0x36143366: mov dword ptr [ebp - 0x14], edx */ 7617 MEM8(ebp + (-0x34)) = (uint8_t)(LO8(ecx)); /* 0x36143369: mov byte ptr [ebp - 0x34], cl */ 7618 MEM32(ebp + (-0x30)) = eax; /* 0x3614336C: mov dword ptr [ebp - 0x30], eax */ 7619 MEM32(ebp + (-0x2C)) = eax; /* 0x3614336F: mov dword ptr [ebp - 0x2c], eax */ 7620 MEM32(ebp + (-0x28)) = eax; /* 0x36143372: mov dword ptr [ebp - 0x28], eax */ 7621 edi = MEM32(ebp + 0x8); /* 0x36143375: mov edi, dword ptr [ebp + 8] */ 7622 PUSH32(esp, 0xC350u); /* 0x36143378: push 0xc350 */ 7623 PUSH32(esp, edi); /* 0x3614337D: push edi */ 7624 edx = ebp + (-0x18); /* 0x3614337E: lea edx, [ebp - 0x18] */ 7625 MEM32(ebp + (-0x4)) = eax; /* 0x36143381: mov dword ptr [ebp - 4], eax */ 7626 PUSH32(esp, edx); /* 0x36143384: push edx */ 7627 edx = MEM32(esi); /* 0x36143385: mov edx, dword ptr [esi] */ 7628 eax = ebp + (-0x34); /* 0x36143387: lea eax, [ebp - 0x34] */ 7629 PUSH32(esp, eax); /* 0x3614338A: push eax */ 7630 ecx = esi; /* 0x3614338B: mov ecx, esi */ 7631 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x3614338D: call dword ptr [edx + 0x7c] */ 7632 RECOMP_FLAGS_IN(); 7633 ebx = MEM32(0x361700E8); /* 0x36143390: mov ebx, dword ptr [0x361700e8] */ 7634 ecx = eax; /* 0x36143396: mov ecx, eax */ 7635 RECOMP_ICALL(ebx); /* 0x36143398: call ebx */ 7636 RECOMP_FLAGS_IN(); 7637 edx = MEM32(esi); /* 0x3614339A: mov edx, dword ptr [esi] */ 7638 PUSH32(esp, 0xC351u); /* 0x3614339C: push 0xc351 */ 7639 PUSH32(esp, edi); /* 0x361433A1: push edi */ 7640 eax = ebp + (-0x18); /* 0x361433A2: lea eax, [ebp - 0x18] */ 7641 PUSH32(esp, eax); /* 0x361433A5: push eax */ 7642 ecx = ebp + (-0x34); /* 0x361433A6: lea ecx, [ebp - 0x34] */ 7643 PUSH32(esp, ecx); /* 0x361433A9: push ecx */ 7644 ecx = esi; /* 0x361433AA: mov ecx, esi */ 7645 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x361433AC: call dword ptr [edx + 0x7c] */ 7646 RECOMP_FLAGS_IN(); 7647 ecx = eax; /* 0x361433AF: mov ecx, eax */ 7648 RECOMP_ICALL(ebx); /* 0x361433B1: call ebx */ 7649 RECOMP_FLAGS_IN(); 7650 edi = MEM32(ebp + (-0x30)); /* 0x361433B3: mov edi, dword ptr [ebp - 0x30] */ 7651 eax = MEM32(ebp + (-0x2C)); /* 0x361433B6: mov eax, dword ptr [ebp - 0x2c] */ 7652 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7653 ebx = 0; /* 0x361433B9: xor ebx, ebx */ 7654 _cf = 0; 7655 _flag_k = FK_TEST; 7656 /* cmp edi, eax */ /* 0x361433BB: cmp edi, eax */ 7657 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7659 _flag_k = FK_CMP; 7660 MEM32(ebp + 0x8) = 0x497423F0u; /* 0x361433BD: mov dword ptr [ebp + 8], 0x497423f0 */ 7661 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614342B; /* 0x361433C4: je 0x3614342b */ 7662 L_361433C6: 7663 ecx = MEM32(edi); /* 0x361433C6: mov ecx, dword ptr [edi] */ 7664 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x361433C8: call dword ptr [0x3616ffb0] */ 7665 RECOMP_FLAGS_IN(); 7666 ecx = MEM32(eax); /* 0x361433CE: mov ecx, dword ptr [eax] */ 7667 edx = MEM32(eax + 0x4); /* 0x361433D0: mov edx, dword ptr [eax + 4] */ 7668 eax = MEM32(eax + 0x8); /* 0x361433D3: mov eax, dword ptr [eax + 8] */ 7669 MEM32(ebp + (-0x24)) = ecx; /* 0x361433D6: mov dword ptr [ebp - 0x24], ecx */ 7670 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361433D9: fld dword ptr [ebp - 0x24] */ 7671 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x361433DC: fsub dword ptr [ebp - 0x18] */ 7672 MEM32(ebp + (-0x20)) = edx; /* 0x361433DF: mov dword ptr [ebp - 0x20], edx */ 7673 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361433E2: fld dword ptr [ebp - 0x20] */ 7674 MEM32(ebp + (-0x1C)) = eax; /* 0x361433E5: mov dword ptr [ebp - 0x1c], eax */ 7675 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361433E8: fsub dword ptr [ebp - 0x14] */ 7676 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x361433EB: fld dword ptr [ebp - 0x1c] */ 7677 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361433EE: fsub dword ptr [ebp - 0x10] */ 7678 fp_push(_st[0]); /* 0x361433F1: fld st(0) */ 7679 _st[0] *= _st[1]; /* 0x361433F3: fmul st(1) */ 7680 fp_push(_st[2]); /* 0x361433F5: fld st(2) */ 7681 _st[0] *= _st[3]; /* 0x361433F7: fmul st(3) */ 7682 { double _v = fp_pop(); _st[0] += _v; } /* 0x361433F9: faddp st(1) */ 7683 fp_push(_st[3]); /* 0x361433FB: fld st(3) */ 7684 _st[0] *= _st[4]; /* 0x361433FD: fmul st(4) */ 7685 { double _v = fp_pop(); _st[0] += _v; } /* 0x361433FF: faddp st(1) */ 7686 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36143401: fstp st(3) */ 7687 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36143403: fstp st(0) */ 7688 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36143405: fstp st(0) */ 7689 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x36143407: fcom dword ptr [ebp + 8] */ 7690 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614340A: fnstsw ax */ 7691 /* test HI8(eax), 1 */ /* 0x3614340C: test ah, 1 */ 7692 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7693 _cf = 0; 7694 _flag_k = FK_NARROW(FK_TEST, 24); 7695 if (TEST_Z(_flag_a, _flag_b)) goto L_36143418; /* 0x3614340F: je 0x36143418 */ 7696 L_36143411: 7697 ebx = MEM32(edi); /* 0x36143411: mov ebx, dword ptr [edi] */ 7698 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x36143413: fstp dword ptr [ebp + 8] */ 7699 goto L_3614341A; /* 0x36143416: jmp 0x3614341a */ 7700 L_36143418: 7701 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36143418: fstp st(0) */ 7702 L_3614341A: 7703 eax = MEM32(ebp + (-0x2C)); /* 0x3614341A: mov eax, dword ptr [ebp - 0x2c] */ 7704 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 7705 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7706 edi = edi + 4; /* 0x3614341D: add edi, 4 */ 7707 _flag_k = FK_ADD; 7708 /* cmp edi, eax */ /* 0x36143420: cmp edi, eax */ 7709 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7711 _flag_k = FK_CMP; 7712 RECOMP_BACKEDGE(); 7713 if (CMP_NE(_flag_a, _flag_b)) goto L_361433C6; /* 0x36143422: jne 0x361433c6 */ 7714 L_36143424: 7715 /* test ebx, ebx */ /* 0x36143424: test ebx, ebx */ 7716 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7717 _cf = 0; 7718 _flag_k = FK_TEST; 7719 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143449; /* 0x36143426: jne 0x36143449 */ 7720 L_36143428: 7721 edi = MEM32(ebp + (-0x30)); /* 0x36143428: mov edi, dword ptr [ebp - 0x30] */ 7722 L_3614342B: 7723 PUSH32(esp, edi); /* 0x3614342B: push edi */ 7724 RECOMP_ICALL(0x3615FCC4u); /* 0x3614342C: call 0x3615fcc4 */ /* not lifted */ 7725 RECOMP_FLAGS_IN(); 7726 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7727 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7728 esp = esp + 4; /* 0x36143431: add esp, 4 */ 7729 _flag_k = FK_ADD; 7730 edi = POP32_VAL(esp); /* 0x36143434: pop edi */ 7731 esi = POP32_VAL(esp); /* 0x36143435: pop esi */ 7732 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7733 eax = 0; /* 0x36143436: xor eax, eax */ 7734 _cf = 0; 7735 _flag_k = FK_TEST; 7736 ebx = POP32_VAL(esp); /* 0x36143438: pop ebx */ 7737 ecx = MEM32(ebp + (-0xC)); /* 0x36143439: mov ecx, dword ptr [ebp - 0xc] */ 7738 MEM32(FS_BASE + (0)) = ecx; /* 0x3614343C: mov dword ptr fs:[0], ecx */ 7739 esp = ebp; /* 0x36143443: mov esp, ebp */ 7740 ebp = POP32_VAL(esp); /* 0x36143445: pop ebp */ 7741 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36143446: ret 8 */ 7742 L_36143449: 7743 eax = MEM32(ebp + 0xC); /* 0x36143449: mov eax, dword ptr [ebp + 0xc] */ 7744 MEM32(ebp + (-0x24)) = 0; /* 0x3614344C: mov dword ptr [ebp - 0x24], 0 */ 7745 edx = MEM32(ebp + (-0x24)); /* 0x36143453: mov edx, dword ptr [ebp - 0x24] */ 7746 ecx = eax; /* 0x36143456: mov ecx, eax */ 7747 MEM32(ecx) = edx; /* 0x36143458: mov dword ptr [ecx], edx */ 7748 MEM32(ebp + (-0x20)) = 0; /* 0x3614345A: mov dword ptr [ebp - 0x20], 0 */ 7749 edx = MEM32(ebp + (-0x20)); /* 0x36143461: mov edx, dword ptr [ebp - 0x20] */ 7750 MEM32(ecx + 0x4) = edx; /* 0x36143464: mov dword ptr [ecx + 4], edx */ 7751 MEM32(ebp + (-0x1C)) = 0; /* 0x36143467: mov dword ptr [ebp - 0x1c], 0 */ 7752 edx = MEM32(ebp + (-0x1C)); /* 0x3614346E: mov edx, dword ptr [ebp - 0x1c] */ 7753 MEM32(ecx + 0x8) = edx; /* 0x36143471: mov dword ptr [ecx + 8], edx */ 7754 PUSH32(esp, eax); /* 0x36143474: push eax */ 7755 ecx = ebx; /* 0x36143475: mov ecx, ebx */ 7756 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36143477: call dword ptr [0x3616ffb0] */ 7757 RECOMP_FLAGS_IN(); 7758 PUSH32(esp, eax); /* 0x3614347D: push eax */ 7759 ecx = esi; /* 0x3614347E: mov ecx, esi */ 7760 RECOMP_ICALL(MEM32(0x36170338)); /* 0x36143480: call dword ptr [0x36170338] */ 7761 RECOMP_FLAGS_IN(); 7762 esi = eax; /* 0x36143486: mov esi, eax */ 7763 eax = MEM32(ebp + (-0x30)); /* 0x36143488: mov eax, dword ptr [ebp - 0x30] */ 7764 PUSH32(esp, eax); /* 0x3614348B: push eax */ 7765 RECOMP_ICALL(0x3615FCC4u); /* 0x3614348C: call 0x3615fcc4 */ /* not lifted */ 7766 RECOMP_FLAGS_IN(); 7767 ecx = MEM32(ebp + (-0xC)); /* 0x36143491: mov ecx, dword ptr [ebp - 0xc] */ 7768 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7769 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7770 esp = esp + 4; /* 0x36143494: add esp, 4 */ 7771 _flag_k = FK_ADD; 7772 edi = POP32_VAL(esp); /* 0x36143497: pop edi */ 7773 eax = esi; /* 0x36143498: mov eax, esi */ 7774 esi = POP32_VAL(esp); /* 0x3614349A: pop esi */ 7775 ebx = POP32_VAL(esp); /* 0x3614349B: pop ebx */ 7776 MEM32(FS_BASE + (0)) = ecx; /* 0x3614349C: mov dword ptr fs:[0], ecx */ 7777 esp = ebp; /* 0x361434A3: mov esp, ebp */ 7778 ebp = POP32_VAL(esp); /* 0x361434A5: pop ebp */ 7779 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361434A6: ret 8 */ 7780 RECOMP_REGS_OUT(); 7781 } 7782 7783 void sub_361434B0(void) { 7784 int _fpu_cmp = 0; 7785 uint32_t _cf = 0; 7786 int _df = 1; 7787 uint32_t _flag_k = FK_NONE; 7788 uint32_t _flag_a = 0, _flag_b = 0; 7789 uint32_t _itail_tgt = 0; 7790 RECOMP_REGS_LOCALS 7791 RECOMP_ENTER(0x361434B0u); 7792 7793 L_361434B0: 7794 PUSH32(esp, ebp); /* 0x361434B0: push ebp */ 7795 ebp = esp; /* 0x361434B1: mov ebp, esp */ 7796 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 7797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7798 esp = esp - 0x1Cu; /* 0x361434B3: sub esp, 0x1c */ 7799 _flag_k = FK_CMP; 7800 PUSH32(esp, ebx); /* 0x361434B6: push ebx */ 7801 PUSH32(esp, esi); /* 0x361434B7: push esi */ 7802 esi = ecx; /* 0x361434B8: mov esi, ecx */ 7803 eax = MEM32(esi); /* 0x361434BA: mov eax, dword ptr [esi] */ 7804 PUSH32(esp, edi); /* 0x361434BC: push edi */ 7805 RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x361434BD: call dword ptr [eax + 0x7c] */ 7806 RECOMP_FLAGS_IN(); 7807 ebx = eax; /* 0x361434C0: mov ebx, eax */ 7808 ecx = ebx; /* 0x361434C2: mov ecx, ebx */ 7809 RECOMP_ICALL(0x3614CE70u); /* 0x361434C4: call 0x3614ce70 */ /* not lifted */ 7810 RECOMP_FLAGS_IN(); 7811 edx = MEM32(esi); /* 0x361434C9: mov edx, dword ptr [esi] */ 7812 ecx = esi; /* 0x361434CB: mov ecx, esi */ 7813 MEM32(ebp + (-0x4)) = eax; /* 0x361434CD: mov dword ptr [ebp - 4], eax */ 7814 RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x361434D0: call dword ptr [edx + 0x40] */ 7815 RECOMP_FLAGS_IN(); 7816 /* test eax, eax */ /* 0x361434D3: test eax, eax */ 7817 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7818 _cf = 0; 7819 _flag_k = FK_TEST; 7820 if (TEST_Z(_flag_a, _flag_b)) goto L_361434ED; /* 0x361434D5: je 0x361434ed */ 7821 L_361434D7: 7822 eax = MEM32(esi); /* 0x361434D7: mov eax, dword ptr [esi] */ 7823 ecx = esi; /* 0x361434D9: mov ecx, esi */ 7824 RECOMP_ICALL(MEM32(eax + 0x40)); /* 0x361434DB: call dword ptr [eax + 0x40] */ 7825 RECOMP_FLAGS_IN(); 7826 edx = MEM32(eax); /* 0x361434DE: mov edx, dword ptr [eax] */ 7827 PUSH32(esp, 0); /* 0x361434E0: push 0 */ 7828 PUSH32(esp, 0); /* 0x361434E2: push 0 */ 7829 ecx = esi + 0x54; /* 0x361434E4: lea ecx, [esi + 0x54] */ 7830 PUSH32(esp, ecx); /* 0x361434E7: push ecx */ 7831 ecx = eax; /* 0x361434E8: mov ecx, eax */ 7832 RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x361434EA: call dword ptr [edx + 0x20] */ 7833 RECOMP_FLAGS_IN(); 7834 L_361434ED: 7835 edi = esi + 0x54; /* 0x361434ED: lea edi, [esi + 0x54] */ 7836 PUSH32(esp, edi); /* 0x361434F0: push edi */ 7837 ecx = ebx; /* 0x361434F1: mov ecx, ebx */ 7838 RECOMP_ICALL(MEM32(0x3616FD98)); /* 0x361434F3: call dword ptr [0x3616fd98] */ 7839 RECOMP_FLAGS_IN(); 7840 ecx = MEM32(ebp + (-0x4)); /* 0x361434F9: mov ecx, dword ptr [ebp - 4] */ 7841 PUSH32(esp, eax); /* 0x361434FC: push eax */ 7842 RECOMP_ICALL(0x3614ECB0u); /* 0x361434FD: call 0x3614ecb0 */ /* not lifted */ 7843 RECOMP_FLAGS_IN(); 7844 /* cmp MEM32(ebp + 0x8), eax */ /* 0x36143502: cmp dword ptr [ebp + 8], eax */ 7845 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(eax); 7846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7847 _flag_k = FK_CMP; 7848 if (CMP_EQ(_flag_a, _flag_b)) goto L_36143590; /* 0x36143505: je 0x36143590 */ 7849 L_3614350B: 7850 fp_push(*(float*)&MEM32(esi + 0x15C)); /* 0x3614350B: fld dword ptr [esi + 0x15c] */ 7851 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14Cu); 7852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7853 esi = esi + 0x14Cu; /* 0x36143511: add esi, 0x14c */ 7854 _flag_k = FK_ADD; 7855 edx = MEM32(esi); /* 0x36143517: mov edx, dword ptr [esi] */ 7856 eax = MEM32(esi + 0x4); /* 0x36143519: mov eax, dword ptr [esi + 4] */ 7857 ecx = MEM32(esi + 0x8); /* 0x3614351C: mov ecx, dword ptr [esi + 8] */ 7858 MEM32(ebp + (-0x10)) = edx; /* 0x3614351F: mov dword ptr [ebp - 0x10], edx */ 7859 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36143522: fld dword ptr [ebp - 0x10] */ 7860 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36143525: fsub dword ptr [edi] */ 7861 MEM32(ebp + (-0xC)) = eax; /* 0x36143527: mov dword ptr [ebp - 0xc], eax */ 7862 MEM32(ebp + (-0x8)) = ecx; /* 0x3614352A: mov dword ptr [ebp - 8], ecx */ 7863 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3614352D: fstp dword ptr [ebp - 0x10] */ 7864 edx = MEM32(ebp + (-0x10)); /* 0x36143530: mov edx, dword ptr [ebp - 0x10] */ 7865 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36143533: fld dword ptr [ebp - 0xc] */ 7866 MEM32(ebp + (-0x1C)) = edx; /* 0x36143536: mov dword ptr [ebp - 0x1c], edx */ 7867 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36143539: fsub dword ptr [edi + 4] */ 7868 edx = MEM32(ebp + 0xC); /* 0x3614353C: mov edx, dword ptr [ebp + 0xc] */ 7869 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3614353F: fstp dword ptr [ebp - 0xc] */ 7870 eax = MEM32(ebp + (-0xC)); /* 0x36143542: mov eax, dword ptr [ebp - 0xc] */ 7871 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36143545: fld dword ptr [ebp - 8] */ 7872 MEM32(ebp + (-0x18)) = eax; /* 0x36143548: mov dword ptr [ebp - 0x18], eax */ 7873 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x3614354B: fsub dword ptr [edi + 8] */ 7874 edi = POP32_VAL(esp); /* 0x3614354E: pop edi */ 7875 esi = POP32_VAL(esp); /* 0x3614354F: pop esi */ 7876 ebx = POP32_VAL(esp); /* 0x36143550: pop ebx */ 7877 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36143551: fstp dword ptr [ebp - 8] */ 7878 ecx = MEM32(ebp + (-0x8)); /* 0x36143554: mov ecx, dword ptr [ebp - 8] */ 7879 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36143557: fld dword ptr [ebp - 0x10] */ 7880 MEM32(ebp + (-0x14)) = ecx; /* 0x3614355A: mov dword ptr [ebp - 0x14], ecx */ 7881 _st[0] *= _st[1]; /* 0x3614355D: fmul st(1) */ 7882 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3614355F: fstp dword ptr [ebp - 0x1c] */ 7883 eax = MEM32(ebp + (-0x1C)); /* 0x36143562: mov eax, dword ptr [ebp - 0x1c] */ 7884 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36143565: fld dword ptr [ebp - 0x18] */ 7885 MEM32(edx) = eax; /* 0x36143568: mov dword ptr [edx], eax */ 7886 _st[0] *= _st[1]; /* 0x3614356A: fmul st(1) */ 7887 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3614356C: fstp dword ptr [ebp - 0x18] */ 7888 ecx = MEM32(ebp + (-0x18)); /* 0x3614356F: mov ecx, dword ptr [ebp - 0x18] */ 7889 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36143572: fld dword ptr [ebp - 0x14] */ 7890 MEM32(edx + 0x4) = ecx; /* 0x36143575: mov dword ptr [edx + 4], ecx */ 7891 _st[0] *= _st[1]; /* 0x36143578: fmul st(1) */ 7892 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3614357A: fstp dword ptr [ebp - 0x14] */ 7893 eax = MEM32(ebp + (-0x14)); /* 0x3614357D: mov eax, dword ptr [ebp - 0x14] */ 7894 MEM32(edx + 0x8) = eax; /* 0x36143580: mov dword ptr [edx + 8], eax */ 7895 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36143583: fstp st(0) */ 7896 eax = 2; /* 0x36143585: mov eax, 2 */ 7897 esp = ebp; /* 0x3614358A: mov esp, ebp */ 7898 ebp = POP32_VAL(esp); /* 0x3614358C: pop ebp */ 7899 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614358D: ret 8 */ 7900 L_36143590: 7901 ecx = MEM32(edi); /* 0x36143590: mov ecx, dword ptr [edi] */ 7902 edx = MEM32(edi + 0x4); /* 0x36143592: mov edx, dword ptr [edi + 4] */ 7903 eax = MEM32(edi + 0x8); /* 0x36143595: mov eax, dword ptr [edi + 8] */ 7904 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14Cu); 7905 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7906 esi = esi + 0x14Cu; /* 0x36143598: add esi, 0x14c */ 7907 _flag_k = FK_ADD; 7908 MEM32(esi) = ecx; /* 0x3614359E: mov dword ptr [esi], ecx */ 7909 ecx = MEM32(ebp + 0xC); /* 0x361435A0: mov ecx, dword ptr [ebp + 0xc] */ 7910 MEM32(esi + 0x4) = edx; /* 0x361435A3: mov dword ptr [esi + 4], edx */ 7911 MEM32(esi + 0x8) = eax; /* 0x361435A6: mov dword ptr [esi + 8], eax */ 7912 MEM32(ebp + (-0x1C)) = 0; /* 0x361435A9: mov dword ptr [ebp - 0x1c], 0 */ 7913 edx = MEM32(ebp + (-0x1C)); /* 0x361435B0: mov edx, dword ptr [ebp - 0x1c] */ 7914 MEM32(ecx) = edx; /* 0x361435B3: mov dword ptr [ecx], edx */ 7915 MEM32(ebp + (-0x18)) = 0; /* 0x361435B5: mov dword ptr [ebp - 0x18], 0 */ 7916 eax = MEM32(ebp + (-0x18)); /* 0x361435BC: mov eax, dword ptr [ebp - 0x18] */ 7917 edi = POP32_VAL(esp); /* 0x361435BF: pop edi */ 7918 MEM32(ebp + (-0x14)) = 0; /* 0x361435C0: mov dword ptr [ebp - 0x14], 0 */ 7919 edx = MEM32(ebp + (-0x14)); /* 0x361435C7: mov edx, dword ptr [ebp - 0x14] */ 7920 MEM32(ecx + 0x4) = eax; /* 0x361435CA: mov dword ptr [ecx + 4], eax */ 7921 esi = POP32_VAL(esp); /* 0x361435CD: pop esi */ 7922 MEM32(ecx + 0x8) = edx; /* 0x361435CE: mov dword ptr [ecx + 8], edx */ 7923 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7924 eax = 0; /* 0x361435D1: xor eax, eax */ 7925 _cf = 0; 7926 _flag_k = FK_TEST; 7927 ebx = POP32_VAL(esp); /* 0x361435D3: pop ebx */ 7928 esp = ebp; /* 0x361435D4: mov esp, ebp */ 7929 ebp = POP32_VAL(esp); /* 0x361435D6: pop ebp */ 7930 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361435D7: ret 8 */ 7931 RECOMP_REGS_OUT(); 7932 } 7933 7934 void sub_361435BC(void) { 7935 int _fpu_cmp = 0; 7936 uint32_t _cf = 0; 7937 int _df = 1; 7938 uint32_t _flag_k = FK_NONE; 7939 uint32_t _flag_a = 0, _flag_b = 0; 7940 uint32_t _itail_tgt = 0; 7941 RECOMP_REGS_LOCALS 7942 RECOMP_ENTER(0x361435BCu); 7943 7944 L_361435BC: 7945 eax = MEM32(ebp + (-0x18)); /* 0x361435BC: mov eax, dword ptr [ebp - 0x18] */ 7946 edi = POP32_VAL(esp); /* 0x361435BF: pop edi */ 7947 MEM32(ebp + (-0x14)) = 0; /* 0x361435C0: mov dword ptr [ebp - 0x14], 0 */ 7948 edx = MEM32(ebp + (-0x14)); /* 0x361435C7: mov edx, dword ptr [ebp - 0x14] */ 7949 MEM32(ecx + 0x4) = eax; /* 0x361435CA: mov dword ptr [ecx + 4], eax */ 7950 esi = POP32_VAL(esp); /* 0x361435CD: pop esi */ 7951 MEM32(ecx + 0x8) = edx; /* 0x361435CE: mov dword ptr [ecx + 8], edx */ 7952 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7953 eax = 0; /* 0x361435D1: xor eax, eax */ 7954 _cf = 0; 7955 _flag_k = FK_TEST; 7956 ebx = POP32_VAL(esp); /* 0x361435D3: pop ebx */ 7957 esp = ebp; /* 0x361435D4: mov esp, ebp */ 7958 ebp = POP32_VAL(esp); /* 0x361435D6: pop ebp */ 7959 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361435D7: ret 8 */ 7960 RECOMP_REGS_OUT(); 7961 } 7962 7963 void sub_361435E0(void) { 7964 int _fpu_cmp = 0; 7965 uint32_t _cf = 0; 7966 int _df = 1; 7967 uint32_t _flag_k = FK_NONE; 7968 uint32_t _flag_a = 0, _flag_b = 0; 7969 uint32_t _itail_tgt = 0; 7970 RECOMP_REGS_LOCALS 7971 RECOMP_ENTER(0x361435E0u); 7972 7973 L_361435E0: 7974 PUSH32(esp, ebp); /* 0x361435E0: push ebp */ 7975 ebp = esp; /* 0x361435E1: mov ebp, esp */ 7976 PUSH32(esp, 0xFFFFFFFFu); /* 0x361435E3: push -1 */ 7977 PUSH32(esp, 0x3616CE18u); /* 0x361435E5: push 0x3616ce18 */ 7978 eax = MEM32(FS_BASE + (0)); /* 0x361435EA: mov eax, dword ptr fs:[0] */ 7979 PUSH32(esp, eax); /* 0x361435F0: push eax */ 7980 MEM32(FS_BASE + (0)) = esp; /* 0x361435F1: mov dword ptr fs:[0], esp */ 7981 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7983 esp = esp - 0x10u; /* 0x361435F8: sub esp, 0x10 */ 7984 _flag_k = FK_CMP; 7985 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x361435FB: mov al, byte ptr [ebp + 0xf] */ 7986 PUSH32(esp, ebx); /* 0x361435FE: push ebx */ 7987 PUSH32(esp, esi); /* 0x361435FF: push esi */ 7988 PUSH32(esp, edi); /* 0x36143600: push edi */ 7989 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7990 edi = 0; /* 0x36143601: xor edi, edi */ 7991 _cf = 0; 7992 _flag_k = FK_TEST; 7993 esi = ecx; /* 0x36143603: mov esi, ecx */ 7994 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x36143605: mov byte ptr [ebp - 0x1c], al */ 7995 MEM32(ebp + (-0x18)) = edi; /* 0x36143608: mov dword ptr [ebp - 0x18], edi */ 7996 MEM32(ebp + (-0x14)) = edi; /* 0x3614360B: mov dword ptr [ebp - 0x14], edi */ 7997 MEM32(ebp + (-0x10)) = edi; /* 0x3614360E: mov dword ptr [ebp - 0x10], edi */ 7998 ecx = MEM32(ebp + 0x8); /* 0x36143611: mov ecx, dword ptr [ebp + 8] */ 7999 PUSH32(esp, 0xC350u); /* 0x36143614: push 0xc350 */ 8000 PUSH32(esp, ecx); /* 0x36143619: push ecx */ 8001 edx = esi + 0x54; /* 0x3614361A: lea edx, [esi + 0x54] */ 8002 PUSH32(esp, edx); /* 0x3614361D: push edx */ 8003 edx = MEM32(esi); /* 0x3614361E: mov edx, dword ptr [esi] */ 8004 eax = ebp + (-0x1C); /* 0x36143620: lea eax, [ebp - 0x1c] */ 8005 PUSH32(esp, eax); /* 0x36143623: push eax */ 8006 ecx = esi; /* 0x36143624: mov ecx, esi */ 8007 MEM32(ebp + (-0x4)) = edi; /* 0x36143626: mov dword ptr [ebp - 4], edi */ 8008 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x36143629: call dword ptr [edx + 0x7c] */ 8009 RECOMP_FLAGS_IN(); 8010 ecx = eax; /* 0x3614362C: mov ecx, eax */ 8011 RECOMP_ICALL(MEM32(0x361700E8)); /* 0x3614362E: call dword ptr [0x361700e8] */ 8012 RECOMP_FLAGS_IN(); 8013 ebx = MEM32(ebp + (-0x18)); /* 0x36143634: mov ebx, dword ptr [ebp - 0x18] */ 8014 /* cmp ebx, MEM32(ebp + (-0x14)) */ /* 0x36143637: cmp ebx, dword ptr [ebp - 0x14] */ 8015 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 8016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8017 _flag_k = FK_CMP; 8018 if (CMP_EQ(_flag_a, _flag_b)) goto L_36143697; /* 0x3614363A: je 0x36143697 */ 8019 L_3614363C: 8020 eax = MEM32(ebx); /* 0x3614363C: mov eax, dword ptr [ebx] */ 8021 /* test MEM8(eax + 0x11C), 0x10u */ /* 0x3614363E: test byte ptr [eax + 0x11c], 0x10 */ 8022 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 8023 _cf = 0; 8024 _flag_k = FK_NARROW(FK_TEST, 24); 8025 if (TEST_Z(_flag_a, _flag_b)) goto L_3614368A; /* 0x36143645: je 0x3614368a */ 8026 L_36143647: 8027 /* cmp MEM32(esi + 0x158), edi */ /* 0x36143647: cmp dword ptr [esi + 0x158], edi */ 8028 _flag_a = (uint32_t)(MEM32(esi + 0x158)); _flag_b = (uint32_t)(edi); 8029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8030 _flag_k = FK_CMP; 8031 if (CMP_EQ(_flag_a, _flag_b)) goto L_361436F1; /* 0x3614364D: je 0x361436f1 */ 8032 L_36143653: 8033 edx = MEM32(esi); /* 0x36143653: mov edx, dword ptr [esi] */ 8034 ecx = esi; /* 0x36143655: mov ecx, esi */ 8035 RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x36143657: call dword ptr [edx + 0x7c] */ 8036 RECOMP_FLAGS_IN(); 8037 edi = eax; /* 0x3614365A: mov edi, eax */ 8038 ecx = edi; /* 0x3614365C: mov ecx, edi */ 8039 RECOMP_ICALL(0x3614CE70u); /* 0x3614365E: call 0x3614ce70 */ /* not lifted */ 8040 RECOMP_FLAGS_IN(); 8041 ecx = MEM32(ebx); /* 0x36143663: mov ecx, dword ptr [ebx] */ 8042 MEM32(ebp + 0x8) = eax; /* 0x36143665: mov dword ptr [ebp + 8], eax */ 8043 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36143668: call dword ptr [0x3616ffb0] */ 8044 RECOMP_FLAGS_IN(); 8045 PUSH32(esp, eax); /* 0x3614366E: push eax */ 8046 ecx = edi; /* 0x3614366F: mov ecx, edi */ 8047 RECOMP_ICALL(MEM32(0x3616FD98)); /* 0x36143671: call dword ptr [0x3616fd98] */ 8048 RECOMP_FLAGS_IN(); 8049 ecx = MEM32(ebp + 0x8); /* 0x36143677: mov ecx, dword ptr [ebp + 8] */ 8050 PUSH32(esp, eax); /* 0x3614367A: push eax */ 8051 RECOMP_ICALL(0x3614ECB0u); /* 0x3614367B: call 0x3614ecb0 */ /* not lifted */ 8052 RECOMP_FLAGS_IN(); 8053 /* cmp MEM32(esi + 0x158), eax */ /* 0x36143680: cmp dword ptr [esi + 0x158], eax */ 8054 _flag_a = (uint32_t)(MEM32(esi + 0x158)); _flag_b = (uint32_t)(eax); 8055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8056 _flag_k = FK_CMP; 8057 if (CMP_EQ(_flag_a, _flag_b)) goto L_361436B5; /* 0x36143686: je 0x361436b5 */ 8058 L_36143688: 8059 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8060 edi = 0; /* 0x36143688: xor edi, edi */ 8061 _cf = 0; 8062 _flag_k = FK_TEST; 8063 L_3614368A: 8064 eax = MEM32(ebp + (-0x14)); /* 0x3614368A: mov eax, dword ptr [ebp - 0x14] */ 8065 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 8066 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8067 ebx = ebx + 4; /* 0x3614368D: add ebx, 4 */ 8068 _flag_k = FK_ADD; 8069 /* cmp ebx, eax */ /* 0x36143690: cmp ebx, eax */ 8070 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 8071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8072 _flag_k = FK_CMP; 8073 RECOMP_BACKEDGE(); 8074 if (CMP_NE(_flag_a, _flag_b)) goto L_3614363C; /* 0x36143692: jne 0x3614363c */ 8075 L_36143694: 8076 ebx = MEM32(ebp + (-0x18)); /* 0x36143694: mov ebx, dword ptr [ebp - 0x18] */ 8077 L_36143697: 8078 PUSH32(esp, ebx); /* 0x36143697: push ebx */ 8079 RECOMP_ICALL(0x3615FCC4u); /* 0x36143698: call 0x3615fcc4 */ /* not lifted */ 8080 RECOMP_FLAGS_IN(); 8081 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8082 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8083 esp = esp + 4; /* 0x3614369D: add esp, 4 */ 8084 _flag_k = FK_ADD; 8085 edi = POP32_VAL(esp); /* 0x361436A0: pop edi */ 8086 esi = POP32_VAL(esp); /* 0x361436A1: pop esi */ 8087 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 8088 SET_LO8(eax, 0); /* 0x361436A2: xor al, al */ 8089 _cf = 0; 8090 _flag_k = FK_NARROW(FK_TEST, 24); 8091 ebx = POP32_VAL(esp); /* 0x361436A4: pop ebx */ 8092 ecx = MEM32(ebp + (-0xC)); /* 0x361436A5: mov ecx, dword ptr [ebp - 0xc] */ 8093 MEM32(FS_BASE + (0)) = ecx; /* 0x361436A8: mov dword ptr fs:[0], ecx */ 8094 esp = ebp; /* 0x361436AF: mov esp, ebp */ 8095 ebp = POP32_VAL(esp); /* 0x361436B1: pop ebp */ 8096 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361436B2: ret 8 */ 8097 L_361436B5: 8098 ecx = MEM32(ebx); /* 0x361436B5: mov ecx, dword ptr [ebx] */ 8099 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x361436B7: call dword ptr [0x3616ffb0] */ 8100 RECOMP_FLAGS_IN(); 8101 edx = MEM32(eax); /* 0x361436BD: mov edx, dword ptr [eax] */ 8102 ecx = MEM32(ebp + 0xC); /* 0x361436BF: mov ecx, dword ptr [ebp + 0xc] */ 8103 MEM32(ecx) = edx; /* 0x361436C2: mov dword ptr [ecx], edx */ 8104 edx = MEM32(eax + 0x4); /* 0x361436C4: mov edx, dword ptr [eax + 4] */ 8105 MEM32(ecx + 0x4) = edx; /* 0x361436C7: mov dword ptr [ecx + 4], edx */ 8106 eax = MEM32(eax + 0x8); /* 0x361436CA: mov eax, dword ptr [eax + 8] */ 8107 MEM32(ecx + 0x8) = eax; /* 0x361436CD: mov dword ptr [ecx + 8], eax */ 8108 ecx = MEM32(ebp + (-0x18)); /* 0x361436D0: mov ecx, dword ptr [ebp - 0x18] */ 8109 PUSH32(esp, ecx); /* 0x361436D3: push ecx */ 8110 RECOMP_ICALL(0x3615FCC4u); /* 0x361436D4: call 0x3615fcc4 */ /* not lifted */ 8111 RECOMP_FLAGS_IN(); 8112 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8113 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8114 esp = esp + 4; /* 0x361436D9: add esp, 4 */ 8115 _flag_k = FK_ADD; 8116 edi = POP32_VAL(esp); /* 0x361436DC: pop edi */ 8117 esi = POP32_VAL(esp); /* 0x361436DD: pop esi */ 8118 SET_LO8(eax, 1); /* 0x361436DE: mov al, 1 */ 8119 ebx = POP32_VAL(esp); /* 0x361436E0: pop ebx */ 8120 ecx = MEM32(ebp + (-0xC)); /* 0x361436E1: mov ecx, dword ptr [ebp - 0xc] */ 8121 MEM32(FS_BASE + (0)) = ecx; /* 0x361436E4: mov dword ptr fs:[0], ecx */ 8122 esp = ebp; /* 0x361436EB: mov esp, ebp */ 8123 ebp = POP32_VAL(esp); /* 0x361436ED: pop ebp */ 8124 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361436EE: ret 8 */ 8125 L_361436F1: 8126 ecx = MEM32(ebx); /* 0x361436F1: mov ecx, dword ptr [ebx] */ 8127 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x361436F3: call dword ptr [0x3616ffb0] */ 8128 RECOMP_FLAGS_IN(); 8129 ecx = MEM32(eax); /* 0x361436F9: mov ecx, dword ptr [eax] */ 8130 edx = MEM32(ebp + 0xC); /* 0x361436FB: mov edx, dword ptr [ebp + 0xc] */ 8131 MEM32(edx) = ecx; /* 0x361436FE: mov dword ptr [edx], ecx */ 8132 ecx = MEM32(eax + 0x4); /* 0x36143700: mov ecx, dword ptr [eax + 4] */ 8133 MEM32(edx + 0x4) = ecx; /* 0x36143703: mov dword ptr [edx + 4], ecx */ 8134 ecx = MEM32(ebp + (-0x18)); /* 0x36143706: mov ecx, dword ptr [ebp - 0x18] */ 8135 eax = MEM32(eax + 0x8); /* 0x36143709: mov eax, dword ptr [eax + 8] */ 8136 PUSH32(esp, ecx); /* 0x3614370C: push ecx */ 8137 MEM32(edx + 0x8) = eax; /* 0x3614370D: mov dword ptr [edx + 8], eax */ 8138 RECOMP_ICALL(0x3615FCC4u); /* 0x36143710: call 0x3615fcc4 */ /* not lifted */ 8139 RECOMP_FLAGS_IN(); 8140 ecx = MEM32(ebp + (-0xC)); /* 0x36143715: mov ecx, dword ptr [ebp - 0xc] */ 8141 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8142 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8143 esp = esp + 4; /* 0x36143718: add esp, 4 */ 8144 _flag_k = FK_ADD; 8145 edi = POP32_VAL(esp); /* 0x3614371B: pop edi */ 8146 esi = POP32_VAL(esp); /* 0x3614371C: pop esi */ 8147 SET_LO8(eax, 1); /* 0x3614371D: mov al, 1 */ 8148 ebx = POP32_VAL(esp); /* 0x3614371F: pop ebx */ 8149 MEM32(FS_BASE + (0)) = ecx; /* 0x36143720: mov dword ptr fs:[0], ecx */ 8150 esp = ebp; /* 0x36143727: mov esp, ebp */ 8151 ebp = POP32_VAL(esp); /* 0x36143729: pop ebp */ 8152 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614372A: ret 8 */ 8153 RECOMP_REGS_OUT(); 8154 } 8155 8156 void sub_36143730(void) { 8157 int _fpu_cmp = 0; 8158 uint32_t _cf = 0; 8159 int _df = 1; 8160 uint32_t _flag_k = FK_NONE; 8161 uint32_t _flag_a = 0, _flag_b = 0; 8162 uint32_t _itail_tgt = 0; 8163 RECOMP_REGS_LOCALS 8164 RECOMP_ENTER(0x36143730u); 8165 8166 L_36143730: 8167 PUSH32(esp, ebp); /* 0x36143730: push ebp */ 8168 ebp = esp; /* 0x36143731: mov ebp, esp */ 8169 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8171 esp = esp - 0xCu; /* 0x36143733: sub esp, 0xc */ 8172 _flag_k = FK_CMP; 8173 PUSH32(esp, esi); /* 0x36143736: push esi */ 8174 esi = MEM32(ebp + 0x10); /* 0x36143737: mov esi, dword ptr [ebp + 0x10] */ 8175 PUSH32(esp, edi); /* 0x3614373A: push edi */ 8176 edi = ecx; /* 0x3614373B: mov edi, ecx */ 8177 MEM32(ebp + (-0xC)) = 0; /* 0x3614373D: mov dword ptr [ebp - 0xc], 0 */ 8178 ecx = MEM32(ebp + (-0xC)); /* 0x36143744: mov ecx, dword ptr [ebp - 0xc] */ 8179 eax = esi; /* 0x36143747: mov eax, esi */ 8180 MEM32(eax) = ecx; /* 0x36143749: mov dword ptr [eax], ecx */ 8181 MEM32(ebp + (-0x8)) = 0; /* 0x3614374B: mov dword ptr [ebp - 8], 0 */ 8182 edx = MEM32(ebp + (-0x8)); /* 0x36143752: mov edx, dword ptr [ebp - 8] */ 8183 MEM32(eax + 0x4) = edx; /* 0x36143755: mov dword ptr [eax + 4], edx */ 8184 edx = MEM32(ebp + 0xC); /* 0x36143758: mov edx, dword ptr [ebp + 0xc] */ 8185 MEM32(ebp + (-0x4)) = 0; /* 0x3614375B: mov dword ptr [ebp - 4], 0 */ 8186 ecx = MEM32(ebp + (-0x4)); /* 0x36143762: mov ecx, dword ptr [ebp - 4] */ 8187 MEM32(eax + 0x8) = ecx; /* 0x36143765: mov dword ptr [eax + 8], ecx */ 8188 eax = MEM32(ebp + 0x8); /* 0x36143768: mov eax, dword ptr [ebp + 8] */ 8189 ecx = MEM32(edi + 0x160); /* 0x3614376B: mov ecx, dword ptr [edi + 0x160] */ 8190 PUSH32(esp, edx); /* 0x36143771: push edx */ 8191 PUSH32(esp, eax); /* 0x36143772: push eax */ 8192 PUSH32(esp, edi); /* 0x36143773: push edi */ 8193 RECOMP_ICALL(0x3613C570u); /* 0x36143774: call 0x3613c570 */ /* not lifted */ 8194 RECOMP_FLAGS_IN(); 8195 edx = MEM32(eax + 0x4); /* 0x36143779: mov edx, dword ptr [eax + 4] */ 8196 /* test edx, edx */ /* 0x3614377C: test edx, edx */ 8197 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 8198 _cf = 0; 8199 _flag_k = FK_TEST; 8200 if (TEST_Z(_flag_a, _flag_b)) goto L_36143791; /* 0x3614377E: je 0x36143791 */ 8201 L_36143780: 8202 ecx = MEM32(eax + 0x8); /* 0x36143780: mov ecx, dword ptr [eax + 8] */ 8203 PUSH32(esp, ebx); /* 0x36143783: push ebx */ 8204 ebx = ecx; /* 0x36143784: mov ebx, ecx */ 8205 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 8206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8207 ebx = ebx - edx; /* 0x36143786: sub ebx, edx */ 8208 _flag_k = FK_CMP; 8209 /* test ebx, 0xFFFFFFFCu */ /* 0x36143788: test ebx, 0xfffffffc */ 8210 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFCu); 8211 _cf = 0; 8212 _flag_k = FK_TEST; 8213 ebx = POP32_VAL(esp); /* 0x3614378E: pop ebx */ 8214 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614379B; /* 0x3614378F: jne 0x3614379b */ 8215 L_36143791: 8216 edi = POP32_VAL(esp); /* 0x36143791: pop edi */ 8217 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8218 eax = 0; /* 0x36143792: xor eax, eax */ 8219 _cf = 0; 8220 _flag_k = FK_TEST; 8221 esi = POP32_VAL(esp); /* 0x36143794: pop esi */ 8222 esp = ebp; /* 0x36143795: mov esp, ebp */ 8223 ebp = POP32_VAL(esp); /* 0x36143797: pop ebp */ 8224 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36143798: ret 0xc */ 8225 L_3614379B: 8226 /* cmp edx, ecx */ /* 0x3614379B: cmp edx, ecx */ 8227 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8229 _flag_k = FK_CMP; 8230 if (CMP_EQ(_flag_a, _flag_b)) goto L_361437C7; /* 0x3614379D: je 0x361437c7 */ 8231 L_3614379F: 8232 ecx = MEM32(edx); /* 0x3614379F: mov ecx, dword ptr [edx] */ 8233 fp_push(*(float*)&MEM32(ecx + 0x54)); /* 0x361437A1: fld dword ptr [ecx + 0x54] */ 8234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u); 8235 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8236 ecx = ecx + 0x54u; /* 0x361437A4: add ecx, 0x54 */ 8237 _flag_k = FK_ADD; 8238 _st[0] += (double)*(float*)ADDR(esi); /* 0x361437A7: fadd dword ptr [esi] */ 8239 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 8240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8241 edx = edx + 4; /* 0x361437A9: add edx, 4 */ 8242 _flag_k = FK_ADD; 8243 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x361437AC: fstp dword ptr [esi] */ 8244 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x361437AE: fld dword ptr [ecx + 4] */ 8245 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x361437B1: fadd dword ptr [esi + 4] */ 8246 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x361437B4: fstp dword ptr [esi + 4] */ 8247 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x361437B7: fld dword ptr [ecx + 8] */ 8248 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x361437BA: fadd dword ptr [esi + 8] */ 8249 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x361437BD: fstp dword ptr [esi + 8] */ 8250 ecx = MEM32(eax + 0x8); /* 0x361437C0: mov ecx, dword ptr [eax + 8] */ 8251 /* cmp edx, ecx */ /* 0x361437C3: cmp edx, ecx */ 8252 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8254 _flag_k = FK_CMP; 8255 RECOMP_BACKEDGE(); 8256 if (CMP_NE(_flag_a, _flag_b)) goto L_3614379F; /* 0x361437C5: jne 0x3614379f */ 8257 L_361437C7: 8258 ecx = MEM32(eax + 0x4); /* 0x361437C7: mov ecx, dword ptr [eax + 4] */ 8259 /* test ecx, ecx */ /* 0x361437CA: test ecx, ecx */ 8260 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8261 _cf = 0; 8262 _flag_k = FK_TEST; 8263 if (TEST_NZ(_flag_a, _flag_b)) goto L_361437D2; /* 0x361437CC: jne 0x361437d2 */ 8264 L_361437CE: 8265 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8266 eax = 0; /* 0x361437CE: xor eax, eax */ 8267 _cf = 0; 8268 _flag_k = FK_TEST; 8269 goto L_361437DA; /* 0x361437D0: jmp 0x361437da */ 8270 L_361437D2: 8271 eax = MEM32(eax + 0x8); /* 0x361437D2: mov eax, dword ptr [eax + 8] */ 8272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8274 eax = eax - ecx; /* 0x361437D5: sub eax, ecx */ 8275 _flag_k = FK_CMP; 8276 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x361437D7: sar eax, 2 */ 8277 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8278 eax = (uint32_t)((int32_t)eax >> 2u); 8279 L_361437DA: 8280 MEM32(ebp + (-0x8)) = eax; /* 0x361437DA: mov dword ptr [ebp - 8], eax */ 8281 MEM32(ebp + (-0x4)) = 0; /* 0x361437DD: mov dword ptr [ebp - 4], 0 */ 8282 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x361437E4: fild qword ptr [ebp - 8] */ 8283 fp_push(*(float*)&MEM32(esi)); /* 0x361437E7: fld dword ptr [esi] */ 8284 eax = 2; /* 0x361437E9: mov eax, 2 */ 8285 _st[0] /= _st[1]; /* 0x361437EE: fdiv st(1) */ 8286 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x10) = _v; } /* 0x361437F0: fst dword ptr [ebp + 0x10] */ 8287 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x361437F3: fstp dword ptr [esi] */ 8288 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x361437F5: fld dword ptr [esi + 4] */ 8289 _st[0] /= _st[1]; /* 0x361437F8: fdiv st(1) */ 8290 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x361437FA: fst dword ptr [ebp + 0xc] */ 8291 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x361437FD: fstp dword ptr [esi + 4] */ 8292 _st[0] = (double)*(float*)ADDR(esi + 0x8) / _st[0]; /* 0x36143800: fdivr dword ptr [esi + 8] */ 8293 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143803: fst dword ptr [esi + 8] */ 8294 fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x36143806: fld dword ptr [ebp + 0x10] */ 8295 _st[0] -= (double)*(float*)ADDR(edi + 0x54); /* 0x36143809: fsub dword ptr [edi + 0x54] */ 8296 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3614380C: fstp dword ptr [esi] */ 8297 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3614380E: fld dword ptr [ebp + 0xc] */ 8298 _st[0] -= (double)*(float*)ADDR(edi + 0x58); /* 0x36143811: fsub dword ptr [edi + 0x58] */ 8299 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143814: fstp dword ptr [esi + 4] */ 8300 _st[0] -= (double)*(float*)ADDR(edi + 0x5C); /* 0x36143817: fsub dword ptr [edi + 0x5c] */ 8301 edi = POP32_VAL(esp); /* 0x3614381A: pop edi */ 8302 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x3614381B: fstp dword ptr [esi + 8] */ 8303 esi = POP32_VAL(esp); /* 0x3614381E: pop esi */ 8304 esp = ebp; /* 0x3614381F: mov esp, ebp */ 8305 ebp = POP32_VAL(esp); /* 0x36143821: pop ebp */ 8306 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36143822: ret 0xc */ 8307 RECOMP_REGS_OUT(); 8308 } 8309 8310 void sub_36143830(void) { 8311 int _fpu_cmp = 0; 8312 uint32_t _cf = 0; 8313 int _df = 1; 8314 uint32_t _flag_k = FK_NONE; 8315 uint32_t _flag_a = 0, _flag_b = 0; 8316 uint32_t _itail_tgt = 0; 8317 RECOMP_REGS_LOCALS 8318 RECOMP_ENTER(0x36143830u); 8319 8320 L_36143830: 8321 PUSH32(esp, ebp); /* 0x36143830: push ebp */ 8322 ebp = esp; /* 0x36143831: mov ebp, esp */ 8323 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8325 esp = esp - 0xCu; /* 0x36143833: sub esp, 0xc */ 8326 _flag_k = FK_CMP; 8327 PUSH32(esp, esi); /* 0x36143836: push esi */ 8328 esi = MEM32(ebp + 0xC); /* 0x36143837: mov esi, dword ptr [ebp + 0xc] */ 8329 PUSH32(esp, edi); /* 0x3614383A: push edi */ 8330 edi = ecx; /* 0x3614383B: mov edi, ecx */ 8331 MEM32(ebp + (-0xC)) = 0; /* 0x3614383D: mov dword ptr [ebp - 0xc], 0 */ 8332 ecx = MEM32(ebp + (-0xC)); /* 0x36143844: mov ecx, dword ptr [ebp - 0xc] */ 8333 eax = esi; /* 0x36143847: mov eax, esi */ 8334 MEM32(eax) = ecx; /* 0x36143849: mov dword ptr [eax], ecx */ 8335 MEM32(ebp + (-0x8)) = 0; /* 0x3614384B: mov dword ptr [ebp - 8], 0 */ 8336 edx = MEM32(ebp + (-0x8)); /* 0x36143852: mov edx, dword ptr [ebp - 8] */ 8337 MEM32(eax + 0x4) = edx; /* 0x36143855: mov dword ptr [eax + 4], edx */ 8338 edx = MEM32(ebp + 0x8); /* 0x36143858: mov edx, dword ptr [ebp + 8] */ 8339 MEM32(ebp + (-0x4)) = 0; /* 0x3614385B: mov dword ptr [ebp - 4], 0 */ 8340 ecx = MEM32(ebp + (-0x4)); /* 0x36143862: mov ecx, dword ptr [ebp - 4] */ 8341 PUSH32(esp, edx); /* 0x36143865: push edx */ 8342 MEM32(eax + 0x8) = ecx; /* 0x36143866: mov dword ptr [eax + 8], ecx */ 8343 ecx = MEM32(edi + 0x160); /* 0x36143869: mov ecx, dword ptr [edi + 0x160] */ 8344 PUSH32(esp, edi); /* 0x3614386F: push edi */ 8345 RECOMP_ICALL(0x3613C800u); /* 0x36143870: call 0x3613c800 */ /* not lifted */ 8346 RECOMP_FLAGS_IN(); 8347 edx = MEM32(eax + 0x4); /* 0x36143875: mov edx, dword ptr [eax + 4] */ 8348 /* test edx, edx */ /* 0x36143878: test edx, edx */ 8349 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 8350 _cf = 0; 8351 _flag_k = FK_TEST; 8352 if (TEST_Z(_flag_a, _flag_b)) goto L_3614388D; /* 0x3614387A: je 0x3614388d */ 8353 L_3614387C: 8354 ecx = MEM32(eax + 0x8); /* 0x3614387C: mov ecx, dword ptr [eax + 8] */ 8355 PUSH32(esp, ebx); /* 0x3614387F: push ebx */ 8356 ebx = ecx; /* 0x36143880: mov ebx, ecx */ 8357 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 8358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8359 ebx = ebx - edx; /* 0x36143882: sub ebx, edx */ 8360 _flag_k = FK_CMP; 8361 /* test ebx, 0xFFFFFFFCu */ /* 0x36143884: test ebx, 0xfffffffc */ 8362 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFCu); 8363 _cf = 0; 8364 _flag_k = FK_TEST; 8365 ebx = POP32_VAL(esp); /* 0x3614388A: pop ebx */ 8366 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143897; /* 0x3614388B: jne 0x36143897 */ 8367 L_3614388D: 8368 edi = POP32_VAL(esp); /* 0x3614388D: pop edi */ 8369 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8370 eax = 0; /* 0x3614388E: xor eax, eax */ 8371 _cf = 0; 8372 _flag_k = FK_TEST; 8373 esi = POP32_VAL(esp); /* 0x36143890: pop esi */ 8374 esp = ebp; /* 0x36143891: mov esp, ebp */ 8375 ebp = POP32_VAL(esp); /* 0x36143893: pop ebp */ 8376 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36143894: ret 8 */ 8377 L_36143897: 8378 /* cmp edx, ecx */ /* 0x36143897: cmp edx, ecx */ 8379 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8381 _flag_k = FK_CMP; 8382 if (CMP_EQ(_flag_a, _flag_b)) goto L_361438C3; /* 0x36143899: je 0x361438c3 */ 8383 L_3614389B: 8384 ecx = MEM32(edx); /* 0x3614389B: mov ecx, dword ptr [edx] */ 8385 fp_push(*(float*)&MEM32(esi)); /* 0x3614389D: fld dword ptr [esi] */ 8386 _st[0] += (double)*(float*)ADDR(ecx + 0x54); /* 0x3614389F: fadd dword ptr [ecx + 0x54] */ 8387 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u); 8388 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8389 ecx = ecx + 0x54u; /* 0x361438A2: add ecx, 0x54 */ 8390 _flag_k = FK_ADD; 8391 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 8392 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8393 edx = edx + 4; /* 0x361438A5: add edx, 4 */ 8394 _flag_k = FK_ADD; 8395 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x361438A8: fstp dword ptr [esi] */ 8396 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x361438AA: fld dword ptr [ecx + 4] */ 8397 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x361438AD: fadd dword ptr [esi + 4] */ 8398 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x361438B0: fstp dword ptr [esi + 4] */ 8399 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x361438B3: fld dword ptr [ecx + 8] */ 8400 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x361438B6: fadd dword ptr [esi + 8] */ 8401 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x361438B9: fstp dword ptr [esi + 8] */ 8402 ecx = MEM32(eax + 0x8); /* 0x361438BC: mov ecx, dword ptr [eax + 8] */ 8403 /* cmp edx, ecx */ /* 0x361438BF: cmp edx, ecx */ 8404 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8406 _flag_k = FK_CMP; 8407 RECOMP_BACKEDGE(); 8408 if (CMP_NE(_flag_a, _flag_b)) goto L_3614389B; /* 0x361438C1: jne 0x3614389b */ 8409 L_361438C3: 8410 ecx = MEM32(eax + 0x4); /* 0x361438C3: mov ecx, dword ptr [eax + 4] */ 8411 /* test ecx, ecx */ /* 0x361438C6: test ecx, ecx */ 8412 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8413 _cf = 0; 8414 _flag_k = FK_TEST; 8415 if (TEST_NZ(_flag_a, _flag_b)) goto L_361438CE; /* 0x361438C8: jne 0x361438ce */ 8416 L_361438CA: 8417 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8418 eax = 0; /* 0x361438CA: xor eax, eax */ 8419 _cf = 0; 8420 _flag_k = FK_TEST; 8421 goto L_361438D6; /* 0x361438CC: jmp 0x361438d6 */ 8422 L_361438CE: 8423 eax = MEM32(eax + 0x8); /* 0x361438CE: mov eax, dword ptr [eax + 8] */ 8424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8426 eax = eax - ecx; /* 0x361438D1: sub eax, ecx */ 8427 _flag_k = FK_CMP; 8428 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x361438D3: sar eax, 2 */ 8429 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8430 eax = (uint32_t)((int32_t)eax >> 2u); 8431 L_361438D6: 8432 MEM32(ebp + (-0x8)) = eax; /* 0x361438D6: mov dword ptr [ebp - 8], eax */ 8433 MEM32(ebp + (-0x4)) = 0; /* 0x361438D9: mov dword ptr [ebp - 4], 0 */ 8434 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x361438E0: fild qword ptr [ebp - 8] */ 8435 fp_push(*(float*)&MEM32(esi)); /* 0x361438E3: fld dword ptr [esi] */ 8436 eax = 2; /* 0x361438E5: mov eax, 2 */ 8437 _st[0] /= _st[1]; /* 0x361438EA: fdiv st(1) */ 8438 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x361438EC: fst dword ptr [ebp + 0xc] */ 8439 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x361438EF: fstp dword ptr [esi] */ 8440 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x361438F1: fld dword ptr [esi + 4] */ 8441 _st[0] /= _st[1]; /* 0x361438F4: fdiv st(1) */ 8442 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x361438F6: fst dword ptr [ebp + 8] */ 8443 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x361438F9: fstp dword ptr [esi + 4] */ 8444 _st[0] = (double)*(float*)ADDR(esi + 0x8) / _st[0]; /* 0x361438FC: fdivr dword ptr [esi + 8] */ 8445 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x8) = _v; } /* 0x361438FF: fst dword ptr [esi + 8] */ 8446 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x36143902: fld dword ptr [ebp + 0xc] */ 8447 _st[0] -= (double)*(float*)ADDR(edi + 0x54); /* 0x36143905: fsub dword ptr [edi + 0x54] */ 8448 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36143908: fstp dword ptr [esi] */ 8449 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3614390A: fld dword ptr [ebp + 8] */ 8450 _st[0] -= (double)*(float*)ADDR(edi + 0x58); /* 0x3614390D: fsub dword ptr [edi + 0x58] */ 8451 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143910: fstp dword ptr [esi + 4] */ 8452 _st[0] -= (double)*(float*)ADDR(edi + 0x5C); /* 0x36143913: fsub dword ptr [edi + 0x5c] */ 8453 edi = POP32_VAL(esp); /* 0x36143916: pop edi */ 8454 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143917: fstp dword ptr [esi + 8] */ 8455 esi = POP32_VAL(esp); /* 0x3614391A: pop esi */ 8456 esp = ebp; /* 0x3614391B: mov esp, ebp */ 8457 ebp = POP32_VAL(esp); /* 0x3614391D: pop ebp */ 8458 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614391E: ret 8 */ 8459 RECOMP_REGS_OUT(); 8460 } 8461 8462 void sub_36143930(void) { 8463 int _fpu_cmp = 0; 8464 uint32_t _cf = 0; 8465 int _df = 1; 8466 uint32_t _flag_k = FK_NONE; 8467 uint32_t _flag_a = 0, _flag_b = 0; 8468 uint32_t _itail_tgt = 0; 8469 RECOMP_REGS_LOCALS 8470 RECOMP_ENTER(0x36143930u); 8471 8472 L_36143930: 8473 PUSH32(esp, ebp); /* 0x36143930: push ebp */ 8474 ebp = esp; /* 0x36143931: mov ebp, esp */ 8475 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8477 esp = esp - 0x18u; /* 0x36143933: sub esp, 0x18 */ 8478 _flag_k = FK_CMP; 8479 PUSH32(esp, ebx); /* 0x36143936: push ebx */ 8480 PUSH32(esp, esi); /* 0x36143937: push esi */ 8481 esi = MEM32(ebp + 0xC); /* 0x36143938: mov esi, dword ptr [ebp + 0xc] */ 8482 PUSH32(esp, edi); /* 0x3614393B: push edi */ 8483 edi = ecx; /* 0x3614393C: mov edi, ecx */ 8484 MEM32(ebp + (-0x18)) = 0; /* 0x3614393E: mov dword ptr [ebp - 0x18], 0 */ 8485 ecx = MEM32(ebp + (-0x18)); /* 0x36143945: mov ecx, dword ptr [ebp - 0x18] */ 8486 eax = esi; /* 0x36143948: mov eax, esi */ 8487 MEM32(eax) = ecx; /* 0x3614394A: mov dword ptr [eax], ecx */ 8488 MEM32(ebp + (-0x14)) = 0; /* 0x3614394C: mov dword ptr [ebp - 0x14], 0 */ 8489 edx = MEM32(ebp + (-0x14)); /* 0x36143953: mov edx, dword ptr [ebp - 0x14] */ 8490 MEM32(eax + 0x4) = edx; /* 0x36143956: mov dword ptr [eax + 4], edx */ 8491 edx = MEM32(ebp + 0x8); /* 0x36143959: mov edx, dword ptr [ebp + 8] */ 8492 MEM32(ebp + (-0x10)) = 0; /* 0x3614395C: mov dword ptr [ebp - 0x10], 0 */ 8493 ecx = MEM32(ebp + (-0x10)); /* 0x36143963: mov ecx, dword ptr [ebp - 0x10] */ 8494 PUSH32(esp, edx); /* 0x36143966: push edx */ 8495 MEM32(eax + 0x8) = ecx; /* 0x36143967: mov dword ptr [eax + 8], ecx */ 8496 ecx = MEM32(edi + 0x160); /* 0x3614396A: mov ecx, dword ptr [edi + 0x160] */ 8497 PUSH32(esp, edi); /* 0x36143970: push edi */ 8498 RECOMP_ICALL(0x3613C800u); /* 0x36143971: call 0x3613c800 */ /* not lifted */ 8499 RECOMP_FLAGS_IN(); 8500 edx = eax; /* 0x36143976: mov edx, eax */ 8501 ecx = MEM32(edx + 0x4); /* 0x36143978: mov ecx, dword ptr [edx + 4] */ 8502 /* test ecx, ecx */ /* 0x3614397B: test ecx, ecx */ 8503 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8504 _cf = 0; 8505 _flag_k = FK_TEST; 8506 if (TEST_Z(_flag_a, _flag_b)) goto L_3614398E; /* 0x3614397D: je 0x3614398e */ 8507 L_3614397F: 8508 eax = MEM32(edx + 0x8); /* 0x3614397F: mov eax, dword ptr [edx + 8] */ 8509 ebx = eax; /* 0x36143982: mov ebx, eax */ 8510 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 8511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8512 ebx = ebx - ecx; /* 0x36143984: sub ebx, ecx */ 8513 _flag_k = FK_CMP; 8514 /* test ebx, 0xFFFFFFFCu */ /* 0x36143986: test ebx, 0xfffffffc */ 8515 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFCu); 8516 _cf = 0; 8517 _flag_k = FK_TEST; 8518 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143999; /* 0x3614398C: jne 0x36143999 */ 8519 L_3614398E: 8520 edi = POP32_VAL(esp); /* 0x3614398E: pop edi */ 8521 esi = POP32_VAL(esp); /* 0x3614398F: pop esi */ 8522 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8523 eax = 0; /* 0x36143990: xor eax, eax */ 8524 _cf = 0; 8525 _flag_k = FK_TEST; 8526 ebx = POP32_VAL(esp); /* 0x36143992: pop ebx */ 8527 esp = ebp; /* 0x36143993: mov esp, ebp */ 8528 ebp = POP32_VAL(esp); /* 0x36143995: pop ebp */ 8529 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36143996: ret 8 */ 8530 L_36143999: 8531 /* cmp ecx, eax */ /* 0x36143999: cmp ecx, eax */ 8532 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8534 _flag_k = FK_CMP; 8535 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3614399B: fld dword ptr [ebp + 8] */ 8536 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3614399E: fmul dword ptr [ebp + 8] */ 8537 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x361439A1: fstp dword ptr [ebp + 8] */ 8538 if (CMP_EQ(_flag_a, _flag_b)) goto L_36143A8A; /* 0x361439A4: je 0x36143a8a */ 8539 L_361439AA: 8540 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x54u); 8541 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8542 edi = edi + 0x54u; /* 0x361439AA: add edi, 0x54 */ 8543 _flag_k = FK_ADD; 8544 MEM32(ebp + 0xC) = edi; /* 0x361439AD: mov dword ptr [ebp + 0xc], edi */ 8545 L_361439B0: 8546 edi = MEM32(ebp + 0xC); /* 0x361439B0: mov edi, dword ptr [ebp + 0xc] */ 8547 ebx = MEM32(edi); /* 0x361439B3: mov ebx, dword ptr [edi] */ 8548 eax = MEM32(ecx); /* 0x361439B5: mov eax, dword ptr [ecx] */ 8549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 8550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8551 eax = eax + 0x54u; /* 0x361439B7: add eax, 0x54 */ 8552 _flag_k = FK_ADD; 8553 MEM32(ebp + (-0xC)) = ebx; /* 0x361439BA: mov dword ptr [ebp - 0xc], ebx */ 8554 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361439BD: fld dword ptr [ebp - 0xc] */ 8555 _st[0] -= (double)*(float*)ADDR(eax); /* 0x361439C0: fsub dword ptr [eax] */ 8556 ebx = MEM32(edi + 0x4); /* 0x361439C2: mov ebx, dword ptr [edi + 4] */ 8557 edi = MEM32(edi + 0x8); /* 0x361439C5: mov edi, dword ptr [edi + 8] */ 8558 MEM32(ebp + (-0x8)) = ebx; /* 0x361439C8: mov dword ptr [ebp - 8], ebx */ 8559 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361439CB: fstp dword ptr [ebp - 0xc] */ 8560 MEM32(ebp + (-0x4)) = edi; /* 0x361439CE: mov dword ptr [ebp - 4], edi */ 8561 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361439D1: fld dword ptr [ebp - 8] */ 8562 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x361439D4: fsub dword ptr [eax + 4] */ 8563 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x361439D7: fstp dword ptr [ebp - 8] */ 8564 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361439DA: fld dword ptr [ebp - 4] */ 8565 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x361439DD: fsub dword ptr [eax + 8] */ 8566 eax = MEM32(ebp + (-0xC)); /* 0x361439E0: mov eax, dword ptr [ebp - 0xc] */ 8567 MEM32(ebp + (-0x18)) = eax; /* 0x361439E3: mov dword ptr [ebp - 0x18], eax */ 8568 eax = MEM32(ebp + (-0x8)); /* 0x361439E6: mov eax, dword ptr [ebp - 8] */ 8569 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361439E9: fstp dword ptr [ebp - 4] */ 8570 MEM32(ebp + (-0x14)) = eax; /* 0x361439EC: mov dword ptr [ebp - 0x14], eax */ 8571 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361439EF: fld dword ptr [ebp - 0xc] */ 8572 eax = MEM32(ebp + (-0x4)); /* 0x361439F2: mov eax, dword ptr [ebp - 4] */ 8573 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361439F5: fcomp dword ptr [0x3617040c] */ 8574 fp_pop(); 8575 MEM32(ebp + (-0x10)) = eax; /* 0x361439FB: mov dword ptr [ebp - 0x10], eax */ 8576 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361439FE: fnstsw ax */ 8577 /* test HI8(eax), 0x40u */ /* 0x36143A00: test ah, 0x40 */ 8578 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8579 _cf = 0; 8580 _flag_k = FK_NARROW(FK_TEST, 24); 8581 if (TEST_Z(_flag_a, _flag_b)) goto L_36143A25; /* 0x36143A03: je 0x36143a25 */ 8582 L_36143A05: 8583 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36143A05: fld dword ptr [ebp - 8] */ 8584 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143A08: fcomp dword ptr [0x3617040c] */ 8585 fp_pop(); 8586 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36143A0E: fnstsw ax */ 8587 /* test HI8(eax), 0x40u */ /* 0x36143A10: test ah, 0x40 */ 8588 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8589 _cf = 0; 8590 _flag_k = FK_NARROW(FK_TEST, 24); 8591 if (TEST_Z(_flag_a, _flag_b)) goto L_36143A25; /* 0x36143A13: je 0x36143a25 */ 8592 L_36143A15: 8593 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36143A15: fld dword ptr [ebp - 4] */ 8594 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143A18: fcomp dword ptr [0x3617040c] */ 8595 fp_pop(); 8596 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36143A1E: fnstsw ax */ 8597 /* test HI8(eax), 0x40u */ /* 0x36143A20: test ah, 0x40 */ 8598 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8599 _cf = 0; 8600 _flag_k = FK_NARROW(FK_TEST, 24); 8601 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143A63; /* 0x36143A23: jne 0x36143a63 */ 8602 L_36143A25: 8603 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36143A25: fld dword ptr [ebp - 4] */ 8604 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36143A28: fmul dword ptr [ebp - 4] */ 8605 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36143A2B: fld dword ptr [ebp - 8] */ 8606 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36143A2E: fmul dword ptr [ebp - 8] */ 8607 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143A31: faddp st(1) */ 8608 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36143A33: fld dword ptr [ebp - 0xc] */ 8609 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36143A36: fmul dword ptr [ebp - 0xc] */ 8610 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143A39: faddp st(1) */ 8611 fp_push(_st[0]); /* 0x36143A3B: fld st(0) */ 8612 _st[0] = sqrt(_st[0]); /* 0x36143A3D: fsqrt */ 8613 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36143A3F: fdivr dword ptr [0x36170380] */ 8614 fp_xch(1); /* 0x36143A45: fxch st(1) */ 8615 _st[0] += _st[0]; /* 0x36143A47: fadd st(0), st(0) */ 8616 _st[0] = (double)*(float*)ADDR(ebp + 0x8) / _st[0]; /* 0x36143A49: fdivr dword ptr [ebp + 8] */ 8617 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36143A4C: fmulp st(1) */ 8618 fp_push(_st[0]); /* 0x36143A4E: fld st(0) */ 8619 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36143A50: fmul dword ptr [ebp - 0xc] */ 8620 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36143A53: fstp dword ptr [ebp - 0x18] */ 8621 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36143A56: fld dword ptr [ebp - 0x14] */ 8622 _st[0] *= _st[1]; /* 0x36143A59: fmul st(1) */ 8623 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36143A5B: fstp dword ptr [ebp - 0x14] */ 8624 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36143A5E: fmul dword ptr [ebp - 0x10] */ 8625 goto L_36143A66; /* 0x36143A61: jmp 0x36143a66 */ 8626 L_36143A63: 8627 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36143A63: fld dword ptr [ebp - 0x10] */ 8628 L_36143A66: 8629 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36143A66: fld dword ptr [ebp - 0x18] */ 8630 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 8631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8632 ecx = ecx + 4; /* 0x36143A69: add ecx, 4 */ 8633 _flag_k = FK_ADD; 8634 _st[0] += (double)*(float*)ADDR(esi); /* 0x36143A6C: fadd dword ptr [esi] */ 8635 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36143A6E: fstp dword ptr [esi] */ 8636 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36143A70: fld dword ptr [ebp - 0x14] */ 8637 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x36143A73: fadd dword ptr [esi + 4] */ 8638 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143A76: fstp dword ptr [esi + 4] */ 8639 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x36143A79: fadd dword ptr [esi + 8] */ 8640 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143A7C: fstp dword ptr [esi + 8] */ 8641 eax = MEM32(edx + 0x8); /* 0x36143A7F: mov eax, dword ptr [edx + 8] */ 8642 /* cmp ecx, eax */ /* 0x36143A82: cmp ecx, eax */ 8643 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8645 _flag_k = FK_CMP; 8646 RECOMP_BACKEDGE(); 8647 if (CMP_NE(_flag_a, _flag_b)) goto L_361439B0; /* 0x36143A84: jne 0x361439b0 */ 8648 L_36143A8A: 8649 edi = POP32_VAL(esp); /* 0x36143A8A: pop edi */ 8650 esi = POP32_VAL(esp); /* 0x36143A8B: pop esi */ 8651 eax = 2; /* 0x36143A8C: mov eax, 2 */ 8652 ebx = POP32_VAL(esp); /* 0x36143A91: pop ebx */ 8653 esp = ebp; /* 0x36143A92: mov esp, ebp */ 8654 ebp = POP32_VAL(esp); /* 0x36143A94: pop ebp */ 8655 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36143A95: ret 8 */ 8656 RECOMP_REGS_OUT(); 8657 } 8658 8659 void sub_36143945(void) { 8660 int _fpu_cmp = 0; 8661 uint32_t _cf = 0; 8662 int _df = 1; 8663 uint32_t _flag_k = FK_NONE; 8664 uint32_t _flag_a = 0, _flag_b = 0; 8665 uint32_t _itail_tgt = 0; 8666 RECOMP_REGS_LOCALS 8667 RECOMP_ENTER(0x36143945u); 8668 8669 L_36143945: 8670 ecx = MEM32(ebp + (-0x18)); /* 0x36143945: mov ecx, dword ptr [ebp - 0x18] */ 8671 eax = esi; /* 0x36143948: mov eax, esi */ 8672 MEM32(eax) = ecx; /* 0x3614394A: mov dword ptr [eax], ecx */ 8673 MEM32(ebp + (-0x14)) = 0; /* 0x3614394C: mov dword ptr [ebp - 0x14], 0 */ 8674 edx = MEM32(ebp + (-0x14)); /* 0x36143953: mov edx, dword ptr [ebp - 0x14] */ 8675 MEM32(eax + 0x4) = edx; /* 0x36143956: mov dword ptr [eax + 4], edx */ 8676 edx = MEM32(ebp + 0x8); /* 0x36143959: mov edx, dword ptr [ebp + 8] */ 8677 MEM32(ebp + (-0x10)) = 0; /* 0x3614395C: mov dword ptr [ebp - 0x10], 0 */ 8678 ecx = MEM32(ebp + (-0x10)); /* 0x36143963: mov ecx, dword ptr [ebp - 0x10] */ 8679 PUSH32(esp, edx); /* 0x36143966: push edx */ 8680 MEM32(eax + 0x8) = ecx; /* 0x36143967: mov dword ptr [eax + 8], ecx */ 8681 ecx = MEM32(edi + 0x160); /* 0x3614396A: mov ecx, dword ptr [edi + 0x160] */ 8682 PUSH32(esp, edi); /* 0x36143970: push edi */ 8683 RECOMP_ICALL(0x3613C800u); /* 0x36143971: call 0x3613c800 */ /* not lifted */ 8684 RECOMP_FLAGS_IN(); 8685 edx = eax; /* 0x36143976: mov edx, eax */ 8686 ecx = MEM32(edx + 0x4); /* 0x36143978: mov ecx, dword ptr [edx + 4] */ 8687 /* test ecx, ecx */ /* 0x3614397B: test ecx, ecx */ 8688 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8689 _cf = 0; 8690 _flag_k = FK_TEST; 8691 if (TEST_Z(_flag_a, _flag_b)) goto L_3614398E; /* 0x3614397D: je 0x3614398e */ 8692 L_3614397F: 8693 eax = MEM32(edx + 0x8); /* 0x3614397F: mov eax, dword ptr [edx + 8] */ 8694 ebx = eax; /* 0x36143982: mov ebx, eax */ 8695 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 8696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8697 ebx = ebx - ecx; /* 0x36143984: sub ebx, ecx */ 8698 _flag_k = FK_CMP; 8699 /* test ebx, 0xFFFFFFFCu */ /* 0x36143986: test ebx, 0xfffffffc */ 8700 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFCu); 8701 _cf = 0; 8702 _flag_k = FK_TEST; 8703 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143999; /* 0x3614398C: jne 0x36143999 */ 8704 L_3614398E: 8705 edi = POP32_VAL(esp); /* 0x3614398E: pop edi */ 8706 esi = POP32_VAL(esp); /* 0x3614398F: pop esi */ 8707 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8708 eax = 0; /* 0x36143990: xor eax, eax */ 8709 _cf = 0; 8710 _flag_k = FK_TEST; 8711 ebx = POP32_VAL(esp); /* 0x36143992: pop ebx */ 8712 esp = ebp; /* 0x36143993: mov esp, ebp */ 8713 ebp = POP32_VAL(esp); /* 0x36143995: pop ebp */ 8714 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36143996: ret 8 */ 8715 L_36143999: 8716 /* cmp ecx, eax */ /* 0x36143999: cmp ecx, eax */ 8717 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8719 _flag_k = FK_CMP; 8720 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3614399B: fld dword ptr [ebp + 8] */ 8721 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3614399E: fmul dword ptr [ebp + 8] */ 8722 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x361439A1: fstp dword ptr [ebp + 8] */ 8723 if (CMP_EQ(_flag_a, _flag_b)) goto L_36143A8A; /* 0x361439A4: je 0x36143a8a */ 8724 L_361439AA: 8725 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x54u); 8726 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8727 edi = edi + 0x54u; /* 0x361439AA: add edi, 0x54 */ 8728 _flag_k = FK_ADD; 8729 MEM32(ebp + 0xC) = edi; /* 0x361439AD: mov dword ptr [ebp + 0xc], edi */ 8730 L_361439B0: 8731 edi = MEM32(ebp + 0xC); /* 0x361439B0: mov edi, dword ptr [ebp + 0xc] */ 8732 ebx = MEM32(edi); /* 0x361439B3: mov ebx, dword ptr [edi] */ 8733 eax = MEM32(ecx); /* 0x361439B5: mov eax, dword ptr [ecx] */ 8734 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 8735 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8736 eax = eax + 0x54u; /* 0x361439B7: add eax, 0x54 */ 8737 _flag_k = FK_ADD; 8738 MEM32(ebp + (-0xC)) = ebx; /* 0x361439BA: mov dword ptr [ebp - 0xc], ebx */ 8739 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361439BD: fld dword ptr [ebp - 0xc] */ 8740 _st[0] -= (double)*(float*)ADDR(eax); /* 0x361439C0: fsub dword ptr [eax] */ 8741 ebx = MEM32(edi + 0x4); /* 0x361439C2: mov ebx, dword ptr [edi + 4] */ 8742 edi = MEM32(edi + 0x8); /* 0x361439C5: mov edi, dword ptr [edi + 8] */ 8743 MEM32(ebp + (-0x8)) = ebx; /* 0x361439C8: mov dword ptr [ebp - 8], ebx */ 8744 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361439CB: fstp dword ptr [ebp - 0xc] */ 8745 MEM32(ebp + (-0x4)) = edi; /* 0x361439CE: mov dword ptr [ebp - 4], edi */ 8746 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361439D1: fld dword ptr [ebp - 8] */ 8747 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x361439D4: fsub dword ptr [eax + 4] */ 8748 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x361439D7: fstp dword ptr [ebp - 8] */ 8749 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361439DA: fld dword ptr [ebp - 4] */ 8750 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x361439DD: fsub dword ptr [eax + 8] */ 8751 eax = MEM32(ebp + (-0xC)); /* 0x361439E0: mov eax, dword ptr [ebp - 0xc] */ 8752 MEM32(ebp + (-0x18)) = eax; /* 0x361439E3: mov dword ptr [ebp - 0x18], eax */ 8753 eax = MEM32(ebp + (-0x8)); /* 0x361439E6: mov eax, dword ptr [ebp - 8] */ 8754 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361439E9: fstp dword ptr [ebp - 4] */ 8755 MEM32(ebp + (-0x14)) = eax; /* 0x361439EC: mov dword ptr [ebp - 0x14], eax */ 8756 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361439EF: fld dword ptr [ebp - 0xc] */ 8757 eax = MEM32(ebp + (-0x4)); /* 0x361439F2: mov eax, dword ptr [ebp - 4] */ 8758 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361439F5: fcomp dword ptr [0x3617040c] */ 8759 fp_pop(); 8760 MEM32(ebp + (-0x10)) = eax; /* 0x361439FB: mov dword ptr [ebp - 0x10], eax */ 8761 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361439FE: fnstsw ax */ 8762 /* test HI8(eax), 0x40u */ /* 0x36143A00: test ah, 0x40 */ 8763 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8764 _cf = 0; 8765 _flag_k = FK_NARROW(FK_TEST, 24); 8766 if (TEST_Z(_flag_a, _flag_b)) goto L_36143A25; /* 0x36143A03: je 0x36143a25 */ 8767 L_36143A05: 8768 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36143A05: fld dword ptr [ebp - 8] */ 8769 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143A08: fcomp dword ptr [0x3617040c] */ 8770 fp_pop(); 8771 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36143A0E: fnstsw ax */ 8772 /* test HI8(eax), 0x40u */ /* 0x36143A10: test ah, 0x40 */ 8773 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8774 _cf = 0; 8775 _flag_k = FK_NARROW(FK_TEST, 24); 8776 if (TEST_Z(_flag_a, _flag_b)) goto L_36143A25; /* 0x36143A13: je 0x36143a25 */ 8777 L_36143A15: 8778 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36143A15: fld dword ptr [ebp - 4] */ 8779 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143A18: fcomp dword ptr [0x3617040c] */ 8780 fp_pop(); 8781 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36143A1E: fnstsw ax */ 8782 /* test HI8(eax), 0x40u */ /* 0x36143A20: test ah, 0x40 */ 8783 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8784 _cf = 0; 8785 _flag_k = FK_NARROW(FK_TEST, 24); 8786 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143A63; /* 0x36143A23: jne 0x36143a63 */ 8787 L_36143A25: 8788 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36143A25: fld dword ptr [ebp - 4] */ 8789 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36143A28: fmul dword ptr [ebp - 4] */ 8790 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36143A2B: fld dword ptr [ebp - 8] */ 8791 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36143A2E: fmul dword ptr [ebp - 8] */ 8792 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143A31: faddp st(1) */ 8793 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36143A33: fld dword ptr [ebp - 0xc] */ 8794 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36143A36: fmul dword ptr [ebp - 0xc] */ 8795 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143A39: faddp st(1) */ 8796 fp_push(_st[0]); /* 0x36143A3B: fld st(0) */ 8797 _st[0] = sqrt(_st[0]); /* 0x36143A3D: fsqrt */ 8798 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36143A3F: fdivr dword ptr [0x36170380] */ 8799 fp_xch(1); /* 0x36143A45: fxch st(1) */ 8800 _st[0] += _st[0]; /* 0x36143A47: fadd st(0), st(0) */ 8801 _st[0] = (double)*(float*)ADDR(ebp + 0x8) / _st[0]; /* 0x36143A49: fdivr dword ptr [ebp + 8] */ 8802 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36143A4C: fmulp st(1) */ 8803 fp_push(_st[0]); /* 0x36143A4E: fld st(0) */ 8804 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36143A50: fmul dword ptr [ebp - 0xc] */ 8805 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36143A53: fstp dword ptr [ebp - 0x18] */ 8806 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36143A56: fld dword ptr [ebp - 0x14] */ 8807 _st[0] *= _st[1]; /* 0x36143A59: fmul st(1) */ 8808 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36143A5B: fstp dword ptr [ebp - 0x14] */ 8809 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36143A5E: fmul dword ptr [ebp - 0x10] */ 8810 goto L_36143A66; /* 0x36143A61: jmp 0x36143a66 */ 8811 L_36143A63: 8812 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36143A63: fld dword ptr [ebp - 0x10] */ 8813 L_36143A66: 8814 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36143A66: fld dword ptr [ebp - 0x18] */ 8815 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 8816 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8817 ecx = ecx + 4; /* 0x36143A69: add ecx, 4 */ 8818 _flag_k = FK_ADD; 8819 _st[0] += (double)*(float*)ADDR(esi); /* 0x36143A6C: fadd dword ptr [esi] */ 8820 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36143A6E: fstp dword ptr [esi] */ 8821 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36143A70: fld dword ptr [ebp - 0x14] */ 8822 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x36143A73: fadd dword ptr [esi + 4] */ 8823 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143A76: fstp dword ptr [esi + 4] */ 8824 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x36143A79: fadd dword ptr [esi + 8] */ 8825 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143A7C: fstp dword ptr [esi + 8] */ 8826 eax = MEM32(edx + 0x8); /* 0x36143A7F: mov eax, dword ptr [edx + 8] */ 8827 /* cmp ecx, eax */ /* 0x36143A82: cmp ecx, eax */ 8828 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8830 _flag_k = FK_CMP; 8831 RECOMP_BACKEDGE(); 8832 if (CMP_NE(_flag_a, _flag_b)) goto L_361439B0; /* 0x36143A84: jne 0x361439b0 */ 8833 L_36143A8A: 8834 edi = POP32_VAL(esp); /* 0x36143A8A: pop edi */ 8835 esi = POP32_VAL(esp); /* 0x36143A8B: pop esi */ 8836 eax = 2; /* 0x36143A8C: mov eax, 2 */ 8837 ebx = POP32_VAL(esp); /* 0x36143A91: pop ebx */ 8838 esp = ebp; /* 0x36143A92: mov esp, ebp */ 8839 ebp = POP32_VAL(esp); /* 0x36143A94: pop ebp */ 8840 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36143A95: ret 8 */ 8841 RECOMP_REGS_OUT(); 8842 } 8843 8844 void sub_361439B0(void) { 8845 int _fpu_cmp = 0; 8846 uint32_t _cf = 0; 8847 int _df = 1; 8848 uint32_t _flag_k = FK_NONE; 8849 uint32_t _flag_a = 0, _flag_b = 0; 8850 uint32_t _itail_tgt = 0; 8851 RECOMP_REGS_LOCALS 8852 RECOMP_ENTER(0x361439B0u); 8853 8854 L_361439B0: 8855 edi = MEM32(ebp + 0xC); /* 0x361439B0: mov edi, dword ptr [ebp + 0xc] */ 8856 ebx = MEM32(edi); /* 0x361439B3: mov ebx, dword ptr [edi] */ 8857 eax = MEM32(ecx); /* 0x361439B5: mov eax, dword ptr [ecx] */ 8858 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 8859 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8860 eax = eax + 0x54u; /* 0x361439B7: add eax, 0x54 */ 8861 _flag_k = FK_ADD; 8862 MEM32(ebp + (-0xC)) = ebx; /* 0x361439BA: mov dword ptr [ebp - 0xc], ebx */ 8863 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361439BD: fld dword ptr [ebp - 0xc] */ 8864 _st[0] -= (double)*(float*)ADDR(eax); /* 0x361439C0: fsub dword ptr [eax] */ 8865 ebx = MEM32(edi + 0x4); /* 0x361439C2: mov ebx, dword ptr [edi + 4] */ 8866 edi = MEM32(edi + 0x8); /* 0x361439C5: mov edi, dword ptr [edi + 8] */ 8867 MEM32(ebp + (-0x8)) = ebx; /* 0x361439C8: mov dword ptr [ebp - 8], ebx */ 8868 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361439CB: fstp dword ptr [ebp - 0xc] */ 8869 MEM32(ebp + (-0x4)) = edi; /* 0x361439CE: mov dword ptr [ebp - 4], edi */ 8870 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361439D1: fld dword ptr [ebp - 8] */ 8871 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x361439D4: fsub dword ptr [eax + 4] */ 8872 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x361439D7: fstp dword ptr [ebp - 8] */ 8873 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361439DA: fld dword ptr [ebp - 4] */ 8874 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x361439DD: fsub dword ptr [eax + 8] */ 8875 eax = MEM32(ebp + (-0xC)); /* 0x361439E0: mov eax, dword ptr [ebp - 0xc] */ 8876 MEM32(ebp + (-0x18)) = eax; /* 0x361439E3: mov dword ptr [ebp - 0x18], eax */ 8877 eax = MEM32(ebp + (-0x8)); /* 0x361439E6: mov eax, dword ptr [ebp - 8] */ 8878 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361439E9: fstp dword ptr [ebp - 4] */ 8879 MEM32(ebp + (-0x14)) = eax; /* 0x361439EC: mov dword ptr [ebp - 0x14], eax */ 8880 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361439EF: fld dword ptr [ebp - 0xc] */ 8881 eax = MEM32(ebp + (-0x4)); /* 0x361439F2: mov eax, dword ptr [ebp - 4] */ 8882 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361439F5: fcomp dword ptr [0x3617040c] */ 8883 fp_pop(); 8884 MEM32(ebp + (-0x10)) = eax; /* 0x361439FB: mov dword ptr [ebp - 0x10], eax */ 8885 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361439FE: fnstsw ax */ 8886 /* test HI8(eax), 0x40u */ /* 0x36143A00: test ah, 0x40 */ 8887 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8888 _cf = 0; 8889 _flag_k = FK_NARROW(FK_TEST, 24); 8890 if (TEST_Z(_flag_a, _flag_b)) goto L_36143A25; /* 0x36143A03: je 0x36143a25 */ 8891 L_36143A05: 8892 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36143A05: fld dword ptr [ebp - 8] */ 8893 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143A08: fcomp dword ptr [0x3617040c] */ 8894 fp_pop(); 8895 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36143A0E: fnstsw ax */ 8896 /* test HI8(eax), 0x40u */ /* 0x36143A10: test ah, 0x40 */ 8897 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8898 _cf = 0; 8899 _flag_k = FK_NARROW(FK_TEST, 24); 8900 if (TEST_Z(_flag_a, _flag_b)) goto L_36143A25; /* 0x36143A13: je 0x36143a25 */ 8901 L_36143A15: 8902 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36143A15: fld dword ptr [ebp - 4] */ 8903 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143A18: fcomp dword ptr [0x3617040c] */ 8904 fp_pop(); 8905 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36143A1E: fnstsw ax */ 8906 /* test HI8(eax), 0x40u */ /* 0x36143A20: test ah, 0x40 */ 8907 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8908 _cf = 0; 8909 _flag_k = FK_NARROW(FK_TEST, 24); 8910 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143A63; /* 0x36143A23: jne 0x36143a63 */ 8911 L_36143A25: 8912 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36143A25: fld dword ptr [ebp - 4] */ 8913 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36143A28: fmul dword ptr [ebp - 4] */ 8914 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36143A2B: fld dword ptr [ebp - 8] */ 8915 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36143A2E: fmul dword ptr [ebp - 8] */ 8916 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143A31: faddp st(1) */ 8917 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36143A33: fld dword ptr [ebp - 0xc] */ 8918 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36143A36: fmul dword ptr [ebp - 0xc] */ 8919 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143A39: faddp st(1) */ 8920 fp_push(_st[0]); /* 0x36143A3B: fld st(0) */ 8921 _st[0] = sqrt(_st[0]); /* 0x36143A3D: fsqrt */ 8922 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36143A3F: fdivr dword ptr [0x36170380] */ 8923 fp_xch(1); /* 0x36143A45: fxch st(1) */ 8924 _st[0] += _st[0]; /* 0x36143A47: fadd st(0), st(0) */ 8925 _st[0] = (double)*(float*)ADDR(ebp + 0x8) / _st[0]; /* 0x36143A49: fdivr dword ptr [ebp + 8] */ 8926 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36143A4C: fmulp st(1) */ 8927 fp_push(_st[0]); /* 0x36143A4E: fld st(0) */ 8928 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36143A50: fmul dword ptr [ebp - 0xc] */ 8929 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36143A53: fstp dword ptr [ebp - 0x18] */ 8930 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36143A56: fld dword ptr [ebp - 0x14] */ 8931 _st[0] *= _st[1]; /* 0x36143A59: fmul st(1) */ 8932 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36143A5B: fstp dword ptr [ebp - 0x14] */ 8933 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36143A5E: fmul dword ptr [ebp - 0x10] */ 8934 goto L_36143A66; /* 0x36143A61: jmp 0x36143a66 */ 8935 L_36143A63: 8936 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36143A63: fld dword ptr [ebp - 0x10] */ 8937 L_36143A66: 8938 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36143A66: fld dword ptr [ebp - 0x18] */ 8939 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 8940 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8941 ecx = ecx + 4; /* 0x36143A69: add ecx, 4 */ 8942 _flag_k = FK_ADD; 8943 _st[0] += (double)*(float*)ADDR(esi); /* 0x36143A6C: fadd dword ptr [esi] */ 8944 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36143A6E: fstp dword ptr [esi] */ 8945 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36143A70: fld dword ptr [ebp - 0x14] */ 8946 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x36143A73: fadd dword ptr [esi + 4] */ 8947 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143A76: fstp dword ptr [esi + 4] */ 8948 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x36143A79: fadd dword ptr [esi + 8] */ 8949 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143A7C: fstp dword ptr [esi + 8] */ 8950 eax = MEM32(edx + 0x8); /* 0x36143A7F: mov eax, dword ptr [edx + 8] */ 8951 /* cmp ecx, eax */ /* 0x36143A82: cmp ecx, eax */ 8952 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8954 _flag_k = FK_CMP; 8955 RECOMP_BACKEDGE(); 8956 if (CMP_NE(_flag_a, _flag_b)) goto L_361439B0; /* 0x36143A84: jne 0x361439b0 */ 8957 L_36143A8A: 8958 edi = POP32_VAL(esp); /* 0x36143A8A: pop edi */ 8959 esi = POP32_VAL(esp); /* 0x36143A8B: pop esi */ 8960 eax = 2; /* 0x36143A8C: mov eax, 2 */ 8961 ebx = POP32_VAL(esp); /* 0x36143A91: pop ebx */ 8962 esp = ebp; /* 0x36143A92: mov esp, ebp */ 8963 ebp = POP32_VAL(esp); /* 0x36143A94: pop ebp */ 8964 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36143A95: ret 8 */ 8965 RECOMP_REGS_OUT(); 8966 } 8967 8968 void sub_36143A66(void) { 8969 int _fpu_cmp = 0; 8970 uint32_t _cf = 0; 8971 int _df = 1; 8972 uint32_t _flag_k = FK_NONE; 8973 uint32_t _flag_a = 0, _flag_b = 0; 8974 uint32_t _itail_tgt = 0; 8975 RECOMP_REGS_LOCALS 8976 RECOMP_ENTER(0x36143A66u); 8977 8978 goto L_36143A66; 8979 L_361439B0: 8980 edi = MEM32(ebp + 0xC); /* 0x361439B0: mov edi, dword ptr [ebp + 0xc] */ 8981 ebx = MEM32(edi); /* 0x361439B3: mov ebx, dword ptr [edi] */ 8982 eax = MEM32(ecx); /* 0x361439B5: mov eax, dword ptr [ecx] */ 8983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 8984 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8985 eax = eax + 0x54u; /* 0x361439B7: add eax, 0x54 */ 8986 _flag_k = FK_ADD; 8987 MEM32(ebp + (-0xC)) = ebx; /* 0x361439BA: mov dword ptr [ebp - 0xc], ebx */ 8988 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361439BD: fld dword ptr [ebp - 0xc] */ 8989 _st[0] -= (double)*(float*)ADDR(eax); /* 0x361439C0: fsub dword ptr [eax] */ 8990 ebx = MEM32(edi + 0x4); /* 0x361439C2: mov ebx, dword ptr [edi + 4] */ 8991 edi = MEM32(edi + 0x8); /* 0x361439C5: mov edi, dword ptr [edi + 8] */ 8992 MEM32(ebp + (-0x8)) = ebx; /* 0x361439C8: mov dword ptr [ebp - 8], ebx */ 8993 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361439CB: fstp dword ptr [ebp - 0xc] */ 8994 MEM32(ebp + (-0x4)) = edi; /* 0x361439CE: mov dword ptr [ebp - 4], edi */ 8995 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361439D1: fld dword ptr [ebp - 8] */ 8996 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x361439D4: fsub dword ptr [eax + 4] */ 8997 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x361439D7: fstp dword ptr [ebp - 8] */ 8998 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361439DA: fld dword ptr [ebp - 4] */ 8999 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x361439DD: fsub dword ptr [eax + 8] */ 9000 eax = MEM32(ebp + (-0xC)); /* 0x361439E0: mov eax, dword ptr [ebp - 0xc] */ 9001 MEM32(ebp + (-0x18)) = eax; /* 0x361439E3: mov dword ptr [ebp - 0x18], eax */ 9002 eax = MEM32(ebp + (-0x8)); /* 0x361439E6: mov eax, dword ptr [ebp - 8] */ 9003 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x361439E9: fstp dword ptr [ebp - 4] */ 9004 MEM32(ebp + (-0x14)) = eax; /* 0x361439EC: mov dword ptr [ebp - 0x14], eax */ 9005 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361439EF: fld dword ptr [ebp - 0xc] */ 9006 eax = MEM32(ebp + (-0x4)); /* 0x361439F2: mov eax, dword ptr [ebp - 4] */ 9007 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361439F5: fcomp dword ptr [0x3617040c] */ 9008 fp_pop(); 9009 MEM32(ebp + (-0x10)) = eax; /* 0x361439FB: mov dword ptr [ebp - 0x10], eax */ 9010 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361439FE: fnstsw ax */ 9011 /* test HI8(eax), 0x40u */ /* 0x36143A00: test ah, 0x40 */ 9012 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9013 _cf = 0; 9014 _flag_k = FK_NARROW(FK_TEST, 24); 9015 if (TEST_Z(_flag_a, _flag_b)) goto L_36143A25; /* 0x36143A03: je 0x36143a25 */ 9016 L_36143A05: 9017 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36143A05: fld dword ptr [ebp - 8] */ 9018 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143A08: fcomp dword ptr [0x3617040c] */ 9019 fp_pop(); 9020 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36143A0E: fnstsw ax */ 9021 /* test HI8(eax), 0x40u */ /* 0x36143A10: test ah, 0x40 */ 9022 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9023 _cf = 0; 9024 _flag_k = FK_NARROW(FK_TEST, 24); 9025 if (TEST_Z(_flag_a, _flag_b)) goto L_36143A25; /* 0x36143A13: je 0x36143a25 */ 9026 L_36143A15: 9027 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36143A15: fld dword ptr [ebp - 4] */ 9028 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36143A18: fcomp dword ptr [0x3617040c] */ 9029 fp_pop(); 9030 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36143A1E: fnstsw ax */ 9031 /* test HI8(eax), 0x40u */ /* 0x36143A20: test ah, 0x40 */ 9032 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9033 _cf = 0; 9034 _flag_k = FK_NARROW(FK_TEST, 24); 9035 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143A63; /* 0x36143A23: jne 0x36143a63 */ 9036 L_36143A25: 9037 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36143A25: fld dword ptr [ebp - 4] */ 9038 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36143A28: fmul dword ptr [ebp - 4] */ 9039 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36143A2B: fld dword ptr [ebp - 8] */ 9040 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36143A2E: fmul dword ptr [ebp - 8] */ 9041 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143A31: faddp st(1) */ 9042 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36143A33: fld dword ptr [ebp - 0xc] */ 9043 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36143A36: fmul dword ptr [ebp - 0xc] */ 9044 { double _v = fp_pop(); _st[0] += _v; } /* 0x36143A39: faddp st(1) */ 9045 fp_push(_st[0]); /* 0x36143A3B: fld st(0) */ 9046 _st[0] = sqrt(_st[0]); /* 0x36143A3D: fsqrt */ 9047 _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36143A3F: fdivr dword ptr [0x36170380] */ 9048 fp_xch(1); /* 0x36143A45: fxch st(1) */ 9049 _st[0] += _st[0]; /* 0x36143A47: fadd st(0), st(0) */ 9050 _st[0] = (double)*(float*)ADDR(ebp + 0x8) / _st[0]; /* 0x36143A49: fdivr dword ptr [ebp + 8] */ 9051 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36143A4C: fmulp st(1) */ 9052 fp_push(_st[0]); /* 0x36143A4E: fld st(0) */ 9053 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36143A50: fmul dword ptr [ebp - 0xc] */ 9054 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36143A53: fstp dword ptr [ebp - 0x18] */ 9055 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36143A56: fld dword ptr [ebp - 0x14] */ 9056 _st[0] *= _st[1]; /* 0x36143A59: fmul st(1) */ 9057 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36143A5B: fstp dword ptr [ebp - 0x14] */ 9058 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36143A5E: fmul dword ptr [ebp - 0x10] */ 9059 goto L_36143A66; /* 0x36143A61: jmp 0x36143a66 */ 9060 L_36143A63: 9061 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36143A63: fld dword ptr [ebp - 0x10] */ 9062 L_36143A66: 9063 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36143A66: fld dword ptr [ebp - 0x18] */ 9064 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 9065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9066 ecx = ecx + 4; /* 0x36143A69: add ecx, 4 */ 9067 _flag_k = FK_ADD; 9068 _st[0] += (double)*(float*)ADDR(esi); /* 0x36143A6C: fadd dword ptr [esi] */ 9069 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36143A6E: fstp dword ptr [esi] */ 9070 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36143A70: fld dword ptr [ebp - 0x14] */ 9071 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x36143A73: fadd dword ptr [esi + 4] */ 9072 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143A76: fstp dword ptr [esi + 4] */ 9073 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x36143A79: fadd dword ptr [esi + 8] */ 9074 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143A7C: fstp dword ptr [esi + 8] */ 9075 eax = MEM32(edx + 0x8); /* 0x36143A7F: mov eax, dword ptr [edx + 8] */ 9076 /* cmp ecx, eax */ /* 0x36143A82: cmp ecx, eax */ 9077 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9079 _flag_k = FK_CMP; 9080 RECOMP_BACKEDGE(); 9081 if (CMP_NE(_flag_a, _flag_b)) goto L_361439B0; /* 0x36143A84: jne 0x361439b0 */ 9082 L_36143A8A: 9083 edi = POP32_VAL(esp); /* 0x36143A8A: pop edi */ 9084 esi = POP32_VAL(esp); /* 0x36143A8B: pop esi */ 9085 eax = 2; /* 0x36143A8C: mov eax, 2 */ 9086 ebx = POP32_VAL(esp); /* 0x36143A91: pop ebx */ 9087 esp = ebp; /* 0x36143A92: mov esp, ebp */ 9088 ebp = POP32_VAL(esp); /* 0x36143A94: pop ebp */ 9089 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36143A95: ret 8 */ 9090 RECOMP_REGS_OUT(); 9091 } 9092 9093 void sub_36143AA0(void) { 9094 int _fpu_cmp = 0; 9095 uint32_t _cf = 0; 9096 int _df = 1; 9097 uint32_t _flag_k = FK_NONE; 9098 uint32_t _flag_a = 0, _flag_b = 0; 9099 uint32_t _itail_tgt = 0; 9100 RECOMP_REGS_LOCALS 9101 RECOMP_ENTER(0x36143AA0u); 9102 9103 L_36143AA0: 9104 PUSH32(esp, ebp); /* 0x36143AA0: push ebp */ 9105 ebp = esp; /* 0x36143AA1: mov ebp, esp */ 9106 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9108 esp = esp - 0xCu; /* 0x36143AA3: sub esp, 0xc */ 9109 _flag_k = FK_CMP; 9110 PUSH32(esp, esi); /* 0x36143AA6: push esi */ 9111 esi = MEM32(ebp + 0x10); /* 0x36143AA7: mov esi, dword ptr [ebp + 0x10] */ 9112 PUSH32(esp, edi); /* 0x36143AAA: push edi */ 9113 edi = ecx; /* 0x36143AAB: mov edi, ecx */ 9114 MEM32(ebp + (-0xC)) = 0; /* 0x36143AAD: mov dword ptr [ebp - 0xc], 0 */ 9115 ecx = MEM32(ebp + (-0xC)); /* 0x36143AB4: mov ecx, dword ptr [ebp - 0xc] */ 9116 eax = esi; /* 0x36143AB7: mov eax, esi */ 9117 MEM32(eax) = ecx; /* 0x36143AB9: mov dword ptr [eax], ecx */ 9118 MEM32(ebp + (-0x8)) = 0; /* 0x36143ABB: mov dword ptr [ebp - 8], 0 */ 9119 edx = MEM32(ebp + (-0x8)); /* 0x36143AC2: mov edx, dword ptr [ebp - 8] */ 9120 MEM32(eax + 0x4) = edx; /* 0x36143AC5: mov dword ptr [eax + 4], edx */ 9121 edx = MEM32(ebp + 0xC); /* 0x36143AC8: mov edx, dword ptr [ebp + 0xc] */ 9122 MEM32(ebp + (-0x4)) = 0; /* 0x36143ACB: mov dword ptr [ebp - 4], 0 */ 9123 ecx = MEM32(ebp + (-0x4)); /* 0x36143AD2: mov ecx, dword ptr [ebp - 4] */ 9124 MEM32(eax + 0x8) = ecx; /* 0x36143AD5: mov dword ptr [eax + 8], ecx */ 9125 eax = MEM32(ebp + 0x8); /* 0x36143AD8: mov eax, dword ptr [ebp + 8] */ 9126 ecx = MEM32(edi + 0x160); /* 0x36143ADB: mov ecx, dword ptr [edi + 0x160] */ 9127 PUSH32(esp, edx); /* 0x36143AE1: push edx */ 9128 PUSH32(esp, eax); /* 0x36143AE2: push eax */ 9129 PUSH32(esp, edi); /* 0x36143AE3: push edi */ 9130 RECOMP_ICALL(0x3613C570u); /* 0x36143AE4: call 0x3613c570 */ /* not lifted */ 9131 RECOMP_FLAGS_IN(); 9132 edx = MEM32(eax + 0x4); /* 0x36143AE9: mov edx, dword ptr [eax + 4] */ 9133 /* test edx, edx */ /* 0x36143AEC: test edx, edx */ 9134 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9135 _cf = 0; 9136 _flag_k = FK_TEST; 9137 if (TEST_Z(_flag_a, _flag_b)) goto L_36143B01; /* 0x36143AEE: je 0x36143b01 */ 9138 L_36143AF0: 9139 ecx = MEM32(eax + 0x8); /* 0x36143AF0: mov ecx, dword ptr [eax + 8] */ 9140 PUSH32(esp, ebx); /* 0x36143AF3: push ebx */ 9141 ebx = ecx; /* 0x36143AF4: mov ebx, ecx */ 9142 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 9143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9144 ebx = ebx - edx; /* 0x36143AF6: sub ebx, edx */ 9145 _flag_k = FK_CMP; 9146 /* test ebx, 0xFFFFFFFCu */ /* 0x36143AF8: test ebx, 0xfffffffc */ 9147 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFCu); 9148 _cf = 0; 9149 _flag_k = FK_TEST; 9150 ebx = POP32_VAL(esp); /* 0x36143AFE: pop ebx */ 9151 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143B0B; /* 0x36143AFF: jne 0x36143b0b */ 9152 L_36143B01: 9153 edi = POP32_VAL(esp); /* 0x36143B01: pop edi */ 9154 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9155 eax = 0; /* 0x36143B02: xor eax, eax */ 9156 _cf = 0; 9157 _flag_k = FK_TEST; 9158 esi = POP32_VAL(esp); /* 0x36143B04: pop esi */ 9159 esp = ebp; /* 0x36143B05: mov esp, ebp */ 9160 ebp = POP32_VAL(esp); /* 0x36143B07: pop ebp */ 9161 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36143B08: ret 0xc */ 9162 L_36143B0B: 9163 /* cmp edx, ecx */ /* 0x36143B0B: cmp edx, ecx */ 9164 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9166 _flag_k = FK_CMP; 9167 if (CMP_EQ(_flag_a, _flag_b)) goto L_36143B37; /* 0x36143B0D: je 0x36143b37 */ 9168 L_36143B0F: 9169 ecx = MEM32(edx); /* 0x36143B0F: mov ecx, dword ptr [edx] */ 9170 fp_push(*(float*)&MEM32(ecx + 0x60)); /* 0x36143B11: fld dword ptr [ecx + 0x60] */ 9171 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x60u); 9172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9173 ecx = ecx + 0x60u; /* 0x36143B14: add ecx, 0x60 */ 9174 _flag_k = FK_ADD; 9175 _st[0] += (double)*(float*)ADDR(esi); /* 0x36143B17: fadd dword ptr [esi] */ 9176 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 9177 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9178 edx = edx + 4; /* 0x36143B19: add edx, 4 */ 9179 _flag_k = FK_ADD; 9180 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36143B1C: fstp dword ptr [esi] */ 9181 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36143B1E: fld dword ptr [ecx + 4] */ 9182 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x36143B21: fadd dword ptr [esi + 4] */ 9183 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143B24: fstp dword ptr [esi + 4] */ 9184 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x36143B27: fld dword ptr [ecx + 8] */ 9185 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x36143B2A: fadd dword ptr [esi + 8] */ 9186 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143B2D: fstp dword ptr [esi + 8] */ 9187 ecx = MEM32(eax + 0x8); /* 0x36143B30: mov ecx, dword ptr [eax + 8] */ 9188 /* cmp edx, ecx */ /* 0x36143B33: cmp edx, ecx */ 9189 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9191 _flag_k = FK_CMP; 9192 RECOMP_BACKEDGE(); 9193 if (CMP_NE(_flag_a, _flag_b)) goto L_36143B0F; /* 0x36143B35: jne 0x36143b0f */ 9194 L_36143B37: 9195 ecx = MEM32(eax + 0x4); /* 0x36143B37: mov ecx, dword ptr [eax + 4] */ 9196 /* test ecx, ecx */ /* 0x36143B3A: test ecx, ecx */ 9197 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9198 _cf = 0; 9199 _flag_k = FK_TEST; 9200 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143B42; /* 0x36143B3C: jne 0x36143b42 */ 9201 L_36143B3E: 9202 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9203 eax = 0; /* 0x36143B3E: xor eax, eax */ 9204 _cf = 0; 9205 _flag_k = FK_TEST; 9206 goto L_36143B4A; /* 0x36143B40: jmp 0x36143b4a */ 9207 L_36143B42: 9208 eax = MEM32(eax + 0x8); /* 0x36143B42: mov eax, dword ptr [eax + 8] */ 9209 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9211 eax = eax - ecx; /* 0x36143B45: sub eax, ecx */ 9212 _flag_k = FK_CMP; 9213 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x36143B47: sar eax, 2 */ 9214 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9215 eax = (uint32_t)((int32_t)eax >> 2u); 9216 L_36143B4A: 9217 MEM32(ebp + (-0x8)) = eax; /* 0x36143B4A: mov dword ptr [ebp - 8], eax */ 9218 MEM32(ebp + (-0x4)) = 0; /* 0x36143B4D: mov dword ptr [ebp - 4], 0 */ 9219 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x36143B54: fild qword ptr [ebp - 8] */ 9220 fp_push(*(float*)&MEM32(esi)); /* 0x36143B57: fld dword ptr [esi] */ 9221 eax = 2; /* 0x36143B59: mov eax, 2 */ 9222 _st[0] /= _st[1]; /* 0x36143B5E: fdiv st(1) */ 9223 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x10) = _v; } /* 0x36143B60: fst dword ptr [ebp + 0x10] */ 9224 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36143B63: fstp dword ptr [esi] */ 9225 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x36143B65: fld dword ptr [esi + 4] */ 9226 _st[0] /= _st[1]; /* 0x36143B68: fdiv st(1) */ 9227 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x36143B6A: fst dword ptr [ebp + 0xc] */ 9228 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143B6D: fstp dword ptr [esi + 4] */ 9229 _st[0] = (double)*(float*)ADDR(esi + 0x8) / _st[0]; /* 0x36143B70: fdivr dword ptr [esi + 8] */ 9230 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143B73: fst dword ptr [esi + 8] */ 9231 fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x36143B76: fld dword ptr [ebp + 0x10] */ 9232 _st[0] -= (double)*(float*)ADDR(edi + 0x60); /* 0x36143B79: fsub dword ptr [edi + 0x60] */ 9233 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36143B7C: fstp dword ptr [esi] */ 9234 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x36143B7E: fld dword ptr [ebp + 0xc] */ 9235 _st[0] -= (double)*(float*)ADDR(edi + 0x64); /* 0x36143B81: fsub dword ptr [edi + 0x64] */ 9236 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143B84: fstp dword ptr [esi + 4] */ 9237 _st[0] -= (double)*(float*)ADDR(edi + 0x68); /* 0x36143B87: fsub dword ptr [edi + 0x68] */ 9238 edi = POP32_VAL(esp); /* 0x36143B8A: pop edi */ 9239 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143B8B: fstp dword ptr [esi + 8] */ 9240 esi = POP32_VAL(esp); /* 0x36143B8E: pop esi */ 9241 esp = ebp; /* 0x36143B8F: mov esp, ebp */ 9242 ebp = POP32_VAL(esp); /* 0x36143B91: pop ebp */ 9243 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36143B92: ret 0xc */ 9244 RECOMP_REGS_OUT(); 9245 } 9246 9247 void sub_36143BA0(void) { 9248 int _fpu_cmp = 0; 9249 uint32_t _cf = 0; 9250 int _df = 1; 9251 uint32_t _flag_k = FK_NONE; 9252 uint32_t _flag_a = 0, _flag_b = 0; 9253 uint32_t _itail_tgt = 0; 9254 RECOMP_REGS_LOCALS 9255 RECOMP_ENTER(0x36143BA0u); 9256 9257 L_36143BA0: 9258 PUSH32(esp, ebp); /* 0x36143BA0: push ebp */ 9259 ebp = esp; /* 0x36143BA1: mov ebp, esp */ 9260 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9262 esp = esp - 0xCu; /* 0x36143BA3: sub esp, 0xc */ 9263 _flag_k = FK_CMP; 9264 PUSH32(esp, esi); /* 0x36143BA6: push esi */ 9265 esi = MEM32(ebp + 0xC); /* 0x36143BA7: mov esi, dword ptr [ebp + 0xc] */ 9266 PUSH32(esp, edi); /* 0x36143BAA: push edi */ 9267 edi = ecx; /* 0x36143BAB: mov edi, ecx */ 9268 MEM32(ebp + (-0xC)) = 0; /* 0x36143BAD: mov dword ptr [ebp - 0xc], 0 */ 9269 ecx = MEM32(ebp + (-0xC)); /* 0x36143BB4: mov ecx, dword ptr [ebp - 0xc] */ 9270 eax = esi; /* 0x36143BB7: mov eax, esi */ 9271 MEM32(eax) = ecx; /* 0x36143BB9: mov dword ptr [eax], ecx */ 9272 MEM32(ebp + (-0x8)) = 0; /* 0x36143BBB: mov dword ptr [ebp - 8], 0 */ 9273 edx = MEM32(ebp + (-0x8)); /* 0x36143BC2: mov edx, dword ptr [ebp - 8] */ 9274 MEM32(eax + 0x4) = edx; /* 0x36143BC5: mov dword ptr [eax + 4], edx */ 9275 edx = MEM32(ebp + 0x8); /* 0x36143BC8: mov edx, dword ptr [ebp + 8] */ 9276 MEM32(ebp + (-0x4)) = 0; /* 0x36143BCB: mov dword ptr [ebp - 4], 0 */ 9277 ecx = MEM32(ebp + (-0x4)); /* 0x36143BD2: mov ecx, dword ptr [ebp - 4] */ 9278 PUSH32(esp, edx); /* 0x36143BD5: push edx */ 9279 MEM32(eax + 0x8) = ecx; /* 0x36143BD6: mov dword ptr [eax + 8], ecx */ 9280 ecx = MEM32(edi + 0x160); /* 0x36143BD9: mov ecx, dword ptr [edi + 0x160] */ 9281 PUSH32(esp, edi); /* 0x36143BDF: push edi */ 9282 RECOMP_ICALL(0x3613C800u); /* 0x36143BE0: call 0x3613c800 */ /* not lifted */ 9283 RECOMP_FLAGS_IN(); 9284 edx = MEM32(eax + 0x4); /* 0x36143BE5: mov edx, dword ptr [eax + 4] */ 9285 /* test edx, edx */ /* 0x36143BE8: test edx, edx */ 9286 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9287 _cf = 0; 9288 _flag_k = FK_TEST; 9289 if (TEST_Z(_flag_a, _flag_b)) goto L_36143BFD; /* 0x36143BEA: je 0x36143bfd */ 9290 L_36143BEC: 9291 ecx = MEM32(eax + 0x8); /* 0x36143BEC: mov ecx, dword ptr [eax + 8] */ 9292 PUSH32(esp, ebx); /* 0x36143BEF: push ebx */ 9293 ebx = ecx; /* 0x36143BF0: mov ebx, ecx */ 9294 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 9295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9296 ebx = ebx - edx; /* 0x36143BF2: sub ebx, edx */ 9297 _flag_k = FK_CMP; 9298 /* test ebx, 0xFFFFFFFCu */ /* 0x36143BF4: test ebx, 0xfffffffc */ 9299 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFCu); 9300 _cf = 0; 9301 _flag_k = FK_TEST; 9302 ebx = POP32_VAL(esp); /* 0x36143BFA: pop ebx */ 9303 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143C07; /* 0x36143BFB: jne 0x36143c07 */ 9304 L_36143BFD: 9305 edi = POP32_VAL(esp); /* 0x36143BFD: pop edi */ 9306 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9307 eax = 0; /* 0x36143BFE: xor eax, eax */ 9308 _cf = 0; 9309 _flag_k = FK_TEST; 9310 esi = POP32_VAL(esp); /* 0x36143C00: pop esi */ 9311 esp = ebp; /* 0x36143C01: mov esp, ebp */ 9312 ebp = POP32_VAL(esp); /* 0x36143C03: pop ebp */ 9313 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36143C04: ret 8 */ 9314 L_36143C07: 9315 /* cmp edx, ecx */ /* 0x36143C07: cmp edx, ecx */ 9316 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9318 _flag_k = FK_CMP; 9319 if (CMP_EQ(_flag_a, _flag_b)) goto L_36143C33; /* 0x36143C09: je 0x36143c33 */ 9320 L_36143C0B: 9321 ecx = MEM32(edx); /* 0x36143C0B: mov ecx, dword ptr [edx] */ 9322 fp_push(*(float*)&MEM32(esi)); /* 0x36143C0D: fld dword ptr [esi] */ 9323 _st[0] += (double)*(float*)ADDR(ecx + 0x60); /* 0x36143C0F: fadd dword ptr [ecx + 0x60] */ 9324 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x60u); 9325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9326 ecx = ecx + 0x60u; /* 0x36143C12: add ecx, 0x60 */ 9327 _flag_k = FK_ADD; 9328 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 9329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9330 edx = edx + 4; /* 0x36143C15: add edx, 4 */ 9331 _flag_k = FK_ADD; 9332 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36143C18: fstp dword ptr [esi] */ 9333 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36143C1A: fld dword ptr [ecx + 4] */ 9334 _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x36143C1D: fadd dword ptr [esi + 4] */ 9335 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143C20: fstp dword ptr [esi + 4] */ 9336 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x36143C23: fld dword ptr [ecx + 8] */ 9337 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x36143C26: fadd dword ptr [esi + 8] */ 9338 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143C29: fstp dword ptr [esi + 8] */ 9339 ecx = MEM32(eax + 0x8); /* 0x36143C2C: mov ecx, dword ptr [eax + 8] */ 9340 /* cmp edx, ecx */ /* 0x36143C2F: cmp edx, ecx */ 9341 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9343 _flag_k = FK_CMP; 9344 RECOMP_BACKEDGE(); 9345 if (CMP_NE(_flag_a, _flag_b)) goto L_36143C0B; /* 0x36143C31: jne 0x36143c0b */ 9346 L_36143C33: 9347 ecx = MEM32(eax + 0x4); /* 0x36143C33: mov ecx, dword ptr [eax + 4] */ 9348 /* test ecx, ecx */ /* 0x36143C36: test ecx, ecx */ 9349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9350 _cf = 0; 9351 _flag_k = FK_TEST; 9352 if (TEST_NZ(_flag_a, _flag_b)) goto L_36143C3E; /* 0x36143C38: jne 0x36143c3e */ 9353 L_36143C3A: 9354 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9355 eax = 0; /* 0x36143C3A: xor eax, eax */ 9356 _cf = 0; 9357 _flag_k = FK_TEST; 9358 goto L_36143C46; /* 0x36143C3C: jmp 0x36143c46 */ 9359 L_36143C3E: 9360 eax = MEM32(eax + 0x8); /* 0x36143C3E: mov eax, dword ptr [eax + 8] */ 9361 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9363 eax = eax - ecx; /* 0x36143C41: sub eax, ecx */ 9364 _flag_k = FK_CMP; 9365 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x36143C43: sar eax, 2 */ 9366 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9367 eax = (uint32_t)((int32_t)eax >> 2u); 9368 L_36143C46: 9369 MEM32(ebp + (-0x8)) = eax; /* 0x36143C46: mov dword ptr [ebp - 8], eax */ 9370 MEM32(ebp + (-0x4)) = 0; /* 0x36143C49: mov dword ptr [ebp - 4], 0 */ 9371 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x36143C50: fild qword ptr [ebp - 8] */ 9372 fp_push(*(float*)&MEM32(esi)); /* 0x36143C53: fld dword ptr [esi] */ 9373 eax = 2; /* 0x36143C55: mov eax, 2 */ 9374 _st[0] /= _st[1]; /* 0x36143C5A: fdiv st(1) */ 9375 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x36143C5C: fst dword ptr [ebp + 0xc] */ 9376 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36143C5F: fstp dword ptr [esi] */ 9377 fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x36143C61: fld dword ptr [esi + 4] */ 9378 _st[0] /= _st[1]; /* 0x36143C64: fdiv st(1) */ 9379 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x36143C66: fst dword ptr [ebp + 8] */ 9380 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143C69: fstp dword ptr [esi + 4] */ 9381 _st[0] = (double)*(float*)ADDR(esi + 0x8) / _st[0]; /* 0x36143C6C: fdivr dword ptr [esi + 8] */ 9382 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143C6F: fst dword ptr [esi + 8] */ 9383 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x36143C72: fld dword ptr [ebp + 0xc] */ 9384 _st[0] -= (double)*(float*)ADDR(edi + 0x60); /* 0x36143C75: fsub dword ptr [edi + 0x60] */ 9385 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x36143C78: fstp dword ptr [esi] */ 9386 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36143C7A: fld dword ptr [ebp + 8] */ 9387 _st[0] -= (double)*(float*)ADDR(edi + 0x64); /* 0x36143C7D: fsub dword ptr [edi + 0x64] */ 9388 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x36143C80: fstp dword ptr [esi + 4] */ 9389 _st[0] -= (double)*(float*)ADDR(edi + 0x68); /* 0x36143C83: fsub dword ptr [edi + 0x68] */ 9390 edi = POP32_VAL(esp); /* 0x36143C86: pop edi */ 9391 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x36143C87: fstp dword ptr [esi + 8] */ 9392 esi = POP32_VAL(esp); /* 0x36143C8A: pop esi */ 9393 esp = ebp; /* 0x36143C8B: mov esp, ebp */ 9394 ebp = POP32_VAL(esp); /* 0x36143C8D: pop ebp */ 9395 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36143C8E: ret 8 */ 9396 RECOMP_REGS_OUT(); 9397 } 9398 9399 void sub_36143CA0(void) { 9400 int _fpu_cmp = 0; 9401 uint32_t _cf = 0; 9402 int _df = 1; 9403 uint32_t _flag_k = FK_NONE; 9404 uint32_t _flag_a = 0, _flag_b = 0; 9405 uint32_t _itail_tgt = 0; 9406 RECOMP_REGS_LOCALS 9407 RECOMP_ENTER(0x36143CA0u); 9408 9409 L_36143CA0: 9410 PUSH32(esp, ebp); /* 0x36143CA0: push ebp */ 9411 ebp = esp; /* 0x36143CA1: mov ebp, esp */ 9412 PUSH32(esp, 0xFFFFFFFFu); /* 0x36143CA3: push -1 */ 9413 PUSH32(esp, 0x3616CE5Fu); /* 0x36143CA5: push 0x3616ce5f */ 9414 eax = MEM32(FS_BASE + (0)); /* 0x36143CAA: mov eax, dword ptr fs:[0] */ 9415 PUSH32(esp, eax); /* 0x36143CB0: push eax */ 9416 MEM32(FS_BASE + (0)) = esp; /* 0x36143CB1: mov dword ptr fs:[0], esp */ 9417 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9419 esp = esp - 0x14u; /* 0x36143CB8: sub esp, 0x14 */ 9420 _flag_k = FK_CMP; 9421 PUSH32(esp, ebx); /* 0x36143CBB: push ebx */ 9422 PUSH32(esp, esi); /* 0x36143CBC: push esi */ 9423 esi = ecx; /* 0x36143CBD: mov esi, ecx */ 9424 PUSH32(esp, edi); /* 0x36143CBF: push edi */ 9425 MEM32(ebp + (-0x14)) = esi; /* 0x36143CC0: mov dword ptr [ebp - 0x14], esi */ 9426 RECOMP_ICALL(MEM32(0x36170320)); /* 0x36143CC3: call dword ptr [0x36170320] */ 9427 RECOMP_FLAGS_IN(); 9428 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9429 ebx = 0; /* 0x36143CC9: xor ebx, ebx */ 9430 _cf = 0; 9431 _flag_k = FK_TEST; 9432 MEM32(ebp + (-0x4)) = ebx; /* 0x36143CCB: mov dword ptr [ebp - 4], ebx */ 9433 MEM32(esi) = 0x36178084u; /* 0x36143CCE: mov dword ptr [esi], 0x36178084 */ 9434 MEM32(esi + 0x20) = 0x3617807Cu; /* 0x36143CD4: mov dword ptr [esi + 0x20], 0x3617807c */ 9435 MEM32(esi + 0x130) = 0xBF800000u; /* 0x36143CDB: mov dword ptr [esi + 0x130], 0xbf800000 */ 9436 MEM32(esi + 0x134) = ebx; /* 0x36143CE5: mov dword ptr [esi + 0x134], ebx */ 9437 RECOMP_ICALL(MEM32(0x361700DC)); /* 0x36143CEB: call dword ptr [0x361700dc] */ 9438 RECOMP_FLAGS_IN(); 9439 ecx = eax; /* 0x36143CF1: mov ecx, eax */ 9440 MEM32(esi + 0x13C) = eax; /* 0x36143CF3: mov dword ptr [esi + 0x13c], eax */ 9441 RECOMP_ICALL(MEM32(0x361700C0)); /* 0x36143CF9: call dword ptr [0x361700c0] */ 9442 RECOMP_FLAGS_IN(); 9443 MEM32(esi + 0x138) = eax; /* 0x36143CFF: mov dword ptr [esi + 0x138], eax */ 9444 MEM32(esi + 0x140) = ebx; /* 0x36143D05: mov dword ptr [esi + 0x140], ebx */ 9445 MEM32(esi + 0x144) = ebx; /* 0x36143D0B: mov dword ptr [esi + 0x144], ebx */ 9446 MEM32(esi + 0x148) = ebx; /* 0x36143D11: mov dword ptr [esi + 0x148], ebx */ 9447 MEM32(esi + 0x14C) = ebx; /* 0x36143D17: mov dword ptr [esi + 0x14c], ebx */ 9448 MEM32(esi + 0x150) = ebx; /* 0x36143D1D: mov dword ptr [esi + 0x150], ebx */ 9449 MEM32(esi + 0x154) = ebx; /* 0x36143D23: mov dword ptr [esi + 0x154], ebx */ 9450 PUSH32(esp, ebx); /* 0x36143D29: push ebx */ 9451 eax = ebx; /* 0x36143D2A: mov eax, ebx */ 9452 MEM32(esi + 0x140) = eax; /* 0x36143D2C: mov dword ptr [esi + 0x140], eax */ 9453 ecx = ebx; /* 0x36143D32: mov ecx, ebx */ 9454 MEM32(esi + 0x144) = ecx; /* 0x36143D34: mov dword ptr [esi + 0x144], ecx */ 9455 PUSH32(esp, ebx); /* 0x36143D3A: push ebx */ 9456 edx = ebx; /* 0x36143D3B: mov edx, ebx */ 9457 PUSH32(esp, ebx); /* 0x36143D3D: push ebx */ 9458 ecx = ebp + (-0x20); /* 0x36143D3E: lea ecx, [ebp - 0x20] */ 9459 MEM32(ebp + (-0x4)) = 1; /* 0x36143D41: mov dword ptr [ebp - 4], 1 */ 9460 MEM32(esi) = 0x36177FDCu; /* 0x36143D48: mov dword ptr [esi], 0x36177fdc */ 9461 MEM32(esi + 0x20) = 0x36177FD4u; /* 0x36143D4E: mov dword ptr [esi + 0x20], 0x36177fd4 */ 9462 MEM32(esi + 0x15C) = ebx; /* 0x36143D55: mov dword ptr [esi + 0x15c], ebx */ 9463 MEM32(ebp + (-0x20)) = ebx; /* 0x36143D5B: mov dword ptr [ebp - 0x20], ebx */ 9464 MEM32(ebp + (-0x1C)) = ebx; /* 0x36143D5E: mov dword ptr [ebp - 0x1c], ebx */ 9465 MEM32(ebp + (-0x18)) = ebx; /* 0x36143D61: mov dword ptr [ebp - 0x18], ebx */ 9466 MEM32(esi + 0x148) = edx; /* 0x36143D64: mov dword ptr [esi + 0x148], edx */ 9467 MEM32(esi + 0x160) = ebx; /* 0x36143D6A: mov dword ptr [esi + 0x160], ebx */ 9468 MEM32(esi + 0x158) = ebx; /* 0x36143D70: mov dword ptr [esi + 0x158], ebx */ 9469 MEM8(esi + 0x164) = (uint8_t)(LO8(ebx)); /* 0x36143D76: mov byte ptr [esi + 0x164], bl */ 9470 MEM8(esi + 0x165) = (uint8_t)(LO8(ebx)); /* 0x36143D7C: mov byte ptr [esi + 0x165], bl */ 9471 MEM8(esi + 0x166) = (uint8_t)(LO8(ebx)); /* 0x36143D82: mov byte ptr [esi + 0x166], bl */ 9472 RECOMP_ICALL(MEM32(0x36170170)); /* 0x36143D88: call dword ptr [0x36170170] */ 9473 RECOMP_FLAGS_IN(); 9474 ecx = MEM32(eax); /* 0x36143D8E: mov ecx, dword ptr [eax] */ 9475 MEM32(esi + 0x14C) = ecx; /* 0x36143D90: mov dword ptr [esi + 0x14c], ecx */ 9476 edx = MEM32(eax + 0x4); /* 0x36143D96: mov edx, dword ptr [eax + 4] */ 9477 ecx = MEM32(ebp + 0x8); /* 0x36143D99: mov ecx, dword ptr [ebp + 8] */ 9478 MEM32(esi + 0x150) = edx; /* 0x36143D9C: mov dword ptr [esi + 0x150], edx */ 9479 eax = MEM32(eax + 0x8); /* 0x36143DA2: mov eax, dword ptr [eax + 8] */ 9480 PUSH32(esp, 0x30u); /* 0x36143DA5: push 0x30 */ 9481 MEM32(esi + 0x154) = eax; /* 0x36143DA7: mov dword ptr [esi + 0x154], eax */ 9482 MEM32(esi + 0x16C) = ecx; /* 0x36143DAD: mov dword ptr [esi + 0x16c], ecx */ 9483 MEM32(esi + 0x168) = ebx; /* 0x36143DB3: mov dword ptr [esi + 0x168], ebx */ 9484 RECOMP_ICALL(0x3615FD6Au); /* 0x36143DB9: call 0x3615fd6a */ /* not lifted */ 9485 RECOMP_FLAGS_IN(); 9486 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9488 esp = esp + 4; /* 0x36143DBE: add esp, 4 */ 9489 _flag_k = FK_ADD; 9490 MEM32(ebp + (-0x10)) = eax; /* 0x36143DC1: mov dword ptr [ebp - 0x10], eax */ 9491 /* cmp eax, ebx */ /* 0x36143DC4: cmp eax, ebx */ 9492 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9494 _flag_k = FK_CMP; 9495 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36143DC6: mov byte ptr [ebp - 4], 2 */ 9496 if (CMP_EQ(_flag_a, _flag_b)) goto L_36143DD5; /* 0x36143DCA: je 0x36143dd5 */ 9497 L_36143DCC: 9498 ecx = eax; /* 0x36143DCC: mov ecx, eax */ 9499 RECOMP_ICALL(0x36139070u); /* 0x36143DCE: call 0x36139070 */ /* not lifted */ 9500 RECOMP_FLAGS_IN(); 9501 goto L_36143DD7; /* 0x36143DD3: jmp 0x36143dd7 */ 9502 L_36143DD5: 9503 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9504 eax = 0; /* 0x36143DD5: xor eax, eax */ 9505 _cf = 0; 9506 _flag_k = FK_TEST; 9507 L_36143DD7: 9508 PUSH32(esp, eax); /* 0x36143DD7: push eax */ 9509 ecx = esi; /* 0x36143DD8: mov ecx, esi */ 9510 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36143DDA: mov byte ptr [ebp - 4], 1 */ 9511 RECOMP_ICALL(0x36139240u); /* 0x36143DDE: call 0x36139240 */ /* not lifted */ 9512 RECOMP_FLAGS_IN(); 9513 ecx = esi; /* 0x36143DE3: mov ecx, esi */ 9514 MEM32(ebp + (-0x4)) = 3; /* 0x36143DE5: mov dword ptr [ebp - 4], 3 */ 9515 MEM32(esi) = 0x361786A8u; /* 0x36143DEC: mov dword ptr [esi], 0x361786a8 */ 9516 MEM32(esi + 0x20) = 0x361786A0u; /* 0x36143DF2: mov dword ptr [esi + 0x20], 0x361786a0 */ 9517 MEM32(esi + 0x170) = ebx; /* 0x36143DF9: mov dword ptr [esi + 0x170], ebx */ 9518 RECOMP_ICALL(MEM32(0x361702DC)); /* 0x36143DFF: call dword ptr [0x361702dc] */ 9519 RECOMP_FLAGS_IN(); 9520 ecx = esi; /* 0x36143E05: mov ecx, esi */ 9521 RECOMP_ICALL(MEM32(0x3617034C)); /* 0x36143E07: call dword ptr [0x3617034c] */ 9522 RECOMP_FLAGS_IN(); 9523 PUSH32(esp, ebx); /* 0x36143E0D: push ebx */ 9524 ecx = esi; /* 0x36143E0E: mov ecx, esi */ 9525 RECOMP_ICALL(MEM32(0x36170238)); /* 0x36143E10: call dword ptr [0x36170238] */ 9526 RECOMP_FLAGS_IN(); 9527 /* cmp MEM8(0x3630D970), LO8(ebx) */ /* 0x36143E16: cmp byte ptr [0x3630d970], bl */ 9528 _flag_a = (uint32_t)(MEM8(0x3630D970)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9530 _flag_k = FK_NARROW(FK_CMP, 24); 9531 if (CMP_NE(_flag_a, _flag_b)) goto L_36143E25; /* 0x36143E1C: jne 0x36143e25 */ 9532 L_36143E1E: 9533 ecx = esi; /* 0x36143E1E: mov ecx, esi */ 9534 RECOMP_ICALL(0x361441F0u); /* 0x36143E20: call 0x361441f0 */ /* not lifted */ 9535 RECOMP_FLAGS_IN(); 9536 L_36143E25: 9537 edx = MEM32(0x3630D960); /* 0x36143E25: mov edx, dword ptr [0x3630d960] */ 9538 PUSH32(esp, edx); /* 0x36143E2B: push edx */ 9539 ecx = esi; /* 0x36143E2C: mov ecx, esi */ 9540 RECOMP_ICALL(MEM32(0x36170244)); /* 0x36143E2E: call dword ptr [0x36170244] */ 9541 RECOMP_FLAGS_IN(); 9542 fp_push(*(float*)&MEM32(0x3630D964)); /* 0x36143E34: fld dword ptr [0x3630d964] */ 9543 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36143E3A: fst dword ptr [ebp - 0x10] */ 9544 eax = MEM32(ebp + (-0x10)); /* 0x36143E3D: mov eax, dword ptr [ebp - 0x10] */ 9545 PUSH32(esp, eax); /* 0x36143E40: push eax */ 9546 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x15C) = _v; } /* 0x36143E41: fstp dword ptr [esi + 0x15c] */ 9547 ecx = esi; /* 0x36143E47: mov ecx, esi */ 9548 RECOMP_ICALL(MEM32(0x3617025C)); /* 0x36143E49: call dword ptr [0x3617025c] */ 9549 RECOMP_FLAGS_IN(); 9550 ecx = MEM32(0x3630D968); /* 0x36143E4F: mov ecx, dword ptr [0x3630d968] */ 9551 PUSH32(esp, ecx); /* 0x36143E55: push ecx */ 9552 ecx = esi; /* 0x36143E56: mov ecx, esi */ 9553 RECOMP_ICALL(MEM32(0x36170234)); /* 0x36143E58: call dword ptr [0x36170234] */ 9554 RECOMP_FLAGS_IN(); 9555 edx = MEM32(0x3630D96C); /* 0x36143E5E: mov edx, dword ptr [0x3630d96c] */ 9556 PUSH32(esp, edx); /* 0x36143E64: push edx */ 9557 ecx = esi; /* 0x36143E65: mov ecx, esi */ 9558 RECOMP_ICALL(MEM32(0x36170260)); /* 0x36143E67: call dword ptr [0x36170260] */ 9559 RECOMP_FLAGS_IN(); 9560 PUSH32(esp, 0x5Cu); /* 0x36143E6D: push 0x5c */ 9561 RECOMP_ICALL(0x3615FD6Au); /* 0x36143E6F: call 0x3615fd6a */ /* not lifted */ 9562 RECOMP_FLAGS_IN(); 9563 edi = eax; /* 0x36143E74: mov edi, eax */ 9564 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9566 esp = esp + 4; /* 0x36143E76: add esp, 4 */ 9567 _flag_k = FK_ADD; 9568 MEM32(ebp + (-0x10)) = edi; /* 0x36143E79: mov dword ptr [ebp - 0x10], edi */ 9569 /* cmp edi, ebx */ /* 0x36143E7C: cmp edi, ebx */ 9570 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 9571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9572 _flag_k = FK_CMP; 9573 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x36143E7E: mov byte ptr [ebp - 4], 4 */ 9574 if (CMP_EQ(_flag_a, _flag_b)) goto L_36143E9E; /* 0x36143E82: je 0x36143e9e */ 9575 L_36143E84: 9576 eax = MEM32(ebp + 0x8); /* 0x36143E84: mov eax, dword ptr [ebp + 8] */ 9577 PUSH32(esp, 3); /* 0x36143E87: push 3 */ 9578 PUSH32(esp, ebx); /* 0x36143E89: push ebx */ 9579 PUSH32(esp, ebx); /* 0x36143E8A: push ebx */ 9580 PUSH32(esp, ebx); /* 0x36143E8B: push ebx */ 9581 PUSH32(esp, ebx); /* 0x36143E8C: push ebx */ 9582 PUSH32(esp, eax); /* 0x36143E8D: push eax */ 9583 ecx = edi; /* 0x36143E8E: mov ecx, edi */ 9584 RECOMP_ICALL(MEM32(0x3616F998)); /* 0x36143E90: call dword ptr [0x3616f998] */ 9585 RECOMP_FLAGS_IN(); 9586 MEM32(edi) = 0x361709C8u; /* 0x36143E96: mov dword ptr [edi], 0x361709c8 */ 9587 goto L_36143EA0; /* 0x36143E9C: jmp 0x36143ea0 */ 9588 L_36143E9E: 9589 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9590 edi = 0; /* 0x36143E9E: xor edi, edi */ 9591 _cf = 0; 9592 _flag_k = FK_TEST; 9593 L_36143EA0: 9594 /* cmp edi, ebx */ /* 0x36143EA0: cmp edi, ebx */ 9595 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 9596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9597 _flag_k = FK_CMP; 9598 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36143EA2: mov byte ptr [ebp - 4], 3 */ 9599 if (CMP_EQ(_flag_a, _flag_b)) goto L_36143EB2; /* 0x36143EA6: je 0x36143eb2 */ 9600 L_36143EA8: 9601 PUSH32(esp, edi); /* 0x36143EA8: push edi */ 9602 ecx = esi; /* 0x36143EA9: mov ecx, esi */ 9603 RECOMP_ICALL(0x36139380u); /* 0x36143EAB: call 0x36139380 */ /* not lifted */ 9604 RECOMP_FLAGS_IN(); 9605 goto L_36143EBE; /* 0x36143EB0: jmp 0x36143ebe */ 9606 L_36143EB2: 9607 MEM32(esi + 0x130) = ebx; /* 0x36143EB2: mov dword ptr [esi + 0x130], ebx */ 9608 MEM32(esi + 0x134) = ebx; /* 0x36143EB8: mov dword ptr [esi + 0x134], ebx */ 9609 L_36143EBE: 9610 ecx = MEM32(ebp + (-0xC)); /* 0x36143EBE: mov ecx, dword ptr [ebp - 0xc] */ 9611 edi = POP32_VAL(esp); /* 0x36143EC1: pop edi */ 9612 eax = esi; /* 0x36143EC2: mov eax, esi */ 9613 esi = POP32_VAL(esp); /* 0x36143EC4: pop esi */ 9614 ebx = POP32_VAL(esp); /* 0x36143EC5: pop ebx */ 9615 MEM32(FS_BASE + (0)) = ecx; /* 0x36143EC6: mov dword ptr fs:[0], ecx */ 9616 esp = ebp; /* 0x36143ECD: mov esp, ebp */ 9617 ebp = POP32_VAL(esp); /* 0x36143ECF: pop ebp */ 9618 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36143ED0: ret 4 */ 9619 RECOMP_REGS_OUT(); 9620 } 9621 9622 void sub_36143EE0(void) { 9623 int _fpu_cmp = 0; 9624 uint32_t _cf = 0; 9625 int _df = 1; 9626 uint32_t _flag_k = FK_NONE; 9627 uint32_t _flag_a = 0, _flag_b = 0; 9628 uint32_t _itail_tgt = 0; 9629 RECOMP_REGS_LOCALS 9630 RECOMP_ENTER(0x36143EE0u); 9631 9632 L_36143EE0: 9633 PUSH32(esp, ebp); /* 0x36143EE0: push ebp */ 9634 ebp = esp; /* 0x36143EE1: mov ebp, esp */ 9635 PUSH32(esp, esi); /* 0x36143EE3: push esi */ 9636 esi = ecx; /* 0x36143EE4: mov esi, ecx */ 9637 RECOMP_ICALL(0x36143F10u); /* 0x36143EE6: call 0x36143f10 */ /* not lifted */ 9638 RECOMP_FLAGS_IN(); 9639 /* test MEM8(ebp + 0x8), 1 */ /* 0x36143EEB: test byte ptr [ebp + 8], 1 */ 9640 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9641 _cf = 0; 9642 _flag_k = FK_NARROW(FK_TEST, 24); 9643 if (TEST_Z(_flag_a, _flag_b)) goto L_36143EFA; /* 0x36143EEF: je 0x36143efa */ 9644 L_36143EF1: 9645 PUSH32(esp, esi); /* 0x36143EF1: push esi */ 9646 RECOMP_ICALL(0x3615FCC4u); /* 0x36143EF2: call 0x3615fcc4 */ /* not lifted */ 9647 RECOMP_FLAGS_IN(); 9648 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9649 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9650 esp = esp + 4; /* 0x36143EF7: add esp, 4 */ 9651 _flag_k = FK_ADD; 9652 L_36143EFA: 9653 eax = esi; /* 0x36143EFA: mov eax, esi */ 9654 esi = POP32_VAL(esp); /* 0x36143EFC: pop esi */ 9655 ebp = POP32_VAL(esp); /* 0x36143EFD: pop ebp */ 9656 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36143EFE: ret 4 */ 9657 RECOMP_REGS_OUT(); 9658 } 9659 9660 void sub_36143F10(void) { 9661 int _fpu_cmp = 0; 9662 uint32_t _cf = 0; 9663 int _df = 1; 9664 uint32_t _flag_k = FK_NONE; 9665 uint32_t _flag_a = 0, _flag_b = 0; 9666 uint32_t _itail_tgt = 0; 9667 RECOMP_REGS_LOCALS 9668 RECOMP_ENTER(0x36143F10u); 9669 9670 L_36143F10: 9671 PUSH32(esp, ebp); /* 0x36143F10: push ebp */ 9672 ebp = esp; /* 0x36143F11: mov ebp, esp */ 9673 PUSH32(esp, 0xFFFFFFFFu); /* 0x36143F13: push -1 */ 9674 PUSH32(esp, 0x3616CE78u); /* 0x36143F15: push 0x3616ce78 */ 9675 eax = MEM32(FS_BASE + (0)); /* 0x36143F1A: mov eax, dword ptr fs:[0] */ 9676 PUSH32(esp, eax); /* 0x36143F20: push eax */ 9677 MEM32(FS_BASE + (0)) = esp; /* 0x36143F21: mov dword ptr fs:[0], esp */ 9678 PUSH32(esp, ecx); /* 0x36143F28: push ecx */ 9679 PUSH32(esp, esi); /* 0x36143F29: push esi */ 9680 esi = ecx; /* 0x36143F2A: mov esi, ecx */ 9681 PUSH32(esp, edi); /* 0x36143F2C: push edi */ 9682 MEM32(ebp + (-0x10)) = esi; /* 0x36143F2D: mov dword ptr [ebp - 0x10], esi */ 9683 MEM32(esi) = 0x36177FDCu; /* 0x36143F30: mov dword ptr [esi], 0x36177fdc */ 9684 MEM32(esi + 0x20) = 0x36177FD4u; /* 0x36143F36: mov dword ptr [esi + 0x20], 0x36177fd4 */ 9685 MEM32(ebp + (-0x4)) = 0; /* 0x36143F3D: mov dword ptr [ebp - 4], 0 */ 9686 RECOMP_ICALL(MEM32(0x36170368)); /* 0x36143F44: call dword ptr [0x36170368] */ 9687 RECOMP_FLAGS_IN(); 9688 edi = eax; /* 0x36143F4A: mov edi, eax */ 9689 /* test edi, edi */ /* 0x36143F4C: test edi, edi */ 9690 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9691 _cf = 0; 9692 _flag_k = FK_TEST; 9693 if (TEST_Z(_flag_a, _flag_b)) goto L_36143F7A; /* 0x36143F4E: je 0x36143f7a */ 9694 L_36143F50: 9695 ecx = MEM32(edi + 0x18); /* 0x36143F50: mov ecx, dword ptr [edi + 0x18] */ 9696 /* test ecx, ecx */ /* 0x36143F53: test ecx, ecx */ 9697 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9698 _cf = 0; 9699 _flag_k = FK_TEST; 9700 MEM32(edi) = 0x36178118u; /* 0x36143F55: mov dword ptr [edi], 0x36178118 */ 9701 MEM32(edi + 0x4) = 0x36178110u; /* 0x36143F5B: mov dword ptr [edi + 4], 0x36178110 */ 9702 if (TEST_Z(_flag_a, _flag_b)) goto L_36143F6A; /* 0x36143F62: je 0x36143f6a */ 9703 L_36143F64: 9704 eax = MEM32(ecx); /* 0x36143F64: mov eax, dword ptr [ecx] */ 9705 PUSH32(esp, 1); /* 0x36143F66: push 1 */ 9706 RECOMP_ICALL(MEM32(eax)); /* 0x36143F68: call dword ptr [eax] */ 9707 RECOMP_FLAGS_IN(); 9708 L_36143F6A: 9709 PUSH32(esp, edi); /* 0x36143F6A: push edi */ 9710 MEM32(edi + 0x18) = 0; /* 0x36143F6B: mov dword ptr [edi + 0x18], 0 */ 9711 RECOMP_ICALL(0x3615FCC4u); /* 0x36143F72: call 0x3615fcc4 */ /* not lifted */ 9712 RECOMP_FLAGS_IN(); 9713 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9715 esp = esp + 4; /* 0x36143F77: add esp, 4 */ 9716 _flag_k = FK_ADD; 9717 L_36143F7A: 9718 PUSH32(esp, 0); /* 0x36143F7A: push 0 */ 9719 ecx = esi; /* 0x36143F7C: mov ecx, esi */ 9720 RECOMP_ICALL(MEM32(0x36170328)); /* 0x36143F7E: call dword ptr [0x36170328] */ 9721 RECOMP_FLAGS_IN(); 9722 ecx = MEM32(esi + 0x168); /* 0x36143F84: mov ecx, dword ptr [esi + 0x168] */ 9723 /* test ecx, ecx */ /* 0x36143F8A: test ecx, ecx */ 9724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9725 _cf = 0; 9726 _flag_k = FK_TEST; 9727 if (TEST_Z(_flag_a, _flag_b)) goto L_36143F94; /* 0x36143F8C: je 0x36143f94 */ 9728 L_36143F8E: 9729 edx = MEM32(ecx); /* 0x36143F8E: mov edx, dword ptr [ecx] */ 9730 PUSH32(esp, 1); /* 0x36143F90: push 1 */ 9731 RECOMP_ICALL(MEM32(edx)); /* 0x36143F92: call dword ptr [edx] */ 9732 RECOMP_FLAGS_IN(); 9733 L_36143F94: 9734 ecx = esi; /* 0x36143F94: mov ecx, esi */ 9735 MEM32(esi + 0x168) = 0; /* 0x36143F96: mov dword ptr [esi + 0x168], 0 */ 9736 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36143FA0: mov dword ptr [ebp - 4], 0xffffffff */ 9737 MEM32(esi) = 0x36178084u; /* 0x36143FA7: mov dword ptr [esi], 0x36178084 */ 9738 MEM32(esi + 0x20) = 0x3617807Cu; /* 0x36143FAD: mov dword ptr [esi + 0x20], 0x3617807c */ 9739 RECOMP_ICALL(MEM32(0x36170318)); /* 0x36143FB4: call dword ptr [0x36170318] */ 9740 RECOMP_FLAGS_IN(); 9741 ecx = MEM32(ebp + (-0xC)); /* 0x36143FBA: mov ecx, dword ptr [ebp - 0xc] */ 9742 edi = POP32_VAL(esp); /* 0x36143FBD: pop edi */ 9743 esi = POP32_VAL(esp); /* 0x36143FBE: pop esi */ 9744 MEM32(FS_BASE + (0)) = ecx; /* 0x36143FBF: mov dword ptr fs:[0], ecx */ 9745 esp = ebp; /* 0x36143FC6: mov esp, ebp */ 9746 ebp = POP32_VAL(esp); /* 0x36143FC8: pop ebp */ 9747 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36143FC9: ret */ 9748 RECOMP_REGS_OUT(); 9749 } 9750 9751 void sub_36143FD0(void) { 9752 int _fpu_cmp = 0; 9753 uint32_t _cf = 0; 9754 int _df = 1; 9755 uint32_t _flag_k = FK_NONE; 9756 uint32_t _flag_a = 0, _flag_b = 0; 9757 uint32_t _itail_tgt = 0; 9758 RECOMP_REGS_LOCALS 9759 RECOMP_ENTER(0x36143FD0u); 9760 9761 L_36143FD0: 9762 PUSH32(esp, ebp); /* 0x36143FD0: push ebp */ 9763 ebp = esp; /* 0x36143FD1: mov ebp, esp */ 9764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 9765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9766 esp = esp - 0x20u; /* 0x36143FD3: sub esp, 0x20 */ 9767 _flag_k = FK_CMP; 9768 PUSH32(esp, ebx); /* 0x36143FD6: push ebx */ 9769 ebx = MEM32(0x3616F254); /* 0x36143FD7: mov ebx, dword ptr [0x3616f254] */ 9770 PUSH32(esp, esi); /* 0x36143FDD: push esi */ 9771 PUSH32(esp, edi); /* 0x36143FDE: push edi */ 9772 edi = MEM32(ebp + 0x8); /* 0x36143FDF: mov edi, dword ptr [ebp + 8] */ 9773 esi = ecx; /* 0x36143FE2: mov esi, ecx */ 9774 MEM32(ebp + (-0x14)) = 0; /* 0x36143FE4: mov dword ptr [ebp - 0x14], 0 */ 9775 ecx = MEM32(ebp + (-0x14)); /* 0x36143FEB: mov ecx, dword ptr [ebp - 0x14] */ 9776 eax = edi; /* 0x36143FEE: mov eax, edi */ 9777 MEM32(eax) = ecx; /* 0x36143FF0: mov dword ptr [eax], ecx */ 9778 MEM32(ebp + (-0x10)) = 0; /* 0x36143FF2: mov dword ptr [ebp - 0x10], 0 */ 9779 edx = MEM32(ebp + (-0x10)); /* 0x36143FF9: mov edx, dword ptr [ebp - 0x10] */ 9780 MEM32(ebp + (-0xC)) = 0; /* 0x36143FFC: mov dword ptr [ebp - 0xc], 0 */ 9781 ecx = MEM32(ebp + (-0xC)); /* 0x36144003: mov ecx, dword ptr [ebp - 0xc] */ 9782 MEM32(eax + 0x4) = edx; /* 0x36144006: mov dword ptr [eax + 4], edx */ 9783 MEM32(eax + 0x8) = ecx; /* 0x36144009: mov dword ptr [eax + 8], ecx */ 9784 eax = MEM32(esi + 0x170); /* 0x3614400C: mov eax, dword ptr [esi + 0x170] */ 9785 /* test eax, eax */ /* 0x36144012: test eax, eax */ 9786 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9787 _cf = 0; 9788 _flag_k = FK_TEST; 9789 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144050; /* 0x36144014: jne 0x36144050 */ 9790 L_36144016: 9791 RECOMP_ICALL(ebx); /* 0x36144016: call ebx */ 9792 RECOMP_FLAGS_IN(); 9793 MEM32(ebp + 0x8) = eax; /* 0x36144018: mov dword ptr [ebp + 8], eax */ 9794 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x3614401B: fild dword ptr [ebp + 8] */ 9795 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x3614401E: fmul dword ptr [0x36170438] */ 9796 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170E8C)); /* 0x36144024: fcomp dword ptr [0x36170e8c] */ 9797 fp_pop(); 9798 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614402A: fnstsw ax */ 9799 /* test HI8(eax), 1 */ /* 0x3614402C: test ah, 1 */ 9800 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9801 _cf = 0; 9802 _flag_k = FK_NARROW(FK_TEST, 24); 9803 if (TEST_Z(_flag_a, _flag_b)) goto L_3614408D; /* 0x3614402F: je 0x3614408d */ 9804 L_36144031: 9805 PUSH32(esp, 1); /* 0x36144031: push 1 */ 9806 PUSH32(esp, 1); /* 0x36144033: push 1 */ 9807 ecx = esi; /* 0x36144035: mov ecx, esi */ 9808 RECOMP_ICALL(MEM32(0x36170368)); /* 0x36144037: call dword ptr [0x36170368] */ 9809 RECOMP_FLAGS_IN(); 9810 ecx = eax; /* 0x3614403D: mov ecx, eax */ 9811 RECOMP_ICALL(0x3613A820u); /* 0x3614403F: call 0x3613a820 */ /* not lifted */ 9812 RECOMP_FLAGS_IN(); 9813 MEM32(esi + 0x170) = 1; /* 0x36144044: mov dword ptr [esi + 0x170], 1 */ 9814 goto L_3614408D; /* 0x3614404E: jmp 0x3614408d */ 9815 L_36144050: 9816 /* cmp eax, 1 */ /* 0x36144050: cmp eax, 1 */ 9817 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9819 _flag_k = FK_CMP; 9820 if (CMP_NE(_flag_a, _flag_b)) goto L_3614408D; /* 0x36144053: jne 0x3614408d */ 9821 L_36144055: 9822 RECOMP_ICALL(ebx); /* 0x36144055: call ebx */ 9823 RECOMP_FLAGS_IN(); 9824 MEM32(ebp + 0x8) = eax; /* 0x36144057: mov dword ptr [ebp + 8], eax */ 9825 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x3614405A: fild dword ptr [ebp + 8] */ 9826 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x3614405D: fmul dword ptr [0x36170438] */ 9827 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170E8C)); /* 0x36144063: fcomp dword ptr [0x36170e8c] */ 9828 fp_pop(); 9829 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36144069: fnstsw ax */ 9830 /* test HI8(eax), 1 */ /* 0x3614406B: test ah, 1 */ 9831 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9832 _cf = 0; 9833 _flag_k = FK_NARROW(FK_TEST, 24); 9834 if (TEST_Z(_flag_a, _flag_b)) goto L_3614408D; /* 0x3614406E: je 0x3614408d */ 9835 L_36144070: 9836 PUSH32(esp, 1); /* 0x36144070: push 1 */ 9837 PUSH32(esp, 0); /* 0x36144072: push 0 */ 9838 ecx = esi; /* 0x36144074: mov ecx, esi */ 9839 RECOMP_ICALL(MEM32(0x36170368)); /* 0x36144076: call dword ptr [0x36170368] */ 9840 RECOMP_FLAGS_IN(); 9841 ecx = eax; /* 0x3614407C: mov ecx, eax */ 9842 RECOMP_ICALL(0x3613A820u); /* 0x3614407E: call 0x3613a820 */ /* not lifted */ 9843 RECOMP_FLAGS_IN(); 9844 MEM32(esi + 0x170) = 0; /* 0x36144083: mov dword ptr [esi + 0x170], 0 */ 9845 L_3614408D: 9846 edx = ebp + (-0x14); /* 0x3614408D: lea edx, [ebp - 0x14] */ 9847 PUSH32(esp, edx); /* 0x36144090: push edx */ 9848 MEM32(ebp + (-0x14)) = 0; /* 0x36144091: mov dword ptr [ebp - 0x14], 0 */ 9849 MEM32(ebp + (-0x10)) = 0; /* 0x36144098: mov dword ptr [ebp - 0x10], 0 */ 9850 MEM32(ebp + (-0xC)) = 0; /* 0x3614409F: mov dword ptr [ebp - 0xc], 0 */ 9851 RECOMP_ICALL(0x360D40B0u); /* 0x361440A6: call 0x360d40b0 */ /* not lifted */ 9852 RECOMP_FLAGS_IN(); 9853 ecx = eax; /* 0x361440AB: mov ecx, eax */ 9854 RECOMP_ICALL(0x360DA4C0u); /* 0x361440AD: call 0x360da4c0 */ /* not lifted */ 9855 RECOMP_FLAGS_IN(); 9856 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361440B2: fld dword ptr [ebp - 0x14] */ 9857 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361440B5: fmul dword ptr [0x36170d68] */ 9858 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x361440BB: fstp dword ptr [ebp - 0x14] */ 9859 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361440BE: fld dword ptr [ebp - 0x10] */ 9860 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361440C1: fmul dword ptr [0x36170d68] */ 9861 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361440C7: fstp dword ptr [ebp - 0x10] */ 9862 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361440CA: fld dword ptr [ebp - 0xc] */ 9863 _st[0] *= (double)*(float*)ADDR(0x36170D68); /* 0x361440CD: fmul dword ptr [0x36170d68] */ 9864 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361440D3: fstp dword ptr [ebp - 0xc] */ 9865 RECOMP_ICALL(ebx); /* 0x361440D6: call ebx */ 9866 RECOMP_FLAGS_IN(); 9867 MEM32(ebp + 0x8) = eax; /* 0x361440D8: mov dword ptr [ebp + 8], eax */ 9868 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x361440DB: fild dword ptr [ebp + 8] */ 9869 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x361440DE: fmul dword ptr [0x36170438] */ 9870 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x361440E4: fsub dword ptr [0x36170464] */ 9871 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x361440EA: fstp dword ptr [ebp - 8] */ 9872 RECOMP_ICALL(ebx); /* 0x361440ED: call ebx */ 9873 RECOMP_FLAGS_IN(); 9874 MEM32(ebp + 0x8) = eax; /* 0x361440EF: mov dword ptr [ebp + 8], eax */ 9875 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x361440F2: fild dword ptr [ebp + 8] */ 9876 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x361440F5: fmul dword ptr [0x36170438] */ 9877 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x361440FB: fsub dword ptr [0x36170464] */ 9878 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36144101: fstp dword ptr [ebp - 4] */ 9879 RECOMP_ICALL(ebx); /* 0x36144104: call ebx */ 9880 RECOMP_FLAGS_IN(); 9881 MEM32(ebp + 0x8) = eax; /* 0x36144106: mov dword ptr [ebp + 8], eax */ 9882 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x36144109: fild dword ptr [ebp + 8] */ 9883 _st[0] *= (double)*(float*)ADDR(0x36170438); /* 0x3614410C: fmul dword ptr [0x36170438] */ 9884 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x36144112: fsub dword ptr [0x36170464] */ 9885 _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36144118: fmul dword ptr [0x36170eb8] */ 9886 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3614411E: fld dword ptr [ebp - 4] */ 9887 _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36144121: fmul dword ptr [0x36170eb8] */ 9888 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36144127: fstp dword ptr [ebp - 0x1c] */ 9889 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3614412A: fld dword ptr [ebp - 8] */ 9890 _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x3614412D: fmul dword ptr [0x36170eb8] */ 9891 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36144133: fstp dword ptr [ebp - 0x18] */ 9892 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36144136: fadd dword ptr [ebp - 0x14] */ 9893 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36144139: fstp dword ptr [ebp - 0x14] */ 9894 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3614413C: fld dword ptr [ebp - 0x1c] */ 9895 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3614413F: fadd dword ptr [ebp - 0x10] */ 9896 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36144142: fld dword ptr [ebp - 0x18] */ 9897 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36144145: fadd dword ptr [ebp - 0xc] */ 9898 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36144148: fstp dword ptr [ebp - 0xc] */ 9899 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3614414B: fld dword ptr [ebp - 0x14] */ 9900 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361777CC)); /* 0x3614414E: fcomp dword ptr [0x361777cc] */ 9901 fp_pop(); 9902 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36144154: fnstsw ax */ 9903 /* test HI8(eax), 0x41u */ /* 0x36144156: test ah, 0x41 */ 9904 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 9905 _cf = 0; 9906 _flag_k = FK_NARROW(FK_TEST, 24); 9907 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144164; /* 0x36144159: jne 0x36144164 */ 9908 L_3614415B: 9909 MEM32(ebp + (-0x14)) = 0x3FD9999Au; /* 0x3614415B: mov dword ptr [ebp - 0x14], 0x3fd9999a */ 9910 goto L_3614417B; /* 0x36144162: jmp 0x3614417b */ 9911 L_36144164: 9912 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36144164: fld dword ptr [ebp - 0x14] */ 9913 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36178744)); /* 0x36144167: fcomp dword ptr [0x36178744] */ 9914 fp_pop(); 9915 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614416D: fnstsw ax */ 9916 /* test HI8(eax), 1 */ /* 0x3614416F: test ah, 1 */ 9917 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9918 _cf = 0; 9919 _flag_k = FK_NARROW(FK_TEST, 24); 9920 if (TEST_Z(_flag_a, _flag_b)) goto L_3614417B; /* 0x36144172: je 0x3614417b */ 9921 L_36144174: 9922 MEM32(ebp + (-0x14)) = 0xBFD9999Au; /* 0x36144174: mov dword ptr [ebp - 0x14], 0xbfd9999a */ 9923 L_3614417B: 9924 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3614417B: fld dword ptr [ebp - 0xc] */ 9925 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361777CC)); /* 0x3614417E: fcomp dword ptr [0x361777cc] */ 9926 fp_pop(); 9927 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36144184: fnstsw ax */ 9928 /* test HI8(eax), 0x41u */ /* 0x36144186: test ah, 0x41 */ 9929 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 9930 _cf = 0; 9931 _flag_k = FK_NARROW(FK_TEST, 24); 9932 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144194; /* 0x36144189: jne 0x36144194 */ 9933 L_3614418B: 9934 MEM32(ebp + (-0xC)) = 0x3FD9999Au; /* 0x3614418B: mov dword ptr [ebp - 0xc], 0x3fd9999a */ 9935 goto L_361441AB; /* 0x36144192: jmp 0x361441ab */ 9936 L_36144194: 9937 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36144194: fld dword ptr [ebp - 0xc] */ 9938 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36178744)); /* 0x36144197: fcomp dword ptr [0x36178744] */ 9939 fp_pop(); 9940 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614419D: fnstsw ax */ 9941 /* test HI8(eax), 1 */ /* 0x3614419F: test ah, 1 */ 9942 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9943 _cf = 0; 9944 _flag_k = FK_NARROW(FK_TEST, 24); 9945 if (TEST_Z(_flag_a, _flag_b)) goto L_361441AB; /* 0x361441A2: je 0x361441ab */ 9946 L_361441A4: 9947 MEM32(ebp + (-0xC)) = 0xBFD9999Au; /* 0x361441A4: mov dword ptr [ebp - 0xc], 0xbfd9999a */ 9948 L_361441AB: 9949 _st[0] -= (double)*(float*)ADDR(0x36170464); /* 0x361441AB: fsub dword ptr [0x36170464] */ 9950 eax = ebp + (-0x14); /* 0x361441B1: lea eax, [ebp - 0x14] */ 9951 PUSH32(esp, eax); /* 0x361441B4: push eax */ 9952 PUSH32(esp, edi); /* 0x361441B5: push edi */ 9953 ecx = esi; /* 0x361441B6: mov ecx, esi */ 9954 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361441B8: fstp dword ptr [ebp - 0x10] */ 9955 RECOMP_ICALL(0x36142A60u); /* 0x361441BB: call 0x36142a60 */ /* not lifted */ 9956 RECOMP_FLAGS_IN(); 9957 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361441C0: fstp st(0) */ 9958 fp_push(*(float*)&MEM32(esi + 0x15C)); /* 0x361441C2: fld dword ptr [esi + 0x15c] */ 9959 eax = 2; /* 0x361441C8: mov eax, 2 */ 9960 fp_push(_st[0]); /* 0x361441CD: fld st(0) */ 9961 _st[0] *= (double)*(float*)ADDR(edi); /* 0x361441CF: fmul dword ptr [edi] */ 9962 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x361441D1: fstp dword ptr [edi] */ 9963 fp_push(_st[0]); /* 0x361441D3: fld st(0) */ 9964 _st[0] *= (double)*(float*)ADDR(edi + 0x4); /* 0x361441D5: fmul dword ptr [edi + 4] */ 9965 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x361441D8: fstp dword ptr [edi + 4] */ 9966 _st[0] *= (double)*(float*)ADDR(edi + 0x8); /* 0x361441DB: fmul dword ptr [edi + 8] */ 9967 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x8) = _v; } /* 0x361441DE: fstp dword ptr [edi + 8] */ 9968 edi = POP32_VAL(esp); /* 0x361441E1: pop edi */ 9969 esi = POP32_VAL(esp); /* 0x361441E2: pop esi */ 9970 ebx = POP32_VAL(esp); /* 0x361441E3: pop ebx */ 9971 esp = ebp; /* 0x361441E4: mov esp, ebp */ 9972 ebp = POP32_VAL(esp); /* 0x361441E6: pop ebp */ 9973 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361441E7: ret 4 */ 9974 RECOMP_REGS_OUT(); 9975 } 9976 9977 void sub_361441F0(void) { 9978 int _fpu_cmp = 0; 9979 uint32_t _cf = 0; 9980 int _df = 1; 9981 uint32_t _flag_k = FK_NONE; 9982 uint32_t _flag_a = 0, _flag_b = 0; 9983 uint32_t _itail_tgt = 0; 9984 RECOMP_REGS_LOCALS 9985 RECOMP_ENTER(0x361441F0u); 9986 9987 L_361441F0: 9988 MEM32(0x3630D960) = 0x40400000u; /* 0x361441F0: mov dword ptr [0x3630d960], 0x40400000 */ 9989 MEM32(0x3630D964) = 0x41600000u; /* 0x361441FA: mov dword ptr [0x3630d964], 0x41600000 */ 9990 MEM32(0x3630D968) = 0x3E4CCCCDu; /* 0x36144204: mov dword ptr [0x3630d968], 0x3e4ccccd */ 9991 MEM32(0x3630D96C) = 0x3DCCCCCDu; /* 0x3614420E: mov dword ptr [0x3630d96c], 0x3dcccccd */ 9992 MEM8(0x3630D970) = (uint8_t)(1); /* 0x36144218: mov byte ptr [0x3630d970], 1 */ 9993 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614421F: ret */ 9994 RECOMP_REGS_OUT(); 9995 } 9996 9997 void sub_36144220(void) { 9998 int _fpu_cmp = 0; 9999 uint32_t _cf = 0; 10000 int _df = 1; 10001 uint32_t _flag_k = FK_NONE; 10002 uint32_t _flag_a = 0, _flag_b = 0; 10003 uint32_t _itail_tgt = 0; 10004 RECOMP_REGS_LOCALS 10005 RECOMP_ENTER(0x36144220u); 10006 10007 L_36144220: 10008 PUSH32(esp, ebp); /* 0x36144220: push ebp */ 10009 ebp = esp; /* 0x36144221: mov ebp, esp */ 10010 PUSH32(esp, 0xFFFFFFFFu); /* 0x36144223: push -1 */ 10011 PUSH32(esp, 0x3616CEBFu); /* 0x36144225: push 0x3616cebf */ 10012 eax = MEM32(FS_BASE + (0)); /* 0x3614422A: mov eax, dword ptr fs:[0] */ 10013 PUSH32(esp, eax); /* 0x36144230: push eax */ 10014 MEM32(FS_BASE + (0)) = esp; /* 0x36144231: mov dword ptr fs:[0], esp */ 10015 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 10016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10017 esp = esp - 0x30u; /* 0x36144238: sub esp, 0x30 */ 10018 _flag_k = FK_CMP; 10019 PUSH32(esp, ebx); /* 0x3614423B: push ebx */ 10020 PUSH32(esp, esi); /* 0x3614423C: push esi */ 10021 esi = ecx; /* 0x3614423D: mov esi, ecx */ 10022 PUSH32(esp, edi); /* 0x3614423F: push edi */ 10023 MEM32(ebp + (-0x18)) = esi; /* 0x36144240: mov dword ptr [ebp - 0x18], esi */ 10024 RECOMP_ICALL(MEM32(0x36170320)); /* 0x36144243: call dword ptr [0x36170320] */ 10025 RECOMP_FLAGS_IN(); 10026 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10027 ebx = 0; /* 0x36144249: xor ebx, ebx */ 10028 _cf = 0; 10029 _flag_k = FK_TEST; 10030 MEM32(ebp + (-0x4)) = ebx; /* 0x3614424B: mov dword ptr [ebp - 4], ebx */ 10031 MEM32(esi) = 0x36178084u; /* 0x3614424E: mov dword ptr [esi], 0x36178084 */ 10032 MEM32(esi + 0x20) = 0x3617807Cu; /* 0x36144254: mov dword ptr [esi + 0x20], 0x3617807c */ 10033 MEM32(esi + 0x130) = 0xBF800000u; /* 0x3614425B: mov dword ptr [esi + 0x130], 0xbf800000 */ 10034 MEM32(esi + 0x134) = ebx; /* 0x36144265: mov dword ptr [esi + 0x134], ebx */ 10035 RECOMP_ICALL(MEM32(0x361700DC)); /* 0x3614426B: call dword ptr [0x361700dc] */ 10036 RECOMP_FLAGS_IN(); 10037 ecx = eax; /* 0x36144271: mov ecx, eax */ 10038 MEM32(esi + 0x13C) = eax; /* 0x36144273: mov dword ptr [esi + 0x13c], eax */ 10039 RECOMP_ICALL(MEM32(0x361700C0)); /* 0x36144279: call dword ptr [0x361700c0] */ 10040 RECOMP_FLAGS_IN(); 10041 MEM32(esi + 0x138) = eax; /* 0x3614427F: mov dword ptr [esi + 0x138], eax */ 10042 edi = esi + 0x14C; /* 0x36144285: lea edi, [esi + 0x14c] */ 10043 ecx = edi; /* 0x3614428B: mov ecx, edi */ 10044 MEM32(ebp + (-0x4)) = 1; /* 0x3614428D: mov dword ptr [ebp - 4], 1 */ 10045 MEM32(esi + 0x140) = ebx; /* 0x36144294: mov dword ptr [esi + 0x140], ebx */ 10046 MEM32(esi + 0x144) = ebx; /* 0x3614429A: mov dword ptr [esi + 0x144], ebx */ 10047 MEM32(esi + 0x148) = ebx; /* 0x361442A0: mov dword ptr [esi + 0x148], ebx */ 10048 RECOMP_ICALL(MEM32(0x36170174)); /* 0x361442A6: call dword ptr [0x36170174] */ 10049 RECOMP_FLAGS_IN(); 10050 PUSH32(esp, ebx); /* 0x361442AC: push ebx */ 10051 PUSH32(esp, ebx); /* 0x361442AD: push ebx */ 10052 PUSH32(esp, ebx); /* 0x361442AE: push ebx */ 10053 ecx = ebp + (-0x30); /* 0x361442AF: lea ecx, [ebp - 0x30] */ 10054 MEM32(esi) = 0x36177FDCu; /* 0x361442B2: mov dword ptr [esi], 0x36177fdc */ 10055 MEM32(esi + 0x20) = 0x36177FD4u; /* 0x361442B8: mov dword ptr [esi + 0x20], 0x36177fd4 */ 10056 MEM32(esi + 0x15C) = ebx; /* 0x361442BF: mov dword ptr [esi + 0x15c], ebx */ 10057 RECOMP_ICALL(MEM32(0x36170170)); /* 0x361442C5: call dword ptr [0x36170170] */ 10058 RECOMP_FLAGS_IN(); 10059 ecx = MEM32(eax); /* 0x361442CB: mov ecx, dword ptr [eax] */ 10060 MEM32(esi + 0x140) = ecx; /* 0x361442CD: mov dword ptr [esi + 0x140], ecx */ 10061 edx = MEM32(eax + 0x4); /* 0x361442D3: mov edx, dword ptr [eax + 4] */ 10062 PUSH32(esp, ebx); /* 0x361442D6: push ebx */ 10063 MEM32(esi + 0x144) = edx; /* 0x361442D7: mov dword ptr [esi + 0x144], edx */ 10064 eax = MEM32(eax + 0x8); /* 0x361442DD: mov eax, dword ptr [eax + 8] */ 10065 PUSH32(esp, ebx); /* 0x361442E0: push ebx */ 10066 PUSH32(esp, ebx); /* 0x361442E1: push ebx */ 10067 ecx = ebp + (-0x3C); /* 0x361442E2: lea ecx, [ebp - 0x3c] */ 10068 MEM32(esi + 0x148) = eax; /* 0x361442E5: mov dword ptr [esi + 0x148], eax */ 10069 MEM32(esi + 0x160) = ebx; /* 0x361442EB: mov dword ptr [esi + 0x160], ebx */ 10070 MEM32(esi + 0x158) = ebx; /* 0x361442F1: mov dword ptr [esi + 0x158], ebx */ 10071 MEM8(esi + 0x164) = (uint8_t)(LO8(ebx)); /* 0x361442F7: mov byte ptr [esi + 0x164], bl */ 10072 MEM8(esi + 0x165) = (uint8_t)(LO8(ebx)); /* 0x361442FD: mov byte ptr [esi + 0x165], bl */ 10073 MEM8(esi + 0x166) = (uint8_t)(LO8(ebx)); /* 0x36144303: mov byte ptr [esi + 0x166], bl */ 10074 RECOMP_ICALL(MEM32(0x36170170)); /* 0x36144309: call dword ptr [0x36170170] */ 10075 RECOMP_FLAGS_IN(); 10076 ecx = MEM32(eax); /* 0x3614430F: mov ecx, dword ptr [eax] */ 10077 MEM32(edi) = ecx; /* 0x36144311: mov dword ptr [edi], ecx */ 10078 edx = MEM32(eax + 0x4); /* 0x36144313: mov edx, dword ptr [eax + 4] */ 10079 ecx = MEM32(ebp + 0x8); /* 0x36144316: mov ecx, dword ptr [ebp + 8] */ 10080 MEM32(edi + 0x4) = edx; /* 0x36144319: mov dword ptr [edi + 4], edx */ 10081 eax = MEM32(eax + 0x8); /* 0x3614431C: mov eax, dword ptr [eax + 8] */ 10082 PUSH32(esp, 0x30u); /* 0x3614431F: push 0x30 */ 10083 MEM32(edi + 0x8) = eax; /* 0x36144321: mov dword ptr [edi + 8], eax */ 10084 MEM32(esi + 0x16C) = ecx; /* 0x36144324: mov dword ptr [esi + 0x16c], ecx */ 10085 MEM32(esi + 0x168) = ebx; /* 0x3614432A: mov dword ptr [esi + 0x168], ebx */ 10086 RECOMP_ICALL(0x3615FD6Au); /* 0x36144330: call 0x3615fd6a */ /* not lifted */ 10087 RECOMP_FLAGS_IN(); 10088 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10089 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10090 esp = esp + 4; /* 0x36144335: add esp, 4 */ 10091 _flag_k = FK_ADD; 10092 MEM32(ebp + (-0x14)) = eax; /* 0x36144338: mov dword ptr [ebp - 0x14], eax */ 10093 /* cmp eax, ebx */ /* 0x3614433B: cmp eax, ebx */ 10094 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10096 _flag_k = FK_CMP; 10097 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3614433D: mov byte ptr [ebp - 4], 2 */ 10098 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614434C; /* 0x36144341: je 0x3614434c */ 10099 L_36144343: 10100 ecx = eax; /* 0x36144343: mov ecx, eax */ 10101 RECOMP_ICALL(0x36139070u); /* 0x36144345: call 0x36139070 */ /* not lifted */ 10102 RECOMP_FLAGS_IN(); 10103 goto L_3614434E; /* 0x3614434A: jmp 0x3614434e */ 10104 L_3614434C: 10105 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10106 eax = 0; /* 0x3614434C: xor eax, eax */ 10107 _cf = 0; 10108 _flag_k = FK_TEST; 10109 L_3614434E: 10110 PUSH32(esp, eax); /* 0x3614434E: push eax */ 10111 ecx = esi; /* 0x3614434F: mov ecx, esi */ 10112 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36144351: mov byte ptr [ebp - 4], 1 */ 10113 RECOMP_ICALL(0x36139240u); /* 0x36144355: call 0x36139240 */ /* not lifted */ 10114 RECOMP_FLAGS_IN(); 10115 ecx = esi; /* 0x3614435A: mov ecx, esi */ 10116 MEM32(ebp + (-0x4)) = 3; /* 0x3614435C: mov dword ptr [ebp - 4], 3 */ 10117 MEM32(esi) = 0x36178754u; /* 0x36144363: mov dword ptr [esi], 0x36178754 */ 10118 MEM32(esi + 0x20) = 0x3617874Cu; /* 0x36144369: mov dword ptr [esi + 0x20], 0x3617874c */ 10119 RECOMP_ICALL(MEM32(0x361702DC)); /* 0x36144370: call dword ptr [0x361702dc] */ 10120 RECOMP_FLAGS_IN(); 10121 ecx = esi; /* 0x36144376: mov ecx, esi */ 10122 RECOMP_ICALL(MEM32(0x36170364)); /* 0x36144378: call dword ptr [0x36170364] */ 10123 RECOMP_FLAGS_IN(); 10124 PUSH32(esp, 1); /* 0x3614437E: push 1 */ 10125 ecx = esi; /* 0x36144380: mov ecx, esi */ 10126 RECOMP_ICALL(MEM32(0x36170238)); /* 0x36144382: call dword ptr [0x36170238] */ 10127 RECOMP_FLAGS_IN(); 10128 /* cmp MEM8(0x3630D984), LO8(ebx) */ /* 0x36144388: cmp byte ptr [0x3630d984], bl */ 10129 _flag_a = (uint32_t)(MEM8(0x3630D984)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10131 _flag_k = FK_NARROW(FK_CMP, 24); 10132 if (CMP_NE(_flag_a, _flag_b)) goto L_36144397; /* 0x3614438E: jne 0x36144397 */ 10133 L_36144390: 10134 ecx = esi; /* 0x36144390: mov ecx, esi */ 10135 RECOMP_ICALL(0x361446E0u); /* 0x36144392: call 0x361446e0 */ /* not lifted */ 10136 RECOMP_FLAGS_IN(); 10137 L_36144397: 10138 edx = MEM32(0x3630D974); /* 0x36144397: mov edx, dword ptr [0x3630d974] */ 10139 PUSH32(esp, edx); /* 0x3614439D: push edx */ 10140 ecx = esi; /* 0x3614439E: mov ecx, esi */ 10141 RECOMP_ICALL(MEM32(0x36170244)); /* 0x361443A0: call dword ptr [0x36170244] */ 10142 RECOMP_FLAGS_IN(); 10143 fp_push(*(float*)&MEM32(0x3630D978)); /* 0x361443A6: fld dword ptr [0x3630d978] */ 10144 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361443AC: fst dword ptr [ebp - 0x10] */ 10145 ecx = esi; /* 0x361443AF: mov ecx, esi */ 10146 eax = MEM32(ebp + (-0x10)); /* 0x361443B1: mov eax, dword ptr [ebp - 0x10] */ 10147 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x15C) = _v; } /* 0x361443B4: fstp dword ptr [esi + 0x15c] */ 10148 PUSH32(esp, eax); /* 0x361443BA: push eax */ 10149 RECOMP_ICALL(MEM32(0x3617025C)); /* 0x361443BB: call dword ptr [0x3617025c] */ 10150 RECOMP_FLAGS_IN(); 10151 ecx = MEM32(0x3630D97C); /* 0x361443C1: mov ecx, dword ptr [0x3630d97c] */ 10152 PUSH32(esp, ecx); /* 0x361443C7: push ecx */ 10153 ecx = esi; /* 0x361443C8: mov ecx, esi */ 10154 RECOMP_ICALL(MEM32(0x36170234)); /* 0x361443CA: call dword ptr [0x36170234] */ 10155 RECOMP_FLAGS_IN(); 10156 edx = MEM32(0x3630D980); /* 0x361443D0: mov edx, dword ptr [0x3630d980] */ 10157 PUSH32(esp, edx); /* 0x361443D6: push edx */ 10158 ecx = esi; /* 0x361443D7: mov ecx, esi */ 10159 RECOMP_ICALL(MEM32(0x36170260)); /* 0x361443D9: call dword ptr [0x36170260] */ 10160 RECOMP_FLAGS_IN(); 10161 PUSH32(esp, 0x5Cu); /* 0x361443DF: push 0x5c */ 10162 RECOMP_ICALL(0x3615FD6Au); /* 0x361443E1: call 0x3615fd6a */ /* not lifted */ 10163 RECOMP_FLAGS_IN(); 10164 edi = eax; /* 0x361443E6: mov edi, eax */ 10165 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10166 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10167 esp = esp + 4; /* 0x361443E8: add esp, 4 */ 10168 _flag_k = FK_ADD; 10169 MEM32(ebp + (-0x14)) = edi; /* 0x361443EB: mov dword ptr [ebp - 0x14], edi */ 10170 /* cmp edi, ebx */ /* 0x361443EE: cmp edi, ebx */ 10171 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10173 _flag_k = FK_CMP; 10174 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x361443F0: mov byte ptr [ebp - 4], 4 */ 10175 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144410; /* 0x361443F4: je 0x36144410 */ 10176 L_361443F6: 10177 eax = MEM32(ebp + 0x8); /* 0x361443F6: mov eax, dword ptr [ebp + 8] */ 10178 PUSH32(esp, 3); /* 0x361443F9: push 3 */ 10179 PUSH32(esp, ebx); /* 0x361443FB: push ebx */ 10180 PUSH32(esp, ebx); /* 0x361443FC: push ebx */ 10181 PUSH32(esp, ebx); /* 0x361443FD: push ebx */ 10182 PUSH32(esp, ebx); /* 0x361443FE: push ebx */ 10183 PUSH32(esp, eax); /* 0x361443FF: push eax */ 10184 ecx = edi; /* 0x36144400: mov ecx, edi */ 10185 RECOMP_ICALL(MEM32(0x3616F998)); /* 0x36144402: call dword ptr [0x3616f998] */ 10186 RECOMP_FLAGS_IN(); 10187 MEM32(edi) = 0x361709C8u; /* 0x36144408: mov dword ptr [edi], 0x361709c8 */ 10188 goto L_36144412; /* 0x3614440E: jmp 0x36144412 */ 10189 L_36144410: 10190 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10191 edi = 0; /* 0x36144410: xor edi, edi */ 10192 _cf = 0; 10193 _flag_k = FK_TEST; 10194 L_36144412: 10195 /* cmp edi, ebx */ /* 0x36144412: cmp edi, ebx */ 10196 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10198 _flag_k = FK_CMP; 10199 MEM32(ebp + 0x8) = edi; /* 0x36144414: mov dword ptr [ebp + 8], edi */ 10200 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36144417: mov byte ptr [ebp - 4], 3 */ 10201 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144497; /* 0x3614441B: je 0x36144497 */ 10202 L_3614441D: 10203 PUSH32(esp, edi); /* 0x3614441D: push edi */ 10204 ecx = esi; /* 0x3614441E: mov ecx, esi */ 10205 RECOMP_ICALL(0x361427C0u); /* 0x36144420: call 0x361427c0 */ /* not lifted */ 10206 RECOMP_FLAGS_IN(); 10207 /* test LO8(eax), LO8(eax) */ /* 0x36144425: test al, al */ 10208 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10209 _cf = 0; 10210 _flag_k = FK_NARROW(FK_TEST, 24); 10211 if (TEST_Z(_flag_a, _flag_b)) goto L_361444A3; /* 0x36144427: je 0x361444a3 */ 10212 L_36144429: 10213 ecx = esi; /* 0x36144429: mov ecx, esi */ 10214 RECOMP_ICALL(MEM32(0x36170368)); /* 0x3614442B: call dword ptr [0x36170368] */ 10215 RECOMP_FLAGS_IN(); 10216 edx = MEM32(eax); /* 0x36144431: mov edx, dword ptr [eax] */ 10217 ecx = edi; /* 0x36144433: mov ecx, edi */ 10218 MEM32(ebp + (-0x10)) = eax; /* 0x36144435: mov dword ptr [ebp - 0x10], eax */ 10219 MEM32(ebp + (-0x14)) = edx; /* 0x36144438: mov dword ptr [ebp - 0x14], edx */ 10220 RECOMP_ICALL(MEM32(0x3616F970)); /* 0x3614443B: call dword ptr [0x3616f970] */ 10221 RECOMP_FLAGS_IN(); 10222 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36144441: fmul dword ptr [0x36170464] */ 10223 edx = MEM32(ebp + (-0x14)); /* 0x36144447: mov edx, dword ptr [ebp - 0x14] */ 10224 PUSH32(esp, ecx); /* 0x3614444A: push ecx */ 10225 ecx = MEM32(ebp + (-0x10)); /* 0x3614444B: mov ecx, dword ptr [ebp - 0x10] */ 10226 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3614444E: fstp dword ptr [esp] */ 10227 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x36144451: call dword ptr [edx + 0x18] */ 10228 RECOMP_FLAGS_IN(); 10229 ecx = edi; /* 0x36144454: mov ecx, edi */ 10230 RECOMP_ICALL(MEM32(0x3616F970)); /* 0x36144456: call dword ptr [0x3616f970] */ 10231 RECOMP_FLAGS_IN(); 10232 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3614445C: fmul dword ptr [0x36170464] */ 10233 edi = MEM32(0x36170368); /* 0x36144462: mov edi, dword ptr [0x36170368] */ 10234 ecx = esi; /* 0x36144468: mov ecx, esi */ 10235 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3614446A: fstp dword ptr [ebp - 0x20] */ 10236 MEM32(ebp + (-0x24)) = 0; /* 0x3614446D: mov dword ptr [ebp - 0x24], 0 */ 10237 MEM32(ebp + (-0x1C)) = 0; /* 0x36144474: mov dword ptr [ebp - 0x1c], 0 */ 10238 RECOMP_ICALL(edi); /* 0x3614447B: call edi */ 10239 RECOMP_FLAGS_IN(); 10240 edx = MEM32(eax); /* 0x3614447D: mov edx, dword ptr [eax] */ 10241 ecx = ebp + (-0x24); /* 0x3614447F: lea ecx, [ebp - 0x24] */ 10242 PUSH32(esp, ecx); /* 0x36144482: push ecx */ 10243 ecx = eax; /* 0x36144483: mov ecx, eax */ 10244 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36144485: call dword ptr [edx + 0x14] */ 10245 RECOMP_FLAGS_IN(); 10246 PUSH32(esp, ebx); /* 0x36144488: push ebx */ 10247 PUSH32(esp, ebx); /* 0x36144489: push ebx */ 10248 ecx = esi; /* 0x3614448A: mov ecx, esi */ 10249 RECOMP_ICALL(edi); /* 0x3614448C: call edi */ 10250 RECOMP_FLAGS_IN(); 10251 ecx = eax; /* 0x3614448E: mov ecx, eax */ 10252 RECOMP_ICALL(0x3613A820u); /* 0x36144490: call 0x3613a820 */ /* not lifted */ 10253 RECOMP_FLAGS_IN(); 10254 goto L_361444A3; /* 0x36144495: jmp 0x361444a3 */ 10255 L_36144497: 10256 MEM32(esi + 0x130) = ebx; /* 0x36144497: mov dword ptr [esi + 0x130], ebx */ 10257 MEM32(esi + 0x134) = ebx; /* 0x3614449D: mov dword ptr [esi + 0x134], ebx */ 10258 L_361444A3: 10259 ecx = MEM32(ebp + (-0xC)); /* 0x361444A3: mov ecx, dword ptr [ebp - 0xc] */ 10260 edi = POP32_VAL(esp); /* 0x361444A6: pop edi */ 10261 eax = esi; /* 0x361444A7: mov eax, esi */ 10262 esi = POP32_VAL(esp); /* 0x361444A9: pop esi */ 10263 ebx = POP32_VAL(esp); /* 0x361444AA: pop ebx */ 10264 MEM32(FS_BASE + (0)) = ecx; /* 0x361444AB: mov dword ptr fs:[0], ecx */ 10265 esp = ebp; /* 0x361444B2: mov esp, ebp */ 10266 ebp = POP32_VAL(esp); /* 0x361444B4: pop ebp */ 10267 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361444B5: ret 4 */ 10268 RECOMP_REGS_OUT(); 10269 } 10270 10271 void sub_361444C0(void) { 10272 int _fpu_cmp = 0; 10273 uint32_t _cf = 0; 10274 int _df = 1; 10275 uint32_t _flag_k = FK_NONE; 10276 uint32_t _flag_a = 0, _flag_b = 0; 10277 uint32_t _itail_tgt = 0; 10278 RECOMP_REGS_LOCALS 10279 RECOMP_ENTER(0x361444C0u); 10280 10281 L_361444C0: 10282 PUSH32(esp, ebp); /* 0x361444C0: push ebp */ 10283 ebp = esp; /* 0x361444C1: mov ebp, esp */ 10284 PUSH32(esp, esi); /* 0x361444C3: push esi */ 10285 esi = ecx; /* 0x361444C4: mov esi, ecx */ 10286 RECOMP_ICALL(0x361444F0u); /* 0x361444C6: call 0x361444f0 */ /* not lifted */ 10287 RECOMP_FLAGS_IN(); 10288 /* test MEM8(ebp + 0x8), 1 */ /* 0x361444CB: test byte ptr [ebp + 8], 1 */ 10289 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10290 _cf = 0; 10291 _flag_k = FK_NARROW(FK_TEST, 24); 10292 if (TEST_Z(_flag_a, _flag_b)) goto L_361444DA; /* 0x361444CF: je 0x361444da */ 10293 L_361444D1: 10294 PUSH32(esp, esi); /* 0x361444D1: push esi */ 10295 RECOMP_ICALL(0x3615FCC4u); /* 0x361444D2: call 0x3615fcc4 */ /* not lifted */ 10296 RECOMP_FLAGS_IN(); 10297 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10298 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10299 esp = esp + 4; /* 0x361444D7: add esp, 4 */ 10300 _flag_k = FK_ADD; 10301 L_361444DA: 10302 eax = esi; /* 0x361444DA: mov eax, esi */ 10303 esi = POP32_VAL(esp); /* 0x361444DC: pop esi */ 10304 ebp = POP32_VAL(esp); /* 0x361444DD: pop ebp */ 10305 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361444DE: ret 4 */ 10306 RECOMP_REGS_OUT(); 10307 } 10308 10309 void sub_361444F0(void) { 10310 int _fpu_cmp = 0; 10311 uint32_t _cf = 0; 10312 int _df = 1; 10313 uint32_t _flag_k = FK_NONE; 10314 uint32_t _flag_a = 0, _flag_b = 0; 10315 uint32_t _itail_tgt = 0; 10316 RECOMP_REGS_LOCALS 10317 RECOMP_ENTER(0x361444F0u); 10318 10319 L_361444F0: 10320 PUSH32(esp, ebp); /* 0x361444F0: push ebp */ 10321 ebp = esp; /* 0x361444F1: mov ebp, esp */ 10322 PUSH32(esp, 0xFFFFFFFFu); /* 0x361444F3: push -1 */ 10323 PUSH32(esp, 0x3616CED8u); /* 0x361444F5: push 0x3616ced8 */ 10324 eax = MEM32(FS_BASE + (0)); /* 0x361444FA: mov eax, dword ptr fs:[0] */ 10325 PUSH32(esp, eax); /* 0x36144500: push eax */ 10326 MEM32(FS_BASE + (0)) = esp; /* 0x36144501: mov dword ptr fs:[0], esp */ 10327 PUSH32(esp, ecx); /* 0x36144508: push ecx */ 10328 PUSH32(esp, esi); /* 0x36144509: push esi */ 10329 esi = ecx; /* 0x3614450A: mov esi, ecx */ 10330 PUSH32(esp, edi); /* 0x3614450C: push edi */ 10331 MEM32(ebp + (-0x10)) = esi; /* 0x3614450D: mov dword ptr [ebp - 0x10], esi */ 10332 MEM32(esi) = 0x36177FDCu; /* 0x36144510: mov dword ptr [esi], 0x36177fdc */ 10333 MEM32(esi + 0x20) = 0x36177FD4u; /* 0x36144516: mov dword ptr [esi + 0x20], 0x36177fd4 */ 10334 MEM32(ebp + (-0x4)) = 0; /* 0x3614451D: mov dword ptr [ebp - 4], 0 */ 10335 RECOMP_ICALL(MEM32(0x36170368)); /* 0x36144524: call dword ptr [0x36170368] */ 10336 RECOMP_FLAGS_IN(); 10337 edi = eax; /* 0x3614452A: mov edi, eax */ 10338 /* test edi, edi */ /* 0x3614452C: test edi, edi */ 10339 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 10340 _cf = 0; 10341 _flag_k = FK_TEST; 10342 if (TEST_Z(_flag_a, _flag_b)) goto L_3614455A; /* 0x3614452E: je 0x3614455a */ 10343 L_36144530: 10344 ecx = MEM32(edi + 0x18); /* 0x36144530: mov ecx, dword ptr [edi + 0x18] */ 10345 /* test ecx, ecx */ /* 0x36144533: test ecx, ecx */ 10346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10347 _cf = 0; 10348 _flag_k = FK_TEST; 10349 MEM32(edi) = 0x36178118u; /* 0x36144535: mov dword ptr [edi], 0x36178118 */ 10350 MEM32(edi + 0x4) = 0x36178110u; /* 0x3614453B: mov dword ptr [edi + 4], 0x36178110 */ 10351 if (TEST_Z(_flag_a, _flag_b)) goto L_3614454A; /* 0x36144542: je 0x3614454a */ 10352 L_36144544: 10353 eax = MEM32(ecx); /* 0x36144544: mov eax, dword ptr [ecx] */ 10354 PUSH32(esp, 1); /* 0x36144546: push 1 */ 10355 RECOMP_ICALL(MEM32(eax)); /* 0x36144548: call dword ptr [eax] */ 10356 RECOMP_FLAGS_IN(); 10357 L_3614454A: 10358 PUSH32(esp, edi); /* 0x3614454A: push edi */ 10359 MEM32(edi + 0x18) = 0; /* 0x3614454B: mov dword ptr [edi + 0x18], 0 */ 10360 RECOMP_ICALL(0x3615FCC4u); /* 0x36144552: call 0x3615fcc4 */ /* not lifted */ 10361 RECOMP_FLAGS_IN(); 10362 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10363 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10364 esp = esp + 4; /* 0x36144557: add esp, 4 */ 10365 _flag_k = FK_ADD; 10366 L_3614455A: 10367 PUSH32(esp, 0); /* 0x3614455A: push 0 */ 10368 ecx = esi; /* 0x3614455C: mov ecx, esi */ 10369 RECOMP_ICALL(MEM32(0x36170328)); /* 0x3614455E: call dword ptr [0x36170328] */ 10370 RECOMP_FLAGS_IN(); 10371 ecx = MEM32(esi + 0x168); /* 0x36144564: mov ecx, dword ptr [esi + 0x168] */ 10372 /* test ecx, ecx */ /* 0x3614456A: test ecx, ecx */ 10373 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10374 _cf = 0; 10375 _flag_k = FK_TEST; 10376 if (TEST_Z(_flag_a, _flag_b)) goto L_36144574; /* 0x3614456C: je 0x36144574 */ 10377 L_3614456E: 10378 edx = MEM32(ecx); /* 0x3614456E: mov edx, dword ptr [ecx] */ 10379 PUSH32(esp, 1); /* 0x36144570: push 1 */ 10380 RECOMP_ICALL(MEM32(edx)); /* 0x36144572: call dword ptr [edx] */ 10381 RECOMP_FLAGS_IN(); 10382 L_36144574: 10383 ecx = esi; /* 0x36144574: mov ecx, esi */ 10384 MEM32(esi + 0x168) = 0; /* 0x36144576: mov dword ptr [esi + 0x168], 0 */ 10385 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36144580: mov dword ptr [ebp - 4], 0xffffffff */ 10386 MEM32(esi) = 0x36178084u; /* 0x36144587: mov dword ptr [esi], 0x36178084 */ 10387 MEM32(esi + 0x20) = 0x3617807Cu; /* 0x3614458D: mov dword ptr [esi + 0x20], 0x3617807c */ 10388 RECOMP_ICALL(MEM32(0x36170318)); /* 0x36144594: call dword ptr [0x36170318] */ 10389 RECOMP_FLAGS_IN(); 10390 ecx = MEM32(ebp + (-0xC)); /* 0x3614459A: mov ecx, dword ptr [ebp - 0xc] */ 10391 edi = POP32_VAL(esp); /* 0x3614459D: pop edi */ 10392 esi = POP32_VAL(esp); /* 0x3614459E: pop esi */ 10393 MEM32(FS_BASE + (0)) = ecx; /* 0x3614459F: mov dword ptr fs:[0], ecx */ 10394 esp = ebp; /* 0x361445A6: mov esp, ebp */ 10395 ebp = POP32_VAL(esp); /* 0x361445A8: pop ebp */ 10396 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361445A9: ret */ 10397 RECOMP_REGS_OUT(); 10398 } 10399 10400 void sub_361445B0(void) { 10401 int _fpu_cmp = 0; 10402 uint32_t _cf = 0; 10403 int _df = 1; 10404 uint32_t _flag_k = FK_NONE; 10405 uint32_t _flag_a = 0, _flag_b = 0; 10406 uint32_t _itail_tgt = 0; 10407 RECOMP_REGS_LOCALS 10408 RECOMP_ENTER(0x361445B0u); 10409 10410 L_361445B0: 10411 PUSH32(esp, ebp); /* 0x361445B0: push ebp */ 10412 ebp = esp; /* 0x361445B1: mov ebp, esp */ 10413 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10415 esp = esp - 0x14u; /* 0x361445B3: sub esp, 0x14 */ 10416 _flag_k = FK_CMP; 10417 PUSH32(esp, ebx); /* 0x361445B6: push ebx */ 10418 ebx = MEM32(ebp + 0x8); /* 0x361445B7: mov ebx, dword ptr [ebp + 8] */ 10419 PUSH32(esp, esi); /* 0x361445BA: push esi */ 10420 esi = ecx; /* 0x361445BB: mov esi, ecx */ 10421 PUSH32(esp, ebx); /* 0x361445BD: push ebx */ 10422 RECOMP_ICALL(0x361427C0u); /* 0x361445BE: call 0x361427c0 */ /* not lifted */ 10423 RECOMP_FLAGS_IN(); 10424 /* test LO8(eax), LO8(eax) */ /* 0x361445C3: test al, al */ 10425 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10426 _cf = 0; 10427 _flag_k = FK_NARROW(FK_TEST, 24); 10428 if (TEST_Z(_flag_a, _flag_b)) goto L_3614463D; /* 0x361445C5: je 0x3614463d */ 10429 L_361445C7: 10430 PUSH32(esp, edi); /* 0x361445C7: push edi */ 10431 edi = MEM32(0x36170368); /* 0x361445C8: mov edi, dword ptr [0x36170368] */ 10432 ecx = esi; /* 0x361445CE: mov ecx, esi */ 10433 RECOMP_ICALL(edi); /* 0x361445D0: call edi */ 10434 RECOMP_FLAGS_IN(); 10435 edx = MEM32(eax); /* 0x361445D2: mov edx, dword ptr [eax] */ 10436 ecx = ebx; /* 0x361445D4: mov ecx, ebx */ 10437 MEM32(ebp + (-0x4)) = eax; /* 0x361445D6: mov dword ptr [ebp - 4], eax */ 10438 MEM32(ebp + (-0x8)) = edx; /* 0x361445D9: mov dword ptr [ebp - 8], edx */ 10439 RECOMP_ICALL(MEM32(0x3616F970)); /* 0x361445DC: call dword ptr [0x3616f970] */ 10440 RECOMP_FLAGS_IN(); 10441 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x361445E2: fmul dword ptr [0x36170464] */ 10442 eax = MEM32(ebp + (-0x8)); /* 0x361445E8: mov eax, dword ptr [ebp - 8] */ 10443 PUSH32(esp, ecx); /* 0x361445EB: push ecx */ 10444 ecx = MEM32(ebp + (-0x4)); /* 0x361445EC: mov ecx, dword ptr [ebp - 4] */ 10445 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361445EF: fstp dword ptr [esp] */ 10446 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x361445F2: call dword ptr [eax + 0x18] */ 10447 RECOMP_FLAGS_IN(); 10448 ecx = ebx; /* 0x361445F5: mov ecx, ebx */ 10449 RECOMP_ICALL(MEM32(0x3616F970)); /* 0x361445F7: call dword ptr [0x3616f970] */ 10450 RECOMP_FLAGS_IN(); 10451 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x361445FD: fmul dword ptr [0x36170464] */ 10452 ecx = esi; /* 0x36144603: mov ecx, esi */ 10453 MEM32(ebp + (-0x14)) = 0; /* 0x36144605: mov dword ptr [ebp - 0x14], 0 */ 10454 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3614460C: fstp dword ptr [ebp - 0x10] */ 10455 MEM32(ebp + (-0xC)) = 0; /* 0x3614460F: mov dword ptr [ebp - 0xc], 0 */ 10456 RECOMP_ICALL(edi); /* 0x36144616: call edi */ 10457 RECOMP_FLAGS_IN(); 10458 edx = MEM32(eax); /* 0x36144618: mov edx, dword ptr [eax] */ 10459 ecx = ebp + (-0x14); /* 0x3614461A: lea ecx, [ebp - 0x14] */ 10460 PUSH32(esp, ecx); /* 0x3614461D: push ecx */ 10461 ecx = eax; /* 0x3614461E: mov ecx, eax */ 10462 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36144620: call dword ptr [edx + 0x14] */ 10463 RECOMP_FLAGS_IN(); 10464 PUSH32(esp, 0); /* 0x36144623: push 0 */ 10465 PUSH32(esp, 0); /* 0x36144625: push 0 */ 10466 ecx = esi; /* 0x36144627: mov ecx, esi */ 10467 RECOMP_ICALL(edi); /* 0x36144629: call edi */ 10468 RECOMP_FLAGS_IN(); 10469 ecx = eax; /* 0x3614462B: mov ecx, eax */ 10470 RECOMP_ICALL(0x3613A820u); /* 0x3614462D: call 0x3613a820 */ /* not lifted */ 10471 RECOMP_FLAGS_IN(); 10472 edi = POP32_VAL(esp); /* 0x36144632: pop edi */ 10473 esi = POP32_VAL(esp); /* 0x36144633: pop esi */ 10474 SET_LO8(eax, 1); /* 0x36144634: mov al, 1 */ 10475 ebx = POP32_VAL(esp); /* 0x36144636: pop ebx */ 10476 esp = ebp; /* 0x36144637: mov esp, ebp */ 10477 ebp = POP32_VAL(esp); /* 0x36144639: pop ebp */ 10478 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614463A: ret 4 */ 10479 L_3614463D: 10480 esi = POP32_VAL(esp); /* 0x3614463D: pop esi */ 10481 SET_LO8(eax, 1); /* 0x3614463E: mov al, 1 */ 10482 ebx = POP32_VAL(esp); /* 0x36144640: pop ebx */ 10483 esp = ebp; /* 0x36144641: mov esp, ebp */ 10484 ebp = POP32_VAL(esp); /* 0x36144643: pop ebp */ 10485 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144644: ret 4 */ 10486 RECOMP_REGS_OUT(); 10487 } 10488 10489 void sub_36144650(void) { 10490 int _fpu_cmp = 0; 10491 uint32_t _cf = 0; 10492 int _df = 1; 10493 uint32_t _flag_k = FK_NONE; 10494 uint32_t _flag_a = 0, _flag_b = 0; 10495 uint32_t _itail_tgt = 0; 10496 RECOMP_REGS_LOCALS 10497 RECOMP_ENTER(0x36144650u); 10498 10499 L_36144650: 10500 PUSH32(esp, ebp); /* 0x36144650: push ebp */ 10501 ebp = esp; /* 0x36144651: mov ebp, esp */ 10502 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10504 esp = esp - 0xCu; /* 0x36144653: sub esp, 0xc */ 10505 _flag_k = FK_CMP; 10506 PUSH32(esp, esi); /* 0x36144656: push esi */ 10507 esi = MEM32(ebp + 0x8); /* 0x36144657: mov esi, dword ptr [ebp + 8] */ 10508 PUSH32(esp, edi); /* 0x3614465A: push edi */ 10509 edi = ecx; /* 0x3614465B: mov edi, ecx */ 10510 MEM32(ebp + (-0xC)) = 0; /* 0x3614465D: mov dword ptr [ebp - 0xc], 0 */ 10511 ecx = MEM32(ebp + (-0xC)); /* 0x36144664: mov ecx, dword ptr [ebp - 0xc] */ 10512 MEM32(ebp + (-0x8)) = 0; /* 0x36144667: mov dword ptr [ebp - 8], 0 */ 10513 edx = MEM32(ebp + (-0x8)); /* 0x3614466E: mov edx, dword ptr [ebp - 8] */ 10514 eax = esi; /* 0x36144671: mov eax, esi */ 10515 MEM32(eax) = ecx; /* 0x36144673: mov dword ptr [eax], ecx */ 10516 MEM32(eax + 0x4) = edx; /* 0x36144675: mov dword ptr [eax + 4], edx */ 10517 MEM32(ebp + (-0x4)) = 0; /* 0x36144678: mov dword ptr [ebp - 4], 0 */ 10518 ecx = MEM32(ebp + (-0x4)); /* 0x3614467F: mov ecx, dword ptr [ebp - 4] */ 10519 edx = ebp + (-0xC); /* 0x36144682: lea edx, [ebp - 0xc] */ 10520 PUSH32(esp, edx); /* 0x36144685: push edx */ 10521 MEM32(eax + 0x8) = ecx; /* 0x36144686: mov dword ptr [eax + 8], ecx */ 10522 MEM32(ebp + (-0xC)) = 0; /* 0x36144689: mov dword ptr [ebp - 0xc], 0 */ 10523 MEM32(ebp + (-0x8)) = 0; /* 0x36144690: mov dword ptr [ebp - 8], 0 */ 10524 MEM32(ebp + (-0x4)) = 0; /* 0x36144697: mov dword ptr [ebp - 4], 0 */ 10525 RECOMP_ICALL(0x360D40B0u); /* 0x3614469E: call 0x360d40b0 */ /* not lifted */ 10526 RECOMP_FLAGS_IN(); 10527 ecx = eax; /* 0x361446A3: mov ecx, eax */ 10528 RECOMP_ICALL(0x360DA4C0u); /* 0x361446A5: call 0x360da4c0 */ /* not lifted */ 10529 RECOMP_FLAGS_IN(); 10530 eax = ebp + (-0xC); /* 0x361446AA: lea eax, [ebp - 0xc] */ 10531 PUSH32(esp, eax); /* 0x361446AD: push eax */ 10532 PUSH32(esp, esi); /* 0x361446AE: push esi */ 10533 ecx = edi; /* 0x361446AF: mov ecx, edi */ 10534 RECOMP_ICALL(0x36142A60u); /* 0x361446B1: call 0x36142a60 */ /* not lifted */ 10535 RECOMP_FLAGS_IN(); 10536 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361446B6: fstp st(0) */ 10537 fp_push(*(float*)&MEM32(edi + 0x15C)); /* 0x361446B8: fld dword ptr [edi + 0x15c] */ 10538 edi = POP32_VAL(esp); /* 0x361446BE: pop edi */ 10539 fp_push(_st[0]); /* 0x361446BF: fld st(0) */ 10540 eax = 2; /* 0x361446C1: mov eax, 2 */ 10541 _st[0] *= (double)*(float*)ADDR(esi); /* 0x361446C6: fmul dword ptr [esi] */ 10542 { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x361446C8: fstp dword ptr [esi] */ 10543 fp_push(_st[0]); /* 0x361446CA: fld st(0) */ 10544 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x361446CC: fmul dword ptr [esi + 4] */ 10545 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x361446CF: fstp dword ptr [esi + 4] */ 10546 _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x361446D2: fmul dword ptr [esi + 8] */ 10547 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x361446D5: fstp dword ptr [esi + 8] */ 10548 esi = POP32_VAL(esp); /* 0x361446D8: pop esi */ 10549 esp = ebp; /* 0x361446D9: mov esp, ebp */ 10550 ebp = POP32_VAL(esp); /* 0x361446DB: pop ebp */ 10551 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361446DC: ret 4 */ 10552 RECOMP_REGS_OUT(); 10553 } 10554 10555 void sub_361446E0(void) { 10556 int _fpu_cmp = 0; 10557 uint32_t _cf = 0; 10558 int _df = 1; 10559 uint32_t _flag_k = FK_NONE; 10560 uint32_t _flag_a = 0, _flag_b = 0; 10561 uint32_t _itail_tgt = 0; 10562 RECOMP_REGS_LOCALS 10563 RECOMP_ENTER(0x361446E0u); 10564 10565 L_361446E0: 10566 MEM32(0x3630D974) = 0x40A00000u; /* 0x361446E0: mov dword ptr [0x3630d974], 0x40a00000 */ 10567 MEM32(0x3630D978) = 0x3F800000u; /* 0x361446EA: mov dword ptr [0x3630d978], 0x3f800000 */ 10568 MEM32(0x3630D97C) = 0x3F000000u; /* 0x361446F4: mov dword ptr [0x3630d97c], 0x3f000000 */ 10569 MEM32(0x3630D980) = 0x3DCCCCCDu; /* 0x361446FE: mov dword ptr [0x3630d980], 0x3dcccccd */ 10570 MEM8(0x3630D984) = (uint8_t)(1); /* 0x36144708: mov byte ptr [0x3630d984], 1 */ 10571 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614470F: ret */ 10572 RECOMP_REGS_OUT(); 10573 } 10574 10575 void sub_36144710(void) { 10576 int _fpu_cmp = 0; 10577 uint32_t _cf = 0; 10578 int _df = 1; 10579 uint32_t _flag_k = FK_NONE; 10580 uint32_t _flag_a = 0, _flag_b = 0; 10581 uint32_t _itail_tgt = 0; 10582 RECOMP_REGS_LOCALS 10583 RECOMP_ENTER(0x36144710u); 10584 10585 L_36144710: 10586 RECOMP_ICALL(0x36144720u); /* 0x36144710: call 0x36144720 */ /* not lifted */ 10587 RECOMP_FLAGS_IN(); 10588 goto L_36144730; /* 0x36144715: jmp 0x36144730 */ 10589 L_36144730: 10590 PUSH32(esp, 0x36144740u); /* 0x36144730: push 0x36144740 */ 10591 RECOMP_ICALL(0x3615FEB2u); /* 0x36144735: call 0x3615feb2 */ /* not lifted */ 10592 RECOMP_FLAGS_IN(); 10593 ecx = POP32_VAL(esp); /* 0x3614473A: pop ecx */ 10594 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614473B: ret */ 10595 RECOMP_REGS_OUT(); 10596 } 10597 10598 void sub_36144720(void) { 10599 int _fpu_cmp = 0; 10600 uint32_t _cf = 0; 10601 int _df = 1; 10602 uint32_t _flag_k = FK_NONE; 10603 uint32_t _flag_a = 0, _flag_b = 0; 10604 uint32_t _itail_tgt = 0; 10605 RECOMP_REGS_LOCALS 10606 RECOMP_ENTER(0x36144720u); 10607 10608 L_36144720: 10609 ecx = 0x3630D989u; /* 0x36144720: mov ecx, 0x3630d989 */ 10610 L_36144725: 10611 { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; } 10612 { RECOMP_REGS_OUT(); return; } /* end of function */ 10613 _ljump: 10614 switch (_itail_tgt) { 10615 case 0x36144720u: goto L_36144720; 10616 case 0x36144725u: goto L_36144725; 10617 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10618 } 10619 RECOMP_REGS_OUT(); 10620 } 10621 10622 void sub_36144730(void) { 10623 int _fpu_cmp = 0; 10624 uint32_t _cf = 0; 10625 int _df = 1; 10626 uint32_t _flag_k = FK_NONE; 10627 uint32_t _flag_a = 0, _flag_b = 0; 10628 uint32_t _itail_tgt = 0; 10629 RECOMP_REGS_LOCALS 10630 RECOMP_ENTER(0x36144730u); 10631 10632 L_36144730: 10633 PUSH32(esp, 0x36144740u); /* 0x36144730: push 0x36144740 */ 10634 RECOMP_ICALL(0x3615FEB2u); /* 0x36144735: call 0x3615feb2 */ /* not lifted */ 10635 RECOMP_FLAGS_IN(); 10636 ecx = POP32_VAL(esp); /* 0x3614473A: pop ecx */ 10637 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614473B: ret */ 10638 RECOMP_REGS_OUT(); 10639 } 10640 10641 void sub_36144740(void) { 10642 int _fpu_cmp = 0; 10643 uint32_t _cf = 0; 10644 int _df = 1; 10645 uint32_t _flag_k = FK_NONE; 10646 uint32_t _flag_a = 0, _flag_b = 0; 10647 uint32_t _itail_tgt = 0; 10648 RECOMP_REGS_LOCALS 10649 RECOMP_ENTER(0x36144740u); 10650 10651 L_36144740: 10652 ecx = 0x3630D989u; /* 0x36144740: mov ecx, 0x3630d989 */ 10653 L_36144745: 10654 { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; } 10655 { RECOMP_REGS_OUT(); return; } /* end of function */ 10656 _ljump: 10657 switch (_itail_tgt) { 10658 case 0x36144740u: goto L_36144740; 10659 case 0x36144745u: goto L_36144745; 10660 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10661 } 10662 RECOMP_REGS_OUT(); 10663 } 10664 10665 void sub_36144750(void) { 10666 int _fpu_cmp = 0; 10667 uint32_t _cf = 0; 10668 int _df = 1; 10669 uint32_t _flag_k = FK_NONE; 10670 uint32_t _flag_a = 0, _flag_b = 0; 10671 uint32_t _itail_tgt = 0; 10672 RECOMP_REGS_LOCALS 10673 RECOMP_ENTER(0x36144750u); 10674 10675 L_36144750: 10676 RECOMP_ICALL(0x36144760u); /* 0x36144750: call 0x36144760 */ /* not lifted */ 10677 RECOMP_FLAGS_IN(); 10678 goto L_36144770; /* 0x36144755: jmp 0x36144770 */ 10679 L_36144770: 10680 PUSH32(esp, 0x36144780u); /* 0x36144770: push 0x36144780 */ 10681 RECOMP_ICALL(0x3615FEB2u); /* 0x36144775: call 0x3615feb2 */ /* not lifted */ 10682 RECOMP_FLAGS_IN(); 10683 ecx = POP32_VAL(esp); /* 0x3614477A: pop ecx */ 10684 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614477B: ret */ 10685 RECOMP_REGS_OUT(); 10686 } 10687 10688 void sub_36144760(void) { 10689 int _fpu_cmp = 0; 10690 uint32_t _cf = 0; 10691 int _df = 1; 10692 uint32_t _flag_k = FK_NONE; 10693 uint32_t _flag_a = 0, _flag_b = 0; 10694 uint32_t _itail_tgt = 0; 10695 RECOMP_REGS_LOCALS 10696 RECOMP_ENTER(0x36144760u); 10697 10698 L_36144760: 10699 ecx = 0x3630D988u; /* 0x36144760: mov ecx, 0x3630d988 */ 10700 L_36144765: 10701 { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; } 10702 { RECOMP_REGS_OUT(); return; } /* end of function */ 10703 _ljump: 10704 switch (_itail_tgt) { 10705 case 0x36144760u: goto L_36144760; 10706 case 0x36144765u: goto L_36144765; 10707 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10708 } 10709 RECOMP_REGS_OUT(); 10710 } 10711 10712 void sub_36144770(void) { 10713 int _fpu_cmp = 0; 10714 uint32_t _cf = 0; 10715 int _df = 1; 10716 uint32_t _flag_k = FK_NONE; 10717 uint32_t _flag_a = 0, _flag_b = 0; 10718 uint32_t _itail_tgt = 0; 10719 RECOMP_REGS_LOCALS 10720 RECOMP_ENTER(0x36144770u); 10721 10722 L_36144770: 10723 PUSH32(esp, 0x36144780u); /* 0x36144770: push 0x36144780 */ 10724 RECOMP_ICALL(0x3615FEB2u); /* 0x36144775: call 0x3615feb2 */ /* not lifted */ 10725 RECOMP_FLAGS_IN(); 10726 ecx = POP32_VAL(esp); /* 0x3614477A: pop ecx */ 10727 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614477B: ret */ 10728 RECOMP_REGS_OUT(); 10729 } 10730 10731 void sub_36144780(void) { 10732 int _fpu_cmp = 0; 10733 uint32_t _cf = 0; 10734 int _df = 1; 10735 uint32_t _flag_k = FK_NONE; 10736 uint32_t _flag_a = 0, _flag_b = 0; 10737 uint32_t _itail_tgt = 0; 10738 RECOMP_REGS_LOCALS 10739 RECOMP_ENTER(0x36144780u); 10740 10741 L_36144780: 10742 ecx = 0x3630D988u; /* 0x36144780: mov ecx, 0x3630d988 */ 10743 L_36144785: 10744 { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; } 10745 { RECOMP_REGS_OUT(); return; } /* end of function */ 10746 _ljump: 10747 switch (_itail_tgt) { 10748 case 0x36144780u: goto L_36144780; 10749 case 0x36144785u: goto L_36144785; 10750 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10751 } 10752 RECOMP_REGS_OUT(); 10753 } 10754 10755 void sub_36144790(void) { 10756 int _fpu_cmp = 0; 10757 uint32_t _cf = 0; 10758 int _df = 1; 10759 uint32_t _flag_k = FK_NONE; 10760 uint32_t _flag_a = 0, _flag_b = 0; 10761 uint32_t _itail_tgt = 0; 10762 RECOMP_REGS_LOCALS 10763 RECOMP_ENTER(0x36144790u); 10764 10765 L_36144790: 10766 PUSH32(esp, ebp); /* 0x36144790: push ebp */ 10767 ebp = esp; /* 0x36144791: mov ebp, esp */ 10768 PUSH32(esp, 0xFFFFFFFFu); /* 0x36144793: push -1 */ 10769 PUSH32(esp, 0x3616CF04u); /* 0x36144795: push 0x3616cf04 */ 10770 eax = MEM32(FS_BASE + (0)); /* 0x3614479A: mov eax, dword ptr fs:[0] */ 10771 PUSH32(esp, eax); /* 0x361447A0: push eax */ 10772 MEM32(FS_BASE + (0)) = esp; /* 0x361447A1: mov dword ptr fs:[0], esp */ 10773 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10775 esp = esp - 8; /* 0x361447A8: sub esp, 8 */ 10776 _flag_k = FK_CMP; 10777 PUSH32(esp, esi); /* 0x361447AB: push esi */ 10778 esi = ecx; /* 0x361447AC: mov esi, ecx */ 10779 MEM32(ebp + (-0x14)) = esi; /* 0x361447AE: mov dword ptr [ebp - 0x14], esi */ 10780 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x361447B1: call dword ptr [0x3616ffd0] */ 10781 RECOMP_FLAGS_IN(); 10782 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x361447B7: mov cl, byte ptr [ebp - 0xd] */ 10783 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10784 eax = 0; /* 0x361447BA: xor eax, eax */ 10785 _cf = 0; 10786 _flag_k = FK_TEST; 10787 MEM32(esi + 0x20) = eax; /* 0x361447BC: mov dword ptr [esi + 0x20], eax */ 10788 MEM32(esi + 0x24) = eax; /* 0x361447BF: mov dword ptr [esi + 0x24], eax */ 10789 MEM32(ebp + (-0x4)) = eax; /* 0x361447C2: mov dword ptr [ebp - 4], eax */ 10790 MEM8(esi + 0x28) = (uint8_t)(LO8(ecx)); /* 0x361447C5: mov byte ptr [esi + 0x28], cl */ 10791 MEM32(esi + 0x2C) = eax; /* 0x361447C8: mov dword ptr [esi + 0x2c], eax */ 10792 MEM32(esi + 0x30) = eax; /* 0x361447CB: mov dword ptr [esi + 0x30], eax */ 10793 MEM32(esi + 0x34) = eax; /* 0x361447CE: mov dword ptr [esi + 0x34], eax */ 10794 ecx = esi; /* 0x361447D1: mov ecx, esi */ 10795 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x361447D3: mov byte ptr [ebp - 4], 1 */ 10796 MEM32(esi) = 0x361787F4u; /* 0x361447D7: mov dword ptr [esi], 0x361787f4 */ 10797 RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x361447DD: call dword ptr [0x3616fc20] */ 10798 RECOMP_FLAGS_IN(); 10799 ecx = MEM32(ebp + (-0xC)); /* 0x361447E3: mov ecx, dword ptr [ebp - 0xc] */ 10800 eax = esi; /* 0x361447E6: mov eax, esi */ 10801 esi = POP32_VAL(esp); /* 0x361447E8: pop esi */ 10802 MEM32(FS_BASE + (0)) = ecx; /* 0x361447E9: mov dword ptr fs:[0], ecx */ 10803 esp = ebp; /* 0x361447F0: mov esp, ebp */ 10804 ebp = POP32_VAL(esp); /* 0x361447F2: pop ebp */ 10805 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361447F3: ret */ 10806 RECOMP_REGS_OUT(); 10807 } 10808 10809 void sub_36144800(void) { 10810 int _fpu_cmp = 0; 10811 uint32_t _cf = 0; 10812 int _df = 1; 10813 uint32_t _flag_k = FK_NONE; 10814 uint32_t _flag_a = 0, _flag_b = 0; 10815 uint32_t _itail_tgt = 0; 10816 RECOMP_REGS_LOCALS 10817 RECOMP_ENTER(0x36144800u); 10818 10819 L_36144800: 10820 PUSH32(esp, ebp); /* 0x36144800: push ebp */ 10821 ebp = esp; /* 0x36144801: mov ebp, esp */ 10822 PUSH32(esp, esi); /* 0x36144803: push esi */ 10823 esi = ecx; /* 0x36144804: mov esi, ecx */ 10824 RECOMP_ICALL(0x36144830u); /* 0x36144806: call 0x36144830 */ /* not lifted */ 10825 RECOMP_FLAGS_IN(); 10826 /* test MEM8(ebp + 0x8), 1 */ /* 0x3614480B: test byte ptr [ebp + 8], 1 */ 10827 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10828 _cf = 0; 10829 _flag_k = FK_NARROW(FK_TEST, 24); 10830 if (TEST_Z(_flag_a, _flag_b)) goto L_3614481A; /* 0x3614480F: je 0x3614481a */ 10831 L_36144811: 10832 PUSH32(esp, esi); /* 0x36144811: push esi */ 10833 RECOMP_ICALL(0x3615FCC4u); /* 0x36144812: call 0x3615fcc4 */ /* not lifted */ 10834 RECOMP_FLAGS_IN(); 10835 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10837 esp = esp + 4; /* 0x36144817: add esp, 4 */ 10838 _flag_k = FK_ADD; 10839 L_3614481A: 10840 eax = esi; /* 0x3614481A: mov eax, esi */ 10841 esi = POP32_VAL(esp); /* 0x3614481C: pop esi */ 10842 ebp = POP32_VAL(esp); /* 0x3614481D: pop ebp */ 10843 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614481E: ret 4 */ 10844 RECOMP_REGS_OUT(); 10845 } 10846 10847 void sub_36144830(void) { 10848 int _fpu_cmp = 0; 10849 uint32_t _cf = 0; 10850 int _df = 1; 10851 uint32_t _flag_k = FK_NONE; 10852 uint32_t _flag_a = 0, _flag_b = 0; 10853 uint32_t _itail_tgt = 0; 10854 RECOMP_REGS_LOCALS 10855 RECOMP_ENTER(0x36144830u); 10856 10857 L_36144830: 10858 PUSH32(esp, ebp); /* 0x36144830: push ebp */ 10859 ebp = esp; /* 0x36144831: mov ebp, esp */ 10860 PUSH32(esp, 0xFFFFFFFFu); /* 0x36144833: push -1 */ 10861 PUSH32(esp, 0x3616CF19u); /* 0x36144835: push 0x3616cf19 */ 10862 eax = MEM32(FS_BASE + (0)); /* 0x3614483A: mov eax, dword ptr fs:[0] */ 10863 PUSH32(esp, eax); /* 0x36144840: push eax */ 10864 MEM32(FS_BASE + (0)) = esp; /* 0x36144841: mov dword ptr fs:[0], esp */ 10865 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10867 esp = esp - 8; /* 0x36144848: sub esp, 8 */ 10868 _flag_k = FK_CMP; 10869 PUSH32(esp, ebx); /* 0x3614484B: push ebx */ 10870 PUSH32(esp, edi); /* 0x3614484C: push edi */ 10871 edi = ecx; /* 0x3614484D: mov edi, ecx */ 10872 MEM32(ebp + (-0x10)) = edi; /* 0x3614484F: mov dword ptr [ebp - 0x10], edi */ 10873 eax = MEM32(edi + 0x30); /* 0x36144852: mov eax, dword ptr [edi + 0x30] */ 10874 ebx = MEM32(edi + 0x2C); /* 0x36144855: mov ebx, dword ptr [edi + 0x2c] */ 10875 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10876 ecx = 0; /* 0x36144858: xor ecx, ecx */ 10877 _cf = 0; 10878 _flag_k = FK_TEST; 10879 /* cmp ebx, eax */ /* 0x3614485A: cmp ebx, eax */ 10880 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 10881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10882 _flag_k = FK_CMP; 10883 MEM32(ebp + (-0x4)) = ecx; /* 0x3614485C: mov dword ptr [ebp - 4], ecx */ 10884 MEM32(ebp + (-0x14)) = eax; /* 0x3614485F: mov dword ptr [ebp - 0x14], eax */ 10885 if (CMP_EQ(_flag_a, _flag_b)) goto L_361448CB; /* 0x36144862: je 0x361448cb */ 10886 L_36144864: 10887 PUSH32(esp, esi); /* 0x36144864: push esi */ 10888 esi = ebx + 0x8; /* 0x36144865: lea esi, [ebx + 8] */ 10889 L_36144868: 10890 eax = MEM32(esi); /* 0x36144868: mov eax, dword ptr [esi] */ 10891 /* cmp eax, ecx */ /* 0x3614486A: cmp eax, ecx */ 10892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10894 _flag_k = FK_CMP; 10895 if (CMP_EQ(_flag_a, _flag_b)) goto L_361448B3; /* 0x3614486C: je 0x361448b3 */ 10896 L_3614486E: 10897 edi = esi + (-0x4); /* 0x3614486E: lea edi, [esi - 4] */ 10898 PUSH32(esp, eax); /* 0x36144871: push eax */ 10899 ecx = edi; /* 0x36144872: mov ecx, edi */ 10900 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x36144874: call dword ptr [0x3616f158] */ 10901 RECOMP_FLAGS_IN(); 10902 /* cmp MEM8(eax), 0 */ /* 0x3614487A: cmp byte ptr [eax], 0 */ 10903 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24; 10904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10905 _flag_k = FK_NARROW(FK_CMP, 24); 10906 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614489E; /* 0x3614487D: je 0x3614489e */ 10907 L_3614487F: 10908 eax = MEM32(esi); /* 0x3614487F: mov eax, dword ptr [esi] */ 10909 PUSH32(esp, eax); /* 0x36144881: push eax */ 10910 ecx = edi; /* 0x36144882: mov ecx, edi */ 10911 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x36144884: call dword ptr [0x3616f158] */ 10912 RECOMP_FLAGS_IN(); 10913 /* cmp MEM8(eax), 0xFFu */ /* 0x3614488A: cmp byte ptr [eax], 0xff */ 10914 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10916 _flag_k = FK_NARROW(FK_CMP, 24); 10917 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614489E; /* 0x3614488D: je 0x3614489e */ 10918 L_3614488F: 10919 ecx = MEM32(esi); /* 0x3614488F: mov ecx, dword ptr [esi] */ 10920 PUSH32(esp, ecx); /* 0x36144891: push ecx */ 10921 ecx = edi; /* 0x36144892: mov ecx, edi */ 10922 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x36144894: call dword ptr [0x3616f158] */ 10923 RECOMP_FLAGS_IN(); 10924 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10925 MEM8(eax) = (uint8_t)(MEM8(eax) - 1); /* 0x3614489A: dec byte ptr [eax] */ 10926 _flag_k = FK_NARROW(FK_DEC, 24); 10927 goto L_361448B0; /* 0x3614489C: jmp 0x361448b0 */ 10928 L_3614489E: 10929 edx = MEM32(esi + 0x8); /* 0x3614489E: mov edx, dword ptr [esi + 8] */ 10930 eax = MEM32(esi); /* 0x361448A1: mov eax, dword ptr [esi] */ 10931 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 10932 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10933 edx = edx + 2; /* 0x361448A3: add edx, 2 */ 10934 _flag_k = FK_ADD; 10935 PUSH32(esp, edx); /* 0x361448A6: push edx */ 10936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10937 eax = eax - 1; /* 0x361448A7: dec eax */ 10938 _flag_k = FK_DEC; 10939 PUSH32(esp, eax); /* 0x361448A8: push eax */ 10940 ecx = edi; /* 0x361448A9: mov ecx, edi */ 10941 RECOMP_ICALL(0x36029840u); /* 0x361448AB: call 0x36029840 */ /* not lifted */ 10942 RECOMP_FLAGS_IN(); 10943 L_361448B0: 10944 edi = MEM32(ebp + (-0x10)); /* 0x361448B0: mov edi, dword ptr [ebp - 0x10] */ 10945 L_361448B3: 10946 eax = MEM32(ebp + (-0x14)); /* 0x361448B3: mov eax, dword ptr [ebp - 0x14] */ 10947 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10948 ecx = 0; /* 0x361448B6: xor ecx, ecx */ 10949 _cf = 0; 10950 _flag_k = FK_TEST; 10951 MEM32(esi) = ecx; /* 0x361448B8: mov dword ptr [esi], ecx */ 10952 MEM32(esi + 0x4) = ecx; /* 0x361448BA: mov dword ptr [esi + 4], ecx */ 10953 MEM32(esi + 0x8) = ecx; /* 0x361448BD: mov dword ptr [esi + 8], ecx */ 10954 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u); 10955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10956 ebx = ebx + 0x24u; /* 0x361448C0: add ebx, 0x24 */ 10957 _flag_k = FK_ADD; 10958 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 10959 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10960 esi = esi + 0x24u; /* 0x361448C3: add esi, 0x24 */ 10961 _flag_k = FK_ADD; 10962 /* cmp ebx, eax */ /* 0x361448C6: cmp ebx, eax */ 10963 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 10964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10965 _flag_k = FK_CMP; 10966 RECOMP_BACKEDGE(); 10967 if (CMP_NE(_flag_a, _flag_b)) goto L_36144868; /* 0x361448C8: jne 0x36144868 */ 10968 L_361448CA: 10969 esi = POP32_VAL(esp); /* 0x361448CA: pop esi */ 10970 L_361448CB: 10971 eax = MEM32(edi + 0x2C); /* 0x361448CB: mov eax, dword ptr [edi + 0x2c] */ 10972 PUSH32(esp, eax); /* 0x361448CE: push eax */ 10973 RECOMP_ICALL(0x3615FCC4u); /* 0x361448CF: call 0x3615fcc4 */ /* not lifted */ 10974 RECOMP_FLAGS_IN(); 10975 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10976 eax = 0; /* 0x361448D4: xor eax, eax */ 10977 _cf = 0; 10978 _flag_k = FK_TEST; 10979 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10981 esp = esp + 4; /* 0x361448D6: add esp, 4 */ 10982 _flag_k = FK_ADD; 10983 ecx = edi; /* 0x361448D9: mov ecx, edi */ 10984 MEM32(edi + 0x2C) = eax; /* 0x361448DB: mov dword ptr [edi + 0x2c], eax */ 10985 MEM32(edi + 0x30) = eax; /* 0x361448DE: mov dword ptr [edi + 0x30], eax */ 10986 MEM32(edi + 0x34) = eax; /* 0x361448E1: mov dword ptr [edi + 0x34], eax */ 10987 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361448E4: mov dword ptr [ebp - 4], 0xffffffff */ 10988 RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x361448EB: call dword ptr [0x3616ffd4] */ 10989 RECOMP_FLAGS_IN(); 10990 ecx = MEM32(ebp + (-0xC)); /* 0x361448F1: mov ecx, dword ptr [ebp - 0xc] */ 10991 edi = POP32_VAL(esp); /* 0x361448F4: pop edi */ 10992 ebx = POP32_VAL(esp); /* 0x361448F5: pop ebx */ 10993 MEM32(FS_BASE + (0)) = ecx; /* 0x361448F6: mov dword ptr fs:[0], ecx */ 10994 esp = ebp; /* 0x361448FD: mov esp, ebp */ 10995 ebp = POP32_VAL(esp); /* 0x361448FF: pop ebp */ 10996 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36144900: ret */ 10997 RECOMP_REGS_OUT(); 10998 } 10999 11000 void sub_36144910(void) { 11001 int _fpu_cmp = 0; 11002 uint32_t _cf = 0; 11003 int _df = 1; 11004 uint32_t _flag_k = FK_NONE; 11005 uint32_t _flag_a = 0, _flag_b = 0; 11006 uint32_t _itail_tgt = 0; 11007 RECOMP_REGS_LOCALS 11008 RECOMP_ENTER(0x36144910u); 11009 11010 L_36144910: 11011 PUSH32(esp, ebp); /* 0x36144910: push ebp */ 11012 ebp = esp; /* 0x36144911: mov ebp, esp */ 11013 PUSH32(esp, ecx); /* 0x36144913: push ecx */ 11014 PUSH32(esp, ebx); /* 0x36144914: push ebx */ 11015 PUSH32(esp, esi); /* 0x36144915: push esi */ 11016 PUSH32(esp, edi); /* 0x36144916: push edi */ 11017 edi = ecx; /* 0x36144917: mov edi, ecx */ 11018 eax = MEM32(edi + 0x24); /* 0x36144919: mov eax, dword ptr [edi + 0x24] */ 11019 PUSH32(esp, eax); /* 0x3614491C: push eax */ 11020 RECOMP_ICALL(0x3614CDD0u); /* 0x3614491D: call 0x3614cdd0 */ /* not lifted */ 11021 RECOMP_FLAGS_IN(); 11022 esi = eax; /* 0x36144922: mov esi, eax */ 11023 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11024 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11025 esp = esp + 4; /* 0x36144924: add esp, 4 */ 11026 _flag_k = FK_ADD; 11027 /* test esi, esi */ /* 0x36144927: test esi, esi */ 11028 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11029 _cf = 0; 11030 _flag_k = FK_TEST; 11031 if (TEST_Z(_flag_a, _flag_b)) goto L_36144998; /* 0x36144929: je 0x36144998 */ 11032 L_3614492B: 11033 ecx = esi; /* 0x3614492B: mov ecx, esi */ 11034 RECOMP_ICALL(MEM32(0x361700F0)); /* 0x3614492D: call dword ptr [0x361700f0] */ 11035 RECOMP_FLAGS_IN(); 11036 /* test LO8(eax), LO8(eax) */ /* 0x36144933: test al, al */ 11037 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11038 _cf = 0; 11039 _flag_k = FK_NARROW(FK_TEST, 24); 11040 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144998; /* 0x36144935: jne 0x36144998 */ 11041 L_36144937: 11042 ecx = esi; /* 0x36144937: mov ecx, esi */ 11043 RECOMP_ICALL(0x3614CE70u); /* 0x36144939: call 0x3614ce70 */ /* not lifted */ 11044 RECOMP_FLAGS_IN(); 11045 /* test eax, eax */ /* 0x3614493E: test eax, eax */ 11046 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11047 _cf = 0; 11048 _flag_k = FK_TEST; 11049 MEM32(ebp + (-0x4)) = eax; /* 0x36144940: mov dword ptr [ebp - 4], eax */ 11050 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144951; /* 0x36144943: jne 0x36144951 */ 11051 L_36144945: 11052 edi = POP32_VAL(esp); /* 0x36144945: pop edi */ 11053 esi = POP32_VAL(esp); /* 0x36144946: pop esi */ 11054 eax = 3; /* 0x36144947: mov eax, 3 */ 11055 ebx = POP32_VAL(esp); /* 0x3614494C: pop ebx */ 11056 esp = ebp; /* 0x3614494D: mov esp, ebp */ 11057 ebp = POP32_VAL(esp); /* 0x3614494F: pop ebp */ 11058 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36144950: ret */ 11059 L_36144951: 11060 ecx = esi; /* 0x36144951: mov ecx, esi */ 11061 RECOMP_ICALL(0x3614CEE0u); /* 0x36144953: call 0x3614cee0 */ /* not lifted */ 11062 RECOMP_FLAGS_IN(); 11063 /* test eax, eax */ /* 0x36144958: test eax, eax */ 11064 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11065 _cf = 0; 11066 _flag_k = FK_TEST; 11067 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144968; /* 0x3614495A: jne 0x36144968 */ 11068 L_3614495C: 11069 edi = POP32_VAL(esp); /* 0x3614495C: pop edi */ 11070 esi = POP32_VAL(esp); /* 0x3614495D: pop esi */ 11071 eax = 3; /* 0x3614495E: mov eax, 3 */ 11072 ebx = POP32_VAL(esp); /* 0x36144963: pop ebx */ 11073 esp = ebp; /* 0x36144964: mov esp, ebp */ 11074 ebp = POP32_VAL(esp); /* 0x36144966: pop ebp */ 11075 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36144967: ret */ 11076 L_36144968: 11077 esi = MEM32(edi + 0x2C); /* 0x36144968: mov esi, dword ptr [edi + 0x2c] */ 11078 ebx = MEM32(edi + 0x30); /* 0x3614496B: mov ebx, dword ptr [edi + 0x30] */ 11079 /* cmp ebx, esi */ /* 0x3614496E: cmp ebx, esi */ 11080 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 11081 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11082 _flag_k = FK_CMP; 11083 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614498C; /* 0x36144970: je 0x3614498c */ 11084 L_36144972: 11085 edi = esi + 0x4; /* 0x36144972: lea edi, [esi + 4] */ 11086 L_36144975: 11087 ecx = MEM32(ebp + (-0x4)); /* 0x36144975: mov ecx, dword ptr [ebp - 4] */ 11088 PUSH32(esp, edi); /* 0x36144978: push edi */ 11089 RECOMP_ICALL(0x3614ECF0u); /* 0x36144979: call 0x3614ecf0 */ /* not lifted */ 11090 RECOMP_FLAGS_IN(); 11091 /* test eax, eax */ /* 0x3614497E: test eax, eax */ 11092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11093 _cf = 0; 11094 _flag_k = FK_TEST; 11095 RECOMP_BACKEDGE(); 11096 if (TEST_Z(_flag_a, _flag_b)) goto L_3614495C; /* 0x36144980: je 0x3614495c */ 11097 L_36144982: 11098 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 11099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11100 esi = esi + 0x24u; /* 0x36144982: add esi, 0x24 */ 11101 _flag_k = FK_ADD; 11102 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u); 11103 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11104 edi = edi + 0x24u; /* 0x36144985: add edi, 0x24 */ 11105 _flag_k = FK_ADD; 11106 /* cmp ebx, esi */ /* 0x36144988: cmp ebx, esi */ 11107 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 11108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11109 _flag_k = FK_CMP; 11110 RECOMP_BACKEDGE(); 11111 if (CMP_NE(_flag_a, _flag_b)) goto L_36144975; /* 0x3614498A: jne 0x36144975 */ 11112 L_3614498C: 11113 edi = POP32_VAL(esp); /* 0x3614498C: pop edi */ 11114 esi = POP32_VAL(esp); /* 0x3614498D: pop esi */ 11115 eax = 1; /* 0x3614498E: mov eax, 1 */ 11116 ebx = POP32_VAL(esp); /* 0x36144993: pop ebx */ 11117 esp = ebp; /* 0x36144994: mov esp, ebp */ 11118 ebp = POP32_VAL(esp); /* 0x36144996: pop ebp */ 11119 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36144997: ret */ 11120 L_36144998: 11121 edi = POP32_VAL(esp); /* 0x36144998: pop edi */ 11122 esi = POP32_VAL(esp); /* 0x36144999: pop esi */ 11123 eax = 2; /* 0x3614499A: mov eax, 2 */ 11124 ebx = POP32_VAL(esp); /* 0x3614499F: pop ebx */ 11125 esp = ebp; /* 0x361449A0: mov esp, ebp */ 11126 ebp = POP32_VAL(esp); /* 0x361449A2: pop ebp */ 11127 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361449A3: ret */ 11128 RECOMP_REGS_OUT(); 11129 } 11130 11131 void sub_361449B0(void) { 11132 int _fpu_cmp = 0; 11133 uint32_t _cf = 0; 11134 int _df = 1; 11135 uint32_t _flag_k = FK_NONE; 11136 uint32_t _flag_a = 0, _flag_b = 0; 11137 uint32_t _itail_tgt = 0; 11138 RECOMP_REGS_LOCALS 11139 RECOMP_ENTER(0x361449B0u); 11140 11141 L_361449B0: 11142 PUSH32(esp, ebp); /* 0x361449B0: push ebp */ 11143 ebp = esp; /* 0x361449B1: mov ebp, esp */ 11144 PUSH32(esp, 0xFFFFFFFFu); /* 0x361449B3: push -1 */ 11145 PUSH32(esp, 0x3616CF58u); /* 0x361449B5: push 0x3616cf58 */ 11146 eax = MEM32(FS_BASE + (0)); /* 0x361449BA: mov eax, dword ptr fs:[0] */ 11147 PUSH32(esp, eax); /* 0x361449C0: push eax */ 11148 MEM32(FS_BASE + (0)) = esp; /* 0x361449C1: mov dword ptr fs:[0], esp */ 11149 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5Cu); 11150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11151 esp = esp - 0x5Cu; /* 0x361449C8: sub esp, 0x5c */ 11152 _flag_k = FK_CMP; 11153 eax = MEM32(ecx + 0x24); /* 0x361449CB: mov eax, dword ptr [ecx + 0x24] */ 11154 PUSH32(esp, ebx); /* 0x361449CE: push ebx */ 11155 PUSH32(esp, esi); /* 0x361449CF: push esi */ 11156 PUSH32(esp, edi); /* 0x361449D0: push edi */ 11157 PUSH32(esp, eax); /* 0x361449D1: push eax */ 11158 MEM32(ebp + (-0x20)) = ecx; /* 0x361449D2: mov dword ptr [ebp - 0x20], ecx */ 11159 RECOMP_ICALL(0x3614CDD0u); /* 0x361449D5: call 0x3614cdd0 */ /* not lifted */ 11160 RECOMP_FLAGS_IN(); 11161 edi = eax; /* 0x361449DA: mov edi, eax */ 11162 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11163 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11164 esp = esp + 4; /* 0x361449DC: add esp, 4 */ 11165 _flag_k = FK_ADD; 11166 ecx = edi; /* 0x361449DF: mov ecx, edi */ 11167 RECOMP_ICALL(0x3614CE70u); /* 0x361449E1: call 0x3614ce70 */ /* not lifted */ 11168 RECOMP_FLAGS_IN(); 11169 esi = eax; /* 0x361449E6: mov esi, eax */ 11170 ecx = edi; /* 0x361449E8: mov ecx, edi */ 11171 MEM32(ebp + (-0x24)) = esi; /* 0x361449EA: mov dword ptr [ebp - 0x24], esi */ 11172 RECOMP_ICALL(0x3614CEE0u); /* 0x361449ED: call 0x3614cee0 */ /* not lifted */ 11173 RECOMP_FLAGS_IN(); 11174 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x361449F2: mov cl, byte ptr [ebp - 0xd] */ 11175 MEM32(ebp + (-0x14)) = eax; /* 0x361449F5: mov dword ptr [ebp - 0x14], eax */ 11176 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x361449F8: mov al, byte ptr [ebp - 0xd] */ 11177 MEM8(ebp + (-0x53)) = (uint8_t)(LO8(ecx)); /* 0x361449FB: mov byte ptr [ebp - 0x53], cl */ 11178 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11179 ebx = 0; /* 0x361449FE: xor ebx, ebx */ 11180 _cf = 0; 11181 _flag_k = FK_TEST; 11182 ecx = ebp + (-0x54); /* 0x36144A00: lea ecx, [ebp - 0x54] */ 11183 MEM8(ebp + (-0x54)) = (uint8_t)(LO8(eax)); /* 0x36144A03: mov byte ptr [ebp - 0x54], al */ 11184 MEM8(ebp + (-0x48)) = (uint8_t)(LO8(ebx)); /* 0x36144A06: mov byte ptr [ebp - 0x48], bl */ 11185 RECOMP_ICALL(0x36145500u); /* 0x36144A09: call 0x36145500 */ /* not lifted */ 11186 RECOMP_FLAGS_IN(); 11187 edx = MEM32(0x3616FF74); /* 0x36144A0E: mov edx, dword ptr [0x3616ff74] */ 11188 ecx = MEM32(edx); /* 0x36144A14: mov ecx, dword ptr [edx] */ 11189 eax = MEM32(ecx); /* 0x36144A16: mov eax, dword ptr [ecx] */ 11190 PUSH32(esp, ebx); /* 0x36144A18: push ebx */ 11191 PUSH32(esp, 0x361B2CD8u); /* 0x36144A19: push 0x361b2cd8 */ 11192 PUSH32(esp, 0x361B2CC0u); /* 0x36144A1E: push 0x361b2cc0 */ 11193 PUSH32(esp, ebx); /* 0x36144A23: push ebx */ 11194 MEM32(ebp + (-0x4)) = ebx; /* 0x36144A24: mov dword ptr [ebp - 4], ebx */ 11195 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x36144A27: call dword ptr [eax + 0x10] */ 11196 RECOMP_FLAGS_IN(); 11197 PUSH32(esp, eax); /* 0x36144A2A: push eax */ 11198 RECOMP_ICALL(0x3615FD86u); /* 0x36144A2B: call 0x3615fd86 */ /* not lifted */ 11199 RECOMP_FLAGS_IN(); 11200 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11202 esp = esp + 0x14u; /* 0x36144A30: add esp, 0x14 */ 11203 _flag_k = FK_ADD; 11204 PUSH32(esp, ebx); /* 0x36144A33: push ebx */ 11205 PUSH32(esp, 0x361B66A0u); /* 0x36144A34: push 0x361b66a0 */ 11206 PUSH32(esp, 0x361B6680u); /* 0x36144A39: push 0x361b6680 */ 11207 PUSH32(esp, ebx); /* 0x36144A3E: push ebx */ 11208 MEM32(ebp + (-0x1C)) = eax; /* 0x36144A3F: mov dword ptr [ebp - 0x1c], eax */ 11209 RECOMP_ICALL(MEM32(0x361700DC)); /* 0x36144A42: call dword ptr [0x361700dc] */ 11210 RECOMP_FLAGS_IN(); 11211 PUSH32(esp, eax); /* 0x36144A48: push eax */ 11212 RECOMP_ICALL(0x3615FD86u); /* 0x36144A49: call 0x3615fd86 */ /* not lifted */ 11213 RECOMP_FLAGS_IN(); 11214 ecx = MEM32(ebp + (-0x1C)); /* 0x36144A4E: mov ecx, dword ptr [ebp - 0x1c] */ 11215 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11216 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11217 esp = esp + 0x14u; /* 0x36144A51: add esp, 0x14 */ 11218 _flag_k = FK_ADD; 11219 /* cmp ecx, ebx */ /* 0x36144A54: cmp ecx, ebx */ 11220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 11221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11222 _flag_k = FK_CMP; 11223 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144ACC; /* 0x36144A56: je 0x36144acc */ 11224 L_36144A58: 11225 /* cmp eax, edi */ /* 0x36144A58: cmp eax, edi */ 11226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11228 _flag_k = FK_CMP; 11229 if (CMP_NE(_flag_a, _flag_b)) goto L_36144ACC; /* 0x36144A5A: jne 0x36144acc */ 11230 L_36144A5C: 11231 RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36144A5C: call dword ptr [0x361700b4] */ 11232 RECOMP_FLAGS_IN(); 11233 PUSH32(esp, eax); /* 0x36144A62: push eax */ 11234 ecx = esi; /* 0x36144A63: mov ecx, esi */ 11235 RECOMP_ICALL(0x3614ECB0u); /* 0x36144A65: call 0x3614ecb0 */ /* not lifted */ 11236 RECOMP_FLAGS_IN(); 11237 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x36144A6A: mov cl, byte ptr [ebp - 0xd] */ 11238 MEM32(ebp + (-0x18)) = eax; /* 0x36144A6D: mov dword ptr [ebp - 0x18], eax */ 11239 MEM8(ebp + (-0x40)) = (uint8_t)(LO8(ecx)); /* 0x36144A70: mov byte ptr [ebp - 0x40], cl */ 11240 MEM32(ebp + (-0x3C)) = ebx; /* 0x36144A73: mov dword ptr [ebp - 0x3c], ebx */ 11241 MEM32(ebp + (-0x38)) = ebx; /* 0x36144A76: mov dword ptr [ebp - 0x38], ebx */ 11242 MEM32(ebp + (-0x34)) = ebx; /* 0x36144A79: mov dword ptr [ebp - 0x34], ebx */ 11243 edx = ebp + (-0x40); /* 0x36144A7C: lea edx, [ebp - 0x40] */ 11244 PUSH32(esp, edx); /* 0x36144A7F: push edx */ 11245 eax = ebp + (-0x18); /* 0x36144A80: lea eax, [ebp - 0x18] */ 11246 PUSH32(esp, eax); /* 0x36144A83: push eax */ 11247 ecx = ebp + (-0x68); /* 0x36144A84: lea ecx, [ebp - 0x68] */ 11248 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36144A87: mov byte ptr [ebp - 4], 1 */ 11249 RECOMP_ICALL(0x361450E0u); /* 0x36144A8B: call 0x361450e0 */ /* not lifted */ 11250 RECOMP_FLAGS_IN(); 11251 PUSH32(esp, eax); /* 0x36144A90: push eax */ 11252 ecx = ebp + (-0x30); /* 0x36144A91: lea ecx, [ebp - 0x30] */ 11253 PUSH32(esp, ecx); /* 0x36144A94: push ecx */ 11254 ecx = ebp + (-0x54); /* 0x36144A95: lea ecx, [ebp - 0x54] */ 11255 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36144A98: mov byte ptr [ebp - 4], 2 */ 11256 RECOMP_ICALL(0x36145000u); /* 0x36144A9C: call 0x36145000 */ /* not lifted */ 11257 RECOMP_FLAGS_IN(); 11258 edi = MEM32(eax); /* 0x36144AA1: mov edi, dword ptr [eax] */ 11259 ecx = ebp + (-0x64); /* 0x36144AA3: lea ecx, [ebp - 0x64] */ 11260 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36144AA6: mov byte ptr [ebp - 4], 1 */ 11261 RECOMP_ICALL(0x3606C6E0u); /* 0x36144AAA: call 0x3606c6e0 */ /* not lifted */ 11262 RECOMP_FLAGS_IN(); 11263 ecx = ebp + (-0x40); /* 0x36144AAF: lea ecx, [ebp - 0x40] */ 11264 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36144AB2: mov byte ptr [ebp - 4], bl */ 11265 RECOMP_ICALL(0x3606C6E0u); /* 0x36144AB5: call 0x3606c6e0 */ /* not lifted */ 11266 RECOMP_FLAGS_IN(); 11267 eax = MEM32(edi + 0x18); /* 0x36144ABA: mov eax, dword ptr [edi + 0x18] */ 11268 edx = ebp + (-0x1C); /* 0x36144ABD: lea edx, [ebp - 0x1c] */ 11269 PUSH32(esp, edx); /* 0x36144AC0: push edx */ 11270 ecx = edi + 0x10; /* 0x36144AC1: lea ecx, [edi + 0x10] */ 11271 PUSH32(esp, 1); /* 0x36144AC4: push 1 */ 11272 PUSH32(esp, eax); /* 0x36144AC6: push eax */ 11273 RECOMP_ICALL(0x3610ED70u); /* 0x36144AC7: call 0x3610ed70 */ /* not lifted */ 11274 RECOMP_FLAGS_IN(); 11275 L_36144ACC: 11276 eax = MEM32(ebp + (-0x20)); /* 0x36144ACC: mov eax, dword ptr [ebp - 0x20] */ 11277 edi = MEM32(eax + 0x2C); /* 0x36144ACF: mov edi, dword ptr [eax + 0x2c] */ 11278 eax = MEM32(eax + 0x30); /* 0x36144AD2: mov eax, dword ptr [eax + 0x30] */ 11279 /* cmp eax, edi */ /* 0x36144AD5: cmp eax, edi */ 11280 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11282 _flag_k = FK_CMP; 11283 MEM32(ebp + (-0x18)) = edi; /* 0x36144AD7: mov dword ptr [ebp - 0x18], edi */ 11284 MEM32(ebp + (-0x28)) = eax; /* 0x36144ADA: mov dword ptr [ebp - 0x28], eax */ 11285 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144BAF; /* 0x36144ADD: je 0x36144baf */ 11286 L_36144AE3: 11287 goto L_36144AEB; /* 0x36144AE3: jmp 0x36144aeb */ 11288 L_36144AE5: 11289 edi = MEM32(ebp + (-0x18)); /* 0x36144AE5: mov edi, dword ptr [ebp - 0x18] */ 11290 esi = MEM32(ebp + (-0x24)); /* 0x36144AE8: mov esi, dword ptr [ebp - 0x24] */ 11291 L_36144AEB: 11292 eax = edi + 0x4; /* 0x36144AEB: lea eax, [edi + 4] */ 11293 PUSH32(esp, eax); /* 0x36144AEE: push eax */ 11294 ecx = esi; /* 0x36144AEF: mov ecx, esi */ 11295 RECOMP_ICALL(0x3614ECF0u); /* 0x36144AF1: call 0x3614ecf0 */ /* not lifted */ 11296 RECOMP_FLAGS_IN(); 11297 esi = eax; /* 0x36144AF6: mov esi, eax */ 11298 /* cmp MEM8(edi + 0x20), LO8(ebx) */ /* 0x36144AF8: cmp byte ptr [edi + 0x20], bl */ 11299 _flag_a = (uint32_t)(MEM8(edi + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11301 _flag_k = FK_NARROW(FK_CMP, 24); 11302 if (CMP_NE(_flag_a, _flag_b)) goto L_36144B08; /* 0x36144AFB: jne 0x36144b08 */ 11303 L_36144AFD: 11304 ecx = MEM32(ebp + (-0x14)); /* 0x36144AFD: mov ecx, dword ptr [ebp - 0x14] */ 11305 PUSH32(esp, edi); /* 0x36144B00: push edi */ 11306 RECOMP_ICALL(0x3614ACD0u); /* 0x36144B01: call 0x3614acd0 */ /* not lifted */ 11307 RECOMP_FLAGS_IN(); 11308 goto L_36144B13; /* 0x36144B06: jmp 0x36144b13 */ 11309 L_36144B08: 11310 ecx = MEM32(edi); /* 0x36144B08: mov ecx, dword ptr [edi] */ 11311 PUSH32(esp, ecx); /* 0x36144B0A: push ecx */ 11312 ecx = MEM32(ebp + (-0x14)); /* 0x36144B0B: mov ecx, dword ptr [ebp - 0x14] */ 11313 RECOMP_ICALL(0x3614AE80u); /* 0x36144B0E: call 0x3614ae80 */ /* not lifted */ 11314 RECOMP_FLAGS_IN(); 11315 L_36144B13: 11316 ecx = MEM32(ebp + (-0x14)); /* 0x36144B13: mov ecx, dword ptr [ebp - 0x14] */ 11317 PUSH32(esp, esi); /* 0x36144B16: push esi */ 11318 RECOMP_ICALL(0x3614AC00u); /* 0x36144B17: call 0x3614ac00 */ /* not lifted */ 11319 RECOMP_FLAGS_IN(); 11320 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x36144B1C: mov dl, byte ptr [ebp - 0xd] */ 11321 MEM32(ebp + (-0x20)) = eax; /* 0x36144B1F: mov dword ptr [ebp - 0x20], eax */ 11322 MEM8(ebp + (-0x40)) = (uint8_t)(LO8(edx)); /* 0x36144B22: mov byte ptr [ebp - 0x40], dl */ 11323 MEM32(ebp + (-0x3C)) = ebx; /* 0x36144B25: mov dword ptr [ebp - 0x3c], ebx */ 11324 MEM32(ebp + (-0x38)) = ebx; /* 0x36144B28: mov dword ptr [ebp - 0x38], ebx */ 11325 MEM32(ebp + (-0x34)) = ebx; /* 0x36144B2B: mov dword ptr [ebp - 0x34], ebx */ 11326 eax = ebp + (-0x40); /* 0x36144B2E: lea eax, [ebp - 0x40] */ 11327 PUSH32(esp, eax); /* 0x36144B31: push eax */ 11328 ecx = ebp + (-0x64); /* 0x36144B32: lea ecx, [ebp - 0x64] */ 11329 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36144B35: mov byte ptr [ebp - 4], 3 */ 11330 MEM32(ebp + (-0x68)) = esi; /* 0x36144B39: mov dword ptr [ebp - 0x68], esi */ 11331 RECOMP_ICALL(0x36145560u); /* 0x36144B3C: call 0x36145560 */ /* not lifted */ 11332 RECOMP_FLAGS_IN(); 11333 ecx = ebp + (-0x68); /* 0x36144B41: lea ecx, [ebp - 0x68] */ 11334 PUSH32(esp, ecx); /* 0x36144B44: push ecx */ 11335 edx = ebp + (-0x30); /* 0x36144B45: lea edx, [ebp - 0x30] */ 11336 PUSH32(esp, edx); /* 0x36144B48: push edx */ 11337 ecx = ebp + (-0x54); /* 0x36144B49: lea ecx, [ebp - 0x54] */ 11338 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x36144B4C: mov byte ptr [ebp - 4], 4 */ 11339 RECOMP_ICALL(0x36145000u); /* 0x36144B50: call 0x36145000 */ /* not lifted */ 11340 RECOMP_FLAGS_IN(); 11341 edi = MEM32(eax); /* 0x36144B55: mov edi, dword ptr [eax] */ 11342 ecx = ebp + (-0x64); /* 0x36144B57: lea ecx, [ebp - 0x64] */ 11343 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36144B5A: mov byte ptr [ebp - 4], 3 */ 11344 RECOMP_ICALL(0x3606C6E0u); /* 0x36144B5E: call 0x3606c6e0 */ /* not lifted */ 11345 RECOMP_FLAGS_IN(); 11346 ecx = ebp + (-0x40); /* 0x36144B63: lea ecx, [ebp - 0x40] */ 11347 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36144B66: mov byte ptr [ebp - 4], bl */ 11348 RECOMP_ICALL(0x3606C6E0u); /* 0x36144B69: call 0x3606c6e0 */ /* not lifted */ 11349 RECOMP_FLAGS_IN(); 11350 esi = MEM32(edi + 0x14); /* 0x36144B6E: mov esi, dword ptr [edi + 0x14] */ 11351 edi = MEM32(edi + 0x18); /* 0x36144B71: mov edi, dword ptr [edi + 0x18] */ 11352 /* cmp edi, esi */ /* 0x36144B74: cmp edi, esi */ 11353 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 11354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11355 _flag_k = FK_CMP; 11356 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144B9B; /* 0x36144B76: je 0x36144b9b */ 11357 L_36144B78: 11358 ecx = MEM32(esi); /* 0x36144B78: mov ecx, dword ptr [esi] */ 11359 /* cmp MEM8(ecx + 0x1B4), LO8(ebx) */ /* 0x36144B7A: cmp byte ptr [ecx + 0x1b4], bl */ 11360 _flag_a = (uint32_t)(MEM8(ecx + 0x1B4)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11362 _flag_k = FK_NARROW(FK_CMP, 24); 11363 if (CMP_NE(_flag_a, _flag_b)) goto L_36144B94; /* 0x36144B80: jne 0x36144b94 */ 11364 L_36144B82: 11365 eax = MEM32(ebp + (-0x20)); /* 0x36144B82: mov eax, dword ptr [ebp - 0x20] */ 11366 PUSH32(esp, eax); /* 0x36144B85: push eax */ 11367 PUSH32(esp, 0xFFFFFFFFu); /* 0x36144B86: push -1 */ 11368 RECOMP_ICALL(0x36072000u); /* 0x36144B88: call 0x36072000 */ /* not lifted */ 11369 RECOMP_FLAGS_IN(); 11370 ecx = eax; /* 0x36144B8D: mov ecx, eax */ 11371 RECOMP_ICALL(0x36057CA0u); /* 0x36144B8F: call 0x36057ca0 */ /* not lifted */ 11372 RECOMP_FLAGS_IN(); 11373 L_36144B94: 11374 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 11375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11376 esi = esi + 4; /* 0x36144B94: add esi, 4 */ 11377 _flag_k = FK_ADD; 11378 /* cmp esi, edi */ /* 0x36144B97: cmp esi, edi */ 11379 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 11380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11381 _flag_k = FK_CMP; 11382 RECOMP_BACKEDGE(); 11383 if (CMP_NE(_flag_a, _flag_b)) goto L_36144B78; /* 0x36144B99: jne 0x36144b78 */ 11384 L_36144B9B: 11385 eax = MEM32(ebp + (-0x18)); /* 0x36144B9B: mov eax, dword ptr [ebp - 0x18] */ 11386 ecx = MEM32(ebp + (-0x28)); /* 0x36144B9E: mov ecx, dword ptr [ebp - 0x28] */ 11387 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u); 11388 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11389 eax = eax + 0x24u; /* 0x36144BA1: add eax, 0x24 */ 11390 _flag_k = FK_ADD; 11391 /* cmp eax, ecx */ /* 0x36144BA4: cmp eax, ecx */ 11392 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11394 _flag_k = FK_CMP; 11395 MEM32(ebp + (-0x18)) = eax; /* 0x36144BA6: mov dword ptr [ebp - 0x18], eax */ 11396 RECOMP_BACKEDGE(); 11397 if (CMP_NE(_flag_a, _flag_b)) goto L_36144AE5; /* 0x36144BA9: jne 0x36144ae5 */ 11398 L_36144BAF: 11399 esi = MEM32(ebp + (-0x50)); /* 0x36144BAF: mov esi, dword ptr [ebp - 0x50] */ 11400 /* cmp MEM32(ebp + (-0x44)), ebx */ /* 0x36144BB2: cmp dword ptr [ebp - 0x44], ebx */ 11401 _flag_a = (uint32_t)(MEM32(ebp + (-0x44))); _flag_b = (uint32_t)(ebx); 11402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11403 _flag_k = FK_CMP; 11404 eax = MEM32(esi); /* 0x36144BB5: mov eax, dword ptr [esi] */ 11405 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36144BB7: mov dword ptr [ebp - 4], 0xffffffff */ 11406 MEM32(ebp + (-0x18)) = eax; /* 0x36144BBE: mov dword ptr [ebp - 0x18], eax */ 11407 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144C10; /* 0x36144BC1: je 0x36144c10 */ 11408 L_36144BC3: 11409 ecx = ebp + (-0x28); /* 0x36144BC3: lea ecx, [ebp - 0x28] */ 11410 PUSH32(esp, ecx); /* 0x36144BC6: push ecx */ 11411 ecx = ebp + (-0x54); /* 0x36144BC7: lea ecx, [ebp - 0x54] */ 11412 RECOMP_ICALL(0x3614FC30u); /* 0x36144BCA: call 0x3614fc30 */ /* not lifted */ 11413 RECOMP_FLAGS_IN(); 11414 edx = eax; /* 0x36144BCF: mov edx, eax */ 11415 eax = MEM32(ebp + (-0x18)); /* 0x36144BD1: mov eax, dword ptr [ebp - 0x18] */ 11416 /* cmp eax, MEM32(edx) */ /* 0x36144BD4: cmp eax, dword ptr [edx] */ 11417 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 11418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11419 _flag_k = FK_CMP; 11420 if (CMP_NE(_flag_a, _flag_b)) goto L_36144C10; /* 0x36144BD6: jne 0x36144c10 */ 11421 L_36144BD8: 11422 ecx = MEM32(ebp + (-0x50)); /* 0x36144BD8: mov ecx, dword ptr [ebp - 0x50] */ 11423 /* cmp esi, ecx */ /* 0x36144BDB: cmp esi, ecx */ 11424 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 11425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11426 _flag_k = FK_CMP; 11427 if (CMP_NE(_flag_a, _flag_b)) goto L_36144C10; /* 0x36144BDD: jne 0x36144c10 */ 11428 L_36144BDF: 11429 eax = MEM32(ecx + 0x4); /* 0x36144BDF: mov eax, dword ptr [ecx + 4] */ 11430 PUSH32(esp, eax); /* 0x36144BE2: push eax */ 11431 ecx = ebp + (-0x54); /* 0x36144BE3: lea ecx, [ebp - 0x54] */ 11432 RECOMP_ICALL(0x361454B0u); /* 0x36144BE6: call 0x361454b0 */ /* not lifted */ 11433 RECOMP_FLAGS_IN(); 11434 ecx = MEM32(ebp + (-0x50)); /* 0x36144BEB: mov ecx, dword ptr [ebp - 0x50] */ 11435 edx = MEM32(ebp + (-0x4C)); /* 0x36144BEE: mov edx, dword ptr [ebp - 0x4c] */ 11436 MEM32(ecx + 0x4) = edx; /* 0x36144BF1: mov dword ptr [ecx + 4], edx */ 11437 eax = MEM32(ebp + (-0x50)); /* 0x36144BF4: mov eax, dword ptr [ebp - 0x50] */ 11438 MEM32(ebp + (-0x44)) = ebx; /* 0x36144BF7: mov dword ptr [ebp - 0x44], ebx */ 11439 MEM32(eax) = eax; /* 0x36144BFA: mov dword ptr [eax], eax */ 11440 eax = MEM32(ebp + (-0x50)); /* 0x36144BFC: mov eax, dword ptr [ebp - 0x50] */ 11441 MEM32(eax + 0x8) = eax; /* 0x36144BFF: mov dword ptr [eax + 8], eax */ 11442 eax = ebp + (-0x2C); /* 0x36144C02: lea eax, [ebp - 0x2c] */ 11443 PUSH32(esp, eax); /* 0x36144C05: push eax */ 11444 ecx = ebp + (-0x54); /* 0x36144C06: lea ecx, [ebp - 0x54] */ 11445 RECOMP_ICALL(0x3614FC30u); /* 0x36144C09: call 0x3614fc30 */ /* not lifted */ 11446 RECOMP_FLAGS_IN(); 11447 goto L_36144C35; /* 0x36144C0E: jmp 0x36144c35 */ 11448 L_36144C10: 11449 /* cmp eax, esi */ /* 0x36144C10: cmp eax, esi */ 11450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 11451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11452 _flag_k = FK_CMP; 11453 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144C35; /* 0x36144C12: je 0x36144c35 */ 11454 L_36144C14: 11455 PUSH32(esp, ebx); /* 0x36144C14: push ebx */ 11456 ecx = ebp + (-0x28); /* 0x36144C15: lea ecx, [ebp - 0x28] */ 11457 PUSH32(esp, ecx); /* 0x36144C18: push ecx */ 11458 ecx = ebp + (-0x18); /* 0x36144C19: lea ecx, [ebp - 0x18] */ 11459 RECOMP_ICALL(0x361455D0u); /* 0x36144C1C: call 0x361455d0 */ /* not lifted */ 11460 RECOMP_FLAGS_IN(); 11461 edx = MEM32(eax); /* 0x36144C21: mov edx, dword ptr [eax] */ 11462 PUSH32(esp, edx); /* 0x36144C23: push edx */ 11463 eax = ebp + (-0x24); /* 0x36144C24: lea eax, [ebp - 0x24] */ 11464 PUSH32(esp, eax); /* 0x36144C27: push eax */ 11465 ecx = ebp + (-0x54); /* 0x36144C28: lea ecx, [ebp - 0x54] */ 11466 RECOMP_ICALL(0x36140C70u); /* 0x36144C2B: call 0x36140c70 */ /* not lifted */ 11467 RECOMP_FLAGS_IN(); 11468 /* cmp MEM32(ebp + (-0x18)), esi */ /* 0x36144C30: cmp dword ptr [ebp - 0x18], esi */ 11469 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(esi); 11470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11471 _flag_k = FK_CMP; 11472 RECOMP_BACKEDGE(); 11473 if (CMP_NE(_flag_a, _flag_b)) goto L_36144C14; /* 0x36144C33: jne 0x36144c14 */ 11474 L_36144C35: 11475 ecx = MEM32(ebp + (-0x50)); /* 0x36144C35: mov ecx, dword ptr [ebp - 0x50] */ 11476 PUSH32(esp, ecx); /* 0x36144C38: push ecx */ 11477 RECOMP_ICALL(0x3615FCC4u); /* 0x36144C39: call 0x3615fcc4 */ /* not lifted */ 11478 RECOMP_FLAGS_IN(); 11479 edx = MEM32(ebp + (-0x4C)); /* 0x36144C3E: mov edx, dword ptr [ebp - 0x4c] */ 11480 PUSH32(esp, edx); /* 0x36144C41: push edx */ 11481 MEM32(ebp + (-0x50)) = ebx; /* 0x36144C42: mov dword ptr [ebp - 0x50], ebx */ 11482 MEM32(ebp + (-0x44)) = ebx; /* 0x36144C45: mov dword ptr [ebp - 0x44], ebx */ 11483 RECOMP_ICALL(0x3615FCC4u); /* 0x36144C48: call 0x3615fcc4 */ /* not lifted */ 11484 RECOMP_FLAGS_IN(); 11485 ecx = MEM32(ebp + (-0xC)); /* 0x36144C4D: mov ecx, dword ptr [ebp - 0xc] */ 11486 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11488 esp = esp + 8; /* 0x36144C50: add esp, 8 */ 11489 _flag_k = FK_ADD; 11490 edi = POP32_VAL(esp); /* 0x36144C53: pop edi */ 11491 esi = POP32_VAL(esp); /* 0x36144C54: pop esi */ 11492 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11493 eax = 0; /* 0x36144C55: xor eax, eax */ 11494 _cf = 0; 11495 _flag_k = FK_TEST; 11496 ebx = POP32_VAL(esp); /* 0x36144C57: pop ebx */ 11497 MEM32(FS_BASE + (0)) = ecx; /* 0x36144C58: mov dword ptr fs:[0], ecx */ 11498 esp = ebp; /* 0x36144C5F: mov esp, ebp */ 11499 ebp = POP32_VAL(esp); /* 0x36144C61: pop ebp */ 11500 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36144C62: ret */ 11501 RECOMP_REGS_OUT(); 11502 } 11503 11504 void sub_36144C70(void) { 11505 int _fpu_cmp = 0; 11506 uint32_t _cf = 0; 11507 int _df = 1; 11508 uint32_t _flag_k = FK_NONE; 11509 uint32_t _flag_a = 0, _flag_b = 0; 11510 uint32_t _itail_tgt = 0; 11511 RECOMP_REGS_LOCALS 11512 RECOMP_ENTER(0x36144C70u); 11513 11514 L_36144C70: 11515 PUSH32(esp, ebp); /* 0x36144C70: push ebp */ 11516 ebp = esp; /* 0x36144C71: mov ebp, esp */ 11517 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11519 esp = esp - 8; /* 0x36144C73: sub esp, 8 */ 11520 _flag_k = FK_CMP; 11521 PUSH32(esp, ebx); /* 0x36144C76: push ebx */ 11522 PUSH32(esp, esi); /* 0x36144C77: push esi */ 11523 esi = ecx; /* 0x36144C78: mov esi, ecx */ 11524 ecx = MEM32(esi + 0x10); /* 0x36144C7A: mov ecx, dword ptr [esi + 0x10] */ 11525 /* test ecx, ecx */ /* 0x36144C7D: test ecx, ecx */ 11526 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11527 _cf = 0; 11528 _flag_k = FK_TEST; 11529 PUSH32(esp, edi); /* 0x36144C7F: push edi */ 11530 edi = MEM32(esi + 0x4); /* 0x36144C80: mov edi, dword ptr [esi + 4] */ 11531 eax = MEM32(edi); /* 0x36144C83: mov eax, dword ptr [edi] */ 11532 MEM32(ebp + (-0x4)) = eax; /* 0x36144C85: mov dword ptr [ebp - 4], eax */ 11533 if (TEST_Z(_flag_a, _flag_b)) goto L_36144CEF; /* 0x36144C88: je 0x36144cef */ 11534 L_36144C8A: 11535 ecx = eax; /* 0x36144C8A: mov ecx, eax */ 11536 /* cmp eax, ecx */ /* 0x36144C8C: cmp eax, ecx */ 11537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11539 _flag_k = FK_CMP; 11540 if (CMP_NE(_flag_a, _flag_b)) goto L_36144CEF; /* 0x36144C8E: jne 0x36144cef */ 11541 L_36144C90: 11542 /* cmp edi, edi */ /* 0x36144C90: cmp edi, edi */ 11543 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11545 _flag_k = FK_CMP; 11546 if (CMP_NE(_flag_a, _flag_b)) goto L_36144CEF; /* 0x36144C92: jne 0x36144cef */ 11547 L_36144C94: 11548 ebx = MEM32(edi + 0x4); /* 0x36144C94: mov ebx, dword ptr [edi + 4] */ 11549 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36144C97: cmp ebx, dword ptr [esi + 8] */ 11550 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11552 _flag_k = FK_CMP; 11553 edi = ebx; /* 0x36144C9A: mov edi, ebx */ 11554 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144CC7; /* 0x36144C9C: je 0x36144cc7 */ 11555 L_36144C9E: 11556 eax = MEM32(edi + 0x8); /* 0x36144C9E: mov eax, dword ptr [edi + 8] */ 11557 PUSH32(esp, eax); /* 0x36144CA1: push eax */ 11558 ecx = esi; /* 0x36144CA2: mov ecx, esi */ 11559 RECOMP_ICALL(0x361454B0u); /* 0x36144CA4: call 0x361454b0 */ /* not lifted */ 11560 RECOMP_FLAGS_IN(); 11561 edi = MEM32(edi); /* 0x36144CA9: mov edi, dword ptr [edi] */ 11562 PUSH32(esp, 0); /* 0x36144CAB: push 0 */ 11563 ecx = ebx + 0xC; /* 0x36144CAD: lea ecx, [ebx + 0xc] */ 11564 RECOMP_ICALL(0x361473B0u); /* 0x36144CB0: call 0x361473b0 */ /* not lifted */ 11565 RECOMP_FLAGS_IN(); 11566 PUSH32(esp, ebx); /* 0x36144CB5: push ebx */ 11567 RECOMP_ICALL(0x3615FCC4u); /* 0x36144CB6: call 0x3615fcc4 */ /* not lifted */ 11568 RECOMP_FLAGS_IN(); 11569 eax = MEM32(esi + 0x8); /* 0x36144CBB: mov eax, dword ptr [esi + 8] */ 11570 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11572 esp = esp + 4; /* 0x36144CBE: add esp, 4 */ 11573 _flag_k = FK_ADD; 11574 /* cmp edi, eax */ /* 0x36144CC1: cmp edi, eax */ 11575 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11577 _flag_k = FK_CMP; 11578 ebx = edi; /* 0x36144CC3: mov ebx, edi */ 11579 RECOMP_BACKEDGE(); 11580 if (CMP_NE(_flag_a, _flag_b)) goto L_36144C9E; /* 0x36144CC5: jne 0x36144c9e */ 11581 L_36144CC7: 11582 ecx = MEM32(esi + 0x4); /* 0x36144CC7: mov ecx, dword ptr [esi + 4] */ 11583 edx = MEM32(esi + 0x8); /* 0x36144CCA: mov edx, dword ptr [esi + 8] */ 11584 MEM32(ecx + 0x4) = edx; /* 0x36144CCD: mov dword ptr [ecx + 4], edx */ 11585 eax = MEM32(esi + 0x4); /* 0x36144CD0: mov eax, dword ptr [esi + 4] */ 11586 MEM32(esi + 0x10) = 0; /* 0x36144CD3: mov dword ptr [esi + 0x10], 0 */ 11587 MEM32(eax) = eax; /* 0x36144CDA: mov dword ptr [eax], eax */ 11588 eax = MEM32(esi + 0x4); /* 0x36144CDC: mov eax, dword ptr [esi + 4] */ 11589 MEM32(eax + 0x8) = eax; /* 0x36144CDF: mov dword ptr [eax + 8], eax */ 11590 eax = ebp + (-0x8); /* 0x36144CE2: lea eax, [ebp - 8] */ 11591 PUSH32(esp, eax); /* 0x36144CE5: push eax */ 11592 ecx = esi; /* 0x36144CE6: mov ecx, esi */ 11593 RECOMP_ICALL(0x3614FC30u); /* 0x36144CE8: call 0x3614fc30 */ /* not lifted */ 11594 RECOMP_FLAGS_IN(); 11595 goto L_36144D10; /* 0x36144CED: jmp 0x36144d10 */ 11596 L_36144CEF: 11597 /* cmp eax, edi */ /* 0x36144CEF: cmp eax, edi */ 11598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11600 _flag_k = FK_CMP; 11601 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144D10; /* 0x36144CF1: je 0x36144d10 */ 11602 L_36144CF3: 11603 ecx = ebp + (-0x4); /* 0x36144CF3: lea ecx, [ebp - 4] */ 11604 ebx = eax; /* 0x36144CF6: mov ebx, eax */ 11605 RECOMP_ICALL(0x361458D0u); /* 0x36144CF8: call 0x361458d0 */ /* not lifted */ 11606 RECOMP_FLAGS_IN(); 11607 PUSH32(esp, ebx); /* 0x36144CFD: push ebx */ 11608 ecx = ebp + (-0x8); /* 0x36144CFE: lea ecx, [ebp - 8] */ 11609 PUSH32(esp, ecx); /* 0x36144D01: push ecx */ 11610 ecx = esi; /* 0x36144D02: mov ecx, esi */ 11611 RECOMP_ICALL(0x36140C70u); /* 0x36144D04: call 0x36140c70 */ /* not lifted */ 11612 RECOMP_FLAGS_IN(); 11613 eax = MEM32(ebp + (-0x4)); /* 0x36144D09: mov eax, dword ptr [ebp - 4] */ 11614 /* cmp eax, edi */ /* 0x36144D0C: cmp eax, edi */ 11615 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11617 _flag_k = FK_CMP; 11618 RECOMP_BACKEDGE(); 11619 if (CMP_NE(_flag_a, _flag_b)) goto L_36144CF3; /* 0x36144D0E: jne 0x36144cf3 */ 11620 L_36144D10: 11621 edx = MEM32(esi + 0x4); /* 0x36144D10: mov edx, dword ptr [esi + 4] */ 11622 PUSH32(esp, edx); /* 0x36144D13: push edx */ 11623 RECOMP_ICALL(0x3615FCC4u); /* 0x36144D14: call 0x3615fcc4 */ /* not lifted */ 11624 RECOMP_FLAGS_IN(); 11625 eax = MEM32(esi + 0x8); /* 0x36144D19: mov eax, dword ptr [esi + 8] */ 11626 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11627 edi = 0; /* 0x36144D1C: xor edi, edi */ 11628 _cf = 0; 11629 _flag_k = FK_TEST; 11630 PUSH32(esp, eax); /* 0x36144D1E: push eax */ 11631 MEM32(esi + 0x4) = edi; /* 0x36144D1F: mov dword ptr [esi + 4], edi */ 11632 MEM32(esi + 0x10) = edi; /* 0x36144D22: mov dword ptr [esi + 0x10], edi */ 11633 RECOMP_ICALL(0x3615FCC4u); /* 0x36144D25: call 0x3615fcc4 */ /* not lifted */ 11634 RECOMP_FLAGS_IN(); 11635 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11636 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11637 esp = esp + 8; /* 0x36144D2A: add esp, 8 */ 11638 _flag_k = FK_ADD; 11639 MEM32(esi + 0x8) = edi; /* 0x36144D2D: mov dword ptr [esi + 8], edi */ 11640 edi = POP32_VAL(esp); /* 0x36144D30: pop edi */ 11641 esi = POP32_VAL(esp); /* 0x36144D31: pop esi */ 11642 ebx = POP32_VAL(esp); /* 0x36144D32: pop ebx */ 11643 esp = ebp; /* 0x36144D33: mov esp, ebp */ 11644 ebp = POP32_VAL(esp); /* 0x36144D35: pop ebp */ 11645 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36144D36: ret */ 11646 RECOMP_REGS_OUT(); 11647 } 11648 11649 void sub_36144D10(void) { 11650 int _fpu_cmp = 0; 11651 uint32_t _cf = 0; 11652 int _df = 1; 11653 uint32_t _flag_k = FK_NONE; 11654 uint32_t _flag_a = 0, _flag_b = 0; 11655 uint32_t _itail_tgt = 0; 11656 RECOMP_REGS_LOCALS 11657 RECOMP_ENTER(0x36144D10u); 11658 11659 L_36144D10: 11660 edx = MEM32(esi + 0x4); /* 0x36144D10: mov edx, dword ptr [esi + 4] */ 11661 PUSH32(esp, edx); /* 0x36144D13: push edx */ 11662 RECOMP_ICALL(0x3615FCC4u); /* 0x36144D14: call 0x3615fcc4 */ /* not lifted */ 11663 RECOMP_FLAGS_IN(); 11664 eax = MEM32(esi + 0x8); /* 0x36144D19: mov eax, dword ptr [esi + 8] */ 11665 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11666 edi = 0; /* 0x36144D1C: xor edi, edi */ 11667 _cf = 0; 11668 _flag_k = FK_TEST; 11669 PUSH32(esp, eax); /* 0x36144D1E: push eax */ 11670 MEM32(esi + 0x4) = edi; /* 0x36144D1F: mov dword ptr [esi + 4], edi */ 11671 MEM32(esi + 0x10) = edi; /* 0x36144D22: mov dword ptr [esi + 0x10], edi */ 11672 RECOMP_ICALL(0x3615FCC4u); /* 0x36144D25: call 0x3615fcc4 */ /* not lifted */ 11673 RECOMP_FLAGS_IN(); 11674 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11676 esp = esp + 8; /* 0x36144D2A: add esp, 8 */ 11677 _flag_k = FK_ADD; 11678 MEM32(esi + 0x8) = edi; /* 0x36144D2D: mov dword ptr [esi + 8], edi */ 11679 edi = POP32_VAL(esp); /* 0x36144D30: pop edi */ 11680 esi = POP32_VAL(esp); /* 0x36144D31: pop esi */ 11681 ebx = POP32_VAL(esp); /* 0x36144D32: pop ebx */ 11682 esp = ebp; /* 0x36144D33: mov esp, ebp */ 11683 ebp = POP32_VAL(esp); /* 0x36144D35: pop ebp */ 11684 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36144D36: ret */ 11685 RECOMP_REGS_OUT(); 11686 } 11687 11688 void sub_36144D40(void) { 11689 int _fpu_cmp = 0; 11690 uint32_t _cf = 0; 11691 int _df = 1; 11692 uint32_t _flag_k = FK_NONE; 11693 uint32_t _flag_a = 0, _flag_b = 0; 11694 uint32_t _itail_tgt = 0; 11695 RECOMP_REGS_LOCALS 11696 RECOMP_ENTER(0x36144D40u); 11697 RECOMP_EH_ENTER(); 11698 11699 L_36144D40: 11700 PUSH32(esp, ebp); /* 0x36144D40: push ebp */ 11701 ebp = esp; /* 0x36144D41: mov ebp, esp */ 11702 PUSH32(esp, 0xFFFFFFFFu); /* 0x36144D43: push -1 */ 11703 PUSH32(esp, 0x3616CF78u); /* 0x36144D45: push 0x3616cf78 */ 11704 eax = MEM32(FS_BASE + (0)); /* 0x36144D4A: mov eax, dword ptr fs:[0] */ 11705 PUSH32(esp, eax); /* 0x36144D50: push eax */ 11706 MEM32(FS_BASE + (0)) = esp; /* 0x36144D51: mov dword ptr fs:[0], esp */ 11707 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 11708 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11709 esp = esp - 0x30u; /* 0x36144D58: sub esp, 0x30 */ 11710 _flag_k = FK_CMP; 11711 PUSH32(esp, ebx); /* 0x36144D5B: push ebx */ 11712 PUSH32(esp, esi); /* 0x36144D5C: push esi */ 11713 eax = ecx + 0x28; /* 0x36144D5D: lea eax, [ecx + 0x28] */ 11714 PUSH32(esp, edi); /* 0x36144D60: push edi */ 11715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 11716 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11717 ecx = ecx + 0x20u; /* 0x36144D61: add ecx, 0x20 */ 11718 _flag_k = FK_ADD; 11719 MEM32(ebp + (-0x10)) = esp; /* 0x36144D64: mov dword ptr [ebp - 0x10], esp */ 11720 PUSH32(esp, ecx); /* 0x36144D67: push ecx */ 11721 ecx = MEM32(ebp + 0x8); /* 0x36144D68: mov ecx, dword ptr [ebp + 8] */ 11722 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11723 ebx = 0; /* 0x36144D6B: xor ebx, ebx */ 11724 _cf = 0; 11725 _flag_k = FK_TEST; 11726 PUSH32(esp, ecx); /* 0x36144D6D: push ecx */ 11727 MEM32(ebp + (-0x4)) = ebx; /* 0x36144D6E: mov dword ptr [ebp - 4], ebx */ 11728 MEM32(ebp + (-0x18)) = eax; /* 0x36144D71: mov dword ptr [ebp - 0x18], eax */ 11729 RECOMP_ICALL(0x3615B870u); /* 0x36144D74: call 0x3615b870 */ /* not lifted */ 11730 RECOMP_FLAGS_IN(); 11731 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11732 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11733 esp = esp + 8; /* 0x36144D79: add esp, 8 */ 11734 _flag_k = FK_ADD; 11735 edi = eax; /* 0x36144D7C: mov edi, eax */ 11736 edx = ebp + (-0x14); /* 0x36144D7E: lea edx, [ebp - 0x14] */ 11737 PUSH32(esp, edx); /* 0x36144D81: push edx */ 11738 ecx = edi; /* 0x36144D82: mov ecx, edi */ 11739 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36144D84: call dword ptr [0x3616fa8c] */ 11740 RECOMP_FLAGS_IN(); 11741 ecx = MEM32(ebp + (-0x14)); /* 0x36144D8A: mov ecx, dword ptr [ebp - 0x14] */ 11742 eax = 0x03CE4585u; /* 0x36144D8D: mov eax, 0x3ce4585 */ 11743 { uint64_t _r = (uint64_t)eax * (uint32_t)(ecx); /* 0x36144D92: mul ecx */ 11744 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 11745 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11746 esi = ecx; /* 0x36144D94: mov esi, ecx */ 11747 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 11748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11749 esi = esi - edx; /* 0x36144D96: sub esi, edx */ 11750 _flag_k = FK_CMP; 11751 if (1u) _cf = (((esi) >> 0) & 1u); /* 0x36144D98: shr esi, 1 */ 11752 if (1u) { _flag_a = recomp_flags_pack((esi >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11753 esi = esi >> 1u; /* 0x36144D98: shr esi, 1 */ 11754 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 11755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11756 esi = esi + edx; /* 0x36144D9A: add esi, edx */ 11757 _flag_k = FK_ADD; 11758 eax = ecx; /* 0x36144D9C: mov eax, ecx */ 11759 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11760 edx = 0; /* 0x36144D9E: xor edx, edx */ 11761 _cf = 0; 11762 _flag_k = FK_TEST; 11763 ecx = 0x3F1u; /* 0x36144DA0: mov ecx, 0x3f1 */ 11764 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x36144DA5: div ecx */ 11765 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 11766 else { eax = 0; edx = 0; } } 11767 if (9u) _cf = (((esi) >> 8) & 1u); /* 0x36144DA7: shr esi, 9 */ 11768 if (9u) { _flag_a = recomp_flags_pack((esi >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11769 esi = esi >> 9u; /* 0x36144DA7: shr esi, 9 */ 11770 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 11771 esi = esi - 1; /* 0x36144DAA: dec esi */ 11772 _flag_k = FK_DEC; 11773 /* test edx, edx */ /* 0x36144DAB: test edx, edx */ 11774 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 11775 _cf = 0; 11776 _flag_k = FK_TEST; 11777 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144E6A; /* 0x36144DAD: jne 0x36144e6a */ 11778 L_36144DB3: 11779 /* cmp esi, 0x7530u */ /* 0x36144DB3: cmp esi, 0x7530 */ 11780 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x7530u); 11781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11782 _flag_k = FK_CMP; 11783 if (CMP_A(_flag_a, _flag_b)) goto L_36144E6A; /* 0x36144DB9: ja 0x36144e6a */ 11784 L_36144DBF: 11785 /* cmp ebx, esi */ /* 0x36144DBF: cmp ebx, esi */ 11786 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 11787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11788 _flag_k = FK_CMP; 11789 if (CMP_AE(_flag_a, _flag_b)) goto L_36144E74; /* 0x36144DC1: jae 0x36144e74 */ 11790 L_36144DC7: 11791 ecx = ebp + (-0x3C); /* 0x36144DC7: lea ecx, [ebp - 0x3c] */ 11792 RECOMP_ICALL(0x3614A640u); /* 0x36144DCA: call 0x3614a640 */ /* not lifted */ 11793 RECOMP_FLAGS_IN(); 11794 edx = ebp + (-0x3C); /* 0x36144DCF: lea edx, [ebp - 0x3c] */ 11795 PUSH32(esp, edx); /* 0x36144DD2: push edx */ 11796 PUSH32(esp, edi); /* 0x36144DD3: push edi */ 11797 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36144DD4: mov byte ptr [ebp - 4], 1 */ 11798 RECOMP_ICALL(0x3614A6B0u); /* 0x36144DD8: call 0x3614a6b0 */ /* not lifted */ 11799 RECOMP_FLAGS_IN(); 11800 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11801 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11802 esp = esp + 8; /* 0x36144DDD: add esp, 8 */ 11803 _flag_k = FK_ADD; 11804 ecx = edi; /* 0x36144DE0: mov ecx, edi */ 11805 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36144DE2: call dword ptr [0x3616fadc] */ 11806 RECOMP_FLAGS_IN(); 11807 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11808 edx = 0; /* 0x36144DE8: xor edx, edx */ 11809 _cf = 0; 11810 _flag_k = FK_TEST; 11811 /* cmp eax, edx */ /* 0x36144DEA: cmp eax, edx */ 11812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11814 _flag_k = FK_CMP; 11815 if (CMP_NE(_flag_a, _flag_b)) goto L_36144E1E; /* 0x36144DEC: jne 0x36144e1e */ 11816 L_36144DEE: 11817 eax = MEM32(ebp + (-0x34)); /* 0x36144DEE: mov eax, dword ptr [ebp - 0x34] */ 11818 /* cmp eax, edx */ /* 0x36144DF1: cmp eax, edx */ 11819 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11821 _flag_k = FK_CMP; 11822 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E13; /* 0x36144DF3: je 0x36144e13 */ 11823 L_36144DF5: 11824 ecx = eax + (-0x1); /* 0x36144DF5: lea ecx, [eax - 1] */ 11825 SET_LO8(eax, MEM8(ecx)); /* 0x36144DF8: mov al, byte ptr [ecx] */ 11826 /* test LO8(eax), LO8(eax) */ /* 0x36144DFA: test al, al */ 11827 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11828 _cf = 0; 11829 _flag_k = FK_NARROW(FK_TEST, 24); 11830 if (TEST_Z(_flag_a, _flag_b)) goto L_36144E08; /* 0x36144DFC: je 0x36144e08 */ 11831 L_36144DFE: 11832 /* cmp LO8(eax), 0xFFu */ /* 0x36144DFE: cmp al, 0xff */ 11833 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 11834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11835 _flag_k = FK_NARROW(FK_CMP, 24); 11836 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E08; /* 0x36144E00: je 0x36144e08 */ 11837 L_36144E02: 11838 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 11839 SET_LO8(eax, LO8(eax) - 1); /* 0x36144E02: dec al */ 11840 _flag_k = FK_NARROW(FK_DEC, 24); 11841 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36144E04: mov byte ptr [ecx], al */ 11842 goto L_36144E13; /* 0x36144E06: jmp 0x36144e13 */ 11843 L_36144E08: 11844 PUSH32(esp, ecx); /* 0x36144E08: push ecx */ 11845 RECOMP_ICALL(0x3615FCC4u); /* 0x36144E09: call 0x3615fcc4 */ /* not lifted */ 11846 RECOMP_FLAGS_IN(); 11847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11849 esp = esp + 4; /* 0x36144E0E: add esp, 4 */ 11850 _flag_k = FK_ADD; 11851 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11852 edx = 0; /* 0x36144E11: xor edx, edx */ 11853 _cf = 0; 11854 _flag_k = FK_TEST; 11855 L_36144E13: 11856 MEM32(ebp + (-0x34)) = edx; /* 0x36144E13: mov dword ptr [ebp - 0x34], edx */ 11857 MEM32(ebp + (-0x30)) = edx; /* 0x36144E16: mov dword ptr [ebp - 0x30], edx */ 11858 MEM32(ebp + (-0x2C)) = edx; /* 0x36144E19: mov dword ptr [ebp - 0x2c], edx */ 11859 goto L_36144E74; /* 0x36144E1C: jmp 0x36144e74 */ 11860 L_36144E1E: 11861 ecx = MEM32(ebp + (-0x18)); /* 0x36144E1E: mov ecx, dword ptr [ebp - 0x18] */ 11862 eax = MEM32(ecx + 0x8); /* 0x36144E21: mov eax, dword ptr [ecx + 8] */ 11863 edx = ebp + (-0x3C); /* 0x36144E24: lea edx, [ebp - 0x3c] */ 11864 PUSH32(esp, edx); /* 0x36144E27: push edx */ 11865 PUSH32(esp, 1); /* 0x36144E28: push 1 */ 11866 PUSH32(esp, eax); /* 0x36144E2A: push eax */ 11867 RECOMP_ICALL(0x36145150u); /* 0x36144E2B: call 0x36145150 */ /* not lifted */ 11868 RECOMP_FLAGS_IN(); 11869 eax = MEM32(ebp + (-0x34)); /* 0x36144E30: mov eax, dword ptr [ebp - 0x34] */ 11870 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11871 edx = 0; /* 0x36144E33: xor edx, edx */ 11872 _cf = 0; 11873 _flag_k = FK_TEST; 11874 /* cmp eax, edx */ /* 0x36144E35: cmp eax, edx */ 11875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11877 _flag_k = FK_CMP; 11878 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36144E37: mov byte ptr [ebp - 4], 0 */ 11879 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E5B; /* 0x36144E3B: je 0x36144e5b */ 11880 L_36144E3D: 11881 ecx = eax + (-0x1); /* 0x36144E3D: lea ecx, [eax - 1] */ 11882 SET_LO8(eax, MEM8(ecx)); /* 0x36144E40: mov al, byte ptr [ecx] */ 11883 /* test LO8(eax), LO8(eax) */ /* 0x36144E42: test al, al */ 11884 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11885 _cf = 0; 11886 _flag_k = FK_NARROW(FK_TEST, 24); 11887 if (TEST_Z(_flag_a, _flag_b)) goto L_36144E50; /* 0x36144E44: je 0x36144e50 */ 11888 L_36144E46: 11889 /* cmp LO8(eax), 0xFFu */ /* 0x36144E46: cmp al, 0xff */ 11890 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 11891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11892 _flag_k = FK_NARROW(FK_CMP, 24); 11893 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E50; /* 0x36144E48: je 0x36144e50 */ 11894 L_36144E4A: 11895 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 11896 SET_LO8(eax, LO8(eax) - 1); /* 0x36144E4A: dec al */ 11897 _flag_k = FK_NARROW(FK_DEC, 24); 11898 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36144E4C: mov byte ptr [ecx], al */ 11899 goto L_36144E5B; /* 0x36144E4E: jmp 0x36144e5b */ 11900 L_36144E50: 11901 PUSH32(esp, ecx); /* 0x36144E50: push ecx */ 11902 RECOMP_ICALL(0x3615FCC4u); /* 0x36144E51: call 0x3615fcc4 */ /* not lifted */ 11903 RECOMP_FLAGS_IN(); 11904 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11905 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11906 esp = esp + 4; /* 0x36144E56: add esp, 4 */ 11907 _flag_k = FK_ADD; 11908 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11909 edx = 0; /* 0x36144E59: xor edx, edx */ 11910 _cf = 0; 11911 _flag_k = FK_TEST; 11912 L_36144E5B: 11913 MEM32(ebp + (-0x34)) = edx; /* 0x36144E5B: mov dword ptr [ebp - 0x34], edx */ 11914 MEM32(ebp + (-0x30)) = edx; /* 0x36144E5E: mov dword ptr [ebp - 0x30], edx */ 11915 MEM32(ebp + (-0x2C)) = edx; /* 0x36144E61: mov dword ptr [ebp - 0x2c], edx */ 11916 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 11917 ebx = ebx + 1; /* 0x36144E64: inc ebx */ 11918 _flag_k = FK_INC; 11919 RECOMP_BACKEDGE(); 11920 goto L_36144DBF; /* 0x36144E65: jmp 0x36144dbf */ 11921 L_36144E6A: 11922 PUSH32(esp, 4); /* 0x36144E6A: push 4 */ 11923 ecx = edi; /* 0x36144E6C: mov ecx, edi */ 11924 RECOMP_ICALL(MEM32(0x3616FAE4)); /* 0x36144E6E: call dword ptr [0x3616fae4] */ 11925 RECOMP_FLAGS_IN(); 11926 L_36144E74: 11927 ecx = MEM32(ebp + 0x8); /* 0x36144E74: mov ecx, dword ptr [ebp + 8] */ 11928 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36144E77: mov dword ptr [ebp - 4], 0xffffffff */ 11929 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36144E7E: call dword ptr [0x3616fadc] */ 11930 RECOMP_FLAGS_IN(); 11931 /* test eax, eax */ /* 0x36144E84: test eax, eax */ 11932 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11933 _cf = 0; 11934 _flag_k = FK_TEST; 11935 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144EAE; /* 0x36144E86: jne 0x36144eae */ 11936 L_36144E88: 11937 PUSH32(esp, 0x362E6CF8u); /* 0x36144E88: push 0x362e6cf8 */ 11938 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36144E8D: call dword ptr [0x3616f18c] */ 11939 RECOMP_FLAGS_IN(); 11940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11941 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11942 esp = esp + 4; /* 0x36144E93: add esp, 4 */ 11943 _flag_k = FK_ADD; 11944 L_36144E96: 11945 eax = 1; /* 0x36144E96: mov eax, 1 */ 11946 ecx = MEM32(ebp + (-0xC)); /* 0x36144E9B: mov ecx, dword ptr [ebp - 0xc] */ 11947 MEM32(FS_BASE + (0)) = ecx; /* 0x36144E9E: mov dword ptr fs:[0], ecx */ 11948 edi = POP32_VAL(esp); /* 0x36144EA5: pop edi */ 11949 esi = POP32_VAL(esp); /* 0x36144EA6: pop esi */ 11950 ebx = POP32_VAL(esp); /* 0x36144EA7: pop ebx */ 11951 esp = ebp; /* 0x36144EA8: mov esp, ebp */ 11952 ebp = POP32_VAL(esp); /* 0x36144EAA: pop ebp */ 11953 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; } /* 0x36144EAB: ret 4 */ 11954 L_36144EAE: 11955 ecx = MEM32(ebp + (-0xC)); /* 0x36144EAE: mov ecx, dword ptr [ebp - 0xc] */ 11956 edi = POP32_VAL(esp); /* 0x36144EB1: pop edi */ 11957 esi = POP32_VAL(esp); /* 0x36144EB2: pop esi */ 11958 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11959 eax = 0; /* 0x36144EB3: xor eax, eax */ 11960 _cf = 0; 11961 _flag_k = FK_TEST; 11962 MEM32(FS_BASE + (0)) = ecx; /* 0x36144EB5: mov dword ptr fs:[0], ecx */ 11963 ebx = POP32_VAL(esp); /* 0x36144EBC: pop ebx */ 11964 esp = ebp; /* 0x36144EBD: mov esp, ebp */ 11965 ebp = POP32_VAL(esp); /* 0x36144EBF: pop ebp */ 11966 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; } /* 0x36144EC0: ret 4 */ 11967 _ljump: 11968 switch (_itail_tgt) { 11969 case 0x36144E96u: goto L_36144E96; 11970 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; } 11971 } 11972 RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); 11973 } 11974 11975 void sub_36144DBF(void) { 11976 int _fpu_cmp = 0; 11977 uint32_t _cf = 0; 11978 int _df = 1; 11979 uint32_t _flag_k = FK_NONE; 11980 uint32_t _flag_a = 0, _flag_b = 0; 11981 uint32_t _itail_tgt = 0; 11982 RECOMP_REGS_LOCALS 11983 RECOMP_ENTER(0x36144DBFu); 11984 11985 L_36144DBF: 11986 /* cmp ebx, esi */ /* 0x36144DBF: cmp ebx, esi */ 11987 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 11988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11989 _flag_k = FK_CMP; 11990 if (CMP_AE(_flag_a, _flag_b)) goto L_36144E74; /* 0x36144DC1: jae 0x36144e74 */ 11991 L_36144DC7: 11992 ecx = ebp + (-0x3C); /* 0x36144DC7: lea ecx, [ebp - 0x3c] */ 11993 RECOMP_ICALL(0x3614A640u); /* 0x36144DCA: call 0x3614a640 */ /* not lifted */ 11994 RECOMP_FLAGS_IN(); 11995 edx = ebp + (-0x3C); /* 0x36144DCF: lea edx, [ebp - 0x3c] */ 11996 PUSH32(esp, edx); /* 0x36144DD2: push edx */ 11997 PUSH32(esp, edi); /* 0x36144DD3: push edi */ 11998 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36144DD4: mov byte ptr [ebp - 4], 1 */ 11999 RECOMP_ICALL(0x3614A6B0u); /* 0x36144DD8: call 0x3614a6b0 */ /* not lifted */ 12000 RECOMP_FLAGS_IN(); 12001 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12002 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12003 esp = esp + 8; /* 0x36144DDD: add esp, 8 */ 12004 _flag_k = FK_ADD; 12005 ecx = edi; /* 0x36144DE0: mov ecx, edi */ 12006 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36144DE2: call dword ptr [0x3616fadc] */ 12007 RECOMP_FLAGS_IN(); 12008 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12009 edx = 0; /* 0x36144DE8: xor edx, edx */ 12010 _cf = 0; 12011 _flag_k = FK_TEST; 12012 /* cmp eax, edx */ /* 0x36144DEA: cmp eax, edx */ 12013 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12015 _flag_k = FK_CMP; 12016 if (CMP_NE(_flag_a, _flag_b)) goto L_36144E1E; /* 0x36144DEC: jne 0x36144e1e */ 12017 L_36144DEE: 12018 eax = MEM32(ebp + (-0x34)); /* 0x36144DEE: mov eax, dword ptr [ebp - 0x34] */ 12019 /* cmp eax, edx */ /* 0x36144DF1: cmp eax, edx */ 12020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12022 _flag_k = FK_CMP; 12023 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E13; /* 0x36144DF3: je 0x36144e13 */ 12024 L_36144DF5: 12025 ecx = eax + (-0x1); /* 0x36144DF5: lea ecx, [eax - 1] */ 12026 SET_LO8(eax, MEM8(ecx)); /* 0x36144DF8: mov al, byte ptr [ecx] */ 12027 /* test LO8(eax), LO8(eax) */ /* 0x36144DFA: test al, al */ 12028 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12029 _cf = 0; 12030 _flag_k = FK_NARROW(FK_TEST, 24); 12031 if (TEST_Z(_flag_a, _flag_b)) goto L_36144E08; /* 0x36144DFC: je 0x36144e08 */ 12032 L_36144DFE: 12033 /* cmp LO8(eax), 0xFFu */ /* 0x36144DFE: cmp al, 0xff */ 12034 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 12035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12036 _flag_k = FK_NARROW(FK_CMP, 24); 12037 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E08; /* 0x36144E00: je 0x36144e08 */ 12038 L_36144E02: 12039 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12040 SET_LO8(eax, LO8(eax) - 1); /* 0x36144E02: dec al */ 12041 _flag_k = FK_NARROW(FK_DEC, 24); 12042 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36144E04: mov byte ptr [ecx], al */ 12043 goto L_36144E13; /* 0x36144E06: jmp 0x36144e13 */ 12044 L_36144E08: 12045 PUSH32(esp, ecx); /* 0x36144E08: push ecx */ 12046 RECOMP_ICALL(0x3615FCC4u); /* 0x36144E09: call 0x3615fcc4 */ /* not lifted */ 12047 RECOMP_FLAGS_IN(); 12048 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12049 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12050 esp = esp + 4; /* 0x36144E0E: add esp, 4 */ 12051 _flag_k = FK_ADD; 12052 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12053 edx = 0; /* 0x36144E11: xor edx, edx */ 12054 _cf = 0; 12055 _flag_k = FK_TEST; 12056 L_36144E13: 12057 MEM32(ebp + (-0x34)) = edx; /* 0x36144E13: mov dword ptr [ebp - 0x34], edx */ 12058 MEM32(ebp + (-0x30)) = edx; /* 0x36144E16: mov dword ptr [ebp - 0x30], edx */ 12059 MEM32(ebp + (-0x2C)) = edx; /* 0x36144E19: mov dword ptr [ebp - 0x2c], edx */ 12060 goto L_36144E74; /* 0x36144E1C: jmp 0x36144e74 */ 12061 L_36144E1E: 12062 ecx = MEM32(ebp + (-0x18)); /* 0x36144E1E: mov ecx, dword ptr [ebp - 0x18] */ 12063 eax = MEM32(ecx + 0x8); /* 0x36144E21: mov eax, dword ptr [ecx + 8] */ 12064 edx = ebp + (-0x3C); /* 0x36144E24: lea edx, [ebp - 0x3c] */ 12065 PUSH32(esp, edx); /* 0x36144E27: push edx */ 12066 PUSH32(esp, 1); /* 0x36144E28: push 1 */ 12067 PUSH32(esp, eax); /* 0x36144E2A: push eax */ 12068 RECOMP_ICALL(0x36145150u); /* 0x36144E2B: call 0x36145150 */ /* not lifted */ 12069 RECOMP_FLAGS_IN(); 12070 eax = MEM32(ebp + (-0x34)); /* 0x36144E30: mov eax, dword ptr [ebp - 0x34] */ 12071 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12072 edx = 0; /* 0x36144E33: xor edx, edx */ 12073 _cf = 0; 12074 _flag_k = FK_TEST; 12075 /* cmp eax, edx */ /* 0x36144E35: cmp eax, edx */ 12076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12078 _flag_k = FK_CMP; 12079 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36144E37: mov byte ptr [ebp - 4], 0 */ 12080 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E5B; /* 0x36144E3B: je 0x36144e5b */ 12081 L_36144E3D: 12082 ecx = eax + (-0x1); /* 0x36144E3D: lea ecx, [eax - 1] */ 12083 SET_LO8(eax, MEM8(ecx)); /* 0x36144E40: mov al, byte ptr [ecx] */ 12084 /* test LO8(eax), LO8(eax) */ /* 0x36144E42: test al, al */ 12085 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12086 _cf = 0; 12087 _flag_k = FK_NARROW(FK_TEST, 24); 12088 if (TEST_Z(_flag_a, _flag_b)) goto L_36144E50; /* 0x36144E44: je 0x36144e50 */ 12089 L_36144E46: 12090 /* cmp LO8(eax), 0xFFu */ /* 0x36144E46: cmp al, 0xff */ 12091 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 12092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12093 _flag_k = FK_NARROW(FK_CMP, 24); 12094 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E50; /* 0x36144E48: je 0x36144e50 */ 12095 L_36144E4A: 12096 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12097 SET_LO8(eax, LO8(eax) - 1); /* 0x36144E4A: dec al */ 12098 _flag_k = FK_NARROW(FK_DEC, 24); 12099 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36144E4C: mov byte ptr [ecx], al */ 12100 goto L_36144E5B; /* 0x36144E4E: jmp 0x36144e5b */ 12101 L_36144E50: 12102 PUSH32(esp, ecx); /* 0x36144E50: push ecx */ 12103 RECOMP_ICALL(0x3615FCC4u); /* 0x36144E51: call 0x3615fcc4 */ /* not lifted */ 12104 RECOMP_FLAGS_IN(); 12105 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12106 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12107 esp = esp + 4; /* 0x36144E56: add esp, 4 */ 12108 _flag_k = FK_ADD; 12109 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12110 edx = 0; /* 0x36144E59: xor edx, edx */ 12111 _cf = 0; 12112 _flag_k = FK_TEST; 12113 L_36144E5B: 12114 MEM32(ebp + (-0x34)) = edx; /* 0x36144E5B: mov dword ptr [ebp - 0x34], edx */ 12115 MEM32(ebp + (-0x30)) = edx; /* 0x36144E5E: mov dword ptr [ebp - 0x30], edx */ 12116 MEM32(ebp + (-0x2C)) = edx; /* 0x36144E61: mov dword ptr [ebp - 0x2c], edx */ 12117 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 12118 ebx = ebx + 1; /* 0x36144E64: inc ebx */ 12119 _flag_k = FK_INC; 12120 RECOMP_BACKEDGE(); 12121 goto L_36144DBF; /* 0x36144E65: jmp 0x36144dbf */ 12122 L_36144E74: 12123 ecx = MEM32(ebp + 0x8); /* 0x36144E74: mov ecx, dword ptr [ebp + 8] */ 12124 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36144E77: mov dword ptr [ebp - 4], 0xffffffff */ 12125 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36144E7E: call dword ptr [0x3616fadc] */ 12126 RECOMP_FLAGS_IN(); 12127 /* test eax, eax */ /* 0x36144E84: test eax, eax */ 12128 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12129 _cf = 0; 12130 _flag_k = FK_TEST; 12131 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144EAE; /* 0x36144E86: jne 0x36144eae */ 12132 L_36144E88: 12133 PUSH32(esp, 0x362E6CF8u); /* 0x36144E88: push 0x362e6cf8 */ 12134 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36144E8D: call dword ptr [0x3616f18c] */ 12135 RECOMP_FLAGS_IN(); 12136 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12137 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12138 esp = esp + 4; /* 0x36144E93: add esp, 4 */ 12139 _flag_k = FK_ADD; 12140 eax = 1; /* 0x36144E96: mov eax, 1 */ 12141 ecx = MEM32(ebp + (-0xC)); /* 0x36144E9B: mov ecx, dword ptr [ebp - 0xc] */ 12142 MEM32(FS_BASE + (0)) = ecx; /* 0x36144E9E: mov dword ptr fs:[0], ecx */ 12143 edi = POP32_VAL(esp); /* 0x36144EA5: pop edi */ 12144 esi = POP32_VAL(esp); /* 0x36144EA6: pop esi */ 12145 ebx = POP32_VAL(esp); /* 0x36144EA7: pop ebx */ 12146 esp = ebp; /* 0x36144EA8: mov esp, ebp */ 12147 ebp = POP32_VAL(esp); /* 0x36144EAA: pop ebp */ 12148 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144EAB: ret 4 */ 12149 L_36144EAE: 12150 ecx = MEM32(ebp + (-0xC)); /* 0x36144EAE: mov ecx, dword ptr [ebp - 0xc] */ 12151 edi = POP32_VAL(esp); /* 0x36144EB1: pop edi */ 12152 esi = POP32_VAL(esp); /* 0x36144EB2: pop esi */ 12153 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12154 eax = 0; /* 0x36144EB3: xor eax, eax */ 12155 _cf = 0; 12156 _flag_k = FK_TEST; 12157 MEM32(FS_BASE + (0)) = ecx; /* 0x36144EB5: mov dword ptr fs:[0], ecx */ 12158 ebx = POP32_VAL(esp); /* 0x36144EBC: pop ebx */ 12159 esp = ebp; /* 0x36144EBD: mov esp, ebp */ 12160 ebp = POP32_VAL(esp); /* 0x36144EBF: pop ebp */ 12161 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144EC0: ret 4 */ 12162 RECOMP_REGS_OUT(); 12163 } 12164 12165 void sub_36144E13(void) { 12166 int _fpu_cmp = 0; 12167 uint32_t _cf = 0; 12168 int _df = 1; 12169 uint32_t _flag_k = FK_NONE; 12170 uint32_t _flag_a = 0, _flag_b = 0; 12171 uint32_t _itail_tgt = 0; 12172 RECOMP_REGS_LOCALS 12173 RECOMP_ENTER(0x36144E13u); 12174 12175 L_36144E13: 12176 MEM32(ebp + (-0x34)) = edx; /* 0x36144E13: mov dword ptr [ebp - 0x34], edx */ 12177 MEM32(ebp + (-0x30)) = edx; /* 0x36144E16: mov dword ptr [ebp - 0x30], edx */ 12178 MEM32(ebp + (-0x2C)) = edx; /* 0x36144E19: mov dword ptr [ebp - 0x2c], edx */ 12179 goto L_36144E74; /* 0x36144E1C: jmp 0x36144e74 */ 12180 L_36144E74: 12181 ecx = MEM32(ebp + 0x8); /* 0x36144E74: mov ecx, dword ptr [ebp + 8] */ 12182 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36144E77: mov dword ptr [ebp - 4], 0xffffffff */ 12183 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36144E7E: call dword ptr [0x3616fadc] */ 12184 RECOMP_FLAGS_IN(); 12185 /* test eax, eax */ /* 0x36144E84: test eax, eax */ 12186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12187 _cf = 0; 12188 _flag_k = FK_TEST; 12189 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144EAE; /* 0x36144E86: jne 0x36144eae */ 12190 L_36144E88: 12191 PUSH32(esp, 0x362E6CF8u); /* 0x36144E88: push 0x362e6cf8 */ 12192 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36144E8D: call dword ptr [0x3616f18c] */ 12193 RECOMP_FLAGS_IN(); 12194 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12195 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12196 esp = esp + 4; /* 0x36144E93: add esp, 4 */ 12197 _flag_k = FK_ADD; 12198 eax = 1; /* 0x36144E96: mov eax, 1 */ 12199 ecx = MEM32(ebp + (-0xC)); /* 0x36144E9B: mov ecx, dword ptr [ebp - 0xc] */ 12200 MEM32(FS_BASE + (0)) = ecx; /* 0x36144E9E: mov dword ptr fs:[0], ecx */ 12201 edi = POP32_VAL(esp); /* 0x36144EA5: pop edi */ 12202 esi = POP32_VAL(esp); /* 0x36144EA6: pop esi */ 12203 ebx = POP32_VAL(esp); /* 0x36144EA7: pop ebx */ 12204 esp = ebp; /* 0x36144EA8: mov esp, ebp */ 12205 ebp = POP32_VAL(esp); /* 0x36144EAA: pop ebp */ 12206 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144EAB: ret 4 */ 12207 L_36144EAE: 12208 ecx = MEM32(ebp + (-0xC)); /* 0x36144EAE: mov ecx, dword ptr [ebp - 0xc] */ 12209 edi = POP32_VAL(esp); /* 0x36144EB1: pop edi */ 12210 esi = POP32_VAL(esp); /* 0x36144EB2: pop esi */ 12211 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12212 eax = 0; /* 0x36144EB3: xor eax, eax */ 12213 _cf = 0; 12214 _flag_k = FK_TEST; 12215 MEM32(FS_BASE + (0)) = ecx; /* 0x36144EB5: mov dword ptr fs:[0], ecx */ 12216 ebx = POP32_VAL(esp); /* 0x36144EBC: pop ebx */ 12217 esp = ebp; /* 0x36144EBD: mov esp, ebp */ 12218 ebp = POP32_VAL(esp); /* 0x36144EBF: pop ebp */ 12219 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144EC0: ret 4 */ 12220 RECOMP_REGS_OUT(); 12221 } 12222 12223 void sub_36144E5B(void) { 12224 int _fpu_cmp = 0; 12225 uint32_t _cf = 0; 12226 int _df = 1; 12227 uint32_t _flag_k = FK_NONE; 12228 uint32_t _flag_a = 0, _flag_b = 0; 12229 uint32_t _itail_tgt = 0; 12230 RECOMP_REGS_LOCALS 12231 RECOMP_ENTER(0x36144E5Bu); 12232 12233 goto L_36144E5B; 12234 L_36144DBF: 12235 /* cmp ebx, esi */ /* 0x36144DBF: cmp ebx, esi */ 12236 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 12237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12238 _flag_k = FK_CMP; 12239 if (CMP_AE(_flag_a, _flag_b)) goto L_36144E74; /* 0x36144DC1: jae 0x36144e74 */ 12240 L_36144DC7: 12241 ecx = ebp + (-0x3C); /* 0x36144DC7: lea ecx, [ebp - 0x3c] */ 12242 RECOMP_ICALL(0x3614A640u); /* 0x36144DCA: call 0x3614a640 */ /* not lifted */ 12243 RECOMP_FLAGS_IN(); 12244 edx = ebp + (-0x3C); /* 0x36144DCF: lea edx, [ebp - 0x3c] */ 12245 PUSH32(esp, edx); /* 0x36144DD2: push edx */ 12246 PUSH32(esp, edi); /* 0x36144DD3: push edi */ 12247 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36144DD4: mov byte ptr [ebp - 4], 1 */ 12248 RECOMP_ICALL(0x3614A6B0u); /* 0x36144DD8: call 0x3614a6b0 */ /* not lifted */ 12249 RECOMP_FLAGS_IN(); 12250 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12252 esp = esp + 8; /* 0x36144DDD: add esp, 8 */ 12253 _flag_k = FK_ADD; 12254 ecx = edi; /* 0x36144DE0: mov ecx, edi */ 12255 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36144DE2: call dword ptr [0x3616fadc] */ 12256 RECOMP_FLAGS_IN(); 12257 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12258 edx = 0; /* 0x36144DE8: xor edx, edx */ 12259 _cf = 0; 12260 _flag_k = FK_TEST; 12261 /* cmp eax, edx */ /* 0x36144DEA: cmp eax, edx */ 12262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12264 _flag_k = FK_CMP; 12265 if (CMP_NE(_flag_a, _flag_b)) goto L_36144E1E; /* 0x36144DEC: jne 0x36144e1e */ 12266 L_36144DEE: 12267 eax = MEM32(ebp + (-0x34)); /* 0x36144DEE: mov eax, dword ptr [ebp - 0x34] */ 12268 /* cmp eax, edx */ /* 0x36144DF1: cmp eax, edx */ 12269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12271 _flag_k = FK_CMP; 12272 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E13; /* 0x36144DF3: je 0x36144e13 */ 12273 L_36144DF5: 12274 ecx = eax + (-0x1); /* 0x36144DF5: lea ecx, [eax - 1] */ 12275 SET_LO8(eax, MEM8(ecx)); /* 0x36144DF8: mov al, byte ptr [ecx] */ 12276 /* test LO8(eax), LO8(eax) */ /* 0x36144DFA: test al, al */ 12277 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12278 _cf = 0; 12279 _flag_k = FK_NARROW(FK_TEST, 24); 12280 if (TEST_Z(_flag_a, _flag_b)) goto L_36144E08; /* 0x36144DFC: je 0x36144e08 */ 12281 L_36144DFE: 12282 /* cmp LO8(eax), 0xFFu */ /* 0x36144DFE: cmp al, 0xff */ 12283 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 12284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12285 _flag_k = FK_NARROW(FK_CMP, 24); 12286 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E08; /* 0x36144E00: je 0x36144e08 */ 12287 L_36144E02: 12288 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12289 SET_LO8(eax, LO8(eax) - 1); /* 0x36144E02: dec al */ 12290 _flag_k = FK_NARROW(FK_DEC, 24); 12291 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36144E04: mov byte ptr [ecx], al */ 12292 goto L_36144E13; /* 0x36144E06: jmp 0x36144e13 */ 12293 L_36144E08: 12294 PUSH32(esp, ecx); /* 0x36144E08: push ecx */ 12295 RECOMP_ICALL(0x3615FCC4u); /* 0x36144E09: call 0x3615fcc4 */ /* not lifted */ 12296 RECOMP_FLAGS_IN(); 12297 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12298 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12299 esp = esp + 4; /* 0x36144E0E: add esp, 4 */ 12300 _flag_k = FK_ADD; 12301 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12302 edx = 0; /* 0x36144E11: xor edx, edx */ 12303 _cf = 0; 12304 _flag_k = FK_TEST; 12305 L_36144E13: 12306 MEM32(ebp + (-0x34)) = edx; /* 0x36144E13: mov dword ptr [ebp - 0x34], edx */ 12307 MEM32(ebp + (-0x30)) = edx; /* 0x36144E16: mov dword ptr [ebp - 0x30], edx */ 12308 MEM32(ebp + (-0x2C)) = edx; /* 0x36144E19: mov dword ptr [ebp - 0x2c], edx */ 12309 goto L_36144E74; /* 0x36144E1C: jmp 0x36144e74 */ 12310 L_36144E1E: 12311 ecx = MEM32(ebp + (-0x18)); /* 0x36144E1E: mov ecx, dword ptr [ebp - 0x18] */ 12312 eax = MEM32(ecx + 0x8); /* 0x36144E21: mov eax, dword ptr [ecx + 8] */ 12313 edx = ebp + (-0x3C); /* 0x36144E24: lea edx, [ebp - 0x3c] */ 12314 PUSH32(esp, edx); /* 0x36144E27: push edx */ 12315 PUSH32(esp, 1); /* 0x36144E28: push 1 */ 12316 PUSH32(esp, eax); /* 0x36144E2A: push eax */ 12317 RECOMP_ICALL(0x36145150u); /* 0x36144E2B: call 0x36145150 */ /* not lifted */ 12318 RECOMP_FLAGS_IN(); 12319 eax = MEM32(ebp + (-0x34)); /* 0x36144E30: mov eax, dword ptr [ebp - 0x34] */ 12320 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12321 edx = 0; /* 0x36144E33: xor edx, edx */ 12322 _cf = 0; 12323 _flag_k = FK_TEST; 12324 /* cmp eax, edx */ /* 0x36144E35: cmp eax, edx */ 12325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12327 _flag_k = FK_CMP; 12328 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36144E37: mov byte ptr [ebp - 4], 0 */ 12329 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E5B; /* 0x36144E3B: je 0x36144e5b */ 12330 L_36144E3D: 12331 ecx = eax + (-0x1); /* 0x36144E3D: lea ecx, [eax - 1] */ 12332 SET_LO8(eax, MEM8(ecx)); /* 0x36144E40: mov al, byte ptr [ecx] */ 12333 /* test LO8(eax), LO8(eax) */ /* 0x36144E42: test al, al */ 12334 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12335 _cf = 0; 12336 _flag_k = FK_NARROW(FK_TEST, 24); 12337 if (TEST_Z(_flag_a, _flag_b)) goto L_36144E50; /* 0x36144E44: je 0x36144e50 */ 12338 L_36144E46: 12339 /* cmp LO8(eax), 0xFFu */ /* 0x36144E46: cmp al, 0xff */ 12340 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 12341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12342 _flag_k = FK_NARROW(FK_CMP, 24); 12343 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144E50; /* 0x36144E48: je 0x36144e50 */ 12344 L_36144E4A: 12345 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12346 SET_LO8(eax, LO8(eax) - 1); /* 0x36144E4A: dec al */ 12347 _flag_k = FK_NARROW(FK_DEC, 24); 12348 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36144E4C: mov byte ptr [ecx], al */ 12349 goto L_36144E5B; /* 0x36144E4E: jmp 0x36144e5b */ 12350 L_36144E50: 12351 PUSH32(esp, ecx); /* 0x36144E50: push ecx */ 12352 RECOMP_ICALL(0x3615FCC4u); /* 0x36144E51: call 0x3615fcc4 */ /* not lifted */ 12353 RECOMP_FLAGS_IN(); 12354 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12355 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12356 esp = esp + 4; /* 0x36144E56: add esp, 4 */ 12357 _flag_k = FK_ADD; 12358 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12359 edx = 0; /* 0x36144E59: xor edx, edx */ 12360 _cf = 0; 12361 _flag_k = FK_TEST; 12362 L_36144E5B: 12363 MEM32(ebp + (-0x34)) = edx; /* 0x36144E5B: mov dword ptr [ebp - 0x34], edx */ 12364 MEM32(ebp + (-0x30)) = edx; /* 0x36144E5E: mov dword ptr [ebp - 0x30], edx */ 12365 MEM32(ebp + (-0x2C)) = edx; /* 0x36144E61: mov dword ptr [ebp - 0x2c], edx */ 12366 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 12367 ebx = ebx + 1; /* 0x36144E64: inc ebx */ 12368 _flag_k = FK_INC; 12369 RECOMP_BACKEDGE(); 12370 goto L_36144DBF; /* 0x36144E65: jmp 0x36144dbf */ 12371 L_36144E74: 12372 ecx = MEM32(ebp + 0x8); /* 0x36144E74: mov ecx, dword ptr [ebp + 8] */ 12373 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36144E77: mov dword ptr [ebp - 4], 0xffffffff */ 12374 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36144E7E: call dword ptr [0x3616fadc] */ 12375 RECOMP_FLAGS_IN(); 12376 /* test eax, eax */ /* 0x36144E84: test eax, eax */ 12377 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12378 _cf = 0; 12379 _flag_k = FK_TEST; 12380 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144EAE; /* 0x36144E86: jne 0x36144eae */ 12381 L_36144E88: 12382 PUSH32(esp, 0x362E6CF8u); /* 0x36144E88: push 0x362e6cf8 */ 12383 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36144E8D: call dword ptr [0x3616f18c] */ 12384 RECOMP_FLAGS_IN(); 12385 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12386 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12387 esp = esp + 4; /* 0x36144E93: add esp, 4 */ 12388 _flag_k = FK_ADD; 12389 eax = 1; /* 0x36144E96: mov eax, 1 */ 12390 ecx = MEM32(ebp + (-0xC)); /* 0x36144E9B: mov ecx, dword ptr [ebp - 0xc] */ 12391 MEM32(FS_BASE + (0)) = ecx; /* 0x36144E9E: mov dword ptr fs:[0], ecx */ 12392 edi = POP32_VAL(esp); /* 0x36144EA5: pop edi */ 12393 esi = POP32_VAL(esp); /* 0x36144EA6: pop esi */ 12394 ebx = POP32_VAL(esp); /* 0x36144EA7: pop ebx */ 12395 esp = ebp; /* 0x36144EA8: mov esp, ebp */ 12396 ebp = POP32_VAL(esp); /* 0x36144EAA: pop ebp */ 12397 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144EAB: ret 4 */ 12398 L_36144EAE: 12399 ecx = MEM32(ebp + (-0xC)); /* 0x36144EAE: mov ecx, dword ptr [ebp - 0xc] */ 12400 edi = POP32_VAL(esp); /* 0x36144EB1: pop edi */ 12401 esi = POP32_VAL(esp); /* 0x36144EB2: pop esi */ 12402 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12403 eax = 0; /* 0x36144EB3: xor eax, eax */ 12404 _cf = 0; 12405 _flag_k = FK_TEST; 12406 MEM32(FS_BASE + (0)) = ecx; /* 0x36144EB5: mov dword ptr fs:[0], ecx */ 12407 ebx = POP32_VAL(esp); /* 0x36144EBC: pop ebx */ 12408 esp = ebp; /* 0x36144EBD: mov esp, ebp */ 12409 ebp = POP32_VAL(esp); /* 0x36144EBF: pop ebp */ 12410 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144EC0: ret 4 */ 12411 RECOMP_REGS_OUT(); 12412 } 12413 12414 void sub_36144E6A(void) { 12415 int _fpu_cmp = 0; 12416 uint32_t _cf = 0; 12417 int _df = 1; 12418 uint32_t _flag_k = FK_NONE; 12419 uint32_t _flag_a = 0, _flag_b = 0; 12420 uint32_t _itail_tgt = 0; 12421 RECOMP_REGS_LOCALS 12422 RECOMP_ENTER(0x36144E6Au); 12423 12424 L_36144E6A: 12425 PUSH32(esp, 4); /* 0x36144E6A: push 4 */ 12426 ecx = edi; /* 0x36144E6C: mov ecx, edi */ 12427 RECOMP_ICALL(MEM32(0x3616FAE4)); /* 0x36144E6E: call dword ptr [0x3616fae4] */ 12428 RECOMP_FLAGS_IN(); 12429 ecx = MEM32(ebp + 0x8); /* 0x36144E74: mov ecx, dword ptr [ebp + 8] */ 12430 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36144E77: mov dword ptr [ebp - 4], 0xffffffff */ 12431 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36144E7E: call dword ptr [0x3616fadc] */ 12432 RECOMP_FLAGS_IN(); 12433 /* test eax, eax */ /* 0x36144E84: test eax, eax */ 12434 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12435 _cf = 0; 12436 _flag_k = FK_TEST; 12437 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144EAE; /* 0x36144E86: jne 0x36144eae */ 12438 L_36144E88: 12439 PUSH32(esp, 0x362E6CF8u); /* 0x36144E88: push 0x362e6cf8 */ 12440 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36144E8D: call dword ptr [0x3616f18c] */ 12441 RECOMP_FLAGS_IN(); 12442 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12443 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12444 esp = esp + 4; /* 0x36144E93: add esp, 4 */ 12445 _flag_k = FK_ADD; 12446 eax = 1; /* 0x36144E96: mov eax, 1 */ 12447 ecx = MEM32(ebp + (-0xC)); /* 0x36144E9B: mov ecx, dword ptr [ebp - 0xc] */ 12448 MEM32(FS_BASE + (0)) = ecx; /* 0x36144E9E: mov dword ptr fs:[0], ecx */ 12449 edi = POP32_VAL(esp); /* 0x36144EA5: pop edi */ 12450 esi = POP32_VAL(esp); /* 0x36144EA6: pop esi */ 12451 ebx = POP32_VAL(esp); /* 0x36144EA7: pop ebx */ 12452 esp = ebp; /* 0x36144EA8: mov esp, ebp */ 12453 ebp = POP32_VAL(esp); /* 0x36144EAA: pop ebp */ 12454 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144EAB: ret 4 */ 12455 L_36144EAE: 12456 ecx = MEM32(ebp + (-0xC)); /* 0x36144EAE: mov ecx, dword ptr [ebp - 0xc] */ 12457 edi = POP32_VAL(esp); /* 0x36144EB1: pop edi */ 12458 esi = POP32_VAL(esp); /* 0x36144EB2: pop esi */ 12459 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12460 eax = 0; /* 0x36144EB3: xor eax, eax */ 12461 _cf = 0; 12462 _flag_k = FK_TEST; 12463 MEM32(FS_BASE + (0)) = ecx; /* 0x36144EB5: mov dword ptr fs:[0], ecx */ 12464 ebx = POP32_VAL(esp); /* 0x36144EBC: pop ebx */ 12465 esp = ebp; /* 0x36144EBD: mov esp, ebp */ 12466 ebp = POP32_VAL(esp); /* 0x36144EBF: pop ebp */ 12467 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144EC0: ret 4 */ 12468 RECOMP_REGS_OUT(); 12469 } 12470 12471 void sub_36144E74(void) { 12472 int _fpu_cmp = 0; 12473 uint32_t _cf = 0; 12474 int _df = 1; 12475 uint32_t _flag_k = FK_NONE; 12476 uint32_t _flag_a = 0, _flag_b = 0; 12477 uint32_t _itail_tgt = 0; 12478 RECOMP_REGS_LOCALS 12479 RECOMP_ENTER(0x36144E74u); 12480 12481 L_36144E74: 12482 ecx = MEM32(ebp + 0x8); /* 0x36144E74: mov ecx, dword ptr [ebp + 8] */ 12483 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36144E77: mov dword ptr [ebp - 4], 0xffffffff */ 12484 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36144E7E: call dword ptr [0x3616fadc] */ 12485 RECOMP_FLAGS_IN(); 12486 /* test eax, eax */ /* 0x36144E84: test eax, eax */ 12487 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12488 _cf = 0; 12489 _flag_k = FK_TEST; 12490 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144EAE; /* 0x36144E86: jne 0x36144eae */ 12491 L_36144E88: 12492 PUSH32(esp, 0x362E6CF8u); /* 0x36144E88: push 0x362e6cf8 */ 12493 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36144E8D: call dword ptr [0x3616f18c] */ 12494 RECOMP_FLAGS_IN(); 12495 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12497 esp = esp + 4; /* 0x36144E93: add esp, 4 */ 12498 _flag_k = FK_ADD; 12499 eax = 1; /* 0x36144E96: mov eax, 1 */ 12500 ecx = MEM32(ebp + (-0xC)); /* 0x36144E9B: mov ecx, dword ptr [ebp - 0xc] */ 12501 MEM32(FS_BASE + (0)) = ecx; /* 0x36144E9E: mov dword ptr fs:[0], ecx */ 12502 edi = POP32_VAL(esp); /* 0x36144EA5: pop edi */ 12503 esi = POP32_VAL(esp); /* 0x36144EA6: pop esi */ 12504 ebx = POP32_VAL(esp); /* 0x36144EA7: pop ebx */ 12505 esp = ebp; /* 0x36144EA8: mov esp, ebp */ 12506 ebp = POP32_VAL(esp); /* 0x36144EAA: pop ebp */ 12507 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144EAB: ret 4 */ 12508 L_36144EAE: 12509 ecx = MEM32(ebp + (-0xC)); /* 0x36144EAE: mov ecx, dword ptr [ebp - 0xc] */ 12510 edi = POP32_VAL(esp); /* 0x36144EB1: pop edi */ 12511 esi = POP32_VAL(esp); /* 0x36144EB2: pop esi */ 12512 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12513 eax = 0; /* 0x36144EB3: xor eax, eax */ 12514 _cf = 0; 12515 _flag_k = FK_TEST; 12516 MEM32(FS_BASE + (0)) = ecx; /* 0x36144EB5: mov dword ptr fs:[0], ecx */ 12517 ebx = POP32_VAL(esp); /* 0x36144EBC: pop ebx */ 12518 esp = ebp; /* 0x36144EBD: mov esp, ebp */ 12519 ebp = POP32_VAL(esp); /* 0x36144EBF: pop ebp */ 12520 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144EC0: ret 4 */ 12521 RECOMP_REGS_OUT(); 12522 } 12523 12524 void sub_36144E96(void) { 12525 int _fpu_cmp = 0; 12526 uint32_t _cf = 0; 12527 int _df = 1; 12528 uint32_t _flag_k = FK_NONE; 12529 uint32_t _flag_a = 0, _flag_b = 0; 12530 uint32_t _itail_tgt = 0; 12531 RECOMP_REGS_LOCALS 12532 RECOMP_ENTER(0x36144E96u); 12533 12534 L_36144E96: 12535 eax = 1; /* 0x36144E96: mov eax, 1 */ 12536 ecx = MEM32(ebp + (-0xC)); /* 0x36144E9B: mov ecx, dword ptr [ebp - 0xc] */ 12537 MEM32(FS_BASE + (0)) = ecx; /* 0x36144E9E: mov dword ptr fs:[0], ecx */ 12538 edi = POP32_VAL(esp); /* 0x36144EA5: pop edi */ 12539 esi = POP32_VAL(esp); /* 0x36144EA6: pop esi */ 12540 ebx = POP32_VAL(esp); /* 0x36144EA7: pop ebx */ 12541 esp = ebp; /* 0x36144EA8: mov esp, ebp */ 12542 ebp = POP32_VAL(esp); /* 0x36144EAA: pop ebp */ 12543 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144EAB: ret 4 */ 12544 RECOMP_REGS_OUT(); 12545 } 12546 12547 void sub_36144EC3(void) { 12548 int _fpu_cmp = 0; 12549 uint32_t _cf = 0; 12550 int _df = 1; 12551 uint32_t _flag_k = FK_NONE; 12552 uint32_t _flag_a = 0, _flag_b = 0; 12553 uint32_t _itail_tgt = 0; 12554 RECOMP_REGS_LOCALS 12555 RECOMP_ENTER(0x36144EC3u); 12556 12557 L_36144EC3: 12558 PUSH32(esp, 0x362E6CC0u); /* 0x36144EC3: push 0x362e6cc0 */ 12559 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36144EC8: call dword ptr [0x3616f18c] */ 12560 RECOMP_FLAGS_IN(); 12561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12563 esp = esp + 4; /* 0x36144ECE: add esp, 4 */ 12564 _flag_k = FK_ADD; 12565 eax = 0x36144E96u; /* 0x36144ED1: mov eax, 0x36144e96 */ 12566 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36144ED6: ret */ 12567 RECOMP_REGS_OUT(); 12568 } 12569 12570 void sub_36144EE0(void) { 12571 int _fpu_cmp = 0; 12572 uint32_t _cf = 0; 12573 int _df = 1; 12574 uint32_t _flag_k = FK_NONE; 12575 uint32_t _flag_a = 0, _flag_b = 0; 12576 uint32_t _itail_tgt = 0; 12577 RECOMP_REGS_LOCALS 12578 RECOMP_ENTER(0x36144EE0u); 12579 12580 L_36144EE0: 12581 PUSH32(esp, ebp); /* 0x36144EE0: push ebp */ 12582 ebp = esp; /* 0x36144EE1: mov ebp, esp */ 12583 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12585 esp = esp - 8; /* 0x36144EE3: sub esp, 8 */ 12586 _flag_k = FK_CMP; 12587 PUSH32(esp, edi); /* 0x36144EE6: push edi */ 12588 edi = ecx; /* 0x36144EE7: mov edi, ecx */ 12589 ecx = MEM32(edi + 0x20); /* 0x36144EE9: mov ecx, dword ptr [edi + 0x20] */ 12590 /* test ecx, ecx */ /* 0x36144EEC: test ecx, ecx */ 12591 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12592 _cf = 0; 12593 _flag_k = FK_TEST; 12594 eax = edi + 0x20; /* 0x36144EEE: lea eax, [edi + 0x20] */ 12595 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144F16; /* 0x36144EF1: jne 0x36144f16 */ 12596 L_36144EF3: 12597 ecx = MEM32(eax + 0x4); /* 0x36144EF3: mov ecx, dword ptr [eax + 4] */ 12598 /* test ecx, ecx */ /* 0x36144EF6: test ecx, ecx */ 12599 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12600 _cf = 0; 12601 _flag_k = FK_TEST; 12602 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144F16; /* 0x36144EF8: jne 0x36144f16 */ 12603 L_36144EFA: 12604 PUSH32(esp, 0x362E6D58u); /* 0x36144EFA: push 0x362e6d58 */ 12605 ecx = ebp + (-0x8); /* 0x36144EFF: lea ecx, [ebp - 8] */ 12606 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x36144F02: call dword ptr [0x3616fd8c] */ 12607 RECOMP_FLAGS_IN(); 12608 PUSH32(esp, 0x3618CC40u); /* 0x36144F08: push 0x3618cc40 */ 12609 eax = ebp + (-0x8); /* 0x36144F0D: lea eax, [ebp - 8] */ 12610 PUSH32(esp, eax); /* 0x36144F10: push eax */ 12611 RECOMP_ICALL(0x3615FD70u); /* 0x36144F11: call 0x3615fd70 */ /* not lifted */ 12612 RECOMP_FLAGS_IN(); 12613 L_36144F16: 12614 ecx = MEM32(ebp + 0x8); /* 0x36144F16: mov ecx, dword ptr [ebp + 8] */ 12615 PUSH32(esp, ebx); /* 0x36144F19: push ebx */ 12616 PUSH32(esp, esi); /* 0x36144F1A: push esi */ 12617 PUSH32(esp, eax); /* 0x36144F1B: push eax */ 12618 PUSH32(esp, ecx); /* 0x36144F1C: push ecx */ 12619 RECOMP_ICALL(0x3615B840u); /* 0x36144F1D: call 0x3615b840 */ /* not lifted */ 12620 RECOMP_FLAGS_IN(); 12621 esi = MEM32(edi + 0x2C); /* 0x36144F22: mov esi, dword ptr [edi + 0x2c] */ 12622 edi = MEM32(edi + 0x30); /* 0x36144F25: mov edi, dword ptr [edi + 0x30] */ 12623 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12624 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12625 esp = esp + 8; /* 0x36144F28: add esp, 8 */ 12626 _flag_k = FK_ADD; 12627 /* test esi, esi */ /* 0x36144F2B: test esi, esi */ 12628 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 12629 _cf = 0; 12630 _flag_k = FK_TEST; 12631 ebx = eax; /* 0x36144F2D: mov ebx, eax */ 12632 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144F35; /* 0x36144F2F: jne 0x36144f35 */ 12633 L_36144F31: 12634 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12635 edx = 0; /* 0x36144F31: xor edx, edx */ 12636 _cf = 0; 12637 _flag_k = FK_TEST; 12638 goto L_36144F4A; /* 0x36144F33: jmp 0x36144f4a */ 12639 L_36144F35: 12640 ecx = edi; /* 0x36144F35: mov ecx, edi */ 12641 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 12642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12643 ecx = ecx - esi; /* 0x36144F37: sub ecx, esi */ 12644 _flag_k = FK_CMP; 12645 eax = 0x38E38E39u; /* 0x36144F39: mov eax, 0x38e38e39 */ 12646 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36144F3E: imul ecx */ 12647 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 12648 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 12649 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36144F40: sar edx, 3 */ 12650 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12651 edx = (uint32_t)((int32_t)edx >> 3u); 12652 eax = edx; /* 0x36144F43: mov eax, edx */ 12653 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36144F45: shr eax, 0x1f */ 12654 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12655 eax = eax >> 31u; /* 0x36144F45: shr eax, 0x1f */ 12656 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 12657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12658 edx = edx + eax; /* 0x36144F48: add edx, eax */ 12659 _flag_k = FK_ADD; 12660 L_36144F4A: 12661 eax = edx + 0x1; /* 0x36144F4A: lea eax, [edx + 1] */ 12662 ecx = eax; /* 0x36144F4D: mov ecx, eax */ 12663 if (6u) _cf = (((ecx) >> 26) & 1u); /* 0x36144F4F: shl ecx, 6 */ 12664 if (6u) { _flag_a = recomp_flags_pack((ecx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12665 ecx = ecx << 6u; /* 0x36144F4F: shl ecx, 6 */ 12666 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 12667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12668 ecx = ecx - eax; /* 0x36144F52: sub ecx, eax */ 12669 _flag_k = FK_CMP; 12670 if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x36144F54: shl ecx, 4 */ 12671 if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12672 ecx = ecx << 4u; /* 0x36144F54: shl ecx, 4 */ 12673 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 12674 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12675 ecx = ecx + eax; /* 0x36144F57: add ecx, eax */ 12676 _flag_k = FK_ADD; 12677 PUSH32(esp, ecx); /* 0x36144F59: push ecx */ 12678 ecx = ebx; /* 0x36144F5A: mov ecx, ebx */ 12679 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36144F5C: call dword ptr [0x3616faec] */ 12680 RECOMP_FLAGS_IN(); 12681 /* cmp esi, edi */ /* 0x36144F62: cmp esi, edi */ 12682 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 12683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12684 _flag_k = FK_CMP; 12685 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144F83; /* 0x36144F64: je 0x36144f83 */ 12686 L_36144F66: 12687 PUSH32(esp, esi); /* 0x36144F66: push esi */ 12688 PUSH32(esp, ebx); /* 0x36144F67: push ebx */ 12689 RECOMP_ICALL(0x3614A8C0u); /* 0x36144F68: call 0x3614a8c0 */ /* not lifted */ 12690 RECOMP_FLAGS_IN(); 12691 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12692 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12693 esp = esp + 8; /* 0x36144F6D: add esp, 8 */ 12694 _flag_k = FK_ADD; 12695 ecx = ebx; /* 0x36144F70: mov ecx, ebx */ 12696 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36144F72: call dword ptr [0x3616fadc] */ 12697 RECOMP_FLAGS_IN(); 12698 /* test eax, eax */ /* 0x36144F78: test eax, eax */ 12699 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12700 _cf = 0; 12701 _flag_k = FK_TEST; 12702 if (TEST_Z(_flag_a, _flag_b)) goto L_36144F83; /* 0x36144F7A: je 0x36144f83 */ 12703 L_36144F7C: 12704 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 12705 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12706 esi = esi + 0x24u; /* 0x36144F7C: add esi, 0x24 */ 12707 _flag_k = FK_ADD; 12708 /* cmp esi, edi */ /* 0x36144F7F: cmp esi, edi */ 12709 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 12710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12711 _flag_k = FK_CMP; 12712 RECOMP_BACKEDGE(); 12713 if (CMP_NE(_flag_a, _flag_b)) goto L_36144F66; /* 0x36144F81: jne 0x36144f66 */ 12714 L_36144F83: 12715 ecx = MEM32(ebp + 0x8); /* 0x36144F83: mov ecx, dword ptr [ebp + 8] */ 12716 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36144F86: call dword ptr [0x3616fadc] */ 12717 RECOMP_FLAGS_IN(); 12718 /* test eax, eax */ /* 0x36144F8C: test eax, eax */ 12719 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12720 _cf = 0; 12721 _flag_k = FK_TEST; 12722 esi = POP32_VAL(esp); /* 0x36144F8E: pop esi */ 12723 ebx = POP32_VAL(esp); /* 0x36144F8F: pop ebx */ 12724 if (TEST_NZ(_flag_a, _flag_b)) goto L_36144FAE; /* 0x36144F90: jne 0x36144fae */ 12725 L_36144F92: 12726 PUSH32(esp, 0x362E6D34u); /* 0x36144F92: push 0x362e6d34 */ 12727 ecx = ebp + (-0x8); /* 0x36144F97: lea ecx, [ebp - 8] */ 12728 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x36144F9A: call dword ptr [0x3616fd8c] */ 12729 RECOMP_FLAGS_IN(); 12730 PUSH32(esp, 0x3618CC40u); /* 0x36144FA0: push 0x3618cc40 */ 12731 edx = ebp + (-0x8); /* 0x36144FA5: lea edx, [ebp - 8] */ 12732 PUSH32(esp, edx); /* 0x36144FA8: push edx */ 12733 RECOMP_ICALL(0x3615FD70u); /* 0x36144FA9: call 0x3615fd70 */ /* not lifted */ 12734 RECOMP_FLAGS_IN(); 12735 L_36144FAE: 12736 edi = POP32_VAL(esp); /* 0x36144FAE: pop edi */ 12737 esp = ebp; /* 0x36144FAF: mov esp, ebp */ 12738 ebp = POP32_VAL(esp); /* 0x36144FB1: pop ebp */ 12739 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36144FB2: ret 4 */ 12740 RECOMP_REGS_OUT(); 12741 } 12742 12743 void sub_36144FC0(void) { 12744 int _fpu_cmp = 0; 12745 uint32_t _cf = 0; 12746 int _df = 1; 12747 uint32_t _flag_k = FK_NONE; 12748 uint32_t _flag_a = 0, _flag_b = 0; 12749 uint32_t _itail_tgt = 0; 12750 RECOMP_REGS_LOCALS 12751 RECOMP_ENTER(0x36144FC0u); 12752 12753 L_36144FC0: 12754 PUSH32(esp, ebx); /* 0x36144FC0: push ebx */ 12755 PUSH32(esp, esi); /* 0x36144FC1: push esi */ 12756 PUSH32(esp, edi); /* 0x36144FC2: push edi */ 12757 edi = ecx; /* 0x36144FC3: mov edi, ecx */ 12758 ebx = MEM32(edi + 0x8); /* 0x36144FC5: mov ebx, dword ptr [edi + 8] */ 12759 esi = MEM32(edi + 0x4); /* 0x36144FC8: mov esi, dword ptr [edi + 4] */ 12760 /* cmp esi, ebx */ /* 0x36144FCB: cmp esi, ebx */ 12761 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 12762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12763 _flag_k = FK_CMP; 12764 if (CMP_EQ(_flag_a, _flag_b)) goto L_36144FDD; /* 0x36144FCD: je 0x36144fdd */ 12765 L_36144FCF: 12766 ecx = esi; /* 0x36144FCF: mov ecx, esi */ 12767 RECOMP_ICALL(0x36145B40u); /* 0x36144FD1: call 0x36145b40 */ /* not lifted */ 12768 RECOMP_FLAGS_IN(); 12769 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 12770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12771 esi = esi + 0x24u; /* 0x36144FD6: add esi, 0x24 */ 12772 _flag_k = FK_ADD; 12773 /* cmp esi, ebx */ /* 0x36144FD9: cmp esi, ebx */ 12774 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 12775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12776 _flag_k = FK_CMP; 12777 RECOMP_BACKEDGE(); 12778 if (CMP_NE(_flag_a, _flag_b)) goto L_36144FCF; /* 0x36144FDB: jne 0x36144fcf */ 12779 L_36144FDD: 12780 eax = MEM32(edi + 0x4); /* 0x36144FDD: mov eax, dword ptr [edi + 4] */ 12781 PUSH32(esp, eax); /* 0x36144FE0: push eax */ 12782 RECOMP_ICALL(0x3615FCC4u); /* 0x36144FE1: call 0x3615fcc4 */ /* not lifted */ 12783 RECOMP_FLAGS_IN(); 12784 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12785 eax = 0; /* 0x36144FE6: xor eax, eax */ 12786 _cf = 0; 12787 _flag_k = FK_TEST; 12788 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12789 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12790 esp = esp + 4; /* 0x36144FE8: add esp, 4 */ 12791 _flag_k = FK_ADD; 12792 MEM32(edi + 0x4) = eax; /* 0x36144FEB: mov dword ptr [edi + 4], eax */ 12793 MEM32(edi + 0x8) = eax; /* 0x36144FEE: mov dword ptr [edi + 8], eax */ 12794 MEM32(edi + 0xC) = eax; /* 0x36144FF1: mov dword ptr [edi + 0xc], eax */ 12795 edi = POP32_VAL(esp); /* 0x36144FF4: pop edi */ 12796 esi = POP32_VAL(esp); /* 0x36144FF5: pop esi */ 12797 ebx = POP32_VAL(esp); /* 0x36144FF6: pop ebx */ 12798 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36144FF7: ret */ 12799 RECOMP_REGS_OUT(); 12800 } 12801 12802 void sub_36145000(void) { 12803 int _fpu_cmp = 0; 12804 uint32_t _cf = 0; 12805 int _df = 1; 12806 uint32_t _flag_k = FK_NONE; 12807 uint32_t _flag_a = 0, _flag_b = 0; 12808 uint32_t _itail_tgt = 0; 12809 RECOMP_REGS_LOCALS 12810 RECOMP_ENTER(0x36145000u); 12811 12812 L_36145000: 12813 PUSH32(esp, ebp); /* 0x36145000: push ebp */ 12814 ebp = esp; /* 0x36145001: mov ebp, esp */ 12815 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 12816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12817 esp = esp - 0x10u; /* 0x36145003: sub esp, 0x10 */ 12818 _flag_k = FK_CMP; 12819 PUSH32(esp, ebx); /* 0x36145006: push ebx */ 12820 ebx = ecx; /* 0x36145007: mov ebx, ecx */ 12821 edx = MEM32(ebx + 0x4); /* 0x36145009: mov edx, dword ptr [ebx + 4] */ 12822 ecx = MEM32(ebx + 0x8); /* 0x3614500C: mov ecx, dword ptr [ebx + 8] */ 12823 PUSH32(esp, esi); /* 0x3614500F: push esi */ 12824 esi = MEM32(edx + 0x4); /* 0x36145010: mov esi, dword ptr [edx + 4] */ 12825 /* cmp esi, ecx */ /* 0x36145013: cmp esi, ecx */ 12826 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 12827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12828 _flag_k = FK_CMP; 12829 PUSH32(esp, edi); /* 0x36145015: push edi */ 12830 edi = edx; /* 0x36145016: mov edi, edx */ 12831 SET_LO8(eax, 1); /* 0x36145018: mov al, 1 */ 12832 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614503E; /* 0x3614501A: je 0x3614503e */ 12833 L_3614501C: 12834 eax = MEM32(ebp + 0xC); /* 0x3614501C: mov eax, dword ptr [ebp + 0xc] */ 12835 eax = MEM32(eax); /* 0x3614501F: mov eax, dword ptr [eax] */ 12836 MEM32(ebp + (-0x4)) = eax; /* 0x36145021: mov dword ptr [ebp - 4], eax */ 12837 L_36145024: 12838 eax = MEM32(ebp + (-0x4)); /* 0x36145024: mov eax, dword ptr [ebp - 4] */ 12839 /* cmp eax, MEM32(esi + 0xC) */ /* 0x36145027: cmp eax, dword ptr [esi + 0xc] */ 12840 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 12841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12842 _flag_k = FK_CMP; 12843 edi = esi; /* 0x3614502A: mov edi, esi */ 12844 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3614502C: setb al */ 12845 /* test LO8(eax), LO8(eax) */ /* 0x3614502F: test al, al */ 12846 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12847 _cf = 0; 12848 _flag_k = FK_NARROW(FK_TEST, 24); 12849 if (TEST_Z(_flag_a, _flag_b)) goto L_36145037; /* 0x36145031: je 0x36145037 */ 12850 L_36145033: 12851 esi = MEM32(esi); /* 0x36145033: mov esi, dword ptr [esi] */ 12852 goto L_3614503A; /* 0x36145035: jmp 0x3614503a */ 12853 L_36145037: 12854 esi = MEM32(esi + 0x8); /* 0x36145037: mov esi, dword ptr [esi + 8] */ 12855 L_3614503A: 12856 /* cmp esi, ecx */ /* 0x3614503A: cmp esi, ecx */ 12857 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 12858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12859 _flag_k = FK_CMP; 12860 RECOMP_BACKEDGE(); 12861 if (CMP_NE(_flag_a, _flag_b)) goto L_36145024; /* 0x3614503C: jne 0x36145024 */ 12862 L_3614503E: 12863 SET_LO8(ecx, MEM8(ebx + 0xC)); /* 0x3614503E: mov cl, byte ptr [ebx + 0xc] */ 12864 /* test LO8(ecx), LO8(ecx) */ /* 0x36145041: test cl, cl */ 12865 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12866 _cf = 0; 12867 _flag_k = FK_NARROW(FK_TEST, 24); 12868 if (TEST_Z(_flag_a, _flag_b)) goto L_36145063; /* 0x36145043: je 0x36145063 */ 12869 L_36145045: 12870 ecx = MEM32(ebp + 0xC); /* 0x36145045: mov ecx, dword ptr [ebp + 0xc] */ 12871 PUSH32(esp, ecx); /* 0x36145048: push ecx */ 12872 PUSH32(esp, edi); /* 0x36145049: push edi */ 12873 PUSH32(esp, esi); /* 0x3614504A: push esi */ 12874 edx = ebp + (-0x8); /* 0x3614504B: lea edx, [ebp - 8] */ 12875 PUSH32(esp, edx); /* 0x3614504E: push edx */ 12876 ecx = ebx; /* 0x3614504F: mov ecx, ebx */ 12877 RECOMP_ICALL(0x36145630u); /* 0x36145051: call 0x36145630 */ /* not lifted */ 12878 RECOMP_FLAGS_IN(); 12879 eax = MEM32(eax); /* 0x36145056: mov eax, dword ptr [eax] */ 12880 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x36145058: mov byte ptr [ebp - 0xc], 1 */ 12881 ecx = eax; /* 0x3614505C: mov ecx, eax */ 12882 eax = MEM32(ebp + (-0xC)); /* 0x3614505E: mov eax, dword ptr [ebp - 0xc] */ 12883 goto L_361450C5; /* 0x36145061: jmp 0x361450c5 */ 12884 L_36145063: 12885 /* test LO8(eax), LO8(eax) */ /* 0x36145063: test al, al */ 12886 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12887 _cf = 0; 12888 _flag_k = FK_NARROW(FK_TEST, 24); 12889 ecx = edi; /* 0x36145065: mov ecx, edi */ 12890 MEM32(ebp + (-0x4)) = ecx; /* 0x36145067: mov dword ptr [ebp - 4], ecx */ 12891 if (TEST_Z(_flag_a, _flag_b)) goto L_36145099; /* 0x3614506A: je 0x36145099 */ 12892 L_3614506C: 12893 /* cmp edi, MEM32(edx) */ /* 0x3614506C: cmp edi, dword ptr [edx] */ 12894 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx)); 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_3614508E; /* 0x3614506E: jne 0x3614508e */ 12898 L_36145070: 12899 eax = MEM32(ebp + 0xC); /* 0x36145070: mov eax, dword ptr [ebp + 0xc] */ 12900 PUSH32(esp, eax); /* 0x36145073: push eax */ 12901 PUSH32(esp, edi); /* 0x36145074: push edi */ 12902 PUSH32(esp, esi); /* 0x36145075: push esi */ 12903 ecx = ebp + (-0xC); /* 0x36145076: lea ecx, [ebp - 0xc] */ 12904 PUSH32(esp, ecx); /* 0x36145079: push ecx */ 12905 ecx = ebx; /* 0x3614507A: mov ecx, ebx */ 12906 RECOMP_ICALL(0x36145630u); /* 0x3614507C: call 0x36145630 */ /* not lifted */ 12907 RECOMP_FLAGS_IN(); 12908 eax = MEM32(eax); /* 0x36145081: mov eax, dword ptr [eax] */ 12909 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x36145083: mov byte ptr [ebp - 0xc], 1 */ 12910 ecx = eax; /* 0x36145087: mov ecx, eax */ 12911 eax = MEM32(ebp + (-0xC)); /* 0x36145089: mov eax, dword ptr [ebp - 0xc] */ 12912 goto L_361450C5; /* 0x3614508C: jmp 0x361450c5 */ 12913 L_3614508E: 12914 ecx = ebp + (-0x4); /* 0x3614508E: lea ecx, [ebp - 4] */ 12915 RECOMP_ICALL(0x36145870u); /* 0x36145091: call 0x36145870 */ /* not lifted */ 12916 RECOMP_FLAGS_IN(); 12917 ecx = MEM32(ebp + (-0x4)); /* 0x36145096: mov ecx, dword ptr [ebp - 4] */ 12918 L_36145099: 12919 edx = MEM32(ecx + 0xC); /* 0x36145099: mov edx, dword ptr [ecx + 0xc] */ 12920 eax = MEM32(ebp + 0xC); /* 0x3614509C: mov eax, dword ptr [ebp + 0xc] */ 12921 /* cmp edx, MEM32(eax) */ /* 0x3614509F: cmp edx, dword ptr [eax] */ 12922 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 12923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12924 _flag_k = FK_CMP; 12925 if (CMP_AE(_flag_a, _flag_b)) goto L_361450BE; /* 0x361450A1: jae 0x361450be */ 12926 L_361450A3: 12927 PUSH32(esp, eax); /* 0x361450A3: push eax */ 12928 PUSH32(esp, edi); /* 0x361450A4: push edi */ 12929 PUSH32(esp, esi); /* 0x361450A5: push esi */ 12930 eax = ebp + 0xC; /* 0x361450A6: lea eax, [ebp + 0xc] */ 12931 PUSH32(esp, eax); /* 0x361450A9: push eax */ 12932 ecx = ebx; /* 0x361450AA: mov ecx, ebx */ 12933 RECOMP_ICALL(0x36145630u); /* 0x361450AC: call 0x36145630 */ /* not lifted */ 12934 RECOMP_FLAGS_IN(); 12935 eax = MEM32(eax); /* 0x361450B1: mov eax, dword ptr [eax] */ 12936 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x361450B3: mov byte ptr [ebp - 0xc], 1 */ 12937 ecx = eax; /* 0x361450B7: mov ecx, eax */ 12938 eax = MEM32(ebp + (-0xC)); /* 0x361450B9: mov eax, dword ptr [ebp - 0xc] */ 12939 goto L_361450C5; /* 0x361450BC: jmp 0x361450c5 */ 12940 L_361450BE: 12941 MEM8(ebp + (-0xC)) = (uint8_t)(0); /* 0x361450BE: mov byte ptr [ebp - 0xc], 0 */ 12942 eax = MEM32(ebp + (-0xC)); /* 0x361450C2: mov eax, dword ptr [ebp - 0xc] */ 12943 L_361450C5: 12944 MEM8(ebp + (-0xC)) = (uint8_t)(LO8(eax)); /* 0x361450C5: mov byte ptr [ebp - 0xc], al */ 12945 eax = MEM32(ebp + 0x8); /* 0x361450C8: mov eax, dword ptr [ebp + 8] */ 12946 edi = POP32_VAL(esp); /* 0x361450CB: pop edi */ 12947 MEM32(eax) = ecx; /* 0x361450CC: mov dword ptr [eax], ecx */ 12948 ecx = MEM32(ebp + (-0xC)); /* 0x361450CE: mov ecx, dword ptr [ebp - 0xc] */ 12949 esi = POP32_VAL(esp); /* 0x361450D1: pop esi */ 12950 MEM32(eax + 0x4) = ecx; /* 0x361450D2: mov dword ptr [eax + 4], ecx */ 12951 ebx = POP32_VAL(esp); /* 0x361450D5: pop ebx */ 12952 esp = ebp; /* 0x361450D6: mov esp, ebp */ 12953 ebp = POP32_VAL(esp); /* 0x361450D8: pop ebp */ 12954 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361450D9: ret 8 */ 12955 RECOMP_REGS_OUT(); 12956 } 12957 12958 void sub_361450E0(void) { 12959 int _fpu_cmp = 0; 12960 uint32_t _cf = 0; 12961 int _df = 1; 12962 uint32_t _flag_k = FK_NONE; 12963 uint32_t _flag_a = 0, _flag_b = 0; 12964 uint32_t _itail_tgt = 0; 12965 RECOMP_REGS_LOCALS 12966 RECOMP_ENTER(0x361450E0u); 12967 12968 L_361450E0: 12969 PUSH32(esp, ebp); /* 0x361450E0: push ebp */ 12970 ebp = esp; /* 0x361450E1: mov ebp, esp */ 12971 eax = MEM32(ebp + 0x8); /* 0x361450E3: mov eax, dword ptr [ebp + 8] */ 12972 PUSH32(esp, esi); /* 0x361450E6: push esi */ 12973 esi = MEM32(ebp + 0xC); /* 0x361450E7: mov esi, dword ptr [ebp + 0xc] */ 12974 PUSH32(esp, edi); /* 0x361450EA: push edi */ 12975 edi = ecx; /* 0x361450EB: mov edi, ecx */ 12976 ecx = MEM32(eax); /* 0x361450ED: mov ecx, dword ptr [eax] */ 12977 MEM32(edi) = ecx; /* 0x361450EF: mov dword ptr [edi], ecx */ 12978 SET_LO8(edx, MEM8(esi)); /* 0x361450F1: mov dl, byte ptr [esi] */ 12979 MEM8(edi + 0x4) = (uint8_t)(LO8(edx)); /* 0x361450F3: mov byte ptr [edi + 4], dl */ 12980 ecx = MEM32(esi + 0x4); /* 0x361450F6: mov ecx, dword ptr [esi + 4] */ 12981 /* test ecx, ecx */ /* 0x361450F9: test ecx, ecx */ 12982 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12983 _cf = 0; 12984 _flag_k = FK_TEST; 12985 if (TEST_NZ(_flag_a, _flag_b)) goto L_36145101; /* 0x361450FB: jne 0x36145101 */ 12986 L_361450FD: 12987 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12988 eax = 0; /* 0x361450FD: xor eax, eax */ 12989 _cf = 0; 12990 _flag_k = FK_TEST; 12991 goto L_36145109; /* 0x361450FF: jmp 0x36145109 */ 12992 L_36145101: 12993 eax = MEM32(esi + 0x8); /* 0x36145101: mov eax, dword ptr [esi + 8] */ 12994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12996 eax = eax - ecx; /* 0x36145104: sub eax, ecx */ 12997 _flag_k = FK_CMP; 12998 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x36145106: sar eax, 2 */ 12999 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13000 eax = (uint32_t)((int32_t)eax >> 2u); 13001 L_36145109: 13002 /* test eax, eax */ /* 0x36145109: test eax, eax */ 13003 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13004 _cf = 0; 13005 _flag_k = FK_TEST; 13006 if (TEST_NS(_flag_a, _flag_b)) goto L_3614510F; /* 0x3614510B: jge 0x3614510f */ 13007 L_3614510D: 13008 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13009 eax = 0; /* 0x3614510D: xor eax, eax */ 13010 _cf = 0; 13011 _flag_k = FK_TEST; 13012 L_3614510F: 13013 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3614510F: shl eax, 2 */ 13014 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13015 eax = eax << 2u; /* 0x3614510F: shl eax, 2 */ 13016 PUSH32(esp, eax); /* 0x36145112: push eax */ 13017 RECOMP_ICALL(0x3615FD6Au); /* 0x36145113: call 0x3615fd6a */ /* not lifted */ 13018 RECOMP_FLAGS_IN(); 13019 MEM32(edi + 0x8) = eax; /* 0x36145118: mov dword ptr [edi + 8], eax */ 13020 edx = MEM32(esi + 0x8); /* 0x3614511B: mov edx, dword ptr [esi + 8] */ 13021 ecx = eax; /* 0x3614511E: mov ecx, eax */ 13022 eax = MEM32(esi + 0x4); /* 0x36145120: mov eax, dword ptr [esi + 4] */ 13023 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13024 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13025 esp = esp + 4; /* 0x36145123: add esp, 4 */ 13026 _flag_k = FK_ADD; 13027 /* cmp eax, edx */ /* 0x36145126: cmp eax, edx */ 13028 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13030 _flag_k = FK_CMP; 13031 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614513C; /* 0x36145128: je 0x3614513c */ 13032 L_3614512A: 13033 /* test ecx, ecx */ /* 0x3614512A: test ecx, ecx */ 13034 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13035 _cf = 0; 13036 _flag_k = FK_TEST; 13037 if (TEST_Z(_flag_a, _flag_b)) goto L_36145132; /* 0x3614512C: je 0x36145132 */ 13038 L_3614512E: 13039 esi = MEM32(eax); /* 0x3614512E: mov esi, dword ptr [eax] */ 13040 MEM32(ecx) = esi; /* 0x36145130: mov dword ptr [ecx], esi */ 13041 L_36145132: 13042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 13043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13044 eax = eax + 4; /* 0x36145132: add eax, 4 */ 13045 _flag_k = FK_ADD; 13046 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 13047 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13048 ecx = ecx + 4; /* 0x36145135: add ecx, 4 */ 13049 _flag_k = FK_ADD; 13050 /* cmp eax, edx */ /* 0x36145138: cmp eax, edx */ 13051 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13053 _flag_k = FK_CMP; 13054 RECOMP_BACKEDGE(); 13055 if (CMP_NE(_flag_a, _flag_b)) goto L_3614512A; /* 0x3614513A: jne 0x3614512a */ 13056 L_3614513C: 13057 MEM32(edi + 0xC) = ecx; /* 0x3614513C: mov dword ptr [edi + 0xc], ecx */ 13058 MEM32(edi + 0x10) = ecx; /* 0x3614513F: mov dword ptr [edi + 0x10], ecx */ 13059 eax = edi; /* 0x36145142: mov eax, edi */ 13060 edi = POP32_VAL(esp); /* 0x36145144: pop edi */ 13061 esi = POP32_VAL(esp); /* 0x36145145: pop esi */ 13062 ebp = POP32_VAL(esp); /* 0x36145146: pop ebp */ 13063 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36145147: ret 8 */ 13064 RECOMP_REGS_OUT(); 13065 } 13066 13067 void sub_36145150(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(0x36145150u); 13076 13077 L_36145150: 13078 PUSH32(esp, ebp); /* 0x36145150: push ebp */ 13079 ebp = esp; /* 0x36145151: mov ebp, esp */ 13080 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 13081 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13082 esp = esp - 0x10u; /* 0x36145153: sub esp, 0x10 */ 13083 _flag_k = FK_CMP; 13084 edx = MEM32(ecx + 0xC); /* 0x36145156: mov edx, dword ptr [ecx + 0xc] */ 13085 PUSH32(esp, ebx); /* 0x36145159: push ebx */ 13086 PUSH32(esp, esi); /* 0x3614515A: push esi */ 13087 esi = MEM32(ecx + 0x8); /* 0x3614515B: mov esi, dword ptr [ecx + 8] */ 13088 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 13089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13090 edx = edx - esi; /* 0x3614515E: sub edx, esi */ 13091 _flag_k = FK_CMP; 13092 eax = 0x38E38E39u; /* 0x36145160: mov eax, 0x38e38e39 */ 13093 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36145165: imul edx */ 13094 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13095 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13096 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36145167: sar edx, 3 */ 13097 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13098 edx = (uint32_t)((int32_t)edx >> 3u); 13099 eax = edx; /* 0x3614516A: mov eax, edx */ 13100 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3614516C: shr eax, 0x1f */ 13101 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13102 eax = eax >> 31u; /* 0x3614516C: shr eax, 0x1f */ 13103 PUSH32(esp, edi); /* 0x3614516F: push edi */ 13104 edi = MEM32(ebp + 0xC); /* 0x36145170: mov edi, dword ptr [ebp + 0xc] */ 13105 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13106 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13107 edx = edx + eax; /* 0x36145173: add edx, eax */ 13108 _flag_k = FK_ADD; 13109 /* cmp edx, edi */ /* 0x36145175: cmp edx, edi */ 13110 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 13111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13112 _flag_k = FK_CMP; 13113 MEM32(ebp + (-0x4)) = ecx; /* 0x36145177: mov dword ptr [ebp - 4], ecx */ 13114 if (CMP_AE(_flag_a, _flag_b)) goto L_361452EF; /* 0x3614517A: jae 0x361452ef */ 13115 L_36145180: 13116 ecx = MEM32(ecx + 0x4); /* 0x36145180: mov ecx, dword ptr [ecx + 4] */ 13117 /* test ecx, ecx */ /* 0x36145183: test ecx, ecx */ 13118 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13119 _cf = 0; 13120 _flag_k = FK_TEST; 13121 if (TEST_Z(_flag_a, _flag_b)) goto L_361451A2; /* 0x36145185: je 0x361451a2 */ 13122 L_36145187: 13123 edx = esi; /* 0x36145187: mov edx, esi */ 13124 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13126 edx = edx - ecx; /* 0x36145189: sub edx, ecx */ 13127 _flag_k = FK_CMP; 13128 eax = 0x38E38E39u; /* 0x3614518B: mov eax, 0x38e38e39 */ 13129 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36145190: imul edx */ 13130 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13131 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13132 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36145192: sar edx, 3 */ 13133 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13134 edx = (uint32_t)((int32_t)edx >> 3u); 13135 eax = edx; /* 0x36145195: mov eax, edx */ 13136 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36145197: shr eax, 0x1f */ 13137 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13138 eax = eax >> 31u; /* 0x36145197: shr eax, 0x1f */ 13139 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13141 edx = edx + eax; /* 0x3614519A: add edx, eax */ 13142 _flag_k = FK_ADD; 13143 /* cmp edi, edx */ /* 0x3614519C: cmp edi, edx */ 13144 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 13145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13146 _flag_k = FK_CMP; 13147 ebx = edx; /* 0x3614519E: mov ebx, edx */ 13148 if (CMP_B(_flag_a, _flag_b)) goto L_361451A4; /* 0x361451A0: jb 0x361451a4 */ 13149 L_361451A2: 13150 ebx = edi; /* 0x361451A2: mov ebx, edi */ 13151 L_361451A4: 13152 /* test ecx, ecx */ /* 0x361451A4: test ecx, ecx */ 13153 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13154 _cf = 0; 13155 _flag_k = FK_TEST; 13156 if (TEST_NZ(_flag_a, _flag_b)) goto L_361451AC; /* 0x361451A6: jne 0x361451ac */ 13157 L_361451A8: 13158 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13159 edx = 0; /* 0x361451A8: xor edx, edx */ 13160 _cf = 0; 13161 _flag_k = FK_TEST; 13162 goto L_361451BF; /* 0x361451AA: jmp 0x361451bf */ 13163 L_361451AC: 13164 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 13165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13166 esi = esi - ecx; /* 0x361451AC: sub esi, ecx */ 13167 _flag_k = FK_CMP; 13168 eax = 0x38E38E39u; /* 0x361451AE: mov eax, 0x38e38e39 */ 13169 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(esi); /* 0x361451B3: imul esi */ 13170 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13171 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13172 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361451B5: sar edx, 3 */ 13173 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13174 edx = (uint32_t)((int32_t)edx >> 3u); 13175 ecx = edx; /* 0x361451B8: mov ecx, edx */ 13176 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x361451BA: shr ecx, 0x1f */ 13177 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13178 ecx = ecx >> 31u; /* 0x361451BA: shr ecx, 0x1f */ 13179 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13181 edx = edx + ecx; /* 0x361451BD: add edx, ecx */ 13182 _flag_k = FK_ADD; 13183 L_361451BF: 13184 eax = edx + ebx; /* 0x361451BF: lea eax, [edx + ebx] */ 13185 /* test eax, eax */ /* 0x361451C2: test eax, eax */ 13186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13187 _cf = 0; 13188 _flag_k = FK_TEST; 13189 MEM32(ebp + (-0xC)) = eax; /* 0x361451C4: mov dword ptr [ebp - 0xc], eax */ 13190 if (TEST_NS(_flag_a, _flag_b)) goto L_361451CB; /* 0x361451C7: jge 0x361451cb */ 13191 L_361451C9: 13192 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13193 eax = 0; /* 0x361451C9: xor eax, eax */ 13194 _cf = 0; 13195 _flag_k = FK_TEST; 13196 L_361451CB: 13197 edx = eax + eax * 8; /* 0x361451CB: lea edx, [eax + eax*8] */ 13198 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x361451CE: shl edx, 2 */ 13199 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13200 edx = edx << 2u; /* 0x361451CE: shl edx, 2 */ 13201 PUSH32(esp, edx); /* 0x361451D1: push edx */ 13202 RECOMP_ICALL(0x3615FD6Au); /* 0x361451D2: call 0x3615fd6a */ /* not lifted */ 13203 RECOMP_FLAGS_IN(); 13204 ebx = MEM32(ebp + (-0x4)); /* 0x361451D7: mov ebx, dword ptr [ebp - 4] */ 13205 esi = MEM32(ebx + 0x4); /* 0x361451DA: mov esi, dword ptr [ebx + 4] */ 13206 MEM32(ebp + (-0x10)) = eax; /* 0x361451DD: mov dword ptr [ebp - 0x10], eax */ 13207 MEM32(ebp + 0xC) = eax; /* 0x361451E0: mov dword ptr [ebp + 0xc], eax */ 13208 eax = MEM32(ebp + 0x8); /* 0x361451E3: mov eax, dword ptr [ebp + 8] */ 13209 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13210 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13211 esp = esp + 4; /* 0x361451E6: add esp, 4 */ 13212 _flag_k = FK_ADD; 13213 /* cmp esi, eax */ /* 0x361451E9: cmp esi, eax */ 13214 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13216 _flag_k = FK_CMP; 13217 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614520D; /* 0x361451EB: je 0x3614520d */ 13218 L_361451ED: 13219 eax = MEM32(ebp + 0xC); /* 0x361451ED: mov eax, dword ptr [ebp + 0xc] */ 13220 PUSH32(esp, esi); /* 0x361451F0: push esi */ 13221 PUSH32(esp, eax); /* 0x361451F1: push eax */ 13222 RECOMP_ICALL(0x36145920u); /* 0x361451F2: call 0x36145920 */ /* not lifted */ 13223 RECOMP_FLAGS_IN(); 13224 edx = MEM32(ebp + 0xC); /* 0x361451F7: mov edx, dword ptr [ebp + 0xc] */ 13225 eax = MEM32(ebp + 0x8); /* 0x361451FA: mov eax, dword ptr [ebp + 8] */ 13226 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x24u); 13227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13228 edx = edx + 0x24u; /* 0x361451FD: add edx, 0x24 */ 13229 _flag_k = FK_ADD; 13230 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 13231 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13232 esi = esi + 0x24u; /* 0x36145200: add esi, 0x24 */ 13233 _flag_k = FK_ADD; 13234 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13235 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13236 esp = esp + 8; /* 0x36145203: add esp, 8 */ 13237 _flag_k = FK_ADD; 13238 /* cmp esi, eax */ /* 0x36145206: cmp esi, eax */ 13239 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13241 _flag_k = FK_CMP; 13242 MEM32(ebp + 0xC) = edx; /* 0x36145208: mov dword ptr [ebp + 0xc], edx */ 13243 RECOMP_BACKEDGE(); 13244 if (CMP_NE(_flag_a, _flag_b)) goto L_361451ED; /* 0x3614520B: jne 0x361451ed */ 13245 L_3614520D: 13246 /* test edi, edi */ /* 0x3614520D: test edi, edi */ 13247 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 13248 _cf = 0; 13249 _flag_k = FK_TEST; 13250 esi = MEM32(ebp + 0xC); /* 0x3614520F: mov esi, dword ptr [ebp + 0xc] */ 13251 if (TEST_Z(_flag_a, _flag_b)) goto L_36145230; /* 0x36145212: jbe 0x36145230 */ 13252 L_36145214: 13253 MEM32(ebp + (-0x8)) = edi; /* 0x36145214: mov dword ptr [ebp - 8], edi */ 13254 L_36145217: 13255 ecx = MEM32(ebp + 0x10); /* 0x36145217: mov ecx, dword ptr [ebp + 0x10] */ 13256 PUSH32(esp, ecx); /* 0x3614521A: push ecx */ 13257 PUSH32(esp, esi); /* 0x3614521B: push esi */ 13258 RECOMP_ICALL(0x36145920u); /* 0x3614521C: call 0x36145920 */ /* not lifted */ 13259 RECOMP_FLAGS_IN(); 13260 eax = MEM32(ebp + (-0x8)); /* 0x36145221: mov eax, dword ptr [ebp - 8] */ 13261 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13262 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13263 esp = esp + 8; /* 0x36145224: add esp, 8 */ 13264 _flag_k = FK_ADD; 13265 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 13266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13267 esi = esi + 0x24u; /* 0x36145227: add esi, 0x24 */ 13268 _flag_k = FK_ADD; 13269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13270 eax = eax - 1; /* 0x3614522A: dec eax */ 13271 _flag_k = FK_DEC; 13272 MEM32(ebp + (-0x8)) = eax; /* 0x3614522B: mov dword ptr [ebp - 8], eax */ 13273 RECOMP_BACKEDGE(); 13274 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36145217; /* 0x3614522E: jne 0x36145217 */ 13275 L_36145230: 13276 eax = MEM32(ebp + 0xC); /* 0x36145230: mov eax, dword ptr [ebp + 0xc] */ 13277 esi = MEM32(ebp + 0x8); /* 0x36145233: mov esi, dword ptr [ebp + 8] */ 13278 edx = edi + edi * 8; /* 0x36145236: lea edx, [edi + edi*8] */ 13279 ecx = eax + edx * 4; /* 0x36145239: lea ecx, [eax + edx*4] */ 13280 eax = MEM32(ebx + 0x8); /* 0x3614523C: mov eax, dword ptr [ebx + 8] */ 13281 /* cmp esi, eax */ /* 0x3614523F: cmp esi, eax */ 13282 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13284 _flag_k = FK_CMP; 13285 MEM32(ebp + 0x10) = eax; /* 0x36145241: mov dword ptr [ebp + 0x10], eax */ 13286 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145269; /* 0x36145244: je 0x36145269 */ 13287 L_36145246: 13288 MEM32(ebp + 0x8) = ecx; /* 0x36145246: mov dword ptr [ebp + 8], ecx */ 13289 L_36145249: 13290 ecx = MEM32(ebp + 0x8); /* 0x36145249: mov ecx, dword ptr [ebp + 8] */ 13291 PUSH32(esp, esi); /* 0x3614524C: push esi */ 13292 PUSH32(esp, ecx); /* 0x3614524D: push ecx */ 13293 RECOMP_ICALL(0x36145920u); /* 0x3614524E: call 0x36145920 */ /* not lifted */ 13294 RECOMP_FLAGS_IN(); 13295 ecx = MEM32(ebp + 0x8); /* 0x36145253: mov ecx, dword ptr [ebp + 8] */ 13296 eax = MEM32(ebp + 0x10); /* 0x36145256: mov eax, dword ptr [ebp + 0x10] */ 13297 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 13298 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13299 esi = esi + 0x24u; /* 0x36145259: add esi, 0x24 */ 13300 _flag_k = FK_ADD; 13301 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u); 13302 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13303 ecx = ecx + 0x24u; /* 0x3614525C: add ecx, 0x24 */ 13304 _flag_k = FK_ADD; 13305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13306 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13307 esp = esp + 8; /* 0x3614525F: add esp, 8 */ 13308 _flag_k = FK_ADD; 13309 /* cmp esi, eax */ /* 0x36145262: cmp esi, eax */ 13310 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13312 _flag_k = FK_CMP; 13313 MEM32(ebp + 0x8) = ecx; /* 0x36145264: mov dword ptr [ebp + 8], ecx */ 13314 RECOMP_BACKEDGE(); 13315 if (CMP_NE(_flag_a, _flag_b)) goto L_36145249; /* 0x36145267: jne 0x36145249 */ 13316 L_36145269: 13317 eax = MEM32(ebx + 0x8); /* 0x36145269: mov eax, dword ptr [ebx + 8] */ 13318 esi = MEM32(ebx + 0x4); /* 0x3614526C: mov esi, dword ptr [ebx + 4] */ 13319 /* cmp esi, eax */ /* 0x3614526F: cmp esi, eax */ 13320 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13322 _flag_k = FK_CMP; 13323 MEM32(ebp + 0x8) = eax; /* 0x36145271: mov dword ptr [ebp + 8], eax */ 13324 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145287; /* 0x36145274: je 0x36145287 */ 13325 L_36145276: 13326 ecx = esi; /* 0x36145276: mov ecx, esi */ 13327 RECOMP_ICALL(0x36145B40u); /* 0x36145278: call 0x36145b40 */ /* not lifted */ 13328 RECOMP_FLAGS_IN(); 13329 eax = MEM32(ebp + 0x8); /* 0x3614527D: mov eax, dword ptr [ebp + 8] */ 13330 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 13331 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13332 esi = esi + 0x24u; /* 0x36145280: add esi, 0x24 */ 13333 _flag_k = FK_ADD; 13334 /* cmp esi, eax */ /* 0x36145283: cmp esi, eax */ 13335 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13337 _flag_k = FK_CMP; 13338 RECOMP_BACKEDGE(); 13339 if (CMP_NE(_flag_a, _flag_b)) goto L_36145276; /* 0x36145285: jne 0x36145276 */ 13340 L_36145287: 13341 edx = MEM32(ebx + 0x4); /* 0x36145287: mov edx, dword ptr [ebx + 4] */ 13342 PUSH32(esp, edx); /* 0x3614528A: push edx */ 13343 RECOMP_ICALL(0x3615FCC4u); /* 0x3614528B: call 0x3615fcc4 */ /* not lifted */ 13344 RECOMP_FLAGS_IN(); 13345 eax = MEM32(ebp + (-0xC)); /* 0x36145290: mov eax, dword ptr [ebp - 0xc] */ 13346 esi = MEM32(ebp + (-0x10)); /* 0x36145293: mov esi, dword ptr [ebp - 0x10] */ 13347 eax = eax + eax * 8; /* 0x36145296: lea eax, [eax + eax*8] */ 13348 ecx = esi + eax * 4; /* 0x36145299: lea ecx, [esi + eax*4] */ 13349 eax = MEM32(ebx + 0x4); /* 0x3614529C: mov eax, dword ptr [ebx + 4] */ 13350 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13352 esp = esp + 4; /* 0x3614529F: add esp, 4 */ 13353 _flag_k = FK_ADD; 13354 /* test eax, eax */ /* 0x361452A2: test eax, eax */ 13355 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13356 _cf = 0; 13357 _flag_k = FK_TEST; 13358 MEM32(ebx + 0xC) = ecx; /* 0x361452A4: mov dword ptr [ebx + 0xc], ecx */ 13359 if (TEST_NZ(_flag_a, _flag_b)) goto L_361452C2; /* 0x361452A7: jne 0x361452c2 */ 13360 L_361452A9: 13361 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13362 edx = 0; /* 0x361452A9: xor edx, edx */ 13363 _cf = 0; 13364 _flag_k = FK_TEST; 13365 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 13366 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13367 edi = edi + edx; /* 0x361452AB: add edi, edx */ 13368 _flag_k = FK_ADD; 13369 ecx = edi + edi * 8; /* 0x361452AD: lea ecx, [edi + edi*8] */ 13370 edi = POP32_VAL(esp); /* 0x361452B0: pop edi */ 13371 edx = esi + ecx * 4; /* 0x361452B1: lea edx, [esi + ecx*4] */ 13372 MEM32(ebx + 0x4) = esi; /* 0x361452B4: mov dword ptr [ebx + 4], esi */ 13373 esi = POP32_VAL(esp); /* 0x361452B7: pop esi */ 13374 MEM32(ebx + 0x8) = edx; /* 0x361452B8: mov dword ptr [ebx + 8], edx */ 13375 ebx = POP32_VAL(esp); /* 0x361452BB: pop ebx */ 13376 esp = ebp; /* 0x361452BC: mov esp, ebp */ 13377 ebp = POP32_VAL(esp); /* 0x361452BE: pop ebp */ 13378 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361452BF: ret 0xc */ 13379 L_361452C2: 13380 ecx = MEM32(ebx + 0x8); /* 0x361452C2: mov ecx, dword ptr [ebx + 8] */ 13381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 13382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13383 ecx = ecx - eax; /* 0x361452C5: sub ecx, eax */ 13384 _flag_k = FK_CMP; 13385 eax = 0x38E38E39u; /* 0x361452C7: mov eax, 0x38e38e39 */ 13386 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x361452CC: imul ecx */ 13387 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13388 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13389 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361452CE: sar edx, 3 */ 13390 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13391 edx = (uint32_t)((int32_t)edx >> 3u); 13392 eax = edx; /* 0x361452D1: mov eax, edx */ 13393 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361452D3: shr eax, 0x1f */ 13394 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13395 eax = eax >> 31u; /* 0x361452D3: shr eax, 0x1f */ 13396 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13397 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13398 edx = edx + eax; /* 0x361452D6: add edx, eax */ 13399 _flag_k = FK_ADD; 13400 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 13401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13402 edi = edi + edx; /* 0x361452D8: add edi, edx */ 13403 _flag_k = FK_ADD; 13404 ecx = edi + edi * 8; /* 0x361452DA: lea ecx, [edi + edi*8] */ 13405 edi = POP32_VAL(esp); /* 0x361452DD: pop edi */ 13406 edx = esi + ecx * 4; /* 0x361452DE: lea edx, [esi + ecx*4] */ 13407 MEM32(ebx + 0x4) = esi; /* 0x361452E1: mov dword ptr [ebx + 4], esi */ 13408 esi = POP32_VAL(esp); /* 0x361452E4: pop esi */ 13409 MEM32(ebx + 0x8) = edx; /* 0x361452E5: mov dword ptr [ebx + 8], edx */ 13410 ebx = POP32_VAL(esp); /* 0x361452E8: pop ebx */ 13411 esp = ebp; /* 0x361452E9: mov esp, ebp */ 13412 ebp = POP32_VAL(esp); /* 0x361452EB: pop ebp */ 13413 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361452EC: ret 0xc */ 13414 L_361452EF: 13415 ebx = MEM32(ebp + 0x8); /* 0x361452EF: mov ebx, dword ptr [ebp + 8] */ 13416 edx = esi; /* 0x361452F2: mov edx, esi */ 13417 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 13418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13419 edx = edx - ebx; /* 0x361452F4: sub edx, ebx */ 13420 _flag_k = FK_CMP; 13421 eax = 0x38E38E39u; /* 0x361452F6: mov eax, 0x38e38e39 */ 13422 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361452FB: imul edx */ 13423 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13424 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13425 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361452FD: sar edx, 3 */ 13426 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13427 edx = (uint32_t)((int32_t)edx >> 3u); 13428 eax = edx; /* 0x36145300: mov eax, edx */ 13429 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36145302: shr eax, 0x1f */ 13430 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13431 eax = eax >> 31u; /* 0x36145302: shr eax, 0x1f */ 13432 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13433 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13434 edx = edx + eax; /* 0x36145305: add edx, eax */ 13435 _flag_k = FK_ADD; 13436 /* cmp edx, edi */ /* 0x36145307: cmp edx, edi */ 13437 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 13438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13439 _flag_k = FK_CMP; 13440 if (CMP_AE(_flag_a, _flag_b)) goto L_361453E1; /* 0x36145309: jae 0x361453e1 */ 13441 L_3614530F: 13442 eax = edi + edi * 8; /* 0x3614530F: lea eax, [edi + edi*8] */ 13443 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x36145312: shl eax, 2 */ 13444 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13445 eax = eax << 2u; /* 0x36145312: shl eax, 2 */ 13446 MEM32(ebp + 0x8) = eax; /* 0x36145315: mov dword ptr [ebp + 8], eax */ 13447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 13448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13449 eax = eax + ebx; /* 0x36145318: add eax, ebx */ 13450 _flag_k = FK_ADD; 13451 /* cmp ebx, esi */ /* 0x3614531A: cmp ebx, esi */ 13452 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 13453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13454 _flag_k = FK_CMP; 13455 MEM32(ebp + 0xC) = ebx; /* 0x3614531C: mov dword ptr [ebp + 0xc], ebx */ 13456 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614534D; /* 0x3614531F: je 0x3614534d */ 13457 L_36145321: 13458 MEM32(ebp + (-0x8)) = eax; /* 0x36145321: mov dword ptr [ebp - 8], eax */ 13459 L_36145324: 13460 ecx = MEM32(ebp + 0xC); /* 0x36145324: mov ecx, dword ptr [ebp + 0xc] */ 13461 edx = MEM32(ebp + (-0x8)); /* 0x36145327: mov edx, dword ptr [ebp - 8] */ 13462 PUSH32(esp, ecx); /* 0x3614532A: push ecx */ 13463 PUSH32(esp, edx); /* 0x3614532B: push edx */ 13464 RECOMP_ICALL(0x36145920u); /* 0x3614532C: call 0x36145920 */ /* not lifted */ 13465 RECOMP_FLAGS_IN(); 13466 eax = MEM32(ebp + 0xC); /* 0x36145331: mov eax, dword ptr [ebp + 0xc] */ 13467 edx = MEM32(ebp + (-0x8)); /* 0x36145334: mov edx, dword ptr [ebp - 8] */ 13468 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u); 13469 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13470 eax = eax + 0x24u; /* 0x36145337: add eax, 0x24 */ 13471 _flag_k = FK_ADD; 13472 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x24u); 13473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13474 edx = edx + 0x24u; /* 0x3614533A: add edx, 0x24 */ 13475 _flag_k = FK_ADD; 13476 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13478 esp = esp + 8; /* 0x3614533D: add esp, 8 */ 13479 _flag_k = FK_ADD; 13480 /* cmp eax, esi */ /* 0x36145340: cmp eax, esi */ 13481 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 13482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13483 _flag_k = FK_CMP; 13484 MEM32(ebp + 0xC) = eax; /* 0x36145342: mov dword ptr [ebp + 0xc], eax */ 13485 MEM32(ebp + (-0x8)) = edx; /* 0x36145345: mov dword ptr [ebp - 8], edx */ 13486 RECOMP_BACKEDGE(); 13487 if (CMP_NE(_flag_a, _flag_b)) goto L_36145324; /* 0x36145348: jne 0x36145324 */ 13488 L_3614534A: 13489 ecx = MEM32(ebp + (-0x4)); /* 0x3614534A: mov ecx, dword ptr [ebp - 4] */ 13490 L_3614534D: 13491 esi = MEM32(ecx + 0x8); /* 0x3614534D: mov esi, dword ptr [ecx + 8] */ 13492 edx = esi; /* 0x36145350: mov edx, esi */ 13493 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 13494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13495 edx = edx - ebx; /* 0x36145352: sub edx, ebx */ 13496 _flag_k = FK_CMP; 13497 eax = 0x38E38E39u; /* 0x36145354: mov eax, 0x38e38e39 */ 13498 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36145359: imul edx */ 13499 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13500 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13501 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614535B: sar edx, 3 */ 13502 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13503 edx = (uint32_t)((int32_t)edx >> 3u); 13504 eax = edx; /* 0x3614535E: mov eax, edx */ 13505 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36145360: shr eax, 0x1f */ 13506 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13507 eax = eax >> 31u; /* 0x36145360: shr eax, 0x1f */ 13508 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13509 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13510 edx = edx + eax; /* 0x36145363: add edx, eax */ 13511 _flag_k = FK_ADD; 13512 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 13513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13514 edi = edi - edx; /* 0x36145365: sub edi, edx */ 13515 _flag_k = FK_CMP; 13516 eax = edi; /* 0x36145367: mov eax, edi */ 13517 edi = MEM32(ebp + 0x10); /* 0x36145369: mov edi, dword ptr [ebp + 0x10] */ 13518 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3614538A; /* 0x3614536C: je 0x3614538a */ 13519 L_3614536E: 13520 MEM32(ebp + 0x10) = eax; /* 0x3614536E: mov dword ptr [ebp + 0x10], eax */ 13521 L_36145371: 13522 PUSH32(esp, edi); /* 0x36145371: push edi */ 13523 PUSH32(esp, esi); /* 0x36145372: push esi */ 13524 RECOMP_ICALL(0x36145920u); /* 0x36145373: call 0x36145920 */ /* not lifted */ 13525 RECOMP_FLAGS_IN(); 13526 eax = MEM32(ebp + 0x10); /* 0x36145378: mov eax, dword ptr [ebp + 0x10] */ 13527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13529 esp = esp + 8; /* 0x3614537B: add esp, 8 */ 13530 _flag_k = FK_ADD; 13531 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 13532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13533 esi = esi + 0x24u; /* 0x3614537E: add esi, 0x24 */ 13534 _flag_k = FK_ADD; 13535 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13536 eax = eax - 1; /* 0x36145381: dec eax */ 13537 _flag_k = FK_DEC; 13538 MEM32(ebp + 0x10) = eax; /* 0x36145382: mov dword ptr [ebp + 0x10], eax */ 13539 RECOMP_BACKEDGE(); 13540 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36145371; /* 0x36145385: jne 0x36145371 */ 13541 L_36145387: 13542 ecx = MEM32(ebp + (-0x4)); /* 0x36145387: mov ecx, dword ptr [ebp - 4] */ 13543 L_3614538A: 13544 eax = MEM32(ecx + 0x8); /* 0x3614538A: mov eax, dword ptr [ecx + 8] */ 13545 /* cmp ebx, eax */ /* 0x3614538D: cmp ebx, eax */ 13546 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 13547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13548 _flag_k = FK_CMP; 13549 MEM32(ebp + 0x10) = eax; /* 0x3614538F: mov dword ptr [ebp + 0x10], eax */ 13550 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145496; /* 0x36145392: je 0x36145496 */ 13551 L_36145398: 13552 esi = ebx + 0x14; /* 0x36145398: lea esi, [ebx + 0x14] */ 13553 L_3614539B: 13554 ecx = MEM32(edi); /* 0x3614539B: mov ecx, dword ptr [edi] */ 13555 MEM32(esi + (-0x14)) = ecx; /* 0x3614539D: mov dword ptr [esi - 0x14], ecx */ 13556 edx = MEM32(0x3616F010); /* 0x361453A0: mov edx, dword ptr [0x3616f010] */ 13557 eax = MEM32(edx); /* 0x361453A6: mov eax, dword ptr [edx] */ 13558 PUSH32(esp, eax); /* 0x361453A8: push eax */ 13559 PUSH32(esp, 0); /* 0x361453A9: push 0 */ 13560 eax = edi + 0x4; /* 0x361453AB: lea eax, [edi + 4] */ 13561 PUSH32(esp, eax); /* 0x361453AE: push eax */ 13562 ecx = esi + (-0x10); /* 0x361453AF: lea ecx, [esi - 0x10] */ 13563 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x361453B2: call dword ptr [0x3616f024] */ 13564 RECOMP_FLAGS_IN(); 13565 ecx = MEM32(edi + 0x14); /* 0x361453B8: mov ecx, dword ptr [edi + 0x14] */ 13566 MEM32(esi) = ecx; /* 0x361453BB: mov dword ptr [esi], ecx */ 13567 edx = MEM32(edi + 0x18); /* 0x361453BD: mov edx, dword ptr [edi + 0x18] */ 13568 MEM32(esi + 0x4) = edx; /* 0x361453C0: mov dword ptr [esi + 4], edx */ 13569 eax = MEM32(edi + 0x1C); /* 0x361453C3: mov eax, dword ptr [edi + 0x1c] */ 13570 MEM32(esi + 0x8) = eax; /* 0x361453C6: mov dword ptr [esi + 8], eax */ 13571 SET_LO8(ecx, MEM8(edi + 0x20)); /* 0x361453C9: mov cl, byte ptr [edi + 0x20] */ 13572 eax = MEM32(ebp + 0x10); /* 0x361453CC: mov eax, dword ptr [ebp + 0x10] */ 13573 MEM8(esi + 0xC) = (uint8_t)(LO8(ecx)); /* 0x361453CF: mov byte ptr [esi + 0xc], cl */ 13574 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 13575 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13576 esi = esi + 0x24u; /* 0x361453D2: add esi, 0x24 */ 13577 _flag_k = FK_ADD; 13578 edx = esi + (-0x14); /* 0x361453D5: lea edx, [esi - 0x14] */ 13579 /* cmp edx, eax */ /* 0x361453D8: cmp edx, eax */ 13580 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13582 _flag_k = FK_CMP; 13583 RECOMP_BACKEDGE(); 13584 if (CMP_NE(_flag_a, _flag_b)) goto L_3614539B; /* 0x361453DA: jne 0x3614539b */ 13585 L_361453DC: 13586 goto L_36145493; /* 0x361453DC: jmp 0x36145493 */ 13587 L_361453E1: 13588 /* test edi, edi */ /* 0x361453E1: test edi, edi */ 13589 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 13590 _cf = 0; 13591 _flag_k = FK_TEST; 13592 if (TEST_Z(_flag_a, _flag_b)) goto L_3614549C; /* 0x361453E3: jbe 0x3614549c */ 13593 L_361453E9: 13594 eax = edi + edi * 8; /* 0x361453E9: lea eax, [edi + edi*8] */ 13595 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x361453EC: shl eax, 2 */ 13596 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13597 eax = eax << 2u; /* 0x361453EC: shl eax, 2 */ 13598 edi = esi; /* 0x361453EF: mov edi, esi */ 13599 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13600 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13601 edi = edi - eax; /* 0x361453F1: sub edi, eax */ 13602 _flag_k = FK_CMP; 13603 /* cmp edi, esi */ /* 0x361453F3: cmp edi, esi */ 13604 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 13605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13606 _flag_k = FK_CMP; 13607 MEM32(ebp + 0xC) = esi; /* 0x361453F5: mov dword ptr [ebp + 0xc], esi */ 13608 MEM32(ebp + 0x8) = eax; /* 0x361453F8: mov dword ptr [ebp + 8], eax */ 13609 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145420; /* 0x361453FB: je 0x36145420 */ 13610 L_361453FD: 13611 ecx = MEM32(ebp + 0xC); /* 0x361453FD: mov ecx, dword ptr [ebp + 0xc] */ 13612 PUSH32(esp, edi); /* 0x36145400: push edi */ 13613 PUSH32(esp, ecx); /* 0x36145401: push ecx */ 13614 RECOMP_ICALL(0x36145920u); /* 0x36145402: call 0x36145920 */ /* not lifted */ 13615 RECOMP_FLAGS_IN(); 13616 edx = MEM32(ebp + 0xC); /* 0x36145407: mov edx, dword ptr [ebp + 0xc] */ 13617 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x24u); 13618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13619 edx = edx + 0x24u; /* 0x3614540A: add edx, 0x24 */ 13620 _flag_k = FK_ADD; 13621 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u); 13622 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13623 edi = edi + 0x24u; /* 0x3614540D: add edi, 0x24 */ 13624 _flag_k = FK_ADD; 13625 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13626 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13627 esp = esp + 8; /* 0x36145410: add esp, 8 */ 13628 _flag_k = FK_ADD; 13629 /* cmp edi, esi */ /* 0x36145413: cmp edi, esi */ 13630 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 13631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13632 _flag_k = FK_CMP; 13633 MEM32(ebp + 0xC) = edx; /* 0x36145415: mov dword ptr [ebp + 0xc], edx */ 13634 RECOMP_BACKEDGE(); 13635 if (CMP_NE(_flag_a, _flag_b)) goto L_361453FD; /* 0x36145418: jne 0x361453fd */ 13636 L_3614541A: 13637 ecx = MEM32(ebp + (-0x4)); /* 0x3614541A: mov ecx, dword ptr [ebp - 4] */ 13638 eax = MEM32(ebp + 0x8); /* 0x3614541D: mov eax, dword ptr [ebp + 8] */ 13639 L_36145420: 13640 edi = MEM32(ecx + 0x8); /* 0x36145420: mov edi, dword ptr [ecx + 8] */ 13641 esi = edi; /* 0x36145423: mov esi, edi */ 13642 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13644 esi = esi - eax; /* 0x36145425: sub esi, eax */ 13645 _flag_k = FK_CMP; 13646 /* cmp ebx, esi */ /* 0x36145427: cmp ebx, esi */ 13647 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 13648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13649 _flag_k = FK_CMP; 13650 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145443; /* 0x36145429: je 0x36145443 */ 13651 L_3614542B: 13652 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 13653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13654 esi = esi - 0x24u; /* 0x3614542B: sub esi, 0x24 */ 13655 _flag_k = FK_CMP; 13656 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u); 13657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13658 edi = edi - 0x24u; /* 0x3614542E: sub edi, 0x24 */ 13659 _flag_k = FK_CMP; 13660 PUSH32(esp, esi); /* 0x36145431: push esi */ 13661 ecx = edi; /* 0x36145432: mov ecx, edi */ 13662 RECOMP_ICALL(0x36145B80u); /* 0x36145434: call 0x36145b80 */ /* not lifted */ 13663 RECOMP_FLAGS_IN(); 13664 /* cmp esi, ebx */ /* 0x36145439: cmp esi, ebx */ 13665 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 13666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13667 _flag_k = FK_CMP; 13668 RECOMP_BACKEDGE(); 13669 if (CMP_NE(_flag_a, _flag_b)) goto L_3614542B; /* 0x3614543B: jne 0x3614542b */ 13670 L_3614543D: 13671 ecx = MEM32(ebp + (-0x4)); /* 0x3614543D: mov ecx, dword ptr [ebp - 4] */ 13672 eax = MEM32(ebp + 0x8); /* 0x36145440: mov eax, dword ptr [ebp + 8] */ 13673 L_36145443: 13674 edx = eax + ebx; /* 0x36145443: lea edx, [eax + ebx] */ 13675 /* cmp ebx, edx */ /* 0x36145446: cmp ebx, edx */ 13676 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 13677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13678 _flag_k = FK_CMP; 13679 MEM32(ebp + 0xC) = edx; /* 0x36145448: mov dword ptr [ebp + 0xc], edx */ 13680 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145499; /* 0x3614544B: je 0x36145499 */ 13681 L_3614544D: 13682 edi = MEM32(ebp + 0x10); /* 0x3614544D: mov edi, dword ptr [ebp + 0x10] */ 13683 esi = ebx + 0x14; /* 0x36145450: lea esi, [ebx + 0x14] */ 13684 L_36145453: 13685 edx = MEM32(edi); /* 0x36145453: mov edx, dword ptr [edi] */ 13686 MEM32(esi + (-0x14)) = edx; /* 0x36145455: mov dword ptr [esi - 0x14], edx */ 13687 eax = MEM32(0x3616F010); /* 0x36145458: mov eax, dword ptr [0x3616f010] */ 13688 ecx = MEM32(eax); /* 0x3614545D: mov ecx, dword ptr [eax] */ 13689 PUSH32(esp, ecx); /* 0x3614545F: push ecx */ 13690 PUSH32(esp, 0); /* 0x36145460: push 0 */ 13691 eax = edi + 0x4; /* 0x36145462: lea eax, [edi + 4] */ 13692 PUSH32(esp, eax); /* 0x36145465: push eax */ 13693 ecx = esi + (-0x10); /* 0x36145466: lea ecx, [esi - 0x10] */ 13694 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x36145469: call dword ptr [0x3616f024] */ 13695 RECOMP_FLAGS_IN(); 13696 edx = MEM32(edi + 0x14); /* 0x3614546F: mov edx, dword ptr [edi + 0x14] */ 13697 MEM32(esi) = edx; /* 0x36145472: mov dword ptr [esi], edx */ 13698 eax = MEM32(edi + 0x18); /* 0x36145474: mov eax, dword ptr [edi + 0x18] */ 13699 MEM32(esi + 0x4) = eax; /* 0x36145477: mov dword ptr [esi + 4], eax */ 13700 ecx = MEM32(edi + 0x1C); /* 0x3614547A: mov ecx, dword ptr [edi + 0x1c] */ 13701 MEM32(esi + 0x8) = ecx; /* 0x3614547D: mov dword ptr [esi + 8], ecx */ 13702 SET_LO8(edx, MEM8(edi + 0x20)); /* 0x36145480: mov dl, byte ptr [edi + 0x20] */ 13703 ecx = MEM32(ebp + 0xC); /* 0x36145483: mov ecx, dword ptr [ebp + 0xc] */ 13704 MEM8(esi + 0xC) = (uint8_t)(LO8(edx)); /* 0x36145486: mov byte ptr [esi + 0xc], dl */ 13705 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 13706 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13707 esi = esi + 0x24u; /* 0x36145489: add esi, 0x24 */ 13708 _flag_k = FK_ADD; 13709 eax = esi + (-0x14); /* 0x3614548C: lea eax, [esi - 0x14] */ 13710 /* cmp eax, ecx */ /* 0x3614548F: cmp eax, ecx */ 13711 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13713 _flag_k = FK_CMP; 13714 RECOMP_BACKEDGE(); 13715 if (CMP_NE(_flag_a, _flag_b)) goto L_36145453; /* 0x36145491: jne 0x36145453 */ 13716 L_36145493: 13717 ecx = MEM32(ebp + (-0x4)); /* 0x36145493: mov ecx, dword ptr [ebp - 4] */ 13718 L_36145496: 13719 eax = MEM32(ebp + 0x8); /* 0x36145496: mov eax, dword ptr [ebp + 8] */ 13720 L_36145499: 13721 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(eax); 13722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13723 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) + eax; /* 0x36145499: add dword ptr [ecx + 8], eax */ 13724 _flag_k = FK_ADD; 13725 L_3614549C: 13726 edi = POP32_VAL(esp); /* 0x3614549C: pop edi */ 13727 esi = POP32_VAL(esp); /* 0x3614549D: pop esi */ 13728 ebx = POP32_VAL(esp); /* 0x3614549E: pop ebx */ 13729 esp = ebp; /* 0x3614549F: mov esp, ebp */ 13730 ebp = POP32_VAL(esp); /* 0x361454A1: pop ebp */ 13731 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361454A2: ret 0xc */ 13732 RECOMP_REGS_OUT(); 13733 } 13734 13735 void sub_36145493(void) { 13736 int _fpu_cmp = 0; 13737 uint32_t _cf = 0; 13738 int _df = 1; 13739 uint32_t _flag_k = FK_NONE; 13740 uint32_t _flag_a = 0, _flag_b = 0; 13741 uint32_t _itail_tgt = 0; 13742 RECOMP_REGS_LOCALS 13743 RECOMP_ENTER(0x36145493u); 13744 13745 L_36145493: 13746 ecx = MEM32(ebp + (-0x4)); /* 0x36145493: mov ecx, dword ptr [ebp - 4] */ 13747 eax = MEM32(ebp + 0x8); /* 0x36145496: mov eax, dword ptr [ebp + 8] */ 13748 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(eax); 13749 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13750 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) + eax; /* 0x36145499: add dword ptr [ecx + 8], eax */ 13751 _flag_k = FK_ADD; 13752 edi = POP32_VAL(esp); /* 0x3614549C: pop edi */ 13753 esi = POP32_VAL(esp); /* 0x3614549D: pop esi */ 13754 ebx = POP32_VAL(esp); /* 0x3614549E: pop ebx */ 13755 esp = ebp; /* 0x3614549F: mov esp, ebp */ 13756 ebp = POP32_VAL(esp); /* 0x361454A1: pop ebp */ 13757 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361454A2: ret 0xc */ 13758 RECOMP_REGS_OUT(); 13759 } 13760 13761 void sub_36145496(void) { 13762 int _fpu_cmp = 0; 13763 uint32_t _cf = 0; 13764 int _df = 1; 13765 uint32_t _flag_k = FK_NONE; 13766 uint32_t _flag_a = 0, _flag_b = 0; 13767 uint32_t _itail_tgt = 0; 13768 RECOMP_REGS_LOCALS 13769 RECOMP_ENTER(0x36145496u); 13770 13771 L_36145496: 13772 eax = MEM32(ebp + 0x8); /* 0x36145496: mov eax, dword ptr [ebp + 8] */ 13773 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(eax); 13774 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13775 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) + eax; /* 0x36145499: add dword ptr [ecx + 8], eax */ 13776 _flag_k = FK_ADD; 13777 edi = POP32_VAL(esp); /* 0x3614549C: pop edi */ 13778 esi = POP32_VAL(esp); /* 0x3614549D: pop esi */ 13779 ebx = POP32_VAL(esp); /* 0x3614549E: pop ebx */ 13780 esp = ebp; /* 0x3614549F: mov esp, ebp */ 13781 ebp = POP32_VAL(esp); /* 0x361454A1: pop ebp */ 13782 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361454A2: ret 0xc */ 13783 RECOMP_REGS_OUT(); 13784 } 13785 13786 void sub_36145499(void) { 13787 int _fpu_cmp = 0; 13788 uint32_t _cf = 0; 13789 int _df = 1; 13790 uint32_t _flag_k = FK_NONE; 13791 uint32_t _flag_a = 0, _flag_b = 0; 13792 uint32_t _itail_tgt = 0; 13793 RECOMP_REGS_LOCALS 13794 RECOMP_ENTER(0x36145499u); 13795 13796 L_36145499: 13797 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(eax); 13798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13799 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) + eax; /* 0x36145499: add dword ptr [ecx + 8], eax */ 13800 _flag_k = FK_ADD; 13801 edi = POP32_VAL(esp); /* 0x3614549C: pop edi */ 13802 esi = POP32_VAL(esp); /* 0x3614549D: pop esi */ 13803 ebx = POP32_VAL(esp); /* 0x3614549E: pop ebx */ 13804 esp = ebp; /* 0x3614549F: mov esp, ebp */ 13805 ebp = POP32_VAL(esp); /* 0x361454A1: pop ebp */ 13806 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361454A2: ret 0xc */ 13807 RECOMP_REGS_OUT(); 13808 } 13809 13810 void sub_3614549C(void) { 13811 int _fpu_cmp = 0; 13812 uint32_t _cf = 0; 13813 int _df = 1; 13814 uint32_t _flag_k = FK_NONE; 13815 uint32_t _flag_a = 0, _flag_b = 0; 13816 uint32_t _itail_tgt = 0; 13817 RECOMP_REGS_LOCALS 13818 RECOMP_ENTER(0x3614549Cu); 13819 13820 L_3614549C: 13821 edi = POP32_VAL(esp); /* 0x3614549C: pop edi */ 13822 esi = POP32_VAL(esp); /* 0x3614549D: pop esi */ 13823 ebx = POP32_VAL(esp); /* 0x3614549E: pop ebx */ 13824 esp = ebp; /* 0x3614549F: mov esp, ebp */ 13825 ebp = POP32_VAL(esp); /* 0x361454A1: pop ebp */ 13826 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361454A2: ret 0xc */ 13827 RECOMP_REGS_OUT(); 13828 } 13829 13830 void sub_361454B0(void) { 13831 int _fpu_cmp = 0; 13832 uint32_t _cf = 0; 13833 int _df = 1; 13834 uint32_t _flag_k = FK_NONE; 13835 uint32_t _flag_a = 0, _flag_b = 0; 13836 uint32_t _itail_tgt = 0; 13837 RECOMP_REGS_LOCALS 13838 RECOMP_ENTER(0x361454B0u); 13839 13840 L_361454B0: 13841 PUSH32(esp, ebp); /* 0x361454B0: push ebp */ 13842 ebp = esp; /* 0x361454B1: mov ebp, esp */ 13843 PUSH32(esp, ebx); /* 0x361454B3: push ebx */ 13844 PUSH32(esp, esi); /* 0x361454B4: push esi */ 13845 ebx = ecx; /* 0x361454B5: mov ebx, ecx */ 13846 eax = MEM32(ebx + 0x8); /* 0x361454B7: mov eax, dword ptr [ebx + 8] */ 13847 PUSH32(esp, edi); /* 0x361454BA: push edi */ 13848 edi = MEM32(ebp + 0x8); /* 0x361454BB: mov edi, dword ptr [ebp + 8] */ 13849 /* cmp edi, eax */ /* 0x361454BE: cmp edi, eax */ 13850 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13852 _flag_k = FK_CMP; 13853 esi = edi; /* 0x361454C0: mov esi, edi */ 13854 if (CMP_EQ(_flag_a, _flag_b)) goto L_361454EB; /* 0x361454C2: je 0x361454eb */ 13855 L_361454C4: 13856 eax = MEM32(esi + 0x8); /* 0x361454C4: mov eax, dword ptr [esi + 8] */ 13857 PUSH32(esp, eax); /* 0x361454C7: push eax */ 13858 ecx = ebx; /* 0x361454C8: mov ecx, ebx */ 13859 RECOMP_ICALL(0x361454B0u); /* 0x361454CA: call 0x361454b0 */ /* not lifted */ 13860 RECOMP_FLAGS_IN(); 13861 esi = MEM32(esi); /* 0x361454CF: mov esi, dword ptr [esi] */ 13862 ecx = edi + 0xC; /* 0x361454D1: lea ecx, [edi + 0xc] */ 13863 RECOMP_ICALL(0x36140470u); /* 0x361454D4: call 0x36140470 */ /* not lifted */ 13864 RECOMP_FLAGS_IN(); 13865 PUSH32(esp, edi); /* 0x361454D9: push edi */ 13866 RECOMP_ICALL(0x3615FCC4u); /* 0x361454DA: call 0x3615fcc4 */ /* not lifted */ 13867 RECOMP_FLAGS_IN(); 13868 eax = MEM32(ebx + 0x8); /* 0x361454DF: mov eax, dword ptr [ebx + 8] */ 13869 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13870 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13871 esp = esp + 4; /* 0x361454E2: add esp, 4 */ 13872 _flag_k = FK_ADD; 13873 /* cmp esi, eax */ /* 0x361454E5: cmp esi, eax */ 13874 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13876 _flag_k = FK_CMP; 13877 edi = esi; /* 0x361454E7: mov edi, esi */ 13878 RECOMP_BACKEDGE(); 13879 if (CMP_NE(_flag_a, _flag_b)) goto L_361454C4; /* 0x361454E9: jne 0x361454c4 */ 13880 L_361454EB: 13881 edi = POP32_VAL(esp); /* 0x361454EB: pop edi */ 13882 esi = POP32_VAL(esp); /* 0x361454EC: pop esi */ 13883 ebx = POP32_VAL(esp); /* 0x361454ED: pop ebx */ 13884 ebp = POP32_VAL(esp); /* 0x361454EE: pop ebp */ 13885 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361454EF: ret 4 */ 13886 RECOMP_REGS_OUT(); 13887 } 13888 13889 void sub_36145500(void) { 13890 int _fpu_cmp = 0; 13891 uint32_t _cf = 0; 13892 int _df = 1; 13893 uint32_t _flag_k = FK_NONE; 13894 uint32_t _flag_a = 0, _flag_b = 0; 13895 uint32_t _itail_tgt = 0; 13896 RECOMP_REGS_LOCALS 13897 RECOMP_ENTER(0x36145500u); 13898 13899 L_36145500: 13900 PUSH32(esp, ebx); /* 0x36145500: push ebx */ 13901 PUSH32(esp, esi); /* 0x36145501: push esi */ 13902 PUSH32(esp, edi); /* 0x36145502: push edi */ 13903 PUSH32(esp, 0x24u); /* 0x36145503: push 0x24 */ 13904 esi = ecx; /* 0x36145505: mov esi, ecx */ 13905 RECOMP_ICALL(0x3615FD6Au); /* 0x36145507: call 0x3615fd6a */ /* not lifted */ 13906 RECOMP_FLAGS_IN(); 13907 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13908 ebx = 0; /* 0x3614550C: xor ebx, ebx */ 13909 _cf = 0; 13910 _flag_k = FK_TEST; 13911 MEM32(eax + 0x4) = ebx; /* 0x3614550E: mov dword ptr [eax + 4], ebx */ 13912 MEM8(eax + 0x21) = (uint8_t)(LO8(ebx)); /* 0x36145511: mov byte ptr [eax + 0x21], bl */ 13913 SET_LO8(ecx, 1); /* 0x36145514: mov cl, 1 */ 13914 MEM8(eax + 0x20) = (uint8_t)(LO8(ecx)); /* 0x36145516: mov byte ptr [eax + 0x20], cl */ 13915 MEM32(esi + 0x8) = eax; /* 0x36145519: mov dword ptr [esi + 8], eax */ 13916 MEM8(eax + 0x21) = (uint8_t)(LO8(ecx)); /* 0x3614551C: mov byte ptr [eax + 0x21], cl */ 13917 eax = MEM32(esi + 0x8); /* 0x3614551F: mov eax, dword ptr [esi + 8] */ 13918 MEM32(eax) = ebx; /* 0x36145522: mov dword ptr [eax], ebx */ 13919 ecx = MEM32(esi + 0x8); /* 0x36145524: mov ecx, dword ptr [esi + 8] */ 13920 MEM32(ecx + 0x8) = ebx; /* 0x36145527: mov dword ptr [ecx + 8], ebx */ 13921 edi = MEM32(esi + 0x8); /* 0x3614552A: mov edi, dword ptr [esi + 8] */ 13922 PUSH32(esp, 0x24u); /* 0x3614552D: push 0x24 */ 13923 RECOMP_ICALL(0x3615FD6Au); /* 0x3614552F: call 0x3615fd6a */ /* not lifted */ 13924 RECOMP_FLAGS_IN(); 13925 MEM32(eax + 0x4) = edi; /* 0x36145534: mov dword ptr [eax + 4], edi */ 13926 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145537: mov byte ptr [eax + 0x20], bl */ 13927 MEM8(eax + 0x21) = (uint8_t)(LO8(ebx)); /* 0x3614553A: mov byte ptr [eax + 0x21], bl */ 13928 MEM32(esi + 0x4) = eax; /* 0x3614553D: mov dword ptr [esi + 4], eax */ 13929 MEM32(eax) = eax; /* 0x36145540: mov dword ptr [eax], eax */ 13930 eax = MEM32(esi + 0x4); /* 0x36145542: mov eax, dword ptr [esi + 4] */ 13931 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13932 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13933 esp = esp + 8; /* 0x36145545: add esp, 8 */ 13934 _flag_k = FK_ADD; 13935 edi = POP32_VAL(esp); /* 0x36145548: pop edi */ 13936 MEM32(eax + 0x8) = eax; /* 0x36145549: mov dword ptr [eax + 8], eax */ 13937 MEM32(esi + 0x10) = ebx; /* 0x3614554C: mov dword ptr [esi + 0x10], ebx */ 13938 esi = POP32_VAL(esp); /* 0x3614554F: pop esi */ 13939 ebx = POP32_VAL(esp); /* 0x36145550: pop ebx */ 13940 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36145551: ret */ 13941 RECOMP_REGS_OUT(); 13942 } 13943 13944 void sub_36145560(void) { 13945 int _fpu_cmp = 0; 13946 uint32_t _cf = 0; 13947 int _df = 1; 13948 uint32_t _flag_k = FK_NONE; 13949 uint32_t _flag_a = 0, _flag_b = 0; 13950 uint32_t _itail_tgt = 0; 13951 RECOMP_REGS_LOCALS 13952 RECOMP_ENTER(0x36145560u); 13953 13954 L_36145560: 13955 PUSH32(esp, ebp); /* 0x36145560: push ebp */ 13956 ebp = esp; /* 0x36145561: mov ebp, esp */ 13957 PUSH32(esp, esi); /* 0x36145563: push esi */ 13958 esi = MEM32(ebp + 0x8); /* 0x36145564: mov esi, dword ptr [ebp + 8] */ 13959 SET_LO8(eax, MEM8(esi)); /* 0x36145567: mov al, byte ptr [esi] */ 13960 PUSH32(esp, edi); /* 0x36145569: push edi */ 13961 edi = ecx; /* 0x3614556A: mov edi, ecx */ 13962 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x3614556C: mov byte ptr [edi], al */ 13963 ecx = MEM32(esi + 0x4); /* 0x3614556E: mov ecx, dword ptr [esi + 4] */ 13964 /* test ecx, ecx */ /* 0x36145571: test ecx, ecx */ 13965 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13966 _cf = 0; 13967 _flag_k = FK_TEST; 13968 if (TEST_NZ(_flag_a, _flag_b)) goto L_36145579; /* 0x36145573: jne 0x36145579 */ 13969 L_36145575: 13970 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13971 eax = 0; /* 0x36145575: xor eax, eax */ 13972 _cf = 0; 13973 _flag_k = FK_TEST; 13974 goto L_36145581; /* 0x36145577: jmp 0x36145581 */ 13975 L_36145579: 13976 eax = MEM32(esi + 0x8); /* 0x36145579: mov eax, dword ptr [esi + 8] */ 13977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13979 eax = eax - ecx; /* 0x3614557C: sub eax, ecx */ 13980 _flag_k = FK_CMP; 13981 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3614557E: sar eax, 2 */ 13982 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13983 eax = (uint32_t)((int32_t)eax >> 2u); 13984 L_36145581: 13985 /* test eax, eax */ /* 0x36145581: test eax, eax */ 13986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13987 _cf = 0; 13988 _flag_k = FK_TEST; 13989 if (TEST_NS(_flag_a, _flag_b)) goto L_36145587; /* 0x36145583: jge 0x36145587 */ 13990 L_36145585: 13991 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13992 eax = 0; /* 0x36145585: xor eax, eax */ 13993 _cf = 0; 13994 _flag_k = FK_TEST; 13995 L_36145587: 13996 ecx = eax * 4; /* 0x36145587: lea ecx, [eax*4] */ 13997 PUSH32(esp, ecx); /* 0x3614558E: push ecx */ 13998 RECOMP_ICALL(0x3615FD6Au); /* 0x3614558F: call 0x3615fd6a */ /* not lifted */ 13999 RECOMP_FLAGS_IN(); 14000 MEM32(edi + 0x4) = eax; /* 0x36145594: mov dword ptr [edi + 4], eax */ 14001 edx = MEM32(esi + 0x8); /* 0x36145597: mov edx, dword ptr [esi + 8] */ 14002 ecx = eax; /* 0x3614559A: mov ecx, eax */ 14003 eax = MEM32(esi + 0x4); /* 0x3614559C: mov eax, dword ptr [esi + 4] */ 14004 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14006 esp = esp + 4; /* 0x3614559F: add esp, 4 */ 14007 _flag_k = FK_ADD; 14008 /* cmp eax, edx */ /* 0x361455A2: cmp eax, edx */ 14009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14011 _flag_k = FK_CMP; 14012 if (CMP_EQ(_flag_a, _flag_b)) goto L_361455B8; /* 0x361455A4: je 0x361455b8 */ 14013 L_361455A6: 14014 /* test ecx, ecx */ /* 0x361455A6: test ecx, ecx */ 14015 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 14016 _cf = 0; 14017 _flag_k = FK_TEST; 14018 if (TEST_Z(_flag_a, _flag_b)) goto L_361455AE; /* 0x361455A8: je 0x361455ae */ 14019 L_361455AA: 14020 esi = MEM32(eax); /* 0x361455AA: mov esi, dword ptr [eax] */ 14021 MEM32(ecx) = esi; /* 0x361455AC: mov dword ptr [ecx], esi */ 14022 L_361455AE: 14023 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 14024 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14025 eax = eax + 4; /* 0x361455AE: add eax, 4 */ 14026 _flag_k = FK_ADD; 14027 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 14028 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14029 ecx = ecx + 4; /* 0x361455B1: add ecx, 4 */ 14030 _flag_k = FK_ADD; 14031 /* cmp eax, edx */ /* 0x361455B4: cmp eax, edx */ 14032 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14034 _flag_k = FK_CMP; 14035 RECOMP_BACKEDGE(); 14036 if (CMP_NE(_flag_a, _flag_b)) goto L_361455A6; /* 0x361455B6: jne 0x361455a6 */ 14037 L_361455B8: 14038 MEM32(edi + 0x8) = ecx; /* 0x361455B8: mov dword ptr [edi + 8], ecx */ 14039 MEM32(edi + 0xC) = ecx; /* 0x361455BB: mov dword ptr [edi + 0xc], ecx */ 14040 eax = edi; /* 0x361455BE: mov eax, edi */ 14041 edi = POP32_VAL(esp); /* 0x361455C0: pop edi */ 14042 esi = POP32_VAL(esp); /* 0x361455C1: pop esi */ 14043 ebp = POP32_VAL(esp); /* 0x361455C2: pop ebp */ 14044 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361455C3: ret 4 */ 14045 RECOMP_REGS_OUT(); 14046 } 14047 14048 void sub_361455D0(void) { 14049 int _fpu_cmp = 0; 14050 uint32_t _cf = 0; 14051 int _df = 1; 14052 uint32_t _flag_k = FK_NONE; 14053 uint32_t _flag_a = 0, _flag_b = 0; 14054 uint32_t _itail_tgt = 0; 14055 RECOMP_REGS_LOCALS 14056 RECOMP_ENTER(0x361455D0u); 14057 14058 L_361455D0: 14059 PUSH32(esp, ebp); /* 0x361455D0: push ebp */ 14060 ebp = esp; /* 0x361455D1: mov ebp, esp */ 14061 PUSH32(esp, ebx); /* 0x361455D3: push ebx */ 14062 PUSH32(esp, esi); /* 0x361455D4: push esi */ 14063 esi = MEM32(ecx); /* 0x361455D5: mov esi, dword ptr [ecx] */ 14064 edx = MEM32(esi + 0x8); /* 0x361455D7: mov edx, dword ptr [esi + 8] */ 14065 SET_LO8(eax, MEM8(edx + 0x21)); /* 0x361455DA: mov al, byte ptr [edx + 0x21] */ 14066 /* test LO8(eax), LO8(eax) */ /* 0x361455DD: test al, al */ 14067 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14068 _cf = 0; 14069 _flag_k = FK_NARROW(FK_TEST, 24); 14070 if (TEST_NZ(_flag_a, _flag_b)) goto L_36145602; /* 0x361455DF: jne 0x36145602 */ 14071 L_361455E1: 14072 eax = MEM32(edx); /* 0x361455E1: mov eax, dword ptr [edx] */ 14073 SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x361455E3: mov bl, byte ptr [eax + 0x21] */ 14074 /* test LO8(ebx), LO8(ebx) */ /* 0x361455E6: test bl, bl */ 14075 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14076 _cf = 0; 14077 _flag_k = FK_NARROW(FK_TEST, 24); 14078 if (TEST_NZ(_flag_a, _flag_b)) goto L_361455F5; /* 0x361455E8: jne 0x361455f5 */ 14079 L_361455EA: 14080 edx = eax; /* 0x361455EA: mov edx, eax */ 14081 eax = MEM32(edx); /* 0x361455EC: mov eax, dword ptr [edx] */ 14082 SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x361455EE: mov bl, byte ptr [eax + 0x21] */ 14083 /* test LO8(ebx), LO8(ebx) */ /* 0x361455F1: test bl, bl */ 14084 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14085 _cf = 0; 14086 _flag_k = FK_NARROW(FK_TEST, 24); 14087 RECOMP_BACKEDGE(); 14088 if (TEST_Z(_flag_a, _flag_b)) goto L_361455EA; /* 0x361455F3: je 0x361455ea */ 14089 L_361455F5: 14090 eax = MEM32(ebp + 0x8); /* 0x361455F5: mov eax, dword ptr [ebp + 8] */ 14091 MEM32(ecx) = edx; /* 0x361455F8: mov dword ptr [ecx], edx */ 14092 MEM32(eax) = esi; /* 0x361455FA: mov dword ptr [eax], esi */ 14093 esi = POP32_VAL(esp); /* 0x361455FC: pop esi */ 14094 ebx = POP32_VAL(esp); /* 0x361455FD: pop ebx */ 14095 ebp = POP32_VAL(esp); /* 0x361455FE: pop ebp */ 14096 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361455FF: ret 8 */ 14097 L_36145602: 14098 eax = MEM32(esi + 0x4); /* 0x36145602: mov eax, dword ptr [esi + 4] */ 14099 edx = MEM32(ecx); /* 0x36145605: mov edx, dword ptr [ecx] */ 14100 /* cmp edx, MEM32(eax + 0x8) */ /* 0x36145607: cmp edx, dword ptr [eax + 8] */ 14101 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 14102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14103 _flag_k = FK_CMP; 14104 if (CMP_NE(_flag_a, _flag_b)) goto L_36145618; /* 0x3614560A: jne 0x36145618 */ 14105 L_3614560C: 14106 MEM32(ecx) = eax; /* 0x3614560C: mov dword ptr [ecx], eax */ 14107 eax = MEM32(eax + 0x4); /* 0x3614560E: mov eax, dword ptr [eax + 4] */ 14108 edx = MEM32(ecx); /* 0x36145611: mov edx, dword ptr [ecx] */ 14109 /* cmp edx, MEM32(eax + 0x8) */ /* 0x36145613: cmp edx, dword ptr [eax + 8] */ 14110 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 14111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14112 _flag_k = FK_CMP; 14113 RECOMP_BACKEDGE(); 14114 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614560C; /* 0x36145616: je 0x3614560c */ 14115 L_36145618: 14116 edx = MEM32(ecx); /* 0x36145618: mov edx, dword ptr [ecx] */ 14117 /* cmp MEM32(edx + 0x8), eax */ /* 0x3614561A: cmp dword ptr [edx + 8], eax */ 14118 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 14119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14120 _flag_k = FK_CMP; 14121 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145621; /* 0x3614561D: je 0x36145621 */ 14122 L_3614561F: 14123 MEM32(ecx) = eax; /* 0x3614561F: mov dword ptr [ecx], eax */ 14124 L_36145621: 14125 eax = MEM32(ebp + 0x8); /* 0x36145621: mov eax, dword ptr [ebp + 8] */ 14126 MEM32(eax) = esi; /* 0x36145624: mov dword ptr [eax], esi */ 14127 esi = POP32_VAL(esp); /* 0x36145626: pop esi */ 14128 ebx = POP32_VAL(esp); /* 0x36145627: pop ebx */ 14129 ebp = POP32_VAL(esp); /* 0x36145628: pop ebp */ 14130 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36145629: ret 8 */ 14131 RECOMP_REGS_OUT(); 14132 } 14133 14134 void sub_36145630(void) { 14135 int _fpu_cmp = 0; 14136 uint32_t _cf = 0; 14137 int _df = 1; 14138 uint32_t _flag_k = FK_NONE; 14139 uint32_t _flag_a = 0, _flag_b = 0; 14140 uint32_t _itail_tgt = 0; 14141 RECOMP_REGS_LOCALS 14142 RECOMP_ENTER(0x36145630u); 14143 14144 L_36145630: 14145 PUSH32(esp, ebp); /* 0x36145630: push ebp */ 14146 ebp = esp; /* 0x36145631: mov ebp, esp */ 14147 PUSH32(esp, ecx); /* 0x36145633: push ecx */ 14148 PUSH32(esp, ebx); /* 0x36145634: push ebx */ 14149 PUSH32(esp, esi); /* 0x36145635: push esi */ 14150 PUSH32(esp, edi); /* 0x36145636: push edi */ 14151 PUSH32(esp, 0x24u); /* 0x36145637: push 0x24 */ 14152 esi = ecx; /* 0x36145639: mov esi, ecx */ 14153 RECOMP_ICALL(0x3615FD6Au); /* 0x3614563B: call 0x3615fd6a */ /* not lifted */ 14154 RECOMP_FLAGS_IN(); 14155 edi = MEM32(ebp + 0x10); /* 0x36145640: mov edi, dword ptr [ebp + 0x10] */ 14156 ebx = MEM32(ebp + 0x14); /* 0x36145643: mov ebx, dword ptr [ebp + 0x14] */ 14157 MEM32(eax + 0x4) = edi; /* 0x36145646: mov dword ptr [eax + 4], edi */ 14158 MEM8(eax + 0x20) = (uint8_t)(0); /* 0x36145649: mov byte ptr [eax + 0x20], 0 */ 14159 MEM8(eax + 0x21) = (uint8_t)(0); /* 0x3614564D: mov byte ptr [eax + 0x21], 0 */ 14160 ecx = MEM32(esi + 0x8); /* 0x36145651: mov ecx, dword ptr [esi + 8] */ 14161 MEM32(eax) = ecx; /* 0x36145654: mov dword ptr [eax], ecx */ 14162 edx = MEM32(esi + 0x8); /* 0x36145656: mov edx, dword ptr [esi + 8] */ 14163 MEM32(ebp + (-0x4)) = eax; /* 0x36145659: mov dword ptr [ebp - 4], eax */ 14164 MEM32(eax + 0x8) = edx; /* 0x3614565C: mov dword ptr [eax + 8], edx */ 14165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 14166 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14167 eax = eax + 0xCu; /* 0x3614565F: add eax, 0xc */ 14168 _flag_k = FK_ADD; 14169 PUSH32(esp, ebx); /* 0x36145662: push ebx */ 14170 PUSH32(esp, eax); /* 0x36145663: push eax */ 14171 RECOMP_ICALL(0x36145AA0u); /* 0x36145664: call 0x36145aa0 */ /* not lifted */ 14172 RECOMP_FLAGS_IN(); 14173 ecx = MEM32(esi + 0x10); /* 0x36145669: mov ecx, dword ptr [esi + 0x10] */ 14174 eax = MEM32(esi + 0x4); /* 0x3614566C: mov eax, dword ptr [esi + 4] */ 14175 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 14176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14177 esp = esp + 0xCu; /* 0x3614566F: add esp, 0xc */ 14178 _flag_k = FK_ADD; 14179 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 14180 ecx = ecx + 1; /* 0x36145672: inc ecx */ 14181 _flag_k = FK_INC; 14182 /* cmp edi, eax */ /* 0x36145673: cmp edi, eax */ 14183 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14185 _flag_k = FK_CMP; 14186 MEM32(esi + 0x10) = ecx; /* 0x36145675: mov dword ptr [esi + 0x10], ecx */ 14187 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614569C; /* 0x36145678: je 0x3614569c */ 14188 L_3614567A: 14189 eax = MEM32(ebp + 0xC); /* 0x3614567A: mov eax, dword ptr [ebp + 0xc] */ 14190 /* cmp eax, MEM32(esi + 0x8) */ /* 0x3614567D: cmp eax, dword ptr [esi + 8] */ 14191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14193 _flag_k = FK_CMP; 14194 if (CMP_NE(_flag_a, _flag_b)) goto L_3614569C; /* 0x36145680: jne 0x3614569c */ 14195 L_36145682: 14196 ecx = MEM32(ebx); /* 0x36145682: mov ecx, dword ptr [ebx] */ 14197 /* cmp ecx, MEM32(edi + 0xC) */ /* 0x36145684: cmp ecx, dword ptr [edi + 0xc] */ 14198 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 14199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14200 _flag_k = FK_CMP; 14201 if (CMP_B(_flag_a, _flag_b)) goto L_3614569C; /* 0x36145687: jb 0x3614569c */ 14202 L_36145689: 14203 ecx = MEM32(ebp + (-0x4)); /* 0x36145689: mov ecx, dword ptr [ebp - 4] */ 14204 MEM32(edi + 0x8) = ecx; /* 0x3614568C: mov dword ptr [edi + 8], ecx */ 14205 eax = MEM32(esi + 0x4); /* 0x3614568F: mov eax, dword ptr [esi + 4] */ 14206 /* cmp edi, MEM32(eax + 0x8) */ /* 0x36145692: cmp edi, dword ptr [eax + 8] */ 14207 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 14208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14209 _flag_k = FK_CMP; 14210 if (CMP_NE(_flag_a, _flag_b)) goto L_361456BC; /* 0x36145695: jne 0x361456bc */ 14211 L_36145697: 14212 MEM32(eax + 0x8) = ecx; /* 0x36145697: mov dword ptr [eax + 8], ecx */ 14213 goto L_361456BC; /* 0x3614569A: jmp 0x361456bc */ 14214 L_3614569C: 14215 ecx = MEM32(ebp + (-0x4)); /* 0x3614569C: mov ecx, dword ptr [ebp - 4] */ 14216 MEM32(edi) = ecx; /* 0x3614569F: mov dword ptr [edi], ecx */ 14217 eax = MEM32(esi + 0x4); /* 0x361456A1: mov eax, dword ptr [esi + 4] */ 14218 /* cmp edi, eax */ /* 0x361456A4: cmp edi, eax */ 14219 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14221 _flag_k = FK_CMP; 14222 if (CMP_NE(_flag_a, _flag_b)) goto L_361456B3; /* 0x361456A6: jne 0x361456b3 */ 14223 L_361456A8: 14224 MEM32(eax + 0x4) = ecx; /* 0x361456A8: mov dword ptr [eax + 4], ecx */ 14225 edx = MEM32(esi + 0x4); /* 0x361456AB: mov edx, dword ptr [esi + 4] */ 14226 MEM32(edx + 0x8) = ecx; /* 0x361456AE: mov dword ptr [edx + 8], ecx */ 14227 goto L_361456BC; /* 0x361456B1: jmp 0x361456bc */ 14228 L_361456B3: 14229 /* cmp edi, MEM32(eax) */ /* 0x361456B3: cmp edi, dword ptr [eax] */ 14230 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 14231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14232 _flag_k = FK_CMP; 14233 if (CMP_NE(_flag_a, _flag_b)) goto L_361456BC; /* 0x361456B5: jne 0x361456bc */ 14234 L_361456B7: 14235 ecx = MEM32(ebp + (-0x4)); /* 0x361456B7: mov ecx, dword ptr [ebp - 4] */ 14236 MEM32(eax) = ecx; /* 0x361456BA: mov dword ptr [eax], ecx */ 14237 L_361456BC: 14238 edx = MEM32(esi + 0x4); /* 0x361456BC: mov edx, dword ptr [esi + 4] */ 14239 eax = MEM32(ebp + (-0x4)); /* 0x361456BF: mov eax, dword ptr [ebp - 4] */ 14240 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361456C2: cmp eax, dword ptr [edx + 4] */ 14241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 14242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14243 _flag_k = FK_CMP; 14244 SET_LO8(ebx, 1); /* 0x361456C5: mov bl, 1 */ 14245 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456C7: je 0x3614584d */ 14246 L_361456CD: 14247 ecx = MEM32(eax + 0x4); /* 0x361456CD: mov ecx, dword ptr [eax + 4] */ 14248 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x361456D0: mov dl, byte ptr [ecx + 0x20] */ 14249 /* test LO8(edx), LO8(edx) */ /* 0x361456D3: test dl, dl */ 14250 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14251 _cf = 0; 14252 _flag_k = FK_NARROW(FK_TEST, 24); 14253 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614584D; /* 0x361456D5: jne 0x3614584d */ 14254 L_361456DB: 14255 edi = MEM32(ecx + 0x4); /* 0x361456DB: mov edi, dword ptr [ecx + 4] */ 14256 edx = MEM32(edi); /* 0x361456DE: mov edx, dword ptr [edi] */ 14257 /* cmp ecx, edx */ /* 0x361456E0: cmp ecx, edx */ 14258 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 14259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14260 _flag_k = FK_CMP; 14261 if (CMP_NE(_flag_a, _flag_b)) goto L_361457A9; /* 0x361456E2: jne 0x361457a9 */ 14262 L_361456E8: 14263 edx = MEM32(edi + 0x8); /* 0x361456E8: mov edx, dword ptr [edi + 8] */ 14264 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361456EB: cmp byte ptr [edx + 0x20], 0 */ 14265 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 14266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14267 _flag_k = FK_NARROW(FK_CMP, 24); 14268 if (CMP_NE(_flag_a, _flag_b)) goto L_3614570C; /* 0x361456EF: jne 0x3614570c */ 14269 L_361456F1: 14270 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F1: mov byte ptr [ecx + 0x20], bl */ 14271 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361456F4: mov byte ptr [edx + 0x20], bl */ 14272 ecx = MEM32(eax + 0x4); /* 0x361456F7: mov ecx, dword ptr [eax + 4] */ 14273 edx = MEM32(ecx + 0x4); /* 0x361456FA: mov edx, dword ptr [ecx + 4] */ 14274 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x361456FD: mov byte ptr [edx + 0x20], 0 */ 14275 eax = MEM32(eax + 0x4); /* 0x36145701: mov eax, dword ptr [eax + 4] */ 14276 eax = MEM32(eax + 0x4); /* 0x36145704: mov eax, dword ptr [eax + 4] */ 14277 goto L_36145841; /* 0x36145707: jmp 0x36145841 */ 14278 L_3614570C: 14279 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614570C: cmp eax, dword ptr [ecx + 8] */ 14280 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 14281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14282 _flag_k = FK_CMP; 14283 if (CMP_NE(_flag_a, _flag_b)) goto L_3614574B; /* 0x3614570F: jne 0x3614574b */ 14284 L_36145711: 14285 eax = ecx; /* 0x36145711: mov eax, ecx */ 14286 ecx = MEM32(eax + 0x8); /* 0x36145713: mov ecx, dword ptr [eax + 8] */ 14287 edx = MEM32(ecx); /* 0x36145716: mov edx, dword ptr [ecx] */ 14288 MEM32(eax + 0x8) = edx; /* 0x36145718: mov dword ptr [eax + 8], edx */ 14289 edx = MEM32(ecx); /* 0x3614571B: mov edx, dword ptr [ecx] */ 14290 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614571D: cmp edx, dword ptr [esi + 8] */ 14291 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14293 _flag_k = FK_CMP; 14294 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145725; /* 0x36145720: je 0x36145725 */ 14295 L_36145722: 14296 MEM32(edx + 0x4) = eax; /* 0x36145722: mov dword ptr [edx + 4], eax */ 14297 L_36145725: 14298 edx = MEM32(eax + 0x4); /* 0x36145725: mov edx, dword ptr [eax + 4] */ 14299 MEM32(ecx + 0x4) = edx; /* 0x36145728: mov dword ptr [ecx + 4], edx */ 14300 edx = MEM32(esi + 0x4); /* 0x3614572B: mov edx, dword ptr [esi + 4] */ 14301 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614572E: cmp eax, dword ptr [edx + 4] */ 14302 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 14303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14304 _flag_k = FK_CMP; 14305 if (CMP_NE(_flag_a, _flag_b)) goto L_36145738; /* 0x36145731: jne 0x36145738 */ 14306 L_36145733: 14307 MEM32(edx + 0x4) = ecx; /* 0x36145733: mov dword ptr [edx + 4], ecx */ 14308 goto L_36145746; /* 0x36145736: jmp 0x36145746 */ 14309 L_36145738: 14310 edx = MEM32(eax + 0x4); /* 0x36145738: mov edx, dword ptr [eax + 4] */ 14311 /* cmp eax, MEM32(edx) */ /* 0x3614573B: cmp eax, dword ptr [edx] */ 14312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 14313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14314 _flag_k = FK_CMP; 14315 if (CMP_NE(_flag_a, _flag_b)) goto L_36145743; /* 0x3614573D: jne 0x36145743 */ 14316 L_3614573F: 14317 MEM32(edx) = ecx; /* 0x3614573F: mov dword ptr [edx], ecx */ 14318 goto L_36145746; /* 0x36145741: jmp 0x36145746 */ 14319 L_36145743: 14320 MEM32(edx + 0x8) = ecx; /* 0x36145743: mov dword ptr [edx + 8], ecx */ 14321 L_36145746: 14322 MEM32(ecx) = eax; /* 0x36145746: mov dword ptr [ecx], eax */ 14323 MEM32(eax + 0x4) = ecx; /* 0x36145748: mov dword ptr [eax + 4], ecx */ 14324 L_3614574B: 14325 ecx = MEM32(eax + 0x4); /* 0x3614574B: mov ecx, dword ptr [eax + 4] */ 14326 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614574E: mov byte ptr [ecx + 0x20], bl */ 14327 edx = MEM32(eax + 0x4); /* 0x36145751: mov edx, dword ptr [eax + 4] */ 14328 ecx = MEM32(edx + 0x4); /* 0x36145754: mov ecx, dword ptr [edx + 4] */ 14329 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36145757: mov byte ptr [ecx + 0x20], 0 */ 14330 edx = MEM32(eax + 0x4); /* 0x3614575B: mov edx, dword ptr [eax + 4] */ 14331 ecx = MEM32(edx + 0x4); /* 0x3614575E: mov ecx, dword ptr [edx + 4] */ 14332 edx = MEM32(ecx); /* 0x36145761: mov edx, dword ptr [ecx] */ 14333 edi = MEM32(edx + 0x8); /* 0x36145763: mov edi, dword ptr [edx + 8] */ 14334 MEM32(ecx) = edi; /* 0x36145766: mov dword ptr [ecx], edi */ 14335 edi = MEM32(edx + 0x8); /* 0x36145768: mov edi, dword ptr [edx + 8] */ 14336 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614576B: cmp edi, dword ptr [esi + 8] */ 14337 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14339 _flag_k = FK_CMP; 14340 if (CMP_EQ(_flag_a, _flag_b)) goto L_36145773; /* 0x3614576E: je 0x36145773 */ 14341 L_36145770: 14342 MEM32(edi + 0x4) = ecx; /* 0x36145770: mov dword ptr [edi + 4], ecx */ 14343 L_36145773: 14344 edi = MEM32(ecx + 0x4); /* 0x36145773: mov edi, dword ptr [ecx + 4] */ 14345 MEM32(edx + 0x4) = edi; /* 0x36145776: mov dword ptr [edx + 4], edi */ 14346 edi = MEM32(esi + 0x4); /* 0x36145779: mov edi, dword ptr [esi + 4] */ 14347 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614577C: cmp ecx, dword ptr [edi + 4] */ 14348 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 14349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14350 _flag_k = FK_CMP; 14351 if (CMP_NE(_flag_a, _flag_b)) goto L_3614578C; /* 0x3614577F: jne 0x3614578c */ 14352 L_36145781: 14353 MEM32(edi + 0x4) = edx; /* 0x36145781: mov dword ptr [edi + 4], edx */ 14354 MEM32(edx + 0x8) = ecx; /* 0x36145784: mov dword ptr [edx + 8], ecx */ 14355 goto L_3614583E; /* 0x36145787: jmp 0x3614583e */ 14356 L_3614578C: 14357 edi = MEM32(ecx + 0x4); /* 0x3614578C: mov edi, dword ptr [ecx + 4] */ 14358 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614578F: cmp ecx, dword ptr [edi + 8] */ 14359 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14361 _flag_k = FK_CMP; 14362 if (CMP_NE(_flag_a, _flag_b)) goto L_3614579F; /* 0x36145792: jne 0x3614579f */ 14363 L_36145794: 14364 MEM32(edi + 0x8) = edx; /* 0x36145794: mov dword ptr [edi + 8], edx */ 14365 MEM32(edx + 0x8) = ecx; /* 0x36145797: mov dword ptr [edx + 8], ecx */ 14366 goto L_3614583E; /* 0x3614579A: jmp 0x3614583e */ 14367 L_3614579F: 14368 MEM32(edi) = edx; /* 0x3614579F: mov dword ptr [edi], edx */ 14369 MEM32(edx + 0x8) = ecx; /* 0x361457A1: mov dword ptr [edx + 8], ecx */ 14370 goto L_3614583E; /* 0x361457A4: jmp 0x3614583e */ 14371 L_361457A9: 14372 /* cmp MEM8(edx + 0x20), 0 */ /* 0x361457A9: cmp byte ptr [edx + 0x20], 0 */ 14373 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 14374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14375 _flag_k = FK_NARROW(FK_CMP, 24); 14376 RECOMP_BACKEDGE(); 14377 if (CMP_EQ(_flag_a, _flag_b)) goto L_361456F1; /* 0x361457AD: je 0x361456f1 */ 14378 L_361457B3: 14379 /* cmp eax, MEM32(ecx) */ /* 0x361457B3: cmp eax, dword ptr [ecx] */ 14380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 14381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14382 _flag_k = FK_CMP; 14383 if (CMP_NE(_flag_a, _flag_b)) goto L_361457F3; /* 0x361457B5: jne 0x361457f3 */ 14384 L_361457B7: 14385 eax = ecx; /* 0x361457B7: mov eax, ecx */ 14386 ecx = MEM32(eax); /* 0x361457B9: mov ecx, dword ptr [eax] */ 14387 edx = MEM32(ecx + 0x8); /* 0x361457BB: mov edx, dword ptr [ecx + 8] */ 14388 MEM32(eax) = edx; /* 0x361457BE: mov dword ptr [eax], edx */ 14389 edx = MEM32(ecx + 0x8); /* 0x361457C0: mov edx, dword ptr [ecx + 8] */ 14390 /* cmp edx, MEM32(esi + 0x8) */ /* 0x361457C3: cmp edx, dword ptr [esi + 8] */ 14391 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14393 _flag_k = FK_CMP; 14394 if (CMP_EQ(_flag_a, _flag_b)) goto L_361457CB; /* 0x361457C6: je 0x361457cb */ 14395 L_361457C8: 14396 MEM32(edx + 0x4) = eax; /* 0x361457C8: mov dword ptr [edx + 4], eax */ 14397 L_361457CB: 14398 edx = MEM32(eax + 0x4); /* 0x361457CB: mov edx, dword ptr [eax + 4] */ 14399 MEM32(ecx + 0x4) = edx; /* 0x361457CE: mov dword ptr [ecx + 4], edx */ 14400 edx = MEM32(esi + 0x4); /* 0x361457D1: mov edx, dword ptr [esi + 4] */ 14401 /* cmp eax, MEM32(edx + 0x4) */ /* 0x361457D4: cmp eax, dword ptr [edx + 4] */ 14402 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 14403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14404 _flag_k = FK_CMP; 14405 if (CMP_NE(_flag_a, _flag_b)) goto L_361457DE; /* 0x361457D7: jne 0x361457de */ 14406 L_361457D9: 14407 MEM32(edx + 0x4) = ecx; /* 0x361457D9: mov dword ptr [edx + 4], ecx */ 14408 goto L_361457ED; /* 0x361457DC: jmp 0x361457ed */ 14409 L_361457DE: 14410 edx = MEM32(eax + 0x4); /* 0x361457DE: mov edx, dword ptr [eax + 4] */ 14411 /* cmp eax, MEM32(edx + 0x8) */ /* 0x361457E1: cmp eax, dword ptr [edx + 8] */ 14412 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 14413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14414 _flag_k = FK_CMP; 14415 if (CMP_NE(_flag_a, _flag_b)) goto L_361457EB; /* 0x361457E4: jne 0x361457eb */ 14416 L_361457E6: 14417 MEM32(edx + 0x8) = ecx; /* 0x361457E6: mov dword ptr [edx + 8], ecx */ 14418 goto L_361457ED; /* 0x361457E9: jmp 0x361457ed */ 14419 L_361457EB: 14420 MEM32(edx) = ecx; /* 0x361457EB: mov dword ptr [edx], ecx */ 14421 L_361457ED: 14422 MEM32(ecx + 0x8) = eax; /* 0x361457ED: mov dword ptr [ecx + 8], eax */ 14423 MEM32(eax + 0x4) = ecx; /* 0x361457F0: mov dword ptr [eax + 4], ecx */ 14424 L_361457F3: 14425 ecx = MEM32(eax + 0x4); /* 0x361457F3: mov ecx, dword ptr [eax + 4] */ 14426 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x361457F6: mov byte ptr [ecx + 0x20], bl */ 14427 edx = MEM32(eax + 0x4); /* 0x361457F9: mov edx, dword ptr [eax + 4] */ 14428 ecx = MEM32(edx + 0x4); /* 0x361457FC: mov ecx, dword ptr [edx + 4] */ 14429 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x361457FF: mov byte ptr [ecx + 0x20], 0 */ 14430 edx = MEM32(eax + 0x4); /* 0x36145803: mov edx, dword ptr [eax + 4] */ 14431 ecx = MEM32(edx + 0x4); /* 0x36145806: mov ecx, dword ptr [edx + 4] */ 14432 edx = MEM32(ecx + 0x8); /* 0x36145809: mov edx, dword ptr [ecx + 8] */ 14433 edi = MEM32(edx); /* 0x3614580C: mov edi, dword ptr [edx] */ 14434 MEM32(ecx + 0x8) = edi; /* 0x3614580E: mov dword ptr [ecx + 8], edi */ 14435 edi = MEM32(edx); /* 0x36145811: mov edi, dword ptr [edx] */ 14436 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36145813: cmp edi, dword ptr [esi + 8] */ 14437 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14439 _flag_k = FK_CMP; 14440 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614581B; /* 0x36145816: je 0x3614581b */ 14441 L_36145818: 14442 MEM32(edi + 0x4) = ecx; /* 0x36145818: mov dword ptr [edi + 4], ecx */ 14443 L_3614581B: 14444 edi = MEM32(ecx + 0x4); /* 0x3614581B: mov edi, dword ptr [ecx + 4] */ 14445 MEM32(edx + 0x4) = edi; /* 0x3614581E: mov dword ptr [edx + 4], edi */ 14446 edi = MEM32(esi + 0x4); /* 0x36145821: mov edi, dword ptr [esi + 4] */ 14447 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36145824: cmp ecx, dword ptr [edi + 4] */ 14448 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 14449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14450 _flag_k = FK_CMP; 14451 if (CMP_NE(_flag_a, _flag_b)) goto L_3614582E; /* 0x36145827: jne 0x3614582e */ 14452 L_36145829: 14453 MEM32(edi + 0x4) = edx; /* 0x36145829: mov dword ptr [edi + 4], edx */ 14454 goto L_3614583C; /* 0x3614582C: jmp 0x3614583c */ 14455 L_3614582E: 14456 edi = MEM32(ecx + 0x4); /* 0x3614582E: mov edi, dword ptr [ecx + 4] */ 14457 /* cmp ecx, MEM32(edi) */ /* 0x36145831: cmp ecx, dword ptr [edi] */ 14458 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 14459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14460 _flag_k = FK_CMP; 14461 if (CMP_NE(_flag_a, _flag_b)) goto L_36145839; /* 0x36145833: jne 0x36145839 */ 14462 L_36145835: 14463 MEM32(edi) = edx; /* 0x36145835: mov dword ptr [edi], edx */ 14464 goto L_3614583C; /* 0x36145837: jmp 0x3614583c */ 14465 L_36145839: 14466 MEM32(edi + 0x8) = edx; /* 0x36145839: mov dword ptr [edi + 8], edx */ 14467 L_3614583C: 14468 MEM32(edx) = ecx; /* 0x3614583C: mov dword ptr [edx], ecx */ 14469 L_3614583E: 14470 MEM32(ecx + 0x4) = edx; /* 0x3614583E: mov dword ptr [ecx + 4], edx */ 14471 L_36145841: 14472 ecx = MEM32(esi + 0x4); /* 0x36145841: mov ecx, dword ptr [esi + 4] */ 14473 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36145844: cmp eax, dword ptr [ecx + 4] */ 14474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14476 _flag_k = FK_CMP; 14477 RECOMP_BACKEDGE(); 14478 if (CMP_NE(_flag_a, _flag_b)) goto L_361456CD; /* 0x36145847: jne 0x361456cd */ 14479 L_3614584D: 14480 edx = MEM32(esi + 0x4); /* 0x3614584D: mov edx, dword ptr [esi + 4] */ 14481 eax = MEM32(edx + 0x4); /* 0x36145850: mov eax, dword ptr [edx + 4] */ 14482 ecx = MEM32(ebp + (-0x4)); /* 0x36145853: mov ecx, dword ptr [ebp - 4] */ 14483 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36145856: mov byte ptr [eax + 0x20], bl */ 14484 eax = MEM32(ebp + 0x8); /* 0x36145859: mov eax, dword ptr [ebp + 8] */ 14485 edi = POP32_VAL(esp); /* 0x3614585C: pop edi */ 14486 esi = POP32_VAL(esp); /* 0x3614585D: pop esi */ 14487 MEM32(eax) = ecx; /* 0x3614585E: mov dword ptr [eax], ecx */ 14488 ebx = POP32_VAL(esp); /* 0x36145860: pop ebx */ 14489 esp = ebp; /* 0x36145861: mov esp, ebp */ 14490 ebp = POP32_VAL(esp); /* 0x36145863: pop ebp */ 14491 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36145864: ret 0x10 */ 14492 RECOMP_REGS_OUT(); 14493 }