aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


client/vendor/ace/source/lifted-0005.c (213396B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_47008990(void) {
      5     int _fpu_cmp = 0;
      6     uint32_t _cf = 0;
      7     int _df = 1;
      8     uint32_t _flag_k = FK_NONE;
      9     uint32_t _flag_a = 0, _flag_b = 0;
     10     uint32_t _itail_tgt = 0;
     11     RECOMP_REGS_LOCALS
     12     RECOMP_ENTER(0x47008990u);
     13 
     14 L_47008990:
     15     goto L_470869A0; /* 0x47008990: jmp 0x470869a0 */
     16 L_470869A0:
     17     eax = MEM32(ecx); /* 0x470869A0: mov eax, dword ptr [ecx] */
     18     PUSH32(esp, 0xFFFFFFFFu); /* 0x470869A2: push -1 */
     19     PUSH32(esp, eax); /* 0x470869A4: push eax */
     20     RECOMP_ICALL(MEM32(0x470AC194)); /* 0x470869A5: call dword ptr [0x470ac194] */
     21     RECOMP_FLAGS_IN();
     22     /* test eax, eax */ /* 0x470869AB: test eax, eax */
     23     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     24     _cf = 0;
     25     _flag_k = FK_TEST;
     26     if (TEST_Z(_flag_a, _flag_b)) goto L_470869C5; /* 0x470869AD: je 0x470869c5 */
     27 L_470869AF:
     28     PUSH32(esp, esi); /* 0x470869AF: push esi */
     29     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470869B0: call dword ptr [0x470ac3c8] */
     30     RECOMP_FLAGS_IN();
     31     esi = eax; /* 0x470869B6: mov esi, eax */
     32     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470869B8: call dword ptr [0x470ac150] */
     33     RECOMP_FLAGS_IN();
     34     MEM32(esi) = eax; /* 0x470869BE: mov dword ptr [esi], eax */
     35     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
     36     eax = eax | 0xFFFFFFFFu; /* 0x470869C0: or eax, 0xffffffff */
     37     _cf = 0;
     38     _flag_k = FK_TEST;
     39     esi = POP32_VAL(esp); /* 0x470869C3: pop esi */
     40     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470869C4: ret  */
     41 L_470869C5:
     42     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     43     eax = 0; /* 0x470869C5: xor eax, eax */
     44     _cf = 0;
     45     _flag_k = FK_TEST;
     46     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470869C7: ret  */
     47     RECOMP_REGS_OUT();
     48 }
     49 
     50 void sub_470089A0(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(0x470089A0u);
     59 
     60 L_470089A0:
     61     goto L_470864E0; /* 0x470089A0: jmp 0x470864e0 */
     62 L_470864E0:
     63     eax = MEM32(ecx); /* 0x470864E0: mov eax, dword ptr [ecx] */
     64     PUSH32(esp, 0); /* 0x470864E2: push 0 */
     65     PUSH32(esp, eax); /* 0x470864E4: push eax */
     66     RECOMP_ICALL(MEM32(0x470AC194)); /* 0x470864E5: call dword ptr [0x470ac194] */
     67     RECOMP_FLAGS_IN();
     68     /* test eax, eax */ /* 0x470864EB: test eax, eax */
     69     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     70     _cf = 0;
     71     _flag_k = FK_TEST;
     72     if (TEST_NZ(_flag_a, _flag_b)) goto L_470864F0; /* 0x470864ED: jne 0x470864f0 */
     73 L_470864EF:
     74     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470864EF: ret  */
     75 L_470864F0:
     76     /* cmp eax, 0x102u */ /* 0x470864F0: cmp eax, 0x102 */
     77     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x102u);
     78     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     79     _flag_k = FK_CMP;
     80     if (CMP_NE(_flag_a, _flag_b)) goto L_47086507; /* 0x470864F5: jne 0x47086507 */
     81 L_470864F7:
     82     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470864F7: call dword ptr [0x470ac3c8] */
     83     RECOMP_FLAGS_IN();
     84     MEM32(eax) = 0x10u; /* 0x470864FD: mov dword ptr [eax], 0x10 */
     85     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
     86     eax = eax | 0xFFFFFFFFu; /* 0x47086503: or eax, 0xffffffff */
     87     _cf = 0;
     88     _flag_k = FK_TEST;
     89     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47086506: ret  */
     90 L_47086507:
     91     PUSH32(esp, esi); /* 0x47086507: push esi */
     92     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47086508: call dword ptr [0x470ac3c8] */
     93     RECOMP_FLAGS_IN();
     94     esi = eax; /* 0x4708650E: mov esi, eax */
     95     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47086510: call dword ptr [0x470ac150] */
     96     RECOMP_FLAGS_IN();
     97     MEM32(esi) = eax; /* 0x47086516: mov dword ptr [esi], eax */
     98     esi = POP32_VAL(esp); /* 0x47086518: pop esi */
     99     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    100     eax = eax | 0xFFFFFFFFu; /* 0x47086519: or eax, 0xffffffff */
    101     _cf = 0;
    102     _flag_k = FK_TEST;
    103     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708651C: ret  */
    104     RECOMP_REGS_OUT();
    105 }
    106 
    107 void sub_470089B0(void) {
    108     int _fpu_cmp = 0;
    109     uint32_t _cf = 0;
    110     int _df = 1;
    111     uint32_t _flag_k = FK_NONE;
    112     uint32_t _flag_a = 0, _flag_b = 0;
    113     uint32_t _itail_tgt = 0;
    114     RECOMP_REGS_LOCALS
    115     RECOMP_ENTER(0x470089B0u);
    116 
    117 L_470089B0:
    118     eax = ecx; /* 0x470089B0: mov eax, ecx */
    119     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470089B2: ret 0x14 */
    120     RECOMP_REGS_OUT();
    121 }
    122 
    123 void sub_470089C0(void) {
    124     int _fpu_cmp = 0;
    125     uint32_t _cf = 0;
    126     int _df = 1;
    127     uint32_t _flag_k = FK_NONE;
    128     uint32_t _flag_a = 0, _flag_b = 0;
    129     uint32_t _itail_tgt = 0;
    130     RECOMP_REGS_LOCALS
    131     RECOMP_ENTER(0x470089C0u);
    132 
    133 L_470089C0:
    134     PUSH32(esp, ecx); /* 0x470089C0: push ecx */
    135     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470089C1: call dword ptr [0x470ac180] */
    136     RECOMP_FLAGS_IN();
    137     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    138     eax = 0; /* 0x470089C7: xor eax, eax */
    139     _cf = 0;
    140     _flag_k = FK_TEST;
    141     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470089C9: ret  */
    142     RECOMP_REGS_OUT();
    143 }
    144 
    145 void sub_470089D0(void) {
    146     int _fpu_cmp = 0;
    147     uint32_t _cf = 0;
    148     int _df = 1;
    149     uint32_t _flag_k = FK_NONE;
    150     uint32_t _flag_a = 0, _flag_b = 0;
    151     uint32_t _itail_tgt = 0;
    152     RECOMP_REGS_LOCALS
    153     RECOMP_ENTER(0x470089D0u);
    154 
    155 L_470089D0:
    156     PUSH32(esp, ecx); /* 0x470089D0: push ecx */
    157     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470089D1: call dword ptr [0x470ac190] */
    158     RECOMP_FLAGS_IN();
    159     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    160     eax = 0; /* 0x470089D7: xor eax, eax */
    161     _cf = 0;
    162     _flag_k = FK_TEST;
    163     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470089D9: ret  */
    164     RECOMP_REGS_OUT();
    165 }
    166 
    167 void sub_470089E0(void) {
    168     int _fpu_cmp = 0;
    169     uint32_t _cf = 0;
    170     int _df = 1;
    171     uint32_t _flag_k = FK_NONE;
    172     uint32_t _flag_a = 0, _flag_b = 0;
    173     uint32_t _itail_tgt = 0;
    174     RECOMP_REGS_LOCALS
    175     RECOMP_ENTER(0x470089E0u);
    176 
    177 L_470089E0:
    178     eax = MEM32(ecx + 0x18); /* 0x470089E0: mov eax, dword ptr [ecx + 0x18] */
    179     /* test eax, eax */ /* 0x470089E3: test eax, eax */
    180     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    181     _cf = 0;
    182     _flag_k = FK_TEST;
    183     if (TEST_NZ(_flag_a, _flag_b)) goto L_470089F5; /* 0x470089E5: jne 0x470089f5 */
    184 L_470089E7:
    185     PUSH32(esp, ecx); /* 0x470089E7: push ecx */
    186     MEM32(ecx + 0x18) = 1; /* 0x470089E8: mov dword ptr [ecx + 0x18], 1 */
    187     RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x470089EF: call dword ptr [0x470ac19c] */
    188     RECOMP_FLAGS_IN();
    189 L_470089F5:
    190     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    191     eax = 0; /* 0x470089F5: xor eax, eax */
    192     _cf = 0;
    193     _flag_k = FK_TEST;
    194     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470089F7: ret  */
    195     RECOMP_REGS_OUT();
    196 }
    197 
    198 void sub_47008A00(void) {
    199     int _fpu_cmp = 0;
    200     uint32_t _cf = 0;
    201     int _df = 1;
    202     uint32_t _flag_k = FK_NONE;
    203     uint32_t _flag_a = 0, _flag_b = 0;
    204     uint32_t _itail_tgt = 0;
    205     RECOMP_REGS_LOCALS
    206     RECOMP_ENTER(0x47008A00u);
    207 
    208 L_47008A00:
    209     eax = MEM32(esp + 0x4); /* 0x47008A00: mov eax, dword ptr [esp + 4] */
    210     PUSH32(esp, esi); /* 0x47008A04: push esi */
    211     esi = ecx; /* 0x47008A05: mov esi, ecx */
    212     PUSH32(esp, eax); /* 0x47008A07: push eax */
    213     PUSH32(esp, esi); /* 0x47008A08: push esi */
    214     RECOMP_ICALL(0x47057A60u); /* 0x47008A09: call 0x47057a60 */ /* not lifted */
    215     RECOMP_FLAGS_IN();
    216     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    217     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    218     esp = esp + 8; /* 0x47008A0E: add esp, 8 */
    219     _flag_k = FK_ADD;
    220     eax = esi; /* 0x47008A11: mov eax, esi */
    221     esi = POP32_VAL(esp); /* 0x47008A13: pop esi */
    222     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47008A14: ret 4 */
    223     RECOMP_REGS_OUT();
    224 }
    225 
    226 void sub_47008A20(void) {
    227     int _fpu_cmp = 0;
    228     uint32_t _cf = 0;
    229     int _df = 1;
    230     uint32_t _flag_k = FK_NONE;
    231     uint32_t _flag_a = 0, _flag_b = 0;
    232     uint32_t _itail_tgt = 0;
    233     RECOMP_REGS_LOCALS
    234     RECOMP_ENTER(0x47008A20u);
    235 
    236 L_47008A20:
    237     PUSH32(esp, ecx); /* 0x47008A20: push ecx */
    238     RECOMP_ICALL(0x470913B0u); /* 0x47008A21: call 0x470913b0 */ /* not lifted */
    239     RECOMP_FLAGS_IN();
    240     ecx = POP32_VAL(esp); /* 0x47008A26: pop ecx */
    241     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008A27: ret  */
    242     RECOMP_REGS_OUT();
    243 }
    244 
    245 void sub_47008A30(void) {
    246     int _fpu_cmp = 0;
    247     uint32_t _cf = 0;
    248     int _df = 1;
    249     uint32_t _flag_k = FK_NONE;
    250     uint32_t _flag_a = 0, _flag_b = 0;
    251     uint32_t _itail_tgt = 0;
    252     RECOMP_REGS_LOCALS
    253     RECOMP_ENTER(0x47008A30u);
    254 
    255 L_47008A30:
    256     PUSH32(esp, ebx); /* 0x47008A30: push ebx */
    257     PUSH32(esp, ebp); /* 0x47008A31: push ebp */
    258     PUSH32(esp, esi); /* 0x47008A32: push esi */
    259     esi = ecx; /* 0x47008A33: mov esi, ecx */
    260     ecx = MEM32(esi + 0x2C); /* 0x47008A35: mov ecx, dword ptr [esi + 0x2c] */
    261     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    262     eax = 0; /* 0x47008A38: xor eax, eax */
    263     _cf = 0;
    264     _flag_k = FK_TEST;
    265     /* test ecx, ecx */ /* 0x47008A3A: test ecx, ecx */
    266     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    267     _cf = 0;
    268     _flag_k = FK_TEST;
    269     PUSH32(esp, edi); /* 0x47008A3C: push edi */
    270     if (TEST_NZ(_flag_a, _flag_b)) goto L_47008A88; /* 0x47008A3D: jne 0x47008a88 */
    271 L_47008A3F:
    272     PUSH32(esp, esi); /* 0x47008A3F: push esi */
    273     MEM32(esi + 0x2C) = 1; /* 0x47008A40: mov dword ptr [esi + 0x2c], 1 */
    274     RECOMP_ICALL(0x47057A00u); /* 0x47008A47: call 0x47057a00 */ /* not lifted */
    275     RECOMP_FLAGS_IN();
    276     edi = eax; /* 0x47008A4C: mov edi, eax */
    277     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    278     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    279     esp = esp + 4; /* 0x47008A4E: add esp, 4 */
    280     _flag_k = FK_ADD;
    281     /* cmp edi, 0xFFFFFFFFu */ /* 0x47008A51: cmp edi, -1 */
    282     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
    283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    284     _flag_k = FK_CMP;
    285     if (CMP_NE(_flag_a, _flag_b)) goto L_47008A86; /* 0x47008A54: jne 0x47008a86 */
    286 L_47008A56:
    287     ebp = MEM32(0x470AC3C8); /* 0x47008A56: mov ebp, dword ptr [0x470ac3c8] */
    288     ebx = MEM32(0x470AC12C); /* 0x47008A5C: mov ebx, dword ptr [0x470ac12c] */
    289 L_47008A62:
    290     RECOMP_ICALL(ebp); /* 0x47008A62: call ebp */
    291     RECOMP_FLAGS_IN();
    292     /* cmp MEM32(eax), 0x10u */ /* 0x47008A64: cmp dword ptr [eax], 0x10 */
    293     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x10u);
    294     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    295     _flag_k = FK_CMP;
    296     if (CMP_NE(_flag_a, _flag_b)) goto L_47008A86; /* 0x47008A67: jne 0x47008a86 */
    297 L_47008A69:
    298     PUSH32(esp, esi); /* 0x47008A69: push esi */
    299     RECOMP_ICALL(0x47057E10u); /* 0x47008A6A: call 0x47057e10 */ /* not lifted */
    300     RECOMP_FLAGS_IN();
    301     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    302     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    303     esp = esp + 4; /* 0x47008A6F: add esp, 4 */
    304     _flag_k = FK_ADD;
    305     PUSH32(esp, 0); /* 0x47008A72: push 0 */
    306     RECOMP_ICALL(ebx); /* 0x47008A74: call ebx */
    307     RECOMP_FLAGS_IN();
    308     PUSH32(esp, esi); /* 0x47008A76: push esi */
    309     RECOMP_ICALL(0x47057A00u); /* 0x47008A77: call 0x47057a00 */ /* not lifted */
    310     RECOMP_FLAGS_IN();
    311     edi = eax; /* 0x47008A7C: mov edi, eax */
    312     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    313     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    314     esp = esp + 4; /* 0x47008A7E: add esp, 4 */
    315     _flag_k = FK_ADD;
    316     /* cmp edi, 0xFFFFFFFFu */ /* 0x47008A81: cmp edi, -1 */
    317     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
    318     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    319     _flag_k = FK_CMP;
    320     RECOMP_BACKEDGE();
    321     if (CMP_EQ(_flag_a, _flag_b)) goto L_47008A62; /* 0x47008A84: je 0x47008a62 */
    322 L_47008A86:
    323     eax = edi; /* 0x47008A86: mov eax, edi */
    324 L_47008A88:
    325     edi = POP32_VAL(esp); /* 0x47008A88: pop edi */
    326     esi = POP32_VAL(esp); /* 0x47008A89: pop esi */
    327     ebp = POP32_VAL(esp); /* 0x47008A8A: pop ebp */
    328     ebx = POP32_VAL(esp); /* 0x47008A8B: pop ebx */
    329     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008A8C: ret  */
    330     RECOMP_REGS_OUT();
    331 }
    332 
    333 void sub_47008A90(void) {
    334     int _fpu_cmp = 0;
    335     uint32_t _cf = 0;
    336     int _df = 1;
    337     uint32_t _flag_k = FK_NONE;
    338     uint32_t _flag_a = 0, _flag_b = 0;
    339     uint32_t _itail_tgt = 0;
    340     RECOMP_REGS_LOCALS
    341     RECOMP_ENTER(0x47008A90u);
    342 
    343 L_47008A90:
    344     eax = MEM32(ecx + 0x28); /* 0x47008A90: mov eax, dword ptr [ecx + 0x28] */
    345     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008A93: ret  */
    346     RECOMP_REGS_OUT();
    347 }
    348 
    349 void sub_47008AA0(void) {
    350     int _fpu_cmp = 0;
    351     uint32_t _cf = 0;
    352     int _df = 1;
    353     uint32_t _flag_k = FK_NONE;
    354     uint32_t _flag_a = 0, _flag_b = 0;
    355     uint32_t _itail_tgt = 0;
    356     RECOMP_REGS_LOCALS
    357     RECOMP_ENTER(0x47008AA0u);
    358 
    359 L_47008AA0:
    360     goto L_470870D0; /* 0x47008AA0: jmp 0x470870d0 */
    361 L_470870D0:
    362     PUSH32(esp, ecx); /* 0x470870D0: push ecx */
    363     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470870D1: call dword ptr [0x470ac180] */
    364     RECOMP_FLAGS_IN();
    365     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    366     eax = 0; /* 0x470870D7: xor eax, eax */
    367     _cf = 0;
    368     _flag_k = FK_TEST;
    369     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470870D9: ret  */
    370     RECOMP_REGS_OUT();
    371 }
    372 
    373 void sub_47008AB0(void) {
    374     int _fpu_cmp = 0;
    375     uint32_t _cf = 0;
    376     int _df = 1;
    377     uint32_t _flag_k = FK_NONE;
    378     uint32_t _flag_a = 0, _flag_b = 0;
    379     uint32_t _itail_tgt = 0;
    380     RECOMP_REGS_LOCALS
    381     RECOMP_ENTER(0x47008AB0u);
    382 
    383 L_47008AB0:
    384     goto L_4700E9B0; /* 0x47008AB0: jmp 0x4700e9b0 */
    385 L_4700E9B0:
    386     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4700E9B0: call dword ptr [0x470ac3c8] */
    387     RECOMP_FLAGS_IN();
    388     MEM32(eax) = 0x28u; /* 0x4700E9B6: mov dword ptr [eax], 0x28 */
    389     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    390     eax = eax | 0xFFFFFFFFu; /* 0x4700E9BC: or eax, 0xffffffff */
    391     _cf = 0;
    392     _flag_k = FK_TEST;
    393     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700E9BF: ret  */
    394     RECOMP_REGS_OUT();
    395 }
    396 
    397 void sub_47008AC0(void) {
    398     int _fpu_cmp = 0;
    399     uint32_t _cf = 0;
    400     int _df = 1;
    401     uint32_t _flag_k = FK_NONE;
    402     uint32_t _flag_a = 0, _flag_b = 0;
    403     uint32_t _itail_tgt = 0;
    404     RECOMP_REGS_LOCALS
    405     RECOMP_ENTER(0x47008AC0u);
    406 
    407 L_47008AC0:
    408     edx = MEM32(ecx + 0x1C); /* 0x47008AC0: mov edx, dword ptr [ecx + 0x1c] */
    409     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    410     eax = 0; /* 0x47008AC3: xor eax, eax */
    411     _cf = 0;
    412     _flag_k = FK_TEST;
    413     /* test edx, edx */ /* 0x47008AC5: test edx, edx */
    414     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    415     _cf = 0;
    416     _flag_k = FK_TEST;
    417     if (TEST_NZ(_flag_a, _flag_b)) goto L_47008B23; /* 0x47008AC7: jne 0x47008b23 */
    418 L_47008AC9:
    419     eax = MEM32(ecx); /* 0x47008AC9: mov eax, dword ptr [ecx] */
    420     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    421     eax = eax - 1; /* 0x47008ACB: dec eax */
    422     _flag_k = FK_DEC;
    423     MEM32(ecx + 0x1C) = 1; /* 0x47008ACC: mov dword ptr [ecx + 0x1c], 1 */
    424     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47008B17; /* 0x47008AD3: je 0x47008b17 */
    425 L_47008AD5:
    426     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    427     eax = eax - 1; /* 0x47008AD5: dec eax */
    428     _flag_k = FK_DEC;
    429     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47008AE8; /* 0x47008AD6: je 0x47008ae8 */
    430 L_47008AD8:
    431     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008AD8: call dword ptr [0x470ac3c8] */
    432     RECOMP_FLAGS_IN();
    433     MEM32(eax) = 0x16u; /* 0x47008ADE: mov dword ptr [eax], 0x16 */
    434     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    435     eax = eax | 0xFFFFFFFFu; /* 0x47008AE4: or eax, 0xffffffff */
    436     _cf = 0;
    437     _flag_k = FK_TEST;
    438     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008AE7: ret  */
    439 L_47008AE8:
    440     eax = MEM32(ecx + 0x4); /* 0x47008AE8: mov eax, dword ptr [ecx + 4] */
    441     PUSH32(esp, esi); /* 0x47008AEB: push esi */
    442     PUSH32(esp, eax); /* 0x47008AEC: push eax */
    443     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47008AED: call dword ptr [0x470ac198] */
    444     RECOMP_FLAGS_IN();
    445     esi = eax; /* 0x47008AF3: mov esi, eax */
    446     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
    447     _cf = (esi) != 0;
    448     esi = (uint32_t)(-(int32_t)esi); /* 0x47008AF5: neg esi */
    449     _flag_k = FK_CMP;
    450     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47008AF7: sbb esi, esi */
    451       esi = _sc ? 0xFFFFFFFFu : 0;
    452       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    453       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    454     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
    455     _cf = (esi) != 0;
    456     esi = (uint32_t)(-(int32_t)esi); /* 0x47008AF9: neg esi */
    457     _flag_k = FK_CMP;
    458     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    459     esi = esi - 1; /* 0x47008AFB: dec esi */
    460     _flag_k = FK_DEC;
    461     /* cmp esi, 0xFFFFFFFFu */ /* 0x47008AFC: cmp esi, -1 */
    462     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
    463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    464     _flag_k = FK_CMP;
    465     if (CMP_NE(_flag_a, _flag_b)) goto L_47008B13; /* 0x47008AFF: jne 0x47008b13 */
    466 L_47008B01:
    467     PUSH32(esp, edi); /* 0x47008B01: push edi */
    468     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008B02: call dword ptr [0x470ac3c8] */
    469     RECOMP_FLAGS_IN();
    470     edi = eax; /* 0x47008B08: mov edi, eax */
    471     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47008B0A: call dword ptr [0x470ac150] */
    472     RECOMP_FLAGS_IN();
    473     MEM32(edi) = eax; /* 0x47008B10: mov dword ptr [edi], eax */
    474     edi = POP32_VAL(esp); /* 0x47008B12: pop edi */
    475 L_47008B13:
    476     eax = esi; /* 0x47008B13: mov eax, esi */
    477     esi = POP32_VAL(esp); /* 0x47008B15: pop esi */
    478     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008B16: ret  */
    479 L_47008B17:
    480     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    481     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    482     ecx = ecx + 4; /* 0x47008B17: add ecx, 4 */
    483     _flag_k = FK_ADD;
    484     PUSH32(esp, ecx); /* 0x47008B1A: push ecx */
    485     RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x47008B1B: call dword ptr [0x470ac19c] */
    486     RECOMP_FLAGS_IN();
    487     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    488     eax = 0; /* 0x47008B21: xor eax, eax */
    489     _cf = 0;
    490     _flag_k = FK_TEST;
    491 L_47008B23:
    492     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008B23: ret  */
    493     RECOMP_REGS_OUT();
    494 }
    495 
    496 void sub_47008B30(void) {
    497     int _fpu_cmp = 0;
    498     uint32_t _cf = 0;
    499     int _df = 1;
    500     uint32_t _flag_k = FK_NONE;
    501     uint32_t _flag_a = 0, _flag_b = 0;
    502     uint32_t _itail_tgt = 0;
    503     RECOMP_REGS_LOCALS
    504     RECOMP_ENTER(0x47008B30u);
    505 
    506 L_47008B30:
    507     eax = MEM32(ecx); /* 0x47008B30: mov eax, dword ptr [ecx] */
    508     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    509     eax = eax - 1; /* 0x47008B32: dec eax */
    510     _flag_k = FK_DEC;
    511     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47008B8F; /* 0x47008B33: je 0x47008b8f */
    512 L_47008B35:
    513     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    514     eax = eax - 1; /* 0x47008B35: dec eax */
    515     _flag_k = FK_DEC;
    516     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47008B48; /* 0x47008B36: je 0x47008b48 */
    517 L_47008B38:
    518     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008B38: call dword ptr [0x470ac3c8] */
    519     RECOMP_FLAGS_IN();
    520     MEM32(eax) = 0x16u; /* 0x47008B3E: mov dword ptr [eax], 0x16 */
    521     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    522     eax = eax | 0xFFFFFFFFu; /* 0x47008B44: or eax, 0xffffffff */
    523     _cf = 0;
    524     _flag_k = FK_TEST;
    525     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008B47: ret  */
    526 L_47008B48:
    527     eax = MEM32(ecx + 0x4); /* 0x47008B48: mov eax, dword ptr [ecx + 4] */
    528     PUSH32(esp, 0); /* 0x47008B4B: push 0 */
    529     PUSH32(esp, eax); /* 0x47008B4D: push eax */
    530     RECOMP_ICALL(MEM32(0x470AC194)); /* 0x47008B4E: call dword ptr [0x470ac194] */
    531     RECOMP_FLAGS_IN();
    532     /* test eax, eax */ /* 0x47008B54: test eax, eax */
    533     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    534     _cf = 0;
    535     _flag_k = FK_TEST;
    536     if (TEST_Z(_flag_a, _flag_b)) goto L_47008B8C; /* 0x47008B56: je 0x47008b8c */
    537 L_47008B58:
    538     /* cmp eax, 0x80u */ /* 0x47008B58: cmp eax, 0x80 */
    539     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
    540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    541     _flag_k = FK_CMP;
    542     if (CMP_EQ(_flag_a, _flag_b)) goto L_47008B8C; /* 0x47008B5D: je 0x47008b8c */
    543 L_47008B5F:
    544     /* cmp eax, 0x102u */ /* 0x47008B5F: cmp eax, 0x102 */
    545     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x102u);
    546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    547     _flag_k = FK_CMP;
    548     if (CMP_EQ(_flag_a, _flag_b)) goto L_47008B7C; /* 0x47008B64: je 0x47008b7c */
    549 L_47008B66:
    550     PUSH32(esp, esi); /* 0x47008B66: push esi */
    551     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008B67: call dword ptr [0x470ac3c8] */
    552     RECOMP_FLAGS_IN();
    553     esi = eax; /* 0x47008B6D: mov esi, eax */
    554     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47008B6F: call dword ptr [0x470ac150] */
    555     RECOMP_FLAGS_IN();
    556     MEM32(esi) = eax; /* 0x47008B75: mov dword ptr [esi], eax */
    557     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    558     eax = eax | 0xFFFFFFFFu; /* 0x47008B77: or eax, 0xffffffff */
    559     _cf = 0;
    560     _flag_k = FK_TEST;
    561     esi = POP32_VAL(esp); /* 0x47008B7A: pop esi */
    562     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008B7B: ret  */
    563 L_47008B7C:
    564     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008B7C: call dword ptr [0x470ac3c8] */
    565     RECOMP_FLAGS_IN();
    566     MEM32(eax) = 0x10u; /* 0x47008B82: mov dword ptr [eax], 0x10 */
    567     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    568     eax = eax | 0xFFFFFFFFu; /* 0x47008B88: or eax, 0xffffffff */
    569     _cf = 0;
    570     _flag_k = FK_TEST;
    571     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008B8B: ret  */
    572 L_47008B8C:
    573     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    574     eax = 0; /* 0x47008B8C: xor eax, eax */
    575     _cf = 0;
    576     _flag_k = FK_TEST;
    577     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008B8E: ret  */
    578 L_47008B8F:
    579     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008B8F: call dword ptr [0x470ac3c8] */
    580     RECOMP_FLAGS_IN();
    581     MEM32(eax) = 0x28u; /* 0x47008B95: mov dword ptr [eax], 0x28 */
    582     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    583     eax = eax | 0xFFFFFFFFu; /* 0x47008B9B: or eax, 0xffffffff */
    584     _cf = 0;
    585     _flag_k = FK_TEST;
    586     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008B9E: ret  */
    587     RECOMP_REGS_OUT();
    588 }
    589 
    590 void sub_47008BA0(void) {
    591     int _fpu_cmp = 0;
    592     uint32_t _cf = 0;
    593     int _df = 1;
    594     uint32_t _flag_k = FK_NONE;
    595     uint32_t _flag_a = 0, _flag_b = 0;
    596     uint32_t _itail_tgt = 0;
    597     RECOMP_REGS_LOCALS
    598     RECOMP_ENTER(0x47008BA0u);
    599 
    600 L_47008BA0:
    601     eax = MEM32(ecx); /* 0x47008BA0: mov eax, dword ptr [ecx] */
    602     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    603     eax = eax - 1; /* 0x47008BA2: dec eax */
    604     _flag_k = FK_DEC;
    605     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47008BE7; /* 0x47008BA3: je 0x47008be7 */
    606 L_47008BA5:
    607     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    608     eax = eax - 1; /* 0x47008BA5: dec eax */
    609     _flag_k = FK_DEC;
    610     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47008BB8; /* 0x47008BA6: je 0x47008bb8 */
    611 L_47008BA8:
    612     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008BA8: call dword ptr [0x470ac3c8] */
    613     RECOMP_FLAGS_IN();
    614     MEM32(eax) = 0x16u; /* 0x47008BAE: mov dword ptr [eax], 0x16 */
    615     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    616     eax = eax | 0xFFFFFFFFu; /* 0x47008BB4: or eax, 0xffffffff */
    617     _cf = 0;
    618     _flag_k = FK_TEST;
    619     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008BB7: ret  */
    620 L_47008BB8:
    621     eax = MEM32(ecx + 0x4); /* 0x47008BB8: mov eax, dword ptr [ecx + 4] */
    622     PUSH32(esp, esi); /* 0x47008BBB: push esi */
    623     PUSH32(esp, eax); /* 0x47008BBC: push eax */
    624     RECOMP_ICALL(MEM32(0x470AC18C)); /* 0x47008BBD: call dword ptr [0x470ac18c] */
    625     RECOMP_FLAGS_IN();
    626     esi = eax; /* 0x47008BC3: mov esi, eax */
    627     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
    628     _cf = (esi) != 0;
    629     esi = (uint32_t)(-(int32_t)esi); /* 0x47008BC5: neg esi */
    630     _flag_k = FK_CMP;
    631     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47008BC7: sbb esi, esi */
    632       esi = _sc ? 0xFFFFFFFFu : 0;
    633       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    634       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    635     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
    636     _cf = (esi) != 0;
    637     esi = (uint32_t)(-(int32_t)esi); /* 0x47008BC9: neg esi */
    638     _flag_k = FK_CMP;
    639     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    640     esi = esi - 1; /* 0x47008BCB: dec esi */
    641     _flag_k = FK_DEC;
    642     /* cmp esi, 0xFFFFFFFFu */ /* 0x47008BCC: cmp esi, -1 */
    643     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
    644     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    645     _flag_k = FK_CMP;
    646     if (CMP_NE(_flag_a, _flag_b)) goto L_47008BE3; /* 0x47008BCF: jne 0x47008be3 */
    647 L_47008BD1:
    648     PUSH32(esp, edi); /* 0x47008BD1: push edi */
    649     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008BD2: call dword ptr [0x470ac3c8] */
    650     RECOMP_FLAGS_IN();
    651     edi = eax; /* 0x47008BD8: mov edi, eax */
    652     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47008BDA: call dword ptr [0x470ac150] */
    653     RECOMP_FLAGS_IN();
    654     MEM32(edi) = eax; /* 0x47008BE0: mov dword ptr [edi], eax */
    655     edi = POP32_VAL(esp); /* 0x47008BE2: pop edi */
    656 L_47008BE3:
    657     eax = esi; /* 0x47008BE3: mov eax, esi */
    658     esi = POP32_VAL(esp); /* 0x47008BE5: pop esi */
    659     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008BE6: ret  */
    660 L_47008BE7:
    661     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    662     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    663     ecx = ecx + 4; /* 0x47008BE7: add ecx, 4 */
    664     _flag_k = FK_ADD;
    665     PUSH32(esp, ecx); /* 0x47008BEA: push ecx */
    666     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47008BEB: call dword ptr [0x470ac190] */
    667     RECOMP_FLAGS_IN();
    668     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    669     eax = 0; /* 0x47008BF1: xor eax, eax */
    670     _cf = 0;
    671     _flag_k = FK_TEST;
    672     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008BF3: ret  */
    673     RECOMP_REGS_OUT();
    674 }
    675 
    676 void sub_47008C00(void) {
    677     int _fpu_cmp = 0;
    678     uint32_t _cf = 0;
    679     int _df = 1;
    680     uint32_t _flag_k = FK_NONE;
    681     uint32_t _flag_a = 0, _flag_b = 0;
    682     uint32_t _itail_tgt = 0;
    683     RECOMP_REGS_LOCALS
    684     RECOMP_ENTER(0x47008C00u);
    685 
    686 L_47008C00:
    687     eax = MEM32(ecx); /* 0x47008C00: mov eax, dword ptr [ecx] */
    688     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    689     eax = eax - 1; /* 0x47008C02: dec eax */
    690     _flag_k = FK_DEC;
    691     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47008C45; /* 0x47008C03: je 0x47008c45 */
    692 L_47008C05:
    693     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    694     eax = eax - 1; /* 0x47008C05: dec eax */
    695     _flag_k = FK_DEC;
    696     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47008C18; /* 0x47008C06: je 0x47008c18 */
    697 L_47008C08:
    698     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008C08: call dword ptr [0x470ac3c8] */
    699     RECOMP_FLAGS_IN();
    700     MEM32(eax) = 0x16u; /* 0x47008C0E: mov dword ptr [eax], 0x16 */
    701     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    702     eax = eax | 0xFFFFFFFFu; /* 0x47008C14: or eax, 0xffffffff */
    703     _cf = 0;
    704     _flag_k = FK_TEST;
    705     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008C17: ret  */
    706 L_47008C18:
    707     eax = MEM32(ecx + 0x4); /* 0x47008C18: mov eax, dword ptr [ecx + 4] */
    708     PUSH32(esp, 0xFFFFFFFFu); /* 0x47008C1B: push -1 */
    709     PUSH32(esp, eax); /* 0x47008C1D: push eax */
    710     RECOMP_ICALL(MEM32(0x470AC194)); /* 0x47008C1E: call dword ptr [0x470ac194] */
    711     RECOMP_FLAGS_IN();
    712     /* test eax, eax */ /* 0x47008C24: test eax, eax */
    713     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    714     _cf = 0;
    715     _flag_k = FK_TEST;
    716     if (TEST_Z(_flag_a, _flag_b)) goto L_47008C4F; /* 0x47008C26: je 0x47008c4f */
    717 L_47008C28:
    718     /* cmp eax, 0x80u */ /* 0x47008C28: cmp eax, 0x80 */
    719     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
    720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    721     _flag_k = FK_CMP;
    722     if (CMP_EQ(_flag_a, _flag_b)) goto L_47008C4F; /* 0x47008C2D: je 0x47008c4f */
    723 L_47008C2F:
    724     PUSH32(esp, esi); /* 0x47008C2F: push esi */
    725     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008C30: call dword ptr [0x470ac3c8] */
    726     RECOMP_FLAGS_IN();
    727     esi = eax; /* 0x47008C36: mov esi, eax */
    728     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47008C38: call dword ptr [0x470ac150] */
    729     RECOMP_FLAGS_IN();
    730     MEM32(esi) = eax; /* 0x47008C3E: mov dword ptr [esi], eax */
    731     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    732     eax = eax | 0xFFFFFFFFu; /* 0x47008C40: or eax, 0xffffffff */
    733     _cf = 0;
    734     _flag_k = FK_TEST;
    735     esi = POP32_VAL(esp); /* 0x47008C43: pop esi */
    736     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008C44: ret  */
    737 L_47008C45:
    738     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    739     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    740     ecx = ecx + 4; /* 0x47008C45: add ecx, 4 */
    741     _flag_k = FK_ADD;
    742     PUSH32(esp, ecx); /* 0x47008C48: push ecx */
    743     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47008C49: call dword ptr [0x470ac180] */
    744     RECOMP_FLAGS_IN();
    745 L_47008C4F:
    746     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    747     eax = 0; /* 0x47008C4F: xor eax, eax */
    748     _cf = 0;
    749     _flag_k = FK_TEST;
    750     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008C51: ret  */
    751     RECOMP_REGS_OUT();
    752 }
    753 
    754 void sub_47008C60(void) {
    755     int _fpu_cmp = 0;
    756     uint32_t _cf = 0;
    757     int _df = 1;
    758     uint32_t _flag_k = FK_NONE;
    759     uint32_t _flag_a = 0, _flag_b = 0;
    760     uint32_t _itail_tgt = 0;
    761     RECOMP_REGS_LOCALS
    762     RECOMP_ENTER(0x47008C60u);
    763 
    764 L_47008C60:
    765     PUSH32(esp, esi); /* 0x47008C60: push esi */
    766     esi = ecx; /* 0x47008C61: mov esi, ecx */
    767     eax = MEM32(esi + 0x1C); /* 0x47008C63: mov eax, dword ptr [esi + 0x1c] */
    768     /* test eax, eax */ /* 0x47008C66: test eax, eax */
    769     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    770     _cf = 0;
    771     _flag_k = FK_TEST;
    772     if (TEST_NZ(_flag_a, _flag_b)) goto L_47008D01; /* 0x47008C68: jne 0x47008d01 */
    773 L_47008C6E:
    774     eax = MEM32(esi + 0x18); /* 0x47008C6E: mov eax, dword ptr [esi + 0x18] */
    775     /* cmp eax, 0xFFFFFFFFu */ /* 0x47008C71: cmp eax, -1 */
    776     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    777     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    778     _flag_k = FK_CMP;
    779     MEM32(esi + 0x1C) = 1; /* 0x47008C74: mov dword ptr [esi + 0x1c], 1 */
    780     if (CMP_EQ(_flag_a, _flag_b)) goto L_47008D01; /* 0x47008C7B: je 0x47008d01 */
    781 L_47008C81:
    782     PUSH32(esp, ebx); /* 0x47008C81: push ebx */
    783     PUSH32(esp, ebp); /* 0x47008C82: push ebp */
    784     PUSH32(esp, edi); /* 0x47008C83: push edi */
    785     PUSH32(esp, 0); /* 0x47008C84: push 0 */
    786     PUSH32(esp, eax); /* 0x47008C86: push eax */
    787     MEM32(esi + 0x8) = 0; /* 0x47008C87: mov dword ptr [esi + 8], 0 */
    788     RECOMP_ICALL(MEM32(0x470AC144)); /* 0x47008C8E: call dword ptr [0x470ac144] */
    789     RECOMP_FLAGS_IN();
    790     ecx = MEM32(esi + 0x18); /* 0x47008C94: mov ecx, dword ptr [esi + 0x18] */
    791     PUSH32(esp, 0); /* 0x47008C97: push 0 */
    792     PUSH32(esp, eax); /* 0x47008C99: push eax */
    793     eax = MEM32(esi + 0x8); /* 0x47008C9A: mov eax, dword ptr [esi + 8] */
    794     PUSH32(esp, 0); /* 0x47008C9D: push 0 */
    795     PUSH32(esp, eax); /* 0x47008C9F: push eax */
    796     PUSH32(esp, ecx); /* 0x47008CA0: push ecx */
    797     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x47008CA1: call dword ptr [0x470ac0fc] */
    798     RECOMP_FLAGS_IN();
    799     /* test eax, eax */ /* 0x47008CA7: test eax, eax */
    800     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    801     _cf = 0;
    802     _flag_k = FK_TEST;
    803     ebx = MEM32(0x470AC3C8); /* 0x47008CA9: mov ebx, dword ptr [0x470ac3c8] */
    804     ebp = MEM32(0x470AC150); /* 0x47008CAF: mov ebp, dword ptr [0x470ac150] */
    805     if (TEST_NZ(_flag_a, _flag_b)) goto L_47008CBF; /* 0x47008CB5: jne 0x47008cbf */
    806 L_47008CB7:
    807     RECOMP_ICALL(ebx); /* 0x47008CB7: call ebx */
    808     RECOMP_FLAGS_IN();
    809     edi = eax; /* 0x47008CB9: mov edi, eax */
    810     RECOMP_ICALL(ebp); /* 0x47008CBB: call ebp */
    811     RECOMP_FLAGS_IN();
    812     MEM32(edi) = eax; /* 0x47008CBD: mov dword ptr [edi], eax */
    813 L_47008CBF:
    814     eax = MEM32(esi + 0x18); /* 0x47008CBF: mov eax, dword ptr [esi + 0x18] */
    815     PUSH32(esp, eax); /* 0x47008CC2: push eax */
    816     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47008CC3: call dword ptr [0x470ac198] */
    817     RECOMP_FLAGS_IN();
    818     /* test eax, eax */ /* 0x47008CC9: test eax, eax */
    819     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    820     _cf = 0;
    821     _flag_k = FK_TEST;
    822     if (TEST_NZ(_flag_a, _flag_b)) goto L_47008CD5; /* 0x47008CCB: jne 0x47008cd5 */
    823 L_47008CCD:
    824     RECOMP_ICALL(ebx); /* 0x47008CCD: call ebx */
    825     RECOMP_FLAGS_IN();
    826     edi = eax; /* 0x47008CCF: mov edi, eax */
    827     RECOMP_ICALL(ebp); /* 0x47008CD1: call ebp */
    828     RECOMP_FLAGS_IN();
    829     MEM32(edi) = eax; /* 0x47008CD3: mov dword ptr [edi], eax */
    830 L_47008CD5:
    831     eax = MEM32(esi + 0x14); /* 0x47008CD5: mov eax, dword ptr [esi + 0x14] */
    832     /* test eax, eax */ /* 0x47008CD8: test eax, eax */
    833     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    834     _cf = 0;
    835     _flag_k = FK_TEST;
    836     edi = POP32_VAL(esp); /* 0x47008CDA: pop edi */
    837     ebp = POP32_VAL(esp); /* 0x47008CDB: pop ebp */
    838     MEM32(esi + 0x18) = 0xFFFFFFFFu; /* 0x47008CDC: mov dword ptr [esi + 0x18], 0xffffffff */
    839     ebx = POP32_VAL(esp); /* 0x47008CE3: pop ebx */
    840     if (TEST_Z(_flag_a, _flag_b)) goto L_47008CFA; /* 0x47008CE4: je 0x47008cfa */
    841 L_47008CE6:
    842     PUSH32(esp, eax); /* 0x47008CE6: push eax */
    843     RECOMP_ICALL(MEM32(0x470AC3F8)); /* 0x47008CE7: call dword ptr [0x470ac3f8] */
    844     RECOMP_FLAGS_IN();
    845     edx = MEM32(esi + 0x14); /* 0x47008CED: mov edx, dword ptr [esi + 0x14] */
    846     PUSH32(esp, edx); /* 0x47008CF0: push edx */
    847     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47008CF1: call dword ptr [0x470ac390] */
    848     RECOMP_FLAGS_IN();
    849     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    850     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    851     esp = esp + 8; /* 0x47008CF7: add esp, 8 */
    852     _flag_k = FK_ADD;
    853 L_47008CFA:
    854     MEM32(esi + 0x14) = 0; /* 0x47008CFA: mov dword ptr [esi + 0x14], 0 */
    855 L_47008D01:
    856     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    857     eax = 0; /* 0x47008D01: xor eax, eax */
    858     _cf = 0;
    859     _flag_k = FK_TEST;
    860     esi = POP32_VAL(esp); /* 0x47008D03: pop esi */
    861     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008D04: ret  */
    862     RECOMP_REGS_OUT();
    863 }
    864 
    865 void sub_47008D10(void) {
    866     int _fpu_cmp = 0;
    867     uint32_t _cf = 0;
    868     int _df = 1;
    869     uint32_t _flag_k = FK_NONE;
    870     uint32_t _flag_a = 0, _flag_b = 0;
    871     uint32_t _itail_tgt = 0;
    872     RECOMP_REGS_LOCALS
    873     RECOMP_ENTER(0x47008D10u);
    874 
    875 L_47008D10:
    876     eax = MEM32(ecx + 0x18); /* 0x47008D10: mov eax, dword ptr [ecx + 0x18] */
    877     PUSH32(esp, esi); /* 0x47008D13: push esi */
    878     PUSH32(esp, 0); /* 0x47008D14: push 0 */
    879     PUSH32(esp, 1); /* 0x47008D16: push 1 */
    880     PUSH32(esp, 0); /* 0x47008D18: push 0 */
    881     PUSH32(esp, 0); /* 0x47008D1A: push 0 */
    882     PUSH32(esp, eax); /* 0x47008D1C: push eax */
    883     MEM32(ecx + 0x8) = 0; /* 0x47008D1D: mov dword ptr [ecx + 8], 0 */
    884     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x47008D24: call dword ptr [0x470ac0fc] */
    885     RECOMP_FLAGS_IN();
    886     esi = eax; /* 0x47008D2A: mov esi, eax */
    887     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
    888     _cf = (esi) != 0;
    889     esi = (uint32_t)(-(int32_t)esi); /* 0x47008D2C: neg esi */
    890     _flag_k = FK_CMP;
    891     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47008D2E: sbb esi, esi */
    892       esi = _sc ? 0xFFFFFFFFu : 0;
    893       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    894       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    895     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
    896     _cf = (esi) != 0;
    897     esi = (uint32_t)(-(int32_t)esi); /* 0x47008D30: neg esi */
    898     _flag_k = FK_CMP;
    899     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    900     esi = esi - 1; /* 0x47008D32: dec esi */
    901     _flag_k = FK_DEC;
    902     /* cmp esi, 0xFFFFFFFFu */ /* 0x47008D33: cmp esi, -1 */
    903     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
    904     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    905     _flag_k = FK_CMP;
    906     if (CMP_NE(_flag_a, _flag_b)) goto L_47008D4E; /* 0x47008D36: jne 0x47008d4e */
    907 L_47008D38:
    908     PUSH32(esp, edi); /* 0x47008D38: push edi */
    909     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008D39: call dword ptr [0x470ac3c8] */
    910     RECOMP_FLAGS_IN();
    911     edi = eax; /* 0x47008D3F: mov edi, eax */
    912     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47008D41: call dword ptr [0x470ac150] */
    913     RECOMP_FLAGS_IN();
    914     MEM32(edi) = eax; /* 0x47008D47: mov dword ptr [edi], eax */
    915     edi = POP32_VAL(esp); /* 0x47008D49: pop edi */
    916     eax = esi; /* 0x47008D4A: mov eax, esi */
    917     esi = POP32_VAL(esp); /* 0x47008D4C: pop esi */
    918     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008D4D: ret  */
    919 L_47008D4E:
    920     eax = esi; /* 0x47008D4E: mov eax, esi */
    921     esi = POP32_VAL(esp); /* 0x47008D50: pop esi */
    922     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008D51: ret  */
    923     RECOMP_REGS_OUT();
    924 }
    925 
    926 void sub_47008D60(void) {
    927     int _fpu_cmp = 0;
    928     uint32_t _cf = 0;
    929     int _df = 1;
    930     uint32_t _flag_k = FK_NONE;
    931     uint32_t _flag_a = 0, _flag_b = 0;
    932     uint32_t _itail_tgt = 0;
    933     RECOMP_REGS_LOCALS
    934     RECOMP_ENTER(0x47008D60u);
    935 
    936 L_47008D60:
    937     eax = MEM32(ecx + 0x18); /* 0x47008D60: mov eax, dword ptr [ecx + 0x18] */
    938     PUSH32(esp, esi); /* 0x47008D63: push esi */
    939     PUSH32(esp, 0); /* 0x47008D64: push 0 */
    940     PUSH32(esp, 1); /* 0x47008D66: push 1 */
    941     PUSH32(esp, 0); /* 0x47008D68: push 0 */
    942     PUSH32(esp, 0); /* 0x47008D6A: push 0 */
    943     PUSH32(esp, eax); /* 0x47008D6C: push eax */
    944     MEM32(ecx + 0x8) = 0; /* 0x47008D6D: mov dword ptr [ecx + 8], 0 */
    945     RECOMP_ICALL(MEM32(0x470AC100)); /* 0x47008D74: call dword ptr [0x470ac100] */
    946     RECOMP_FLAGS_IN();
    947     esi = eax; /* 0x47008D7A: mov esi, eax */
    948     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
    949     _cf = (esi) != 0;
    950     esi = (uint32_t)(-(int32_t)esi); /* 0x47008D7C: neg esi */
    951     _flag_k = FK_CMP;
    952     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47008D7E: sbb esi, esi */
    953       esi = _sc ? 0xFFFFFFFFu : 0;
    954       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    955       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    956     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
    957     _cf = (esi) != 0;
    958     esi = (uint32_t)(-(int32_t)esi); /* 0x47008D80: neg esi */
    959     _flag_k = FK_CMP;
    960     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    961     esi = esi - 1; /* 0x47008D82: dec esi */
    962     _flag_k = FK_DEC;
    963     /* cmp esi, 0xFFFFFFFFu */ /* 0x47008D83: cmp esi, -1 */
    964     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
    965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    966     _flag_k = FK_CMP;
    967     if (CMP_NE(_flag_a, _flag_b)) goto L_47008D9E; /* 0x47008D86: jne 0x47008d9e */
    968 L_47008D88:
    969     PUSH32(esp, edi); /* 0x47008D88: push edi */
    970     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008D89: call dword ptr [0x470ac3c8] */
    971     RECOMP_FLAGS_IN();
    972     edi = eax; /* 0x47008D8F: mov edi, eax */
    973     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47008D91: call dword ptr [0x470ac150] */
    974     RECOMP_FLAGS_IN();
    975     MEM32(edi) = eax; /* 0x47008D97: mov dword ptr [edi], eax */
    976     edi = POP32_VAL(esp); /* 0x47008D99: pop edi */
    977     eax = esi; /* 0x47008D9A: mov eax, esi */
    978     esi = POP32_VAL(esp); /* 0x47008D9C: pop esi */
    979     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008D9D: ret  */
    980 L_47008D9E:
    981     eax = esi; /* 0x47008D9E: mov eax, esi */
    982     esi = POP32_VAL(esp); /* 0x47008DA0: pop esi */
    983     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008DA1: ret  */
    984     RECOMP_REGS_OUT();
    985 }
    986 
    987 void sub_47008DB0(void) {
    988     int _fpu_cmp = 0;
    989     uint32_t _cf = 0;
    990     int _df = 1;
    991     uint32_t _flag_k = FK_NONE;
    992     uint32_t _flag_a = 0, _flag_b = 0;
    993     uint32_t _itail_tgt = 0;
    994     RECOMP_REGS_LOCALS
    995     RECOMP_ENTER(0x47008DB0u);
    996 
    997 L_47008DB0:
    998     eax = ecx; /* 0x47008DB0: mov eax, ecx */
    999     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47008DB2: ret 0xc */
   1000     RECOMP_REGS_OUT();
   1001 }
   1002 
   1003 void sub_47008DC0(void) {
   1004     int _fpu_cmp = 0;
   1005     uint32_t _cf = 0;
   1006     int _df = 1;
   1007     uint32_t _flag_k = FK_NONE;
   1008     uint32_t _flag_a = 0, _flag_b = 0;
   1009     uint32_t _itail_tgt = 0;
   1010     RECOMP_REGS_LOCALS
   1011     RECOMP_ENTER(0x47008DC0u);
   1012 
   1013 L_47008DC0:
   1014     eax = ecx; /* 0x47008DC0: mov eax, ecx */
   1015     ecx = MEM32(esp + 0x4); /* 0x47008DC2: mov ecx, dword ptr [esp + 4] */
   1016     MEM32(eax) = ecx; /* 0x47008DC6: mov dword ptr [eax], ecx */
   1017     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47008DC8: ret 0xc */
   1018     RECOMP_REGS_OUT();
   1019 }
   1020 
   1021 void sub_47008DD0(void) {
   1022     int _fpu_cmp = 0;
   1023     uint32_t _cf = 0;
   1024     int _df = 1;
   1025     uint32_t _flag_k = FK_NONE;
   1026     uint32_t _flag_a = 0, _flag_b = 0;
   1027     uint32_t _itail_tgt = 0;
   1028     RECOMP_REGS_LOCALS
   1029     RECOMP_ENTER(0x47008DD0u);
   1030 
   1031 L_47008DD0:
   1032     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47008DD0: call dword ptr [0x470ac3c8] */
   1033     RECOMP_FLAGS_IN();
   1034     MEM32(eax) = 0x79u; /* 0x47008DD6: mov dword ptr [eax], 0x79 */
   1035     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1036     eax = eax | 0xFFFFFFFFu; /* 0x47008DDC: or eax, 0xffffffff */
   1037     _cf = 0;
   1038     _flag_k = FK_TEST;
   1039     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47008DDF: ret 4 */
   1040     RECOMP_REGS_OUT();
   1041 }
   1042 
   1043 void sub_47008DF0(void) {
   1044     int _fpu_cmp = 0;
   1045     uint32_t _cf = 0;
   1046     int _df = 1;
   1047     uint32_t _flag_k = FK_NONE;
   1048     uint32_t _flag_a = 0, _flag_b = 0;
   1049     uint32_t _itail_tgt = 0;
   1050     RECOMP_REGS_LOCALS
   1051     RECOMP_ENTER(0x47008DF0u);
   1052 
   1053 L_47008DF0:
   1054     goto L_47085D30; /* 0x47008DF0: jmp 0x47085d30 */
   1055 L_47085D30:
   1056     PUSH32(esp, esi); /* 0x47085D30: push esi */
   1057     esi = ecx; /* 0x47085D31: mov esi, ecx */
   1058     eax = MEM32(esi + 0xA4); /* 0x47085D33: mov eax, dword ptr [esi + 0xa4] */
   1059     /* test eax, eax */ /* 0x47085D39: test eax, eax */
   1060     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1061     _cf = 0;
   1062     _flag_k = FK_TEST;
   1063     if (TEST_NZ(_flag_a, _flag_b)) goto L_47085DA7; /* 0x47085D3B: jne 0x47085da7 */
   1064 L_47085D3D:
   1065     eax = MEM32(esi); /* 0x47085D3D: mov eax, dword ptr [esi] */
   1066     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1067     eax = eax - 1; /* 0x47085D3F: dec eax */
   1068     _flag_k = FK_DEC;
   1069     MEM32(esi + 0xA4) = 1; /* 0x47085D40: mov dword ptr [esi + 0xa4], 1 */
   1070     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47085D7F; /* 0x47085D4A: je 0x47085d7f */
   1071 L_47085D4C:
   1072     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1073     eax = eax - 1; /* 0x47085D4C: dec eax */
   1074     _flag_k = FK_DEC;
   1075     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47085D5D; /* 0x47085D4D: je 0x47085d5d */
   1076 L_47085D4F:
   1077     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47085D4F: call dword ptr [0x470ac3c8] */
   1078     RECOMP_FLAGS_IN();
   1079     MEM32(eax) = 0x16u; /* 0x47085D55: mov dword ptr [eax], 0x16 */
   1080     goto L_47085D89; /* 0x47085D5B: jmp 0x47085d89 */
   1081 L_47085D5D:
   1082     eax = MEM32(esi + 0x4); /* 0x47085D5D: mov eax, dword ptr [esi + 4] */
   1083     PUSH32(esp, eax); /* 0x47085D60: push eax */
   1084     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47085D61: call dword ptr [0x470ac198] */
   1085     RECOMP_FLAGS_IN();
   1086     /* test eax, eax */ /* 0x47085D67: test eax, eax */
   1087     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1088     _cf = 0;
   1089     _flag_k = FK_TEST;
   1090     if (TEST_NZ(_flag_a, _flag_b)) goto L_47085D89; /* 0x47085D69: jne 0x47085d89 */
   1091 L_47085D6B:
   1092     PUSH32(esp, edi); /* 0x47085D6B: push edi */
   1093     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47085D6C: call dword ptr [0x470ac3c8] */
   1094     RECOMP_FLAGS_IN();
   1095     edi = eax; /* 0x47085D72: mov edi, eax */
   1096     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47085D74: call dword ptr [0x470ac150] */
   1097     RECOMP_FLAGS_IN();
   1098     MEM32(edi) = eax; /* 0x47085D7A: mov dword ptr [edi], eax */
   1099     edi = POP32_VAL(esp); /* 0x47085D7C: pop edi */
   1100     goto L_47085D89; /* 0x47085D7D: jmp 0x47085d89 */
   1101 L_47085D7F:
   1102     ecx = esi + 0x4; /* 0x47085D7F: lea ecx, [esi + 4] */
   1103     PUSH32(esp, ecx); /* 0x47085D82: push ecx */
   1104     RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x47085D83: call dword ptr [0x470ac19c] */
   1105     RECOMP_FLAGS_IN();
   1106 L_47085D89:
   1107     edx = esi + 0x1C; /* 0x47085D89: lea edx, [esi + 0x1c] */
   1108     PUSH32(esp, edx); /* 0x47085D8C: push edx */
   1109     RECOMP_ICALL(0x47057A00u); /* 0x47085D8D: call 0x47057a00 */ /* not lifted */
   1110     RECOMP_FLAGS_IN();
   1111     eax = esi + 0x7C; /* 0x47085D92: lea eax, [esi + 0x7c] */
   1112     PUSH32(esp, eax); /* 0x47085D95: push eax */
   1113     RECOMP_ICALL(0x47057A00u); /* 0x47085D96: call 0x47057a00 */ /* not lifted */
   1114     RECOMP_FLAGS_IN();
   1115     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x48u);
   1116     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1117     esi = esi + 0x48u; /* 0x47085D9B: add esi, 0x48 */
   1118     _flag_k = FK_ADD;
   1119     PUSH32(esp, esi); /* 0x47085D9E: push esi */
   1120     RECOMP_ICALL(0x47057A00u); /* 0x47085D9F: call 0x47057a00 */ /* not lifted */
   1121     RECOMP_FLAGS_IN();
   1122     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1123     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1124     esp = esp + 0xCu; /* 0x47085DA4: add esp, 0xc */
   1125     _flag_k = FK_ADD;
   1126 L_47085DA7:
   1127     esi = POP32_VAL(esp); /* 0x47085DA7: pop esi */
   1128     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085DA8: ret  */
   1129     RECOMP_REGS_OUT();
   1130 }
   1131 
   1132 void sub_47008E00(void) {
   1133     int _fpu_cmp = 0;
   1134     uint32_t _cf = 0;
   1135     int _df = 1;
   1136     uint32_t _flag_k = FK_NONE;
   1137     uint32_t _flag_a = 0, _flag_b = 0;
   1138     uint32_t _itail_tgt = 0;
   1139     RECOMP_REGS_LOCALS
   1140     RECOMP_ENTER(0x47008E00u);
   1141 
   1142 L_47008E00:
   1143     goto L_47086020; /* 0x47008E00: jmp 0x47086020 */
   1144 L_47086020:
   1145     eax = MEM32(ecx + 0x4); /* 0x47086020: mov eax, dword ptr [ecx + 4] */
   1146     /* test eax, eax */ /* 0x47086023: test eax, eax */
   1147     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1148     _cf = 0;
   1149     _flag_k = FK_TEST;
   1150     if (TEST_NZ(_flag_a, _flag_b)) goto L_4708604D; /* 0x47086025: jne 0x4708604d */
   1151 L_47086027:
   1152     eax = MEM32(ecx); /* 0x47086027: mov eax, dword ptr [ecx] */
   1153     PUSH32(esp, eax); /* 0x47086029: push eax */
   1154     MEM32(ecx + 0x4) = 1; /* 0x4708602A: mov dword ptr [ecx + 4], 1 */
   1155     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47086031: call dword ptr [0x470ac198] */
   1156     RECOMP_FLAGS_IN();
   1157     /* test eax, eax */ /* 0x47086037: test eax, eax */
   1158     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1159     _cf = 0;
   1160     _flag_k = FK_TEST;
   1161     if (TEST_NZ(_flag_a, _flag_b)) goto L_4708604D; /* 0x47086039: jne 0x4708604d */
   1162 L_4708603B:
   1163     PUSH32(esp, esi); /* 0x4708603B: push esi */
   1164     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4708603C: call dword ptr [0x470ac3c8] */
   1165     RECOMP_FLAGS_IN();
   1166     esi = eax; /* 0x47086042: mov esi, eax */
   1167     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47086044: call dword ptr [0x470ac150] */
   1168     RECOMP_FLAGS_IN();
   1169     MEM32(esi) = eax; /* 0x4708604A: mov dword ptr [esi], eax */
   1170     esi = POP32_VAL(esp); /* 0x4708604C: pop esi */
   1171 L_4708604D:
   1172     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708604D: ret  */
   1173     RECOMP_REGS_OUT();
   1174 }
   1175 
   1176 void sub_47008E10(void) {
   1177     int _fpu_cmp = 0;
   1178     uint32_t _cf = 0;
   1179     int _df = 1;
   1180     uint32_t _flag_k = FK_NONE;
   1181     uint32_t _flag_a = 0, _flag_b = 0;
   1182     uint32_t _itail_tgt = 0;
   1183     RECOMP_REGS_LOCALS
   1184     RECOMP_ENTER(0x47008E10u);
   1185 
   1186 L_47008E10:
   1187     goto L_47087480; /* 0x47008E10: jmp 0x47087480 */
   1188 L_47087480:
   1189     PUSH32(esp, ebx); /* 0x47087480: push ebx */
   1190     PUSH32(esp, esi); /* 0x47087481: push esi */
   1191     esi = ecx; /* 0x47087482: mov esi, ecx */
   1192     eax = MEM32(esi + 0x2C); /* 0x47087484: mov eax, dword ptr [esi + 0x2c] */
   1193     /* test eax, eax */ /* 0x47087487: test eax, eax */
   1194     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1195     _cf = 0;
   1196     _flag_k = FK_TEST;
   1197     PUSH32(esp, edi); /* 0x47087489: push edi */
   1198     if (TEST_NZ(_flag_a, _flag_b)) goto L_470874CF; /* 0x4708748A: jne 0x470874cf */
   1199 L_4708748C:
   1200     PUSH32(esp, esi); /* 0x4708748C: push esi */
   1201     MEM32(esi + 0x2C) = 1; /* 0x4708748D: mov dword ptr [esi + 0x2c], 1 */
   1202     RECOMP_ICALL(0x47057A00u); /* 0x47087494: call 0x47057a00 */ /* not lifted */
   1203     RECOMP_FLAGS_IN();
   1204     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1205     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1206     esp = esp + 4; /* 0x47087499: add esp, 4 */
   1207     _flag_k = FK_ADD;
   1208     /* cmp eax, 0xFFFFFFFFu */ /* 0x4708749C: cmp eax, -1 */
   1209     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1210     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1211     _flag_k = FK_CMP;
   1212     if (CMP_NE(_flag_a, _flag_b)) goto L_470874CF; /* 0x4708749F: jne 0x470874cf */
   1213 L_470874A1:
   1214     ebx = MEM32(0x470AC3C8); /* 0x470874A1: mov ebx, dword ptr [0x470ac3c8] */
   1215     edi = MEM32(0x470AC12C); /* 0x470874A7: mov edi, dword ptr [0x470ac12c] */
   1216 L_470874AD:
   1217     RECOMP_ICALL(ebx); /* 0x470874AD: call ebx */
   1218     RECOMP_FLAGS_IN();
   1219     /* cmp MEM32(eax), 0x10u */ /* 0x470874AF: cmp dword ptr [eax], 0x10 */
   1220     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x10u);
   1221     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1222     _flag_k = FK_CMP;
   1223     if (CMP_NE(_flag_a, _flag_b)) goto L_470874CF; /* 0x470874B2: jne 0x470874cf */
   1224 L_470874B4:
   1225     PUSH32(esp, esi); /* 0x470874B4: push esi */
   1226     RECOMP_ICALL(0x47057E10u); /* 0x470874B5: call 0x47057e10 */ /* not lifted */
   1227     RECOMP_FLAGS_IN();
   1228     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1229     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1230     esp = esp + 4; /* 0x470874BA: add esp, 4 */
   1231     _flag_k = FK_ADD;
   1232     PUSH32(esp, 0); /* 0x470874BD: push 0 */
   1233     RECOMP_ICALL(edi); /* 0x470874BF: call edi */
   1234     RECOMP_FLAGS_IN();
   1235     PUSH32(esp, esi); /* 0x470874C1: push esi */
   1236     RECOMP_ICALL(0x47057A00u); /* 0x470874C2: call 0x47057a00 */ /* not lifted */
   1237     RECOMP_FLAGS_IN();
   1238     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1239     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1240     esp = esp + 4; /* 0x470874C7: add esp, 4 */
   1241     _flag_k = FK_ADD;
   1242     /* cmp eax, 0xFFFFFFFFu */ /* 0x470874CA: cmp eax, -1 */
   1243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1244     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1245     _flag_k = FK_CMP;
   1246     RECOMP_BACKEDGE();
   1247     if (CMP_EQ(_flag_a, _flag_b)) goto L_470874AD; /* 0x470874CD: je 0x470874ad */
   1248 L_470874CF:
   1249     edi = POP32_VAL(esp); /* 0x470874CF: pop edi */
   1250     esi = POP32_VAL(esp); /* 0x470874D0: pop esi */
   1251     ebx = POP32_VAL(esp); /* 0x470874D1: pop ebx */
   1252     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470874D2: ret  */
   1253     RECOMP_REGS_OUT();
   1254 }
   1255 
   1256 void sub_47008E20(void) {
   1257     int _fpu_cmp = 0;
   1258     uint32_t _cf = 0;
   1259     int _df = 1;
   1260     uint32_t _flag_k = FK_NONE;
   1261     uint32_t _flag_a = 0, _flag_b = 0;
   1262     uint32_t _itail_tgt = 0;
   1263     RECOMP_REGS_LOCALS
   1264     RECOMP_ENTER(0x47008E20u);
   1265 
   1266 L_47008E20:
   1267     PUSH32(esp, 0xFFFFFFFFu); /* 0x47008E20: push -1 */
   1268     PUSH32(esp, 0x470A38C3u); /* 0x47008E22: push 0x470a38c3 */
   1269     eax = MEM32(FS_BASE + (0)); /* 0x47008E27: mov eax, dword ptr fs:[0] */
   1270     PUSH32(esp, eax); /* 0x47008E2D: push eax */
   1271     MEM32(FS_BASE + (0)) = esp; /* 0x47008E2E: mov dword ptr fs:[0], esp */
   1272     PUSH32(esp, ecx); /* 0x47008E35: push ecx */
   1273     PUSH32(esp, esi); /* 0x47008E36: push esi */
   1274     esi = ecx; /* 0x47008E37: mov esi, ecx */
   1275     MEM32(esp + 0x4) = esi; /* 0x47008E39: mov dword ptr [esp + 4], esi */
   1276     ecx = esi + 0x58; /* 0x47008E3D: lea ecx, [esi + 0x58] */
   1277     MEM32(esp + 0x10) = 1; /* 0x47008E40: mov dword ptr [esp + 0x10], 1 */
   1278     RECOMP_ICALL(0x47087480u); /* 0x47008E48: call 0x47087480 */ /* not lifted */
   1279     RECOMP_FLAGS_IN();
   1280     ecx = esi + 0x24; /* 0x47008E4D: lea ecx, [esi + 0x24] */
   1281     MEM8(esp + 0x10) = (uint8_t)(0); /* 0x47008E50: mov byte ptr [esp + 0x10], 0 */
   1282     RECOMP_ICALL(0x47087480u); /* 0x47008E55: call 0x47087480 */ /* not lifted */
   1283     RECOMP_FLAGS_IN();
   1284     ecx = esi; /* 0x47008E5A: mov ecx, esi */
   1285     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47008E5C: mov dword ptr [esp + 0x10], 0xffffffff */
   1286     RECOMP_ICALL(0x47087E30u); /* 0x47008E64: call 0x47087e30 */ /* not lifted */
   1287     RECOMP_FLAGS_IN();
   1288     ecx = MEM32(esp + 0x8); /* 0x47008E69: mov ecx, dword ptr [esp + 8] */
   1289     esi = POP32_VAL(esp); /* 0x47008E6D: pop esi */
   1290     MEM32(FS_BASE + (0)) = ecx; /* 0x47008E6E: mov dword ptr fs:[0], ecx */
   1291     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1292     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1293     esp = esp + 0x10u; /* 0x47008E75: add esp, 0x10 */
   1294     _flag_k = FK_ADD;
   1295     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008E78: ret  */
   1296     RECOMP_REGS_OUT();
   1297 }
   1298 
   1299 void sub_47008E80(void) {
   1300     int _fpu_cmp = 0;
   1301     uint32_t _cf = 0;
   1302     int _df = 1;
   1303     uint32_t _flag_k = FK_NONE;
   1304     uint32_t _flag_a = 0, _flag_b = 0;
   1305     uint32_t _itail_tgt = 0;
   1306     RECOMP_REGS_LOCALS
   1307     RECOMP_ENTER(0x47008E80u);
   1308 
   1309 L_47008E80:
   1310     PUSH32(esp, 0xFFFFFFFFu); /* 0x47008E80: push -1 */
   1311     PUSH32(esp, 0x470A38E3u); /* 0x47008E82: push 0x470a38e3 */
   1312     eax = MEM32(FS_BASE + (0)); /* 0x47008E87: mov eax, dword ptr fs:[0] */
   1313     PUSH32(esp, eax); /* 0x47008E8D: push eax */
   1314     MEM32(FS_BASE + (0)) = esp; /* 0x47008E8E: mov dword ptr fs:[0], esp */
   1315     PUSH32(esp, ecx); /* 0x47008E95: push ecx */
   1316     PUSH32(esp, esi); /* 0x47008E96: push esi */
   1317     esi = ecx; /* 0x47008E97: mov esi, ecx */
   1318     MEM32(esp + 0x4) = esi; /* 0x47008E99: mov dword ptr [esp + 4], esi */
   1319     ecx = esi + 0x58; /* 0x47008E9D: lea ecx, [esi + 0x58] */
   1320     MEM32(esp + 0x10) = 1; /* 0x47008EA0: mov dword ptr [esp + 0x10], 1 */
   1321     RECOMP_ICALL(0x47087480u); /* 0x47008EA8: call 0x47087480 */ /* not lifted */
   1322     RECOMP_FLAGS_IN();
   1323     ecx = esi + 0x24; /* 0x47008EAD: lea ecx, [esi + 0x24] */
   1324     MEM8(esp + 0x10) = (uint8_t)(0); /* 0x47008EB0: mov byte ptr [esp + 0x10], 0 */
   1325     RECOMP_ICALL(0x47087480u); /* 0x47008EB5: call 0x47087480 */ /* not lifted */
   1326     RECOMP_FLAGS_IN();
   1327     ecx = esi; /* 0x47008EBA: mov ecx, esi */
   1328     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47008EBC: mov dword ptr [esp + 0x10], 0xffffffff */
   1329     RECOMP_ICALL(0x47087E30u); /* 0x47008EC4: call 0x47087e30 */ /* not lifted */
   1330     RECOMP_FLAGS_IN();
   1331     ecx = MEM32(esp + 0x8); /* 0x47008EC9: mov ecx, dword ptr [esp + 8] */
   1332     esi = POP32_VAL(esp); /* 0x47008ECD: pop esi */
   1333     MEM32(FS_BASE + (0)) = ecx; /* 0x47008ECE: mov dword ptr fs:[0], ecx */
   1334     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1335     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1336     esp = esp + 0x10u; /* 0x47008ED5: add esp, 0x10 */
   1337     _flag_k = FK_ADD;
   1338     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008ED8: ret  */
   1339     RECOMP_REGS_OUT();
   1340 }
   1341 
   1342 void sub_47008EE0(void) {
   1343     int _fpu_cmp = 0;
   1344     uint32_t _cf = 0;
   1345     int _df = 1;
   1346     uint32_t _flag_k = FK_NONE;
   1347     uint32_t _flag_a = 0, _flag_b = 0;
   1348     uint32_t _itail_tgt = 0;
   1349     RECOMP_REGS_LOCALS
   1350     RECOMP_ENTER(0x47008EE0u);
   1351 
   1352 L_47008EE0:
   1353     eax = ecx; /* 0x47008EE0: mov eax, ecx */
   1354     ecx = MEM32(esp + 0x4); /* 0x47008EE2: mov ecx, dword ptr [esp + 4] */
   1355     edx = MEM32(ecx + 0x4); /* 0x47008EE6: mov edx, dword ptr [ecx + 4] */
   1356     MEM32(eax + 0x4) = edx; /* 0x47008EE9: mov dword ptr [eax + 4], edx */
   1357     ecx = MEM32(ecx + 0x8); /* 0x47008EEC: mov ecx, dword ptr [ecx + 8] */
   1358     MEM32(eax + 0x8) = ecx; /* 0x47008EEF: mov dword ptr [eax + 8], ecx */
   1359     MEM32(eax) = 0x470AC5C0u; /* 0x47008EF2: mov dword ptr [eax], 0x470ac5c0 */
   1360     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47008EF8: ret 4 */
   1361     RECOMP_REGS_OUT();
   1362 }
   1363 
   1364 void sub_47008F00(void) {
   1365     int _fpu_cmp = 0;
   1366     uint32_t _cf = 0;
   1367     int _df = 1;
   1368     uint32_t _flag_k = FK_NONE;
   1369     uint32_t _flag_a = 0, _flag_b = 0;
   1370     uint32_t _itail_tgt = 0;
   1371     RECOMP_REGS_LOCALS
   1372     RECOMP_ENTER(0x47008F00u);
   1373 
   1374 L_47008F00:
   1375     PUSH32(esp, 0); /* 0x47008F00: push 0 */
   1376     PUSH32(esp, 0); /* 0x47008F02: push 0 */
   1377     RECOMP_ICALL(0x4702A790u); /* 0x47008F04: call 0x4702a790 */ /* not lifted */
   1378     RECOMP_FLAGS_IN();
   1379     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008F09: ret  */
   1380     RECOMP_REGS_OUT();
   1381 }
   1382 
   1383 void sub_47008F10(void) {
   1384     int _fpu_cmp = 0;
   1385     uint32_t _cf = 0;
   1386     int _df = 1;
   1387     uint32_t _flag_k = FK_NONE;
   1388     uint32_t _flag_a = 0, _flag_b = 0;
   1389     uint32_t _itail_tgt = 0;
   1390     RECOMP_REGS_LOCALS
   1391     RECOMP_ENTER(0x47008F10u);
   1392 
   1393 L_47008F10:
   1394     PUSH32(esp, ebx); /* 0x47008F10: push ebx */
   1395     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47008F11: mov bl, byte ptr [esp + 8] */
   1396     /* test LO8(ebx), 2 */ /* 0x47008F15: test bl, 2 */
   1397     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   1398     _cf = 0;
   1399     _flag_k = FK_NARROW(FK_TEST, 24);
   1400     PUSH32(esp, esi); /* 0x47008F18: push esi */
   1401     esi = ecx; /* 0x47008F19: mov esi, ecx */
   1402     if (TEST_Z(_flag_a, _flag_b)) goto L_47008F48; /* 0x47008F1B: je 0x47008f48 */
   1403 L_47008F1D:
   1404     eax = MEM32(esi + (-0x4)); /* 0x47008F1D: mov eax, dword ptr [esi - 4] */
   1405     PUSH32(esp, edi); /* 0x47008F20: push edi */
   1406     PUSH32(esp, 0x4702A7B0u); /* 0x47008F21: push 0x4702a7b0 */
   1407     edi = esi + (-0x4); /* 0x47008F26: lea edi, [esi - 4] */
   1408     PUSH32(esp, eax); /* 0x47008F29: push eax */
   1409     PUSH32(esp, 0xCu); /* 0x47008F2A: push 0xc */
   1410     PUSH32(esp, esi); /* 0x47008F2C: push esi */
   1411     RECOMP_ICALL(0x470A32EBu); /* 0x47008F2D: call 0x470a32eb */ /* not lifted */
   1412     RECOMP_FLAGS_IN();
   1413     /* test LO8(ebx), 1 */ /* 0x47008F32: test bl, 1 */
   1414     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1415     _cf = 0;
   1416     _flag_k = FK_NARROW(FK_TEST, 24);
   1417     if (TEST_Z(_flag_a, _flag_b)) goto L_47008F40; /* 0x47008F35: je 0x47008f40 */
   1418 L_47008F37:
   1419     PUSH32(esp, edi); /* 0x47008F37: push edi */
   1420     RECOMP_ICALL(0x470A32A2u); /* 0x47008F38: call 0x470a32a2 */ /* not lifted */
   1421     RECOMP_FLAGS_IN();
   1422     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1423     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1424     esp = esp + 4; /* 0x47008F3D: add esp, 4 */
   1425     _flag_k = FK_ADD;
   1426 L_47008F40:
   1427     eax = edi; /* 0x47008F40: mov eax, edi */
   1428     edi = POP32_VAL(esp); /* 0x47008F42: pop edi */
   1429     esi = POP32_VAL(esp); /* 0x47008F43: pop esi */
   1430     ebx = POP32_VAL(esp); /* 0x47008F44: pop ebx */
   1431     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47008F45: ret 4 */
   1432 L_47008F48:
   1433     ecx = esi; /* 0x47008F48: mov ecx, esi */
   1434     RECOMP_ICALL(0x4702A7B0u); /* 0x47008F4A: call 0x4702a7b0 */ /* not lifted */
   1435     RECOMP_FLAGS_IN();
   1436     /* test LO8(ebx), 1 */ /* 0x47008F4F: test bl, 1 */
   1437     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1438     _cf = 0;
   1439     _flag_k = FK_NARROW(FK_TEST, 24);
   1440     if (TEST_Z(_flag_a, _flag_b)) goto L_47008F5D; /* 0x47008F52: je 0x47008f5d */
   1441 L_47008F54:
   1442     PUSH32(esp, esi); /* 0x47008F54: push esi */
   1443     RECOMP_ICALL(0x470A32A2u); /* 0x47008F55: call 0x470a32a2 */ /* not lifted */
   1444     RECOMP_FLAGS_IN();
   1445     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1446     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1447     esp = esp + 4; /* 0x47008F5A: add esp, 4 */
   1448     _flag_k = FK_ADD;
   1449 L_47008F5D:
   1450     eax = esi; /* 0x47008F5D: mov eax, esi */
   1451     esi = POP32_VAL(esp); /* 0x47008F5F: pop esi */
   1452     ebx = POP32_VAL(esp); /* 0x47008F60: pop ebx */
   1453     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47008F61: ret 4 */
   1454     RECOMP_REGS_OUT();
   1455 }
   1456 
   1457 void sub_47008F70(void) {
   1458     int _fpu_cmp = 0;
   1459     uint32_t _cf = 0;
   1460     int _df = 1;
   1461     uint32_t _flag_k = FK_NONE;
   1462     uint32_t _flag_a = 0, _flag_b = 0;
   1463     uint32_t _itail_tgt = 0;
   1464     RECOMP_REGS_LOCALS
   1465     RECOMP_ENTER(0x47008F70u);
   1466 
   1467 L_47008F70:
   1468     eax = MEM32(esp + 0xC); /* 0x47008F70: mov eax, dword ptr [esp + 0xc] */
   1469     ecx = MEM32(esp + 0x8); /* 0x47008F74: mov ecx, dword ptr [esp + 8] */
   1470     edx = MEM32(esp + 0x4); /* 0x47008F78: mov edx, dword ptr [esp + 4] */
   1471     PUSH32(esp, eax); /* 0x47008F7C: push eax */
   1472     PUSH32(esp, ecx); /* 0x47008F7D: push ecx */
   1473     PUSH32(esp, edx); /* 0x47008F7E: push edx */
   1474     RECOMP_ICALL(0x47056190u); /* 0x47008F7F: call 0x47056190 */ /* not lifted */
   1475     RECOMP_FLAGS_IN();
   1476     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1477     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1478     esp = esp + 0xCu; /* 0x47008F84: add esp, 0xc */
   1479     _flag_k = FK_ADD;
   1480     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008F87: ret  */
   1481     RECOMP_REGS_OUT();
   1482 }
   1483 
   1484 void sub_47008F90(void) {
   1485     int _fpu_cmp = 0;
   1486     uint32_t _cf = 0;
   1487     int _df = 1;
   1488     uint32_t _flag_k = FK_NONE;
   1489     uint32_t _flag_a = 0, _flag_b = 0;
   1490     uint32_t _itail_tgt = 0;
   1491     RECOMP_REGS_LOCALS
   1492     RECOMP_ENTER(0x47008F90u);
   1493 
   1494 L_47008F90:
   1495     eax = MEM32(esp + 0x4); /* 0x47008F90: mov eax, dword ptr [esp + 4] */
   1496     PUSH32(esp, eax); /* 0x47008F94: push eax */
   1497     RECOMP_ICALL(0x47056140u); /* 0x47008F95: call 0x47056140 */ /* not lifted */
   1498     RECOMP_FLAGS_IN();
   1499     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1501     esp = esp + 4; /* 0x47008F9A: add esp, 4 */
   1502     _flag_k = FK_ADD;
   1503     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008F9D: ret  */
   1504     RECOMP_REGS_OUT();
   1505 }
   1506 
   1507 void sub_47008FA0(void) {
   1508     int _fpu_cmp = 0;
   1509     uint32_t _cf = 0;
   1510     int _df = 1;
   1511     uint32_t _flag_k = FK_NONE;
   1512     uint32_t _flag_a = 0, _flag_b = 0;
   1513     uint32_t _itail_tgt = 0;
   1514     RECOMP_REGS_LOCALS
   1515     RECOMP_ENTER(0x47008FA0u);
   1516 
   1517 L_47008FA0:
   1518     eax = MEM32(esp + 0x8); /* 0x47008FA0: mov eax, dword ptr [esp + 8] */
   1519     ecx = MEM32(esp + 0x4); /* 0x47008FA4: mov ecx, dword ptr [esp + 4] */
   1520     PUSH32(esp, eax); /* 0x47008FA8: push eax */
   1521     PUSH32(esp, ecx); /* 0x47008FA9: push ecx */
   1522     RECOMP_ICALL(0x47056110u); /* 0x47008FAA: call 0x47056110 */ /* not lifted */
   1523     RECOMP_FLAGS_IN();
   1524     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1525     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1526     esp = esp + 8; /* 0x47008FAF: add esp, 8 */
   1527     _flag_k = FK_ADD;
   1528     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008FB2: ret  */
   1529     RECOMP_REGS_OUT();
   1530 }
   1531 
   1532 void sub_47008FC0(void) {
   1533     int _fpu_cmp = 0;
   1534     uint32_t _cf = 0;
   1535     int _df = 1;
   1536     uint32_t _flag_k = FK_NONE;
   1537     uint32_t _flag_a = 0, _flag_b = 0;
   1538     uint32_t _itail_tgt = 0;
   1539     RECOMP_REGS_LOCALS
   1540     RECOMP_ENTER(0x47008FC0u);
   1541 
   1542 L_47008FC0:
   1543     eax = MEM32(esp + 0x8); /* 0x47008FC0: mov eax, dword ptr [esp + 8] */
   1544     ecx = MEM32(esp + 0x4); /* 0x47008FC4: mov ecx, dword ptr [esp + 4] */
   1545     PUSH32(esp, eax); /* 0x47008FC8: push eax */
   1546     PUSH32(esp, ecx); /* 0x47008FC9: push ecx */
   1547     RECOMP_ICALL(0x47004600u); /* 0x47008FCA: call 0x47004600 */ /* not lifted */
   1548     RECOMP_FLAGS_IN();
   1549     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1550     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1551     esp = esp + 8; /* 0x47008FCF: add esp, 8 */
   1552     _flag_k = FK_ADD;
   1553     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008FD2: ret  */
   1554     RECOMP_REGS_OUT();
   1555 }
   1556 
   1557 void sub_47008FE0(void) {
   1558     int _fpu_cmp = 0;
   1559     uint32_t _cf = 0;
   1560     int _df = 1;
   1561     uint32_t _flag_k = FK_NONE;
   1562     uint32_t _flag_a = 0, _flag_b = 0;
   1563     uint32_t _itail_tgt = 0;
   1564     RECOMP_REGS_LOCALS
   1565     RECOMP_ENTER(0x47008FE0u);
   1566 
   1567 L_47008FE0:
   1568     eax = MEM32(esp + 0x4); /* 0x47008FE0: mov eax, dword ptr [esp + 4] */
   1569     PUSH32(esp, eax); /* 0x47008FE4: push eax */
   1570     RECOMP_ICALL(0x470560F0u); /* 0x47008FE5: call 0x470560f0 */ /* not lifted */
   1571     RECOMP_FLAGS_IN();
   1572     ecx = POP32_VAL(esp); /* 0x47008FEA: pop ecx */
   1573     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008FEB: ret  */
   1574     RECOMP_REGS_OUT();
   1575 }
   1576 
   1577 void sub_47008FF0(void) {
   1578     int _fpu_cmp = 0;
   1579     uint32_t _cf = 0;
   1580     int _df = 1;
   1581     uint32_t _flag_k = FK_NONE;
   1582     uint32_t _flag_a = 0, _flag_b = 0;
   1583     uint32_t _itail_tgt = 0;
   1584     RECOMP_REGS_LOCALS
   1585     RECOMP_ENTER(0x47008FF0u);
   1586 
   1587 L_47008FF0:
   1588     PUSH32(esp, 0); /* 0x47008FF0: push 0 */
   1589     RECOMP_ICALL(MEM32(0x470AC12C)); /* 0x47008FF2: call dword ptr [0x470ac12c] */
   1590     RECOMP_FLAGS_IN();
   1591     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47008FF8: ret  */
   1592     RECOMP_REGS_OUT();
   1593 }
   1594 
   1595 void sub_47009000(void) {
   1596     int _fpu_cmp = 0;
   1597     uint32_t _cf = 0;
   1598     int _df = 1;
   1599     uint32_t _flag_k = FK_NONE;
   1600     uint32_t _flag_a = 0, _flag_b = 0;
   1601     uint32_t _itail_tgt = 0;
   1602     RECOMP_REGS_LOCALS
   1603     RECOMP_ENTER(0x47009000u);
   1604 
   1605 L_47009000:
   1606     eax = MEM32(esp + 0x24); /* 0x47009000: mov eax, dword ptr [esp + 0x24] */
   1607     ecx = MEM32(esp + 0x20); /* 0x47009004: mov ecx, dword ptr [esp + 0x20] */
   1608     edx = MEM32(esp + 0x1C); /* 0x47009008: mov edx, dword ptr [esp + 0x1c] */
   1609     PUSH32(esp, eax); /* 0x4700900C: push eax */
   1610     eax = MEM32(esp + 0x1C); /* 0x4700900D: mov eax, dword ptr [esp + 0x1c] */
   1611     PUSH32(esp, ecx); /* 0x47009011: push ecx */
   1612     ecx = MEM32(esp + 0x1C); /* 0x47009012: mov ecx, dword ptr [esp + 0x1c] */
   1613     PUSH32(esp, edx); /* 0x47009016: push edx */
   1614     edx = MEM32(esp + 0x1C); /* 0x47009017: mov edx, dword ptr [esp + 0x1c] */
   1615     PUSH32(esp, eax); /* 0x4700901B: push eax */
   1616     eax = MEM32(esp + 0x1C); /* 0x4700901C: mov eax, dword ptr [esp + 0x1c] */
   1617     PUSH32(esp, ecx); /* 0x47009020: push ecx */
   1618     ecx = MEM32(esp + 0x1C); /* 0x47009021: mov ecx, dword ptr [esp + 0x1c] */
   1619     PUSH32(esp, edx); /* 0x47009025: push edx */
   1620     edx = MEM32(esp + 0x1C); /* 0x47009026: mov edx, dword ptr [esp + 0x1c] */
   1621     PUSH32(esp, eax); /* 0x4700902A: push eax */
   1622     PUSH32(esp, ecx); /* 0x4700902B: push ecx */
   1623     PUSH32(esp, edx); /* 0x4700902C: push edx */
   1624     RECOMP_ICALL(0x47055E00u); /* 0x4700902D: call 0x47055e00 */ /* not lifted */
   1625     RECOMP_FLAGS_IN();
   1626     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   1627     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1628     esp = esp + 0x24u; /* 0x47009032: add esp, 0x24 */
   1629     _flag_k = FK_ADD;
   1630     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009035: ret  */
   1631     RECOMP_REGS_OUT();
   1632 }
   1633 
   1634 void sub_47009040(void) {
   1635     int _fpu_cmp = 0;
   1636     uint32_t _cf = 0;
   1637     int _df = 1;
   1638     uint32_t _flag_k = FK_NONE;
   1639     uint32_t _flag_a = 0, _flag_b = 0;
   1640     uint32_t _itail_tgt = 0;
   1641     RECOMP_REGS_LOCALS
   1642     RECOMP_ENTER(0x47009040u);
   1643 
   1644 L_47009040:
   1645     eax = MEM32(esp + 0x4); /* 0x47009040: mov eax, dword ptr [esp + 4] */
   1646 L_47009044:
   1647     PUSH32(esp, eax); /* 0x47009044: push eax */
   1648 L_47009045:
   1649     RECOMP_ICALL(MEM32(0x470AC13C)); /* 0x47009045: call dword ptr [0x470ac13c] */
   1650     RECOMP_FLAGS_IN();
   1651 L_4700904B:
   1652     /* cmp eax, 0xFFFFFFFFu */ /* 0x4700904B: cmp eax, -1 */
   1653     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1655     _flag_k = FK_CMP;
   1656 L_4700904E:
   1657     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470090B3; /* 0x4700904E: jne 0x470090b3 */
   1658 L_47009050:
   1659     PUSH32(esp, esi); /* 0x47009050: push esi */
   1660 L_47009051:
   1661     PUSH32(esp, edi); /* 0x47009051: push edi */
   1662 L_47009052:
   1663     edi = MEM32(0x470AC3C8); /* 0x47009052: mov edi, dword ptr [0x470ac3c8] */
   1664 L_47009058:
   1665     RECOMP_ICALL(edi); /* 0x47009058: call edi */
   1666     RECOMP_FLAGS_IN();
   1667 L_4700905A:
   1668     esi = eax; /* 0x4700905A: mov esi, eax */
   1669 L_4700905C:
   1670     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4700905C: call dword ptr [0x470ac150] */
   1671     RECOMP_FLAGS_IN();
   1672 L_47009062:
   1673     MEM32(esi) = eax; /* 0x47009062: mov dword ptr [esi], eax */
   1674 L_47009064:
   1675     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu);
   1676     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1677     eax = eax + 0xFFFFFFFDu; /* 0x47009064: add eax, -3 */
   1678     _flag_k = FK_ADD;
   1679 L_47009067:
   1680     /* cmp eax, 0x4Du */ /* 0x47009067: cmp eax, 0x4d */
   1681     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du);
   1682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1683     _flag_k = FK_CMP;
   1684 L_4700906A:
   1685     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_470090AD; /* 0x4700906A: ja 0x470090ad */
   1686 L_4700906C:
   1687     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1688     ecx = 0; /* 0x4700906C: xor ecx, ecx */
   1689     _cf = 0;
   1690     _flag_k = FK_TEST;
   1691 L_4700906E:
   1692     SET_LO8(ecx, MEM8(eax + 0x470090CC)); /* 0x4700906E: mov cl, byte ptr [eax + 0x470090cc] */
   1693 L_47009074:
   1694     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x470090B8)); goto _ljump; }
   1695 L_4700907B:
   1696     RECOMP_ICALL(edi); /* 0x4700907B: call edi */
   1697     RECOMP_FLAGS_IN();
   1698 L_4700907D:
   1699     edi = POP32_VAL(esp); /* 0x4700907D: pop edi */
   1700 L_4700907E:
   1701     MEM32(eax) = 0xCu; /* 0x4700907E: mov dword ptr [eax], 0xc */
   1702 L_47009084:
   1703     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1704     eax = eax | 0xFFFFFFFFu; /* 0x47009084: or eax, 0xffffffff */
   1705     _cf = 0;
   1706     _flag_k = FK_TEST;
   1707 L_47009087:
   1708     esi = POP32_VAL(esp); /* 0x47009087: pop esi */
   1709 L_47009088:
   1710     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009088: ret  */
   1711 L_47009089:
   1712     RECOMP_ICALL(edi); /* 0x47009089: call edi */
   1713     RECOMP_FLAGS_IN();
   1714 L_4700908B:
   1715     edi = POP32_VAL(esp); /* 0x4700908B: pop edi */
   1716 L_4700908C:
   1717     MEM32(eax) = 0x11u; /* 0x4700908C: mov dword ptr [eax], 0x11 */
   1718 L_47009092:
   1719     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1720     eax = eax | 0xFFFFFFFFu; /* 0x47009092: or eax, 0xffffffff */
   1721     _cf = 0;
   1722     _flag_k = FK_TEST;
   1723 L_47009095:
   1724     esi = POP32_VAL(esp); /* 0x47009095: pop esi */
   1725 L_47009096:
   1726     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009096: ret  */
   1727 L_47009097:
   1728     RECOMP_ICALL(edi); /* 0x47009097: call edi */
   1729     RECOMP_FLAGS_IN();
   1730 L_47009099:
   1731     edi = POP32_VAL(esp); /* 0x47009099: pop edi */
   1732 L_4700909A:
   1733     MEM32(eax) = 0xDu; /* 0x4700909A: mov dword ptr [eax], 0xd */
   1734 L_470090A0:
   1735     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1736     eax = eax | 0xFFFFFFFFu; /* 0x470090A0: or eax, 0xffffffff */
   1737     _cf = 0;
   1738     _flag_k = FK_TEST;
   1739 L_470090A3:
   1740     esi = POP32_VAL(esp); /* 0x470090A3: pop esi */
   1741 L_470090A4:
   1742     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470090A4: ret  */
   1743 L_470090A5:
   1744     RECOMP_ICALL(edi); /* 0x470090A5: call edi */
   1745     RECOMP_FLAGS_IN();
   1746 L_470090A7:
   1747     MEM32(eax) = 2; /* 0x470090A7: mov dword ptr [eax], 2 */
   1748 L_470090AD:
   1749     edi = POP32_VAL(esp); /* 0x470090AD: pop edi */
   1750 L_470090AE:
   1751     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1752     eax = eax | 0xFFFFFFFFu; /* 0x470090AE: or eax, 0xffffffff */
   1753     _cf = 0;
   1754     _flag_k = FK_TEST;
   1755 L_470090B1:
   1756     esi = POP32_VAL(esp); /* 0x470090B1: pop esi */
   1757 L_470090B2:
   1758     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470090B2: ret  */
   1759 L_470090B3:
   1760     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1761     eax = 0; /* 0x470090B3: xor eax, eax */
   1762     _cf = 0;
   1763     _flag_k = FK_TEST;
   1764 L_470090B5:
   1765     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470090B5: ret  */
   1766   _ljump:
   1767     switch (_itail_tgt) {
   1768       case 0x47009040u: goto L_47009040;
   1769       case 0x47009044u: goto L_47009044;
   1770       case 0x47009045u: goto L_47009045;
   1771       case 0x4700904Bu: goto L_4700904B;
   1772       case 0x4700904Eu: goto L_4700904E;
   1773       case 0x47009050u: goto L_47009050;
   1774       case 0x47009051u: goto L_47009051;
   1775       case 0x47009052u: goto L_47009052;
   1776       case 0x47009058u: goto L_47009058;
   1777       case 0x4700905Au: goto L_4700905A;
   1778       case 0x4700905Cu: goto L_4700905C;
   1779       case 0x47009062u: goto L_47009062;
   1780       case 0x47009064u: goto L_47009064;
   1781       case 0x47009067u: goto L_47009067;
   1782       case 0x4700906Au: goto L_4700906A;
   1783       case 0x4700906Cu: goto L_4700906C;
   1784       case 0x4700906Eu: goto L_4700906E;
   1785       case 0x47009074u: goto L_47009074;
   1786       case 0x4700907Bu: goto L_4700907B;
   1787       case 0x4700907Du: goto L_4700907D;
   1788       case 0x4700907Eu: goto L_4700907E;
   1789       case 0x47009084u: goto L_47009084;
   1790       case 0x47009087u: goto L_47009087;
   1791       case 0x47009088u: goto L_47009088;
   1792       case 0x47009089u: goto L_47009089;
   1793       case 0x4700908Bu: goto L_4700908B;
   1794       case 0x4700908Cu: goto L_4700908C;
   1795       case 0x47009092u: goto L_47009092;
   1796       case 0x47009095u: goto L_47009095;
   1797       case 0x47009096u: goto L_47009096;
   1798       case 0x47009097u: goto L_47009097;
   1799       case 0x47009099u: goto L_47009099;
   1800       case 0x4700909Au: goto L_4700909A;
   1801       case 0x470090A0u: goto L_470090A0;
   1802       case 0x470090A3u: goto L_470090A3;
   1803       case 0x470090A4u: goto L_470090A4;
   1804       case 0x470090A5u: goto L_470090A5;
   1805       case 0x470090A7u: goto L_470090A7;
   1806       case 0x470090ADu: goto L_470090AD;
   1807       case 0x470090AEu: goto L_470090AE;
   1808       case 0x470090B1u: goto L_470090B1;
   1809       case 0x470090B2u: goto L_470090B2;
   1810       case 0x470090B3u: goto L_470090B3;
   1811       case 0x470090B5u: goto L_470090B5;
   1812       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1813     }
   1814     RECOMP_REGS_OUT();
   1815 }
   1816 
   1817 void sub_47009120(void) {
   1818     int _fpu_cmp = 0;
   1819     uint32_t _cf = 0;
   1820     int _df = 1;
   1821     uint32_t _flag_k = FK_NONE;
   1822     uint32_t _flag_a = 0, _flag_b = 0;
   1823     uint32_t _itail_tgt = 0;
   1824     RECOMP_REGS_LOCALS
   1825     RECOMP_ENTER(0x47009120u);
   1826 
   1827 L_47009120:
   1828     eax = MEM32(esp + 0x4); /* 0x47009120: mov eax, dword ptr [esp + 4] */
   1829 L_47009124:
   1830     PUSH32(esp, eax); /* 0x47009124: push eax */
   1831 L_47009125:
   1832     RECOMP_ICALL(MEM32(0x470AC130)); /* 0x47009125: call dword ptr [0x470ac130] */
   1833     RECOMP_FLAGS_IN();
   1834 L_4700912B:
   1835     /* cmp eax, 0xFFFFFFFFu */ /* 0x4700912B: cmp eax, -1 */
   1836     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1838     _flag_k = FK_CMP;
   1839 L_4700912E:
   1840     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47009133; /* 0x4700912E: je 0x47009133 */
   1841 L_47009130:
   1842     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1843     eax = 0; /* 0x47009130: xor eax, eax */
   1844     _cf = 0;
   1845     _flag_k = FK_TEST;
   1846 L_47009132:
   1847     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009132: ret  */
   1848 L_47009133:
   1849     PUSH32(esp, esi); /* 0x47009133: push esi */
   1850 L_47009134:
   1851     PUSH32(esp, edi); /* 0x47009134: push edi */
   1852 L_47009135:
   1853     edi = MEM32(0x470AC3C8); /* 0x47009135: mov edi, dword ptr [0x470ac3c8] */
   1854 L_4700913B:
   1855     RECOMP_ICALL(edi); /* 0x4700913B: call edi */
   1856     RECOMP_FLAGS_IN();
   1857 L_4700913D:
   1858     esi = eax; /* 0x4700913D: mov esi, eax */
   1859 L_4700913F:
   1860     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4700913F: call dword ptr [0x470ac150] */
   1861     RECOMP_FLAGS_IN();
   1862 L_47009145:
   1863     MEM32(esi) = eax; /* 0x47009145: mov dword ptr [esi], eax */
   1864 L_47009147:
   1865     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu);
   1866     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1867     eax = eax + 0xFFFFFFFDu; /* 0x47009147: add eax, -3 */
   1868     _flag_k = FK_ADD;
   1869 L_4700914A:
   1870     /* cmp eax, 0x4Du */ /* 0x4700914A: cmp eax, 0x4d */
   1871     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du);
   1872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1873     _flag_k = FK_CMP;
   1874 L_4700914D:
   1875     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47009190; /* 0x4700914D: ja 0x47009190 */
   1876 L_4700914F:
   1877     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1878     ecx = 0; /* 0x4700914F: xor ecx, ecx */
   1879     _cf = 0;
   1880     _flag_k = FK_TEST;
   1881 L_47009151:
   1882     SET_LO8(ecx, MEM8(eax + 0x470091AC)); /* 0x47009151: mov cl, byte ptr [eax + 0x470091ac] */
   1883 L_47009157:
   1884     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47009198)); goto _ljump; }
   1885 L_4700915E:
   1886     RECOMP_ICALL(edi); /* 0x4700915E: call edi */
   1887     RECOMP_FLAGS_IN();
   1888 L_47009160:
   1889     edi = POP32_VAL(esp); /* 0x47009160: pop edi */
   1890 L_47009161:
   1891     MEM32(eax) = 0xCu; /* 0x47009161: mov dword ptr [eax], 0xc */
   1892 L_47009167:
   1893     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1894     eax = eax | 0xFFFFFFFFu; /* 0x47009167: or eax, 0xffffffff */
   1895     _cf = 0;
   1896     _flag_k = FK_TEST;
   1897 L_4700916A:
   1898     esi = POP32_VAL(esp); /* 0x4700916A: pop esi */
   1899 L_4700916B:
   1900     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700916B: ret  */
   1901 L_4700916C:
   1902     RECOMP_ICALL(edi); /* 0x4700916C: call edi */
   1903     RECOMP_FLAGS_IN();
   1904 L_4700916E:
   1905     edi = POP32_VAL(esp); /* 0x4700916E: pop edi */
   1906 L_4700916F:
   1907     MEM32(eax) = 0x11u; /* 0x4700916F: mov dword ptr [eax], 0x11 */
   1908 L_47009175:
   1909     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1910     eax = eax | 0xFFFFFFFFu; /* 0x47009175: or eax, 0xffffffff */
   1911     _cf = 0;
   1912     _flag_k = FK_TEST;
   1913 L_47009178:
   1914     esi = POP32_VAL(esp); /* 0x47009178: pop esi */
   1915 L_47009179:
   1916     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009179: ret  */
   1917 L_4700917A:
   1918     RECOMP_ICALL(edi); /* 0x4700917A: call edi */
   1919     RECOMP_FLAGS_IN();
   1920 L_4700917C:
   1921     edi = POP32_VAL(esp); /* 0x4700917C: pop edi */
   1922 L_4700917D:
   1923     MEM32(eax) = 0xDu; /* 0x4700917D: mov dword ptr [eax], 0xd */
   1924 L_47009183:
   1925     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1926     eax = eax | 0xFFFFFFFFu; /* 0x47009183: or eax, 0xffffffff */
   1927     _cf = 0;
   1928     _flag_k = FK_TEST;
   1929 L_47009186:
   1930     esi = POP32_VAL(esp); /* 0x47009186: pop esi */
   1931 L_47009187:
   1932     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009187: ret  */
   1933 L_47009188:
   1934     RECOMP_ICALL(edi); /* 0x47009188: call edi */
   1935     RECOMP_FLAGS_IN();
   1936 L_4700918A:
   1937     MEM32(eax) = 2; /* 0x4700918A: mov dword ptr [eax], 2 */
   1938 L_47009190:
   1939     edi = POP32_VAL(esp); /* 0x47009190: pop edi */
   1940 L_47009191:
   1941     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1942     eax = eax | 0xFFFFFFFFu; /* 0x47009191: or eax, 0xffffffff */
   1943     _cf = 0;
   1944     _flag_k = FK_TEST;
   1945 L_47009194:
   1946     esi = POP32_VAL(esp); /* 0x47009194: pop esi */
   1947 L_47009195:
   1948     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009195: ret  */
   1949   _ljump:
   1950     switch (_itail_tgt) {
   1951       case 0x47009120u: goto L_47009120;
   1952       case 0x47009124u: goto L_47009124;
   1953       case 0x47009125u: goto L_47009125;
   1954       case 0x4700912Bu: goto L_4700912B;
   1955       case 0x4700912Eu: goto L_4700912E;
   1956       case 0x47009130u: goto L_47009130;
   1957       case 0x47009132u: goto L_47009132;
   1958       case 0x47009133u: goto L_47009133;
   1959       case 0x47009134u: goto L_47009134;
   1960       case 0x47009135u: goto L_47009135;
   1961       case 0x4700913Bu: goto L_4700913B;
   1962       case 0x4700913Du: goto L_4700913D;
   1963       case 0x4700913Fu: goto L_4700913F;
   1964       case 0x47009145u: goto L_47009145;
   1965       case 0x47009147u: goto L_47009147;
   1966       case 0x4700914Au: goto L_4700914A;
   1967       case 0x4700914Du: goto L_4700914D;
   1968       case 0x4700914Fu: goto L_4700914F;
   1969       case 0x47009151u: goto L_47009151;
   1970       case 0x47009157u: goto L_47009157;
   1971       case 0x4700915Eu: goto L_4700915E;
   1972       case 0x47009160u: goto L_47009160;
   1973       case 0x47009161u: goto L_47009161;
   1974       case 0x47009167u: goto L_47009167;
   1975       case 0x4700916Au: goto L_4700916A;
   1976       case 0x4700916Bu: goto L_4700916B;
   1977       case 0x4700916Cu: goto L_4700916C;
   1978       case 0x4700916Eu: goto L_4700916E;
   1979       case 0x4700916Fu: goto L_4700916F;
   1980       case 0x47009175u: goto L_47009175;
   1981       case 0x47009178u: goto L_47009178;
   1982       case 0x47009179u: goto L_47009179;
   1983       case 0x4700917Au: goto L_4700917A;
   1984       case 0x4700917Cu: goto L_4700917C;
   1985       case 0x4700917Du: goto L_4700917D;
   1986       case 0x47009183u: goto L_47009183;
   1987       case 0x47009186u: goto L_47009186;
   1988       case 0x47009187u: goto L_47009187;
   1989       case 0x47009188u: goto L_47009188;
   1990       case 0x4700918Au: goto L_4700918A;
   1991       case 0x47009190u: goto L_47009190;
   1992       case 0x47009191u: goto L_47009191;
   1993       case 0x47009194u: goto L_47009194;
   1994       case 0x47009195u: goto L_47009195;
   1995       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1996     }
   1997     RECOMP_REGS_OUT();
   1998 }
   1999 
   2000 void sub_47009200(void) {
   2001     int _fpu_cmp = 0;
   2002     uint32_t _cf = 0;
   2003     int _df = 1;
   2004     uint32_t _flag_k = FK_NONE;
   2005     uint32_t _flag_a = 0, _flag_b = 0;
   2006     uint32_t _itail_tgt = 0;
   2007     RECOMP_REGS_LOCALS
   2008     RECOMP_ENTER(0x47009200u);
   2009 
   2010 L_47009200:
   2011     eax = MEM32(esp + 0x8); /* 0x47009200: mov eax, dword ptr [esp + 8] */
   2012 L_47009204:
   2013     /* test eax, eax */ /* 0x47009204: test eax, eax */
   2014     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2015     _cf = 0;
   2016     _flag_k = FK_TEST;
   2017 L_47009206:
   2018     PUSH32(esp, esi); /* 0x47009206: push esi */
   2019 L_47009207:
   2020     PUSH32(esp, edi); /* 0x47009207: push edi */
   2021 L_47009208:
   2022     edi = eax; /* 0x47009208: mov edi, eax */
   2023 L_4700920A:
   2024     MEM32(esp + 0x10) = 0; /* 0x4700920A: mov dword ptr [esp + 0x10], 0 */
   2025 L_47009212:
   2026     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47009218; /* 0x47009212: jne 0x47009218 */
   2027 L_47009214:
   2028     edi = esp + 0x10; /* 0x47009214: lea edi, [esp + 0x10] */
   2029 L_47009218:
   2030     esi = MEM32(esp + 0xC); /* 0x47009218: mov esi, dword ptr [esp + 0xc] */
   2031 L_4700921C:
   2032     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700921C: push -1 */
   2033 L_4700921E:
   2034     PUSH32(esp, esi); /* 0x4700921E: push esi */
   2035 L_4700921F:
   2036     RECOMP_ICALL(MEM32(0x470AC194)); /* 0x4700921F: call dword ptr [0x470ac194] */
   2037     RECOMP_FLAGS_IN();
   2038 L_47009225:
   2039     /* test eax, eax */ /* 0x47009225: test eax, eax */
   2040     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2041     _cf = 0;
   2042     _flag_k = FK_TEST;
   2043 L_47009227:
   2044     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47009241; /* 0x47009227: jne 0x47009241 */
   2045 L_47009229:
   2046     PUSH32(esp, edi); /* 0x47009229: push edi */
   2047 L_4700922A:
   2048     PUSH32(esp, esi); /* 0x4700922A: push esi */
   2049 L_4700922B:
   2050     RECOMP_ICALL(MEM32(0x470AC184)); /* 0x4700922B: call dword ptr [0x470ac184] */
   2051     RECOMP_FLAGS_IN();
   2052 L_47009231:
   2053     /* test eax, eax */ /* 0x47009231: test eax, eax */
   2054     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2055     _cf = 0;
   2056     _flag_k = FK_TEST;
   2057 L_47009233:
   2058     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47009241; /* 0x47009233: je 0x47009241 */
   2059 L_47009235:
   2060     PUSH32(esp, esi); /* 0x47009235: push esi */
   2061 L_47009236:
   2062     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47009236: call dword ptr [0x470ac198] */
   2063     RECOMP_FLAGS_IN();
   2064 L_4700923C:
   2065     edi = POP32_VAL(esp); /* 0x4700923C: pop edi */
   2066 L_4700923D:
   2067     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2068     eax = 0; /* 0x4700923D: xor eax, eax */
   2069     _cf = 0;
   2070     _flag_k = FK_TEST;
   2071 L_4700923F:
   2072     esi = POP32_VAL(esp); /* 0x4700923F: pop esi */
   2073 L_47009240:
   2074     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009240: ret  */
   2075 L_47009241:
   2076     edi = MEM32(0x470AC3C8); /* 0x47009241: mov edi, dword ptr [0x470ac3c8] */
   2077 L_47009247:
   2078     RECOMP_ICALL(edi); /* 0x47009247: call edi */
   2079     RECOMP_FLAGS_IN();
   2080 L_47009249:
   2081     esi = eax; /* 0x47009249: mov esi, eax */
   2082 L_4700924B:
   2083     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4700924B: call dword ptr [0x470ac150] */
   2084     RECOMP_FLAGS_IN();
   2085 L_47009251:
   2086     MEM32(esi) = eax; /* 0x47009251: mov dword ptr [esi], eax */
   2087 L_47009253:
   2088     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu);
   2089     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2090     eax = eax + 0xFFFFFFFDu; /* 0x47009253: add eax, -3 */
   2091     _flag_k = FK_ADD;
   2092 L_47009256:
   2093     /* cmp eax, 0x4Du */ /* 0x47009256: cmp eax, 0x4d */
   2094     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du);
   2095     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2096     _flag_k = FK_CMP;
   2097 L_47009259:
   2098     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_4700929C; /* 0x47009259: ja 0x4700929c */
   2099 L_4700925B:
   2100     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2101     ecx = 0; /* 0x4700925B: xor ecx, ecx */
   2102     _cf = 0;
   2103     _flag_k = FK_TEST;
   2104 L_4700925D:
   2105     SET_LO8(ecx, MEM8(eax + 0x470092B8)); /* 0x4700925D: mov cl, byte ptr [eax + 0x470092b8] */
   2106 L_47009263:
   2107     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x470092A4)); goto _ljump; }
   2108 L_4700926A:
   2109     RECOMP_ICALL(edi); /* 0x4700926A: call edi */
   2110     RECOMP_FLAGS_IN();
   2111 L_4700926C:
   2112     edi = POP32_VAL(esp); /* 0x4700926C: pop edi */
   2113 L_4700926D:
   2114     MEM32(eax) = 0xCu; /* 0x4700926D: mov dword ptr [eax], 0xc */
   2115 L_47009273:
   2116     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2117     eax = eax | 0xFFFFFFFFu; /* 0x47009273: or eax, 0xffffffff */
   2118     _cf = 0;
   2119     _flag_k = FK_TEST;
   2120 L_47009276:
   2121     esi = POP32_VAL(esp); /* 0x47009276: pop esi */
   2122 L_47009277:
   2123     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009277: ret  */
   2124 L_47009278:
   2125     RECOMP_ICALL(edi); /* 0x47009278: call edi */
   2126     RECOMP_FLAGS_IN();
   2127 L_4700927A:
   2128     edi = POP32_VAL(esp); /* 0x4700927A: pop edi */
   2129 L_4700927B:
   2130     MEM32(eax) = 0x11u; /* 0x4700927B: mov dword ptr [eax], 0x11 */
   2131 L_47009281:
   2132     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2133     eax = eax | 0xFFFFFFFFu; /* 0x47009281: or eax, 0xffffffff */
   2134     _cf = 0;
   2135     _flag_k = FK_TEST;
   2136 L_47009284:
   2137     esi = POP32_VAL(esp); /* 0x47009284: pop esi */
   2138 L_47009285:
   2139     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009285: ret  */
   2140 L_47009286:
   2141     RECOMP_ICALL(edi); /* 0x47009286: call edi */
   2142     RECOMP_FLAGS_IN();
   2143 L_47009288:
   2144     edi = POP32_VAL(esp); /* 0x47009288: pop edi */
   2145 L_47009289:
   2146     MEM32(eax) = 0xDu; /* 0x47009289: mov dword ptr [eax], 0xd */
   2147 L_4700928F:
   2148     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2149     eax = eax | 0xFFFFFFFFu; /* 0x4700928F: or eax, 0xffffffff */
   2150     _cf = 0;
   2151     _flag_k = FK_TEST;
   2152 L_47009292:
   2153     esi = POP32_VAL(esp); /* 0x47009292: pop esi */
   2154 L_47009293:
   2155     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009293: ret  */
   2156 L_47009294:
   2157     RECOMP_ICALL(edi); /* 0x47009294: call edi */
   2158     RECOMP_FLAGS_IN();
   2159 L_47009296:
   2160     MEM32(eax) = 2; /* 0x47009296: mov dword ptr [eax], 2 */
   2161 L_4700929C:
   2162     edi = POP32_VAL(esp); /* 0x4700929C: pop edi */
   2163 L_4700929D:
   2164     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2165     eax = eax | 0xFFFFFFFFu; /* 0x4700929D: or eax, 0xffffffff */
   2166     _cf = 0;
   2167     _flag_k = FK_TEST;
   2168 L_470092A0:
   2169     esi = POP32_VAL(esp); /* 0x470092A0: pop esi */
   2170 L_470092A1:
   2171     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470092A1: ret  */
   2172   _ljump:
   2173     switch (_itail_tgt) {
   2174       case 0x47009200u: goto L_47009200;
   2175       case 0x47009204u: goto L_47009204;
   2176       case 0x47009206u: goto L_47009206;
   2177       case 0x47009207u: goto L_47009207;
   2178       case 0x47009208u: goto L_47009208;
   2179       case 0x4700920Au: goto L_4700920A;
   2180       case 0x47009212u: goto L_47009212;
   2181       case 0x47009214u: goto L_47009214;
   2182       case 0x47009218u: goto L_47009218;
   2183       case 0x4700921Cu: goto L_4700921C;
   2184       case 0x4700921Eu: goto L_4700921E;
   2185       case 0x4700921Fu: goto L_4700921F;
   2186       case 0x47009225u: goto L_47009225;
   2187       case 0x47009227u: goto L_47009227;
   2188       case 0x47009229u: goto L_47009229;
   2189       case 0x4700922Au: goto L_4700922A;
   2190       case 0x4700922Bu: goto L_4700922B;
   2191       case 0x47009231u: goto L_47009231;
   2192       case 0x47009233u: goto L_47009233;
   2193       case 0x47009235u: goto L_47009235;
   2194       case 0x47009236u: goto L_47009236;
   2195       case 0x4700923Cu: goto L_4700923C;
   2196       case 0x4700923Du: goto L_4700923D;
   2197       case 0x4700923Fu: goto L_4700923F;
   2198       case 0x47009240u: goto L_47009240;
   2199       case 0x47009241u: goto L_47009241;
   2200       case 0x47009247u: goto L_47009247;
   2201       case 0x47009249u: goto L_47009249;
   2202       case 0x4700924Bu: goto L_4700924B;
   2203       case 0x47009251u: goto L_47009251;
   2204       case 0x47009253u: goto L_47009253;
   2205       case 0x47009256u: goto L_47009256;
   2206       case 0x47009259u: goto L_47009259;
   2207       case 0x4700925Bu: goto L_4700925B;
   2208       case 0x4700925Du: goto L_4700925D;
   2209       case 0x47009263u: goto L_47009263;
   2210       case 0x4700926Au: goto L_4700926A;
   2211       case 0x4700926Cu: goto L_4700926C;
   2212       case 0x4700926Du: goto L_4700926D;
   2213       case 0x47009273u: goto L_47009273;
   2214       case 0x47009276u: goto L_47009276;
   2215       case 0x47009277u: goto L_47009277;
   2216       case 0x47009278u: goto L_47009278;
   2217       case 0x4700927Au: goto L_4700927A;
   2218       case 0x4700927Bu: goto L_4700927B;
   2219       case 0x47009281u: goto L_47009281;
   2220       case 0x47009284u: goto L_47009284;
   2221       case 0x47009285u: goto L_47009285;
   2222       case 0x47009286u: goto L_47009286;
   2223       case 0x47009288u: goto L_47009288;
   2224       case 0x47009289u: goto L_47009289;
   2225       case 0x4700928Fu: goto L_4700928F;
   2226       case 0x47009292u: goto L_47009292;
   2227       case 0x47009293u: goto L_47009293;
   2228       case 0x47009294u: goto L_47009294;
   2229       case 0x47009296u: goto L_47009296;
   2230       case 0x4700929Cu: goto L_4700929C;
   2231       case 0x4700929Du: goto L_4700929D;
   2232       case 0x470092A0u: goto L_470092A0;
   2233       case 0x470092A1u: goto L_470092A1;
   2234       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2235     }
   2236     RECOMP_REGS_OUT();
   2237 }
   2238 
   2239 void sub_47009310(void) {
   2240     int _fpu_cmp = 0;
   2241     uint32_t _cf = 0;
   2242     int _df = 1;
   2243     uint32_t _flag_k = FK_NONE;
   2244     uint32_t _flag_a = 0, _flag_b = 0;
   2245     uint32_t _itail_tgt = 0;
   2246     RECOMP_REGS_LOCALS
   2247     RECOMP_ENTER(0x47009310u);
   2248 
   2249 L_47009310:
   2250     PUSH32(esp, esi); /* 0x47009310: push esi */
   2251     esi = MEM32(esp + 0x8); /* 0x47009311: mov esi, dword ptr [esp + 8] */
   2252     /* cmp MEM32(esi), 0 */ /* 0x47009315: cmp dword ptr [esi], 0 */
   2253     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0);
   2254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2255     _flag_k = FK_CMP;
   2256     PUSH32(esp, edi); /* 0x47009318: push edi */
   2257     edi = MEM32(0x470AC3C8); /* 0x47009319: mov edi, dword ptr [0x470ac3c8] */
   2258     if (CMP_EQ(_flag_a, _flag_b)) goto L_47009329; /* 0x4700931F: je 0x47009329 */
   2259 L_47009321:
   2260     RECOMP_ICALL(edi); /* 0x47009321: call edi */
   2261     RECOMP_FLAGS_IN();
   2262     MEM32(eax) = 0x28u; /* 0x47009323: mov dword ptr [eax], 0x28 */
   2263 L_47009329:
   2264     eax = MEM32(esi + 0x4); /* 0x47009329: mov eax, dword ptr [esi + 4] */
   2265     /* test eax, eax */ /* 0x4700932C: test eax, eax */
   2266     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2267     _cf = 0;
   2268     _flag_k = FK_TEST;
   2269     if (TEST_Z(_flag_a, _flag_b)) goto L_47009338; /* 0x4700932E: je 0x47009338 */
   2270 L_47009330:
   2271     RECOMP_ICALL(edi); /* 0x47009330: call edi */
   2272     RECOMP_FLAGS_IN();
   2273     MEM32(eax) = 0x28u; /* 0x47009332: mov dword ptr [eax], 0x28 */
   2274 L_47009338:
   2275     eax = MEM32(esp + 0x10); /* 0x47009338: mov eax, dword ptr [esp + 0x10] */
   2276     /* test eax, eax */ /* 0x4700933C: test eax, eax */
   2277     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2278     _cf = 0;
   2279     _flag_k = FK_TEST;
   2280     edi = POP32_VAL(esp); /* 0x4700933E: pop edi */
   2281     esi = POP32_VAL(esp); /* 0x4700933F: pop esi */
   2282     if (TEST_Z(_flag_a, _flag_b)) goto L_4700934F; /* 0x47009340: je 0x4700934f */
   2283 L_47009342:
   2284     MEM32(eax) = 0; /* 0x47009342: mov dword ptr [eax], 0 */
   2285     MEM32(eax + 0x4) = 0; /* 0x47009348: mov dword ptr [eax + 4], 0 */
   2286 L_4700934F:
   2287     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2288     eax = 0; /* 0x4700934F: xor eax, eax */
   2289     _cf = 0;
   2290     _flag_k = FK_TEST;
   2291     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009351: ret  */
   2292     RECOMP_REGS_OUT();
   2293 }
   2294 
   2295 void sub_47009360(void) {
   2296     int _fpu_cmp = 0;
   2297     uint32_t _cf = 0;
   2298     int _df = 1;
   2299     uint32_t _flag_k = FK_NONE;
   2300     uint32_t _flag_a = 0, _flag_b = 0;
   2301     uint32_t _itail_tgt = 0;
   2302     RECOMP_REGS_LOCALS
   2303     RECOMP_ENTER(0x47009360u);
   2304 
   2305 L_47009360:
   2306     RECOMP_ICALL(MEM32(0x470AC188)); /* 0x47009360: call dword ptr [0x470ac188] */
   2307     RECOMP_FLAGS_IN();
   2308     ecx = MEM32(esp + 0x4); /* 0x47009366: mov ecx, dword ptr [esp + 4] */
   2309     MEM32(ecx) = eax; /* 0x4700936A: mov dword ptr [ecx], eax */
   2310     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700936C: ret  */
   2311     RECOMP_REGS_OUT();
   2312 }
   2313 
   2314 void sub_47009370(void) {
   2315     int _fpu_cmp = 0;
   2316     uint32_t _cf = 0;
   2317     int _df = 1;
   2318     uint32_t _flag_k = FK_NONE;
   2319     uint32_t _flag_a = 0, _flag_b = 0;
   2320     uint32_t _itail_tgt = 0;
   2321     RECOMP_REGS_LOCALS
   2322     RECOMP_ENTER(0x47009370u);
   2323 
   2324 L_47009370:
   2325     eax = MEM32(esp + 0x4); /* 0x47009370: mov eax, dword ptr [esp + 4] */
   2326 L_47009374:
   2327     PUSH32(esp, eax); /* 0x47009374: push eax */
   2328 L_47009375:
   2329     RECOMP_ICALL(MEM32(0x470AC148)); /* 0x47009375: call dword ptr [0x470ac148] */
   2330     RECOMP_FLAGS_IN();
   2331 L_4700937B:
   2332     /* cmp eax, 0x7FFFFFFFu */ /* 0x4700937B: cmp eax, 0x7fffffff */
   2333     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFFFFFu);
   2334     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2335     _flag_k = FK_CMP;
   2336 L_47009380:
   2337     ecx = MEM32(esp + 0x8); /* 0x47009380: mov ecx, dword ptr [esp + 8] */
   2338 L_47009384:
   2339     MEM32(ecx) = eax; /* 0x47009384: mov dword ptr [ecx], eax */
   2340 L_47009386:
   2341     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470093EB; /* 0x47009386: jne 0x470093eb */
   2342 L_47009388:
   2343     PUSH32(esp, esi); /* 0x47009388: push esi */
   2344 L_47009389:
   2345     PUSH32(esp, edi); /* 0x47009389: push edi */
   2346 L_4700938A:
   2347     edi = MEM32(0x470AC3C8); /* 0x4700938A: mov edi, dword ptr [0x470ac3c8] */
   2348 L_47009390:
   2349     RECOMP_ICALL(edi); /* 0x47009390: call edi */
   2350     RECOMP_FLAGS_IN();
   2351 L_47009392:
   2352     esi = eax; /* 0x47009392: mov esi, eax */
   2353 L_47009394:
   2354     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47009394: call dword ptr [0x470ac150] */
   2355     RECOMP_FLAGS_IN();
   2356 L_4700939A:
   2357     MEM32(esi) = eax; /* 0x4700939A: mov dword ptr [esi], eax */
   2358 L_4700939C:
   2359     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu);
   2360     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2361     eax = eax + 0xFFFFFFFDu; /* 0x4700939C: add eax, -3 */
   2362     _flag_k = FK_ADD;
   2363 L_4700939F:
   2364     /* cmp eax, 0x4Du */ /* 0x4700939F: cmp eax, 0x4d */
   2365     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du);
   2366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2367     _flag_k = FK_CMP;
   2368 L_470093A2:
   2369     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_470093E5; /* 0x470093A2: ja 0x470093e5 */
   2370 L_470093A4:
   2371     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2372     edx = 0; /* 0x470093A4: xor edx, edx */
   2373     _cf = 0;
   2374     _flag_k = FK_TEST;
   2375 L_470093A6:
   2376     SET_LO8(edx, MEM8(eax + 0x47009404)); /* 0x470093A6: mov dl, byte ptr [eax + 0x47009404] */
   2377 L_470093AC:
   2378     { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x470093F0)); goto _ljump; }
   2379 L_470093B3:
   2380     RECOMP_ICALL(edi); /* 0x470093B3: call edi */
   2381     RECOMP_FLAGS_IN();
   2382 L_470093B5:
   2383     edi = POP32_VAL(esp); /* 0x470093B5: pop edi */
   2384 L_470093B6:
   2385     MEM32(eax) = 0xCu; /* 0x470093B6: mov dword ptr [eax], 0xc */
   2386 L_470093BC:
   2387     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2388     eax = eax | 0xFFFFFFFFu; /* 0x470093BC: or eax, 0xffffffff */
   2389     _cf = 0;
   2390     _flag_k = FK_TEST;
   2391 L_470093BF:
   2392     esi = POP32_VAL(esp); /* 0x470093BF: pop esi */
   2393 L_470093C0:
   2394     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470093C0: ret  */
   2395 L_470093C1:
   2396     RECOMP_ICALL(edi); /* 0x470093C1: call edi */
   2397     RECOMP_FLAGS_IN();
   2398 L_470093C3:
   2399     edi = POP32_VAL(esp); /* 0x470093C3: pop edi */
   2400 L_470093C4:
   2401     MEM32(eax) = 0x11u; /* 0x470093C4: mov dword ptr [eax], 0x11 */
   2402 L_470093CA:
   2403     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2404     eax = eax | 0xFFFFFFFFu; /* 0x470093CA: or eax, 0xffffffff */
   2405     _cf = 0;
   2406     _flag_k = FK_TEST;
   2407 L_470093CD:
   2408     esi = POP32_VAL(esp); /* 0x470093CD: pop esi */
   2409 L_470093CE:
   2410     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470093CE: ret  */
   2411 L_470093CF:
   2412     RECOMP_ICALL(edi); /* 0x470093CF: call edi */
   2413     RECOMP_FLAGS_IN();
   2414 L_470093D1:
   2415     edi = POP32_VAL(esp); /* 0x470093D1: pop edi */
   2416 L_470093D2:
   2417     MEM32(eax) = 0xDu; /* 0x470093D2: mov dword ptr [eax], 0xd */
   2418 L_470093D8:
   2419     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2420     eax = eax | 0xFFFFFFFFu; /* 0x470093D8: or eax, 0xffffffff */
   2421     _cf = 0;
   2422     _flag_k = FK_TEST;
   2423 L_470093DB:
   2424     esi = POP32_VAL(esp); /* 0x470093DB: pop esi */
   2425 L_470093DC:
   2426     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470093DC: ret  */
   2427 L_470093DD:
   2428     RECOMP_ICALL(edi); /* 0x470093DD: call edi */
   2429     RECOMP_FLAGS_IN();
   2430 L_470093DF:
   2431     MEM32(eax) = 2; /* 0x470093DF: mov dword ptr [eax], 2 */
   2432 L_470093E5:
   2433     edi = POP32_VAL(esp); /* 0x470093E5: pop edi */
   2434 L_470093E6:
   2435     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2436     eax = eax | 0xFFFFFFFFu; /* 0x470093E6: or eax, 0xffffffff */
   2437     _cf = 0;
   2438     _flag_k = FK_TEST;
   2439 L_470093E9:
   2440     esi = POP32_VAL(esp); /* 0x470093E9: pop esi */
   2441 L_470093EA:
   2442     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470093EA: ret  */
   2443 L_470093EB:
   2444     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2445     eax = 0; /* 0x470093EB: xor eax, eax */
   2446     _cf = 0;
   2447     _flag_k = FK_TEST;
   2448 L_470093ED:
   2449     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470093ED: ret  */
   2450   _ljump:
   2451     switch (_itail_tgt) {
   2452       case 0x47009370u: goto L_47009370;
   2453       case 0x47009374u: goto L_47009374;
   2454       case 0x47009375u: goto L_47009375;
   2455       case 0x4700937Bu: goto L_4700937B;
   2456       case 0x47009380u: goto L_47009380;
   2457       case 0x47009384u: goto L_47009384;
   2458       case 0x47009386u: goto L_47009386;
   2459       case 0x47009388u: goto L_47009388;
   2460       case 0x47009389u: goto L_47009389;
   2461       case 0x4700938Au: goto L_4700938A;
   2462       case 0x47009390u: goto L_47009390;
   2463       case 0x47009392u: goto L_47009392;
   2464       case 0x47009394u: goto L_47009394;
   2465       case 0x4700939Au: goto L_4700939A;
   2466       case 0x4700939Cu: goto L_4700939C;
   2467       case 0x4700939Fu: goto L_4700939F;
   2468       case 0x470093A2u: goto L_470093A2;
   2469       case 0x470093A4u: goto L_470093A4;
   2470       case 0x470093A6u: goto L_470093A6;
   2471       case 0x470093ACu: goto L_470093AC;
   2472       case 0x470093B3u: goto L_470093B3;
   2473       case 0x470093B5u: goto L_470093B5;
   2474       case 0x470093B6u: goto L_470093B6;
   2475       case 0x470093BCu: goto L_470093BC;
   2476       case 0x470093BFu: goto L_470093BF;
   2477       case 0x470093C0u: goto L_470093C0;
   2478       case 0x470093C1u: goto L_470093C1;
   2479       case 0x470093C3u: goto L_470093C3;
   2480       case 0x470093C4u: goto L_470093C4;
   2481       case 0x470093CAu: goto L_470093CA;
   2482       case 0x470093CDu: goto L_470093CD;
   2483       case 0x470093CEu: goto L_470093CE;
   2484       case 0x470093CFu: goto L_470093CF;
   2485       case 0x470093D1u: goto L_470093D1;
   2486       case 0x470093D2u: goto L_470093D2;
   2487       case 0x470093D8u: goto L_470093D8;
   2488       case 0x470093DBu: goto L_470093DB;
   2489       case 0x470093DCu: goto L_470093DC;
   2490       case 0x470093DDu: goto L_470093DD;
   2491       case 0x470093DFu: goto L_470093DF;
   2492       case 0x470093E5u: goto L_470093E5;
   2493       case 0x470093E6u: goto L_470093E6;
   2494       case 0x470093E9u: goto L_470093E9;
   2495       case 0x470093EAu: goto L_470093EA;
   2496       case 0x470093EBu: goto L_470093EB;
   2497       case 0x470093EDu: goto L_470093ED;
   2498       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2499     }
   2500     RECOMP_REGS_OUT();
   2501 }
   2502 
   2503 void sub_47009460(void) {
   2504     int _fpu_cmp = 0;
   2505     uint32_t _cf = 0;
   2506     int _df = 1;
   2507     uint32_t _flag_k = FK_NONE;
   2508     uint32_t _flag_a = 0, _flag_b = 0;
   2509     uint32_t _itail_tgt = 0;
   2510     RECOMP_REGS_LOCALS
   2511     RECOMP_ENTER(0x47009460u);
   2512 
   2513 L_47009460:
   2514     MEM32(0x4710DC90) = 0x47104A3Cu; /* 0x47009460: mov dword ptr [0x4710dc90], 0x47104a3c */
   2515     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700946A: ret  */
   2516     RECOMP_REGS_OUT();
   2517 }
   2518 
   2519 void sub_47009470(void) {
   2520     int _fpu_cmp = 0;
   2521     uint32_t _cf = 0;
   2522     int _df = 1;
   2523     uint32_t _flag_k = FK_NONE;
   2524     uint32_t _flag_a = 0, _flag_b = 0;
   2525     uint32_t _itail_tgt = 0;
   2526     RECOMP_REGS_LOCALS
   2527     RECOMP_ENTER(0x47009470u);
   2528 
   2529 L_47009470:
   2530     MEM32(0x4710DC9C) = 0x47104A70u; /* 0x47009470: mov dword ptr [0x4710dc9c], 0x47104a70 */
   2531     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700947A: ret  */
   2532     RECOMP_REGS_OUT();
   2533 }
   2534 
   2535 void sub_47009480(void) {
   2536     int _fpu_cmp = 0;
   2537     uint32_t _cf = 0;
   2538     int _df = 1;
   2539     uint32_t _flag_k = FK_NONE;
   2540     uint32_t _flag_a = 0, _flag_b = 0;
   2541     uint32_t _itail_tgt = 0;
   2542     RECOMP_REGS_LOCALS
   2543     RECOMP_ENTER(0x47009480u);
   2544 
   2545 L_47009480:
   2546     PUSH32(esp, esi); /* 0x47009480: push esi */
   2547     esi = ecx; /* 0x47009481: mov esi, ecx */
   2548     ecx = esi + 0x110; /* 0x47009483: lea ecx, [esi + 0x110] */
   2549     RECOMP_ICALL(0x47093220u); /* 0x47009489: call 0x47093220 */ /* not lifted */
   2550     RECOMP_FLAGS_IN();
   2551     eax = esi; /* 0x4700948E: mov eax, esi */
   2552     esi = POP32_VAL(esp); /* 0x47009490: pop esi */
   2553     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009491: ret  */
   2554     RECOMP_REGS_OUT();
   2555 }
   2556 
   2557 void sub_470094A0(void) {
   2558     int _fpu_cmp = 0;
   2559     uint32_t _cf = 0;
   2560     int _df = 1;
   2561     uint32_t _flag_k = FK_NONE;
   2562     uint32_t _flag_a = 0, _flag_b = 0;
   2563     uint32_t _itail_tgt = 0;
   2564     RECOMP_REGS_LOCALS
   2565     RECOMP_ENTER(0x470094A0u);
   2566 
   2567 L_470094A0:
   2568     PUSH32(esp, esi); /* 0x470094A0: push esi */
   2569     esi = MEM32(esp + 0x8); /* 0x470094A1: mov esi, dword ptr [esp + 8] */
   2570     PUSH32(esp, edi); /* 0x470094A5: push edi */
   2571     eax = ecx; /* 0x470094A6: mov eax, ecx */
   2572     ecx = 0x47u; /* 0x470094A8: mov ecx, 0x47 */
   2573     edi = eax; /* 0x470094AD: mov edi, eax */
   2574     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470094AF: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   2575     edi = POP32_VAL(esp); /* 0x470094B1: pop edi */
   2576     esi = POP32_VAL(esp); /* 0x470094B2: pop esi */
   2577     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470094B3: ret 4 */
   2578     RECOMP_REGS_OUT();
   2579 }
   2580 
   2581 void sub_470094C0(void) {
   2582     int _fpu_cmp = 0;
   2583     uint32_t _cf = 0;
   2584     int _df = 1;
   2585     uint32_t _flag_k = FK_NONE;
   2586     uint32_t _flag_a = 0, _flag_b = 0;
   2587     uint32_t _itail_tgt = 0;
   2588     RECOMP_REGS_LOCALS
   2589     RECOMP_ENTER(0x470094C0u);
   2590 
   2591 L_470094C0:
   2592     PUSH32(esp, ecx); /* 0x470094C0: push ecx */
   2593     eax = ecx; /* 0x470094C1: mov eax, ecx */
   2594     ecx = 0x47104B10u; /* 0x470094C3: mov ecx, 0x47104b10 */
   2595     /* test ecx, ecx */ /* 0x470094C8: test ecx, ecx */
   2596     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2597     _cf = 0;
   2598     _flag_k = FK_TEST;
   2599     MEM32(esp) = eax; /* 0x470094CA: mov dword ptr [esp], eax */
   2600     if (TEST_Z(_flag_a, _flag_b)) goto L_4700959E; /* 0x470094CE: je 0x4700959e */
   2601 L_470094D4:
   2602     PUSH32(esp, ebx); /* 0x470094D4: push ebx */
   2603     ebx = MEM32(0x470AC150); /* 0x470094D5: mov ebx, dword ptr [0x470ac150] */
   2604     PUSH32(esp, ebp); /* 0x470094DB: push ebp */
   2605     PUSH32(esp, esi); /* 0x470094DC: push esi */
   2606     PUSH32(esp, edi); /* 0x470094DD: push edi */
   2607     RECOMP_ICALL(ebx); /* 0x470094DE: call ebx */
   2608     RECOMP_FLAGS_IN();
   2609     ebp = MEM32(0x470AC3C8); /* 0x470094E0: mov ebp, dword ptr [0x470ac3c8] */
   2610     edi = eax; /* 0x470094E6: mov edi, eax */
   2611     RECOMP_ICALL(ebp); /* 0x470094E8: call ebp */
   2612     RECOMP_FLAGS_IN();
   2613     eax = MEM32(eax); /* 0x470094EA: mov eax, dword ptr [eax] */
   2614     /* test eax, eax */ /* 0x470094EC: test eax, eax */
   2615     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2616     _cf = 0;
   2617     _flag_k = FK_TEST;
   2618     if (TEST_Z(_flag_a, _flag_b)) goto L_470094F2; /* 0x470094EE: je 0x470094f2 */
   2619 L_470094F0:
   2620     edi = eax; /* 0x470094F0: mov edi, eax */
   2621 L_470094F2:
   2622     RECOMP_ICALL(0x47039020u); /* 0x470094F2: call 0x47039020 */ /* not lifted */
   2623     RECOMP_FLAGS_IN();
   2624     esi = eax; /* 0x470094F7: mov esi, eax */
   2625     ecx = esi; /* 0x470094F9: mov ecx, esi */
   2626     RECOMP_ICALL(0x4703B210u); /* 0x470094FB: call 0x4703b210 */ /* not lifted */
   2627     RECOMP_FLAGS_IN();
   2628     PUSH32(esp, eax); /* 0x47009500: push eax */
   2629     ecx = esi; /* 0x47009501: mov ecx, esi */
   2630     RECOMP_ICALL(0x4703B240u); /* 0x47009503: call 0x4703b240 */ /* not lifted */
   2631     RECOMP_FLAGS_IN();
   2632     PUSH32(esp, eax); /* 0x47009508: push eax */
   2633     ecx = esi; /* 0x47009509: mov ecx, esi */
   2634     RECOMP_ICALL(0x4703B080u); /* 0x4700950B: call 0x4703b080 */ /* not lifted */
   2635     RECOMP_FLAGS_IN();
   2636     PUSH32(esp, eax); /* 0x47009510: push eax */
   2637     PUSH32(esp, edi); /* 0x47009511: push edi */
   2638     PUSH32(esp, 0xFFFFFFFFu); /* 0x47009512: push -1 */
   2639     PUSH32(esp, 0x67u); /* 0x47009514: push 0x67 */
   2640     PUSH32(esp, 0x47104AF4u); /* 0x47009516: push 0x47104af4 */
   2641     ecx = esi; /* 0x4700951B: mov ecx, esi */
   2642     RECOMP_ICALL(0x4703A340u); /* 0x4700951D: call 0x4703a340 */ /* not lifted */
   2643     RECOMP_FLAGS_IN();
   2644     PUSH32(esp, 0xFFFFFFFFu); /* 0x47009522: push -1 */
   2645     PUSH32(esp, 0x47104AE0u); /* 0x47009524: push 0x47104ae0 */
   2646     PUSH32(esp, 0x47104AA4u); /* 0x47009529: push 0x47104aa4 */
   2647     PUSH32(esp, 0x80u); /* 0x4700952E: push 0x80 */
   2648     PUSH32(esp, esi); /* 0x47009533: push esi */
   2649     RECOMP_ICALL(0x47039830u); /* 0x47009534: call 0x47039830 */ /* not lifted */
   2650     RECOMP_FLAGS_IN();
   2651     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2652     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2653     esp = esp + 0x14u; /* 0x47009539: add esp, 0x14 */
   2654     _flag_k = FK_ADD;
   2655     RECOMP_ICALL(ebx); /* 0x4700953C: call ebx */
   2656     RECOMP_FLAGS_IN();
   2657     esi = eax; /* 0x4700953E: mov esi, eax */
   2658     RECOMP_ICALL(ebp); /* 0x47009540: call ebp */
   2659     RECOMP_FLAGS_IN();
   2660     eax = MEM32(eax); /* 0x47009542: mov eax, dword ptr [eax] */
   2661     /* test eax, eax */ /* 0x47009544: test eax, eax */
   2662     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2663     _cf = 0;
   2664     _flag_k = FK_TEST;
   2665     edi = esi; /* 0x47009546: mov edi, esi */
   2666     if (TEST_Z(_flag_a, _flag_b)) goto L_4700954C; /* 0x47009548: je 0x4700954c */
   2667 L_4700954A:
   2668     edi = eax; /* 0x4700954A: mov edi, eax */
   2669 L_4700954C:
   2670     RECOMP_ICALL(0x47039020u); /* 0x4700954C: call 0x47039020 */ /* not lifted */
   2671     RECOMP_FLAGS_IN();
   2672     esi = eax; /* 0x47009551: mov esi, eax */
   2673     ecx = esi; /* 0x47009553: mov ecx, esi */
   2674     RECOMP_ICALL(0x4703B210u); /* 0x47009555: call 0x4703b210 */ /* not lifted */
   2675     RECOMP_FLAGS_IN();
   2676     PUSH32(esp, eax); /* 0x4700955A: push eax */
   2677     ecx = esi; /* 0x4700955B: mov ecx, esi */
   2678     RECOMP_ICALL(0x4703B240u); /* 0x4700955D: call 0x4703b240 */ /* not lifted */
   2679     RECOMP_FLAGS_IN();
   2680     PUSH32(esp, eax); /* 0x47009562: push eax */
   2681     ecx = esi; /* 0x47009563: mov ecx, esi */
   2682     RECOMP_ICALL(0x4703B080u); /* 0x47009565: call 0x4703b080 */ /* not lifted */
   2683     RECOMP_FLAGS_IN();
   2684     PUSH32(esp, eax); /* 0x4700956A: push eax */
   2685     PUSH32(esp, edi); /* 0x4700956B: push edi */
   2686     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700956C: push -1 */
   2687     PUSH32(esp, 0x6Fu); /* 0x4700956E: push 0x6f */
   2688     PUSH32(esp, 0x47104AF4u); /* 0x47009570: push 0x47104af4 */
   2689     ecx = esi; /* 0x47009575: mov ecx, esi */
   2690     RECOMP_ICALL(0x4703A340u); /* 0x47009577: call 0x4703a340 */ /* not lifted */
   2691     RECOMP_FLAGS_IN();
   2692     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700957C: push -1 */
   2693     PUSH32(esp, 0x47104AE0u); /* 0x4700957E: push 0x47104ae0 */
   2694     PUSH32(esp, 0x47104AA4u); /* 0x47009583: push 0x47104aa4 */
   2695     PUSH32(esp, 0x80u); /* 0x47009588: push 0x80 */
   2696     PUSH32(esp, esi); /* 0x4700958D: push esi */
   2697     RECOMP_ICALL(0x47039830u); /* 0x4700958E: call 0x47039830 */ /* not lifted */
   2698     RECOMP_FLAGS_IN();
   2699     eax = MEM32(esp + 0x24); /* 0x47009593: mov eax, dword ptr [esp + 0x24] */
   2700     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2701     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2702     esp = esp + 0x14u; /* 0x47009597: add esp, 0x14 */
   2703     _flag_k = FK_ADD;
   2704     edi = POP32_VAL(esp); /* 0x4700959A: pop edi */
   2705     esi = POP32_VAL(esp); /* 0x4700959B: pop esi */
   2706     ebp = POP32_VAL(esp); /* 0x4700959C: pop ebp */
   2707     ebx = POP32_VAL(esp); /* 0x4700959D: pop ebx */
   2708 L_4700959E:
   2709     ecx = MEM32(esp + 0x8); /* 0x4700959E: mov ecx, dword ptr [esp + 8] */
   2710     edx = MEM32(ecx + 0x8); /* 0x470095A2: mov edx, dword ptr [ecx + 8] */
   2711     MEM32(eax + 0x8) = edx; /* 0x470095A5: mov dword ptr [eax + 8], edx */
   2712     ecx = MEM32(ecx + 0xC); /* 0x470095A8: mov ecx, dword ptr [ecx + 0xc] */
   2713     MEM32(eax + 0xC) = ecx; /* 0x470095AB: mov dword ptr [eax + 0xc], ecx */
   2714     ecx = POP32_VAL(esp); /* 0x470095AE: pop ecx */
   2715     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470095AF: ret 4 */
   2716     RECOMP_REGS_OUT();
   2717 }
   2718 
   2719 void sub_470095C0(void) {
   2720     int _fpu_cmp = 0;
   2721     uint32_t _cf = 0;
   2722     int _df = 1;
   2723     uint32_t _flag_k = FK_NONE;
   2724     uint32_t _flag_a = 0, _flag_b = 0;
   2725     uint32_t _itail_tgt = 0;
   2726     RECOMP_REGS_LOCALS
   2727     RECOMP_ENTER(0x470095C0u);
   2728 
   2729 L_470095C0:
   2730     PUSH32(esp, ecx); /* 0x470095C0: push ecx */
   2731     PUSH32(esp, ebx); /* 0x470095C1: push ebx */
   2732     PUSH32(esp, esi); /* 0x470095C2: push esi */
   2733     PUSH32(esp, edi); /* 0x470095C3: push edi */
   2734     esi = ecx; /* 0x470095C4: mov esi, ecx */
   2735     eax = esp + 0xC; /* 0x470095C6: lea eax, [esp + 0xc] */
   2736     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2737     ebx = 0; /* 0x470095CA: xor ebx, ebx */
   2738     _cf = 0;
   2739     _flag_k = FK_TEST;
   2740     PUSH32(esp, eax); /* 0x470095CC: push eax */
   2741     PUSH32(esp, esi); /* 0x470095CD: push esi */
   2742     MEM32(esi) = ebx; /* 0x470095CE: mov dword ptr [esi], ebx */
   2743     MEM32(esi + 0x4) = ebx; /* 0x470095D0: mov dword ptr [esi + 4], ebx */
   2744     MEM32(esp + 0x14) = ebx; /* 0x470095D3: mov dword ptr [esp + 0x14], ebx */
   2745     RECOMP_ICALL(0x4700EF90u); /* 0x470095D7: call 0x4700ef90 */ /* not lifted */
   2746     RECOMP_FLAGS_IN();
   2747     ecx = eax; /* 0x470095DC: mov ecx, eax */
   2748     RECOMP_ICALL(0x47019300u); /* 0x470095DE: call 0x47019300 */ /* not lifted */
   2749     RECOMP_FLAGS_IN();
   2750     eax = MEM32(esp + 0xC); /* 0x470095E3: mov eax, dword ptr [esp + 0xc] */
   2751     edx = esp + 0xC; /* 0x470095E7: lea edx, [esp + 0xc] */
   2752     ecx = esi; /* 0x470095EB: mov ecx, esi */
   2753     edi = esi + 0x8; /* 0x470095ED: lea edi, [esi + 8] */
   2754     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2756     ecx = ecx - eax; /* 0x470095F0: sub ecx, eax */
   2757     _flag_k = FK_CMP;
   2758     PUSH32(esp, edx); /* 0x470095F2: push edx */
   2759     MEM32(esi + 0x4) = ecx; /* 0x470095F3: mov dword ptr [esi + 4], ecx */
   2760     PUSH32(esp, edi); /* 0x470095F6: push edi */
   2761     MEM32(edi) = ebx; /* 0x470095F7: mov dword ptr [edi], ebx */
   2762     MEM32(edi + 0x4) = ebx; /* 0x470095F9: mov dword ptr [edi + 4], ebx */
   2763     MEM32(esp + 0x14) = ebx; /* 0x470095FC: mov dword ptr [esp + 0x14], ebx */
   2764     RECOMP_ICALL(0x4700EF90u); /* 0x47009600: call 0x4700ef90 */ /* not lifted */
   2765     RECOMP_FLAGS_IN();
   2766     ecx = eax; /* 0x47009605: mov ecx, eax */
   2767     RECOMP_ICALL(0x47019300u); /* 0x47009607: call 0x47019300 */ /* not lifted */
   2768     RECOMP_FLAGS_IN();
   2769     ecx = MEM32(esp + 0xC); /* 0x4700960C: mov ecx, dword ptr [esp + 0xc] */
   2770     eax = edi; /* 0x47009610: mov eax, edi */
   2771     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2773     eax = eax - ecx; /* 0x47009612: sub eax, ecx */
   2774     _flag_k = FK_CMP;
   2775     ecx = esi + 0x118; /* 0x47009614: lea ecx, [esi + 0x118] */
   2776     MEM32(edi + 0x4) = eax; /* 0x4700961A: mov dword ptr [edi + 4], eax */
   2777     RECOMP_ICALL(0x4703D820u); /* 0x4700961D: call 0x4703d820 */ /* not lifted */
   2778     RECOMP_FLAGS_IN();
   2779     edi = POP32_VAL(esp); /* 0x47009622: pop edi */
   2780     eax = esi; /* 0x47009623: mov eax, esi */
   2781     esi = POP32_VAL(esp); /* 0x47009625: pop esi */
   2782     ebx = POP32_VAL(esp); /* 0x47009626: pop ebx */
   2783     ecx = POP32_VAL(esp); /* 0x47009627: pop ecx */
   2784     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009628: ret  */
   2785     RECOMP_REGS_OUT();
   2786 }
   2787 
   2788 void sub_47009630(void) {
   2789     int _fpu_cmp = 0;
   2790     uint32_t _cf = 0;
   2791     int _df = 1;
   2792     uint32_t _flag_k = FK_NONE;
   2793     uint32_t _flag_a = 0, _flag_b = 0;
   2794     uint32_t _itail_tgt = 0;
   2795     RECOMP_REGS_LOCALS
   2796     RECOMP_ENTER(0x47009630u);
   2797 
   2798 L_47009630:
   2799     PUSH32(esp, ecx); /* 0x47009630: push ecx */
   2800     PUSH32(esp, ebx); /* 0x47009631: push ebx */
   2801     ebx = MEM32(0x470AC150); /* 0x47009632: mov ebx, dword ptr [0x470ac150] */
   2802     PUSH32(esp, ebp); /* 0x47009638: push ebp */
   2803     ebp = MEM32(0x470AC3C8); /* 0x47009639: mov ebp, dword ptr [0x470ac3c8] */
   2804     eax = 0x47104B10u; /* 0x4700963F: mov eax, 0x47104b10 */
   2805     /* test eax, eax */ /* 0x47009644: test eax, eax */
   2806     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2807     _cf = 0;
   2808     _flag_k = FK_TEST;
   2809     PUSH32(esp, esi); /* 0x47009646: push esi */
   2810     PUSH32(esp, edi); /* 0x47009647: push edi */
   2811     MEM32(esp + 0x10) = ecx; /* 0x47009648: mov dword ptr [esp + 0x10], ecx */
   2812     if (TEST_Z(_flag_a, _flag_b)) goto L_470097B4; /* 0x4700964C: je 0x470097b4 */
   2813 L_47009652:
   2814     RECOMP_ICALL(ebx); /* 0x47009652: call ebx */
   2815     RECOMP_FLAGS_IN();
   2816     edi = eax; /* 0x47009654: mov edi, eax */
   2817     RECOMP_ICALL(ebp); /* 0x47009656: call ebp */
   2818     RECOMP_FLAGS_IN();
   2819     eax = MEM32(eax); /* 0x47009658: mov eax, dword ptr [eax] */
   2820     /* test eax, eax */ /* 0x4700965A: test eax, eax */
   2821     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2822     _cf = 0;
   2823     _flag_k = FK_TEST;
   2824     if (TEST_Z(_flag_a, _flag_b)) goto L_47009660; /* 0x4700965C: je 0x47009660 */
   2825 L_4700965E:
   2826     edi = eax; /* 0x4700965E: mov edi, eax */
   2827 L_47009660:
   2828     RECOMP_ICALL(0x47039020u); /* 0x47009660: call 0x47039020 */ /* not lifted */
   2829     RECOMP_FLAGS_IN();
   2830     esi = eax; /* 0x47009665: mov esi, eax */
   2831     ecx = esi; /* 0x47009667: mov ecx, esi */
   2832     RECOMP_ICALL(0x4703B210u); /* 0x47009669: call 0x4703b210 */ /* not lifted */
   2833     RECOMP_FLAGS_IN();
   2834     PUSH32(esp, eax); /* 0x4700966E: push eax */
   2835     ecx = esi; /* 0x4700966F: mov ecx, esi */
   2836     RECOMP_ICALL(0x4703B240u); /* 0x47009671: call 0x4703b240 */ /* not lifted */
   2837     RECOMP_FLAGS_IN();
   2838     PUSH32(esp, eax); /* 0x47009676: push eax */
   2839     ecx = esi; /* 0x47009677: mov ecx, esi */
   2840     RECOMP_ICALL(0x4703B080u); /* 0x47009679: call 0x4703b080 */ /* not lifted */
   2841     RECOMP_FLAGS_IN();
   2842     PUSH32(esp, eax); /* 0x4700967E: push eax */
   2843     PUSH32(esp, edi); /* 0x4700967F: push edi */
   2844     PUSH32(esp, 0xFFFFFFFFu); /* 0x47009680: push -1 */
   2845     PUSH32(esp, 0x67u); /* 0x47009682: push 0x67 */
   2846     PUSH32(esp, 0x47104AF4u); /* 0x47009684: push 0x47104af4 */
   2847     ecx = esi; /* 0x47009689: mov ecx, esi */
   2848     RECOMP_ICALL(0x4703A340u); /* 0x4700968B: call 0x4703a340 */ /* not lifted */
   2849     RECOMP_FLAGS_IN();
   2850     PUSH32(esp, 0xFFFFFFFFu); /* 0x47009690: push -1 */
   2851     PUSH32(esp, 0x47104AE0u); /* 0x47009692: push 0x47104ae0 */
   2852     PUSH32(esp, 0x47104AA4u); /* 0x47009697: push 0x47104aa4 */
   2853     PUSH32(esp, 0x80u); /* 0x4700969C: push 0x80 */
   2854     PUSH32(esp, esi); /* 0x470096A1: push esi */
   2855     RECOMP_ICALL(0x47039830u); /* 0x470096A2: call 0x47039830 */ /* not lifted */
   2856     RECOMP_FLAGS_IN();
   2857     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2858     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2859     esp = esp + 0x14u; /* 0x470096A7: add esp, 0x14 */
   2860     _flag_k = FK_ADD;
   2861     RECOMP_ICALL(ebx); /* 0x470096AA: call ebx */
   2862     RECOMP_FLAGS_IN();
   2863     edi = eax; /* 0x470096AC: mov edi, eax */
   2864     RECOMP_ICALL(ebp); /* 0x470096AE: call ebp */
   2865     RECOMP_FLAGS_IN();
   2866     eax = MEM32(eax); /* 0x470096B0: mov eax, dword ptr [eax] */
   2867     /* test eax, eax */ /* 0x470096B2: test eax, eax */
   2868     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2869     _cf = 0;
   2870     _flag_k = FK_TEST;
   2871     if (TEST_Z(_flag_a, _flag_b)) goto L_470096B8; /* 0x470096B4: je 0x470096b8 */
   2872 L_470096B6:
   2873     edi = eax; /* 0x470096B6: mov edi, eax */
   2874 L_470096B8:
   2875     RECOMP_ICALL(0x47039020u); /* 0x470096B8: call 0x47039020 */ /* not lifted */
   2876     RECOMP_FLAGS_IN();
   2877     esi = eax; /* 0x470096BD: mov esi, eax */
   2878     ecx = esi; /* 0x470096BF: mov ecx, esi */
   2879     RECOMP_ICALL(0x4703B210u); /* 0x470096C1: call 0x4703b210 */ /* not lifted */
   2880     RECOMP_FLAGS_IN();
   2881     PUSH32(esp, eax); /* 0x470096C6: push eax */
   2882     ecx = esi; /* 0x470096C7: mov ecx, esi */
   2883     RECOMP_ICALL(0x4703B240u); /* 0x470096C9: call 0x4703b240 */ /* not lifted */
   2884     RECOMP_FLAGS_IN();
   2885     PUSH32(esp, eax); /* 0x470096CE: push eax */
   2886     ecx = esi; /* 0x470096CF: mov ecx, esi */
   2887     RECOMP_ICALL(0x4703B080u); /* 0x470096D1: call 0x4703b080 */ /* not lifted */
   2888     RECOMP_FLAGS_IN();
   2889     PUSH32(esp, eax); /* 0x470096D6: push eax */
   2890     PUSH32(esp, edi); /* 0x470096D7: push edi */
   2891     PUSH32(esp, 0xFFFFFFFFu); /* 0x470096D8: push -1 */
   2892     PUSH32(esp, 0x6Fu); /* 0x470096DA: push 0x6f */
   2893     PUSH32(esp, 0x47104AF4u); /* 0x470096DC: push 0x47104af4 */
   2894     ecx = esi; /* 0x470096E1: mov ecx, esi */
   2895     RECOMP_ICALL(0x4703A340u); /* 0x470096E3: call 0x4703a340 */ /* not lifted */
   2896     RECOMP_FLAGS_IN();
   2897     PUSH32(esp, 0xFFFFFFFFu); /* 0x470096E8: push -1 */
   2898     PUSH32(esp, 0x47104AE0u); /* 0x470096EA: push 0x47104ae0 */
   2899     PUSH32(esp, 0x47104AA4u); /* 0x470096EF: push 0x47104aa4 */
   2900     PUSH32(esp, 0x80u); /* 0x470096F4: push 0x80 */
   2901     PUSH32(esp, esi); /* 0x470096F9: push esi */
   2902     RECOMP_ICALL(0x47039830u); /* 0x470096FA: call 0x47039830 */ /* not lifted */
   2903     RECOMP_FLAGS_IN();
   2904     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2905     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2906     esp = esp + 0x14u; /* 0x470096FF: add esp, 0x14 */
   2907     _flag_k = FK_ADD;
   2908     RECOMP_ICALL(ebx); /* 0x47009702: call ebx */
   2909     RECOMP_FLAGS_IN();
   2910     edi = eax; /* 0x47009704: mov edi, eax */
   2911     RECOMP_ICALL(ebp); /* 0x47009706: call ebp */
   2912     RECOMP_FLAGS_IN();
   2913     eax = MEM32(eax); /* 0x47009708: mov eax, dword ptr [eax] */
   2914     /* test eax, eax */ /* 0x4700970A: test eax, eax */
   2915     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2916     _cf = 0;
   2917     _flag_k = FK_TEST;
   2918     if (TEST_Z(_flag_a, _flag_b)) goto L_47009710; /* 0x4700970C: je 0x47009710 */
   2919 L_4700970E:
   2920     edi = eax; /* 0x4700970E: mov edi, eax */
   2921 L_47009710:
   2922     RECOMP_ICALL(0x47039020u); /* 0x47009710: call 0x47039020 */ /* not lifted */
   2923     RECOMP_FLAGS_IN();
   2924     esi = eax; /* 0x47009715: mov esi, eax */
   2925     ecx = esi; /* 0x47009717: mov ecx, esi */
   2926     RECOMP_ICALL(0x4703B210u); /* 0x47009719: call 0x4703b210 */ /* not lifted */
   2927     RECOMP_FLAGS_IN();
   2928     PUSH32(esp, eax); /* 0x4700971E: push eax */
   2929     ecx = esi; /* 0x4700971F: mov ecx, esi */
   2930     RECOMP_ICALL(0x4703B240u); /* 0x47009721: call 0x4703b240 */ /* not lifted */
   2931     RECOMP_FLAGS_IN();
   2932     PUSH32(esp, eax); /* 0x47009726: push eax */
   2933     ecx = esi; /* 0x47009727: mov ecx, esi */
   2934     RECOMP_ICALL(0x4703B080u); /* 0x47009729: call 0x4703b080 */ /* not lifted */
   2935     RECOMP_FLAGS_IN();
   2936     PUSH32(esp, eax); /* 0x4700972E: push eax */
   2937     PUSH32(esp, edi); /* 0x4700972F: push edi */
   2938     PUSH32(esp, 0xFFFFFFFFu); /* 0x47009730: push -1 */
   2939     PUSH32(esp, 0x67u); /* 0x47009732: push 0x67 */
   2940     PUSH32(esp, 0x47104AF4u); /* 0x47009734: push 0x47104af4 */
   2941     ecx = esi; /* 0x47009739: mov ecx, esi */
   2942     RECOMP_ICALL(0x4703A340u); /* 0x4700973B: call 0x4703a340 */ /* not lifted */
   2943     RECOMP_FLAGS_IN();
   2944     PUSH32(esp, 0xFFFFFFFFu); /* 0x47009740: push -1 */
   2945     PUSH32(esp, 0x47104AE0u); /* 0x47009742: push 0x47104ae0 */
   2946     PUSH32(esp, 0x47104AA4u); /* 0x47009747: push 0x47104aa4 */
   2947     PUSH32(esp, 0x80u); /* 0x4700974C: push 0x80 */
   2948     PUSH32(esp, esi); /* 0x47009751: push esi */
   2949     RECOMP_ICALL(0x47039830u); /* 0x47009752: call 0x47039830 */ /* not lifted */
   2950     RECOMP_FLAGS_IN();
   2951     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2952     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2953     esp = esp + 0x14u; /* 0x47009757: add esp, 0x14 */
   2954     _flag_k = FK_ADD;
   2955     RECOMP_ICALL(ebx); /* 0x4700975A: call ebx */
   2956     RECOMP_FLAGS_IN();
   2957     esi = eax; /* 0x4700975C: mov esi, eax */
   2958     RECOMP_ICALL(ebp); /* 0x4700975E: call ebp */
   2959     RECOMP_FLAGS_IN();
   2960     eax = MEM32(eax); /* 0x47009760: mov eax, dword ptr [eax] */
   2961     /* test eax, eax */ /* 0x47009762: test eax, eax */
   2962     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2963     _cf = 0;
   2964     _flag_k = FK_TEST;
   2965     edi = esi; /* 0x47009764: mov edi, esi */
   2966     if (TEST_Z(_flag_a, _flag_b)) goto L_4700976A; /* 0x47009766: je 0x4700976a */
   2967 L_47009768:
   2968     edi = eax; /* 0x47009768: mov edi, eax */
   2969 L_4700976A:
   2970     RECOMP_ICALL(0x47039020u); /* 0x4700976A: call 0x47039020 */ /* not lifted */
   2971     RECOMP_FLAGS_IN();
   2972     esi = eax; /* 0x4700976F: mov esi, eax */
   2973     ecx = esi; /* 0x47009771: mov ecx, esi */
   2974     RECOMP_ICALL(0x4703B210u); /* 0x47009773: call 0x4703b210 */ /* not lifted */
   2975     RECOMP_FLAGS_IN();
   2976     PUSH32(esp, eax); /* 0x47009778: push eax */
   2977     ecx = esi; /* 0x47009779: mov ecx, esi */
   2978     RECOMP_ICALL(0x4703B240u); /* 0x4700977B: call 0x4703b240 */ /* not lifted */
   2979     RECOMP_FLAGS_IN();
   2980     PUSH32(esp, eax); /* 0x47009780: push eax */
   2981     ecx = esi; /* 0x47009781: mov ecx, esi */
   2982     RECOMP_ICALL(0x4703B080u); /* 0x47009783: call 0x4703b080 */ /* not lifted */
   2983     RECOMP_FLAGS_IN();
   2984     PUSH32(esp, eax); /* 0x47009788: push eax */
   2985     PUSH32(esp, edi); /* 0x47009789: push edi */
   2986     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700978A: push -1 */
   2987     PUSH32(esp, 0x6Fu); /* 0x4700978C: push 0x6f */
   2988     PUSH32(esp, 0x47104AF4u); /* 0x4700978E: push 0x47104af4 */
   2989     ecx = esi; /* 0x47009793: mov ecx, esi */
   2990     RECOMP_ICALL(0x4703A340u); /* 0x47009795: call 0x4703a340 */ /* not lifted */
   2991     RECOMP_FLAGS_IN();
   2992     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700979A: push -1 */
   2993     PUSH32(esp, 0x47104AE0u); /* 0x4700979C: push 0x47104ae0 */
   2994     PUSH32(esp, 0x47104AA4u); /* 0x470097A1: push 0x47104aa4 */
   2995     PUSH32(esp, 0x80u); /* 0x470097A6: push 0x80 */
   2996     PUSH32(esp, esi); /* 0x470097AB: push esi */
   2997     RECOMP_ICALL(0x47039830u); /* 0x470097AC: call 0x47039830 */ /* not lifted */
   2998     RECOMP_FLAGS_IN();
   2999     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3000     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3001     esp = esp + 0x14u; /* 0x470097B1: add esp, 0x14 */
   3002     _flag_k = FK_ADD;
   3003 L_470097B4:
   3004     ecx = MEM32(esp + 0x10); /* 0x470097B4: mov ecx, dword ptr [esp + 0x10] */
   3005     edx = MEM32(esp + 0x18); /* 0x470097B8: mov edx, dword ptr [esp + 0x18] */
   3006     eax = MEM32(esp + 0x10); /* 0x470097BC: mov eax, dword ptr [esp + 0x10] */
   3007     edi = ecx + 0x10; /* 0x470097C0: lea edi, [ecx + 0x10] */
   3008     esi = edx + 0x10; /* 0x470097C3: lea esi, [edx + 0x10] */
   3009     ecx = 0x41u; /* 0x470097C6: mov ecx, 0x41 */
   3010     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470097CB: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   3011     ecx = MEM32(edx + 0x114); /* 0x470097CD: mov ecx, dword ptr [edx + 0x114] */
   3012     MEM32(eax + 0x114) = ecx; /* 0x470097D3: mov dword ptr [eax + 0x114], ecx */
   3013     ecx = 0x47104B10u; /* 0x470097D9: mov ecx, 0x47104b10 */
   3014     /* test ecx, ecx */ /* 0x470097DE: test ecx, ecx */
   3015     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3016     _cf = 0;
   3017     _flag_k = FK_TEST;
   3018     if (TEST_Z(_flag_a, _flag_b)) goto L_470098A0; /* 0x470097E0: je 0x470098a0 */
   3019 L_470097E6:
   3020     RECOMP_ICALL(ebx); /* 0x470097E6: call ebx */
   3021     RECOMP_FLAGS_IN();
   3022     edi = eax; /* 0x470097E8: mov edi, eax */
   3023     RECOMP_ICALL(ebp); /* 0x470097EA: call ebp */
   3024     RECOMP_FLAGS_IN();
   3025     eax = MEM32(eax); /* 0x470097EC: mov eax, dword ptr [eax] */
   3026     /* test eax, eax */ /* 0x470097EE: test eax, eax */
   3027     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3028     _cf = 0;
   3029     _flag_k = FK_TEST;
   3030     if (TEST_Z(_flag_a, _flag_b)) goto L_470097F4; /* 0x470097F0: je 0x470097f4 */
   3031 L_470097F2:
   3032     edi = eax; /* 0x470097F2: mov edi, eax */
   3033 L_470097F4:
   3034     RECOMP_ICALL(0x47039020u); /* 0x470097F4: call 0x47039020 */ /* not lifted */
   3035     RECOMP_FLAGS_IN();
   3036     esi = eax; /* 0x470097F9: mov esi, eax */
   3037     ecx = esi; /* 0x470097FB: mov ecx, esi */
   3038     RECOMP_ICALL(0x4703B210u); /* 0x470097FD: call 0x4703b210 */ /* not lifted */
   3039     RECOMP_FLAGS_IN();
   3040     PUSH32(esp, eax); /* 0x47009802: push eax */
   3041     ecx = esi; /* 0x47009803: mov ecx, esi */
   3042     RECOMP_ICALL(0x4703B240u); /* 0x47009805: call 0x4703b240 */ /* not lifted */
   3043     RECOMP_FLAGS_IN();
   3044     PUSH32(esp, eax); /* 0x4700980A: push eax */
   3045     ecx = esi; /* 0x4700980B: mov ecx, esi */
   3046     RECOMP_ICALL(0x4703B080u); /* 0x4700980D: call 0x4703b080 */ /* not lifted */
   3047     RECOMP_FLAGS_IN();
   3048     PUSH32(esp, eax); /* 0x47009812: push eax */
   3049     PUSH32(esp, edi); /* 0x47009813: push edi */
   3050     PUSH32(esp, 0xFFFFFFFFu); /* 0x47009814: push -1 */
   3051     PUSH32(esp, 0x67u); /* 0x47009816: push 0x67 */
   3052     PUSH32(esp, 0x47104AF4u); /* 0x47009818: push 0x47104af4 */
   3053     ecx = esi; /* 0x4700981D: mov ecx, esi */
   3054     RECOMP_ICALL(0x4703A340u); /* 0x4700981F: call 0x4703a340 */ /* not lifted */
   3055     RECOMP_FLAGS_IN();
   3056     PUSH32(esp, 0xFFFFFFFFu); /* 0x47009824: push -1 */
   3057     PUSH32(esp, 0x47104AE0u); /* 0x47009826: push 0x47104ae0 */
   3058     PUSH32(esp, 0x47104AA4u); /* 0x4700982B: push 0x47104aa4 */
   3059     PUSH32(esp, 0x80u); /* 0x47009830: push 0x80 */
   3060     PUSH32(esp, esi); /* 0x47009835: push esi */
   3061     RECOMP_ICALL(0x47039830u); /* 0x47009836: call 0x47039830 */ /* not lifted */
   3062     RECOMP_FLAGS_IN();
   3063     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3064     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3065     esp = esp + 0x14u; /* 0x4700983B: add esp, 0x14 */
   3066     _flag_k = FK_ADD;
   3067     RECOMP_ICALL(ebx); /* 0x4700983E: call ebx */
   3068     RECOMP_FLAGS_IN();
   3069     esi = eax; /* 0x47009840: mov esi, eax */
   3070     RECOMP_ICALL(ebp); /* 0x47009842: call ebp */
   3071     RECOMP_FLAGS_IN();
   3072     eax = MEM32(eax); /* 0x47009844: mov eax, dword ptr [eax] */
   3073     /* test eax, eax */ /* 0x47009846: test eax, eax */
   3074     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3075     _cf = 0;
   3076     _flag_k = FK_TEST;
   3077     edi = esi; /* 0x47009848: mov edi, esi */
   3078     if (TEST_Z(_flag_a, _flag_b)) goto L_4700984E; /* 0x4700984A: je 0x4700984e */
   3079 L_4700984C:
   3080     edi = eax; /* 0x4700984C: mov edi, eax */
   3081 L_4700984E:
   3082     RECOMP_ICALL(0x47039020u); /* 0x4700984E: call 0x47039020 */ /* not lifted */
   3083     RECOMP_FLAGS_IN();
   3084     esi = eax; /* 0x47009853: mov esi, eax */
   3085     ecx = esi; /* 0x47009855: mov ecx, esi */
   3086     RECOMP_ICALL(0x4703B210u); /* 0x47009857: call 0x4703b210 */ /* not lifted */
   3087     RECOMP_FLAGS_IN();
   3088     PUSH32(esp, eax); /* 0x4700985C: push eax */
   3089     ecx = esi; /* 0x4700985D: mov ecx, esi */
   3090     RECOMP_ICALL(0x4703B240u); /* 0x4700985F: call 0x4703b240 */ /* not lifted */
   3091     RECOMP_FLAGS_IN();
   3092     PUSH32(esp, eax); /* 0x47009864: push eax */
   3093     ecx = esi; /* 0x47009865: mov ecx, esi */
   3094     RECOMP_ICALL(0x4703B080u); /* 0x47009867: call 0x4703b080 */ /* not lifted */
   3095     RECOMP_FLAGS_IN();
   3096     PUSH32(esp, eax); /* 0x4700986C: push eax */
   3097     PUSH32(esp, edi); /* 0x4700986D: push edi */
   3098     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700986E: push -1 */
   3099     PUSH32(esp, 0x6Fu); /* 0x47009870: push 0x6f */
   3100     PUSH32(esp, 0x47104AF4u); /* 0x47009872: push 0x47104af4 */
   3101     ecx = esi; /* 0x47009877: mov ecx, esi */
   3102     RECOMP_ICALL(0x4703A340u); /* 0x47009879: call 0x4703a340 */ /* not lifted */
   3103     RECOMP_FLAGS_IN();
   3104     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700987E: push -1 */
   3105     PUSH32(esp, 0x47104AE0u); /* 0x47009880: push 0x47104ae0 */
   3106     PUSH32(esp, 0x47104AA4u); /* 0x47009885: push 0x47104aa4 */
   3107     PUSH32(esp, 0x80u); /* 0x4700988A: push 0x80 */
   3108     PUSH32(esp, esi); /* 0x4700988F: push esi */
   3109     RECOMP_ICALL(0x47039830u); /* 0x47009890: call 0x47039830 */ /* not lifted */
   3110     RECOMP_FLAGS_IN();
   3111     edx = MEM32(esp + 0x2C); /* 0x47009895: mov edx, dword ptr [esp + 0x2c] */
   3112     eax = MEM32(esp + 0x24); /* 0x47009899: mov eax, dword ptr [esp + 0x24] */
   3113     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3114     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3115     esp = esp + 0x14u; /* 0x4700989D: add esp, 0x14 */
   3116     _flag_k = FK_ADD;
   3117 L_470098A0:
   3118     ecx = MEM32(edx + 0x120); /* 0x470098A0: mov ecx, dword ptr [edx + 0x120] */
   3119     edi = POP32_VAL(esp); /* 0x470098A6: pop edi */
   3120     esi = POP32_VAL(esp); /* 0x470098A7: pop esi */
   3121     MEM32(eax + 0x120) = ecx; /* 0x470098A8: mov dword ptr [eax + 0x120], ecx */
   3122     edx = MEM32(edx + 0x124); /* 0x470098AE: mov edx, dword ptr [edx + 0x124] */
   3123     ebp = POP32_VAL(esp); /* 0x470098B4: pop ebp */
   3124     MEM32(eax + 0x124) = edx; /* 0x470098B5: mov dword ptr [eax + 0x124], edx */
   3125     ebx = POP32_VAL(esp); /* 0x470098BB: pop ebx */
   3126     ecx = POP32_VAL(esp); /* 0x470098BC: pop ecx */
   3127     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470098BD: ret 4 */
   3128     RECOMP_REGS_OUT();
   3129 }
   3130 
   3131 void sub_470098C0(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(0x470098C0u);
   3140 
   3141 L_470098C0:
   3142     PUSH32(esp, esi); /* 0x470098C0: push esi */
   3143     esi = ecx; /* 0x470098C1: mov esi, ecx */
   3144     RECOMP_ICALL(0x4703DCB0u); /* 0x470098C3: call 0x4703dcb0 */ /* not lifted */
   3145     RECOMP_FLAGS_IN();
   3146     MEM32(esi) = 0x470AC600u; /* 0x470098C8: mov dword ptr [esi], 0x470ac600 */
   3147     eax = esi; /* 0x470098CE: mov eax, esi */
   3148     esi = POP32_VAL(esp); /* 0x470098D0: pop esi */
   3149     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470098D1: ret  */
   3150     RECOMP_REGS_OUT();
   3151 }
   3152 
   3153 void sub_470098E0(void) {
   3154     int _fpu_cmp = 0;
   3155     uint32_t _cf = 0;
   3156     int _df = 1;
   3157     uint32_t _flag_k = FK_NONE;
   3158     uint32_t _flag_a = 0, _flag_b = 0;
   3159     uint32_t _itail_tgt = 0;
   3160     RECOMP_REGS_LOCALS
   3161     RECOMP_ENTER(0x470098E0u);
   3162 
   3163 L_470098E0:
   3164     eax = ecx; /* 0x470098E0: mov eax, ecx */
   3165     MEM32(eax) = 0x470AC600u; /* 0x470098E2: mov dword ptr [eax], 0x470ac600 */
   3166     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470098E8: ret 4 */
   3167     RECOMP_REGS_OUT();
   3168 }
   3169 
   3170 void sub_470098F0(void) {
   3171     int _fpu_cmp = 0;
   3172     uint32_t _cf = 0;
   3173     int _df = 1;
   3174     uint32_t _flag_k = FK_NONE;
   3175     uint32_t _flag_a = 0, _flag_b = 0;
   3176     uint32_t _itail_tgt = 0;
   3177     RECOMP_REGS_LOCALS
   3178     RECOMP_ENTER(0x470098F0u);
   3179 
   3180 L_470098F0:
   3181     PUSH32(esp, ebx); /* 0x470098F0: push ebx */
   3182     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470098F1: mov bl, byte ptr [esp + 8] */
   3183     /* test LO8(ebx), 2 */ /* 0x470098F5: test bl, 2 */
   3184     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   3185     _cf = 0;
   3186     _flag_k = FK_NARROW(FK_TEST, 24);
   3187     PUSH32(esp, esi); /* 0x470098F8: push esi */
   3188     esi = ecx; /* 0x470098F9: mov esi, ecx */
   3189     if (TEST_Z(_flag_a, _flag_b)) goto L_47009928; /* 0x470098FB: je 0x47009928 */
   3190 L_470098FD:
   3191     eax = MEM32(esi + (-0x4)); /* 0x470098FD: mov eax, dword ptr [esi - 4] */
   3192     PUSH32(esp, edi); /* 0x47009900: push edi */
   3193     PUSH32(esp, 0x47009980u); /* 0x47009901: push 0x47009980 */
   3194     edi = esi + (-0x4); /* 0x47009906: lea edi, [esi - 4] */
   3195     PUSH32(esp, eax); /* 0x47009909: push eax */
   3196     PUSH32(esp, 4); /* 0x4700990A: push 4 */
   3197     PUSH32(esp, esi); /* 0x4700990C: push esi */
   3198     RECOMP_ICALL(0x470A32EBu); /* 0x4700990D: call 0x470a32eb */ /* not lifted */
   3199     RECOMP_FLAGS_IN();
   3200     /* test LO8(ebx), 1 */ /* 0x47009912: test bl, 1 */
   3201     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3202     _cf = 0;
   3203     _flag_k = FK_NARROW(FK_TEST, 24);
   3204     if (TEST_Z(_flag_a, _flag_b)) goto L_47009920; /* 0x47009915: je 0x47009920 */
   3205 L_47009917:
   3206     PUSH32(esp, edi); /* 0x47009917: push edi */
   3207     RECOMP_ICALL(0x470A32A2u); /* 0x47009918: call 0x470a32a2 */ /* not lifted */
   3208     RECOMP_FLAGS_IN();
   3209     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3210     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3211     esp = esp + 4; /* 0x4700991D: add esp, 4 */
   3212     _flag_k = FK_ADD;
   3213 L_47009920:
   3214     eax = edi; /* 0x47009920: mov eax, edi */
   3215     edi = POP32_VAL(esp); /* 0x47009922: pop edi */
   3216     esi = POP32_VAL(esp); /* 0x47009923: pop esi */
   3217     ebx = POP32_VAL(esp); /* 0x47009924: pop ebx */
   3218     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009925: ret 4 */
   3219 L_47009928:
   3220     ecx = esi; /* 0x47009928: mov ecx, esi */
   3221     RECOMP_ICALL(0x47009980u); /* 0x4700992A: call 0x47009980 */ /* not lifted */
   3222     RECOMP_FLAGS_IN();
   3223     /* test LO8(ebx), 1 */ /* 0x4700992F: test bl, 1 */
   3224     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3225     _cf = 0;
   3226     _flag_k = FK_NARROW(FK_TEST, 24);
   3227     if (TEST_Z(_flag_a, _flag_b)) goto L_4700993D; /* 0x47009932: je 0x4700993d */
   3228 L_47009934:
   3229     PUSH32(esp, esi); /* 0x47009934: push esi */
   3230     RECOMP_ICALL(0x470A32A2u); /* 0x47009935: call 0x470a32a2 */ /* not lifted */
   3231     RECOMP_FLAGS_IN();
   3232     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3233     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3234     esp = esp + 4; /* 0x4700993A: add esp, 4 */
   3235     _flag_k = FK_ADD;
   3236 L_4700993D:
   3237     eax = esi; /* 0x4700993D: mov eax, esi */
   3238     esi = POP32_VAL(esp); /* 0x4700993F: pop esi */
   3239     ebx = POP32_VAL(esp); /* 0x47009940: pop ebx */
   3240     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009941: ret 4 */
   3241     RECOMP_REGS_OUT();
   3242 }
   3243 
   3244 void sub_47009950(void) {
   3245     int _fpu_cmp = 0;
   3246     uint32_t _cf = 0;
   3247     int _df = 1;
   3248     uint32_t _flag_k = FK_NONE;
   3249     uint32_t _flag_a = 0, _flag_b = 0;
   3250     uint32_t _itail_tgt = 0;
   3251     RECOMP_REGS_LOCALS
   3252     RECOMP_ENTER(0x47009950u);
   3253 
   3254 L_47009950:
   3255     eax = ecx; /* 0x47009950: mov eax, ecx */
   3256     ecx = MEM32(esp + 0x4); /* 0x47009952: mov ecx, dword ptr [esp + 4] */
   3257     MEM32(eax) = 0x470AC538u; /* 0x47009956: mov dword ptr [eax], 0x470ac538 */
   3258     edx = MEM32(ecx + 0x4); /* 0x4700995C: mov edx, dword ptr [ecx + 4] */
   3259     MEM32(eax + 0x4) = edx; /* 0x4700995F: mov dword ptr [eax + 4], edx */
   3260     edx = MEM32(ecx + 0x8); /* 0x47009962: mov edx, dword ptr [ecx + 8] */
   3261     MEM32(eax + 0x8) = edx; /* 0x47009965: mov dword ptr [eax + 8], edx */
   3262     ecx = MEM32(ecx + 0xC); /* 0x47009968: mov ecx, dword ptr [ecx + 0xc] */
   3263     MEM32(eax + 0xC) = ecx; /* 0x4700996B: mov dword ptr [eax + 0xc], ecx */
   3264     MEM32(eax) = 0x470AC640u; /* 0x4700996E: mov dword ptr [eax], 0x470ac640 */
   3265     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009974: ret 4 */
   3266     RECOMP_REGS_OUT();
   3267 }
   3268 
   3269 void sub_47009980(void) {
   3270     int _fpu_cmp = 0;
   3271     uint32_t _cf = 0;
   3272     int _df = 1;
   3273     uint32_t _flag_k = FK_NONE;
   3274     uint32_t _flag_a = 0, _flag_b = 0;
   3275     uint32_t _itail_tgt = 0;
   3276     RECOMP_REGS_LOCALS
   3277     RECOMP_ENTER(0x47009980u);
   3278 
   3279 L_47009980:
   3280     goto L_4703DCA0; /* 0x47009980: jmp 0x4703dca0 */
   3281 L_4703DCA0:
   3282     MEM32(ecx) = 0x470AC538u; /* 0x4703DCA0: mov dword ptr [ecx], 0x470ac538 */
   3283     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DCA6: ret  */
   3284     RECOMP_REGS_OUT();
   3285 }
   3286 
   3287 void sub_47009990(void) {
   3288     int _fpu_cmp = 0;
   3289     uint32_t _cf = 0;
   3290     int _df = 1;
   3291     uint32_t _flag_k = FK_NONE;
   3292     uint32_t _flag_a = 0, _flag_b = 0;
   3293     uint32_t _itail_tgt = 0;
   3294     RECOMP_REGS_LOCALS
   3295     RECOMP_ENTER(0x47009990u);
   3296 
   3297 L_47009990:
   3298     PUSH32(esp, ebx); /* 0x47009990: push ebx */
   3299     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47009991: mov bl, byte ptr [esp + 8] */
   3300     /* test LO8(ebx), 2 */ /* 0x47009995: test bl, 2 */
   3301     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   3302     _cf = 0;
   3303     _flag_k = FK_NARROW(FK_TEST, 24);
   3304     PUSH32(esp, esi); /* 0x47009998: push esi */
   3305     esi = ecx; /* 0x47009999: mov esi, ecx */
   3306     if (TEST_Z(_flag_a, _flag_b)) goto L_470099C8; /* 0x4700999B: je 0x470099c8 */
   3307 L_4700999D:
   3308     eax = MEM32(esi + (-0x4)); /* 0x4700999D: mov eax, dword ptr [esi - 4] */
   3309     PUSH32(esp, edi); /* 0x470099A0: push edi */
   3310     PUSH32(esp, 0x47009980u); /* 0x470099A1: push 0x47009980 */
   3311     edi = esi + (-0x4); /* 0x470099A6: lea edi, [esi - 4] */
   3312     PUSH32(esp, eax); /* 0x470099A9: push eax */
   3313     PUSH32(esp, 0x10u); /* 0x470099AA: push 0x10 */
   3314     PUSH32(esp, esi); /* 0x470099AC: push esi */
   3315     RECOMP_ICALL(0x470A32EBu); /* 0x470099AD: call 0x470a32eb */ /* not lifted */
   3316     RECOMP_FLAGS_IN();
   3317     /* test LO8(ebx), 1 */ /* 0x470099B2: test bl, 1 */
   3318     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3319     _cf = 0;
   3320     _flag_k = FK_NARROW(FK_TEST, 24);
   3321     if (TEST_Z(_flag_a, _flag_b)) goto L_470099C0; /* 0x470099B5: je 0x470099c0 */
   3322 L_470099B7:
   3323     PUSH32(esp, edi); /* 0x470099B7: push edi */
   3324     RECOMP_ICALL(0x470A32A2u); /* 0x470099B8: call 0x470a32a2 */ /* not lifted */
   3325     RECOMP_FLAGS_IN();
   3326     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3327     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3328     esp = esp + 4; /* 0x470099BD: add esp, 4 */
   3329     _flag_k = FK_ADD;
   3330 L_470099C0:
   3331     eax = edi; /* 0x470099C0: mov eax, edi */
   3332     edi = POP32_VAL(esp); /* 0x470099C2: pop edi */
   3333     esi = POP32_VAL(esp); /* 0x470099C3: pop esi */
   3334     ebx = POP32_VAL(esp); /* 0x470099C4: pop ebx */
   3335     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470099C5: ret 4 */
   3336 L_470099C8:
   3337     ecx = esi; /* 0x470099C8: mov ecx, esi */
   3338     RECOMP_ICALL(0x47009980u); /* 0x470099CA: call 0x47009980 */ /* not lifted */
   3339     RECOMP_FLAGS_IN();
   3340     /* test LO8(ebx), 1 */ /* 0x470099CF: test bl, 1 */
   3341     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3342     _cf = 0;
   3343     _flag_k = FK_NARROW(FK_TEST, 24);
   3344     if (TEST_Z(_flag_a, _flag_b)) goto L_470099DD; /* 0x470099D2: je 0x470099dd */
   3345 L_470099D4:
   3346     PUSH32(esp, esi); /* 0x470099D4: push esi */
   3347     RECOMP_ICALL(0x470A32A2u); /* 0x470099D5: call 0x470a32a2 */ /* not lifted */
   3348     RECOMP_FLAGS_IN();
   3349     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3350     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3351     esp = esp + 4; /* 0x470099DA: add esp, 4 */
   3352     _flag_k = FK_ADD;
   3353 L_470099DD:
   3354     eax = esi; /* 0x470099DD: mov eax, esi */
   3355     esi = POP32_VAL(esp); /* 0x470099DF: pop esi */
   3356     ebx = POP32_VAL(esp); /* 0x470099E0: pop ebx */
   3357     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470099E1: ret 4 */
   3358     RECOMP_REGS_OUT();
   3359 }
   3360 
   3361 void sub_470099F0(void) {
   3362     int _fpu_cmp = 0;
   3363     uint32_t _cf = 0;
   3364     int _df = 1;
   3365     uint32_t _flag_k = FK_NONE;
   3366     uint32_t _flag_a = 0, _flag_b = 0;
   3367     uint32_t _itail_tgt = 0;
   3368     RECOMP_REGS_LOCALS
   3369     RECOMP_ENTER(0x470099F0u);
   3370 
   3371 L_470099F0:
   3372     eax = MEM32(esp + 0x8); /* 0x470099F0: mov eax, dword ptr [esp + 8] */
   3373     ecx = MEM32(esp + 0x4); /* 0x470099F4: mov ecx, dword ptr [esp + 4] */
   3374     MEM32(ecx) = eax; /* 0x470099F8: mov dword ptr [ecx], eax */
   3375     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470099FA: ret  */
   3376     RECOMP_REGS_OUT();
   3377 }
   3378 
   3379 void sub_47009A00(void) {
   3380     int _fpu_cmp = 0;
   3381     uint32_t _cf = 0;
   3382     int _df = 1;
   3383     uint32_t _flag_k = FK_NONE;
   3384     uint32_t _flag_a = 0, _flag_b = 0;
   3385     uint32_t _itail_tgt = 0;
   3386     RECOMP_REGS_LOCALS
   3387     RECOMP_ENTER(0x47009A00u);
   3388 
   3389 L_47009A00:
   3390     eax = MEM32(esp + 0x4); /* 0x47009A00: mov eax, dword ptr [esp + 4] */
   3391     /* test eax, eax */ /* 0x47009A04: test eax, eax */
   3392     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3393     _cf = 0;
   3394     _flag_k = FK_TEST;
   3395     if (TEST_Z(_flag_a, _flag_b)) goto L_47009A19; /* 0x47009A06: je 0x47009a19 */
   3396 L_47009A08:
   3397     edx = MEM32(esp + 0xC); /* 0x47009A08: mov edx, dword ptr [esp + 0xc] */
   3398     ecx = eax; /* 0x47009A0C: mov ecx, eax */
   3399     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3400     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3401     ecx = ecx - edx; /* 0x47009A0E: sub ecx, edx */
   3402     _flag_k = FK_CMP;
   3403     MEM32(eax) = 0; /* 0x47009A10: mov dword ptr [eax], 0 */
   3404     MEM32(eax + 0x4) = ecx; /* 0x47009A16: mov dword ptr [eax + 4], ecx */
   3405 L_47009A19:
   3406     ecx = MEM32(esp + 0x8); /* 0x47009A19: mov ecx, dword ptr [esp + 8] */
   3407     /* test ecx, ecx */ /* 0x47009A1D: test ecx, ecx */
   3408     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3409     _cf = 0;
   3410     _flag_k = FK_TEST;
   3411     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009A28; /* 0x47009A1F: jne 0x47009a28 */
   3412 L_47009A21:
   3413     MEM32(eax) = 0xFFFFFFFFu; /* 0x47009A21: mov dword ptr [eax], 0xffffffff */
   3414     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009A27: ret  */
   3415 L_47009A28:
   3416     edx = MEM32(eax + 0x4); /* 0x47009A28: mov edx, dword ptr [eax + 4] */
   3417     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3419     edx = edx - eax; /* 0x47009A2B: sub edx, eax */
   3420     _flag_k = FK_CMP;
   3421     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3422     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3423     edx = edx + ecx; /* 0x47009A2D: add edx, ecx */
   3424     _flag_k = FK_ADD;
   3425     MEM32(eax) = edx; /* 0x47009A2F: mov dword ptr [eax], edx */
   3426     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009A31: ret  */
   3427     RECOMP_REGS_OUT();
   3428 }
   3429 
   3430 void sub_47009A40(void) {
   3431     int _fpu_cmp = 0;
   3432     uint32_t _cf = 0;
   3433     int _df = 1;
   3434     uint32_t _flag_k = FK_NONE;
   3435     uint32_t _flag_a = 0, _flag_b = 0;
   3436     uint32_t _itail_tgt = 0;
   3437     RECOMP_REGS_LOCALS
   3438     RECOMP_ENTER(0x47009A40u);
   3439 
   3440 L_47009A40:
   3441     ecx = MEM32(esp + 0x4); /* 0x47009A40: mov ecx, dword ptr [esp + 4] */
   3442     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3443     eax = 0; /* 0x47009A44: xor eax, eax */
   3444     _cf = 0;
   3445     _flag_k = FK_TEST;
   3446     /* test ecx, ecx */ /* 0x47009A46: test ecx, ecx */
   3447     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3448     _cf = 0;
   3449     _flag_k = FK_TEST;
   3450     if (TEST_Z(_flag_a, _flag_b)) goto L_47009A65; /* 0x47009A48: jbe 0x47009a65 */
   3451 L_47009A4A:
   3452     PUSH32(esp, ecx); /* 0x47009A4A: push ecx */
   3453     RECOMP_ICALL(0x470A33F2u); /* 0x47009A4B: call 0x470a33f2 */ /* not lifted */
   3454     RECOMP_FLAGS_IN();
   3455     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3456     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3457     esp = esp + 4; /* 0x47009A50: add esp, 4 */
   3458     _flag_k = FK_ADD;
   3459     /* test eax, eax */ /* 0x47009A53: test eax, eax */
   3460     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3461     _cf = 0;
   3462     _flag_k = FK_TEST;
   3463     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009A65; /* 0x47009A55: jne 0x47009a65 */
   3464 L_47009A57:
   3465     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009A57: call dword ptr [0x470ac3c8] */
   3466     RECOMP_FLAGS_IN();
   3467     MEM32(eax) = 0xCu; /* 0x47009A5D: mov dword ptr [eax], 0xc */
   3468     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3469     eax = 0; /* 0x47009A63: xor eax, eax */
   3470     _cf = 0;
   3471     _flag_k = FK_TEST;
   3472 L_47009A65:
   3473     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009A65: ret 4 */
   3474     RECOMP_REGS_OUT();
   3475 }
   3476 
   3477 void sub_47009A70(void) {
   3478     int _fpu_cmp = 0;
   3479     uint32_t _cf = 0;
   3480     int _df = 1;
   3481     uint32_t _flag_k = FK_NONE;
   3482     uint32_t _flag_a = 0, _flag_b = 0;
   3483     uint32_t _itail_tgt = 0;
   3484     RECOMP_REGS_LOCALS
   3485     RECOMP_ENTER(0x47009A70u);
   3486 
   3487 L_47009A70:
   3488     PUSH32(esp, esi); /* 0x47009A70: push esi */
   3489     PUSH32(esp, edi); /* 0x47009A71: push edi */
   3490     edi = MEM32(esp + 0xC); /* 0x47009A72: mov edi, dword ptr [esp + 0xc] */
   3491     PUSH32(esp, edi); /* 0x47009A76: push edi */
   3492     RECOMP_ICALL(0x470A33F2u); /* 0x47009A77: call 0x470a33f2 */ /* not lifted */
   3493     RECOMP_FLAGS_IN();
   3494     esi = eax; /* 0x47009A7C: mov esi, eax */
   3495     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3496     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3497     esp = esp + 4; /* 0x47009A7E: add esp, 4 */
   3498     _flag_k = FK_ADD;
   3499     /* test esi, esi */ /* 0x47009A81: test esi, esi */
   3500     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3501     _cf = 0;
   3502     _flag_k = FK_TEST;
   3503     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009A98; /* 0x47009A83: jne 0x47009a98 */
   3504 L_47009A85:
   3505     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009A85: call dword ptr [0x470ac3c8] */
   3506     RECOMP_FLAGS_IN();
   3507     edi = POP32_VAL(esp); /* 0x47009A8B: pop edi */
   3508     MEM32(eax) = 0xCu; /* 0x47009A8C: mov dword ptr [eax], 0xc */
   3509     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3510     eax = 0; /* 0x47009A92: xor eax, eax */
   3511     _cf = 0;
   3512     _flag_k = FK_TEST;
   3513     esi = POP32_VAL(esp); /* 0x47009A94: pop esi */
   3514     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47009A95: ret 8 */
   3515 L_47009A98:
   3516     eax = (int32_t)(int8_t)MEM8(esp + 0x10); /* 0x47009A98: movsx eax, byte ptr [esp + 0x10] */
   3517     PUSH32(esp, ebx); /* 0x47009A9D: push ebx */
   3518     SET_LO8(ebx, LO8(eax)); /* 0x47009A9E: mov bl, al */
   3519     SET_HI8(ebx, LO8(ebx)); /* 0x47009AA0: mov bh, bl */
   3520     ecx = edi; /* 0x47009AA2: mov ecx, edi */
   3521     edx = ecx; /* 0x47009AA4: mov edx, ecx */
   3522     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47009AA6: shr ecx, 2 */
   3523     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3524     ecx = ecx >> 2u; /* 0x47009AA6: shr ecx, 2 */
   3525     edi = esi; /* 0x47009AA9: mov edi, esi */
   3526     eax = ebx; /* 0x47009AAB: mov eax, ebx */
   3527     if (16u) _cf = (((eax) >> 16) & 1u); /* 0x47009AAD: shl eax, 0x10 */
   3528     if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3529     eax = eax << 16u; /* 0x47009AAD: shl eax, 0x10 */
   3530     SET_LO16(eax, LO16(ebx)); /* 0x47009AB0: mov ax, bx */
   3531     ebx = POP32_VAL(esp); /* 0x47009AB3: pop ebx */
   3532     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47009AB4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   3533     ecx = edx; /* 0x47009AB6: mov ecx, edx */
   3534     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3535     ecx = ecx & 3; /* 0x47009AB8: and ecx, 3 */
   3536     _cf = 0;
   3537     _flag_k = FK_TEST;
   3538     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47009ABB: rep stosb byte ptr es:[edi], al */ if (_df > 0) { memset((void*)ADDR(edi), LO8(eax), _n); edi += _b; } else { memset((void*)ADDR(edi - _b + 1u), LO8(eax), _n); edi -= _b; } ecx = 0; }
   3539     edi = POP32_VAL(esp); /* 0x47009ABD: pop edi */
   3540     eax = esi; /* 0x47009ABE: mov eax, esi */
   3541     esi = POP32_VAL(esp); /* 0x47009AC0: pop esi */
   3542     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47009AC1: ret 8 */
   3543     RECOMP_REGS_OUT();
   3544 }
   3545 
   3546 void sub_47009AD0(void) {
   3547     int _fpu_cmp = 0;
   3548     uint32_t _cf = 0;
   3549     int _df = 1;
   3550     uint32_t _flag_k = FK_NONE;
   3551     uint32_t _flag_a = 0, _flag_b = 0;
   3552     uint32_t _itail_tgt = 0;
   3553     RECOMP_REGS_LOCALS
   3554     RECOMP_ENTER(0x47009AD0u);
   3555 
   3556 L_47009AD0:
   3557     eax = MEM32(esp + 0x4); /* 0x47009AD0: mov eax, dword ptr [esp + 4] */
   3558     PUSH32(esp, eax); /* 0x47009AD4: push eax */
   3559     RECOMP_ICALL(0x470A32A2u); /* 0x47009AD5: call 0x470a32a2 */ /* not lifted */
   3560     RECOMP_FLAGS_IN();
   3561     ecx = POP32_VAL(esp); /* 0x47009ADA: pop ecx */
   3562     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009ADB: ret 4 */
   3563     RECOMP_REGS_OUT();
   3564 }
   3565 
   3566 void sub_47009AE0(void) {
   3567     int _fpu_cmp = 0;
   3568     uint32_t _cf = 0;
   3569     int _df = 1;
   3570     uint32_t _flag_k = FK_NONE;
   3571     uint32_t _flag_a = 0, _flag_b = 0;
   3572     uint32_t _itail_tgt = 0;
   3573     RECOMP_REGS_LOCALS
   3574     RECOMP_ENTER(0x47009AE0u);
   3575 
   3576 L_47009AE0:
   3577     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3578     eax = eax | 0xFFFFFFFFu; /* 0x47009AE0: or eax, 0xffffffff */
   3579     _cf = 0;
   3580     _flag_k = FK_TEST;
   3581     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47009AE3: ret 0xc */
   3582     RECOMP_REGS_OUT();
   3583 }
   3584 
   3585 void sub_47009AF0(void) {
   3586     int _fpu_cmp = 0;
   3587     uint32_t _cf = 0;
   3588     int _df = 1;
   3589     uint32_t _flag_k = FK_NONE;
   3590     uint32_t _flag_a = 0, _flag_b = 0;
   3591     uint32_t _itail_tgt = 0;
   3592     RECOMP_REGS_LOCALS
   3593     RECOMP_ENTER(0x47009AF0u);
   3594 
   3595 L_47009AF0:
   3596     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3597     eax = eax | 0xFFFFFFFFu; /* 0x47009AF0: or eax, 0xffffffff */
   3598     _cf = 0;
   3599     _flag_k = FK_TEST;
   3600     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009AF3: ret 4 */
   3601     RECOMP_REGS_OUT();
   3602 }
   3603 
   3604 void sub_47009B00(void) {
   3605     int _fpu_cmp = 0;
   3606     uint32_t _cf = 0;
   3607     int _df = 1;
   3608     uint32_t _flag_k = FK_NONE;
   3609     uint32_t _flag_a = 0, _flag_b = 0;
   3610     uint32_t _itail_tgt = 0;
   3611     RECOMP_REGS_LOCALS
   3612     RECOMP_ENTER(0x47009B00u);
   3613 
   3614 L_47009B00:
   3615     eax = MEM32(esp + 0x4); /* 0x47009B00: mov eax, dword ptr [esp + 4] */
   3616     edx = MEM32(ecx + 0xC); /* 0x47009B04: mov edx, dword ptr [ecx + 0xc] */
   3617     PUSH32(esp, esi); /* 0x47009B07: push esi */
   3618     esi = edx + eax; /* 0x47009B08: lea esi, [edx + eax] */
   3619     /* cmp esi, MEM32(ecx + 0x8) */ /* 0x47009B0B: cmp esi, dword ptr [ecx + 8] */
   3620     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3622     _flag_k = FK_CMP;
   3623     if (CMP_BE(_flag_a, _flag_b)) goto L_47009B22; /* 0x47009B0E: jbe 0x47009b22 */
   3624 L_47009B10:
   3625     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009B10: call dword ptr [0x470ac3c8] */
   3626     RECOMP_FLAGS_IN();
   3627     MEM32(eax) = 0xCu; /* 0x47009B16: mov dword ptr [eax], 0xc */
   3628     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3629     eax = 0; /* 0x47009B1C: xor eax, eax */
   3630     _cf = 0;
   3631     _flag_k = FK_TEST;
   3632     esi = POP32_VAL(esp); /* 0x47009B1E: pop esi */
   3633     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009B1F: ret 4 */
   3634 L_47009B22:
   3635     eax = MEM32(ecx + 0x4); /* 0x47009B22: mov eax, dword ptr [ecx + 4] */
   3636     MEM32(ecx + 0xC) = esi; /* 0x47009B25: mov dword ptr [ecx + 0xc], esi */
   3637     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3638     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3639     eax = eax + edx; /* 0x47009B28: add eax, edx */
   3640     _flag_k = FK_ADD;
   3641     esi = POP32_VAL(esp); /* 0x47009B2A: pop esi */
   3642     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009B2B: ret 4 */
   3643     RECOMP_REGS_OUT();
   3644 }
   3645 
   3646 void sub_47009B30(void) {
   3647     int _fpu_cmp = 0;
   3648     uint32_t _cf = 0;
   3649     int _df = 1;
   3650     uint32_t _flag_k = FK_NONE;
   3651     uint32_t _flag_a = 0, _flag_b = 0;
   3652     uint32_t _itail_tgt = 0;
   3653     RECOMP_REGS_LOCALS
   3654     RECOMP_ENTER(0x47009B30u);
   3655 
   3656 L_47009B30:
   3657     eax = MEM32(ecx); /* 0x47009B30: mov eax, dword ptr [ecx] */
   3658     PUSH32(esp, ebx); /* 0x47009B32: push ebx */
   3659     PUSH32(esp, esi); /* 0x47009B33: push esi */
   3660     PUSH32(esp, edi); /* 0x47009B34: push edi */
   3661     edi = MEM32(esp + 0x10); /* 0x47009B35: mov edi, dword ptr [esp + 0x10] */
   3662     PUSH32(esp, edi); /* 0x47009B39: push edi */
   3663     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47009B3A: call dword ptr [eax + 4] */
   3664     RECOMP_FLAGS_IN();
   3665     esi = eax; /* 0x47009B3D: mov esi, eax */
   3666     eax = (int32_t)(int8_t)MEM8(esp + 0x14); /* 0x47009B3F: movsx eax, byte ptr [esp + 0x14] */
   3667     SET_LO8(ebx, LO8(eax)); /* 0x47009B44: mov bl, al */
   3668     SET_HI8(ebx, LO8(ebx)); /* 0x47009B46: mov bh, bl */
   3669     ecx = edi; /* 0x47009B48: mov ecx, edi */
   3670     edx = ecx; /* 0x47009B4A: mov edx, ecx */
   3671     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47009B4C: shr ecx, 2 */
   3672     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3673     ecx = ecx >> 2u; /* 0x47009B4C: shr ecx, 2 */
   3674     edi = esi; /* 0x47009B4F: mov edi, esi */
   3675     eax = ebx; /* 0x47009B51: mov eax, ebx */
   3676     if (16u) _cf = (((eax) >> 16) & 1u); /* 0x47009B53: shl eax, 0x10 */
   3677     if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3678     eax = eax << 16u; /* 0x47009B53: shl eax, 0x10 */
   3679     SET_LO16(eax, LO16(ebx)); /* 0x47009B56: mov ax, bx */
   3680     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47009B59: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   3681     ecx = edx; /* 0x47009B5B: mov ecx, edx */
   3682     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3683     ecx = ecx & 3; /* 0x47009B5D: and ecx, 3 */
   3684     _cf = 0;
   3685     _flag_k = FK_TEST;
   3686     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47009B60: rep stosb byte ptr es:[edi], al */ if (_df > 0) { memset((void*)ADDR(edi), LO8(eax), _n); edi += _b; } else { memset((void*)ADDR(edi - _b + 1u), LO8(eax), _n); edi -= _b; } ecx = 0; }
   3687     edi = POP32_VAL(esp); /* 0x47009B62: pop edi */
   3688     eax = esi; /* 0x47009B63: mov eax, esi */
   3689     esi = POP32_VAL(esp); /* 0x47009B65: pop esi */
   3690     ebx = POP32_VAL(esp); /* 0x47009B66: pop ebx */
   3691     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47009B67: ret 8 */
   3692     RECOMP_REGS_OUT();
   3693 }
   3694 
   3695 void sub_47009B70(void) {
   3696     int _fpu_cmp = 0;
   3697     uint32_t _cf = 0;
   3698     int _df = 1;
   3699     uint32_t _flag_k = FK_NONE;
   3700     uint32_t _flag_a = 0, _flag_b = 0;
   3701     uint32_t _itail_tgt = 0;
   3702     RECOMP_REGS_LOCALS
   3703     RECOMP_ENTER(0x47009B70u);
   3704 
   3705 L_47009B70:
   3706     eax = MEM32(ecx + 0x4); /* 0x47009B70: mov eax, dword ptr [ecx + 4] */
   3707     edx = MEM32(esp + 0x4); /* 0x47009B73: mov edx, dword ptr [esp + 4] */
   3708     /* cmp edx, eax */ /* 0x47009B77: cmp edx, eax */
   3709     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3711     _flag_k = FK_CMP;
   3712     if (CMP_B(_flag_a, _flag_b)) goto L_47009B84; /* 0x47009B79: jb 0x47009b84 */
   3713 L_47009B7B:
   3714     ecx = MEM32(ecx + 0x8); /* 0x47009B7B: mov ecx, dword ptr [ecx + 8] */
   3715     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3716     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3717     ecx = ecx + eax; /* 0x47009B7E: add ecx, eax */
   3718     _flag_k = FK_ADD;
   3719     /* cmp edx, ecx */ /* 0x47009B80: cmp edx, ecx */
   3720     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3721     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3722     _flag_k = FK_CMP;
   3723     if (CMP_B(_flag_a, _flag_b)) goto L_47009BEB; /* 0x47009B82: jb 0x47009beb */
   3724 L_47009B84:
   3725     PUSH32(esp, esi); /* 0x47009B84: push esi */
   3726     PUSH32(esp, edi); /* 0x47009B85: push edi */
   3727     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47009B86: call dword ptr [0x470ac150] */
   3728     RECOMP_FLAGS_IN();
   3729     edi = eax; /* 0x47009B8C: mov edi, eax */
   3730     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009B8E: call dword ptr [0x470ac3c8] */
   3731     RECOMP_FLAGS_IN();
   3732     eax = MEM32(eax); /* 0x47009B94: mov eax, dword ptr [eax] */
   3733     /* test eax, eax */ /* 0x47009B96: test eax, eax */
   3734     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3735     _cf = 0;
   3736     _flag_k = FK_TEST;
   3737     if (TEST_Z(_flag_a, _flag_b)) goto L_47009B9C; /* 0x47009B98: je 0x47009b9c */
   3738 L_47009B9A:
   3739     edi = eax; /* 0x47009B9A: mov edi, eax */
   3740 L_47009B9C:
   3741     RECOMP_ICALL(0x47039020u); /* 0x47009B9C: call 0x47039020 */ /* not lifted */
   3742     RECOMP_FLAGS_IN();
   3743     esi = eax; /* 0x47009BA1: mov esi, eax */
   3744     ecx = esi; /* 0x47009BA3: mov ecx, esi */
   3745     RECOMP_ICALL(0x4703B210u); /* 0x47009BA5: call 0x4703b210 */ /* not lifted */
   3746     RECOMP_FLAGS_IN();
   3747     PUSH32(esp, eax); /* 0x47009BAA: push eax */
   3748     ecx = esi; /* 0x47009BAB: mov ecx, esi */
   3749     RECOMP_ICALL(0x4703B240u); /* 0x47009BAD: call 0x4703b240 */ /* not lifted */
   3750     RECOMP_FLAGS_IN();
   3751     PUSH32(esp, eax); /* 0x47009BB2: push eax */
   3752     ecx = esi; /* 0x47009BB3: mov ecx, esi */
   3753     RECOMP_ICALL(0x4703B080u); /* 0x47009BB5: call 0x4703b080 */ /* not lifted */
   3754     RECOMP_FLAGS_IN();
   3755     PUSH32(esp, eax); /* 0x47009BBA: push eax */
   3756     PUSH32(esp, edi); /* 0x47009BBB: push edi */
   3757     PUSH32(esp, 0xFFFFFFFFu); /* 0x47009BBC: push -1 */
   3758     PUSH32(esp, 0xB9u); /* 0x47009BBE: push 0xb9 */
   3759     PUSH32(esp, 0x47104B5Cu); /* 0x47009BC3: push 0x47104b5c */
   3760     ecx = esi; /* 0x47009BC8: mov ecx, esi */
   3761     RECOMP_ICALL(0x4703A340u); /* 0x47009BCA: call 0x4703a340 */ /* not lifted */
   3762     RECOMP_FLAGS_IN();
   3763     PUSH32(esp, 0xFFFFFFFFu); /* 0x47009BCF: push -1 */
   3764     PUSH32(esp, 0x47104B20u); /* 0x47009BD1: push 0x47104b20 */
   3765     PUSH32(esp, 0x47104AA4u); /* 0x47009BD6: push 0x47104aa4 */
   3766     PUSH32(esp, 0x80u); /* 0x47009BDB: push 0x80 */
   3767     PUSH32(esp, esi); /* 0x47009BE0: push esi */
   3768     RECOMP_ICALL(0x47039830u); /* 0x47009BE1: call 0x47039830 */ /* not lifted */
   3769     RECOMP_FLAGS_IN();
   3770     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3771     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3772     esp = esp + 0x14u; /* 0x47009BE6: add esp, 0x14 */
   3773     _flag_k = FK_ADD;
   3774     edi = POP32_VAL(esp); /* 0x47009BE9: pop edi */
   3775     esi = POP32_VAL(esp); /* 0x47009BEA: pop esi */
   3776 L_47009BEB:
   3777     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009BEB: ret 4 */
   3778     RECOMP_REGS_OUT();
   3779 }
   3780 
   3781 void sub_47009BF0(void) {
   3782     int _fpu_cmp = 0;
   3783     uint32_t _cf = 0;
   3784     int _df = 1;
   3785     uint32_t _flag_k = FK_NONE;
   3786     uint32_t _flag_a = 0, _flag_b = 0;
   3787     uint32_t _itail_tgt = 0;
   3788     RECOMP_REGS_LOCALS
   3789     RECOMP_ENTER(0x47009BF0u);
   3790 
   3791 L_47009BF0:
   3792     PUSH32(esp, esi); /* 0x47009BF0: push esi */
   3793     esi = ecx; /* 0x47009BF1: mov esi, ecx */
   3794     RECOMP_ICALL(0x4703DCB0u); /* 0x47009BF3: call 0x4703dcb0 */ /* not lifted */
   3795     RECOMP_FLAGS_IN();
   3796     eax = MEM32(esp + 0x8); /* 0x47009BF8: mov eax, dword ptr [esp + 8] */
   3797     ecx = MEM32(esp + 0xC); /* 0x47009BFC: mov ecx, dword ptr [esp + 0xc] */
   3798     MEM32(esi + 0x4) = eax; /* 0x47009C00: mov dword ptr [esi + 4], eax */
   3799     MEM32(esi + 0x8) = ecx; /* 0x47009C03: mov dword ptr [esi + 8], ecx */
   3800     MEM32(esi + 0xC) = 0; /* 0x47009C06: mov dword ptr [esi + 0xc], 0 */
   3801     MEM32(esi) = 0x470AC640u; /* 0x47009C0D: mov dword ptr [esi], 0x470ac640 */
   3802     eax = esi; /* 0x47009C13: mov eax, esi */
   3803     esi = POP32_VAL(esp); /* 0x47009C15: pop esi */
   3804     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47009C16: ret 8 */
   3805     RECOMP_REGS_OUT();
   3806 }
   3807 
   3808 void sub_47009C20(void) {
   3809     int _fpu_cmp = 0;
   3810     uint32_t _cf = 0;
   3811     int _df = 1;
   3812     uint32_t _flag_k = FK_NONE;
   3813     uint32_t _flag_a = 0, _flag_b = 0;
   3814     uint32_t _itail_tgt = 0;
   3815     RECOMP_REGS_LOCALS
   3816     RECOMP_ENTER(0x47009C20u);
   3817 
   3818 L_47009C20:
   3819     MEM32(0x4710DDF8) = 0x47104B6Cu; /* 0x47009C20: mov dword ptr [0x4710ddf8], 0x47104b6c */
   3820     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009C2A: ret  */
   3821     RECOMP_REGS_OUT();
   3822 }
   3823 
   3824 void sub_47009C30(void) {
   3825     int _fpu_cmp = 0;
   3826     uint32_t _cf = 0;
   3827     int _df = 1;
   3828     uint32_t _flag_k = FK_NONE;
   3829     uint32_t _flag_a = 0, _flag_b = 0;
   3830     uint32_t _itail_tgt = 0;
   3831     RECOMP_REGS_LOCALS
   3832     RECOMP_ENTER(0x47009C30u);
   3833 
   3834 L_47009C30:
   3835     MEM32(0x4710DC94) = 0x47104BA0u; /* 0x47009C30: mov dword ptr [0x4710dc94], 0x47104ba0 */
   3836     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009C3A: ret  */
   3837     RECOMP_REGS_OUT();
   3838 }
   3839 
   3840 void sub_47009C40(void) {
   3841     int _fpu_cmp = 0;
   3842     uint32_t _cf = 0;
   3843     int _df = 1;
   3844     uint32_t _flag_k = FK_NONE;
   3845     uint32_t _flag_a = 0, _flag_b = 0;
   3846     uint32_t _itail_tgt = 0;
   3847     RECOMP_REGS_LOCALS
   3848     RECOMP_ENTER(0x47009C40u);
   3849 
   3850 L_47009C40:
   3851     PUSH32(esp, 0); /* 0x47009C40: push 0 */
   3852     RECOMP_ICALL(0x4700A140u); /* 0x47009C42: call 0x4700a140 */ /* not lifted */
   3853     RECOMP_FLAGS_IN();
   3854     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009C47: ret  */
   3855     RECOMP_REGS_OUT();
   3856 }
   3857 
   3858 void sub_47009C50(void) {
   3859     int _fpu_cmp = 0;
   3860     uint32_t _cf = 0;
   3861     int _df = 1;
   3862     uint32_t _flag_k = FK_NONE;
   3863     uint32_t _flag_a = 0, _flag_b = 0;
   3864     uint32_t _itail_tgt = 0;
   3865     RECOMP_REGS_LOCALS
   3866     RECOMP_ENTER(0x47009C50u);
   3867 
   3868 L_47009C50:
   3869     eax = ecx; /* 0x47009C50: mov eax, ecx */
   3870     MEM32(eax) = 0x470AC680u; /* 0x47009C52: mov dword ptr [eax], 0x470ac680 */
   3871     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009C58: ret  */
   3872     RECOMP_REGS_OUT();
   3873 }
   3874 
   3875 void sub_47009C60(void) {
   3876     int _fpu_cmp = 0;
   3877     uint32_t _cf = 0;
   3878     int _df = 1;
   3879     uint32_t _flag_k = FK_NONE;
   3880     uint32_t _flag_a = 0, _flag_b = 0;
   3881     uint32_t _itail_tgt = 0;
   3882     RECOMP_REGS_LOCALS
   3883     RECOMP_ENTER(0x47009C60u);
   3884 
   3885 L_47009C60:
   3886     eax = ecx; /* 0x47009C60: mov eax, ecx */
   3887     MEM32(eax) = 0x470AC680u; /* 0x47009C62: mov dword ptr [eax], 0x470ac680 */
   3888     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009C68: ret 4 */
   3889     RECOMP_REGS_OUT();
   3890 }
   3891 
   3892 void sub_47009C70(void) {
   3893     int _fpu_cmp = 0;
   3894     uint32_t _cf = 0;
   3895     int _df = 1;
   3896     uint32_t _flag_k = FK_NONE;
   3897     uint32_t _flag_a = 0, _flag_b = 0;
   3898     uint32_t _itail_tgt = 0;
   3899     RECOMP_REGS_LOCALS
   3900     RECOMP_ENTER(0x47009C70u);
   3901 
   3902 L_47009C70:
   3903     eax = ecx; /* 0x47009C70: mov eax, ecx */
   3904     ecx = MEM32(esp + 0x4); /* 0x47009C72: mov ecx, dword ptr [esp + 4] */
   3905     edx = MEM32(ecx + 0x4); /* 0x47009C76: mov edx, dword ptr [ecx + 4] */
   3906     MEM32(eax + 0x4) = edx; /* 0x47009C79: mov dword ptr [eax + 4], edx */
   3907     edx = MEM32(ecx + 0x8); /* 0x47009C7C: mov edx, dword ptr [ecx + 8] */
   3908     MEM32(eax + 0x8) = edx; /* 0x47009C7F: mov dword ptr [eax + 8], edx */
   3909     MEM32(eax) = 0x470AC5C0u; /* 0x47009C82: mov dword ptr [eax], 0x470ac5c0 */
   3910     edx = MEM32(ecx + 0xC); /* 0x47009C88: mov edx, dword ptr [ecx + 0xc] */
   3911     MEM32(eax + 0xC) = edx; /* 0x47009C8B: mov dword ptr [eax + 0xc], edx */
   3912     edx = MEM32(ecx + 0x10); /* 0x47009C8E: mov edx, dword ptr [ecx + 0x10] */
   3913     MEM32(eax + 0x10) = edx; /* 0x47009C91: mov dword ptr [eax + 0x10], edx */
   3914     PUSH32(esp, esi); /* 0x47009C94: push esi */
   3915     PUSH32(esp, edi); /* 0x47009C95: push edi */
   3916     edx = ecx + 0x14; /* 0x47009C96: lea edx, [ecx + 0x14] */
   3917     edi = MEM32(edx); /* 0x47009C99: mov edi, dword ptr [edx] */
   3918     esi = eax + 0x14; /* 0x47009C9B: lea esi, [eax + 0x14] */
   3919     MEM32(esi) = edi; /* 0x47009C9E: mov dword ptr [esi], edi */
   3920     edi = MEM32(edx + 0x4); /* 0x47009CA0: mov edi, dword ptr [edx + 4] */
   3921     MEM32(esi + 0x4) = edi; /* 0x47009CA3: mov dword ptr [esi + 4], edi */
   3922     edx = MEM32(edx + 0x8); /* 0x47009CA6: mov edx, dword ptr [edx + 8] */
   3923     MEM32(esi + 0x8) = edx; /* 0x47009CA9: mov dword ptr [esi + 8], edx */
   3924     edx = MEM32(ecx + 0x20); /* 0x47009CAC: mov edx, dword ptr [ecx + 0x20] */
   3925     MEM32(eax + 0x20) = edx; /* 0x47009CAF: mov dword ptr [eax + 0x20], edx */
   3926     ecx = MEM32(ecx + 0x24); /* 0x47009CB2: mov ecx, dword ptr [ecx + 0x24] */
   3927     edi = POP32_VAL(esp); /* 0x47009CB5: pop edi */
   3928     MEM32(eax + 0x24) = ecx; /* 0x47009CB6: mov dword ptr [eax + 0x24], ecx */
   3929     MEM32(eax) = 0x470AC690u; /* 0x47009CB9: mov dword ptr [eax], 0x470ac690 */
   3930     esi = POP32_VAL(esp); /* 0x47009CBF: pop esi */
   3931     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009CC0: ret 4 */
   3932     RECOMP_REGS_OUT();
   3933 }
   3934 
   3935 void sub_47009CD0(void) {
   3936     int _fpu_cmp = 0;
   3937     uint32_t _cf = 0;
   3938     int _df = 1;
   3939     uint32_t _flag_k = FK_NONE;
   3940     uint32_t _flag_a = 0, _flag_b = 0;
   3941     uint32_t _itail_tgt = 0;
   3942     RECOMP_REGS_LOCALS
   3943     RECOMP_ENTER(0x47009CD0u);
   3944 
   3945 L_47009CD0:
   3946     eax = ecx; /* 0x47009CD0: mov eax, ecx */
   3947     ecx = MEM32(esp + 0x4); /* 0x47009CD2: mov ecx, dword ptr [esp + 4] */
   3948     edx = MEM32(ecx + 0x4); /* 0x47009CD6: mov edx, dword ptr [ecx + 4] */
   3949     MEM32(eax + 0x4) = edx; /* 0x47009CD9: mov dword ptr [eax + 4], edx */
   3950     edx = MEM32(ecx + 0x8); /* 0x47009CDC: mov edx, dword ptr [ecx + 8] */
   3951     MEM32(eax + 0x8) = edx; /* 0x47009CDF: mov dword ptr [eax + 8], edx */
   3952     edx = MEM32(ecx + 0xC); /* 0x47009CE2: mov edx, dword ptr [ecx + 0xc] */
   3953     MEM32(eax + 0xC) = edx; /* 0x47009CE5: mov dword ptr [eax + 0xc], edx */
   3954     edx = MEM32(ecx + 0x10); /* 0x47009CE8: mov edx, dword ptr [ecx + 0x10] */
   3955     PUSH32(esp, esi); /* 0x47009CEB: push esi */
   3956     MEM32(eax + 0x10) = edx; /* 0x47009CEC: mov dword ptr [eax + 0x10], edx */
   3957     PUSH32(esp, edi); /* 0x47009CEF: push edi */
   3958     edx = ecx + 0x14; /* 0x47009CF0: lea edx, [ecx + 0x14] */
   3959     edi = MEM32(edx); /* 0x47009CF3: mov edi, dword ptr [edx] */
   3960     esi = eax + 0x14; /* 0x47009CF5: lea esi, [eax + 0x14] */
   3961     MEM32(esi) = edi; /* 0x47009CF8: mov dword ptr [esi], edi */
   3962     edi = MEM32(edx + 0x4); /* 0x47009CFA: mov edi, dword ptr [edx + 4] */
   3963     MEM32(esi + 0x4) = edi; /* 0x47009CFD: mov dword ptr [esi + 4], edi */
   3964     edx = MEM32(edx + 0x8); /* 0x47009D00: mov edx, dword ptr [edx + 8] */
   3965     MEM32(esi + 0x8) = edx; /* 0x47009D03: mov dword ptr [esi + 8], edx */
   3966     edx = MEM32(ecx + 0x20); /* 0x47009D06: mov edx, dword ptr [ecx + 0x20] */
   3967     MEM32(eax + 0x20) = edx; /* 0x47009D09: mov dword ptr [eax + 0x20], edx */
   3968     ecx = MEM32(ecx + 0x24); /* 0x47009D0C: mov ecx, dword ptr [ecx + 0x24] */
   3969     edi = POP32_VAL(esp); /* 0x47009D0F: pop edi */
   3970     MEM32(eax + 0x24) = ecx; /* 0x47009D10: mov dword ptr [eax + 0x24], ecx */
   3971     esi = POP32_VAL(esp); /* 0x47009D13: pop esi */
   3972     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009D14: ret 4 */
   3973     RECOMP_REGS_OUT();
   3974 }
   3975 
   3976 void sub_47009D20(void) {
   3977     int _fpu_cmp = 0;
   3978     uint32_t _cf = 0;
   3979     int _df = 1;
   3980     uint32_t _flag_k = FK_NONE;
   3981     uint32_t _flag_a = 0, _flag_b = 0;
   3982     uint32_t _itail_tgt = 0;
   3983     RECOMP_REGS_LOCALS
   3984     RECOMP_ENTER(0x47009D20u);
   3985 
   3986 L_47009D20:
   3987     PUSH32(esp, ebx); /* 0x47009D20: push ebx */
   3988     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47009D21: mov bl, byte ptr [esp + 8] */
   3989     /* test LO8(ebx), 2 */ /* 0x47009D25: test bl, 2 */
   3990     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   3991     _cf = 0;
   3992     _flag_k = FK_NARROW(FK_TEST, 24);
   3993     PUSH32(esp, esi); /* 0x47009D28: push esi */
   3994     esi = ecx; /* 0x47009D29: mov esi, ecx */
   3995     if (TEST_Z(_flag_a, _flag_b)) goto L_47009D58; /* 0x47009D2B: je 0x47009d58 */
   3996 L_47009D2D:
   3997     eax = MEM32(esi + (-0x4)); /* 0x47009D2D: mov eax, dword ptr [esi - 4] */
   3998     PUSH32(esp, edi); /* 0x47009D30: push edi */
   3999     PUSH32(esp, 0x4700A1D0u); /* 0x47009D31: push 0x4700a1d0 */
   4000     edi = esi + (-0x4); /* 0x47009D36: lea edi, [esi - 4] */
   4001     PUSH32(esp, eax); /* 0x47009D39: push eax */
   4002     PUSH32(esp, 0x28u); /* 0x47009D3A: push 0x28 */
   4003     PUSH32(esp, esi); /* 0x47009D3C: push esi */
   4004     RECOMP_ICALL(0x470A32EBu); /* 0x47009D3D: call 0x470a32eb */ /* not lifted */
   4005     RECOMP_FLAGS_IN();
   4006     /* test LO8(ebx), 1 */ /* 0x47009D42: test bl, 1 */
   4007     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4008     _cf = 0;
   4009     _flag_k = FK_NARROW(FK_TEST, 24);
   4010     if (TEST_Z(_flag_a, _flag_b)) goto L_47009D50; /* 0x47009D45: je 0x47009d50 */
   4011 L_47009D47:
   4012     PUSH32(esp, edi); /* 0x47009D47: push edi */
   4013     RECOMP_ICALL(0x470A32A2u); /* 0x47009D48: call 0x470a32a2 */ /* not lifted */
   4014     RECOMP_FLAGS_IN();
   4015     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4016     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4017     esp = esp + 4; /* 0x47009D4D: add esp, 4 */
   4018     _flag_k = FK_ADD;
   4019 L_47009D50:
   4020     eax = edi; /* 0x47009D50: mov eax, edi */
   4021     edi = POP32_VAL(esp); /* 0x47009D52: pop edi */
   4022     esi = POP32_VAL(esp); /* 0x47009D53: pop esi */
   4023     ebx = POP32_VAL(esp); /* 0x47009D54: pop ebx */
   4024     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009D55: ret 4 */
   4025 L_47009D58:
   4026     ecx = esi; /* 0x47009D58: mov ecx, esi */
   4027     RECOMP_ICALL(0x4700A1D0u); /* 0x47009D5A: call 0x4700a1d0 */ /* not lifted */
   4028     RECOMP_FLAGS_IN();
   4029     /* test LO8(ebx), 1 */ /* 0x47009D5F: test bl, 1 */
   4030     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4031     _cf = 0;
   4032     _flag_k = FK_NARROW(FK_TEST, 24);
   4033     if (TEST_Z(_flag_a, _flag_b)) goto L_47009D6D; /* 0x47009D62: je 0x47009d6d */
   4034 L_47009D64:
   4035     PUSH32(esp, esi); /* 0x47009D64: push esi */
   4036     RECOMP_ICALL(0x470A32A2u); /* 0x47009D65: call 0x470a32a2 */ /* not lifted */
   4037     RECOMP_FLAGS_IN();
   4038     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4039     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4040     esp = esp + 4; /* 0x47009D6A: add esp, 4 */
   4041     _flag_k = FK_ADD;
   4042 L_47009D6D:
   4043     eax = esi; /* 0x47009D6D: mov eax, esi */
   4044     esi = POP32_VAL(esp); /* 0x47009D6F: pop esi */
   4045     ebx = POP32_VAL(esp); /* 0x47009D70: pop ebx */
   4046     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009D71: ret 4 */
   4047     RECOMP_REGS_OUT();
   4048 }
   4049 
   4050 void sub_47009D80(void) {
   4051     int _fpu_cmp = 0;
   4052     uint32_t _cf = 0;
   4053     int _df = 1;
   4054     uint32_t _flag_k = FK_NONE;
   4055     uint32_t _flag_a = 0, _flag_b = 0;
   4056     uint32_t _itail_tgt = 0;
   4057     RECOMP_REGS_LOCALS
   4058     RECOMP_ENTER(0x47009D80u);
   4059 
   4060 L_47009D80:
   4061     eax = ecx; /* 0x47009D80: mov eax, ecx */
   4062     MEM32(eax) = 0x470AC6D0u; /* 0x47009D82: mov dword ptr [eax], 0x470ac6d0 */
   4063     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009D88: ret  */
   4064     RECOMP_REGS_OUT();
   4065 }
   4066 
   4067 void sub_47009D90(void) {
   4068     int _fpu_cmp = 0;
   4069     uint32_t _cf = 0;
   4070     int _df = 1;
   4071     uint32_t _flag_k = FK_NONE;
   4072     uint32_t _flag_a = 0, _flag_b = 0;
   4073     uint32_t _itail_tgt = 0;
   4074     RECOMP_REGS_LOCALS
   4075     RECOMP_ENTER(0x47009D90u);
   4076 
   4077 L_47009D90:
   4078     eax = ecx; /* 0x47009D90: mov eax, ecx */
   4079     MEM32(eax) = 0x470AC6D0u; /* 0x47009D92: mov dword ptr [eax], 0x470ac6d0 */
   4080     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009D98: ret 4 */
   4081     RECOMP_REGS_OUT();
   4082 }
   4083 
   4084 void sub_47009DA0(void) {
   4085     int _fpu_cmp = 0;
   4086     uint32_t _cf = 0;
   4087     int _df = 1;
   4088     uint32_t _flag_k = FK_NONE;
   4089     uint32_t _flag_a = 0, _flag_b = 0;
   4090     uint32_t _itail_tgt = 0;
   4091     RECOMP_REGS_LOCALS
   4092     RECOMP_ENTER(0x47009DA0u);
   4093 
   4094 L_47009DA0:
   4095     eax = ecx; /* 0x47009DA0: mov eax, ecx */
   4096     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4097     ecx = 0; /* 0x47009DA2: xor ecx, ecx */
   4098     _cf = 0;
   4099     _flag_k = FK_TEST;
   4100     MEM32(eax) = ecx; /* 0x47009DA4: mov dword ptr [eax], ecx */
   4101     MEM32(eax + 0x4) = ecx; /* 0x47009DA6: mov dword ptr [eax + 4], ecx */
   4102     MEM32(eax + 0x8) = ecx; /* 0x47009DA9: mov dword ptr [eax + 8], ecx */
   4103     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009DAC: ret  */
   4104     RECOMP_REGS_OUT();
   4105 }
   4106 
   4107 void sub_47009DB0(void) {
   4108     int _fpu_cmp = 0;
   4109     uint32_t _cf = 0;
   4110     int _df = 1;
   4111     uint32_t _flag_k = FK_NONE;
   4112     uint32_t _flag_a = 0, _flag_b = 0;
   4113     uint32_t _itail_tgt = 0;
   4114     RECOMP_REGS_LOCALS
   4115     RECOMP_ENTER(0x47009DB0u);
   4116 
   4117 L_47009DB0:
   4118     eax = ecx; /* 0x47009DB0: mov eax, ecx */
   4119     ecx = MEM32(esp + 0x4); /* 0x47009DB2: mov ecx, dword ptr [esp + 4] */
   4120     edx = MEM32(ecx); /* 0x47009DB6: mov edx, dword ptr [ecx] */
   4121     ecx = MEM32(esp + 0x8); /* 0x47009DB8: mov ecx, dword ptr [esp + 8] */
   4122     MEM32(eax) = edx; /* 0x47009DBC: mov dword ptr [eax], edx */
   4123     edx = MEM32(esp + 0xC); /* 0x47009DBE: mov edx, dword ptr [esp + 0xc] */
   4124     MEM32(eax + 0x4) = ecx; /* 0x47009DC2: mov dword ptr [eax + 4], ecx */
   4125     MEM32(eax + 0x8) = edx; /* 0x47009DC5: mov dword ptr [eax + 8], edx */
   4126     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47009DC8: ret 0xc */
   4127     RECOMP_REGS_OUT();
   4128 }
   4129 
   4130 void sub_47009DD0(void) {
   4131     int _fpu_cmp = 0;
   4132     uint32_t _cf = 0;
   4133     int _df = 1;
   4134     uint32_t _flag_k = FK_NONE;
   4135     uint32_t _flag_a = 0, _flag_b = 0;
   4136     uint32_t _itail_tgt = 0;
   4137     RECOMP_REGS_LOCALS
   4138     RECOMP_ENTER(0x47009DD0u);
   4139 
   4140 L_47009DD0:
   4141     MEM32(0x4710DCAC) = 0x47104BD4u; /* 0x47009DD0: mov dword ptr [0x4710dcac], 0x47104bd4 */
   4142     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009DDA: ret  */
   4143     RECOMP_REGS_OUT();
   4144 }
   4145 
   4146 void sub_47009DE0(void) {
   4147     int _fpu_cmp = 0;
   4148     uint32_t _cf = 0;
   4149     int _df = 1;
   4150     uint32_t _flag_k = FK_NONE;
   4151     uint32_t _flag_a = 0, _flag_b = 0;
   4152     uint32_t _itail_tgt = 0;
   4153     RECOMP_REGS_LOCALS
   4154     RECOMP_ENTER(0x47009DE0u);
   4155 
   4156 L_47009DE0:
   4157     eax = MEM32(esp + 0x4); /* 0x47009DE0: mov eax, dword ptr [esp + 4] */
   4158     /* test eax, eax */ /* 0x47009DE4: test eax, eax */
   4159     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4160     _cf = 0;
   4161     _flag_k = FK_TEST;
   4162     PUSH32(esp, esi); /* 0x47009DE6: push esi */
   4163     esi = ecx; /* 0x47009DE7: mov esi, ecx */
   4164     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009E0D; /* 0x47009DE9: jne 0x47009e0d */
   4165 L_47009DEB:
   4166     /* test esi, esi */ /* 0x47009DEB: test esi, esi */
   4167     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4168     _cf = 0;
   4169     _flag_k = FK_TEST;
   4170     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009E01; /* 0x47009DED: jne 0x47009e01 */
   4171 L_47009DEF:
   4172     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009DEF: call dword ptr [0x470ac3c8] */
   4173     RECOMP_FLAGS_IN();
   4174     MEM32(eax) = 0xEu; /* 0x47009DF5: mov dword ptr [eax], 0xe */
   4175     eax = esi; /* 0x47009DFB: mov eax, esi */
   4176     esi = POP32_VAL(esp); /* 0x47009DFD: pop esi */
   4177     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009DFE: ret 4 */
   4178 L_47009E01:
   4179     MEM32(esi) = 0xFFFFFFFFu; /* 0x47009E01: mov dword ptr [esi], 0xffffffff */
   4180     eax = esi; /* 0x47009E07: mov eax, esi */
   4181     esi = POP32_VAL(esp); /* 0x47009E09: pop esi */
   4182     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009E0A: ret 4 */
   4183 L_47009E0D:
   4184     eax = MEM32(eax); /* 0x47009E0D: mov eax, dword ptr [eax] */
   4185     MEM32(esi) = eax; /* 0x47009E0F: mov dword ptr [esi], eax */
   4186     eax = esi; /* 0x47009E11: mov eax, esi */
   4187     esi = POP32_VAL(esp); /* 0x47009E13: pop esi */
   4188     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009E14: ret 4 */
   4189     RECOMP_REGS_OUT();
   4190 }
   4191 
   4192 void sub_47009E20(void) {
   4193     int _fpu_cmp = 0;
   4194     uint32_t _cf = 0;
   4195     int _df = 1;
   4196     uint32_t _flag_k = FK_NONE;
   4197     uint32_t _flag_a = 0, _flag_b = 0;
   4198     uint32_t _itail_tgt = 0;
   4199     RECOMP_REGS_LOCALS
   4200     RECOMP_ENTER(0x47009E20u);
   4201 
   4202 L_47009E20:
   4203     eax = MEM32(esp + 0x4); /* 0x47009E20: mov eax, dword ptr [esp + 4] */
   4204     /* test eax, eax */ /* 0x47009E24: test eax, eax */
   4205     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4206     _cf = 0;
   4207     _flag_k = FK_TEST;
   4208     PUSH32(esp, esi); /* 0x47009E26: push esi */
   4209     esi = ecx; /* 0x47009E27: mov esi, ecx */
   4210     if (TEST_Z(_flag_a, _flag_b)) goto L_47009E4D; /* 0x47009E29: je 0x47009e4d */
   4211 L_47009E2B:
   4212     /* test esi, esi */ /* 0x47009E2B: test esi, esi */
   4213     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4214     _cf = 0;
   4215     _flag_k = FK_TEST;
   4216     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009E41; /* 0x47009E2D: jne 0x47009e41 */
   4217 L_47009E2F:
   4218     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009E2F: call dword ptr [0x470ac3c8] */
   4219     RECOMP_FLAGS_IN();
   4220     MEM32(eax) = 0xEu; /* 0x47009E35: mov dword ptr [eax], 0xe */
   4221     eax = esi; /* 0x47009E3B: mov eax, esi */
   4222     esi = POP32_VAL(esp); /* 0x47009E3D: pop esi */
   4223     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009E3E: ret 4 */
   4224 L_47009E41:
   4225     MEM32(esi) = 0xFFFFFFFFu; /* 0x47009E41: mov dword ptr [esi], 0xffffffff */
   4226     eax = esi; /* 0x47009E47: mov eax, esi */
   4227     esi = POP32_VAL(esp); /* 0x47009E49: pop esi */
   4228     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009E4A: ret 4 */
   4229 L_47009E4D:
   4230     /* test esi, esi */ /* 0x47009E4D: test esi, esi */
   4231     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4232     _cf = 0;
   4233     _flag_k = FK_TEST;
   4234     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009E63; /* 0x47009E4F: jne 0x47009e63 */
   4235 L_47009E51:
   4236     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009E51: call dword ptr [0x470ac3c8] */
   4237     RECOMP_FLAGS_IN();
   4238     MEM32(eax) = 0xEu; /* 0x47009E57: mov dword ptr [eax], 0xe */
   4239     eax = esi; /* 0x47009E5D: mov eax, esi */
   4240     esi = POP32_VAL(esp); /* 0x47009E5F: pop esi */
   4241     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009E60: ret 4 */
   4242 L_47009E63:
   4243     MEM32(esi) = 0; /* 0x47009E63: mov dword ptr [esi], 0 */
   4244     eax = esi; /* 0x47009E69: mov eax, esi */
   4245     esi = POP32_VAL(esp); /* 0x47009E6B: pop esi */
   4246     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009E6C: ret 4 */
   4247     RECOMP_REGS_OUT();
   4248 }
   4249 
   4250 void sub_47009E70(void) {
   4251     int _fpu_cmp = 0;
   4252     uint32_t _cf = 0;
   4253     int _df = 1;
   4254     uint32_t _flag_k = FK_NONE;
   4255     uint32_t _flag_a = 0, _flag_b = 0;
   4256     uint32_t _itail_tgt = 0;
   4257     RECOMP_REGS_LOCALS
   4258     RECOMP_ENTER(0x47009E70u);
   4259 
   4260 L_47009E70:
   4261     /* test ecx, ecx */ /* 0x47009E70: test ecx, ecx */
   4262     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4263     _cf = 0;
   4264     _flag_k = FK_TEST;
   4265     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009E81; /* 0x47009E72: jne 0x47009e81 */
   4266 L_47009E74:
   4267     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009E74: call dword ptr [0x470ac3c8] */
   4268     RECOMP_FLAGS_IN();
   4269     MEM32(eax) = 0xEu; /* 0x47009E7A: mov dword ptr [eax], 0xe */
   4270     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009E80: ret  */
   4271 L_47009E81:
   4272     MEM32(ecx) = 0; /* 0x47009E81: mov dword ptr [ecx], 0 */
   4273     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009E87: ret  */
   4274     RECOMP_REGS_OUT();
   4275 }
   4276 
   4277 void sub_47009E90(void) {
   4278     int _fpu_cmp = 0;
   4279     uint32_t _cf = 0;
   4280     int _df = 1;
   4281     uint32_t _flag_k = FK_NONE;
   4282     uint32_t _flag_a = 0, _flag_b = 0;
   4283     uint32_t _itail_tgt = 0;
   4284     RECOMP_REGS_LOCALS
   4285     RECOMP_ENTER(0x47009E90u);
   4286 
   4287 L_47009E90:
   4288     /* test ecx, ecx */ /* 0x47009E90: test ecx, ecx */
   4289     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4290     _cf = 0;
   4291     _flag_k = FK_TEST;
   4292     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009EA4; /* 0x47009E92: jne 0x47009ea4 */
   4293 L_47009E94:
   4294     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009E94: call dword ptr [0x470ac3c8] */
   4295     RECOMP_FLAGS_IN();
   4296     MEM32(eax) = 0xEu; /* 0x47009E9A: mov dword ptr [eax], 0xe */
   4297     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4298     eax = eax | 0xFFFFFFFFu; /* 0x47009EA0: or eax, 0xffffffff */
   4299     _cf = 0;
   4300     _flag_k = FK_TEST;
   4301     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009EA3: ret  */
   4302 L_47009EA4:
   4303     MEM32(ecx) = 0; /* 0x47009EA4: mov dword ptr [ecx], 0 */
   4304     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4305     eax = 0; /* 0x47009EAA: xor eax, eax */
   4306     _cf = 0;
   4307     _flag_k = FK_TEST;
   4308     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009EAC: ret  */
   4309     RECOMP_REGS_OUT();
   4310 }
   4311 
   4312 void sub_47009EB0(void) {
   4313     int _fpu_cmp = 0;
   4314     uint32_t _cf = 0;
   4315     int _df = 1;
   4316     uint32_t _flag_k = FK_NONE;
   4317     uint32_t _flag_a = 0, _flag_b = 0;
   4318     uint32_t _itail_tgt = 0;
   4319     RECOMP_REGS_LOCALS
   4320     RECOMP_ENTER(0x47009EB0u);
   4321 
   4322 L_47009EB0:
   4323     /* test ecx, ecx */ /* 0x47009EB0: test ecx, ecx */
   4324     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4325     _cf = 0;
   4326     _flag_k = FK_TEST;
   4327     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009EC4; /* 0x47009EB2: jne 0x47009ec4 */
   4328 L_47009EB4:
   4329     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009EB4: call dword ptr [0x470ac3c8] */
   4330     RECOMP_FLAGS_IN();
   4331     MEM32(eax) = 0xEu; /* 0x47009EBA: mov dword ptr [eax], 0xe */
   4332     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4333     eax = eax | 0xFFFFFFFFu; /* 0x47009EC0: or eax, 0xffffffff */
   4334     _cf = 0;
   4335     _flag_k = FK_TEST;
   4336     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009EC3: ret  */
   4337 L_47009EC4:
   4338     MEM32(ecx) = 0xFFFFFFFFu; /* 0x47009EC4: mov dword ptr [ecx], 0xffffffff */
   4339     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4340     eax = 0; /* 0x47009ECA: xor eax, eax */
   4341     _cf = 0;
   4342     _flag_k = FK_TEST;
   4343     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47009ECC: ret  */
   4344     RECOMP_REGS_OUT();
   4345 }
   4346 
   4347 void sub_47009ED0(void) {
   4348     int _fpu_cmp = 0;
   4349     uint32_t _cf = 0;
   4350     int _df = 1;
   4351     uint32_t _flag_k = FK_NONE;
   4352     uint32_t _flag_a = 0, _flag_b = 0;
   4353     uint32_t _itail_tgt = 0;
   4354     RECOMP_REGS_LOCALS
   4355     RECOMP_ENTER(0x47009ED0u);
   4356 
   4357 L_47009ED0:
   4358     eax = ecx; /* 0x47009ED0: mov eax, ecx */
   4359     /* test eax, eax */ /* 0x47009ED2: test eax, eax */
   4360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4361     _cf = 0;
   4362     _flag_k = FK_TEST;
   4363     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009EE8; /* 0x47009ED4: jne 0x47009ee8 */
   4364 L_47009ED6:
   4365     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009ED6: call dword ptr [0x470ac3c8] */
   4366     RECOMP_FLAGS_IN();
   4367     MEM32(eax) = 0xEu; /* 0x47009EDC: mov dword ptr [eax], 0xe */
   4368     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4369     eax = eax | 0xFFFFFFFFu; /* 0x47009EE2: or eax, 0xffffffff */
   4370     _cf = 0;
   4371     _flag_k = FK_TEST;
   4372     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009EE5: ret 4 */
   4373 L_47009EE8:
   4374     ecx = MEM32(esp + 0x4); /* 0x47009EE8: mov ecx, dword ptr [esp + 4] */
   4375     /* cmp ecx, 1 */ /* 0x47009EEC: cmp ecx, 1 */
   4376     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4378     _flag_k = FK_CMP;
   4379     if (CMP_L(_flag_a, _flag_b)) goto L_47009F05; /* 0x47009EEF: jl 0x47009f05 */
   4380 L_47009EF1:
   4381     /* cmp ecx, 0x17u */ /* 0x47009EF1: cmp ecx, 0x17 */
   4382     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x17u);
   4383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4384     _flag_k = FK_CMP;
   4385     if (CMP_GE(_flag_a, _flag_b)) goto L_47009F05; /* 0x47009EF4: jge 0x47009f05 */
   4386 L_47009EF6:
   4387     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4388     ecx = ecx - 1; /* 0x47009EF6: dec ecx */
   4389     _flag_k = FK_DEC;
   4390     edx = 1; /* 0x47009EF7: mov edx, 1 */
   4391     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x47009EFC: shl edx, cl */
   4392     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4393     edx = edx << ((LO8(ecx)) & 31); /* 0x47009EFC: shl edx, cl */
   4394     _flag_a = (uint32_t)((MEM32(eax) | edx)); _flag_b = (uint32_t)((MEM32(eax) | edx));
   4395     MEM32(eax) = MEM32(eax) | edx; /* 0x47009EFE: or dword ptr [eax], edx */
   4396     _cf = 0;
   4397     _flag_k = FK_TEST;
   4398     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4399     eax = 0; /* 0x47009F00: xor eax, eax */
   4400     _cf = 0;
   4401     _flag_k = FK_TEST;
   4402     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009F02: ret 4 */
   4403 L_47009F05:
   4404     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009F05: call dword ptr [0x470ac3c8] */
   4405     RECOMP_FLAGS_IN();
   4406     MEM32(eax) = 0x16u; /* 0x47009F0B: mov dword ptr [eax], 0x16 */
   4407     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4408     eax = eax | 0xFFFFFFFFu; /* 0x47009F11: or eax, 0xffffffff */
   4409     _cf = 0;
   4410     _flag_k = FK_TEST;
   4411     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009F14: ret 4 */
   4412     RECOMP_REGS_OUT();
   4413 }
   4414 
   4415 void sub_47009F20(void) {
   4416     int _fpu_cmp = 0;
   4417     uint32_t _cf = 0;
   4418     int _df = 1;
   4419     uint32_t _flag_k = FK_NONE;
   4420     uint32_t _flag_a = 0, _flag_b = 0;
   4421     uint32_t _itail_tgt = 0;
   4422     RECOMP_REGS_LOCALS
   4423     RECOMP_ENTER(0x47009F20u);
   4424 
   4425 L_47009F20:
   4426     eax = ecx; /* 0x47009F20: mov eax, ecx */
   4427     /* test eax, eax */ /* 0x47009F22: test eax, eax */
   4428     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4429     _cf = 0;
   4430     _flag_k = FK_TEST;
   4431     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009F38; /* 0x47009F24: jne 0x47009f38 */
   4432 L_47009F26:
   4433     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009F26: call dword ptr [0x470ac3c8] */
   4434     RECOMP_FLAGS_IN();
   4435     MEM32(eax) = 0xEu; /* 0x47009F2C: mov dword ptr [eax], 0xe */
   4436     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4437     eax = eax | 0xFFFFFFFFu; /* 0x47009F32: or eax, 0xffffffff */
   4438     _cf = 0;
   4439     _flag_k = FK_TEST;
   4440     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009F35: ret 4 */
   4441 L_47009F38:
   4442     ecx = MEM32(esp + 0x4); /* 0x47009F38: mov ecx, dword ptr [esp + 4] */
   4443     /* cmp ecx, 1 */ /* 0x47009F3C: cmp ecx, 1 */
   4444     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4446     _flag_k = FK_CMP;
   4447     if (CMP_L(_flag_a, _flag_b)) goto L_47009F5B; /* 0x47009F3F: jl 0x47009f5b */
   4448 L_47009F41:
   4449     /* cmp ecx, 0x17u */ /* 0x47009F41: cmp ecx, 0x17 */
   4450     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x17u);
   4451     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4452     _flag_k = FK_CMP;
   4453     if (CMP_GE(_flag_a, _flag_b)) goto L_47009F5B; /* 0x47009F44: jge 0x47009f5b */
   4454 L_47009F46:
   4455     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4456     ecx = ecx - 1; /* 0x47009F46: dec ecx */
   4457     _flag_k = FK_DEC;
   4458     edx = 1; /* 0x47009F47: mov edx, 1 */
   4459     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x47009F4C: shl edx, cl */
   4460     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4461     edx = edx << ((LO8(ecx)) & 31); /* 0x47009F4C: shl edx, cl */
   4462     ecx = MEM32(eax); /* 0x47009F4E: mov ecx, dword ptr [eax] */
   4463     edx = ~edx; /* 0x47009F50: not edx */
   4464     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4465     ecx = ecx & edx; /* 0x47009F52: and ecx, edx */
   4466     _cf = 0;
   4467     _flag_k = FK_TEST;
   4468     MEM32(eax) = ecx; /* 0x47009F54: mov dword ptr [eax], ecx */
   4469     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4470     eax = 0; /* 0x47009F56: xor eax, eax */
   4471     _cf = 0;
   4472     _flag_k = FK_TEST;
   4473     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009F58: ret 4 */
   4474 L_47009F5B:
   4475     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009F5B: call dword ptr [0x470ac3c8] */
   4476     RECOMP_FLAGS_IN();
   4477     MEM32(eax) = 0x16u; /* 0x47009F61: mov dword ptr [eax], 0x16 */
   4478     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4479     eax = eax | 0xFFFFFFFFu; /* 0x47009F67: or eax, 0xffffffff */
   4480     _cf = 0;
   4481     _flag_k = FK_TEST;
   4482     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009F6A: ret 4 */
   4483     RECOMP_REGS_OUT();
   4484 }
   4485 
   4486 void sub_47009F70(void) {
   4487     int _fpu_cmp = 0;
   4488     uint32_t _cf = 0;
   4489     int _df = 1;
   4490     uint32_t _flag_k = FK_NONE;
   4491     uint32_t _flag_a = 0, _flag_b = 0;
   4492     uint32_t _itail_tgt = 0;
   4493     RECOMP_REGS_LOCALS
   4494     RECOMP_ENTER(0x47009F70u);
   4495 
   4496 L_47009F70:
   4497     edx = ecx; /* 0x47009F70: mov edx, ecx */
   4498     /* test edx, edx */ /* 0x47009F72: test edx, edx */
   4499     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4500     _cf = 0;
   4501     _flag_k = FK_TEST;
   4502     if (TEST_NZ(_flag_a, _flag_b)) goto L_47009F88; /* 0x47009F74: jne 0x47009f88 */
   4503 L_47009F76:
   4504     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009F76: call dword ptr [0x470ac3c8] */
   4505     RECOMP_FLAGS_IN();
   4506     MEM32(eax) = 0xEu; /* 0x47009F7C: mov dword ptr [eax], 0xe */
   4507     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4508     eax = eax | 0xFFFFFFFFu; /* 0x47009F82: or eax, 0xffffffff */
   4509     _cf = 0;
   4510     _flag_k = FK_TEST;
   4511     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009F85: ret 4 */
   4512 L_47009F88:
   4513     eax = MEM32(esp + 0x4); /* 0x47009F88: mov eax, dword ptr [esp + 4] */
   4514     /* cmp eax, 1 */ /* 0x47009F8C: cmp eax, 1 */
   4515     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4517     _flag_k = FK_CMP;
   4518     if (CMP_L(_flag_a, _flag_b)) goto L_47009FAB; /* 0x47009F8F: jl 0x47009fab */
   4519 L_47009F91:
   4520     /* cmp eax, 0x17u */ /* 0x47009F91: cmp eax, 0x17 */
   4521     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x17u);
   4522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4523     _flag_k = FK_CMP;
   4524     if (CMP_GE(_flag_a, _flag_b)) goto L_47009FAB; /* 0x47009F94: jge 0x47009fab */
   4525 L_47009F96:
   4526     ecx = eax + (-0x1); /* 0x47009F96: lea ecx, [eax - 1] */
   4527     eax = 1; /* 0x47009F99: mov eax, 1 */
   4528     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((eax) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x47009F9E: shl eax, cl */
   4529     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((eax << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4530     eax = eax << ((LO8(ecx)) & 31); /* 0x47009F9E: shl eax, cl */
   4531     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4532     eax = eax & MEM32(edx); /* 0x47009FA0: and eax, dword ptr [edx] */
   4533     _cf = 0;
   4534     _flag_k = FK_TEST;
   4535     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   4536     _cf = (eax) != 0;
   4537     eax = (uint32_t)(-(int32_t)eax); /* 0x47009FA2: neg eax */
   4538     _flag_k = FK_CMP;
   4539     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47009FA4: sbb eax, eax */
   4540       eax = _sc ? 0xFFFFFFFFu : 0;
   4541       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4542       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4543     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   4544     _cf = (eax) != 0;
   4545     eax = (uint32_t)(-(int32_t)eax); /* 0x47009FA6: neg eax */
   4546     _flag_k = FK_CMP;
   4547     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009FA8: ret 4 */
   4548 L_47009FAB:
   4549     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47009FAB: call dword ptr [0x470ac3c8] */
   4550     RECOMP_FLAGS_IN();
   4551     MEM32(eax) = 0x16u; /* 0x47009FB1: mov dword ptr [eax], 0x16 */
   4552     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4553     eax = eax | 0xFFFFFFFFu; /* 0x47009FB7: or eax, 0xffffffff */
   4554     _cf = 0;
   4555     _flag_k = FK_TEST;
   4556     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009FBA: ret 4 */
   4557     RECOMP_REGS_OUT();
   4558 }
   4559 
   4560 void sub_47009FC0(void) {
   4561     int _fpu_cmp = 0;
   4562     uint32_t _cf = 0;
   4563     int _df = 1;
   4564     uint32_t _flag_k = FK_NONE;
   4565     uint32_t _flag_a = 0, _flag_b = 0;
   4566     uint32_t _itail_tgt = 0;
   4567     RECOMP_REGS_LOCALS
   4568     RECOMP_ENTER(0x47009FC0u);
   4569 
   4570 L_47009FC0:
   4571     eax = MEM32(esp + 0x4); /* 0x47009FC0: mov eax, dword ptr [esp + 4] */
   4572     /* test eax, eax */ /* 0x47009FC4: test eax, eax */
   4573     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4574     _cf = 0;
   4575     _flag_k = FK_TEST;
   4576     if (TEST_Z(_flag_a, _flag_b)) goto L_47009FCD; /* 0x47009FC6: je 0x47009fcd */
   4577 L_47009FC8:
   4578     eax = MEM32(eax); /* 0x47009FC8: mov eax, dword ptr [eax] */
   4579     MEM32(ecx + 0x8) = eax; /* 0x47009FCA: mov dword ptr [ecx + 8], eax */
   4580 L_47009FCD:
   4581     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009FCD: ret 4 */
   4582     RECOMP_REGS_OUT();
   4583 }
   4584 
   4585 void sub_47009FD0(void) {
   4586     int _fpu_cmp = 0;
   4587     uint32_t _cf = 0;
   4588     int _df = 1;
   4589     uint32_t _flag_k = FK_NONE;
   4590     uint32_t _flag_a = 0, _flag_b = 0;
   4591     uint32_t _itail_tgt = 0;
   4592     RECOMP_REGS_LOCALS
   4593     RECOMP_ENTER(0x47009FD0u);
   4594 
   4595 L_47009FD0:
   4596     eax = MEM32(esp + 0x4); /* 0x47009FD0: mov eax, dword ptr [esp + 4] */
   4597     edx = MEM32(eax); /* 0x47009FD4: mov edx, dword ptr [eax] */
   4598     MEM32(ecx + 0x8) = edx; /* 0x47009FD6: mov dword ptr [ecx + 8], edx */
   4599     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009FD9: ret 4 */
   4600     RECOMP_REGS_OUT();
   4601 }
   4602 
   4603 void sub_47009FE0(void) {
   4604     int _fpu_cmp = 0;
   4605     uint32_t _cf = 0;
   4606     int _df = 1;
   4607     uint32_t _flag_k = FK_NONE;
   4608     uint32_t _flag_a = 0, _flag_b = 0;
   4609     uint32_t _itail_tgt = 0;
   4610     RECOMP_REGS_LOCALS
   4611     RECOMP_ENTER(0x47009FE0u);
   4612 
   4613 L_47009FE0:
   4614     eax = MEM32(esp + 0x4); /* 0x47009FE0: mov eax, dword ptr [esp + 4] */
   4615     edx = MEM32(eax); /* 0x47009FE4: mov edx, dword ptr [eax] */
   4616     MEM32(ecx) = edx; /* 0x47009FE6: mov dword ptr [ecx], edx */
   4617     edx = MEM32(eax + 0x4); /* 0x47009FE8: mov edx, dword ptr [eax + 4] */
   4618     MEM32(ecx + 0x4) = edx; /* 0x47009FEB: mov dword ptr [ecx + 4], edx */
   4619     eax = MEM32(eax + 0x8); /* 0x47009FEE: mov eax, dword ptr [eax + 8] */
   4620     MEM32(ecx + 0x8) = eax; /* 0x47009FF1: mov dword ptr [ecx + 8], eax */
   4621     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47009FF4: ret 4 */
   4622     RECOMP_REGS_OUT();
   4623 }
   4624 
   4625 void sub_4700A000(void) {
   4626     int _fpu_cmp = 0;
   4627     uint32_t _cf = 0;
   4628     int _df = 1;
   4629     uint32_t _flag_k = FK_NONE;
   4630     uint32_t _flag_a = 0, _flag_b = 0;
   4631     uint32_t _itail_tgt = 0;
   4632     RECOMP_REGS_LOCALS
   4633     RECOMP_ENTER(0x4700A000u);
   4634 
   4635 L_4700A000:
   4636     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4638     esp = esp - 0xCu; /* 0x4700A000: sub esp, 0xc */
   4639     _flag_k = FK_CMP;
   4640     PUSH32(esp, esi); /* 0x4700A003: push esi */
   4641     esi = MEM32(esp + 0x18); /* 0x4700A004: mov esi, dword ptr [esp + 0x18] */
   4642     PUSH32(esp, edi); /* 0x4700A008: push edi */
   4643     edi = MEM32(esp + 0x18); /* 0x4700A009: mov edi, dword ptr [esp + 0x18] */
   4644     /* test edi, edi */ /* 0x4700A00D: test edi, edi */
   4645     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   4646     _cf = 0;
   4647     _flag_k = FK_TEST;
   4648     if (TEST_NZ(_flag_a, _flag_b)) goto L_4700A01B; /* 0x4700A00F: jne 0x4700a01b */
   4649 L_4700A011:
   4650     edi = POP32_VAL(esp); /* 0x4700A011: pop edi */
   4651     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4652     eax = 0; /* 0x4700A012: xor eax, eax */
   4653     _cf = 0;
   4654     _flag_k = FK_TEST;
   4655     esi = POP32_VAL(esp); /* 0x4700A014: pop esi */
   4656     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4658     esp = esp + 0xCu; /* 0x4700A015: add esp, 0xc */
   4659     _flag_k = FK_ADD;
   4660     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700A018: ret 8 */
   4661 L_4700A01B:
   4662     /* test esi, esi */ /* 0x4700A01B: test esi, esi */
   4663     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4664     _cf = 0;
   4665     _flag_k = FK_TEST;
   4666     if (TEST_NZ(_flag_a, _flag_b)) goto L_4700A023; /* 0x4700A01D: jne 0x4700a023 */
   4667 L_4700A01F:
   4668     esi = esp + 0x8; /* 0x4700A01F: lea esi, [esp + 8] */
   4669 L_4700A023:
   4670     /* test ecx, ecx */ /* 0x4700A023: test ecx, ecx */
   4671     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4672     _cf = 0;
   4673     _flag_k = FK_TEST;
   4674     if (TEST_NZ(_flag_a, _flag_b)) goto L_4700A052; /* 0x4700A025: jne 0x4700a052 */
   4675 L_4700A027:
   4676     PUSH32(esp, ebx); /* 0x4700A027: push ebx */
   4677     ebx = MEM32(0x470AC214); /* 0x4700A028: mov ebx, dword ptr [0x470ac214] */
   4678     PUSH32(esp, 1); /* 0x4700A02E: push 1 */
   4679     PUSH32(esp, edi); /* 0x4700A030: push edi */
   4680     RECOMP_ICALL(ebx); /* 0x4700A031: call ebx */
   4681     RECOMP_FLAGS_IN();
   4682     PUSH32(esp, eax); /* 0x4700A033: push eax */
   4683     PUSH32(esp, edi); /* 0x4700A034: push edi */
   4684     MEM32(esi + 0x4) = eax; /* 0x4700A035: mov dword ptr [esi + 4], eax */
   4685     RECOMP_ICALL(ebx); /* 0x4700A038: call ebx */
   4686     RECOMP_FLAGS_IN();
   4687     edx = MEM32(esi + 0x4); /* 0x4700A03A: mov edx, dword ptr [esi + 4] */
   4688     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4689     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4690     esp = esp + 0x10u; /* 0x4700A03D: add esp, 0x10 */
   4691     _flag_k = FK_ADD;
   4692     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4693     eax = 0; /* 0x4700A040: xor eax, eax */
   4694     _cf = 0;
   4695     _flag_k = FK_TEST;
   4696     /* cmp edx, 0xFFFFFFFFu */ /* 0x4700A042: cmp edx, -1 */
   4697     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4698     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4699     _flag_k = FK_CMP;
   4700     SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x4700A045: setne al */
   4701     ebx = POP32_VAL(esp); /* 0x4700A048: pop ebx */
   4702     edi = POP32_VAL(esp); /* 0x4700A049: pop edi */
   4703     esi = POP32_VAL(esp); /* 0x4700A04A: pop esi */
   4704     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4705     eax = eax - 1; /* 0x4700A04B: dec eax */
   4706     _flag_k = FK_DEC;
   4707     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4708     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4709     esp = esp + 0xCu; /* 0x4700A04C: add esp, 0xc */
   4710     _flag_k = FK_ADD;
   4711     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700A04F: ret 8 */
   4712 L_4700A052:
   4713     eax = MEM32(ecx + 0x4); /* 0x4700A052: mov eax, dword ptr [ecx + 4] */
   4714     PUSH32(esp, eax); /* 0x4700A055: push eax */
   4715     PUSH32(esp, edi); /* 0x4700A056: push edi */
   4716     RECOMP_ICALL(MEM32(0x470AC214)); /* 0x4700A057: call dword ptr [0x470ac214] */
   4717     RECOMP_FLAGS_IN();
   4718     MEM32(esi + 0x4) = eax; /* 0x4700A05D: mov dword ptr [esi + 4], eax */
   4719     edx = MEM32(esi + 0x4); /* 0x4700A060: mov edx, dword ptr [esi + 4] */
   4720     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4721     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4722     esp = esp + 8; /* 0x4700A063: add esp, 8 */
   4723     _flag_k = FK_ADD;
   4724     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4725     eax = 0; /* 0x4700A066: xor eax, eax */
   4726     _cf = 0;
   4727     _flag_k = FK_TEST;
   4728     /* cmp edx, 0xFFFFFFFFu */ /* 0x4700A068: cmp edx, -1 */
   4729     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4731     _flag_k = FK_CMP;
   4732     SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x4700A06B: setne al */
   4733     edi = POP32_VAL(esp); /* 0x4700A06E: pop edi */
   4734     esi = POP32_VAL(esp); /* 0x4700A06F: pop esi */
   4735     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4736     eax = eax - 1; /* 0x4700A070: dec eax */
   4737     _flag_k = FK_DEC;
   4738     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4739     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4740     esp = esp + 0xCu; /* 0x4700A071: add esp, 0xc */
   4741     _flag_k = FK_ADD;
   4742     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700A074: ret 8 */
   4743     RECOMP_REGS_OUT();
   4744 }
   4745 
   4746 void sub_4700A080(void) {
   4747     int _fpu_cmp = 0;
   4748     uint32_t _cf = 0;
   4749     int _df = 1;
   4750     uint32_t _flag_k = FK_NONE;
   4751     uint32_t _flag_a = 0, _flag_b = 0;
   4752     uint32_t _itail_tgt = 0;
   4753     RECOMP_REGS_LOCALS
   4754     RECOMP_ENTER(0x4700A080u);
   4755 
   4756 L_4700A080:
   4757     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4759     esp = esp - 0xCu; /* 0x4700A080: sub esp, 0xc */
   4760     _flag_k = FK_CMP;
   4761     PUSH32(esp, esi); /* 0x4700A083: push esi */
   4762     PUSH32(esp, edi); /* 0x4700A084: push edi */
   4763     edi = MEM32(esp + 0x18); /* 0x4700A085: mov edi, dword ptr [esp + 0x18] */
   4764     /* test edi, edi */ /* 0x4700A089: test edi, edi */
   4765     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   4766     _cf = 0;
   4767     _flag_k = FK_TEST;
   4768     esi = ecx; /* 0x4700A08B: mov esi, ecx */
   4769     if (TEST_NZ(_flag_a, _flag_b)) goto L_4700A099; /* 0x4700A08D: jne 0x4700a099 */
   4770 L_4700A08F:
   4771     edi = POP32_VAL(esp); /* 0x4700A08F: pop edi */
   4772     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4773     eax = 0; /* 0x4700A090: xor eax, eax */
   4774     _cf = 0;
   4775     _flag_k = FK_TEST;
   4776     esi = POP32_VAL(esp); /* 0x4700A092: pop esi */
   4777     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4778     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4779     esp = esp + 0xCu; /* 0x4700A093: add esp, 0xc */
   4780     _flag_k = FK_ADD;
   4781     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700A096: ret 4 */
   4782 L_4700A099:
   4783     /* test esi, esi */ /* 0x4700A099: test esi, esi */
   4784     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4785     _cf = 0;
   4786     _flag_k = FK_TEST;
   4787     if (TEST_NZ(_flag_a, _flag_b)) goto L_4700A0A1; /* 0x4700A09B: jne 0x4700a0a1 */
   4788 L_4700A09D:
   4789     esi = esp + 0x8; /* 0x4700A09D: lea esi, [esp + 8] */
   4790 L_4700A0A1:
   4791     PUSH32(esp, ebx); /* 0x4700A0A1: push ebx */
   4792     ebx = MEM32(0x470AC214); /* 0x4700A0A2: mov ebx, dword ptr [0x470ac214] */
   4793     PUSH32(esp, 1); /* 0x4700A0A8: push 1 */
   4794     PUSH32(esp, edi); /* 0x4700A0AA: push edi */
   4795     RECOMP_ICALL(ebx); /* 0x4700A0AB: call ebx */
   4796     RECOMP_FLAGS_IN();
   4797     PUSH32(esp, eax); /* 0x4700A0AD: push eax */
   4798     PUSH32(esp, edi); /* 0x4700A0AE: push edi */
   4799     MEM32(esi + 0x4) = eax; /* 0x4700A0AF: mov dword ptr [esi + 4], eax */
   4800     RECOMP_ICALL(ebx); /* 0x4700A0B2: call ebx */
   4801     RECOMP_FLAGS_IN();
   4802     edx = MEM32(esi + 0x4); /* 0x4700A0B4: mov edx, dword ptr [esi + 4] */
   4803     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4804     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4805     esp = esp + 0x10u; /* 0x4700A0B7: add esp, 0x10 */
   4806     _flag_k = FK_ADD;
   4807     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4808     eax = 0; /* 0x4700A0BA: xor eax, eax */
   4809     _cf = 0;
   4810     _flag_k = FK_TEST;
   4811     /* cmp edx, 0xFFFFFFFFu */ /* 0x4700A0BC: cmp edx, -1 */
   4812     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4814     _flag_k = FK_CMP;
   4815     SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x4700A0BF: setne al */
   4816     ebx = POP32_VAL(esp); /* 0x4700A0C2: pop ebx */
   4817     edi = POP32_VAL(esp); /* 0x4700A0C3: pop edi */
   4818     esi = POP32_VAL(esp); /* 0x4700A0C4: pop esi */
   4819     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4820     eax = eax - 1; /* 0x4700A0C5: dec eax */
   4821     _flag_k = FK_DEC;
   4822     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4823     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4824     esp = esp + 0xCu; /* 0x4700A0C6: add esp, 0xc */
   4825     _flag_k = FK_ADD;
   4826     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700A0C9: ret 4 */
   4827     RECOMP_REGS_OUT();
   4828 }
   4829 
   4830 void sub_4700A0D0(void) {
   4831     int _fpu_cmp = 0;
   4832     uint32_t _cf = 0;
   4833     int _df = 1;
   4834     uint32_t _flag_k = FK_NONE;
   4835     uint32_t _flag_a = 0, _flag_b = 0;
   4836     uint32_t _itail_tgt = 0;
   4837     RECOMP_REGS_LOCALS
   4838     RECOMP_ENTER(0x4700A0D0u);
   4839 
   4840 L_4700A0D0:
   4841     eax = MEM32(esp + 0x8); /* 0x4700A0D0: mov eax, dword ptr [esp + 8] */
   4842     PUSH32(esp, esi); /* 0x4700A0D4: push esi */
   4843     esi = MEM32(eax); /* 0x4700A0D5: mov esi, dword ptr [eax] */
   4844     edx = ecx; /* 0x4700A0D7: mov edx, ecx */
   4845     MEM32(edx) = esi; /* 0x4700A0D9: mov dword ptr [edx], esi */
   4846     esi = MEM32(eax + 0x4); /* 0x4700A0DB: mov esi, dword ptr [eax + 4] */
   4847     PUSH32(esp, edi); /* 0x4700A0DE: push edi */
   4848     edi = MEM32(esp + 0xC); /* 0x4700A0DF: mov edi, dword ptr [esp + 0xc] */
   4849     /* test edi, edi */ /* 0x4700A0E3: test edi, edi */
   4850     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   4851     _cf = 0;
   4852     _flag_k = FK_TEST;
   4853     MEM32(edx + 0x4) = esi; /* 0x4700A0E5: mov dword ptr [edx + 4], esi */
   4854     eax = MEM32(eax + 0x8); /* 0x4700A0E8: mov eax, dword ptr [eax + 8] */
   4855     MEM32(edx + 0x8) = eax; /* 0x4700A0EB: mov dword ptr [edx + 8], eax */
   4856     if (TEST_NZ(_flag_a, _flag_b)) goto L_4700A0F7; /* 0x4700A0EE: jne 0x4700a0f7 */
   4857 L_4700A0F0:
   4858     edi = POP32_VAL(esp); /* 0x4700A0F0: pop edi */
   4859     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4860     eax = 0; /* 0x4700A0F1: xor eax, eax */
   4861     _cf = 0;
   4862     _flag_k = FK_TEST;
   4863     esi = POP32_VAL(esp); /* 0x4700A0F3: pop esi */
   4864     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700A0F4: ret 8 */
   4865 L_4700A0F7:
   4866     /* test ecx, ecx */ /* 0x4700A0F7: test ecx, ecx */
   4867     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4868     _cf = 0;
   4869     _flag_k = FK_TEST;
   4870     if (TEST_NZ(_flag_a, _flag_b)) goto L_4700A11F; /* 0x4700A0F9: jne 0x4700a11f */
   4871 L_4700A0FB:
   4872     PUSH32(esp, ebx); /* 0x4700A0FB: push ebx */
   4873     ebx = MEM32(0x470AC214); /* 0x4700A0FC: mov ebx, dword ptr [0x470ac214] */
   4874     PUSH32(esp, 1); /* 0x4700A102: push 1 */
   4875     PUSH32(esp, edi); /* 0x4700A104: push edi */
   4876     RECOMP_ICALL(ebx); /* 0x4700A105: call ebx */
   4877     RECOMP_FLAGS_IN();
   4878     esi = eax; /* 0x4700A107: mov esi, eax */
   4879     PUSH32(esp, esi); /* 0x4700A109: push esi */
   4880     PUSH32(esp, edi); /* 0x4700A10A: push edi */
   4881     RECOMP_ICALL(ebx); /* 0x4700A10B: call ebx */
   4882     RECOMP_FLAGS_IN();
   4883     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4884     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4885     esp = esp + 0x10u; /* 0x4700A10D: add esp, 0x10 */
   4886     _flag_k = FK_ADD;
   4887     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4888     eax = 0; /* 0x4700A110: xor eax, eax */
   4889     _cf = 0;
   4890     _flag_k = FK_TEST;
   4891     /* cmp esi, 0xFFFFFFFFu */ /* 0x4700A112: cmp esi, -1 */
   4892     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4894     _flag_k = FK_CMP;
   4895     SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x4700A115: setne al */
   4896     ebx = POP32_VAL(esp); /* 0x4700A118: pop ebx */
   4897     edi = POP32_VAL(esp); /* 0x4700A119: pop edi */
   4898     esi = POP32_VAL(esp); /* 0x4700A11A: pop esi */
   4899     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4900     eax = eax - 1; /* 0x4700A11B: dec eax */
   4901     _flag_k = FK_DEC;
   4902     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700A11C: ret 8 */
   4903 L_4700A11F:
   4904     ecx = MEM32(ecx + 0x4); /* 0x4700A11F: mov ecx, dword ptr [ecx + 4] */
   4905     PUSH32(esp, ecx); /* 0x4700A122: push ecx */
   4906     PUSH32(esp, edi); /* 0x4700A123: push edi */
   4907     RECOMP_ICALL(MEM32(0x470AC214)); /* 0x4700A124: call dword ptr [0x470ac214] */
   4908     RECOMP_FLAGS_IN();
   4909     esi = eax; /* 0x4700A12A: mov esi, eax */
   4910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4912     esp = esp + 8; /* 0x4700A12C: add esp, 8 */
   4913     _flag_k = FK_ADD;
   4914     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4915     eax = 0; /* 0x4700A12F: xor eax, eax */
   4916     _cf = 0;
   4917     _flag_k = FK_TEST;
   4918     /* cmp esi, 0xFFFFFFFFu */ /* 0x4700A131: cmp esi, -1 */
   4919     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4920     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4921     _flag_k = FK_CMP;
   4922     SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x4700A134: setne al */
   4923     edi = POP32_VAL(esp); /* 0x4700A137: pop edi */
   4924     esi = POP32_VAL(esp); /* 0x4700A138: pop esi */
   4925     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4926     eax = eax - 1; /* 0x4700A139: dec eax */
   4927     _flag_k = FK_DEC;
   4928     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4700A13A: ret 8 */
   4929     RECOMP_REGS_OUT();
   4930 }
   4931 
   4932 void sub_4700A140(void) {
   4933     int _fpu_cmp = 0;
   4934     uint32_t _cf = 0;
   4935     int _df = 1;
   4936     uint32_t _flag_k = FK_NONE;
   4937     uint32_t _flag_a = 0, _flag_b = 0;
   4938     uint32_t _itail_tgt = 0;
   4939     RECOMP_REGS_LOCALS
   4940     RECOMP_ENTER(0x4700A140u);
   4941 
   4942 L_4700A140:
   4943     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700A140: push -1 */
   4944     PUSH32(esp, 0x470A38F8u); /* 0x4700A142: push 0x470a38f8 */
   4945     eax = MEM32(FS_BASE + (0)); /* 0x4700A147: mov eax, dword ptr fs:[0] */
   4946     PUSH32(esp, eax); /* 0x4700A14D: push eax */
   4947     MEM32(FS_BASE + (0)) = esp; /* 0x4700A14E: mov dword ptr fs:[0], esp */
   4948     PUSH32(esp, ecx); /* 0x4700A155: push ecx */
   4949     PUSH32(esp, esi); /* 0x4700A156: push esi */
   4950     esi = ecx; /* 0x4700A157: mov esi, ecx */
   4951     /* test esi, esi */ /* 0x4700A159: test esi, esi */
   4952     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4953     _cf = 0;
   4954     _flag_k = FK_TEST;
   4955     PUSH32(esp, edi); /* 0x4700A15B: push edi */
   4956     edi = MEM32(0x470AC3C8); /* 0x4700A15C: mov edi, dword ptr [0x470ac3c8] */
   4957     MEM32(esp + 0x8) = esi; /* 0x4700A162: mov dword ptr [esp + 8], esi */
   4958     if (TEST_NZ(_flag_a, _flag_b)) goto L_4700A172; /* 0x4700A166: jne 0x4700a172 */
   4959 L_4700A168:
   4960     RECOMP_ICALL(edi); /* 0x4700A168: call edi */
   4961     RECOMP_FLAGS_IN();
   4962     MEM32(eax) = 0xEu; /* 0x4700A16A: mov dword ptr [eax], 0xe */
   4963     goto L_4700A178; /* 0x4700A170: jmp 0x4700a178 */
   4964 L_4700A172:
   4965     MEM32(esi) = 0; /* 0x4700A172: mov dword ptr [esi], 0 */
   4966 L_4700A178:
   4967     eax = MEM32(esp + 0x1C); /* 0x4700A178: mov eax, dword ptr [esp + 0x1c] */
   4968     /* test eax, eax */ /* 0x4700A17C: test eax, eax */
   4969     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4970     _cf = 0;
   4971     _flag_k = FK_TEST;
   4972     MEM32(esp + 0x14) = 0; /* 0x4700A17E: mov dword ptr [esp + 0x14], 0 */
   4973     if (TEST_NZ(_flag_a, _flag_b)) goto L_4700A18D; /* 0x4700A186: jne 0x4700a18d */
   4974 L_4700A188:
   4975     RECOMP_ICALL(0x470588F0u); /* 0x4700A188: call 0x470588f0 */ /* not lifted */
   4976     RECOMP_FLAGS_IN();
   4977 L_4700A18D:
   4978     RECOMP_ICALL(edi); /* 0x4700A18D: call edi */
   4979     RECOMP_FLAGS_IN();
   4980     ecx = MEM32(esp + 0xC); /* 0x4700A18F: mov ecx, dword ptr [esp + 0xc] */
   4981     MEM32(eax) = 0x28u; /* 0x4700A193: mov dword ptr [eax], 0x28 */
   4982     edi = POP32_VAL(esp); /* 0x4700A199: pop edi */
   4983     eax = esi; /* 0x4700A19A: mov eax, esi */
   4984     esi = POP32_VAL(esp); /* 0x4700A19C: pop esi */
   4985     MEM32(FS_BASE + (0)) = ecx; /* 0x4700A19D: mov dword ptr fs:[0], ecx */
   4986     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4987     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4988     esp = esp + 0x10u; /* 0x4700A1A4: add esp, 0x10 */
   4989     _flag_k = FK_ADD;
   4990     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700A1A7: ret 4 */
   4991     RECOMP_REGS_OUT();
   4992 }
   4993 
   4994 void sub_4700A1B0(void) {
   4995     int _fpu_cmp = 0;
   4996     uint32_t _cf = 0;
   4997     int _df = 1;
   4998     uint32_t _flag_k = FK_NONE;
   4999     uint32_t _flag_a = 0, _flag_b = 0;
   5000     uint32_t _itail_tgt = 0;
   5001     RECOMP_REGS_LOCALS
   5002     RECOMP_ENTER(0x4700A1B0u);
   5003 
   5004 L_4700A1B0:
   5005     eax = MEM32(esp + 0x4); /* 0x4700A1B0: mov eax, dword ptr [esp + 4] */
   5006     /* test eax, eax */ /* 0x4700A1B4: test eax, eax */
   5007     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5008     _cf = 0;
   5009     _flag_k = FK_TEST;
   5010     if (TEST_LE(_flag_a, _flag_b)) goto L_4700A1C3; /* 0x4700A1B6: jle 0x4700a1c3 */
   5011 L_4700A1B8:
   5012     /* cmp eax, 0x17u */ /* 0x4700A1B8: cmp eax, 0x17 */
   5013     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x17u);
   5014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5015     _flag_k = FK_CMP;
   5016     if (CMP_GE(_flag_a, _flag_b)) goto L_4700A1C3; /* 0x4700A1BB: jge 0x4700a1c3 */
   5017 L_4700A1BD:
   5018     eax = 1; /* 0x4700A1BD: mov eax, 1 */
   5019     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700A1C2: ret  */
   5020 L_4700A1C3:
   5021     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5022     eax = 0; /* 0x4700A1C3: xor eax, eax */
   5023     _cf = 0;
   5024     _flag_k = FK_TEST;
   5025     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700A1C5: ret  */
   5026     RECOMP_REGS_OUT();
   5027 }
   5028 
   5029 void sub_4700A1D0(void) {
   5030     int _fpu_cmp = 0;
   5031     uint32_t _cf = 0;
   5032     int _df = 1;
   5033     uint32_t _flag_k = FK_NONE;
   5034     uint32_t _flag_a = 0, _flag_b = 0;
   5035     uint32_t _itail_tgt = 0;
   5036     RECOMP_REGS_LOCALS
   5037     RECOMP_ENTER(0x4700A1D0u);
   5038 
   5039 L_4700A1D0:
   5040     MEM32(ecx) = 0x470AC690u; /* 0x4700A1D0: mov dword ptr [ecx], 0x470ac690 */
   5041     goto L_4702A7B0; /* 0x4700A1D6: jmp 0x4702a7b0 */
   5042 L_4702A7B0:
   5043     MEM32(ecx) = 0x470AC5C0u; /* 0x4702A7B0: mov dword ptr [ecx], 0x470ac5c0 */
   5044     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702A7B6: ret  */
   5045     RECOMP_REGS_OUT();
   5046 }
   5047 
   5048 void sub_4700A1E0(void) {
   5049     int _fpu_cmp = 0;
   5050     uint32_t _cf = 0;
   5051     int _df = 1;
   5052     uint32_t _flag_k = FK_NONE;
   5053     uint32_t _flag_a = 0, _flag_b = 0;
   5054     uint32_t _itail_tgt = 0;
   5055     RECOMP_REGS_LOCALS
   5056     RECOMP_ENTER(0x4700A1E0u);
   5057 
   5058 L_4700A1E0:
   5059     eax = ecx + 0x4; /* 0x4700A1E0: lea eax, [ecx + 4] */
   5060     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700A1E3: ret  */
   5061     RECOMP_REGS_OUT();
   5062 }
   5063 
   5064 void sub_4700A1F0(void) {
   5065     int _fpu_cmp = 0;
   5066     uint32_t _cf = 0;
   5067     int _df = 1;
   5068     uint32_t _flag_k = FK_NONE;
   5069     uint32_t _flag_a = 0, _flag_b = 0;
   5070     uint32_t _itail_tgt = 0;
   5071     RECOMP_REGS_LOCALS
   5072     RECOMP_ENTER(0x4700A1F0u);
   5073 
   5074 L_4700A1F0:
   5075     eax = MEM32(esp + 0x1C); /* 0x4700A1F0: mov eax, dword ptr [esp + 0x1c] */
   5076     edx = MEM32(esp + 0x18); /* 0x4700A1F4: mov edx, dword ptr [esp + 0x18] */
   5077     PUSH32(esp, eax); /* 0x4700A1F8: push eax */
   5078     eax = MEM32(esp + 0x18); /* 0x4700A1F9: mov eax, dword ptr [esp + 0x18] */
   5079     PUSH32(esp, edx); /* 0x4700A1FD: push edx */
   5080     edx = MEM32(esp + 0x18); /* 0x4700A1FE: mov edx, dword ptr [esp + 0x18] */
   5081     PUSH32(esp, eax); /* 0x4700A202: push eax */
   5082     eax = MEM32(esp + 0x18); /* 0x4700A203: mov eax, dword ptr [esp + 0x18] */
   5083     PUSH32(esp, edx); /* 0x4700A207: push edx */
   5084     edx = MEM32(esp + 0x18); /* 0x4700A208: mov edx, dword ptr [esp + 0x18] */
   5085     PUSH32(esp, eax); /* 0x4700A20C: push eax */
   5086     eax = MEM32(esp + 0x18); /* 0x4700A20D: mov eax, dword ptr [esp + 0x18] */
   5087     PUSH32(esp, edx); /* 0x4700A211: push edx */
   5088     PUSH32(esp, eax); /* 0x4700A212: push eax */
   5089     RECOMP_ICALL(0x470417B0u); /* 0x4700A213: call 0x470417b0 */ /* not lifted */
   5090     RECOMP_FLAGS_IN();
   5091     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x4700A218: ret 0x1c */
   5092     RECOMP_REGS_OUT();
   5093 }
   5094 
   5095 void sub_4700A220(void) {
   5096     int _fpu_cmp = 0;
   5097     uint32_t _cf = 0;
   5098     int _df = 1;
   5099     uint32_t _flag_k = FK_NONE;
   5100     uint32_t _flag_a = 0, _flag_b = 0;
   5101     uint32_t _itail_tgt = 0;
   5102     RECOMP_REGS_LOCALS
   5103     RECOMP_ENTER(0x4700A220u);
   5104 
   5105 L_4700A220:
   5106     edx = MEM32(esp + 0x10); /* 0x4700A220: mov edx, dword ptr [esp + 0x10] */
   5107     /* test edx, edx */ /* 0x4700A224: test edx, edx */
   5108     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   5109     _cf = 0;
   5110     _flag_k = FK_TEST;
   5111     if (TEST_NZ(_flag_a, _flag_b)) goto L_4700A23A; /* 0x4700A226: jne 0x4700a23a */
   5112 L_4700A228:
   5113     eax = MEM32(ecx); /* 0x4700A228: mov eax, dword ptr [ecx] */
   5114     /* test eax, eax */ /* 0x4700A22A: test eax, eax */
   5115     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5116     _cf = 0;
   5117     _flag_k = FK_TEST;
   5118     if (TEST_Z(_flag_a, _flag_b)) goto L_4700A23A; /* 0x4700A22C: je 0x4700a23a */
   5119 L_4700A22E:
   5120     /* cmp eax, 0xFFFFFFFFu */ /* 0x4700A22E: cmp eax, -1 */
   5121     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5123     _flag_k = FK_CMP;
   5124     if (CMP_EQ(_flag_a, _flag_b)) goto L_4700A23A; /* 0x4700A231: je 0x4700a23a */
   5125 L_4700A233:
   5126     _flag_a = (uint32_t)((MEM32(esp + 0xC) | 4)); _flag_b = (uint32_t)((MEM32(esp + 0xC) | 4));
   5127     MEM32(esp + 0xC) = MEM32(esp + 0xC) | 4; /* 0x4700A233: or dword ptr [esp + 0xc], 4 */
   5128     _cf = 0;
   5129     _flag_k = FK_TEST;
   5130     edx = eax; /* 0x4700A238: mov edx, eax */
   5131 L_4700A23A:
   5132     eax = MEM32(ecx + 0x110); /* 0x4700A23A: mov eax, dword ptr [ecx + 0x110] */
   5133     PUSH32(esp, esi); /* 0x4700A240: push esi */
   5134     esi = MEM32(esp + 0x1C); /* 0x4700A241: mov esi, dword ptr [esp + 0x1c] */
   5135     PUSH32(esp, esi); /* 0x4700A245: push esi */
   5136     esi = MEM32(esp + 0x1C); /* 0x4700A246: mov esi, dword ptr [esp + 0x1c] */
   5137     PUSH32(esp, esi); /* 0x4700A24A: push esi */
   5138     PUSH32(esp, edx); /* 0x4700A24B: push edx */
   5139     edx = MEM32(esp + 0x1C); /* 0x4700A24C: mov edx, dword ptr [esp + 0x1c] */
   5140     PUSH32(esp, edx); /* 0x4700A250: push edx */
   5141     edx = MEM32(esp + 0x1C); /* 0x4700A251: mov edx, dword ptr [esp + 0x1c] */
   5142     PUSH32(esp, edx); /* 0x4700A255: push edx */
   5143     edx = MEM32(esp + 0x1C); /* 0x4700A256: mov edx, dword ptr [esp + 0x1c] */
   5144     PUSH32(esp, edx); /* 0x4700A25A: push edx */
   5145     PUSH32(esp, eax); /* 0x4700A25B: push eax */
   5146     RECOMP_ICALL(0x470417B0u); /* 0x4700A25C: call 0x470417b0 */ /* not lifted */
   5147     RECOMP_FLAGS_IN();
   5148     esi = POP32_VAL(esp); /* 0x4700A261: pop esi */
   5149     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x4700A262: ret 0x18 */
   5150     RECOMP_REGS_OUT();
   5151 }