aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0038.c (550874B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_470537E0(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(0x470537E0u);
     13 
     14 L_470537E0:
     15     MEM32(0x4710E8E4) = 0x47104BD4u; /* 0x470537E0: mov dword ptr [0x4710e8e4], 0x47104bd4 */
     16     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470537EA: ret  */
     17     RECOMP_REGS_OUT();
     18 }
     19 
     20 void sub_470537F0(void) {
     21     int _fpu_cmp = 0;
     22     uint32_t _cf = 0;
     23     int _df = 1;
     24     uint32_t _flag_k = FK_NONE;
     25     uint32_t _flag_a = 0, _flag_b = 0;
     26     uint32_t _itail_tgt = 0;
     27     RECOMP_REGS_LOCALS
     28     RECOMP_ENTER(0x470537F0u);
     29 
     30 L_470537F0:
     31     PUSH32(esp, esi); /* 0x470537F0: push esi */
     32     esi = ecx; /* 0x470537F1: mov esi, ecx */
     33     MEM32(esi) = 0; /* 0x470537F3: mov dword ptr [esi], 0 */
     34     MEM32(esi + 0x4) = 0xFF0u; /* 0x470537F9: mov dword ptr [esi + 4], 0xff0 */
     35     RECOMP_ICALL(0x4703DAC0u); /* 0x47053800: call 0x4703dac0 */ /* not lifted */
     36     RECOMP_FLAGS_IN();
     37     /* test eax, eax */ /* 0x47053805: test eax, eax */
     38     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     39     _cf = 0;
     40     _flag_k = FK_TEST;
     41     MEM32(esi) = eax; /* 0x47053807: mov dword ptr [esi], eax */
     42     if (TEST_NZ(_flag_a, _flag_b)) goto L_47053819; /* 0x47053809: jne 0x47053819 */
     43 L_4705380B:
     44     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705380B: call dword ptr [0x470ac3c8] */
     45     RECOMP_FLAGS_IN();
     46     MEM32(eax) = 0xCu; /* 0x47053811: mov dword ptr [eax], 0xc */
     47     esi = POP32_VAL(esp); /* 0x47053817: pop esi */
     48     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053818: ret  */
     49 L_47053819:
     50     ecx = esi; /* 0x47053819: mov ecx, esi */
     51     RECOMP_ICALL(0x47053BC0u); /* 0x4705381B: call 0x47053bc0 */ /* not lifted */
     52     RECOMP_FLAGS_IN();
     53     MEM32(esi + 0x8) = eax; /* 0x47053820: mov dword ptr [esi + 8], eax */
     54     MEM32(esi + 0xC) = eax; /* 0x47053823: mov dword ptr [esi + 0xc], eax */
     55     esi = POP32_VAL(esp); /* 0x47053826: pop esi */
     56     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053827: ret  */
     57     RECOMP_REGS_OUT();
     58 }
     59 
     60 void sub_47053830(void) {
     61     int _fpu_cmp = 0;
     62     uint32_t _cf = 0;
     63     int _df = 1;
     64     uint32_t _flag_k = FK_NONE;
     65     uint32_t _flag_a = 0, _flag_b = 0;
     66     uint32_t _itail_tgt = 0;
     67     RECOMP_REGS_LOCALS
     68     RECOMP_ENTER(0x47053830u);
     69 
     70 L_47053830:
     71     MEM32(0x4710E8E0) = 0x47108E1Cu; /* 0x47053830: mov dword ptr [0x4710e8e0], 0x47108e1c */
     72     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705383A: ret  */
     73     RECOMP_REGS_OUT();
     74 }
     75 
     76 void sub_47053840(void) {
     77     int _fpu_cmp = 0;
     78     uint32_t _cf = 0;
     79     int _df = 1;
     80     uint32_t _flag_k = FK_NONE;
     81     uint32_t _flag_a = 0, _flag_b = 0;
     82     uint32_t _itail_tgt = 0;
     83     RECOMP_REGS_LOCALS
     84     RECOMP_ENTER(0x47053840u);
     85 
     86 L_47053840:
     87     PUSH32(esp, ecx); /* 0x47053840: push ecx */
     88     PUSH32(esp, ebx); /* 0x47053841: push ebx */
     89     ebx = MEM32(0x470AC150); /* 0x47053842: mov ebx, dword ptr [0x470ac150] */
     90     PUSH32(esp, ebp); /* 0x47053848: push ebp */
     91     PUSH32(esp, esi); /* 0x47053849: push esi */
     92     PUSH32(esp, edi); /* 0x4705384A: push edi */
     93     edi = ecx; /* 0x4705384B: mov edi, ecx */
     94     RECOMP_ICALL(ebx); /* 0x4705384D: call ebx */
     95     RECOMP_FLAGS_IN();
     96     ebp = MEM32(0x470AC3C8); /* 0x4705384F: mov ebp, dword ptr [0x470ac3c8] */
     97     esi = eax; /* 0x47053855: mov esi, eax */
     98     RECOMP_ICALL(ebp); /* 0x47053857: call ebp */
     99     RECOMP_FLAGS_IN();
    100     eax = MEM32(eax); /* 0x47053859: mov eax, dword ptr [eax] */
    101     /* test eax, eax */ /* 0x4705385B: test eax, eax */
    102     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    103     _cf = 0;
    104     _flag_k = FK_TEST;
    105     MEM32(esp + 0x10) = esi; /* 0x4705385D: mov dword ptr [esp + 0x10], esi */
    106     if (TEST_Z(_flag_a, _flag_b)) goto L_47053867; /* 0x47053861: je 0x47053867 */
    107 L_47053863:
    108     MEM32(esp + 0x10) = eax; /* 0x47053863: mov dword ptr [esp + 0x10], eax */
    109 L_47053867:
    110     RECOMP_ICALL(0x47039020u); /* 0x47053867: call 0x47039020 */ /* not lifted */
    111     RECOMP_FLAGS_IN();
    112     esi = eax; /* 0x4705386C: mov esi, eax */
    113     ecx = esi; /* 0x4705386E: mov ecx, esi */
    114     RECOMP_ICALL(0x4703B210u); /* 0x47053870: call 0x4703b210 */ /* not lifted */
    115     RECOMP_FLAGS_IN();
    116     PUSH32(esp, eax); /* 0x47053875: push eax */
    117     ecx = esi; /* 0x47053876: mov ecx, esi */
    118     RECOMP_ICALL(0x4703B240u); /* 0x47053878: call 0x4703b240 */ /* not lifted */
    119     RECOMP_FLAGS_IN();
    120     PUSH32(esp, eax); /* 0x4705387D: push eax */
    121     ecx = esi; /* 0x4705387E: mov ecx, esi */
    122     RECOMP_ICALL(0x4703B080u); /* 0x47053880: call 0x4703b080 */ /* not lifted */
    123     RECOMP_FLAGS_IN();
    124     PUSH32(esp, eax); /* 0x47053885: push eax */
    125     eax = MEM32(esp + 0x1C); /* 0x47053886: mov eax, dword ptr [esp + 0x1c] */
    126     PUSH32(esp, eax); /* 0x4705388A: push eax */
    127     PUSH32(esp, 0); /* 0x4705388B: push 0 */
    128     PUSH32(esp, 0x13u); /* 0x4705388D: push 0x13 */
    129     PUSH32(esp, 0x47108E70u); /* 0x4705388F: push 0x47108e70 */
    130     ecx = esi; /* 0x47053894: mov ecx, esi */
    131     RECOMP_ICALL(0x4703A340u); /* 0x47053896: call 0x4703a340 */ /* not lifted */
    132     RECOMP_FLAGS_IN();
    133     PUSH32(esp, edi); /* 0x4705389B: push edi */
    134     PUSH32(esp, 0x471052CCu); /* 0x4705389C: push 0x471052cc */
    135     PUSH32(esp, 4); /* 0x470538A1: push 4 */
    136     PUSH32(esp, esi); /* 0x470538A3: push esi */
    137     RECOMP_ICALL(0x47039830u); /* 0x470538A4: call 0x47039830 */ /* not lifted */
    138     RECOMP_FLAGS_IN();
    139     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    140     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    141     esp = esp + 0x10u; /* 0x470538A9: add esp, 0x10 */
    142     _flag_k = FK_ADD;
    143     RECOMP_ICALL(ebx); /* 0x470538AC: call ebx */
    144     RECOMP_FLAGS_IN();
    145     esi = eax; /* 0x470538AE: mov esi, eax */
    146     RECOMP_ICALL(ebp); /* 0x470538B0: call ebp */
    147     RECOMP_FLAGS_IN();
    148     eax = MEM32(eax); /* 0x470538B2: mov eax, dword ptr [eax] */
    149     /* test eax, eax */ /* 0x470538B4: test eax, eax */
    150     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    151     _cf = 0;
    152     _flag_k = FK_TEST;
    153     MEM32(esp + 0x10) = esi; /* 0x470538B6: mov dword ptr [esp + 0x10], esi */
    154     if (TEST_Z(_flag_a, _flag_b)) goto L_470538C0; /* 0x470538BA: je 0x470538c0 */
    155 L_470538BC:
    156     MEM32(esp + 0x10) = eax; /* 0x470538BC: mov dword ptr [esp + 0x10], eax */
    157 L_470538C0:
    158     RECOMP_ICALL(0x47039020u); /* 0x470538C0: call 0x47039020 */ /* not lifted */
    159     RECOMP_FLAGS_IN();
    160     esi = eax; /* 0x470538C5: mov esi, eax */
    161     ecx = esi; /* 0x470538C7: mov ecx, esi */
    162     RECOMP_ICALL(0x4703B210u); /* 0x470538C9: call 0x4703b210 */ /* not lifted */
    163     RECOMP_FLAGS_IN();
    164     PUSH32(esp, eax); /* 0x470538CE: push eax */
    165     ecx = esi; /* 0x470538CF: mov ecx, esi */
    166     RECOMP_ICALL(0x4703B240u); /* 0x470538D1: call 0x4703b240 */ /* not lifted */
    167     RECOMP_FLAGS_IN();
    168     PUSH32(esp, eax); /* 0x470538D6: push eax */
    169     ecx = esi; /* 0x470538D7: mov ecx, esi */
    170     RECOMP_ICALL(0x4703B080u); /* 0x470538D9: call 0x4703b080 */ /* not lifted */
    171     RECOMP_FLAGS_IN();
    172     ecx = MEM32(esp + 0x18); /* 0x470538DE: mov ecx, dword ptr [esp + 0x18] */
    173     PUSH32(esp, eax); /* 0x470538E2: push eax */
    174     PUSH32(esp, ecx); /* 0x470538E3: push ecx */
    175     PUSH32(esp, 0); /* 0x470538E4: push 0 */
    176     PUSH32(esp, 0x14u); /* 0x470538E6: push 0x14 */
    177     PUSH32(esp, 0x47108E70u); /* 0x470538E8: push 0x47108e70 */
    178     ecx = esi; /* 0x470538ED: mov ecx, esi */
    179     RECOMP_ICALL(0x4703A340u); /* 0x470538EF: call 0x4703a340 */ /* not lifted */
    180     RECOMP_FLAGS_IN();
    181     edx = MEM32(edi + 0x4); /* 0x470538F4: mov edx, dword ptr [edi + 4] */
    182     PUSH32(esp, edx); /* 0x470538F7: push edx */
    183     PUSH32(esp, 0x47108E64u); /* 0x470538F8: push 0x47108e64 */
    184     PUSH32(esp, 4); /* 0x470538FD: push 4 */
    185     PUSH32(esp, esi); /* 0x470538FF: push esi */
    186     RECOMP_ICALL(0x47039830u); /* 0x47053900: call 0x47039830 */ /* not lifted */
    187     RECOMP_FLAGS_IN();
    188     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    189     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    190     esp = esp + 0x10u; /* 0x47053905: add esp, 0x10 */
    191     _flag_k = FK_ADD;
    192     RECOMP_ICALL(ebx); /* 0x47053908: call ebx */
    193     RECOMP_FLAGS_IN();
    194     esi = eax; /* 0x4705390A: mov esi, eax */
    195     RECOMP_ICALL(ebp); /* 0x4705390C: call ebp */
    196     RECOMP_FLAGS_IN();
    197     eax = MEM32(eax); /* 0x4705390E: mov eax, dword ptr [eax] */
    198     /* test eax, eax */ /* 0x47053910: test eax, eax */
    199     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    200     _cf = 0;
    201     _flag_k = FK_TEST;
    202     MEM32(esp + 0x10) = esi; /* 0x47053912: mov dword ptr [esp + 0x10], esi */
    203     if (TEST_Z(_flag_a, _flag_b)) goto L_4705391C; /* 0x47053916: je 0x4705391c */
    204 L_47053918:
    205     MEM32(esp + 0x10) = eax; /* 0x47053918: mov dword ptr [esp + 0x10], eax */
    206 L_4705391C:
    207     RECOMP_ICALL(0x47039020u); /* 0x4705391C: call 0x47039020 */ /* not lifted */
    208     RECOMP_FLAGS_IN();
    209     esi = eax; /* 0x47053921: mov esi, eax */
    210     ecx = esi; /* 0x47053923: mov ecx, esi */
    211     RECOMP_ICALL(0x4703B210u); /* 0x47053925: call 0x4703b210 */ /* not lifted */
    212     RECOMP_FLAGS_IN();
    213     PUSH32(esp, eax); /* 0x4705392A: push eax */
    214     ecx = esi; /* 0x4705392B: mov ecx, esi */
    215     RECOMP_ICALL(0x4703B240u); /* 0x4705392D: call 0x4703b240 */ /* not lifted */
    216     RECOMP_FLAGS_IN();
    217     PUSH32(esp, eax); /* 0x47053932: push eax */
    218     ecx = esi; /* 0x47053933: mov ecx, esi */
    219     RECOMP_ICALL(0x4703B080u); /* 0x47053935: call 0x4703b080 */ /* not lifted */
    220     RECOMP_FLAGS_IN();
    221     PUSH32(esp, eax); /* 0x4705393A: push eax */
    222     eax = MEM32(esp + 0x1C); /* 0x4705393B: mov eax, dword ptr [esp + 0x1c] */
    223     PUSH32(esp, eax); /* 0x4705393F: push eax */
    224     PUSH32(esp, 0); /* 0x47053940: push 0 */
    225     PUSH32(esp, 0x15u); /* 0x47053942: push 0x15 */
    226     PUSH32(esp, 0x47108E70u); /* 0x47053944: push 0x47108e70 */
    227     ecx = esi; /* 0x47053949: mov ecx, esi */
    228     RECOMP_ICALL(0x4703A340u); /* 0x4705394B: call 0x4703a340 */ /* not lifted */
    229     RECOMP_FLAGS_IN();
    230     ecx = MEM32(edi + 0x8); /* 0x47053950: mov ecx, dword ptr [edi + 8] */
    231     PUSH32(esp, ecx); /* 0x47053953: push ecx */
    232     PUSH32(esp, 0x47108E58u); /* 0x47053954: push 0x47108e58 */
    233     PUSH32(esp, 4); /* 0x47053959: push 4 */
    234     PUSH32(esp, esi); /* 0x4705395B: push esi */
    235     RECOMP_ICALL(0x47039830u); /* 0x4705395C: call 0x47039830 */ /* not lifted */
    236     RECOMP_FLAGS_IN();
    237     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    238     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    239     esp = esp + 0x10u; /* 0x47053961: add esp, 0x10 */
    240     _flag_k = FK_ADD;
    241     RECOMP_ICALL(ebx); /* 0x47053964: call ebx */
    242     RECOMP_FLAGS_IN();
    243     esi = eax; /* 0x47053966: mov esi, eax */
    244     RECOMP_ICALL(ebp); /* 0x47053968: call ebp */
    245     RECOMP_FLAGS_IN();
    246     eax = MEM32(eax); /* 0x4705396A: mov eax, dword ptr [eax] */
    247     /* test eax, eax */ /* 0x4705396C: test eax, eax */
    248     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    249     _cf = 0;
    250     _flag_k = FK_TEST;
    251     MEM32(esp + 0x10) = esi; /* 0x4705396E: mov dword ptr [esp + 0x10], esi */
    252     if (TEST_Z(_flag_a, _flag_b)) goto L_47053978; /* 0x47053972: je 0x47053978 */
    253 L_47053974:
    254     MEM32(esp + 0x10) = eax; /* 0x47053974: mov dword ptr [esp + 0x10], eax */
    255 L_47053978:
    256     RECOMP_ICALL(0x47039020u); /* 0x47053978: call 0x47039020 */ /* not lifted */
    257     RECOMP_FLAGS_IN();
    258     esi = eax; /* 0x4705397D: mov esi, eax */
    259     ecx = esi; /* 0x4705397F: mov ecx, esi */
    260     RECOMP_ICALL(0x4703B210u); /* 0x47053981: call 0x4703b210 */ /* not lifted */
    261     RECOMP_FLAGS_IN();
    262     PUSH32(esp, eax); /* 0x47053986: push eax */
    263     ecx = esi; /* 0x47053987: mov ecx, esi */
    264     RECOMP_ICALL(0x4703B240u); /* 0x47053989: call 0x4703b240 */ /* not lifted */
    265     RECOMP_FLAGS_IN();
    266     PUSH32(esp, eax); /* 0x4705398E: push eax */
    267     ecx = esi; /* 0x4705398F: mov ecx, esi */
    268     RECOMP_ICALL(0x4703B080u); /* 0x47053991: call 0x4703b080 */ /* not lifted */
    269     RECOMP_FLAGS_IN();
    270     edx = MEM32(esp + 0x18); /* 0x47053996: mov edx, dword ptr [esp + 0x18] */
    271     PUSH32(esp, eax); /* 0x4705399A: push eax */
    272     PUSH32(esp, edx); /* 0x4705399B: push edx */
    273     PUSH32(esp, 0); /* 0x4705399C: push 0 */
    274     PUSH32(esp, 0x16u); /* 0x4705399E: push 0x16 */
    275     PUSH32(esp, 0x47108E70u); /* 0x470539A0: push 0x47108e70 */
    276     ecx = esi; /* 0x470539A5: mov ecx, esi */
    277     RECOMP_ICALL(0x4703A340u); /* 0x470539A7: call 0x4703a340 */ /* not lifted */
    278     RECOMP_FLAGS_IN();
    279     eax = MEM32(edi + 0xC); /* 0x470539AC: mov eax, dword ptr [edi + 0xc] */
    280     PUSH32(esp, eax); /* 0x470539AF: push eax */
    281     PUSH32(esp, 0x47108E4Cu); /* 0x470539B0: push 0x47108e4c */
    282     PUSH32(esp, 4); /* 0x470539B5: push 4 */
    283     PUSH32(esp, esi); /* 0x470539B7: push esi */
    284     RECOMP_ICALL(0x47039830u); /* 0x470539B8: call 0x47039830 */ /* not lifted */
    285     RECOMP_FLAGS_IN();
    286     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    287     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    288     esp = esp + 0x10u; /* 0x470539BD: add esp, 0x10 */
    289     _flag_k = FK_ADD;
    290     RECOMP_ICALL(ebx); /* 0x470539C0: call ebx */
    291     RECOMP_FLAGS_IN();
    292     esi = eax; /* 0x470539C2: mov esi, eax */
    293     RECOMP_ICALL(ebp); /* 0x470539C4: call ebp */
    294     RECOMP_FLAGS_IN();
    295     eax = MEM32(eax); /* 0x470539C6: mov eax, dword ptr [eax] */
    296     /* test eax, eax */ /* 0x470539C8: test eax, eax */
    297     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    298     _cf = 0;
    299     _flag_k = FK_TEST;
    300     edi = esi; /* 0x470539CA: mov edi, esi */
    301     if (TEST_Z(_flag_a, _flag_b)) goto L_470539D0; /* 0x470539CC: je 0x470539d0 */
    302 L_470539CE:
    303     edi = eax; /* 0x470539CE: mov edi, eax */
    304 L_470539D0:
    305     RECOMP_ICALL(0x47039020u); /* 0x470539D0: call 0x47039020 */ /* not lifted */
    306     RECOMP_FLAGS_IN();
    307     esi = eax; /* 0x470539D5: mov esi, eax */
    308     ecx = esi; /* 0x470539D7: mov ecx, esi */
    309     RECOMP_ICALL(0x4703B210u); /* 0x470539D9: call 0x4703b210 */ /* not lifted */
    310     RECOMP_FLAGS_IN();
    311     PUSH32(esp, eax); /* 0x470539DE: push eax */
    312     ecx = esi; /* 0x470539DF: mov ecx, esi */
    313     RECOMP_ICALL(0x4703B240u); /* 0x470539E1: call 0x4703b240 */ /* not lifted */
    314     RECOMP_FLAGS_IN();
    315     PUSH32(esp, eax); /* 0x470539E6: push eax */
    316     ecx = esi; /* 0x470539E7: mov ecx, esi */
    317     RECOMP_ICALL(0x4703B080u); /* 0x470539E9: call 0x4703b080 */ /* not lifted */
    318     RECOMP_FLAGS_IN();
    319     PUSH32(esp, eax); /* 0x470539EE: push eax */
    320     PUSH32(esp, edi); /* 0x470539EF: push edi */
    321     PUSH32(esp, 0); /* 0x470539F0: push 0 */
    322     PUSH32(esp, 0x17u); /* 0x470539F2: push 0x17 */
    323     PUSH32(esp, 0x47108E70u); /* 0x470539F4: push 0x47108e70 */
    324     ecx = esi; /* 0x470539F9: mov ecx, esi */
    325     RECOMP_ICALL(0x4703A340u); /* 0x470539FB: call 0x4703a340 */ /* not lifted */
    326     RECOMP_FLAGS_IN();
    327     PUSH32(esp, 0x4710529Cu); /* 0x47053A00: push 0x4710529c */
    328     PUSH32(esp, 4); /* 0x47053A05: push 4 */
    329     PUSH32(esp, esi); /* 0x47053A07: push esi */
    330     RECOMP_ICALL(0x47039830u); /* 0x47053A08: call 0x47039830 */ /* not lifted */
    331     RECOMP_FLAGS_IN();
    332     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    333     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    334     esp = esp + 0xCu; /* 0x47053A0D: add esp, 0xc */
    335     _flag_k = FK_ADD;
    336     edi = POP32_VAL(esp); /* 0x47053A10: pop edi */
    337     esi = POP32_VAL(esp); /* 0x47053A11: pop esi */
    338     ebp = POP32_VAL(esp); /* 0x47053A12: pop ebp */
    339     ebx = POP32_VAL(esp); /* 0x47053A13: pop ebx */
    340     ecx = POP32_VAL(esp); /* 0x47053A14: pop ecx */
    341     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053A15: ret  */
    342     RECOMP_REGS_OUT();
    343 }
    344 
    345 void sub_47053A20(void) {
    346     int _fpu_cmp = 0;
    347     uint32_t _cf = 0;
    348     int _df = 1;
    349     uint32_t _flag_k = FK_NONE;
    350     uint32_t _flag_a = 0, _flag_b = 0;
    351     uint32_t _itail_tgt = 0;
    352     RECOMP_REGS_LOCALS
    353     RECOMP_ENTER(0x47053A20u);
    354 
    355 L_47053A20:
    356     PUSH32(esp, ecx); /* 0x47053A20: push ecx */
    357     PUSH32(esp, ebx); /* 0x47053A21: push ebx */
    358     ebx = MEM32(0x470AC150); /* 0x47053A22: mov ebx, dword ptr [0x470ac150] */
    359     PUSH32(esp, ebp); /* 0x47053A28: push ebp */
    360     PUSH32(esp, esi); /* 0x47053A29: push esi */
    361     PUSH32(esp, edi); /* 0x47053A2A: push edi */
    362     edi = ecx; /* 0x47053A2B: mov edi, ecx */
    363     RECOMP_ICALL(ebx); /* 0x47053A2D: call ebx */
    364     RECOMP_FLAGS_IN();
    365     ebp = MEM32(0x470AC3C8); /* 0x47053A2F: mov ebp, dword ptr [0x470ac3c8] */
    366     esi = eax; /* 0x47053A35: mov esi, eax */
    367     RECOMP_ICALL(ebp); /* 0x47053A37: call ebp */
    368     RECOMP_FLAGS_IN();
    369     eax = MEM32(eax); /* 0x47053A39: mov eax, dword ptr [eax] */
    370     /* test eax, eax */ /* 0x47053A3B: test eax, eax */
    371     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    372     _cf = 0;
    373     _flag_k = FK_TEST;
    374     MEM32(esp + 0x10) = esi; /* 0x47053A3D: mov dword ptr [esp + 0x10], esi */
    375     if (TEST_Z(_flag_a, _flag_b)) goto L_47053A47; /* 0x47053A41: je 0x47053a47 */
    376 L_47053A43:
    377     MEM32(esp + 0x10) = eax; /* 0x47053A43: mov dword ptr [esp + 0x10], eax */
    378 L_47053A47:
    379     RECOMP_ICALL(0x47039020u); /* 0x47053A47: call 0x47039020 */ /* not lifted */
    380     RECOMP_FLAGS_IN();
    381     esi = eax; /* 0x47053A4C: mov esi, eax */
    382     ecx = esi; /* 0x47053A4E: mov ecx, esi */
    383     RECOMP_ICALL(0x4703B210u); /* 0x47053A50: call 0x4703b210 */ /* not lifted */
    384     RECOMP_FLAGS_IN();
    385     PUSH32(esp, eax); /* 0x47053A55: push eax */
    386     ecx = esi; /* 0x47053A56: mov ecx, esi */
    387     RECOMP_ICALL(0x4703B240u); /* 0x47053A58: call 0x4703b240 */ /* not lifted */
    388     RECOMP_FLAGS_IN();
    389     PUSH32(esp, eax); /* 0x47053A5D: push eax */
    390     ecx = esi; /* 0x47053A5E: mov ecx, esi */
    391     RECOMP_ICALL(0x4703B080u); /* 0x47053A60: call 0x4703b080 */ /* not lifted */
    392     RECOMP_FLAGS_IN();
    393     PUSH32(esp, eax); /* 0x47053A65: push eax */
    394     eax = MEM32(esp + 0x1C); /* 0x47053A66: mov eax, dword ptr [esp + 0x1c] */
    395     PUSH32(esp, eax); /* 0x47053A6A: push eax */
    396     PUSH32(esp, 0); /* 0x47053A6B: push 0 */
    397     PUSH32(esp, 0x21u); /* 0x47053A6D: push 0x21 */
    398     PUSH32(esp, 0x47108E70u); /* 0x47053A6F: push 0x47108e70 */
    399     ecx = esi; /* 0x47053A74: mov ecx, esi */
    400     RECOMP_ICALL(0x4703A340u); /* 0x47053A76: call 0x4703a340 */ /* not lifted */
    401     RECOMP_FLAGS_IN();
    402     PUSH32(esp, edi); /* 0x47053A7B: push edi */
    403     PUSH32(esp, 0x471052CCu); /* 0x47053A7C: push 0x471052cc */
    404     PUSH32(esp, 4); /* 0x47053A81: push 4 */
    405     PUSH32(esp, esi); /* 0x47053A83: push esi */
    406     RECOMP_ICALL(0x47039830u); /* 0x47053A84: call 0x47039830 */ /* not lifted */
    407     RECOMP_FLAGS_IN();
    408     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    409     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    410     esp = esp + 0x10u; /* 0x47053A89: add esp, 0x10 */
    411     _flag_k = FK_ADD;
    412     RECOMP_ICALL(ebx); /* 0x47053A8C: call ebx */
    413     RECOMP_FLAGS_IN();
    414     esi = eax; /* 0x47053A8E: mov esi, eax */
    415     RECOMP_ICALL(ebp); /* 0x47053A90: call ebp */
    416     RECOMP_FLAGS_IN();
    417     eax = MEM32(eax); /* 0x47053A92: mov eax, dword ptr [eax] */
    418     /* test eax, eax */ /* 0x47053A94: test eax, eax */
    419     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    420     _cf = 0;
    421     _flag_k = FK_TEST;
    422     MEM32(esp + 0x10) = esi; /* 0x47053A96: mov dword ptr [esp + 0x10], esi */
    423     if (TEST_Z(_flag_a, _flag_b)) goto L_47053AA0; /* 0x47053A9A: je 0x47053aa0 */
    424 L_47053A9C:
    425     MEM32(esp + 0x10) = eax; /* 0x47053A9C: mov dword ptr [esp + 0x10], eax */
    426 L_47053AA0:
    427     RECOMP_ICALL(0x47039020u); /* 0x47053AA0: call 0x47039020 */ /* not lifted */
    428     RECOMP_FLAGS_IN();
    429     esi = eax; /* 0x47053AA5: mov esi, eax */
    430     ecx = esi; /* 0x47053AA7: mov ecx, esi */
    431     RECOMP_ICALL(0x4703B210u); /* 0x47053AA9: call 0x4703b210 */ /* not lifted */
    432     RECOMP_FLAGS_IN();
    433     PUSH32(esp, eax); /* 0x47053AAE: push eax */
    434     ecx = esi; /* 0x47053AAF: mov ecx, esi */
    435     RECOMP_ICALL(0x4703B240u); /* 0x47053AB1: call 0x4703b240 */ /* not lifted */
    436     RECOMP_FLAGS_IN();
    437     PUSH32(esp, eax); /* 0x47053AB6: push eax */
    438     ecx = esi; /* 0x47053AB7: mov ecx, esi */
    439     RECOMP_ICALL(0x4703B080u); /* 0x47053AB9: call 0x4703b080 */ /* not lifted */
    440     RECOMP_FLAGS_IN();
    441     ecx = MEM32(esp + 0x18); /* 0x47053ABE: mov ecx, dword ptr [esp + 0x18] */
    442     PUSH32(esp, eax); /* 0x47053AC2: push eax */
    443     PUSH32(esp, ecx); /* 0x47053AC3: push ecx */
    444     PUSH32(esp, 0); /* 0x47053AC4: push 0 */
    445     PUSH32(esp, 0x22u); /* 0x47053AC6: push 0x22 */
    446     PUSH32(esp, 0x47108E70u); /* 0x47053AC8: push 0x47108e70 */
    447     ecx = esi; /* 0x47053ACD: mov ecx, esi */
    448     RECOMP_ICALL(0x4703A340u); /* 0x47053ACF: call 0x4703a340 */ /* not lifted */
    449     RECOMP_FLAGS_IN();
    450     edx = MEM32(edi); /* 0x47053AD4: mov edx, dword ptr [edi] */
    451     PUSH32(esp, edx); /* 0x47053AD6: push edx */
    452     PUSH32(esp, 0x47108EB4u); /* 0x47053AD7: push 0x47108eb4 */
    453     PUSH32(esp, 4); /* 0x47053ADC: push 4 */
    454     PUSH32(esp, esi); /* 0x47053ADE: push esi */
    455     RECOMP_ICALL(0x47039830u); /* 0x47053ADF: call 0x47039830 */ /* not lifted */
    456     RECOMP_FLAGS_IN();
    457     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    458     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    459     esp = esp + 0x10u; /* 0x47053AE4: add esp, 0x10 */
    460     _flag_k = FK_ADD;
    461     RECOMP_ICALL(ebx); /* 0x47053AE7: call ebx */
    462     RECOMP_FLAGS_IN();
    463     esi = eax; /* 0x47053AE9: mov esi, eax */
    464     RECOMP_ICALL(ebp); /* 0x47053AEB: call ebp */
    465     RECOMP_FLAGS_IN();
    466     eax = MEM32(eax); /* 0x47053AED: mov eax, dword ptr [eax] */
    467     /* test eax, eax */ /* 0x47053AEF: test eax, eax */
    468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    469     _cf = 0;
    470     _flag_k = FK_TEST;
    471     MEM32(esp + 0x10) = esi; /* 0x47053AF1: mov dword ptr [esp + 0x10], esi */
    472     if (TEST_Z(_flag_a, _flag_b)) goto L_47053AFB; /* 0x47053AF5: je 0x47053afb */
    473 L_47053AF7:
    474     MEM32(esp + 0x10) = eax; /* 0x47053AF7: mov dword ptr [esp + 0x10], eax */
    475 L_47053AFB:
    476     RECOMP_ICALL(0x47039020u); /* 0x47053AFB: call 0x47039020 */ /* not lifted */
    477     RECOMP_FLAGS_IN();
    478     esi = eax; /* 0x47053B00: mov esi, eax */
    479     ecx = esi; /* 0x47053B02: mov ecx, esi */
    480     RECOMP_ICALL(0x4703B210u); /* 0x47053B04: call 0x4703b210 */ /* not lifted */
    481     RECOMP_FLAGS_IN();
    482     PUSH32(esp, eax); /* 0x47053B09: push eax */
    483     ecx = esi; /* 0x47053B0A: mov ecx, esi */
    484     RECOMP_ICALL(0x4703B240u); /* 0x47053B0C: call 0x4703b240 */ /* not lifted */
    485     RECOMP_FLAGS_IN();
    486     PUSH32(esp, eax); /* 0x47053B11: push eax */
    487     ecx = esi; /* 0x47053B12: mov ecx, esi */
    488     RECOMP_ICALL(0x4703B080u); /* 0x47053B14: call 0x4703b080 */ /* not lifted */
    489     RECOMP_FLAGS_IN();
    490     PUSH32(esp, eax); /* 0x47053B19: push eax */
    491     eax = MEM32(esp + 0x1C); /* 0x47053B1A: mov eax, dword ptr [esp + 0x1c] */
    492     PUSH32(esp, eax); /* 0x47053B1E: push eax */
    493     PUSH32(esp, 0); /* 0x47053B1F: push 0 */
    494     PUSH32(esp, 0x23u); /* 0x47053B21: push 0x23 */
    495     PUSH32(esp, 0x47108E70u); /* 0x47053B23: push 0x47108e70 */
    496     ecx = esi; /* 0x47053B28: mov ecx, esi */
    497     RECOMP_ICALL(0x4703A340u); /* 0x47053B2A: call 0x4703a340 */ /* not lifted */
    498     RECOMP_FLAGS_IN();
    499     ecx = MEM32(edi + 0x4); /* 0x47053B2F: mov ecx, dword ptr [edi + 4] */
    500     PUSH32(esp, ecx); /* 0x47053B32: push ecx */
    501     PUSH32(esp, 0x47108EA8u); /* 0x47053B33: push 0x47108ea8 */
    502     PUSH32(esp, 4); /* 0x47053B38: push 4 */
    503     PUSH32(esp, esi); /* 0x47053B3A: push esi */
    504     RECOMP_ICALL(0x47039830u); /* 0x47053B3B: call 0x47039830 */ /* not lifted */
    505     RECOMP_FLAGS_IN();
    506     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    507     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    508     esp = esp + 0x10u; /* 0x47053B40: add esp, 0x10 */
    509     _flag_k = FK_ADD;
    510     RECOMP_ICALL(ebx); /* 0x47053B43: call ebx */
    511     RECOMP_FLAGS_IN();
    512     esi = eax; /* 0x47053B45: mov esi, eax */
    513     RECOMP_ICALL(ebp); /* 0x47053B47: call ebp */
    514     RECOMP_FLAGS_IN();
    515     eax = MEM32(eax); /* 0x47053B49: mov eax, dword ptr [eax] */
    516     /* test eax, eax */ /* 0x47053B4B: test eax, eax */
    517     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    518     _cf = 0;
    519     _flag_k = FK_TEST;
    520     edi = esi; /* 0x47053B4D: mov edi, esi */
    521     if (TEST_Z(_flag_a, _flag_b)) goto L_47053B53; /* 0x47053B4F: je 0x47053b53 */
    522 L_47053B51:
    523     edi = eax; /* 0x47053B51: mov edi, eax */
    524 L_47053B53:
    525     RECOMP_ICALL(0x47039020u); /* 0x47053B53: call 0x47039020 */ /* not lifted */
    526     RECOMP_FLAGS_IN();
    527     esi = eax; /* 0x47053B58: mov esi, eax */
    528     ecx = esi; /* 0x47053B5A: mov ecx, esi */
    529     RECOMP_ICALL(0x4703B210u); /* 0x47053B5C: call 0x4703b210 */ /* not lifted */
    530     RECOMP_FLAGS_IN();
    531     PUSH32(esp, eax); /* 0x47053B61: push eax */
    532     ecx = esi; /* 0x47053B62: mov ecx, esi */
    533     RECOMP_ICALL(0x4703B240u); /* 0x47053B64: call 0x4703b240 */ /* not lifted */
    534     RECOMP_FLAGS_IN();
    535     PUSH32(esp, eax); /* 0x47053B69: push eax */
    536     ecx = esi; /* 0x47053B6A: mov ecx, esi */
    537     RECOMP_ICALL(0x4703B080u); /* 0x47053B6C: call 0x4703b080 */ /* not lifted */
    538     RECOMP_FLAGS_IN();
    539     PUSH32(esp, eax); /* 0x47053B71: push eax */
    540     PUSH32(esp, edi); /* 0x47053B72: push edi */
    541     PUSH32(esp, 0); /* 0x47053B73: push 0 */
    542     PUSH32(esp, 0x24u); /* 0x47053B75: push 0x24 */
    543     PUSH32(esp, 0x47108E70u); /* 0x47053B77: push 0x47108e70 */
    544     ecx = esi; /* 0x47053B7C: mov ecx, esi */
    545     RECOMP_ICALL(0x4703A340u); /* 0x47053B7E: call 0x4703a340 */ /* not lifted */
    546     RECOMP_FLAGS_IN();
    547     PUSH32(esp, 0x4710529Cu); /* 0x47053B83: push 0x4710529c */
    548     PUSH32(esp, 4); /* 0x47053B88: push 4 */
    549     PUSH32(esp, esi); /* 0x47053B8A: push esi */
    550     RECOMP_ICALL(0x47039830u); /* 0x47053B8B: call 0x47039830 */ /* not lifted */
    551     RECOMP_FLAGS_IN();
    552     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    553     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    554     esp = esp + 0xCu; /* 0x47053B90: add esp, 0xc */
    555     _flag_k = FK_ADD;
    556     edi = POP32_VAL(esp); /* 0x47053B93: pop edi */
    557     esi = POP32_VAL(esp); /* 0x47053B94: pop esi */
    558     ebp = POP32_VAL(esp); /* 0x47053B95: pop ebp */
    559     ebx = POP32_VAL(esp); /* 0x47053B96: pop ebx */
    560     ecx = POP32_VAL(esp); /* 0x47053B97: pop ecx */
    561     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053B98: ret  */
    562     RECOMP_REGS_OUT();
    563 }
    564 
    565 void sub_47053BA0(void) {
    566     int _fpu_cmp = 0;
    567     uint32_t _cf = 0;
    568     int _df = 1;
    569     uint32_t _flag_k = FK_NONE;
    570     uint32_t _flag_a = 0, _flag_b = 0;
    571     uint32_t _itail_tgt = 0;
    572     RECOMP_REGS_LOCALS
    573     RECOMP_ENTER(0x47053BA0u);
    574 
    575 L_47053BA0:
    576     eax = ecx; /* 0x47053BA0: mov eax, ecx */
    577     ecx = MEM32(esp + 0x4); /* 0x47053BA2: mov ecx, dword ptr [esp + 4] */
    578     edx = ecx + eax + 0xC; /* 0x47053BA6: lea edx, [ecx + eax + 0xc] */
    579     ecx = eax + 0xC; /* 0x47053BAA: lea ecx, [eax + 0xc] */
    580     MEM32(eax) = edx; /* 0x47053BAD: mov dword ptr [eax], edx */
    581     MEM32(eax + 0x4) = ecx; /* 0x47053BAF: mov dword ptr [eax + 4], ecx */
    582     MEM32(eax + 0x8) = 0; /* 0x47053BB2: mov dword ptr [eax + 8], 0 */
    583     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47053BB9: ret 4 */
    584     RECOMP_REGS_OUT();
    585 }
    586 
    587 void sub_47053BC0(void) {
    588     int _fpu_cmp = 0;
    589     uint32_t _cf = 0;
    590     int _df = 1;
    591     uint32_t _flag_k = FK_NONE;
    592     uint32_t _flag_a = 0, _flag_b = 0;
    593     uint32_t _itail_tgt = 0;
    594     RECOMP_REGS_LOCALS
    595     RECOMP_ENTER(0x47053BC0u);
    596 
    597 L_47053BC0:
    598     PUSH32(esp, esi); /* 0x47053BC0: push esi */
    599     esi = ecx; /* 0x47053BC1: mov esi, ecx */
    600     edx = MEM32(esi + 0x4); /* 0x47053BC3: mov edx, dword ptr [esi + 4] */
    601     ecx = MEM32(esi); /* 0x47053BC6: mov ecx, dword ptr [esi] */
    602     eax = MEM32(ecx); /* 0x47053BC8: mov eax, dword ptr [ecx] */
    603     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
    604     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    605     edx = edx + 0x10u; /* 0x47053BCA: add edx, 0x10 */
    606     _flag_k = FK_ADD;
    607     PUSH32(esp, edx); /* 0x47053BCD: push edx */
    608     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47053BCE: call dword ptr [eax + 4] */
    609     RECOMP_FLAGS_IN();
    610     /* test eax, eax */ /* 0x47053BD1: test eax, eax */
    611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    612     _cf = 0;
    613     _flag_k = FK_TEST;
    614     if (TEST_NZ(_flag_a, _flag_b)) goto L_47053BE5; /* 0x47053BD3: jne 0x47053be5 */
    615 L_47053BD5:
    616     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47053BD5: call dword ptr [0x470ac3c8] */
    617     RECOMP_FLAGS_IN();
    618     MEM32(eax) = 0xCu; /* 0x47053BDB: mov dword ptr [eax], 0xc */
    619     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    620     eax = 0; /* 0x47053BE1: xor eax, eax */
    621     _cf = 0;
    622     _flag_k = FK_TEST;
    623     esi = POP32_VAL(esp); /* 0x47053BE3: pop esi */
    624     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053BE4: ret  */
    625 L_47053BE5:
    626     ecx = MEM32(esi + 0x4); /* 0x47053BE5: mov ecx, dword ptr [esi + 4] */
    627     edx = ecx + eax + 0xC; /* 0x47053BE8: lea edx, [ecx + eax + 0xc] */
    628     ecx = eax + 0xC; /* 0x47053BEC: lea ecx, [eax + 0xc] */
    629     MEM32(eax) = edx; /* 0x47053BEF: mov dword ptr [eax], edx */
    630     MEM32(eax + 0x4) = ecx; /* 0x47053BF1: mov dword ptr [eax + 4], ecx */
    631     MEM32(eax + 0x8) = 0; /* 0x47053BF4: mov dword ptr [eax + 8], 0 */
    632     esi = POP32_VAL(esp); /* 0x47053BFB: pop esi */
    633     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053BFC: ret  */
    634     RECOMP_REGS_OUT();
    635 }
    636 
    637 void sub_47053C00(void) {
    638     int _fpu_cmp = 0;
    639     uint32_t _cf = 0;
    640     int _df = 1;
    641     uint32_t _flag_k = FK_NONE;
    642     uint32_t _flag_a = 0, _flag_b = 0;
    643     uint32_t _itail_tgt = 0;
    644     RECOMP_REGS_LOCALS
    645     RECOMP_ENTER(0x47053C00u);
    646 
    647 L_47053C00:
    648     eax = MEM32(esp + 0x8); /* 0x47053C00: mov eax, dword ptr [esp + 8] */
    649     /* test eax, eax */ /* 0x47053C04: test eax, eax */
    650     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    651     _cf = 0;
    652     _flag_k = FK_TEST;
    653     PUSH32(esp, esi); /* 0x47053C06: push esi */
    654     esi = ecx; /* 0x47053C07: mov esi, ecx */
    655     ecx = MEM32(esp + 0x8); /* 0x47053C09: mov ecx, dword ptr [esp + 8] */
    656     MEM32(esi) = eax; /* 0x47053C0D: mov dword ptr [esi], eax */
    657     MEM32(esi + 0x4) = ecx; /* 0x47053C0F: mov dword ptr [esi + 4], ecx */
    658     if (TEST_NZ(_flag_a, _flag_b)) goto L_47053C31; /* 0x47053C12: jne 0x47053c31 */
    659 L_47053C14:
    660     RECOMP_ICALL(0x4703DAC0u); /* 0x47053C14: call 0x4703dac0 */ /* not lifted */
    661     RECOMP_FLAGS_IN();
    662     /* test eax, eax */ /* 0x47053C19: test eax, eax */
    663     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    664     _cf = 0;
    665     _flag_k = FK_TEST;
    666     MEM32(esi) = eax; /* 0x47053C1B: mov dword ptr [esi], eax */
    667     if (TEST_NZ(_flag_a, _flag_b)) goto L_47053C31; /* 0x47053C1D: jne 0x47053c31 */
    668 L_47053C1F:
    669     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47053C1F: call dword ptr [0x470ac3c8] */
    670     RECOMP_FLAGS_IN();
    671     MEM32(eax) = 0xCu; /* 0x47053C25: mov dword ptr [eax], 0xc */
    672     eax = esi; /* 0x47053C2B: mov eax, esi */
    673     esi = POP32_VAL(esp); /* 0x47053C2D: pop esi */
    674     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47053C2E: ret 8 */
    675 L_47053C31:
    676     ecx = esi; /* 0x47053C31: mov ecx, esi */
    677     RECOMP_ICALL(0x47053BC0u); /* 0x47053C33: call 0x47053bc0 */ /* not lifted */
    678     RECOMP_FLAGS_IN();
    679     MEM32(esi + 0x8) = eax; /* 0x47053C38: mov dword ptr [esi + 8], eax */
    680     MEM32(esi + 0xC) = eax; /* 0x47053C3B: mov dword ptr [esi + 0xc], eax */
    681     eax = esi; /* 0x47053C3E: mov eax, esi */
    682     esi = POP32_VAL(esp); /* 0x47053C40: pop esi */
    683     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47053C41: ret 8 */
    684     RECOMP_REGS_OUT();
    685 }
    686 
    687 void sub_47053C50(void) {
    688     int _fpu_cmp = 0;
    689     uint32_t _cf = 0;
    690     int _df = 1;
    691     uint32_t _flag_k = FK_NONE;
    692     uint32_t _flag_a = 0, _flag_b = 0;
    693     uint32_t _itail_tgt = 0;
    694     RECOMP_REGS_LOCALS
    695     RECOMP_ENTER(0x47053C50u);
    696 
    697 L_47053C50:
    698     PUSH32(esp, edi); /* 0x47053C50: push edi */
    699     edi = ecx; /* 0x47053C51: mov edi, ecx */
    700     eax = MEM32(edi + 0x8); /* 0x47053C53: mov eax, dword ptr [edi + 8] */
    701     /* test eax, eax */ /* 0x47053C56: test eax, eax */
    702     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    703     _cf = 0;
    704     _flag_k = FK_TEST;
    705     if (TEST_Z(_flag_a, _flag_b)) goto L_47053C74; /* 0x47053C58: je 0x47053c74 */
    706 L_47053C5A:
    707     PUSH32(esp, esi); /* 0x47053C5A: push esi */
    708 L_47053C5B:
    709     esi = MEM32(eax + 0x8); /* 0x47053C5B: mov esi, dword ptr [eax + 8] */
    710     MEM32(eax + 0x8) = 0; /* 0x47053C5E: mov dword ptr [eax + 8], 0 */
    711     ecx = MEM32(edi); /* 0x47053C65: mov ecx, dword ptr [edi] */
    712     edx = MEM32(ecx); /* 0x47053C67: mov edx, dword ptr [ecx] */
    713     PUSH32(esp, eax); /* 0x47053C69: push eax */
    714     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47053C6A: call dword ptr [edx + 0xc] */
    715     RECOMP_FLAGS_IN();
    716     /* test esi, esi */ /* 0x47053C6D: test esi, esi */
    717     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    718     _cf = 0;
    719     _flag_k = FK_TEST;
    720     eax = esi; /* 0x47053C6F: mov eax, esi */
    721     RECOMP_BACKEDGE();
    722     if (TEST_NZ(_flag_a, _flag_b)) goto L_47053C5B; /* 0x47053C71: jne 0x47053c5b */
    723 L_47053C73:
    724     esi = POP32_VAL(esp); /* 0x47053C73: pop esi */
    725 L_47053C74:
    726     edi = POP32_VAL(esp); /* 0x47053C74: pop edi */
    727     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053C75: ret  */
    728     RECOMP_REGS_OUT();
    729 }
    730 
    731 void sub_47053C80(void) {
    732     int _fpu_cmp = 0;
    733     uint32_t _cf = 0;
    734     int _df = 1;
    735     uint32_t _flag_k = FK_NONE;
    736     uint32_t _flag_a = 0, _flag_b = 0;
    737     uint32_t _itail_tgt = 0;
    738     RECOMP_REGS_LOCALS
    739     RECOMP_ENTER(0x47053C80u);
    740 
    741 L_47053C80:
    742     PUSH32(esp, ebx); /* 0x47053C80: push ebx */
    743     PUSH32(esp, ebp); /* 0x47053C81: push ebp */
    744     ebp = MEM32(esp + 0x10); /* 0x47053C82: mov ebp, dword ptr [esp + 0x10] */
    745     ebx = ecx; /* 0x47053C86: mov ebx, ecx */
    746     ecx = MEM32(ebx + 0x4); /* 0x47053C88: mov ecx, dword ptr [ebx + 4] */
    747     eax = ebp + 0x1; /* 0x47053C8B: lea eax, [ebp + 1] */
    748     /* cmp ecx, eax */ /* 0x47053C8E: cmp ecx, eax */
    749     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    750     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    751     _flag_k = FK_CMP;
    752     PUSH32(esp, esi); /* 0x47053C90: push esi */
    753     PUSH32(esp, edi); /* 0x47053C91: push edi */
    754     if (CMP_AE(_flag_a, _flag_b)) goto L_47053CF4; /* 0x47053C92: jae 0x47053cf4 */
    755 L_47053C94:
    756     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47053C94: call dword ptr [0x470ac150] */
    757     RECOMP_FLAGS_IN();
    758     edi = eax; /* 0x47053C9A: mov edi, eax */
    759     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47053C9C: call dword ptr [0x470ac3c8] */
    760     RECOMP_FLAGS_IN();
    761     eax = MEM32(eax); /* 0x47053CA2: mov eax, dword ptr [eax] */
    762     /* test eax, eax */ /* 0x47053CA4: test eax, eax */
    763     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    764     _cf = 0;
    765     _flag_k = FK_TEST;
    766     if (TEST_Z(_flag_a, _flag_b)) goto L_47053CAA; /* 0x47053CA6: je 0x47053caa */
    767 L_47053CA8:
    768     edi = eax; /* 0x47053CA8: mov edi, eax */
    769 L_47053CAA:
    770     RECOMP_ICALL(0x47039020u); /* 0x47053CAA: call 0x47039020 */ /* not lifted */
    771     RECOMP_FLAGS_IN();
    772     esi = eax; /* 0x47053CAF: mov esi, eax */
    773     ecx = esi; /* 0x47053CB1: mov ecx, esi */
    774     RECOMP_ICALL(0x4703B210u); /* 0x47053CB3: call 0x4703b210 */ /* not lifted */
    775     RECOMP_FLAGS_IN();
    776     PUSH32(esp, eax); /* 0x47053CB8: push eax */
    777     ecx = esi; /* 0x47053CB9: mov ecx, esi */
    778     RECOMP_ICALL(0x4703B240u); /* 0x47053CBB: call 0x4703b240 */ /* not lifted */
    779     RECOMP_FLAGS_IN();
    780     PUSH32(esp, eax); /* 0x47053CC0: push eax */
    781     ecx = esi; /* 0x47053CC1: mov ecx, esi */
    782     RECOMP_ICALL(0x4703B080u); /* 0x47053CC3: call 0x4703b080 */ /* not lifted */
    783     RECOMP_FLAGS_IN();
    784     PUSH32(esp, eax); /* 0x47053CC8: push eax */
    785     PUSH32(esp, edi); /* 0x47053CC9: push edi */
    786     PUSH32(esp, 0xFFFFFFFFu); /* 0x47053CCA: push -1 */
    787     PUSH32(esp, 0x61u); /* 0x47053CCC: push 0x61 */
    788     PUSH32(esp, 0x47108E70u); /* 0x47053CCE: push 0x47108e70 */
    789     ecx = esi; /* 0x47053CD3: mov ecx, esi */
    790     RECOMP_ICALL(0x4703A340u); /* 0x47053CD5: call 0x4703a340 */ /* not lifted */
    791     RECOMP_FLAGS_IN();
    792     PUSH32(esp, 0xFFFFFFFFu); /* 0x47053CDA: push -1 */
    793     PUSH32(esp, 0x47108EC0u); /* 0x47053CDC: push 0x47108ec0 */
    794     PUSH32(esp, 0x47104AA4u); /* 0x47053CE1: push 0x47104aa4 */
    795     PUSH32(esp, 0x80u); /* 0x47053CE6: push 0x80 */
    796     PUSH32(esp, esi); /* 0x47053CEB: push esi */
    797     RECOMP_ICALL(0x47039830u); /* 0x47053CEC: call 0x47039830 */ /* not lifted */
    798     RECOMP_FLAGS_IN();
    799     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    800     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    801     esp = esp + 0x14u; /* 0x47053CF1: add esp, 0x14 */
    802     _flag_k = FK_ADD;
    803 L_47053CF4:
    804     eax = MEM32(ebx + 0xC); /* 0x47053CF4: mov eax, dword ptr [ebx + 0xc] */
    805     ecx = MEM32(eax + 0x4); /* 0x47053CF7: mov ecx, dword ptr [eax + 4] */
    806     edx = ecx + ebp + 0x1; /* 0x47053CFA: lea edx, [ecx + ebp + 1] */
    807     /* cmp edx, MEM32(eax) */ /* 0x47053CFE: cmp edx, dword ptr [eax] */
    808     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
    809     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    810     _flag_k = FK_CMP;
    811     if (CMP_B(_flag_a, _flag_b)) goto L_47053D2A; /* 0x47053D00: jb 0x47053d2a */
    812 L_47053D02:
    813     eax = MEM32(eax + 0x8); /* 0x47053D02: mov eax, dword ptr [eax + 8] */
    814     /* test eax, eax */ /* 0x47053D05: test eax, eax */
    815     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    816     _cf = 0;
    817     _flag_k = FK_TEST;
    818     if (TEST_NZ(_flag_a, _flag_b)) goto L_47053D21; /* 0x47053D07: jne 0x47053d21 */
    819 L_47053D09:
    820     ecx = ebx; /* 0x47053D09: mov ecx, ebx */
    821     RECOMP_ICALL(0x47053BC0u); /* 0x47053D0B: call 0x47053bc0 */ /* not lifted */
    822     RECOMP_FLAGS_IN();
    823     ecx = MEM32(ebx + 0xC); /* 0x47053D10: mov ecx, dword ptr [ebx + 0xc] */
    824     MEM32(ecx + 0x8) = eax; /* 0x47053D13: mov dword ptr [ecx + 8], eax */
    825     edx = MEM32(ebx + 0xC); /* 0x47053D16: mov edx, dword ptr [ebx + 0xc] */
    826     eax = MEM32(edx + 0x8); /* 0x47053D19: mov eax, dword ptr [edx + 8] */
    827     MEM32(ebx + 0xC) = eax; /* 0x47053D1C: mov dword ptr [ebx + 0xc], eax */
    828     goto L_47053D2A; /* 0x47053D1F: jmp 0x47053d2a */
    829 L_47053D21:
    830     ecx = eax + 0xC; /* 0x47053D21: lea ecx, [eax + 0xc] */
    831     MEM32(ebx + 0xC) = eax; /* 0x47053D24: mov dword ptr [ebx + 0xc], eax */
    832     MEM32(eax + 0x4) = ecx; /* 0x47053D27: mov dword ptr [eax + 4], ecx */
    833 L_47053D2A:
    834     edx = MEM32(ebx + 0xC); /* 0x47053D2A: mov edx, dword ptr [ebx + 0xc] */
    835     eax = MEM32(edx + 0x4); /* 0x47053D2D: mov eax, dword ptr [edx + 4] */
    836     esi = MEM32(esp + 0x14); /* 0x47053D30: mov esi, dword ptr [esp + 0x14] */
    837     ecx = ebp; /* 0x47053D34: mov ecx, ebp */
    838     edx = ecx; /* 0x47053D36: mov edx, ecx */
    839     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47053D38: shr ecx, 2 */
    840     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    841     ecx = ecx >> 2u; /* 0x47053D38: shr ecx, 2 */
    842     edi = eax; /* 0x47053D3B: mov edi, eax */
    843     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47053D3D: 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; }
    844     ecx = edx; /* 0x47053D3F: mov ecx, edx */
    845     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
    846     ecx = ecx & 3; /* 0x47053D41: and ecx, 3 */
    847     _cf = 0;
    848     _flag_k = FK_TEST;
    849     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47053D44: 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; }
    850     MEM8(eax + ebp) = (uint8_t)(0); /* 0x47053D46: mov byte ptr [eax + ebp], 0 */
    851     ebx = MEM32(ebx + 0xC); /* 0x47053D4A: mov ebx, dword ptr [ebx + 0xc] */
    852     ecx = MEM32(ebx + 0x4); /* 0x47053D4D: mov ecx, dword ptr [ebx + 4] */
    853     edi = POP32_VAL(esp); /* 0x47053D50: pop edi */
    854     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(1);
    855     ebp = ebp + 1; /* 0x47053D51: inc ebp */
    856     _flag_k = FK_INC;
    857     esi = POP32_VAL(esp); /* 0x47053D52: pop esi */
    858     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp);
    859     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    860     ecx = ecx + ebp; /* 0x47053D53: add ecx, ebp */
    861     _flag_k = FK_ADD;
    862     ebp = POP32_VAL(esp); /* 0x47053D55: pop ebp */
    863     MEM32(ebx + 0x4) = ecx; /* 0x47053D56: mov dword ptr [ebx + 4], ecx */
    864     ebx = POP32_VAL(esp); /* 0x47053D59: pop ebx */
    865     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47053D5A: ret 8 */
    866     RECOMP_REGS_OUT();
    867 }
    868 
    869 void sub_47053D60(void) {
    870     int _fpu_cmp = 0;
    871     uint32_t _cf = 0;
    872     int _df = 1;
    873     uint32_t _flag_k = FK_NONE;
    874     uint32_t _flag_a = 0, _flag_b = 0;
    875     uint32_t _itail_tgt = 0;
    876     RECOMP_REGS_LOCALS
    877     RECOMP_ENTER(0x47053D60u);
    878 
    879 L_47053D60:
    880     eax = MEM32(ecx + 0x8); /* 0x47053D60: mov eax, dword ptr [ecx + 8] */
    881     MEM32(ecx + 0xC) = eax; /* 0x47053D63: mov dword ptr [ecx + 0xc], eax */
    882     ecx = eax + 0xC; /* 0x47053D66: lea ecx, [eax + 0xc] */
    883     MEM32(eax + 0x4) = ecx; /* 0x47053D69: mov dword ptr [eax + 4], ecx */
    884     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053D6C: ret  */
    885     RECOMP_REGS_OUT();
    886 }
    887 
    888 void sub_47053D70(void) {
    889     int _fpu_cmp = 0;
    890     uint32_t _cf = 0;
    891     int _df = 1;
    892     uint32_t _flag_k = FK_NONE;
    893     uint32_t _flag_a = 0, _flag_b = 0;
    894     uint32_t _itail_tgt = 0;
    895     RECOMP_REGS_LOCALS
    896     RECOMP_ENTER(0x47053D70u);
    897 
    898 L_47053D70:
    899     ecx = 0x4710E90Du; /* 0x47053D70: mov ecx, 0x4710e90d */
    900     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47053D75: call dword ptr [0x470ac1c8] */
    901     RECOMP_FLAGS_IN();
    902     PUSH32(esp, 0x47053D90u); /* 0x47053D7B: push 0x47053d90 */
    903     RECOMP_ICALL(0x470A32D9u); /* 0x47053D80: call 0x470a32d9 */ /* not lifted */
    904     RECOMP_FLAGS_IN();
    905     ecx = POP32_VAL(esp); /* 0x47053D85: pop ecx */
    906     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053D86: ret  */
    907     RECOMP_REGS_OUT();
    908 }
    909 
    910 void sub_47053D90(void) {
    911     int _fpu_cmp = 0;
    912     uint32_t _cf = 0;
    913     int _df = 1;
    914     uint32_t _flag_k = FK_NONE;
    915     uint32_t _flag_a = 0, _flag_b = 0;
    916     uint32_t _itail_tgt = 0;
    917     RECOMP_REGS_LOCALS
    918     RECOMP_ENTER(0x47053D90u);
    919 
    920 L_47053D90:
    921     ecx = 0x4710E90Du; /* 0x47053D90: mov ecx, 0x4710e90d */
    922 L_47053D95:
    923     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
    924     { RECOMP_REGS_OUT(); return; } /* end of function */
    925   _ljump:
    926     switch (_itail_tgt) {
    927       case 0x47053D90u: goto L_47053D90;
    928       case 0x47053D95u: goto L_47053D95;
    929       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    930     }
    931     RECOMP_REGS_OUT();
    932 }
    933 
    934 void sub_47053DA0(void) {
    935     int _fpu_cmp = 0;
    936     uint32_t _cf = 0;
    937     int _df = 1;
    938     uint32_t _flag_k = FK_NONE;
    939     uint32_t _flag_a = 0, _flag_b = 0;
    940     uint32_t _itail_tgt = 0;
    941     RECOMP_REGS_LOCALS
    942     RECOMP_ENTER(0x47053DA0u);
    943 
    944 L_47053DA0:
    945     ecx = 0x4710E90Cu; /* 0x47053DA0: mov ecx, 0x4710e90c */
    946     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47053DA5: call dword ptr [0x470ac1c4] */
    947     RECOMP_FLAGS_IN();
    948     PUSH32(esp, 0x47053DC0u); /* 0x47053DAB: push 0x47053dc0 */
    949     RECOMP_ICALL(0x470A32D9u); /* 0x47053DB0: call 0x470a32d9 */ /* not lifted */
    950     RECOMP_FLAGS_IN();
    951     ecx = POP32_VAL(esp); /* 0x47053DB5: pop ecx */
    952     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053DB6: ret  */
    953     RECOMP_REGS_OUT();
    954 }
    955 
    956 void sub_47053DC0(void) {
    957     int _fpu_cmp = 0;
    958     uint32_t _cf = 0;
    959     int _df = 1;
    960     uint32_t _flag_k = FK_NONE;
    961     uint32_t _flag_a = 0, _flag_b = 0;
    962     uint32_t _itail_tgt = 0;
    963     RECOMP_REGS_LOCALS
    964     RECOMP_ENTER(0x47053DC0u);
    965 
    966 L_47053DC0:
    967     ecx = 0x4710E90Cu; /* 0x47053DC0: mov ecx, 0x4710e90c */
    968 L_47053DC5:
    969     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
    970     { RECOMP_REGS_OUT(); return; } /* end of function */
    971   _ljump:
    972     switch (_itail_tgt) {
    973       case 0x47053DC0u: goto L_47053DC0;
    974       case 0x47053DC5u: goto L_47053DC5;
    975       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    976     }
    977     RECOMP_REGS_OUT();
    978 }
    979 
    980 void sub_47053DD0(void) {
    981     int _fpu_cmp = 0;
    982     uint32_t _cf = 0;
    983     int _df = 1;
    984     uint32_t _flag_k = FK_NONE;
    985     uint32_t _flag_a = 0, _flag_b = 0;
    986     uint32_t _itail_tgt = 0;
    987     RECOMP_REGS_LOCALS
    988     RECOMP_ENTER(0x47053DD0u);
    989 
    990 L_47053DD0:
    991     eax = ecx; /* 0x47053DD0: mov eax, ecx */
    992     ecx = MEM32(esp + 0x4); /* 0x47053DD2: mov ecx, dword ptr [esp + 4] */
    993     edx = MEM32(ecx); /* 0x47053DD6: mov edx, dword ptr [ecx] */
    994     MEM32(eax) = edx; /* 0x47053DD8: mov dword ptr [eax], edx */
    995     edx = MEM32(ecx + 0x4); /* 0x47053DDA: mov edx, dword ptr [ecx + 4] */
    996     MEM32(eax + 0x4) = edx; /* 0x47053DDD: mov dword ptr [eax + 4], edx */
    997     edx = MEM32(ecx + 0x8); /* 0x47053DE0: mov edx, dword ptr [ecx + 8] */
    998     MEM32(eax + 0x8) = edx; /* 0x47053DE3: mov dword ptr [eax + 8], edx */
    999     edx = MEM32(ecx + 0xC); /* 0x47053DE6: mov edx, dword ptr [ecx + 0xc] */
   1000     MEM32(eax + 0xC) = edx; /* 0x47053DE9: mov dword ptr [eax + 0xc], edx */
   1001     ecx = MEM32(ecx + 0x10); /* 0x47053DEC: mov ecx, dword ptr [ecx + 0x10] */
   1002     MEM32(eax + 0x10) = ecx; /* 0x47053DEF: mov dword ptr [eax + 0x10], ecx */
   1003     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47053DF2: ret 4 */
   1004     RECOMP_REGS_OUT();
   1005 }
   1006 
   1007 void sub_47053E00(void) {
   1008     int _fpu_cmp = 0;
   1009     uint32_t _cf = 0;
   1010     int _df = 1;
   1011     uint32_t _flag_k = FK_NONE;
   1012     uint32_t _flag_a = 0, _flag_b = 0;
   1013     uint32_t _itail_tgt = 0;
   1014     RECOMP_REGS_LOCALS
   1015     RECOMP_ENTER(0x47053E00u);
   1016 
   1017 L_47053E00:
   1018     edx = MEM32(esp + 0x8); /* 0x47053E00: mov edx, dword ptr [esp + 8] */
   1019     eax = ecx; /* 0x47053E04: mov eax, ecx */
   1020     ecx = MEM32(esp + 0x4); /* 0x47053E06: mov ecx, dword ptr [esp + 4] */
   1021     MEM32(eax) = ecx; /* 0x47053E0A: mov dword ptr [eax], ecx */
   1022     ecx = MEM32(esp + 0xC); /* 0x47053E0C: mov ecx, dword ptr [esp + 0xc] */
   1023     MEM32(eax + 0x8) = ecx; /* 0x47053E10: mov dword ptr [eax + 8], ecx */
   1024     ecx = MEM32(esp + 0x10); /* 0x47053E13: mov ecx, dword ptr [esp + 0x10] */
   1025     MEM32(eax + 0x4) = edx; /* 0x47053E17: mov dword ptr [eax + 4], edx */
   1026     edx = MEM32(ecx); /* 0x47053E1A: mov edx, dword ptr [ecx] */
   1027     MEM32(eax + 0xC) = edx; /* 0x47053E1C: mov dword ptr [eax + 0xc], edx */
   1028     ecx = MEM32(ecx + 0x4); /* 0x47053E1F: mov ecx, dword ptr [ecx + 4] */
   1029     MEM32(eax + 0x10) = ecx; /* 0x47053E22: mov dword ptr [eax + 0x10], ecx */
   1030     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47053E25: ret 0x10 */
   1031     RECOMP_REGS_OUT();
   1032 }
   1033 
   1034 void sub_47053E30(void) {
   1035     int _fpu_cmp = 0;
   1036     uint32_t _cf = 0;
   1037     int _df = 1;
   1038     uint32_t _flag_k = FK_NONE;
   1039     uint32_t _flag_a = 0, _flag_b = 0;
   1040     uint32_t _itail_tgt = 0;
   1041     RECOMP_REGS_LOCALS
   1042     RECOMP_ENTER(0x47053E30u);
   1043 
   1044 L_47053E30:
   1045     eax = ecx + 0xC; /* 0x47053E30: lea eax, [ecx + 0xc] */
   1046     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053E33: ret  */
   1047     RECOMP_REGS_OUT();
   1048 }
   1049 
   1050 void sub_47053E40(void) {
   1051     int _fpu_cmp = 0;
   1052     uint32_t _cf = 0;
   1053     int _df = 1;
   1054     uint32_t _flag_k = FK_NONE;
   1055     uint32_t _flag_a = 0, _flag_b = 0;
   1056     uint32_t _itail_tgt = 0;
   1057     RECOMP_REGS_LOCALS
   1058     RECOMP_ENTER(0x47053E40u);
   1059 
   1060 L_47053E40:
   1061     eax = MEM32(esp + 0x4); /* 0x47053E40: mov eax, dword ptr [esp + 4] */
   1062     edx = MEM32(eax); /* 0x47053E44: mov edx, dword ptr [eax] */
   1063     MEM32(ecx + 0xC) = edx; /* 0x47053E46: mov dword ptr [ecx + 0xc], edx */
   1064     eax = MEM32(eax + 0x4); /* 0x47053E49: mov eax, dword ptr [eax + 4] */
   1065     MEM32(ecx + 0x10) = eax; /* 0x47053E4C: mov dword ptr [ecx + 0x10], eax */
   1066     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47053E4F: ret 4 */
   1067     RECOMP_REGS_OUT();
   1068 }
   1069 
   1070 void sub_47053E60(void) {
   1071     int _fpu_cmp = 0;
   1072     uint32_t _cf = 0;
   1073     int _df = 1;
   1074     uint32_t _flag_k = FK_NONE;
   1075     uint32_t _flag_a = 0, _flag_b = 0;
   1076     uint32_t _itail_tgt = 0;
   1077     RECOMP_REGS_LOCALS
   1078     RECOMP_ENTER(0x47053E60u);
   1079 
   1080 L_47053E60:
   1081     eax = MEM32(esp + 0x4); /* 0x47053E60: mov eax, dword ptr [esp + 4] */
   1082     PUSH32(esp, esi); /* 0x47053E64: push esi */
   1083     esi = ecx; /* 0x47053E65: mov esi, ecx */
   1084     ecx = MEM32(eax); /* 0x47053E67: mov ecx, dword ptr [eax] */
   1085     eax = MEM32(esp + 0xC); /* 0x47053E69: mov eax, dword ptr [esp + 0xc] */
   1086     MEM32(esi) = ecx; /* 0x47053E6D: mov dword ptr [esi], ecx */
   1087     edx = MEM32(esi); /* 0x47053E6F: mov edx, dword ptr [esi] */
   1088     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1089     ecx = 0; /* 0x47053E71: xor ecx, ecx */
   1090     _cf = 0;
   1091     _flag_k = FK_TEST;
   1092     PUSH32(esp, eax); /* 0x47053E73: push eax */
   1093     PUSH32(esp, edx); /* 0x47053E74: push edx */
   1094     MEM32(esi + 0x4) = eax; /* 0x47053E75: mov dword ptr [esi + 4], eax */
   1095     MEM32(esi + 0x8) = ecx; /* 0x47053E78: mov dword ptr [esi + 8], ecx */
   1096     MEM32(esi + 0xC) = ecx; /* 0x47053E7B: mov dword ptr [esi + 0xc], ecx */
   1097     RECOMP_ICALL(0x47072FC0u); /* 0x47053E7E: call 0x47072fc0 */ /* not lifted */
   1098     RECOMP_FLAGS_IN();
   1099     MEM32(esi + 0x8) = eax; /* 0x47053E83: mov dword ptr [esi + 8], eax */
   1100     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1101     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1102     esp = esp + 8; /* 0x47053E86: add esp, 8 */
   1103     _flag_k = FK_ADD;
   1104     eax = esi; /* 0x47053E89: mov eax, esi */
   1105     esi = POP32_VAL(esp); /* 0x47053E8B: pop esi */
   1106     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47053E8C: ret 8 */
   1107     RECOMP_REGS_OUT();
   1108 }
   1109 
   1110 void sub_47053E90(void) {
   1111     int _fpu_cmp = 0;
   1112     uint32_t _cf = 0;
   1113     int _df = 1;
   1114     uint32_t _flag_k = FK_NONE;
   1115     uint32_t _flag_a = 0, _flag_b = 0;
   1116     uint32_t _itail_tgt = 0;
   1117     RECOMP_REGS_LOCALS
   1118     RECOMP_ENTER(0x47053E90u);
   1119 
   1120 L_47053E90:
   1121     edx = MEM32(ecx + 0xC); /* 0x47053E90: mov edx, dword ptr [ecx + 0xc] */
   1122     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1123     eax = 0; /* 0x47053E93: xor eax, eax */
   1124     _cf = 0;
   1125     _flag_k = FK_TEST;
   1126     /* test edx, edx */ /* 0x47053E95: test edx, edx */
   1127     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1128     _cf = 0;
   1129     _flag_k = FK_TEST;
   1130     SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47053E97: sete al */
   1131     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053E9A: ret  */
   1132     RECOMP_REGS_OUT();
   1133 }
   1134 
   1135 void sub_47053EA0(void) {
   1136     int _fpu_cmp = 0;
   1137     uint32_t _cf = 0;
   1138     int _df = 1;
   1139     uint32_t _flag_k = FK_NONE;
   1140     uint32_t _flag_a = 0, _flag_b = 0;
   1141     uint32_t _itail_tgt = 0;
   1142     RECOMP_REGS_LOCALS
   1143     RECOMP_ENTER(0x47053EA0u);
   1144 
   1145 L_47053EA0:
   1146     PUSH32(esp, esi); /* 0x47053EA0: push esi */
   1147     esi = ecx; /* 0x47053EA1: mov esi, ecx */
   1148     eax = MEM32(esi + 0xC); /* 0x47053EA3: mov eax, dword ptr [esi + 0xc] */
   1149     /* test eax, eax */ /* 0x47053EA6: test eax, eax */
   1150     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1151     _cf = 0;
   1152     _flag_k = FK_TEST;
   1153     if (TEST_NZ(_flag_a, _flag_b)) goto L_47053ECC; /* 0x47053EA8: jne 0x47053ecc */
   1154 L_47053EAA:
   1155     eax = MEM32(esi + 0x4); /* 0x47053EAA: mov eax, dword ptr [esi + 4] */
   1156     PUSH32(esp, edi); /* 0x47053EAD: push edi */
   1157     edi = MEM32(esi + 0x8); /* 0x47053EAE: mov edi, dword ptr [esi + 8] */
   1158     PUSH32(esp, eax); /* 0x47053EB1: push eax */
   1159     eax = MEM32(esi); /* 0x47053EB2: mov eax, dword ptr [esi] */
   1160     PUSH32(esp, edi); /* 0x47053EB4: push edi */
   1161     PUSH32(esp, eax); /* 0x47053EB5: push eax */
   1162     RECOMP_ICALL(0x47072FE0u); /* 0x47053EB6: call 0x47072fe0 */ /* not lifted */
   1163     RECOMP_FLAGS_IN();
   1164     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1165     ecx = 0; /* 0x47053EBB: xor ecx, ecx */
   1166     _cf = 0;
   1167     _flag_k = FK_TEST;
   1168     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1169     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1170     esp = esp + 0xCu; /* 0x47053EBD: add esp, 0xc */
   1171     _flag_k = FK_ADD;
   1172     /* cmp edi, eax */ /* 0x47053EC0: cmp edi, eax */
   1173     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1175     _flag_k = FK_CMP;
   1176     SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47053EC2: sete cl */
   1177     MEM32(esi + 0x8) = eax; /* 0x47053EC5: mov dword ptr [esi + 8], eax */
   1178     edi = POP32_VAL(esp); /* 0x47053EC8: pop edi */
   1179     MEM32(esi + 0xC) = ecx; /* 0x47053EC9: mov dword ptr [esi + 0xc], ecx */
   1180 L_47053ECC:
   1181     esi = POP32_VAL(esp); /* 0x47053ECC: pop esi */
   1182     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053ECD: ret  */
   1183     RECOMP_REGS_OUT();
   1184 }
   1185 
   1186 void sub_47053ED0(void) {
   1187     int _fpu_cmp = 0;
   1188     uint32_t _cf = 0;
   1189     int _df = 1;
   1190     uint32_t _flag_k = FK_NONE;
   1191     uint32_t _flag_a = 0, _flag_b = 0;
   1192     uint32_t _itail_tgt = 0;
   1193     RECOMP_REGS_LOCALS
   1194     RECOMP_ENTER(0x47053ED0u);
   1195 
   1196 L_47053ED0:
   1197     MEM32(0x4710E9B0) = 0x47108EE8u; /* 0x47053ED0: mov dword ptr [0x4710e9b0], 0x47108ee8 */
   1198     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053EDA: ret  */
   1199     RECOMP_REGS_OUT();
   1200 }
   1201 
   1202 void sub_47053EE0(void) {
   1203     int _fpu_cmp = 0;
   1204     uint32_t _cf = 0;
   1205     int _df = 1;
   1206     uint32_t _flag_k = FK_NONE;
   1207     uint32_t _flag_a = 0, _flag_b = 0;
   1208     uint32_t _itail_tgt = 0;
   1209     RECOMP_REGS_LOCALS
   1210     RECOMP_ENTER(0x47053EE0u);
   1211 
   1212 L_47053EE0:
   1213     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1214     eax = 0; /* 0x47053EE0: xor eax, eax */
   1215     _cf = 0;
   1216     _flag_k = FK_TEST;
   1217     MEM32(0x4710E9A8) = eax; /* 0x47053EE2: mov dword ptr [0x4710e9a8], eax */
   1218     MEM32(0x4710E9AC) = eax; /* 0x47053EE7: mov dword ptr [0x4710e9ac], eax */
   1219     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053EEC: ret  */
   1220     RECOMP_REGS_OUT();
   1221 }
   1222 
   1223 void sub_47053EF0(void) {
   1224     int _fpu_cmp = 0;
   1225     uint32_t _cf = 0;
   1226     int _df = 1;
   1227     uint32_t _flag_k = FK_NONE;
   1228     uint32_t _flag_a = 0, _flag_b = 0;
   1229     uint32_t _itail_tgt = 0;
   1230     RECOMP_REGS_LOCALS
   1231     RECOMP_ENTER(0x47053EF0u);
   1232 
   1233 L_47053EF0:
   1234     MEM32(0x4710E8F8) = 0x7FFFFFFFu; /* 0x47053EF0: mov dword ptr [0x4710e8f8], 0x7fffffff */
   1235     MEM32(0x4710E8FC) = 0x000F423Fu; /* 0x47053EFA: mov dword ptr [0x4710e8fc], 0xf423f */
   1236     ecx = 0x4710E8F8u; /* 0x47053F04: mov ecx, 0x4710e8f8 */
   1237     goto L_470543C0; /* 0x47053F09: jmp 0x470543c0 */
   1238 L_470543C0:
   1239     eax = MEM32(ecx + 0x4); /* 0x470543C0: mov eax, dword ptr [ecx + 4] */
   1240     edx = 0x000F4240u; /* 0x470543C3: mov edx, 0xf4240 */
   1241     /* cmp eax, edx */ /* 0x470543C8: cmp eax, edx */
   1242     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1244     _flag_k = FK_CMP;
   1245     PUSH32(esp, esi); /* 0x470543CA: push esi */
   1246     if (CMP_L(_flag_a, _flag_b)) goto L_470543E4; /* 0x470543CB: jl 0x470543e4 */
   1247 L_470543CD:
   1248     eax = MEM32(ecx); /* 0x470543CD: mov eax, dword ptr [ecx] */
   1249     esi = MEM32(ecx + 0x4); /* 0x470543CF: mov esi, dword ptr [ecx + 4] */
   1250 L_470543D2:
   1251     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFF0BDC0u);
   1252     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1253     esi = esi + 0xFFF0BDC0u; /* 0x470543D2: add esi, 0xfff0bdc0 */
   1254     _flag_k = FK_ADD;
   1255     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1256     eax = eax + 1; /* 0x470543D8: inc eax */
   1257     _flag_k = FK_INC;
   1258     /* cmp esi, edx */ /* 0x470543D9: cmp esi, edx */
   1259     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   1260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1261     _flag_k = FK_CMP;
   1262     RECOMP_BACKEDGE();
   1263     if (CMP_GE(_flag_a, _flag_b)) goto L_470543D2; /* 0x470543DB: jge 0x470543d2 */
   1264 L_470543DD:
   1265     MEM32(ecx + 0x4) = esi; /* 0x470543DD: mov dword ptr [ecx + 4], esi */
   1266     MEM32(ecx) = eax; /* 0x470543E0: mov dword ptr [ecx], eax */
   1267     goto L_47054401; /* 0x470543E2: jmp 0x47054401 */
   1268 L_470543E4:
   1269     /* cmp eax, 0xFFF0BDC0u */ /* 0x470543E4: cmp eax, 0xfff0bdc0 */
   1270     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFF0BDC0u);
   1271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1272     _flag_k = FK_CMP;
   1273     if (CMP_G(_flag_a, _flag_b)) goto L_47054401; /* 0x470543E9: jg 0x47054401 */
   1274 L_470543EB:
   1275     eax = MEM32(ecx); /* 0x470543EB: mov eax, dword ptr [ecx] */
   1276     esi = MEM32(ecx + 0x4); /* 0x470543ED: mov esi, dword ptr [ecx + 4] */
   1277     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1278     eax = eax - 1; /* 0x470543F0: dec eax */
   1279     _flag_k = FK_DEC;
   1280     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   1281     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1282     esi = esi + edx; /* 0x470543F1: add esi, edx */
   1283     _flag_k = FK_ADD;
   1284     MEM32(ecx) = eax; /* 0x470543F3: mov dword ptr [ecx], eax */
   1285     eax = esi; /* 0x470543F5: mov eax, esi */
   1286     /* cmp eax, 0xFFF0BDC0u */ /* 0x470543F7: cmp eax, 0xfff0bdc0 */
   1287     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFF0BDC0u);
   1288     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1289     _flag_k = FK_CMP;
   1290     MEM32(ecx + 0x4) = esi; /* 0x470543FC: mov dword ptr [ecx + 4], esi */
   1291     RECOMP_BACKEDGE();
   1292     if (CMP_LE(_flag_a, _flag_b)) goto L_470543EB; /* 0x470543FF: jle 0x470543eb */
   1293 L_47054401:
   1294     eax = MEM32(ecx); /* 0x47054401: mov eax, dword ptr [ecx] */
   1295     /* cmp eax, 1 */ /* 0x47054403: cmp eax, 1 */
   1296     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1297     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1298     _flag_k = FK_CMP;
   1299     esi = POP32_VAL(esp); /* 0x47054406: pop esi */
   1300     if (CMP_L(_flag_a, _flag_b)) goto L_4705441D; /* 0x47054407: jl 0x4705441d */
   1301 L_47054409:
   1302     edx = MEM32(ecx + 0x4); /* 0x47054409: mov edx, dword ptr [ecx + 4] */
   1303     /* test edx, edx */ /* 0x4705440C: test edx, edx */
   1304     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1305     _cf = 0;
   1306     _flag_k = FK_TEST;
   1307     if (TEST_NS(_flag_a, _flag_b)) goto L_4705441D; /* 0x4705440E: jge 0x4705441d */
   1308 L_47054410:
   1309     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1310     eax = eax - 1; /* 0x47054410: dec eax */
   1311     _flag_k = FK_DEC;
   1312     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x000F4240u);
   1313     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1314     edx = edx + 0x000F4240u; /* 0x47054411: add edx, 0xf4240 */
   1315     _flag_k = FK_ADD;
   1316     MEM32(ecx) = eax; /* 0x47054417: mov dword ptr [ecx], eax */
   1317     MEM32(ecx + 0x4) = edx; /* 0x47054419: mov dword ptr [ecx + 4], edx */
   1318     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705441C: ret  */
   1319 L_4705441D:
   1320     /* test eax, eax */ /* 0x4705441D: test eax, eax */
   1321     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1322     _cf = 0;
   1323     _flag_k = FK_TEST;
   1324     if (TEST_NS(_flag_a, _flag_b)) goto L_47054434; /* 0x4705441F: jge 0x47054434 */
   1325 L_47054421:
   1326     edx = MEM32(ecx + 0x4); /* 0x47054421: mov edx, dword ptr [ecx + 4] */
   1327     /* test edx, edx */ /* 0x47054424: test edx, edx */
   1328     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1329     _cf = 0;
   1330     _flag_k = FK_TEST;
   1331     if (TEST_LE(_flag_a, _flag_b)) goto L_47054434; /* 0x47054426: jle 0x47054434 */
   1332 L_47054428:
   1333     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1334     eax = eax + 1; /* 0x47054428: inc eax */
   1335     _flag_k = FK_INC;
   1336     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFF0BDC0u);
   1337     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1338     edx = edx + 0xFFF0BDC0u; /* 0x47054429: add edx, 0xfff0bdc0 */
   1339     _flag_k = FK_ADD;
   1340     MEM32(ecx) = eax; /* 0x4705442F: mov dword ptr [ecx], eax */
   1341     MEM32(ecx + 0x4) = edx; /* 0x47054431: mov dword ptr [ecx + 4], edx */
   1342 L_47054434:
   1343     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054434: ret  */
   1344     RECOMP_REGS_OUT();
   1345 }
   1346 
   1347 void sub_47053F10(void) {
   1348     int _fpu_cmp = 0;
   1349     uint32_t _cf = 0;
   1350     int _df = 1;
   1351     uint32_t _flag_k = FK_NONE;
   1352     uint32_t _flag_a = 0, _flag_b = 0;
   1353     uint32_t _itail_tgt = 0;
   1354     RECOMP_REGS_LOCALS
   1355     RECOMP_ENTER(0x47053F10u);
   1356 
   1357 L_47053F10:
   1358     eax = MEM32(esp + 0x4); /* 0x47053F10: mov eax, dword ptr [esp + 4] */
   1359     PUSH32(esp, ebx); /* 0x47053F14: push ebx */
   1360     ebx = MEM32(eax + 0x4); /* 0x47053F15: mov ebx, dword ptr [eax + 4] */
   1361     PUSH32(esp, esi); /* 0x47053F18: push esi */
   1362     PUSH32(esp, edi); /* 0x47053F19: push edi */
   1363     edi = MEM32(eax); /* 0x47053F1A: mov edi, dword ptr [eax] */
   1364     PUSH32(esp, 0); /* 0x47053F1C: push 0 */
   1365     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x2AC18000u);
   1366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1367     edi = edi + 0x2AC18000u; /* 0x47053F1E: add edi, 0x2ac18000 */
   1368     _flag_k = FK_ADD;
   1369     PUSH32(esp, 0x00989680u); /* 0x47053F24: push 0x989680 */
   1370     { uint32_t _aa = ebx, _ab = 0xFE624E21u, _ac = _cf; /* 0x47053F29: adc ebx, 0xfe624e21 */
   1371       ebx = _aa + _ab + _ac;
   1372       _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0;
   1373       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1374     PUSH32(esp, ebx); /* 0x47053F2F: push ebx */
   1375     PUSH32(esp, edi); /* 0x47053F30: push edi */
   1376     esi = ecx; /* 0x47053F31: mov esi, ecx */
   1377     RECOMP_ICALL(0x470A3500u); /* 0x47053F33: call 0x470a3500 */ /* not lifted */
   1378     RECOMP_FLAGS_IN();
   1379     PUSH32(esp, 0); /* 0x47053F38: push 0 */
   1380     PUSH32(esp, 0x00989680u); /* 0x47053F3A: push 0x989680 */
   1381     PUSH32(esp, ebx); /* 0x47053F3F: push ebx */
   1382     PUSH32(esp, edi); /* 0x47053F40: push edi */
   1383     MEM32(esi) = eax; /* 0x47053F41: mov dword ptr [esi], eax */
   1384     RECOMP_ICALL(0x470A3640u); /* 0x47053F43: call 0x470a3640 */ /* not lifted */
   1385     RECOMP_FLAGS_IN();
   1386     PUSH32(esp, 0); /* 0x47053F48: push 0 */
   1387     PUSH32(esp, 0xAu); /* 0x47053F4A: push 0xa */
   1388     PUSH32(esp, edx); /* 0x47053F4C: push edx */
   1389     PUSH32(esp, eax); /* 0x47053F4D: push eax */
   1390     RECOMP_ICALL(0x470A3500u); /* 0x47053F4E: call 0x470a3500 */ /* not lifted */
   1391     RECOMP_FLAGS_IN();
   1392     MEM32(esi + 0x4) = eax; /* 0x47053F53: mov dword ptr [esi + 4], eax */
   1393     edi = POP32_VAL(esp); /* 0x47053F56: pop edi */
   1394     eax = esi; /* 0x47053F57: mov eax, esi */
   1395     esi = POP32_VAL(esp); /* 0x47053F59: pop esi */
   1396     ebx = POP32_VAL(esp); /* 0x47053F5A: pop ebx */
   1397     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47053F5B: ret 4 */
   1398     RECOMP_REGS_OUT();
   1399 }
   1400 
   1401 void sub_47053F60(void) {
   1402     int _fpu_cmp = 0;
   1403     uint32_t _cf = 0;
   1404     int _df = 1;
   1405     uint32_t _flag_k = FK_NONE;
   1406     uint32_t _flag_a = 0, _flag_b = 0;
   1407     uint32_t _itail_tgt = 0;
   1408     RECOMP_REGS_LOCALS
   1409     RECOMP_ENTER(0x47053F60u);
   1410 
   1411 L_47053F60:
   1412     eax = MEM32(esp + 0x4); /* 0x47053F60: mov eax, dword ptr [esp + 4] */
   1413     PUSH32(esp, ebx); /* 0x47053F64: push ebx */
   1414     PUSH32(esp, esi); /* 0x47053F65: push esi */
   1415     esi = MEM32(eax); /* 0x47053F66: mov esi, dword ptr [eax] */
   1416     PUSH32(esp, edi); /* 0x47053F68: push edi */
   1417     edi = MEM32(eax + 0x4); /* 0x47053F69: mov edi, dword ptr [eax + 4] */
   1418     PUSH32(esp, 0); /* 0x47053F6C: push 0 */
   1419     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2AC18000u);
   1420     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1421     esi = esi + 0x2AC18000u; /* 0x47053F6E: add esi, 0x2ac18000 */
   1422     _flag_k = FK_ADD;
   1423     PUSH32(esp, 0x00989680u); /* 0x47053F74: push 0x989680 */
   1424     { uint32_t _aa = edi, _ab = 0xFE624E21u, _ac = _cf; /* 0x47053F79: adc edi, 0xfe624e21 */
   1425       edi = _aa + _ab + _ac;
   1426       _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0;
   1427       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1428     PUSH32(esp, edi); /* 0x47053F7F: push edi */
   1429     PUSH32(esp, esi); /* 0x47053F80: push esi */
   1430     ebx = ecx; /* 0x47053F81: mov ebx, ecx */
   1431     RECOMP_ICALL(0x470A3500u); /* 0x47053F83: call 0x470a3500 */ /* not lifted */
   1432     RECOMP_FLAGS_IN();
   1433     PUSH32(esp, 0); /* 0x47053F88: push 0 */
   1434     PUSH32(esp, 0x00989680u); /* 0x47053F8A: push 0x989680 */
   1435     PUSH32(esp, edi); /* 0x47053F8F: push edi */
   1436     PUSH32(esp, esi); /* 0x47053F90: push esi */
   1437     MEM32(ebx) = eax; /* 0x47053F91: mov dword ptr [ebx], eax */
   1438     RECOMP_ICALL(0x470A3640u); /* 0x47053F93: call 0x470a3640 */ /* not lifted */
   1439     RECOMP_FLAGS_IN();
   1440     PUSH32(esp, 0); /* 0x47053F98: push 0 */
   1441     PUSH32(esp, 0xAu); /* 0x47053F9A: push 0xa */
   1442     PUSH32(esp, edx); /* 0x47053F9C: push edx */
   1443     PUSH32(esp, eax); /* 0x47053F9D: push eax */
   1444     RECOMP_ICALL(0x470A3500u); /* 0x47053F9E: call 0x470a3500 */ /* not lifted */
   1445     RECOMP_FLAGS_IN();
   1446     edi = POP32_VAL(esp); /* 0x47053FA3: pop edi */
   1447     esi = POP32_VAL(esp); /* 0x47053FA4: pop esi */
   1448     MEM32(ebx + 0x4) = eax; /* 0x47053FA5: mov dword ptr [ebx + 4], eax */
   1449     ebx = POP32_VAL(esp); /* 0x47053FA8: pop ebx */
   1450     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47053FA9: ret 4 */
   1451     RECOMP_REGS_OUT();
   1452 }
   1453 
   1454 void sub_47053FB0(void) {
   1455     int _fpu_cmp = 0;
   1456     uint32_t _cf = 0;
   1457     int _df = 1;
   1458     uint32_t _flag_k = FK_NONE;
   1459     uint32_t _flag_a = 0, _flag_b = 0;
   1460     uint32_t _itail_tgt = 0;
   1461     RECOMP_REGS_LOCALS
   1462     RECOMP_ENTER(0x47053FB0u);
   1463 
   1464 L_47053FB0:
   1465     PUSH32(esp, esi); /* 0x47053FB0: push esi */
   1466     PUSH32(esp, edi); /* 0x47053FB1: push edi */
   1467     edi = ecx; /* 0x47053FB2: mov edi, ecx */
   1468     eax = MEM32(edi); /* 0x47053FB4: mov eax, dword ptr [edi] */
   1469     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47053FB6: cdq  */
   1470     PUSH32(esp, 0); /* 0x47053FB7: push 0 */
   1471     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB6109100u);
   1472     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1473     eax = eax + 0xB6109100u; /* 0x47053FB9: add eax, 0xb6109100 */
   1474     _flag_k = FK_ADD;
   1475     PUSH32(esp, 0x00989680u); /* 0x47053FBE: push 0x989680 */
   1476     { uint32_t _aa = edx, _ab = 2, _ac = _cf; /* 0x47053FC3: adc edx, 2 */
   1477       edx = _aa + _ab + _ac;
   1478       _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0;
   1479       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1480     PUSH32(esp, edx); /* 0x47053FC6: push edx */
   1481     PUSH32(esp, eax); /* 0x47053FC7: push eax */
   1482     RECOMP_ICALL(0x470A34C0u); /* 0x47053FC8: call 0x470a34c0 */ /* not lifted */
   1483     RECOMP_FLAGS_IN();
   1484     edi = MEM32(edi + 0x4); /* 0x47053FCD: mov edi, dword ptr [edi + 4] */
   1485     ecx = eax; /* 0x47053FD0: mov ecx, eax */
   1486     eax = edi + edi * 4; /* 0x47053FD2: lea eax, [edi + edi*4] */
   1487     if (1u) _cf = (((eax) >> 31) & 1u); /* 0x47053FD5: shl eax, 1 */
   1488     if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1489     eax = eax << 1u; /* 0x47053FD5: shl eax, 1 */
   1490     esi = edx; /* 0x47053FD7: mov esi, edx */
   1491     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47053FD9: cdq  */
   1492     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1493     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1494     ecx = ecx + eax; /* 0x47053FDA: add ecx, eax */
   1495     _flag_k = FK_ADD;
   1496     eax = MEM32(esp + 0xC); /* 0x47053FDC: mov eax, dword ptr [esp + 0xc] */
   1497     { uint32_t _aa = esi, _ab = edx, _ac = _cf; /* 0x47053FE0: adc esi, edx */
   1498       esi = _aa + _ab + _ac;
   1499       _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0;
   1500       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1501     MEM32(eax) = ecx; /* 0x47053FE2: mov dword ptr [eax], ecx */
   1502     edi = POP32_VAL(esp); /* 0x47053FE4: pop edi */
   1503     MEM32(eax + 0x4) = esi; /* 0x47053FE5: mov dword ptr [eax + 4], esi */
   1504     esi = POP32_VAL(esp); /* 0x47053FE8: pop esi */
   1505     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47053FE9: ret 4 */
   1506     RECOMP_REGS_OUT();
   1507 }
   1508 
   1509 void sub_47053FF0(void) {
   1510     int _fpu_cmp = 0;
   1511     uint32_t _cf = 0;
   1512     int _df = 1;
   1513     uint32_t _flag_k = FK_NONE;
   1514     uint32_t _flag_a = 0, _flag_b = 0;
   1515     uint32_t _itail_tgt = 0;
   1516     RECOMP_REGS_LOCALS
   1517     RECOMP_ENTER(0x47053FF0u);
   1518 
   1519 L_47053FF0:
   1520     eax = ecx; /* 0x47053FF0: mov eax, ecx */
   1521     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1522     ecx = 0; /* 0x47053FF2: xor ecx, ecx */
   1523     _cf = 0;
   1524     _flag_k = FK_TEST;
   1525     MEM32(eax) = ecx; /* 0x47053FF4: mov dword ptr [eax], ecx */
   1526     MEM32(eax + 0x4) = ecx; /* 0x47053FF6: mov dword ptr [eax + 4], ecx */
   1527     MEM32(eax + 0x8) = ecx; /* 0x47053FF9: mov dword ptr [eax + 8], ecx */
   1528     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47053FFC: ret  */
   1529     RECOMP_REGS_OUT();
   1530 }
   1531 
   1532 void sub_47054000(void) {
   1533     int _fpu_cmp = 0;
   1534     uint32_t _cf = 0;
   1535     int _df = 1;
   1536     uint32_t _flag_k = FK_NONE;
   1537     uint32_t _flag_a = 0, _flag_b = 0;
   1538     uint32_t _itail_tgt = 0;
   1539     RECOMP_REGS_LOCALS
   1540     RECOMP_ENTER(0x47054000u);
   1541 
   1542 L_47054000:
   1543     eax = MEM32(esp + 0x4); /* 0x47054000: mov eax, dword ptr [esp + 4] */
   1544     edx = MEM32(eax); /* 0x47054004: mov edx, dword ptr [eax] */
   1545     /* cmp edx, MEM32(ecx) */ /* 0x47054006: cmp edx, dword ptr [ecx] */
   1546     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx));
   1547     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1548     _flag_k = FK_CMP;
   1549     if (CMP_NE(_flag_a, _flag_b)) goto L_47054022; /* 0x47054008: jne 0x47054022 */
   1550 L_4705400A:
   1551     edx = MEM32(eax + 0x4); /* 0x4705400A: mov edx, dword ptr [eax + 4] */
   1552     /* cmp edx, MEM32(ecx + 0x4) */ /* 0x4705400D: cmp edx, dword ptr [ecx + 4] */
   1553     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1554     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1555     _flag_k = FK_CMP;
   1556     if (CMP_NE(_flag_a, _flag_b)) goto L_47054022; /* 0x47054010: jne 0x47054022 */
   1557 L_47054012:
   1558     eax = MEM32(eax + 0x8); /* 0x47054012: mov eax, dword ptr [eax + 8] */
   1559     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x47054015: cmp eax, dword ptr [ecx + 8] */
   1560     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1561     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1562     _flag_k = FK_CMP;
   1563     if (CMP_NE(_flag_a, _flag_b)) goto L_47054022; /* 0x47054018: jne 0x47054022 */
   1564 L_4705401A:
   1565     eax = 1; /* 0x4705401A: mov eax, 1 */
   1566     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705401F: ret 4 */
   1567 L_47054022:
   1568     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1569     eax = 0; /* 0x47054022: xor eax, eax */
   1570     _cf = 0;
   1571     _flag_k = FK_TEST;
   1572     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47054024: ret 4 */
   1573     RECOMP_REGS_OUT();
   1574 }
   1575 
   1576 void sub_47054030(void) {
   1577     int _fpu_cmp = 0;
   1578     uint32_t _cf = 0;
   1579     int _df = 1;
   1580     uint32_t _flag_k = FK_NONE;
   1581     uint32_t _flag_a = 0, _flag_b = 0;
   1582     uint32_t _itail_tgt = 0;
   1583     RECOMP_REGS_LOCALS
   1584     RECOMP_ENTER(0x47054030u);
   1585 
   1586 L_47054030:
   1587     eax = MEM32(esp + 0x4); /* 0x47054030: mov eax, dword ptr [esp + 4] */
   1588     edx = MEM32(eax); /* 0x47054034: mov edx, dword ptr [eax] */
   1589     /* cmp edx, MEM32(ecx) */ /* 0x47054036: cmp edx, dword ptr [ecx] */
   1590     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx));
   1591     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1592     _flag_k = FK_CMP;
   1593     if (CMP_NE(_flag_a, _flag_b)) goto L_4705405B; /* 0x47054038: jne 0x4705405b */
   1594 L_4705403A:
   1595     edx = MEM32(eax + 0x4); /* 0x4705403A: mov edx, dword ptr [eax + 4] */
   1596     /* cmp edx, MEM32(ecx + 0x4) */ /* 0x4705403D: cmp edx, dword ptr [ecx + 4] */
   1597     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1599     _flag_k = FK_CMP;
   1600     if (CMP_NE(_flag_a, _flag_b)) goto L_4705405B; /* 0x47054040: jne 0x4705405b */
   1601 L_47054042:
   1602     eax = MEM32(eax + 0x8); /* 0x47054042: mov eax, dword ptr [eax + 8] */
   1603     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x47054045: cmp eax, dword ptr [ecx + 8] */
   1604     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1605     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1606     _flag_k = FK_CMP;
   1607     if (CMP_NE(_flag_a, _flag_b)) goto L_4705405B; /* 0x47054048: jne 0x4705405b */
   1608 L_4705404A:
   1609     eax = 1; /* 0x4705404A: mov eax, 1 */
   1610     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1611     ecx = 0; /* 0x4705404F: xor ecx, ecx */
   1612     _cf = 0;
   1613     _flag_k = FK_TEST;
   1614     /* test eax, eax */ /* 0x47054051: test eax, eax */
   1615     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1616     _cf = 0;
   1617     _flag_k = FK_TEST;
   1618     SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47054053: sete cl */
   1619     eax = ecx; /* 0x47054056: mov eax, ecx */
   1620     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47054058: ret 4 */
   1621 L_4705405B:
   1622     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1623     eax = 0; /* 0x4705405B: xor eax, eax */
   1624     _cf = 0;
   1625     _flag_k = FK_TEST;
   1626     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1627     ecx = 0; /* 0x4705405D: xor ecx, ecx */
   1628     _cf = 0;
   1629     _flag_k = FK_TEST;
   1630     /* test eax, eax */ /* 0x4705405F: test eax, eax */
   1631     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1632     _cf = 0;
   1633     _flag_k = FK_TEST;
   1634     SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47054061: sete cl */
   1635     eax = ecx; /* 0x47054064: mov eax, ecx */
   1636     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47054066: ret 4 */
   1637     RECOMP_REGS_OUT();
   1638 }
   1639 
   1640 void sub_47054070(void) {
   1641     int _fpu_cmp = 0;
   1642     uint32_t _cf = 0;
   1643     int _df = 1;
   1644     uint32_t _flag_k = FK_NONE;
   1645     uint32_t _flag_a = 0, _flag_b = 0;
   1646     uint32_t _itail_tgt = 0;
   1647     RECOMP_REGS_LOCALS
   1648     RECOMP_ENTER(0x47054070u);
   1649 
   1650 L_47054070:
   1651     PUSH32(esp, esi); /* 0x47054070: push esi */
   1652     PUSH32(esp, 0x10u); /* 0x47054071: push 0x10 */
   1653     esi = ecx; /* 0x47054073: mov esi, ecx */
   1654     RECOMP_ICALL(0x470A33F2u); /* 0x47054075: call 0x470a33f2 */ /* not lifted */
   1655     RECOMP_FLAGS_IN();
   1656     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1658     esp = esp + 4; /* 0x4705407A: add esp, 4 */
   1659     _flag_k = FK_ADD;
   1660     /* test eax, eax */ /* 0x4705407D: test eax, eax */
   1661     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1662     _cf = 0;
   1663     _flag_k = FK_TEST;
   1664     if (TEST_Z(_flag_a, _flag_b)) goto L_470540A0; /* 0x4705407F: je 0x470540a0 */
   1665 L_47054081:
   1666     ecx = MEM32(esp + 0x8); /* 0x47054081: mov ecx, dword ptr [esp + 8] */
   1667     PUSH32(esp, edi); /* 0x47054085: push edi */
   1668     edi = MEM32(ecx); /* 0x47054086: mov edi, dword ptr [ecx] */
   1669     edx = eax; /* 0x47054088: mov edx, eax */
   1670     MEM32(edx) = edi; /* 0x4705408A: mov dword ptr [edx], edi */
   1671     edi = MEM32(ecx + 0x4); /* 0x4705408C: mov edi, dword ptr [ecx + 4] */
   1672     MEM32(edx + 0x4) = edi; /* 0x4705408F: mov dword ptr [edx + 4], edi */
   1673     ecx = MEM32(ecx + 0x8); /* 0x47054092: mov ecx, dword ptr [ecx + 8] */
   1674     edi = POP32_VAL(esp); /* 0x47054095: pop edi */
   1675     MEM32(eax + 0xC) = esi; /* 0x47054096: mov dword ptr [eax + 0xc], esi */
   1676     MEM32(edx + 0x8) = ecx; /* 0x47054099: mov dword ptr [edx + 8], ecx */
   1677     esi = POP32_VAL(esp); /* 0x4705409C: pop esi */
   1678     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705409D: ret 4 */
   1679 L_470540A0:
   1680     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470540A0: call dword ptr [0x470ac3c8] */
   1681     RECOMP_FLAGS_IN();
   1682     MEM32(eax) = 0xCu; /* 0x470540A6: mov dword ptr [eax], 0xc */
   1683     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1684     eax = 0; /* 0x470540AC: xor eax, eax */
   1685     _cf = 0;
   1686     _flag_k = FK_TEST;
   1687     esi = POP32_VAL(esp); /* 0x470540AE: pop esi */
   1688     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470540AF: ret 4 */
   1689     RECOMP_REGS_OUT();
   1690 }
   1691 
   1692 void sub_470540C0(void) {
   1693     int _fpu_cmp = 0;
   1694     uint32_t _cf = 0;
   1695     int _df = 1;
   1696     uint32_t _flag_k = FK_NONE;
   1697     uint32_t _flag_a = 0, _flag_b = 0;
   1698     uint32_t _itail_tgt = 0;
   1699     RECOMP_REGS_LOCALS
   1700     RECOMP_ENTER(0x470540C0u);
   1701 
   1702 L_470540C0:
   1703     PUSH32(esp, esi); /* 0x470540C0: push esi */
   1704     PUSH32(esp, 0x10u); /* 0x470540C1: push 0x10 */
   1705     esi = ecx; /* 0x470540C3: mov esi, ecx */
   1706     RECOMP_ICALL(0x470A33F2u); /* 0x470540C5: call 0x470a33f2 */ /* not lifted */
   1707     RECOMP_FLAGS_IN();
   1708     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1709     ecx = 0; /* 0x470540CA: xor ecx, ecx */
   1710     _cf = 0;
   1711     _flag_k = FK_TEST;
   1712     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1713     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1714     esp = esp + 4; /* 0x470540CC: add esp, 4 */
   1715     _flag_k = FK_ADD;
   1716     /* cmp eax, ecx */ /* 0x470540CF: cmp eax, ecx */
   1717     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1718     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1719     _flag_k = FK_CMP;
   1720     if (CMP_EQ(_flag_a, _flag_b)) goto L_470540E0; /* 0x470540D1: je 0x470540e0 */
   1721 L_470540D3:
   1722     MEM32(eax) = ecx; /* 0x470540D3: mov dword ptr [eax], ecx */
   1723     MEM32(eax + 0x4) = ecx; /* 0x470540D5: mov dword ptr [eax + 4], ecx */
   1724     MEM32(eax + 0x8) = ecx; /* 0x470540D8: mov dword ptr [eax + 8], ecx */
   1725     MEM32(eax + 0xC) = ecx; /* 0x470540DB: mov dword ptr [eax + 0xc], ecx */
   1726     goto L_470540E2; /* 0x470540DE: jmp 0x470540e2 */
   1727 L_470540E0:
   1728     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1729     eax = 0; /* 0x470540E0: xor eax, eax */
   1730     _cf = 0;
   1731     _flag_k = FK_TEST;
   1732 L_470540E2:
   1733     /* cmp eax, ecx */ /* 0x470540E2: cmp eax, ecx */
   1734     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1736     _flag_k = FK_CMP;
   1737     MEM32(esi) = eax; /* 0x470540E4: mov dword ptr [esi], eax */
   1738     if (CMP_NE(_flag_a, _flag_b)) goto L_470540F4; /* 0x470540E6: jne 0x470540f4 */
   1739 L_470540E8:
   1740     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470540E8: call dword ptr [0x470ac3c8] */
   1741     RECOMP_FLAGS_IN();
   1742     MEM32(eax) = 0xCu; /* 0x470540EE: mov dword ptr [eax], 0xc */
   1743 L_470540F4:
   1744     eax = esi; /* 0x470540F4: mov eax, esi */
   1745     esi = POP32_VAL(esp); /* 0x470540F6: pop esi */
   1746     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470540F7: ret  */
   1747     RECOMP_REGS_OUT();
   1748 }
   1749 
   1750 void sub_47054100(void) {
   1751     int _fpu_cmp = 0;
   1752     uint32_t _cf = 0;
   1753     int _df = 1;
   1754     uint32_t _flag_k = FK_NONE;
   1755     uint32_t _flag_a = 0, _flag_b = 0;
   1756     uint32_t _itail_tgt = 0;
   1757     RECOMP_REGS_LOCALS
   1758     RECOMP_ENTER(0x47054100u);
   1759 
   1760 L_47054100:
   1761     PUSH32(esp, esi); /* 0x47054100: push esi */
   1762     PUSH32(esp, edi); /* 0x47054101: push edi */
   1763     edi = ecx; /* 0x47054102: mov edi, ecx */
   1764     esi = MEM32(edi); /* 0x47054104: mov esi, dword ptr [edi] */
   1765     /* test esi, esi */ /* 0x47054106: test esi, esi */
   1766     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1767     _cf = 0;
   1768     _flag_k = FK_TEST;
   1769     if (TEST_Z(_flag_a, _flag_b)) goto L_47054121; /* 0x47054108: je 0x47054121 */
   1770 L_4705410A:
   1771     ecx = MEM32(esi + 0xC); /* 0x4705410A: mov ecx, dword ptr [esi + 0xc] */
   1772     /* test ecx, ecx */ /* 0x4705410D: test ecx, ecx */
   1773     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1774     _cf = 0;
   1775     _flag_k = FK_TEST;
   1776     if (TEST_Z(_flag_a, _flag_b)) goto L_47054118; /* 0x4705410F: je 0x47054118 */
   1777 L_47054111:
   1778     PUSH32(esp, 1); /* 0x47054111: push 1 */
   1779     RECOMP_ICALL(0x47054130u); /* 0x47054113: call 0x47054130 */ /* not lifted */
   1780     RECOMP_FLAGS_IN();
   1781 L_47054118:
   1782     PUSH32(esp, esi); /* 0x47054118: push esi */
   1783     RECOMP_ICALL(0x470A32A2u); /* 0x47054119: call 0x470a32a2 */ /* not lifted */
   1784     RECOMP_FLAGS_IN();
   1785     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1786     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1787     esp = esp + 4; /* 0x4705411E: add esp, 4 */
   1788     _flag_k = FK_ADD;
   1789 L_47054121:
   1790     MEM32(edi) = 0; /* 0x47054121: mov dword ptr [edi], 0 */
   1791     edi = POP32_VAL(esp); /* 0x47054127: pop edi */
   1792     esi = POP32_VAL(esp); /* 0x47054128: pop esi */
   1793     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054129: ret  */
   1794     RECOMP_REGS_OUT();
   1795 }
   1796 
   1797 void sub_47054130(void) {
   1798     int _fpu_cmp = 0;
   1799     uint32_t _cf = 0;
   1800     int _df = 1;
   1801     uint32_t _flag_k = FK_NONE;
   1802     uint32_t _flag_a = 0, _flag_b = 0;
   1803     uint32_t _itail_tgt = 0;
   1804     RECOMP_REGS_LOCALS
   1805     RECOMP_ENTER(0x47054130u);
   1806 
   1807 L_47054130:
   1808     PUSH32(esp, esi); /* 0x47054130: push esi */
   1809     esi = ecx; /* 0x47054131: mov esi, ecx */
   1810     ecx = MEM32(esi + 0xC); /* 0x47054133: mov ecx, dword ptr [esi + 0xc] */
   1811     /* test ecx, ecx */ /* 0x47054136: test ecx, ecx */
   1812     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1813     _cf = 0;
   1814     _flag_k = FK_TEST;
   1815     if (TEST_Z(_flag_a, _flag_b)) goto L_47054141; /* 0x47054138: je 0x47054141 */
   1816 L_4705413A:
   1817     PUSH32(esp, 1); /* 0x4705413A: push 1 */
   1818     RECOMP_ICALL(0x47054130u); /* 0x4705413C: call 0x47054130 */ /* not lifted */
   1819     RECOMP_FLAGS_IN();
   1820 L_47054141:
   1821     /* test MEM8(esp + 0x8), 1 */ /* 0x47054141: test byte ptr [esp + 8], 1 */
   1822     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   1823     _cf = 0;
   1824     _flag_k = FK_NARROW(FK_TEST, 24);
   1825     if (TEST_Z(_flag_a, _flag_b)) goto L_47054151; /* 0x47054146: je 0x47054151 */
   1826 L_47054148:
   1827     PUSH32(esp, esi); /* 0x47054148: push esi */
   1828     RECOMP_ICALL(0x470A32A2u); /* 0x47054149: call 0x470a32a2 */ /* not lifted */
   1829     RECOMP_FLAGS_IN();
   1830     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1831     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1832     esp = esp + 4; /* 0x4705414E: add esp, 4 */
   1833     _flag_k = FK_ADD;
   1834 L_47054151:
   1835     eax = esi; /* 0x47054151: mov eax, esi */
   1836     esi = POP32_VAL(esp); /* 0x47054153: pop esi */
   1837     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47054154: ret 4 */
   1838     RECOMP_REGS_OUT();
   1839 }
   1840 
   1841 void sub_47054160(void) {
   1842     int _fpu_cmp = 0;
   1843     uint32_t _cf = 0;
   1844     int _df = 1;
   1845     uint32_t _flag_k = FK_NONE;
   1846     uint32_t _flag_a = 0, _flag_b = 0;
   1847     uint32_t _itail_tgt = 0;
   1848     RECOMP_REGS_LOCALS
   1849     RECOMP_ENTER(0x47054160u);
   1850 
   1851 L_47054160:
   1852     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1853     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1854     esp = esp - 0xCu; /* 0x47054160: sub esp, 0xc */
   1855     _flag_k = FK_CMP;
   1856     eax = MEM32(esp + 0x10); /* 0x47054163: mov eax, dword ptr [esp + 0x10] */
   1857     edx = MEM32(esp + 0x18); /* 0x47054167: mov edx, dword ptr [esp + 0x18] */
   1858     PUSH32(esp, esi); /* 0x4705416B: push esi */
   1859     esi = ecx; /* 0x4705416C: mov esi, ecx */
   1860     ecx = MEM32(esp + 0x18); /* 0x4705416E: mov ecx, dword ptr [esp + 0x18] */
   1861     MEM32(esp + 0x4) = eax; /* 0x47054172: mov dword ptr [esp + 4], eax */
   1862     eax = esp + 0x4; /* 0x47054176: lea eax, [esp + 4] */
   1863     MEM32(esp + 0x8) = ecx; /* 0x4705417A: mov dword ptr [esp + 8], ecx */
   1864     ecx = MEM32(esi); /* 0x4705417E: mov ecx, dword ptr [esi] */
   1865     PUSH32(esp, eax); /* 0x47054180: push eax */
   1866     MEM32(esp + 0x10) = edx; /* 0x47054181: mov dword ptr [esp + 0x10], edx */
   1867     RECOMP_ICALL(0x47054070u); /* 0x47054185: call 0x47054070 */ /* not lifted */
   1868     RECOMP_FLAGS_IN();
   1869     /* test eax, eax */ /* 0x4705418A: test eax, eax */
   1870     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1871     _cf = 0;
   1872     _flag_k = FK_TEST;
   1873     if (TEST_NZ(_flag_a, _flag_b)) goto L_47054198; /* 0x4705418C: jne 0x47054198 */
   1874 L_4705418E:
   1875     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1876     eax = eax | 0xFFFFFFFFu; /* 0x4705418E: or eax, 0xffffffff */
   1877     _cf = 0;
   1878     _flag_k = FK_TEST;
   1879     esi = POP32_VAL(esp); /* 0x47054191: pop esi */
   1880     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1881     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1882     esp = esp + 0xCu; /* 0x47054192: add esp, 0xc */
   1883     _flag_k = FK_ADD;
   1884     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47054195: ret 0xc */
   1885 L_47054198:
   1886     MEM32(esi) = eax; /* 0x47054198: mov dword ptr [esi], eax */
   1887     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1888     eax = 0; /* 0x4705419A: xor eax, eax */
   1889     _cf = 0;
   1890     _flag_k = FK_TEST;
   1891     esi = POP32_VAL(esp); /* 0x4705419C: pop esi */
   1892     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1893     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1894     esp = esp + 0xCu; /* 0x4705419D: add esp, 0xc */
   1895     _flag_k = FK_ADD;
   1896     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470541A0: ret 0xc */
   1897     RECOMP_REGS_OUT();
   1898 }
   1899 
   1900 void sub_470541B0(void) {
   1901     int _fpu_cmp = 0;
   1902     uint32_t _cf = 0;
   1903     int _df = 1;
   1904     uint32_t _flag_k = FK_NONE;
   1905     uint32_t _flag_a = 0, _flag_b = 0;
   1906     uint32_t _itail_tgt = 0;
   1907     RECOMP_REGS_LOCALS
   1908     RECOMP_ENTER(0x470541B0u);
   1909 
   1910 L_470541B0:
   1911     eax = MEM32(ecx); /* 0x470541B0: mov eax, dword ptr [ecx] */
   1912     /* test eax, eax */ /* 0x470541B2: test eax, eax */
   1913     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1914     _cf = 0;
   1915     _flag_k = FK_TEST;
   1916     if (TEST_Z(_flag_a, _flag_b)) goto L_470541CB; /* 0x470541B4: je 0x470541cb */
   1917 L_470541B6:
   1918     edx = MEM32(esp + 0x4); /* 0x470541B6: mov edx, dword ptr [esp + 4] */
   1919 L_470541BA:
   1920     ecx = MEM32(eax + 0xC); /* 0x470541BA: mov ecx, dword ptr [eax + 0xc] */
   1921     /* test ecx, ecx */ /* 0x470541BD: test ecx, ecx */
   1922     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1923     _cf = 0;
   1924     _flag_k = FK_TEST;
   1925     if (TEST_Z(_flag_a, _flag_b)) goto L_470541CB; /* 0x470541BF: je 0x470541cb */
   1926 L_470541C1:
   1927     /* cmp MEM32(eax), edx */ /* 0x470541C1: cmp dword ptr [eax], edx */
   1928     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edx);
   1929     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1930     _flag_k = FK_CMP;
   1931     if (CMP_EQ(_flag_a, _flag_b)) goto L_470541D0; /* 0x470541C3: je 0x470541d0 */
   1932 L_470541C5:
   1933     eax = ecx; /* 0x470541C5: mov eax, ecx */
   1934     /* test eax, eax */ /* 0x470541C7: test eax, eax */
   1935     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1936     _cf = 0;
   1937     _flag_k = FK_TEST;
   1938     RECOMP_BACKEDGE();
   1939     if (TEST_NZ(_flag_a, _flag_b)) goto L_470541BA; /* 0x470541C9: jne 0x470541ba */
   1940 L_470541CB:
   1941     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1942     eax = 0; /* 0x470541CB: xor eax, eax */
   1943     _cf = 0;
   1944     _flag_k = FK_TEST;
   1945     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470541CD: ret 4 */
   1946 L_470541D0:
   1947     eax = 1; /* 0x470541D0: mov eax, 1 */
   1948     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470541D5: ret 4 */
   1949     RECOMP_REGS_OUT();
   1950 }
   1951 
   1952 void sub_470541E0(void) {
   1953     int _fpu_cmp = 0;
   1954     uint32_t _cf = 0;
   1955     int _df = 1;
   1956     uint32_t _flag_k = FK_NONE;
   1957     uint32_t _flag_a = 0, _flag_b = 0;
   1958     uint32_t _itail_tgt = 0;
   1959     RECOMP_REGS_LOCALS
   1960     RECOMP_ENTER(0x470541E0u);
   1961 
   1962 L_470541E0:
   1963     PUSH32(esp, esi); /* 0x470541E0: push esi */
   1964     esi = MEM32(ecx); /* 0x470541E1: mov esi, dword ptr [ecx] */
   1965     /* test esi, esi */ /* 0x470541E3: test esi, esi */
   1966     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1967     _cf = 0;
   1968     _flag_k = FK_TEST;
   1969     if (TEST_Z(_flag_a, _flag_b)) goto L_47054224; /* 0x470541E5: je 0x47054224 */
   1970 L_470541E7:
   1971     eax = MEM32(esi + 0xC); /* 0x470541E7: mov eax, dword ptr [esi + 0xc] */
   1972     /* test eax, eax */ /* 0x470541EA: test eax, eax */
   1973     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1974     _cf = 0;
   1975     _flag_k = FK_TEST;
   1976     if (TEST_Z(_flag_a, _flag_b)) goto L_47054224; /* 0x470541EC: je 0x47054224 */
   1977 L_470541EE:
   1978     ecx = MEM32(esi + 0x4); /* 0x470541EE: mov ecx, dword ptr [esi + 4] */
   1979     /* cmp ecx, 0x47055D30u */ /* 0x470541F1: cmp ecx, 0x47055d30 */
   1980     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x47055D30u);
   1981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1982     _flag_k = FK_CMP;
   1983     if (CMP_NE(_flag_a, _flag_b)) goto L_47054206; /* 0x470541F7: jne 0x47054206 */
   1984 L_470541F9:
   1985     ecx = MEM32(esi); /* 0x470541F9: mov ecx, dword ptr [esi] */
   1986     edx = MEM32(esi + 0x8); /* 0x470541FB: mov edx, dword ptr [esi + 8] */
   1987     eax = MEM32(ecx); /* 0x470541FE: mov eax, dword ptr [ecx] */
   1988     PUSH32(esp, edx); /* 0x47054200: push edx */
   1989     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47054201: call dword ptr [eax + 4] */
   1990     RECOMP_FLAGS_IN();
   1991     goto L_4705421D; /* 0x47054204: jmp 0x4705421d */
   1992 L_47054206:
   1993     eax = MEM32(esi); /* 0x47054206: mov eax, dword ptr [esi] */
   1994     /* cmp eax, 0x4710E9CCu */ /* 0x47054208: cmp eax, 0x4710e9cc */
   1995     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4710E9CCu);
   1996     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1997     _flag_k = FK_CMP;
   1998     if (CMP_NE(_flag_a, _flag_b)) goto L_47054213; /* 0x4705420D: jne 0x47054213 */
   1999 L_4705420F:
   2000     RECOMP_ICALL(ecx); /* 0x4705420F: call ecx */
   2001     RECOMP_FLAGS_IN();
   2002     goto L_4705421D; /* 0x47054211: jmp 0x4705421d */
   2003 L_47054213:
   2004     edx = MEM32(esi + 0x8); /* 0x47054213: mov edx, dword ptr [esi + 8] */
   2005     PUSH32(esp, edx); /* 0x47054216: push edx */
   2006     PUSH32(esp, eax); /* 0x47054217: push eax */
   2007     RECOMP_ICALL(ecx); /* 0x47054218: call ecx */
   2008     RECOMP_FLAGS_IN();
   2009     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2010     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2011     esp = esp + 8; /* 0x4705421A: add esp, 8 */
   2012     _flag_k = FK_ADD;
   2013 L_4705421D:
   2014     esi = MEM32(esi + 0xC); /* 0x4705421D: mov esi, dword ptr [esi + 0xc] */
   2015     /* test esi, esi */ /* 0x47054220: test esi, esi */
   2016     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2017     _cf = 0;
   2018     _flag_k = FK_TEST;
   2019     RECOMP_BACKEDGE();
   2020     if (TEST_NZ(_flag_a, _flag_b)) goto L_470541E7; /* 0x47054222: jne 0x470541e7 */
   2021 L_47054224:
   2022     esi = POP32_VAL(esp); /* 0x47054224: pop esi */
   2023     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054225: ret  */
   2024     RECOMP_REGS_OUT();
   2025 }
   2026 
   2027 void sub_47054230(void) {
   2028     int _fpu_cmp = 0;
   2029     uint32_t _cf = 0;
   2030     int _df = 1;
   2031     uint32_t _flag_k = FK_NONE;
   2032     uint32_t _flag_a = 0, _flag_b = 0;
   2033     uint32_t _itail_tgt = 0;
   2034     RECOMP_REGS_LOCALS
   2035     RECOMP_ENTER(0x47054230u);
   2036 
   2037 L_47054230:
   2038     PUSH32(esp, ecx); /* 0x47054230: push ecx */
   2039     PUSH32(esp, ebx); /* 0x47054231: push ebx */
   2040     ebx = MEM32(0x470AC150); /* 0x47054232: mov ebx, dword ptr [0x470ac150] */
   2041     PUSH32(esp, ebp); /* 0x47054238: push ebp */
   2042     PUSH32(esp, esi); /* 0x47054239: push esi */
   2043     PUSH32(esp, edi); /* 0x4705423A: push edi */
   2044     edi = ecx; /* 0x4705423B: mov edi, ecx */
   2045     RECOMP_ICALL(ebx); /* 0x4705423D: call ebx */
   2046     RECOMP_FLAGS_IN();
   2047     ebp = MEM32(0x470AC3C8); /* 0x4705423F: mov ebp, dword ptr [0x470ac3c8] */
   2048     esi = eax; /* 0x47054245: mov esi, eax */
   2049     RECOMP_ICALL(ebp); /* 0x47054247: call ebp */
   2050     RECOMP_FLAGS_IN();
   2051     eax = MEM32(eax); /* 0x47054249: mov eax, dword ptr [eax] */
   2052     /* test eax, eax */ /* 0x4705424B: test eax, eax */
   2053     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2054     _cf = 0;
   2055     _flag_k = FK_TEST;
   2056     MEM32(esp + 0x10) = esi; /* 0x4705424D: mov dword ptr [esp + 0x10], esi */
   2057     if (TEST_Z(_flag_a, _flag_b)) goto L_47054257; /* 0x47054251: je 0x47054257 */
   2058 L_47054253:
   2059     MEM32(esp + 0x10) = eax; /* 0x47054253: mov dword ptr [esp + 0x10], eax */
   2060 L_47054257:
   2061     RECOMP_ICALL(0x47039020u); /* 0x47054257: call 0x47039020 */ /* not lifted */
   2062     RECOMP_FLAGS_IN();
   2063     esi = eax; /* 0x4705425C: mov esi, eax */
   2064     ecx = esi; /* 0x4705425E: mov ecx, esi */
   2065     RECOMP_ICALL(0x4703B210u); /* 0x47054260: call 0x4703b210 */ /* not lifted */
   2066     RECOMP_FLAGS_IN();
   2067     PUSH32(esp, eax); /* 0x47054265: push eax */
   2068     ecx = esi; /* 0x47054266: mov ecx, esi */
   2069     RECOMP_ICALL(0x4703B240u); /* 0x47054268: call 0x4703b240 */ /* not lifted */
   2070     RECOMP_FLAGS_IN();
   2071     PUSH32(esp, eax); /* 0x4705426D: push eax */
   2072     ecx = esi; /* 0x4705426E: mov ecx, esi */
   2073     RECOMP_ICALL(0x4703B080u); /* 0x47054270: call 0x4703b080 */ /* not lifted */
   2074     RECOMP_FLAGS_IN();
   2075     PUSH32(esp, eax); /* 0x47054275: push eax */
   2076     eax = MEM32(esp + 0x1C); /* 0x47054276: mov eax, dword ptr [esp + 0x1c] */
   2077     PUSH32(esp, eax); /* 0x4705427A: push eax */
   2078     PUSH32(esp, 0); /* 0x4705427B: push 0 */
   2079     PUSH32(esp, 0x1BAu); /* 0x4705427D: push 0x1ba */
   2080     PUSH32(esp, 0x47108F38u); /* 0x47054282: push 0x47108f38 */
   2081     ecx = esi; /* 0x47054287: mov ecx, esi */
   2082     RECOMP_ICALL(0x4703A340u); /* 0x47054289: call 0x4703a340 */ /* not lifted */
   2083     RECOMP_FLAGS_IN();
   2084     PUSH32(esp, edi); /* 0x4705428E: push edi */
   2085     PUSH32(esp, 0x471052CCu); /* 0x4705428F: push 0x471052cc */
   2086     PUSH32(esp, 4); /* 0x47054294: push 4 */
   2087     PUSH32(esp, esi); /* 0x47054296: push esi */
   2088     RECOMP_ICALL(0x47039830u); /* 0x47054297: call 0x47039830 */ /* not lifted */
   2089     RECOMP_FLAGS_IN();
   2090     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2091     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2092     esp = esp + 0x10u; /* 0x4705429C: add esp, 0x10 */
   2093     _flag_k = FK_ADD;
   2094     RECOMP_ICALL(ebx); /* 0x4705429F: call ebx */
   2095     RECOMP_FLAGS_IN();
   2096     esi = eax; /* 0x470542A1: mov esi, eax */
   2097     RECOMP_ICALL(ebp); /* 0x470542A3: call ebp */
   2098     RECOMP_FLAGS_IN();
   2099     eax = MEM32(eax); /* 0x470542A5: mov eax, dword ptr [eax] */
   2100     /* test eax, eax */ /* 0x470542A7: test eax, eax */
   2101     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2102     _cf = 0;
   2103     _flag_k = FK_TEST;
   2104     MEM32(esp + 0x10) = esi; /* 0x470542A9: mov dword ptr [esp + 0x10], esi */
   2105     if (TEST_Z(_flag_a, _flag_b)) goto L_470542B3; /* 0x470542AD: je 0x470542b3 */
   2106 L_470542AF:
   2107     MEM32(esp + 0x10) = eax; /* 0x470542AF: mov dword ptr [esp + 0x10], eax */
   2108 L_470542B3:
   2109     RECOMP_ICALL(0x47039020u); /* 0x470542B3: call 0x47039020 */ /* not lifted */
   2110     RECOMP_FLAGS_IN();
   2111     esi = eax; /* 0x470542B8: mov esi, eax */
   2112     ecx = esi; /* 0x470542BA: mov ecx, esi */
   2113     RECOMP_ICALL(0x4703B210u); /* 0x470542BC: call 0x4703b210 */ /* not lifted */
   2114     RECOMP_FLAGS_IN();
   2115     PUSH32(esp, eax); /* 0x470542C1: push eax */
   2116     ecx = esi; /* 0x470542C2: mov ecx, esi */
   2117     RECOMP_ICALL(0x4703B240u); /* 0x470542C4: call 0x4703b240 */ /* not lifted */
   2118     RECOMP_FLAGS_IN();
   2119     PUSH32(esp, eax); /* 0x470542C9: push eax */
   2120     ecx = esi; /* 0x470542CA: mov ecx, esi */
   2121     RECOMP_ICALL(0x4703B080u); /* 0x470542CC: call 0x4703b080 */ /* not lifted */
   2122     RECOMP_FLAGS_IN();
   2123     ecx = MEM32(esp + 0x18); /* 0x470542D1: mov ecx, dword ptr [esp + 0x18] */
   2124     PUSH32(esp, eax); /* 0x470542D5: push eax */
   2125     PUSH32(esp, ecx); /* 0x470542D6: push ecx */
   2126     PUSH32(esp, 0); /* 0x470542D7: push 0 */
   2127     PUSH32(esp, 0x1BBu); /* 0x470542D9: push 0x1bb */
   2128     PUSH32(esp, 0x47108F38u); /* 0x470542DE: push 0x47108f38 */
   2129     ecx = esi; /* 0x470542E3: mov ecx, esi */
   2130     RECOMP_ICALL(0x4703A340u); /* 0x470542E5: call 0x4703a340 */ /* not lifted */
   2131     RECOMP_FLAGS_IN();
   2132     edx = MEM32(edi); /* 0x470542EA: mov edx, dword ptr [edi] */
   2133     PUSH32(esp, edx); /* 0x470542EC: push edx */
   2134     PUSH32(esp, 0x47108F28u); /* 0x470542ED: push 0x47108f28 */
   2135     PUSH32(esp, 4); /* 0x470542F2: push 4 */
   2136     PUSH32(esp, esi); /* 0x470542F4: push esi */
   2137     RECOMP_ICALL(0x47039830u); /* 0x470542F5: call 0x47039830 */ /* not lifted */
   2138     RECOMP_FLAGS_IN();
   2139     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2140     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2141     esp = esp + 0x10u; /* 0x470542FA: add esp, 0x10 */
   2142     _flag_k = FK_ADD;
   2143     RECOMP_ICALL(ebx); /* 0x470542FD: call ebx */
   2144     RECOMP_FLAGS_IN();
   2145     esi = eax; /* 0x470542FF: mov esi, eax */
   2146     RECOMP_ICALL(ebp); /* 0x47054301: call ebp */
   2147     RECOMP_FLAGS_IN();
   2148     eax = MEM32(eax); /* 0x47054303: mov eax, dword ptr [eax] */
   2149     /* test eax, eax */ /* 0x47054305: test eax, eax */
   2150     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2151     _cf = 0;
   2152     _flag_k = FK_TEST;
   2153     MEM32(esp + 0x10) = esi; /* 0x47054307: mov dword ptr [esp + 0x10], esi */
   2154     if (TEST_Z(_flag_a, _flag_b)) goto L_47054311; /* 0x4705430B: je 0x47054311 */
   2155 L_4705430D:
   2156     MEM32(esp + 0x10) = eax; /* 0x4705430D: mov dword ptr [esp + 0x10], eax */
   2157 L_47054311:
   2158     RECOMP_ICALL(0x47039020u); /* 0x47054311: call 0x47039020 */ /* not lifted */
   2159     RECOMP_FLAGS_IN();
   2160     esi = eax; /* 0x47054316: mov esi, eax */
   2161     ecx = esi; /* 0x47054318: mov ecx, esi */
   2162     RECOMP_ICALL(0x4703B210u); /* 0x4705431A: call 0x4703b210 */ /* not lifted */
   2163     RECOMP_FLAGS_IN();
   2164     PUSH32(esp, eax); /* 0x4705431F: push eax */
   2165     ecx = esi; /* 0x47054320: mov ecx, esi */
   2166     RECOMP_ICALL(0x4703B240u); /* 0x47054322: call 0x4703b240 */ /* not lifted */
   2167     RECOMP_FLAGS_IN();
   2168     PUSH32(esp, eax); /* 0x47054327: push eax */
   2169     ecx = esi; /* 0x47054328: mov ecx, esi */
   2170     RECOMP_ICALL(0x4703B080u); /* 0x4705432A: call 0x4703b080 */ /* not lifted */
   2171     RECOMP_FLAGS_IN();
   2172     PUSH32(esp, eax); /* 0x4705432F: push eax */
   2173     eax = MEM32(esp + 0x1C); /* 0x47054330: mov eax, dword ptr [esp + 0x1c] */
   2174     PUSH32(esp, eax); /* 0x47054334: push eax */
   2175     PUSH32(esp, 0); /* 0x47054335: push 0 */
   2176     PUSH32(esp, 0x1BCu); /* 0x47054337: push 0x1bc */
   2177     PUSH32(esp, 0x47108F38u); /* 0x4705433C: push 0x47108f38 */
   2178     ecx = esi; /* 0x47054341: mov ecx, esi */
   2179     RECOMP_ICALL(0x4703A340u); /* 0x47054343: call 0x4703a340 */ /* not lifted */
   2180     RECOMP_FLAGS_IN();
   2181     ecx = MEM32(edi + 0x4); /* 0x47054348: mov ecx, dword ptr [edi + 4] */
   2182     PUSH32(esp, ecx); /* 0x4705434B: push ecx */
   2183     PUSH32(esp, 0x47108F18u); /* 0x4705434C: push 0x47108f18 */
   2184     PUSH32(esp, 4); /* 0x47054351: push 4 */
   2185     PUSH32(esp, esi); /* 0x47054353: push esi */
   2186     RECOMP_ICALL(0x47039830u); /* 0x47054354: call 0x47039830 */ /* not lifted */
   2187     RECOMP_FLAGS_IN();
   2188     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2189     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2190     esp = esp + 0x10u; /* 0x47054359: add esp, 0x10 */
   2191     _flag_k = FK_ADD;
   2192     RECOMP_ICALL(ebx); /* 0x4705435C: call ebx */
   2193     RECOMP_FLAGS_IN();
   2194     esi = eax; /* 0x4705435E: mov esi, eax */
   2195     RECOMP_ICALL(ebp); /* 0x47054360: call ebp */
   2196     RECOMP_FLAGS_IN();
   2197     eax = MEM32(eax); /* 0x47054362: mov eax, dword ptr [eax] */
   2198     /* test eax, eax */ /* 0x47054364: test eax, eax */
   2199     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2200     _cf = 0;
   2201     _flag_k = FK_TEST;
   2202     edi = esi; /* 0x47054366: mov edi, esi */
   2203     if (TEST_Z(_flag_a, _flag_b)) goto L_4705436C; /* 0x47054368: je 0x4705436c */
   2204 L_4705436A:
   2205     edi = eax; /* 0x4705436A: mov edi, eax */
   2206 L_4705436C:
   2207     RECOMP_ICALL(0x47039020u); /* 0x4705436C: call 0x47039020 */ /* not lifted */
   2208     RECOMP_FLAGS_IN();
   2209     esi = eax; /* 0x47054371: mov esi, eax */
   2210     ecx = esi; /* 0x47054373: mov ecx, esi */
   2211     RECOMP_ICALL(0x4703B210u); /* 0x47054375: call 0x4703b210 */ /* not lifted */
   2212     RECOMP_FLAGS_IN();
   2213     PUSH32(esp, eax); /* 0x4705437A: push eax */
   2214     ecx = esi; /* 0x4705437B: mov ecx, esi */
   2215     RECOMP_ICALL(0x4703B240u); /* 0x4705437D: call 0x4703b240 */ /* not lifted */
   2216     RECOMP_FLAGS_IN();
   2217     PUSH32(esp, eax); /* 0x47054382: push eax */
   2218     ecx = esi; /* 0x47054383: mov ecx, esi */
   2219     RECOMP_ICALL(0x4703B080u); /* 0x47054385: call 0x4703b080 */ /* not lifted */
   2220     RECOMP_FLAGS_IN();
   2221     PUSH32(esp, eax); /* 0x4705438A: push eax */
   2222     PUSH32(esp, edi); /* 0x4705438B: push edi */
   2223     PUSH32(esp, 0); /* 0x4705438C: push 0 */
   2224     PUSH32(esp, 0x1BDu); /* 0x4705438E: push 0x1bd */
   2225     PUSH32(esp, 0x47108F38u); /* 0x47054393: push 0x47108f38 */
   2226     ecx = esi; /* 0x47054398: mov ecx, esi */
   2227     RECOMP_ICALL(0x4703A340u); /* 0x4705439A: call 0x4703a340 */ /* not lifted */
   2228     RECOMP_FLAGS_IN();
   2229     PUSH32(esp, 0x4710529Cu); /* 0x4705439F: push 0x4710529c */
   2230     PUSH32(esp, 4); /* 0x470543A4: push 4 */
   2231     PUSH32(esp, esi); /* 0x470543A6: push esi */
   2232     RECOMP_ICALL(0x47039830u); /* 0x470543A7: call 0x47039830 */ /* not lifted */
   2233     RECOMP_FLAGS_IN();
   2234     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2235     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2236     esp = esp + 0xCu; /* 0x470543AC: add esp, 0xc */
   2237     _flag_k = FK_ADD;
   2238     edi = POP32_VAL(esp); /* 0x470543AF: pop edi */
   2239     esi = POP32_VAL(esp); /* 0x470543B0: pop esi */
   2240     ebp = POP32_VAL(esp); /* 0x470543B1: pop ebp */
   2241     ebx = POP32_VAL(esp); /* 0x470543B2: pop ebx */
   2242     ecx = POP32_VAL(esp); /* 0x470543B3: pop ecx */
   2243     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470543B4: ret  */
   2244     RECOMP_REGS_OUT();
   2245 }
   2246 
   2247 void sub_470543C0(void) {
   2248     int _fpu_cmp = 0;
   2249     uint32_t _cf = 0;
   2250     int _df = 1;
   2251     uint32_t _flag_k = FK_NONE;
   2252     uint32_t _flag_a = 0, _flag_b = 0;
   2253     uint32_t _itail_tgt = 0;
   2254     RECOMP_REGS_LOCALS
   2255     RECOMP_ENTER(0x470543C0u);
   2256 
   2257 L_470543C0:
   2258     eax = MEM32(ecx + 0x4); /* 0x470543C0: mov eax, dword ptr [ecx + 4] */
   2259     edx = 0x000F4240u; /* 0x470543C3: mov edx, 0xf4240 */
   2260     /* cmp eax, edx */ /* 0x470543C8: cmp eax, edx */
   2261     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2263     _flag_k = FK_CMP;
   2264     PUSH32(esp, esi); /* 0x470543CA: push esi */
   2265     if (CMP_L(_flag_a, _flag_b)) goto L_470543E4; /* 0x470543CB: jl 0x470543e4 */
   2266 L_470543CD:
   2267     eax = MEM32(ecx); /* 0x470543CD: mov eax, dword ptr [ecx] */
   2268     esi = MEM32(ecx + 0x4); /* 0x470543CF: mov esi, dword ptr [ecx + 4] */
   2269 L_470543D2:
   2270     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFF0BDC0u);
   2271     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2272     esi = esi + 0xFFF0BDC0u; /* 0x470543D2: add esi, 0xfff0bdc0 */
   2273     _flag_k = FK_ADD;
   2274     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2275     eax = eax + 1; /* 0x470543D8: inc eax */
   2276     _flag_k = FK_INC;
   2277     /* cmp esi, edx */ /* 0x470543D9: cmp esi, edx */
   2278     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   2279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2280     _flag_k = FK_CMP;
   2281     RECOMP_BACKEDGE();
   2282     if (CMP_GE(_flag_a, _flag_b)) goto L_470543D2; /* 0x470543DB: jge 0x470543d2 */
   2283 L_470543DD:
   2284     MEM32(ecx + 0x4) = esi; /* 0x470543DD: mov dword ptr [ecx + 4], esi */
   2285     MEM32(ecx) = eax; /* 0x470543E0: mov dword ptr [ecx], eax */
   2286     goto L_47054401; /* 0x470543E2: jmp 0x47054401 */
   2287 L_470543E4:
   2288     /* cmp eax, 0xFFF0BDC0u */ /* 0x470543E4: cmp eax, 0xfff0bdc0 */
   2289     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFF0BDC0u);
   2290     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2291     _flag_k = FK_CMP;
   2292     if (CMP_G(_flag_a, _flag_b)) goto L_47054401; /* 0x470543E9: jg 0x47054401 */
   2293 L_470543EB:
   2294     eax = MEM32(ecx); /* 0x470543EB: mov eax, dword ptr [ecx] */
   2295     esi = MEM32(ecx + 0x4); /* 0x470543ED: mov esi, dword ptr [ecx + 4] */
   2296     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2297     eax = eax - 1; /* 0x470543F0: dec eax */
   2298     _flag_k = FK_DEC;
   2299     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   2300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2301     esi = esi + edx; /* 0x470543F1: add esi, edx */
   2302     _flag_k = FK_ADD;
   2303     MEM32(ecx) = eax; /* 0x470543F3: mov dword ptr [ecx], eax */
   2304     eax = esi; /* 0x470543F5: mov eax, esi */
   2305     /* cmp eax, 0xFFF0BDC0u */ /* 0x470543F7: cmp eax, 0xfff0bdc0 */
   2306     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFF0BDC0u);
   2307     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2308     _flag_k = FK_CMP;
   2309     MEM32(ecx + 0x4) = esi; /* 0x470543FC: mov dword ptr [ecx + 4], esi */
   2310     RECOMP_BACKEDGE();
   2311     if (CMP_LE(_flag_a, _flag_b)) goto L_470543EB; /* 0x470543FF: jle 0x470543eb */
   2312 L_47054401:
   2313     eax = MEM32(ecx); /* 0x47054401: mov eax, dword ptr [ecx] */
   2314     /* cmp eax, 1 */ /* 0x47054403: cmp eax, 1 */
   2315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2317     _flag_k = FK_CMP;
   2318     esi = POP32_VAL(esp); /* 0x47054406: pop esi */
   2319     if (CMP_L(_flag_a, _flag_b)) goto L_4705441D; /* 0x47054407: jl 0x4705441d */
   2320 L_47054409:
   2321     edx = MEM32(ecx + 0x4); /* 0x47054409: mov edx, dword ptr [ecx + 4] */
   2322     /* test edx, edx */ /* 0x4705440C: test edx, edx */
   2323     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2324     _cf = 0;
   2325     _flag_k = FK_TEST;
   2326     if (TEST_NS(_flag_a, _flag_b)) goto L_4705441D; /* 0x4705440E: jge 0x4705441d */
   2327 L_47054410:
   2328     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2329     eax = eax - 1; /* 0x47054410: dec eax */
   2330     _flag_k = FK_DEC;
   2331     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x000F4240u);
   2332     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2333     edx = edx + 0x000F4240u; /* 0x47054411: add edx, 0xf4240 */
   2334     _flag_k = FK_ADD;
   2335     MEM32(ecx) = eax; /* 0x47054417: mov dword ptr [ecx], eax */
   2336     MEM32(ecx + 0x4) = edx; /* 0x47054419: mov dword ptr [ecx + 4], edx */
   2337     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705441C: ret  */
   2338 L_4705441D:
   2339     /* test eax, eax */ /* 0x4705441D: test eax, eax */
   2340     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2341     _cf = 0;
   2342     _flag_k = FK_TEST;
   2343     if (TEST_NS(_flag_a, _flag_b)) goto L_47054434; /* 0x4705441F: jge 0x47054434 */
   2344 L_47054421:
   2345     edx = MEM32(ecx + 0x4); /* 0x47054421: mov edx, dword ptr [ecx + 4] */
   2346     /* test edx, edx */ /* 0x47054424: test edx, edx */
   2347     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2348     _cf = 0;
   2349     _flag_k = FK_TEST;
   2350     if (TEST_LE(_flag_a, _flag_b)) goto L_47054434; /* 0x47054426: jle 0x47054434 */
   2351 L_47054428:
   2352     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2353     eax = eax + 1; /* 0x47054428: inc eax */
   2354     _flag_k = FK_INC;
   2355     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFF0BDC0u);
   2356     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2357     edx = edx + 0xFFF0BDC0u; /* 0x47054429: add edx, 0xfff0bdc0 */
   2358     _flag_k = FK_ADD;
   2359     MEM32(ecx) = eax; /* 0x4705442F: mov dword ptr [ecx], eax */
   2360     MEM32(ecx + 0x4) = edx; /* 0x47054431: mov dword ptr [ecx + 4], edx */
   2361 L_47054434:
   2362     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054434: ret  */
   2363     RECOMP_REGS_OUT();
   2364 }
   2365 
   2366 void sub_47054401(void) {
   2367     int _fpu_cmp = 0;
   2368     uint32_t _cf = 0;
   2369     int _df = 1;
   2370     uint32_t _flag_k = FK_NONE;
   2371     uint32_t _flag_a = 0, _flag_b = 0;
   2372     uint32_t _itail_tgt = 0;
   2373     RECOMP_REGS_LOCALS
   2374     RECOMP_ENTER(0x47054401u);
   2375 
   2376 L_47054401:
   2377     eax = MEM32(ecx); /* 0x47054401: mov eax, dword ptr [ecx] */
   2378     /* cmp eax, 1 */ /* 0x47054403: cmp eax, 1 */
   2379     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2380     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2381     _flag_k = FK_CMP;
   2382     esi = POP32_VAL(esp); /* 0x47054406: pop esi */
   2383     if (CMP_L(_flag_a, _flag_b)) goto L_4705441D; /* 0x47054407: jl 0x4705441d */
   2384 L_47054409:
   2385     edx = MEM32(ecx + 0x4); /* 0x47054409: mov edx, dword ptr [ecx + 4] */
   2386     /* test edx, edx */ /* 0x4705440C: test edx, edx */
   2387     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2388     _cf = 0;
   2389     _flag_k = FK_TEST;
   2390     if (TEST_NS(_flag_a, _flag_b)) goto L_4705441D; /* 0x4705440E: jge 0x4705441d */
   2391 L_47054410:
   2392     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2393     eax = eax - 1; /* 0x47054410: dec eax */
   2394     _flag_k = FK_DEC;
   2395     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x000F4240u);
   2396     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2397     edx = edx + 0x000F4240u; /* 0x47054411: add edx, 0xf4240 */
   2398     _flag_k = FK_ADD;
   2399     MEM32(ecx) = eax; /* 0x47054417: mov dword ptr [ecx], eax */
   2400     MEM32(ecx + 0x4) = edx; /* 0x47054419: mov dword ptr [ecx + 4], edx */
   2401     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705441C: ret  */
   2402 L_4705441D:
   2403     /* test eax, eax */ /* 0x4705441D: test eax, eax */
   2404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2405     _cf = 0;
   2406     _flag_k = FK_TEST;
   2407     if (TEST_NS(_flag_a, _flag_b)) goto L_47054434; /* 0x4705441F: jge 0x47054434 */
   2408 L_47054421:
   2409     edx = MEM32(ecx + 0x4); /* 0x47054421: mov edx, dword ptr [ecx + 4] */
   2410     /* test edx, edx */ /* 0x47054424: test edx, edx */
   2411     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2412     _cf = 0;
   2413     _flag_k = FK_TEST;
   2414     if (TEST_LE(_flag_a, _flag_b)) goto L_47054434; /* 0x47054426: jle 0x47054434 */
   2415 L_47054428:
   2416     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2417     eax = eax + 1; /* 0x47054428: inc eax */
   2418     _flag_k = FK_INC;
   2419     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFF0BDC0u);
   2420     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2421     edx = edx + 0xFFF0BDC0u; /* 0x47054429: add edx, 0xfff0bdc0 */
   2422     _flag_k = FK_ADD;
   2423     MEM32(ecx) = eax; /* 0x4705442F: mov dword ptr [ecx], eax */
   2424     MEM32(ecx + 0x4) = edx; /* 0x47054431: mov dword ptr [ecx + 4], edx */
   2425 L_47054434:
   2426     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054434: ret  */
   2427     RECOMP_REGS_OUT();
   2428 }
   2429 
   2430 void sub_47054440(void) {
   2431     int _fpu_cmp = 0;
   2432     uint32_t _cf = 0;
   2433     int _df = 1;
   2434     uint32_t _flag_k = FK_NONE;
   2435     uint32_t _flag_a = 0, _flag_b = 0;
   2436     uint32_t _itail_tgt = 0;
   2437     RECOMP_REGS_LOCALS
   2438     RECOMP_ENTER(0x47054440u);
   2439 
   2440 L_47054440:
   2441     eax = MEM32(esp + 0x4); /* 0x47054440: mov eax, dword ptr [esp + 4] */
   2442     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2444     esp = esp - 8; /* 0x47054444: sub esp, 8 */
   2445     _flag_k = FK_CMP;
   2446     PUSH32(esp, ebp); /* 0x47054447: push ebp */
   2447     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2448     ebp = 0; /* 0x47054448: xor ebp, ebp */
   2449     _cf = 0;
   2450     _flag_k = FK_TEST;
   2451     PUSH32(esp, esi); /* 0x4705444A: push esi */
   2452     esi = ecx; /* 0x4705444B: mov esi, ecx */
   2453     MEM32(esi) = eax; /* 0x4705444D: mov dword ptr [esi], eax */
   2454     MEM32(esi + 0x4) = ebp; /* 0x4705444F: mov dword ptr [esi + 4], ebp */
   2455     MEM32(esi + 0x8) = ebp; /* 0x47054452: mov dword ptr [esi + 8], ebp */
   2456     /* cmp MEM32(esi), ebp */ /* 0x47054455: cmp dword ptr [esi], ebp */
   2457     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(ebp);
   2458     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2459     _flag_k = FK_CMP;
   2460     MEM32(esi + 0xC) = ebp; /* 0x47054457: mov dword ptr [esi + 0xc], ebp */
   2461     if (CMP_EQ(_flag_a, _flag_b)) goto L_470544BE; /* 0x4705445A: je 0x470544be */
   2462 L_4705445C:
   2463     PUSH32(esp, ebx); /* 0x4705445C: push ebx */
   2464     PUSH32(esp, edi); /* 0x4705445D: push edi */
   2465     ecx = esp + 0x10; /* 0x4705445E: lea ecx, [esp + 0x10] */
   2466     PUSH32(esp, ecx); /* 0x47054462: push ecx */
   2467     RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x47054463: call dword ptr [0x470ac1a8] */
   2468     RECOMP_FLAGS_IN();
   2469     edi = MEM32(esp + 0x10); /* 0x47054469: mov edi, dword ptr [esp + 0x10] */
   2470     ebx = MEM32(esp + 0x14); /* 0x4705446D: mov ebx, dword ptr [esp + 0x14] */
   2471     PUSH32(esp, ebp); /* 0x47054471: push ebp */
   2472     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x2AC18000u);
   2473     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2474     edi = edi + 0x2AC18000u; /* 0x47054472: add edi, 0x2ac18000 */
   2475     _flag_k = FK_ADD;
   2476     PUSH32(esp, 0x00989680u); /* 0x47054478: push 0x989680 */
   2477     { uint32_t _aa = ebx, _ab = 0xFE624E21u, _ac = _cf; /* 0x4705447D: adc ebx, 0xfe624e21 */
   2478       ebx = _aa + _ab + _ac;
   2479       _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0;
   2480       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2481     PUSH32(esp, ebx); /* 0x47054483: push ebx */
   2482     PUSH32(esp, edi); /* 0x47054484: push edi */
   2483     RECOMP_ICALL(0x470A3500u); /* 0x47054485: call 0x470a3500 */ /* not lifted */
   2484     RECOMP_FLAGS_IN();
   2485     PUSH32(esp, 0); /* 0x4705448A: push 0 */
   2486     PUSH32(esp, 0x00989680u); /* 0x4705448C: push 0x989680 */
   2487     PUSH32(esp, ebx); /* 0x47054491: push ebx */
   2488     PUSH32(esp, edi); /* 0x47054492: push edi */
   2489     ebp = eax; /* 0x47054493: mov ebp, eax */
   2490     RECOMP_ICALL(0x470A3640u); /* 0x47054495: call 0x470a3640 */ /* not lifted */
   2491     RECOMP_FLAGS_IN();
   2492     PUSH32(esp, 0); /* 0x4705449A: push 0 */
   2493     PUSH32(esp, 0xAu); /* 0x4705449C: push 0xa */
   2494     PUSH32(esp, edx); /* 0x4705449E: push edx */
   2495     PUSH32(esp, eax); /* 0x4705449F: push eax */
   2496     RECOMP_ICALL(0x470A3500u); /* 0x470544A0: call 0x470a3500 */ /* not lifted */
   2497     RECOMP_FLAGS_IN();
   2498     edi = POP32_VAL(esp); /* 0x470544A5: pop edi */
   2499     MEM32(esi + 0x4) = ebp; /* 0x470544A6: mov dword ptr [esi + 4], ebp */
   2500     MEM32(esi + 0x8) = eax; /* 0x470544A9: mov dword ptr [esi + 8], eax */
   2501     ebx = POP32_VAL(esp); /* 0x470544AC: pop ebx */
   2502     MEM32(esi + 0xC) = 0; /* 0x470544AD: mov dword ptr [esi + 0xc], 0 */
   2503     eax = esi; /* 0x470544B4: mov eax, esi */
   2504     esi = POP32_VAL(esp); /* 0x470544B6: pop esi */
   2505     ebp = POP32_VAL(esp); /* 0x470544B7: pop ebp */
   2506     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2507     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2508     esp = esp + 8; /* 0x470544B8: add esp, 8 */
   2509     _flag_k = FK_ADD;
   2510     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470544BB: ret 4 */
   2511 L_470544BE:
   2512     eax = esi; /* 0x470544BE: mov eax, esi */
   2513     esi = POP32_VAL(esp); /* 0x470544C0: pop esi */
   2514     ebp = POP32_VAL(esp); /* 0x470544C1: pop ebp */
   2515     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2516     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2517     esp = esp + 8; /* 0x470544C2: add esp, 8 */
   2518     _flag_k = FK_ADD;
   2519     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470544C5: ret 4 */
   2520     RECOMP_REGS_OUT();
   2521 }
   2522 
   2523 void sub_470544D0(void) {
   2524     int _fpu_cmp = 0;
   2525     uint32_t _cf = 0;
   2526     int _df = 1;
   2527     uint32_t _flag_k = FK_NONE;
   2528     uint32_t _flag_a = 0, _flag_b = 0;
   2529     uint32_t _itail_tgt = 0;
   2530     RECOMP_REGS_LOCALS
   2531     RECOMP_ENTER(0x470544D0u);
   2532 
   2533 L_470544D0:
   2534     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   2535     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2536     esp = esp - 0x20u; /* 0x470544D0: sub esp, 0x20 */
   2537     _flag_k = FK_CMP;
   2538     PUSH32(esp, esi); /* 0x470544D3: push esi */
   2539     esi = ecx; /* 0x470544D4: mov esi, ecx */
   2540     /* cmp MEM32(esi), 0 */ /* 0x470544D6: cmp dword ptr [esi], 0 */
   2541     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0);
   2542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2543     _flag_k = FK_CMP;
   2544     if (CMP_EQ(_flag_a, _flag_b)) goto L_47054580; /* 0x470544D9: je 0x47054580 */
   2545 L_470544DF:
   2546     eax = MEM32(esi + 0xC); /* 0x470544DF: mov eax, dword ptr [esi + 0xc] */
   2547     /* test eax, eax */ /* 0x470544E2: test eax, eax */
   2548     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2549     _cf = 0;
   2550     _flag_k = FK_TEST;
   2551     if (TEST_NZ(_flag_a, _flag_b)) goto L_47054580; /* 0x470544E4: jne 0x47054580 */
   2552 L_470544EA:
   2553     PUSH32(esp, edi); /* 0x470544EA: push edi */
   2554     eax = esp + 0x18; /* 0x470544EB: lea eax, [esp + 0x18] */
   2555     PUSH32(esp, eax); /* 0x470544EF: push eax */
   2556     RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x470544F0: call dword ptr [0x470ac1a8] */
   2557     RECOMP_FLAGS_IN();
   2558     ecx = esp + 0x18; /* 0x470544F6: lea ecx, [esp + 0x18] */
   2559     PUSH32(esp, ecx); /* 0x470544FA: push ecx */
   2560     ecx = esp + 0x14; /* 0x470544FB: lea ecx, [esp + 0x14] */
   2561     RECOMP_ICALL(0x47053F60u); /* 0x470544FF: call 0x47053f60 */ /* not lifted */
   2562     RECOMP_FLAGS_IN();
   2563     eax = MEM32(esp + 0x10); /* 0x47054504: mov eax, dword ptr [esp + 0x10] */
   2564     edx = MEM32(esi + 0x4); /* 0x47054508: mov edx, dword ptr [esi + 4] */
   2565     ecx = MEM32(esp + 0x14); /* 0x4705450B: mov ecx, dword ptr [esp + 0x14] */
   2566     MEM32(esp + 0x20) = eax; /* 0x4705450F: mov dword ptr [esp + 0x20], eax */
   2567     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2569     eax = eax - edx; /* 0x47054513: sub eax, edx */
   2570     _flag_k = FK_CMP;
   2571     MEM32(esp + 0x8) = eax; /* 0x47054515: mov dword ptr [esp + 8], eax */
   2572     eax = MEM32(esi + 0x8); /* 0x47054519: mov eax, dword ptr [esi + 8] */
   2573     MEM32(esp + 0x24) = ecx; /* 0x4705451C: mov dword ptr [esp + 0x24], ecx */
   2574     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2575     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2576     ecx = ecx - eax; /* 0x47054520: sub ecx, eax */
   2577     _flag_k = FK_CMP;
   2578     MEM32(esp + 0xC) = ecx; /* 0x47054522: mov dword ptr [esp + 0xc], ecx */
   2579     ecx = esp + 0x8; /* 0x47054526: lea ecx, [esp + 8] */
   2580     RECOMP_ICALL(0x470543C0u); /* 0x4705452A: call 0x470543c0 */ /* not lifted */
   2581     RECOMP_FLAGS_IN();
   2582     ecx = esp + 0x8; /* 0x4705452F: lea ecx, [esp + 8] */
   2583     RECOMP_ICALL(0x470543C0u); /* 0x47054533: call 0x470543c0 */ /* not lifted */
   2584     RECOMP_FLAGS_IN();
   2585     ecx = MEM32(esi); /* 0x47054538: mov ecx, dword ptr [esi] */
   2586     eax = MEM32(ecx); /* 0x4705453A: mov eax, dword ptr [ecx] */
   2587     edx = MEM32(esp + 0x8); /* 0x4705453C: mov edx, dword ptr [esp + 8] */
   2588     /* cmp eax, edx */ /* 0x47054540: cmp eax, edx */
   2589     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2590     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2591     _flag_k = FK_CMP;
   2592     edi = MEM32(esp + 0xC); /* 0x47054542: mov edi, dword ptr [esp + 0xc] */
   2593     if (CMP_G(_flag_a, _flag_b)) goto L_47054551; /* 0x47054546: jg 0x47054551 */
   2594 L_47054548:
   2595     /* cmp eax, edx */ /* 0x47054548: cmp eax, edx */
   2596     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2598     _flag_k = FK_CMP;
   2599     if (CMP_NE(_flag_a, _flag_b)) goto L_47054568; /* 0x4705454A: jne 0x47054568 */
   2600 L_4705454C:
   2601     /* cmp MEM32(ecx + 0x4), edi */ /* 0x4705454C: cmp dword ptr [ecx + 4], edi */
   2602     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(edi);
   2603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2604     _flag_k = FK_CMP;
   2605     if (CMP_LE(_flag_a, _flag_b)) goto L_47054568; /* 0x4705454F: jle 0x47054568 */
   2606 L_47054551:
   2607     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(edx);
   2608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2609     MEM32(ecx) = MEM32(ecx) - edx; /* 0x47054551: sub dword ptr [ecx], edx */
   2610     _flag_k = FK_CMP;
   2611     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(edi);
   2612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2613     MEM32(ecx + 0x4) = MEM32(ecx + 0x4) - edi; /* 0x47054553: sub dword ptr [ecx + 4], edi */
   2614     _flag_k = FK_CMP;
   2615     RECOMP_ICALL(0x470543C0u); /* 0x47054556: call 0x470543c0 */ /* not lifted */
   2616     RECOMP_FLAGS_IN();
   2617     edi = POP32_VAL(esp); /* 0x4705455B: pop edi */
   2618     MEM32(esi + 0xC) = 1; /* 0x4705455C: mov dword ptr [esi + 0xc], 1 */
   2619     esi = POP32_VAL(esp); /* 0x47054563: pop esi */
   2620     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   2621     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2622     esp = esp + 0x20u; /* 0x47054564: add esp, 0x20 */
   2623     _flag_k = FK_ADD;
   2624     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054567: ret  */
   2625 L_47054568:
   2626     edx = MEM32(0x4710E9A8); /* 0x47054568: mov edx, dword ptr [0x4710e9a8] */
   2627     MEM32(ecx) = edx; /* 0x4705456E: mov dword ptr [ecx], edx */
   2628     eax = MEM32(0x4710E9AC); /* 0x47054570: mov eax, dword ptr [0x4710e9ac] */
   2629     MEM32(ecx + 0x4) = eax; /* 0x47054575: mov dword ptr [ecx + 4], eax */
   2630     MEM32(esi + 0xC) = 1; /* 0x47054578: mov dword ptr [esi + 0xc], 1 */
   2631     edi = POP32_VAL(esp); /* 0x4705457F: pop edi */
   2632 L_47054580:
   2633     esi = POP32_VAL(esp); /* 0x47054580: pop esi */
   2634     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   2635     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2636     esp = esp + 0x20u; /* 0x47054581: add esp, 0x20 */
   2637     _flag_k = FK_ADD;
   2638     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054584: ret  */
   2639     RECOMP_REGS_OUT();
   2640 }
   2641 
   2642 void sub_47054590(void) {
   2643     int _fpu_cmp = 0;
   2644     uint32_t _cf = 0;
   2645     int _df = 1;
   2646     uint32_t _flag_k = FK_NONE;
   2647     uint32_t _flag_a = 0, _flag_b = 0;
   2648     uint32_t _itail_tgt = 0;
   2649     RECOMP_REGS_LOCALS
   2650     RECOMP_ENTER(0x47054590u);
   2651 
   2652 L_47054590:
   2653     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1BCu);
   2654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2655     esp = esp - 0x1BCu; /* 0x47054590: sub esp, 0x1bc */
   2656     _flag_k = FK_CMP;
   2657 L_47054596:
   2658     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   2659     ecx = ecx | 0xFFFFFFFFu; /* 0x47054596: or ecx, 0xffffffff */
   2660     _cf = 0;
   2661     _flag_k = FK_TEST;
   2662 L_47054599:
   2663     PUSH32(esp, ebx); /* 0x47054599: push ebx */
   2664 L_4705459A:
   2665     ebx = MEM32(esp + 0x1C4); /* 0x4705459A: mov ebx, dword ptr [esp + 0x1c4] */
   2666 L_470545A1:
   2667     PUSH32(esp, esi); /* 0x470545A1: push esi */
   2668 L_470545A2:
   2669     PUSH32(esp, edi); /* 0x470545A2: push edi */
   2670 L_470545A3:
   2671     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2672     eax = 0; /* 0x470545A3: xor eax, eax */
   2673     _cf = 0;
   2674     _flag_k = FK_TEST;
   2675 L_470545A5:
   2676     edi = 0x47109048u; /* 0x470545A5: mov edi, 0x47109048 */
   2677 L_470545AA:
   2678     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; } /* 0x470545AA: repne scasb al, byte ptr es:[edi] */
   2679 L_470545AC:
   2680     ecx = ~ecx; /* 0x470545AC: not ecx */
   2681 L_470545AE:
   2682     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   2683     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2684     edi = edi - ecx; /* 0x470545AE: sub edi, ecx */
   2685     _flag_k = FK_CMP;
   2686 L_470545B0:
   2687     eax = ecx; /* 0x470545B0: mov eax, ecx */
   2688 L_470545B2:
   2689     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x470545B2: shr ecx, 2 */
   2690     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2691     ecx = ecx >> 2u; /* 0x470545B2: shr ecx, 2 */
   2692 L_470545B5:
   2693     esi = edi; /* 0x470545B5: mov esi, edi */
   2694 L_470545B7:
   2695     edi = ebx; /* 0x470545B7: mov edi, ebx */
   2696 L_470545B9:
   2697     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470545B9: 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; }
   2698 L_470545BB:
   2699     ecx = eax; /* 0x470545BB: mov ecx, eax */
   2700 L_470545BD:
   2701     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   2702     ecx = ecx & 3; /* 0x470545BD: and ecx, 3 */
   2703     _cf = 0;
   2704     _flag_k = FK_TEST;
   2705 L_470545C0:
   2706     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x470545C0: 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; }
   2707 L_470545C2:
   2708     ecx = esp + 0x134; /* 0x470545C2: lea ecx, [esp + 0x134] */
   2709 L_470545C9:
   2710     PUSH32(esp, ecx); /* 0x470545C9: push ecx */
   2711 L_470545CA:
   2712     MEM32(esp + 0x138) = 0x94u; /* 0x470545CA: mov dword ptr [esp + 0x138], 0x94 */
   2713 L_470545D5:
   2714     RECOMP_ICALL(MEM32(0x470AC0B8)); /* 0x470545D5: call dword ptr [0x470ac0b8] */
   2715     RECOMP_FLAGS_IN();
   2716 L_470545DB:
   2717     edx = esp + 0x10; /* 0x470545DB: lea edx, [esp + 0x10] */
   2718 L_470545DF:
   2719     PUSH32(esp, edx); /* 0x470545DF: push edx */
   2720 L_470545E0:
   2721     RECOMP_ICALL(MEM32(0x470AC0EC)); /* 0x470545E0: call dword ptr [0x470ac0ec] */
   2722     RECOMP_FLAGS_IN();
   2723 L_470545E6:
   2724     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   2725     ecx = ecx | 0xFFFFFFFFu; /* 0x470545E6: or ecx, 0xffffffff */
   2726     _cf = 0;
   2727     _flag_k = FK_TEST;
   2728 L_470545E9:
   2729     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2730     eax = 0; /* 0x470545E9: xor eax, eax */
   2731     _cf = 0;
   2732     _flag_k = FK_TEST;
   2733 L_470545EB:
   2734     edi = 0x47109048u; /* 0x470545EB: mov edi, 0x47109048 */
   2735 L_470545F0:
   2736     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; } /* 0x470545F0: repne scasb al, byte ptr es:[edi] */
   2737 L_470545F2:
   2738     ecx = ~ecx; /* 0x470545F2: not ecx */
   2739 L_470545F4:
   2740     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   2741     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2742     edi = edi - ecx; /* 0x470545F4: sub edi, ecx */
   2743     _flag_k = FK_CMP;
   2744 L_470545F6:
   2745     eax = ecx; /* 0x470545F6: mov eax, ecx */
   2746 L_470545F8:
   2747     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x470545F8: shr ecx, 2 */
   2748     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2749     ecx = ecx >> 2u; /* 0x470545F8: shr ecx, 2 */
   2750 L_470545FB:
   2751     esi = edi; /* 0x470545FB: mov esi, edi */
   2752 L_470545FD:
   2753     edi = ebx; /* 0x470545FD: mov edi, ebx */
   2754 L_470545FF:
   2755     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470545FF: 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; }
   2756 L_47054601:
   2757     ecx = eax; /* 0x47054601: mov ecx, eax */
   2758 L_47054603:
   2759     eax = MEM32(esp + 0x144); /* 0x47054603: mov eax, dword ptr [esp + 0x144] */
   2760 L_4705460A:
   2761     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   2762     ecx = ecx & 3; /* 0x4705460A: and ecx, 3 */
   2763     _cf = 0;
   2764     _flag_k = FK_TEST;
   2765 L_4705460D:
   2766     /* cmp eax, 2 */ /* 0x4705460D: cmp eax, 2 */
   2767     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   2768     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2769     _flag_k = FK_CMP;
   2770 L_47054610:
   2771     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47054610: 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; }
   2772 L_47054612:
   2773     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470548B4; /* 0x47054612: jne 0x470548b4 */
   2774 L_47054618:
   2775     ecx = MEM32(esp + 0x13C); /* 0x47054618: mov ecx, dword ptr [esp + 0x13c] */
   2776 L_4705461F:
   2777     edx = MEM32(esp + 0x138); /* 0x4705461F: mov edx, dword ptr [esp + 0x138] */
   2778 L_47054626:
   2779     PUSH32(esp, ecx); /* 0x47054626: push ecx */
   2780 L_47054627:
   2781     PUSH32(esp, edx); /* 0x47054627: push edx */
   2782 L_47054628:
   2783     eax = ebx + 0x202; /* 0x47054628: lea eax, [ebx + 0x202] */
   2784 L_4705462E:
   2785     PUSH32(esp, 0x47109034u); /* 0x4705462E: push 0x47109034 */
   2786 L_47054633:
   2787     PUSH32(esp, eax); /* 0x47054633: push eax */
   2788 L_47054634:
   2789     RECOMP_ICALL(0x47054FC0u); /* 0x47054634: call 0x47054fc0 */ /* not lifted */
   2790     RECOMP_FLAGS_IN();
   2791 L_47054639:
   2792     edx = MEM32(esp + 0x150); /* 0x47054639: mov edx, dword ptr [esp + 0x150] */
   2793 L_47054640:
   2794     ecx = esp + 0x158; /* 0x47054640: lea ecx, [esp + 0x158] */
   2795 L_47054647:
   2796     PUSH32(esp, ecx); /* 0x47054647: push ecx */
   2797 L_47054648:
   2798     PUSH32(esp, edx); /* 0x47054648: push edx */
   2799 L_47054649:
   2800     eax = ebx + 0x303; /* 0x47054649: lea eax, [ebx + 0x303] */
   2801 L_4705464F:
   2802     PUSH32(esp, 0x47109028u); /* 0x4705464F: push 0x47109028 */
   2803 L_47054654:
   2804     PUSH32(esp, eax); /* 0x47054654: push eax */
   2805 L_47054655:
   2806     RECOMP_ICALL(0x47054FC0u); /* 0x47054655: call 0x47054fc0 */ /* not lifted */
   2807     RECOMP_FLAGS_IN();
   2808 L_4705465A:
   2809     edx = MEM32(0x47109020); /* 0x4705465A: mov edx, dword ptr [0x47109020] */
   2810 L_47054660:
   2811     esi = MEM32(0x47109024); /* 0x47054660: mov esi, dword ptr [0x47109024] */
   2812 L_47054666:
   2813     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2814     eax = 0; /* 0x47054666: xor eax, eax */
   2815     _cf = 0;
   2816     _flag_k = FK_TEST;
   2817 L_47054668:
   2818     MEM32(esp + 0xD4) = edx; /* 0x47054668: mov dword ptr [esp + 0xd4], edx */
   2819 L_4705466F:
   2820     MEM32(esp + 0xD8) = esi; /* 0x4705466F: mov dword ptr [esp + 0xd8], esi */
   2821 L_47054676:
   2822     ecx = 0x1Du; /* 0x47054676: mov ecx, 0x1d */
   2823 L_4705467B:
   2824     edi = esp + 0xDC; /* 0x4705467B: lea edi, [esp + 0xdc] */
   2825 L_47054682:
   2826     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47054682: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   2827 L_47054684:
   2828     MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x47054684: stosw word ptr es:[edi], ax */
   2829 L_47054686:
   2830     MEM8(edi) = LO8(eax); edi += _df; /* 0x47054686: stosb byte ptr es:[edi], al */
   2831 L_47054687:
   2832     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2833     eax = 0; /* 0x47054687: xor eax, eax */
   2834     _cf = 0;
   2835     _flag_k = FK_TEST;
   2836 L_47054689:
   2837     MEM32(esp + 0x54) = edx; /* 0x47054689: mov dword ptr [esp + 0x54], edx */
   2838 L_4705468D:
   2839     MEM32(esp + 0x58) = esi; /* 0x4705468D: mov dword ptr [esp + 0x58], esi */
   2840 L_47054691:
   2841     ecx = 0x1Du; /* 0x47054691: mov ecx, 0x1d */
   2842 L_47054696:
   2843     edi = esp + 0x5C; /* 0x47054696: lea edi, [esp + 0x5c] */
   2844 L_4705469A:
   2845     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705469A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   2846 L_4705469C:
   2847     MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x4705469C: stosw word ptr es:[edi], ax */
   2848 L_4705469E:
   2849     MEM8(edi) = LO8(eax); edi += _df; /* 0x4705469E: stosb byte ptr es:[edi], al */
   2850 L_4705469F:
   2851     eax = MEM32(esp + 0x30); /* 0x4705469F: mov eax, dword ptr [esp + 0x30] */
   2852 L_470546A3:
   2853     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
   2854     eax = eax & 0xFFFFu; /* 0x470546A3: and eax, 0xffff */
   2855     _cf = 0;
   2856     _flag_k = FK_TEST;
   2857 L_470546A8:
   2858     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   2859     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2860     esp = esp + 0x20u; /* 0x470546A8: add esp, 0x20 */
   2861     _flag_k = FK_ADD;
   2862 L_470546AB:
   2863     /* cmp eax, 3 */ /* 0x470546AB: cmp eax, 3 */
   2864     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   2865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2866     _flag_k = FK_CMP;
   2867 L_470546AE:
   2868     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47054865; /* 0x470546AE: ja 0x47054865 */
   2869 L_470546B4:
   2870     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x47054A00)); goto _ljump; }
   2871 L_470546BB:
   2872     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   2873     ecx = ecx | 0xFFFFFFFFu; /* 0x470546BB: or ecx, 0xffffffff */
   2874     _cf = 0;
   2875     _flag_k = FK_TEST;
   2876 L_470546BE:
   2877     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2878     eax = 0; /* 0x470546BE: xor eax, eax */
   2879     _cf = 0;
   2880     _flag_k = FK_TEST;
   2881 L_470546C0:
   2882     edi = 0x47109018u; /* 0x470546C0: mov edi, 0x47109018 */
   2883 L_470546C5:
   2884     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; } /* 0x470546C5: repne scasb al, byte ptr es:[edi] */
   2885 L_470546C7:
   2886     ecx = ~ecx; /* 0x470546C7: not ecx */
   2887 L_470546C9:
   2888     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   2889     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2890     edi = edi - ecx; /* 0x470546C9: sub edi, ecx */
   2891     _flag_k = FK_CMP;
   2892 L_470546CB:
   2893     eax = ecx; /* 0x470546CB: mov eax, ecx */
   2894 L_470546CD:
   2895     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x470546CD: shr ecx, 2 */
   2896     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2897     ecx = ecx >> 2u; /* 0x470546CD: shr ecx, 2 */
   2898 L_470546D0:
   2899     esi = edi; /* 0x470546D0: mov esi, edi */
   2900 L_470546D2:
   2901     edx = esp + 0xB4; /* 0x470546D2: lea edx, [esp + 0xb4] */
   2902 L_470546D9:
   2903     edi = edx; /* 0x470546D9: mov edi, edx */
   2904 L_470546DB:
   2905     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470546DB: 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; }
   2906 L_470546DD:
   2907     ecx = eax; /* 0x470546DD: mov ecx, eax */
   2908 L_470546DF:
   2909     eax = MEM32(esp + 0x30); /* 0x470546DF: mov eax, dword ptr [esp + 0x30] */
   2910 L_470546E3:
   2911     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   2912     ecx = ecx & 3; /* 0x470546E3: and ecx, 3 */
   2913     _cf = 0;
   2914     _flag_k = FK_TEST;
   2915 L_470546E6:
   2916     /* cmp LO16(eax), 3 */ /* 0x470546E6: cmp ax, 3 */
   2917     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(3) << 16;
   2918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2919     _flag_k = FK_NARROW(FK_CMP, 16);
   2920 L_470546EA:
   2921     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x470546EA: 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; }
   2922 L_470546EC:
   2923     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470546FC; /* 0x470546EC: jne 0x470546fc */
   2924 L_470546EE:
   2925     edx = esp + 0x34; /* 0x470546EE: lea edx, [esp + 0x34] */
   2926 L_470546F2:
   2927     edi = 0x47109010u; /* 0x470546F2: mov edi, 0x47109010 */
   2928 L_470546F7:
   2929     goto L_47054871; /* 0x470546F7: jmp 0x47054871 */
   2930 L_470546FC:
   2931     /* cmp LO16(eax), 4 */ /* 0x470546FC: cmp ax, 4 */
   2932     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(4) << 16;
   2933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2934     _flag_k = FK_NARROW(FK_CMP, 16);
   2935 L_47054700:
   2936     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054710; /* 0x47054700: jne 0x47054710 */
   2937 L_47054702:
   2938     edx = esp + 0x34; /* 0x47054702: lea edx, [esp + 0x34] */
   2939 L_47054706:
   2940     edi = 0x47109008u; /* 0x47054706: mov edi, 0x47109008 */
   2941 L_4705470B:
   2942     goto L_47054871; /* 0x4705470B: jmp 0x47054871 */
   2943 L_47054710:
   2944     /* cmp LO16(eax), 5 */ /* 0x47054710: cmp ax, 5 */
   2945     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(5) << 16;
   2946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2947     _flag_k = FK_NARROW(FK_CMP, 16);
   2948 L_47054714:
   2949     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054724; /* 0x47054714: jne 0x47054724 */
   2950 L_47054716:
   2951     edx = esp + 0x34; /* 0x47054716: lea edx, [esp + 0x34] */
   2952 L_4705471A:
   2953     edi = 0x47109000u; /* 0x4705471A: mov edi, 0x47109000 */
   2954 L_4705471F:
   2955     goto L_47054871; /* 0x4705471F: jmp 0x47054871 */
   2956 L_47054724:
   2957     /* cmp LO16(eax), 6 */ /* 0x47054724: cmp ax, 6 */
   2958     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(6) << 16;
   2959     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2960     _flag_k = FK_NARROW(FK_CMP, 16);
   2961 L_47054728:
   2962     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054738; /* 0x47054728: jne 0x47054738 */
   2963 L_4705472A:
   2964     edx = esp + 0x34; /* 0x4705472A: lea edx, [esp + 0x34] */
   2965 L_4705472E:
   2966     edi = 0x47108FF4u; /* 0x4705472E: mov edi, 0x47108ff4 */
   2967 L_47054733:
   2968     goto L_47054871; /* 0x47054733: jmp 0x47054871 */
   2969 L_47054738:
   2970     /* cmp LO16(eax), 7 */ /* 0x47054738: cmp ax, 7 */
   2971     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(7) << 16;
   2972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2973     _flag_k = FK_NARROW(FK_CMP, 16);
   2974 L_4705473C:
   2975     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4705488E; /* 0x4705473C: jne 0x4705488e */
   2976 L_47054742:
   2977     edx = esp + 0x34; /* 0x47054742: lea edx, [esp + 0x34] */
   2978 L_47054746:
   2979     edi = 0x47108FE8u; /* 0x47054746: mov edi, 0x47108fe8 */
   2980 L_4705474B:
   2981     goto L_47054871; /* 0x4705474B: jmp 0x47054871 */
   2982 L_47054750:
   2983     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   2984     ecx = ecx | 0xFFFFFFFFu; /* 0x47054750: or ecx, 0xffffffff */
   2985     _cf = 0;
   2986     _flag_k = FK_TEST;
   2987 L_47054753:
   2988     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2989     eax = 0; /* 0x47054753: xor eax, eax */
   2990     _cf = 0;
   2991     _flag_k = FK_TEST;
   2992 L_47054755:
   2993     edi = 0x47108FE0u; /* 0x47054755: mov edi, 0x47108fe0 */
   2994 L_4705475A:
   2995     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; } /* 0x4705475A: repne scasb al, byte ptr es:[edi] */
   2996 L_4705475C:
   2997     ecx = ~ecx; /* 0x4705475C: not ecx */
   2998 L_4705475E:
   2999     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3000     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3001     edi = edi - ecx; /* 0x4705475E: sub edi, ecx */
   3002     _flag_k = FK_CMP;
   3003 L_47054760:
   3004     eax = ecx; /* 0x47054760: mov eax, ecx */
   3005 L_47054762:
   3006     esi = edi; /* 0x47054762: mov esi, edi */
   3007 L_47054764:
   3008     edx = esp + 0xB4; /* 0x47054764: lea edx, [esp + 0xb4] */
   3009 L_4705476B:
   3010     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4705476B: shr ecx, 2 */
   3011     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3012     ecx = ecx >> 2u; /* 0x4705476B: shr ecx, 2 */
   3013 L_4705476E:
   3014     edi = edx; /* 0x4705476E: mov edi, edx */
   3015 L_47054770:
   3016     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47054770: 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; }
   3017 L_47054772:
   3018     ecx = eax; /* 0x47054772: mov ecx, eax */
   3019 L_47054774:
   3020     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3021     ecx = ecx & 3; /* 0x47054774: and ecx, 3 */
   3022     _cf = 0;
   3023     _flag_k = FK_TEST;
   3024 L_47054777:
   3025     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47054777: 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; }
   3026 L_47054779:
   3027     edx = esp + 0x34; /* 0x47054779: lea edx, [esp + 0x34] */
   3028 L_4705477D:
   3029     edi = 0x47108FD8u; /* 0x4705477D: mov edi, 0x47108fd8 */
   3030 L_47054782:
   3031     goto L_47054871; /* 0x47054782: jmp 0x47054871 */
   3032 L_47054787:
   3033     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3034     ecx = ecx | 0xFFFFFFFFu; /* 0x47054787: or ecx, 0xffffffff */
   3035     _cf = 0;
   3036     _flag_k = FK_TEST;
   3037 L_4705478A:
   3038     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3039     eax = 0; /* 0x4705478A: xor eax, eax */
   3040     _cf = 0;
   3041     _flag_k = FK_TEST;
   3042 L_4705478C:
   3043     edi = 0x47108FD0u; /* 0x4705478C: mov edi, 0x47108fd0 */
   3044 L_47054791:
   3045     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; } /* 0x47054791: repne scasb al, byte ptr es:[edi] */
   3046 L_47054793:
   3047     ecx = ~ecx; /* 0x47054793: not ecx */
   3048 L_47054795:
   3049     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3051     edi = edi - ecx; /* 0x47054795: sub edi, ecx */
   3052     _flag_k = FK_CMP;
   3053 L_47054797:
   3054     eax = ecx; /* 0x47054797: mov eax, ecx */
   3055 L_47054799:
   3056     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47054799: shr ecx, 2 */
   3057     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3058     ecx = ecx >> 2u; /* 0x47054799: shr ecx, 2 */
   3059 L_4705479C:
   3060     edx = esp + 0xB4; /* 0x4705479C: lea edx, [esp + 0xb4] */
   3061 L_470547A3:
   3062     esi = edi; /* 0x470547A3: mov esi, edi */
   3063 L_470547A5:
   3064     edi = edx; /* 0x470547A5: mov edi, edx */
   3065 L_470547A7:
   3066     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470547A7: 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; }
   3067 L_470547A9:
   3068     ecx = eax; /* 0x470547A9: mov ecx, eax */
   3069 L_470547AB:
   3070     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3071     ecx = ecx & 3; /* 0x470547AB: and ecx, 3 */
   3072     _cf = 0;
   3073     _flag_k = FK_TEST;
   3074 L_470547AE:
   3075     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x470547AE: 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; }
   3076 L_470547B0:
   3077     ecx = MEM32(esp + 0x30); /* 0x470547B0: mov ecx, dword ptr [esp + 0x30] */
   3078 L_470547B4:
   3079     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
   3080     ecx = ecx & 0xFFFFu; /* 0x470547B4: and ecx, 0xffff */
   3081     _cf = 0;
   3082     _flag_k = FK_TEST;
   3083 L_470547BA:
   3084     PUSH32(esp, ecx); /* 0x470547BA: push ecx */
   3085 L_470547BB:
   3086     edx = esp + 0x38; /* 0x470547BB: lea edx, [esp + 0x38] */
   3087 L_470547BF:
   3088     PUSH32(esp, 0x471072C4u); /* 0x470547BF: push 0x471072c4 */
   3089 L_470547C4:
   3090     PUSH32(esp, edx); /* 0x470547C4: push edx */
   3091 L_470547C5:
   3092     RECOMP_ICALL(0x47054FC0u); /* 0x470547C5: call 0x47054fc0 */ /* not lifted */
   3093     RECOMP_FLAGS_IN();
   3094 L_470547CA:
   3095     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3096     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3097     esp = esp + 0xCu; /* 0x470547CA: add esp, 0xc */
   3098     _flag_k = FK_ADD;
   3099 L_470547CD:
   3100     goto L_4705488E; /* 0x470547CD: jmp 0x4705488e */
   3101 L_470547D2:
   3102     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3103     ecx = ecx | 0xFFFFFFFFu; /* 0x470547D2: or ecx, 0xffffffff */
   3104     _cf = 0;
   3105     _flag_k = FK_TEST;
   3106 L_470547D5:
   3107     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3108     eax = 0; /* 0x470547D5: xor eax, eax */
   3109     _cf = 0;
   3110     _flag_k = FK_TEST;
   3111 L_470547D7:
   3112     edi = 0x47108FCCu; /* 0x470547D7: mov edi, 0x47108fcc */
   3113 L_470547DC:
   3114     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; } /* 0x470547DC: repne scasb al, byte ptr es:[edi] */
   3115 L_470547DE:
   3116     ecx = ~ecx; /* 0x470547DE: not ecx */
   3117 L_470547E0:
   3118     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3119     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3120     edi = edi - ecx; /* 0x470547E0: sub edi, ecx */
   3121     _flag_k = FK_CMP;
   3122 L_470547E2:
   3123     eax = ecx; /* 0x470547E2: mov eax, ecx */
   3124 L_470547E4:
   3125     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x470547E4: shr ecx, 2 */
   3126     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3127     ecx = ecx >> 2u; /* 0x470547E4: shr ecx, 2 */
   3128 L_470547E7:
   3129     esi = edi; /* 0x470547E7: mov esi, edi */
   3130 L_470547E9:
   3131     edx = esp + 0xB4; /* 0x470547E9: lea edx, [esp + 0xb4] */
   3132 L_470547F0:
   3133     edi = edx; /* 0x470547F0: mov edi, edx */
   3134 L_470547F2:
   3135     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470547F2: 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; }
   3136 L_470547F4:
   3137     ecx = eax; /* 0x470547F4: mov ecx, eax */
   3138 L_470547F6:
   3139     eax = MEM32(esp + 0x30); /* 0x470547F6: mov eax, dword ptr [esp + 0x30] */
   3140 L_470547FA:
   3141     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3142     ecx = ecx & 3; /* 0x470547FA: and ecx, 3 */
   3143     _cf = 0;
   3144     _flag_k = FK_TEST;
   3145 L_470547FD:
   3146     /* cmp LO16(eax), 1 */ /* 0x470547FD: cmp ax, 1 */
   3147     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(1) << 16;
   3148     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3149     _flag_k = FK_NARROW(FK_CMP, 16);
   3150 L_47054801:
   3151     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47054801: 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; }
   3152 L_47054803:
   3153     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054810; /* 0x47054803: jne 0x47054810 */
   3154 L_47054805:
   3155     edx = esp + 0x34; /* 0x47054805: lea edx, [esp + 0x34] */
   3156 L_47054809:
   3157     edi = 0x47108FC8u; /* 0x47054809: mov edi, 0x47108fc8 */
   3158 L_4705480E:
   3159     goto L_47054871; /* 0x4705480E: jmp 0x47054871 */
   3160 L_47054810:
   3161     /* cmp LO16(eax), 3 */ /* 0x47054810: cmp ax, 3 */
   3162     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(3) << 16;
   3163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3164     _flag_k = FK_NARROW(FK_CMP, 16);
   3165 L_47054814:
   3166     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054821; /* 0x47054814: jne 0x47054821 */
   3167 L_47054816:
   3168     edx = esp + 0x34; /* 0x47054816: lea edx, [esp + 0x34] */
   3169 L_4705481A:
   3170     edi = 0x47108FC4u; /* 0x4705481A: mov edi, 0x47108fc4 */
   3171 L_4705481F:
   3172     goto L_47054871; /* 0x4705481F: jmp 0x47054871 */
   3173 L_47054821:
   3174     /* cmp LO16(eax), 4 */ /* 0x47054821: cmp ax, 4 */
   3175     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(4) << 16;
   3176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3177     _flag_k = FK_NARROW(FK_CMP, 16);
   3178 L_47054825:
   3179     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054832; /* 0x47054825: jne 0x47054832 */
   3180 L_47054827:
   3181     edx = esp + 0x34; /* 0x47054827: lea edx, [esp + 0x34] */
   3182 L_4705482B:
   3183     edi = 0x47108FC0u; /* 0x4705482B: mov edi, 0x47108fc0 */
   3184 L_47054830:
   3185     goto L_47054871; /* 0x47054830: jmp 0x47054871 */
   3186 L_47054832:
   3187     /* cmp LO16(eax), 6 */ /* 0x47054832: cmp ax, 6 */
   3188     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(6) << 16;
   3189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3190     _flag_k = FK_NARROW(FK_CMP, 16);
   3191 L_47054836:
   3192     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054843; /* 0x47054836: jne 0x47054843 */
   3193 L_47054838:
   3194     edx = esp + 0x34; /* 0x47054838: lea edx, [esp + 0x34] */
   3195 L_4705483C:
   3196     edi = 0x47108FB8u; /* 0x4705483C: mov edi, 0x47108fb8 */
   3197 L_47054841:
   3198     goto L_47054871; /* 0x47054841: jmp 0x47054871 */
   3199 L_47054843:
   3200     /* cmp LO16(eax), 9 */ /* 0x47054843: cmp ax, 9 */
   3201     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(9) << 16;
   3202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3203     _flag_k = FK_NARROW(FK_CMP, 16);
   3204 L_47054847:
   3205     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054854; /* 0x47054847: jne 0x47054854 */
   3206 L_47054849:
   3207     edx = esp + 0x34; /* 0x47054849: lea edx, [esp + 0x34] */
   3208 L_4705484D:
   3209     edi = 0x47108FB0u; /* 0x4705484D: mov edi, 0x47108fb0 */
   3210 L_47054852:
   3211     goto L_47054871; /* 0x47054852: jmp 0x47054871 */
   3212 L_47054854:
   3213     /* cmp LO16(eax), 0x14u */ /* 0x47054854: cmp ax, 0x14 */
   3214     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x14u) << 16;
   3215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3216     _flag_k = FK_NARROW(FK_CMP, 16);
   3217 L_47054858:
   3218     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4705488E; /* 0x47054858: jne 0x4705488e */
   3219 L_4705485A:
   3220     edx = esp + 0x34; /* 0x4705485A: lea edx, [esp + 0x34] */
   3221 L_4705485E:
   3222     edi = 0x47108FACu; /* 0x4705485E: mov edi, 0x47108fac */
   3223 L_47054863:
   3224     goto L_47054871; /* 0x47054863: jmp 0x47054871 */
   3225 L_47054865:
   3226     edx = esp + 0xB4; /* 0x47054865: lea edx, [esp + 0xb4] */
   3227 L_4705486C:
   3228     edi = 0x47109020u; /* 0x4705486C: mov edi, 0x47109020 */
   3229 L_47054871:
   3230     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3231     ecx = ecx | 0xFFFFFFFFu; /* 0x47054871: or ecx, 0xffffffff */
   3232     _cf = 0;
   3233     _flag_k = FK_TEST;
   3234 L_47054874:
   3235     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3236     eax = 0; /* 0x47054874: xor eax, eax */
   3237     _cf = 0;
   3238     _flag_k = FK_TEST;
   3239 L_47054876:
   3240     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; } /* 0x47054876: repne scasb al, byte ptr es:[edi] */
   3241 L_47054878:
   3242     ecx = ~ecx; /* 0x47054878: not ecx */
   3243 L_4705487A:
   3244     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3246     edi = edi - ecx; /* 0x4705487A: sub edi, ecx */
   3247     _flag_k = FK_CMP;
   3248 L_4705487C:
   3249     eax = ecx; /* 0x4705487C: mov eax, ecx */
   3250 L_4705487E:
   3251     esi = edi; /* 0x4705487E: mov esi, edi */
   3252 L_47054880:
   3253     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47054880: shr ecx, 2 */
   3254     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3255     ecx = ecx >> 2u; /* 0x47054880: shr ecx, 2 */
   3256 L_47054883:
   3257     edi = edx; /* 0x47054883: mov edi, edx */
   3258 L_47054885:
   3259     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47054885: 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; }
   3260 L_47054887:
   3261     ecx = eax; /* 0x47054887: mov ecx, eax */
   3262 L_47054889:
   3263     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3264     ecx = ecx & 3; /* 0x47054889: and ecx, 3 */
   3265     _cf = 0;
   3266     _flag_k = FK_TEST;
   3267 L_4705488C:
   3268     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705488C: 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; }
   3269 L_4705488E:
   3270     ecx = esp + 0x34; /* 0x4705488E: lea ecx, [esp + 0x34] */
   3271 L_47054892:
   3272     PUSH32(esp, ecx); /* 0x47054892: push ecx */
   3273 L_47054893:
   3274     edx = esp + 0xB8; /* 0x47054893: lea edx, [esp + 0xb8] */
   3275 L_4705489A:
   3276     PUSH32(esp, edx); /* 0x4705489A: push edx */
   3277 L_4705489B:
   3278     eax = ebx + 0x404; /* 0x4705489B: lea eax, [ebx + 0x404] */
   3279 L_470548A1:
   3280     PUSH32(esp, 0x47108FA4u); /* 0x470548A1: push 0x47108fa4 */
   3281 L_470548A6:
   3282     PUSH32(esp, eax); /* 0x470548A6: push eax */
   3283 L_470548A7:
   3284     RECOMP_ICALL(0x47054FC0u); /* 0x470548A7: call 0x47054fc0 */ /* not lifted */
   3285     RECOMP_FLAGS_IN();
   3286 L_470548AC:
   3287     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3288     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3289     esp = esp + 0x10u; /* 0x470548AC: add esp, 0x10 */
   3290     _flag_k = FK_ADD;
   3291 L_470548AF:
   3292     goto L_470549B9; /* 0x470548AF: jmp 0x470549b9 */
   3293 L_470548B4:
   3294     /* cmp eax, 1 */ /* 0x470548B4: cmp eax, 1 */
   3295     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3297     _flag_k = FK_CMP;
   3298 L_470548B7:
   3299     edx = ebx + 0x202; /* 0x470548B7: lea edx, [ebx + 0x202] */
   3300 L_470548BD:
   3301     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054947; /* 0x470548BD: jne 0x47054947 */
   3302 L_470548C3:
   3303     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3304     ecx = ecx | 0xFFFFFFFFu; /* 0x470548C3: or ecx, 0xffffffff */
   3305     _cf = 0;
   3306     _flag_k = FK_TEST;
   3307 L_470548C6:
   3308     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3309     eax = 0; /* 0x470548C6: xor eax, eax */
   3310     _cf = 0;
   3311     _flag_k = FK_TEST;
   3312 L_470548C8:
   3313     edi = 0x47108F98u; /* 0x470548C8: mov edi, 0x47108f98 */
   3314 L_470548CD:
   3315     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; } /* 0x470548CD: repne scasb al, byte ptr es:[edi] */
   3316 L_470548CF:
   3317     ecx = ~ecx; /* 0x470548CF: not ecx */
   3318 L_470548D1:
   3319     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3321     edi = edi - ecx; /* 0x470548D1: sub edi, ecx */
   3322     _flag_k = FK_CMP;
   3323 L_470548D3:
   3324     eax = ecx; /* 0x470548D3: mov eax, ecx */
   3325 L_470548D5:
   3326     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x470548D5: shr ecx, 2 */
   3327     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3328     ecx = ecx >> 2u; /* 0x470548D5: shr ecx, 2 */
   3329 L_470548D8:
   3330     esi = edi; /* 0x470548D8: mov esi, edi */
   3331 L_470548DA:
   3332     edi = edx; /* 0x470548DA: mov edi, edx */
   3333 L_470548DC:
   3334     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470548DC: 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; }
   3335 L_470548DE:
   3336     ecx = eax; /* 0x470548DE: mov ecx, eax */
   3337 L_470548E0:
   3338     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3339     ecx = ecx & 3; /* 0x470548E0: and ecx, 3 */
   3340     _cf = 0;
   3341     _flag_k = FK_TEST;
   3342 L_470548E3:
   3343     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x470548E3: 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; }
   3344 L_470548E5:
   3345     ecx = MEM32(esp + 0x140); /* 0x470548E5: mov ecx, dword ptr [esp + 0x140] */
   3346 L_470548EC:
   3347     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
   3348     ecx = ecx & 0xFFFFu; /* 0x470548EC: and ecx, 0xffff */
   3349     _cf = 0;
   3350     _flag_k = FK_TEST;
   3351 L_470548F2:
   3352     PUSH32(esp, ecx); /* 0x470548F2: push ecx */
   3353 L_470548F3:
   3354     edx = ebx + 0x303; /* 0x470548F3: lea edx, [ebx + 0x303] */
   3355 L_470548F9:
   3356     PUSH32(esp, 0x471072C4u); /* 0x470548F9: push 0x471072c4 */
   3357 L_470548FE:
   3358     PUSH32(esp, edx); /* 0x470548FE: push edx */
   3359 L_470548FF:
   3360     RECOMP_ICALL(0x47054FC0u); /* 0x470548FF: call 0x47054fc0 */ /* not lifted */
   3361     RECOMP_FLAGS_IN();
   3362 L_47054904:
   3363     eax = MEM32(esp + 0x34); /* 0x47054904: mov eax, dword ptr [esp + 0x34] */
   3364 L_47054908:
   3365     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3367     esp = esp + 0xCu; /* 0x47054908: add esp, 0xc */
   3368     _flag_k = FK_ADD;
   3369 L_4705490B:
   3370     /* cmp eax, 0x182u */ /* 0x4705490B: cmp eax, 0x182 */
   3371     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x182u);
   3372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3373     _flag_k = FK_CMP;
   3374 L_47054910:
   3375     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4705491F; /* 0x47054910: jne 0x4705491f */
   3376 L_47054912:
   3377     edx = ebx + 0x404; /* 0x47054912: lea edx, [ebx + 0x404] */
   3378 L_47054918:
   3379     edi = 0x47108F8Cu; /* 0x47054918: mov edi, 0x47108f8c */
   3380 L_4705491D:
   3381     goto L_4705499C; /* 0x4705491D: jmp 0x4705499c */
   3382 L_4705491F:
   3383     /* cmp eax, 0x1E6u */ /* 0x4705491F: cmp eax, 0x1e6 */
   3384     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1E6u);
   3385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3386     _flag_k = FK_CMP;
   3387 L_47054924:
   3388     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054933; /* 0x47054924: jne 0x47054933 */
   3389 L_47054926:
   3390     edx = ebx + 0x404; /* 0x47054926: lea edx, [ebx + 0x404] */
   3391 L_4705492C:
   3392     edi = 0x47108F80u; /* 0x4705492C: mov edi, 0x47108f80 */
   3393 L_47054931:
   3394     goto L_4705499C; /* 0x47054931: jmp 0x4705499c */
   3395 L_47054933:
   3396     /* cmp eax, 0x24Au */ /* 0x47054933: cmp eax, 0x24a */
   3397     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24Au);
   3398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3399     _flag_k = FK_CMP;
   3400 L_47054938:
   3401     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470549B9; /* 0x47054938: jne 0x470549b9 */
   3402 L_4705493A:
   3403     edx = ebx + 0x404; /* 0x4705493A: lea edx, [ebx + 0x404] */
   3404 L_47054940:
   3405     edi = 0x47108F70u; /* 0x47054940: mov edi, 0x47108f70 */
   3406 L_47054945:
   3407     goto L_4705499C; /* 0x47054945: jmp 0x4705499c */
   3408 L_47054947:
   3409     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3410     ecx = ecx | 0xFFFFFFFFu; /* 0x47054947: or ecx, 0xffffffff */
   3411     _cf = 0;
   3412     _flag_k = FK_TEST;
   3413 L_4705494A:
   3414     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3415     eax = 0; /* 0x4705494A: xor eax, eax */
   3416     _cf = 0;
   3417     _flag_k = FK_TEST;
   3418 L_4705494C:
   3419     edi = 0x47108F6Cu; /* 0x4705494C: mov edi, 0x47108f6c */
   3420 L_47054951:
   3421     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; } /* 0x47054951: repne scasb al, byte ptr es:[edi] */
   3422 L_47054953:
   3423     ecx = ~ecx; /* 0x47054953: not ecx */
   3424 L_47054955:
   3425     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3427     edi = edi - ecx; /* 0x47054955: sub edi, ecx */
   3428     _flag_k = FK_CMP;
   3429 L_47054957:
   3430     eax = ecx; /* 0x47054957: mov eax, ecx */
   3431 L_47054959:
   3432     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47054959: shr ecx, 2 */
   3433     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3434     ecx = ecx >> 2u; /* 0x47054959: shr ecx, 2 */
   3435 L_4705495C:
   3436     esi = edi; /* 0x4705495C: mov esi, edi */
   3437 L_4705495E:
   3438     edi = edx; /* 0x4705495E: mov edi, edx */
   3439 L_47054960:
   3440     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47054960: 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; }
   3441 L_47054962:
   3442     ecx = eax; /* 0x47054962: mov ecx, eax */
   3443 L_47054964:
   3444     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3445     ecx = ecx & 3; /* 0x47054964: and ecx, 3 */
   3446     _cf = 0;
   3447     _flag_k = FK_TEST;
   3448 L_47054967:
   3449     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47054967: 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; }
   3450 L_47054969:
   3451     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3452     ecx = ecx | 0xFFFFFFFFu; /* 0x47054969: or ecx, 0xffffffff */
   3453     _cf = 0;
   3454     _flag_k = FK_TEST;
   3455 L_4705496C:
   3456     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3457     eax = 0; /* 0x4705496C: xor eax, eax */
   3458     _cf = 0;
   3459     _flag_k = FK_TEST;
   3460 L_4705496E:
   3461     edi = 0x47108F6Cu; /* 0x4705496E: mov edi, 0x47108f6c */
   3462 L_47054973:
   3463     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; } /* 0x47054973: repne scasb al, byte ptr es:[edi] */
   3464 L_47054975:
   3465     ecx = ~ecx; /* 0x47054975: not ecx */
   3466 L_47054977:
   3467     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3468     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3469     edi = edi - ecx; /* 0x47054977: sub edi, ecx */
   3470     _flag_k = FK_CMP;
   3471 L_47054979:
   3472     eax = ecx; /* 0x47054979: mov eax, ecx */
   3473 L_4705497B:
   3474     esi = edi; /* 0x4705497B: mov esi, edi */
   3475 L_4705497D:
   3476     edx = ebx + 0x303; /* 0x4705497D: lea edx, [ebx + 0x303] */
   3477 L_47054983:
   3478     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47054983: shr ecx, 2 */
   3479     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3480     ecx = ecx >> 2u; /* 0x47054983: shr ecx, 2 */
   3481 L_47054986:
   3482     edi = edx; /* 0x47054986: mov edi, edx */
   3483 L_47054988:
   3484     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47054988: 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; }
   3485 L_4705498A:
   3486     ecx = eax; /* 0x4705498A: mov ecx, eax */
   3487 L_4705498C:
   3488     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3489     ecx = ecx & 3; /* 0x4705498C: and ecx, 3 */
   3490     _cf = 0;
   3491     _flag_k = FK_TEST;
   3492 L_4705498F:
   3493     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705498F: 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; }
   3494 L_47054991:
   3495     edx = ebx + 0x404; /* 0x47054991: lea edx, [ebx + 0x404] */
   3496 L_47054997:
   3497     edi = 0x47108F6Cu; /* 0x47054997: mov edi, 0x47108f6c */
   3498 L_4705499C:
   3499     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3500     ecx = ecx | 0xFFFFFFFFu; /* 0x4705499C: or ecx, 0xffffffff */
   3501     _cf = 0;
   3502     _flag_k = FK_TEST;
   3503 L_4705499F:
   3504     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3505     eax = 0; /* 0x4705499F: xor eax, eax */
   3506     _cf = 0;
   3507     _flag_k = FK_TEST;
   3508 L_470549A1:
   3509     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; } /* 0x470549A1: repne scasb al, byte ptr es:[edi] */
   3510 L_470549A3:
   3511     ecx = ~ecx; /* 0x470549A3: not ecx */
   3512 L_470549A5:
   3513     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3515     edi = edi - ecx; /* 0x470549A5: sub edi, ecx */
   3516     _flag_k = FK_CMP;
   3517 L_470549A7:
   3518     eax = ecx; /* 0x470549A7: mov eax, ecx */
   3519 L_470549A9:
   3520     esi = edi; /* 0x470549A9: mov esi, edi */
   3521 L_470549AB:
   3522     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x470549AB: shr ecx, 2 */
   3523     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3524     ecx = ecx >> 2u; /* 0x470549AB: shr ecx, 2 */
   3525 L_470549AE:
   3526     edi = edx; /* 0x470549AE: mov edi, edx */
   3527 L_470549B0:
   3528     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470549B0: 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; }
   3529 L_470549B2:
   3530     ecx = eax; /* 0x470549B2: mov ecx, eax */
   3531 L_470549B4:
   3532     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3533     ecx = ecx & 3; /* 0x470549B4: and ecx, 3 */
   3534     _cf = 0;
   3535     _flag_k = FK_TEST;
   3536 L_470549B7:
   3537     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x470549B7: 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; }
   3538 L_470549B9:
   3539     ecx = esp + 0xC; /* 0x470549B9: lea ecx, [esp + 0xc] */
   3540 L_470549BD:
   3541     PUSH32(esp, ecx); /* 0x470549BD: push ecx */
   3542 L_470549BE:
   3543     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x101u);
   3544     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3545     ebx = ebx + 0x101u; /* 0x470549BE: add ebx, 0x101 */
   3546     _flag_k = FK_ADD;
   3547 L_470549C4:
   3548     PUSH32(esp, ebx); /* 0x470549C4: push ebx */
   3549 L_470549C5:
   3550     MEM32(esp + 0x14) = 0x101u; /* 0x470549C5: mov dword ptr [esp + 0x14], 0x101 */
   3551 L_470549CD:
   3552     RECOMP_ICALL(MEM32(0x470AC128)); /* 0x470549CD: call dword ptr [0x470ac128] */
   3553     RECOMP_FLAGS_IN();
   3554 L_470549D3:
   3555     esi = eax; /* 0x470549D3: mov esi, eax */
   3556 L_470549D5:
   3557     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   3558     _cf = (esi) != 0;
   3559     esi = (uint32_t)(-(int32_t)esi); /* 0x470549D5: neg esi */
   3560     _flag_k = FK_CMP;
   3561 L_470549D7:
   3562     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x470549D7: sbb esi, esi */
   3563       esi = _sc ? 0xFFFFFFFFu : 0;
   3564       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3565       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3566 L_470549D9:
   3567     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   3568     _cf = (esi) != 0;
   3569     esi = (uint32_t)(-(int32_t)esi); /* 0x470549D9: neg esi */
   3570     _flag_k = FK_CMP;
   3571 L_470549DB:
   3572     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   3573     esi = esi - 1; /* 0x470549DB: dec esi */
   3574     _flag_k = FK_DEC;
   3575 L_470549DC:
   3576     /* cmp esi, 0xFFFFFFFFu */ /* 0x470549DC: cmp esi, -1 */
   3577     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3579     _flag_k = FK_CMP;
   3580 L_470549DF:
   3581     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470549F1; /* 0x470549DF: jne 0x470549f1 */
   3582 L_470549E1:
   3583     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470549E1: call dword ptr [0x470ac3c8] */
   3584     RECOMP_FLAGS_IN();
   3585 L_470549E7:
   3586     edi = eax; /* 0x470549E7: mov edi, eax */
   3587 L_470549E9:
   3588     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470549E9: call dword ptr [0x470ac150] */
   3589     RECOMP_FLAGS_IN();
   3590 L_470549EF:
   3591     MEM32(edi) = eax; /* 0x470549EF: mov dword ptr [edi], eax */
   3592 L_470549F1:
   3593     edi = POP32_VAL(esp); /* 0x470549F1: pop edi */
   3594 L_470549F2:
   3595     eax = esi; /* 0x470549F2: mov eax, esi */
   3596 L_470549F4:
   3597     esi = POP32_VAL(esp); /* 0x470549F4: pop esi */
   3598 L_470549F5:
   3599     ebx = POP32_VAL(esp); /* 0x470549F5: pop ebx */
   3600 L_470549F6:
   3601     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1BCu);
   3602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3603     esp = esp + 0x1BCu; /* 0x470549F6: add esp, 0x1bc */
   3604     _flag_k = FK_ADD;
   3605 L_470549FC:
   3606     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470549FC: ret  */
   3607   _ljump:
   3608     switch (_itail_tgt) {
   3609       case 0x47054590u: goto L_47054590;
   3610       case 0x47054596u: goto L_47054596;
   3611       case 0x47054599u: goto L_47054599;
   3612       case 0x4705459Au: goto L_4705459A;
   3613       case 0x470545A1u: goto L_470545A1;
   3614       case 0x470545A2u: goto L_470545A2;
   3615       case 0x470545A3u: goto L_470545A3;
   3616       case 0x470545A5u: goto L_470545A5;
   3617       case 0x470545AAu: goto L_470545AA;
   3618       case 0x470545ACu: goto L_470545AC;
   3619       case 0x470545AEu: goto L_470545AE;
   3620       case 0x470545B0u: goto L_470545B0;
   3621       case 0x470545B2u: goto L_470545B2;
   3622       case 0x470545B5u: goto L_470545B5;
   3623       case 0x470545B7u: goto L_470545B7;
   3624       case 0x470545B9u: goto L_470545B9;
   3625       case 0x470545BBu: goto L_470545BB;
   3626       case 0x470545BDu: goto L_470545BD;
   3627       case 0x470545C0u: goto L_470545C0;
   3628       case 0x470545C2u: goto L_470545C2;
   3629       case 0x470545C9u: goto L_470545C9;
   3630       case 0x470545CAu: goto L_470545CA;
   3631       case 0x470545D5u: goto L_470545D5;
   3632       case 0x470545DBu: goto L_470545DB;
   3633       case 0x470545DFu: goto L_470545DF;
   3634       case 0x470545E0u: goto L_470545E0;
   3635       case 0x470545E6u: goto L_470545E6;
   3636       case 0x470545E9u: goto L_470545E9;
   3637       case 0x470545EBu: goto L_470545EB;
   3638       case 0x470545F0u: goto L_470545F0;
   3639       case 0x470545F2u: goto L_470545F2;
   3640       case 0x470545F4u: goto L_470545F4;
   3641       case 0x470545F6u: goto L_470545F6;
   3642       case 0x470545F8u: goto L_470545F8;
   3643       case 0x470545FBu: goto L_470545FB;
   3644       case 0x470545FDu: goto L_470545FD;
   3645       case 0x470545FFu: goto L_470545FF;
   3646       case 0x47054601u: goto L_47054601;
   3647       case 0x47054603u: goto L_47054603;
   3648       case 0x4705460Au: goto L_4705460A;
   3649       case 0x4705460Du: goto L_4705460D;
   3650       case 0x47054610u: goto L_47054610;
   3651       case 0x47054612u: goto L_47054612;
   3652       case 0x47054618u: goto L_47054618;
   3653       case 0x4705461Fu: goto L_4705461F;
   3654       case 0x47054626u: goto L_47054626;
   3655       case 0x47054627u: goto L_47054627;
   3656       case 0x47054628u: goto L_47054628;
   3657       case 0x4705462Eu: goto L_4705462E;
   3658       case 0x47054633u: goto L_47054633;
   3659       case 0x47054634u: goto L_47054634;
   3660       case 0x47054639u: goto L_47054639;
   3661       case 0x47054640u: goto L_47054640;
   3662       case 0x47054647u: goto L_47054647;
   3663       case 0x47054648u: goto L_47054648;
   3664       case 0x47054649u: goto L_47054649;
   3665       case 0x4705464Fu: goto L_4705464F;
   3666       case 0x47054654u: goto L_47054654;
   3667       case 0x47054655u: goto L_47054655;
   3668       case 0x4705465Au: goto L_4705465A;
   3669       case 0x47054660u: goto L_47054660;
   3670       case 0x47054666u: goto L_47054666;
   3671       case 0x47054668u: goto L_47054668;
   3672       case 0x4705466Fu: goto L_4705466F;
   3673       case 0x47054676u: goto L_47054676;
   3674       case 0x4705467Bu: goto L_4705467B;
   3675       case 0x47054682u: goto L_47054682;
   3676       case 0x47054684u: goto L_47054684;
   3677       case 0x47054686u: goto L_47054686;
   3678       case 0x47054687u: goto L_47054687;
   3679       case 0x47054689u: goto L_47054689;
   3680       case 0x4705468Du: goto L_4705468D;
   3681       case 0x47054691u: goto L_47054691;
   3682       case 0x47054696u: goto L_47054696;
   3683       case 0x4705469Au: goto L_4705469A;
   3684       case 0x4705469Cu: goto L_4705469C;
   3685       case 0x4705469Eu: goto L_4705469E;
   3686       case 0x4705469Fu: goto L_4705469F;
   3687       case 0x470546A3u: goto L_470546A3;
   3688       case 0x470546A8u: goto L_470546A8;
   3689       case 0x470546ABu: goto L_470546AB;
   3690       case 0x470546AEu: goto L_470546AE;
   3691       case 0x470546B4u: goto L_470546B4;
   3692       case 0x470546BBu: goto L_470546BB;
   3693       case 0x470546BEu: goto L_470546BE;
   3694       case 0x470546C0u: goto L_470546C0;
   3695       case 0x470546C5u: goto L_470546C5;
   3696       case 0x470546C7u: goto L_470546C7;
   3697       case 0x470546C9u: goto L_470546C9;
   3698       case 0x470546CBu: goto L_470546CB;
   3699       case 0x470546CDu: goto L_470546CD;
   3700       case 0x470546D0u: goto L_470546D0;
   3701       case 0x470546D2u: goto L_470546D2;
   3702       case 0x470546D9u: goto L_470546D9;
   3703       case 0x470546DBu: goto L_470546DB;
   3704       case 0x470546DDu: goto L_470546DD;
   3705       case 0x470546DFu: goto L_470546DF;
   3706       case 0x470546E3u: goto L_470546E3;
   3707       case 0x470546E6u: goto L_470546E6;
   3708       case 0x470546EAu: goto L_470546EA;
   3709       case 0x470546ECu: goto L_470546EC;
   3710       case 0x470546EEu: goto L_470546EE;
   3711       case 0x470546F2u: goto L_470546F2;
   3712       case 0x470546F7u: goto L_470546F7;
   3713       case 0x470546FCu: goto L_470546FC;
   3714       case 0x47054700u: goto L_47054700;
   3715       case 0x47054702u: goto L_47054702;
   3716       case 0x47054706u: goto L_47054706;
   3717       case 0x4705470Bu: goto L_4705470B;
   3718       case 0x47054710u: goto L_47054710;
   3719       case 0x47054714u: goto L_47054714;
   3720       case 0x47054716u: goto L_47054716;
   3721       case 0x4705471Au: goto L_4705471A;
   3722       case 0x4705471Fu: goto L_4705471F;
   3723       case 0x47054724u: goto L_47054724;
   3724       case 0x47054728u: goto L_47054728;
   3725       case 0x4705472Au: goto L_4705472A;
   3726       case 0x4705472Eu: goto L_4705472E;
   3727       case 0x47054733u: goto L_47054733;
   3728       case 0x47054738u: goto L_47054738;
   3729       case 0x4705473Cu: goto L_4705473C;
   3730       case 0x47054742u: goto L_47054742;
   3731       case 0x47054746u: goto L_47054746;
   3732       case 0x4705474Bu: goto L_4705474B;
   3733       case 0x47054750u: goto L_47054750;
   3734       case 0x47054753u: goto L_47054753;
   3735       case 0x47054755u: goto L_47054755;
   3736       case 0x4705475Au: goto L_4705475A;
   3737       case 0x4705475Cu: goto L_4705475C;
   3738       case 0x4705475Eu: goto L_4705475E;
   3739       case 0x47054760u: goto L_47054760;
   3740       case 0x47054762u: goto L_47054762;
   3741       case 0x47054764u: goto L_47054764;
   3742       case 0x4705476Bu: goto L_4705476B;
   3743       case 0x4705476Eu: goto L_4705476E;
   3744       case 0x47054770u: goto L_47054770;
   3745       case 0x47054772u: goto L_47054772;
   3746       case 0x47054774u: goto L_47054774;
   3747       case 0x47054777u: goto L_47054777;
   3748       case 0x47054779u: goto L_47054779;
   3749       case 0x4705477Du: goto L_4705477D;
   3750       case 0x47054782u: goto L_47054782;
   3751       case 0x47054787u: goto L_47054787;
   3752       case 0x4705478Au: goto L_4705478A;
   3753       case 0x4705478Cu: goto L_4705478C;
   3754       case 0x47054791u: goto L_47054791;
   3755       case 0x47054793u: goto L_47054793;
   3756       case 0x47054795u: goto L_47054795;
   3757       case 0x47054797u: goto L_47054797;
   3758       case 0x47054799u: goto L_47054799;
   3759       case 0x4705479Cu: goto L_4705479C;
   3760       case 0x470547A3u: goto L_470547A3;
   3761       case 0x470547A5u: goto L_470547A5;
   3762       case 0x470547A7u: goto L_470547A7;
   3763       case 0x470547A9u: goto L_470547A9;
   3764       case 0x470547ABu: goto L_470547AB;
   3765       case 0x470547AEu: goto L_470547AE;
   3766       case 0x470547B0u: goto L_470547B0;
   3767       case 0x470547B4u: goto L_470547B4;
   3768       case 0x470547BAu: goto L_470547BA;
   3769       case 0x470547BBu: goto L_470547BB;
   3770       case 0x470547BFu: goto L_470547BF;
   3771       case 0x470547C4u: goto L_470547C4;
   3772       case 0x470547C5u: goto L_470547C5;
   3773       case 0x470547CAu: goto L_470547CA;
   3774       case 0x470547CDu: goto L_470547CD;
   3775       case 0x470547D2u: goto L_470547D2;
   3776       case 0x470547D5u: goto L_470547D5;
   3777       case 0x470547D7u: goto L_470547D7;
   3778       case 0x470547DCu: goto L_470547DC;
   3779       case 0x470547DEu: goto L_470547DE;
   3780       case 0x470547E0u: goto L_470547E0;
   3781       case 0x470547E2u: goto L_470547E2;
   3782       case 0x470547E4u: goto L_470547E4;
   3783       case 0x470547E7u: goto L_470547E7;
   3784       case 0x470547E9u: goto L_470547E9;
   3785       case 0x470547F0u: goto L_470547F0;
   3786       case 0x470547F2u: goto L_470547F2;
   3787       case 0x470547F4u: goto L_470547F4;
   3788       case 0x470547F6u: goto L_470547F6;
   3789       case 0x470547FAu: goto L_470547FA;
   3790       case 0x470547FDu: goto L_470547FD;
   3791       case 0x47054801u: goto L_47054801;
   3792       case 0x47054803u: goto L_47054803;
   3793       case 0x47054805u: goto L_47054805;
   3794       case 0x47054809u: goto L_47054809;
   3795       case 0x4705480Eu: goto L_4705480E;
   3796       case 0x47054810u: goto L_47054810;
   3797       case 0x47054814u: goto L_47054814;
   3798       case 0x47054816u: goto L_47054816;
   3799       case 0x4705481Au: goto L_4705481A;
   3800       case 0x4705481Fu: goto L_4705481F;
   3801       case 0x47054821u: goto L_47054821;
   3802       case 0x47054825u: goto L_47054825;
   3803       case 0x47054827u: goto L_47054827;
   3804       case 0x4705482Bu: goto L_4705482B;
   3805       case 0x47054830u: goto L_47054830;
   3806       case 0x47054832u: goto L_47054832;
   3807       case 0x47054836u: goto L_47054836;
   3808       case 0x47054838u: goto L_47054838;
   3809       case 0x4705483Cu: goto L_4705483C;
   3810       case 0x47054841u: goto L_47054841;
   3811       case 0x47054843u: goto L_47054843;
   3812       case 0x47054847u: goto L_47054847;
   3813       case 0x47054849u: goto L_47054849;
   3814       case 0x4705484Du: goto L_4705484D;
   3815       case 0x47054852u: goto L_47054852;
   3816       case 0x47054854u: goto L_47054854;
   3817       case 0x47054858u: goto L_47054858;
   3818       case 0x4705485Au: goto L_4705485A;
   3819       case 0x4705485Eu: goto L_4705485E;
   3820       case 0x47054863u: goto L_47054863;
   3821       case 0x47054865u: goto L_47054865;
   3822       case 0x4705486Cu: goto L_4705486C;
   3823       case 0x47054871u: goto L_47054871;
   3824       case 0x47054874u: goto L_47054874;
   3825       case 0x47054876u: goto L_47054876;
   3826       case 0x47054878u: goto L_47054878;
   3827       case 0x4705487Au: goto L_4705487A;
   3828       case 0x4705487Cu: goto L_4705487C;
   3829       case 0x4705487Eu: goto L_4705487E;
   3830       case 0x47054880u: goto L_47054880;
   3831       case 0x47054883u: goto L_47054883;
   3832       case 0x47054885u: goto L_47054885;
   3833       case 0x47054887u: goto L_47054887;
   3834       case 0x47054889u: goto L_47054889;
   3835       case 0x4705488Cu: goto L_4705488C;
   3836       case 0x4705488Eu: goto L_4705488E;
   3837       case 0x47054892u: goto L_47054892;
   3838       case 0x47054893u: goto L_47054893;
   3839       case 0x4705489Au: goto L_4705489A;
   3840       case 0x4705489Bu: goto L_4705489B;
   3841       case 0x470548A1u: goto L_470548A1;
   3842       case 0x470548A6u: goto L_470548A6;
   3843       case 0x470548A7u: goto L_470548A7;
   3844       case 0x470548ACu: goto L_470548AC;
   3845       case 0x470548AFu: goto L_470548AF;
   3846       case 0x470548B4u: goto L_470548B4;
   3847       case 0x470548B7u: goto L_470548B7;
   3848       case 0x470548BDu: goto L_470548BD;
   3849       case 0x470548C3u: goto L_470548C3;
   3850       case 0x470548C6u: goto L_470548C6;
   3851       case 0x470548C8u: goto L_470548C8;
   3852       case 0x470548CDu: goto L_470548CD;
   3853       case 0x470548CFu: goto L_470548CF;
   3854       case 0x470548D1u: goto L_470548D1;
   3855       case 0x470548D3u: goto L_470548D3;
   3856       case 0x470548D5u: goto L_470548D5;
   3857       case 0x470548D8u: goto L_470548D8;
   3858       case 0x470548DAu: goto L_470548DA;
   3859       case 0x470548DCu: goto L_470548DC;
   3860       case 0x470548DEu: goto L_470548DE;
   3861       case 0x470548E0u: goto L_470548E0;
   3862       case 0x470548E3u: goto L_470548E3;
   3863       case 0x470548E5u: goto L_470548E5;
   3864       case 0x470548ECu: goto L_470548EC;
   3865       case 0x470548F2u: goto L_470548F2;
   3866       case 0x470548F3u: goto L_470548F3;
   3867       case 0x470548F9u: goto L_470548F9;
   3868       case 0x470548FEu: goto L_470548FE;
   3869       case 0x470548FFu: goto L_470548FF;
   3870       case 0x47054904u: goto L_47054904;
   3871       case 0x47054908u: goto L_47054908;
   3872       case 0x4705490Bu: goto L_4705490B;
   3873       case 0x47054910u: goto L_47054910;
   3874       case 0x47054912u: goto L_47054912;
   3875       case 0x47054918u: goto L_47054918;
   3876       case 0x4705491Du: goto L_4705491D;
   3877       case 0x4705491Fu: goto L_4705491F;
   3878       case 0x47054924u: goto L_47054924;
   3879       case 0x47054926u: goto L_47054926;
   3880       case 0x4705492Cu: goto L_4705492C;
   3881       case 0x47054931u: goto L_47054931;
   3882       case 0x47054933u: goto L_47054933;
   3883       case 0x47054938u: goto L_47054938;
   3884       case 0x4705493Au: goto L_4705493A;
   3885       case 0x47054940u: goto L_47054940;
   3886       case 0x47054945u: goto L_47054945;
   3887       case 0x47054947u: goto L_47054947;
   3888       case 0x4705494Au: goto L_4705494A;
   3889       case 0x4705494Cu: goto L_4705494C;
   3890       case 0x47054951u: goto L_47054951;
   3891       case 0x47054953u: goto L_47054953;
   3892       case 0x47054955u: goto L_47054955;
   3893       case 0x47054957u: goto L_47054957;
   3894       case 0x47054959u: goto L_47054959;
   3895       case 0x4705495Cu: goto L_4705495C;
   3896       case 0x4705495Eu: goto L_4705495E;
   3897       case 0x47054960u: goto L_47054960;
   3898       case 0x47054962u: goto L_47054962;
   3899       case 0x47054964u: goto L_47054964;
   3900       case 0x47054967u: goto L_47054967;
   3901       case 0x47054969u: goto L_47054969;
   3902       case 0x4705496Cu: goto L_4705496C;
   3903       case 0x4705496Eu: goto L_4705496E;
   3904       case 0x47054973u: goto L_47054973;
   3905       case 0x47054975u: goto L_47054975;
   3906       case 0x47054977u: goto L_47054977;
   3907       case 0x47054979u: goto L_47054979;
   3908       case 0x4705497Bu: goto L_4705497B;
   3909       case 0x4705497Du: goto L_4705497D;
   3910       case 0x47054983u: goto L_47054983;
   3911       case 0x47054986u: goto L_47054986;
   3912       case 0x47054988u: goto L_47054988;
   3913       case 0x4705498Au: goto L_4705498A;
   3914       case 0x4705498Cu: goto L_4705498C;
   3915       case 0x4705498Fu: goto L_4705498F;
   3916       case 0x47054991u: goto L_47054991;
   3917       case 0x47054997u: goto L_47054997;
   3918       case 0x4705499Cu: goto L_4705499C;
   3919       case 0x4705499Fu: goto L_4705499F;
   3920       case 0x470549A1u: goto L_470549A1;
   3921       case 0x470549A3u: goto L_470549A3;
   3922       case 0x470549A5u: goto L_470549A5;
   3923       case 0x470549A7u: goto L_470549A7;
   3924       case 0x470549A9u: goto L_470549A9;
   3925       case 0x470549ABu: goto L_470549AB;
   3926       case 0x470549AEu: goto L_470549AE;
   3927       case 0x470549B0u: goto L_470549B0;
   3928       case 0x470549B2u: goto L_470549B2;
   3929       case 0x470549B4u: goto L_470549B4;
   3930       case 0x470549B7u: goto L_470549B7;
   3931       case 0x470549B9u: goto L_470549B9;
   3932       case 0x470549BDu: goto L_470549BD;
   3933       case 0x470549BEu: goto L_470549BE;
   3934       case 0x470549C4u: goto L_470549C4;
   3935       case 0x470549C5u: goto L_470549C5;
   3936       case 0x470549CDu: goto L_470549CD;
   3937       case 0x470549D3u: goto L_470549D3;
   3938       case 0x470549D5u: goto L_470549D5;
   3939       case 0x470549D7u: goto L_470549D7;
   3940       case 0x470549D9u: goto L_470549D9;
   3941       case 0x470549DBu: goto L_470549DB;
   3942       case 0x470549DCu: goto L_470549DC;
   3943       case 0x470549DFu: goto L_470549DF;
   3944       case 0x470549E1u: goto L_470549E1;
   3945       case 0x470549E7u: goto L_470549E7;
   3946       case 0x470549E9u: goto L_470549E9;
   3947       case 0x470549EFu: goto L_470549EF;
   3948       case 0x470549F1u: goto L_470549F1;
   3949       case 0x470549F2u: goto L_470549F2;
   3950       case 0x470549F4u: goto L_470549F4;
   3951       case 0x470549F5u: goto L_470549F5;
   3952       case 0x470549F6u: goto L_470549F6;
   3953       case 0x470549FCu: goto L_470549FC;
   3954       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3955     }
   3956     RECOMP_REGS_OUT();
   3957 }
   3958 
   3959 void sub_47054871(void) {
   3960     int _fpu_cmp = 0;
   3961     uint32_t _cf = 0;
   3962     int _df = 1;
   3963     uint32_t _flag_k = FK_NONE;
   3964     uint32_t _flag_a = 0, _flag_b = 0;
   3965     uint32_t _itail_tgt = 0;
   3966     RECOMP_REGS_LOCALS
   3967     RECOMP_ENTER(0x47054871u);
   3968 
   3969 L_47054871:
   3970     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3971     ecx = ecx | 0xFFFFFFFFu; /* 0x47054871: or ecx, 0xffffffff */
   3972     _cf = 0;
   3973     _flag_k = FK_TEST;
   3974     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3975     eax = 0; /* 0x47054874: xor eax, eax */
   3976     _cf = 0;
   3977     _flag_k = FK_TEST;
   3978     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; } /* 0x47054876: repne scasb al, byte ptr es:[edi] */
   3979     ecx = ~ecx; /* 0x47054878: not ecx */
   3980     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3982     edi = edi - ecx; /* 0x4705487A: sub edi, ecx */
   3983     _flag_k = FK_CMP;
   3984     eax = ecx; /* 0x4705487C: mov eax, ecx */
   3985     esi = edi; /* 0x4705487E: mov esi, edi */
   3986     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47054880: shr ecx, 2 */
   3987     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3988     ecx = ecx >> 2u; /* 0x47054880: shr ecx, 2 */
   3989     edi = edx; /* 0x47054883: mov edi, edx */
   3990     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47054885: 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; }
   3991     ecx = eax; /* 0x47054887: mov ecx, eax */
   3992     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3993     ecx = ecx & 3; /* 0x47054889: and ecx, 3 */
   3994     _cf = 0;
   3995     _flag_k = FK_TEST;
   3996     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4705488C: 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; }
   3997     ecx = esp + 0x34; /* 0x4705488E: lea ecx, [esp + 0x34] */
   3998     PUSH32(esp, ecx); /* 0x47054892: push ecx */
   3999     edx = esp + 0xB8; /* 0x47054893: lea edx, [esp + 0xb8] */
   4000     PUSH32(esp, edx); /* 0x4705489A: push edx */
   4001     eax = ebx + 0x404; /* 0x4705489B: lea eax, [ebx + 0x404] */
   4002     PUSH32(esp, 0x47108FA4u); /* 0x470548A1: push 0x47108fa4 */
   4003     PUSH32(esp, eax); /* 0x470548A6: push eax */
   4004     RECOMP_ICALL(0x47054FC0u); /* 0x470548A7: call 0x47054fc0 */ /* not lifted */
   4005     RECOMP_FLAGS_IN();
   4006     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4007     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4008     esp = esp + 0x10u; /* 0x470548AC: add esp, 0x10 */
   4009     _flag_k = FK_ADD;
   4010     goto L_470549B9; /* 0x470548AF: jmp 0x470549b9 */
   4011 L_470549B9:
   4012     ecx = esp + 0xC; /* 0x470549B9: lea ecx, [esp + 0xc] */
   4013     PUSH32(esp, ecx); /* 0x470549BD: push ecx */
   4014     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x101u);
   4015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4016     ebx = ebx + 0x101u; /* 0x470549BE: add ebx, 0x101 */
   4017     _flag_k = FK_ADD;
   4018     PUSH32(esp, ebx); /* 0x470549C4: push ebx */
   4019     MEM32(esp + 0x14) = 0x101u; /* 0x470549C5: mov dword ptr [esp + 0x14], 0x101 */
   4020     RECOMP_ICALL(MEM32(0x470AC128)); /* 0x470549CD: call dword ptr [0x470ac128] */
   4021     RECOMP_FLAGS_IN();
   4022     esi = eax; /* 0x470549D3: mov esi, eax */
   4023     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   4024     _cf = (esi) != 0;
   4025     esi = (uint32_t)(-(int32_t)esi); /* 0x470549D5: neg esi */
   4026     _flag_k = FK_CMP;
   4027     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x470549D7: sbb esi, esi */
   4028       esi = _sc ? 0xFFFFFFFFu : 0;
   4029       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4030       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4031     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   4032     _cf = (esi) != 0;
   4033     esi = (uint32_t)(-(int32_t)esi); /* 0x470549D9: neg esi */
   4034     _flag_k = FK_CMP;
   4035     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   4036     esi = esi - 1; /* 0x470549DB: dec esi */
   4037     _flag_k = FK_DEC;
   4038     /* cmp esi, 0xFFFFFFFFu */ /* 0x470549DC: cmp esi, -1 */
   4039     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4041     _flag_k = FK_CMP;
   4042     if (CMP_NE(_flag_a, _flag_b)) goto L_470549F1; /* 0x470549DF: jne 0x470549f1 */
   4043 L_470549E1:
   4044     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470549E1: call dword ptr [0x470ac3c8] */
   4045     RECOMP_FLAGS_IN();
   4046     edi = eax; /* 0x470549E7: mov edi, eax */
   4047     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470549E9: call dword ptr [0x470ac150] */
   4048     RECOMP_FLAGS_IN();
   4049     MEM32(edi) = eax; /* 0x470549EF: mov dword ptr [edi], eax */
   4050 L_470549F1:
   4051     edi = POP32_VAL(esp); /* 0x470549F1: pop edi */
   4052     eax = esi; /* 0x470549F2: mov eax, esi */
   4053     esi = POP32_VAL(esp); /* 0x470549F4: pop esi */
   4054     ebx = POP32_VAL(esp); /* 0x470549F5: pop ebx */
   4055     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1BCu);
   4056     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4057     esp = esp + 0x1BCu; /* 0x470549F6: add esp, 0x1bc */
   4058     _flag_k = FK_ADD;
   4059     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470549FC: ret  */
   4060     RECOMP_REGS_OUT();
   4061 }
   4062 
   4063 void sub_4705488E(void) {
   4064     int _fpu_cmp = 0;
   4065     uint32_t _cf = 0;
   4066     int _df = 1;
   4067     uint32_t _flag_k = FK_NONE;
   4068     uint32_t _flag_a = 0, _flag_b = 0;
   4069     uint32_t _itail_tgt = 0;
   4070     RECOMP_REGS_LOCALS
   4071     RECOMP_ENTER(0x4705488Eu);
   4072 
   4073 L_4705488E:
   4074     ecx = esp + 0x34; /* 0x4705488E: lea ecx, [esp + 0x34] */
   4075     PUSH32(esp, ecx); /* 0x47054892: push ecx */
   4076     edx = esp + 0xB8; /* 0x47054893: lea edx, [esp + 0xb8] */
   4077     PUSH32(esp, edx); /* 0x4705489A: push edx */
   4078     eax = ebx + 0x404; /* 0x4705489B: lea eax, [ebx + 0x404] */
   4079     PUSH32(esp, 0x47108FA4u); /* 0x470548A1: push 0x47108fa4 */
   4080     PUSH32(esp, eax); /* 0x470548A6: push eax */
   4081     RECOMP_ICALL(0x47054FC0u); /* 0x470548A7: call 0x47054fc0 */ /* not lifted */
   4082     RECOMP_FLAGS_IN();
   4083     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4084     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4085     esp = esp + 0x10u; /* 0x470548AC: add esp, 0x10 */
   4086     _flag_k = FK_ADD;
   4087     goto L_470549B9; /* 0x470548AF: jmp 0x470549b9 */
   4088 L_470549B9:
   4089     ecx = esp + 0xC; /* 0x470549B9: lea ecx, [esp + 0xc] */
   4090     PUSH32(esp, ecx); /* 0x470549BD: push ecx */
   4091     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x101u);
   4092     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4093     ebx = ebx + 0x101u; /* 0x470549BE: add ebx, 0x101 */
   4094     _flag_k = FK_ADD;
   4095     PUSH32(esp, ebx); /* 0x470549C4: push ebx */
   4096     MEM32(esp + 0x14) = 0x101u; /* 0x470549C5: mov dword ptr [esp + 0x14], 0x101 */
   4097     RECOMP_ICALL(MEM32(0x470AC128)); /* 0x470549CD: call dword ptr [0x470ac128] */
   4098     RECOMP_FLAGS_IN();
   4099     esi = eax; /* 0x470549D3: mov esi, eax */
   4100     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   4101     _cf = (esi) != 0;
   4102     esi = (uint32_t)(-(int32_t)esi); /* 0x470549D5: neg esi */
   4103     _flag_k = FK_CMP;
   4104     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x470549D7: sbb esi, esi */
   4105       esi = _sc ? 0xFFFFFFFFu : 0;
   4106       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4107       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4108     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   4109     _cf = (esi) != 0;
   4110     esi = (uint32_t)(-(int32_t)esi); /* 0x470549D9: neg esi */
   4111     _flag_k = FK_CMP;
   4112     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   4113     esi = esi - 1; /* 0x470549DB: dec esi */
   4114     _flag_k = FK_DEC;
   4115     /* cmp esi, 0xFFFFFFFFu */ /* 0x470549DC: cmp esi, -1 */
   4116     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4118     _flag_k = FK_CMP;
   4119     if (CMP_NE(_flag_a, _flag_b)) goto L_470549F1; /* 0x470549DF: jne 0x470549f1 */
   4120 L_470549E1:
   4121     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470549E1: call dword ptr [0x470ac3c8] */
   4122     RECOMP_FLAGS_IN();
   4123     edi = eax; /* 0x470549E7: mov edi, eax */
   4124     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470549E9: call dword ptr [0x470ac150] */
   4125     RECOMP_FLAGS_IN();
   4126     MEM32(edi) = eax; /* 0x470549EF: mov dword ptr [edi], eax */
   4127 L_470549F1:
   4128     edi = POP32_VAL(esp); /* 0x470549F1: pop edi */
   4129     eax = esi; /* 0x470549F2: mov eax, esi */
   4130     esi = POP32_VAL(esp); /* 0x470549F4: pop esi */
   4131     ebx = POP32_VAL(esp); /* 0x470549F5: pop ebx */
   4132     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1BCu);
   4133     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4134     esp = esp + 0x1BCu; /* 0x470549F6: add esp, 0x1bc */
   4135     _flag_k = FK_ADD;
   4136     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470549FC: ret  */
   4137     RECOMP_REGS_OUT();
   4138 }
   4139 
   4140 void sub_470549B9(void) {
   4141     int _fpu_cmp = 0;
   4142     uint32_t _cf = 0;
   4143     int _df = 1;
   4144     uint32_t _flag_k = FK_NONE;
   4145     uint32_t _flag_a = 0, _flag_b = 0;
   4146     uint32_t _itail_tgt = 0;
   4147     RECOMP_REGS_LOCALS
   4148     RECOMP_ENTER(0x470549B9u);
   4149 
   4150 L_470549B9:
   4151     ecx = esp + 0xC; /* 0x470549B9: lea ecx, [esp + 0xc] */
   4152     PUSH32(esp, ecx); /* 0x470549BD: push ecx */
   4153     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x101u);
   4154     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4155     ebx = ebx + 0x101u; /* 0x470549BE: add ebx, 0x101 */
   4156     _flag_k = FK_ADD;
   4157     PUSH32(esp, ebx); /* 0x470549C4: push ebx */
   4158     MEM32(esp + 0x14) = 0x101u; /* 0x470549C5: mov dword ptr [esp + 0x14], 0x101 */
   4159     RECOMP_ICALL(MEM32(0x470AC128)); /* 0x470549CD: call dword ptr [0x470ac128] */
   4160     RECOMP_FLAGS_IN();
   4161     esi = eax; /* 0x470549D3: mov esi, eax */
   4162     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   4163     _cf = (esi) != 0;
   4164     esi = (uint32_t)(-(int32_t)esi); /* 0x470549D5: neg esi */
   4165     _flag_k = FK_CMP;
   4166     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x470549D7: sbb esi, esi */
   4167       esi = _sc ? 0xFFFFFFFFu : 0;
   4168       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4169       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4170     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   4171     _cf = (esi) != 0;
   4172     esi = (uint32_t)(-(int32_t)esi); /* 0x470549D9: neg esi */
   4173     _flag_k = FK_CMP;
   4174     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   4175     esi = esi - 1; /* 0x470549DB: dec esi */
   4176     _flag_k = FK_DEC;
   4177     /* cmp esi, 0xFFFFFFFFu */ /* 0x470549DC: cmp esi, -1 */
   4178     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4179     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4180     _flag_k = FK_CMP;
   4181     if (CMP_NE(_flag_a, _flag_b)) goto L_470549F1; /* 0x470549DF: jne 0x470549f1 */
   4182 L_470549E1:
   4183     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470549E1: call dword ptr [0x470ac3c8] */
   4184     RECOMP_FLAGS_IN();
   4185     edi = eax; /* 0x470549E7: mov edi, eax */
   4186     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470549E9: call dword ptr [0x470ac150] */
   4187     RECOMP_FLAGS_IN();
   4188     MEM32(edi) = eax; /* 0x470549EF: mov dword ptr [edi], eax */
   4189 L_470549F1:
   4190     edi = POP32_VAL(esp); /* 0x470549F1: pop edi */
   4191     eax = esi; /* 0x470549F2: mov eax, esi */
   4192     esi = POP32_VAL(esp); /* 0x470549F4: pop esi */
   4193     ebx = POP32_VAL(esp); /* 0x470549F5: pop ebx */
   4194     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1BCu);
   4195     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4196     esp = esp + 0x1BCu; /* 0x470549F6: add esp, 0x1bc */
   4197     _flag_k = FK_ADD;
   4198     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470549FC: ret  */
   4199     RECOMP_REGS_OUT();
   4200 }
   4201 
   4202 void sub_47054A10(void) {
   4203     int _fpu_cmp = 0;
   4204     uint32_t _cf = 0;
   4205     int _df = 1;
   4206     uint32_t _flag_k = FK_NONE;
   4207     uint32_t _flag_a = 0, _flag_b = 0;
   4208     uint32_t _itail_tgt = 0;
   4209     RECOMP_REGS_LOCALS
   4210     RECOMP_ENTER(0x47054A10u);
   4211 
   4212 L_47054A10:
   4213     PUSH32(esp, ecx); /* 0x47054A10: push ecx */
   4214     PUSH32(esp, ebx); /* 0x47054A11: push ebx */
   4215     ebx = MEM32(0x470AC150); /* 0x47054A12: mov ebx, dword ptr [0x470ac150] */
   4216     PUSH32(esp, ebp); /* 0x47054A18: push ebp */
   4217     PUSH32(esp, esi); /* 0x47054A19: push esi */
   4218     PUSH32(esp, edi); /* 0x47054A1A: push edi */
   4219     edi = ecx; /* 0x47054A1B: mov edi, ecx */
   4220     RECOMP_ICALL(ebx); /* 0x47054A1D: call ebx */
   4221     RECOMP_FLAGS_IN();
   4222     ebp = MEM32(0x470AC3C8); /* 0x47054A1F: mov ebp, dword ptr [0x470ac3c8] */
   4223     esi = eax; /* 0x47054A25: mov esi, eax */
   4224     RECOMP_ICALL(ebp); /* 0x47054A27: call ebp */
   4225     RECOMP_FLAGS_IN();
   4226     eax = MEM32(eax); /* 0x47054A29: mov eax, dword ptr [eax] */
   4227     /* test eax, eax */ /* 0x47054A2B: test eax, eax */
   4228     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4229     _cf = 0;
   4230     _flag_k = FK_TEST;
   4231     MEM32(esp + 0x10) = esi; /* 0x47054A2D: mov dword ptr [esp + 0x10], esi */
   4232     if (TEST_Z(_flag_a, _flag_b)) goto L_47054A37; /* 0x47054A31: je 0x47054a37 */
   4233 L_47054A33:
   4234     MEM32(esp + 0x10) = eax; /* 0x47054A33: mov dword ptr [esp + 0x10], eax */
   4235 L_47054A37:
   4236     RECOMP_ICALL(0x47039020u); /* 0x47054A37: call 0x47039020 */ /* not lifted */
   4237     RECOMP_FLAGS_IN();
   4238     esi = eax; /* 0x47054A3C: mov esi, eax */
   4239     ecx = esi; /* 0x47054A3E: mov ecx, esi */
   4240     RECOMP_ICALL(0x4703B210u); /* 0x47054A40: call 0x4703b210 */ /* not lifted */
   4241     RECOMP_FLAGS_IN();
   4242     PUSH32(esp, eax); /* 0x47054A45: push eax */
   4243     ecx = esi; /* 0x47054A46: mov ecx, esi */
   4244     RECOMP_ICALL(0x4703B240u); /* 0x47054A48: call 0x4703b240 */ /* not lifted */
   4245     RECOMP_FLAGS_IN();
   4246     PUSH32(esp, eax); /* 0x47054A4D: push eax */
   4247     ecx = esi; /* 0x47054A4E: mov ecx, esi */
   4248     RECOMP_ICALL(0x4703B080u); /* 0x47054A50: call 0x4703b080 */ /* not lifted */
   4249     RECOMP_FLAGS_IN();
   4250     PUSH32(esp, eax); /* 0x47054A55: push eax */
   4251     eax = MEM32(esp + 0x1C); /* 0x47054A56: mov eax, dword ptr [esp + 0x1c] */
   4252     PUSH32(esp, eax); /* 0x47054A5A: push eax */
   4253     PUSH32(esp, 0); /* 0x47054A5B: push 0 */
   4254     PUSH32(esp, 0x364u); /* 0x47054A5D: push 0x364 */
   4255     PUSH32(esp, 0x47108F38u); /* 0x47054A62: push 0x47108f38 */
   4256     ecx = esi; /* 0x47054A67: mov ecx, esi */
   4257     RECOMP_ICALL(0x4703A340u); /* 0x47054A69: call 0x4703a340 */ /* not lifted */
   4258     RECOMP_FLAGS_IN();
   4259     PUSH32(esp, edi); /* 0x47054A6E: push edi */
   4260     PUSH32(esp, 0x471052CCu); /* 0x47054A6F: push 0x471052cc */
   4261     PUSH32(esp, 4); /* 0x47054A74: push 4 */
   4262     PUSH32(esp, esi); /* 0x47054A76: push esi */
   4263     RECOMP_ICALL(0x47039830u); /* 0x47054A77: call 0x47039830 */ /* not lifted */
   4264     RECOMP_FLAGS_IN();
   4265     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4266     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4267     esp = esp + 0x10u; /* 0x47054A7C: add esp, 0x10 */
   4268     _flag_k = FK_ADD;
   4269     RECOMP_ICALL(ebx); /* 0x47054A7F: call ebx */
   4270     RECOMP_FLAGS_IN();
   4271     esi = eax; /* 0x47054A81: mov esi, eax */
   4272     RECOMP_ICALL(ebp); /* 0x47054A83: call ebp */
   4273     RECOMP_FLAGS_IN();
   4274     eax = MEM32(eax); /* 0x47054A85: mov eax, dword ptr [eax] */
   4275     /* test eax, eax */ /* 0x47054A87: test eax, eax */
   4276     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4277     _cf = 0;
   4278     _flag_k = FK_TEST;
   4279     MEM32(esp + 0x10) = esi; /* 0x47054A89: mov dword ptr [esp + 0x10], esi */
   4280     if (TEST_Z(_flag_a, _flag_b)) goto L_47054A93; /* 0x47054A8D: je 0x47054a93 */
   4281 L_47054A8F:
   4282     MEM32(esp + 0x10) = eax; /* 0x47054A8F: mov dword ptr [esp + 0x10], eax */
   4283 L_47054A93:
   4284     RECOMP_ICALL(0x47039020u); /* 0x47054A93: call 0x47039020 */ /* not lifted */
   4285     RECOMP_FLAGS_IN();
   4286     esi = eax; /* 0x47054A98: mov esi, eax */
   4287     ecx = esi; /* 0x47054A9A: mov ecx, esi */
   4288     RECOMP_ICALL(0x4703B210u); /* 0x47054A9C: call 0x4703b210 */ /* not lifted */
   4289     RECOMP_FLAGS_IN();
   4290     PUSH32(esp, eax); /* 0x47054AA1: push eax */
   4291     ecx = esi; /* 0x47054AA2: mov ecx, esi */
   4292     RECOMP_ICALL(0x4703B240u); /* 0x47054AA4: call 0x4703b240 */ /* not lifted */
   4293     RECOMP_FLAGS_IN();
   4294     PUSH32(esp, eax); /* 0x47054AA9: push eax */
   4295     ecx = esi; /* 0x47054AAA: mov ecx, esi */
   4296     RECOMP_ICALL(0x4703B080u); /* 0x47054AAC: call 0x4703b080 */ /* not lifted */
   4297     RECOMP_FLAGS_IN();
   4298     ecx = MEM32(esp + 0x18); /* 0x47054AB1: mov ecx, dword ptr [esp + 0x18] */
   4299     PUSH32(esp, eax); /* 0x47054AB5: push eax */
   4300     PUSH32(esp, ecx); /* 0x47054AB6: push ecx */
   4301     PUSH32(esp, 0); /* 0x47054AB7: push 0 */
   4302     PUSH32(esp, 0x365u); /* 0x47054AB9: push 0x365 */
   4303     PUSH32(esp, 0x47108F38u); /* 0x47054ABE: push 0x47108f38 */
   4304     ecx = esi; /* 0x47054AC3: mov ecx, esi */
   4305     RECOMP_ICALL(0x4703A340u); /* 0x47054AC5: call 0x4703a340 */ /* not lifted */
   4306     RECOMP_FLAGS_IN();
   4307     edx = MEM32(edi + 0x18); /* 0x47054ACA: mov edx, dword ptr [edi + 0x18] */
   4308     PUSH32(esp, edx); /* 0x47054ACD: push edx */
   4309     PUSH32(esp, 0x47109098u); /* 0x47054ACE: push 0x47109098 */
   4310     PUSH32(esp, 4); /* 0x47054AD3: push 4 */
   4311     PUSH32(esp, esi); /* 0x47054AD5: push esi */
   4312     RECOMP_ICALL(0x47039830u); /* 0x47054AD6: call 0x47039830 */ /* not lifted */
   4313     RECOMP_FLAGS_IN();
   4314     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4315     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4316     esp = esp + 0x10u; /* 0x47054ADB: add esp, 0x10 */
   4317     _flag_k = FK_ADD;
   4318     RECOMP_ICALL(ebx); /* 0x47054ADE: call ebx */
   4319     RECOMP_FLAGS_IN();
   4320     esi = eax; /* 0x47054AE0: mov esi, eax */
   4321     RECOMP_ICALL(ebp); /* 0x47054AE2: call ebp */
   4322     RECOMP_FLAGS_IN();
   4323     eax = MEM32(eax); /* 0x47054AE4: mov eax, dword ptr [eax] */
   4324     /* test eax, eax */ /* 0x47054AE6: test eax, eax */
   4325     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4326     _cf = 0;
   4327     _flag_k = FK_TEST;
   4328     MEM32(esp + 0x10) = esi; /* 0x47054AE8: mov dword ptr [esp + 0x10], esi */
   4329     if (TEST_Z(_flag_a, _flag_b)) goto L_47054AF2; /* 0x47054AEC: je 0x47054af2 */
   4330 L_47054AEE:
   4331     MEM32(esp + 0x10) = eax; /* 0x47054AEE: mov dword ptr [esp + 0x10], eax */
   4332 L_47054AF2:
   4333     RECOMP_ICALL(0x47039020u); /* 0x47054AF2: call 0x47039020 */ /* not lifted */
   4334     RECOMP_FLAGS_IN();
   4335     esi = eax; /* 0x47054AF7: mov esi, eax */
   4336     ecx = esi; /* 0x47054AF9: mov ecx, esi */
   4337     RECOMP_ICALL(0x4703B210u); /* 0x47054AFB: call 0x4703b210 */ /* not lifted */
   4338     RECOMP_FLAGS_IN();
   4339     PUSH32(esp, eax); /* 0x47054B00: push eax */
   4340     ecx = esi; /* 0x47054B01: mov ecx, esi */
   4341     RECOMP_ICALL(0x4703B240u); /* 0x47054B03: call 0x4703b240 */ /* not lifted */
   4342     RECOMP_FLAGS_IN();
   4343     PUSH32(esp, eax); /* 0x47054B08: push eax */
   4344     ecx = esi; /* 0x47054B09: mov ecx, esi */
   4345     RECOMP_ICALL(0x4703B080u); /* 0x47054B0B: call 0x4703b080 */ /* not lifted */
   4346     RECOMP_FLAGS_IN();
   4347     PUSH32(esp, eax); /* 0x47054B10: push eax */
   4348     eax = MEM32(esp + 0x1C); /* 0x47054B11: mov eax, dword ptr [esp + 0x1c] */
   4349     PUSH32(esp, eax); /* 0x47054B15: push eax */
   4350     PUSH32(esp, 0); /* 0x47054B16: push 0 */
   4351     PUSH32(esp, 0x367u); /* 0x47054B18: push 0x367 */
   4352     PUSH32(esp, 0x47108F38u); /* 0x47054B1D: push 0x47108f38 */
   4353     ecx = esi; /* 0x47054B22: mov ecx, esi */
   4354     RECOMP_ICALL(0x4703A340u); /* 0x47054B24: call 0x4703a340 */ /* not lifted */
   4355     RECOMP_FLAGS_IN();
   4356     ecx = MEM32(edi); /* 0x47054B29: mov ecx, dword ptr [edi] */
   4357     PUSH32(esp, ecx); /* 0x47054B2B: push ecx */
   4358     PUSH32(esp, 0x47109088u); /* 0x47054B2C: push 0x47109088 */
   4359     PUSH32(esp, 4); /* 0x47054B31: push 4 */
   4360     PUSH32(esp, esi); /* 0x47054B33: push esi */
   4361     RECOMP_ICALL(0x47039830u); /* 0x47054B34: call 0x47039830 */ /* not lifted */
   4362     RECOMP_FLAGS_IN();
   4363     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4364     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4365     esp = esp + 0x10u; /* 0x47054B39: add esp, 0x10 */
   4366     _flag_k = FK_ADD;
   4367     RECOMP_ICALL(ebx); /* 0x47054B3C: call ebx */
   4368     RECOMP_FLAGS_IN();
   4369     esi = eax; /* 0x47054B3E: mov esi, eax */
   4370     RECOMP_ICALL(ebp); /* 0x47054B40: call ebp */
   4371     RECOMP_FLAGS_IN();
   4372     eax = MEM32(eax); /* 0x47054B42: mov eax, dword ptr [eax] */
   4373     /* test eax, eax */ /* 0x47054B44: test eax, eax */
   4374     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4375     _cf = 0;
   4376     _flag_k = FK_TEST;
   4377     MEM32(esp + 0x10) = esi; /* 0x47054B46: mov dword ptr [esp + 0x10], esi */
   4378     if (TEST_Z(_flag_a, _flag_b)) goto L_47054B50; /* 0x47054B4A: je 0x47054b50 */
   4379 L_47054B4C:
   4380     MEM32(esp + 0x10) = eax; /* 0x47054B4C: mov dword ptr [esp + 0x10], eax */
   4381 L_47054B50:
   4382     RECOMP_ICALL(0x47039020u); /* 0x47054B50: call 0x47039020 */ /* not lifted */
   4383     RECOMP_FLAGS_IN();
   4384     esi = eax; /* 0x47054B55: mov esi, eax */
   4385     ecx = esi; /* 0x47054B57: mov ecx, esi */
   4386     RECOMP_ICALL(0x4703B210u); /* 0x47054B59: call 0x4703b210 */ /* not lifted */
   4387     RECOMP_FLAGS_IN();
   4388     PUSH32(esp, eax); /* 0x47054B5E: push eax */
   4389     ecx = esi; /* 0x47054B5F: mov ecx, esi */
   4390     RECOMP_ICALL(0x4703B240u); /* 0x47054B61: call 0x4703b240 */ /* not lifted */
   4391     RECOMP_FLAGS_IN();
   4392     PUSH32(esp, eax); /* 0x47054B66: push eax */
   4393     ecx = esi; /* 0x47054B67: mov ecx, esi */
   4394     RECOMP_ICALL(0x4703B080u); /* 0x47054B69: call 0x4703b080 */ /* not lifted */
   4395     RECOMP_FLAGS_IN();
   4396     edx = MEM32(esp + 0x18); /* 0x47054B6E: mov edx, dword ptr [esp + 0x18] */
   4397     PUSH32(esp, eax); /* 0x47054B72: push eax */
   4398     PUSH32(esp, edx); /* 0x47054B73: push edx */
   4399     PUSH32(esp, 0); /* 0x47054B74: push 0 */
   4400     PUSH32(esp, 0x368u); /* 0x47054B76: push 0x368 */
   4401     PUSH32(esp, 0x47108F38u); /* 0x47054B7B: push 0x47108f38 */
   4402     ecx = esi; /* 0x47054B80: mov ecx, esi */
   4403     RECOMP_ICALL(0x4703A340u); /* 0x47054B82: call 0x4703a340 */ /* not lifted */
   4404     RECOMP_FLAGS_IN();
   4405     eax = MEM32(edi + 0x4); /* 0x47054B87: mov eax, dword ptr [edi + 4] */
   4406     PUSH32(esp, eax); /* 0x47054B8A: push eax */
   4407     PUSH32(esp, 0x47109074u); /* 0x47054B8B: push 0x47109074 */
   4408     PUSH32(esp, 4); /* 0x47054B90: push 4 */
   4409     PUSH32(esp, esi); /* 0x47054B92: push esi */
   4410     RECOMP_ICALL(0x47039830u); /* 0x47054B93: call 0x47039830 */ /* not lifted */
   4411     RECOMP_FLAGS_IN();
   4412     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4413     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4414     esp = esp + 0x10u; /* 0x47054B98: add esp, 0x10 */
   4415     _flag_k = FK_ADD;
   4416     RECOMP_ICALL(ebx); /* 0x47054B9B: call ebx */
   4417     RECOMP_FLAGS_IN();
   4418     esi = eax; /* 0x47054B9D: mov esi, eax */
   4419     RECOMP_ICALL(ebp); /* 0x47054B9F: call ebp */
   4420     RECOMP_FLAGS_IN();
   4421     eax = MEM32(eax); /* 0x47054BA1: mov eax, dword ptr [eax] */
   4422     /* test eax, eax */ /* 0x47054BA3: test eax, eax */
   4423     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4424     _cf = 0;
   4425     _flag_k = FK_TEST;
   4426     MEM32(esp + 0x10) = esi; /* 0x47054BA5: mov dword ptr [esp + 0x10], esi */
   4427     if (TEST_Z(_flag_a, _flag_b)) goto L_47054BAF; /* 0x47054BA9: je 0x47054baf */
   4428 L_47054BAB:
   4429     MEM32(esp + 0x10) = eax; /* 0x47054BAB: mov dword ptr [esp + 0x10], eax */
   4430 L_47054BAF:
   4431     RECOMP_ICALL(0x47039020u); /* 0x47054BAF: call 0x47039020 */ /* not lifted */
   4432     RECOMP_FLAGS_IN();
   4433     esi = eax; /* 0x47054BB4: mov esi, eax */
   4434     ecx = esi; /* 0x47054BB6: mov ecx, esi */
   4435     RECOMP_ICALL(0x4703B210u); /* 0x47054BB8: call 0x4703b210 */ /* not lifted */
   4436     RECOMP_FLAGS_IN();
   4437     PUSH32(esp, eax); /* 0x47054BBD: push eax */
   4438     ecx = esi; /* 0x47054BBE: mov ecx, esi */
   4439     RECOMP_ICALL(0x4703B240u); /* 0x47054BC0: call 0x4703b240 */ /* not lifted */
   4440     RECOMP_FLAGS_IN();
   4441     PUSH32(esp, eax); /* 0x47054BC5: push eax */
   4442     ecx = esi; /* 0x47054BC6: mov ecx, esi */
   4443     RECOMP_ICALL(0x4703B080u); /* 0x47054BC8: call 0x4703b080 */ /* not lifted */
   4444     RECOMP_FLAGS_IN();
   4445     ecx = MEM32(esp + 0x18); /* 0x47054BCD: mov ecx, dword ptr [esp + 0x18] */
   4446     PUSH32(esp, eax); /* 0x47054BD1: push eax */
   4447     PUSH32(esp, ecx); /* 0x47054BD2: push ecx */
   4448     PUSH32(esp, 0); /* 0x47054BD3: push 0 */
   4449     PUSH32(esp, 0x369u); /* 0x47054BD5: push 0x369 */
   4450     PUSH32(esp, 0x47108F38u); /* 0x47054BDA: push 0x47108f38 */
   4451     ecx = esi; /* 0x47054BDF: mov ecx, esi */
   4452     RECOMP_ICALL(0x4703A340u); /* 0x47054BE1: call 0x4703a340 */ /* not lifted */
   4453     RECOMP_FLAGS_IN();
   4454     edx = MEM32(edi + 0xC); /* 0x47054BE6: mov edx, dword ptr [edi + 0xc] */
   4455     PUSH32(esp, edx); /* 0x47054BE9: push edx */
   4456     PUSH32(esp, 0x47109060u); /* 0x47054BEA: push 0x47109060 */
   4457     PUSH32(esp, 4); /* 0x47054BEF: push 4 */
   4458     PUSH32(esp, esi); /* 0x47054BF1: push esi */
   4459     RECOMP_ICALL(0x47039830u); /* 0x47054BF2: call 0x47039830 */ /* not lifted */
   4460     RECOMP_FLAGS_IN();
   4461     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4462     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4463     esp = esp + 0x10u; /* 0x47054BF7: add esp, 0x10 */
   4464     _flag_k = FK_ADD;
   4465     RECOMP_ICALL(ebx); /* 0x47054BFA: call ebx */
   4466     RECOMP_FLAGS_IN();
   4467     esi = eax; /* 0x47054BFC: mov esi, eax */
   4468     RECOMP_ICALL(ebp); /* 0x47054BFE: call ebp */
   4469     RECOMP_FLAGS_IN();
   4470     eax = MEM32(eax); /* 0x47054C00: mov eax, dword ptr [eax] */
   4471     /* test eax, eax */ /* 0x47054C02: test eax, eax */
   4472     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4473     _cf = 0;
   4474     _flag_k = FK_TEST;
   4475     MEM32(esp + 0x10) = esi; /* 0x47054C04: mov dword ptr [esp + 0x10], esi */
   4476     if (TEST_Z(_flag_a, _flag_b)) goto L_47054C0E; /* 0x47054C08: je 0x47054c0e */
   4477 L_47054C0A:
   4478     MEM32(esp + 0x10) = eax; /* 0x47054C0A: mov dword ptr [esp + 0x10], eax */
   4479 L_47054C0E:
   4480     RECOMP_ICALL(0x47039020u); /* 0x47054C0E: call 0x47039020 */ /* not lifted */
   4481     RECOMP_FLAGS_IN();
   4482     esi = eax; /* 0x47054C13: mov esi, eax */
   4483     ecx = esi; /* 0x47054C15: mov ecx, esi */
   4484     RECOMP_ICALL(0x4703B210u); /* 0x47054C17: call 0x4703b210 */ /* not lifted */
   4485     RECOMP_FLAGS_IN();
   4486     PUSH32(esp, eax); /* 0x47054C1C: push eax */
   4487     ecx = esi; /* 0x47054C1D: mov ecx, esi */
   4488     RECOMP_ICALL(0x4703B240u); /* 0x47054C1F: call 0x4703b240 */ /* not lifted */
   4489     RECOMP_FLAGS_IN();
   4490     PUSH32(esp, eax); /* 0x47054C24: push eax */
   4491     ecx = esi; /* 0x47054C25: mov ecx, esi */
   4492     RECOMP_ICALL(0x4703B080u); /* 0x47054C27: call 0x4703b080 */ /* not lifted */
   4493     RECOMP_FLAGS_IN();
   4494     PUSH32(esp, eax); /* 0x47054C2C: push eax */
   4495     eax = MEM32(esp + 0x1C); /* 0x47054C2D: mov eax, dword ptr [esp + 0x1c] */
   4496     PUSH32(esp, eax); /* 0x47054C31: push eax */
   4497     PUSH32(esp, 0); /* 0x47054C32: push 0 */
   4498     PUSH32(esp, 0x36Au); /* 0x47054C34: push 0x36a */
   4499     PUSH32(esp, 0x47108F38u); /* 0x47054C39: push 0x47108f38 */
   4500     ecx = esi; /* 0x47054C3E: mov ecx, esi */
   4501     RECOMP_ICALL(0x4703A340u); /* 0x47054C40: call 0x4703a340 */ /* not lifted */
   4502     RECOMP_FLAGS_IN();
   4503     ecx = MEM32(edi + 0x10); /* 0x47054C45: mov ecx, dword ptr [edi + 0x10] */
   4504     PUSH32(esp, ecx); /* 0x47054C48: push ecx */
   4505     PUSH32(esp, 0x47109050u); /* 0x47054C49: push 0x47109050 */
   4506     PUSH32(esp, 4); /* 0x47054C4E: push 4 */
   4507     PUSH32(esp, esi); /* 0x47054C50: push esi */
   4508     RECOMP_ICALL(0x47039830u); /* 0x47054C51: call 0x47039830 */ /* not lifted */
   4509     RECOMP_FLAGS_IN();
   4510     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4511     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4512     esp = esp + 0x10u; /* 0x47054C56: add esp, 0x10 */
   4513     _flag_k = FK_ADD;
   4514     RECOMP_ICALL(ebx); /* 0x47054C59: call ebx */
   4515     RECOMP_FLAGS_IN();
   4516     esi = eax; /* 0x47054C5B: mov esi, eax */
   4517     RECOMP_ICALL(ebp); /* 0x47054C5D: call ebp */
   4518     RECOMP_FLAGS_IN();
   4519     eax = MEM32(eax); /* 0x47054C5F: mov eax, dword ptr [eax] */
   4520     /* test eax, eax */ /* 0x47054C61: test eax, eax */
   4521     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4522     _cf = 0;
   4523     _flag_k = FK_TEST;
   4524     edi = esi; /* 0x47054C63: mov edi, esi */
   4525     if (TEST_Z(_flag_a, _flag_b)) goto L_47054C69; /* 0x47054C65: je 0x47054c69 */
   4526 L_47054C67:
   4527     edi = eax; /* 0x47054C67: mov edi, eax */
   4528 L_47054C69:
   4529     RECOMP_ICALL(0x47039020u); /* 0x47054C69: call 0x47039020 */ /* not lifted */
   4530     RECOMP_FLAGS_IN();
   4531     esi = eax; /* 0x47054C6E: mov esi, eax */
   4532     ecx = esi; /* 0x47054C70: mov ecx, esi */
   4533     RECOMP_ICALL(0x4703B210u); /* 0x47054C72: call 0x4703b210 */ /* not lifted */
   4534     RECOMP_FLAGS_IN();
   4535     PUSH32(esp, eax); /* 0x47054C77: push eax */
   4536     ecx = esi; /* 0x47054C78: mov ecx, esi */
   4537     RECOMP_ICALL(0x4703B240u); /* 0x47054C7A: call 0x4703b240 */ /* not lifted */
   4538     RECOMP_FLAGS_IN();
   4539     PUSH32(esp, eax); /* 0x47054C7F: push eax */
   4540     ecx = esi; /* 0x47054C80: mov ecx, esi */
   4541     RECOMP_ICALL(0x4703B080u); /* 0x47054C82: call 0x4703b080 */ /* not lifted */
   4542     RECOMP_FLAGS_IN();
   4543     PUSH32(esp, eax); /* 0x47054C87: push eax */
   4544     PUSH32(esp, edi); /* 0x47054C88: push edi */
   4545     PUSH32(esp, 0); /* 0x47054C89: push 0 */
   4546     PUSH32(esp, 0x371u); /* 0x47054C8B: push 0x371 */
   4547     PUSH32(esp, 0x47108F38u); /* 0x47054C90: push 0x47108f38 */
   4548     ecx = esi; /* 0x47054C95: mov ecx, esi */
   4549     RECOMP_ICALL(0x4703A340u); /* 0x47054C97: call 0x4703a340 */ /* not lifted */
   4550     RECOMP_FLAGS_IN();
   4551     PUSH32(esp, 0x4710529Cu); /* 0x47054C9C: push 0x4710529c */
   4552     PUSH32(esp, 4); /* 0x47054CA1: push 4 */
   4553     PUSH32(esp, esi); /* 0x47054CA3: push esi */
   4554     RECOMP_ICALL(0x47039830u); /* 0x47054CA4: call 0x47039830 */ /* not lifted */
   4555     RECOMP_FLAGS_IN();
   4556     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4557     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4558     esp = esp + 0xCu; /* 0x47054CA9: add esp, 0xc */
   4559     _flag_k = FK_ADD;
   4560     edi = POP32_VAL(esp); /* 0x47054CAC: pop edi */
   4561     esi = POP32_VAL(esp); /* 0x47054CAD: pop esi */
   4562     ebp = POP32_VAL(esp); /* 0x47054CAE: pop ebp */
   4563     ebx = POP32_VAL(esp); /* 0x47054CAF: pop ebx */
   4564     ecx = POP32_VAL(esp); /* 0x47054CB0: pop ecx */
   4565     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054CB1: ret  */
   4566     RECOMP_REGS_OUT();
   4567 }
   4568 
   4569 void sub_47054CC0(void) {
   4570     int _fpu_cmp = 0;
   4571     uint32_t _cf = 0;
   4572     int _df = 1;
   4573     uint32_t _flag_k = FK_NONE;
   4574     uint32_t _flag_a = 0, _flag_b = 0;
   4575     uint32_t _itail_tgt = 0;
   4576     RECOMP_REGS_LOCALS
   4577     RECOMP_ENTER(0x47054CC0u);
   4578 
   4579 L_47054CC0:
   4580     PUSH32(esp, ebx); /* 0x47054CC0: push ebx */
   4581 L_47054CC1:
   4582     PUSH32(esp, ebp); /* 0x47054CC1: push ebp */
   4583 L_47054CC2:
   4584     ebp = MEM32(esp + 0x10); /* 0x47054CC2: mov ebp, dword ptr [esp + 0x10] */
   4585 L_47054CC6:
   4586     SET_LO8(eax, MEM8(ebp)); /* 0x47054CC6: mov al, byte ptr [ebp] */
   4587 L_47054CC9:
   4588     /* test LO8(eax), LO8(eax) */ /* 0x47054CC9: test al, al */
   4589     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4590     _cf = 0;
   4591     _flag_k = FK_NARROW(FK_TEST, 24);
   4592 L_47054CCB:
   4593     PUSH32(esp, esi); /* 0x47054CCB: push esi */
   4594 L_47054CCC:
   4595     PUSH32(esp, edi); /* 0x47054CCC: push edi */
   4596 L_47054CCD:
   4597     ebx = 0x4000u; /* 0x47054CCD: mov ebx, 0x4000 */
   4598 L_47054CD2:
   4599     esi = ebp; /* 0x47054CD2: mov esi, ebp */
   4600 L_47054CD4:
   4601     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47054D44; /* 0x47054CD4: je 0x47054d44 */
   4602 L_47054CD6:
   4603     eax = (int32_t)(int8_t)LO8(eax); /* 0x47054CD6: movsx eax, al */
   4604 L_47054CD9:
   4605     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFD5u);
   4606     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4607     eax = eax + 0xFFFFFFD5u; /* 0x47054CD9: add eax, -0x2b */
   4608     _flag_k = FK_ADD;
   4609 L_47054CDC:
   4610     /* cmp eax, 0x4Cu */ /* 0x47054CDC: cmp eax, 0x4c */
   4611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Cu);
   4612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4613     _flag_k = FK_CMP;
   4614 L_47054CDF:
   4615     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47054D3C; /* 0x47054CDF: ja 0x47054d3c */
   4616 L_47054CE1:
   4617     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4618     ecx = 0; /* 0x47054CE1: xor ecx, ecx */
   4619     _cf = 0;
   4620     _flag_k = FK_TEST;
   4621 L_47054CE3:
   4622     SET_LO8(ecx, MEM8(eax + 0x47054DCC)); /* 0x47054CE3: mov cl, byte ptr [eax + 0x47054dcc] */
   4623 L_47054CE9:
   4624     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47054DB0)); goto _ljump; }
   4625 L_47054CF0:
   4626     /* test LO8(ebx), 2 */ /* 0x47054CF0: test bl, 2 */
   4627     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   4628     _cf = 0;
   4629     _flag_k = FK_NARROW(FK_TEST, 24);
   4630 L_47054CF3:
   4631     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054D3C; /* 0x47054CF3: jne 0x47054d3c */
   4632 L_47054CF5:
   4633     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4634     ebx = ebx & 0xFFFFFFFEu; /* 0x47054CF5: and ebx, 0xfffffffe */
   4635     _cf = 0;
   4636     _flag_k = FK_TEST;
   4637 L_47054CF8:
   4638     goto L_47054D3C; /* 0x47054CF8: jmp 0x47054d3c */
   4639 L_47054CFA:
   4640     /* test LO8(ebx), 2 */ /* 0x47054CFA: test bl, 2 */
   4641     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   4642     _cf = 0;
   4643     _flag_k = FK_NARROW(FK_TEST, 24);
   4644 L_47054CFD:
   4645     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054D02; /* 0x47054CFD: jne 0x47054d02 */
   4646 L_47054CFF:
   4647     _flag_a = (uint32_t)((ebx | 1)); _flag_b = (uint32_t)((ebx | 1));
   4648     ebx = ebx | 1; /* 0x47054CFF: or ebx, 1 */
   4649     _cf = 0;
   4650     _flag_k = FK_TEST;
   4651 L_47054D02:
   4652     _flag_a = (uint32_t)((ebx | 0x300u)); _flag_b = (uint32_t)((ebx | 0x300u));
   4653     ebx = ebx | 0x300u; /* 0x47054D02: or ebx, 0x300 */
   4654     _cf = 0;
   4655     _flag_k = FK_TEST;
   4656 L_47054D08:
   4657     goto L_47054D3C; /* 0x47054D08: jmp 0x47054d3c */
   4658 L_47054D0A:
   4659     /* test LO8(ebx), 2 */ /* 0x47054D0A: test bl, 2 */
   4660     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   4661     _cf = 0;
   4662     _flag_k = FK_NARROW(FK_TEST, 24);
   4663 L_47054D0D:
   4664     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054D12; /* 0x47054D0D: jne 0x47054d12 */
   4665 L_47054D0F:
   4666     _flag_a = (uint32_t)((ebx | 1)); _flag_b = (uint32_t)((ebx | 1));
   4667     ebx = ebx | 1; /* 0x47054D0F: or ebx, 1 */
   4668     _cf = 0;
   4669     _flag_k = FK_TEST;
   4670 L_47054D12:
   4671     _flag_a = (uint32_t)((ebx | 0x108u)); _flag_b = (uint32_t)((ebx | 0x108u));
   4672     ebx = ebx | 0x108u; /* 0x47054D12: or ebx, 0x108 */
   4673     _cf = 0;
   4674     _flag_k = FK_TEST;
   4675 L_47054D18:
   4676     goto L_47054D3C; /* 0x47054D18: jmp 0x47054d3c */
   4677 L_47054D1A:
   4678     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4679     ebx = ebx & 0xFFFFFFFEu; /* 0x47054D1A: and ebx, 0xfffffffe */
   4680     _cf = 0;
   4681     _flag_k = FK_TEST;
   4682 L_47054D1D:
   4683     _flag_a = (uint32_t)((ebx | 2)); _flag_b = (uint32_t)((ebx | 2));
   4684     ebx = ebx | 2; /* 0x47054D1D: or ebx, 2 */
   4685     _cf = 0;
   4686     _flag_k = FK_TEST;
   4687 L_47054D20:
   4688     goto L_47054D3C; /* 0x47054D20: jmp 0x47054d3c */
   4689 L_47054D22:
   4690     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFF7FFFu);
   4691     ebx = ebx & 0xFFFF7FFFu; /* 0x47054D22: and ebx, 0xffff7fff */
   4692     _cf = 0;
   4693     _flag_k = FK_TEST;
   4694 L_47054D28:
   4695     _flag_a = (uint32_t)((ebx | 0x4000u)); _flag_b = (uint32_t)((ebx | 0x4000u));
   4696     ebx = ebx | 0x4000u; /* 0x47054D28: or ebx, 0x4000 */
   4697     _cf = 0;
   4698     _flag_k = FK_TEST;
   4699 L_47054D2E:
   4700     goto L_47054D3C; /* 0x47054D2E: jmp 0x47054d3c */
   4701 L_47054D30:
   4702     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFBFFFu);
   4703     ebx = ebx & 0xFFFFBFFFu; /* 0x47054D30: and ebx, 0xffffbfff */
   4704     _cf = 0;
   4705     _flag_k = FK_TEST;
   4706 L_47054D36:
   4707     _flag_a = (uint32_t)((ebx | 0x8000u)); _flag_b = (uint32_t)((ebx | 0x8000u));
   4708     ebx = ebx | 0x8000u; /* 0x47054D36: or ebx, 0x8000 */
   4709     _cf = 0;
   4710     _flag_k = FK_TEST;
   4711 L_47054D3C:
   4712     SET_LO8(eax, MEM8(esi + 0x1)); /* 0x47054D3C: mov al, byte ptr [esi + 1] */
   4713 L_47054D3F:
   4714     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   4715     esi = esi + 1; /* 0x47054D3F: inc esi */
   4716     _flag_k = FK_INC;
   4717 L_47054D40:
   4718     /* test LO8(eax), LO8(eax) */ /* 0x47054D40: test al, al */
   4719     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4720     _cf = 0;
   4721     _flag_k = FK_NARROW(FK_TEST, 24);
   4722 L_47054D42:
   4723     RECOMP_BACKEDGE();
   4724     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054CD6; /* 0x47054D42: jne 0x47054cd6 */
   4725 L_47054D44:
   4726     edx = MEM32(esp + 0x14); /* 0x47054D44: mov edx, dword ptr [esp + 0x14] */
   4727 L_47054D48:
   4728     PUSH32(esp, 0); /* 0x47054D48: push 0 */
   4729 L_47054D4A:
   4730     PUSH32(esp, 0); /* 0x47054D4A: push 0 */
   4731 L_47054D4C:
   4732     PUSH32(esp, ebx); /* 0x47054D4C: push ebx */
   4733 L_47054D4D:
   4734     PUSH32(esp, edx); /* 0x47054D4D: push edx */
   4735 L_47054D4E:
   4736     RECOMP_ICALL(0x470571E0u); /* 0x47054D4E: call 0x470571e0 */ /* not lifted */
   4737     RECOMP_FLAGS_IN();
   4738 L_47054D53:
   4739     edi = eax; /* 0x47054D53: mov edi, eax */
   4740 L_47054D55:
   4741     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4742     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4743     esp = esp + 0x10u; /* 0x47054D55: add esp, 0x10 */
   4744     _flag_k = FK_ADD;
   4745 L_47054D58:
   4746     /* cmp edi, 0xFFFFFFFFu */ /* 0x47054D58: cmp edi, -1 */
   4747     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4749     _flag_k = FK_CMP;
   4750 L_47054D5B:
   4751     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47054DA9; /* 0x47054D5B: je 0x47054da9 */
   4752 L_47054D5D:
   4753     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x4008u);
   4754     ebx = ebx & 0x4008u; /* 0x47054D5D: and ebx, 0x4008 */
   4755     _cf = 0;
   4756     _flag_k = FK_TEST;
   4757 L_47054D63:
   4758     PUSH32(esp, ebx); /* 0x47054D63: push ebx */
   4759 L_47054D64:
   4760     PUSH32(esp, edi); /* 0x47054D64: push edi */
   4761 L_47054D65:
   4762     RECOMP_ICALL(MEM32(0x470AC258)); /* 0x47054D65: call dword ptr [0x470ac258] */
   4763     RECOMP_FLAGS_IN();
   4764 L_47054D6B:
   4765     esi = eax; /* 0x47054D6B: mov esi, eax */
   4766 L_47054D6D:
   4767     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4768     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4769     esp = esp + 8; /* 0x47054D6D: add esp, 8 */
   4770     _flag_k = FK_ADD;
   4771 L_47054D70:
   4772     /* cmp esi, 0xFFFFFFFFu */ /* 0x47054D70: cmp esi, -1 */
   4773     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4774     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4775     _flag_k = FK_CMP;
   4776 L_47054D73:
   4777     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47054D8E; /* 0x47054D73: je 0x47054d8e */
   4778 L_47054D75:
   4779     PUSH32(esp, ebp); /* 0x47054D75: push ebp */
   4780 L_47054D76:
   4781     PUSH32(esp, esi); /* 0x47054D76: push esi */
   4782 L_47054D77:
   4783     RECOMP_ICALL(MEM32(0x470AC254)); /* 0x47054D77: call dword ptr [0x470ac254] */
   4784     RECOMP_FLAGS_IN();
   4785 L_47054D7D:
   4786     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4787     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4788     esp = esp + 8; /* 0x47054D7D: add esp, 8 */
   4789     _flag_k = FK_ADD;
   4790 L_47054D80:
   4791     /* test eax, eax */ /* 0x47054D80: test eax, eax */
   4792     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4793     _cf = 0;
   4794     _flag_k = FK_TEST;
   4795 L_47054D82:
   4796     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054DAB; /* 0x47054D82: jne 0x47054dab */
   4797 L_47054D84:
   4798     PUSH32(esp, esi); /* 0x47054D84: push esi */
   4799 L_47054D85:
   4800     RECOMP_ICALL(MEM32(0x470AC250)); /* 0x47054D85: call dword ptr [0x470ac250] */
   4801     RECOMP_FLAGS_IN();
   4802 L_47054D8B:
   4803     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4804     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4805     esp = esp + 4; /* 0x47054D8B: add esp, 4 */
   4806     _flag_k = FK_ADD;
   4807 L_47054D8E:
   4808     PUSH32(esp, edi); /* 0x47054D8E: push edi */
   4809 L_47054D8F:
   4810     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47054D8F: call dword ptr [0x470ac198] */
   4811     RECOMP_FLAGS_IN();
   4812 L_47054D95:
   4813     /* test eax, eax */ /* 0x47054D95: test eax, eax */
   4814     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4815     _cf = 0;
   4816     _flag_k = FK_TEST;
   4817 L_47054D97:
   4818     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054DA9; /* 0x47054D97: jne 0x47054da9 */
   4819 L_47054D99:
   4820     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47054D99: call dword ptr [0x470ac3c8] */
   4821     RECOMP_FLAGS_IN();
   4822 L_47054D9F:
   4823     esi = eax; /* 0x47054D9F: mov esi, eax */
   4824 L_47054DA1:
   4825     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47054DA1: call dword ptr [0x470ac150] */
   4826     RECOMP_FLAGS_IN();
   4827 L_47054DA7:
   4828     MEM32(esi) = eax; /* 0x47054DA7: mov dword ptr [esi], eax */
   4829 L_47054DA9:
   4830     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4831     eax = 0; /* 0x47054DA9: xor eax, eax */
   4832     _cf = 0;
   4833     _flag_k = FK_TEST;
   4834 L_47054DAB:
   4835     edi = POP32_VAL(esp); /* 0x47054DAB: pop edi */
   4836 L_47054DAC:
   4837     esi = POP32_VAL(esp); /* 0x47054DAC: pop esi */
   4838 L_47054DAD:
   4839     ebp = POP32_VAL(esp); /* 0x47054DAD: pop ebp */
   4840 L_47054DAE:
   4841     ebx = POP32_VAL(esp); /* 0x47054DAE: pop ebx */
   4842 L_47054DAF:
   4843     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054DAF: ret  */
   4844   _ljump:
   4845     switch (_itail_tgt) {
   4846       case 0x47054CC0u: goto L_47054CC0;
   4847       case 0x47054CC1u: goto L_47054CC1;
   4848       case 0x47054CC2u: goto L_47054CC2;
   4849       case 0x47054CC6u: goto L_47054CC6;
   4850       case 0x47054CC9u: goto L_47054CC9;
   4851       case 0x47054CCBu: goto L_47054CCB;
   4852       case 0x47054CCCu: goto L_47054CCC;
   4853       case 0x47054CCDu: goto L_47054CCD;
   4854       case 0x47054CD2u: goto L_47054CD2;
   4855       case 0x47054CD4u: goto L_47054CD4;
   4856       case 0x47054CD6u: goto L_47054CD6;
   4857       case 0x47054CD9u: goto L_47054CD9;
   4858       case 0x47054CDCu: goto L_47054CDC;
   4859       case 0x47054CDFu: goto L_47054CDF;
   4860       case 0x47054CE1u: goto L_47054CE1;
   4861       case 0x47054CE3u: goto L_47054CE3;
   4862       case 0x47054CE9u: goto L_47054CE9;
   4863       case 0x47054CF0u: goto L_47054CF0;
   4864       case 0x47054CF3u: goto L_47054CF3;
   4865       case 0x47054CF5u: goto L_47054CF5;
   4866       case 0x47054CF8u: goto L_47054CF8;
   4867       case 0x47054CFAu: goto L_47054CFA;
   4868       case 0x47054CFDu: goto L_47054CFD;
   4869       case 0x47054CFFu: goto L_47054CFF;
   4870       case 0x47054D02u: goto L_47054D02;
   4871       case 0x47054D08u: goto L_47054D08;
   4872       case 0x47054D0Au: goto L_47054D0A;
   4873       case 0x47054D0Du: goto L_47054D0D;
   4874       case 0x47054D0Fu: goto L_47054D0F;
   4875       case 0x47054D12u: goto L_47054D12;
   4876       case 0x47054D18u: goto L_47054D18;
   4877       case 0x47054D1Au: goto L_47054D1A;
   4878       case 0x47054D1Du: goto L_47054D1D;
   4879       case 0x47054D20u: goto L_47054D20;
   4880       case 0x47054D22u: goto L_47054D22;
   4881       case 0x47054D28u: goto L_47054D28;
   4882       case 0x47054D2Eu: goto L_47054D2E;
   4883       case 0x47054D30u: goto L_47054D30;
   4884       case 0x47054D36u: goto L_47054D36;
   4885       case 0x47054D3Cu: goto L_47054D3C;
   4886       case 0x47054D3Fu: goto L_47054D3F;
   4887       case 0x47054D40u: goto L_47054D40;
   4888       case 0x47054D42u: goto L_47054D42;
   4889       case 0x47054D44u: goto L_47054D44;
   4890       case 0x47054D48u: goto L_47054D48;
   4891       case 0x47054D4Au: goto L_47054D4A;
   4892       case 0x47054D4Cu: goto L_47054D4C;
   4893       case 0x47054D4Du: goto L_47054D4D;
   4894       case 0x47054D4Eu: goto L_47054D4E;
   4895       case 0x47054D53u: goto L_47054D53;
   4896       case 0x47054D55u: goto L_47054D55;
   4897       case 0x47054D58u: goto L_47054D58;
   4898       case 0x47054D5Bu: goto L_47054D5B;
   4899       case 0x47054D5Du: goto L_47054D5D;
   4900       case 0x47054D63u: goto L_47054D63;
   4901       case 0x47054D64u: goto L_47054D64;
   4902       case 0x47054D65u: goto L_47054D65;
   4903       case 0x47054D6Bu: goto L_47054D6B;
   4904       case 0x47054D6Du: goto L_47054D6D;
   4905       case 0x47054D70u: goto L_47054D70;
   4906       case 0x47054D73u: goto L_47054D73;
   4907       case 0x47054D75u: goto L_47054D75;
   4908       case 0x47054D76u: goto L_47054D76;
   4909       case 0x47054D77u: goto L_47054D77;
   4910       case 0x47054D7Du: goto L_47054D7D;
   4911       case 0x47054D80u: goto L_47054D80;
   4912       case 0x47054D82u: goto L_47054D82;
   4913       case 0x47054D84u: goto L_47054D84;
   4914       case 0x47054D85u: goto L_47054D85;
   4915       case 0x47054D8Bu: goto L_47054D8B;
   4916       case 0x47054D8Eu: goto L_47054D8E;
   4917       case 0x47054D8Fu: goto L_47054D8F;
   4918       case 0x47054D95u: goto L_47054D95;
   4919       case 0x47054D97u: goto L_47054D97;
   4920       case 0x47054D99u: goto L_47054D99;
   4921       case 0x47054D9Fu: goto L_47054D9F;
   4922       case 0x47054DA1u: goto L_47054DA1;
   4923       case 0x47054DA7u: goto L_47054DA7;
   4924       case 0x47054DA9u: goto L_47054DA9;
   4925       case 0x47054DABu: goto L_47054DAB;
   4926       case 0x47054DACu: goto L_47054DAC;
   4927       case 0x47054DADu: goto L_47054DAD;
   4928       case 0x47054DAEu: goto L_47054DAE;
   4929       case 0x47054DAFu: goto L_47054DAF;
   4930       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4931     }
   4932     RECOMP_REGS_OUT();
   4933 }
   4934 
   4935 void sub_47054E20(void) {
   4936     int _fpu_cmp = 0;
   4937     uint32_t _cf = 0;
   4938     int _df = 1;
   4939     uint32_t _flag_k = FK_NONE;
   4940     uint32_t _flag_a = 0, _flag_b = 0;
   4941     uint32_t _itail_tgt = 0;
   4942     RECOMP_REGS_LOCALS
   4943     RECOMP_ENTER(0x47054E20u);
   4944 
   4945 L_47054E20:
   4946     PUSH32(esp, ebx); /* 0x47054E20: push ebx */
   4947 L_47054E21:
   4948     PUSH32(esp, ebp); /* 0x47054E21: push ebp */
   4949 L_47054E22:
   4950     ebp = MEM32(esp + 0x10); /* 0x47054E22: mov ebp, dword ptr [esp + 0x10] */
   4951 L_47054E26:
   4952     /* cmp MEM16(ebp), 0 */ /* 0x47054E26: cmp word ptr [ebp], 0 */
   4953     _flag_a = (uint32_t)(MEM16(ebp)) << 16; _flag_b = (uint32_t)(0) << 16;
   4954     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4955     _flag_k = FK_NARROW(FK_CMP, 16);
   4956 L_47054E2B:
   4957     PUSH32(esp, esi); /* 0x47054E2B: push esi */
   4958 L_47054E2C:
   4959     PUSH32(esp, edi); /* 0x47054E2C: push edi */
   4960 L_47054E2D:
   4961     ebx = 0x4000u; /* 0x47054E2D: mov ebx, 0x4000 */
   4962 L_47054E32:
   4963     esi = ebp; /* 0x47054E32: mov esi, ebp */
   4964 L_47054E34:
   4965     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47054EA5; /* 0x47054E34: je 0x47054ea5 */
   4966 L_47054E36:
   4967     eax = (int32_t)(int8_t)MEM8(esi); /* 0x47054E36: movsx eax, byte ptr [esi] */
   4968 L_47054E39:
   4969     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFD5u);
   4970     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4971     eax = eax + 0xFFFFFFD5u; /* 0x47054E39: add eax, -0x2b */
   4972     _flag_k = FK_ADD;
   4973 L_47054E3C:
   4974     /* cmp eax, 0x4Cu */ /* 0x47054E3C: cmp eax, 0x4c */
   4975     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Cu);
   4976     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4977     _flag_k = FK_CMP;
   4978 L_47054E3F:
   4979     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47054E9C; /* 0x47054E3F: ja 0x47054e9c */
   4980 L_47054E41:
   4981     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4982     ecx = 0; /* 0x47054E41: xor ecx, ecx */
   4983     _cf = 0;
   4984     _flag_k = FK_TEST;
   4985 L_47054E43:
   4986     SET_LO8(ecx, MEM8(eax + 0x47054F30)); /* 0x47054E43: mov cl, byte ptr [eax + 0x47054f30] */
   4987 L_47054E49:
   4988     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47054F14)); goto _ljump; }
   4989 L_47054E50:
   4990     /* test LO8(ebx), 2 */ /* 0x47054E50: test bl, 2 */
   4991     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   4992     _cf = 0;
   4993     _flag_k = FK_NARROW(FK_TEST, 24);
   4994 L_47054E53:
   4995     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054E9C; /* 0x47054E53: jne 0x47054e9c */
   4996 L_47054E55:
   4997     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4998     ebx = ebx & 0xFFFFFFFEu; /* 0x47054E55: and ebx, 0xfffffffe */
   4999     _cf = 0;
   5000     _flag_k = FK_TEST;
   5001 L_47054E58:
   5002     goto L_47054E9C; /* 0x47054E58: jmp 0x47054e9c */
   5003 L_47054E5A:
   5004     /* test LO8(ebx), 2 */ /* 0x47054E5A: test bl, 2 */
   5005     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   5006     _cf = 0;
   5007     _flag_k = FK_NARROW(FK_TEST, 24);
   5008 L_47054E5D:
   5009     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054E62; /* 0x47054E5D: jne 0x47054e62 */
   5010 L_47054E5F:
   5011     _flag_a = (uint32_t)((ebx | 1)); _flag_b = (uint32_t)((ebx | 1));
   5012     ebx = ebx | 1; /* 0x47054E5F: or ebx, 1 */
   5013     _cf = 0;
   5014     _flag_k = FK_TEST;
   5015 L_47054E62:
   5016     _flag_a = (uint32_t)((ebx | 0x300u)); _flag_b = (uint32_t)((ebx | 0x300u));
   5017     ebx = ebx | 0x300u; /* 0x47054E62: or ebx, 0x300 */
   5018     _cf = 0;
   5019     _flag_k = FK_TEST;
   5020 L_47054E68:
   5021     goto L_47054E9C; /* 0x47054E68: jmp 0x47054e9c */
   5022 L_47054E6A:
   5023     /* test LO8(ebx), 2 */ /* 0x47054E6A: test bl, 2 */
   5024     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   5025     _cf = 0;
   5026     _flag_k = FK_NARROW(FK_TEST, 24);
   5027 L_47054E6D:
   5028     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054E72; /* 0x47054E6D: jne 0x47054e72 */
   5029 L_47054E6F:
   5030     _flag_a = (uint32_t)((ebx | 1)); _flag_b = (uint32_t)((ebx | 1));
   5031     ebx = ebx | 1; /* 0x47054E6F: or ebx, 1 */
   5032     _cf = 0;
   5033     _flag_k = FK_TEST;
   5034 L_47054E72:
   5035     _flag_a = (uint32_t)((ebx | 0x108u)); _flag_b = (uint32_t)((ebx | 0x108u));
   5036     ebx = ebx | 0x108u; /* 0x47054E72: or ebx, 0x108 */
   5037     _cf = 0;
   5038     _flag_k = FK_TEST;
   5039 L_47054E78:
   5040     goto L_47054E9C; /* 0x47054E78: jmp 0x47054e9c */
   5041 L_47054E7A:
   5042     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   5043     ebx = ebx & 0xFFFFFFFEu; /* 0x47054E7A: and ebx, 0xfffffffe */
   5044     _cf = 0;
   5045     _flag_k = FK_TEST;
   5046 L_47054E7D:
   5047     _flag_a = (uint32_t)((ebx | 2)); _flag_b = (uint32_t)((ebx | 2));
   5048     ebx = ebx | 2; /* 0x47054E7D: or ebx, 2 */
   5049     _cf = 0;
   5050     _flag_k = FK_TEST;
   5051 L_47054E80:
   5052     goto L_47054E9C; /* 0x47054E80: jmp 0x47054e9c */
   5053 L_47054E82:
   5054     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFF7FFFu);
   5055     ebx = ebx & 0xFFFF7FFFu; /* 0x47054E82: and ebx, 0xffff7fff */
   5056     _cf = 0;
   5057     _flag_k = FK_TEST;
   5058 L_47054E88:
   5059     _flag_a = (uint32_t)((ebx | 0x4000u)); _flag_b = (uint32_t)((ebx | 0x4000u));
   5060     ebx = ebx | 0x4000u; /* 0x47054E88: or ebx, 0x4000 */
   5061     _cf = 0;
   5062     _flag_k = FK_TEST;
   5063 L_47054E8E:
   5064     goto L_47054E9C; /* 0x47054E8E: jmp 0x47054e9c */
   5065 L_47054E90:
   5066     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFBFFFu);
   5067     ebx = ebx & 0xFFFFBFFFu; /* 0x47054E90: and ebx, 0xffffbfff */
   5068     _cf = 0;
   5069     _flag_k = FK_TEST;
   5070 L_47054E96:
   5071     _flag_a = (uint32_t)((ebx | 0x8000u)); _flag_b = (uint32_t)((ebx | 0x8000u));
   5072     ebx = ebx | 0x8000u; /* 0x47054E96: or ebx, 0x8000 */
   5073     _cf = 0;
   5074     _flag_k = FK_TEST;
   5075 L_47054E9C:
   5076     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   5077     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5078     esi = esi + 2; /* 0x47054E9C: add esi, 2 */
   5079     _flag_k = FK_ADD;
   5080 L_47054E9F:
   5081     /* cmp MEM16(esi), 0 */ /* 0x47054E9F: cmp word ptr [esi], 0 */
   5082     _flag_a = (uint32_t)(MEM16(esi)) << 16; _flag_b = (uint32_t)(0) << 16;
   5083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5084     _flag_k = FK_NARROW(FK_CMP, 16);
   5085 L_47054EA3:
   5086     RECOMP_BACKEDGE();
   5087     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054E36; /* 0x47054EA3: jne 0x47054e36 */
   5088 L_47054EA5:
   5089     edx = MEM32(esp + 0x14); /* 0x47054EA5: mov edx, dword ptr [esp + 0x14] */
   5090 L_47054EA9:
   5091     PUSH32(esp, 0); /* 0x47054EA9: push 0 */
   5092 L_47054EAB:
   5093     PUSH32(esp, 0); /* 0x47054EAB: push 0 */
   5094 L_47054EAD:
   5095     PUSH32(esp, ebx); /* 0x47054EAD: push ebx */
   5096 L_47054EAE:
   5097     PUSH32(esp, edx); /* 0x47054EAE: push edx */
   5098 L_47054EAF:
   5099     RECOMP_ICALL(0x47057410u); /* 0x47054EAF: call 0x47057410 */ /* not lifted */
   5100     RECOMP_FLAGS_IN();
   5101 L_47054EB4:
   5102     edi = eax; /* 0x47054EB4: mov edi, eax */
   5103 L_47054EB6:
   5104     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5105     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5106     esp = esp + 0x10u; /* 0x47054EB6: add esp, 0x10 */
   5107     _flag_k = FK_ADD;
   5108 L_47054EB9:
   5109     /* cmp edi, 0xFFFFFFFFu */ /* 0x47054EB9: cmp edi, -1 */
   5110     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5111     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5112     _flag_k = FK_CMP;
   5113 L_47054EBC:
   5114     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47054F0A; /* 0x47054EBC: je 0x47054f0a */
   5115 L_47054EBE:
   5116     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x4008u);
   5117     ebx = ebx & 0x4008u; /* 0x47054EBE: and ebx, 0x4008 */
   5118     _cf = 0;
   5119     _flag_k = FK_TEST;
   5120 L_47054EC4:
   5121     PUSH32(esp, ebx); /* 0x47054EC4: push ebx */
   5122 L_47054EC5:
   5123     PUSH32(esp, edi); /* 0x47054EC5: push edi */
   5124 L_47054EC6:
   5125     RECOMP_ICALL(MEM32(0x470AC258)); /* 0x47054EC6: call dword ptr [0x470ac258] */
   5126     RECOMP_FLAGS_IN();
   5127 L_47054ECC:
   5128     esi = eax; /* 0x47054ECC: mov esi, eax */
   5129 L_47054ECE:
   5130     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5131     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5132     esp = esp + 8; /* 0x47054ECE: add esp, 8 */
   5133     _flag_k = FK_ADD;
   5134 L_47054ED1:
   5135     /* cmp esi, 0xFFFFFFFFu */ /* 0x47054ED1: cmp esi, -1 */
   5136     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5137     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5138     _flag_k = FK_CMP;
   5139 L_47054ED4:
   5140     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47054EEF; /* 0x47054ED4: je 0x47054eef */
   5141 L_47054ED6:
   5142     PUSH32(esp, ebp); /* 0x47054ED6: push ebp */
   5143 L_47054ED7:
   5144     PUSH32(esp, esi); /* 0x47054ED7: push esi */
   5145 L_47054ED8:
   5146     RECOMP_ICALL(MEM32(0x470AC2D8)); /* 0x47054ED8: call dword ptr [0x470ac2d8] */
   5147     RECOMP_FLAGS_IN();
   5148 L_47054EDE:
   5149     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5150     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5151     esp = esp + 8; /* 0x47054EDE: add esp, 8 */
   5152     _flag_k = FK_ADD;
   5153 L_47054EE1:
   5154     /* test eax, eax */ /* 0x47054EE1: test eax, eax */
   5155     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5156     _cf = 0;
   5157     _flag_k = FK_TEST;
   5158 L_47054EE3:
   5159     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054F0C; /* 0x47054EE3: jne 0x47054f0c */
   5160 L_47054EE5:
   5161     PUSH32(esp, esi); /* 0x47054EE5: push esi */
   5162 L_47054EE6:
   5163     RECOMP_ICALL(MEM32(0x470AC250)); /* 0x47054EE6: call dword ptr [0x470ac250] */
   5164     RECOMP_FLAGS_IN();
   5165 L_47054EEC:
   5166     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5167     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5168     esp = esp + 4; /* 0x47054EEC: add esp, 4 */
   5169     _flag_k = FK_ADD;
   5170 L_47054EEF:
   5171     PUSH32(esp, edi); /* 0x47054EEF: push edi */
   5172 L_47054EF0:
   5173     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47054EF0: call dword ptr [0x470ac198] */
   5174     RECOMP_FLAGS_IN();
   5175 L_47054EF6:
   5176     /* test eax, eax */ /* 0x47054EF6: test eax, eax */
   5177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5178     _cf = 0;
   5179     _flag_k = FK_TEST;
   5180 L_47054EF8:
   5181     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47054F0A; /* 0x47054EF8: jne 0x47054f0a */
   5182 L_47054EFA:
   5183     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47054EFA: call dword ptr [0x470ac3c8] */
   5184     RECOMP_FLAGS_IN();
   5185 L_47054F00:
   5186     esi = eax; /* 0x47054F00: mov esi, eax */
   5187 L_47054F02:
   5188     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47054F02: call dword ptr [0x470ac150] */
   5189     RECOMP_FLAGS_IN();
   5190 L_47054F08:
   5191     MEM32(esi) = eax; /* 0x47054F08: mov dword ptr [esi], eax */
   5192 L_47054F0A:
   5193     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5194     eax = 0; /* 0x47054F0A: xor eax, eax */
   5195     _cf = 0;
   5196     _flag_k = FK_TEST;
   5197 L_47054F0C:
   5198     edi = POP32_VAL(esp); /* 0x47054F0C: pop edi */
   5199 L_47054F0D:
   5200     esi = POP32_VAL(esp); /* 0x47054F0D: pop esi */
   5201 L_47054F0E:
   5202     ebp = POP32_VAL(esp); /* 0x47054F0E: pop ebp */
   5203 L_47054F0F:
   5204     ebx = POP32_VAL(esp); /* 0x47054F0F: pop ebx */
   5205 L_47054F10:
   5206     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054F10: ret  */
   5207   _ljump:
   5208     switch (_itail_tgt) {
   5209       case 0x47054E20u: goto L_47054E20;
   5210       case 0x47054E21u: goto L_47054E21;
   5211       case 0x47054E22u: goto L_47054E22;
   5212       case 0x47054E26u: goto L_47054E26;
   5213       case 0x47054E2Bu: goto L_47054E2B;
   5214       case 0x47054E2Cu: goto L_47054E2C;
   5215       case 0x47054E2Du: goto L_47054E2D;
   5216       case 0x47054E32u: goto L_47054E32;
   5217       case 0x47054E34u: goto L_47054E34;
   5218       case 0x47054E36u: goto L_47054E36;
   5219       case 0x47054E39u: goto L_47054E39;
   5220       case 0x47054E3Cu: goto L_47054E3C;
   5221       case 0x47054E3Fu: goto L_47054E3F;
   5222       case 0x47054E41u: goto L_47054E41;
   5223       case 0x47054E43u: goto L_47054E43;
   5224       case 0x47054E49u: goto L_47054E49;
   5225       case 0x47054E50u: goto L_47054E50;
   5226       case 0x47054E53u: goto L_47054E53;
   5227       case 0x47054E55u: goto L_47054E55;
   5228       case 0x47054E58u: goto L_47054E58;
   5229       case 0x47054E5Au: goto L_47054E5A;
   5230       case 0x47054E5Du: goto L_47054E5D;
   5231       case 0x47054E5Fu: goto L_47054E5F;
   5232       case 0x47054E62u: goto L_47054E62;
   5233       case 0x47054E68u: goto L_47054E68;
   5234       case 0x47054E6Au: goto L_47054E6A;
   5235       case 0x47054E6Du: goto L_47054E6D;
   5236       case 0x47054E6Fu: goto L_47054E6F;
   5237       case 0x47054E72u: goto L_47054E72;
   5238       case 0x47054E78u: goto L_47054E78;
   5239       case 0x47054E7Au: goto L_47054E7A;
   5240       case 0x47054E7Du: goto L_47054E7D;
   5241       case 0x47054E80u: goto L_47054E80;
   5242       case 0x47054E82u: goto L_47054E82;
   5243       case 0x47054E88u: goto L_47054E88;
   5244       case 0x47054E8Eu: goto L_47054E8E;
   5245       case 0x47054E90u: goto L_47054E90;
   5246       case 0x47054E96u: goto L_47054E96;
   5247       case 0x47054E9Cu: goto L_47054E9C;
   5248       case 0x47054E9Fu: goto L_47054E9F;
   5249       case 0x47054EA3u: goto L_47054EA3;
   5250       case 0x47054EA5u: goto L_47054EA5;
   5251       case 0x47054EA9u: goto L_47054EA9;
   5252       case 0x47054EABu: goto L_47054EAB;
   5253       case 0x47054EADu: goto L_47054EAD;
   5254       case 0x47054EAEu: goto L_47054EAE;
   5255       case 0x47054EAFu: goto L_47054EAF;
   5256       case 0x47054EB4u: goto L_47054EB4;
   5257       case 0x47054EB6u: goto L_47054EB6;
   5258       case 0x47054EB9u: goto L_47054EB9;
   5259       case 0x47054EBCu: goto L_47054EBC;
   5260       case 0x47054EBEu: goto L_47054EBE;
   5261       case 0x47054EC4u: goto L_47054EC4;
   5262       case 0x47054EC5u: goto L_47054EC5;
   5263       case 0x47054EC6u: goto L_47054EC6;
   5264       case 0x47054ECCu: goto L_47054ECC;
   5265       case 0x47054ECEu: goto L_47054ECE;
   5266       case 0x47054ED1u: goto L_47054ED1;
   5267       case 0x47054ED4u: goto L_47054ED4;
   5268       case 0x47054ED6u: goto L_47054ED6;
   5269       case 0x47054ED7u: goto L_47054ED7;
   5270       case 0x47054ED8u: goto L_47054ED8;
   5271       case 0x47054EDEu: goto L_47054EDE;
   5272       case 0x47054EE1u: goto L_47054EE1;
   5273       case 0x47054EE3u: goto L_47054EE3;
   5274       case 0x47054EE5u: goto L_47054EE5;
   5275       case 0x47054EE6u: goto L_47054EE6;
   5276       case 0x47054EECu: goto L_47054EEC;
   5277       case 0x47054EEFu: goto L_47054EEF;
   5278       case 0x47054EF0u: goto L_47054EF0;
   5279       case 0x47054EF6u: goto L_47054EF6;
   5280       case 0x47054EF8u: goto L_47054EF8;
   5281       case 0x47054EFAu: goto L_47054EFA;
   5282       case 0x47054F00u: goto L_47054F00;
   5283       case 0x47054F02u: goto L_47054F02;
   5284       case 0x47054F08u: goto L_47054F08;
   5285       case 0x47054F0Au: goto L_47054F0A;
   5286       case 0x47054F0Cu: goto L_47054F0C;
   5287       case 0x47054F0Du: goto L_47054F0D;
   5288       case 0x47054F0Eu: goto L_47054F0E;
   5289       case 0x47054F0Fu: goto L_47054F0F;
   5290       case 0x47054F10u: goto L_47054F10;
   5291       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5292     }
   5293     RECOMP_REGS_OUT();
   5294 }
   5295 
   5296 void sub_47054F80(void) {
   5297     int _fpu_cmp = 0;
   5298     uint32_t _cf = 0;
   5299     int _df = 1;
   5300     uint32_t _flag_k = FK_NONE;
   5301     uint32_t _flag_a = 0, _flag_b = 0;
   5302     uint32_t _itail_tgt = 0;
   5303     RECOMP_REGS_LOCALS
   5304     RECOMP_ENTER(0x47054F80u);
   5305 
   5306 L_47054F80:
   5307     ecx = MEM32(esp + 0x8); /* 0x47054F80: mov ecx, dword ptr [esp + 8] */
   5308     edx = MEM32(esp + 0x4); /* 0x47054F84: mov edx, dword ptr [esp + 4] */
   5309     eax = esp + 0xC; /* 0x47054F88: lea eax, [esp + 0xc] */
   5310     PUSH32(esp, eax); /* 0x47054F8C: push eax */
   5311     PUSH32(esp, ecx); /* 0x47054F8D: push ecx */
   5312     PUSH32(esp, edx); /* 0x47054F8E: push edx */
   5313     RECOMP_ICALL(MEM32(0x470AC32C)); /* 0x47054F8F: call dword ptr [0x470ac32c] */
   5314     RECOMP_FLAGS_IN();
   5315     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5316     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5317     esp = esp + 0xCu; /* 0x47054F95: add esp, 0xc */
   5318     _flag_k = FK_ADD;
   5319     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054F98: ret  */
   5320     RECOMP_REGS_OUT();
   5321 }
   5322 
   5323 void sub_47054FA0(void) {
   5324     int _fpu_cmp = 0;
   5325     uint32_t _cf = 0;
   5326     int _df = 1;
   5327     uint32_t _flag_k = FK_NONE;
   5328     uint32_t _flag_a = 0, _flag_b = 0;
   5329     uint32_t _itail_tgt = 0;
   5330     RECOMP_REGS_LOCALS
   5331     RECOMP_ENTER(0x47054FA0u);
   5332 
   5333 L_47054FA0:
   5334     ecx = MEM32(esp + 0x4); /* 0x47054FA0: mov ecx, dword ptr [esp + 4] */
   5335     eax = esp + 0x8; /* 0x47054FA4: lea eax, [esp + 8] */
   5336     PUSH32(esp, eax); /* 0x47054FA8: push eax */
   5337     PUSH32(esp, ecx); /* 0x47054FA9: push ecx */
   5338     RECOMP_ICALL(MEM32(0x470AC330)); /* 0x47054FAA: call dword ptr [0x470ac330] */
   5339     RECOMP_FLAGS_IN();
   5340     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5341     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5342     esp = esp + 8; /* 0x47054FB0: add esp, 8 */
   5343     _flag_k = FK_ADD;
   5344     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054FB3: ret  */
   5345     RECOMP_REGS_OUT();
   5346 }
   5347 
   5348 void sub_47054FC0(void) {
   5349     int _fpu_cmp = 0;
   5350     uint32_t _cf = 0;
   5351     int _df = 1;
   5352     uint32_t _flag_k = FK_NONE;
   5353     uint32_t _flag_a = 0, _flag_b = 0;
   5354     uint32_t _itail_tgt = 0;
   5355     RECOMP_REGS_LOCALS
   5356     RECOMP_ENTER(0x47054FC0u);
   5357 
   5358 L_47054FC0:
   5359     ecx = MEM32(esp + 0x8); /* 0x47054FC0: mov ecx, dword ptr [esp + 8] */
   5360     edx = MEM32(esp + 0x4); /* 0x47054FC4: mov edx, dword ptr [esp + 4] */
   5361     eax = esp + 0xC; /* 0x47054FC8: lea eax, [esp + 0xc] */
   5362     PUSH32(esp, eax); /* 0x47054FCC: push eax */
   5363     PUSH32(esp, ecx); /* 0x47054FCD: push ecx */
   5364     PUSH32(esp, edx); /* 0x47054FCE: push edx */
   5365     RECOMP_ICALL(MEM32(0x470AC1F4)); /* 0x47054FCF: call dword ptr [0x470ac1f4] */
   5366     RECOMP_FLAGS_IN();
   5367     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5368     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5369     esp = esp + 0xCu; /* 0x47054FD5: add esp, 0xc */
   5370     _flag_k = FK_ADD;
   5371     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47054FD8: ret  */
   5372     RECOMP_REGS_OUT();
   5373 }
   5374 
   5375 void sub_47054FE0(void) {
   5376     int _fpu_cmp = 0;
   5377     uint32_t _cf = 0;
   5378     int _df = 1;
   5379     uint32_t _flag_k = FK_NONE;
   5380     uint32_t _flag_a = 0, _flag_b = 0;
   5381     uint32_t _itail_tgt = 0;
   5382     RECOMP_REGS_LOCALS
   5383     RECOMP_ENTER(0x47054FE0u);
   5384 
   5385 L_47054FE0:
   5386     PUSH32(esp, ebp); /* 0x47054FE0: push ebp */
   5387     ebp = MEM32(esp + 0x8); /* 0x47054FE1: mov ebp, dword ptr [esp + 8] */
   5388     /* test ebp, ebp */ /* 0x47054FE5: test ebp, ebp */
   5389     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   5390     _cf = 0;
   5391     _flag_k = FK_TEST;
   5392     PUSH32(esp, esi); /* 0x47054FE7: push esi */
   5393     PUSH32(esp, edi); /* 0x47054FE8: push edi */
   5394     edi = ebp; /* 0x47054FE9: mov edi, ebp */
   5395     if (TEST_Z(_flag_a, _flag_b)) goto L_47054FF5; /* 0x47054FEB: je 0x47054ff5 */
   5396 L_47054FED:
   5397     esi = MEM32(esp + 0x14); /* 0x47054FED: mov esi, dword ptr [esp + 0x14] */
   5398     /* test esi, esi */ /* 0x47054FF1: test esi, esi */
   5399     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5400     _cf = 0;
   5401     _flag_k = FK_TEST;
   5402     if (TEST_NS(_flag_a, _flag_b)) goto L_47054FFB; /* 0x47054FF3: jge 0x47054ffb */
   5403 L_47054FF5:
   5404     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5405     esi = 0; /* 0x47054FF5: xor esi, esi */
   5406     _cf = 0;
   5407     _flag_k = FK_TEST;
   5408     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5409     ebp = 0; /* 0x47054FF7: xor ebp, ebp */
   5410     _cf = 0;
   5411     _flag_k = FK_TEST;
   5412     goto L_47055002; /* 0x47054FF9: jmp 0x47055002 */
   5413 L_47054FFB:
   5414     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47055001; /* 0x47054FFB: jne 0x47055001 */
   5415 L_47054FFD:
   5416     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5417     ebp = 0; /* 0x47054FFD: xor ebp, ebp */
   5418     _cf = 0;
   5419     _flag_k = FK_TEST;
   5420     goto L_47055002; /* 0x47054FFF: jmp 0x47055002 */
   5421 L_47055001:
   5422     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   5423     esi = esi - 1; /* 0x47055001: dec esi */
   5424     _flag_k = FK_DEC;
   5425 L_47055002:
   5426     PUSH32(esp, ebx); /* 0x47055002: push ebx */
   5427     ebx = MEM32(0x470AC334); /* 0x47055003: mov ebx, dword ptr [0x470ac334] */
   5428     RECOMP_ICALL(ebx); /* 0x47055009: call ebx */
   5429     RECOMP_FLAGS_IN();
   5430     /* cmp eax, 0xAu */ /* 0x4705500B: cmp eax, 0xa */
   5431     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu);
   5432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5433     _flag_k = FK_CMP;
   5434     if (CMP_EQ(_flag_a, _flag_b)) goto L_47055024; /* 0x4705500E: je 0x47055024 */
   5435 L_47055010:
   5436     /* cmp eax, 0xFFFFFFFFu */ /* 0x47055010: cmp eax, -1 */
   5437     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5438     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5439     _flag_k = FK_CMP;
   5440     if (CMP_EQ(_flag_a, _flag_b)) goto L_47055024; /* 0x47055013: je 0x47055024 */
   5441 L_47055015:
   5442     /* test esi, esi */ /* 0x47055015: test esi, esi */
   5443     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5444     _cf = 0;
   5445     _flag_k = FK_TEST;
   5446     if (TEST_LE(_flag_a, _flag_b)) goto L_4705501D; /* 0x47055017: jle 0x4705501d */
   5447 L_47055019:
   5448     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   5449     esi = esi - 1; /* 0x47055019: dec esi */
   5450     _flag_k = FK_DEC;
   5451     MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x4705501A: mov byte ptr [edi], al */
   5452     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   5453     edi = edi + 1; /* 0x4705501C: inc edi */
   5454     _flag_k = FK_INC;
   5455 L_4705501D:
   5456     RECOMP_ICALL(ebx); /* 0x4705501D: call ebx */
   5457     RECOMP_FLAGS_IN();
   5458     /* cmp eax, 0xAu */ /* 0x4705501F: cmp eax, 0xa */
   5459     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu);
   5460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5461     _flag_k = FK_CMP;
   5462     RECOMP_BACKEDGE();
   5463     if (CMP_NE(_flag_a, _flag_b)) goto L_47055010; /* 0x47055022: jne 0x47055010 */
   5464 L_47055024:
   5465     /* test edi, edi */ /* 0x47055024: test edi, edi */
   5466     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5467     _cf = 0;
   5468     _flag_k = FK_TEST;
   5469     ebx = POP32_VAL(esp); /* 0x47055026: pop ebx */
   5470     if (TEST_Z(_flag_a, _flag_b)) goto L_4705502C; /* 0x47055027: je 0x4705502c */
   5471 L_47055029:
   5472     MEM8(edi) = (uint8_t)(0); /* 0x47055029: mov byte ptr [edi], 0 */
   5473 L_4705502C:
   5474     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5475     ecx = 0; /* 0x4705502C: xor ecx, ecx */
   5476     _cf = 0;
   5477     _flag_k = FK_TEST;
   5478     /* cmp eax, 0xFFFFFFFFu */ /* 0x4705502E: cmp eax, -1 */
   5479     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5481     _flag_k = FK_CMP;
   5482     SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47055031: sete cl */
   5483     edi = POP32_VAL(esp); /* 0x47055034: pop edi */
   5484     esi = POP32_VAL(esp); /* 0x47055035: pop esi */
   5485     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5486     ecx = ecx - 1; /* 0x47055036: dec ecx */
   5487     _flag_k = FK_DEC;
   5488     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp);
   5489     ecx = ecx & ebp; /* 0x47055037: and ecx, ebp */
   5490     _cf = 0;
   5491     _flag_k = FK_TEST;
   5492     eax = ecx; /* 0x47055039: mov eax, ecx */
   5493     ebp = POP32_VAL(esp); /* 0x4705503B: pop ebp */
   5494     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705503C: ret  */
   5495     RECOMP_REGS_OUT();
   5496 }
   5497 
   5498 void sub_47055040(void) {
   5499     int _fpu_cmp = 0;
   5500     uint32_t _cf = 0;
   5501     int _df = 1;
   5502     uint32_t _flag_k = FK_NONE;
   5503     uint32_t _flag_a = 0, _flag_b = 0;
   5504     uint32_t _itail_tgt = 0;
   5505     RECOMP_REGS_LOCALS
   5506     RECOMP_ENTER(0x47055040u);
   5507 
   5508 L_47055040:
   5509     ecx = MEM32(esp + 0x8); /* 0x47055040: mov ecx, dword ptr [esp + 8] */
   5510     edx = MEM32(esp + 0x4); /* 0x47055044: mov edx, dword ptr [esp + 4] */
   5511     eax = esp + 0xC; /* 0x47055048: lea eax, [esp + 0xc] */
   5512     PUSH32(esp, eax); /* 0x4705504C: push eax */
   5513     PUSH32(esp, ecx); /* 0x4705504D: push ecx */
   5514     PUSH32(esp, edx); /* 0x4705504E: push edx */
   5515     RECOMP_ICALL(MEM32(0x470AC338)); /* 0x4705504F: call dword ptr [0x470ac338] */
   5516     RECOMP_FLAGS_IN();
   5517     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5518     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5519     esp = esp + 0xCu; /* 0x47055055: add esp, 0xc */
   5520     _flag_k = FK_ADD;
   5521     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055058: ret  */
   5522     RECOMP_REGS_OUT();
   5523 }
   5524 
   5525 void sub_47055060(void) {
   5526     int _fpu_cmp = 0;
   5527     uint32_t _cf = 0;
   5528     int _df = 1;
   5529     uint32_t _flag_k = FK_NONE;
   5530     uint32_t _flag_a = 0, _flag_b = 0;
   5531     uint32_t _itail_tgt = 0;
   5532     RECOMP_REGS_LOCALS
   5533     RECOMP_ENTER(0x47055060u);
   5534 
   5535 L_47055060:
   5536     ecx = MEM32(esp + 0x8); /* 0x47055060: mov ecx, dword ptr [esp + 8] */
   5537     edx = MEM32(esp + 0x4); /* 0x47055064: mov edx, dword ptr [esp + 4] */
   5538     eax = esp + 0xC; /* 0x47055068: lea eax, [esp + 0xc] */
   5539     PUSH32(esp, eax); /* 0x4705506C: push eax */
   5540     PUSH32(esp, ecx); /* 0x4705506D: push ecx */
   5541     PUSH32(esp, edx); /* 0x4705506E: push edx */
   5542     RECOMP_ICALL(MEM32(0x470AC2C0)); /* 0x4705506F: call dword ptr [0x470ac2c0] */
   5543     RECOMP_FLAGS_IN();
   5544     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5545     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5546     esp = esp + 0xCu; /* 0x47055075: add esp, 0xc */
   5547     _flag_k = FK_ADD;
   5548     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055078: ret  */
   5549     RECOMP_REGS_OUT();
   5550 }
   5551 
   5552 void sub_47055080(void) {
   5553     int _fpu_cmp = 0;
   5554     uint32_t _cf = 0;
   5555     int _df = 1;
   5556     uint32_t _flag_k = FK_NONE;
   5557     uint32_t _flag_a = 0, _flag_b = 0;
   5558     uint32_t _itail_tgt = 0;
   5559     RECOMP_REGS_LOCALS
   5560     RECOMP_ENTER(0x47055080u);
   5561 
   5562 L_47055080:
   5563     PUSH32(esp, esi); /* 0x47055080: push esi */
   5564     RECOMP_ICALL(MEM32(0x470AC188)); /* 0x47055081: call dword ptr [0x470ac188] */
   5565     RECOMP_FLAGS_IN();
   5566     ecx = MEM32(esp + 0x8); /* 0x47055087: mov ecx, dword ptr [esp + 8] */
   5567     PUSH32(esp, ecx); /* 0x4705508B: push ecx */
   5568     PUSH32(esp, eax); /* 0x4705508C: push eax */
   5569     RECOMP_ICALL(MEM32(0x470AC134)); /* 0x4705508D: call dword ptr [0x470ac134] */
   5570     RECOMP_FLAGS_IN();
   5571     esi = eax; /* 0x47055093: mov esi, eax */
   5572     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   5573     _cf = (esi) != 0;
   5574     esi = (uint32_t)(-(int32_t)esi); /* 0x47055095: neg esi */
   5575     _flag_k = FK_CMP;
   5576     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x47055097: sbb esi, esi */
   5577       esi = _sc ? 0xFFFFFFFFu : 0;
   5578       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5579       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5580     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   5581     _cf = (esi) != 0;
   5582     esi = (uint32_t)(-(int32_t)esi); /* 0x47055099: neg esi */
   5583     _flag_k = FK_CMP;
   5584     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   5585     esi = esi - 1; /* 0x4705509B: dec esi */
   5586     _flag_k = FK_DEC;
   5587     /* cmp esi, 0xFFFFFFFFu */ /* 0x4705509C: cmp esi, -1 */
   5588     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5590     _flag_k = FK_CMP;
   5591     if (CMP_NE(_flag_a, _flag_b)) goto L_470550B7; /* 0x4705509F: jne 0x470550b7 */
   5592 L_470550A1:
   5593     PUSH32(esp, edi); /* 0x470550A1: push edi */
   5594     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470550A2: call dword ptr [0x470ac3c8] */
   5595     RECOMP_FLAGS_IN();
   5596     edi = eax; /* 0x470550A8: mov edi, eax */
   5597     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470550AA: call dword ptr [0x470ac150] */
   5598     RECOMP_FLAGS_IN();
   5599     MEM32(edi) = eax; /* 0x470550B0: mov dword ptr [edi], eax */
   5600     edi = POP32_VAL(esp); /* 0x470550B2: pop edi */
   5601     eax = esi; /* 0x470550B3: mov eax, esi */
   5602     esi = POP32_VAL(esp); /* 0x470550B5: pop esi */
   5603     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470550B6: ret  */
   5604 L_470550B7:
   5605     eax = esi; /* 0x470550B7: mov eax, esi */
   5606     esi = POP32_VAL(esp); /* 0x470550B9: pop esi */
   5607     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470550BA: ret  */
   5608     RECOMP_REGS_OUT();
   5609 }
   5610 
   5611 void sub_470550C0(void) {
   5612     int _fpu_cmp = 0;
   5613     uint32_t _cf = 0;
   5614     int _df = 1;
   5615     uint32_t _flag_k = FK_NONE;
   5616     uint32_t _flag_a = 0, _flag_b = 0;
   5617     uint32_t _itail_tgt = 0;
   5618     RECOMP_REGS_LOCALS
   5619     RECOMP_ENTER(0x470550C0u);
   5620 
   5621 L_470550C0:
   5622     PUSH32(esp, esi); /* 0x470550C0: push esi */
   5623     esi = MEM32(esp + 0x8); /* 0x470550C1: mov esi, dword ptr [esp + 8] */
   5624     eax = MEM32(esi + 0x8); /* 0x470550C5: mov eax, dword ptr [esi + 8] */
   5625     /* test eax, eax */ /* 0x470550C8: test eax, eax */
   5626     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5627     _cf = 0;
   5628     _flag_k = FK_TEST;
   5629     if (TEST_NZ(_flag_a, _flag_b)) goto L_4705513A; /* 0x470550CA: jne 0x4705513a */
   5630 L_470550CC:
   5631     eax = MEM32(esi + 0xC); /* 0x470550CC: mov eax, dword ptr [esi + 0xc] */
   5632     /* cmp eax, MEM32(0x4710E9A8) */ /* 0x470550CF: cmp eax, dword ptr [0x4710e9a8] */
   5633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(0x4710E9A8));
   5634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5635     _flag_k = FK_CMP;
   5636     if (CMP_NE(_flag_a, _flag_b)) goto L_4705513A; /* 0x470550D5: jne 0x4705513a */
   5637 L_470550D7:
   5638     ecx = MEM32(esi + 0x10); /* 0x470550D7: mov ecx, dword ptr [esi + 0x10] */
   5639     /* cmp ecx, MEM32(0x4710E9AC) */ /* 0x470550DA: cmp ecx, dword ptr [0x4710e9ac] */
   5640     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x4710E9AC));
   5641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5642     _flag_k = FK_CMP;
   5643     if (CMP_NE(_flag_a, _flag_b)) goto L_4705513A; /* 0x470550E0: jne 0x4705513a */
   5644 L_470550E2:
   5645     eax = MEM32(esi); /* 0x470550E2: mov eax, dword ptr [esi] */
   5646     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5647     eax = eax - 1; /* 0x470550E4: dec eax */
   5648     _flag_k = FK_DEC;
   5649     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5650     _cf = (eax) != 0;
   5651     eax = (uint32_t)(-(int32_t)eax); /* 0x470550E5: neg eax */
   5652     _flag_k = FK_CMP;
   5653     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x470550E7: sbb eax, eax */
   5654       eax = _sc ? 0xFFFFFFFFu : 0;
   5655       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5656       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5657     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFF20u);
   5658     eax = eax & 0xFFFFFF20u; /* 0x470550E9: and eax, 0xffffff20 */
   5659     _cf = 0;
   5660     _flag_k = FK_TEST;
   5661     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x100u);
   5662     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5663     eax = eax + 0x100u; /* 0x470550EE: add eax, 0x100 */
   5664     _flag_k = FK_ADD;
   5665     PUSH32(esp, eax); /* 0x470550F3: push eax */
   5666     RECOMP_ICALL(MEM32(0x470AC0F4)); /* 0x470550F4: call dword ptr [0x470ac0f4] */
   5667     RECOMP_FLAGS_IN();
   5668     PUSH32(esp, eax); /* 0x470550FA: push eax */
   5669     RECOMP_ICALL(MEM32(0x470AC0B4)); /* 0x470550FB: call dword ptr [0x470ac0b4] */
   5670     RECOMP_FLAGS_IN();
   5671     /* test eax, eax */ /* 0x47055101: test eax, eax */
   5672     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5673     _cf = 0;
   5674     _flag_k = FK_TEST;
   5675     if (TEST_Z(_flag_a, _flag_b)) goto L_47055146; /* 0x47055103: je 0x47055146 */
   5676 L_47055105:
   5677     esi = MEM32(esi + 0x4); /* 0x47055105: mov esi, dword ptr [esi + 4] */
   5678     RECOMP_ICALL(MEM32(0x470AC188)); /* 0x47055108: call dword ptr [0x470ac188] */
   5679     RECOMP_FLAGS_IN();
   5680     PUSH32(esp, esi); /* 0x4705510E: push esi */
   5681     PUSH32(esp, eax); /* 0x4705510F: push eax */
   5682     RECOMP_ICALL(MEM32(0x470AC134)); /* 0x47055110: call dword ptr [0x470ac134] */
   5683     RECOMP_FLAGS_IN();
   5684     esi = eax; /* 0x47055116: mov esi, eax */
   5685     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   5686     _cf = (esi) != 0;
   5687     esi = (uint32_t)(-(int32_t)esi); /* 0x47055118: neg esi */
   5688     _flag_k = FK_CMP;
   5689     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x4705511A: sbb esi, esi */
   5690       esi = _sc ? 0xFFFFFFFFu : 0;
   5691       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5692       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5693     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   5694     _cf = (esi) != 0;
   5695     esi = (uint32_t)(-(int32_t)esi); /* 0x4705511C: neg esi */
   5696     _flag_k = FK_CMP;
   5697     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   5698     esi = esi - 1; /* 0x4705511E: dec esi */
   5699     _flag_k = FK_DEC;
   5700     /* cmp esi, 0xFFFFFFFFu */ /* 0x4705511F: cmp esi, -1 */
   5701     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5703     _flag_k = FK_CMP;
   5704     if (CMP_NE(_flag_a, _flag_b)) goto L_47055136; /* 0x47055122: jne 0x47055136 */
   5705 L_47055124:
   5706     PUSH32(esp, edi); /* 0x47055124: push edi */
   5707     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47055125: call dword ptr [0x470ac3c8] */
   5708     RECOMP_FLAGS_IN();
   5709     edi = eax; /* 0x4705512B: mov edi, eax */
   5710     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705512D: call dword ptr [0x470ac150] */
   5711     RECOMP_FLAGS_IN();
   5712     MEM32(edi) = eax; /* 0x47055133: mov dword ptr [edi], eax */
   5713     edi = POP32_VAL(esp); /* 0x47055135: pop edi */
   5714 L_47055136:
   5715     eax = esi; /* 0x47055136: mov eax, esi */
   5716     esi = POP32_VAL(esp); /* 0x47055138: pop esi */
   5717     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055139: ret  */
   5718 L_4705513A:
   5719     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705513A: call dword ptr [0x470ac3c8] */
   5720     RECOMP_FLAGS_IN();
   5721     MEM32(eax) = 0x16u; /* 0x47055140: mov dword ptr [eax], 0x16 */
   5722 L_47055146:
   5723     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5724     eax = eax | 0xFFFFFFFFu; /* 0x47055146: or eax, 0xffffffff */
   5725     _cf = 0;
   5726     _flag_k = FK_TEST;
   5727     esi = POP32_VAL(esp); /* 0x47055149: pop esi */
   5728     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705514A: ret  */
   5729     RECOMP_REGS_OUT();
   5730 }
   5731 
   5732 void sub_47055150(void) {
   5733     int _fpu_cmp = 0;
   5734     uint32_t _cf = 0;
   5735     int _df = 1;
   5736     uint32_t _flag_k = FK_NONE;
   5737     uint32_t _flag_a = 0, _flag_b = 0;
   5738     uint32_t _itail_tgt = 0;
   5739     RECOMP_REGS_LOCALS
   5740     RECOMP_ENTER(0x47055150u);
   5741 
   5742 L_47055150:
   5743     eax = ecx; /* 0x47055150: mov eax, ecx */
   5744     ecx = MEM32(0x4710E904); /* 0x47055152: mov ecx, dword ptr [0x4710e904] */
   5745     MEM32(eax) = ecx; /* 0x47055158: mov dword ptr [eax], ecx */
   5746     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5747     ecx = 0; /* 0x4705515A: xor ecx, ecx */
   5748     _cf = 0;
   5749     _flag_k = FK_TEST;
   5750     MEM32(eax + 0x4) = ecx; /* 0x4705515C: mov dword ptr [eax + 4], ecx */
   5751     MEM32(eax + 0x8) = ecx; /* 0x4705515F: mov dword ptr [eax + 8], ecx */
   5752     MEM32(eax + 0xC) = 0xFFFFFFFFu; /* 0x47055162: mov dword ptr [eax + 0xc], 0xffffffff */
   5753     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055169: ret  */
   5754     RECOMP_REGS_OUT();
   5755 }
   5756 
   5757 void sub_47055170(void) {
   5758     int _fpu_cmp = 0;
   5759     uint32_t _cf = 0;
   5760     int _df = 1;
   5761     uint32_t _flag_k = FK_NONE;
   5762     uint32_t _flag_a = 0, _flag_b = 0;
   5763     uint32_t _itail_tgt = 0;
   5764     RECOMP_REGS_LOCALS
   5765     RECOMP_ENTER(0x47055170u);
   5766 
   5767 L_47055170:
   5768     PUSH32(esp, esi); /* 0x47055170: push esi */
   5769     esi = ecx; /* 0x47055171: mov esi, ecx */
   5770     ecx = MEM32(esp + 0x8); /* 0x47055173: mov ecx, dword ptr [esp + 8] */
   5771     eax = ecx; /* 0x47055177: mov eax, ecx */
   5772     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Fu);
   5773     ecx = ecx & 0x1Fu; /* 0x47055179: and ecx, 0x1f */
   5774     _cf = 0;
   5775     _flag_k = FK_TEST;
   5776     edx = 1; /* 0x4705517C: mov edx, 1 */
   5777     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x47055181: shl edx, cl */
   5778     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5779     edx = edx << ((LO8(ecx)) & 31); /* 0x47055181: shl edx, cl */
   5780     if (5u) _cf = (((eax) >> 4) & 1u); /* 0x47055183: shr eax, 5 */
   5781     if (5u) { _flag_a = recomp_flags_pack((eax >> 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5782     eax = eax >> 5u; /* 0x47055183: shr eax, 5 */
   5783     ecx = MEM32(esi + eax * 4); /* 0x47055186: mov ecx, dword ptr [esi + eax*4] */
   5784     /* test edx, ecx */ /* 0x47055189: test edx, ecx */
   5785     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   5786     _cf = 0;
   5787     _flag_k = FK_TEST;
   5788     if (TEST_Z(_flag_a, _flag_b)) goto L_47055196; /* 0x4705518B: je 0x47055196 */
   5789 L_4705518D:
   5790     eax = 1; /* 0x4705518D: mov eax, 1 */
   5791     esi = POP32_VAL(esp); /* 0x47055192: pop esi */
   5792     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47055193: ret 4 */
   5793 L_47055196:
   5794     _flag_a = (uint32_t)((ecx | edx)); _flag_b = (uint32_t)((ecx | edx));
   5795     ecx = ecx | edx; /* 0x47055196: or ecx, edx */
   5796     _cf = 0;
   5797     _flag_k = FK_TEST;
   5798     MEM32(esi + eax * 4) = ecx; /* 0x47055198: mov dword ptr [esi + eax*4], ecx */
   5799     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5800     eax = 0; /* 0x4705519B: xor eax, eax */
   5801     _cf = 0;
   5802     _flag_k = FK_TEST;
   5803     esi = POP32_VAL(esp); /* 0x4705519D: pop esi */
   5804     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705519E: ret 4 */
   5805     RECOMP_REGS_OUT();
   5806 }
   5807 
   5808 void sub_470551B0(void) {
   5809     int _fpu_cmp = 0;
   5810     uint32_t _cf = 0;
   5811     int _df = 1;
   5812     uint32_t _flag_k = FK_NONE;
   5813     uint32_t _flag_a = 0, _flag_b = 0;
   5814     uint32_t _itail_tgt = 0;
   5815     RECOMP_REGS_LOCALS
   5816     RECOMP_ENTER(0x470551B0u);
   5817 
   5818 L_470551B0:
   5819     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x410u);
   5820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5821     esp = esp - 0x410u; /* 0x470551B0: sub esp, 0x410 */
   5822     _flag_k = FK_CMP;
   5823     PUSH32(esp, ebx); /* 0x470551B6: push ebx */
   5824     PUSH32(esp, ebp); /* 0x470551B7: push ebp */
   5825     ebp = ecx; /* 0x470551B8: mov ebp, ecx */
   5826     PUSH32(esp, esi); /* 0x470551BA: push esi */
   5827     PUSH32(esp, edi); /* 0x470551BB: push edi */
   5828     MEM32(esp + 0x1C) = ebp; /* 0x470551BC: mov dword ptr [esp + 0x1c], ebp */
   5829     eax = esp + 0x28; /* 0x470551C0: lea eax, [esp + 0x28] */
   5830     ecx = 0x40u; /* 0x470551C4: mov ecx, 0x40 */
   5831 L_470551C9:
   5832     edx = MEM32(0x4710E904); /* 0x470551C9: mov edx, dword ptr [0x4710e904] */
   5833     MEM32(eax + (-0x8)) = edx; /* 0x470551CF: mov dword ptr [eax - 8], edx */
   5834     MEM32(eax + (-0x4)) = 0; /* 0x470551D2: mov dword ptr [eax - 4], 0 */
   5835     MEM32(eax) = 0; /* 0x470551D9: mov dword ptr [eax], 0 */
   5836     MEM32(eax + 0x4) = 0xFFFFFFFFu; /* 0x470551DF: mov dword ptr [eax + 4], 0xffffffff */
   5837     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   5838     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5839     eax = eax + 0x10u; /* 0x470551E6: add eax, 0x10 */
   5840     _flag_k = FK_ADD;
   5841     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5842     ecx = ecx - 1; /* 0x470551E9: dec ecx */
   5843     _flag_k = FK_DEC;
   5844     RECOMP_BACKEDGE();
   5845     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_470551C9; /* 0x470551EA: jne 0x470551c9 */
   5846 L_470551EC:
   5847     esi = MEM32(0x4710E9C4); /* 0x470551EC: mov esi, dword ptr [0x4710e9c4] */
   5848     PUSH32(esp, esi); /* 0x470551F2: push esi */
   5849     MEM32(esp + 0x18) = 0; /* 0x470551F3: mov dword ptr [esp + 0x18], 0 */
   5850     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470551FB: call dword ptr [0x470ac180] */
   5851     RECOMP_FLAGS_IN();
   5852     PUSH32(esp, esi); /* 0x47055201: push esi */
   5853     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47055202: call dword ptr [0x470ac190] */
   5854     RECOMP_FLAGS_IN();
   5855     eax = esp + 0x24; /* 0x47055208: lea eax, [esp + 0x24] */
   5856     ebx = ebp + 0xC; /* 0x4705520C: lea ebx, [ebp + 0xc] */
   5857     MEM32(esp + 0x18) = eax; /* 0x4705520F: mov dword ptr [esp + 0x18], eax */
   5858     MEM32(esp + 0x10) = 0x40u; /* 0x47055213: mov dword ptr [esp + 0x10], 0x40 */
   5859     goto L_47055221; /* 0x4705521B: jmp 0x47055221 */
   5860 L_4705521D:
   5861     ebp = MEM32(esp + 0x1C); /* 0x4705521D: mov ebp, dword ptr [esp + 0x1c] */
   5862 L_47055221:
   5863     edi = MEM32(ebx + (-0xC)); /* 0x47055221: mov edi, dword ptr [ebx - 0xc] */
   5864     /* cmp edi, MEM32(0x4710E904) */ /* 0x47055224: cmp edi, dword ptr [0x4710e904] */
   5865     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(0x4710E904));
   5866     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5867     _flag_k = FK_CMP;
   5868     if (CMP_EQ(_flag_a, _flag_b)) goto L_470552BD; /* 0x4705522A: je 0x470552bd */
   5869 L_47055230:
   5870     /* cmp MEM32(ebx), 0xFFFFFFFFu */ /* 0x47055230: cmp dword ptr [ebx], -1 */
   5871     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5873     _flag_k = FK_CMP;
   5874     if (CMP_EQ(_flag_a, _flag_b)) goto L_470552BD; /* 0x47055233: je 0x470552bd */
   5875 L_47055239:
   5876     ecx = ebp; /* 0x47055239: mov ecx, ebp */
   5877     RECOMP_ICALL(0x47055690u); /* 0x4705523B: call 0x47055690 */ /* not lifted */
   5878     RECOMP_FLAGS_IN();
   5879     esi = edi; /* 0x47055240: mov esi, edi */
   5880     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Fu);
   5881     edi = edi & 0x1Fu; /* 0x47055242: and edi, 0x1f */
   5882     _cf = 0;
   5883     _flag_k = FK_TEST;
   5884     ecx = edi; /* 0x47055245: mov ecx, edi */
   5885     edx = 1; /* 0x47055247: mov edx, 1 */
   5886     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x4705524C: shl edx, cl */
   5887     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5888     edx = edx << ((LO8(ecx)) & 31); /* 0x4705524C: shl edx, cl */
   5889     if (5u) _cf = (((esi) >> 4) & 1u); /* 0x4705524E: shr esi, 5 */
   5890     if (5u) { _flag_a = recomp_flags_pack((esi >> 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5891     esi = esi >> 5u; /* 0x4705524E: shr esi, 5 */
   5892     ecx = MEM32(eax + esi * 4); /* 0x47055251: mov ecx, dword ptr [eax + esi*4] */
   5893     /* test edx, ecx */ /* 0x47055254: test edx, ecx */
   5894     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   5895     _cf = 0;
   5896     _flag_k = FK_TEST;
   5897     if (TEST_Z(_flag_a, _flag_b)) goto L_47055261; /* 0x47055256: je 0x47055261 */
   5898 L_47055258:
   5899     edx = ~edx; /* 0x47055258: not edx */
   5900     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   5901     edx = edx & ecx; /* 0x4705525A: and edx, ecx */
   5902     _cf = 0;
   5903     _flag_k = FK_TEST;
   5904     MEM32(eax + esi * 4) = edx; /* 0x4705525C: mov dword ptr [eax + esi*4], edx */
   5905     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(1);
   5906     MEM32(ebx) = MEM32(ebx) - 1; /* 0x4705525F: dec dword ptr [ebx] */
   5907     _flag_k = FK_DEC;
   5908 L_47055261:
   5909     eax = MEM32(ebx + (-0x8)); /* 0x47055261: mov eax, dword ptr [ebx - 8] */
   5910     /* test eax, eax */ /* 0x47055264: test eax, eax */
   5911     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5912     _cf = 0;
   5913     _flag_k = FK_TEST;
   5914     if (TEST_Z(_flag_a, _flag_b)) goto L_470552BD; /* 0x47055266: je 0x470552bd */
   5915 L_47055268:
   5916     ebp = MEM32(ebx + (-0xC)); /* 0x47055268: mov ebp, dword ptr [ebx - 0xc] */
   5917     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705526B: call dword ptr [0x470ac3c8] */
   5918     RECOMP_FLAGS_IN();
   5919     esi = eax; /* 0x47055271: mov esi, eax */
   5920     edi = MEM32(esi); /* 0x47055273: mov edi, dword ptr [esi] */
   5921     PUSH32(esp, ebp); /* 0x47055275: push ebp */
   5922     RECOMP_ICALL(MEM32(0x470AC138)); /* 0x47055276: call dword ptr [0x470ac138] */
   5923     RECOMP_FLAGS_IN();
   5924     ebp = eax; /* 0x4705527C: mov ebp, eax */
   5925     /* test ebp, ebp */ /* 0x4705527E: test ebp, ebp */
   5926     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   5927     _cf = 0;
   5928     _flag_k = FK_TEST;
   5929     if (TEST_NZ(_flag_a, _flag_b)) goto L_47055292; /* 0x47055280: jne 0x47055292 */
   5930 L_47055282:
   5931     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47055282: call dword ptr [0x470ac150] */
   5932     RECOMP_FLAGS_IN();
   5933     edi = eax; /* 0x47055288: mov edi, eax */
   5934     /* test edi, edi */ /* 0x4705528A: test edi, edi */
   5935     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5936     _cf = 0;
   5937     _flag_k = FK_TEST;
   5938     if (TEST_Z(_flag_a, _flag_b)) goto L_47055292; /* 0x4705528C: je 0x47055292 */
   5939 L_4705528E:
   5940     MEM32(esi) = edi; /* 0x4705528E: mov dword ptr [esi], edi */
   5941     goto L_470552BD; /* 0x47055290: jmp 0x470552bd */
   5942 L_47055292:
   5943     /* test ebp, ebp */ /* 0x47055292: test ebp, ebp */
   5944     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   5945     _cf = 0;
   5946     _flag_k = FK_TEST;
   5947     MEM32(esi) = edi; /* 0x47055294: mov dword ptr [esi], edi */
   5948     if (TEST_Z(_flag_a, _flag_b)) goto L_470552BD; /* 0x47055296: je 0x470552bd */
   5949 L_47055298:
   5950     eax = MEM32(esp + 0x18); /* 0x47055298: mov eax, dword ptr [esp + 0x18] */
   5951     ecx = MEM32(ebx + (-0xC)); /* 0x4705529C: mov ecx, dword ptr [ebx - 0xc] */
   5952     edx = MEM32(ebx + (-0x8)); /* 0x4705529F: mov edx, dword ptr [ebx - 8] */
   5953     MEM32(eax + (-0x4)) = ecx; /* 0x470552A2: mov dword ptr [eax - 4], ecx */
   5954     ecx = MEM32(ebx + (-0x4)); /* 0x470552A5: mov ecx, dword ptr [ebx - 4] */
   5955     MEM32(eax) = edx; /* 0x470552A8: mov dword ptr [eax], edx */
   5956     edx = MEM32(esp + 0x14); /* 0x470552AA: mov edx, dword ptr [esp + 0x14] */
   5957     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5958     edx = edx + 1; /* 0x470552AE: inc edx */
   5959     _flag_k = FK_INC;
   5960     MEM32(eax + 0x4) = ecx; /* 0x470552AF: mov dword ptr [eax + 4], ecx */
   5961     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   5962     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5963     eax = eax + 0x10u; /* 0x470552B2: add eax, 0x10 */
   5964     _flag_k = FK_ADD;
   5965     MEM32(esp + 0x14) = edx; /* 0x470552B5: mov dword ptr [esp + 0x14], edx */
   5966     MEM32(esp + 0x18) = eax; /* 0x470552B9: mov dword ptr [esp + 0x18], eax */
   5967 L_470552BD:
   5968     eax = MEM32(esp + 0x10); /* 0x470552BD: mov eax, dword ptr [esp + 0x10] */
   5969     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u);
   5970     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5971     ebx = ebx + 0x10u; /* 0x470552C1: add ebx, 0x10 */
   5972     _flag_k = FK_ADD;
   5973     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5974     eax = eax - 1; /* 0x470552C4: dec eax */
   5975     _flag_k = FK_DEC;
   5976     MEM32(esp + 0x10) = eax; /* 0x470552C5: mov dword ptr [esp + 0x10], eax */
   5977     RECOMP_BACKEDGE();
   5978     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4705521D; /* 0x470552C9: jne 0x4705521d */
   5979 L_470552CF:
   5980     edx = MEM32(esp + 0x14); /* 0x470552CF: mov edx, dword ptr [esp + 0x14] */
   5981     eax = edx + (-0x1); /* 0x470552D3: lea eax, [edx - 1] */
   5982     /* test eax, eax */ /* 0x470552D6: test eax, eax */
   5983     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5984     _cf = 0;
   5985     _flag_k = FK_TEST;
   5986     if (TEST_S(_flag_a, _flag_b)) goto L_4705532D; /* 0x470552D8: jl 0x4705532d */
   5987 L_470552DA:
   5988     ecx = eax; /* 0x470552DA: mov ecx, eax */
   5989     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x470552DC: shl ecx, 4 */
   5990     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5991     ecx = ecx << 4u; /* 0x470552DC: shl ecx, 4 */
   5992     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5993     eax = eax + 1; /* 0x470552DF: inc eax */
   5994     _flag_k = FK_INC;
   5995     ebp = esp + ecx + 0x24; /* 0x470552E0: lea ebp, [esp + ecx + 0x24] */
   5996     MEM32(esp + 0x10) = eax; /* 0x470552E4: mov dword ptr [esp + 0x10], eax */
   5997 L_470552E8:
   5998     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470552E8: call dword ptr [0x470ac3c8] */
   5999     RECOMP_FLAGS_IN();
   6000     edx = MEM32(ebp + (-0x4)); /* 0x470552EE: mov edx, dword ptr [ebp - 4] */
   6001     edi = eax; /* 0x470552F1: mov edi, eax */
   6002     esi = MEM32(edi); /* 0x470552F3: mov esi, dword ptr [edi] */
   6003     PUSH32(esp, edx); /* 0x470552F5: push edx */
   6004     RECOMP_ICALL(MEM32(0x470AC138)); /* 0x470552F6: call dword ptr [0x470ac138] */
   6005     RECOMP_FLAGS_IN();
   6006     ebx = eax; /* 0x470552FC: mov ebx, eax */
   6007     /* test ebx, ebx */ /* 0x470552FE: test ebx, ebx */
   6008     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6009     _cf = 0;
   6010     _flag_k = FK_TEST;
   6011     if (TEST_NZ(_flag_a, _flag_b)) goto L_47055312; /* 0x47055300: jne 0x47055312 */
   6012 L_47055302:
   6013     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47055302: call dword ptr [0x470ac150] */
   6014     RECOMP_FLAGS_IN();
   6015     esi = eax; /* 0x47055308: mov esi, eax */
   6016     /* test esi, esi */ /* 0x4705530A: test esi, esi */
   6017     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6018     _cf = 0;
   6019     _flag_k = FK_TEST;
   6020     if (TEST_Z(_flag_a, _flag_b)) goto L_47055312; /* 0x4705530C: je 0x47055312 */
   6021 L_4705530E:
   6022     MEM32(edi) = esi; /* 0x4705530E: mov dword ptr [edi], esi */
   6023     goto L_4705531F; /* 0x47055310: jmp 0x4705531f */
   6024 L_47055312:
   6025     /* test ebx, ebx */ /* 0x47055312: test ebx, ebx */
   6026     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6027     _cf = 0;
   6028     _flag_k = FK_TEST;
   6029     MEM32(edi) = esi; /* 0x47055314: mov dword ptr [edi], esi */
   6030     if (TEST_Z(_flag_a, _flag_b)) goto L_4705531F; /* 0x47055316: je 0x4705531f */
   6031 L_47055318:
   6032     PUSH32(esp, ebx); /* 0x47055318: push ebx */
   6033     RECOMP_ICALL(MEM32(ebp)); /* 0x47055319: call dword ptr [ebp] */
   6034     RECOMP_FLAGS_IN();
   6035     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6036     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6037     esp = esp + 4; /* 0x4705531C: add esp, 4 */
   6038     _flag_k = FK_ADD;
   6039 L_4705531F:
   6040     eax = MEM32(esp + 0x10); /* 0x4705531F: mov eax, dword ptr [esp + 0x10] */
   6041     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0x10u);
   6042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6043     ebp = ebp - 0x10u; /* 0x47055323: sub ebp, 0x10 */
   6044     _flag_k = FK_CMP;
   6045     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6046     eax = eax - 1; /* 0x47055326: dec eax */
   6047     _flag_k = FK_DEC;
   6048     MEM32(esp + 0x10) = eax; /* 0x47055327: mov dword ptr [esp + 0x10], eax */
   6049     RECOMP_BACKEDGE();
   6050     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_470552E8; /* 0x4705532B: jne 0x470552e8 */
   6051 L_4705532D:
   6052     esi = MEM32(0x4710E9C4); /* 0x4705532D: mov esi, dword ptr [0x4710e9c4] */
   6053     PUSH32(esp, esi); /* 0x47055333: push esi */
   6054     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47055334: call dword ptr [0x470ac180] */
   6055     RECOMP_FLAGS_IN();
   6056     PUSH32(esp, esi); /* 0x4705533A: push esi */
   6057     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4705533B: call dword ptr [0x470ac190] */
   6058     RECOMP_FLAGS_IN();
   6059     edi = POP32_VAL(esp); /* 0x47055341: pop edi */
   6060     esi = POP32_VAL(esp); /* 0x47055342: pop esi */
   6061     ebp = POP32_VAL(esp); /* 0x47055343: pop ebp */
   6062     ebx = POP32_VAL(esp); /* 0x47055344: pop ebx */
   6063     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x410u);
   6064     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6065     esp = esp + 0x410u; /* 0x47055345: add esp, 0x410 */
   6066     _flag_k = FK_ADD;
   6067     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4705534B: ret 4 */
   6068     RECOMP_REGS_OUT();
   6069 }
   6070 
   6071 void sub_47055350(void) {
   6072     int _fpu_cmp = 0;
   6073     uint32_t _cf = 0;
   6074     int _df = 1;
   6075     uint32_t _flag_k = FK_NONE;
   6076     uint32_t _flag_a = 0, _flag_b = 0;
   6077     uint32_t _itail_tgt = 0;
   6078     RECOMP_REGS_LOCALS
   6079     RECOMP_ENTER(0x47055350u);
   6080 
   6081 L_47055350:
   6082     eax = MEM32(esp + 0x4); /* 0x47055350: mov eax, dword ptr [esp + 4] */
   6083     PUSH32(esp, eax); /* 0x47055354: push eax */
   6084     RECOMP_ICALL(0x470A32A2u); /* 0x47055355: call 0x470a32a2 */ /* not lifted */
   6085     RECOMP_FLAGS_IN();
   6086     ecx = POP32_VAL(esp); /* 0x4705535A: pop ecx */
   6087     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705535B: ret  */
   6088     RECOMP_REGS_OUT();
   6089 }
   6090 
   6091 void sub_47055360(void) {
   6092     int _fpu_cmp = 0;
   6093     uint32_t _cf = 0;
   6094     int _df = 1;
   6095     uint32_t _flag_k = FK_NONE;
   6096     uint32_t _flag_a = 0, _flag_b = 0;
   6097     uint32_t _itail_tgt = 0;
   6098     RECOMP_REGS_LOCALS
   6099     RECOMP_ENTER(0x47055360u);
   6100 
   6101 L_47055360:
   6102     eax = ecx; /* 0x47055360: mov eax, ecx */
   6103     PUSH32(esp, esi); /* 0x47055362: push esi */
   6104     edx = eax + 0x8; /* 0x47055363: lea edx, [eax + 8] */
   6105     esi = 0x40u; /* 0x47055366: mov esi, 0x40 */
   6106 L_4705536B:
   6107     ecx = MEM32(0x4710E904); /* 0x4705536B: mov ecx, dword ptr [0x4710e904] */
   6108     MEM32(edx + (-0x8)) = ecx; /* 0x47055371: mov dword ptr [edx - 8], ecx */
   6109     MEM32(edx + (-0x4)) = 0; /* 0x47055374: mov dword ptr [edx - 4], 0 */
   6110     MEM32(edx) = 0; /* 0x4705537B: mov dword ptr [edx], 0 */
   6111     MEM32(edx + 0x4) = 0xFFFFFFFFu; /* 0x47055381: mov dword ptr [edx + 4], 0xffffffff */
   6112     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   6113     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6114     edx = edx + 0x10u; /* 0x47055388: add edx, 0x10 */
   6115     _flag_k = FK_ADD;
   6116     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   6117     esi = esi - 1; /* 0x4705538B: dec esi */
   6118     _flag_k = FK_DEC;
   6119     RECOMP_BACKEDGE();
   6120     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4705536B; /* 0x4705538C: jne 0x4705536b */
   6121 L_4705538E:
   6122     edx = MEM32(0x4710E904); /* 0x4705538E: mov edx, dword ptr [0x4710e904] */
   6123     MEM32(eax + 0x400) = edx; /* 0x47055394: mov dword ptr [eax + 0x400], edx */
   6124     esi = POP32_VAL(esp); /* 0x4705539A: pop esi */
   6125     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705539B: ret  */
   6126     RECOMP_REGS_OUT();
   6127 }
   6128 
   6129 void sub_470553A0(void) {
   6130     int _fpu_cmp = 0;
   6131     uint32_t _cf = 0;
   6132     int _df = 1;
   6133     uint32_t _flag_k = FK_NONE;
   6134     uint32_t _flag_a = 0, _flag_b = 0;
   6135     uint32_t _itail_tgt = 0;
   6136     RECOMP_REGS_LOCALS
   6137     RECOMP_ENTER(0x470553A0u);
   6138 
   6139 L_470553A0:
   6140     eax = MEM32(0x4710E9B8); /* 0x470553A0: mov eax, dword ptr [0x4710e9b8] */
   6141     /* test eax, eax */ /* 0x470553A5: test eax, eax */
   6142     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6143     _cf = 0;
   6144     _flag_k = FK_TEST;
   6145     PUSH32(esp, esi); /* 0x470553A7: push esi */
   6146     if (TEST_NZ(_flag_a, _flag_b)) goto L_4705542F; /* 0x470553A8: jne 0x4705542f */
   6147 L_470553AE:
   6148     esi = MEM32(0x4710E9C4); /* 0x470553AE: mov esi, dword ptr [0x4710e9c4] */
   6149     PUSH32(esp, esi); /* 0x470553B4: push esi */
   6150     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470553B5: call dword ptr [0x470ac180] */
   6151     RECOMP_FLAGS_IN();
   6152     PUSH32(esp, esi); /* 0x470553BB: push esi */
   6153     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470553BC: call dword ptr [0x470ac190] */
   6154     RECOMP_FLAGS_IN();
   6155     eax = MEM32(0x4710E9B8); /* 0x470553C2: mov eax, dword ptr [0x4710e9b8] */
   6156     /* test eax, eax */ /* 0x470553C7: test eax, eax */
   6157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6158     _cf = 0;
   6159     _flag_k = FK_TEST;
   6160     if (TEST_NZ(_flag_a, _flag_b)) goto L_4705542F; /* 0x470553C9: jne 0x4705542f */
   6161 L_470553CB:
   6162     PUSH32(esp, 0x404u); /* 0x470553CB: push 0x404 */
   6163     RECOMP_ICALL(0x470A33F2u); /* 0x470553D0: call 0x470a33f2 */ /* not lifted */
   6164     RECOMP_FLAGS_IN();
   6165     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6166     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6167     esp = esp + 4; /* 0x470553D5: add esp, 4 */
   6168     _flag_k = FK_ADD;
   6169     /* test eax, eax */ /* 0x470553D8: test eax, eax */
   6170     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6171     _cf = 0;
   6172     _flag_k = FK_TEST;
   6173     if (TEST_Z(_flag_a, _flag_b)) goto L_47055416; /* 0x470553DA: je 0x47055416 */
   6174 L_470553DC:
   6175     PUSH32(esp, ebx); /* 0x470553DC: push ebx */
   6176     ecx = eax + 0x8; /* 0x470553DD: lea ecx, [eax + 8] */
   6177     edx = 0x40u; /* 0x470553E0: mov edx, 0x40 */
   6178     _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu));
   6179     esi = esi | 0xFFFFFFFFu; /* 0x470553E5: or esi, 0xffffffff */
   6180     _cf = 0;
   6181     _flag_k = FK_TEST;
   6182 L_470553E8:
   6183     ebx = MEM32(0x4710E904); /* 0x470553E8: mov ebx, dword ptr [0x4710e904] */
   6184     MEM32(ecx + (-0x8)) = ebx; /* 0x470553EE: mov dword ptr [ecx - 8], ebx */
   6185     MEM32(ecx + (-0x4)) = 0; /* 0x470553F1: mov dword ptr [ecx - 4], 0 */
   6186     MEM32(ecx) = 0; /* 0x470553F8: mov dword ptr [ecx], 0 */
   6187     MEM32(ecx + 0x4) = esi; /* 0x470553FE: mov dword ptr [ecx + 4], esi */
   6188     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   6189     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6190     ecx = ecx + 0x10u; /* 0x47055401: add ecx, 0x10 */
   6191     _flag_k = FK_ADD;
   6192     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6193     edx = edx - 1; /* 0x47055404: dec edx */
   6194     _flag_k = FK_DEC;
   6195     RECOMP_BACKEDGE();
   6196     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_470553E8; /* 0x47055405: jne 0x470553e8 */
   6197 L_47055407:
   6198     ecx = MEM32(0x4710E904); /* 0x47055407: mov ecx, dword ptr [0x4710e904] */
   6199     MEM32(eax + 0x400) = ecx; /* 0x4705540D: mov dword ptr [eax + 0x400], ecx */
   6200     ebx = POP32_VAL(esp); /* 0x47055413: pop ebx */
   6201     goto L_47055418; /* 0x47055414: jmp 0x47055418 */
   6202 L_47055416:
   6203     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6204     eax = 0; /* 0x47055416: xor eax, eax */
   6205     _cf = 0;
   6206     _flag_k = FK_TEST;
   6207 L_47055418:
   6208     /* test eax, eax */ /* 0x47055418: test eax, eax */
   6209     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6210     _cf = 0;
   6211     _flag_k = FK_TEST;
   6212     MEM32(0x4710E9B8) = eax; /* 0x4705541A: mov dword ptr [0x4710e9b8], eax */
   6213     if (TEST_NZ(_flag_a, _flag_b)) goto L_4705542F; /* 0x4705541F: jne 0x4705542f */
   6214 L_47055421:
   6215     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47055421: call dword ptr [0x470ac3c8] */
   6216     RECOMP_FLAGS_IN();
   6217     MEM32(eax) = 0xCu; /* 0x47055427: mov dword ptr [eax], 0xc */
   6218     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6219     eax = 0; /* 0x4705542D: xor eax, eax */
   6220     _cf = 0;
   6221     _flag_k = FK_TEST;
   6222 L_4705542F:
   6223     esi = POP32_VAL(esp); /* 0x4705542F: pop esi */
   6224     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055430: ret  */
   6225     RECOMP_REGS_OUT();
   6226 }
   6227 
   6228 void sub_47055440(void) {
   6229     int _fpu_cmp = 0;
   6230     uint32_t _cf = 0;
   6231     int _df = 1;
   6232     uint32_t _flag_k = FK_NONE;
   6233     uint32_t _flag_a = 0, _flag_b = 0;
   6234     uint32_t _itail_tgt = 0;
   6235     RECOMP_REGS_LOCALS
   6236     RECOMP_ENTER(0x47055440u);
   6237 
   6238 L_47055440:
   6239     PUSH32(esp, esi); /* 0x47055440: push esi */
   6240     esi = MEM32(0x4710E9C4); /* 0x47055441: mov esi, dword ptr [0x4710e9c4] */
   6241     PUSH32(esp, edi); /* 0x47055447: push edi */
   6242     PUSH32(esp, esi); /* 0x47055448: push esi */
   6243     edi = ecx; /* 0x47055449: mov edi, ecx */
   6244     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x4705544B: call dword ptr [0x470ac180] */
   6245     RECOMP_FLAGS_IN();
   6246     PUSH32(esp, esi); /* 0x47055451: push esi */
   6247     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47055452: call dword ptr [0x470ac190] */
   6248     RECOMP_FLAGS_IN();
   6249     eax = MEM32(esp + 0xC); /* 0x47055458: mov eax, dword ptr [esp + 0xc] */
   6250     /* cmp eax, 0x40u */ /* 0x4705545C: cmp eax, 0x40 */
   6251     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x40u);
   6252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6253     _flag_k = FK_CMP;
   6254     if (CMP_AE(_flag_a, _flag_b)) goto L_47055487; /* 0x4705545F: jae 0x47055487 */
   6255 L_47055461:
   6256     ecx = MEM32(esp + 0x10); /* 0x47055461: mov ecx, dword ptr [esp + 0x10] */
   6257     edx = MEM32(esp + 0x14); /* 0x47055465: mov edx, dword ptr [esp + 0x14] */
   6258     PUSH32(esp, ebx); /* 0x47055469: push ebx */
   6259     ebx = eax; /* 0x4705546A: mov ebx, eax */
   6260     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x4705546C: shl ebx, 4 */
   6261     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6262     ebx = ebx << 4u; /* 0x4705546C: shl ebx, 4 */
   6263     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   6264     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6265     ebx = ebx + edi; /* 0x4705546F: add ebx, edi */
   6266     _flag_k = FK_ADD;
   6267     MEM32(ebx) = eax; /* 0x47055471: mov dword ptr [ebx], eax */
   6268     MEM32(ebx + 0x4) = ecx; /* 0x47055473: mov dword ptr [ebx + 4], ecx */
   6269     _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu));
   6270     esi = esi | 0xFFFFFFFFu; /* 0x47055476: or esi, 0xffffffff */
   6271     _cf = 0;
   6272     _flag_k = FK_TEST;
   6273     MEM32(ebx + 0x8) = edx; /* 0x47055479: mov dword ptr [ebx + 8], edx */
   6274     MEM32(ebx + 0xC) = esi; /* 0x4705547C: mov dword ptr [ebx + 0xc], esi */
   6275     ebx = POP32_VAL(esp); /* 0x4705547F: pop ebx */
   6276     edi = POP32_VAL(esp); /* 0x47055480: pop edi */
   6277     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6278     eax = 0; /* 0x47055481: xor eax, eax */
   6279     _cf = 0;
   6280     _flag_k = FK_TEST;
   6281     esi = POP32_VAL(esp); /* 0x47055483: pop esi */
   6282     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47055484: ret 0xc */
   6283 L_47055487:
   6284     edi = POP32_VAL(esp); /* 0x47055487: pop edi */
   6285     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6286     eax = eax | 0xFFFFFFFFu; /* 0x47055488: or eax, 0xffffffff */
   6287     _cf = 0;
   6288     _flag_k = FK_TEST;
   6289     esi = POP32_VAL(esp); /* 0x4705548B: pop esi */
   6290     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4705548C: ret 0xc */
   6291     RECOMP_REGS_OUT();
   6292 }
   6293 
   6294 void sub_47055490(void) {
   6295     int _fpu_cmp = 0;
   6296     uint32_t _cf = 0;
   6297     int _df = 1;
   6298     uint32_t _flag_k = FK_NONE;
   6299     uint32_t _flag_a = 0, _flag_b = 0;
   6300     uint32_t _itail_tgt = 0;
   6301     RECOMP_REGS_LOCALS
   6302     RECOMP_ENTER(0x47055490u);
   6303 
   6304 L_47055490:
   6305     PUSH32(esp, ebx); /* 0x47055490: push ebx */
   6306     PUSH32(esp, esi); /* 0x47055491: push esi */
   6307     esi = MEM32(0x4710E9C4); /* 0x47055492: mov esi, dword ptr [0x4710e9c4] */
   6308     PUSH32(esp, edi); /* 0x47055498: push edi */
   6309     PUSH32(esp, esi); /* 0x47055499: push esi */
   6310     edi = ecx; /* 0x4705549A: mov edi, ecx */
   6311     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x4705549C: call dword ptr [0x470ac180] */
   6312     RECOMP_FLAGS_IN();
   6313     PUSH32(esp, esi); /* 0x470554A2: push esi */
   6314     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470554A3: call dword ptr [0x470ac190] */
   6315     RECOMP_FLAGS_IN();
   6316     ebx = MEM32(esp + 0x10); /* 0x470554A9: mov ebx, dword ptr [esp + 0x10] */
   6317     /* cmp ebx, 0x40u */ /* 0x470554AD: cmp ebx, 0x40 */
   6318     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x40u);
   6319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6320     _flag_k = FK_CMP;
   6321     if (CMP_AE(_flag_a, _flag_b)) goto L_47055513; /* 0x470554B0: jae 0x47055513 */
   6322 L_470554B2:
   6323     eax = MEM32(0x4710E9BC); /* 0x470554B2: mov eax, dword ptr [0x4710e9bc] */
   6324     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x470554B7: shl ebx, 4 */
   6325     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6326     ebx = ebx << 4u; /* 0x470554B7: shl ebx, 4 */
   6327     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   6328     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6329     ebx = ebx + edi; /* 0x470554BA: add ebx, edi */
   6330     _flag_k = FK_ADD;
   6331     /* test eax, eax */ /* 0x470554BC: test eax, eax */
   6332     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6333     _cf = 0;
   6334     _flag_k = FK_TEST;
   6335     if (TEST_Z(_flag_a, _flag_b)) goto L_470554FC; /* 0x470554BE: je 0x470554fc */
   6336 L_470554C0:
   6337     edx = MEM32(eax + 0x4); /* 0x470554C0: mov edx, dword ptr [eax + 4] */
   6338     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6339     ecx = 0; /* 0x470554C3: xor ecx, ecx */
   6340     _cf = 0;
   6341     _flag_k = FK_TEST;
   6342     /* cmp edx, 2 */ /* 0x470554C5: cmp edx, 2 */
   6343     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2);
   6344     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6345     _flag_k = FK_CMP;
   6346     SET_LO8(ecx, (CMP_G(_flag_a, _flag_b)) ? 1 : 0); /* 0x470554C8: setg cl */
   6347     eax = ecx; /* 0x470554CB: mov eax, ecx */
   6348     /* test eax, eax */ /* 0x470554CD: test eax, eax */
   6349     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6350     _cf = 0;
   6351     _flag_k = FK_TEST;
   6352     if (TEST_NZ(_flag_a, _flag_b)) goto L_470554FC; /* 0x470554CF: jne 0x470554fc */
   6353 L_470554D1:
   6354     esi = MEM32(ebx); /* 0x470554D1: mov esi, dword ptr [ebx] */
   6355     ecx = edi; /* 0x470554D3: mov ecx, edi */
   6356     RECOMP_ICALL(0x47055690u); /* 0x470554D5: call 0x47055690 */ /* not lifted */
   6357     RECOMP_FLAGS_IN();
   6358     edi = esi; /* 0x470554DA: mov edi, esi */
   6359     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1Fu);
   6360     esi = esi & 0x1Fu; /* 0x470554DC: and esi, 0x1f */
   6361     _cf = 0;
   6362     _flag_k = FK_TEST;
   6363     ecx = esi; /* 0x470554DF: mov ecx, esi */
   6364     edx = 1; /* 0x470554E1: mov edx, 1 */
   6365     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x470554E6: shl edx, cl */
   6366     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6367     edx = edx << ((LO8(ecx)) & 31); /* 0x470554E6: shl edx, cl */
   6368     if (5u) _cf = (((edi) >> 4) & 1u); /* 0x470554E8: shr edi, 5 */
   6369     if (5u) { _flag_a = recomp_flags_pack((edi >> 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6370     edi = edi >> 5u; /* 0x470554E8: shr edi, 5 */
   6371     ecx = MEM32(eax + edi * 4); /* 0x470554EB: mov ecx, dword ptr [eax + edi*4] */
   6372     /* test edx, ecx */ /* 0x470554EE: test edx, ecx */
   6373     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6374     _cf = 0;
   6375     _flag_k = FK_TEST;
   6376     if (TEST_Z(_flag_a, _flag_b)) goto L_470554FC; /* 0x470554F0: je 0x470554fc */
   6377 L_470554F2:
   6378     edx = ~edx; /* 0x470554F2: not edx */
   6379     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6380     edx = edx & ecx; /* 0x470554F4: and edx, ecx */
   6381     _cf = 0;
   6382     _flag_k = FK_TEST;
   6383     MEM32(eax + edi * 4) = edx; /* 0x470554F6: mov dword ptr [eax + edi*4], edx */
   6384     _flag_a = (uint32_t)(MEM32(ebx + 0xC)); _flag_b = (uint32_t)(1);
   6385     MEM32(ebx + 0xC) = MEM32(ebx + 0xC) - 1; /* 0x470554F9: dec dword ptr [ebx + 0xc] */
   6386     _flag_k = FK_DEC;
   6387 L_470554FC:
   6388     edx = MEM32(0x4710E904); /* 0x470554FC: mov edx, dword ptr [0x4710e904] */
   6389     edi = POP32_VAL(esp); /* 0x47055502: pop edi */
   6390     esi = POP32_VAL(esp); /* 0x47055503: pop esi */
   6391     MEM32(ebx) = edx; /* 0x47055504: mov dword ptr [ebx], edx */
   6392     MEM32(ebx + 0x4) = 0; /* 0x47055506: mov dword ptr [ebx + 4], 0 */
   6393     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6394     eax = 0; /* 0x4705550D: xor eax, eax */
   6395     _cf = 0;
   6396     _flag_k = FK_TEST;
   6397     ebx = POP32_VAL(esp); /* 0x4705550F: pop ebx */
   6398     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47055510: ret 4 */
   6399 L_47055513:
   6400     edi = POP32_VAL(esp); /* 0x47055513: pop edi */
   6401     esi = POP32_VAL(esp); /* 0x47055514: pop esi */
   6402     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6403     eax = eax | 0xFFFFFFFFu; /* 0x47055515: or eax, 0xffffffff */
   6404     _cf = 0;
   6405     _flag_k = FK_TEST;
   6406     ebx = POP32_VAL(esp); /* 0x47055518: pop ebx */
   6407     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47055519: ret 4 */
   6408     RECOMP_REGS_OUT();
   6409 }
   6410 
   6411 void sub_47055520(void) {
   6412     int _fpu_cmp = 0;
   6413     uint32_t _cf = 0;
   6414     int _df = 1;
   6415     uint32_t _flag_k = FK_NONE;
   6416     uint32_t _flag_a = 0, _flag_b = 0;
   6417     uint32_t _itail_tgt = 0;
   6418     RECOMP_REGS_LOCALS
   6419     RECOMP_ENTER(0x47055520u);
   6420 
   6421 L_47055520:
   6422     PUSH32(esp, ebx); /* 0x47055520: push ebx */
   6423     PUSH32(esp, esi); /* 0x47055521: push esi */
   6424     esi = MEM32(0x4710E9C4); /* 0x47055522: mov esi, dword ptr [0x4710e9c4] */
   6425     PUSH32(esp, edi); /* 0x47055528: push edi */
   6426     edi = MEM32(0x470AC180); /* 0x47055529: mov edi, dword ptr [0x470ac180] */
   6427     PUSH32(esp, esi); /* 0x4705552F: push esi */
   6428     ebx = ecx; /* 0x47055530: mov ebx, ecx */
   6429     RECOMP_ICALL(edi); /* 0x47055532: call edi */
   6430     RECOMP_FLAGS_IN();
   6431     PUSH32(esp, esi); /* 0x47055534: push esi */
   6432     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47055535: call dword ptr [0x470ac190] */
   6433     RECOMP_FLAGS_IN();
   6434     edx = MEM32(esp + 0x10); /* 0x4705553B: mov edx, dword ptr [esp + 0x10] */
   6435     eax = ebx; /* 0x4705553F: mov eax, ebx */
   6436     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6437     ecx = 0; /* 0x47055541: xor ecx, ecx */
   6438     _cf = 0;
   6439     _flag_k = FK_TEST;
   6440 L_47055543:
   6441     /* cmp MEM32(eax + 0x8), edx */ /* 0x47055543: cmp dword ptr [eax + 8], edx */
   6442     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(edx);
   6443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6444     _flag_k = FK_CMP;
   6445     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705555A; /* 0x47055546: je 0x4705555a */
   6446 L_47055548:
   6447     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   6448     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6449     eax = eax + 0x10u; /* 0x47055548: add eax, 0x10 */
   6450     _flag_k = FK_ADD;
   6451     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6452     ecx = ecx + 1; /* 0x4705554B: inc ecx */
   6453     _flag_k = FK_INC;
   6454     /* cmp ecx, 0x40u */ /* 0x4705554C: cmp ecx, 0x40 */
   6455     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u);
   6456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6457     _flag_k = FK_CMP;
   6458     RECOMP_BACKEDGE();
   6459     if (CMP_B(_flag_a, _flag_b)) goto L_47055543; /* 0x4705554F: jb 0x47055543 */
   6460 L_47055551:
   6461     edi = POP32_VAL(esp); /* 0x47055551: pop edi */
   6462     esi = POP32_VAL(esp); /* 0x47055552: pop esi */
   6463     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6464     eax = eax | 0xFFFFFFFFu; /* 0x47055553: or eax, 0xffffffff */
   6465     _cf = 0;
   6466     _flag_k = FK_TEST;
   6467     ebx = POP32_VAL(esp); /* 0x47055556: pop ebx */
   6468     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47055557: ret 4 */
   6469 L_4705555A:
   6470     ecx = MEM32(eax + 0xC); /* 0x4705555A: mov ecx, dword ptr [eax + 0xc] */
   6471     /* test ecx, ecx */ /* 0x4705555D: test ecx, ecx */
   6472     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6473     _cf = 0;
   6474     _flag_k = FK_TEST;
   6475     MEM32(eax + 0x8) = 0; /* 0x4705555F: mov dword ptr [eax + 8], 0 */
   6476     if (TEST_NZ(_flag_a, _flag_b)) goto L_4705560B; /* 0x47055566: jne 0x4705560b */
   6477 L_4705556C:
   6478     MEM32(eax + 0xC) = 0xFFFFFFFFu; /* 0x4705556C: mov dword ptr [eax + 0xc], 0xffffffff */
   6479     esi = MEM32(0x4710E9C4); /* 0x47055573: mov esi, dword ptr [0x4710e9c4] */
   6480     PUSH32(esp, ebp); /* 0x47055579: push ebp */
   6481     ebp = MEM32(eax); /* 0x4705557A: mov ebp, dword ptr [eax] */
   6482     PUSH32(esp, esi); /* 0x4705557C: push esi */
   6483     RECOMP_ICALL(edi); /* 0x4705557D: call edi */
   6484     RECOMP_FLAGS_IN();
   6485     PUSH32(esp, esi); /* 0x4705557F: push esi */
   6486     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47055580: call dword ptr [0x470ac190] */
   6487     RECOMP_FLAGS_IN();
   6488     /* cmp ebp, 0x40u */ /* 0x47055586: cmp ebp, 0x40 */
   6489     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0x40u);
   6490     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6491     _flag_k = FK_CMP;
   6492     if (CMP_AE(_flag_a, _flag_b)) goto L_470555F8; /* 0x47055589: jae 0x470555f8 */
   6493 L_4705558B:
   6494     eax = MEM32(0x4710E9BC); /* 0x4705558B: mov eax, dword ptr [0x4710e9bc] */
   6495     esi = ebp; /* 0x47055590: mov esi, ebp */
   6496     if (4u) _cf = (((esi) >> 28) & 1u); /* 0x47055592: shl esi, 4 */
   6497     if (4u) { _flag_a = recomp_flags_pack((esi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6498     esi = esi << 4u; /* 0x47055592: shl esi, 4 */
   6499     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6501     esi = esi + ebx; /* 0x47055595: add esi, ebx */
   6502     _flag_k = FK_ADD;
   6503     /* test eax, eax */ /* 0x47055597: test eax, eax */
   6504     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6505     _cf = 0;
   6506     _flag_k = FK_TEST;
   6507     if (TEST_Z(_flag_a, _flag_b)) goto L_470555D7; /* 0x47055599: je 0x470555d7 */
   6508 L_4705559B:
   6509     edx = MEM32(eax + 0x4); /* 0x4705559B: mov edx, dword ptr [eax + 4] */
   6510     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6511     ecx = 0; /* 0x4705559E: xor ecx, ecx */
   6512     _cf = 0;
   6513     _flag_k = FK_TEST;
   6514     /* cmp edx, 2 */ /* 0x470555A0: cmp edx, 2 */
   6515     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2);
   6516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6517     _flag_k = FK_CMP;
   6518     SET_LO8(ecx, (CMP_G(_flag_a, _flag_b)) ? 1 : 0); /* 0x470555A3: setg cl */
   6519     eax = ecx; /* 0x470555A6: mov eax, ecx */
   6520     /* test eax, eax */ /* 0x470555A8: test eax, eax */
   6521     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6522     _cf = 0;
   6523     _flag_k = FK_TEST;
   6524     if (TEST_NZ(_flag_a, _flag_b)) goto L_470555D7; /* 0x470555AA: jne 0x470555d7 */
   6525 L_470555AC:
   6526     edi = MEM32(esi); /* 0x470555AC: mov edi, dword ptr [esi] */
   6527     ecx = ebx; /* 0x470555AE: mov ecx, ebx */
   6528     RECOMP_ICALL(0x47055690u); /* 0x470555B0: call 0x47055690 */ /* not lifted */
   6529     RECOMP_FLAGS_IN();
   6530     ebx = edi; /* 0x470555B5: mov ebx, edi */
   6531     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Fu);
   6532     edi = edi & 0x1Fu; /* 0x470555B7: and edi, 0x1f */
   6533     _cf = 0;
   6534     _flag_k = FK_TEST;
   6535     ecx = edi; /* 0x470555BA: mov ecx, edi */
   6536     edx = 1; /* 0x470555BC: mov edx, 1 */
   6537     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x470555C1: shl edx, cl */
   6538     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6539     edx = edx << ((LO8(ecx)) & 31); /* 0x470555C1: shl edx, cl */
   6540     if (5u) _cf = (((ebx) >> 4) & 1u); /* 0x470555C3: shr ebx, 5 */
   6541     if (5u) { _flag_a = recomp_flags_pack((ebx >> 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6542     ebx = ebx >> 5u; /* 0x470555C3: shr ebx, 5 */
   6543     ecx = MEM32(eax + ebx * 4); /* 0x470555C6: mov ecx, dword ptr [eax + ebx*4] */
   6544     /* test edx, ecx */ /* 0x470555C9: test edx, ecx */
   6545     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6546     _cf = 0;
   6547     _flag_k = FK_TEST;
   6548     if (TEST_Z(_flag_a, _flag_b)) goto L_470555D7; /* 0x470555CB: je 0x470555d7 */
   6549 L_470555CD:
   6550     edx = ~edx; /* 0x470555CD: not edx */
   6551     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6552     edx = edx & ecx; /* 0x470555CF: and edx, ecx */
   6553     _cf = 0;
   6554     _flag_k = FK_TEST;
   6555     MEM32(eax + ebx * 4) = edx; /* 0x470555D1: mov dword ptr [eax + ebx*4], edx */
   6556     _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(1);
   6557     MEM32(esi + 0xC) = MEM32(esi + 0xC) - 1; /* 0x470555D4: dec dword ptr [esi + 0xc] */
   6558     _flag_k = FK_DEC;
   6559 L_470555D7:
   6560     edx = MEM32(0x4710E904); /* 0x470555D7: mov edx, dword ptr [0x4710e904] */
   6561     MEM32(esi) = edx; /* 0x470555DD: mov dword ptr [esi], edx */
   6562     MEM32(esi + 0x4) = 0; /* 0x470555DF: mov dword ptr [esi + 4], 0 */
   6563     PUSH32(esp, ebp); /* 0x470555E6: push ebp */
   6564     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6565     esi = 0; /* 0x470555E7: xor esi, esi */
   6566     _cf = 0;
   6567     _flag_k = FK_TEST;
   6568     RECOMP_ICALL(MEM32(0x470AC0B0)); /* 0x470555E9: call dword ptr [0x470ac0b0] */
   6569     RECOMP_FLAGS_IN();
   6570     ebp = POP32_VAL(esp); /* 0x470555EF: pop ebp */
   6571     edi = POP32_VAL(esp); /* 0x470555F0: pop edi */
   6572     eax = esi; /* 0x470555F1: mov eax, esi */
   6573     esi = POP32_VAL(esp); /* 0x470555F3: pop esi */
   6574     ebx = POP32_VAL(esp); /* 0x470555F4: pop ebx */
   6575     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470555F5: ret 4 */
   6576 L_470555F8:
   6577     PUSH32(esp, ebp); /* 0x470555F8: push ebp */
   6578     _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu));
   6579     esi = esi | 0xFFFFFFFFu; /* 0x470555F9: or esi, 0xffffffff */
   6580     _cf = 0;
   6581     _flag_k = FK_TEST;
   6582     RECOMP_ICALL(MEM32(0x470AC0B0)); /* 0x470555FC: call dword ptr [0x470ac0b0] */
   6583     RECOMP_FLAGS_IN();
   6584     ebp = POP32_VAL(esp); /* 0x47055602: pop ebp */
   6585     edi = POP32_VAL(esp); /* 0x47055603: pop edi */
   6586     eax = esi; /* 0x47055604: mov eax, esi */
   6587     esi = POP32_VAL(esp); /* 0x47055606: pop esi */
   6588     ebx = POP32_VAL(esp); /* 0x47055607: pop ebx */
   6589     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47055608: ret 4 */
   6590 L_4705560B:
   6591     edi = POP32_VAL(esp); /* 0x4705560B: pop edi */
   6592     esi = POP32_VAL(esp); /* 0x4705560C: pop esi */
   6593     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6594     eax = 0; /* 0x4705560D: xor eax, eax */
   6595     _cf = 0;
   6596     _flag_k = FK_TEST;
   6597     ebx = POP32_VAL(esp); /* 0x4705560F: pop ebx */
   6598     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47055610: ret 4 */
   6599     RECOMP_REGS_OUT();
   6600 }
   6601 
   6602 void sub_47055620(void) {
   6603     int _fpu_cmp = 0;
   6604     uint32_t _cf = 0;
   6605     int _df = 1;
   6606     uint32_t _flag_k = FK_NONE;
   6607     uint32_t _flag_a = 0, _flag_b = 0;
   6608     uint32_t _itail_tgt = 0;
   6609     RECOMP_REGS_LOCALS
   6610     RECOMP_ENTER(0x47055620u);
   6611 
   6612 L_47055620:
   6613     PUSH32(esp, ebx); /* 0x47055620: push ebx */
   6614     PUSH32(esp, esi); /* 0x47055621: push esi */
   6615     PUSH32(esp, edi); /* 0x47055622: push edi */
   6616     ebx = ecx; /* 0x47055623: mov ebx, ecx */
   6617     RECOMP_ICALL(0x47055690u); /* 0x47055625: call 0x47055690 */ /* not lifted */
   6618     RECOMP_FLAGS_IN();
   6619     esi = MEM32(esp + 0x10); /* 0x4705562A: mov esi, dword ptr [esp + 0x10] */
   6620     ecx = esi; /* 0x4705562E: mov ecx, esi */
   6621     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Fu);
   6622     ecx = ecx & 0x1Fu; /* 0x47055630: and ecx, 0x1f */
   6623     _cf = 0;
   6624     _flag_k = FK_TEST;
   6625     edi = 1; /* 0x47055633: mov edi, 1 */
   6626     edx = esi; /* 0x47055638: mov edx, esi */
   6627     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edi) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x4705563A: shl edi, cl */
   6628     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edi << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6629     edi = edi << ((LO8(ecx)) & 31); /* 0x4705563A: shl edi, cl */
   6630     if (5u) _cf = (((edx) >> 4) & 1u); /* 0x4705563C: shr edx, 5 */
   6631     if (5u) { _flag_a = recomp_flags_pack((edx >> 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6632     edx = edx >> 5u; /* 0x4705563C: shr edx, 5 */
   6633     ecx = MEM32(eax + edx * 4); /* 0x4705563F: mov ecx, dword ptr [eax + edx*4] */
   6634     /* test edi, ecx */ /* 0x47055642: test edi, ecx */
   6635     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   6636     _cf = 0;
   6637     _flag_k = FK_TEST;
   6638     if (TEST_NZ(_flag_a, _flag_b)) goto L_4705567E; /* 0x47055644: jne 0x4705567e */
   6639 L_47055646:
   6640     _flag_a = (uint32_t)((ecx | edi)); _flag_b = (uint32_t)((ecx | edi));
   6641     ecx = ecx | edi; /* 0x47055646: or ecx, edi */
   6642     _cf = 0;
   6643     _flag_k = FK_TEST;
   6644     MEM32(eax + edx * 4) = ecx; /* 0x47055648: mov dword ptr [eax + edx*4], ecx */
   6645     edi = MEM32(0x4710E9C4); /* 0x4705564B: mov edi, dword ptr [0x4710e9c4] */
   6646     PUSH32(esp, edi); /* 0x47055651: push edi */
   6647     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47055652: call dword ptr [0x470ac180] */
   6648     RECOMP_FLAGS_IN();
   6649     PUSH32(esp, edi); /* 0x47055658: push edi */
   6650     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47055659: call dword ptr [0x470ac190] */
   6651     RECOMP_FLAGS_IN();
   6652     if (4u) _cf = (((esi) >> 28) & 1u); /* 0x4705565F: shl esi, 4 */
   6653     if (4u) { _flag_a = recomp_flags_pack((esi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6654     esi = esi << 4u; /* 0x4705565F: shl esi, 4 */
   6655     eax = MEM32(esi + ebx + 0xC); /* 0x47055662: mov eax, dword ptr [esi + ebx + 0xc] */
   6656     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6658     esi = esi + ebx; /* 0x47055666: add esi, ebx */
   6659     _flag_k = FK_ADD;
   6660     /* cmp eax, 0xFFFFFFFFu */ /* 0x47055668: cmp eax, -1 */
   6661     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6663     _flag_k = FK_CMP;
   6664     if (CMP_NE(_flag_a, _flag_b)) goto L_4705567A; /* 0x4705566B: jne 0x4705567a */
   6665 L_4705566D:
   6666     edi = POP32_VAL(esp); /* 0x4705566D: pop edi */
   6667     MEM32(esi + 0xC) = 1; /* 0x4705566E: mov dword ptr [esi + 0xc], 1 */
   6668     esi = POP32_VAL(esp); /* 0x47055675: pop esi */
   6669     ebx = POP32_VAL(esp); /* 0x47055676: pop ebx */
   6670     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47055677: ret 4 */
   6671 L_4705567A:
   6672     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6673     eax = eax + 1; /* 0x4705567A: inc eax */
   6674     _flag_k = FK_INC;
   6675     MEM32(esi + 0xC) = eax; /* 0x4705567B: mov dword ptr [esi + 0xc], eax */
   6676 L_4705567E:
   6677     edi = POP32_VAL(esp); /* 0x4705567E: pop edi */
   6678     esi = POP32_VAL(esp); /* 0x4705567F: pop esi */
   6679     ebx = POP32_VAL(esp); /* 0x47055680: pop ebx */
   6680     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47055681: ret 4 */
   6681     RECOMP_REGS_OUT();
   6682 }
   6683 
   6684 void sub_47055690(void) {
   6685     int _fpu_cmp = 0;
   6686     uint32_t _cf = 0;
   6687     int _df = 1;
   6688     uint32_t _flag_k = FK_NONE;
   6689     uint32_t _flag_a = 0, _flag_b = 0;
   6690     uint32_t _itail_tgt = 0;
   6691     RECOMP_REGS_LOCALS
   6692     RECOMP_ENTER(0x47055690u);
   6693 
   6694 L_47055690:
   6695     eax = MEM32(FS_BASE + (0)); /* 0x47055690: mov eax, dword ptr fs:[0] */
   6696 L_47055696:
   6697     PUSH32(esp, 0xFFFFFFFFu); /* 0x47055696: push -1 */
   6698 L_47055698:
   6699     PUSH32(esp, 0x470A763Bu); /* 0x47055698: push 0x470a763b */
   6700 L_4705569D:
   6701     PUSH32(esp, eax); /* 0x4705569D: push eax */
   6702 L_4705569E:
   6703     MEM32(FS_BASE + (0)) = esp; /* 0x4705569E: mov dword ptr fs:[0], esp */
   6704 L_470556A5:
   6705     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6707     esp = esp - 0x10u; /* 0x470556A5: sub esp, 0x10 */
   6708     _flag_k = FK_CMP;
   6709 L_470556A8:
   6710     PUSH32(esp, ebx); /* 0x470556A8: push ebx */
   6711 L_470556A9:
   6712     PUSH32(esp, ebp); /* 0x470556A9: push ebp */
   6713 L_470556AA:
   6714     PUSH32(esp, esi); /* 0x470556AA: push esi */
   6715 L_470556AB:
   6716     esi = ecx; /* 0x470556AB: mov esi, ecx */
   6717 L_470556AD:
   6718     eax = MEM32(esi + 0x400); /* 0x470556AD: mov eax, dword ptr [esi + 0x400] */
   6719 L_470556B3:
   6720     /* cmp eax, MEM32(0x4710E904) */ /* 0x470556B3: cmp eax, dword ptr [0x4710e904] */
   6721     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(0x4710E904));
   6722     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6723     _flag_k = FK_CMP;
   6724 L_470556B9:
   6725     PUSH32(esp, edi); /* 0x470556B9: push edi */
   6726 L_470556BA:
   6727     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470557DB; /* 0x470556BA: jne 0x470557db */
   6728 L_470556C0:
   6729     edi = MEM32(0x4710E9C4); /* 0x470556C0: mov edi, dword ptr [0x4710e9c4] */
   6730 L_470556C6:
   6731     PUSH32(esp, edi); /* 0x470556C6: push edi */
   6732 L_470556C7:
   6733     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470556C7: call dword ptr [0x470ac180] */
   6734     RECOMP_FLAGS_IN();
   6735 L_470556CD:
   6736     PUSH32(esp, edi); /* 0x470556CD: push edi */
   6737 L_470556CE:
   6738     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470556CE: call dword ptr [0x470ac190] */
   6739     RECOMP_FLAGS_IN();
   6740 L_470556D4:
   6741     ecx = MEM32(esi + 0x400); /* 0x470556D4: mov ecx, dword ptr [esi + 0x400] */
   6742 L_470556DA:
   6743     /* cmp ecx, MEM32(0x4710E904) */ /* 0x470556DA: cmp ecx, dword ptr [0x4710e904] */
   6744     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x4710E904));
   6745     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6746     _flag_k = FK_CMP;
   6747 L_470556E0:
   6748     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470557DB; /* 0x470556E0: jne 0x470557db */
   6749 L_470556E6:
   6750     RECOMP_ICALL(MEM32(0x470AC0A8)); /* 0x470556E6: call dword ptr [0x470ac0a8] */
   6751     RECOMP_FLAGS_IN();
   6752 L_470556EC:
   6753     /* cmp eax, 0xFFFFFFFFu */ /* 0x470556EC: cmp eax, -1 */
   6754     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6756     _flag_k = FK_CMP;
   6757 L_470556EF:
   6758     MEM32(esi + 0x400) = eax; /* 0x470556EF: mov dword ptr [esi + 0x400], eax */
   6759 L_470556F5:
   6760     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4705578A; /* 0x470556F5: je 0x4705578a */
   6761 L_470556FB:
   6762     ecx = MEM32(0x4710E9B8); /* 0x470556FB: mov ecx, dword ptr [0x4710e9b8] */
   6763 L_47055701:
   6764     /* test ecx, ecx */ /* 0x47055701: test ecx, ecx */
   6765     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6766     _cf = 0;
   6767     _flag_k = FK_TEST;
   6768 L_47055703:
   6769     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4705575E; /* 0x47055703: jne 0x4705575e */
   6770 L_47055705:
   6771     edx = MEM32(0x4710E9C4); /* 0x47055705: mov edx, dword ptr [0x4710e9c4] */
   6772 L_4705570B:
   6773     PUSH32(esp, edx); /* 0x4705570B: push edx */
   6774 L_4705570C:
   6775     ecx = esp + 0x14; /* 0x4705570C: lea ecx, [esp + 0x14] */
   6776 L_47055710:
   6777     RECOMP_ICALL(0x470559F0u); /* 0x47055710: call 0x470559f0 */ /* not lifted */
   6778     RECOMP_FLAGS_IN();
   6779 L_47055715:
   6780     ecx = esp + 0x10; /* 0x47055715: lea ecx, [esp + 0x10] */
   6781 L_47055719:
   6782     RECOMP_ICALL(0x470559D0u); /* 0x47055719: call 0x470559d0 */ /* not lifted */
   6783     RECOMP_FLAGS_IN();
   6784 L_4705571E:
   6785     ecx = MEM32(0x4710E9B8); /* 0x4705571E: mov ecx, dword ptr [0x4710e9b8] */
   6786 L_47055724:
   6787     /* test ecx, ecx */ /* 0x47055724: test ecx, ecx */
   6788     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6789     _cf = 0;
   6790     _flag_k = FK_TEST;
   6791 L_47055726:
   6792     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4705575E; /* 0x47055726: jne 0x4705575e */
   6793 L_47055728:
   6794     PUSH32(esp, 0x404u); /* 0x47055728: push 0x404 */
   6795 L_4705572D:
   6796     RECOMP_ICALL(0x470A33F2u); /* 0x4705572D: call 0x470a33f2 */ /* not lifted */
   6797     RECOMP_FLAGS_IN();
   6798 L_47055732:
   6799     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6800     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6801     esp = esp + 4; /* 0x47055732: add esp, 4 */
   6802     _flag_k = FK_ADD;
   6803 L_47055735:
   6804     /* test eax, eax */ /* 0x47055735: test eax, eax */
   6805     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6806     _cf = 0;
   6807     _flag_k = FK_TEST;
   6808 L_47055737:
   6809     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47055742; /* 0x47055737: je 0x47055742 */
   6810 L_47055739:
   6811     ecx = eax; /* 0x47055739: mov ecx, eax */
   6812 L_4705573B:
   6813     RECOMP_ICALL(0x47055360u); /* 0x4705573B: call 0x47055360 */ /* not lifted */
   6814     RECOMP_FLAGS_IN();
   6815 L_47055740:
   6816     goto L_47055744; /* 0x47055740: jmp 0x47055744 */
   6817 L_47055742:
   6818     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6819     eax = 0; /* 0x47055742: xor eax, eax */
   6820     _cf = 0;
   6821     _flag_k = FK_TEST;
   6822 L_47055744:
   6823     /* test eax, eax */ /* 0x47055744: test eax, eax */
   6824     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6825     _cf = 0;
   6826     _flag_k = FK_TEST;
   6827 L_47055746:
   6828     ecx = eax; /* 0x47055746: mov ecx, eax */
   6829 L_47055748:
   6830     MEM32(0x4710E9B8) = ecx; /* 0x47055748: mov dword ptr [0x4710e9b8], ecx */
   6831 L_4705574E:
   6832     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4705575E; /* 0x4705574E: jne 0x4705575e */
   6833 L_47055750:
   6834     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47055750: call dword ptr [0x470ac3c8] */
   6835     RECOMP_FLAGS_IN();
   6836 L_47055756:
   6837     MEM32(eax) = 0xCu; /* 0x47055756: mov dword ptr [eax], 0xc */
   6838 L_4705575C:
   6839     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6840     ecx = 0; /* 0x4705575C: xor ecx, ecx */
   6841     _cf = 0;
   6842     _flag_k = FK_TEST;
   6843 L_4705575E:
   6844     eax = MEM32(esi + 0x400); /* 0x4705575E: mov eax, dword ptr [esi + 0x400] */
   6845 L_47055764:
   6846     PUSH32(esp, 0); /* 0x47055764: push 0 */
   6847 L_47055766:
   6848     PUSH32(esp, 0x47055350u); /* 0x47055766: push 0x47055350 */
   6849 L_4705576B:
   6850     PUSH32(esp, eax); /* 0x4705576B: push eax */
   6851 L_4705576C:
   6852     RECOMP_ICALL(0x47055440u); /* 0x4705576C: call 0x47055440 */ /* not lifted */
   6853     RECOMP_FLAGS_IN();
   6854 L_47055771:
   6855     /* test eax, eax */ /* 0x47055771: test eax, eax */
   6856     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6857     _cf = 0;
   6858     _flag_k = FK_TEST;
   6859 L_47055773:
   6860     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470557DB; /* 0x47055773: je 0x470557db */
   6861 L_47055775:
   6862     edi = POP32_VAL(esp); /* 0x47055775: pop edi */
   6863 L_47055776:
   6864     esi = POP32_VAL(esp); /* 0x47055776: pop esi */
   6865 L_47055777:
   6866     ebp = POP32_VAL(esp); /* 0x47055777: pop ebp */
   6867 L_47055778:
   6868     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6869     eax = 0; /* 0x47055778: xor eax, eax */
   6870     _cf = 0;
   6871     _flag_k = FK_TEST;
   6872 L_4705577A:
   6873     ebx = POP32_VAL(esp); /* 0x4705577A: pop ebx */
   6874 L_4705577B:
   6875     ecx = MEM32(esp + 0x10); /* 0x4705577B: mov ecx, dword ptr [esp + 0x10] */
   6876 L_4705577F:
   6877     MEM32(FS_BASE + (0)) = ecx; /* 0x4705577F: mov dword ptr fs:[0], ecx */
   6878 L_47055786:
   6879     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   6880     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6881     esp = esp + 0x1Cu; /* 0x47055786: add esp, 0x1c */
   6882     _flag_k = FK_ADD;
   6883 L_47055789:
   6884     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055789: ret  */
   6885 L_4705578A:
   6886     edi = MEM32(0x470AC3C8); /* 0x4705578A: mov edi, dword ptr [0x470ac3c8] */
   6887 L_47055790:
   6888     RECOMP_ICALL(edi); /* 0x47055790: call edi */
   6889     RECOMP_FLAGS_IN();
   6890 L_47055792:
   6891     esi = eax; /* 0x47055792: mov esi, eax */
   6892 L_47055794:
   6893     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47055794: call dword ptr [0x470ac150] */
   6894     RECOMP_FLAGS_IN();
   6895 L_4705579A:
   6896     MEM32(esi) = eax; /* 0x4705579A: mov dword ptr [esi], eax */
   6897 L_4705579C:
   6898     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu);
   6899     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6900     eax = eax + 0xFFFFFFFDu; /* 0x4705579C: add eax, -3 */
   6901     _flag_k = FK_ADD;
   6902 L_4705579F:
   6903     /* cmp eax, 0x4Du */ /* 0x4705579F: cmp eax, 0x4d */
   6904     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du);
   6905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6906     _flag_k = FK_CMP;
   6907 L_470557A2:
   6908     RECOMP_BACKEDGE();
   6909     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47055775; /* 0x470557A2: ja 0x47055775 */
   6910 L_470557A4:
   6911     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6912     ecx = 0; /* 0x470557A4: xor ecx, ecx */
   6913     _cf = 0;
   6914     _flag_k = FK_TEST;
   6915 L_470557A6:
   6916     SET_LO8(ecx, MEM8(eax + 0x47055980)); /* 0x470557A6: mov cl, byte ptr [eax + 0x47055980] */
   6917 L_470557AC:
   6918     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x4705596C)); goto _ljump; }
   6919 L_470557B3:
   6920     RECOMP_ICALL(edi); /* 0x470557B3: call edi */
   6921     RECOMP_FLAGS_IN();
   6922 L_470557B5:
   6923     MEM32(eax) = 0xCu; /* 0x470557B5: mov dword ptr [eax], 0xc */
   6924 L_470557BB:
   6925     RECOMP_BACKEDGE();
   6926     goto L_47055775; /* 0x470557BB: jmp 0x47055775 */
   6927 L_470557BD:
   6928     RECOMP_ICALL(edi); /* 0x470557BD: call edi */
   6929     RECOMP_FLAGS_IN();
   6930 L_470557BF:
   6931     MEM32(eax) = 0x11u; /* 0x470557BF: mov dword ptr [eax], 0x11 */
   6932 L_470557C5:
   6933     RECOMP_BACKEDGE();
   6934     goto L_47055775; /* 0x470557C5: jmp 0x47055775 */
   6935 L_470557C7:
   6936     RECOMP_ICALL(edi); /* 0x470557C7: call edi */
   6937     RECOMP_FLAGS_IN();
   6938 L_470557C9:
   6939     MEM32(eax) = 0xDu; /* 0x470557C9: mov dword ptr [eax], 0xd */
   6940 L_470557CF:
   6941     RECOMP_BACKEDGE();
   6942     goto L_47055775; /* 0x470557CF: jmp 0x47055775 */
   6943 L_470557D1:
   6944     RECOMP_ICALL(edi); /* 0x470557D1: call edi */
   6945     RECOMP_FLAGS_IN();
   6946 L_470557D3:
   6947     MEM32(eax) = 2; /* 0x470557D3: mov dword ptr [eax], 2 */
   6948 L_470557D9:
   6949     RECOMP_BACKEDGE();
   6950     goto L_47055775; /* 0x470557D9: jmp 0x47055775 */
   6951 L_470557DB:
   6952     ebp = MEM32(esi + 0x400); /* 0x470557DB: mov ebp, dword ptr [esi + 0x400] */
   6953 L_470557E1:
   6954     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470557E1: call dword ptr [0x470ac3c8] */
   6955     RECOMP_FLAGS_IN();
   6956 L_470557E7:
   6957     edi = eax; /* 0x470557E7: mov edi, eax */
   6958 L_470557E9:
   6959     ebx = MEM32(edi); /* 0x470557E9: mov ebx, dword ptr [edi] */
   6960 L_470557EB:
   6961     PUSH32(esp, ebp); /* 0x470557EB: push ebp */
   6962 L_470557EC:
   6963     RECOMP_ICALL(MEM32(0x470AC138)); /* 0x470557EC: call dword ptr [0x470ac138] */
   6964     RECOMP_FLAGS_IN();
   6965 L_470557F2:
   6966     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6967     ebp = 0; /* 0x470557F2: xor ebp, ebp */
   6968     _cf = 0;
   6969     _flag_k = FK_TEST;
   6970 L_470557F4:
   6971     /* cmp eax, ebp */ /* 0x470557F4: cmp eax, ebp */
   6972     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   6973     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6974     _flag_k = FK_CMP;
   6975 L_470557F6:
   6976     MEM32(esp + 0x10) = eax; /* 0x470557F6: mov dword ptr [esp + 0x10], eax */
   6977 L_470557FA:
   6978     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4705581F; /* 0x470557FA: jne 0x4705581f */
   6979 L_470557FC:
   6980     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470557FC: call dword ptr [0x470ac150] */
   6981     RECOMP_FLAGS_IN();
   6982 L_47055802:
   6983     ebx = eax; /* 0x47055802: mov ebx, eax */
   6984 L_47055804:
   6985     /* cmp ebx, ebp */ /* 0x47055804: cmp ebx, ebp */
   6986     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebp);
   6987     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6988     _flag_k = FK_CMP;
   6989 L_47055806:
   6990     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4705581F; /* 0x47055806: je 0x4705581f */
   6991 L_47055808:
   6992     MEM32(edi) = ebx; /* 0x47055808: mov dword ptr [edi], ebx */
   6993 L_4705580A:
   6994     edi = POP32_VAL(esp); /* 0x4705580A: pop edi */
   6995 L_4705580B:
   6996     esi = POP32_VAL(esp); /* 0x4705580B: pop esi */
   6997 L_4705580C:
   6998     ebp = POP32_VAL(esp); /* 0x4705580C: pop ebp */
   6999 L_4705580D:
   7000     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7001     eax = 0; /* 0x4705580D: xor eax, eax */
   7002     _cf = 0;
   7003     _flag_k = FK_TEST;
   7004 L_4705580F:
   7005     ebx = POP32_VAL(esp); /* 0x4705580F: pop ebx */
   7006 L_47055810:
   7007     ecx = MEM32(esp + 0x10); /* 0x47055810: mov ecx, dword ptr [esp + 0x10] */
   7008 L_47055814:
   7009     MEM32(FS_BASE + (0)) = ecx; /* 0x47055814: mov dword ptr fs:[0], ecx */
   7010 L_4705581B:
   7011     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   7012     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7013     esp = esp + 0x1Cu; /* 0x4705581B: add esp, 0x1c */
   7014     _flag_k = FK_ADD;
   7015 L_4705581E:
   7016     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705581E: ret  */
   7017 L_4705581F:
   7018     /* cmp MEM32(esp + 0x10), ebp */ /* 0x4705581F: cmp dword ptr [esp + 0x10], ebp */
   7019     _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(ebp);
   7020     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7021     _flag_k = FK_CMP;
   7022 L_47055823:
   7023     MEM32(edi) = ebx; /* 0x47055823: mov dword ptr [edi], ebx */
   7024 L_47055825:
   7025     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47055952; /* 0x47055825: jne 0x47055952 */
   7026 L_4705582B:
   7027     PUSH32(esp, 8); /* 0x4705582B: push 8 */
   7028 L_4705582D:
   7029     RECOMP_ICALL(0x470A33F2u); /* 0x4705582D: call 0x470a33f2 */ /* not lifted */
   7030     RECOMP_FLAGS_IN();
   7031 L_47055832:
   7032     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7033     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7034     esp = esp + 4; /* 0x47055832: add esp, 4 */
   7035     _flag_k = FK_ADD;
   7036 L_47055835:
   7037     /* cmp eax, ebp */ /* 0x47055835: cmp eax, ebp */
   7038     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   7039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7040     _flag_k = FK_CMP;
   7041 L_47055837:
   7042     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47055844; /* 0x47055837: je 0x47055844 */
   7043 L_47055839:
   7044     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7045     edx = 0; /* 0x47055839: xor edx, edx */
   7046     _cf = 0;
   7047     _flag_k = FK_TEST;
   7048 L_4705583B:
   7049     ecx = eax; /* 0x4705583B: mov ecx, eax */
   7050 L_4705583D:
   7051     MEM32(ecx) = edx; /* 0x4705583D: mov dword ptr [ecx], edx */
   7052 L_4705583F:
   7053     MEM32(ecx + 0x4) = edx; /* 0x4705583F: mov dword ptr [ecx + 4], edx */
   7054 L_47055842:
   7055     goto L_47055846; /* 0x47055842: jmp 0x47055846 */
   7056 L_47055844:
   7057     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7058     eax = 0; /* 0x47055844: xor eax, eax */
   7059     _cf = 0;
   7060     _flag_k = FK_TEST;
   7061 L_47055846:
   7062     /* cmp eax, ebp */ /* 0x47055846: cmp eax, ebp */
   7063     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   7064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7065     _flag_k = FK_CMP;
   7066 L_47055848:
   7067     MEM32(esp + 0x10) = eax; /* 0x47055848: mov dword ptr [esp + 0x10], eax */
   7068 L_4705584C:
   7069     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4705586F; /* 0x4705584C: jne 0x4705586f */
   7070 L_4705584E:
   7071     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705584E: call dword ptr [0x470ac3c8] */
   7072     RECOMP_FLAGS_IN();
   7073 L_47055854:
   7074     edi = POP32_VAL(esp); /* 0x47055854: pop edi */
   7075 L_47055855:
   7076     esi = POP32_VAL(esp); /* 0x47055855: pop esi */
   7077 L_47055856:
   7078     ebp = POP32_VAL(esp); /* 0x47055856: pop ebp */
   7079 L_47055857:
   7080     MEM32(eax) = 0xCu; /* 0x47055857: mov dword ptr [eax], 0xc */
   7081 L_4705585D:
   7082     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7083     eax = 0; /* 0x4705585D: xor eax, eax */
   7084     _cf = 0;
   7085     _flag_k = FK_TEST;
   7086 L_4705585F:
   7087     ebx = POP32_VAL(esp); /* 0x4705585F: pop ebx */
   7088 L_47055860:
   7089     ecx = MEM32(esp + 0x10); /* 0x47055860: mov ecx, dword ptr [esp + 0x10] */
   7090 L_47055864:
   7091     MEM32(FS_BASE + (0)) = ecx; /* 0x47055864: mov dword ptr fs:[0], ecx */
   7092 L_4705586B:
   7093     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   7094     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7095     esp = esp + 0x1Cu; /* 0x4705586B: add esp, 0x1c */
   7096     _flag_k = FK_ADD;
   7097 L_4705586E:
   7098     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705586E: ret  */
   7099 L_4705586F:
   7100     esi = MEM32(esi + 0x400); /* 0x4705586F: mov esi, dword ptr [esi + 0x400] */
   7101 L_47055875:
   7102     PUSH32(esp, eax); /* 0x47055875: push eax */
   7103 L_47055876:
   7104     PUSH32(esp, esi); /* 0x47055876: push esi */
   7105 L_47055877:
   7106     RECOMP_ICALL(MEM32(0x470AC0AC)); /* 0x47055877: call dword ptr [0x470ac0ac] */
   7107     RECOMP_FLAGS_IN();
   7108 L_4705587D:
   7109     edi = MEM32(0x4710E9B8); /* 0x4705587D: mov edi, dword ptr [0x4710e9b8] */
   7110 L_47055883:
   7111     /* cmp edi, ebp */ /* 0x47055883: cmp edi, ebp */
   7112     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   7113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7114     _flag_k = FK_CMP;
   7115 L_47055885:
   7116     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470558FF; /* 0x47055885: jne 0x470558ff */
   7117 L_47055887:
   7118     edi = MEM32(0x4710E9C4); /* 0x47055887: mov edi, dword ptr [0x4710e9c4] */
   7119 L_4705588D:
   7120     PUSH32(esp, edi); /* 0x4705588D: push edi */
   7121 L_4705588E:
   7122     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x4705588E: call dword ptr [0x470ac180] */
   7123     RECOMP_FLAGS_IN();
   7124 L_47055894:
   7125     PUSH32(esp, edi); /* 0x47055894: push edi */
   7126 L_47055895:
   7127     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47055895: call dword ptr [0x470ac190] */
   7128     RECOMP_FLAGS_IN();
   7129 L_4705589B:
   7130     edi = MEM32(0x4710E9B8); /* 0x4705589B: mov edi, dword ptr [0x4710e9b8] */
   7131 L_470558A1:
   7132     /* cmp edi, ebp */ /* 0x470558A1: cmp edi, ebp */
   7133     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   7134     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7135     _flag_k = FK_CMP;
   7136 L_470558A3:
   7137     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470558FF; /* 0x470558A3: jne 0x470558ff */
   7138 L_470558A5:
   7139     PUSH32(esp, 0x404u); /* 0x470558A5: push 0x404 */
   7140 L_470558AA:
   7141     RECOMP_ICALL(0x470A33F2u); /* 0x470558AA: call 0x470a33f2 */ /* not lifted */
   7142     RECOMP_FLAGS_IN();
   7143 L_470558AF:
   7144     edi = eax; /* 0x470558AF: mov edi, eax */
   7145 L_470558B1:
   7146     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7147     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7148     esp = esp + 4; /* 0x470558B1: add esp, 4 */
   7149     _flag_k = FK_ADD;
   7150 L_470558B4:
   7151     MEM32(esp + 0x18) = edi; /* 0x470558B4: mov dword ptr [esp + 0x18], edi */
   7152 L_470558B8:
   7153     /* cmp edi, ebp */ /* 0x470558B8: cmp edi, ebp */
   7154     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   7155     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7156     _flag_k = FK_CMP;
   7157 L_470558BA:
   7158     MEM32(esp + 0x28) = ebp; /* 0x470558BA: mov dword ptr [esp + 0x28], ebp */
   7159 L_470558BE:
   7160     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470558DD; /* 0x470558BE: je 0x470558dd */
   7161 L_470558C0:
   7162     PUSH32(esp, 0x47055150u); /* 0x470558C0: push 0x47055150 */
   7163 L_470558C5:
   7164     PUSH32(esp, 0x40u); /* 0x470558C5: push 0x40 */
   7165 L_470558C7:
   7166     PUSH32(esp, 0x10u); /* 0x470558C7: push 0x10 */
   7167 L_470558C9:
   7168     PUSH32(esp, edi); /* 0x470558C9: push edi */
   7169 L_470558CA:
   7170     RECOMP_ICALL(0x47029D40u); /* 0x470558CA: call 0x47029d40 */ /* not lifted */
   7171     RECOMP_FLAGS_IN();
   7172 L_470558CF:
   7173     edx = MEM32(0x4710E904); /* 0x470558CF: mov edx, dword ptr [0x4710e904] */
   7174 L_470558D5:
   7175     MEM32(edi + 0x400) = edx; /* 0x470558D5: mov dword ptr [edi + 0x400], edx */
   7176 L_470558DB:
   7177     goto L_470558DF; /* 0x470558DB: jmp 0x470558df */
   7178 L_470558DD:
   7179     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7180     edi = 0; /* 0x470558DD: xor edi, edi */
   7181     _cf = 0;
   7182     _flag_k = FK_TEST;
   7183 L_470558DF:
   7184     /* cmp edi, ebp */ /* 0x470558DF: cmp edi, ebp */
   7185     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   7186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7187     _flag_k = FK_CMP;
   7188 L_470558E1:
   7189     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x470558E1: mov dword ptr [esp + 0x28], 0xffffffff */
   7190 L_470558E9:
   7191     MEM32(0x4710E9B8) = edi; /* 0x470558E9: mov dword ptr [0x4710e9b8], edi */
   7192 L_470558EF:
   7193     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470558FF; /* 0x470558EF: jne 0x470558ff */
   7194 L_470558F1:
   7195     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470558F1: call dword ptr [0x470ac3c8] */
   7196     RECOMP_FLAGS_IN();
   7197 L_470558F7:
   7198     MEM32(eax) = 0xCu; /* 0x470558F7: mov dword ptr [eax], 0xc */
   7199 L_470558FD:
   7200     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7201     edi = 0; /* 0x470558FD: xor edi, edi */
   7202     _cf = 0;
   7203     _flag_k = FK_TEST;
   7204 L_470558FF:
   7205     PUSH32(esp, esi); /* 0x470558FF: push esi */
   7206 L_47055900:
   7207     ecx = edi; /* 0x47055900: mov ecx, edi */
   7208 L_47055902:
   7209     RECOMP_ICALL(0x47055690u); /* 0x47055902: call 0x47055690 */ /* not lifted */
   7210     RECOMP_FLAGS_IN();
   7211 L_47055907:
   7212     ecx = eax; /* 0x47055907: mov ecx, eax */
   7213 L_47055909:
   7214     RECOMP_ICALL(0x47055170u); /* 0x47055909: call 0x47055170 */ /* not lifted */
   7215     RECOMP_FLAGS_IN();
   7216 L_4705590E:
   7217     /* test eax, eax */ /* 0x4705590E: test eax, eax */
   7218     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7219     _cf = 0;
   7220     _flag_k = FK_TEST;
   7221 L_47055910:
   7222     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47055952; /* 0x47055910: jne 0x47055952 */
   7223 L_47055912:
   7224     eax = MEM32(0x4710E9C4); /* 0x47055912: mov eax, dword ptr [0x4710e9c4] */
   7225 L_47055917:
   7226     PUSH32(esp, eax); /* 0x47055917: push eax */
   7227 L_47055918:
   7228     MEM32(esp + 0x1C) = eax; /* 0x47055918: mov dword ptr [esp + 0x1c], eax */
   7229 L_4705591C:
   7230     MEM32(esp + 0x20) = 0xFFFFFFFFu; /* 0x4705591C: mov dword ptr [esp + 0x20], 0xffffffff */
   7231 L_47055924:
   7232     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47055924: call dword ptr [0x470ac180] */
   7233     RECOMP_FLAGS_IN();
   7234 L_4705592A:
   7235     ecx = esp + 0x18; /* 0x4705592A: lea ecx, [esp + 0x18] */
   7236 L_4705592E:
   7237     MEM32(esp + 0x1C) = ebp; /* 0x4705592E: mov dword ptr [esp + 0x1c], ebp */
   7238 L_47055932:
   7239     RECOMP_ICALL(0x470559D0u); /* 0x47055932: call 0x470559d0 */ /* not lifted */
   7240     RECOMP_FLAGS_IN();
   7241 L_47055937:
   7242     if (4u) _cf = (((esi) >> 28) & 1u); /* 0x47055937: shl esi, 4 */
   7243     if (4u) { _flag_a = recomp_flags_pack((esi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7244     esi = esi << 4u; /* 0x47055937: shl esi, 4 */
   7245 L_4705593A:
   7246     eax = MEM32(esi + edi + 0xC); /* 0x4705593A: mov eax, dword ptr [esi + edi + 0xc] */
   7247 L_4705593E:
   7248     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   7249     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7250     esi = esi + edi; /* 0x4705593E: add esi, edi */
   7251     _flag_k = FK_ADD;
   7252 L_47055940:
   7253     /* cmp eax, 0xFFFFFFFFu */ /* 0x47055940: cmp eax, -1 */
   7254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7256     _flag_k = FK_CMP;
   7257 L_47055943:
   7258     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4705594E; /* 0x47055943: jne 0x4705594e */
   7259 L_47055945:
   7260     MEM32(esi + 0xC) = 1; /* 0x47055945: mov dword ptr [esi + 0xc], 1 */
   7261 L_4705594C:
   7262     goto L_47055952; /* 0x4705594C: jmp 0x47055952 */
   7263 L_4705594E:
   7264     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7265     eax = eax + 1; /* 0x4705594E: inc eax */
   7266     _flag_k = FK_INC;
   7267 L_4705594F:
   7268     MEM32(esi + 0xC) = eax; /* 0x4705594F: mov dword ptr [esi + 0xc], eax */
   7269 L_47055952:
   7270     ecx = MEM32(esp + 0x20); /* 0x47055952: mov ecx, dword ptr [esp + 0x20] */
   7271 L_47055956:
   7272     eax = MEM32(esp + 0x10); /* 0x47055956: mov eax, dword ptr [esp + 0x10] */
   7273 L_4705595A:
   7274     edi = POP32_VAL(esp); /* 0x4705595A: pop edi */
   7275 L_4705595B:
   7276     esi = POP32_VAL(esp); /* 0x4705595B: pop esi */
   7277 L_4705595C:
   7278     ebp = POP32_VAL(esp); /* 0x4705595C: pop ebp */
   7279 L_4705595D:
   7280     ebx = POP32_VAL(esp); /* 0x4705595D: pop ebx */
   7281 L_4705595E:
   7282     MEM32(FS_BASE + (0)) = ecx; /* 0x4705595E: mov dword ptr fs:[0], ecx */
   7283 L_47055965:
   7284     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   7285     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7286     esp = esp + 0x1Cu; /* 0x47055965: add esp, 0x1c */
   7287     _flag_k = FK_ADD;
   7288 L_47055968:
   7289     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055968: ret  */
   7290   _ljump:
   7291     switch (_itail_tgt) {
   7292       case 0x47055690u: goto L_47055690;
   7293       case 0x47055696u: goto L_47055696;
   7294       case 0x47055698u: goto L_47055698;
   7295       case 0x4705569Du: goto L_4705569D;
   7296       case 0x4705569Eu: goto L_4705569E;
   7297       case 0x470556A5u: goto L_470556A5;
   7298       case 0x470556A8u: goto L_470556A8;
   7299       case 0x470556A9u: goto L_470556A9;
   7300       case 0x470556AAu: goto L_470556AA;
   7301       case 0x470556ABu: goto L_470556AB;
   7302       case 0x470556ADu: goto L_470556AD;
   7303       case 0x470556B3u: goto L_470556B3;
   7304       case 0x470556B9u: goto L_470556B9;
   7305       case 0x470556BAu: goto L_470556BA;
   7306       case 0x470556C0u: goto L_470556C0;
   7307       case 0x470556C6u: goto L_470556C6;
   7308       case 0x470556C7u: goto L_470556C7;
   7309       case 0x470556CDu: goto L_470556CD;
   7310       case 0x470556CEu: goto L_470556CE;
   7311       case 0x470556D4u: goto L_470556D4;
   7312       case 0x470556DAu: goto L_470556DA;
   7313       case 0x470556E0u: goto L_470556E0;
   7314       case 0x470556E6u: goto L_470556E6;
   7315       case 0x470556ECu: goto L_470556EC;
   7316       case 0x470556EFu: goto L_470556EF;
   7317       case 0x470556F5u: goto L_470556F5;
   7318       case 0x470556FBu: goto L_470556FB;
   7319       case 0x47055701u: goto L_47055701;
   7320       case 0x47055703u: goto L_47055703;
   7321       case 0x47055705u: goto L_47055705;
   7322       case 0x4705570Bu: goto L_4705570B;
   7323       case 0x4705570Cu: goto L_4705570C;
   7324       case 0x47055710u: goto L_47055710;
   7325       case 0x47055715u: goto L_47055715;
   7326       case 0x47055719u: goto L_47055719;
   7327       case 0x4705571Eu: goto L_4705571E;
   7328       case 0x47055724u: goto L_47055724;
   7329       case 0x47055726u: goto L_47055726;
   7330       case 0x47055728u: goto L_47055728;
   7331       case 0x4705572Du: goto L_4705572D;
   7332       case 0x47055732u: goto L_47055732;
   7333       case 0x47055735u: goto L_47055735;
   7334       case 0x47055737u: goto L_47055737;
   7335       case 0x47055739u: goto L_47055739;
   7336       case 0x4705573Bu: goto L_4705573B;
   7337       case 0x47055740u: goto L_47055740;
   7338       case 0x47055742u: goto L_47055742;
   7339       case 0x47055744u: goto L_47055744;
   7340       case 0x47055746u: goto L_47055746;
   7341       case 0x47055748u: goto L_47055748;
   7342       case 0x4705574Eu: goto L_4705574E;
   7343       case 0x47055750u: goto L_47055750;
   7344       case 0x47055756u: goto L_47055756;
   7345       case 0x4705575Cu: goto L_4705575C;
   7346       case 0x4705575Eu: goto L_4705575E;
   7347       case 0x47055764u: goto L_47055764;
   7348       case 0x47055766u: goto L_47055766;
   7349       case 0x4705576Bu: goto L_4705576B;
   7350       case 0x4705576Cu: goto L_4705576C;
   7351       case 0x47055771u: goto L_47055771;
   7352       case 0x47055773u: goto L_47055773;
   7353       case 0x47055775u: goto L_47055775;
   7354       case 0x47055776u: goto L_47055776;
   7355       case 0x47055777u: goto L_47055777;
   7356       case 0x47055778u: goto L_47055778;
   7357       case 0x4705577Au: goto L_4705577A;
   7358       case 0x4705577Bu: goto L_4705577B;
   7359       case 0x4705577Fu: goto L_4705577F;
   7360       case 0x47055786u: goto L_47055786;
   7361       case 0x47055789u: goto L_47055789;
   7362       case 0x4705578Au: goto L_4705578A;
   7363       case 0x47055790u: goto L_47055790;
   7364       case 0x47055792u: goto L_47055792;
   7365       case 0x47055794u: goto L_47055794;
   7366       case 0x4705579Au: goto L_4705579A;
   7367       case 0x4705579Cu: goto L_4705579C;
   7368       case 0x4705579Fu: goto L_4705579F;
   7369       case 0x470557A2u: goto L_470557A2;
   7370       case 0x470557A4u: goto L_470557A4;
   7371       case 0x470557A6u: goto L_470557A6;
   7372       case 0x470557ACu: goto L_470557AC;
   7373       case 0x470557B3u: goto L_470557B3;
   7374       case 0x470557B5u: goto L_470557B5;
   7375       case 0x470557BBu: goto L_470557BB;
   7376       case 0x470557BDu: goto L_470557BD;
   7377       case 0x470557BFu: goto L_470557BF;
   7378       case 0x470557C5u: goto L_470557C5;
   7379       case 0x470557C7u: goto L_470557C7;
   7380       case 0x470557C9u: goto L_470557C9;
   7381       case 0x470557CFu: goto L_470557CF;
   7382       case 0x470557D1u: goto L_470557D1;
   7383       case 0x470557D3u: goto L_470557D3;
   7384       case 0x470557D9u: goto L_470557D9;
   7385       case 0x470557DBu: goto L_470557DB;
   7386       case 0x470557E1u: goto L_470557E1;
   7387       case 0x470557E7u: goto L_470557E7;
   7388       case 0x470557E9u: goto L_470557E9;
   7389       case 0x470557EBu: goto L_470557EB;
   7390       case 0x470557ECu: goto L_470557EC;
   7391       case 0x470557F2u: goto L_470557F2;
   7392       case 0x470557F4u: goto L_470557F4;
   7393       case 0x470557F6u: goto L_470557F6;
   7394       case 0x470557FAu: goto L_470557FA;
   7395       case 0x470557FCu: goto L_470557FC;
   7396       case 0x47055802u: goto L_47055802;
   7397       case 0x47055804u: goto L_47055804;
   7398       case 0x47055806u: goto L_47055806;
   7399       case 0x47055808u: goto L_47055808;
   7400       case 0x4705580Au: goto L_4705580A;
   7401       case 0x4705580Bu: goto L_4705580B;
   7402       case 0x4705580Cu: goto L_4705580C;
   7403       case 0x4705580Du: goto L_4705580D;
   7404       case 0x4705580Fu: goto L_4705580F;
   7405       case 0x47055810u: goto L_47055810;
   7406       case 0x47055814u: goto L_47055814;
   7407       case 0x4705581Bu: goto L_4705581B;
   7408       case 0x4705581Eu: goto L_4705581E;
   7409       case 0x4705581Fu: goto L_4705581F;
   7410       case 0x47055823u: goto L_47055823;
   7411       case 0x47055825u: goto L_47055825;
   7412       case 0x4705582Bu: goto L_4705582B;
   7413       case 0x4705582Du: goto L_4705582D;
   7414       case 0x47055832u: goto L_47055832;
   7415       case 0x47055835u: goto L_47055835;
   7416       case 0x47055837u: goto L_47055837;
   7417       case 0x47055839u: goto L_47055839;
   7418       case 0x4705583Bu: goto L_4705583B;
   7419       case 0x4705583Du: goto L_4705583D;
   7420       case 0x4705583Fu: goto L_4705583F;
   7421       case 0x47055842u: goto L_47055842;
   7422       case 0x47055844u: goto L_47055844;
   7423       case 0x47055846u: goto L_47055846;
   7424       case 0x47055848u: goto L_47055848;
   7425       case 0x4705584Cu: goto L_4705584C;
   7426       case 0x4705584Eu: goto L_4705584E;
   7427       case 0x47055854u: goto L_47055854;
   7428       case 0x47055855u: goto L_47055855;
   7429       case 0x47055856u: goto L_47055856;
   7430       case 0x47055857u: goto L_47055857;
   7431       case 0x4705585Du: goto L_4705585D;
   7432       case 0x4705585Fu: goto L_4705585F;
   7433       case 0x47055860u: goto L_47055860;
   7434       case 0x47055864u: goto L_47055864;
   7435       case 0x4705586Bu: goto L_4705586B;
   7436       case 0x4705586Eu: goto L_4705586E;
   7437       case 0x4705586Fu: goto L_4705586F;
   7438       case 0x47055875u: goto L_47055875;
   7439       case 0x47055876u: goto L_47055876;
   7440       case 0x47055877u: goto L_47055877;
   7441       case 0x4705587Du: goto L_4705587D;
   7442       case 0x47055883u: goto L_47055883;
   7443       case 0x47055885u: goto L_47055885;
   7444       case 0x47055887u: goto L_47055887;
   7445       case 0x4705588Du: goto L_4705588D;
   7446       case 0x4705588Eu: goto L_4705588E;
   7447       case 0x47055894u: goto L_47055894;
   7448       case 0x47055895u: goto L_47055895;
   7449       case 0x4705589Bu: goto L_4705589B;
   7450       case 0x470558A1u: goto L_470558A1;
   7451       case 0x470558A3u: goto L_470558A3;
   7452       case 0x470558A5u: goto L_470558A5;
   7453       case 0x470558AAu: goto L_470558AA;
   7454       case 0x470558AFu: goto L_470558AF;
   7455       case 0x470558B1u: goto L_470558B1;
   7456       case 0x470558B4u: goto L_470558B4;
   7457       case 0x470558B8u: goto L_470558B8;
   7458       case 0x470558BAu: goto L_470558BA;
   7459       case 0x470558BEu: goto L_470558BE;
   7460       case 0x470558C0u: goto L_470558C0;
   7461       case 0x470558C5u: goto L_470558C5;
   7462       case 0x470558C7u: goto L_470558C7;
   7463       case 0x470558C9u: goto L_470558C9;
   7464       case 0x470558CAu: goto L_470558CA;
   7465       case 0x470558CFu: goto L_470558CF;
   7466       case 0x470558D5u: goto L_470558D5;
   7467       case 0x470558DBu: goto L_470558DB;
   7468       case 0x470558DDu: goto L_470558DD;
   7469       case 0x470558DFu: goto L_470558DF;
   7470       case 0x470558E1u: goto L_470558E1;
   7471       case 0x470558E9u: goto L_470558E9;
   7472       case 0x470558EFu: goto L_470558EF;
   7473       case 0x470558F1u: goto L_470558F1;
   7474       case 0x470558F7u: goto L_470558F7;
   7475       case 0x470558FDu: goto L_470558FD;
   7476       case 0x470558FFu: goto L_470558FF;
   7477       case 0x47055900u: goto L_47055900;
   7478       case 0x47055902u: goto L_47055902;
   7479       case 0x47055907u: goto L_47055907;
   7480       case 0x47055909u: goto L_47055909;
   7481       case 0x4705590Eu: goto L_4705590E;
   7482       case 0x47055910u: goto L_47055910;
   7483       case 0x47055912u: goto L_47055912;
   7484       case 0x47055917u: goto L_47055917;
   7485       case 0x47055918u: goto L_47055918;
   7486       case 0x4705591Cu: goto L_4705591C;
   7487       case 0x47055924u: goto L_47055924;
   7488       case 0x4705592Au: goto L_4705592A;
   7489       case 0x4705592Eu: goto L_4705592E;
   7490       case 0x47055932u: goto L_47055932;
   7491       case 0x47055937u: goto L_47055937;
   7492       case 0x4705593Au: goto L_4705593A;
   7493       case 0x4705593Eu: goto L_4705593E;
   7494       case 0x47055940u: goto L_47055940;
   7495       case 0x47055943u: goto L_47055943;
   7496       case 0x47055945u: goto L_47055945;
   7497       case 0x4705594Cu: goto L_4705594C;
   7498       case 0x4705594Eu: goto L_4705594E;
   7499       case 0x4705594Fu: goto L_4705594F;
   7500       case 0x47055952u: goto L_47055952;
   7501       case 0x47055956u: goto L_47055956;
   7502       case 0x4705595Au: goto L_4705595A;
   7503       case 0x4705595Bu: goto L_4705595B;
   7504       case 0x4705595Cu: goto L_4705595C;
   7505       case 0x4705595Du: goto L_4705595D;
   7506       case 0x4705595Eu: goto L_4705595E;
   7507       case 0x47055965u: goto L_47055965;
   7508       case 0x47055968u: goto L_47055968;
   7509       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7510     }
   7511     RECOMP_REGS_OUT();
   7512 }
   7513 
   7514 void sub_470559D0(void) {
   7515     int _fpu_cmp = 0;
   7516     uint32_t _cf = 0;
   7517     int _df = 1;
   7518     uint32_t _flag_k = FK_NONE;
   7519     uint32_t _flag_a = 0, _flag_b = 0;
   7520     uint32_t _itail_tgt = 0;
   7521     RECOMP_REGS_LOCALS
   7522     RECOMP_ENTER(0x470559D0u);
   7523 
   7524 L_470559D0:
   7525     edx = MEM32(ecx + 0x4); /* 0x470559D0: mov edx, dword ptr [ecx + 4] */
   7526     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7527     eax = eax | 0xFFFFFFFFu; /* 0x470559D3: or eax, 0xffffffff */
   7528     _cf = 0;
   7529     _flag_k = FK_TEST;
   7530     /* cmp edx, eax */ /* 0x470559D6: cmp edx, eax */
   7531     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7532     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7533     _flag_k = FK_CMP;
   7534     if (CMP_EQ(_flag_a, _flag_b)) goto L_470559E6; /* 0x470559D8: je 0x470559e6 */
   7535 L_470559DA:
   7536     MEM32(ecx + 0x4) = eax; /* 0x470559DA: mov dword ptr [ecx + 4], eax */
   7537     eax = MEM32(ecx); /* 0x470559DD: mov eax, dword ptr [ecx] */
   7538     PUSH32(esp, eax); /* 0x470559DF: push eax */
   7539     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470559E0: call dword ptr [0x470ac190] */
   7540     RECOMP_FLAGS_IN();
   7541 L_470559E6:
   7542     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7543     eax = 0; /* 0x470559E6: xor eax, eax */
   7544     _cf = 0;
   7545     _flag_k = FK_TEST;
   7546     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470559E8: ret  */
   7547     RECOMP_REGS_OUT();
   7548 }
   7549 
   7550 void sub_470559F0(void) {
   7551     int _fpu_cmp = 0;
   7552     uint32_t _cf = 0;
   7553     int _df = 1;
   7554     uint32_t _flag_k = FK_NONE;
   7555     uint32_t _flag_a = 0, _flag_b = 0;
   7556     uint32_t _itail_tgt = 0;
   7557     RECOMP_REGS_LOCALS
   7558     RECOMP_ENTER(0x470559F0u);
   7559 
   7560 L_470559F0:
   7561     eax = MEM32(esp + 0x4); /* 0x470559F0: mov eax, dword ptr [esp + 4] */
   7562     PUSH32(esp, esi); /* 0x470559F4: push esi */
   7563     esi = ecx; /* 0x470559F5: mov esi, ecx */
   7564     PUSH32(esp, eax); /* 0x470559F7: push eax */
   7565     MEM32(esi) = eax; /* 0x470559F8: mov dword ptr [esi], eax */
   7566     MEM32(esi + 0x4) = 0xFFFFFFFFu; /* 0x470559FA: mov dword ptr [esi + 4], 0xffffffff */
   7567     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47055A01: call dword ptr [0x470ac180] */
   7568     RECOMP_FLAGS_IN();
   7569     MEM32(esi + 0x4) = 0; /* 0x47055A07: mov dword ptr [esi + 4], 0 */
   7570     eax = esi; /* 0x47055A0E: mov eax, esi */
   7571     esi = POP32_VAL(esp); /* 0x47055A10: pop esi */
   7572     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47055A11: ret 4 */
   7573     RECOMP_REGS_OUT();
   7574 }
   7575 
   7576 void sub_47055A20(void) {
   7577     int _fpu_cmp = 0;
   7578     uint32_t _cf = 0;
   7579     int _df = 1;
   7580     uint32_t _flag_k = FK_NONE;
   7581     uint32_t _flag_a = 0, _flag_b = 0;
   7582     uint32_t _itail_tgt = 0;
   7583     RECOMP_REGS_LOCALS
   7584     RECOMP_ENTER(0x47055A20u);
   7585 
   7586 L_47055A20:
   7587     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100u);
   7588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7589     esp = esp - 0x100u; /* 0x47055A20: sub esp, 0x100 */
   7590     _flag_k = FK_CMP;
   7591     PUSH32(esp, 0); /* 0x47055A26: push 0 */
   7592     RECOMP_ICALL(0x470553A0u); /* 0x47055A28: call 0x470553a0 */ /* not lifted */
   7593     RECOMP_FLAGS_IN();
   7594     ecx = eax; /* 0x47055A2D: mov ecx, eax */
   7595     RECOMP_ICALL(0x470551B0u); /* 0x47055A2F: call 0x470551b0 */ /* not lifted */
   7596     RECOMP_FLAGS_IN();
   7597     eax = MEM32(esp + 0x104); /* 0x47055A34: mov eax, dword ptr [esp + 0x104] */
   7598     /* test eax, eax */ /* 0x47055A3B: test eax, eax */
   7599     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7600     _cf = 0;
   7601     _flag_k = FK_TEST;
   7602     if (TEST_Z(_flag_a, _flag_b)) goto L_47055AA3; /* 0x47055A3D: je 0x47055aa3 */
   7603 L_47055A3F:
   7604     PUSH32(esp, ebx); /* 0x47055A3F: push ebx */
   7605     PUSH32(esp, esi); /* 0x47055A40: push esi */
   7606     PUSH32(esp, edi); /* 0x47055A41: push edi */
   7607     RECOMP_ICALL(0x470391D0u); /* 0x47055A42: call 0x470391d0 */ /* not lifted */
   7608     RECOMP_FLAGS_IN();
   7609     RECOMP_ICALL(0x470553A0u); /* 0x47055A47: call 0x470553a0 */ /* not lifted */
   7610     RECOMP_FLAGS_IN();
   7611     ecx = esp + 0xC; /* 0x47055A4C: lea ecx, [esp + 0xc] */
   7612     edx = 0x40u; /* 0x47055A50: mov edx, 0x40 */
   7613 L_47055A55:
   7614     esi = MEM32(eax); /* 0x47055A55: mov esi, dword ptr [eax] */
   7615     MEM32(ecx) = esi; /* 0x47055A57: mov dword ptr [ecx], esi */
   7616     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   7617     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7618     ecx = ecx + 4; /* 0x47055A59: add ecx, 4 */
   7619     _flag_k = FK_ADD;
   7620     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   7621     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7622     eax = eax + 0x10u; /* 0x47055A5C: add eax, 0x10 */
   7623     _flag_k = FK_ADD;
   7624     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7625     edx = edx - 1; /* 0x47055A5F: dec edx */
   7626     _flag_k = FK_DEC;
   7627     RECOMP_BACKEDGE();
   7628     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_47055A55; /* 0x47055A60: jne 0x47055a55 */
   7629 L_47055A62:
   7630     ebx = MEM32(0x470AC0B0); /* 0x47055A62: mov ebx, dword ptr [0x470ac0b0] */
   7631     esi = esp + 0xC; /* 0x47055A68: lea esi, [esp + 0xc] */
   7632     edi = 0x40u; /* 0x47055A6C: mov edi, 0x40 */
   7633 L_47055A71:
   7634     eax = MEM32(esi); /* 0x47055A71: mov eax, dword ptr [esi] */
   7635     /* cmp eax, MEM32(0x4710E904) */ /* 0x47055A73: cmp eax, dword ptr [0x4710e904] */
   7636     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(0x4710E904));
   7637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7638     _flag_k = FK_CMP;
   7639     if (CMP_EQ(_flag_a, _flag_b)) goto L_47055A7E; /* 0x47055A79: je 0x47055a7e */
   7640 L_47055A7B:
   7641     PUSH32(esp, eax); /* 0x47055A7B: push eax */
   7642     RECOMP_ICALL(ebx); /* 0x47055A7C: call ebx */
   7643     RECOMP_FLAGS_IN();
   7644 L_47055A7E:
   7645     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   7646     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7647     esi = esi + 4; /* 0x47055A7E: add esi, 4 */
   7648     _flag_k = FK_ADD;
   7649     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   7650     edi = edi - 1; /* 0x47055A81: dec edi */
   7651     _flag_k = FK_DEC;
   7652     RECOMP_BACKEDGE();
   7653     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_47055A71; /* 0x47055A82: jne 0x47055a71 */
   7654 L_47055A84:
   7655     RECOMP_ICALL(0x470553A0u); /* 0x47055A84: call 0x470553a0 */ /* not lifted */
   7656     RECOMP_FLAGS_IN();
   7657     /* test eax, eax */ /* 0x47055A89: test eax, eax */
   7658     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7659     _cf = 0;
   7660     _flag_k = FK_TEST;
   7661     edi = POP32_VAL(esp); /* 0x47055A8B: pop edi */
   7662     esi = POP32_VAL(esp); /* 0x47055A8C: pop esi */
   7663     ebx = POP32_VAL(esp); /* 0x47055A8D: pop ebx */
   7664     if (TEST_Z(_flag_a, _flag_b)) goto L_47055AA3; /* 0x47055A8E: je 0x47055aa3 */
   7665 L_47055A90:
   7666     PUSH32(esp, eax); /* 0x47055A90: push eax */
   7667     MEM32(0x4710E9B8) = 0; /* 0x47055A91: mov dword ptr [0x4710e9b8], 0 */
   7668     RECOMP_ICALL(0x470A32A2u); /* 0x47055A9B: call 0x470a32a2 */ /* not lifted */
   7669     RECOMP_FLAGS_IN();
   7670     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7671     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7672     esp = esp + 4; /* 0x47055AA0: add esp, 4 */
   7673     _flag_k = FK_ADD;
   7674 L_47055AA3:
   7675     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100u);
   7676     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7677     esp = esp + 0x100u; /* 0x47055AA3: add esp, 0x100 */
   7678     _flag_k = FK_ADD;
   7679     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055AA9: ret  */
   7680     RECOMP_REGS_OUT();
   7681 }
   7682 
   7683 void sub_47055AB0(void) {
   7684     int _fpu_cmp = 0;
   7685     uint32_t _cf = 0;
   7686     int _df = 1;
   7687     uint32_t _flag_k = FK_NONE;
   7688     uint32_t _flag_a = 0, _flag_b = 0;
   7689     uint32_t _itail_tgt = 0;
   7690     RECOMP_REGS_LOCALS
   7691     RECOMP_ENTER(0x47055AB0u);
   7692 
   7693 L_47055AB0:
   7694     PUSH32(esp, esi); /* 0x47055AB0: push esi */
   7695     PUSH32(esp, edi); /* 0x47055AB1: push edi */
   7696     esi = ecx; /* 0x47055AB2: mov esi, ecx */
   7697     RECOMP_ICALL(0x47039020u); /* 0x47055AB4: call 0x47039020 */ /* not lifted */
   7698     RECOMP_FLAGS_IN();
   7699     edi = eax; /* 0x47055AB9: mov edi, eax */
   7700     eax = MEM32(esi + 0x14); /* 0x47055ABB: mov eax, dword ptr [esi + 0x14] */
   7701     /* test eax, eax */ /* 0x47055ABE: test eax, eax */
   7702     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7703     _cf = 0;
   7704     _flag_k = FK_TEST;
   7705     if (TEST_Z(_flag_a, _flag_b)) goto L_47055AFD; /* 0x47055AC0: je 0x47055afd */
   7706 L_47055AC2:
   7707     PUSH32(esp, 0); /* 0x47055AC2: push 0 */
   7708     PUSH32(esp, eax); /* 0x47055AC4: push eax */
   7709     ecx = edi; /* 0x47055AC5: mov ecx, edi */
   7710     RECOMP_ICALL(0x4703B250u); /* 0x47055AC7: call 0x4703b250 */ /* not lifted */
   7711     RECOMP_FLAGS_IN();
   7712     eax = MEM32(esi + 0x18); /* 0x47055ACC: mov eax, dword ptr [esi + 0x18] */
   7713     PUSH32(esp, 0); /* 0x47055ACF: push 0 */
   7714     PUSH32(esp, eax); /* 0x47055AD1: push eax */
   7715     ecx = edi; /* 0x47055AD2: mov ecx, edi */
   7716     RECOMP_ICALL(0x47039380u); /* 0x47055AD4: call 0x47039380 */ /* not lifted */
   7717     RECOMP_FLAGS_IN();
   7718     eax = MEM32(esi + 0x1C); /* 0x47055AD9: mov eax, dword ptr [esi + 0x1c] */
   7719     /* test eax, eax */ /* 0x47055ADC: test eax, eax */
   7720     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7721     _cf = 0;
   7722     _flag_k = FK_TEST;
   7723     if (TEST_Z(_flag_a, _flag_b)) goto L_47055AE7; /* 0x47055ADE: je 0x47055ae7 */
   7724 L_47055AE0:
   7725     ecx = edi; /* 0x47055AE0: mov ecx, edi */
   7726     RECOMP_ICALL(0x4703B180u); /* 0x47055AE2: call 0x4703b180 */ /* not lifted */
   7727     RECOMP_FLAGS_IN();
   7728 L_47055AE7:
   7729     ecx = MEM32(esi + 0x20); /* 0x47055AE7: mov ecx, dword ptr [esi + 0x20] */
   7730     PUSH32(esp, ecx); /* 0x47055AEA: push ecx */
   7731     ecx = edi; /* 0x47055AEB: mov ecx, edi */
   7732     RECOMP_ICALL(0x4703B070u); /* 0x47055AED: call 0x4703b070 */ /* not lifted */
   7733     RECOMP_FLAGS_IN();
   7734     edx = MEM32(esi + 0x24); /* 0x47055AF2: mov edx, dword ptr [esi + 0x24] */
   7735     PUSH32(esp, edx); /* 0x47055AF5: push edx */
   7736     ecx = edi; /* 0x47055AF6: mov ecx, edi */
   7737     RECOMP_ICALL(0x4703B0C0u); /* 0x47055AF8: call 0x4703b0c0 */ /* not lifted */
   7738     RECOMP_FLAGS_IN();
   7739 L_47055AFD:
   7740     eax = MEM32(esi + 0x28); /* 0x47055AFD: mov eax, dword ptr [esi + 0x28] */
   7741     PUSH32(esp, eax); /* 0x47055B00: push eax */
   7742     ecx = edi; /* 0x47055B01: mov ecx, edi */
   7743     RECOMP_ICALL(0x4703B130u); /* 0x47055B03: call 0x4703b130 */ /* not lifted */
   7744     RECOMP_FLAGS_IN();
   7745     ecx = MEM32(esi + 0x2C); /* 0x47055B08: mov ecx, dword ptr [esi + 0x2c] */
   7746     PUSH32(esp, ecx); /* 0x47055B0B: push ecx */
   7747     ecx = edi; /* 0x47055B0C: mov ecx, edi */
   7748     RECOMP_ICALL(0x4703B160u); /* 0x47055B0E: call 0x4703b160 */ /* not lifted */
   7749     RECOMP_FLAGS_IN();
   7750     esi = MEM32(esi + 0x10); /* 0x47055B13: mov esi, dword ptr [esi + 0x10] */
   7751     /* test esi, esi */ /* 0x47055B16: test esi, esi */
   7752     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   7753     _cf = 0;
   7754     _flag_k = FK_TEST;
   7755     if (TEST_Z(_flag_a, _flag_b)) goto L_47055B27; /* 0x47055B18: je 0x47055b27 */
   7756 L_47055B1A:
   7757     PUSH32(esp, esi); /* 0x47055B1A: push esi */
   7758     RECOMP_ICALL(0x47039020u); /* 0x47055B1B: call 0x47039020 */ /* not lifted */
   7759     RECOMP_FLAGS_IN();
   7760     ecx = eax; /* 0x47055B20: mov ecx, eax */
   7761     RECOMP_ICALL(0x4703B100u); /* 0x47055B22: call 0x4703b100 */ /* not lifted */
   7762     RECOMP_FLAGS_IN();
   7763 L_47055B27:
   7764     edi = POP32_VAL(esp); /* 0x47055B27: pop edi */
   7765     esi = POP32_VAL(esp); /* 0x47055B28: pop esi */
   7766     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055B29: ret  */
   7767     RECOMP_REGS_OUT();
   7768 }
   7769 
   7770 void sub_47055B30(void) {
   7771     int _fpu_cmp = 0;
   7772     uint32_t _cf = 0;
   7773     int _df = 1;
   7774     uint32_t _flag_k = FK_NONE;
   7775     uint32_t _flag_a = 0, _flag_b = 0;
   7776     uint32_t _itail_tgt = 0;
   7777     RECOMP_REGS_LOCALS
   7778     RECOMP_ENTER(0x47055B30u);
   7779 
   7780 L_47055B30:
   7781     eax = MEM32(esp + 0x8); /* 0x47055B30: mov eax, dword ptr [esp + 8] */
   7782     PUSH32(esp, eax); /* 0x47055B34: push eax */
   7783     RECOMP_ICALL(MEM32(esp + 0x8)); /* 0x47055B35: call dword ptr [esp + 8] */
   7784     RECOMP_FLAGS_IN();
   7785     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7786     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7787     esp = esp + 4; /* 0x47055B39: add esp, 4 */
   7788     _flag_k = FK_ADD;
   7789     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47055B3C: ret 8 */
   7790     RECOMP_REGS_OUT();
   7791 }
   7792 
   7793 void sub_47055B40(void) {
   7794     int _fpu_cmp = 0;
   7795     uint32_t _cf = 0;
   7796     int _df = 1;
   7797     uint32_t _flag_k = FK_NONE;
   7798     uint32_t _flag_a = 0, _flag_b = 0;
   7799     uint32_t _itail_tgt = 0;
   7800     RECOMP_REGS_LOCALS
   7801     RECOMP_ENTER(0x47055B40u);
   7802 
   7803 L_47055B40:
   7804     RECOMP_ICALL(0x47058910u); /* 0x47055B40: call 0x47058910 */ /* not lifted */
   7805     RECOMP_FLAGS_IN();
   7806     ecx = MEM32(eax + 0x14); /* 0x47055B45: mov ecx, dword ptr [eax + 0x14] */
   7807     edx = MEM32(esp + 0x4); /* 0x47055B48: mov edx, dword ptr [esp + 4] */
   7808     MEM32(eax + 0x14) = edx; /* 0x47055B4C: mov dword ptr [eax + 0x14], edx */
   7809     eax = ecx; /* 0x47055B4F: mov eax, ecx */
   7810     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055B51: ret  */
   7811     RECOMP_REGS_OUT();
   7812 }
   7813 
   7814 void sub_47055B60(void) {
   7815     int _fpu_cmp = 0;
   7816     uint32_t _cf = 0;
   7817     int _df = 1;
   7818     uint32_t _flag_k = FK_NONE;
   7819     uint32_t _flag_a = 0, _flag_b = 0;
   7820     uint32_t _itail_tgt = 0;
   7821     RECOMP_REGS_LOCALS
   7822     RECOMP_ENTER(0x47055B60u);
   7823 
   7824 L_47055B60:
   7825     PUSH32(esp, ebp); /* 0x47055B60: push ebp */
   7826     ebp = esp; /* 0x47055B61: mov ebp, esp */
   7827     PUSH32(esp, 0xFFFFFFFFu); /* 0x47055B63: push -1 */
   7828     PUSH32(esp, 0x470ADC98u); /* 0x47055B65: push 0x470adc98 */
   7829     PUSH32(esp, 0x470A34B2u); /* 0x47055B6A: push 0x470a34b2 */
   7830     eax = MEM32(FS_BASE + (0)); /* 0x47055B6F: mov eax, dword ptr fs:[0] */
   7831     PUSH32(esp, eax); /* 0x47055B75: push eax */
   7832     MEM32(FS_BASE + (0)) = esp; /* 0x47055B76: mov dword ptr fs:[0], esp */
   7833     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14Cu);
   7834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7835     esp = esp - 0x14Cu; /* 0x47055B7D: sub esp, 0x14c */
   7836     _flag_k = FK_CMP;
   7837     PUSH32(esp, ebx); /* 0x47055B83: push ebx */
   7838     PUSH32(esp, esi); /* 0x47055B84: push esi */
   7839     PUSH32(esp, edi); /* 0x47055B85: push edi */
   7840     MEM32(ebp + (-0x18)) = esp; /* 0x47055B86: mov dword ptr [ebp - 0x18], esp */
   7841     esi = ecx; /* 0x47055B89: mov esi, ecx */
   7842     RECOMP_ICALL(0x47039020u); /* 0x47055B8B: call 0x47039020 */ /* not lifted */
   7843     RECOMP_FLAGS_IN();
   7844     edi = eax; /* 0x47055B90: mov edi, eax */
   7845     eax = MEM32(esi + 0x14); /* 0x47055B92: mov eax, dword ptr [esi + 0x14] */
   7846     /* test eax, eax */ /* 0x47055B95: test eax, eax */
   7847     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7848     _cf = 0;
   7849     _flag_k = FK_TEST;
   7850     if (TEST_Z(_flag_a, _flag_b)) goto L_47055BD4; /* 0x47055B97: je 0x47055bd4 */
   7851 L_47055B99:
   7852     PUSH32(esp, 0); /* 0x47055B99: push 0 */
   7853     PUSH32(esp, eax); /* 0x47055B9B: push eax */
   7854     ecx = edi; /* 0x47055B9C: mov ecx, edi */
   7855     RECOMP_ICALL(0x4703B250u); /* 0x47055B9E: call 0x4703b250 */ /* not lifted */
   7856     RECOMP_FLAGS_IN();
   7857     PUSH32(esp, 0); /* 0x47055BA3: push 0 */
   7858     eax = MEM32(esi + 0x18); /* 0x47055BA5: mov eax, dword ptr [esi + 0x18] */
   7859     PUSH32(esp, eax); /* 0x47055BA8: push eax */
   7860     ecx = edi; /* 0x47055BA9: mov ecx, edi */
   7861     RECOMP_ICALL(0x47039380u); /* 0x47055BAB: call 0x47039380 */ /* not lifted */
   7862     RECOMP_FLAGS_IN();
   7863     eax = MEM32(esi + 0x1C); /* 0x47055BB0: mov eax, dword ptr [esi + 0x1c] */
   7864     /* test eax, eax */ /* 0x47055BB3: test eax, eax */
   7865     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7866     _cf = 0;
   7867     _flag_k = FK_TEST;
   7868     if (TEST_Z(_flag_a, _flag_b)) goto L_47055BBE; /* 0x47055BB5: je 0x47055bbe */
   7869 L_47055BB7:
   7870     ecx = edi; /* 0x47055BB7: mov ecx, edi */
   7871     RECOMP_ICALL(0x4703B180u); /* 0x47055BB9: call 0x4703b180 */ /* not lifted */
   7872     RECOMP_FLAGS_IN();
   7873 L_47055BBE:
   7874     ecx = MEM32(esi + 0x20); /* 0x47055BBE: mov ecx, dword ptr [esi + 0x20] */
   7875     PUSH32(esp, ecx); /* 0x47055BC1: push ecx */
   7876     ecx = edi; /* 0x47055BC2: mov ecx, edi */
   7877     RECOMP_ICALL(0x4703B070u); /* 0x47055BC4: call 0x4703b070 */ /* not lifted */
   7878     RECOMP_FLAGS_IN();
   7879     edx = MEM32(esi + 0x24); /* 0x47055BC9: mov edx, dword ptr [esi + 0x24] */
   7880     PUSH32(esp, edx); /* 0x47055BCC: push edx */
   7881     ecx = edi; /* 0x47055BCD: mov ecx, edi */
   7882     RECOMP_ICALL(0x4703B0C0u); /* 0x47055BCF: call 0x4703b0c0 */ /* not lifted */
   7883     RECOMP_FLAGS_IN();
   7884 L_47055BD4:
   7885     eax = MEM32(esi + 0x28); /* 0x47055BD4: mov eax, dword ptr [esi + 0x28] */
   7886     PUSH32(esp, eax); /* 0x47055BD7: push eax */
   7887     ecx = edi; /* 0x47055BD8: mov ecx, edi */
   7888     RECOMP_ICALL(0x4703B130u); /* 0x47055BDA: call 0x4703b130 */ /* not lifted */
   7889     RECOMP_FLAGS_IN();
   7890     ecx = MEM32(esi + 0x2C); /* 0x47055BDF: mov ecx, dword ptr [esi + 0x2c] */
   7891     PUSH32(esp, ecx); /* 0x47055BE2: push ecx */
   7892     ecx = edi; /* 0x47055BE3: mov ecx, edi */
   7893     RECOMP_ICALL(0x4703B160u); /* 0x47055BE5: call 0x4703b160 */ /* not lifted */
   7894     RECOMP_FLAGS_IN();
   7895     eax = MEM32(esi + 0x10); /* 0x47055BEA: mov eax, dword ptr [esi + 0x10] */
   7896     /* test eax, eax */ /* 0x47055BED: test eax, eax */
   7897     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7898     _cf = 0;
   7899     _flag_k = FK_TEST;
   7900     if (TEST_Z(_flag_a, _flag_b)) goto L_47055BFE; /* 0x47055BEF: je 0x47055bfe */
   7901 L_47055BF1:
   7902     PUSH32(esp, eax); /* 0x47055BF1: push eax */
   7903     RECOMP_ICALL(0x47039020u); /* 0x47055BF2: call 0x47039020 */ /* not lifted */
   7904     RECOMP_FLAGS_IN();
   7905     ecx = eax; /* 0x47055BF7: mov ecx, eax */
   7906     RECOMP_ICALL(0x4703B100u); /* 0x47055BF9: call 0x4703b100 */ /* not lifted */
   7907     RECOMP_FLAGS_IN();
   7908 L_47055BFE:
   7909     eax = MEM32(esi + 0xC); /* 0x47055BFE: mov eax, dword ptr [esi + 0xc] */
   7910     /* test eax, eax */ /* 0x47055C01: test eax, eax */
   7911     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7912     _cf = 0;
   7913     _flag_k = FK_TEST;
   7914     if (TEST_Z(_flag_a, _flag_b)) goto L_47055C15; /* 0x47055C03: je 0x47055c15 */
   7915 L_47055C05:
   7916     RECOMP_ICALL(0x4708ACA0u); /* 0x47055C05: call 0x4708aca0 */ /* not lifted */
   7917     RECOMP_FLAGS_IN();
   7918     ecx = MEM32(esi + 0xC); /* 0x47055C0A: mov ecx, dword ptr [esi + 0xc] */
   7919     PUSH32(esp, ecx); /* 0x47055C0D: push ecx */
   7920     ecx = eax; /* 0x47055C0E: mov ecx, eax */
   7921     RECOMP_ICALL(0x4708AED0u); /* 0x47055C10: call 0x4708aed0 */ /* not lifted */
   7922     RECOMP_FLAGS_IN();
   7923 L_47055C15:
   7924     edi = MEM32(esi); /* 0x47055C15: mov edi, dword ptr [esi] */
   7925     ebx = MEM32(esi + 0x4); /* 0x47055C17: mov ebx, dword ptr [esi + 4] */
   7926     /* test esi, esi */ /* 0x47055C1A: test esi, esi */
   7927     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   7928     _cf = 0;
   7929     _flag_k = FK_TEST;
   7930     if (TEST_Z(_flag_a, _flag_b)) goto L_47055C27; /* 0x47055C1C: je 0x47055c27 */
   7931 L_47055C1E:
   7932     PUSH32(esp, esi); /* 0x47055C1E: push esi */
   7933     RECOMP_ICALL(0x470A32A2u); /* 0x47055C1F: call 0x470a32a2 */ /* not lifted */
   7934     RECOMP_FLAGS_IN();
   7935     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7936     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7937     esp = esp + 4; /* 0x47055C24: add esp, 4 */
   7938     _flag_k = FK_ADD;
   7939 L_47055C27:
   7940     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7941     eax = 0; /* 0x47055C27: xor eax, eax */
   7942     _cf = 0;
   7943     _flag_k = FK_TEST;
   7944     MEM32(ebp + (-0x20)) = eax; /* 0x47055C29: mov dword ptr [ebp - 0x20], eax */
   7945     MEM32(ebp + (-0x4)) = eax; /* 0x47055C2C: mov dword ptr [ebp - 4], eax */
   7946     MEM32(ebp + (-0x4)) = 1; /* 0x47055C2F: mov dword ptr [ebp - 4], 1 */
   7947     RECOMP_ICALL(0x47058910u); /* 0x47055C36: call 0x47058910 */ /* not lifted */
   7948     RECOMP_FLAGS_IN();
   7949     eax = MEM32(eax + 0x14); /* 0x47055C3B: mov eax, dword ptr [eax + 0x14] */
   7950     MEM32(ebp + (-0x2C)) = eax; /* 0x47055C3E: mov dword ptr [ebp - 0x2c], eax */
   7951     /* test eax, eax */ /* 0x47055C41: test eax, eax */
   7952     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7953     _cf = 0;
   7954     _flag_k = FK_TEST;
   7955     if (TEST_Z(_flag_a, _flag_b)) goto L_47055C52; /* 0x47055C43: je 0x47055c52 */
   7956 L_47055C45:
   7957     edx = MEM32(eax); /* 0x47055C45: mov edx, dword ptr [eax] */
   7958     PUSH32(esp, ebx); /* 0x47055C47: push ebx */
   7959     PUSH32(esp, edi); /* 0x47055C48: push edi */
   7960     ecx = eax; /* 0x47055C49: mov ecx, eax */
   7961     RECOMP_ICALL(MEM32(edx)); /* 0x47055C4B: call dword ptr [edx] */
   7962     RECOMP_FLAGS_IN();
   7963     MEM32(ebp + (-0x20)) = eax; /* 0x47055C4D: mov dword ptr [ebp - 0x20], eax */
   7964     goto L_47055C89; /* 0x47055C50: jmp 0x47055c89 */
   7965 L_47055C52:
   7966     PUSH32(esp, ebx); /* 0x47055C52: push ebx */
   7967     RECOMP_ICALL(edi); /* 0x47055C53: call edi */
   7968     RECOMP_FLAGS_IN();
   7969     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7970     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7971     esp = esp + 4; /* 0x47055C55: add esp, 4 */
   7972     _flag_k = FK_ADD;
   7973     MEM32(ebp + (-0x20)) = eax; /* 0x47055C58: mov dword ptr [ebp - 0x20], eax */
   7974     goto L_47055C89; /* 0x47055C5B: jmp 0x47055c89 */
   7975 L_47055C89:
   7976     MEM32(ebp + (-0x4)) = 0; /* 0x47055C89: mov dword ptr [ebp - 4], 0 */
   7977     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47055C90: mov dword ptr [ebp - 4], 0xffffffff */
   7978     RECOMP_ICALL(0x47055C9Cu); /* 0x47055C97: call 0x47055c9c */ /* not lifted */
   7979     RECOMP_FLAGS_IN();
   7980     PUSH32(esp, 0); /* 0x47055C9C: push 0 */
   7981     RECOMP_ICALL(0x470553A0u); /* 0x47055C9E: call 0x470553a0 */ /* not lifted */
   7982     RECOMP_FLAGS_IN();
   7983     ecx = eax; /* 0x47055CA3: mov ecx, eax */
   7984     RECOMP_ICALL(0x470551B0u); /* 0x47055CA5: call 0x470551b0 */ /* not lifted */
   7985     RECOMP_FLAGS_IN();
   7986     esi = MEM32(ebp + (-0x20)); /* 0x47055CAA: mov esi, dword ptr [ebp - 0x20] */
   7987     PUSH32(esp, esi); /* 0x47055CAD: push esi */
   7988     RECOMP_ICALL(MEM32(0x470AC33C)); /* 0x47055CAE: call dword ptr [0x470ac33c] */
   7989     RECOMP_FLAGS_IN();
   7990     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7991     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7992     esp = esp + 4; /* 0x47055CB4: add esp, 4 */
   7993     _flag_k = FK_ADD;
   7994     esp = MEM32(ebp + (-0x18)); /* 0x47055CB7: mov esp, dword ptr [ebp - 0x18] */
   7995     eax = esi; /* 0x47055CBA: mov eax, esi */
   7996     ecx = MEM32(ebp + (-0x10)); /* 0x47055CBC: mov ecx, dword ptr [ebp - 0x10] */
   7997     MEM32(FS_BASE + (0)) = ecx; /* 0x47055CBF: mov dword ptr fs:[0], ecx */
   7998     edi = POP32_VAL(esp); /* 0x47055CC6: pop edi */
   7999     esi = POP32_VAL(esp); /* 0x47055CC7: pop esi */
   8000     ebx = POP32_VAL(esp); /* 0x47055CC8: pop ebx */
   8001     esp = ebp; /* 0x47055CC9: mov esp, ebp */
   8002     ebp = POP32_VAL(esp); /* 0x47055CCB: pop ebp */
   8003     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055CCC: ret  */
   8004     RECOMP_REGS_OUT();
   8005 }
   8006 
   8007 void sub_47055C5D(void) {
   8008     int _fpu_cmp = 0;
   8009     uint32_t _cf = 0;
   8010     int _df = 1;
   8011     uint32_t _flag_k = FK_NONE;
   8012     uint32_t _flag_a = 0, _flag_b = 0;
   8013     uint32_t _itail_tgt = 0;
   8014     RECOMP_REGS_LOCALS
   8015     RECOMP_ENTER(0x47055C5Du);
   8016 
   8017 L_47055C5D:
   8018     eax = MEM32(ebp + (-0x14)); /* 0x47055C5D: mov eax, dword ptr [ebp - 0x14] */
   8019     PUSH32(esp, eax); /* 0x47055C60: push eax */
   8020     RECOMP_ICALL(0x47039020u); /* 0x47055C61: call 0x47039020 */ /* not lifted */
   8021     RECOMP_FLAGS_IN();
   8022     ecx = eax; /* 0x47055C66: mov ecx, eax */
   8023     RECOMP_ICALL(0x4703B120u); /* 0x47055C68: call 0x4703b120 */ /* not lifted */
   8024     RECOMP_FLAGS_IN();
   8025     RECOMP_ICALL(eax); /* 0x47055C6D: call eax */
   8026     RECOMP_FLAGS_IN();
   8027     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8028     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8029     esp = esp + 4; /* 0x47055C6F: add esp, 4 */
   8030     _flag_k = FK_ADD;
   8031     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055C72: ret  */
   8032     RECOMP_REGS_OUT();
   8033 }
   8034 
   8035 void sub_47055C73(void) {
   8036     int _fpu_cmp = 0;
   8037     uint32_t _cf = 0;
   8038     int _df = 1;
   8039     uint32_t _flag_k = FK_NONE;
   8040     uint32_t _flag_a = 0, _flag_b = 0;
   8041     uint32_t _itail_tgt = 0;
   8042     RECOMP_REGS_LOCALS
   8043     RECOMP_ENTER(0x47055C73u);
   8044 
   8045 L_47055C73:
   8046     esp = MEM32(ebp + (-0x18)); /* 0x47055C73: mov esp, dword ptr [ebp - 0x18] */
   8047     PUSH32(esp, 0); /* 0x47055C76: push 0 */
   8048     RECOMP_ICALL(0x47039020u); /* 0x47055C78: call 0x47039020 */ /* not lifted */
   8049     RECOMP_FLAGS_IN();
   8050     ecx = eax; /* 0x47055C7D: mov ecx, eax */
   8051     RECOMP_ICALL(0x4703B150u); /* 0x47055C7F: call 0x4703b150 */ /* not lifted */
   8052     RECOMP_FLAGS_IN();
   8053     RECOMP_ICALL(eax); /* 0x47055C84: call eax */
   8054     RECOMP_FLAGS_IN();
   8055     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8056     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8057     esp = esp + 4; /* 0x47055C86: add esp, 4 */
   8058     _flag_k = FK_ADD;
   8059     MEM32(ebp + (-0x4)) = 0; /* 0x47055C89: mov dword ptr [ebp - 4], 0 */
   8060     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47055C90: mov dword ptr [ebp - 4], 0xffffffff */
   8061     RECOMP_ICALL(0x47055C9Cu); /* 0x47055C97: call 0x47055c9c */ /* not lifted */
   8062     RECOMP_FLAGS_IN();
   8063     PUSH32(esp, 0); /* 0x47055C9C: push 0 */
   8064     RECOMP_ICALL(0x470553A0u); /* 0x47055C9E: call 0x470553a0 */ /* not lifted */
   8065     RECOMP_FLAGS_IN();
   8066     ecx = eax; /* 0x47055CA3: mov ecx, eax */
   8067     RECOMP_ICALL(0x470551B0u); /* 0x47055CA5: call 0x470551b0 */ /* not lifted */
   8068     RECOMP_FLAGS_IN();
   8069     esi = MEM32(ebp + (-0x20)); /* 0x47055CAA: mov esi, dword ptr [ebp - 0x20] */
   8070     PUSH32(esp, esi); /* 0x47055CAD: push esi */
   8071     RECOMP_ICALL(MEM32(0x470AC33C)); /* 0x47055CAE: call dword ptr [0x470ac33c] */
   8072     RECOMP_FLAGS_IN();
   8073     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8074     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8075     esp = esp + 4; /* 0x47055CB4: add esp, 4 */
   8076     _flag_k = FK_ADD;
   8077     esp = MEM32(ebp + (-0x18)); /* 0x47055CB7: mov esp, dword ptr [ebp - 0x18] */
   8078     eax = esi; /* 0x47055CBA: mov eax, esi */
   8079     ecx = MEM32(ebp + (-0x10)); /* 0x47055CBC: mov ecx, dword ptr [ebp - 0x10] */
   8080     MEM32(FS_BASE + (0)) = ecx; /* 0x47055CBF: mov dword ptr fs:[0], ecx */
   8081     edi = POP32_VAL(esp); /* 0x47055CC6: pop edi */
   8082     esi = POP32_VAL(esp); /* 0x47055CC7: pop esi */
   8083     ebx = POP32_VAL(esp); /* 0x47055CC8: pop ebx */
   8084     esp = ebp; /* 0x47055CC9: mov esp, ebp */
   8085     ebp = POP32_VAL(esp); /* 0x47055CCB: pop ebp */
   8086     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055CCC: ret  */
   8087     RECOMP_REGS_OUT();
   8088 }
   8089 
   8090 void sub_47055C89(void) {
   8091     int _fpu_cmp = 0;
   8092     uint32_t _cf = 0;
   8093     int _df = 1;
   8094     uint32_t _flag_k = FK_NONE;
   8095     uint32_t _flag_a = 0, _flag_b = 0;
   8096     uint32_t _itail_tgt = 0;
   8097     RECOMP_REGS_LOCALS
   8098     RECOMP_ENTER(0x47055C89u);
   8099 
   8100 L_47055C89:
   8101     MEM32(ebp + (-0x4)) = 0; /* 0x47055C89: mov dword ptr [ebp - 4], 0 */
   8102     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47055C90: mov dword ptr [ebp - 4], 0xffffffff */
   8103     RECOMP_ICALL(0x47055C9Cu); /* 0x47055C97: call 0x47055c9c */ /* not lifted */
   8104     RECOMP_FLAGS_IN();
   8105     PUSH32(esp, 0); /* 0x47055C9C: push 0 */
   8106     RECOMP_ICALL(0x470553A0u); /* 0x47055C9E: call 0x470553a0 */ /* not lifted */
   8107     RECOMP_FLAGS_IN();
   8108     ecx = eax; /* 0x47055CA3: mov ecx, eax */
   8109     RECOMP_ICALL(0x470551B0u); /* 0x47055CA5: call 0x470551b0 */ /* not lifted */
   8110     RECOMP_FLAGS_IN();
   8111     esi = MEM32(ebp + (-0x20)); /* 0x47055CAA: mov esi, dword ptr [ebp - 0x20] */
   8112     PUSH32(esp, esi); /* 0x47055CAD: push esi */
   8113     RECOMP_ICALL(MEM32(0x470AC33C)); /* 0x47055CAE: call dword ptr [0x470ac33c] */
   8114     RECOMP_FLAGS_IN();
   8115     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8116     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8117     esp = esp + 4; /* 0x47055CB4: add esp, 4 */
   8118     _flag_k = FK_ADD;
   8119     esp = MEM32(ebp + (-0x18)); /* 0x47055CB7: mov esp, dword ptr [ebp - 0x18] */
   8120     eax = esi; /* 0x47055CBA: mov eax, esi */
   8121     ecx = MEM32(ebp + (-0x10)); /* 0x47055CBC: mov ecx, dword ptr [ebp - 0x10] */
   8122     MEM32(FS_BASE + (0)) = ecx; /* 0x47055CBF: mov dword ptr fs:[0], ecx */
   8123     edi = POP32_VAL(esp); /* 0x47055CC6: pop edi */
   8124     esi = POP32_VAL(esp); /* 0x47055CC7: pop esi */
   8125     ebx = POP32_VAL(esp); /* 0x47055CC8: pop ebx */
   8126     esp = ebp; /* 0x47055CC9: mov esp, ebp */
   8127     ebp = POP32_VAL(esp); /* 0x47055CCB: pop ebp */
   8128     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055CCC: ret  */
   8129     RECOMP_REGS_OUT();
   8130 }
   8131 
   8132 void sub_47055C9C(void) {
   8133     int _fpu_cmp = 0;
   8134     uint32_t _cf = 0;
   8135     int _df = 1;
   8136     uint32_t _flag_k = FK_NONE;
   8137     uint32_t _flag_a = 0, _flag_b = 0;
   8138     uint32_t _itail_tgt = 0;
   8139     RECOMP_REGS_LOCALS
   8140     RECOMP_ENTER(0x47055C9Cu);
   8141 
   8142 L_47055C9C:
   8143     PUSH32(esp, 0); /* 0x47055C9C: push 0 */
   8144     RECOMP_ICALL(0x470553A0u); /* 0x47055C9E: call 0x470553a0 */ /* not lifted */
   8145     RECOMP_FLAGS_IN();
   8146     ecx = eax; /* 0x47055CA3: mov ecx, eax */
   8147     RECOMP_ICALL(0x470551B0u); /* 0x47055CA5: call 0x470551b0 */ /* not lifted */
   8148     RECOMP_FLAGS_IN();
   8149     esi = MEM32(ebp + (-0x20)); /* 0x47055CAA: mov esi, dword ptr [ebp - 0x20] */
   8150     PUSH32(esp, esi); /* 0x47055CAD: push esi */
   8151     RECOMP_ICALL(MEM32(0x470AC33C)); /* 0x47055CAE: call dword ptr [0x470ac33c] */
   8152     RECOMP_FLAGS_IN();
   8153     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8154     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8155     esp = esp + 4; /* 0x47055CB4: add esp, 4 */
   8156     _flag_k = FK_ADD;
   8157     esp = MEM32(ebp + (-0x18)); /* 0x47055CB7: mov esp, dword ptr [ebp - 0x18] */
   8158     eax = esi; /* 0x47055CBA: mov eax, esi */
   8159     ecx = MEM32(ebp + (-0x10)); /* 0x47055CBC: mov ecx, dword ptr [ebp - 0x10] */
   8160     MEM32(FS_BASE + (0)) = ecx; /* 0x47055CBF: mov dword ptr fs:[0], ecx */
   8161     edi = POP32_VAL(esp); /* 0x47055CC6: pop edi */
   8162     esi = POP32_VAL(esp); /* 0x47055CC7: pop esi */
   8163     ebx = POP32_VAL(esp); /* 0x47055CC8: pop ebx */
   8164     esp = ebp; /* 0x47055CC9: mov esp, ebp */
   8165     ebp = POP32_VAL(esp); /* 0x47055CCB: pop ebp */
   8166     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055CCC: ret  */
   8167     RECOMP_REGS_OUT();
   8168 }
   8169 
   8170 void sub_47055CD0(void) {
   8171     int _fpu_cmp = 0;
   8172     uint32_t _cf = 0;
   8173     int _df = 1;
   8174     uint32_t _flag_k = FK_NONE;
   8175     uint32_t _flag_a = 0, _flag_b = 0;
   8176     uint32_t _itail_tgt = 0;
   8177     RECOMP_REGS_LOCALS
   8178     RECOMP_ENTER(0x47055CD0u);
   8179 
   8180 L_47055CD0:
   8181     PUSH32(esp, esi); /* 0x47055CD0: push esi */
   8182     PUSH32(esp, edi); /* 0x47055CD1: push edi */
   8183     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47055CD2: call dword ptr [0x470ac150] */
   8184     RECOMP_FLAGS_IN();
   8185     edi = eax; /* 0x47055CD8: mov edi, eax */
   8186     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47055CDA: call dword ptr [0x470ac3c8] */
   8187     RECOMP_FLAGS_IN();
   8188     eax = MEM32(eax); /* 0x47055CE0: mov eax, dword ptr [eax] */
   8189     /* test eax, eax */ /* 0x47055CE2: test eax, eax */
   8190     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8191     _cf = 0;
   8192     _flag_k = FK_TEST;
   8193     if (TEST_Z(_flag_a, _flag_b)) goto L_47055CE8; /* 0x47055CE4: je 0x47055ce8 */
   8194 L_47055CE6:
   8195     edi = eax; /* 0x47055CE6: mov edi, eax */
   8196 L_47055CE8:
   8197     RECOMP_ICALL(0x47039020u); /* 0x47055CE8: call 0x47039020 */ /* not lifted */
   8198     RECOMP_FLAGS_IN();
   8199     esi = eax; /* 0x47055CED: mov esi, eax */
   8200     ecx = esi; /* 0x47055CEF: mov ecx, esi */
   8201     RECOMP_ICALL(0x4703B210u); /* 0x47055CF1: call 0x4703b210 */ /* not lifted */
   8202     RECOMP_FLAGS_IN();
   8203     PUSH32(esp, eax); /* 0x47055CF6: push eax */
   8204     ecx = esi; /* 0x47055CF7: mov ecx, esi */
   8205     RECOMP_ICALL(0x4703B240u); /* 0x47055CF9: call 0x4703b240 */ /* not lifted */
   8206     RECOMP_FLAGS_IN();
   8207     PUSH32(esp, eax); /* 0x47055CFE: push eax */
   8208     ecx = esi; /* 0x47055CFF: mov ecx, esi */
   8209     RECOMP_ICALL(0x4703B080u); /* 0x47055D01: call 0x4703b080 */ /* not lifted */
   8210     RECOMP_FLAGS_IN();
   8211     PUSH32(esp, eax); /* 0x47055D06: push eax */
   8212     PUSH32(esp, edi); /* 0x47055D07: push edi */
   8213     PUSH32(esp, 0); /* 0x47055D08: push 0 */
   8214     PUSH32(esp, 0xA3Au); /* 0x47055D0A: push 0xa3a */
   8215     PUSH32(esp, 0x47108F38u); /* 0x47055D0F: push 0x47108f38 */
   8216     ecx = esi; /* 0x47055D14: mov ecx, esi */
   8217     RECOMP_ICALL(0x4703A340u); /* 0x47055D16: call 0x4703a340 */ /* not lifted */
   8218     RECOMP_FLAGS_IN();
   8219     PUSH32(esp, 0x471090A8u); /* 0x47055D1B: push 0x471090a8 */
   8220     PUSH32(esp, 4); /* 0x47055D20: push 4 */
   8221     PUSH32(esp, esi); /* 0x47055D22: push esi */
   8222     RECOMP_ICALL(0x47039830u); /* 0x47055D23: call 0x47039830 */ /* not lifted */
   8223     RECOMP_FLAGS_IN();
   8224     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8225     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8226     esp = esp + 0xCu; /* 0x47055D28: add esp, 0xc */
   8227     _flag_k = FK_ADD;
   8228     edi = POP32_VAL(esp); /* 0x47055D2B: pop edi */
   8229     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8230     eax = 0; /* 0x47055D2C: xor eax, eax */
   8231     _cf = 0;
   8232     _flag_k = FK_TEST;
   8233     esi = POP32_VAL(esp); /* 0x47055D2E: pop esi */
   8234     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055D2F: ret  */
   8235     RECOMP_REGS_OUT();
   8236 }
   8237 
   8238 void sub_47055D30(void) {
   8239     int _fpu_cmp = 0;
   8240     uint32_t _cf = 0;
   8241     int _df = 1;
   8242     uint32_t _flag_k = FK_NONE;
   8243     uint32_t _flag_a = 0, _flag_b = 0;
   8244     uint32_t _itail_tgt = 0;
   8245     RECOMP_REGS_LOCALS
   8246     RECOMP_ENTER(0x47055D30u);
   8247 
   8248 L_47055D30:
   8249     ecx = MEM32(esp + 0x4); /* 0x47055D30: mov ecx, dword ptr [esp + 4] */
   8250     edx = MEM32(esp + 0x8); /* 0x47055D34: mov edx, dword ptr [esp + 8] */
   8251     eax = MEM32(ecx); /* 0x47055D38: mov eax, dword ptr [ecx] */
   8252     PUSH32(esp, edx); /* 0x47055D3A: push edx */
   8253     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47055D3B: call dword ptr [eax + 4] */
   8254     RECOMP_FLAGS_IN();
   8255     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055D3E: ret  */
   8256     RECOMP_REGS_OUT();
   8257 }
   8258 
   8259 void sub_47055D40(void) {
   8260     int _fpu_cmp = 0;
   8261     uint32_t _cf = 0;
   8262     int _df = 1;
   8263     uint32_t _flag_k = FK_NONE;
   8264     uint32_t _flag_a = 0, _flag_b = 0;
   8265     uint32_t _itail_tgt = 0;
   8266     RECOMP_REGS_LOCALS
   8267     RECOMP_ENTER(0x47055D40u);
   8268 
   8269     goto L_47055D40;
   8270 L_47055B60:
   8271     PUSH32(esp, ebp); /* 0x47055B60: push ebp */
   8272     ebp = esp; /* 0x47055B61: mov ebp, esp */
   8273     PUSH32(esp, 0xFFFFFFFFu); /* 0x47055B63: push -1 */
   8274     PUSH32(esp, 0x470ADC98u); /* 0x47055B65: push 0x470adc98 */
   8275     PUSH32(esp, 0x470A34B2u); /* 0x47055B6A: push 0x470a34b2 */
   8276     eax = MEM32(FS_BASE + (0)); /* 0x47055B6F: mov eax, dword ptr fs:[0] */
   8277     PUSH32(esp, eax); /* 0x47055B75: push eax */
   8278     MEM32(FS_BASE + (0)) = esp; /* 0x47055B76: mov dword ptr fs:[0], esp */
   8279     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14Cu);
   8280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8281     esp = esp - 0x14Cu; /* 0x47055B7D: sub esp, 0x14c */
   8282     _flag_k = FK_CMP;
   8283     PUSH32(esp, ebx); /* 0x47055B83: push ebx */
   8284     PUSH32(esp, esi); /* 0x47055B84: push esi */
   8285     PUSH32(esp, edi); /* 0x47055B85: push edi */
   8286     MEM32(ebp + (-0x18)) = esp; /* 0x47055B86: mov dword ptr [ebp - 0x18], esp */
   8287     esi = ecx; /* 0x47055B89: mov esi, ecx */
   8288     RECOMP_ICALL(0x47039020u); /* 0x47055B8B: call 0x47039020 */ /* not lifted */
   8289     RECOMP_FLAGS_IN();
   8290     edi = eax; /* 0x47055B90: mov edi, eax */
   8291     eax = MEM32(esi + 0x14); /* 0x47055B92: mov eax, dword ptr [esi + 0x14] */
   8292     /* test eax, eax */ /* 0x47055B95: test eax, eax */
   8293     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8294     _cf = 0;
   8295     _flag_k = FK_TEST;
   8296     if (TEST_Z(_flag_a, _flag_b)) goto L_47055BD4; /* 0x47055B97: je 0x47055bd4 */
   8297 L_47055B99:
   8298     PUSH32(esp, 0); /* 0x47055B99: push 0 */
   8299     PUSH32(esp, eax); /* 0x47055B9B: push eax */
   8300     ecx = edi; /* 0x47055B9C: mov ecx, edi */
   8301     RECOMP_ICALL(0x4703B250u); /* 0x47055B9E: call 0x4703b250 */ /* not lifted */
   8302     RECOMP_FLAGS_IN();
   8303     PUSH32(esp, 0); /* 0x47055BA3: push 0 */
   8304     eax = MEM32(esi + 0x18); /* 0x47055BA5: mov eax, dword ptr [esi + 0x18] */
   8305     PUSH32(esp, eax); /* 0x47055BA8: push eax */
   8306     ecx = edi; /* 0x47055BA9: mov ecx, edi */
   8307     RECOMP_ICALL(0x47039380u); /* 0x47055BAB: call 0x47039380 */ /* not lifted */
   8308     RECOMP_FLAGS_IN();
   8309     eax = MEM32(esi + 0x1C); /* 0x47055BB0: mov eax, dword ptr [esi + 0x1c] */
   8310     /* test eax, eax */ /* 0x47055BB3: test eax, eax */
   8311     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8312     _cf = 0;
   8313     _flag_k = FK_TEST;
   8314     if (TEST_Z(_flag_a, _flag_b)) goto L_47055BBE; /* 0x47055BB5: je 0x47055bbe */
   8315 L_47055BB7:
   8316     ecx = edi; /* 0x47055BB7: mov ecx, edi */
   8317     RECOMP_ICALL(0x4703B180u); /* 0x47055BB9: call 0x4703b180 */ /* not lifted */
   8318     RECOMP_FLAGS_IN();
   8319 L_47055BBE:
   8320     ecx = MEM32(esi + 0x20); /* 0x47055BBE: mov ecx, dword ptr [esi + 0x20] */
   8321     PUSH32(esp, ecx); /* 0x47055BC1: push ecx */
   8322     ecx = edi; /* 0x47055BC2: mov ecx, edi */
   8323     RECOMP_ICALL(0x4703B070u); /* 0x47055BC4: call 0x4703b070 */ /* not lifted */
   8324     RECOMP_FLAGS_IN();
   8325     edx = MEM32(esi + 0x24); /* 0x47055BC9: mov edx, dword ptr [esi + 0x24] */
   8326     PUSH32(esp, edx); /* 0x47055BCC: push edx */
   8327     ecx = edi; /* 0x47055BCD: mov ecx, edi */
   8328     RECOMP_ICALL(0x4703B0C0u); /* 0x47055BCF: call 0x4703b0c0 */ /* not lifted */
   8329     RECOMP_FLAGS_IN();
   8330 L_47055BD4:
   8331     eax = MEM32(esi + 0x28); /* 0x47055BD4: mov eax, dword ptr [esi + 0x28] */
   8332     PUSH32(esp, eax); /* 0x47055BD7: push eax */
   8333     ecx = edi; /* 0x47055BD8: mov ecx, edi */
   8334     RECOMP_ICALL(0x4703B130u); /* 0x47055BDA: call 0x4703b130 */ /* not lifted */
   8335     RECOMP_FLAGS_IN();
   8336     ecx = MEM32(esi + 0x2C); /* 0x47055BDF: mov ecx, dword ptr [esi + 0x2c] */
   8337     PUSH32(esp, ecx); /* 0x47055BE2: push ecx */
   8338     ecx = edi; /* 0x47055BE3: mov ecx, edi */
   8339     RECOMP_ICALL(0x4703B160u); /* 0x47055BE5: call 0x4703b160 */ /* not lifted */
   8340     RECOMP_FLAGS_IN();
   8341     eax = MEM32(esi + 0x10); /* 0x47055BEA: mov eax, dword ptr [esi + 0x10] */
   8342     /* test eax, eax */ /* 0x47055BED: test eax, eax */
   8343     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8344     _cf = 0;
   8345     _flag_k = FK_TEST;
   8346     if (TEST_Z(_flag_a, _flag_b)) goto L_47055BFE; /* 0x47055BEF: je 0x47055bfe */
   8347 L_47055BF1:
   8348     PUSH32(esp, eax); /* 0x47055BF1: push eax */
   8349     RECOMP_ICALL(0x47039020u); /* 0x47055BF2: call 0x47039020 */ /* not lifted */
   8350     RECOMP_FLAGS_IN();
   8351     ecx = eax; /* 0x47055BF7: mov ecx, eax */
   8352     RECOMP_ICALL(0x4703B100u); /* 0x47055BF9: call 0x4703b100 */ /* not lifted */
   8353     RECOMP_FLAGS_IN();
   8354 L_47055BFE:
   8355     eax = MEM32(esi + 0xC); /* 0x47055BFE: mov eax, dword ptr [esi + 0xc] */
   8356     /* test eax, eax */ /* 0x47055C01: test eax, eax */
   8357     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8358     _cf = 0;
   8359     _flag_k = FK_TEST;
   8360     if (TEST_Z(_flag_a, _flag_b)) goto L_47055C15; /* 0x47055C03: je 0x47055c15 */
   8361 L_47055C05:
   8362     RECOMP_ICALL(0x4708ACA0u); /* 0x47055C05: call 0x4708aca0 */ /* not lifted */
   8363     RECOMP_FLAGS_IN();
   8364     ecx = MEM32(esi + 0xC); /* 0x47055C0A: mov ecx, dword ptr [esi + 0xc] */
   8365     PUSH32(esp, ecx); /* 0x47055C0D: push ecx */
   8366     ecx = eax; /* 0x47055C0E: mov ecx, eax */
   8367     RECOMP_ICALL(0x4708AED0u); /* 0x47055C10: call 0x4708aed0 */ /* not lifted */
   8368     RECOMP_FLAGS_IN();
   8369 L_47055C15:
   8370     edi = MEM32(esi); /* 0x47055C15: mov edi, dword ptr [esi] */
   8371     ebx = MEM32(esi + 0x4); /* 0x47055C17: mov ebx, dword ptr [esi + 4] */
   8372     /* test esi, esi */ /* 0x47055C1A: test esi, esi */
   8373     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8374     _cf = 0;
   8375     _flag_k = FK_TEST;
   8376     if (TEST_Z(_flag_a, _flag_b)) goto L_47055C27; /* 0x47055C1C: je 0x47055c27 */
   8377 L_47055C1E:
   8378     PUSH32(esp, esi); /* 0x47055C1E: push esi */
   8379     RECOMP_ICALL(0x470A32A2u); /* 0x47055C1F: call 0x470a32a2 */ /* not lifted */
   8380     RECOMP_FLAGS_IN();
   8381     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8382     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8383     esp = esp + 4; /* 0x47055C24: add esp, 4 */
   8384     _flag_k = FK_ADD;
   8385 L_47055C27:
   8386     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8387     eax = 0; /* 0x47055C27: xor eax, eax */
   8388     _cf = 0;
   8389     _flag_k = FK_TEST;
   8390     MEM32(ebp + (-0x20)) = eax; /* 0x47055C29: mov dword ptr [ebp - 0x20], eax */
   8391     MEM32(ebp + (-0x4)) = eax; /* 0x47055C2C: mov dword ptr [ebp - 4], eax */
   8392     MEM32(ebp + (-0x4)) = 1; /* 0x47055C2F: mov dword ptr [ebp - 4], 1 */
   8393     RECOMP_ICALL(0x47058910u); /* 0x47055C36: call 0x47058910 */ /* not lifted */
   8394     RECOMP_FLAGS_IN();
   8395     eax = MEM32(eax + 0x14); /* 0x47055C3B: mov eax, dword ptr [eax + 0x14] */
   8396     MEM32(ebp + (-0x2C)) = eax; /* 0x47055C3E: mov dword ptr [ebp - 0x2c], eax */
   8397     /* test eax, eax */ /* 0x47055C41: test eax, eax */
   8398     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8399     _cf = 0;
   8400     _flag_k = FK_TEST;
   8401     if (TEST_Z(_flag_a, _flag_b)) goto L_47055C52; /* 0x47055C43: je 0x47055c52 */
   8402 L_47055C45:
   8403     edx = MEM32(eax); /* 0x47055C45: mov edx, dword ptr [eax] */
   8404     PUSH32(esp, ebx); /* 0x47055C47: push ebx */
   8405     PUSH32(esp, edi); /* 0x47055C48: push edi */
   8406     ecx = eax; /* 0x47055C49: mov ecx, eax */
   8407     RECOMP_ICALL(MEM32(edx)); /* 0x47055C4B: call dword ptr [edx] */
   8408     RECOMP_FLAGS_IN();
   8409     MEM32(ebp + (-0x20)) = eax; /* 0x47055C4D: mov dword ptr [ebp - 0x20], eax */
   8410     goto L_47055C89; /* 0x47055C50: jmp 0x47055c89 */
   8411 L_47055C52:
   8412     PUSH32(esp, ebx); /* 0x47055C52: push ebx */
   8413     RECOMP_ICALL(edi); /* 0x47055C53: call edi */
   8414     RECOMP_FLAGS_IN();
   8415     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8416     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8417     esp = esp + 4; /* 0x47055C55: add esp, 4 */
   8418     _flag_k = FK_ADD;
   8419     MEM32(ebp + (-0x20)) = eax; /* 0x47055C58: mov dword ptr [ebp - 0x20], eax */
   8420     goto L_47055C89; /* 0x47055C5B: jmp 0x47055c89 */
   8421 L_47055C89:
   8422     MEM32(ebp + (-0x4)) = 0; /* 0x47055C89: mov dword ptr [ebp - 4], 0 */
   8423     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47055C90: mov dword ptr [ebp - 4], 0xffffffff */
   8424     RECOMP_ICALL(0x47055C9Cu); /* 0x47055C97: call 0x47055c9c */ /* not lifted */
   8425     RECOMP_FLAGS_IN();
   8426     PUSH32(esp, 0); /* 0x47055C9C: push 0 */
   8427     RECOMP_ICALL(0x470553A0u); /* 0x47055C9E: call 0x470553a0 */ /* not lifted */
   8428     RECOMP_FLAGS_IN();
   8429     ecx = eax; /* 0x47055CA3: mov ecx, eax */
   8430     RECOMP_ICALL(0x470551B0u); /* 0x47055CA5: call 0x470551b0 */ /* not lifted */
   8431     RECOMP_FLAGS_IN();
   8432     esi = MEM32(ebp + (-0x20)); /* 0x47055CAA: mov esi, dword ptr [ebp - 0x20] */
   8433     PUSH32(esp, esi); /* 0x47055CAD: push esi */
   8434     RECOMP_ICALL(MEM32(0x470AC33C)); /* 0x47055CAE: call dword ptr [0x470ac33c] */
   8435     RECOMP_FLAGS_IN();
   8436     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8437     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8438     esp = esp + 4; /* 0x47055CB4: add esp, 4 */
   8439     _flag_k = FK_ADD;
   8440     esp = MEM32(ebp + (-0x18)); /* 0x47055CB7: mov esp, dword ptr [ebp - 0x18] */
   8441     eax = esi; /* 0x47055CBA: mov eax, esi */
   8442     ecx = MEM32(ebp + (-0x10)); /* 0x47055CBC: mov ecx, dword ptr [ebp - 0x10] */
   8443     MEM32(FS_BASE + (0)) = ecx; /* 0x47055CBF: mov dword ptr fs:[0], ecx */
   8444     edi = POP32_VAL(esp); /* 0x47055CC6: pop edi */
   8445     esi = POP32_VAL(esp); /* 0x47055CC7: pop esi */
   8446     ebx = POP32_VAL(esp); /* 0x47055CC8: pop ebx */
   8447     esp = ebp; /* 0x47055CC9: mov esp, ebp */
   8448     ebp = POP32_VAL(esp); /* 0x47055CCB: pop ebp */
   8449     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055CCC: ret  */
   8450 L_47055D40:
   8451     ecx = MEM32(esp + 0x4); /* 0x47055D40: mov ecx, dword ptr [esp + 4] */
   8452     RECOMP_BACKEDGE();
   8453     goto L_47055B60; /* 0x47055D44: jmp 0x47055b60 */
   8454     { RECOMP_REGS_OUT(); return; } /* end of function */
   8455     RECOMP_REGS_OUT();
   8456 }
   8457 
   8458 void sub_47055D50(void) {
   8459     int _fpu_cmp = 0;
   8460     uint32_t _cf = 0;
   8461     int _df = 1;
   8462     uint32_t _flag_k = FK_NONE;
   8463     uint32_t _flag_a = 0, _flag_b = 0;
   8464     uint32_t _itail_tgt = 0;
   8465     RECOMP_REGS_LOCALS
   8466     RECOMP_ENTER(0x47055D50u);
   8467 
   8468 L_47055D50:
   8469     eax = MEM32(esp + 0x4); /* 0x47055D50: mov eax, dword ptr [esp + 4] */
   8470     edx = MEM32(esp + 0xC); /* 0x47055D54: mov edx, dword ptr [esp + 0xc] */
   8471     PUSH32(esp, ebx); /* 0x47055D58: push ebx */
   8472     ebx = MEM32(esp + 0x1C); /* 0x47055D59: mov ebx, dword ptr [esp + 0x1c] */
   8473     PUSH32(esp, ebp); /* 0x47055D5D: push ebp */
   8474     ebp = MEM32(esp + 0x24); /* 0x47055D5E: mov ebp, dword ptr [esp + 0x24] */
   8475     PUSH32(esp, esi); /* 0x47055D62: push esi */
   8476     esi = ecx; /* 0x47055D63: mov esi, ecx */
   8477     ecx = MEM32(esp + 0x14); /* 0x47055D65: mov ecx, dword ptr [esp + 0x14] */
   8478     MEM32(esi) = eax; /* 0x47055D69: mov dword ptr [esi], eax */
   8479     eax = MEM32(esp + 0x1C); /* 0x47055D6B: mov eax, dword ptr [esp + 0x1c] */
   8480     MEM32(esi + 0x4) = ecx; /* 0x47055D6F: mov dword ptr [esi + 4], ecx */
   8481     ecx = MEM32(esp + 0x20); /* 0x47055D72: mov ecx, dword ptr [esp + 0x20] */
   8482     MEM32(esi + 0xC) = eax; /* 0x47055D76: mov dword ptr [esi + 0xc], eax */
   8483     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8484     eax = 0; /* 0x47055D79: xor eax, eax */
   8485     _cf = 0;
   8486     _flag_k = FK_TEST;
   8487     MEM32(esi + 0x8) = edx; /* 0x47055D7B: mov dword ptr [esi + 8], edx */
   8488     MEM32(esi + 0x10) = ecx; /* 0x47055D7E: mov dword ptr [esi + 0x10], ecx */
   8489     MEM32(esi + 0x14) = eax; /* 0x47055D81: mov dword ptr [esi + 0x14], eax */
   8490     MEM32(esi + 0x18) = eax; /* 0x47055D84: mov dword ptr [esi + 0x18], eax */
   8491     MEM32(esi + 0x1C) = eax; /* 0x47055D87: mov dword ptr [esi + 0x1c], eax */
   8492     MEM32(esi + 0x20) = 1; /* 0x47055D8A: mov dword ptr [esi + 0x20], 1 */
   8493     MEM32(esi + 0x24) = eax; /* 0x47055D91: mov dword ptr [esi + 0x24], eax */
   8494     MEM32(esi + 0x28) = ebx; /* 0x47055D94: mov dword ptr [esi + 0x28], ebx */
   8495     MEM32(esi + 0x2C) = ebp; /* 0x47055D97: mov dword ptr [esi + 0x2c], ebp */
   8496     RECOMP_ICALL(0x47038FE0u); /* 0x47055D9A: call 0x47038fe0 */ /* not lifted */
   8497     RECOMP_FLAGS_IN();
   8498     /* test eax, eax */ /* 0x47055D9F: test eax, eax */
   8499     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8500     _cf = 0;
   8501     _flag_k = FK_TEST;
   8502     if (TEST_Z(_flag_a, _flag_b)) goto L_47055DEE; /* 0x47055DA1: je 0x47055dee */
   8503 L_47055DA3:
   8504     PUSH32(esp, edi); /* 0x47055DA3: push edi */
   8505     RECOMP_ICALL(0x47039020u); /* 0x47055DA4: call 0x47039020 */ /* not lifted */
   8506     RECOMP_FLAGS_IN();
   8507     edi = eax; /* 0x47055DA9: mov edi, eax */
   8508     ecx = edi; /* 0x47055DAB: mov ecx, edi */
   8509     RECOMP_ICALL(0x4703B240u); /* 0x47055DAD: call 0x4703b240 */ /* not lifted */
   8510     RECOMP_FLAGS_IN();
   8511     PUSH32(esp, 0); /* 0x47055DB2: push 0 */
   8512     ecx = edi; /* 0x47055DB4: mov ecx, edi */
   8513     MEM32(esi + 0x14) = eax; /* 0x47055DB6: mov dword ptr [esi + 0x14], eax */
   8514     RECOMP_ICALL(0x470393B0u); /* 0x47055DB9: call 0x470393b0 */ /* not lifted */
   8515     RECOMP_FLAGS_IN();
   8516     ecx = edi; /* 0x47055DBE: mov ecx, edi */
   8517     MEM32(esi + 0x18) = eax; /* 0x47055DC0: mov dword ptr [esi + 0x18], eax */
   8518     RECOMP_ICALL(0x4703B1A0u); /* 0x47055DC3: call 0x4703b1a0 */ /* not lifted */
   8519     RECOMP_FLAGS_IN();
   8520     ecx = edi; /* 0x47055DC8: mov ecx, edi */
   8521     MEM32(esi + 0x1C) = eax; /* 0x47055DCA: mov dword ptr [esi + 0x1c], eax */
   8522     RECOMP_ICALL(0x4703B080u); /* 0x47055DCD: call 0x4703b080 */ /* not lifted */
   8523     RECOMP_FLAGS_IN();
   8524     ecx = edi; /* 0x47055DD2: mov ecx, edi */
   8525     MEM32(esi + 0x20) = eax; /* 0x47055DD4: mov dword ptr [esi + 0x20], eax */
   8526     RECOMP_ICALL(0x4703B0B0u); /* 0x47055DD7: call 0x4703b0b0 */ /* not lifted */
   8527     RECOMP_FLAGS_IN();
   8528     edi = POP32_VAL(esp); /* 0x47055DDC: pop edi */
   8529     MEM32(esi + 0x24) = eax; /* 0x47055DDD: mov dword ptr [esi + 0x24], eax */
   8530     MEM32(esi + 0x28) = ebx; /* 0x47055DE0: mov dword ptr [esi + 0x28], ebx */
   8531     MEM32(esi + 0x2C) = ebp; /* 0x47055DE3: mov dword ptr [esi + 0x2c], ebp */
   8532     eax = esi; /* 0x47055DE6: mov eax, esi */
   8533     esi = POP32_VAL(esp); /* 0x47055DE8: pop esi */
   8534     ebp = POP32_VAL(esp); /* 0x47055DE9: pop ebp */
   8535     ebx = POP32_VAL(esp); /* 0x47055DEA: pop ebx */
   8536     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x47055DEB: ret 0x1c */
   8537 L_47055DEE:
   8538     eax = esi; /* 0x47055DEE: mov eax, esi */
   8539     esi = POP32_VAL(esp); /* 0x47055DF0: pop esi */
   8540     ebp = POP32_VAL(esp); /* 0x47055DF1: pop ebp */
   8541     ebx = POP32_VAL(esp); /* 0x47055DF2: pop ebx */
   8542     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x47055DF3: ret 0x1c */
   8543     RECOMP_REGS_OUT();
   8544 }
   8545 
   8546 void sub_47055E00(void) {
   8547     int _fpu_cmp = 0;
   8548     uint32_t _cf = 0;
   8549     int _df = 1;
   8550     uint32_t _flag_k = FK_NONE;
   8551     uint32_t _flag_a = 0, _flag_b = 0;
   8552     uint32_t _itail_tgt = 0;
   8553     RECOMP_REGS_LOCALS
   8554     RECOMP_ENTER(0x47055E00u);
   8555 
   8556 L_47055E00:
   8557     PUSH32(esp, 0xFFFFFFFFu); /* 0x47055E00: push -1 */
   8558 L_47055E02:
   8559     PUSH32(esp, 0x470A765Bu); /* 0x47055E02: push 0x470a765b */
   8560 L_47055E07:
   8561     eax = MEM32(FS_BASE + (0)); /* 0x47055E07: mov eax, dword ptr fs:[0] */
   8562 L_47055E0D:
   8563     PUSH32(esp, eax); /* 0x47055E0D: push eax */
   8564 L_47055E0E:
   8565     MEM32(FS_BASE + (0)) = esp; /* 0x47055E0E: mov dword ptr fs:[0], esp */
   8566 L_47055E15:
   8567     PUSH32(esp, ecx); /* 0x47055E15: push ecx */
   8568 L_47055E16:
   8569     ecx = MEM32(esp + 0x34); /* 0x47055E16: mov ecx, dword ptr [esp + 0x34] */
   8570 L_47055E1A:
   8571     /* test ecx, ecx */ /* 0x47055E1A: test ecx, ecx */
   8572     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8573     _cf = 0;
   8574     _flag_k = FK_TEST;
   8575 L_47055E1C:
   8576     PUSH32(esp, esi); /* 0x47055E1C: push esi */
   8577 L_47055E1D:
   8578     PUSH32(esp, edi); /* 0x47055E1D: push edi */
   8579 L_47055E1E:
   8580     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47055E9A; /* 0x47055E1E: jne 0x47055e9a */
   8581 L_47055E20:
   8582     PUSH32(esp, 0x30u); /* 0x47055E20: push 0x30 */
   8583 L_47055E22:
   8584     RECOMP_ICALL(0x470A33F2u); /* 0x47055E22: call 0x470a33f2 */ /* not lifted */
   8585     RECOMP_FLAGS_IN();
   8586 L_47055E27:
   8587     esi = eax; /* 0x47055E27: mov esi, eax */
   8588 L_47055E29:
   8589     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8590     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8591     esp = esp + 4; /* 0x47055E29: add esp, 4 */
   8592     _flag_k = FK_ADD;
   8593 L_47055E2C:
   8594     MEM32(esp + 0x3C) = esi; /* 0x47055E2C: mov dword ptr [esp + 0x3c], esi */
   8595 L_47055E30:
   8596     /* test esi, esi */ /* 0x47055E30: test esi, esi */
   8597     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8598     _cf = 0;
   8599     _flag_k = FK_TEST;
   8600 L_47055E32:
   8601     MEM32(esp + 0x14) = 0; /* 0x47055E32: mov dword ptr [esp + 0x14], 0 */
   8602 L_47055E3A:
   8603     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47055E72; /* 0x47055E3A: je 0x47055e72 */
   8604 L_47055E3C:
   8605     RECOMP_ICALL(0x47039020u); /* 0x47055E3C: call 0x47039020 */ /* not lifted */
   8606     RECOMP_FLAGS_IN();
   8607 L_47055E41:
   8608     ecx = eax; /* 0x47055E41: mov ecx, eax */
   8609 L_47055E43:
   8610     RECOMP_ICALL(0x4703B150u); /* 0x47055E43: call 0x4703b150 */ /* not lifted */
   8611     RECOMP_FLAGS_IN();
   8612 L_47055E48:
   8613     PUSH32(esp, eax); /* 0x47055E48: push eax */
   8614 L_47055E49:
   8615     RECOMP_ICALL(0x47039020u); /* 0x47055E49: call 0x47039020 */ /* not lifted */
   8616     RECOMP_FLAGS_IN();
   8617 L_47055E4E:
   8618     ecx = eax; /* 0x47055E4E: mov ecx, eax */
   8619 L_47055E50:
   8620     RECOMP_ICALL(0x4703B120u); /* 0x47055E50: call 0x4703b120 */ /* not lifted */
   8621     RECOMP_FLAGS_IN();
   8622 L_47055E55:
   8623     ecx = MEM32(esp + 0x20); /* 0x47055E55: mov ecx, dword ptr [esp + 0x20] */
   8624 L_47055E59:
   8625     PUSH32(esp, eax); /* 0x47055E59: push eax */
   8626 L_47055E5A:
   8627     eax = MEM32(esp + 0x28); /* 0x47055E5A: mov eax, dword ptr [esp + 0x28] */
   8628 L_47055E5E:
   8629     PUSH32(esp, 0); /* 0x47055E5E: push 0 */
   8630 L_47055E60:
   8631     PUSH32(esp, 0); /* 0x47055E60: push 0 */
   8632 L_47055E62:
   8633     PUSH32(esp, 0x47055D40u); /* 0x47055E62: push 0x47055d40 */
   8634 L_47055E67:
   8635     PUSH32(esp, eax); /* 0x47055E67: push eax */
   8636 L_47055E68:
   8637     PUSH32(esp, ecx); /* 0x47055E68: push ecx */
   8638 L_47055E69:
   8639     ecx = esi; /* 0x47055E69: mov ecx, esi */
   8640 L_47055E6B:
   8641     RECOMP_ICALL(0x47055D50u); /* 0x47055E6B: call 0x47055d50 */ /* not lifted */
   8642     RECOMP_FLAGS_IN();
   8643 L_47055E70:
   8644     goto L_47055E74; /* 0x47055E70: jmp 0x47055e74 */
   8645 L_47055E72:
   8646     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8647     eax = 0; /* 0x47055E72: xor eax, eax */
   8648     _cf = 0;
   8649     _flag_k = FK_TEST;
   8650 L_47055E74:
   8651     /* test eax, eax */ /* 0x47055E74: test eax, eax */
   8652     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8653     _cf = 0;
   8654     _flag_k = FK_TEST;
   8655 L_47055E76:
   8656     ecx = eax; /* 0x47055E76: mov ecx, eax */
   8657 L_47055E78:
   8658     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47055E9A; /* 0x47055E78: jne 0x47055e9a */
   8659 L_47055E7A:
   8660     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47055E7A: call dword ptr [0x470ac3c8] */
   8661     RECOMP_FLAGS_IN();
   8662 L_47055E80:
   8663     edi = POP32_VAL(esp); /* 0x47055E80: pop edi */
   8664 L_47055E81:
   8665     MEM32(eax) = 0xCu; /* 0x47055E81: mov dword ptr [eax], 0xc */
   8666 L_47055E87:
   8667     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   8668     eax = eax | 0xFFFFFFFFu; /* 0x47055E87: or eax, 0xffffffff */
   8669     _cf = 0;
   8670     _flag_k = FK_TEST;
   8671 L_47055E8A:
   8672     esi = POP32_VAL(esp); /* 0x47055E8A: pop esi */
   8673 L_47055E8B:
   8674     ecx = MEM32(esp + 0x4); /* 0x47055E8B: mov ecx, dword ptr [esp + 4] */
   8675 L_47055E8F:
   8676     MEM32(FS_BASE + (0)) = ecx; /* 0x47055E8F: mov dword ptr fs:[0], ecx */
   8677 L_47055E96:
   8678     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   8679     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8680     esp = esp + 0x10u; /* 0x47055E96: add esp, 0x10 */
   8681     _flag_k = FK_ADD;
   8682 L_47055E99:
   8683     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055E99: ret  */
   8684 L_47055E9A:
   8685     esi = MEM32(esp + 0x28); /* 0x47055E9A: mov esi, dword ptr [esp + 0x28] */
   8686 L_47055E9E:
   8687     /* test esi, esi */ /* 0x47055E9E: test esi, esi */
   8688     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8689     _cf = 0;
   8690     _flag_k = FK_TEST;
   8691 L_47055EA0:
   8692     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47055EA6; /* 0x47055EA0: jne 0x47055ea6 */
   8693 L_47055EA2:
   8694     esi = esp + 0x8; /* 0x47055EA2: lea esi, [esp + 8] */
   8695 L_47055EA6:
   8696     PUSH32(esp, ebx); /* 0x47055EA6: push ebx */
   8697 L_47055EA7:
   8698     ebx = MEM32(esp + 0x30); /* 0x47055EA7: mov ebx, dword ptr [esp + 0x30] */
   8699 L_47055EAB:
   8700     /* test ebx, ebx */ /* 0x47055EAB: test ebx, ebx */
   8701     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   8702     _cf = 0;
   8703     _flag_k = FK_TEST;
   8704 L_47055EAD:
   8705     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47055EB3; /* 0x47055EAD: jne 0x47055eb3 */
   8706 L_47055EAF:
   8707     ebx = esp + 0x40; /* 0x47055EAF: lea ebx, [esp + 0x40] */
   8708 L_47055EB3:
   8709     edx = MEM32(esp + 0x28); /* 0x47055EB3: mov edx, dword ptr [esp + 0x28] */
   8710 L_47055EB7:
   8711     edi = MEM32(esp + 0x34); /* 0x47055EB7: mov edi, dword ptr [esp + 0x34] */
   8712 L_47055EBB:
   8713     PUSH32(esp, ebp); /* 0x47055EBB: push ebp */
   8714 L_47055EBC:
   8715     ebp = edx; /* 0x47055EBC: mov ebp, edx */
   8716 L_47055EBE:
   8717     if (2u) _cf = (((ebp) >> 1) & 1u); /* 0x47055EBE: shr ebp, 2 */
   8718     if (2u) { _flag_a = recomp_flags_pack((ebp >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8719     ebp = ebp >> 2u; /* 0x47055EBE: shr ebp, 2 */
   8720 L_47055EC1:
   8721     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(1);
   8722     ebp = ebp & 1; /* 0x47055EC1: and ebp, 1 */
   8723     _cf = 0;
   8724     _flag_k = FK_TEST;
   8725 L_47055EC4:
   8726     /* test edi, edi */ /* 0x47055EC4: test edi, edi */
   8727     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8728     _cf = 0;
   8729     _flag_k = FK_TEST;
   8730 L_47055EC6:
   8731     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47055ECB; /* 0x47055EC6: je 0x47055ecb */
   8732 L_47055EC8:
   8733     _flag_a = (uint32_t)((edx | 4)); _flag_b = (uint32_t)((edx | 4));
   8734     edx = edx | 4; /* 0x47055EC8: or edx, 4 */
   8735     _cf = 0;
   8736     _flag_k = FK_TEST;
   8737 L_47055ECB:
   8738     eax = MEM32(ecx + 0x8); /* 0x47055ECB: mov eax, dword ptr [ecx + 8] */
   8739 L_47055ECE:
   8740     PUSH32(esp, esi); /* 0x47055ECE: push esi */
   8741 L_47055ECF:
   8742     PUSH32(esp, edx); /* 0x47055ECF: push edx */
   8743 L_47055ED0:
   8744     edx = MEM32(esp + 0x48); /* 0x47055ED0: mov edx, dword ptr [esp + 0x48] */
   8745 L_47055ED4:
   8746     PUSH32(esp, ecx); /* 0x47055ED4: push ecx */
   8747 L_47055ED5:
   8748     PUSH32(esp, eax); /* 0x47055ED5: push eax */
   8749 L_47055ED6:
   8750     PUSH32(esp, edx); /* 0x47055ED6: push edx */
   8751 L_47055ED7:
   8752     PUSH32(esp, 0); /* 0x47055ED7: push 0 */
   8753 L_47055ED9:
   8754     RECOMP_ICALL(MEM32(0x470AC340)); /* 0x47055ED9: call dword ptr [0x470ac340] */
   8755     RECOMP_FLAGS_IN();
   8756 L_47055EDF:
   8757     esi = MEM32(0x470AC3C8); /* 0x47055EDF: mov esi, dword ptr [0x470ac3c8] */
   8758 L_47055EE5:
   8759     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   8760     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8761     esp = esp + 0x18u; /* 0x47055EE5: add esp, 0x18 */
   8762     _flag_k = FK_ADD;
   8763 L_47055EE8:
   8764     /* test edi, edi */ /* 0x47055EE8: test edi, edi */
   8765     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8766     _cf = 0;
   8767     _flag_k = FK_TEST;
   8768 L_47055EEA:
   8769     MEM32(ebx) = eax; /* 0x47055EEA: mov dword ptr [ebx], eax */
   8770 L_47055EEC:
   8771     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47055F65; /* 0x47055EEC: je 0x47055f65 */
   8772 L_47055EEE:
   8773     /* test eax, eax */ /* 0x47055EEE: test eax, eax */
   8774     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8775     _cf = 0;
   8776     _flag_k = FK_TEST;
   8777 L_47055EF0:
   8778     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47055F65; /* 0x47055EF0: je 0x47055f65 */
   8779 L_47055EF2:
   8780     PUSH32(esp, edi); /* 0x47055EF2: push edi */
   8781 L_47055EF3:
   8782     PUSH32(esp, eax); /* 0x47055EF3: push eax */
   8783 L_47055EF4:
   8784     RECOMP_ICALL(MEM32(0x470AC134)); /* 0x47055EF4: call dword ptr [0x470ac134] */
   8785     RECOMP_FLAGS_IN();
   8786 L_47055EFA:
   8787     /* test eax, eax */ /* 0x47055EFA: test eax, eax */
   8788     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8789     _cf = 0;
   8790     _flag_k = FK_TEST;
   8791 L_47055EFC:
   8792     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47055F0A; /* 0x47055EFC: jne 0x47055f0a */
   8793 L_47055EFE:
   8794     RECOMP_ICALL(esi); /* 0x47055EFE: call esi */
   8795     RECOMP_FLAGS_IN();
   8796 L_47055F00:
   8797     edi = eax; /* 0x47055F00: mov edi, eax */
   8798 L_47055F02:
   8799     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47055F02: call dword ptr [0x470ac150] */
   8800     RECOMP_FLAGS_IN();
   8801 L_47055F08:
   8802     MEM32(edi) = eax; /* 0x47055F08: mov dword ptr [edi], eax */
   8803 L_47055F0A:
   8804     /* test ebp, ebp */ /* 0x47055F0A: test ebp, ebp */
   8805     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   8806     _cf = 0;
   8807     _flag_k = FK_TEST;
   8808 L_47055F0C:
   8809     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47055F65; /* 0x47055F0C: jne 0x47055f65 */
   8810 L_47055F0E:
   8811     eax = MEM32(ebx); /* 0x47055F0E: mov eax, dword ptr [ebx] */
   8812 L_47055F10:
   8813     PUSH32(esp, eax); /* 0x47055F10: push eax */
   8814 L_47055F11:
   8815     RECOMP_ICALL(MEM32(0x470AC13C)); /* 0x47055F11: call dword ptr [0x470ac13c] */
   8816     RECOMP_FLAGS_IN();
   8817 L_47055F17:
   8818     /* cmp eax, 0xFFFFFFFFu */ /* 0x47055F17: cmp eax, -1 */
   8819     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   8820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8821     _flag_k = FK_CMP;
   8822 L_47055F1A:
   8823     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47055F65; /* 0x47055F1A: jne 0x47055f65 */
   8824 L_47055F1C:
   8825     RECOMP_ICALL(esi); /* 0x47055F1C: call esi */
   8826     RECOMP_FLAGS_IN();
   8827 L_47055F1E:
   8828     edi = eax; /* 0x47055F1E: mov edi, eax */
   8829 L_47055F20:
   8830     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47055F20: call dword ptr [0x470ac150] */
   8831     RECOMP_FLAGS_IN();
   8832 L_47055F26:
   8833     MEM32(edi) = eax; /* 0x47055F26: mov dword ptr [edi], eax */
   8834 L_47055F28:
   8835     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu);
   8836     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8837     eax = eax + 0xFFFFFFFDu; /* 0x47055F28: add eax, -3 */
   8838     _flag_k = FK_ADD;
   8839 L_47055F2B:
   8840     /* cmp eax, 0x4Du */ /* 0x47055F2B: cmp eax, 0x4d */
   8841     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du);
   8842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8843     _flag_k = FK_CMP;
   8844 L_47055F2E:
   8845     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47055F65; /* 0x47055F2E: ja 0x47055f65 */
   8846 L_47055F30:
   8847     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8848     ecx = 0; /* 0x47055F30: xor ecx, ecx */
   8849     _cf = 0;
   8850     _flag_k = FK_TEST;
   8851 L_47055F32:
   8852     SET_LO8(ecx, MEM8(eax + 0x4705603C)); /* 0x47055F32: mov cl, byte ptr [eax + 0x4705603c] */
   8853 L_47055F38:
   8854     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47056028)); goto _ljump; }
   8855 L_47055F3F:
   8856     RECOMP_ICALL(esi); /* 0x47055F3F: call esi */
   8857     RECOMP_FLAGS_IN();
   8858 L_47055F41:
   8859     MEM32(eax) = 0xCu; /* 0x47055F41: mov dword ptr [eax], 0xc */
   8860 L_47055F47:
   8861     goto L_47055F65; /* 0x47055F47: jmp 0x47055f65 */
   8862 L_47055F49:
   8863     RECOMP_ICALL(esi); /* 0x47055F49: call esi */
   8864     RECOMP_FLAGS_IN();
   8865 L_47055F4B:
   8866     MEM32(eax) = 0x11u; /* 0x47055F4B: mov dword ptr [eax], 0x11 */
   8867 L_47055F51:
   8868     goto L_47055F65; /* 0x47055F51: jmp 0x47055f65 */
   8869 L_47055F53:
   8870     RECOMP_ICALL(esi); /* 0x47055F53: call esi */
   8871     RECOMP_FLAGS_IN();
   8872 L_47055F55:
   8873     MEM32(eax) = 0xDu; /* 0x47055F55: mov dword ptr [eax], 0xd */
   8874 L_47055F5B:
   8875     goto L_47055F65; /* 0x47055F5B: jmp 0x47055f65 */
   8876 L_47055F5D:
   8877     RECOMP_ICALL(esi); /* 0x47055F5D: call esi */
   8878     RECOMP_FLAGS_IN();
   8879 L_47055F5F:
   8880     MEM32(eax) = 2; /* 0x47055F5F: mov dword ptr [eax], 2 */
   8881 L_47055F65:
   8882     edx = esp + 0x44; /* 0x47055F65: lea edx, [esp + 0x44] */
   8883 L_47055F69:
   8884     /* cmp ebx, edx */ /* 0x47055F69: cmp ebx, edx */
   8885     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   8886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8887     _flag_k = FK_CMP;
   8888 L_47055F6B:
   8889     ebp = POP32_VAL(esp); /* 0x47055F6B: pop ebp */
   8890 L_47055F6C:
   8891     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47055F79; /* 0x47055F6C: jne 0x47055f79 */
   8892 L_47055F6E:
   8893     eax = MEM32(esp + 0x40); /* 0x47055F6E: mov eax, dword ptr [esp + 0x40] */
   8894 L_47055F72:
   8895     PUSH32(esp, eax); /* 0x47055F72: push eax */
   8896 L_47055F73:
   8897     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47055F73: call dword ptr [0x470ac198] */
   8898     RECOMP_FLAGS_IN();
   8899 L_47055F79:
   8900     /* cmp MEM32(ebx), 0 */ /* 0x47055F79: cmp dword ptr [ebx], 0 */
   8901     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(0);
   8902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8903     _flag_k = FK_CMP;
   8904 L_47055F7C:
   8905     ebx = POP32_VAL(esp); /* 0x47055F7C: pop ebx */
   8906 L_47055F7D:
   8907     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47055F92; /* 0x47055F7D: je 0x47055f92 */
   8908 L_47055F7F:
   8909     edi = POP32_VAL(esp); /* 0x47055F7F: pop edi */
   8910 L_47055F80:
   8911     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8912     eax = 0; /* 0x47055F80: xor eax, eax */
   8913     _cf = 0;
   8914     _flag_k = FK_TEST;
   8915 L_47055F82:
   8916     esi = POP32_VAL(esp); /* 0x47055F82: pop esi */
   8917 L_47055F83:
   8918     ecx = MEM32(esp + 0x4); /* 0x47055F83: mov ecx, dword ptr [esp + 4] */
   8919 L_47055F87:
   8920     MEM32(FS_BASE + (0)) = ecx; /* 0x47055F87: mov dword ptr fs:[0], ecx */
   8921 L_47055F8E:
   8922     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   8923     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8924     esp = esp + 0x10u; /* 0x47055F8E: add esp, 0x10 */
   8925     _flag_k = FK_ADD;
   8926 L_47055F91:
   8927     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055F91: ret  */
   8928 L_47055F92:
   8929     RECOMP_ICALL(esi); /* 0x47055F92: call esi */
   8930     RECOMP_FLAGS_IN();
   8931 L_47055F94:
   8932     edi = eax; /* 0x47055F94: mov edi, eax */
   8933 L_47055F96:
   8934     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47055F96: call dword ptr [0x470ac150] */
   8935     RECOMP_FLAGS_IN();
   8936 L_47055F9C:
   8937     MEM32(edi) = eax; /* 0x47055F9C: mov dword ptr [edi], eax */
   8938 L_47055F9E:
   8939     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu);
   8940     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8941     eax = eax + 0xFFFFFFFDu; /* 0x47055F9E: add eax, -3 */
   8942     _flag_k = FK_ADD;
   8943 L_47055FA1:
   8944     /* cmp eax, 0x4Du */ /* 0x47055FA1: cmp eax, 0x4d */
   8945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du);
   8946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8947     _flag_k = FK_CMP;
   8948 L_47055FA4:
   8949     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47056011; /* 0x47055FA4: ja 0x47056011 */
   8950 L_47055FA6:
   8951     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8952     ecx = 0; /* 0x47055FA6: xor ecx, ecx */
   8953     _cf = 0;
   8954     _flag_k = FK_TEST;
   8955 L_47055FA8:
   8956     SET_LO8(ecx, MEM8(eax + 0x470560A0)); /* 0x47055FA8: mov cl, byte ptr [eax + 0x470560a0] */
   8957 L_47055FAE:
   8958     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x4705608C)); goto _ljump; }
   8959 L_47055FB5:
   8960     RECOMP_ICALL(esi); /* 0x47055FB5: call esi */
   8961     RECOMP_FLAGS_IN();
   8962 L_47055FB7:
   8963     edi = POP32_VAL(esp); /* 0x47055FB7: pop edi */
   8964 L_47055FB8:
   8965     MEM32(eax) = 0xCu; /* 0x47055FB8: mov dword ptr [eax], 0xc */
   8966 L_47055FBE:
   8967     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   8968     eax = eax | 0xFFFFFFFFu; /* 0x47055FBE: or eax, 0xffffffff */
   8969     _cf = 0;
   8970     _flag_k = FK_TEST;
   8971 L_47055FC1:
   8972     esi = POP32_VAL(esp); /* 0x47055FC1: pop esi */
   8973 L_47055FC2:
   8974     ecx = MEM32(esp + 0x4); /* 0x47055FC2: mov ecx, dword ptr [esp + 4] */
   8975 L_47055FC6:
   8976     MEM32(FS_BASE + (0)) = ecx; /* 0x47055FC6: mov dword ptr fs:[0], ecx */
   8977 L_47055FCD:
   8978     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   8979     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8980     esp = esp + 0x10u; /* 0x47055FCD: add esp, 0x10 */
   8981     _flag_k = FK_ADD;
   8982 L_47055FD0:
   8983     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055FD0: ret  */
   8984 L_47055FD1:
   8985     RECOMP_ICALL(esi); /* 0x47055FD1: call esi */
   8986     RECOMP_FLAGS_IN();
   8987 L_47055FD3:
   8988     edi = POP32_VAL(esp); /* 0x47055FD3: pop edi */
   8989 L_47055FD4:
   8990     MEM32(eax) = 0x11u; /* 0x47055FD4: mov dword ptr [eax], 0x11 */
   8991 L_47055FDA:
   8992     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   8993     eax = eax | 0xFFFFFFFFu; /* 0x47055FDA: or eax, 0xffffffff */
   8994     _cf = 0;
   8995     _flag_k = FK_TEST;
   8996 L_47055FDD:
   8997     esi = POP32_VAL(esp); /* 0x47055FDD: pop esi */
   8998 L_47055FDE:
   8999     ecx = MEM32(esp + 0x4); /* 0x47055FDE: mov ecx, dword ptr [esp + 4] */
   9000 L_47055FE2:
   9001     MEM32(FS_BASE + (0)) = ecx; /* 0x47055FE2: mov dword ptr fs:[0], ecx */
   9002 L_47055FE9:
   9003     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   9004     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9005     esp = esp + 0x10u; /* 0x47055FE9: add esp, 0x10 */
   9006     _flag_k = FK_ADD;
   9007 L_47055FEC:
   9008     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47055FEC: ret  */
   9009 L_47055FED:
   9010     RECOMP_ICALL(esi); /* 0x47055FED: call esi */
   9011     RECOMP_FLAGS_IN();
   9012 L_47055FEF:
   9013     edi = POP32_VAL(esp); /* 0x47055FEF: pop edi */
   9014 L_47055FF0:
   9015     MEM32(eax) = 0xDu; /* 0x47055FF0: mov dword ptr [eax], 0xd */
   9016 L_47055FF6:
   9017     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   9018     eax = eax | 0xFFFFFFFFu; /* 0x47055FF6: or eax, 0xffffffff */
   9019     _cf = 0;
   9020     _flag_k = FK_TEST;
   9021 L_47055FF9:
   9022     esi = POP32_VAL(esp); /* 0x47055FF9: pop esi */
   9023 L_47055FFA:
   9024     ecx = MEM32(esp + 0x4); /* 0x47055FFA: mov ecx, dword ptr [esp + 4] */
   9025 L_47055FFE:
   9026     MEM32(FS_BASE + (0)) = ecx; /* 0x47055FFE: mov dword ptr fs:[0], ecx */
   9027 L_47056005:
   9028     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   9029     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9030     esp = esp + 0x10u; /* 0x47056005: add esp, 0x10 */
   9031     _flag_k = FK_ADD;
   9032 L_47056008:
   9033     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056008: ret  */
   9034 L_47056009:
   9035     RECOMP_ICALL(esi); /* 0x47056009: call esi */
   9036     RECOMP_FLAGS_IN();
   9037 L_4705600B:
   9038     MEM32(eax) = 2; /* 0x4705600B: mov dword ptr [eax], 2 */
   9039 L_47056011:
   9040     ecx = MEM32(esp + 0xC); /* 0x47056011: mov ecx, dword ptr [esp + 0xc] */
   9041 L_47056015:
   9042     edi = POP32_VAL(esp); /* 0x47056015: pop edi */
   9043 L_47056016:
   9044     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   9045     eax = eax | 0xFFFFFFFFu; /* 0x47056016: or eax, 0xffffffff */
   9046     _cf = 0;
   9047     _flag_k = FK_TEST;
   9048 L_47056019:
   9049     esi = POP32_VAL(esp); /* 0x47056019: pop esi */
   9050 L_4705601A:
   9051     MEM32(FS_BASE + (0)) = ecx; /* 0x4705601A: mov dword ptr fs:[0], ecx */
   9052 L_47056021:
   9053     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   9054     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9055     esp = esp + 0x10u; /* 0x47056021: add esp, 0x10 */
   9056     _flag_k = FK_ADD;
   9057 L_47056024:
   9058     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056024: ret  */
   9059   _ljump:
   9060     switch (_itail_tgt) {
   9061       case 0x47055E00u: goto L_47055E00;
   9062       case 0x47055E02u: goto L_47055E02;
   9063       case 0x47055E07u: goto L_47055E07;
   9064       case 0x47055E0Du: goto L_47055E0D;
   9065       case 0x47055E0Eu: goto L_47055E0E;
   9066       case 0x47055E15u: goto L_47055E15;
   9067       case 0x47055E16u: goto L_47055E16;
   9068       case 0x47055E1Au: goto L_47055E1A;
   9069       case 0x47055E1Cu: goto L_47055E1C;
   9070       case 0x47055E1Du: goto L_47055E1D;
   9071       case 0x47055E1Eu: goto L_47055E1E;
   9072       case 0x47055E20u: goto L_47055E20;
   9073       case 0x47055E22u: goto L_47055E22;
   9074       case 0x47055E27u: goto L_47055E27;
   9075       case 0x47055E29u: goto L_47055E29;
   9076       case 0x47055E2Cu: goto L_47055E2C;
   9077       case 0x47055E30u: goto L_47055E30;
   9078       case 0x47055E32u: goto L_47055E32;
   9079       case 0x47055E3Au: goto L_47055E3A;
   9080       case 0x47055E3Cu: goto L_47055E3C;
   9081       case 0x47055E41u: goto L_47055E41;
   9082       case 0x47055E43u: goto L_47055E43;
   9083       case 0x47055E48u: goto L_47055E48;
   9084       case 0x47055E49u: goto L_47055E49;
   9085       case 0x47055E4Eu: goto L_47055E4E;
   9086       case 0x47055E50u: goto L_47055E50;
   9087       case 0x47055E55u: goto L_47055E55;
   9088       case 0x47055E59u: goto L_47055E59;
   9089       case 0x47055E5Au: goto L_47055E5A;
   9090       case 0x47055E5Eu: goto L_47055E5E;
   9091       case 0x47055E60u: goto L_47055E60;
   9092       case 0x47055E62u: goto L_47055E62;
   9093       case 0x47055E67u: goto L_47055E67;
   9094       case 0x47055E68u: goto L_47055E68;
   9095       case 0x47055E69u: goto L_47055E69;
   9096       case 0x47055E6Bu: goto L_47055E6B;
   9097       case 0x47055E70u: goto L_47055E70;
   9098       case 0x47055E72u: goto L_47055E72;
   9099       case 0x47055E74u: goto L_47055E74;
   9100       case 0x47055E76u: goto L_47055E76;
   9101       case 0x47055E78u: goto L_47055E78;
   9102       case 0x47055E7Au: goto L_47055E7A;
   9103       case 0x47055E80u: goto L_47055E80;
   9104       case 0x47055E81u: goto L_47055E81;
   9105       case 0x47055E87u: goto L_47055E87;
   9106       case 0x47055E8Au: goto L_47055E8A;
   9107       case 0x47055E8Bu: goto L_47055E8B;
   9108       case 0x47055E8Fu: goto L_47055E8F;
   9109       case 0x47055E96u: goto L_47055E96;
   9110       case 0x47055E99u: goto L_47055E99;
   9111       case 0x47055E9Au: goto L_47055E9A;
   9112       case 0x47055E9Eu: goto L_47055E9E;
   9113       case 0x47055EA0u: goto L_47055EA0;
   9114       case 0x47055EA2u: goto L_47055EA2;
   9115       case 0x47055EA6u: goto L_47055EA6;
   9116       case 0x47055EA7u: goto L_47055EA7;
   9117       case 0x47055EABu: goto L_47055EAB;
   9118       case 0x47055EADu: goto L_47055EAD;
   9119       case 0x47055EAFu: goto L_47055EAF;
   9120       case 0x47055EB3u: goto L_47055EB3;
   9121       case 0x47055EB7u: goto L_47055EB7;
   9122       case 0x47055EBBu: goto L_47055EBB;
   9123       case 0x47055EBCu: goto L_47055EBC;
   9124       case 0x47055EBEu: goto L_47055EBE;
   9125       case 0x47055EC1u: goto L_47055EC1;
   9126       case 0x47055EC4u: goto L_47055EC4;
   9127       case 0x47055EC6u: goto L_47055EC6;
   9128       case 0x47055EC8u: goto L_47055EC8;
   9129       case 0x47055ECBu: goto L_47055ECB;
   9130       case 0x47055ECEu: goto L_47055ECE;
   9131       case 0x47055ECFu: goto L_47055ECF;
   9132       case 0x47055ED0u: goto L_47055ED0;
   9133       case 0x47055ED4u: goto L_47055ED4;
   9134       case 0x47055ED5u: goto L_47055ED5;
   9135       case 0x47055ED6u: goto L_47055ED6;
   9136       case 0x47055ED7u: goto L_47055ED7;
   9137       case 0x47055ED9u: goto L_47055ED9;
   9138       case 0x47055EDFu: goto L_47055EDF;
   9139       case 0x47055EE5u: goto L_47055EE5;
   9140       case 0x47055EE8u: goto L_47055EE8;
   9141       case 0x47055EEAu: goto L_47055EEA;
   9142       case 0x47055EECu: goto L_47055EEC;
   9143       case 0x47055EEEu: goto L_47055EEE;
   9144       case 0x47055EF0u: goto L_47055EF0;
   9145       case 0x47055EF2u: goto L_47055EF2;
   9146       case 0x47055EF3u: goto L_47055EF3;
   9147       case 0x47055EF4u: goto L_47055EF4;
   9148       case 0x47055EFAu: goto L_47055EFA;
   9149       case 0x47055EFCu: goto L_47055EFC;
   9150       case 0x47055EFEu: goto L_47055EFE;
   9151       case 0x47055F00u: goto L_47055F00;
   9152       case 0x47055F02u: goto L_47055F02;
   9153       case 0x47055F08u: goto L_47055F08;
   9154       case 0x47055F0Au: goto L_47055F0A;
   9155       case 0x47055F0Cu: goto L_47055F0C;
   9156       case 0x47055F0Eu: goto L_47055F0E;
   9157       case 0x47055F10u: goto L_47055F10;
   9158       case 0x47055F11u: goto L_47055F11;
   9159       case 0x47055F17u: goto L_47055F17;
   9160       case 0x47055F1Au: goto L_47055F1A;
   9161       case 0x47055F1Cu: goto L_47055F1C;
   9162       case 0x47055F1Eu: goto L_47055F1E;
   9163       case 0x47055F20u: goto L_47055F20;
   9164       case 0x47055F26u: goto L_47055F26;
   9165       case 0x47055F28u: goto L_47055F28;
   9166       case 0x47055F2Bu: goto L_47055F2B;
   9167       case 0x47055F2Eu: goto L_47055F2E;
   9168       case 0x47055F30u: goto L_47055F30;
   9169       case 0x47055F32u: goto L_47055F32;
   9170       case 0x47055F38u: goto L_47055F38;
   9171       case 0x47055F3Fu: goto L_47055F3F;
   9172       case 0x47055F41u: goto L_47055F41;
   9173       case 0x47055F47u: goto L_47055F47;
   9174       case 0x47055F49u: goto L_47055F49;
   9175       case 0x47055F4Bu: goto L_47055F4B;
   9176       case 0x47055F51u: goto L_47055F51;
   9177       case 0x47055F53u: goto L_47055F53;
   9178       case 0x47055F55u: goto L_47055F55;
   9179       case 0x47055F5Bu: goto L_47055F5B;
   9180       case 0x47055F5Du: goto L_47055F5D;
   9181       case 0x47055F5Fu: goto L_47055F5F;
   9182       case 0x47055F65u: goto L_47055F65;
   9183       case 0x47055F69u: goto L_47055F69;
   9184       case 0x47055F6Bu: goto L_47055F6B;
   9185       case 0x47055F6Cu: goto L_47055F6C;
   9186       case 0x47055F6Eu: goto L_47055F6E;
   9187       case 0x47055F72u: goto L_47055F72;
   9188       case 0x47055F73u: goto L_47055F73;
   9189       case 0x47055F79u: goto L_47055F79;
   9190       case 0x47055F7Cu: goto L_47055F7C;
   9191       case 0x47055F7Du: goto L_47055F7D;
   9192       case 0x47055F7Fu: goto L_47055F7F;
   9193       case 0x47055F80u: goto L_47055F80;
   9194       case 0x47055F82u: goto L_47055F82;
   9195       case 0x47055F83u: goto L_47055F83;
   9196       case 0x47055F87u: goto L_47055F87;
   9197       case 0x47055F8Eu: goto L_47055F8E;
   9198       case 0x47055F91u: goto L_47055F91;
   9199       case 0x47055F92u: goto L_47055F92;
   9200       case 0x47055F94u: goto L_47055F94;
   9201       case 0x47055F96u: goto L_47055F96;
   9202       case 0x47055F9Cu: goto L_47055F9C;
   9203       case 0x47055F9Eu: goto L_47055F9E;
   9204       case 0x47055FA1u: goto L_47055FA1;
   9205       case 0x47055FA4u: goto L_47055FA4;
   9206       case 0x47055FA6u: goto L_47055FA6;
   9207       case 0x47055FA8u: goto L_47055FA8;
   9208       case 0x47055FAEu: goto L_47055FAE;
   9209       case 0x47055FB5u: goto L_47055FB5;
   9210       case 0x47055FB7u: goto L_47055FB7;
   9211       case 0x47055FB8u: goto L_47055FB8;
   9212       case 0x47055FBEu: goto L_47055FBE;
   9213       case 0x47055FC1u: goto L_47055FC1;
   9214       case 0x47055FC2u: goto L_47055FC2;
   9215       case 0x47055FC6u: goto L_47055FC6;
   9216       case 0x47055FCDu: goto L_47055FCD;
   9217       case 0x47055FD0u: goto L_47055FD0;
   9218       case 0x47055FD1u: goto L_47055FD1;
   9219       case 0x47055FD3u: goto L_47055FD3;
   9220       case 0x47055FD4u: goto L_47055FD4;
   9221       case 0x47055FDAu: goto L_47055FDA;
   9222       case 0x47055FDDu: goto L_47055FDD;
   9223       case 0x47055FDEu: goto L_47055FDE;
   9224       case 0x47055FE2u: goto L_47055FE2;
   9225       case 0x47055FE9u: goto L_47055FE9;
   9226       case 0x47055FECu: goto L_47055FEC;
   9227       case 0x47055FEDu: goto L_47055FED;
   9228       case 0x47055FEFu: goto L_47055FEF;
   9229       case 0x47055FF0u: goto L_47055FF0;
   9230       case 0x47055FF6u: goto L_47055FF6;
   9231       case 0x47055FF9u: goto L_47055FF9;
   9232       case 0x47055FFAu: goto L_47055FFA;
   9233       case 0x47055FFEu: goto L_47055FFE;
   9234       case 0x47056005u: goto L_47056005;
   9235       case 0x47056008u: goto L_47056008;
   9236       case 0x47056009u: goto L_47056009;
   9237       case 0x4705600Bu: goto L_4705600B;
   9238       case 0x47056011u: goto L_47056011;
   9239       case 0x47056015u: goto L_47056015;
   9240       case 0x47056016u: goto L_47056016;
   9241       case 0x47056019u: goto L_47056019;
   9242       case 0x4705601Au: goto L_4705601A;
   9243       case 0x47056021u: goto L_47056021;
   9244       case 0x47056024u: goto L_47056024;
   9245       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   9246     }
   9247     RECOMP_REGS_OUT();
   9248 }
   9249 
   9250 void sub_470560F0(void) {
   9251     int _fpu_cmp = 0;
   9252     uint32_t _cf = 0;
   9253     int _df = 1;
   9254     uint32_t _flag_k = FK_NONE;
   9255     uint32_t _flag_a = 0, _flag_b = 0;
   9256     uint32_t _itail_tgt = 0;
   9257     RECOMP_REGS_LOCALS
   9258     RECOMP_ENTER(0x470560F0u);
   9259 
   9260 L_470560F0:
   9261     PUSH32(esp, 0); /* 0x470560F0: push 0 */
   9262     RECOMP_ICALL(0x470553A0u); /* 0x470560F2: call 0x470553a0 */ /* not lifted */
   9263     RECOMP_FLAGS_IN();
   9264     ecx = eax; /* 0x470560F7: mov ecx, eax */
   9265     RECOMP_ICALL(0x470551B0u); /* 0x470560F9: call 0x470551b0 */ /* not lifted */
   9266     RECOMP_FLAGS_IN();
   9267     eax = MEM32(esp + 0x4); /* 0x470560FE: mov eax, dword ptr [esp + 4] */
   9268     PUSH32(esp, eax); /* 0x47056102: push eax */
   9269     RECOMP_ICALL(MEM32(0x470AC33C)); /* 0x47056103: call dword ptr [0x470ac33c] */
   9270     RECOMP_FLAGS_IN();
   9271     ecx = POP32_VAL(esp); /* 0x47056109: pop ecx */
   9272     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705610A: ret  */
   9273     RECOMP_REGS_OUT();
   9274 }
   9275 
   9276 void sub_47056110(void) {
   9277     int _fpu_cmp = 0;
   9278     uint32_t _cf = 0;
   9279     int _df = 1;
   9280     uint32_t _flag_k = FK_NONE;
   9281     uint32_t _flag_a = 0, _flag_b = 0;
   9282     uint32_t _itail_tgt = 0;
   9283     RECOMP_REGS_LOCALS
   9284     RECOMP_ENTER(0x47056110u);
   9285 
   9286 L_47056110:
   9287     eax = MEM32(esp + 0x8); /* 0x47056110: mov eax, dword ptr [esp + 8] */
   9288     PUSH32(esp, esi); /* 0x47056114: push esi */
   9289     esi = MEM32(esp + 0x8); /* 0x47056115: mov esi, dword ptr [esp + 8] */
   9290     PUSH32(esp, eax); /* 0x47056119: push eax */
   9291     PUSH32(esp, esi); /* 0x4705611A: push esi */
   9292     RECOMP_ICALL(MEM32(0x470AC0AC)); /* 0x4705611B: call dword ptr [0x470ac0ac] */
   9293     RECOMP_FLAGS_IN();
   9294     PUSH32(esp, esi); /* 0x47056121: push esi */
   9295     RECOMP_ICALL(0x470553A0u); /* 0x47056122: call 0x470553a0 */ /* not lifted */
   9296     RECOMP_FLAGS_IN();
   9297     ecx = eax; /* 0x47056127: mov ecx, eax */
   9298     RECOMP_ICALL(0x47055620u); /* 0x47056129: call 0x47055620 */ /* not lifted */
   9299     RECOMP_FLAGS_IN();
   9300     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9301     eax = 0; /* 0x4705612E: xor eax, eax */
   9302     _cf = 0;
   9303     _flag_k = FK_TEST;
   9304     esi = POP32_VAL(esp); /* 0x47056130: pop esi */
   9305     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056131: ret  */
   9306     RECOMP_REGS_OUT();
   9307 }
   9308 
   9309 void sub_47056140(void) {
   9310     int _fpu_cmp = 0;
   9311     uint32_t _cf = 0;
   9312     int _df = 1;
   9313     uint32_t _flag_k = FK_NONE;
   9314     uint32_t _flag_a = 0, _flag_b = 0;
   9315     uint32_t _itail_tgt = 0;
   9316     RECOMP_REGS_LOCALS
   9317     RECOMP_ENTER(0x47056140u);
   9318 
   9319 L_47056140:
   9320     PUSH32(esp, esi); /* 0x47056140: push esi */
   9321     esi = MEM32(esp + 0x8); /* 0x47056141: mov esi, dword ptr [esp + 8] */
   9322     PUSH32(esp, esi); /* 0x47056145: push esi */
   9323     RECOMP_ICALL(0x470553A0u); /* 0x47056146: call 0x470553a0 */ /* not lifted */
   9324     RECOMP_FLAGS_IN();
   9325     ecx = eax; /* 0x4705614B: mov ecx, eax */
   9326     RECOMP_ICALL(0x47055490u); /* 0x4705614D: call 0x47055490 */ /* not lifted */
   9327     RECOMP_FLAGS_IN();
   9328     PUSH32(esp, esi); /* 0x47056152: push esi */
   9329     RECOMP_ICALL(MEM32(0x470AC0B0)); /* 0x47056153: call dword ptr [0x470ac0b0] */
   9330     RECOMP_FLAGS_IN();
   9331     esi = eax; /* 0x47056159: mov esi, eax */
   9332     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   9333     _cf = (esi) != 0;
   9334     esi = (uint32_t)(-(int32_t)esi); /* 0x4705615B: neg esi */
   9335     _flag_k = FK_CMP;
   9336     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x4705615D: sbb esi, esi */
   9337       esi = _sc ? 0xFFFFFFFFu : 0;
   9338       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   9339       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   9340     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   9341     _cf = (esi) != 0;
   9342     esi = (uint32_t)(-(int32_t)esi); /* 0x4705615F: neg esi */
   9343     _flag_k = FK_CMP;
   9344     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   9345     esi = esi - 1; /* 0x47056161: dec esi */
   9346     _flag_k = FK_DEC;
   9347     /* cmp esi, 0xFFFFFFFFu */ /* 0x47056162: cmp esi, -1 */
   9348     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   9349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9350     _flag_k = FK_CMP;
   9351     if (CMP_NE(_flag_a, _flag_b)) goto L_4705617D; /* 0x47056165: jne 0x4705617d */
   9352 L_47056167:
   9353     PUSH32(esp, edi); /* 0x47056167: push edi */
   9354     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47056168: call dword ptr [0x470ac3c8] */
   9355     RECOMP_FLAGS_IN();
   9356     edi = eax; /* 0x4705616E: mov edi, eax */
   9357     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47056170: call dword ptr [0x470ac150] */
   9358     RECOMP_FLAGS_IN();
   9359     MEM32(edi) = eax; /* 0x47056176: mov dword ptr [edi], eax */
   9360     edi = POP32_VAL(esp); /* 0x47056178: pop edi */
   9361     eax = esi; /* 0x47056179: mov eax, esi */
   9362     esi = POP32_VAL(esp); /* 0x4705617B: pop esi */
   9363     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705617C: ret  */
   9364 L_4705617D:
   9365     eax = esi; /* 0x4705617D: mov eax, esi */
   9366     esi = POP32_VAL(esp); /* 0x4705617F: pop esi */
   9367     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056180: ret  */
   9368     RECOMP_REGS_OUT();
   9369 }
   9370 
   9371 void sub_47056190(void) {
   9372     int _fpu_cmp = 0;
   9373     uint32_t _cf = 0;
   9374     int _df = 1;
   9375     uint32_t _flag_k = FK_NONE;
   9376     uint32_t _flag_a = 0, _flag_b = 0;
   9377     uint32_t _itail_tgt = 0;
   9378     RECOMP_REGS_LOCALS
   9379     RECOMP_ENTER(0x47056190u);
   9380 
   9381 L_47056190:
   9382     RECOMP_ICALL(MEM32(0x470AC0A8)); /* 0x47056190: call dword ptr [0x470ac0a8] */
   9383     RECOMP_FLAGS_IN();
   9384 L_47056196:
   9385     /* cmp eax, 0xFFFFFFFFu */ /* 0x47056196: cmp eax, -1 */
   9386     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   9387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9388     _flag_k = FK_CMP;
   9389 L_47056199:
   9390     ecx = MEM32(esp + 0x4); /* 0x47056199: mov ecx, dword ptr [esp + 4] */
   9391 L_4705619D:
   9392     MEM32(ecx) = eax; /* 0x4705619D: mov dword ptr [ecx], eax */
   9393 L_4705619F:
   9394     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470561B9; /* 0x4705619F: je 0x470561b9 */
   9395 L_470561A1:
   9396     edx = MEM32(esp + 0xC); /* 0x470561A1: mov edx, dword ptr [esp + 0xc] */
   9397 L_470561A5:
   9398     ecx = MEM32(esp + 0x8); /* 0x470561A5: mov ecx, dword ptr [esp + 8] */
   9399 L_470561A9:
   9400     PUSH32(esp, edx); /* 0x470561A9: push edx */
   9401 L_470561AA:
   9402     PUSH32(esp, ecx); /* 0x470561AA: push ecx */
   9403 L_470561AB:
   9404     PUSH32(esp, eax); /* 0x470561AB: push eax */
   9405 L_470561AC:
   9406     RECOMP_ICALL(0x470553A0u); /* 0x470561AC: call 0x470553a0 */ /* not lifted */
   9407     RECOMP_FLAGS_IN();
   9408 L_470561B1:
   9409     ecx = eax; /* 0x470561B1: mov ecx, eax */
   9410 L_470561B3:
   9411     RECOMP_ICALL(0x47055440u); /* 0x470561B3: call 0x47055440 */ /* not lifted */
   9412     RECOMP_FLAGS_IN();
   9413 L_470561B8:
   9414     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470561B8: ret  */
   9415 L_470561B9:
   9416     PUSH32(esp, esi); /* 0x470561B9: push esi */
   9417 L_470561BA:
   9418     PUSH32(esp, edi); /* 0x470561BA: push edi */
   9419 L_470561BB:
   9420     edi = MEM32(0x470AC3C8); /* 0x470561BB: mov edi, dword ptr [0x470ac3c8] */
   9421 L_470561C1:
   9422     RECOMP_ICALL(edi); /* 0x470561C1: call edi */
   9423     RECOMP_FLAGS_IN();
   9424 L_470561C3:
   9425     esi = eax; /* 0x470561C3: mov esi, eax */
   9426 L_470561C5:
   9427     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470561C5: call dword ptr [0x470ac150] */
   9428     RECOMP_FLAGS_IN();
   9429 L_470561CB:
   9430     MEM32(esi) = eax; /* 0x470561CB: mov dword ptr [esi], eax */
   9431 L_470561CD:
   9432     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu);
   9433     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9434     eax = eax + 0xFFFFFFFDu; /* 0x470561CD: add eax, -3 */
   9435     _flag_k = FK_ADD;
   9436 L_470561D0:
   9437     /* cmp eax, 0x4Du */ /* 0x470561D0: cmp eax, 0x4d */
   9438     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Du);
   9439     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9440     _flag_k = FK_CMP;
   9441 L_470561D3:
   9442     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47056216; /* 0x470561D3: ja 0x47056216 */
   9443 L_470561D5:
   9444     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9445     edx = 0; /* 0x470561D5: xor edx, edx */
   9446     _cf = 0;
   9447     _flag_k = FK_TEST;
   9448 L_470561D7:
   9449     SET_LO8(edx, MEM8(eax + 0x47056230)); /* 0x470561D7: mov dl, byte ptr [eax + 0x47056230] */
   9450 L_470561DD:
   9451     { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x4705621C)); goto _ljump; }
   9452 L_470561E4:
   9453     RECOMP_ICALL(edi); /* 0x470561E4: call edi */
   9454     RECOMP_FLAGS_IN();
   9455 L_470561E6:
   9456     edi = POP32_VAL(esp); /* 0x470561E6: pop edi */
   9457 L_470561E7:
   9458     MEM32(eax) = 0xCu; /* 0x470561E7: mov dword ptr [eax], 0xc */
   9459 L_470561ED:
   9460     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   9461     eax = eax | 0xFFFFFFFFu; /* 0x470561ED: or eax, 0xffffffff */
   9462     _cf = 0;
   9463     _flag_k = FK_TEST;
   9464 L_470561F0:
   9465     esi = POP32_VAL(esp); /* 0x470561F0: pop esi */
   9466 L_470561F1:
   9467     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470561F1: ret  */
   9468 L_470561F2:
   9469     RECOMP_ICALL(edi); /* 0x470561F2: call edi */
   9470     RECOMP_FLAGS_IN();
   9471 L_470561F4:
   9472     edi = POP32_VAL(esp); /* 0x470561F4: pop edi */
   9473 L_470561F5:
   9474     MEM32(eax) = 0x11u; /* 0x470561F5: mov dword ptr [eax], 0x11 */
   9475 L_470561FB:
   9476     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   9477     eax = eax | 0xFFFFFFFFu; /* 0x470561FB: or eax, 0xffffffff */
   9478     _cf = 0;
   9479     _flag_k = FK_TEST;
   9480 L_470561FE:
   9481     esi = POP32_VAL(esp); /* 0x470561FE: pop esi */
   9482 L_470561FF:
   9483     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470561FF: ret  */
   9484 L_47056200:
   9485     RECOMP_ICALL(edi); /* 0x47056200: call edi */
   9486     RECOMP_FLAGS_IN();
   9487 L_47056202:
   9488     edi = POP32_VAL(esp); /* 0x47056202: pop edi */
   9489 L_47056203:
   9490     MEM32(eax) = 0xDu; /* 0x47056203: mov dword ptr [eax], 0xd */
   9491 L_47056209:
   9492     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   9493     eax = eax | 0xFFFFFFFFu; /* 0x47056209: or eax, 0xffffffff */
   9494     _cf = 0;
   9495     _flag_k = FK_TEST;
   9496 L_4705620C:
   9497     esi = POP32_VAL(esp); /* 0x4705620C: pop esi */
   9498 L_4705620D:
   9499     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705620D: ret  */
   9500 L_4705620E:
   9501     RECOMP_ICALL(edi); /* 0x4705620E: call edi */
   9502     RECOMP_FLAGS_IN();
   9503 L_47056210:
   9504     MEM32(eax) = 2; /* 0x47056210: mov dword ptr [eax], 2 */
   9505 L_47056216:
   9506     edi = POP32_VAL(esp); /* 0x47056216: pop edi */
   9507 L_47056217:
   9508     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   9509     eax = eax | 0xFFFFFFFFu; /* 0x47056217: or eax, 0xffffffff */
   9510     _cf = 0;
   9511     _flag_k = FK_TEST;
   9512 L_4705621A:
   9513     esi = POP32_VAL(esp); /* 0x4705621A: pop esi */
   9514 L_4705621B:
   9515     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4705621B: ret  */
   9516   _ljump:
   9517     switch (_itail_tgt) {
   9518       case 0x47056190u: goto L_47056190;
   9519       case 0x47056196u: goto L_47056196;
   9520       case 0x47056199u: goto L_47056199;
   9521       case 0x4705619Du: goto L_4705619D;
   9522       case 0x4705619Fu: goto L_4705619F;
   9523       case 0x470561A1u: goto L_470561A1;
   9524       case 0x470561A5u: goto L_470561A5;
   9525       case 0x470561A9u: goto L_470561A9;
   9526       case 0x470561AAu: goto L_470561AA;
   9527       case 0x470561ABu: goto L_470561AB;
   9528       case 0x470561ACu: goto L_470561AC;
   9529       case 0x470561B1u: goto L_470561B1;
   9530       case 0x470561B3u: goto L_470561B3;
   9531       case 0x470561B8u: goto L_470561B8;
   9532       case 0x470561B9u: goto L_470561B9;
   9533       case 0x470561BAu: goto L_470561BA;
   9534       case 0x470561BBu: goto L_470561BB;
   9535       case 0x470561C1u: goto L_470561C1;
   9536       case 0x470561C3u: goto L_470561C3;
   9537       case 0x470561C5u: goto L_470561C5;
   9538       case 0x470561CBu: goto L_470561CB;
   9539       case 0x470561CDu: goto L_470561CD;
   9540       case 0x470561D0u: goto L_470561D0;
   9541       case 0x470561D3u: goto L_470561D3;
   9542       case 0x470561D5u: goto L_470561D5;
   9543       case 0x470561D7u: goto L_470561D7;
   9544       case 0x470561DDu: goto L_470561DD;
   9545       case 0x470561E4u: goto L_470561E4;
   9546       case 0x470561E6u: goto L_470561E6;
   9547       case 0x470561E7u: goto L_470561E7;
   9548       case 0x470561EDu: goto L_470561ED;
   9549       case 0x470561F0u: goto L_470561F0;
   9550       case 0x470561F1u: goto L_470561F1;
   9551       case 0x470561F2u: goto L_470561F2;
   9552       case 0x470561F4u: goto L_470561F4;
   9553       case 0x470561F5u: goto L_470561F5;
   9554       case 0x470561FBu: goto L_470561FB;
   9555       case 0x470561FEu: goto L_470561FE;
   9556       case 0x470561FFu: goto L_470561FF;
   9557       case 0x47056200u: goto L_47056200;
   9558       case 0x47056202u: goto L_47056202;
   9559       case 0x47056203u: goto L_47056203;
   9560       case 0x47056209u: goto L_47056209;
   9561       case 0x4705620Cu: goto L_4705620C;
   9562       case 0x4705620Du: goto L_4705620D;
   9563       case 0x4705620Eu: goto L_4705620E;
   9564       case 0x47056210u: goto L_47056210;
   9565       case 0x47056216u: goto L_47056216;
   9566       case 0x47056217u: goto L_47056217;
   9567       case 0x4705621Au: goto L_4705621A;
   9568       case 0x4705621Bu: goto L_4705621B;
   9569       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   9570     }
   9571     RECOMP_REGS_OUT();
   9572 }
   9573 
   9574 void sub_47056280(void) {
   9575     int _fpu_cmp = 0;
   9576     uint32_t _cf = 0;
   9577     int _df = 1;
   9578     uint32_t _flag_k = FK_NONE;
   9579     uint32_t _flag_a = 0, _flag_b = 0;
   9580     uint32_t _itail_tgt = 0;
   9581     RECOMP_REGS_LOCALS
   9582     RECOMP_ENTER(0x47056280u);
   9583 
   9584 L_47056280:
   9585     eax = MEM32(esp + 0x4); /* 0x47056280: mov eax, dword ptr [esp + 4] */
   9586     PUSH32(esp, eax); /* 0x47056284: push eax */
   9587     RECOMP_ICALL(0x470553A0u); /* 0x47056285: call 0x470553a0 */ /* not lifted */
   9588     RECOMP_FLAGS_IN();
   9589     ecx = eax; /* 0x4705628A: mov ecx, eax */
   9590     RECOMP_ICALL(0x47055620u); /* 0x4705628C: call 0x47055620 */ /* not lifted */
   9591     RECOMP_FLAGS_IN();
   9592     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9593     eax = 0; /* 0x47056291: xor eax, eax */
   9594     _cf = 0;
   9595     _flag_k = FK_TEST;
   9596     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056293: ret  */
   9597     RECOMP_REGS_OUT();
   9598 }
   9599 
   9600 void sub_470562A0(void) {
   9601     int _fpu_cmp = 0;
   9602     uint32_t _cf = 0;
   9603     int _df = 1;
   9604     uint32_t _flag_k = FK_NONE;
   9605     uint32_t _flag_a = 0, _flag_b = 0;
   9606     uint32_t _itail_tgt = 0;
   9607     RECOMP_REGS_LOCALS
   9608     RECOMP_ENTER(0x470562A0u);
   9609 
   9610 L_470562A0:
   9611     eax = MEM32(0x4710E9B8); /* 0x470562A0: mov eax, dword ptr [0x4710e9b8] */
   9612     /* test eax, eax */ /* 0x470562A5: test eax, eax */
   9613     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9614     _cf = 0;
   9615     _flag_k = FK_TEST;
   9616     if (TEST_Z(_flag_a, _flag_b)) goto L_470562BB; /* 0x470562A7: je 0x470562bb */
   9617 L_470562A9:
   9618     eax = MEM32(esp + 0x4); /* 0x470562A9: mov eax, dword ptr [esp + 4] */
   9619     PUSH32(esp, eax); /* 0x470562AD: push eax */
   9620     RECOMP_ICALL(0x470553A0u); /* 0x470562AE: call 0x470553a0 */ /* not lifted */
   9621     RECOMP_FLAGS_IN();
   9622     ecx = eax; /* 0x470562B3: mov ecx, eax */
   9623     RECOMP_ICALL(0x47055520u); /* 0x470562B5: call 0x47055520 */ /* not lifted */
   9624     RECOMP_FLAGS_IN();
   9625     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470562BA: ret  */
   9626 L_470562BB:
   9627     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   9628     eax = eax | 0xFFFFFFFFu; /* 0x470562BB: or eax, 0xffffffff */
   9629     _cf = 0;
   9630     _flag_k = FK_TEST;
   9631     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470562BE: ret  */
   9632     RECOMP_REGS_OUT();
   9633 }
   9634 
   9635 void sub_470562C0(void) {
   9636     int _fpu_cmp = 0;
   9637     uint32_t _cf = 0;
   9638     int _df = 1;
   9639     uint32_t _flag_k = FK_NONE;
   9640     uint32_t _flag_a = 0, _flag_b = 0;
   9641     uint32_t _itail_tgt = 0;
   9642     RECOMP_REGS_LOCALS
   9643     RECOMP_ENTER(0x470562C0u);
   9644 
   9645 L_470562C0:
   9646     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u);
   9647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9648     esp = esp - 0x64u; /* 0x470562C0: sub esp, 0x64 */
   9649     _flag_k = FK_CMP;
   9650     RECOMP_ICALL(MEM32(0x470AC0E8)); /* 0x470562C3: call dword ptr [0x470ac0e8] */
   9651     RECOMP_FLAGS_IN();
   9652     PUSH32(esp, eax); /* 0x470562C9: push eax */
   9653     eax = MEM32(esp + 0x6C); /* 0x470562CA: mov eax, dword ptr [esp + 0x6c] */
   9654     PUSH32(esp, eax); /* 0x470562CE: push eax */
   9655     ecx = esp + 0x8; /* 0x470562CF: lea ecx, [esp + 8] */
   9656     PUSH32(esp, 0x471090D8u); /* 0x470562D3: push 0x471090d8 */
   9657     PUSH32(esp, ecx); /* 0x470562D8: push ecx */
   9658     RECOMP_ICALL(0x47054FC0u); /* 0x470562D9: call 0x47054fc0 */ /* not lifted */
   9659     RECOMP_FLAGS_IN();
   9660     edx = MEM32(esp + 0x80); /* 0x470562DE: mov edx, dword ptr [esp + 0x80] */
   9661     ecx = MEM32(esp + 0x7C); /* 0x470562E5: mov ecx, dword ptr [esp + 0x7c] */
   9662     PUSH32(esp, edx); /* 0x470562E9: push edx */
   9663     eax = esp + 0x14; /* 0x470562EA: lea eax, [esp + 0x14] */
   9664     PUSH32(esp, eax); /* 0x470562EE: push eax */
   9665     PUSH32(esp, ecx); /* 0x470562EF: push ecx */
   9666     RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x470562F0: call dword ptr [0x470ac22c] */
   9667     RECOMP_FLAGS_IN();
   9668     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x80u);
   9669     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9670     esp = esp + 0x80u; /* 0x470562F6: add esp, 0x80 */
   9671     _flag_k = FK_ADD;
   9672     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470562FC: ret  */
   9673     RECOMP_REGS_OUT();
   9674 }
   9675 
   9676 void sub_47056300(void) {
   9677     int _fpu_cmp = 0;
   9678     uint32_t _cf = 0;
   9679     int _df = 1;
   9680     uint32_t _flag_k = FK_NONE;
   9681     uint32_t _flag_a = 0, _flag_b = 0;
   9682     uint32_t _itail_tgt = 0;
   9683     RECOMP_REGS_LOCALS
   9684     RECOMP_ENTER(0x47056300u);
   9685 
   9686 L_47056300:
   9687     PUSH32(esp, ebx); /* 0x47056300: push ebx */
   9688     PUSH32(esp, ebp); /* 0x47056301: push ebp */
   9689     ebp = MEM32(esp + 0xC); /* 0x47056302: mov ebp, dword ptr [esp + 0xc] */
   9690     /* test ebp, ebp */ /* 0x47056306: test ebp, ebp */
   9691     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   9692     _cf = 0;
   9693     _flag_k = FK_TEST;
   9694     PUSH32(esp, esi); /* 0x47056308: push esi */
   9695     PUSH32(esp, edi); /* 0x47056309: push edi */
   9696     if (TEST_Z(_flag_a, _flag_b)) goto L_4705636F; /* 0x4705630A: je 0x4705636f */
   9697 L_4705630C:
   9698     /* cmp MEM32(ebp), 0 */ /* 0x4705630C: cmp dword ptr [ebp], 0 */
   9699     _flag_a = (uint32_t)(MEM32(ebp)); _flag_b = (uint32_t)(0);
   9700     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9701     _flag_k = FK_CMP;
   9702     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705636F; /* 0x47056310: je 0x4705636f */
   9703 L_47056312:
   9704     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9705     ebx = 0; /* 0x47056312: xor ebx, ebx */
   9706     _cf = 0;
   9707     _flag_k = FK_TEST;
   9708     esi = ebp; /* 0x47056314: mov esi, ebp */
   9709 L_47056316:
   9710     eax = MEM32(esp + 0x1C); /* 0x47056316: mov eax, dword ptr [esp + 0x1c] */
   9711     /* test eax, eax */ /* 0x4705631A: test eax, eax */
   9712     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9713     _cf = 0;
   9714     _flag_k = FK_TEST;
   9715     if (TEST_Z(_flag_a, _flag_b)) goto L_47056336; /* 0x4705631C: je 0x47056336 */
   9716 L_4705631E:
   9717     eax = MEM32(esi); /* 0x4705631E: mov eax, dword ptr [esi] */
   9718     /* cmp MEM8(eax), 0x24u */ /* 0x47056320: cmp byte ptr [eax], 0x24 */
   9719     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x24u) << 24;
   9720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9721     _flag_k = FK_NARROW(FK_CMP, 24);
   9722     if (CMP_NE(_flag_a, _flag_b)) goto L_47056336; /* 0x47056323: jne 0x47056336 */
   9723 L_47056325:
   9724     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9725     eax = eax + 1; /* 0x47056325: inc eax */
   9726     _flag_k = FK_INC;
   9727     PUSH32(esp, eax); /* 0x47056326: push eax */
   9728     RECOMP_ICALL(MEM32(0x470AC268)); /* 0x47056327: call dword ptr [0x470ac268] */
   9729     RECOMP_FLAGS_IN();
   9730     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9732     esp = esp + 4; /* 0x4705632D: add esp, 4 */
   9733     _flag_k = FK_ADD;
   9734     /* test eax, eax */ /* 0x47056330: test eax, eax */
   9735     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9736     _cf = 0;
   9737     _flag_k = FK_TEST;
   9738     edi = eax; /* 0x47056332: mov edi, eax */
   9739     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056338; /* 0x47056334: jne 0x47056338 */
   9740 L_47056336:
   9741     edi = MEM32(esi); /* 0x47056336: mov edi, dword ptr [esi] */
   9742 L_47056338:
   9743     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9744     ecx = ecx | 0xFFFFFFFFu; /* 0x47056338: or ecx, 0xffffffff */
   9745     _cf = 0;
   9746     _flag_k = FK_TEST;
   9747     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9748     eax = 0; /* 0x4705633B: xor eax, eax */
   9749     _cf = 0;
   9750     _flag_k = FK_TEST;
   9751     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; } /* 0x4705633D: repne scasb al, byte ptr es:[edi] */
   9752     eax = MEM32(esi + 0x4); /* 0x4705633F: mov eax, dword ptr [esi + 4] */
   9753     ecx = ~ecx; /* 0x47056342: not ecx */
   9754     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9755     ecx = ecx - 1; /* 0x47056344: dec ecx */
   9756     _flag_k = FK_DEC;
   9757     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   9758     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9759     esi = esi + 4; /* 0x47056345: add esi, 4 */
   9760     _flag_k = FK_ADD;
   9761     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   9762     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9763     ebx = ebx + ecx; /* 0x47056348: add ebx, ecx */
   9764     _flag_k = FK_ADD;
   9765     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   9766     ebx = ebx + 1; /* 0x4705634A: inc ebx */
   9767     _flag_k = FK_INC;
   9768     /* test eax, eax */ /* 0x4705634B: test eax, eax */
   9769     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9770     _cf = 0;
   9771     _flag_k = FK_TEST;
   9772     RECOMP_BACKEDGE();
   9773     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056316; /* 0x4705634D: jne 0x47056316 */
   9774 L_4705634F:
   9775     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   9776     ebx = ebx + 1; /* 0x4705634F: inc ebx */
   9777     _flag_k = FK_INC;
   9778     PUSH32(esp, ebx); /* 0x47056350: push ebx */
   9779     RECOMP_ICALL(0x470A33F2u); /* 0x47056351: call 0x470a33f2 */ /* not lifted */
   9780     RECOMP_FLAGS_IN();
   9781     ecx = MEM32(esp + 0x1C); /* 0x47056356: mov ecx, dword ptr [esp + 0x1c] */
   9782     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9783     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9784     esp = esp + 4; /* 0x4705635A: add esp, 4 */
   9785     _flag_k = FK_ADD;
   9786     /* test eax, eax */ /* 0x4705635D: test eax, eax */
   9787     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9788     _cf = 0;
   9789     _flag_k = FK_TEST;
   9790     MEM32(ecx) = eax; /* 0x4705635F: mov dword ptr [ecx], eax */
   9791     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056376; /* 0x47056361: jne 0x47056376 */
   9792 L_47056363:
   9793     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47056363: call dword ptr [0x470ac3c8] */
   9794     RECOMP_FLAGS_IN();
   9795     MEM32(eax) = 0xCu; /* 0x47056369: mov dword ptr [eax], 0xc */
   9796 L_4705636F:
   9797     edi = POP32_VAL(esp); /* 0x4705636F: pop edi */
   9798     esi = POP32_VAL(esp); /* 0x47056370: pop esi */
   9799     ebp = POP32_VAL(esp); /* 0x47056371: pop ebp */
   9800     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9801     eax = 0; /* 0x47056372: xor eax, eax */
   9802     _cf = 0;
   9803     _flag_k = FK_TEST;
   9804     ebx = POP32_VAL(esp); /* 0x47056374: pop ebx */
   9805     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056375: ret  */
   9806 L_47056376:
   9807     MEM8(eax) = (uint8_t)(0); /* 0x47056376: mov byte ptr [eax], 0 */
   9808     eax = MEM32(ebp); /* 0x47056379: mov eax, dword ptr [ebp] */
   9809     esi = MEM32(ecx); /* 0x4705637C: mov esi, dword ptr [ecx] */
   9810     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9811     ebx = 0; /* 0x4705637E: xor ebx, ebx */
   9812     _cf = 0;
   9813     _flag_k = FK_TEST;
   9814     /* test eax, eax */ /* 0x47056380: test eax, eax */
   9815     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9816     _cf = 0;
   9817     _flag_k = FK_TEST;
   9818     if (TEST_Z(_flag_a, _flag_b)) goto L_470563E6; /* 0x47056382: je 0x470563e6 */
   9819 L_47056384:
   9820     edi = ebp; /* 0x47056384: mov edi, ebp */
   9821 L_47056386:
   9822     eax = MEM32(esp + 0x1C); /* 0x47056386: mov eax, dword ptr [esp + 0x1c] */
   9823     /* test eax, eax */ /* 0x4705638A: test eax, eax */
   9824     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9825     _cf = 0;
   9826     _flag_k = FK_TEST;
   9827     if (TEST_Z(_flag_a, _flag_b)) goto L_470563C2; /* 0x4705638C: je 0x470563c2 */
   9828 L_4705638E:
   9829     eax = MEM32(edi); /* 0x4705638E: mov eax, dword ptr [edi] */
   9830     /* cmp MEM8(eax), 0x24u */ /* 0x47056390: cmp byte ptr [eax], 0x24 */
   9831     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x24u) << 24;
   9832     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9833     _flag_k = FK_NARROW(FK_CMP, 24);
   9834     if (CMP_NE(_flag_a, _flag_b)) goto L_470563C2; /* 0x47056393: jne 0x470563c2 */
   9835 L_47056395:
   9836     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9837     eax = eax + 1; /* 0x47056395: inc eax */
   9838     _flag_k = FK_INC;
   9839     PUSH32(esp, eax); /* 0x47056396: push eax */
   9840     RECOMP_ICALL(MEM32(0x470AC268)); /* 0x47056397: call dword ptr [0x470ac268] */
   9841     RECOMP_FLAGS_IN();
   9842     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9843     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9844     esp = esp + 4; /* 0x4705639D: add esp, 4 */
   9845     _flag_k = FK_ADD;
   9846     /* test eax, eax */ /* 0x470563A0: test eax, eax */
   9847     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9848     _cf = 0;
   9849     _flag_k = FK_TEST;
   9850     if (TEST_Z(_flag_a, _flag_b)) goto L_470563C2; /* 0x470563A2: je 0x470563c2 */
   9851 L_470563A4:
   9852     SET_LO8(edx, MEM8(eax)); /* 0x470563A4: mov dl, byte ptr [eax] */
   9853     /* test LO8(edx), LO8(edx) */ /* 0x470563A6: test dl, dl */
   9854     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9855     _cf = 0;
   9856     _flag_k = FK_NARROW(FK_TEST, 24);
   9857     MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x470563A8: mov byte ptr [esi], dl */
   9858     ecx = esi + 0x1; /* 0x470563AA: lea ecx, [esi + 1] */
   9859     if (TEST_Z(_flag_a, _flag_b)) goto L_470563BE; /* 0x470563AD: je 0x470563be */
   9860 L_470563AF:
   9861     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9862     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9863     eax = eax - ecx; /* 0x470563AF: sub eax, ecx */
   9864     _flag_k = FK_CMP;
   9865     edx = eax + 0x1; /* 0x470563B1: lea edx, [eax + 1] */
   9866 L_470563B4:
   9867     SET_LO8(eax, MEM8(edx + ecx)); /* 0x470563B4: mov al, byte ptr [edx + ecx] */
   9868     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x470563B7: mov byte ptr [ecx], al */
   9869     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9870     ecx = ecx + 1; /* 0x470563B9: inc ecx */
   9871     _flag_k = FK_INC;
   9872     /* test LO8(eax), LO8(eax) */ /* 0x470563BA: test al, al */
   9873     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9874     _cf = 0;
   9875     _flag_k = FK_NARROW(FK_TEST, 24);
   9876     RECOMP_BACKEDGE();
   9877     if (TEST_NZ(_flag_a, _flag_b)) goto L_470563B4; /* 0x470563BC: jne 0x470563b4 */
   9878 L_470563BE:
   9879     esi = ecx; /* 0x470563BE: mov esi, ecx */
   9880     goto L_470563D8; /* 0x470563C0: jmp 0x470563d8 */
   9881 L_470563C2:
   9882     eax = MEM32(edi); /* 0x470563C2: mov eax, dword ptr [edi] */
   9883     SET_LO8(ecx, MEM8(eax)); /* 0x470563C4: mov cl, byte ptr [eax] */
   9884     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x470563C6: mov byte ptr [esi], cl */
   9885     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   9886     esi = esi + 1; /* 0x470563C8: inc esi */
   9887     _flag_k = FK_INC;
   9888     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9889     eax = eax + 1; /* 0x470563C9: inc eax */
   9890     _flag_k = FK_INC;
   9891     /* test LO8(ecx), LO8(ecx) */ /* 0x470563CA: test cl, cl */
   9892     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   9893     _cf = 0;
   9894     _flag_k = FK_NARROW(FK_TEST, 24);
   9895     if (TEST_Z(_flag_a, _flag_b)) goto L_470563D8; /* 0x470563CC: je 0x470563d8 */
   9896 L_470563CE:
   9897     SET_LO8(ecx, MEM8(eax)); /* 0x470563CE: mov cl, byte ptr [eax] */
   9898     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x470563D0: mov byte ptr [esi], cl */
   9899     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   9900     esi = esi + 1; /* 0x470563D2: inc esi */
   9901     _flag_k = FK_INC;
   9902     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9903     eax = eax + 1; /* 0x470563D3: inc eax */
   9904     _flag_k = FK_INC;
   9905     /* test LO8(ecx), LO8(ecx) */ /* 0x470563D4: test cl, cl */
   9906     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   9907     _cf = 0;
   9908     _flag_k = FK_NARROW(FK_TEST, 24);
   9909     RECOMP_BACKEDGE();
   9910     if (TEST_NZ(_flag_a, _flag_b)) goto L_470563CE; /* 0x470563D6: jne 0x470563ce */
   9911 L_470563D8:
   9912     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   9913     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9914     edi = edi + 4; /* 0x470563D8: add edi, 4 */
   9915     _flag_k = FK_ADD;
   9916     MEM8(esi + (-0x1)) = (uint8_t)(0x20u); /* 0x470563DB: mov byte ptr [esi - 1], 0x20 */
   9917     eax = MEM32(edi); /* 0x470563DF: mov eax, dword ptr [edi] */
   9918     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   9919     ebx = ebx + 1; /* 0x470563E1: inc ebx */
   9920     _flag_k = FK_INC;
   9921     /* test eax, eax */ /* 0x470563E2: test eax, eax */
   9922     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9923     _cf = 0;
   9924     _flag_k = FK_TEST;
   9925     RECOMP_BACKEDGE();
   9926     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056386; /* 0x470563E4: jne 0x47056386 */
   9927 L_470563E6:
   9928     edi = POP32_VAL(esp); /* 0x470563E6: pop edi */
   9929     MEM8(esi) = (uint8_t)(0); /* 0x470563E7: mov byte ptr [esi], 0 */
   9930     esi = POP32_VAL(esp); /* 0x470563EA: pop esi */
   9931     ebp = POP32_VAL(esp); /* 0x470563EB: pop ebp */
   9932     eax = ebx; /* 0x470563EC: mov eax, ebx */
   9933     ebx = POP32_VAL(esp); /* 0x470563EE: pop ebx */
   9934     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470563EF: ret  */
   9935     RECOMP_REGS_OUT();
   9936 }
   9937 
   9938 void sub_470563F0(void) {
   9939     int _fpu_cmp = 0;
   9940     uint32_t _cf = 0;
   9941     int _df = 1;
   9942     uint32_t _flag_k = FK_NONE;
   9943     uint32_t _flag_a = 0, _flag_b = 0;
   9944     uint32_t _itail_tgt = 0;
   9945     RECOMP_REGS_LOCALS
   9946     RECOMP_ENTER(0x470563F0u);
   9947 
   9948 L_470563F0:
   9949     eax = 0x100Cu; /* 0x470563F0: mov eax, 0x100c */
   9950     RECOMP_ICALL(0x470A3400u); /* 0x470563F5: call 0x470a3400 */ /* not lifted */
   9951     RECOMP_FLAGS_IN();
   9952     eax = MEM32(esp + 0x1014); /* 0x470563FA: mov eax, dword ptr [esp + 0x1014] */
   9953     PUSH32(esp, ebx); /* 0x47056401: push ebx */
   9954     PUSH32(esp, ebp); /* 0x47056402: push ebp */
   9955     PUSH32(esp, esi); /* 0x47056403: push esi */
   9956     PUSH32(esp, edi); /* 0x47056404: push edi */
   9957     edi = MEM32(esp + 0x1020); /* 0x47056405: mov edi, dword ptr [esp + 0x1020] */
   9958     /* test edi, edi */ /* 0x4705640C: test edi, edi */
   9959     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9960     _cf = 0;
   9961     _flag_k = FK_TEST;
   9962     MEM32(eax) = 0; /* 0x4705640E: mov dword ptr [eax], 0 */
   9963     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056424; /* 0x47056414: jne 0x47056424 */
   9964 L_47056416:
   9965     edi = POP32_VAL(esp); /* 0x47056416: pop edi */
   9966     esi = POP32_VAL(esp); /* 0x47056417: pop esi */
   9967     ebp = POP32_VAL(esp); /* 0x47056418: pop ebp */
   9968     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   9969     eax = eax | 0xFFFFFFFFu; /* 0x47056419: or eax, 0xffffffff */
   9970     _cf = 0;
   9971     _flag_k = FK_TEST;
   9972     ebx = POP32_VAL(esp); /* 0x4705641C: pop ebx */
   9973     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
   9974     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9975     esp = esp + 0x100Cu; /* 0x4705641D: add esp, 0x100c */
   9976     _flag_k = FK_ADD;
   9977     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056423: ret  */
   9978 L_47056424:
   9979     /* cmp MEM8(edi), 0 */ /* 0x47056424: cmp byte ptr [edi], 0 */
   9980     _flag_a = (uint32_t)(MEM8(edi)) << 24; _flag_b = (uint32_t)(0) << 24;
   9981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9982     _flag_k = FK_NARROW(FK_CMP, 24);
   9983     esi = edi; /* 0x47056427: mov esi, edi */
   9984     if (CMP_EQ(_flag_a, _flag_b)) goto L_47056523; /* 0x47056429: je 0x47056523 */
   9985 L_4705642F:
   9986     SET_LO8(eax, MEM8(esi)); /* 0x4705642F: mov al, byte ptr [esi] */
   9987     /* cmp LO8(eax), 0x23u */ /* 0x47056431: cmp al, 0x23 */
   9988     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x23u) << 24;
   9989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9990     _flag_k = FK_NARROW(FK_CMP, 24);
   9991     if (CMP_EQ(_flag_a, _flag_b)) goto L_47056523; /* 0x47056433: je 0x47056523 */
   9992 L_47056439:
   9993     ebx = MEM32(0x470AC1E4); /* 0x47056439: mov ebx, dword ptr [0x470ac1e4] */
   9994     ecx = (int32_t)(int8_t)LO8(eax); /* 0x4705643F: movsx ecx, al */
   9995     PUSH32(esp, ecx); /* 0x47056442: push ecx */
   9996     RECOMP_ICALL(ebx); /* 0x47056443: call ebx */
   9997     RECOMP_FLAGS_IN();
   9998     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9999     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10000     esp = esp + 4; /* 0x47056445: add esp, 4 */
  10001     _flag_k = FK_ADD;
  10002     /* test eax, eax */ /* 0x47056448: test eax, eax */
  10003     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10004     _cf = 0;
  10005     _flag_k = FK_TEST;
  10006     if (TEST_Z(_flag_a, _flag_b)) goto L_4705645B; /* 0x4705644A: je 0x4705645b */
  10007 L_4705644C:
  10008     edx = (int32_t)(int8_t)MEM8(esi + 0x1); /* 0x4705644C: movsx edx, byte ptr [esi + 1] */
  10009     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  10010     esi = esi + 1; /* 0x47056450: inc esi */
  10011     _flag_k = FK_INC;
  10012     PUSH32(esp, edx); /* 0x47056451: push edx */
  10013     RECOMP_ICALL(ebx); /* 0x47056452: call ebx */
  10014     RECOMP_FLAGS_IN();
  10015     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10016     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10017     esp = esp + 4; /* 0x47056454: add esp, 4 */
  10018     _flag_k = FK_ADD;
  10019     /* test eax, eax */ /* 0x47056457: test eax, eax */
  10020     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10021     _cf = 0;
  10022     _flag_k = FK_TEST;
  10023     RECOMP_BACKEDGE();
  10024     if (TEST_NZ(_flag_a, _flag_b)) goto L_4705644C; /* 0x47056459: jne 0x4705644c */
  10025 L_4705645B:
  10026     /* cmp MEM8(esi), 0 */ /* 0x4705645B: cmp byte ptr [esi], 0 */
  10027     _flag_a = (uint32_t)(MEM8(esi)) << 24; _flag_b = (uint32_t)(0) << 24;
  10028     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10029     _flag_k = FK_NARROW(FK_CMP, 24);
  10030     if (CMP_EQ(_flag_a, _flag_b)) goto L_47056469; /* 0x4705645E: je 0x47056469 */
  10031 L_47056460:
  10032     eax = MEM32(esp + 0x1024); /* 0x47056460: mov eax, dword ptr [esp + 0x1024] */
  10033     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1);
  10034     MEM32(eax) = MEM32(eax) + 1; /* 0x47056467: inc dword ptr [eax] */
  10035     _flag_k = FK_INC;
  10036 L_47056469:
  10037     SET_LO8(eax, MEM8(esi)); /* 0x47056469: mov al, byte ptr [esi] */
  10038     /* cmp LO8(eax), 0x27u */ /* 0x4705646B: cmp al, 0x27 */
  10039     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x27u) << 24;
  10040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10041     _flag_k = FK_NARROW(FK_CMP, 24);
  10042     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705648E; /* 0x4705646D: je 0x4705648e */
  10043 L_4705646F:
  10044     /* cmp LO8(eax), 0x22u */ /* 0x4705646F: cmp al, 0x22 */
  10045     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x22u) << 24;
  10046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10047     _flag_k = FK_NARROW(FK_CMP, 24);
  10048     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705648E; /* 0x47056471: je 0x4705648e */
  10049 L_47056473:
  10050     /* test LO8(eax), LO8(eax) */ /* 0x47056473: test al, al */
  10051     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10052     _cf = 0;
  10053     _flag_k = FK_NARROW(FK_TEST, 24);
  10054     if (TEST_Z(_flag_a, _flag_b)) goto L_470564A9; /* 0x47056475: je 0x470564a9 */
  10055 L_47056477:
  10056     eax = (int32_t)(int8_t)LO8(eax); /* 0x47056477: movsx eax, al */
  10057     PUSH32(esp, eax); /* 0x4705647A: push eax */
  10058     RECOMP_ICALL(ebx); /* 0x4705647B: call ebx */
  10059     RECOMP_FLAGS_IN();
  10060     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10061     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10062     esp = esp + 4; /* 0x4705647D: add esp, 4 */
  10063     _flag_k = FK_ADD;
  10064     /* test eax, eax */ /* 0x47056480: test eax, eax */
  10065     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10066     _cf = 0;
  10067     _flag_k = FK_TEST;
  10068     if (TEST_NZ(_flag_a, _flag_b)) goto L_470564A9; /* 0x47056482: jne 0x470564a9 */
  10069 L_47056484:
  10070     SET_LO8(eax, MEM8(esi + 0x1)); /* 0x47056484: mov al, byte ptr [esi + 1] */
  10071     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  10072     esi = esi + 1; /* 0x47056487: inc esi */
  10073     _flag_k = FK_INC;
  10074     /* test LO8(eax), LO8(eax) */ /* 0x47056488: test al, al */
  10075     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10076     _cf = 0;
  10077     _flag_k = FK_NARROW(FK_TEST, 24);
  10078     RECOMP_BACKEDGE();
  10079     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056477; /* 0x4705648A: jne 0x47056477 */
  10080 L_4705648C:
  10081     goto L_470564A9; /* 0x4705648C: jmp 0x470564a9 */
  10082 L_4705648E:
  10083     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  10084     esi = esi + 1; /* 0x4705648E: inc esi */
  10085     _flag_k = FK_INC;
  10086     SET_LO8(ebx, LO8(eax)); /* 0x4705648F: mov bl, al */
  10087     SET_LO8(eax, MEM8(esi)); /* 0x47056491: mov al, byte ptr [esi] */
  10088     /* test LO8(eax), LO8(eax) */ /* 0x47056493: test al, al */
  10089     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10090     _cf = 0;
  10091     _flag_k = FK_NARROW(FK_TEST, 24);
  10092     if (TEST_Z(_flag_a, _flag_b)) goto L_470564A3; /* 0x47056495: je 0x470564a3 */
  10093 L_47056497:
  10094     /* cmp LO8(eax), LO8(ebx) */ /* 0x47056497: cmp al, bl */
  10095     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10096     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10097     _flag_k = FK_NARROW(FK_CMP, 24);
  10098     if (CMP_EQ(_flag_a, _flag_b)) goto L_470564A3; /* 0x47056499: je 0x470564a3 */
  10099 L_4705649B:
  10100     SET_LO8(eax, MEM8(esi + 0x1)); /* 0x4705649B: mov al, byte ptr [esi + 1] */
  10101     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  10102     esi = esi + 1; /* 0x4705649E: inc esi */
  10103     _flag_k = FK_INC;
  10104     /* test LO8(eax), LO8(eax) */ /* 0x4705649F: test al, al */
  10105     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10106     _cf = 0;
  10107     _flag_k = FK_NARROW(FK_TEST, 24);
  10108     RECOMP_BACKEDGE();
  10109     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056497; /* 0x470564A1: jne 0x47056497 */
  10110 L_470564A3:
  10111     /* cmp MEM8(esi), 0 */ /* 0x470564A3: cmp byte ptr [esi], 0 */
  10112     _flag_a = (uint32_t)(MEM8(esi)) << 24; _flag_b = (uint32_t)(0) << 24;
  10113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10114     _flag_k = FK_NARROW(FK_CMP, 24);
  10115     if (CMP_EQ(_flag_a, _flag_b)) goto L_470564B0; /* 0x470564A6: je 0x470564b0 */
  10116 L_470564A8:
  10117     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  10118     esi = esi + 1; /* 0x470564A8: inc esi */
  10119     _flag_k = FK_INC;
  10120 L_470564A9:
  10121     /* cmp MEM8(esi), 0 */ /* 0x470564A9: cmp byte ptr [esi], 0 */
  10122     _flag_a = (uint32_t)(MEM8(esi)) << 24; _flag_b = (uint32_t)(0) << 24;
  10123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10124     _flag_k = FK_NARROW(FK_CMP, 24);
  10125     RECOMP_BACKEDGE();
  10126     if (CMP_NE(_flag_a, _flag_b)) goto L_4705642F; /* 0x470564AC: jne 0x4705642f */
  10127 L_470564AE:
  10128     goto L_47056523; /* 0x470564AE: jmp 0x47056523 */
  10129 L_470564B0:
  10130     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470564B0: call dword ptr [0x470ac150] */
  10131     RECOMP_FLAGS_IN();
  10132     edi = eax; /* 0x470564B6: mov edi, eax */
  10133     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470564B8: call dword ptr [0x470ac3c8] */
  10134     RECOMP_FLAGS_IN();
  10135     eax = MEM32(eax); /* 0x470564BE: mov eax, dword ptr [eax] */
  10136     /* test eax, eax */ /* 0x470564C0: test eax, eax */
  10137     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10138     _cf = 0;
  10139     _flag_k = FK_TEST;
  10140     if (TEST_Z(_flag_a, _flag_b)) goto L_470564C6; /* 0x470564C2: je 0x470564c6 */
  10141 L_470564C4:
  10142     edi = eax; /* 0x470564C4: mov edi, eax */
  10143 L_470564C6:
  10144     RECOMP_ICALL(0x47039020u); /* 0x470564C6: call 0x47039020 */ /* not lifted */
  10145     RECOMP_FLAGS_IN();
  10146     ebp = eax; /* 0x470564CB: mov ebp, eax */
  10147     ecx = ebp; /* 0x470564CD: mov ecx, ebp */
  10148     RECOMP_ICALL(0x4703B210u); /* 0x470564CF: call 0x4703b210 */ /* not lifted */
  10149     RECOMP_FLAGS_IN();
  10150     PUSH32(esp, eax); /* 0x470564D4: push eax */
  10151     ecx = ebp; /* 0x470564D5: mov ecx, ebp */
  10152     RECOMP_ICALL(0x4703B240u); /* 0x470564D7: call 0x4703b240 */ /* not lifted */
  10153     RECOMP_FLAGS_IN();
  10154     PUSH32(esp, eax); /* 0x470564DC: push eax */
  10155     ecx = ebp; /* 0x470564DD: mov ecx, ebp */
  10156     RECOMP_ICALL(0x4703B080u); /* 0x470564DF: call 0x4703b080 */ /* not lifted */
  10157     RECOMP_FLAGS_IN();
  10158     PUSH32(esp, eax); /* 0x470564E4: push eax */
  10159     PUSH32(esp, edi); /* 0x470564E5: push edi */
  10160     PUSH32(esp, 0xFFFFFFFFu); /* 0x470564E6: push -1 */
  10161     PUSH32(esp, 0x1030u); /* 0x470564E8: push 0x1030 */
  10162     PUSH32(esp, 0x47108F38u); /* 0x470564ED: push 0x47108f38 */
  10163     ecx = ebp; /* 0x470564F2: mov ecx, ebp */
  10164     RECOMP_ICALL(0x4703A340u); /* 0x470564F4: call 0x4703a340 */ /* not lifted */
  10165     RECOMP_FLAGS_IN();
  10166     ecx = (int32_t)(int8_t)LO8(ebx); /* 0x470564F9: movsx ecx, bl */
  10167     PUSH32(esp, ecx); /* 0x470564FC: push ecx */
  10168     PUSH32(esp, 0x4710913Cu); /* 0x470564FD: push 0x4710913c */
  10169     PUSH32(esp, 0x80u); /* 0x47056502: push 0x80 */
  10170     PUSH32(esp, ebp); /* 0x47056507: push ebp */
  10171     RECOMP_ICALL(0x47039830u); /* 0x47056508: call 0x47039830 */ /* not lifted */
  10172     RECOMP_FLAGS_IN();
  10173     eax = MEM32(esp + 0x1034); /* 0x4705650D: mov eax, dword ptr [esp + 0x1034] */
  10174     ecx = MEM32(eax); /* 0x47056514: mov ecx, dword ptr [eax] */
  10175     edi = MEM32(esp + 0x1030); /* 0x47056516: mov edi, dword ptr [esp + 0x1030] */
  10176     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
  10177     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10178     esp = esp + 0x10u; /* 0x4705651D: add esp, 0x10 */
  10179     _flag_k = FK_ADD;
  10180     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10181     ecx = ecx - 1; /* 0x47056520: dec ecx */
  10182     _flag_k = FK_DEC;
  10183     MEM32(eax) = ecx; /* 0x47056521: mov dword ptr [eax], ecx */
  10184 L_47056523:
  10185     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
  10186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10187     esi = esi - edi; /* 0x47056523: sub esi, edi */
  10188     _flag_k = FK_CMP;
  10189     /* cmp esi, 0x1000u */ /* 0x47056525: cmp esi, 0x1000 */
  10190     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1000u);
  10191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10192     _flag_k = FK_CMP;
  10193     ebp = esp + 0x1C; /* 0x4705652B: lea ebp, [esp + 0x1c] */
  10194     MEM32(esp + 0x14) = ebp; /* 0x4705652F: mov dword ptr [esp + 0x14], ebp */
  10195     if (CMP_L(_flag_a, _flag_b)) goto L_47056565; /* 0x47056533: jl 0x47056565 */
  10196 L_47056535:
  10197     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  10198     esi = esi + 1; /* 0x47056535: inc esi */
  10199     _flag_k = FK_INC;
  10200     PUSH32(esp, esi); /* 0x47056536: push esi */
  10201     RECOMP_ICALL(0x470A33F2u); /* 0x47056537: call 0x470a33f2 */ /* not lifted */
  10202     RECOMP_FLAGS_IN();
  10203     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10204     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10205     esp = esp + 4; /* 0x4705653C: add esp, 4 */
  10206     _flag_k = FK_ADD;
  10207     /* test eax, eax */ /* 0x4705653F: test eax, eax */
  10208     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10209     _cf = 0;
  10210     _flag_k = FK_TEST;
  10211     MEM32(esp + 0x14) = eax; /* 0x47056541: mov dword ptr [esp + 0x14], eax */
  10212     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056561; /* 0x47056545: jne 0x47056561 */
  10213 L_47056547:
  10214     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47056547: call dword ptr [0x470ac3c8] */
  10215     RECOMP_FLAGS_IN();
  10216     edi = POP32_VAL(esp); /* 0x4705654D: pop edi */
  10217     esi = POP32_VAL(esp); /* 0x4705654E: pop esi */
  10218     ebp = POP32_VAL(esp); /* 0x4705654F: pop ebp */
  10219     MEM32(eax) = 0xCu; /* 0x47056550: mov dword ptr [eax], 0xc */
  10220     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
  10221     eax = eax | 0xFFFFFFFFu; /* 0x47056556: or eax, 0xffffffff */
  10222     _cf = 0;
  10223     _flag_k = FK_TEST;
  10224     ebx = POP32_VAL(esp); /* 0x47056559: pop ebx */
  10225     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  10226     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10227     esp = esp + 0x100Cu; /* 0x4705655A: add esp, 0x100c */
  10228     _flag_k = FK_ADD;
  10229     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056560: ret  */
  10230 L_47056561:
  10231     ebp = MEM32(esp + 0x14); /* 0x47056561: mov ebp, dword ptr [esp + 0x14] */
  10232 L_47056565:
  10233     edx = MEM32(esp + 0x1024); /* 0x47056565: mov edx, dword ptr [esp + 0x1024] */
  10234     eax = MEM32(edx); /* 0x4705656C: mov eax, dword ptr [edx] */
  10235     ecx = eax * 4 + 0x4; /* 0x4705656E: lea ecx, [eax*4 + 4] */
  10236     PUSH32(esp, ecx); /* 0x47056575: push ecx */
  10237     RECOMP_ICALL(0x470A33F2u); /* 0x47056576: call 0x470a33f2 */ /* not lifted */
  10238     RECOMP_FLAGS_IN();
  10239     edx = MEM32(esp + 0x102C); /* 0x4705657B: mov edx, dword ptr [esp + 0x102c] */
  10240     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10242     esp = esp + 4; /* 0x47056582: add esp, 4 */
  10243     _flag_k = FK_ADD;
  10244     /* test eax, eax */ /* 0x47056585: test eax, eax */
  10245     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10246     _cf = 0;
  10247     _flag_k = FK_TEST;
  10248     MEM32(edx) = eax; /* 0x47056587: mov dword ptr [edx], eax */
  10249     if (TEST_NZ(_flag_a, _flag_b)) goto L_470565A5; /* 0x47056589: jne 0x470565a5 */
  10250 L_4705658B:
  10251     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705658B: call dword ptr [0x470ac3c8] */
  10252     RECOMP_FLAGS_IN();
  10253     edi = POP32_VAL(esp); /* 0x47056591: pop edi */
  10254     esi = POP32_VAL(esp); /* 0x47056592: pop esi */
  10255     ebp = POP32_VAL(esp); /* 0x47056593: pop ebp */
  10256     MEM32(eax) = 0xCu; /* 0x47056594: mov dword ptr [eax], 0xc */
  10257     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
  10258     eax = eax | 0xFFFFFFFFu; /* 0x4705659A: or eax, 0xffffffff */
  10259     _cf = 0;
  10260     _flag_k = FK_TEST;
  10261     ebx = POP32_VAL(esp); /* 0x4705659D: pop ebx */
  10262     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  10263     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10264     esp = esp + 0x100Cu; /* 0x4705659E: add esp, 0x100c */
  10265     _flag_k = FK_ADD;
  10266     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470565A4: ret  */
  10267 L_470565A5:
  10268     eax = MEM32(esp + 0x1024); /* 0x470565A5: mov eax, dword ptr [esp + 0x1024] */
  10269     /* cmp MEM32(eax), 0 */ /* 0x470565AC: cmp dword ptr [eax], 0 */
  10270     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0);
  10271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10272     _flag_k = FK_CMP;
  10273     MEM32(esp + 0x18) = 0; /* 0x470565AF: mov dword ptr [esp + 0x18], 0 */
  10274     if (CMP_BE(_flag_a, _flag_b)) goto L_470567DC; /* 0x470565B7: jbe 0x470567dc */
  10275 L_470565BD:
  10276     ecx = (int32_t)(int8_t)MEM8(edi); /* 0x470565BD: movsx ecx, byte ptr [edi] */
  10277     esi = MEM32(0x470AC1E4); /* 0x470565C0: mov esi, dword ptr [0x470ac1e4] */
  10278     PUSH32(esp, ecx); /* 0x470565C6: push ecx */
  10279     RECOMP_ICALL(esi); /* 0x470565C7: call esi */
  10280     RECOMP_FLAGS_IN();
  10281     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10282     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10283     esp = esp + 4; /* 0x470565C9: add esp, 4 */
  10284     _flag_k = FK_ADD;
  10285     /* test eax, eax */ /* 0x470565CC: test eax, eax */
  10286     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10287     _cf = 0;
  10288     _flag_k = FK_TEST;
  10289     if (TEST_Z(_flag_a, _flag_b)) goto L_470565DF; /* 0x470565CE: je 0x470565df */
  10290 L_470565D0:
  10291     edx = (int32_t)(int8_t)MEM8(edi + 0x1); /* 0x470565D0: movsx edx, byte ptr [edi + 1] */
  10292     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10293     edi = edi + 1; /* 0x470565D4: inc edi */
  10294     _flag_k = FK_INC;
  10295     PUSH32(esp, edx); /* 0x470565D5: push edx */
  10296     RECOMP_ICALL(esi); /* 0x470565D6: call esi */
  10297     RECOMP_FLAGS_IN();
  10298     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10299     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10300     esp = esp + 4; /* 0x470565D8: add esp, 4 */
  10301     _flag_k = FK_ADD;
  10302     /* test eax, eax */ /* 0x470565DB: test eax, eax */
  10303     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10304     _cf = 0;
  10305     _flag_k = FK_TEST;
  10306     RECOMP_BACKEDGE();
  10307     if (TEST_NZ(_flag_a, _flag_b)) goto L_470565D0; /* 0x470565DD: jne 0x470565d0 */
  10308 L_470565DF:
  10309     SET_LO8(eax, MEM8(edi)); /* 0x470565DF: mov al, byte ptr [edi] */
  10310     /* cmp LO8(eax), 0x27u */ /* 0x470565E1: cmp al, 0x27 */
  10311     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x27u) << 24;
  10312     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10313     _flag_k = FK_NARROW(FK_CMP, 24);
  10314     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705669E; /* 0x470565E3: je 0x4705669e */
  10315 L_470565E9:
  10316     /* cmp LO8(eax), 0x22u */ /* 0x470565E9: cmp al, 0x22 */
  10317     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x22u) << 24;
  10318     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10319     _flag_k = FK_NARROW(FK_CMP, 24);
  10320     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705669E; /* 0x470565EB: je 0x4705669e */
  10321 L_470565F1:
  10322     /* test LO8(eax), LO8(eax) */ /* 0x470565F1: test al, al */
  10323     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10324     _cf = 0;
  10325     _flag_k = FK_NARROW(FK_TEST, 24);
  10326     ebx = esp + 0x1C; /* 0x470565F3: lea ebx, [esp + 0x1c] */
  10327     if (TEST_Z(_flag_a, _flag_b)) goto L_47056696; /* 0x470565F7: je 0x47056696 */
  10328 L_470565FD:
  10329     eax = (int32_t)(int8_t)LO8(eax); /* 0x470565FD: movsx eax, al */
  10330     PUSH32(esp, eax); /* 0x47056600: push eax */
  10331     RECOMP_ICALL(MEM32(0x470AC1E4)); /* 0x47056601: call dword ptr [0x470ac1e4] */
  10332     RECOMP_FLAGS_IN();
  10333     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10334     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10335     esp = esp + 4; /* 0x47056607: add esp, 4 */
  10336     _flag_k = FK_ADD;
  10337     /* test eax, eax */ /* 0x4705660A: test eax, eax */
  10338     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10339     _cf = 0;
  10340     _flag_k = FK_TEST;
  10341     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056696; /* 0x4705660C: jne 0x47056696 */
  10342 L_47056612:
  10343     ecx = ebx; /* 0x47056612: mov ecx, ebx */
  10344     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp);
  10345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10346     ecx = ecx - ebp; /* 0x47056614: sub ecx, ebp */
  10347     _flag_k = FK_CMP;
  10348     /* cmp ecx, 0x1000u */ /* 0x47056616: cmp ecx, 0x1000 */
  10349     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1000u);
  10350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10351     _flag_k = FK_CMP;
  10352     if (CMP_B(_flag_a, _flag_b)) goto L_47056685; /* 0x4705661C: jb 0x47056685 */
  10353 L_4705661E:
  10354     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705661E: call dword ptr [0x470ac150] */
  10355     RECOMP_FLAGS_IN();
  10356     ebp = eax; /* 0x47056624: mov ebp, eax */
  10357     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47056626: call dword ptr [0x470ac3c8] */
  10358     RECOMP_FLAGS_IN();
  10359     eax = MEM32(eax); /* 0x4705662C: mov eax, dword ptr [eax] */
  10360     /* test eax, eax */ /* 0x4705662E: test eax, eax */
  10361     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10362     _cf = 0;
  10363     _flag_k = FK_TEST;
  10364     if (TEST_Z(_flag_a, _flag_b)) goto L_47056634; /* 0x47056630: je 0x47056634 */
  10365 L_47056632:
  10366     ebp = eax; /* 0x47056632: mov ebp, eax */
  10367 L_47056634:
  10368     RECOMP_ICALL(0x47039020u); /* 0x47056634: call 0x47039020 */ /* not lifted */
  10369     RECOMP_FLAGS_IN();
  10370     esi = eax; /* 0x47056639: mov esi, eax */
  10371     ecx = esi; /* 0x4705663B: mov ecx, esi */
  10372     RECOMP_ICALL(0x4703B210u); /* 0x4705663D: call 0x4703b210 */ /* not lifted */
  10373     RECOMP_FLAGS_IN();
  10374     PUSH32(esp, eax); /* 0x47056642: push eax */
  10375     ecx = esi; /* 0x47056643: mov ecx, esi */
  10376     RECOMP_ICALL(0x4703B240u); /* 0x47056645: call 0x4703b240 */ /* not lifted */
  10377     RECOMP_FLAGS_IN();
  10378     PUSH32(esp, eax); /* 0x4705664A: push eax */
  10379     ecx = esi; /* 0x4705664B: mov ecx, esi */
  10380     RECOMP_ICALL(0x4703B080u); /* 0x4705664D: call 0x4703b080 */ /* not lifted */
  10381     RECOMP_FLAGS_IN();
  10382     PUSH32(esp, eax); /* 0x47056652: push eax */
  10383     PUSH32(esp, ebp); /* 0x47056653: push ebp */
  10384     PUSH32(esp, 0xFFFFFFFFu); /* 0x47056654: push -1 */
  10385     PUSH32(esp, 0x106Fu); /* 0x47056656: push 0x106f */
  10386     PUSH32(esp, 0x47108F38u); /* 0x4705665B: push 0x47108f38 */
  10387     ecx = esi; /* 0x47056660: mov ecx, esi */
  10388     RECOMP_ICALL(0x4703A340u); /* 0x47056662: call 0x4703a340 */ /* not lifted */
  10389     RECOMP_FLAGS_IN();
  10390     PUSH32(esp, 0xFFFFFFFFu); /* 0x47056667: push -1 */
  10391     PUSH32(esp, 0x47109110u); /* 0x47056669: push 0x47109110 */
  10392     PUSH32(esp, 0x47104AA4u); /* 0x4705666E: push 0x47104aa4 */
  10393     PUSH32(esp, 0x80u); /* 0x47056673: push 0x80 */
  10394     PUSH32(esp, esi); /* 0x47056678: push esi */
  10395     RECOMP_ICALL(0x47039830u); /* 0x47056679: call 0x47039830 */ /* not lifted */
  10396     RECOMP_FLAGS_IN();
  10397     ebp = MEM32(esp + 0x28); /* 0x4705667E: mov ebp, dword ptr [esp + 0x28] */
  10398     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  10399     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10400     esp = esp + 0x14u; /* 0x47056682: add esp, 0x14 */
  10401     _flag_k = FK_ADD;
  10402 L_47056685:
  10403     SET_LO8(edx, MEM8(edi)); /* 0x47056685: mov dl, byte ptr [edi] */
  10404     SET_LO8(eax, MEM8(edi + 0x1)); /* 0x47056687: mov al, byte ptr [edi + 1] */
  10405     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10406     edi = edi + 1; /* 0x4705668A: inc edi */
  10407     _flag_k = FK_INC;
  10408     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x4705668B: mov byte ptr [ebx], dl */
  10409     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  10410     ebx = ebx + 1; /* 0x4705668D: inc ebx */
  10411     _flag_k = FK_INC;
  10412     /* test LO8(eax), LO8(eax) */ /* 0x4705668E: test al, al */
  10413     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10414     _cf = 0;
  10415     _flag_k = FK_NARROW(FK_TEST, 24);
  10416     RECOMP_BACKEDGE();
  10417     if (TEST_NZ(_flag_a, _flag_b)) goto L_470565FD; /* 0x47056690: jne 0x470565fd */
  10418 L_47056696:
  10419     MEM8(ebx) = (uint8_t)(0); /* 0x47056696: mov byte ptr [ebx], 0 */
  10420     goto L_47056747; /* 0x47056699: jmp 0x47056747 */
  10421 L_4705669E:
  10422     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10423     edi = edi + 1; /* 0x4705669E: inc edi */
  10424     _flag_k = FK_INC;
  10425     SET_LO8(ecx, LO8(eax)); /* 0x4705669F: mov cl, al */
  10426     SET_LO8(eax, MEM8(edi)); /* 0x470566A1: mov al, byte ptr [edi] */
  10427     /* test LO8(eax), LO8(eax) */ /* 0x470566A3: test al, al */
  10428     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10429     _cf = 0;
  10430     _flag_k = FK_NARROW(FK_TEST, 24);
  10431     MEM8(esp + 0x13) = (uint8_t)(LO8(ecx)); /* 0x470566A5: mov byte ptr [esp + 0x13], cl */
  10432     ebx = ebp; /* 0x470566A9: mov ebx, ebp */
  10433     if (TEST_Z(_flag_a, _flag_b)) goto L_4705673F; /* 0x470566AB: je 0x4705673f */
  10434 L_470566B1:
  10435     /* cmp LO8(eax), LO8(ecx) */ /* 0x470566B1: cmp al, cl */
  10436     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  10437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10438     _flag_k = FK_NARROW(FK_CMP, 24);
  10439     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705673F; /* 0x470566B3: je 0x4705673f */
  10440 L_470566B9:
  10441     eax = ebx; /* 0x470566B9: mov eax, ebx */
  10442     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
  10443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10444     eax = eax - ebp; /* 0x470566BB: sub eax, ebp */
  10445     _flag_k = FK_CMP;
  10446     /* cmp eax, 0x1000u */ /* 0x470566BD: cmp eax, 0x1000 */
  10447     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u);
  10448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10449     _flag_k = FK_CMP;
  10450     if (CMP_B(_flag_a, _flag_b)) goto L_4705672F; /* 0x470566C2: jb 0x4705672f */
  10451 L_470566C4:
  10452     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470566C4: call dword ptr [0x470ac150] */
  10453     RECOMP_FLAGS_IN();
  10454     ebp = eax; /* 0x470566CA: mov ebp, eax */
  10455     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470566CC: call dword ptr [0x470ac3c8] */
  10456     RECOMP_FLAGS_IN();
  10457     eax = MEM32(eax); /* 0x470566D2: mov eax, dword ptr [eax] */
  10458     /* test eax, eax */ /* 0x470566D4: test eax, eax */
  10459     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10460     _cf = 0;
  10461     _flag_k = FK_TEST;
  10462     if (TEST_Z(_flag_a, _flag_b)) goto L_470566DA; /* 0x470566D6: je 0x470566da */
  10463 L_470566D8:
  10464     ebp = eax; /* 0x470566D8: mov ebp, eax */
  10465 L_470566DA:
  10466     RECOMP_ICALL(0x47039020u); /* 0x470566DA: call 0x47039020 */ /* not lifted */
  10467     RECOMP_FLAGS_IN();
  10468     esi = eax; /* 0x470566DF: mov esi, eax */
  10469     ecx = esi; /* 0x470566E1: mov ecx, esi */
  10470     RECOMP_ICALL(0x4703B210u); /* 0x470566E3: call 0x4703b210 */ /* not lifted */
  10471     RECOMP_FLAGS_IN();
  10472     PUSH32(esp, eax); /* 0x470566E8: push eax */
  10473     ecx = esi; /* 0x470566E9: mov ecx, esi */
  10474     RECOMP_ICALL(0x4703B240u); /* 0x470566EB: call 0x4703b240 */ /* not lifted */
  10475     RECOMP_FLAGS_IN();
  10476     PUSH32(esp, eax); /* 0x470566F0: push eax */
  10477     ecx = esi; /* 0x470566F1: mov ecx, esi */
  10478     RECOMP_ICALL(0x4703B080u); /* 0x470566F3: call 0x4703b080 */ /* not lifted */
  10479     RECOMP_FLAGS_IN();
  10480     PUSH32(esp, eax); /* 0x470566F8: push eax */
  10481     PUSH32(esp, ebp); /* 0x470566F9: push ebp */
  10482     PUSH32(esp, 0xFFFFFFFFu); /* 0x470566FA: push -1 */
  10483     PUSH32(esp, 0x105Fu); /* 0x470566FC: push 0x105f */
  10484     PUSH32(esp, 0x47108F38u); /* 0x47056701: push 0x47108f38 */
  10485     ecx = esi; /* 0x47056706: mov ecx, esi */
  10486     RECOMP_ICALL(0x4703A340u); /* 0x47056708: call 0x4703a340 */ /* not lifted */
  10487     RECOMP_FLAGS_IN();
  10488     PUSH32(esp, 0xFFFFFFFFu); /* 0x4705670D: push -1 */
  10489     PUSH32(esp, 0x471090E0u); /* 0x4705670F: push 0x471090e0 */
  10490     PUSH32(esp, 0x47104AA4u); /* 0x47056714: push 0x47104aa4 */
  10491     PUSH32(esp, 0x80u); /* 0x47056719: push 0x80 */
  10492     PUSH32(esp, esi); /* 0x4705671E: push esi */
  10493     RECOMP_ICALL(0x47039830u); /* 0x4705671F: call 0x47039830 */ /* not lifted */
  10494     RECOMP_FLAGS_IN();
  10495     ebp = MEM32(esp + 0x28); /* 0x47056724: mov ebp, dword ptr [esp + 0x28] */
  10496     SET_LO8(ecx, MEM8(esp + 0x27)); /* 0x47056728: mov cl, byte ptr [esp + 0x27] */
  10497     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  10498     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10499     esp = esp + 0x14u; /* 0x4705672C: add esp, 0x14 */
  10500     _flag_k = FK_ADD;
  10501 L_4705672F:
  10502     SET_LO8(edx, MEM8(edi)); /* 0x4705672F: mov dl, byte ptr [edi] */
  10503     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10504     edi = edi + 1; /* 0x47056731: inc edi */
  10505     _flag_k = FK_INC;
  10506     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x47056732: mov byte ptr [ebx], dl */
  10507     SET_LO8(eax, MEM8(edi)); /* 0x47056734: mov al, byte ptr [edi] */
  10508     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  10509     ebx = ebx + 1; /* 0x47056736: inc ebx */
  10510     _flag_k = FK_INC;
  10511     /* test LO8(eax), LO8(eax) */ /* 0x47056737: test al, al */
  10512     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10513     _cf = 0;
  10514     _flag_k = FK_NARROW(FK_TEST, 24);
  10515     RECOMP_BACKEDGE();
  10516     if (TEST_NZ(_flag_a, _flag_b)) goto L_470566B1; /* 0x47056739: jne 0x470566b1 */
  10517 L_4705673F:
  10518     MEM8(ebx) = (uint8_t)(0); /* 0x4705673F: mov byte ptr [ebx], 0 */
  10519     /* cmp MEM8(edi), LO8(ecx) */ /* 0x47056742: cmp byte ptr [edi], cl */
  10520     _flag_a = (uint32_t)(MEM8(edi)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  10521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10522     _flag_k = FK_NARROW(FK_CMP, 24);
  10523     if (CMP_NE(_flag_a, _flag_b)) goto L_47056747; /* 0x47056744: jne 0x47056747 */
  10524 L_47056746:
  10525     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10526     edi = edi + 1; /* 0x47056746: inc edi */
  10527     _flag_k = FK_INC;
  10528 L_47056747:
  10529     eax = MEM32(esp + 0x102C); /* 0x47056747: mov eax, dword ptr [esp + 0x102c] */
  10530     /* test eax, eax */ /* 0x4705674E: test eax, eax */
  10531     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10532     _cf = 0;
  10533     _flag_k = FK_TEST;
  10534     if (TEST_Z(_flag_a, _flag_b)) goto L_4705679B; /* 0x47056750: je 0x4705679b */
  10535 L_47056752:
  10536     /* cmp MEM8(esp + 0x1C), 0x24u */ /* 0x47056752: cmp byte ptr [esp + 0x1c], 0x24 */
  10537     _flag_a = (uint32_t)(MEM8(esp + 0x1C)) << 24; _flag_b = (uint32_t)(0x24u) << 24;
  10538     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10539     _flag_k = FK_NARROW(FK_CMP, 24);
  10540     if (CMP_NE(_flag_a, _flag_b)) goto L_4705676E; /* 0x47056757: jne 0x4705676e */
  10541 L_47056759:
  10542     eax = esp + 0x1D; /* 0x47056759: lea eax, [esp + 0x1d] */
  10543     PUSH32(esp, eax); /* 0x4705675D: push eax */
  10544     RECOMP_ICALL(MEM32(0x470AC268)); /* 0x4705675E: call dword ptr [0x470ac268] */
  10545     RECOMP_FLAGS_IN();
  10546     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10547     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10548     esp = esp + 4; /* 0x47056764: add esp, 4 */
  10549     _flag_k = FK_ADD;
  10550     /* test eax, eax */ /* 0x47056767: test eax, eax */
  10551     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10552     _cf = 0;
  10553     _flag_k = FK_TEST;
  10554     if (TEST_Z(_flag_a, _flag_b)) goto L_4705676E; /* 0x47056769: je 0x4705676e */
  10555 L_4705676B:
  10556     PUSH32(esp, eax); /* 0x4705676B: push eax */
  10557     goto L_47056773; /* 0x4705676C: jmp 0x47056773 */
  10558 L_4705676E:
  10559     ecx = esp + 0x1C; /* 0x4705676E: lea ecx, [esp + 0x1c] */
  10560     PUSH32(esp, ecx); /* 0x47056772: push ecx */
  10561 L_47056773:
  10562     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47056773: call dword ptr [0x470ac3f4] */
  10563     RECOMP_FLAGS_IN();
  10564     edx = MEM32(esp + 0x102C); /* 0x47056779: mov edx, dword ptr [esp + 0x102c] */
  10565     esi = MEM32(edx); /* 0x47056780: mov esi, dword ptr [edx] */
  10566     ecx = MEM32(esp + 0x1C); /* 0x47056782: mov ecx, dword ptr [esp + 0x1c] */
  10567     MEM32(esi + ecx * 4) = eax; /* 0x47056786: mov dword ptr [esi + ecx*4], eax */
  10568     edx = MEM32(edx); /* 0x47056789: mov edx, dword ptr [edx] */
  10569     eax = MEM32(edx + ecx * 4); /* 0x4705678B: mov eax, dword ptr [edx + ecx*4] */
  10570     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10571     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10572     esp = esp + 4; /* 0x4705678E: add esp, 4 */
  10573     _flag_k = FK_ADD;
  10574     /* test eax, eax */ /* 0x47056791: test eax, eax */
  10575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10576     _cf = 0;
  10577     _flag_k = FK_TEST;
  10578     RECOMP_BACKEDGE();
  10579     if (TEST_Z(_flag_a, _flag_b)) goto L_4705658B; /* 0x47056793: je 0x4705658b */
  10580 L_47056799:
  10581     goto L_470567C6; /* 0x47056799: jmp 0x470567c6 */
  10582 L_4705679B:
  10583     eax = esp + 0x1C; /* 0x4705679B: lea eax, [esp + 0x1c] */
  10584     PUSH32(esp, eax); /* 0x4705679F: push eax */
  10585     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x470567A0: call dword ptr [0x470ac3f4] */
  10586     RECOMP_FLAGS_IN();
  10587     edx = MEM32(esp + 0x102C); /* 0x470567A6: mov edx, dword ptr [esp + 0x102c] */
  10588     esi = MEM32(edx); /* 0x470567AD: mov esi, dword ptr [edx] */
  10589     ecx = MEM32(esp + 0x1C); /* 0x470567AF: mov ecx, dword ptr [esp + 0x1c] */
  10590     MEM32(esi + ecx * 4) = eax; /* 0x470567B3: mov dword ptr [esi + ecx*4], eax */
  10591     edx = MEM32(edx); /* 0x470567B6: mov edx, dword ptr [edx] */
  10592     eax = MEM32(edx + ecx * 4); /* 0x470567B8: mov eax, dword ptr [edx + ecx*4] */
  10593     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10594     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10595     esp = esp + 4; /* 0x470567BB: add esp, 4 */
  10596     _flag_k = FK_ADD;
  10597     /* test eax, eax */ /* 0x470567BE: test eax, eax */
  10598     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10599     _cf = 0;
  10600     _flag_k = FK_TEST;
  10601     RECOMP_BACKEDGE();
  10602     if (TEST_Z(_flag_a, _flag_b)) goto L_4705658B; /* 0x470567C0: je 0x4705658b */
  10603 L_470567C6:
  10604     eax = MEM32(esp + 0x1024); /* 0x470567C6: mov eax, dword ptr [esp + 0x1024] */
  10605     edx = MEM32(eax); /* 0x470567CD: mov edx, dword ptr [eax] */
  10606     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10607     ecx = ecx + 1; /* 0x470567CF: inc ecx */
  10608     _flag_k = FK_INC;
  10609     /* cmp ecx, edx */ /* 0x470567D0: cmp ecx, edx */
  10610     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  10611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10612     _flag_k = FK_CMP;
  10613     MEM32(esp + 0x18) = ecx; /* 0x470567D2: mov dword ptr [esp + 0x18], ecx */
  10614     RECOMP_BACKEDGE();
  10615     if (CMP_B(_flag_a, _flag_b)) goto L_470565BD; /* 0x470567D6: jb 0x470565bd */
  10616 L_470567DC:
  10617     ecx = esp + 0x1C; /* 0x470567DC: lea ecx, [esp + 0x1c] */
  10618     /* cmp ebp, ecx */ /* 0x470567E0: cmp ebp, ecx */
  10619     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ecx);
  10620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10621     _flag_k = FK_CMP;
  10622     if (CMP_EQ(_flag_a, _flag_b)) goto L_470567ED; /* 0x470567E2: je 0x470567ed */
  10623 L_470567E4:
  10624     PUSH32(esp, ebp); /* 0x470567E4: push ebp */
  10625     RECOMP_ICALL(0x470A32A2u); /* 0x470567E5: call 0x470a32a2 */ /* not lifted */
  10626     RECOMP_FLAGS_IN();
  10627     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10628     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10629     esp = esp + 4; /* 0x470567EA: add esp, 4 */
  10630     _flag_k = FK_ADD;
  10631 L_470567ED:
  10632     edx = MEM32(esp + 0x1024); /* 0x470567ED: mov edx, dword ptr [esp + 0x1024] */
  10633     eax = MEM32(edx); /* 0x470567F4: mov eax, dword ptr [edx] */
  10634     ecx = MEM32(esp + 0x1028); /* 0x470567F6: mov ecx, dword ptr [esp + 0x1028] */
  10635     edx = MEM32(ecx); /* 0x470567FD: mov edx, dword ptr [ecx] */
  10636     edi = POP32_VAL(esp); /* 0x470567FF: pop edi */
  10637     esi = POP32_VAL(esp); /* 0x47056800: pop esi */
  10638     ebp = POP32_VAL(esp); /* 0x47056801: pop ebp */
  10639     MEM32(edx + eax * 4) = 0; /* 0x47056802: mov dword ptr [edx + eax*4], 0 */
  10640     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10641     eax = 0; /* 0x47056809: xor eax, eax */
  10642     _cf = 0;
  10643     _flag_k = FK_TEST;
  10644     ebx = POP32_VAL(esp); /* 0x4705680B: pop ebx */
  10645     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  10646     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10647     esp = esp + 0x100Cu; /* 0x4705680C: add esp, 0x100c */
  10648     _flag_k = FK_ADD;
  10649     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056812: ret  */
  10650     RECOMP_REGS_OUT();
  10651 }
  10652 
  10653 void sub_4705658B(void) {
  10654     int _fpu_cmp = 0;
  10655     uint32_t _cf = 0;
  10656     int _df = 1;
  10657     uint32_t _flag_k = FK_NONE;
  10658     uint32_t _flag_a = 0, _flag_b = 0;
  10659     uint32_t _itail_tgt = 0;
  10660     RECOMP_REGS_LOCALS
  10661     RECOMP_ENTER(0x4705658Bu);
  10662 
  10663 L_4705658B:
  10664     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705658B: call dword ptr [0x470ac3c8] */
  10665     RECOMP_FLAGS_IN();
  10666     edi = POP32_VAL(esp); /* 0x47056591: pop edi */
  10667     esi = POP32_VAL(esp); /* 0x47056592: pop esi */
  10668     ebp = POP32_VAL(esp); /* 0x47056593: pop ebp */
  10669     MEM32(eax) = 0xCu; /* 0x47056594: mov dword ptr [eax], 0xc */
  10670     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
  10671     eax = eax | 0xFFFFFFFFu; /* 0x4705659A: or eax, 0xffffffff */
  10672     _cf = 0;
  10673     _flag_k = FK_TEST;
  10674     ebx = POP32_VAL(esp); /* 0x4705659D: pop ebx */
  10675     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  10676     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10677     esp = esp + 0x100Cu; /* 0x4705659E: add esp, 0x100c */
  10678     _flag_k = FK_ADD;
  10679     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470565A4: ret  */
  10680     RECOMP_REGS_OUT();
  10681 }
  10682 
  10683 void sub_470565BD(void) {
  10684     int _fpu_cmp = 0;
  10685     uint32_t _cf = 0;
  10686     int _df = 1;
  10687     uint32_t _flag_k = FK_NONE;
  10688     uint32_t _flag_a = 0, _flag_b = 0;
  10689     uint32_t _itail_tgt = 0;
  10690     RECOMP_REGS_LOCALS
  10691     RECOMP_ENTER(0x470565BDu);
  10692 
  10693     goto L_470565BD;
  10694 L_4705658B:
  10695     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705658B: call dword ptr [0x470ac3c8] */
  10696     RECOMP_FLAGS_IN();
  10697     edi = POP32_VAL(esp); /* 0x47056591: pop edi */
  10698     esi = POP32_VAL(esp); /* 0x47056592: pop esi */
  10699     ebp = POP32_VAL(esp); /* 0x47056593: pop ebp */
  10700     MEM32(eax) = 0xCu; /* 0x47056594: mov dword ptr [eax], 0xc */
  10701     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
  10702     eax = eax | 0xFFFFFFFFu; /* 0x4705659A: or eax, 0xffffffff */
  10703     _cf = 0;
  10704     _flag_k = FK_TEST;
  10705     ebx = POP32_VAL(esp); /* 0x4705659D: pop ebx */
  10706     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  10707     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10708     esp = esp + 0x100Cu; /* 0x4705659E: add esp, 0x100c */
  10709     _flag_k = FK_ADD;
  10710     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470565A4: ret  */
  10711 L_470565BD:
  10712     ecx = (int32_t)(int8_t)MEM8(edi); /* 0x470565BD: movsx ecx, byte ptr [edi] */
  10713     esi = MEM32(0x470AC1E4); /* 0x470565C0: mov esi, dword ptr [0x470ac1e4] */
  10714     PUSH32(esp, ecx); /* 0x470565C6: push ecx */
  10715     RECOMP_ICALL(esi); /* 0x470565C7: call esi */
  10716     RECOMP_FLAGS_IN();
  10717     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10718     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10719     esp = esp + 4; /* 0x470565C9: add esp, 4 */
  10720     _flag_k = FK_ADD;
  10721     /* test eax, eax */ /* 0x470565CC: test eax, eax */
  10722     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10723     _cf = 0;
  10724     _flag_k = FK_TEST;
  10725     if (TEST_Z(_flag_a, _flag_b)) goto L_470565DF; /* 0x470565CE: je 0x470565df */
  10726 L_470565D0:
  10727     edx = (int32_t)(int8_t)MEM8(edi + 0x1); /* 0x470565D0: movsx edx, byte ptr [edi + 1] */
  10728     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10729     edi = edi + 1; /* 0x470565D4: inc edi */
  10730     _flag_k = FK_INC;
  10731     PUSH32(esp, edx); /* 0x470565D5: push edx */
  10732     RECOMP_ICALL(esi); /* 0x470565D6: call esi */
  10733     RECOMP_FLAGS_IN();
  10734     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10735     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10736     esp = esp + 4; /* 0x470565D8: add esp, 4 */
  10737     _flag_k = FK_ADD;
  10738     /* test eax, eax */ /* 0x470565DB: test eax, eax */
  10739     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10740     _cf = 0;
  10741     _flag_k = FK_TEST;
  10742     RECOMP_BACKEDGE();
  10743     if (TEST_NZ(_flag_a, _flag_b)) goto L_470565D0; /* 0x470565DD: jne 0x470565d0 */
  10744 L_470565DF:
  10745     SET_LO8(eax, MEM8(edi)); /* 0x470565DF: mov al, byte ptr [edi] */
  10746     /* cmp LO8(eax), 0x27u */ /* 0x470565E1: cmp al, 0x27 */
  10747     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x27u) << 24;
  10748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10749     _flag_k = FK_NARROW(FK_CMP, 24);
  10750     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705669E; /* 0x470565E3: je 0x4705669e */
  10751 L_470565E9:
  10752     /* cmp LO8(eax), 0x22u */ /* 0x470565E9: cmp al, 0x22 */
  10753     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x22u) << 24;
  10754     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10755     _flag_k = FK_NARROW(FK_CMP, 24);
  10756     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705669E; /* 0x470565EB: je 0x4705669e */
  10757 L_470565F1:
  10758     /* test LO8(eax), LO8(eax) */ /* 0x470565F1: test al, al */
  10759     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10760     _cf = 0;
  10761     _flag_k = FK_NARROW(FK_TEST, 24);
  10762     ebx = esp + 0x1C; /* 0x470565F3: lea ebx, [esp + 0x1c] */
  10763     if (TEST_Z(_flag_a, _flag_b)) goto L_47056696; /* 0x470565F7: je 0x47056696 */
  10764 L_470565FD:
  10765     eax = (int32_t)(int8_t)LO8(eax); /* 0x470565FD: movsx eax, al */
  10766     PUSH32(esp, eax); /* 0x47056600: push eax */
  10767     RECOMP_ICALL(MEM32(0x470AC1E4)); /* 0x47056601: call dword ptr [0x470ac1e4] */
  10768     RECOMP_FLAGS_IN();
  10769     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10770     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10771     esp = esp + 4; /* 0x47056607: add esp, 4 */
  10772     _flag_k = FK_ADD;
  10773     /* test eax, eax */ /* 0x4705660A: test eax, eax */
  10774     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10775     _cf = 0;
  10776     _flag_k = FK_TEST;
  10777     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056696; /* 0x4705660C: jne 0x47056696 */
  10778 L_47056612:
  10779     ecx = ebx; /* 0x47056612: mov ecx, ebx */
  10780     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp);
  10781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10782     ecx = ecx - ebp; /* 0x47056614: sub ecx, ebp */
  10783     _flag_k = FK_CMP;
  10784     /* cmp ecx, 0x1000u */ /* 0x47056616: cmp ecx, 0x1000 */
  10785     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1000u);
  10786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10787     _flag_k = FK_CMP;
  10788     if (CMP_B(_flag_a, _flag_b)) goto L_47056685; /* 0x4705661C: jb 0x47056685 */
  10789 L_4705661E:
  10790     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705661E: call dword ptr [0x470ac150] */
  10791     RECOMP_FLAGS_IN();
  10792     ebp = eax; /* 0x47056624: mov ebp, eax */
  10793     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47056626: call dword ptr [0x470ac3c8] */
  10794     RECOMP_FLAGS_IN();
  10795     eax = MEM32(eax); /* 0x4705662C: mov eax, dword ptr [eax] */
  10796     /* test eax, eax */ /* 0x4705662E: test eax, eax */
  10797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10798     _cf = 0;
  10799     _flag_k = FK_TEST;
  10800     if (TEST_Z(_flag_a, _flag_b)) goto L_47056634; /* 0x47056630: je 0x47056634 */
  10801 L_47056632:
  10802     ebp = eax; /* 0x47056632: mov ebp, eax */
  10803 L_47056634:
  10804     RECOMP_ICALL(0x47039020u); /* 0x47056634: call 0x47039020 */ /* not lifted */
  10805     RECOMP_FLAGS_IN();
  10806     esi = eax; /* 0x47056639: mov esi, eax */
  10807     ecx = esi; /* 0x4705663B: mov ecx, esi */
  10808     RECOMP_ICALL(0x4703B210u); /* 0x4705663D: call 0x4703b210 */ /* not lifted */
  10809     RECOMP_FLAGS_IN();
  10810     PUSH32(esp, eax); /* 0x47056642: push eax */
  10811     ecx = esi; /* 0x47056643: mov ecx, esi */
  10812     RECOMP_ICALL(0x4703B240u); /* 0x47056645: call 0x4703b240 */ /* not lifted */
  10813     RECOMP_FLAGS_IN();
  10814     PUSH32(esp, eax); /* 0x4705664A: push eax */
  10815     ecx = esi; /* 0x4705664B: mov ecx, esi */
  10816     RECOMP_ICALL(0x4703B080u); /* 0x4705664D: call 0x4703b080 */ /* not lifted */
  10817     RECOMP_FLAGS_IN();
  10818     PUSH32(esp, eax); /* 0x47056652: push eax */
  10819     PUSH32(esp, ebp); /* 0x47056653: push ebp */
  10820     PUSH32(esp, 0xFFFFFFFFu); /* 0x47056654: push -1 */
  10821     PUSH32(esp, 0x106Fu); /* 0x47056656: push 0x106f */
  10822     PUSH32(esp, 0x47108F38u); /* 0x4705665B: push 0x47108f38 */
  10823     ecx = esi; /* 0x47056660: mov ecx, esi */
  10824     RECOMP_ICALL(0x4703A340u); /* 0x47056662: call 0x4703a340 */ /* not lifted */
  10825     RECOMP_FLAGS_IN();
  10826     PUSH32(esp, 0xFFFFFFFFu); /* 0x47056667: push -1 */
  10827     PUSH32(esp, 0x47109110u); /* 0x47056669: push 0x47109110 */
  10828     PUSH32(esp, 0x47104AA4u); /* 0x4705666E: push 0x47104aa4 */
  10829     PUSH32(esp, 0x80u); /* 0x47056673: push 0x80 */
  10830     PUSH32(esp, esi); /* 0x47056678: push esi */
  10831     RECOMP_ICALL(0x47039830u); /* 0x47056679: call 0x47039830 */ /* not lifted */
  10832     RECOMP_FLAGS_IN();
  10833     ebp = MEM32(esp + 0x28); /* 0x4705667E: mov ebp, dword ptr [esp + 0x28] */
  10834     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  10835     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10836     esp = esp + 0x14u; /* 0x47056682: add esp, 0x14 */
  10837     _flag_k = FK_ADD;
  10838 L_47056685:
  10839     SET_LO8(edx, MEM8(edi)); /* 0x47056685: mov dl, byte ptr [edi] */
  10840     SET_LO8(eax, MEM8(edi + 0x1)); /* 0x47056687: mov al, byte ptr [edi + 1] */
  10841     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10842     edi = edi + 1; /* 0x4705668A: inc edi */
  10843     _flag_k = FK_INC;
  10844     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x4705668B: mov byte ptr [ebx], dl */
  10845     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  10846     ebx = ebx + 1; /* 0x4705668D: inc ebx */
  10847     _flag_k = FK_INC;
  10848     /* test LO8(eax), LO8(eax) */ /* 0x4705668E: test al, al */
  10849     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10850     _cf = 0;
  10851     _flag_k = FK_NARROW(FK_TEST, 24);
  10852     RECOMP_BACKEDGE();
  10853     if (TEST_NZ(_flag_a, _flag_b)) goto L_470565FD; /* 0x47056690: jne 0x470565fd */
  10854 L_47056696:
  10855     MEM8(ebx) = (uint8_t)(0); /* 0x47056696: mov byte ptr [ebx], 0 */
  10856     goto L_47056747; /* 0x47056699: jmp 0x47056747 */
  10857 L_4705669E:
  10858     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10859     edi = edi + 1; /* 0x4705669E: inc edi */
  10860     _flag_k = FK_INC;
  10861     SET_LO8(ecx, LO8(eax)); /* 0x4705669F: mov cl, al */
  10862     SET_LO8(eax, MEM8(edi)); /* 0x470566A1: mov al, byte ptr [edi] */
  10863     /* test LO8(eax), LO8(eax) */ /* 0x470566A3: test al, al */
  10864     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10865     _cf = 0;
  10866     _flag_k = FK_NARROW(FK_TEST, 24);
  10867     MEM8(esp + 0x13) = (uint8_t)(LO8(ecx)); /* 0x470566A5: mov byte ptr [esp + 0x13], cl */
  10868     ebx = ebp; /* 0x470566A9: mov ebx, ebp */
  10869     if (TEST_Z(_flag_a, _flag_b)) goto L_4705673F; /* 0x470566AB: je 0x4705673f */
  10870 L_470566B1:
  10871     /* cmp LO8(eax), LO8(ecx) */ /* 0x470566B1: cmp al, cl */
  10872     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  10873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10874     _flag_k = FK_NARROW(FK_CMP, 24);
  10875     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705673F; /* 0x470566B3: je 0x4705673f */
  10876 L_470566B9:
  10877     eax = ebx; /* 0x470566B9: mov eax, ebx */
  10878     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
  10879     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10880     eax = eax - ebp; /* 0x470566BB: sub eax, ebp */
  10881     _flag_k = FK_CMP;
  10882     /* cmp eax, 0x1000u */ /* 0x470566BD: cmp eax, 0x1000 */
  10883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u);
  10884     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10885     _flag_k = FK_CMP;
  10886     if (CMP_B(_flag_a, _flag_b)) goto L_4705672F; /* 0x470566C2: jb 0x4705672f */
  10887 L_470566C4:
  10888     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470566C4: call dword ptr [0x470ac150] */
  10889     RECOMP_FLAGS_IN();
  10890     ebp = eax; /* 0x470566CA: mov ebp, eax */
  10891     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470566CC: call dword ptr [0x470ac3c8] */
  10892     RECOMP_FLAGS_IN();
  10893     eax = MEM32(eax); /* 0x470566D2: mov eax, dword ptr [eax] */
  10894     /* test eax, eax */ /* 0x470566D4: test eax, eax */
  10895     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10896     _cf = 0;
  10897     _flag_k = FK_TEST;
  10898     if (TEST_Z(_flag_a, _flag_b)) goto L_470566DA; /* 0x470566D6: je 0x470566da */
  10899 L_470566D8:
  10900     ebp = eax; /* 0x470566D8: mov ebp, eax */
  10901 L_470566DA:
  10902     RECOMP_ICALL(0x47039020u); /* 0x470566DA: call 0x47039020 */ /* not lifted */
  10903     RECOMP_FLAGS_IN();
  10904     esi = eax; /* 0x470566DF: mov esi, eax */
  10905     ecx = esi; /* 0x470566E1: mov ecx, esi */
  10906     RECOMP_ICALL(0x4703B210u); /* 0x470566E3: call 0x4703b210 */ /* not lifted */
  10907     RECOMP_FLAGS_IN();
  10908     PUSH32(esp, eax); /* 0x470566E8: push eax */
  10909     ecx = esi; /* 0x470566E9: mov ecx, esi */
  10910     RECOMP_ICALL(0x4703B240u); /* 0x470566EB: call 0x4703b240 */ /* not lifted */
  10911     RECOMP_FLAGS_IN();
  10912     PUSH32(esp, eax); /* 0x470566F0: push eax */
  10913     ecx = esi; /* 0x470566F1: mov ecx, esi */
  10914     RECOMP_ICALL(0x4703B080u); /* 0x470566F3: call 0x4703b080 */ /* not lifted */
  10915     RECOMP_FLAGS_IN();
  10916     PUSH32(esp, eax); /* 0x470566F8: push eax */
  10917     PUSH32(esp, ebp); /* 0x470566F9: push ebp */
  10918     PUSH32(esp, 0xFFFFFFFFu); /* 0x470566FA: push -1 */
  10919     PUSH32(esp, 0x105Fu); /* 0x470566FC: push 0x105f */
  10920     PUSH32(esp, 0x47108F38u); /* 0x47056701: push 0x47108f38 */
  10921     ecx = esi; /* 0x47056706: mov ecx, esi */
  10922     RECOMP_ICALL(0x4703A340u); /* 0x47056708: call 0x4703a340 */ /* not lifted */
  10923     RECOMP_FLAGS_IN();
  10924     PUSH32(esp, 0xFFFFFFFFu); /* 0x4705670D: push -1 */
  10925     PUSH32(esp, 0x471090E0u); /* 0x4705670F: push 0x471090e0 */
  10926     PUSH32(esp, 0x47104AA4u); /* 0x47056714: push 0x47104aa4 */
  10927     PUSH32(esp, 0x80u); /* 0x47056719: push 0x80 */
  10928     PUSH32(esp, esi); /* 0x4705671E: push esi */
  10929     RECOMP_ICALL(0x47039830u); /* 0x4705671F: call 0x47039830 */ /* not lifted */
  10930     RECOMP_FLAGS_IN();
  10931     ebp = MEM32(esp + 0x28); /* 0x47056724: mov ebp, dword ptr [esp + 0x28] */
  10932     SET_LO8(ecx, MEM8(esp + 0x27)); /* 0x47056728: mov cl, byte ptr [esp + 0x27] */
  10933     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  10934     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10935     esp = esp + 0x14u; /* 0x4705672C: add esp, 0x14 */
  10936     _flag_k = FK_ADD;
  10937 L_4705672F:
  10938     SET_LO8(edx, MEM8(edi)); /* 0x4705672F: mov dl, byte ptr [edi] */
  10939     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10940     edi = edi + 1; /* 0x47056731: inc edi */
  10941     _flag_k = FK_INC;
  10942     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x47056732: mov byte ptr [ebx], dl */
  10943     SET_LO8(eax, MEM8(edi)); /* 0x47056734: mov al, byte ptr [edi] */
  10944     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  10945     ebx = ebx + 1; /* 0x47056736: inc ebx */
  10946     _flag_k = FK_INC;
  10947     /* test LO8(eax), LO8(eax) */ /* 0x47056737: test al, al */
  10948     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10949     _cf = 0;
  10950     _flag_k = FK_NARROW(FK_TEST, 24);
  10951     RECOMP_BACKEDGE();
  10952     if (TEST_NZ(_flag_a, _flag_b)) goto L_470566B1; /* 0x47056739: jne 0x470566b1 */
  10953 L_4705673F:
  10954     MEM8(ebx) = (uint8_t)(0); /* 0x4705673F: mov byte ptr [ebx], 0 */
  10955     /* cmp MEM8(edi), LO8(ecx) */ /* 0x47056742: cmp byte ptr [edi], cl */
  10956     _flag_a = (uint32_t)(MEM8(edi)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  10957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10958     _flag_k = FK_NARROW(FK_CMP, 24);
  10959     if (CMP_NE(_flag_a, _flag_b)) goto L_47056747; /* 0x47056744: jne 0x47056747 */
  10960 L_47056746:
  10961     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10962     edi = edi + 1; /* 0x47056746: inc edi */
  10963     _flag_k = FK_INC;
  10964 L_47056747:
  10965     eax = MEM32(esp + 0x102C); /* 0x47056747: mov eax, dword ptr [esp + 0x102c] */
  10966     /* test eax, eax */ /* 0x4705674E: test eax, eax */
  10967     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10968     _cf = 0;
  10969     _flag_k = FK_TEST;
  10970     if (TEST_Z(_flag_a, _flag_b)) goto L_4705679B; /* 0x47056750: je 0x4705679b */
  10971 L_47056752:
  10972     /* cmp MEM8(esp + 0x1C), 0x24u */ /* 0x47056752: cmp byte ptr [esp + 0x1c], 0x24 */
  10973     _flag_a = (uint32_t)(MEM8(esp + 0x1C)) << 24; _flag_b = (uint32_t)(0x24u) << 24;
  10974     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10975     _flag_k = FK_NARROW(FK_CMP, 24);
  10976     if (CMP_NE(_flag_a, _flag_b)) goto L_4705676E; /* 0x47056757: jne 0x4705676e */
  10977 L_47056759:
  10978     eax = esp + 0x1D; /* 0x47056759: lea eax, [esp + 0x1d] */
  10979     PUSH32(esp, eax); /* 0x4705675D: push eax */
  10980     RECOMP_ICALL(MEM32(0x470AC268)); /* 0x4705675E: call dword ptr [0x470ac268] */
  10981     RECOMP_FLAGS_IN();
  10982     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10983     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10984     esp = esp + 4; /* 0x47056764: add esp, 4 */
  10985     _flag_k = FK_ADD;
  10986     /* test eax, eax */ /* 0x47056767: test eax, eax */
  10987     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10988     _cf = 0;
  10989     _flag_k = FK_TEST;
  10990     if (TEST_Z(_flag_a, _flag_b)) goto L_4705676E; /* 0x47056769: je 0x4705676e */
  10991 L_4705676B:
  10992     PUSH32(esp, eax); /* 0x4705676B: push eax */
  10993     goto L_47056773; /* 0x4705676C: jmp 0x47056773 */
  10994 L_4705676E:
  10995     ecx = esp + 0x1C; /* 0x4705676E: lea ecx, [esp + 0x1c] */
  10996     PUSH32(esp, ecx); /* 0x47056772: push ecx */
  10997 L_47056773:
  10998     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47056773: call dword ptr [0x470ac3f4] */
  10999     RECOMP_FLAGS_IN();
  11000     edx = MEM32(esp + 0x102C); /* 0x47056779: mov edx, dword ptr [esp + 0x102c] */
  11001     esi = MEM32(edx); /* 0x47056780: mov esi, dword ptr [edx] */
  11002     ecx = MEM32(esp + 0x1C); /* 0x47056782: mov ecx, dword ptr [esp + 0x1c] */
  11003     MEM32(esi + ecx * 4) = eax; /* 0x47056786: mov dword ptr [esi + ecx*4], eax */
  11004     edx = MEM32(edx); /* 0x47056789: mov edx, dword ptr [edx] */
  11005     eax = MEM32(edx + ecx * 4); /* 0x4705678B: mov eax, dword ptr [edx + ecx*4] */
  11006     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11007     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11008     esp = esp + 4; /* 0x4705678E: add esp, 4 */
  11009     _flag_k = FK_ADD;
  11010     /* test eax, eax */ /* 0x47056791: test eax, eax */
  11011     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11012     _cf = 0;
  11013     _flag_k = FK_TEST;
  11014     RECOMP_BACKEDGE();
  11015     if (TEST_Z(_flag_a, _flag_b)) goto L_4705658B; /* 0x47056793: je 0x4705658b */
  11016 L_47056799:
  11017     goto L_470567C6; /* 0x47056799: jmp 0x470567c6 */
  11018 L_4705679B:
  11019     eax = esp + 0x1C; /* 0x4705679B: lea eax, [esp + 0x1c] */
  11020     PUSH32(esp, eax); /* 0x4705679F: push eax */
  11021     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x470567A0: call dword ptr [0x470ac3f4] */
  11022     RECOMP_FLAGS_IN();
  11023     edx = MEM32(esp + 0x102C); /* 0x470567A6: mov edx, dword ptr [esp + 0x102c] */
  11024     esi = MEM32(edx); /* 0x470567AD: mov esi, dword ptr [edx] */
  11025     ecx = MEM32(esp + 0x1C); /* 0x470567AF: mov ecx, dword ptr [esp + 0x1c] */
  11026     MEM32(esi + ecx * 4) = eax; /* 0x470567B3: mov dword ptr [esi + ecx*4], eax */
  11027     edx = MEM32(edx); /* 0x470567B6: mov edx, dword ptr [edx] */
  11028     eax = MEM32(edx + ecx * 4); /* 0x470567B8: mov eax, dword ptr [edx + ecx*4] */
  11029     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11030     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11031     esp = esp + 4; /* 0x470567BB: add esp, 4 */
  11032     _flag_k = FK_ADD;
  11033     /* test eax, eax */ /* 0x470567BE: test eax, eax */
  11034     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11035     _cf = 0;
  11036     _flag_k = FK_TEST;
  11037     RECOMP_BACKEDGE();
  11038     if (TEST_Z(_flag_a, _flag_b)) goto L_4705658B; /* 0x470567C0: je 0x4705658b */
  11039 L_470567C6:
  11040     eax = MEM32(esp + 0x1024); /* 0x470567C6: mov eax, dword ptr [esp + 0x1024] */
  11041     edx = MEM32(eax); /* 0x470567CD: mov edx, dword ptr [eax] */
  11042     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  11043     ecx = ecx + 1; /* 0x470567CF: inc ecx */
  11044     _flag_k = FK_INC;
  11045     /* cmp ecx, edx */ /* 0x470567D0: cmp ecx, edx */
  11046     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  11047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11048     _flag_k = FK_CMP;
  11049     MEM32(esp + 0x18) = ecx; /* 0x470567D2: mov dword ptr [esp + 0x18], ecx */
  11050     RECOMP_BACKEDGE();
  11051     if (CMP_B(_flag_a, _flag_b)) goto L_470565BD; /* 0x470567D6: jb 0x470565bd */
  11052 L_470567DC:
  11053     ecx = esp + 0x1C; /* 0x470567DC: lea ecx, [esp + 0x1c] */
  11054     /* cmp ebp, ecx */ /* 0x470567E0: cmp ebp, ecx */
  11055     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ecx);
  11056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11057     _flag_k = FK_CMP;
  11058     if (CMP_EQ(_flag_a, _flag_b)) goto L_470567ED; /* 0x470567E2: je 0x470567ed */
  11059 L_470567E4:
  11060     PUSH32(esp, ebp); /* 0x470567E4: push ebp */
  11061     RECOMP_ICALL(0x470A32A2u); /* 0x470567E5: call 0x470a32a2 */ /* not lifted */
  11062     RECOMP_FLAGS_IN();
  11063     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11064     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11065     esp = esp + 4; /* 0x470567EA: add esp, 4 */
  11066     _flag_k = FK_ADD;
  11067 L_470567ED:
  11068     edx = MEM32(esp + 0x1024); /* 0x470567ED: mov edx, dword ptr [esp + 0x1024] */
  11069     eax = MEM32(edx); /* 0x470567F4: mov eax, dword ptr [edx] */
  11070     ecx = MEM32(esp + 0x1028); /* 0x470567F6: mov ecx, dword ptr [esp + 0x1028] */
  11071     edx = MEM32(ecx); /* 0x470567FD: mov edx, dword ptr [ecx] */
  11072     edi = POP32_VAL(esp); /* 0x470567FF: pop edi */
  11073     esi = POP32_VAL(esp); /* 0x47056800: pop esi */
  11074     ebp = POP32_VAL(esp); /* 0x47056801: pop ebp */
  11075     MEM32(edx + eax * 4) = 0; /* 0x47056802: mov dword ptr [edx + eax*4], 0 */
  11076     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11077     eax = 0; /* 0x47056809: xor eax, eax */
  11078     _cf = 0;
  11079     _flag_k = FK_TEST;
  11080     ebx = POP32_VAL(esp); /* 0x4705680B: pop ebx */
  11081     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  11082     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11083     esp = esp + 0x100Cu; /* 0x4705680C: add esp, 0x100c */
  11084     _flag_k = FK_ADD;
  11085     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056812: ret  */
  11086     RECOMP_REGS_OUT();
  11087 }
  11088 
  11089 void sub_47056747(void) {
  11090     int _fpu_cmp = 0;
  11091     uint32_t _cf = 0;
  11092     int _df = 1;
  11093     uint32_t _flag_k = FK_NONE;
  11094     uint32_t _flag_a = 0, _flag_b = 0;
  11095     uint32_t _itail_tgt = 0;
  11096     RECOMP_REGS_LOCALS
  11097     RECOMP_ENTER(0x47056747u);
  11098 
  11099     goto L_47056747;
  11100 L_4705658B:
  11101     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705658B: call dword ptr [0x470ac3c8] */
  11102     RECOMP_FLAGS_IN();
  11103     edi = POP32_VAL(esp); /* 0x47056591: pop edi */
  11104     esi = POP32_VAL(esp); /* 0x47056592: pop esi */
  11105     ebp = POP32_VAL(esp); /* 0x47056593: pop ebp */
  11106     MEM32(eax) = 0xCu; /* 0x47056594: mov dword ptr [eax], 0xc */
  11107     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
  11108     eax = eax | 0xFFFFFFFFu; /* 0x4705659A: or eax, 0xffffffff */
  11109     _cf = 0;
  11110     _flag_k = FK_TEST;
  11111     ebx = POP32_VAL(esp); /* 0x4705659D: pop ebx */
  11112     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  11113     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11114     esp = esp + 0x100Cu; /* 0x4705659E: add esp, 0x100c */
  11115     _flag_k = FK_ADD;
  11116     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470565A4: ret  */
  11117 L_470565BD:
  11118     ecx = (int32_t)(int8_t)MEM8(edi); /* 0x470565BD: movsx ecx, byte ptr [edi] */
  11119     esi = MEM32(0x470AC1E4); /* 0x470565C0: mov esi, dword ptr [0x470ac1e4] */
  11120     PUSH32(esp, ecx); /* 0x470565C6: push ecx */
  11121     RECOMP_ICALL(esi); /* 0x470565C7: call esi */
  11122     RECOMP_FLAGS_IN();
  11123     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11124     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11125     esp = esp + 4; /* 0x470565C9: add esp, 4 */
  11126     _flag_k = FK_ADD;
  11127     /* test eax, eax */ /* 0x470565CC: test eax, eax */
  11128     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11129     _cf = 0;
  11130     _flag_k = FK_TEST;
  11131     if (TEST_Z(_flag_a, _flag_b)) goto L_470565DF; /* 0x470565CE: je 0x470565df */
  11132 L_470565D0:
  11133     edx = (int32_t)(int8_t)MEM8(edi + 0x1); /* 0x470565D0: movsx edx, byte ptr [edi + 1] */
  11134     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  11135     edi = edi + 1; /* 0x470565D4: inc edi */
  11136     _flag_k = FK_INC;
  11137     PUSH32(esp, edx); /* 0x470565D5: push edx */
  11138     RECOMP_ICALL(esi); /* 0x470565D6: call esi */
  11139     RECOMP_FLAGS_IN();
  11140     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11141     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11142     esp = esp + 4; /* 0x470565D8: add esp, 4 */
  11143     _flag_k = FK_ADD;
  11144     /* test eax, eax */ /* 0x470565DB: test eax, eax */
  11145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11146     _cf = 0;
  11147     _flag_k = FK_TEST;
  11148     RECOMP_BACKEDGE();
  11149     if (TEST_NZ(_flag_a, _flag_b)) goto L_470565D0; /* 0x470565DD: jne 0x470565d0 */
  11150 L_470565DF:
  11151     SET_LO8(eax, MEM8(edi)); /* 0x470565DF: mov al, byte ptr [edi] */
  11152     /* cmp LO8(eax), 0x27u */ /* 0x470565E1: cmp al, 0x27 */
  11153     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x27u) << 24;
  11154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11155     _flag_k = FK_NARROW(FK_CMP, 24);
  11156     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705669E; /* 0x470565E3: je 0x4705669e */
  11157 L_470565E9:
  11158     /* cmp LO8(eax), 0x22u */ /* 0x470565E9: cmp al, 0x22 */
  11159     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x22u) << 24;
  11160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11161     _flag_k = FK_NARROW(FK_CMP, 24);
  11162     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705669E; /* 0x470565EB: je 0x4705669e */
  11163 L_470565F1:
  11164     /* test LO8(eax), LO8(eax) */ /* 0x470565F1: test al, al */
  11165     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11166     _cf = 0;
  11167     _flag_k = FK_NARROW(FK_TEST, 24);
  11168     ebx = esp + 0x1C; /* 0x470565F3: lea ebx, [esp + 0x1c] */
  11169     if (TEST_Z(_flag_a, _flag_b)) goto L_47056696; /* 0x470565F7: je 0x47056696 */
  11170 L_470565FD:
  11171     eax = (int32_t)(int8_t)LO8(eax); /* 0x470565FD: movsx eax, al */
  11172     PUSH32(esp, eax); /* 0x47056600: push eax */
  11173     RECOMP_ICALL(MEM32(0x470AC1E4)); /* 0x47056601: call dword ptr [0x470ac1e4] */
  11174     RECOMP_FLAGS_IN();
  11175     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11176     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11177     esp = esp + 4; /* 0x47056607: add esp, 4 */
  11178     _flag_k = FK_ADD;
  11179     /* test eax, eax */ /* 0x4705660A: test eax, eax */
  11180     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11181     _cf = 0;
  11182     _flag_k = FK_TEST;
  11183     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056696; /* 0x4705660C: jne 0x47056696 */
  11184 L_47056612:
  11185     ecx = ebx; /* 0x47056612: mov ecx, ebx */
  11186     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp);
  11187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11188     ecx = ecx - ebp; /* 0x47056614: sub ecx, ebp */
  11189     _flag_k = FK_CMP;
  11190     /* cmp ecx, 0x1000u */ /* 0x47056616: cmp ecx, 0x1000 */
  11191     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1000u);
  11192     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11193     _flag_k = FK_CMP;
  11194     if (CMP_B(_flag_a, _flag_b)) goto L_47056685; /* 0x4705661C: jb 0x47056685 */
  11195 L_4705661E:
  11196     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705661E: call dword ptr [0x470ac150] */
  11197     RECOMP_FLAGS_IN();
  11198     ebp = eax; /* 0x47056624: mov ebp, eax */
  11199     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47056626: call dword ptr [0x470ac3c8] */
  11200     RECOMP_FLAGS_IN();
  11201     eax = MEM32(eax); /* 0x4705662C: mov eax, dword ptr [eax] */
  11202     /* test eax, eax */ /* 0x4705662E: test eax, eax */
  11203     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11204     _cf = 0;
  11205     _flag_k = FK_TEST;
  11206     if (TEST_Z(_flag_a, _flag_b)) goto L_47056634; /* 0x47056630: je 0x47056634 */
  11207 L_47056632:
  11208     ebp = eax; /* 0x47056632: mov ebp, eax */
  11209 L_47056634:
  11210     RECOMP_ICALL(0x47039020u); /* 0x47056634: call 0x47039020 */ /* not lifted */
  11211     RECOMP_FLAGS_IN();
  11212     esi = eax; /* 0x47056639: mov esi, eax */
  11213     ecx = esi; /* 0x4705663B: mov ecx, esi */
  11214     RECOMP_ICALL(0x4703B210u); /* 0x4705663D: call 0x4703b210 */ /* not lifted */
  11215     RECOMP_FLAGS_IN();
  11216     PUSH32(esp, eax); /* 0x47056642: push eax */
  11217     ecx = esi; /* 0x47056643: mov ecx, esi */
  11218     RECOMP_ICALL(0x4703B240u); /* 0x47056645: call 0x4703b240 */ /* not lifted */
  11219     RECOMP_FLAGS_IN();
  11220     PUSH32(esp, eax); /* 0x4705664A: push eax */
  11221     ecx = esi; /* 0x4705664B: mov ecx, esi */
  11222     RECOMP_ICALL(0x4703B080u); /* 0x4705664D: call 0x4703b080 */ /* not lifted */
  11223     RECOMP_FLAGS_IN();
  11224     PUSH32(esp, eax); /* 0x47056652: push eax */
  11225     PUSH32(esp, ebp); /* 0x47056653: push ebp */
  11226     PUSH32(esp, 0xFFFFFFFFu); /* 0x47056654: push -1 */
  11227     PUSH32(esp, 0x106Fu); /* 0x47056656: push 0x106f */
  11228     PUSH32(esp, 0x47108F38u); /* 0x4705665B: push 0x47108f38 */
  11229     ecx = esi; /* 0x47056660: mov ecx, esi */
  11230     RECOMP_ICALL(0x4703A340u); /* 0x47056662: call 0x4703a340 */ /* not lifted */
  11231     RECOMP_FLAGS_IN();
  11232     PUSH32(esp, 0xFFFFFFFFu); /* 0x47056667: push -1 */
  11233     PUSH32(esp, 0x47109110u); /* 0x47056669: push 0x47109110 */
  11234     PUSH32(esp, 0x47104AA4u); /* 0x4705666E: push 0x47104aa4 */
  11235     PUSH32(esp, 0x80u); /* 0x47056673: push 0x80 */
  11236     PUSH32(esp, esi); /* 0x47056678: push esi */
  11237     RECOMP_ICALL(0x47039830u); /* 0x47056679: call 0x47039830 */ /* not lifted */
  11238     RECOMP_FLAGS_IN();
  11239     ebp = MEM32(esp + 0x28); /* 0x4705667E: mov ebp, dword ptr [esp + 0x28] */
  11240     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11242     esp = esp + 0x14u; /* 0x47056682: add esp, 0x14 */
  11243     _flag_k = FK_ADD;
  11244 L_47056685:
  11245     SET_LO8(edx, MEM8(edi)); /* 0x47056685: mov dl, byte ptr [edi] */
  11246     SET_LO8(eax, MEM8(edi + 0x1)); /* 0x47056687: mov al, byte ptr [edi + 1] */
  11247     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  11248     edi = edi + 1; /* 0x4705668A: inc edi */
  11249     _flag_k = FK_INC;
  11250     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x4705668B: mov byte ptr [ebx], dl */
  11251     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  11252     ebx = ebx + 1; /* 0x4705668D: inc ebx */
  11253     _flag_k = FK_INC;
  11254     /* test LO8(eax), LO8(eax) */ /* 0x4705668E: test al, al */
  11255     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11256     _cf = 0;
  11257     _flag_k = FK_NARROW(FK_TEST, 24);
  11258     RECOMP_BACKEDGE();
  11259     if (TEST_NZ(_flag_a, _flag_b)) goto L_470565FD; /* 0x47056690: jne 0x470565fd */
  11260 L_47056696:
  11261     MEM8(ebx) = (uint8_t)(0); /* 0x47056696: mov byte ptr [ebx], 0 */
  11262     goto L_47056747; /* 0x47056699: jmp 0x47056747 */
  11263 L_4705669E:
  11264     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  11265     edi = edi + 1; /* 0x4705669E: inc edi */
  11266     _flag_k = FK_INC;
  11267     SET_LO8(ecx, LO8(eax)); /* 0x4705669F: mov cl, al */
  11268     SET_LO8(eax, MEM8(edi)); /* 0x470566A1: mov al, byte ptr [edi] */
  11269     /* test LO8(eax), LO8(eax) */ /* 0x470566A3: test al, al */
  11270     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11271     _cf = 0;
  11272     _flag_k = FK_NARROW(FK_TEST, 24);
  11273     MEM8(esp + 0x13) = (uint8_t)(LO8(ecx)); /* 0x470566A5: mov byte ptr [esp + 0x13], cl */
  11274     ebx = ebp; /* 0x470566A9: mov ebx, ebp */
  11275     if (TEST_Z(_flag_a, _flag_b)) goto L_4705673F; /* 0x470566AB: je 0x4705673f */
  11276 L_470566B1:
  11277     /* cmp LO8(eax), LO8(ecx) */ /* 0x470566B1: cmp al, cl */
  11278     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11280     _flag_k = FK_NARROW(FK_CMP, 24);
  11281     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705673F; /* 0x470566B3: je 0x4705673f */
  11282 L_470566B9:
  11283     eax = ebx; /* 0x470566B9: mov eax, ebx */
  11284     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
  11285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11286     eax = eax - ebp; /* 0x470566BB: sub eax, ebp */
  11287     _flag_k = FK_CMP;
  11288     /* cmp eax, 0x1000u */ /* 0x470566BD: cmp eax, 0x1000 */
  11289     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u);
  11290     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11291     _flag_k = FK_CMP;
  11292     if (CMP_B(_flag_a, _flag_b)) goto L_4705672F; /* 0x470566C2: jb 0x4705672f */
  11293 L_470566C4:
  11294     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470566C4: call dword ptr [0x470ac150] */
  11295     RECOMP_FLAGS_IN();
  11296     ebp = eax; /* 0x470566CA: mov ebp, eax */
  11297     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470566CC: call dword ptr [0x470ac3c8] */
  11298     RECOMP_FLAGS_IN();
  11299     eax = MEM32(eax); /* 0x470566D2: mov eax, dword ptr [eax] */
  11300     /* test eax, eax */ /* 0x470566D4: test eax, eax */
  11301     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11302     _cf = 0;
  11303     _flag_k = FK_TEST;
  11304     if (TEST_Z(_flag_a, _flag_b)) goto L_470566DA; /* 0x470566D6: je 0x470566da */
  11305 L_470566D8:
  11306     ebp = eax; /* 0x470566D8: mov ebp, eax */
  11307 L_470566DA:
  11308     RECOMP_ICALL(0x47039020u); /* 0x470566DA: call 0x47039020 */ /* not lifted */
  11309     RECOMP_FLAGS_IN();
  11310     esi = eax; /* 0x470566DF: mov esi, eax */
  11311     ecx = esi; /* 0x470566E1: mov ecx, esi */
  11312     RECOMP_ICALL(0x4703B210u); /* 0x470566E3: call 0x4703b210 */ /* not lifted */
  11313     RECOMP_FLAGS_IN();
  11314     PUSH32(esp, eax); /* 0x470566E8: push eax */
  11315     ecx = esi; /* 0x470566E9: mov ecx, esi */
  11316     RECOMP_ICALL(0x4703B240u); /* 0x470566EB: call 0x4703b240 */ /* not lifted */
  11317     RECOMP_FLAGS_IN();
  11318     PUSH32(esp, eax); /* 0x470566F0: push eax */
  11319     ecx = esi; /* 0x470566F1: mov ecx, esi */
  11320     RECOMP_ICALL(0x4703B080u); /* 0x470566F3: call 0x4703b080 */ /* not lifted */
  11321     RECOMP_FLAGS_IN();
  11322     PUSH32(esp, eax); /* 0x470566F8: push eax */
  11323     PUSH32(esp, ebp); /* 0x470566F9: push ebp */
  11324     PUSH32(esp, 0xFFFFFFFFu); /* 0x470566FA: push -1 */
  11325     PUSH32(esp, 0x105Fu); /* 0x470566FC: push 0x105f */
  11326     PUSH32(esp, 0x47108F38u); /* 0x47056701: push 0x47108f38 */
  11327     ecx = esi; /* 0x47056706: mov ecx, esi */
  11328     RECOMP_ICALL(0x4703A340u); /* 0x47056708: call 0x4703a340 */ /* not lifted */
  11329     RECOMP_FLAGS_IN();
  11330     PUSH32(esp, 0xFFFFFFFFu); /* 0x4705670D: push -1 */
  11331     PUSH32(esp, 0x471090E0u); /* 0x4705670F: push 0x471090e0 */
  11332     PUSH32(esp, 0x47104AA4u); /* 0x47056714: push 0x47104aa4 */
  11333     PUSH32(esp, 0x80u); /* 0x47056719: push 0x80 */
  11334     PUSH32(esp, esi); /* 0x4705671E: push esi */
  11335     RECOMP_ICALL(0x47039830u); /* 0x4705671F: call 0x47039830 */ /* not lifted */
  11336     RECOMP_FLAGS_IN();
  11337     ebp = MEM32(esp + 0x28); /* 0x47056724: mov ebp, dword ptr [esp + 0x28] */
  11338     SET_LO8(ecx, MEM8(esp + 0x27)); /* 0x47056728: mov cl, byte ptr [esp + 0x27] */
  11339     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11340     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11341     esp = esp + 0x14u; /* 0x4705672C: add esp, 0x14 */
  11342     _flag_k = FK_ADD;
  11343 L_4705672F:
  11344     SET_LO8(edx, MEM8(edi)); /* 0x4705672F: mov dl, byte ptr [edi] */
  11345     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  11346     edi = edi + 1; /* 0x47056731: inc edi */
  11347     _flag_k = FK_INC;
  11348     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x47056732: mov byte ptr [ebx], dl */
  11349     SET_LO8(eax, MEM8(edi)); /* 0x47056734: mov al, byte ptr [edi] */
  11350     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  11351     ebx = ebx + 1; /* 0x47056736: inc ebx */
  11352     _flag_k = FK_INC;
  11353     /* test LO8(eax), LO8(eax) */ /* 0x47056737: test al, al */
  11354     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11355     _cf = 0;
  11356     _flag_k = FK_NARROW(FK_TEST, 24);
  11357     RECOMP_BACKEDGE();
  11358     if (TEST_NZ(_flag_a, _flag_b)) goto L_470566B1; /* 0x47056739: jne 0x470566b1 */
  11359 L_4705673F:
  11360     MEM8(ebx) = (uint8_t)(0); /* 0x4705673F: mov byte ptr [ebx], 0 */
  11361     /* cmp MEM8(edi), LO8(ecx) */ /* 0x47056742: cmp byte ptr [edi], cl */
  11362     _flag_a = (uint32_t)(MEM8(edi)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11364     _flag_k = FK_NARROW(FK_CMP, 24);
  11365     if (CMP_NE(_flag_a, _flag_b)) goto L_47056747; /* 0x47056744: jne 0x47056747 */
  11366 L_47056746:
  11367     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  11368     edi = edi + 1; /* 0x47056746: inc edi */
  11369     _flag_k = FK_INC;
  11370 L_47056747:
  11371     eax = MEM32(esp + 0x102C); /* 0x47056747: mov eax, dword ptr [esp + 0x102c] */
  11372     /* test eax, eax */ /* 0x4705674E: test eax, eax */
  11373     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11374     _cf = 0;
  11375     _flag_k = FK_TEST;
  11376     if (TEST_Z(_flag_a, _flag_b)) goto L_4705679B; /* 0x47056750: je 0x4705679b */
  11377 L_47056752:
  11378     /* cmp MEM8(esp + 0x1C), 0x24u */ /* 0x47056752: cmp byte ptr [esp + 0x1c], 0x24 */
  11379     _flag_a = (uint32_t)(MEM8(esp + 0x1C)) << 24; _flag_b = (uint32_t)(0x24u) << 24;
  11380     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11381     _flag_k = FK_NARROW(FK_CMP, 24);
  11382     if (CMP_NE(_flag_a, _flag_b)) goto L_4705676E; /* 0x47056757: jne 0x4705676e */
  11383 L_47056759:
  11384     eax = esp + 0x1D; /* 0x47056759: lea eax, [esp + 0x1d] */
  11385     PUSH32(esp, eax); /* 0x4705675D: push eax */
  11386     RECOMP_ICALL(MEM32(0x470AC268)); /* 0x4705675E: call dword ptr [0x470ac268] */
  11387     RECOMP_FLAGS_IN();
  11388     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11389     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11390     esp = esp + 4; /* 0x47056764: add esp, 4 */
  11391     _flag_k = FK_ADD;
  11392     /* test eax, eax */ /* 0x47056767: test eax, eax */
  11393     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11394     _cf = 0;
  11395     _flag_k = FK_TEST;
  11396     if (TEST_Z(_flag_a, _flag_b)) goto L_4705676E; /* 0x47056769: je 0x4705676e */
  11397 L_4705676B:
  11398     PUSH32(esp, eax); /* 0x4705676B: push eax */
  11399     goto L_47056773; /* 0x4705676C: jmp 0x47056773 */
  11400 L_4705676E:
  11401     ecx = esp + 0x1C; /* 0x4705676E: lea ecx, [esp + 0x1c] */
  11402     PUSH32(esp, ecx); /* 0x47056772: push ecx */
  11403 L_47056773:
  11404     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47056773: call dword ptr [0x470ac3f4] */
  11405     RECOMP_FLAGS_IN();
  11406     edx = MEM32(esp + 0x102C); /* 0x47056779: mov edx, dword ptr [esp + 0x102c] */
  11407     esi = MEM32(edx); /* 0x47056780: mov esi, dword ptr [edx] */
  11408     ecx = MEM32(esp + 0x1C); /* 0x47056782: mov ecx, dword ptr [esp + 0x1c] */
  11409     MEM32(esi + ecx * 4) = eax; /* 0x47056786: mov dword ptr [esi + ecx*4], eax */
  11410     edx = MEM32(edx); /* 0x47056789: mov edx, dword ptr [edx] */
  11411     eax = MEM32(edx + ecx * 4); /* 0x4705678B: mov eax, dword ptr [edx + ecx*4] */
  11412     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11413     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11414     esp = esp + 4; /* 0x4705678E: add esp, 4 */
  11415     _flag_k = FK_ADD;
  11416     /* test eax, eax */ /* 0x47056791: test eax, eax */
  11417     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11418     _cf = 0;
  11419     _flag_k = FK_TEST;
  11420     RECOMP_BACKEDGE();
  11421     if (TEST_Z(_flag_a, _flag_b)) goto L_4705658B; /* 0x47056793: je 0x4705658b */
  11422 L_47056799:
  11423     goto L_470567C6; /* 0x47056799: jmp 0x470567c6 */
  11424 L_4705679B:
  11425     eax = esp + 0x1C; /* 0x4705679B: lea eax, [esp + 0x1c] */
  11426     PUSH32(esp, eax); /* 0x4705679F: push eax */
  11427     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x470567A0: call dword ptr [0x470ac3f4] */
  11428     RECOMP_FLAGS_IN();
  11429     edx = MEM32(esp + 0x102C); /* 0x470567A6: mov edx, dword ptr [esp + 0x102c] */
  11430     esi = MEM32(edx); /* 0x470567AD: mov esi, dword ptr [edx] */
  11431     ecx = MEM32(esp + 0x1C); /* 0x470567AF: mov ecx, dword ptr [esp + 0x1c] */
  11432     MEM32(esi + ecx * 4) = eax; /* 0x470567B3: mov dword ptr [esi + ecx*4], eax */
  11433     edx = MEM32(edx); /* 0x470567B6: mov edx, dword ptr [edx] */
  11434     eax = MEM32(edx + ecx * 4); /* 0x470567B8: mov eax, dword ptr [edx + ecx*4] */
  11435     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11436     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11437     esp = esp + 4; /* 0x470567BB: add esp, 4 */
  11438     _flag_k = FK_ADD;
  11439     /* test eax, eax */ /* 0x470567BE: test eax, eax */
  11440     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11441     _cf = 0;
  11442     _flag_k = FK_TEST;
  11443     RECOMP_BACKEDGE();
  11444     if (TEST_Z(_flag_a, _flag_b)) goto L_4705658B; /* 0x470567C0: je 0x4705658b */
  11445 L_470567C6:
  11446     eax = MEM32(esp + 0x1024); /* 0x470567C6: mov eax, dword ptr [esp + 0x1024] */
  11447     edx = MEM32(eax); /* 0x470567CD: mov edx, dword ptr [eax] */
  11448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  11449     ecx = ecx + 1; /* 0x470567CF: inc ecx */
  11450     _flag_k = FK_INC;
  11451     /* cmp ecx, edx */ /* 0x470567D0: cmp ecx, edx */
  11452     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  11453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11454     _flag_k = FK_CMP;
  11455     MEM32(esp + 0x18) = ecx; /* 0x470567D2: mov dword ptr [esp + 0x18], ecx */
  11456     RECOMP_BACKEDGE();
  11457     if (CMP_B(_flag_a, _flag_b)) goto L_470565BD; /* 0x470567D6: jb 0x470565bd */
  11458 L_470567DC:
  11459     ecx = esp + 0x1C; /* 0x470567DC: lea ecx, [esp + 0x1c] */
  11460     /* cmp ebp, ecx */ /* 0x470567E0: cmp ebp, ecx */
  11461     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ecx);
  11462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11463     _flag_k = FK_CMP;
  11464     if (CMP_EQ(_flag_a, _flag_b)) goto L_470567ED; /* 0x470567E2: je 0x470567ed */
  11465 L_470567E4:
  11466     PUSH32(esp, ebp); /* 0x470567E4: push ebp */
  11467     RECOMP_ICALL(0x470A32A2u); /* 0x470567E5: call 0x470a32a2 */ /* not lifted */
  11468     RECOMP_FLAGS_IN();
  11469     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11470     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11471     esp = esp + 4; /* 0x470567EA: add esp, 4 */
  11472     _flag_k = FK_ADD;
  11473 L_470567ED:
  11474     edx = MEM32(esp + 0x1024); /* 0x470567ED: mov edx, dword ptr [esp + 0x1024] */
  11475     eax = MEM32(edx); /* 0x470567F4: mov eax, dword ptr [edx] */
  11476     ecx = MEM32(esp + 0x1028); /* 0x470567F6: mov ecx, dword ptr [esp + 0x1028] */
  11477     edx = MEM32(ecx); /* 0x470567FD: mov edx, dword ptr [ecx] */
  11478     edi = POP32_VAL(esp); /* 0x470567FF: pop edi */
  11479     esi = POP32_VAL(esp); /* 0x47056800: pop esi */
  11480     ebp = POP32_VAL(esp); /* 0x47056801: pop ebp */
  11481     MEM32(edx + eax * 4) = 0; /* 0x47056802: mov dword ptr [edx + eax*4], 0 */
  11482     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11483     eax = 0; /* 0x47056809: xor eax, eax */
  11484     _cf = 0;
  11485     _flag_k = FK_TEST;
  11486     ebx = POP32_VAL(esp); /* 0x4705680B: pop ebx */
  11487     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  11488     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11489     esp = esp + 0x100Cu; /* 0x4705680C: add esp, 0x100c */
  11490     _flag_k = FK_ADD;
  11491     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056812: ret  */
  11492     RECOMP_REGS_OUT();
  11493 }
  11494 
  11495 void sub_47056773(void) {
  11496     int _fpu_cmp = 0;
  11497     uint32_t _cf = 0;
  11498     int _df = 1;
  11499     uint32_t _flag_k = FK_NONE;
  11500     uint32_t _flag_a = 0, _flag_b = 0;
  11501     uint32_t _itail_tgt = 0;
  11502     RECOMP_REGS_LOCALS
  11503     RECOMP_ENTER(0x47056773u);
  11504 
  11505     goto L_47056773;
  11506 L_4705658B:
  11507     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705658B: call dword ptr [0x470ac3c8] */
  11508     RECOMP_FLAGS_IN();
  11509     edi = POP32_VAL(esp); /* 0x47056591: pop edi */
  11510     esi = POP32_VAL(esp); /* 0x47056592: pop esi */
  11511     ebp = POP32_VAL(esp); /* 0x47056593: pop ebp */
  11512     MEM32(eax) = 0xCu; /* 0x47056594: mov dword ptr [eax], 0xc */
  11513     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
  11514     eax = eax | 0xFFFFFFFFu; /* 0x4705659A: or eax, 0xffffffff */
  11515     _cf = 0;
  11516     _flag_k = FK_TEST;
  11517     ebx = POP32_VAL(esp); /* 0x4705659D: pop ebx */
  11518     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  11519     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11520     esp = esp + 0x100Cu; /* 0x4705659E: add esp, 0x100c */
  11521     _flag_k = FK_ADD;
  11522     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470565A4: ret  */
  11523 L_470565BD:
  11524     ecx = (int32_t)(int8_t)MEM8(edi); /* 0x470565BD: movsx ecx, byte ptr [edi] */
  11525     esi = MEM32(0x470AC1E4); /* 0x470565C0: mov esi, dword ptr [0x470ac1e4] */
  11526     PUSH32(esp, ecx); /* 0x470565C6: push ecx */
  11527     RECOMP_ICALL(esi); /* 0x470565C7: call esi */
  11528     RECOMP_FLAGS_IN();
  11529     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11530     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11531     esp = esp + 4; /* 0x470565C9: add esp, 4 */
  11532     _flag_k = FK_ADD;
  11533     /* test eax, eax */ /* 0x470565CC: test eax, eax */
  11534     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11535     _cf = 0;
  11536     _flag_k = FK_TEST;
  11537     if (TEST_Z(_flag_a, _flag_b)) goto L_470565DF; /* 0x470565CE: je 0x470565df */
  11538 L_470565D0:
  11539     edx = (int32_t)(int8_t)MEM8(edi + 0x1); /* 0x470565D0: movsx edx, byte ptr [edi + 1] */
  11540     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  11541     edi = edi + 1; /* 0x470565D4: inc edi */
  11542     _flag_k = FK_INC;
  11543     PUSH32(esp, edx); /* 0x470565D5: push edx */
  11544     RECOMP_ICALL(esi); /* 0x470565D6: call esi */
  11545     RECOMP_FLAGS_IN();
  11546     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11547     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11548     esp = esp + 4; /* 0x470565D8: add esp, 4 */
  11549     _flag_k = FK_ADD;
  11550     /* test eax, eax */ /* 0x470565DB: test eax, eax */
  11551     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11552     _cf = 0;
  11553     _flag_k = FK_TEST;
  11554     RECOMP_BACKEDGE();
  11555     if (TEST_NZ(_flag_a, _flag_b)) goto L_470565D0; /* 0x470565DD: jne 0x470565d0 */
  11556 L_470565DF:
  11557     SET_LO8(eax, MEM8(edi)); /* 0x470565DF: mov al, byte ptr [edi] */
  11558     /* cmp LO8(eax), 0x27u */ /* 0x470565E1: cmp al, 0x27 */
  11559     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x27u) << 24;
  11560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11561     _flag_k = FK_NARROW(FK_CMP, 24);
  11562     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705669E; /* 0x470565E3: je 0x4705669e */
  11563 L_470565E9:
  11564     /* cmp LO8(eax), 0x22u */ /* 0x470565E9: cmp al, 0x22 */
  11565     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x22u) << 24;
  11566     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11567     _flag_k = FK_NARROW(FK_CMP, 24);
  11568     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705669E; /* 0x470565EB: je 0x4705669e */
  11569 L_470565F1:
  11570     /* test LO8(eax), LO8(eax) */ /* 0x470565F1: test al, al */
  11571     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11572     _cf = 0;
  11573     _flag_k = FK_NARROW(FK_TEST, 24);
  11574     ebx = esp + 0x1C; /* 0x470565F3: lea ebx, [esp + 0x1c] */
  11575     if (TEST_Z(_flag_a, _flag_b)) goto L_47056696; /* 0x470565F7: je 0x47056696 */
  11576 L_470565FD:
  11577     eax = (int32_t)(int8_t)LO8(eax); /* 0x470565FD: movsx eax, al */
  11578     PUSH32(esp, eax); /* 0x47056600: push eax */
  11579     RECOMP_ICALL(MEM32(0x470AC1E4)); /* 0x47056601: call dword ptr [0x470ac1e4] */
  11580     RECOMP_FLAGS_IN();
  11581     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11582     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11583     esp = esp + 4; /* 0x47056607: add esp, 4 */
  11584     _flag_k = FK_ADD;
  11585     /* test eax, eax */ /* 0x4705660A: test eax, eax */
  11586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11587     _cf = 0;
  11588     _flag_k = FK_TEST;
  11589     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056696; /* 0x4705660C: jne 0x47056696 */
  11590 L_47056612:
  11591     ecx = ebx; /* 0x47056612: mov ecx, ebx */
  11592     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp);
  11593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11594     ecx = ecx - ebp; /* 0x47056614: sub ecx, ebp */
  11595     _flag_k = FK_CMP;
  11596     /* cmp ecx, 0x1000u */ /* 0x47056616: cmp ecx, 0x1000 */
  11597     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1000u);
  11598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11599     _flag_k = FK_CMP;
  11600     if (CMP_B(_flag_a, _flag_b)) goto L_47056685; /* 0x4705661C: jb 0x47056685 */
  11601 L_4705661E:
  11602     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705661E: call dword ptr [0x470ac150] */
  11603     RECOMP_FLAGS_IN();
  11604     ebp = eax; /* 0x47056624: mov ebp, eax */
  11605     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47056626: call dword ptr [0x470ac3c8] */
  11606     RECOMP_FLAGS_IN();
  11607     eax = MEM32(eax); /* 0x4705662C: mov eax, dword ptr [eax] */
  11608     /* test eax, eax */ /* 0x4705662E: test eax, eax */
  11609     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11610     _cf = 0;
  11611     _flag_k = FK_TEST;
  11612     if (TEST_Z(_flag_a, _flag_b)) goto L_47056634; /* 0x47056630: je 0x47056634 */
  11613 L_47056632:
  11614     ebp = eax; /* 0x47056632: mov ebp, eax */
  11615 L_47056634:
  11616     RECOMP_ICALL(0x47039020u); /* 0x47056634: call 0x47039020 */ /* not lifted */
  11617     RECOMP_FLAGS_IN();
  11618     esi = eax; /* 0x47056639: mov esi, eax */
  11619     ecx = esi; /* 0x4705663B: mov ecx, esi */
  11620     RECOMP_ICALL(0x4703B210u); /* 0x4705663D: call 0x4703b210 */ /* not lifted */
  11621     RECOMP_FLAGS_IN();
  11622     PUSH32(esp, eax); /* 0x47056642: push eax */
  11623     ecx = esi; /* 0x47056643: mov ecx, esi */
  11624     RECOMP_ICALL(0x4703B240u); /* 0x47056645: call 0x4703b240 */ /* not lifted */
  11625     RECOMP_FLAGS_IN();
  11626     PUSH32(esp, eax); /* 0x4705664A: push eax */
  11627     ecx = esi; /* 0x4705664B: mov ecx, esi */
  11628     RECOMP_ICALL(0x4703B080u); /* 0x4705664D: call 0x4703b080 */ /* not lifted */
  11629     RECOMP_FLAGS_IN();
  11630     PUSH32(esp, eax); /* 0x47056652: push eax */
  11631     PUSH32(esp, ebp); /* 0x47056653: push ebp */
  11632     PUSH32(esp, 0xFFFFFFFFu); /* 0x47056654: push -1 */
  11633     PUSH32(esp, 0x106Fu); /* 0x47056656: push 0x106f */
  11634     PUSH32(esp, 0x47108F38u); /* 0x4705665B: push 0x47108f38 */
  11635     ecx = esi; /* 0x47056660: mov ecx, esi */
  11636     RECOMP_ICALL(0x4703A340u); /* 0x47056662: call 0x4703a340 */ /* not lifted */
  11637     RECOMP_FLAGS_IN();
  11638     PUSH32(esp, 0xFFFFFFFFu); /* 0x47056667: push -1 */
  11639     PUSH32(esp, 0x47109110u); /* 0x47056669: push 0x47109110 */
  11640     PUSH32(esp, 0x47104AA4u); /* 0x4705666E: push 0x47104aa4 */
  11641     PUSH32(esp, 0x80u); /* 0x47056673: push 0x80 */
  11642     PUSH32(esp, esi); /* 0x47056678: push esi */
  11643     RECOMP_ICALL(0x47039830u); /* 0x47056679: call 0x47039830 */ /* not lifted */
  11644     RECOMP_FLAGS_IN();
  11645     ebp = MEM32(esp + 0x28); /* 0x4705667E: mov ebp, dword ptr [esp + 0x28] */
  11646     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11647     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11648     esp = esp + 0x14u; /* 0x47056682: add esp, 0x14 */
  11649     _flag_k = FK_ADD;
  11650 L_47056685:
  11651     SET_LO8(edx, MEM8(edi)); /* 0x47056685: mov dl, byte ptr [edi] */
  11652     SET_LO8(eax, MEM8(edi + 0x1)); /* 0x47056687: mov al, byte ptr [edi + 1] */
  11653     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  11654     edi = edi + 1; /* 0x4705668A: inc edi */
  11655     _flag_k = FK_INC;
  11656     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x4705668B: mov byte ptr [ebx], dl */
  11657     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  11658     ebx = ebx + 1; /* 0x4705668D: inc ebx */
  11659     _flag_k = FK_INC;
  11660     /* test LO8(eax), LO8(eax) */ /* 0x4705668E: test al, al */
  11661     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11662     _cf = 0;
  11663     _flag_k = FK_NARROW(FK_TEST, 24);
  11664     RECOMP_BACKEDGE();
  11665     if (TEST_NZ(_flag_a, _flag_b)) goto L_470565FD; /* 0x47056690: jne 0x470565fd */
  11666 L_47056696:
  11667     MEM8(ebx) = (uint8_t)(0); /* 0x47056696: mov byte ptr [ebx], 0 */
  11668     goto L_47056747; /* 0x47056699: jmp 0x47056747 */
  11669 L_4705669E:
  11670     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  11671     edi = edi + 1; /* 0x4705669E: inc edi */
  11672     _flag_k = FK_INC;
  11673     SET_LO8(ecx, LO8(eax)); /* 0x4705669F: mov cl, al */
  11674     SET_LO8(eax, MEM8(edi)); /* 0x470566A1: mov al, byte ptr [edi] */
  11675     /* test LO8(eax), LO8(eax) */ /* 0x470566A3: test al, al */
  11676     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11677     _cf = 0;
  11678     _flag_k = FK_NARROW(FK_TEST, 24);
  11679     MEM8(esp + 0x13) = (uint8_t)(LO8(ecx)); /* 0x470566A5: mov byte ptr [esp + 0x13], cl */
  11680     ebx = ebp; /* 0x470566A9: mov ebx, ebp */
  11681     if (TEST_Z(_flag_a, _flag_b)) goto L_4705673F; /* 0x470566AB: je 0x4705673f */
  11682 L_470566B1:
  11683     /* cmp LO8(eax), LO8(ecx) */ /* 0x470566B1: cmp al, cl */
  11684     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11686     _flag_k = FK_NARROW(FK_CMP, 24);
  11687     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705673F; /* 0x470566B3: je 0x4705673f */
  11688 L_470566B9:
  11689     eax = ebx; /* 0x470566B9: mov eax, ebx */
  11690     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
  11691     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11692     eax = eax - ebp; /* 0x470566BB: sub eax, ebp */
  11693     _flag_k = FK_CMP;
  11694     /* cmp eax, 0x1000u */ /* 0x470566BD: cmp eax, 0x1000 */
  11695     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u);
  11696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11697     _flag_k = FK_CMP;
  11698     if (CMP_B(_flag_a, _flag_b)) goto L_4705672F; /* 0x470566C2: jb 0x4705672f */
  11699 L_470566C4:
  11700     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470566C4: call dword ptr [0x470ac150] */
  11701     RECOMP_FLAGS_IN();
  11702     ebp = eax; /* 0x470566CA: mov ebp, eax */
  11703     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470566CC: call dword ptr [0x470ac3c8] */
  11704     RECOMP_FLAGS_IN();
  11705     eax = MEM32(eax); /* 0x470566D2: mov eax, dword ptr [eax] */
  11706     /* test eax, eax */ /* 0x470566D4: test eax, eax */
  11707     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11708     _cf = 0;
  11709     _flag_k = FK_TEST;
  11710     if (TEST_Z(_flag_a, _flag_b)) goto L_470566DA; /* 0x470566D6: je 0x470566da */
  11711 L_470566D8:
  11712     ebp = eax; /* 0x470566D8: mov ebp, eax */
  11713 L_470566DA:
  11714     RECOMP_ICALL(0x47039020u); /* 0x470566DA: call 0x47039020 */ /* not lifted */
  11715     RECOMP_FLAGS_IN();
  11716     esi = eax; /* 0x470566DF: mov esi, eax */
  11717     ecx = esi; /* 0x470566E1: mov ecx, esi */
  11718     RECOMP_ICALL(0x4703B210u); /* 0x470566E3: call 0x4703b210 */ /* not lifted */
  11719     RECOMP_FLAGS_IN();
  11720     PUSH32(esp, eax); /* 0x470566E8: push eax */
  11721     ecx = esi; /* 0x470566E9: mov ecx, esi */
  11722     RECOMP_ICALL(0x4703B240u); /* 0x470566EB: call 0x4703b240 */ /* not lifted */
  11723     RECOMP_FLAGS_IN();
  11724     PUSH32(esp, eax); /* 0x470566F0: push eax */
  11725     ecx = esi; /* 0x470566F1: mov ecx, esi */
  11726     RECOMP_ICALL(0x4703B080u); /* 0x470566F3: call 0x4703b080 */ /* not lifted */
  11727     RECOMP_FLAGS_IN();
  11728     PUSH32(esp, eax); /* 0x470566F8: push eax */
  11729     PUSH32(esp, ebp); /* 0x470566F9: push ebp */
  11730     PUSH32(esp, 0xFFFFFFFFu); /* 0x470566FA: push -1 */
  11731     PUSH32(esp, 0x105Fu); /* 0x470566FC: push 0x105f */
  11732     PUSH32(esp, 0x47108F38u); /* 0x47056701: push 0x47108f38 */
  11733     ecx = esi; /* 0x47056706: mov ecx, esi */
  11734     RECOMP_ICALL(0x4703A340u); /* 0x47056708: call 0x4703a340 */ /* not lifted */
  11735     RECOMP_FLAGS_IN();
  11736     PUSH32(esp, 0xFFFFFFFFu); /* 0x4705670D: push -1 */
  11737     PUSH32(esp, 0x471090E0u); /* 0x4705670F: push 0x471090e0 */
  11738     PUSH32(esp, 0x47104AA4u); /* 0x47056714: push 0x47104aa4 */
  11739     PUSH32(esp, 0x80u); /* 0x47056719: push 0x80 */
  11740     PUSH32(esp, esi); /* 0x4705671E: push esi */
  11741     RECOMP_ICALL(0x47039830u); /* 0x4705671F: call 0x47039830 */ /* not lifted */
  11742     RECOMP_FLAGS_IN();
  11743     ebp = MEM32(esp + 0x28); /* 0x47056724: mov ebp, dword ptr [esp + 0x28] */
  11744     SET_LO8(ecx, MEM8(esp + 0x27)); /* 0x47056728: mov cl, byte ptr [esp + 0x27] */
  11745     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11746     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11747     esp = esp + 0x14u; /* 0x4705672C: add esp, 0x14 */
  11748     _flag_k = FK_ADD;
  11749 L_4705672F:
  11750     SET_LO8(edx, MEM8(edi)); /* 0x4705672F: mov dl, byte ptr [edi] */
  11751     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  11752     edi = edi + 1; /* 0x47056731: inc edi */
  11753     _flag_k = FK_INC;
  11754     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x47056732: mov byte ptr [ebx], dl */
  11755     SET_LO8(eax, MEM8(edi)); /* 0x47056734: mov al, byte ptr [edi] */
  11756     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  11757     ebx = ebx + 1; /* 0x47056736: inc ebx */
  11758     _flag_k = FK_INC;
  11759     /* test LO8(eax), LO8(eax) */ /* 0x47056737: test al, al */
  11760     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11761     _cf = 0;
  11762     _flag_k = FK_NARROW(FK_TEST, 24);
  11763     RECOMP_BACKEDGE();
  11764     if (TEST_NZ(_flag_a, _flag_b)) goto L_470566B1; /* 0x47056739: jne 0x470566b1 */
  11765 L_4705673F:
  11766     MEM8(ebx) = (uint8_t)(0); /* 0x4705673F: mov byte ptr [ebx], 0 */
  11767     /* cmp MEM8(edi), LO8(ecx) */ /* 0x47056742: cmp byte ptr [edi], cl */
  11768     _flag_a = (uint32_t)(MEM8(edi)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11770     _flag_k = FK_NARROW(FK_CMP, 24);
  11771     if (CMP_NE(_flag_a, _flag_b)) goto L_47056747; /* 0x47056744: jne 0x47056747 */
  11772 L_47056746:
  11773     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  11774     edi = edi + 1; /* 0x47056746: inc edi */
  11775     _flag_k = FK_INC;
  11776 L_47056747:
  11777     eax = MEM32(esp + 0x102C); /* 0x47056747: mov eax, dword ptr [esp + 0x102c] */
  11778     /* test eax, eax */ /* 0x4705674E: test eax, eax */
  11779     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11780     _cf = 0;
  11781     _flag_k = FK_TEST;
  11782     if (TEST_Z(_flag_a, _flag_b)) goto L_4705679B; /* 0x47056750: je 0x4705679b */
  11783 L_47056752:
  11784     /* cmp MEM8(esp + 0x1C), 0x24u */ /* 0x47056752: cmp byte ptr [esp + 0x1c], 0x24 */
  11785     _flag_a = (uint32_t)(MEM8(esp + 0x1C)) << 24; _flag_b = (uint32_t)(0x24u) << 24;
  11786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11787     _flag_k = FK_NARROW(FK_CMP, 24);
  11788     if (CMP_NE(_flag_a, _flag_b)) goto L_4705676E; /* 0x47056757: jne 0x4705676e */
  11789 L_47056759:
  11790     eax = esp + 0x1D; /* 0x47056759: lea eax, [esp + 0x1d] */
  11791     PUSH32(esp, eax); /* 0x4705675D: push eax */
  11792     RECOMP_ICALL(MEM32(0x470AC268)); /* 0x4705675E: call dword ptr [0x470ac268] */
  11793     RECOMP_FLAGS_IN();
  11794     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11795     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11796     esp = esp + 4; /* 0x47056764: add esp, 4 */
  11797     _flag_k = FK_ADD;
  11798     /* test eax, eax */ /* 0x47056767: test eax, eax */
  11799     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11800     _cf = 0;
  11801     _flag_k = FK_TEST;
  11802     if (TEST_Z(_flag_a, _flag_b)) goto L_4705676E; /* 0x47056769: je 0x4705676e */
  11803 L_4705676B:
  11804     PUSH32(esp, eax); /* 0x4705676B: push eax */
  11805     goto L_47056773; /* 0x4705676C: jmp 0x47056773 */
  11806 L_4705676E:
  11807     ecx = esp + 0x1C; /* 0x4705676E: lea ecx, [esp + 0x1c] */
  11808     PUSH32(esp, ecx); /* 0x47056772: push ecx */
  11809 L_47056773:
  11810     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47056773: call dword ptr [0x470ac3f4] */
  11811     RECOMP_FLAGS_IN();
  11812     edx = MEM32(esp + 0x102C); /* 0x47056779: mov edx, dword ptr [esp + 0x102c] */
  11813     esi = MEM32(edx); /* 0x47056780: mov esi, dword ptr [edx] */
  11814     ecx = MEM32(esp + 0x1C); /* 0x47056782: mov ecx, dword ptr [esp + 0x1c] */
  11815     MEM32(esi + ecx * 4) = eax; /* 0x47056786: mov dword ptr [esi + ecx*4], eax */
  11816     edx = MEM32(edx); /* 0x47056789: mov edx, dword ptr [edx] */
  11817     eax = MEM32(edx + ecx * 4); /* 0x4705678B: mov eax, dword ptr [edx + ecx*4] */
  11818     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11819     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11820     esp = esp + 4; /* 0x4705678E: add esp, 4 */
  11821     _flag_k = FK_ADD;
  11822     /* test eax, eax */ /* 0x47056791: test eax, eax */
  11823     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11824     _cf = 0;
  11825     _flag_k = FK_TEST;
  11826     RECOMP_BACKEDGE();
  11827     if (TEST_Z(_flag_a, _flag_b)) goto L_4705658B; /* 0x47056793: je 0x4705658b */
  11828 L_47056799:
  11829     goto L_470567C6; /* 0x47056799: jmp 0x470567c6 */
  11830 L_4705679B:
  11831     eax = esp + 0x1C; /* 0x4705679B: lea eax, [esp + 0x1c] */
  11832     PUSH32(esp, eax); /* 0x4705679F: push eax */
  11833     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x470567A0: call dword ptr [0x470ac3f4] */
  11834     RECOMP_FLAGS_IN();
  11835     edx = MEM32(esp + 0x102C); /* 0x470567A6: mov edx, dword ptr [esp + 0x102c] */
  11836     esi = MEM32(edx); /* 0x470567AD: mov esi, dword ptr [edx] */
  11837     ecx = MEM32(esp + 0x1C); /* 0x470567AF: mov ecx, dword ptr [esp + 0x1c] */
  11838     MEM32(esi + ecx * 4) = eax; /* 0x470567B3: mov dword ptr [esi + ecx*4], eax */
  11839     edx = MEM32(edx); /* 0x470567B6: mov edx, dword ptr [edx] */
  11840     eax = MEM32(edx + ecx * 4); /* 0x470567B8: mov eax, dword ptr [edx + ecx*4] */
  11841     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11842     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11843     esp = esp + 4; /* 0x470567BB: add esp, 4 */
  11844     _flag_k = FK_ADD;
  11845     /* test eax, eax */ /* 0x470567BE: test eax, eax */
  11846     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11847     _cf = 0;
  11848     _flag_k = FK_TEST;
  11849     RECOMP_BACKEDGE();
  11850     if (TEST_Z(_flag_a, _flag_b)) goto L_4705658B; /* 0x470567C0: je 0x4705658b */
  11851 L_470567C6:
  11852     eax = MEM32(esp + 0x1024); /* 0x470567C6: mov eax, dword ptr [esp + 0x1024] */
  11853     edx = MEM32(eax); /* 0x470567CD: mov edx, dword ptr [eax] */
  11854     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  11855     ecx = ecx + 1; /* 0x470567CF: inc ecx */
  11856     _flag_k = FK_INC;
  11857     /* cmp ecx, edx */ /* 0x470567D0: cmp ecx, edx */
  11858     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  11859     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11860     _flag_k = FK_CMP;
  11861     MEM32(esp + 0x18) = ecx; /* 0x470567D2: mov dword ptr [esp + 0x18], ecx */
  11862     RECOMP_BACKEDGE();
  11863     if (CMP_B(_flag_a, _flag_b)) goto L_470565BD; /* 0x470567D6: jb 0x470565bd */
  11864 L_470567DC:
  11865     ecx = esp + 0x1C; /* 0x470567DC: lea ecx, [esp + 0x1c] */
  11866     /* cmp ebp, ecx */ /* 0x470567E0: cmp ebp, ecx */
  11867     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ecx);
  11868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11869     _flag_k = FK_CMP;
  11870     if (CMP_EQ(_flag_a, _flag_b)) goto L_470567ED; /* 0x470567E2: je 0x470567ed */
  11871 L_470567E4:
  11872     PUSH32(esp, ebp); /* 0x470567E4: push ebp */
  11873     RECOMP_ICALL(0x470A32A2u); /* 0x470567E5: call 0x470a32a2 */ /* not lifted */
  11874     RECOMP_FLAGS_IN();
  11875     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11876     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11877     esp = esp + 4; /* 0x470567EA: add esp, 4 */
  11878     _flag_k = FK_ADD;
  11879 L_470567ED:
  11880     edx = MEM32(esp + 0x1024); /* 0x470567ED: mov edx, dword ptr [esp + 0x1024] */
  11881     eax = MEM32(edx); /* 0x470567F4: mov eax, dword ptr [edx] */
  11882     ecx = MEM32(esp + 0x1028); /* 0x470567F6: mov ecx, dword ptr [esp + 0x1028] */
  11883     edx = MEM32(ecx); /* 0x470567FD: mov edx, dword ptr [ecx] */
  11884     edi = POP32_VAL(esp); /* 0x470567FF: pop edi */
  11885     esi = POP32_VAL(esp); /* 0x47056800: pop esi */
  11886     ebp = POP32_VAL(esp); /* 0x47056801: pop ebp */
  11887     MEM32(edx + eax * 4) = 0; /* 0x47056802: mov dword ptr [edx + eax*4], 0 */
  11888     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11889     eax = 0; /* 0x47056809: xor eax, eax */
  11890     _cf = 0;
  11891     _flag_k = FK_TEST;
  11892     ebx = POP32_VAL(esp); /* 0x4705680B: pop ebx */
  11893     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  11894     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11895     esp = esp + 0x100Cu; /* 0x4705680C: add esp, 0x100c */
  11896     _flag_k = FK_ADD;
  11897     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056812: ret  */
  11898     RECOMP_REGS_OUT();
  11899 }
  11900 
  11901 void sub_470567C6(void) {
  11902     int _fpu_cmp = 0;
  11903     uint32_t _cf = 0;
  11904     int _df = 1;
  11905     uint32_t _flag_k = FK_NONE;
  11906     uint32_t _flag_a = 0, _flag_b = 0;
  11907     uint32_t _itail_tgt = 0;
  11908     RECOMP_REGS_LOCALS
  11909     RECOMP_ENTER(0x470567C6u);
  11910 
  11911     goto L_470567C6;
  11912 L_4705658B:
  11913     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4705658B: call dword ptr [0x470ac3c8] */
  11914     RECOMP_FLAGS_IN();
  11915     edi = POP32_VAL(esp); /* 0x47056591: pop edi */
  11916     esi = POP32_VAL(esp); /* 0x47056592: pop esi */
  11917     ebp = POP32_VAL(esp); /* 0x47056593: pop ebp */
  11918     MEM32(eax) = 0xCu; /* 0x47056594: mov dword ptr [eax], 0xc */
  11919     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
  11920     eax = eax | 0xFFFFFFFFu; /* 0x4705659A: or eax, 0xffffffff */
  11921     _cf = 0;
  11922     _flag_k = FK_TEST;
  11923     ebx = POP32_VAL(esp); /* 0x4705659D: pop ebx */
  11924     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  11925     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11926     esp = esp + 0x100Cu; /* 0x4705659E: add esp, 0x100c */
  11927     _flag_k = FK_ADD;
  11928     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470565A4: ret  */
  11929 L_470565BD:
  11930     ecx = (int32_t)(int8_t)MEM8(edi); /* 0x470565BD: movsx ecx, byte ptr [edi] */
  11931     esi = MEM32(0x470AC1E4); /* 0x470565C0: mov esi, dword ptr [0x470ac1e4] */
  11932     PUSH32(esp, ecx); /* 0x470565C6: push ecx */
  11933     RECOMP_ICALL(esi); /* 0x470565C7: call esi */
  11934     RECOMP_FLAGS_IN();
  11935     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11936     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11937     esp = esp + 4; /* 0x470565C9: add esp, 4 */
  11938     _flag_k = FK_ADD;
  11939     /* test eax, eax */ /* 0x470565CC: test eax, eax */
  11940     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11941     _cf = 0;
  11942     _flag_k = FK_TEST;
  11943     if (TEST_Z(_flag_a, _flag_b)) goto L_470565DF; /* 0x470565CE: je 0x470565df */
  11944 L_470565D0:
  11945     edx = (int32_t)(int8_t)MEM8(edi + 0x1); /* 0x470565D0: movsx edx, byte ptr [edi + 1] */
  11946     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  11947     edi = edi + 1; /* 0x470565D4: inc edi */
  11948     _flag_k = FK_INC;
  11949     PUSH32(esp, edx); /* 0x470565D5: push edx */
  11950     RECOMP_ICALL(esi); /* 0x470565D6: call esi */
  11951     RECOMP_FLAGS_IN();
  11952     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11953     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11954     esp = esp + 4; /* 0x470565D8: add esp, 4 */
  11955     _flag_k = FK_ADD;
  11956     /* test eax, eax */ /* 0x470565DB: test eax, eax */
  11957     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11958     _cf = 0;
  11959     _flag_k = FK_TEST;
  11960     RECOMP_BACKEDGE();
  11961     if (TEST_NZ(_flag_a, _flag_b)) goto L_470565D0; /* 0x470565DD: jne 0x470565d0 */
  11962 L_470565DF:
  11963     SET_LO8(eax, MEM8(edi)); /* 0x470565DF: mov al, byte ptr [edi] */
  11964     /* cmp LO8(eax), 0x27u */ /* 0x470565E1: cmp al, 0x27 */
  11965     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x27u) << 24;
  11966     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11967     _flag_k = FK_NARROW(FK_CMP, 24);
  11968     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705669E; /* 0x470565E3: je 0x4705669e */
  11969 L_470565E9:
  11970     /* cmp LO8(eax), 0x22u */ /* 0x470565E9: cmp al, 0x22 */
  11971     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x22u) << 24;
  11972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11973     _flag_k = FK_NARROW(FK_CMP, 24);
  11974     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705669E; /* 0x470565EB: je 0x4705669e */
  11975 L_470565F1:
  11976     /* test LO8(eax), LO8(eax) */ /* 0x470565F1: test al, al */
  11977     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11978     _cf = 0;
  11979     _flag_k = FK_NARROW(FK_TEST, 24);
  11980     ebx = esp + 0x1C; /* 0x470565F3: lea ebx, [esp + 0x1c] */
  11981     if (TEST_Z(_flag_a, _flag_b)) goto L_47056696; /* 0x470565F7: je 0x47056696 */
  11982 L_470565FD:
  11983     eax = (int32_t)(int8_t)LO8(eax); /* 0x470565FD: movsx eax, al */
  11984     PUSH32(esp, eax); /* 0x47056600: push eax */
  11985     RECOMP_ICALL(MEM32(0x470AC1E4)); /* 0x47056601: call dword ptr [0x470ac1e4] */
  11986     RECOMP_FLAGS_IN();
  11987     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11988     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11989     esp = esp + 4; /* 0x47056607: add esp, 4 */
  11990     _flag_k = FK_ADD;
  11991     /* test eax, eax */ /* 0x4705660A: test eax, eax */
  11992     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11993     _cf = 0;
  11994     _flag_k = FK_TEST;
  11995     if (TEST_NZ(_flag_a, _flag_b)) goto L_47056696; /* 0x4705660C: jne 0x47056696 */
  11996 L_47056612:
  11997     ecx = ebx; /* 0x47056612: mov ecx, ebx */
  11998     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp);
  11999     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12000     ecx = ecx - ebp; /* 0x47056614: sub ecx, ebp */
  12001     _flag_k = FK_CMP;
  12002     /* cmp ecx, 0x1000u */ /* 0x47056616: cmp ecx, 0x1000 */
  12003     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1000u);
  12004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12005     _flag_k = FK_CMP;
  12006     if (CMP_B(_flag_a, _flag_b)) goto L_47056685; /* 0x4705661C: jb 0x47056685 */
  12007 L_4705661E:
  12008     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4705661E: call dword ptr [0x470ac150] */
  12009     RECOMP_FLAGS_IN();
  12010     ebp = eax; /* 0x47056624: mov ebp, eax */
  12011     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47056626: call dword ptr [0x470ac3c8] */
  12012     RECOMP_FLAGS_IN();
  12013     eax = MEM32(eax); /* 0x4705662C: mov eax, dword ptr [eax] */
  12014     /* test eax, eax */ /* 0x4705662E: test eax, eax */
  12015     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  12016     _cf = 0;
  12017     _flag_k = FK_TEST;
  12018     if (TEST_Z(_flag_a, _flag_b)) goto L_47056634; /* 0x47056630: je 0x47056634 */
  12019 L_47056632:
  12020     ebp = eax; /* 0x47056632: mov ebp, eax */
  12021 L_47056634:
  12022     RECOMP_ICALL(0x47039020u); /* 0x47056634: call 0x47039020 */ /* not lifted */
  12023     RECOMP_FLAGS_IN();
  12024     esi = eax; /* 0x47056639: mov esi, eax */
  12025     ecx = esi; /* 0x4705663B: mov ecx, esi */
  12026     RECOMP_ICALL(0x4703B210u); /* 0x4705663D: call 0x4703b210 */ /* not lifted */
  12027     RECOMP_FLAGS_IN();
  12028     PUSH32(esp, eax); /* 0x47056642: push eax */
  12029     ecx = esi; /* 0x47056643: mov ecx, esi */
  12030     RECOMP_ICALL(0x4703B240u); /* 0x47056645: call 0x4703b240 */ /* not lifted */
  12031     RECOMP_FLAGS_IN();
  12032     PUSH32(esp, eax); /* 0x4705664A: push eax */
  12033     ecx = esi; /* 0x4705664B: mov ecx, esi */
  12034     RECOMP_ICALL(0x4703B080u); /* 0x4705664D: call 0x4703b080 */ /* not lifted */
  12035     RECOMP_FLAGS_IN();
  12036     PUSH32(esp, eax); /* 0x47056652: push eax */
  12037     PUSH32(esp, ebp); /* 0x47056653: push ebp */
  12038     PUSH32(esp, 0xFFFFFFFFu); /* 0x47056654: push -1 */
  12039     PUSH32(esp, 0x106Fu); /* 0x47056656: push 0x106f */
  12040     PUSH32(esp, 0x47108F38u); /* 0x4705665B: push 0x47108f38 */
  12041     ecx = esi; /* 0x47056660: mov ecx, esi */
  12042     RECOMP_ICALL(0x4703A340u); /* 0x47056662: call 0x4703a340 */ /* not lifted */
  12043     RECOMP_FLAGS_IN();
  12044     PUSH32(esp, 0xFFFFFFFFu); /* 0x47056667: push -1 */
  12045     PUSH32(esp, 0x47109110u); /* 0x47056669: push 0x47109110 */
  12046     PUSH32(esp, 0x47104AA4u); /* 0x4705666E: push 0x47104aa4 */
  12047     PUSH32(esp, 0x80u); /* 0x47056673: push 0x80 */
  12048     PUSH32(esp, esi); /* 0x47056678: push esi */
  12049     RECOMP_ICALL(0x47039830u); /* 0x47056679: call 0x47039830 */ /* not lifted */
  12050     RECOMP_FLAGS_IN();
  12051     ebp = MEM32(esp + 0x28); /* 0x4705667E: mov ebp, dword ptr [esp + 0x28] */
  12052     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  12053     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12054     esp = esp + 0x14u; /* 0x47056682: add esp, 0x14 */
  12055     _flag_k = FK_ADD;
  12056 L_47056685:
  12057     SET_LO8(edx, MEM8(edi)); /* 0x47056685: mov dl, byte ptr [edi] */
  12058     SET_LO8(eax, MEM8(edi + 0x1)); /* 0x47056687: mov al, byte ptr [edi + 1] */
  12059     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  12060     edi = edi + 1; /* 0x4705668A: inc edi */
  12061     _flag_k = FK_INC;
  12062     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x4705668B: mov byte ptr [ebx], dl */
  12063     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  12064     ebx = ebx + 1; /* 0x4705668D: inc ebx */
  12065     _flag_k = FK_INC;
  12066     /* test LO8(eax), LO8(eax) */ /* 0x4705668E: test al, al */
  12067     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  12068     _cf = 0;
  12069     _flag_k = FK_NARROW(FK_TEST, 24);
  12070     RECOMP_BACKEDGE();
  12071     if (TEST_NZ(_flag_a, _flag_b)) goto L_470565FD; /* 0x47056690: jne 0x470565fd */
  12072 L_47056696:
  12073     MEM8(ebx) = (uint8_t)(0); /* 0x47056696: mov byte ptr [ebx], 0 */
  12074     goto L_47056747; /* 0x47056699: jmp 0x47056747 */
  12075 L_4705669E:
  12076     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  12077     edi = edi + 1; /* 0x4705669E: inc edi */
  12078     _flag_k = FK_INC;
  12079     SET_LO8(ecx, LO8(eax)); /* 0x4705669F: mov cl, al */
  12080     SET_LO8(eax, MEM8(edi)); /* 0x470566A1: mov al, byte ptr [edi] */
  12081     /* test LO8(eax), LO8(eax) */ /* 0x470566A3: test al, al */
  12082     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  12083     _cf = 0;
  12084     _flag_k = FK_NARROW(FK_TEST, 24);
  12085     MEM8(esp + 0x13) = (uint8_t)(LO8(ecx)); /* 0x470566A5: mov byte ptr [esp + 0x13], cl */
  12086     ebx = ebp; /* 0x470566A9: mov ebx, ebp */
  12087     if (TEST_Z(_flag_a, _flag_b)) goto L_4705673F; /* 0x470566AB: je 0x4705673f */
  12088 L_470566B1:
  12089     /* cmp LO8(eax), LO8(ecx) */ /* 0x470566B1: cmp al, cl */
  12090     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  12091     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12092     _flag_k = FK_NARROW(FK_CMP, 24);
  12093     if (CMP_EQ(_flag_a, _flag_b)) goto L_4705673F; /* 0x470566B3: je 0x4705673f */
  12094 L_470566B9:
  12095     eax = ebx; /* 0x470566B9: mov eax, ebx */
  12096     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
  12097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12098     eax = eax - ebp; /* 0x470566BB: sub eax, ebp */
  12099     _flag_k = FK_CMP;
  12100     /* cmp eax, 0x1000u */ /* 0x470566BD: cmp eax, 0x1000 */
  12101     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u);
  12102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12103     _flag_k = FK_CMP;
  12104     if (CMP_B(_flag_a, _flag_b)) goto L_4705672F; /* 0x470566C2: jb 0x4705672f */
  12105 L_470566C4:
  12106     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470566C4: call dword ptr [0x470ac150] */
  12107     RECOMP_FLAGS_IN();
  12108     ebp = eax; /* 0x470566CA: mov ebp, eax */
  12109     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470566CC: call dword ptr [0x470ac3c8] */
  12110     RECOMP_FLAGS_IN();
  12111     eax = MEM32(eax); /* 0x470566D2: mov eax, dword ptr [eax] */
  12112     /* test eax, eax */ /* 0x470566D4: test eax, eax */
  12113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  12114     _cf = 0;
  12115     _flag_k = FK_TEST;
  12116     if (TEST_Z(_flag_a, _flag_b)) goto L_470566DA; /* 0x470566D6: je 0x470566da */
  12117 L_470566D8:
  12118     ebp = eax; /* 0x470566D8: mov ebp, eax */
  12119 L_470566DA:
  12120     RECOMP_ICALL(0x47039020u); /* 0x470566DA: call 0x47039020 */ /* not lifted */
  12121     RECOMP_FLAGS_IN();
  12122     esi = eax; /* 0x470566DF: mov esi, eax */
  12123     ecx = esi; /* 0x470566E1: mov ecx, esi */
  12124     RECOMP_ICALL(0x4703B210u); /* 0x470566E3: call 0x4703b210 */ /* not lifted */
  12125     RECOMP_FLAGS_IN();
  12126     PUSH32(esp, eax); /* 0x470566E8: push eax */
  12127     ecx = esi; /* 0x470566E9: mov ecx, esi */
  12128     RECOMP_ICALL(0x4703B240u); /* 0x470566EB: call 0x4703b240 */ /* not lifted */
  12129     RECOMP_FLAGS_IN();
  12130     PUSH32(esp, eax); /* 0x470566F0: push eax */
  12131     ecx = esi; /* 0x470566F1: mov ecx, esi */
  12132     RECOMP_ICALL(0x4703B080u); /* 0x470566F3: call 0x4703b080 */ /* not lifted */
  12133     RECOMP_FLAGS_IN();
  12134     PUSH32(esp, eax); /* 0x470566F8: push eax */
  12135     PUSH32(esp, ebp); /* 0x470566F9: push ebp */
  12136     PUSH32(esp, 0xFFFFFFFFu); /* 0x470566FA: push -1 */
  12137     PUSH32(esp, 0x105Fu); /* 0x470566FC: push 0x105f */
  12138     PUSH32(esp, 0x47108F38u); /* 0x47056701: push 0x47108f38 */
  12139     ecx = esi; /* 0x47056706: mov ecx, esi */
  12140     RECOMP_ICALL(0x4703A340u); /* 0x47056708: call 0x4703a340 */ /* not lifted */
  12141     RECOMP_FLAGS_IN();
  12142     PUSH32(esp, 0xFFFFFFFFu); /* 0x4705670D: push -1 */
  12143     PUSH32(esp, 0x471090E0u); /* 0x4705670F: push 0x471090e0 */
  12144     PUSH32(esp, 0x47104AA4u); /* 0x47056714: push 0x47104aa4 */
  12145     PUSH32(esp, 0x80u); /* 0x47056719: push 0x80 */
  12146     PUSH32(esp, esi); /* 0x4705671E: push esi */
  12147     RECOMP_ICALL(0x47039830u); /* 0x4705671F: call 0x47039830 */ /* not lifted */
  12148     RECOMP_FLAGS_IN();
  12149     ebp = MEM32(esp + 0x28); /* 0x47056724: mov ebp, dword ptr [esp + 0x28] */
  12150     SET_LO8(ecx, MEM8(esp + 0x27)); /* 0x47056728: mov cl, byte ptr [esp + 0x27] */
  12151     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  12152     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12153     esp = esp + 0x14u; /* 0x4705672C: add esp, 0x14 */
  12154     _flag_k = FK_ADD;
  12155 L_4705672F:
  12156     SET_LO8(edx, MEM8(edi)); /* 0x4705672F: mov dl, byte ptr [edi] */
  12157     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  12158     edi = edi + 1; /* 0x47056731: inc edi */
  12159     _flag_k = FK_INC;
  12160     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x47056732: mov byte ptr [ebx], dl */
  12161     SET_LO8(eax, MEM8(edi)); /* 0x47056734: mov al, byte ptr [edi] */
  12162     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  12163     ebx = ebx + 1; /* 0x47056736: inc ebx */
  12164     _flag_k = FK_INC;
  12165     /* test LO8(eax), LO8(eax) */ /* 0x47056737: test al, al */
  12166     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  12167     _cf = 0;
  12168     _flag_k = FK_NARROW(FK_TEST, 24);
  12169     RECOMP_BACKEDGE();
  12170     if (TEST_NZ(_flag_a, _flag_b)) goto L_470566B1; /* 0x47056739: jne 0x470566b1 */
  12171 L_4705673F:
  12172     MEM8(ebx) = (uint8_t)(0); /* 0x4705673F: mov byte ptr [ebx], 0 */
  12173     /* cmp MEM8(edi), LO8(ecx) */ /* 0x47056742: cmp byte ptr [edi], cl */
  12174     _flag_a = (uint32_t)(MEM8(edi)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  12175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12176     _flag_k = FK_NARROW(FK_CMP, 24);
  12177     if (CMP_NE(_flag_a, _flag_b)) goto L_47056747; /* 0x47056744: jne 0x47056747 */
  12178 L_47056746:
  12179     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  12180     edi = edi + 1; /* 0x47056746: inc edi */
  12181     _flag_k = FK_INC;
  12182 L_47056747:
  12183     eax = MEM32(esp + 0x102C); /* 0x47056747: mov eax, dword ptr [esp + 0x102c] */
  12184     /* test eax, eax */ /* 0x4705674E: test eax, eax */
  12185     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  12186     _cf = 0;
  12187     _flag_k = FK_TEST;
  12188     if (TEST_Z(_flag_a, _flag_b)) goto L_4705679B; /* 0x47056750: je 0x4705679b */
  12189 L_47056752:
  12190     /* cmp MEM8(esp + 0x1C), 0x24u */ /* 0x47056752: cmp byte ptr [esp + 0x1c], 0x24 */
  12191     _flag_a = (uint32_t)(MEM8(esp + 0x1C)) << 24; _flag_b = (uint32_t)(0x24u) << 24;
  12192     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12193     _flag_k = FK_NARROW(FK_CMP, 24);
  12194     if (CMP_NE(_flag_a, _flag_b)) goto L_4705676E; /* 0x47056757: jne 0x4705676e */
  12195 L_47056759:
  12196     eax = esp + 0x1D; /* 0x47056759: lea eax, [esp + 0x1d] */
  12197     PUSH32(esp, eax); /* 0x4705675D: push eax */
  12198     RECOMP_ICALL(MEM32(0x470AC268)); /* 0x4705675E: call dword ptr [0x470ac268] */
  12199     RECOMP_FLAGS_IN();
  12200     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12201     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12202     esp = esp + 4; /* 0x47056764: add esp, 4 */
  12203     _flag_k = FK_ADD;
  12204     /* test eax, eax */ /* 0x47056767: test eax, eax */
  12205     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  12206     _cf = 0;
  12207     _flag_k = FK_TEST;
  12208     if (TEST_Z(_flag_a, _flag_b)) goto L_4705676E; /* 0x47056769: je 0x4705676e */
  12209 L_4705676B:
  12210     PUSH32(esp, eax); /* 0x4705676B: push eax */
  12211     goto L_47056773; /* 0x4705676C: jmp 0x47056773 */
  12212 L_4705676E:
  12213     ecx = esp + 0x1C; /* 0x4705676E: lea ecx, [esp + 0x1c] */
  12214     PUSH32(esp, ecx); /* 0x47056772: push ecx */
  12215 L_47056773:
  12216     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47056773: call dword ptr [0x470ac3f4] */
  12217     RECOMP_FLAGS_IN();
  12218     edx = MEM32(esp + 0x102C); /* 0x47056779: mov edx, dword ptr [esp + 0x102c] */
  12219     esi = MEM32(edx); /* 0x47056780: mov esi, dword ptr [edx] */
  12220     ecx = MEM32(esp + 0x1C); /* 0x47056782: mov ecx, dword ptr [esp + 0x1c] */
  12221     MEM32(esi + ecx * 4) = eax; /* 0x47056786: mov dword ptr [esi + ecx*4], eax */
  12222     edx = MEM32(edx); /* 0x47056789: mov edx, dword ptr [edx] */
  12223     eax = MEM32(edx + ecx * 4); /* 0x4705678B: mov eax, dword ptr [edx + ecx*4] */
  12224     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12225     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12226     esp = esp + 4; /* 0x4705678E: add esp, 4 */
  12227     _flag_k = FK_ADD;
  12228     /* test eax, eax */ /* 0x47056791: test eax, eax */
  12229     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  12230     _cf = 0;
  12231     _flag_k = FK_TEST;
  12232     RECOMP_BACKEDGE();
  12233     if (TEST_Z(_flag_a, _flag_b)) goto L_4705658B; /* 0x47056793: je 0x4705658b */
  12234 L_47056799:
  12235     goto L_470567C6; /* 0x47056799: jmp 0x470567c6 */
  12236 L_4705679B:
  12237     eax = esp + 0x1C; /* 0x4705679B: lea eax, [esp + 0x1c] */
  12238     PUSH32(esp, eax); /* 0x4705679F: push eax */
  12239     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x470567A0: call dword ptr [0x470ac3f4] */
  12240     RECOMP_FLAGS_IN();
  12241     edx = MEM32(esp + 0x102C); /* 0x470567A6: mov edx, dword ptr [esp + 0x102c] */
  12242     esi = MEM32(edx); /* 0x470567AD: mov esi, dword ptr [edx] */
  12243     ecx = MEM32(esp + 0x1C); /* 0x470567AF: mov ecx, dword ptr [esp + 0x1c] */
  12244     MEM32(esi + ecx * 4) = eax; /* 0x470567B3: mov dword ptr [esi + ecx*4], eax */
  12245     edx = MEM32(edx); /* 0x470567B6: mov edx, dword ptr [edx] */
  12246     eax = MEM32(edx + ecx * 4); /* 0x470567B8: mov eax, dword ptr [edx + ecx*4] */
  12247     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12248     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12249     esp = esp + 4; /* 0x470567BB: add esp, 4 */
  12250     _flag_k = FK_ADD;
  12251     /* test eax, eax */ /* 0x470567BE: test eax, eax */
  12252     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  12253     _cf = 0;
  12254     _flag_k = FK_TEST;
  12255     RECOMP_BACKEDGE();
  12256     if (TEST_Z(_flag_a, _flag_b)) goto L_4705658B; /* 0x470567C0: je 0x4705658b */
  12257 L_470567C6:
  12258     eax = MEM32(esp + 0x1024); /* 0x470567C6: mov eax, dword ptr [esp + 0x1024] */
  12259     edx = MEM32(eax); /* 0x470567CD: mov edx, dword ptr [eax] */
  12260     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  12261     ecx = ecx + 1; /* 0x470567CF: inc ecx */
  12262     _flag_k = FK_INC;
  12263     /* cmp ecx, edx */ /* 0x470567D0: cmp ecx, edx */
  12264     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  12265     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12266     _flag_k = FK_CMP;
  12267     MEM32(esp + 0x18) = ecx; /* 0x470567D2: mov dword ptr [esp + 0x18], ecx */
  12268     RECOMP_BACKEDGE();
  12269     if (CMP_B(_flag_a, _flag_b)) goto L_470565BD; /* 0x470567D6: jb 0x470565bd */
  12270 L_470567DC:
  12271     ecx = esp + 0x1C; /* 0x470567DC: lea ecx, [esp + 0x1c] */
  12272     /* cmp ebp, ecx */ /* 0x470567E0: cmp ebp, ecx */
  12273     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ecx);
  12274     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12275     _flag_k = FK_CMP;
  12276     if (CMP_EQ(_flag_a, _flag_b)) goto L_470567ED; /* 0x470567E2: je 0x470567ed */
  12277 L_470567E4:
  12278     PUSH32(esp, ebp); /* 0x470567E4: push ebp */
  12279     RECOMP_ICALL(0x470A32A2u); /* 0x470567E5: call 0x470a32a2 */ /* not lifted */
  12280     RECOMP_FLAGS_IN();
  12281     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12282     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12283     esp = esp + 4; /* 0x470567EA: add esp, 4 */
  12284     _flag_k = FK_ADD;
  12285 L_470567ED:
  12286     edx = MEM32(esp + 0x1024); /* 0x470567ED: mov edx, dword ptr [esp + 0x1024] */
  12287     eax = MEM32(edx); /* 0x470567F4: mov eax, dword ptr [edx] */
  12288     ecx = MEM32(esp + 0x1028); /* 0x470567F6: mov ecx, dword ptr [esp + 0x1028] */
  12289     edx = MEM32(ecx); /* 0x470567FD: mov edx, dword ptr [ecx] */
  12290     edi = POP32_VAL(esp); /* 0x470567FF: pop edi */
  12291     esi = POP32_VAL(esp); /* 0x47056800: pop esi */
  12292     ebp = POP32_VAL(esp); /* 0x47056801: pop ebp */
  12293     MEM32(edx + eax * 4) = 0; /* 0x47056802: mov dword ptr [edx + eax*4], 0 */
  12294     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12295     eax = 0; /* 0x47056809: xor eax, eax */
  12296     _cf = 0;
  12297     _flag_k = FK_TEST;
  12298     ebx = POP32_VAL(esp); /* 0x4705680B: pop ebx */
  12299     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  12300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12301     esp = esp + 0x100Cu; /* 0x4705680C: add esp, 0x100c */
  12302     _flag_k = FK_ADD;
  12303     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056812: ret  */
  12304     RECOMP_REGS_OUT();
  12305 }
  12306 
  12307 void sub_470567DC(void) {
  12308     int _fpu_cmp = 0;
  12309     uint32_t _cf = 0;
  12310     int _df = 1;
  12311     uint32_t _flag_k = FK_NONE;
  12312     uint32_t _flag_a = 0, _flag_b = 0;
  12313     uint32_t _itail_tgt = 0;
  12314     RECOMP_REGS_LOCALS
  12315     RECOMP_ENTER(0x470567DCu);
  12316 
  12317 L_470567DC:
  12318     ecx = esp + 0x1C; /* 0x470567DC: lea ecx, [esp + 0x1c] */
  12319     /* cmp ebp, ecx */ /* 0x470567E0: cmp ebp, ecx */
  12320     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ecx);
  12321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12322     _flag_k = FK_CMP;
  12323     if (CMP_EQ(_flag_a, _flag_b)) goto L_470567ED; /* 0x470567E2: je 0x470567ed */
  12324 L_470567E4:
  12325     PUSH32(esp, ebp); /* 0x470567E4: push ebp */
  12326     RECOMP_ICALL(0x470A32A2u); /* 0x470567E5: call 0x470a32a2 */ /* not lifted */
  12327     RECOMP_FLAGS_IN();
  12328     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12329     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12330     esp = esp + 4; /* 0x470567EA: add esp, 4 */
  12331     _flag_k = FK_ADD;
  12332 L_470567ED:
  12333     edx = MEM32(esp + 0x1024); /* 0x470567ED: mov edx, dword ptr [esp + 0x1024] */
  12334     eax = MEM32(edx); /* 0x470567F4: mov eax, dword ptr [edx] */
  12335     ecx = MEM32(esp + 0x1028); /* 0x470567F6: mov ecx, dword ptr [esp + 0x1028] */
  12336     edx = MEM32(ecx); /* 0x470567FD: mov edx, dword ptr [ecx] */
  12337     edi = POP32_VAL(esp); /* 0x470567FF: pop edi */
  12338     esi = POP32_VAL(esp); /* 0x47056800: pop esi */
  12339     ebp = POP32_VAL(esp); /* 0x47056801: pop ebp */
  12340     MEM32(edx + eax * 4) = 0; /* 0x47056802: mov dword ptr [edx + eax*4], 0 */
  12341     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12342     eax = 0; /* 0x47056809: xor eax, eax */
  12343     _cf = 0;
  12344     _flag_k = FK_TEST;
  12345     ebx = POP32_VAL(esp); /* 0x4705680B: pop ebx */
  12346     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x100Cu);
  12347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12348     esp = esp + 0x100Cu; /* 0x4705680C: add esp, 0x100c */
  12349     _flag_k = FK_ADD;
  12350     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47056812: ret  */
  12351     RECOMP_REGS_OUT();
  12352 }