client/game/nnr.dll/lifted-0003.c (148421B)
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_3C008942(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(0x3C008942u); 17 18 L_3C008942: 19 { _itail_tgt = (uint32_t)(MEM32(0x3C009118)); goto _ljump; } 20 { RECOMP_REGS_OUT(); return; } /* end of function */ 21 _ljump: 22 switch (_itail_tgt) { 23 case 0x3C008942u: goto L_3C008942; 24 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 25 } 26 RECOMP_REGS_OUT(); 27 } 28 29 void sub_3C008948(void) { 30 int _fpu_cmp = 0; 31 uint32_t _cf = 0; 32 int _df = 1; 33 uint32_t _flag_k = FK_NONE; 34 uint32_t _flag_a = 0, _flag_b = 0; 35 uint32_t _itail_tgt = 0; 36 RECOMP_REGS_LOCALS 37 RECOMP_ENTER(0x3C008948u); 38 39 L_3C008948: 40 { _itail_tgt = (uint32_t)(MEM32(0x3C009114)); goto _ljump; } 41 { RECOMP_REGS_OUT(); return; } /* end of function */ 42 _ljump: 43 switch (_itail_tgt) { 44 case 0x3C008948u: goto L_3C008948; 45 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 46 } 47 RECOMP_REGS_OUT(); 48 } 49 50 void sub_3C00894E(void) { 51 int _fpu_cmp = 0; 52 uint32_t _cf = 0; 53 int _df = 1; 54 uint32_t _flag_k = FK_NONE; 55 uint32_t _flag_a = 0, _flag_b = 0; 56 uint32_t _itail_tgt = 0; 57 RECOMP_REGS_LOCALS 58 RECOMP_ENTER(0x3C00894Eu); 59 60 L_3C00894E: 61 { _itail_tgt = (uint32_t)(MEM32(0x3C009110)); goto _ljump; } 62 { RECOMP_REGS_OUT(); return; } /* end of function */ 63 _ljump: 64 switch (_itail_tgt) { 65 case 0x3C00894Eu: goto L_3C00894E; 66 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 67 } 68 RECOMP_REGS_OUT(); 69 } 70 71 void sub_3C008954(void) { 72 int _fpu_cmp = 0; 73 uint32_t _cf = 0; 74 int _df = 1; 75 uint32_t _flag_k = FK_NONE; 76 uint32_t _flag_a = 0, _flag_b = 0; 77 uint32_t _itail_tgt = 0; 78 RECOMP_REGS_LOCALS 79 RECOMP_ENTER(0x3C008954u); 80 81 L_3C008954: 82 { _itail_tgt = (uint32_t)(MEM32(0x3C00910C)); goto _ljump; } 83 { RECOMP_REGS_OUT(); return; } /* end of function */ 84 _ljump: 85 switch (_itail_tgt) { 86 case 0x3C008954u: goto L_3C008954; 87 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 88 } 89 RECOMP_REGS_OUT(); 90 } 91 92 void sub_3C00895A(void) { 93 int _fpu_cmp = 0; 94 uint32_t _cf = 0; 95 int _df = 1; 96 uint32_t _flag_k = FK_NONE; 97 uint32_t _flag_a = 0, _flag_b = 0; 98 uint32_t _itail_tgt = 0; 99 RECOMP_REGS_LOCALS 100 RECOMP_ENTER(0x3C00895Au); 101 102 L_3C00895A: 103 { _itail_tgt = (uint32_t)(MEM32(0x3C009108)); goto _ljump; } 104 { RECOMP_REGS_OUT(); return; } /* end of function */ 105 _ljump: 106 switch (_itail_tgt) { 107 case 0x3C00895Au: goto L_3C00895A; 108 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 109 } 110 RECOMP_REGS_OUT(); 111 } 112 113 void sub_3C008960(void) { 114 int _fpu_cmp = 0; 115 uint32_t _cf = 0; 116 int _df = 1; 117 uint32_t _flag_k = FK_NONE; 118 uint32_t _flag_a = 0, _flag_b = 0; 119 uint32_t _itail_tgt = 0; 120 RECOMP_REGS_LOCALS 121 RECOMP_ENTER(0x3C008960u); 122 123 L_3C008960: 124 { _itail_tgt = (uint32_t)(MEM32(0x3C009104)); goto _ljump; } 125 { RECOMP_REGS_OUT(); return; } /* end of function */ 126 _ljump: 127 switch (_itail_tgt) { 128 case 0x3C008960u: goto L_3C008960; 129 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 130 } 131 RECOMP_REGS_OUT(); 132 } 133 134 void sub_3C008966(void) { 135 int _fpu_cmp = 0; 136 uint32_t _cf = 0; 137 int _df = 1; 138 uint32_t _flag_k = FK_NONE; 139 uint32_t _flag_a = 0, _flag_b = 0; 140 uint32_t _itail_tgt = 0; 141 RECOMP_REGS_LOCALS 142 RECOMP_ENTER(0x3C008966u); 143 144 L_3C008966: 145 { _itail_tgt = (uint32_t)(MEM32(0x3C009100)); goto _ljump; } 146 { RECOMP_REGS_OUT(); return; } /* end of function */ 147 _ljump: 148 switch (_itail_tgt) { 149 case 0x3C008966u: goto L_3C008966; 150 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 151 } 152 RECOMP_REGS_OUT(); 153 } 154 155 void sub_3C00896C(void) { 156 int _fpu_cmp = 0; 157 uint32_t _cf = 0; 158 int _df = 1; 159 uint32_t _flag_k = FK_NONE; 160 uint32_t _flag_a = 0, _flag_b = 0; 161 uint32_t _itail_tgt = 0; 162 RECOMP_REGS_LOCALS 163 RECOMP_ENTER(0x3C00896Cu); 164 165 L_3C00896C: 166 { _itail_tgt = (uint32_t)(MEM32(0x3C0090FC)); goto _ljump; } 167 { RECOMP_REGS_OUT(); return; } /* end of function */ 168 _ljump: 169 switch (_itail_tgt) { 170 case 0x3C00896Cu: goto L_3C00896C; 171 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 172 } 173 RECOMP_REGS_OUT(); 174 } 175 176 void sub_3C008972(void) { 177 int _fpu_cmp = 0; 178 uint32_t _cf = 0; 179 int _df = 1; 180 uint32_t _flag_k = FK_NONE; 181 uint32_t _flag_a = 0, _flag_b = 0; 182 uint32_t _itail_tgt = 0; 183 RECOMP_REGS_LOCALS 184 RECOMP_ENTER(0x3C008972u); 185 186 L_3C008972: 187 { _itail_tgt = (uint32_t)(MEM32(0x3C0090F8)); goto _ljump; } 188 { RECOMP_REGS_OUT(); return; } /* end of function */ 189 _ljump: 190 switch (_itail_tgt) { 191 case 0x3C008972u: goto L_3C008972; 192 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 193 } 194 RECOMP_REGS_OUT(); 195 } 196 197 void sub_3C008978(void) { 198 int _fpu_cmp = 0; 199 uint32_t _cf = 0; 200 int _df = 1; 201 uint32_t _flag_k = FK_NONE; 202 uint32_t _flag_a = 0, _flag_b = 0; 203 uint32_t _itail_tgt = 0; 204 RECOMP_REGS_LOCALS 205 RECOMP_ENTER(0x3C008978u); 206 207 L_3C008978: 208 { _itail_tgt = (uint32_t)(MEM32(0x3C0090F0)); goto _ljump; } 209 { RECOMP_REGS_OUT(); return; } /* end of function */ 210 _ljump: 211 switch (_itail_tgt) { 212 case 0x3C008978u: goto L_3C008978; 213 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 214 } 215 RECOMP_REGS_OUT(); 216 } 217 218 void sub_3C00897E(void) { 219 int _fpu_cmp = 0; 220 uint32_t _cf = 0; 221 int _df = 1; 222 uint32_t _flag_k = FK_NONE; 223 uint32_t _flag_a = 0, _flag_b = 0; 224 uint32_t _itail_tgt = 0; 225 RECOMP_REGS_LOCALS 226 RECOMP_ENTER(0x3C00897Eu); 227 228 L_3C00897E: 229 { _itail_tgt = (uint32_t)(MEM32(0x3C0090A8)); goto _ljump; } 230 { RECOMP_REGS_OUT(); return; } /* end of function */ 231 _ljump: 232 switch (_itail_tgt) { 233 case 0x3C00897Eu: goto L_3C00897E; 234 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 235 } 236 RECOMP_REGS_OUT(); 237 } 238 239 void sub_3C008984(void) { 240 int _fpu_cmp = 0; 241 uint32_t _cf = 0; 242 int _df = 1; 243 uint32_t _flag_k = FK_NONE; 244 uint32_t _flag_a = 0, _flag_b = 0; 245 uint32_t _itail_tgt = 0; 246 RECOMP_REGS_LOCALS 247 RECOMP_ENTER(0x3C008984u); 248 249 L_3C008984: 250 { _itail_tgt = (uint32_t)(MEM32(0x3C0090A4)); goto _ljump; } 251 { RECOMP_REGS_OUT(); return; } /* end of function */ 252 _ljump: 253 switch (_itail_tgt) { 254 case 0x3C008984u: goto L_3C008984; 255 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 256 } 257 RECOMP_REGS_OUT(); 258 } 259 260 void sub_3C00898A(void) { 261 int _fpu_cmp = 0; 262 uint32_t _cf = 0; 263 int _df = 1; 264 uint32_t _flag_k = FK_NONE; 265 uint32_t _flag_a = 0, _flag_b = 0; 266 uint32_t _itail_tgt = 0; 267 RECOMP_REGS_LOCALS 268 RECOMP_ENTER(0x3C00898Au); 269 270 L_3C00898A: 271 { _itail_tgt = (uint32_t)(MEM32(0x3C009098)); goto _ljump; } 272 { RECOMP_REGS_OUT(); return; } /* end of function */ 273 _ljump: 274 switch (_itail_tgt) { 275 case 0x3C00898Au: goto L_3C00898A; 276 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 277 } 278 RECOMP_REGS_OUT(); 279 } 280 281 void sub_3C008990(void) { 282 int _fpu_cmp = 0; 283 uint32_t _cf = 0; 284 int _df = 1; 285 uint32_t _flag_k = FK_NONE; 286 uint32_t _flag_a = 0, _flag_b = 0; 287 uint32_t _itail_tgt = 0; 288 RECOMP_REGS_LOCALS 289 RECOMP_ENTER(0x3C008990u); 290 291 L_3C008990: 292 { _itail_tgt = (uint32_t)(MEM32(0x3C00909C)); goto _ljump; } 293 { RECOMP_REGS_OUT(); return; } /* end of function */ 294 _ljump: 295 switch (_itail_tgt) { 296 case 0x3C008990u: goto L_3C008990; 297 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 298 } 299 RECOMP_REGS_OUT(); 300 } 301 302 void sub_3C008996(void) { 303 int _fpu_cmp = 0; 304 uint32_t _cf = 0; 305 int _df = 1; 306 uint32_t _flag_k = FK_NONE; 307 uint32_t _flag_a = 0, _flag_b = 0; 308 uint32_t _itail_tgt = 0; 309 RECOMP_REGS_LOCALS 310 RECOMP_ENTER(0x3C008996u); 311 312 L_3C008996: 313 { _itail_tgt = (uint32_t)(MEM32(0x3C0090A0)); goto _ljump; } 314 { RECOMP_REGS_OUT(); return; } /* end of function */ 315 _ljump: 316 switch (_itail_tgt) { 317 case 0x3C008996u: goto L_3C008996; 318 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 319 } 320 RECOMP_REGS_OUT(); 321 } 322 323 void sub_3C00899C(void) { 324 int _fpu_cmp = 0; 325 uint32_t _cf = 0; 326 int _df = 1; 327 uint32_t _flag_k = FK_NONE; 328 uint32_t _flag_a = 0, _flag_b = 0; 329 uint32_t _itail_tgt = 0; 330 RECOMP_REGS_LOCALS 331 RECOMP_ENTER(0x3C00899Cu); 332 333 L_3C00899C: 334 { _itail_tgt = (uint32_t)(MEM32(0x3C00914C)); goto _ljump; } 335 { RECOMP_REGS_OUT(); return; } /* end of function */ 336 _ljump: 337 switch (_itail_tgt) { 338 case 0x3C00899Cu: goto L_3C00899C; 339 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 340 } 341 RECOMP_REGS_OUT(); 342 } 343 344 void sub_3C0089A2(void) { 345 int _fpu_cmp = 0; 346 uint32_t _cf = 0; 347 int _df = 1; 348 uint32_t _flag_k = FK_NONE; 349 uint32_t _flag_a = 0, _flag_b = 0; 350 uint32_t _itail_tgt = 0; 351 RECOMP_REGS_LOCALS 352 RECOMP_ENTER(0x3C0089A2u); 353 354 L_3C0089A2: 355 { _itail_tgt = (uint32_t)(MEM32(0x3C009150)); goto _ljump; } 356 { RECOMP_REGS_OUT(); return; } /* end of function */ 357 _ljump: 358 switch (_itail_tgt) { 359 case 0x3C0089A2u: goto L_3C0089A2; 360 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 361 } 362 RECOMP_REGS_OUT(); 363 } 364 365 void sub_3C0089A8(void) { 366 int _fpu_cmp = 0; 367 uint32_t _cf = 0; 368 int _df = 1; 369 uint32_t _flag_k = FK_NONE; 370 uint32_t _flag_a = 0, _flag_b = 0; 371 uint32_t _itail_tgt = 0; 372 RECOMP_REGS_LOCALS 373 RECOMP_ENTER(0x3C0089A8u); 374 375 L_3C0089A8: 376 { _itail_tgt = (uint32_t)(MEM32(0x3C0090B0)); goto _ljump; } 377 { RECOMP_REGS_OUT(); return; } /* end of function */ 378 _ljump: 379 switch (_itail_tgt) { 380 case 0x3C0089A8u: goto L_3C0089A8; 381 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 382 } 383 RECOMP_REGS_OUT(); 384 } 385 386 void sub_3C0089AE(void) { 387 int _fpu_cmp = 0; 388 uint32_t _cf = 0; 389 int _df = 1; 390 uint32_t _flag_k = FK_NONE; 391 uint32_t _flag_a = 0, _flag_b = 0; 392 uint32_t _itail_tgt = 0; 393 RECOMP_REGS_LOCALS 394 RECOMP_ENTER(0x3C0089AEu); 395 396 L_3C0089AE: 397 { _itail_tgt = (uint32_t)(MEM32(0x3C0090B4)); goto _ljump; } 398 { RECOMP_REGS_OUT(); return; } /* end of function */ 399 _ljump: 400 switch (_itail_tgt) { 401 case 0x3C0089AEu: goto L_3C0089AE; 402 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 403 } 404 RECOMP_REGS_OUT(); 405 } 406 407 void sub_3C0089B4(void) { 408 int _fpu_cmp = 0; 409 uint32_t _cf = 0; 410 int _df = 1; 411 uint32_t _flag_k = FK_NONE; 412 uint32_t _flag_a = 0, _flag_b = 0; 413 uint32_t _itail_tgt = 0; 414 RECOMP_REGS_LOCALS 415 RECOMP_ENTER(0x3C0089B4u); 416 417 L_3C0089B4: 418 { _itail_tgt = (uint32_t)(MEM32(0x3C0090B8)); goto _ljump; } 419 { RECOMP_REGS_OUT(); return; } /* end of function */ 420 _ljump: 421 switch (_itail_tgt) { 422 case 0x3C0089B4u: goto L_3C0089B4; 423 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 424 } 425 RECOMP_REGS_OUT(); 426 } 427 428 void sub_3C0089BA(void) { 429 int _fpu_cmp = 0; 430 uint32_t _cf = 0; 431 int _df = 1; 432 uint32_t _flag_k = FK_NONE; 433 uint32_t _flag_a = 0, _flag_b = 0; 434 uint32_t _itail_tgt = 0; 435 RECOMP_REGS_LOCALS 436 RECOMP_ENTER(0x3C0089BAu); 437 438 L_3C0089BA: 439 { _itail_tgt = (uint32_t)(MEM32(0x3C0090BC)); goto _ljump; } 440 { RECOMP_REGS_OUT(); return; } /* end of function */ 441 _ljump: 442 switch (_itail_tgt) { 443 case 0x3C0089BAu: goto L_3C0089BA; 444 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 445 } 446 RECOMP_REGS_OUT(); 447 } 448 449 void sub_3C0089C0(void) { 450 int _fpu_cmp = 0; 451 uint32_t _cf = 0; 452 int _df = 1; 453 uint32_t _flag_k = FK_NONE; 454 uint32_t _flag_a = 0, _flag_b = 0; 455 uint32_t _itail_tgt = 0; 456 RECOMP_REGS_LOCALS 457 RECOMP_ENTER(0x3C0089C0u); 458 459 L_3C0089C0: 460 { _itail_tgt = (uint32_t)(MEM32(0x3C0090C0)); goto _ljump; } 461 { RECOMP_REGS_OUT(); return; } /* end of function */ 462 _ljump: 463 switch (_itail_tgt) { 464 case 0x3C0089C0u: goto L_3C0089C0; 465 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 466 } 467 RECOMP_REGS_OUT(); 468 } 469 470 void sub_3C0089C6(void) { 471 int _fpu_cmp = 0; 472 uint32_t _cf = 0; 473 int _df = 1; 474 uint32_t _flag_k = FK_NONE; 475 uint32_t _flag_a = 0, _flag_b = 0; 476 uint32_t _itail_tgt = 0; 477 RECOMP_REGS_LOCALS 478 RECOMP_ENTER(0x3C0089C6u); 479 480 L_3C0089C6: 481 { _itail_tgt = (uint32_t)(MEM32(0x3C0090C4)); goto _ljump; } 482 { RECOMP_REGS_OUT(); return; } /* end of function */ 483 _ljump: 484 switch (_itail_tgt) { 485 case 0x3C0089C6u: goto L_3C0089C6; 486 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 487 } 488 RECOMP_REGS_OUT(); 489 } 490 491 void sub_3C0089CC(void) { 492 int _fpu_cmp = 0; 493 uint32_t _cf = 0; 494 int _df = 1; 495 uint32_t _flag_k = FK_NONE; 496 uint32_t _flag_a = 0, _flag_b = 0; 497 uint32_t _itail_tgt = 0; 498 RECOMP_REGS_LOCALS 499 RECOMP_ENTER(0x3C0089CCu); 500 501 L_3C0089CC: 502 { _itail_tgt = (uint32_t)(MEM32(0x3C0090C8)); goto _ljump; } 503 { RECOMP_REGS_OUT(); return; } /* end of function */ 504 _ljump: 505 switch (_itail_tgt) { 506 case 0x3C0089CCu: goto L_3C0089CC; 507 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 508 } 509 RECOMP_REGS_OUT(); 510 } 511 512 void sub_3C0089D2(void) { 513 int _fpu_cmp = 0; 514 uint32_t _cf = 0; 515 int _df = 1; 516 uint32_t _flag_k = FK_NONE; 517 uint32_t _flag_a = 0, _flag_b = 0; 518 uint32_t _itail_tgt = 0; 519 RECOMP_REGS_LOCALS 520 RECOMP_ENTER(0x3C0089D2u); 521 522 L_3C0089D2: 523 { _itail_tgt = (uint32_t)(MEM32(0x3C0090CC)); goto _ljump; } 524 { RECOMP_REGS_OUT(); return; } /* end of function */ 525 _ljump: 526 switch (_itail_tgt) { 527 case 0x3C0089D2u: goto L_3C0089D2; 528 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 529 } 530 RECOMP_REGS_OUT(); 531 } 532 533 void sub_3C0089D8(void) { 534 int _fpu_cmp = 0; 535 uint32_t _cf = 0; 536 int _df = 1; 537 uint32_t _flag_k = FK_NONE; 538 uint32_t _flag_a = 0, _flag_b = 0; 539 uint32_t _itail_tgt = 0; 540 RECOMP_REGS_LOCALS 541 RECOMP_ENTER(0x3C0089D8u); 542 543 L_3C0089D8: 544 { _itail_tgt = (uint32_t)(MEM32(0x3C0090D0)); goto _ljump; } 545 { RECOMP_REGS_OUT(); return; } /* end of function */ 546 _ljump: 547 switch (_itail_tgt) { 548 case 0x3C0089D8u: goto L_3C0089D8; 549 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 550 } 551 RECOMP_REGS_OUT(); 552 } 553 554 void sub_3C0089DE(void) { 555 int _fpu_cmp = 0; 556 uint32_t _cf = 0; 557 int _df = 1; 558 uint32_t _flag_k = FK_NONE; 559 uint32_t _flag_a = 0, _flag_b = 0; 560 uint32_t _itail_tgt = 0; 561 RECOMP_REGS_LOCALS 562 RECOMP_ENTER(0x3C0089DEu); 563 564 L_3C0089DE: 565 PUSH32(esp, MEM32(esp + 0x4)); /* 0x3C0089DE: push dword ptr [esp + 4] */ 566 RECOMP_ICALL(0x3C008CA0u); /* 0x3C0089E2: call 0x3c008ca0 */ /* not lifted */ 567 RECOMP_FLAGS_IN(); 568 ecx = POP32_VAL(esp); /* 0x3C0089E7: pop ecx */ 569 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0089E8: ret */ 570 RECOMP_REGS_OUT(); 571 } 572 573 void sub_3C0089E9(void) { 574 int _fpu_cmp = 0; 575 uint32_t _cf = 0; 576 int _df = 1; 577 uint32_t _flag_k = FK_NONE; 578 uint32_t _flag_a = 0, _flag_b = 0; 579 uint32_t _itail_tgt = 0; 580 RECOMP_REGS_LOCALS 581 RECOMP_ENTER(0x3C0089E9u); 582 583 L_3C0089E9: 584 /* cmp MEM32(0x3C00D3E8), 0xFFFFFFFFu */ /* 0x3C0089E9: cmp dword ptr [0x3c00d3e8], -1 */ 585 _flag_a = (uint32_t)(MEM32(0x3C00D3E8)); _flag_b = (uint32_t)(0xFFFFFFFFu); 586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 587 _flag_k = FK_CMP; 588 if (CMP_NE(_flag_a, _flag_b)) goto L_3C0089FE; /* 0x3C0089F0: jne 0x3c0089fe */ 589 L_3C0089F2: 590 PUSH32(esp, MEM32(esp + 0x4)); /* 0x3C0089F2: push dword ptr [esp + 4] */ 591 RECOMP_ICALL(MEM32(0x3C009024)); /* 0x3C0089F6: call dword ptr [0x3c009024] */ 592 RECOMP_FLAGS_IN(); 593 ecx = POP32_VAL(esp); /* 0x3C0089FC: pop ecx */ 594 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0089FD: ret */ 595 L_3C0089FE: 596 PUSH32(esp, 0x3C00D3E4u); /* 0x3C0089FE: push 0x3c00d3e4 */ 597 PUSH32(esp, 0x3C00D3E8u); /* 0x3C008A03: push 0x3c00d3e8 */ 598 PUSH32(esp, MEM32(esp + 0xC)); /* 0x3C008A08: push dword ptr [esp + 0xc] */ 599 RECOMP_ICALL(0x3C008CA6u); /* 0x3C008A0C: call 0x3c008ca6 */ /* not lifted */ 600 RECOMP_FLAGS_IN(); 601 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 602 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 603 esp = esp + 0xCu; /* 0x3C008A11: add esp, 0xc */ 604 _flag_k = FK_ADD; 605 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008A14: ret */ 606 RECOMP_REGS_OUT(); 607 } 608 609 void sub_3C008A15(void) { 610 int _fpu_cmp = 0; 611 uint32_t _cf = 0; 612 int _df = 1; 613 uint32_t _flag_k = FK_NONE; 614 uint32_t _flag_a = 0, _flag_b = 0; 615 uint32_t _itail_tgt = 0; 616 RECOMP_REGS_LOCALS 617 RECOMP_ENTER(0x3C008A15u); 618 619 L_3C008A15: 620 PUSH32(esp, MEM32(esp + 0x4)); /* 0x3C008A15: push dword ptr [esp + 4] */ 621 RECOMP_ICALL(0x3C0089E9u); /* 0x3C008A19: call 0x3c0089e9 */ /* not lifted */ 622 RECOMP_FLAGS_IN(); 623 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 624 _cf = (eax) != 0; 625 eax = (uint32_t)(-(int32_t)eax); /* 0x3C008A1E: neg eax */ 626 _flag_k = FK_CMP; 627 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3C008A20: sbb eax, eax */ 628 eax = _sc ? 0xFFFFFFFFu : 0; 629 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 630 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 631 ecx = POP32_VAL(esp); /* 0x3C008A22: pop ecx */ 632 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 633 _cf = (eax) != 0; 634 eax = (uint32_t)(-(int32_t)eax); /* 0x3C008A23: neg eax */ 635 _flag_k = FK_CMP; 636 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 637 eax = eax - 1; /* 0x3C008A25: dec eax */ 638 _flag_k = FK_DEC; 639 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008A26: ret */ 640 RECOMP_REGS_OUT(); 641 } 642 643 void sub_3C008A28(void) { 644 int _fpu_cmp = 0; 645 uint32_t _cf = 0; 646 int _df = 1; 647 uint32_t _flag_k = FK_NONE; 648 uint32_t _flag_a = 0, _flag_b = 0; 649 uint32_t _itail_tgt = 0; 650 RECOMP_REGS_LOCALS 651 RECOMP_ENTER(0x3C008A28u); 652 653 L_3C008A28: 654 { _itail_tgt = (uint32_t)(MEM32(0x3C00902C)); goto _ljump; } 655 { RECOMP_REGS_OUT(); return; } /* end of function */ 656 _ljump: 657 switch (_itail_tgt) { 658 case 0x3C008A28u: goto L_3C008A28; 659 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 660 } 661 RECOMP_REGS_OUT(); 662 } 663 664 void sub_3C008A2E(void) { 665 int _fpu_cmp = 0; 666 uint32_t _cf = 0; 667 int _df = 1; 668 uint32_t _flag_k = FK_NONE; 669 uint32_t _flag_a = 0, _flag_b = 0; 670 uint32_t _itail_tgt = 0; 671 RECOMP_REGS_LOCALS 672 RECOMP_ENTER(0x3C008A2Eu); 673 674 L_3C008A2E: 675 PUSH32(esp, esi); /* 0x3C008A2E: push esi */ 676 esi = ecx; /* 0x3C008A2F: mov esi, ecx */ 677 RECOMP_ICALL(0x3C008CACu); /* 0x3C008A31: call 0x3c008cac */ /* not lifted */ 678 RECOMP_FLAGS_IN(); 679 /* test MEM8(esp + 0x8), 1 */ /* 0x3C008A36: test byte ptr [esp + 8], 1 */ 680 _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 681 _cf = 0; 682 _flag_k = FK_NARROW(FK_TEST, 24); 683 if (TEST_Z(_flag_a, _flag_b)) goto L_3C008A44; /* 0x3C008A3B: je 0x3c008a44 */ 684 L_3C008A3D: 685 PUSH32(esp, esi); /* 0x3C008A3D: push esi */ 686 RECOMP_ICALL(0x3C0089DEu); /* 0x3C008A3E: call 0x3c0089de */ /* not lifted */ 687 RECOMP_FLAGS_IN(); 688 ecx = POP32_VAL(esp); /* 0x3C008A43: pop ecx */ 689 L_3C008A44: 690 eax = esi; /* 0x3C008A44: mov eax, esi */ 691 esi = POP32_VAL(esp); /* 0x3C008A46: pop esi */ 692 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C008A47: ret 4 */ 693 RECOMP_REGS_OUT(); 694 } 695 696 void sub_3C008A4A(void) { 697 int _fpu_cmp = 0; 698 uint32_t _cf = 0; 699 int _df = 1; 700 uint32_t _flag_k = FK_NONE; 701 uint32_t _flag_a = 0, _flag_b = 0; 702 uint32_t _itail_tgt = 0; 703 RECOMP_REGS_LOCALS 704 RECOMP_ENTER(0x3C008A4Au); 705 706 L_3C008A4A: 707 PUSH32(esp, ebp); /* 0x3C008A4A: push ebp */ 708 ebp = esp; /* 0x3C008A4B: mov ebp, esp */ 709 PUSH32(esp, 0xFFFFFFFFu); /* 0x3C008A4D: push -1 */ 710 PUSH32(esp, 0x3C009300u); /* 0x3C008A4F: push 0x3c009300 */ 711 PUSH32(esp, 0x3C008CB2u); /* 0x3C008A54: push 0x3c008cb2 */ 712 eax = MEM32(FS_BASE + (0)); /* 0x3C008A59: mov eax, dword ptr fs:[0] */ 713 PUSH32(esp, eax); /* 0x3C008A5F: push eax */ 714 MEM32(FS_BASE + (0)) = esp; /* 0x3C008A60: mov dword ptr fs:[0], esp */ 715 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 717 esp = esp - 0xCu; /* 0x3C008A67: sub esp, 0xc */ 718 _flag_k = FK_CMP; 719 PUSH32(esp, ebx); /* 0x3C008A6A: push ebx */ 720 PUSH32(esp, esi); /* 0x3C008A6B: push esi */ 721 PUSH32(esp, edi); /* 0x3C008A6C: push edi */ 722 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(0); 723 MEM32(ebp + (-0x1C)) = MEM32(ebp + (-0x1C)) & 0; /* 0x3C008A6D: and dword ptr [ebp - 0x1c], 0 */ 724 _cf = 0; 725 _flag_k = FK_TEST; 726 esi = MEM32(ebp + 0xC); /* 0x3C008A71: mov esi, dword ptr [ebp + 0xc] */ 727 eax = esi; /* 0x3C008A74: mov eax, esi */ 728 eax = (uint32_t)((int32_t)eax * (int32_t)MEM32(ebp + 0x10)); /* 0x3C008A76: imul eax, dword ptr [ebp + 0x10] */ 729 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(eax); 730 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 731 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) + eax; /* 0x3C008A7A: add dword ptr [ebp + 8], eax */ 732 _flag_k = FK_ADD; 733 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 734 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x3C008A7D: and dword ptr [ebp - 4], 0 */ 735 _cf = 0; 736 _flag_k = FK_TEST; 737 L_3C008A81: 738 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1); 739 MEM32(ebp + 0x10) = MEM32(ebp + 0x10) - 1; /* 0x3C008A81: dec dword ptr [ebp + 0x10] */ 740 _flag_k = FK_DEC; 741 if (/* dec result */ CMP_S(_flag_a, _flag_b)) goto L_3C008A91; /* 0x3C008A84: js 0x3c008a91 */ 742 L_3C008A86: 743 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(esi); 744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 745 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) - esi; /* 0x3C008A86: sub dword ptr [ebp + 8], esi */ 746 _flag_k = FK_CMP; 747 ecx = MEM32(ebp + 0x8); /* 0x3C008A89: mov ecx, dword ptr [ebp + 8] */ 748 RECOMP_ICALL(MEM32(ebp + 0x14)); /* 0x3C008A8C: call dword ptr [ebp + 0x14] */ 749 RECOMP_FLAGS_IN(); 750 RECOMP_BACKEDGE(); 751 goto L_3C008A81; /* 0x3C008A8F: jmp 0x3c008a81 */ 752 L_3C008A91: 753 MEM32(ebp + (-0x1C)) = 1; /* 0x3C008A91: mov dword ptr [ebp - 0x1c], 1 */ 754 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 755 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x3C008A98: or dword ptr [ebp - 4], 0xffffffff */ 756 _cf = 0; 757 _flag_k = FK_TEST; 758 RECOMP_ICALL(0x3C008AB2u); /* 0x3C008A9C: call 0x3c008ab2 */ /* not lifted */ 759 RECOMP_FLAGS_IN(); 760 ecx = MEM32(ebp + (-0x10)); /* 0x3C008AA1: mov ecx, dword ptr [ebp - 0x10] */ 761 MEM32(FS_BASE + (0)) = ecx; /* 0x3C008AA4: mov dword ptr fs:[0], ecx */ 762 edi = POP32_VAL(esp); /* 0x3C008AAB: pop edi */ 763 esi = POP32_VAL(esp); /* 0x3C008AAC: pop esi */ 764 ebx = POP32_VAL(esp); /* 0x3C008AAD: pop ebx */ 765 esp = ebp; ebp = POP32_VAL(esp); /* 0x3C008AAE: leave */ 766 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C008AAF: ret 0x10 */ 767 RECOMP_REGS_OUT(); 768 } 769 770 void sub_3C008AB2(void) { 771 int _fpu_cmp = 0; 772 uint32_t _cf = 0; 773 int _df = 1; 774 uint32_t _flag_k = FK_NONE; 775 uint32_t _flag_a = 0, _flag_b = 0; 776 uint32_t _itail_tgt = 0; 777 RECOMP_REGS_LOCALS 778 RECOMP_ENTER(0x3C008AB2u); 779 780 L_3C008AB2: 781 /* cmp MEM32(ebp + (-0x1C)), 0 */ /* 0x3C008AB2: cmp dword ptr [ebp - 0x1c], 0 */ 782 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(0); 783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 784 _flag_k = FK_CMP; 785 if (CMP_NE(_flag_a, _flag_b)) goto L_3C008AC9; /* 0x3C008AB6: jne 0x3c008ac9 */ 786 L_3C008AB8: 787 PUSH32(esp, MEM32(ebp + 0x14)); /* 0x3C008AB8: push dword ptr [ebp + 0x14] */ 788 PUSH32(esp, MEM32(ebp + 0x10)); /* 0x3C008ABB: push dword ptr [ebp + 0x10] */ 789 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x3C008ABE: push dword ptr [ebp + 0xc] */ 790 PUSH32(esp, MEM32(ebp + 0x8)); /* 0x3C008AC1: push dword ptr [ebp + 8] */ 791 RECOMP_ICALL(0x3C008ACAu); /* 0x3C008AC4: call 0x3c008aca */ /* not lifted */ 792 RECOMP_FLAGS_IN(); 793 L_3C008AC9: 794 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008AC9: ret */ 795 RECOMP_REGS_OUT(); 796 } 797 798 void sub_3C008ACA(void) { 799 int _fpu_cmp = 0; 800 uint32_t _cf = 0; 801 int _df = 1; 802 uint32_t _flag_k = FK_NONE; 803 uint32_t _flag_a = 0, _flag_b = 0; 804 uint32_t _itail_tgt = 0; 805 RECOMP_REGS_LOCALS 806 RECOMP_ENTER(0x3C008ACAu); 807 808 L_3C008ACA: 809 PUSH32(esp, ebp); /* 0x3C008ACA: push ebp */ 810 ebp = esp; /* 0x3C008ACB: mov ebp, esp */ 811 PUSH32(esp, 0xFFFFFFFFu); /* 0x3C008ACD: push -1 */ 812 PUSH32(esp, 0x3C009310u); /* 0x3C008ACF: push 0x3c009310 */ 813 PUSH32(esp, 0x3C008CB2u); /* 0x3C008AD4: push 0x3c008cb2 */ 814 eax = MEM32(FS_BASE + (0)); /* 0x3C008AD9: mov eax, dword ptr fs:[0] */ 815 PUSH32(esp, eax); /* 0x3C008ADF: push eax */ 816 MEM32(FS_BASE + (0)) = esp; /* 0x3C008AE0: mov dword ptr fs:[0], esp */ 817 PUSH32(esp, ecx); /* 0x3C008AE7: push ecx */ 818 PUSH32(esp, ecx); /* 0x3C008AE8: push ecx */ 819 PUSH32(esp, ebx); /* 0x3C008AE9: push ebx */ 820 PUSH32(esp, esi); /* 0x3C008AEA: push esi */ 821 PUSH32(esp, edi); /* 0x3C008AEB: push edi */ 822 MEM32(ebp + (-0x18)) = esp; /* 0x3C008AEC: mov dword ptr [ebp - 0x18], esp */ 823 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 824 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x3C008AEF: and dword ptr [ebp - 4], 0 */ 825 _cf = 0; 826 _flag_k = FK_TEST; 827 L_3C008AF3: 828 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1); 829 MEM32(ebp + 0x10) = MEM32(ebp + 0x10) - 1; /* 0x3C008AF3: dec dword ptr [ebp + 0x10] */ 830 _flag_k = FK_DEC; 831 if (/* dec result */ CMP_S(_flag_a, _flag_b)) goto L_3C008B13; /* 0x3C008AF6: js 0x3c008b13 */ 832 L_3C008AF8: 833 ecx = MEM32(ebp + 0x8); /* 0x3C008AF8: mov ecx, dword ptr [ebp + 8] */ 834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 836 ecx = ecx - MEM32(ebp + 0xC); /* 0x3C008AFB: sub ecx, dword ptr [ebp + 0xc] */ 837 _flag_k = FK_CMP; 838 MEM32(ebp + 0x8) = ecx; /* 0x3C008AFE: mov dword ptr [ebp + 8], ecx */ 839 RECOMP_ICALL(MEM32(ebp + 0x14)); /* 0x3C008B01: call dword ptr [ebp + 0x14] */ 840 RECOMP_FLAGS_IN(); 841 RECOMP_BACKEDGE(); 842 goto L_3C008AF3; /* 0x3C008B04: jmp 0x3c008af3 */ 843 L_3C008B13: 844 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 845 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x3C008B13: or dword ptr [ebp - 4], 0xffffffff */ 846 _cf = 0; 847 _flag_k = FK_TEST; 848 ecx = MEM32(ebp + (-0x10)); /* 0x3C008B17: mov ecx, dword ptr [ebp - 0x10] */ 849 MEM32(FS_BASE + (0)) = ecx; /* 0x3C008B1A: mov dword ptr fs:[0], ecx */ 850 edi = POP32_VAL(esp); /* 0x3C008B21: pop edi */ 851 esi = POP32_VAL(esp); /* 0x3C008B22: pop esi */ 852 ebx = POP32_VAL(esp); /* 0x3C008B23: pop ebx */ 853 esp = ebp; ebp = POP32_VAL(esp); /* 0x3C008B24: leave */ 854 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C008B25: ret 0x10 */ 855 RECOMP_REGS_OUT(); 856 } 857 858 void sub_3C008B06(void) { 859 int _fpu_cmp = 0; 860 uint32_t _cf = 0; 861 int _df = 1; 862 uint32_t _flag_k = FK_NONE; 863 uint32_t _flag_a = 0, _flag_b = 0; 864 uint32_t _itail_tgt = 0; 865 RECOMP_REGS_LOCALS 866 RECOMP_ENTER(0x3C008B06u); 867 868 L_3C008B06: 869 PUSH32(esp, MEM32(ebp + (-0x14))); /* 0x3C008B06: push dword ptr [ebp - 0x14] */ 870 RECOMP_ICALL(0x3C008B28u); /* 0x3C008B09: call 0x3c008b28 */ /* not lifted */ 871 RECOMP_FLAGS_IN(); 872 ecx = POP32_VAL(esp); /* 0x3C008B0E: pop ecx */ 873 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008B0F: ret */ 874 RECOMP_REGS_OUT(); 875 } 876 877 void sub_3C008B10(void) { 878 int _fpu_cmp = 0; 879 uint32_t _cf = 0; 880 int _df = 1; 881 uint32_t _flag_k = FK_NONE; 882 uint32_t _flag_a = 0, _flag_b = 0; 883 uint32_t _itail_tgt = 0; 884 RECOMP_REGS_LOCALS 885 RECOMP_ENTER(0x3C008B10u); 886 887 L_3C008B10: 888 esp = MEM32(ebp + (-0x18)); /* 0x3C008B10: mov esp, dword ptr [ebp - 0x18] */ 889 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 890 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x3C008B13: or dword ptr [ebp - 4], 0xffffffff */ 891 _cf = 0; 892 _flag_k = FK_TEST; 893 ecx = MEM32(ebp + (-0x10)); /* 0x3C008B17: mov ecx, dword ptr [ebp - 0x10] */ 894 MEM32(FS_BASE + (0)) = ecx; /* 0x3C008B1A: mov dword ptr fs:[0], ecx */ 895 edi = POP32_VAL(esp); /* 0x3C008B21: pop edi */ 896 esi = POP32_VAL(esp); /* 0x3C008B22: pop esi */ 897 ebx = POP32_VAL(esp); /* 0x3C008B23: pop ebx */ 898 esp = ebp; ebp = POP32_VAL(esp); /* 0x3C008B24: leave */ 899 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C008B25: ret 0x10 */ 900 RECOMP_REGS_OUT(); 901 } 902 903 void sub_3C008B13(void) { 904 int _fpu_cmp = 0; 905 uint32_t _cf = 0; 906 int _df = 1; 907 uint32_t _flag_k = FK_NONE; 908 uint32_t _flag_a = 0, _flag_b = 0; 909 uint32_t _itail_tgt = 0; 910 RECOMP_REGS_LOCALS 911 RECOMP_ENTER(0x3C008B13u); 912 913 L_3C008B13: 914 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 915 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x3C008B13: or dword ptr [ebp - 4], 0xffffffff */ 916 _cf = 0; 917 _flag_k = FK_TEST; 918 ecx = MEM32(ebp + (-0x10)); /* 0x3C008B17: mov ecx, dword ptr [ebp - 0x10] */ 919 MEM32(FS_BASE + (0)) = ecx; /* 0x3C008B1A: mov dword ptr fs:[0], ecx */ 920 edi = POP32_VAL(esp); /* 0x3C008B21: pop edi */ 921 esi = POP32_VAL(esp); /* 0x3C008B22: pop esi */ 922 ebx = POP32_VAL(esp); /* 0x3C008B23: pop ebx */ 923 esp = ebp; ebp = POP32_VAL(esp); /* 0x3C008B24: leave */ 924 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3C008B25: ret 0x10 */ 925 RECOMP_REGS_OUT(); 926 } 927 928 void sub_3C008B28(void) { 929 int _fpu_cmp = 0; 930 uint32_t _cf = 0; 931 int _df = 1; 932 uint32_t _flag_k = FK_NONE; 933 uint32_t _flag_a = 0, _flag_b = 0; 934 uint32_t _itail_tgt = 0; 935 RECOMP_REGS_LOCALS 936 RECOMP_ENTER(0x3C008B28u); 937 938 L_3C008B28: 939 eax = MEM32(esp + 0x4); /* 0x3C008B28: mov eax, dword ptr [esp + 4] */ 940 L_3C008B2C: 941 eax = MEM32(eax); /* 0x3C008B2C: mov eax, dword ptr [eax] */ 942 L_3C008B2E: 943 /* cmp MEM32(eax), 0xE06D7363u */ /* 0x3C008B2E: cmp dword ptr [eax], 0xe06d7363 */ 944 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xE06D7363u); 945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 946 _flag_k = FK_CMP; 947 L_3C008B34: 948 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3C008B39; /* 0x3C008B34: je 0x3c008b39 */ 949 L_3C008B36: 950 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 951 eax = 0; /* 0x3C008B36: xor eax, eax */ 952 _cf = 0; 953 _flag_k = FK_TEST; 954 L_3C008B38: 955 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008B38: ret */ 956 L_3C008B39: 957 goto L_3C008CB8; /* 0x3C008B39: jmp 0x3c008cb8 */ 958 L_3C008CB8: 959 { _itail_tgt = (uint32_t)(MEM32(0x3C009030)); goto _ljump; } 960 { RECOMP_REGS_OUT(); return; } /* end of function */ 961 _ljump: 962 switch (_itail_tgt) { 963 case 0x3C008B28u: goto L_3C008B28; 964 case 0x3C008B2Cu: goto L_3C008B2C; 965 case 0x3C008B2Eu: goto L_3C008B2E; 966 case 0x3C008B34u: goto L_3C008B34; 967 case 0x3C008B36u: goto L_3C008B36; 968 case 0x3C008B38u: goto L_3C008B38; 969 case 0x3C008B39u: goto L_3C008B39; 970 case 0x3C008CB8u: goto L_3C008CB8; 971 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 972 } 973 RECOMP_REGS_OUT(); 974 } 975 976 void sub_3C008B40(void) { 977 int _fpu_cmp = 0; 978 uint32_t _cf = 0; 979 int _df = 1; 980 uint32_t _flag_k = FK_NONE; 981 uint32_t _flag_a = 0, _flag_b = 0; 982 uint32_t _itail_tgt = 0; 983 RECOMP_REGS_LOCALS 984 RECOMP_ENTER(0x3C008B40u); 985 986 L_3C008B40: 987 { _itail_tgt = (uint32_t)(MEM32(0x3C009034)); goto _ljump; } 988 { RECOMP_REGS_OUT(); return; } /* end of function */ 989 _ljump: 990 switch (_itail_tgt) { 991 case 0x3C008B40u: goto L_3C008B40; 992 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 993 } 994 RECOMP_REGS_OUT(); 995 } 996 997 void sub_3C008B46(void) { 998 int _fpu_cmp = 0; 999 uint32_t _cf = 0; 1000 int _df = 1; 1001 uint32_t _flag_k = FK_NONE; 1002 uint32_t _flag_a = 0, _flag_b = 0; 1003 uint32_t _itail_tgt = 0; 1004 RECOMP_REGS_LOCALS 1005 RECOMP_ENTER(0x3C008B46u); 1006 1007 L_3C008B46: 1008 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 1009 { RECOMP_REGS_OUT(); return; } /* end of function */ 1010 _ljump: 1011 switch (_itail_tgt) { 1012 case 0x3C008B46u: goto L_3C008B46; 1013 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1014 } 1015 RECOMP_REGS_OUT(); 1016 } 1017 1018 void sub_3C008B4C(void) { 1019 int _fpu_cmp = 0; 1020 uint32_t _cf = 0; 1021 int _df = 1; 1022 uint32_t _flag_k = FK_NONE; 1023 uint32_t _flag_a = 0, _flag_b = 0; 1024 uint32_t _itail_tgt = 0; 1025 RECOMP_REGS_LOCALS 1026 RECOMP_ENTER(0x3C008B4Cu); 1027 1028 L_3C008B4C: 1029 { _itail_tgt = (uint32_t)(MEM32(0x3C00904C)); goto _ljump; } 1030 { RECOMP_REGS_OUT(); return; } /* end of function */ 1031 _ljump: 1032 switch (_itail_tgt) { 1033 case 0x3C008B4Cu: goto L_3C008B4C; 1034 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1035 } 1036 RECOMP_REGS_OUT(); 1037 } 1038 1039 void sub_3C008B52(void) { 1040 int _fpu_cmp = 0; 1041 uint32_t _cf = 0; 1042 int _df = 1; 1043 uint32_t _flag_k = FK_NONE; 1044 uint32_t _flag_a = 0, _flag_b = 0; 1045 uint32_t _itail_tgt = 0; 1046 RECOMP_REGS_LOCALS 1047 RECOMP_ENTER(0x3C008B52u); 1048 1049 L_3C008B52: 1050 { _itail_tgt = (uint32_t)(MEM32(0x3C009048)); goto _ljump; } 1051 { RECOMP_REGS_OUT(); return; } /* end of function */ 1052 _ljump: 1053 switch (_itail_tgt) { 1054 case 0x3C008B52u: goto L_3C008B52; 1055 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1056 } 1057 RECOMP_REGS_OUT(); 1058 } 1059 1060 void sub_3C008B58(void) { 1061 int _fpu_cmp = 0; 1062 uint32_t _cf = 0; 1063 int _df = 1; 1064 uint32_t _flag_k = FK_NONE; 1065 uint32_t _flag_a = 0, _flag_b = 0; 1066 uint32_t _itail_tgt = 0; 1067 RECOMP_REGS_LOCALS 1068 RECOMP_ENTER(0x3C008B58u); 1069 1070 L_3C008B58: 1071 eax = MEM32(esp + 0x8); /* 0x3C008B58: mov eax, dword ptr [esp + 8] */ 1072 /* test eax, eax */ /* 0x3C008B5C: test eax, eax */ 1073 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1074 _cf = 0; 1075 _flag_k = FK_TEST; 1076 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C008B6E; /* 0x3C008B5E: jne 0x3c008b6e */ 1077 L_3C008B60: 1078 /* cmp MEM32(0x3C00D3AC), eax */ /* 0x3C008B60: cmp dword ptr [0x3c00d3ac], eax */ 1079 _flag_a = (uint32_t)(MEM32(0x3C00D3AC)); _flag_b = (uint32_t)(eax); 1080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1081 _flag_k = FK_CMP; 1082 if (CMP_LE(_flag_a, _flag_b)) goto L_3C008B96; /* 0x3C008B66: jle 0x3c008b96 */ 1083 L_3C008B68: 1084 _flag_a = (uint32_t)(MEM32(0x3C00D3AC)); _flag_b = (uint32_t)(1); 1085 MEM32(0x3C00D3AC) = MEM32(0x3C00D3AC) - 1; /* 0x3C008B68: dec dword ptr [0x3c00d3ac] */ 1086 _flag_k = FK_DEC; 1087 L_3C008B6E: 1088 ecx = MEM32(0x3C00903C); /* 0x3C008B6E: mov ecx, dword ptr [0x3c00903c] */ 1089 /* cmp eax, 1 */ /* 0x3C008B74: cmp eax, 1 */ 1090 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1092 _flag_k = FK_CMP; 1093 ecx = MEM32(ecx); /* 0x3C008B77: mov ecx, dword ptr [ecx] */ 1094 MEM32(0x3C00D3DC) = ecx; /* 0x3C008B79: mov dword ptr [0x3c00d3dc], ecx */ 1095 if (CMP_NE(_flag_a, _flag_b)) goto L_3C008BC0; /* 0x3C008B7F: jne 0x3c008bc0 */ 1096 L_3C008B81: 1097 PUSH32(esp, 0x80u); /* 0x3C008B81: push 0x80 */ 1098 RECOMP_ICALL(MEM32(0x3C009040)); /* 0x3C008B86: call dword ptr [0x3c009040] */ 1099 RECOMP_FLAGS_IN(); 1100 /* test eax, eax */ /* 0x3C008B8C: test eax, eax */ 1101 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1102 _cf = 0; 1103 _flag_k = FK_TEST; 1104 ecx = POP32_VAL(esp); /* 0x3C008B8E: pop ecx */ 1105 MEM32(0x3C00D3E8) = eax; /* 0x3C008B8F: mov dword ptr [0x3c00d3e8], eax */ 1106 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C008B9A; /* 0x3C008B94: jne 0x3c008b9a */ 1107 L_3C008B96: 1108 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1109 eax = 0; /* 0x3C008B96: xor eax, eax */ 1110 _cf = 0; 1111 _flag_k = FK_TEST; 1112 goto L_3C008C00; /* 0x3C008B98: jmp 0x3c008c00 */ 1113 L_3C008B9A: 1114 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 1115 MEM32(eax) = MEM32(eax) & 0; /* 0x3C008B9A: and dword ptr [eax], 0 */ 1116 _cf = 0; 1117 _flag_k = FK_TEST; 1118 eax = MEM32(0x3C00D3E8); /* 0x3C008B9D: mov eax, dword ptr [0x3c00d3e8] */ 1119 PUSH32(esp, 0x3C00D02Cu); /* 0x3C008BA2: push 0x3c00d02c */ 1120 PUSH32(esp, 0x3C00D000u); /* 0x3C008BA7: push 0x3c00d000 */ 1121 MEM32(0x3C00D3E4) = eax; /* 0x3C008BAC: mov dword ptr [0x3c00d3e4], eax */ 1122 RECOMP_ICALL(0x3C008CBEu); /* 0x3C008BB1: call 0x3c008cbe */ /* not lifted */ 1123 RECOMP_FLAGS_IN(); 1124 _flag_a = (uint32_t)(MEM32(0x3C00D3AC)); _flag_b = (uint32_t)(1); 1125 MEM32(0x3C00D3AC) = MEM32(0x3C00D3AC) + 1; /* 0x3C008BB6: inc dword ptr [0x3c00d3ac] */ 1126 _flag_k = FK_INC; 1127 ecx = POP32_VAL(esp); /* 0x3C008BBC: pop ecx */ 1128 ecx = POP32_VAL(esp); /* 0x3C008BBD: pop ecx */ 1129 goto L_3C008BFD; /* 0x3C008BBE: jmp 0x3c008bfd */ 1130 L_3C008BC0: 1131 /* test eax, eax */ /* 0x3C008BC0: test eax, eax */ 1132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1133 _cf = 0; 1134 _flag_k = FK_TEST; 1135 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C008BFD; /* 0x3C008BC2: jne 0x3c008bfd */ 1136 L_3C008BC4: 1137 eax = MEM32(0x3C00D3E8); /* 0x3C008BC4: mov eax, dword ptr [0x3c00d3e8] */ 1138 /* test eax, eax */ /* 0x3C008BC9: test eax, eax */ 1139 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1140 _cf = 0; 1141 _flag_k = FK_TEST; 1142 if (TEST_Z(_flag_a, _flag_b)) goto L_3C008BFD; /* 0x3C008BCB: je 0x3c008bfd */ 1143 L_3C008BCD: 1144 ecx = MEM32(0x3C00D3E4); /* 0x3C008BCD: mov ecx, dword ptr [0x3c00d3e4] */ 1145 PUSH32(esp, esi); /* 0x3C008BD3: push esi */ 1146 esi = ecx + (-0x4); /* 0x3C008BD4: lea esi, [ecx - 4] */ 1147 L_3C008BD7: 1148 /* cmp esi, eax */ /* 0x3C008BD7: cmp esi, eax */ 1149 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1151 _flag_k = FK_CMP; 1152 if (CMP_B(_flag_a, _flag_b)) goto L_3C008BED; /* 0x3C008BD9: jb 0x3c008bed */ 1153 L_3C008BDB: 1154 ecx = MEM32(esi); /* 0x3C008BDB: mov ecx, dword ptr [esi] */ 1155 /* test ecx, ecx */ /* 0x3C008BDD: test ecx, ecx */ 1156 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1157 _cf = 0; 1158 _flag_k = FK_TEST; 1159 if (TEST_Z(_flag_a, _flag_b)) goto L_3C008BE8; /* 0x3C008BDF: je 0x3c008be8 */ 1160 L_3C008BE1: 1161 RECOMP_ICALL(ecx); /* 0x3C008BE1: call ecx */ 1162 RECOMP_FLAGS_IN(); 1163 eax = MEM32(0x3C00D3E8); /* 0x3C008BE3: mov eax, dword ptr [0x3c00d3e8] */ 1164 L_3C008BE8: 1165 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 1166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1167 esi = esi - 4; /* 0x3C008BE8: sub esi, 4 */ 1168 _flag_k = FK_CMP; 1169 RECOMP_BACKEDGE(); 1170 goto L_3C008BD7; /* 0x3C008BEB: jmp 0x3c008bd7 */ 1171 L_3C008BED: 1172 PUSH32(esp, eax); /* 0x3C008BED: push eax */ 1173 RECOMP_ICALL(MEM32(0x3C009054)); /* 0x3C008BEE: call dword ptr [0x3c009054] */ 1174 RECOMP_FLAGS_IN(); 1175 _flag_a = (uint32_t)(MEM32(0x3C00D3E8)); _flag_b = (uint32_t)(0); 1176 MEM32(0x3C00D3E8) = MEM32(0x3C00D3E8) & 0; /* 0x3C008BF4: and dword ptr [0x3c00d3e8], 0 */ 1177 _cf = 0; 1178 _flag_k = FK_TEST; 1179 ecx = POP32_VAL(esp); /* 0x3C008BFB: pop ecx */ 1180 esi = POP32_VAL(esp); /* 0x3C008BFC: pop esi */ 1181 L_3C008BFD: 1182 PUSH32(esp, 1); /* 0x3C008BFD: push 1 */ 1183 eax = POP32_VAL(esp); /* 0x3C008BFF: pop eax */ 1184 L_3C008C00: 1185 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C008C00: ret 0xc */ 1186 RECOMP_REGS_OUT(); 1187 } 1188 1189 void sub_3C008C03(void) { 1190 int _fpu_cmp = 0; 1191 uint32_t _cf = 0; 1192 int _df = 1; 1193 uint32_t _flag_k = FK_NONE; 1194 uint32_t _flag_a = 0, _flag_b = 0; 1195 uint32_t _itail_tgt = 0; 1196 RECOMP_REGS_LOCALS 1197 RECOMP_ENTER(0x3C008C03u); 1198 1199 L_3C008C03: 1200 PUSH32(esp, ebp); /* 0x3C008C03: push ebp */ 1201 ebp = esp; /* 0x3C008C04: mov ebp, esp */ 1202 PUSH32(esp, ebx); /* 0x3C008C06: push ebx */ 1203 ebx = MEM32(ebp + 0x8); /* 0x3C008C07: mov ebx, dword ptr [ebp + 8] */ 1204 PUSH32(esp, esi); /* 0x3C008C0A: push esi */ 1205 esi = MEM32(ebp + 0xC); /* 0x3C008C0B: mov esi, dword ptr [ebp + 0xc] */ 1206 PUSH32(esp, edi); /* 0x3C008C0E: push edi */ 1207 edi = MEM32(ebp + 0x10); /* 0x3C008C0F: mov edi, dword ptr [ebp + 0x10] */ 1208 /* test esi, esi */ /* 0x3C008C12: test esi, esi */ 1209 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1210 _cf = 0; 1211 _flag_k = FK_TEST; 1212 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C008C1F; /* 0x3C008C14: jne 0x3c008c1f */ 1213 L_3C008C16: 1214 /* cmp MEM32(0x3C00D3AC), 0 */ /* 0x3C008C16: cmp dword ptr [0x3c00d3ac], 0 */ 1215 _flag_a = (uint32_t)(MEM32(0x3C00D3AC)); _flag_b = (uint32_t)(0); 1216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1217 _flag_k = FK_CMP; 1218 goto L_3C008C45; /* 0x3C008C1D: jmp 0x3c008c45 */ 1219 L_3C008C1F: 1220 /* cmp esi, 1 */ /* 0x3C008C1F: cmp esi, 1 */ 1221 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1223 _flag_k = FK_CMP; 1224 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C008C29; /* 0x3C008C22: je 0x3c008c29 */ 1225 L_3C008C24: 1226 /* cmp esi, 2 */ /* 0x3C008C24: cmp esi, 2 */ 1227 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 1228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1229 _flag_k = FK_CMP; 1230 if (CMP_NE(_flag_a, _flag_b)) goto L_3C008C4B; /* 0x3C008C27: jne 0x3c008c4b */ 1231 L_3C008C29: 1232 eax = MEM32(0x3C00D3E0); /* 0x3C008C29: mov eax, dword ptr [0x3c00d3e0] */ 1233 /* test eax, eax */ /* 0x3C008C2E: test eax, eax */ 1234 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1235 _cf = 0; 1236 _flag_k = FK_TEST; 1237 if (TEST_Z(_flag_a, _flag_b)) goto L_3C008C3B; /* 0x3C008C30: je 0x3c008c3b */ 1238 L_3C008C32: 1239 PUSH32(esp, edi); /* 0x3C008C32: push edi */ 1240 PUSH32(esp, esi); /* 0x3C008C33: push esi */ 1241 PUSH32(esp, ebx); /* 0x3C008C34: push ebx */ 1242 RECOMP_ICALL(eax); /* 0x3C008C35: call eax */ 1243 RECOMP_FLAGS_IN(); 1244 /* test eax, eax */ /* 0x3C008C37: test eax, eax */ 1245 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1246 _cf = 0; 1247 _flag_k = FK_TEST; 1248 if (TEST_Z(_flag_a, _flag_b)) goto L_3C008C47; /* 0x3C008C39: je 0x3c008c47 */ 1249 L_3C008C3B: 1250 PUSH32(esp, edi); /* 0x3C008C3B: push edi */ 1251 PUSH32(esp, esi); /* 0x3C008C3C: push esi */ 1252 PUSH32(esp, ebx); /* 0x3C008C3D: push ebx */ 1253 RECOMP_ICALL(0x3C008B58u); /* 0x3C008C3E: call 0x3c008b58 */ /* not lifted */ 1254 RECOMP_FLAGS_IN(); 1255 /* test eax, eax */ /* 0x3C008C43: test eax, eax */ 1256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1257 _cf = 0; 1258 _flag_k = FK_TEST; 1259 L_3C008C45: 1260 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3C008C4B; /* 0x3C008C45: jne 0x3c008c4b */ 1261 L_3C008C47: 1262 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1263 eax = 0; /* 0x3C008C47: xor eax, eax */ 1264 _cf = 0; 1265 _flag_k = FK_TEST; 1266 goto L_3C008C99; /* 0x3C008C49: jmp 0x3c008c99 */ 1267 L_3C008C4B: 1268 PUSH32(esp, edi); /* 0x3C008C4B: push edi */ 1269 PUSH32(esp, esi); /* 0x3C008C4C: push esi */ 1270 PUSH32(esp, ebx); /* 0x3C008C4D: push ebx */ 1271 RECOMP_ICALL(0x3C008CC4u); /* 0x3C008C4E: call 0x3c008cc4 */ /* not lifted */ 1272 RECOMP_FLAGS_IN(); 1273 /* cmp esi, 1 */ /* 0x3C008C53: cmp esi, 1 */ 1274 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1276 _flag_k = FK_CMP; 1277 MEM32(ebp + 0xC) = eax; /* 0x3C008C56: mov dword ptr [ebp + 0xc], eax */ 1278 if (CMP_NE(_flag_a, _flag_b)) goto L_3C008C67; /* 0x3C008C59: jne 0x3c008c67 */ 1279 L_3C008C5B: 1280 /* test eax, eax */ /* 0x3C008C5B: test eax, eax */ 1281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1282 _cf = 0; 1283 _flag_k = FK_TEST; 1284 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C008C96; /* 0x3C008C5D: jne 0x3c008c96 */ 1285 L_3C008C5F: 1286 PUSH32(esp, edi); /* 0x3C008C5F: push edi */ 1287 PUSH32(esp, eax); /* 0x3C008C60: push eax */ 1288 PUSH32(esp, ebx); /* 0x3C008C61: push ebx */ 1289 RECOMP_ICALL(0x3C008B58u); /* 0x3C008C62: call 0x3c008b58 */ /* not lifted */ 1290 RECOMP_FLAGS_IN(); 1291 L_3C008C67: 1292 /* test esi, esi */ /* 0x3C008C67: test esi, esi */ 1293 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1294 _cf = 0; 1295 _flag_k = FK_TEST; 1296 if (TEST_Z(_flag_a, _flag_b)) goto L_3C008C70; /* 0x3C008C69: je 0x3c008c70 */ 1297 L_3C008C6B: 1298 /* cmp esi, 3 */ /* 0x3C008C6B: cmp esi, 3 */ 1299 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3); 1300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1301 _flag_k = FK_CMP; 1302 if (CMP_NE(_flag_a, _flag_b)) goto L_3C008C96; /* 0x3C008C6E: jne 0x3c008c96 */ 1303 L_3C008C70: 1304 PUSH32(esp, edi); /* 0x3C008C70: push edi */ 1305 PUSH32(esp, esi); /* 0x3C008C71: push esi */ 1306 PUSH32(esp, ebx); /* 0x3C008C72: push ebx */ 1307 RECOMP_ICALL(0x3C008B58u); /* 0x3C008C73: call 0x3c008b58 */ /* not lifted */ 1308 RECOMP_FLAGS_IN(); 1309 /* test eax, eax */ /* 0x3C008C78: test eax, eax */ 1310 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1311 _cf = 0; 1312 _flag_k = FK_TEST; 1313 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C008C7F; /* 0x3C008C7A: jne 0x3c008c7f */ 1314 L_3C008C7C: 1315 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(eax); 1316 MEM32(ebp + 0xC) = MEM32(ebp + 0xC) & eax; /* 0x3C008C7C: and dword ptr [ebp + 0xc], eax */ 1317 _cf = 0; 1318 _flag_k = FK_TEST; 1319 L_3C008C7F: 1320 /* cmp MEM32(ebp + 0xC), 0 */ /* 0x3C008C7F: cmp dword ptr [ebp + 0xc], 0 */ 1321 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(0); 1322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1323 _flag_k = FK_CMP; 1324 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C008C96; /* 0x3C008C83: je 0x3c008c96 */ 1325 L_3C008C85: 1326 eax = MEM32(0x3C00D3E0); /* 0x3C008C85: mov eax, dword ptr [0x3c00d3e0] */ 1327 /* test eax, eax */ /* 0x3C008C8A: test eax, eax */ 1328 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1329 _cf = 0; 1330 _flag_k = FK_TEST; 1331 if (TEST_Z(_flag_a, _flag_b)) goto L_3C008C96; /* 0x3C008C8C: je 0x3c008c96 */ 1332 L_3C008C8E: 1333 PUSH32(esp, edi); /* 0x3C008C8E: push edi */ 1334 PUSH32(esp, esi); /* 0x3C008C8F: push esi */ 1335 PUSH32(esp, ebx); /* 0x3C008C90: push ebx */ 1336 RECOMP_ICALL(eax); /* 0x3C008C91: call eax */ 1337 RECOMP_FLAGS_IN(); 1338 MEM32(ebp + 0xC) = eax; /* 0x3C008C93: mov dword ptr [ebp + 0xc], eax */ 1339 L_3C008C96: 1340 eax = MEM32(ebp + 0xC); /* 0x3C008C96: mov eax, dword ptr [ebp + 0xc] */ 1341 L_3C008C99: 1342 edi = POP32_VAL(esp); /* 0x3C008C99: pop edi */ 1343 esi = POP32_VAL(esp); /* 0x3C008C9A: pop esi */ 1344 ebx = POP32_VAL(esp); /* 0x3C008C9B: pop ebx */ 1345 ebp = POP32_VAL(esp); /* 0x3C008C9C: pop ebp */ 1346 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C008C9D: ret 0xc */ 1347 RECOMP_REGS_OUT(); 1348 } 1349 1350 void sub_3C008CA0(void) { 1351 int _fpu_cmp = 0; 1352 uint32_t _cf = 0; 1353 int _df = 1; 1354 uint32_t _flag_k = FK_NONE; 1355 uint32_t _flag_a = 0, _flag_b = 0; 1356 uint32_t _itail_tgt = 0; 1357 RECOMP_REGS_LOCALS 1358 RECOMP_ENTER(0x3C008CA0u); 1359 1360 L_3C008CA0: 1361 { _itail_tgt = (uint32_t)(MEM32(0x3C009054)); goto _ljump; } 1362 { RECOMP_REGS_OUT(); return; } /* end of function */ 1363 _ljump: 1364 switch (_itail_tgt) { 1365 case 0x3C008CA0u: goto L_3C008CA0; 1366 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1367 } 1368 RECOMP_REGS_OUT(); 1369 } 1370 1371 void sub_3C008CA6(void) { 1372 int _fpu_cmp = 0; 1373 uint32_t _cf = 0; 1374 int _df = 1; 1375 uint32_t _flag_k = FK_NONE; 1376 uint32_t _flag_a = 0, _flag_b = 0; 1377 uint32_t _itail_tgt = 0; 1378 RECOMP_REGS_LOCALS 1379 RECOMP_ENTER(0x3C008CA6u); 1380 1381 L_3C008CA6: 1382 { _itail_tgt = (uint32_t)(MEM32(0x3C009050)); goto _ljump; } 1383 { RECOMP_REGS_OUT(); return; } /* end of function */ 1384 _ljump: 1385 switch (_itail_tgt) { 1386 case 0x3C008CA6u: goto L_3C008CA6; 1387 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1388 } 1389 RECOMP_REGS_OUT(); 1390 } 1391 1392 void sub_3C008CAC(void) { 1393 int _fpu_cmp = 0; 1394 uint32_t _cf = 0; 1395 int _df = 1; 1396 uint32_t _flag_k = FK_NONE; 1397 uint32_t _flag_a = 0, _flag_b = 0; 1398 uint32_t _itail_tgt = 0; 1399 RECOMP_REGS_LOCALS 1400 RECOMP_ENTER(0x3C008CACu); 1401 1402 L_3C008CAC: 1403 { _itail_tgt = (uint32_t)(MEM32(0x3C009020)); goto _ljump; } 1404 { RECOMP_REGS_OUT(); return; } /* end of function */ 1405 _ljump: 1406 switch (_itail_tgt) { 1407 case 0x3C008CACu: goto L_3C008CAC; 1408 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1409 } 1410 RECOMP_REGS_OUT(); 1411 } 1412 1413 void sub_3C008CB2(void) { 1414 int _fpu_cmp = 0; 1415 uint32_t _cf = 0; 1416 int _df = 1; 1417 uint32_t _flag_k = FK_NONE; 1418 uint32_t _flag_a = 0, _flag_b = 0; 1419 uint32_t _itail_tgt = 0; 1420 RECOMP_REGS_LOCALS 1421 RECOMP_ENTER(0x3C008CB2u); 1422 1423 L_3C008CB2: 1424 { _itail_tgt = (uint32_t)(MEM32(0x3C009028)); goto _ljump; } 1425 { RECOMP_REGS_OUT(); return; } /* end of function */ 1426 _ljump: 1427 switch (_itail_tgt) { 1428 case 0x3C008CB2u: goto L_3C008CB2; 1429 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1430 } 1431 RECOMP_REGS_OUT(); 1432 } 1433 1434 void sub_3C008CB8(void) { 1435 int _fpu_cmp = 0; 1436 uint32_t _cf = 0; 1437 int _df = 1; 1438 uint32_t _flag_k = FK_NONE; 1439 uint32_t _flag_a = 0, _flag_b = 0; 1440 uint32_t _itail_tgt = 0; 1441 RECOMP_REGS_LOCALS 1442 RECOMP_ENTER(0x3C008CB8u); 1443 1444 L_3C008CB8: 1445 { _itail_tgt = (uint32_t)(MEM32(0x3C009030)); goto _ljump; } 1446 { RECOMP_REGS_OUT(); return; } /* end of function */ 1447 _ljump: 1448 switch (_itail_tgt) { 1449 case 0x3C008CB8u: goto L_3C008CB8; 1450 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1451 } 1452 RECOMP_REGS_OUT(); 1453 } 1454 1455 void sub_3C008CBE(void) { 1456 int _fpu_cmp = 0; 1457 uint32_t _cf = 0; 1458 int _df = 1; 1459 uint32_t _flag_k = FK_NONE; 1460 uint32_t _flag_a = 0, _flag_b = 0; 1461 uint32_t _itail_tgt = 0; 1462 RECOMP_REGS_LOCALS 1463 RECOMP_ENTER(0x3C008CBEu); 1464 1465 L_3C008CBE: 1466 { _itail_tgt = (uint32_t)(MEM32(0x3C00901C)); goto _ljump; } 1467 { RECOMP_REGS_OUT(); return; } /* end of function */ 1468 _ljump: 1469 switch (_itail_tgt) { 1470 case 0x3C008CBEu: goto L_3C008CBE; 1471 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1472 } 1473 RECOMP_REGS_OUT(); 1474 } 1475 1476 void sub_3C008CC4(void) { 1477 int _fpu_cmp = 0; 1478 uint32_t _cf = 0; 1479 int _df = 1; 1480 uint32_t _flag_k = FK_NONE; 1481 uint32_t _flag_a = 0, _flag_b = 0; 1482 uint32_t _itail_tgt = 0; 1483 RECOMP_REGS_LOCALS 1484 RECOMP_ENTER(0x3C008CC4u); 1485 1486 L_3C008CC4: 1487 /* cmp MEM32(esp + 0x8), 1 */ /* 0x3C008CC4: cmp dword ptr [esp + 8], 1 */ 1488 _flag_a = (uint32_t)(MEM32(esp + 0x8)); _flag_b = (uint32_t)(1); 1489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1490 _flag_k = FK_CMP; 1491 if (CMP_NE(_flag_a, _flag_b)) goto L_3C008CDE; /* 0x3C008CC9: jne 0x3c008cde */ 1492 L_3C008CCB: 1493 /* cmp MEM32(0x3C00D3E0), 0 */ /* 0x3C008CCB: cmp dword ptr [0x3c00d3e0], 0 */ 1494 _flag_a = (uint32_t)(MEM32(0x3C00D3E0)); _flag_b = (uint32_t)(0); 1495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1496 _flag_k = FK_CMP; 1497 if (CMP_NE(_flag_a, _flag_b)) goto L_3C008CDE; /* 0x3C008CD2: jne 0x3c008cde */ 1498 L_3C008CD4: 1499 PUSH32(esp, MEM32(esp + 0x4)); /* 0x3C008CD4: push dword ptr [esp + 4] */ 1500 RECOMP_ICALL(MEM32(0x3C009000)); /* 0x3C008CD8: call dword ptr [0x3c009000] */ 1501 RECOMP_FLAGS_IN(); 1502 L_3C008CDE: 1503 PUSH32(esp, 1); /* 0x3C008CDE: push 1 */ 1504 eax = POP32_VAL(esp); /* 0x3C008CE0: pop eax */ 1505 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C008CE1: ret 0xc */ 1506 RECOMP_REGS_OUT(); 1507 } 1508 1509 void sub_3C008CF0(void) { 1510 int _fpu_cmp = 0; 1511 uint32_t _cf = 0; 1512 int _df = 1; 1513 uint32_t _flag_k = FK_NONE; 1514 uint32_t _flag_a = 0, _flag_b = 0; 1515 uint32_t _itail_tgt = 0; 1516 RECOMP_REGS_LOCALS 1517 RECOMP_ENTER(0x3C008CF0u); 1518 1519 goto L_3C008CF0; 1520 L_3C001AD0: 1521 PUSH32(esp, ebp); /* 0x3C001AD0: push ebp */ 1522 ebp = esp; /* 0x3C001AD1: mov ebp, esp */ 1523 PUSH32(esp, 0xFFFFFFFFu); /* 0x3C001AD3: push -1 */ 1524 PUSH32(esp, 0x3C008D38u); /* 0x3C001AD5: push 0x3c008d38 */ 1525 eax = MEM32(FS_BASE + (0)); /* 0x3C001ADA: mov eax, dword ptr fs:[0] */ 1526 PUSH32(esp, eax); /* 0x3C001AE0: push eax */ 1527 MEM32(FS_BASE + (0)) = esp; /* 0x3C001AE1: mov dword ptr fs:[0], esp */ 1528 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1530 esp = esp - 8; /* 0x3C001AE8: sub esp, 8 */ 1531 _flag_k = FK_CMP; 1532 PUSH32(esp, ebx); /* 0x3C001AEB: push ebx */ 1533 PUSH32(esp, esi); /* 0x3C001AEC: push esi */ 1534 PUSH32(esp, edi); /* 0x3C001AED: push edi */ 1535 edi = ecx; /* 0x3C001AEE: mov edi, ecx */ 1536 MEM32(ebp + (-0x10)) = edi; /* 0x3C001AF0: mov dword ptr [ebp - 0x10], edi */ 1537 eax = MEM32(edi + 0x4); /* 0x3C001AF3: mov eax, dword ptr [edi + 4] */ 1538 esi = MEM32(eax); /* 0x3C001AF6: mov esi, dword ptr [eax] */ 1539 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1540 ebx = 0; /* 0x3C001AF8: xor ebx, ebx */ 1541 _cf = 0; 1542 _flag_k = FK_TEST; 1543 /* cmp esi, eax */ /* 0x3C001AFA: cmp esi, eax */ 1544 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1546 _flag_k = FK_CMP; 1547 MEM32(ebp + (-0x4)) = ebx; /* 0x3C001AFC: mov dword ptr [ebp - 4], ebx */ 1548 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B43; /* 0x3C001AFF: je 0x3c001b43 */ 1549 L_3C001B01: 1550 eax = MEM32(esi + 0x10); /* 0x3C001B01: mov eax, dword ptr [esi + 0x10] */ 1551 PUSH32(esp, eax); /* 0x3C001B04: push eax */ 1552 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001B05: call 0x3c0089de */ /* not lifted */ 1553 RECOMP_FLAGS_IN(); 1554 MEM32(esi + 0x10) = ebx; /* 0x3C001B0A: mov dword ptr [esi + 0x10], ebx */ 1555 eax = MEM32(esi + 0x8); /* 0x3C001B0D: mov eax, dword ptr [esi + 8] */ 1556 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3C001B10: mov cl, byte ptr [eax + 0x15] */ 1557 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1558 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1559 esp = esp + 4; /* 0x3C001B13: add esp, 4 */ 1560 _flag_k = FK_ADD; 1561 /* test LO8(ecx), LO8(ecx) */ /* 0x3C001B16: test cl, cl */ 1562 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 1563 _cf = 0; 1564 _flag_k = FK_NARROW(FK_TEST, 24); 1565 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C001B25; /* 0x3C001B18: jne 0x3c001b25 */ 1566 L_3C001B1A: 1567 PUSH32(esp, eax); /* 0x3C001B1A: push eax */ 1568 RECOMP_ICALL(0x3C002060u); /* 0x3C001B1B: call 0x3c002060 */ /* not lifted */ 1569 RECOMP_FLAGS_IN(); 1570 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1572 esp = esp + 4; /* 0x3C001B20: add esp, 4 */ 1573 _flag_k = FK_ADD; 1574 goto L_3C001B3C; /* 0x3C001B23: jmp 0x3c001b3c */ 1575 L_3C001B25: 1576 eax = MEM32(esi + 0x4); /* 0x3C001B25: mov eax, dword ptr [esi + 4] */ 1577 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C001B28: cmp esi, dword ptr [eax + 8] */ 1578 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1580 _flag_k = FK_CMP; 1581 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B37; /* 0x3C001B2B: jne 0x3c001b37 */ 1582 L_3C001B2D: 1583 esi = eax; /* 0x3C001B2D: mov esi, eax */ 1584 eax = MEM32(eax + 0x4); /* 0x3C001B2F: mov eax, dword ptr [eax + 4] */ 1585 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C001B32: cmp esi, dword ptr [eax + 8] */ 1586 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1588 _flag_k = FK_CMP; 1589 RECOMP_BACKEDGE(); 1590 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B2D; /* 0x3C001B35: je 0x3c001b2d */ 1591 L_3C001B37: 1592 /* cmp MEM32(esi + 0x8), eax */ /* 0x3C001B37: cmp dword ptr [esi + 8], eax */ 1593 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 1594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1595 _flag_k = FK_CMP; 1596 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B3E; /* 0x3C001B3A: je 0x3c001b3e */ 1597 L_3C001B3C: 1598 esi = eax; /* 0x3C001B3C: mov esi, eax */ 1599 L_3C001B3E: 1600 /* cmp esi, MEM32(edi + 0x4) */ /* 0x3C001B3E: cmp esi, dword ptr [edi + 4] */ 1601 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1603 _flag_k = FK_CMP; 1604 RECOMP_BACKEDGE(); 1605 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B01; /* 0x3C001B41: jne 0x3c001b01 */ 1606 L_3C001B43: 1607 esi = MEM32(edi + 0x4); /* 0x3C001B43: mov esi, dword ptr [edi + 4] */ 1608 /* cmp MEM32(edi + 0x10), ebx */ /* 0x3C001B46: cmp dword ptr [edi + 0x10], ebx */ 1609 _flag_a = (uint32_t)(MEM32(edi + 0x10)); _flag_b = (uint32_t)(ebx); 1610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1611 _flag_k = FK_CMP; 1612 eax = MEM32(esi); /* 0x3C001B49: mov eax, dword ptr [esi] */ 1613 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C001B4B: mov dword ptr [ebp - 4], 0xffffffff */ 1614 MEM32(ebp + (-0x10)) = eax; /* 0x3C001B52: mov dword ptr [ebp - 0x10], eax */ 1615 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B55: je 0x3c001b85 */ 1616 L_3C001B57: 1617 ecx = eax; /* 0x3C001B57: mov ecx, eax */ 1618 /* cmp eax, ecx */ /* 0x3C001B59: cmp eax, ecx */ 1619 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1620 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1621 _flag_k = FK_CMP; 1622 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B5B: jne 0x3c001b85 */ 1623 L_3C001B5D: 1624 /* cmp esi, esi */ /* 0x3C001B5D: cmp esi, esi */ 1625 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1627 _flag_k = FK_CMP; 1628 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B5F: jne 0x3c001b85 */ 1629 L_3C001B61: 1630 eax = MEM32(esi + 0x4); /* 0x3C001B61: mov eax, dword ptr [esi + 4] */ 1631 PUSH32(esp, eax); /* 0x3C001B64: push eax */ 1632 ecx = edi; /* 0x3C001B65: mov ecx, edi */ 1633 RECOMP_ICALL(0x3C002020u); /* 0x3C001B67: call 0x3c002020 */ /* not lifted */ 1634 RECOMP_FLAGS_IN(); 1635 ecx = MEM32(edi + 0x4); /* 0x3C001B6C: mov ecx, dword ptr [edi + 4] */ 1636 edx = MEM32(edi + 0x8); /* 0x3C001B6F: mov edx, dword ptr [edi + 8] */ 1637 MEM32(ecx + 0x4) = edx; /* 0x3C001B72: mov dword ptr [ecx + 4], edx */ 1638 eax = MEM32(edi + 0x4); /* 0x3C001B75: mov eax, dword ptr [edi + 4] */ 1639 MEM32(edi + 0x10) = ebx; /* 0x3C001B78: mov dword ptr [edi + 0x10], ebx */ 1640 MEM32(eax) = eax; /* 0x3C001B7B: mov dword ptr [eax], eax */ 1641 eax = MEM32(edi + 0x4); /* 0x3C001B7D: mov eax, dword ptr [edi + 4] */ 1642 MEM32(eax + 0x8) = eax; /* 0x3C001B80: mov dword ptr [eax + 8], eax */ 1643 goto L_3C001BA8; /* 0x3C001B83: jmp 0x3c001ba8 */ 1644 L_3C001B85: 1645 /* cmp eax, esi */ /* 0x3C001B85: cmp eax, esi */ 1646 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1648 _flag_k = FK_CMP; 1649 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001BA8; /* 0x3C001B87: je 0x3c001ba8 */ 1650 L_3C001B89: 1651 ecx = ebp + (-0x10); /* 0x3C001B89: lea ecx, [ebp - 0x10] */ 1652 ebx = eax; /* 0x3C001B8C: mov ebx, eax */ 1653 RECOMP_ICALL(0x3C007A50u); /* 0x3C001B8E: call 0x3c007a50 */ /* not lifted */ 1654 RECOMP_FLAGS_IN(); 1655 PUSH32(esp, ebx); /* 0x3C001B93: push ebx */ 1656 eax = ebp + (-0x14); /* 0x3C001B94: lea eax, [ebp - 0x14] */ 1657 PUSH32(esp, eax); /* 0x3C001B97: push eax */ 1658 ecx = edi; /* 0x3C001B98: mov ecx, edi */ 1659 RECOMP_ICALL(0x3C007320u); /* 0x3C001B9A: call 0x3c007320 */ /* not lifted */ 1660 RECOMP_FLAGS_IN(); 1661 eax = MEM32(ebp + (-0x10)); /* 0x3C001B9F: mov eax, dword ptr [ebp - 0x10] */ 1662 /* cmp eax, esi */ /* 0x3C001BA2: cmp eax, esi */ 1663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1665 _flag_k = FK_CMP; 1666 RECOMP_BACKEDGE(); 1667 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B89; /* 0x3C001BA4: jne 0x3c001b89 */ 1668 L_3C001BA6: 1669 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1670 ebx = 0; /* 0x3C001BA6: xor ebx, ebx */ 1671 _cf = 0; 1672 _flag_k = FK_TEST; 1673 L_3C001BA8: 1674 ecx = MEM32(edi + 0x4); /* 0x3C001BA8: mov ecx, dword ptr [edi + 4] */ 1675 PUSH32(esp, ecx); /* 0x3C001BAB: push ecx */ 1676 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BAC: call 0x3c0089de */ /* not lifted */ 1677 RECOMP_FLAGS_IN(); 1678 edx = MEM32(edi + 0x8); /* 0x3C001BB1: mov edx, dword ptr [edi + 8] */ 1679 PUSH32(esp, edx); /* 0x3C001BB4: push edx */ 1680 MEM32(edi + 0x4) = ebx; /* 0x3C001BB5: mov dword ptr [edi + 4], ebx */ 1681 MEM32(edi + 0x10) = ebx; /* 0x3C001BB8: mov dword ptr [edi + 0x10], ebx */ 1682 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BBB: call 0x3c0089de */ /* not lifted */ 1683 RECOMP_FLAGS_IN(); 1684 ecx = MEM32(ebp + (-0xC)); /* 0x3C001BC0: mov ecx, dword ptr [ebp - 0xc] */ 1685 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1686 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1687 esp = esp + 8; /* 0x3C001BC3: add esp, 8 */ 1688 _flag_k = FK_ADD; 1689 MEM32(edi + 0x8) = ebx; /* 0x3C001BC6: mov dword ptr [edi + 8], ebx */ 1690 edi = POP32_VAL(esp); /* 0x3C001BC9: pop edi */ 1691 esi = POP32_VAL(esp); /* 0x3C001BCA: pop esi */ 1692 ebx = POP32_VAL(esp); /* 0x3C001BCB: pop ebx */ 1693 MEM32(FS_BASE + (0)) = ecx; /* 0x3C001BCC: mov dword ptr fs:[0], ecx */ 1694 esp = ebp; /* 0x3C001BD3: mov esp, ebp */ 1695 ebp = POP32_VAL(esp); /* 0x3C001BD5: pop ebp */ 1696 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001BD6: ret */ 1697 L_3C008CF0: 1698 ecx = ebp + (-0x70); /* 0x3C008CF0: lea ecx, [ebp - 0x70] */ 1699 RECOMP_BACKEDGE(); 1700 goto L_3C001AD0; /* 0x3C008CF3: jmp 0x3c001ad0 */ 1701 { RECOMP_REGS_OUT(); return; } /* end of function */ 1702 RECOMP_REGS_OUT(); 1703 } 1704 1705 void sub_3C008CF8(void) { 1706 int _fpu_cmp = 0; 1707 uint32_t _cf = 0; 1708 int _df = 1; 1709 uint32_t _flag_k = FK_NONE; 1710 uint32_t _flag_a = 0, _flag_b = 0; 1711 uint32_t _itail_tgt = 0; 1712 RECOMP_REGS_LOCALS 1713 RECOMP_ENTER(0x3C008CF8u); 1714 1715 L_3C008CF8: 1716 eax = MEM32(ebp + (-0x3C)); /* 0x3C008CF8: mov eax, dword ptr [ebp - 0x3c] */ 1717 PUSH32(esp, eax); /* 0x3C008CFB: push eax */ 1718 RECOMP_ICALL(0x3C0089DEu); /* 0x3C008CFC: call 0x3c0089de */ /* not lifted */ 1719 RECOMP_FLAGS_IN(); 1720 ecx = POP32_VAL(esp); /* 0x3C008D01: pop ecx */ 1721 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008D02: ret */ 1722 RECOMP_REGS_OUT(); 1723 } 1724 1725 void sub_3C008D03(void) { 1726 int _fpu_cmp = 0; 1727 uint32_t _cf = 0; 1728 int _df = 1; 1729 uint32_t _flag_k = FK_NONE; 1730 uint32_t _flag_a = 0, _flag_b = 0; 1731 uint32_t _itail_tgt = 0; 1732 RECOMP_REGS_LOCALS 1733 RECOMP_ENTER(0x3C008D03u); 1734 1735 goto L_3C008D03; 1736 L_3C002490: 1737 PUSH32(esp, esi); /* 0x3C002490: push esi */ 1738 esi = MEM32(ecx); /* 0x3C002491: mov esi, dword ptr [ecx] */ 1739 /* test esi, esi */ /* 0x3C002493: test esi, esi */ 1740 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1741 _cf = 0; 1742 _flag_k = FK_TEST; 1743 if (TEST_Z(_flag_a, _flag_b)) goto L_3C0024B3; /* 0x3C002495: je 0x3c0024b3 */ 1744 L_3C002497: 1745 eax = MEM32(esi + 0x8); /* 0x3C002497: mov eax, dword ptr [esi + 8] */ 1746 /* test eax, eax */ /* 0x3C00249A: test eax, eax */ 1747 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1748 _cf = 0; 1749 _flag_k = FK_TEST; 1750 if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0024AA; /* 0x3C00249C: jne 0x3c0024aa */ 1751 L_3C00249E: 1752 eax = MEM32(esi + 0x4); /* 0x3C00249E: mov eax, dword ptr [esi + 4] */ 1753 PUSH32(esp, eax); /* 0x3C0024A1: push eax */ 1754 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0024A2: call 0x3c0089de */ /* not lifted */ 1755 RECOMP_FLAGS_IN(); 1756 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1757 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1758 esp = esp + 4; /* 0x3C0024A7: add esp, 4 */ 1759 _flag_k = FK_ADD; 1760 L_3C0024AA: 1761 PUSH32(esp, esi); /* 0x3C0024AA: push esi */ 1762 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0024AB: call 0x3c0089de */ /* not lifted */ 1763 RECOMP_FLAGS_IN(); 1764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1766 esp = esp + 4; /* 0x3C0024B0: add esp, 4 */ 1767 _flag_k = FK_ADD; 1768 L_3C0024B3: 1769 esi = POP32_VAL(esp); /* 0x3C0024B3: pop esi */ 1770 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0024B4: ret */ 1771 L_3C008D03: 1772 ecx = ebp + (-0x44); /* 0x3C008D03: lea ecx, [ebp - 0x44] */ 1773 RECOMP_BACKEDGE(); 1774 goto L_3C002490; /* 0x3C008D06: jmp 0x3c002490 */ 1775 { RECOMP_REGS_OUT(); return; } /* end of function */ 1776 RECOMP_REGS_OUT(); 1777 } 1778 1779 void sub_3C008D0B(void) { 1780 int _fpu_cmp = 0; 1781 uint32_t _cf = 0; 1782 int _df = 1; 1783 uint32_t _flag_k = FK_NONE; 1784 uint32_t _flag_a = 0, _flag_b = 0; 1785 uint32_t _itail_tgt = 0; 1786 RECOMP_REGS_LOCALS 1787 RECOMP_ENTER(0x3C008D0Bu); 1788 1789 goto L_3C008D0B; 1790 L_3C001BE0: 1791 PUSH32(esp, ebp); /* 0x3C001BE0: push ebp */ 1792 ebp = esp; /* 0x3C001BE1: mov ebp, esp */ 1793 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1795 esp = esp - 8; /* 0x3C001BE3: sub esp, 8 */ 1796 _flag_k = FK_CMP; 1797 PUSH32(esp, ebx); /* 0x3C001BE6: push ebx */ 1798 PUSH32(esp, esi); /* 0x3C001BE7: push esi */ 1799 esi = ecx; /* 0x3C001BE8: mov esi, ecx */ 1800 ecx = MEM32(esi + 0x10); /* 0x3C001BEA: mov ecx, dword ptr [esi + 0x10] */ 1801 /* test ecx, ecx */ /* 0x3C001BED: test ecx, ecx */ 1802 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1803 _cf = 0; 1804 _flag_k = FK_TEST; 1805 PUSH32(esp, edi); /* 0x3C001BEF: push edi */ 1806 edi = MEM32(esi + 0x4); /* 0x3C001BF0: mov edi, dword ptr [esi + 4] */ 1807 eax = MEM32(edi); /* 0x3C001BF3: mov eax, dword ptr [edi] */ 1808 MEM32(ebp + (-0x4)) = eax; /* 0x3C001BF5: mov dword ptr [ebp - 4], eax */ 1809 if (TEST_Z(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001BF8: je 0x3c001c55 */ 1810 L_3C001BFA: 1811 ecx = eax; /* 0x3C001BFA: mov ecx, eax */ 1812 /* cmp eax, ecx */ /* 0x3C001BFC: cmp eax, ecx */ 1813 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1815 _flag_k = FK_CMP; 1816 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001BFE: jne 0x3c001c55 */ 1817 L_3C001C00: 1818 /* cmp edi, edi */ /* 0x3C001C00: cmp edi, edi */ 1819 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1821 _flag_k = FK_CMP; 1822 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001C02: jne 0x3c001c55 */ 1823 L_3C001C04: 1824 ebx = MEM32(edi + 0x4); /* 0x3C001C04: mov ebx, dword ptr [edi + 4] */ 1825 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C001C07: cmp ebx, dword ptr [esi + 8] */ 1826 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1828 _flag_k = FK_CMP; 1829 edi = ebx; /* 0x3C001C0A: mov edi, ebx */ 1830 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001C2D; /* 0x3C001C0C: je 0x3c001c2d */ 1831 L_3C001C0E: 1832 eax = MEM32(edi + 0x8); /* 0x3C001C0E: mov eax, dword ptr [edi + 8] */ 1833 PUSH32(esp, eax); /* 0x3C001C11: push eax */ 1834 ecx = esi; /* 0x3C001C12: mov ecx, esi */ 1835 RECOMP_ICALL(0x3C002020u); /* 0x3C001C14: call 0x3c002020 */ /* not lifted */ 1836 RECOMP_FLAGS_IN(); 1837 edi = MEM32(edi); /* 0x3C001C19: mov edi, dword ptr [edi] */ 1838 PUSH32(esp, ebx); /* 0x3C001C1B: push ebx */ 1839 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C1C: call 0x3c0089de */ /* not lifted */ 1840 RECOMP_FLAGS_IN(); 1841 eax = MEM32(esi + 0x8); /* 0x3C001C21: mov eax, dword ptr [esi + 8] */ 1842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1844 esp = esp + 4; /* 0x3C001C24: add esp, 4 */ 1845 _flag_k = FK_ADD; 1846 /* cmp edi, eax */ /* 0x3C001C27: cmp edi, eax */ 1847 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1849 _flag_k = FK_CMP; 1850 ebx = edi; /* 0x3C001C29: mov ebx, edi */ 1851 RECOMP_BACKEDGE(); 1852 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C0E; /* 0x3C001C2B: jne 0x3c001c0e */ 1853 L_3C001C2D: 1854 ecx = MEM32(esi + 0x4); /* 0x3C001C2D: mov ecx, dword ptr [esi + 4] */ 1855 edx = MEM32(esi + 0x8); /* 0x3C001C30: mov edx, dword ptr [esi + 8] */ 1856 MEM32(ecx + 0x4) = edx; /* 0x3C001C33: mov dword ptr [ecx + 4], edx */ 1857 eax = MEM32(esi + 0x4); /* 0x3C001C36: mov eax, dword ptr [esi + 4] */ 1858 MEM32(esi + 0x10) = 0; /* 0x3C001C39: mov dword ptr [esi + 0x10], 0 */ 1859 MEM32(eax) = eax; /* 0x3C001C40: mov dword ptr [eax], eax */ 1860 eax = MEM32(esi + 0x4); /* 0x3C001C42: mov eax, dword ptr [esi + 4] */ 1861 MEM32(eax + 0x8) = eax; /* 0x3C001C45: mov dword ptr [eax + 8], eax */ 1862 eax = ebp + (-0x8); /* 0x3C001C48: lea eax, [ebp - 8] */ 1863 PUSH32(esp, eax); /* 0x3C001C4B: push eax */ 1864 ecx = esi; /* 0x3C001C4C: mov ecx, esi */ 1865 RECOMP_ICALL(0x3C005110u); /* 0x3C001C4E: call 0x3c005110 */ /* not lifted */ 1866 RECOMP_FLAGS_IN(); 1867 goto L_3C001C76; /* 0x3C001C53: jmp 0x3c001c76 */ 1868 L_3C001C55: 1869 /* cmp eax, edi */ /* 0x3C001C55: cmp eax, edi */ 1870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1872 _flag_k = FK_CMP; 1873 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001C76; /* 0x3C001C57: je 0x3c001c76 */ 1874 L_3C001C59: 1875 ecx = ebp + (-0x4); /* 0x3C001C59: lea ecx, [ebp - 4] */ 1876 ebx = eax; /* 0x3C001C5C: mov ebx, eax */ 1877 RECOMP_ICALL(0x3C007A50u); /* 0x3C001C5E: call 0x3c007a50 */ /* not lifted */ 1878 RECOMP_FLAGS_IN(); 1879 PUSH32(esp, ebx); /* 0x3C001C63: push ebx */ 1880 ecx = ebp + (-0x8); /* 0x3C001C64: lea ecx, [ebp - 8] */ 1881 PUSH32(esp, ecx); /* 0x3C001C67: push ecx */ 1882 ecx = esi; /* 0x3C001C68: mov ecx, esi */ 1883 RECOMP_ICALL(0x3C007320u); /* 0x3C001C6A: call 0x3c007320 */ /* not lifted */ 1884 RECOMP_FLAGS_IN(); 1885 eax = MEM32(ebp + (-0x4)); /* 0x3C001C6F: mov eax, dword ptr [ebp - 4] */ 1886 /* cmp eax, edi */ /* 0x3C001C72: cmp eax, edi */ 1887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1889 _flag_k = FK_CMP; 1890 RECOMP_BACKEDGE(); 1891 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C59; /* 0x3C001C74: jne 0x3c001c59 */ 1892 L_3C001C76: 1893 edx = MEM32(esi + 0x4); /* 0x3C001C76: mov edx, dword ptr [esi + 4] */ 1894 PUSH32(esp, edx); /* 0x3C001C79: push edx */ 1895 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C7A: call 0x3c0089de */ /* not lifted */ 1896 RECOMP_FLAGS_IN(); 1897 eax = MEM32(esi + 0x8); /* 0x3C001C7F: mov eax, dword ptr [esi + 8] */ 1898 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1899 edi = 0; /* 0x3C001C82: xor edi, edi */ 1900 _cf = 0; 1901 _flag_k = FK_TEST; 1902 PUSH32(esp, eax); /* 0x3C001C84: push eax */ 1903 MEM32(esi + 0x4) = edi; /* 0x3C001C85: mov dword ptr [esi + 4], edi */ 1904 MEM32(esi + 0x10) = edi; /* 0x3C001C88: mov dword ptr [esi + 0x10], edi */ 1905 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C8B: call 0x3c0089de */ /* not lifted */ 1906 RECOMP_FLAGS_IN(); 1907 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1908 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1909 esp = esp + 8; /* 0x3C001C90: add esp, 8 */ 1910 _flag_k = FK_ADD; 1911 MEM32(esi + 0x8) = edi; /* 0x3C001C93: mov dword ptr [esi + 8], edi */ 1912 edi = POP32_VAL(esp); /* 0x3C001C96: pop edi */ 1913 esi = POP32_VAL(esp); /* 0x3C001C97: pop esi */ 1914 ebx = POP32_VAL(esp); /* 0x3C001C98: pop ebx */ 1915 esp = ebp; /* 0x3C001C99: mov esp, ebp */ 1916 ebp = POP32_VAL(esp); /* 0x3C001C9B: pop ebp */ 1917 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001C9C: ret */ 1918 L_3C008D0B: 1919 ecx = ebp + (-0x70); /* 0x3C008D0B: lea ecx, [ebp - 0x70] */ 1920 RECOMP_BACKEDGE(); 1921 goto L_3C001BE0; /* 0x3C008D0E: jmp 0x3c001be0 */ 1922 { RECOMP_REGS_OUT(); return; } /* end of function */ 1923 RECOMP_REGS_OUT(); 1924 } 1925 1926 void sub_3C008D13(void) { 1927 int _fpu_cmp = 0; 1928 uint32_t _cf = 0; 1929 int _df = 1; 1930 uint32_t _flag_k = FK_NONE; 1931 uint32_t _flag_a = 0, _flag_b = 0; 1932 uint32_t _itail_tgt = 0; 1933 RECOMP_REGS_LOCALS 1934 RECOMP_ENTER(0x3C008D13u); 1935 1936 goto L_3C008D13; 1937 L_3C001BE0: 1938 PUSH32(esp, ebp); /* 0x3C001BE0: push ebp */ 1939 ebp = esp; /* 0x3C001BE1: mov ebp, esp */ 1940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1942 esp = esp - 8; /* 0x3C001BE3: sub esp, 8 */ 1943 _flag_k = FK_CMP; 1944 PUSH32(esp, ebx); /* 0x3C001BE6: push ebx */ 1945 PUSH32(esp, esi); /* 0x3C001BE7: push esi */ 1946 esi = ecx; /* 0x3C001BE8: mov esi, ecx */ 1947 ecx = MEM32(esi + 0x10); /* 0x3C001BEA: mov ecx, dword ptr [esi + 0x10] */ 1948 /* test ecx, ecx */ /* 0x3C001BED: test ecx, ecx */ 1949 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1950 _cf = 0; 1951 _flag_k = FK_TEST; 1952 PUSH32(esp, edi); /* 0x3C001BEF: push edi */ 1953 edi = MEM32(esi + 0x4); /* 0x3C001BF0: mov edi, dword ptr [esi + 4] */ 1954 eax = MEM32(edi); /* 0x3C001BF3: mov eax, dword ptr [edi] */ 1955 MEM32(ebp + (-0x4)) = eax; /* 0x3C001BF5: mov dword ptr [ebp - 4], eax */ 1956 if (TEST_Z(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001BF8: je 0x3c001c55 */ 1957 L_3C001BFA: 1958 ecx = eax; /* 0x3C001BFA: mov ecx, eax */ 1959 /* cmp eax, ecx */ /* 0x3C001BFC: cmp eax, ecx */ 1960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1962 _flag_k = FK_CMP; 1963 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001BFE: jne 0x3c001c55 */ 1964 L_3C001C00: 1965 /* cmp edi, edi */ /* 0x3C001C00: cmp edi, edi */ 1966 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1968 _flag_k = FK_CMP; 1969 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001C02: jne 0x3c001c55 */ 1970 L_3C001C04: 1971 ebx = MEM32(edi + 0x4); /* 0x3C001C04: mov ebx, dword ptr [edi + 4] */ 1972 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C001C07: cmp ebx, dword ptr [esi + 8] */ 1973 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1975 _flag_k = FK_CMP; 1976 edi = ebx; /* 0x3C001C0A: mov edi, ebx */ 1977 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001C2D; /* 0x3C001C0C: je 0x3c001c2d */ 1978 L_3C001C0E: 1979 eax = MEM32(edi + 0x8); /* 0x3C001C0E: mov eax, dword ptr [edi + 8] */ 1980 PUSH32(esp, eax); /* 0x3C001C11: push eax */ 1981 ecx = esi; /* 0x3C001C12: mov ecx, esi */ 1982 RECOMP_ICALL(0x3C002020u); /* 0x3C001C14: call 0x3c002020 */ /* not lifted */ 1983 RECOMP_FLAGS_IN(); 1984 edi = MEM32(edi); /* 0x3C001C19: mov edi, dword ptr [edi] */ 1985 PUSH32(esp, ebx); /* 0x3C001C1B: push ebx */ 1986 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C1C: call 0x3c0089de */ /* not lifted */ 1987 RECOMP_FLAGS_IN(); 1988 eax = MEM32(esi + 0x8); /* 0x3C001C21: mov eax, dword ptr [esi + 8] */ 1989 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1990 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1991 esp = esp + 4; /* 0x3C001C24: add esp, 4 */ 1992 _flag_k = FK_ADD; 1993 /* cmp edi, eax */ /* 0x3C001C27: cmp edi, eax */ 1994 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1996 _flag_k = FK_CMP; 1997 ebx = edi; /* 0x3C001C29: mov ebx, edi */ 1998 RECOMP_BACKEDGE(); 1999 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C0E; /* 0x3C001C2B: jne 0x3c001c0e */ 2000 L_3C001C2D: 2001 ecx = MEM32(esi + 0x4); /* 0x3C001C2D: mov ecx, dword ptr [esi + 4] */ 2002 edx = MEM32(esi + 0x8); /* 0x3C001C30: mov edx, dword ptr [esi + 8] */ 2003 MEM32(ecx + 0x4) = edx; /* 0x3C001C33: mov dword ptr [ecx + 4], edx */ 2004 eax = MEM32(esi + 0x4); /* 0x3C001C36: mov eax, dword ptr [esi + 4] */ 2005 MEM32(esi + 0x10) = 0; /* 0x3C001C39: mov dword ptr [esi + 0x10], 0 */ 2006 MEM32(eax) = eax; /* 0x3C001C40: mov dword ptr [eax], eax */ 2007 eax = MEM32(esi + 0x4); /* 0x3C001C42: mov eax, dword ptr [esi + 4] */ 2008 MEM32(eax + 0x8) = eax; /* 0x3C001C45: mov dword ptr [eax + 8], eax */ 2009 eax = ebp + (-0x8); /* 0x3C001C48: lea eax, [ebp - 8] */ 2010 PUSH32(esp, eax); /* 0x3C001C4B: push eax */ 2011 ecx = esi; /* 0x3C001C4C: mov ecx, esi */ 2012 RECOMP_ICALL(0x3C005110u); /* 0x3C001C4E: call 0x3c005110 */ /* not lifted */ 2013 RECOMP_FLAGS_IN(); 2014 goto L_3C001C76; /* 0x3C001C53: jmp 0x3c001c76 */ 2015 L_3C001C55: 2016 /* cmp eax, edi */ /* 0x3C001C55: cmp eax, edi */ 2017 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2019 _flag_k = FK_CMP; 2020 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001C76; /* 0x3C001C57: je 0x3c001c76 */ 2021 L_3C001C59: 2022 ecx = ebp + (-0x4); /* 0x3C001C59: lea ecx, [ebp - 4] */ 2023 ebx = eax; /* 0x3C001C5C: mov ebx, eax */ 2024 RECOMP_ICALL(0x3C007A50u); /* 0x3C001C5E: call 0x3c007a50 */ /* not lifted */ 2025 RECOMP_FLAGS_IN(); 2026 PUSH32(esp, ebx); /* 0x3C001C63: push ebx */ 2027 ecx = ebp + (-0x8); /* 0x3C001C64: lea ecx, [ebp - 8] */ 2028 PUSH32(esp, ecx); /* 0x3C001C67: push ecx */ 2029 ecx = esi; /* 0x3C001C68: mov ecx, esi */ 2030 RECOMP_ICALL(0x3C007320u); /* 0x3C001C6A: call 0x3c007320 */ /* not lifted */ 2031 RECOMP_FLAGS_IN(); 2032 eax = MEM32(ebp + (-0x4)); /* 0x3C001C6F: mov eax, dword ptr [ebp - 4] */ 2033 /* cmp eax, edi */ /* 0x3C001C72: cmp eax, edi */ 2034 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2036 _flag_k = FK_CMP; 2037 RECOMP_BACKEDGE(); 2038 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C59; /* 0x3C001C74: jne 0x3c001c59 */ 2039 L_3C001C76: 2040 edx = MEM32(esi + 0x4); /* 0x3C001C76: mov edx, dword ptr [esi + 4] */ 2041 PUSH32(esp, edx); /* 0x3C001C79: push edx */ 2042 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C7A: call 0x3c0089de */ /* not lifted */ 2043 RECOMP_FLAGS_IN(); 2044 eax = MEM32(esi + 0x8); /* 0x3C001C7F: mov eax, dword ptr [esi + 8] */ 2045 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2046 edi = 0; /* 0x3C001C82: xor edi, edi */ 2047 _cf = 0; 2048 _flag_k = FK_TEST; 2049 PUSH32(esp, eax); /* 0x3C001C84: push eax */ 2050 MEM32(esi + 0x4) = edi; /* 0x3C001C85: mov dword ptr [esi + 4], edi */ 2051 MEM32(esi + 0x10) = edi; /* 0x3C001C88: mov dword ptr [esi + 0x10], edi */ 2052 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C8B: call 0x3c0089de */ /* not lifted */ 2053 RECOMP_FLAGS_IN(); 2054 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2055 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2056 esp = esp + 8; /* 0x3C001C90: add esp, 8 */ 2057 _flag_k = FK_ADD; 2058 MEM32(esi + 0x8) = edi; /* 0x3C001C93: mov dword ptr [esi + 8], edi */ 2059 edi = POP32_VAL(esp); /* 0x3C001C96: pop edi */ 2060 esi = POP32_VAL(esp); /* 0x3C001C97: pop esi */ 2061 ebx = POP32_VAL(esp); /* 0x3C001C98: pop ebx */ 2062 esp = ebp; /* 0x3C001C99: mov esp, ebp */ 2063 ebp = POP32_VAL(esp); /* 0x3C001C9B: pop ebp */ 2064 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001C9C: ret */ 2065 L_3C008D13: 2066 ecx = ebp + (-0x70); /* 0x3C008D13: lea ecx, [ebp - 0x70] */ 2067 RECOMP_BACKEDGE(); 2068 goto L_3C001BE0; /* 0x3C008D16: jmp 0x3c001be0 */ 2069 { RECOMP_REGS_OUT(); return; } /* end of function */ 2070 RECOMP_REGS_OUT(); 2071 } 2072 2073 void sub_3C008D1B(void) { 2074 int _fpu_cmp = 0; 2075 uint32_t _cf = 0; 2076 int _df = 1; 2077 uint32_t _flag_k = FK_NONE; 2078 uint32_t _flag_a = 0, _flag_b = 0; 2079 uint32_t _itail_tgt = 0; 2080 RECOMP_REGS_LOCALS 2081 RECOMP_ENTER(0x3C008D1Bu); 2082 2083 goto L_3C008D1B; 2084 L_3C008B46: 2085 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 2086 L_3C008D1B: 2087 eax = 0x3C0098E8u; /* 0x3C008D1B: mov eax, 0x3c0098e8 */ 2088 L_3C008D20: 2089 RECOMP_BACKEDGE(); 2090 goto L_3C008B46; /* 0x3C008D20: jmp 0x3c008b46 */ 2091 { RECOMP_REGS_OUT(); return; } /* end of function */ 2092 _ljump: 2093 switch (_itail_tgt) { 2094 case 0x3C008B46u: goto L_3C008B46; 2095 case 0x3C008D1Bu: goto L_3C008D1B; 2096 case 0x3C008D20u: goto L_3C008D20; 2097 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2098 } 2099 RECOMP_REGS_OUT(); 2100 } 2101 2102 void sub_3C008D30(void) { 2103 int _fpu_cmp = 0; 2104 uint32_t _cf = 0; 2105 int _df = 1; 2106 uint32_t _flag_k = FK_NONE; 2107 uint32_t _flag_a = 0, _flag_b = 0; 2108 uint32_t _itail_tgt = 0; 2109 RECOMP_REGS_LOCALS 2110 RECOMP_ENTER(0x3C008D30u); 2111 2112 goto L_3C008D30; 2113 L_3C001BE0: 2114 PUSH32(esp, ebp); /* 0x3C001BE0: push ebp */ 2115 ebp = esp; /* 0x3C001BE1: mov ebp, esp */ 2116 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2118 esp = esp - 8; /* 0x3C001BE3: sub esp, 8 */ 2119 _flag_k = FK_CMP; 2120 PUSH32(esp, ebx); /* 0x3C001BE6: push ebx */ 2121 PUSH32(esp, esi); /* 0x3C001BE7: push esi */ 2122 esi = ecx; /* 0x3C001BE8: mov esi, ecx */ 2123 ecx = MEM32(esi + 0x10); /* 0x3C001BEA: mov ecx, dword ptr [esi + 0x10] */ 2124 /* test ecx, ecx */ /* 0x3C001BED: test ecx, ecx */ 2125 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2126 _cf = 0; 2127 _flag_k = FK_TEST; 2128 PUSH32(esp, edi); /* 0x3C001BEF: push edi */ 2129 edi = MEM32(esi + 0x4); /* 0x3C001BF0: mov edi, dword ptr [esi + 4] */ 2130 eax = MEM32(edi); /* 0x3C001BF3: mov eax, dword ptr [edi] */ 2131 MEM32(ebp + (-0x4)) = eax; /* 0x3C001BF5: mov dword ptr [ebp - 4], eax */ 2132 if (TEST_Z(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001BF8: je 0x3c001c55 */ 2133 L_3C001BFA: 2134 ecx = eax; /* 0x3C001BFA: mov ecx, eax */ 2135 /* cmp eax, ecx */ /* 0x3C001BFC: cmp eax, ecx */ 2136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2138 _flag_k = FK_CMP; 2139 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001BFE: jne 0x3c001c55 */ 2140 L_3C001C00: 2141 /* cmp edi, edi */ /* 0x3C001C00: cmp edi, edi */ 2142 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2144 _flag_k = FK_CMP; 2145 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001C02: jne 0x3c001c55 */ 2146 L_3C001C04: 2147 ebx = MEM32(edi + 0x4); /* 0x3C001C04: mov ebx, dword ptr [edi + 4] */ 2148 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C001C07: cmp ebx, dword ptr [esi + 8] */ 2149 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2151 _flag_k = FK_CMP; 2152 edi = ebx; /* 0x3C001C0A: mov edi, ebx */ 2153 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001C2D; /* 0x3C001C0C: je 0x3c001c2d */ 2154 L_3C001C0E: 2155 eax = MEM32(edi + 0x8); /* 0x3C001C0E: mov eax, dword ptr [edi + 8] */ 2156 PUSH32(esp, eax); /* 0x3C001C11: push eax */ 2157 ecx = esi; /* 0x3C001C12: mov ecx, esi */ 2158 RECOMP_ICALL(0x3C002020u); /* 0x3C001C14: call 0x3c002020 */ /* not lifted */ 2159 RECOMP_FLAGS_IN(); 2160 edi = MEM32(edi); /* 0x3C001C19: mov edi, dword ptr [edi] */ 2161 PUSH32(esp, ebx); /* 0x3C001C1B: push ebx */ 2162 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C1C: call 0x3c0089de */ /* not lifted */ 2163 RECOMP_FLAGS_IN(); 2164 eax = MEM32(esi + 0x8); /* 0x3C001C21: mov eax, dword ptr [esi + 8] */ 2165 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2166 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2167 esp = esp + 4; /* 0x3C001C24: add esp, 4 */ 2168 _flag_k = FK_ADD; 2169 /* cmp edi, eax */ /* 0x3C001C27: cmp edi, eax */ 2170 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2172 _flag_k = FK_CMP; 2173 ebx = edi; /* 0x3C001C29: mov ebx, edi */ 2174 RECOMP_BACKEDGE(); 2175 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C0E; /* 0x3C001C2B: jne 0x3c001c0e */ 2176 L_3C001C2D: 2177 ecx = MEM32(esi + 0x4); /* 0x3C001C2D: mov ecx, dword ptr [esi + 4] */ 2178 edx = MEM32(esi + 0x8); /* 0x3C001C30: mov edx, dword ptr [esi + 8] */ 2179 MEM32(ecx + 0x4) = edx; /* 0x3C001C33: mov dword ptr [ecx + 4], edx */ 2180 eax = MEM32(esi + 0x4); /* 0x3C001C36: mov eax, dword ptr [esi + 4] */ 2181 MEM32(esi + 0x10) = 0; /* 0x3C001C39: mov dword ptr [esi + 0x10], 0 */ 2182 MEM32(eax) = eax; /* 0x3C001C40: mov dword ptr [eax], eax */ 2183 eax = MEM32(esi + 0x4); /* 0x3C001C42: mov eax, dword ptr [esi + 4] */ 2184 MEM32(eax + 0x8) = eax; /* 0x3C001C45: mov dword ptr [eax + 8], eax */ 2185 eax = ebp + (-0x8); /* 0x3C001C48: lea eax, [ebp - 8] */ 2186 PUSH32(esp, eax); /* 0x3C001C4B: push eax */ 2187 ecx = esi; /* 0x3C001C4C: mov ecx, esi */ 2188 RECOMP_ICALL(0x3C005110u); /* 0x3C001C4E: call 0x3c005110 */ /* not lifted */ 2189 RECOMP_FLAGS_IN(); 2190 goto L_3C001C76; /* 0x3C001C53: jmp 0x3c001c76 */ 2191 L_3C001C55: 2192 /* cmp eax, edi */ /* 0x3C001C55: cmp eax, edi */ 2193 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2195 _flag_k = FK_CMP; 2196 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001C76; /* 0x3C001C57: je 0x3c001c76 */ 2197 L_3C001C59: 2198 ecx = ebp + (-0x4); /* 0x3C001C59: lea ecx, [ebp - 4] */ 2199 ebx = eax; /* 0x3C001C5C: mov ebx, eax */ 2200 RECOMP_ICALL(0x3C007A50u); /* 0x3C001C5E: call 0x3c007a50 */ /* not lifted */ 2201 RECOMP_FLAGS_IN(); 2202 PUSH32(esp, ebx); /* 0x3C001C63: push ebx */ 2203 ecx = ebp + (-0x8); /* 0x3C001C64: lea ecx, [ebp - 8] */ 2204 PUSH32(esp, ecx); /* 0x3C001C67: push ecx */ 2205 ecx = esi; /* 0x3C001C68: mov ecx, esi */ 2206 RECOMP_ICALL(0x3C007320u); /* 0x3C001C6A: call 0x3c007320 */ /* not lifted */ 2207 RECOMP_FLAGS_IN(); 2208 eax = MEM32(ebp + (-0x4)); /* 0x3C001C6F: mov eax, dword ptr [ebp - 4] */ 2209 /* cmp eax, edi */ /* 0x3C001C72: cmp eax, edi */ 2210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2212 _flag_k = FK_CMP; 2213 RECOMP_BACKEDGE(); 2214 if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C59; /* 0x3C001C74: jne 0x3c001c59 */ 2215 L_3C001C76: 2216 edx = MEM32(esi + 0x4); /* 0x3C001C76: mov edx, dword ptr [esi + 4] */ 2217 PUSH32(esp, edx); /* 0x3C001C79: push edx */ 2218 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C7A: call 0x3c0089de */ /* not lifted */ 2219 RECOMP_FLAGS_IN(); 2220 eax = MEM32(esi + 0x8); /* 0x3C001C7F: mov eax, dword ptr [esi + 8] */ 2221 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2222 edi = 0; /* 0x3C001C82: xor edi, edi */ 2223 _cf = 0; 2224 _flag_k = FK_TEST; 2225 PUSH32(esp, eax); /* 0x3C001C84: push eax */ 2226 MEM32(esi + 0x4) = edi; /* 0x3C001C85: mov dword ptr [esi + 4], edi */ 2227 MEM32(esi + 0x10) = edi; /* 0x3C001C88: mov dword ptr [esi + 0x10], edi */ 2228 RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C8B: call 0x3c0089de */ /* not lifted */ 2229 RECOMP_FLAGS_IN(); 2230 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2231 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2232 esp = esp + 8; /* 0x3C001C90: add esp, 8 */ 2233 _flag_k = FK_ADD; 2234 MEM32(esi + 0x8) = edi; /* 0x3C001C93: mov dword ptr [esi + 8], edi */ 2235 edi = POP32_VAL(esp); /* 0x3C001C96: pop edi */ 2236 esi = POP32_VAL(esp); /* 0x3C001C97: pop esi */ 2237 ebx = POP32_VAL(esp); /* 0x3C001C98: pop ebx */ 2238 esp = ebp; /* 0x3C001C99: mov esp, ebp */ 2239 ebp = POP32_VAL(esp); /* 0x3C001C9B: pop ebp */ 2240 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001C9C: ret */ 2241 L_3C008D30: 2242 ecx = MEM32(ebp + (-0x10)); /* 0x3C008D30: mov ecx, dword ptr [ebp - 0x10] */ 2243 RECOMP_BACKEDGE(); 2244 goto L_3C001BE0; /* 0x3C008D33: jmp 0x3c001be0 */ 2245 { RECOMP_REGS_OUT(); return; } /* end of function */ 2246 RECOMP_REGS_OUT(); 2247 } 2248 2249 void sub_3C008D38(void) { 2250 int _fpu_cmp = 0; 2251 uint32_t _cf = 0; 2252 int _df = 1; 2253 uint32_t _flag_k = FK_NONE; 2254 uint32_t _flag_a = 0, _flag_b = 0; 2255 uint32_t _itail_tgt = 0; 2256 RECOMP_REGS_LOCALS 2257 RECOMP_ENTER(0x3C008D38u); 2258 2259 goto L_3C008D38; 2260 L_3C008B46: 2261 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 2262 L_3C008D38: 2263 eax = 0x3C009930u; /* 0x3C008D38: mov eax, 0x3c009930 */ 2264 L_3C008D3D: 2265 RECOMP_BACKEDGE(); 2266 goto L_3C008B46; /* 0x3C008D3D: jmp 0x3c008b46 */ 2267 { RECOMP_REGS_OUT(); return; } /* end of function */ 2268 _ljump: 2269 switch (_itail_tgt) { 2270 case 0x3C008B46u: goto L_3C008B46; 2271 case 0x3C008D38u: goto L_3C008D38; 2272 case 0x3C008D3Du: goto L_3C008D3D; 2273 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2274 } 2275 RECOMP_REGS_OUT(); 2276 } 2277 2278 void sub_3C008D50(void) { 2279 int _fpu_cmp = 0; 2280 uint32_t _cf = 0; 2281 int _df = 1; 2282 uint32_t _flag_k = FK_NONE; 2283 uint32_t _flag_a = 0, _flag_b = 0; 2284 uint32_t _itail_tgt = 0; 2285 RECOMP_REGS_LOCALS 2286 RECOMP_ENTER(0x3C008D50u); 2287 2288 goto L_3C008D50; 2289 L_3C005FD0: 2290 MEM32(ecx) = 0x3C00915Cu; /* 0x3C005FD0: mov dword ptr [ecx], 0x3c00915c */ 2291 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C005FD6: ret */ 2292 L_3C008D50: 2293 ecx = MEM32(ebp + (-0x10)); /* 0x3C008D50: mov ecx, dword ptr [ebp - 0x10] */ 2294 RECOMP_BACKEDGE(); 2295 goto L_3C005FD0; /* 0x3C008D53: jmp 0x3c005fd0 */ 2296 { RECOMP_REGS_OUT(); return; } /* end of function */ 2297 RECOMP_REGS_OUT(); 2298 } 2299 2300 void sub_3C008D58(void) { 2301 int _fpu_cmp = 0; 2302 uint32_t _cf = 0; 2303 int _df = 1; 2304 uint32_t _flag_k = FK_NONE; 2305 uint32_t _flag_a = 0, _flag_b = 0; 2306 uint32_t _itail_tgt = 0; 2307 RECOMP_REGS_LOCALS 2308 RECOMP_ENTER(0x3C008D58u); 2309 2310 goto L_3C008D58; 2311 L_3C008B46: 2312 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 2313 L_3C008D58: 2314 eax = 0x3C009958u; /* 0x3C008D58: mov eax, 0x3c009958 */ 2315 L_3C008D5D: 2316 RECOMP_BACKEDGE(); 2317 goto L_3C008B46; /* 0x3C008D5D: jmp 0x3c008b46 */ 2318 { RECOMP_REGS_OUT(); return; } /* end of function */ 2319 _ljump: 2320 switch (_itail_tgt) { 2321 case 0x3C008B46u: goto L_3C008B46; 2322 case 0x3C008D58u: goto L_3C008D58; 2323 case 0x3C008D5Du: goto L_3C008D5D; 2324 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2325 } 2326 RECOMP_REGS_OUT(); 2327 } 2328 2329 void sub_3C008D70(void) { 2330 int _fpu_cmp = 0; 2331 uint32_t _cf = 0; 2332 int _df = 1; 2333 uint32_t _flag_k = FK_NONE; 2334 uint32_t _flag_a = 0, _flag_b = 0; 2335 uint32_t _itail_tgt = 0; 2336 RECOMP_REGS_LOCALS 2337 RECOMP_ENTER(0x3C008D70u); 2338 2339 goto L_3C008D70; 2340 L_3C003550: 2341 PUSH32(esp, ebp); /* 0x3C003550: push ebp */ 2342 ebp = esp; /* 0x3C003551: mov ebp, esp */ 2343 PUSH32(esp, ecx); /* 0x3C003553: push ecx */ 2344 PUSH32(esp, esi); /* 0x3C003554: push esi */ 2345 esi = ecx; /* 0x3C003555: mov esi, ecx */ 2346 MEM32(esi) = 0x3C0091D8u; /* 0x3C003557: mov dword ptr [esi], 0x3c0091d8 */ 2347 eax = MEM32(esi + 0x8); /* 0x3C00355D: mov eax, dword ptr [esi + 8] */ 2348 PUSH32(esp, eax); /* 0x3C003560: push eax */ 2349 MEM32(ebp + (-0x4)) = eax; /* 0x3C003561: mov dword ptr [ebp - 4], eax */ 2350 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003564: call 0x3c0089de */ /* not lifted */ 2351 RECOMP_FLAGS_IN(); 2352 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2353 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2354 esp = esp + 4; /* 0x3C003569: add esp, 4 */ 2355 _flag_k = FK_ADD; 2356 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2357 eax = 0; /* 0x3C00356C: xor eax, eax */ 2358 _cf = 0; 2359 _flag_k = FK_TEST; 2360 MEM32(esi + 0x8) = eax; /* 0x3C00356E: mov dword ptr [esi + 8], eax */ 2361 MEM32(esi + 0xC) = eax; /* 0x3C003571: mov dword ptr [esi + 0xc], eax */ 2362 MEM32(esi + 0x10) = eax; /* 0x3C003574: mov dword ptr [esi + 0x10], eax */ 2363 esi = POP32_VAL(esp); /* 0x3C003577: pop esi */ 2364 esp = ebp; /* 0x3C003578: mov esp, ebp */ 2365 ebp = POP32_VAL(esp); /* 0x3C00357A: pop ebp */ 2366 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00357B: ret */ 2367 L_3C008D70: 2368 ecx = ebp + (-0x80); /* 0x3C008D70: lea ecx, [ebp - 0x80] */ 2369 RECOMP_BACKEDGE(); 2370 goto L_3C003550; /* 0x3C008D73: jmp 0x3c003550 */ 2371 { RECOMP_REGS_OUT(); return; } /* end of function */ 2372 RECOMP_REGS_OUT(); 2373 } 2374 2375 void sub_3C008D78(void) { 2376 int _fpu_cmp = 0; 2377 uint32_t _cf = 0; 2378 int _df = 1; 2379 uint32_t _flag_k = FK_NONE; 2380 uint32_t _flag_a = 0, _flag_b = 0; 2381 uint32_t _itail_tgt = 0; 2382 RECOMP_REGS_LOCALS 2383 RECOMP_ENTER(0x3C008D78u); 2384 2385 goto L_3C008D78; 2386 L_3C003550: 2387 PUSH32(esp, ebp); /* 0x3C003550: push ebp */ 2388 ebp = esp; /* 0x3C003551: mov ebp, esp */ 2389 PUSH32(esp, ecx); /* 0x3C003553: push ecx */ 2390 PUSH32(esp, esi); /* 0x3C003554: push esi */ 2391 esi = ecx; /* 0x3C003555: mov esi, ecx */ 2392 MEM32(esi) = 0x3C0091D8u; /* 0x3C003557: mov dword ptr [esi], 0x3c0091d8 */ 2393 eax = MEM32(esi + 0x8); /* 0x3C00355D: mov eax, dword ptr [esi + 8] */ 2394 PUSH32(esp, eax); /* 0x3C003560: push eax */ 2395 MEM32(ebp + (-0x4)) = eax; /* 0x3C003561: mov dword ptr [ebp - 4], eax */ 2396 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003564: call 0x3c0089de */ /* not lifted */ 2397 RECOMP_FLAGS_IN(); 2398 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2400 esp = esp + 4; /* 0x3C003569: add esp, 4 */ 2401 _flag_k = FK_ADD; 2402 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2403 eax = 0; /* 0x3C00356C: xor eax, eax */ 2404 _cf = 0; 2405 _flag_k = FK_TEST; 2406 MEM32(esi + 0x8) = eax; /* 0x3C00356E: mov dword ptr [esi + 8], eax */ 2407 MEM32(esi + 0xC) = eax; /* 0x3C003571: mov dword ptr [esi + 0xc], eax */ 2408 MEM32(esi + 0x10) = eax; /* 0x3C003574: mov dword ptr [esi + 0x10], eax */ 2409 esi = POP32_VAL(esp); /* 0x3C003577: pop esi */ 2410 esp = ebp; /* 0x3C003578: mov esp, ebp */ 2411 ebp = POP32_VAL(esp); /* 0x3C00357A: pop ebp */ 2412 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00357B: ret */ 2413 L_3C008D78: 2414 ecx = ebp + (-0x64); /* 0x3C008D78: lea ecx, [ebp - 0x64] */ 2415 RECOMP_BACKEDGE(); 2416 goto L_3C003550; /* 0x3C008D7B: jmp 0x3c003550 */ 2417 { RECOMP_REGS_OUT(); return; } /* end of function */ 2418 RECOMP_REGS_OUT(); 2419 } 2420 2421 void sub_3C008D80(void) { 2422 int _fpu_cmp = 0; 2423 uint32_t _cf = 0; 2424 int _df = 1; 2425 uint32_t _flag_k = FK_NONE; 2426 uint32_t _flag_a = 0, _flag_b = 0; 2427 uint32_t _itail_tgt = 0; 2428 RECOMP_REGS_LOCALS 2429 RECOMP_ENTER(0x3C008D80u); 2430 2431 goto L_3C008D80; 2432 L_3C008B46: 2433 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 2434 L_3C008D80: 2435 eax = 0x3C009980u; /* 0x3C008D80: mov eax, 0x3c009980 */ 2436 L_3C008D85: 2437 RECOMP_BACKEDGE(); 2438 goto L_3C008B46; /* 0x3C008D85: jmp 0x3c008b46 */ 2439 { RECOMP_REGS_OUT(); return; } /* end of function */ 2440 _ljump: 2441 switch (_itail_tgt) { 2442 case 0x3C008B46u: goto L_3C008B46; 2443 case 0x3C008D80u: goto L_3C008D80; 2444 case 0x3C008D85u: goto L_3C008D85; 2445 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2446 } 2447 RECOMP_REGS_OUT(); 2448 } 2449 2450 void sub_3C008D90(void) { 2451 int _fpu_cmp = 0; 2452 uint32_t _cf = 0; 2453 int _df = 1; 2454 uint32_t _flag_k = FK_NONE; 2455 uint32_t _flag_a = 0, _flag_b = 0; 2456 uint32_t _itail_tgt = 0; 2457 RECOMP_REGS_LOCALS 2458 RECOMP_ENTER(0x3C008D90u); 2459 2460 L_3C008D90: 2461 eax = MEM32(ebp + (-0x14)); /* 0x3C008D90: mov eax, dword ptr [ebp - 0x14] */ 2462 PUSH32(esp, eax); /* 0x3C008D93: push eax */ 2463 RECOMP_ICALL(0x3C0089DEu); /* 0x3C008D94: call 0x3c0089de */ /* not lifted */ 2464 RECOMP_FLAGS_IN(); 2465 ecx = POP32_VAL(esp); /* 0x3C008D99: pop ecx */ 2466 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008D9A: ret */ 2467 RECOMP_REGS_OUT(); 2468 } 2469 2470 void sub_3C008D9B(void) { 2471 int _fpu_cmp = 0; 2472 uint32_t _cf = 0; 2473 int _df = 1; 2474 uint32_t _flag_k = FK_NONE; 2475 uint32_t _flag_a = 0, _flag_b = 0; 2476 uint32_t _itail_tgt = 0; 2477 RECOMP_REGS_LOCALS 2478 RECOMP_ENTER(0x3C008D9Bu); 2479 2480 L_3C008D9B: 2481 eax = MEM32(ebp + (-0x14)); /* 0x3C008D9B: mov eax, dword ptr [ebp - 0x14] */ 2482 PUSH32(esp, eax); /* 0x3C008D9E: push eax */ 2483 RECOMP_ICALL(0x3C0089DEu); /* 0x3C008D9F: call 0x3c0089de */ /* not lifted */ 2484 RECOMP_FLAGS_IN(); 2485 ecx = POP32_VAL(esp); /* 0x3C008DA4: pop ecx */ 2486 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008DA5: ret */ 2487 RECOMP_REGS_OUT(); 2488 } 2489 2490 void sub_3C008DA6(void) { 2491 int _fpu_cmp = 0; 2492 uint32_t _cf = 0; 2493 int _df = 1; 2494 uint32_t _flag_k = FK_NONE; 2495 uint32_t _flag_a = 0, _flag_b = 0; 2496 uint32_t _itail_tgt = 0; 2497 RECOMP_REGS_LOCALS 2498 RECOMP_ENTER(0x3C008DA6u); 2499 2500 L_3C008DA6: 2501 eax = MEM32(ebp + (-0x14)); /* 0x3C008DA6: mov eax, dword ptr [ebp - 0x14] */ 2502 PUSH32(esp, eax); /* 0x3C008DA9: push eax */ 2503 RECOMP_ICALL(0x3C0089DEu); /* 0x3C008DAA: call 0x3c0089de */ /* not lifted */ 2504 RECOMP_FLAGS_IN(); 2505 ecx = POP32_VAL(esp); /* 0x3C008DAF: pop ecx */ 2506 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008DB0: ret */ 2507 RECOMP_REGS_OUT(); 2508 } 2509 2510 void sub_3C008DB1(void) { 2511 int _fpu_cmp = 0; 2512 uint32_t _cf = 0; 2513 int _df = 1; 2514 uint32_t _flag_k = FK_NONE; 2515 uint32_t _flag_a = 0, _flag_b = 0; 2516 uint32_t _itail_tgt = 0; 2517 RECOMP_REGS_LOCALS 2518 RECOMP_ENTER(0x3C008DB1u); 2519 2520 goto L_3C008DB1; 2521 L_3C008B46: 2522 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 2523 L_3C008DB1: 2524 eax = 0x3C0099B0u; /* 0x3C008DB1: mov eax, 0x3c0099b0 */ 2525 L_3C008DB6: 2526 RECOMP_BACKEDGE(); 2527 goto L_3C008B46; /* 0x3C008DB6: jmp 0x3c008b46 */ 2528 { RECOMP_REGS_OUT(); return; } /* end of function */ 2529 _ljump: 2530 switch (_itail_tgt) { 2531 case 0x3C008B46u: goto L_3C008B46; 2532 case 0x3C008DB1u: goto L_3C008DB1; 2533 case 0x3C008DB6u: goto L_3C008DB6; 2534 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2535 } 2536 RECOMP_REGS_OUT(); 2537 } 2538 2539 void sub_3C008DC0(void) { 2540 int _fpu_cmp = 0; 2541 uint32_t _cf = 0; 2542 int _df = 1; 2543 uint32_t _flag_k = FK_NONE; 2544 uint32_t _flag_a = 0, _flag_b = 0; 2545 uint32_t _itail_tgt = 0; 2546 RECOMP_REGS_LOCALS 2547 RECOMP_ENTER(0x3C008DC0u); 2548 2549 goto L_3C008DC0; 2550 L_3C003F50: 2551 PUSH32(esp, ebp); /* 0x3C003F50: push ebp */ 2552 ebp = esp; /* 0x3C003F51: mov ebp, esp */ 2553 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2555 esp = esp - 8; /* 0x3C003F53: sub esp, 8 */ 2556 _flag_k = FK_CMP; 2557 PUSH32(esp, ebx); /* 0x3C003F56: push ebx */ 2558 PUSH32(esp, esi); /* 0x3C003F57: push esi */ 2559 esi = ecx + 0xC; /* 0x3C003F58: lea esi, [ecx + 0xc] */ 2560 MEM32(ecx) = 0x3C0092A4u; /* 0x3C003F5B: mov dword ptr [ecx], 0x3c0092a4 */ 2561 ecx = MEM32(esi + 0x10); /* 0x3C003F61: mov ecx, dword ptr [esi + 0x10] */ 2562 /* test ecx, ecx */ /* 0x3C003F64: test ecx, ecx */ 2563 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2564 _cf = 0; 2565 _flag_k = FK_TEST; 2566 PUSH32(esp, edi); /* 0x3C003F66: push edi */ 2567 edi = MEM32(esi + 0x4); /* 0x3C003F67: mov edi, dword ptr [esi + 4] */ 2568 eax = MEM32(edi); /* 0x3C003F6A: mov eax, dword ptr [edi] */ 2569 MEM32(ebp + (-0x4)) = eax; /* 0x3C003F6C: mov dword ptr [ebp - 4], eax */ 2570 if (TEST_Z(_flag_a, _flag_b)) goto L_3C003FCC; /* 0x3C003F6F: je 0x3c003fcc */ 2571 L_3C003F71: 2572 ecx = eax; /* 0x3C003F71: mov ecx, eax */ 2573 /* cmp eax, ecx */ /* 0x3C003F73: cmp eax, ecx */ 2574 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2576 _flag_k = FK_CMP; 2577 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003FCC; /* 0x3C003F75: jne 0x3c003fcc */ 2578 L_3C003F77: 2579 /* cmp edi, edi */ /* 0x3C003F77: cmp edi, edi */ 2580 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2582 _flag_k = FK_CMP; 2583 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003FCC; /* 0x3C003F79: jne 0x3c003fcc */ 2584 L_3C003F7B: 2585 ebx = MEM32(edi + 0x4); /* 0x3C003F7B: mov ebx, dword ptr [edi + 4] */ 2586 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C003F7E: cmp ebx, dword ptr [esi + 8] */ 2587 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2589 _flag_k = FK_CMP; 2590 edi = ebx; /* 0x3C003F81: mov edi, ebx */ 2591 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003FA4; /* 0x3C003F83: je 0x3c003fa4 */ 2592 L_3C003F85: 2593 eax = MEM32(edi + 0x8); /* 0x3C003F85: mov eax, dword ptr [edi + 8] */ 2594 PUSH32(esp, eax); /* 0x3C003F88: push eax */ 2595 ecx = esi; /* 0x3C003F89: mov ecx, esi */ 2596 RECOMP_ICALL(0x3C005A90u); /* 0x3C003F8B: call 0x3c005a90 */ /* not lifted */ 2597 RECOMP_FLAGS_IN(); 2598 edi = MEM32(edi); /* 0x3C003F90: mov edi, dword ptr [edi] */ 2599 PUSH32(esp, ebx); /* 0x3C003F92: push ebx */ 2600 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003F93: call 0x3c0089de */ /* not lifted */ 2601 RECOMP_FLAGS_IN(); 2602 eax = MEM32(esi + 0x8); /* 0x3C003F98: mov eax, dword ptr [esi + 8] */ 2603 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2605 esp = esp + 4; /* 0x3C003F9B: add esp, 4 */ 2606 _flag_k = FK_ADD; 2607 /* cmp edi, eax */ /* 0x3C003F9E: cmp edi, eax */ 2608 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2610 _flag_k = FK_CMP; 2611 ebx = edi; /* 0x3C003FA0: mov ebx, edi */ 2612 RECOMP_BACKEDGE(); 2613 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003F85; /* 0x3C003FA2: jne 0x3c003f85 */ 2614 L_3C003FA4: 2615 ecx = MEM32(esi + 0x4); /* 0x3C003FA4: mov ecx, dword ptr [esi + 4] */ 2616 edx = MEM32(esi + 0x8); /* 0x3C003FA7: mov edx, dword ptr [esi + 8] */ 2617 MEM32(ecx + 0x4) = edx; /* 0x3C003FAA: mov dword ptr [ecx + 4], edx */ 2618 eax = MEM32(esi + 0x4); /* 0x3C003FAD: mov eax, dword ptr [esi + 4] */ 2619 MEM32(esi + 0x10) = 0; /* 0x3C003FB0: mov dword ptr [esi + 0x10], 0 */ 2620 MEM32(eax) = eax; /* 0x3C003FB7: mov dword ptr [eax], eax */ 2621 eax = MEM32(esi + 0x4); /* 0x3C003FB9: mov eax, dword ptr [esi + 4] */ 2622 MEM32(eax + 0x8) = eax; /* 0x3C003FBC: mov dword ptr [eax + 8], eax */ 2623 eax = ebp + (-0x8); /* 0x3C003FBF: lea eax, [ebp - 8] */ 2624 PUSH32(esp, eax); /* 0x3C003FC2: push eax */ 2625 ecx = esi; /* 0x3C003FC3: mov ecx, esi */ 2626 RECOMP_ICALL(0x3C005110u); /* 0x3C003FC5: call 0x3c005110 */ /* not lifted */ 2627 RECOMP_FLAGS_IN(); 2628 goto L_3C003FED; /* 0x3C003FCA: jmp 0x3c003fed */ 2629 L_3C003FCC: 2630 /* cmp eax, edi */ /* 0x3C003FCC: cmp eax, edi */ 2631 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2633 _flag_k = FK_CMP; 2634 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003FED; /* 0x3C003FCE: je 0x3c003fed */ 2635 L_3C003FD0: 2636 ecx = ebp + (-0x4); /* 0x3C003FD0: lea ecx, [ebp - 4] */ 2637 ebx = eax; /* 0x3C003FD3: mov ebx, eax */ 2638 RECOMP_ICALL(0x3C005430u); /* 0x3C003FD5: call 0x3c005430 */ /* not lifted */ 2639 RECOMP_FLAGS_IN(); 2640 PUSH32(esp, ebx); /* 0x3C003FDA: push ebx */ 2641 ecx = ebp + (-0x8); /* 0x3C003FDB: lea ecx, [ebp - 8] */ 2642 PUSH32(esp, ecx); /* 0x3C003FDE: push ecx */ 2643 ecx = esi; /* 0x3C003FDF: mov ecx, esi */ 2644 RECOMP_ICALL(0x3C005690u); /* 0x3C003FE1: call 0x3c005690 */ /* not lifted */ 2645 RECOMP_FLAGS_IN(); 2646 eax = MEM32(ebp + (-0x4)); /* 0x3C003FE6: mov eax, dword ptr [ebp - 4] */ 2647 /* cmp eax, edi */ /* 0x3C003FE9: cmp eax, edi */ 2648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2650 _flag_k = FK_CMP; 2651 RECOMP_BACKEDGE(); 2652 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003FD0; /* 0x3C003FEB: jne 0x3c003fd0 */ 2653 L_3C003FED: 2654 edx = MEM32(esi + 0x4); /* 0x3C003FED: mov edx, dword ptr [esi + 4] */ 2655 PUSH32(esp, edx); /* 0x3C003FF0: push edx */ 2656 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003FF1: call 0x3c0089de */ /* not lifted */ 2657 RECOMP_FLAGS_IN(); 2658 eax = MEM32(esi + 0x8); /* 0x3C003FF6: mov eax, dword ptr [esi + 8] */ 2659 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2660 edi = 0; /* 0x3C003FF9: xor edi, edi */ 2661 _cf = 0; 2662 _flag_k = FK_TEST; 2663 PUSH32(esp, eax); /* 0x3C003FFB: push eax */ 2664 MEM32(esi + 0x4) = edi; /* 0x3C003FFC: mov dword ptr [esi + 4], edi */ 2665 MEM32(esi + 0x10) = edi; /* 0x3C003FFF: mov dword ptr [esi + 0x10], edi */ 2666 RECOMP_ICALL(0x3C0089DEu); /* 0x3C004002: call 0x3c0089de */ /* not lifted */ 2667 RECOMP_FLAGS_IN(); 2668 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2670 esp = esp + 8; /* 0x3C004007: add esp, 8 */ 2671 _flag_k = FK_ADD; 2672 MEM32(esi + 0x8) = edi; /* 0x3C00400A: mov dword ptr [esi + 8], edi */ 2673 edi = POP32_VAL(esp); /* 0x3C00400D: pop edi */ 2674 esi = POP32_VAL(esp); /* 0x3C00400E: pop esi */ 2675 ebx = POP32_VAL(esp); /* 0x3C00400F: pop ebx */ 2676 esp = ebp; /* 0x3C004010: mov esp, ebp */ 2677 ebp = POP32_VAL(esp); /* 0x3C004012: pop ebp */ 2678 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004013: ret */ 2679 L_3C008DC0: 2680 ecx = ebp + (-0x54); /* 0x3C008DC0: lea ecx, [ebp - 0x54] */ 2681 RECOMP_BACKEDGE(); 2682 goto L_3C003F50; /* 0x3C008DC3: jmp 0x3c003f50 */ 2683 { RECOMP_REGS_OUT(); return; } /* end of function */ 2684 RECOMP_REGS_OUT(); 2685 } 2686 2687 void sub_3C008DC8(void) { 2688 int _fpu_cmp = 0; 2689 uint32_t _cf = 0; 2690 int _df = 1; 2691 uint32_t _flag_k = FK_NONE; 2692 uint32_t _flag_a = 0, _flag_b = 0; 2693 uint32_t _itail_tgt = 0; 2694 RECOMP_REGS_LOCALS 2695 RECOMP_ENTER(0x3C008DC8u); 2696 2697 goto L_3C008DC8; 2698 L_3C004AC0: 2699 MEM32(ecx) = 0x3C009284u; /* 0x3C004AC0: mov dword ptr [ecx], 0x3c009284 */ 2700 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004AC6: ret */ 2701 L_3C008DC8: 2702 ecx = ebp + (-0x88); /* 0x3C008DC8: lea ecx, [ebp - 0x88] */ 2703 RECOMP_BACKEDGE(); 2704 goto L_3C004AC0; /* 0x3C008DCE: jmp 0x3c004ac0 */ 2705 { RECOMP_REGS_OUT(); return; } /* end of function */ 2706 RECOMP_REGS_OUT(); 2707 } 2708 2709 void sub_3C008DD3(void) { 2710 int _fpu_cmp = 0; 2711 uint32_t _cf = 0; 2712 int _df = 1; 2713 uint32_t _flag_k = FK_NONE; 2714 uint32_t _flag_a = 0, _flag_b = 0; 2715 uint32_t _itail_tgt = 0; 2716 RECOMP_REGS_LOCALS 2717 RECOMP_ENTER(0x3C008DD3u); 2718 2719 goto L_3C008DD3; 2720 L_3C008B46: 2721 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 2722 L_3C008DD3: 2723 eax = 0x3C0099E8u; /* 0x3C008DD3: mov eax, 0x3c0099e8 */ 2724 L_3C008DD8: 2725 RECOMP_BACKEDGE(); 2726 goto L_3C008B46; /* 0x3C008DD8: jmp 0x3c008b46 */ 2727 { RECOMP_REGS_OUT(); return; } /* end of function */ 2728 _ljump: 2729 switch (_itail_tgt) { 2730 case 0x3C008B46u: goto L_3C008B46; 2731 case 0x3C008DD3u: goto L_3C008DD3; 2732 case 0x3C008DD8u: goto L_3C008DD8; 2733 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2734 } 2735 RECOMP_REGS_OUT(); 2736 } 2737 2738 void sub_3C008DE0(void) { 2739 int _fpu_cmp = 0; 2740 uint32_t _cf = 0; 2741 int _df = 1; 2742 uint32_t _flag_k = FK_NONE; 2743 uint32_t _flag_a = 0, _flag_b = 0; 2744 uint32_t _itail_tgt = 0; 2745 RECOMP_REGS_LOCALS 2746 RECOMP_ENTER(0x3C008DE0u); 2747 2748 L_3C008DE0: 2749 eax = MEM32(ebp + (-0x14)); /* 0x3C008DE0: mov eax, dword ptr [ebp - 0x14] */ 2750 PUSH32(esp, eax); /* 0x3C008DE3: push eax */ 2751 RECOMP_ICALL(0x3C0089DEu); /* 0x3C008DE4: call 0x3c0089de */ /* not lifted */ 2752 RECOMP_FLAGS_IN(); 2753 ecx = POP32_VAL(esp); /* 0x3C008DE9: pop ecx */ 2754 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008DEA: ret */ 2755 RECOMP_REGS_OUT(); 2756 } 2757 2758 void sub_3C008DEB(void) { 2759 int _fpu_cmp = 0; 2760 uint32_t _cf = 0; 2761 int _df = 1; 2762 uint32_t _flag_k = FK_NONE; 2763 uint32_t _flag_a = 0, _flag_b = 0; 2764 uint32_t _itail_tgt = 0; 2765 RECOMP_REGS_LOCALS 2766 RECOMP_ENTER(0x3C008DEBu); 2767 2768 goto L_3C008DEB; 2769 L_3C008B46: 2770 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 2771 L_3C008DEB: 2772 eax = 0x3C009A18u; /* 0x3C008DEB: mov eax, 0x3c009a18 */ 2773 L_3C008DF0: 2774 RECOMP_BACKEDGE(); 2775 goto L_3C008B46; /* 0x3C008DF0: jmp 0x3c008b46 */ 2776 { RECOMP_REGS_OUT(); return; } /* end of function */ 2777 _ljump: 2778 switch (_itail_tgt) { 2779 case 0x3C008B46u: goto L_3C008B46; 2780 case 0x3C008DEBu: goto L_3C008DEB; 2781 case 0x3C008DF0u: goto L_3C008DF0; 2782 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2783 } 2784 RECOMP_REGS_OUT(); 2785 } 2786 2787 void sub_3C008E00(void) { 2788 int _fpu_cmp = 0; 2789 uint32_t _cf = 0; 2790 int _df = 1; 2791 uint32_t _flag_k = FK_NONE; 2792 uint32_t _flag_a = 0, _flag_b = 0; 2793 uint32_t _itail_tgt = 0; 2794 RECOMP_REGS_LOCALS 2795 RECOMP_ENTER(0x3C008E00u); 2796 2797 goto L_3C008E00; 2798 L_3C004F50: 2799 PUSH32(esp, ebp); /* 0x3C004F50: push ebp */ 2800 ebp = esp; /* 0x3C004F51: mov ebp, esp */ 2801 PUSH32(esp, ecx); /* 0x3C004F53: push ecx */ 2802 PUSH32(esp, esi); /* 0x3C004F54: push esi */ 2803 esi = ecx; /* 0x3C004F55: mov esi, ecx */ 2804 eax = MEM32(esi + 0x4); /* 0x3C004F57: mov eax, dword ptr [esi + 4] */ 2805 PUSH32(esp, eax); /* 0x3C004F5A: push eax */ 2806 MEM32(ebp + (-0x4)) = eax; /* 0x3C004F5B: mov dword ptr [ebp - 4], eax */ 2807 RECOMP_ICALL(0x3C0089DEu); /* 0x3C004F5E: call 0x3c0089de */ /* not lifted */ 2808 RECOMP_FLAGS_IN(); 2809 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2810 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2811 esp = esp + 4; /* 0x3C004F63: add esp, 4 */ 2812 _flag_k = FK_ADD; 2813 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2814 eax = 0; /* 0x3C004F66: xor eax, eax */ 2815 _cf = 0; 2816 _flag_k = FK_TEST; 2817 MEM32(esi + 0x4) = eax; /* 0x3C004F68: mov dword ptr [esi + 4], eax */ 2818 MEM32(esi + 0x8) = eax; /* 0x3C004F6B: mov dword ptr [esi + 8], eax */ 2819 MEM32(esi + 0xC) = eax; /* 0x3C004F6E: mov dword ptr [esi + 0xc], eax */ 2820 esi = POP32_VAL(esp); /* 0x3C004F71: pop esi */ 2821 esp = ebp; /* 0x3C004F72: mov esp, ebp */ 2822 ebp = POP32_VAL(esp); /* 0x3C004F74: pop ebp */ 2823 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004F75: ret */ 2824 L_3C008E00: 2825 ecx = ebp + (-0x20); /* 0x3C008E00: lea ecx, [ebp - 0x20] */ 2826 RECOMP_BACKEDGE(); 2827 goto L_3C004F50; /* 0x3C008E03: jmp 0x3c004f50 */ 2828 { RECOMP_REGS_OUT(); return; } /* end of function */ 2829 RECOMP_REGS_OUT(); 2830 } 2831 2832 void sub_3C008E08(void) { 2833 int _fpu_cmp = 0; 2834 uint32_t _cf = 0; 2835 int _df = 1; 2836 uint32_t _flag_k = FK_NONE; 2837 uint32_t _flag_a = 0, _flag_b = 0; 2838 uint32_t _itail_tgt = 0; 2839 RECOMP_REGS_LOCALS 2840 RECOMP_ENTER(0x3C008E08u); 2841 2842 goto L_3C008E08; 2843 L_3C003F50: 2844 PUSH32(esp, ebp); /* 0x3C003F50: push ebp */ 2845 ebp = esp; /* 0x3C003F51: mov ebp, esp */ 2846 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2848 esp = esp - 8; /* 0x3C003F53: sub esp, 8 */ 2849 _flag_k = FK_CMP; 2850 PUSH32(esp, ebx); /* 0x3C003F56: push ebx */ 2851 PUSH32(esp, esi); /* 0x3C003F57: push esi */ 2852 esi = ecx + 0xC; /* 0x3C003F58: lea esi, [ecx + 0xc] */ 2853 MEM32(ecx) = 0x3C0092A4u; /* 0x3C003F5B: mov dword ptr [ecx], 0x3c0092a4 */ 2854 ecx = MEM32(esi + 0x10); /* 0x3C003F61: mov ecx, dword ptr [esi + 0x10] */ 2855 /* test ecx, ecx */ /* 0x3C003F64: test ecx, ecx */ 2856 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2857 _cf = 0; 2858 _flag_k = FK_TEST; 2859 PUSH32(esp, edi); /* 0x3C003F66: push edi */ 2860 edi = MEM32(esi + 0x4); /* 0x3C003F67: mov edi, dword ptr [esi + 4] */ 2861 eax = MEM32(edi); /* 0x3C003F6A: mov eax, dword ptr [edi] */ 2862 MEM32(ebp + (-0x4)) = eax; /* 0x3C003F6C: mov dword ptr [ebp - 4], eax */ 2863 if (TEST_Z(_flag_a, _flag_b)) goto L_3C003FCC; /* 0x3C003F6F: je 0x3c003fcc */ 2864 L_3C003F71: 2865 ecx = eax; /* 0x3C003F71: mov ecx, eax */ 2866 /* cmp eax, ecx */ /* 0x3C003F73: cmp eax, ecx */ 2867 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2869 _flag_k = FK_CMP; 2870 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003FCC; /* 0x3C003F75: jne 0x3c003fcc */ 2871 L_3C003F77: 2872 /* cmp edi, edi */ /* 0x3C003F77: cmp edi, edi */ 2873 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2875 _flag_k = FK_CMP; 2876 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003FCC; /* 0x3C003F79: jne 0x3c003fcc */ 2877 L_3C003F7B: 2878 ebx = MEM32(edi + 0x4); /* 0x3C003F7B: mov ebx, dword ptr [edi + 4] */ 2879 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C003F7E: cmp ebx, dword ptr [esi + 8] */ 2880 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2882 _flag_k = FK_CMP; 2883 edi = ebx; /* 0x3C003F81: mov edi, ebx */ 2884 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003FA4; /* 0x3C003F83: je 0x3c003fa4 */ 2885 L_3C003F85: 2886 eax = MEM32(edi + 0x8); /* 0x3C003F85: mov eax, dword ptr [edi + 8] */ 2887 PUSH32(esp, eax); /* 0x3C003F88: push eax */ 2888 ecx = esi; /* 0x3C003F89: mov ecx, esi */ 2889 RECOMP_ICALL(0x3C005A90u); /* 0x3C003F8B: call 0x3c005a90 */ /* not lifted */ 2890 RECOMP_FLAGS_IN(); 2891 edi = MEM32(edi); /* 0x3C003F90: mov edi, dword ptr [edi] */ 2892 PUSH32(esp, ebx); /* 0x3C003F92: push ebx */ 2893 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003F93: call 0x3c0089de */ /* not lifted */ 2894 RECOMP_FLAGS_IN(); 2895 eax = MEM32(esi + 0x8); /* 0x3C003F98: mov eax, dword ptr [esi + 8] */ 2896 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2897 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2898 esp = esp + 4; /* 0x3C003F9B: add esp, 4 */ 2899 _flag_k = FK_ADD; 2900 /* cmp edi, eax */ /* 0x3C003F9E: cmp edi, eax */ 2901 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2903 _flag_k = FK_CMP; 2904 ebx = edi; /* 0x3C003FA0: mov ebx, edi */ 2905 RECOMP_BACKEDGE(); 2906 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003F85; /* 0x3C003FA2: jne 0x3c003f85 */ 2907 L_3C003FA4: 2908 ecx = MEM32(esi + 0x4); /* 0x3C003FA4: mov ecx, dword ptr [esi + 4] */ 2909 edx = MEM32(esi + 0x8); /* 0x3C003FA7: mov edx, dword ptr [esi + 8] */ 2910 MEM32(ecx + 0x4) = edx; /* 0x3C003FAA: mov dword ptr [ecx + 4], edx */ 2911 eax = MEM32(esi + 0x4); /* 0x3C003FAD: mov eax, dword ptr [esi + 4] */ 2912 MEM32(esi + 0x10) = 0; /* 0x3C003FB0: mov dword ptr [esi + 0x10], 0 */ 2913 MEM32(eax) = eax; /* 0x3C003FB7: mov dword ptr [eax], eax */ 2914 eax = MEM32(esi + 0x4); /* 0x3C003FB9: mov eax, dword ptr [esi + 4] */ 2915 MEM32(eax + 0x8) = eax; /* 0x3C003FBC: mov dword ptr [eax + 8], eax */ 2916 eax = ebp + (-0x8); /* 0x3C003FBF: lea eax, [ebp - 8] */ 2917 PUSH32(esp, eax); /* 0x3C003FC2: push eax */ 2918 ecx = esi; /* 0x3C003FC3: mov ecx, esi */ 2919 RECOMP_ICALL(0x3C005110u); /* 0x3C003FC5: call 0x3c005110 */ /* not lifted */ 2920 RECOMP_FLAGS_IN(); 2921 goto L_3C003FED; /* 0x3C003FCA: jmp 0x3c003fed */ 2922 L_3C003FCC: 2923 /* cmp eax, edi */ /* 0x3C003FCC: cmp eax, edi */ 2924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2926 _flag_k = FK_CMP; 2927 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003FED; /* 0x3C003FCE: je 0x3c003fed */ 2928 L_3C003FD0: 2929 ecx = ebp + (-0x4); /* 0x3C003FD0: lea ecx, [ebp - 4] */ 2930 ebx = eax; /* 0x3C003FD3: mov ebx, eax */ 2931 RECOMP_ICALL(0x3C005430u); /* 0x3C003FD5: call 0x3c005430 */ /* not lifted */ 2932 RECOMP_FLAGS_IN(); 2933 PUSH32(esp, ebx); /* 0x3C003FDA: push ebx */ 2934 ecx = ebp + (-0x8); /* 0x3C003FDB: lea ecx, [ebp - 8] */ 2935 PUSH32(esp, ecx); /* 0x3C003FDE: push ecx */ 2936 ecx = esi; /* 0x3C003FDF: mov ecx, esi */ 2937 RECOMP_ICALL(0x3C005690u); /* 0x3C003FE1: call 0x3c005690 */ /* not lifted */ 2938 RECOMP_FLAGS_IN(); 2939 eax = MEM32(ebp + (-0x4)); /* 0x3C003FE6: mov eax, dword ptr [ebp - 4] */ 2940 /* cmp eax, edi */ /* 0x3C003FE9: cmp eax, edi */ 2941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2943 _flag_k = FK_CMP; 2944 RECOMP_BACKEDGE(); 2945 if (CMP_NE(_flag_a, _flag_b)) goto L_3C003FD0; /* 0x3C003FEB: jne 0x3c003fd0 */ 2946 L_3C003FED: 2947 edx = MEM32(esi + 0x4); /* 0x3C003FED: mov edx, dword ptr [esi + 4] */ 2948 PUSH32(esp, edx); /* 0x3C003FF0: push edx */ 2949 RECOMP_ICALL(0x3C0089DEu); /* 0x3C003FF1: call 0x3c0089de */ /* not lifted */ 2950 RECOMP_FLAGS_IN(); 2951 eax = MEM32(esi + 0x8); /* 0x3C003FF6: mov eax, dword ptr [esi + 8] */ 2952 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2953 edi = 0; /* 0x3C003FF9: xor edi, edi */ 2954 _cf = 0; 2955 _flag_k = FK_TEST; 2956 PUSH32(esp, eax); /* 0x3C003FFB: push eax */ 2957 MEM32(esi + 0x4) = edi; /* 0x3C003FFC: mov dword ptr [esi + 4], edi */ 2958 MEM32(esi + 0x10) = edi; /* 0x3C003FFF: mov dword ptr [esi + 0x10], edi */ 2959 RECOMP_ICALL(0x3C0089DEu); /* 0x3C004002: call 0x3c0089de */ /* not lifted */ 2960 RECOMP_FLAGS_IN(); 2961 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2962 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2963 esp = esp + 8; /* 0x3C004007: add esp, 8 */ 2964 _flag_k = FK_ADD; 2965 MEM32(esi + 0x8) = edi; /* 0x3C00400A: mov dword ptr [esi + 8], edi */ 2966 edi = POP32_VAL(esp); /* 0x3C00400D: pop edi */ 2967 esi = POP32_VAL(esp); /* 0x3C00400E: pop esi */ 2968 ebx = POP32_VAL(esp); /* 0x3C00400F: pop ebx */ 2969 esp = ebp; /* 0x3C004010: mov esp, ebp */ 2970 ebp = POP32_VAL(esp); /* 0x3C004012: pop ebp */ 2971 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004013: ret */ 2972 L_3C008E08: 2973 ecx = ebp + (-0x40); /* 0x3C008E08: lea ecx, [ebp - 0x40] */ 2974 RECOMP_BACKEDGE(); 2975 goto L_3C003F50; /* 0x3C008E0B: jmp 0x3c003f50 */ 2976 { RECOMP_REGS_OUT(); return; } /* end of function */ 2977 RECOMP_REGS_OUT(); 2978 } 2979 2980 void sub_3C008E10(void) { 2981 int _fpu_cmp = 0; 2982 uint32_t _cf = 0; 2983 int _df = 1; 2984 uint32_t _flag_k = FK_NONE; 2985 uint32_t _flag_a = 0, _flag_b = 0; 2986 uint32_t _itail_tgt = 0; 2987 RECOMP_REGS_LOCALS 2988 RECOMP_ENTER(0x3C008E10u); 2989 2990 goto L_3C008E10; 2991 L_3C004AC0: 2992 MEM32(ecx) = 0x3C009284u; /* 0x3C004AC0: mov dword ptr [ecx], 0x3c009284 */ 2993 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004AC6: ret */ 2994 L_3C008E10: 2995 ecx = ebp + (-0x74); /* 0x3C008E10: lea ecx, [ebp - 0x74] */ 2996 RECOMP_BACKEDGE(); 2997 goto L_3C004AC0; /* 0x3C008E13: jmp 0x3c004ac0 */ 2998 { RECOMP_REGS_OUT(); return; } /* end of function */ 2999 RECOMP_REGS_OUT(); 3000 } 3001 3002 void sub_3C008E18(void) { 3003 int _fpu_cmp = 0; 3004 uint32_t _cf = 0; 3005 int _df = 1; 3006 uint32_t _flag_k = FK_NONE; 3007 uint32_t _flag_a = 0, _flag_b = 0; 3008 uint32_t _itail_tgt = 0; 3009 RECOMP_REGS_LOCALS 3010 RECOMP_ENTER(0x3C008E18u); 3011 3012 goto L_3C008E18; 3013 L_3C004AC0: 3014 MEM32(ecx) = 0x3C009284u; /* 0x3C004AC0: mov dword ptr [ecx], 0x3c009284 */ 3015 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004AC6: ret */ 3016 L_3C008E18: 3017 ecx = ebp + (-0x74); /* 0x3C008E18: lea ecx, [ebp - 0x74] */ 3018 RECOMP_BACKEDGE(); 3019 goto L_3C004AC0; /* 0x3C008E1B: jmp 0x3c004ac0 */ 3020 { RECOMP_REGS_OUT(); return; } /* end of function */ 3021 RECOMP_REGS_OUT(); 3022 } 3023 3024 void sub_3C008E20(void) { 3025 int _fpu_cmp = 0; 3026 uint32_t _cf = 0; 3027 int _df = 1; 3028 uint32_t _flag_k = FK_NONE; 3029 uint32_t _flag_a = 0, _flag_b = 0; 3030 uint32_t _itail_tgt = 0; 3031 RECOMP_REGS_LOCALS 3032 RECOMP_ENTER(0x3C008E20u); 3033 3034 goto L_3C008E20; 3035 L_3C008B46: 3036 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 3037 L_3C008E20: 3038 eax = 0x3C009A40u; /* 0x3C008E20: mov eax, 0x3c009a40 */ 3039 L_3C008E25: 3040 RECOMP_BACKEDGE(); 3041 goto L_3C008B46; /* 0x3C008E25: jmp 0x3c008b46 */ 3042 { RECOMP_REGS_OUT(); return; } /* end of function */ 3043 _ljump: 3044 switch (_itail_tgt) { 3045 case 0x3C008B46u: goto L_3C008B46; 3046 case 0x3C008E20u: goto L_3C008E20; 3047 case 0x3C008E25u: goto L_3C008E25; 3048 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3049 } 3050 RECOMP_REGS_OUT(); 3051 } 3052 3053 void sub_3C008E30(void) { 3054 int _fpu_cmp = 0; 3055 uint32_t _cf = 0; 3056 int _df = 1; 3057 uint32_t _flag_k = FK_NONE; 3058 uint32_t _flag_a = 0, _flag_b = 0; 3059 uint32_t _itail_tgt = 0; 3060 RECOMP_REGS_LOCALS 3061 RECOMP_ENTER(0x3C008E30u); 3062 3063 goto L_3C008E30; 3064 L_3C004F50: 3065 PUSH32(esp, ebp); /* 0x3C004F50: push ebp */ 3066 ebp = esp; /* 0x3C004F51: mov ebp, esp */ 3067 PUSH32(esp, ecx); /* 0x3C004F53: push ecx */ 3068 PUSH32(esp, esi); /* 0x3C004F54: push esi */ 3069 esi = ecx; /* 0x3C004F55: mov esi, ecx */ 3070 eax = MEM32(esi + 0x4); /* 0x3C004F57: mov eax, dword ptr [esi + 4] */ 3071 PUSH32(esp, eax); /* 0x3C004F5A: push eax */ 3072 MEM32(ebp + (-0x4)) = eax; /* 0x3C004F5B: mov dword ptr [ebp - 4], eax */ 3073 RECOMP_ICALL(0x3C0089DEu); /* 0x3C004F5E: call 0x3c0089de */ /* not lifted */ 3074 RECOMP_FLAGS_IN(); 3075 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3076 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3077 esp = esp + 4; /* 0x3C004F63: add esp, 4 */ 3078 _flag_k = FK_ADD; 3079 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3080 eax = 0; /* 0x3C004F66: xor eax, eax */ 3081 _cf = 0; 3082 _flag_k = FK_TEST; 3083 MEM32(esi + 0x4) = eax; /* 0x3C004F68: mov dword ptr [esi + 4], eax */ 3084 MEM32(esi + 0x8) = eax; /* 0x3C004F6B: mov dword ptr [esi + 8], eax */ 3085 MEM32(esi + 0xC) = eax; /* 0x3C004F6E: mov dword ptr [esi + 0xc], eax */ 3086 esi = POP32_VAL(esp); /* 0x3C004F71: pop esi */ 3087 esp = ebp; /* 0x3C004F72: mov esp, ebp */ 3088 ebp = POP32_VAL(esp); /* 0x3C004F74: pop ebp */ 3089 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C004F75: ret */ 3090 L_3C008E30: 3091 ecx = MEM32(ebp + (-0x10)); /* 0x3C008E30: mov ecx, dword ptr [ebp - 0x10] */ 3092 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3093 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3094 ecx = ecx + 4; /* 0x3C008E33: add ecx, 4 */ 3095 _flag_k = FK_ADD; 3096 RECOMP_BACKEDGE(); 3097 goto L_3C004F50; /* 0x3C008E36: jmp 0x3c004f50 */ 3098 { RECOMP_REGS_OUT(); return; } /* end of function */ 3099 RECOMP_REGS_OUT(); 3100 } 3101 3102 void sub_3C008E3B(void) { 3103 int _fpu_cmp = 0; 3104 uint32_t _cf = 0; 3105 int _df = 1; 3106 uint32_t _flag_k = FK_NONE; 3107 uint32_t _flag_a = 0, _flag_b = 0; 3108 uint32_t _itail_tgt = 0; 3109 RECOMP_REGS_LOCALS 3110 RECOMP_ENTER(0x3C008E3Bu); 3111 3112 goto L_3C008E3B; 3113 L_3C008B46: 3114 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 3115 L_3C008E3B: 3116 eax = 0x3C009A80u; /* 0x3C008E3B: mov eax, 0x3c009a80 */ 3117 L_3C008E40: 3118 RECOMP_BACKEDGE(); 3119 goto L_3C008B46; /* 0x3C008E40: jmp 0x3c008b46 */ 3120 { RECOMP_REGS_OUT(); return; } /* end of function */ 3121 _ljump: 3122 switch (_itail_tgt) { 3123 case 0x3C008B46u: goto L_3C008B46; 3124 case 0x3C008E3Bu: goto L_3C008E3B; 3125 case 0x3C008E40u: goto L_3C008E40; 3126 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3127 } 3128 RECOMP_REGS_OUT(); 3129 } 3130 3131 void sub_3C008E50(void) { 3132 int _fpu_cmp = 0; 3133 uint32_t _cf = 0; 3134 int _df = 1; 3135 uint32_t _flag_k = FK_NONE; 3136 uint32_t _flag_a = 0, _flag_b = 0; 3137 uint32_t _itail_tgt = 0; 3138 RECOMP_REGS_LOCALS 3139 RECOMP_ENTER(0x3C008E50u); 3140 3141 goto L_3C008E50; 3142 L_3C006320: 3143 PUSH32(esp, ebp); /* 0x3C006320: push ebp */ 3144 ebp = esp; /* 0x3C006321: mov ebp, esp */ 3145 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3147 esp = esp - 8; /* 0x3C006323: sub esp, 8 */ 3148 _flag_k = FK_CMP; 3149 PUSH32(esp, ebx); /* 0x3C006326: push ebx */ 3150 PUSH32(esp, esi); /* 0x3C006327: push esi */ 3151 esi = ecx; /* 0x3C006328: mov esi, ecx */ 3152 ecx = MEM32(esi + 0x10); /* 0x3C00632A: mov ecx, dword ptr [esi + 0x10] */ 3153 /* test ecx, ecx */ /* 0x3C00632D: test ecx, ecx */ 3154 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3155 _cf = 0; 3156 _flag_k = FK_TEST; 3157 PUSH32(esp, edi); /* 0x3C00632F: push edi */ 3158 edi = MEM32(esi + 0x4); /* 0x3C006330: mov edi, dword ptr [esi + 4] */ 3159 eax = MEM32(edi); /* 0x3C006333: mov eax, dword ptr [edi] */ 3160 MEM32(ebp + (-0x4)) = eax; /* 0x3C006335: mov dword ptr [ebp - 4], eax */ 3161 if (TEST_Z(_flag_a, _flag_b)) goto L_3C006395; /* 0x3C006338: je 0x3c006395 */ 3162 L_3C00633A: 3163 ecx = eax; /* 0x3C00633A: mov ecx, eax */ 3164 /* cmp eax, ecx */ /* 0x3C00633C: cmp eax, ecx */ 3165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3167 _flag_k = FK_CMP; 3168 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006395; /* 0x3C00633E: jne 0x3c006395 */ 3169 L_3C006340: 3170 /* cmp edi, edi */ /* 0x3C006340: cmp edi, edi */ 3171 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3173 _flag_k = FK_CMP; 3174 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006395; /* 0x3C006342: jne 0x3c006395 */ 3175 L_3C006344: 3176 ebx = MEM32(edi + 0x4); /* 0x3C006344: mov ebx, dword ptr [edi + 4] */ 3177 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C006347: cmp ebx, dword ptr [esi + 8] */ 3178 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3180 _flag_k = FK_CMP; 3181 edi = ebx; /* 0x3C00634A: mov edi, ebx */ 3182 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00636D; /* 0x3C00634C: je 0x3c00636d */ 3183 L_3C00634E: 3184 eax = MEM32(edi + 0x8); /* 0x3C00634E: mov eax, dword ptr [edi + 8] */ 3185 PUSH32(esp, eax); /* 0x3C006351: push eax */ 3186 ecx = esi; /* 0x3C006352: mov ecx, esi */ 3187 RECOMP_ICALL(0x3C0072E0u); /* 0x3C006354: call 0x3c0072e0 */ /* not lifted */ 3188 RECOMP_FLAGS_IN(); 3189 edi = MEM32(edi); /* 0x3C006359: mov edi, dword ptr [edi] */ 3190 PUSH32(esp, ebx); /* 0x3C00635B: push ebx */ 3191 RECOMP_ICALL(0x3C0089DEu); /* 0x3C00635C: call 0x3c0089de */ /* not lifted */ 3192 RECOMP_FLAGS_IN(); 3193 eax = MEM32(esi + 0x8); /* 0x3C006361: mov eax, dword ptr [esi + 8] */ 3194 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3195 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3196 esp = esp + 4; /* 0x3C006364: add esp, 4 */ 3197 _flag_k = FK_ADD; 3198 /* cmp edi, eax */ /* 0x3C006367: cmp edi, eax */ 3199 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3201 _flag_k = FK_CMP; 3202 ebx = edi; /* 0x3C006369: mov ebx, edi */ 3203 RECOMP_BACKEDGE(); 3204 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00634E; /* 0x3C00636B: jne 0x3c00634e */ 3205 L_3C00636D: 3206 ecx = MEM32(esi + 0x4); /* 0x3C00636D: mov ecx, dword ptr [esi + 4] */ 3207 edx = MEM32(esi + 0x8); /* 0x3C006370: mov edx, dword ptr [esi + 8] */ 3208 MEM32(ecx + 0x4) = edx; /* 0x3C006373: mov dword ptr [ecx + 4], edx */ 3209 eax = MEM32(esi + 0x4); /* 0x3C006376: mov eax, dword ptr [esi + 4] */ 3210 MEM32(esi + 0x10) = 0; /* 0x3C006379: mov dword ptr [esi + 0x10], 0 */ 3211 MEM32(eax) = eax; /* 0x3C006380: mov dword ptr [eax], eax */ 3212 eax = MEM32(esi + 0x4); /* 0x3C006382: mov eax, dword ptr [esi + 4] */ 3213 MEM32(eax + 0x8) = eax; /* 0x3C006385: mov dword ptr [eax + 8], eax */ 3214 eax = ebp + (-0x8); /* 0x3C006388: lea eax, [ebp - 8] */ 3215 PUSH32(esp, eax); /* 0x3C00638B: push eax */ 3216 ecx = esi; /* 0x3C00638C: mov ecx, esi */ 3217 RECOMP_ICALL(0x3C005110u); /* 0x3C00638E: call 0x3c005110 */ /* not lifted */ 3218 RECOMP_FLAGS_IN(); 3219 goto L_3C0063B6; /* 0x3C006393: jmp 0x3c0063b6 */ 3220 L_3C006395: 3221 /* cmp eax, edi */ /* 0x3C006395: cmp eax, edi */ 3222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3224 _flag_k = FK_CMP; 3225 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0063B6; /* 0x3C006397: je 0x3c0063b6 */ 3226 L_3C006399: 3227 ecx = ebp + (-0x4); /* 0x3C006399: lea ecx, [ebp - 4] */ 3228 ebx = eax; /* 0x3C00639C: mov ebx, eax */ 3229 RECOMP_ICALL(0x3C007A50u); /* 0x3C00639E: call 0x3c007a50 */ /* not lifted */ 3230 RECOMP_FLAGS_IN(); 3231 PUSH32(esp, ebx); /* 0x3C0063A3: push ebx */ 3232 ecx = ebp + (-0x8); /* 0x3C0063A4: lea ecx, [ebp - 8] */ 3233 PUSH32(esp, ecx); /* 0x3C0063A7: push ecx */ 3234 ecx = esi; /* 0x3C0063A8: mov ecx, esi */ 3235 RECOMP_ICALL(0x3C007320u); /* 0x3C0063AA: call 0x3c007320 */ /* not lifted */ 3236 RECOMP_FLAGS_IN(); 3237 eax = MEM32(ebp + (-0x4)); /* 0x3C0063AF: mov eax, dword ptr [ebp - 4] */ 3238 /* cmp eax, edi */ /* 0x3C0063B2: cmp eax, edi */ 3239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3241 _flag_k = FK_CMP; 3242 RECOMP_BACKEDGE(); 3243 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006399; /* 0x3C0063B4: jne 0x3c006399 */ 3244 L_3C0063B6: 3245 edx = MEM32(esi + 0x4); /* 0x3C0063B6: mov edx, dword ptr [esi + 4] */ 3246 PUSH32(esp, edx); /* 0x3C0063B9: push edx */ 3247 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0063BA: call 0x3c0089de */ /* not lifted */ 3248 RECOMP_FLAGS_IN(); 3249 eax = MEM32(esi + 0x8); /* 0x3C0063BF: mov eax, dword ptr [esi + 8] */ 3250 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3251 edi = 0; /* 0x3C0063C2: xor edi, edi */ 3252 _cf = 0; 3253 _flag_k = FK_TEST; 3254 PUSH32(esp, eax); /* 0x3C0063C4: push eax */ 3255 MEM32(esi + 0x4) = edi; /* 0x3C0063C5: mov dword ptr [esi + 4], edi */ 3256 MEM32(esi + 0x10) = edi; /* 0x3C0063C8: mov dword ptr [esi + 0x10], edi */ 3257 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0063CB: call 0x3c0089de */ /* not lifted */ 3258 RECOMP_FLAGS_IN(); 3259 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3260 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3261 esp = esp + 8; /* 0x3C0063D0: add esp, 8 */ 3262 _flag_k = FK_ADD; 3263 MEM32(esi + 0x8) = edi; /* 0x3C0063D3: mov dword ptr [esi + 8], edi */ 3264 edi = POP32_VAL(esp); /* 0x3C0063D6: pop edi */ 3265 esi = POP32_VAL(esp); /* 0x3C0063D7: pop esi */ 3266 ebx = POP32_VAL(esp); /* 0x3C0063D8: pop ebx */ 3267 esp = ebp; /* 0x3C0063D9: mov esp, ebp */ 3268 ebp = POP32_VAL(esp); /* 0x3C0063DB: pop ebp */ 3269 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0063DC: ret */ 3270 L_3C008E50: 3271 ecx = ebp + (-0x5C); /* 0x3C008E50: lea ecx, [ebp - 0x5c] */ 3272 RECOMP_BACKEDGE(); 3273 goto L_3C006320; /* 0x3C008E53: jmp 0x3c006320 */ 3274 { RECOMP_REGS_OUT(); return; } /* end of function */ 3275 RECOMP_REGS_OUT(); 3276 } 3277 3278 void sub_3C008E58(void) { 3279 int _fpu_cmp = 0; 3280 uint32_t _cf = 0; 3281 int _df = 1; 3282 uint32_t _flag_k = FK_NONE; 3283 uint32_t _flag_a = 0, _flag_b = 0; 3284 uint32_t _itail_tgt = 0; 3285 RECOMP_REGS_LOCALS 3286 RECOMP_ENTER(0x3C008E58u); 3287 3288 L_3C008E58: 3289 eax = MEM32(ebp + (-0x28)); /* 0x3C008E58: mov eax, dword ptr [ebp - 0x28] */ 3290 PUSH32(esp, eax); /* 0x3C008E5B: push eax */ 3291 RECOMP_ICALL(0x3C0089DEu); /* 0x3C008E5C: call 0x3c0089de */ /* not lifted */ 3292 RECOMP_FLAGS_IN(); 3293 ecx = POP32_VAL(esp); /* 0x3C008E61: pop ecx */ 3294 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008E62: ret */ 3295 RECOMP_REGS_OUT(); 3296 } 3297 3298 void sub_3C008E63(void) { 3299 int _fpu_cmp = 0; 3300 uint32_t _cf = 0; 3301 int _df = 1; 3302 uint32_t _flag_k = FK_NONE; 3303 uint32_t _flag_a = 0, _flag_b = 0; 3304 uint32_t _itail_tgt = 0; 3305 RECOMP_REGS_LOCALS 3306 RECOMP_ENTER(0x3C008E63u); 3307 3308 L_3C008E63: 3309 eax = MEM32(ebp + (-0x20)); /* 0x3C008E63: mov eax, dword ptr [ebp - 0x20] */ 3310 PUSH32(esp, eax); /* 0x3C008E66: push eax */ 3311 RECOMP_ICALL(0x3C0089DEu); /* 0x3C008E67: call 0x3c0089de */ /* not lifted */ 3312 RECOMP_FLAGS_IN(); 3313 ecx = POP32_VAL(esp); /* 0x3C008E6C: pop ecx */ 3314 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008E6D: ret */ 3315 RECOMP_REGS_OUT(); 3316 } 3317 3318 void sub_3C008E6E(void) { 3319 int _fpu_cmp = 0; 3320 uint32_t _cf = 0; 3321 int _df = 1; 3322 uint32_t _flag_k = FK_NONE; 3323 uint32_t _flag_a = 0, _flag_b = 0; 3324 uint32_t _itail_tgt = 0; 3325 RECOMP_REGS_LOCALS 3326 RECOMP_ENTER(0x3C008E6Eu); 3327 3328 goto L_3C008E6E; 3329 L_3C008B46: 3330 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 3331 L_3C008E6E: 3332 eax = 0x3C009AA8u; /* 0x3C008E6E: mov eax, 0x3c009aa8 */ 3333 L_3C008E73: 3334 RECOMP_BACKEDGE(); 3335 goto L_3C008B46; /* 0x3C008E73: jmp 0x3c008b46 */ 3336 { RECOMP_REGS_OUT(); return; } /* end of function */ 3337 _ljump: 3338 switch (_itail_tgt) { 3339 case 0x3C008B46u: goto L_3C008B46; 3340 case 0x3C008E6Eu: goto L_3C008E6E; 3341 case 0x3C008E73u: goto L_3C008E73; 3342 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3343 } 3344 RECOMP_REGS_OUT(); 3345 } 3346 3347 void sub_3C008E80(void) { 3348 int _fpu_cmp = 0; 3349 uint32_t _cf = 0; 3350 int _df = 1; 3351 uint32_t _flag_k = FK_NONE; 3352 uint32_t _flag_a = 0, _flag_b = 0; 3353 uint32_t _itail_tgt = 0; 3354 RECOMP_REGS_LOCALS 3355 RECOMP_ENTER(0x3C008E80u); 3356 3357 goto L_3C008E80; 3358 L_3C006320: 3359 PUSH32(esp, ebp); /* 0x3C006320: push ebp */ 3360 ebp = esp; /* 0x3C006321: mov ebp, esp */ 3361 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3363 esp = esp - 8; /* 0x3C006323: sub esp, 8 */ 3364 _flag_k = FK_CMP; 3365 PUSH32(esp, ebx); /* 0x3C006326: push ebx */ 3366 PUSH32(esp, esi); /* 0x3C006327: push esi */ 3367 esi = ecx; /* 0x3C006328: mov esi, ecx */ 3368 ecx = MEM32(esi + 0x10); /* 0x3C00632A: mov ecx, dword ptr [esi + 0x10] */ 3369 /* test ecx, ecx */ /* 0x3C00632D: test ecx, ecx */ 3370 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3371 _cf = 0; 3372 _flag_k = FK_TEST; 3373 PUSH32(esp, edi); /* 0x3C00632F: push edi */ 3374 edi = MEM32(esi + 0x4); /* 0x3C006330: mov edi, dword ptr [esi + 4] */ 3375 eax = MEM32(edi); /* 0x3C006333: mov eax, dword ptr [edi] */ 3376 MEM32(ebp + (-0x4)) = eax; /* 0x3C006335: mov dword ptr [ebp - 4], eax */ 3377 if (TEST_Z(_flag_a, _flag_b)) goto L_3C006395; /* 0x3C006338: je 0x3c006395 */ 3378 L_3C00633A: 3379 ecx = eax; /* 0x3C00633A: mov ecx, eax */ 3380 /* cmp eax, ecx */ /* 0x3C00633C: cmp eax, ecx */ 3381 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3383 _flag_k = FK_CMP; 3384 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006395; /* 0x3C00633E: jne 0x3c006395 */ 3385 L_3C006340: 3386 /* cmp edi, edi */ /* 0x3C006340: cmp edi, edi */ 3387 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3389 _flag_k = FK_CMP; 3390 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006395; /* 0x3C006342: jne 0x3c006395 */ 3391 L_3C006344: 3392 ebx = MEM32(edi + 0x4); /* 0x3C006344: mov ebx, dword ptr [edi + 4] */ 3393 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C006347: cmp ebx, dword ptr [esi + 8] */ 3394 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3396 _flag_k = FK_CMP; 3397 edi = ebx; /* 0x3C00634A: mov edi, ebx */ 3398 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00636D; /* 0x3C00634C: je 0x3c00636d */ 3399 L_3C00634E: 3400 eax = MEM32(edi + 0x8); /* 0x3C00634E: mov eax, dword ptr [edi + 8] */ 3401 PUSH32(esp, eax); /* 0x3C006351: push eax */ 3402 ecx = esi; /* 0x3C006352: mov ecx, esi */ 3403 RECOMP_ICALL(0x3C0072E0u); /* 0x3C006354: call 0x3c0072e0 */ /* not lifted */ 3404 RECOMP_FLAGS_IN(); 3405 edi = MEM32(edi); /* 0x3C006359: mov edi, dword ptr [edi] */ 3406 PUSH32(esp, ebx); /* 0x3C00635B: push ebx */ 3407 RECOMP_ICALL(0x3C0089DEu); /* 0x3C00635C: call 0x3c0089de */ /* not lifted */ 3408 RECOMP_FLAGS_IN(); 3409 eax = MEM32(esi + 0x8); /* 0x3C006361: mov eax, dword ptr [esi + 8] */ 3410 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3411 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3412 esp = esp + 4; /* 0x3C006364: add esp, 4 */ 3413 _flag_k = FK_ADD; 3414 /* cmp edi, eax */ /* 0x3C006367: cmp edi, eax */ 3415 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3417 _flag_k = FK_CMP; 3418 ebx = edi; /* 0x3C006369: mov ebx, edi */ 3419 RECOMP_BACKEDGE(); 3420 if (CMP_NE(_flag_a, _flag_b)) goto L_3C00634E; /* 0x3C00636B: jne 0x3c00634e */ 3421 L_3C00636D: 3422 ecx = MEM32(esi + 0x4); /* 0x3C00636D: mov ecx, dword ptr [esi + 4] */ 3423 edx = MEM32(esi + 0x8); /* 0x3C006370: mov edx, dword ptr [esi + 8] */ 3424 MEM32(ecx + 0x4) = edx; /* 0x3C006373: mov dword ptr [ecx + 4], edx */ 3425 eax = MEM32(esi + 0x4); /* 0x3C006376: mov eax, dword ptr [esi + 4] */ 3426 MEM32(esi + 0x10) = 0; /* 0x3C006379: mov dword ptr [esi + 0x10], 0 */ 3427 MEM32(eax) = eax; /* 0x3C006380: mov dword ptr [eax], eax */ 3428 eax = MEM32(esi + 0x4); /* 0x3C006382: mov eax, dword ptr [esi + 4] */ 3429 MEM32(eax + 0x8) = eax; /* 0x3C006385: mov dword ptr [eax + 8], eax */ 3430 eax = ebp + (-0x8); /* 0x3C006388: lea eax, [ebp - 8] */ 3431 PUSH32(esp, eax); /* 0x3C00638B: push eax */ 3432 ecx = esi; /* 0x3C00638C: mov ecx, esi */ 3433 RECOMP_ICALL(0x3C005110u); /* 0x3C00638E: call 0x3c005110 */ /* not lifted */ 3434 RECOMP_FLAGS_IN(); 3435 goto L_3C0063B6; /* 0x3C006393: jmp 0x3c0063b6 */ 3436 L_3C006395: 3437 /* cmp eax, edi */ /* 0x3C006395: cmp eax, edi */ 3438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3440 _flag_k = FK_CMP; 3441 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0063B6; /* 0x3C006397: je 0x3c0063b6 */ 3442 L_3C006399: 3443 ecx = ebp + (-0x4); /* 0x3C006399: lea ecx, [ebp - 4] */ 3444 ebx = eax; /* 0x3C00639C: mov ebx, eax */ 3445 RECOMP_ICALL(0x3C007A50u); /* 0x3C00639E: call 0x3c007a50 */ /* not lifted */ 3446 RECOMP_FLAGS_IN(); 3447 PUSH32(esp, ebx); /* 0x3C0063A3: push ebx */ 3448 ecx = ebp + (-0x8); /* 0x3C0063A4: lea ecx, [ebp - 8] */ 3449 PUSH32(esp, ecx); /* 0x3C0063A7: push ecx */ 3450 ecx = esi; /* 0x3C0063A8: mov ecx, esi */ 3451 RECOMP_ICALL(0x3C007320u); /* 0x3C0063AA: call 0x3c007320 */ /* not lifted */ 3452 RECOMP_FLAGS_IN(); 3453 eax = MEM32(ebp + (-0x4)); /* 0x3C0063AF: mov eax, dword ptr [ebp - 4] */ 3454 /* cmp eax, edi */ /* 0x3C0063B2: cmp eax, edi */ 3455 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3457 _flag_k = FK_CMP; 3458 RECOMP_BACKEDGE(); 3459 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006399; /* 0x3C0063B4: jne 0x3c006399 */ 3460 L_3C0063B6: 3461 edx = MEM32(esi + 0x4); /* 0x3C0063B6: mov edx, dword ptr [esi + 4] */ 3462 PUSH32(esp, edx); /* 0x3C0063B9: push edx */ 3463 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0063BA: call 0x3c0089de */ /* not lifted */ 3464 RECOMP_FLAGS_IN(); 3465 eax = MEM32(esi + 0x8); /* 0x3C0063BF: mov eax, dword ptr [esi + 8] */ 3466 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3467 edi = 0; /* 0x3C0063C2: xor edi, edi */ 3468 _cf = 0; 3469 _flag_k = FK_TEST; 3470 PUSH32(esp, eax); /* 0x3C0063C4: push eax */ 3471 MEM32(esi + 0x4) = edi; /* 0x3C0063C5: mov dword ptr [esi + 4], edi */ 3472 MEM32(esi + 0x10) = edi; /* 0x3C0063C8: mov dword ptr [esi + 0x10], edi */ 3473 RECOMP_ICALL(0x3C0089DEu); /* 0x3C0063CB: call 0x3c0089de */ /* not lifted */ 3474 RECOMP_FLAGS_IN(); 3475 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3477 esp = esp + 8; /* 0x3C0063D0: add esp, 8 */ 3478 _flag_k = FK_ADD; 3479 MEM32(esi + 0x8) = edi; /* 0x3C0063D3: mov dword ptr [esi + 8], edi */ 3480 edi = POP32_VAL(esp); /* 0x3C0063D6: pop edi */ 3481 esi = POP32_VAL(esp); /* 0x3C0063D7: pop esi */ 3482 ebx = POP32_VAL(esp); /* 0x3C0063D8: pop ebx */ 3483 esp = ebp; /* 0x3C0063D9: mov esp, ebp */ 3484 ebp = POP32_VAL(esp); /* 0x3C0063DB: pop ebp */ 3485 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0063DC: ret */ 3486 L_3C008E80: 3487 ecx = ebp + (-0x64); /* 0x3C008E80: lea ecx, [ebp - 0x64] */ 3488 RECOMP_BACKEDGE(); 3489 goto L_3C006320; /* 0x3C008E83: jmp 0x3c006320 */ 3490 { RECOMP_REGS_OUT(); return; } /* end of function */ 3491 RECOMP_REGS_OUT(); 3492 } 3493 3494 void sub_3C008E88(void) { 3495 int _fpu_cmp = 0; 3496 uint32_t _cf = 0; 3497 int _df = 1; 3498 uint32_t _flag_k = FK_NONE; 3499 uint32_t _flag_a = 0, _flag_b = 0; 3500 uint32_t _itail_tgt = 0; 3501 RECOMP_REGS_LOCALS 3502 RECOMP_ENTER(0x3C008E88u); 3503 3504 L_3C008E88: 3505 eax = MEM32(ebp + (-0x1C)); /* 0x3C008E88: mov eax, dword ptr [ebp - 0x1c] */ 3506 PUSH32(esp, eax); /* 0x3C008E8B: push eax */ 3507 RECOMP_ICALL(0x3C0089DEu); /* 0x3C008E8C: call 0x3c0089de */ /* not lifted */ 3508 RECOMP_FLAGS_IN(); 3509 ecx = POP32_VAL(esp); /* 0x3C008E91: pop ecx */ 3510 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008E92: ret */ 3511 RECOMP_REGS_OUT(); 3512 } 3513 3514 void sub_3C008E93(void) { 3515 int _fpu_cmp = 0; 3516 uint32_t _cf = 0; 3517 int _df = 1; 3518 uint32_t _flag_k = FK_NONE; 3519 uint32_t _flag_a = 0, _flag_b = 0; 3520 uint32_t _itail_tgt = 0; 3521 RECOMP_REGS_LOCALS 3522 RECOMP_ENTER(0x3C008E93u); 3523 3524 L_3C008E93: 3525 eax = MEM32(ebp + (-0x1C)); /* 0x3C008E93: mov eax, dword ptr [ebp - 0x1c] */ 3526 PUSH32(esp, eax); /* 0x3C008E96: push eax */ 3527 RECOMP_ICALL(0x3C0089DEu); /* 0x3C008E97: call 0x3c0089de */ /* not lifted */ 3528 RECOMP_FLAGS_IN(); 3529 ecx = POP32_VAL(esp); /* 0x3C008E9C: pop ecx */ 3530 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008E9D: ret */ 3531 RECOMP_REGS_OUT(); 3532 } 3533 3534 void sub_3C008E9E(void) { 3535 int _fpu_cmp = 0; 3536 uint32_t _cf = 0; 3537 int _df = 1; 3538 uint32_t _flag_k = FK_NONE; 3539 uint32_t _flag_a = 0, _flag_b = 0; 3540 uint32_t _itail_tgt = 0; 3541 RECOMP_REGS_LOCALS 3542 RECOMP_ENTER(0x3C008E9Eu); 3543 3544 goto L_3C008E9E; 3545 L_3C008B46: 3546 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 3547 L_3C008E9E: 3548 eax = 0x3C009AE0u; /* 0x3C008E9E: mov eax, 0x3c009ae0 */ 3549 L_3C008EA3: 3550 RECOMP_BACKEDGE(); 3551 goto L_3C008B46; /* 0x3C008EA3: jmp 0x3c008b46 */ 3552 { RECOMP_REGS_OUT(); return; } /* end of function */ 3553 _ljump: 3554 switch (_itail_tgt) { 3555 case 0x3C008B46u: goto L_3C008B46; 3556 case 0x3C008E9Eu: goto L_3C008E9E; 3557 case 0x3C008EA3u: goto L_3C008EA3; 3558 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3559 } 3560 RECOMP_REGS_OUT(); 3561 } 3562 3563 void sub_3C008EB0(void) { 3564 int _fpu_cmp = 0; 3565 uint32_t _cf = 0; 3566 int _df = 1; 3567 uint32_t _flag_k = FK_NONE; 3568 uint32_t _flag_a = 0, _flag_b = 0; 3569 uint32_t _itail_tgt = 0; 3570 RECOMP_REGS_LOCALS 3571 RECOMP_ENTER(0x3C008EB0u); 3572 3573 goto L_3C008EB0; 3574 L_3C006C70: 3575 PUSH32(esp, ebp); /* 0x3C006C70: push ebp */ 3576 ebp = esp; /* 0x3C006C71: mov ebp, esp */ 3577 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3579 esp = esp - 8; /* 0x3C006C73: sub esp, 8 */ 3580 _flag_k = FK_CMP; 3581 PUSH32(esp, ebx); /* 0x3C006C76: push ebx */ 3582 PUSH32(esp, esi); /* 0x3C006C77: push esi */ 3583 esi = ecx; /* 0x3C006C78: mov esi, ecx */ 3584 ecx = MEM32(esi + 0x10); /* 0x3C006C7A: mov ecx, dword ptr [esi + 0x10] */ 3585 /* test ecx, ecx */ /* 0x3C006C7D: test ecx, ecx */ 3586 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3587 _cf = 0; 3588 _flag_k = FK_TEST; 3589 PUSH32(esp, edi); /* 0x3C006C7F: push edi */ 3590 edi = MEM32(esi + 0x4); /* 0x3C006C80: mov edi, dword ptr [esi + 4] */ 3591 eax = MEM32(edi); /* 0x3C006C83: mov eax, dword ptr [edi] */ 3592 MEM32(ebp + (-0x4)) = eax; /* 0x3C006C85: mov dword ptr [ebp - 4], eax */ 3593 if (TEST_Z(_flag_a, _flag_b)) goto L_3C006CE5; /* 0x3C006C88: je 0x3c006ce5 */ 3594 L_3C006C8A: 3595 ecx = eax; /* 0x3C006C8A: mov ecx, eax */ 3596 /* cmp eax, ecx */ /* 0x3C006C8C: cmp eax, ecx */ 3597 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3599 _flag_k = FK_CMP; 3600 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006CE5; /* 0x3C006C8E: jne 0x3c006ce5 */ 3601 L_3C006C90: 3602 /* cmp edi, edi */ /* 0x3C006C90: cmp edi, edi */ 3603 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3605 _flag_k = FK_CMP; 3606 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006CE5; /* 0x3C006C92: jne 0x3c006ce5 */ 3607 L_3C006C94: 3608 ebx = MEM32(edi + 0x4); /* 0x3C006C94: mov ebx, dword ptr [edi + 4] */ 3609 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C006C97: cmp ebx, dword ptr [esi + 8] */ 3610 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3612 _flag_k = FK_CMP; 3613 edi = ebx; /* 0x3C006C9A: mov edi, ebx */ 3614 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C006CBD; /* 0x3C006C9C: je 0x3c006cbd */ 3615 L_3C006C9E: 3616 eax = MEM32(edi + 0x8); /* 0x3C006C9E: mov eax, dword ptr [edi + 8] */ 3617 PUSH32(esp, eax); /* 0x3C006CA1: push eax */ 3618 ecx = esi; /* 0x3C006CA2: mov ecx, esi */ 3619 RECOMP_ICALL(0x3C0076E0u); /* 0x3C006CA4: call 0x3c0076e0 */ /* not lifted */ 3620 RECOMP_FLAGS_IN(); 3621 edi = MEM32(edi); /* 0x3C006CA9: mov edi, dword ptr [edi] */ 3622 PUSH32(esp, ebx); /* 0x3C006CAB: push ebx */ 3623 RECOMP_ICALL(0x3C0089DEu); /* 0x3C006CAC: call 0x3c0089de */ /* not lifted */ 3624 RECOMP_FLAGS_IN(); 3625 eax = MEM32(esi + 0x8); /* 0x3C006CB1: mov eax, dword ptr [esi + 8] */ 3626 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3627 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3628 esp = esp + 4; /* 0x3C006CB4: add esp, 4 */ 3629 _flag_k = FK_ADD; 3630 /* cmp edi, eax */ /* 0x3C006CB7: cmp edi, eax */ 3631 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3633 _flag_k = FK_CMP; 3634 ebx = edi; /* 0x3C006CB9: mov ebx, edi */ 3635 RECOMP_BACKEDGE(); 3636 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006C9E; /* 0x3C006CBB: jne 0x3c006c9e */ 3637 L_3C006CBD: 3638 ecx = MEM32(esi + 0x4); /* 0x3C006CBD: mov ecx, dword ptr [esi + 4] */ 3639 edx = MEM32(esi + 0x8); /* 0x3C006CC0: mov edx, dword ptr [esi + 8] */ 3640 MEM32(ecx + 0x4) = edx; /* 0x3C006CC3: mov dword ptr [ecx + 4], edx */ 3641 eax = MEM32(esi + 0x4); /* 0x3C006CC6: mov eax, dword ptr [esi + 4] */ 3642 MEM32(esi + 0x10) = 0; /* 0x3C006CC9: mov dword ptr [esi + 0x10], 0 */ 3643 MEM32(eax) = eax; /* 0x3C006CD0: mov dword ptr [eax], eax */ 3644 eax = MEM32(esi + 0x4); /* 0x3C006CD2: mov eax, dword ptr [esi + 4] */ 3645 MEM32(eax + 0x8) = eax; /* 0x3C006CD5: mov dword ptr [eax + 8], eax */ 3646 eax = ebp + (-0x8); /* 0x3C006CD8: lea eax, [ebp - 8] */ 3647 PUSH32(esp, eax); /* 0x3C006CDB: push eax */ 3648 ecx = esi; /* 0x3C006CDC: mov ecx, esi */ 3649 RECOMP_ICALL(0x3C005110u); /* 0x3C006CDE: call 0x3c005110 */ /* not lifted */ 3650 RECOMP_FLAGS_IN(); 3651 goto L_3C006D06; /* 0x3C006CE3: jmp 0x3c006d06 */ 3652 L_3C006CE5: 3653 /* cmp eax, edi */ /* 0x3C006CE5: cmp eax, edi */ 3654 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3656 _flag_k = FK_CMP; 3657 if (CMP_EQ(_flag_a, _flag_b)) goto L_3C006D06; /* 0x3C006CE7: je 0x3c006d06 */ 3658 L_3C006CE9: 3659 ecx = ebp + (-0x4); /* 0x3C006CE9: lea ecx, [ebp - 4] */ 3660 ebx = eax; /* 0x3C006CEC: mov ebx, eax */ 3661 RECOMP_ICALL(0x3C007A50u); /* 0x3C006CEE: call 0x3c007a50 */ /* not lifted */ 3662 RECOMP_FLAGS_IN(); 3663 PUSH32(esp, ebx); /* 0x3C006CF3: push ebx */ 3664 ecx = ebp + (-0x8); /* 0x3C006CF4: lea ecx, [ebp - 8] */ 3665 PUSH32(esp, ecx); /* 0x3C006CF7: push ecx */ 3666 ecx = esi; /* 0x3C006CF8: mov ecx, esi */ 3667 RECOMP_ICALL(0x3C007320u); /* 0x3C006CFA: call 0x3c007320 */ /* not lifted */ 3668 RECOMP_FLAGS_IN(); 3669 eax = MEM32(ebp + (-0x4)); /* 0x3C006CFF: mov eax, dword ptr [ebp - 4] */ 3670 /* cmp eax, edi */ /* 0x3C006D02: cmp eax, edi */ 3671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3673 _flag_k = FK_CMP; 3674 RECOMP_BACKEDGE(); 3675 if (CMP_NE(_flag_a, _flag_b)) goto L_3C006CE9; /* 0x3C006D04: jne 0x3c006ce9 */ 3676 L_3C006D06: 3677 edx = MEM32(esi + 0x4); /* 0x3C006D06: mov edx, dword ptr [esi + 4] */ 3678 PUSH32(esp, edx); /* 0x3C006D09: push edx */ 3679 RECOMP_ICALL(0x3C0089DEu); /* 0x3C006D0A: call 0x3c0089de */ /* not lifted */ 3680 RECOMP_FLAGS_IN(); 3681 eax = MEM32(esi + 0x8); /* 0x3C006D0F: mov eax, dword ptr [esi + 8] */ 3682 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3683 edi = 0; /* 0x3C006D12: xor edi, edi */ 3684 _cf = 0; 3685 _flag_k = FK_TEST; 3686 PUSH32(esp, eax); /* 0x3C006D14: push eax */ 3687 MEM32(esi + 0x4) = edi; /* 0x3C006D15: mov dword ptr [esi + 4], edi */ 3688 MEM32(esi + 0x10) = edi; /* 0x3C006D18: mov dword ptr [esi + 0x10], edi */ 3689 RECOMP_ICALL(0x3C0089DEu); /* 0x3C006D1B: call 0x3c0089de */ /* not lifted */ 3690 RECOMP_FLAGS_IN(); 3691 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3692 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3693 esp = esp + 8; /* 0x3C006D20: add esp, 8 */ 3694 _flag_k = FK_ADD; 3695 MEM32(esi + 0x8) = edi; /* 0x3C006D23: mov dword ptr [esi + 8], edi */ 3696 edi = POP32_VAL(esp); /* 0x3C006D26: pop edi */ 3697 esi = POP32_VAL(esp); /* 0x3C006D27: pop esi */ 3698 ebx = POP32_VAL(esp); /* 0x3C006D28: pop ebx */ 3699 esp = ebp; /* 0x3C006D29: mov esp, ebp */ 3700 ebp = POP32_VAL(esp); /* 0x3C006D2B: pop ebp */ 3701 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C006D2C: ret */ 3702 L_3C008EB0: 3703 ecx = ebp + (-0x34); /* 0x3C008EB0: lea ecx, [ebp - 0x34] */ 3704 RECOMP_BACKEDGE(); 3705 goto L_3C006C70; /* 0x3C008EB3: jmp 0x3c006c70 */ 3706 { RECOMP_REGS_OUT(); return; } /* end of function */ 3707 RECOMP_REGS_OUT(); 3708 } 3709 3710 void sub_3C008EB8(void) { 3711 int _fpu_cmp = 0; 3712 uint32_t _cf = 0; 3713 int _df = 1; 3714 uint32_t _flag_k = FK_NONE; 3715 uint32_t _flag_a = 0, _flag_b = 0; 3716 uint32_t _itail_tgt = 0; 3717 RECOMP_REGS_LOCALS 3718 RECOMP_ENTER(0x3C008EB8u); 3719 3720 goto L_3C008EB8; 3721 L_3C008B46: 3722 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 3723 L_3C008EB8: 3724 eax = 0x3C009B18u; /* 0x3C008EB8: mov eax, 0x3c009b18 */ 3725 L_3C008EBD: 3726 RECOMP_BACKEDGE(); 3727 goto L_3C008B46; /* 0x3C008EBD: jmp 0x3c008b46 */ 3728 { RECOMP_REGS_OUT(); return; } /* end of function */ 3729 _ljump: 3730 switch (_itail_tgt) { 3731 case 0x3C008B46u: goto L_3C008B46; 3732 case 0x3C008EB8u: goto L_3C008EB8; 3733 case 0x3C008EBDu: goto L_3C008EBD; 3734 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3735 } 3736 RECOMP_REGS_OUT(); 3737 } 3738 3739 void sub_3C008ED0(void) { 3740 int _fpu_cmp = 0; 3741 uint32_t _cf = 0; 3742 int _df = 1; 3743 uint32_t _flag_k = FK_NONE; 3744 uint32_t _flag_a = 0, _flag_b = 0; 3745 uint32_t _itail_tgt = 0; 3746 RECOMP_REGS_LOCALS 3747 RECOMP_ENTER(0x3C008ED0u); 3748 3749 L_3C008ED0: 3750 eax = MEM32(ebp + (-0x1C)); /* 0x3C008ED0: mov eax, dword ptr [ebp - 0x1c] */ 3751 PUSH32(esp, eax); /* 0x3C008ED3: push eax */ 3752 RECOMP_ICALL(0x3C0089DEu); /* 0x3C008ED4: call 0x3c0089de */ /* not lifted */ 3753 RECOMP_FLAGS_IN(); 3754 ecx = POP32_VAL(esp); /* 0x3C008ED9: pop ecx */ 3755 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C008EDA: ret */ 3756 RECOMP_REGS_OUT(); 3757 } 3758 3759 void sub_3C008EDB(void) { 3760 int _fpu_cmp = 0; 3761 uint32_t _cf = 0; 3762 int _df = 1; 3763 uint32_t _flag_k = FK_NONE; 3764 uint32_t _flag_a = 0, _flag_b = 0; 3765 uint32_t _itail_tgt = 0; 3766 RECOMP_REGS_LOCALS 3767 RECOMP_ENTER(0x3C008EDBu); 3768 3769 goto L_3C008EDB; 3770 L_3C008B46: 3771 { _itail_tgt = (uint32_t)(MEM32(0x3C009044)); goto _ljump; } 3772 L_3C008EDB: 3773 eax = 0x3C009B40u; /* 0x3C008EDB: mov eax, 0x3c009b40 */ 3774 L_3C008EE0: 3775 RECOMP_BACKEDGE(); 3776 goto L_3C008B46; /* 0x3C008EE0: jmp 0x3c008b46 */ 3777 { RECOMP_REGS_OUT(); return; } /* end of function */ 3778 _ljump: 3779 switch (_itail_tgt) { 3780 case 0x3C008B46u: goto L_3C008B46; 3781 case 0x3C008EDBu: goto L_3C008EDB; 3782 case 0x3C008EE0u: goto L_3C008EE0; 3783 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3784 } 3785 RECOMP_REGS_OUT(); 3786 }