aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0033.c (315506B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_47046680(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(0x47046680u);
     13 
     14 L_47046680:
     15     PUSH32(esp, 0xFFFFFFFFu); /* 0x47046680: push -1 */
     16     PUSH32(esp, 0x470A6796u); /* 0x47046682: push 0x470a6796 */
     17     eax = MEM32(FS_BASE + (0)); /* 0x47046687: mov eax, dword ptr fs:[0] */
     18     PUSH32(esp, eax); /* 0x4704668D: push eax */
     19     MEM32(FS_BASE + (0)) = esp; /* 0x4704668E: mov dword ptr fs:[0], esp */
     20     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
     21     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     22     esp = esp - 8; /* 0x47046695: sub esp, 8 */
     23     _flag_k = FK_CMP;
     24     PUSH32(esp, ebp); /* 0x47046698: push ebp */
     25     ebp = ecx; /* 0x47046699: mov ebp, ecx */
     26     PUSH32(esp, esi); /* 0x4704669B: push esi */
     27     PUSH32(esp, edi); /* 0x4704669C: push edi */
     28     MEM32(esp + 0xC) = ebp; /* 0x4704669D: mov dword ptr [esp + 0xc], ebp */
     29     MEM32(ebp) = 0x470AD288u; /* 0x470466A1: mov dword ptr [ebp], 0x470ad288 */
     30     esi = ebp + 0x10; /* 0x470466A8: lea esi, [ebp + 0x10] */
     31     ecx = esi; /* 0x470466AB: mov ecx, esi */
     32     MEM32(esp + 0x1C) = 2; /* 0x470466AD: mov dword ptr [esp + 0x1c], 2 */
     33     RECOMP_ICALL(0x4707E7D0u); /* 0x470466B5: call 0x4707e7d0 */ /* not lifted */
     34     RECOMP_FLAGS_IN();
     35     MEM32(esp + 0x10) = esi; /* 0x470466BA: mov dword ptr [esp + 0x10], esi */
     36     eax = MEM32(esi + 0x4); /* 0x470466BE: mov eax, dword ptr [esi + 4] */
     37     edi = MEM32(eax); /* 0x470466C1: mov edi, dword ptr [eax] */
     38     /* cmp edi, eax */ /* 0x470466C3: cmp edi, eax */
     39     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
     40     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     41     _flag_k = FK_CMP;
     42     MEM8(esp + 0x1C) = (uint8_t)(3); /* 0x470466C5: mov byte ptr [esp + 0x1c], 3 */
     43     if (CMP_EQ(_flag_a, _flag_b)) goto L_470466F6; /* 0x470466CA: je 0x470466f6 */
     44 L_470466CC:
     45     PUSH32(esp, ebx); /* 0x470466CC: push ebx */
     46 L_470466CD:
     47     ebx = edi; /* 0x470466CD: mov ebx, edi */
     48     /* test ebx, ebx */ /* 0x470466CF: test ebx, ebx */
     49     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
     50     _cf = 0;
     51     _flag_k = FK_TEST;
     52     edi = MEM32(edi); /* 0x470466D1: mov edi, dword ptr [edi] */
     53     if (TEST_Z(_flag_a, _flag_b)) goto L_470466E7; /* 0x470466D3: je 0x470466e7 */
     54 L_470466D5:
     55     PUSH32(esp, 0); /* 0x470466D5: push 0 */
     56     ecx = ebx; /* 0x470466D7: mov ecx, ebx */
     57     RECOMP_ICALL(0x4708CFB0u); /* 0x470466D9: call 0x4708cfb0 */ /* not lifted */
     58     RECOMP_FLAGS_IN();
     59     ecx = MEM32(esi + 0xC); /* 0x470466DE: mov ecx, dword ptr [esi + 0xc] */
     60     eax = MEM32(ecx); /* 0x470466E1: mov eax, dword ptr [ecx] */
     61     PUSH32(esp, ebx); /* 0x470466E3: push ebx */
     62     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470466E4: call dword ptr [eax + 0xc] */
     63     RECOMP_FLAGS_IN();
     64 L_470466E7:
     65     ecx = MEM32(esi + 0x8); /* 0x470466E7: mov ecx, dword ptr [esi + 8] */
     66     eax = MEM32(esi + 0x4); /* 0x470466EA: mov eax, dword ptr [esi + 4] */
     67     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
     68     ecx = ecx - 1; /* 0x470466ED: dec ecx */
     69     _flag_k = FK_DEC;
     70     /* cmp edi, eax */ /* 0x470466EE: cmp edi, eax */
     71     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
     72     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     73     _flag_k = FK_CMP;
     74     MEM32(esi + 0x8) = ecx; /* 0x470466F0: mov dword ptr [esi + 8], ecx */
     75     RECOMP_BACKEDGE();
     76     if (CMP_NE(_flag_a, _flag_b)) goto L_470466CD; /* 0x470466F3: jne 0x470466cd */
     77 L_470466F5:
     78     ebx = POP32_VAL(esp); /* 0x470466F5: pop ebx */
     79 L_470466F6:
     80     eax = MEM32(esi + 0x4); /* 0x470466F6: mov eax, dword ptr [esi + 4] */
     81     MEM32(eax) = eax; /* 0x470466F9: mov dword ptr [eax], eax */
     82     eax = MEM32(esi + 0x4); /* 0x470466FB: mov eax, dword ptr [esi + 4] */
     83     /* test eax, eax */ /* 0x470466FE: test eax, eax */
     84     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     85     _cf = 0;
     86     _flag_k = FK_TEST;
     87     if (TEST_Z(_flag_a, _flag_b)) goto L_4704670B; /* 0x47046700: je 0x4704670b */
     88 L_47046702:
     89     ecx = MEM32(esi + 0xC); /* 0x47046702: mov ecx, dword ptr [esi + 0xc] */
     90     edx = MEM32(ecx); /* 0x47046705: mov edx, dword ptr [ecx] */
     91     PUSH32(esp, eax); /* 0x47046707: push eax */
     92     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47046708: call dword ptr [edx + 0xc] */
     93     RECOMP_FLAGS_IN();
     94 L_4704670B:
     95     ecx = ebp; /* 0x4704670B: mov ecx, ebp */
     96     MEM32(esi + 0x4) = 0; /* 0x4704670D: mov dword ptr [esi + 4], 0 */
     97     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47046714: mov dword ptr [esp + 0x1c], 0xffffffff */
     98     RECOMP_ICALL(0x4702A7B0u); /* 0x4704671C: call 0x4702a7b0 */ /* not lifted */
     99     RECOMP_FLAGS_IN();
    100     ecx = MEM32(esp + 0x14); /* 0x47046721: mov ecx, dword ptr [esp + 0x14] */
    101     edi = POP32_VAL(esp); /* 0x47046725: pop edi */
    102     esi = POP32_VAL(esp); /* 0x47046726: pop esi */
    103     ebp = POP32_VAL(esp); /* 0x47046727: pop ebp */
    104     MEM32(FS_BASE + (0)) = ecx; /* 0x47046728: mov dword ptr fs:[0], ecx */
    105     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    106     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    107     esp = esp + 0x14u; /* 0x4704672F: add esp, 0x14 */
    108     _flag_k = FK_ADD;
    109     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47046732: ret  */
    110     RECOMP_REGS_OUT();
    111 }
    112 
    113 void sub_47046740(void) {
    114     int _fpu_cmp = 0;
    115     uint32_t _cf = 0;
    116     int _df = 1;
    117     uint32_t _flag_k = FK_NONE;
    118     uint32_t _flag_a = 0, _flag_b = 0;
    119     uint32_t _itail_tgt = 0;
    120     RECOMP_REGS_LOCALS
    121     RECOMP_ENTER(0x47046740u);
    122 
    123 L_47046740:
    124     ecx = 0x4710E7D5u; /* 0x47046740: mov ecx, 0x4710e7d5 */
    125     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47046745: call dword ptr [0x470ac1c8] */
    126     RECOMP_FLAGS_IN();
    127     PUSH32(esp, 0x47046760u); /* 0x4704674B: push 0x47046760 */
    128     RECOMP_ICALL(0x470A32D9u); /* 0x47046750: call 0x470a32d9 */ /* not lifted */
    129     RECOMP_FLAGS_IN();
    130     ecx = POP32_VAL(esp); /* 0x47046755: pop ecx */
    131     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47046756: ret  */
    132     RECOMP_REGS_OUT();
    133 }
    134 
    135 void sub_47046760(void) {
    136     int _fpu_cmp = 0;
    137     uint32_t _cf = 0;
    138     int _df = 1;
    139     uint32_t _flag_k = FK_NONE;
    140     uint32_t _flag_a = 0, _flag_b = 0;
    141     uint32_t _itail_tgt = 0;
    142     RECOMP_REGS_LOCALS
    143     RECOMP_ENTER(0x47046760u);
    144 
    145 L_47046760:
    146     ecx = 0x4710E7D5u; /* 0x47046760: mov ecx, 0x4710e7d5 */
    147 L_47046765:
    148     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
    149     { RECOMP_REGS_OUT(); return; } /* end of function */
    150   _ljump:
    151     switch (_itail_tgt) {
    152       case 0x47046760u: goto L_47046760;
    153       case 0x47046765u: goto L_47046765;
    154       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    155     }
    156     RECOMP_REGS_OUT();
    157 }
    158 
    159 void sub_47046770(void) {
    160     int _fpu_cmp = 0;
    161     uint32_t _cf = 0;
    162     int _df = 1;
    163     uint32_t _flag_k = FK_NONE;
    164     uint32_t _flag_a = 0, _flag_b = 0;
    165     uint32_t _itail_tgt = 0;
    166     RECOMP_REGS_LOCALS
    167     RECOMP_ENTER(0x47046770u);
    168 
    169 L_47046770:
    170     ecx = 0x4710E7D4u; /* 0x47046770: mov ecx, 0x4710e7d4 */
    171     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47046775: call dword ptr [0x470ac1c4] */
    172     RECOMP_FLAGS_IN();
    173     PUSH32(esp, 0x47046790u); /* 0x4704677B: push 0x47046790 */
    174     RECOMP_ICALL(0x470A32D9u); /* 0x47046780: call 0x470a32d9 */ /* not lifted */
    175     RECOMP_FLAGS_IN();
    176     ecx = POP32_VAL(esp); /* 0x47046785: pop ecx */
    177     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47046786: ret  */
    178     RECOMP_REGS_OUT();
    179 }
    180 
    181 void sub_47046790(void) {
    182     int _fpu_cmp = 0;
    183     uint32_t _cf = 0;
    184     int _df = 1;
    185     uint32_t _flag_k = FK_NONE;
    186     uint32_t _flag_a = 0, _flag_b = 0;
    187     uint32_t _itail_tgt = 0;
    188     RECOMP_REGS_LOCALS
    189     RECOMP_ENTER(0x47046790u);
    190 
    191 L_47046790:
    192     ecx = 0x4710E7D4u; /* 0x47046790: mov ecx, 0x4710e7d4 */
    193 L_47046795:
    194     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
    195     { RECOMP_REGS_OUT(); return; } /* end of function */
    196   _ljump:
    197     switch (_itail_tgt) {
    198       case 0x47046790u: goto L_47046790;
    199       case 0x47046795u: goto L_47046795;
    200       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    201     }
    202     RECOMP_REGS_OUT();
    203 }
    204 
    205 void sub_470467A0(void) {
    206     int _fpu_cmp = 0;
    207     uint32_t _cf = 0;
    208     int _df = 1;
    209     uint32_t _flag_k = FK_NONE;
    210     uint32_t _flag_a = 0, _flag_b = 0;
    211     uint32_t _itail_tgt = 0;
    212     RECOMP_REGS_LOCALS
    213     RECOMP_ENTER(0x470467A0u);
    214 
    215 L_470467A0:
    216     MEM32(0x4710E7D0) = 0x47108754u; /* 0x470467A0: mov dword ptr [0x4710e7d0], 0x47108754 */
    217     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470467AA: ret  */
    218     RECOMP_REGS_OUT();
    219 }
    220 
    221 void sub_470467B0(void) {
    222     int _fpu_cmp = 0;
    223     uint32_t _cf = 0;
    224     int _df = 1;
    225     uint32_t _flag_k = FK_NONE;
    226     uint32_t _flag_a = 0, _flag_b = 0;
    227     uint32_t _itail_tgt = 0;
    228     RECOMP_REGS_LOCALS
    229     RECOMP_ENTER(0x470467B0u);
    230 
    231 L_470467B0:
    232     edx = MEM32(esp + 0xC); /* 0x470467B0: mov edx, dword ptr [esp + 0xc] */
    233     eax = ecx; /* 0x470467B4: mov eax, ecx */
    234     ecx = MEM32(esp + 0x4); /* 0x470467B6: mov ecx, dword ptr [esp + 4] */
    235     PUSH32(esp, ebx); /* 0x470467BA: push ebx */
    236     ebx = MEM32(esp + 0x18); /* 0x470467BB: mov ebx, dword ptr [esp + 0x18] */
    237     MEM32(eax + 0x4) = ecx; /* 0x470467BF: mov dword ptr [eax + 4], ecx */
    238     ecx = MEM32(esp + 0x20); /* 0x470467C2: mov ecx, dword ptr [esp + 0x20] */
    239     PUSH32(esp, ebp); /* 0x470467C6: push ebp */
    240     PUSH32(esp, esi); /* 0x470467C7: push esi */
    241     MEM32(eax + 0x1C) = ecx; /* 0x470467C8: mov dword ptr [eax + 0x1c], ecx */
    242     ecx = MEM32(esp + 0x2C); /* 0x470467CB: mov ecx, dword ptr [esp + 0x2c] */
    243     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    244     esi = 0; /* 0x470467CF: xor esi, esi */
    245     _cf = 0;
    246     _flag_k = FK_TEST;
    247     /* cmp ecx, esi */ /* 0x470467D1: cmp ecx, esi */
    248     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
    249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    250     _flag_k = FK_CMP;
    251     PUSH32(esp, edi); /* 0x470467D3: push edi */
    252     MEM32(eax + 0x14) = edx; /* 0x470467D4: mov dword ptr [eax + 0x14], edx */
    253     MEM32(eax + 0x18) = ebx; /* 0x470467D7: mov dword ptr [eax + 0x18], ebx */
    254     if (CMP_NE(_flag_a, _flag_b)) goto L_470467EB; /* 0x470467DA: jne 0x470467eb */
    255 L_470467DC:
    256     MEM32(eax + 0x8) = 1; /* 0x470467DC: mov dword ptr [eax + 8], 1 */
    257     MEM32(eax + 0xC) = esi; /* 0x470467E3: mov dword ptr [eax + 0xc], esi */
    258     MEM32(eax + 0x10) = esi; /* 0x470467E6: mov dword ptr [eax + 0x10], esi */
    259     goto L_470467F9; /* 0x470467E9: jmp 0x470467f9 */
    260 L_470467EB:
    261     MEM32(eax + 0x8) = esi; /* 0x470467EB: mov dword ptr [eax + 8], esi */
    262     esi = MEM32(ecx); /* 0x470467EE: mov esi, dword ptr [ecx] */
    263     MEM32(eax + 0xC) = esi; /* 0x470467F0: mov dword ptr [eax + 0xc], esi */
    264     ecx = MEM32(ecx + 0x4); /* 0x470467F3: mov ecx, dword ptr [ecx + 4] */
    265     MEM32(eax + 0x10) = ecx; /* 0x470467F6: mov dword ptr [eax + 0x10], ecx */
    266 L_470467F9:
    267     ecx = edx; /* 0x470467F9: mov ecx, edx */
    268     if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x470467FB: shr ecx, 1 */
    269     if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    270     ecx = ecx >> 1u; /* 0x470467FB: shr ecx, 1 */
    271     edi = eax + 0x20; /* 0x470467FD: lea edi, [eax + 0x20] */
    272     ecx = edi + ecx * 2; /* 0x47046800: lea ecx, [edi + ecx*2] */
    273     MEM32(eax + 0x644) = ecx; /* 0x47046803: mov dword ptr [eax + 0x644], ecx */
    274     esi = ebx; /* 0x47046809: mov esi, ebx */
    275     if (1u) _cf = (((esi) >> 0) & 1u); /* 0x4704680B: shr esi, 1 */
    276     if (1u) { _flag_a = recomp_flags_pack((esi >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    277     esi = esi >> 1u; /* 0x4704680B: shr esi, 1 */
    278     ecx = ecx + esi * 2; /* 0x4704680D: lea ecx, [ecx + esi*2] */
    279     esi = MEM32(esp + 0x18); /* 0x47046810: mov esi, dword ptr [esp + 0x18] */
    280     MEM32(eax + 0x648) = ecx; /* 0x47046814: mov dword ptr [eax + 0x648], ecx */
    281     MEM32(eax + 0x640) = edi; /* 0x4704681A: mov dword ptr [eax + 0x640], edi */
    282     ecx = edx; /* 0x47046820: mov ecx, edx */
    283     ebp = ecx; /* 0x47046822: mov ebp, ecx */
    284     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47046824: shr ecx, 2 */
    285     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    286     ecx = ecx >> 2u; /* 0x47046824: shr ecx, 2 */
    287     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47046827: 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; }
    288     ecx = ebp; /* 0x47046829: mov ecx, ebp */
    289     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
    290     ecx = ecx & 3; /* 0x4704682B: and ecx, 3 */
    291     _cf = 0;
    292     _flag_k = FK_TEST;
    293     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4704682E: 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; }
    294     edi = MEM32(eax + 0x644); /* 0x47046830: mov edi, dword ptr [eax + 0x644] */
    295     esi = MEM32(esp + 0x20); /* 0x47046836: mov esi, dword ptr [esp + 0x20] */
    296     ecx = ebx; /* 0x4704683A: mov ecx, ebx */
    297     ebp = ecx; /* 0x4704683C: mov ebp, ecx */
    298     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4704683E: shr ecx, 2 */
    299     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    300     ecx = ecx >> 2u; /* 0x4704683E: shr ecx, 2 */
    301     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47046841: 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; }
    302     ecx = ebp; /* 0x47046843: mov ecx, ebp */
    303     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
    304     ecx = ecx & 3; /* 0x47046845: and ecx, 3 */
    305     _cf = 0;
    306     _flag_k = FK_TEST;
    307     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47046848: 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; }
    308     ecx = MEM32(esp + 0x2C); /* 0x4704684A: mov ecx, dword ptr [esp + 0x2c] */
    309     edi = MEM32(eax + 0x648); /* 0x4704684E: mov edi, dword ptr [eax + 0x648] */
    310     esi = MEM32(esp + 0x28); /* 0x47046854: mov esi, dword ptr [esp + 0x28] */
    311     ebp = ecx; /* 0x47046858: mov ebp, ecx */
    312     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4704685A: shr ecx, 2 */
    313     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    314     ecx = ecx >> 2u; /* 0x4704685A: shr ecx, 2 */
    315     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4704685D: 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; }
    316     ecx = ebp; /* 0x4704685F: mov ecx, ebp */
    317     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
    318     ecx = ecx & 3; /* 0x47046861: and ecx, 3 */
    319     _cf = 0;
    320     _flag_k = FK_TEST;
    321     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47046864: 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; }
    322     edi = POP32_VAL(esp); /* 0x47046866: pop edi */
    323     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
    324     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    325     edx = edx + ebx; /* 0x47046867: add edx, ebx */
    326     _flag_k = FK_ADD;
    327     ecx = ebp; /* 0x47046869: mov ecx, ebp */
    328     esi = POP32_VAL(esp); /* 0x4704686B: pop esi */
    329     edx = edx + ecx + 0x22; /* 0x4704686C: lea edx, [edx + ecx + 0x22] */
    330     ebp = POP32_VAL(esp); /* 0x47046870: pop ebp */
    331     MEM32(eax) = edx; /* 0x47046871: mov dword ptr [eax], edx */
    332     ebx = POP32_VAL(esp); /* 0x47046873: pop ebx */
    333     RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x47046874: ret 0x20 */
    334     RECOMP_REGS_OUT();
    335 }
    336 
    337 void sub_47046880(void) {
    338     int _fpu_cmp = 0;
    339     uint32_t _cf = 0;
    340     int _df = 1;
    341     uint32_t _flag_k = FK_NONE;
    342     uint32_t _flag_a = 0, _flag_b = 0;
    343     uint32_t _itail_tgt = 0;
    344     RECOMP_REGS_LOCALS
    345     RECOMP_ENTER(0x47046880u);
    346 
    347 L_47046880:
    348     MEM32(ecx) = 0x640u; /* 0x47046880: mov dword ptr [ecx], 0x640 */
    349     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47046886: ret  */
    350     RECOMP_REGS_OUT();
    351 }
    352 
    353 void sub_47046890(void) {
    354     int _fpu_cmp = 0;
    355     uint32_t _cf = 0;
    356     int _df = 1;
    357     uint32_t _flag_k = FK_NONE;
    358     uint32_t _flag_a = 0, _flag_b = 0;
    359     uint32_t _itail_tgt = 0;
    360     RECOMP_REGS_LOCALS
    361     RECOMP_ENTER(0x47046890u);
    362 
    363 L_47046890:
    364     eax = MEM32(esp + 0x4); /* 0x47046890: mov eax, dword ptr [esp + 4] */
    365     MEM32(ecx + 0x18) = eax; /* 0x47046894: mov dword ptr [ecx + 0x18], eax */
    366     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47046897: ret 4 */
    367     RECOMP_REGS_OUT();
    368 }
    369 
    370 void sub_470468A0(void) {
    371     int _fpu_cmp = 0;
    372     uint32_t _cf = 0;
    373     int _df = 1;
    374     uint32_t _flag_k = FK_NONE;
    375     uint32_t _flag_a = 0, _flag_b = 0;
    376     uint32_t _itail_tgt = 0;
    377     RECOMP_REGS_LOCALS
    378     RECOMP_ENTER(0x470468A0u);
    379 
    380 L_470468A0:
    381     eax = MEM32(esp + 0x4); /* 0x470468A0: mov eax, dword ptr [esp + 4] */
    382     MEM32(ecx + 0x1C) = eax; /* 0x470468A4: mov dword ptr [ecx + 0x1c], eax */
    383     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470468A7: ret 4 */
    384     RECOMP_REGS_OUT();
    385 }
    386 
    387 void sub_470468B0(void) {
    388     int _fpu_cmp = 0;
    389     uint32_t _cf = 0;
    390     int _df = 1;
    391     uint32_t _flag_k = FK_NONE;
    392     uint32_t _flag_a = 0, _flag_b = 0;
    393     uint32_t _itail_tgt = 0;
    394     RECOMP_REGS_LOCALS
    395     RECOMP_ENTER(0x470468B0u);
    396 
    397 L_470468B0:
    398     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    399     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    400     esp = esp - 8; /* 0x470468B0: sub esp, 8 */
    401     _flag_k = FK_CMP;
    402     eax = MEM32(ecx + 0xC); /* 0x470468B3: mov eax, dword ptr [ecx + 0xc] */
    403     ecx = MEM32(ecx + 0x10); /* 0x470468B6: mov ecx, dword ptr [ecx + 0x10] */
    404     MEM32(esp + 0x4) = ecx; /* 0x470468B9: mov dword ptr [esp + 4], ecx */
    405     ecx = esp; /* 0x470468BD: lea ecx, [esp] */
    406     MEM32(esp) = eax; /* 0x470468C1: mov dword ptr [esp], eax */
    407     RECOMP_ICALL(0x470543C0u); /* 0x470468C5: call 0x470543c0 */ /* not lifted */
    408     RECOMP_FLAGS_IN();
    409     eax = MEM32(esp + 0xC); /* 0x470468CA: mov eax, dword ptr [esp + 0xc] */
    410     edx = MEM32(esp); /* 0x470468CE: mov edx, dword ptr [esp] */
    411     ecx = MEM32(esp + 0x4); /* 0x470468D2: mov ecx, dword ptr [esp + 4] */
    412     MEM32(eax) = edx; /* 0x470468D6: mov dword ptr [eax], edx */
    413     MEM32(eax + 0x4) = ecx; /* 0x470468D8: mov dword ptr [eax + 4], ecx */
    414     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    415     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    416     esp = esp + 8; /* 0x470468DB: add esp, 8 */
    417     _flag_k = FK_ADD;
    418     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470468DE: ret 4 */
    419     RECOMP_REGS_OUT();
    420 }
    421 
    422 void sub_470468F0(void) {
    423     int _fpu_cmp = 0;
    424     uint32_t _cf = 0;
    425     int _df = 1;
    426     uint32_t _flag_k = FK_NONE;
    427     uint32_t _flag_a = 0, _flag_b = 0;
    428     uint32_t _itail_tgt = 0;
    429     RECOMP_REGS_LOCALS
    430     RECOMP_ENTER(0x470468F0u);
    431 
    432 L_470468F0:
    433     eax = MEM32(esp + 0x4); /* 0x470468F0: mov eax, dword ptr [esp + 4] */
    434     edx = MEM32(esp + 0x8); /* 0x470468F4: mov edx, dword ptr [esp + 8] */
    435     MEM32(ecx + 0xC) = eax; /* 0x470468F8: mov dword ptr [ecx + 0xc], eax */
    436     MEM32(ecx + 0x10) = edx; /* 0x470468FB: mov dword ptr [ecx + 0x10], edx */
    437     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470468FE: ret 8 */
    438     RECOMP_REGS_OUT();
    439 }
    440 
    441 void sub_47046910(void) {
    442     int _fpu_cmp = 0;
    443     uint32_t _cf = 0;
    444     int _df = 1;
    445     uint32_t _flag_k = FK_NONE;
    446     uint32_t _flag_a = 0, _flag_b = 0;
    447     uint32_t _itail_tgt = 0;
    448     RECOMP_REGS_LOCALS
    449     RECOMP_ENTER(0x47046910u);
    450 
    451 L_47046910:
    452     eax = MEM32(ecx + 0x640); /* 0x47046910: mov eax, dword ptr [ecx + 0x640] */
    453     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47046916: ret  */
    454     RECOMP_REGS_OUT();
    455 }
    456 
    457 void sub_47046920(void) {
    458     int _fpu_cmp = 0;
    459     uint32_t _cf = 0;
    460     int _df = 1;
    461     uint32_t _flag_k = FK_NONE;
    462     uint32_t _flag_a = 0, _flag_b = 0;
    463     uint32_t _itail_tgt = 0;
    464     RECOMP_REGS_LOCALS
    465     RECOMP_ENTER(0x47046920u);
    466 
    467 L_47046920:
    468     eax = ecx; /* 0x47046920: mov eax, ecx */
    469     ecx = MEM32(eax + 0x14); /* 0x47046922: mov ecx, dword ptr [eax + 0x14] */
    470     PUSH32(esp, esi); /* 0x47046925: push esi */
    471     esi = MEM32(esp + 0x8); /* 0x47046926: mov esi, dword ptr [esp + 8] */
    472     PUSH32(esp, edi); /* 0x4704692A: push edi */
    473     edi = MEM32(eax + 0x640); /* 0x4704692B: mov edi, dword ptr [eax + 0x640] */
    474     eax = ecx; /* 0x47046931: mov eax, ecx */
    475     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47046933: shr ecx, 2 */
    476     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    477     ecx = ecx >> 2u; /* 0x47046933: shr ecx, 2 */
    478     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47046936: 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; }
    479     ecx = eax; /* 0x47046938: mov ecx, eax */
    480     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
    481     ecx = ecx & 3; /* 0x4704693A: and ecx, 3 */
    482     _cf = 0;
    483     _flag_k = FK_TEST;
    484     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4704693D: 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; }
    485     edi = POP32_VAL(esp); /* 0x4704693F: pop edi */
    486     esi = POP32_VAL(esp); /* 0x47046940: pop esi */
    487     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47046941: ret 4 */
    488     RECOMP_REGS_OUT();
    489 }
    490 
    491 void sub_47046950(void) {
    492     int _fpu_cmp = 0;
    493     uint32_t _cf = 0;
    494     int _df = 1;
    495     uint32_t _flag_k = FK_NONE;
    496     uint32_t _flag_a = 0, _flag_b = 0;
    497     uint32_t _itail_tgt = 0;
    498     RECOMP_REGS_LOCALS
    499     RECOMP_ENTER(0x47046950u);
    500 
    501 L_47046950:
    502     eax = MEM32(ecx + 0x644); /* 0x47046950: mov eax, dword ptr [ecx + 0x644] */
    503     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47046956: ret  */
    504     RECOMP_REGS_OUT();
    505 }
    506 
    507 void sub_47046960(void) {
    508     int _fpu_cmp = 0;
    509     uint32_t _cf = 0;
    510     int _df = 1;
    511     uint32_t _flag_k = FK_NONE;
    512     uint32_t _flag_a = 0, _flag_b = 0;
    513     uint32_t _itail_tgt = 0;
    514     RECOMP_REGS_LOCALS
    515     RECOMP_ENTER(0x47046960u);
    516 
    517 L_47046960:
    518     eax = ecx; /* 0x47046960: mov eax, ecx */
    519     ecx = MEM32(eax + 0x18); /* 0x47046962: mov ecx, dword ptr [eax + 0x18] */
    520     PUSH32(esp, esi); /* 0x47046965: push esi */
    521     esi = MEM32(esp + 0x8); /* 0x47046966: mov esi, dword ptr [esp + 8] */
    522     PUSH32(esp, edi); /* 0x4704696A: push edi */
    523     edi = MEM32(eax + 0x644); /* 0x4704696B: mov edi, dword ptr [eax + 0x644] */
    524     eax = ecx; /* 0x47046971: mov eax, ecx */
    525     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47046973: shr ecx, 2 */
    526     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    527     ecx = ecx >> 2u; /* 0x47046973: shr ecx, 2 */
    528     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47046976: 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; }
    529     ecx = eax; /* 0x47046978: mov ecx, eax */
    530     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
    531     ecx = ecx & 3; /* 0x4704697A: and ecx, 3 */
    532     _cf = 0;
    533     _flag_k = FK_TEST;
    534     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4704697D: 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; }
    535     edi = POP32_VAL(esp); /* 0x4704697F: pop edi */
    536     esi = POP32_VAL(esp); /* 0x47046980: pop esi */
    537     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47046981: ret 4 */
    538     RECOMP_REGS_OUT();
    539 }
    540 
    541 void sub_47046990(void) {
    542     int _fpu_cmp = 0;
    543     uint32_t _cf = 0;
    544     int _df = 1;
    545     uint32_t _flag_k = FK_NONE;
    546     uint32_t _flag_a = 0, _flag_b = 0;
    547     uint32_t _itail_tgt = 0;
    548     RECOMP_REGS_LOCALS
    549     RECOMP_ENTER(0x47046990u);
    550 
    551 L_47046990:
    552     eax = MEM32(ecx + 0x648); /* 0x47046990: mov eax, dword ptr [ecx + 0x648] */
    553     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47046996: ret  */
    554     RECOMP_REGS_OUT();
    555 }
    556 
    557 void sub_470469A0(void) {
    558     int _fpu_cmp = 0;
    559     uint32_t _cf = 0;
    560     int _df = 1;
    561     uint32_t _flag_k = FK_NONE;
    562     uint32_t _flag_a = 0, _flag_b = 0;
    563     uint32_t _itail_tgt = 0;
    564     RECOMP_REGS_LOCALS
    565     RECOMP_ENTER(0x470469A0u);
    566 
    567 L_470469A0:
    568     eax = MEM32(esp + 0x4); /* 0x470469A0: mov eax, dword ptr [esp + 4] */
    569     ecx = MEM32(ecx + 0x648); /* 0x470469A4: mov ecx, dword ptr [ecx + 0x648] */
    570     PUSH32(esp, 0x105u); /* 0x470469AA: push 0x105 */
    571     PUSH32(esp, eax); /* 0x470469AF: push eax */
    572     PUSH32(esp, ecx); /* 0x470469B0: push ecx */
    573     RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x470469B1: call dword ptr [0x470ac22c] */
    574     RECOMP_FLAGS_IN();
    575     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    576     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    577     esp = esp + 0xCu; /* 0x470469B7: add esp, 0xc */
    578     _flag_k = FK_ADD;
    579     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470469BA: ret 4 */
    580     RECOMP_REGS_OUT();
    581 }
    582 
    583 void sub_470469C0(void) {
    584     int _fpu_cmp = 0;
    585     uint32_t _cf = 0;
    586     int _df = 1;
    587     uint32_t _flag_k = FK_NONE;
    588     uint32_t _flag_a = 0, _flag_b = 0;
    589     uint32_t _itail_tgt = 0;
    590     RECOMP_REGS_LOCALS
    591     RECOMP_ENTER(0x470469C0u);
    592 
    593 L_470469C0:
    594     PUSH32(esp, ecx); /* 0x470469C0: push ecx */
    595     PUSH32(esp, esi); /* 0x470469C1: push esi */
    596     esi = ecx; /* 0x470469C2: mov esi, ecx */
    597     eax = MEM32(esi); /* 0x470469C4: mov eax, dword ptr [esi] */
    598     edx = MEM32(esi + 0x18); /* 0x470469C6: mov edx, dword ptr [esi + 0x18] */
    599     MEM32(esp + 0x4) = eax; /* 0x470469C9: mov dword ptr [esp + 4], eax */
    600     eax = MEM32(esi + 0x14); /* 0x470469CD: mov eax, dword ptr [esi + 0x14] */
    601     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    603     eax = eax + edx; /* 0x470469D0: add eax, edx */
    604     _flag_k = FK_ADD;
    605     if (1u) _cf = (((eax) >> 0) & 1u); /* 0x470469D2: shr eax, 1 */
    606     if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    607     eax = eax >> 1u; /* 0x470469D2: shr eax, 1 */
    608     PUSH32(esp, edi); /* 0x470469D4: push edi */
    609     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470469F7; /* 0x470469D5: je 0x470469f7 */
    610 L_470469D7:
    611     PUSH32(esp, ebx); /* 0x470469D7: push ebx */
    612     PUSH32(esp, ebp); /* 0x470469D8: push ebp */
    613     ebp = MEM32(0x470AC4C0); /* 0x470469D9: mov ebp, dword ptr [0x470ac4c0] */
    614     edi = esi + 0x20; /* 0x470469DF: lea edi, [esi + 0x20] */
    615     ebx = eax; /* 0x470469E2: mov ebx, eax */
    616 L_470469E4:
    617     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    618     ecx = 0; /* 0x470469E4: xor ecx, ecx */
    619     _cf = 0;
    620     _flag_k = FK_TEST;
    621     SET_LO16(ecx, MEM16(edi)); /* 0x470469E6: mov cx, word ptr [edi] */
    622     PUSH32(esp, ecx); /* 0x470469E9: push ecx */
    623     RECOMP_ICALL(ebp); /* 0x470469EA: call ebp */
    624     RECOMP_FLAGS_IN();
    625     MEM16(edi) = (uint16_t)(LO16(eax)); /* 0x470469EC: mov word ptr [edi], ax */
    626     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
    627     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    628     edi = edi + 2; /* 0x470469EF: add edi, 2 */
    629     _flag_k = FK_ADD;
    630     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
    631     ebx = ebx - 1; /* 0x470469F2: dec ebx */
    632     _flag_k = FK_DEC;
    633     RECOMP_BACKEDGE();
    634     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_470469E4; /* 0x470469F3: jne 0x470469e4 */
    635 L_470469F5:
    636     ebp = POP32_VAL(esp); /* 0x470469F5: pop ebp */
    637     ebx = POP32_VAL(esp); /* 0x470469F6: pop ebx */
    638 L_470469F7:
    639     edx = MEM32(esp + 0x10); /* 0x470469F7: mov edx, dword ptr [esp + 0x10] */
    640     edi = MEM32(0x470AC4AC); /* 0x470469FB: mov edi, dword ptr [0x470ac4ac] */
    641     MEM32(edx) = esi; /* 0x47046A01: mov dword ptr [edx], esi */
    642     eax = MEM32(esi + 0x8); /* 0x47046A03: mov eax, dword ptr [esi + 8] */
    643     PUSH32(esp, eax); /* 0x47046A06: push eax */
    644     RECOMP_ICALL(edi); /* 0x47046A07: call edi */
    645     RECOMP_FLAGS_IN();
    646     ecx = MEM32(esi + 0x10); /* 0x47046A09: mov ecx, dword ptr [esi + 0x10] */
    647     PUSH32(esp, ecx); /* 0x47046A0C: push ecx */
    648     MEM32(esi + 0x8) = eax; /* 0x47046A0D: mov dword ptr [esi + 8], eax */
    649     RECOMP_ICALL(edi); /* 0x47046A10: call edi */
    650     RECOMP_FLAGS_IN();
    651     edx = MEM32(esi + 0xC); /* 0x47046A12: mov edx, dword ptr [esi + 0xc] */
    652     PUSH32(esp, edx); /* 0x47046A15: push edx */
    653     MEM32(esi + 0x10) = eax; /* 0x47046A16: mov dword ptr [esi + 0x10], eax */
    654     RECOMP_ICALL(edi); /* 0x47046A19: call edi */
    655     RECOMP_FLAGS_IN();
    656     MEM32(esi + 0xC) = eax; /* 0x47046A1B: mov dword ptr [esi + 0xc], eax */
    657     eax = MEM32(esi); /* 0x47046A1E: mov eax, dword ptr [esi] */
    658     PUSH32(esp, eax); /* 0x47046A20: push eax */
    659     RECOMP_ICALL(edi); /* 0x47046A21: call edi */
    660     RECOMP_FLAGS_IN();
    661     ecx = MEM32(esi + 0x4); /* 0x47046A23: mov ecx, dword ptr [esi + 4] */
    662     PUSH32(esp, ecx); /* 0x47046A26: push ecx */
    663     MEM32(esi) = eax; /* 0x47046A27: mov dword ptr [esi], eax */
    664     RECOMP_ICALL(edi); /* 0x47046A29: call edi */
    665     RECOMP_FLAGS_IN();
    666     edx = MEM32(esi + 0x14); /* 0x47046A2B: mov edx, dword ptr [esi + 0x14] */
    667     PUSH32(esp, edx); /* 0x47046A2E: push edx */
    668     MEM32(esi + 0x4) = eax; /* 0x47046A2F: mov dword ptr [esi + 4], eax */
    669     RECOMP_ICALL(edi); /* 0x47046A32: call edi */
    670     RECOMP_FLAGS_IN();
    671     MEM32(esi + 0x14) = eax; /* 0x47046A34: mov dword ptr [esi + 0x14], eax */
    672     eax = MEM32(esi + 0x18); /* 0x47046A37: mov eax, dword ptr [esi + 0x18] */
    673     PUSH32(esp, eax); /* 0x47046A3A: push eax */
    674     RECOMP_ICALL(edi); /* 0x47046A3B: call edi */
    675     RECOMP_FLAGS_IN();
    676     ecx = MEM32(esi + 0x1C); /* 0x47046A3D: mov ecx, dword ptr [esi + 0x1c] */
    677     PUSH32(esp, ecx); /* 0x47046A40: push ecx */
    678     MEM32(esi + 0x18) = eax; /* 0x47046A41: mov dword ptr [esi + 0x18], eax */
    679     RECOMP_ICALL(edi); /* 0x47046A44: call edi */
    680     RECOMP_FLAGS_IN();
    681     MEM32(esi + 0x1C) = eax; /* 0x47046A46: mov dword ptr [esi + 0x1c], eax */
    682     eax = MEM32(esp + 0x8); /* 0x47046A49: mov eax, dword ptr [esp + 8] */
    683     edi = POP32_VAL(esp); /* 0x47046A4D: pop edi */
    684     esi = POP32_VAL(esp); /* 0x47046A4E: pop esi */
    685     ecx = POP32_VAL(esp); /* 0x47046A4F: pop ecx */
    686     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47046A50: ret 4 */
    687     RECOMP_REGS_OUT();
    688 }
    689 
    690 void sub_47046A60(void) {
    691     int _fpu_cmp = 0;
    692     uint32_t _cf = 0;
    693     int _df = 1;
    694     uint32_t _flag_k = FK_NONE;
    695     uint32_t _flag_a = 0, _flag_b = 0;
    696     uint32_t _itail_tgt = 0;
    697     RECOMP_REGS_LOCALS
    698     RECOMP_ENTER(0x47046A60u);
    699 
    700 L_47046A60:
    701     PUSH32(esp, esi); /* 0x47046A60: push esi */
    702     esi = ecx; /* 0x47046A61: mov esi, ecx */
    703     eax = MEM32(esi + 0x8); /* 0x47046A63: mov eax, dword ptr [esi + 8] */
    704     PUSH32(esp, edi); /* 0x47046A66: push edi */
    705     edi = MEM32(0x470AC4B0); /* 0x47046A67: mov edi, dword ptr [0x470ac4b0] */
    706     PUSH32(esp, eax); /* 0x47046A6D: push eax */
    707     RECOMP_ICALL(edi); /* 0x47046A6E: call edi */
    708     RECOMP_FLAGS_IN();
    709     ecx = MEM32(esi + 0x10); /* 0x47046A70: mov ecx, dword ptr [esi + 0x10] */
    710     PUSH32(esp, ecx); /* 0x47046A73: push ecx */
    711     MEM32(esi + 0x8) = eax; /* 0x47046A74: mov dword ptr [esi + 8], eax */
    712     RECOMP_ICALL(edi); /* 0x47046A77: call edi */
    713     RECOMP_FLAGS_IN();
    714     edx = MEM32(esi + 0xC); /* 0x47046A79: mov edx, dword ptr [esi + 0xc] */
    715     PUSH32(esp, edx); /* 0x47046A7C: push edx */
    716     MEM32(esi + 0x10) = eax; /* 0x47046A7D: mov dword ptr [esi + 0x10], eax */
    717     RECOMP_ICALL(edi); /* 0x47046A80: call edi */
    718     RECOMP_FLAGS_IN();
    719     MEM32(esi + 0xC) = eax; /* 0x47046A82: mov dword ptr [esi + 0xc], eax */
    720     eax = MEM32(esi); /* 0x47046A85: mov eax, dword ptr [esi] */
    721     PUSH32(esp, eax); /* 0x47046A87: push eax */
    722     RECOMP_ICALL(edi); /* 0x47046A88: call edi */
    723     RECOMP_FLAGS_IN();
    724     ecx = MEM32(esi + 0x4); /* 0x47046A8A: mov ecx, dword ptr [esi + 4] */
    725     PUSH32(esp, ecx); /* 0x47046A8D: push ecx */
    726     MEM32(esi) = eax; /* 0x47046A8E: mov dword ptr [esi], eax */
    727     RECOMP_ICALL(edi); /* 0x47046A90: call edi */
    728     RECOMP_FLAGS_IN();
    729     edx = MEM32(esi + 0x14); /* 0x47046A92: mov edx, dword ptr [esi + 0x14] */
    730     PUSH32(esp, edx); /* 0x47046A95: push edx */
    731     MEM32(esi + 0x4) = eax; /* 0x47046A96: mov dword ptr [esi + 4], eax */
    732     RECOMP_ICALL(edi); /* 0x47046A99: call edi */
    733     RECOMP_FLAGS_IN();
    734     MEM32(esi + 0x14) = eax; /* 0x47046A9B: mov dword ptr [esi + 0x14], eax */
    735     eax = MEM32(esi + 0x18); /* 0x47046A9E: mov eax, dword ptr [esi + 0x18] */
    736     PUSH32(esp, eax); /* 0x47046AA1: push eax */
    737     RECOMP_ICALL(edi); /* 0x47046AA2: call edi */
    738     RECOMP_FLAGS_IN();
    739     ecx = MEM32(esi + 0x1C); /* 0x47046AA4: mov ecx, dword ptr [esi + 0x1c] */
    740     PUSH32(esp, ecx); /* 0x47046AA7: push ecx */
    741     MEM32(esi + 0x18) = eax; /* 0x47046AA8: mov dword ptr [esi + 0x18], eax */
    742     RECOMP_ICALL(edi); /* 0x47046AAB: call edi */
    743     RECOMP_FLAGS_IN();
    744     edx = MEM32(esi + 0x18); /* 0x47046AAD: mov edx, dword ptr [esi + 0x18] */
    745     MEM32(esi + 0x1C) = eax; /* 0x47046AB0: mov dword ptr [esi + 0x1c], eax */
    746     eax = MEM32(esi + 0x14); /* 0x47046AB3: mov eax, dword ptr [esi + 0x14] */
    747     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    748     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    749     eax = eax + edx; /* 0x47046AB6: add eax, edx */
    750     _flag_k = FK_ADD;
    751     if (1u) _cf = (((eax) >> 0) & 1u); /* 0x47046AB8: shr eax, 1 */
    752     if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    753     eax = eax >> 1u; /* 0x47046AB8: shr eax, 1 */
    754     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046ADC; /* 0x47046ABA: je 0x47046adc */
    755 L_47046ABC:
    756     PUSH32(esp, ebx); /* 0x47046ABC: push ebx */
    757     PUSH32(esp, ebp); /* 0x47046ABD: push ebp */
    758     ebp = MEM32(0x470AC460); /* 0x47046ABE: mov ebp, dword ptr [0x470ac460] */
    759     edi = esi + 0x20; /* 0x47046AC4: lea edi, [esi + 0x20] */
    760     ebx = eax; /* 0x47046AC7: mov ebx, eax */
    761 L_47046AC9:
    762     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    763     edx = 0; /* 0x47046AC9: xor edx, edx */
    764     _cf = 0;
    765     _flag_k = FK_TEST;
    766     SET_LO16(edx, MEM16(edi)); /* 0x47046ACB: mov dx, word ptr [edi] */
    767     PUSH32(esp, edx); /* 0x47046ACE: push edx */
    768     RECOMP_ICALL(ebp); /* 0x47046ACF: call ebp */
    769     RECOMP_FLAGS_IN();
    770     MEM16(edi) = (uint16_t)(LO16(eax)); /* 0x47046AD1: mov word ptr [edi], ax */
    771     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
    772     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    773     edi = edi + 2; /* 0x47046AD4: add edi, 2 */
    774     _flag_k = FK_ADD;
    775     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
    776     ebx = ebx - 1; /* 0x47046AD7: dec ebx */
    777     _flag_k = FK_DEC;
    778     RECOMP_BACKEDGE();
    779     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_47046AC9; /* 0x47046AD8: jne 0x47046ac9 */
    780 L_47046ADA:
    781     ebp = POP32_VAL(esp); /* 0x47046ADA: pop ebp */
    782     ebx = POP32_VAL(esp); /* 0x47046ADB: pop ebx */
    783 L_47046ADC:
    784     ecx = MEM32(esi + 0x14); /* 0x47046ADC: mov ecx, dword ptr [esi + 0x14] */
    785     edx = MEM32(esi + 0x18); /* 0x47046ADF: mov edx, dword ptr [esi + 0x18] */
    786     eax = esi + 0x20; /* 0x47046AE2: lea eax, [esi + 0x20] */
    787     MEM32(esi + 0x640) = eax; /* 0x47046AE5: mov dword ptr [esi + 0x640], eax */
    788     if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x47046AEB: shr ecx, 1 */
    789     if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    790     ecx = ecx >> 1u; /* 0x47046AEB: shr ecx, 1 */
    791     eax = eax + ecx * 2; /* 0x47046AED: lea eax, [eax + ecx*2] */
    792     ecx = MEM32(esi + 0x1C); /* 0x47046AF0: mov ecx, dword ptr [esi + 0x1c] */
    793     MEM32(esi + 0x644) = eax; /* 0x47046AF3: mov dword ptr [esi + 0x644], eax */
    794     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x47046AF9: shr edx, 1 */
    795     if (1u) { _flag_a = recomp_flags_pack((edx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    796     edx = edx >> 1u; /* 0x47046AF9: shr edx, 1 */
    797     eax = eax + edx * 2; /* 0x47046AFB: lea eax, [eax + edx*2] */
    798     MEM32(esi + 0x648) = eax; /* 0x47046AFE: mov dword ptr [esi + 0x648], eax */
    799     edi = POP32_VAL(esp); /* 0x47046B04: pop edi */
    800     MEM8(eax + ecx) = (uint8_t)(0); /* 0x47046B05: mov byte ptr [eax + ecx], 0 */
    801     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    802     eax = 0; /* 0x47046B09: xor eax, eax */
    803     _cf = 0;
    804     _flag_k = FK_TEST;
    805     esi = POP32_VAL(esp); /* 0x47046B0B: pop esi */
    806     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47046B0C: ret  */
    807     RECOMP_REGS_OUT();
    808 }
    809 
    810 void sub_47046B10(void) {
    811     int _fpu_cmp = 0;
    812     uint32_t _cf = 0;
    813     int _df = 1;
    814     uint32_t _flag_k = FK_NONE;
    815     uint32_t _flag_a = 0, _flag_b = 0;
    816     uint32_t _itail_tgt = 0;
    817     RECOMP_REGS_LOCALS
    818     RECOMP_ENTER(0x47046B10u);
    819 
    820 L_47046B10:
    821     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    823     esp = esp - 0xCu; /* 0x47046B10: sub esp, 0xc */
    824     _flag_k = FK_CMP;
    825 L_47046B13:
    826     PUSH32(esp, ebx); /* 0x47046B13: push ebx */
    827 L_47046B14:
    828     PUSH32(esp, ebp); /* 0x47046B14: push ebp */
    829 L_47046B15:
    830     PUSH32(esp, esi); /* 0x47046B15: push esi */
    831 L_47046B16:
    832     PUSH32(esp, edi); /* 0x47046B16: push edi */
    833 L_47046B17:
    834     edi = MEM32(0x470AC150); /* 0x47046B17: mov edi, dword ptr [0x470ac150] */
    835 L_47046B1D:
    836     MEM32(esp + 0x10) = ecx; /* 0x47046B1D: mov dword ptr [esp + 0x10], ecx */
    837 L_47046B21:
    838     RECOMP_ICALL(edi); /* 0x47046B21: call edi */
    839     RECOMP_FLAGS_IN();
    840 L_47046B23:
    841     ebx = MEM32(0x470AC3C8); /* 0x47046B23: mov ebx, dword ptr [0x470ac3c8] */
    842 L_47046B29:
    843     ebp = eax; /* 0x47046B29: mov ebp, eax */
    844 L_47046B2B:
    845     RECOMP_ICALL(ebx); /* 0x47046B2B: call ebx */
    846     RECOMP_FLAGS_IN();
    847 L_47046B2D:
    848     eax = MEM32(eax); /* 0x47046B2D: mov eax, dword ptr [eax] */
    849 L_47046B2F:
    850     /* test eax, eax */ /* 0x47046B2F: test eax, eax */
    851     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    852     _cf = 0;
    853     _flag_k = FK_TEST;
    854 L_47046B31:
    855     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046B35; /* 0x47046B31: je 0x47046b35 */
    856 L_47046B33:
    857     ebp = eax; /* 0x47046B33: mov ebp, eax */
    858 L_47046B35:
    859     RECOMP_ICALL(0x47039020u); /* 0x47046B35: call 0x47039020 */ /* not lifted */
    860     RECOMP_FLAGS_IN();
    861 L_47046B3A:
    862     esi = eax; /* 0x47046B3A: mov esi, eax */
    863 L_47046B3C:
    864     ecx = esi; /* 0x47046B3C: mov ecx, esi */
    865 L_47046B3E:
    866     RECOMP_ICALL(0x4703B210u); /* 0x47046B3E: call 0x4703b210 */ /* not lifted */
    867     RECOMP_FLAGS_IN();
    868 L_47046B43:
    869     PUSH32(esp, eax); /* 0x47046B43: push eax */
    870 L_47046B44:
    871     ecx = esi; /* 0x47046B44: mov ecx, esi */
    872 L_47046B46:
    873     RECOMP_ICALL(0x4703B240u); /* 0x47046B46: call 0x4703b240 */ /* not lifted */
    874     RECOMP_FLAGS_IN();
    875 L_47046B4B:
    876     PUSH32(esp, eax); /* 0x47046B4B: push eax */
    877 L_47046B4C:
    878     ecx = esi; /* 0x47046B4C: mov ecx, esi */
    879 L_47046B4E:
    880     RECOMP_ICALL(0x4703B080u); /* 0x47046B4E: call 0x4703b080 */ /* not lifted */
    881     RECOMP_FLAGS_IN();
    882 L_47046B53:
    883     PUSH32(esp, eax); /* 0x47046B53: push eax */
    884 L_47046B54:
    885     PUSH32(esp, ebp); /* 0x47046B54: push ebp */
    886 L_47046B55:
    887     PUSH32(esp, 0); /* 0x47046B55: push 0 */
    888 L_47046B57:
    889     PUSH32(esp, 0x143u); /* 0x47046B57: push 0x143 */
    890 L_47046B5C:
    891     PUSH32(esp, 0x471088D0u); /* 0x47046B5C: push 0x471088d0 */
    892 L_47046B61:
    893     ecx = esi; /* 0x47046B61: mov ecx, esi */
    894 L_47046B63:
    895     RECOMP_ICALL(0x4703A340u); /* 0x47046B63: call 0x4703a340 */ /* not lifted */
    896     RECOMP_FLAGS_IN();
    897 L_47046B68:
    898     eax = MEM32(esp + 0x10); /* 0x47046B68: mov eax, dword ptr [esp + 0x10] */
    899 L_47046B6C:
    900     ecx = MEM32(eax); /* 0x47046B6C: mov ecx, dword ptr [eax] */
    901 L_47046B6E:
    902     PUSH32(esp, ecx); /* 0x47046B6E: push ecx */
    903 L_47046B6F:
    904     PUSH32(esp, 0x471088B8u); /* 0x47046B6F: push 0x471088b8 */
    905 L_47046B74:
    906     PUSH32(esp, 4); /* 0x47046B74: push 4 */
    907 L_47046B76:
    908     PUSH32(esp, esi); /* 0x47046B76: push esi */
    909 L_47046B77:
    910     RECOMP_ICALL(0x47039830u); /* 0x47046B77: call 0x47039830 */ /* not lifted */
    911     RECOMP_FLAGS_IN();
    912 L_47046B7C:
    913     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    914     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    915     esp = esp + 0x10u; /* 0x47046B7C: add esp, 0x10 */
    916     _flag_k = FK_ADD;
    917 L_47046B7F:
    918     RECOMP_ICALL(edi); /* 0x47046B7F: call edi */
    919     RECOMP_FLAGS_IN();
    920 L_47046B81:
    921     ebp = eax; /* 0x47046B81: mov ebp, eax */
    922 L_47046B83:
    923     RECOMP_ICALL(ebx); /* 0x47046B83: call ebx */
    924     RECOMP_FLAGS_IN();
    925 L_47046B85:
    926     eax = MEM32(eax); /* 0x47046B85: mov eax, dword ptr [eax] */
    927 L_47046B87:
    928     /* test eax, eax */ /* 0x47046B87: test eax, eax */
    929     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    930     _cf = 0;
    931     _flag_k = FK_TEST;
    932 L_47046B89:
    933     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046B8D; /* 0x47046B89: je 0x47046b8d */
    934 L_47046B8B:
    935     ebp = eax; /* 0x47046B8B: mov ebp, eax */
    936 L_47046B8D:
    937     RECOMP_ICALL(0x47039020u); /* 0x47046B8D: call 0x47039020 */ /* not lifted */
    938     RECOMP_FLAGS_IN();
    939 L_47046B92:
    940     esi = eax; /* 0x47046B92: mov esi, eax */
    941 L_47046B94:
    942     ecx = esi; /* 0x47046B94: mov ecx, esi */
    943 L_47046B96:
    944     RECOMP_ICALL(0x4703B210u); /* 0x47046B96: call 0x4703b210 */ /* not lifted */
    945     RECOMP_FLAGS_IN();
    946 L_47046B9B:
    947     PUSH32(esp, eax); /* 0x47046B9B: push eax */
    948 L_47046B9C:
    949     ecx = esi; /* 0x47046B9C: mov ecx, esi */
    950 L_47046B9E:
    951     RECOMP_ICALL(0x4703B240u); /* 0x47046B9E: call 0x4703b240 */ /* not lifted */
    952     RECOMP_FLAGS_IN();
    953 L_47046BA3:
    954     PUSH32(esp, eax); /* 0x47046BA3: push eax */
    955 L_47046BA4:
    956     ecx = esi; /* 0x47046BA4: mov ecx, esi */
    957 L_47046BA6:
    958     RECOMP_ICALL(0x4703B080u); /* 0x47046BA6: call 0x4703b080 */ /* not lifted */
    959     RECOMP_FLAGS_IN();
    960 L_47046BAB:
    961     PUSH32(esp, eax); /* 0x47046BAB: push eax */
    962 L_47046BAC:
    963     PUSH32(esp, ebp); /* 0x47046BAC: push ebp */
    964 L_47046BAD:
    965     PUSH32(esp, 0); /* 0x47046BAD: push 0 */
    966 L_47046BAF:
    967     PUSH32(esp, 0x145u); /* 0x47046BAF: push 0x145 */
    968 L_47046BB4:
    969     PUSH32(esp, 0x471088D0u); /* 0x47046BB4: push 0x471088d0 */
    970 L_47046BB9:
    971     ecx = esi; /* 0x47046BB9: mov ecx, esi */
    972 L_47046BBB:
    973     RECOMP_ICALL(0x4703A340u); /* 0x47046BBB: call 0x4703a340 */ /* not lifted */
    974     RECOMP_FLAGS_IN();
    975 L_47046BC0:
    976     PUSH32(esp, 0x471088A8u); /* 0x47046BC0: push 0x471088a8 */
    977 L_47046BC5:
    978     PUSH32(esp, 4); /* 0x47046BC5: push 4 */
    979 L_47046BC7:
    980     PUSH32(esp, esi); /* 0x47046BC7: push esi */
    981 L_47046BC8:
    982     RECOMP_ICALL(0x47039830u); /* 0x47046BC8: call 0x47039830 */ /* not lifted */
    983     RECOMP_FLAGS_IN();
    984 L_47046BCD:
    985     edx = MEM32(esp + 0x1C); /* 0x47046BCD: mov edx, dword ptr [esp + 0x1c] */
    986 L_47046BD1:
    987     eax = MEM32(edx + 0x4); /* 0x47046BD1: mov eax, dword ptr [edx + 4] */
    988 L_47046BD4:
    989     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    990     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    991     esp = esp + 0xCu; /* 0x47046BD4: add esp, 0xc */
    992     _flag_k = FK_ADD;
    993 L_47046BD7:
    994     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    995     eax = eax - 1; /* 0x47046BD7: dec eax */
    996     _flag_k = FK_DEC;
    997 L_47046BD8:
    998     /* cmp eax, 0x15u */ /* 0x47046BD8: cmp eax, 0x15 */
    999     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x15u);
   1000     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1001     _flag_k = FK_CMP;
   1002 L_47046BDB:
   1003     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_47046F49; /* 0x47046BDB: ja 0x47046f49 */
   1004 L_47046BE1:
   1005     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1006     ecx = 0; /* 0x47046BE1: xor ecx, ecx */
   1007     _cf = 0;
   1008     _flag_k = FK_TEST;
   1009 L_47046BE3:
   1010     SET_LO8(ecx, MEM8(eax + 0x470471AC)); /* 0x47046BE3: mov cl, byte ptr [eax + 0x470471ac] */
   1011 L_47046BE9:
   1012     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x47047180)); goto _ljump; }
   1013 L_47046BF0:
   1014     RECOMP_ICALL(edi); /* 0x47046BF0: call edi */
   1015     RECOMP_FLAGS_IN();
   1016 L_47046BF2:
   1017     ebp = eax; /* 0x47046BF2: mov ebp, eax */
   1018 L_47046BF4:
   1019     RECOMP_ICALL(ebx); /* 0x47046BF4: call ebx */
   1020     RECOMP_FLAGS_IN();
   1021 L_47046BF6:
   1022     eax = MEM32(eax); /* 0x47046BF6: mov eax, dword ptr [eax] */
   1023 L_47046BF8:
   1024     /* test eax, eax */ /* 0x47046BF8: test eax, eax */
   1025     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1026     _cf = 0;
   1027     _flag_k = FK_TEST;
   1028 L_47046BFA:
   1029     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046BFE; /* 0x47046BFA: je 0x47046bfe */
   1030 L_47046BFC:
   1031     ebp = eax; /* 0x47046BFC: mov ebp, eax */
   1032 L_47046BFE:
   1033     RECOMP_ICALL(0x47039020u); /* 0x47046BFE: call 0x47039020 */ /* not lifted */
   1034     RECOMP_FLAGS_IN();
   1035 L_47046C03:
   1036     esi = eax; /* 0x47046C03: mov esi, eax */
   1037 L_47046C05:
   1038     ecx = esi; /* 0x47046C05: mov ecx, esi */
   1039 L_47046C07:
   1040     RECOMP_ICALL(0x4703B210u); /* 0x47046C07: call 0x4703b210 */ /* not lifted */
   1041     RECOMP_FLAGS_IN();
   1042 L_47046C0C:
   1043     PUSH32(esp, eax); /* 0x47046C0C: push eax */
   1044 L_47046C0D:
   1045     ecx = esi; /* 0x47046C0D: mov ecx, esi */
   1046 L_47046C0F:
   1047     RECOMP_ICALL(0x4703B240u); /* 0x47046C0F: call 0x4703b240 */ /* not lifted */
   1048     RECOMP_FLAGS_IN();
   1049 L_47046C14:
   1050     PUSH32(esp, eax); /* 0x47046C14: push eax */
   1051 L_47046C15:
   1052     ecx = esi; /* 0x47046C15: mov ecx, esi */
   1053 L_47046C17:
   1054     RECOMP_ICALL(0x4703B080u); /* 0x47046C17: call 0x4703b080 */ /* not lifted */
   1055     RECOMP_FLAGS_IN();
   1056 L_47046C1C:
   1057     PUSH32(esp, eax); /* 0x47046C1C: push eax */
   1058 L_47046C1D:
   1059     PUSH32(esp, ebp); /* 0x47046C1D: push ebp */
   1060 L_47046C1E:
   1061     PUSH32(esp, 0); /* 0x47046C1E: push 0 */
   1062 L_47046C20:
   1063     PUSH32(esp, 0x14Bu); /* 0x47046C20: push 0x14b */
   1064 L_47046C25:
   1065     PUSH32(esp, 0x471088D0u); /* 0x47046C25: push 0x471088d0 */
   1066 L_47046C2A:
   1067     ecx = esi; /* 0x47046C2A: mov ecx, esi */
   1068 L_47046C2C:
   1069     RECOMP_ICALL(0x4703A340u); /* 0x47046C2C: call 0x4703a340 */ /* not lifted */
   1070     RECOMP_FLAGS_IN();
   1071 L_47046C31:
   1072     PUSH32(esp, 0x471088A0u); /* 0x47046C31: push 0x471088a0 */
   1073 L_47046C36:
   1074     PUSH32(esp, 4); /* 0x47046C36: push 4 */
   1075 L_47046C38:
   1076     PUSH32(esp, esi); /* 0x47046C38: push esi */
   1077 L_47046C39:
   1078     RECOMP_ICALL(0x47039830u); /* 0x47046C39: call 0x47039830 */ /* not lifted */
   1079     RECOMP_FLAGS_IN();
   1080 L_47046C3E:
   1081     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1082     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1083     esp = esp + 0xCu; /* 0x47046C3E: add esp, 0xc */
   1084     _flag_k = FK_ADD;
   1085 L_47046C41:
   1086     goto L_47046FA2; /* 0x47046C41: jmp 0x47046fa2 */
   1087 L_47046C46:
   1088     RECOMP_ICALL(edi); /* 0x47046C46: call edi */
   1089     RECOMP_FLAGS_IN();
   1090 L_47046C48:
   1091     ebp = eax; /* 0x47046C48: mov ebp, eax */
   1092 L_47046C4A:
   1093     RECOMP_ICALL(ebx); /* 0x47046C4A: call ebx */
   1094     RECOMP_FLAGS_IN();
   1095 L_47046C4C:
   1096     eax = MEM32(eax); /* 0x47046C4C: mov eax, dword ptr [eax] */
   1097 L_47046C4E:
   1098     /* test eax, eax */ /* 0x47046C4E: test eax, eax */
   1099     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1100     _cf = 0;
   1101     _flag_k = FK_TEST;
   1102 L_47046C50:
   1103     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046C54; /* 0x47046C50: je 0x47046c54 */
   1104 L_47046C52:
   1105     ebp = eax; /* 0x47046C52: mov ebp, eax */
   1106 L_47046C54:
   1107     RECOMP_ICALL(0x47039020u); /* 0x47046C54: call 0x47039020 */ /* not lifted */
   1108     RECOMP_FLAGS_IN();
   1109 L_47046C59:
   1110     esi = eax; /* 0x47046C59: mov esi, eax */
   1111 L_47046C5B:
   1112     ecx = esi; /* 0x47046C5B: mov ecx, esi */
   1113 L_47046C5D:
   1114     RECOMP_ICALL(0x4703B210u); /* 0x47046C5D: call 0x4703b210 */ /* not lifted */
   1115     RECOMP_FLAGS_IN();
   1116 L_47046C62:
   1117     PUSH32(esp, eax); /* 0x47046C62: push eax */
   1118 L_47046C63:
   1119     ecx = esi; /* 0x47046C63: mov ecx, esi */
   1120 L_47046C65:
   1121     RECOMP_ICALL(0x4703B240u); /* 0x47046C65: call 0x4703b240 */ /* not lifted */
   1122     RECOMP_FLAGS_IN();
   1123 L_47046C6A:
   1124     PUSH32(esp, eax); /* 0x47046C6A: push eax */
   1125 L_47046C6B:
   1126     ecx = esi; /* 0x47046C6B: mov ecx, esi */
   1127 L_47046C6D:
   1128     RECOMP_ICALL(0x4703B080u); /* 0x47046C6D: call 0x4703b080 */ /* not lifted */
   1129     RECOMP_FLAGS_IN();
   1130 L_47046C72:
   1131     PUSH32(esp, eax); /* 0x47046C72: push eax */
   1132 L_47046C73:
   1133     PUSH32(esp, ebp); /* 0x47046C73: push ebp */
   1134 L_47046C74:
   1135     PUSH32(esp, 0); /* 0x47046C74: push 0 */
   1136 L_47046C76:
   1137     PUSH32(esp, 0x14Fu); /* 0x47046C76: push 0x14f */
   1138 L_47046C7B:
   1139     PUSH32(esp, 0x471088D0u); /* 0x47046C7B: push 0x471088d0 */
   1140 L_47046C80:
   1141     ecx = esi; /* 0x47046C80: mov ecx, esi */
   1142 L_47046C82:
   1143     RECOMP_ICALL(0x4703A340u); /* 0x47046C82: call 0x4703a340 */ /* not lifted */
   1144     RECOMP_FLAGS_IN();
   1145 L_47046C87:
   1146     PUSH32(esp, 0x47108898u); /* 0x47046C87: push 0x47108898 */
   1147 L_47046C8C:
   1148     PUSH32(esp, 4); /* 0x47046C8C: push 4 */
   1149 L_47046C8E:
   1150     PUSH32(esp, esi); /* 0x47046C8E: push esi */
   1151 L_47046C8F:
   1152     RECOMP_ICALL(0x47039830u); /* 0x47046C8F: call 0x47039830 */ /* not lifted */
   1153     RECOMP_FLAGS_IN();
   1154 L_47046C94:
   1155     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1156     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1157     esp = esp + 0xCu; /* 0x47046C94: add esp, 0xc */
   1158     _flag_k = FK_ADD;
   1159 L_47046C97:
   1160     goto L_47046FA2; /* 0x47046C97: jmp 0x47046fa2 */
   1161 L_47046C9C:
   1162     RECOMP_ICALL(edi); /* 0x47046C9C: call edi */
   1163     RECOMP_FLAGS_IN();
   1164 L_47046C9E:
   1165     ebp = eax; /* 0x47046C9E: mov ebp, eax */
   1166 L_47046CA0:
   1167     RECOMP_ICALL(ebx); /* 0x47046CA0: call ebx */
   1168     RECOMP_FLAGS_IN();
   1169 L_47046CA2:
   1170     eax = MEM32(eax); /* 0x47046CA2: mov eax, dword ptr [eax] */
   1171 L_47046CA4:
   1172     /* test eax, eax */ /* 0x47046CA4: test eax, eax */
   1173     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1174     _cf = 0;
   1175     _flag_k = FK_TEST;
   1176 L_47046CA6:
   1177     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046CAA; /* 0x47046CA6: je 0x47046caa */
   1178 L_47046CA8:
   1179     ebp = eax; /* 0x47046CA8: mov ebp, eax */
   1180 L_47046CAA:
   1181     RECOMP_ICALL(0x47039020u); /* 0x47046CAA: call 0x47039020 */ /* not lifted */
   1182     RECOMP_FLAGS_IN();
   1183 L_47046CAF:
   1184     esi = eax; /* 0x47046CAF: mov esi, eax */
   1185 L_47046CB1:
   1186     ecx = esi; /* 0x47046CB1: mov ecx, esi */
   1187 L_47046CB3:
   1188     RECOMP_ICALL(0x4703B210u); /* 0x47046CB3: call 0x4703b210 */ /* not lifted */
   1189     RECOMP_FLAGS_IN();
   1190 L_47046CB8:
   1191     PUSH32(esp, eax); /* 0x47046CB8: push eax */
   1192 L_47046CB9:
   1193     ecx = esi; /* 0x47046CB9: mov ecx, esi */
   1194 L_47046CBB:
   1195     RECOMP_ICALL(0x4703B240u); /* 0x47046CBB: call 0x4703b240 */ /* not lifted */
   1196     RECOMP_FLAGS_IN();
   1197 L_47046CC0:
   1198     PUSH32(esp, eax); /* 0x47046CC0: push eax */
   1199 L_47046CC1:
   1200     ecx = esi; /* 0x47046CC1: mov ecx, esi */
   1201 L_47046CC3:
   1202     RECOMP_ICALL(0x4703B080u); /* 0x47046CC3: call 0x4703b080 */ /* not lifted */
   1203     RECOMP_FLAGS_IN();
   1204 L_47046CC8:
   1205     PUSH32(esp, eax); /* 0x47046CC8: push eax */
   1206 L_47046CC9:
   1207     PUSH32(esp, ebp); /* 0x47046CC9: push ebp */
   1208 L_47046CCA:
   1209     PUSH32(esp, 0); /* 0x47046CCA: push 0 */
   1210 L_47046CCC:
   1211     PUSH32(esp, 0x153u); /* 0x47046CCC: push 0x153 */
   1212 L_47046CD1:
   1213     PUSH32(esp, 0x471088D0u); /* 0x47046CD1: push 0x471088d0 */
   1214 L_47046CD6:
   1215     ecx = esi; /* 0x47046CD6: mov ecx, esi */
   1216 L_47046CD8:
   1217     RECOMP_ICALL(0x4703A340u); /* 0x47046CD8: call 0x4703a340 */ /* not lifted */
   1218     RECOMP_FLAGS_IN();
   1219 L_47046CDD:
   1220     PUSH32(esp, 0x4710888Cu); /* 0x47046CDD: push 0x4710888c */
   1221 L_47046CE2:
   1222     PUSH32(esp, 4); /* 0x47046CE2: push 4 */
   1223 L_47046CE4:
   1224     PUSH32(esp, esi); /* 0x47046CE4: push esi */
   1225 L_47046CE5:
   1226     RECOMP_ICALL(0x47039830u); /* 0x47046CE5: call 0x47039830 */ /* not lifted */
   1227     RECOMP_FLAGS_IN();
   1228 L_47046CEA:
   1229     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1230     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1231     esp = esp + 0xCu; /* 0x47046CEA: add esp, 0xc */
   1232     _flag_k = FK_ADD;
   1233 L_47046CED:
   1234     goto L_47046FA2; /* 0x47046CED: jmp 0x47046fa2 */
   1235 L_47046CF2:
   1236     RECOMP_ICALL(edi); /* 0x47046CF2: call edi */
   1237     RECOMP_FLAGS_IN();
   1238 L_47046CF4:
   1239     ebp = eax; /* 0x47046CF4: mov ebp, eax */
   1240 L_47046CF6:
   1241     RECOMP_ICALL(ebx); /* 0x47046CF6: call ebx */
   1242     RECOMP_FLAGS_IN();
   1243 L_47046CF8:
   1244     eax = MEM32(eax); /* 0x47046CF8: mov eax, dword ptr [eax] */
   1245 L_47046CFA:
   1246     /* test eax, eax */ /* 0x47046CFA: test eax, eax */
   1247     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1248     _cf = 0;
   1249     _flag_k = FK_TEST;
   1250 L_47046CFC:
   1251     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046D00; /* 0x47046CFC: je 0x47046d00 */
   1252 L_47046CFE:
   1253     ebp = eax; /* 0x47046CFE: mov ebp, eax */
   1254 L_47046D00:
   1255     RECOMP_ICALL(0x47039020u); /* 0x47046D00: call 0x47039020 */ /* not lifted */
   1256     RECOMP_FLAGS_IN();
   1257 L_47046D05:
   1258     esi = eax; /* 0x47046D05: mov esi, eax */
   1259 L_47046D07:
   1260     ecx = esi; /* 0x47046D07: mov ecx, esi */
   1261 L_47046D09:
   1262     RECOMP_ICALL(0x4703B210u); /* 0x47046D09: call 0x4703b210 */ /* not lifted */
   1263     RECOMP_FLAGS_IN();
   1264 L_47046D0E:
   1265     PUSH32(esp, eax); /* 0x47046D0E: push eax */
   1266 L_47046D0F:
   1267     ecx = esi; /* 0x47046D0F: mov ecx, esi */
   1268 L_47046D11:
   1269     RECOMP_ICALL(0x4703B240u); /* 0x47046D11: call 0x4703b240 */ /* not lifted */
   1270     RECOMP_FLAGS_IN();
   1271 L_47046D16:
   1272     PUSH32(esp, eax); /* 0x47046D16: push eax */
   1273 L_47046D17:
   1274     ecx = esi; /* 0x47046D17: mov ecx, esi */
   1275 L_47046D19:
   1276     RECOMP_ICALL(0x4703B080u); /* 0x47046D19: call 0x4703b080 */ /* not lifted */
   1277     RECOMP_FLAGS_IN();
   1278 L_47046D1E:
   1279     PUSH32(esp, eax); /* 0x47046D1E: push eax */
   1280 L_47046D1F:
   1281     PUSH32(esp, ebp); /* 0x47046D1F: push ebp */
   1282 L_47046D20:
   1283     PUSH32(esp, 0); /* 0x47046D20: push 0 */
   1284 L_47046D22:
   1285     PUSH32(esp, 0x157u); /* 0x47046D22: push 0x157 */
   1286 L_47046D27:
   1287     PUSH32(esp, 0x471088D0u); /* 0x47046D27: push 0x471088d0 */
   1288 L_47046D2C:
   1289     ecx = esi; /* 0x47046D2C: mov ecx, esi */
   1290 L_47046D2E:
   1291     RECOMP_ICALL(0x4703A340u); /* 0x47046D2E: call 0x4703a340 */ /* not lifted */
   1292     RECOMP_FLAGS_IN();
   1293 L_47046D33:
   1294     PUSH32(esp, 0x47108884u); /* 0x47046D33: push 0x47108884 */
   1295 L_47046D38:
   1296     PUSH32(esp, 4); /* 0x47046D38: push 4 */
   1297 L_47046D3A:
   1298     PUSH32(esp, esi); /* 0x47046D3A: push esi */
   1299 L_47046D3B:
   1300     RECOMP_ICALL(0x47039830u); /* 0x47046D3B: call 0x47039830 */ /* not lifted */
   1301     RECOMP_FLAGS_IN();
   1302 L_47046D40:
   1303     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1304     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1305     esp = esp + 0xCu; /* 0x47046D40: add esp, 0xc */
   1306     _flag_k = FK_ADD;
   1307 L_47046D43:
   1308     goto L_47046FA2; /* 0x47046D43: jmp 0x47046fa2 */
   1309 L_47046D48:
   1310     RECOMP_ICALL(edi); /* 0x47046D48: call edi */
   1311     RECOMP_FLAGS_IN();
   1312 L_47046D4A:
   1313     ebp = eax; /* 0x47046D4A: mov ebp, eax */
   1314 L_47046D4C:
   1315     RECOMP_ICALL(ebx); /* 0x47046D4C: call ebx */
   1316     RECOMP_FLAGS_IN();
   1317 L_47046D4E:
   1318     eax = MEM32(eax); /* 0x47046D4E: mov eax, dword ptr [eax] */
   1319 L_47046D50:
   1320     /* test eax, eax */ /* 0x47046D50: test eax, eax */
   1321     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1322     _cf = 0;
   1323     _flag_k = FK_TEST;
   1324 L_47046D52:
   1325     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046D56; /* 0x47046D52: je 0x47046d56 */
   1326 L_47046D54:
   1327     ebp = eax; /* 0x47046D54: mov ebp, eax */
   1328 L_47046D56:
   1329     RECOMP_ICALL(0x47039020u); /* 0x47046D56: call 0x47039020 */ /* not lifted */
   1330     RECOMP_FLAGS_IN();
   1331 L_47046D5B:
   1332     esi = eax; /* 0x47046D5B: mov esi, eax */
   1333 L_47046D5D:
   1334     ecx = esi; /* 0x47046D5D: mov ecx, esi */
   1335 L_47046D5F:
   1336     RECOMP_ICALL(0x4703B210u); /* 0x47046D5F: call 0x4703b210 */ /* not lifted */
   1337     RECOMP_FLAGS_IN();
   1338 L_47046D64:
   1339     PUSH32(esp, eax); /* 0x47046D64: push eax */
   1340 L_47046D65:
   1341     ecx = esi; /* 0x47046D65: mov ecx, esi */
   1342 L_47046D67:
   1343     RECOMP_ICALL(0x4703B240u); /* 0x47046D67: call 0x4703b240 */ /* not lifted */
   1344     RECOMP_FLAGS_IN();
   1345 L_47046D6C:
   1346     PUSH32(esp, eax); /* 0x47046D6C: push eax */
   1347 L_47046D6D:
   1348     ecx = esi; /* 0x47046D6D: mov ecx, esi */
   1349 L_47046D6F:
   1350     RECOMP_ICALL(0x4703B080u); /* 0x47046D6F: call 0x4703b080 */ /* not lifted */
   1351     RECOMP_FLAGS_IN();
   1352 L_47046D74:
   1353     PUSH32(esp, eax); /* 0x47046D74: push eax */
   1354 L_47046D75:
   1355     PUSH32(esp, ebp); /* 0x47046D75: push ebp */
   1356 L_47046D76:
   1357     PUSH32(esp, 0); /* 0x47046D76: push 0 */
   1358 L_47046D78:
   1359     PUSH32(esp, 0x15Bu); /* 0x47046D78: push 0x15b */
   1360 L_47046D7D:
   1361     PUSH32(esp, 0x471088D0u); /* 0x47046D7D: push 0x471088d0 */
   1362 L_47046D82:
   1363     ecx = esi; /* 0x47046D82: mov ecx, esi */
   1364 L_47046D84:
   1365     RECOMP_ICALL(0x4703A340u); /* 0x47046D84: call 0x4703a340 */ /* not lifted */
   1366     RECOMP_FLAGS_IN();
   1367 L_47046D89:
   1368     PUSH32(esp, 0x47108878u); /* 0x47046D89: push 0x47108878 */
   1369 L_47046D8E:
   1370     PUSH32(esp, 4); /* 0x47046D8E: push 4 */
   1371 L_47046D90:
   1372     PUSH32(esp, esi); /* 0x47046D90: push esi */
   1373 L_47046D91:
   1374     RECOMP_ICALL(0x47039830u); /* 0x47046D91: call 0x47039830 */ /* not lifted */
   1375     RECOMP_FLAGS_IN();
   1376 L_47046D96:
   1377     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1378     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1379     esp = esp + 0xCu; /* 0x47046D96: add esp, 0xc */
   1380     _flag_k = FK_ADD;
   1381 L_47046D99:
   1382     goto L_47046FA2; /* 0x47046D99: jmp 0x47046fa2 */
   1383 L_47046D9E:
   1384     RECOMP_ICALL(edi); /* 0x47046D9E: call edi */
   1385     RECOMP_FLAGS_IN();
   1386 L_47046DA0:
   1387     ebp = eax; /* 0x47046DA0: mov ebp, eax */
   1388 L_47046DA2:
   1389     RECOMP_ICALL(ebx); /* 0x47046DA2: call ebx */
   1390     RECOMP_FLAGS_IN();
   1391 L_47046DA4:
   1392     eax = MEM32(eax); /* 0x47046DA4: mov eax, dword ptr [eax] */
   1393 L_47046DA6:
   1394     /* test eax, eax */ /* 0x47046DA6: test eax, eax */
   1395     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1396     _cf = 0;
   1397     _flag_k = FK_TEST;
   1398 L_47046DA8:
   1399     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046DAC; /* 0x47046DA8: je 0x47046dac */
   1400 L_47046DAA:
   1401     ebp = eax; /* 0x47046DAA: mov ebp, eax */
   1402 L_47046DAC:
   1403     RECOMP_ICALL(0x47039020u); /* 0x47046DAC: call 0x47039020 */ /* not lifted */
   1404     RECOMP_FLAGS_IN();
   1405 L_47046DB1:
   1406     esi = eax; /* 0x47046DB1: mov esi, eax */
   1407 L_47046DB3:
   1408     ecx = esi; /* 0x47046DB3: mov ecx, esi */
   1409 L_47046DB5:
   1410     RECOMP_ICALL(0x4703B210u); /* 0x47046DB5: call 0x4703b210 */ /* not lifted */
   1411     RECOMP_FLAGS_IN();
   1412 L_47046DBA:
   1413     PUSH32(esp, eax); /* 0x47046DBA: push eax */
   1414 L_47046DBB:
   1415     ecx = esi; /* 0x47046DBB: mov ecx, esi */
   1416 L_47046DBD:
   1417     RECOMP_ICALL(0x4703B240u); /* 0x47046DBD: call 0x4703b240 */ /* not lifted */
   1418     RECOMP_FLAGS_IN();
   1419 L_47046DC2:
   1420     PUSH32(esp, eax); /* 0x47046DC2: push eax */
   1421 L_47046DC3:
   1422     ecx = esi; /* 0x47046DC3: mov ecx, esi */
   1423 L_47046DC5:
   1424     RECOMP_ICALL(0x4703B080u); /* 0x47046DC5: call 0x4703b080 */ /* not lifted */
   1425     RECOMP_FLAGS_IN();
   1426 L_47046DCA:
   1427     PUSH32(esp, eax); /* 0x47046DCA: push eax */
   1428 L_47046DCB:
   1429     PUSH32(esp, ebp); /* 0x47046DCB: push ebp */
   1430 L_47046DCC:
   1431     PUSH32(esp, 0); /* 0x47046DCC: push 0 */
   1432 L_47046DCE:
   1433     PUSH32(esp, 0x15Fu); /* 0x47046DCE: push 0x15f */
   1434 L_47046DD3:
   1435     PUSH32(esp, 0x471088D0u); /* 0x47046DD3: push 0x471088d0 */
   1436 L_47046DD8:
   1437     ecx = esi; /* 0x47046DD8: mov ecx, esi */
   1438 L_47046DDA:
   1439     RECOMP_ICALL(0x4703A340u); /* 0x47046DDA: call 0x4703a340 */ /* not lifted */
   1440     RECOMP_FLAGS_IN();
   1441 L_47046DDF:
   1442     PUSH32(esp, 0x47108868u); /* 0x47046DDF: push 0x47108868 */
   1443 L_47046DE4:
   1444     PUSH32(esp, 4); /* 0x47046DE4: push 4 */
   1445 L_47046DE6:
   1446     PUSH32(esp, esi); /* 0x47046DE6: push esi */
   1447 L_47046DE7:
   1448     RECOMP_ICALL(0x47039830u); /* 0x47046DE7: call 0x47039830 */ /* not lifted */
   1449     RECOMP_FLAGS_IN();
   1450 L_47046DEC:
   1451     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1452     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1453     esp = esp + 0xCu; /* 0x47046DEC: add esp, 0xc */
   1454     _flag_k = FK_ADD;
   1455 L_47046DEF:
   1456     goto L_47046FA2; /* 0x47046DEF: jmp 0x47046fa2 */
   1457 L_47046DF4:
   1458     RECOMP_ICALL(edi); /* 0x47046DF4: call edi */
   1459     RECOMP_FLAGS_IN();
   1460 L_47046DF6:
   1461     ebp = eax; /* 0x47046DF6: mov ebp, eax */
   1462 L_47046DF8:
   1463     RECOMP_ICALL(ebx); /* 0x47046DF8: call ebx */
   1464     RECOMP_FLAGS_IN();
   1465 L_47046DFA:
   1466     eax = MEM32(eax); /* 0x47046DFA: mov eax, dword ptr [eax] */
   1467 L_47046DFC:
   1468     /* test eax, eax */ /* 0x47046DFC: test eax, eax */
   1469     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1470     _cf = 0;
   1471     _flag_k = FK_TEST;
   1472 L_47046DFE:
   1473     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046E02; /* 0x47046DFE: je 0x47046e02 */
   1474 L_47046E00:
   1475     ebp = eax; /* 0x47046E00: mov ebp, eax */
   1476 L_47046E02:
   1477     RECOMP_ICALL(0x47039020u); /* 0x47046E02: call 0x47039020 */ /* not lifted */
   1478     RECOMP_FLAGS_IN();
   1479 L_47046E07:
   1480     esi = eax; /* 0x47046E07: mov esi, eax */
   1481 L_47046E09:
   1482     ecx = esi; /* 0x47046E09: mov ecx, esi */
   1483 L_47046E0B:
   1484     RECOMP_ICALL(0x4703B210u); /* 0x47046E0B: call 0x4703b210 */ /* not lifted */
   1485     RECOMP_FLAGS_IN();
   1486 L_47046E10:
   1487     PUSH32(esp, eax); /* 0x47046E10: push eax */
   1488 L_47046E11:
   1489     ecx = esi; /* 0x47046E11: mov ecx, esi */
   1490 L_47046E13:
   1491     RECOMP_ICALL(0x4703B240u); /* 0x47046E13: call 0x4703b240 */ /* not lifted */
   1492     RECOMP_FLAGS_IN();
   1493 L_47046E18:
   1494     PUSH32(esp, eax); /* 0x47046E18: push eax */
   1495 L_47046E19:
   1496     ecx = esi; /* 0x47046E19: mov ecx, esi */
   1497 L_47046E1B:
   1498     RECOMP_ICALL(0x4703B080u); /* 0x47046E1B: call 0x4703b080 */ /* not lifted */
   1499     RECOMP_FLAGS_IN();
   1500 L_47046E20:
   1501     PUSH32(esp, eax); /* 0x47046E20: push eax */
   1502 L_47046E21:
   1503     PUSH32(esp, ebp); /* 0x47046E21: push ebp */
   1504 L_47046E22:
   1505     PUSH32(esp, 0); /* 0x47046E22: push 0 */
   1506 L_47046E24:
   1507     PUSH32(esp, 0x163u); /* 0x47046E24: push 0x163 */
   1508 L_47046E29:
   1509     PUSH32(esp, 0x471088D0u); /* 0x47046E29: push 0x471088d0 */
   1510 L_47046E2E:
   1511     ecx = esi; /* 0x47046E2E: mov ecx, esi */
   1512 L_47046E30:
   1513     RECOMP_ICALL(0x4703A340u); /* 0x47046E30: call 0x4703a340 */ /* not lifted */
   1514     RECOMP_FLAGS_IN();
   1515 L_47046E35:
   1516     PUSH32(esp, 0x4710885Cu); /* 0x47046E35: push 0x4710885c */
   1517 L_47046E3A:
   1518     PUSH32(esp, 4); /* 0x47046E3A: push 4 */
   1519 L_47046E3C:
   1520     PUSH32(esp, esi); /* 0x47046E3C: push esi */
   1521 L_47046E3D:
   1522     RECOMP_ICALL(0x47039830u); /* 0x47046E3D: call 0x47039830 */ /* not lifted */
   1523     RECOMP_FLAGS_IN();
   1524 L_47046E42:
   1525     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1526     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1527     esp = esp + 0xCu; /* 0x47046E42: add esp, 0xc */
   1528     _flag_k = FK_ADD;
   1529 L_47046E45:
   1530     goto L_47046FA2; /* 0x47046E45: jmp 0x47046fa2 */
   1531 L_47046E4A:
   1532     RECOMP_ICALL(edi); /* 0x47046E4A: call edi */
   1533     RECOMP_FLAGS_IN();
   1534 L_47046E4C:
   1535     ebp = eax; /* 0x47046E4C: mov ebp, eax */
   1536 L_47046E4E:
   1537     RECOMP_ICALL(ebx); /* 0x47046E4E: call ebx */
   1538     RECOMP_FLAGS_IN();
   1539 L_47046E50:
   1540     eax = MEM32(eax); /* 0x47046E50: mov eax, dword ptr [eax] */
   1541 L_47046E52:
   1542     /* test eax, eax */ /* 0x47046E52: test eax, eax */
   1543     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1544     _cf = 0;
   1545     _flag_k = FK_TEST;
   1546 L_47046E54:
   1547     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046E58; /* 0x47046E54: je 0x47046e58 */
   1548 L_47046E56:
   1549     ebp = eax; /* 0x47046E56: mov ebp, eax */
   1550 L_47046E58:
   1551     RECOMP_ICALL(0x47039020u); /* 0x47046E58: call 0x47039020 */ /* not lifted */
   1552     RECOMP_FLAGS_IN();
   1553 L_47046E5D:
   1554     esi = eax; /* 0x47046E5D: mov esi, eax */
   1555 L_47046E5F:
   1556     ecx = esi; /* 0x47046E5F: mov ecx, esi */
   1557 L_47046E61:
   1558     RECOMP_ICALL(0x4703B210u); /* 0x47046E61: call 0x4703b210 */ /* not lifted */
   1559     RECOMP_FLAGS_IN();
   1560 L_47046E66:
   1561     PUSH32(esp, eax); /* 0x47046E66: push eax */
   1562 L_47046E67:
   1563     ecx = esi; /* 0x47046E67: mov ecx, esi */
   1564 L_47046E69:
   1565     RECOMP_ICALL(0x4703B240u); /* 0x47046E69: call 0x4703b240 */ /* not lifted */
   1566     RECOMP_FLAGS_IN();
   1567 L_47046E6E:
   1568     PUSH32(esp, eax); /* 0x47046E6E: push eax */
   1569 L_47046E6F:
   1570     ecx = esi; /* 0x47046E6F: mov ecx, esi */
   1571 L_47046E71:
   1572     RECOMP_ICALL(0x4703B080u); /* 0x47046E71: call 0x4703b080 */ /* not lifted */
   1573     RECOMP_FLAGS_IN();
   1574 L_47046E76:
   1575     PUSH32(esp, eax); /* 0x47046E76: push eax */
   1576 L_47046E77:
   1577     PUSH32(esp, ebp); /* 0x47046E77: push ebp */
   1578 L_47046E78:
   1579     PUSH32(esp, 0); /* 0x47046E78: push 0 */
   1580 L_47046E7A:
   1581     PUSH32(esp, 0x167u); /* 0x47046E7A: push 0x167 */
   1582 L_47046E7F:
   1583     PUSH32(esp, 0x471088D0u); /* 0x47046E7F: push 0x471088d0 */
   1584 L_47046E84:
   1585     ecx = esi; /* 0x47046E84: mov ecx, esi */
   1586 L_47046E86:
   1587     RECOMP_ICALL(0x4703A340u); /* 0x47046E86: call 0x4703a340 */ /* not lifted */
   1588     RECOMP_FLAGS_IN();
   1589 L_47046E8B:
   1590     PUSH32(esp, 0x47108848u); /* 0x47046E8B: push 0x47108848 */
   1591 L_47046E90:
   1592     PUSH32(esp, 4); /* 0x47046E90: push 4 */
   1593 L_47046E92:
   1594     PUSH32(esp, esi); /* 0x47046E92: push esi */
   1595 L_47046E93:
   1596     RECOMP_ICALL(0x47039830u); /* 0x47046E93: call 0x47039830 */ /* not lifted */
   1597     RECOMP_FLAGS_IN();
   1598 L_47046E98:
   1599     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1600     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1601     esp = esp + 0xCu; /* 0x47046E98: add esp, 0xc */
   1602     _flag_k = FK_ADD;
   1603 L_47046E9B:
   1604     goto L_47046FA2; /* 0x47046E9B: jmp 0x47046fa2 */
   1605 L_47046EA0:
   1606     RECOMP_ICALL(edi); /* 0x47046EA0: call edi */
   1607     RECOMP_FLAGS_IN();
   1608 L_47046EA2:
   1609     ebp = eax; /* 0x47046EA2: mov ebp, eax */
   1610 L_47046EA4:
   1611     RECOMP_ICALL(ebx); /* 0x47046EA4: call ebx */
   1612     RECOMP_FLAGS_IN();
   1613 L_47046EA6:
   1614     eax = MEM32(eax); /* 0x47046EA6: mov eax, dword ptr [eax] */
   1615 L_47046EA8:
   1616     /* test eax, eax */ /* 0x47046EA8: test eax, eax */
   1617     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1618     _cf = 0;
   1619     _flag_k = FK_TEST;
   1620 L_47046EAA:
   1621     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046EAE; /* 0x47046EAA: je 0x47046eae */
   1622 L_47046EAC:
   1623     ebp = eax; /* 0x47046EAC: mov ebp, eax */
   1624 L_47046EAE:
   1625     RECOMP_ICALL(0x47039020u); /* 0x47046EAE: call 0x47039020 */ /* not lifted */
   1626     RECOMP_FLAGS_IN();
   1627 L_47046EB3:
   1628     esi = eax; /* 0x47046EB3: mov esi, eax */
   1629 L_47046EB5:
   1630     ecx = esi; /* 0x47046EB5: mov ecx, esi */
   1631 L_47046EB7:
   1632     RECOMP_ICALL(0x4703B210u); /* 0x47046EB7: call 0x4703b210 */ /* not lifted */
   1633     RECOMP_FLAGS_IN();
   1634 L_47046EBC:
   1635     PUSH32(esp, eax); /* 0x47046EBC: push eax */
   1636 L_47046EBD:
   1637     ecx = esi; /* 0x47046EBD: mov ecx, esi */
   1638 L_47046EBF:
   1639     RECOMP_ICALL(0x4703B240u); /* 0x47046EBF: call 0x4703b240 */ /* not lifted */
   1640     RECOMP_FLAGS_IN();
   1641 L_47046EC4:
   1642     PUSH32(esp, eax); /* 0x47046EC4: push eax */
   1643 L_47046EC5:
   1644     ecx = esi; /* 0x47046EC5: mov ecx, esi */
   1645 L_47046EC7:
   1646     RECOMP_ICALL(0x4703B080u); /* 0x47046EC7: call 0x4703b080 */ /* not lifted */
   1647     RECOMP_FLAGS_IN();
   1648 L_47046ECC:
   1649     PUSH32(esp, eax); /* 0x47046ECC: push eax */
   1650 L_47046ECD:
   1651     PUSH32(esp, ebp); /* 0x47046ECD: push ebp */
   1652 L_47046ECE:
   1653     PUSH32(esp, 0); /* 0x47046ECE: push 0 */
   1654 L_47046ED0:
   1655     PUSH32(esp, 0x16Bu); /* 0x47046ED0: push 0x16b */
   1656 L_47046ED5:
   1657     PUSH32(esp, 0x471088D0u); /* 0x47046ED5: push 0x471088d0 */
   1658 L_47046EDA:
   1659     ecx = esi; /* 0x47046EDA: mov ecx, esi */
   1660 L_47046EDC:
   1661     RECOMP_ICALL(0x4703A340u); /* 0x47046EDC: call 0x4703a340 */ /* not lifted */
   1662     RECOMP_FLAGS_IN();
   1663 L_47046EE1:
   1664     PUSH32(esp, 0x47108834u); /* 0x47046EE1: push 0x47108834 */
   1665 L_47046EE6:
   1666     PUSH32(esp, 4); /* 0x47046EE6: push 4 */
   1667 L_47046EE8:
   1668     PUSH32(esp, esi); /* 0x47046EE8: push esi */
   1669 L_47046EE9:
   1670     RECOMP_ICALL(0x47039830u); /* 0x47046EE9: call 0x47039830 */ /* not lifted */
   1671     RECOMP_FLAGS_IN();
   1672 L_47046EEE:
   1673     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1674     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1675     esp = esp + 0xCu; /* 0x47046EEE: add esp, 0xc */
   1676     _flag_k = FK_ADD;
   1677 L_47046EF1:
   1678     goto L_47046FA2; /* 0x47046EF1: jmp 0x47046fa2 */
   1679 L_47046EF6:
   1680     RECOMP_ICALL(edi); /* 0x47046EF6: call edi */
   1681     RECOMP_FLAGS_IN();
   1682 L_47046EF8:
   1683     ebp = eax; /* 0x47046EF8: mov ebp, eax */
   1684 L_47046EFA:
   1685     RECOMP_ICALL(ebx); /* 0x47046EFA: call ebx */
   1686     RECOMP_FLAGS_IN();
   1687 L_47046EFC:
   1688     eax = MEM32(eax); /* 0x47046EFC: mov eax, dword ptr [eax] */
   1689 L_47046EFE:
   1690     /* test eax, eax */ /* 0x47046EFE: test eax, eax */
   1691     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1692     _cf = 0;
   1693     _flag_k = FK_TEST;
   1694 L_47046F00:
   1695     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046F04; /* 0x47046F00: je 0x47046f04 */
   1696 L_47046F02:
   1697     ebp = eax; /* 0x47046F02: mov ebp, eax */
   1698 L_47046F04:
   1699     RECOMP_ICALL(0x47039020u); /* 0x47046F04: call 0x47039020 */ /* not lifted */
   1700     RECOMP_FLAGS_IN();
   1701 L_47046F09:
   1702     esi = eax; /* 0x47046F09: mov esi, eax */
   1703 L_47046F0B:
   1704     ecx = esi; /* 0x47046F0B: mov ecx, esi */
   1705 L_47046F0D:
   1706     RECOMP_ICALL(0x4703B210u); /* 0x47046F0D: call 0x4703b210 */ /* not lifted */
   1707     RECOMP_FLAGS_IN();
   1708 L_47046F12:
   1709     PUSH32(esp, eax); /* 0x47046F12: push eax */
   1710 L_47046F13:
   1711     ecx = esi; /* 0x47046F13: mov ecx, esi */
   1712 L_47046F15:
   1713     RECOMP_ICALL(0x4703B240u); /* 0x47046F15: call 0x4703b240 */ /* not lifted */
   1714     RECOMP_FLAGS_IN();
   1715 L_47046F1A:
   1716     PUSH32(esp, eax); /* 0x47046F1A: push eax */
   1717 L_47046F1B:
   1718     ecx = esi; /* 0x47046F1B: mov ecx, esi */
   1719 L_47046F1D:
   1720     RECOMP_ICALL(0x4703B080u); /* 0x47046F1D: call 0x4703b080 */ /* not lifted */
   1721     RECOMP_FLAGS_IN();
   1722 L_47046F22:
   1723     PUSH32(esp, eax); /* 0x47046F22: push eax */
   1724 L_47046F23:
   1725     PUSH32(esp, ebp); /* 0x47046F23: push ebp */
   1726 L_47046F24:
   1727     PUSH32(esp, 0); /* 0x47046F24: push 0 */
   1728 L_47046F26:
   1729     PUSH32(esp, 0x16Fu); /* 0x47046F26: push 0x16f */
   1730 L_47046F2B:
   1731     PUSH32(esp, 0x471088D0u); /* 0x47046F2B: push 0x471088d0 */
   1732 L_47046F30:
   1733     ecx = esi; /* 0x47046F30: mov ecx, esi */
   1734 L_47046F32:
   1735     RECOMP_ICALL(0x4703A340u); /* 0x47046F32: call 0x4703a340 */ /* not lifted */
   1736     RECOMP_FLAGS_IN();
   1737 L_47046F37:
   1738     PUSH32(esp, 0x47108820u); /* 0x47046F37: push 0x47108820 */
   1739 L_47046F3C:
   1740     PUSH32(esp, 4); /* 0x47046F3C: push 4 */
   1741 L_47046F3E:
   1742     PUSH32(esp, esi); /* 0x47046F3E: push esi */
   1743 L_47046F3F:
   1744     RECOMP_ICALL(0x47039830u); /* 0x47046F3F: call 0x47039830 */ /* not lifted */
   1745     RECOMP_FLAGS_IN();
   1746 L_47046F44:
   1747     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1748     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1749     esp = esp + 0xCu; /* 0x47046F44: add esp, 0xc */
   1750     _flag_k = FK_ADD;
   1751 L_47046F47:
   1752     goto L_47046FA2; /* 0x47046F47: jmp 0x47046fa2 */
   1753 L_47046F49:
   1754     RECOMP_ICALL(edi); /* 0x47046F49: call edi */
   1755     RECOMP_FLAGS_IN();
   1756 L_47046F4B:
   1757     ebp = eax; /* 0x47046F4B: mov ebp, eax */
   1758 L_47046F4D:
   1759     RECOMP_ICALL(ebx); /* 0x47046F4D: call ebx */
   1760     RECOMP_FLAGS_IN();
   1761 L_47046F4F:
   1762     eax = MEM32(eax); /* 0x47046F4F: mov eax, dword ptr [eax] */
   1763 L_47046F51:
   1764     /* test eax, eax */ /* 0x47046F51: test eax, eax */
   1765     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1766     _cf = 0;
   1767     _flag_k = FK_TEST;
   1768 L_47046F53:
   1769     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046F57; /* 0x47046F53: je 0x47046f57 */
   1770 L_47046F55:
   1771     ebp = eax; /* 0x47046F55: mov ebp, eax */
   1772 L_47046F57:
   1773     RECOMP_ICALL(0x47039020u); /* 0x47046F57: call 0x47039020 */ /* not lifted */
   1774     RECOMP_FLAGS_IN();
   1775 L_47046F5C:
   1776     esi = eax; /* 0x47046F5C: mov esi, eax */
   1777 L_47046F5E:
   1778     ecx = esi; /* 0x47046F5E: mov ecx, esi */
   1779 L_47046F60:
   1780     RECOMP_ICALL(0x4703B210u); /* 0x47046F60: call 0x4703b210 */ /* not lifted */
   1781     RECOMP_FLAGS_IN();
   1782 L_47046F65:
   1783     PUSH32(esp, eax); /* 0x47046F65: push eax */
   1784 L_47046F66:
   1785     ecx = esi; /* 0x47046F66: mov ecx, esi */
   1786 L_47046F68:
   1787     RECOMP_ICALL(0x4703B240u); /* 0x47046F68: call 0x4703b240 */ /* not lifted */
   1788     RECOMP_FLAGS_IN();
   1789 L_47046F6D:
   1790     PUSH32(esp, eax); /* 0x47046F6D: push eax */
   1791 L_47046F6E:
   1792     ecx = esi; /* 0x47046F6E: mov ecx, esi */
   1793 L_47046F70:
   1794     RECOMP_ICALL(0x4703B080u); /* 0x47046F70: call 0x4703b080 */ /* not lifted */
   1795     RECOMP_FLAGS_IN();
   1796 L_47046F75:
   1797     PUSH32(esp, eax); /* 0x47046F75: push eax */
   1798 L_47046F76:
   1799     PUSH32(esp, ebp); /* 0x47046F76: push ebp */
   1800 L_47046F77:
   1801     PUSH32(esp, 0); /* 0x47046F77: push 0 */
   1802 L_47046F79:
   1803     PUSH32(esp, 0x174u); /* 0x47046F79: push 0x174 */
   1804 L_47046F7E:
   1805     PUSH32(esp, 0x471088D0u); /* 0x47046F7E: push 0x471088d0 */
   1806 L_47046F83:
   1807     ecx = esi; /* 0x47046F83: mov ecx, esi */
   1808 L_47046F85:
   1809     RECOMP_ICALL(0x4703A340u); /* 0x47046F85: call 0x4703a340 */ /* not lifted */
   1810     RECOMP_FLAGS_IN();
   1811 L_47046F8A:
   1812     edx = MEM32(esp + 0x10); /* 0x47046F8A: mov edx, dword ptr [esp + 0x10] */
   1813 L_47046F8E:
   1814     eax = MEM32(edx + 0x4); /* 0x47046F8E: mov eax, dword ptr [edx + 4] */
   1815 L_47046F91:
   1816     PUSH32(esp, eax); /* 0x47046F91: push eax */
   1817 L_47046F92:
   1818     PUSH32(esp, 0x47108808u); /* 0x47046F92: push 0x47108808 */
   1819 L_47046F97:
   1820     PUSH32(esp, 4); /* 0x47046F97: push 4 */
   1821 L_47046F99:
   1822     PUSH32(esp, esi); /* 0x47046F99: push esi */
   1823 L_47046F9A:
   1824     RECOMP_ICALL(0x47039830u); /* 0x47046F9A: call 0x47039830 */ /* not lifted */
   1825     RECOMP_FLAGS_IN();
   1826 L_47046F9F:
   1827     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1828     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1829     esp = esp + 0x10u; /* 0x47046F9F: add esp, 0x10 */
   1830     _flag_k = FK_ADD;
   1831 L_47046FA2:
   1832     eax = MEM32(esp + 0x10); /* 0x47046FA2: mov eax, dword ptr [esp + 0x10] */
   1833 L_47046FA6:
   1834     ecx = MEM32(eax + 0x8); /* 0x47046FA6: mov ecx, dword ptr [eax + 8] */
   1835 L_47046FA9:
   1836     /* test ecx, ecx */ /* 0x47046FA9: test ecx, ecx */
   1837     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1838     _cf = 0;
   1839     _flag_k = FK_TEST;
   1840 L_47046FAB:
   1841     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47047000; /* 0x47046FAB: je 0x47047000 */
   1842 L_47046FAD:
   1843     RECOMP_ICALL(edi); /* 0x47046FAD: call edi */
   1844     RECOMP_FLAGS_IN();
   1845 L_47046FAF:
   1846     ebp = eax; /* 0x47046FAF: mov ebp, eax */
   1847 L_47046FB1:
   1848     RECOMP_ICALL(ebx); /* 0x47046FB1: call ebx */
   1849     RECOMP_FLAGS_IN();
   1850 L_47046FB3:
   1851     eax = MEM32(eax); /* 0x47046FB3: mov eax, dword ptr [eax] */
   1852 L_47046FB5:
   1853     /* test eax, eax */ /* 0x47046FB5: test eax, eax */
   1854     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1855     _cf = 0;
   1856     _flag_k = FK_TEST;
   1857 L_47046FB7:
   1858     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47046FBB; /* 0x47046FB7: je 0x47046fbb */
   1859 L_47046FB9:
   1860     ebp = eax; /* 0x47046FB9: mov ebp, eax */
   1861 L_47046FBB:
   1862     RECOMP_ICALL(0x47039020u); /* 0x47046FBB: call 0x47039020 */ /* not lifted */
   1863     RECOMP_FLAGS_IN();
   1864 L_47046FC0:
   1865     esi = eax; /* 0x47046FC0: mov esi, eax */
   1866 L_47046FC2:
   1867     ecx = esi; /* 0x47046FC2: mov ecx, esi */
   1868 L_47046FC4:
   1869     RECOMP_ICALL(0x4703B210u); /* 0x47046FC4: call 0x4703b210 */ /* not lifted */
   1870     RECOMP_FLAGS_IN();
   1871 L_47046FC9:
   1872     PUSH32(esp, eax); /* 0x47046FC9: push eax */
   1873 L_47046FCA:
   1874     ecx = esi; /* 0x47046FCA: mov ecx, esi */
   1875 L_47046FCC:
   1876     RECOMP_ICALL(0x4703B240u); /* 0x47046FCC: call 0x4703b240 */ /* not lifted */
   1877     RECOMP_FLAGS_IN();
   1878 L_47046FD1:
   1879     PUSH32(esp, eax); /* 0x47046FD1: push eax */
   1880 L_47046FD2:
   1881     ecx = esi; /* 0x47046FD2: mov ecx, esi */
   1882 L_47046FD4:
   1883     RECOMP_ICALL(0x4703B080u); /* 0x47046FD4: call 0x4703b080 */ /* not lifted */
   1884     RECOMP_FLAGS_IN();
   1885 L_47046FD9:
   1886     PUSH32(esp, eax); /* 0x47046FD9: push eax */
   1887 L_47046FDA:
   1888     PUSH32(esp, ebp); /* 0x47046FDA: push ebp */
   1889 L_47046FDB:
   1890     PUSH32(esp, 0); /* 0x47046FDB: push 0 */
   1891 L_47046FDD:
   1892     PUSH32(esp, 0x17Au); /* 0x47046FDD: push 0x17a */
   1893 L_47046FE2:
   1894     PUSH32(esp, 0x471088D0u); /* 0x47046FE2: push 0x471088d0 */
   1895 L_47046FE7:
   1896     ecx = esi; /* 0x47046FE7: mov ecx, esi */
   1897 L_47046FE9:
   1898     RECOMP_ICALL(0x4703A340u); /* 0x47046FE9: call 0x4703a340 */ /* not lifted */
   1899     RECOMP_FLAGS_IN();
   1900 L_47046FEE:
   1901     PUSH32(esp, 0x471087F4u); /* 0x47046FEE: push 0x471087f4 */
   1902 L_47046FF3:
   1903     PUSH32(esp, 4); /* 0x47046FF3: push 4 */
   1904 L_47046FF5:
   1905     PUSH32(esp, esi); /* 0x47046FF5: push esi */
   1906 L_47046FF6:
   1907     RECOMP_ICALL(0x47039830u); /* 0x47046FF6: call 0x47039830 */ /* not lifted */
   1908     RECOMP_FLAGS_IN();
   1909 L_47046FFB:
   1910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1912     esp = esp + 0xCu; /* 0x47046FFB: add esp, 0xc */
   1913     _flag_k = FK_ADD;
   1914 L_47046FFE:
   1915     goto L_47047072; /* 0x47046FFE: jmp 0x47047072 */
   1916 L_47047000:
   1917     ecx = MEM32(eax + 0xC); /* 0x47047000: mov ecx, dword ptr [eax + 0xc] */
   1918 L_47047003:
   1919     edx = MEM32(eax + 0x10); /* 0x47047003: mov edx, dword ptr [eax + 0x10] */
   1920 L_47047006:
   1921     MEM32(esp + 0x14) = ecx; /* 0x47047006: mov dword ptr [esp + 0x14], ecx */
   1922 L_4704700A:
   1923     ecx = esp + 0x14; /* 0x4704700A: lea ecx, [esp + 0x14] */
   1924 L_4704700E:
   1925     MEM32(esp + 0x18) = edx; /* 0x4704700E: mov dword ptr [esp + 0x18], edx */
   1926 L_47047012:
   1927     RECOMP_ICALL(0x470543C0u); /* 0x47047012: call 0x470543c0 */ /* not lifted */
   1928     RECOMP_FLAGS_IN();
   1929 L_47047017:
   1930     RECOMP_ICALL(edi); /* 0x47047017: call edi */
   1931     RECOMP_FLAGS_IN();
   1932 L_47047019:
   1933     ebp = eax; /* 0x47047019: mov ebp, eax */
   1934 L_4704701B:
   1935     RECOMP_ICALL(ebx); /* 0x4704701B: call ebx */
   1936     RECOMP_FLAGS_IN();
   1937 L_4704701D:
   1938     eax = MEM32(eax); /* 0x4704701D: mov eax, dword ptr [eax] */
   1939 L_4704701F:
   1940     /* test eax, eax */ /* 0x4704701F: test eax, eax */
   1941     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1942     _cf = 0;
   1943     _flag_k = FK_TEST;
   1944 L_47047021:
   1945     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47047025; /* 0x47047021: je 0x47047025 */
   1946 L_47047023:
   1947     ebp = eax; /* 0x47047023: mov ebp, eax */
   1948 L_47047025:
   1949     RECOMP_ICALL(0x47039020u); /* 0x47047025: call 0x47039020 */ /* not lifted */
   1950     RECOMP_FLAGS_IN();
   1951 L_4704702A:
   1952     esi = eax; /* 0x4704702A: mov esi, eax */
   1953 L_4704702C:
   1954     ecx = esi; /* 0x4704702C: mov ecx, esi */
   1955 L_4704702E:
   1956     RECOMP_ICALL(0x4703B210u); /* 0x4704702E: call 0x4703b210 */ /* not lifted */
   1957     RECOMP_FLAGS_IN();
   1958 L_47047033:
   1959     PUSH32(esp, eax); /* 0x47047033: push eax */
   1960 L_47047034:
   1961     ecx = esi; /* 0x47047034: mov ecx, esi */
   1962 L_47047036:
   1963     RECOMP_ICALL(0x4703B240u); /* 0x47047036: call 0x4703b240 */ /* not lifted */
   1964     RECOMP_FLAGS_IN();
   1965 L_4704703B:
   1966     PUSH32(esp, eax); /* 0x4704703B: push eax */
   1967 L_4704703C:
   1968     ecx = esi; /* 0x4704703C: mov ecx, esi */
   1969 L_4704703E:
   1970     RECOMP_ICALL(0x4703B080u); /* 0x4704703E: call 0x4703b080 */ /* not lifted */
   1971     RECOMP_FLAGS_IN();
   1972 L_47047043:
   1973     PUSH32(esp, eax); /* 0x47047043: push eax */
   1974 L_47047044:
   1975     PUSH32(esp, ebp); /* 0x47047044: push ebp */
   1976 L_47047045:
   1977     PUSH32(esp, 0); /* 0x47047045: push 0 */
   1978 L_47047047:
   1979     PUSH32(esp, 0x183u); /* 0x47047047: push 0x183 */
   1980 L_4704704C:
   1981     PUSH32(esp, 0x471088D0u); /* 0x4704704C: push 0x471088d0 */
   1982 L_47047051:
   1983     ecx = esi; /* 0x47047051: mov ecx, esi */
   1984 L_47047053:
   1985     RECOMP_ICALL(0x4703A340u); /* 0x47047053: call 0x4703a340 */ /* not lifted */
   1986     RECOMP_FLAGS_IN();
   1987 L_47047058:
   1988     eax = MEM32(esp + 0x18); /* 0x47047058: mov eax, dword ptr [esp + 0x18] */
   1989 L_4704705C:
   1990     ecx = MEM32(esp + 0x14); /* 0x4704705C: mov ecx, dword ptr [esp + 0x14] */
   1991 L_47047060:
   1992     PUSH32(esp, eax); /* 0x47047060: push eax */
   1993 L_47047061:
   1994     PUSH32(esp, ecx); /* 0x47047061: push ecx */
   1995 L_47047062:
   1996     PUSH32(esp, 0x471087D0u); /* 0x47047062: push 0x471087d0 */
   1997 L_47047067:
   1998     PUSH32(esp, 4); /* 0x47047067: push 4 */
   1999 L_47047069:
   2000     PUSH32(esp, esi); /* 0x47047069: push esi */
   2001 L_4704706A:
   2002     RECOMP_ICALL(0x47039830u); /* 0x4704706A: call 0x47039830 */ /* not lifted */
   2003     RECOMP_FLAGS_IN();
   2004 L_4704706F:
   2005     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2006     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2007     esp = esp + 0x14u; /* 0x4704706F: add esp, 0x14 */
   2008     _flag_k = FK_ADD;
   2009 L_47047072:
   2010     RECOMP_ICALL(edi); /* 0x47047072: call edi */
   2011     RECOMP_FLAGS_IN();
   2012 L_47047074:
   2013     ebp = eax; /* 0x47047074: mov ebp, eax */
   2014 L_47047076:
   2015     RECOMP_ICALL(ebx); /* 0x47047076: call ebx */
   2016     RECOMP_FLAGS_IN();
   2017 L_47047078:
   2018     eax = MEM32(eax); /* 0x47047078: mov eax, dword ptr [eax] */
   2019 L_4704707A:
   2020     /* test eax, eax */ /* 0x4704707A: test eax, eax */
   2021     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2022     _cf = 0;
   2023     _flag_k = FK_TEST;
   2024 L_4704707C:
   2025     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47047080; /* 0x4704707C: je 0x47047080 */
   2026 L_4704707E:
   2027     ebp = eax; /* 0x4704707E: mov ebp, eax */
   2028 L_47047080:
   2029     RECOMP_ICALL(0x47039020u); /* 0x47047080: call 0x47039020 */ /* not lifted */
   2030     RECOMP_FLAGS_IN();
   2031 L_47047085:
   2032     esi = eax; /* 0x47047085: mov esi, eax */
   2033 L_47047087:
   2034     ecx = esi; /* 0x47047087: mov ecx, esi */
   2035 L_47047089:
   2036     RECOMP_ICALL(0x4703B210u); /* 0x47047089: call 0x4703b210 */ /* not lifted */
   2037     RECOMP_FLAGS_IN();
   2038 L_4704708E:
   2039     PUSH32(esp, eax); /* 0x4704708E: push eax */
   2040 L_4704708F:
   2041     ecx = esi; /* 0x4704708F: mov ecx, esi */
   2042 L_47047091:
   2043     RECOMP_ICALL(0x4703B240u); /* 0x47047091: call 0x4703b240 */ /* not lifted */
   2044     RECOMP_FLAGS_IN();
   2045 L_47047096:
   2046     PUSH32(esp, eax); /* 0x47047096: push eax */
   2047 L_47047097:
   2048     ecx = esi; /* 0x47047097: mov ecx, esi */
   2049 L_47047099:
   2050     RECOMP_ICALL(0x4703B080u); /* 0x47047099: call 0x4703b080 */ /* not lifted */
   2051     RECOMP_FLAGS_IN();
   2052 L_4704709E:
   2053     PUSH32(esp, eax); /* 0x4704709E: push eax */
   2054 L_4704709F:
   2055     PUSH32(esp, ebp); /* 0x4704709F: push ebp */
   2056 L_470470A0:
   2057     PUSH32(esp, 0); /* 0x470470A0: push 0 */
   2058 L_470470A2:
   2059     PUSH32(esp, 0x187u); /* 0x470470A2: push 0x187 */
   2060 L_470470A7:
   2061     PUSH32(esp, 0x471088D0u); /* 0x470470A7: push 0x471088d0 */
   2062 L_470470AC:
   2063     ecx = esi; /* 0x470470AC: mov ecx, esi */
   2064 L_470470AE:
   2065     RECOMP_ICALL(0x4703A340u); /* 0x470470AE: call 0x4703a340 */ /* not lifted */
   2066     RECOMP_FLAGS_IN();
   2067 L_470470B3:
   2068     edx = MEM32(esp + 0x10); /* 0x470470B3: mov edx, dword ptr [esp + 0x10] */
   2069 L_470470B7:
   2070     eax = MEM32(edx + 0x14); /* 0x470470B7: mov eax, dword ptr [edx + 0x14] */
   2071 L_470470BA:
   2072     PUSH32(esp, eax); /* 0x470470BA: push eax */
   2073 L_470470BB:
   2074     PUSH32(esp, 0x471087B8u); /* 0x470470BB: push 0x471087b8 */
   2075 L_470470C0:
   2076     PUSH32(esp, 4); /* 0x470470C0: push 4 */
   2077 L_470470C2:
   2078     PUSH32(esp, esi); /* 0x470470C2: push esi */
   2079 L_470470C3:
   2080     RECOMP_ICALL(0x47039830u); /* 0x470470C3: call 0x47039830 */ /* not lifted */
   2081     RECOMP_FLAGS_IN();
   2082 L_470470C8:
   2083     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2084     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2085     esp = esp + 0x10u; /* 0x470470C8: add esp, 0x10 */
   2086     _flag_k = FK_ADD;
   2087 L_470470CB:
   2088     RECOMP_ICALL(edi); /* 0x470470CB: call edi */
   2089     RECOMP_FLAGS_IN();
   2090 L_470470CD:
   2091     ebp = eax; /* 0x470470CD: mov ebp, eax */
   2092 L_470470CF:
   2093     RECOMP_ICALL(ebx); /* 0x470470CF: call ebx */
   2094     RECOMP_FLAGS_IN();
   2095 L_470470D1:
   2096     eax = MEM32(eax); /* 0x470470D1: mov eax, dword ptr [eax] */
   2097 L_470470D3:
   2098     /* test eax, eax */ /* 0x470470D3: test eax, eax */
   2099     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2100     _cf = 0;
   2101     _flag_k = FK_TEST;
   2102 L_470470D5:
   2103     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470470D9; /* 0x470470D5: je 0x470470d9 */
   2104 L_470470D7:
   2105     ebp = eax; /* 0x470470D7: mov ebp, eax */
   2106 L_470470D9:
   2107     RECOMP_ICALL(0x47039020u); /* 0x470470D9: call 0x47039020 */ /* not lifted */
   2108     RECOMP_FLAGS_IN();
   2109 L_470470DE:
   2110     esi = eax; /* 0x470470DE: mov esi, eax */
   2111 L_470470E0:
   2112     ecx = esi; /* 0x470470E0: mov ecx, esi */
   2113 L_470470E2:
   2114     RECOMP_ICALL(0x4703B210u); /* 0x470470E2: call 0x4703b210 */ /* not lifted */
   2115     RECOMP_FLAGS_IN();
   2116 L_470470E7:
   2117     PUSH32(esp, eax); /* 0x470470E7: push eax */
   2118 L_470470E8:
   2119     ecx = esi; /* 0x470470E8: mov ecx, esi */
   2120 L_470470EA:
   2121     RECOMP_ICALL(0x4703B240u); /* 0x470470EA: call 0x4703b240 */ /* not lifted */
   2122     RECOMP_FLAGS_IN();
   2123 L_470470EF:
   2124     PUSH32(esp, eax); /* 0x470470EF: push eax */
   2125 L_470470F0:
   2126     ecx = esi; /* 0x470470F0: mov ecx, esi */
   2127 L_470470F2:
   2128     RECOMP_ICALL(0x4703B080u); /* 0x470470F2: call 0x4703b080 */ /* not lifted */
   2129     RECOMP_FLAGS_IN();
   2130 L_470470F7:
   2131     PUSH32(esp, eax); /* 0x470470F7: push eax */
   2132 L_470470F8:
   2133     PUSH32(esp, ebp); /* 0x470470F8: push ebp */
   2134 L_470470F9:
   2135     PUSH32(esp, 0); /* 0x470470F9: push 0 */
   2136 L_470470FB:
   2137     PUSH32(esp, 0x18Au); /* 0x470470FB: push 0x18a */
   2138 L_47047100:
   2139     PUSH32(esp, 0x471088D0u); /* 0x47047100: push 0x471088d0 */
   2140 L_47047105:
   2141     ecx = esi; /* 0x47047105: mov ecx, esi */
   2142 L_47047107:
   2143     RECOMP_ICALL(0x4703A340u); /* 0x47047107: call 0x4703a340 */ /* not lifted */
   2144     RECOMP_FLAGS_IN();
   2145 L_4704710C:
   2146     ecx = MEM32(esp + 0x10); /* 0x4704710C: mov ecx, dword ptr [esp + 0x10] */
   2147 L_47047110:
   2148     edx = MEM32(ecx + 0x18); /* 0x47047110: mov edx, dword ptr [ecx + 0x18] */
   2149 L_47047113:
   2150     PUSH32(esp, edx); /* 0x47047113: push edx */
   2151 L_47047114:
   2152     PUSH32(esp, 0x471087A0u); /* 0x47047114: push 0x471087a0 */
   2153 L_47047119:
   2154     PUSH32(esp, 4); /* 0x47047119: push 4 */
   2155 L_4704711B:
   2156     PUSH32(esp, esi); /* 0x4704711B: push esi */
   2157 L_4704711C:
   2158     RECOMP_ICALL(0x47039830u); /* 0x4704711C: call 0x47039830 */ /* not lifted */
   2159     RECOMP_FLAGS_IN();
   2160 L_47047121:
   2161     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2162     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2163     esp = esp + 0x10u; /* 0x47047121: add esp, 0x10 */
   2164     _flag_k = FK_ADD;
   2165 L_47047124:
   2166     RECOMP_ICALL(edi); /* 0x47047124: call edi */
   2167     RECOMP_FLAGS_IN();
   2168 L_47047126:
   2169     esi = eax; /* 0x47047126: mov esi, eax */
   2170 L_47047128:
   2171     RECOMP_ICALL(ebx); /* 0x47047128: call ebx */
   2172     RECOMP_FLAGS_IN();
   2173 L_4704712A:
   2174     eax = MEM32(eax); /* 0x4704712A: mov eax, dword ptr [eax] */
   2175 L_4704712C:
   2176     /* test eax, eax */ /* 0x4704712C: test eax, eax */
   2177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2178     _cf = 0;
   2179     _flag_k = FK_TEST;
   2180 L_4704712E:
   2181     edi = esi; /* 0x4704712E: mov edi, esi */
   2182 L_47047130:
   2183     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47047134; /* 0x47047130: je 0x47047134 */
   2184 L_47047132:
   2185     edi = eax; /* 0x47047132: mov edi, eax */
   2186 L_47047134:
   2187     RECOMP_ICALL(0x47039020u); /* 0x47047134: call 0x47039020 */ /* not lifted */
   2188     RECOMP_FLAGS_IN();
   2189 L_47047139:
   2190     esi = eax; /* 0x47047139: mov esi, eax */
   2191 L_4704713B:
   2192     ecx = esi; /* 0x4704713B: mov ecx, esi */
   2193 L_4704713D:
   2194     RECOMP_ICALL(0x4703B210u); /* 0x4704713D: call 0x4703b210 */ /* not lifted */
   2195     RECOMP_FLAGS_IN();
   2196 L_47047142:
   2197     PUSH32(esp, eax); /* 0x47047142: push eax */
   2198 L_47047143:
   2199     ecx = esi; /* 0x47047143: mov ecx, esi */
   2200 L_47047145:
   2201     RECOMP_ICALL(0x4703B240u); /* 0x47047145: call 0x4703b240 */ /* not lifted */
   2202     RECOMP_FLAGS_IN();
   2203 L_4704714A:
   2204     PUSH32(esp, eax); /* 0x4704714A: push eax */
   2205 L_4704714B:
   2206     ecx = esi; /* 0x4704714B: mov ecx, esi */
   2207 L_4704714D:
   2208     RECOMP_ICALL(0x4703B080u); /* 0x4704714D: call 0x4703b080 */ /* not lifted */
   2209     RECOMP_FLAGS_IN();
   2210 L_47047152:
   2211     PUSH32(esp, eax); /* 0x47047152: push eax */
   2212 L_47047153:
   2213     PUSH32(esp, edi); /* 0x47047153: push edi */
   2214 L_47047154:
   2215     PUSH32(esp, 0); /* 0x47047154: push 0 */
   2216 L_47047156:
   2217     PUSH32(esp, 0x18Du); /* 0x47047156: push 0x18d */
   2218 L_4704715B:
   2219     PUSH32(esp, 0x471088D0u); /* 0x4704715B: push 0x471088d0 */
   2220 L_47047160:
   2221     ecx = esi; /* 0x47047160: mov ecx, esi */
   2222 L_47047162:
   2223     RECOMP_ICALL(0x4703A340u); /* 0x47047162: call 0x4703a340 */ /* not lifted */
   2224     RECOMP_FLAGS_IN();
   2225 L_47047167:
   2226     PUSH32(esp, 0x47108794u); /* 0x47047167: push 0x47108794 */
   2227 L_4704716C:
   2228     PUSH32(esp, 4); /* 0x4704716C: push 4 */
   2229 L_4704716E:
   2230     PUSH32(esp, esi); /* 0x4704716E: push esi */
   2231 L_4704716F:
   2232     RECOMP_ICALL(0x47039830u); /* 0x4704716F: call 0x47039830 */ /* not lifted */
   2233     RECOMP_FLAGS_IN();
   2234 L_47047174:
   2235     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2236     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2237     esp = esp + 0xCu; /* 0x47047174: add esp, 0xc */
   2238     _flag_k = FK_ADD;
   2239 L_47047177:
   2240     edi = POP32_VAL(esp); /* 0x47047177: pop edi */
   2241 L_47047178:
   2242     esi = POP32_VAL(esp); /* 0x47047178: pop esi */
   2243 L_47047179:
   2244     ebp = POP32_VAL(esp); /* 0x47047179: pop ebp */
   2245 L_4704717A:
   2246     ebx = POP32_VAL(esp); /* 0x4704717A: pop ebx */
   2247 L_4704717B:
   2248     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2249     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2250     esp = esp + 0xCu; /* 0x4704717B: add esp, 0xc */
   2251     _flag_k = FK_ADD;
   2252 L_4704717E:
   2253     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704717E: ret  */
   2254   _ljump:
   2255     switch (_itail_tgt) {
   2256       case 0x47046B10u: goto L_47046B10;
   2257       case 0x47046B13u: goto L_47046B13;
   2258       case 0x47046B14u: goto L_47046B14;
   2259       case 0x47046B15u: goto L_47046B15;
   2260       case 0x47046B16u: goto L_47046B16;
   2261       case 0x47046B17u: goto L_47046B17;
   2262       case 0x47046B1Du: goto L_47046B1D;
   2263       case 0x47046B21u: goto L_47046B21;
   2264       case 0x47046B23u: goto L_47046B23;
   2265       case 0x47046B29u: goto L_47046B29;
   2266       case 0x47046B2Bu: goto L_47046B2B;
   2267       case 0x47046B2Du: goto L_47046B2D;
   2268       case 0x47046B2Fu: goto L_47046B2F;
   2269       case 0x47046B31u: goto L_47046B31;
   2270       case 0x47046B33u: goto L_47046B33;
   2271       case 0x47046B35u: goto L_47046B35;
   2272       case 0x47046B3Au: goto L_47046B3A;
   2273       case 0x47046B3Cu: goto L_47046B3C;
   2274       case 0x47046B3Eu: goto L_47046B3E;
   2275       case 0x47046B43u: goto L_47046B43;
   2276       case 0x47046B44u: goto L_47046B44;
   2277       case 0x47046B46u: goto L_47046B46;
   2278       case 0x47046B4Bu: goto L_47046B4B;
   2279       case 0x47046B4Cu: goto L_47046B4C;
   2280       case 0x47046B4Eu: goto L_47046B4E;
   2281       case 0x47046B53u: goto L_47046B53;
   2282       case 0x47046B54u: goto L_47046B54;
   2283       case 0x47046B55u: goto L_47046B55;
   2284       case 0x47046B57u: goto L_47046B57;
   2285       case 0x47046B5Cu: goto L_47046B5C;
   2286       case 0x47046B61u: goto L_47046B61;
   2287       case 0x47046B63u: goto L_47046B63;
   2288       case 0x47046B68u: goto L_47046B68;
   2289       case 0x47046B6Cu: goto L_47046B6C;
   2290       case 0x47046B6Eu: goto L_47046B6E;
   2291       case 0x47046B6Fu: goto L_47046B6F;
   2292       case 0x47046B74u: goto L_47046B74;
   2293       case 0x47046B76u: goto L_47046B76;
   2294       case 0x47046B77u: goto L_47046B77;
   2295       case 0x47046B7Cu: goto L_47046B7C;
   2296       case 0x47046B7Fu: goto L_47046B7F;
   2297       case 0x47046B81u: goto L_47046B81;
   2298       case 0x47046B83u: goto L_47046B83;
   2299       case 0x47046B85u: goto L_47046B85;
   2300       case 0x47046B87u: goto L_47046B87;
   2301       case 0x47046B89u: goto L_47046B89;
   2302       case 0x47046B8Bu: goto L_47046B8B;
   2303       case 0x47046B8Du: goto L_47046B8D;
   2304       case 0x47046B92u: goto L_47046B92;
   2305       case 0x47046B94u: goto L_47046B94;
   2306       case 0x47046B96u: goto L_47046B96;
   2307       case 0x47046B9Bu: goto L_47046B9B;
   2308       case 0x47046B9Cu: goto L_47046B9C;
   2309       case 0x47046B9Eu: goto L_47046B9E;
   2310       case 0x47046BA3u: goto L_47046BA3;
   2311       case 0x47046BA4u: goto L_47046BA4;
   2312       case 0x47046BA6u: goto L_47046BA6;
   2313       case 0x47046BABu: goto L_47046BAB;
   2314       case 0x47046BACu: goto L_47046BAC;
   2315       case 0x47046BADu: goto L_47046BAD;
   2316       case 0x47046BAFu: goto L_47046BAF;
   2317       case 0x47046BB4u: goto L_47046BB4;
   2318       case 0x47046BB9u: goto L_47046BB9;
   2319       case 0x47046BBBu: goto L_47046BBB;
   2320       case 0x47046BC0u: goto L_47046BC0;
   2321       case 0x47046BC5u: goto L_47046BC5;
   2322       case 0x47046BC7u: goto L_47046BC7;
   2323       case 0x47046BC8u: goto L_47046BC8;
   2324       case 0x47046BCDu: goto L_47046BCD;
   2325       case 0x47046BD1u: goto L_47046BD1;
   2326       case 0x47046BD4u: goto L_47046BD4;
   2327       case 0x47046BD7u: goto L_47046BD7;
   2328       case 0x47046BD8u: goto L_47046BD8;
   2329       case 0x47046BDBu: goto L_47046BDB;
   2330       case 0x47046BE1u: goto L_47046BE1;
   2331       case 0x47046BE3u: goto L_47046BE3;
   2332       case 0x47046BE9u: goto L_47046BE9;
   2333       case 0x47046BF0u: goto L_47046BF0;
   2334       case 0x47046BF2u: goto L_47046BF2;
   2335       case 0x47046BF4u: goto L_47046BF4;
   2336       case 0x47046BF6u: goto L_47046BF6;
   2337       case 0x47046BF8u: goto L_47046BF8;
   2338       case 0x47046BFAu: goto L_47046BFA;
   2339       case 0x47046BFCu: goto L_47046BFC;
   2340       case 0x47046BFEu: goto L_47046BFE;
   2341       case 0x47046C03u: goto L_47046C03;
   2342       case 0x47046C05u: goto L_47046C05;
   2343       case 0x47046C07u: goto L_47046C07;
   2344       case 0x47046C0Cu: goto L_47046C0C;
   2345       case 0x47046C0Du: goto L_47046C0D;
   2346       case 0x47046C0Fu: goto L_47046C0F;
   2347       case 0x47046C14u: goto L_47046C14;
   2348       case 0x47046C15u: goto L_47046C15;
   2349       case 0x47046C17u: goto L_47046C17;
   2350       case 0x47046C1Cu: goto L_47046C1C;
   2351       case 0x47046C1Du: goto L_47046C1D;
   2352       case 0x47046C1Eu: goto L_47046C1E;
   2353       case 0x47046C20u: goto L_47046C20;
   2354       case 0x47046C25u: goto L_47046C25;
   2355       case 0x47046C2Au: goto L_47046C2A;
   2356       case 0x47046C2Cu: goto L_47046C2C;
   2357       case 0x47046C31u: goto L_47046C31;
   2358       case 0x47046C36u: goto L_47046C36;
   2359       case 0x47046C38u: goto L_47046C38;
   2360       case 0x47046C39u: goto L_47046C39;
   2361       case 0x47046C3Eu: goto L_47046C3E;
   2362       case 0x47046C41u: goto L_47046C41;
   2363       case 0x47046C46u: goto L_47046C46;
   2364       case 0x47046C48u: goto L_47046C48;
   2365       case 0x47046C4Au: goto L_47046C4A;
   2366       case 0x47046C4Cu: goto L_47046C4C;
   2367       case 0x47046C4Eu: goto L_47046C4E;
   2368       case 0x47046C50u: goto L_47046C50;
   2369       case 0x47046C52u: goto L_47046C52;
   2370       case 0x47046C54u: goto L_47046C54;
   2371       case 0x47046C59u: goto L_47046C59;
   2372       case 0x47046C5Bu: goto L_47046C5B;
   2373       case 0x47046C5Du: goto L_47046C5D;
   2374       case 0x47046C62u: goto L_47046C62;
   2375       case 0x47046C63u: goto L_47046C63;
   2376       case 0x47046C65u: goto L_47046C65;
   2377       case 0x47046C6Au: goto L_47046C6A;
   2378       case 0x47046C6Bu: goto L_47046C6B;
   2379       case 0x47046C6Du: goto L_47046C6D;
   2380       case 0x47046C72u: goto L_47046C72;
   2381       case 0x47046C73u: goto L_47046C73;
   2382       case 0x47046C74u: goto L_47046C74;
   2383       case 0x47046C76u: goto L_47046C76;
   2384       case 0x47046C7Bu: goto L_47046C7B;
   2385       case 0x47046C80u: goto L_47046C80;
   2386       case 0x47046C82u: goto L_47046C82;
   2387       case 0x47046C87u: goto L_47046C87;
   2388       case 0x47046C8Cu: goto L_47046C8C;
   2389       case 0x47046C8Eu: goto L_47046C8E;
   2390       case 0x47046C8Fu: goto L_47046C8F;
   2391       case 0x47046C94u: goto L_47046C94;
   2392       case 0x47046C97u: goto L_47046C97;
   2393       case 0x47046C9Cu: goto L_47046C9C;
   2394       case 0x47046C9Eu: goto L_47046C9E;
   2395       case 0x47046CA0u: goto L_47046CA0;
   2396       case 0x47046CA2u: goto L_47046CA2;
   2397       case 0x47046CA4u: goto L_47046CA4;
   2398       case 0x47046CA6u: goto L_47046CA6;
   2399       case 0x47046CA8u: goto L_47046CA8;
   2400       case 0x47046CAAu: goto L_47046CAA;
   2401       case 0x47046CAFu: goto L_47046CAF;
   2402       case 0x47046CB1u: goto L_47046CB1;
   2403       case 0x47046CB3u: goto L_47046CB3;
   2404       case 0x47046CB8u: goto L_47046CB8;
   2405       case 0x47046CB9u: goto L_47046CB9;
   2406       case 0x47046CBBu: goto L_47046CBB;
   2407       case 0x47046CC0u: goto L_47046CC0;
   2408       case 0x47046CC1u: goto L_47046CC1;
   2409       case 0x47046CC3u: goto L_47046CC3;
   2410       case 0x47046CC8u: goto L_47046CC8;
   2411       case 0x47046CC9u: goto L_47046CC9;
   2412       case 0x47046CCAu: goto L_47046CCA;
   2413       case 0x47046CCCu: goto L_47046CCC;
   2414       case 0x47046CD1u: goto L_47046CD1;
   2415       case 0x47046CD6u: goto L_47046CD6;
   2416       case 0x47046CD8u: goto L_47046CD8;
   2417       case 0x47046CDDu: goto L_47046CDD;
   2418       case 0x47046CE2u: goto L_47046CE2;
   2419       case 0x47046CE4u: goto L_47046CE4;
   2420       case 0x47046CE5u: goto L_47046CE5;
   2421       case 0x47046CEAu: goto L_47046CEA;
   2422       case 0x47046CEDu: goto L_47046CED;
   2423       case 0x47046CF2u: goto L_47046CF2;
   2424       case 0x47046CF4u: goto L_47046CF4;
   2425       case 0x47046CF6u: goto L_47046CF6;
   2426       case 0x47046CF8u: goto L_47046CF8;
   2427       case 0x47046CFAu: goto L_47046CFA;
   2428       case 0x47046CFCu: goto L_47046CFC;
   2429       case 0x47046CFEu: goto L_47046CFE;
   2430       case 0x47046D00u: goto L_47046D00;
   2431       case 0x47046D05u: goto L_47046D05;
   2432       case 0x47046D07u: goto L_47046D07;
   2433       case 0x47046D09u: goto L_47046D09;
   2434       case 0x47046D0Eu: goto L_47046D0E;
   2435       case 0x47046D0Fu: goto L_47046D0F;
   2436       case 0x47046D11u: goto L_47046D11;
   2437       case 0x47046D16u: goto L_47046D16;
   2438       case 0x47046D17u: goto L_47046D17;
   2439       case 0x47046D19u: goto L_47046D19;
   2440       case 0x47046D1Eu: goto L_47046D1E;
   2441       case 0x47046D1Fu: goto L_47046D1F;
   2442       case 0x47046D20u: goto L_47046D20;
   2443       case 0x47046D22u: goto L_47046D22;
   2444       case 0x47046D27u: goto L_47046D27;
   2445       case 0x47046D2Cu: goto L_47046D2C;
   2446       case 0x47046D2Eu: goto L_47046D2E;
   2447       case 0x47046D33u: goto L_47046D33;
   2448       case 0x47046D38u: goto L_47046D38;
   2449       case 0x47046D3Au: goto L_47046D3A;
   2450       case 0x47046D3Bu: goto L_47046D3B;
   2451       case 0x47046D40u: goto L_47046D40;
   2452       case 0x47046D43u: goto L_47046D43;
   2453       case 0x47046D48u: goto L_47046D48;
   2454       case 0x47046D4Au: goto L_47046D4A;
   2455       case 0x47046D4Cu: goto L_47046D4C;
   2456       case 0x47046D4Eu: goto L_47046D4E;
   2457       case 0x47046D50u: goto L_47046D50;
   2458       case 0x47046D52u: goto L_47046D52;
   2459       case 0x47046D54u: goto L_47046D54;
   2460       case 0x47046D56u: goto L_47046D56;
   2461       case 0x47046D5Bu: goto L_47046D5B;
   2462       case 0x47046D5Du: goto L_47046D5D;
   2463       case 0x47046D5Fu: goto L_47046D5F;
   2464       case 0x47046D64u: goto L_47046D64;
   2465       case 0x47046D65u: goto L_47046D65;
   2466       case 0x47046D67u: goto L_47046D67;
   2467       case 0x47046D6Cu: goto L_47046D6C;
   2468       case 0x47046D6Du: goto L_47046D6D;
   2469       case 0x47046D6Fu: goto L_47046D6F;
   2470       case 0x47046D74u: goto L_47046D74;
   2471       case 0x47046D75u: goto L_47046D75;
   2472       case 0x47046D76u: goto L_47046D76;
   2473       case 0x47046D78u: goto L_47046D78;
   2474       case 0x47046D7Du: goto L_47046D7D;
   2475       case 0x47046D82u: goto L_47046D82;
   2476       case 0x47046D84u: goto L_47046D84;
   2477       case 0x47046D89u: goto L_47046D89;
   2478       case 0x47046D8Eu: goto L_47046D8E;
   2479       case 0x47046D90u: goto L_47046D90;
   2480       case 0x47046D91u: goto L_47046D91;
   2481       case 0x47046D96u: goto L_47046D96;
   2482       case 0x47046D99u: goto L_47046D99;
   2483       case 0x47046D9Eu: goto L_47046D9E;
   2484       case 0x47046DA0u: goto L_47046DA0;
   2485       case 0x47046DA2u: goto L_47046DA2;
   2486       case 0x47046DA4u: goto L_47046DA4;
   2487       case 0x47046DA6u: goto L_47046DA6;
   2488       case 0x47046DA8u: goto L_47046DA8;
   2489       case 0x47046DAAu: goto L_47046DAA;
   2490       case 0x47046DACu: goto L_47046DAC;
   2491       case 0x47046DB1u: goto L_47046DB1;
   2492       case 0x47046DB3u: goto L_47046DB3;
   2493       case 0x47046DB5u: goto L_47046DB5;
   2494       case 0x47046DBAu: goto L_47046DBA;
   2495       case 0x47046DBBu: goto L_47046DBB;
   2496       case 0x47046DBDu: goto L_47046DBD;
   2497       case 0x47046DC2u: goto L_47046DC2;
   2498       case 0x47046DC3u: goto L_47046DC3;
   2499       case 0x47046DC5u: goto L_47046DC5;
   2500       case 0x47046DCAu: goto L_47046DCA;
   2501       case 0x47046DCBu: goto L_47046DCB;
   2502       case 0x47046DCCu: goto L_47046DCC;
   2503       case 0x47046DCEu: goto L_47046DCE;
   2504       case 0x47046DD3u: goto L_47046DD3;
   2505       case 0x47046DD8u: goto L_47046DD8;
   2506       case 0x47046DDAu: goto L_47046DDA;
   2507       case 0x47046DDFu: goto L_47046DDF;
   2508       case 0x47046DE4u: goto L_47046DE4;
   2509       case 0x47046DE6u: goto L_47046DE6;
   2510       case 0x47046DE7u: goto L_47046DE7;
   2511       case 0x47046DECu: goto L_47046DEC;
   2512       case 0x47046DEFu: goto L_47046DEF;
   2513       case 0x47046DF4u: goto L_47046DF4;
   2514       case 0x47046DF6u: goto L_47046DF6;
   2515       case 0x47046DF8u: goto L_47046DF8;
   2516       case 0x47046DFAu: goto L_47046DFA;
   2517       case 0x47046DFCu: goto L_47046DFC;
   2518       case 0x47046DFEu: goto L_47046DFE;
   2519       case 0x47046E00u: goto L_47046E00;
   2520       case 0x47046E02u: goto L_47046E02;
   2521       case 0x47046E07u: goto L_47046E07;
   2522       case 0x47046E09u: goto L_47046E09;
   2523       case 0x47046E0Bu: goto L_47046E0B;
   2524       case 0x47046E10u: goto L_47046E10;
   2525       case 0x47046E11u: goto L_47046E11;
   2526       case 0x47046E13u: goto L_47046E13;
   2527       case 0x47046E18u: goto L_47046E18;
   2528       case 0x47046E19u: goto L_47046E19;
   2529       case 0x47046E1Bu: goto L_47046E1B;
   2530       case 0x47046E20u: goto L_47046E20;
   2531       case 0x47046E21u: goto L_47046E21;
   2532       case 0x47046E22u: goto L_47046E22;
   2533       case 0x47046E24u: goto L_47046E24;
   2534       case 0x47046E29u: goto L_47046E29;
   2535       case 0x47046E2Eu: goto L_47046E2E;
   2536       case 0x47046E30u: goto L_47046E30;
   2537       case 0x47046E35u: goto L_47046E35;
   2538       case 0x47046E3Au: goto L_47046E3A;
   2539       case 0x47046E3Cu: goto L_47046E3C;
   2540       case 0x47046E3Du: goto L_47046E3D;
   2541       case 0x47046E42u: goto L_47046E42;
   2542       case 0x47046E45u: goto L_47046E45;
   2543       case 0x47046E4Au: goto L_47046E4A;
   2544       case 0x47046E4Cu: goto L_47046E4C;
   2545       case 0x47046E4Eu: goto L_47046E4E;
   2546       case 0x47046E50u: goto L_47046E50;
   2547       case 0x47046E52u: goto L_47046E52;
   2548       case 0x47046E54u: goto L_47046E54;
   2549       case 0x47046E56u: goto L_47046E56;
   2550       case 0x47046E58u: goto L_47046E58;
   2551       case 0x47046E5Du: goto L_47046E5D;
   2552       case 0x47046E5Fu: goto L_47046E5F;
   2553       case 0x47046E61u: goto L_47046E61;
   2554       case 0x47046E66u: goto L_47046E66;
   2555       case 0x47046E67u: goto L_47046E67;
   2556       case 0x47046E69u: goto L_47046E69;
   2557       case 0x47046E6Eu: goto L_47046E6E;
   2558       case 0x47046E6Fu: goto L_47046E6F;
   2559       case 0x47046E71u: goto L_47046E71;
   2560       case 0x47046E76u: goto L_47046E76;
   2561       case 0x47046E77u: goto L_47046E77;
   2562       case 0x47046E78u: goto L_47046E78;
   2563       case 0x47046E7Au: goto L_47046E7A;
   2564       case 0x47046E7Fu: goto L_47046E7F;
   2565       case 0x47046E84u: goto L_47046E84;
   2566       case 0x47046E86u: goto L_47046E86;
   2567       case 0x47046E8Bu: goto L_47046E8B;
   2568       case 0x47046E90u: goto L_47046E90;
   2569       case 0x47046E92u: goto L_47046E92;
   2570       case 0x47046E93u: goto L_47046E93;
   2571       case 0x47046E98u: goto L_47046E98;
   2572       case 0x47046E9Bu: goto L_47046E9B;
   2573       case 0x47046EA0u: goto L_47046EA0;
   2574       case 0x47046EA2u: goto L_47046EA2;
   2575       case 0x47046EA4u: goto L_47046EA4;
   2576       case 0x47046EA6u: goto L_47046EA6;
   2577       case 0x47046EA8u: goto L_47046EA8;
   2578       case 0x47046EAAu: goto L_47046EAA;
   2579       case 0x47046EACu: goto L_47046EAC;
   2580       case 0x47046EAEu: goto L_47046EAE;
   2581       case 0x47046EB3u: goto L_47046EB3;
   2582       case 0x47046EB5u: goto L_47046EB5;
   2583       case 0x47046EB7u: goto L_47046EB7;
   2584       case 0x47046EBCu: goto L_47046EBC;
   2585       case 0x47046EBDu: goto L_47046EBD;
   2586       case 0x47046EBFu: goto L_47046EBF;
   2587       case 0x47046EC4u: goto L_47046EC4;
   2588       case 0x47046EC5u: goto L_47046EC5;
   2589       case 0x47046EC7u: goto L_47046EC7;
   2590       case 0x47046ECCu: goto L_47046ECC;
   2591       case 0x47046ECDu: goto L_47046ECD;
   2592       case 0x47046ECEu: goto L_47046ECE;
   2593       case 0x47046ED0u: goto L_47046ED0;
   2594       case 0x47046ED5u: goto L_47046ED5;
   2595       case 0x47046EDAu: goto L_47046EDA;
   2596       case 0x47046EDCu: goto L_47046EDC;
   2597       case 0x47046EE1u: goto L_47046EE1;
   2598       case 0x47046EE6u: goto L_47046EE6;
   2599       case 0x47046EE8u: goto L_47046EE8;
   2600       case 0x47046EE9u: goto L_47046EE9;
   2601       case 0x47046EEEu: goto L_47046EEE;
   2602       case 0x47046EF1u: goto L_47046EF1;
   2603       case 0x47046EF6u: goto L_47046EF6;
   2604       case 0x47046EF8u: goto L_47046EF8;
   2605       case 0x47046EFAu: goto L_47046EFA;
   2606       case 0x47046EFCu: goto L_47046EFC;
   2607       case 0x47046EFEu: goto L_47046EFE;
   2608       case 0x47046F00u: goto L_47046F00;
   2609       case 0x47046F02u: goto L_47046F02;
   2610       case 0x47046F04u: goto L_47046F04;
   2611       case 0x47046F09u: goto L_47046F09;
   2612       case 0x47046F0Bu: goto L_47046F0B;
   2613       case 0x47046F0Du: goto L_47046F0D;
   2614       case 0x47046F12u: goto L_47046F12;
   2615       case 0x47046F13u: goto L_47046F13;
   2616       case 0x47046F15u: goto L_47046F15;
   2617       case 0x47046F1Au: goto L_47046F1A;
   2618       case 0x47046F1Bu: goto L_47046F1B;
   2619       case 0x47046F1Du: goto L_47046F1D;
   2620       case 0x47046F22u: goto L_47046F22;
   2621       case 0x47046F23u: goto L_47046F23;
   2622       case 0x47046F24u: goto L_47046F24;
   2623       case 0x47046F26u: goto L_47046F26;
   2624       case 0x47046F2Bu: goto L_47046F2B;
   2625       case 0x47046F30u: goto L_47046F30;
   2626       case 0x47046F32u: goto L_47046F32;
   2627       case 0x47046F37u: goto L_47046F37;
   2628       case 0x47046F3Cu: goto L_47046F3C;
   2629       case 0x47046F3Eu: goto L_47046F3E;
   2630       case 0x47046F3Fu: goto L_47046F3F;
   2631       case 0x47046F44u: goto L_47046F44;
   2632       case 0x47046F47u: goto L_47046F47;
   2633       case 0x47046F49u: goto L_47046F49;
   2634       case 0x47046F4Bu: goto L_47046F4B;
   2635       case 0x47046F4Du: goto L_47046F4D;
   2636       case 0x47046F4Fu: goto L_47046F4F;
   2637       case 0x47046F51u: goto L_47046F51;
   2638       case 0x47046F53u: goto L_47046F53;
   2639       case 0x47046F55u: goto L_47046F55;
   2640       case 0x47046F57u: goto L_47046F57;
   2641       case 0x47046F5Cu: goto L_47046F5C;
   2642       case 0x47046F5Eu: goto L_47046F5E;
   2643       case 0x47046F60u: goto L_47046F60;
   2644       case 0x47046F65u: goto L_47046F65;
   2645       case 0x47046F66u: goto L_47046F66;
   2646       case 0x47046F68u: goto L_47046F68;
   2647       case 0x47046F6Du: goto L_47046F6D;
   2648       case 0x47046F6Eu: goto L_47046F6E;
   2649       case 0x47046F70u: goto L_47046F70;
   2650       case 0x47046F75u: goto L_47046F75;
   2651       case 0x47046F76u: goto L_47046F76;
   2652       case 0x47046F77u: goto L_47046F77;
   2653       case 0x47046F79u: goto L_47046F79;
   2654       case 0x47046F7Eu: goto L_47046F7E;
   2655       case 0x47046F83u: goto L_47046F83;
   2656       case 0x47046F85u: goto L_47046F85;
   2657       case 0x47046F8Au: goto L_47046F8A;
   2658       case 0x47046F8Eu: goto L_47046F8E;
   2659       case 0x47046F91u: goto L_47046F91;
   2660       case 0x47046F92u: goto L_47046F92;
   2661       case 0x47046F97u: goto L_47046F97;
   2662       case 0x47046F99u: goto L_47046F99;
   2663       case 0x47046F9Au: goto L_47046F9A;
   2664       case 0x47046F9Fu: goto L_47046F9F;
   2665       case 0x47046FA2u: goto L_47046FA2;
   2666       case 0x47046FA6u: goto L_47046FA6;
   2667       case 0x47046FA9u: goto L_47046FA9;
   2668       case 0x47046FABu: goto L_47046FAB;
   2669       case 0x47046FADu: goto L_47046FAD;
   2670       case 0x47046FAFu: goto L_47046FAF;
   2671       case 0x47046FB1u: goto L_47046FB1;
   2672       case 0x47046FB3u: goto L_47046FB3;
   2673       case 0x47046FB5u: goto L_47046FB5;
   2674       case 0x47046FB7u: goto L_47046FB7;
   2675       case 0x47046FB9u: goto L_47046FB9;
   2676       case 0x47046FBBu: goto L_47046FBB;
   2677       case 0x47046FC0u: goto L_47046FC0;
   2678       case 0x47046FC2u: goto L_47046FC2;
   2679       case 0x47046FC4u: goto L_47046FC4;
   2680       case 0x47046FC9u: goto L_47046FC9;
   2681       case 0x47046FCAu: goto L_47046FCA;
   2682       case 0x47046FCCu: goto L_47046FCC;
   2683       case 0x47046FD1u: goto L_47046FD1;
   2684       case 0x47046FD2u: goto L_47046FD2;
   2685       case 0x47046FD4u: goto L_47046FD4;
   2686       case 0x47046FD9u: goto L_47046FD9;
   2687       case 0x47046FDAu: goto L_47046FDA;
   2688       case 0x47046FDBu: goto L_47046FDB;
   2689       case 0x47046FDDu: goto L_47046FDD;
   2690       case 0x47046FE2u: goto L_47046FE2;
   2691       case 0x47046FE7u: goto L_47046FE7;
   2692       case 0x47046FE9u: goto L_47046FE9;
   2693       case 0x47046FEEu: goto L_47046FEE;
   2694       case 0x47046FF3u: goto L_47046FF3;
   2695       case 0x47046FF5u: goto L_47046FF5;
   2696       case 0x47046FF6u: goto L_47046FF6;
   2697       case 0x47046FFBu: goto L_47046FFB;
   2698       case 0x47046FFEu: goto L_47046FFE;
   2699       case 0x47047000u: goto L_47047000;
   2700       case 0x47047003u: goto L_47047003;
   2701       case 0x47047006u: goto L_47047006;
   2702       case 0x4704700Au: goto L_4704700A;
   2703       case 0x4704700Eu: goto L_4704700E;
   2704       case 0x47047012u: goto L_47047012;
   2705       case 0x47047017u: goto L_47047017;
   2706       case 0x47047019u: goto L_47047019;
   2707       case 0x4704701Bu: goto L_4704701B;
   2708       case 0x4704701Du: goto L_4704701D;
   2709       case 0x4704701Fu: goto L_4704701F;
   2710       case 0x47047021u: goto L_47047021;
   2711       case 0x47047023u: goto L_47047023;
   2712       case 0x47047025u: goto L_47047025;
   2713       case 0x4704702Au: goto L_4704702A;
   2714       case 0x4704702Cu: goto L_4704702C;
   2715       case 0x4704702Eu: goto L_4704702E;
   2716       case 0x47047033u: goto L_47047033;
   2717       case 0x47047034u: goto L_47047034;
   2718       case 0x47047036u: goto L_47047036;
   2719       case 0x4704703Bu: goto L_4704703B;
   2720       case 0x4704703Cu: goto L_4704703C;
   2721       case 0x4704703Eu: goto L_4704703E;
   2722       case 0x47047043u: goto L_47047043;
   2723       case 0x47047044u: goto L_47047044;
   2724       case 0x47047045u: goto L_47047045;
   2725       case 0x47047047u: goto L_47047047;
   2726       case 0x4704704Cu: goto L_4704704C;
   2727       case 0x47047051u: goto L_47047051;
   2728       case 0x47047053u: goto L_47047053;
   2729       case 0x47047058u: goto L_47047058;
   2730       case 0x4704705Cu: goto L_4704705C;
   2731       case 0x47047060u: goto L_47047060;
   2732       case 0x47047061u: goto L_47047061;
   2733       case 0x47047062u: goto L_47047062;
   2734       case 0x47047067u: goto L_47047067;
   2735       case 0x47047069u: goto L_47047069;
   2736       case 0x4704706Au: goto L_4704706A;
   2737       case 0x4704706Fu: goto L_4704706F;
   2738       case 0x47047072u: goto L_47047072;
   2739       case 0x47047074u: goto L_47047074;
   2740       case 0x47047076u: goto L_47047076;
   2741       case 0x47047078u: goto L_47047078;
   2742       case 0x4704707Au: goto L_4704707A;
   2743       case 0x4704707Cu: goto L_4704707C;
   2744       case 0x4704707Eu: goto L_4704707E;
   2745       case 0x47047080u: goto L_47047080;
   2746       case 0x47047085u: goto L_47047085;
   2747       case 0x47047087u: goto L_47047087;
   2748       case 0x47047089u: goto L_47047089;
   2749       case 0x4704708Eu: goto L_4704708E;
   2750       case 0x4704708Fu: goto L_4704708F;
   2751       case 0x47047091u: goto L_47047091;
   2752       case 0x47047096u: goto L_47047096;
   2753       case 0x47047097u: goto L_47047097;
   2754       case 0x47047099u: goto L_47047099;
   2755       case 0x4704709Eu: goto L_4704709E;
   2756       case 0x4704709Fu: goto L_4704709F;
   2757       case 0x470470A0u: goto L_470470A0;
   2758       case 0x470470A2u: goto L_470470A2;
   2759       case 0x470470A7u: goto L_470470A7;
   2760       case 0x470470ACu: goto L_470470AC;
   2761       case 0x470470AEu: goto L_470470AE;
   2762       case 0x470470B3u: goto L_470470B3;
   2763       case 0x470470B7u: goto L_470470B7;
   2764       case 0x470470BAu: goto L_470470BA;
   2765       case 0x470470BBu: goto L_470470BB;
   2766       case 0x470470C0u: goto L_470470C0;
   2767       case 0x470470C2u: goto L_470470C2;
   2768       case 0x470470C3u: goto L_470470C3;
   2769       case 0x470470C8u: goto L_470470C8;
   2770       case 0x470470CBu: goto L_470470CB;
   2771       case 0x470470CDu: goto L_470470CD;
   2772       case 0x470470CFu: goto L_470470CF;
   2773       case 0x470470D1u: goto L_470470D1;
   2774       case 0x470470D3u: goto L_470470D3;
   2775       case 0x470470D5u: goto L_470470D5;
   2776       case 0x470470D7u: goto L_470470D7;
   2777       case 0x470470D9u: goto L_470470D9;
   2778       case 0x470470DEu: goto L_470470DE;
   2779       case 0x470470E0u: goto L_470470E0;
   2780       case 0x470470E2u: goto L_470470E2;
   2781       case 0x470470E7u: goto L_470470E7;
   2782       case 0x470470E8u: goto L_470470E8;
   2783       case 0x470470EAu: goto L_470470EA;
   2784       case 0x470470EFu: goto L_470470EF;
   2785       case 0x470470F0u: goto L_470470F0;
   2786       case 0x470470F2u: goto L_470470F2;
   2787       case 0x470470F7u: goto L_470470F7;
   2788       case 0x470470F8u: goto L_470470F8;
   2789       case 0x470470F9u: goto L_470470F9;
   2790       case 0x470470FBu: goto L_470470FB;
   2791       case 0x47047100u: goto L_47047100;
   2792       case 0x47047105u: goto L_47047105;
   2793       case 0x47047107u: goto L_47047107;
   2794       case 0x4704710Cu: goto L_4704710C;
   2795       case 0x47047110u: goto L_47047110;
   2796       case 0x47047113u: goto L_47047113;
   2797       case 0x47047114u: goto L_47047114;
   2798       case 0x47047119u: goto L_47047119;
   2799       case 0x4704711Bu: goto L_4704711B;
   2800       case 0x4704711Cu: goto L_4704711C;
   2801       case 0x47047121u: goto L_47047121;
   2802       case 0x47047124u: goto L_47047124;
   2803       case 0x47047126u: goto L_47047126;
   2804       case 0x47047128u: goto L_47047128;
   2805       case 0x4704712Au: goto L_4704712A;
   2806       case 0x4704712Cu: goto L_4704712C;
   2807       case 0x4704712Eu: goto L_4704712E;
   2808       case 0x47047130u: goto L_47047130;
   2809       case 0x47047132u: goto L_47047132;
   2810       case 0x47047134u: goto L_47047134;
   2811       case 0x47047139u: goto L_47047139;
   2812       case 0x4704713Bu: goto L_4704713B;
   2813       case 0x4704713Du: goto L_4704713D;
   2814       case 0x47047142u: goto L_47047142;
   2815       case 0x47047143u: goto L_47047143;
   2816       case 0x47047145u: goto L_47047145;
   2817       case 0x4704714Au: goto L_4704714A;
   2818       case 0x4704714Bu: goto L_4704714B;
   2819       case 0x4704714Du: goto L_4704714D;
   2820       case 0x47047152u: goto L_47047152;
   2821       case 0x47047153u: goto L_47047153;
   2822       case 0x47047154u: goto L_47047154;
   2823       case 0x47047156u: goto L_47047156;
   2824       case 0x4704715Bu: goto L_4704715B;
   2825       case 0x47047160u: goto L_47047160;
   2826       case 0x47047162u: goto L_47047162;
   2827       case 0x47047167u: goto L_47047167;
   2828       case 0x4704716Cu: goto L_4704716C;
   2829       case 0x4704716Eu: goto L_4704716E;
   2830       case 0x4704716Fu: goto L_4704716F;
   2831       case 0x47047174u: goto L_47047174;
   2832       case 0x47047177u: goto L_47047177;
   2833       case 0x47047178u: goto L_47047178;
   2834       case 0x47047179u: goto L_47047179;
   2835       case 0x4704717Au: goto L_4704717A;
   2836       case 0x4704717Bu: goto L_4704717B;
   2837       case 0x4704717Eu: goto L_4704717E;
   2838       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2839     }
   2840     RECOMP_REGS_OUT();
   2841 }
   2842 
   2843 void sub_47046FA2(void) {
   2844     int _fpu_cmp = 0;
   2845     uint32_t _cf = 0;
   2846     int _df = 1;
   2847     uint32_t _flag_k = FK_NONE;
   2848     uint32_t _flag_a = 0, _flag_b = 0;
   2849     uint32_t _itail_tgt = 0;
   2850     RECOMP_REGS_LOCALS
   2851     RECOMP_ENTER(0x47046FA2u);
   2852 
   2853 L_47046FA2:
   2854     eax = MEM32(esp + 0x10); /* 0x47046FA2: mov eax, dword ptr [esp + 0x10] */
   2855     ecx = MEM32(eax + 0x8); /* 0x47046FA6: mov ecx, dword ptr [eax + 8] */
   2856     /* test ecx, ecx */ /* 0x47046FA9: test ecx, ecx */
   2857     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2858     _cf = 0;
   2859     _flag_k = FK_TEST;
   2860     if (TEST_Z(_flag_a, _flag_b)) goto L_47047000; /* 0x47046FAB: je 0x47047000 */
   2861 L_47046FAD:
   2862     RECOMP_ICALL(edi); /* 0x47046FAD: call edi */
   2863     RECOMP_FLAGS_IN();
   2864     ebp = eax; /* 0x47046FAF: mov ebp, eax */
   2865     RECOMP_ICALL(ebx); /* 0x47046FB1: call ebx */
   2866     RECOMP_FLAGS_IN();
   2867     eax = MEM32(eax); /* 0x47046FB3: mov eax, dword ptr [eax] */
   2868     /* test eax, eax */ /* 0x47046FB5: test eax, eax */
   2869     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2870     _cf = 0;
   2871     _flag_k = FK_TEST;
   2872     if (TEST_Z(_flag_a, _flag_b)) goto L_47046FBB; /* 0x47046FB7: je 0x47046fbb */
   2873 L_47046FB9:
   2874     ebp = eax; /* 0x47046FB9: mov ebp, eax */
   2875 L_47046FBB:
   2876     RECOMP_ICALL(0x47039020u); /* 0x47046FBB: call 0x47039020 */ /* not lifted */
   2877     RECOMP_FLAGS_IN();
   2878     esi = eax; /* 0x47046FC0: mov esi, eax */
   2879     ecx = esi; /* 0x47046FC2: mov ecx, esi */
   2880     RECOMP_ICALL(0x4703B210u); /* 0x47046FC4: call 0x4703b210 */ /* not lifted */
   2881     RECOMP_FLAGS_IN();
   2882     PUSH32(esp, eax); /* 0x47046FC9: push eax */
   2883     ecx = esi; /* 0x47046FCA: mov ecx, esi */
   2884     RECOMP_ICALL(0x4703B240u); /* 0x47046FCC: call 0x4703b240 */ /* not lifted */
   2885     RECOMP_FLAGS_IN();
   2886     PUSH32(esp, eax); /* 0x47046FD1: push eax */
   2887     ecx = esi; /* 0x47046FD2: mov ecx, esi */
   2888     RECOMP_ICALL(0x4703B080u); /* 0x47046FD4: call 0x4703b080 */ /* not lifted */
   2889     RECOMP_FLAGS_IN();
   2890     PUSH32(esp, eax); /* 0x47046FD9: push eax */
   2891     PUSH32(esp, ebp); /* 0x47046FDA: push ebp */
   2892     PUSH32(esp, 0); /* 0x47046FDB: push 0 */
   2893     PUSH32(esp, 0x17Au); /* 0x47046FDD: push 0x17a */
   2894     PUSH32(esp, 0x471088D0u); /* 0x47046FE2: push 0x471088d0 */
   2895     ecx = esi; /* 0x47046FE7: mov ecx, esi */
   2896     RECOMP_ICALL(0x4703A340u); /* 0x47046FE9: call 0x4703a340 */ /* not lifted */
   2897     RECOMP_FLAGS_IN();
   2898     PUSH32(esp, 0x471087F4u); /* 0x47046FEE: push 0x471087f4 */
   2899     PUSH32(esp, 4); /* 0x47046FF3: push 4 */
   2900     PUSH32(esp, esi); /* 0x47046FF5: push esi */
   2901     RECOMP_ICALL(0x47039830u); /* 0x47046FF6: call 0x47039830 */ /* not lifted */
   2902     RECOMP_FLAGS_IN();
   2903     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2904     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2905     esp = esp + 0xCu; /* 0x47046FFB: add esp, 0xc */
   2906     _flag_k = FK_ADD;
   2907     goto L_47047072; /* 0x47046FFE: jmp 0x47047072 */
   2908 L_47047000:
   2909     ecx = MEM32(eax + 0xC); /* 0x47047000: mov ecx, dword ptr [eax + 0xc] */
   2910     edx = MEM32(eax + 0x10); /* 0x47047003: mov edx, dword ptr [eax + 0x10] */
   2911     MEM32(esp + 0x14) = ecx; /* 0x47047006: mov dword ptr [esp + 0x14], ecx */
   2912     ecx = esp + 0x14; /* 0x4704700A: lea ecx, [esp + 0x14] */
   2913     MEM32(esp + 0x18) = edx; /* 0x4704700E: mov dword ptr [esp + 0x18], edx */
   2914     RECOMP_ICALL(0x470543C0u); /* 0x47047012: call 0x470543c0 */ /* not lifted */
   2915     RECOMP_FLAGS_IN();
   2916     RECOMP_ICALL(edi); /* 0x47047017: call edi */
   2917     RECOMP_FLAGS_IN();
   2918     ebp = eax; /* 0x47047019: mov ebp, eax */
   2919     RECOMP_ICALL(ebx); /* 0x4704701B: call ebx */
   2920     RECOMP_FLAGS_IN();
   2921     eax = MEM32(eax); /* 0x4704701D: mov eax, dword ptr [eax] */
   2922     /* test eax, eax */ /* 0x4704701F: test eax, eax */
   2923     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2924     _cf = 0;
   2925     _flag_k = FK_TEST;
   2926     if (TEST_Z(_flag_a, _flag_b)) goto L_47047025; /* 0x47047021: je 0x47047025 */
   2927 L_47047023:
   2928     ebp = eax; /* 0x47047023: mov ebp, eax */
   2929 L_47047025:
   2930     RECOMP_ICALL(0x47039020u); /* 0x47047025: call 0x47039020 */ /* not lifted */
   2931     RECOMP_FLAGS_IN();
   2932     esi = eax; /* 0x4704702A: mov esi, eax */
   2933     ecx = esi; /* 0x4704702C: mov ecx, esi */
   2934     RECOMP_ICALL(0x4703B210u); /* 0x4704702E: call 0x4703b210 */ /* not lifted */
   2935     RECOMP_FLAGS_IN();
   2936     PUSH32(esp, eax); /* 0x47047033: push eax */
   2937     ecx = esi; /* 0x47047034: mov ecx, esi */
   2938     RECOMP_ICALL(0x4703B240u); /* 0x47047036: call 0x4703b240 */ /* not lifted */
   2939     RECOMP_FLAGS_IN();
   2940     PUSH32(esp, eax); /* 0x4704703B: push eax */
   2941     ecx = esi; /* 0x4704703C: mov ecx, esi */
   2942     RECOMP_ICALL(0x4703B080u); /* 0x4704703E: call 0x4703b080 */ /* not lifted */
   2943     RECOMP_FLAGS_IN();
   2944     PUSH32(esp, eax); /* 0x47047043: push eax */
   2945     PUSH32(esp, ebp); /* 0x47047044: push ebp */
   2946     PUSH32(esp, 0); /* 0x47047045: push 0 */
   2947     PUSH32(esp, 0x183u); /* 0x47047047: push 0x183 */
   2948     PUSH32(esp, 0x471088D0u); /* 0x4704704C: push 0x471088d0 */
   2949     ecx = esi; /* 0x47047051: mov ecx, esi */
   2950     RECOMP_ICALL(0x4703A340u); /* 0x47047053: call 0x4703a340 */ /* not lifted */
   2951     RECOMP_FLAGS_IN();
   2952     eax = MEM32(esp + 0x18); /* 0x47047058: mov eax, dword ptr [esp + 0x18] */
   2953     ecx = MEM32(esp + 0x14); /* 0x4704705C: mov ecx, dword ptr [esp + 0x14] */
   2954     PUSH32(esp, eax); /* 0x47047060: push eax */
   2955     PUSH32(esp, ecx); /* 0x47047061: push ecx */
   2956     PUSH32(esp, 0x471087D0u); /* 0x47047062: push 0x471087d0 */
   2957     PUSH32(esp, 4); /* 0x47047067: push 4 */
   2958     PUSH32(esp, esi); /* 0x47047069: push esi */
   2959     RECOMP_ICALL(0x47039830u); /* 0x4704706A: call 0x47039830 */ /* not lifted */
   2960     RECOMP_FLAGS_IN();
   2961     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2962     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2963     esp = esp + 0x14u; /* 0x4704706F: add esp, 0x14 */
   2964     _flag_k = FK_ADD;
   2965 L_47047072:
   2966     RECOMP_ICALL(edi); /* 0x47047072: call edi */
   2967     RECOMP_FLAGS_IN();
   2968     ebp = eax; /* 0x47047074: mov ebp, eax */
   2969     RECOMP_ICALL(ebx); /* 0x47047076: call ebx */
   2970     RECOMP_FLAGS_IN();
   2971     eax = MEM32(eax); /* 0x47047078: mov eax, dword ptr [eax] */
   2972     /* test eax, eax */ /* 0x4704707A: test eax, eax */
   2973     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2974     _cf = 0;
   2975     _flag_k = FK_TEST;
   2976     if (TEST_Z(_flag_a, _flag_b)) goto L_47047080; /* 0x4704707C: je 0x47047080 */
   2977 L_4704707E:
   2978     ebp = eax; /* 0x4704707E: mov ebp, eax */
   2979 L_47047080:
   2980     RECOMP_ICALL(0x47039020u); /* 0x47047080: call 0x47039020 */ /* not lifted */
   2981     RECOMP_FLAGS_IN();
   2982     esi = eax; /* 0x47047085: mov esi, eax */
   2983     ecx = esi; /* 0x47047087: mov ecx, esi */
   2984     RECOMP_ICALL(0x4703B210u); /* 0x47047089: call 0x4703b210 */ /* not lifted */
   2985     RECOMP_FLAGS_IN();
   2986     PUSH32(esp, eax); /* 0x4704708E: push eax */
   2987     ecx = esi; /* 0x4704708F: mov ecx, esi */
   2988     RECOMP_ICALL(0x4703B240u); /* 0x47047091: call 0x4703b240 */ /* not lifted */
   2989     RECOMP_FLAGS_IN();
   2990     PUSH32(esp, eax); /* 0x47047096: push eax */
   2991     ecx = esi; /* 0x47047097: mov ecx, esi */
   2992     RECOMP_ICALL(0x4703B080u); /* 0x47047099: call 0x4703b080 */ /* not lifted */
   2993     RECOMP_FLAGS_IN();
   2994     PUSH32(esp, eax); /* 0x4704709E: push eax */
   2995     PUSH32(esp, ebp); /* 0x4704709F: push ebp */
   2996     PUSH32(esp, 0); /* 0x470470A0: push 0 */
   2997     PUSH32(esp, 0x187u); /* 0x470470A2: push 0x187 */
   2998     PUSH32(esp, 0x471088D0u); /* 0x470470A7: push 0x471088d0 */
   2999     ecx = esi; /* 0x470470AC: mov ecx, esi */
   3000     RECOMP_ICALL(0x4703A340u); /* 0x470470AE: call 0x4703a340 */ /* not lifted */
   3001     RECOMP_FLAGS_IN();
   3002     edx = MEM32(esp + 0x10); /* 0x470470B3: mov edx, dword ptr [esp + 0x10] */
   3003     eax = MEM32(edx + 0x14); /* 0x470470B7: mov eax, dword ptr [edx + 0x14] */
   3004     PUSH32(esp, eax); /* 0x470470BA: push eax */
   3005     PUSH32(esp, 0x471087B8u); /* 0x470470BB: push 0x471087b8 */
   3006     PUSH32(esp, 4); /* 0x470470C0: push 4 */
   3007     PUSH32(esp, esi); /* 0x470470C2: push esi */
   3008     RECOMP_ICALL(0x47039830u); /* 0x470470C3: call 0x47039830 */ /* not lifted */
   3009     RECOMP_FLAGS_IN();
   3010     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3011     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3012     esp = esp + 0x10u; /* 0x470470C8: add esp, 0x10 */
   3013     _flag_k = FK_ADD;
   3014     RECOMP_ICALL(edi); /* 0x470470CB: call edi */
   3015     RECOMP_FLAGS_IN();
   3016     ebp = eax; /* 0x470470CD: mov ebp, eax */
   3017     RECOMP_ICALL(ebx); /* 0x470470CF: call ebx */
   3018     RECOMP_FLAGS_IN();
   3019     eax = MEM32(eax); /* 0x470470D1: mov eax, dword ptr [eax] */
   3020     /* test eax, eax */ /* 0x470470D3: test eax, eax */
   3021     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3022     _cf = 0;
   3023     _flag_k = FK_TEST;
   3024     if (TEST_Z(_flag_a, _flag_b)) goto L_470470D9; /* 0x470470D5: je 0x470470d9 */
   3025 L_470470D7:
   3026     ebp = eax; /* 0x470470D7: mov ebp, eax */
   3027 L_470470D9:
   3028     RECOMP_ICALL(0x47039020u); /* 0x470470D9: call 0x47039020 */ /* not lifted */
   3029     RECOMP_FLAGS_IN();
   3030     esi = eax; /* 0x470470DE: mov esi, eax */
   3031     ecx = esi; /* 0x470470E0: mov ecx, esi */
   3032     RECOMP_ICALL(0x4703B210u); /* 0x470470E2: call 0x4703b210 */ /* not lifted */
   3033     RECOMP_FLAGS_IN();
   3034     PUSH32(esp, eax); /* 0x470470E7: push eax */
   3035     ecx = esi; /* 0x470470E8: mov ecx, esi */
   3036     RECOMP_ICALL(0x4703B240u); /* 0x470470EA: call 0x4703b240 */ /* not lifted */
   3037     RECOMP_FLAGS_IN();
   3038     PUSH32(esp, eax); /* 0x470470EF: push eax */
   3039     ecx = esi; /* 0x470470F0: mov ecx, esi */
   3040     RECOMP_ICALL(0x4703B080u); /* 0x470470F2: call 0x4703b080 */ /* not lifted */
   3041     RECOMP_FLAGS_IN();
   3042     PUSH32(esp, eax); /* 0x470470F7: push eax */
   3043     PUSH32(esp, ebp); /* 0x470470F8: push ebp */
   3044     PUSH32(esp, 0); /* 0x470470F9: push 0 */
   3045     PUSH32(esp, 0x18Au); /* 0x470470FB: push 0x18a */
   3046     PUSH32(esp, 0x471088D0u); /* 0x47047100: push 0x471088d0 */
   3047     ecx = esi; /* 0x47047105: mov ecx, esi */
   3048     RECOMP_ICALL(0x4703A340u); /* 0x47047107: call 0x4703a340 */ /* not lifted */
   3049     RECOMP_FLAGS_IN();
   3050     ecx = MEM32(esp + 0x10); /* 0x4704710C: mov ecx, dword ptr [esp + 0x10] */
   3051     edx = MEM32(ecx + 0x18); /* 0x47047110: mov edx, dword ptr [ecx + 0x18] */
   3052     PUSH32(esp, edx); /* 0x47047113: push edx */
   3053     PUSH32(esp, 0x471087A0u); /* 0x47047114: push 0x471087a0 */
   3054     PUSH32(esp, 4); /* 0x47047119: push 4 */
   3055     PUSH32(esp, esi); /* 0x4704711B: push esi */
   3056     RECOMP_ICALL(0x47039830u); /* 0x4704711C: call 0x47039830 */ /* not lifted */
   3057     RECOMP_FLAGS_IN();
   3058     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3059     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3060     esp = esp + 0x10u; /* 0x47047121: add esp, 0x10 */
   3061     _flag_k = FK_ADD;
   3062     RECOMP_ICALL(edi); /* 0x47047124: call edi */
   3063     RECOMP_FLAGS_IN();
   3064     esi = eax; /* 0x47047126: mov esi, eax */
   3065     RECOMP_ICALL(ebx); /* 0x47047128: call ebx */
   3066     RECOMP_FLAGS_IN();
   3067     eax = MEM32(eax); /* 0x4704712A: mov eax, dword ptr [eax] */
   3068     /* test eax, eax */ /* 0x4704712C: test eax, eax */
   3069     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3070     _cf = 0;
   3071     _flag_k = FK_TEST;
   3072     edi = esi; /* 0x4704712E: mov edi, esi */
   3073     if (TEST_Z(_flag_a, _flag_b)) goto L_47047134; /* 0x47047130: je 0x47047134 */
   3074 L_47047132:
   3075     edi = eax; /* 0x47047132: mov edi, eax */
   3076 L_47047134:
   3077     RECOMP_ICALL(0x47039020u); /* 0x47047134: call 0x47039020 */ /* not lifted */
   3078     RECOMP_FLAGS_IN();
   3079     esi = eax; /* 0x47047139: mov esi, eax */
   3080     ecx = esi; /* 0x4704713B: mov ecx, esi */
   3081     RECOMP_ICALL(0x4703B210u); /* 0x4704713D: call 0x4703b210 */ /* not lifted */
   3082     RECOMP_FLAGS_IN();
   3083     PUSH32(esp, eax); /* 0x47047142: push eax */
   3084     ecx = esi; /* 0x47047143: mov ecx, esi */
   3085     RECOMP_ICALL(0x4703B240u); /* 0x47047145: call 0x4703b240 */ /* not lifted */
   3086     RECOMP_FLAGS_IN();
   3087     PUSH32(esp, eax); /* 0x4704714A: push eax */
   3088     ecx = esi; /* 0x4704714B: mov ecx, esi */
   3089     RECOMP_ICALL(0x4703B080u); /* 0x4704714D: call 0x4703b080 */ /* not lifted */
   3090     RECOMP_FLAGS_IN();
   3091     PUSH32(esp, eax); /* 0x47047152: push eax */
   3092     PUSH32(esp, edi); /* 0x47047153: push edi */
   3093     PUSH32(esp, 0); /* 0x47047154: push 0 */
   3094     PUSH32(esp, 0x18Du); /* 0x47047156: push 0x18d */
   3095     PUSH32(esp, 0x471088D0u); /* 0x4704715B: push 0x471088d0 */
   3096     ecx = esi; /* 0x47047160: mov ecx, esi */
   3097     RECOMP_ICALL(0x4703A340u); /* 0x47047162: call 0x4703a340 */ /* not lifted */
   3098     RECOMP_FLAGS_IN();
   3099     PUSH32(esp, 0x47108794u); /* 0x47047167: push 0x47108794 */
   3100     PUSH32(esp, 4); /* 0x4704716C: push 4 */
   3101     PUSH32(esp, esi); /* 0x4704716E: push esi */
   3102     RECOMP_ICALL(0x47039830u); /* 0x4704716F: call 0x47039830 */ /* not lifted */
   3103     RECOMP_FLAGS_IN();
   3104     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3105     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3106     esp = esp + 0xCu; /* 0x47047174: add esp, 0xc */
   3107     _flag_k = FK_ADD;
   3108     edi = POP32_VAL(esp); /* 0x47047177: pop edi */
   3109     esi = POP32_VAL(esp); /* 0x47047178: pop esi */
   3110     ebp = POP32_VAL(esp); /* 0x47047179: pop ebp */
   3111     ebx = POP32_VAL(esp); /* 0x4704717A: pop ebx */
   3112     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3113     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3114     esp = esp + 0xCu; /* 0x4704717B: add esp, 0xc */
   3115     _flag_k = FK_ADD;
   3116     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704717E: ret  */
   3117     RECOMP_REGS_OUT();
   3118 }
   3119 
   3120 void sub_47047072(void) {
   3121     int _fpu_cmp = 0;
   3122     uint32_t _cf = 0;
   3123     int _df = 1;
   3124     uint32_t _flag_k = FK_NONE;
   3125     uint32_t _flag_a = 0, _flag_b = 0;
   3126     uint32_t _itail_tgt = 0;
   3127     RECOMP_REGS_LOCALS
   3128     RECOMP_ENTER(0x47047072u);
   3129 
   3130 L_47047072:
   3131     RECOMP_ICALL(edi); /* 0x47047072: call edi */
   3132     RECOMP_FLAGS_IN();
   3133     ebp = eax; /* 0x47047074: mov ebp, eax */
   3134     RECOMP_ICALL(ebx); /* 0x47047076: call ebx */
   3135     RECOMP_FLAGS_IN();
   3136     eax = MEM32(eax); /* 0x47047078: mov eax, dword ptr [eax] */
   3137     /* test eax, eax */ /* 0x4704707A: test eax, eax */
   3138     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3139     _cf = 0;
   3140     _flag_k = FK_TEST;
   3141     if (TEST_Z(_flag_a, _flag_b)) goto L_47047080; /* 0x4704707C: je 0x47047080 */
   3142 L_4704707E:
   3143     ebp = eax; /* 0x4704707E: mov ebp, eax */
   3144 L_47047080:
   3145     RECOMP_ICALL(0x47039020u); /* 0x47047080: call 0x47039020 */ /* not lifted */
   3146     RECOMP_FLAGS_IN();
   3147     esi = eax; /* 0x47047085: mov esi, eax */
   3148     ecx = esi; /* 0x47047087: mov ecx, esi */
   3149     RECOMP_ICALL(0x4703B210u); /* 0x47047089: call 0x4703b210 */ /* not lifted */
   3150     RECOMP_FLAGS_IN();
   3151     PUSH32(esp, eax); /* 0x4704708E: push eax */
   3152     ecx = esi; /* 0x4704708F: mov ecx, esi */
   3153     RECOMP_ICALL(0x4703B240u); /* 0x47047091: call 0x4703b240 */ /* not lifted */
   3154     RECOMP_FLAGS_IN();
   3155     PUSH32(esp, eax); /* 0x47047096: push eax */
   3156     ecx = esi; /* 0x47047097: mov ecx, esi */
   3157     RECOMP_ICALL(0x4703B080u); /* 0x47047099: call 0x4703b080 */ /* not lifted */
   3158     RECOMP_FLAGS_IN();
   3159     PUSH32(esp, eax); /* 0x4704709E: push eax */
   3160     PUSH32(esp, ebp); /* 0x4704709F: push ebp */
   3161     PUSH32(esp, 0); /* 0x470470A0: push 0 */
   3162     PUSH32(esp, 0x187u); /* 0x470470A2: push 0x187 */
   3163     PUSH32(esp, 0x471088D0u); /* 0x470470A7: push 0x471088d0 */
   3164     ecx = esi; /* 0x470470AC: mov ecx, esi */
   3165     RECOMP_ICALL(0x4703A340u); /* 0x470470AE: call 0x4703a340 */ /* not lifted */
   3166     RECOMP_FLAGS_IN();
   3167     edx = MEM32(esp + 0x10); /* 0x470470B3: mov edx, dword ptr [esp + 0x10] */
   3168     eax = MEM32(edx + 0x14); /* 0x470470B7: mov eax, dword ptr [edx + 0x14] */
   3169     PUSH32(esp, eax); /* 0x470470BA: push eax */
   3170     PUSH32(esp, 0x471087B8u); /* 0x470470BB: push 0x471087b8 */
   3171     PUSH32(esp, 4); /* 0x470470C0: push 4 */
   3172     PUSH32(esp, esi); /* 0x470470C2: push esi */
   3173     RECOMP_ICALL(0x47039830u); /* 0x470470C3: call 0x47039830 */ /* not lifted */
   3174     RECOMP_FLAGS_IN();
   3175     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3176     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3177     esp = esp + 0x10u; /* 0x470470C8: add esp, 0x10 */
   3178     _flag_k = FK_ADD;
   3179     RECOMP_ICALL(edi); /* 0x470470CB: call edi */
   3180     RECOMP_FLAGS_IN();
   3181     ebp = eax; /* 0x470470CD: mov ebp, eax */
   3182     RECOMP_ICALL(ebx); /* 0x470470CF: call ebx */
   3183     RECOMP_FLAGS_IN();
   3184     eax = MEM32(eax); /* 0x470470D1: mov eax, dword ptr [eax] */
   3185     /* test eax, eax */ /* 0x470470D3: test eax, eax */
   3186     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3187     _cf = 0;
   3188     _flag_k = FK_TEST;
   3189     if (TEST_Z(_flag_a, _flag_b)) goto L_470470D9; /* 0x470470D5: je 0x470470d9 */
   3190 L_470470D7:
   3191     ebp = eax; /* 0x470470D7: mov ebp, eax */
   3192 L_470470D9:
   3193     RECOMP_ICALL(0x47039020u); /* 0x470470D9: call 0x47039020 */ /* not lifted */
   3194     RECOMP_FLAGS_IN();
   3195     esi = eax; /* 0x470470DE: mov esi, eax */
   3196     ecx = esi; /* 0x470470E0: mov ecx, esi */
   3197     RECOMP_ICALL(0x4703B210u); /* 0x470470E2: call 0x4703b210 */ /* not lifted */
   3198     RECOMP_FLAGS_IN();
   3199     PUSH32(esp, eax); /* 0x470470E7: push eax */
   3200     ecx = esi; /* 0x470470E8: mov ecx, esi */
   3201     RECOMP_ICALL(0x4703B240u); /* 0x470470EA: call 0x4703b240 */ /* not lifted */
   3202     RECOMP_FLAGS_IN();
   3203     PUSH32(esp, eax); /* 0x470470EF: push eax */
   3204     ecx = esi; /* 0x470470F0: mov ecx, esi */
   3205     RECOMP_ICALL(0x4703B080u); /* 0x470470F2: call 0x4703b080 */ /* not lifted */
   3206     RECOMP_FLAGS_IN();
   3207     PUSH32(esp, eax); /* 0x470470F7: push eax */
   3208     PUSH32(esp, ebp); /* 0x470470F8: push ebp */
   3209     PUSH32(esp, 0); /* 0x470470F9: push 0 */
   3210     PUSH32(esp, 0x18Au); /* 0x470470FB: push 0x18a */
   3211     PUSH32(esp, 0x471088D0u); /* 0x47047100: push 0x471088d0 */
   3212     ecx = esi; /* 0x47047105: mov ecx, esi */
   3213     RECOMP_ICALL(0x4703A340u); /* 0x47047107: call 0x4703a340 */ /* not lifted */
   3214     RECOMP_FLAGS_IN();
   3215     ecx = MEM32(esp + 0x10); /* 0x4704710C: mov ecx, dword ptr [esp + 0x10] */
   3216     edx = MEM32(ecx + 0x18); /* 0x47047110: mov edx, dword ptr [ecx + 0x18] */
   3217     PUSH32(esp, edx); /* 0x47047113: push edx */
   3218     PUSH32(esp, 0x471087A0u); /* 0x47047114: push 0x471087a0 */
   3219     PUSH32(esp, 4); /* 0x47047119: push 4 */
   3220     PUSH32(esp, esi); /* 0x4704711B: push esi */
   3221     RECOMP_ICALL(0x47039830u); /* 0x4704711C: call 0x47039830 */ /* not lifted */
   3222     RECOMP_FLAGS_IN();
   3223     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3224     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3225     esp = esp + 0x10u; /* 0x47047121: add esp, 0x10 */
   3226     _flag_k = FK_ADD;
   3227     RECOMP_ICALL(edi); /* 0x47047124: call edi */
   3228     RECOMP_FLAGS_IN();
   3229     esi = eax; /* 0x47047126: mov esi, eax */
   3230     RECOMP_ICALL(ebx); /* 0x47047128: call ebx */
   3231     RECOMP_FLAGS_IN();
   3232     eax = MEM32(eax); /* 0x4704712A: mov eax, dword ptr [eax] */
   3233     /* test eax, eax */ /* 0x4704712C: test eax, eax */
   3234     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3235     _cf = 0;
   3236     _flag_k = FK_TEST;
   3237     edi = esi; /* 0x4704712E: mov edi, esi */
   3238     if (TEST_Z(_flag_a, _flag_b)) goto L_47047134; /* 0x47047130: je 0x47047134 */
   3239 L_47047132:
   3240     edi = eax; /* 0x47047132: mov edi, eax */
   3241 L_47047134:
   3242     RECOMP_ICALL(0x47039020u); /* 0x47047134: call 0x47039020 */ /* not lifted */
   3243     RECOMP_FLAGS_IN();
   3244     esi = eax; /* 0x47047139: mov esi, eax */
   3245     ecx = esi; /* 0x4704713B: mov ecx, esi */
   3246     RECOMP_ICALL(0x4703B210u); /* 0x4704713D: call 0x4703b210 */ /* not lifted */
   3247     RECOMP_FLAGS_IN();
   3248     PUSH32(esp, eax); /* 0x47047142: push eax */
   3249     ecx = esi; /* 0x47047143: mov ecx, esi */
   3250     RECOMP_ICALL(0x4703B240u); /* 0x47047145: call 0x4703b240 */ /* not lifted */
   3251     RECOMP_FLAGS_IN();
   3252     PUSH32(esp, eax); /* 0x4704714A: push eax */
   3253     ecx = esi; /* 0x4704714B: mov ecx, esi */
   3254     RECOMP_ICALL(0x4703B080u); /* 0x4704714D: call 0x4703b080 */ /* not lifted */
   3255     RECOMP_FLAGS_IN();
   3256     PUSH32(esp, eax); /* 0x47047152: push eax */
   3257     PUSH32(esp, edi); /* 0x47047153: push edi */
   3258     PUSH32(esp, 0); /* 0x47047154: push 0 */
   3259     PUSH32(esp, 0x18Du); /* 0x47047156: push 0x18d */
   3260     PUSH32(esp, 0x471088D0u); /* 0x4704715B: push 0x471088d0 */
   3261     ecx = esi; /* 0x47047160: mov ecx, esi */
   3262     RECOMP_ICALL(0x4703A340u); /* 0x47047162: call 0x4703a340 */ /* not lifted */
   3263     RECOMP_FLAGS_IN();
   3264     PUSH32(esp, 0x47108794u); /* 0x47047167: push 0x47108794 */
   3265     PUSH32(esp, 4); /* 0x4704716C: push 4 */
   3266     PUSH32(esp, esi); /* 0x4704716E: push esi */
   3267     RECOMP_ICALL(0x47039830u); /* 0x4704716F: call 0x47039830 */ /* not lifted */
   3268     RECOMP_FLAGS_IN();
   3269     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3270     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3271     esp = esp + 0xCu; /* 0x47047174: add esp, 0xc */
   3272     _flag_k = FK_ADD;
   3273     edi = POP32_VAL(esp); /* 0x47047177: pop edi */
   3274     esi = POP32_VAL(esp); /* 0x47047178: pop esi */
   3275     ebp = POP32_VAL(esp); /* 0x47047179: pop ebp */
   3276     ebx = POP32_VAL(esp); /* 0x4704717A: pop ebx */
   3277     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3278     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3279     esp = esp + 0xCu; /* 0x4704717B: add esp, 0xc */
   3280     _flag_k = FK_ADD;
   3281     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704717E: ret  */
   3282     RECOMP_REGS_OUT();
   3283 }
   3284 
   3285 void sub_470471D0(void) {
   3286     int _fpu_cmp = 0;
   3287     uint32_t _cf = 0;
   3288     int _df = 1;
   3289     uint32_t _flag_k = FK_NONE;
   3290     uint32_t _flag_a = 0, _flag_b = 0;
   3291     uint32_t _itail_tgt = 0;
   3292     RECOMP_REGS_LOCALS
   3293     RECOMP_ENTER(0x470471D0u);
   3294 
   3295 L_470471D0:
   3296     eax = ecx; /* 0x470471D0: mov eax, ecx */
   3297     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3298     ecx = 0; /* 0x470471D2: xor ecx, ecx */
   3299     _cf = 0;
   3300     _flag_k = FK_TEST;
   3301     MEM32(eax + 0x4) = ecx; /* 0x470471D4: mov dword ptr [eax + 4], ecx */
   3302     MEM32(eax + 0x8) = ecx; /* 0x470471D7: mov dword ptr [eax + 8], ecx */
   3303     MEM32(eax) = 0xCu; /* 0x470471DA: mov dword ptr [eax], 0xc */
   3304     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470471E0: ret  */
   3305     RECOMP_REGS_OUT();
   3306 }
   3307 
   3308 void sub_470471F0(void) {
   3309     int _fpu_cmp = 0;
   3310     uint32_t _cf = 0;
   3311     int _df = 1;
   3312     uint32_t _flag_k = FK_NONE;
   3313     uint32_t _flag_a = 0, _flag_b = 0;
   3314     uint32_t _itail_tgt = 0;
   3315     RECOMP_REGS_LOCALS
   3316     RECOMP_ENTER(0x470471F0u);
   3317 
   3318 L_470471F0:
   3319     edx = MEM32(esp + 0x8); /* 0x470471F0: mov edx, dword ptr [esp + 8] */
   3320     eax = ecx; /* 0x470471F4: mov eax, ecx */
   3321     ecx = MEM32(esp + 0x4); /* 0x470471F6: mov ecx, dword ptr [esp + 4] */
   3322     MEM32(eax + 0x4) = ecx; /* 0x470471FA: mov dword ptr [eax + 4], ecx */
   3323     MEM32(eax + 0x8) = edx; /* 0x470471FD: mov dword ptr [eax + 8], edx */
   3324     MEM32(eax) = 0xCu; /* 0x47047200: mov dword ptr [eax], 0xc */
   3325     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47047206: ret 8 */
   3326     RECOMP_REGS_OUT();
   3327 }
   3328 
   3329 void sub_47047210(void) {
   3330     int _fpu_cmp = 0;
   3331     uint32_t _cf = 0;
   3332     int _df = 1;
   3333     uint32_t _flag_k = FK_NONE;
   3334     uint32_t _flag_a = 0, _flag_b = 0;
   3335     uint32_t _itail_tgt = 0;
   3336     RECOMP_REGS_LOCALS
   3337     RECOMP_ENTER(0x47047210u);
   3338 
   3339 L_47047210:
   3340     MEM32(ecx) = 0xCu; /* 0x47047210: mov dword ptr [ecx], 0xc */
   3341     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047216: ret  */
   3342     RECOMP_REGS_OUT();
   3343 }
   3344 
   3345 void sub_47047220(void) {
   3346     int _fpu_cmp = 0;
   3347     uint32_t _cf = 0;
   3348     int _df = 1;
   3349     uint32_t _flag_k = FK_NONE;
   3350     uint32_t _flag_a = 0, _flag_b = 0;
   3351     uint32_t _itail_tgt = 0;
   3352     RECOMP_REGS_LOCALS
   3353     RECOMP_ENTER(0x47047220u);
   3354 
   3355 L_47047220:
   3356     edx = MEM32(esp + 0x4); /* 0x47047220: mov edx, dword ptr [esp + 4] */
   3357     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3358     eax = eax | 0xFFFFFFFFu; /* 0x47047224: or eax, 0xffffffff */
   3359     _cf = 0;
   3360     _flag_k = FK_TEST;
   3361     /* cmp edx, eax */ /* 0x47047227: cmp edx, eax */
   3362     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3364     _flag_k = FK_CMP;
   3365     if (CMP_NE(_flag_a, _flag_b)) goto L_47047231; /* 0x47047229: jne 0x47047231 */
   3366 L_4704722B:
   3367     MEM32(ecx + 0x4) = eax; /* 0x4704722B: mov dword ptr [ecx + 4], eax */
   3368     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704722E: ret 4 */
   3369 L_47047231:
   3370     MEM32(ecx + 0x4) = 0; /* 0x47047231: mov dword ptr [ecx + 4], 0 */
   3371     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47047238: ret 4 */
   3372     RECOMP_REGS_OUT();
   3373 }
   3374 
   3375 void sub_47047240(void) {
   3376     int _fpu_cmp = 0;
   3377     uint32_t _cf = 0;
   3378     int _df = 1;
   3379     uint32_t _flag_k = FK_NONE;
   3380     uint32_t _flag_a = 0, _flag_b = 0;
   3381     uint32_t _itail_tgt = 0;
   3382     RECOMP_REGS_LOCALS
   3383     RECOMP_ENTER(0x47047240u);
   3384 
   3385 L_47047240:
   3386     PUSH32(esp, ebx); /* 0x47047240: push ebx */
   3387     ebx = MEM32(0x470AC4AC); /* 0x47047241: mov ebx, dword ptr [0x470ac4ac] */
   3388     PUSH32(esp, esi); /* 0x47047247: push esi */
   3389     PUSH32(esp, edi); /* 0x47047248: push edi */
   3390     esi = ecx; /* 0x47047249: mov esi, ecx */
   3391     edi = MEM32(esi); /* 0x4704724B: mov edi, dword ptr [esi] */
   3392     PUSH32(esp, edi); /* 0x4704724D: push edi */
   3393     RECOMP_ICALL(ebx); /* 0x4704724E: call ebx */
   3394     RECOMP_FLAGS_IN();
   3395     MEM32(esi) = eax; /* 0x47047250: mov dword ptr [esi], eax */
   3396     eax = MEM32(esi + 0x4); /* 0x47047252: mov eax, dword ptr [esi + 4] */
   3397     PUSH32(esp, eax); /* 0x47047255: push eax */
   3398     RECOMP_ICALL(ebx); /* 0x47047256: call ebx */
   3399     RECOMP_FLAGS_IN();
   3400     ecx = MEM32(esi + 0x8); /* 0x47047258: mov ecx, dword ptr [esi + 8] */
   3401     PUSH32(esp, ecx); /* 0x4704725B: push ecx */
   3402     MEM32(esi + 0x4) = eax; /* 0x4704725C: mov dword ptr [esi + 4], eax */
   3403     RECOMP_ICALL(ebx); /* 0x4704725F: call ebx */
   3404     RECOMP_FLAGS_IN();
   3405     edx = MEM32(esp + 0x10); /* 0x47047261: mov edx, dword ptr [esp + 0x10] */
   3406     MEM32(esi + 0x8) = eax; /* 0x47047265: mov dword ptr [esi + 8], eax */
   3407     eax = edi; /* 0x47047268: mov eax, edi */
   3408     edi = POP32_VAL(esp); /* 0x4704726A: pop edi */
   3409     MEM32(edx) = esi; /* 0x4704726B: mov dword ptr [edx], esi */
   3410     esi = POP32_VAL(esp); /* 0x4704726D: pop esi */
   3411     ebx = POP32_VAL(esp); /* 0x4704726E: pop ebx */
   3412     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704726F: ret 4 */
   3413     RECOMP_REGS_OUT();
   3414 }
   3415 
   3416 void sub_47047280(void) {
   3417     int _fpu_cmp = 0;
   3418     uint32_t _cf = 0;
   3419     int _df = 1;
   3420     uint32_t _flag_k = FK_NONE;
   3421     uint32_t _flag_a = 0, _flag_b = 0;
   3422     uint32_t _itail_tgt = 0;
   3423     RECOMP_REGS_LOCALS
   3424     RECOMP_ENTER(0x47047280u);
   3425 
   3426 L_47047280:
   3427     PUSH32(esp, esi); /* 0x47047280: push esi */
   3428     esi = ecx; /* 0x47047281: mov esi, ecx */
   3429     eax = MEM32(esi); /* 0x47047283: mov eax, dword ptr [esi] */
   3430     PUSH32(esp, edi); /* 0x47047285: push edi */
   3431     edi = MEM32(0x470AC4B0); /* 0x47047286: mov edi, dword ptr [0x470ac4b0] */
   3432     PUSH32(esp, eax); /* 0x4704728C: push eax */
   3433     RECOMP_ICALL(edi); /* 0x4704728D: call edi */
   3434     RECOMP_FLAGS_IN();
   3435     ecx = MEM32(esi + 0x4); /* 0x4704728F: mov ecx, dword ptr [esi + 4] */
   3436     PUSH32(esp, ecx); /* 0x47047292: push ecx */
   3437     MEM32(esi) = eax; /* 0x47047293: mov dword ptr [esi], eax */
   3438     RECOMP_ICALL(edi); /* 0x47047295: call edi */
   3439     RECOMP_FLAGS_IN();
   3440     edx = MEM32(esi + 0x8); /* 0x47047297: mov edx, dword ptr [esi + 8] */
   3441     PUSH32(esp, edx); /* 0x4704729A: push edx */
   3442     MEM32(esi + 0x4) = eax; /* 0x4704729B: mov dword ptr [esi + 4], eax */
   3443     RECOMP_ICALL(edi); /* 0x4704729E: call edi */
   3444     RECOMP_FLAGS_IN();
   3445     MEM32(esi + 0x8) = eax; /* 0x470472A0: mov dword ptr [esi + 8], eax */
   3446     edi = POP32_VAL(esp); /* 0x470472A3: pop edi */
   3447     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3448     eax = 0; /* 0x470472A4: xor eax, eax */
   3449     _cf = 0;
   3450     _flag_k = FK_TEST;
   3451     esi = POP32_VAL(esp); /* 0x470472A6: pop esi */
   3452     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470472A7: ret  */
   3453     RECOMP_REGS_OUT();
   3454 }
   3455 
   3456 void sub_470472B0(void) {
   3457     int _fpu_cmp = 0;
   3458     uint32_t _cf = 0;
   3459     int _df = 1;
   3460     uint32_t _flag_k = FK_NONE;
   3461     uint32_t _flag_a = 0, _flag_b = 0;
   3462     uint32_t _itail_tgt = 0;
   3463     RECOMP_REGS_LOCALS
   3464     RECOMP_ENTER(0x470472B0u);
   3465 
   3466 L_470472B0:
   3467     PUSH32(esp, ecx); /* 0x470472B0: push ecx */
   3468     PUSH32(esp, ebx); /* 0x470472B1: push ebx */
   3469     ebx = MEM32(0x470AC150); /* 0x470472B2: mov ebx, dword ptr [0x470ac150] */
   3470     PUSH32(esp, ebp); /* 0x470472B8: push ebp */
   3471     PUSH32(esp, esi); /* 0x470472B9: push esi */
   3472     PUSH32(esp, edi); /* 0x470472BA: push edi */
   3473     edi = ecx; /* 0x470472BB: mov edi, ecx */
   3474     RECOMP_ICALL(ebx); /* 0x470472BD: call ebx */
   3475     RECOMP_FLAGS_IN();
   3476     ebp = MEM32(0x470AC3C8); /* 0x470472BF: mov ebp, dword ptr [0x470ac3c8] */
   3477     esi = eax; /* 0x470472C5: mov esi, eax */
   3478     RECOMP_ICALL(ebp); /* 0x470472C7: call ebp */
   3479     RECOMP_FLAGS_IN();
   3480     eax = MEM32(eax); /* 0x470472C9: mov eax, dword ptr [eax] */
   3481     /* test eax, eax */ /* 0x470472CB: test eax, eax */
   3482     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3483     _cf = 0;
   3484     _flag_k = FK_TEST;
   3485     MEM32(esp + 0x10) = esi; /* 0x470472CD: mov dword ptr [esp + 0x10], esi */
   3486     if (TEST_Z(_flag_a, _flag_b)) goto L_470472D7; /* 0x470472D1: je 0x470472d7 */
   3487 L_470472D3:
   3488     MEM32(esp + 0x10) = eax; /* 0x470472D3: mov dword ptr [esp + 0x10], eax */
   3489 L_470472D7:
   3490     RECOMP_ICALL(0x47039020u); /* 0x470472D7: call 0x47039020 */ /* not lifted */
   3491     RECOMP_FLAGS_IN();
   3492     esi = eax; /* 0x470472DC: mov esi, eax */
   3493     ecx = esi; /* 0x470472DE: mov ecx, esi */
   3494     RECOMP_ICALL(0x4703B210u); /* 0x470472E0: call 0x4703b210 */ /* not lifted */
   3495     RECOMP_FLAGS_IN();
   3496     PUSH32(esp, eax); /* 0x470472E5: push eax */
   3497     ecx = esi; /* 0x470472E6: mov ecx, esi */
   3498     RECOMP_ICALL(0x4703B240u); /* 0x470472E8: call 0x4703b240 */ /* not lifted */
   3499     RECOMP_FLAGS_IN();
   3500     PUSH32(esp, eax); /* 0x470472ED: push eax */
   3501     ecx = esi; /* 0x470472EE: mov ecx, esi */
   3502     RECOMP_ICALL(0x4703B080u); /* 0x470472F0: call 0x4703b080 */ /* not lifted */
   3503     RECOMP_FLAGS_IN();
   3504     PUSH32(esp, eax); /* 0x470472F5: push eax */
   3505     eax = MEM32(esp + 0x1C); /* 0x470472F6: mov eax, dword ptr [esp + 0x1c] */
   3506     PUSH32(esp, eax); /* 0x470472FA: push eax */
   3507     PUSH32(esp, 0); /* 0x470472FB: push 0 */
   3508     PUSH32(esp, 0x219u); /* 0x470472FD: push 0x219 */
   3509     PUSH32(esp, 0x471088D0u); /* 0x47047302: push 0x471088d0 */
   3510     ecx = esi; /* 0x47047307: mov ecx, esi */
   3511     RECOMP_ICALL(0x4703A340u); /* 0x47047309: call 0x4703a340 */ /* not lifted */
   3512     RECOMP_FLAGS_IN();
   3513     ecx = MEM32(edi + 0x8); /* 0x4704730E: mov ecx, dword ptr [edi + 8] */
   3514     edx = MEM32(edi); /* 0x47047311: mov edx, dword ptr [edi] */
   3515     PUSH32(esp, ecx); /* 0x47047313: push ecx */
   3516     PUSH32(esp, edx); /* 0x47047314: push edx */
   3517     PUSH32(esp, 0x47108934u); /* 0x47047315: push 0x47108934 */
   3518     PUSH32(esp, 4); /* 0x4704731A: push 4 */
   3519     PUSH32(esp, esi); /* 0x4704731C: push esi */
   3520     RECOMP_ICALL(0x47039830u); /* 0x4704731D: call 0x47039830 */ /* not lifted */
   3521     RECOMP_FLAGS_IN();
   3522     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3523     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3524     esp = esp + 0x14u; /* 0x47047322: add esp, 0x14 */
   3525     _flag_k = FK_ADD;
   3526     RECOMP_ICALL(ebx); /* 0x47047325: call ebx */
   3527     RECOMP_FLAGS_IN();
   3528     esi = eax; /* 0x47047327: mov esi, eax */
   3529     RECOMP_ICALL(ebp); /* 0x47047329: call ebp */
   3530     RECOMP_FLAGS_IN();
   3531     eax = MEM32(eax); /* 0x4704732B: mov eax, dword ptr [eax] */
   3532     /* test eax, eax */ /* 0x4704732D: test eax, eax */
   3533     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3534     _cf = 0;
   3535     _flag_k = FK_TEST;
   3536     MEM32(esp + 0x10) = esi; /* 0x4704732F: mov dword ptr [esp + 0x10], esi */
   3537     if (TEST_Z(_flag_a, _flag_b)) goto L_47047339; /* 0x47047333: je 0x47047339 */
   3538 L_47047335:
   3539     MEM32(esp + 0x10) = eax; /* 0x47047335: mov dword ptr [esp + 0x10], eax */
   3540 L_47047339:
   3541     RECOMP_ICALL(0x47039020u); /* 0x47047339: call 0x47039020 */ /* not lifted */
   3542     RECOMP_FLAGS_IN();
   3543     esi = eax; /* 0x4704733E: mov esi, eax */
   3544     ecx = esi; /* 0x47047340: mov ecx, esi */
   3545     RECOMP_ICALL(0x4703B210u); /* 0x47047342: call 0x4703b210 */ /* not lifted */
   3546     RECOMP_FLAGS_IN();
   3547     PUSH32(esp, eax); /* 0x47047347: push eax */
   3548     ecx = esi; /* 0x47047348: mov ecx, esi */
   3549     RECOMP_ICALL(0x4703B240u); /* 0x4704734A: call 0x4703b240 */ /* not lifted */
   3550     RECOMP_FLAGS_IN();
   3551     PUSH32(esp, eax); /* 0x4704734F: push eax */
   3552     ecx = esi; /* 0x47047350: mov ecx, esi */
   3553     RECOMP_ICALL(0x4703B080u); /* 0x47047352: call 0x4703b080 */ /* not lifted */
   3554     RECOMP_FLAGS_IN();
   3555     PUSH32(esp, eax); /* 0x47047357: push eax */
   3556     eax = MEM32(esp + 0x1C); /* 0x47047358: mov eax, dword ptr [esp + 0x1c] */
   3557     PUSH32(esp, eax); /* 0x4704735C: push eax */
   3558     PUSH32(esp, 0); /* 0x4704735D: push 0 */
   3559     PUSH32(esp, 0x21Bu); /* 0x4704735F: push 0x21b */
   3560     PUSH32(esp, 0x471088D0u); /* 0x47047364: push 0x471088d0 */
   3561     ecx = esi; /* 0x47047369: mov ecx, esi */
   3562     RECOMP_ICALL(0x4703A340u); /* 0x4704736B: call 0x4703a340 */ /* not lifted */
   3563     RECOMP_FLAGS_IN();
   3564     PUSH32(esp, 0x4710892Cu); /* 0x47047370: push 0x4710892c */
   3565     PUSH32(esp, 4); /* 0x47047375: push 4 */
   3566     PUSH32(esp, esi); /* 0x47047377: push esi */
   3567     RECOMP_ICALL(0x47039830u); /* 0x47047378: call 0x47039830 */ /* not lifted */
   3568     RECOMP_FLAGS_IN();
   3569     eax = MEM32(edi + 0x4); /* 0x4704737D: mov eax, dword ptr [edi + 4] */
   3570     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3571     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3572     esp = esp + 0xCu; /* 0x47047380: add esp, 0xc */
   3573     _flag_k = FK_ADD;
   3574     /* cmp eax, 0xFFFFFFFFu */ /* 0x47047383: cmp eax, -1 */
   3575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3577     _flag_k = FK_CMP;
   3578     if (CMP_EQ(_flag_a, _flag_b)) goto L_47047442; /* 0x47047386: je 0x47047442 */
   3579 L_4704738C:
   3580     /* test eax, eax */ /* 0x4704738C: test eax, eax */
   3581     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3582     _cf = 0;
   3583     _flag_k = FK_TEST;
   3584     if (TEST_Z(_flag_a, _flag_b)) goto L_470473EB; /* 0x4704738E: je 0x470473eb */
   3585 L_47047390:
   3586     RECOMP_ICALL(ebx); /* 0x47047390: call ebx */
   3587     RECOMP_FLAGS_IN();
   3588     ebx = eax; /* 0x47047392: mov ebx, eax */
   3589     RECOMP_ICALL(ebp); /* 0x47047394: call ebp */
   3590     RECOMP_FLAGS_IN();
   3591     eax = MEM32(eax); /* 0x47047396: mov eax, dword ptr [eax] */
   3592     /* test eax, eax */ /* 0x47047398: test eax, eax */
   3593     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3594     _cf = 0;
   3595     _flag_k = FK_TEST;
   3596     if (TEST_Z(_flag_a, _flag_b)) goto L_4704739E; /* 0x4704739A: je 0x4704739e */
   3597 L_4704739C:
   3598     ebx = eax; /* 0x4704739C: mov ebx, eax */
   3599 L_4704739E:
   3600     RECOMP_ICALL(0x47039020u); /* 0x4704739E: call 0x47039020 */ /* not lifted */
   3601     RECOMP_FLAGS_IN();
   3602     esi = eax; /* 0x470473A3: mov esi, eax */
   3603     ecx = esi; /* 0x470473A5: mov ecx, esi */
   3604     RECOMP_ICALL(0x4703B210u); /* 0x470473A7: call 0x4703b210 */ /* not lifted */
   3605     RECOMP_FLAGS_IN();
   3606     PUSH32(esp, eax); /* 0x470473AC: push eax */
   3607     ecx = esi; /* 0x470473AD: mov ecx, esi */
   3608     RECOMP_ICALL(0x4703B240u); /* 0x470473AF: call 0x4703b240 */ /* not lifted */
   3609     RECOMP_FLAGS_IN();
   3610     PUSH32(esp, eax); /* 0x470473B4: push eax */
   3611     ecx = esi; /* 0x470473B5: mov ecx, esi */
   3612     RECOMP_ICALL(0x4703B080u); /* 0x470473B7: call 0x4703b080 */ /* not lifted */
   3613     RECOMP_FLAGS_IN();
   3614     PUSH32(esp, eax); /* 0x470473BC: push eax */
   3615     PUSH32(esp, ebx); /* 0x470473BD: push ebx */
   3616     PUSH32(esp, 0); /* 0x470473BE: push 0 */
   3617     PUSH32(esp, 0x229u); /* 0x470473C0: push 0x229 */
   3618     PUSH32(esp, 0x471088D0u); /* 0x470473C5: push 0x471088d0 */
   3619     ecx = esi; /* 0x470473CA: mov ecx, esi */
   3620     RECOMP_ICALL(0x4703A340u); /* 0x470473CC: call 0x4703a340 */ /* not lifted */
   3621     RECOMP_FLAGS_IN();
   3622     ecx = MEM32(edi + 0x4); /* 0x470473D1: mov ecx, dword ptr [edi + 4] */
   3623     PUSH32(esp, ecx); /* 0x470473D4: push ecx */
   3624     PUSH32(esp, 0x47108808u); /* 0x470473D5: push 0x47108808 */
   3625     PUSH32(esp, 4); /* 0x470473DA: push 4 */
   3626     PUSH32(esp, esi); /* 0x470473DC: push esi */
   3627     RECOMP_ICALL(0x47039830u); /* 0x470473DD: call 0x47039830 */ /* not lifted */
   3628     RECOMP_FLAGS_IN();
   3629     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3630     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3631     esp = esp + 0x10u; /* 0x470473E2: add esp, 0x10 */
   3632     _flag_k = FK_ADD;
   3633     edi = POP32_VAL(esp); /* 0x470473E5: pop edi */
   3634     esi = POP32_VAL(esp); /* 0x470473E6: pop esi */
   3635     ebp = POP32_VAL(esp); /* 0x470473E7: pop ebp */
   3636     ebx = POP32_VAL(esp); /* 0x470473E8: pop ebx */
   3637     ecx = POP32_VAL(esp); /* 0x470473E9: pop ecx */
   3638     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470473EA: ret  */
   3639 L_470473EB:
   3640     RECOMP_ICALL(ebx); /* 0x470473EB: call ebx */
   3641     RECOMP_FLAGS_IN();
   3642     edi = eax; /* 0x470473ED: mov edi, eax */
   3643     RECOMP_ICALL(ebp); /* 0x470473EF: call ebp */
   3644     RECOMP_FLAGS_IN();
   3645     eax = MEM32(eax); /* 0x470473F1: mov eax, dword ptr [eax] */
   3646     /* test eax, eax */ /* 0x470473F3: test eax, eax */
   3647     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3648     _cf = 0;
   3649     _flag_k = FK_TEST;
   3650     if (TEST_Z(_flag_a, _flag_b)) goto L_470473F9; /* 0x470473F5: je 0x470473f9 */
   3651 L_470473F7:
   3652     edi = eax; /* 0x470473F7: mov edi, eax */
   3653 L_470473F9:
   3654     RECOMP_ICALL(0x47039020u); /* 0x470473F9: call 0x47039020 */ /* not lifted */
   3655     RECOMP_FLAGS_IN();
   3656     esi = eax; /* 0x470473FE: mov esi, eax */
   3657     ecx = esi; /* 0x47047400: mov ecx, esi */
   3658     RECOMP_ICALL(0x4703B210u); /* 0x47047402: call 0x4703b210 */ /* not lifted */
   3659     RECOMP_FLAGS_IN();
   3660     PUSH32(esp, eax); /* 0x47047407: push eax */
   3661     ecx = esi; /* 0x47047408: mov ecx, esi */
   3662     RECOMP_ICALL(0x4703B240u); /* 0x4704740A: call 0x4703b240 */ /* not lifted */
   3663     RECOMP_FLAGS_IN();
   3664     PUSH32(esp, eax); /* 0x4704740F: push eax */
   3665     ecx = esi; /* 0x47047410: mov ecx, esi */
   3666     RECOMP_ICALL(0x4703B080u); /* 0x47047412: call 0x4703b080 */ /* not lifted */
   3667     RECOMP_FLAGS_IN();
   3668     PUSH32(esp, eax); /* 0x47047417: push eax */
   3669     PUSH32(esp, edi); /* 0x47047418: push edi */
   3670     PUSH32(esp, 0); /* 0x47047419: push 0 */
   3671     PUSH32(esp, 0x220u); /* 0x4704741B: push 0x220 */
   3672     PUSH32(esp, 0x471088D0u); /* 0x47047420: push 0x471088d0 */
   3673     ecx = esi; /* 0x47047425: mov ecx, esi */
   3674     RECOMP_ICALL(0x4703A340u); /* 0x47047427: call 0x4703a340 */ /* not lifted */
   3675     RECOMP_FLAGS_IN();
   3676     PUSH32(esp, 0x47108920u); /* 0x4704742C: push 0x47108920 */
   3677     PUSH32(esp, 4); /* 0x47047431: push 4 */
   3678     PUSH32(esp, esi); /* 0x47047433: push esi */
   3679     RECOMP_ICALL(0x47039830u); /* 0x47047434: call 0x47039830 */ /* not lifted */
   3680     RECOMP_FLAGS_IN();
   3681     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3682     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3683     esp = esp + 0xCu; /* 0x47047439: add esp, 0xc */
   3684     _flag_k = FK_ADD;
   3685     edi = POP32_VAL(esp); /* 0x4704743C: pop edi */
   3686     esi = POP32_VAL(esp); /* 0x4704743D: pop esi */
   3687     ebp = POP32_VAL(esp); /* 0x4704743E: pop ebp */
   3688     ebx = POP32_VAL(esp); /* 0x4704743F: pop ebx */
   3689     ecx = POP32_VAL(esp); /* 0x47047440: pop ecx */
   3690     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047441: ret  */
   3691 L_47047442:
   3692     RECOMP_ICALL(ebx); /* 0x47047442: call ebx */
   3693     RECOMP_FLAGS_IN();
   3694     edi = eax; /* 0x47047444: mov edi, eax */
   3695     RECOMP_ICALL(ebp); /* 0x47047446: call ebp */
   3696     RECOMP_FLAGS_IN();
   3697     eax = MEM32(eax); /* 0x47047448: mov eax, dword ptr [eax] */
   3698     /* test eax, eax */ /* 0x4704744A: test eax, eax */
   3699     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3700     _cf = 0;
   3701     _flag_k = FK_TEST;
   3702     if (TEST_Z(_flag_a, _flag_b)) goto L_47047450; /* 0x4704744C: je 0x47047450 */
   3703 L_4704744E:
   3704     edi = eax; /* 0x4704744E: mov edi, eax */
   3705 L_47047450:
   3706     RECOMP_ICALL(0x47039020u); /* 0x47047450: call 0x47039020 */ /* not lifted */
   3707     RECOMP_FLAGS_IN();
   3708     esi = eax; /* 0x47047455: mov esi, eax */
   3709     ecx = esi; /* 0x47047457: mov ecx, esi */
   3710     RECOMP_ICALL(0x4703B210u); /* 0x47047459: call 0x4703b210 */ /* not lifted */
   3711     RECOMP_FLAGS_IN();
   3712     PUSH32(esp, eax); /* 0x4704745E: push eax */
   3713     ecx = esi; /* 0x4704745F: mov ecx, esi */
   3714     RECOMP_ICALL(0x4703B240u); /* 0x47047461: call 0x4703b240 */ /* not lifted */
   3715     RECOMP_FLAGS_IN();
   3716     PUSH32(esp, eax); /* 0x47047466: push eax */
   3717     ecx = esi; /* 0x47047467: mov ecx, esi */
   3718     RECOMP_ICALL(0x4703B080u); /* 0x47047469: call 0x4703b080 */ /* not lifted */
   3719     RECOMP_FLAGS_IN();
   3720     PUSH32(esp, eax); /* 0x4704746E: push eax */
   3721     PUSH32(esp, edi); /* 0x4704746F: push edi */
   3722     PUSH32(esp, 0); /* 0x47047470: push 0 */
   3723     PUSH32(esp, 0x224u); /* 0x47047472: push 0x224 */
   3724     PUSH32(esp, 0x471088D0u); /* 0x47047477: push 0x471088d0 */
   3725     ecx = esi; /* 0x4704747C: mov ecx, esi */
   3726     RECOMP_ICALL(0x4703A340u); /* 0x4704747E: call 0x4703a340 */ /* not lifted */
   3727     RECOMP_FLAGS_IN();
   3728     PUSH32(esp, 0x47108914u); /* 0x47047483: push 0x47108914 */
   3729     PUSH32(esp, 4); /* 0x47047488: push 4 */
   3730     PUSH32(esp, esi); /* 0x4704748A: push esi */
   3731     RECOMP_ICALL(0x47039830u); /* 0x4704748B: call 0x47039830 */ /* not lifted */
   3732     RECOMP_FLAGS_IN();
   3733     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3734     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3735     esp = esp + 0xCu; /* 0x47047490: add esp, 0xc */
   3736     _flag_k = FK_ADD;
   3737     edi = POP32_VAL(esp); /* 0x47047493: pop edi */
   3738     esi = POP32_VAL(esp); /* 0x47047494: pop esi */
   3739     ebp = POP32_VAL(esp); /* 0x47047495: pop ebp */
   3740     ebx = POP32_VAL(esp); /* 0x47047496: pop ebx */
   3741     ecx = POP32_VAL(esp); /* 0x47047497: pop ecx */
   3742     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047498: ret  */
   3743     RECOMP_REGS_OUT();
   3744 }
   3745 
   3746 void sub_470474A0(void) {
   3747     int _fpu_cmp = 0;
   3748     uint32_t _cf = 0;
   3749     int _df = 1;
   3750     uint32_t _flag_k = FK_NONE;
   3751     uint32_t _flag_a = 0, _flag_b = 0;
   3752     uint32_t _itail_tgt = 0;
   3753     RECOMP_REGS_LOCALS
   3754     RECOMP_ENTER(0x470474A0u);
   3755 
   3756 L_470474A0:
   3757     ecx = 0x4710E7E1u; /* 0x470474A0: mov ecx, 0x4710e7e1 */
   3758     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x470474A5: call dword ptr [0x470ac1c8] */
   3759     RECOMP_FLAGS_IN();
   3760     PUSH32(esp, 0x470474C0u); /* 0x470474AB: push 0x470474c0 */
   3761     RECOMP_ICALL(0x470A32D9u); /* 0x470474B0: call 0x470a32d9 */ /* not lifted */
   3762     RECOMP_FLAGS_IN();
   3763     ecx = POP32_VAL(esp); /* 0x470474B5: pop ecx */
   3764     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470474B6: ret  */
   3765     RECOMP_REGS_OUT();
   3766 }
   3767 
   3768 void sub_470474C0(void) {
   3769     int _fpu_cmp = 0;
   3770     uint32_t _cf = 0;
   3771     int _df = 1;
   3772     uint32_t _flag_k = FK_NONE;
   3773     uint32_t _flag_a = 0, _flag_b = 0;
   3774     uint32_t _itail_tgt = 0;
   3775     RECOMP_REGS_LOCALS
   3776     RECOMP_ENTER(0x470474C0u);
   3777 
   3778 L_470474C0:
   3779     ecx = 0x4710E7E1u; /* 0x470474C0: mov ecx, 0x4710e7e1 */
   3780 L_470474C5:
   3781     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   3782     { RECOMP_REGS_OUT(); return; } /* end of function */
   3783   _ljump:
   3784     switch (_itail_tgt) {
   3785       case 0x470474C0u: goto L_470474C0;
   3786       case 0x470474C5u: goto L_470474C5;
   3787       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3788     }
   3789     RECOMP_REGS_OUT();
   3790 }
   3791 
   3792 void sub_470474D0(void) {
   3793     int _fpu_cmp = 0;
   3794     uint32_t _cf = 0;
   3795     int _df = 1;
   3796     uint32_t _flag_k = FK_NONE;
   3797     uint32_t _flag_a = 0, _flag_b = 0;
   3798     uint32_t _itail_tgt = 0;
   3799     RECOMP_REGS_LOCALS
   3800     RECOMP_ENTER(0x470474D0u);
   3801 
   3802 L_470474D0:
   3803     ecx = 0x4710E7E0u; /* 0x470474D0: mov ecx, 0x4710e7e0 */
   3804     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470474D5: call dword ptr [0x470ac1c4] */
   3805     RECOMP_FLAGS_IN();
   3806     PUSH32(esp, 0x470474F0u); /* 0x470474DB: push 0x470474f0 */
   3807     RECOMP_ICALL(0x470A32D9u); /* 0x470474E0: call 0x470a32d9 */ /* not lifted */
   3808     RECOMP_FLAGS_IN();
   3809     ecx = POP32_VAL(esp); /* 0x470474E5: pop ecx */
   3810     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470474E6: ret  */
   3811     RECOMP_REGS_OUT();
   3812 }
   3813 
   3814 void sub_470474F0(void) {
   3815     int _fpu_cmp = 0;
   3816     uint32_t _cf = 0;
   3817     int _df = 1;
   3818     uint32_t _flag_k = FK_NONE;
   3819     uint32_t _flag_a = 0, _flag_b = 0;
   3820     uint32_t _itail_tgt = 0;
   3821     RECOMP_REGS_LOCALS
   3822     RECOMP_ENTER(0x470474F0u);
   3823 
   3824 L_470474F0:
   3825     ecx = 0x4710E7E0u; /* 0x470474F0: mov ecx, 0x4710e7e0 */
   3826 L_470474F5:
   3827     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   3828     { RECOMP_REGS_OUT(); return; } /* end of function */
   3829   _ljump:
   3830     switch (_itail_tgt) {
   3831       case 0x470474F0u: goto L_470474F0;
   3832       case 0x470474F5u: goto L_470474F5;
   3833       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3834     }
   3835     RECOMP_REGS_OUT();
   3836 }
   3837 
   3838 void sub_47047500(void) {
   3839     int _fpu_cmp = 0;
   3840     uint32_t _cf = 0;
   3841     int _df = 1;
   3842     uint32_t _flag_k = FK_NONE;
   3843     uint32_t _flag_a = 0, _flag_b = 0;
   3844     uint32_t _itail_tgt = 0;
   3845     RECOMP_REGS_LOCALS
   3846     RECOMP_ENTER(0x47047500u);
   3847 
   3848 L_47047500:
   3849     MEM32(0x4710E7D8) = 0x47104A3Cu; /* 0x47047500: mov dword ptr [0x4710e7d8], 0x47104a3c */
   3850     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704750A: ret  */
   3851     RECOMP_REGS_OUT();
   3852 }
   3853 
   3854 void sub_47047510(void) {
   3855     int _fpu_cmp = 0;
   3856     uint32_t _cf = 0;
   3857     int _df = 1;
   3858     uint32_t _flag_k = FK_NONE;
   3859     uint32_t _flag_a = 0, _flag_b = 0;
   3860     uint32_t _itail_tgt = 0;
   3861     RECOMP_REGS_LOCALS
   3862     RECOMP_ENTER(0x47047510u);
   3863 
   3864 L_47047510:
   3865     MEM32(0x4710E7EC) = 0x47104A00u; /* 0x47047510: mov dword ptr [0x4710e7ec], 0x47104a00 */
   3866     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704751A: ret  */
   3867     RECOMP_REGS_OUT();
   3868 }
   3869 
   3870 void sub_47047520(void) {
   3871     int _fpu_cmp = 0;
   3872     uint32_t _cf = 0;
   3873     int _df = 1;
   3874     uint32_t _flag_k = FK_NONE;
   3875     uint32_t _flag_a = 0, _flag_b = 0;
   3876     uint32_t _itail_tgt = 0;
   3877     RECOMP_REGS_LOCALS
   3878     RECOMP_ENTER(0x47047520u);
   3879 
   3880 L_47047520:
   3881     MEM32(0x4710E7E4) = 0x47104A70u; /* 0x47047520: mov dword ptr [0x4710e7e4], 0x47104a70 */
   3882     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704752A: ret  */
   3883     RECOMP_REGS_OUT();
   3884 }
   3885 
   3886 void sub_47047530(void) {
   3887     int _fpu_cmp = 0;
   3888     uint32_t _cf = 0;
   3889     int _df = 1;
   3890     uint32_t _flag_k = FK_NONE;
   3891     uint32_t _flag_a = 0, _flag_b = 0;
   3892     uint32_t _itail_tgt = 0;
   3893     RECOMP_REGS_LOCALS
   3894     RECOMP_ENTER(0x47047530u);
   3895 
   3896 L_47047530:
   3897     MEM32(0x4710E7F8) = 0x47104B6Cu; /* 0x47047530: mov dword ptr [0x4710e7f8], 0x47104b6c */
   3898     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704753A: ret  */
   3899     RECOMP_REGS_OUT();
   3900 }
   3901 
   3902 void sub_47047540(void) {
   3903     int _fpu_cmp = 0;
   3904     uint32_t _cf = 0;
   3905     int _df = 1;
   3906     uint32_t _flag_k = FK_NONE;
   3907     uint32_t _flag_a = 0, _flag_b = 0;
   3908     uint32_t _itail_tgt = 0;
   3909     RECOMP_REGS_LOCALS
   3910     RECOMP_ENTER(0x47047540u);
   3911 
   3912 L_47047540:
   3913     MEM32(0x4710E7DC) = 0x47104BA0u; /* 0x47047540: mov dword ptr [0x4710e7dc], 0x47104ba0 */
   3914     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704754A: ret  */
   3915     RECOMP_REGS_OUT();
   3916 }
   3917 
   3918 void sub_47047550(void) {
   3919     int _fpu_cmp = 0;
   3920     uint32_t _cf = 0;
   3921     int _df = 1;
   3922     uint32_t _flag_k = FK_NONE;
   3923     uint32_t _flag_a = 0, _flag_b = 0;
   3924     uint32_t _itail_tgt = 0;
   3925     RECOMP_REGS_LOCALS
   3926     RECOMP_ENTER(0x47047550u);
   3927 
   3928 L_47047550:
   3929     MEM32(0x4710E7F4) = 0x47104BD4u; /* 0x47047550: mov dword ptr [0x4710e7f4], 0x47104bd4 */
   3930     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704755A: ret  */
   3931     RECOMP_REGS_OUT();
   3932 }
   3933 
   3934 void sub_47047560(void) {
   3935     int _fpu_cmp = 0;
   3936     uint32_t _cf = 0;
   3937     int _df = 1;
   3938     uint32_t _flag_k = FK_NONE;
   3939     uint32_t _flag_a = 0, _flag_b = 0;
   3940     uint32_t _itail_tgt = 0;
   3941     RECOMP_REGS_LOCALS
   3942     RECOMP_ENTER(0x47047560u);
   3943 
   3944 L_47047560:
   3945     MEM32(0x4710E7F0) = 0x471050FCu; /* 0x47047560: mov dword ptr [0x4710e7f0], 0x471050fc */
   3946     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704756A: ret  */
   3947     RECOMP_REGS_OUT();
   3948 }
   3949 
   3950 void sub_47047570(void) {
   3951     int _fpu_cmp = 0;
   3952     uint32_t _cf = 0;
   3953     int _df = 1;
   3954     uint32_t _flag_k = FK_NONE;
   3955     uint32_t _flag_a = 0, _flag_b = 0;
   3956     uint32_t _itail_tgt = 0;
   3957     RECOMP_REGS_LOCALS
   3958     RECOMP_ENTER(0x47047570u);
   3959 
   3960 L_47047570:
   3961     MEM32(0x4710E7E8) = 0x47108954u; /* 0x47047570: mov dword ptr [0x4710e7e8], 0x47108954 */
   3962     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704757A: ret  */
   3963     RECOMP_REGS_OUT();
   3964 }
   3965 
   3966 void sub_47047580(void) {
   3967     int _fpu_cmp = 0;
   3968     uint32_t _cf = 0;
   3969     int _df = 1;
   3970     uint32_t _flag_k = FK_NONE;
   3971     uint32_t _flag_a = 0, _flag_b = 0;
   3972     uint32_t _itail_tgt = 0;
   3973     RECOMP_REGS_LOCALS
   3974     RECOMP_ENTER(0x47047580u);
   3975 
   3976 L_47047580:
   3977     PUSH32(esp, 0xFFFFFFFFu); /* 0x47047580: push -1 */
   3978     PUSH32(esp, 0x470A67A8u); /* 0x47047582: push 0x470a67a8 */
   3979     eax = MEM32(FS_BASE + (0)); /* 0x47047587: mov eax, dword ptr fs:[0] */
   3980     PUSH32(esp, eax); /* 0x4704758D: push eax */
   3981     MEM32(FS_BASE + (0)) = esp; /* 0x4704758E: mov dword ptr fs:[0], esp */
   3982     PUSH32(esp, ecx); /* 0x47047595: push ecx */
   3983     PUSH32(esp, esi); /* 0x47047596: push esi */
   3984     esi = ecx; /* 0x47047597: mov esi, ecx */
   3985     PUSH32(esp, 0); /* 0x47047599: push 0 */
   3986     MEM32(esp + 0x8) = esi; /* 0x4704759B: mov dword ptr [esp + 8], esi */
   3987     RECOMP_ICALL(0x470809E0u); /* 0x4704759F: call 0x470809e0 */ /* not lifted */
   3988     RECOMP_FLAGS_IN();
   3989     PUSH32(esp, 0); /* 0x470475A4: push 0 */
   3990     ecx = esi + 0xC; /* 0x470475A6: lea ecx, [esi + 0xc] */
   3991     MEM32(esp + 0x14) = 0; /* 0x470475A9: mov dword ptr [esp + 0x14], 0 */
   3992     RECOMP_ICALL(0x470809E0u); /* 0x470475B1: call 0x470809e0 */ /* not lifted */
   3993     RECOMP_FLAGS_IN();
   3994     PUSH32(esp, 0x4710DE90u); /* 0x470475B6: push 0x4710de90 */
   3995     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x470475BB: call dword ptr [0x470ac3f4] */
   3996     RECOMP_FLAGS_IN();
   3997     ecx = MEM32(esp + 0xC); /* 0x470475C1: mov ecx, dword ptr [esp + 0xc] */
   3998     MEM32(esi + 0x18) = eax; /* 0x470475C5: mov dword ptr [esi + 0x18], eax */
   3999     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4000     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4001     esp = esp + 4; /* 0x470475C8: add esp, 4 */
   4002     _flag_k = FK_ADD;
   4003     eax = esi; /* 0x470475CB: mov eax, esi */
   4004     esi = POP32_VAL(esp); /* 0x470475CD: pop esi */
   4005     MEM32(FS_BASE + (0)) = ecx; /* 0x470475CE: mov dword ptr fs:[0], ecx */
   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; /* 0x470475D5: add esp, 0x10 */
   4009     _flag_k = FK_ADD;
   4010     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470475D8: ret  */
   4011     RECOMP_REGS_OUT();
   4012 }
   4013 
   4014 void sub_470475E0(void) {
   4015     int _fpu_cmp = 0;
   4016     uint32_t _cf = 0;
   4017     int _df = 1;
   4018     uint32_t _flag_k = FK_NONE;
   4019     uint32_t _flag_a = 0, _flag_b = 0;
   4020     uint32_t _itail_tgt = 0;
   4021     RECOMP_REGS_LOCALS
   4022     RECOMP_ENTER(0x470475E0u);
   4023 
   4024 L_470475E0:
   4025     PUSH32(esp, 0xFFFFFFFFu); /* 0x470475E0: push -1 */
   4026     PUSH32(esp, 0x470A67C8u); /* 0x470475E2: push 0x470a67c8 */
   4027     eax = MEM32(FS_BASE + (0)); /* 0x470475E7: mov eax, dword ptr fs:[0] */
   4028     PUSH32(esp, eax); /* 0x470475ED: push eax */
   4029     MEM32(FS_BASE + (0)) = esp; /* 0x470475EE: mov dword ptr fs:[0], esp */
   4030     PUSH32(esp, ecx); /* 0x470475F5: push ecx */
   4031     PUSH32(esp, esi); /* 0x470475F6: push esi */
   4032     esi = ecx; /* 0x470475F7: mov esi, ecx */
   4033     MEM32(esp + 0x4) = esi; /* 0x470475F9: mov dword ptr [esp + 4], esi */
   4034     eax = MEM32(esi + 0x18); /* 0x470475FD: mov eax, dword ptr [esi + 0x18] */
   4035     PUSH32(esp, eax); /* 0x47047600: push eax */
   4036     MEM32(esp + 0x14) = 0; /* 0x47047601: mov dword ptr [esp + 0x14], 0 */
   4037     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47047609: call dword ptr [0x470ac390] */
   4038     RECOMP_FLAGS_IN();
   4039     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4040     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4041     esp = esp + 4; /* 0x4704760F: add esp, 4 */
   4042     _flag_k = FK_ADD;
   4043     ecx = esi + 0xC; /* 0x47047612: lea ecx, [esi + 0xc] */
   4044     RECOMP_ICALL(0x470810C0u); /* 0x47047615: call 0x470810c0 */ /* not lifted */
   4045     RECOMP_FLAGS_IN();
   4046     ecx = esi; /* 0x4704761A: mov ecx, esi */
   4047     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4704761C: mov dword ptr [esp + 0x10], 0xffffffff */
   4048     RECOMP_ICALL(0x470810C0u); /* 0x47047624: call 0x470810c0 */ /* not lifted */
   4049     RECOMP_FLAGS_IN();
   4050     ecx = MEM32(esp + 0x8); /* 0x47047629: mov ecx, dword ptr [esp + 8] */
   4051     esi = POP32_VAL(esp); /* 0x4704762D: pop esi */
   4052     MEM32(FS_BASE + (0)) = ecx; /* 0x4704762E: mov dword ptr fs:[0], ecx */
   4053     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4054     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4055     esp = esp + 0x10u; /* 0x47047635: add esp, 0x10 */
   4056     _flag_k = FK_ADD;
   4057     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047638: ret  */
   4058     RECOMP_REGS_OUT();
   4059 }
   4060 
   4061 void sub_47047640(void) {
   4062     int _fpu_cmp = 0;
   4063     uint32_t _cf = 0;
   4064     int _df = 1;
   4065     uint32_t _flag_k = FK_NONE;
   4066     uint32_t _flag_a = 0, _flag_b = 0;
   4067     uint32_t _itail_tgt = 0;
   4068     RECOMP_REGS_LOCALS
   4069     RECOMP_ENTER(0x47047640u);
   4070 
   4071 L_47047640:
   4072     PUSH32(esp, 0xFFFFFFFFu); /* 0x47047640: push -1 */
   4073     PUSH32(esp, 0x470A67E8u); /* 0x47047642: push 0x470a67e8 */
   4074     eax = MEM32(FS_BASE + (0)); /* 0x47047647: mov eax, dword ptr fs:[0] */
   4075     PUSH32(esp, eax); /* 0x4704764D: push eax */
   4076     MEM32(FS_BASE + (0)) = esp; /* 0x4704764E: mov dword ptr fs:[0], esp */
   4077     PUSH32(esp, ecx); /* 0x47047655: push ecx */
   4078     eax = MEM32(esp + 0x14); /* 0x47047656: mov eax, dword ptr [esp + 0x14] */
   4079     PUSH32(esp, esi); /* 0x4704765A: push esi */
   4080     esi = ecx; /* 0x4704765B: mov esi, ecx */
   4081     PUSH32(esp, eax); /* 0x4704765D: push eax */
   4082     MEM32(esp + 0x8) = esi; /* 0x4704765E: mov dword ptr [esp + 8], esi */
   4083     RECOMP_ICALL(0x47080CD0u); /* 0x47047662: call 0x47080cd0 */ /* not lifted */
   4084     RECOMP_FLAGS_IN();
   4085     ecx = MEM32(esp + 0x1C); /* 0x47047667: mov ecx, dword ptr [esp + 0x1c] */
   4086     PUSH32(esp, ecx); /* 0x4704766B: push ecx */
   4087     ecx = esi + 0xC; /* 0x4704766C: lea ecx, [esi + 0xc] */
   4088     MEM32(esp + 0x14) = 0; /* 0x4704766F: mov dword ptr [esp + 0x14], 0 */
   4089     RECOMP_ICALL(0x47080CD0u); /* 0x47047677: call 0x47080cd0 */ /* not lifted */
   4090     RECOMP_FLAGS_IN();
   4091     eax = MEM32(esp + 0x20); /* 0x4704767C: mov eax, dword ptr [esp + 0x20] */
   4092     /* test eax, eax */ /* 0x47047680: test eax, eax */
   4093     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4094     _cf = 0;
   4095     _flag_k = FK_TEST;
   4096     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704768B; /* 0x47047682: jne 0x4704768b */
   4097 L_47047684:
   4098     PUSH32(esp, 0x4710DE90u); /* 0x47047684: push 0x4710de90 */
   4099     goto L_4704768C; /* 0x47047689: jmp 0x4704768c */
   4100 L_4704768B:
   4101     PUSH32(esp, eax); /* 0x4704768B: push eax */
   4102 L_4704768C:
   4103     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x4704768C: call dword ptr [0x470ac3f4] */
   4104     RECOMP_FLAGS_IN();
   4105     ecx = MEM32(esp + 0xC); /* 0x47047692: mov ecx, dword ptr [esp + 0xc] */
   4106     MEM32(esi + 0x18) = eax; /* 0x47047696: mov dword ptr [esi + 0x18], eax */
   4107     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4108     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4109     esp = esp + 4; /* 0x47047699: add esp, 4 */
   4110     _flag_k = FK_ADD;
   4111     eax = esi; /* 0x4704769C: mov eax, esi */
   4112     esi = POP32_VAL(esp); /* 0x4704769E: pop esi */
   4113     MEM32(FS_BASE + (0)) = ecx; /* 0x4704769F: mov dword ptr fs:[0], ecx */
   4114     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4116     esp = esp + 0x10u; /* 0x470476A6: add esp, 0x10 */
   4117     _flag_k = FK_ADD;
   4118     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470476A9: ret 0xc */
   4119     RECOMP_REGS_OUT();
   4120 }
   4121 
   4122 void sub_470476B0(void) {
   4123     int _fpu_cmp = 0;
   4124     uint32_t _cf = 0;
   4125     int _df = 1;
   4126     uint32_t _flag_k = FK_NONE;
   4127     uint32_t _flag_a = 0, _flag_b = 0;
   4128     uint32_t _itail_tgt = 0;
   4129     RECOMP_REGS_LOCALS
   4130     RECOMP_ENTER(0x470476B0u);
   4131 
   4132 L_470476B0:
   4133     PUSH32(esp, 0xFFFFFFFFu); /* 0x470476B0: push -1 */
   4134     PUSH32(esp, 0x470A6808u); /* 0x470476B2: push 0x470a6808 */
   4135     eax = MEM32(FS_BASE + (0)); /* 0x470476B7: mov eax, dword ptr fs:[0] */
   4136     PUSH32(esp, eax); /* 0x470476BD: push eax */
   4137     MEM32(FS_BASE + (0)) = esp; /* 0x470476BE: mov dword ptr fs:[0], esp */
   4138     PUSH32(esp, ecx); /* 0x470476C5: push ecx */
   4139     PUSH32(esp, esi); /* 0x470476C6: push esi */
   4140     PUSH32(esp, edi); /* 0x470476C7: push edi */
   4141     edi = MEM32(esp + 0x1C); /* 0x470476C8: mov edi, dword ptr [esp + 0x1c] */
   4142     esi = ecx; /* 0x470476CC: mov esi, ecx */
   4143     PUSH32(esp, edi); /* 0x470476CE: push edi */
   4144     MEM32(esp + 0xC) = esi; /* 0x470476CF: mov dword ptr [esp + 0xc], esi */
   4145     RECOMP_ICALL(0x47080CD0u); /* 0x470476D3: call 0x47080cd0 */ /* not lifted */
   4146     RECOMP_FLAGS_IN();
   4147     eax = edi + 0xC; /* 0x470476D8: lea eax, [edi + 0xc] */
   4148     PUSH32(esp, eax); /* 0x470476DB: push eax */
   4149     ecx = esi + 0xC; /* 0x470476DC: lea ecx, [esi + 0xc] */
   4150     MEM32(esp + 0x18) = 0; /* 0x470476DF: mov dword ptr [esp + 0x18], 0 */
   4151     RECOMP_ICALL(0x47080CD0u); /* 0x470476E7: call 0x47080cd0 */ /* not lifted */
   4152     RECOMP_FLAGS_IN();
   4153     edi = MEM32(edi + 0x18); /* 0x470476EC: mov edi, dword ptr [edi + 0x18] */
   4154     PUSH32(esp, edi); /* 0x470476EF: push edi */
   4155     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x470476F0: call dword ptr [0x470ac3f4] */
   4156     RECOMP_FLAGS_IN();
   4157     ecx = MEM32(esp + 0x10); /* 0x470476F6: mov ecx, dword ptr [esp + 0x10] */
   4158     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4159     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4160     esp = esp + 4; /* 0x470476FA: add esp, 4 */
   4161     _flag_k = FK_ADD;
   4162     MEM32(esi + 0x18) = eax; /* 0x470476FD: mov dword ptr [esi + 0x18], eax */
   4163     edi = POP32_VAL(esp); /* 0x47047700: pop edi */
   4164     eax = esi; /* 0x47047701: mov eax, esi */
   4165     esi = POP32_VAL(esp); /* 0x47047703: pop esi */
   4166     MEM32(FS_BASE + (0)) = ecx; /* 0x47047704: mov dword ptr fs:[0], ecx */
   4167     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4168     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4169     esp = esp + 0x10u; /* 0x4704770B: add esp, 0x10 */
   4170     _flag_k = FK_ADD;
   4171     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704770E: ret 4 */
   4172     RECOMP_REGS_OUT();
   4173 }
   4174 
   4175 void sub_47047720(void) {
   4176     int _fpu_cmp = 0;
   4177     uint32_t _cf = 0;
   4178     int _df = 1;
   4179     uint32_t _flag_k = FK_NONE;
   4180     uint32_t _flag_a = 0, _flag_b = 0;
   4181     uint32_t _itail_tgt = 0;
   4182     RECOMP_REGS_LOCALS
   4183     RECOMP_ENTER(0x47047720u);
   4184 
   4185 L_47047720:
   4186     PUSH32(esp, esi); /* 0x47047720: push esi */
   4187     PUSH32(esp, edi); /* 0x47047721: push edi */
   4188     edi = MEM32(esp + 0xC); /* 0x47047722: mov edi, dword ptr [esp + 0xc] */
   4189     esi = ecx; /* 0x47047726: mov esi, ecx */
   4190     PUSH32(esp, edi); /* 0x47047728: push edi */
   4191     RECOMP_ICALL(0x47080D30u); /* 0x47047729: call 0x47080d30 */ /* not lifted */
   4192     RECOMP_FLAGS_IN();
   4193     eax = edi + 0xC; /* 0x4704772E: lea eax, [edi + 0xc] */
   4194     PUSH32(esp, eax); /* 0x47047731: push eax */
   4195     ecx = esi + 0xC; /* 0x47047732: lea ecx, [esi + 0xc] */
   4196     RECOMP_ICALL(0x47080D30u); /* 0x47047735: call 0x47080d30 */ /* not lifted */
   4197     RECOMP_FLAGS_IN();
   4198     edi = MEM32(edi + 0x18); /* 0x4704773A: mov edi, dword ptr [edi + 0x18] */
   4199     PUSH32(esp, edi); /* 0x4704773D: push edi */
   4200     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x4704773E: call dword ptr [0x470ac3f4] */
   4201     RECOMP_FLAGS_IN();
   4202     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4203     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4204     esp = esp + 4; /* 0x47047744: add esp, 4 */
   4205     _flag_k = FK_ADD;
   4206     edi = POP32_VAL(esp); /* 0x47047747: pop edi */
   4207     MEM32(esi + 0x18) = eax; /* 0x47047748: mov dword ptr [esi + 0x18], eax */
   4208     esi = POP32_VAL(esp); /* 0x4704774B: pop esi */
   4209     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704774C: ret 4 */
   4210     RECOMP_REGS_OUT();
   4211 }
   4212 
   4213 void sub_47047750(void) {
   4214     int _fpu_cmp = 0;
   4215     uint32_t _cf = 0;
   4216     int _df = 1;
   4217     uint32_t _flag_k = FK_NONE;
   4218     uint32_t _flag_a = 0, _flag_b = 0;
   4219     uint32_t _itail_tgt = 0;
   4220     RECOMP_REGS_LOCALS
   4221     RECOMP_ENTER(0x47047750u);
   4222 
   4223 L_47047750:
   4224     edx = MEM32(esp + 0x4); /* 0x47047750: mov edx, dword ptr [esp + 4] */
   4225     PUSH32(esp, ebx); /* 0x47047754: push ebx */
   4226     PUSH32(esp, esi); /* 0x47047755: push esi */
   4227     esi = MEM32(edx + 0x4); /* 0x47047756: mov esi, dword ptr [edx + 4] */
   4228     eax = ecx; /* 0x47047759: mov eax, ecx */
   4229     ecx = MEM32(eax + 0x4); /* 0x4704775B: mov ecx, dword ptr [eax + 4] */
   4230     /* cmp ecx, esi */ /* 0x4704775E: cmp ecx, esi */
   4231     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   4232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4233     _flag_k = FK_CMP;
   4234     PUSH32(esp, edi); /* 0x47047760: push edi */
   4235     if (CMP_NE(_flag_a, _flag_b)) goto L_470477C9; /* 0x47047761: jne 0x470477c9 */
   4236 L_47047763:
   4237     edi = MEM32(edx + 0x8); /* 0x47047763: mov edi, dword ptr [edx + 8] */
   4238     esi = MEM32(eax + 0x8); /* 0x47047766: mov esi, dword ptr [eax + 8] */
   4239     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4240     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4241     ecx = ecx + ecx; /* 0x47047769: add ecx, ecx */
   4242     _flag_k = FK_ADD;
   4243     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4244     ebx = 0; /* 0x4704776B: xor ebx, ebx */
   4245     _cf = 0;
   4246     _flag_k = FK_TEST;
   4247     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = MEM8(esi); _b = MEM8(edi); esi += _df; edi += _df; ecx--; if (_a != _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4704776D: repe cmpsb byte ptr [esi], byte ptr es:[edi] */
   4248     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470477C9; /* 0x4704776F: jne 0x470477c9 */
   4249 L_47047771:
   4250     ecx = MEM32(eax + 0x10); /* 0x47047771: mov ecx, dword ptr [eax + 0x10] */
   4251     /* cmp ecx, MEM32(edx + 0x10) */ /* 0x47047774: cmp ecx, dword ptr [edx + 0x10] */
   4252     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edx + 0x10));
   4253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4254     _flag_k = FK_CMP;
   4255     if (CMP_NE(_flag_a, _flag_b)) goto L_470477C9; /* 0x47047777: jne 0x470477c9 */
   4256 L_47047779:
   4257     edi = MEM32(edx + 0x14); /* 0x47047779: mov edi, dword ptr [edx + 0x14] */
   4258     esi = MEM32(eax + 0x14); /* 0x4704777C: mov esi, dword ptr [eax + 0x14] */
   4259     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4260     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4261     ecx = ecx + ecx; /* 0x4704777F: add ecx, ecx */
   4262     _flag_k = FK_ADD;
   4263     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4264     ebx = 0; /* 0x47047781: xor ebx, ebx */
   4265     _cf = 0;
   4266     _flag_k = FK_TEST;
   4267     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = MEM8(esi); _b = MEM8(edi); esi += _df; edi += _df; ecx--; if (_a != _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47047783: repe cmpsb byte ptr [esi], byte ptr es:[edi] */
   4268     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470477C9; /* 0x47047785: jne 0x470477c9 */
   4269 L_47047787:
   4270     esi = MEM32(edx + 0x18); /* 0x47047787: mov esi, dword ptr [edx + 0x18] */
   4271     eax = MEM32(eax + 0x18); /* 0x4704778A: mov eax, dword ptr [eax + 0x18] */
   4272 L_4704778D:
   4273     SET_LO8(edx, MEM8(eax)); /* 0x4704778D: mov dl, byte ptr [eax] */
   4274     SET_LO8(ebx, MEM8(esi)); /* 0x4704778F: mov bl, byte ptr [esi] */
   4275     SET_LO8(ecx, LO8(edx)); /* 0x47047791: mov cl, dl */
   4276     /* cmp LO8(edx), LO8(ebx) */ /* 0x47047793: cmp dl, bl */
   4277     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4278     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4279     _flag_k = FK_NARROW(FK_CMP, 24);
   4280     if (CMP_NE(_flag_a, _flag_b)) goto L_470477B5; /* 0x47047795: jne 0x470477b5 */
   4281 L_47047797:
   4282     /* test LO8(ecx), LO8(ecx) */ /* 0x47047797: test cl, cl */
   4283     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4284     _cf = 0;
   4285     _flag_k = FK_NARROW(FK_TEST, 24);
   4286     if (TEST_Z(_flag_a, _flag_b)) goto L_470477B1; /* 0x47047799: je 0x470477b1 */
   4287 L_4704779B:
   4288     SET_LO8(edx, MEM8(eax + 0x1)); /* 0x4704779B: mov dl, byte ptr [eax + 1] */
   4289     SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x4704779E: mov bl, byte ptr [esi + 1] */
   4290     SET_LO8(ecx, LO8(edx)); /* 0x470477A1: mov cl, dl */
   4291     /* cmp LO8(edx), LO8(ebx) */ /* 0x470477A3: cmp dl, bl */
   4292     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4294     _flag_k = FK_NARROW(FK_CMP, 24);
   4295     if (CMP_NE(_flag_a, _flag_b)) goto L_470477B5; /* 0x470477A5: jne 0x470477b5 */
   4296 L_470477A7:
   4297     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   4298     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4299     eax = eax + 2; /* 0x470477A7: add eax, 2 */
   4300     _flag_k = FK_ADD;
   4301     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   4302     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4303     esi = esi + 2; /* 0x470477AA: add esi, 2 */
   4304     _flag_k = FK_ADD;
   4305     /* test LO8(ecx), LO8(ecx) */ /* 0x470477AD: test cl, cl */
   4306     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4307     _cf = 0;
   4308     _flag_k = FK_NARROW(FK_TEST, 24);
   4309     RECOMP_BACKEDGE();
   4310     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704778D; /* 0x470477AF: jne 0x4704778d */
   4311 L_470477B1:
   4312     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4313     eax = 0; /* 0x470477B1: xor eax, eax */
   4314     _cf = 0;
   4315     _flag_k = FK_TEST;
   4316     goto L_470477BA; /* 0x470477B3: jmp 0x470477ba */
   4317 L_470477B5:
   4318     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x470477B5: sbb eax, eax */
   4319       eax = _sc ? 0xFFFFFFFFu : 0;
   4320       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4321       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4322     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x470477B7: sbb eax, -1 */
   4323       eax = _sa - _sb - _sc;
   4324       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4325       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4326 L_470477BA:
   4327     /* test eax, eax */ /* 0x470477BA: test eax, eax */
   4328     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4329     _cf = 0;
   4330     _flag_k = FK_TEST;
   4331     if (TEST_NZ(_flag_a, _flag_b)) goto L_470477C9; /* 0x470477BC: jne 0x470477c9 */
   4332 L_470477BE:
   4333     edi = POP32_VAL(esp); /* 0x470477BE: pop edi */
   4334     esi = POP32_VAL(esp); /* 0x470477BF: pop esi */
   4335     eax = 1; /* 0x470477C0: mov eax, 1 */
   4336     ebx = POP32_VAL(esp); /* 0x470477C5: pop ebx */
   4337     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470477C6: ret 4 */
   4338 L_470477C9:
   4339     edi = POP32_VAL(esp); /* 0x470477C9: pop edi */
   4340     esi = POP32_VAL(esp); /* 0x470477CA: pop esi */
   4341     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4342     eax = 0; /* 0x470477CB: xor eax, eax */
   4343     _cf = 0;
   4344     _flag_k = FK_TEST;
   4345     ebx = POP32_VAL(esp); /* 0x470477CD: pop ebx */
   4346     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470477CE: ret 4 */
   4347     RECOMP_REGS_OUT();
   4348 }
   4349 
   4350 void sub_470477E0(void) {
   4351     int _fpu_cmp = 0;
   4352     uint32_t _cf = 0;
   4353     int _df = 1;
   4354     uint32_t _flag_k = FK_NONE;
   4355     uint32_t _flag_a = 0, _flag_b = 0;
   4356     uint32_t _itail_tgt = 0;
   4357     RECOMP_REGS_LOCALS
   4358     RECOMP_ENTER(0x470477E0u);
   4359 
   4360 L_470477E0:
   4361     MEM32(ecx) = 0x470AD2C8u; /* 0x470477E0: mov dword ptr [ecx], 0x470ad2c8 */
   4362     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470477E6: ret  */
   4363     RECOMP_REGS_OUT();
   4364 }
   4365 
   4366 void sub_470477F0(void) {
   4367     int _fpu_cmp = 0;
   4368     uint32_t _cf = 0;
   4369     int _df = 1;
   4370     uint32_t _flag_k = FK_NONE;
   4371     uint32_t _flag_a = 0, _flag_b = 0;
   4372     uint32_t _itail_tgt = 0;
   4373     RECOMP_REGS_LOCALS
   4374     RECOMP_ENTER(0x470477F0u);
   4375 
   4376 L_470477F0:
   4377     ecx = 0x4710E809u; /* 0x470477F0: mov ecx, 0x4710e809 */
   4378     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x470477F5: call dword ptr [0x470ac1c8] */
   4379     RECOMP_FLAGS_IN();
   4380     PUSH32(esp, 0x47047810u); /* 0x470477FB: push 0x47047810 */
   4381     RECOMP_ICALL(0x470A32D9u); /* 0x47047800: call 0x470a32d9 */ /* not lifted */
   4382     RECOMP_FLAGS_IN();
   4383     ecx = POP32_VAL(esp); /* 0x47047805: pop ecx */
   4384     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047806: ret  */
   4385     RECOMP_REGS_OUT();
   4386 }
   4387 
   4388 void sub_47047810(void) {
   4389     int _fpu_cmp = 0;
   4390     uint32_t _cf = 0;
   4391     int _df = 1;
   4392     uint32_t _flag_k = FK_NONE;
   4393     uint32_t _flag_a = 0, _flag_b = 0;
   4394     uint32_t _itail_tgt = 0;
   4395     RECOMP_REGS_LOCALS
   4396     RECOMP_ENTER(0x47047810u);
   4397 
   4398 L_47047810:
   4399     ecx = 0x4710E809u; /* 0x47047810: mov ecx, 0x4710e809 */
   4400 L_47047815:
   4401     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   4402     { RECOMP_REGS_OUT(); return; } /* end of function */
   4403   _ljump:
   4404     switch (_itail_tgt) {
   4405       case 0x47047810u: goto L_47047810;
   4406       case 0x47047815u: goto L_47047815;
   4407       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4408     }
   4409     RECOMP_REGS_OUT();
   4410 }
   4411 
   4412 void sub_47047820(void) {
   4413     int _fpu_cmp = 0;
   4414     uint32_t _cf = 0;
   4415     int _df = 1;
   4416     uint32_t _flag_k = FK_NONE;
   4417     uint32_t _flag_a = 0, _flag_b = 0;
   4418     uint32_t _itail_tgt = 0;
   4419     RECOMP_REGS_LOCALS
   4420     RECOMP_ENTER(0x47047820u);
   4421 
   4422 L_47047820:
   4423     ecx = 0x4710E808u; /* 0x47047820: mov ecx, 0x4710e808 */
   4424     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47047825: call dword ptr [0x470ac1c4] */
   4425     RECOMP_FLAGS_IN();
   4426     PUSH32(esp, 0x47047840u); /* 0x4704782B: push 0x47047840 */
   4427     RECOMP_ICALL(0x470A32D9u); /* 0x47047830: call 0x470a32d9 */ /* not lifted */
   4428     RECOMP_FLAGS_IN();
   4429     ecx = POP32_VAL(esp); /* 0x47047835: pop ecx */
   4430     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047836: ret  */
   4431     RECOMP_REGS_OUT();
   4432 }
   4433 
   4434 void sub_47047840(void) {
   4435     int _fpu_cmp = 0;
   4436     uint32_t _cf = 0;
   4437     int _df = 1;
   4438     uint32_t _flag_k = FK_NONE;
   4439     uint32_t _flag_a = 0, _flag_b = 0;
   4440     uint32_t _itail_tgt = 0;
   4441     RECOMP_REGS_LOCALS
   4442     RECOMP_ENTER(0x47047840u);
   4443 
   4444 L_47047840:
   4445     ecx = 0x4710E808u; /* 0x47047840: mov ecx, 0x4710e808 */
   4446 L_47047845:
   4447     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   4448     { RECOMP_REGS_OUT(); return; } /* end of function */
   4449   _ljump:
   4450     switch (_itail_tgt) {
   4451       case 0x47047840u: goto L_47047840;
   4452       case 0x47047845u: goto L_47047845;
   4453       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4454     }
   4455     RECOMP_REGS_OUT();
   4456 }
   4457 
   4458 void sub_47047850(void) {
   4459     int _fpu_cmp = 0;
   4460     uint32_t _cf = 0;
   4461     int _df = 1;
   4462     uint32_t _flag_k = FK_NONE;
   4463     uint32_t _flag_a = 0, _flag_b = 0;
   4464     uint32_t _itail_tgt = 0;
   4465     RECOMP_REGS_LOCALS
   4466     RECOMP_ENTER(0x47047850u);
   4467 
   4468 L_47047850:
   4469     MEM32(0x4710E7FC) = 0x47104A3Cu; /* 0x47047850: mov dword ptr [0x4710e7fc], 0x47104a3c */
   4470     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704785A: ret  */
   4471     RECOMP_REGS_OUT();
   4472 }
   4473 
   4474 void sub_47047860(void) {
   4475     int _fpu_cmp = 0;
   4476     uint32_t _cf = 0;
   4477     int _df = 1;
   4478     uint32_t _flag_k = FK_NONE;
   4479     uint32_t _flag_a = 0, _flag_b = 0;
   4480     uint32_t _itail_tgt = 0;
   4481     RECOMP_REGS_LOCALS
   4482     RECOMP_ENTER(0x47047860u);
   4483 
   4484 L_47047860:
   4485     MEM32(0x4710E818) = 0x47104A00u; /* 0x47047860: mov dword ptr [0x4710e818], 0x47104a00 */
   4486     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704786A: ret  */
   4487     RECOMP_REGS_OUT();
   4488 }
   4489 
   4490 void sub_47047870(void) {
   4491     int _fpu_cmp = 0;
   4492     uint32_t _cf = 0;
   4493     int _df = 1;
   4494     uint32_t _flag_k = FK_NONE;
   4495     uint32_t _flag_a = 0, _flag_b = 0;
   4496     uint32_t _itail_tgt = 0;
   4497     RECOMP_REGS_LOCALS
   4498     RECOMP_ENTER(0x47047870u);
   4499 
   4500 L_47047870:
   4501     MEM32(0x4710E810) = 0x47104A70u; /* 0x47047870: mov dword ptr [0x4710e810], 0x47104a70 */
   4502     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704787A: ret  */
   4503     RECOMP_REGS_OUT();
   4504 }
   4505 
   4506 void sub_47047880(void) {
   4507     int _fpu_cmp = 0;
   4508     uint32_t _cf = 0;
   4509     int _df = 1;
   4510     uint32_t _flag_k = FK_NONE;
   4511     uint32_t _flag_a = 0, _flag_b = 0;
   4512     uint32_t _itail_tgt = 0;
   4513     RECOMP_REGS_LOCALS
   4514     RECOMP_ENTER(0x47047880u);
   4515 
   4516 L_47047880:
   4517     MEM32(0x4710E828) = 0x47104B6Cu; /* 0x47047880: mov dword ptr [0x4710e828], 0x47104b6c */
   4518     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704788A: ret  */
   4519     RECOMP_REGS_OUT();
   4520 }
   4521 
   4522 void sub_47047890(void) {
   4523     int _fpu_cmp = 0;
   4524     uint32_t _cf = 0;
   4525     int _df = 1;
   4526     uint32_t _flag_k = FK_NONE;
   4527     uint32_t _flag_a = 0, _flag_b = 0;
   4528     uint32_t _itail_tgt = 0;
   4529     RECOMP_REGS_LOCALS
   4530     RECOMP_ENTER(0x47047890u);
   4531 
   4532 L_47047890:
   4533     MEM32(0x4710E804) = 0x47104BA0u; /* 0x47047890: mov dword ptr [0x4710e804], 0x47104ba0 */
   4534     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704789A: ret  */
   4535     RECOMP_REGS_OUT();
   4536 }
   4537 
   4538 void sub_470478A0(void) {
   4539     int _fpu_cmp = 0;
   4540     uint32_t _cf = 0;
   4541     int _df = 1;
   4542     uint32_t _flag_k = FK_NONE;
   4543     uint32_t _flag_a = 0, _flag_b = 0;
   4544     uint32_t _itail_tgt = 0;
   4545     RECOMP_REGS_LOCALS
   4546     RECOMP_ENTER(0x470478A0u);
   4547 
   4548 L_470478A0:
   4549     MEM32(0x4710E824) = 0x47104BD4u; /* 0x470478A0: mov dword ptr [0x4710e824], 0x47104bd4 */
   4550     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470478AA: ret  */
   4551     RECOMP_REGS_OUT();
   4552 }
   4553 
   4554 void sub_470478B0(void) {
   4555     int _fpu_cmp = 0;
   4556     uint32_t _cf = 0;
   4557     int _df = 1;
   4558     uint32_t _flag_k = FK_NONE;
   4559     uint32_t _flag_a = 0, _flag_b = 0;
   4560     uint32_t _itail_tgt = 0;
   4561     RECOMP_REGS_LOCALS
   4562     RECOMP_ENTER(0x470478B0u);
   4563 
   4564 L_470478B0:
   4565     MEM32(0x4710E820) = 0x471050FCu; /* 0x470478B0: mov dword ptr [0x4710e820], 0x471050fc */
   4566     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470478BA: ret  */
   4567     RECOMP_REGS_OUT();
   4568 }
   4569 
   4570 void sub_470478C0(void) {
   4571     int _fpu_cmp = 0;
   4572     uint32_t _cf = 0;
   4573     int _df = 1;
   4574     uint32_t _flag_k = FK_NONE;
   4575     uint32_t _flag_a = 0, _flag_b = 0;
   4576     uint32_t _itail_tgt = 0;
   4577     RECOMP_REGS_LOCALS
   4578     RECOMP_ENTER(0x470478C0u);
   4579 
   4580 L_470478C0:
   4581     PUSH32(esp, 0xFFFFFFFFu); /* 0x470478C0: push -1 */
   4582     PUSH32(esp, 0x470A6843u); /* 0x470478C2: push 0x470a6843 */
   4583     eax = MEM32(FS_BASE + (0)); /* 0x470478C7: mov eax, dword ptr fs:[0] */
   4584     PUSH32(esp, eax); /* 0x470478CD: push eax */
   4585     MEM32(FS_BASE + (0)) = esp; /* 0x470478CE: mov dword ptr fs:[0], esp */
   4586     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4588     esp = esp - 8; /* 0x470478D5: sub esp, 8 */
   4589     _flag_k = FK_CMP;
   4590     PUSH32(esp, ebx); /* 0x470478D8: push ebx */
   4591     PUSH32(esp, ebp); /* 0x470478D9: push ebp */
   4592     PUSH32(esp, esi); /* 0x470478DA: push esi */
   4593     PUSH32(esp, edi); /* 0x470478DB: push edi */
   4594     edi = ecx; /* 0x470478DC: mov edi, ecx */
   4595     MEM32(esp + 0x10) = edi; /* 0x470478DE: mov dword ptr [esp + 0x10], edi */
   4596     MEM32(edi) = 0x470AD2C8u; /* 0x470478E2: mov dword ptr [edi], 0x470ad2c8 */
   4597     ebx = MEM32(esp + 0x28); /* 0x470478E8: mov ebx, dword ptr [esp + 0x28] */
   4598     eax = MEM32(ebx + 0x8); /* 0x470478EC: mov eax, dword ptr [ebx + 8] */
   4599     ebp = edi + 0x4; /* 0x470478EF: lea ebp, [edi + 4] */
   4600     MEM32(ebp + 0x4) = eax; /* 0x470478F2: mov dword ptr [ebp + 4], eax */
   4601     edx = MEM32(ebx + 0xC); /* 0x470478F5: mov edx, dword ptr [ebx + 0xc] */
   4602     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4603     ecx = 0; /* 0x470478F8: xor ecx, ecx */
   4604     _cf = 0;
   4605     _flag_k = FK_TEST;
   4606     MEM32(esp + 0x20) = ecx; /* 0x470478FA: mov dword ptr [esp + 0x20], ecx */
   4607     MEM32(esp + 0x28) = ebp; /* 0x470478FE: mov dword ptr [esp + 0x28], ebp */
   4608     MEM32(ebp + 0x8) = edx; /* 0x47047902: mov dword ptr [ebp + 8], edx */
   4609     MEM32(ebp) = 0x470AC5C0u; /* 0x47047905: mov dword ptr [ebp], 0x470ac5c0 */
   4610     SET_LO8(eax, MEM8(ebx + 0x10)); /* 0x4704790C: mov al, byte ptr [ebx + 0x10] */
   4611     MEM8(ebp + 0xC) = (uint8_t)(LO8(eax)); /* 0x4704790F: mov byte ptr [ebp + 0xc], al */
   4612     edx = MEM32(ebx + 0x14); /* 0x47047912: mov edx, dword ptr [ebx + 0x14] */
   4613     esi = ebp + 0x10; /* 0x47047915: lea esi, [ebp + 0x10] */
   4614     MEM32(esp + 0x14) = esi; /* 0x47047918: mov dword ptr [esp + 0x14], esi */
   4615     MEM32(esi) = edx; /* 0x4704791C: mov dword ptr [esi], edx */
   4616     MEM32(esi + 0x4) = ecx; /* 0x4704791E: mov dword ptr [esi + 4], ecx */
   4617     MEM32(esi + 0x8) = ecx; /* 0x47047921: mov dword ptr [esi + 8], ecx */
   4618     eax = MEM32(ebx + 0x20); /* 0x47047924: mov eax, dword ptr [ebx + 0x20] */
   4619     /* cmp eax, ecx */ /* 0x47047927: cmp eax, ecx */
   4620     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4622     _flag_k = FK_CMP;
   4623     MEM8(esp + 0x20) = (uint8_t)(3); /* 0x47047929: mov byte ptr [esp + 0x20], 3 */
   4624     MEM32(esi + 0xC) = eax; /* 0x4704792E: mov dword ptr [esi + 0xc], eax */
   4625     if (CMP_NE(_flag_a, _flag_b)) goto L_4704793B; /* 0x47047931: jne 0x4704793b */
   4626 L_47047933:
   4627     RECOMP_ICALL(0x4703DAC0u); /* 0x47047933: call 0x4703dac0 */ /* not lifted */
   4628     RECOMP_FLAGS_IN();
   4629     MEM32(esi + 0xC) = eax; /* 0x47047938: mov dword ptr [esi + 0xc], eax */
   4630 L_4704793B:
   4631     ecx = MEM32(esi + 0xC); /* 0x4704793B: mov ecx, dword ptr [esi + 0xc] */
   4632     eax = MEM32(ecx); /* 0x4704793E: mov eax, dword ptr [ecx] */
   4633     PUSH32(esp, 8); /* 0x47047940: push 8 */
   4634     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47047942: call dword ptr [eax + 4] */
   4635     RECOMP_FLAGS_IN();
   4636     /* test eax, eax */ /* 0x47047945: test eax, eax */
   4637     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4638     _cf = 0;
   4639     _flag_k = FK_TEST;
   4640     MEM32(esi + 0x4) = eax; /* 0x47047947: mov dword ptr [esi + 4], eax */
   4641     if (TEST_Z(_flag_a, _flag_b)) goto L_47047980; /* 0x4704794A: je 0x47047980 */
   4642 L_4704794C:
   4643     MEM32(eax) = 0; /* 0x4704794C: mov dword ptr [eax], 0 */
   4644     eax = MEM32(esi + 0x4); /* 0x47047952: mov eax, dword ptr [esi + 4] */
   4645     MEM32(eax) = eax; /* 0x47047955: mov dword ptr [eax], eax */
   4646     eax = MEM32(ebx + 0x18); /* 0x47047957: mov eax, dword ptr [ebx + 0x18] */
   4647     edi = MEM32(eax); /* 0x4704795A: mov edi, dword ptr [eax] */
   4648     /* cmp edi, eax */ /* 0x4704795C: cmp edi, eax */
   4649     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4651     _flag_k = FK_CMP;
   4652     if (CMP_EQ(_flag_a, _flag_b)) goto L_470479AE; /* 0x4704795E: je 0x470479ae */
   4653 L_47047960:
   4654     ecx = MEM32(esi + 0x4); /* 0x47047960: mov ecx, dword ptr [esi + 4] */
   4655     edx = MEM32(edi + 0x4); /* 0x47047963: mov edx, dword ptr [edi + 4] */
   4656     MEM32(ecx + 0x4) = edx; /* 0x47047966: mov dword ptr [ecx + 4], edx */
   4657     ecx = MEM32(esi + 0xC); /* 0x47047969: mov ecx, dword ptr [esi + 0xc] */
   4658     eax = MEM32(ecx); /* 0x4704796C: mov eax, dword ptr [ecx] */
   4659     PUSH32(esp, 8); /* 0x4704796E: push 8 */
   4660     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47047970: call dword ptr [eax + 4] */
   4661     RECOMP_FLAGS_IN();
   4662     /* test eax, eax */ /* 0x47047973: test eax, eax */
   4663     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4664     _cf = 0;
   4665     _flag_k = FK_TEST;
   4666     if (TEST_Z(_flag_a, _flag_b)) goto L_4704798E; /* 0x47047975: je 0x4704798e */
   4667 L_47047977:
   4668     ecx = MEM32(esi + 0x4); /* 0x47047977: mov ecx, dword ptr [esi + 4] */
   4669     edx = MEM32(ecx); /* 0x4704797A: mov edx, dword ptr [ecx] */
   4670     MEM32(eax) = edx; /* 0x4704797C: mov dword ptr [eax], edx */
   4671     goto L_4704799C; /* 0x4704797E: jmp 0x4704799c */
   4672 L_47047980:
   4673     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47047980: call dword ptr [0x470ac3c8] */
   4674     RECOMP_FLAGS_IN();
   4675     MEM32(eax) = 0xCu; /* 0x47047986: mov dword ptr [eax], 0xc */
   4676     goto L_470479B2; /* 0x4704798C: jmp 0x470479b2 */
   4677 L_4704798E:
   4678     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704798E: call dword ptr [0x470ac3c8] */
   4679     RECOMP_FLAGS_IN();
   4680     MEM32(eax) = 0xCu; /* 0x47047994: mov dword ptr [eax], 0xc */
   4681     goto L_470479A7; /* 0x4704799A: jmp 0x470479a7 */
   4682 L_4704799C:
   4683     ecx = MEM32(esi + 0x4); /* 0x4704799C: mov ecx, dword ptr [esi + 4] */
   4684     MEM32(ecx) = eax; /* 0x4704799F: mov dword ptr [ecx], eax */
   4685     MEM32(esi + 0x4) = eax; /* 0x470479A1: mov dword ptr [esi + 4], eax */
   4686     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1);
   4687     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 1; /* 0x470479A4: inc dword ptr [esi + 8] */
   4688     _flag_k = FK_INC;
   4689 L_470479A7:
   4690     edi = MEM32(edi); /* 0x470479A7: mov edi, dword ptr [edi] */
   4691     /* cmp edi, MEM32(ebx + 0x18) */ /* 0x470479A9: cmp edi, dword ptr [ebx + 0x18] */
   4692     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx + 0x18));
   4693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4694     _flag_k = FK_CMP;
   4695     RECOMP_BACKEDGE();
   4696     if (CMP_NE(_flag_a, _flag_b)) goto L_47047960; /* 0x470479AC: jne 0x47047960 */
   4697 L_470479AE:
   4698     edi = MEM32(esp + 0x10); /* 0x470479AE: mov edi, dword ptr [esp + 0x10] */
   4699 L_470479B2:
   4700     edx = MEM32(ebx + 0x24); /* 0x470479B2: mov edx, dword ptr [ebx + 0x24] */
   4701     ecx = MEM32(esp + 0x18); /* 0x470479B5: mov ecx, dword ptr [esp + 0x18] */
   4702     MEM32(ebp + 0x20) = edx; /* 0x470479B9: mov dword ptr [ebp + 0x20], edx */
   4703     MEM32(ebp) = 0x470AD288u; /* 0x470479BC: mov dword ptr [ebp], 0x470ad288 */
   4704     MEM32(edi) = 0x470AD7D8u; /* 0x470479C3: mov dword ptr [edi], 0x470ad7d8 */
   4705     eax = edi; /* 0x470479C9: mov eax, edi */
   4706     edi = POP32_VAL(esp); /* 0x470479CB: pop edi */
   4707     esi = POP32_VAL(esp); /* 0x470479CC: pop esi */
   4708     ebp = POP32_VAL(esp); /* 0x470479CD: pop ebp */
   4709     ebx = POP32_VAL(esp); /* 0x470479CE: pop ebx */
   4710     MEM32(FS_BASE + (0)) = ecx; /* 0x470479CF: mov dword ptr fs:[0], ecx */
   4711     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4712     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4713     esp = esp + 0x14u; /* 0x470479D6: add esp, 0x14 */
   4714     _flag_k = FK_ADD;
   4715     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470479D9: ret 4 */
   4716     RECOMP_REGS_OUT();
   4717 }
   4718 
   4719 void sub_470479E0(void) {
   4720     int _fpu_cmp = 0;
   4721     uint32_t _cf = 0;
   4722     int _df = 1;
   4723     uint32_t _flag_k = FK_NONE;
   4724     uint32_t _flag_a = 0, _flag_b = 0;
   4725     uint32_t _itail_tgt = 0;
   4726     RECOMP_REGS_LOCALS
   4727     RECOMP_ENTER(0x470479E0u);
   4728 
   4729 L_470479E0:
   4730     PUSH32(esp, ebx); /* 0x470479E0: push ebx */
   4731     ebx = ecx; /* 0x470479E1: mov ebx, ecx */
   4732     ecx = MEM32(esp + 0x8); /* 0x470479E3: mov ecx, dword ptr [esp + 8] */
   4733     eax = MEM32(ecx + 0x8); /* 0x470479E7: mov eax, dword ptr [ecx + 8] */
   4734     MEM32(ebx + 0x8) = eax; /* 0x470479EA: mov dword ptr [ebx + 8], eax */
   4735     edx = MEM32(ecx + 0xC); /* 0x470479ED: mov edx, dword ptr [ecx + 0xc] */
   4736     PUSH32(esp, ebp); /* 0x470479F0: push ebp */
   4737     MEM32(ebx + 0xC) = edx; /* 0x470479F1: mov dword ptr [ebx + 0xc], edx */
   4738     SET_LO8(eax, MEM8(ecx + 0x10)); /* 0x470479F4: mov al, byte ptr [ecx + 0x10] */
   4739     PUSH32(esp, esi); /* 0x470479F7: push esi */
   4740     MEM8(ebx + 0x10) = (uint8_t)(LO8(eax)); /* 0x470479F8: mov byte ptr [ebx + 0x10], al */
   4741     edx = MEM32(ecx + 0x14); /* 0x470479FB: mov edx, dword ptr [ecx + 0x14] */
   4742     ebp = ecx + 0x18; /* 0x470479FE: lea ebp, [ecx + 0x18] */
   4743     esi = ebx + 0x18; /* 0x47047A01: lea esi, [ebx + 0x18] */
   4744     /* cmp esi, ebp */ /* 0x47047A04: cmp esi, ebp */
   4745     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp);
   4746     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4747     _flag_k = FK_CMP;
   4748     PUSH32(esp, edi); /* 0x47047A06: push edi */
   4749     MEM32(ebx + 0x14) = edx; /* 0x47047A07: mov dword ptr [ebx + 0x14], edx */
   4750     if (CMP_EQ(_flag_a, _flag_b)) goto L_47047A59; /* 0x47047A0A: je 0x47047a59 */
   4751 L_47047A0C:
   4752     eax = MEM32(esi); /* 0x47047A0C: mov eax, dword ptr [esi] */
   4753     edi = MEM32(eax); /* 0x47047A0E: mov edi, dword ptr [eax] */
   4754     /* cmp edi, eax */ /* 0x47047A10: cmp edi, eax */
   4755     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4757     _flag_k = FK_CMP;
   4758     if (CMP_EQ(_flag_a, _flag_b)) goto L_47047A36; /* 0x47047A12: je 0x47047a36 */
   4759 L_47047A14:
   4760     eax = edi; /* 0x47047A14: mov eax, edi */
   4761     /* test eax, eax */ /* 0x47047A16: test eax, eax */
   4762     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4763     _cf = 0;
   4764     _flag_k = FK_TEST;
   4765     edi = MEM32(edi); /* 0x47047A18: mov edi, dword ptr [edi] */
   4766     if (TEST_Z(_flag_a, _flag_b)) goto L_47047A29; /* 0x47047A1A: je 0x47047a29 */
   4767 L_47047A1C:
   4768     ecx = MEM32(esi + 0x8); /* 0x47047A1C: mov ecx, dword ptr [esi + 8] */
   4769     edx = MEM32(ecx); /* 0x47047A1F: mov edx, dword ptr [ecx] */
   4770     PUSH32(esp, eax); /* 0x47047A21: push eax */
   4771     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47047A22: call dword ptr [edx + 0xc] */
   4772     RECOMP_FLAGS_IN();
   4773     ecx = MEM32(esp + 0x14); /* 0x47047A25: mov ecx, dword ptr [esp + 0x14] */
   4774 L_47047A29:
   4775     edx = MEM32(esi + 0x4); /* 0x47047A29: mov edx, dword ptr [esi + 4] */
   4776     eax = MEM32(esi); /* 0x47047A2C: mov eax, dword ptr [esi] */
   4777     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   4778     edx = edx - 1; /* 0x47047A2E: dec edx */
   4779     _flag_k = FK_DEC;
   4780     /* cmp edi, eax */ /* 0x47047A2F: cmp edi, eax */
   4781     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4782     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4783     _flag_k = FK_CMP;
   4784     MEM32(esi + 0x4) = edx; /* 0x47047A31: mov dword ptr [esi + 4], edx */
   4785     RECOMP_BACKEDGE();
   4786     if (CMP_NE(_flag_a, _flag_b)) goto L_47047A14; /* 0x47047A34: jne 0x47047a14 */
   4787 L_47047A36:
   4788     eax = MEM32(esi); /* 0x47047A36: mov eax, dword ptr [esi] */
   4789     MEM32(eax) = eax; /* 0x47047A38: mov dword ptr [eax], eax */
   4790     eax = MEM32(ebp); /* 0x47047A3A: mov eax, dword ptr [ebp] */
   4791     edi = MEM32(eax); /* 0x47047A3D: mov edi, dword ptr [eax] */
   4792     /* cmp edi, eax */ /* 0x47047A3F: cmp edi, eax */
   4793     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4794     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4795     _flag_k = FK_CMP;
   4796     if (CMP_EQ(_flag_a, _flag_b)) goto L_47047A59; /* 0x47047A41: je 0x47047a59 */
   4797 L_47047A43:
   4798     eax = edi + 0x4; /* 0x47047A43: lea eax, [edi + 4] */
   4799     PUSH32(esp, eax); /* 0x47047A46: push eax */
   4800     ecx = esi; /* 0x47047A47: mov ecx, esi */
   4801     RECOMP_ICALL(0x47067230u); /* 0x47047A49: call 0x47067230 */ /* not lifted */
   4802     RECOMP_FLAGS_IN();
   4803     edi = MEM32(edi); /* 0x47047A4E: mov edi, dword ptr [edi] */
   4804     /* cmp edi, MEM32(ebp) */ /* 0x47047A50: cmp edi, dword ptr [ebp] */
   4805     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp));
   4806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4807     _flag_k = FK_CMP;
   4808     RECOMP_BACKEDGE();
   4809     if (CMP_NE(_flag_a, _flag_b)) goto L_47047A43; /* 0x47047A53: jne 0x47047a43 */
   4810 L_47047A55:
   4811     ecx = MEM32(esp + 0x14); /* 0x47047A55: mov ecx, dword ptr [esp + 0x14] */
   4812 L_47047A59:
   4813     ecx = MEM32(ecx + 0x24); /* 0x47047A59: mov ecx, dword ptr [ecx + 0x24] */
   4814     edi = POP32_VAL(esp); /* 0x47047A5C: pop edi */
   4815     esi = POP32_VAL(esp); /* 0x47047A5D: pop esi */
   4816     ebp = POP32_VAL(esp); /* 0x47047A5E: pop ebp */
   4817     MEM32(ebx + 0x24) = ecx; /* 0x47047A5F: mov dword ptr [ebx + 0x24], ecx */
   4818     eax = ebx; /* 0x47047A62: mov eax, ebx */
   4819     ebx = POP32_VAL(esp); /* 0x47047A64: pop ebx */
   4820     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47047A65: ret 4 */
   4821     RECOMP_REGS_OUT();
   4822 }
   4823 
   4824 void sub_47047A70(void) {
   4825     int _fpu_cmp = 0;
   4826     uint32_t _cf = 0;
   4827     int _df = 1;
   4828     uint32_t _flag_k = FK_NONE;
   4829     uint32_t _flag_a = 0, _flag_b = 0;
   4830     uint32_t _itail_tgt = 0;
   4831     RECOMP_REGS_LOCALS
   4832     RECOMP_ENTER(0x47047A70u);
   4833 
   4834 L_47047A70:
   4835     PUSH32(esp, ebx); /* 0x47047A70: push ebx */
   4836     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47047A71: mov bl, byte ptr [esp + 8] */
   4837     /* test LO8(ebx), 2 */ /* 0x47047A75: test bl, 2 */
   4838     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   4839     _cf = 0;
   4840     _flag_k = FK_NARROW(FK_TEST, 24);
   4841     PUSH32(esp, esi); /* 0x47047A78: push esi */
   4842     esi = ecx; /* 0x47047A79: mov esi, ecx */
   4843     if (TEST_Z(_flag_a, _flag_b)) goto L_47047AA8; /* 0x47047A7B: je 0x47047aa8 */
   4844 L_47047A7D:
   4845     eax = MEM32(esi + (-0x4)); /* 0x47047A7D: mov eax, dword ptr [esi - 4] */
   4846     PUSH32(esp, edi); /* 0x47047A80: push edi */
   4847     PUSH32(esp, 0x47070500u); /* 0x47047A81: push 0x47070500 */
   4848     edi = esi + (-0x4); /* 0x47047A86: lea edi, [esi - 4] */
   4849     PUSH32(esp, eax); /* 0x47047A89: push eax */
   4850     PUSH32(esp, 0x28u); /* 0x47047A8A: push 0x28 */
   4851     PUSH32(esp, esi); /* 0x47047A8C: push esi */
   4852     RECOMP_ICALL(0x470A32EBu); /* 0x47047A8D: call 0x470a32eb */ /* not lifted */
   4853     RECOMP_FLAGS_IN();
   4854     /* test LO8(ebx), 1 */ /* 0x47047A92: test bl, 1 */
   4855     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4856     _cf = 0;
   4857     _flag_k = FK_NARROW(FK_TEST, 24);
   4858     if (TEST_Z(_flag_a, _flag_b)) goto L_47047AA0; /* 0x47047A95: je 0x47047aa0 */
   4859 L_47047A97:
   4860     PUSH32(esp, edi); /* 0x47047A97: push edi */
   4861     RECOMP_ICALL(0x470A32A2u); /* 0x47047A98: call 0x470a32a2 */ /* not lifted */
   4862     RECOMP_FLAGS_IN();
   4863     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4864     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4865     esp = esp + 4; /* 0x47047A9D: add esp, 4 */
   4866     _flag_k = FK_ADD;
   4867 L_47047AA0:
   4868     eax = edi; /* 0x47047AA0: mov eax, edi */
   4869     edi = POP32_VAL(esp); /* 0x47047AA2: pop edi */
   4870     esi = POP32_VAL(esp); /* 0x47047AA3: pop esi */
   4871     ebx = POP32_VAL(esp); /* 0x47047AA4: pop ebx */
   4872     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47047AA5: ret 4 */
   4873 L_47047AA8:
   4874     ecx = esi; /* 0x47047AA8: mov ecx, esi */
   4875     RECOMP_ICALL(0x47070500u); /* 0x47047AAA: call 0x47070500 */ /* not lifted */
   4876     RECOMP_FLAGS_IN();
   4877     /* test LO8(ebx), 1 */ /* 0x47047AAF: test bl, 1 */
   4878     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4879     _cf = 0;
   4880     _flag_k = FK_NARROW(FK_TEST, 24);
   4881     if (TEST_Z(_flag_a, _flag_b)) goto L_47047ABD; /* 0x47047AB2: je 0x47047abd */
   4882 L_47047AB4:
   4883     PUSH32(esp, esi); /* 0x47047AB4: push esi */
   4884     RECOMP_ICALL(0x470A32A2u); /* 0x47047AB5: call 0x470a32a2 */ /* not lifted */
   4885     RECOMP_FLAGS_IN();
   4886     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4887     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4888     esp = esp + 4; /* 0x47047ABA: add esp, 4 */
   4889     _flag_k = FK_ADD;
   4890 L_47047ABD:
   4891     eax = esi; /* 0x47047ABD: mov eax, esi */
   4892     esi = POP32_VAL(esp); /* 0x47047ABF: pop esi */
   4893     ebx = POP32_VAL(esp); /* 0x47047AC0: pop ebx */
   4894     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47047AC1: ret 4 */
   4895     RECOMP_REGS_OUT();
   4896 }
   4897 
   4898 void sub_47047AD0(void) {
   4899     int _fpu_cmp = 0;
   4900     uint32_t _cf = 0;
   4901     int _df = 1;
   4902     uint32_t _flag_k = FK_NONE;
   4903     uint32_t _flag_a = 0, _flag_b = 0;
   4904     uint32_t _itail_tgt = 0;
   4905     RECOMP_REGS_LOCALS
   4906     RECOMP_ENTER(0x47047AD0u);
   4907 
   4908 L_47047AD0:
   4909     MEM32(0x4710E80C) = 0x47105158u; /* 0x47047AD0: mov dword ptr [0x4710e80c], 0x47105158 */
   4910     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047ADA: ret  */
   4911     RECOMP_REGS_OUT();
   4912 }
   4913 
   4914 void sub_47047AE0(void) {
   4915     int _fpu_cmp = 0;
   4916     uint32_t _cf = 0;
   4917     int _df = 1;
   4918     uint32_t _flag_k = FK_NONE;
   4919     uint32_t _flag_a = 0, _flag_b = 0;
   4920     uint32_t _itail_tgt = 0;
   4921     RECOMP_REGS_LOCALS
   4922     RECOMP_ENTER(0x47047AE0u);
   4923 
   4924 L_47047AE0:
   4925     MEM32(0x4710E800) = 0x4710518Cu; /* 0x47047AE0: mov dword ptr [0x4710e800], 0x4710518c */
   4926     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047AEA: ret  */
   4927     RECOMP_REGS_OUT();
   4928 }
   4929 
   4930 void sub_47047AF0(void) {
   4931     int _fpu_cmp = 0;
   4932     uint32_t _cf = 0;
   4933     int _df = 1;
   4934     uint32_t _flag_k = FK_NONE;
   4935     uint32_t _flag_a = 0, _flag_b = 0;
   4936     uint32_t _itail_tgt = 0;
   4937     RECOMP_REGS_LOCALS
   4938     RECOMP_ENTER(0x47047AF0u);
   4939 
   4940 L_47047AF0:
   4941     MEM32(0x4710E814) = 0x47106CA0u; /* 0x47047AF0: mov dword ptr [0x4710e814], 0x47106ca0 */
   4942     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047AFA: ret  */
   4943     RECOMP_REGS_OUT();
   4944 }
   4945 
   4946 void sub_47047B00(void) {
   4947     int _fpu_cmp = 0;
   4948     uint32_t _cf = 0;
   4949     int _df = 1;
   4950     uint32_t _flag_k = FK_NONE;
   4951     uint32_t _flag_a = 0, _flag_b = 0;
   4952     uint32_t _itail_tgt = 0;
   4953     RECOMP_REGS_LOCALS
   4954     RECOMP_ENTER(0x47047B00u);
   4955 
   4956 L_47047B00:
   4957     MEM32(0x4710E81C) = 0x47108988u; /* 0x47047B00: mov dword ptr [0x4710e81c], 0x47108988 */
   4958     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047B0A: ret  */
   4959     RECOMP_REGS_OUT();
   4960 }
   4961 
   4962 void sub_47047B10(void) {
   4963     int _fpu_cmp = 0;
   4964     uint32_t _cf = 0;
   4965     int _df = 1;
   4966     uint32_t _flag_k = FK_NONE;
   4967     uint32_t _flag_a = 0, _flag_b = 0;
   4968     uint32_t _itail_tgt = 0;
   4969     RECOMP_REGS_LOCALS
   4970     RECOMP_ENTER(0x47047B10u);
   4971 
   4972 L_47047B10:
   4973     ecx = MEM32(esp + 0x4); /* 0x47047B10: mov ecx, dword ptr [esp + 4] */
   4974     /* test ecx, ecx */ /* 0x47047B14: test ecx, ecx */
   4975     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4976     _cf = 0;
   4977     _flag_k = FK_TEST;
   4978     if (TEST_NZ(_flag_a, _flag_b)) goto L_47047B7D; /* 0x47047B16: jne 0x47047b7d */
   4979 L_47047B18:
   4980     PUSH32(esp, esi); /* 0x47047B18: push esi */
   4981     PUSH32(esp, edi); /* 0x47047B19: push edi */
   4982     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47047B1A: call dword ptr [0x470ac150] */
   4983     RECOMP_FLAGS_IN();
   4984     edi = eax; /* 0x47047B20: mov edi, eax */
   4985     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47047B22: call dword ptr [0x470ac3c8] */
   4986     RECOMP_FLAGS_IN();
   4987     eax = MEM32(eax); /* 0x47047B28: mov eax, dword ptr [eax] */
   4988     /* test eax, eax */ /* 0x47047B2A: test eax, eax */
   4989     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4990     _cf = 0;
   4991     _flag_k = FK_TEST;
   4992     if (TEST_Z(_flag_a, _flag_b)) goto L_47047B30; /* 0x47047B2C: je 0x47047b30 */
   4993 L_47047B2E:
   4994     edi = eax; /* 0x47047B2E: mov edi, eax */
   4995 L_47047B30:
   4996     RECOMP_ICALL(0x47039020u); /* 0x47047B30: call 0x47039020 */ /* not lifted */
   4997     RECOMP_FLAGS_IN();
   4998     esi = eax; /* 0x47047B35: mov esi, eax */
   4999     ecx = esi; /* 0x47047B37: mov ecx, esi */
   5000     RECOMP_ICALL(0x4703B210u); /* 0x47047B39: call 0x4703b210 */ /* not lifted */
   5001     RECOMP_FLAGS_IN();
   5002     PUSH32(esp, eax); /* 0x47047B3E: push eax */
   5003     ecx = esi; /* 0x47047B3F: mov ecx, esi */
   5004     RECOMP_ICALL(0x4703B240u); /* 0x47047B41: call 0x4703b240 */ /* not lifted */
   5005     RECOMP_FLAGS_IN();
   5006     PUSH32(esp, eax); /* 0x47047B46: push eax */
   5007     ecx = esi; /* 0x47047B47: mov ecx, esi */
   5008     RECOMP_ICALL(0x4703B080u); /* 0x47047B49: call 0x4703b080 */ /* not lifted */
   5009     RECOMP_FLAGS_IN();
   5010     PUSH32(esp, eax); /* 0x47047B4E: push eax */
   5011     PUSH32(esp, edi); /* 0x47047B4F: push edi */
   5012     PUSH32(esp, 0xFFFFFFFFu); /* 0x47047B50: push -1 */
   5013     PUSH32(esp, 0x18u); /* 0x47047B52: push 0x18 */
   5014     PUSH32(esp, 0x471089CCu); /* 0x47047B54: push 0x471089cc */
   5015     ecx = esi; /* 0x47047B59: mov ecx, esi */
   5016     RECOMP_ICALL(0x4703A340u); /* 0x47047B5B: call 0x4703a340 */ /* not lifted */
   5017     RECOMP_FLAGS_IN();
   5018     PUSH32(esp, 0xFFFFFFFFu); /* 0x47047B60: push -1 */
   5019     PUSH32(esp, 0x471089C4u); /* 0x47047B62: push 0x471089c4 */
   5020     PUSH32(esp, 0x47104AA4u); /* 0x47047B67: push 0x47104aa4 */
   5021     PUSH32(esp, 0x80u); /* 0x47047B6C: push 0x80 */
   5022     PUSH32(esp, esi); /* 0x47047B71: push esi */
   5023     RECOMP_ICALL(0x47039830u); /* 0x47047B72: call 0x47039830 */ /* not lifted */
   5024     RECOMP_FLAGS_IN();
   5025     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5026     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5027     esp = esp + 0x14u; /* 0x47047B77: add esp, 0x14 */
   5028     _flag_k = FK_ADD;
   5029     edi = POP32_VAL(esp); /* 0x47047B7A: pop edi */
   5030     esi = POP32_VAL(esp); /* 0x47047B7B: pop esi */
   5031     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047B7C: ret  */
   5032 L_47047B7D:
   5033     eax = MEM32(ecx); /* 0x47047B7D: mov eax, dword ptr [ecx] */
   5034     PUSH32(esp, 1); /* 0x47047B7F: push 1 */
   5035     RECOMP_ICALL(MEM32(eax)); /* 0x47047B81: call dword ptr [eax] */
   5036     RECOMP_FLAGS_IN();
   5037     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047B83: ret  */
   5038     RECOMP_REGS_OUT();
   5039 }
   5040 
   5041 void sub_47047B90(void) {
   5042     int _fpu_cmp = 0;
   5043     uint32_t _cf = 0;
   5044     int _df = 1;
   5045     uint32_t _flag_k = FK_NONE;
   5046     uint32_t _flag_a = 0, _flag_b = 0;
   5047     uint32_t _itail_tgt = 0;
   5048     RECOMP_REGS_LOCALS
   5049     RECOMP_ENTER(0x47047B90u);
   5050 
   5051 L_47047B90:
   5052     eax = MEM32(esp + 0x4); /* 0x47047B90: mov eax, dword ptr [esp + 4] */
   5053     PUSH32(esp, ebp); /* 0x47047B94: push ebp */
   5054     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5055     ebp = 0; /* 0x47047B95: xor ebp, ebp */
   5056     _cf = 0;
   5057     _flag_k = FK_TEST;
   5058     /* cmp eax, ebp */ /* 0x47047B97: cmp eax, ebp */
   5059     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   5060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5061     _flag_k = FK_CMP;
   5062     PUSH32(esp, edi); /* 0x47047B99: push edi */
   5063     if (CMP_EQ(_flag_a, _flag_b)) goto L_47047BA2; /* 0x47047B9A: je 0x47047ba2 */
   5064 L_47047B9C:
   5065     MEM32(eax) = 0x47047B10u; /* 0x47047B9C: mov dword ptr [eax], 0x47047b10 */
   5066 L_47047BA2:
   5067     PUSH32(esp, 0x124u); /* 0x47047BA2: push 0x124 */
   5068     RECOMP_ICALL(0x470A33F2u); /* 0x47047BA7: call 0x470a33f2 */ /* not lifted */
   5069     RECOMP_FLAGS_IN();
   5070     edi = eax; /* 0x47047BAC: mov edi, eax */
   5071     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5072     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5073     esp = esp + 4; /* 0x47047BAE: add esp, 4 */
   5074     _flag_k = FK_ADD;
   5075     /* cmp edi, ebp */ /* 0x47047BB1: cmp edi, ebp */
   5076     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   5077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5078     _flag_k = FK_CMP;
   5079     if (CMP_EQ(_flag_a, _flag_b)) goto L_47047C44; /* 0x47047BB3: je 0x47047c44 */
   5080 L_47047BB9:
   5081     PUSH32(esp, esi); /* 0x47047BB9: push esi */
   5082     PUSH32(esp, ebp); /* 0x47047BBA: push ebp */
   5083     ecx = edi; /* 0x47047BBB: mov ecx, edi */
   5084     RECOMP_ICALL(0x47076DA0u); /* 0x47047BBD: call 0x47076da0 */ /* not lifted */
   5085     RECOMP_FLAGS_IN();
   5086     PUSH32(esp, 0x28u); /* 0x47047BC2: push 0x28 */
   5087     MEM32(edi + 0x10) = ebp; /* 0x47047BC4: mov dword ptr [edi + 0x10], ebp */
   5088     MEM32(edi + 0x14) = ebp; /* 0x47047BC7: mov dword ptr [edi + 0x14], ebp */
   5089     MEM32(edi) = 0x470AD308u; /* 0x47047BCA: mov dword ptr [edi], 0x470ad308 */
   5090     MEM32(edi + 0xC) = 0x470AD2F8u; /* 0x47047BD0: mov dword ptr [edi + 0xc], 0x470ad2f8 */
   5091     RECOMP_ICALL(0x470A33F2u); /* 0x47047BD7: call 0x470a33f2 */ /* not lifted */
   5092     RECOMP_FLAGS_IN();
   5093     esi = eax; /* 0x47047BDC: mov esi, eax */
   5094     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5095     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5096     esp = esp + 4; /* 0x47047BDE: add esp, 4 */
   5097     _flag_k = FK_ADD;
   5098     /* cmp esi, ebp */ /* 0x47047BE1: cmp esi, ebp */
   5099     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp);
   5100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5101     _flag_k = FK_CMP;
   5102     if (CMP_EQ(_flag_a, _flag_b)) goto L_47047C29; /* 0x47047BE3: je 0x47047c29 */
   5103 L_47047BE5:
   5104     PUSH32(esp, ebx); /* 0x47047BE5: push ebx */
   5105     ebx = MEM32(0x470AC3F4); /* 0x47047BE6: mov ebx, dword ptr [0x470ac3f4] */
   5106     PUSH32(esp, 0x47107E20u); /* 0x47047BEC: push 0x47107e20 */
   5107     MEM32(esi) = ebp; /* 0x47047BF1: mov dword ptr [esi], ebp */
   5108     MEM32(esi + 0x4) = ebp; /* 0x47047BF3: mov dword ptr [esi + 4], ebp */
   5109     MEM32(esi + 0x8) = ebp; /* 0x47047BF6: mov dword ptr [esi + 8], ebp */
   5110     MEM32(esi + 0xC) = 0x2712u; /* 0x47047BF9: mov dword ptr [esi + 0xc], 0x2712 */
   5111     RECOMP_ICALL(ebx); /* 0x47047C00: call ebx */
   5112     RECOMP_FLAGS_IN();
   5113     PUSH32(esp, 0x47108A18u); /* 0x47047C02: push 0x47108a18 */
   5114     MEM32(esi + 0x10) = eax; /* 0x47047C07: mov dword ptr [esi + 0x10], eax */
   5115     RECOMP_ICALL(ebx); /* 0x47047C0A: call ebx */
   5116     RECOMP_FLAGS_IN();
   5117     PUSH32(esp, 0x47108A0Cu); /* 0x47047C0C: push 0x47108a0c */
   5118     MEM32(esi + 0x14) = eax; /* 0x47047C11: mov dword ptr [esi + 0x14], eax */
   5119     MEM32(esi + 0x18) = ebp; /* 0x47047C14: mov dword ptr [esi + 0x18], ebp */
   5120     RECOMP_ICALL(ebx); /* 0x47047C17: call ebx */
   5121     RECOMP_FLAGS_IN();
   5122     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5123     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5124     esp = esp + 0xCu; /* 0x47047C19: add esp, 0xc */
   5125     _flag_k = FK_ADD;
   5126     MEM32(esi + 0x1C) = eax; /* 0x47047C1C: mov dword ptr [esi + 0x1c], eax */
   5127     MEM32(esi + 0x20) = 0x04000000u; /* 0x47047C1F: mov dword ptr [esi + 0x20], 0x4000000 */
   5128     ebx = POP32_VAL(esp); /* 0x47047C26: pop ebx */
   5129     goto L_47047C2B; /* 0x47047C27: jmp 0x47047c2b */
   5130 L_47047C29:
   5131     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5132     esi = 0; /* 0x47047C29: xor esi, esi */
   5133     _cf = 0;
   5134     _flag_k = FK_TEST;
   5135 L_47047C2B:
   5136     MEM32(edi + 0x10) = esi; /* 0x47047C2B: mov dword ptr [edi + 0x10], esi */
   5137     /* cmp esi, ebp */ /* 0x47047C2E: cmp esi, ebp */
   5138     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp);
   5139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5140     _flag_k = FK_CMP;
   5141     esi = POP32_VAL(esp); /* 0x47047C30: pop esi */
   5142     if (CMP_NE(_flag_a, _flag_b)) goto L_47047C3F; /* 0x47047C31: jne 0x47047c3f */
   5143 L_47047C33:
   5144     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47047C33: call dword ptr [0x470ac3c8] */
   5145     RECOMP_FLAGS_IN();
   5146     MEM32(eax) = 0xCu; /* 0x47047C39: mov dword ptr [eax], 0xc */
   5147 L_47047C3F:
   5148     eax = edi; /* 0x47047C3F: mov eax, edi */
   5149     edi = POP32_VAL(esp); /* 0x47047C41: pop edi */
   5150     ebp = POP32_VAL(esp); /* 0x47047C42: pop ebp */
   5151     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047C43: ret  */
   5152 L_47047C44:
   5153     edi = POP32_VAL(esp); /* 0x47047C44: pop edi */
   5154     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5155     eax = 0; /* 0x47047C45: xor eax, eax */
   5156     _cf = 0;
   5157     _flag_k = FK_TEST;
   5158     ebp = POP32_VAL(esp); /* 0x47047C47: pop ebp */
   5159     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047C48: ret  */
   5160     RECOMP_REGS_OUT();
   5161 }
   5162 
   5163 void sub_47047C50(void) {
   5164     int _fpu_cmp = 0;
   5165     uint32_t _cf = 0;
   5166     int _df = 1;
   5167     uint32_t _flag_k = FK_NONE;
   5168     uint32_t _flag_a = 0, _flag_b = 0;
   5169     uint32_t _itail_tgt = 0;
   5170     RECOMP_REGS_LOCALS
   5171     RECOMP_ENTER(0x47047C50u);
   5172 
   5173 L_47047C50:
   5174     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x200u);
   5175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5176     esp = esp - 0x200u; /* 0x47047C50: sub esp, 0x200 */
   5177     _flag_k = FK_CMP;
   5178     PUSH32(esp, esi); /* 0x47047C56: push esi */
   5179     PUSH32(esp, 0x47108A3Cu); /* 0x47047C57: push 0x47108a3c */
   5180     PUSH32(esp, 0x47108A28u); /* 0x47047C5C: push 0x47108a28 */
   5181     eax = esp + 0xC; /* 0x47047C61: lea eax, [esp + 0xc] */
   5182     PUSH32(esp, 0x47108A20u); /* 0x47047C65: push 0x47108a20 */
   5183     PUSH32(esp, eax); /* 0x47047C6A: push eax */
   5184     RECOMP_ICALL(0x47054FC0u); /* 0x47047C6B: call 0x47054fc0 */ /* not lifted */
   5185     RECOMP_FLAGS_IN();
   5186     esi = MEM32(esp + 0x218); /* 0x47047C70: mov esi, dword ptr [esp + 0x218] */
   5187     eax = MEM32(esi); /* 0x47047C77: mov eax, dword ptr [esi] */
   5188     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5189     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5190     esp = esp + 0x10u; /* 0x47047C79: add esp, 0x10 */
   5191     _flag_k = FK_ADD;
   5192     /* test eax, eax */ /* 0x47047C7C: test eax, eax */
   5193     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5194     _cf = 0;
   5195     _flag_k = FK_TEST;
   5196     if (TEST_NZ(_flag_a, _flag_b)) goto L_47047CA1; /* 0x47047C7E: jne 0x47047ca1 */
   5197 L_47047C80:
   5198     ecx = esp + 0x4; /* 0x47047C80: lea ecx, [esp + 4] */
   5199     PUSH32(esp, ecx); /* 0x47047C84: push ecx */
   5200     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47047C85: call dword ptr [0x470ac3f4] */
   5201     RECOMP_FLAGS_IN();
   5202     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5203     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5204     esp = esp + 4; /* 0x47047C8B: add esp, 4 */
   5205     _flag_k = FK_ADD;
   5206     /* test eax, eax */ /* 0x47047C8E: test eax, eax */
   5207     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5208     _cf = 0;
   5209     _flag_k = FK_TEST;
   5210     MEM32(esi) = eax; /* 0x47047C90: mov dword ptr [esi], eax */
   5211     if (TEST_NZ(_flag_a, _flag_b)) goto L_47047CA1; /* 0x47047C92: jne 0x47047ca1 */
   5212 L_47047C94:
   5213     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5214     eax = eax | 0xFFFFFFFFu; /* 0x47047C94: or eax, 0xffffffff */
   5215     _cf = 0;
   5216     _flag_k = FK_TEST;
   5217     esi = POP32_VAL(esp); /* 0x47047C97: pop esi */
   5218     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x200u);
   5219     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5220     esp = esp + 0x200u; /* 0x47047C98: add esp, 0x200 */
   5221     _flag_k = FK_ADD;
   5222     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47047C9E: ret 8 */
   5223 L_47047CA1:
   5224     edx = MEM32(esp + 0x20C); /* 0x47047CA1: mov edx, dword ptr [esp + 0x20c] */
   5225     ecx = MEM32(esi); /* 0x47047CA8: mov ecx, dword ptr [esi] */
   5226     PUSH32(esp, edi); /* 0x47047CAA: push edi */
   5227     PUSH32(esp, edx); /* 0x47047CAB: push edx */
   5228     eax = esp + 0xC; /* 0x47047CAC: lea eax, [esp + 0xc] */
   5229     PUSH32(esp, eax); /* 0x47047CB0: push eax */
   5230     PUSH32(esp, ecx); /* 0x47047CB1: push ecx */
   5231     RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47047CB2: call dword ptr [0x470ac22c] */
   5232     RECOMP_FLAGS_IN();
   5233     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5234     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5235     esp = esp + 0xCu; /* 0x47047CB8: add esp, 0xc */
   5236     _flag_k = FK_ADD;
   5237     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5238     ecx = ecx | 0xFFFFFFFFu; /* 0x47047CBB: or ecx, 0xffffffff */
   5239     _cf = 0;
   5240     _flag_k = FK_TEST;
   5241     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5242     eax = 0; /* 0x47047CBE: xor eax, eax */
   5243     _cf = 0;
   5244     _flag_k = FK_TEST;
   5245     edi = esp + 0x8; /* 0x47047CC0: lea edi, [esp + 8] */
   5246     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; } /* 0x47047CC4: repne scasb al, byte ptr es:[edi] */
   5247     ecx = ~ecx; /* 0x47047CC6: not ecx */
   5248     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5249     ecx = ecx - 1; /* 0x47047CC8: dec ecx */
   5250     _flag_k = FK_DEC;
   5251     edi = POP32_VAL(esp); /* 0x47047CC9: pop edi */
   5252     eax = ecx; /* 0x47047CCA: mov eax, ecx */
   5253     esi = POP32_VAL(esp); /* 0x47047CCC: pop esi */
   5254     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x200u);
   5255     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5256     esp = esp + 0x200u; /* 0x47047CCD: add esp, 0x200 */
   5257     _flag_k = FK_ADD;
   5258     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47047CD3: ret 8 */
   5259     RECOMP_REGS_OUT();
   5260 }
   5261 
   5262 void sub_47047CE0(void) {
   5263     int _fpu_cmp = 0;
   5264     uint32_t _cf = 0;
   5265     int _df = 1;
   5266     uint32_t _flag_k = FK_NONE;
   5267     uint32_t _flag_a = 0, _flag_b = 0;
   5268     uint32_t _itail_tgt = 0;
   5269     RECOMP_REGS_LOCALS
   5270     RECOMP_ENTER(0x47047CE0u);
   5271 
   5272 L_47047CE0:
   5273     PUSH32(esp, ebx); /* 0x47047CE0: push ebx */
   5274     PUSH32(esp, ebp); /* 0x47047CE1: push ebp */
   5275     PUSH32(esp, esi); /* 0x47047CE2: push esi */
   5276     PUSH32(esp, edi); /* 0x47047CE3: push edi */
   5277     edi = ecx; /* 0x47047CE4: mov edi, ecx */
   5278     ebp = MEM32(edi + 0x11C); /* 0x47047CE6: mov ebp, dword ptr [edi + 0x11c] */
   5279     esi = 0x47107E20u; /* 0x47047CEC: mov esi, 0x47107e20 */
   5280     eax = ebp; /* 0x47047CF1: mov eax, ebp */
   5281 L_47047CF3:
   5282     SET_LO8(ecx, MEM8(eax)); /* 0x47047CF3: mov cl, byte ptr [eax] */
   5283     SET_LO8(ebx, MEM8(esi)); /* 0x47047CF5: mov bl, byte ptr [esi] */
   5284     SET_LO8(edx, LO8(ecx)); /* 0x47047CF7: mov dl, cl */
   5285     /* cmp LO8(ecx), LO8(ebx) */ /* 0x47047CF9: cmp cl, bl */
   5286     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5287     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5288     _flag_k = FK_NARROW(FK_CMP, 24);
   5289     if (CMP_NE(_flag_a, _flag_b)) goto L_47047D1B; /* 0x47047CFB: jne 0x47047d1b */
   5290 L_47047CFD:
   5291     /* test LO8(edx), LO8(edx) */ /* 0x47047CFD: test dl, dl */
   5292     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5293     _cf = 0;
   5294     _flag_k = FK_NARROW(FK_TEST, 24);
   5295     if (TEST_Z(_flag_a, _flag_b)) goto L_47047D17; /* 0x47047CFF: je 0x47047d17 */
   5296 L_47047D01:
   5297     SET_LO8(ecx, MEM8(eax + 0x1)); /* 0x47047D01: mov cl, byte ptr [eax + 1] */
   5298     SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x47047D04: mov bl, byte ptr [esi + 1] */
   5299     SET_LO8(edx, LO8(ecx)); /* 0x47047D07: mov dl, cl */
   5300     /* cmp LO8(ecx), LO8(ebx) */ /* 0x47047D09: cmp cl, bl */
   5301     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5303     _flag_k = FK_NARROW(FK_CMP, 24);
   5304     if (CMP_NE(_flag_a, _flag_b)) goto L_47047D1B; /* 0x47047D0B: jne 0x47047d1b */
   5305 L_47047D0D:
   5306     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   5307     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5308     eax = eax + 2; /* 0x47047D0D: add eax, 2 */
   5309     _flag_k = FK_ADD;
   5310     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   5311     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5312     esi = esi + 2; /* 0x47047D10: add esi, 2 */
   5313     _flag_k = FK_ADD;
   5314     /* test LO8(edx), LO8(edx) */ /* 0x47047D13: test dl, dl */
   5315     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5316     _cf = 0;
   5317     _flag_k = FK_NARROW(FK_TEST, 24);
   5318     RECOMP_BACKEDGE();
   5319     if (TEST_NZ(_flag_a, _flag_b)) goto L_47047CF3; /* 0x47047D15: jne 0x47047cf3 */
   5320 L_47047D17:
   5321     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5322     eax = 0; /* 0x47047D17: xor eax, eax */
   5323     _cf = 0;
   5324     _flag_k = FK_TEST;
   5325     goto L_47047D20; /* 0x47047D19: jmp 0x47047d20 */
   5326 L_47047D1B:
   5327     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47047D1B: sbb eax, eax */
   5328       eax = _sc ? 0xFFFFFFFFu : 0;
   5329       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5330       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5331     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47047D1D: sbb eax, -1 */
   5332       eax = _sa - _sb - _sc;
   5333       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5334       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5335 L_47047D20:
   5336     /* test eax, eax */ /* 0x47047D20: test eax, eax */
   5337     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5338     _cf = 0;
   5339     _flag_k = FK_TEST;
   5340     if (TEST_Z(_flag_a, _flag_b)) goto L_47047D61; /* 0x47047D22: je 0x47047d61 */
   5341 L_47047D24:
   5342     esi = edi + 0x18; /* 0x47047D24: lea esi, [edi + 0x18] */
   5343     eax = ebp; /* 0x47047D27: mov eax, ebp */
   5344 L_47047D29:
   5345     SET_LO8(edx, MEM8(eax)); /* 0x47047D29: mov dl, byte ptr [eax] */
   5346     SET_LO8(ebx, MEM8(esi)); /* 0x47047D2B: mov bl, byte ptr [esi] */
   5347     SET_LO8(ecx, LO8(edx)); /* 0x47047D2D: mov cl, dl */
   5348     /* cmp LO8(edx), LO8(ebx) */ /* 0x47047D2F: cmp dl, bl */
   5349     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5351     _flag_k = FK_NARROW(FK_CMP, 24);
   5352     if (CMP_NE(_flag_a, _flag_b)) goto L_47047D51; /* 0x47047D31: jne 0x47047d51 */
   5353 L_47047D33:
   5354     /* test LO8(ecx), LO8(ecx) */ /* 0x47047D33: test cl, cl */
   5355     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5356     _cf = 0;
   5357     _flag_k = FK_NARROW(FK_TEST, 24);
   5358     if (TEST_Z(_flag_a, _flag_b)) goto L_47047D4D; /* 0x47047D35: je 0x47047d4d */
   5359 L_47047D37:
   5360     SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47047D37: mov dl, byte ptr [eax + 1] */
   5361     SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x47047D3A: mov bl, byte ptr [esi + 1] */
   5362     SET_LO8(ecx, LO8(edx)); /* 0x47047D3D: mov cl, dl */
   5363     /* cmp LO8(edx), LO8(ebx) */ /* 0x47047D3F: cmp dl, bl */
   5364     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5366     _flag_k = FK_NARROW(FK_CMP, 24);
   5367     if (CMP_NE(_flag_a, _flag_b)) goto L_47047D51; /* 0x47047D41: jne 0x47047d51 */
   5368 L_47047D43:
   5369     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   5370     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5371     eax = eax + 2; /* 0x47047D43: add eax, 2 */
   5372     _flag_k = FK_ADD;
   5373     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   5374     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5375     esi = esi + 2; /* 0x47047D46: add esi, 2 */
   5376     _flag_k = FK_ADD;
   5377     /* test LO8(ecx), LO8(ecx) */ /* 0x47047D49: test cl, cl */
   5378     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5379     _cf = 0;
   5380     _flag_k = FK_NARROW(FK_TEST, 24);
   5381     RECOMP_BACKEDGE();
   5382     if (TEST_NZ(_flag_a, _flag_b)) goto L_47047D29; /* 0x47047D4B: jne 0x47047d29 */
   5383 L_47047D4D:
   5384     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5385     eax = 0; /* 0x47047D4D: xor eax, eax */
   5386     _cf = 0;
   5387     _flag_k = FK_TEST;
   5388     goto L_47047D56; /* 0x47047D4F: jmp 0x47047d56 */
   5389 L_47047D51:
   5390     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47047D51: sbb eax, eax */
   5391       eax = _sc ? 0xFFFFFFFFu : 0;
   5392       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5393       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5394     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47047D53: sbb eax, -1 */
   5395       eax = _sa - _sb - _sc;
   5396       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5397       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5398 L_47047D56:
   5399     /* test eax, eax */ /* 0x47047D56: test eax, eax */
   5400     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5401     _cf = 0;
   5402     _flag_k = FK_TEST;
   5403     if (TEST_Z(_flag_a, _flag_b)) goto L_47047D61; /* 0x47047D58: je 0x47047d61 */
   5404 L_47047D5A:
   5405     edi = POP32_VAL(esp); /* 0x47047D5A: pop edi */
   5406     esi = POP32_VAL(esp); /* 0x47047D5B: pop esi */
   5407     ebp = POP32_VAL(esp); /* 0x47047D5C: pop ebp */
   5408     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5409     eax = 0; /* 0x47047D5D: xor eax, eax */
   5410     _cf = 0;
   5411     _flag_k = FK_TEST;
   5412     ebx = POP32_VAL(esp); /* 0x47047D5F: pop ebx */
   5413     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047D60: ret  */
   5414 L_47047D61:
   5415     edi = POP32_VAL(esp); /* 0x47047D61: pop edi */
   5416     esi = POP32_VAL(esp); /* 0x47047D62: pop esi */
   5417     ebp = POP32_VAL(esp); /* 0x47047D63: pop ebp */
   5418     eax = 1; /* 0x47047D64: mov eax, 1 */
   5419     ebx = POP32_VAL(esp); /* 0x47047D69: pop ebx */
   5420     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047D6A: ret  */
   5421     RECOMP_REGS_OUT();
   5422 }
   5423 
   5424 void sub_47047D70(void) {
   5425     int _fpu_cmp = 0;
   5426     uint32_t _cf = 0;
   5427     int _df = 1;
   5428     uint32_t _flag_k = FK_NONE;
   5429     uint32_t _flag_a = 0, _flag_b = 0;
   5430     uint32_t _itail_tgt = 0;
   5431     RECOMP_REGS_LOCALS
   5432     RECOMP_ENTER(0x47047D70u);
   5433 
   5434 L_47047D70:
   5435     PUSH32(esp, 0xFFFFFFFFu); /* 0x47047D70: push -1 */
   5436     PUSH32(esp, 0x470A6881u); /* 0x47047D72: push 0x470a6881 */
   5437     eax = MEM32(FS_BASE + (0)); /* 0x47047D77: mov eax, dword ptr fs:[0] */
   5438     PUSH32(esp, eax); /* 0x47047D7D: push eax */
   5439     MEM32(FS_BASE + (0)) = esp; /* 0x47047D7E: mov dword ptr fs:[0], esp */
   5440     PUSH32(esp, ecx); /* 0x47047D85: push ecx */
   5441     PUSH32(esp, ebx); /* 0x47047D86: push ebx */
   5442     PUSH32(esp, ebp); /* 0x47047D87: push ebp */
   5443     PUSH32(esp, esi); /* 0x47047D88: push esi */
   5444     PUSH32(esp, edi); /* 0x47047D89: push edi */
   5445     ebp = ecx; /* 0x47047D8A: mov ebp, ecx */
   5446     eax = esp + 0x10; /* 0x47047D8C: lea eax, [esp + 0x10] */
   5447     PUSH32(esp, eax); /* 0x47047D90: push eax */
   5448     esi = ebp + 0x18; /* 0x47047D91: lea esi, [ebp + 0x18] */
   5449     PUSH32(esp, esi); /* 0x47047D94: push esi */
   5450     MEM32(esp + 0x18) = 0x101u; /* 0x47047D95: mov dword ptr [esp + 0x18], 0x101 */
   5451     RECOMP_ICALL(MEM32(0x470AC128)); /* 0x47047D9D: call dword ptr [0x470ac128] */
   5452     RECOMP_FLAGS_IN();
   5453     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5454     _cf = (eax) != 0;
   5455     eax = (uint32_t)(-(int32_t)eax); /* 0x47047DA3: neg eax */
   5456     _flag_k = FK_CMP;
   5457     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47047DA5: sbb eax, eax */
   5458       eax = _sc ? 0xFFFFFFFFu : 0;
   5459       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5460       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5461     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5462     _cf = (eax) != 0;
   5463     eax = (uint32_t)(-(int32_t)eax); /* 0x47047DA7: neg eax */
   5464     _flag_k = FK_CMP;
   5465     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5466     eax = eax - 1; /* 0x47047DA9: dec eax */
   5467     _flag_k = FK_DEC;
   5468     /* cmp eax, 0xFFFFFFFFu */ /* 0x47047DAA: cmp eax, -1 */
   5469     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5471     _flag_k = FK_CMP;
   5472     if (CMP_NE(_flag_a, _flag_b)) goto L_47047DBF; /* 0x47047DAD: jne 0x47047dbf */
   5473 L_47047DAF:
   5474     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47047DAF: call dword ptr [0x470ac3c8] */
   5475     RECOMP_FLAGS_IN();
   5476     edi = eax; /* 0x47047DB5: mov edi, eax */
   5477     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47047DB7: call dword ptr [0x470ac150] */
   5478     RECOMP_FLAGS_IN();
   5479     MEM32(edi) = eax; /* 0x47047DBD: mov dword ptr [edi], eax */
   5480 L_47047DBF:
   5481     eax = MEM32(ebp + 0x10); /* 0x47047DBF: mov eax, dword ptr [ebp + 0x10] */
   5482     edx = MEM32(eax + 0x10); /* 0x47047DC2: mov edx, dword ptr [eax + 0x10] */
   5483     MEM32(ebp + 0x11C) = edx; /* 0x47047DC5: mov dword ptr [ebp + 0x11c], edx */
   5484     ecx = MEM32(eax + 0xC); /* 0x47047DCB: mov ecx, dword ptr [eax + 0xc] */
   5485     MEM32(ebp + 0x120) = ecx; /* 0x47047DCE: mov dword ptr [ebp + 0x120], ecx */
   5486     eax = MEM32(eax + 0x8); /* 0x47047DD4: mov eax, dword ptr [eax + 8] */
   5487     /* test eax, eax */ /* 0x47047DD7: test eax, eax */
   5488     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5489     _cf = 0;
   5490     _flag_k = FK_TEST;
   5491     if (TEST_NZ(_flag_a, _flag_b)) goto L_47047FDA; /* 0x47047DD9: jne 0x47047fda */
   5492 L_47047DDF:
   5493     /* cmp MEM32(esp + 0x24), 2 */ /* 0x47047DDF: cmp dword ptr [esp + 0x24], 2 */
   5494     _flag_a = (uint32_t)(MEM32(esp + 0x24)); _flag_b = (uint32_t)(2);
   5495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5496     _flag_k = FK_CMP;
   5497     if (CMP_NE(_flag_a, _flag_b)) goto L_47047EAD; /* 0x47047DE4: jne 0x47047ead */
   5498 L_47047DEA:
   5499     edi = 0x47107E20u; /* 0x47047DEA: mov edi, 0x47107e20 */
   5500     eax = edx; /* 0x47047DEF: mov eax, edx */
   5501 L_47047DF1:
   5502     SET_LO8(ebx, MEM8(eax)); /* 0x47047DF1: mov bl, byte ptr [eax] */
   5503     SET_LO8(ecx, LO8(ebx)); /* 0x47047DF3: mov cl, bl */
   5504     /* cmp LO8(ebx), MEM8(edi) */ /* 0x47047DF5: cmp bl, byte ptr [edi] */
   5505     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(edi)) << 24;
   5506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5507     _flag_k = FK_NARROW(FK_CMP, 24);
   5508     if (CMP_NE(_flag_a, _flag_b)) goto L_47047E15; /* 0x47047DF7: jne 0x47047e15 */
   5509 L_47047DF9:
   5510     /* test LO8(ecx), LO8(ecx) */ /* 0x47047DF9: test cl, cl */
   5511     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5512     _cf = 0;
   5513     _flag_k = FK_NARROW(FK_TEST, 24);
   5514     if (TEST_Z(_flag_a, _flag_b)) goto L_47047E11; /* 0x47047DFB: je 0x47047e11 */
   5515 L_47047DFD:
   5516     SET_LO8(ebx, MEM8(eax + 0x1)); /* 0x47047DFD: mov bl, byte ptr [eax + 1] */
   5517     SET_LO8(ecx, LO8(ebx)); /* 0x47047E00: mov cl, bl */
   5518     /* cmp LO8(ebx), MEM8(edi + 0x1) */ /* 0x47047E02: cmp bl, byte ptr [edi + 1] */
   5519     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(edi + 0x1)) << 24;
   5520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5521     _flag_k = FK_NARROW(FK_CMP, 24);
   5522     if (CMP_NE(_flag_a, _flag_b)) goto L_47047E15; /* 0x47047E05: jne 0x47047e15 */
   5523 L_47047E07:
   5524     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   5525     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5526     eax = eax + 2; /* 0x47047E07: add eax, 2 */
   5527     _flag_k = FK_ADD;
   5528     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   5529     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5530     edi = edi + 2; /* 0x47047E0A: add edi, 2 */
   5531     _flag_k = FK_ADD;
   5532     /* test LO8(ecx), LO8(ecx) */ /* 0x47047E0D: test cl, cl */
   5533     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5534     _cf = 0;
   5535     _flag_k = FK_NARROW(FK_TEST, 24);
   5536     RECOMP_BACKEDGE();
   5537     if (TEST_NZ(_flag_a, _flag_b)) goto L_47047DF1; /* 0x47047E0F: jne 0x47047df1 */
   5538 L_47047E11:
   5539     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5540     eax = 0; /* 0x47047E11: xor eax, eax */
   5541     _cf = 0;
   5542     _flag_k = FK_TEST;
   5543     goto L_47047E1A; /* 0x47047E13: jmp 0x47047e1a */
   5544 L_47047E15:
   5545     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47047E15: sbb eax, eax */
   5546       eax = _sc ? 0xFFFFFFFFu : 0;
   5547       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5548       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5549     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47047E17: sbb eax, -1 */
   5550       eax = _sa - _sb - _sc;
   5551       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5552       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5553 L_47047E1A:
   5554     /* test eax, eax */ /* 0x47047E1A: test eax, eax */
   5555     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5556     _cf = 0;
   5557     _flag_k = FK_TEST;
   5558     if (TEST_Z(_flag_a, _flag_b)) goto L_47047EAD; /* 0x47047E1C: je 0x47047ead */
   5559 L_47047E22:
   5560     eax = edx; /* 0x47047E22: mov eax, edx */
   5561 L_47047E24:
   5562     SET_LO8(edx, MEM8(eax)); /* 0x47047E24: mov dl, byte ptr [eax] */
   5563     SET_LO8(ebx, MEM8(esi)); /* 0x47047E26: mov bl, byte ptr [esi] */
   5564     SET_LO8(ecx, LO8(edx)); /* 0x47047E28: mov cl, dl */
   5565     /* cmp LO8(edx), LO8(ebx) */ /* 0x47047E2A: cmp dl, bl */
   5566     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5567     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5568     _flag_k = FK_NARROW(FK_CMP, 24);
   5569     if (CMP_NE(_flag_a, _flag_b)) goto L_47047E4C; /* 0x47047E2C: jne 0x47047e4c */
   5570 L_47047E2E:
   5571     /* test LO8(ecx), LO8(ecx) */ /* 0x47047E2E: test cl, cl */
   5572     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5573     _cf = 0;
   5574     _flag_k = FK_NARROW(FK_TEST, 24);
   5575     if (TEST_Z(_flag_a, _flag_b)) goto L_47047E48; /* 0x47047E30: je 0x47047e48 */
   5576 L_47047E32:
   5577     SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47047E32: mov dl, byte ptr [eax + 1] */
   5578     SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x47047E35: mov bl, byte ptr [esi + 1] */
   5579     SET_LO8(ecx, LO8(edx)); /* 0x47047E38: mov cl, dl */
   5580     /* cmp LO8(edx), LO8(ebx) */ /* 0x47047E3A: cmp dl, bl */
   5581     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5583     _flag_k = FK_NARROW(FK_CMP, 24);
   5584     if (CMP_NE(_flag_a, _flag_b)) goto L_47047E4C; /* 0x47047E3C: jne 0x47047e4c */
   5585 L_47047E3E:
   5586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   5587     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5588     eax = eax + 2; /* 0x47047E3E: add eax, 2 */
   5589     _flag_k = FK_ADD;
   5590     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   5591     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5592     esi = esi + 2; /* 0x47047E41: add esi, 2 */
   5593     _flag_k = FK_ADD;
   5594     /* test LO8(ecx), LO8(ecx) */ /* 0x47047E44: test cl, cl */
   5595     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5596     _cf = 0;
   5597     _flag_k = FK_NARROW(FK_TEST, 24);
   5598     RECOMP_BACKEDGE();
   5599     if (TEST_NZ(_flag_a, _flag_b)) goto L_47047E24; /* 0x47047E46: jne 0x47047e24 */
   5600 L_47047E48:
   5601     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5602     eax = 0; /* 0x47047E48: xor eax, eax */
   5603     _cf = 0;
   5604     _flag_k = FK_TEST;
   5605     goto L_47047E51; /* 0x47047E4A: jmp 0x47047e51 */
   5606 L_47047E4C:
   5607     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47047E4C: sbb eax, eax */
   5608       eax = _sc ? 0xFFFFFFFFu : 0;
   5609       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5610       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5611     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47047E4E: sbb eax, -1 */
   5612       eax = _sa - _sb - _sc;
   5613       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5614       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5615 L_47047E51:
   5616     /* test eax, eax */ /* 0x47047E51: test eax, eax */
   5617     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5618     _cf = 0;
   5619     _flag_k = FK_TEST;
   5620     if (TEST_Z(_flag_a, _flag_b)) goto L_47047EAD; /* 0x47047E53: je 0x47047ead */
   5621 L_47047E55:
   5622     PUSH32(esp, 0x28u); /* 0x47047E55: push 0x28 */
   5623     RECOMP_ICALL(0x470A33F2u); /* 0x47047E57: call 0x470a33f2 */ /* not lifted */
   5624     RECOMP_FLAGS_IN();
   5625     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5626     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5627     esp = esp + 4; /* 0x47047E5C: add esp, 4 */
   5628     _flag_k = FK_ADD;
   5629     MEM32(esp + 0x24) = eax; /* 0x47047E5F: mov dword ptr [esp + 0x24], eax */
   5630     /* test eax, eax */ /* 0x47047E63: test eax, eax */
   5631     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5632     _cf = 0;
   5633     _flag_k = FK_TEST;
   5634     MEM32(esp + 0x1C) = 0; /* 0x47047E65: mov dword ptr [esp + 0x1c], 0 */
   5635     if (TEST_Z(_flag_a, _flag_b)) goto L_47047E99; /* 0x47047E6D: je 0x47047e99 */
   5636 L_47047E6F:
   5637     edx = MEM32(ebp + 0x11C); /* 0x47047E6F: mov edx, dword ptr [ebp + 0x11c] */
   5638     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5639     ecx = 0; /* 0x47047E75: xor ecx, ecx */
   5640     _cf = 0;
   5641     _flag_k = FK_TEST;
   5642     SET_LO16(ecx, MEM16(ebp + 0x120)); /* 0x47047E77: mov cx, word ptr [ebp + 0x120] */
   5643     PUSH32(esp, ecx); /* 0x47047E7E: push ecx */
   5644     PUSH32(esp, edx); /* 0x47047E7F: push edx */
   5645     ecx = eax; /* 0x47047E80: mov ecx, eax */
   5646     RECOMP_ICALL(0x4706F240u); /* 0x47047E82: call 0x4706f240 */ /* not lifted */
   5647     RECOMP_FLAGS_IN();
   5648     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47047E87: mov dword ptr [esp + 0x1c], 0xffffffff */
   5649     MEM32(ebp + 0x14) = eax; /* 0x47047E8F: mov dword ptr [ebp + 0x14], eax */
   5650     /* test eax, eax */ /* 0x47047E92: test eax, eax */
   5651     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5652     _cf = 0;
   5653     _flag_k = FK_TEST;
   5654     goto L_47047FCA; /* 0x47047E94: jmp 0x47047fca */
   5655 L_47047E99:
   5656     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5657     eax = 0; /* 0x47047E99: xor eax, eax */
   5658     _cf = 0;
   5659     _flag_k = FK_TEST;
   5660     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47047E9B: mov dword ptr [esp + 0x1c], 0xffffffff */
   5661     MEM32(ebp + 0x14) = eax; /* 0x47047EA3: mov dword ptr [ebp + 0x14], eax */
   5662     /* test eax, eax */ /* 0x47047EA6: test eax, eax */
   5663     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5664     _cf = 0;
   5665     _flag_k = FK_TEST;
   5666     goto L_47047FCA; /* 0x47047EA8: jmp 0x47047fca */
   5667 L_47047EAD:
   5668     eax = MEM32(esp + 0x28); /* 0x47047EAD: mov eax, dword ptr [esp + 0x28] */
   5669     /* test eax, eax */ /* 0x47047EB1: test eax, eax */
   5670     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5671     _cf = 0;
   5672     _flag_k = FK_TEST;
   5673     PUSH32(esp, 0x220u); /* 0x47047EB3: push 0x220 */
   5674     if (TEST_Z(_flag_a, _flag_b)) goto L_47047F16; /* 0x47047EB8: je 0x47047f16 */
   5675 L_47047EBA:
   5676     RECOMP_ICALL(0x470A33F2u); /* 0x47047EBA: call 0x470a33f2 */ /* not lifted */
   5677     RECOMP_FLAGS_IN();
   5678     edi = eax; /* 0x47047EBF: mov edi, eax */
   5679     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5680     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5681     esp = esp + 4; /* 0x47047EC1: add esp, 4 */
   5682     _flag_k = FK_ADD;
   5683     MEM32(esp + 0x28) = edi; /* 0x47047EC4: mov dword ptr [esp + 0x28], edi */
   5684     /* test edi, edi */ /* 0x47047EC8: test edi, edi */
   5685     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5686     _cf = 0;
   5687     _flag_k = FK_TEST;
   5688     MEM32(esp + 0x1C) = 1; /* 0x47047ECA: mov dword ptr [esp + 0x1c], 1 */
   5689     if (TEST_Z(_flag_a, _flag_b)) goto L_47047FBB; /* 0x47047ED2: je 0x47047fbb */
   5690 L_47047ED8:
   5691     eax = MEM32(ebp + 0x10); /* 0x47047ED8: mov eax, dword ptr [ebp + 0x10] */
   5692     MEM32(edi + 0x10) = eax; /* 0x47047EDB: mov dword ptr [edi + 0x10], eax */
   5693     eax = MEM32(esp + 0x24); /* 0x47047EDE: mov eax, dword ptr [esp + 0x24] */
   5694     ecx = edi; /* 0x47047EE2: mov ecx, edi */
   5695     MEM8(esp + 0x1C) = (uint8_t)(2); /* 0x47047EE4: mov byte ptr [esp + 0x1c], 2 */
   5696     MEM32(edi) = 0x470AD85Cu; /* 0x47047EE9: mov dword ptr [edi], 0x470ad85c */
   5697     MEM32(edi + 0xC) = eax; /* 0x47047EEF: mov dword ptr [edi + 0xc], eax */
   5698     RECOMP_ICALL(0x4704CFE0u); /* 0x47047EF2: call 0x4704cfe0 */ /* not lifted */
   5699     RECOMP_FLAGS_IN();
   5700     /* cmp eax, 0xFFFFFFFFu */ /* 0x47047EF7: cmp eax, -1 */
   5701     _flag_a = (uint32_t)(eax); _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_47047FBD; /* 0x47047EFA: jne 0x47047fbd */
   5705 L_47047F00:
   5706     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47047F00: call dword ptr [0x470ac150] */
   5707     RECOMP_FLAGS_IN();
   5708     ebx = eax; /* 0x47047F06: mov ebx, eax */
   5709     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47047F08: call dword ptr [0x470ac3c8] */
   5710     RECOMP_FLAGS_IN();
   5711     eax = MEM32(eax); /* 0x47047F0E: mov eax, dword ptr [eax] */
   5712     /* test eax, eax */ /* 0x47047F10: test eax, eax */
   5713     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5714     _cf = 0;
   5715     _flag_k = FK_TEST;
   5716     if (TEST_Z(_flag_a, _flag_b)) goto L_47047F6E; /* 0x47047F12: je 0x47047f6e */
   5717 L_47047F14:
   5718     goto L_47047F6C; /* 0x47047F14: jmp 0x47047f6c */
   5719 L_47047F16:
   5720     RECOMP_ICALL(0x470A33F2u); /* 0x47047F16: call 0x470a33f2 */ /* not lifted */
   5721     RECOMP_FLAGS_IN();
   5722     edi = eax; /* 0x47047F1B: mov edi, eax */
   5723     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5724     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5725     esp = esp + 4; /* 0x47047F1D: add esp, 4 */
   5726     _flag_k = FK_ADD;
   5727     MEM32(esp + 0x28) = edi; /* 0x47047F20: mov dword ptr [esp + 0x28], edi */
   5728     /* test edi, edi */ /* 0x47047F24: test edi, edi */
   5729     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5730     _cf = 0;
   5731     _flag_k = FK_TEST;
   5732     MEM32(esp + 0x1C) = 3; /* 0x47047F26: mov dword ptr [esp + 0x1c], 3 */
   5733     if (TEST_Z(_flag_a, _flag_b)) goto L_47047FBB; /* 0x47047F2E: je 0x47047fbb */
   5734 L_47047F34:
   5735     eax = MEM32(ebp + 0x10); /* 0x47047F34: mov eax, dword ptr [ebp + 0x10] */
   5736     ecx = MEM32(esp + 0x24); /* 0x47047F37: mov ecx, dword ptr [esp + 0x24] */
   5737     MEM32(edi + 0xC) = ecx; /* 0x47047F3B: mov dword ptr [edi + 0xc], ecx */
   5738     ecx = edi; /* 0x47047F3E: mov ecx, edi */
   5739     MEM8(esp + 0x1C) = (uint8_t)(4); /* 0x47047F40: mov byte ptr [esp + 0x1c], 4 */
   5740     MEM32(edi + 0x10) = eax; /* 0x47047F45: mov dword ptr [edi + 0x10], eax */
   5741     MEM32(edi) = 0x470AD808u; /* 0x47047F48: mov dword ptr [edi], 0x470ad808 */
   5742     RECOMP_ICALL(0x4704D230u); /* 0x47047F4E: call 0x4704d230 */ /* not lifted */
   5743     RECOMP_FLAGS_IN();
   5744     /* cmp eax, 0xFFFFFFFFu */ /* 0x47047F53: cmp eax, -1 */
   5745     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5746     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5747     _flag_k = FK_CMP;
   5748     if (CMP_NE(_flag_a, _flag_b)) goto L_47047FBD; /* 0x47047F56: jne 0x47047fbd */
   5749 L_47047F58:
   5750     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47047F58: call dword ptr [0x470ac150] */
   5751     RECOMP_FLAGS_IN();
   5752     ebx = eax; /* 0x47047F5E: mov ebx, eax */
   5753     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47047F60: call dword ptr [0x470ac3c8] */
   5754     RECOMP_FLAGS_IN();
   5755     eax = MEM32(eax); /* 0x47047F66: mov eax, dword ptr [eax] */
   5756     /* test eax, eax */ /* 0x47047F68: test eax, eax */
   5757     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5758     _cf = 0;
   5759     _flag_k = FK_TEST;
   5760     if (TEST_Z(_flag_a, _flag_b)) goto L_47047F6E; /* 0x47047F6A: je 0x47047f6e */
   5761 L_47047F6C:
   5762     ebx = eax; /* 0x47047F6C: mov ebx, eax */
   5763 L_47047F6E:
   5764     RECOMP_ICALL(0x47039020u); /* 0x47047F6E: call 0x47039020 */ /* not lifted */
   5765     RECOMP_FLAGS_IN();
   5766     esi = eax; /* 0x47047F73: mov esi, eax */
   5767     ecx = esi; /* 0x47047F75: mov ecx, esi */
   5768     RECOMP_ICALL(0x4703B210u); /* 0x47047F77: call 0x4703b210 */ /* not lifted */
   5769     RECOMP_FLAGS_IN();
   5770     PUSH32(esp, eax); /* 0x47047F7C: push eax */
   5771     ecx = esi; /* 0x47047F7D: mov ecx, esi */
   5772     RECOMP_ICALL(0x4703B240u); /* 0x47047F7F: call 0x4703b240 */ /* not lifted */
   5773     RECOMP_FLAGS_IN();
   5774     PUSH32(esp, eax); /* 0x47047F84: push eax */
   5775     ecx = esi; /* 0x47047F85: mov ecx, esi */
   5776     RECOMP_ICALL(0x4703B080u); /* 0x47047F87: call 0x4703b080 */ /* not lifted */
   5777     RECOMP_FLAGS_IN();
   5778     PUSH32(esp, eax); /* 0x47047F8C: push eax */
   5779     PUSH32(esp, ebx); /* 0x47047F8D: push ebx */
   5780     PUSH32(esp, 0xFFFFFFFFu); /* 0x47047F8E: push -1 */
   5781     PUSH32(esp, 0x15Eu); /* 0x47047F90: push 0x15e */
   5782     PUSH32(esp, 0x47108AA8u); /* 0x47047F95: push 0x47108aa8 */
   5783     ecx = esi; /* 0x47047F9A: mov ecx, esi */
   5784     RECOMP_ICALL(0x4703A340u); /* 0x47047F9C: call 0x4703a340 */ /* not lifted */
   5785     RECOMP_FLAGS_IN();
   5786     PUSH32(esp, 0x47108A7Cu); /* 0x47047FA1: push 0x47108a7c */
   5787     PUSH32(esp, 0x471055F0u); /* 0x47047FA6: push 0x471055f0 */
   5788     PUSH32(esp, 0x80u); /* 0x47047FAB: push 0x80 */
   5789     PUSH32(esp, esi); /* 0x47047FB0: push esi */
   5790     RECOMP_ICALL(0x47039830u); /* 0x47047FB1: call 0x47039830 */ /* not lifted */
   5791     RECOMP_FLAGS_IN();
   5792     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5793     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5794     esp = esp + 0x10u; /* 0x47047FB6: add esp, 0x10 */
   5795     _flag_k = FK_ADD;
   5796     goto L_47047FBD; /* 0x47047FB9: jmp 0x47047fbd */
   5797 L_47047FBB:
   5798     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5799     edi = 0; /* 0x47047FBB: xor edi, edi */
   5800     _cf = 0;
   5801     _flag_k = FK_TEST;
   5802 L_47047FBD:
   5803     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47047FBD: mov dword ptr [esp + 0x1c], 0xffffffff */
   5804     MEM32(ebp + 0x14) = edi; /* 0x47047FC5: mov dword ptr [ebp + 0x14], edi */
   5805     /* test edi, edi */ /* 0x47047FC8: test edi, edi */
   5806     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5807     _cf = 0;
   5808     _flag_k = FK_TEST;
   5809 L_47047FCA:
   5810     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47047FDA; /* 0x47047FCA: jne 0x47047fda */
   5811 L_47047FCC:
   5812     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47047FCC: call dword ptr [0x470ac3c8] */
   5813     RECOMP_FLAGS_IN();
   5814     MEM32(eax) = 0xCu; /* 0x47047FD2: mov dword ptr [eax], 0xc */
   5815     goto L_4704804E; /* 0x47047FD8: jmp 0x4704804e */
   5816 L_47047FDA:
   5817     RECOMP_ICALL(0x47039020u); /* 0x47047FDA: call 0x47039020 */ /* not lifted */
   5818     RECOMP_FLAGS_IN();
   5819     ecx = eax; /* 0x47047FDF: mov ecx, eax */
   5820     RECOMP_ICALL(0x4708EA50u); /* 0x47047FE1: call 0x4708ea50 */ /* not lifted */
   5821     RECOMP_FLAGS_IN();
   5822     /* test eax, eax */ /* 0x47047FE6: test eax, eax */
   5823     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5824     _cf = 0;
   5825     _flag_k = FK_TEST;
   5826     if (TEST_NZ(_flag_a, _flag_b)) goto L_47047FF5; /* 0x47047FE8: jne 0x47047ff5 */
   5827 L_47047FEA:
   5828     eax = MEM32(ebp + 0x14); /* 0x47047FEA: mov eax, dword ptr [ebp + 0x14] */
   5829     /* test eax, eax */ /* 0x47047FED: test eax, eax */
   5830     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5831     _cf = 0;
   5832     _flag_k = FK_TEST;
   5833     if (TEST_Z(_flag_a, _flag_b)) goto L_47047FF5; /* 0x47047FEF: je 0x47047ff5 */
   5834 L_47047FF1:
   5835     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5836     eax = 0; /* 0x47047FF1: xor eax, eax */
   5837     _cf = 0;
   5838     _flag_k = FK_TEST;
   5839     goto L_47048051; /* 0x47047FF3: jmp 0x47048051 */
   5840 L_47047FF5:
   5841     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47047FF5: call dword ptr [0x470ac150] */
   5842     RECOMP_FLAGS_IN();
   5843     edi = eax; /* 0x47047FFB: mov edi, eax */
   5844     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47047FFD: call dword ptr [0x470ac3c8] */
   5845     RECOMP_FLAGS_IN();
   5846     eax = MEM32(eax); /* 0x47048003: mov eax, dword ptr [eax] */
   5847     /* test eax, eax */ /* 0x47048005: test eax, eax */
   5848     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5849     _cf = 0;
   5850     _flag_k = FK_TEST;
   5851     if (TEST_Z(_flag_a, _flag_b)) goto L_4704800B; /* 0x47048007: je 0x4704800b */
   5852 L_47048009:
   5853     edi = eax; /* 0x47048009: mov edi, eax */
   5854 L_4704800B:
   5855     RECOMP_ICALL(0x47039020u); /* 0x4704800B: call 0x47039020 */ /* not lifted */
   5856     RECOMP_FLAGS_IN();
   5857     esi = eax; /* 0x47048010: mov esi, eax */
   5858     ecx = esi; /* 0x47048012: mov ecx, esi */
   5859     RECOMP_ICALL(0x4703B210u); /* 0x47048014: call 0x4703b210 */ /* not lifted */
   5860     RECOMP_FLAGS_IN();
   5861     PUSH32(esp, eax); /* 0x47048019: push eax */
   5862     ecx = esi; /* 0x4704801A: mov ecx, esi */
   5863     RECOMP_ICALL(0x4703B240u); /* 0x4704801C: call 0x4703b240 */ /* not lifted */
   5864     RECOMP_FLAGS_IN();
   5865     PUSH32(esp, eax); /* 0x47048021: push eax */
   5866     ecx = esi; /* 0x47048022: mov ecx, esi */
   5867     RECOMP_ICALL(0x4703B080u); /* 0x47048024: call 0x4703b080 */ /* not lifted */
   5868     RECOMP_FLAGS_IN();
   5869     PUSH32(esp, eax); /* 0x47048029: push eax */
   5870     PUSH32(esp, edi); /* 0x4704802A: push edi */
   5871     PUSH32(esp, 0xFFFFFFFFu); /* 0x4704802B: push -1 */
   5872     PUSH32(esp, 0x6Bu); /* 0x4704802D: push 0x6b */
   5873     PUSH32(esp, 0x471089CCu); /* 0x4704802F: push 0x471089cc */
   5874     ecx = esi; /* 0x47048034: mov ecx, esi */
   5875     RECOMP_ICALL(0x4703A340u); /* 0x47048036: call 0x4703a340 */ /* not lifted */
   5876     RECOMP_FLAGS_IN();
   5877     PUSH32(esp, 0x47108A64u); /* 0x4704803B: push 0x47108a64 */
   5878     PUSH32(esp, 0x80u); /* 0x47048040: push 0x80 */
   5879     PUSH32(esp, esi); /* 0x47048045: push esi */
   5880     RECOMP_ICALL(0x47039830u); /* 0x47048046: call 0x47039830 */ /* not lifted */
   5881     RECOMP_FLAGS_IN();
   5882     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5883     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5884     esp = esp + 0xCu; /* 0x4704804B: add esp, 0xc */
   5885     _flag_k = FK_ADD;
   5886 L_4704804E:
   5887     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5888     eax = eax | 0xFFFFFFFFu; /* 0x4704804E: or eax, 0xffffffff */
   5889     _cf = 0;
   5890     _flag_k = FK_TEST;
   5891 L_47048051:
   5892     ecx = MEM32(esp + 0x14); /* 0x47048051: mov ecx, dword ptr [esp + 0x14] */
   5893     edi = POP32_VAL(esp); /* 0x47048055: pop edi */
   5894     esi = POP32_VAL(esp); /* 0x47048056: pop esi */
   5895     ebp = POP32_VAL(esp); /* 0x47048057: pop ebp */
   5896     ebx = POP32_VAL(esp); /* 0x47048058: pop ebx */
   5897     MEM32(FS_BASE + (0)) = ecx; /* 0x47048059: mov dword ptr fs:[0], ecx */
   5898     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5899     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5900     esp = esp + 0x10u; /* 0x47048060: add esp, 0x10 */
   5901     _flag_k = FK_ADD;
   5902     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048063: ret 8 */
   5903     RECOMP_REGS_OUT();
   5904 }
   5905 
   5906 void sub_47047FCA(void) {
   5907     int _fpu_cmp = 0;
   5908     uint32_t _cf = 0;
   5909     int _df = 1;
   5910     uint32_t _flag_k = FK_NONE;
   5911     uint32_t _flag_a = 0, _flag_b = 0;
   5912     uint32_t _itail_tgt = 0;
   5913     RECOMP_REGS_LOCALS
   5914     RECOMP_ENTER(0x47047FCAu);
   5915 
   5916 L_47047FCA:
   5917     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47047FDA; /* 0x47047FCA: jne 0x47047fda */
   5918 L_47047FCC:
   5919     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47047FCC: call dword ptr [0x470ac3c8] */
   5920     RECOMP_FLAGS_IN();
   5921     MEM32(eax) = 0xCu; /* 0x47047FD2: mov dword ptr [eax], 0xc */
   5922     goto L_4704804E; /* 0x47047FD8: jmp 0x4704804e */
   5923 L_47047FDA:
   5924     RECOMP_ICALL(0x47039020u); /* 0x47047FDA: call 0x47039020 */ /* not lifted */
   5925     RECOMP_FLAGS_IN();
   5926     ecx = eax; /* 0x47047FDF: mov ecx, eax */
   5927     RECOMP_ICALL(0x4708EA50u); /* 0x47047FE1: call 0x4708ea50 */ /* not lifted */
   5928     RECOMP_FLAGS_IN();
   5929     /* test eax, eax */ /* 0x47047FE6: test eax, eax */
   5930     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5931     _cf = 0;
   5932     _flag_k = FK_TEST;
   5933     if (TEST_NZ(_flag_a, _flag_b)) goto L_47047FF5; /* 0x47047FE8: jne 0x47047ff5 */
   5934 L_47047FEA:
   5935     eax = MEM32(ebp + 0x14); /* 0x47047FEA: mov eax, dword ptr [ebp + 0x14] */
   5936     /* test eax, eax */ /* 0x47047FED: test eax, eax */
   5937     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5938     _cf = 0;
   5939     _flag_k = FK_TEST;
   5940     if (TEST_Z(_flag_a, _flag_b)) goto L_47047FF5; /* 0x47047FEF: je 0x47047ff5 */
   5941 L_47047FF1:
   5942     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5943     eax = 0; /* 0x47047FF1: xor eax, eax */
   5944     _cf = 0;
   5945     _flag_k = FK_TEST;
   5946     goto L_47048051; /* 0x47047FF3: jmp 0x47048051 */
   5947 L_47047FF5:
   5948     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47047FF5: call dword ptr [0x470ac150] */
   5949     RECOMP_FLAGS_IN();
   5950     edi = eax; /* 0x47047FFB: mov edi, eax */
   5951     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47047FFD: call dword ptr [0x470ac3c8] */
   5952     RECOMP_FLAGS_IN();
   5953     eax = MEM32(eax); /* 0x47048003: mov eax, dword ptr [eax] */
   5954     /* test eax, eax */ /* 0x47048005: test eax, eax */
   5955     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5956     _cf = 0;
   5957     _flag_k = FK_TEST;
   5958     if (TEST_Z(_flag_a, _flag_b)) goto L_4704800B; /* 0x47048007: je 0x4704800b */
   5959 L_47048009:
   5960     edi = eax; /* 0x47048009: mov edi, eax */
   5961 L_4704800B:
   5962     RECOMP_ICALL(0x47039020u); /* 0x4704800B: call 0x47039020 */ /* not lifted */
   5963     RECOMP_FLAGS_IN();
   5964     esi = eax; /* 0x47048010: mov esi, eax */
   5965     ecx = esi; /* 0x47048012: mov ecx, esi */
   5966     RECOMP_ICALL(0x4703B210u); /* 0x47048014: call 0x4703b210 */ /* not lifted */
   5967     RECOMP_FLAGS_IN();
   5968     PUSH32(esp, eax); /* 0x47048019: push eax */
   5969     ecx = esi; /* 0x4704801A: mov ecx, esi */
   5970     RECOMP_ICALL(0x4703B240u); /* 0x4704801C: call 0x4703b240 */ /* not lifted */
   5971     RECOMP_FLAGS_IN();
   5972     PUSH32(esp, eax); /* 0x47048021: push eax */
   5973     ecx = esi; /* 0x47048022: mov ecx, esi */
   5974     RECOMP_ICALL(0x4703B080u); /* 0x47048024: call 0x4703b080 */ /* not lifted */
   5975     RECOMP_FLAGS_IN();
   5976     PUSH32(esp, eax); /* 0x47048029: push eax */
   5977     PUSH32(esp, edi); /* 0x4704802A: push edi */
   5978     PUSH32(esp, 0xFFFFFFFFu); /* 0x4704802B: push -1 */
   5979     PUSH32(esp, 0x6Bu); /* 0x4704802D: push 0x6b */
   5980     PUSH32(esp, 0x471089CCu); /* 0x4704802F: push 0x471089cc */
   5981     ecx = esi; /* 0x47048034: mov ecx, esi */
   5982     RECOMP_ICALL(0x4703A340u); /* 0x47048036: call 0x4703a340 */ /* not lifted */
   5983     RECOMP_FLAGS_IN();
   5984     PUSH32(esp, 0x47108A64u); /* 0x4704803B: push 0x47108a64 */
   5985     PUSH32(esp, 0x80u); /* 0x47048040: push 0x80 */
   5986     PUSH32(esp, esi); /* 0x47048045: push esi */
   5987     RECOMP_ICALL(0x47039830u); /* 0x47048046: call 0x47039830 */ /* not lifted */
   5988     RECOMP_FLAGS_IN();
   5989     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5990     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5991     esp = esp + 0xCu; /* 0x4704804B: add esp, 0xc */
   5992     _flag_k = FK_ADD;
   5993 L_4704804E:
   5994     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5995     eax = eax | 0xFFFFFFFFu; /* 0x4704804E: or eax, 0xffffffff */
   5996     _cf = 0;
   5997     _flag_k = FK_TEST;
   5998 L_47048051:
   5999     ecx = MEM32(esp + 0x14); /* 0x47048051: mov ecx, dword ptr [esp + 0x14] */
   6000     edi = POP32_VAL(esp); /* 0x47048055: pop edi */
   6001     esi = POP32_VAL(esp); /* 0x47048056: pop esi */
   6002     ebp = POP32_VAL(esp); /* 0x47048057: pop ebp */
   6003     ebx = POP32_VAL(esp); /* 0x47048058: pop ebx */
   6004     MEM32(FS_BASE + (0)) = ecx; /* 0x47048059: mov dword ptr fs:[0], ecx */
   6005     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6006     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6007     esp = esp + 0x10u; /* 0x47048060: add esp, 0x10 */
   6008     _flag_k = FK_ADD;
   6009     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048063: ret 8 */
   6010     RECOMP_REGS_OUT();
   6011 }
   6012 
   6013 void sub_4704804E(void) {
   6014     int _fpu_cmp = 0;
   6015     uint32_t _cf = 0;
   6016     int _df = 1;
   6017     uint32_t _flag_k = FK_NONE;
   6018     uint32_t _flag_a = 0, _flag_b = 0;
   6019     uint32_t _itail_tgt = 0;
   6020     RECOMP_REGS_LOCALS
   6021     RECOMP_ENTER(0x4704804Eu);
   6022 
   6023 L_4704804E:
   6024     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6025     eax = eax | 0xFFFFFFFFu; /* 0x4704804E: or eax, 0xffffffff */
   6026     _cf = 0;
   6027     _flag_k = FK_TEST;
   6028     ecx = MEM32(esp + 0x14); /* 0x47048051: mov ecx, dword ptr [esp + 0x14] */
   6029     edi = POP32_VAL(esp); /* 0x47048055: pop edi */
   6030     esi = POP32_VAL(esp); /* 0x47048056: pop esi */
   6031     ebp = POP32_VAL(esp); /* 0x47048057: pop ebp */
   6032     ebx = POP32_VAL(esp); /* 0x47048058: pop ebx */
   6033     MEM32(FS_BASE + (0)) = ecx; /* 0x47048059: mov dword ptr fs:[0], ecx */
   6034     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6035     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6036     esp = esp + 0x10u; /* 0x47048060: add esp, 0x10 */
   6037     _flag_k = FK_ADD;
   6038     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048063: ret 8 */
   6039     RECOMP_REGS_OUT();
   6040 }
   6041 
   6042 void sub_47048051(void) {
   6043     int _fpu_cmp = 0;
   6044     uint32_t _cf = 0;
   6045     int _df = 1;
   6046     uint32_t _flag_k = FK_NONE;
   6047     uint32_t _flag_a = 0, _flag_b = 0;
   6048     uint32_t _itail_tgt = 0;
   6049     RECOMP_REGS_LOCALS
   6050     RECOMP_ENTER(0x47048051u);
   6051 
   6052 L_47048051:
   6053     ecx = MEM32(esp + 0x14); /* 0x47048051: mov ecx, dword ptr [esp + 0x14] */
   6054     edi = POP32_VAL(esp); /* 0x47048055: pop edi */
   6055     esi = POP32_VAL(esp); /* 0x47048056: pop esi */
   6056     ebp = POP32_VAL(esp); /* 0x47048057: pop ebp */
   6057     ebx = POP32_VAL(esp); /* 0x47048058: pop ebx */
   6058     MEM32(FS_BASE + (0)) = ecx; /* 0x47048059: mov dword ptr fs:[0], ecx */
   6059     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6060     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6061     esp = esp + 0x10u; /* 0x47048060: add esp, 0x10 */
   6062     _flag_k = FK_ADD;
   6063     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048063: ret 8 */
   6064     RECOMP_REGS_OUT();
   6065 }
   6066 
   6067 void sub_47048070(void) {
   6068     int _fpu_cmp = 0;
   6069     uint32_t _cf = 0;
   6070     int _df = 1;
   6071     uint32_t _flag_k = FK_NONE;
   6072     uint32_t _flag_a = 0, _flag_b = 0;
   6073     uint32_t _itail_tgt = 0;
   6074     RECOMP_REGS_LOCALS
   6075     RECOMP_ENTER(0x47048070u);
   6076 
   6077 L_47048070:
   6078     PUSH32(esp, esi); /* 0x47048070: push esi */
   6079     esi = ecx; /* 0x47048071: mov esi, ecx */
   6080     PUSH32(esp, edi); /* 0x47048073: push edi */
   6081     edi = MEM32(esi + 0x10); /* 0x47048074: mov edi, dword ptr [esi + 0x10] */
   6082     /* test edi, edi */ /* 0x47048077: test edi, edi */
   6083     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6084     _cf = 0;
   6085     _flag_k = FK_TEST;
   6086     if (TEST_Z(_flag_a, _flag_b)) goto L_470480A4; /* 0x47048079: je 0x470480a4 */
   6087 L_4704807B:
   6088     eax = MEM32(edi + 0x10); /* 0x4704807B: mov eax, dword ptr [edi + 0x10] */
   6089     PUSH32(esp, ebx); /* 0x4704807E: push ebx */
   6090     ebx = MEM32(0x470AC390); /* 0x4704807F: mov ebx, dword ptr [0x470ac390] */
   6091     PUSH32(esp, eax); /* 0x47048085: push eax */
   6092     RECOMP_ICALL(ebx); /* 0x47048086: call ebx */
   6093     RECOMP_FLAGS_IN();
   6094     ecx = MEM32(edi + 0x14); /* 0x47048088: mov ecx, dword ptr [edi + 0x14] */
   6095     PUSH32(esp, ecx); /* 0x4704808B: push ecx */
   6096     RECOMP_ICALL(ebx); /* 0x4704808C: call ebx */
   6097     RECOMP_FLAGS_IN();
   6098     edx = MEM32(edi + 0x18); /* 0x4704808E: mov edx, dword ptr [edi + 0x18] */
   6099     PUSH32(esp, edx); /* 0x47048091: push edx */
   6100     RECOMP_ICALL(ebx); /* 0x47048092: call ebx */
   6101     RECOMP_FLAGS_IN();
   6102     eax = MEM32(edi + 0x1C); /* 0x47048094: mov eax, dword ptr [edi + 0x1c] */
   6103     PUSH32(esp, eax); /* 0x47048097: push eax */
   6104     RECOMP_ICALL(ebx); /* 0x47048098: call ebx */
   6105     RECOMP_FLAGS_IN();
   6106     PUSH32(esp, edi); /* 0x4704809A: push edi */
   6107     RECOMP_ICALL(0x470A32A2u); /* 0x4704809B: call 0x470a32a2 */ /* not lifted */
   6108     RECOMP_FLAGS_IN();
   6109     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6110     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6111     esp = esp + 0x14u; /* 0x470480A0: add esp, 0x14 */
   6112     _flag_k = FK_ADD;
   6113     ebx = POP32_VAL(esp); /* 0x470480A3: pop ebx */
   6114 L_470480A4:
   6115     ecx = MEM32(esi + 0x14); /* 0x470480A4: mov ecx, dword ptr [esi + 0x14] */
   6116     /* test ecx, ecx */ /* 0x470480A7: test ecx, ecx */
   6117     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6118     _cf = 0;
   6119     _flag_k = FK_TEST;
   6120     MEM32(esi + 0x10) = 0; /* 0x470480A9: mov dword ptr [esi + 0x10], 0 */
   6121     if (TEST_Z(_flag_a, _flag_b)) goto L_470480B8; /* 0x470480B0: je 0x470480b8 */
   6122 L_470480B2:
   6123     edx = MEM32(ecx); /* 0x470480B2: mov edx, dword ptr [ecx] */
   6124     PUSH32(esp, 1); /* 0x470480B4: push 1 */
   6125     RECOMP_ICALL(MEM32(edx)); /* 0x470480B6: call dword ptr [edx] */
   6126     RECOMP_FLAGS_IN();
   6127 L_470480B8:
   6128     edi = POP32_VAL(esp); /* 0x470480B8: pop edi */
   6129     MEM32(esi + 0x14) = 0; /* 0x470480B9: mov dword ptr [esi + 0x14], 0 */
   6130     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6131     eax = 0; /* 0x470480C0: xor eax, eax */
   6132     _cf = 0;
   6133     _flag_k = FK_TEST;
   6134     esi = POP32_VAL(esp); /* 0x470480C2: pop esi */
   6135     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470480C3: ret  */
   6136     RECOMP_REGS_OUT();
   6137 }
   6138 
   6139 void sub_470480D0(void) {
   6140     int _fpu_cmp = 0;
   6141     uint32_t _cf = 0;
   6142     int _df = 1;
   6143     uint32_t _flag_k = FK_NONE;
   6144     uint32_t _flag_a = 0, _flag_b = 0;
   6145     uint32_t _itail_tgt = 0;
   6146     RECOMP_REGS_LOCALS
   6147     RECOMP_ENTER(0x470480D0u);
   6148 
   6149 L_470480D0:
   6150     PUSH32(esp, esi); /* 0x470480D0: push esi */
   6151     esi = ecx; /* 0x470480D1: mov esi, ecx */
   6152     ecx = MEM32(esi + 0x14); /* 0x470480D3: mov ecx, dword ptr [esi + 0x14] */
   6153     /* test ecx, ecx */ /* 0x470480D6: test ecx, ecx */
   6154     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6155     _cf = 0;
   6156     _flag_k = FK_TEST;
   6157     if (TEST_Z(_flag_a, _flag_b)) goto L_470480E0; /* 0x470480D8: je 0x470480e0 */
   6158 L_470480DA:
   6159     eax = MEM32(ecx); /* 0x470480DA: mov eax, dword ptr [ecx] */
   6160     PUSH32(esp, 1); /* 0x470480DC: push 1 */
   6161     RECOMP_ICALL(MEM32(eax)); /* 0x470480DE: call dword ptr [eax] */
   6162     RECOMP_FLAGS_IN();
   6163 L_470480E0:
   6164     MEM32(esi + 0x14) = 0; /* 0x470480E0: mov dword ptr [esi + 0x14], 0 */
   6165     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6166     eax = 0; /* 0x470480E7: xor eax, eax */
   6167     _cf = 0;
   6168     _flag_k = FK_TEST;
   6169     esi = POP32_VAL(esp); /* 0x470480E9: pop esi */
   6170     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470480EA: ret  */
   6171     RECOMP_REGS_OUT();
   6172 }
   6173 
   6174 void sub_470480F0(void) {
   6175     int _fpu_cmp = 0;
   6176     uint32_t _cf = 0;
   6177     int _df = 1;
   6178     uint32_t _flag_k = FK_NONE;
   6179     uint32_t _flag_a = 0, _flag_b = 0;
   6180     uint32_t _itail_tgt = 0;
   6181     RECOMP_REGS_LOCALS
   6182     RECOMP_ENTER(0x470480F0u);
   6183 
   6184 L_470480F0:
   6185     PUSH32(esp, 0xFFFFFFFFu); /* 0x470480F0: push -1 */
   6186     PUSH32(esp, 0x470A6898u); /* 0x470480F2: push 0x470a6898 */
   6187     eax = MEM32(FS_BASE + (0)); /* 0x470480F7: mov eax, dword ptr fs:[0] */
   6188     PUSH32(esp, eax); /* 0x470480FD: push eax */
   6189     MEM32(FS_BASE + (0)) = esp; /* 0x470480FE: mov dword ptr fs:[0], esp */
   6190     PUSH32(esp, ecx); /* 0x47048105: push ecx */
   6191     PUSH32(esp, ebp); /* 0x47048106: push ebp */
   6192     PUSH32(esp, esi); /* 0x47048107: push esi */
   6193     PUSH32(esp, edi); /* 0x47048108: push edi */
   6194     edi = ecx; /* 0x47048109: mov edi, ecx */
   6195     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6196     ebp = 0; /* 0x4704810B: xor ebp, ebp */
   6197     _cf = 0;
   6198     _flag_k = FK_TEST;
   6199     PUSH32(esp, ebp); /* 0x4704810D: push ebp */
   6200     MEM32(esp + 0x10) = edi; /* 0x4704810E: mov dword ptr [esp + 0x10], edi */
   6201     RECOMP_ICALL(0x47076DA0u); /* 0x47048112: call 0x47076da0 */ /* not lifted */
   6202     RECOMP_FLAGS_IN();
   6203     PUSH32(esp, 0x28u); /* 0x47048117: push 0x28 */
   6204     MEM32(esp + 0x1C) = ebp; /* 0x47048119: mov dword ptr [esp + 0x1c], ebp */
   6205     MEM32(edi + 0x10) = ebp; /* 0x4704811D: mov dword ptr [edi + 0x10], ebp */
   6206     MEM32(edi + 0x14) = ebp; /* 0x47048120: mov dword ptr [edi + 0x14], ebp */
   6207     MEM32(edi) = 0x470AD308u; /* 0x47048123: mov dword ptr [edi], 0x470ad308 */
   6208     MEM32(edi + 0xC) = 0x470AD2F8u; /* 0x47048129: mov dword ptr [edi + 0xc], 0x470ad2f8 */
   6209     RECOMP_ICALL(0x470A33F2u); /* 0x47048130: call 0x470a33f2 */ /* not lifted */
   6210     RECOMP_FLAGS_IN();
   6211     esi = eax; /* 0x47048135: mov esi, eax */
   6212     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6213     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6214     esp = esp + 4; /* 0x47048137: add esp, 4 */
   6215     _flag_k = FK_ADD;
   6216     /* cmp esi, ebp */ /* 0x4704813A: cmp esi, ebp */
   6217     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp);
   6218     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6219     _flag_k = FK_CMP;
   6220     if (CMP_EQ(_flag_a, _flag_b)) goto L_47048182; /* 0x4704813C: je 0x47048182 */
   6221 L_4704813E:
   6222     PUSH32(esp, ebx); /* 0x4704813E: push ebx */
   6223     ebx = MEM32(0x470AC3F4); /* 0x4704813F: mov ebx, dword ptr [0x470ac3f4] */
   6224     PUSH32(esp, 0x47107E20u); /* 0x47048145: push 0x47107e20 */
   6225     MEM32(esi) = ebp; /* 0x4704814A: mov dword ptr [esi], ebp */
   6226     MEM32(esi + 0x4) = ebp; /* 0x4704814C: mov dword ptr [esi + 4], ebp */
   6227     MEM32(esi + 0x8) = ebp; /* 0x4704814F: mov dword ptr [esi + 8], ebp */
   6228     MEM32(esi + 0xC) = 0x2712u; /* 0x47048152: mov dword ptr [esi + 0xc], 0x2712 */
   6229     RECOMP_ICALL(ebx); /* 0x47048159: call ebx */
   6230     RECOMP_FLAGS_IN();
   6231     PUSH32(esp, 0x47108A18u); /* 0x4704815B: push 0x47108a18 */
   6232     MEM32(esi + 0x10) = eax; /* 0x47048160: mov dword ptr [esi + 0x10], eax */
   6233     RECOMP_ICALL(ebx); /* 0x47048163: call ebx */
   6234     RECOMP_FLAGS_IN();
   6235     PUSH32(esp, 0x47108A0Cu); /* 0x47048165: push 0x47108a0c */
   6236     MEM32(esi + 0x14) = eax; /* 0x4704816A: mov dword ptr [esi + 0x14], eax */
   6237     MEM32(esi + 0x18) = ebp; /* 0x4704816D: mov dword ptr [esi + 0x18], ebp */
   6238     RECOMP_ICALL(ebx); /* 0x47048170: call ebx */
   6239     RECOMP_FLAGS_IN();
   6240     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6242     esp = esp + 0xCu; /* 0x47048172: add esp, 0xc */
   6243     _flag_k = FK_ADD;
   6244     MEM32(esi + 0x1C) = eax; /* 0x47048175: mov dword ptr [esi + 0x1c], eax */
   6245     MEM32(esi + 0x20) = 0x04000000u; /* 0x47048178: mov dword ptr [esi + 0x20], 0x4000000 */
   6246     ebx = POP32_VAL(esp); /* 0x4704817F: pop ebx */
   6247     goto L_47048184; /* 0x47048180: jmp 0x47048184 */
   6248 L_47048182:
   6249     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6250     esi = 0; /* 0x47048182: xor esi, esi */
   6251     _cf = 0;
   6252     _flag_k = FK_TEST;
   6253 L_47048184:
   6254     /* cmp esi, ebp */ /* 0x47048184: cmp esi, ebp */
   6255     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp);
   6256     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6257     _flag_k = FK_CMP;
   6258     MEM32(edi + 0x10) = esi; /* 0x47048186: mov dword ptr [edi + 0x10], esi */
   6259     if (CMP_NE(_flag_a, _flag_b)) goto L_47048197; /* 0x47048189: jne 0x47048197 */
   6260 L_4704818B:
   6261     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704818B: call dword ptr [0x470ac3c8] */
   6262     RECOMP_FLAGS_IN();
   6263     MEM32(eax) = 0xCu; /* 0x47048191: mov dword ptr [eax], 0xc */
   6264 L_47048197:
   6265     ecx = MEM32(esp + 0x10); /* 0x47048197: mov ecx, dword ptr [esp + 0x10] */
   6266     eax = edi; /* 0x4704819B: mov eax, edi */
   6267     edi = POP32_VAL(esp); /* 0x4704819D: pop edi */
   6268     esi = POP32_VAL(esp); /* 0x4704819E: pop esi */
   6269     ebp = POP32_VAL(esp); /* 0x4704819F: pop ebp */
   6270     MEM32(FS_BASE + (0)) = ecx; /* 0x470481A0: mov dword ptr fs:[0], ecx */
   6271     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6272     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6273     esp = esp + 0x10u; /* 0x470481A7: add esp, 0x10 */
   6274     _flag_k = FK_ADD;
   6275     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470481AA: ret  */
   6276     RECOMP_REGS_OUT();
   6277 }
   6278 
   6279 void sub_470481B0(void) {
   6280     int _fpu_cmp = 0;
   6281     uint32_t _cf = 0;
   6282     int _df = 1;
   6283     uint32_t _flag_k = FK_NONE;
   6284     uint32_t _flag_a = 0, _flag_b = 0;
   6285     uint32_t _itail_tgt = 0;
   6286     RECOMP_REGS_LOCALS
   6287     RECOMP_ENTER(0x470481B0u);
   6288 
   6289 L_470481B0:
   6290     PUSH32(esp, 0xFFFFFFFFu); /* 0x470481B0: push -1 */
   6291     PUSH32(esp, 0x470A68B8u); /* 0x470481B2: push 0x470a68b8 */
   6292     eax = MEM32(FS_BASE + (0)); /* 0x470481B7: mov eax, dword ptr fs:[0] */
   6293     PUSH32(esp, eax); /* 0x470481BD: push eax */
   6294     MEM32(FS_BASE + (0)) = esp; /* 0x470481BE: mov dword ptr fs:[0], esp */
   6295     PUSH32(esp, ecx); /* 0x470481C5: push ecx */
   6296     PUSH32(esp, ebx); /* 0x470481C6: push ebx */
   6297     PUSH32(esp, ebp); /* 0x470481C7: push ebp */
   6298     PUSH32(esp, esi); /* 0x470481C8: push esi */
   6299     PUSH32(esp, edi); /* 0x470481C9: push edi */
   6300     edi = ecx; /* 0x470481CA: mov edi, ecx */
   6301     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6302     ebp = 0; /* 0x470481CC: xor ebp, ebp */
   6303     _cf = 0;
   6304     _flag_k = FK_TEST;
   6305     PUSH32(esp, ebp); /* 0x470481CE: push ebp */
   6306     MEM32(esp + 0x14) = edi; /* 0x470481CF: mov dword ptr [esp + 0x14], edi */
   6307     RECOMP_ICALL(0x47076DA0u); /* 0x470481D3: call 0x47076da0 */ /* not lifted */
   6308     RECOMP_FLAGS_IN();
   6309     PUSH32(esp, 0x28u); /* 0x470481D8: push 0x28 */
   6310     MEM32(esp + 0x20) = ebp; /* 0x470481DA: mov dword ptr [esp + 0x20], ebp */
   6311     MEM32(edi + 0x10) = ebp; /* 0x470481DE: mov dword ptr [edi + 0x10], ebp */
   6312     MEM32(edi + 0x14) = ebp; /* 0x470481E1: mov dword ptr [edi + 0x14], ebp */
   6313     MEM32(edi) = 0x470AD308u; /* 0x470481E4: mov dword ptr [edi], 0x470ad308 */
   6314     MEM32(edi + 0xC) = 0x470AD2F8u; /* 0x470481EA: mov dword ptr [edi + 0xc], 0x470ad2f8 */
   6315     RECOMP_ICALL(0x470A33F2u); /* 0x470481F1: call 0x470a33f2 */ /* not lifted */
   6316     RECOMP_FLAGS_IN();
   6317     esi = eax; /* 0x470481F6: mov esi, eax */
   6318     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6319     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6320     esp = esp + 4; /* 0x470481F8: add esp, 4 */
   6321     _flag_k = FK_ADD;
   6322     /* cmp esi, ebp */ /* 0x470481FB: cmp esi, ebp */
   6323     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp);
   6324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6325     _flag_k = FK_CMP;
   6326     if (CMP_EQ(_flag_a, _flag_b)) goto L_47048241; /* 0x470481FD: je 0x47048241 */
   6327 L_470481FF:
   6328     ebx = MEM32(0x470AC3F4); /* 0x470481FF: mov ebx, dword ptr [0x470ac3f4] */
   6329     PUSH32(esp, 0x47107E20u); /* 0x47048205: push 0x47107e20 */
   6330     MEM32(esi) = ebp; /* 0x4704820A: mov dword ptr [esi], ebp */
   6331     MEM32(esi + 0x4) = ebp; /* 0x4704820C: mov dword ptr [esi + 4], ebp */
   6332     MEM32(esi + 0x8) = ebp; /* 0x4704820F: mov dword ptr [esi + 8], ebp */
   6333     MEM32(esi + 0xC) = 0x2712u; /* 0x47048212: mov dword ptr [esi + 0xc], 0x2712 */
   6334     RECOMP_ICALL(ebx); /* 0x47048219: call ebx */
   6335     RECOMP_FLAGS_IN();
   6336     PUSH32(esp, 0x47108A18u); /* 0x4704821B: push 0x47108a18 */
   6337     MEM32(esi + 0x10) = eax; /* 0x47048220: mov dword ptr [esi + 0x10], eax */
   6338     RECOMP_ICALL(ebx); /* 0x47048223: call ebx */
   6339     RECOMP_FLAGS_IN();
   6340     PUSH32(esp, 0x47108A0Cu); /* 0x47048225: push 0x47108a0c */
   6341     MEM32(esi + 0x14) = eax; /* 0x4704822A: mov dword ptr [esi + 0x14], eax */
   6342     MEM32(esi + 0x18) = ebp; /* 0x4704822D: mov dword ptr [esi + 0x18], ebp */
   6343     RECOMP_ICALL(ebx); /* 0x47048230: call ebx */
   6344     RECOMP_FLAGS_IN();
   6345     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6346     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6347     esp = esp + 0xCu; /* 0x47048232: add esp, 0xc */
   6348     _flag_k = FK_ADD;
   6349     MEM32(esi + 0x1C) = eax; /* 0x47048235: mov dword ptr [esi + 0x1c], eax */
   6350     MEM32(esi + 0x20) = 0x04000000u; /* 0x47048238: mov dword ptr [esi + 0x20], 0x4000000 */
   6351     goto L_47048243; /* 0x4704823F: jmp 0x47048243 */
   6352 L_47048241:
   6353     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6354     esi = 0; /* 0x47048241: xor esi, esi */
   6355     _cf = 0;
   6356     _flag_k = FK_TEST;
   6357 L_47048243:
   6358     /* cmp esi, ebp */ /* 0x47048243: cmp esi, ebp */
   6359     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp);
   6360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6361     _flag_k = FK_CMP;
   6362     MEM32(edi + 0x10) = esi; /* 0x47048245: mov dword ptr [edi + 0x10], esi */
   6363     if (CMP_NE(_flag_a, _flag_b)) goto L_47048258; /* 0x47048248: jne 0x47048258 */
   6364 L_4704824A:
   6365     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704824A: call dword ptr [0x470ac3c8] */
   6366     RECOMP_FLAGS_IN();
   6367     MEM32(eax) = 0xCu; /* 0x47048250: mov dword ptr [eax], 0xc */
   6368     goto L_470482CF; /* 0x47048256: jmp 0x470482cf */
   6369 L_47048258:
   6370     eax = MEM32(esp + 0x28); /* 0x47048258: mov eax, dword ptr [esp + 0x28] */
   6371     ecx = MEM32(esp + 0x24); /* 0x4704825C: mov ecx, dword ptr [esp + 0x24] */
   6372     PUSH32(esp, eax); /* 0x47048260: push eax */
   6373     PUSH32(esp, ecx); /* 0x47048261: push ecx */
   6374     ecx = edi; /* 0x47048262: mov ecx, edi */
   6375     RECOMP_ICALL(0x47047D70u); /* 0x47048264: call 0x47047d70 */ /* not lifted */
   6376     RECOMP_FLAGS_IN();
   6377     /* cmp eax, 0xFFFFFFFFu */ /* 0x47048269: cmp eax, -1 */
   6378     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6379     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6380     _flag_k = FK_CMP;
   6381     if (CMP_NE(_flag_a, _flag_b)) goto L_470482CF; /* 0x4704826C: jne 0x470482cf */
   6382 L_4704826E:
   6383     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704826E: call dword ptr [0x470ac150] */
   6384     RECOMP_FLAGS_IN();
   6385     ebx = eax; /* 0x47048274: mov ebx, eax */
   6386     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47048276: call dword ptr [0x470ac3c8] */
   6387     RECOMP_FLAGS_IN();
   6388     eax = MEM32(eax); /* 0x4704827C: mov eax, dword ptr [eax] */
   6389     /* cmp eax, ebp */ /* 0x4704827E: cmp eax, ebp */
   6390     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   6391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6392     _flag_k = FK_CMP;
   6393     if (CMP_EQ(_flag_a, _flag_b)) goto L_47048284; /* 0x47048280: je 0x47048284 */
   6394 L_47048282:
   6395     ebx = eax; /* 0x47048282: mov ebx, eax */
   6396 L_47048284:
   6397     RECOMP_ICALL(0x47039020u); /* 0x47048284: call 0x47039020 */ /* not lifted */
   6398     RECOMP_FLAGS_IN();
   6399     esi = eax; /* 0x47048289: mov esi, eax */
   6400     ecx = esi; /* 0x4704828B: mov ecx, esi */
   6401     RECOMP_ICALL(0x4703B210u); /* 0x4704828D: call 0x4703b210 */ /* not lifted */
   6402     RECOMP_FLAGS_IN();
   6403     PUSH32(esp, eax); /* 0x47048292: push eax */
   6404     ecx = esi; /* 0x47048293: mov ecx, esi */
   6405     RECOMP_ICALL(0x4703B240u); /* 0x47048295: call 0x4703b240 */ /* not lifted */
   6406     RECOMP_FLAGS_IN();
   6407     PUSH32(esp, eax); /* 0x4704829A: push eax */
   6408     ecx = esi; /* 0x4704829B: mov ecx, esi */
   6409     RECOMP_ICALL(0x4703B080u); /* 0x4704829D: call 0x4703b080 */ /* not lifted */
   6410     RECOMP_FLAGS_IN();
   6411     PUSH32(esp, eax); /* 0x470482A2: push eax */
   6412     PUSH32(esp, ebx); /* 0x470482A3: push ebx */
   6413     PUSH32(esp, 0xFFFFFFFFu); /* 0x470482A4: push -1 */
   6414     PUSH32(esp, 0x9Du); /* 0x470482A6: push 0x9d */
   6415     PUSH32(esp, 0x471089CCu); /* 0x470482AB: push 0x471089cc */
   6416     ecx = esi; /* 0x470482B0: mov ecx, esi */
   6417     RECOMP_ICALL(0x4703A340u); /* 0x470482B2: call 0x4703a340 */ /* not lifted */
   6418     RECOMP_FLAGS_IN();
   6419     PUSH32(esp, 0x47108AC8u); /* 0x470482B7: push 0x47108ac8 */
   6420     PUSH32(esp, 0x471055F0u); /* 0x470482BC: push 0x471055f0 */
   6421     PUSH32(esp, 0x80u); /* 0x470482C1: push 0x80 */
   6422     PUSH32(esp, esi); /* 0x470482C6: push esi */
   6423     RECOMP_ICALL(0x47039830u); /* 0x470482C7: call 0x47039830 */ /* not lifted */
   6424     RECOMP_FLAGS_IN();
   6425     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6426     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6427     esp = esp + 0x10u; /* 0x470482CC: add esp, 0x10 */
   6428     _flag_k = FK_ADD;
   6429 L_470482CF:
   6430     ecx = MEM32(esp + 0x14); /* 0x470482CF: mov ecx, dword ptr [esp + 0x14] */
   6431     eax = edi; /* 0x470482D3: mov eax, edi */
   6432     edi = POP32_VAL(esp); /* 0x470482D5: pop edi */
   6433     esi = POP32_VAL(esp); /* 0x470482D6: pop esi */
   6434     ebp = POP32_VAL(esp); /* 0x470482D7: pop ebp */
   6435     ebx = POP32_VAL(esp); /* 0x470482D8: pop ebx */
   6436     MEM32(FS_BASE + (0)) = ecx; /* 0x470482D9: mov dword ptr fs:[0], ecx */
   6437     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6438     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6439     esp = esp + 0x10u; /* 0x470482E0: add esp, 0x10 */
   6440     _flag_k = FK_ADD;
   6441     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470482E3: ret 8 */
   6442     RECOMP_REGS_OUT();
   6443 }
   6444 
   6445 void sub_470482F0(void) {
   6446     int _fpu_cmp = 0;
   6447     uint32_t _cf = 0;
   6448     int _df = 1;
   6449     uint32_t _flag_k = FK_NONE;
   6450     uint32_t _flag_a = 0, _flag_b = 0;
   6451     uint32_t _itail_tgt = 0;
   6452     RECOMP_REGS_LOCALS
   6453     RECOMP_ENTER(0x470482F0u);
   6454 
   6455 L_470482F0:
   6456     edx = MEM32(esp + 0xC); /* 0x470482F0: mov edx, dword ptr [esp + 0xc] */
   6457     ecx = MEM32(ecx + 0x14); /* 0x470482F4: mov ecx, dword ptr [ecx + 0x14] */
   6458     eax = MEM32(ecx); /* 0x470482F7: mov eax, dword ptr [ecx] */
   6459     PUSH32(esp, edx); /* 0x470482F9: push edx */
   6460     edx = MEM32(esp + 0xC); /* 0x470482FA: mov edx, dword ptr [esp + 0xc] */
   6461     PUSH32(esp, edx); /* 0x470482FE: push edx */
   6462     edx = MEM32(esp + 0xC); /* 0x470482FF: mov edx, dword ptr [esp + 0xc] */
   6463     PUSH32(esp, edx); /* 0x47048303: push edx */
   6464     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47048304: call dword ptr [eax + 4] */
   6465     RECOMP_FLAGS_IN();
   6466     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47048307: ret 0xc */
   6467     RECOMP_REGS_OUT();
   6468 }
   6469 
   6470 void sub_47048310(void) {
   6471     int _fpu_cmp = 0;
   6472     uint32_t _cf = 0;
   6473     int _df = 1;
   6474     uint32_t _flag_k = FK_NONE;
   6475     uint32_t _flag_a = 0, _flag_b = 0;
   6476     uint32_t _itail_tgt = 0;
   6477     RECOMP_REGS_LOCALS
   6478     RECOMP_ENTER(0x47048310u);
   6479 
   6480 L_47048310:
   6481     PUSH32(esp, 0xFFFFFFFFu); /* 0x47048310: push -1 */
   6482     PUSH32(esp, 0x470A68E0u); /* 0x47048312: push 0x470a68e0 */
   6483     eax = MEM32(FS_BASE + (0)); /* 0x47048317: mov eax, dword ptr fs:[0] */
   6484     PUSH32(esp, eax); /* 0x4704831D: push eax */
   6485     MEM32(FS_BASE + (0)) = esp; /* 0x4704831E: mov dword ptr fs:[0], esp */
   6486     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6487     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6488     esp = esp - 0x18u; /* 0x47048325: sub esp, 0x18 */
   6489     _flag_k = FK_CMP;
   6490     eax = MEM32(esp + 0x2C); /* 0x47048328: mov eax, dword ptr [esp + 0x2c] */
   6491     PUSH32(esp, esi); /* 0x4704832C: push esi */
   6492     PUSH32(esp, edi); /* 0x4704832D: push edi */
   6493     PUSH32(esp, 0); /* 0x4704832E: push 0 */
   6494     esi = ecx; /* 0x47048330: mov esi, ecx */
   6495     PUSH32(esp, eax); /* 0x47048332: push eax */
   6496     ecx = esp + 0x1C; /* 0x47048333: lea ecx, [esp + 0x1c] */
   6497     RECOMP_ICALL(0x47080A90u); /* 0x47048337: call 0x47080a90 */ /* not lifted */
   6498     RECOMP_FLAGS_IN();
   6499     edi = eax; /* 0x4704833C: mov edi, eax */
   6500     ecx = MEM32(esp + 0x30); /* 0x4704833E: mov ecx, dword ptr [esp + 0x30] */
   6501     PUSH32(esp, 0); /* 0x47048342: push 0 */
   6502     PUSH32(esp, ecx); /* 0x47048344: push ecx */
   6503     ecx = esp + 0x10; /* 0x47048345: lea ecx, [esp + 0x10] */
   6504     MEM32(esp + 0x30) = 0; /* 0x47048349: mov dword ptr [esp + 0x30], 0 */
   6505     RECOMP_ICALL(0x47080A90u); /* 0x47048351: call 0x47080a90 */ /* not lifted */
   6506     RECOMP_FLAGS_IN();
   6507     ecx = MEM32(esi + 0x14); /* 0x47048356: mov ecx, dword ptr [esi + 0x14] */
   6508     esi = MEM32(esp + 0x38); /* 0x47048359: mov esi, dword ptr [esp + 0x38] */
   6509     edx = MEM32(ecx); /* 0x4704835D: mov edx, dword ptr [ecx] */
   6510     PUSH32(esp, esi); /* 0x4704835F: push esi */
   6511     PUSH32(esp, edi); /* 0x47048360: push edi */
   6512     PUSH32(esp, eax); /* 0x47048361: push eax */
   6513     MEM8(esp + 0x34) = (uint8_t)(1); /* 0x47048362: mov byte ptr [esp + 0x34], 1 */
   6514     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47048367: call dword ptr [edx + 4] */
   6515     RECOMP_FLAGS_IN();
   6516     ecx = esp + 0x8; /* 0x4704836A: lea ecx, [esp + 8] */
   6517     esi = eax; /* 0x4704836E: mov esi, eax */
   6518     MEM8(esp + 0x28) = (uint8_t)(0); /* 0x47048370: mov byte ptr [esp + 0x28], 0 */
   6519     RECOMP_ICALL(0x470810C0u); /* 0x47048375: call 0x470810c0 */ /* not lifted */
   6520     RECOMP_FLAGS_IN();
   6521     ecx = esp + 0x14; /* 0x4704837A: lea ecx, [esp + 0x14] */
   6522     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x4704837E: mov dword ptr [esp + 0x28], 0xffffffff */
   6523     RECOMP_ICALL(0x470810C0u); /* 0x47048386: call 0x470810c0 */ /* not lifted */
   6524     RECOMP_FLAGS_IN();
   6525     ecx = MEM32(esp + 0x20); /* 0x4704838B: mov ecx, dword ptr [esp + 0x20] */
   6526     edi = POP32_VAL(esp); /* 0x4704838F: pop edi */
   6527     eax = esi; /* 0x47048390: mov eax, esi */
   6528     esi = POP32_VAL(esp); /* 0x47048392: pop esi */
   6529     MEM32(FS_BASE + (0)) = ecx; /* 0x47048393: mov dword ptr fs:[0], ecx */
   6530     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   6531     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6532     esp = esp + 0x24u; /* 0x4704839A: add esp, 0x24 */
   6533     _flag_k = FK_ADD;
   6534     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4704839D: ret 0xc */
   6535     RECOMP_REGS_OUT();
   6536 }
   6537 
   6538 void sub_470483A0(void) {
   6539     int _fpu_cmp = 0;
   6540     uint32_t _cf = 0;
   6541     int _df = 1;
   6542     uint32_t _flag_k = FK_NONE;
   6543     uint32_t _flag_a = 0, _flag_b = 0;
   6544     uint32_t _itail_tgt = 0;
   6545     RECOMP_REGS_LOCALS
   6546     RECOMP_ENTER(0x470483A0u);
   6547 
   6548 L_470483A0:
   6549     edx = MEM32(esp + 0xC); /* 0x470483A0: mov edx, dword ptr [esp + 0xc] */
   6550     ecx = MEM32(ecx + 0x14); /* 0x470483A4: mov ecx, dword ptr [ecx + 0x14] */
   6551     eax = MEM32(ecx); /* 0x470483A7: mov eax, dword ptr [ecx] */
   6552     PUSH32(esp, edx); /* 0x470483A9: push edx */
   6553     edx = MEM32(esp + 0xC); /* 0x470483AA: mov edx, dword ptr [esp + 0xc] */
   6554     PUSH32(esp, edx); /* 0x470483AE: push edx */
   6555     edx = MEM32(esp + 0xC); /* 0x470483AF: mov edx, dword ptr [esp + 0xc] */
   6556     PUSH32(esp, edx); /* 0x470483B3: push edx */
   6557     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x470483B4: call dword ptr [eax + 8] */
   6558     RECOMP_FLAGS_IN();
   6559     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470483B7: ret 0xc */
   6560     RECOMP_REGS_OUT();
   6561 }
   6562 
   6563 void sub_470483C0(void) {
   6564     int _fpu_cmp = 0;
   6565     uint32_t _cf = 0;
   6566     int _df = 1;
   6567     uint32_t _flag_k = FK_NONE;
   6568     uint32_t _flag_a = 0, _flag_b = 0;
   6569     uint32_t _itail_tgt = 0;
   6570     RECOMP_REGS_LOCALS
   6571     RECOMP_ENTER(0x470483C0u);
   6572 
   6573 L_470483C0:
   6574     PUSH32(esp, 0xFFFFFFFFu); /* 0x470483C0: push -1 */
   6575     PUSH32(esp, 0x470A6900u); /* 0x470483C2: push 0x470a6900 */
   6576     eax = MEM32(FS_BASE + (0)); /* 0x470483C7: mov eax, dword ptr fs:[0] */
   6577     PUSH32(esp, eax); /* 0x470483CD: push eax */
   6578     MEM32(FS_BASE + (0)) = esp; /* 0x470483CE: mov dword ptr fs:[0], esp */
   6579     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6580     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6581     esp = esp - 0x18u; /* 0x470483D5: sub esp, 0x18 */
   6582     _flag_k = FK_CMP;
   6583     eax = MEM32(esp + 0x2C); /* 0x470483D8: mov eax, dword ptr [esp + 0x2c] */
   6584     PUSH32(esp, esi); /* 0x470483DC: push esi */
   6585     PUSH32(esp, edi); /* 0x470483DD: push edi */
   6586     PUSH32(esp, 0); /* 0x470483DE: push 0 */
   6587     esi = ecx; /* 0x470483E0: mov esi, ecx */
   6588     PUSH32(esp, eax); /* 0x470483E2: push eax */
   6589     ecx = esp + 0x1C; /* 0x470483E3: lea ecx, [esp + 0x1c] */
   6590     RECOMP_ICALL(0x47080A90u); /* 0x470483E7: call 0x47080a90 */ /* not lifted */
   6591     RECOMP_FLAGS_IN();
   6592     edi = eax; /* 0x470483EC: mov edi, eax */
   6593     ecx = MEM32(esp + 0x30); /* 0x470483EE: mov ecx, dword ptr [esp + 0x30] */
   6594     PUSH32(esp, 0); /* 0x470483F2: push 0 */
   6595     PUSH32(esp, ecx); /* 0x470483F4: push ecx */
   6596     ecx = esp + 0x10; /* 0x470483F5: lea ecx, [esp + 0x10] */
   6597     MEM32(esp + 0x30) = 0; /* 0x470483F9: mov dword ptr [esp + 0x30], 0 */
   6598     RECOMP_ICALL(0x47080A90u); /* 0x47048401: call 0x47080a90 */ /* not lifted */
   6599     RECOMP_FLAGS_IN();
   6600     ecx = MEM32(esi + 0x14); /* 0x47048406: mov ecx, dword ptr [esi + 0x14] */
   6601     esi = MEM32(esp + 0x38); /* 0x47048409: mov esi, dword ptr [esp + 0x38] */
   6602     edx = MEM32(ecx); /* 0x4704840D: mov edx, dword ptr [ecx] */
   6603     PUSH32(esp, esi); /* 0x4704840F: push esi */
   6604     PUSH32(esp, edi); /* 0x47048410: push edi */
   6605     PUSH32(esp, eax); /* 0x47048411: push eax */
   6606     MEM8(esp + 0x34) = (uint8_t)(1); /* 0x47048412: mov byte ptr [esp + 0x34], 1 */
   6607     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47048417: call dword ptr [edx + 8] */
   6608     RECOMP_FLAGS_IN();
   6609     ecx = esp + 0x8; /* 0x4704841A: lea ecx, [esp + 8] */
   6610     esi = eax; /* 0x4704841E: mov esi, eax */
   6611     MEM8(esp + 0x28) = (uint8_t)(0); /* 0x47048420: mov byte ptr [esp + 0x28], 0 */
   6612     RECOMP_ICALL(0x470810C0u); /* 0x47048425: call 0x470810c0 */ /* not lifted */
   6613     RECOMP_FLAGS_IN();
   6614     ecx = esp + 0x14; /* 0x4704842A: lea ecx, [esp + 0x14] */
   6615     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x4704842E: mov dword ptr [esp + 0x28], 0xffffffff */
   6616     RECOMP_ICALL(0x470810C0u); /* 0x47048436: call 0x470810c0 */ /* not lifted */
   6617     RECOMP_FLAGS_IN();
   6618     ecx = MEM32(esp + 0x20); /* 0x4704843B: mov ecx, dword ptr [esp + 0x20] */
   6619     edi = POP32_VAL(esp); /* 0x4704843F: pop edi */
   6620     eax = esi; /* 0x47048440: mov eax, esi */
   6621     esi = POP32_VAL(esp); /* 0x47048442: pop esi */
   6622     MEM32(FS_BASE + (0)) = ecx; /* 0x47048443: mov dword ptr fs:[0], ecx */
   6623     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   6624     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6625     esp = esp + 0x24u; /* 0x4704844A: add esp, 0x24 */
   6626     _flag_k = FK_ADD;
   6627     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4704844D: ret 0xc */
   6628     RECOMP_REGS_OUT();
   6629 }
   6630 
   6631 void sub_47048450(void) {
   6632     int _fpu_cmp = 0;
   6633     uint32_t _cf = 0;
   6634     int _df = 1;
   6635     uint32_t _flag_k = FK_NONE;
   6636     uint32_t _flag_a = 0, _flag_b = 0;
   6637     uint32_t _itail_tgt = 0;
   6638     RECOMP_REGS_LOCALS
   6639     RECOMP_ENTER(0x47048450u);
   6640 
   6641 L_47048450:
   6642     edx = MEM32(esp + 0xC); /* 0x47048450: mov edx, dword ptr [esp + 0xc] */
   6643     ecx = MEM32(ecx + 0x14); /* 0x47048454: mov ecx, dword ptr [ecx + 0x14] */
   6644     eax = MEM32(ecx); /* 0x47048457: mov eax, dword ptr [ecx] */
   6645     PUSH32(esp, edx); /* 0x47048459: push edx */
   6646     edx = MEM32(esp + 0xC); /* 0x4704845A: mov edx, dword ptr [esp + 0xc] */
   6647     PUSH32(esp, edx); /* 0x4704845E: push edx */
   6648     edx = MEM32(esp + 0xC); /* 0x4704845F: mov edx, dword ptr [esp + 0xc] */
   6649     PUSH32(esp, edx); /* 0x47048463: push edx */
   6650     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x47048464: call dword ptr [eax + 0x10] */
   6651     RECOMP_FLAGS_IN();
   6652     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47048467: ret 0xc */
   6653     RECOMP_REGS_OUT();
   6654 }
   6655 
   6656 void sub_47048470(void) {
   6657     int _fpu_cmp = 0;
   6658     uint32_t _cf = 0;
   6659     int _df = 1;
   6660     uint32_t _flag_k = FK_NONE;
   6661     uint32_t _flag_a = 0, _flag_b = 0;
   6662     uint32_t _itail_tgt = 0;
   6663     RECOMP_REGS_LOCALS
   6664     RECOMP_ENTER(0x47048470u);
   6665 
   6666 L_47048470:
   6667     PUSH32(esp, 0xFFFFFFFFu); /* 0x47048470: push -1 */
   6668     PUSH32(esp, 0x470A6918u); /* 0x47048472: push 0x470a6918 */
   6669     eax = MEM32(FS_BASE + (0)); /* 0x47048477: mov eax, dword ptr fs:[0] */
   6670     PUSH32(esp, eax); /* 0x4704847D: push eax */
   6671     MEM32(FS_BASE + (0)) = esp; /* 0x4704847E: mov dword ptr fs:[0], esp */
   6672     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6673     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6674     esp = esp - 0xCu; /* 0x47048485: sub esp, 0xc */
   6675     _flag_k = FK_CMP;
   6676     eax = MEM32(esp + 0x1C); /* 0x47048488: mov eax, dword ptr [esp + 0x1c] */
   6677     PUSH32(esp, esi); /* 0x4704848C: push esi */
   6678     PUSH32(esp, 0); /* 0x4704848D: push 0 */
   6679     esi = ecx; /* 0x4704848F: mov esi, ecx */
   6680     PUSH32(esp, eax); /* 0x47048491: push eax */
   6681     ecx = esp + 0xC; /* 0x47048492: lea ecx, [esp + 0xc] */
   6682     RECOMP_ICALL(0x47080A90u); /* 0x47048496: call 0x47080a90 */ /* not lifted */
   6683     RECOMP_FLAGS_IN();
   6684     ecx = MEM32(esi + 0x14); /* 0x4704849B: mov ecx, dword ptr [esi + 0x14] */
   6685     esi = MEM32(esp + 0x28); /* 0x4704849E: mov esi, dword ptr [esp + 0x28] */
   6686     edx = MEM32(ecx); /* 0x470484A2: mov edx, dword ptr [ecx] */
   6687     PUSH32(esp, esi); /* 0x470484A4: push esi */
   6688     esi = MEM32(esp + 0x28); /* 0x470484A5: mov esi, dword ptr [esp + 0x28] */
   6689     PUSH32(esp, esi); /* 0x470484A9: push esi */
   6690     PUSH32(esp, eax); /* 0x470484AA: push eax */
   6691     MEM32(esp + 0x24) = 0; /* 0x470484AB: mov dword ptr [esp + 0x24], 0 */
   6692     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x470484B3: call dword ptr [edx + 0x10] */
   6693     RECOMP_FLAGS_IN();
   6694     ecx = esp + 0x4; /* 0x470484B6: lea ecx, [esp + 4] */
   6695     esi = eax; /* 0x470484BA: mov esi, eax */
   6696     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470484BC: mov dword ptr [esp + 0x18], 0xffffffff */
   6697     RECOMP_ICALL(0x470810C0u); /* 0x470484C4: call 0x470810c0 */ /* not lifted */
   6698     RECOMP_FLAGS_IN();
   6699     ecx = MEM32(esp + 0x10); /* 0x470484C9: mov ecx, dword ptr [esp + 0x10] */
   6700     eax = esi; /* 0x470484CD: mov eax, esi */
   6701     esi = POP32_VAL(esp); /* 0x470484CF: pop esi */
   6702     MEM32(FS_BASE + (0)) = ecx; /* 0x470484D0: mov dword ptr fs:[0], ecx */
   6703     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6704     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6705     esp = esp + 0x18u; /* 0x470484D7: add esp, 0x18 */
   6706     _flag_k = FK_ADD;
   6707     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470484DA: ret 0xc */
   6708     RECOMP_REGS_OUT();
   6709 }
   6710 
   6711 void sub_470484E0(void) {
   6712     int _fpu_cmp = 0;
   6713     uint32_t _cf = 0;
   6714     int _df = 1;
   6715     uint32_t _flag_k = FK_NONE;
   6716     uint32_t _flag_a = 0, _flag_b = 0;
   6717     uint32_t _itail_tgt = 0;
   6718     RECOMP_REGS_LOCALS
   6719     RECOMP_ENTER(0x470484E0u);
   6720 
   6721 L_470484E0:
   6722     PUSH32(esp, 0xFFFFFFFFu); /* 0x470484E0: push -1 */
   6723     PUSH32(esp, 0x470A6940u); /* 0x470484E2: push 0x470a6940 */
   6724     eax = MEM32(FS_BASE + (0)); /* 0x470484E7: mov eax, dword ptr fs:[0] */
   6725     PUSH32(esp, eax); /* 0x470484ED: push eax */
   6726     MEM32(FS_BASE + (0)) = esp; /* 0x470484EE: mov dword ptr fs:[0], esp */
   6727     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6728     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6729     esp = esp - 0x18u; /* 0x470484F5: sub esp, 0x18 */
   6730     _flag_k = FK_CMP;
   6731     PUSH32(esp, ebx); /* 0x470484F8: push ebx */
   6732     PUSH32(esp, esi); /* 0x470484F9: push esi */
   6733     esi = ecx; /* 0x470484FA: mov esi, ecx */
   6734     PUSH32(esp, 0); /* 0x470484FC: push 0 */
   6735     ecx = esp + 0xC; /* 0x470484FE: lea ecx, [esp + 0xc] */
   6736     RECOMP_ICALL(0x470809E0u); /* 0x47048502: call 0x470809e0 */ /* not lifted */
   6737     RECOMP_FLAGS_IN();
   6738     eax = MEM32(esp + 0x30); /* 0x47048507: mov eax, dword ptr [esp + 0x30] */
   6739     PUSH32(esp, 0); /* 0x4704850B: push 0 */
   6740     PUSH32(esp, eax); /* 0x4704850D: push eax */
   6741     ecx = esp + 0x1C; /* 0x4704850E: lea ecx, [esp + 0x1c] */
   6742     MEM32(esp + 0x30) = 0; /* 0x47048512: mov dword ptr [esp + 0x30], 0 */
   6743     RECOMP_ICALL(0x47080A90u); /* 0x4704851A: call 0x47080a90 */ /* not lifted */
   6744     RECOMP_FLAGS_IN();
   6745     ecx = MEM32(esi + 0x14); /* 0x4704851F: mov ecx, dword ptr [esi + 0x14] */
   6746     esi = MEM32(esp + 0x38); /* 0x47048522: mov esi, dword ptr [esp + 0x38] */
   6747     edx = MEM32(ecx); /* 0x47048526: mov edx, dword ptr [ecx] */
   6748     PUSH32(esp, esi); /* 0x47048528: push esi */
   6749     esi = esp + 0xC; /* 0x47048529: lea esi, [esp + 0xc] */
   6750     PUSH32(esp, esi); /* 0x4704852D: push esi */
   6751     PUSH32(esp, eax); /* 0x4704852E: push eax */
   6752     MEM8(esp + 0x34) = (uint8_t)(1); /* 0x4704852F: mov byte ptr [esp + 0x34], 1 */
   6753     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x47048534: call dword ptr [edx + 0x10] */
   6754     RECOMP_FLAGS_IN();
   6755     /* cmp eax, 0xFFFFFFFFu */ /* 0x47048537: cmp eax, -1 */
   6756     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6758     _flag_k = FK_CMP;
   6759     ecx = esp + 0x14; /* 0x4704853A: lea ecx, [esp + 0x14] */
   6760     SET_LO8(ebx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4704853E: sete bl */
   6761     MEM8(esp + 0x28) = (uint8_t)(0); /* 0x47048541: mov byte ptr [esp + 0x28], 0 */
   6762     RECOMP_ICALL(0x470810C0u); /* 0x47048546: call 0x470810c0 */ /* not lifted */
   6763     RECOMP_FLAGS_IN();
   6764     /* test LO8(ebx), LO8(ebx) */ /* 0x4704854B: test bl, bl */
   6765     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6766     _cf = 0;
   6767     _flag_k = FK_NARROW(FK_TEST, 24);
   6768     if (TEST_Z(_flag_a, _flag_b)) goto L_47048576; /* 0x4704854D: je 0x47048576 */
   6769 L_4704854F:
   6770     ecx = esp + 0x8; /* 0x4704854F: lea ecx, [esp + 8] */
   6771     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47048553: mov dword ptr [esp + 0x28], 0xffffffff */
   6772     RECOMP_ICALL(0x470810C0u); /* 0x4704855B: call 0x470810c0 */ /* not lifted */
   6773     RECOMP_FLAGS_IN();
   6774     esi = POP32_VAL(esp); /* 0x47048560: pop esi */
   6775     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6776     eax = eax | 0xFFFFFFFFu; /* 0x47048561: or eax, 0xffffffff */
   6777     _cf = 0;
   6778     _flag_k = FK_TEST;
   6779     ebx = POP32_VAL(esp); /* 0x47048564: pop ebx */
   6780     ecx = MEM32(esp + 0x18); /* 0x47048565: mov ecx, dword ptr [esp + 0x18] */
   6781     MEM32(FS_BASE + (0)) = ecx; /* 0x47048569: mov dword ptr fs:[0], ecx */
   6782     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   6783     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6784     esp = esp + 0x24u; /* 0x47048570: add esp, 0x24 */
   6785     _flag_k = FK_ADD;
   6786     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47048573: ret 0xc */
   6787 L_47048576:
   6788     ecx = esp + 0x8; /* 0x47048576: lea ecx, [esp + 8] */
   6789     RECOMP_ICALL(0x47080A40u); /* 0x4704857A: call 0x47080a40 */ /* not lifted */
   6790     RECOMP_FLAGS_IN();
   6791     ecx = MEM32(esp + 0x34); /* 0x4704857F: mov ecx, dword ptr [esp + 0x34] */
   6792     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6793     edx = 0; /* 0x47048583: xor edx, edx */
   6794     _cf = 0;
   6795     _flag_k = FK_TEST;
   6796     /* test eax, eax */ /* 0x47048585: test eax, eax */
   6797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6798     _cf = 0;
   6799     _flag_k = FK_TEST;
   6800     SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47048587: setne dl */
   6801     MEM32(ecx) = eax; /* 0x4704858A: mov dword ptr [ecx], eax */
   6802     ecx = esp + 0x8; /* 0x4704858C: lea ecx, [esp + 8] */
   6803     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47048590: mov dword ptr [esp + 0x28], 0xffffffff */
   6804     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6805     edx = edx - 1; /* 0x47048598: dec edx */
   6806     _flag_k = FK_DEC;
   6807     esi = edx; /* 0x47048599: mov esi, edx */
   6808     RECOMP_ICALL(0x470810C0u); /* 0x4704859B: call 0x470810c0 */ /* not lifted */
   6809     RECOMP_FLAGS_IN();
   6810     ecx = MEM32(esp + 0x20); /* 0x470485A0: mov ecx, dword ptr [esp + 0x20] */
   6811     eax = esi; /* 0x470485A4: mov eax, esi */
   6812     esi = POP32_VAL(esp); /* 0x470485A6: pop esi */
   6813     ebx = POP32_VAL(esp); /* 0x470485A7: pop ebx */
   6814     MEM32(FS_BASE + (0)) = ecx; /* 0x470485A8: mov dword ptr fs:[0], ecx */
   6815     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   6816     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6817     esp = esp + 0x24u; /* 0x470485AF: add esp, 0x24 */
   6818     _flag_k = FK_ADD;
   6819     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470485B2: ret 0xc */
   6820     RECOMP_REGS_OUT();
   6821 }
   6822 
   6823 void sub_470485C0(void) {
   6824     int _fpu_cmp = 0;
   6825     uint32_t _cf = 0;
   6826     int _df = 1;
   6827     uint32_t _flag_k = FK_NONE;
   6828     uint32_t _flag_a = 0, _flag_b = 0;
   6829     uint32_t _itail_tgt = 0;
   6830     RECOMP_REGS_LOCALS
   6831     RECOMP_ENTER(0x470485C0u);
   6832 
   6833 L_470485C0:
   6834     ecx = MEM32(ecx + 0x14); /* 0x470485C0: mov ecx, dword ptr [ecx + 0x14] */
   6835     edx = MEM32(esp + 0x4); /* 0x470485C3: mov edx, dword ptr [esp + 4] */
   6836     eax = MEM32(ecx); /* 0x470485C7: mov eax, dword ptr [ecx] */
   6837     PUSH32(esp, edx); /* 0x470485C9: push edx */
   6838     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470485CA: call dword ptr [eax + 0xc] */
   6839     RECOMP_FLAGS_IN();
   6840     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470485CD: ret 4 */
   6841     RECOMP_REGS_OUT();
   6842 }
   6843 
   6844 void sub_470485D0(void) {
   6845     int _fpu_cmp = 0;
   6846     uint32_t _cf = 0;
   6847     int _df = 1;
   6848     uint32_t _flag_k = FK_NONE;
   6849     uint32_t _flag_a = 0, _flag_b = 0;
   6850     uint32_t _itail_tgt = 0;
   6851     RECOMP_REGS_LOCALS
   6852     RECOMP_ENTER(0x470485D0u);
   6853 
   6854 L_470485D0:
   6855     PUSH32(esp, 0xFFFFFFFFu); /* 0x470485D0: push -1 */
   6856     PUSH32(esp, 0x470A6958u); /* 0x470485D2: push 0x470a6958 */
   6857     eax = MEM32(FS_BASE + (0)); /* 0x470485D7: mov eax, dword ptr fs:[0] */
   6858     PUSH32(esp, eax); /* 0x470485DD: push eax */
   6859     MEM32(FS_BASE + (0)) = esp; /* 0x470485DE: mov dword ptr fs:[0], esp */
   6860     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6862     esp = esp - 0xCu; /* 0x470485E5: sub esp, 0xc */
   6863     _flag_k = FK_CMP;
   6864     eax = MEM32(esp + 0x1C); /* 0x470485E8: mov eax, dword ptr [esp + 0x1c] */
   6865     PUSH32(esp, esi); /* 0x470485EC: push esi */
   6866     PUSH32(esp, 0); /* 0x470485ED: push 0 */
   6867     esi = ecx; /* 0x470485EF: mov esi, ecx */
   6868     PUSH32(esp, eax); /* 0x470485F1: push eax */
   6869     ecx = esp + 0xC; /* 0x470485F2: lea ecx, [esp + 0xc] */
   6870     RECOMP_ICALL(0x47080A90u); /* 0x470485F6: call 0x47080a90 */ /* not lifted */
   6871     RECOMP_FLAGS_IN();
   6872     ecx = MEM32(esi + 0x14); /* 0x470485FB: mov ecx, dword ptr [esi + 0x14] */
   6873     edx = MEM32(ecx); /* 0x470485FE: mov edx, dword ptr [ecx] */
   6874     PUSH32(esp, eax); /* 0x47048600: push eax */
   6875     MEM32(esp + 0x1C) = 0; /* 0x47048601: mov dword ptr [esp + 0x1c], 0 */
   6876     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47048609: call dword ptr [edx + 0xc] */
   6877     RECOMP_FLAGS_IN();
   6878     ecx = esp + 0x4; /* 0x4704860C: lea ecx, [esp + 4] */
   6879     esi = eax; /* 0x47048610: mov esi, eax */
   6880     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x47048612: mov dword ptr [esp + 0x18], 0xffffffff */
   6881     RECOMP_ICALL(0x470810C0u); /* 0x4704861A: call 0x470810c0 */ /* not lifted */
   6882     RECOMP_FLAGS_IN();
   6883     ecx = MEM32(esp + 0x10); /* 0x4704861F: mov ecx, dword ptr [esp + 0x10] */
   6884     eax = esi; /* 0x47048623: mov eax, esi */
   6885     esi = POP32_VAL(esp); /* 0x47048625: pop esi */
   6886     MEM32(FS_BASE + (0)) = ecx; /* 0x47048626: mov dword ptr fs:[0], ecx */
   6887     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6888     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6889     esp = esp + 0x18u; /* 0x4704862D: add esp, 0x18 */
   6890     _flag_k = FK_ADD;
   6891     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47048630: ret 4 */
   6892     RECOMP_REGS_OUT();
   6893 }
   6894 
   6895 void sub_47048640(void) {
   6896     int _fpu_cmp = 0;
   6897     uint32_t _cf = 0;
   6898     int _df = 1;
   6899     uint32_t _flag_k = FK_NONE;
   6900     uint32_t _flag_a = 0, _flag_b = 0;
   6901     uint32_t _itail_tgt = 0;
   6902     RECOMP_REGS_LOCALS
   6903     RECOMP_ENTER(0x47048640u);
   6904 
   6905 L_47048640:
   6906     edx = MEM32(esp + 0x8); /* 0x47048640: mov edx, dword ptr [esp + 8] */
   6907     ecx = MEM32(ecx + 0x14); /* 0x47048644: mov ecx, dword ptr [ecx + 0x14] */
   6908     eax = MEM32(ecx); /* 0x47048647: mov eax, dword ptr [ecx] */
   6909     PUSH32(esp, edx); /* 0x47048649: push edx */
   6910     edx = MEM32(esp + 0x8); /* 0x4704864A: mov edx, dword ptr [esp + 8] */
   6911     PUSH32(esp, edx); /* 0x4704864E: push edx */
   6912     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x4704864F: call dword ptr [eax + 0x14] */
   6913     RECOMP_FLAGS_IN();
   6914     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048652: ret 8 */
   6915     RECOMP_REGS_OUT();
   6916 }
   6917 
   6918 void sub_47048660(void) {
   6919     int _fpu_cmp = 0;
   6920     uint32_t _cf = 0;
   6921     int _df = 1;
   6922     uint32_t _flag_k = FK_NONE;
   6923     uint32_t _flag_a = 0, _flag_b = 0;
   6924     uint32_t _itail_tgt = 0;
   6925     RECOMP_REGS_LOCALS
   6926     RECOMP_ENTER(0x47048660u);
   6927 
   6928 L_47048660:
   6929     PUSH32(esp, 0xFFFFFFFFu); /* 0x47048660: push -1 */
   6930     PUSH32(esp, 0x470A6978u); /* 0x47048662: push 0x470a6978 */
   6931     eax = MEM32(FS_BASE + (0)); /* 0x47048667: mov eax, dword ptr fs:[0] */
   6932     PUSH32(esp, eax); /* 0x4704866D: push eax */
   6933     MEM32(FS_BASE + (0)) = esp; /* 0x4704866E: mov dword ptr fs:[0], esp */
   6934     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6935     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6936     esp = esp - 0xCu; /* 0x47048675: sub esp, 0xc */
   6937     _flag_k = FK_CMP;
   6938     eax = MEM32(esp + 0x20); /* 0x47048678: mov eax, dword ptr [esp + 0x20] */
   6939     PUSH32(esp, esi); /* 0x4704867C: push esi */
   6940     PUSH32(esp, 0); /* 0x4704867D: push 0 */
   6941     esi = ecx; /* 0x4704867F: mov esi, ecx */
   6942     PUSH32(esp, eax); /* 0x47048681: push eax */
   6943     ecx = esp + 0xC; /* 0x47048682: lea ecx, [esp + 0xc] */
   6944     RECOMP_ICALL(0x47080A90u); /* 0x47048686: call 0x47080a90 */ /* not lifted */
   6945     RECOMP_FLAGS_IN();
   6946     ecx = MEM32(esi + 0x14); /* 0x4704868B: mov ecx, dword ptr [esi + 0x14] */
   6947     edx = MEM32(ecx); /* 0x4704868E: mov edx, dword ptr [ecx] */
   6948     PUSH32(esp, eax); /* 0x47048690: push eax */
   6949     eax = MEM32(esp + 0x24); /* 0x47048691: mov eax, dword ptr [esp + 0x24] */
   6950     PUSH32(esp, eax); /* 0x47048695: push eax */
   6951     MEM32(esp + 0x20) = 0; /* 0x47048696: mov dword ptr [esp + 0x20], 0 */
   6952     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x4704869E: call dword ptr [edx + 0x14] */
   6953     RECOMP_FLAGS_IN();
   6954     ecx = esp + 0x4; /* 0x470486A1: lea ecx, [esp + 4] */
   6955     esi = eax; /* 0x470486A5: mov esi, eax */
   6956     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470486A7: mov dword ptr [esp + 0x18], 0xffffffff */
   6957     RECOMP_ICALL(0x470810C0u); /* 0x470486AF: call 0x470810c0 */ /* not lifted */
   6958     RECOMP_FLAGS_IN();
   6959     ecx = MEM32(esp + 0x10); /* 0x470486B4: mov ecx, dword ptr [esp + 0x10] */
   6960     eax = esi; /* 0x470486B8: mov eax, esi */
   6961     esi = POP32_VAL(esp); /* 0x470486BA: pop esi */
   6962     MEM32(FS_BASE + (0)) = ecx; /* 0x470486BB: mov dword ptr fs:[0], ecx */
   6963     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6964     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6965     esp = esp + 0x18u; /* 0x470486C2: add esp, 0x18 */
   6966     _flag_k = FK_ADD;
   6967     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470486C5: ret 8 */
   6968     RECOMP_REGS_OUT();
   6969 }
   6970 
   6971 void sub_470486D0(void) {
   6972     int _fpu_cmp = 0;
   6973     uint32_t _cf = 0;
   6974     int _df = 1;
   6975     uint32_t _flag_k = FK_NONE;
   6976     uint32_t _flag_a = 0, _flag_b = 0;
   6977     uint32_t _itail_tgt = 0;
   6978     RECOMP_REGS_LOCALS
   6979     RECOMP_ENTER(0x470486D0u);
   6980 
   6981 L_470486D0:
   6982     edx = MEM32(esp + 0x8); /* 0x470486D0: mov edx, dword ptr [esp + 8] */
   6983     ecx = MEM32(ecx + 0x14); /* 0x470486D4: mov ecx, dword ptr [ecx + 0x14] */
   6984     eax = MEM32(ecx); /* 0x470486D7: mov eax, dword ptr [ecx] */
   6985     PUSH32(esp, edx); /* 0x470486D9: push edx */
   6986     edx = MEM32(esp + 0x8); /* 0x470486DA: mov edx, dword ptr [esp + 8] */
   6987     PUSH32(esp, edx); /* 0x470486DE: push edx */
   6988     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x470486DF: call dword ptr [eax + 0x18] */
   6989     RECOMP_FLAGS_IN();
   6990     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470486E2: ret 8 */
   6991     RECOMP_REGS_OUT();
   6992 }
   6993 
   6994 void sub_470486F0(void) {
   6995     int _fpu_cmp = 0;
   6996     uint32_t _cf = 0;
   6997     int _df = 1;
   6998     uint32_t _flag_k = FK_NONE;
   6999     uint32_t _flag_a = 0, _flag_b = 0;
   7000     uint32_t _itail_tgt = 0;
   7001     RECOMP_REGS_LOCALS
   7002     RECOMP_ENTER(0x470486F0u);
   7003 
   7004 L_470486F0:
   7005     PUSH32(esp, 0xFFFFFFFFu); /* 0x470486F0: push -1 */
   7006     PUSH32(esp, 0x470A6998u); /* 0x470486F2: push 0x470a6998 */
   7007     eax = MEM32(FS_BASE + (0)); /* 0x470486F7: mov eax, dword ptr fs:[0] */
   7008     PUSH32(esp, eax); /* 0x470486FD: push eax */
   7009     MEM32(FS_BASE + (0)) = esp; /* 0x470486FE: mov dword ptr fs:[0], esp */
   7010     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7011     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7012     esp = esp - 0xCu; /* 0x47048705: sub esp, 0xc */
   7013     _flag_k = FK_CMP;
   7014     eax = MEM32(esp + 0x20); /* 0x47048708: mov eax, dword ptr [esp + 0x20] */
   7015     PUSH32(esp, esi); /* 0x4704870C: push esi */
   7016     PUSH32(esp, 0); /* 0x4704870D: push 0 */
   7017     esi = ecx; /* 0x4704870F: mov esi, ecx */
   7018     PUSH32(esp, eax); /* 0x47048711: push eax */
   7019     ecx = esp + 0xC; /* 0x47048712: lea ecx, [esp + 0xc] */
   7020     RECOMP_ICALL(0x47080A90u); /* 0x47048716: call 0x47080a90 */ /* not lifted */
   7021     RECOMP_FLAGS_IN();
   7022     ecx = MEM32(esi + 0x14); /* 0x4704871B: mov ecx, dword ptr [esi + 0x14] */
   7023     edx = MEM32(ecx); /* 0x4704871E: mov edx, dword ptr [ecx] */
   7024     PUSH32(esp, eax); /* 0x47048720: push eax */
   7025     eax = MEM32(esp + 0x24); /* 0x47048721: mov eax, dword ptr [esp + 0x24] */
   7026     PUSH32(esp, eax); /* 0x47048725: push eax */
   7027     MEM32(esp + 0x20) = 0; /* 0x47048726: mov dword ptr [esp + 0x20], 0 */
   7028     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x4704872E: call dword ptr [edx + 0x18] */
   7029     RECOMP_FLAGS_IN();
   7030     ecx = esp + 0x4; /* 0x47048731: lea ecx, [esp + 4] */
   7031     esi = eax; /* 0x47048735: mov esi, eax */
   7032     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x47048737: mov dword ptr [esp + 0x18], 0xffffffff */
   7033     RECOMP_ICALL(0x470810C0u); /* 0x4704873F: call 0x470810c0 */ /* not lifted */
   7034     RECOMP_FLAGS_IN();
   7035     ecx = MEM32(esp + 0x10); /* 0x47048744: mov ecx, dword ptr [esp + 0x10] */
   7036     eax = esi; /* 0x47048748: mov eax, esi */
   7037     esi = POP32_VAL(esp); /* 0x4704874A: pop esi */
   7038     MEM32(FS_BASE + (0)) = ecx; /* 0x4704874B: mov dword ptr fs:[0], ecx */
   7039     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   7040     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7041     esp = esp + 0x18u; /* 0x47048752: add esp, 0x18 */
   7042     _flag_k = FK_ADD;
   7043     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048755: ret 8 */
   7044     RECOMP_REGS_OUT();
   7045 }
   7046 
   7047 void sub_47048760(void) {
   7048     int _fpu_cmp = 0;
   7049     uint32_t _cf = 0;
   7050     int _df = 1;
   7051     uint32_t _flag_k = FK_NONE;
   7052     uint32_t _flag_a = 0, _flag_b = 0;
   7053     uint32_t _itail_tgt = 0;
   7054     RECOMP_REGS_LOCALS
   7055     RECOMP_ENTER(0x47048760u);
   7056 
   7057 L_47048760:
   7058     edx = MEM32(esp + 0x8); /* 0x47048760: mov edx, dword ptr [esp + 8] */
   7059     ecx = MEM32(ecx + 0x14); /* 0x47048764: mov ecx, dword ptr [ecx + 0x14] */
   7060     eax = MEM32(ecx); /* 0x47048767: mov eax, dword ptr [ecx] */
   7061     PUSH32(esp, edx); /* 0x47048769: push edx */
   7062     edx = MEM32(esp + 0x8); /* 0x4704876A: mov edx, dword ptr [esp + 8] */
   7063     PUSH32(esp, edx); /* 0x4704876E: push edx */
   7064     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x4704876F: call dword ptr [eax + 0x1c] */
   7065     RECOMP_FLAGS_IN();
   7066     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048772: ret 8 */
   7067     RECOMP_REGS_OUT();
   7068 }
   7069 
   7070 void sub_47048780(void) {
   7071     int _fpu_cmp = 0;
   7072     uint32_t _cf = 0;
   7073     int _df = 1;
   7074     uint32_t _flag_k = FK_NONE;
   7075     uint32_t _flag_a = 0, _flag_b = 0;
   7076     uint32_t _itail_tgt = 0;
   7077     RECOMP_REGS_LOCALS
   7078     RECOMP_ENTER(0x47048780u);
   7079 
   7080 L_47048780:
   7081     PUSH32(esp, 0xFFFFFFFFu); /* 0x47048780: push -1 */
   7082     PUSH32(esp, 0x470A69B8u); /* 0x47048782: push 0x470a69b8 */
   7083     eax = MEM32(FS_BASE + (0)); /* 0x47048787: mov eax, dword ptr fs:[0] */
   7084     PUSH32(esp, eax); /* 0x4704878D: push eax */
   7085     MEM32(FS_BASE + (0)) = esp; /* 0x4704878E: mov dword ptr fs:[0], esp */
   7086     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7088     esp = esp - 0xCu; /* 0x47048795: sub esp, 0xc */
   7089     _flag_k = FK_CMP;
   7090     eax = MEM32(esp + 0x20); /* 0x47048798: mov eax, dword ptr [esp + 0x20] */
   7091     PUSH32(esp, esi); /* 0x4704879C: push esi */
   7092     PUSH32(esp, 0); /* 0x4704879D: push 0 */
   7093     esi = ecx; /* 0x4704879F: mov esi, ecx */
   7094     PUSH32(esp, eax); /* 0x470487A1: push eax */
   7095     ecx = esp + 0xC; /* 0x470487A2: lea ecx, [esp + 0xc] */
   7096     RECOMP_ICALL(0x47080A90u); /* 0x470487A6: call 0x47080a90 */ /* not lifted */
   7097     RECOMP_FLAGS_IN();
   7098     ecx = MEM32(esi + 0x14); /* 0x470487AB: mov ecx, dword ptr [esi + 0x14] */
   7099     edx = MEM32(ecx); /* 0x470487AE: mov edx, dword ptr [ecx] */
   7100     PUSH32(esp, eax); /* 0x470487B0: push eax */
   7101     eax = MEM32(esp + 0x24); /* 0x470487B1: mov eax, dword ptr [esp + 0x24] */
   7102     PUSH32(esp, eax); /* 0x470487B5: push eax */
   7103     MEM32(esp + 0x20) = 0; /* 0x470487B6: mov dword ptr [esp + 0x20], 0 */
   7104     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x470487BE: call dword ptr [edx + 0x1c] */
   7105     RECOMP_FLAGS_IN();
   7106     ecx = esp + 0x4; /* 0x470487C1: lea ecx, [esp + 4] */
   7107     esi = eax; /* 0x470487C5: mov esi, eax */
   7108     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470487C7: mov dword ptr [esp + 0x18], 0xffffffff */
   7109     RECOMP_ICALL(0x470810C0u); /* 0x470487CF: call 0x470810c0 */ /* not lifted */
   7110     RECOMP_FLAGS_IN();
   7111     ecx = MEM32(esp + 0x10); /* 0x470487D4: mov ecx, dword ptr [esp + 0x10] */
   7112     eax = esi; /* 0x470487D8: mov eax, esi */
   7113     esi = POP32_VAL(esp); /* 0x470487DA: pop esi */
   7114     MEM32(FS_BASE + (0)) = ecx; /* 0x470487DB: mov dword ptr fs:[0], ecx */
   7115     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   7116     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7117     esp = esp + 0x18u; /* 0x470487E2: add esp, 0x18 */
   7118     _flag_k = FK_ADD;
   7119     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470487E5: ret 8 */
   7120     RECOMP_REGS_OUT();
   7121 }
   7122 
   7123 void sub_470487F0(void) {
   7124     int _fpu_cmp = 0;
   7125     uint32_t _cf = 0;
   7126     int _df = 1;
   7127     uint32_t _flag_k = FK_NONE;
   7128     uint32_t _flag_a = 0, _flag_b = 0;
   7129     uint32_t _itail_tgt = 0;
   7130     RECOMP_REGS_LOCALS
   7131     RECOMP_ENTER(0x470487F0u);
   7132 
   7133 L_470487F0:
   7134     edx = MEM32(esp + 0x8); /* 0x470487F0: mov edx, dword ptr [esp + 8] */
   7135     ecx = MEM32(ecx + 0x14); /* 0x470487F4: mov ecx, dword ptr [ecx + 0x14] */
   7136     eax = MEM32(ecx); /* 0x470487F7: mov eax, dword ptr [ecx] */
   7137     PUSH32(esp, edx); /* 0x470487F9: push edx */
   7138     edx = MEM32(esp + 0x8); /* 0x470487FA: mov edx, dword ptr [esp + 8] */
   7139     PUSH32(esp, edx); /* 0x470487FE: push edx */
   7140     RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x470487FF: call dword ptr [eax + 0x20] */
   7141     RECOMP_FLAGS_IN();
   7142     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048802: ret 8 */
   7143     RECOMP_REGS_OUT();
   7144 }
   7145 
   7146 void sub_47048810(void) {
   7147     int _fpu_cmp = 0;
   7148     uint32_t _cf = 0;
   7149     int _df = 1;
   7150     uint32_t _flag_k = FK_NONE;
   7151     uint32_t _flag_a = 0, _flag_b = 0;
   7152     uint32_t _itail_tgt = 0;
   7153     RECOMP_REGS_LOCALS
   7154     RECOMP_ENTER(0x47048810u);
   7155 
   7156 L_47048810:
   7157     PUSH32(esp, 0xFFFFFFFFu); /* 0x47048810: push -1 */
   7158     PUSH32(esp, 0x470A69D8u); /* 0x47048812: push 0x470a69d8 */
   7159     eax = MEM32(FS_BASE + (0)); /* 0x47048817: mov eax, dword ptr fs:[0] */
   7160     PUSH32(esp, eax); /* 0x4704881D: push eax */
   7161     MEM32(FS_BASE + (0)) = esp; /* 0x4704881E: mov dword ptr fs:[0], esp */
   7162     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7164     esp = esp - 0xCu; /* 0x47048825: sub esp, 0xc */
   7165     _flag_k = FK_CMP;
   7166     eax = MEM32(esp + 0x20); /* 0x47048828: mov eax, dword ptr [esp + 0x20] */
   7167     PUSH32(esp, esi); /* 0x4704882C: push esi */
   7168     PUSH32(esp, 0); /* 0x4704882D: push 0 */
   7169     esi = ecx; /* 0x4704882F: mov esi, ecx */
   7170     PUSH32(esp, eax); /* 0x47048831: push eax */
   7171     ecx = esp + 0xC; /* 0x47048832: lea ecx, [esp + 0xc] */
   7172     RECOMP_ICALL(0x47080A90u); /* 0x47048836: call 0x47080a90 */ /* not lifted */
   7173     RECOMP_FLAGS_IN();
   7174     edx = MEM32(esi); /* 0x4704883B: mov edx, dword ptr [esi] */
   7175     PUSH32(esp, eax); /* 0x4704883D: push eax */
   7176     eax = MEM32(esp + 0x24); /* 0x4704883E: mov eax, dword ptr [esp + 0x24] */
   7177     PUSH32(esp, eax); /* 0x47048842: push eax */
   7178     ecx = esi; /* 0x47048843: mov ecx, esi */
   7179     MEM32(esp + 0x20) = 0; /* 0x47048845: mov dword ptr [esp + 0x20], 0 */
   7180     RECOMP_ICALL(MEM32(edx + 0x4C)); /* 0x4704884D: call dword ptr [edx + 0x4c] */
   7181     RECOMP_FLAGS_IN();
   7182     ecx = esp + 0x4; /* 0x47048850: lea ecx, [esp + 4] */
   7183     esi = eax; /* 0x47048854: mov esi, eax */
   7184     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x47048856: mov dword ptr [esp + 0x18], 0xffffffff */
   7185     RECOMP_ICALL(0x470810C0u); /* 0x4704885E: call 0x470810c0 */ /* not lifted */
   7186     RECOMP_FLAGS_IN();
   7187     ecx = MEM32(esp + 0x10); /* 0x47048863: mov ecx, dword ptr [esp + 0x10] */
   7188     eax = esi; /* 0x47048867: mov eax, esi */
   7189     esi = POP32_VAL(esp); /* 0x47048869: pop esi */
   7190     MEM32(FS_BASE + (0)) = ecx; /* 0x4704886A: mov dword ptr fs:[0], ecx */
   7191     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   7192     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7193     esp = esp + 0x18u; /* 0x47048871: add esp, 0x18 */
   7194     _flag_k = FK_ADD;
   7195     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048874: ret 8 */
   7196     RECOMP_REGS_OUT();
   7197 }
   7198 
   7199 void sub_47048880(void) {
   7200     int _fpu_cmp = 0;
   7201     uint32_t _cf = 0;
   7202     int _df = 1;
   7203     uint32_t _flag_k = FK_NONE;
   7204     uint32_t _flag_a = 0, _flag_b = 0;
   7205     uint32_t _itail_tgt = 0;
   7206     RECOMP_REGS_LOCALS
   7207     RECOMP_ENTER(0x47048880u);
   7208 
   7209 L_47048880:
   7210     edx = MEM32(esp + 0x8); /* 0x47048880: mov edx, dword ptr [esp + 8] */
   7211     ecx = MEM32(ecx + 0x14); /* 0x47048884: mov ecx, dword ptr [ecx + 0x14] */
   7212     eax = MEM32(ecx); /* 0x47048887: mov eax, dword ptr [ecx] */
   7213     PUSH32(esp, edx); /* 0x47048889: push edx */
   7214     edx = MEM32(esp + 0x8); /* 0x4704888A: mov edx, dword ptr [esp + 8] */
   7215     PUSH32(esp, edx); /* 0x4704888E: push edx */
   7216     RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x4704888F: call dword ptr [eax + 0x24] */
   7217     RECOMP_FLAGS_IN();
   7218     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048892: ret 8 */
   7219     RECOMP_REGS_OUT();
   7220 }
   7221 
   7222 void sub_470488A0(void) {
   7223     int _fpu_cmp = 0;
   7224     uint32_t _cf = 0;
   7225     int _df = 1;
   7226     uint32_t _flag_k = FK_NONE;
   7227     uint32_t _flag_a = 0, _flag_b = 0;
   7228     uint32_t _itail_tgt = 0;
   7229     RECOMP_REGS_LOCALS
   7230     RECOMP_ENTER(0x470488A0u);
   7231 
   7232 L_470488A0:
   7233     PUSH32(esp, 0xFFFFFFFFu); /* 0x470488A0: push -1 */
   7234     PUSH32(esp, 0x470A69F8u); /* 0x470488A2: push 0x470a69f8 */
   7235     eax = MEM32(FS_BASE + (0)); /* 0x470488A7: mov eax, dword ptr fs:[0] */
   7236     PUSH32(esp, eax); /* 0x470488AD: push eax */
   7237     MEM32(FS_BASE + (0)) = esp; /* 0x470488AE: mov dword ptr fs:[0], esp */
   7238     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7240     esp = esp - 0xCu; /* 0x470488B5: sub esp, 0xc */
   7241     _flag_k = FK_CMP;
   7242     eax = MEM32(esp + 0x20); /* 0x470488B8: mov eax, dword ptr [esp + 0x20] */
   7243     PUSH32(esp, esi); /* 0x470488BC: push esi */
   7244     PUSH32(esp, 0); /* 0x470488BD: push 0 */
   7245     esi = ecx; /* 0x470488BF: mov esi, ecx */
   7246     PUSH32(esp, eax); /* 0x470488C1: push eax */
   7247     ecx = esp + 0xC; /* 0x470488C2: lea ecx, [esp + 0xc] */
   7248     RECOMP_ICALL(0x47080A90u); /* 0x470488C6: call 0x47080a90 */ /* not lifted */
   7249     RECOMP_FLAGS_IN();
   7250     edx = MEM32(esi); /* 0x470488CB: mov edx, dword ptr [esi] */
   7251     PUSH32(esp, eax); /* 0x470488CD: push eax */
   7252     eax = MEM32(esp + 0x24); /* 0x470488CE: mov eax, dword ptr [esp + 0x24] */
   7253     PUSH32(esp, eax); /* 0x470488D2: push eax */
   7254     ecx = esi; /* 0x470488D3: mov ecx, esi */
   7255     MEM32(esp + 0x20) = 0; /* 0x470488D5: mov dword ptr [esp + 0x20], 0 */
   7256     RECOMP_ICALL(MEM32(edx + 0x54)); /* 0x470488DD: call dword ptr [edx + 0x54] */
   7257     RECOMP_FLAGS_IN();
   7258     ecx = esp + 0x4; /* 0x470488E0: lea ecx, [esp + 4] */
   7259     esi = eax; /* 0x470488E4: mov esi, eax */
   7260     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470488E6: mov dword ptr [esp + 0x18], 0xffffffff */
   7261     RECOMP_ICALL(0x470810C0u); /* 0x470488EE: call 0x470810c0 */ /* not lifted */
   7262     RECOMP_FLAGS_IN();
   7263     ecx = MEM32(esp + 0x10); /* 0x470488F3: mov ecx, dword ptr [esp + 0x10] */
   7264     eax = esi; /* 0x470488F7: mov eax, esi */
   7265     esi = POP32_VAL(esp); /* 0x470488F9: pop esi */
   7266     MEM32(FS_BASE + (0)) = ecx; /* 0x470488FA: mov dword ptr fs:[0], ecx */
   7267     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   7268     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7269     esp = esp + 0x18u; /* 0x47048901: add esp, 0x18 */
   7270     _flag_k = FK_ADD;
   7271     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048904: ret 8 */
   7272     RECOMP_REGS_OUT();
   7273 }
   7274 
   7275 void sub_47048910(void) {
   7276     int _fpu_cmp = 0;
   7277     uint32_t _cf = 0;
   7278     int _df = 1;
   7279     uint32_t _flag_k = FK_NONE;
   7280     uint32_t _flag_a = 0, _flag_b = 0;
   7281     uint32_t _itail_tgt = 0;
   7282     RECOMP_REGS_LOCALS
   7283     RECOMP_ENTER(0x47048910u);
   7284 
   7285 L_47048910:
   7286     edx = MEM32(esp + 0x8); /* 0x47048910: mov edx, dword ptr [esp + 8] */
   7287     ecx = MEM32(ecx + 0x14); /* 0x47048914: mov ecx, dword ptr [ecx + 0x14] */
   7288     eax = MEM32(ecx); /* 0x47048917: mov eax, dword ptr [ecx] */
   7289     PUSH32(esp, edx); /* 0x47048919: push edx */
   7290     edx = MEM32(esp + 0x8); /* 0x4704891A: mov edx, dword ptr [esp + 8] */
   7291     PUSH32(esp, edx); /* 0x4704891E: push edx */
   7292     RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x4704891F: call dword ptr [eax + 0x28] */
   7293     RECOMP_FLAGS_IN();
   7294     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048922: ret 8 */
   7295     RECOMP_REGS_OUT();
   7296 }
   7297 
   7298 void sub_47048930(void) {
   7299     int _fpu_cmp = 0;
   7300     uint32_t _cf = 0;
   7301     int _df = 1;
   7302     uint32_t _flag_k = FK_NONE;
   7303     uint32_t _flag_a = 0, _flag_b = 0;
   7304     uint32_t _itail_tgt = 0;
   7305     RECOMP_REGS_LOCALS
   7306     RECOMP_ENTER(0x47048930u);
   7307 
   7308 L_47048930:
   7309     PUSH32(esp, 0xFFFFFFFFu); /* 0x47048930: push -1 */
   7310     PUSH32(esp, 0x470A6A18u); /* 0x47048932: push 0x470a6a18 */
   7311     eax = MEM32(FS_BASE + (0)); /* 0x47048937: mov eax, dword ptr fs:[0] */
   7312     PUSH32(esp, eax); /* 0x4704893D: push eax */
   7313     MEM32(FS_BASE + (0)) = esp; /* 0x4704893E: mov dword ptr fs:[0], esp */
   7314     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7315     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7316     esp = esp - 0xCu; /* 0x47048945: sub esp, 0xc */
   7317     _flag_k = FK_CMP;
   7318     eax = MEM32(esp + 0x20); /* 0x47048948: mov eax, dword ptr [esp + 0x20] */
   7319     PUSH32(esp, esi); /* 0x4704894C: push esi */
   7320     PUSH32(esp, 0); /* 0x4704894D: push 0 */
   7321     esi = ecx; /* 0x4704894F: mov esi, ecx */
   7322     PUSH32(esp, eax); /* 0x47048951: push eax */
   7323     ecx = esp + 0xC; /* 0x47048952: lea ecx, [esp + 0xc] */
   7324     RECOMP_ICALL(0x47080A90u); /* 0x47048956: call 0x47080a90 */ /* not lifted */
   7325     RECOMP_FLAGS_IN();
   7326     edx = MEM32(esi); /* 0x4704895B: mov edx, dword ptr [esi] */
   7327     PUSH32(esp, eax); /* 0x4704895D: push eax */
   7328     eax = MEM32(esp + 0x24); /* 0x4704895E: mov eax, dword ptr [esp + 0x24] */
   7329     PUSH32(esp, eax); /* 0x47048962: push eax */
   7330     ecx = esi; /* 0x47048963: mov ecx, esi */
   7331     MEM32(esp + 0x20) = 0; /* 0x47048965: mov dword ptr [esp + 0x20], 0 */
   7332     RECOMP_ICALL(MEM32(edx + 0x5C)); /* 0x4704896D: call dword ptr [edx + 0x5c] */
   7333     RECOMP_FLAGS_IN();
   7334     ecx = esp + 0x4; /* 0x47048970: lea ecx, [esp + 4] */
   7335     esi = eax; /* 0x47048974: mov esi, eax */
   7336     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x47048976: mov dword ptr [esp + 0x18], 0xffffffff */
   7337     RECOMP_ICALL(0x470810C0u); /* 0x4704897E: call 0x470810c0 */ /* not lifted */
   7338     RECOMP_FLAGS_IN();
   7339     ecx = MEM32(esp + 0x10); /* 0x47048983: mov ecx, dword ptr [esp + 0x10] */
   7340     eax = esi; /* 0x47048987: mov eax, esi */
   7341     esi = POP32_VAL(esp); /* 0x47048989: pop esi */
   7342     MEM32(FS_BASE + (0)) = ecx; /* 0x4704898A: mov dword ptr fs:[0], ecx */
   7343     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   7344     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7345     esp = esp + 0x18u; /* 0x47048991: add esp, 0x18 */
   7346     _flag_k = FK_ADD;
   7347     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47048994: ret 8 */
   7348     RECOMP_REGS_OUT();
   7349 }