aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0003.c (173381B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_47005D40(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(0x47005D40u);
     13 
     14 L_47005D40:
     15     edx = MEM32(esp + 0xC); /* 0x47005D40: mov edx, dword ptr [esp + 0xc] */
     16     PUSH32(esp, esi); /* 0x47005D44: push esi */
     17     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     18     eax = 0; /* 0x47005D45: xor eax, eax */
     19     _cf = 0;
     20     _flag_k = FK_TEST;
     21     /* test edx, edx */ /* 0x47005D47: test edx, edx */
     22     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
     23     _cf = 0;
     24     _flag_k = FK_TEST;
     25     PUSH32(esp, edi); /* 0x47005D49: push edi */
     26     if (TEST_Z(_flag_a, _flag_b)) goto L_47005D64; /* 0x47005D4A: jbe 0x47005d64 */
     27 L_47005D4C:
     28     edi = MEM32(esp + 0xC); /* 0x47005D4C: mov edi, dword ptr [esp + 0xc] */
     29     SET_LO16(esi, MEM16(esp + 0x10)); /* 0x47005D50: mov si, word ptr [esp + 0x10] */
     30     ecx = edi; /* 0x47005D55: mov ecx, edi */
     31 L_47005D57:
     32     /* cmp MEM16(ecx), LO16(esi) */ /* 0x47005D57: cmp word ptr [ecx], si */
     33     _flag_a = (uint32_t)(MEM16(ecx)) << 16; _flag_b = (uint32_t)(LO16(esi)) << 16;
     34     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     35     _flag_k = FK_NARROW(FK_CMP, 16);
     36     if (CMP_EQ(_flag_a, _flag_b)) goto L_47005D69; /* 0x47005D5A: je 0x47005d69 */
     37 L_47005D5C:
     38     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
     39     eax = eax + 1; /* 0x47005D5C: inc eax */
     40     _flag_k = FK_INC;
     41     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2);
     42     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     43     ecx = ecx + 2; /* 0x47005D5D: add ecx, 2 */
     44     _flag_k = FK_ADD;
     45     /* cmp eax, edx */ /* 0x47005D60: cmp eax, edx */
     46     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
     47     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     48     _flag_k = FK_CMP;
     49     RECOMP_BACKEDGE();
     50     if (CMP_B(_flag_a, _flag_b)) goto L_47005D57; /* 0x47005D62: jb 0x47005d57 */
     51 L_47005D64:
     52     edi = POP32_VAL(esp); /* 0x47005D64: pop edi */
     53     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     54     eax = 0; /* 0x47005D65: xor eax, eax */
     55     _cf = 0;
     56     _flag_k = FK_TEST;
     57     esi = POP32_VAL(esp); /* 0x47005D67: pop esi */
     58     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005D68: ret  */
     59 L_47005D69:
     60     eax = edi + eax * 2; /* 0x47005D69: lea eax, [edi + eax*2] */
     61     edi = POP32_VAL(esp); /* 0x47005D6C: pop edi */
     62     esi = POP32_VAL(esp); /* 0x47005D6D: pop esi */
     63     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005D6E: ret  */
     64     RECOMP_REGS_OUT();
     65 }
     66 
     67 void sub_47005D70(void) {
     68     int _fpu_cmp = 0;
     69     uint32_t _cf = 0;
     70     int _df = 1;
     71     uint32_t _flag_k = FK_NONE;
     72     uint32_t _flag_a = 0, _flag_b = 0;
     73     uint32_t _itail_tgt = 0;
     74     RECOMP_REGS_LOCALS
     75     RECOMP_ENTER(0x47005D70u);
     76 
     77 L_47005D70:
     78     eax = MEM32(esp + 0x8); /* 0x47005D70: mov eax, dword ptr [esp + 8] */
     79     ecx = MEM32(esp + 0x4); /* 0x47005D74: mov ecx, dword ptr [esp + 4] */
     80     PUSH32(esp, eax); /* 0x47005D78: push eax */
     81     PUSH32(esp, ecx); /* 0x47005D79: push ecx */
     82     RECOMP_ICALL(MEM32(0x470AC3D0)); /* 0x47005D7A: call dword ptr [0x470ac3d0] */
     83     RECOMP_FLAGS_IN();
     84     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
     85     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     86     esp = esp + 8; /* 0x47005D80: add esp, 8 */
     87     _flag_k = FK_ADD;
     88     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005D83: ret  */
     89     RECOMP_REGS_OUT();
     90 }
     91 
     92 void sub_47005D90(void) {
     93     int _fpu_cmp = 0;
     94     uint32_t _cf = 0;
     95     int _df = 1;
     96     uint32_t _flag_k = FK_NONE;
     97     uint32_t _flag_a = 0, _flag_b = 0;
     98     uint32_t _itail_tgt = 0;
     99     RECOMP_REGS_LOCALS
    100     RECOMP_ENTER(0x47005D90u);
    101 
    102 L_47005D90:
    103     eax = MEM32(esp + 0x4); /* 0x47005D90: mov eax, dword ptr [esp + 4] */
    104     PUSH32(esp, eax); /* 0x47005D94: push eax */
    105     RECOMP_ICALL(MEM32(0x470AC3D4)); /* 0x47005D95: call dword ptr [0x470ac3d4] */
    106     RECOMP_FLAGS_IN();
    107     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    108     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    109     esp = esp + 4; /* 0x47005D9B: add esp, 4 */
    110     _flag_k = FK_ADD;
    111     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005D9E: ret  */
    112     RECOMP_REGS_OUT();
    113 }
    114 
    115 void sub_47005DA0(void) {
    116     int _fpu_cmp = 0;
    117     uint32_t _cf = 0;
    118     int _df = 1;
    119     uint32_t _flag_k = FK_NONE;
    120     uint32_t _flag_a = 0, _flag_b = 0;
    121     uint32_t _itail_tgt = 0;
    122     RECOMP_REGS_LOCALS
    123     RECOMP_ENTER(0x47005DA0u);
    124 
    125 L_47005DA0:
    126     eax = MEM32(esp + 0x8); /* 0x47005DA0: mov eax, dword ptr [esp + 8] */
    127     ecx = MEM32(esp + 0x4); /* 0x47005DA4: mov ecx, dword ptr [esp + 4] */
    128     PUSH32(esp, eax); /* 0x47005DA8: push eax */
    129     PUSH32(esp, ecx); /* 0x47005DA9: push ecx */
    130     RECOMP_ICALL(MEM32(0x470AC294)); /* 0x47005DAA: call dword ptr [0x470ac294] */
    131     RECOMP_FLAGS_IN();
    132     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    133     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    134     esp = esp + 8; /* 0x47005DB0: add esp, 8 */
    135     _flag_k = FK_ADD;
    136     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005DB3: ret  */
    137     RECOMP_REGS_OUT();
    138 }
    139 
    140 void sub_47005DC0(void) {
    141     int _fpu_cmp = 0;
    142     uint32_t _cf = 0;
    143     int _df = 1;
    144     uint32_t _flag_k = FK_NONE;
    145     uint32_t _flag_a = 0, _flag_b = 0;
    146     uint32_t _itail_tgt = 0;
    147     RECOMP_REGS_LOCALS
    148     RECOMP_ENTER(0x47005DC0u);
    149 
    150 L_47005DC0:
    151     eax = MEM32(esp + 0xC); /* 0x47005DC0: mov eax, dword ptr [esp + 0xc] */
    152     ecx = MEM32(esp + 0x8); /* 0x47005DC4: mov ecx, dword ptr [esp + 8] */
    153     edx = MEM32(esp + 0x4); /* 0x47005DC8: mov edx, dword ptr [esp + 4] */
    154     PUSH32(esp, eax); /* 0x47005DCC: push eax */
    155     PUSH32(esp, ecx); /* 0x47005DCD: push ecx */
    156     PUSH32(esp, edx); /* 0x47005DCE: push edx */
    157     RECOMP_ICALL(MEM32(0x470AC298)); /* 0x47005DCF: call dword ptr [0x470ac298] */
    158     RECOMP_FLAGS_IN();
    159     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    160     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    161     esp = esp + 0xCu; /* 0x47005DD5: add esp, 0xc */
    162     _flag_k = FK_ADD;
    163     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005DD8: ret  */
    164     RECOMP_REGS_OUT();
    165 }
    166 
    167 void sub_47005DE0(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(0x47005DE0u);
    176 
    177 L_47005DE0:
    178     eax = MEM32(esp + 0xC); /* 0x47005DE0: mov eax, dword ptr [esp + 0xc] */
    179     ecx = MEM32(esp + 0x8); /* 0x47005DE4: mov ecx, dword ptr [esp + 8] */
    180     edx = MEM32(esp + 0x4); /* 0x47005DE8: mov edx, dword ptr [esp + 4] */
    181     PUSH32(esp, eax); /* 0x47005DEC: push eax */
    182     PUSH32(esp, ecx); /* 0x47005DED: push ecx */
    183     PUSH32(esp, edx); /* 0x47005DEE: push edx */
    184     RECOMP_ICALL(MEM32(0x470AC29C)); /* 0x47005DEF: call dword ptr [0x470ac29c] */
    185     RECOMP_FLAGS_IN();
    186     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    187     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    188     esp = esp + 0xCu; /* 0x47005DF5: add esp, 0xc */
    189     _flag_k = FK_ADD;
    190     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005DF8: ret  */
    191     RECOMP_REGS_OUT();
    192 }
    193 
    194 void sub_47005E00(void) {
    195     int _fpu_cmp = 0;
    196     uint32_t _cf = 0;
    197     int _df = 1;
    198     uint32_t _flag_k = FK_NONE;
    199     uint32_t _flag_a = 0, _flag_b = 0;
    200     uint32_t _itail_tgt = 0;
    201     RECOMP_REGS_LOCALS
    202     RECOMP_ENTER(0x47005E00u);
    203 
    204 L_47005E00:
    205     eax = MEM32(esp + 0xC); /* 0x47005E00: mov eax, dword ptr [esp + 0xc] */
    206     ecx = MEM32(esp + 0x8); /* 0x47005E04: mov ecx, dword ptr [esp + 8] */
    207     edx = MEM32(esp + 0x4); /* 0x47005E08: mov edx, dword ptr [esp + 4] */
    208     PUSH32(esp, eax); /* 0x47005E0C: push eax */
    209     PUSH32(esp, ecx); /* 0x47005E0D: push ecx */
    210     PUSH32(esp, edx); /* 0x47005E0E: push edx */
    211     RECOMP_ICALL(MEM32(0x470AC2A0)); /* 0x47005E0F: call dword ptr [0x470ac2a0] */
    212     RECOMP_FLAGS_IN();
    213     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    214     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    215     esp = esp + 0xCu; /* 0x47005E15: add esp, 0xc */
    216     _flag_k = FK_ADD;
    217     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005E18: ret  */
    218     RECOMP_REGS_OUT();
    219 }
    220 
    221 void sub_47005E20(void) {
    222     int _fpu_cmp = 0;
    223     uint32_t _cf = 0;
    224     int _df = 1;
    225     uint32_t _flag_k = FK_NONE;
    226     uint32_t _flag_a = 0, _flag_b = 0;
    227     uint32_t _itail_tgt = 0;
    228     RECOMP_REGS_LOCALS
    229     RECOMP_ENTER(0x47005E20u);
    230 
    231 L_47005E20:
    232     eax = MEM32(esp + 0xC); /* 0x47005E20: mov eax, dword ptr [esp + 0xc] */
    233     ecx = MEM32(esp + 0x8); /* 0x47005E24: mov ecx, dword ptr [esp + 8] */
    234     edx = MEM32(esp + 0x4); /* 0x47005E28: mov edx, dword ptr [esp + 4] */
    235     PUSH32(esp, eax); /* 0x47005E2C: push eax */
    236     PUSH32(esp, ecx); /* 0x47005E2D: push ecx */
    237     PUSH32(esp, edx); /* 0x47005E2E: push edx */
    238     RECOMP_ICALL(MEM32(0x470AC2A4)); /* 0x47005E2F: call dword ptr [0x470ac2a4] */
    239     RECOMP_FLAGS_IN();
    240     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    242     esp = esp + 0xCu; /* 0x47005E35: add esp, 0xc */
    243     _flag_k = FK_ADD;
    244     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005E38: ret  */
    245     RECOMP_REGS_OUT();
    246 }
    247 
    248 void sub_47005E40(void) {
    249     int _fpu_cmp = 0;
    250     uint32_t _cf = 0;
    251     int _df = 1;
    252     uint32_t _flag_k = FK_NONE;
    253     uint32_t _flag_a = 0, _flag_b = 0;
    254     uint32_t _itail_tgt = 0;
    255     RECOMP_REGS_LOCALS
    256     RECOMP_ENTER(0x47005E40u);
    257 
    258 L_47005E40:
    259     eax = MEM32(esp + 0x8); /* 0x47005E40: mov eax, dword ptr [esp + 8] */
    260     ecx = MEM32(esp + 0x4); /* 0x47005E44: mov ecx, dword ptr [esp + 4] */
    261     PUSH32(esp, eax); /* 0x47005E48: push eax */
    262     PUSH32(esp, ecx); /* 0x47005E49: push ecx */
    263     RECOMP_ICALL(MEM32(0x470AC2A8)); /* 0x47005E4A: call dword ptr [0x470ac2a8] */
    264     RECOMP_FLAGS_IN();
    265     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    266     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    267     esp = esp + 8; /* 0x47005E50: add esp, 8 */
    268     _flag_k = FK_ADD;
    269     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005E53: ret  */
    270     RECOMP_REGS_OUT();
    271 }
    272 
    273 void sub_47005E60(void) {
    274     int _fpu_cmp = 0;
    275     uint32_t _cf = 0;
    276     int _df = 1;
    277     uint32_t _flag_k = FK_NONE;
    278     uint32_t _flag_a = 0, _flag_b = 0;
    279     uint32_t _itail_tgt = 0;
    280     RECOMP_REGS_LOCALS
    281     RECOMP_ENTER(0x47005E60u);
    282 
    283 L_47005E60:
    284     eax = MEM32(esp + 0xC); /* 0x47005E60: mov eax, dword ptr [esp + 0xc] */
    285     ecx = MEM32(esp + 0x8); /* 0x47005E64: mov ecx, dword ptr [esp + 8] */
    286     edx = MEM32(esp + 0x4); /* 0x47005E68: mov edx, dword ptr [esp + 4] */
    287     PUSH32(esp, eax); /* 0x47005E6C: push eax */
    288     PUSH32(esp, ecx); /* 0x47005E6D: push ecx */
    289     PUSH32(esp, edx); /* 0x47005E6E: push edx */
    290     RECOMP_ICALL(MEM32(0x470AC2AC)); /* 0x47005E6F: call dword ptr [0x470ac2ac] */
    291     RECOMP_FLAGS_IN();
    292     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    293     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    294     esp = esp + 0xCu; /* 0x47005E75: add esp, 0xc */
    295     _flag_k = FK_ADD;
    296     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005E78: ret  */
    297     RECOMP_REGS_OUT();
    298 }
    299 
    300 void sub_47005E80(void) {
    301     int _fpu_cmp = 0;
    302     uint32_t _cf = 0;
    303     int _df = 1;
    304     uint32_t _flag_k = FK_NONE;
    305     uint32_t _flag_a = 0, _flag_b = 0;
    306     uint32_t _itail_tgt = 0;
    307     RECOMP_REGS_LOCALS
    308     RECOMP_ENTER(0x47005E80u);
    309 
    310 L_47005E80:
    311     eax = MEM32(esp + 0xC); /* 0x47005E80: mov eax, dword ptr [esp + 0xc] */
    312     ecx = MEM32(esp + 0x8); /* 0x47005E84: mov ecx, dword ptr [esp + 8] */
    313     edx = MEM32(esp + 0x4); /* 0x47005E88: mov edx, dword ptr [esp + 4] */
    314     PUSH32(esp, eax); /* 0x47005E8C: push eax */
    315     PUSH32(esp, ecx); /* 0x47005E8D: push ecx */
    316     PUSH32(esp, edx); /* 0x47005E8E: push edx */
    317     RECOMP_ICALL(MEM32(0x470AC2B0)); /* 0x47005E8F: call dword ptr [0x470ac2b0] */
    318     RECOMP_FLAGS_IN();
    319     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    320     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    321     esp = esp + 0xCu; /* 0x47005E95: add esp, 0xc */
    322     _flag_k = FK_ADD;
    323     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005E98: ret  */
    324     RECOMP_REGS_OUT();
    325 }
    326 
    327 void sub_47005EA0(void) {
    328     int _fpu_cmp = 0;
    329     uint32_t _cf = 0;
    330     int _df = 1;
    331     uint32_t _flag_k = FK_NONE;
    332     uint32_t _flag_a = 0, _flag_b = 0;
    333     uint32_t _itail_tgt = 0;
    334     RECOMP_REGS_LOCALS
    335     RECOMP_ENTER(0x47005EA0u);
    336 
    337 L_47005EA0:
    338     eax = MEM32(esp + 0x8); /* 0x47005EA0: mov eax, dword ptr [esp + 8] */
    339     ecx = MEM32(esp + 0x4); /* 0x47005EA4: mov ecx, dword ptr [esp + 4] */
    340     PUSH32(esp, eax); /* 0x47005EA8: push eax */
    341     PUSH32(esp, ecx); /* 0x47005EA9: push ecx */
    342     RECOMP_ICALL(MEM32(0x470AC2B4)); /* 0x47005EAA: call dword ptr [0x470ac2b4] */
    343     RECOMP_FLAGS_IN();
    344     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    345     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    346     esp = esp + 8; /* 0x47005EB0: add esp, 8 */
    347     _flag_k = FK_ADD;
    348     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005EB3: ret  */
    349     RECOMP_REGS_OUT();
    350 }
    351 
    352 void sub_47005EC0(void) {
    353     int _fpu_cmp = 0;
    354     uint32_t _cf = 0;
    355     int _df = 1;
    356     uint32_t _flag_k = FK_NONE;
    357     uint32_t _flag_a = 0, _flag_b = 0;
    358     uint32_t _itail_tgt = 0;
    359     RECOMP_REGS_LOCALS
    360     RECOMP_ENTER(0x47005EC0u);
    361 
    362 L_47005EC0:
    363     eax = MEM32(esp + 0x4); /* 0x47005EC0: mov eax, dword ptr [esp + 4] */
    364     PUSH32(esp, eax); /* 0x47005EC4: push eax */
    365     RECOMP_ICALL(MEM32(0x470AC2B8)); /* 0x47005EC5: call dword ptr [0x470ac2b8] */
    366     RECOMP_FLAGS_IN();
    367     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    368     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    369     esp = esp + 4; /* 0x47005ECB: add esp, 4 */
    370     _flag_k = FK_ADD;
    371     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005ECE: ret  */
    372     RECOMP_REGS_OUT();
    373 }
    374 
    375 void sub_47005ED0(void) {
    376     int _fpu_cmp = 0;
    377     uint32_t _cf = 0;
    378     int _df = 1;
    379     uint32_t _flag_k = FK_NONE;
    380     uint32_t _flag_a = 0, _flag_b = 0;
    381     uint32_t _itail_tgt = 0;
    382     RECOMP_REGS_LOCALS
    383     RECOMP_ENTER(0x47005ED0u);
    384 
    385 L_47005ED0:
    386     eax = MEM32(esp + 0x8); /* 0x47005ED0: mov eax, dword ptr [esp + 8] */
    387     ecx = MEM32(esp + 0x4); /* 0x47005ED4: mov ecx, dword ptr [esp + 4] */
    388     PUSH32(esp, eax); /* 0x47005ED8: push eax */
    389     PUSH32(esp, ecx); /* 0x47005ED9: push ecx */
    390     RECOMP_ICALL(MEM32(0x470AC2BC)); /* 0x47005EDA: call dword ptr [0x470ac2bc] */
    391     RECOMP_FLAGS_IN();
    392     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    393     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    394     esp = esp + 8; /* 0x47005EE0: add esp, 8 */
    395     _flag_k = FK_ADD;
    396     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005EE3: ret  */
    397     RECOMP_REGS_OUT();
    398 }
    399 
    400 void sub_47005EF0(void) {
    401     int _fpu_cmp = 0;
    402     uint32_t _cf = 0;
    403     int _df = 1;
    404     uint32_t _flag_k = FK_NONE;
    405     uint32_t _flag_a = 0, _flag_b = 0;
    406     uint32_t _itail_tgt = 0;
    407     RECOMP_REGS_LOCALS
    408     RECOMP_ENTER(0x47005EF0u);
    409 
    410 L_47005EF0:
    411     PUSH32(esp, ebx); /* 0x47005EF0: push ebx */
    412     ebx = MEM32(esp + 0x8); /* 0x47005EF1: mov ebx, dword ptr [esp + 8] */
    413     PUSH32(esp, ebp); /* 0x47005EF5: push ebp */
    414     PUSH32(esp, esi); /* 0x47005EF6: push esi */
    415     PUSH32(esp, edi); /* 0x47005EF7: push edi */
    416     PUSH32(esp, ebx); /* 0x47005EF8: push ebx */
    417     RECOMP_ICALL(MEM32(0x470AC26C)); /* 0x47005EF9: call dword ptr [0x470ac26c] */
    418     RECOMP_FLAGS_IN();
    419     ecx = MEM32(esp + 0x20); /* 0x47005EFF: mov ecx, dword ptr [esp + 0x20] */
    420     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    421     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    422     esp = esp + 4; /* 0x47005F03: add esp, 4 */
    423     _flag_k = FK_ADD;
    424     /* cmp ecx, eax */ /* 0x47005F06: cmp ecx, eax */
    425     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    427     _flag_k = FK_CMP;
    428     if (CMP_A(_flag_a, _flag_b)) goto L_47005F2C; /* 0x47005F08: ja 0x47005f2c */
    429 L_47005F0A:
    430     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    431     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    432     eax = eax - ecx; /* 0x47005F0A: sub eax, ecx */
    433     _flag_k = FK_CMP;
    434     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    435     edx = 0; /* 0x47005F0C: xor edx, edx */
    436     _cf = 0;
    437     _flag_k = FK_TEST;
    438     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    439     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    440     ecx = ecx + ecx; /* 0x47005F0E: add ecx, ecx */
    441     _flag_k = FK_ADD;
    442     MEM32(esp + 0x1C) = ecx; /* 0x47005F10: mov dword ptr [esp + 0x1c], ecx */
    443 L_47005F14:
    444     ecx = MEM32(esp + 0x1C); /* 0x47005F14: mov ecx, dword ptr [esp + 0x1c] */
    445     edi = MEM32(esp + 0x18); /* 0x47005F18: mov edi, dword ptr [esp + 0x18] */
    446     esi = ebx; /* 0x47005F1C: mov esi, ebx */
    447     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    448     ebp = 0; /* 0x47005F1E: xor ebp, ebp */
    449     _cf = 0;
    450     _flag_k = FK_TEST;
    451     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = MEM8(esi); _b = MEM8(edi); esi += _df; edi += _df; ecx--; if (_a != _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47005F20: repe cmpsb byte ptr [esi], byte ptr es:[edi] */
    452     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47005F33; /* 0x47005F22: je 0x47005f33 */
    453 L_47005F24:
    454     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
    455     edx = edx + 1; /* 0x47005F24: inc edx */
    456     _flag_k = FK_INC;
    457     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(2);
    458     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    459     ebx = ebx + 2; /* 0x47005F25: add ebx, 2 */
    460     _flag_k = FK_ADD;
    461     /* cmp edx, eax */ /* 0x47005F28: cmp edx, eax */
    462     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    464     _flag_k = FK_CMP;
    465     RECOMP_BACKEDGE();
    466     if (CMP_BE(_flag_a, _flag_b)) goto L_47005F14; /* 0x47005F2A: jbe 0x47005f14 */
    467 L_47005F2C:
    468     edi = POP32_VAL(esp); /* 0x47005F2C: pop edi */
    469     esi = POP32_VAL(esp); /* 0x47005F2D: pop esi */
    470     ebp = POP32_VAL(esp); /* 0x47005F2E: pop ebp */
    471     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    472     eax = 0; /* 0x47005F2F: xor eax, eax */
    473     _cf = 0;
    474     _flag_k = FK_TEST;
    475     ebx = POP32_VAL(esp); /* 0x47005F31: pop ebx */
    476     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005F32: ret  */
    477 L_47005F33:
    478     eax = MEM32(esp + 0x14); /* 0x47005F33: mov eax, dword ptr [esp + 0x14] */
    479     edi = POP32_VAL(esp); /* 0x47005F37: pop edi */
    480     esi = POP32_VAL(esp); /* 0x47005F38: pop esi */
    481     ebp = POP32_VAL(esp); /* 0x47005F39: pop ebp */
    482     eax = eax + edx * 2; /* 0x47005F3A: lea eax, [eax + edx*2] */
    483     ebx = POP32_VAL(esp); /* 0x47005F3D: pop ebx */
    484     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005F3E: ret  */
    485     RECOMP_REGS_OUT();
    486 }
    487 
    488 void sub_47005F40(void) {
    489     int _fpu_cmp = 0;
    490     uint32_t _cf = 0;
    491     int _df = 1;
    492     uint32_t _flag_k = FK_NONE;
    493     uint32_t _flag_a = 0, _flag_b = 0;
    494     uint32_t _itail_tgt = 0;
    495     RECOMP_REGS_LOCALS
    496     RECOMP_ENTER(0x47005F40u);
    497 
    498 L_47005F40:
    499     eax = MEM32(esp + 0x4); /* 0x47005F40: mov eax, dword ptr [esp + 4] */
    500     PUSH32(esp, eax); /* 0x47005F44: push eax */
    501     RECOMP_ICALL(MEM32(0x470AC3EC)); /* 0x47005F45: call dword ptr [0x470ac3ec] */
    502     RECOMP_FLAGS_IN();
    503     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    504     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    505     esp = esp + 4; /* 0x47005F4B: add esp, 4 */
    506     _flag_k = FK_ADD;
    507     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005F4E: ret  */
    508     RECOMP_REGS_OUT();
    509 }
    510 
    511 void sub_47005F50(void) {
    512     int _fpu_cmp = 0;
    513     uint32_t _cf = 0;
    514     int _df = 1;
    515     uint32_t _flag_k = FK_NONE;
    516     uint32_t _flag_a = 0, _flag_b = 0;
    517     uint32_t _itail_tgt = 0;
    518     RECOMP_REGS_LOCALS
    519     RECOMP_ENTER(0x47005F50u);
    520 
    521 L_47005F50:
    522     eax = MEM32(esp + 0xC); /* 0x47005F50: mov eax, dword ptr [esp + 0xc] */
    523     ecx = MEM32(esp + 0x8); /* 0x47005F54: mov ecx, dword ptr [esp + 8] */
    524     edx = MEM32(esp + 0x4); /* 0x47005F58: mov edx, dword ptr [esp + 4] */
    525     PUSH32(esp, eax); /* 0x47005F5C: push eax */
    526     PUSH32(esp, ecx); /* 0x47005F5D: push ecx */
    527     PUSH32(esp, edx); /* 0x47005F5E: push edx */
    528     RECOMP_ICALL(MEM32(0x470AC2C0)); /* 0x47005F5F: call dword ptr [0x470ac2c0] */
    529     RECOMP_FLAGS_IN();
    530     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    531     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    532     esp = esp + 0xCu; /* 0x47005F65: add esp, 0xc */
    533     _flag_k = FK_ADD;
    534     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005F68: ret  */
    535     RECOMP_REGS_OUT();
    536 }
    537 
    538 void sub_47005F70(void) {
    539     int _fpu_cmp = 0;
    540     uint32_t _cf = 0;
    541     int _df = 1;
    542     uint32_t _flag_k = FK_NONE;
    543     uint32_t _flag_a = 0, _flag_b = 0;
    544     uint32_t _itail_tgt = 0;
    545     RECOMP_REGS_LOCALS
    546     RECOMP_ENTER(0x47005F70u);
    547 
    548 L_47005F70:
    549     ecx = MEM32(esp + 0x4); /* 0x47005F70: mov ecx, dword ptr [esp + 4] */
    550     PUSH32(esp, esi); /* 0x47005F74: push esi */
    551     eax = esp + 0xC; /* 0x47005F75: lea eax, [esp + 0xc] */
    552     PUSH32(esp, eax); /* 0x47005F79: push eax */
    553     PUSH32(esp, ecx); /* 0x47005F7A: push ecx */
    554     RECOMP_ICALL(MEM32(0x470AC0DC)); /* 0x47005F7B: call dword ptr [0x470ac0dc] */
    555     RECOMP_FLAGS_IN();
    556     esi = eax; /* 0x47005F81: mov esi, eax */
    557     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
    558     _cf = (esi) != 0;
    559     esi = (uint32_t)(-(int32_t)esi); /* 0x47005F83: neg esi */
    560     _flag_k = FK_CMP;
    561     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47005F85: sbb esi, esi */
    562       esi = _sc ? 0xFFFFFFFFu : 0;
    563       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    564       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    565     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
    566     _cf = (esi) != 0;
    567     esi = (uint32_t)(-(int32_t)esi); /* 0x47005F87: neg esi */
    568     _flag_k = FK_CMP;
    569     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    570     esi = esi - 1; /* 0x47005F89: dec esi */
    571     _flag_k = FK_DEC;
    572     /* cmp esi, 0xFFFFFFFFu */ /* 0x47005F8A: cmp esi, -1 */
    573     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
    574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    575     _flag_k = FK_CMP;
    576     if (CMP_NE(_flag_a, _flag_b)) goto L_47005FA5; /* 0x47005F8D: jne 0x47005fa5 */
    577 L_47005F8F:
    578     PUSH32(esp, edi); /* 0x47005F8F: push edi */
    579     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47005F90: call dword ptr [0x470ac3c8] */
    580     RECOMP_FLAGS_IN();
    581     edi = eax; /* 0x47005F96: mov edi, eax */
    582     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47005F98: call dword ptr [0x470ac150] */
    583     RECOMP_FLAGS_IN();
    584     MEM32(edi) = eax; /* 0x47005F9E: mov dword ptr [edi], eax */
    585     edi = POP32_VAL(esp); /* 0x47005FA0: pop edi */
    586     eax = esi; /* 0x47005FA1: mov eax, esi */
    587     esi = POP32_VAL(esp); /* 0x47005FA3: pop esi */
    588     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005FA4: ret  */
    589 L_47005FA5:
    590     eax = esi; /* 0x47005FA5: mov eax, esi */
    591     esi = POP32_VAL(esp); /* 0x47005FA7: pop esi */
    592     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005FA8: ret  */
    593     RECOMP_REGS_OUT();
    594 }
    595 
    596 void sub_47005FB0(void) {
    597     int _fpu_cmp = 0;
    598     uint32_t _cf = 0;
    599     int _df = 1;
    600     uint32_t _flag_k = FK_NONE;
    601     uint32_t _flag_a = 0, _flag_b = 0;
    602     uint32_t _itail_tgt = 0;
    603     RECOMP_REGS_LOCALS
    604     RECOMP_ENTER(0x47005FB0u);
    605 
    606 L_47005FB0:
    607     eax = MEM32(esp + 0x4); /* 0x47005FB0: mov eax, dword ptr [esp + 4] */
    608     PUSH32(esp, eax); /* 0x47005FB4: push eax */
    609     RECOMP_ICALL(MEM32(0x470AC2C4)); /* 0x47005FB5: call dword ptr [0x470ac2c4] */
    610     RECOMP_FLAGS_IN();
    611     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    612     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    613     esp = esp + 4; /* 0x47005FBB: add esp, 4 */
    614     _flag_k = FK_ADD;
    615     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005FBE: ret  */
    616     RECOMP_REGS_OUT();
    617 }
    618 
    619 void sub_47005FC0(void) {
    620     int _fpu_cmp = 0;
    621     uint32_t _cf = 0;
    622     int _df = 1;
    623     uint32_t _flag_k = FK_NONE;
    624     uint32_t _flag_a = 0, _flag_b = 0;
    625     uint32_t _itail_tgt = 0;
    626     RECOMP_REGS_LOCALS
    627     RECOMP_ENTER(0x47005FC0u);
    628 
    629 L_47005FC0:
    630     eax = MEM32(esp + 0x4); /* 0x47005FC0: mov eax, dword ptr [esp + 4] */
    631     PUSH32(esp, eax); /* 0x47005FC4: push eax */
    632     RECOMP_ICALL(MEM32(0x470AC2C8)); /* 0x47005FC5: call dword ptr [0x470ac2c8] */
    633     RECOMP_FLAGS_IN();
    634     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    635     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    636     esp = esp + 4; /* 0x47005FCB: add esp, 4 */
    637     _flag_k = FK_ADD;
    638     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005FCE: ret  */
    639     RECOMP_REGS_OUT();
    640 }
    641 
    642 void sub_47005FD0(void) {
    643     int _fpu_cmp = 0;
    644     uint32_t _cf = 0;
    645     int _df = 1;
    646     uint32_t _flag_k = FK_NONE;
    647     uint32_t _flag_a = 0, _flag_b = 0;
    648     uint32_t _itail_tgt = 0;
    649     RECOMP_REGS_LOCALS
    650     RECOMP_ENTER(0x47005FD0u);
    651 
    652 L_47005FD0:
    653     eax = MEM32(esp + 0x4); /* 0x47005FD0: mov eax, dword ptr [esp + 4] */
    654     PUSH32(esp, eax); /* 0x47005FD4: push eax */
    655     RECOMP_ICALL(MEM32(0x470AC290)); /* 0x47005FD5: call dword ptr [0x470ac290] */
    656     RECOMP_FLAGS_IN();
    657     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    658     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    659     esp = esp + 4; /* 0x47005FDB: add esp, 4 */
    660     _flag_k = FK_ADD;
    661     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005FDE: ret  */
    662     RECOMP_REGS_OUT();
    663 }
    664 
    665 void sub_47005FE0(void) {
    666     int _fpu_cmp = 0;
    667     uint32_t _cf = 0;
    668     int _df = 1;
    669     uint32_t _flag_k = FK_NONE;
    670     uint32_t _flag_a = 0, _flag_b = 0;
    671     uint32_t _itail_tgt = 0;
    672     RECOMP_REGS_LOCALS
    673     RECOMP_ENTER(0x47005FE0u);
    674 
    675 L_47005FE0:
    676     eax = MEM32(esp + 0x8); /* 0x47005FE0: mov eax, dword ptr [esp + 8] */
    677     ecx = MEM32(esp + 0x4); /* 0x47005FE4: mov ecx, dword ptr [esp + 4] */
    678     PUSH32(esp, eax); /* 0x47005FE8: push eax */
    679     PUSH32(esp, ecx); /* 0x47005FE9: push ecx */
    680     RECOMP_ICALL(MEM32(0x470AC2D0)); /* 0x47005FEA: call dword ptr [0x470ac2d0] */
    681     RECOMP_FLAGS_IN();
    682     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    683     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    684     esp = esp + 8; /* 0x47005FF0: add esp, 8 */
    685     _flag_k = FK_ADD;
    686     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47005FF3: ret  */
    687     RECOMP_REGS_OUT();
    688 }
    689 
    690 void sub_47006000(void) {
    691     int _fpu_cmp = 0;
    692     uint32_t _cf = 0;
    693     int _df = 1;
    694     uint32_t _flag_k = FK_NONE;
    695     uint32_t _flag_a = 0, _flag_b = 0;
    696     uint32_t _itail_tgt = 0;
    697     RECOMP_REGS_LOCALS
    698     RECOMP_ENTER(0x47006000u);
    699 
    700 L_47006000:
    701     eax = MEM32(esp + 0x8); /* 0x47006000: mov eax, dword ptr [esp + 8] */
    702     ecx = MEM32(esp + 0x4); /* 0x47006004: mov ecx, dword ptr [esp + 4] */
    703     PUSH32(esp, eax); /* 0x47006008: push eax */
    704     PUSH32(esp, ecx); /* 0x47006009: push ecx */
    705     RECOMP_ICALL(MEM32(0x470AC2D4)); /* 0x4700600A: call dword ptr [0x470ac2d4] */
    706     RECOMP_FLAGS_IN();
    707     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    708     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    709     esp = esp + 8; /* 0x47006010: add esp, 8 */
    710     _flag_k = FK_ADD;
    711     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006013: ret  */
    712     RECOMP_REGS_OUT();
    713 }
    714 
    715 void sub_47006020(void) {
    716     int _fpu_cmp = 0;
    717     uint32_t _cf = 0;
    718     int _df = 1;
    719     uint32_t _flag_k = FK_NONE;
    720     uint32_t _flag_a = 0, _flag_b = 0;
    721     uint32_t _itail_tgt = 0;
    722     RECOMP_REGS_LOCALS
    723     RECOMP_ENTER(0x47006020u);
    724 
    725 L_47006020:
    726     eax = MEM32(esp + 0x4); /* 0x47006020: mov eax, dword ptr [esp + 4] */
    727     PUSH32(esp, esi); /* 0x47006024: push esi */
    728     PUSH32(esp, edi); /* 0x47006025: push edi */
    729     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    730     edi = 0; /* 0x47006026: xor edi, edi */
    731     _cf = 0;
    732     _flag_k = FK_TEST;
    733     PUSH32(esp, edi); /* 0x47006028: push edi */
    734     PUSH32(esp, eax); /* 0x47006029: push eax */
    735     RECOMP_ICALL(MEM32(0x470AC258)); /* 0x4700602A: call dword ptr [0x470ac258] */
    736     RECOMP_FLAGS_IN();
    737     esi = eax; /* 0x47006030: mov esi, eax */
    738     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    739     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    740     esp = esp + 8; /* 0x47006032: add esp, 8 */
    741     _flag_k = FK_ADD;
    742     /* cmp esi, 0xFFFFFFFFu */ /* 0x47006035: cmp esi, -1 */
    743     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
    744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    745     _flag_k = FK_CMP;
    746     if (CMP_EQ(_flag_a, _flag_b)) goto L_47006059; /* 0x47006038: je 0x47006059 */
    747 L_4700603A:
    748     ecx = MEM32(esp + 0x10); /* 0x4700603A: mov ecx, dword ptr [esp + 0x10] */
    749     PUSH32(esp, ecx); /* 0x4700603E: push ecx */
    750     PUSH32(esp, esi); /* 0x4700603F: push esi */
    751     RECOMP_ICALL(MEM32(0x470AC2D8)); /* 0x47006040: call dword ptr [0x470ac2d8] */
    752     RECOMP_FLAGS_IN();
    753     edi = eax; /* 0x47006046: mov edi, eax */
    754     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    755     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    756     esp = esp + 8; /* 0x47006048: add esp, 8 */
    757     _flag_k = FK_ADD;
    758     /* test edi, edi */ /* 0x4700604B: test edi, edi */
    759     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    760     _cf = 0;
    761     _flag_k = FK_TEST;
    762     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006059; /* 0x4700604D: jne 0x47006059 */
    763 L_4700604F:
    764     PUSH32(esp, esi); /* 0x4700604F: push esi */
    765     RECOMP_ICALL(MEM32(0x470AC250)); /* 0x47006050: call dword ptr [0x470ac250] */
    766     RECOMP_FLAGS_IN();
    767     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    768     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    769     esp = esp + 4; /* 0x47006056: add esp, 4 */
    770     _flag_k = FK_ADD;
    771 L_47006059:
    772     eax = edi; /* 0x47006059: mov eax, edi */
    773     edi = POP32_VAL(esp); /* 0x4700605B: pop edi */
    774     esi = POP32_VAL(esp); /* 0x4700605C: pop esi */
    775     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700605D: ret  */
    776     RECOMP_REGS_OUT();
    777 }
    778 
    779 void sub_47006060(void) {
    780     int _fpu_cmp = 0;
    781     uint32_t _cf = 0;
    782     int _df = 1;
    783     uint32_t _flag_k = FK_NONE;
    784     uint32_t _flag_a = 0, _flag_b = 0;
    785     uint32_t _itail_tgt = 0;
    786     RECOMP_REGS_LOCALS
    787     RECOMP_ENTER(0x47006060u);
    788 
    789 L_47006060:
    790     eax = MEM32(esp + 0x8); /* 0x47006060: mov eax, dword ptr [esp + 8] */
    791     ecx = MEM32(esp + 0x4); /* 0x47006064: mov ecx, dword ptr [esp + 4] */
    792     PUSH32(esp, eax); /* 0x47006068: push eax */
    793     PUSH32(esp, ecx); /* 0x47006069: push ecx */
    794     RECOMP_ICALL(MEM32(0x470AC2DC)); /* 0x4700606A: call dword ptr [0x470ac2dc] */
    795     RECOMP_FLAGS_IN();
    796     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    797     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    798     esp = esp + 8; /* 0x47006070: add esp, 8 */
    799     _flag_k = FK_ADD;
    800     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006073: ret  */
    801     RECOMP_REGS_OUT();
    802 }
    803 
    804 void sub_47006080(void) {
    805     int _fpu_cmp = 0;
    806     uint32_t _cf = 0;
    807     int _df = 1;
    808     uint32_t _flag_k = FK_NONE;
    809     uint32_t _flag_a = 0, _flag_b = 0;
    810     uint32_t _itail_tgt = 0;
    811     RECOMP_REGS_LOCALS
    812     RECOMP_ENTER(0x47006080u);
    813 
    814 L_47006080:
    815     eax = MEM32(esp + 0x4); /* 0x47006080: mov eax, dword ptr [esp + 4] */
    816     PUSH32(esp, eax); /* 0x47006084: push eax */
    817     RECOMP_ICALL(MEM32(0x470AC2E0)); /* 0x47006085: call dword ptr [0x470ac2e0] */
    818     RECOMP_FLAGS_IN();
    819     ecx = POP32_VAL(esp); /* 0x4700608B: pop ecx */
    820     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700608C: ret  */
    821     RECOMP_REGS_OUT();
    822 }
    823 
    824 void sub_47006090(void) {
    825     int _fpu_cmp = 0;
    826     uint32_t _cf = 0;
    827     int _df = 1;
    828     uint32_t _flag_k = FK_NONE;
    829     uint32_t _flag_a = 0, _flag_b = 0;
    830     uint32_t _itail_tgt = 0;
    831     RECOMP_REGS_LOCALS
    832     RECOMP_ENTER(0x47006090u);
    833 
    834 L_47006090:
    835     eax = MEM32(esp + 0xC); /* 0x47006090: mov eax, dword ptr [esp + 0xc] */
    836     ecx = MEM32(esp + 0x8); /* 0x47006094: mov ecx, dword ptr [esp + 8] */
    837     edx = MEM32(esp + 0x4); /* 0x47006098: mov edx, dword ptr [esp + 4] */
    838     PUSH32(esp, eax); /* 0x4700609C: push eax */
    839     PUSH32(esp, ecx); /* 0x4700609D: push ecx */
    840     PUSH32(esp, edx); /* 0x4700609E: push edx */
    841     RECOMP_ICALL(MEM32(0x470AC2E4)); /* 0x4700609F: call dword ptr [0x470ac2e4] */
    842     RECOMP_FLAGS_IN();
    843     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    844     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    845     esp = esp + 0xCu; /* 0x470060A5: add esp, 0xc */
    846     _flag_k = FK_ADD;
    847     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470060A8: ret  */
    848     RECOMP_REGS_OUT();
    849 }
    850 
    851 void sub_470060B0(void) {
    852     int _fpu_cmp = 0;
    853     uint32_t _cf = 0;
    854     int _df = 1;
    855     uint32_t _flag_k = FK_NONE;
    856     uint32_t _flag_a = 0, _flag_b = 0;
    857     uint32_t _itail_tgt = 0;
    858     RECOMP_REGS_LOCALS
    859     RECOMP_ENTER(0x470060B0u);
    860 
    861 L_470060B0:
    862     eax = MEM32(esp + 0x4); /* 0x470060B0: mov eax, dword ptr [esp + 4] */
    863     PUSH32(esp, eax); /* 0x470060B4: push eax */
    864     RECOMP_ICALL(MEM32(0x470AC2E8)); /* 0x470060B5: call dword ptr [0x470ac2e8] */
    865     RECOMP_FLAGS_IN();
    866     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    867     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    868     esp = esp + 4; /* 0x470060BB: add esp, 4 */
    869     _flag_k = FK_ADD;
    870     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470060BE: ret  */
    871     RECOMP_REGS_OUT();
    872 }
    873 
    874 void sub_470060C0(void) {
    875     int _fpu_cmp = 0;
    876     uint32_t _cf = 0;
    877     int _df = 1;
    878     uint32_t _flag_k = FK_NONE;
    879     uint32_t _flag_a = 0, _flag_b = 0;
    880     uint32_t _itail_tgt = 0;
    881     RECOMP_REGS_LOCALS
    882     RECOMP_ENTER(0x470060C0u);
    883 
    884 L_470060C0:
    885     eax = MEM32(esp + 0x4); /* 0x470060C0: mov eax, dword ptr [esp + 4] */
    886     PUSH32(esp, eax); /* 0x470060C4: push eax */
    887     RECOMP_ICALL(MEM32(0x470AC2EC)); /* 0x470060C5: call dword ptr [0x470ac2ec] */
    888     RECOMP_FLAGS_IN();
    889     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    890     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    891     esp = esp + 4; /* 0x470060CB: add esp, 4 */
    892     _flag_k = FK_ADD;
    893     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470060CE: ret  */
    894     RECOMP_REGS_OUT();
    895 }
    896 
    897 void sub_470060D0(void) {
    898     int _fpu_cmp = 0;
    899     uint32_t _cf = 0;
    900     int _df = 1;
    901     uint32_t _flag_k = FK_NONE;
    902     uint32_t _flag_a = 0, _flag_b = 0;
    903     uint32_t _itail_tgt = 0;
    904     RECOMP_REGS_LOCALS
    905     RECOMP_ENTER(0x470060D0u);
    906 
    907 L_470060D0:
    908     eax = MEM32(esp + 0x4); /* 0x470060D0: mov eax, dword ptr [esp + 4] */
    909     PUSH32(esp, eax); /* 0x470060D4: push eax */
    910     RECOMP_ICALL(MEM32(0x470AC2F0)); /* 0x470060D5: call dword ptr [0x470ac2f0] */
    911     RECOMP_FLAGS_IN();
    912     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    913     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    914     esp = esp + 4; /* 0x470060DB: add esp, 4 */
    915     _flag_k = FK_ADD;
    916     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470060DE: ret  */
    917     RECOMP_REGS_OUT();
    918 }
    919 
    920 void sub_470060E0(void) {
    921     int _fpu_cmp = 0;
    922     uint32_t _cf = 0;
    923     int _df = 1;
    924     uint32_t _flag_k = FK_NONE;
    925     uint32_t _flag_a = 0, _flag_b = 0;
    926     uint32_t _itail_tgt = 0;
    927     RECOMP_REGS_LOCALS
    928     RECOMP_ENTER(0x470060E0u);
    929 
    930 L_470060E0:
    931     eax = MEM32(esp + 0x4); /* 0x470060E0: mov eax, dword ptr [esp + 4] */
    932     PUSH32(esp, eax); /* 0x470060E4: push eax */
    933     RECOMP_ICALL(MEM32(0x470AC2F4)); /* 0x470060E5: call dword ptr [0x470ac2f4] */
    934     RECOMP_FLAGS_IN();
    935     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    936     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    937     esp = esp + 4; /* 0x470060EB: add esp, 4 */
    938     _flag_k = FK_ADD;
    939     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470060EE: ret  */
    940     RECOMP_REGS_OUT();
    941 }
    942 
    943 void sub_470060F0(void) {
    944     int _fpu_cmp = 0;
    945     uint32_t _cf = 0;
    946     int _df = 1;
    947     uint32_t _flag_k = FK_NONE;
    948     uint32_t _flag_a = 0, _flag_b = 0;
    949     uint32_t _itail_tgt = 0;
    950     RECOMP_REGS_LOCALS
    951     RECOMP_ENTER(0x470060F0u);
    952 
    953 L_470060F0:
    954     eax = MEM32(esp + 0x8); /* 0x470060F0: mov eax, dword ptr [esp + 8] */
    955     ecx = MEM32(esp + 0x4); /* 0x470060F4: mov ecx, dword ptr [esp + 4] */
    956     PUSH32(esp, eax); /* 0x470060F8: push eax */
    957     PUSH32(esp, ecx); /* 0x470060F9: push ecx */
    958     RECOMP_ICALL(MEM32(0x470AC2F8)); /* 0x470060FA: call dword ptr [0x470ac2f8] */
    959     RECOMP_FLAGS_IN();
    960     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    961     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    962     esp = esp + 8; /* 0x47006100: add esp, 8 */
    963     _flag_k = FK_ADD;
    964     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006103: ret  */
    965     RECOMP_REGS_OUT();
    966 }
    967 
    968 void sub_47006110(void) {
    969     int _fpu_cmp = 0;
    970     uint32_t _cf = 0;
    971     int _df = 1;
    972     uint32_t _flag_k = FK_NONE;
    973     uint32_t _flag_a = 0, _flag_b = 0;
    974     uint32_t _itail_tgt = 0;
    975     RECOMP_REGS_LOCALS
    976     RECOMP_ENTER(0x47006110u);
    977 
    978 L_47006110:
    979     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006110: call dword ptr [0x470ac3c8] */
    980     RECOMP_FLAGS_IN();
    981     MEM32(eax) = 0x28u; /* 0x47006116: mov dword ptr [eax], 0x28 */
    982     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    983     eax = eax | 0xFFFFFFFFu; /* 0x4700611C: or eax, 0xffffffff */
    984     _cf = 0;
    985     _flag_k = FK_TEST;
    986     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700611F: ret  */
    987     RECOMP_REGS_OUT();
    988 }
    989 
    990 void sub_47006120(void) {
    991     int _fpu_cmp = 0;
    992     uint32_t _cf = 0;
    993     int _df = 1;
    994     uint32_t _flag_k = FK_NONE;
    995     uint32_t _flag_a = 0, _flag_b = 0;
    996     uint32_t _itail_tgt = 0;
    997     RECOMP_REGS_LOCALS
    998     RECOMP_ENTER(0x47006120u);
    999 
   1000 L_47006120:
   1001     edx = MEM32(esp + 0x4); /* 0x47006120: mov edx, dword ptr [esp + 4] */
   1002     /* test edx, edx */ /* 0x47006124: test edx, edx */
   1003     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1004     _cf = 0;
   1005     _flag_k = FK_TEST;
   1006     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006138; /* 0x47006126: jne 0x47006138 */
   1007 L_47006128:
   1008     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006128: call dword ptr [0x470ac3c8] */
   1009     RECOMP_FLAGS_IN();
   1010     MEM32(eax) = 0xEu; /* 0x4700612E: mov dword ptr [eax], 0xe */
   1011     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1012     eax = eax | 0xFFFFFFFFu; /* 0x47006134: or eax, 0xffffffff */
   1013     _cf = 0;
   1014     _flag_k = FK_TEST;
   1015     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006137: ret  */
   1016 L_47006138:
   1017     eax = MEM32(esp + 0x8); /* 0x47006138: mov eax, dword ptr [esp + 8] */
   1018     /* cmp eax, 1 */ /* 0x4700613C: cmp eax, 1 */
   1019     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1020     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1021     _flag_k = FK_CMP;
   1022     if (CMP_L(_flag_a, _flag_b)) goto L_47006155; /* 0x4700613F: jl 0x47006155 */
   1023 L_47006141:
   1024     /* cmp eax, 0x17u */ /* 0x47006141: cmp eax, 0x17 */
   1025     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x17u);
   1026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1027     _flag_k = FK_CMP;
   1028     if (CMP_GE(_flag_a, _flag_b)) goto L_47006155; /* 0x47006144: jge 0x47006155 */
   1029 L_47006146:
   1030     ecx = eax + (-0x1); /* 0x47006146: lea ecx, [eax - 1] */
   1031     eax = 1; /* 0x47006149: mov eax, 1 */
   1032     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((eax) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x4700614E: shl eax, cl */
   1033     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((eax << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1034     eax = eax << ((LO8(ecx)) & 31); /* 0x4700614E: shl eax, cl */
   1035     _flag_a = (uint32_t)((MEM32(edx) | eax)); _flag_b = (uint32_t)((MEM32(edx) | eax));
   1036     MEM32(edx) = MEM32(edx) | eax; /* 0x47006150: or dword ptr [edx], eax */
   1037     _cf = 0;
   1038     _flag_k = FK_TEST;
   1039     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1040     eax = 0; /* 0x47006152: xor eax, eax */
   1041     _cf = 0;
   1042     _flag_k = FK_TEST;
   1043     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006154: ret  */
   1044 L_47006155:
   1045     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006155: call dword ptr [0x470ac3c8] */
   1046     RECOMP_FLAGS_IN();
   1047     MEM32(eax) = 0x16u; /* 0x4700615B: mov dword ptr [eax], 0x16 */
   1048     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1049     eax = eax | 0xFFFFFFFFu; /* 0x47006161: or eax, 0xffffffff */
   1050     _cf = 0;
   1051     _flag_k = FK_TEST;
   1052     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006164: ret  */
   1053     RECOMP_REGS_OUT();
   1054 }
   1055 
   1056 void sub_47006170(void) {
   1057     int _fpu_cmp = 0;
   1058     uint32_t _cf = 0;
   1059     int _df = 1;
   1060     uint32_t _flag_k = FK_NONE;
   1061     uint32_t _flag_a = 0, _flag_b = 0;
   1062     uint32_t _itail_tgt = 0;
   1063     RECOMP_REGS_LOCALS
   1064     RECOMP_ENTER(0x47006170u);
   1065 
   1066 L_47006170:
   1067     edx = MEM32(esp + 0x4); /* 0x47006170: mov edx, dword ptr [esp + 4] */
   1068     /* test edx, edx */ /* 0x47006174: test edx, edx */
   1069     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1070     _cf = 0;
   1071     _flag_k = FK_TEST;
   1072     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006188; /* 0x47006176: jne 0x47006188 */
   1073 L_47006178:
   1074     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006178: call dword ptr [0x470ac3c8] */
   1075     RECOMP_FLAGS_IN();
   1076     MEM32(eax) = 0xEu; /* 0x4700617E: mov dword ptr [eax], 0xe */
   1077     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1078     eax = eax | 0xFFFFFFFFu; /* 0x47006184: or eax, 0xffffffff */
   1079     _cf = 0;
   1080     _flag_k = FK_TEST;
   1081     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006187: ret  */
   1082 L_47006188:
   1083     eax = MEM32(esp + 0x8); /* 0x47006188: mov eax, dword ptr [esp + 8] */
   1084     /* cmp eax, 1 */ /* 0x4700618C: cmp eax, 1 */
   1085     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1087     _flag_k = FK_CMP;
   1088     if (CMP_L(_flag_a, _flag_b)) goto L_470061AB; /* 0x4700618F: jl 0x470061ab */
   1089 L_47006191:
   1090     /* cmp eax, 0x17u */ /* 0x47006191: cmp eax, 0x17 */
   1091     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x17u);
   1092     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1093     _flag_k = FK_CMP;
   1094     if (CMP_GE(_flag_a, _flag_b)) goto L_470061AB; /* 0x47006194: jge 0x470061ab */
   1095 L_47006196:
   1096     ecx = eax + (-0x1); /* 0x47006196: lea ecx, [eax - 1] */
   1097     eax = 1; /* 0x47006199: mov eax, 1 */
   1098     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((eax) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x4700619E: shl eax, cl */
   1099     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((eax << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1100     eax = eax << ((LO8(ecx)) & 31); /* 0x4700619E: shl eax, cl */
   1101     ecx = MEM32(edx); /* 0x470061A0: mov ecx, dword ptr [edx] */
   1102     eax = ~eax; /* 0x470061A2: not eax */
   1103     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1104     ecx = ecx & eax; /* 0x470061A4: and ecx, eax */
   1105     _cf = 0;
   1106     _flag_k = FK_TEST;
   1107     MEM32(edx) = ecx; /* 0x470061A6: mov dword ptr [edx], ecx */
   1108     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1109     eax = 0; /* 0x470061A8: xor eax, eax */
   1110     _cf = 0;
   1111     _flag_k = FK_TEST;
   1112     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470061AA: ret  */
   1113 L_470061AB:
   1114     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470061AB: call dword ptr [0x470ac3c8] */
   1115     RECOMP_FLAGS_IN();
   1116     MEM32(eax) = 0x16u; /* 0x470061B1: mov dword ptr [eax], 0x16 */
   1117     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1118     eax = eax | 0xFFFFFFFFu; /* 0x470061B7: or eax, 0xffffffff */
   1119     _cf = 0;
   1120     _flag_k = FK_TEST;
   1121     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470061BA: ret  */
   1122     RECOMP_REGS_OUT();
   1123 }
   1124 
   1125 void sub_470061C0(void) {
   1126     int _fpu_cmp = 0;
   1127     uint32_t _cf = 0;
   1128     int _df = 1;
   1129     uint32_t _flag_k = FK_NONE;
   1130     uint32_t _flag_a = 0, _flag_b = 0;
   1131     uint32_t _itail_tgt = 0;
   1132     RECOMP_REGS_LOCALS
   1133     RECOMP_ENTER(0x470061C0u);
   1134 
   1135 L_470061C0:
   1136     eax = MEM32(esp + 0x4); /* 0x470061C0: mov eax, dword ptr [esp + 4] */
   1137     /* test eax, eax */ /* 0x470061C4: test eax, eax */
   1138     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1139     _cf = 0;
   1140     _flag_k = FK_TEST;
   1141     if (TEST_NZ(_flag_a, _flag_b)) goto L_470061D8; /* 0x470061C6: jne 0x470061d8 */
   1142 L_470061C8:
   1143     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470061C8: call dword ptr [0x470ac3c8] */
   1144     RECOMP_FLAGS_IN();
   1145     MEM32(eax) = 0xEu; /* 0x470061CE: mov dword ptr [eax], 0xe */
   1146     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1147     eax = eax | 0xFFFFFFFFu; /* 0x470061D4: or eax, 0xffffffff */
   1148     _cf = 0;
   1149     _flag_k = FK_TEST;
   1150     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470061D7: ret  */
   1151 L_470061D8:
   1152     MEM32(eax) = 0; /* 0x470061D8: mov dword ptr [eax], 0 */
   1153     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1154     eax = 0; /* 0x470061DE: xor eax, eax */
   1155     _cf = 0;
   1156     _flag_k = FK_TEST;
   1157     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470061E0: ret  */
   1158     RECOMP_REGS_OUT();
   1159 }
   1160 
   1161 void sub_470061F0(void) {
   1162     int _fpu_cmp = 0;
   1163     uint32_t _cf = 0;
   1164     int _df = 1;
   1165     uint32_t _flag_k = FK_NONE;
   1166     uint32_t _flag_a = 0, _flag_b = 0;
   1167     uint32_t _itail_tgt = 0;
   1168     RECOMP_REGS_LOCALS
   1169     RECOMP_ENTER(0x470061F0u);
   1170 
   1171 L_470061F0:
   1172     eax = MEM32(esp + 0x4); /* 0x470061F0: mov eax, dword ptr [esp + 4] */
   1173     /* test eax, eax */ /* 0x470061F4: test eax, eax */
   1174     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1175     _cf = 0;
   1176     _flag_k = FK_TEST;
   1177     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006208; /* 0x470061F6: jne 0x47006208 */
   1178 L_470061F8:
   1179     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470061F8: call dword ptr [0x470ac3c8] */
   1180     RECOMP_FLAGS_IN();
   1181     MEM32(eax) = 0xEu; /* 0x470061FE: mov dword ptr [eax], 0xe */
   1182     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1183     eax = eax | 0xFFFFFFFFu; /* 0x47006204: or eax, 0xffffffff */
   1184     _cf = 0;
   1185     _flag_k = FK_TEST;
   1186     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006207: ret  */
   1187 L_47006208:
   1188     MEM32(eax) = 0xFFFFFFFFu; /* 0x47006208: mov dword ptr [eax], 0xffffffff */
   1189     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1190     eax = 0; /* 0x4700620E: xor eax, eax */
   1191     _cf = 0;
   1192     _flag_k = FK_TEST;
   1193     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006210: ret  */
   1194     RECOMP_REGS_OUT();
   1195 }
   1196 
   1197 void sub_47006220(void) {
   1198     int _fpu_cmp = 0;
   1199     uint32_t _cf = 0;
   1200     int _df = 1;
   1201     uint32_t _flag_k = FK_NONE;
   1202     uint32_t _flag_a = 0, _flag_b = 0;
   1203     uint32_t _itail_tgt = 0;
   1204     RECOMP_REGS_LOCALS
   1205     RECOMP_ENTER(0x47006220u);
   1206 
   1207 L_47006220:
   1208     edx = MEM32(esp + 0x4); /* 0x47006220: mov edx, dword ptr [esp + 4] */
   1209     /* test edx, edx */ /* 0x47006224: test edx, edx */
   1210     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1211     _cf = 0;
   1212     _flag_k = FK_TEST;
   1213     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006238; /* 0x47006226: jne 0x47006238 */
   1214 L_47006228:
   1215     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006228: call dword ptr [0x470ac3c8] */
   1216     RECOMP_FLAGS_IN();
   1217     MEM32(eax) = 0xEu; /* 0x4700622E: mov dword ptr [eax], 0xe */
   1218     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1219     eax = eax | 0xFFFFFFFFu; /* 0x47006234: or eax, 0xffffffff */
   1220     _cf = 0;
   1221     _flag_k = FK_TEST;
   1222     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006237: ret  */
   1223 L_47006238:
   1224     eax = MEM32(esp + 0x8); /* 0x47006238: mov eax, dword ptr [esp + 8] */
   1225     /* cmp eax, 1 */ /* 0x4700623C: cmp eax, 1 */
   1226     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1227     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1228     _flag_k = FK_CMP;
   1229     if (CMP_L(_flag_a, _flag_b)) goto L_47006259; /* 0x4700623F: jl 0x47006259 */
   1230 L_47006241:
   1231     /* cmp eax, 0x17u */ /* 0x47006241: cmp eax, 0x17 */
   1232     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x17u);
   1233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1234     _flag_k = FK_CMP;
   1235     if (CMP_GE(_flag_a, _flag_b)) goto L_47006259; /* 0x47006244: jge 0x47006259 */
   1236 L_47006246:
   1237     ecx = eax + (-0x1); /* 0x47006246: lea ecx, [eax - 1] */
   1238     eax = 1; /* 0x47006249: mov eax, 1 */
   1239     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((eax) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x4700624E: shl eax, cl */
   1240     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((eax << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1241     eax = eax << ((LO8(ecx)) & 31); /* 0x4700624E: shl eax, cl */
   1242     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1243     eax = eax & MEM32(edx); /* 0x47006250: and eax, dword ptr [edx] */
   1244     _cf = 0;
   1245     _flag_k = FK_TEST;
   1246     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1247     _cf = (eax) != 0;
   1248     eax = (uint32_t)(-(int32_t)eax); /* 0x47006252: neg eax */
   1249     _flag_k = FK_CMP;
   1250     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47006254: sbb eax, eax */
   1251       eax = _sc ? 0xFFFFFFFFu : 0;
   1252       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1253       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1254     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1255     _cf = (eax) != 0;
   1256     eax = (uint32_t)(-(int32_t)eax); /* 0x47006256: neg eax */
   1257     _flag_k = FK_CMP;
   1258     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006258: ret  */
   1259 L_47006259:
   1260     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006259: call dword ptr [0x470ac3c8] */
   1261     RECOMP_FLAGS_IN();
   1262     MEM32(eax) = 0x16u; /* 0x4700625F: mov dword ptr [eax], 0x16 */
   1263     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1264     eax = eax | 0xFFFFFFFFu; /* 0x47006265: or eax, 0xffffffff */
   1265     _cf = 0;
   1266     _flag_k = FK_TEST;
   1267     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006268: ret  */
   1268     RECOMP_REGS_OUT();
   1269 }
   1270 
   1271 void sub_47006270(void) {
   1272     int _fpu_cmp = 0;
   1273     uint32_t _cf = 0;
   1274     int _df = 1;
   1275     uint32_t _flag_k = FK_NONE;
   1276     uint32_t _flag_a = 0, _flag_b = 0;
   1277     uint32_t _itail_tgt = 0;
   1278     RECOMP_REGS_LOCALS
   1279     RECOMP_ENTER(0x47006270u);
   1280 
   1281 L_47006270:
   1282     eax = ecx; /* 0x47006270: mov eax, ecx */
   1283     MEM32(eax) = 0x470AC4F4u; /* 0x47006272: mov dword ptr [eax], 0x470ac4f4 */
   1284     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006278: ret  */
   1285     RECOMP_REGS_OUT();
   1286 }
   1287 
   1288 void sub_47006280(void) {
   1289     int _fpu_cmp = 0;
   1290     uint32_t _cf = 0;
   1291     int _df = 1;
   1292     uint32_t _flag_k = FK_NONE;
   1293     uint32_t _flag_a = 0, _flag_b = 0;
   1294     uint32_t _itail_tgt = 0;
   1295     RECOMP_REGS_LOCALS
   1296     RECOMP_ENTER(0x47006280u);
   1297 
   1298 L_47006280:
   1299     MEM32(ecx) = 0x470AC4F4u; /* 0x47006280: mov dword ptr [ecx], 0x470ac4f4 */
   1300     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006286: ret  */
   1301     RECOMP_REGS_OUT();
   1302 }
   1303 
   1304 void sub_47006290(void) {
   1305     int _fpu_cmp = 0;
   1306     uint32_t _cf = 0;
   1307     int _df = 1;
   1308     uint32_t _flag_k = FK_NONE;
   1309     uint32_t _flag_a = 0, _flag_b = 0;
   1310     uint32_t _itail_tgt = 0;
   1311     RECOMP_REGS_LOCALS
   1312     RECOMP_ENTER(0x47006290u);
   1313 
   1314 L_47006290:
   1315     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006290: call dword ptr [0x470ac3c8] */
   1316     RECOMP_FLAGS_IN();
   1317     MEM32(eax) = 0x28u; /* 0x47006296: mov dword ptr [eax], 0x28 */
   1318     eax = MEM32(esp + 0xC); /* 0x4700629C: mov eax, dword ptr [esp + 0xc] */
   1319     MEM32(eax) = 0; /* 0x470062A0: mov dword ptr [eax], 0 */
   1320     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1321     eax = 0; /* 0x470062A6: xor eax, eax */
   1322     _cf = 0;
   1323     _flag_k = FK_TEST;
   1324     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470062A8: ret  */
   1325     RECOMP_REGS_OUT();
   1326 }
   1327 
   1328 void sub_470062B0(void) {
   1329     int _fpu_cmp = 0;
   1330     uint32_t _cf = 0;
   1331     int _df = 1;
   1332     uint32_t _flag_k = FK_NONE;
   1333     uint32_t _flag_a = 0, _flag_b = 0;
   1334     uint32_t _itail_tgt = 0;
   1335     RECOMP_REGS_LOCALS
   1336     RECOMP_ENTER(0x470062B0u);
   1337 
   1338 L_470062B0:
   1339     eax = MEM32(esp + 0x14); /* 0x470062B0: mov eax, dword ptr [esp + 0x14] */
   1340     ecx = MEM32(esp + 0x10); /* 0x470062B4: mov ecx, dword ptr [esp + 0x10] */
   1341     edx = MEM32(esp + 0xC); /* 0x470062B8: mov edx, dword ptr [esp + 0xc] */
   1342     PUSH32(esp, eax); /* 0x470062BC: push eax */
   1343     eax = MEM32(esp + 0xC); /* 0x470062BD: mov eax, dword ptr [esp + 0xc] */
   1344     PUSH32(esp, ecx); /* 0x470062C1: push ecx */
   1345     ecx = MEM32(esp + 0xC); /* 0x470062C2: mov ecx, dword ptr [esp + 0xc] */
   1346     PUSH32(esp, edx); /* 0x470062C6: push edx */
   1347     PUSH32(esp, eax); /* 0x470062C7: push eax */
   1348     PUSH32(esp, ecx); /* 0x470062C8: push ecx */
   1349     RECOMP_ICALL(MEM32(0x470AC2FC)); /* 0x470062C9: call dword ptr [0x470ac2fc] */
   1350     RECOMP_FLAGS_IN();
   1351     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1352     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1353     esp = esp + 0x14u; /* 0x470062CF: add esp, 0x14 */
   1354     _flag_k = FK_ADD;
   1355     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470062D2: ret  */
   1356     RECOMP_REGS_OUT();
   1357 }
   1358 
   1359 void sub_470062E0(void) {
   1360     int _fpu_cmp = 0;
   1361     uint32_t _cf = 0;
   1362     int _df = 1;
   1363     uint32_t _flag_k = FK_NONE;
   1364     uint32_t _flag_a = 0, _flag_b = 0;
   1365     uint32_t _itail_tgt = 0;
   1366     RECOMP_REGS_LOCALS
   1367     RECOMP_ENTER(0x470062E0u);
   1368 
   1369 L_470062E0:
   1370     eax = MEM32(esp + 0x10); /* 0x470062E0: mov eax, dword ptr [esp + 0x10] */
   1371     ecx = MEM32(esp + 0xC); /* 0x470062E4: mov ecx, dword ptr [esp + 0xc] */
   1372     edx = MEM32(esp + 0x8); /* 0x470062E8: mov edx, dword ptr [esp + 8] */
   1373     PUSH32(esp, eax); /* 0x470062EC: push eax */
   1374     eax = MEM32(esp + 0x8); /* 0x470062ED: mov eax, dword ptr [esp + 8] */
   1375     PUSH32(esp, ecx); /* 0x470062F1: push ecx */
   1376     PUSH32(esp, edx); /* 0x470062F2: push edx */
   1377     PUSH32(esp, eax); /* 0x470062F3: push eax */
   1378     RECOMP_ICALL(MEM32(0x470AC300)); /* 0x470062F4: call dword ptr [0x470ac300] */
   1379     RECOMP_FLAGS_IN();
   1380     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1381     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1382     esp = esp + 0x10u; /* 0x470062FA: add esp, 0x10 */
   1383     _flag_k = FK_ADD;
   1384     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470062FD: ret  */
   1385     RECOMP_REGS_OUT();
   1386 }
   1387 
   1388 void sub_47006300(void) {
   1389     int _fpu_cmp = 0;
   1390     uint32_t _cf = 0;
   1391     int _df = 1;
   1392     uint32_t _flag_k = FK_NONE;
   1393     uint32_t _flag_a = 0, _flag_b = 0;
   1394     uint32_t _itail_tgt = 0;
   1395     RECOMP_REGS_LOCALS
   1396     RECOMP_ENTER(0x47006300u);
   1397 
   1398 L_47006300:
   1399     ecx = MEM32(esp + 0x4); /* 0x47006300: mov ecx, dword ptr [esp + 4] */
   1400     eax = MEM32(0x4710E9B4); /* 0x47006304: mov eax, dword ptr [0x4710e9b4] */
   1401     MEM32(0x4710E9B4) = ecx; /* 0x47006309: mov dword ptr [0x4710e9b4], ecx */
   1402     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700630F: ret  */
   1403     RECOMP_REGS_OUT();
   1404 }
   1405 
   1406 void sub_47006310(void) {
   1407     int _fpu_cmp = 0;
   1408     uint32_t _cf = 0;
   1409     int _df = 1;
   1410     uint32_t _flag_k = FK_NONE;
   1411     uint32_t _flag_a = 0, _flag_b = 0;
   1412     uint32_t _itail_tgt = 0;
   1413     RECOMP_REGS_LOCALS
   1414     RECOMP_ENTER(0x47006310u);
   1415 
   1416 L_47006310:
   1417     eax = MEM32(esp + 0x4); /* 0x47006310: mov eax, dword ptr [esp + 4] */
   1418     PUSH32(esp, eax); /* 0x47006314: push eax */
   1419     RECOMP_ICALL(MEM32(0x470AC304)); /* 0x47006315: call dword ptr [0x470ac304] */
   1420     RECOMP_FLAGS_IN();
   1421     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1422     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1423     esp = esp + 4; /* 0x4700631B: add esp, 4 */
   1424     _flag_k = FK_ADD;
   1425     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700631E: ret  */
   1426     RECOMP_REGS_OUT();
   1427 }
   1428 
   1429 void sub_47006320(void) {
   1430     int _fpu_cmp = 0;
   1431     uint32_t _cf = 0;
   1432     int _df = 1;
   1433     uint32_t _flag_k = FK_NONE;
   1434     uint32_t _flag_a = 0, _flag_b = 0;
   1435     uint32_t _itail_tgt = 0;
   1436     RECOMP_REGS_LOCALS
   1437     RECOMP_ENTER(0x47006320u);
   1438 
   1439 L_47006320:
   1440     eax = MEM32(esp + 0x4); /* 0x47006320: mov eax, dword ptr [esp + 4] */
   1441     PUSH32(esp, 0); /* 0x47006324: push 0 */
   1442     PUSH32(esp, eax); /* 0x47006326: push eax */
   1443     RECOMP_ICALL(MEM32(0x470AC258)); /* 0x47006327: call dword ptr [0x470ac258] */
   1444     RECOMP_FLAGS_IN();
   1445     PUSH32(esp, eax); /* 0x4700632D: push eax */
   1446     RECOMP_ICALL(MEM32(0x470AC304)); /* 0x4700632E: call dword ptr [0x470ac304] */
   1447     RECOMP_FLAGS_IN();
   1448     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1449     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1450     esp = esp + 0xCu; /* 0x47006334: add esp, 0xc */
   1451     _flag_k = FK_ADD;
   1452     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006337: ret  */
   1453     RECOMP_REGS_OUT();
   1454 }
   1455 
   1456 void sub_47006340(void) {
   1457     int _fpu_cmp = 0;
   1458     uint32_t _cf = 0;
   1459     int _df = 1;
   1460     uint32_t _flag_k = FK_NONE;
   1461     uint32_t _flag_a = 0, _flag_b = 0;
   1462     uint32_t _itail_tgt = 0;
   1463     RECOMP_REGS_LOCALS
   1464     RECOMP_ENTER(0x47006340u);
   1465 
   1466 L_47006340:
   1467     eax = (int32_t)(int8_t)MEM8(esp + 0x4); /* 0x47006340: movsx eax, byte ptr [esp + 4] */
   1468 L_47006345:
   1469     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFD5u);
   1470     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1471     eax = eax + 0xFFFFFFD5u; /* 0x47006345: add eax, -0x2b */
   1472     _flag_k = FK_ADD;
   1473 L_47006348:
   1474     /* cmp eax, 0x4Cu */ /* 0x47006348: cmp eax, 0x4c */
   1475     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Cu);
   1476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1477     _flag_k = FK_CMP;
   1478 L_4700634B:
   1479     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_470063D4; /* 0x4700634B: ja 0x470063d4 */
   1480 L_47006351:
   1481     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1482     ecx = 0; /* 0x47006351: xor ecx, ecx */
   1483     _cf = 0;
   1484     _flag_k = FK_TEST;
   1485 L_47006353:
   1486     SET_LO8(ecx, MEM8(eax + 0x470063F4)); /* 0x47006353: mov cl, byte ptr [eax + 0x470063f4] */
   1487 L_47006359:
   1488     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x470063D8)); goto _ljump; }
   1489 L_47006360:
   1490     ecx = MEM32(esp + 0x8); /* 0x47006360: mov ecx, dword ptr [esp + 8] */
   1491 L_47006364:
   1492     eax = MEM32(ecx); /* 0x47006364: mov eax, dword ptr [ecx] */
   1493 L_47006366:
   1494     /* test LO8(eax), 2 */ /* 0x47006366: test al, 2 */
   1495     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   1496     _cf = 0;
   1497     _flag_k = FK_NARROW(FK_TEST, 24);
   1498 L_47006368:
   1499     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470063D4; /* 0x47006368: jne 0x470063d4 */
   1500 L_4700636A:
   1501     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   1502     eax = eax & 0xFFFFFFFEu; /* 0x4700636A: and eax, 0xfffffffe */
   1503     _cf = 0;
   1504     _flag_k = FK_TEST;
   1505 L_4700636D:
   1506     MEM32(ecx) = eax; /* 0x4700636D: mov dword ptr [ecx], eax */
   1507 L_4700636F:
   1508     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700636F: ret  */
   1509 L_47006370:
   1510     ecx = MEM32(esp + 0x8); /* 0x47006370: mov ecx, dword ptr [esp + 8] */
   1511 L_47006374:
   1512     eax = MEM32(ecx); /* 0x47006374: mov eax, dword ptr [ecx] */
   1513 L_47006376:
   1514     /* test LO8(eax), 2 */ /* 0x47006376: test al, 2 */
   1515     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   1516     _cf = 0;
   1517     _flag_k = FK_NARROW(FK_TEST, 24);
   1518 L_47006378:
   1519     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4700637F; /* 0x47006378: jne 0x4700637f */
   1520 L_4700637A:
   1521     _flag_a = (uint32_t)((eax | 1)); _flag_b = (uint32_t)((eax | 1));
   1522     eax = eax | 1; /* 0x4700637A: or eax, 1 */
   1523     _cf = 0;
   1524     _flag_k = FK_TEST;
   1525 L_4700637D:
   1526     MEM32(ecx) = eax; /* 0x4700637D: mov dword ptr [ecx], eax */
   1527 L_4700637F:
   1528     _flag_a = (uint32_t)((MEM32(ecx) | 0x300u)); _flag_b = (uint32_t)((MEM32(ecx) | 0x300u));
   1529     MEM32(ecx) = MEM32(ecx) | 0x300u; /* 0x4700637F: or dword ptr [ecx], 0x300 */
   1530     _cf = 0;
   1531     _flag_k = FK_TEST;
   1532 L_47006385:
   1533     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006385: ret  */
   1534 L_47006386:
   1535     ecx = MEM32(esp + 0x8); /* 0x47006386: mov ecx, dword ptr [esp + 8] */
   1536 L_4700638A:
   1537     eax = MEM32(ecx); /* 0x4700638A: mov eax, dword ptr [ecx] */
   1538 L_4700638C:
   1539     /* test LO8(eax), 2 */ /* 0x4700638C: test al, 2 */
   1540     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   1541     _cf = 0;
   1542     _flag_k = FK_NARROW(FK_TEST, 24);
   1543 L_4700638E:
   1544     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47006395; /* 0x4700638E: jne 0x47006395 */
   1545 L_47006390:
   1546     _flag_a = (uint32_t)((eax | 1)); _flag_b = (uint32_t)((eax | 1));
   1547     eax = eax | 1; /* 0x47006390: or eax, 1 */
   1548     _cf = 0;
   1549     _flag_k = FK_TEST;
   1550 L_47006393:
   1551     MEM32(ecx) = eax; /* 0x47006393: mov dword ptr [ecx], eax */
   1552 L_47006395:
   1553     _flag_a = (uint32_t)((MEM32(ecx) | 0x108u)); _flag_b = (uint32_t)((MEM32(ecx) | 0x108u));
   1554     MEM32(ecx) = MEM32(ecx) | 0x108u; /* 0x47006395: or dword ptr [ecx], 0x108 */
   1555     _cf = 0;
   1556     _flag_k = FK_TEST;
   1557 L_4700639B:
   1558     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700639B: ret  */
   1559 L_4700639C:
   1560     eax = MEM32(esp + 0x8); /* 0x4700639C: mov eax, dword ptr [esp + 8] */
   1561 L_470063A0:
   1562     edx = MEM32(eax); /* 0x470063A0: mov edx, dword ptr [eax] */
   1563 L_470063A2:
   1564     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   1565     edx = edx & 0xFFFFFFFEu; /* 0x470063A2: and edx, 0xfffffffe */
   1566     _cf = 0;
   1567     _flag_k = FK_TEST;
   1568 L_470063A5:
   1569     _flag_a = (uint32_t)((edx | 2)); _flag_b = (uint32_t)((edx | 2));
   1570     edx = edx | 2; /* 0x470063A5: or edx, 2 */
   1571     _cf = 0;
   1572     _flag_k = FK_TEST;
   1573 L_470063A8:
   1574     MEM32(eax) = edx; /* 0x470063A8: mov dword ptr [eax], edx */
   1575 L_470063AA:
   1576     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470063AA: ret  */
   1577 L_470063AB:
   1578     eax = MEM32(esp + 0x8); /* 0x470063AB: mov eax, dword ptr [esp + 8] */
   1579 L_470063AF:
   1580     ecx = MEM32(eax); /* 0x470063AF: mov ecx, dword ptr [eax] */
   1581 L_470063B1:
   1582     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFF7FFFu);
   1583     ecx = ecx & 0xFFFF7FFFu; /* 0x470063B1: and ecx, 0xffff7fff */
   1584     _cf = 0;
   1585     _flag_k = FK_TEST;
   1586 L_470063B7:
   1587     _flag_a = (uint32_t)((ecx | 0x4000u)); _flag_b = (uint32_t)((ecx | 0x4000u));
   1588     ecx = ecx | 0x4000u; /* 0x470063B7: or ecx, 0x4000 */
   1589     _cf = 0;
   1590     _flag_k = FK_TEST;
   1591 L_470063BD:
   1592     MEM32(eax) = ecx; /* 0x470063BD: mov dword ptr [eax], ecx */
   1593 L_470063BF:
   1594     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470063BF: ret  */
   1595 L_470063C0:
   1596     eax = MEM32(esp + 0x8); /* 0x470063C0: mov eax, dword ptr [esp + 8] */
   1597 L_470063C4:
   1598     edx = MEM32(eax); /* 0x470063C4: mov edx, dword ptr [eax] */
   1599 L_470063C6:
   1600     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFBFFFu);
   1601     edx = edx & 0xFFFFBFFFu; /* 0x470063C6: and edx, 0xffffbfff */
   1602     _cf = 0;
   1603     _flag_k = FK_TEST;
   1604 L_470063CC:
   1605     _flag_a = (uint32_t)((edx | 0x8000u)); _flag_b = (uint32_t)((edx | 0x8000u));
   1606     edx = edx | 0x8000u; /* 0x470063CC: or edx, 0x8000 */
   1607     _cf = 0;
   1608     _flag_k = FK_TEST;
   1609 L_470063D2:
   1610     MEM32(eax) = edx; /* 0x470063D2: mov dword ptr [eax], edx */
   1611 L_470063D4:
   1612     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470063D4: ret  */
   1613   _ljump:
   1614     switch (_itail_tgt) {
   1615       case 0x47006340u: goto L_47006340;
   1616       case 0x47006345u: goto L_47006345;
   1617       case 0x47006348u: goto L_47006348;
   1618       case 0x4700634Bu: goto L_4700634B;
   1619       case 0x47006351u: goto L_47006351;
   1620       case 0x47006353u: goto L_47006353;
   1621       case 0x47006359u: goto L_47006359;
   1622       case 0x47006360u: goto L_47006360;
   1623       case 0x47006364u: goto L_47006364;
   1624       case 0x47006366u: goto L_47006366;
   1625       case 0x47006368u: goto L_47006368;
   1626       case 0x4700636Au: goto L_4700636A;
   1627       case 0x4700636Du: goto L_4700636D;
   1628       case 0x4700636Fu: goto L_4700636F;
   1629       case 0x47006370u: goto L_47006370;
   1630       case 0x47006374u: goto L_47006374;
   1631       case 0x47006376u: goto L_47006376;
   1632       case 0x47006378u: goto L_47006378;
   1633       case 0x4700637Au: goto L_4700637A;
   1634       case 0x4700637Du: goto L_4700637D;
   1635       case 0x4700637Fu: goto L_4700637F;
   1636       case 0x47006385u: goto L_47006385;
   1637       case 0x47006386u: goto L_47006386;
   1638       case 0x4700638Au: goto L_4700638A;
   1639       case 0x4700638Cu: goto L_4700638C;
   1640       case 0x4700638Eu: goto L_4700638E;
   1641       case 0x47006390u: goto L_47006390;
   1642       case 0x47006393u: goto L_47006393;
   1643       case 0x47006395u: goto L_47006395;
   1644       case 0x4700639Bu: goto L_4700639B;
   1645       case 0x4700639Cu: goto L_4700639C;
   1646       case 0x470063A0u: goto L_470063A0;
   1647       case 0x470063A2u: goto L_470063A2;
   1648       case 0x470063A5u: goto L_470063A5;
   1649       case 0x470063A8u: goto L_470063A8;
   1650       case 0x470063AAu: goto L_470063AA;
   1651       case 0x470063ABu: goto L_470063AB;
   1652       case 0x470063AFu: goto L_470063AF;
   1653       case 0x470063B1u: goto L_470063B1;
   1654       case 0x470063B7u: goto L_470063B7;
   1655       case 0x470063BDu: goto L_470063BD;
   1656       case 0x470063BFu: goto L_470063BF;
   1657       case 0x470063C0u: goto L_470063C0;
   1658       case 0x470063C4u: goto L_470063C4;
   1659       case 0x470063C6u: goto L_470063C6;
   1660       case 0x470063CCu: goto L_470063CC;
   1661       case 0x470063D2u: goto L_470063D2;
   1662       case 0x470063D4u: goto L_470063D4;
   1663       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1664     }
   1665     RECOMP_REGS_OUT();
   1666 }
   1667 
   1668 void sub_47006450(void) {
   1669     int _fpu_cmp = 0;
   1670     uint32_t _cf = 0;
   1671     int _df = 1;
   1672     uint32_t _flag_k = FK_NONE;
   1673     uint32_t _flag_a = 0, _flag_b = 0;
   1674     uint32_t _itail_tgt = 0;
   1675     RECOMP_REGS_LOCALS
   1676     RECOMP_ENTER(0x47006450u);
   1677 
   1678 L_47006450:
   1679     PUSH32(esp, esi); /* 0x47006450: push esi */
   1680     esi = MEM32(esp + 0x8); /* 0x47006451: mov esi, dword ptr [esp + 8] */
   1681     /* cmp MEM8(esi), 0x24u */ /* 0x47006455: cmp byte ptr [esi], 0x24 */
   1682     _flag_a = (uint32_t)(MEM8(esi)) << 24; _flag_b = (uint32_t)(0x24u) << 24;
   1683     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1684     _flag_k = FK_NARROW(FK_CMP, 24);
   1685     if (CMP_NE(_flag_a, _flag_b)) goto L_47006477; /* 0x47006458: jne 0x47006477 */
   1686 L_4700645A:
   1687     eax = esi + 0x1; /* 0x4700645A: lea eax, [esi + 1] */
   1688     PUSH32(esp, eax); /* 0x4700645D: push eax */
   1689     RECOMP_ICALL(MEM32(0x470AC268)); /* 0x4700645E: call dword ptr [0x470ac268] */
   1690     RECOMP_FLAGS_IN();
   1691     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1692     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1693     esp = esp + 4; /* 0x47006464: add esp, 4 */
   1694     _flag_k = FK_ADD;
   1695     /* test eax, eax */ /* 0x47006467: test eax, eax */
   1696     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1697     _cf = 0;
   1698     _flag_k = FK_TEST;
   1699     if (TEST_Z(_flag_a, _flag_b)) goto L_47006477; /* 0x47006469: je 0x47006477 */
   1700 L_4700646B:
   1701     PUSH32(esp, eax); /* 0x4700646B: push eax */
   1702     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x4700646C: call dword ptr [0x470ac3f4] */
   1703     RECOMP_FLAGS_IN();
   1704     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1705     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1706     esp = esp + 4; /* 0x47006472: add esp, 4 */
   1707     _flag_k = FK_ADD;
   1708     esi = POP32_VAL(esp); /* 0x47006475: pop esi */
   1709     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006476: ret  */
   1710 L_47006477:
   1711     PUSH32(esp, esi); /* 0x47006477: push esi */
   1712     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47006478: call dword ptr [0x470ac3f4] */
   1713     RECOMP_FLAGS_IN();
   1714     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1715     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1716     esp = esp + 4; /* 0x4700647E: add esp, 4 */
   1717     _flag_k = FK_ADD;
   1718     esi = POP32_VAL(esp); /* 0x47006481: pop esi */
   1719     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006482: ret  */
   1720     RECOMP_REGS_OUT();
   1721 }
   1722 
   1723 void sub_47006490(void) {
   1724     int _fpu_cmp = 0;
   1725     uint32_t _cf = 0;
   1726     int _df = 1;
   1727     uint32_t _flag_k = FK_NONE;
   1728     uint32_t _flag_a = 0, _flag_b = 0;
   1729     uint32_t _itail_tgt = 0;
   1730     RECOMP_REGS_LOCALS
   1731     RECOMP_ENTER(0x47006490u);
   1732 
   1733 L_47006490:
   1734     PUSH32(esp, esi); /* 0x47006490: push esi */
   1735     esi = MEM32(esp + 0x8); /* 0x47006491: mov esi, dword ptr [esp + 8] */
   1736     /* cmp MEM16(esi), 0x24u */ /* 0x47006495: cmp word ptr [esi], 0x24 */
   1737     _flag_a = (uint32_t)(MEM16(esi)) << 16; _flag_b = (uint32_t)(0x24u) << 16;
   1738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1739     _flag_k = FK_NARROW(FK_CMP, 16);
   1740     if (CMP_NE(_flag_a, _flag_b)) goto L_470064B8; /* 0x47006499: jne 0x470064b8 */
   1741 L_4700649B:
   1742     eax = esi + 0x2; /* 0x4700649B: lea eax, [esi + 2] */
   1743     PUSH32(esp, eax); /* 0x4700649E: push eax */
   1744     RECOMP_ICALL(MEM32(0x470AC2C8)); /* 0x4700649F: call dword ptr [0x470ac2c8] */
   1745     RECOMP_FLAGS_IN();
   1746     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1747     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1748     esp = esp + 4; /* 0x470064A5: add esp, 4 */
   1749     _flag_k = FK_ADD;
   1750     /* test eax, eax */ /* 0x470064A8: test eax, eax */
   1751     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1752     _cf = 0;
   1753     _flag_k = FK_TEST;
   1754     if (TEST_Z(_flag_a, _flag_b)) goto L_470064B8; /* 0x470064AA: je 0x470064b8 */
   1755 L_470064AC:
   1756     PUSH32(esp, eax); /* 0x470064AC: push eax */
   1757     RECOMP_ICALL(MEM32(0x470AC3EC)); /* 0x470064AD: call dword ptr [0x470ac3ec] */
   1758     RECOMP_FLAGS_IN();
   1759     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1760     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1761     esp = esp + 4; /* 0x470064B3: add esp, 4 */
   1762     _flag_k = FK_ADD;
   1763     esi = POP32_VAL(esp); /* 0x470064B6: pop esi */
   1764     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470064B7: ret  */
   1765 L_470064B8:
   1766     PUSH32(esp, esi); /* 0x470064B8: push esi */
   1767     RECOMP_ICALL(MEM32(0x470AC3EC)); /* 0x470064B9: call dword ptr [0x470ac3ec] */
   1768     RECOMP_FLAGS_IN();
   1769     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1770     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1771     esp = esp + 4; /* 0x470064BF: add esp, 4 */
   1772     _flag_k = FK_ADD;
   1773     esi = POP32_VAL(esp); /* 0x470064C2: pop esi */
   1774     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470064C3: ret  */
   1775     RECOMP_REGS_OUT();
   1776 }
   1777 
   1778 void sub_470064D0(void) {
   1779     int _fpu_cmp = 0;
   1780     uint32_t _cf = 0;
   1781     int _df = 1;
   1782     uint32_t _flag_k = FK_NONE;
   1783     uint32_t _flag_a = 0, _flag_b = 0;
   1784     uint32_t _itail_tgt = 0;
   1785     RECOMP_REGS_LOCALS
   1786     RECOMP_ENTER(0x470064D0u);
   1787 
   1788 L_470064D0:
   1789     eax = MEM32(ecx); /* 0x470064D0: mov eax, dword ptr [ecx] */
   1790     PUSH32(esp, eax); /* 0x470064D2: push eax */
   1791     RECOMP_ICALL(0x470A32A2u); /* 0x470064D3: call 0x470a32a2 */ /* not lifted */
   1792     RECOMP_FLAGS_IN();
   1793     ecx = POP32_VAL(esp); /* 0x470064D8: pop ecx */
   1794     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470064D9: ret  */
   1795     RECOMP_REGS_OUT();
   1796 }
   1797 
   1798 void sub_470064E0(void) {
   1799     int _fpu_cmp = 0;
   1800     uint32_t _cf = 0;
   1801     int _df = 1;
   1802     uint32_t _flag_k = FK_NONE;
   1803     uint32_t _flag_a = 0, _flag_b = 0;
   1804     uint32_t _itail_tgt = 0;
   1805     RECOMP_REGS_LOCALS
   1806     RECOMP_ENTER(0x470064E0u);
   1807 
   1808 L_470064E0:
   1809     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1811     esp = esp - 0x18u; /* 0x470064E0: sub esp, 0x18 */
   1812     _flag_k = FK_CMP;
   1813     PUSH32(esp, esi); /* 0x470064E3: push esi */
   1814     esi = ecx; /* 0x470064E4: mov esi, ecx */
   1815     /* cmp MEM32(esi), 0 */ /* 0x470064E6: cmp dword ptr [esi], 0 */
   1816     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0);
   1817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1818     _flag_k = FK_CMP;
   1819     if (CMP_EQ(_flag_a, _flag_b)) goto L_4700651A; /* 0x470064E9: je 0x4700651a */
   1820 L_470064EB:
   1821     eax = esp + 0x4; /* 0x470064EB: lea eax, [esp + 4] */
   1822     PUSH32(esp, eax); /* 0x470064EF: push eax */
   1823     RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x470064F0: call dword ptr [0x470ac1a8] */
   1824     RECOMP_FLAGS_IN();
   1825     ecx = esp + 0x4; /* 0x470064F6: lea ecx, [esp + 4] */
   1826     PUSH32(esp, ecx); /* 0x470064FA: push ecx */
   1827     ecx = esp + 0x10; /* 0x470064FB: lea ecx, [esp + 0x10] */
   1828     RECOMP_ICALL(0x47053F10u); /* 0x470064FF: call 0x47053f10 */ /* not lifted */
   1829     RECOMP_FLAGS_IN();
   1830     ecx = MEM32(eax); /* 0x47006504: mov ecx, dword ptr [eax] */
   1831     MEM32(esp + 0x14) = ecx; /* 0x47006506: mov dword ptr [esp + 0x14], ecx */
   1832     eax = MEM32(eax + 0x4); /* 0x4700650A: mov eax, dword ptr [eax + 4] */
   1833     MEM32(esi + 0x4) = ecx; /* 0x4700650D: mov dword ptr [esi + 4], ecx */
   1834     MEM32(esi + 0x8) = eax; /* 0x47006510: mov dword ptr [esi + 8], eax */
   1835     MEM32(esi + 0xC) = 0; /* 0x47006513: mov dword ptr [esi + 0xc], 0 */
   1836 L_4700651A:
   1837     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1838     eax = 0; /* 0x4700651A: xor eax, eax */
   1839     _cf = 0;
   1840     _flag_k = FK_TEST;
   1841     esi = POP32_VAL(esp); /* 0x4700651C: pop esi */
   1842     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1843     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1844     esp = esp + 0x18u; /* 0x4700651D: add esp, 0x18 */
   1845     _flag_k = FK_ADD;
   1846     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006520: ret  */
   1847     RECOMP_REGS_OUT();
   1848 }
   1849 
   1850 void sub_47006530(void) {
   1851     int _fpu_cmp = 0;
   1852     uint32_t _cf = 0;
   1853     int _df = 1;
   1854     uint32_t _flag_k = FK_NONE;
   1855     uint32_t _flag_a = 0, _flag_b = 0;
   1856     uint32_t _itail_tgt = 0;
   1857     RECOMP_REGS_LOCALS
   1858     RECOMP_ENTER(0x47006530u);
   1859 
   1860 L_47006530:
   1861     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   1862     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1863     esp = esp - 0x20u; /* 0x47006530: sub esp, 0x20 */
   1864     _flag_k = FK_CMP;
   1865     PUSH32(esp, esi); /* 0x47006533: push esi */
   1866     esi = ecx; /* 0x47006534: mov esi, ecx */
   1867     /* cmp MEM32(esi), 0 */ /* 0x47006536: cmp dword ptr [esi], 0 */
   1868     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0);
   1869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1870     _flag_k = FK_CMP;
   1871     if (CMP_EQ(_flag_a, _flag_b)) goto L_470065E6; /* 0x47006539: je 0x470065e6 */
   1872 L_4700653F:
   1873     eax = MEM32(esi + 0xC); /* 0x4700653F: mov eax, dword ptr [esi + 0xc] */
   1874     /* test eax, eax */ /* 0x47006542: test eax, eax */
   1875     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1876     _cf = 0;
   1877     _flag_k = FK_TEST;
   1878     if (TEST_NZ(_flag_a, _flag_b)) goto L_470065E6; /* 0x47006544: jne 0x470065e6 */
   1879 L_4700654A:
   1880     PUSH32(esp, edi); /* 0x4700654A: push edi */
   1881     eax = esp + 0x10; /* 0x4700654B: lea eax, [esp + 0x10] */
   1882     PUSH32(esp, eax); /* 0x4700654F: push eax */
   1883     RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x47006550: call dword ptr [0x470ac1a8] */
   1884     RECOMP_FLAGS_IN();
   1885     ecx = esp + 0x10; /* 0x47006556: lea ecx, [esp + 0x10] */
   1886     PUSH32(esp, ecx); /* 0x4700655A: push ecx */
   1887     ecx = esp + 0x24; /* 0x4700655B: lea ecx, [esp + 0x24] */
   1888     RECOMP_ICALL(0x47053F10u); /* 0x4700655F: call 0x47053f10 */ /* not lifted */
   1889     RECOMP_FLAGS_IN();
   1890     ecx = MEM32(eax); /* 0x47006564: mov ecx, dword ptr [eax] */
   1891     edx = MEM32(esi + 0x4); /* 0x47006566: mov edx, dword ptr [esi + 4] */
   1892     MEM32(esp + 0x18) = ecx; /* 0x47006569: mov dword ptr [esp + 0x18], ecx */
   1893     eax = MEM32(eax + 0x4); /* 0x4700656D: mov eax, dword ptr [eax + 4] */
   1894     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1895     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1896     ecx = ecx - edx; /* 0x47006570: sub ecx, edx */
   1897     _flag_k = FK_CMP;
   1898     MEM32(esp + 0x8) = ecx; /* 0x47006572: mov dword ptr [esp + 8], ecx */
   1899     ecx = MEM32(esi + 0x8); /* 0x47006576: mov ecx, dword ptr [esi + 8] */
   1900     MEM32(esp + 0x1C) = eax; /* 0x47006579: mov dword ptr [esp + 0x1c], eax */
   1901     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1903     eax = eax - ecx; /* 0x4700657D: sub eax, ecx */
   1904     _flag_k = FK_CMP;
   1905     ecx = esp + 0x8; /* 0x4700657F: lea ecx, [esp + 8] */
   1906     MEM32(esp + 0xC) = eax; /* 0x47006583: mov dword ptr [esp + 0xc], eax */
   1907     RECOMP_ICALL(0x470543C0u); /* 0x47006587: call 0x470543c0 */ /* not lifted */
   1908     RECOMP_FLAGS_IN();
   1909     ecx = esp + 0x8; /* 0x4700658C: lea ecx, [esp + 8] */
   1910     RECOMP_ICALL(0x470543C0u); /* 0x47006590: call 0x470543c0 */ /* not lifted */
   1911     RECOMP_FLAGS_IN();
   1912     ecx = MEM32(esi); /* 0x47006595: mov ecx, dword ptr [esi] */
   1913     eax = MEM32(ecx); /* 0x47006597: mov eax, dword ptr [ecx] */
   1914     edx = MEM32(esp + 0x8); /* 0x47006599: mov edx, dword ptr [esp + 8] */
   1915     /* cmp eax, edx */ /* 0x4700659D: cmp eax, edx */
   1916     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1918     _flag_k = FK_CMP;
   1919     edi = MEM32(esp + 0xC); /* 0x4700659F: mov edi, dword ptr [esp + 0xc] */
   1920     if (CMP_G(_flag_a, _flag_b)) goto L_470065AE; /* 0x470065A3: jg 0x470065ae */
   1921 L_470065A5:
   1922     /* cmp eax, edx */ /* 0x470065A5: cmp eax, edx */
   1923     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1925     _flag_k = FK_CMP;
   1926     if (CMP_NE(_flag_a, _flag_b)) goto L_470065C7; /* 0x470065A7: jne 0x470065c7 */
   1927 L_470065A9:
   1928     /* cmp MEM32(ecx + 0x4), edi */ /* 0x470065A9: cmp dword ptr [ecx + 4], edi */
   1929     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(edi);
   1930     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1931     _flag_k = FK_CMP;
   1932     if (CMP_LE(_flag_a, _flag_b)) goto L_470065C7; /* 0x470065AC: jle 0x470065c7 */
   1933 L_470065AE:
   1934     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(edx);
   1935     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1936     MEM32(ecx) = MEM32(ecx) - edx; /* 0x470065AE: sub dword ptr [ecx], edx */
   1937     _flag_k = FK_CMP;
   1938     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(edi);
   1939     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1940     MEM32(ecx + 0x4) = MEM32(ecx + 0x4) - edi; /* 0x470065B0: sub dword ptr [ecx + 4], edi */
   1941     _flag_k = FK_CMP;
   1942     RECOMP_ICALL(0x470543C0u); /* 0x470065B3: call 0x470543c0 */ /* not lifted */
   1943     RECOMP_FLAGS_IN();
   1944     edi = POP32_VAL(esp); /* 0x470065B8: pop edi */
   1945     MEM32(esi + 0xC) = 1; /* 0x470065B9: mov dword ptr [esi + 0xc], 1 */
   1946     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1947     eax = 0; /* 0x470065C0: xor eax, eax */
   1948     _cf = 0;
   1949     _flag_k = FK_TEST;
   1950     esi = POP32_VAL(esp); /* 0x470065C2: pop esi */
   1951     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   1952     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1953     esp = esp + 0x20u; /* 0x470065C3: add esp, 0x20 */
   1954     _flag_k = FK_ADD;
   1955     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470065C6: ret  */
   1956 L_470065C7:
   1957     edx = MEM32(0x4710E9A8); /* 0x470065C7: mov edx, dword ptr [0x4710e9a8] */
   1958     MEM32(ecx) = edx; /* 0x470065CD: mov dword ptr [ecx], edx */
   1959     eax = MEM32(0x4710E9AC); /* 0x470065CF: mov eax, dword ptr [0x4710e9ac] */
   1960     MEM32(ecx + 0x4) = eax; /* 0x470065D4: mov dword ptr [ecx + 4], eax */
   1961     edi = POP32_VAL(esp); /* 0x470065D7: pop edi */
   1962     MEM32(esi + 0xC) = 1; /* 0x470065D8: mov dword ptr [esi + 0xc], 1 */
   1963     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1964     eax = 0; /* 0x470065DF: xor eax, eax */
   1965     _cf = 0;
   1966     _flag_k = FK_TEST;
   1967     esi = POP32_VAL(esp); /* 0x470065E1: pop esi */
   1968     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   1969     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1970     esp = esp + 0x20u; /* 0x470065E2: add esp, 0x20 */
   1971     _flag_k = FK_ADD;
   1972     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470065E5: ret  */
   1973 L_470065E6:
   1974     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1975     eax = 0; /* 0x470065E6: xor eax, eax */
   1976     _cf = 0;
   1977     _flag_k = FK_TEST;
   1978     esi = POP32_VAL(esp); /* 0x470065E8: pop esi */
   1979     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   1980     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1981     esp = esp + 0x20u; /* 0x470065E9: add esp, 0x20 */
   1982     _flag_k = FK_ADD;
   1983     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470065EC: ret  */
   1984     RECOMP_REGS_OUT();
   1985 }
   1986 
   1987 void sub_470065F0(void) {
   1988     int _fpu_cmp = 0;
   1989     uint32_t _cf = 0;
   1990     int _df = 1;
   1991     uint32_t _flag_k = FK_NONE;
   1992     uint32_t _flag_a = 0, _flag_b = 0;
   1993     uint32_t _itail_tgt = 0;
   1994     RECOMP_REGS_LOCALS
   1995     RECOMP_ENTER(0x470065F0u);
   1996 
   1997 L_470065F0:
   1998     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   1999     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2000     esp = esp - 0x28u; /* 0x470065F0: sub esp, 0x28 */
   2001     _flag_k = FK_CMP;
   2002     PUSH32(esp, ebx); /* 0x470065F3: push ebx */
   2003     ebx = MEM32(0x470AC1A8); /* 0x470065F4: mov ebx, dword ptr [0x470ac1a8] */
   2004     PUSH32(esp, esi); /* 0x470065FA: push esi */
   2005     esi = ecx; /* 0x470065FB: mov esi, ecx */
   2006     /* cmp MEM32(esi), 0 */ /* 0x470065FD: cmp dword ptr [esi], 0 */
   2007     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0);
   2008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2009     _flag_k = FK_CMP;
   2010     if (CMP_EQ(_flag_a, _flag_b)) goto L_47006698; /* 0x47006600: je 0x47006698 */
   2011 L_47006606:
   2012     eax = MEM32(esi + 0xC); /* 0x47006606: mov eax, dword ptr [esi + 0xc] */
   2013     /* test eax, eax */ /* 0x47006609: test eax, eax */
   2014     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2015     _cf = 0;
   2016     _flag_k = FK_TEST;
   2017     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006698; /* 0x4700660B: jne 0x47006698 */
   2018 L_47006611:
   2019     PUSH32(esp, edi); /* 0x47006611: push edi */
   2020     eax = esp + 0x14; /* 0x47006612: lea eax, [esp + 0x14] */
   2021     PUSH32(esp, eax); /* 0x47006616: push eax */
   2022     RECOMP_ICALL(ebx); /* 0x47006617: call ebx */
   2023     RECOMP_FLAGS_IN();
   2024     ecx = esp + 0x14; /* 0x47006619: lea ecx, [esp + 0x14] */
   2025     PUSH32(esp, ecx); /* 0x4700661D: push ecx */
   2026     ecx = esp + 0x28; /* 0x4700661E: lea ecx, [esp + 0x28] */
   2027     RECOMP_ICALL(0x47053F10u); /* 0x47006622: call 0x47053f10 */ /* not lifted */
   2028     RECOMP_FLAGS_IN();
   2029     ecx = MEM32(eax); /* 0x47006627: mov ecx, dword ptr [eax] */
   2030     edx = MEM32(esi + 0x8); /* 0x47006629: mov edx, dword ptr [esi + 8] */
   2031     MEM32(esp + 0x1C) = ecx; /* 0x4700662C: mov dword ptr [esp + 0x1c], ecx */
   2032     eax = MEM32(eax + 0x4); /* 0x47006630: mov eax, dword ptr [eax + 4] */
   2033     MEM32(esp + 0x20) = eax; /* 0x47006633: mov dword ptr [esp + 0x20], eax */
   2034     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2035     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2036     eax = eax - edx; /* 0x47006637: sub eax, edx */
   2037     _flag_k = FK_CMP;
   2038     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2040     ecx = ecx - MEM32(esi + 0x4); /* 0x47006639: sub ecx, dword ptr [esi + 4] */
   2041     _flag_k = FK_CMP;
   2042     PUSH32(esp, eax); /* 0x4700663C: push eax */
   2043     PUSH32(esp, ecx); /* 0x4700663D: push ecx */
   2044     ecx = esp + 0x14; /* 0x4700663E: lea ecx, [esp + 0x14] */
   2045     RECOMP_ICALL(0x47001330u); /* 0x47006642: call 0x47001330 */ /* not lifted */
   2046     RECOMP_FLAGS_IN();
   2047     ecx = esp + 0xC; /* 0x47006647: lea ecx, [esp + 0xc] */
   2048     RECOMP_ICALL(0x470543C0u); /* 0x4700664B: call 0x470543c0 */ /* not lifted */
   2049     RECOMP_FLAGS_IN();
   2050     ecx = MEM32(esi); /* 0x47006650: mov ecx, dword ptr [esi] */
   2051     eax = MEM32(esp + 0xC); /* 0x47006652: mov eax, dword ptr [esp + 0xc] */
   2052     edx = MEM32(ecx); /* 0x47006656: mov edx, dword ptr [ecx] */
   2053     /* cmp edx, eax */ /* 0x47006658: cmp edx, eax */
   2054     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2056     _flag_k = FK_CMP;
   2057     edi = MEM32(esp + 0x10); /* 0x4700665A: mov edi, dword ptr [esp + 0x10] */
   2058     MEM32(esp + 0x2C) = eax; /* 0x4700665E: mov dword ptr [esp + 0x2c], eax */
   2059     if (CMP_G(_flag_a, _flag_b)) goto L_4700666B; /* 0x47006662: jg 0x4700666b */
   2060 L_47006664:
   2061     if (CMP_NE(_flag_a, _flag_b)) goto L_47006680; /* 0x47006664: jne 0x47006680 */
   2062 L_47006666:
   2063     /* cmp MEM32(ecx + 0x4), edi */ /* 0x47006666: cmp dword ptr [ecx + 4], edi */
   2064     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(edi);
   2065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2066     _flag_k = FK_CMP;
   2067     if (CMP_LE(_flag_a, _flag_b)) goto L_47006680; /* 0x47006669: jle 0x47006680 */
   2068 L_4700666B:
   2069     edx = MEM32(ecx); /* 0x4700666B: mov edx, dword ptr [ecx] */
   2070     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2071     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2072     edx = edx - eax; /* 0x4700666D: sub edx, eax */
   2073     _flag_k = FK_CMP;
   2074     eax = MEM32(ecx + 0x4); /* 0x4700666F: mov eax, dword ptr [ecx + 4] */
   2075     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2076     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2077     eax = eax - edi; /* 0x47006672: sub eax, edi */
   2078     _flag_k = FK_CMP;
   2079     MEM32(ecx) = edx; /* 0x47006674: mov dword ptr [ecx], edx */
   2080     MEM32(ecx + 0x4) = eax; /* 0x47006676: mov dword ptr [ecx + 4], eax */
   2081     RECOMP_ICALL(0x470543C0u); /* 0x47006679: call 0x470543c0 */ /* not lifted */
   2082     RECOMP_FLAGS_IN();
   2083     goto L_47006690; /* 0x4700667E: jmp 0x47006690 */
   2084 L_47006680:
   2085     edx = MEM32(0x4710E9A8); /* 0x47006680: mov edx, dword ptr [0x4710e9a8] */
   2086     MEM32(ecx) = edx; /* 0x47006686: mov dword ptr [ecx], edx */
   2087     eax = MEM32(0x4710E9AC); /* 0x47006688: mov eax, dword ptr [0x4710e9ac] */
   2088     MEM32(ecx + 0x4) = eax; /* 0x4700668D: mov dword ptr [ecx + 4], eax */
   2089 L_47006690:
   2090     MEM32(esi + 0xC) = 1; /* 0x47006690: mov dword ptr [esi + 0xc], 1 */
   2091     edi = POP32_VAL(esp); /* 0x47006697: pop edi */
   2092 L_47006698:
   2093     /* cmp MEM32(esi), 0 */ /* 0x47006698: cmp dword ptr [esi], 0 */
   2094     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0);
   2095     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2096     _flag_k = FK_CMP;
   2097     if (CMP_EQ(_flag_a, _flag_b)) goto L_470066C8; /* 0x4700669B: je 0x470066c8 */
   2098 L_4700669D:
   2099     ecx = esp + 0x18; /* 0x4700669D: lea ecx, [esp + 0x18] */
   2100     PUSH32(esp, ecx); /* 0x470066A1: push ecx */
   2101     RECOMP_ICALL(ebx); /* 0x470066A2: call ebx */
   2102     RECOMP_FLAGS_IN();
   2103     edx = esp + 0x18; /* 0x470066A4: lea edx, [esp + 0x18] */
   2104     PUSH32(esp, edx); /* 0x470066A8: push edx */
   2105     ecx = esp + 0x2C; /* 0x470066A9: lea ecx, [esp + 0x2c] */
   2106     RECOMP_ICALL(0x47053F10u); /* 0x470066AD: call 0x47053f10 */ /* not lifted */
   2107     RECOMP_FLAGS_IN();
   2108     ecx = MEM32(eax); /* 0x470066B2: mov ecx, dword ptr [eax] */
   2109     MEM32(esp + 0x20) = ecx; /* 0x470066B4: mov dword ptr [esp + 0x20], ecx */
   2110     eax = MEM32(eax + 0x4); /* 0x470066B8: mov eax, dword ptr [eax + 4] */
   2111     MEM32(esi + 0x4) = ecx; /* 0x470066BB: mov dword ptr [esi + 4], ecx */
   2112     MEM32(esi + 0x8) = eax; /* 0x470066BE: mov dword ptr [esi + 8], eax */
   2113     MEM32(esi + 0xC) = 0; /* 0x470066C1: mov dword ptr [esi + 0xc], 0 */
   2114 L_470066C8:
   2115     esi = POP32_VAL(esp); /* 0x470066C8: pop esi */
   2116     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2117     eax = 0; /* 0x470066C9: xor eax, eax */
   2118     _cf = 0;
   2119     _flag_k = FK_TEST;
   2120     ebx = POP32_VAL(esp); /* 0x470066CB: pop ebx */
   2121     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   2122     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2123     esp = esp + 0x28u; /* 0x470066CC: add esp, 0x28 */
   2124     _flag_k = FK_ADD;
   2125     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470066CF: ret  */
   2126     RECOMP_REGS_OUT();
   2127 }
   2128 
   2129 void sub_470066D0(void) {
   2130     int _fpu_cmp = 0;
   2131     uint32_t _cf = 0;
   2132     int _df = 1;
   2133     uint32_t _flag_k = FK_NONE;
   2134     uint32_t _flag_a = 0, _flag_b = 0;
   2135     uint32_t _itail_tgt = 0;
   2136     RECOMP_REGS_LOCALS
   2137     RECOMP_ENTER(0x470066D0u);
   2138 
   2139 L_470066D0:
   2140     eax = 0x4710E910u; /* 0x470066D0: mov eax, 0x4710e910 */
   2141     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470066D5: ret  */
   2142     RECOMP_REGS_OUT();
   2143 }
   2144 
   2145 void sub_470066E0(void) {
   2146     int _fpu_cmp = 0;
   2147     uint32_t _cf = 0;
   2148     int _df = 1;
   2149     uint32_t _flag_k = FK_NONE;
   2150     uint32_t _flag_a = 0, _flag_b = 0;
   2151     uint32_t _itail_tgt = 0;
   2152     RECOMP_REGS_LOCALS
   2153     RECOMP_ENTER(0x470066E0u);
   2154 
   2155 L_470066E0:
   2156     edx = MEM32(esp + 0x4); /* 0x470066E0: mov edx, dword ptr [esp + 4] */
   2157     eax = ecx; /* 0x470066E4: mov eax, ecx */
   2158     ecx = MEM32(edx); /* 0x470066E6: mov ecx, dword ptr [edx] */
   2159     MEM32(eax) = ecx; /* 0x470066E8: mov dword ptr [eax], ecx */
   2160     ecx = MEM32(edx + 0x4); /* 0x470066EA: mov ecx, dword ptr [edx + 4] */
   2161     MEM32(eax + 0x4) = ecx; /* 0x470066ED: mov dword ptr [eax + 4], ecx */
   2162     ecx = MEM32(edx + 0x8); /* 0x470066F0: mov ecx, dword ptr [edx + 8] */
   2163     MEM32(eax + 0x8) = ecx; /* 0x470066F3: mov dword ptr [eax + 8], ecx */
   2164     ecx = MEM32(edx + 0xC); /* 0x470066F6: mov ecx, dword ptr [edx + 0xc] */
   2165     PUSH32(esp, esi); /* 0x470066F9: push esi */
   2166     MEM32(eax + 0xC) = ecx; /* 0x470066FA: mov dword ptr [eax + 0xc], ecx */
   2167     ecx = MEM32(edx + 0x10); /* 0x470066FD: mov ecx, dword ptr [edx + 0x10] */
   2168     PUSH32(esp, edi); /* 0x47006700: push edi */
   2169     MEM32(eax + 0x10) = ecx; /* 0x47006701: mov dword ptr [eax + 0x10], ecx */
   2170     ecx = 0x400u; /* 0x47006704: mov ecx, 0x400 */
   2171     esi = edx + 0x14; /* 0x47006709: lea esi, [edx + 0x14] */
   2172     edi = eax + 0x14; /* 0x4700670C: lea edi, [eax + 0x14] */
   2173     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4700670F: 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; }
   2174     edi = POP32_VAL(esp); /* 0x47006711: pop edi */
   2175     esi = POP32_VAL(esp); /* 0x47006712: pop esi */
   2176     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006713: ret 4 */
   2177     RECOMP_REGS_OUT();
   2178 }
   2179 
   2180 void sub_47006720(void) {
   2181     int _fpu_cmp = 0;
   2182     uint32_t _cf = 0;
   2183     int _df = 1;
   2184     uint32_t _flag_k = FK_NONE;
   2185     uint32_t _flag_a = 0, _flag_b = 0;
   2186     uint32_t _itail_tgt = 0;
   2187     RECOMP_REGS_LOCALS
   2188     RECOMP_ENTER(0x47006720u);
   2189 
   2190 L_47006720:
   2191     PUSH32(esp, esi); /* 0x47006720: push esi */
   2192     esi = MEM32(esp + 0x8); /* 0x47006721: mov esi, dword ptr [esp + 8] */
   2193     PUSH32(esp, edi); /* 0x47006725: push edi */
   2194     eax = ecx; /* 0x47006726: mov eax, ecx */
   2195     ecx = 0x405u; /* 0x47006728: mov ecx, 0x405 */
   2196     edi = eax; /* 0x4700672D: mov edi, eax */
   2197     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4700672F: 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; }
   2198     edi = POP32_VAL(esp); /* 0x47006731: pop edi */
   2199     esi = POP32_VAL(esp); /* 0x47006732: pop esi */
   2200     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006733: ret 4 */
   2201     RECOMP_REGS_OUT();
   2202 }
   2203 
   2204 void sub_47006740(void) {
   2205     int _fpu_cmp = 0;
   2206     uint32_t _cf = 0;
   2207     int _df = 1;
   2208     uint32_t _flag_k = FK_NONE;
   2209     uint32_t _flag_a = 0, _flag_b = 0;
   2210     uint32_t _itail_tgt = 0;
   2211     RECOMP_REGS_LOCALS
   2212     RECOMP_ENTER(0x47006740u);
   2213 
   2214 L_47006740:
   2215     PUSH32(esp, esi); /* 0x47006740: push esi */
   2216     esi = ecx; /* 0x47006741: mov esi, ecx */
   2217     eax = MEM32(esi); /* 0x47006743: mov eax, dword ptr [esi] */
   2218     PUSH32(esp, edi); /* 0x47006745: push edi */
   2219     edi = MEM32(0x470AC4AC); /* 0x47006746: mov edi, dword ptr [0x470ac4ac] */
   2220     PUSH32(esp, eax); /* 0x4700674C: push eax */
   2221     RECOMP_ICALL(edi); /* 0x4700674D: call edi */
   2222     RECOMP_FLAGS_IN();
   2223     ecx = MEM32(esi + 0x4); /* 0x4700674F: mov ecx, dword ptr [esi + 4] */
   2224     PUSH32(esp, ecx); /* 0x47006752: push ecx */
   2225     MEM32(esi) = eax; /* 0x47006753: mov dword ptr [esi], eax */
   2226     RECOMP_ICALL(edi); /* 0x47006755: call edi */
   2227     RECOMP_FLAGS_IN();
   2228     MEM32(esi + 0x4) = eax; /* 0x47006757: mov dword ptr [esi + 4], eax */
   2229     eax = MEM32(esi + 0x8); /* 0x4700675A: mov eax, dword ptr [esi + 8] */
   2230     PUSH32(esp, eax); /* 0x4700675D: push eax */
   2231     RECOMP_ICALL(edi); /* 0x4700675E: call edi */
   2232     RECOMP_FLAGS_IN();
   2233     MEM32(esi + 0x8) = eax; /* 0x47006760: mov dword ptr [esi + 8], eax */
   2234     eax = MEM32(esi + 0xC); /* 0x47006763: mov eax, dword ptr [esi + 0xc] */
   2235     PUSH32(esp, eax); /* 0x47006766: push eax */
   2236     RECOMP_ICALL(edi); /* 0x47006767: call edi */
   2237     RECOMP_FLAGS_IN();
   2238     MEM32(esi + 0xC) = eax; /* 0x47006769: mov dword ptr [esi + 0xc], eax */
   2239     edx = MEM32(esi + 0x10); /* 0x4700676C: mov edx, dword ptr [esi + 0x10] */
   2240     PUSH32(esp, edx); /* 0x4700676F: push edx */
   2241     RECOMP_ICALL(edi); /* 0x47006770: call edi */
   2242     RECOMP_FLAGS_IN();
   2243     edi = POP32_VAL(esp); /* 0x47006772: pop edi */
   2244     MEM32(esi + 0x10) = eax; /* 0x47006773: mov dword ptr [esi + 0x10], eax */
   2245     esi = POP32_VAL(esp); /* 0x47006776: pop esi */
   2246     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006777: ret  */
   2247     RECOMP_REGS_OUT();
   2248 }
   2249 
   2250 void sub_47006780(void) {
   2251     int _fpu_cmp = 0;
   2252     uint32_t _cf = 0;
   2253     int _df = 1;
   2254     uint32_t _flag_k = FK_NONE;
   2255     uint32_t _flag_a = 0, _flag_b = 0;
   2256     uint32_t _itail_tgt = 0;
   2257     RECOMP_REGS_LOCALS
   2258     RECOMP_ENTER(0x47006780u);
   2259 
   2260 L_47006780:
   2261     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2263     esp = esp - 8; /* 0x47006780: sub esp, 8 */
   2264     _flag_k = FK_CMP;
   2265     PUSH32(esp, ebx); /* 0x47006783: push ebx */
   2266     PUSH32(esp, ebp); /* 0x47006784: push ebp */
   2267     PUSH32(esp, esi); /* 0x47006785: push esi */
   2268     esi = ecx; /* 0x47006786: mov esi, ecx */
   2269     eax = MEM32(esi + 0xC); /* 0x47006788: mov eax, dword ptr [esi + 0xc] */
   2270     ebx = MEM32(esi + 0x8); /* 0x4700678B: mov ebx, dword ptr [esi + 8] */
   2271     PUSH32(esp, edi); /* 0x4700678E: push edi */
   2272     edi = MEM32(0x470AC4B0); /* 0x4700678F: mov edi, dword ptr [0x470ac4b0] */
   2273     PUSH32(esp, eax); /* 0x47006795: push eax */
   2274     RECOMP_ICALL(edi); /* 0x47006796: call edi */
   2275     RECOMP_FLAGS_IN();
   2276     PUSH32(esp, ebx); /* 0x47006798: push ebx */
   2277     ebp = eax; /* 0x47006799: mov ebp, eax */
   2278     RECOMP_ICALL(edi); /* 0x4700679B: call edi */
   2279     RECOMP_FLAGS_IN();
   2280     ecx = esp + 0x10; /* 0x4700679D: lea ecx, [esp + 0x10] */
   2281     MEM32(esp + 0x10) = eax; /* 0x470067A1: mov dword ptr [esp + 0x10], eax */
   2282     MEM32(esp + 0x14) = ebp; /* 0x470067A5: mov dword ptr [esp + 0x14], ebp */
   2283     RECOMP_ICALL(0x470543C0u); /* 0x470067A9: call 0x470543c0 */ /* not lifted */
   2284     RECOMP_FLAGS_IN();
   2285     eax = MEM32(esp + 0x10); /* 0x470067AE: mov eax, dword ptr [esp + 0x10] */
   2286     edx = MEM32(esi + 0x4); /* 0x470067B2: mov edx, dword ptr [esi + 4] */
   2287     ecx = MEM32(esp + 0x14); /* 0x470067B5: mov ecx, dword ptr [esp + 0x14] */
   2288     MEM32(esi + 0x8) = eax; /* 0x470067B9: mov dword ptr [esi + 8], eax */
   2289     PUSH32(esp, edx); /* 0x470067BC: push edx */
   2290     MEM32(esi + 0xC) = ecx; /* 0x470067BD: mov dword ptr [esi + 0xc], ecx */
   2291     RECOMP_ICALL(edi); /* 0x470067C0: call edi */
   2292     RECOMP_FLAGS_IN();
   2293     MEM32(esi + 0x4) = eax; /* 0x470067C2: mov dword ptr [esi + 4], eax */
   2294     eax = MEM32(esi + 0x10); /* 0x470067C5: mov eax, dword ptr [esi + 0x10] */
   2295     PUSH32(esp, eax); /* 0x470067C8: push eax */
   2296     RECOMP_ICALL(edi); /* 0x470067C9: call edi */
   2297     RECOMP_FLAGS_IN();
   2298     ecx = MEM32(esi); /* 0x470067CB: mov ecx, dword ptr [esi] */
   2299     PUSH32(esp, ecx); /* 0x470067CD: push ecx */
   2300     MEM32(esi + 0x10) = eax; /* 0x470067CE: mov dword ptr [esi + 0x10], eax */
   2301     RECOMP_ICALL(edi); /* 0x470067D1: call edi */
   2302     RECOMP_FLAGS_IN();
   2303     edi = POP32_VAL(esp); /* 0x470067D3: pop edi */
   2304     MEM32(esi) = eax; /* 0x470067D4: mov dword ptr [esi], eax */
   2305     esi = POP32_VAL(esp); /* 0x470067D6: pop esi */
   2306     ebp = POP32_VAL(esp); /* 0x470067D7: pop ebp */
   2307     ebx = POP32_VAL(esp); /* 0x470067D8: pop ebx */
   2308     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2309     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2310     esp = esp + 8; /* 0x470067D9: add esp, 8 */
   2311     _flag_k = FK_ADD;
   2312     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470067DC: ret  */
   2313     RECOMP_REGS_OUT();
   2314 }
   2315 
   2316 void sub_470067E0(void) {
   2317     int _fpu_cmp = 0;
   2318     uint32_t _cf = 0;
   2319     int _df = 1;
   2320     uint32_t _flag_k = FK_NONE;
   2321     uint32_t _flag_a = 0, _flag_b = 0;
   2322     uint32_t _itail_tgt = 0;
   2323     RECOMP_REGS_LOCALS
   2324     RECOMP_ENTER(0x470067E0u);
   2325 
   2326 L_470067E0:
   2327     eax = MEM32(esp + 0x4); /* 0x470067E0: mov eax, dword ptr [esp + 4] */
   2328     edx = MEM32(eax); /* 0x470067E4: mov edx, dword ptr [eax] */
   2329     MEM32(ecx + 0x8) = edx; /* 0x470067E6: mov dword ptr [ecx + 8], edx */
   2330     eax = MEM32(eax + 0x4); /* 0x470067E9: mov eax, dword ptr [eax + 4] */
   2331     MEM32(ecx + 0xC) = eax; /* 0x470067EC: mov dword ptr [ecx + 0xc], eax */
   2332     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470067EF: ret 4 */
   2333     RECOMP_REGS_OUT();
   2334 }
   2335 
   2336 void sub_47006800(void) {
   2337     int _fpu_cmp = 0;
   2338     uint32_t _cf = 0;
   2339     int _df = 1;
   2340     uint32_t _flag_k = FK_NONE;
   2341     uint32_t _flag_a = 0, _flag_b = 0;
   2342     uint32_t _itail_tgt = 0;
   2343     RECOMP_REGS_LOCALS
   2344     RECOMP_ENTER(0x47006800u);
   2345 
   2346 L_47006800:
   2347     eax = ecx; /* 0x47006800: mov eax, ecx */
   2348     MEM32(eax) = 0x470AC508u; /* 0x47006802: mov dword ptr [eax], 0x470ac508 */
   2349     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006808: ret  */
   2350     RECOMP_REGS_OUT();
   2351 }
   2352 
   2353 void sub_47006810(void) {
   2354     int _fpu_cmp = 0;
   2355     uint32_t _cf = 0;
   2356     int _df = 1;
   2357     uint32_t _flag_k = FK_NONE;
   2358     uint32_t _flag_a = 0, _flag_b = 0;
   2359     uint32_t _itail_tgt = 0;
   2360     RECOMP_REGS_LOCALS
   2361     RECOMP_ENTER(0x47006810u);
   2362 
   2363 L_47006810:
   2364     eax = ecx; /* 0x47006810: mov eax, ecx */
   2365     MEM32(eax) = 0x470AC508u; /* 0x47006812: mov dword ptr [eax], 0x470ac508 */
   2366     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006818: ret 4 */
   2367     RECOMP_REGS_OUT();
   2368 }
   2369 
   2370 void sub_47006820(void) {
   2371     int _fpu_cmp = 0;
   2372     uint32_t _cf = 0;
   2373     int _df = 1;
   2374     uint32_t _flag_k = FK_NONE;
   2375     uint32_t _flag_a = 0, _flag_b = 0;
   2376     uint32_t _itail_tgt = 0;
   2377     RECOMP_REGS_LOCALS
   2378     RECOMP_ENTER(0x47006820u);
   2379 
   2380 L_47006820:
   2381     PUSH32(esp, ebx); /* 0x47006820: push ebx */
   2382     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47006821: mov bl, byte ptr [esp + 8] */
   2383     /* test LO8(ebx), 2 */ /* 0x47006825: test bl, 2 */
   2384     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   2385     _cf = 0;
   2386     _flag_k = FK_NARROW(FK_TEST, 24);
   2387     PUSH32(esp, esi); /* 0x47006828: push esi */
   2388     esi = ecx; /* 0x47006829: mov esi, ecx */
   2389     if (TEST_Z(_flag_a, _flag_b)) goto L_47006858; /* 0x4700682B: je 0x47006858 */
   2390 L_4700682D:
   2391     eax = MEM32(esi + (-0x4)); /* 0x4700682D: mov eax, dword ptr [esi - 4] */
   2392     PUSH32(esp, edi); /* 0x47006830: push edi */
   2393     PUSH32(esp, 0x4703B2E0u); /* 0x47006831: push 0x4703b2e0 */
   2394     edi = esi + (-0x4); /* 0x47006836: lea edi, [esi - 4] */
   2395     PUSH32(esp, eax); /* 0x47006839: push eax */
   2396     PUSH32(esp, 4); /* 0x4700683A: push 4 */
   2397     PUSH32(esp, esi); /* 0x4700683C: push esi */
   2398     RECOMP_ICALL(0x470A32EBu); /* 0x4700683D: call 0x470a32eb */ /* not lifted */
   2399     RECOMP_FLAGS_IN();
   2400     /* test LO8(ebx), 1 */ /* 0x47006842: test bl, 1 */
   2401     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2402     _cf = 0;
   2403     _flag_k = FK_NARROW(FK_TEST, 24);
   2404     if (TEST_Z(_flag_a, _flag_b)) goto L_47006850; /* 0x47006845: je 0x47006850 */
   2405 L_47006847:
   2406     PUSH32(esp, edi); /* 0x47006847: push edi */
   2407     RECOMP_ICALL(0x470A32A2u); /* 0x47006848: call 0x470a32a2 */ /* not lifted */
   2408     RECOMP_FLAGS_IN();
   2409     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2410     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2411     esp = esp + 4; /* 0x4700684D: add esp, 4 */
   2412     _flag_k = FK_ADD;
   2413 L_47006850:
   2414     eax = edi; /* 0x47006850: mov eax, edi */
   2415     edi = POP32_VAL(esp); /* 0x47006852: pop edi */
   2416     esi = POP32_VAL(esp); /* 0x47006853: pop esi */
   2417     ebx = POP32_VAL(esp); /* 0x47006854: pop ebx */
   2418     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006855: ret 4 */
   2419 L_47006858:
   2420     ecx = esi; /* 0x47006858: mov ecx, esi */
   2421     RECOMP_ICALL(0x4703B2E0u); /* 0x4700685A: call 0x4703b2e0 */ /* not lifted */
   2422     RECOMP_FLAGS_IN();
   2423     /* test LO8(ebx), 1 */ /* 0x4700685F: test bl, 1 */
   2424     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2425     _cf = 0;
   2426     _flag_k = FK_NARROW(FK_TEST, 24);
   2427     if (TEST_Z(_flag_a, _flag_b)) goto L_4700686D; /* 0x47006862: je 0x4700686d */
   2428 L_47006864:
   2429     PUSH32(esp, esi); /* 0x47006864: push esi */
   2430     RECOMP_ICALL(0x470A32A2u); /* 0x47006865: call 0x470a32a2 */ /* not lifted */
   2431     RECOMP_FLAGS_IN();
   2432     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2433     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2434     esp = esp + 4; /* 0x4700686A: add esp, 4 */
   2435     _flag_k = FK_ADD;
   2436 L_4700686D:
   2437     eax = esi; /* 0x4700686D: mov eax, esi */
   2438     esi = POP32_VAL(esp); /* 0x4700686F: pop esi */
   2439     ebx = POP32_VAL(esp); /* 0x47006870: pop ebx */
   2440     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006871: ret 4 */
   2441     RECOMP_REGS_OUT();
   2442 }
   2443 
   2444 void sub_47006880(void) {
   2445     int _fpu_cmp = 0;
   2446     uint32_t _cf = 0;
   2447     int _df = 1;
   2448     uint32_t _flag_k = FK_NONE;
   2449     uint32_t _flag_a = 0, _flag_b = 0;
   2450     uint32_t _itail_tgt = 0;
   2451     RECOMP_REGS_LOCALS
   2452     RECOMP_ENTER(0x47006880u);
   2453 
   2454 L_47006880:
   2455     eax = MEM32(esp + 0xC); /* 0x47006880: mov eax, dword ptr [esp + 0xc] */
   2456     ecx = MEM32(esp + 0x8); /* 0x47006884: mov ecx, dword ptr [esp + 8] */
   2457     edx = MEM32(esp + 0x4); /* 0x47006888: mov edx, dword ptr [esp + 4] */
   2458     PUSH32(esp, eax); /* 0x4700688C: push eax */
   2459     PUSH32(esp, ecx); /* 0x4700688D: push ecx */
   2460     PUSH32(esp, edx); /* 0x4700688E: push edx */
   2461     RECOMP_ICALL(0x470568E0u); /* 0x4700688F: call 0x470568e0 */ /* not lifted */
   2462     RECOMP_FLAGS_IN();
   2463     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2464     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2465     esp = esp + 0xCu; /* 0x47006894: add esp, 0xc */
   2466     _flag_k = FK_ADD;
   2467     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006897: ret  */
   2468     RECOMP_REGS_OUT();
   2469 }
   2470 
   2471 void sub_470068A0(void) {
   2472     int _fpu_cmp = 0;
   2473     uint32_t _cf = 0;
   2474     int _df = 1;
   2475     uint32_t _flag_k = FK_NONE;
   2476     uint32_t _flag_a = 0, _flag_b = 0;
   2477     uint32_t _itail_tgt = 0;
   2478     RECOMP_REGS_LOCALS
   2479     RECOMP_ENTER(0x470068A0u);
   2480 
   2481 L_470068A0:
   2482     eax = MEM32(esp + 0xC); /* 0x470068A0: mov eax, dword ptr [esp + 0xc] */
   2483     ecx = MEM32(esp + 0x8); /* 0x470068A4: mov ecx, dword ptr [esp + 8] */
   2484     edx = MEM32(esp + 0x4); /* 0x470068A8: mov edx, dword ptr [esp + 4] */
   2485     PUSH32(esp, eax); /* 0x470068AC: push eax */
   2486     PUSH32(esp, ecx); /* 0x470068AD: push ecx */
   2487     PUSH32(esp, edx); /* 0x470068AE: push edx */
   2488     RECOMP_ICALL(0x47056A00u); /* 0x470068AF: call 0x47056a00 */ /* not lifted */
   2489     RECOMP_FLAGS_IN();
   2490     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2491     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2492     esp = esp + 0xCu; /* 0x470068B4: add esp, 0xc */
   2493     _flag_k = FK_ADD;
   2494     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470068B7: ret  */
   2495     RECOMP_REGS_OUT();
   2496 }
   2497 
   2498 void sub_470068C0(void) {
   2499     int _fpu_cmp = 0;
   2500     uint32_t _cf = 0;
   2501     int _df = 1;
   2502     uint32_t _flag_k = FK_NONE;
   2503     uint32_t _flag_a = 0, _flag_b = 0;
   2504     uint32_t _itail_tgt = 0;
   2505     RECOMP_REGS_LOCALS
   2506     RECOMP_ENTER(0x470068C0u);
   2507 
   2508 L_470068C0:
   2509     eax = MEM32(esp + 0xC); /* 0x470068C0: mov eax, dword ptr [esp + 0xc] */
   2510     ecx = MEM32(esp + 0x8); /* 0x470068C4: mov ecx, dword ptr [esp + 8] */
   2511     edx = MEM32(esp + 0x4); /* 0x470068C8: mov edx, dword ptr [esp + 4] */
   2512     PUSH32(esp, 0); /* 0x470068CC: push 0 */
   2513     PUSH32(esp, eax); /* 0x470068CE: push eax */
   2514     PUSH32(esp, ecx); /* 0x470068CF: push ecx */
   2515     PUSH32(esp, edx); /* 0x470068D0: push edx */
   2516     RECOMP_ICALL(MEM32(0x470AC46C)); /* 0x470068D1: call dword ptr [0x470ac46c] */
   2517     RECOMP_FLAGS_IN();
   2518     /* cmp eax, 0xFFFFFFFFu */ /* 0x470068D7: cmp eax, -1 */
   2519     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2521     _flag_k = FK_CMP;
   2522     if (CMP_NE(_flag_a, _flag_b)) goto L_470068F1; /* 0x470068DA: jne 0x470068f1 */
   2523 L_470068DC:
   2524     PUSH32(esp, esi); /* 0x470068DC: push esi */
   2525     RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x470068DD: call dword ptr [0x470ac4a4] */
   2526     RECOMP_FLAGS_IN();
   2527     esi = eax; /* 0x470068E3: mov esi, eax */
   2528     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470068E5: call dword ptr [0x470ac3c8] */
   2529     RECOMP_FLAGS_IN();
   2530     MEM32(eax) = esi; /* 0x470068EB: mov dword ptr [eax], esi */
   2531     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2532     eax = eax | 0xFFFFFFFFu; /* 0x470068ED: or eax, 0xffffffff */
   2533     _cf = 0;
   2534     _flag_k = FK_TEST;
   2535     esi = POP32_VAL(esp); /* 0x470068F0: pop esi */
   2536 L_470068F1:
   2537     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470068F1: ret  */
   2538     RECOMP_REGS_OUT();
   2539 }
   2540 
   2541 void sub_47006900(void) {
   2542     int _fpu_cmp = 0;
   2543     uint32_t _cf = 0;
   2544     int _df = 1;
   2545     uint32_t _flag_k = FK_NONE;
   2546     uint32_t _flag_a = 0, _flag_b = 0;
   2547     uint32_t _itail_tgt = 0;
   2548     RECOMP_REGS_LOCALS
   2549     RECOMP_ENTER(0x47006900u);
   2550 
   2551 L_47006900:
   2552     eax = MEM32(esp + 0xC); /* 0x47006900: mov eax, dword ptr [esp + 0xc] */
   2553     ecx = MEM32(esp + 0x8); /* 0x47006904: mov ecx, dword ptr [esp + 8] */
   2554     edx = MEM32(esp + 0x4); /* 0x47006908: mov edx, dword ptr [esp + 4] */
   2555     PUSH32(esp, 0); /* 0x4700690C: push 0 */
   2556     PUSH32(esp, eax); /* 0x4700690E: push eax */
   2557     PUSH32(esp, ecx); /* 0x4700690F: push ecx */
   2558     PUSH32(esp, edx); /* 0x47006910: push edx */
   2559     RECOMP_ICALL(MEM32(0x470AC4BC)); /* 0x47006911: call dword ptr [0x470ac4bc] */
   2560     RECOMP_FLAGS_IN();
   2561     /* cmp eax, 0xFFFFFFFFu */ /* 0x47006917: cmp eax, -1 */
   2562     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2564     _flag_k = FK_CMP;
   2565     if (CMP_NE(_flag_a, _flag_b)) goto L_47006931; /* 0x4700691A: jne 0x47006931 */
   2566 L_4700691C:
   2567     PUSH32(esp, esi); /* 0x4700691C: push esi */
   2568     RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x4700691D: call dword ptr [0x470ac4a4] */
   2569     RECOMP_FLAGS_IN();
   2570     esi = eax; /* 0x47006923: mov esi, eax */
   2571     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006925: call dword ptr [0x470ac3c8] */
   2572     RECOMP_FLAGS_IN();
   2573     MEM32(eax) = esi; /* 0x4700692B: mov dword ptr [eax], esi */
   2574     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2575     eax = eax | 0xFFFFFFFFu; /* 0x4700692D: or eax, 0xffffffff */
   2576     _cf = 0;
   2577     _flag_k = FK_TEST;
   2578     esi = POP32_VAL(esp); /* 0x47006930: pop esi */
   2579 L_47006931:
   2580     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006931: ret  */
   2581     RECOMP_REGS_OUT();
   2582 }
   2583 
   2584 void sub_47006940(void) {
   2585     int _fpu_cmp = 0;
   2586     uint32_t _cf = 0;
   2587     int _df = 1;
   2588     uint32_t _flag_k = FK_NONE;
   2589     uint32_t _flag_a = 0, _flag_b = 0;
   2590     uint32_t _itail_tgt = 0;
   2591     RECOMP_REGS_LOCALS
   2592     RECOMP_ENTER(0x47006940u);
   2593 
   2594 L_47006940:
   2595     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu);
   2596     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2597     esp = esp - 0x10Cu; /* 0x47006940: sub esp, 0x10c */
   2598     _flag_k = FK_CMP;
   2599     PUSH32(esp, esi); /* 0x47006946: push esi */
   2600     ecx = esp + 0x4; /* 0x47006947: lea ecx, [esp + 4] */
   2601     RECOMP_ICALL(0x4702FFC0u); /* 0x4700694B: call 0x4702ffc0 */ /* not lifted */
   2602     RECOMP_FLAGS_IN();
   2603     esi = MEM32(esp + 0x114); /* 0x47006950: mov esi, dword ptr [esp + 0x114] */
   2604     eax = esp + 0xC; /* 0x47006957: lea eax, [esp + 0xc] */
   2605     PUSH32(esp, eax); /* 0x4700695B: push eax */
   2606     PUSH32(esp, esi); /* 0x4700695C: push esi */
   2607     RECOMP_ICALL(0x470A3290u); /* 0x4700695D: call 0x470a3290 */ /* not lifted */
   2608     RECOMP_FLAGS_IN();
   2609     /* test eax, eax */ /* 0x47006962: test eax, eax */
   2610     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2611     _cf = 0;
   2612     _flag_k = FK_TEST;
   2613     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006993; /* 0x47006964: jne 0x47006993 */
   2614 L_47006966:
   2615     edx = MEM32(esp + 0xC); /* 0x47006966: mov edx, dword ptr [esp + 0xc] */
   2616     /* test edx, edx */ /* 0x4700696A: test edx, edx */
   2617     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2618     _cf = 0;
   2619     _flag_k = FK_TEST;
   2620     if (TEST_Z(_flag_a, _flag_b)) goto L_4700697E; /* 0x4700696C: jbe 0x4700697e */
   2621 L_4700696E:
   2622     ecx = esp + 0x10; /* 0x4700696E: lea ecx, [esp + 0x10] */
   2623 L_47006972:
   2624     /* cmp MEM32(ecx), esi */ /* 0x47006972: cmp dword ptr [ecx], esi */
   2625     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi);
   2626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2627     _flag_k = FK_CMP;
   2628     if (CMP_EQ(_flag_a, _flag_b)) goto L_4700697E; /* 0x47006974: je 0x4700697e */
   2629 L_47006976:
   2630     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2631     eax = eax + 1; /* 0x47006976: inc eax */
   2632     _flag_k = FK_INC;
   2633     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2634     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2635     ecx = ecx + 4; /* 0x47006977: add ecx, 4 */
   2636     _flag_k = FK_ADD;
   2637     /* cmp eax, edx */ /* 0x4700697A: cmp eax, edx */
   2638     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2640     _flag_k = FK_CMP;
   2641     RECOMP_BACKEDGE();
   2642     if (CMP_B(_flag_a, _flag_b)) goto L_47006972; /* 0x4700697C: jb 0x47006972 */
   2643 L_4700697E:
   2644     /* cmp eax, edx */ /* 0x4700697E: cmp eax, edx */
   2645     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2647     _flag_k = FK_CMP;
   2648     if (CMP_NE(_flag_a, _flag_b)) goto L_4700698F; /* 0x47006980: jne 0x4700698f */
   2649 L_47006982:
   2650     /* cmp edx, 0x40u */ /* 0x47006982: cmp edx, 0x40 */
   2651     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x40u);
   2652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2653     _flag_k = FK_CMP;
   2654     if (CMP_AE(_flag_a, _flag_b)) goto L_4700698F; /* 0x47006985: jae 0x4700698f */
   2655 L_47006987:
   2656     MEM32(esp + eax * 4 + 0x10) = esi; /* 0x47006987: mov dword ptr [esp + eax*4 + 0x10], esi */
   2657     _flag_a = (uint32_t)(MEM32(esp + 0xC)); _flag_b = (uint32_t)(1);
   2658     MEM32(esp + 0xC) = MEM32(esp + 0xC) + 1; /* 0x4700698B: inc dword ptr [esp + 0xc] */
   2659     _flag_k = FK_INC;
   2660 L_4700698F:
   2661     _flag_a = (uint32_t)(MEM32(esp + 0x4)); _flag_b = (uint32_t)(1);
   2662     MEM32(esp + 0x4) = MEM32(esp + 0x4) + 1; /* 0x4700698F: inc dword ptr [esp + 4] */
   2663     _flag_k = FK_INC;
   2664 L_47006993:
   2665     ecx = MEM32(esp + 0x4); /* 0x47006993: mov ecx, dword ptr [esp + 4] */
   2666     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2667     eax = 0; /* 0x47006997: xor eax, eax */
   2668     _cf = 0;
   2669     _flag_k = FK_TEST;
   2670     /* test ecx, ecx */ /* 0x47006999: test ecx, ecx */
   2671     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2672     _cf = 0;
   2673     _flag_k = FK_TEST;
   2674     SET_LO8(eax, (TEST_LE(_flag_a, _flag_b)) ? 1 : 0); /* 0x4700699B: setle al */
   2675     ecx = esp + 0xC; /* 0x4700699E: lea ecx, [esp + 0xc] */
   2676     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2677     eax = eax - 1; /* 0x470069A2: dec eax */
   2678     _flag_k = FK_DEC;
   2679     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2680     eax = eax & ecx; /* 0x470069A3: and eax, ecx */
   2681     _cf = 0;
   2682     _flag_k = FK_TEST;
   2683     ecx = MEM32(esp + 0x118); /* 0x470069A5: mov ecx, dword ptr [esp + 0x118] */
   2684     PUSH32(esp, ecx); /* 0x470069AC: push ecx */
   2685     PUSH32(esp, 0); /* 0x470069AD: push 0 */
   2686     PUSH32(esp, 0); /* 0x470069AF: push 0 */
   2687     PUSH32(esp, eax); /* 0x470069B1: push eax */
   2688     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   2689     esi = esi + 1; /* 0x470069B2: inc esi */
   2690     _flag_k = FK_INC;
   2691     PUSH32(esp, esi); /* 0x470069B3: push esi */
   2692     RECOMP_ICALL(MEM32(0x470AC478)); /* 0x470069B4: call dword ptr [0x470ac478] */
   2693     RECOMP_FLAGS_IN();
   2694     /* cmp eax, 0xFFFFFFFFu */ /* 0x470069BA: cmp eax, -1 */
   2695     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2697     _flag_k = FK_CMP;
   2698     if (CMP_NE(_flag_a, _flag_b)) goto L_470069DA; /* 0x470069BD: jne 0x470069da */
   2699 L_470069BF:
   2700     RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x470069BF: call dword ptr [0x470ac4a4] */
   2701     RECOMP_FLAGS_IN();
   2702     esi = eax; /* 0x470069C5: mov esi, eax */
   2703     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470069C7: call dword ptr [0x470ac3c8] */
   2704     RECOMP_FLAGS_IN();
   2705     MEM32(eax) = esi; /* 0x470069CD: mov dword ptr [eax], esi */
   2706     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2707     eax = eax | 0xFFFFFFFFu; /* 0x470069CF: or eax, 0xffffffff */
   2708     _cf = 0;
   2709     _flag_k = FK_TEST;
   2710     esi = POP32_VAL(esp); /* 0x470069D2: pop esi */
   2711     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu);
   2712     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2713     esp = esp + 0x10Cu; /* 0x470069D3: add esp, 0x10c */
   2714     _flag_k = FK_ADD;
   2715     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470069D9: ret  */
   2716 L_470069DA:
   2717     /* test eax, eax */ /* 0x470069DA: test eax, eax */
   2718     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2719     _cf = 0;
   2720     _flag_k = FK_TEST;
   2721     if (TEST_NZ(_flag_a, _flag_b)) goto L_470069ED; /* 0x470069DC: jne 0x470069ed */
   2722 L_470069DE:
   2723     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470069DE: call dword ptr [0x470ac3c8] */
   2724     RECOMP_FLAGS_IN();
   2725     MEM32(eax) = 0x79u; /* 0x470069E4: mov dword ptr [eax], 0x79 */
   2726     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2727     eax = eax | 0xFFFFFFFFu; /* 0x470069EA: or eax, 0xffffffff */
   2728     _cf = 0;
   2729     _flag_k = FK_TEST;
   2730 L_470069ED:
   2731     esi = POP32_VAL(esp); /* 0x470069ED: pop esi */
   2732     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu);
   2733     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2734     esp = esp + 0x10Cu; /* 0x470069EE: add esp, 0x10c */
   2735     _flag_k = FK_ADD;
   2736     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470069F4: ret  */
   2737     RECOMP_REGS_OUT();
   2738 }
   2739 
   2740 void sub_47006A00(void) {
   2741     int _fpu_cmp = 0;
   2742     uint32_t _cf = 0;
   2743     int _df = 1;
   2744     uint32_t _flag_k = FK_NONE;
   2745     uint32_t _flag_a = 0, _flag_b = 0;
   2746     uint32_t _itail_tgt = 0;
   2747     RECOMP_REGS_LOCALS
   2748     RECOMP_ENTER(0x47006A00u);
   2749 
   2750 L_47006A00:
   2751     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu);
   2752     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2753     esp = esp - 0x10Cu; /* 0x47006A00: sub esp, 0x10c */
   2754     _flag_k = FK_CMP;
   2755     PUSH32(esp, esi); /* 0x47006A06: push esi */
   2756     ecx = esp + 0x4; /* 0x47006A07: lea ecx, [esp + 4] */
   2757     RECOMP_ICALL(0x4702FFC0u); /* 0x47006A0B: call 0x4702ffc0 */ /* not lifted */
   2758     RECOMP_FLAGS_IN();
   2759     esi = MEM32(esp + 0x114); /* 0x47006A10: mov esi, dword ptr [esp + 0x114] */
   2760     eax = esp + 0xC; /* 0x47006A17: lea eax, [esp + 0xc] */
   2761     PUSH32(esp, eax); /* 0x47006A1B: push eax */
   2762     PUSH32(esp, esi); /* 0x47006A1C: push esi */
   2763     RECOMP_ICALL(0x470A3290u); /* 0x47006A1D: call 0x470a3290 */ /* not lifted */
   2764     RECOMP_FLAGS_IN();
   2765     /* test eax, eax */ /* 0x47006A22: test eax, eax */
   2766     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2767     _cf = 0;
   2768     _flag_k = FK_TEST;
   2769     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006A53; /* 0x47006A24: jne 0x47006a53 */
   2770 L_47006A26:
   2771     edx = MEM32(esp + 0xC); /* 0x47006A26: mov edx, dword ptr [esp + 0xc] */
   2772     /* test edx, edx */ /* 0x47006A2A: test edx, edx */
   2773     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2774     _cf = 0;
   2775     _flag_k = FK_TEST;
   2776     if (TEST_Z(_flag_a, _flag_b)) goto L_47006A3E; /* 0x47006A2C: jbe 0x47006a3e */
   2777 L_47006A2E:
   2778     ecx = esp + 0x10; /* 0x47006A2E: lea ecx, [esp + 0x10] */
   2779 L_47006A32:
   2780     /* cmp MEM32(ecx), esi */ /* 0x47006A32: cmp dword ptr [ecx], esi */
   2781     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi);
   2782     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2783     _flag_k = FK_CMP;
   2784     if (CMP_EQ(_flag_a, _flag_b)) goto L_47006A3E; /* 0x47006A34: je 0x47006a3e */
   2785 L_47006A36:
   2786     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2787     eax = eax + 1; /* 0x47006A36: inc eax */
   2788     _flag_k = FK_INC;
   2789     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2790     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2791     ecx = ecx + 4; /* 0x47006A37: add ecx, 4 */
   2792     _flag_k = FK_ADD;
   2793     /* cmp eax, edx */ /* 0x47006A3A: cmp eax, edx */
   2794     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2796     _flag_k = FK_CMP;
   2797     RECOMP_BACKEDGE();
   2798     if (CMP_B(_flag_a, _flag_b)) goto L_47006A32; /* 0x47006A3C: jb 0x47006a32 */
   2799 L_47006A3E:
   2800     /* cmp eax, edx */ /* 0x47006A3E: cmp eax, edx */
   2801     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2803     _flag_k = FK_CMP;
   2804     if (CMP_NE(_flag_a, _flag_b)) goto L_47006A4F; /* 0x47006A40: jne 0x47006a4f */
   2805 L_47006A42:
   2806     /* cmp edx, 0x40u */ /* 0x47006A42: cmp edx, 0x40 */
   2807     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x40u);
   2808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2809     _flag_k = FK_CMP;
   2810     if (CMP_AE(_flag_a, _flag_b)) goto L_47006A4F; /* 0x47006A45: jae 0x47006a4f */
   2811 L_47006A47:
   2812     MEM32(esp + eax * 4 + 0x10) = esi; /* 0x47006A47: mov dword ptr [esp + eax*4 + 0x10], esi */
   2813     _flag_a = (uint32_t)(MEM32(esp + 0xC)); _flag_b = (uint32_t)(1);
   2814     MEM32(esp + 0xC) = MEM32(esp + 0xC) + 1; /* 0x47006A4B: inc dword ptr [esp + 0xc] */
   2815     _flag_k = FK_INC;
   2816 L_47006A4F:
   2817     _flag_a = (uint32_t)(MEM32(esp + 0x4)); _flag_b = (uint32_t)(1);
   2818     MEM32(esp + 0x4) = MEM32(esp + 0x4) + 1; /* 0x47006A4F: inc dword ptr [esp + 4] */
   2819     _flag_k = FK_INC;
   2820 L_47006A53:
   2821     ecx = MEM32(esp + 0x4); /* 0x47006A53: mov ecx, dword ptr [esp + 4] */
   2822     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2823     eax = 0; /* 0x47006A57: xor eax, eax */
   2824     _cf = 0;
   2825     _flag_k = FK_TEST;
   2826     /* test ecx, ecx */ /* 0x47006A59: test ecx, ecx */
   2827     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2828     _cf = 0;
   2829     _flag_k = FK_TEST;
   2830     SET_LO8(eax, (TEST_LE(_flag_a, _flag_b)) ? 1 : 0); /* 0x47006A5B: setle al */
   2831     ecx = esp + 0xC; /* 0x47006A5E: lea ecx, [esp + 0xc] */
   2832     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2833     eax = eax - 1; /* 0x47006A62: dec eax */
   2834     _flag_k = FK_DEC;
   2835     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2836     eax = eax & ecx; /* 0x47006A63: and eax, ecx */
   2837     _cf = 0;
   2838     _flag_k = FK_TEST;
   2839     ecx = MEM32(esp + 0x118); /* 0x47006A65: mov ecx, dword ptr [esp + 0x118] */
   2840     PUSH32(esp, ecx); /* 0x47006A6C: push ecx */
   2841     PUSH32(esp, 0); /* 0x47006A6D: push 0 */
   2842     PUSH32(esp, eax); /* 0x47006A6F: push eax */
   2843     PUSH32(esp, 0); /* 0x47006A70: push 0 */
   2844     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   2845     esi = esi + 1; /* 0x47006A72: inc esi */
   2846     _flag_k = FK_INC;
   2847     PUSH32(esp, esi); /* 0x47006A73: push esi */
   2848     RECOMP_ICALL(MEM32(0x470AC478)); /* 0x47006A74: call dword ptr [0x470ac478] */
   2849     RECOMP_FLAGS_IN();
   2850     /* cmp eax, 0xFFFFFFFFu */ /* 0x47006A7A: cmp eax, -1 */
   2851     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2853     _flag_k = FK_CMP;
   2854     if (CMP_NE(_flag_a, _flag_b)) goto L_47006A9A; /* 0x47006A7D: jne 0x47006a9a */
   2855 L_47006A7F:
   2856     RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x47006A7F: call dword ptr [0x470ac4a4] */
   2857     RECOMP_FLAGS_IN();
   2858     esi = eax; /* 0x47006A85: mov esi, eax */
   2859     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006A87: call dword ptr [0x470ac3c8] */
   2860     RECOMP_FLAGS_IN();
   2861     MEM32(eax) = esi; /* 0x47006A8D: mov dword ptr [eax], esi */
   2862     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2863     eax = eax | 0xFFFFFFFFu; /* 0x47006A8F: or eax, 0xffffffff */
   2864     _cf = 0;
   2865     _flag_k = FK_TEST;
   2866     esi = POP32_VAL(esp); /* 0x47006A92: pop esi */
   2867     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu);
   2868     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2869     esp = esp + 0x10Cu; /* 0x47006A93: add esp, 0x10c */
   2870     _flag_k = FK_ADD;
   2871     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006A99: ret  */
   2872 L_47006A9A:
   2873     /* test eax, eax */ /* 0x47006A9A: test eax, eax */
   2874     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2875     _cf = 0;
   2876     _flag_k = FK_TEST;
   2877     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006AAD; /* 0x47006A9C: jne 0x47006aad */
   2878 L_47006A9E:
   2879     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006A9E: call dword ptr [0x470ac3c8] */
   2880     RECOMP_FLAGS_IN();
   2881     MEM32(eax) = 0x79u; /* 0x47006AA4: mov dword ptr [eax], 0x79 */
   2882     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2883     eax = eax | 0xFFFFFFFFu; /* 0x47006AAA: or eax, 0xffffffff */
   2884     _cf = 0;
   2885     _flag_k = FK_TEST;
   2886 L_47006AAD:
   2887     esi = POP32_VAL(esp); /* 0x47006AAD: pop esi */
   2888     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu);
   2889     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2890     esp = esp + 0x10Cu; /* 0x47006AAE: add esp, 0x10c */
   2891     _flag_k = FK_ADD;
   2892     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006AB4: ret  */
   2893     RECOMP_REGS_OUT();
   2894 }
   2895 
   2896 void sub_47006AC0(void) {
   2897     int _fpu_cmp = 0;
   2898     uint32_t _cf = 0;
   2899     int _df = 1;
   2900     uint32_t _flag_k = FK_NONE;
   2901     uint32_t _flag_a = 0, _flag_b = 0;
   2902     uint32_t _itail_tgt = 0;
   2903     RECOMP_REGS_LOCALS
   2904     RECOMP_ENTER(0x47006AC0u);
   2905 
   2906 L_47006AC0:
   2907     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu);
   2908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2909     esp = esp - 0x10Cu; /* 0x47006AC0: sub esp, 0x10c */
   2910     _flag_k = FK_CMP;
   2911     PUSH32(esp, esi); /* 0x47006AC6: push esi */
   2912     ecx = esp + 0x4; /* 0x47006AC7: lea ecx, [esp + 4] */
   2913     RECOMP_ICALL(0x4702FFC0u); /* 0x47006ACB: call 0x4702ffc0 */ /* not lifted */
   2914     RECOMP_FLAGS_IN();
   2915     esi = MEM32(esp + 0x114); /* 0x47006AD0: mov esi, dword ptr [esp + 0x114] */
   2916     eax = esp + 0xC; /* 0x47006AD7: lea eax, [esp + 0xc] */
   2917     PUSH32(esp, eax); /* 0x47006ADB: push eax */
   2918     PUSH32(esp, esi); /* 0x47006ADC: push esi */
   2919     RECOMP_ICALL(0x470A3290u); /* 0x47006ADD: call 0x470a3290 */ /* not lifted */
   2920     RECOMP_FLAGS_IN();
   2921     /* test eax, eax */ /* 0x47006AE2: test eax, eax */
   2922     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2923     _cf = 0;
   2924     _flag_k = FK_TEST;
   2925     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006B13; /* 0x47006AE4: jne 0x47006b13 */
   2926 L_47006AE6:
   2927     edx = MEM32(esp + 0xC); /* 0x47006AE6: mov edx, dword ptr [esp + 0xc] */
   2928     /* test edx, edx */ /* 0x47006AEA: test edx, edx */
   2929     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2930     _cf = 0;
   2931     _flag_k = FK_TEST;
   2932     if (TEST_Z(_flag_a, _flag_b)) goto L_47006AFE; /* 0x47006AEC: jbe 0x47006afe */
   2933 L_47006AEE:
   2934     ecx = esp + 0x10; /* 0x47006AEE: lea ecx, [esp + 0x10] */
   2935 L_47006AF2:
   2936     /* cmp MEM32(ecx), esi */ /* 0x47006AF2: cmp dword ptr [ecx], esi */
   2937     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi);
   2938     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2939     _flag_k = FK_CMP;
   2940     if (CMP_EQ(_flag_a, _flag_b)) goto L_47006AFE; /* 0x47006AF4: je 0x47006afe */
   2941 L_47006AF6:
   2942     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2943     eax = eax + 1; /* 0x47006AF6: inc eax */
   2944     _flag_k = FK_INC;
   2945     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2946     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2947     ecx = ecx + 4; /* 0x47006AF7: add ecx, 4 */
   2948     _flag_k = FK_ADD;
   2949     /* cmp eax, edx */ /* 0x47006AFA: cmp eax, edx */
   2950     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2952     _flag_k = FK_CMP;
   2953     RECOMP_BACKEDGE();
   2954     if (CMP_B(_flag_a, _flag_b)) goto L_47006AF2; /* 0x47006AFC: jb 0x47006af2 */
   2955 L_47006AFE:
   2956     /* cmp eax, edx */ /* 0x47006AFE: cmp eax, edx */
   2957     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2959     _flag_k = FK_CMP;
   2960     if (CMP_NE(_flag_a, _flag_b)) goto L_47006B0F; /* 0x47006B00: jne 0x47006b0f */
   2961 L_47006B02:
   2962     /* cmp edx, 0x40u */ /* 0x47006B02: cmp edx, 0x40 */
   2963     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x40u);
   2964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2965     _flag_k = FK_CMP;
   2966     if (CMP_AE(_flag_a, _flag_b)) goto L_47006B0F; /* 0x47006B05: jae 0x47006b0f */
   2967 L_47006B07:
   2968     MEM32(esp + eax * 4 + 0x10) = esi; /* 0x47006B07: mov dword ptr [esp + eax*4 + 0x10], esi */
   2969     _flag_a = (uint32_t)(MEM32(esp + 0xC)); _flag_b = (uint32_t)(1);
   2970     MEM32(esp + 0xC) = MEM32(esp + 0xC) + 1; /* 0x47006B0B: inc dword ptr [esp + 0xc] */
   2971     _flag_k = FK_INC;
   2972 L_47006B0F:
   2973     _flag_a = (uint32_t)(MEM32(esp + 0x4)); _flag_b = (uint32_t)(1);
   2974     MEM32(esp + 0x4) = MEM32(esp + 0x4) + 1; /* 0x47006B0F: inc dword ptr [esp + 4] */
   2975     _flag_k = FK_INC;
   2976 L_47006B13:
   2977     edx = MEM32(esp + 0x4); /* 0x47006B13: mov edx, dword ptr [esp + 4] */
   2978     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2979     eax = 0; /* 0x47006B17: xor eax, eax */
   2980     _cf = 0;
   2981     _flag_k = FK_TEST;
   2982     /* test edx, edx */ /* 0x47006B19: test edx, edx */
   2983     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2984     _cf = 0;
   2985     _flag_k = FK_TEST;
   2986     SET_LO8(eax, (TEST_LE(_flag_a, _flag_b)) ? 1 : 0); /* 0x47006B1B: setle al */
   2987     ecx = esp + 0xC; /* 0x47006B1E: lea ecx, [esp + 0xc] */
   2988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2989     eax = eax - 1; /* 0x47006B22: dec eax */
   2990     _flag_k = FK_DEC;
   2991     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2992     eax = eax & ecx; /* 0x47006B23: and eax, ecx */
   2993     _cf = 0;
   2994     _flag_k = FK_TEST;
   2995     ecx = MEM32(esp + 0x118); /* 0x47006B25: mov ecx, dword ptr [esp + 0x118] */
   2996     PUSH32(esp, ecx); /* 0x47006B2C: push ecx */
   2997     PUSH32(esp, eax); /* 0x47006B2D: push eax */
   2998     PUSH32(esp, 0); /* 0x47006B2E: push 0 */
   2999     PUSH32(esp, 0); /* 0x47006B30: push 0 */
   3000     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   3001     esi = esi + 1; /* 0x47006B32: inc esi */
   3002     _flag_k = FK_INC;
   3003     PUSH32(esp, esi); /* 0x47006B33: push esi */
   3004     RECOMP_ICALL(MEM32(0x470AC478)); /* 0x47006B34: call dword ptr [0x470ac478] */
   3005     RECOMP_FLAGS_IN();
   3006     /* cmp eax, 0xFFFFFFFFu */ /* 0x47006B3A: cmp eax, -1 */
   3007     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3009     _flag_k = FK_CMP;
   3010     if (CMP_NE(_flag_a, _flag_b)) goto L_47006B5A; /* 0x47006B3D: jne 0x47006b5a */
   3011 L_47006B3F:
   3012     RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x47006B3F: call dword ptr [0x470ac4a4] */
   3013     RECOMP_FLAGS_IN();
   3014     esi = eax; /* 0x47006B45: mov esi, eax */
   3015     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006B47: call dword ptr [0x470ac3c8] */
   3016     RECOMP_FLAGS_IN();
   3017     MEM32(eax) = esi; /* 0x47006B4D: mov dword ptr [eax], esi */
   3018     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3019     eax = eax | 0xFFFFFFFFu; /* 0x47006B4F: or eax, 0xffffffff */
   3020     _cf = 0;
   3021     _flag_k = FK_TEST;
   3022     esi = POP32_VAL(esp); /* 0x47006B52: pop esi */
   3023     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu);
   3024     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3025     esp = esp + 0x10Cu; /* 0x47006B53: add esp, 0x10c */
   3026     _flag_k = FK_ADD;
   3027     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006B59: ret  */
   3028 L_47006B5A:
   3029     /* test eax, eax */ /* 0x47006B5A: test eax, eax */
   3030     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3031     _cf = 0;
   3032     _flag_k = FK_TEST;
   3033     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006B6D; /* 0x47006B5C: jne 0x47006b6d */
   3034 L_47006B5E:
   3035     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47006B5E: call dword ptr [0x470ac3c8] */
   3036     RECOMP_FLAGS_IN();
   3037     MEM32(eax) = 0x79u; /* 0x47006B64: mov dword ptr [eax], 0x79 */
   3038     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3039     eax = eax | 0xFFFFFFFFu; /* 0x47006B6A: or eax, 0xffffffff */
   3040     _cf = 0;
   3041     _flag_k = FK_TEST;
   3042 L_47006B6D:
   3043     esi = POP32_VAL(esp); /* 0x47006B6D: pop esi */
   3044     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu);
   3045     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3046     esp = esp + 0x10Cu; /* 0x47006B6E: add esp, 0x10c */
   3047     _flag_k = FK_ADD;
   3048     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006B74: ret  */
   3049     RECOMP_REGS_OUT();
   3050 }
   3051 
   3052 void sub_47006B80(void) {
   3053     int _fpu_cmp = 0;
   3054     uint32_t _cf = 0;
   3055     int _df = 1;
   3056     uint32_t _flag_k = FK_NONE;
   3057     uint32_t _flag_a = 0, _flag_b = 0;
   3058     uint32_t _itail_tgt = 0;
   3059     RECOMP_REGS_LOCALS
   3060     RECOMP_ENTER(0x47006B80u);
   3061 
   3062 L_47006B80:
   3063     edx = MEM32(esp + 0x8); /* 0x47006B80: mov edx, dword ptr [esp + 8] */
   3064     SET_LO16(ecx, MEM16(edx)); /* 0x47006B84: mov cx, word ptr [edx] */
   3065     eax = MEM32(esp + 0x4); /* 0x47006B87: mov eax, dword ptr [esp + 4] */
   3066     MEM16(eax) = (uint16_t)(LO16(ecx)); /* 0x47006B8B: mov word ptr [eax], cx */
   3067     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   3068     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3069     eax = eax + 2; /* 0x47006B8E: add eax, 2 */
   3070     _flag_k = FK_ADD;
   3071     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2);
   3072     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3073     edx = edx + 2; /* 0x47006B91: add edx, 2 */
   3074     _flag_k = FK_ADD;
   3075     /* test LO16(ecx), LO16(ecx) */ /* 0x47006B94: test cx, cx */
   3076     _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16;
   3077     _cf = 0;
   3078     _flag_k = FK_NARROW(FK_TEST, 16);
   3079     if (TEST_Z(_flag_a, _flag_b)) goto L_47006BAA; /* 0x47006B97: je 0x47006baa */
   3080 L_47006B99:
   3081     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3083     edx = edx - eax; /* 0x47006B99: sub edx, eax */
   3084     _flag_k = FK_CMP;
   3085 L_47006B9B:
   3086     SET_LO16(ecx, MEM16(edx + eax)); /* 0x47006B9B: mov cx, word ptr [edx + eax] */
   3087     MEM16(eax) = (uint16_t)(LO16(ecx)); /* 0x47006B9F: mov word ptr [eax], cx */
   3088     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   3089     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3090     eax = eax + 2; /* 0x47006BA2: add eax, 2 */
   3091     _flag_k = FK_ADD;
   3092     /* test LO16(ecx), LO16(ecx) */ /* 0x47006BA5: test cx, cx */
   3093     _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16;
   3094     _cf = 0;
   3095     _flag_k = FK_NARROW(FK_TEST, 16);
   3096     RECOMP_BACKEDGE();
   3097     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006B9B; /* 0x47006BA8: jne 0x47006b9b */
   3098 L_47006BAA:
   3099     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006BAA: ret  */
   3100     RECOMP_REGS_OUT();
   3101 }
   3102 
   3103 void sub_47006BB0(void) {
   3104     int _fpu_cmp = 0;
   3105     uint32_t _cf = 0;
   3106     int _df = 1;
   3107     uint32_t _flag_k = FK_NONE;
   3108     uint32_t _flag_a = 0, _flag_b = 0;
   3109     uint32_t _itail_tgt = 0;
   3110     RECOMP_REGS_LOCALS
   3111     RECOMP_ENTER(0x47006BB0u);
   3112 
   3113 L_47006BB0:
   3114     eax = MEM32(esp + 0xC); /* 0x47006BB0: mov eax, dword ptr [esp + 0xc] */
   3115     ecx = MEM32(esp + 0x8); /* 0x47006BB4: mov ecx, dword ptr [esp + 8] */
   3116     edx = MEM32(esp + 0x4); /* 0x47006BB8: mov edx, dword ptr [esp + 4] */
   3117     PUSH32(esp, eax); /* 0x47006BBC: push eax */
   3118     PUSH32(esp, ecx); /* 0x47006BBD: push ecx */
   3119     PUSH32(esp, edx); /* 0x47006BBE: push edx */
   3120     RECOMP_ICALL(0x470562C0u); /* 0x47006BBF: call 0x470562c0 */ /* not lifted */
   3121     RECOMP_FLAGS_IN();
   3122     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3123     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3124     esp = esp + 0xCu; /* 0x47006BC4: add esp, 0xc */
   3125     _flag_k = FK_ADD;
   3126     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006BC7: ret  */
   3127     RECOMP_REGS_OUT();
   3128 }
   3129 
   3130 void sub_47006BD0(void) {
   3131     int _fpu_cmp = 0;
   3132     uint32_t _cf = 0;
   3133     int _df = 1;
   3134     uint32_t _flag_k = FK_NONE;
   3135     uint32_t _flag_a = 0, _flag_b = 0;
   3136     uint32_t _itail_tgt = 0;
   3137     RECOMP_REGS_LOCALS
   3138     RECOMP_ENTER(0x47006BD0u);
   3139 
   3140 L_47006BD0:
   3141     ecx = MEM32(esp + 0x4); /* 0x47006BD0: mov ecx, dword ptr [esp + 4] */
   3142     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3143     eax = 0; /* 0x47006BD4: xor eax, eax */
   3144     _cf = 0;
   3145     _flag_k = FK_TEST;
   3146     /* test ecx, ecx */ /* 0x47006BD6: test ecx, ecx */
   3147     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3148     _cf = 0;
   3149     _flag_k = FK_TEST;
   3150     if (TEST_Z(_flag_a, _flag_b)) goto L_47006BE1; /* 0x47006BD8: jbe 0x47006be1 */
   3151 L_47006BDA:
   3152     if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x47006BDA: shr ecx, 1 */
   3153     if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3154     ecx = ecx >> 1u; /* 0x47006BDA: shr ecx, 1 */
   3155     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3156     eax = eax + 1; /* 0x47006BDC: inc eax */
   3157     _flag_k = FK_INC;
   3158     /* test ecx, ecx */ /* 0x47006BDD: test ecx, ecx */
   3159     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3160     _cf = 0;
   3161     _flag_k = FK_TEST;
   3162     RECOMP_BACKEDGE();
   3163     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006BDA; /* 0x47006BDF: ja 0x47006bda */
   3164 L_47006BE1:
   3165     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006BE1: ret  */
   3166     RECOMP_REGS_OUT();
   3167 }
   3168 
   3169 void sub_47006BF0(void) {
   3170     int _fpu_cmp = 0;
   3171     uint32_t _cf = 0;
   3172     int _df = 1;
   3173     uint32_t _flag_k = FK_NONE;
   3174     uint32_t _flag_a = 0, _flag_b = 0;
   3175     uint32_t _itail_tgt = 0;
   3176     RECOMP_REGS_LOCALS
   3177     RECOMP_ENTER(0x47006BF0u);
   3178 
   3179 L_47006BF0:
   3180     eax = MEM32(esp + 0x4); /* 0x47006BF0: mov eax, dword ptr [esp + 4] */
   3181     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu);
   3182     eax = eax & 0xFu; /* 0x47006BF4: and eax, 0xf */
   3183     _cf = 0;
   3184     _flag_k = FK_TEST;
   3185     SET_LO8(eax, MEM8(eax + 0x470AC4E0)); /* 0x47006BF7: mov al, byte ptr [eax + 0x470ac4e0] */
   3186     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006BFD: ret  */
   3187     RECOMP_REGS_OUT();
   3188 }
   3189 
   3190 void sub_47006C00(void) {
   3191     int _fpu_cmp = 0;
   3192     uint32_t _cf = 0;
   3193     int _df = 1;
   3194     uint32_t _flag_k = FK_NONE;
   3195     uint32_t _flag_a = 0, _flag_b = 0;
   3196     uint32_t _itail_tgt = 0;
   3197     RECOMP_REGS_LOCALS
   3198     RECOMP_ENTER(0x47006C00u);
   3199 
   3200 L_47006C00:
   3201     PUSH32(esp, esi); /* 0x47006C00: push esi */
   3202     esi = (int32_t)(int8_t)MEM8(esp + 0x8); /* 0x47006C01: movsx esi, byte ptr [esp + 8] */
   3203     PUSH32(esp, esi); /* 0x47006C06: push esi */
   3204     RECOMP_ICALL(MEM32(0x470AC310)); /* 0x47006C07: call dword ptr [0x470ac310] */
   3205     RECOMP_FLAGS_IN();
   3206     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3207     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3208     esp = esp + 4; /* 0x47006C0D: add esp, 4 */
   3209     _flag_k = FK_ADD;
   3210     /* test eax, eax */ /* 0x47006C10: test eax, eax */
   3211     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3212     _cf = 0;
   3213     _flag_k = FK_TEST;
   3214     if (TEST_Z(_flag_a, _flag_b)) goto L_47006C19; /* 0x47006C12: je 0x47006c19 */
   3215 L_47006C14:
   3216     eax = esi + (-0x30); /* 0x47006C14: lea eax, [esi - 0x30] */
   3217     esi = POP32_VAL(esp); /* 0x47006C17: pop esi */
   3218     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006C18: ret  */
   3219 L_47006C19:
   3220     PUSH32(esp, esi); /* 0x47006C19: push esi */
   3221     RECOMP_ICALL(MEM32(0x470AC30C)); /* 0x47006C1A: call dword ptr [0x470ac30c] */
   3222     RECOMP_FLAGS_IN();
   3223     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3224     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3225     esp = esp + 4; /* 0x47006C20: add esp, 4 */
   3226     _flag_k = FK_ADD;
   3227     /* test eax, eax */ /* 0x47006C23: test eax, eax */
   3228     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3229     _cf = 0;
   3230     _flag_k = FK_TEST;
   3231     eax = esi + (-0x57); /* 0x47006C25: lea eax, [esi - 0x57] */
   3232     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006C2D; /* 0x47006C28: jne 0x47006c2d */
   3233 L_47006C2A:
   3234     eax = esi + (-0x37); /* 0x47006C2A: lea eax, [esi - 0x37] */
   3235 L_47006C2D:
   3236     esi = POP32_VAL(esp); /* 0x47006C2D: pop esi */
   3237     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006C2E: ret  */
   3238     RECOMP_REGS_OUT();
   3239 }
   3240 
   3241 void sub_47006C30(void) {
   3242     int _fpu_cmp = 0;
   3243     uint32_t _cf = 0;
   3244     int _df = 1;
   3245     uint32_t _flag_k = FK_NONE;
   3246     uint32_t _flag_a = 0, _flag_b = 0;
   3247     uint32_t _itail_tgt = 0;
   3248     RECOMP_REGS_LOCALS
   3249     RECOMP_ENTER(0x47006C30u);
   3250 
   3251 L_47006C30:
   3252     SET_LO8(eax, MEM8(0x4710DE04)); /* 0x47006C30: mov al, byte ptr [0x4710de04] */
   3253     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006C35: ret  */
   3254     RECOMP_REGS_OUT();
   3255 }
   3256 
   3257 void sub_47006C40(void) {
   3258     int _fpu_cmp = 0;
   3259     uint32_t _cf = 0;
   3260     int _df = 1;
   3261     uint32_t _flag_k = FK_NONE;
   3262     uint32_t _flag_a = 0, _flag_b = 0;
   3263     uint32_t _itail_tgt = 0;
   3264     RECOMP_REGS_LOCALS
   3265     RECOMP_ENTER(0x47006C40u);
   3266 
   3267 L_47006C40:
   3268     SET_LO8(eax, MEM8(esp + 0x4)); /* 0x47006C40: mov al, byte ptr [esp + 4] */
   3269     MEM8(0x4710DE04) = (uint8_t)(LO8(eax)); /* 0x47006C44: mov byte ptr [0x4710de04], al */
   3270     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006C49: ret  */
   3271     RECOMP_REGS_OUT();
   3272 }
   3273 
   3274 void sub_47006C50(void) {
   3275     int _fpu_cmp = 0;
   3276     uint32_t _cf = 0;
   3277     int _df = 1;
   3278     uint32_t _flag_k = FK_NONE;
   3279     uint32_t _flag_a = 0, _flag_b = 0;
   3280     uint32_t _itail_tgt = 0;
   3281     RECOMP_REGS_LOCALS
   3282     RECOMP_ENTER(0x47006C50u);
   3283 
   3284 L_47006C50:
   3285     PUSH32(esp, esi); /* 0x47006C50: push esi */
   3286     esi = MEM32(esp + 0x8); /* 0x47006C51: mov esi, dword ptr [esp + 8] */
   3287     PUSH32(esp, edi); /* 0x47006C55: push edi */
   3288     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3289     ecx = ecx | 0xFFFFFFFFu; /* 0x47006C56: or ecx, 0xffffffff */
   3290     _cf = 0;
   3291     _flag_k = FK_TEST;
   3292     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3293     eax = 0; /* 0x47006C59: xor eax, eax */
   3294     _cf = 0;
   3295     _flag_k = FK_TEST;
   3296     edi = esi; /* 0x47006C5B: mov edi, esi */
   3297     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47006C5D: repne scasb al, byte ptr es:[edi] */
   3298     ecx = ~ecx; /* 0x47006C5F: not ecx */
   3299     PUSH32(esp, ecx); /* 0x47006C61: push ecx */
   3300     RECOMP_ICALL(0x470A33F2u); /* 0x47006C62: call 0x470a33f2 */ /* not lifted */
   3301     RECOMP_FLAGS_IN();
   3302     edx = eax; /* 0x47006C67: mov edx, eax */
   3303     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3304     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3305     esp = esp + 4; /* 0x47006C69: add esp, 4 */
   3306     _flag_k = FK_ADD;
   3307     /* test edx, edx */ /* 0x47006C6C: test edx, edx */
   3308     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3309     _cf = 0;
   3310     _flag_k = FK_TEST;
   3311     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006C73; /* 0x47006C6E: jne 0x47006c73 */
   3312 L_47006C70:
   3313     edi = POP32_VAL(esp); /* 0x47006C70: pop edi */
   3314     esi = POP32_VAL(esp); /* 0x47006C71: pop esi */
   3315     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006C72: ret  */
   3316 L_47006C73:
   3317     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3318     ecx = ecx | 0xFFFFFFFFu; /* 0x47006C73: or ecx, 0xffffffff */
   3319     _cf = 0;
   3320     _flag_k = FK_TEST;
   3321     edi = esi; /* 0x47006C76: mov edi, esi */
   3322     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3323     eax = 0; /* 0x47006C78: xor eax, eax */
   3324     _cf = 0;
   3325     _flag_k = FK_TEST;
   3326     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47006C7A: repne scasb al, byte ptr es:[edi] */
   3327     ecx = ~ecx; /* 0x47006C7C: not ecx */
   3328     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3330     edi = edi - ecx; /* 0x47006C7E: sub edi, ecx */
   3331     _flag_k = FK_CMP;
   3332     esi = edi; /* 0x47006C80: mov esi, edi */
   3333     PUSH32(esp, ebx); /* 0x47006C82: push ebx */
   3334     ebx = ecx; /* 0x47006C83: mov ebx, ecx */
   3335     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47006C85: shr ecx, 2 */
   3336     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3337     ecx = ecx >> 2u; /* 0x47006C85: shr ecx, 2 */
   3338     edi = edx; /* 0x47006C88: mov edi, edx */
   3339     eax = edi; /* 0x47006C8A: mov eax, edi */
   3340     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47006C8C: 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; }
   3341     ecx = ebx; /* 0x47006C8E: mov ecx, ebx */
   3342     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3343     ecx = ecx & 3; /* 0x47006C90: and ecx, 3 */
   3344     _cf = 0;
   3345     _flag_k = FK_TEST;
   3346     ebx = POP32_VAL(esp); /* 0x47006C93: pop ebx */
   3347     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47006C94: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   3348     edi = POP32_VAL(esp); /* 0x47006C96: pop edi */
   3349     esi = POP32_VAL(esp); /* 0x47006C97: pop esi */
   3350     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006C98: ret  */
   3351     RECOMP_REGS_OUT();
   3352 }
   3353 
   3354 void sub_47006CA0(void) {
   3355     int _fpu_cmp = 0;
   3356     uint32_t _cf = 0;
   3357     int _df = 1;
   3358     uint32_t _flag_k = FK_NONE;
   3359     uint32_t _flag_a = 0, _flag_b = 0;
   3360     uint32_t _itail_tgt = 0;
   3361     RECOMP_REGS_LOCALS
   3362     RECOMP_ENTER(0x47006CA0u);
   3363 
   3364 L_47006CA0:
   3365     PUSH32(esp, esi); /* 0x47006CA0: push esi */
   3366     esi = MEM32(esp + 0x8); /* 0x47006CA1: mov esi, dword ptr [esp + 8] */
   3367     PUSH32(esp, esi); /* 0x47006CA5: push esi */
   3368     RECOMP_ICALL(MEM32(0x470AC26C)); /* 0x47006CA6: call dword ptr [0x470ac26c] */
   3369     RECOMP_FLAGS_IN();
   3370     eax = eax + eax + 0x2; /* 0x47006CAC: lea eax, [eax + eax + 2] */
   3371     PUSH32(esp, eax); /* 0x47006CB0: push eax */
   3372     RECOMP_ICALL(0x470A33F2u); /* 0x47006CB1: call 0x470a33f2 */ /* not lifted */
   3373     RECOMP_FLAGS_IN();
   3374     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3375     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3376     esp = esp + 8; /* 0x47006CB6: add esp, 8 */
   3377     _flag_k = FK_ADD;
   3378     /* test eax, eax */ /* 0x47006CB9: test eax, eax */
   3379     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3380     _cf = 0;
   3381     _flag_k = FK_TEST;
   3382     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006CBF; /* 0x47006CBB: jne 0x47006cbf */
   3383 L_47006CBD:
   3384     esi = POP32_VAL(esp); /* 0x47006CBD: pop esi */
   3385     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006CBE: ret  */
   3386 L_47006CBF:
   3387     PUSH32(esp, esi); /* 0x47006CBF: push esi */
   3388     PUSH32(esp, eax); /* 0x47006CC0: push eax */
   3389     RECOMP_ICALL(MEM32(0x470AC3E0)); /* 0x47006CC1: call dword ptr [0x470ac3e0] */
   3390     RECOMP_FLAGS_IN();
   3391     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3392     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3393     esp = esp + 8; /* 0x47006CC7: add esp, 8 */
   3394     _flag_k = FK_ADD;
   3395     esi = POP32_VAL(esp); /* 0x47006CCA: pop esi */
   3396     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006CCB: ret  */
   3397     RECOMP_REGS_OUT();
   3398 }
   3399 
   3400 void sub_47006CD0(void) {
   3401     int _fpu_cmp = 0;
   3402     uint32_t _cf = 0;
   3403     int _df = 1;
   3404     uint32_t _flag_k = FK_NONE;
   3405     uint32_t _flag_a = 0, _flag_b = 0;
   3406     uint32_t _itail_tgt = 0;
   3407     RECOMP_REGS_LOCALS
   3408     RECOMP_ENTER(0x47006CD0u);
   3409 
   3410 L_47006CD0:
   3411     MEM32(ecx + 0x4) = 0xFFFFFFFFu; /* 0x47006CD0: mov dword ptr [ecx + 4], 0xffffffff */
   3412     MEM32(ecx) = 0; /* 0x47006CD7: mov dword ptr [ecx], 0 */
   3413     MEM32(ecx + 0x8) = 0; /* 0x47006CDD: mov dword ptr [ecx + 8], 0 */
   3414     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006CE4: ret  */
   3415     RECOMP_REGS_OUT();
   3416 }
   3417 
   3418 void sub_47006CF0(void) {
   3419     int _fpu_cmp = 0;
   3420     uint32_t _cf = 0;
   3421     int _df = 1;
   3422     uint32_t _flag_k = FK_NONE;
   3423     uint32_t _flag_a = 0, _flag_b = 0;
   3424     uint32_t _itail_tgt = 0;
   3425     RECOMP_REGS_LOCALS
   3426     RECOMP_ENTER(0x47006CF0u);
   3427 
   3428 L_47006CF0:
   3429     eax = MEM32(esp + 0x4); /* 0x47006CF0: mov eax, dword ptr [esp + 4] */
   3430     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   3431     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3432     ecx = ecx + 8; /* 0x47006CF4: add ecx, 8 */
   3433     _flag_k = FK_ADD;
   3434     PUSH32(esp, ecx); /* 0x47006CF7: push ecx */
   3435     PUSH32(esp, eax); /* 0x47006CF8: push eax */
   3436     RECOMP_ICALL(0x470A3290u); /* 0x47006CF9: call 0x470a3290 */ /* not lifted */
   3437     RECOMP_FLAGS_IN();
   3438     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006CFE: ret 4 */
   3439     RECOMP_REGS_OUT();
   3440 }
   3441 
   3442 void sub_47006D10(void) {
   3443     int _fpu_cmp = 0;
   3444     uint32_t _cf = 0;
   3445     int _df = 1;
   3446     uint32_t _flag_k = FK_NONE;
   3447     uint32_t _flag_a = 0, _flag_b = 0;
   3448     uint32_t _itail_tgt = 0;
   3449     RECOMP_REGS_LOCALS
   3450     RECOMP_ENTER(0x47006D10u);
   3451 
   3452 L_47006D10:
   3453     PUSH32(esp, ebx); /* 0x47006D10: push ebx */
   3454     ebx = MEM32(esp + 0x8); /* 0x47006D11: mov ebx, dword ptr [esp + 8] */
   3455     PUSH32(esp, esi); /* 0x47006D15: push esi */
   3456     PUSH32(esp, edi); /* 0x47006D16: push edi */
   3457     edi = ecx; /* 0x47006D17: mov edi, ecx */
   3458     esi = edi + 0x8; /* 0x47006D19: lea esi, [edi + 8] */
   3459     PUSH32(esp, esi); /* 0x47006D1C: push esi */
   3460     PUSH32(esp, ebx); /* 0x47006D1D: push ebx */
   3461     RECOMP_ICALL(0x470A3290u); /* 0x47006D1E: call 0x470a3290 */ /* not lifted */
   3462     RECOMP_FLAGS_IN();
   3463     /* test eax, eax */ /* 0x47006D23: test eax, eax */
   3464     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3465     _cf = 0;
   3466     _flag_k = FK_TEST;
   3467     if (TEST_NZ(_flag_a, _flag_b)) goto L_47006D4D; /* 0x47006D25: jne 0x47006d4d */
   3468 L_47006D27:
   3469     ecx = MEM32(esi); /* 0x47006D27: mov ecx, dword ptr [esi] */
   3470     /* test ecx, ecx */ /* 0x47006D29: test ecx, ecx */
   3471     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3472     _cf = 0;
   3473     _flag_k = FK_TEST;
   3474     if (TEST_Z(_flag_a, _flag_b)) goto L_47006D3C; /* 0x47006D2B: jbe 0x47006d3c */
   3475 L_47006D2D:
   3476     edx = edi + 0xC; /* 0x47006D2D: lea edx, [edi + 0xc] */
   3477 L_47006D30:
   3478     /* cmp MEM32(edx), ebx */ /* 0x47006D30: cmp dword ptr [edx], ebx */
   3479     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(ebx);
   3480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3481     _flag_k = FK_CMP;
   3482     if (CMP_EQ(_flag_a, _flag_b)) goto L_47006D3C; /* 0x47006D32: je 0x47006d3c */
   3483 L_47006D34:
   3484     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3485     eax = eax + 1; /* 0x47006D34: inc eax */
   3486     _flag_k = FK_INC;
   3487     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   3488     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3489     edx = edx + 4; /* 0x47006D35: add edx, 4 */
   3490     _flag_k = FK_ADD;
   3491     /* cmp eax, ecx */ /* 0x47006D38: cmp eax, ecx */
   3492     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3493     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3494     _flag_k = FK_CMP;
   3495     RECOMP_BACKEDGE();
   3496     if (CMP_B(_flag_a, _flag_b)) goto L_47006D30; /* 0x47006D3A: jb 0x47006d30 */
   3497 L_47006D3C:
   3498     /* cmp eax, ecx */ /* 0x47006D3C: cmp eax, ecx */
   3499     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3500     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3501     _flag_k = FK_CMP;
   3502     if (CMP_NE(_flag_a, _flag_b)) goto L_47006D4B; /* 0x47006D3E: jne 0x47006d4b */
   3503 L_47006D40:
   3504     /* cmp ecx, 0x40u */ /* 0x47006D40: cmp ecx, 0x40 */
   3505     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u);
   3506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3507     _flag_k = FK_CMP;
   3508     if (CMP_AE(_flag_a, _flag_b)) goto L_47006D4B; /* 0x47006D43: jae 0x47006d4b */
   3509 L_47006D45:
   3510     MEM32(edi + eax * 4 + 0xC) = ebx; /* 0x47006D45: mov dword ptr [edi + eax*4 + 0xc], ebx */
   3511     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(1);
   3512     MEM32(esi) = MEM32(esi) + 1; /* 0x47006D49: inc dword ptr [esi] */
   3513     _flag_k = FK_INC;
   3514 L_47006D4B:
   3515     _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(1);
   3516     MEM32(edi) = MEM32(edi) + 1; /* 0x47006D4B: inc dword ptr [edi] */
   3517     _flag_k = FK_INC;
   3518 L_47006D4D:
   3519     edi = POP32_VAL(esp); /* 0x47006D4D: pop edi */
   3520     esi = POP32_VAL(esp); /* 0x47006D4E: pop esi */
   3521     ebx = POP32_VAL(esp); /* 0x47006D4F: pop ebx */
   3522     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006D50: ret 4 */
   3523     RECOMP_REGS_OUT();
   3524 }
   3525 
   3526 void sub_47006D60(void) {
   3527     int _fpu_cmp = 0;
   3528     uint32_t _cf = 0;
   3529     int _df = 1;
   3530     uint32_t _flag_k = FK_NONE;
   3531     uint32_t _flag_a = 0, _flag_b = 0;
   3532     uint32_t _itail_tgt = 0;
   3533     RECOMP_REGS_LOCALS
   3534     RECOMP_ENTER(0x47006D60u);
   3535 
   3536 L_47006D60:
   3537     PUSH32(esp, ebx); /* 0x47006D60: push ebx */
   3538     PUSH32(esp, esi); /* 0x47006D61: push esi */
   3539     PUSH32(esp, edi); /* 0x47006D62: push edi */
   3540     edi = MEM32(esp + 0x10); /* 0x47006D63: mov edi, dword ptr [esp + 0x10] */
   3541     ebx = ecx; /* 0x47006D67: mov ebx, ecx */
   3542     esi = ebx + 0x8; /* 0x47006D69: lea esi, [ebx + 8] */
   3543     PUSH32(esp, esi); /* 0x47006D6C: push esi */
   3544     PUSH32(esp, edi); /* 0x47006D6D: push edi */
   3545     RECOMP_ICALL(0x470A3290u); /* 0x47006D6E: call 0x470a3290 */ /* not lifted */
   3546     RECOMP_FLAGS_IN();
   3547     /* test eax, eax */ /* 0x47006D73: test eax, eax */
   3548     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3549     _cf = 0;
   3550     _flag_k = FK_TEST;
   3551     if (TEST_Z(_flag_a, _flag_b)) goto L_47006DB6; /* 0x47006D75: je 0x47006db6 */
   3552 L_47006D77:
   3553     ecx = MEM32(esi); /* 0x47006D77: mov ecx, dword ptr [esi] */
   3554     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3555     eax = 0; /* 0x47006D79: xor eax, eax */
   3556     _cf = 0;
   3557     _flag_k = FK_TEST;
   3558     /* test ecx, ecx */ /* 0x47006D7B: test ecx, ecx */
   3559     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3560     _cf = 0;
   3561     _flag_k = FK_TEST;
   3562     if (TEST_Z(_flag_a, _flag_b)) goto L_47006DB4; /* 0x47006D7D: jbe 0x47006db4 */
   3563 L_47006D7F:
   3564     edx = ebx + 0xC; /* 0x47006D7F: lea edx, [ebx + 0xc] */
   3565 L_47006D82:
   3566     /* cmp MEM32(edx), edi */ /* 0x47006D82: cmp dword ptr [edx], edi */
   3567     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(edi);
   3568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3569     _flag_k = FK_CMP;
   3570     if (CMP_EQ(_flag_a, _flag_b)) goto L_47006D99; /* 0x47006D84: je 0x47006d99 */
   3571 L_47006D86:
   3572     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3573     eax = eax + 1; /* 0x47006D86: inc eax */
   3574     _flag_k = FK_INC;
   3575     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   3576     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3577     edx = edx + 4; /* 0x47006D87: add edx, 4 */
   3578     _flag_k = FK_ADD;
   3579     /* cmp eax, ecx */ /* 0x47006D8A: cmp eax, ecx */
   3580     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3581     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3582     _flag_k = FK_CMP;
   3583     RECOMP_BACKEDGE();
   3584     if (CMP_B(_flag_a, _flag_b)) goto L_47006D82; /* 0x47006D8C: jb 0x47006d82 */
   3585 L_47006D8E:
   3586     eax = MEM32(ebx); /* 0x47006D8E: mov eax, dword ptr [ebx] */
   3587     edi = POP32_VAL(esp); /* 0x47006D90: pop edi */
   3588     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3589     eax = eax - 1; /* 0x47006D91: dec eax */
   3590     _flag_k = FK_DEC;
   3591     esi = POP32_VAL(esp); /* 0x47006D92: pop esi */
   3592     MEM32(ebx) = eax; /* 0x47006D93: mov dword ptr [ebx], eax */
   3593     ebx = POP32_VAL(esp); /* 0x47006D95: pop ebx */
   3594     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006D96: ret 4 */
   3595 L_47006D99:
   3596     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3597     ecx = ecx - 1; /* 0x47006D99: dec ecx */
   3598     _flag_k = FK_DEC;
   3599     /* cmp eax, ecx */ /* 0x47006D9A: cmp eax, ecx */
   3600     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3602     _flag_k = FK_CMP;
   3603     if (CMP_AE(_flag_a, _flag_b)) goto L_47006DB2; /* 0x47006D9C: jae 0x47006db2 */
   3604 L_47006D9E:
   3605     ecx = ebx + eax * 4 + 0xC; /* 0x47006D9E: lea ecx, [ebx + eax*4 + 0xc] */
   3606 L_47006DA2:
   3607     edx = MEM32(ecx + 0x4); /* 0x47006DA2: mov edx, dword ptr [ecx + 4] */
   3608     MEM32(ecx) = edx; /* 0x47006DA5: mov dword ptr [ecx], edx */
   3609     edx = MEM32(esi); /* 0x47006DA7: mov edx, dword ptr [esi] */
   3610     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3611     eax = eax + 1; /* 0x47006DA9: inc eax */
   3612     _flag_k = FK_INC;
   3613     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   3614     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3615     ecx = ecx + 4; /* 0x47006DAA: add ecx, 4 */
   3616     _flag_k = FK_ADD;
   3617     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3618     edx = edx - 1; /* 0x47006DAD: dec edx */
   3619     _flag_k = FK_DEC;
   3620     /* cmp eax, edx */ /* 0x47006DAE: cmp eax, edx */
   3621     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3623     _flag_k = FK_CMP;
   3624     RECOMP_BACKEDGE();
   3625     if (CMP_B(_flag_a, _flag_b)) goto L_47006DA2; /* 0x47006DB0: jb 0x47006da2 */
   3626 L_47006DB2:
   3627     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(1);
   3628     MEM32(esi) = MEM32(esi) - 1; /* 0x47006DB2: dec dword ptr [esi] */
   3629     _flag_k = FK_DEC;
   3630 L_47006DB4:
   3631     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(1);
   3632     MEM32(ebx) = MEM32(ebx) - 1; /* 0x47006DB4: dec dword ptr [ebx] */
   3633     _flag_k = FK_DEC;
   3634 L_47006DB6:
   3635     edi = POP32_VAL(esp); /* 0x47006DB6: pop edi */
   3636     esi = POP32_VAL(esp); /* 0x47006DB7: pop esi */
   3637     ebx = POP32_VAL(esp); /* 0x47006DB8: pop ebx */
   3638     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006DB9: ret 4 */
   3639     RECOMP_REGS_OUT();
   3640 }
   3641 
   3642 void sub_47006DC0(void) {
   3643     int _fpu_cmp = 0;
   3644     uint32_t _cf = 0;
   3645     int _df = 1;
   3646     uint32_t _flag_k = FK_NONE;
   3647     uint32_t _flag_a = 0, _flag_b = 0;
   3648     uint32_t _itail_tgt = 0;
   3649     RECOMP_REGS_LOCALS
   3650     RECOMP_ENTER(0x47006DC0u);
   3651 
   3652 L_47006DC0:
   3653     /* cmp MEM32(ecx), 0 */ /* 0x47006DC0: cmp dword ptr [ecx], 0 */
   3654     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0);
   3655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3656     _flag_k = FK_CMP;
   3657     if (CMP_LE(_flag_a, _flag_b)) goto L_47006DC9; /* 0x47006DC3: jle 0x47006dc9 */
   3658 L_47006DC5:
   3659     eax = ecx + 0x8; /* 0x47006DC5: lea eax, [ecx + 8] */
   3660     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006DC8: ret  */
   3661 L_47006DC9:
   3662     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3663     eax = 0; /* 0x47006DC9: xor eax, eax */
   3664     _cf = 0;
   3665     _flag_k = FK_TEST;
   3666     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006DCB: ret  */
   3667     RECOMP_REGS_OUT();
   3668 }
   3669 
   3670 void sub_47006DD0(void) {
   3671     int _fpu_cmp = 0;
   3672     uint32_t _cf = 0;
   3673     int _df = 1;
   3674     uint32_t _flag_k = FK_NONE;
   3675     uint32_t _flag_a = 0, _flag_b = 0;
   3676     uint32_t _itail_tgt = 0;
   3677     RECOMP_REGS_LOCALS
   3678     RECOMP_ENTER(0x47006DD0u);
   3679 
   3680 L_47006DD0:
   3681     MEM32(0x4710DDFC) = 0x471049CCu; /* 0x47006DD0: mov dword ptr [0x4710ddfc], 0x471049cc */
   3682     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006DDA: ret  */
   3683     RECOMP_REGS_OUT();
   3684 }
   3685 
   3686 void sub_47006DE0(void) {
   3687     int _fpu_cmp = 0;
   3688     uint32_t _cf = 0;
   3689     int _df = 1;
   3690     uint32_t _flag_k = FK_NONE;
   3691     uint32_t _flag_a = 0, _flag_b = 0;
   3692     uint32_t _itail_tgt = 0;
   3693     RECOMP_REGS_LOCALS
   3694     RECOMP_ENTER(0x47006DE0u);
   3695 
   3696 L_47006DE0:
   3697     eax = ecx; /* 0x47006DE0: mov eax, ecx */
   3698     ecx = MEM32(esp + 0x4); /* 0x47006DE2: mov ecx, dword ptr [esp + 4] */
   3699     edx = MEM32(ecx + 0x4); /* 0x47006DE6: mov edx, dword ptr [ecx + 4] */
   3700     MEM32(eax + 0x4) = edx; /* 0x47006DE9: mov dword ptr [eax + 4], edx */
   3701     ecx = MEM32(ecx + 0x8); /* 0x47006DEC: mov ecx, dword ptr [ecx + 8] */
   3702     MEM32(eax + 0x8) = ecx; /* 0x47006DEF: mov dword ptr [eax + 8], ecx */
   3703     MEM32(eax) = 0x470AC510u; /* 0x47006DF2: mov dword ptr [eax], 0x470ac510 */
   3704     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006DF8: ret 4 */
   3705     RECOMP_REGS_OUT();
   3706 }
   3707 
   3708 void sub_47006E00(void) {
   3709     int _fpu_cmp = 0;
   3710     uint32_t _cf = 0;
   3711     int _df = 1;
   3712     uint32_t _flag_k = FK_NONE;
   3713     uint32_t _flag_a = 0, _flag_b = 0;
   3714     uint32_t _itail_tgt = 0;
   3715     RECOMP_REGS_LOCALS
   3716     RECOMP_ENTER(0x47006E00u);
   3717 
   3718 L_47006E00:
   3719     PUSH32(esp, 0xFFFFFFFFu); /* 0x47006E00: push -1 */
   3720     PUSH32(esp, 0xFFFFFFFFu); /* 0x47006E02: push -1 */
   3721     RECOMP_ICALL(0x47014F50u); /* 0x47006E04: call 0x47014f50 */ /* not lifted */
   3722     RECOMP_FLAGS_IN();
   3723     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006E09: ret  */
   3724     RECOMP_REGS_OUT();
   3725 }
   3726 
   3727 void sub_47006E10(void) {
   3728     int _fpu_cmp = 0;
   3729     uint32_t _cf = 0;
   3730     int _df = 1;
   3731     uint32_t _flag_k = FK_NONE;
   3732     uint32_t _flag_a = 0, _flag_b = 0;
   3733     uint32_t _itail_tgt = 0;
   3734     RECOMP_REGS_LOCALS
   3735     RECOMP_ENTER(0x47006E10u);
   3736 
   3737 L_47006E10:
   3738     PUSH32(esp, ebx); /* 0x47006E10: push ebx */
   3739     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47006E11: mov bl, byte ptr [esp + 8] */
   3740     /* test LO8(ebx), 2 */ /* 0x47006E15: test bl, 2 */
   3741     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   3742     _cf = 0;
   3743     _flag_k = FK_NARROW(FK_TEST, 24);
   3744     PUSH32(esp, esi); /* 0x47006E18: push esi */
   3745     esi = ecx; /* 0x47006E19: mov esi, ecx */
   3746     if (TEST_Z(_flag_a, _flag_b)) goto L_47006E48; /* 0x47006E1B: je 0x47006e48 */
   3747 L_47006E1D:
   3748     eax = MEM32(esi + (-0x4)); /* 0x47006E1D: mov eax, dword ptr [esi - 4] */
   3749     PUSH32(esp, edi); /* 0x47006E20: push edi */
   3750     PUSH32(esp, 0x47014F70u); /* 0x47006E21: push 0x47014f70 */
   3751     edi = esi + (-0x4); /* 0x47006E26: lea edi, [esi - 4] */
   3752     PUSH32(esp, eax); /* 0x47006E29: push eax */
   3753     PUSH32(esp, 0xCu); /* 0x47006E2A: push 0xc */
   3754     PUSH32(esp, esi); /* 0x47006E2C: push esi */
   3755     RECOMP_ICALL(0x470A32EBu); /* 0x47006E2D: call 0x470a32eb */ /* not lifted */
   3756     RECOMP_FLAGS_IN();
   3757     /* test LO8(ebx), 1 */ /* 0x47006E32: test bl, 1 */
   3758     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3759     _cf = 0;
   3760     _flag_k = FK_NARROW(FK_TEST, 24);
   3761     if (TEST_Z(_flag_a, _flag_b)) goto L_47006E40; /* 0x47006E35: je 0x47006e40 */
   3762 L_47006E37:
   3763     PUSH32(esp, edi); /* 0x47006E37: push edi */
   3764     RECOMP_ICALL(0x470A32A2u); /* 0x47006E38: call 0x470a32a2 */ /* not lifted */
   3765     RECOMP_FLAGS_IN();
   3766     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3767     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3768     esp = esp + 4; /* 0x47006E3D: add esp, 4 */
   3769     _flag_k = FK_ADD;
   3770 L_47006E40:
   3771     eax = edi; /* 0x47006E40: mov eax, edi */
   3772     edi = POP32_VAL(esp); /* 0x47006E42: pop edi */
   3773     esi = POP32_VAL(esp); /* 0x47006E43: pop esi */
   3774     ebx = POP32_VAL(esp); /* 0x47006E44: pop ebx */
   3775     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006E45: ret 4 */
   3776 L_47006E48:
   3777     ecx = esi; /* 0x47006E48: mov ecx, esi */
   3778     RECOMP_ICALL(0x47014F70u); /* 0x47006E4A: call 0x47014f70 */ /* not lifted */
   3779     RECOMP_FLAGS_IN();
   3780     /* test LO8(ebx), 1 */ /* 0x47006E4F: test bl, 1 */
   3781     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3782     _cf = 0;
   3783     _flag_k = FK_NARROW(FK_TEST, 24);
   3784     if (TEST_Z(_flag_a, _flag_b)) goto L_47006E5D; /* 0x47006E52: je 0x47006e5d */
   3785 L_47006E54:
   3786     PUSH32(esp, esi); /* 0x47006E54: push esi */
   3787     RECOMP_ICALL(0x470A32A2u); /* 0x47006E55: call 0x470a32a2 */ /* not lifted */
   3788     RECOMP_FLAGS_IN();
   3789     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3790     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3791     esp = esp + 4; /* 0x47006E5A: add esp, 4 */
   3792     _flag_k = FK_ADD;
   3793 L_47006E5D:
   3794     eax = esi; /* 0x47006E5D: mov eax, esi */
   3795     esi = POP32_VAL(esp); /* 0x47006E5F: pop esi */
   3796     ebx = POP32_VAL(esp); /* 0x47006E60: pop ebx */
   3797     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006E61: ret 4 */
   3798     RECOMP_REGS_OUT();
   3799 }
   3800 
   3801 void sub_47006E70(void) {
   3802     int _fpu_cmp = 0;
   3803     uint32_t _cf = 0;
   3804     int _df = 1;
   3805     uint32_t _flag_k = FK_NONE;
   3806     uint32_t _flag_a = 0, _flag_b = 0;
   3807     uint32_t _itail_tgt = 0;
   3808     RECOMP_REGS_LOCALS
   3809     RECOMP_ENTER(0x47006E70u);
   3810 
   3811 L_47006E70:
   3812     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47006E70: ret 8 */
   3813     RECOMP_REGS_OUT();
   3814 }
   3815 
   3816 void sub_47006E80(void) {
   3817     int _fpu_cmp = 0;
   3818     uint32_t _cf = 0;
   3819     int _df = 1;
   3820     uint32_t _flag_k = FK_NONE;
   3821     uint32_t _flag_a = 0, _flag_b = 0;
   3822     uint32_t _itail_tgt = 0;
   3823     RECOMP_REGS_LOCALS
   3824     RECOMP_ENTER(0x47006E80u);
   3825 
   3826 L_47006E80:
   3827     eax = MEM32(esp + 0x4); /* 0x47006E80: mov eax, dword ptr [esp + 4] */
   3828     edx = MEM32(eax + 0x4); /* 0x47006E84: mov edx, dword ptr [eax + 4] */
   3829     /* cmp edx, MEM32(ecx + 0x4) */ /* 0x47006E87: cmp edx, dword ptr [ecx + 4] */
   3830     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3832     _flag_k = FK_CMP;
   3833     if (CMP_NE(_flag_a, _flag_b)) goto L_47006E9C; /* 0x47006E8A: jne 0x47006e9c */
   3834 L_47006E8C:
   3835     eax = MEM32(eax + 0x8); /* 0x47006E8C: mov eax, dword ptr [eax + 8] */
   3836     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x47006E8F: cmp eax, dword ptr [ecx + 8] */
   3837     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3838     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3839     _flag_k = FK_CMP;
   3840     if (CMP_NE(_flag_a, _flag_b)) goto L_47006E9C; /* 0x47006E92: jne 0x47006e9c */
   3841 L_47006E94:
   3842     eax = 1; /* 0x47006E94: mov eax, 1 */
   3843     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006E99: ret 4 */
   3844 L_47006E9C:
   3845     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3846     eax = 0; /* 0x47006E9C: xor eax, eax */
   3847     _cf = 0;
   3848     _flag_k = FK_TEST;
   3849     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006E9E: ret 4 */
   3850     RECOMP_REGS_OUT();
   3851 }
   3852 
   3853 void sub_47006EB0(void) {
   3854     int _fpu_cmp = 0;
   3855     uint32_t _cf = 0;
   3856     int _df = 1;
   3857     uint32_t _flag_k = FK_NONE;
   3858     uint32_t _flag_a = 0, _flag_b = 0;
   3859     uint32_t _itail_tgt = 0;
   3860     RECOMP_REGS_LOCALS
   3861     RECOMP_ENTER(0x47006EB0u);
   3862 
   3863 L_47006EB0:
   3864     eax = MEM32(esp + 0x4); /* 0x47006EB0: mov eax, dword ptr [esp + 4] */
   3865     edx = MEM32(eax + 0x4); /* 0x47006EB4: mov edx, dword ptr [eax + 4] */
   3866     /* cmp edx, MEM32(ecx + 0x4) */ /* 0x47006EB7: cmp edx, dword ptr [ecx + 4] */
   3867     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3869     _flag_k = FK_CMP;
   3870     if (CMP_NE(_flag_a, _flag_b)) goto L_47006EC9; /* 0x47006EBA: jne 0x47006ec9 */
   3871 L_47006EBC:
   3872     eax = MEM32(eax + 0x8); /* 0x47006EBC: mov eax, dword ptr [eax + 8] */
   3873     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x47006EBF: cmp eax, dword ptr [ecx + 8] */
   3874     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3875     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3876     _flag_k = FK_CMP;
   3877     if (CMP_NE(_flag_a, _flag_b)) goto L_47006EC9; /* 0x47006EC2: jne 0x47006ec9 */
   3878 L_47006EC4:
   3879     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3880     eax = 0; /* 0x47006EC4: xor eax, eax */
   3881     _cf = 0;
   3882     _flag_k = FK_TEST;
   3883     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006EC6: ret 4 */
   3884 L_47006EC9:
   3885     eax = 1; /* 0x47006EC9: mov eax, 1 */
   3886     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006ECE: ret 4 */
   3887     RECOMP_REGS_OUT();
   3888 }
   3889 
   3890 void sub_47006EE0(void) {
   3891     int _fpu_cmp = 0;
   3892     uint32_t _cf = 0;
   3893     int _df = 1;
   3894     uint32_t _flag_k = FK_NONE;
   3895     uint32_t _flag_a = 0, _flag_b = 0;
   3896     uint32_t _itail_tgt = 0;
   3897     RECOMP_REGS_LOCALS
   3898     RECOMP_ENTER(0x47006EE0u);
   3899 
   3900 L_47006EE0:
   3901     eax = ecx; /* 0x47006EE0: mov eax, ecx */
   3902     ecx = MEM32(esp + 0x4); /* 0x47006EE2: mov ecx, dword ptr [esp + 4] */
   3903     edx = MEM32(ecx + 0x4); /* 0x47006EE6: mov edx, dword ptr [ecx + 4] */
   3904     MEM32(eax + 0x4) = edx; /* 0x47006EE9: mov dword ptr [eax + 4], edx */
   3905     edx = MEM32(ecx + 0x8); /* 0x47006EEC: mov edx, dword ptr [ecx + 8] */
   3906     MEM32(eax + 0x8) = edx; /* 0x47006EEF: mov dword ptr [eax + 8], edx */
   3907     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   3908     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3909     ecx = ecx + 0xCu; /* 0x47006EF2: add ecx, 0xc */
   3910     _flag_k = FK_ADD;
   3911     PUSH32(esp, esi); /* 0x47006EF5: push esi */
   3912     esi = MEM32(ecx); /* 0x47006EF6: mov esi, dword ptr [ecx] */
   3913     edx = eax + 0xC; /* 0x47006EF8: lea edx, [eax + 0xc] */
   3914     MEM32(edx) = esi; /* 0x47006EFB: mov dword ptr [edx], esi */
   3915     esi = MEM32(ecx + 0x4); /* 0x47006EFD: mov esi, dword ptr [ecx + 4] */
   3916     MEM32(edx + 0x4) = esi; /* 0x47006F00: mov dword ptr [edx + 4], esi */
   3917     esi = MEM32(ecx + 0x8); /* 0x47006F03: mov esi, dword ptr [ecx + 8] */
   3918     MEM32(edx + 0x8) = esi; /* 0x47006F06: mov dword ptr [edx + 8], esi */
   3919     ecx = MEM32(ecx + 0xC); /* 0x47006F09: mov ecx, dword ptr [ecx + 0xc] */
   3920     MEM32(edx + 0xC) = ecx; /* 0x47006F0C: mov dword ptr [edx + 0xc], ecx */
   3921     esi = POP32_VAL(esp); /* 0x47006F0F: pop esi */
   3922     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006F10: ret 4 */
   3923     RECOMP_REGS_OUT();
   3924 }
   3925 
   3926 void sub_47006F20(void) {
   3927     int _fpu_cmp = 0;
   3928     uint32_t _cf = 0;
   3929     int _df = 1;
   3930     uint32_t _flag_k = FK_NONE;
   3931     uint32_t _flag_a = 0, _flag_b = 0;
   3932     uint32_t _itail_tgt = 0;
   3933     RECOMP_REGS_LOCALS
   3934     RECOMP_ENTER(0x47006F20u);
   3935 
   3936 L_47006F20:
   3937     PUSH32(esp, ebx); /* 0x47006F20: push ebx */
   3938     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47006F21: mov bl, byte ptr [esp + 8] */
   3939     /* test LO8(ebx), 2 */ /* 0x47006F25: test bl, 2 */
   3940     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   3941     _cf = 0;
   3942     _flag_k = FK_NARROW(FK_TEST, 24);
   3943     PUSH32(esp, esi); /* 0x47006F28: push esi */
   3944     esi = ecx; /* 0x47006F29: mov esi, ecx */
   3945     if (TEST_Z(_flag_a, _flag_b)) goto L_47006F58; /* 0x47006F2B: je 0x47006f58 */
   3946 L_47006F2D:
   3947     eax = MEM32(esi + (-0x4)); /* 0x47006F2D: mov eax, dword ptr [esi - 4] */
   3948     PUSH32(esp, edi); /* 0x47006F30: push edi */
   3949     PUSH32(esp, 0x4707CCD0u); /* 0x47006F31: push 0x4707ccd0 */
   3950     edi = esi + (-0x4); /* 0x47006F36: lea edi, [esi - 4] */
   3951     PUSH32(esp, eax); /* 0x47006F39: push eax */
   3952     PUSH32(esp, 0x1Cu); /* 0x47006F3A: push 0x1c */
   3953     PUSH32(esp, esi); /* 0x47006F3C: push esi */
   3954     RECOMP_ICALL(0x470A32EBu); /* 0x47006F3D: call 0x470a32eb */ /* not lifted */
   3955     RECOMP_FLAGS_IN();
   3956     /* test LO8(ebx), 1 */ /* 0x47006F42: test bl, 1 */
   3957     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3958     _cf = 0;
   3959     _flag_k = FK_NARROW(FK_TEST, 24);
   3960     if (TEST_Z(_flag_a, _flag_b)) goto L_47006F50; /* 0x47006F45: je 0x47006f50 */
   3961 L_47006F47:
   3962     PUSH32(esp, edi); /* 0x47006F47: push edi */
   3963     RECOMP_ICALL(0x470A32A2u); /* 0x47006F48: call 0x470a32a2 */ /* not lifted */
   3964     RECOMP_FLAGS_IN();
   3965     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3966     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3967     esp = esp + 4; /* 0x47006F4D: add esp, 4 */
   3968     _flag_k = FK_ADD;
   3969 L_47006F50:
   3970     eax = edi; /* 0x47006F50: mov eax, edi */
   3971     edi = POP32_VAL(esp); /* 0x47006F52: pop edi */
   3972     esi = POP32_VAL(esp); /* 0x47006F53: pop esi */
   3973     ebx = POP32_VAL(esp); /* 0x47006F54: pop ebx */
   3974     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006F55: ret 4 */
   3975 L_47006F58:
   3976     ecx = esi; /* 0x47006F58: mov ecx, esi */
   3977     RECOMP_ICALL(0x4707CCD0u); /* 0x47006F5A: call 0x4707ccd0 */ /* not lifted */
   3978     RECOMP_FLAGS_IN();
   3979     /* test LO8(ebx), 1 */ /* 0x47006F5F: test bl, 1 */
   3980     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3981     _cf = 0;
   3982     _flag_k = FK_NARROW(FK_TEST, 24);
   3983     if (TEST_Z(_flag_a, _flag_b)) goto L_47006F6D; /* 0x47006F62: je 0x47006f6d */
   3984 L_47006F64:
   3985     PUSH32(esp, esi); /* 0x47006F64: push esi */
   3986     RECOMP_ICALL(0x470A32A2u); /* 0x47006F65: call 0x470a32a2 */ /* not lifted */
   3987     RECOMP_FLAGS_IN();
   3988     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3989     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3990     esp = esp + 4; /* 0x47006F6A: add esp, 4 */
   3991     _flag_k = FK_ADD;
   3992 L_47006F6D:
   3993     eax = esi; /* 0x47006F6D: mov eax, esi */
   3994     esi = POP32_VAL(esp); /* 0x47006F6F: pop esi */
   3995     ebx = POP32_VAL(esp); /* 0x47006F70: pop ebx */
   3996     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47006F71: ret 4 */
   3997     RECOMP_REGS_OUT();
   3998 }
   3999 
   4000 void sub_47006F80(void) {
   4001     int _fpu_cmp = 0;
   4002     uint32_t _cf = 0;
   4003     int _df = 1;
   4004     uint32_t _flag_k = FK_NONE;
   4005     uint32_t _flag_a = 0, _flag_b = 0;
   4006     uint32_t _itail_tgt = 0;
   4007     RECOMP_REGS_LOCALS
   4008     RECOMP_ENTER(0x47006F80u);
   4009 
   4010 L_47006F80:
   4011     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4012     eax = 0; /* 0x47006F80: xor eax, eax */
   4013     _cf = 0;
   4014     _flag_k = FK_TEST;
   4015     SET_LO16(eax, MEM16(ecx + 0xE)); /* 0x47006F82: mov ax, word ptr [ecx + 0xe] */
   4016     PUSH32(esp, eax); /* 0x47006F86: push eax */
   4017     RECOMP_ICALL(MEM32(0x470AC460)); /* 0x47006F87: call dword ptr [0x470ac460] */
   4018     RECOMP_FLAGS_IN();
   4019     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006F8D: ret  */
   4020     RECOMP_REGS_OUT();
   4021 }
   4022 
   4023 void sub_47006F90(void) {
   4024     int _fpu_cmp = 0;
   4025     uint32_t _cf = 0;
   4026     int _df = 1;
   4027     uint32_t _flag_k = FK_NONE;
   4028     uint32_t _flag_a = 0, _flag_b = 0;
   4029     uint32_t _itail_tgt = 0;
   4030     RECOMP_REGS_LOCALS
   4031     RECOMP_ENTER(0x47006F90u);
   4032 
   4033 L_47006F90:
   4034     ecx = MEM32(ecx + 0x10); /* 0x47006F90: mov ecx, dword ptr [ecx + 0x10] */
   4035     PUSH32(esp, ecx); /* 0x47006F93: push ecx */
   4036     RECOMP_ICALL(MEM32(0x470AC42C)); /* 0x47006F94: call dword ptr [0x470ac42c] */
   4037     RECOMP_FLAGS_IN();
   4038     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006F9A: ret  */
   4039     RECOMP_REGS_OUT();
   4040 }
   4041 
   4042 void sub_47006FA0(void) {
   4043     int _fpu_cmp = 0;
   4044     uint32_t _cf = 0;
   4045     int _df = 1;
   4046     uint32_t _flag_k = FK_NONE;
   4047     uint32_t _flag_a = 0, _flag_b = 0;
   4048     uint32_t _itail_tgt = 0;
   4049     RECOMP_REGS_LOCALS
   4050     RECOMP_ENTER(0x47006FA0u);
   4051 
   4052 L_47006FA0:
   4053     eax = MEM32(ecx + 0x10); /* 0x47006FA0: mov eax, dword ptr [ecx + 0x10] */
   4054     PUSH32(esp, eax); /* 0x47006FA3: push eax */
   4055     RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47006FA4: call dword ptr [0x470ac4b0] */
   4056     RECOMP_FLAGS_IN();
   4057     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006FAA: ret  */
   4058     RECOMP_REGS_OUT();
   4059 }
   4060 
   4061 void sub_47006FB0(void) {
   4062     int _fpu_cmp = 0;
   4063     uint32_t _cf = 0;
   4064     int _df = 1;
   4065     uint32_t _flag_k = FK_NONE;
   4066     uint32_t _flag_a = 0, _flag_b = 0;
   4067     uint32_t _itail_tgt = 0;
   4068     RECOMP_REGS_LOCALS
   4069     RECOMP_ENTER(0x47006FB0u);
   4070 
   4071 L_47006FB0:
   4072     PUSH32(esp, esi); /* 0x47006FB0: push esi */
   4073     esi = ecx; /* 0x47006FB1: mov esi, ecx */
   4074     eax = MEM32(esi + 0x10); /* 0x47006FB3: mov eax, dword ptr [esi + 0x10] */
   4075     PUSH32(esp, edi); /* 0x47006FB6: push edi */
   4076     PUSH32(esp, eax); /* 0x47006FB7: push eax */
   4077     RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47006FB8: call dword ptr [0x470ac4b0] */
   4078     RECOMP_FLAGS_IN();
   4079     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4080     ecx = 0; /* 0x47006FBE: xor ecx, ecx */
   4081     _cf = 0;
   4082     _flag_k = FK_TEST;
   4083     SET_LO16(ecx, MEM16(esi + 0xE)); /* 0x47006FC0: mov cx, word ptr [esi + 0xe] */
   4084     edi = eax; /* 0x47006FC4: mov edi, eax */
   4085     PUSH32(esp, ecx); /* 0x47006FC6: push ecx */
   4086     RECOMP_ICALL(MEM32(0x470AC460)); /* 0x47006FC7: call dword ptr [0x470ac460] */
   4087     RECOMP_FLAGS_IN();
   4088     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
   4089     eax = eax & 0xFFFFu; /* 0x47006FCD: and eax, 0xffff */
   4090     _cf = 0;
   4091     _flag_k = FK_TEST;
   4092     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4093     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4094     eax = eax + edi; /* 0x47006FD2: add eax, edi */
   4095     _flag_k = FK_ADD;
   4096     edi = POP32_VAL(esp); /* 0x47006FD4: pop edi */
   4097     esi = POP32_VAL(esp); /* 0x47006FD5: pop esi */
   4098     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006FD6: ret  */
   4099     RECOMP_REGS_OUT();
   4100 }
   4101 
   4102 void sub_47006FE0(void) {
   4103     int _fpu_cmp = 0;
   4104     uint32_t _cf = 0;
   4105     int _df = 1;
   4106     uint32_t _flag_k = FK_NONE;
   4107     uint32_t _flag_a = 0, _flag_b = 0;
   4108     uint32_t _itail_tgt = 0;
   4109     RECOMP_REGS_LOCALS
   4110     RECOMP_ENTER(0x47006FE0u);
   4111 
   4112 L_47006FE0:
   4113     eax = MEM32(esp + 0x8); /* 0x47006FE0: mov eax, dword ptr [esp + 8] */
   4114     ecx = MEM32(esp + 0x4); /* 0x47006FE4: mov ecx, dword ptr [esp + 4] */
   4115     PUSH32(esp, eax); /* 0x47006FE8: push eax */
   4116     PUSH32(esp, 0x47055D30u); /* 0x47006FE9: push 0x47055d30 */
   4117     PUSH32(esp, ecx); /* 0x47006FEE: push ecx */
   4118     RECOMP_ICALL(0x470527D0u); /* 0x47006FEF: call 0x470527d0 */ /* not lifted */
   4119     RECOMP_FLAGS_IN();
   4120     ecx = eax; /* 0x47006FF4: mov ecx, eax */
   4121     RECOMP_ICALL(0x470528D0u); /* 0x47006FF6: call 0x470528d0 */ /* not lifted */
   4122     RECOMP_FLAGS_IN();
   4123     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47006FFB: ret  */
   4124     RECOMP_REGS_OUT();
   4125 }
   4126 
   4127 void sub_47007000(void) {
   4128     int _fpu_cmp = 0;
   4129     uint32_t _cf = 0;
   4130     int _df = 1;
   4131     uint32_t _flag_k = FK_NONE;
   4132     uint32_t _flag_a = 0, _flag_b = 0;
   4133     uint32_t _itail_tgt = 0;
   4134     RECOMP_REGS_LOCALS
   4135     RECOMP_ENTER(0x47007000u);
   4136 
   4137 L_47007000:
   4138     eax = MEM32(esp + 0xC); /* 0x47007000: mov eax, dword ptr [esp + 0xc] */
   4139     ecx = MEM32(esp + 0x8); /* 0x47007004: mov ecx, dword ptr [esp + 8] */
   4140     edx = MEM32(esp + 0x4); /* 0x47007008: mov edx, dword ptr [esp + 4] */
   4141     PUSH32(esp, eax); /* 0x4700700C: push eax */
   4142     PUSH32(esp, ecx); /* 0x4700700D: push ecx */
   4143     PUSH32(esp, edx); /* 0x4700700E: push edx */
   4144     RECOMP_ICALL(0x470527D0u); /* 0x4700700F: call 0x470527d0 */ /* not lifted */
   4145     RECOMP_FLAGS_IN();
   4146     ecx = eax; /* 0x47007014: mov ecx, eax */
   4147     RECOMP_ICALL(0x470528D0u); /* 0x47007016: call 0x470528d0 */ /* not lifted */
   4148     RECOMP_FLAGS_IN();
   4149     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700701B: ret  */
   4150     RECOMP_REGS_OUT();
   4151 }
   4152 
   4153 void sub_47007020(void) {
   4154     int _fpu_cmp = 0;
   4155     uint32_t _cf = 0;
   4156     int _df = 1;
   4157     uint32_t _flag_k = FK_NONE;
   4158     uint32_t _flag_a = 0, _flag_b = 0;
   4159     uint32_t _itail_tgt = 0;
   4160     RECOMP_REGS_LOCALS
   4161     RECOMP_ENTER(0x47007020u);
   4162 
   4163 L_47007020:
   4164     goto L_470588F0; /* 0x47007020: jmp 0x470588f0 */
   4165 L_470588F0:
   4166     RECOMP_ICALL(0x47058910u); /* 0x470588F0: call 0x47058910 */ /* not lifted */
   4167     RECOMP_FLAGS_IN();
   4168     eax = MEM32(eax + 0x10); /* 0x470588F5: mov eax, dword ptr [eax + 0x10] */
   4169     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470588F8: ret  */
   4170     RECOMP_REGS_OUT();
   4171 }
   4172 
   4173 void sub_47007030(void) {
   4174     int _fpu_cmp = 0;
   4175     uint32_t _cf = 0;
   4176     int _df = 1;
   4177     uint32_t _flag_k = FK_NONE;
   4178     uint32_t _flag_a = 0, _flag_b = 0;
   4179     uint32_t _itail_tgt = 0;
   4180     RECOMP_REGS_LOCALS
   4181     RECOMP_ENTER(0x47007030u);
   4182 
   4183 L_47007030:
   4184     MEM32(0x4710DCA4) = 0x47104A00u; /* 0x47007030: mov dword ptr [0x4710dca4], 0x47104a00 */
   4185     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700703A: ret  */
   4186     RECOMP_REGS_OUT();
   4187 }